/* פננקה (Panenka) — the football rarity daily. Its own look: a night match under floodlights,
   an old LED stadium scoreboard, a stand full of pixel fans. Nothing here is VC's.
   Language: hard ink outlines + offset shadows (no blur shadows), LED amber for
   anything the scoreboard "says", a cream matchday ticket for the question. */

:root {
  --sky-0: #0b0515;
  --sky-1: #1a0a31;
  --sky-2: #2a114c;
  --ink: #08040e;
  --chalk: #f4efe1;
  --chalk-dim: #c2bdae;
  --muted: #9a87b6;
  --pitch-a: #0f5a36;
  --pitch-b: #0c4c2e;
  --line: rgba(244, 239, 225, .6);
  --led: #ffb627;
  --led-hot: #ffd23f;
  --led-glow: rgba(255, 182, 39, .55);
  --panel: #1d0c36;
  --panel-2: #2e1354;
  --edge: #4d297b;
  --board: #0c0514;
  --ticket: #f6f0df;
  --ticket-ink: #1d102d;
  --ticket-dim: #5f4b76;
  --t0: #cfd6e4;
  --t1: #43a8ff;
  --t2: #2fe07c;
  --t3: #b27dff;
  --t4: #ffd23f;
  --miss: #ff4d5e;
  --coral: #ff4d5e;
  --coral-soft: #ff97a3;
  --focus: #fff6d6;
  --cta: #fbf4e2;
  --clock: #443957;
  --wa: #25d366;
  --r-sm: 6px;
  --r: 10px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --display: 'Rubik', system-ui, sans-serif;
  --pixel: 'Rubik Pixels', 'Rubik', monospace;
  --cond: 'Karantina', 'Rubik', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; } /* a stamp animation must never widen a phone layout */
body {
  font-family: var(--display);
  color: var(--chalk);
  background: var(--sky-0);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.screen:focus, .screen:focus-visible { outline: none; }
.pix { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }

/* ═════════ the stadium backdrop ═════════ */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(47, 224, 124, .14), transparent 60%),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 55%, var(--sky-2) 100%);
}
.sky > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.flood {
  position: absolute; top: -4vh; width: 60vw; height: 115vh; opacity: .13;
  background: linear-gradient(180deg, rgba(255, 246, 214, .9), rgba(255, 246, 214, .25) 55%, transparent 85%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0; mix-blend-mode: screen;
  animation: sway 7s ease-in-out infinite alternate;
}
.flood-l { left: -30vw; transform: rotate(-24deg); }
.flood-r { right: -30vw; transform: rotate(24deg); animation-delay: -3.5s; }
@keyframes sway { from { opacity: .05; } to { opacity: .09; } }
.stadium { display: none; }

@media (min-width: 900px) {
  .stadium { display: block; position: absolute; inset: 0; }
  .tower { position: absolute; bottom: calc(7vh + 30vh - 2vh); height: 64vh; width: auto; aspect-ratio: 140 / 640; }
  .tower-l { left: 3vw; }
  .tower-r { right: 3vw; transform: scaleX(-1); }
  .tower .lamps { fill: var(--lamp, #fff6d6); transition: fill .3s; filter: drop-shadow(0 0 6px #fff6d6) drop-shadow(0 0 18px rgba(255, 220, 140, .8)); }
  .flood { top: calc(100vh - 7vh - 30vh + 2vh - 64vh + 1vh); height: 110vh; width: 70vw; opacity: .16; }
  @keyframes sway { from { opacity: .12; } to { opacity: .18; } }
  .flood-l { left: calc(3vw + 5vh - 35vw); transform: rotate(-38deg); }
  .flood-r { right: calc(3vw + 5vh - 35vw); transform: rotate(38deg); }
  .stands {
    position: absolute; left: 0; right: 0; bottom: 7vh; height: 30vh;
    background:
      linear-gradient(180deg, #331852 0 6px, #170928 6px 12px, transparent 12px),
      linear-gradient(180deg, #261040, #1d0a31);
    border-top: 3px solid #3d2461;
  }
  .stands canvas { position: absolute; inset: 14px 0 0; width: 100%; height: calc(100% - 14px); image-rendering: pixelated; opacity: .85; }
  .stadium .ribbon-bg { position: absolute; left: 0; right: 0; bottom: calc(7vh - 30px); height: 30px; border-block: 3px solid var(--ink); }
  .turf {
    position: absolute; left: 0; right: 0; bottom: 0; height: calc(7vh - 30px);
    background: repeating-linear-gradient(90deg, var(--pitch-a) 0 80px, var(--pitch-b) 80px 160px);
    box-shadow: inset 0 10px 18px rgba(0, 0, 0, .45);
  }
}

/* LED perimeter board: the scrolling advertising ribbon that rings every ground */
.ribbon {
  position: relative; overflow: hidden; background: #0a050f;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1.4px); background-size: 4px 4px;
}
.ribbon-track {
  display: flex; width: max-content; height: 100%; align-items: center;
  font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .5px; white-space: nowrap;
  color: var(--rb, var(--led)); text-shadow: 0 0 8px var(--rb-glow, var(--led-glow));
  animation: ribbon 26s linear infinite;
}
.ribbon-track span { padding-inline: 18px; }
.ribbon-track span:nth-child(3n+2) { color: var(--rb2, var(--chalk)); text-shadow: none; }
@keyframes ribbon { to { transform: translateX(50%); } }

/* ═════════ app column ═════════ */
.app {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px; min-height: 100vh; min-height: 100dvh;
  margin: 0 auto; padding: 0 16px calc(16px + var(--safe-b));
  display: flex; flex-direction: column;
}
@media (min-width: 900px) {
  .app { max-width: 580px; padding: 14px 26px 18px; }
  .app::before {
    content: ''; position: fixed; top: 0; bottom: 0; left: 50%; width: 580px; transform: translateX(-50%); z-index: -1;
    background: linear-gradient(180deg, rgba(11, 4, 19, .97), rgba(16, 6, 27, .96));
    border-inline: 3px solid #30194c; box-shadow: 0 0 0 6px rgba(8, 4, 14, .55), 0 0 60px rgba(0, 0, 0, .6);
  }
}

.topbar {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px;
  padding: 12px 0 8px;
}
.topbar-mid { text-align: center; line-height: 1.05; min-width: 0; }
.brand-mini { font-weight: 900; font-size: 21px; letter-spacing: .2px; opacity: 0; transition: opacity .3s; text-shadow: 2px 2px 0 var(--miss); }
body[data-screen]:not([data-screen="home"]) .brand-mini { opacity: 1; }
.daytag { font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: 1.5px; color: var(--led); opacity: .85; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r-sm);
  box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s, border-color .15s;
}
.icon-btn:hover { border-color: var(--led); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--chalk); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#btnSound .snd-off { display: none; }
/* the way home from inside a game (player feedback, 2026-11-15): only on the question and reveal screens */
.topbar-end { display: flex; gap: 8px; justify-content: flex-end; }
#btnQuit { display: none; }
body[data-screen="play"] #btnQuit, body[data-screen="reveal"] #btnQuit { display: grid; }
.quit-sheet p { margin: 0 0 16px; line-height: 1.5; color: var(--chalk-dim); }
.quit-sheet .quit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* an open sheet owns the scroll (player feedback, 2026-11-15: scrolling the menu scrolled the page behind it) */
body.sheet-open { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }
.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-backdrop { touch-action: none; }
#btnSound[aria-pressed="false"] .snd-on { display: none; }
#btnSound[aria-pressed="false"] .snd-off { display: block; }

main { flex: 1; position: relative; }
.screen { display: none; animation: enter .38s cubic-bezier(.2, .9, .3, 1.2) both; }
.screen.is-on { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ═════════ LED / scoreboard primitives ═════════ */
.led {
  font-family: var(--display); font-weight: 900; color: var(--led);
  text-shadow: 0 0 6px var(--led-glow), 0 0 18px rgba(255, 182, 39, .25);
  font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.scoreboard, .final-board {
  position: relative; text-align: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .055) 1px, transparent 1.4px) 0 0 / 6px 6px,
    linear-gradient(180deg, #12091f, #090510);
  border: 3px solid #3d2461; border-radius: 12px;
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 40px rgba(0, 0, 0, .8), var(--shadow-lg);
  padding: 26px 18px 20px;
}
.sb-bolts i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #a38bc4, #3f285b);
}
.sb-bolts i:nth-child(1) { top: 9px; right: 9px; } .sb-bolts i:nth-child(2) { top: 9px; left: 9px; }
.sb-bolts i:nth-child(3) { bottom: 9px; right: 9px; } .sb-bolts i:nth-child(4) { bottom: 9px; left: 9px; }
/* the bulb strip along the top of the board: a slow chase */
.sb-lamps { display: flex; justify-content: center; gap: 10px; margin: -10px 0 10px; }
.sb-lamps i { width: 9px; height: 9px; border-radius: 50%; background: #3a2a0a; box-shadow: inset 0 0 0 2px #1a1203; animation: chase 2.1s steps(1) infinite; }
.sb-lamps i:nth-child(2) { animation-delay: .3s; } .sb-lamps i:nth-child(3) { animation-delay: .6s; } .sb-lamps i:nth-child(4) { animation-delay: .9s; }
.sb-lamps i:nth-child(5) { animation-delay: 1.2s; } .sb-lamps i:nth-child(6) { animation-delay: 1.5s; } .sb-lamps i:nth-child(7) { animation-delay: 1.8s; }
@keyframes chase { 0%, 14% { background: var(--led-hot); box-shadow: 0 0 10px var(--led), 0 0 2px #fff; } 15%, 100% { background: #3a2a0a; } }

/* ═════════ HOME ═════════ */
.hero { position: relative; margin-top: 4px; }
.logo { margin: 0; line-height: .95; }
.logo-txt {
  display: inline-block; font-family: var(--display); font-weight: 900;
  font-size: clamp(66px, 20vw, 100px); letter-spacing: -1.5px;
  color: var(--chalk);
  text-shadow: 3px 3px 0 var(--miss), 6px 6px 0 var(--ink), 0 0 34px rgba(255, 182, 39, .28);
  animation: logoIn .9s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes logoIn { from { transform: scale(.6) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.sb-sub {
  display: flex; align-items: center; gap: 10px; justify-content: center; margin: 10px 0 12px;
  font-family: var(--cond); font-weight: 700; font-size: 27px; letter-spacing: 2.5px; color: var(--led);
  text-shadow: 0 0 10px var(--led-glow);
}
.sb-sub::before, .sb-sub::after { content: ''; flex: 0 1 46px; height: 3px; background: var(--led); box-shadow: 0 6px 0 var(--led); opacity: .8; transform: translateY(-3px); }
.ticker {
  height: 30px; margin: 0 -4px 12px; overflow: hidden; border-radius: 4px;
  background: #050309; border: 2px solid #30194c;
  background-image: radial-gradient(circle, rgba(255, 182, 39, .09) 1px, transparent 1.3px); background-size: 3px 3px;
}
.ticker-track {
  display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden;
  font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--led-hot);
  text-shadow: 0 0 6px var(--led-glow);
}
/* one message at a time (no marquee): it drops in like an LED board flipping, and out before the next */
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; animation: tkIn .32s ease-out both; }
.ticker-track span::before, .ticker-track span::after { content: '◆'; font-size: 9px; color: var(--miss); text-shadow: none; }
.ticker-track span.is-out { animation: tkOut .26s ease-in both; }
@keyframes tkIn { from { transform: translateY(70%); opacity: 0; } }
@keyframes tkOut { to { transform: translateY(-70%); opacity: 0; } }
.sb-rules { margin: 0; color: var(--chalk-dim); font-size: 15.5px; line-height: 1.55; }
/* the facts line stays ONE row on a phone (owner, 2026-11-15: on an iPhone "לשאלה" wrapped) — it shrinks with the width instead */
.sb-rules .r1 { white-space: nowrap; font-size: min(15.5px, 3.6vw); }
.sb-rules b { color: var(--chalk); }

.stand {
  position: relative; height: 112px; margin: -4px 10px 0; overflow: hidden;
  background: linear-gradient(180deg, #30194a, #1e0f30);
  border: 3px solid var(--ink); border-top: 0;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
}
.stand canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; touch-action: manipulation; cursor: pointer; } /* tap the fans (owner, 2026-11-14) */
.ribbon-home { height: 26px; margin: 0 -16px; border-block: 3px solid var(--ink); }
.ribbon-home .ribbon-track { font-size: 13.5px; }
.pitch-strip {
  position: relative; height: 70px; margin: 0 -16px;
  background: repeating-linear-gradient(90deg, var(--pitch-a) 0 44px, var(--pitch-b) 44px 88px);
  border-top: 3px solid var(--line);
  box-shadow: inset 0 14px 22px rgba(0, 0, 0, .35);
}
.pitch-strip::after { content: ''; position: absolute; left: 50%; top: -3px; width: 92px; height: 46px; border: 3px solid var(--line); border-top: 0; border-radius: 0 0 92px 92px; transform: translateX(-50%); }
.mascot-home {
  position: absolute; z-index: 1; bottom: 8px; left: 50%; width: 44px; height: 52px; margin-left: -22px;
  animation: hop 1.5s cubic-bezier(.3, 0, .3, 1) infinite; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .35));
}
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1.06, .94); } 12% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) rotate(-6deg); } 88% { transform: translateY(0); } }

.home-actions { padding-top: 18px; display: grid; gap: 14px; }
.today-line { text-align: center; color: var(--chalk-dim); font-size: 15px; min-height: 21px; }
.today-line b { color: var(--led); font-weight: 800; }
.day-badge { display: flex; gap: 10px; justify-content: center; align-items: center; font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: 1.5px; color: var(--muted); }
.streak-chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 14px; letter-spacing: 0; color: var(--ink); background: var(--led); padding: 2px 10px 2px 8px; border-radius: 99px; font-weight: 800; border: 2px solid var(--ink); }
.streak-chip .pix, .fb-streak .pix { width: 12px; height: 15px; display: inline-block; vertical-align: -2px; }

