/* פננקה — the two extra modes, redesigned (2026-11-13): ∞ ללא הגבלה and משחק חברים
   (דו־קרב פנדלים / הקפצות). Loaded after daily.css and built from its tokens: the LED
   scoreboard (dotted board, amber LED), ink outlines with offset shadows, the cream CTA. */

/* ═════════ home: "more ways to play" ═════════ */
.modes-sec { margin-top: 20px; }
.modes-title { margin: 0 0 8px; font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 2px; color: var(--muted); }
.modes { grid-template-columns: 1fr; gap: 10px; margin-top: 0; }
@media (min-width: 640px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode-card {
  --mc: var(--led);
  position: relative; grid-template-columns: 56px minmax(0, 1fr) 22px; align-items: center; gap: 12px;
  min-height: 96px; padding: 12px 12px 12px 10px; border-radius: 14px; text-align: start;
  background-color: var(--panel);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--mc) 14%, transparent) 0, transparent 52px);
  transition: transform .12s, border-color .15s, box-shadow .12s;
}
.mode-card[data-mc="party"] { --mc: var(--t3); }
.mode-card:hover { border-color: color-mix(in srgb, var(--mc) 70%, var(--edge)); }
.mode-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.mc-art { width: 56px; height: 56px; display: grid; place-items: center; padding: 8px; background: #06030b; border: 2px solid #30194c; border-radius: 10px; }
.mc-art .pix { width: 100%; height: 100%; }
.mc-body { display: grid; gap: 4px; min-width: 0; }
.mode-card .mc-name { font-size: 19px; font-weight: 900; color: var(--chalk); line-height: 1.2; }
.mode-card .mc-what { font-size: 14px; color: var(--chalk-dim); line-height: 1.4; }
.mode-card .mc-what b { font-size: inherit; color: var(--chalk); font-weight: 800; white-space: nowrap; }
.mc-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 2px; }
.mc-meta span { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 1px 8px; border: 1.5px solid #3d2461; border-radius: 99px; white-space: nowrap; }
.mc-meta .is-hot { color: var(--ink); background: var(--led); border-color: var(--ink); }
.mc-go svg { width: 22px; height: 22px; fill: none; stroke: var(--mc); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mode-card:hover .mc-go svg { animation: nudge .6s ease-in-out infinite; }

/* ═════════ shared pieces ═════════ */
.mx-lead { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: var(--chalk); }
.mx-lead b { color: var(--led-hot); }
.mx-sub { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; font-size: 17px; font-weight: 900; }
.mx-sub small { color: var(--muted); font-size: 13px; font-weight: 600; }
.mx-step { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; font-size: 19px; font-weight: 900; }
.mx-num { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; background: var(--led); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); font-size: 16px; }
.mx-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 2px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.mx-or::before, .mx-or::after { content: ''; flex: 1; height: 2px; background: var(--edge); }
.mx-field { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.mx-legend { display: flex; align-items: baseline; gap: 8px; padding: 0; margin-bottom: 8px; font-size: 18px; font-weight: 900; color: var(--chalk); }
.mx-legend small { color: var(--muted); font-size: 13px; font-weight: 600; }
.mx-hint { margin: 6px 2px 0; min-height: 1.5em; font-size: 13.5px; line-height: 1.45; color: var(--chalk-dim); }
.mx-mini { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; padding: 6px 14px; border-radius: 99px; background: var(--panel); border: 2px solid var(--edge); color: var(--chalk-dim); font-weight: 800; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.mx-mini:hover { border-color: var(--led); color: var(--chalk); }
/* a segmented control (radio group): the level, the party game, how to win */
.mx-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: #0e0618; border: 2px solid var(--edge); border-radius: var(--r); }
.mx-seg-btn { min-height: 44px; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-weight: 800; font-size: 16px; white-space: nowrap; }
.mx-seg-btn:hover { color: var(--chalk); }
.mx-seg-btn[aria-checked="true"] { background: var(--cta); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
/* a toggle's two-line label */
.unl-switch > span:first-child { display: grid; gap: 2px; min-width: 0; }
.unl-switch > span:first-child b { font-size: 15.5px; }
.unl-switch > span:first-child small { font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.unl-switch { min-height: 56px; }

/* ═════════ ∞ UNLIMITED ═════════ */
.mx-hero {
  padding: 14px; border-radius: 12px; border: 3px solid #3d2461; box-shadow: inset 0 0 0 2px var(--ink), var(--shadow);
  background: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1.4px) 0 0 / 5px 5px, #0c0514;
}
.mx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: mxs; }
.mx-steps li { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; text-align: center; background: #06030b; border: 2px solid #30194c; border-radius: 8px; counter-increment: mxs; }
.mx-steps li::before { content: counter(mxs); position: absolute; top: 4px; inset-inline-start: 6px; font-family: var(--cond); font-size: 15px; color: var(--muted); }
.mx-ic { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 2px; }
.mx-ic .pix { width: 100%; height: 100%; object-fit: contain; }
.mx-steps b { font-size: 15px; color: var(--led-hot); line-height: 1.2; }
.mx-steps small { font-size: 12.5px; color: var(--chalk-dim); line-height: 1.3; }
.mx-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* the pass: what this player may play today, and the way in */
.unl-pass { display: grid; gap: 10px; margin: 14px 0 0; }
.unl-pass .unl-access { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px; border-radius: 12px; background: var(--panel); border: 2px solid var(--edge); box-shadow: var(--shadow); }
.unl-pass[data-state="free"] .unl-access { border-color: var(--led); }
.unl-pass[data-state="pro"] .unl-access { border-color: var(--t2); }
.unl-pass[data-state="active"] .unl-access { border-color: var(--t1); }
.unl-pass[data-state="locked"] .unl-access { border-color: var(--miss); }
.up-badge { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; background: #06030b; border: 2px solid #30194c; border-radius: 10px; }
.unl-pass[data-state="locked"] .up-badge { color: var(--miss); text-shadow: 0 0 8px rgba(255, 77, 94, .6); }
.unl-pass[data-state="pro"] .up-badge { color: var(--t2); text-shadow: 0 0 8px rgba(47, 224, 124, .5); }
.up-txt { display: grid; gap: 3px; min-width: 0; line-height: 1.4; }
.up-txt b { font-size: 16.5px; }
.up-txt small { font-size: 13.5px; color: var(--chalk-dim); }
.up-link { color: var(--led); font-weight: 800; text-underline-offset: 3px; }
#unlSubscribe .btn-face { font-size: 19px; min-height: 58px; }
.unl-pass .unl-login { margin: 0 auto; }

/* topics: cards with the question ticket's category colour */
#unlTopics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.mx-topic {
  --tc: var(--chalk-dim);
  position: relative; display: grid; align-content: start; gap: 2px; min-height: 64px; min-width: 0;
  padding: 10px 12px 10px 34px; text-align: start; color: var(--chalk);
  background: var(--panel); border: 2px solid var(--edge); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink);
  border-inline-start: 6px solid color-mix(in srgb, var(--tc) 45%, var(--edge));
  transition: transform .08s, box-shadow .08s, border-color .15s, background .15s;
}
.mx-topic[data-cat="ligat-haal"] { --tc: #ffd23f; }
.mx-topic[data-cat="pl"] { --tc: #c9a0ff; }
.mx-topic[data-cat="europe"] { --tc: #6ec3ff; }
.mx-topic[data-cat="national"] { --tc: #ff8a8a; }
.mx-topic[data-cat="history"] { --tc: #e7d3a6; }
.mx-topic:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mx-topic b { font-size: 15.5px; font-weight: 900; }
.mx-topic small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.mx-topic:hover { border-color: var(--tc); }
.mx-topic:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.mx-check { position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; border: 2px solid var(--edge); border-radius: 5px; background: #08040f; }
.mx-topic.is-on { background: color-mix(in srgb, var(--tc) 13%, var(--panel)); border-color: var(--tc); }
.mx-topic.is-on small { color: var(--chalk-dim); }
.mx-topic.is-on .mx-check { background: var(--tc); border-color: var(--ink); }
.mx-topic.is-on .mx-check::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.mx-topic.is-off { opacity: .45; box-shadow: none; }
.mx-topic.is-off small::after { content: ' · כבוי'; }
#unlNoIsrael { margin-top: 12px; }
/* the round, summed up before the kick-off */
.unl-count { display: grid; gap: 2px; margin: 18px 0 14px; padding: 10px 12px; border: 2px dashed var(--edge); border-radius: 10px; color: var(--chalk); }
.mx-sum-cap { font-family: var(--cond); font-size: 17px; letter-spacing: 1.5px; color: var(--muted); }
.mx-sum { font-size: 15px; font-weight: 700; line-height: 1.45; }
.mx-warn { color: var(--coral-soft); }
/* results: another round in one tap */
#btnUnlAgain .btn-face, #btnRondoAgain .btn-face { flex-direction: column; gap: 0; line-height: 1.15; padding-block: 8px; }
.unl-again-sub { display: block; font-size: 13.5px; font-weight: 700; color: var(--ticket-dim); letter-spacing: 0; }
body[data-mode="unlimited"] #btnUnlChange { display: flex; width: fit-content; margin: 0 auto 14px; }

/* ═════════ PARTY: no room yet ═════════ */
.mx-join { display: grid; gap: 8px; padding: 12px; background: var(--panel); border: 2px solid var(--edge); border-radius: 12px; box-shadow: var(--shadow); }
.mx-join-cap { font-weight: 800; font-size: 15.5px; }
.mx-join-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
#rondoCodeInput, #homeCodeInput { width: 100%; min-width: 0; height: 52px; padding: 0 10px; border-radius: var(--r); border: 3px solid var(--edge); background: #08040f; color: var(--led); font-size: 24px; font-weight: 900; letter-spacing: 8px; text-align: center; text-transform: uppercase; }
#rondoCodeInput::placeholder, #homeCodeInput::placeholder { color: #4a3866; letter-spacing: 8px; direction: ltr; }
#rondoCodeInput:focus, #homeCodeInput:focus { outline: none; border-color: var(--led); }
.mx-join-row .btn { width: auto; }
.mx-join-row .btn-face { min-height: 52px; padding: 0 16px; }
.pm-modes { display: grid; gap: 10px; }
.pm-mode, .pm-preset {
  position: relative; text-align: start; color: var(--chalk); background: var(--panel);
  border: 2px solid var(--edge); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s, box-shadow .08s, border-color .15s, background .15s;
}
.pm-mode { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; }
.pm-mode:hover, .pm-preset:hover { border-color: color-mix(in srgb, var(--led) 60%, var(--edge)); }
.pm-mode:active, .pm-preset:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.pm-mode[aria-checked="true"], .pm-preset[aria-checked="true"] { border-color: var(--led); background: color-mix(in srgb, var(--led) 10%, var(--panel)); box-shadow: 0 0 0 3px rgba(255, 182, 39, .22), 3px 3px 0 var(--ink); }
.pm-mode[aria-checked="true"]::after, .pm-preset[aria-checked="true"]::after {
  content: ''; position: absolute; top: 8px; left: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--led); border: 2px solid var(--ink); box-shadow: 0 0 8px var(--led-glow);
}
.pm-art { width: 56px; height: 56px; display: grid; place-items: center; padding: 6px; background: #06030b; border: 2px solid #30194c; border-radius: 10px; }
.pm-art .pix, .pm-art img { width: 100%; height: 100%; image-rendering: pixelated; }
.pm-mode-body { display: grid; gap: 3px; min-width: 0; padding-inline-end: 14px; }
.pm-mode-body > b { font-size: 19px; font-weight: 900; }
.pm-mode[aria-checked="true"] .pm-mode-body > b, .pm-preset[aria-checked="true"] > b { color: var(--led-hot); }
.pm-tag { width: fit-content; font-size: 12.5px; font-weight: 800; color: var(--ink); background: var(--chalk-dim); padding: 0 8px; border-radius: 99px; white-space: nowrap; }
.pm-what { font-size: 14px; line-height: 1.45; color: var(--chalk-dim); }
.pm-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-preset { display: grid; align-content: start; gap: 3px; min-height: 72px; min-width: 0; padding: 10px 12px; border-radius: 10px; }
.pm-preset > b { font-size: 16px; font-weight: 900; padding-inline-end: 14px; }
.pm-preset > small { font-size: 12.5px; line-height: 1.35; color: var(--chalk-dim); }
#btnRondoCreate { margin-top: 2px; }

/* the game card: what we are playing, in plain words (everyone sees it) */
.pm-card {
  margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 3px solid #3d2461; box-shadow: inset 0 0 0 2px var(--ink), var(--shadow);
  background: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1.4px) 0 0 / 5px 5px, #0c0514;
}
.pm-card-head { display: flex; align-items: center; gap: 10px; }
.pm-card-head .pm-art { width: 44px; height: 44px; padding: 4px; }
.pm-card-name { display: grid; gap: 3px; }
.pm-card-name b { font-size: 18px; font-weight: 900; }
.pm-card-name .pm-tag { background: var(--led); }
.pm-rules { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 8px; }
.pm-rules li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.5; color: var(--chalk-dim); }
.pm-rules li b { color: var(--chalk); }
.pm-ric { text-align: center; font-size: 15px; line-height: 1.5; }
.pm-tiers { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pm-tier { font-size: 12.5px; padding: 0 7px; border-radius: 99px; border: 1.5px solid var(--c); color: var(--c); white-space: nowrap; line-height: 1.6; }
.pm-tier b { color: var(--chalk); }
.pm-foot { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-top: 8px; border-top: 2px dashed #30194c; }
.pm-foot span { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 1px 8px; border: 1.5px solid #3d2461; border-radius: 99px; }
.pm-card-sheet { margin: 0; }

/* ═════════ PARTY: the lobby ═════════ */
.rl-share { padding: 10px 12px 12px; margin-bottom: 14px; background: var(--panel); border: 2px solid var(--edge); border-radius: 12px; box-shadow: var(--shadow); }
.rl-share .rl-code-cap { margin-top: 0; font-weight: 700; }
.rl-share .rl-code { margin: 0 0 10px; }
.rl-share .g-actions { margin-bottom: 0; }
.rl-share .g-actions .btn-face { font-size: 16px; padding: 0 8px; white-space: nowrap; }
.pm-player .rk { width: 30px; height: 30px; line-height: 26px; border-radius: 50%; background: var(--panel-2); border: 2px solid var(--edge); color: var(--led); font-size: 15px; }
.pm-player .nm small { color: var(--muted); font-weight: 600; }
.pm-player .gr:not(:empty) { font-size: 12px; font-weight: 800; color: var(--ink); background: var(--led); padding: 1px 8px; border-radius: 99px; }
.pm-empty { background: transparent; border: 2px dashed var(--edge); }
.pm-empty .nm { color: var(--muted); font-weight: 600; animation: pmWait 1.6s ease-in-out infinite; }
@keyframes pmWait { 50% { opacity: .45; } }
#rlWait { text-align: center; }
/* the host's controls */
.rs-panel { margin: 12px 0; padding: 12px; background: var(--panel); border: 2px solid var(--edge); border-radius: 12px; }
.rs-panel .mx-sub { margin-top: 0; }
.rs-panel .pm-presets { margin: 10px 0 0; }
.rs-panel .pm-preset { background: #150828; }
.rs-panel .pm-preset[aria-checked="true"] { background: color-mix(in srgb, var(--led) 10%, #150828); }
.rs-adv { margin-top: 12px; border-top: 2px solid #30194c; padding-top: 4px; }
.rs-adv > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px;
  min-height: 48px; padding: 6px 2px; border-radius: 8px;
}
.rs-adv > summary::-webkit-details-marker { display: none; }
.rs-adv > summary b { font-size: 16px; font-weight: 900; }
.rs-adv > summary small { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.rs-adv > summary::after { content: '▾'; grid-column: 2; grid-row: 1 / span 2; font-size: 20px; color: var(--led); transition: transform .2s; }
.rs-adv[open] > summary::after { transform: rotate(180deg); }
.rs-knob { padding: 10px 0; border-bottom: 1px solid rgba(77, 41, 123, .55); }
.rs-knob-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rs-label { display: block; font-weight: 800; font-size: 15px; min-width: 0; }
.rs-knob > .rs-label { margin-bottom: 6px; }
.rs-step { flex: 0 0 auto; }
.rs-step button:disabled { opacity: .35; cursor: default; }
.rs-val { min-width: 58px; text-align: center; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rs-val small { font-size: 12px; color: var(--muted); font-weight: 700; margin-inline-start: 2px; }
.rs-say { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--chalk-dim); }
.rs-knob.is-off .rs-label, .rs-knob.is-off .rs-val { opacity: .45; }
.rs-panel .rs-bool { margin: 10px 0 0; background: #150828; }
.rs-panel .unl-topics { margin: 0; }
#rsOver { margin-top: 14px; }

/* ═════════ PARTY: in the game ═════════ */
.pm-hud {
  display: grid; grid-template-columns: 82px minmax(0, 1fr) 82px; gap: 8px; align-items: center; margin: 2px 0 8px; padding: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1.4px) 0 0 / 5px 5px, #0c0514;
  border: 3px solid #3d2461; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--ink), var(--shadow);
  transition: border-color .2s;
}
.pm-hud-box { min-width: 0; text-align: center; background: #06030b; border: 2px solid #30194c; border-radius: 8px; padding: 3px 3px 2px; }
.pm-hud .hud-cap { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-hud-val { display: block; font-size: 24px; line-height: 1.2; white-space: nowrap; }
.pm-hud-val .pix-i { display: inline-block; width: 18px; height: 16px; vertical-align: -1px; margin-inline-end: 4px; }
.pm-hud-val.is-low { color: var(--miss); text-shadow: 0 0 10px rgba(255, 77, 94, .7); animation: blink .5s steps(2) infinite; }
.pm-hud-mid { display: grid; justify-items: center; gap: 1px; min-width: 0; text-align: center; }
.pm-hud-mid > * { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-hud-mode { font-family: var(--cond); font-size: 15px; letter-spacing: 1px; color: var(--muted); }
.pm-hud-turn { font-size: 17px; font-weight: 900; color: var(--chalk); }
.pm-hud-next { font-size: 12.5px; color: var(--muted); min-height: 1.2em; }
.pm-hud.is-me { border-color: var(--led); }
.pm-hud.is-me .pm-hud-turn { color: var(--led-hot); }
.rt-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--chalk-dim); }
body[data-party="hotball"] .so-board { display: grid; }
.hb-ball { font-style: normal; margin-inline-end: 4px; }
.so-lives { white-space: nowrap; font-size: 13px; }
.pm-why { margin: -4px 0 12px; color: var(--chalk-dim); font-weight: 700; }
.rondo-tools { margin-top: 12px; }
/* the keyboard is up (short viewport): the strip shrinks to one line of facts */
@media (max-height: 620px) {
  .pm-hud { margin-bottom: 4px; padding: 4px; grid-template-columns: 70px minmax(0, 1fr) 70px; }
  .pm-hud .hud-cap, .pm-hud-mode, .pm-hud-next { display: none; }
  .pm-hud-val { font-size: 20px; }
}
@media (max-width: 370px) {
  .pm-hud { grid-template-columns: 72px minmax(0, 1fr) 72px; gap: 6px; }
  .pm-presets { gap: 6px; }
  .pm-preset { padding: 9px 10px; }
  .mx-steps small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-empty .nm, .pm-hud-val.is-low, .mode-card:hover .mc-go svg { animation: none; }
}
/* game over: the result first — the last question, its answers and the play-by-play step aside */
#scrRondo[data-state="over"] #rondoQ,
#scrRondo[data-state="over"] #rondoSaid,
#scrRondo[data-state="over"] #rondoFeed,
#scrRondo[data-state="over"] .rondo-turn { display: none; }

/* ── the party's big moments (owner, 2026-11-14): a new question with its 3 s breath, a score on every answer ── */
.pm-pop { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; pointer-events: none; visibility: hidden; padding: 0 16px; }
.pm-pop.go { visibility: visible; }
.pm-pop-card { text-align: center; }
/* a score: the points burst out in the tier's colour and float away */
.pm-pop.is-score .pm-pop-card { transform: translateY(-12vh); }
.pm-pop.is-score.go .pm-pop-card { animation: pmScore var(--ms, 1500ms) cubic-bezier(.2, 1.4, .4, 1) both; }
.pm-pop.is-score b { direction: ltr; unicode-bidi: isolate; display: block; font-family: var(--cond); font-weight: 800; font-size: clamp(64px, 18vw, 120px); line-height: .9; color: var(--pc); letter-spacing: 1px;
  text-shadow: 4px 4px 0 var(--ink, #08040e), 0 0 26px color-mix(in srgb, var(--pc) 70%, transparent); }
.pm-pop.is-score span { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: var(--pc); color: var(--ink, #08040e); font-weight: 800; font-size: 18px; box-shadow: 3px 3px 0 var(--ink, #08040e); }
.pm-pop.is-score small { display: block; margin-bottom: 2px; font-weight: 700; font-size: 18px; color: #f4efe1; text-shadow: 2px 2px 0 var(--ink, #08040e); }
@keyframes pmScore {
  0% { opacity: 0; transform: translateY(-8vh) scale(.35); }
  18% { opacity: 1; transform: translateY(-12vh) scale(1.18); }
  30% { transform: translateY(-12vh) scale(1); }
  75% { opacity: 1; transform: translateY(-14vh) scale(1); }
  100% { opacity: 0; transform: translateY(-20vh) scale(.92); }
}
/* a new question: a card drops in, its bar runs out with the breath */
.pm-pop.is-q { background: rgba(8, 4, 14, .55); }
.pm-pop.is-q.go { animation: pmDim var(--ms, 3000ms) ease both; }
.pm-pop.is-q .pm-pop-card { width: min(92vw, 460px); padding: 18px 18px 14px; border: 3px solid var(--pc); border-radius: 14px; background: #160b2a; box-shadow: 6px 6px 0 var(--ink, #08040e), 0 0 40px color-mix(in srgb, var(--pc) 40%, transparent); }
.pm-pop.is-q.go .pm-pop-card { animation: pmDrop .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.pm-pop.is-q b { display: block; font-family: var(--cond); font-weight: 800; font-size: clamp(34px, 9vw, 48px); color: var(--pc); line-height: 1; }
.pm-pop.is-q span { display: block; margin-top: 10px; font-weight: 700; font-size: clamp(18px, 4.6vw, 22px); color: #f4efe1; line-height: 1.3; }
.pm-pop-bar { display: block; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--pc); transform-origin: right; }
.pm-pop.is-q.go .pm-pop-bar { animation: pmBar var(--ms, 3000ms) linear both; }
@keyframes pmDrop { from { opacity: 0; transform: translateY(-40px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes pmDim { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pmBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .pm-pop.is-q.go, .pm-pop.is-q.go .pm-pop-card { animation: none; }
  .pm-pop.is-q.go .pm-pop-bar { animation: pmBar var(--ms, 3000ms) linear both; }
}

/* the home screen's own way into a friend's room (owner, 2026-11-14) */
.home-join { margin-top: 12px; }
#homeCodeInput.shake { animation: shake .4s; border-color: var(--miss); }
