/* ==========================================================================
   KHELOGAME — khelogame.live
   Vibrant arcade design system. Righteous headings + Prompt body.
   Bold red on soft mint. Retro-gaming "Khelo" energy.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --primary: #e63946;        /* bold red */
  --primary-dark: #c62531;
  --primary-light: #ff6b78;
  --secondary: #1d3557;      /* dark navy */
  --secondary-light: #2a4a73;
  --bg-body: #f1faee;        /* soft mint */
  --bg-dark: #1d3557;        /* dark navy */
  --bg-card: #ffffff;
  --accent: #457b9d;         /* steel blue */
  --accent-light: #a8dadc;   /* pale cyan */

  /* From the logo — arcade gold + teal */
  --gold: #f5b820;
  --gold-dark: #e0a012;
  --teal: #1a7f95;

  /* Ink / text */
  --ink: #16233b;
  --text: #2b3a52;
  --muted: #5f7085;
  --on-dark: #eaf2f7;
  --on-dark-muted: #a9bdd2;

  /* Lines & surfaces */
  --line: #e4ede8;
  --line-2: #d3e0d9;
  --surface-mint: #e8f4ea;

  /* Radius */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 2px 10px rgba(29,53,87,.08);
  --sh: 0 12px 30px rgba(29,53,87,.12);
  --sh-lg: 0 26px 60px rgba(29,53,87,.20);
  --sh-primary: 0 14px 30px rgba(230,57,70,.34);
  --sh-gold: 0 14px 30px rgba(245,184,32,.34);

  /* Layout */
  --container: 1160px;
  --header-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Prompt", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary); }
ul, ol { padding-left: 1.15em; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: "Righteous", "Prompt", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.08;
  color: var(--secondary);
  letter-spacing: .3px;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.08rem; letter-spacing: .5px; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); font-weight: 400; }
.text-gold { color: var(--gold); }
.text-red { color: var(--primary); }
.text-white { color: #fff; }

/* ---------- Layout utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--mint { background: var(--surface-mint); }
.section--dark { background: var(--bg-dark); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.grid { display: grid; gap: 26px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* Section heading block */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Prompt", sans-serif; font-weight: 600; font-size: .78rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary);
  background: rgba(230,57,70,.1);
  padding: 7px 15px; border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245,184,32,.25); }
