/* Party mini-games: Sketch & Guess, Ballpark, Snapshot. Same look as the rest of Plonk (purple panels, yellow accents, chunky shadows). */
.mg { --mc: var(--accent); position: absolute; inset: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding: 16px 18px 18px;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(var(--accent-rgb), .08), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: hidden; }
.mg[data-game='sketch'] { --mc: #ff8fd0; } .mg[data-game='ballpark'] { --mc: #3ee6a8; } .mg[data-game='snapshot'] { --mc: #4cc9f0; }
.mg-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 20px; background: var(--panel); box-shadow: 0 5px 0 rgba(0, 0, 0, .28), inset 0 0 0 1px var(--line); }
.mg-title { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.mg-badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--mc); color: #1d1240; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.mg-badge .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.mg-title .eyebrow { color: var(--mc); }
.mg-word { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 28px; }
.mg-word small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 800; }
.mg-hint { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.mg-hint i { width: 20px; height: 28px; border-bottom: 3px solid var(--text); font-style: normal; text-align: center; text-transform: uppercase; animation: pop .35s var(--spring) both; }
.mg-hint i.sp { border: 0; width: 10px; }
.mg-reveal-word { color: var(--accent); animation: score-pop .6s var(--spring) both; }
.mg-timer { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.mg-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mg-timer circle { fill: none; stroke-width: 5; } .mg-timer .bg { stroke: rgba(0, 0, 0, .3); }
.mg-timer .fg { stroke: var(--mc); stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke-dashoffset .25s linear, stroke .3s; }
.mg-timer b { font-family: var(--display); font-size: 18px; position: relative; }
.mg-timer.low .fg { stroke: var(--pink); } .mg-timer.low b { color: var(--pink); animation: mg-pulse .5s ease-in-out infinite alternate; }
@keyframes mg-pulse { to { transform: scale(1.18); } }

.mg-players { display: grid; align-content: start; gap: 8px; overflow: auto; min-height: 0; }
.mg-p { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, transform .3s var(--spring); }
.mg-p.me { box-shadow: inset 0 0 0 2px var(--accent); }
.mg-p.done { background: color-mix(in srgb, var(--mint) 22%, var(--panel)); }
.mg-p.artist { background: color-mix(in srgb, var(--mc) 24%, var(--panel)); }
.mg-p.off { opacity: .5; }
.mg-rank { font-family: var(--mono); font-size: 12px; color: var(--faint); width: 14px; }
.mg-pn { min-width: 0; display: grid; } .mg-pn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; } .mg-pn span { font-size: 12px; color: var(--muted); font-weight: 800; }
.mg-tag { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mc); color: #1d1240; font-weight: 900; animation: pop .4s var(--spring) both; }
.mg-tag.ok { background: var(--mint); } .mg-tag .ico { width: 15px; height: 15px; }

.mg-stage { min-width: 0; min-height: 0; display: grid; place-items: center; position: relative; }
.mg-side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; min-height: 0; padding: 12px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.mg-feed { overflow: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; overscroll-behavior: contain; }
.mg-feed .gc-msg { background: rgba(0, 0, 0, .22); backdrop-filter: none; align-self: flex-start; animation: rise .3s var(--ease) both; }
.mg-feed .gc-msg.ok { background: color-mix(in srgb, var(--mint) 30%, transparent); color: #fff; } .mg-feed .gc-msg.ok .ico { width: 15px; height: 15px; vertical-align: -2px; color: var(--mint); }
.mg-feed .gc-msg.close { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.mg-input { display: flex; gap: 8px; } .mg-input .input { flex: 1; min-width: 0; } .mg-input .btn { padding: 0 14px; }

/* ---- Sketch & Guess */
.sk-wrap { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; justify-items: center; align-items: center; }
.sk-board { position: relative; aspect-ratio: 4 / 3; width: 100%; max-height: 100%; max-width: calc((100vh - 230px) * 4 / 3); border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 7px 0 rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 255, 255, .85); }
.sk-board canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: default; }
.mg.drawing .sk-board canvas { cursor: crosshair; }
.sk-overlay { position: absolute; inset: 0; display: none; place-items: center; padding: 18px; background: rgba(29, 18, 64, .78); backdrop-filter: blur(5px); color: var(--text); text-align: center; }
.sk-overlay.on { display: grid; }
.sk-choose h2, .sk-end h2 { font-family: var(--display); font-size: clamp(26px, 4vw, 40px); margin: 4px 0 16px; }
.sk-end h2 { color: var(--accent); }
.sk-choices { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sk-choice { display: grid; gap: 4px; padding: 14px 18px; min-width: 150px; border-radius: 18px; border: 0; cursor: pointer; background: var(--panel-2); color: var(--text); box-shadow: 0 5px 0 rgba(0, 0, 0, .3), inset 0 0 0 2px var(--lc, var(--line-hi));
  transition: transform .2s var(--spring), background .2s; font: inherit; }
.sk-choice:hover { transform: translateY(-3px) rotate(-1deg); background: var(--panel-3); }
.sk-choice small { text-transform: uppercase; letter-spacing: .08em; font-weight: 900; font-size: 11px; color: var(--lc); }
.sk-choice b { font-family: var(--display); font-size: 20px; }
.sk-choice.lv-easy { --lc: var(--mint); } .sk-choice.lv-medium { --lc: var(--accent); } .sk-choice.lv-hard { --lc: var(--pink); }
.sk-wait { display: grid; justify-items: center; gap: 6px; } .sk-wait h3 { margin: 6px 0 0; }
.sk-pts { display: grid; gap: 6px; min-width: min(320px, 80vw); }
.sk-pts > div { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); } .sk-pts .num { margin-left: auto; color: var(--mint); }
.sk-tools { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; padding: 8px 10px; border-radius: 18px; background: var(--panel); box-shadow: 0 4px 0 rgba(0, 0, 0, .25), inset 0 0 0 1px var(--line); }
.sk-color { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); transition: transform .15s var(--spring); }
.sk-color.on { transform: scale(1.22); box-shadow: 0 0 0 3px var(--accent), inset 0 0 0 2px rgba(0, 0, 0, .25); }
.sk-size, .sk-tool { width: 36px; height: 36px; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(0, 0, 0, .25); color: var(--text); }
.sk-size i { width: var(--s); height: var(--s); border-radius: 50%; background: currentColor; }
.sk-size.on, .sk-tool.on { background: var(--accent); color: #1d1240; }
.sk-tool .ico { width: 18px; height: 18px; }
.sk-sep { width: 1px; height: 26px; background: var(--line-hi); margin: 0 4px; }

/* ---- Ballpark */
.bp { width: min(720px, 100%); display: grid; gap: 18px; justify-items: center; text-align: center; }
.bp-q { display: grid; justify-items: center; gap: 12px; }
.bp-q h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 38px); line-height: 1.15; margin: 0; text-wrap: balance; }
.bp-q.small h3 { margin: 0; color: var(--muted); font-size: 17px; text-wrap: balance; }
.bp-ic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--mc); color: #1d1240; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); animation: mg-float 3s ease-in-out infinite; }
.bp-ic .ico { width: 34px; height: 34px; stroke-width: 2; }
/* the question's picture: a tilted photo print that settles in */
.bp-pic { position: relative; margin: 0; width: min(380px, 70%); aspect-ratio: 16 / 10; max-height: 26vh; border-radius: 18px; overflow: hidden; background: #0c0720; box-shadow: 0 6px 0 rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 255, 255, .9); rotate: -1.5deg; animation: bp-print .55s var(--spring) both; }
.bp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-pic figcaption { position: absolute; right: 8px; bottom: 6px; } .bp-pic figcaption a { padding: 2px 7px; border-radius: 7px; background: rgba(13, 8, 40, .6); color: rgba(255, 255, 255, .8); font-size: 10.5px; font-weight: 800; text-decoration: none; }
.bp-pic.sm { width: 120px; max-height: none; border-radius: 12px; box-shadow: 0 4px 0 rgba(0, 0, 0, .3), 0 0 0 3px rgba(255, 255, 255, .85); rotate: 1.5deg; }
@keyframes bp-print { from { opacity: 0; transform: translateY(14px) scale(.92); rotate: -6deg; } }
@keyframes mg-float { 50% { transform: translateY(-6px) rotate(-4deg); } }
.bp-form { display: grid; gap: 10px; width: min(460px, 100%); }
.bp-field { position: relative; }
.bp-field .input { width: 100%; font-family: var(--display); font-size: 28px; font-weight: 800; text-align: center; padding: 16px 70px; height: auto; }
.bp-unit { position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-weight: 900; color: var(--muted); }
.bp-quick { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.bp-quick button { border: 0; padding: 7px 12px; border-radius: 11px; background: rgba(0, 0, 0, .25); color: var(--muted); font-weight: 900; cursor: pointer; font: inherit; font-size: 13px; }
.bp-quick button:hover { color: var(--text); background: var(--panel-3); }
.bp-read { min-height: 20px; color: var(--accent); font-weight: 900; }
.bp-tip { margin: 0; font-size: 13px; }
.bp-answer { display: grid; gap: 2px; justify-items: center; } .bp-answer b { font-family: var(--display); font-size: clamp(34px, 5vw, 56px); color: var(--accent); animation: score-pop .7s var(--spring) both; }
.bp-line { position: relative; width: 100%; height: 96px; margin-top: 4px; }
.bp-axis { position: absolute; left: 0; right: 0; top: 70px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .25), rgba(255, 255, 255, .08)); }
.bp-flag { position: absolute; left: var(--x); top: 44px; translate: -50% 0; font-size: 30px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); animation: mg-drop .6s .2s var(--spring) both; z-index: 2; }
.bp-pin { position: absolute; left: var(--x); top: calc(var(--lane) * 22px); translate: -50% 0; animation: mg-drop .5s calc(.5s + var(--i) * .12s) var(--spring) both; transition: left .5s; }
.bp-pin::after { content: ''; position: absolute; left: 50%; top: 32px; width: 2px; height: calc(38px - var(--lane) * 22px + 4px); background: rgba(255, 255, 255, .5); translate: -50% 0; }
.bp-pin.me { z-index: 3; } .bp-pin.me .avatar, .bp-pin.me > * { outline: 3px solid var(--accent); border-radius: 50%; }
@keyframes mg-drop { from { opacity: 0; transform: translateY(-28px) scale(.6); } }
.bp-res { display: grid; gap: 6px; width: 100%; }
.bp-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 13px; background: rgba(0, 0, 0, .2); text-align: left; }
.bp-row.me { box-shadow: inset 0 0 0 2px var(--accent); } .bp-row .faint { font-size: 13px; font-weight: 800; } .bp-row .num { margin-left: auto; color: var(--mint); }
.bp-row .chip { padding: 2px 8px; font-size: 11px; }
.bp-card { animation: pop .6s 1s var(--spring) both; }
.bp-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.bp-calc-btn { gap: 6px; }
.mg-timer.free b { font-size: 24px; color: var(--mc); } .mg-timer.free .fg { opacity: .45; }
#mgSkip.wide { width: auto; padding: 0 14px; gap: 6px; font-weight: 900; font-size: 13.5px; display: inline-flex; align-items: center; background: var(--mc); color: #1d1240; animation: pop .35s var(--spring) both; }
/* the calculator: a small floating pad beside the question */
.bp-calc { position: absolute; right: 8px; bottom: 8px; z-index: 20; width: 260px; display: grid; gap: 8px; padding: 12px; border-radius: 20px; background: var(--panel); box-shadow: 0 10px 0 rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line); animation: mg-calc-in .28s var(--spring) both; text-align: left; }
.bp-calc[hidden] { display: none; }
.mg-stage .bp { transition: translate .35s var(--spring); }
@media (min-width: 981px) { .mg-stage.calc-on .bp { translate: -150px 0; } .mg-stage.calc-on .bp-q h2 { font-size: clamp(22px, 2.6vw, 32px); } }
@keyframes mg-calc-in { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.bc-head { display: flex; align-items: center; justify-content: space-between; } .bc-head b { display: flex; align-items: center; gap: 6px; font-size: 14px; } .bc-head .ico { width: 17px; height: 17px; }
.bc-screen { font-family: var(--display); font-size: 20px; text-align: right; padding: 10px 12px; height: auto; }
.bc-out { text-align: right; font-weight: 900; color: var(--accent); min-height: 18px; font-size: 14px; overflow-wrap: anywhere; }
.bc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bc-keys button, .bc-suf button { border: 0; font: inherit; font-weight: 900; font-size: 17px; padding: 9px 0; border-radius: 12px; background: var(--panel-2); color: var(--text); cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); transition: transform .1s, background .15s; }
.bc-keys button:active, .bc-suf button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.bc-keys button.op { background: color-mix(in srgb, var(--mc) 30%, var(--panel-2)); } .bc-keys button.clr { color: var(--pink); }
.bc-keys button[data-k="="] { background: var(--mc); color: #1d1240; }
.bc-suf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .bc-suf button { font-size: 13px; padding: 7px 0; color: var(--muted); }
/* the recap after each question */
.bp-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.bp-sum > div { display: grid; gap: 1px; padding: 9px 10px; border-radius: 14px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--line); }
.bp-sum .eyebrow { font-size: 10px; color: var(--muted); } .bp-sum b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bp-sum small { font-size: 12px; font-weight: 800; }
.bp-g { display: grid; gap: 0; line-height: 1.2; } .bp-g > span { font-size: 13px; font-weight: 800; color: var(--muted); }
.bp-off { font-size: 11.5px; font-weight: 900; } .bp-off.hit { color: var(--mint); } .bp-off.near { color: #9bde3a; } .bp-off.mid { color: #ffd23f; } .bp-off.far { color: #ff9f43; }

/* ---- Snapshot */
.sn { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
/* desktop: the board fills exactly the space it has, so the photo shrinks and the answers never fall off the screen */
@media (min-width: 701px) and (min-height: 501px) { .mg-stage > .sn { position: absolute; inset: 0; width: auto; height: auto; } }
.sn-photo { position: relative; border-radius: 24px; overflow: hidden; background: #0c0720; box-shadow: 0 7px 0 rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 255, 255, .85); min-height: 0; }
.sn-photo img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform, filter; }
.sn-photo img.sn-hidden { transform: scale(3.4); filter: blur(22px) saturate(1.3); }
.sn-photo img.sn-open { transform: scale(1.05); filter: blur(1.5px); }
.sn-photo img.sn-done { transform: scale(1); filter: none; }
.sn-count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 96px; color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; }
.sn-count.on { opacity: 1; animation: pop .5s var(--spring) both; }
.sn-card { position: absolute; right: 14px; bottom: 14px; }
.sn-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sn-choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--text);
  background: var(--panel-2); box-shadow: 0 5px 0 rgba(0, 0, 0, .3), inset 0 0 0 1px var(--line-hi); transition: transform .18s var(--spring), background .2s, box-shadow .2s; min-height: 58px; }
