*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-pattern), var(--bg);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.px-svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; overflow: visible; }

/* ---------- type primitives ---------- */

.display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  line-height: 0.95;
  margin: 0;
}
.label {
  font-family: var(--label);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.3;
}
.muted { color: var(--ink-2); }

/* ---------- surfaces ---------- */

.card {
  position: relative;
  background: var(--surface);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Little square handles on the corners (Frontier + Lab). */
.card.corners::after {
  content: '';
  display: var(--corners);
  position: absolute;
  inset: -4px;
  pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) top left / 7px 7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 7px 7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 7px 7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 7px 7px no-repeat;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.15s, color 0.15s, transform 0.12s, box-shadow 0.12s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--btn-bg-hover); color: var(--btn-ink-hover); box-shadow: var(--shadow-hover); transform: translate(-1px, -1px); }
.btn:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: none; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn .arrow { font-family: var(--label); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  height: 60px;
  background: var(--surface);
  border-bottom: var(--border) solid var(--line-strong);
}
.topbar > * { display: flex; align-items: center; padding: 0 20px; border-right: var(--border) solid var(--line); }
.topbar .brand { gap: 12px; text-decoration: none; font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-transform); font-size: 21px; }
.brand-mark { width: 30px; height: 30px; }
.topbar .spacer { flex: 1; border-right: 0; }
.topbar .stat { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-width: 96px; border-left: var(--border) solid var(--line); border-right: 0; }
.topbar .stat b { font-family: var(--label); font-size: 18px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.topbar .stat.timer b { color: var(--accent); }
[data-theme='bauhaus'] .topbar .stat.timer b,
[data-theme='frontier'] .topbar .stat.timer b { color: var(--ink); }

/* ---------- layout ---------- */

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
main { padding-bottom: 120px; }

/* ---------- landing ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-bottom: var(--border) solid var(--line-strong); background: var(--surface); }
.hero-copy { padding: 72px 48px 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; border-right: var(--border) solid var(--line-strong); }
.hero h1 { font-size: clamp(64px, 11vw, 168px); }
.hero h1 span { background: var(--hero-highlight); padding: 0 0.04em; }
.hero .lede { font-size: clamp(19px, 2vw, 25px); line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; margin: 0; }
.hero-art { position: relative; min-height: 420px; overflow: hidden; background: var(--surface-2); }
.hero-art .mosaic { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; }
.hero-art .perch { position: absolute; display: flex; align-items: flex-end; gap: 18px; left: 9%; bottom: 56%; }
.hero-art .perch .mascot, .hero-art .perch .box { width: 64px; height: 64px; }
.hero-tags { position: absolute; font-family: var(--label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--surface); padding: 2px 6px; }

.mosaic { display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); }
.mosaic i { display: block; }
.mosaic .c1 { background: var(--px-1); }
.mosaic .c2 { background: var(--px-2); }
.mosaic .c3 { background: var(--px-3); }
.mosaic .c4 { background: var(--px-4); }

.mascot { width: 56px; height: 56px; flex: none; }
.mascot.hop { animation: hop 2.6s ease-in-out infinite; }
.mascot.hop:nth-child(2) { animation-delay: 0.35s; }
.mascot.hop:nth-child(3) { animation-delay: 0.7s; }
.mascot.hop:nth-child(4) { animation-delay: 1.05s; }
@keyframes hop {
  0%, 70%, 100% { transform: translateY(0); }
  78% { transform: translateY(-14px); }
  86% { transform: translateY(0); }
  91% { transform: translateY(-4px); }
}

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 56px 0 20px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); }

.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px; }
.level-card { display: flex; flex-direction: column; gap: 18px; padding: 26px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.level-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.level-card .top { display: flex; justify-content: space-between; align-items: center; }
.level-card h3 { font-size: 40px; }
.level-card p { margin: 0; font-size: 17px; line-height: 1.4; max-width: 40ch; }
.lineup { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 18px; border-top: var(--border) dashed var(--line); }
.lineup .who { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.lineup .mascot { width: 34px; height: 34px; }
.level-card .go { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.level-card .go .btn { pointer-events: none; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border: var(--border) solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.how > div { padding: 22px; border-right: var(--border) solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.how > div:last-child { border-right: 0; }
.how b { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 22px; line-height: 1.1; }
.how .step-art { width: 36px; height: 36px; }

.empty-state { padding: 40px; text-align: center; }

/* ---------- play ---------- */

.stage { padding-top: 40px; }
.progress { display: flex; gap: 6px; align-items: center; }
.progress i { width: 26px; height: 8px; background: var(--surface-2); border: var(--border) solid var(--line-strong); border-radius: calc(var(--radius) / 3); }
.progress i.done { background: var(--ink); }
.progress i.now { background: var(--accent); }

.prompt-stage { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.prompt-card { padding: 40px 44px; display: flex; flex-direction: column; gap: 18px; }
.prompt-text { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: calc(var(--display-tracking) / 2); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.12; white-space: pre-wrap; margin: 0; text-transform: none; }
.prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.prompt-foot .lineup { border: 0; padding: 0; }

.shuffle-stage { position: relative; height: 340px; max-width: 900px; margin: 30px auto 0; }
.shuffle-stage .slot { position: absolute; top: 120px; width: 150px; height: 150px; margin-left: -75px; transition: left 0.32s cubic-bezier(0.5, 0, 0.3, 1.4), transform 0.3s; }
.shuffle-stage .slot .mascot { position: absolute; inset: 20px; width: auto; height: auto; transition: transform 0.25s, opacity 0.2s; }
.shuffle-stage .slot .box { position: absolute; inset: 0; transform: translateY(-420px); opacity: 0; transition: transform 0.35s cubic-bezier(0.6, 0, 0.9, 0.6), opacity 0.1s; }
.shuffle-stage .slot.boxed .box { transform: translateY(0); opacity: 1; }
.shuffle-stage .slot.boxed .mascot { transform: scale(0.6); opacity: 0; transition-delay: 0.3s; }
.shuffle-stage .slot.lift { transform: translateY(-26px); }
.shuffle-stage .slot .box .letter { opacity: 0; transition: opacity 0.1s; }
.shuffle-stage .slot.stamped .box .letter { opacity: 1; }
.shuffle-stage .slot.stamped .box { animation: stamp 0.3s ease-out; }
@keyframes stamp { 40% { transform: scale(1.12, 0.9); } 100% { transform: scale(1); } }
.puff { position: absolute; inset: 60px -40px 0; pointer-events: none; display: grid; grid-template-columns: repeat(24, 1fr); grid-template-rows: repeat(8, 1fr); opacity: 0; }
.puff i { background: var(--surface); border-radius: 0; opacity: 0; }
.puff.on { opacity: 1; }
.puff.on i { animation: puff 0.9s ease-out forwards; }
@keyframes puff { 0% { opacity: 0; transform: scale(0.2); } 30% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(0.4); } }
.shuffle-caption { position: absolute; left: 0; right: 0; top: 20px; text-align: center; }

.guess-stage { display: flex; flex-direction: column; gap: 22px; }
.prompt-mini { display: flex; gap: 18px; align-items: flex-start; padding: 18px 22px; }
.prompt-mini .prompt-text { font-size: clamp(19px, 1.8vw, 24px); flex: 1; }

.columns { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 22px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 80px; }
.col-head { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.col-head .who-box { position: relative; width: 76px; height: 76px; flex: none; }
.col-head .who-box .box, .col-head .who-box .mascot { position: absolute; inset: 0; width: 100%; height: 100%; }
.col-head .who-box .mascot { inset: 10px; width: auto; height: auto; opacity: 0; transform: translateY(10px) scale(0.5); }
.col-head h3 { font-size: 34px; line-height: 1; }
.col-head .head-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.col-summary { font-size: 14.5px; line-height: 1.45; padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--radius); }
.col-summary .label { display: block; margin-bottom: 3px; }

.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 6px;
  border: var(--border) solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px; font-weight: 500;
  transition: border-color 0.12s, background 0.12s, transform 0.1s;
}
.pick .mascot { width: 24px; height: 24px; }
.pick:hover { border-color: var(--line-strong); }
.pick[aria-pressed='true'] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pick.taken:not([aria-pressed='true']) { opacity: 0.5; }
.pick:disabled { cursor: default; }

