/* ===========================================================
   Game 365 - style.css
   Mobile-first casino homepage. All custom classes use the
   w4262- prefix; CSS variables use the --w4262- prefix.
   =========================================================== */

:root {
  --w4262-primary: #FFA500;
  --w4262-accent: #FF5722;
  --w4262-gold: #FFD700;
  --w4262-amber: #FFBF00;
  --w4262-bg: #1C2833;
  --w4262-bg-2: #141c25;
  --w4262-bg-3: #0e141b;
  --w4262-text: #f5f6fa;
  --w4262-text-muted: #b3bcc9;
  --w4262-slate: #495057;
  --w4262-line: rgba(255, 255, 255, 0.08);
  --w4262-card: #202c3a;
  --w4262-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --w4262-radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--w4262-bg-2), var(--w4262-bg));
  color: var(--w4262-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--w4262-gold); text-decoration: none; }
a:hover { color: var(--w4262-amber); }

.w4262-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.w4262-wrapper { padding: 18px 14px; }
.w4262-no-scroll { overflow: hidden; }

/* ---------- Header ---------- */
.w4262-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--w4262-bg-3), var(--w4262-bg));
  border-bottom: 2px solid var(--w4262-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.w4262-header-inner {
  max-width: 430px; margin: 0 auto; padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.w4262-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.w4262-brand img { width: 30px; height: 30px; border-radius: 6px; }
.w4262-brand-name {
  font-size: 18px; font-weight: 800; letter-spacing: 0.3px; color: var(--w4262-gold);
  white-space: nowrap;
}
.w4262-brand-name span { color: var(--w4262-primary); }
.w4262-header-actions { display: flex; align-items: center; gap: 8px; }
.w4262-icon-btn {
  background: transparent; border: 0; color: var(--w4262-text); font-size: 22px;
  width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.w4262-icon-btn:active { transform: scale(0.92); background: rgba(255, 255, 255, 0.08); }

.w4262-btn {
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 700;
  font-size: 13px; padding: 9px 16px; color: #1c1408;
  background: linear-gradient(180deg, var(--w4262-gold), var(--w4262-amber));
  box-shadow: 0 4px 14px rgba(255, 191, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w4262-btn:hover { color: #1c1408; transform: translateY(-1px); }
.w4262-btn:active { transform: scale(0.96); }
.w4262-btn--primary {
  background: linear-gradient(180deg, var(--w4262-primary), var(--w4262-accent));
  color: #fff; box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4);
}
.w4262-btn--ghost {
  background: transparent; color: var(--w4262-text);
  border: 1px solid var(--w4262-line); box-shadow: none;
}
.w4262-btn--ghost:hover { color: var(--w4262-gold); }
.w4262-btn--lg { padding: 13px 28px; font-size: 15px; }

/* ---------- Mobile menu ---------- */
.w4262-menu {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 12, 18, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.w4262-menu--open { opacity: 1; pointer-events: auto; }
.w4262-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px;
  background: var(--w4262-bg-3); padding: 22px 18px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.25s ease;
  border-left: 1px solid var(--w4262-line);
}
.w4262-menu--open .w4262-menu-panel { transform: translateX(0); }
.w4262-menu-title {
  font-size: 14px; color: var(--w4262-text-muted); margin: 18px 0 8px;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.w4262-menu-link {
  display: block; padding: 12px 12px; border-radius: 10px; color: var(--w4262-text);
  font-size: 14px; border: 1px solid transparent;
}
.w4262-menu-link:hover { background: rgba(255, 165, 0, 0.08); border-color: var(--w4262-line); color: var(--w4262-gold); }
.w4262-menu-close {
  position: absolute; top: 12px; right: 12px;
}

/* ---------- Main spacer ---------- */
.w4262-main { padding-top: 62px; }
@media (max-width: 768px) {
  .w4262-main { padding-bottom: 80px; }
}

/* ---------- Hero carousel ---------- */
.w4262-hero {
  position: relative; margin: 14px 0; border-radius: var(--w4262-radius);
  overflow: hidden; box-shadow: var(--w4262-shadow);
}
.w4262-slides { position: relative; }
.w4262-slide {
  display: none; position: relative; cursor: pointer;
}
.w4262-slide--active { display: block; }
.w4262-slide img { width: 100%; height: 190px; object-fit: cover; }
.w4262-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
}
.w4262-slide-cap h2 { margin: 0 0 4px; font-size: 18px; color: var(--w4262-gold); }
.w4262-slide-cap p { margin: 0; font-size: 12px; color: var(--w4262-text-muted); }
.w4262-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5); border: 0; color: #fff;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.w4262-arrow--prev { left: 8px; }
.w4262-arrow--next { right: 8px; }
.w4262-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.w4262-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4);
  border: 0; cursor: pointer; padding: 0;
}
.w4262-dot--active { background: var(--w4262-gold); }

/* ---------- Section headings ---------- */
.w4262-section { margin: 22px 0; }
.w4262-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.w4262-section-title {
  font-size: 18px; font-weight: 800; margin: 0; color: var(--w4262-text);
  display: flex; align-items: center; gap: 8px;
}
.w4262-section-title i { color: var(--w4262-primary); }
.w4262-section-more { font-size: 12px; color: var(--w4262-gold); }

.w4262-h1 {
  font-size: 22px; font-weight: 800; margin: 18px 0 6px; line-height: 1.3;
  color: var(--w4262-text);
}
.w4262-h1 span { color: var(--w4262-gold); }
.w4262-lead { color: var(--w4262-text-muted); font-size: 13px; margin: 0 0 12px; }

.w4262-h2 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; color: var(--w4262-text); }
.w4262-h2 span { color: var(--w4262-gold); }
.w4262-h3 { font-size: 15px; font-weight: 700; margin: 14px 0 6px; color: var(--w4262-amber); }

/* ---------- Game grid ---------- */
.w4262-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (min-width: 400px) { .w4262-grid { gap: 12px; } }
.w4262-card {
  background: var(--w4262-card); border: 1px solid var(--w4262-line);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.w4262-card:hover { transform: translateY(-2px); border-color: var(--w4262-primary); box-shadow: var(--w4262-shadow); }
.w4262-card:active { transform: scale(0.97); }
.w4262-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0a0f15; }
.w4262-card-name {
  font-size: 11px; text-align: center; padding: 6px 4px; color: var(--w4262-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 26px;
}
.w4262-card-badge {
  position: absolute; top: 6px; left: 6px; background: var(--w4262-accent);
  color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}

/* ---------- Promo / feature blocks ---------- */
.w4262-card-wide {
  background: var(--w4262-card); border: 1px solid var(--w4262-line);
  border-radius: var(--w4262-radius); padding: 14px; margin: 10px 0;
  box-shadow: var(--w4262-shadow);
}
.w4262-promo {
  background: linear-gradient(120deg, rgba(255, 165, 0, 0.16), rgba(255, 87, 34, 0.12));
  border: 1px solid rgba(255, 191, 0, 0.35);
  border-radius: var(--w4262-radius); padding: 16px; margin: 12px 0;
  display: flex; gap: 12px; align-items: center;
}
.w4262-promo-icon {
  font-size: 30px; color: var(--w4262-gold); flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 215, 0, 0.12);
}
.w4262-promo-body h3 { margin: 0 0 4px; font-size: 15px; color: var(--w4262-text); }
.w4262-promo-body p { margin: 0 0 8px; font-size: 12px; color: var(--w4262-text-muted); }

.w4262-feature-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0;
}
.w4262-feature {
  background: var(--w4262-card); border: 1px solid var(--w4262-line);
  border-radius: 12px; padding: 12px;
}
.w4262-feature i { font-size: 24px; color: var(--w4262-primary); }
.w4262-feature h4 { margin: 6px 0 4px; font-size: 13px; color: var(--w4262-text); }
.w4262-feature p { margin: 0; font-size: 11px; color: var(--w4262-text-muted); }

/* ---------- RTP table ---------- */
.w4262-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.w4262-table th, .w4262-table td {
  padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--w4262-line);
}
.w4262-table th { color: var(--w4262-gold); font-weight: 700; }
.w4262-table td .w4262-bar {
  display: inline-block; height: 6px; background: var(--w4262-bg-3); border-radius: 6px; overflow: hidden; width: 70px; vertical-align: middle;
}
.w4262-table td .w4262-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--w4262-primary), var(--w4262-gold)); }

