/* /play — mini-games. Same ink, same T / CT / you colours as the rest of the site; the battle HUD is the loud part. */
[hidden] { display: none !important; }
/* header + language menu (same as home.css, which these pages don't load: its .lboard would clash) */
.top nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 0; }
.top nav a[aria-current] { color: var(--fg); }
.lang { position: relative; margin-left: 22px; }
.lang summary { list-style: none; cursor: pointer; color: var(--mute); font-size: 15px; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { color: var(--fg); }
.lang ul { position: absolute; right: 0; top: 30px; z-index: 5; list-style: none; margin: 0; padding: 8px 0; min-width: 170px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; }
.lang li a { display: block; padding: 6px 16px; margin: 0; color: #c6cfdb; text-decoration: none; font-size: 14px; }
.lang li a:hover, .lang li a[aria-current] { color: var(--fg); background: rgba(150,170,200,.08); }
@media (max-width: 600px) { .top nav a { margin-left: 12px; font-size: 14px; } .lang { margin-left: 12px; } }
.play { padding: clamp(24px, 4vw, 48px) 0 80px; }
.play-hero { padding: clamp(28px, 6vw, 72px) 0 28px; }
.play-hero h1 { font: 900 clamp(40px, 8vw, 88px)/1.05 var(--body); margin: 0; letter-spacing: -.01em; text-wrap: balance; word-break: keep-all; }
.play-hero .lede { color: #c6cfdb; max-width: 32em; margin: 18px 0 0; font-size: clamp(16px, 2vw, 19px); }

/* arcade (CS觀念挑戰 lobby): one card per game. The art is the game itself — a frame of the 3D round, a pair of
   pro plates — so the page reads at a glance without a paragraph per game. */
.arcade section { padding: 0; border: 0; }   /* site.css gives every section a rule and 72px of air */
.arc-head h1 { font: 900 clamp(32px, 5vw, 60px)/1.08 var(--body); margin: 0; letter-spacing: -.01em; text-wrap: balance; word-break: keep-all; }
.arc-live { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; color: #b6c0ce; font-size: 15px; }
.arc-live .dot, .g-count.on::before { width: 8px; height: 8px; border-radius: 50%; background: #4fd18b; box-shadow: 0 0 0 4px rgba(79, 209, 139, .16); }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: clamp(22px, 3vw, 36px) 0 0; }
.game { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ink-2);
  text-decoration: none; transition: border-color .2s; }
.game:hover { border-color: rgba(233, 162, 59, .55); }
.g-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0e15; }
.g-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game:hover .g-art img { transform: scale(1.035); }
.g-art::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(0deg, var(--ink-2), transparent); pointer-events: none; }
.g-count { position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px;
  border-radius: 999px; background: rgba(8, 11, 16, .72); color: #dfe6ef; font-size: 13px; line-height: 1; }
.g-count.on::before { content: ''; flex: none; }
.g-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 24px 22px; flex: 1; }
.g-body h2 { font: 800 clamp(24px, 2.6vw, 32px)/1.2 var(--body); margin: 0; }
.g-body p { margin: 0; color: #b6c0ce; font-size: 15px; }
.g-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.chip { padding: 6px 10px; border-radius: 6px; background: rgba(150, 170, 200, .08); color: #b6c0ce; font-size: 13px; line-height: 1; }
.chip.live { color: #bfeed3; background: rgba(79, 209, 139, .12); }
.g-foot .btn { margin-left: auto; min-width: 112px; }
.game:hover .btn.hot { background: #f2b356; }

/* the pick card's art: two pro plates, values hidden */
.pick-art { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 0 clamp(20px, 4vw, 44px);
  background: radial-gradient(70% 90% at 50% 40%, #131c2a, #0a0e15 70%); }
.pick-art::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(150, 170, 200, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 170, 200, .06) 1px, transparent 1px);
  background-size: 32px 32px; }
.plates-art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transition: transform .5s ease; }
.game:hover .plates-art { transform: scale(1.03); }
.pa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: clamp(16px, 2.4vw, 26px) 10px; border-radius: 12px;
  border: 1px solid rgba(93, 143, 240, .45); background: rgba(93, 143, 240, .08); }
.pa.b { border-color: rgba(233, 162, 59, .5); background: rgba(233, 162, 59, .08); }
.pa b { font: 900 clamp(26px, 3.4vw, 44px)/1 var(--display); letter-spacing: .02em; color: var(--fg); }
.pa span { font: 900 clamp(34px, 4.6vw, 60px)/1 var(--display); color: #8fb3ff; }
.pa.b span { color: var(--t); }
.pa-q { position: relative; margin: 0; text-align: center; color: #dfe6ef; font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; }

/* today's best, one board per game */
.arc-boards { margin: clamp(40px, 6vw, 72px) 0 0; }
.arc-boards > h2 { font-size: 22px; margin: 0 0 14px; }
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(20px, 3vw, 44px); }
.boards h3 { font-size: 15px; color: var(--mute); font-weight: 600; margin: 0 0 6px; }
@media (max-width: 760px) {
  .games, .boards { grid-template-columns: 1fr; }
  .g-body { padding: 2px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { .g-art img, .plates-art { transition: none; } .game:hover .g-art img, .game:hover .plates-art { transform: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--ink-2); color: var(--fg); font: 700 16px/1 var(--body); cursor: pointer;
  text-decoration: none; transition: transform .08s, background-color .15s, border-color .15s; }
.btn:hover { border-color: rgba(150, 170, 200, .4); }
.btn:active { transform: translateY(1px); }
.btn.hot { background: var(--t); border-color: var(--t); color: #1a1206; }
.btn.hot:hover { background: #f2b356; }
.btn.big { min-height: 60px; font-size: 19px; padding: 0 36px; }
.btn[disabled] { opacity: .45; cursor: default; }

/* shared-result banner (someone sent you their score) */
.challenge { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 0 0 22px; border: 1px solid rgba(233, 162, 59, .4);
  border-radius: 12px; background: linear-gradient(90deg, rgba(233, 162, 59, .1), transparent 70%); }
.challenge img, .challenge .ini { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.challenge .ini { display: grid; place-items: center; background: #1b2230; font: 900 20px/1 var(--display); color: var(--mute); }
.challenge b { font-size: 17px; }
.challenge p { margin: 2px 0 0; color: #c6cfdb; font-size: 14px; }

/* intro of a game */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.intro h1 { font: 900 clamp(36px, 6vw, 64px)/1.1 var(--body); margin: 0; text-wrap: balance; word-break: keep-all; }
.intro .lede { color: #c6cfdb; margin: 16px 0 26px; max-width: 30em; }
.rules { list-style: none; padding: 0; margin: 0 0 28px; color: #b6c0ce; font-size: 15px; }
.rules li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.rules li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 2px; background: var(--t); }
.fine { color: var(--dim); font-size: 13px; margin-top: 14px; }

/* leaderboard */
.lboard h2 { font-size: 22px; margin: 0 0 12px; }
.tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.tabs button { background: none; border: 1px solid transparent; color: var(--mute); font: 600 14px/1 var(--body); padding: 9px 14px;
  border-radius: 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { border-color: var(--line); color: var(--fg); background: var(--ink-2); }
.lboard ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.lboard li { counter-increment: r; display: grid; grid-template-columns: 34px 28px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.lboard li::before { content: counter(r); font: 900 20px/1 var(--display); color: var(--dim); text-align: right; }
.lboard li:nth-child(1)::before { color: var(--t); }
.lboard li.me { background: rgba(255, 93, 122, .07); }
.lboard li img, .lboard li i { width: 28px; height: 28px; border-radius: 50%; background: #1b2230; }
.lboard li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lboard li b { font: 900 22px/1 var(--display); }
.lboard .empty, .lboard .nudge { color: var(--mute); font-size: 14px; padding: 14px 0; margin: 0; }
.lboard .nudge a { color: var(--t); }

/* ---------------------------------------------------------------- battle HUD */
.arena { max-width: 760px; margin: 0 auto; }
.seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.seat { position: relative; padding: 10px 10px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2);
  min-width: 0; transition: border-color .2s, opacity .3s; }
.seat.you { border-color: rgba(255, 93, 122, .6); }
.seat.empty { border-style: dashed; opacity: .5; }
.seat .nm { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; min-width: 0; }
.seat .nm img, .seat .nm i { width: 22px; height: 22px; border-radius: 50%; flex: none; background: #1b2230; }
.seat .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .tag { display: block; font-size: 11px; color: var(--mute); margin-top: 2px; letter-spacing: .02em; }
.seat .sc { font: 900 26px/1 var(--display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.seat .dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: transparent;
  border: 1.5px solid var(--dim); }
.seat.answered .dot { background: #4fd18b; border-color: #4fd18b; }
.seat .gain { position: absolute; right: 10px; bottom: 9px; font: 900 18px/1 var(--display); color: #4fd18b; opacity: 0; }
.seat .gain.zero { color: var(--dim); }
.seat.pop .gain { animation: gain 1.6s ease-out both; }
@keyframes gain { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.seat .pick { font-size: 12px; color: var(--mute); margin-left: 4px; }

.qbar { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0 8px; }
.qbar b { font: 900 22px/1 var(--display); letter-spacing: .03em; }
.qbar span { color: var(--mute); font-size: 14px; }
.timer { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: var(--t); transform-origin: left; }
.timer.low i { background: var(--me); }

.stage { position: relative; margin: 12px 0; aspect-ratio: 1 / .78; max-height: max(260px, calc(100vh - 440px)); width: 100%; border-radius: 12px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 40%, #0f1520, #080b10); overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .meta { position: absolute; left: 12px; top: 10px; font-size: 13px; color: var(--mute); display: flex; gap: 10px; }
.stage .meta b { font: 900 16px/1.2 var(--display); color: var(--fg); letter-spacing: .04em; }
.stage .clock { margin: 0; position: absolute; right: 12px; top: 8px; font: 900 22px/1 var(--display); color: var(--fg); font-variant-numeric: tabular-nums; }
.stage .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.stage .big { font: 900 clamp(64px, 16vw, 140px)/1 var(--display); }
.stage .say { color: #c6cfdb; font-size: 17px; margin-top: 8px; }

.ask { text-align: center; font: 800 clamp(20px, 3.4vw, 26px)/1.3 var(--body); margin: 4px 0 12px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answers button { min-height: 76px; border-radius: 12px; border: 2px solid var(--line); background: var(--ink-2); color: var(--fg);
  font: 800 22px/1.2 var(--body); cursor: pointer; padding: 10px; transition: border-color .15s, background-color .15s, transform .08s; }
.answers button:hover:not([disabled]) { border-color: rgba(150, 170, 200, .45); }
.answers button:active:not([disabled]) { transform: scale(.985); }
.answers button small { display: block; font-size: 13px; font-weight: 500; color: var(--mute); margin-top: 4px; }
.answers button.mine { border-color: var(--me); background: rgba(255, 93, 122, .1); }
.answers button.right { border-color: #4fd18b; background: rgba(79, 209, 139, .12); }
.answers button.wrong { border-color: rgba(255, 93, 122, .7); }
.answers button[disabled] { cursor: default; }
.answers .who { display: flex; justify-content: center; gap: 4px; margin-top: 6px; min-height: 18px; }
.answers .who i { width: 18px; height: 18px; border-radius: 50%; background: #2a3344; font: 700 10px/18px var(--body); font-style: normal; color: var(--fg); }
.answers .who i.you { background: var(--me); }

/* pick: two pro name plates instead of a replay */
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.plates button { position: relative; min-height: 180px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; color: var(--fg);
  background: linear-gradient(160deg, #141b27, #0b0f16); padding: 18px 14px; text-align: center; transition: border-color .15s, transform .08s; }
.plates button:hover:not([disabled]) { border-color: rgba(150, 170, 200, .45); }
.plates button:active:not([disabled]) { transform: scale(.985); }
.plates .pn { font: 900 clamp(30px, 7vw, 54px)/1 var(--display); letter-spacing: .02em; overflow-wrap: anywhere; }
.plates .pt { color: var(--mute); font-size: 14px; margin-top: 8px; }
.plates .pv { font: 900 30px/1 var(--display); margin-top: 14px; color: var(--t); min-height: 30px; }
.plates button.mine { border-color: var(--me); }
.plates button.right { border-color: #4fd18b; background: linear-gradient(160deg, #13261f, #0b0f16); }
.plates button.wrong { border-color: rgba(255, 93, 122, .7); }
.plates .who { position: absolute; left: 0; right: 0; top: 10px; display: flex; justify-content: center; gap: 4px; }
.plates .who i { width: 18px; height: 18px; border-radius: 50%; background: #2a3344; font: 700 10px/18px var(--body); font-style: normal; }
.plates .who i.you { background: var(--me); }
.reveal-line { text-align: center; color: #c6cfdb; min-height: 26px; font-size: 15px; }
.reveal-line b { color: var(--fg); }

/* searching */
.search { text-align: center; padding: 40px 0 10px; }
.search .big { font: 900 clamp(54px, 12vw, 96px)/1 var(--display); }
.search p { color: var(--mute); margin: 10px 0 0; }

/* result */
.result { text-align: center; padding: 10px 0 0; }
.result .place { font: 900 clamp(70px, 18vw, 150px)/.95 var(--display); color: var(--t); }
.result .place small { font-size: .35em; color: var(--mute); margin-left: 6px; }
.result h2 { margin: 8px 0 4px; }
.result .sub2 { color: #c6cfdb; margin: 0; }
.podium { list-style: none; padding: 0; margin: 22px auto 0; max-width: 520px; text-align: left; }
.podium li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 6px;
  border-bottom: 1px solid var(--line); }
.podium li.you { background: rgba(255, 93, 122, .08); }
.podium li > b:first-child { font: 900 22px/1 var(--display); color: var(--dim); }
.podium li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium li > span small { color: var(--mute); margin-left: 6px; font-size: 12px; }
.podium li > b:last-child { font: 900 24px/1 var(--display); }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }
.claim { margin: 22px auto 0; max-width: 520px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(233, 162, 59, .5);
  color: #c6cfdb; font-size: 15px; }
.claim a { color: var(--t); font-weight: 700; }
.preview { margin: 22px auto 0; max-width: 300px; }
.preview img { border-radius: 10px; border: 1px solid var(--line); }

/* ---------------------------------------------------------------- personality test */
.quiz { max-width: 640px; margin: 0 auto; }
.quiz .step { font: 900 18px/1 var(--display); color: var(--mute); letter-spacing: .05em; }
.quiz .progress { display: flex; gap: 4px; margin: 10px 0 26px; }
.quiz .progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.quiz .progress i.on { background: var(--t); }
.quiz h2 { font: 800 clamp(24px, 4.4vw, 34px)/1.35 var(--body); margin: 0 0 24px; }
.opts { display: grid; gap: 10px; }
.opts button { text-align: left; min-height: 68px; padding: 14px 18px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--ink-2); color: var(--fg); font: 600 18px/1.45 var(--body); cursor: pointer; transition: border-color .15s, transform .08s; }
.opts button:hover { border-color: rgba(233, 162, 59, .6); }
.opts button:active { transform: scale(.99); }

.ptype { text-align: center; }
.ptype .code { font: 900 22px/1 var(--display); letter-spacing: .3em; color: var(--mute); }
.ptype h1 { font: 900 clamp(46px, 11vw, 96px)/1.05 var(--body); margin: 10px 0 12px; }
.ptype .desc { color: #c6cfdb; max-width: 30em; margin: 0 auto; font-size: 18px; }
.meters { max-width: 560px; margin: 32px auto 0; display: grid; gap: 16px; }
.meter { display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; gap: 10px; align-items: center; font-size: 14px; }
.meter span:first-child { text-align: right; }
.meter span { color: var(--mute); }
.meter span.on { color: var(--fg); font-weight: 700; }
.meter .rail { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.meter .rail::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: rgba(150, 170, 200, .35); }
.meter .rail i { position: absolute; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--t); transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(233, 162, 59, .2); }
.meter .rail i.demo { background: var(--me); box-shadow: 0 0 0 4px rgba(255, 93, 122, .2); }
.alike { max-width: 560px; margin: 32px auto 0; text-align: left; }
.alike h3 { font-size: 16px; margin: 0 0 8px; color: var(--mute); font-weight: 600; }
.alike ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.alike li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.alike li small { color: var(--mute); margin-left: 6px; }
.versus { max-width: 640px; margin: 34px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.versus div { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2); text-align: center; }
.versus small { color: var(--mute); display: block; font-size: 13px; }
.versus b { display: block; font: 800 clamp(20px, 4vw, 28px)/1.3 var(--body); margin-top: 6px; }
.versus .demo { border-color: rgba(255, 93, 122, .55); }
.verdict { text-align: center; color: #c6cfdb; margin: 14px auto 0; max-width: 30em; }

/* ---------------------------------------------------------------- trade IOU card */
.iou-card { max-width: 640px; margin: 0 auto; }
.iou-card h1 { font: 900 clamp(34px, 7vw, 60px)/1.1 var(--body); margin: 0 0 6px; }
.iou-card .lede { color: #c6cfdb; margin: 0 0 22px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { padding: 16px 2px; border-bottom: 1px solid var(--line); }
.ledger .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ledger .row1 b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger .row1 span { color: var(--mute); font-size: 13px; white-space: nowrap; }
.ledger .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 10px 0 8px; height: 10px; }
.ledger .bars i { display: block; height: 100%; border-radius: 3px; }
.ledger .bars .they { background: var(--ct); justify-self: end; }
.ledger .bars .mine { background: var(--t); }
.ledger .nums { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); }
.ledger .nums b { font: 900 20px/1 var(--display); color: var(--fg); margin: 0 4px; }
.ledger .quip { margin: 8px 0 0; font-size: 15px; color: #c6cfdb; }
.ledger .quip strong { color: var(--fg); }

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seat .sc { font-size: 22px; }
  .stage { aspect-ratio: 1 / .9; }
  .answers button { min-height: 66px; font-size: 20px; }
  .plates button { min-height: 150px; }
  .versus { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .seat.pop .gain { animation: none; opacity: 1; }
  .btn, .answers button, .plates button, .opts button { transition: none; }
}

/* round 2: tells, streaks, tiers, sound toggle */
.reveal-line .tell { display: block; margin-top: 6px; color: var(--fg); font-weight: 600; }
.qbar .mute { margin-left: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--mute);
  font: 700 15px/1 var(--body); cursor: pointer; }
.qbar { gap: 8px; } .qbar span.mine-time { margin-left: auto; }
.seat .gain.hot { color: var(--t); }
.result .tier { font-size: 15px; color: var(--mute); letter-spacing: .04em; }
.result .tier b { display: block; font: 900 clamp(34px, 7vw, 54px)/1.1 var(--body); color: var(--fg); margin-top: 4px; letter-spacing: 0; }
.alike li.on { border-color: var(--t); color: var(--t); }
.ptype .btn.big { display: inline-flex; }
.battle-on .top, .battle-on .gnav, .battle-on .subnav, .battle-on .tabbar { display: none; }
.battle-on .arena { padding-top: 14px; }
.battle-on .play { padding-top: 0; }
.battle-on footer { display: none; }

/* place names on the 3D map (play.js placeLabels): quiet enough to read the path through, bombsites stand out */
.stage .lbls { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.stage .lbl { position: absolute; left: 0; top: 0; padding: 2px 3px; white-space: nowrap; font: 600 12px/1.1 var(--body); letter-spacing: .02em;
  color: rgba(204, 216, 236, .72); text-shadow: 0 0 3px #080b10, 0 0 6px #080b10; transition: opacity .25s; will-change: transform; }
.stage .lbl.site { font: 900 17px/1 var(--display); letter-spacing: .06em; color: rgba(233, 162, 59, .9); }
@media (max-width: 600px) { .stage .lbl { font-size: 11px; } .stage .lbl.site { font-size: 15px; } }

/* 他下一步去哪: four place choices, and the answer lit up on the map */
.answers.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.answers.four button { min-height: 64px; font-size: 20px; }
.answers.four .pl { display: block; }
.stage .lbl.hit { font: 900 18px/1 var(--display); color: #4fd18b; letter-spacing: .04em; z-index: 2; }
.reveal-line [data-place] { color: var(--fg); font-weight: 700; }
/* lobby: the newest game gets the full width */
.games .game.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.games .game.wide .g-art { aspect-ratio: auto; min-height: 280px; }
.games .game.wide .g-art::after { inset: 0 0 0 auto; width: 30%; height: auto; background: linear-gradient(270deg, var(--ink-2), transparent); }
.games .game.wide .g-body { padding: 26px 28px 24px; justify-content: center; }
.chip.new { margin-left: 8px; vertical-align: middle; background: rgba(233, 162, 59, .16); color: var(--t); font-weight: 700; }
.next-q { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.next-q b { font: 900 clamp(64px, 9vw, 120px)/1 var(--display); color: rgba(231, 236, 243, .9); text-shadow: 0 0 30px rgba(8, 11, 16, .9); }
@media (min-width: 761px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .boards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .games .game.wide { grid-template-columns: 1fr; }
  .games .game.wide .g-art { aspect-ratio: 16 / 10; min-height: 0; }
  .games .game.wide .g-art::after { inset: auto 0 0; width: auto; height: 30%; background: linear-gradient(0deg, var(--ink-2), transparent); }
  .answers.four button { min-height: 56px; font-size: 17px; }
}
main[data-game="next"] .stage { max-height: max(240px, calc(100vh - 500px)); }
main[data-game="next"] .answers.four button { min-height: 0; padding: 14px 12px 12px; }

/* duels and form (result screen), streak (lobby) */
.duel { margin: 18px auto 6px; max-width: 420px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2); text-align: center; }
.duel.win { border-color: rgba(79, 209, 139, .5); } .duel.lose { border-color: rgba(255, 93, 122, .45); }
.duel > p { margin: 0; font-weight: 700; }
.duel .vs { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 8px 0 2px; }
.duel .vs span { display: flex; flex-direction: column; align-items: center; color: var(--mute); font-size: 13px; }
.duel .vs b { font: 900 52px/1 var(--display); color: var(--fg); }
.duel .vs i { font: 900 36px/1 var(--display); color: var(--dim); font-style: normal; }
.duel .pts { color: var(--mute); font-size: 13px; }
.result .form { margin: 10px 0 0; color: #c6cfdb; font-size: 15px; }
.result .form em { margin-left: 6px; font-style: normal; font-weight: 700; } .result .form em.up { color: #4fd18b; } .result .form em.down { color: var(--me); }
.result .form .streak, .arc-streak { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(233, 162, 59, .14); color: var(--t); font-size: 13px; font-weight: 700; }
.arc-streak { margin: 10px 0 0; }
.duel-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px 0 8px; }
.duel-cta p { margin: 0; color: var(--mute); font-size: 13px; }
.chip.mine { color: var(--fg); background: rgba(93, 143, 240, .16); }

/* 點出他的位置: tap the map, lock it in */
.games { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.stage.spot { cursor: crosshair; }
.answers.lock { grid-template-columns: 1fr; }
.answers.lock button { min-height: 0; padding-top: 16px; padding-bottom: 16px; }
.answers.lock button .who:empty { display: none; }
.answers.lock button[disabled]:not(.mine):not(.right):not(.wrong) { opacity: .55; }
.reveal-line .dist { display: block; font-size: 18px; color: var(--fg); margin-bottom: 4px; }
.spot-pin { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.spot-pin i { width: 34px; height: 34px; border-radius: 50%; background: #ff5d7a; box-shadow: 0 0 0 8px rgba(255, 93, 122, .22), 0 0 30px 6px rgba(255, 93, 122, .5); }
main[data-game="spot"] .stage { max-height: max(260px, calc(100vh - 420px)); }

.game[hidden] { display: none; }
/* utility quiz (site/nade.js) */
.nd { max-width: 720px; margin: 0 auto; padding: 22px 0 48px; }
.nd-loading { color: var(--mute); padding: 80px 0; text-align: center; }
.nd-prog { margin: 0 0 10px; color: var(--mute); font: 800 15px/1 var(--display); letter-spacing: .08em; }
.nd-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.nd-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.nd-mark { position: absolute; left: 12px; top: 12px; padding: 7px 13px; border-radius: 999px; font-weight: 800; font-size: 15px; color: #0b0f16; }
.nd-mark[hidden] { display: none; } .nd-mark.good { background: #46c47e; } .nd-mark.bad { background: var(--me); }
.nd-q { margin: 16px 0 14px; font-size: clamp(21px, 3vw, 28px); line-height: 1.35; }
.nd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nd-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px; border-radius: 18px; border: 2px solid var(--line); background: var(--ink-2); color: var(--fg); font: inherit; cursor: pointer; text-align: center; transition: border-color .15s, transform .15s; }
.nd-opt:hover:enabled { border-color: rgba(233,162,59,.7); transform: translateY(-2px); }
.nd-opt b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(150,170,200,.14); font: 900 30px/1 var(--display); }
.nd-opt span { font-weight: 700; font-size: 17px; line-height: 1.35; }
.nd-opt em { font-style: normal; font-size: 13px; color: var(--mute); min-height: 1.2em; }
.nd-opt.ans { border-color: #46c47e; background: rgba(70,196,126,.12); } .nd-opt.ans b { background: #46c47e; color: #0b0f16; }
.nd-opt.miss { border-color: var(--me); background: rgba(255,93,122,.1); } .nd-opt.miss b { background: var(--me); color: #0b0f16; }
.nd-opt:disabled { cursor: default; }
.nd-after { margin-top: 16px; } .nd-after[hidden] { display: none; }
.nd-ans { margin: 0; font-weight: 800; font-size: 18px; } .nd-why { margin: 6px 0 0; color: #c6cfdb; line-height: 1.6; }
.nd-after .cta { margin-top: 14px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.nd-end { text-align: center; padding: 70px 0; } .nd-score { margin: 0; color: var(--mute); font-size: 30px; } .nd-score b { font: 900 120px/1 var(--display); color: var(--t); margin-right: 8px; }
.nd-end h1 { font-size: 26px; margin: 8px 0 22px; } .nd-end .cta { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