.section--dark .eyebrow { color: var(--gold); background: rgba(245,184,32,.14); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 14px; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Prompt", sans-serif; font-weight: 600; font-size: .98rem;
  letter-spacing: .4px;
  padding: 15px 30px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: var(--sh-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  cursor: pointer; text-align: center; line-height: 1.1;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-3px); color: var(--btn-fg); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { --btn-bg: var(--primary); box-shadow: var(--sh-primary); }
.btn--primary:hover { --btn-bg: var(--primary-dark); box-shadow: 0 18px 38px rgba(230,57,70,.42); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--secondary); box-shadow: var(--sh-gold); }
.btn--gold:hover { --btn-bg: var(--gold-dark); }
.btn--navy { --btn-bg: var(--secondary); }
.btn--navy:hover { --btn-bg: var(--secondary-light); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--secondary); }
.btn--white:hover { --btn-bg: #fff; box-shadow: var(--sh); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--secondary);
  border-color: var(--line-2); box-shadow: none;
}
.btn--ghost:hover { border-color: var(--primary); --btn-fg: var(--primary); }
.section--dark .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover { --btn-fg: var(--secondary); --btn-bg: #fff; border-color: #fff; }
.btn--lg { padding: 17px 38px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--wa { --btn-bg: #25D366; --btn-fg: #06381c; box-shadow: 0 14px 30px rgba(37,211,102,.34); }
.btn--wa:hover { --btn-bg: #1eba59; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--sh-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: "Prompt", sans-serif; font-weight: 500; font-size: .98rem;
  color: var(--secondary); padding: 10px 16px; border-radius: var(--r-pill);
  position: relative; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--primary); background: rgba(230,57,70,.08); }
.nav-link.is-active { color: var(--primary); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px;
  background: var(--gold); border-radius: 3px;
}
.nav-cta {
  background: var(--primary); color: #fff !important; font-weight: 600;
  box-shadow: var(--sh-primary); padding: 11px 20px;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
.nav-cta.is-active::after { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--secondary); border-radius: 3px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(245,184,32,.20), transparent 60%),
    radial-gradient(760px 520px at 95% 10%, rgba(230,57,70,.28), transparent 55%),
    linear-gradient(160deg, #1d3557 0%, #16273f 55%, #142338 100%);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 118px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.4px, transparent 1.4px);
  background-size: 26px 26px; opacity: .6; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .word { color: var(--gold); text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); background: rgba(245,184,32,.12); border: 1px solid rgba(245,184,32,.3);
  padding: 8px 16px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.hero p.lead { color: var(--on-dark-muted); margin: 20px 0 30px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px 34px; margin-top: 38px; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: "Righteous", sans-serif; font-size: 1.7rem; color: var(--gold); line-height: 1; }
.hero-trust span { font-size: .82rem; color: var(--on-dark-muted); letter-spacing: .3px; margin-top: 4px; }

/* Hero visual — stacked game cards */
.hero-visual { position: relative; min-height: 380px; }
.hero-card {
  position: absolute; width: 62%; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); border: 4px solid rgba(255,255,255,.9);
  transition: transform .4s var(--ease);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card--1 { top: 0; left: 6%; transform: rotate(-6deg); z-index: 3; }
.hero-card--2 { top: 20%; right: 2%; transform: rotate(5deg); z-index: 2; width: 58%; }
.hero-card--3 { bottom: -4%; left: 22%; transform: rotate(-2deg); z-index: 1; width: 56%; }
.hero-visual:hover .hero-card--1 { transform: rotate(-8deg) translateY(-6px); }
.hero-visual:hover .hero-card--2 { transform: rotate(7deg) translateY(-6px); }
.hero-badge {
  position: absolute; z-index: 4; bottom: 8%; right: -2%;
  background: var(--primary); color: #fff; font-family: "Righteous", sans-serif;
  padding: 14px 20px; border-radius: 18px; box-shadow: var(--sh-primary);
  transform: rotate(-4deg); text-align: center; line-height: 1;
}
.hero-badge b { display: block; font-size: 1.5rem; }
.hero-badge span { font-size: .68rem; letter-spacing: 1px; opacity: .9; font-family: "Prompt"; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--gold); color: var(--secondary); overflow: hidden; white-space: nowrap;
  border-top: 3px solid var(--secondary); border-bottom: 3px solid var(--secondary);
}
.marquee-track { display: inline-flex; align-items: center; gap: 0; will-change: transform; animation: marquee 26s linear infinite; }
.marquee span { font-family: "Righteous", sans-serif; font-size: 1rem; padding: 13px 26px; display: inline-flex; align-items: center; gap: 12px; letter-spacing: .5px; }
.marquee span::after { content: "◆"; color: var(--primary); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Cards / features ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--bg-card); border-radius: var(--r-lg); padding: 32px 28px;
  box-shadow: var(--sh-sm); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--card-accent, var(--primary)); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.card:hover::before { transform: scaleX(1); }
.card-ico {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--card-accent, var(--primary)); color: #fff; margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}
.card-ico svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.card .card-link { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.card .card-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }
.card--gold { --card-accent: var(--gold); }
.card--gold .card-ico { color: var(--secondary); }
.card--navy { --card-accent: var(--secondary); }
.card--accent { --card-accent: var(--accent); }

/* ---------- Game showcase ---------- */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.game {
  border-radius: var(--r-lg); overflow: hidden; background: var(--bg-card);
  box-shadow: var(--sh-sm); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.game:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.game-thumb { position: relative; overflow: hidden; aspect-ratio: 7 / 5; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.game:hover .game-thumb img { transform: scale(1.06); }
.game-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--primary); color: #fff; font-weight: 600; font-size: .72rem;
  letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill);
}
.game-body { padding: 20px 22px; }
.game-body h3 { margin-bottom: 6px; }
.game-body p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: "Righteous", sans-serif; font-size: 2.6rem; color: transparent;
  -webkit-text-stroke: 2px var(--accent); line-height: 1; margin-bottom: 12px; display: block;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.section--dark .step p { color: var(--on-dark-muted); }