/* ---------- Testimonials ---------- */
.w4262-testi {
  background: var(--w4262-card); border-radius: 12px; padding: 12px; margin: 8px 0;
  border-left: 3px solid var(--w4262-primary);
}
.w4262-testi-stars { color: var(--w4262-gold); font-size: 12px; letter-spacing: 1px; }
.w4262-testi p { margin: 6px 0; font-size: 12px; color: var(--w4262-text); }
.w4262-testi span { font-size: 11px; color: var(--w4262-text-muted); }

/* ---------- Winners ---------- */
.w4262-winner {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed var(--w4262-line); font-size: 12px;
}
.w4262-winner img { width: 32px; height: 32px; border-radius: 50%; }
.w4262-winner b { color: var(--w4262-gold); }

/* ---------- Payments ---------- */
.w4262-pay-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.w4262-pay {
  flex: 1 1 30%; min-width: 90px; text-align: center;
  background: var(--w4262-card); border: 1px solid var(--w4262-line);
  border-radius: 10px; padding: 10px; font-size: 11px; color: var(--w4262-text-muted);
}
.w4262-pay i { font-size: 22px; color: var(--w4262-primary); display: block; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.w4262-faq-item {
  background: var(--w4262-card); border: 1px solid var(--w4262-line);
  border-radius: 10px; margin: 8px 0; overflow: hidden;
}
.w4262-faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 12px; color: var(--w4262-text); font-size: 13px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.w4262-faq-q i { color: var(--w4262-primary); transition: transform 0.2s ease; }
.w4262-faq-item--open .w4262-faq-q i { transform: rotate(180deg); }
.w4262-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  padding: 0 12px; color: var(--w4262-text-muted); font-size: 12px;
}
.w4262-faq-item--open .w4262-faq-a { max-height: 320px; padding: 0 12px 12px; }