/* ═════════ buttons ═════════ */
.btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; }
.btn-face {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 20px; border-radius: var(--r);
  font-weight: 900; font-size: 22px; letter-spacing: .2px;
  background: var(--cta); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: var(--shadow-lg);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover .btn-face { filter: brightness(1.07); }
.btn:active .btn-face { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible { outline: none; }
.btn:focus-visible .btn-face { outline: 3px solid var(--focus); outline-offset: 5px; }
.btn .arrow { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-kick .btn-face {
  min-height: 72px; font-size: 27px;
  background: linear-gradient(180deg, #fff 0 9%, var(--cta) 9% 62%, #efe3c4);
  box-shadow: 4px 4px 0 var(--coral), 8px 8px 0 var(--ink);
  animation: breathe 2.4s ease-in-out infinite;
}
.btn-kick:hover .arrow { animation: nudge .6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(-5px); } }
@keyframes breathe { 0%, 100% { box-shadow: 4px 4px 0 var(--coral), 8px 8px 0 var(--ink), 0 0 0 0 rgba(255, 77, 94, 0); } 50% { box-shadow: 4px 4px 0 var(--coral), 8px 8px 0 var(--ink), 0 0 0 10px rgba(255, 77, 94, .16); } }
.btn-kick:active .btn-face { transform: translate(6px, 6px); box-shadow: 1px 1px 0 var(--coral), 2px 2px 0 var(--ink); animation: none; }
.btn-kick[disabled] .btn-face { background: var(--panel-2); color: var(--chalk-dim); animation: none; }
.btn-ghost .btn-face { background: var(--panel); color: var(--chalk); border-color: var(--edge); box-shadow: 4px 4px 0 var(--ink); font-size: 17px; min-height: 52px; }
.btn-ghost:hover .btn-face { border-color: var(--led); }
.btn-wa .btn-face { background: var(--wa); color: #04260f; font-size: 20px; }
.wa-ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.wa-ic path + path { fill: currentColor; stroke: none; }
.btn-next .btn-face { background: var(--chalk); }
.btn-small .btn-face { min-height: 48px; font-size: 17px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; padding: 10px; justify-self: center; display: block; margin: 0 auto; }

.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  display: grid; gap: 8px; justify-items: center; align-content: start; padding: 14px 6px 12px;
  background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: var(--shadow);
  font-size: 14.5px; font-weight: 800; line-height: 1.2; transition: transform .12s, border-color .15s;
}
.tile:hover { border-color: var(--led); transform: translateY(-2px); }
.tile:hover .tile-ic { transform: rotate(-6deg) scale(1.08); }
.tile:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.tile-ic {
  width: 46px; height: 46px; display: grid; place-items: center; padding: 8px;
  background: #0e0618; border: 2px solid #391d5c; border-radius: 8px; transition: transform .15s;
}
.invite-banner { padding: 14px; border: 2px dashed var(--coral); border-radius: var(--r); background: rgba(255, 77, 94, .09); text-align: center; line-height: 1.5; }
.invite-banner b { color: var(--coral-soft); }

/* ═════════ COUNTDOWN ═════════ */
.countdown { min-height: 62vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; }
.cd-card {
  width: 170px; height: 196px; display: grid; place-items: center; position: relative;
  background: linear-gradient(180deg, #160b25 50%, #0e0618 50%); border: 3px solid #3d2461; border-radius: 14px;
  box-shadow: inset 0 0 0 3px var(--ink), var(--shadow-lg);
}
.cd-card::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: var(--ink); }
.cd-num { font-size: 150px; line-height: 1; color: var(--led); text-shadow: 0 0 30px var(--led-glow); animation: cd .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.cd-cap { font-family: var(--cond); font-weight: 700; font-size: 30px; letter-spacing: 2.5px; color: var(--chalk-dim); }
.cd-mascot { width: 60px; height: 75px; animation: hop 0.72s cubic-bezier(.3, 0, .3, 1) infinite; filter: drop-shadow(4px 4px 0 var(--ink)); }
@keyframes cd { from { transform: perspective(400px) rotateX(-90deg); opacity: 0; } 50% { opacity: 1; } to { transform: none; opacity: 1; } }

/* ═════════ PLAY ═════════ */
.hud {
  display: grid; grid-template-columns: 78px 1fr 78px; gap: 8px; align-items: center; margin-top: 2px; 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);
}
.hud-box { text-align: center; background: #06030b; border: 2px solid #30194c; border-radius: 8px; padding: 4px 4px 3px; }
.hud-cap { font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: 1.5px; color: var(--muted); text-align: center; line-height: 1.1; }
.hud-val { font-size: 28px; line-height: 1.1; }
.hud-mid { display: grid; gap: 5px; justify-items: center; }
.pips { display: flex; gap: 5px; }
.pip { width: 20px; height: 20px; border: 2px solid #3d2461; background: #1d0a31; border-radius: 4px; transition: background .3s, transform .3s; }
.pip.is-cur { border-color: var(--led); background: rgba(255, 182, 39, .18); animation: pip 1s ease-in-out infinite; }
@keyframes pip { 50% { transform: translateY(-3px); box-shadow: 0 0 8px var(--led-glow); } }
.pip[data-r="0"] { background: var(--t0); } .pip[data-r="1"] { background: var(--t1); } .pip[data-r="2"] { background: var(--t2); }
.pip[data-r="3"] { background: var(--t3); } .pip[data-r="4"] { background: var(--t4); box-shadow: 0 0 8px rgba(255, 210, 63, .7); }
.pip[data-r="miss"] { background: var(--miss); } .pip[data-r="timeout"] { background: var(--clock); }
.pip[data-r] { border-color: var(--ink); }
#hudTime.is-low { color: var(--miss); text-shadow: 0 0 10px rgba(255, 77, 94, .7); }
#hudTime.tick { animation: tick .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes tick { from { transform: scale(1.45); } }
.hud-clock:has(#hudTime.is-low) { border-color: var(--miss); }

/* the clock: a 25-segment LED bar */
.timer {
  position: relative; height: 14px; margin: 10px 2px 14px; background: #0b0413;
  border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 2px #30194c;
}
.timer-fill { height: 100%; width: 100%; background: var(--t2); transform-origin: right center; box-shadow: 0 0 10px rgba(47, 224, 124, .6); transition: background .3s; }
.timer::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(4% - 2px), #0b0413 calc(4% - 2px) 4%); }
.timer.is-mid .timer-fill { background: var(--led); box-shadow: 0 0 10px var(--led-glow); }
.timer.is-low .timer-fill { background: var(--miss); box-shadow: 0 0 12px rgba(255, 77, 94, .8); animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }

/* the question: a cream matchday ticket */
.prompt-card {
  position: relative; padding: 16px 20px 16px; margin-bottom: 14px;
  background: var(--ticket); color: var(--ticket-ink);
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; /* the question can't be copied */
}
.prompt-card::before, .prompt-card::after {
  content: ''; position: absolute; top: 50px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky-0); border: 3px solid var(--ink);
}
.prompt-card::before { right: -11px; clip-path: inset(-4px 50% -4px -4px); }
.prompt-card::after { left: -11px; clip-path: inset(-4px -4px -4px 50%); }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 2px dashed rgba(29, 16, 45, .28); }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 0;
  font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: 1.2px; line-height: 1.25;
  border-radius: 4px; background: var(--chalk); color: var(--ink); border: 2px solid var(--ink); transform: rotate(-1.5deg);
}
.cat-chip[data-cat="ligat-haal"] { background: #ffd23f; }
.cat-chip[data-cat="pl"] { background: #c9a0ff; }
.cat-chip[data-cat="europe"] { background: #6ec3ff; }
.cat-chip[data-cat="national"] { background: #ff8a8a; }
.cat-chip[data-cat="history"] { background: #e7d3a6; }
.cat-no { font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: 1.5px; color: var(--ticket-dim); }
.prompt-text { margin: 12px 0 4px; font-weight: 900; font-size: clamp(25px, 7vw, 32px); line-height: 1.2; text-wrap: balance; color: var(--ticket-ink); }
.prompt-text .w { display: inline-block; opacity: 0; transform: translateY(8px); animation: word .35s cubic-bezier(.2, 1.2, .4, 1) forwards; }
.prompt-text mark, .hx-q mark { color: inherit; background: linear-gradient(180deg, transparent 52%, #ffd23f 52% 90%, transparent 90%); padding-inline: 2px; }
@keyframes word { to { opacity: 1; transform: none; } }
.prompt-sub { color: var(--ticket-dim); font-size: 16px; font-weight: 600; }
.answers-count { margin-top: 8px; font-size: 14px; color: var(--ticket-dim); }
.answers-count b { color: var(--ticket-ink); background: #ffd23f; padding: 0 5px; border-radius: 3px; }

.answer-form { position: relative; }
.field { display: flex; gap: 8px; }
.answer-input {
  flex: 1; min-width: 0; height: 62px; padding: 0 16px;
  font-size: 21px; font-weight: 700; color: var(--chalk); caret-color: var(--led);
  background: #08040f; border: 3px solid var(--edge); border-radius: var(--r);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .5);
  transition: border-color .15s, box-shadow .15s;
}
.answer-input::placeholder { color: #8d76ad; font-weight: 500; font-size: 17px; }
/* an EMPTY dir=auto box resolves LTR, so its Hebrew hint sat on the wrong side (owner, 2026-11-14): RTL while the
   hint shows; once a name is typed, dir=auto takes over (English names still run left to right) */
.answer-input:placeholder-shown, input[dir="auto"]:placeholder-shown { direction: rtl; text-align: right; }
.answer-input:focus { outline: none; border-color: var(--led); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .5), 0 0 0 4px rgba(255, 182, 39, .2); }
.answer-input.shake { animation: shake .4s; border-color: var(--miss); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.kick-btn {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 62px; padding: 0 16px; border: 3px solid var(--ink); border-radius: var(--r);
  background: var(--t2); color: var(--ink); font-weight: 900; font-size: 19px; box-shadow: var(--shadow);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.kick-btn:hover { filter: brightness(1.08); }
.kick-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.kick-btn[disabled] { opacity: .5; }
.kick-ic { width: 22px; height: 22px; display: block; }
.preview {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; z-index: 2;
  padding: 3px 10px 1px; border-radius: 4px; background: var(--ink); border: 2px solid var(--led);
  font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: 1.5px; color: var(--led);
}
.preview i { display: block; width: 60px; height: 6px; background: var(--led); border-radius: 3px; transform-origin: right center; }
.miss-line { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.miss-line s {
  font-size: 14.5px; font-weight: 700; color: var(--chalk-dim); padding: 3px 9px; border-radius: 99px;
  background: rgba(255, 77, 94, .1); border: 1.5px solid rgba(255, 77, 94, .55);
  text-decoration-color: var(--miss); text-decoration-thickness: 2px; animation: enter .3s both;
}
.answer-input:disabled { opacity: .6; }
.field-msg { min-height: 0; margin-top: 10px; font-size: 15.5px; color: var(--miss); font-weight: 700; }
.field-msg:empty { margin: 0; }
.field-msg.ok { color: var(--chalk-dim); }
.field-msg.plate {
  display: inline-block; padding: 4px 14px 2px; border-radius: 5px; transform: rotate(-2deg);
  font-family: var(--cond); font-size: 28px; letter-spacing: 1.5px; line-height: 1.15;
  background: var(--miss); color: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow);
  animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) both;
}
.ambig { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ambig button { min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 2px solid var(--led); background: rgba(255, 182, 39, .1); font-weight: 800; }
.ambig button:hover { background: rgba(255, 182, 39, .22); }

.play-stand { margin-top: 22px; }
.play-stand canvas { display: block; width: 100%; height: 96px; image-rendering: pixelated; border-radius: 8px; background: linear-gradient(180deg, #26103e, #1d0a31); border: 2px solid #30194c; }
.play-stand-cap { margin-top: 8px; text-align: center; font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: 1.5px; color: var(--muted); }
.play-stand-cap.is-hot { color: var(--miss); }
@media (max-height: 700px) { .play-stand { display: none; } }

/* the kicked ball is the game's one football (the cabinet's C7, ICONS.ball via data-pix) */
.kick-ball { position: fixed; width: 27px; height: 27px; z-index: 30; pointer-events: none; opacity: 0; }
.kick-ball .pix { display: block; width: 100%; height: 100%; image-rendering: pixelated; }

/* ═════════ REVEAL ═════════ */
.reveal-head { display: flex; align-items: center; gap: 14px; padding: 4px 2px 6px; }
.reveal-mascot { flex: 0 0 auto; width: 72px; height: 86px; filter: drop-shadow(4px 4px 0 var(--ink)); animation: mascotIn .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.reveal-mascot[data-mood="star"], .reveal-mascot[data-mood="excited"] { animation: mascotIn .6s cubic-bezier(.2, 1.6, .4, 1) both, jump .55s .6s ease-in-out 3; }
.reveal-mascot[data-mood="sad"] { animation: mascotIn .6s both, droop 1.8s .6s ease-in-out infinite alternate; }
@keyframes mascotIn { from { transform: translateY(30px) scale(.4); opacity: 0; } }
@keyframes jump { 50% { transform: translateY(-14px) rotate(-5deg); } }
@keyframes droop { to { transform: rotate(4deg) translateY(3px); } }
.reveal-id { min-width: 0; flex: 1; }
.tier-badge {
  display: inline-block; padding: 5px 16px 2px; margin-bottom: 6px; position: relative; overflow: hidden;
  font-family: var(--cond); font-weight: 700; font-size: 36px; letter-spacing: 1.5px; line-height: 1.1;
  color: var(--ink); background: var(--tier, var(--chalk)); border: 3px solid var(--ink);
  border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-2deg);
  animation: stamp .55s cubic-bezier(.2, 1.6, .4, 1) both;
}
.screen[data-tier="4"] .tier-badge::after {
  content: ''; position: absolute; inset: -20% auto -20% -40%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-20deg);
  animation: shine 1.6s .7s ease-in-out infinite;
}
@keyframes shine { 0% { left: -40%; } 60%, 100% { left: 130%; } }
@keyframes stamp { from { transform: scale(1.4) rotate(-8deg); opacity: 0; } to { transform: rotate(-2deg) scale(1); opacity: 1; } }
.reveal-answer { font-size: clamp(25px, 7vw, 32px); font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.reveal-answer small { display: block; font-size: 14.5px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.reveal-answer s { text-decoration-color: var(--miss); text-decoration-thickness: 3px; color: var(--chalk-dim); }
.score-line { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.reveal-points {
  flex: 0 0 auto; min-width: 104px; padding: 4px 12px 2px; text-align: center; border-radius: 8px;
  font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1.15; font-variant-numeric: tabular-nums;
  color: var(--tier, var(--led)); background: #06030b; border: 2px solid #30194c;
  text-shadow: 0 0 14px color-mix(in srgb, var(--tier, #ffb627) 65%, transparent);
}
.reveal-quip { color: var(--chalk-dim); font-size: 16px; line-height: 1.35; }

/* the rarity gauge: five lamps from "everyone" to "only you" — your answer's lamp lights last */
.gauge { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 0 0 14px; padding: 26px 0 0; }
.g-seg { position: relative; display: grid; gap: 4px; text-align: center; }
.g-seg i {
  display: block; height: 16px; border-radius: 3px; border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--c) 18%, #0e0618); transition: background .15s, box-shadow .15s;
}
.g-seg.on i { background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent); }
.g-seg span { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.g-seg.me span { color: var(--chalk); }
.g-seg b { direction: ltr; unicode-bidi: isolate; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: 1px; color: var(--c); white-space: nowrap; opacity: 0; }
.g-seg.me b { opacity: 1; animation: pin .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.g-seg.me b::after { content: '▼'; display: block; font-size: 10px; line-height: .6; }
@keyframes pin { from { transform: translate(-50%, -10px); opacity: 0; } }
.gauge.is-miss .g-seg i { background: #12091d; }
.gauge-miss { grid-column: 1 / -1; text-align: center; font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: 1px; color: var(--miss); margin-top: -2px; }

.crowd-panel {
  position: relative; margin: 0 0 16px; padding: 0 10px 10px; overflow: hidden;
  background: linear-gradient(180deg, #331552, #1c0b2f); border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow);
}
.crowd-head {
  margin: 0 -10px 8px; padding: 5px 10px 3px; text-align: center; background: #06030b; border-bottom: 3px solid var(--ink);
  font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: 2px; color: var(--led); text-shadow: 0 0 8px var(--led-glow);
}
.crowd-panel canvas { display: block; width: 100%; height: 140px; image-rendering: pixelated; }
.crowd-cap { margin-top: 8px; text-align: center; font-size: 15px; color: var(--chalk-dim); line-height: 1.4; }
.crowd-cap b { color: var(--chalk); font-size: 17px; }
.crowd-cap small { display: block; font-size: 12.5px; color: var(--muted); }
.reveal-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.reveal-lists.one { grid-template-columns: 1fr; }
.rl { background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r); padding: 10px 10px 12px; min-width: 0; }
.rl h3 { margin: 0 0 8px; font-family: var(--cond); font-size: 21px; letter-spacing: 1.2px; color: var(--chalk-dim); font-weight: 700; }
.rl-rare h3 { color: var(--t4); }
.rl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rl li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; padding: 4px 7px; border-radius: 4px; overflow: hidden; z-index: 0; background: rgba(255, 255, 255, .03); }
.rl li .bar { position: absolute; inset-block: 0; right: 0; z-index: -1; background: rgba(67, 168, 255, .22); border-radius: 4px; transform-origin: right; animation: grow .7s ease-out both; }
.rl-rare li .bar { background: rgba(255, 210, 63, .2); }
.rl li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl li .pct { color: var(--chalk-dim); font-variant-numeric: tabular-nums; font-size: 13px; flex: 0 0 auto; }
.rl li.is-me { box-shadow: inset 0 0 0 2px var(--led); }
@keyframes grow { from { transform: scaleX(0); } }
.reveal-actions {
  position: sticky; bottom: 0; z-index: 3; display: grid; gap: 0; padding: 14px 0 calc(4px + var(--safe-b)); margin: 0 -16px; padding-inline: 16px;
}
.reveal-actions::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); pointer-events: none; background: linear-gradient(180deg, rgba(11, 5, 21, 0), rgba(11, 5, 21, .94) 30%); }
.reveal-actions > * { position: relative; }
@media (min-width: 900px) { .reveal-actions { margin: 0 -26px; padding-inline: 26px; } .reveal-actions::before { inset: 0; background: linear-gradient(180deg, rgba(12, 5, 20, 0), rgba(12, 5, 20, .97) 30%); } }
.screen[data-outcome="wrong"] .tier-badge, .screen[data-outcome="timeout"] .tier-badge { transform: rotate(2deg); }

/* full-screen flash in the tier colour, timed with the stamp */
.flash { position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: 0; background: radial-gradient(60% 45% at 50% 30%, var(--fc, #fff), transparent 70%); }
.flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }

/* ═════════ RESULTS ═════════ */
.final-board { padding-top: 22px; }
.fb-day { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 2.5px; color: var(--muted); }
.fb-score { font-size: clamp(84px, 26vw, 116px); line-height: 1; margin: 4px 0 4px; }
.fb-title-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.fb-mascot { width: 48px; height: 57px; flex: 0 0 auto; filter: drop-shadow(3px 3px 0 var(--ink)); }
.fb-title {
  font-family: var(--cond); font-weight: 700; font-size: 34px; letter-spacing: 1.5px; line-height: 1.1;
  padding: 4px 14px 0; color: var(--ink); background: var(--chalk); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: var(--shadow); transform: rotate(-2deg); animation: stamp .55s .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
/* the match log: seven LED columns, height = points */
.mlog { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 26px) 0 -20px / 100% calc(100% - 22px) no-repeat; display: flex; justify-content: center; align-items: flex-end; gap: 8px; height: 124px; margin: 18px auto 12px; padding: 0 4px; max-width: 360px; }
.ml-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.ml-bar-wrap { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.ml-pts { font-size: 13px; font-weight: 800; color: var(--tier); font-variant-numeric: tabular-nums; opacity: 0; animation: fadeUp .3s both; animation-delay: inherit; }
.ml-bar {
  align-self: end; width: 100%; height: var(--h); min-height: 6px; border-radius: 4px 4px 2px 2px;
  background: var(--tier); border: 2px solid var(--ink); box-shadow: 0 0 12px color-mix(in srgb, var(--tier) 45%, transparent);
  background-image: repeating-linear-gradient(180deg, transparent 0 5px, rgba(8, 4, 14, .35) 5px 7px);
  transform-origin: bottom; animation: rise .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: inherit;
}
.ml-col.is-zero .ml-bar { height: 6px; background: var(--tier); box-shadow: none; }
.ml-no { width: 100%; text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); border-top: 2px solid #3d2461; padding-top: 2px; }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fb-better { font-size: 17px; color: var(--chalk); line-height: 1.4; }
.fb-better b { color: var(--led); }
.fb-streak { margin-top: 6px; color: var(--chalk-dim); font-size: 15px; }
/* the nickname ask on the results screen (owner, 2026-11-15: most of the leaderboard was "שחקן ללא כינוי") */
.fb-nick { margin: 12px auto 0; max-width: 420px; padding: 12px 14px; display: grid; gap: 8px; text-align: start; border-radius: 12px; background: var(--panel-2); border: 2px solid color-mix(in srgb, var(--led) 55%, transparent); color: var(--chalk); }
.fb-nick b { font-size: 17px; }
.fb-nick small { color: var(--chalk-dim); font-size: 14px; }
.fb-nick form { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.fb-nick input { min-width: 0; width: 100%; box-sizing: border-box; }
.fb-nick .btn { white-space: nowrap; min-width: 0; width: auto; }
.fb-nick .link-btn { padding: 2px; margin: 0; justify-self: start; }
.fb-nick .nick-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; }
.fb-nick .nick-ok .link-btn { display: inline; padding: 0; font-size: 15px; }
/* home: the player has played but still shows under the automatic name */
.home-nick { margin: 10px 0 0; text-align: center; font-size: 15px; color: var(--chalk-dim); }
.home-nick b { color: var(--chalk); }
.home-nick .link-btn { display: inline; padding: 0 4px; margin: 0; font-size: 15px; color: var(--led); }
.best-pull {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 16%, var(--panel)), var(--panel));
  border: 2px solid var(--tier); border-radius: var(--r); box-shadow: var(--shadow);
}
.best-pull .bp-cap { font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: 1.2px; color: var(--tier); }
.best-pull .bp-name { font-weight: 900; font-size: 19px; line-height: 1.2; }
.best-pull .bp-q { font-size: 13.5px; color: var(--muted); }
.best-pull .bp-gem { width: 34px; height: 34px; }
.best-pull .bp-pts { font-weight: 900; font-size: 24px; color: var(--tier); }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.share-row .btn-wa { grid-column: 1 / -1; }
.group-cta { margin-bottom: 18px; }
.group-cta .card { padding: 14px; border: 2px dashed var(--coral); border-radius: 12px; background: rgba(255, 77, 94, .07); display: grid; gap: 10px; }
.group-cta h3 { margin: 0; font-size: 18px; }
.group-cta p { margin: 0; color: var(--chalk-dim); font-size: 14.5px; line-height: 1.5; }
.section-cap { margin: 4px 0 10px; font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: 1.5px; color: var(--muted); }
.breakdown { display: grid; gap: 10px; margin-bottom: 18px; }
.bd {
  display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: start;
  padding: 12px 12px 12px 14px; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r);
}
.bd-bar { align-self: stretch; border-radius: 3px; background: var(--tier, var(--clock)); }
.bd-q { font-size: 15px; font-weight: 800; line-height: 1.35; }
.bd-a { margin-top: 4px; font-size: 14px; color: var(--chalk-dim); }
.bd-a b { color: var(--chalk); }
.bd-a .bd-tier { display: inline-block; padding: 0 6px; border-radius: 3px; background: var(--tier); color: var(--ink); font-weight: 800; font-size: 12.5px; }
.bd-rare { margin-top: 4px; font-size: 13px; color: var(--muted); }
.bd-pts { font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--tier, var(--muted)); min-width: 40px; text-align: left; }
.next-game { text-align: center; padding: 10px 0 18px; }
.ng-cap { font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: 2px; color: var(--muted); }
.ng-clock { font-size: 40px; }

/* ═════════ GROUPS ═════════ */
.panel-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.panel-head h2 { margin: 0; font-size: 27px; font-weight: 900; }
.back-btn { width: 44px; height: 44px; display: grid; place-items: center; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r-sm); box-shadow: 3px 3px 0 var(--ink); }
.back-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--chalk); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.panel-lead { color: var(--chalk-dim); margin: 0 0 14px; line-height: 1.5; }
.group-list { display: grid; gap: 10px; margin-bottom: 16px; }
.group-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: start;
  padding: 14px; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: var(--shadow);
}
.group-item:hover { border-color: var(--led); }
.group-item b { font-size: 18px; }
.group-item small { color: var(--muted); }
.empty { padding: 18px; text-align: center; color: var(--muted); border: 2px dashed var(--edge); border-radius: var(--r); line-height: 1.5; }
.create-group { display: grid; gap: 10px; }
.create-group input, .sheet input:not([type="radio"]) {
  height: 52px; padding: 0 14px; border-radius: var(--r); border: 3px solid var(--edge); background: #08040f; color: var(--chalk); font-size: 17px;
}
.create-group input:focus, .sheet input:focus { outline: none; border-color: var(--led); }
.g-meta { color: var(--muted); margin-bottom: 12px; font-size: 14px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; background: #0e0618; padding: 4px; border-radius: var(--r); border: 2px solid var(--edge); }
.tab { border: 0; background: none; padding: 10px; border-radius: 6px; font-weight: 800; color: var(--muted); }
.tab.is-on { background: var(--cta); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.table { display: grid; gap: 6px; margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--panel); border-radius: 8px; border: 2px solid transparent; }
.row.is-me { border-color: var(--led); }
.row:first-child .rk { color: var(--ink); background: var(--led-hot); border-radius: 50%; }
.row .rk { font-family: var(--display); font-weight: 900; color: var(--led); text-align: center; height: 28px; line-height: 28px; }
.row .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .gr { display: flex; gap: 3px; font-size: 13px; color: var(--muted); }
.row .gr i { width: 11px; height: 11px; border-radius: 2px; border: 1.5px solid var(--ink); }
.row .pt { font-family: var(--display); font-weight: 900; font-size: 18px; min-width: 44px; text-align: left; }
.g-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-actions .btn-face { font-size: 17px; min-height: 54px; padding: 0 12px; }
.g-hint { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; padding: 14px; border: 2px dashed var(--edge); border-radius: var(--r); color: var(--chalk-dim); font-size: 14.5px; line-height: 1.5; }
.g-hint .tile-ic { flex: 0 0 auto; }
.g-hint b { color: var(--chalk); }

/* ═════════ sheet dialog ═════════ */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; justify-items: center; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 2, 10, .72); backdrop-filter: blur(3px); animation: fade .2s both; }
.sheet {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto;
  padding: 22px 18px calc(22px + var(--safe-b)); background: var(--panel);
  border: 3px solid var(--ink); border-radius: 16px 16px 0 0; box-shadow: 0 -6px 0 var(--ink), inset 0 4px 0 #3d2461;
  animation: up .32s cubic-bezier(.2, 1, .3, 1) both;
}
@media (min-width: 700px) { .sheet { border-radius: 16px; box-shadow: var(--shadow-lg), inset 0 4px 0 #3d2461; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet h2 { margin: 0 0 14px; font-size: 25px; font-weight: 900; padding-inline-end: 48px; }
.sheet-x { position: absolute; top: 14px; left: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); border: 2px solid var(--edge); background: var(--panel-2); box-shadow: 3px 3px 0 var(--ink); }
.sheet-x svg { width: 20px; height: 20px; fill: none; stroke: var(--chalk); stroke-width: 2.6; stroke-linecap: round; }
.how-ex { margin-bottom: 16px; }
/* the goal, before any rule: think of the answer nobody else will */
.how-goal { margin: 0 0 16px; padding: 14px 16px 12px; border: 2px solid var(--t4, #ffd23f); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 210, 63, .14), rgba(255, 210, 63, .04)); text-align: center; }
.hg-kicker { display: inline-block; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--ink, #14081f);
  background: var(--t4, #ffd23f); border-radius: 4px; padding: 1px 10px; }
.hg-main { margin: 8px 0 6px; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.3; color: var(--chalk); }
.hg-main b { color: var(--t4, #ffd23f); }
.hg-sub { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--chalk-dim); }
.vc-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hx-ticket { padding: 12px 14px; background: var(--ticket); color: var(--ticket-ink); border: 3px solid var(--ink); border-radius: 10px 10px 0 0; box-shadow: var(--shadow); position: relative; z-index: 1; }
.hx-q { margin-top: 8px; font-weight: 900; font-size: 20px; }
.hx-rows { display: grid; gap: 0; border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px; overflow: hidden; background: #0e0618; box-shadow: var(--shadow); }
.hx-row { display: grid; grid-template-columns: 22px 1fr auto 44px; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid #30194c; }
.hx-a { font-weight: 800; }
.hx-t { font-size: 13px; font-weight: 800; padding: 1px 8px; border-radius: 4px; background: var(--tier); color: var(--ink); }
.hx-row b { text-align: left; font-weight: 900; font-size: 19px; color: var(--tier); }
.hx-cap { margin: 10px 0 0; font-size: 14px; color: var(--chalk-dim); line-height: 1.5; }
.how { padding-inline-start: 22px; margin: 0 0 14px; display: grid; gap: 10px; line-height: 1.55; }
.how b { color: var(--led); }
/* the two games in their own colours (owner: not the Panenka gold): Israel blue-and-white, the world red */
.how b.g-il { color: #7cc7ff; }
.how b.g-w { color: #ff5a6e; }
.tiers-legend { display: grid; gap: 6px; margin-bottom: 12px; }
.tl { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tl i { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 4px; flex: 0 0 auto; }
.tl small { color: var(--chalk-dim); font-weight: 600; margin-inline-start: auto; }
.fine { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.menu-list { display: grid; gap: 8px; }
.menu-list button, .menu-list a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px; border-radius: var(--r); border: 2px solid var(--edge); background: var(--panel-2); font-weight: 700; text-decoration: none; color: var(--chalk); font-size: 16px; text-align: start; }
.menu-list button:hover { border-color: var(--led); }
.menu-list .mi { width: 26px; height: 26px; flex: 0 0 auto; }
.menu-list .ml-txt { flex: 1; }
.menu-list .ml-txt small { display: block; font-weight: 500; font-size: 13px; color: var(--chalk-dim); }
.menu-cap { margin: 8px 2px 0; font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: 1px; color: var(--muted); }
.switch { position: relative; width: 52px; height: 30px; border-radius: 99px; background: #3f285b; border: 2px solid var(--ink); flex: 0 0 auto; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--chalk); transition: transform .2s; }
[aria-checked="true"] .switch { background: var(--t2); }
[aria-checked="true"] .switch::after { transform: translateX(-22px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 14px; }
.stat { text-align: center; background: #0e0618; border-radius: var(--r); padding: 10px 4px; border: 2px solid var(--edge); }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--led); text-shadow: 0 0 10px var(--led-glow); }
.stat span { font-size: 12.5px; color: var(--chalk-dim); }
.hist { display: flex; align-items: flex-end; gap: 3px; height: 80px; padding: 6px; background: #0e0618; border-radius: var(--r); border: 2px solid var(--edge); margin-bottom: 12px; }
.hist i { flex: 0 1 26px; background: var(--led); border-radius: 2px 2px 0 0; min-height: 2px; box-shadow: 0 0 8px var(--led-glow); }
.report-kinds { display: grid; gap: 8px; margin-bottom: 10px; }
.report-kinds label { display: flex; gap: 10px; align-items: center; padding: 12px; border: 2px solid var(--edge); border-radius: var(--r); }
.report-kinds input { accent-color: var(--led); width: 18px; height: 18px; }

/* ═════════ toast & fx ═════════ */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 60; transform: translate(-50%, 140%);
  padding: 12px 18px; border-radius: var(--r); background: var(--chalk); color: var(--ink); font-weight: 800;
  border: 3px solid var(--ink); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, 1.3, .4, 1); max-width: 90vw; text-align: center;
}
.toast:not(.is-on) { visibility: hidden; transition: transform .3s, visibility 0s .3s; }
.toast.is-on { transform: translate(-50%, 0); }
/* big LED readouts: a dot-matrix mask over a heavy face — crisp, not grainy */
.fb-score, .ng-clock, .cd-num {
  font-family: var(--display); font-weight: 900;
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 64%); mask-image: radial-gradient(circle, #000 58%, transparent 64%);
  -webkit-mask-size: 5px 5px; mask-size: 5px 5px;
}
.ng-clock { -webkit-mask-size: 3px 3px; mask-size: 3px 3px; letter-spacing: 2px; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }

.foot { display: flex; justify-content: center; gap: 14px; padding: 18px 0 6px; font-size: 12.5px; color: var(--muted); }
.foot a { color: var(--muted); }
body[data-screen="play"] .foot, body[data-screen="reveal"] .foot, body[data-screen="count"] .foot { display: none; }

@media (max-width: 360px) {
  .reveal-lists { grid-template-columns: 1fr; }
  .hud { grid-template-columns: 66px 1fr 66px; }
  .pip { width: 15px; height: 15px; }
  .kick-btn { padding: 0 12px; font-size: 17px; }
  .kick-ic { display: none; }
  .g-seg span { font-size: 10.5px; }
}

/* the keyboard is up (or a short landscape phone): everything the player needs stays above it */
@media (max-height: 620px) {
  .topbar { padding: 6px 0 4px; grid-template-columns: 38px 1fr 38px; }
  .icon-btn { width: 38px; height: 38px; }
  .brand-mini { font-size: 17px; }
  .daytag { display: none; }
  .hud { grid-template-columns: 70px 1fr 70px; padding: 4px; }
  .hud-cap { font-size: 15px; }
  .hud-val { font-size: 23px; }
  .pip { width: 16px; height: 16px; }
  .timer { margin: 7px 2px 9px; height: 11px; }
  .prompt-card { padding: 10px 16px 12px; margin-bottom: 9px; }
  .prompt-card::before, .prompt-card::after { top: 40px; }
  .cat-row { padding-bottom: 6px; }
  .cat-chip { font-size: 18px; }
  .prompt-text { font-size: 24px; margin-top: 8px; }
  .prompt-sub { font-size: 15px; }
  .answers-count { display: none; }
  .answer-input, .kick-btn { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .ribbon-track { animation: none !important; transform: translateX(25%); }
  .flood { animation: none !important; }
}

/* the day label lives under the kick-off button on home; the top bar takes it elsewhere */
body[data-screen="home"] .daytag { opacity: 0; }

/* ═════════ review pass 2: fixes ═════════ */
/* the subtitle never wraps: the rule lines give way first */
.sb-sub span { white-space: nowrap; }
.sb-sub::before, .sb-sub::after { min-width: 10px; }
@media (max-width: 380px) { .sb-sub { font-size: 23px; letter-spacing: 1.5px; gap: 8px; } }
/* an invitation is the first thing an invited friend sees, not something under the fold */
.invite-banner.is-top { display: flex; align-items: center; gap: 12px; text-align: start; margin: 2px 0 12px; padding: 10px 12px; line-height: 1.35; font-size: 15px; }
.invite-banner.is-top > span { flex: 1; min-width: 0; }
.invite-banner.is-top .btn { width: auto; flex: 0 0 auto; }
.invite-banner.is-top .btn-face { min-height: 44px; padding: 0 16px; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }
/* a guest on a group page sees the invitation only — no table tabs, invite or leave buttons */
#scrGroup.is-guest .tabs, #scrGroup.is-guest .g-actions, #scrGroup.is-guest #btnGLeave, #scrGroup.is-guest .g-hint { display: none !important; }
.nw { white-space: nowrap; }
/* a dialog that holds the focus: the page under it is inert */
.app[inert] { pointer-events: none; }
.inv-sub { display: block; margin: 4px 0 2px; font-size: 14.5px; color: var(--chalk-dim); }
/* the reveal fills the screen so its action bar always sits on the bottom edge, never mid-page */
#scrReveal.is-on { display: flex; flex-direction: column; min-height: calc(100vh - 64px - 16px - var(--safe-b)); min-height: calc(100dvh - 64px - 16px - var(--safe-b)); }
#scrReveal .reveal-actions { margin-top: auto; }
@media (min-width: 900px) { #scrReveal.is-on { min-height: calc(100dvh - 14px - 64px - 18px); } }
.sheet input:not([type="radio"]) { width: 100%; }
/* general feedback (2026-11-16): the message box wears the sheet input look */
.sheet textarea { display: block; width: 100%; min-height: 120px; padding: 12px 14px; border-radius: var(--r); border: 3px solid var(--edge); background: #08040f; color: var(--chalk); font: inherit; font-size: 17px; line-height: 1.5; resize: vertical; }
.sheet textarea:focus { outline: none; border-color: var(--led); }
.fb-lead { color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.reveal-actions::before { bottom: calc(-16px - var(--safe-b)); }

/* Tall desktop: the play stack sits in the optical centre instead of leaving the lower
   half of the column empty. Phones keep top alignment (the keyboard owns the bottom). */
@media (min-width: 900px) and (min-height: 880px) {
  main { display: flex; flex-direction: column; }
  #scrPlay.is-on { margin-block: auto; padding-bottom: 7vh; }
}

/* ── Panenka round 2: leaderboards, yesterday's Panenkas, the secret Panenka ── */
.home-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .home-grid { grid-template-columns: repeat(2, 1fr); } }
.yday-card {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px;
  text-align: start; background: linear-gradient(90deg, rgba(255,210,63,.16), rgba(255,210,63,.04));
  border: 2px solid var(--t4); border-radius: var(--r); box-shadow: var(--shadow); color: var(--chalk);
}
.yday-card:hover { transform: translateY(-2px); }
.yday-card .yd-ic .pix { width: 34px; height: auto; display: block; image-rendering: pixelated; }
.yday-card .yd-txt { flex: 1; display: grid; }
.yday-card .yd-txt b { color: var(--t4); font-size: 16px; }
.yday-card .yd-txt small { color: var(--chalk-dim); }
.yday-card .arrow { width: 20px; height: 20px; fill: none; stroke: var(--t4); stroke-width: 3; }
.yd-list { display: grid; gap: 12px; }
.yd-item { background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.yd-q { display: flex; gap: 10px; align-items: flex-start; }
.yd-q b { display: block; line-height: 1.35; }
.yd-q small { color: var(--muted); }
.yd-no { flex: none; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--edge); font-weight: 900; }
.yd-pan { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: rgba(255,210,63,.08); border-inline-start: 4px solid var(--t4); }
.yd-pan b { color: var(--t4); font-size: 17px; }
.yd-pan p { margin: 2px 0; color: var(--chalk); line-height: 1.45; }
.yd-pan small { color: var(--muted); }
.yd-ball .pix { width: 22px; height: auto; image-rendering: pixelated; }
.yd-top, .yd-mine { color: var(--chalk-dim); font-size: 13.5px; }
.lb-meta { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.lb-me { margin-bottom: 12px; }
.lb-me .card a.btn { display: inline-block; text-decoration: none; }
.pk-note { margin: 10px auto 0; max-width: 560px; padding: 9px 12px; border: 2px dashed var(--t4); border-radius: var(--r); color: var(--t4); text-align: center; font-weight: 700; }
.pk-hook { display: block; margin-top: 6px; color: var(--t4); font-size: 15px; line-height: 1.45; }

/* ── the penalty scene (public/daily/penalty.js) ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.play-stand { display: none; } /* the penalty scene has its own crowd */
.penalty-box {
  position: relative; width: 100%; margin: 10px 0 12px; overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--ink);
  border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow), 0 0 0 3px var(--edge);
  /* no aspect-ratio transition: every resize step rebuilt the scene background */
}
.penalty-box.is-kick { aspect-ratio: 16 / 9; }
@media (max-width: 600px) {
  .penalty-box { aspect-ratio: 12 / 5; margin: 8px 0 10px; }
  .penalty-box.is-kick { aspect-ratio: 4 / 3; }
}
/* while the shot plays out, the question steps back */
body.is-kicking .answer-form { opacity: .35; transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .penalty-box { transition: none; } }
.pk-flash {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2;
  font-family: var(--display); font-weight: 900; font-size: clamp(40px, 11vw, 96px); color: var(--t4);
  text-shadow: 4px 4px 0 var(--ink), -2px -2px 0 var(--ink), 0 0 24px rgba(255, 210, 63, .7);
  animation: pkFlash 2.5s cubic-bezier(.2, .9, .2, 1) both;
}
@keyframes pkFlash {
  0% { transform: scale(.3) rotate(-8deg); opacity: 0; }
  14% { transform: scale(1.12) rotate(-3deg); opacity: 1; }
  24% { transform: scale(1) rotate(-3deg); }
  80% { opacity: 1; }
  100% { transform: scale(1.06) rotate(-3deg); opacity: 0; }
}
.share-preview { margin: 14px auto 6px; max-width: 320px; }
.share-preview img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow-lg); }
#pkTomorrow { margin: 12px auto; }

/* ── design review round 2 (work/rarity/review2/REVIEW.md) ── */
/* digits never in the condensed face: Karantina's 7 reads as "?" */
#hudQ, .cat-no, .daytag, .fb-day { font-family: var(--display); font-weight: 800; letter-spacing: 0; }
#hudQ { font-size: 14px; }
.answers-count { text-wrap: pretty; }
.prompt-card::before, .prompt-card::after { background: var(--sky-1); }
/* the shot icon (PenaltyScene.drawIcon) wherever the old mascot stood */
.shot-ic { image-rendering: pixelated; display: inline-block; vertical-align: middle; }
.shot-ic.big { width: 72px; height: 72px; filter: drop-shadow(4px 4px 0 var(--ink)); }
.tier-badge { display: inline-flex; align-items: center; gap: 8px; }
.tier-badge .shot-ic { width: 30px; height: 30px; }
.hx-row .shot-ic { width: 22px; height: 22px; margin-inline-end: 6px; }
.fb-mascot .shot-ic, .bp-gem .shot-ic { filter: drop-shadow(3px 3px 0 var(--ink)); }
/* a wrong try, stamped inside the scene (visible with the phone keyboard up) */
.box-plate {
  position: absolute; top: 8%; inset-inline: 0; margin: auto; width: max-content; max-width: 92%; z-index: 3;
  padding: 4px 12px; background: var(--miss); color: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: rotate(-2deg); animation: plateIn .18s steps(3) both;
}
@keyframes plateIn { from { transform: rotate(-2deg) scale(1.6); opacity: 0; } to { transform: rotate(-2deg) scale(1); opacity: 1; } }
@media (max-height: 620px) {
  .penalty-box { aspect-ratio: 3 / 1; margin: 4px 0 6px; }
  .hud-cap { display: none; }
}
/* tall phones with no keyboard: give the scene the empty space */
@media (max-width: 600px) and (min-height: 780px) { .penalty-box { aspect-ratio: 16 / 10; } }
/* desktop: the kick breaks out of the 580px column */
@media (min-width: 900px) {
  .penalty-box.is-kick { width: min(92vw, 1000px); margin-inline: calc((100% - min(92vw, 1000px)) / 2); aspect-ratio: 21 / 9; z-index: 5; }
}
/* leaderboard: medals, shots, depth */
.table .row { box-shadow: var(--shadow); }
.row[data-rank="2"] .rk { color: var(--ink); background: #cfd6e4; border-radius: 50%; }
.row[data-rank="3"] .rk { color: var(--ink); background: #d08a4a; border-radius: 50%; }
.fine .link-btn { display: inline; padding: 0; margin: 0; font-size: inherit; }
.yd-mine.is-pk { color: var(--t4); font-weight: 800; }
.g-seg span { font-size: 13px; color: var(--chalk-dim); }
@media (prefers-reduced-motion: reduce) { .pk-flash { animation: none !important; transform: rotate(-3deg); } }

/* ── modes: Unlimited (∞) and Rondo ── */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mode-card {
  display: grid; gap: 4px; text-align: start; padding: 12px 14px; background: var(--panel-2);
  border: 2px solid var(--edge); border-radius: var(--r); box-shadow: var(--shadow); color: var(--chalk);
}
.mode-card b { font-size: 16px; color: var(--led-hot); }
.mode-card small { color: var(--chalk-dim); line-height: 1.35; }
.mode-card:hover { border-color: var(--led); transform: translateY(-2px); }
.unl-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip-tog {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 14px; border-radius: 99px;
  background: var(--panel); border: 2px solid var(--edge); color: var(--chalk-dim); font-weight: 800;
}
.chip-tog small { color: var(--muted); font-weight: 600; }
.chip-tog.is-on { background: var(--led); border-color: var(--ink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.chip-tog.is-on small { color: var(--ink); }
.unl-switch { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; text-align: start; padding: 12px; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r); color: var(--chalk); }
.unl-count { margin: 12px 0 4px; color: var(--chalk-dim); }
.unl-access { margin: 6px 0 14px; color: var(--chalk); line-height: 1.5; }
#unlSubscribe { display: block; text-align: center; text-decoration: none; }
.unl-only { display: none; }
body[data-mode="unlimited"] .unl-only { display: block; width: 100%; margin: 12px 0; }
body[data-mode="unlimited"] #scrResults .share-row,
body[data-mode="unlimited"] #sharePreview,
body[data-mode="unlimited"] #groupCta,
body[data-mode="unlimited"] #pkTomorrow,
body[data-mode="unlimited"] #scrResults .next-game { display: none !important; }

/* ── Rondo ── */
.rl-code-cap { text-align: center; color: var(--muted); margin-top: 6px; }
.rl-code { text-align: center; font-size: 56px; font-weight: 900; letter-spacing: 10px; margin: 2px 0 12px; }
#btnRondoStart { width: 100%; margin: 12px 0 4px; }
.rondo-box {
  position: relative; width: 100%; aspect-ratio: 4 / 3; margin: 8px 0 12px; overflow: hidden;
  background: var(--ink); border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow), 0 0 0 3px var(--edge);
}
@media (min-width: 900px) { .rondo-box { aspect-ratio: 16 / 9; } }
.rc-pitch { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--pitch-a) 0 40px, var(--pitch-b) 40px 80px); }
.rc-pitch::after { content: ''; position: absolute; inset: 14% 18%; border: 3px solid var(--line); border-radius: 50%; }
.rc-p { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; padding: 4px 8px; background: rgba(8, 4, 14, .78); border: 2px solid var(--edge); border-radius: 8px; font-size: 13px; min-width: 64px; transition: left .3s, top .3s; }
.rc-p b { white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.rc-p span { color: var(--miss); font-size: 11px; letter-spacing: 1px; }
.rc-p.is-me { border-color: var(--led); }
.rc-p.is-out { opacity: .35; filter: grayscale(1); }
.rc-p.has-ball { border-color: hsl(calc(50 - var(--heat, 0) * 50), 100%, 55%); box-shadow: 0 0 0 3px hsla(calc(50 - var(--heat, 0) * 50), 100%, 55%, .5); }
.rc-ball { position: absolute; top: -22px; font-style: normal; font-size: 22px; animation: rcWobble calc(1.2s - var(--heat, 0) * 1s) infinite; }
@keyframes rcWobble { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(calc(1 + var(--heat, 0) * .35)); } }
.rondo-turn { text-align: center; margin: 8px 0; font-size: 17px; }
.rt-me { color: var(--led-hot); font-size: 20px; animation: blink .6s steps(2) infinite; }
.rondo-feed { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; font-size: 14px; color: var(--chalk-dim); }
.rondo-feed li:first-child { color: var(--chalk); }
.rondo-over { text-align: center; }
.rondo-over h2 { font-size: 26px; color: var(--led-hot); }

/* home: the penalty scene in demo mode replaces the old mascot strip */
.home-pen { position: relative; margin: 0 -16px; aspect-ratio: 21 / 9; max-height: 230px; width: calc(100% + 32px); background: var(--ink); border-block: 3px solid var(--ink); overflow: hidden; }
@media (min-width: 600px) { .home-pen { margin: 0; width: 100%; border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow), 0 0 0 3px var(--edge); } }
.rondo-said { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 6px; }
.rs-cap { color: var(--muted); font-size: 13px; }
.rs-chip { padding: 2px 9px; border-radius: 99px; background: var(--panel); border: 1px solid var(--edge); font-size: 13px; color: var(--chalk-dim); }
.rs-chip:first-of-type { color: var(--chalk); border-color: var(--led); }
#rondoCodeInput { text-transform: uppercase; letter-spacing: 4px; text-align: center; }
.rs-panel { margin: 10px 0; background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r); padding: 8px 12px; }
.rs-panel summary { cursor: pointer; font-weight: 800; display: grid; gap: 2px; }
.rs-panel summary small, .rs-summary { color: var(--chalk-dim); font-weight: 500; font-size: 13px; line-height: 1.4; }
.rs-summary { text-align: center; margin: 8px 0; }
.rs-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 10px; }
.rs-num { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.rs-step { display: inline-flex; align-items: center; gap: 6px; }
.rs-step button { width: 32px; height: 32px; border-radius: 8px; background: var(--panel-2); border: 2px solid var(--edge); font-weight: 900; font-size: 18px; line-height: 1; }
.rs-step b { min-width: 38px; text-align: center; font-family: var(--display); }
.rs-panel .unl-switch { margin-bottom: 8px; }
.rondo-fuse { font-size: 34px; font-weight: 900; text-align: center; color: var(--miss); }

/* ── the shootout ── */
.so-board { display: grid; gap: 5px; margin: 0 0 10px; }
.so-row { display: grid; grid-template-columns: minmax(70px, 1fr) auto auto 34px; gap: 8px; align-items: center; padding: 6px 10px; background: var(--panel); border: 2px solid transparent; border-radius: 8px; }
.so-row.is-me { border-color: var(--edge); }
.so-row.is-kicker { border-color: var(--led); box-shadow: 0 0 0 3px rgba(255, 182, 39, .25); }
.so-row.is-out { opacity: .45; }
.so-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-name small { color: var(--muted); font-weight: 500; }
.so-kicks { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.so-k { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; line-height: 1; }
.so-k.is-goal { background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: inset 0 0 0 2px var(--c); }
.so-k.is-miss { background: rgba(255, 77, 94, .2); color: var(--miss); box-shadow: inset 0 0 0 2px var(--miss); font-weight: 900; }
.so-lives { color: var(--miss); letter-spacing: 1px; }
.so-goals { font-size: 22px; font-weight: 900; text-align: center; }
.rondo-fuse.is-low { animation: blink .5s steps(2) infinite; }
.rs-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.rs-cap { color: var(--muted); font-size: 13px; align-self: center; }
body[data-party="shootout"] .rondo-box { aspect-ratio: 16 / 9; }
@media (max-width: 600px) { body[data-party="shootout"] .rondo-box { aspect-ratio: 4 / 3; } }
body[data-party="hotball"] .so-board { display: none; }
@media (max-width: 600px) {
  body[data-party="shootout"] .rondo-box { aspect-ratio: 16 / 9; margin: 4px 0 8px; }
  .so-row { padding: 4px 8px; grid-template-columns: minmax(60px, 1fr) auto auto 28px; }
  .so-name { font-size: 14px; }
  .so-goals { font-size: 18px; }
  .so-k { width: 18px; height: 18px; font-size: 11px; }
  .rondo-q { padding-block: 10px; }
  .rondo-q .prompt-text { font-size: 22px; }
}
.so-tag { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 3; padding: 3px 10px; background: rgba(8, 4, 14, .82); border: 2px solid var(--led); border-radius: 6px; color: var(--led-hot); font-weight: 900; font-size: 14px; }
/* QA round: party with the phone keyboard up — the kicker's input must stay visible */
@media (max-height: 620px) {
  body[data-party] .rondo-box { aspect-ratio: 3 / 1 !important; margin: 2px 0 6px; }
  body[data-party] .rondo-q { padding-block: 6px; }
  body[data-party] .rondo-q .prompt-sub, body[data-party] .rondo-q .cat-row { display: none; }
}
#lbNick { display: inline-block; min-height: 40px; padding: 8px 12px; text-decoration: underline; }
#rondoCodeInput::placeholder { direction: rtl; }

/* 2026-11-13 round: classic shootout shows POINTS (3-4 digits), the white flag, live typing, host end / exit */
.so-row { grid-template-columns: minmax(80px, 1fr) auto auto minmax(44px, auto); }
@media (max-width: 600px) { .so-row { grid-template-columns: minmax(60px, 1fr) auto auto minmax(38px, auto); } }
.flag-btn { display: block; margin: 8px auto 0; background: none; border: 2px dashed rgba(255, 255, 255, .25); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; padding: 4px 14px; border-radius: 999px; cursor: pointer; }
.flag-btn:hover:not(:disabled) { color: #fff; border-color: rgba(255, 255, 255, .5); }
.flag-btn:disabled { opacity: .4; cursor: default; }
/* Unlimited: +10 s once per run */
.plus-btn { display: block; margin: 8px auto 0; background: rgba(255, 182, 39, .12); border: 2px solid var(--led, #ffb627); color: #ffd23f; font: inherit; font-size: 14px; font-weight: 800; padding: 4px 14px; border-radius: 999px; cursor: pointer; }
.plus-btn[hidden] { display: none; }
.plus-btn:disabled { opacity: .4; cursor: default; }
.rondo-typing { text-align: center; margin: 2px 0 8px; font-size: 18px; color: var(--muted); min-height: 1.4em; }
.rondo-typing .rt-text { color: #fff; font-weight: 800; }
.rondo-typing .rt-caret { display: inline-block; width: 2px; height: 1em; background: #fff; margin-inline-start: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.rondo-tools { display: flex; justify-content: center; gap: 18px; margin: 10px 0 4px; }

/* ═════════ 2026-11-13 mobile pass: nothing touches, every control a real button ═════════ */
/* breathing room between stacked boxes (the lobby's share buttons sat flush on the player list) */
.g-actions { margin-bottom: 16px; }
.g-actions + .table, .g-actions + .lb-meta { margin-top: 4px; }
/* labels never wrap into two-line chips */
.cat-chip, .cat-no, .chip-tog { white-space: nowrap; }
.cat-row { min-width: 0; }
.cat-no { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* secondary actions: a proper pill button (was bare underlined text), 44px tap target */
.link-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; min-height: 44px;
  margin: 10px auto 0; padding: 8px 20px; border-radius: 99px; text-decoration: none;
  background: var(--panel); border: 2px solid var(--edge); color: var(--chalk-dim); font-size: 15px; font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s, border-color .15s, color .15s;
}
.link-btn:hover { border-color: var(--led); color: var(--chalk); }
.link-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.link-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.link-btn b { color: var(--led); }
.rondo-tools { gap: 12px; flex-wrap: wrap; }
.rondo-tools .link-btn { margin: 0; }
#btnRondoEnd { border-color: rgba(255, 77, 94, .55); color: #ffb3bb; }
/* the white flag: same family, a little quieter, never under 44px */
.flag-btn { min-height: 44px; padding: 6px 18px; border-style: solid; border-color: var(--edge); background: var(--panel); box-shadow: 3px 3px 0 var(--ink); }
.flag-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
/* chips: centred, 40px, a pressed feel */
.chip-tog { align-items: center; min-height: 40px; padding: 6px 14px; transition: transform .08s, box-shadow .08s, border-color .15s; }
.chip-tog:hover { border-color: var(--led); }
.chip-tog:active { transform: translate(2px, 2px); }
/* the host's +/- steppers: 40px pixel buttons */
.rs-step button { width: 40px; height: 40px; box-shadow: 2px 2px 0 var(--ink); color: var(--chalk); }
.rs-step button:active { transform: translate(2px, 2px); box-shadow: none; }
.rs-num { min-height: 44px; }
/* every big button: a light top edge for depth */
.btn-face { background-image: linear-gradient(180deg, rgba(255, 255, 255, .22) 0 6%, transparent 6%); }
.btn-ghost .btn-face { background-image: linear-gradient(180deg, rgba(255, 255, 255, .06) 0 6%, transparent 6%); }
.btn-kick .btn-face { background-image: linear-gradient(180deg, #fff 0 9%, var(--cta) 9% 62%, #efe3c4); }
/* the in-game login sheet */
.login-sheet { display: grid; gap: 12px; }
.ls-why { margin: 0; color: var(--chalk-dim); line-height: 1.5; }
.ls-google .btn-face { background: #fff; color: #1f1f1f; font-size: 18px; min-height: 54px; gap: 10px; }
.ls-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.ls-or::before, .ls-or::after { content: ''; flex: 1; height: 2px; background: var(--edge); }
.ls-form { display: grid; gap: 10px; }
.ls-form .btn-kick .btn-face { min-height: 56px; font-size: 21px; }
.ls-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.ls-links a { color: var(--chalk-dim); text-underline-offset: 3px; padding: 8px 0; }
.unl-login { margin-top: 12px; }
.tab { min-height: 44px; }

/* ═════════ two daily games (2026-11-13): פננקה ישראל + פננקה עולמי ═════════ */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .games { grid-template-columns: 1fr; } }
.game-card {
  --gc: var(--t1);
  display: grid; gap: 8px; align-content: start; min-width: 0;
  padding: 14px 14px 12px; border-radius: 14px; background: var(--panel);
  border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--ink);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--gc) 16%, transparent) 0, transparent 46px);
}
.game-card[data-game="w"] { --gc: #ff4d5e; }
.game-card.is-current { border-color: color-mix(in srgb, var(--gc) 70%, var(--edge)); }
.gc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gc-name { margin: 0; font-family: var(--display); font-size: 23px; font-weight: 900; color: var(--chalk); text-wrap: balance; }
.gc-name::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--gc); margin-inline-end: 8px; vertical-align: 2px; box-shadow: 0 0 10px var(--gc); }
.gc-no { font-family: var(--cond); font-weight: 700; font-size: 20px; letter-spacing: 1px; color: var(--led); white-space: nowrap; }
.gc-blurb { margin: 0; color: var(--chalk-dim); font-size: 14px; line-height: 1.4; }
.game-card .today-line { text-align: start; min-height: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gc-grid { display: inline-flex; gap: 2px; }
.gc-grid i { width: 12px; height: 12px; border-radius: 2px; display: block; }
.game-card .btn-kick .btn-face { min-height: 60px; font-size: 22px; }
.game-card .streak-chip { justify-self: start; }
.game-card.is-done .btn-kick .btn-face { background: var(--panel-2); color: var(--chalk); box-shadow: 4px 4px 0 var(--ink); animation: none; }
.other-game .btn-face { background-image: linear-gradient(180deg, #fff 0 9%, var(--cta) 9% 62%, #efe3c4); }
.game-tabs { margin-bottom: 8px; }
.stats-game { margin: 14px 0 4px; font-family: var(--display); font-size: 18px; color: var(--led-hot); }
.stats-game:first-child { margin-top: 0; }

/* ═════════ each daily game has its own night (2026-11-13) ═════════
   פננקה ישראל: a blue-and-white Bloomfield night. פננקה עולמי: a red European night (owner, 2026-11-14).
   Applied on the game's own screens (countdown, play, reveal, results — daily.js show()). */
body[data-game="il"] {
  --sky-0: #040d1c; --sky-1: #0a2142; --sky-2: #123465;
  --panel: #0e1f3d; --panel-2: #16305c; --edge: #2a4f8a; --board: #050c1a;
  --led: #8fd0ff; --led-hot: #e8f6ff; --led-glow: rgba(143, 208, 255, .55);
  --muted: #8fa6c9;
}
body[data-game="w"] {
  --sky-0: #14040a; --sky-1: #2a0812; --sky-2: #3e0d1c;
  --panel: #2a0a14; --panel-2: #3d1020; --edge: #7a1f33; --board: #12030a;
  --led: #ff6b7d; --led-hot: #ffe1e6; --led-glow: rgba(255, 90, 110, .55);
  --muted: #c99aa5;
}
body[data-game] .daytag { padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--led) 18%, transparent); color: var(--led-hot); }
/* the home cards preview their game's night */
.game-card[data-game="il"] { background-color: #0e1f3d; border-color: #2a4f8a; }
.game-card[data-game="w"] { background-color: #2a0a14; border-color: #7a1f33; }
.game-card[data-game="il"] .gc-no { color: #8fd0ff; }
.game-card[data-game="w"] .gc-no { color: #ff6b7d; }
/* the HUD, the final board and the pips wear the game's night too (their purples are hard-coded) */
body[data-game="il"] .hud, body[data-game="il"] .scoreboard, body[data-game="il"] .final-board { border-color: #2a4f8a; }
body[data-game="il"] .hud { background-color: #071226; }
body[data-game="il"] .scoreboard, body[data-game="il"] .final-board { background: radial-gradient(circle, rgba(255, 255, 255, .055) 1px, transparent 1.4px) 0 0 / 6px 6px, linear-gradient(180deg, #0b1b38, #050c1a); }
body[data-game="il"] .hud-box { border-color: #1e3c6e; background: #030915; }
body[data-game="il"] .pip[class="pip"] { border-color: #2a4f8a; background: #0e1f3d; }
body[data-game="w"] .hud, body[data-game="w"] .scoreboard, body[data-game="w"] .final-board { border-color: #7a1f33; }
body[data-game="w"] .hud { background-color: #16040b; }
body[data-game="w"] .scoreboard, body[data-game="w"] .final-board { background: radial-gradient(circle, rgba(255, 255, 255, .055) 1px, transparent 1.4px) 0 0 / 6px 6px, linear-gradient(180deg, #2c0a15, #12030a); }
body[data-game="w"] .hud-box { border-color: #5a1626; background: #0c0206; }
body[data-game="w"] .pip[class="pip"] { border-color: #7a1f33; background: #2a0a14; }
body[data-game="il"] .timer { box-shadow: 0 0 0 2px #2a4f8a; background-color: #050c1a; }
body[data-game="w"] .timer { box-shadow: 0 0 0 2px #7a1f33; background-color: #12030a; }

/* results: the way back home (owner, 2026-11-13) */
#btnResHome { width: 100%; margin-top: 8px; }
#btnResHome .arrow { width: 16px; height: 16px; margin-inline-end: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 3; }

/* PC share: the picture itself + Save / Copy (owner, 2026-11-13 — as My Leagues; never the Windows flyout) */
.img-modal { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px 16px; background: rgba(4, 2, 10, .86); }
.img-modal img { max-width: min(92vw, 440px); max-height: 70vh; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); image-rendering: auto; }
.img-modal-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.img-modal-hint { margin: 0; max-width: 440px; text-align: center; color: var(--muted); font-size: 15px; }
.img-modal .img-modal-bar .btn { width: auto; min-width: 118px; margin: 0; }
.img-modal .img-modal-bar a.btn { text-decoration: none; }

/* THE STREAK, up front (owner, 2026-11-14): a big number on each game card and on the results */
.game-card .streak-chip, .fb-streak-box { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--led) 14%, var(--panel-2)); border: 2px solid color-mix(in srgb, var(--led) 55%, transparent); color: var(--chalk); font-family: inherit; font-weight: 400; letter-spacing: 0; }
.game-card .streak-chip { justify-self: stretch; margin-top: 4px; }
.streak-chip .sk-flame, .fb-streak-box .sk-flame { width: 22px; height: 28px; flex: none; }
.streak-chip .sk-num, .fb-streak-box .sk-num { font-size: 34px; line-height: 1; min-width: 1ch; text-align: center; }
.streak-chip .sk-txt, .fb-streak-box .sk-txt { display: grid; line-height: 1.2; text-align: start; }
.streak-chip .sk-txt b, .fb-streak-box .sk-txt b { font-size: 17px; }
.streak-chip .sk-txt small, .fb-streak-box .sk-txt small { font-size: 13px; color: var(--chalk-dim); }
.streak-chip.is-risk { border-color: var(--led-hot); animation: sk-risk 1.6s ease-in-out infinite; }
.streak-chip.is-risk .sk-txt small { color: var(--led-hot); font-weight: 700; }
@keyframes sk-risk { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--led) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .streak-chip.is-risk { animation: none; } }
.fb-streak { margin-top: 10px; display: grid; justify-items: center; gap: 6px; color: var(--chalk); font-size: inherit; }
.fb-streak-save { font-size: 14px; }
/* the inline game icons that replaced emoji */
.pix.pix-i { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.so-lives .pix-i, .rc-p .pix-i { width: 12px; height: 11px; margin-inline-end: 1px; }
/* Unlimited-only controls never show on a daily game (.link-btn later in this file was overriding .unl-only) */
body:not([data-mode="unlimited"]) .unl-only { display: none !important; }

/* ── WHAT OTHERS ANSWERED TODAY (owner, 2026-11-14): one clear list instead of the crowd + two lists ── */
.score-why { margin: 2px 0 12px; text-align: center; font-size: 14px; color: var(--chalk-dim); line-height: 1.45; }
.today-panel { background: var(--panel); border: 2px solid var(--edge); border-radius: 12px; padding: 12px 12px 10px; margin-bottom: 12px; display: grid; gap: 8px; }
.tp-head { display: grid; gap: 2px; }
.tp-head h3 { margin: 0; font-size: 17px; color: var(--chalk); }
.tp-sub { font-size: 13px; color: var(--muted); }
.tp-cols, .tp-row { display: grid; grid-template-columns: 1fr auto 3.2em; gap: 10px; align-items: center; }
.tp-cols { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .03em; padding: 0 10px; }
.tp-cols span:nth-child(2), .tp-cols span:nth-child(3) { text-align: center; }
.tp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tp-row { position: relative; isolation: isolate; padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--panel-2) 70%, transparent); overflow: hidden; }
.tp-bar { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; z-index: -1; background: color-mix(in srgb, var(--c) 22%, transparent); border-radius: 9px; }
.tp-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.tp-name em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--led); border-radius: 6px; padding: 0 6px; margin-inline-start: 6px; }
.tp-tier { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--chalk); }
.tp-tier i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); border: 2px solid var(--ink); }
.tp-n { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--chalk-dim); }
.tp-row.is-me { outline: 2px solid var(--led); outline-offset: -2px; }
.tp-note { margin: 0; font-size: 13px; color: var(--chalk-dim); }
/* answer details ("1997–2000, 2002–2003") read in their own direction — numbers-only details were flipped by the RTL line */
.reveal-answer small, .fb-item .why, .rl-why, .tp-name { unicode-bidi: plaintext; }

/* ═════════ ARON HAGVIYIM — the trophy cabinet (2026-11-14) ═════════ */
/* home: the count and the latest medals */
.cab-home { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 8px 14px; text-align: start; color: var(--chalk);
  background: linear-gradient(180deg, #2a1546, #1a0b30); border: 2px solid #8a5a2b; border-radius: var(--r);
  box-shadow: inset 0 0 0 2px rgba(255, 182, 39, .1), var(--shadow); transition: transform .12s, border-color .15s; }
.cab-home:hover { border-color: var(--led); transform: translateY(-2px); }
.cab-home-ic { flex: none; }
.cab-home-txt { display: grid; flex: none; }
.cab-home-txt b { font-size: 17px; color: var(--led-hot); }
.cab-home-txt small { color: var(--chalk-dim); }
.cab-home-strip { flex: 1; display: flex; gap: 2px; justify-content: flex-end; align-items: flex-end; min-width: 0; overflow: hidden; }
.cab-home-empty { color: var(--muted); font-size: 13px; }
.cab-home .arrow { width: 20px; height: 20px; fill: none; stroke: var(--led); stroke-width: 3; flex: none; }
.cab-cv { image-rendering: pixelated; display: block; transition: transform .15s; }

/* the screen */
.cabinet { display: grid; gap: 18px; padding-bottom: 24px; }
.cab-head { background: var(--panel); border: 2px solid var(--edge); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.cab-count { display: flex; align-items: baseline; gap: 10px; }
.cab-n { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; color: var(--led); text-shadow: 0 0 14px var(--led-glow); }
.cab-of { color: var(--chalk-dim); font-size: 16px; font-weight: 700; }
.cab-meter { height: 12px; background: #0e0618; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.cab-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--led), var(--led-hot)); box-shadow: 0 0 10px var(--led-glow); }
.cab-demo { margin: 0; font-size: 13px; color: var(--muted); }

/* a shelf: a dark glass case, a brass name plate, the medals, the wooden plank they stand on */
.cab-shelf { position: relative; padding: 12px 10px 0; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #2c1650 0%, #160a29 70%);
  border: 3px solid #3a2112; box-shadow: inset 0 0 0 2px #5b3a1c, inset 0 10px 24px rgba(0, 0, 0, .45), var(--shadow); }
.cab-shelf::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0 16%, transparent 16% 100%); }
.cab-plate { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 auto 6px; width: fit-content; min-width: 58%; padding: 3px 14px;
  background: linear-gradient(180deg, #e9b64c, #b27a1d); border: 2px solid #4a2a0a; border-radius: 4px; color: #2a1405; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 2px 2px 0 var(--ink); }
.cab-plate h3 { margin: 0; font-size: 17px; font-weight: 900; }
.cab-plate span { font-family: var(--display); font-weight: 900; font-size: 14px; }
.cab-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 4px; position: relative; z-index: 1; }
.cab-plank { height: 14px; margin: -6px -10px 0; background: linear-gradient(180deg, #8a5a2b 0 40%, #5b3a1c 40% 100%); border-top: 2px solid #b07a42; box-shadow: 0 4px 0 #2a1608; }
.cab-medal { display: grid; justify-items: center; align-content: start; gap: 3px; width: 78px; padding: 6px 2px 12px; background: none; border: 0; color: var(--chalk); border-radius: 10px; position: relative; cursor: pointer; }
.cab-medal:focus-visible { outline: 3px solid var(--led); outline-offset: 2px; }
.cab-art { position: relative; display: grid; place-items: center; }
.cab-medal.is-earned .cab-art::before { content: ''; position: absolute; inset: 22% 6% 0; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .38; }
.cab-medal.is-earned:hover .cab-cv { transform: translateY(-3px) rotate(-3deg); }
.cab-name { font-size: 12.5px; font-weight: 800; line-height: 1.2; text-align: center; min-height: 2.4em; }
.cab-medal.is-locked .cab-name { color: var(--muted); }
.cab-pips { display: flex; gap: 3px; }
.cab-pips i { width: 9px; height: 9px; border-radius: 2px; background: #3a2d52; border: 1px solid var(--ink); }
.cab-pips i.on { background: var(--pip); }
.cab-bar { display: block; width: 64px; height: 7px; background: #0e0618; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; }
.cab-bar i { display: block; height: 100%; background: var(--led); }
.cab-prog { font-family: var(--display); font-size: 11.5px; color: var(--chalk-dim); font-variant-numeric: tabular-nums; }

/* the detail card, in the game's bottom sheet */
.cab-detail { display: grid; gap: 10px; justify-items: center; text-align: center; }
.cab-big { position: relative; display: grid; place-items: center; padding: 6px 30px; }
.cab-rays { position: absolute; inset: -10%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--glow) 32%, transparent) 0 10deg, transparent 10deg 20deg);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 75%); mask: radial-gradient(closest-side, #000 30%, transparent 75%);
  animation: cab-spin 18s linear infinite; }
.cab-big .cab-cv, .cab-unlock-art .cab-cv { position: relative; }
.cab-detail:not(.is-earned) .cab-rays { display: none; }
@keyframes cab-spin { to { transform: rotate(360deg); } }
.cab-text { display: grid; gap: 8px; justify-items: center; }
.cab-title { margin: 0; font-size: 26px; font-weight: 900; }
.cab-status { margin: 0; color: var(--muted); font-weight: 700; }
.cab-status.ok { color: var(--led-hot); }
.cab-rule { margin: 0; line-height: 1.5; max-width: 34ch; }
.cab-line { margin: 0; color: var(--chalk-dim); font-style: italic; }
.cab-tiers { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cab-tier { display: grid; justify-items: center; gap: 2px; }
.cab-tier b { font-size: 13px; color: var(--muted); }
.cab-tier small { font-size: 11.5px; color: var(--muted); }
.cab-tier.on b { color: var(--led-hot); }
.cab-next { display: grid; justify-items: center; gap: 4px; color: var(--chalk-dim); font-size: 13.5px; }
.cab-next .cab-bar { width: 200px; height: 10px; }

/* results: what this game just unlocked */
.cab-unlock-slot:empty { display: none; }
.cab-unlock { margin-bottom: 14px; padding: 10px 12px 12px; border: 3px solid var(--led); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 182, 39, .16), rgba(255, 182, 39, .03));
  box-shadow: 0 0 0 3px var(--ink), 0 0 26px var(--led-glow), var(--shadow-lg); animation: cab-pop .55s cubic-bezier(.2, 1.6, .4, 1) .35s both; }
@keyframes cab-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.cab-unlock-head { text-align: center; }
.cab-unlock-head span { display: inline-block; font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--ink); background: var(--led); padding: 2px 14px; border-radius: 99px; border: 2px solid var(--ink); }
.cab-unlock-list { display: grid; gap: 6px; margin-top: 6px; }
.cab-unlock-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; background: none; border: 0; color: var(--chalk); padding: 2px; cursor: pointer; }
.cab-unlock-art { position: relative; display: grid; place-items: center; flex: none; width: 86px; height: 98px; }
.cab-unlock-art .cab-rays { inset: -8%; }
.cab-unlock-txt { display: grid; gap: 2px; }
.cab-unlock-txt b { font-size: 19px; }
.cab-unlock-txt small { color: var(--chalk-dim); line-height: 1.4; }
.cab-more { margin: 4px 0 0; text-align: center; color: var(--chalk-dim); font-size: 13.5px; }
.cab-retro { display: grid; gap: 2px; width: 100%; margin-bottom: 14px; padding: 12px 14px; text-align: center; color: var(--chalk);
  background: linear-gradient(180deg, rgba(255, 182, 39, .14), rgba(255, 182, 39, .04)); border: 2px dashed var(--led); border-radius: var(--r); cursor: pointer; }
.cab-retro b { color: var(--led-hot); font-size: 16.5px; }
.cab-retro small { color: var(--chalk-dim); }
@media (prefers-reduced-motion: reduce) { .cab-rays, .cab-unlock { animation: none; } }
@media (max-width: 370px) { .cab-medal { width: 70px; } .cab-row { gap: 2px; } }

/* ═════════ MY STATS (2026-11-14): the Panenkas up top, charts that say something ═════════ */
.st-pan { border: 3px solid var(--t4); border-radius: var(--r); padding: 14px; margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(255, 210, 63, .16), rgba(255, 210, 63, .03)); box-shadow: 0 0 22px rgba(255, 210, 63, .18), var(--shadow); }
.st-pan-top { display: flex; align-items: center; gap: 14px; }
.st-pan-ic img, .st-pan-ic svg { width: 56px; height: auto; image-rendering: pixelated; display: block; }
.st-pan-num { display: grid; }
.st-pan-num b { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1; color: var(--t4); text-shadow: 0 0 16px rgba(255, 210, 63, .5); }
.st-pan-num span { color: var(--chalk-dim); font-weight: 700; }
.st-pan-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.st-pan-list li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .25); border-inline-start: 4px solid var(--t4); }
.st-pan-list b { font-size: 16px; }
.st-pan-list small { color: var(--chalk-dim); line-height: 1.35; }
.st-pan-list span { color: var(--muted); font-size: 12.5px; }
.st-pan-empty, .st-empty { margin: 10px 0 0; color: var(--chalk-dim); line-height: 1.5; }
.st-more { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.st-game { margin-bottom: 18px; }
.st-nums { display: flex; flex-wrap: wrap; gap: 8px; }
.st-nums .stat { flex: 1 1 28%; min-width: 0; }
.st-chart { margin: 12px 0 0; padding: 10px 10px 6px; background: #0e0618; border: 2px solid var(--edge); border-radius: var(--r); }
.st-chart figcaption { font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 700; }
.st-bars { position: relative; display: flex; align-items: stretch; gap: 4px; height: 140px; direction: ltr; }
.st-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.st-bar .st-v { height: 16px; font-size: 10.5px; line-height: 16px; color: var(--chalk-dim); font-variant-numeric: tabular-nums; }
.st-bar .st-col { flex: 1; width: 100%; position: relative; }
.st-bar .st-col i { position: absolute; bottom: 0; left: 14%; right: 14%; background: var(--led); border-radius: 3px 3px 0 0; box-shadow: 0 0 8px var(--led-glow); }
.st-bar .st-d { height: 16px; font-size: 10px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-game[data-game="il"] .st-col i { background: #7cc7ff; box-shadow: 0 0 8px rgba(124, 199, 255, .45); }
.st-game[data-game="w"] .st-col i { background: #ff4d5e; box-shadow: 0 0 8px rgba(255, 77, 94, .4); }
.st-avg { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed rgba(244, 239, 225, .45); pointer-events: none; z-index: 1; }
.st-avg span { position: absolute; right: 0; bottom: 2px; font-size: 10.5px; font-style: normal; color: var(--chalk); background: #0e0618; padding: 0 4px; border-radius: 4px; }
.st-tiers { margin-bottom: 6px; }
.st-tier-list { display: grid; gap: 8px; }
.st-tier { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 3.6em; align-items: center; gap: 8px; }
.st-tn { display: flex; align-items: center; gap: 6px; font-weight: 800; white-space: nowrap; }
.st-tn i { width: 12px; height: 12px; border-radius: 3px; background: var(--tier); border: 1.5px solid var(--ink); flex: none; }
.st-tn small { color: var(--muted); font-weight: 600; }
.st-tbar { height: 12px; background: #0e0618; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; }
.st-tbar i { display: block; height: 100%; background: var(--tier); }
.st-tc { text-align: left; font-family: var(--display); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.st-tc small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

/* ═════════ PANENKA SUBSCRIPTION (2026-11-14): Unlimited is for subscribers, bought from inside the game ═════════ */
.sub-sheet { display: grid; gap: 14px; }
.sub-lead { margin: 0; line-height: 1.55; font-size: 16px; }
.sub-price { display: inline-block; margin-inline-start: 4px; color: var(--ink); background: var(--led); padding: 0 10px; border-radius: 99px; border: 2px solid var(--ink); font-family: var(--display); font-weight: 900; }
.sub-pay { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.sub-pay legend { font-weight: 800; margin-bottom: 6px; color: var(--chalk-dim); }
.sub-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--edge); border-radius: var(--r); background: var(--panel); cursor: pointer; }
.sub-opt:has(input:checked) { border-color: var(--led); background: rgba(255, 182, 39, .08); }
.sub-opt input { margin-top: 4px; accent-color: var(--led); }
.sub-opt span { display: grid; gap: 2px; }
.sub-opt small { color: var(--chalk-dim); line-height: 1.4; }
.sub-terms { display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; font-size: 14.5px; }
.sheet .sub-terms input[type="checkbox"] { margin-top: 4px; accent-color: var(--led); width: 18px; height: 18px; flex: none; } /* the sheet stretches inputs to 100% */
.sub-terms a { color: var(--led-hot); }
.sub-err { margin: 0; color: var(--coral); font-weight: 700; }
.sub-note { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* מה חדש (owner, 2026-11-16) — the owner-approved update notes, and the dot until the newest is read */
.wn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wn-list li { padding: 10px 12px; border-radius: var(--r); border: 2px solid var(--edge); background: var(--panel-2); }
.wn-list small { display: block; color: var(--led); font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.wn-list p { margin: 0; color: var(--chalk); font-size: 16px; line-height: 1.45; }
.wn-dot { display: inline-block; width: 9px; height: 9px; margin-inline-start: 6px; border-radius: 50%; background: var(--miss, #ff4d5e); vertical-align: middle; }
#btnMenu { position: relative; }
#btnMenu.has-dot::after { content: ""; position: absolute; top: 5px; inset-inline-end: 5px; width: 9px; height: 9px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 2px var(--ink, #08040e); }

/* groups (owner, 2026-11-16): last week's champion, who has not played, the creator's rename, the signed-out note */
.g-rename { margin-inline-start: auto; font-size: 14px; }
.g-champ { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; padding: 10px 12px; border-radius: var(--r); border: 2px solid color-mix(in srgb, var(--led) 60%, transparent); background: linear-gradient(135deg, rgba(255,210,63,.14), rgba(255,182,39,.03)); color: var(--chalk); font-size: 15px; }
.g-champ b { color: #ffd23f; }
.g-champ .g-cup { font-size: 22px; }
.g-wait { margin: 10px 0 2px; padding: 10px 12px; border-radius: var(--r); background: var(--panel-2); border: 2px dashed var(--edge); color: var(--chalk-dim); font-size: 14.5px; line-height: 1.5; }
.g-wait b { color: var(--chalk); }
.g-signin { margin: 12px 0; padding: 12px 14px; border-radius: var(--r); border: 2px solid color-mix(in srgb, var(--led) 55%, transparent); background: var(--panel-2); color: var(--chalk-dim); font-size: 14.5px; line-height: 1.5; }
.g-signin b { color: var(--chalk); }
