/* Wahey — TV studio look: ultramarine set, warm bulb-white plates, marquee gold. */

@font-face { font-family: 'Anton'; src: url(../fonts/anton-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url(../fonts/bricolage-grotesque-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url(../fonts/bricolage-grotesque-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url(../fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --stage: #151a63;
  --stage-deep: #0b0e44;
  --spot: #2c37b6;
  --bulb: #fff6e0;
  --bulb-dim: rgba(255, 246, 224, 0.68);
  --bulb-faint: rgba(255, 246, 224, 0.14);
  --gold: #ffc53d;
  --gold-deep: #c98700;
  --good: #2ee59d;
  --good-deep: #10a56b;
  --bad: #ff5470;
  --ink: #151a63;
  --display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --body: 'Bricolage', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(12px, 2vw, 22px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(130% 75% at 50% -12%, var(--spot) 0%, var(--stage) 48%, var(--stage-deep) 100%) fixed;
  background-color: var(--stage);
  color: var(--bulb);
  font: 400 17px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 26px; border: 0; border-radius: 14px;
  font-weight: 800; font-size: 19px; line-height: 1.1;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--gold-deep); }
.btn-gold:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--bulb); box-shadow: inset 0 0 0 2px rgba(255, 246, 224, 0.45); }
.btn-ghost:active:not(:disabled) { background: var(--bulb-faint); }
.btn:disabled { opacity: 0.4; }

/* ---------- the marquee (the one showy element: logo, round titles, winner) ---------- */
.marquee {
  position: relative; display: inline-block;
  padding: 0.22em 0.5em 0.26em;
  border-radius: 0.2em;
  background: var(--stage-deep);
  font: 400 clamp(56px, 10vw, 128px)/1 var(--display);
  color: var(--gold);
  letter-spacing: 0.01em;
  text-shadow: 0 0 28px rgba(255, 197, 61, 0.45);
}
.marquee::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 14px;
  background: radial-gradient(circle, var(--bulb) 0 3.6px, rgba(255, 246, 224, 0) 4.6px) 2px 2px / 22px 22px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 5px rgba(255, 197, 61, 0.9));
  animation: bulbs 1.1s steps(2) infinite;
  pointer-events: none;
}
.marquee > span { position: relative; display: block; padding: 6px 4px; }
@keyframes bulbs { 50% { background-position: 13px 2px; } }

/* =========================================================
   Home
   ========================================================= */
.home {
  min-height: 100dvh;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px);
  padding: max(28px, env(safe-area-inset-top)) clamp(20px, 5vw, 64px) max(28px, env(safe-area-inset-bottom));
}
.home-hero { display: grid; gap: 22px; justify-items: start; }
.logo { font-size: clamp(64px, 11vw, 150px); width: min-content; }
.tag { font-size: clamp(19px, 2.2vw, 24px); color: var(--bulb-dim); max-width: 26ch; }

.home-form {
  display: grid; gap: 16px;
  background: rgba(11, 14, 68, 0.55);
  border-radius: 22px; padding: clamp(20px, 3vw, 32px);
  box-shadow: inset 0 0 0 1px var(--bulb-faint);
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 15px; color: var(--bulb-dim); padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field input {
  width: 100%; min-height: 56px; padding: 10px 16px;
  border: 0; border-radius: 12px; background: var(--bulb); color: var(--ink);
  font: 800 22px var(--body);
}
.field input::placeholder { color: rgba(21, 26, 99, 0.35); }
.code-field input { font: 400 30px var(--display); letter-spacing: 0.18em; text-transform: uppercase; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-btn {
  min-height: 60px; padding: 10px 12px; border: 0; border-radius: 12px;
  background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 246, 224, 0.3);
  font-weight: 600; font-size: 16px; line-height: 1.2;
}
.seg-btn[aria-pressed="true"] { background: var(--bulb); color: var(--ink); box-shadow: none; font-weight: 800; }
.hint { font-size: 14px; color: var(--bulb-dim); }
.tvlink { color: var(--gold); font-weight: 700; }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.join-row .btn { min-height: 56px; }
.choice { display: grid; gap: 10px; padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--bulb-faint); }
.choice-head { font: 400 24px/1 var(--display); color: var(--gold); letter-spacing: 0.01em; }
.form-error { color: var(--bad); font-weight: 600; min-height: 1px; }
.form-error:empty { display: none; }
.home.has-room .home-form { grid-template-areas: none; }

@media (max-width: 760px), (orientation: portrait) and (max-width: 900px) {
  .home { grid-template-columns: 1fr; align-content: center; }
  .home-hero { justify-items: center; text-align: center; }
}

/* =========================================================
   Game layout
   ========================================================= */
.game {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.bar { display: flex; align-items: center; gap: 18px; padding: 10px var(--gutter); min-height: 56px; }
.brand { font: 400 26px/1 var(--display); color: var(--gold); letter-spacing: 0.01em; }
.roundinfo { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1; }
.roundinfo b { font-weight: 800; font-size: 19px; white-space: nowrap; }
.roundinfo span { color: var(--bulb-dim); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.count {
  font: 400 34px/1 var(--display); min-width: 2ch; text-align: right; color: var(--bulb);
  font-variant-numeric: tabular-nums;
}
.count.is-low { color: var(--bad); }
.baractions { display: flex; align-items: center; gap: 10px; }
.roomtag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--bulb-dim); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--bulb-faint); white-space: nowrap; }
.roomtag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.roomtag.is-down { color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.roomtag.is-down::before { background: var(--bad); box-shadow: none; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bulb-faint); }
.iconbtn { position: relative; }
.iconbtn.is-off { background: var(--bad); color: #fff; }
.iconbtn.is-off::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 2.5px; border-radius: 2px;
  background: #fff; box-shadow: 0 0 0 1.5px var(--bad); transform: translate(-50%, -50%) rotate(-45deg);
}
.soundvia {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--bulb-faint); color: var(--bulb-dim); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.soundvia svg { width: 16px; height: 16px; color: var(--gold); flex: none; }

.timer { height: 6px; margin: 0 var(--gutter); border-radius: 3px; background: var(--bulb-faint); overflow: hidden; }
.timer-fill { height: 100%; background: var(--gold); transform-origin: left center; transform: scaleX(0); }
.timer.is-low .timer-fill { background: var(--bad); }

/* ---------- podiums ---------- */
.podiums {
  display: flex; justify-content: center; gap: clamp(8px, 1.4vw, 16px);
  padding: 14px var(--gutter) 4px;
}
.pod { flex: 0 1 270px; min-width: 0; position: relative; }
.cam {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 16px 16px 0 0; background: var(--stage-deep);
  box-shadow: 0 0 0 3px var(--bulb-faint);
  transition: box-shadow 0.25s;
}
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--stage-deep); }
.pod.is-me .cam video { transform: scaleX(-1); }
.cam-init {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 clamp(36px, 5vw, 64px)/1 var(--display); color: var(--bulb-dim);
}
.pod.has-video .cam-init { display: none; }
.flag {
  position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px);
  padding: 3px 10px; border-radius: 999px;
  background: rgba(11, 14, 68, 0.78); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flag:empty { display: none; }
