/* ===== DESIGN TOKENS ===== */
:root {
  --bg:       #071A16;
  --surface:  #123D32;
  --surface2: #245E4D;
  --accent:   #A8FF35;
  --accent-d: #7ACC1A;
  --text:     #F4FFF9;
  --muted:    #A8C4B8;
  --border:   #1E5040;
  --radius:   12px;
  --radius-s: 8px;
  --font-h:   'Syne', system-ui, sans-serif;
  --font-b:   'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.4em; }

/* ===== WRAP ===== */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,.45);
  height: 64px;
}
.hdr-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-link img { height: 34px; width: auto; }
.flag { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.hdr-btns { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: var(--radius-s);
  font-family: var(--font-b);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: rgba(168,255,53,.1); }
.btn-primary {
  background: var(--accent);
  color: #071A16;
}
.btn-primary:hover { background: var(--accent-d); box-shadow: 0 0 16px rgba(168,255,53,.4); }
.btn-lg { padding: 12px 30px; font-size: 1rem; }

/* ===== BANNER ===== */
.banner-section {
  max-width: 1180px;
  margin: 18px auto 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 330px;
}
.banner img.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 330px;
  display: block;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(7,26,22,.95) 0%,
    rgba(7,26,22,.72) 45%,
    rgba(7,26,22,.18) 100%);
  display: flex;
  align-items: flex-end;
  padding: 30px 36px;
}
.banner h1 {
  font-family: var(--font-h);
  font-size: clamp(1.25rem, 2.8vw, 2.05rem);
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(0,0,0,.9), 0 0 40px rgba(7,26,22,.9);
  text-wrap: balance;
  line-height: 1.22;
  max-width: 680px;
}
.banner h1 span { color: var(--accent); }

/* ===== PAGE BODY ===== */
.page-body { padding-block: 30px 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 28px;
  align-items: start;
}

/* ===== ARTICLE ===== */
article { min-width: 0; }

.intro {
  font-size: 1.04rem;
  line-height: 1.78;
  margin-bottom: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

article h2 {
  font-family: var(--font-h);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--accent);
  margin: 44px 0 14px;
  text-wrap: balance;
  line-height: 1.28;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surface2);
}
article h3 {
  font-family: var(--font-h);
  font-size: clamp(.98rem, 2vw, 1.17rem);
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
  text-wrap: balance;
  line-height: 1.35;
}
article p { margin-bottom: 15px; font-size: .97rem; line-height: 1.74; }
article p:last-child { margin-bottom: 0; }
article strong { color: var(--accent); font-weight: 600; }
article em { color: var(--muted); font-style: italic; }

article ul { margin: 8px 0 14px; }
article ul li { margin-bottom: 5px; font-size: .97rem; }

/* ===== ARTICLE IMAGES ===== */
.art-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px 0;
}
.art-img figure { margin: 0; text-align: center; width: 100%; }
.art-img img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 380px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.45);
  display: block;
  margin: 0 auto;
}
figcaption {
  margin-top: 7px;
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
}

/* ===== TABLE ===== */
.tbl-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
  min-width: 540px;
}
thead { background: var(--surface); }
th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-h);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
td {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
tr:nth-child(even) td { background: rgba(18,61,50,.28); }

/* ===== CTA IN ARTICLE ===== */
.art-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
}

/* ===== FAQ ===== */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-b);
  font-size: .97rem;
  font-weight: 600;
  text-align: left;
  padding: 17px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color .18s;
}
.faq-btn:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: .95rem;
  font-weight: 700;
  transition: transform .28s;
  line-height: 1;
  padding-bottom: 1px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 18px;
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.72;
}
.faq-item.open .faq-answer { display: block; }

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 80px);
}
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.widget-head {
  background: var(--surface2);
  padding: 11px 15px;
  font-family: var(--font-h);
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.w-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px rgba(168,255,53,.7));
}
.widget-body { padding: 14px 15px; }

/* Quick Facts */
.qf-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.qf-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.qf-row:last-child { border-bottom: none; padding-bottom: 0; }
.qf-label { color: var(--muted); flex-shrink: 0; max-width: 42%; }
.qf-val { color: var(--text); font-weight: 600; text-align: right; line-height: 1.4; }
.qf-val.hi { color: var(--accent); }