.sn-choice:hover:not(:disabled) { transform: translateY(-2px); background: var(--panel-3); }
.sn-choice b { font-size: 16px; line-height: 1.2; flex: 1; min-width: 0; } .sn-choice .flag { font-size: 22px; }
.sn-choice.picked { background: color-mix(in srgb, var(--accent) 30%, var(--panel-2)); box-shadow: 0 5px 0 rgba(0, 0, 0, .3), inset 0 0 0 3px var(--accent); }
.sn-choices.locked .sn-choice:not(.picked) { opacity: .55; }
.sn-choice:disabled { cursor: default; }
.sn-choice.right { background: color-mix(in srgb, var(--mint) 38%, var(--panel-2)); box-shadow: 0 5px 0 rgba(0, 0, 0, .3), inset 0 0 0 3px var(--mint); opacity: 1 !important; animation: pop .5s var(--spring) both; }
.sn-choice.wrong { opacity: .45 !important; } .sn-choice.wrong.picked { opacity: .9 !important; box-shadow: 0 5px 0 rgba(0, 0, 0, .3), inset 0 0 0 3px var(--pink); }
.sn-who { display: flex; gap: 2px; } .sn-pts { font-family: var(--display); font-weight: 800; color: var(--mint); }

/* ---- final standings */
.mg-final { position: absolute; inset: 0; overflow: auto; display: grid; place-items: start center; padding: 40px 18px; background: radial-gradient(900px 500px at 50% 0%, color-mix(in srgb, var(--mc) 22%, transparent), transparent 70%), var(--bg); }
.mg-final-in { width: min(640px, 100%); text-align: center; display: grid; gap: 6px; }
.mg-final-in .eyebrow { color: var(--mc); } .mg-final-in .eyebrow .ico { width: 15px; height: 15px; vertical-align: -2px; }
.mg-final-list { display: grid; gap: 6px; margin-bottom: 10px; }
.seg-party button { display: inline-flex; align-items: center; gap: 6px; } .seg-party button .ico { width: 15px; height: 15px; }
.seg-party button.on { background: var(--mc, var(--accent)); color: #1d1240; }

/* ---- phones */
@media (max-width: 980px) and (min-width: 701px) { .mg { grid-template-columns: 190px minmax(0, 1fr) 250px; gap: 12px; padding: 12px; } }
@media (max-width: 700px) {
  .bp-pic { width: min(260px, 72%); max-height: 20vh; } .bp-pic.sm { width: 84px; }
  .mg { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
  /* the drawing sits at its natural height; the guess feed takes whatever is left */
  .mg[data-game='sketch'] { grid-template-rows: auto auto auto minmax(0, 1fr); }
  .mg[data-game='sketch'] .mg-stage { align-self: start; }
  .mg[data-game='sketch'] .sk-wrap { height: auto; grid-template-rows: auto auto; gap: 8px; }
  .mg-top { padding: 8px 10px; gap: 10px; border-radius: 16px; }
  .mg-badge { width: 36px; height: 36px; border-radius: 12px; } .mg-word { font-size: 18px; min-height: 22px; } .mg-hint i { width: 14px; height: 22px; } .mg-timer { width: 44px; height: 44px; }
  .mg-players { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: none; }
  .mg-p { padding: 5px 9px 5px 6px; gap: 7px; } .mg-rank { display: none; } .mg-pn b { font-size: 12.5px; max-width: 90px; } .mg-pn span { font-size: 11px; } .mg-tag { width: 22px; height: 22px; }
  .mg-side { padding: 8px; max-height: 32vh; grid-template-rows: minmax(0, 1fr) auto; }
  .mg[data-game='sketch'] .mg-side { max-height: none; min-height: 120px; }
  .mg[data-game='ballpark'] .mg-side, .mg[data-game='snapshot'] .mg-side { display: none; }
  .mg-feed .gc-msg { font-size: 13px; padding: 4px 9px; }
  .sk-board { max-width: 100%; border-radius: 16px; }
  .sk-tools { gap: 4px; padding: 6px; } .sk-color { width: 24px; height: 24px; } .sk-size, .sk-tool { width: 32px; height: 32px; } .sk-sep { display: none; }
  .sk-choice { min-width: 0; flex: 1 1 100%; padding: 11px 14px; } .sk-choice b { font-size: 18px; }
  .bp { gap: 12px; } .bp-ic { width: 50px; height: 50px; } .bp-field .input { font-size: 22px; padding: 13px 60px; }
  .bp-line { height: 84px; } .bp-axis { top: 62px; } .bp-flag { top: 38px; font-size: 24px; }
  .sn { gap: 10px; } .sn-choices { gap: 8px; } .sn-choice { padding: 10px 12px; min-height: 50px; } .sn-choice b { font-size: 14px; }
  .sn-card { display: none; } .sn-count { font-size: 72px; }
  .mg-final { padding: 24px 12px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .mg { grid-template-columns: minmax(0, 1fr) 230px; grid-template-rows: auto minmax(0, 1fr); gap: 8px; padding: 6px 10px 8px; }
  .mg-top { grid-column: 1 / -1; padding: 5px 10px; } .mg-badge { width: 32px; height: 32px; } .mg-word { font-size: 17px; } .mg-timer { width: 40px; height: 40px; } .mg-title .eyebrow { font-size: 10px; }
  .mg-players { grid-column: 2; grid-row: 2; align-self: start; max-height: 38vh; gap: 4px; }
  .mg-p { padding: 4px 8px; } .mg-p .avatar { width: 24px !important; height: 24px !important; }
  .mg-stage { grid-column: 1; grid-row: 2; }
  .mg-side { grid-column: 2; grid-row: 2; align-self: end; height: calc(62vh - 70px); padding: 6px; }
  .sk-wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); gap: 8px; }
  .sk-board { max-width: calc((100vh - 80px) * 4 / 3); height: auto; max-height: calc(100vh - 80px); border-radius: 14px; }
  .sk-tools { flex-direction: column; flex-wrap: wrap; max-height: calc(100vh - 80px); padding: 5px; gap: 3px; } .sk-color { width: 20px; height: 20px; } .sk-size, .sk-tool { width: 28px; height: 28px; } .sk-sep { display: none; }
  .bp { gap: 8px; } .bp-ic { display: none; } .bp-pic { display: none; } .bp-q h2 { font-size: 20px; } .bp-field .input { font-size: 20px; padding: 9px 56px; } .bp-tip { display: none; }
  .bp-line { height: 74px; } .bp-axis { top: 56px; } .bp-flag { top: 32px; } .bp-answer b { font-size: 30px; } .bp-card { display: none; }
  .sn { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); } .sn-choices { grid-template-columns: 1fr; align-content: center; } .sn-choice { min-height: 44px; padding: 8px 10px; }
  .sn-card { display: none; }
}