.gain {
  position: absolute; right: 10px; bottom: 6px;
  font: 400 clamp(26px, 3.2vw, 40px)/1 var(--display); color: var(--good);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 0, 0, 0.5);
}
.gain.pop { animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.hub {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: none; place-items: center;
  border-radius: 50%; background: var(--gold); color: var(--ink);
}
.pod.is-hub .hub { display: grid; }
.micoff {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: none; place-items: center;
  border-radius: 50%; background: var(--bad); color: #fff;
}
.pod.is-mic-off .micoff { display: grid; }
.pod.is-hub.is-mic-off .micoff { right: 44px; }
.plate {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 5px 12px 6px; border-radius: 0 0 14px 14px;
  background: var(--bulb); color: var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}
.pname { font-weight: 800; font-size: clamp(14px, 1.5vw, 17px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pscore { font: 400 clamp(20px, 2.2vw, 26px)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.pod.is-leader .plate { background: var(--gold); }

.pod.is-locked .cam { box-shadow: 0 0 0 4px var(--bulb); }
.pod.is-picker .cam { box-shadow: 0 0 0 4px var(--gold), 0 0 26px rgba(255, 197, 61, 0.55); }
.pod.is-good .cam { box-shadow: 0 0 0 5px var(--good), 0 0 30px rgba(46, 229, 157, 0.55); }
.pod.is-bad .cam { box-shadow: 0 0 0 5px var(--bad); }
.pod.is-out .cam video { filter: grayscale(1) brightness(0.55); }
.pod.is-off { opacity: 0.45; }
.pod.can-hub { cursor: pointer; }

@media (max-width: 640px) {
  .podiums { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- stage ---------- */
.stage {
  min-height: 0; overflow: auto;
  display: flex; flex-direction: column;
  padding: 14px var(--gutter);
}
.stage > * { margin: auto; max-width: 100%; } /* centres, but never pushes content off the top when it's tall */
.waiting { text-align: center; color: var(--bulb-dim); font-size: 20px; display: grid; gap: 18px; justify-items: center; }

/* lobby */
.lobby { display: grid; gap: 12px; width: min(1100px, 100%); }
.lobby-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.setup-head { display: grid; gap: 8px; min-width: 0; }
.joinmini {
  display: flex; align-items: center; gap: 14px; flex: none;
  padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--bulb); color: var(--ink);
}
.joinmini .qr { width: 84px; height: 84px; }
.qr svg { width: 100%; height: 100%; display: block; }
.joincard-label { font-weight: 800; font-size: 13px; }
.bigcode { display: flex; gap: 5px; margin: 4px 0; }
.bigcode span {
  width: 40px; height: 46px; display: grid; place-items: center;
  border-radius: 8px; background: var(--ink); color: var(--gold);
  font: 400 32px/1 var(--display);
}
.tvhint b { color: var(--ink); font-weight: 800; word-break: break-all; }
.tvon { color: #0b7a4b; font-weight: 800; }
.joincard-hint { font-size: 12px; color: rgba(21, 26, 99, 0.75); line-height: 1.25; max-width: 190px; }
.setup-head h2 { font: 400 30px/1.1 var(--display); color: var(--gold); letter-spacing: 0.01em; }
.setup-who { color: var(--bulb); font-weight: 600; }
.setup-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg-sm { display: inline-grid; grid-template-columns: auto auto; gap: 6px; }
.seg-sm .seg-btn { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.togglechip {
  min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px;
  background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 246, 224, 0.3); font-weight: 600; font-size: 15px;
}
.togglechip[aria-pressed="true"] { background: var(--bulb); color: var(--ink); box-shadow: none; font-weight: 800; }
.togglechip[aria-pressed="true"]::before { content: '✓ '; }

.stepper { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.stepper button {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--bulb-faint); font: 800 22px/1 var(--body);
}
.stepper button:active:not(:disabled) { background: rgba(255, 246, 224, 0.28); }
.stepper button:disabled { opacity: 0.3; }
.stepper b { font: 400 26px/1 var(--display); min-width: 1ch; text-align: center; }
.stepper span { color: var(--bulb-dim); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gtile {
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px; padding: 7px 7px 8px;
  border-radius: 16px; background: rgba(11, 14, 68, 0.6); box-shadow: inset 0 0 0 2px var(--bulb-faint);
  transition: box-shadow 0.2s, background 0.2s;
}
.gtile.is-on { background: rgba(11, 14, 68, 0.9); box-shadow: inset 0 0 0 3px var(--gold), 0 0 24px rgba(255, 197, 61, 0.18); }
.gtile-body { padding: 0 4px; }
.gtile-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gtile-title .sizechip { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.gtile-body h3 { font: 400 22px/1.1 var(--display); color: var(--gold); letter-spacing: 0.01em; }
.gtile-body p { font-size: 13px; line-height: 1.3; color: var(--bulb-dim); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gtile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; flex-wrap: wrap; }
.tile-count { font-weight: 800; }
.gtile:not(.is-on) .tile-count { color: var(--bulb-dim); font-weight: 600; }
.sizechip {
  min-height: 34px; padding: 6px 12px; border: 0; border-radius: 999px; display: inline-flex; align-items: center;
  background: var(--bulb-faint); font-weight: 600; font-size: 14px; white-space: nowrap;
}
button.sizechip::after { content: '⌄'; margin-left: 6px; opacity: 0.6; transform: translateY(-3px); }
.tile-who { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 2px; }
.tile-who i { font-style: normal; font-weight: 600; font-size: 13px; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 16px; border-radius: 12px; }

/* tile artwork */
.art { height: 48px; border-radius: 10px; background: radial-gradient(90% 130% at 50% 0%, var(--spot), var(--stage-deep)); overflow: hidden; }
.art-quick { display: grid; grid-template-columns: repeat(2, 64px); gap: 4px; place-content: center; }
.art-quick span { height: 18px; border-radius: 6px; background: var(--bulb); display: flex; align-items: center; padding-left: 4px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.art-quick span.on { background: var(--gold); }
.art-quick b { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font: 400 12px/1 var(--display); }
.art-letters { display: flex; gap: 5px; align-items: center; justify-content: center; }
.art-letters span { width: 24px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: var(--bulb); color: var(--ink); font: 400 20px/1 var(--display); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.art-letters span.dim { opacity: 0.35; }
.art-ladder { display: flex; flex-direction: column-reverse; justify-content: center; gap: 2px; padding: 4px 40px; }
.art-ladder i { display: block; width: var(--w); height: 8.5px; margin: 0 auto; border-radius: 6px; background: var(--gold); font: 400 8px/8.5px var(--display); color: var(--ink); font-style: normal; text-align: right; padding-right: 6px; }

/* running order */
.order { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.order-label { color: var(--bulb-dim); font-size: 14px; font-weight: 600; margin-right: 4px; }
.order ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: o; }
.order li {
  counter-increment: o; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--bulb-faint); font-weight: 800; font-size: 14px;
}
.order li::before { content: counter(o); width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font: 400 12px/1 var(--display); align-self: center; }
.order li em { font-style: normal; font-weight: 600; color: var(--bulb-dim); }
.order li.is-surprise { background: transparent; box-shadow: inset 0 0 0 1px var(--bulb-faint); color: var(--bulb-dim); }
.order-empty { color: var(--bulb-dim); font-weight: 600; }
.intro-by { font-weight: 800; font-size: 20px; color: var(--bulb); }
.hubnote { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 15px; color: var(--bulb-dim); }
.hubnote svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.hubnote b { color: var(--bulb); }

/* round intro + final */
.intro, .final { display: grid; justify-items: center; gap: 18px; text-align: center; width: min(900px, 100%); }
.intro-num, .final-cap { font-weight: 600; font-size: 19px; color: var(--bulb-dim); }
.intro-blurb { font-size: clamp(17px, 1.9vw, 21px); max-width: 52ch; color: var(--bulb); }
.intro .marquee { animation: rise 0.6s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes rise { from { transform: translateY(24px) scale(0.92); opacity: 0; } }

/* questions */
.qwrap { width: min(980px, 100%); display: grid; gap: 16px; }
.qnum { text-align: center; font-weight: 600; color: var(--bulb-dim); }
.qtext { text-align: center; font-weight: 800; font-size: clamp(22px, 3vw, 36px); line-height: 1.2; text-wrap: balance; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ans {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 74px; padding: 10px 16px; border: 0; border-radius: 14px;
  background: var(--bulb); color: var(--ink); text-align: left;
  font-weight: 800; font-size: clamp(18px, 2vw, 23px); line-height: 1.15;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.08s, box-shadow 0.08s, opacity 0.2s, background 0.2s;
}
button.ans:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.ans .key {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); font: 400 23px/1 var(--display);
}
.ans .atext { flex: 1; min-width: 0; }
.ans:disabled { opacity: 0.38; }
.ans.is-picked, .ans.is-picked:disabled { opacity: 1; background: var(--gold); box-shadow: 0 5px 0 var(--gold-deep); }
.ans.is-correct { background: var(--good); box-shadow: 0 5px 0 var(--good-deep); }
.ans.is-wrong { background: var(--bad); color: #fff; }
.ans.is-wrong .key { background: rgba(0, 0, 0, 0.25); color: #fff; }
.ans.is-dim { opacity: 0.4; }
.who { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 45%; }
.who i { font-style: normal; font-weight: 600; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: rgba(21, 26, 99, 0.14); }
.ans.is-wrong .who i { background: rgba(0, 0, 0, 0.2); }

.typed { display: flex; gap: 12px; justify-content: center; }
.typed input {
  width: min(360px, 60vw); min-height: 64px; padding: 8px 18px; border: 0; border-radius: 14px;
  background: var(--bulb); color: var(--ink); font: 400 36px var(--display); text-align: center; letter-spacing: 0.04em;
}
.typed .btn { min-height: 64px; }
.typed-locked, .outnote { text-align: center; font-size: 20px; color: var(--bulb-dim); }
.typed-locked b { font: 400 34px var(--display); color: var(--gold); margin-left: 8px; }
.outnote { color: var(--bad); font-weight: 600; }

.rung { display: flex; align-items: center; justify-content: center; gap: 16px; }
.rung-pct { font: 400 clamp(44px, 6vw, 68px)/1 var(--display); color: var(--gold); }
.rung-cap { max-width: 26ch; color: var(--bulb-dim); font-size: 15px; line-height: 1.3; }

.typed-reveal { display: grid; gap: 14px; justify-items: center; }
.answer-big { display: flex; align-items: baseline; gap: 14px; }
.answer-big span { color: var(--bulb-dim); font-weight: 600; }
.answer-big b { font: 400 56px/1 var(--display); color: var(--good); }
.typed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.typed-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 14px; border-radius: 12px; background: var(--bulb-faint); }
.typed-list li.ok { box-shadow: inset 0 0 0 2px var(--good); }
.typed-list li.no { box-shadow: inset 0 0 0 2px var(--bad); }
.typed-list b { font: 400 22px var(--display); }
.explain { text-align: center; font-size: clamp(16px, 1.7vw, 19px); color: var(--bulb); max-width: 60ch; justify-self: center; }
.bonus { text-align: center; font-weight: 800; color: var(--gold); font-size: 20px; }

/* Word Hunt */
.letters { display: grid; gap: 16px; justify-items: center; width: min(980px, 100%); }
.rack { display: flex; gap: clamp(5px, 0.9vw, 10px); justify-content: center; }
.tile {
  width: clamp(52px, 8.4vw, 86px); aspect-ratio: 1; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: var(--bulb); color: var(--ink);
  font: 400 clamp(32px, 5vw, 54px)/1 var(--display);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}
.tile.empty { background: transparent; box-shadow: inset 0 0 0 2px var(--bulb-faint); }
.tile.drop { animation: drop 0.35s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } }
button.tile:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.tile.used { opacity: 0.18; }
.wordline { display: flex; gap: 6px; min-height: 58px; align-items: end; }
.slot {
  width: clamp(36px, 5vw, 52px); height: 52px; display: grid; place-items: center;
  border-bottom: 4px solid var(--bulb-faint); font: 400 40px/1 var(--display); color: var(--gold);
}
.slot.filled { border-color: var(--gold); }
.none { color: var(--bulb-dim); font-size: 20px; }
.wordbtns, .pickbtns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pickbtns .btn-gold { min-width: 170px; font-size: 22px; min-height: 64px; }
.pick-who { font-weight: 800; font-size: clamp(19px, 2.2vw, 24px); text-align: center; }
.rule { font-size: 14px; color: var(--bulb-dim); }

.wordresults { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: min(640px, 100%); }
.wordresults li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto 70px; gap: 14px; align-items: baseline;
  padding: 8px 16px; border-radius: 12px; background: var(--bulb-faint);
}
.wordresults li.ok { box-shadow: inset 4px 0 0 var(--good); }
.wordresults li.no { box-shadow: inset 4px 0 0 var(--bad); }
.wname { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wword { font: 400 28px/1 var(--display); letter-spacing: 0.04em; }
.wnote { font-size: 14px; color: var(--bulb-dim); }
.wpts { font: 400 24px/1 var(--display); text-align: right; color: var(--good); }
.wordresults li.no .wpts { color: var(--bulb-dim); }
.best { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: center; font-size: 15px; color: var(--bulb-dim); }
.best b { font: 400 26px/1 var(--display); color: var(--gold); letter-spacing: 0.04em; }
.best em { font-style: normal; }

/* scores */
.scores { width: min(760px, 100%); display: grid; gap: 16px; }
.scores h2 { font: 400 clamp(30px, 4vw, 44px)/1.1 var(--display); color: var(--gold); text-align: center; letter-spacing: 0.01em; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: min(760px, 100%); }
.board li {
  display: grid; grid-template-columns: 36px minmax(80px, 160px) 1fr auto; grid-template-rows: auto auto;
  column-gap: 14px; align-items: center;
}
.brank { grid-row: span 2; font: 400 28px/1 var(--display); color: var(--bulb-dim); }
.bname { font-weight: 800; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bbar { height: 22px; border-radius: 11px; background: var(--bulb-faint); overflow: hidden; }
.bbar i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--gold); border-radius: inherit; animation: grow 0.9s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes grow { from { width: 0; } }
.bscore { font: 400 30px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.bgain { grid-column: 2 / -1; font-size: 13px; color: var(--bulb-dim); }
.board li:first-child .bname, .board li:first-child .bscore { color: var(--gold); }

.final { gap: 12px; }
.final .marquee { font-size: clamp(44px, 6.5vw, 88px); }
.final-score { font: 400 30px/1 var(--display); }
.final .board { width: min(600px, 100%); margin-top: 4px; gap: 6px; text-align: left; }
.final .board li { grid-template-rows: auto; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* footer */
.controls {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; padding: 10px var(--gutter) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--bulb-faint);
}
.ctl-status { color: var(--bulb-dim); font-weight: 600; font-size: 17px; }
.btn-next { min-width: 220px; margin-left: auto; }

/* leave */
.leavebtn {
  min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 246, 224, 0.4);
  font-weight: 600; font-size: 15px;
}
.leavebtn:active { background: var(--bulb-faint); }
.btn-bad { background: var(--bad); color: #fff; box-shadow: 0 5px 0 #b8243f; }
.btn-bad:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #b8243f; }
.sheet {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px;
  background: rgba(6, 8, 40, 0.72);
}
.sheet-card {
  width: min(460px, 100%); display: grid; gap: 14px; padding: 26px 26px 22px;
  border-radius: 20px; background: var(--stage); box-shadow: inset 0 0 0 1px var(--bulb-faint), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.sheet-card h2 { font: 400 32px/1.1 var(--display); color: var(--gold); letter-spacing: 0.01em; }
.sheet-card p { color: var(--bulb-dim); }
.sheet-btns { display: flex; gap: 12px; justify-content: flex-end; margin-top: 6px; }
.home-notice { padding: 12px 16px; border-radius: 12px; background: var(--bulb-faint); font-weight: 600; }

/* banner */
.banner {
  position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%);
  z-index: 10; max-width: min(640px, calc(100vw - 32px));
  padding: 12px 20px; border-radius: 14px; background: var(--gold); color: var(--ink);
  font-weight: 600; font-size: 16px; line-height: 1.35; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Word Hunt reveal needs the room for results */
.stage[data-phase="wordreveal"] .letters { gap: 12px; }
.stage[data-phase="wordreveal"] .tile { width: clamp(38px, 5.2vw, 56px); font-size: clamp(24px, 3.2vw, 34px); border-radius: 9px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.stage[data-phase="wordreveal"] .wordresults li { padding: 6px 14px; }

/* smaller / portrait screens */
@media (orientation: portrait) and (min-width: 700px) {
  .pod { flex-basis: 200px; }
  .game:is([data-phase="play"], [data-phase="question"], [data-phase="letters"], [data-phase="pick"]) .pod { flex-basis: 165px; }
}
@media (max-height: 760px) and (orientation: landscape) {
  .pod { flex-basis: 230px; }
  .ans { min-height: 64px; }
  .qwrap { gap: 12px; }
}
@media (max-width: 640px) {
  .lobby-top { flex-direction: column; align-items: stretch; }
  .answers { grid-template-columns: 1fr; }
  .bar { gap: 10px; }
  .brand, .roomtag { display: none; }
  .btn-next { min-width: 0; }
}

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

/* =========================================================
   Plug-in games (js/games/*.js)
   ========================================================= */
.game[data-compact="1"] .pod { flex-basis: 200px; }
.game[data-phase="lobby"] .pod { flex-basis: 158px; }
.game[data-phase="lobby"] .podiums { padding-top: 8px; }
.game[data-phase="lobby"] .pname { font-size: 13px; }
.game[data-phase="lobby"] .pscore { display: none; }
.game[data-compact="1"] .podiums { padding-top: 10px; }
.is-warn { color: var(--bad) !important; }
.res-cap { color: var(--bulb-dim); font-weight: 600; text-align: center; }

/* shared results list */
.gres { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: min(760px, 100%); }
.gres li {
  display: grid; grid-template-columns: minmax(70px, 140px) minmax(0, 1fr) auto 76px; gap: 14px; align-items: center;
  padding: 8px 16px; border-radius: 12px; background: var(--bulb-faint);
}
.gres li.ok { box-shadow: inset 4px 0 0 var(--good); }
.gres li.no { box-shadow: inset 4px 0 0 var(--bad); }
.gres .wnote { font-size: 14px; color: var(--bulb-dim); text-align: right; }
.gres .wpts { font: 400 24px/1 var(--display); text-align: right; color: var(--good); }
.gres li.no .wpts { color: var(--bulb-dim); }

/* --- Five Letters --- */
.five { display: flex; gap: clamp(20px, 4vw, 48px); align-items: center; justify-content: center; }
.fgrid { display: grid; gap: 6px; }
.frow { display: flex; gap: 6px; }
.ftile {
  width: clamp(44px, 5.4vw, 58px); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 8px; box-shadow: inset 0 0 0 2px var(--bulb-faint);
  font: 400 clamp(26px, 3.3vw, 34px)/1 var(--display); color: var(--bulb);
}
.ftile.filled { box-shadow: inset 0 0 0 2px var(--bulb-dim); }
.ftile.cG, .key.cG, .minis b.cG, .art-five .cG { background: var(--good); color: var(--ink); box-shadow: none; }
.ftile.cY, .key.cY, .minis b.cY, .art-five .cY { background: var(--gold); color: var(--ink); box-shadow: none; }
.ftile.cB, .key.cB, .minis b.cB, .art-five .cB { background: #3d4380; color: var(--bulb-dim); box-shadow: none; }
.frow.is-pending .ftile { opacity: 0.55; }
.frow.is-shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.fside { display: grid; gap: 14px; justify-items: center; }
.fmsg { font-weight: 700; font-size: 18px; min-height: 1.4em; text-align: center; }
.kb { display: grid; gap: 7px; }
.krow { display: flex; gap: 6px; justify-content: center; }
.key {
  min-width: clamp(34px, 4vw, 44px); height: clamp(46px, 5.6vw, 56px); padding: 0 6px; border: 0; border-radius: 8px;
  background: var(--bulb); color: var(--ink); font: 800 clamp(16px, 2vw, 20px)/1 var(--body);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.key.wide { min-width: clamp(56px, 7vw, 76px); font-size: 15px; }
.key:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.key:disabled { opacity: 0.45; }
.five-res { display: grid; gap: 12px; justify-items: center; width: min(820px, 100%); }
.frow.big .ftile { width: 54px; }
.minis { display: flex; flex-wrap: wrap; gap: 6px; }
.minis i { display: flex; gap: 2px; font-style: normal; }
.minis b { width: 20px; height: 22px; display: grid; place-items: center; border-radius: 4px; font: 400 14px/1 var(--display); }
.minis em { color: var(--bulb-dim); font-size: 14px; }
.art-five { display: flex; gap: 5px; align-items: center; justify-content: center; }
.art-five span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; font: 400 20px/1 var(--display); }

/* --- City Spotter --- */
.city { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr); gap: 18px; align-items: center; width: min(1060px, 100%); }
.cityimg { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--stage-deep); box-shadow: 0 0 0 3px var(--bulb-faint); }
.cityimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); display: block; }
.cityimg.is-clear img { transform: none; }
.cityimg.is-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
.cityimg.is-grid .cbase { position: absolute; inset: 0; filter: blur(26px); }
.ctile { position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 246, 224, 0.16); }
.ctile.on { box-shadow: none; }
.cityimg .ctile img { position: absolute; width: 400%; height: 300%; max-width: none; opacity: 0; transition: opacity 0.6s; }
.ctile.on img { opacity: 1; }
.credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 10px; font-size: 11px; background: rgba(11, 14, 68, 0.72); color: var(--bulb-dim); }
.cityans { display: grid; gap: 10px; }
.cityans .ans { min-height: 62px; }
.city-q { font-weight: 800; font-size: 22px; }
.city-q b { color: var(--good); }
.art-city { display: grid; align-items: end; }
.art-city svg { width: 100%; height: 100%; filter: blur(1.6px); opacity: 0.9; }

/* --- Jumbled --- */
.jumble { display: grid; grid-template-columns: minmax(200px, 280px) auto; gap: clamp(18px, 3vw, 40px); align-items: center; justify-content: center; }
.jmsg { font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.jlist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jlist li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bulb); color: var(--ink); font-weight: 800; font-size: 21px; }
.jlist li .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 26, 99, 0.12); font-size: 16px; }
.jlist li.got { background: var(--good); }
.jlist li.got .tick { background: var(--ink); color: var(--good); }
.jgrid { display: grid; grid-template-columns: repeat(4, clamp(68px, 9vw, 92px)); gap: 8px; }
.jcell {
  aspect-ratio: 1; display: grid; place-items: center; padding: 6px; border: 0; border-radius: 12px;
  background: #262c8a; box-shadow: inset 0 0 0 2px var(--bulb-faint);
}
.jcell svg { width: 100%; height: 100%; }
button.jcell:active:not(:disabled) { transform: scale(0.95); }
.jcell.got { box-shadow: inset 0 0 0 4px var(--good); opacity: 0.55; }
.jcell.wrong { box-shadow: inset 0 0 0 4px var(--bad); animation: shake 0.4s; }
.jgrid.is-frozen .jcell:not(.wrong) { opacity: 0.4; }
.jgrid.is-result .jcell { opacity: 0.35; }
.jgrid.is-result .jcell.target { opacity: 1; box-shadow: inset 0 0 0 4px var(--gold); }
.jumble.is-res { grid-template-columns: auto minmax(0, 1fr); width: min(1000px, 100%); }
.jgrid.is-result { grid-template-columns: repeat(4, clamp(52px, 6.5vw, 68px)); gap: 6px; }
.art-jumble { display: flex; align-items: center; justify-content: center; gap: 6px; }
.art-jumble svg { width: 38px; height: 38px; }

/* --- Duck Challenge --- */
.ducks { display: grid; gap: 12px; justify-items: center; width: min(1060px, 100%); }
.dhead { font-weight: 800; font-size: 22px; }
.dhead b { font: 400 30px/1 var(--display); color: var(--gold); }
.dsub { color: var(--bulb-dim); font-weight: 600; }
.belt {
  position: relative; width: 100%; height: 170px; overflow: hidden; border-radius: 18px;
  background: linear-gradient(#0b0e44 0 72%, #3a3f5c 72% 80%, #23263f 80%);
}
.rollers {
  position: absolute; left: 0; right: 0; bottom: 18px; height: 14px;
  background: repeating-linear-gradient(90deg, #6b7090 0 22px, #3a3f5c 22px 30px);
  animation: belt 0.6s linear infinite;
}
@keyframes belt { to { background-position: 30px 0; } }
.cduck { position: absolute; bottom: 36px; left: -150px; width: 132px; animation: ride var(--ride) linear both; }
.cduck svg { width: 100%; height: auto; display: block; }
@keyframes ride { from { left: -150px; } to { left: 100%; } }
.dslots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dslot { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--bulb-faint); }
.dslot em { font-style: normal; color: var(--bulb-dim); font-weight: 600; }
.dslot.filled { background: #262c8a; box-shadow: none; }
.dslot.wrong { box-shadow: inset 0 0 0 3px var(--bad); }
.dslot svg { width: 52px; height: 52px; }
.dpalette { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; width: 100%; }
.dbtn {
  display: grid; justify-items: center; gap: 0; padding: 4px 2px 6px; border: 0; border-radius: 12px;
  background: #262c8a; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.dbtn svg { width: 100%; max-width: 74px; height: auto; }
.dbtn span { font-size: 11.5px; font-weight: 700; line-height: 1.1; color: var(--bulb); }
.dbtn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.dbtn:disabled { opacity: 0.45; }
.dlevel { min-height: 240px; align-content: center; }
.dbig { font: 400 clamp(34px, 5vw, 56px)/1.1 var(--display); color: var(--gold); text-align: center; }
.dnext { font-size: 24px; font-weight: 800; }
.dnext b { font: 400 34px/1 var(--display); color: var(--good); }
.dline { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.dline span { width: 56px; }
.dline svg { width: 100%; height: auto; }
.art-duck { display: flex; align-items: flex-end; justify-content: center; gap: 0; padding-bottom: 2px; border-bottom: 5px solid #3a3f5c; }
.art-duck svg { width: 48px; height: 48px; }

@media (orientation: portrait) {
  .five { flex-direction: column; gap: 18px; }
  .jumble, .jumble.is-res { grid-template-columns: 1fr; justify-items: center; }
  .jlist ol { grid-template-columns: 1fr 1fr; }
  .jlist li { font-size: 18px; padding: 8px 12px; }
  .city { grid-template-columns: 1fr; gap: 12px; }
  .cityimg { aspect-ratio: auto; height: 36vh; }
  .cityans { grid-template-columns: 1fr 1fr; }
  .city-q { grid-column: 1 / -1; }
  .dpalette { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* --- Noisy --- */
.noisy { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); gap: 20px; align-items: center; width: min(1060px, 100%); }
.noisy.nmaker { grid-template-columns: 1fr; justify-items: center; }
.ncard {
  display: grid; justify-items: center; gap: 6px; padding: 22px 36px 26px; border-radius: 22px; text-align: center;
  background: var(--bulb); color: var(--ink); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3); min-width: min(520px, 100%);
}
.ncard.small { padding: 16px 22px 20px; min-width: 0; }
.nemoji { font-size: clamp(80px, 12vw, 132px); line-height: 1.05; }
.ncard.small .nemoji { font-size: 84px; }
.nsay { font-weight: 700; font-size: 18px; color: rgba(21, 26, 99, 0.7); }
.nword { font: 400 clamp(40px, 6vw, 68px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.ncard.small .nword { font-size: 40px; }
.nrule { font-weight: 800; font-size: 18px; color: var(--bad); margin-top: 4px; }
.nwarn { margin-top: 8px; padding: 8px 14px; border-radius: 10px; background: var(--bad); color: #fff; font-weight: 700; }
.nspot { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--stage-deep); box-shadow: 0 0 0 4px var(--gold), 0 0 34px rgba(255, 197, 61, 0.35); }
.nspot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.nspot-name { position: absolute; left: 12px; bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; }
.nside { display: grid; gap: 10px; }
.nready { font: 400 clamp(28px, 3.6vw, 40px)/1.15 var(--display); color: var(--gold); }
.nhint { color: var(--bulb-dim); font-weight: 600; }
.nq { font-weight: 800; font-size: 22px; }
.nopt { min-height: 62px; }
.nopt .nemo { font-size: 32px; width: 42px; text-align: center; flex: none; }
.nline { font-size: 18px; }
.nline b { color: var(--gold); }
.art-noisy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 28px; }
.art-noisy b { font: 400 16px/1 var(--display); color: var(--gold); letter-spacing: 0.04em; }
@media (orientation: portrait) {
  .noisy { grid-template-columns: 1fr; }
  .nspot { height: 34vh; aspect-ratio: auto; }
  .nside { grid-template-columns: 1fr 1fr; }
  .nq, .nready, .nhint, .nline { grid-column: 1 / -1; }
}

/* --- Emotions (reuses the Noisy layout, with the face bigger) --- */
.emo.nguess { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); width: min(1180px, 100%); }
.emo.nguess .nspot { width: min(100%, max(320px, calc((100dvh - 380px) * 4 / 3))); justify-self: center; }
.emo.emaker { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.emo.emaker.is-nocam { grid-template-columns: 1fr; justify-items: center; }
.nspot.is-self { box-shadow: 0 0 0 3px var(--bulb-faint); }
.nspot.is-self video { transform: scaleX(-1); }
.nspot.is-self .nspot-name { background: var(--bulb); font-size: 14px; }
.nword.is-moment { font: 800 clamp(26px, 3.4vw, 40px)/1.15 var(--body); text-transform: none; letter-spacing: 0; }
.ncard.small .nword.is-moment { font-size: 26px; }
.emo .nopt .atext { line-height: 1.2; }
.art-emo { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 30px; }
@media (orientation: portrait) {
  .emo.nguess, .emo.emaker { grid-template-columns: 1fr; }
  .emo.nguess .nspot { width: 100%; height: 40vh; }
  .emo.emaker .nspot { height: 26vh; aspect-ratio: auto; }
}

/* --- Gibberish --- */
.gib { display: grid; gap: 14px; justify-items: center; width: min(900px, 100%); text-align: center; }
.gibcard {
  padding: 22px 30px; border-radius: 22px; background: var(--bulb); color: var(--ink); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
  font: 400 clamp(38px, 6vw, 68px)/1.1 var(--display); letter-spacing: 0.02em; max-width: 100%; overflow-wrap: anywhere;
}
.gibcard.small { font-size: 34px; padding: 14px 22px; }
.ghint { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; min-height: 40px; align-items: center; }
.ghint-wait { color: var(--bulb-dim); font-weight: 700; }
.gword { display: inline-flex; gap: 3px; }
.gword i { width: 26px; height: 34px; border-radius: 6px; box-shadow: inset 0 -3px 0 var(--gold); display: grid; place-items: center; font: 400 22px/1 var(--display); font-style: normal; color: var(--gold); }
.gibmsg { min-height: 24px; color: var(--bulb-dim); font-weight: 700; }
.gibmsg.is-wrong { color: var(--bad); }
.gibgot { font: 400 clamp(26px, 3.4vw, 36px)/1.2 var(--display); color: var(--good); }
.gibans { font: 400 clamp(34px, 5vw, 54px)/1.1 var(--display); color: var(--gold); }
.art-gib { display: grid; justify-items: center; gap: 0; font: 400 15px/1.15 var(--display); color: var(--bulb); }
.art-gib b { color: var(--gold); font-size: 18px; }

/* --- Name That Sound --- */
.sbox { display: grid; justify-items: center; gap: 8px; padding: 14px 26px; border-radius: 22px; background: var(--bulb-faint); }
.sbox p { font: 400 clamp(28px, 4vw, 40px)/1.1 var(--display); color: var(--gold); }
.sbox.small { padding: 10px 18px; }
.swave { display: inline-flex; align-items: center; gap: 5px; height: 54px; }
.swave i { width: 7px; height: 100%; border-radius: 4px; background: var(--gold); animation: swave 0.9s ease-in-out infinite alternate; transform-origin: center; }
@keyframes swave { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
.art-sound { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 26px; }
.art-sound .swave { height: 30px; gap: 3px; }
.art-sound .swave i { width: 4px; }
.art-sound b { font: 400 28px/1 var(--display); color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .swave i { animation: none; transform: scaleY(0.6); } }

/* --- Sounds Fishy --- */
.fishy { display: grid; gap: 14px; justify-items: center; width: min(1060px, 100%); text-align: center; }
.fishy.fsplit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; text-align: left; justify-items: stretch; }
.fleft, .fright { display: grid; gap: 12px; align-content: start; }
.fq { font: 400 clamp(26px, 3.4vw, 40px)/1.15 var(--display); color: var(--gold); }
.fq.small { font-size: 26px; }
.fkind { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; color: var(--bulb-dim); }
.fsub { color: var(--bulb-dim); font-weight: 600; }
.fsub b { color: var(--bulb); }
.fcard { display: grid; gap: 6px; padding: 18px 22px; border-radius: 20px; background: var(--bulb); color: var(--ink); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3); text-align: center; }
.fcard .fkind { color: var(--ink); }
.fcard.is-truth { box-shadow: 0 0 0 4px var(--good), 0 8px 0 rgba(0, 0, 0, 0.3); }
.fcard.is-herring { box-shadow: 0 0 0 4px var(--bad), 0 8px 0 rgba(0, 0, 0, 0.3); }
.fans { font: 400 clamp(30px, 4vw, 46px)/1.1 var(--display); }
.fcard.small .fans { font-size: 28px; }
.fhint { font-weight: 700; color: rgba(21, 26, 99, 0.7); }
.forder { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; counter-reset: fo; }
.fsplit .forder { justify-content: flex-start; }
.forder li { counter-increment: fo; padding: 8px 14px; border-radius: 999px; background: var(--bulb-faint); font-weight: 700; }
.forder li::before { content: counter(fo) '. '; color: var(--gold); }
.flineup { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.flineup li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--bulb-faint); }
.flineup li.is-herring { box-shadow: inset 4px 0 0 var(--good); }
.flineup li.is-truth { box-shadow: inset 4px 0 0 var(--bad); background: rgba(255, 92, 122, 0.18); }
.flineup .fname { font-weight: 800; }
.flineup .fres { font-weight: 700; color: var(--bulb-dim); text-align: right; }
.flineup .fsaid { grid-column: 1 / -1; font-size: 14px; color: var(--bulb-dim); }
.flineup li:has(.fknock) { padding: 0; background: none; display: block; }
.fknock { width: 100%; min-height: 56px; }
.art-fishy { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 28px; }
.art-fishy .r { filter: drop-shadow(0 0 6px var(--good)); }
@media (orientation: portrait) { .fishy.fsplit { grid-template-columns: 1fr; } }

/* --- You Said (on top of every game) --- */
.ys-tab {
  position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: 86px; z-index: 40;
  padding: 10px 16px; border-radius: 999px; border: 0; font: 800 15px/1 var(--body); cursor: pointer;
  background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.ys-tab.is-open { background: var(--bulb); }
.ys-card {
  position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: 136px; z-index: 41; width: min(340px, calc(100vw - 28px));
  display: grid; gap: 8px; justify-items: center; padding: 16px 18px; border-radius: 20px; text-align: center;
  background: var(--bulb); color: var(--ink); box-shadow: 0 0 0 3px var(--gold), 0 12px 30px rgba(0, 0, 0, 0.45);
}
.ys-cap { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: rgba(21, 26, 99, 0.65); }
.ys-word { font: 400 40px/1.05 var(--display); text-transform: uppercase; }
.ys-hint { font-weight: 700; font-size: 14px; }
.btn-red { background: var(--bad); color: #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); }
.ys-said { width: 100%; }
.ys-who { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ys-card .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px rgba(21, 26, 99, 0.35); }
.ys-alarm {
  position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center;
  background: rgba(150, 10, 40, 0.94); color: #fff; animation: ysflash 0.6s steps(2) 5;
}
.ys-alarm.is-cancelled { background: rgba(21, 26, 99, 0.95); animation: none; }
.ys-alarm h2 { font: 400 clamp(48px, 9vw, 110px)/1 var(--display); letter-spacing: 0.02em; }
.ys-siren { font-size: clamp(56px, 10vw, 110px); animation: ysspin 0.5s linear infinite alternate; }
.ys-line { font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; }
.ys-bigword { font: 400 clamp(44px, 8vw, 96px)/1 var(--display); color: var(--gold); text-transform: uppercase; }
.ys-alarm .btn-ghost { color: #fff; }
@keyframes ysflash { 50% { background: rgba(255, 60, 90, 0.96); } }
@keyframes ysspin { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .ys-alarm, .ys-siren { animation: none; } }
.ys-final { margin-top: 18px; padding: 14px 18px; border-radius: 18px; background: var(--bulb-faint); width: min(760px, 100%); text-align: left; }
.ys-final h3 { font: 400 26px/1.1 var(--display); color: var(--gold); margin-bottom: 8px; }
.ys-final ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ys-final li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; }
.ys-final li b { font: 400 22px/1 var(--display); text-transform: uppercase; }
.ys-final li em { color: var(--bulb-dim); font-size: 13px; }
.ys-caught { margin-top: 10px; color: var(--bulb-dim); font-size: 15px; }
.ys-caught b { color: var(--bulb); }
.art-ys { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 26px; }
.art-ys b { font: 400 15px/1 var(--display); color: var(--gold); }

/* --- Herd Mentality, Most Likely To, Two Truths and a Lie --- */
.rg.plain { box-shadow: none; }
.modechip { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 15px; }
.modechip.is-rare { background: rgba(196, 120, 255, 0.25); color: #e9c8ff; }
.modechip.is-herd { background: rgba(46, 229, 157, 0.2); color: var(--good); }
.art-rare b { font: 400 14px/1 var(--display); color: var(--bulb-dim); margin: 0 2px; }
.rg.is-herd { box-shadow: inset 4px 0 0 var(--good), 0 0 0 2px var(--good); }
.rg.is-picked { box-shadow: 0 0 0 3px var(--gold); }
.art-herd, .art-likely, .art-truths { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 28px; }
.art-herd .r { opacity: 0.5; }
.art-truths span { font: 400 30px/1 var(--display); color: var(--good); }
.art-truths .r { font-size: 28px; }
.likely, .truths { display: grid; gap: 14px; justify-items: center; width: min(980px, 100%); text-align: center; }
.lkcap { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bulb-dim); }
.lkvotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; width: 100%; }
.lkbtn { justify-content: center; min-height: 60px; }
.lkbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; width: min(760px, 100%); }
.lkbars li { display: grid; grid-template-columns: 120px 1fr 40px; gap: 4px 12px; align-items: center; text-align: left; }
.lkbars .lkname { font-weight: 800; }
.lkbar { height: 18px; border-radius: 9px; background: var(--bulb-faint); overflow: hidden; }
.lkbar i { display: block; height: 100%; background: var(--bulb-dim); border-radius: 9px; }
.lkbars li.is-top .lkbar i { background: var(--gold); }
.lkbars li b { font: 400 24px/1 var(--display); }
.lkby { grid-column: 2 / -1; font-size: 13px; color: var(--bulb-dim); }
.ttform { display: grid; gap: 10px; width: min(720px, 100%); }
.ttrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ttrow input { min-height: 54px; border-radius: 14px; border: 0; padding: 0 14px; font: 600 18px/1.2 var(--body); background: var(--bulb); color: var(--ink); }
.ttrow.is-lie input { box-shadow: 0 0 0 3px var(--bad); }
.ttlie { min-width: 96px; border-radius: 14px; border: 0; font: 800 15px/1 var(--body); background: var(--bulb-faint); color: var(--bulb); cursor: pointer; }
.ttlie[aria-pressed="true"] { background: var(--bad); color: #fff; }
.ttlist { display: grid; gap: 10px; width: min(820px, 100%); }
.ttpick, .ttlist .ans { text-align: left; }
.fsub.is-warn { color: var(--bad); }

/* --- Trolley Dash --- */
.trolley { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: 18px; align-items: start; width: min(1080px, 100%); }
.tlist { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--bulb); color: var(--ink); transition: transform 0.2s; }
.tlist.is-scan { background: var(--good); transform: scale(0.97); }
.thead { font-weight: 800; font-size: 18px; }
.thead b { font: 400 30px/1 var(--display); }
.tlist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tlist li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(21, 26, 99, 0.08); font-weight: 800; }
.tlist li.got { background: rgba(46, 229, 157, 0.55); }
.tlist .temo { font-size: 28px; text-align: center; }
.tcount { font: 400 18px/1 var(--display); }
.tmsg { font-weight: 700; font-size: 15px; }
.tmsg.is-warn { color: var(--bad); }
.tgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.titem {
  display: grid; justify-items: center; gap: 0; padding: 6px 2px 5px; border: 0; border-radius: 12px;
  background: #262c8a; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.titem .temo { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
.titem .tname { font-size: 11.5px; font-weight: 700; color: var(--bulb); }
.titem:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.titem.full { opacity: 0.45; }
.titem.wrong { background: #6b2147; box-shadow: inset 0 0 0 3px var(--bad); animation: shake 0.4s; }
.tgrid.is-frozen .titem:not(.wrong) { opacity: 0.35; }
.tbig { font: 400 clamp(30px, 4vw, 44px)/1.1 var(--display); color: var(--gold); text-align: center; grid-column: 1 / -1; }
.trolley.tres { grid-template-columns: 1fr; justify-items: center; }
.art-trolley { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 26px; }
.art-trolley span:first-child { font-size: 34px; }

/* --- Draw It --- */
/* The drawing pad is sized from the space the stage actually has, so nothing needs scrolling while you draw. */
.stage:has(> .draw) { container-type: size; }
.draw { display: grid; grid-template-columns: auto minmax(250px, 1fr); gap: 18px; align-items: center; justify-content: center; width: min(1080px, 100%); }
.draw.dartist { grid-template-columns: auto minmax(200px, 300px); }
.dside { display: grid; gap: 16px; align-content: center; }
.dpad { position: relative; width: min(calc(100vw - 340px), calc((100dvh - 380px) * 4 / 3)); }
@supports (width: 1cqh) {
  .dpad { width: min(calc(100cqw - 340px), calc(100cqh * 4 / 3)); }
}
.dcanvas { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: #fff; touch-action: none; box-shadow: 0 0 0 4px var(--gold); }
.dcanvas.is-wait { opacity: 0.5; }
.draw .nside { gap: 8px; }
.draw .nopt { min-height: 54px; padding-block: 6px; }
.draw .nline { margin: 0; }
.dtop { display: grid; gap: 4px; }
.dword { font-weight: 700; font-size: 20px; }
.dword b { font: 400 clamp(30px, 4vw, 42px)/1 var(--display); color: var(--gold); text-transform: uppercase; margin-left: 6px; }
.drule { color: var(--bad); font-weight: 800; }
.dtools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dcol { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5); }
.dcol.on { box-shadow: 0 0 0 3px var(--gold), inset 0 0 0 3px #fff; }
.dsize { min-height: 40px; padding: 6px 12px; border: 0; border-radius: 10px; background: var(--bulb-faint); font-weight: 700; }
.dsize.on { background: var(--bulb); color: var(--ink); }
.dsep { flex-basis: 100%; height: 0; }
.art-draw { display: flex; align-items: center; justify-content: center; gap: 4px; background: #fff; }
.art-draw svg { width: 120px; height: 44px; }
.art-draw span { font-size: 26px; }
@media (orientation: portrait) {
  .trolley { grid-template-columns: 1fr; }
  .tlist { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .tlist ul { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .tlist .thead { order: -2; }
  .tlist .tmsg { order: -1; text-align: right; }
  .tgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
  .titem { padding: 12px 2px 9px; }
  .titem .temo { font-size: 44px; }
  .draw, .draw.dartist { grid-template-columns: 1fr; justify-items: center; }
  .draw .nside { grid-template-columns: 1fr 1fr; width: 100%; }
  .dartist .dside { display: contents; }
  .dartist .dtop { order: -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 16px; }
  .dartist .dtools { justify-content: center; }
  .dsep { flex-basis: auto; width: 10px; }
  .dpad { width: min(100%, calc((100dvh - 560px) * 4 / 3)); }
  .dartist .dpad { width: min(100%, calc((100dvh - 500px) * 4 / 3)); }
  @supports (width: 1cqh) {
    .dpad { width: min(100cqw, calc((100cqh - 170px) * 4 / 3)); }
    .dartist .dpad { width: min(100cqw, calc((100cqh - 130px) * 4 / 3)); }
  }
}


/* --- Number Crunch --- */
.numbers { display: grid; gap: 14px; justify-items: center; width: min(920px, 100%); text-align: center; }
.ntitle { font-weight: 800; font-size: 24px; }
.nsub { color: var(--bulb-dim); font-weight: 600; }
.ncards { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ncard0 { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--bulb-faint); font: 400 36px/1 var(--display); }
.ncard0.shown { background: var(--bulb); color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.nlarge { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.nlarge .btn { min-width: 76px; font: 400 34px/1 var(--display); }
.ntarget { display: inline-flex; align-items: baseline; gap: 14px; padding: 6px 26px 10px; border-radius: 16px; background: var(--stage-deep); box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(255, 197, 61, 0.3); }
.ntarget span { color: var(--bulb-dim); font-weight: 700; font-size: 18px; }
.ntarget b { font: 400 64px/1 var(--display); color: var(--gold); letter-spacing: 0.03em; }
.ntiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.nnum {
  min-width: 80px; height: 72px; padding: 0 14px; border: 0; border-radius: 14px;
  background: var(--bulb); color: var(--ink); font: 400 40px/1 var(--display);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); transition: transform 0.1s;
}
.nnum.made { background: #ffe39a; }
.nnum.sel { background: var(--gold); transform: translateY(-4px); box-shadow: 0 0 0 4px #fff, 0 6px 0 var(--gold-deep); }
.nnum.hit { background: var(--good); }
.nnum:disabled { opacity: 0.6; }
.nops { display: flex; gap: 10px; }
.nop { width: 66px; height: 58px; border: 0; border-radius: 12px; background: var(--bulb-faint); color: var(--bulb); font: 800 34px/1 var(--body); }
.nop.sel { background: var(--gold); color: var(--ink); }
.nop:disabled { opacity: 0.35; }
.nhint { color: var(--bulb-dim); font-weight: 600; min-height: 1.4em; }
.nwork { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nwork li { padding: 4px 12px; border-radius: 999px; background: var(--bulb-faint); font-weight: 700; }
.nbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nbtns small { font-weight: 600; opacity: 0.7; margin-left: 6px; font-size: 0.8em; }
.nres { gap: 12px; }
.nresult-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; }
.ntarget.small b { font-size: 44px; }
.nres .ncard0 { width: 54px; height: 54px; font-size: 28px; }
.nmethod { text-align: left; min-width: 0; }
.nmethod b { font: 400 26px/1 var(--display); margin-right: 6px; }
.nmethod em { font-style: normal; font-size: 13px; color: var(--bulb-dim); }
.nbest { color: var(--bulb-dim); font-weight: 600; }
.nbest b { color: var(--bulb); }
.art-numbers { display: flex; gap: 4px; align-items: center; justify-content: center; }
.art-numbers span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--bulb); color: var(--ink); font: 400 15px/1 var(--display); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.art-numbers b { margin-left: 8px; font: 400 26px/1 var(--display); color: var(--gold); }


/* --- Who Am I? --- */
.whoami { display: grid; gap: 10px; justify-items: center; width: min(1060px, 100%); }
.wq { font-weight: 800; font-size: 22px; text-align: center; }
.wgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; width: 100%; }
.wface { position: relative; padding: 4px; border: 0; border-radius: 12px; background: #cfe3ff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.wface svg { width: 100%; height: auto; display: block; }
button.wface:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.wgrid:has(.is-picked) .wface:not(.is-picked) { opacity: 0.4; }
.wface.is-picked { background: var(--gold); box-shadow: 0 0 0 4px #fff; }
.wcard { display: flex; gap: 26px; align-items: center; padding: 20px 28px; border-radius: 22px; background: var(--bulb); color: var(--ink); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3); }
.wbig { width: 220px; border-radius: 16px; background: #cfe3ff; padding: 6px; }
.wbig svg { width: 100%; height: auto; display: block; }
.wcard-text { max-width: 400px; display: grid; gap: 10px; }
.wcard .nsay { font-size: 22px; color: var(--ink); }
.wrule { font-size: 16px; color: rgba(21, 26, 99, 0.75); }
.wres { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.wanswer { display: grid; justify-items: center; gap: 8px; text-align: center; max-width: 320px; }
.wanswer .wbig { width: 170px; box-shadow: 0 0 0 4px var(--good); }
.wanswer .nsay { color: var(--bulb-dim); font-weight: 700; }
.wgrid.small { grid-template-columns: repeat(4, minmax(0, 84px)); gap: 6px; width: auto; }
.wface.is-answer { box-shadow: 0 0 0 4px var(--good); }
.wface.is-wrong { box-shadow: 0 0 0 3px var(--bad); }
.wface.is-dim { opacity: 0.45; }
.wwho { position: absolute; left: 2px; right: 2px; bottom: 2px; padding: 1px 3px; border-radius: 6px; background: rgba(21, 26, 99, 0.85); color: #fff; font-size: 10px; font-weight: 800; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-whoami { display: flex; justify-content: center; align-items: flex-end; gap: 2px; background: radial-gradient(90% 130% at 50% 0%, #4a64c8, var(--stage-deep)); }
.art-whoami svg { width: 42px; height: 46px; }
@media (orientation: portrait) {
  .wgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 560px); }
  .wcard { flex-direction: column; text-align: center; }
  .wres { grid-template-columns: 1fr; justify-items: center; }
}


/* --- typed answers (Fake Out, Rarest Answer, Imposter) --- */
.gtyped { display: flex; gap: 10px; justify-content: center; width: min(560px, 100%); }
.gtyped input {
  flex: 1; min-width: 0; min-height: 60px; padding: 8px 18px; border: 0; border-radius: 14px;
  background: var(--bulb); color: var(--ink); font: 800 24px var(--body);
}
.gtyped input:disabled { opacity: 0.6; }
.gtyped .btn { min-height: 60px; }
.fsub { color: var(--bulb-dim); font-weight: 600; text-align: center; }
.fsub b { color: var(--bulb); }
.fnote { font-size: 20px; text-align: center; }
.fnote b { color: var(--gold); }

/* --- Emoji Films --- */
.emoji { display: grid; gap: 14px; justify-items: center; width: min(980px, 100%); }
.emoji .answers { width: 100%; }
.elabel { color: var(--bulb-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; }
.eclue { font-size: clamp(56px, 9vw, 96px); line-height: 1.1; letter-spacing: 0.08em; text-align: center; }
.eclue.small { font-size: 48px; }
.art-emoji { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 30px; }
.art-emoji b { font: 400 30px/1 var(--display); color: var(--gold); }

/* --- Fake Out --- */
.fakeout { display: grid; gap: 14px; justify-items: center; width: min(980px, 100%); }
.fakeout .answers { width: 100%; }
.ffact { font-weight: 800; font-size: clamp(22px, 3vw, 34px); line-height: 1.3; text-align: center; text-wrap: balance; }
.fblank { display: inline-block; min-width: 3em; margin: 0 6px; padding: 0 10px; border-bottom: 4px solid var(--gold); color: var(--gold); }
.fblank.filled { border: 0; border-radius: 10px; background: var(--good); color: var(--ink); }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: min(820px, 100%); }
.flist li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px; border-radius: 12px; background: var(--bulb-faint); }
.flist li.ok { box-shadow: inset 4px 0 0 var(--good); background: rgba(46, 229, 157, 0.18); }
.flist li.no { box-shadow: inset 4px 0 0 var(--bad); }
.fwho { font-size: 13px; font-weight: 700; color: var(--bulb-dim); }
.ftext { font-weight: 800; font-size: 20px; }
.fpicked { font-size: 13px; color: var(--bulb-dim); text-align: right; }
.art-fake { display: flex; align-items: center; justify-content: center; gap: 6px; }
.art-fake span { padding: 3px 8px; border-radius: 6px; background: var(--good); color: var(--ink); font: 400 15px/1 var(--display); }
.art-fake span.x { background: var(--bad); color: #fff; }

/* --- Rarest Answer --- */
.rarest { display: grid; gap: 14px; justify-items: center; width: min(980px, 100%); }
.rq { font: 400 clamp(36px, 5vw, 56px)/1.1 var(--display); color: var(--gold); text-align: center; letter-spacing: 0.01em; }
.rq.small { font-size: clamp(28px, 3.5vw, 38px); }
.rgroups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; width: 100%; }
.rg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; width: 100%; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--bulb-faint); color: var(--bulb); text-align: left; }
button.rg { cursor: pointer; }
.rg.ok { box-shadow: inset 4px 0 0 var(--good); }
.rg.no { box-shadow: inset 4px 0 0 var(--bad); opacity: 0.6; }
.rg.no .rans { text-decoration: line-through; }
.rans { font-weight: 800; font-size: 19px; }
.rwho { grid-column: 1; font-size: 13px; color: var(--bulb-dim); }
.rtag { grid-column: 2; grid-row: 1; font-size: 12px; font-weight: 700; color: var(--gold); }
.rg.no .rtag { color: var(--bad); }
.rpts { grid-column: 2; grid-row: 2; font: 400 20px/1 var(--display); color: var(--good); text-align: right; }
.art-rare { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 26px; }
.art-rare span:not(.r) { opacity: 0.5; }

/* --- Imposter --- */
.imposter { display: grid; gap: 14px; justify-items: center; width: min(1000px, 100%); }
.imposter.iplay, .imposter.ires { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; justify-items: stretch; }
.iside, .imain { display: grid; gap: 12px; align-content: start; }
.imain { justify-items: center; }
.icard { display: grid; justify-items: center; gap: 4px; padding: 22px 30px; border-radius: 20px; background: var(--bulb); color: var(--ink); text-align: center; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3); min-width: min(460px, 100%); }
.icard.small { padding: 12px 14px; min-width: 0; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
.icard.is-imp { background: var(--bad); color: #fff; }
.icard .nsay { color: inherit; opacity: 0.75; }
.iword { font: 400 clamp(40px, 6vw, 68px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.icard.small .iword { font-size: 32px; }
.isub { font-size: 15px; }
.icard.small .isub { font-size: 13px; }
.iq { font-weight: 800; font-size: 22px; text-align: center; }
.ibig { font: 400 clamp(28px, 3.6vw, 40px)/1.15 var(--display); color: var(--gold); text-align: center; }
.iclues { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.iclues li { display: grid; padding: 6px 14px; border-radius: 12px; background: var(--bulb-faint); text-align: center; min-width: 96px; }
.iclues li.is-now { box-shadow: inset 0 0 0 2px var(--gold); }
.iname { font-size: 12px; font-weight: 700; color: var(--bulb-dim); }
.iclues b { font-size: 20px; }
.iclues em { font-style: normal; color: var(--bulb-dim); font-weight: 600; font-size: 14px; }
.ivotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; width: 100%; }
.ivote { min-height: 60px; justify-content: center; }
.ivlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.ivlist li { padding: 6px 12px; border-radius: 10px; background: var(--bulb-faint); }
.ivlist li.ok { box-shadow: inset 4px 0 0 var(--good); }
.ivlist li.no { box-shadow: inset 4px 0 0 var(--bad); }
.ivlist b { color: var(--gold); }
.art-imp { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 28px; }
.art-imp .r { filter: drop-shadow(0 0 6px var(--bad)); }
@media (orientation: portrait) {
  .imposter.iplay, .imposter.ires { grid-template-columns: 1fr; }
  .flist li { grid-template-columns: minmax(0, 1fr) auto; }
  .flist .fwho { grid-column: 1 / -1; }
}

/* =========================================================
   Big games (5–12 players): no cameras, so the pictures become small name cards
   ========================================================= */
.game[data-media="off"] .podiums { flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.game[data-media="off"] .pod { flex: 0 1 172px; }
.game[data-media="off"] .cam { aspect-ratio: auto; height: 28px; border-radius: 12px 12px 0 0; box-shadow: none; background: rgba(11, 14, 68, 0.7); }
.game[data-media="off"] .cam video, .game[data-media="off"] .cam-init, .game[data-media="off"] .micoff { display: none; }
.game[data-media="off"] .flag { top: 4px; left: 6px; padding: 1px 8px; font-size: 12px; background: none; }
.game[data-media="off"] .gain { right: 8px; bottom: 2px; font-size: 20px; }
.game[data-media="off"] .hub { top: 3px; right: 4px; width: 22px; height: 22px; }
.game[data-media="off"] .hub svg { width: 14px; height: 14px; }
.game[data-media="off"] .pod.is-hub .gain { right: 32px; }
.game[data-media="off"] .plate { padding: 3px 10px 4px; border-radius: 0 0 12px 12px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.game[data-media="off"] .pname { font-size: 14px; }
.game[data-media="off"] .pscore { font-size: 19px; }
.game[data-media="off"] .pod.is-locked .cam { box-shadow: inset 0 0 0 2px var(--bulb); }
.game[data-media="off"] .pod.is-picker .cam { box-shadow: inset 0 0 0 2px var(--gold); }
.game[data-media="off"] .pod.is-good .cam { background: var(--good-deep); box-shadow: none; }
.game[data-media="off"] .pod.is-bad .cam { background: #8c2340; box-shadow: none; }
.game[data-media="off"] .pod.is-out { opacity: 0.5; }
.game[data-media="off"][data-phase="lobby"] .pod { flex-basis: 150px; }
.bignote { display: grid; gap: 2px; }
.bignote b { color: var(--gold); }
.nspot.is-nocam { display: grid; place-items: center; text-align: center; }
.nspot.is-nocam p { font-size: 26px; font-weight: 600; color: var(--bulb-dim); }
.nspot.is-nocam p b { display: block; font: 400 clamp(48px, 7vw, 84px)/1.1 var(--display); color: var(--gold); }

/* =========================================================
   Phones (players on a phone, held upright)
   ========================================================= */
@media (max-width: 600px) {
  :root { --gutter: 12px; }
  body { font-size: 16px; }

  .logo { font-size: 56px; width: auto; white-space: nowrap; }
  .banner { left: 12px; right: 12px; transform: none; max-width: none; padding: 10px 14px; font-size: 14px; }

  /* top bar */
  .bar { gap: 8px; padding: 8px 12px; min-height: 50px; }
  .brand, .roomtag { display: none; }
  .roundinfo { display: grid; gap: 0; }
  .roundinfo b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
  .roundinfo span { font-size: 12px; }
  .count { font-size: 28px; }
  .baractions { gap: 6px; }
  .soundvia { padding: 8px; }
  .soundvia span { display: none; }
  .iconbtn { width: 38px; height: 38px; }
  .leavebtn { min-height: 38px; padding: 6px 11px; font-size: 13px; }
  .timer { margin: 0 12px; }

  /* players: up to 4 cameras side by side */
  .podiums { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 8px 12px 2px; }
  .pod, .game[data-phase="lobby"] .pod, .game[data-compact="1"] .pod { min-width: 0; }
  .cam { border-radius: 10px 10px 0 0; box-shadow: 0 0 0 2px var(--bulb-faint); }
  .cam-init { font-size: 24px; }
  .flag { top: 3px; left: 3px; max-width: calc(100% - 6px); padding: 1px 6px; font-size: 10px; }
  .gain { right: 4px; bottom: 2px; font-size: 20px; }
  .hub, .micoff { top: 3px; right: 3px; width: 20px; height: 20px; }
  .hub svg, .micoff svg { width: 12px; height: 12px; }
  .pod.is-hub.is-mic-off .micoff { right: 26px; }
  .plate { padding: 2px 6px 3px; border-radius: 0 0 9px 9px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
  .pname, .game[data-phase="lobby"] .pname { font-size: 11px; }
  .pscore { font-size: 14px; }
  .pod.is-locked .cam { box-shadow: 0 0 0 3px var(--bulb); }
  .pod.is-good .cam { box-shadow: 0 0 0 3px var(--good); }
  .pod.is-bad .cam { box-shadow: 0 0 0 3px var(--bad); }

  /* big games: a strip of name cards that scrolls sideways */
  .game[data-media="off"] .podiums { display: flex; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .game[data-media="off"] .podiums::-webkit-scrollbar { display: none; }
  .game[data-media="off"] .pod, .game[data-media="off"][data-phase="lobby"] .pod { flex: 0 0 100px; }
  .game[data-media="off"] .cam { height: 20px; }
  .game[data-media="off"] .flag { top: 2px; font-size: 10px; }
  .game[data-media="off"] .pname { font-size: 12px; }
  .game[data-media="off"] .pscore { font-size: 15px; }
  .game[data-media="off"] .gain { font-size: 15px; bottom: 1px; }

  /* stage + footer */
  .stage { padding: 10px 12px; }
  .controls { min-height: 60px; gap: 10px; padding: 8px 12px max(10px, env(safe-area-inset-bottom)); }
  .ctl-status { font-size: 14px; }
  .btn { min-height: 46px; padding: 10px 16px; font-size: 16px; }
  .btn-next { min-width: 0; }

  /* lobby */
  .lobby-top { flex-direction: column; align-items: stretch; gap: 12px; }
  .joinmini { padding: 8px 12px 8px 8px; }
  .joinmini .qr { width: 64px; height: 64px; }
  .joincard-hint { max-width: none; }
  .tvhint { display: none; }
  .setup-head h2 { font-size: 26px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gtile .art { height: 40px; }
  .gtile-title { flex-wrap: wrap; gap: 4px; }
  .gtile-body h3 { font-size: 18px; }
  .gtile-body p { display: none; }
  .gtile-title .sizechip { font-size: 11px; min-height: 26px; padding: 3px 8px; }
  .stepper { gap: 6px; font-size: 13px; }
  .stepper button { width: 32px; height: 32px; }
  .stepper b { font-size: 22px; }
  .hubnote { font-size: 13px; }

  /* round intro + final */
  .marquee, .intro .marquee, .final .marquee { font-size: 44px; }
  .intro-blurb { font-size: 16px; }
  .intro-by { font-size: 17px; }
  .final-score { font-size: 24px; }

  /* questions */
  .qwrap { gap: 12px; }
  .qtext { font-size: 21px; }
  .answers { grid-template-columns: 1fr; gap: 10px; }
  .ans { min-height: 56px; padding: 8px 12px; gap: 10px; font-size: 17px; border-radius: 12px; }
  .ans .key { width: 34px; height: 34px; font-size: 19px; }
  .who i { font-size: 11px; padding: 1px 6px; }
  .rung { gap: 10px; }
  .rung-pct { font-size: 40px; }
  .rung-cap { font-size: 12px; }
  .typed { gap: 8px; }
  .typed input { width: 100%; min-width: 0; font-size: 28px; min-height: 54px; }
  .typed .btn { min-height: 54px; }
  .answer-big b { font-size: 40px; }
  .explain { font-size: 15px; }

  /* Word Hunt */
  .rack { gap: 4px; }
  .tile, .stage[data-phase="wordreveal"] .tile { width: calc((100vw - 56px) / 9); font-size: 24px; border-radius: 8px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
  .slot { width: calc((100vw - 72px) / 9); height: 40px; font-size: 28px; }
  .wordline { gap: 6px; min-height: 44px; }
  .pickbtns .btn-gold { min-width: 120px; font-size: 18px; min-height: 54px; }
  .pick-who { font-size: 18px; }
  .wordresults li { grid-template-columns: minmax(0, 1fr) auto 54px; gap: 8px; padding: 6px 10px; }
  .wordresults .wnote { display: none; }
  .wword { font-size: 22px; }
  .best { font-size: 13px; }
  .best b { font-size: 20px; }

  /* scores + result lists */
  .scores h2 { font-size: 28px; }
  .board li { grid-template-columns: 26px minmax(60px, 110px) 1fr auto; column-gap: 8px; }
  .brank { font-size: 22px; }
  .bname { font-size: 16px; }
  .bbar { height: 14px; }
  .bscore { font-size: 22px; }
  .gres li { grid-template-columns: minmax(0, 1fr) auto 58px; gap: 8px; padding: 6px 10px; }
  .gres .wnote { font-size: 12px; }
  .gres .wpts { font-size: 20px; }
  .gres .minis { display: none; }

  /* Five Letters */
  .five { gap: 12px; width: 100%; }
  .fside { width: 100%; }
  .ftile { width: 48px; font-size: 26px; }
  .kb { gap: 6px; width: 100%; }
  .krow { gap: 4px; }
  .key { flex: 1; min-width: 0; height: 50px; padding: 0; font-size: 16px; }
  .key.wide { flex: 1.5; min-width: 0; font-size: 12px; }

  /* City Spotter */
  .cityimg { height: 28vh; }
  .cityans { gap: 8px; }
  .cityans .ans { min-height: 52px; font-size: 15px; }
  .cityans .ans .key { width: 28px; height: 28px; font-size: 16px; }
  .city-q { font-size: 18px; }

  /* Jumbled */
  .jlist li { font-size: 15px; padding: 6px 10px; gap: 8px; }
  .jlist li .tick { width: 20px; height: 20px; font-size: 13px; }
  .jmsg { font-size: 16px; margin-bottom: 6px; }
  .jgrid { grid-template-columns: repeat(4, calc((100vw - 48px) / 4)); gap: 8px; }
  .jgrid.is-result { grid-template-columns: repeat(4, 52px); gap: 5px; }

  /* Duck Challenge */
  .belt { height: 120px; }
  .cduck { width: 92px; bottom: 30px; }
  .dhead { font-size: 18px; }
  .dpalette { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .dbtn span { font-size: 9.5px; }
  .dslot { width: 44px; height: 44px; }
  .dslot svg { width: 40px; height: 40px; }
  .dbig { font-size: 30px; }
  .dnext { font-size: 18px; }
  .dline span { width: 40px; }

  /* Noisy */
  .nspot { height: 28vh; }
  .ncard { padding: 16px 18px 20px; min-width: 0; width: 100%; }
  .nemoji { font-size: 72px; }
  .nword { font-size: 36px; }
  .nready { font-size: 26px; }
  .nq { font-size: 18px; }
  .nside { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nopt { min-height: 52px; font-size: 15px; }
  .nopt .nemo { font-size: 24px; width: 28px; }
  .nline { grid-column: 1 / -1; font-size: 15px; }

  /* Emotions */
  .emo.nguess .nspot { width: 100%; height: 34vh; }
  .emo.emaker .nspot { height: 22vh; }
  .nword.is-moment { font-size: 24px; }
  .emo .nopt { font-size: 14px; }

  /* Gibberish */
  .gibcard { font-size: 34px; padding: 16px 18px; }
  .gword i { width: 18px; height: 26px; font-size: 16px; }

  /* Sounds Fishy */
  .fq { font-size: 24px; }
  .fans { font-size: 28px; }
  .fcard { padding: 14px 16px; }

  /* Most Likely To, Two Truths */
  .lkvotes { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lkbars li { grid-template-columns: 80px 1fr 32px; }
  .ttrow input { font-size: 16px; }

  /* Trolley Dash */
  .tlist { padding: 10px; gap: 6px; }
  .thead { font-size: 15px; }
  .thead b { font-size: 24px; }
  .tlist li { grid-template-columns: 26px 1fr auto; gap: 6px; padding: 4px 6px; font-size: 13px; }
  .tlist .temo { font-size: 20px; }
  .tgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .titem { padding: 7px 1px 5px; border-radius: 9px; }
  .titem .temo { font-size: 28px; }
  .titem .tname { font-size: 8.5px; }

  /* Number Crunch */
  .ncard0 { width: 46px; height: 46px; font-size: 24px; }
  .nlarge .btn { min-width: 54px; font-size: 28px; }
  .ntarget b { font-size: 48px; }
  .ntarget span { font-size: 15px; }
  .nnum { min-width: 58px; height: 58px; padding: 0 10px; font-size: 30px; }
  .nops { gap: 8px; }
  .nop { width: 58px; height: 50px; font-size: 28px; }
  .nwork li { font-size: 13px; }
  .nbtns .btn { padding: 10px 12px; }
  .nres .ncard0 { width: 40px; height: 40px; font-size: 21px; }
  .nmethod em { display: none; }
  .nres .gres li { grid-template-columns: minmax(0, 1fr) auto 58px; }
  .nres .gres .wnote { display: none; }

  /* Who Am I? */
  .wgrid { width: 100%; gap: 6px; }
  .wface { padding: 2px; border-radius: 8px; }
  .wq { font-size: 17px; }
  .wcard { padding: 14px; gap: 10px; }
  .wbig { width: 150px; }
  .wcard .nsay { font-size: 18px; }
  .wrule { font-size: 14px; }
  .wres { gap: 10px; }
  .wanswer { display: grid; grid-template-columns: 84px 1fr; gap: 4px 12px; max-width: none; text-align: left; justify-items: start; align-items: center; }
  .wanswer .wbig { width: 84px; grid-row: span 2; padding: 3px; }
  .wanswer .nsay { font-size: 14px; grid-column: 2; grid-row: 1; align-self: end; }
  .wanswer .nline { font-size: 14px; grid-column: 2; grid-row: 2; align-self: start; }
  .wanswer .wbig { grid-column: 1; grid-row: 1 / span 2; }
  .wgrid.small { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .wgrid.small .wface { width: 100%; }
  .wres .wgrid.small { width: min(100%, 300px); }

  /* typed answers + new games */
  .gtyped input { min-height: 52px; font-size: 19px; padding: 6px 12px; }
  .gtyped .btn { min-height: 52px; padding: 8px 14px; }
  .eclue { font-size: 56px; }
  .ffact { font-size: 20px; }
  .ftext { font-size: 17px; }
  .rq { font-size: 34px; }
  .rq.small { font-size: 26px; }
  .rgroups { grid-template-columns: 1fr; gap: 6px; }
  .rans { font-size: 16px; }
  .icard { padding: 16px; }
  .iword { font-size: 40px; }
  .iq { font-size: 18px; }
  .iclues li { min-width: 76px; padding: 4px 10px; }
  .iclues b { font-size: 16px; }
  .ivotes { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Draw It */
  .dword { font-size: 16px; }
  .dword b { font-size: 26px; }
  .dcol { width: 34px; height: 34px; }
  .dsize { min-height: 36px; padding: 4px 10px; font-size: 14px; }
  .dtools { gap: 6px; }
  .dsep { flex-basis: 100%; height: 0; width: auto; }
}

/* A phone turned sideways: there isn't room, so ask for it upright. */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .game::after {
    content: 'Turn your phone upright to play'; position: fixed; inset: 0; z-index: 30;
    display: grid; place-items: center; padding: 24px; text-align: center;
    background: var(--stage-deep); color: var(--gold); font: 400 32px/1.2 var(--display);
  }
}

/* "Can't reach the room" help in the banner */
.banner .joinhelp { display: block; margin-top: 6px; text-align: left; font-weight: 600; line-height: 1.5; }
.banner .joinhelp a { color: inherit; font-weight: 800; }