.section--dark .step-num { -webkit-text-stroke-color: var(--gold); }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; background: rgba(255,255,255,.06); border-radius: var(--r); border: 1px solid rgba(255,255,255,.08); }
.stat b { font-family: "Righteous", sans-serif; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--gold); display: block; line-height: 1; }
.stat span { font-size: .9rem; color: var(--on-dark-muted); margin-top: 8px; display: block; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--r-lg); box-shadow: var(--sh); border: 4px solid #fff; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--primary); margin-top: 3px; }
.check-list b { color: var(--secondary); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 80% 20%, rgba(245,184,32,.35), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, #b81f2c 100%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 68px);
  text-align: center; position: relative; overflow: hidden; box-shadow: var(--sh-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 52ch; margin: 16px auto 30px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s; }
.faq-item.is-open { box-shadow: var(--sh); border-color: var(--accent-light); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; text-align: left; font-family: "Prompt", sans-serif; font-weight: 600;
  font-size: 1.05rem; color: var(--secondary);
}
.faq-q .faq-ico { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-mint); color: var(--primary); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; font-size: 1.2rem; }
.faq-item.is-open .faq-ico { background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- Forms (login / signup) ---------- */
.auth { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; min-height: calc(100vh - var(--header-h)); }
.auth-aside {
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(245,184,32,.22), transparent 60%),
    linear-gradient(160deg, #1d3557, #142338);
  color: var(--on-dark); padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-aside::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.06) 1.4px, transparent 1.4px); background-size: 24px 24px; opacity:.5; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand-logo { height: 46px; margin-bottom: 34px; }
.auth-aside h1 { color: #fff; margin-bottom: 16px; }
.auth-aside p { color: var(--on-dark-muted); }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 13px; align-items: flex-start; color: var(--on-dark); }
.auth-points svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(36px, 6vw, 72px) 22px; background: var(--bg-body); }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h2 { margin-bottom: 8px; }
.auth-form > p { color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .92rem; color: var(--secondary); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(69,123,157,.14); }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.form-aux { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; font-size: .9rem; flex-wrap: wrap; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .9rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: .95rem; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: .85rem; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line-2); flex: 1; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 18px; text-align: center; }
.form-msg { display:none; padding: 12px 16px; border-radius: var(--r-sm); font-size: .92rem; margin-bottom: 18px; }
.form-msg.is-show { display: block; }
.form-msg--ok { background: rgba(37,211,102,.14); color: #12703a; border: 1px solid rgba(37,211,102,.3); }

/* ---------- Tool shell ---------- */
.tool-hero {
  background: linear-gradient(160deg, #1d3557, #16273f); color: var(--on-dark);
  padding: clamp(48px, 7vw, 82px) 0 clamp(52px, 7vw, 88px); text-align: center; position: relative; overflow: hidden;
}
.tool-hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.06) 1.4px, transparent 1.4px); background-size: 26px 26px; opacity:.5; }
.tool-hero .container { position: relative; z-index: 1; }
.tool-hero h1 { color: #fff; }
.tool-hero p { color: var(--on-dark-muted); max-width: 60ch; margin: 16px auto 0; }
.tool-wrap { max-width: 760px; margin: -56px auto 0; position: relative; z-index: 5; padding-inline: 22px; }
.tool-card { background: var(--bg-card); border-radius: var(--r-lg); box-shadow: var(--sh-lg); border: 1px solid var(--line); padding: clamp(26px, 4vw, 44px); }
.tool-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: .88rem; }