/* profile: party game stats */
.party-stats .ps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.ps-tile { position: relative; overflow: hidden; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--hue) 16%, transparent), transparent 70%), var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ps-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ps-head .ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--hue) 22%, transparent); color: var(--hue); }
.ps-head .ic svg { width: 18px; height: 18px; }
.ps-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px 8px; margin-top: 12px; }
.ps-nums b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.1; }
.ps-nums small { color: var(--muted); font-size: 12px; font-weight: 800; }
@media (max-width: 600px) { .ps-nums b { font-size: 19px; } .ps-nums { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .bp-calc { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
  .bp-sum { gap: 6px; } .bp-sum > div { padding: 7px 8px; } .bp-sum b { font-size: 13px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .bp-calc { position: fixed; right: 10px; top: 6px; bottom: 6px; width: 290px; overflow: auto; gap: 5px; padding: 8px 10px; align-content: start; }
  .bc-screen { padding: 5px 10px; font-size: 16px; } .bc-out { min-height: 14px; font-size: 12.5px; }
  .bc-keys, .bc-suf { gap: 4px; } .bc-keys button { padding: 3px 0; font-size: 14px; } .bc-suf button { padding: 3px 0; font-size: 12px; }
  .bp-calc .btn { padding: 6px 12px; min-height: 0; font-size: 14px; } .bp-sum { display: none; }
}

/* Multiplayer page: geo games and party games as two clearly different zones */
.mp-zone { margin-top: 16px; padding: 14px; border-radius: 22px; position: relative; }
.mz-head { display: flex; align-items: center; gap: 12px; margin: 0 2px 12px; }
.mz-head b { font-family: var(--display); font-size: 18px; display: flex; align-items: center; gap: 8px; } .mz-head small { color: var(--muted); font-weight: 800; font-size: 12.5px; }
.mz-ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.geo-zone { background: rgba(0, 0, 0, .14); box-shadow: inset 0 0 0 1px var(--line); }
.geo-zone .mz-ic { background: rgba(var(--accent-rgb), .18); color: var(--accent); }
.party-zone { overflow: hidden; isolation: isolate; background:
    radial-gradient(420px 180px at 100% 0%, rgba(255, 143, 208, .22), transparent 70%),
    radial-gradient(380px 200px at 0% 100%, rgba(62, 230, 168, .16), transparent 70%), rgba(0, 0, 0, .16);
  box-shadow: inset 0 0 0 2px rgba(255, 143, 208, .35); }
.party-zone::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(255, 210, 63, .5) 1.4px, transparent 1.6px), radial-gradient(circle, rgba(76, 201, 240, .45) 1.2px, transparent 1.4px);
  background-size: 46px 46px, 62px 62px; background-position: 0 0, 23px 31px; animation: mz-drift 30s linear infinite; }
@keyframes mz-drift { to { background-position: 46px 46px, 85px 93px; } }
.party-zone .mz-ic { background: linear-gradient(135deg, #ff8fd0, #ffd23f); color: #1d1240; animation: mg-float 3.2s ease-in-out infinite; }
.mz-new { padding: 1px 8px; font-size: 10.5px; font-family: var(--font); }
.pm-pill { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; padding: 14px 16px; background: var(--panel-2); }
.pm-pill .badge { margin-top: 2px; }
.pm-body { display: grid; gap: 4px; min-width: 0; }
.pm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.pm-tags span, .ht-tags span { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--mc) 18%, transparent); color: color-mix(in srgb, var(--mc) 70%, #fff); }
.pm-how { margin-left: auto; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 8px; }
.pm-how:hover { color: var(--text); background: rgba(255, 255, 255, .06); } .pm-how .ico { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .party-zone::before, .party-zone .mz-ic { animation: none; } }
:root[data-motion="reduced"] .party-zone::before, :root[data-motion="reduced"] .party-zone .mz-ic { animation: none; }

/* How to play */
.howto { --mc: var(--accent); }
.ht-head { display: flex; align-items: center; gap: 14px; } .ht-head h2 { margin: 2px 0 0; font-size: 28px; }
.ht-badge { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--mc); color: #1d1240; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); animation: pop .5s var(--spring) both; }
.ht-badge .ico { width: 28px; height: 28px; }
.ht-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 6px; }
.ht-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.ht-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-weight: 700; line-height: 1.4; animation: rise .45s calc(var(--i) * 80ms + 120ms) var(--spring) both; }
.ht-steps b { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--mc) 25%, transparent); color: var(--mc); font-family: var(--display); }