/* ---------- Steps ---------- */
.w4262-steps { counter-reset: step; margin: 8px 0; }
.w4262-step { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--w4262-line); }
.w4262-step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(180deg, var(--w4262-primary), var(--w4262-accent));
  color: #fff; font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.w4262-step h4 { margin: 0 0 2px; font-size: 13px; color: var(--w4262-text); }
.w4262-step p { margin: 0; font-size: 12px; color: var(--w4262-text-muted); }

/* ---------- CTA band ---------- */
.w4262-cta {
  background: radial-gradient(circle at 30% 20%, rgba(255, 165, 0, 0.25), transparent 60%),
              linear-gradient(135deg, var(--w4262-bg-3), var(--w4262-bg));
  border: 1px solid rgba(255, 191, 0, 0.35);
  border-radius: var(--w4262-radius); padding: 20px; text-align: center; margin: 16px 0;
}
.w4262-cta h3 { margin: 0 0 6px; color: var(--w4262-gold); font-size: 18px; }
.w4262-cta p { margin: 0 0 14px; color: var(--w4262-text-muted); font-size: 13px; }

/* ---------- Article prose ---------- */
.w4262-prose p { font-size: 13px; color: var(--w4262-text); margin: 0 0 10px; }
.w4262-prose strong { color: var(--w4262-gold); }
.w4262-prose a { color: var(--w4262-amber); border-bottom: 1px dotted var(--w4262-amber); }
.w4262-prose ul { margin: 6px 0 10px; padding-left: 18px; }
.w4262-prose li { font-size: 13px; color: var(--w4262-text); margin: 3px 0; }

/* ---------- Footer ---------- */
.w4262-footer {
  background: var(--w4262-bg-3); border-top: 2px solid var(--w4262-primary);
  margin-top: 24px; padding: 22px 0 4px;
}
.w4262-footer p { font-size: 12px; color: var(--w4262-text-muted); margin: 0 0 12px; }
.w4262-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.w4262-footer h4 { font-size: 13px; color: var(--w4262-gold); margin: 0 0 6px; }
.w4262-footer a { display: block; font-size: 12px; color: var(--w4262-text-muted); padding: 3px 0; }
.w4262-footer a:hover { color: var(--w4262-amber); }
.w4262-footer-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.w4262-footer-copy { font-size: 11px; color: var(--w4262-text-muted); padding-top: 10px; border-top: 1px solid var(--w4262-line); }

/* ---------- Bottom nav ---------- */
.w4262-bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--w4262-bg), var(--w4262-bg-3));
  border-top: 2px solid var(--w4262-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.w4262-bnav-btn {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: 0;
  color: var(--w4262-text-muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; padding: 4px 2px; position: relative;
}
.w4262-bnav-btn .material-icons,
.w4262-bnav-btn ion-icon,
.w4262-bnav-btn i { font-size: 22px; }
.w4262-bnav-btn:active { transform: scale(0.92); }
.w4262-bnav-btn--active { color: var(--w4262-gold); }
.w4262-bnav-btn--active::before {
  content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px;
  background: linear-gradient(90deg, var(--w4262-primary), var(--w4262-gold)); border-radius: 0 0 4px 4px;
}
.w4262-bnav-badge {
  position: absolute; top: 4px; right: 18px; background: var(--w4262-accent); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Utility ---------- */
.w4262-text-center { text-align: center; }
.w4262-mt-12 { margin-top: 12px; }
.w4262-mt-16 { margin-top: 16px; }
.w4262-row { display: flex; gap: 10px; flex-wrap: wrap; }
.w4262-chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px;
  background: rgba(255, 165, 0, 0.14); color: var(--w4262-gold); border: 1px solid rgba(255, 191, 0, 0.3);
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { background: var(--w4262-bg-2); }
  .w4262-header-inner { max-width: 960px; }
  .w4262-container { max-width: 960px; }
  .w4262-grid { grid-template-columns: repeat(6, 1fr); }
  .w4262-feature-row { grid-template-columns: repeat(4, 1fr); }
  .w4262-bnav { display: none; }
  .w4262-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .w4262-main { padding-bottom: 0; }
}
