@font-face { font-family: 'Anton'; src: url(fonts/anton-latin.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Archivo'; src: url(fonts/archivo-latin-wdth.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --bg: #09090a;
  --panel: #111113;
  --line: #24242a;
  --ink: #f4f1e8;
  --mute: #8f8c85;
  --y: #f0b90b;
  --y-hot: #ffd84d;
  --red: #ff4b55;
  --display: 'Anton', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --body: 'Archivo', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --seat: 46px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1100px 520px at 72% -120px, rgba(240, 185, 11, .16), transparent 70%),
    radial-gradient(700px 400px at 8% 0, rgba(240, 185, 11, .05), transparent 70%);
  background-repeat: no-repeat;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
html[lang^=zh] h1, html[lang^=zh] h2 { font-family: var(--body); font-weight: 900; letter-spacing: .01em; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(9, 9, 10, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-bulb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6c8, var(--y) 55%, #a87e00); box-shadow: 0 0 14px rgba(240, 185, 11, .7); }
.brand-word { font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: .04em; line-height: 1; }
.brand-word em { font-style: normal; color: var(--y); margin-left: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--mute); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.lang {
  font: 600 14px var(--body); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px;
  min-width: 40px; height: 34px; padding: 0 10px; cursor: pointer;
}
.lang:hover { border-color: var(--mute); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--y); color: #111; font: 800 17px var(--body); font-stretch: 90%; letter-spacing: .01em; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 216, 77, .4), 0 10px 40px -10px rgba(240, 185, 11, .7); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--y-hot); transform: translateY(-1px); }
.btn:focus-visible, .lang:focus-visible, .nav a:focus-visible { outline: 2px solid var(--y-hot); outline-offset: 3px; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(28px, 5vw, 72px); align-items: center;
  max-width: 1320px; margin: 0 auto; padding: clamp(24px, 3.4vw, 44px) clamp(16px, 4vw, 48px) 40px;
}
.next { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
html[lang^=zh] .next { letter-spacing: .06em; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 75, 85, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 75, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 75, 85, 0); } }
.cd { font-family: 'Anton', sans-serif; font-size: 28px; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 4px; }
h1 { margin-top: 18px; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.2vw, 76px); line-height: .98; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
html[lang^=zh] h1 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.12; }
.gloss { margin-top: 16px; color: var(--mute); font-size: 15px; }
.gloss b { color: var(--ink); font-weight: 700; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; max-width: 520px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .n {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
  border: 1.5px solid var(--y); color: var(--y); font: 800 14px var(--body);
}
.steps b { display: block; font-size: 17px; font-weight: 700; }
.steps span:not(.n) { color: var(--mute); font-size: 15px; }
.cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta-note { color: var(--mute); font-size: 14px; }

/* ---------- stage (the replay) ---------- */
.stage {
  position: relative; background: linear-gradient(180deg, #141417, #0d0d0f); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px 20px 16px; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.stage::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='120' viewBox='0 0 560 120'%3E%3Cg fill='%23f0b90b' fill-opacity='.07'%3E%3Crect x='10' y='60' width='10' height='40'/%3E%3Crect x='34' y='44' width='10' height='38'/%3E%3Crect x='58' y='52' width='10' height='26'/%3E%3Crect x='82' y='30' width='10' height='40'/%3E%3Crect x='106' y='40' width='10' height='22'/%3E%3Crect x='130' y='24' width='10' height='30'/%3E%3Crect x='154' y='36' width='10' height='44'/%3E%3Crect x='178' y='58' width='10' height='30'/%3E%3Crect x='202' y='48' width='10' height='20'/%3E%3Crect x='226' y='28' width='10' height='34'/%3E%3Crect x='250' y='16' width='10' height='28'/%3E%3Crect x='274' y='26' width='10' height='42'/%3E%3Crect x='298' y='50' width='10' height='36'/%3E%3Crect x='322' y='62' width='10' height='24'/%3E%3Crect x='346' y='46' width='10' height='30'/%3E%3Crect x='370' y='34' width='10' height='26'/%3E%3Crect x='394' y='20' width='10' height='36'/%3E%3Crect x='418' y='12' width='10' height='24'/%3E%3Crect x='442' y='22' width='10' height='40'/%3E%3Crect x='466' y='44' width='10' height='34'/%3E%3Crect x='490' y='30' width='10' height='26'/%3E%3Crect x='514' y='18' width='10' height='30'/%3E%3Crect x='538' y='8' width='10' height='28'/%3E%3C/g%3E%3C/svg%3E") bottom / 100% auto no-repeat;
}
.stage > * { position: relative; }
.stage-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.tag { font: 800 11px var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.tag-live { background: var(--red); color: #fff; }
.tag-sample { border: 1px dashed rgba(255, 255, 255, .25); color: var(--mute); }
.game { margin-left: 4px; white-space: nowrap; }
.round { margin-left: auto; font-family: 'Anton', sans-serif; font-size: 18px; letter-spacing: .06em; color: var(--y); text-transform: uppercase; white-space: nowrap; }
html[lang^=zh] .round { font-family: var(--body); font-weight: 900; font-size: 15px; }
.prompt { margin: 16px 0 14px; min-height: 2.5em; font-size: clamp(19px, 2vw, 23px); font-weight: 700; line-height: 1.25; text-wrap: balance; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 6px; gap: 8px 10px; align-items: center;
  padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #17171b; transition: border-color .25s, background .25s;
}
.choice[hidden] { display: none; }
.choices:has(.choice[hidden]) { grid-template-columns: 1fr; }
.c-name { font: 800 17px var(--body); font-stretch: 88%; text-transform: uppercase; letter-spacing: .03em; }
.c-n { font-family: 'Anton', sans-serif; font-size: 22px; color: var(--mute); font-variant-numeric: tabular-nums; }
.c-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.c-bar i { display: block; height: 100%; width: 0; background: var(--mute); border-radius: inherit; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.choice.won { border-color: var(--y); background: rgba(240, 185, 11, .08); }
.choice.won .c-bar i { background: var(--y); }
.choice.won .c-n { color: var(--y); }
.choice.lost { border-color: rgba(255, 75, 85, .7); background: rgba(255, 75, 85, .07); }
.choice.lost .c-bar i { background: var(--red); }
.choice.lost .c-n { color: var(--red); }

.wall { display: grid; grid-template-columns: repeat(6, var(--seat)); justify-content: space-between; row-gap: 10px; margin: 18px 6px 12px; }
.seat {
  position: relative; width: var(--seat); height: var(--seat); border-radius: 50%; display: grid; place-items: center;
  font: 800 12px var(--body); font-variant-numeric: tabular-nums; transition: background .4s, box-shadow .4s, opacity .4s, border-color .4s;
}
.seat.h { background: radial-gradient(circle at 38% 32%, #fff4bf, var(--y) 52%, #b38600); color: #1a1400; box-shadow: 0 0 18px rgba(240, 185, 11, .55), 0 0 2px #fff inset; }
.seat.a { border: 2px solid rgba(244, 241, 232, .8); color: var(--ink); background: radial-gradient(circle, rgba(244, 241, 232, .14), rgba(244, 241, 232, .02) 70%); box-shadow: 0 0 12px rgba(244, 241, 232, .18); }
.seat.a::after { content: 'AI'; position: absolute; bottom: -5px; right: -5px; font: 800 9px var(--body); letter-spacing: .04em; background: var(--ink); color: #111; padding: 1px 4px; border-radius: 5px; }
.seat.h.hurt { background: radial-gradient(circle at 38% 32%, #6b5a1d, #4d3c05 60%, #2a2003); color: var(--y); box-shadow: 0 0 0 2px rgba(240, 185, 11, .45) inset; }
.seat.a.hurt { border-style: dashed; border-color: rgba(244, 241, 232, .45); background: none; box-shadow: none; color: var(--mute); }
.seat.out { background: #19191c !important; border: 2px solid #232327 !important; box-shadow: none !important; color: #3d3d43 !important; }
.seat.out::before { content: ''; position: absolute; inset: 22%; background:
  linear-gradient(45deg, transparent 46%, rgba(255, 75, 85, .55) 46% 54%, transparent 54%),
  linear-gradient(-45deg, transparent 46%, rgba(255, 75, 85, .55) 46% 54%, transparent 54%); }
.seat.out::after { opacity: .25; }
.seat.flash { animation: hit .9s ease-out; }
@keyframes hit { 0% { box-shadow: 0 0 0 0 rgba(255, 75, 85, .9), 0 0 30px rgba(255, 75, 85, .9); transform: scale(1.12); } 100% { transform: scale(1); } }
.seat.win { animation: win 1.4s ease-in-out infinite alternate; }
@keyframes win { to { box-shadow: 0 0 0 4px rgba(255, 216, 77, .5), 0 0 34px rgba(255, 216, 77, .95); } }
.wall.deciding .seat:not(.out) { animation: think 1.1s ease-in-out infinite alternate; }
.wall.deciding .seat:nth-child(3n) { animation-delay: .35s; }
.wall.deciding .seat:nth-child(4n+1) { animation-delay: .7s; }
@keyframes think { to { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .seat.flash, .seat.win, .wall.deciding .seat, .pulse { animation: none !important; } }

.stage-foot { display: flex; align-items: baseline; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.alive { font-size: 14px; color: var(--mute); }
.alive b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 34px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 2px; }
.out { color: var(--red); font-size: 14px; font-weight: 700; }
.timer { margin-left: auto; font-family: 'Anton', sans-serif; font-size: 26px; font-variant-numeric: tabular-nums; color: var(--y); }
.legend { list-style: none; padding: 0; margin: 6px 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--mute); }
.legend li { display: flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg-h { background: var(--y); box-shadow: 0 0 6px rgba(240, 185, 11, .7); }
.lg-a { border: 1.5px solid var(--ink); }
.lg-hurt { background: #4d3c05; box-shadow: 0 0 0 1.5px rgba(240, 185, 11, .5) inset; }
.lg-hurt + .lg-hurt-a { border: 1.5px dashed rgba(244, 241, 232, .6); margin-left: -2px; }
.lg-out { background: #19191c; border: 1.5px solid #2b2b31; }
.host { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(240, 185, 11, .07); border-left: 3px solid var(--y); font-size: 15px; font-weight: 600; min-height: 3.6em; }
.host-tag { flex: none; font: 800 10px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--y); padding-top: 3px; }

/* ---------- live numbers in the hero ---------- */
.mini { position: relative; margin: 28px 0 0; display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: 0; max-width: 620px; border-top: 1px solid var(--line); padding-top: 16px; }
.mini > div { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line); }
.mini > div:nth-child(3) { border-right: 0; margin-right: 0; padding-right: 0; }
.mini dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.mini dd { margin: 6px 0 0; font-weight: 700; font-size: 15px; }
.mini .pot { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 34px; line-height: 1; color: var(--y); }
.mini .pot small { font-size: 15px; color: var(--ink); letter-spacing: .04em; }
.mini .tag { position: absolute; top: -10px; right: 0; background: var(--bg); }
[id] { scroll-margin-top: 80px; }

/* ---------- rounds ---------- */
.rounds, .fair { max-width: 1320px; margin: 0 auto; padding: 84px clamp(16px, 4vw, 48px) 0; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 1; text-transform: uppercase; }
html[lang^=zh] h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.sub { margin-top: 14px; color: var(--mute); max-width: 620px; font-size: 17px; }
.cards { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { padding: 22px 22px 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: grid; align-content: start; gap: 8px; }
.card .no { font-family: 'Anton', sans-serif; font-size: 44px; line-height: 1; color: #2c2c33; }
.card .kind { justify-self: start; font: 800 11px var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; margin-top: 6px; }
.k-m .kind { background: rgba(240, 185, 11, .14); color: var(--y); }
.k-p .kind { background: rgba(244, 241, 232, .1); color: var(--ink); }
.k-f { border-color: rgba(240, 185, 11, .5); background: linear-gradient(160deg, rgba(240, 185, 11, .14), var(--panel) 60%); }
.k-f .no { color: var(--y); }
.k-f .kind { background: var(--y); color: #111; }
.card h3 { font-size: 21px; font-weight: 800; font-stretch: 92%; margin-top: 4px; }
.card p { color: var(--mute); font-size: 15px; }

/* ---------- fair play ---------- */
.fair-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: f; }
.fair-list li { padding: 22px 22px 0 0; counter-increment: f; }
.fair-list li::before { content: counter(f, decimal-leading-zero); display: block; font: 800 12px var(--body); color: var(--y); letter-spacing: .1em; margin-bottom: 10px; }
.fair-list h3 { font-size: 17px; font-weight: 800; }
.fair-list p { margin-top: 6px; color: var(--mute); font-size: 14px; }

.foot { max-width: 1320px; margin: 96px auto 0; padding: 28px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 14px; }
.foot .brand-word { font-size: 18px; }
.muted { color: var(--mute); }

/* ---------- small screens ---------- */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .stage { max-width: 600px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .fair-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --seat: 40px; }
  .top { gap: 12px; padding: 12px 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .brand-word { font-size: 19px; }
  .btn-sm { padding: 0 14px; }
  .hero { padding-top: 22px; gap: 30px; }
  h1 { font-size: 40px; margin-top: 12px; }
  html[lang^=zh] h1 { font-size: 31px; }
  .steps { margin-top: 22px; gap: 12px; }
  .cta { margin-top: 24px; }
  .cta .btn { width: 100%; }
  .stage { padding: 16px 14px 14px; border-radius: 18px; }
  .game { display: none; }
  .wall { margin: 18px 2px 12px; row-gap: 10px; }
  .mini { grid-template-columns: 1fr 1fr; row-gap: 14px; margin-top: 26px; }
  .mini > div:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .mini > div:nth-child(3) { grid-column: 1 / -1; }
  .cards, .fair-list { grid-template-columns: 1fr; }
  .rounds, .fair { padding-top: 64px; }
}
@media (max-width: 370px) { :root { --seat: 36px; } }
.seat.h.win { background: radial-gradient(circle at 38% 32%, #fff8d6, var(--y-hot) 50%, #c99700); color: #1a1400; }

/* pre-launch values and X links */
.mini .pot-pre { font-size: 26px; }
html[lang^=zh] .mini .pot-pre { font-family: var(--body); font-weight: 900; font-size: 20px; }
.xlink { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.xlink:hover { border-color: var(--mute); }
.xlink svg { width: 15px; height: 15px; }
.xlink-foot { color: var(--mute); text-decoration: none; }
.xlink-foot:hover { color: var(--ink); }
@media (max-width: 640px) { .xlink { margin-left: auto; } .xlink + .lang { margin-left: 0; } }

/* 3D arena inside the replay panel; the flat wall stays as the fallback */
.arena { display: none; position: relative; margin: 16px -20px 12px; height: clamp(300px, 30vw, 380px); overflow: hidden; }
.has-arena .arena { display: block; }
.has-arena .wall { display: none; }
.arena-canvas { display: block; width: 100%; height: 100%; }
.arena::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 40px 10px #0f0f11; }
@media (max-width: 640px) { .arena { margin: 12px -14px 10px; height: 300px; } }

.cta-alt { flex-basis: 100%; color: var(--mute); font-size: 14px; }
.cta-alt:hover { color: var(--ink); }