/* Sketch & Guess papers (store items): drawn behind the see-through canvas */
.sk-board[data-canvas="grid"], .cv-prev[data-canvas="grid"] { background: #fbfdff linear-gradient(rgba(76, 140, 255, .18) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(76, 140, 255, .18) 1px, transparent 1px) 0 0 / 24px 24px; background-color: #fbfdff; }
.sk-board[data-canvas="note"], .cv-prev[data-canvas="note"] { background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(90, 120, 200, .25) 31px 32px), linear-gradient(90deg, transparent 54px, rgba(255, 92, 106, .35) 54px 56px, transparent 56px), #fff4a8; }
.sk-board[data-canvas="parchment"], .cv-prev[data-canvas="parchment"] { background:
    radial-gradient(circle at 85% 18%, transparent 38px, rgba(120, 80, 30, .25) 39px 40px, transparent 41px, transparent 58px, rgba(120, 80, 30, .18) 59px 60px, transparent 61px),
    repeating-radial-gradient(ellipse at 20% 80%, transparent 0 26px, rgba(140, 95, 40, .12) 27px 28px),
    radial-gradient(ellipse at center, #f6e7c4 40%, #e2c48e 100%); }
.sk-board[data-canvas="blueprint"], .cv-prev[data-canvas="blueprint"] { background: linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px) 0 0 / 100px 100px, linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px) 0 0 / 100px 100px, #1f4fa8; }
.sk-board[data-canvas="chalkboard"], .cv-prev[data-canvas="chalkboard"] { background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, .07), transparent 60%), radial-gradient(ellipse at 75% 70%, rgba(255, 255, 255, .05), transparent 55%), #24443a; box-shadow: inset 0 0 0 10px #7a4e2b, inset 0 0 0 12px #5c3a1f; }
.sk-board[data-canvas="night"], .cv-prev[data-canvas="night"] { background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent), radial-gradient(1px 1px at 33% 62%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 58% 24%, #fff 50%, transparent),
    radial-gradient(1px 1px at 76% 78%, #fff 50%, transparent), radial-gradient(2px 2px at 88% 36%, #ffe98a 50%, transparent), radial-gradient(1px 1px at 22% 86%, #fff 50%, transparent),
    radial-gradient(circle at 80% 15%, #fff6d6 0 22px, transparent 23px), linear-gradient(180deg, #0d0b2e, #2b1a5e 70%, #4a2a6e); }
.sk-board { transition: background .4s; }

/* the party winner's celebration */
.winfx { position: fixed; inset: 0; pointer-events: none; z-index: 9000; overflow: hidden; }
.wf-emoji i { position: absolute; top: -60px; font-size: calc(34px * var(--s)); font-style: normal; animation: wf-fall 3.6s var(--d) cubic-bezier(.3, .2, .6, 1) both; }
@keyframes wf-fall { from { transform: translateY(0) rotate(0); opacity: 1; } 85% { opacity: 1; } to { transform: translateY(calc(100vh + 120px)) rotate(var(--r)); opacity: 0; } }
.wf-balloons i { position: absolute; bottom: -120px; width: calc(54px * var(--s)); height: calc(66px * var(--s)); border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), transparent 22%), hsl(var(--h) 85% 60%); animation: wf-rise 5s var(--d) cubic-bezier(.4, .1, .5, 1) both; }
.wf-balloons i::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 70px; background: rgba(255, 255, 255, .6); }
@keyframes wf-rise { from { transform: translate(0, 0); } 50% { transform: translate(18px, -55vh); } to { transform: translate(-10px, calc(-100vh - 200px)); } }
.wf-fireworks b { position: absolute; width: 0; height: 0; }
.wf-fireworks u { position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--h) 100% 65%); box-shadow: 0 0 8px hsl(var(--h) 100% 65%); opacity: 0; animation: wf-burst 1.5s var(--d) cubic-bezier(.1, .8, .3, 1) both; }
@keyframes wf-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(130px) scale(.5); } }
.wf-stars i { position: absolute; width: 140px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff6c2 70%, #fff); filter: drop-shadow(0 0 6px #ffd23f); opacity: 0; transform: rotate(-30deg); animation: wf-shoot 1.4s var(--d) ease-out both; }
@keyframes wf-shoot { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 100% { opacity: 0; translate: -420px 240px; } }

/* store tiles for the party cosmetics */
.cv-prev { width: 120px; height: 90px; border-radius: 14px; background: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.brush-prev { width: 150px; height: 80px; border-radius: 14px; background: #2a1d55; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.winfx-prev { width: 96px; height: 80px; border-radius: 16px; display: grid; place-items: center; font-size: 40px; background: linear-gradient(135deg, #ff8fd0, #ffd23f); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); cursor: pointer; transition: transform .2s var(--spring); }
.winfx-prev:hover { transform: scale(1.06) rotate(-3deg); }
.party-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 24px 28px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(500px 220px at 90% 0%, rgba(255, 143, 208, .25), transparent 70%), radial-gradient(420px 220px at 0% 100%, rgba(62, 230, 168, .18), transparent 70%), var(--panel);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .22), inset 0 0 0 2px rgba(255, 143, 208, .3); }
.ph-art { font-size: 84px; animation: mg-float 3.4s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .3)); }
@media (max-width: 600px) { .party-hero { grid-template-columns: 1fr; text-align: center; padding: 20px; } .ph-art { font-size: 64px; } }