/* Progress */
.progress { height: 10px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 26px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--gold)); border-radius: inherit; transition: width .4s var(--ease); }

/* Quiz */
.q-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.q-meta .q-score { color: var(--primary); font-weight: 600; }
.q-text { font-family: "Righteous", sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--secondary); line-height: 1.25; margin-bottom: 22px; }
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff;
  color: var(--ink); font-weight: 500; transition: border-color .2s var(--ease), background .2s, transform .1s;
}
.option:hover:not(:disabled) { border-color: var(--accent); transform: translateX(3px); }
.option .opt-key { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-mint); color: var(--secondary); display: grid; place-items: center; font-family: "Righteous", sans-serif; flex-shrink: 0; transition: background .2s, color .2s; }
.option.correct { border-color: #25a35a; background: rgba(37,211,102,.1); }
.option.correct .opt-key { background: #25a35a; color: #fff; }
.option.wrong { border-color: var(--primary); background: rgba(230,57,70,.08); }
.option.wrong .opt-key { background: var(--primary); color: #fff; }
.option:disabled { cursor: default; }
.explain { margin-top: 18px; padding: 16px 18px; border-radius: var(--r); background: var(--surface-mint); border-left: 4px solid var(--accent); font-size: .95rem; color: var(--text); display: none; }
.explain.is-show { display: block; animation: fadeUp .3s var(--ease); }
.explain b { color: var(--secondary); }
.tool-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* Result screen */
.result { text-align: center; display: none; }
.result.is-show { display: block; animation: fadeUp .4s var(--ease); }
.result-ring { width: 150px; height: 150px; margin: 0 auto 20px; position: relative; display: grid; place-items: center; }
.result-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.result-ring b { font-family: "Righteous", sans-serif; font-size: 2.4rem; color: var(--secondary); }
.result-ring b small { display: block; font-size: .8rem; color: var(--muted); font-family: "Prompt"; }
.result h2 { margin-bottom: 8px; }
.result .verdict { color: var(--primary); font-weight: 600; margin-bottom: 8px; font-size: 1.1rem; }

/* Jackpot */
.jackpot-pool { text-align: center; margin-bottom: 30px; }
.jackpot-pool .pool-label { font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.jackpot-pool .pool-amount { font-family: "Righteous", sans-serif; font-size: clamp(2.4rem, 7vw, 4rem); color: var(--primary); line-height: 1; margin: 8px 0; text-shadow: 0 3px 0 rgba(230,57,70,.15); }
.jackpot-pool .pool-sub { color: var(--muted); font-size: .92rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 26px; }
.countdown.countdown--3 { grid-template-columns: repeat(3, 1fr); }
.cd-unit { background: var(--secondary); color: #fff; border-radius: var(--r); padding: 18px 8px; text-align: center; position: relative; overflow: hidden; }
.cd-unit::after { content:""; position:absolute; top:0; left:0; right:0; height:50%; background: rgba(255,255,255,.06); }
.cd-unit b { font-family: "Righteous", sans-serif; font-size: clamp(1.8rem, 6vw, 2.8rem); display: block; line-height: 1; position: relative; }
.cd-unit span { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 8px; display: block; position: relative; }
.jackpot-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.jp-fact { background: var(--surface-mint); border-radius: var(--r); padding: 16px; text-align: center; }
.jp-fact b { font-family: "Righteous", sans-serif; color: var(--secondary); font-size: 1.3rem; display: block; }
.jp-fact span { font-size: .82rem; color: var(--muted); }

/* Recommender */
.rec-step { display: none; }
.rec-step.is-active { display: block; animation: fadeUp .35s var(--ease); }
.rec-q { font-family: "Righteous", sans-serif; font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--secondary); margin-bottom: 6px; }
.rec-help { color: var(--muted); margin-bottom: 22px; }
.rec-options { display: grid; gap: 12px; }
.rec-opt {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px solid var(--line-2);
  border-radius: var(--r); background: #fff; text-align: left; transition: border-color .2s var(--ease), transform .12s, box-shadow .2s;
}
.rec-opt:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.rec-opt .rec-emoji { font-size: 1.8rem; flex-shrink: 0; }
.rec-opt b { display: block; color: var(--secondary); font-size: 1.05rem; }
.rec-opt small { color: var(--muted); }
.rec-result { display: none; text-align: center; }
.rec-result.is-show { display: block; animation: fadeUp .4s var(--ease); }
.rec-badge { display: inline-block; background: var(--gold); color: var(--secondary); font-weight: 600; padding: 6px 16px; border-radius: var(--r-pill); font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.rec-pick { font-family: "Righteous", sans-serif; font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--primary); margin-bottom: 10px; }
.rec-why { background: var(--surface-mint); border-radius: var(--r); padding: 20px 22px; text-align: left; margin: 22px 0; }
.rec-why h4 { color: var(--secondary); margin-bottom: 8px; }
.rec-why p { margin-bottom: 0; color: var(--text); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin: 38px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1rem; display: grid; gap: 8px; }
.prose a { font-weight: 500; }
.legal-updated { display: inline-block; background: var(--surface-mint); color: var(--secondary); font-size: .85rem; font-weight: 500; padding: 8px 16px; border-radius: var(--r-pill); margin-bottom: 8px; }
.toc { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; margin: 26px 0 34px; }
.toc h4 { margin-bottom: 12px; }
.toc ol { margin: 0; }
.toc a { color: var(--accent); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(160deg, #1d3557, #16273f); color: var(--on-dark); padding: clamp(48px, 7vw, 76px) 0; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.055) 1.4px, transparent 1.4px); background-size: 26px 26px; opacity:.5; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--on-dark-muted); margin-top: 12px; max-width: 62ch; }
.crumbs { font-size: .85rem; color: var(--on-dark-muted); margin-bottom: 14px; }
.crumbs a { color: var(--accent-light); }
.crumbs span { opacity: .6; margin: 0 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--on-dark-muted); padding-top: clamp(48px, 6vw, 72px); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 2.5fr; gap: 44px; align-items: start; padding-bottom: 40px; }
.footer-brand .brand-logo { height: 42px; margin-bottom: 18px; }
.footer-brand p { max-width: 46ch; color: var(--on-dark-muted); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.footer-col h4 { color: #fff; font-family: "Prompt"; font-weight: 600; font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--on-dark-muted); padding: 6px 0; font-size: .96rem; }
.footer-col a:hover { color: var(--gold); }
.footer-wa { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: #fff; font-weight: 500; }
.footer-wa svg { width: 22px; height: 22px; color: #25D366; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .86rem; color: var(--on-dark-muted); }
.footer-legal { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.footer-legal a { color: var(--on-dark-muted); font-size: .86rem; }
.footer-legal a:hover { color: var(--gold); }
.age-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(230,57,70,.16); color: #ff8a94; font-weight: 600; font-size: .78rem; padding: 5px 12px; border-radius: var(--r-pill); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.5);
  transition: transform .25s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.4s infinite; }
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
/* Default visible for no-JS / crawlers; the hidden state only applies once the
   inline head script adds .js-anim, so content is never lost without JS. */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 320px; max-width: 460px; margin-inline: auto; width: 100%; }
  .cards, .games, .jackpot-info { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside { padding: 48px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px 22px 24px; gap: 6px; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh); transform: translateY(-140%); transition: transform .35s var(--ease); z-index: 99;
  }
  .main-nav.is-open { transform: translateY(0); }
  .nav-link { padding: 14px 16px; border-radius: var(--r-sm); }
  .nav-link.is-active::after { display: none; }
  .nav-cta { text-align: center; margin-top: 4px; }
  .cards, .games, .jackpot-info, .countdown { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cards, .games, .stats, .steps { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .hero-trust { gap: 18px 26px; }
  .tool-actions { flex-direction: column; }
  .tool-actions .btn { width: 100%; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