.answer { display: flex; flex-direction: column; }
.answer-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: var(--border) solid var(--line); }
.answer-nav .dots { display: flex; gap: 5px; }
.answer-nav .dots button { width: 22px; height: 22px; padding: 0; border: var(--border) solid var(--line); background: var(--surface); border-radius: var(--radius); font-family: var(--label); font-size: 11px; color: var(--ink-2); }
.answer-nav .dots button[aria-current='true'] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.arrow-btn { width: 36px; height: 36px; display: grid; place-items: center; border: var(--border) solid var(--line-strong); background: var(--surface); border-radius: var(--radius); padding: 0; }
.arrow-btn:hover { background: var(--accent); color: var(--accent-ink); }
.arrow-btn svg { width: 14px; height: 14px; }
.answer-body { position: relative; padding: 18px 20px 20px; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.answer-body.clamped { max-height: 1100px; overflow: hidden; }
.answer-body.clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--surface)); }
.read-more { margin: 0 20px 18px; align-self: flex-start; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md h1, .md h2, .md h3, .md h4 { font-size: 1.08em; line-height: 1.3; margin: 1.2em 0 0.4em; }
.md pre { background: var(--surface-2); padding: 12px; overflow-x: auto; border-radius: var(--radius); font-size: 13px; }
.md code { font-family: var(--label); font-size: 0.9em; }
.md blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--ink-2); }
.md table { border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 4px 8px; }
.md hr { border: 0; border-top: 1px solid var(--line); }
.md ul, .md ol { padding-left: 1.3em; }