/* Odds widget */
.slots-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.slots-table thead th {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 0 6px 7px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.slots-table tbody tr { border-bottom: 1px solid var(--border); }
.slots-table tbody tr:last-child { border-bottom: none; }
.slots-table td {
  padding: 8px 6px;
  font-size: .78rem;
  vertical-align: middle;
}
.slot-name { font-weight: 600; color: var(--text); }
.slot-prov { font-size: .68rem; color: var(--muted); margin-top: 1px; }
.rtp-val { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.vol-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vol-high { background: rgba(255,80,80,.15); color: #ff6b6b; }
.vol-med  { background: rgba(255,180,60,.15); color: #ffb43c; }
.vol-low  { background: rgba(168,255,53,.15);  color: var(--accent); }
.widget-note {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}
.widget-cta { padding: 12px 15px; border-top: 1px solid var(--border); }
.widget-cta .btn { display: block; width: 100%; text-align: center; padding: 9px 16px; font-size: .87rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 1180px;
  margin: 36px auto 0;
  padding-block: 18px 16px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-icons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.footer-icons img { max-height: 52px; width: auto; display: block; }
.footer-info {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.72;
}
.footer-info p { margin-bottom: 7px; }
.footer-info p:last-child { margin-bottom: 0; }
.age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  font-weight: 700;
  font-size: .9rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* ===== STICKY CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  z-index: 200;
}
.sticky-cta .btn { box-shadow: 0 4px 22px rgba(168,255,53,.42); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  header { height: 52px; border-left: none; border-right: none; }
  .logo-link img { height: 26px; }
  .btn { padding: 7px 14px; font-size: .82rem; }
  .btn-lg { padding: 10px 20px; font-size: .92rem; }

  .banner-section {
    padding-left: 0;
    padding-right: 0;
    margin-top: 12px;
    max-width: none;
  }
  .banner { border-radius: 0; max-height: 200px; }
  .banner img.banner-img { max-height: 200px; }
  .banner-overlay { padding: 14px 16px; }
  .banner h1 { font-size: clamp(1rem, 5vw, 1.4rem); }

  .page-body { padding-block: 16px 0; }
  .page-body .wrap {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  article p, article ul li { font-size: .95rem; }
  article h2 { font-size: clamp(1.08rem, 4.5vw, 1.3rem); }
  article h3 { font-size: clamp(.96rem, 3.5vw, 1.1rem); }

  .art-img img { max-height: 240px; }
  .art-cta { flex-direction: column; }
  .art-cta .btn { width: 100%; }

  .sticky-cta { bottom: max(12px, env(safe-area-inset-bottom, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
  .sticky-cta .btn { font-size: .86rem; padding: 10px 18px; }

  /* ── Footer mobile ── */
  footer { border-radius: 0; border-left: none; border-right: none; padding-block: 12px 10px; }
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: "icons . badge" "text text text";
    gap: 6px 10px;
  }
  .footer-icons { grid-area: icons; }
  .footer-icons img { max-height: 36px; }
  .age-badge { grid-area: badge; width: 36px; height: 36px; font-size: .72rem; }
  .footer-info { grid-area: text; font-size: .68rem; text-align: center; line-height: 1.5; }

  /* ── Slots widget mobile ── */
  .slots-table thead th:last-child,
  .slots-table td:last-child { display: none; }
  .slots-table { table-layout: fixed; }
  .slots-table th:first-child, .slots-table td:first-child { width: auto; }
  .slots-table th:nth-child(2), .slots-table td:nth-child(2) { width: 58px; text-align: right; white-space: nowrap; }
}

@media (max-width: 380px) {
  .btn { padding: 6px 10px; font-size: .78rem; }
  .hdr-btns { gap: 5px; }
  .flag { font-size: 1.1rem; }
  .banner h1 { font-size: 1rem; }
  article p, article ul li { font-size: .92rem; }
  .banner { max-height: 140px; }
  .banner img.banner-img { max-height: 140px; }
}

/* ===== NAV MENU ===== */
.main-nav { display: flex; align-items: center; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 6px 13px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-s);
  transition: color .18s, background .18s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); background: rgba(168,255,53,.08); }

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE NAV DRAWER ===== */
@media (max-width: 760px) {
  .burger { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(7,26,22,.97);
    z-index: 99;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 8px; text-align: center; }
  .main-nav a { font-size: 1.3rem; padding: 12px 32px; }
}