/* home: a quiet note about the new party games, under Play now */
.new-modes { display: inline-flex; align-items: center; gap: 2px; margin-top: 14px; padding: 4px 4px 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px rgba(255, 143, 208, .35); max-width: 100%; transition: opacity .3s, transform .3s; }
.new-modes.out { opacity: 0; transform: translateY(-6px); }
.nm-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 13.5px; text-decoration: none; min-width: 0; }
.nm-link b { color: #ff8fd0; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.nm-link .ico { width: 15px; height: 15px; flex: none; transition: transform .2s; } .nm-link:hover .ico { transform: translateX(3px); }
.nm-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff8fd0; flex: none; animation: nm-ping 2.2s ease-out infinite; }
@keyframes nm-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 143, 208, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 143, 208, 0); } }
.nm-x { border: 0; background: none; color: var(--muted); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.nm-x:hover { background: rgba(255, 255, 255, .08); color: var(--text); } .nm-x .ico { width: 14px; height: 14px; }
@media (max-width: 600px) { .nm-link { font-size: 12.5px; white-space: normal; } }

/* Pin Drop */
.mg[data-game='pindrop'] { --mc: #ff9f43; }
.pd { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 10px; }
.pd-q { display: grid; justify-items: center; text-align: center; gap: 2px; } .pd-type { font-size: 13px; font-weight: 900; color: var(--mc); letter-spacing: .06em; text-transform: uppercase; }
.pd-name { margin: 0; font-family: var(--display); font-size: clamp(24px, 3.4vw, 40px); line-height: 1.1; text-wrap: balance; animation: pop .5s var(--spring) both; }
.pd-map { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 7px 0 rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 255, 255, .85); min-height: 180px; }
.pd-map .sn-count { z-index: 500; }
.pd-bar { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; } .pd-bar #pdHint { font-weight: 800; }
.pd.rev .pd-bar #pdHint { font-size: 18px; color: var(--text); }
.pd-res { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; } .pd-res:empty { display: none; }
.pd-rows { display: grid; gap: 6px; max-height: 22vh; overflow: auto; }
@media (max-width: 700px) { .pd { position: relative; inset: auto; min-height: 70vh; grid-template-rows: auto minmax(260px, 1fr) auto auto; } .pd-res { grid-template-columns: 1fr; } .pd-res .bp-card { display: none; } }
@media (max-height: 500px) and (orientation: landscape) { .pd { grid-template-rows: auto minmax(0, 1fr) auto; } .pd-res { display: none; } .pd-name { font-size: 20px; } }

/* Higher or Lower */
.mg[data-game='higherlower'] { --mc: #7a8cff; }
.hl { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.hl-q { text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); text-wrap: balance; } .hl-q b { color: var(--text); }
.hl-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 10px; align-items: stretch; min-height: 0; }
.hl-card { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; border-radius: 24px; overflow: hidden; background: var(--panel); box-shadow: 0 8px 0 rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 255, 255, .85); min-height: 0; transition: box-shadow .4s, transform .4s var(--spring); }
.hl-ph { position: relative; min-height: 0; overflow: hidden; background: #0c0720; } .hl-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 6s ease; }
.hl-card:hover .hl-ph img { transform: scale(1.1); }
.hl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 8, 40, 0) 45%, rgba(13, 8, 40, .75)); }
.hl-info { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 14px 14px; text-align: center; margin-top: -54px; z-index: 1; }
.hl-name { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: clamp(17px, 2vw, 24px); line-height: 1.15; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); text-wrap: balance; }
.hl-flag { font-size: 18px; }
.hl-val { display: flex; align-items: baseline; gap: 6px; } .hl-n { white-space: nowrap; font-family: var(--display); font-size: clamp(30px, 4vw, 50px); color: var(--accent); line-height: 1; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); font-variant-numeric: tabular-nums; }
.hl-val small { font-weight: 900; color: var(--muted); } .hl-val.q .hl-n { color: #fff; animation: hl-q 1.6s ease-in-out infinite; }
@keyframes hl-q { 50% { transform: scale(1.12) rotate(-4deg); } }
.hl-metric { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.hl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 6px; }
.hl-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border: 0; border-radius: 16px; font: inherit; font-weight: 900; font-size: 16px; cursor: pointer; color: #0d0828; transition: transform .15s var(--spring), filter .2s, opacity .3s; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.hl-btn span { font-size: 13px; } .hl-btn.hi { background: linear-gradient(180deg, #5cf2b8, #2ec98d); } .hl-btn.lo { background: linear-gradient(180deg, #ff8fa8, #ff5c8a); }
.hl-btn:hover:not(:disabled) { transform: translateY(-3px) scale(1.03); } .hl-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.hl.locked .hl-btn:not(.picked) { opacity: .45; } .hl-btn.picked { outline: 3px solid #fff; outline-offset: 2px; }
.hl-btn.wrong { opacity: .35; } .hl-btn.right { animation: pop .5s var(--spring) both; box-shadow: 0 0 0 3px #fff, 0 0 26px rgba(255, 255, 255, .6); }
.hl-who { position: absolute; top: -12px; right: -6px; display: flex; font-style: normal; } .hl-who span { margin-left: -6px; animation: pop .35s var(--spring) both; }
.hl-vs { display: grid; place-items: center; } .hl-vs span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 18px; color: #0d0828; background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23f 55%, #e8a800); box-shadow: 0 5px 0 rgba(0, 0, 0, .3), 0 0 26px rgba(255, 210, 63, .5); animation: hl-vs 3s ease-in-out infinite; }
@keyframes hl-vs { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.08); } }
/* dealing in, sliding along */
.hl.deal .hl-card.a { animation: hl-in-l .55s var(--spring) both; } .hl.deal .hl-card.b { animation: hl-in-r .55s .12s var(--spring) both; } .hl.deal .hl-vs { animation: pop .5s .25s var(--spring) both; }
.hl.slide .hl-card.a { animation: hl-move .6s var(--spring) both; } .hl.slide .hl-card.b { animation: hl-in-r .6s .15s var(--spring) both; }
@keyframes hl-in-l { from { opacity: 0; transform: translateX(-60px) rotate(-6deg) scale(.9); } }
@keyframes hl-in-r { from { opacity: 0; transform: translateX(80px) rotate(6deg) scale(.9); } }
@keyframes hl-move { from { transform: translateX(calc(100% + 74px)); } }
/* the reveal */
.hl-card.rolling .hl-n { color: #fff; animation: hl-roll .12s linear infinite; }
@keyframes hl-roll { 50% { transform: translateY(-2px); filter: blur(.6px); } }
.hl-card.up { box-shadow: 0 8px 0 rgba(0, 0, 0, .3), 0 0 0 4px #3ee6a8, 0 0 34px rgba(62, 230, 168, .45); }
.hl-card.down { box-shadow: 0 8px 0 rgba(0, 0, 0, .3), 0 0 0 4px #ff5c8a, 0 0 34px rgba(255, 92, 138, .45); }
.hl-card.up .hl-n::after { content: ' ▲'; font-size: .5em; color: #3ee6a8; } .hl-card.down .hl-n::after { content: ' ▼'; font-size: .5em; color: #ff5c8a; }
.hl.lost .hl-card.b { animation: hp-shake .5s ease both; }
.hl-pts { position: absolute; top: 14px; left: 50%; translate: -50% 0; display: grid; justify-items: center; padding: 8px 16px; border-radius: 16px; background: #3ee6a8; color: #0b2a1f; font-family: var(--display); font-size: 26px; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); animation: hl-pts 1.2s var(--spring) both; z-index: 2; }
.hl-pts small { font-family: var(--font); font-size: 12px; font-weight: 900; }
@keyframes hl-pts { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 40% { opacity: 1; transform: translateY(-4px) scale(1.08); } 100% { transform: none; } }
.hl-foot { position: relative; min-height: 26px; display: grid; place-items: center; } .hl-sum { font-weight: 800; color: var(--muted); animation: rise .4s var(--ease) both; }
.hl .sn-count { position: fixed; z-index: 30; }
@media (max-width: 700px) {
  .hl { position: relative; inset: auto; grid-template-rows: auto auto auto; gap: 8px; }
  .hl-row { grid-template-columns: 1fr; grid-template-rows: auto 30px auto; gap: 6px; }
  .hl-card { grid-template-rows: 130px auto; } .hl-vs span { width: 44px; height: 44px; font-size: 14px; }
  .hl-info { margin-top: -40px; padding: 8px 10px 10px; } .hl-n { font-size: 30px; }
  @keyframes hl-move { from { transform: translateY(calc(100% + 36px)); } }
}
@media (max-height: 500px) and (orientation: landscape) { .hl-q { display: none; } .hl-info { margin-top: -40px; padding: 6px 10px 8px; } .hl-n { font-size: 26px; } .hl-btn { padding: 8px; } }
/* v17: both cards line up (the known one gets a slot where the other has its buttons) */
.hl-known { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 43px; margin-top: 6px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: var(--muted); font-weight: 900; font-size: 13.5px; }
.hl-known .ico { width: 16px; height: 16px; }
.hl-ans { font-family: var(--display); } .hl-ans.hi { color: #3ee6a8; } .hl-ans.lo { color: #ff5c8a; }
@media (max-width: 700px) { .hl-known { display: none; } }
@media (max-height: 500px) and (orientation: landscape) { .hl-known { display: flex; min-height: 35px; font-size: 12px; } }
/* v107: the quiz games and Plonk Party fill the stage; the board keeps its own standings, so the players column steps aside */
.mg-stage > .qz { align-self: start; margin-top: 2vh; } .mg-stage > .pp { justify-self: stretch; align-self: stretch; width: 100%; }
.mg[data-game='party'] { grid-template-columns: minmax(0, 1fr) 280px; } .mg[data-game='party'] .mg-players { display: none; }
.mg[data-game='quiz'] { --mc: #ffd23f; } .mg[data-game='party'] { --mc: #ffb347; }
@media (max-width: 980px) and (min-width: 701px) { .mg[data-game='party'] { grid-template-columns: minmax(0, 1fr) 230px; } }
@media (max-width: 700px) { .mg[data-game='party'] { grid-template-columns: 1fr; } .mg[data-game='party'] .mg-side { max-height: 22vh; } }