.answer-in { animation: answer-in 0.22s ease-out; }
@keyframes answer-in { from { opacity: 0; transform: translateX(var(--from, 12px)); } }

.guessbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface);
  border-top: var(--border) solid var(--line-strong);
}
.guessbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.guessbar .slots { display: flex; gap: 10px; align-items: center; }
.guessbar .slot-mini { display: flex; align-items: center; gap: 4px; font-family: var(--label); font-size: 12px; }
.guessbar .slot-mini .box, .guessbar .slot-mini .mascot { width: 30px; height: 30px; }
.guessbar .slot-mini .q { width: 30px; height: 30px; border: var(--border) dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--ink-2); }

/* ---------- reveal ---------- */

.col.revealed .who-box .box { animation: box-off 0.7s ease-in forwards; }
.col.revealed .who-box .mascot { animation: pop-out 0.6s 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
@keyframes box-off { 0% { transform: none; } 25% { transform: rotate(-8deg) translateY(-6px); } 100% { transform: translate(40px, -60px) rotate(28deg); opacity: 0; } }
@keyframes pop-out { to { opacity: 1; transform: none; } }
.col.revealed .col-head { border-color: var(--verdict); box-shadow: inset 0 0 0 2px var(--verdict), var(--shadow); }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-family: var(--label); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 8px; background: var(--verdict); color: #fff; border-radius: var(--radius); align-self: flex-start; }
.col.right { --verdict: var(--ok); }
.col.wrong { --verdict: var(--bad); }

.result-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 22px 26px; animation: answer-in 0.3s ease-out; }
.result-panel .points { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 58px; line-height: 0.9; }
.result-panel .points small { font-size: 0.4em; letter-spacing: 0; }
.crowd { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.crowd-bar { position: relative; display: flex; height: 30px; border: var(--border) solid var(--line-strong); border-radius: var(--radius); overflow: visible; background: var(--surface-2); }
.crowd-bar .seg { position: relative; height: 100%; display: grid; place-items: center; font-family: var(--label); font-size: 12px; font-weight: 600; color: #1a1a1a; overflow: visible; transition: flex-grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); min-width: 0; }
.crowd-bar .seg span { overflow: hidden; white-space: nowrap; }
.crowd-bar .seg.you::before { content: '▼ YOU'; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--ink); white-space: nowrap; }
.crowd-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.crowd-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }

/* ---------- end ---------- */

