/* ============================================================
   GHOST FATHER CASINO — Design System v2
   Premium crypto-casino language (Stake / Roobet / Duelbits / Rollbit):
     - Gold as the primary high-roller accent
     - Deep noir background with subtle spectral teal + mafia wine
     - Inter (UI) + Playfair Display (display headings)
     - SVG line icons (Lucide-style), no emoji
     - Tabular numerals for balances/values
   Mobile-first, responsive.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/inter-v20-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/playfair-display-v40-latin-900.woff2') format('woff2');
}

:root {
  /* brand */
  --gold: #d4a24e;
  --gold-bright: #f0c878;
  --gold-deep: #a87828;
  --teal: #5ee0d0;          /* ghost spectral */
  --teal-bright: #8affff;
  --teal-deep: #2a5a58;
  --wine: #c03030;
  --wine-bright: #e85050;
  --wine-deep: #7a1f1f;

  /* surfaces — deep noir, richer than v1 */
  --bg: #0d090b;
  --bg-2: #140d11;
  --panel: #1a1116;
  --panel-2: #221318;
  --line: #2e1a22;
  --line-soft: #26151d;
  --line-gold: rgba(212,162,78,.22);

  /* text */
  --text: #f2ead9;
  --muted: #a7948a;
  --dim: #6e5c54;

  /* states */
  --ok: #3ecf6e;
  --ok-bright: #7fe8a0;
  --bad: #e04848;
  --warn: #e0a048;

  /* glow */
  --glow-gold: 0 0 26px rgba(212,162,78,.32);
  --glow-teal: 0 0 26px rgba(94,224,208,.30);
  --glow-wine: 0 0 26px rgba(192,48,48,.38);

  /* typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(42,90,88,.30) 0%, transparent 60%),
    radial-gradient(900px 520px at 88% 8%, rgba(122,31,31,.22) 0%, transparent 55%),
    radial-gradient(700px 500px at 6% 90%, rgba(168,120,40,.10) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

/* subtle vignette for the noir feel */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,.60) 100%);
}

/* ── SVG icon base ── */
.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  vertical-align: -0.25em;
}

.container { max-width: 1180px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #e0b25c 0%, var(--gold-deep) 100%);
  color: #180f04;
  border: 1px solid rgba(240,200,120,.55);
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  letter-spacing: .8px; text-transform: uppercase;
  transition: all .16s ease;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); box-shadow: var(--glow-gold); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.teal { background: linear-gradient(180deg, #3fa79f 0%, var(--teal-deep) 100%); border-color: rgba(94,224,208,.5); color: #04211e; }
.btn.teal:hover { box-shadow: var(--glow-teal); }

.btn.wine { background: linear-gradient(180deg, var(--wine-bright) 0%, var(--wine-deep) 100%); border-color: rgba(232,80,80,.55); color: #fff; }
.btn.wine:hover { box-shadow: var(--glow-wine); }

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line-gold);
  color: var(--gold-bright);
}
.btn.ghost:hover { border-color: var(--gold); box-shadow: none; background: rgba(212,162,78,.08); }

.btn.block { width: 100%; }
.btn.sm { padding: 9px 16px; font-size: 12px; gap: 6px; }

/* ── Inputs ── */
.input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 13px 15px;
  font-size: 15px; font-family: inherit;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,162,78,.14); }
.input::placeholder { color: var(--dim); }

.field { margin-bottom: 16px; }
.label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 7px; letter-spacing: 1.4px; text-transform: uppercase; }

