:root {
  --bg: #071018;
  --bg-2: #10242c;
  --ink: #f6f3ea;
  --muted: #a9b7be;
  --gold: #e4c16a;
  --gold-2: #f8e7b6;
  --teal: #3ddec4;
  --card: rgba(14, 28, 36, 0.72);
  --line: rgba(228, 193, 106, 0.34);
  --danger: #ff5d78;
  --ok: #3ee0a2;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  --font: "Outfit", sans-serif;
  --display: "Fraunces", serif;
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  color-scheme: dark;
  font-family: var(--font);
  position: relative;
  z-index: 0;
  background:
    radial-gradient(820px 380px at 12% -8%, rgba(61, 222, 196, 0.14), transparent 62%),
    radial-gradient(720px 420px at 100% 0%, rgba(228, 193, 106, 0.14), transparent 58%),
    linear-gradient(180deg, #102029 0%, var(--bg) 38%, #05090e 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
  z-index: -1;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: white; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: #111; padding: .5rem 1rem; z-index: 40;
}
.skip-link:focus { top: 1rem; }

.site-header, .game-topbar, .admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.25rem; position: sticky; top: 0; z-index: 30;
  background: rgba(7, 16, 24, 0.78); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand { display: flex; align-items: center; gap: .75rem; color: white; min-width: 0; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.brand-name { font-family: var(--display); font-weight: 700; letter-spacing: .02em; line-height: 1; font-size: 1.12rem; }
.brand-name span { display: block; font-family: var(--font); font-size: .66rem; letter-spacing: .2em; color: var(--gold); font-weight: 650; margin-top: .2rem; }
.nav-links { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.nav-links a, .btn-ghost, .btn-gold, .btn-teal, .btn-danger {
  border-radius: 999px; padding: .55rem 1.05rem; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; font-weight: 650; letter-spacing: .01em; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.nav-links a { color: var(--muted); }
.nav-links a.active, .nav-links a:hover, .player-nav .btn-ghost.active { color: white; background: rgba(255,255,255,.05); }
.btn-gold { background: linear-gradient(180deg, #fff1c9, var(--gold) 55%, #c8963e); color: #1b1406; box-shadow: 0 10px 24px rgba(228, 193, 106, .22); }
.btn-teal { background: linear-gradient(180deg, #bffff3, var(--teal)); color: #04221c; }
.btn-ghost { border-color: rgba(255,255,255,.14); color: var(--ink); background: rgba(255,255,255,.03); }
.btn-danger { background: rgba(255, 93, 120, .12); color: #ffd5dc; border-color: rgba(255,93,120,.4); }
.btn-gold:hover, .btn-teal:hover, .btn-ghost:hover { transform: translateY(-1px); }
.btn-gold:hover { color: #111; }
.menu-toggle { display: none; background: transparent; color: white; border: 1px solid var(--line); border-radius: 12px; min-width: 44px; min-height: 44px; }
.player-chip {
  display: inline-flex; align-items: center; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); color: var(--gold-2); background: rgba(255,255,255,.04);
}

.hero { position: relative; padding: 4.2rem 0 1.5rem; text-align: center; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 8%; width: min(640px, 92vw); height: 280px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(228,193,106,.2), transparent 68%); pointer-events: none; z-index: -1;
}
.eyebrow { color: var(--teal); letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; font-weight: 700; margin-bottom: .45rem; }
.hero h1, .page-title, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: .95; }
.page-title { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 0 0 .4rem; }
.hero h1 { font-size: clamp(1.65rem, 7.4vw, 6.2rem); margin: .2rem 0 .8rem; max-width: 100%; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.lede { max-width: min(38rem, 100%); margin: 0 auto 1.25rem; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.hero-prize {
  display: inline-flex; flex-direction: column; gap: .15rem; margin: 0 auto 1.4rem; padding: .7rem 1.4rem  .85rem;
  border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(248,231,182,.12), rgba(14,28,36,.4));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.hero-prize span { color: var(--gold); letter-spacing: .16em; text-transform: uppercase; font-size: .7rem; font-weight: 700; }
.hero-prize { max-width: 100%; }
.hero-prize strong { font-family: var(--display); font-size: clamp(1.35rem, 6.2vw, 2.6rem); color: white; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.section { padding: 2.4rem 0; }
.section-head { margin-bottom: 1rem; }
.section h2, .cta-band h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.15rem); margin: 0; line-height: 1; }
.grid-3, .grid-4, .stat-grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.grid-4, .stat-grid { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.glass, .stat-card, .q-card, .option, .panel, .auth-card, .result-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 28%),
    var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
}
.glass, .panel { padding: 1.2rem 1.25rem; }
.glass h3, .panel h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
.topic-card { display: block; min-height: 148px; position: relative; transition: transform .18s ease, border-color .18s ease; }
.topic-card:hover { transform: translateY(-3px); border-color: var(--line); color: white; }
.topic-index { position: absolute; top: 1rem; right: 1rem; font-family: var(--display); color: var(--gold); }
.steps { counter-reset: step; }
.steps article { position: relative; padding-top: 2.6rem; }
.steps article::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 1rem; left: 1.15rem; font-family: var(--display); color: var(--gold); font-size: 1.35rem;
}
.muted { color: var(--muted); }
.stat-card { padding: 1rem 1.1rem; }
.stat-card span { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: .25rem; font-family: var(--display); font-size: 1.65rem; color: var(--gold-2); line-height: 1.1; }
.ladder-tower { width: min(520px, 100%); margin: 0 auto; }
.ladder-intro { max-width: 38rem; margin: .7rem 0 0; }
.ladder-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.ladder-stage { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 24%), var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: var(--shadow); }
.ladder-stage.is-peak { border-color: rgba(228,193,106,.45); box-shadow: var(--shadow), 0 0 40px rgba(228,193,106,.08); }
.ladder-stage-head { padding: 1.05rem 1.05rem .9rem; background: linear-gradient(180deg, rgba(228,193,106,.14), transparent); border-bottom: 1px solid rgba(228,193,106,.18); }
.ladder-stage.is-peak .ladder-stage-head { background: linear-gradient(180deg, rgba(228,193,106,.28), rgba(228,193,106,.05)); }
.ladder-stage-head .eyebrow { margin-bottom: .35rem; }
.ladder-stage-head strong { display: block; font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.85rem); color: var(--gold-2); line-height: 1.05; }
.ladder-stage ol { list-style: none; margin: 0; padding: .45rem; display: grid; gap: .2rem; }
.ladder-stage li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .42rem .6rem; border-radius: 10px; font-variant-numeric: tabular-nums; }
.ladder-stage li.is-safe { background: rgba(228,193,106,.12); }
.rung-label { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.rung { width: 1.7rem; height: 1.7rem; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; font-size: .75rem; font-weight: 700; border: 1px solid rgba(255,255,255,.12); color: var(--muted); }
.ladder-stage li.is-safe .rung { color: #1b1406; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: transparent; }
.rung-amount { font-weight: 650; white-space: nowrap; }
.ladder-stage li.is-safe .rung-amount { color: var(--gold-2); }
.ladder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .28rem; }
.ladder-list li, .ladder-row {
  display: flex; justify-content: space-between; gap: .6rem; align-items: center;
  padding: .48rem .75rem; border-radius: 12px; border: 1px solid transparent; font-variant-numeric: tabular-nums;
}
.ladder-row strong { white-space: nowrap; }
.ladder-tower .ladder-row:nth-child(odd) { background: rgba(255,255,255,.03); }
.ladder-row.safe { color: var(--gold-2); box-shadow: inset 3px 0 0 var(--gold); }
.ladder-row.current { background: linear-gradient(90deg, rgba(228,193,106,.28), rgba(61,222,196,.1)); border-color: rgba(228,193,106,.65); color: white; }
.ladder-row.cleared { opacity: .48; }
.ladder-row.lost { background: rgba(255, 93, 120, .14); border-color: rgba(255, 93, 120, .45); }
.safe-pill, .tag { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: .12rem .42rem; color: var(--gold); font-style: normal; }

.site-footer { padding: 2rem 1.2rem 2.6rem; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.faq details { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: .85rem 1rem; margin-bottom: .55rem; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: .55rem 0 0; }
.cta-band {
  margin: 1rem 0 0; padding: 2.4rem 1.2rem; text-align: center; border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 160px at 50% 0%, rgba(228,193,106,.2), transparent 70%),
    rgba(14, 28, 36, .7);
}
.brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .72fr);
  gap: 1.15rem;
  align-items: stretch;
}
.brief-copy .lede { margin: .55rem 0 0; max-width: 38rem; }
.brief-facts { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.05rem; }
.brief-facts span {
  display: inline-flex; align-items: center; gap: .35rem; max-width: 100%;
  padding: .4rem .72rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03);
  color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums;
}
.brief-facts strong { color: var(--gold-2); font-weight: 650; }
.brief-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.brief-card {
  display: flex; flex-direction: column; justify-content: center; gap: .9rem;
  padding: 1.35rem 1.2rem; text-align: center; border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(280px 140px at 50% 0%, rgba(228,193,106,.22), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 32%),
    var(--card);
  box-shadow: var(--shadow);
}
.brief-card .hero-prize { width: 100%; margin: 0; }
.life-card { display: flex; flex-direction: column; }
.life-mark {
  width: 2.35rem; height: 2.35rem; margin-bottom: .75rem; border-radius: 10px;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .95rem;
  color: #1b1406; background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.auth-wrap { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 1.5rem 0 2rem; }
.auth-card { width: min(440px, 100%); padding: 1.6rem; }
.auth-card h1 { font-family: var(--display); margin-bottom: 1rem; }
.form-label { color: var(--muted); font-size: .9rem; }
.form-control, .form-select {
  background: rgba(4, 10, 14, .45); color: white; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; min-height: 48px;
}
.form-control:focus, .form-select:focus { background: rgba(4, 10, 14, .65); color: white; border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(228,193,106,.16); }
.alert { border-radius: 14px; border: 1px solid transparent; }
.alert-success { background: rgba(62, 224, 162, .12); color: #dcfff1; border-color: rgba(62, 224, 162, .35); }
.alert-danger { background: rgba(255, 93, 120, .12); color: #ffd7de; border-color: rgba(255, 93, 120, .35); }
main { width: 100%; max-width: 100%; overflow-x: clip; }
.page-wrap { width: min(1120px, 100%); margin: 0 auto; padding: 1.4rem 1rem 3rem; }
.player-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: rgba(255,255,255,.08); --bs-table-hover-bg: rgba(255,255,255,.04); --bs-table-hover-color: white; }
.table thead th { color: var(--gold); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; border-bottom-color: rgba(228,193,106,.25); }
.table a { color: var(--gold-2); }
.page-link { background: rgba(255,255,255,.03); color: var(--ink); border-color: rgba(255,255,255,.1); }
.page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #1b1406; }
.page-item.disabled .page-link { background: transparent; color: var(--muted); }

.game-shell { min-height: 100vh; }
body.game-shell {
  background:
    radial-gradient(680px 280px at 42% 12%, rgba(228,193,106,.16), transparent 70%),
    radial-gradient(800px 420px at 50% 100%, rgba(61,222,196,.08), transparent 60%),
    linear-gradient(180deg, #12242d, #060b10 72%);
}
.stage { width: min(1180px, 100%); margin: 0 auto; padding: .8rem 1rem 2rem; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 1rem; align-items: start; }
.hot-seat, .q-card, .options, .option { min-width: 0; max-width: 100%; }
.seat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .2rem; }
.prize-plaque { min-width: 0; }
.prize-plaque.is-safe .eyebrow { color: var(--gold-2); }
.prize-now { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.5rem); color: var(--gold-2); line-height: .95; text-shadow: 0 10px 30px rgba(228,193,106,.2); }
.q-card { padding: 1.35rem 1.4rem 1.45rem; margin: .7rem 0 1rem; animation: rise .45s ease; position: relative; overflow: hidden; }
.q-card::after { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), var(--teal), transparent); }
.q-card h2 { font-size: clamp(1.15rem, 4.4vw, 1.9rem); line-height: 1.35; margin: .35rem 0 0; font-weight: 500; }
#question-image { display: block; width: min(100%, 520px); margin: .8rem auto 0; border-radius: 16px; }
#question-image[hidden] { display: none; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.option {
  text-align: left; color: white; padding: .9rem 1rem; min-height: 72px; cursor: pointer; position: relative;
  display: flex; gap: .8rem; align-items: center; width: 100%;
}
.option .key {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(248,231,182,.22), rgba(228,193,106,.08));
  border: 1px solid rgba(228,193,106,.4); color: var(--gold-2); font-weight: 700;
}
.option .label { font-size: 1.02rem; line-height: 1.3; }
.option:hover:not(:disabled) { border-color: rgba(228,193,106,.55); transform: translateY(-2px); }
.option.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(61, 222, 196, .28), 0 12px 28px rgba(61, 222, 196, .12); }
.option.selected .key { color: #04221c; background: linear-gradient(180deg, #bffff3, var(--teal)); border-color: transparent; }
.option.correct { background: rgba(62, 224, 162, .2); border-color: var(--ok); box-shadow: 0 0 0 3px rgba(62, 224, 162, .28), 0 0 36px rgba(62, 224, 162, .2); animation: correct-pop .7s ease; }
.option.wrong { background: rgba(255, 93, 120, .18); border-color: var(--danger); animation: shake .45s linear; }
.option.removed { opacity: .28; pointer-events: none; filter: grayscale(1); }
.option:disabled { cursor: default; }
.play-prompt { margin: .85rem 0 0; text-align: center; color: var(--muted); font-size: .92rem; }
.play-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.play-actions [hidden], .result-banner[hidden], .play-prompt[hidden] { display: none !important; }
.btn-gold:disabled { opacity: .42; cursor: default; transform: none; box-shadow: none; }
.result-banner {
  margin-top: .85rem; text-align: center; padding: 1rem 1rem 1.05rem; border-radius: 18px;
  border: 1px solid rgba(62, 224, 162, .45);
  background: radial-gradient(420px 120px at 50% 0%, rgba(62, 224, 162, .24), transparent 72%), rgba(62, 224, 162, .08);
  animation: rise .4s ease;
}
.result-banner strong { display: block; font-family: var(--display); font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1; }
.result-banner .eyebrow { margin-bottom: .3rem; }
#result-amount { display: block; margin-top: .3rem; font-family: var(--display); color: var(--gold-2); font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1; }
#result-amount:empty { display: none; }
.result-banner.is-safe { border-color: rgba(228, 193, 106, .55); background: radial-gradient(420px 120px at 50% 0%, rgba(228, 193, 106, .28), transparent 72%), rgba(228, 193, 106, .08); }
.result-banner.is-win { border-color: rgba(248, 231, 182, .7); animation: rise .4s ease, win-glow 1.15s ease infinite; background: radial-gradient(460px 140px at 50% 0%, rgba(248, 231, 182, .38), transparent 70%), rgba(228, 193, 106, .12); }
.result-banner.is-wrong { border-color: rgba(255, 93, 120, .45); background: radial-gradient(420px 120px at 50% 0%, rgba(255, 93, 120, .22), transparent 72%), rgba(255, 93, 120, .08); }
.prize-plaque.is-hit .prize-now { animation: correct-pop .7s ease; }
.lifelines { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.lifeline, .lifelines .btn-ghost {
  min-width: 108px; min-height: 58px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(8, 16, 22, .72); color: white; font-weight: 650;
}
.lifeline:hover:not(:disabled) { border-color: var(--teal); color: white; }
.lifeline:disabled { opacity: .32; }
.timer-ring {
  --p: 100; --ring: var(--gold);
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: conic-gradient(from -90deg, var(--ring) calc(var(--p) * 1%), rgba(255,255,255,.1) 0);
  box-shadow: 0 0 28px rgba(228,193,106,.16);
}
.timer-ring:has(.warn) { --ring: var(--danger); }
.timer {
  width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  border: 0; font-family: var(--display); font-size: 1.7rem; background: #0c1820; color: white;
}
.timer.warn { color: #ffd0d8; animation: pulse .8s infinite; }
.ladder-panel { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 104px); overflow: auto; }
.ladder-panel h2 { margin-top: 0; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hint-box, .expert-box, .poll-box { margin-top: .8rem; padding: .85rem 1rem; border-radius: 16px; background: rgba(61, 222, 196, .08); border: 1px solid rgba(61,222,196,.18); }
.poll-row { display: grid; grid-template-columns: 22px 1fr 46px; gap: .45rem; align-items: center; margin: .35rem 0; }
.poll-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.result-hero { text-align: center; padding: 2.2rem 1.2rem 1.4rem; }
.result-hero .display { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.result-hero .amount { font-family: var(--display); font-size: clamp(2.8rem, 7vw, 5rem); color: var(--gold-2); margin: .2rem 0 0; line-height: 1; }
.result-hero.is-win { box-shadow: var(--shadow), 0 0 80px rgba(228,193,106,.12); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: rgba(5, 12, 16, .94); border-right: 1px solid rgba(255,255,255,.06); padding: 1.1rem .9rem; }
.admin-nav { display: grid; gap: .25rem; margin-top: 1.2rem; }
.admin-side a { display: flex; padding: .68rem .8rem; border-radius: 12px; color: var(--muted); min-height: 44px; align-items: center; }
.admin-side a.active, .admin-side a:hover { background: rgba(228,193,106,.13); color: white; }
.admin-main { padding: 1rem 1.25rem 3rem; min-width: 0; }
.admin-top { position: sticky; margin: -1rem -1.25rem 1.1rem; padding-inline: 1.25rem; }
.chart-card { min-height: 260px; }
.chart-card h2 { color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale(1.025); } }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes correct-pop { 0% { transform: scale(.97); } 45% { transform: scale(1.035); } 100% { transform: none; } }
@keyframes win-glow { 50% { box-shadow: 0 0 42px rgba(228, 193, 106, .42); } }

@media (max-width: 860px) {
  .ladder-stages { grid-template-columns: 1fr; }
  .brief-hero { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-bottom: 1.5rem; }
  .ladder-panel { position: static; max-height: 320px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .admin-nav { display: flex; gap: .35rem; overflow: auto; margin-top: .8rem; padding-bottom: .2rem; }
  .admin-nav a { white-space: nowrap; }
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .8rem; background: rgba(10, 20, 26, .98); border-bottom: 1px solid var(--line); }
  .site-header .nav-links.open { display: flex; }
  .site-header .nav-links form, .site-header .nav-links .btn-ghost, .site-header .nav-links .btn-gold { width: 100%; }
  .game-topbar .nav-links { display: flex; position: static; flex-direction: row; align-items: center; background: transparent; border: 0; padding: 0; }
  .game-topbar .player-chip { display: none; }
  .options { grid-template-columns: 1fr; }
  .hero { padding-top: 2.2rem; }
  .seat-head { align-items: center; }
  .prize-now { font-size: 2rem; }
  .lifelines { position: sticky; bottom: .5rem; z-index: 15; background: rgba(7,16,24,.92); padding: .45rem; border-radius: 18px; border: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(10px); }
  .page-wrap, .stage { padding-inline: 1rem; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.35rem); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ladder-row { font-size: .8rem; padding-inline: .55rem; }
  .timer-ring { width: 78px; height: 78px; }
  .timer { width: 64px; height: 64px; font-size: 1.25rem; }
  .lifeline, .lifelines .btn-ghost { min-width: 0; flex: 1 1 42%; font-size: .85rem; padding-inline: .4rem; }
  .game-topbar { gap: .35rem; padding-inline: .6rem; }
  .game-topbar .brand { min-width: 0; flex: 1 1 auto; }
  .game-topbar .brand-mark { width: 32px; height: 32px; }
  .game-topbar .brand-name { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .game-topbar .brand-name span { display: none; }
  .game-topbar .nav-links { flex: 0 0 auto; gap: .3rem; }
  .game-topbar .btn-ghost, .game-topbar .btn-danger { padding: .35rem .6rem; min-height: 38px; font-size: .82rem; }
  .play-actions .btn-gold, .play-actions .btn-ghost { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