.end-stage { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.end-hero { padding: 40px 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; overflow: hidden; }
.end-hero .big { font-size: clamp(80px, 12vw, 150px); }
.recap { display: flex; gap: 8px; flex-wrap: wrap; }
.recap .r { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; border: var(--border) solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 64px; }
.recap .r b { font-family: var(--label); font-weight: 500; }
.recap .r i { width: 14px; height: 14px; border-radius: var(--radius); }

.board { padding: 0; overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: var(--border) solid var(--line-strong); gap: 16px; flex-wrap: wrap; }
.board-head h2 { font-size: 36px; }
.board table { width: 100%; border-collapse: collapse; }
.board td { padding: 11px 22px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board td.rank { width: 70px; font-family: var(--label); color: var(--ink-2); }
.board td.score { text-align: right; font-family: var(--label); }
.board tr.you td { background: var(--surface-2); font-weight: 600; }
.board tr.you td.rank { color: var(--accent); }
.name-form { display: flex; gap: 10px; flex-wrap: wrap; }
.input {
  padding: 12px 14px; min-width: 0;
  border: var(--border) solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface);
}

/* ---------- theme dock ---------- */

.theme-dock {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: flex; align-items: center; gap: 4px;
  padding: 5px; background: #111; color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.25);
  font: 500 12px/1 'Geist Mono', ui-monospace, monospace;
}
.theme-dock > span { padding: 0 8px 0 10px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.05em; }
.theme-dock button { border: 0; background: transparent; color: #fff; padding: 8px 10px; border-radius: 999px; display: flex; gap: 6px; align-items: center; font: inherit; }
.theme-dock button i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.theme-dock button[aria-pressed='true'] { background: #fff; color: #111; }
.theme-dock:not(.open) button:not([aria-pressed='true']) { display: none; }
.theme-dock:not(.open) button[aria-pressed='true'] { background: transparent; color: #fff; }
.theme-dock:not(.open) button[aria-pressed='true']::after { content: '▴'; opacity: 0.6; }
.play-active .theme-dock { bottom: 92px; }

/* ---------- toast ---------- */

.toast { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 60; padding: 10px 16px; background: var(--ink); color: var(--surface); border-radius: var(--radius); font-size: 14px; animation: answer-in 0.2s; }

/* ---------- mobile ---------- */

.tabs { display: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; border-bottom: var(--border) solid var(--line-strong); padding: 44px 20px 32px; }
  .hero-art { min-height: 260px; }
  .how { grid-template-columns: 1fr 1fr; }
  .how > div:nth-child(2) { border-right: 0; }
  .how > div:nth-child(-n + 2) { border-bottom: var(--border) solid var(--line); }
  .result-panel { grid-template-columns: 1fr; gap: 18px; }
  .end-hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .topbar { height: 54px; }
  .topbar > * { padding: 0 12px; }
  .topbar .brand { font-size: 18px; }
  .topbar .stat { min-width: 0; }
  .topbar .hide-sm { display: none; }
  .levels { grid-template-columns: 1fr; }
  .level-card h3 { font-size: 32px; }
  .prompt-card { padding: 26px 22px; }
  .stage { padding-top: 22px; }

  .tabs { display: flex; gap: 8px; position: sticky; top: 54px; z-index: 15; padding: 10px 0; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); }
  .prompt-mini { flex-direction: column; gap: 6px; }
  .play-active .theme-dock { display: none; }
  .tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; border: var(--border) solid var(--line); background: var(--surface); border-radius: var(--radius); font-family: var(--label); font-size: 12px; }
  .tabs button[aria-current='true'] { border-color: var(--line-strong); box-shadow: inset 0 -3px 0 var(--accent); }
  .tabs .box, .tabs .mascot { width: 28px; height: 28px; }
  .tabs .tab-pick { width: 22px; height: 22px; }

  .columns { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .columns::-webkit-scrollbar { display: none; }
  .col { flex: 0 0 calc(100% - 8px); scroll-snap-align: center; }
  .col-head .who-box { width: 60px; height: 60px; }
  .answer-body.clamped { max-height: 780px; }

  .guessbar .slots { display: none; }
  .guessbar .wrap { min-height: 68px; }
  .guessbar .btn { flex: 1; }
  .guessbar .status { display: none; }
  .theme-dock.open { left: 8px; right: 8px; justify-content: space-between; overflow-x: auto; }
  .theme-dock { bottom: 8px; }
  .theme-dock > span { display: none; }
  .play-active .theme-dock { bottom: 80px; }
  .shuffle-stage { height: 260px; }
  .shuffle-stage .slot { width: 96px; height: 96px; margin-left: -48px; top: 100px; }
  .shuffle-stage .slot .mascot { inset: 14px; }
  .end-hero, .prompt-mini { padding: 22px 18px; }
  .board td { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