/* ── Cards / panels ── */
.card {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 12px 34px rgba(0,0,0,.38);
}
.card.teal-border { border-color: rgba(94,224,208,.22); }
.card.wine-border { border-color: rgba(192,48,48,.28); }
.card.gold-border { border-color: var(--line-gold); }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
.alert.err { background: #3a1414; border: 1px solid var(--bad); color: #ffb8b8; }
.alert.ok { background: #10301c; border: 1px solid var(--ok); color: #b8ffc0; }

/* ── Header ── */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13,9,11,.85);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 34px; width: auto; }
.logo .word { font-family: var(--font-display); font-size: 24px; color: var(--gold); letter-spacing: 2px; text-shadow: var(--glow-gold); }
.logo .word .accent { color: var(--wine); }
nav { display: flex; align-items: center; gap: 14px; }
nav a { font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.nav-balance { color: var(--gold-bright); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

/* ── Landing hero ── */
.hero { text-align: center; padding: 60px 18px 44px; position: relative; }
.hero-banner {
  max-width: 720px; margin: 0 auto 26px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-gold);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 60px rgba(212,162,78,.10);
}
.hero-banner img { width: 100%; display: block; }
.hero .eyebrow {
  color: var(--teal); letter-spacing: 5px; font-size: 12px;
  text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 58px);
  letter-spacing: 3px; color: var(--gold);
  text-shadow: 0 0 34px rgba(212,162,78,.4);
  line-height: 1.1;
}
.hero h1 .accent { color: var(--wine); text-shadow: var(--glow-wine); }
.hero .sub { color: var(--muted); font-size: 17px; margin: 16px 0 8px; letter-spacing: .5px; }
.hero .bonus-banner {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 14px 0 26px;
  background: linear-gradient(180deg, rgba(212,162,78,.16), rgba(212,162,78,.06));
  border: 1px solid rgba(212,162,78,.4);
  color: var(--gold-bright);
  border-radius: 999px; padding: 10px 24px; font-size: 15px; font-weight: 700;
}
.hero .bonus-banner .icon { color: var(--gold-bright); }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 36px 0; }
.feature {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature:hover { border-color: rgba(212,162,78,.4); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.feature .icon-wrap {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(212,162,78,.14), rgba(212,162,78,.04));
  border: 1px solid var(--line-gold);
  color: var(--gold-bright);
}
.feature .icon-wrap .icon { width: 26px; height: 26px; }
.feature h3 { color: var(--gold); margin-bottom: 10px; font-size: 16px; font-family: var(--font-display); letter-spacing: 1px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── Auth pages ── */
.auth-wrap { max-width: 430px; margin: 40px auto; }
.auth-wrap h2 { text-align: center; color: var(--gold); font-family: var(--font-display); margin-bottom: 8px; letter-spacing: 2px; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ── Game page / user area ── */
.game-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) {
  .game-layout { grid-template-columns: 300px 1fr; align-items: start; }
}

.balance-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-gold); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 14px; flex-wrap: wrap;
}
.balance-bar .bal-block .label { margin-bottom: 2px; }
.balance-bar .bal {
  color: var(--gold-bright); font-size: 26px; font-weight: 800;
  text-shadow: var(--glow-gold); font-variant-numeric: tabular-nums;
}
.balance-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.wallet-card { margin-bottom: 14px; }
.wallet-card h3 {
  color: var(--gold); font-family: var(--font-display);
  margin-bottom: 16px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
}
.wallet-card h3 .icon { color: var(--gold-bright); }
.tx-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.tx-row:last-child { border-bottom: none; }
.tx-row .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-row .amt.pos { color: var(--ok-bright); }
.tx-row .amt.neg { color: #ff9a9a; }
.tx-meta { color: var(--dim); font-size: 12px; }

.game-frame {
  width: 100%; height: 78vh; min-height: 460px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #000; display: block;
}

/* ── Badges ── */
.badge { padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge.pending { background: #33270f; color: var(--gold-bright); border: 1px solid rgba(212,162,78,.4); }
.badge.approved { background: #10301c; color: var(--ok-bright); border: 1px solid rgba(62,207,110,.4); }
.badge.rejected { background: #3a1414; color: #ff9a9a; border: 1px solid rgba(224,72,72,.4); }
.badge.deposit { background: #122a28; color: var(--teal); border: 1px solid rgba(94,224,208,.35); }
.badge.withdraw { background: #2a1a30; color: #d8a8e8; border: 1px solid rgba(216,168,232,.35); }
.badge.bonus { background: #2a2412; color: #e8d090; border: 1px solid rgba(232,208,144,.35); }
.badge.active { background: #10301c; color: var(--ok-bright); }
.badge.banned { background: #3a1414; color: #ff9a9a; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
th { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 1.2px; background: var(--bg-2); position: sticky; top: 0; font-weight: 700; }
tr:hover td { background: rgba(212,162,78,.04); }

/* ── Dashboard ── */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.stat {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.stat .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.stat .v { color: var(--gold-bright); font-size: 24px; font-weight: 800; margin-top: 5px; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 4px; margin: 18px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  padding: 11px 18px; cursor: pointer; color: var(--muted);
  font-size: 14px; font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.tab .icon { width: 15px; height: 15px; }
.tab.active { color: var(--gold-bright); border-bottom-color: var(--wine); }

/* ── Modal ── */
.modal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.78);
  z-index: 100; align-items: center; justify-content: center; padding: 18px;
  backdrop-filter: blur(5px);
}
.modal.open { display: flex; }
.modal .card { width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto; }
.modal h3 { color: var(--gold); font-family: var(--font-display); margin-bottom: 16px; letter-spacing: 1px; }

/* ============================================================
   LANDING SINGLE-PAGE (competitive casino hero)
   ============================================================ */

/* gold gradient text */
.gold-text {
  background: linear-gradient(180deg, #f7e3b0 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* hero layout: split text + live game stage */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
  padding: 46px 0 30px;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
}

.hero-copy .eyebrow { text-align: left; }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.5vw, 74px);
  letter-spacing: 2px;
  line-height: 1.02;
  margin: 10px 0 18px;
}
.hero-copy .sub { color: var(--muted); font-size: 17px; margin: 0 0 22px; letter-spacing: .4px; max-width: 44ch; }
.hero-copy .cta { justify-content: flex-start; }

/* key metrics row under the copy */
.hero-metrics {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
}
.metric {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 96px;
}
.metric .k { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700; }
.metric .v { color: var(--gold-bright); font-size: 20px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* live game stage */
.game-stage {
  position: relative;
  border-radius: 20px;
  padding: 6px;
  background: linear-gradient(160deg, rgba(212,162,78,.5), rgba(212,162,78,.08) 30%, rgba(94,224,208,.25) 65%, rgba(192,48,48,.35));
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 80px rgba(212,162,78,.14);
}
.game-stage-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
}
.game-stage iframe { width: 100%; height: 100%; border: 0; display: block; }

.stage-badge {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(13,9,11,.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line-gold);
  color: var(--gold-bright);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  pointer-events: none;
}
.stage-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 10px var(--ok);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* scroll-in reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* section headings */
.section { padding: 58px 0 20px; }
.section-title {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 8px;
}
.section-sub { color: var(--muted); text-align: center; font-size: 15px; margin-bottom: 34px; }

/* how it works steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 30px 0; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: rgba(212,162,78,.4); transform: translateY(-3px); }
.step .num {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  line-height: 1; margin-bottom: 14px;
}
.step h3 { color: var(--gold); font-family: var(--font-display); font-size: 18px; letter-spacing: 1px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; }

/* trust / FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
  letter-spacing: .3px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s; color: var(--gold); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* payment / currency pills */
.pay-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0 10px; }
.pay-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
  color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: .4px;
  background: var(--bg-2);
}
.pay-pill .icon { color: var(--gold-bright); }

/* final CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(180deg, rgba(212,162,78,.10), rgba(212,162,78,.03));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 46px 28px;
  margin: 40px 0;
}
.cta-band h2 {
  font-family: var(--font-display); color: var(--gold);
  font-size: clamp(26px, 4vw, 40px); letter-spacing: 1.5px; margin-bottom: 10px;
}
.cta-band p { color: var(--muted); margin-bottom: 24px; }

/* footer */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 22px 40px;
  margin-top: 40px;
  text-align: center;
}
footer .foot-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 16px 0; }
footer .foot-links a { color: var(--muted); font-size: 13px; }
footer .foot-links a:hover { color: var(--gold); }
footer .fineprint { color: var(--dim); font-size: 11px; max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* ── Utility ── */
.flex { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hidden { display: none; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-frame { height: 62vh; min-height: 420px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  header { padding: 12px 14px; }
  nav { gap: 8px; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 12px; }
  header { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .logo .word { font-size: 19px; letter-spacing: 1px; }
  .logo img { height: 26px; }
  nav { gap: 6px; }
  nav a { font-size: 12px; }
  .nav-balance { font-size: 12px; }
  .btn { padding: 11px 18px; font-size: 13px; }
  .btn.sm { padding: 8px 12px; font-size: 11px; }

  .hero { padding: 32px 6px 28px; }
  .hero-banner { border-radius: 12px; }
  .hero h1 { font-size: 30px; letter-spacing: 2px; }
  .hero .sub { font-size: 14px; }
  .hero .bonus-banner { font-size: 14px; padding: 8px 16px; }
  .hero .cta { flex-direction: column; }
  .hero .cta .btn { width: 100%; }

  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 20px 18px; }

  .auth-wrap { margin: 20px auto; padding: 0 4px; }
  .card { padding: 20px; }

  .balance-bar { padding: 12px 14px; flex-direction: column; align-items: flex-start; }
  .balance-bar .bal { font-size: 22px; }
  .balance-bar .actions { width: 100%; }
  .balance-bar .actions .btn { flex: 1; }

  .game-frame { height: 55vh; min-height: 360px; border-radius: 10px; }
  .game-layout { gap: 12px; }

  .dash-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 13px; }
  .stat .v { font-size: 20px; }

  .tab { padding: 9px 13px; font-size: 13px; }

  .modal { padding: 10px; }
  .modal .card { padding: 20px; }
}

/* Small phones */
@media (max-width: 380px) {
  .logo .word { font-size: 17px; }
  .hero h1 { font-size: 26px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .game-frame { height: 50vh; min-height: 320px; }
}
