/* ============================================================
   Gold layout — 7 Nov 2026
   New background (gold ribbons). Only the text is inside the cake: the sentence while reading,
   the question while answering. Everything else sits outside it:
   - landscape (iPad / phone on its side): a 16:9 frame, the cake on the right; on the left the team bar,
     then the answer area (voice or four choices), the time bar with pause, and the tools.
   - portrait: the cake in the middle, the answer area, time bar and tools under it.
   Applies to the game screens only (body.cake-layout), not to the test sequence.
   ============================================================ */

body.round-ui { background: #f3dcb5 url(assets/round/background-gold.jpg) center / cover no-repeat; }

/* nothing else on stage while playing */
body.cake-layout .stage-rays,
body.cake-layout .stage-wing,
body.cake-layout #theater-stage::before { display: none !important; }
body.cake-layout .question-number { display: none; }

/* the time is shown in the bar beside the pause button, not inside the buttons */
body.cake-layout .paper-stage.has-timer .round-controls > .primary::before { display: none !important; }
body.cake-layout #theater-stage.urg-2 .round-controls > .primary,
body.cake-layout #theater-stage.urg-3 .round-controls > .primary { animation: none; border-color: var(--gold) !important; }

/* ---------- shared look of the side panel ---------- */
body.cake-layout .round-panel {
  position: fixed; z-index: 5; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--pg);
}
body.cake-layout .round-panel:empty { display: none; }
body.cake-layout .round-panel .choices {
  display: grid; grid-template-columns: 1fr 1fr !important; gap: var(--pg); margin: 0;
}
body.cake-layout .round-panel .choices .choice,
body.cake-layout .round-panel .mode-pick > button,
body.cake-layout .round-panel .round-controls > .primary,
body.cake-layout .round-panel .round-controls > button,
body.cake-layout .round-panel .host-verdict > button {
  width: 100%; margin: 0; min-height: var(--bh); height: auto;
  padding: calc(var(--bh) * .14) calc(var(--bh) * .3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  border-radius: calc(var(--bh) * .32);
  background: linear-gradient(#fffdf7, #f6e7ca) !important;
  border: calc(var(--bh) * .05) solid var(--gold) !important;
  box-shadow: inset 0 calc(var(--bh) * .05) 0 #fff, 0 calc(var(--bh) * .07) calc(var(--bh) * .2) rgba(110, 70, 20, .25) !important;
  color: var(--ink) !important; font-size: var(--bf); font-weight: 800; line-height: 1.2; text-align: center;
  white-space: normal; text-shadow: none; overflow: visible; transform: none;
}
body.cake-layout .round-panel .round-controls > .primary,
body.cake-layout .round-panel .host-verdict > button { border-radius: 999px; }
body.cake-layout .round-panel .choices .choice.long-answer { font-size: calc(var(--bf) * .82); }
body.cake-layout .round-panel .choices .choice.very-long-answer { font-size: calc(var(--bf) * .66); }
body.cake-layout .round-panel button:active { transform: scale(.98); }
body.cake-layout .round-panel .round-controls { width: 100%; height: auto; flex: none; display: block; }
body.cake-layout .round-panel .host-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pg); width: 100%; height: auto; }
body.cake-layout .round-panel .host-verdict > .yes { color: #2f6b2a !important; }
body.cake-layout .round-panel .host-verdict > .no { color: #9a2a1a !important; }

/* voice or choices: two big buttons at the start of every question */
body.cake-layout .round-panel .mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pg); }
body.cake-layout .round-panel .mode-pick > button { min-height: calc(var(--bh) * 1.45); }
body.cake-layout .round-panel .mode-pick b { display: block; font-size: var(--bf); font-weight: 900; }
body.cake-layout .round-panel .mode-pick small { display: block; font-size: calc(var(--bf) * .62); font-weight: 700; color: var(--ink-soft); margin-top: .15em; }
body.cake-layout .round-panel .mode-pick .timed-label { display: block; }

/* the host's answer (after "בדוק את התשובה") */
body.cake-layout .round-panel .host-answer {
  display: grid; justify-items: center; gap: .2em; text-align: center; margin: 0;
  padding: calc(var(--bh) * .2) calc(var(--bh) * .3); border-radius: calc(var(--bh) * .32);
  background: rgba(255, 251, 240, .72); border: calc(var(--bh) * .04) solid rgba(216, 166, 60, .6);
}
body.cake-layout .round-panel .host-answer-label { font-size: calc(var(--bf) * .7); color: var(--ink-soft); font-weight: 700; }
body.cake-layout .round-panel .host-answer strong { font-size: calc(var(--bf) * 1.25); color: #8a3c0a; line-height: 1.2; }

/* time bar + pause */
body.cake-layout .paper-stage-action {
  display: flex; align-items: center; gap: calc(var(--pg) * 1.6); bottom: auto;
}
body.cake-layout .paper-stage-action .round-pause { flex: none; border-radius: 50%; }
body.cake-layout .paper-stage-action .choice-time-bar {
  flex: 1; width: auto !important; height: var(--tb) !important; min-height: 0; border-radius: 99px;
  background: rgba(190, 130, 50, .2) !important; border: 0 !important; box-shadow: none !important;
  align-self: center;
}
body.cake-layout .paper-stage-action .choice-time-bar::before {
  inset: 0 auto 0 0 !important; border-radius: 99px;
  background: linear-gradient(90deg, #e7883a, #f2b86a) !important;
}

/* tools: map on the right, then save, then sound */
body.cake-layout .game-tools { display: flex; align-items: center; bottom: auto; }
body.cake-layout .game-tools .tool-map { order: 1; }
body.cake-layout .game-tools .tool-save { order: 2; }
body.cake-layout .game-tools .game-sound { order: 3; }

/* text inside the cake: centred, big */
body.cake-layout .stage-answer-scroll > .stage-question { margin: auto 0 !important; }
body.cake-layout .stage-scroll > :first-child,
body.cake-layout .stage-answer-scroll > :first-child { margin-top: auto; }
body.cake-layout .stage-scroll > :last-child,
body.cake-layout .stage-answer-scroll > :last-child { margin-bottom: auto; }

/* ================= LANDSCAPE ================= */
@media (orientation: landscape) {
  body.cake-layout {
    /* frame: 16:9 like the mockup, as large as the screen allows */
    --fw: min(100vw, calc(100dvh * 1.7914)) !important;
    --u: calc(var(--fw) / 100);
    --x0: calc(50vw - var(--fw) / 2);
    --y0: calc(50dvh - var(--fw) / 3.5828);
    --pg: calc(1.25 * var(--u));
    --bh: calc(5.1 * var(--u));
    --bf: calc(2.15 * var(--u));
    --tb: calc(0.75 * var(--u));
  }

  /* team bar */
  body.cake-layout .game-scoreboard {
    top: calc(var(--y0) + 3.5 * var(--u)); left: calc(var(--x0) + 6.2 * var(--u));
    width: calc(45.2 * var(--u)); height: calc(6.8 * var(--u));
    padding: 0 calc(1.4 * var(--u));
    border-width: calc(0.65 * var(--u)); border-radius: calc(2.4 * var(--u));
    box-shadow: inset 0 0 0 calc(0.15 * var(--u)) #fff6dc, inset 0 0 0 calc(0.32 * var(--u)) #e4a832,
      0 0 calc(1.2 * var(--u)) rgba(255, 196, 70, .7), 0 calc(0.3 * var(--u)) calc(0.8 * var(--u)) rgba(110, 70, 10, .3);
  }
  body.cake-layout .game-scoreboard .game-score:not(.second) { padding-left: calc(1 * var(--u)) !important; }
  body.cake-layout .game-scoreboard .game-score.second { padding-right: calc(1 * var(--u)) !important; }
  body.cake-layout .game-scoreboard .game-score { gap: calc(0.6 * var(--u)); }
  body.cake-layout .game-scoreboard .game-team-name,
  body.cake-layout .game-scoreboard .game-score:not(.second) .game-team-name,
  body.cake-layout .game-scoreboard .game-score.second .game-team-name { font-size: calc(1.95 * var(--u)) !important; }
  body.cake-layout .game-scoreboard .game-team-score b,
  body.cake-layout .game-scoreboard .score-of { font-size: calc(2.7 * var(--u)) !important; }
  body.cake-layout .game-scoreboard .game-score.active .game-team-name,
  body.cake-layout .game-scoreboard .game-score.active .game-team-score { text-shadow: 0 0 calc(0.9 * var(--u)) rgba(255, 180, 40, 1); }
  body.cake-layout .score-plus { font-size: calc(2.4 * var(--u)); }

  /* cake on the right */
  body.cake-layout #theater-stage {
    left: calc(var(--x0) + 51.6 * var(--u)); top: calc(var(--y0) + 1.1 * var(--u));
    width: calc(40.9 * var(--u)); height: calc(54.6 * var(--u));
  }
  body.cake-layout .round-cake { filter: drop-shadow(0 calc(1 * var(--u)) calc(2.4 * var(--u)) rgba(120, 70, 10, .3)); }
  body.cake-layout #central-card { left: 19%; width: 62%; top: 38.5%; height: 35%; }
  body.cake-layout .stage-scroll,
  body.cake-layout .stage-answer-scroll,
  body.cake-layout .stage-result-scroll { padding: calc(0.6 * var(--u)); }
  body.cake-layout #central-card.fade-top { --ft: calc(3.5 * var(--u)); }
  body.cake-layout #central-card.fade-bottom { --fb: calc(3.5 * var(--u)); }
  body.cake-layout .scroll-rail { left: calc(-0.8 * var(--u)); width: calc(0.3 * var(--u)); }
  body.cake-layout .sentence { font-size: calc(2.3 * var(--u)) !important; line-height: 1.45; font-weight: 800; }
  body.cake-layout .formula-tag { font-size: calc(1.05 * var(--u)) !important; margin-bottom: calc(0.4 * var(--u)) !important; }
  body.cake-layout .question-box { font-size: calc(2.9 * var(--u)) !important; line-height: 1.3; font-weight: 900; }
  body.cake-layout .stage-result-copy h1 { font-size: calc(2.9 * var(--u)) !important; margin-bottom: calc(0.6 * var(--u)); }
  body.cake-layout .stage-result-copy p { font-size: calc(1.85 * var(--u)) !important; margin-bottom: calc(0.6 * var(--u)); }
  body.cake-layout .stage-result-copy .revealed-answer { font-size: calc(2.4 * var(--u)) !important; }
  body.cake-layout .stage-result-scroll summary,
  body.cake-layout .stage-result-scroll details p,
  body.cake-layout .stage-result-scroll details h3,
  body.cake-layout .stage-result-scroll .audit-item { font-size: calc(1.45 * var(--u)) !important; }

  /* level candle on top of the cake */
  body.cake-layout .level-candle {
    position: fixed; bottom: auto; transform: translateX(-50%);
    left: calc(var(--x0) + 72.05 * var(--u));
    top: calc(var(--y0) + 1 * var(--u)); height: calc(16.6 * var(--u)); width: calc(3.96 * var(--u));
    filter: drop-shadow(0 0 calc(1.4 * var(--u)) rgba(255, 190, 80, .7));
  }

  /* answer area on the left, growing upwards from the time bar */
  body.cake-layout .round-panel {
    left: calc(var(--x0) + 7.4 * var(--u)); width: calc(42.7 * var(--u));
    bottom: calc(100dvh - var(--y0) - 42.2 * var(--u)); max-height: calc(30 * var(--u));
  }
  /* reading / result: the single button sits where the choices would be */
  body.cake-layout .round-panel:not(:has(.choices, .mode-pick, .host-answer)) { bottom: calc(100dvh - var(--y0) - 38.5 * var(--u)); }
  body.cake-layout .round-panel .round-controls > .primary,
  body.cake-layout .round-panel .round-controls > button { min-height: calc(6.2 * var(--u)); font-size: calc(2.5 * var(--u)); }

  body.cake-layout .paper-stage-action {
    left: calc(var(--x0) + 7.6 * var(--u)); width: calc(42.4 * var(--u));
    top: calc(var(--y0) + 43.6 * var(--u)); height: calc(5.8 * var(--u));
  }
  body.cake-layout .paper-stage-action .round-pause { width: calc(5.8 * var(--u)) !important; height: calc(5.8 * var(--u)) !important; }

  body.cake-layout .game-tools {
    left: calc(var(--x0) + 7.8 * var(--u)); width: calc(37.4 * var(--u));
    top: calc(var(--y0) + 50.2 * var(--u)); height: calc(4.3 * var(--u)); gap: calc(1.3 * var(--u));
  }
  body.cake-layout .game-tools .game-sound { width: calc(4.3 * var(--u)) !important; }
}

/* ================= PORTRAIT ================= */
@media (orientation: portrait) {
  body.cake-layout {
    --fw: min(100vw, calc(100dvh * 0.5628)) !important;
    --u: calc(var(--fw) / 100);
    --x0: calc(50vw - var(--fw) / 2);
    --pg: calc(2.2 * var(--u));
    --bh: calc(11.5 * var(--u));
    --bf: calc(4.4 * var(--u));
    --tb: calc(1.6 * var(--u));
    /* where the cake goes: centred between the team bar and the answer area */
    --top-free: calc(var(--st) + 16 * var(--u));
    --bottom-free: calc(100dvh - var(--sb) - 53 * var(--u));
    /* cake height: fills the free space, never wider than the screen */
    --chh: min(calc(126 * var(--u)), calc(var(--bottom-free) - var(--top-free)));
    --ck: calc((var(--top-free) + var(--bottom-free) - var(--chh)) / 2);
  }
  body.cake-layout #theater-stage {
    left: calc(50vw - var(--chh) * .375); top: var(--ck);
    width: calc(var(--chh) * .75); height: var(--chh);
  }
  body.cake-layout #central-card { left: 19%; width: 62%; top: 38.5%; height: 35%; }
  body.cake-layout .sentence { font-size: calc(4.6 * var(--u)) !important; line-height: 1.45; }
  body.cake-layout .question-box { font-size: calc(5.4 * var(--u)) !important; line-height: 1.3; font-weight: 900; }
  body.cake-layout .stage-result-copy h1 { font-size: calc(5.6 * var(--u)) !important; }
  body.cake-layout .stage-result-copy p { font-size: calc(3.8 * var(--u)) !important; }
  body.cake-layout .stage-result-copy .revealed-answer { font-size: calc(4.8 * var(--u)) !important; }

  body.cake-layout .level-candle {
    position: fixed; bottom: auto; transform: translateX(-50%); left: 50vw;
    --ct: calc(var(--st) + 16.5 * var(--u));
    --ch: max(calc(20 * var(--u)), calc(var(--ck) + var(--chh) * .296 - var(--ct)));
    top: calc(var(--ck) + var(--chh) * .296 - var(--ch)); height: var(--ch); width: calc(var(--ch) * 0.23875);
  }

  body.cake-layout .round-panel {
    left: calc(var(--x0) + 4 * var(--u)); width: calc(92 * var(--u));
    bottom: calc(var(--sb) + 25.5 * var(--u)); max-height: calc(60 * var(--u));
  }
  body.cake-layout .round-panel .round-controls > .primary,
  body.cake-layout .round-panel .round-controls > button { min-height: calc(14 * var(--u)); font-size: calc(5.6 * var(--u)); }

  body.cake-layout .paper-stage-action {
    left: calc(var(--x0) + 4.3 * var(--u)); width: calc(92 * var(--u));
    top: auto; bottom: calc(var(--sb) + 14 * var(--u)); height: calc(10 * var(--u));
  }
  body.cake-layout .paper-stage-action .round-pause { width: calc(10 * var(--u)) !important; height: calc(10 * var(--u)) !important; }
  body.cake-layout .game-tools { bottom: calc(var(--sb) + 2.3 * var(--u)); }
}

/* ============================================================
   7 Nov 2026 (2): while answering the cake is empty — the question sits above the answer area,
   big, like the mockup. The turning golden beams are back, centred behind the cake.
   ============================================================ */
body.cake-layout .round-panel .panel-question {
  margin: 0 0 calc(var(--pg) * 1.2); padding: 0; text-align: center;
  font-size: var(--qf); line-height: 1.2; font-weight: 900; color: var(--ink);
  text-wrap: balance; overflow-wrap: break-word;
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  min-height: 0 !important; width: 100%;
}
body.cake-layout .round-panel .panel-question.long-question { font-size: calc(var(--qf) * .78); }
body.cake-layout .round-panel .panel-question.very-long-question { font-size: calc(var(--qf) * .6); }

/* the beams: turning slowly around the middle of the cake */
body.cake-layout .stage-rays {
  display: block !important; position: fixed; z-index: 0; pointer-events: none;
  left: var(--rx); top: var(--ry); width: max(170vw, 170dvh); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255, 222, 140, .42) 0deg 7deg, rgba(255, 222, 140, 0) 7deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, rgba(0, 0, 0, .6) 40%, transparent 72%);
  mask-image: radial-gradient(closest-side, #000 10%, rgba(0, 0, 0, .6) 40%, transparent 72%);
  animation: gold-rays-turn 70s linear infinite;
}
@keyframes gold-rays-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body.cake-layout .stage-rays { animation: none; } }

@media (orientation: landscape) {
  body.cake-layout {
    --qf: calc(4.6 * var(--u));
    --rx: calc(var(--x0) + 72 * var(--u));
    --ry: calc(var(--y0) + 31 * var(--u));
  }
  body.cake-layout .round-panel { max-height: calc(33 * var(--u)); }
}
@media (orientation: portrait) {
  body.cake-layout {
    --qf: calc(7 * var(--u));
    --rx: 50vw;
    --ry: calc(var(--ck) + var(--chh) * .55);
  }
  /* more room under the cake for the question */
  body.cake-layout:has(.panel-question) { --bottom-free: calc(100dvh - var(--sb) - 82 * var(--u)); }
  body.cake-layout .round-panel { max-height: calc(70 * var(--u)); }
}

/* ============================================================
   7 Nov 2026 (3): fireworks behind the cake; the question starts level with the top of the cake.
   ============================================================ */
body.cake-layout #theater-stage > .round-cake { position: absolute; z-index: 1; }
body.cake-layout #theater-stage > .cake-fireworks { z-index: 0; }
body.cake-layout #theater-stage > #central-card { z-index: 2; }
/* the big celebration bursts gather around the cake (still behind it) */
body.cake-layout .celebrate-back {
  inset: auto; overflow: visible;
  left: calc(var(--rx) - var(--cw) / 2); top: calc(var(--ry) - var(--cw) / 2);
  width: var(--cw); height: var(--cw);
}
@media (orientation: landscape) {
  body.cake-layout { --cw: calc(62 * var(--u)); }
  /* question at the top (level with the top of the cake), answer buttons stay down by the time bar */
  body.cake-layout .round-panel:has(.panel-question) {
    top: calc(var(--y0) + 12.5 * var(--u)); max-height: none; justify-content: space-between;
  }
  body.cake-layout .round-panel:has(.panel-question) .panel-question { margin: 0; }
}
@media (orientation: portrait) {
  body.cake-layout { --cw: calc(100 * var(--u)); }
}

/* ============================================================
   7 Nov 2026 (4): bigger cake (as in the mockup), left column re-aligned to it;
   while reading, the "next" button sits in the time-bar row and shows the time again;
   right/wrong and the other result screens: the cake stays empty, the text sits beside it.
   ============================================================ */

/* ---------- result text in the side panel ---------- */
body.cake-layout .round-panel .panel-result { margin: 0; padding: 0; text-align: center; min-height: 0; }
body.cake-layout .round-panel .stage-result-copy { margin: 0; padding: 0; background: none; text-align: center; }
body.cake-layout .round-panel .stage-result-copy h1 {
  font-size: var(--qf) !important; line-height: 1.15; font-weight: 900; margin: 0 0 calc(var(--pg) * .8) !important;
  color: #8a5a10; text-align: center;
}
body.cake-layout .stage-failure .round-panel .stage-result-copy h1 { color: #9a2a1a; }
body.cake-layout .round-panel .stage-result-copy p {
  font-size: var(--bf) !important; line-height: 1.4; font-weight: 700; color: var(--ink); margin: 0 0 calc(var(--pg) * .6) !important; text-align: center;
}
body.cake-layout .round-panel .stage-result-copy .revealed-answer { font-size: calc(var(--bf) * 1.35) !important; font-weight: 900; }
body.cake-layout .round-panel .panel-result details { margin: calc(var(--pg) * .5) 0 0; border: 0; background: none; padding: 0; text-align: center; }
body.cake-layout .round-panel .panel-result summary {
  font-size: calc(var(--bf) * .7); font-weight: 700; color: var(--ink-soft); cursor: pointer;
  padding: calc(var(--pg) * .4) 0; border-bottom: 1px solid rgba(200, 150, 70, .35);
}
body.cake-layout .round-panel .panel-result details p,
body.cake-layout .round-panel .panel-result details h3,
body.cake-layout .round-panel .panel-result .audit-item { font-size: calc(var(--bf) * .7); line-height: 1.45; color: var(--ink); text-align: right; }
body.cake-layout .round-panel:has(.panel-result) { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
body.cake-layout .round-panel:has(.panel-result)::-webkit-scrollbar { display: none; }

/* ---------- reading: the button is the time marker again ---------- */
body.cake-layout #theater-stage.phase-reading .paper-stage-action .choice-time-bar { display: none; }
body.cake-layout #theater-stage.phase-reading .round-panel { justify-content: center; max-height: none; }
body.cake-layout #theater-stage.phase-reading .round-panel .round-controls > .primary {
  position: relative; isolation: isolate; overflow: hidden; height: 100%; min-height: 0; border-radius: 999px;
}
body.cake-layout #theater-stage.phase-reading.has-timer .round-panel .round-controls > .primary::before {
  display: block !important; content: ''; position: absolute; inset: 0 0 0 auto; z-index: -1;
  width: var(--time-left, 100%); transition: width .2s linear;
  background: linear-gradient(90deg, rgba(231, 136, 58, .45), rgba(242, 184, 106, .6)) !important;
}
body.cake-layout #theater-stage.phase-reading .round-panel .round-controls { height: 100%; }

@media (orientation: landscape) {
  body.cake-layout {
    --cl: calc(var(--x0) + 5.5 * var(--u));   /* left column: from here, 50u wide */
    --rx: calc(var(--x0) + 76.9 * var(--u));
    --ry: calc(var(--y0) + 32.5 * var(--u));
    --cw: calc(68 * var(--u));
  }
  body.cake-layout #theater-stage {
    left: calc(var(--x0) + 54.2 * var(--u)); top: calc(var(--y0) - 3.7 * var(--u));
    width: calc(45.4 * var(--u)); height: calc(60.5 * var(--u));
  }
  body.cake-layout .level-candle {
    left: calc(var(--x0) + 76.6 * var(--u)); top: calc(var(--y0) + 0 * var(--u));
    height: calc(15.2 * var(--u)); width: calc(3.63 * var(--u));
  }
  body.cake-layout .game-scoreboard { left: var(--cl); width: calc(50 * var(--u)); }
  body.cake-layout .round-panel { left: var(--cl); width: calc(50 * var(--u)); }
  body.cake-layout .round-panel:has(.panel-result) {
    top: calc(var(--y0) + 12.5 * var(--u)); max-height: none; justify-content: space-between;
    bottom: calc(100dvh - var(--y0) - 49.4 * var(--u));   /* no time bar on these screens: the button goes down to its row */
  }
  body.cake-layout .paper-stage-action { left: var(--cl); width: calc(50 * var(--u)); }
  body.cake-layout .game-tools { left: calc(var(--cl) + 0.3 * var(--u)); width: calc(44 * var(--u)); }
  /* reading: the button takes the time bar's place, beside the pause button */
  body.cake-layout #theater-stage.phase-reading .round-panel {
    top: calc(var(--y0) + 43.6 * var(--u)); bottom: auto; height: calc(5.8 * var(--u));
    width: calc(42.2 * var(--u));
  }
  body.cake-layout #theater-stage.phase-reading .round-panel .round-controls > .primary { font-size: calc(2.4 * var(--u)); }
}
@media (orientation: portrait) {
  body.cake-layout:has(.panel-result) { --bottom-free: calc(100dvh - var(--sb) - 72 * var(--u)); }
  body.cake-layout .round-panel:has(.panel-result) { bottom: calc(var(--sb) + 14 * var(--u)); }
  body.cake-layout:has(#theater-stage.phase-reading) { --bottom-free: calc(100dvh - var(--sb) - 28 * var(--u)); }
  body.cake-layout #theater-stage.phase-reading .round-panel {
    bottom: calc(var(--sb) + 14 * var(--u)); height: calc(10 * var(--u));
    left: calc(var(--x0) + 4.3 * var(--u)); width: calc(79.6 * var(--u));
  }
  body.cake-layout #theater-stage.phase-reading .round-panel .round-controls > .primary { font-size: calc(5 * var(--u)); }
}

/* 7 Nov 2026 fix: the time-bar strip sits in a higher layer than the cake's buttons and overlaps them,
   so it swallowed taps on "קראנו. למשפט הבא" (and other panel buttons). Only the pause button takes taps now. */
body.cake-layout .paper-stage-action,
body.cake-layout .paper-stage-action .choice-time-bar { pointer-events: none !important; }
body.cake-layout .paper-stage-action .round-pause { pointer-events: auto !important; }


/* 8 Nov 2026: portrait, while reading — the cake sits down on the button row: the foot of the
   stand ends just above ״קראנו / זכרנו״ instead of the cake being centred in the free space */
@media (orientation: portrait) {
  body.cake-layout:has(#theater-stage.phase-reading) {
    --bottom-free: calc(100dvh - var(--sb) - 15 * var(--u));
    --ck: calc(var(--bottom-free) - var(--chh));
  }
}

/* 8 Nov 2026 (2): portrait — the question, the answer and right / wrong are written inside the cake
   (scrolling when long), and the cake keeps its reading size and place on every game screen.
   Landscape is unchanged: the text stays beside the cake. */
body.cake-layout .cake-copy { display: none; }
@media (orientation: portrait) {
  body.cake-layout,
  body.cake-layout:has(.panel-question),
  body.cake-layout:has(.panel-result),
  body.cake-layout:has(#theater-stage.phase-reading) {
    --bottom-free: calc(100dvh - var(--sb) - 15 * var(--u));
    --ck: calc(var(--bottom-free) - var(--chh));
  }
  body.cake-layout .cake-copy { display: flex; }
  body.cake-layout .round-panel .panel-question,
  body.cake-layout .round-panel .panel-result { display: none; }
  body.cake-layout .cake-copy .cake-question { margin: auto 0; padding: 0; text-align: center; color: #321b24; text-wrap: balance;
    font-size: calc(6 * var(--u)); line-height: 1.22; font-weight: 900; background: none; border: 0; box-shadow: none; }
  body.cake-layout .cake-copy .cake-question.long-question { font-size: calc(5.1 * var(--u)); }
  body.cake-layout .cake-copy .cake-question.very-long-question { font-size: calc(4.4 * var(--u)); }
  /* the four choices stand over the lower part of the cake: the question uses the space above them */
  /* the question starts right under the icing; its height is fitted to the answer buttons by fitCakeCopy() */
  body.cake-layout #theater-stage:has(.cake-copy) #central-card { top: 34%; }
  body.cake-layout .cake-copy .cake-result { margin: auto 0; }
  body.cake-layout .cake-copy .stage-result-copy { background: none; margin: 0; padding: 0; text-align: center; }
  body.cake-layout .cake-copy .stage-result-copy h1 { font-size: calc(5 * var(--u)) !important; text-wrap: balance; line-height: 1.15; font-weight: 900; margin: 0 0 calc(1.6 * var(--u)) !important; color: #8a5a10; text-align: center; }
  body.cake-layout .stage-failure .cake-copy .stage-result-copy h1 { color: #9a2a1a; }
  body.cake-layout .cake-copy .stage-result-copy p { line-height: 1.4; font-weight: 700; color: var(--ink); margin: 0 0 calc(1.2 * var(--u)) !important; text-align: center; }
  body.cake-layout .cake-copy .stage-result-copy .revealed-answer { font-weight: 900; }
  body.cake-layout .cake-copy details { margin: calc(1 * var(--u)) 0 0; border: 0; background: none; padding: 0; text-align: center; }
  body.cake-layout .cake-copy summary { font-size: calc(3 * var(--u)); font-weight: 700; color: var(--ink-soft); }
  body.cake-layout .cake-copy details p, body.cake-layout .cake-copy details h3, body.cake-layout .cake-copy .audit-item { font-size: calc(3 * var(--u)); line-height: 1.45; text-align: right; }
}

/* 8 Nov 2026 (3): depth — the cake and the candle stand in front, the balloons float further back.
   The cake casts a soft, wide shadow (ambient) plus a tighter darker one under it (contact);
   the candle stick gets its own small shadow on the cake; the balloons get a lighter, smaller shadow
   and a touch of haze so they read as farther away. */
body.cake-layout #theater-stage > .round-cake {
  filter:
    drop-shadow(0 0 calc(1.6 * var(--u)) rgba(90, 50, 10, .38))
    drop-shadow(0 calc(0.6 * var(--u)) calc(0.8 * var(--u)) rgba(90, 50, 10, .35))
    drop-shadow(0 calc(2.2 * var(--u)) calc(3 * var(--u)) rgba(90, 50, 10, .32))
    drop-shadow(0 calc(5 * var(--u)) calc(8 * var(--u)) rgba(80, 40, 5, .28));
}
/* 8 Nov 2026 (5): Safari on iPad clips anything a candle layer paints outside the candle's own box
   (the candle element carries a glow filter), which showed as a grey box around it. So the candle has
   no shade of its own any more: its small shadow is added to that same filter on the candle element,
   right after the glow, which Safari draws without clipping. */
body.cake-layout .level-candle .lc-body { filter: none !important; }
body.cake-layout .level-candle::before { content: none !important; }
body.cake-layout .level-candle {
  filter: drop-shadow(0 0 calc(3.5 * var(--u)) rgba(255, 190, 80, .8))
          drop-shadow(calc(-0.5 * var(--u)) calc(0.7 * var(--u)) calc(0.7 * var(--u)) rgba(70, 35, 5, .32)) !important;
}
body.cake-layout .name-balloon img {
  filter: drop-shadow(0 3px 4px rgba(110, 60, 10, .16)) saturate(.92) brightness(.98) contrast(.95);
}
body.cake-layout .name-balloon.selected img,
body.cake-layout .name-balloon.dragging img {
  filter: drop-shadow(0 0 6px #ffd76a) drop-shadow(0 0 14px rgba(255, 200, 80, .9));
}

@media (orientation: portrait) {
  body.cake-layout .cake-copy .cake-question.xl-question { font-size: calc(3.9 * var(--u)); }
  body.cake-layout .cake-copy .cake-question.xxl-question { font-size: calc(3.5 * var(--u)); }
  body.cake-layout .paper-stage .cake-copy { padding-top: 6px; padding-bottom: 10px; }
}

/* ===== 9 Nov 2026: ״כל הרמות ברצף״ — full screen, no cake ===== */
.seq-full {
  position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) clamp(14px, 3vw, 40px) max(14px, env(safe-area-inset-bottom));
  background: #f3dcb5 url(assets/round/background-gold.jpg) center / cover no-repeat; color: #3a1d0c; overflow: hidden;
  font-family: Arial, "Arial Hebrew", sans-serif;
}
.seq-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.seq-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seq-title b { font-size: clamp(26px, 4vw, 40px); font-weight: 900; line-height: 1.05; color: #5a2e0a; }
.seq-title span { font-size: clamp(17px, 2.4vw, 23px); font-weight: 800; color: #7a5530; }
.seq-title small { font-size: clamp(15px, 2vw, 19px); color: #7a5530; }
.seq-full button.secondary, .seq-full button.primary {
  border-radius: 999px; border: 3px solid #d8a63c; background: linear-gradient(#fffdf7, #f6e7ca); color: #3a1d0c;
  font: 800 clamp(17px, 2.3vw, 22px)/1.15 Arial, "Arial Hebrew", sans-serif; min-height: 52px; padding: 8px 18px; cursor: pointer;
  box-shadow: inset 0 2px 0 #fff, 0 4px 12px rgba(110, 70, 20, .22);
}
.seq-full button.primary { background: linear-gradient(#ffe7a6, #f2bf5c); border-color: #c98d22; min-height: 64px; font-size: clamp(22px, 3vw, 30px); width: 100%; }
.seq-home { flex: none; }
.seq-card {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(#fffdf7, #f8ebd0); border: 4px solid #d8a63c; border-radius: 28px;
  box-shadow: 0 0 0 3px #f6dc94, 0 14px 30px rgba(110, 60, 10, .25), inset 0 2px 0 #fff;
  padding: clamp(18px, 3.5vw, 40px);
}
.seq-sentence { margin: 0; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.55; font-weight: 800; color: #321b24; }
.seq-sentence.small { font-size: clamp(19px, 2.6vw, 26px); line-height: 1.5; }
.seq-param {
  display: inline; font: inherit; color: #7a3d00; background: rgba(242, 191, 92, .28); border: 0; border-bottom: 3px dotted #c98d22;
  border-radius: 8px; padding: 0 4px; margin: 0 1px; cursor: pointer; line-height: inherit;
}
.seq-param:active { background: rgba(242, 191, 92, .55); }
.seq-hint { margin: 18px 0 0; font-size: clamp(14px, 1.8vw, 17px); color: #8a6a40; }
.seq-qnum { margin: 0 0 6px; font-weight: 800; color: #8a5a10; font-size: clamp(16px, 2.2vw, 20px); }
.seq-question { margin: 0 0 18px; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; font-weight: 900; color: #321b24; }
.seq-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seq-choices .choice { min-height: 64px; border-radius: 18px; border: 3px solid #d8a63c; background: #fffaf0; font: 800 clamp(19px, 2.6vw, 26px)/1.2 Arial, sans-serif; color: #3a1d0c; padding: 10px 14px; cursor: pointer; }
.seq-choices .choice.sequence-correct { background: #dff3d8; border-color: #4f9d6a; }
.seq-choices .choice.sequence-incorrect { background: #f8dcd6; border-color: #c4523f; }
.seq-full .sequence-answer { font-size: clamp(20px, 2.8vw, 28px); margin: 14px 0 0; }
.seq-full .sequence-reveal { margin-top: 14px; font-size: 18px; background: none; border: 0; text-decoration: underline; color: #7a5530; cursor: pointer; }
.seq-story-again { margin-top: 18px; }
.seq-story-again summary { cursor: pointer; font-weight: 800; color: #7a5530; font-size: 18px; }
.seq-bottom { flex: none; display: flex; flex-direction: column; gap: 10px; }
.seq-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
@media (max-width: 560px) { .seq-choices { grid-template-columns: 1fr; } .seq-nav { grid-template-columns: 1fr 1fr; } .seq-nav > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }
/* the list of values behind a parameter */
.seq-pop { position: fixed; inset: 0; z-index: 90; background: rgba(40, 20, 5, .45); display: flex; align-items: center; justify-content: center; padding: 16px; animation: alias-in .2s ease both; }
.seq-pop-card { position: relative; width: min(100%, 760px); max-height: 86dvh; overflow-y: auto; background: #fffdf7; border: 4px solid #d8a63c; border-radius: 26px;
  padding: 22px 22px 18px; box-shadow: 0 20px 50px rgba(60, 30, 5, .4); color: #3a1d0c; font-family: Arial, sans-serif; }
.seq-pop-card h2 { margin: 0 0 4px; font-size: 30px; }
.seq-pop-sub { margin: 0 0 14px; font-size: 18px; color: #7a5530; }
.seq-pop-close { position: absolute; top: 10px; left: 12px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #d8a63c; background: #fff; font-size: 26px; cursor: pointer; }
.seq-pop-list { display: flex; flex-wrap: wrap; gap: 8px; }
.seq-val { padding: 7px 14px; border-radius: 999px; font-size: 18px; font-weight: 700; border: 2px solid #d9c49a; background: #fff8e6; }
.seq-val.chosen { background: #f2bf5c; border-color: #c98d22; font-weight: 900; }
.seq-val.off { opacity: .45; text-decoration: line-through; border-style: dashed; }
.seq-pop-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 0; font-size: 15px; color: #7a5530; }
.seq-pop-legend .chosen::before, .seq-pop-legend .ok::before, .seq-pop-legend .off::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 5px; vertical-align: middle; }
.seq-pop-legend .chosen::before { background: #f2bf5c; } .seq-pop-legend .ok::before { background: #fff8e6; border: 2px solid #d9c49a; } .seq-pop-legend .off::before { border: 2px dashed #d9c49a; opacity: .6; }
.seq-full .seq-title { flex: 1 1 auto; }
.seq-full .seq-top > .seq-home { width: auto !important; flex: 0 0 auto; max-width: 40%; }
.seq-full .seq-nav > button { width: auto !important; min-width: 0; }

/* ===== 9 Nov 2026: media rounds (candle 8, 18 … 78) — the golden TV instead of the cake,
   on the dark background with light rising from below; slow turning rays over it ===== */
body.round-ui.tv-bg { background: #000 url(assets/tv/background.jpg) center bottom / cover no-repeat; }
body.tv-bg::after {
  content: ''; position: fixed; left: 50%; bottom: -80vmax; width: 160vmax; height: 160vmax; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 196, 100, 0) 0deg, rgba(255, 196, 100, .16) 4deg, rgba(255, 196, 100, 0) 8deg, rgba(255, 196, 100, 0) 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 48%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 48%);
  transform: translateX(-50%) rotate(-5deg); animation: tv-rays 16s ease-in-out infinite alternate;
}
@keyframes tv-rays { to { transform: translateX(-50%) rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { body.tv-bg::after { animation: none; } }
/* the TV picture: 1404 × 987, its screen is 10.8–87.1% across and 13.8–81% down */
body.cake-layout.tv-round #theater-stage > .round-cake.round-tv {
  inset: auto; left: 0; top: 25%; width: 100%; height: auto; aspect-ratio: var(--tvar, 1404 / 987);
  filter: drop-shadow(0 0 calc(2.4 * var(--u)) rgba(255, 190, 80, .35)) drop-shadow(0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, .55));
}
body.cake-layout.tv-round #theater-stage #central-card { left: 13% !important; right: auto !important; inset-inline-end: auto !important; width: 72% !important; top: 33.4% !important; height: 32.7% !important; }
@media (orientation: portrait) {
  /* wider than the cake box, so the screen has room */
  /* 9 Nov 2026 (2): the TV has its own size and place — the stage box itself becomes the TV
     (as wide as the screen allows, sitting just above the buttons), and the candle stands on it */
  body.cake-layout.tv-round {
    --tvw: min(96vw, calc(98 * var(--u)), calc((var(--bottom-free) - var(--top-free) - 24 * var(--u)) * var(--tvr, 1.4225)));
    --tvh: calc(var(--tvw) / var(--tvr, 1.4225));
    --tvt: calc(var(--bottom-free) - var(--tvh) - 10 * var(--u)); /* the feet stay above the button */
  }
  body.cake-layout.tv-round #theater-stage { left: calc(50vw - var(--tvw) / 2) !important; top: var(--tvt) !important; width: var(--tvw) !important; height: var(--tvh) !important; }
  body.cake-layout.tv-round #theater-stage > .round-cake.round-tv { left: 0; top: 0; width: 100%; height: 100%; }
  body.cake-layout.tv-round #theater-stage #central-card { left: var(--sl, 12.5%) !important; right: auto !important; width: var(--sw, 73%) !important; top: var(--sy, 16%) !important; height: var(--sh, 63%) !important; }
  body.cake-layout.tv-round .level-candle {
    --ch: min(calc(22 * var(--u)), calc(var(--tvt) - var(--top-free) + 2 * var(--u)));
    top: calc(var(--tvt) + var(--tvh) * var(--cand, .035) - var(--ch)) !important; height: var(--ch) !important; width: calc(var(--ch) * 0.23875) !important;
  }
}

/* ״כל הרמות ברצף״: media formulas are shown on the TV as well */
.seq-full.seq-tv { background: #000 url(assets/tv/background.jpg) center bottom / cover no-repeat; color: #fff; }
.seq-full.seq-tv .seq-title b, .seq-full.seq-tv .seq-title span, .seq-full.seq-tv .seq-title small { color: #ffe7a6; }
.seq-full.seq-tv .seq-card {
  flex: 0 1 auto; align-self: center; width: min(100%, calc((100dvh - 260px) * 1.4225)); aspect-ratio: var(--tvar, 1404 / 987); max-height: none;
  background: url(assets/tv/tv.webp) center / 100% 100% no-repeat; border: 0; border-radius: 0; box-shadow: none;
  padding: 10.5% 15% 14.5% 13.5%; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6));
}
.seq-full.seq-tv .seq-sentence { font-size: clamp(18px, 2.6vw, 32px); }
.seq-full.seq-tv .seq-question { font-size: clamp(20px, 2.8vw, 34px); }
.seq-full.seq-tv .seq-choices .choice { min-height: 48px; font-size: clamp(15px, 1.9vw, 21px); }
.seq-full.seq-tv .seq-bottom { margin-top: auto; }
@media (orientation: portrait) {
  /* the question on the TV: the TV moves up so the four answers sit under it, not over the screen */
  /* 10 Nov 2026: removed — the frame stays where it is on the question / result screens, like the cake */
}

/* 9 Nov 2026 (3): on the TV the cake's beams (turning around the middle) are off; the TV's own beams
   turn around a point at the bottom of the screen, where the light comes from */
body.tv-bg .stage-rays { display: none !important; }
body.tv-bg::after {
  left: 50% !important; bottom: auto !important; top: 100% !important; width: 220vmax !important; height: 220vmax !important;
  transform: translate(-50%, -50%) !important; transform-origin: 50% 50% !important;
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 25%, transparent 45%) !important;
  mask-image: radial-gradient(circle, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 25%, transparent 45%) !important;
  animation: tv-rays-turn 90s linear infinite !important;
}
@keyframes tv-rays-turn { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body.tv-bg::after { animation: none !important; } }
/* the sentence on the TV: a size that fits the screen of the TV */
@media (orientation: portrait) {
  body.cake-layout.tv-round .sentence { font-size: calc(3.7 * var(--u)) !important; line-height: 1.4; }
  body.cake-layout.tv-round .stage-scroll { padding: calc(1 * var(--u)) calc(1.4 * var(--u)) !important; }
}

/* ===== 9 Nov 2026 (4): media rounds in landscape — the TV fits inside the right column (not cut at the
   screen edge), its feet under the candle, and the question / right / wrong text is written on its
   screen (the left column only keeps the answer buttons) ===== */
@media (orientation: landscape) {
  body.cake-layout.tv-round #theater-stage > .round-cake.round-tv { left: 4% !important; width: 90% !important; top: var(--ly, 29.5%) !important; height: auto !important; }
  body.cake-layout.tv-round #theater-stage > #central-card {
    left: var(--lsl, 15.5%) !important; right: auto !important; inset-inline-start: auto; width: var(--lsw, 65.5%) !important;
    top: var(--lsy, 37.3%) !important; height: var(--lsh, 29.5%) !important;
  }
  body.cake-layout.tv-round .sentence { font-size: calc(2 * var(--u)) !important; line-height: 1.4; }
  body.cake-layout.tv-round .cake-copy { display: flex; }
  body.cake-layout.tv-round .round-panel .panel-question,
  body.cake-layout.tv-round .round-panel .panel-result { display: none; }
  body.cake-layout.tv-round .cake-copy .cake-question { margin: auto 0; text-align: center; color: #321b24; font-weight: 900; line-height: 1.25;
    font-size: calc(2.5 * var(--u)); background: none; border: 0; box-shadow: none; padding: 0; text-wrap: balance; }
  body.cake-layout.tv-round .cake-copy .cake-question.long-question { font-size: calc(2.2 * var(--u)); }
  body.cake-layout.tv-round .cake-copy .cake-question.very-long-question { font-size: calc(1.9 * var(--u)); }
  body.cake-layout.tv-round .cake-copy .cake-result { margin: auto 0; width: 100%; }
  body.cake-layout.tv-round .cake-copy .stage-result-copy { background: none; margin: 0; padding: 0; text-align: center; }
  body.cake-layout.tv-round .cake-copy .stage-result-copy h1 { font-size: calc(2.4 * var(--u)) !important; color: #8a5a10; margin: 0 0 calc(.6 * var(--u)) !important; text-align: center; }
  body.cake-layout.tv-round .stage-failure .cake-copy .stage-result-copy h1 { color: #9a2a1a; }
  body.cake-layout.tv-round .cake-copy .stage-result-copy p { font-size: calc(1.6 * var(--u)) !important; color: #321b24; font-weight: 700; margin: 0 0 calc(.5 * var(--u)) !important; text-align: center; }
  body.cake-layout.tv-round .cake-copy .stage-result-copy .revealed-answer { font-size: calc(2 * var(--u)) !important; }
  body.cake-layout.tv-round .cake-copy details { text-align: center; border: 0; background: none; padding: 0; }
  body.cake-layout.tv-round .cake-copy summary { font-size: calc(1.3 * var(--u)); color: #7a5530; }
  body.cake-layout.tv-round .cake-copy details p { font-size: calc(1.4 * var(--u)); text-align: right; }
}

/* ===== 9 Nov 2026 (5): the new wide cake (1474 × 1026) — every round uses the TV's size and place;
   only the writing area and the candle's foot differ ===== */
body.cake-layout.tv-round.wide-cake {
  --tvar: 1474 / 1026;
  --sl: 9%; --sw: 82%; --sy: 30%; --sh: 44%;   /* the front of the cake, under the drips, above the leaves */
  --cand: .13;                                  /* the candle stands on the top of the cake */
  --ly: 24.5%; --lsl: 12%; --lsw: 74%; --lsy: 38.4%; --lsh: 20.5%;
}
body.cake-layout.tv-round.wide-cake #theater-stage > .round-cake.round-tv {
  filter: drop-shadow(0 0 calc(1.4 * var(--u)) rgba(90, 50, 10, .35)) drop-shadow(0 calc(1.6 * var(--u)) calc(2.6 * var(--u)) rgba(90, 50, 10, .32));
}

/* ===== 9 Nov 2026 (6): media frames — documentaries on the scroll, the book formula in a book,
   the other media sentences on the TV or the iPad. Each frame gives its ratio, writing area and candle foot ===== */
body.cake-layout.tv-round.frame-scroll { --tvr: 1.617; --tvar: 1486 / 919; --sl: 8%; --sw: 84%; --sy: 14%; --sh: 70%; --cand: .04;
  --ly: 29.3%; --lsl: 11.2%; --lsw: 75.6%; --lsy: 35.1%; --lsh: 29.2%; }
body.cake-layout.tv-round.frame-ipad { --tvr: 1.5166; --tvar: 1465 / 966; --sl: 7%; --sw: 86%; --sy: 10%; --sh: 78%; --cand: .035;
  --ly: 29.5%; --lsl: 10.3%; --lsw: 77.4%; --lsy: 34.1%; --lsh: 34.6%; }
body.cake-layout.tv-round.frame-book { --tvr: 1.5704; --tvar: 1473 / 938; --sl: 9%; --sw: 82%; --sy: 8%; --sh: 76%; --cand: .03;
  --ly: 29.7%; --lsl: 12.1%; --lsw: 73.8%; --lsy: 33.1%; --lsh: 32.6%; }
/* the book picture is cut on its left side: in portrait it runs off the left edge of the screen, so the cut is the screen's edge */
@media (orientation: portrait) {
  body.cake-layout.tv-round.frame-book #theater-stage { left: 0 !important; }
}
/* ״כל הרמות ברצף״ */
.seq-full.seq-tv.seq-frame-ipad .seq-card { background-image: url(assets/media/ipad.webp); aspect-ratio: 1465 / 966; padding: 6% 8% 7% 8%; }
.seq-full.seq-tv.seq-frame-scroll .seq-card { background-image: url(assets/media/scroll.webp); aspect-ratio: 1486 / 919; padding: 8% 9% 7% 9%; }
.seq-full.seq-tv.seq-frame-book .seq-card { background-image: url(assets/media/book.webp); aspect-ratio: 1473 / 938; padding: 5% 7% 9% 10%; }

/* ===== 10 Nov 2026: the writing on the TV / iPad / book / scroll as big as the writing on the cake ===== */
@media (orientation: portrait) {
  body.cake-layout.tv-round .sentence { font-size: calc(4.6 * var(--u)) !important; line-height: 1.45; }
}
@media (orientation: landscape) {
  body.cake-layout.tv-round .sentence { font-size: calc(2.3 * var(--u)) !important; line-height: 1.45; }
  body.cake-layout.tv-round .cake-copy .cake-question { font-size: calc(2.9 * var(--u)); }
  body.cake-layout.tv-round .cake-copy .cake-question.long-question { font-size: calc(2.5 * var(--u)); }
  body.cake-layout.tv-round .cake-copy .cake-question.very-long-question { font-size: calc(2.2 * var(--u)); }
  body.cake-layout.tv-round .cake-copy .stage-result-copy h1 { font-size: calc(2.8 * var(--u)) !important; }
  body.cake-layout.tv-round .cake-copy .stage-result-copy p { font-size: calc(1.9 * var(--u)) !important; }
  body.cake-layout.tv-round .cake-copy .stage-result-copy .revealed-answer { font-size: calc(2.3 * var(--u)) !important; }
}

/* ===== 10 Nov 2026: cluster themes — their own background and cake, white writing on the cake ===== */
body.round-ui.cl-worry { background: #3a4a62 url(assets/clusters/bg-worry.jpg) center / cover no-repeat; }
body.round-ui.cl-gossip { background: #b07070 url(assets/clusters/bg-gossip.jpg) center / cover no-repeat; }
body.round-ui.cl-tech { background: #1d6670 url(assets/clusters/bg-tech.jpg) center / cover no-repeat; }
body.round-ui.cl-clean { background: #bfe0cc url(assets/clusters/bg-clean.jpg) center / cover no-repeat; }
body.round-ui.cl-politics { background: #5d7aa8 url(assets/clusters/bg-politics.jpg) center / cover no-repeat; }
:is(body.cl-worry, body.cl-gossip, body.cl-tech, body.cl-clean, body.cl-politics) .stage-rays,
:is(body.cl-worry, body.cl-gossip, body.cl-tech, body.cl-clean, body.cl-politics) .spotlights { opacity: 0; }
:is(body.cl-worry, body.cl-tech) #central-card,
:is(body.cl-worry, body.cl-tech) #central-card :is(.sentence, .formula-tag, .cake-question, h1, h2, h3, p, summary, .revealed-answer, .audit-item, span, b, strong, em) {
  color: #fff !important; text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 10px rgba(0, 0, 0, .25);
}
:is(body.cl-worry, body.cl-tech) #central-card .formula-tag { opacity: .85; }

:is(body.cl-worry, body.cl-gossip, body.cl-tech, body.cl-clean, body.cl-politics) #theater-stage > .round-cake {
  filter: drop-shadow(0 0 calc(1.6 * var(--u)) rgba(0, 0, 0, .35)) drop-shadow(0 calc(2.2 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, .35)) !important;
}
/* the cream cakes (סדר וניקיון, פוליטיקה): the white writing gets a darker outline to stay readable */
body.cl-none-x #central-card,
body.cl-none-x #central-card :is(.sentence, .formula-tag, .cake-question, h1, h2, h3, p, summary, .revealed-answer, .audit-item, span, b, strong, em) {
  text-shadow: 0 0 2px rgba(40, 30, 20, .9), 0 1px 3px rgba(40, 30, 20, .85), 0 0 8px rgba(40, 30, 20, .55) !important;
}

/* 10 Nov 2026: the turning tray between clusters */
/* (no perspective on the stage: it would become the box of its fixed-position children — the buttons and the candle) */
body > .round-cake.cake-turn-out { perspective: none; z-index: 1; pointer-events: none; transform-origin: 50% 85%; transform-origin: 50% 100%; animation: cake-turn-out .7s cubic-bezier(.5, 0, .8, .5) both; }
#theater-stage > .round-cake.cake-turn-in { transform-origin: 50% 100%; animation: cake-turn-in .9s cubic-bezier(.25, .8, .3, 1.05) .35s both; }
@keyframes cake-turn-out { to { transform: translateY(16%) scale(.5); opacity: 0; } }
@keyframes cake-turn-in { from { transform: translateY(22%) scale(.55); opacity: 0; } 55% { opacity: 1; } to { transform: none; opacity: 1; } }
body.cake-swapping .level-candle, body.cake-swapping #central-card { animation: cake-top-in .45s ease var(--swap-left, 1.25s) both !important; }
@keyframes cake-top-in { from { opacity: 0; } to { opacity: 1; } }
.bg-fade { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: center / cover no-repeat; animation: bg-fade-out 1.2s ease both; }
@keyframes bg-fade-out { from { opacity: 1; } to { opacity: 0; } }
/* the question on the frame starts at the top of its page, so the four answers below it never cover it */
@media (orientation: portrait) {
  body.cake-layout.tv-round:has(.choices) .cake-copy .cake-question { margin: 0 0 auto !important; font-size: calc(4.4 * var(--u)) !important; line-height: 1.22; }
  body.cake-layout.tv-round:has(.choices) .cake-copy .cake-question.long-question,
  body.cake-layout.tv-round:has(.choices) .cake-copy .cake-question.very-long-question { font-size: calc(3.8 * var(--u)) !important; }
}

/* 10 Nov 2026: travel, and the media cake (on the dark media background) */
body.round-ui.cl-travel { background: #e8cf98 url(assets/clusters/bg-travel.jpg) center / cover no-repeat; }
:is(body.cl-travel, body.cl-media) .stage-rays, :is(body.cl-travel, body.cl-media) .spotlights { opacity: 0; }

/* ===== 10 Nov 2026 (2): portrait like the example — the bottom row of tools moves into a menu, the buttons
   go down to the bottom of the screen, and the cake is as wide as the screen allows, low, its stand under
   the buttons; a small candle in the middle of its top; writing sized from the cake ===== */
@media (orientation: portrait) {
  body.cake-layout:not(.tv-round),
  body.cake-layout:not(.tv-round):has(.panel-question),
  body.cake-layout:not(.tv-round):has(.panel-result),
  body.cake-layout:not(.tv-round):has(#theater-stage.phase-reading) {
    --btc: calc(100dvh - var(--sb) - 10 * var(--u));                 /* the middle of the main button */
    --chh: min(calc(92.7vw * 4 / 3), calc((var(--btc) - var(--st) - 17 * var(--u)) / .741)) !important;
    --ck: calc(var(--btc) - var(--chh) * .891) !important;
    --cf: max(calc(var(--chh) * .75 * .041), calc(4.2 * var(--u)));
  }
  body.cake-layout:not(.tv-round) #theater-stage { left: calc(50vw - var(--chh) * .375) !important; top: var(--ck) !important; width: calc(var(--chh) * .75) !important; height: var(--chh) !important; }
  body.cake-layout:not(.tv-round) #theater-stage #central-card { left: 24% !important; width: 52% !important; top: 41% !important; }
  body.cake-layout:not(.tv-round) #theater-stage #central-card { height: 33%; } /* (not !important: on the question / result screens fitCakeCopy() sets it to end above the answer panel) */
  body.cake-layout:not(.tv-round) #theater-stage:has(.cake-copy) #central-card { top: 33% !important; }
  body.cake-layout:not(.tv-round) .sentence { font-size: var(--cf) !important; line-height: 1.32; }
  body.cake-layout:not(.tv-round) .formula-tag { font-size: calc(var(--cf) * .42) !important; }
  body.cake-layout:not(.tv-round) .cake-copy .cake-question { font-size: calc(var(--cf) * 1.05) !important; line-height: 1.25; }
  body.cake-layout:not(.tv-round) .cake-copy .cake-question.long-question { font-size: calc(var(--cf) * .92) !important; }
  body.cake-layout:not(.tv-round) .cake-copy .cake-question.very-long-question { font-size: calc(var(--cf) * .8) !important; }
  body.cake-layout:not(.tv-round) .cake-copy .stage-result-copy h1 { font-size: calc(var(--cf) * 1.05) !important; }
  body.cake-layout:not(.tv-round) .cake-copy .stage-result-copy p { font-size: calc(var(--cf) * .75) !important; }
  body.cake-layout:not(.tv-round) .cake-copy .stage-result-copy .revealed-answer { font-size: calc(var(--cf) * .9) !important; }
  body.cake-layout:not(.tv-round) .scroll-rail { left: calc(-1 * var(--cf) * .6) !important; width: calc(var(--cf) * .1) !important; }
  body.cake-layout:not(.tv-round) .level-candle {
    --ch: calc(var(--chh) * .12) !important; left: 50vw !important; transform: translateX(-50%) !important;
    top: calc(var(--ck) + var(--chh) * .283 - var(--ch)) !important; height: var(--ch) !important; width: calc(var(--ch) * 0.23875) !important;
  }
  /* the buttons one row lower (the tools row is gone), leaving room for the menu button on the left */
  body.cake-layout .round-panel { transform: translateY(calc(11.7 * var(--u))); }
  body.cake-layout .paper-stage-action { transform: translateY(calc(11.7 * var(--u))); }
}
/* the menu: one round button; it opens the sound, the topic map and save & exit */
.game-menu-btn { display: none; }
body.cake-layout .game-menu-btn { display: grid; place-items: center; position: fixed; z-index: 25; left: calc(var(--x0) + 3 * var(--u)); bottom: calc(var(--sb) + 4.6 * var(--u)); width: calc(10.5 * var(--u)); height: calc(10.5 * var(--u));
  border-radius: 50%; border: 3px solid #e2b04a; background: radial-gradient(circle at 35% 30%, #fff8e6, #f3d59a); color: #5a3510; font: 900 calc(2.6 * var(--u))/1 Arial, "Arial Hebrew", sans-serif; box-shadow: 0 4px 10px rgba(90, 50, 10, .35); cursor: pointer; padding: 0; }
@media (orientation: portrait) {
  body.cake-layout .game-tools { display: none !important; }
  body.cake-layout.menu-open .game-tools { display: flex !important; flex-direction: column; align-items: stretch; gap: calc(2 * var(--u)); z-index: 26;
    left: calc(var(--x0) + 3 * var(--u)); width: calc(52 * var(--u)); height: auto; bottom: calc(var(--sb) + 17 * var(--u)); padding: calc(3 * var(--u));
    background: rgba(255, 248, 230, .97); border: 3px solid #e2b04a; border-radius: calc(4 * var(--u)); box-shadow: 0 10px 30px rgba(60, 30, 5, .4); }
  body.cake-layout.menu-open .game-tools > * { width: 100% !important; height: calc(11 * var(--u)) !important; flex: none !important; }
  body.cake-layout.menu-open .game-tools .game-sound { width: calc(11 * var(--u)) !important; align-self: center; }
}
@media (orientation: landscape) { body.cake-layout .game-menu-btn { display: none; } }
/* the answers and buttons always in front of the (bigger) cake */
body.cake-layout .round-panel { z-index: 20 !important; }

/* 10 Nov 2026: the menu button in the top-left corner, under the team bar — apart from the answer buttons,
   which stay centred; its window opens downwards */
@media (orientation: portrait) {
  body.cake-layout .game-menu-btn { left: max(calc(2 * var(--u)), calc(var(--x0) + 2 * var(--u))); bottom: auto; top: calc(var(--st) + 16.5 * var(--u)); width: calc(9.5 * var(--u)); height: calc(9.5 * var(--u)); font-size: calc(2.3 * var(--u)); }
  body.cake-layout.menu-open .game-tools { bottom: auto !important; top: calc(var(--st) + 28 * var(--u)); left: max(calc(2 * var(--u)), calc(var(--x0) + 2 * var(--u))); }
}

/* 10 Nov 2026: a modest scroll mark, shorter, in each cake's own colours */
body.cake-layout .scroll-rail { top: 28% !important; bottom: 28% !important; background: rgba(120, 80, 30, .12) !important; }
body.cake-layout .scroll-rail i { background: linear-gradient(#e2b45a, #b07a2a) !important; box-shadow: none !important; opacity: .85; }
body.cl-worry .scroll-rail { background: rgba(200, 215, 235, .15) !important; } body.cl-worry .scroll-rail i { background: linear-gradient(#c9d6ea, #8ea3c4) !important; }
body.cl-gossip .scroll-rail { background: rgba(90, 30, 30, .15) !important; } body.cl-gossip .scroll-rail i { background: linear-gradient(#a3485a, #6e2233) !important; }
body.cl-tech .scroll-rail { background: rgba(120, 220, 230, .12) !important; } body.cl-tech .scroll-rail i { background: linear-gradient(#7fd3de, #3c9aa8) !important; }
body.cl-clean .scroll-rail { background: rgba(100, 140, 110, .14) !important; } body.cl-clean .scroll-rail i { background: linear-gradient(#a9c7af, #6f9a7b) !important; }
body.cl-politics .scroll-rail { background: rgba(40, 70, 130, .12) !important; } body.cl-politics .scroll-rail i { background: linear-gradient(#5d7cbf, #2b4684) !important; }
body.cl-travel .scroll-rail { background: rgba(140, 80, 40, .14) !important; } body.cl-travel .scroll-rail i { background: linear-gradient(#d39a5c, #9c5f2c) !important; }
body.cl-media .scroll-rail { background: rgba(110, 60, 80, .14) !important; } body.cl-media .scroll-rail i { background: linear-gradient(#b98aa0, #7d4e66) !important; }

/* 10 Nov 2026: book, planning and food */
body.round-ui.cl-book { background: #4e6a35 url(assets/clusters/bg-book.jpg) center / cover no-repeat; }
body.round-ui.cl-planning { background: #3d7fc7 url(assets/clusters/bg-planning.jpg) center / cover no-repeat; }
body.round-ui.cl-food { background: #f6dcb4 url(assets/clusters/bg-food.jpg) center / cover no-repeat; }
:is(body.cl-book, body.cl-planning, body.cl-food) .stage-rays, :is(body.cl-book, body.cl-planning, body.cl-food) .spotlights { opacity: 0; }
body.cl-planning #central-card, body.cl-planning #central-card :is(.sentence, .formula-tag, .cake-question, h1, h2, h3, p, summary, .revealed-answer, .audit-item, span, b, strong, em) { color: #fff !important; text-shadow: 0 1px 3px rgba(0, 20, 60, .6); }
body.cl-book .scroll-rail { background: rgba(60, 80, 40, .14) !important; } body.cl-book .scroll-rail i { background: linear-gradient(#8aa06a, #4e6a35) !important; }
body.cl-planning .scroll-rail { background: rgba(255, 255, 255, .15) !important; } body.cl-planning .scroll-rail i { background: linear-gradient(#e8f0ff, #9bb8e6) !important; }
body.cl-food .scroll-rail { background: rgba(160, 80, 50, .12) !important; } body.cl-food .scroll-rail i { background: linear-gradient(#f0a070, #c0603a) !important; }
/* phones: on the question / result screens the cake moves up into the free space above it, so the question
   has room above the answer panel */
@media (orientation: portrait) and (max-aspect-ratio: 3/5) {
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) { --ck: max(calc(var(--btc) - var(--chh) * .891 - 40 * var(--u)), calc(var(--st) + 18 * var(--u) - var(--chh) * .14)) !important; }
}

/* ===== 10 Nov 2026: question / result screens (portrait) — the answers, the time bar and the pause sit inside
   the body of the cake; the question starts at the top of the cake ===== */
@media (orientation: portrait) {
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) {
    --bw: calc(var(--chh) * .75 * .62);
    --bb: calc(var(--ck) + var(--chh) * var(--bbf, .72));            /* the bottom of the cake's body */
  }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .paper-stage-action {
    transform: none !important; left: calc(50vw - var(--bw) / 2) !important; width: var(--bw) !important;
    top: calc(var(--bb) - 8.5 * var(--u)) !important; bottom: auto !important; height: calc(7.5 * var(--u)) !important;
  }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .paper-stage-action .round-pause { width: calc(7.5 * var(--u)) !important; height: calc(7.5 * var(--u)) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .round-panel {
    transform: none !important; left: calc(50vw - var(--bw) / 2) !important; width: var(--bw) !important;
    top: auto !important; bottom: calc(100dvh - var(--bb) + 10 * var(--u)) !important; max-height: calc(var(--chh) * .4) !important;
  }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .round-panel :is(.choice, .mode-pick > button, .host-verdict > button, .round-controls > button) {
    min-height: calc(var(--bw) * .14) !important; font-size: calc(var(--bw) * .045) !important; padding: calc(var(--bw) * .015) calc(var(--bw) * .03) !important;
  }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .round-panel .mode-pick > button small { font-size: calc(var(--bw) * .03) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .round-panel :is(.choices, .mode-pick, .host-verdict) { gap: calc(var(--bw) * .025) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .round-panel .host-answer { padding: calc(var(--bw) * .02) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .round-panel .host-answer strong { font-size: calc(var(--bw) * .05) !important; line-height: 1.2; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .round-panel .host-answer-label { font-size: calc(var(--bw) * .03) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .cake-copy .cake-question { font-size: calc(var(--cf) * .95) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .cake-copy .cake-question.long-question { font-size: calc(var(--cf) * .85) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .cake-copy .cake-question.very-long-question { font-size: calc(var(--cf) * .74) !important; }
  /* the question from the top of the cake's body */
  body.cake-layout:not(.tv-round) #theater-stage:has(.cake-copy) #central-card { top: 35% !important; left: 21% !important; width: 58% !important; }
  body.cake-layout:not(.tv-round) .cake-copy .cake-question { margin: 0 0 auto !important; }
}
/* the phone-only move of the cake is no longer needed */
@media (orientation: portrait) and (max-aspect-ratio: 3/5) {
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) { --ck: calc(var(--btc) - var(--chh) * .891) !important; }
}
/* the question starts right under each cake's top decoration (braid, drips, waves…) */
@media (orientation: portrait) {
  body.cake-layout:not(.tv-round) #theater-stage:has(.cake-copy) #central-card { top: var(--qt, 41%) !important; }
  body.cl-worry { --qt: 36%; } body.cl-gossip { --qt: 46%; } body.cl-tech { --qt: 42%; } body.cl-clean { --qt: 42%; }
  body.cl-politics { --qt: 39%; } body.cl-travel { --qt: 38%; } body.cl-media { --qt: 37%; } body.cl-book { --qt: 36%; }
  body.cl-planning { --qt: 39%; } body.cl-food { --qt: 39%; }
}
/* phones: the cake is narrow, so the time bar and pause sit on the cake's plate and the answers at the very
   bottom of its body — the question keeps the body above them */
@media (orientation: portrait) and (max-aspect-ratio: 3/5) {
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .paper-stage-action { top: calc(var(--bb) + 1.2 * var(--u)) !important; height: calc(6.5 * var(--u)) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .paper-stage-action .round-pause { width: calc(6.5 * var(--u)) !important; height: calc(6.5 * var(--u)) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .round-panel { bottom: calc(100dvh - var(--bb) - 0.5 * var(--u)) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .round-panel :is(.choice, .mode-pick > button, .host-verdict > button, .round-controls > button) { min-height: calc(var(--bw) * .12) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .cake-copy .cake-question { font-size: calc(var(--cf) * .82) !important; }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .cake-copy .cake-question.long-question,
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy) .cake-copy .cake-question.very-long-question { font-size: calc(var(--cf) * .72) !important; }
  body.cl-gossip { --qt: 44%; }
}
/* 10 Nov 2026: ״עוד סיפור, עוד נר״ and the buttons into the other games stay outside the cake, at the bottom */
@media (orientation: portrait) {
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy):has(.round-panel [data-action="continue"]) .round-panel {
    left: calc(var(--x0) + 4 * var(--u)) !important; width: calc(92 * var(--u)) !important; top: auto !important;
    bottom: calc(var(--sb) + 25.5 * var(--u)) !important; max-height: calc(70 * var(--u)) !important; transform: translateY(calc(11.7 * var(--u))) !important;
  }
  body.cake-layout:not(.tv-round):has(#theater-stage .cake-copy):has(.round-panel [data-action="continue"]) .round-panel .round-controls > button {
    min-height: calc(14 * var(--u)) !important; font-size: calc(5.6 * var(--u)) !important; padding: 0 calc(4 * var(--u)) !important;
  }
}
/* while the cake changes, the buttons inside it wait and come with it */
body.cake-swapping .round-panel, body.cake-swapping .paper-stage-action { animation: cake-top-in .45s ease var(--swap-left, 1.25s) both !important; }

/* 10 Nov 2026: the new cakes — where each one's body starts (question) and ends (buttons) */
@media (orientation: portrait) {
  body.cl-worry { --qt: 40%; --bbf: .73; } body.cl-tech { --qt: 37%; --bbf: .79; } body.cl-media { --qt: 36%; --bbf: .75; }
  body.cl-travel { --qt: 37%; --bbf: .72; } body.cl-clean { --qt: 40%; --bbf: .8; } body.cl-politics { --qt: 37%; --bbf: .79; }
  body.cl-gossip { --qt: 36.5%; --bbf: .704; }
  :is(body.cl-worry, body.cl-tech, body.cl-media, body.cl-travel, body.cl-clean, body.cl-politics, body.cl-gossip) #theater-stage:not(:has(.cake-copy)) #central-card { top: calc(var(--qt) + 1%) !important; height: calc((var(--bbf) * 100%) - var(--qt) - 5%) !important; }
}
@media (orientation: portrait) and (max-aspect-ratio: 3/5) { body.cl-gossip { --qt: 42%; } }

body.round-ui.cl-couple { background: #c9a7a0 url(assets/clusters/bg-couple.jpg) center / cover no-repeat; }
body.cl-couple .stage-rays, body.cl-couple .spotlights { opacity: 0; }
body.cl-couple .scroll-rail { background: rgba(110, 80, 120, .14) !important; } body.cl-couple .scroll-rail i { background: linear-gradient(#b79ac4, #7d5c8c) !important; }


/* ===== 11 Nov 2026: רכילות — the yellow cake, centred like the rest; a text box 1035:763 on its face
   (canvas 19.2%–80.6% across, 36.5%–70.4% down), the writing as big as the box allows ===== */
@media (orientation: portrait) {
  body.cake-layout.cl-gossip:not(.tv-round) { --cf: calc(var(--chh) * .75 * .6133 * .078) !important; }
  body.cake-layout.cl-gossip:not(.tv-round) #theater-stage #central-card,
  body.cake-layout.cl-gossip:not(.tv-round) #theater-stage:not(:has(.cake-copy)) #central-card { left: 19.2% !important; width: 61.3% !important; top: 36.5% !important; height: 33.9% !important; }
  body.cake-layout.cl-gossip:not(.tv-round) #theater-stage:has(.cake-copy) #central-card { top: 36.5% !important; }
  body.cake-layout.cl-gossip:not(.tv-round) .sentence { line-height: 1.28; }
  body.cake-layout.cl-gossip:not(.tv-round) .level-candle { --ch: calc(var(--chh) * .2) !important; }
}

/* ===== 11 Nov 2026: THE TEMPLATE (portrait, every level) — from the user's red-box / orange-strip sketch.
   The writing box 1035:763 always in the same place on the screen (iPad: 25.8%–74.2% across, 53.4%–81.4% down);
   each cake is scaled and moved so that its face sits under the box (--ty / --th: the face's top and height on
   the cake picture). Every button outside the cake sits in the orange strip at the bottom, centred, one size:
   the menu on the left, the main button in the middle, the pause on the right. ===== */
body { --ty: .40; --th: .31; }
body.cl-worry { --ty: .385; --th: .32; } body.cl-tech { --ty: .39; --th: .35; } body.cl-clean { --ty: .41; --th: .33; }
body.cl-politics { --ty: .40; --th: .34; } body.cl-travel { --ty: .37; --th: .31; } body.cl-media { --ty: .36; --th: .32; }
body.cl-book { --ty: .355; --th: .32; } body.cl-planning { --ty: .355; --th: .33; } body.cl-food { --ty: .36; --th: .32; }
body.cl-couple { --ty: .385; --th: .32; } body.cl-gossip { --ty: .365; --th: .339; }
@media (orientation: portrait) {
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) {
    --tw: min(38dvh, 84vw, calc(var(--th) * 1.808 * 108vw));        /* the writing box's width */
    --tH: calc(var(--tw) * 763 / 1035);
    --tbot: calc(100dvh - var(--sb, 0px) - 18.6dvh);                    /* the box's bottom */
    --ttop: calc(var(--tbot) - var(--tH));
    --sw: calc(var(--tw) / (var(--th) * 1.808));                        /* the cake picture's width */
    --chh: calc(var(--sw) * 4 / 3) !important;
    --ck: calc(var(--ttop) - var(--ty) * var(--chh)) !important;
    --cf: calc(var(--tw) * .074) !important;
    --bw: var(--tw);
    --bc: calc(100dvh - var(--sb, 0px) - 4.7dvh);                       /* the middle of the orange strip */
    --bh: max(42px, 4.4dvh);                                            /* the buttons' height */
    --md: calc(var(--bh) * 1.08);                                       /* the round buttons */
    --mw: calc(var(--tw) * .82);                                        /* the main button's width */
  }
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) #theater-stage {
    left: calc(50vw - var(--sw) / 2) !important; top: var(--ck) !important; width: var(--sw) !important; height: var(--chh) !important; right: auto !important; bottom: auto !important;
  }
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) #theater-stage #central-card {
    left: calc((1 - var(--th) * 1.808) * 50%) !important; width: calc(var(--th) * 180.8%) !important;
    top: calc(var(--ty) * 100% + var(--tH) * .03) !important; max-height: calc(var(--th) * 100% - var(--tH) * .06) !important;
  }
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) #theater-stage:not(:has(.cake-copy)) #central-card { height: calc(var(--th) * 100% - var(--tH) * .06) !important; }
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .sentence { font-size: var(--cf) !important; line-height: 1.28; }
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .level-candle {
    position: fixed !important; left: 50vw !important; transform: translateX(-50%) !important; bottom: auto !important;
    top: calc(var(--ck) + var(--chh) * .283 - var(--ch)) !important;
  }
  /* the answers / ״בדוק את התשובה״ / ״צדקנו״: inside the box, under the question */
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .round-panel:has(.choices, .mode-pick, .host-verdict, .host-answer) {
    transform: none !important; left: calc(50vw - var(--tw) * .47) !important; width: calc(var(--tw) * .94) !important; padding: 0 !important;
    top: auto !important; bottom: calc(100dvh - var(--tbot) + var(--tH) * .04) !important; max-height: calc(var(--tH) * .64) !important; height: auto !important;
  }
  /* every button outside the cake (קראנו, עוד סיפור עוד נר, ותתכוננו ל…): the middle of the orange strip */
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .round-panel:not(:has(.choices, .mode-pick, .host-verdict, .host-answer)) {
    transform: none !important; left: calc(50vw - var(--mw) / 2) !important; width: var(--mw) !important; padding: 0 !important; box-sizing: border-box;
    top: calc(var(--bc) - var(--bh) / 2) !important; bottom: auto !important; height: var(--bh) !important; max-height: none !important;
  }
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .round-panel:not(:has(.choices, .mode-pick, .host-verdict, .host-answer)) .round-controls { height: 100%; margin: 0 !important; gap: 0 !important; }
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .round-panel:not(:has(.choices, .mode-pick, .host-verdict, .host-answer)) .round-controls > button {
    width: 100% !important; height: 100% !important; min-height: 0 !important; padding: 0 calc(var(--bh) * .3) !important; white-space: nowrap; overflow: hidden;
    font-size: min(calc(var(--bh) * .5), calc(var(--mw) * .062)) !important; font-weight: 900 !important;
  }
  /* the pause (and the time bar on the question screen) in the strip: the time bar where the main button is, the pause on its right */
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .paper-stage-action {
    transform: none !important; left: calc(50vw - var(--mw) / 2) !important; width: calc(var(--tw) * .91 + var(--md) / 2) !important;
    top: calc(var(--bc) - var(--md) / 2) !important; bottom: auto !important; height: var(--md) !important; padding: 0 !important; box-sizing: border-box;
    gap: calc(var(--tw) * .09 - var(--md) / 2) !important; align-items: center !important;
  }
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .paper-stage-action .round-pause { width: var(--md) !important; height: var(--md) !important; min-height: 0 !important; flex: 0 0 var(--md) !important; }
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .paper-stage-action .choice-time-bar { flex: 1 1 auto !important; height: calc(var(--bh) * .5) !important; }
  /* the menu: on the left of the main button */
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .game-menu-btn {
    display: grid; left: calc(50vw - var(--tw) * .504 - var(--md) / 2) !important; top: calc(var(--bc) - var(--md) / 2) !important; bottom: auto !important;
    width: var(--md) !important; height: var(--md) !important; font-size: calc(var(--md) * .27) !important; font-weight: 900 !important;
  }
  html body.cake-layout.menu-open:not(.tv-round):not(#z1):not(#z2):not(#z3) .game-tools {
    top: auto !important; bottom: calc(100dvh - var(--bc) + var(--md) * .7) !important; left: max(calc(2 * var(--u)), calc(50vw - var(--tw) * .504 - var(--md) / 2)) !important;
  }
}
/* the change of cakes: the new one comes in small from the right to the middle, stands, and the old one goes away
   getting smaller to the left */
body > .round-cake.cake-turn-out { transform-origin: 50% 50% !important; animation: cake-go-left .75s cubic-bezier(.55, 0, .9, .45) both !important; }
#theater-stage > .round-cake.cake-turn-in { transform-origin: 50% 50% !important; animation: cake-come-right .9s cubic-bezier(.15, .7, .3, 1) .35s both !important; }
@keyframes cake-go-left { 0% { transform: none; opacity: 1; } 100% { transform: translateX(-85vw) scale(.3); opacity: 0; } }
@keyframes cake-come-right { 0% { transform: translateX(85vw) scale(.3); opacity: 0; } 25% { opacity: 1; } 100% { transform: none; opacity: 1; } }

/* ===== 11 Nov 2026: ״הבלונים שאספנו״ — the menu item and the collection window ===== */
.game-tools .tool-balloons { font: 800 clamp(14px, 2.2vw, 18px)/1.1 inherit; border-radius: 999px; border: 2px solid #e2b04a; background: linear-gradient(#fff8e6, #f3d59a); color: #5a3510; padding: 0 14px; white-space: nowrap; }
@media (orientation: landscape) { body.cake-layout:not(.menu-open) .game-tools .tool-balloons { min-height: 44px; } }
.collect-view { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(40, 18, 6, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: pop-in .25s ease both; }
.collect-card { position: relative; width: min(94vw, 760px); max-height: 88dvh; overflow: auto; background: #fff8e8; color: #4a2a10; border: 3px solid #e2b04a; border-radius: 26px; padding: 20px 18px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); text-align: center; }
.collect-card h2 { margin: 0 0 10px; font-size: clamp(24px, 4.4vw, 34px); font-weight: 900; }
.collect-close { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #e2b04a; background: #fff; color: #5a3510; font-size: 18px; font-weight: 900; cursor: pointer; }
.collect-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.collect-tabs button { border: 2px solid #e2b04a; border-radius: 999px; background: #fff; color: #5a3510; font: 800 17px/1 inherit; padding: 10px 18px; cursor: pointer; }
.collect-tabs button.on { background: linear-gradient(#ffe7a6, #f2bf5c); }
.collect-tabs small { font-weight: 700; opacity: .75; }
.collect-sum { margin: 4px 0 14px; font-weight: 700; font-size: 16px; }
.collect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.collect-grid figure { position: relative; margin: 0; padding: 8px 4px 6px; border-radius: 16px; background: #f6e6c6; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.collect-grid img { width: 78px; height: 96px; object-fit: contain; object-position: top; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.collect-grid figcaption { font-size: 14px; font-weight: 800; line-height: 1.15; }
.collect-grid i { position: absolute; top: 6px; right: 8px; font-style: normal; font-weight: 900; font-size: 14px; background: #e2b04a; color: #fff; border-radius: 999px; padding: 2px 7px; }
body.cake-layout.menu-open .game-tools .tool-balloons { font-size: calc(4.4 * var(--u)) !important; }

/* ===== 11 Nov 2026: new cakes for סדר וניקיון (with its background) and פוליטיקה, new candles also for דאגות — in the template ===== */
body.cl-clean { --ty: .375; --th: .345; } body.cl-politics { --ty: .37; --th: .38; }
@media (orientation: portrait) {
  html body.cake-layout:is(.cl-clean, .cl-politics, .cl-worry):not(.tv-round):not(#z1):not(#z2):not(#z3) .level-candle { --ch: calc(var(--chh) * .2) !important; }
  html body.cake-layout.cl-clean:not(.tv-round):not(#z1):not(#z2):not(#z3) .level-candle { top: calc(var(--ck) + var(--chh) * .265 - var(--ch)) !important; }
}
@media (orientation: landscape) { body.cake-layout:is(.cl-clean, .cl-politics, .cl-worry):not(.tv-round) .level-candle { --ch: calc(var(--chh) * .2) !important; } }

/* ===== 11 Nov 2026: new cakes — the plain one, book, planning, couple — placed by the template ===== */
body { --ty: .34; --th: .40; --cnb: .265; }
body.cl-book { --ty: .26; --th: .375; --cnb: .125; } body.cl-planning { --ty: .305; --th: .40; --cnb: .15; } body.cl-couple { --ty: .32; --th: .42; --cnb: .235; }
body.cl-clean { --cnb: .265; } body.cl-politics { --cnb: .283; } body.cl-worry, body.cl-gossip, body.cl-tech, body.cl-travel, body.cl-media, body.cl-food { --cnb: .283; }
@media (orientation: portrait) {
  html body.cake-layout:not(.tv-round):not(#z1):not(#z2):not(#z3) .level-candle { top: calc(var(--ck) + var(--chh) * var(--cnb) - var(--ch)) !important; }
  html body.cake-layout:is(.cl-couple, :not([class*="cl-"])):not(.tv-round):not(#z1):not(#z2):not(#z3) .level-candle { --ch: calc(var(--chh) * .2) !important; }
}

/* ===== 11 Nov 2026: the end of every bonus game — a short word, the lit candle flies to the team's place on
   the scoreboard, and the game screen breaks in two onto the next story ===== */
.plan-outro { position: fixed; inset: 0; z-index: 96; display: grid; place-items: start center; padding-top: max(14vh, calc(env(safe-area-inset-top, 0px) + 60px)); pointer-events: none; }
.plan-outro .po-card { text-align: center; padding: 18px 28px 16px; border-radius: 26px; background: rgba(40, 14, 6, .78); border: 2px solid #e2b04a; color: #fff3d8;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: po-in .45s cubic-bezier(.2, 1.4, .4, 1) both; max-width: min(88vw, 560px); }
.plan-outro h2 { margin: 0; font-size: clamp(28px, 6vmin, 48px); font-weight: 900; color: #ffd98a; text-shadow: 0 3px 0 #2a0c02; }
.plan-outro p { margin: 6px 0 0; font-size: clamp(16px, 3vmin, 22px); font-weight: 700; }
.plan-outro.lose h2 { color: #ffb08a; }
@keyframes po-in { from { opacity: 0; transform: translateY(-18px) scale(.9); } }
.po-candle { position: fixed; z-index: 97; pointer-events: none; transform-origin: 50% 40%; animation: po-candle-in .5s cubic-bezier(.2, 1.5, .4, 1) both;
  transition: transform 1s cubic-bezier(.5, 0, .3, 1), opacity .25s ease .85s; filter: drop-shadow(0 0 18px rgba(255, 190, 80, .8)); }
.po-candle img { position: absolute; inset: 0; width: 100%; height: 100%; }
.po-candle .f { transform-origin: 50% 27%; animation: flame-ignite 1s cubic-bezier(.2, 1.5, .4, 1) .2s both, flame-flicker 2.4s ease-in-out 1.2s infinite; }
.po-candle.flying { opacity: 0; }
/* 12 Nov 2026: the game's own candle (from the cake) flies to the scoreboard */
.po-own { position: fixed; z-index: 97; pointer-events: none; transform-origin: 50% 15%; transition: transform 1s cubic-bezier(.5, 0, .3, 1), opacity .25s ease .85s; filter: drop-shadow(0 0 16px rgba(255, 190, 80, .75)); }
.po-own > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.po-own > img.po-own-flame { inset: auto; transform-origin: 50% 27%; animation: flame-flicker 2.4s ease-in-out infinite; }
.po-own.flying { opacity: 0; }
@keyframes po-candle-in { from { opacity: 0; transform: scale(.4); } }
.plan-break { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.pb-half { position: absolute; inset: 0; will-change: transform; overflow: hidden; }
.pb-half > * { position: absolute !important; inset: 0 !important; animation: none !important; }
/* 12 Nov 2026: the picture of the finished screen stays as it was: nothing rises or comes in again */
.pb-half > * *, .pb-half > * *::before, .pb-half > * *::after { animation: none !important; transition: none !important; }
.pb-half .fix-sky, .pb-half .pop-sky { display: none !important; }
.pb-half.l { clip-path: polygon(0 0, 52% 0, 47% 11%, 54% 23%, 46% 36%, 53% 49%, 46% 62%, 54% 75%, 47% 88%, 51% 100%, 0 100%); animation: pop-half-l 1.15s cubic-bezier(.55, 0, .75, .4) .25s both; }
.pb-half.r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 51% 100%, 47% 88%, 54% 75%, 46% 62%, 53% 49%, 46% 36%, 54% 23%, 47% 11%); animation: pop-half-r 1.15s cubic-bezier(.55, 0, .75, .4) .25s both; }
.pb-word { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.pb-word span { font-size: clamp(40px, 9vmin, 90px); font-weight: 900; color: #f6d58e; white-space: nowrap; text-shadow: 0 4px 0 #2a0c02, 0 0 30px rgba(240, 180, 90, .6); animation: pop-word 1.9s ease both; }
/* going to the question / the result: the other cake fades in place, no travelling */
body > .round-cake.cake-fade-out { animation: cake-fade-out .5s ease both !important; transform: none !important; }
#theater-stage > .round-cake.cake-fade-in { animation: cake-fade-in .5s ease both !important; }
@keyframes cake-fade-out { to { opacity: 0; } }
@keyframes cake-fade-in { from { opacity: 0; } }
.po-board { pointer-events: none; animation: po-board-in .35s ease both; }
.po-board .po-bump { display: inline-block; animation: po-bump .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes po-board-in { from { opacity: 0; transform: translateY(-30px); } }
@keyframes po-bump { from { transform: scale(1.9); color: #ff9a3c; } }

/* ===== 12 Nov 2026: the logo balloon ===== */
.loader-logo { width: min(70vw, 440px, 44dvh); /* 20 Nov 2026 (user): the new logo, a little smaller on the loading screen */ height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
  animation: logo-rise 1.6s cubic-bezier(.2, .8, .3, 1) both, logo-bob 3.2s ease-in-out 1.6s infinite; }
@keyframes logo-rise { from { transform: translateY(70vh) rotate(-4deg); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
@keyframes logo-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1deg); } }
.logo-fly { position: fixed; z-index: 99; height: auto; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
  animation: logo-fly-up 1.2s cubic-bezier(.55, 0, .8, .5) both; }
@keyframes logo-fly-up { 0% { transform: none; } 15% { transform: translateY(14px) rotate(1deg); } 100% { transform: translateY(-120vh) rotate(-6deg); } }
#app.logo-drop { animation: logo-drop-in 1s cubic-bezier(.2, .8, .3, 1) .1s both; }
@keyframes logo-drop-in { from { transform: translateY(-60vh); opacity: 0; } 40% { opacity: 1; } to { transform: none; } }
.logo-pass { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(80vw, 480px, 50dvh); height: auto; margin: 0; pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: logo-pass 2.1s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes logo-pass { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
  28% { transform: translate(-50%, -50%) scale(1); } 55% { transform: translate(-50%, -54%) scale(1); } 100% { transform: translate(-50%, -150vh) rotate(-6deg); } }
.home-logo-h { margin: 0; line-height: 0; }
.home-logo { width: min(86%, 470px, 46dvh); height: auto; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .4)); animation: logo-bob 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .loader-logo, .home-logo, .logo-pass { animation: none; } .logo-fly { display: none; } }
.marquee.hero:has(.home-logo) { background: none !important; border: 0 !important; box-shadow: none !important; padding-top: 0 !important; }
.marquee.hero:has(.home-logo)::before, .marquee.hero:has(.home-logo)::after { display: none !important; }
.marquee.hero:has(.home-logo) .tag { color: #f8e6c0 !important; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); font-weight: 800; }

/* ===== 12 Nov 2026 (trial): every cluster on one colour taken from its cake, with the turning beams of the plain cluster ===== */
body.cake-layout .stage-rays { background: repeating-conic-gradient(from 0deg, var(--ray, rgba(255, 222, 140, .42)) 0deg 7deg, transparent 7deg 20deg) !important; }
body.round-ui.cl-worry { --ray: rgba(196, 197, 196, .5); background: #3b4a6b radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #66718b 0%, #3b4a6b 45%, #303c57 100%) !important; }
body.round-ui.cl-gossip { --ray: rgba(249, 231, 183, .5); background: #ecbd3e radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #f0cb68 0%, #ecbd3e 45%, #c19a32 100%) !important; }
body.round-ui.cl-tech { --ray: rgba(185, 201, 196, .5); background: #17596b radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #4a7d8b 0%, #17596b 45%, #124857 100%) !important; }
body.round-ui.cl-clean { --ray: rgba(226, 232, 209, .5); background: #9fc097 radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #b4cdad 0%, #9fc097 45%, #829d7b 100%) !important; }
body.round-ui.cl-politics { --ray: rgba(192, 199, 213, .5); background: #2f50a3 radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #5c76b7 0%, #2f50a3 45%, #264185 100%) !important; }
body.round-ui.cl-travel { --ray: rgba(218, 226, 211, .5); background: #86ad9b radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #a0bfb1 0%, #86ad9b 45%, #6d8d7f 100%) !important; }
body.round-ui.cl-media { --ray: rgba(240, 227, 204, .5); background: #cfae84 radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #d9bf9f 0%, #cfae84 45%, #a98e6c 100%) !important; }
body.round-ui.cl-book { --ray: rgba(201, 206, 181, .5); background: #4d6a38 radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #748a63 0%, #4d6a38 45%, #3f562d 100%) !important; }
body.round-ui.cl-planning { --ray: rgba(191, 202, 219, .5); background: #2b5cb8 radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #597fc7 0%, #2b5cb8 45%, #234b96 100%) !important; }
body.round-ui.cl-food { --ray: rgba(250, 222, 196, .5); background: #ef9f6c radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #f2b48c 0%, #ef9f6c 45%, #c38258 100%) !important; }
body.round-ui.cl-couple { --ray: rgba(228, 216, 213, .5); background: #a68aa4 radial-gradient(circle at var(--rx, 50%) var(--ry, 45%), #b9a3b8 0%, #a68aa4 45%, #887186 100%) !important; }
:is(body.cl-worry, body.cl-gossip, body.cl-tech, body.cl-clean, body.cl-politics, body.cl-travel, body.cl-media, body.cl-book, body.cl-planning, body.cl-food, body.cl-couple) .stage-rays, :is(body.cl-worry, body.cl-gossip, body.cl-tech, body.cl-clean, body.cl-politics, body.cl-travel, body.cl-media, body.cl-book, body.cl-planning, body.cl-food, body.cl-couple) .spotlights { opacity: 1 !important; }

/* ===== 12 Nov 2026 (trial, 2): more depth and light — a soft glow behind the cake, a deep vignette, two layers of soft beams
   turning against each other, fading out long before the edge (no cut ends), and slow sparkles in the light ===== */
body.round-ui.cl-worry { --ray: rgba(206, 206, 203, .42); --glow: #a6a9ae; background: #3b4a6b radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #a6a9ae 0%, #5e6a85 22%, #3b4a6b 48%, #242d42 82%, #171d2a 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-gossip { --ray: rgba(250, 234, 191, .42); --glow: #f6dd9a; background: #ecbd3e radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #f6dd9a 0%, #efc860 22%, #ecbd3e 48%, #927526 82%, #5e4b18 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-tech { --ray: rgba(197, 209, 203, .42); --glow: #96b0ae; background: #17596b radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #96b0ae 0%, #407685 22%, #17596b 48%, #0e3742 82%, #09232a 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-clean { --ray: rgba(231, 235, 214, .42); --glow: #d3dec2; background: #9fc097 radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #d3dec2 0%, #b0cba9 22%, #9fc097 48%, #62775d 82%, #3f4c3c 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-politics { --ray: rgba(203, 207, 217, .42); --glow: #a1acc7; background: #2f50a3 radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #a1acc7 0%, #546fb3 22%, #2f50a3 48%, #1d3165 82%, #122041 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-travel { --ray: rgba(224, 230, 215, .42); --glow: #c8d6c4; background: #86ad9b radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #c8d6c4 0%, #9bbbad 22%, #86ad9b 48%, #536b60 82%, #35453e 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-media { --ray: rgba(243, 231, 209, .42); --glow: #e9d6b9; background: #cfae84 radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #e9d6b9 0%, #d7bc9a 22%, #cfae84 48%, #806b51 82%, #524534 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-book { --ray: rgba(210, 214, 190, .42); --glow: #aeb897; background: #4d6a38 radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #aeb897 0%, #6d845b 22%, #4d6a38 48%, #2f4122 82%, #1e2a16 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-planning { --ray: rgba(202, 210, 222, .42); --glow: #9fb1d1; background: #2b5cb8 radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #9fb1d1 0%, #5179c4 22%, #2b5cb8 48%, #1a3972 82%, #112449 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-food { --ray: rgba(251, 227, 203, .42); --glow: #f7cfaf; background: #ef9f6c radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #f7cfaf 0%, #f1b086 22%, #ef9f6c 48%, #946242 82%, #5f3f2b 100%) !important; background-attachment: fixed !important; }
body.round-ui.cl-couple { --ray: rgba(232, 222, 217, .42); --glow: #d6c6c8; background: #a68aa4 radial-gradient(ellipse 70% 55% at var(--rx, 50%) var(--ry, 48%), #d6c6c8 0%, #b69fb4 22%, #a68aa4 48%, #665565 82%, #423741 100%) !important; background-attachment: fixed !important; }
body.cake-layout .stage-rays {
  width: 260vmax !important;
  background: repeating-conic-gradient(from 0deg, transparent 0deg, var(--ray, rgba(255, 222, 140, .42)) 3deg, var(--ray, rgba(255, 222, 140, .42)) 5deg, transparent 9deg, transparent 18deg) !important;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, .7) 12%, rgba(0, 0, 0, .32) 26%, rgba(0, 0, 0, .1) 40%, transparent 52%) !important;
  mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, .7) 12%, rgba(0, 0, 0, .32) 26%, rgba(0, 0, 0, .1) 40%, transparent 52%) !important;
  mix-blend-mode: screen; animation-duration: 90s !important;
}
body.cake-layout .stage-rays::before, body.cake-layout .stage-rays::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
/* a second, wider and fainter fan turning the other way: the beams cross and shimmer */
body.cake-layout .stage-rays::before {
  background: repeating-conic-gradient(from 6deg, transparent 0deg, var(--ray, rgba(255, 222, 140, .42)) 5deg, transparent 12deg, transparent 31deg);
  opacity: .55; filter: blur(6px); animation: rays-back 140s linear infinite;
}
/* sparkles floating in the light */
body.cake-layout .stage-rays::after {
  inset: 38%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .9) 0 1.5px, transparent 3px) 12% 30% / 9% 9% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .7) 0 1px, transparent 2.5px) 70% 18% / 7% 7% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 2px, transparent 4px) 82% 64% / 10% 10% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .6) 0 1px, transparent 2.5px) 30% 78% / 7% 7% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .75) 0 1.5px, transparent 3px) 52% 8% / 8% 8% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .6) 0 1px, transparent 2.5px) 6% 58% / 7% 7% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 2px, transparent 4px) 40% 46% / 9% 9% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .7) 0 1.5px, transparent 3px) 92% 36% / 8% 8% no-repeat;
  animation: sparkle-twinkle 4.5s ease-in-out infinite alternate;
}
@keyframes rays-back { to { transform: rotate(-720deg); } }
@keyframes sparkle-twinkle { from { opacity: .35; } to { opacity: 1; } }
/* the light behind the cake: a warm halo that breathes */
body.cake-layout #theater-stage::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow, #fff3d0) 75%, transparent), transparent 70%);
  animation: halo-breathe 6s ease-in-out infinite alternate; }
@keyframes halo-breathe { from { opacity: .55; transform: translate(-50%, -50%) scale(.95); } to { opacity: .9; transform: translate(-50%, -50%) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { body.cake-layout .stage-rays::before, body.cake-layout .stage-rays::after, body.cake-layout #theater-stage::after { animation: none; } }

/* ===== 12 Nov 2026: the mouse balloon — tap it 10 times for a candle; red alarm lights while it runs ===== */
.mouse-balloon { position: fixed; left: 0; top: 0; z-index: 70; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; will-change: transform; }
.mouse-balloon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)) drop-shadow(0 0 18px rgba(255, 60, 60, .55)); pointer-events: none; }
.mouse-balloon img.on { opacity: 1; }
.mouse-balloon.hit img.on { animation: mouse-hit .16s ease; }
@keyframes mouse-hit { 50% { transform: scale(.88) rotate(-6deg); filter: brightness(1.4) drop-shadow(0 0 22px rgba(255, 80, 80, .9)); } }
.mouse-count { position: absolute; left: 50%; top: -4%; transform: translateX(-50%); min-width: 1.9em; padding: .12em .45em; border-radius: 999px; background: #d7263d; color: #fff;
  font: 900 clamp(18px, 4.6vmin, 30px)/1.1 inherit; box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(0, 0, 0, .4); animation: mouse-count 0.5s ease-in-out infinite alternate; pointer-events: none; }
@keyframes mouse-count { to { transform: translateX(-50%) scale(1.12); } }
.mouse-ring { position: absolute; inset: -6%; pointer-events: none; }
.mouse-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mouse-ring circle { fill: none; stroke: #ff4d5e; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: calc(289 * (1 - var(--p, 0))); transition: stroke-dashoffset .15s ease; filter: drop-shadow(0 0 6px #ff4d5e); }
.mouse-balloon.popped { animation: mouse-pop .4s ease-out forwards; pointer-events: none; }
@keyframes mouse-pop { to { opacity: 0; scale: 1.6; } }
/* the alarm: a red pulse around the edges and two red beams sweeping, like a siren */
.mouse-alarm { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; animation: alarm-in .3s ease both;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(200, 0, 20, .55) 100%); }
.mouse-alarm::before { content: ""; position: absolute; inset: 0; background: rgba(255, 0, 30, .14); animation: alarm-pulse .75s ease-in-out infinite alternate; }
.mouse-alarm i { position: absolute; left: 50%; top: 50%; width: 260vmax; aspect-ratio: 1; margin: -130vmax 0 0 -130vmax; mix-blend-mode: screen;
  background: conic-gradient(from 0deg, rgba(255, 40, 60, .38) 0deg 14deg, transparent 30deg 180deg, rgba(255, 40, 60, .38) 180deg 194deg, transparent 210deg);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, .5) 30%, transparent 55%); mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, .5) 30%, transparent 55%);
  animation: alarm-sweep 1.5s linear infinite; }
.mouse-alarm i + i { animation-duration: 2.1s; animation-direction: reverse; opacity: .7; }
.mouse-alarm.off { animation: alarm-out .45s ease forwards; }
@keyframes alarm-in { from { opacity: 0; } }
@keyframes alarm-out { to { opacity: 0; } }
@keyframes alarm-pulse { from { opacity: .2; } to { opacity: 1; } }
@keyframes alarm-sweep { to { transform: rotate(360deg); } }
body:has(.mouse-alarm:not(.off)) .stage-rays { animation-duration: 12s !important; filter: hue-rotate(-30deg) saturate(1.6); }
.mouse-burst { position: fixed; z-index: 71; width: 0; height: 0; pointer-events: none; }
.mouse-burst i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #ff9fb6; transform: rotate(var(--a)); animation: shard .8s cubic-bezier(.2, .7, .3, 1) forwards; }
.mouse-burst i:nth-child(3n) { background: #fff; } .mouse-burst i:nth-child(3n+1) { background: #c8c8c8; }
.mouse-burst b { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-weight: 900; font-size: clamp(26px, 6vmin, 44px); color: #fff; text-shadow: 0 3px 0 #a3122a, 0 0 18px rgba(255, 60, 80, .8); animation: rise-fade 1.2s ease-out forwards; }
@keyframes shard { to { transform: rotate(var(--a)) translateX(var(--d)); opacity: 0; } }
@keyframes rise-fade { from { margin-top: 0; opacity: 1; } to { margin-top: -70px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mouse-alarm i { animation: none; } .mouse-alarm::before { animation: none; opacity: .5; } }

/* ===== 12 Nov 2026: every formula, in every game, opens and closes with ״ ===== */
.sentence::before, .seq-sentence::before, .review-sentence::before, .fix-sentence::before, .g2-claim::before, .mega-text > p:first-child::before { content: "״"; }
.sentence::after, .seq-sentence::after, .review-sentence::after, .fix-sentence::after, .g2-claim::after, .mega-text > p:last-child::after { content: "״"; }

@keyframes mega-low-in { from { transform: translateY(30dvh) !important; opacity: 0; } }

/* ===== 12 Nov 2026: the opening and ״איך משחקים?״ of every bonus game sit in an unwrapped chocolate wrapper:
   the candy unwraps (6 frames) and the card's text comes up on the flat silver inside, centred ===== */
:is(.pop-intro-card, .pop-rules-box .pop-end, .fix-game .fix-intro, .fix-rules-box .fix-card) {
  --wd: 1.15s; position: relative !important; isolation: isolate; background: none !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-radius: 0 !important;
  width: min(94vw, 640px) !important; max-width: none !important; min-height: min(70vw, 470px); max-height: 92dvh; overflow: visible !important;
  padding: clamp(34px, 9vw, 60px) clamp(34px, 9.5vw, 66px) !important; box-sizing: border-box; color: #3b1d0e !important; text-align: center;
  display: flex; flex-direction: column; justify-content: center; animation: none !important; transform: none; will-change: transform;
  position: relative; inset: auto !important; left: auto !important; top: auto !important; margin: 0 auto !important;
}
:is(.pop-intro-card, .pop-rules-box .pop-end, .fix-game .fix-intro, .fix-rules-box .fix-card) > .wrapfx { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  filter: drop-shadow(calc(var(--sx, 0px) * .2) 3px 3px rgba(0, 0, 0, .4)) drop-shadow(var(--sx, 0px) var(--sy, 18px) 24px rgba(0, 0, 0, .38)); }
/* 12 Nov 2026: depth on the foil — a light runs across it once it is open */
.wrapfx-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 48%, rgba(255, 250, 230, .2) 54%, transparent 64%) 0 0 / 300% 100% no-repeat;
  -webkit-mask: url(assets/wrap-5.webp) 0 0 / 100% 100% no-repeat; mask: url(assets/wrap-5.webp) 0 0 / 100% 100% no-repeat; mix-blend-mode: soft-light; animation: wrap-sheen 1.4s ease-out both; }
@keyframes wrap-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.wrapfx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.wrapfx img.flat { object-fit: fill; }
.wrapfx img.on { opacity: 1; }
:is(.pop-intro-card, .pop-rules-box .pop-end, .fix-game .fix-intro, .fix-rules-box .fix-card) > :not(.wrapfx) { opacity: 0; transition: opacity .3s ease; animation: none !important; }
:is(.pop-intro-card, .pop-rules-box .pop-end, .fix-game .fix-intro, .fix-rules-box .fix-card).wrap-open > :not(.wrapfx) { opacity: 1; }
@keyframes wrap-text { from { opacity: 0; transform: translateY(8px); } }
.fix-rules-box .fix-card, .pop-rules-box .pop-end { --wd: .9s; }
/* text on the silver */
:is(.pop-intro-card, .pop-rules-box .pop-end, .fix-game .fix-intro, .fix-rules-box .fix-card) :is(h1, h2, .fix-title) { color: #9b1b1b !important; text-shadow: 0 2px 0 rgba(255, 255, 255, .6) !important; margin: 0 0 8px !important; }
:is(.pop-intro-card, .fix-game .fix-intro) :is(h1, .fix-title) { font-size: clamp(32px, 7.4vw, 56px) !important; line-height: 1.05 !important; }
:is(.pop-intro-card, .fix-game .fix-intro) .fix-title span { color: #1f6a2c !important; }
:is(.pop-intro-card, .pop-rules-box .pop-end, .fix-game .fix-intro, .fix-rules-box .fix-card) :is(p, li, span, .pop-eyebrow, .fix-eyebrow, .fix-sub, .pop-intro-sub, .pop-rules, .fix-rules) { color: #3b1d0e !important; text-shadow: none !important; }
:is(.pop-intro-card, .fix-game .fix-intro) :is(.pop-eyebrow, .fix-eyebrow) { color: #8a5a1c !important; font-weight: 800; }
:is(.pop-rules-box .pop-end, .fix-rules-box .fix-card) :is(.pop-rules, .fix-rules) { text-align: right; font-size: clamp(16px, 3.4vw, 21px) !important; line-height: 1.45; margin: 4px 0 14px !important; }
:is(.pop-intro-card, .pop-rules-box .pop-end, .fix-game .fix-intro, .fix-rules-box .fix-card) b { color: #9b1b1b !important; }
:is(.pop-intro-card, .pop-rules-box .pop-end, .fix-game .fix-intro, .fix-rules-box .fix-card) :is(.pop-go, .pop-continue, .fix-go) {
  background: linear-gradient(#d9302f, #9b1b1b) !important; color: #fff6e0 !important; border: 3px solid #f1c75e !important; box-shadow: 0 6px 14px rgba(80, 10, 10, .35) !important; }
:is(.pop-intro-card, .fix-game .fix-intro) :is(.pop-how, .fix-how) { background: rgba(255, 255, 255, .55) !important; color: #1f6a2c !important; border: 2px solid #1f8a3a !important; }
.fix-game .fix-intro .fix-intro-cake { display: none !important; }
:is(.pop-intro-card, .fix-game .fix-intro) :is(.pop-actions, .pop-intro-actions, .fix-actions) { margin-top: 6px; }
/* centred */
.pop-intro { align-items: center !important; padding-top: 16px !important; }
.pop-rules-box { display: flex; align-items: center; justify-content: center; padding: 16px; }
.fix-game .fix-body:has(> .fix-intro) { justify-content: center !important; }
@media (prefers-reduced-motion: reduce) { :is(.pop-intro-card, .pop-rules-box .pop-end, .fix-game .fix-intro, .fix-rules-box .fix-card) { --wd: 0s; } }
/* the chocolate falls behind a cake at the bottom, if there is one */
[data-wrap].wrap-gone { visibility: hidden; }
[data-wrap].falling { z-index: 1 !important; }
.wrap-falling :is(.mega-low-cake, .pop-fgl) { z-index: 6 !important; }
.wrap-falling .pop-intro-card.falling { z-index: 1 !important; }
/* 12 Nov 2026: the cakes change like a carousel — both move at once along a soft arc, the old one off to the
   left and smaller, the new one in from the right growing into place */
body > .round-cake.cake-turn-out { transform-origin: 50% 100% !important; animation: cake-arc-out 1.05s cubic-bezier(.45, .05, .35, 1) both !important; }
#theater-stage > .round-cake.cake-turn-in { transform-origin: 50% 100% !important; animation: cake-arc-in 1.05s cubic-bezier(.45, .05, .35, 1) .06s both !important; }
@keyframes cake-arc-out { 0% { transform: none; opacity: 1; } 50% { transform: translate(-42vw, -3%) rotate(-5deg) scale(.72); opacity: .9; } 100% { transform: translate(-95vw, 2%) rotate(-9deg) scale(.45); opacity: 0; } }
@keyframes cake-arc-in { 0% { transform: translate(95vw, 2%) rotate(9deg) scale(.45); opacity: 0; } 35% { opacity: 1; } 55% { transform: translate(30vw, -3%) rotate(4deg) scale(.8); } 85% { transform: translate(-1.5vw, 0) rotate(-.6deg) scale(1.01); } 100% { transform: none; opacity: 1; } }

/* ===== 12 Nov 2026: the mouse — the cheese cake that explains it, and its burst ===== */
.mouse-intro { position: fixed; inset: 0; z-index: 85; display: flex; align-items: center; justify-content: center; background: rgba(30, 18, 4, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: pop-in .3s ease both; }
.mouse-intro.out { animation: alarm-out .35s ease forwards; }
.mi-mice img { position: absolute; left: var(--x); bottom: -30vh; width: min(30vw, 190px); height: auto; z-index: 0; animation: mi-rise var(--d) linear calc(var(--i) * -1.7s) infinite; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }
@keyframes mi-rise { from { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-65vh) translateX(6vw) rotate(6deg); } to { transform: translateY(-140vh) rotate(-4deg); } }
.mi-cake { position: relative; z-index: 1; width: min(84vw, 52dvh, 480px); aspect-ratio: 677 / 900; animation: mega-low-in .6s cubic-bezier(.2, .8, .3, 1) both; }
.mi-cake > img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.mi-face { position: absolute; left: 13%; width: 74%; top: 14%; height: 54%; display: flex; flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
.mi-text { margin: 0; padding: 10px 12px; border-radius: 18px; background: rgba(255, 246, 214, .82); color: #4a2a06; font-weight: 800; font-size: clamp(18px, 4.4vw, 26px); line-height: 1.3; box-shadow: 0 4px 12px rgba(120, 70, 0, .25); }
.mi-text b { color: #a33a12; }
.mi-actions { display: flex; flex-direction: column; gap: 8px; }
.mi-actions button { border-radius: 999px; padding: 12px 16px; font: 900 clamp(17px, 4vw, 22px)/1 inherit; cursor: pointer; }
.mi-try { background: linear-gradient(#fff, #f3e2b4); color: #6b3a08; border: 3px solid #c98a1a; }
.mi-go { background: linear-gradient(#e0902a, #b5600e); color: #fff8e6; border: 3px solid #fff1c8; box-shadow: 0 6px 14px rgba(90, 40, 0, .35); }
.mouse-popfx { position: fixed; z-index: 72; pointer-events: none; }
.mouse-popfx img { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: contain; opacity: 0; }
.mouse-popfx img.on { opacity: 1; }
.mouse-balloon.popped { animation: none !important; opacity: 0; }

/* ===== 12 Nov 2026 (2nd pictures): ״אמת או שלווה?״ — the blue ✓ cake (left) and the red ✗ cake (right) are the buttons,
   the claim between them; the picture is a layer over the sky (games2.css: .g2-scene) ===== */
.tf-on .g2-claim-wrap { position: fixed; z-index: 2; left: 26vw; width: 52vw; top: max(150px, calc(var(--it) + .03 * var(--ih))); bottom: calc(100dvh - var(--it) - .44 * var(--ih)); min-height: 0; display: grid; place-items: center; }
.tf-on .g2-claim { max-height: 100%; overflow-y: auto; box-shadow: 0 0 0 2px #c9a24a, 0 14px 30px rgba(20, 20, 60, .22); font-size: clamp(19px, 3.4vw, 28px); line-height: 1.35; color: #2a2a4a; }
.tf-on .g2-claim.out.to-true { transform: translateX(-55vw) rotate(-16deg) scale(.6) !important; }
.tf-on .g2-claim.out.to-false { transform: translateX(55vw) rotate(16deg) scale(.6) !important; }
.tf-on .g2-tf { display: contents; }
.tf-on .g2-tf button { position: fixed; z-index: 3; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 22px; min-height: 0; padding: 0; transition: transform .12s ease, filter .12s ease; }
.tf-on .g2-tf button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tf-on .g2-tf button:active { transform: scale(.95); filter: brightness(1.3); background: rgba(255, 255, 255, .18) !important; }
.tf-on .g2-true { left: 0; width: 24vw; top: calc(var(--it) + .02 * var(--ih)); height: calc(.66 * var(--ih)); }
.tf-on .g2-false { right: 0; width: 20vw; top: var(--it); height: calc(.68 * var(--ih)); }
@media (orientation: portrait) and (max-width: 600px) {
  .tf-on .g2-claim-wrap { left: 4vw; width: 92vw; top: 150px; bottom: calc(100dvh - var(--it) - .30 * var(--ih)); }
}
@media (orientation: landscape) {
  .tf-on .g2-claim-wrap { left: 19vw; width: 64vw; top: max(120px, calc(var(--it) + .03 * var(--ih))); bottom: calc(100dvh - var(--it) - .38 * var(--ih)); }
  .tf-on .g2-true { width: 17vw; top: var(--it); height: calc(.96 * var(--ih)); }
  .tf-on .g2-false { width: 15vw; top: var(--it); height: calc(.96 * var(--ih)); }
}
.tf-on > .fix-body { justify-content: flex-start !important; align-content: flex-start !important; }
/* 12 Nov 2026, testing stage: pick the next game by hand */
.plan-pick-btn { position: fixed !important; z-index: 60; left: max(12px, env(safe-area-inset-left, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); width: auto !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important;
  padding: 9px 14px !important; border-radius: 999px !important; background: rgba(255, 255, 255, .92) !important; color: #5a3a10 !important; border: 2px solid #d9a35c !important; box-shadow: 0 6px 14px rgba(0, 0, 0, .25) !important;
  font: 800 15px/1 Arial, "Arial Hebrew", sans-serif !important; cursor: pointer; }
.plan-pick { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(20, 12, 4, .55); animation: fix-in .2s ease both; }
.plan-pick-card { width: min(100%, 420px); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fffaf0; border: 3px solid #fff; box-shadow: 0 0 0 2px #d9a35c, 0 20px 40px rgba(0, 0, 0, .35); border-radius: 24px; padding: 18px 16px 14px; text-align: center; color: #5a3a10; font-family: Arial, "Arial Hebrew", sans-serif; }
.plan-pick-eyebrow { font-size: 13px; font-weight: 800; color: #a8742a; }
.plan-pick-card h2 { margin: 2px 0 12px; font-size: 24px; }
.plan-pick-list { display: grid; gap: 8px; }
.plan-pick-list button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 2px solid #ecd7b0; background: #fff; color: inherit; font: 800 17px/1.2 inherit; font-family: inherit; text-align: right; cursor: pointer; }
.plan-pick-list button.now { border-color: #d9a35c; background: #fff3d6; }
.plan-pick-list button small { font-size: 12px; font-weight: 700; color: #a8742a; white-space: nowrap; }
.plan-pick-list button:disabled { opacity: .45; cursor: default; }
.plan-pick-list button:not(:disabled):active { transform: scale(.98); }
.plan-pick-close { margin-top: 12px; background: none; border: 0; color: #a8742a; font: 800 15px inherit; font-family: inherit; text-decoration: underline; cursor: pointer; }
/* 12 Nov 2026: the openings — the name, whose turn it is, ״קדימה״, ״איך משחקים?״ */
:is(.pop-intro-card, .fix-game .fix-intro) .fix-turn { font-size: clamp(20px, 4.2vw, 30px) !important; font-weight: 800; color: #1f6a2c !important; margin: 2px 0 12px !important; }
:is(.pop-intro-card, .fix-game .fix-intro) :is(.pop-go, .fix-go) { font-size: clamp(22px, 4.4vw, 30px) !important; }
:is(.pop-intro-card, .fix-game .fix-intro) { min-height: min(56vw, 360px); }
/* on the games with cake pictures the chocolate sits higher, clear of the cakes and the candle */
:is(.g2-scene, .g2-suit) > .fix-body:has(> .fix-intro) { justify-content: flex-start !important; padding-top: max(64px, 6dvh) !important; }
.pop-intro { align-items: flex-start !important; padding-top: max(64px, 6dvh) !important; }
@media (orientation: landscape) { :is(.g2-scene, .g2-suit) > .fix-body:has(> .fix-intro), .pop-intro { padding-top: max(24px, 3dvh) !important; } :is(.pop-intro-card, .fix-game .fix-intro) { min-height: min(40vw, 330px); } }
.wrap-falling .pop-scene-candle { z-index: 6 !important; }
/* 12 Nov 2026: the shake before the cheese cake tells about the mouse */
body.mouse-quake :is(header, main, footer, .stage-wing, .curtain, .balloon-layer, .game-scoreboard, .spotlights, .stage-rays) { animation: m-quake 1s linear both !important; }
body.mouse-quake { overflow: hidden; }
@keyframes m-quake { 0%, 100% { transform: none; } 10% { transform: translate(-7px, 3px) rotate(-.6deg); } 20% { transform: translate(6px, -4px) rotate(.5deg); } 30% { transform: translate(-8px, -2px) rotate(-.4deg); } 40% { transform: translate(7px, 4px) rotate(.6deg); } 50% { transform: translate(-5px, 3px) rotate(-.5deg); } 60% { transform: translate(6px, -3px) rotate(.4deg); } 70% { transform: translate(-4px, 2px) rotate(-.3deg); } 80% { transform: translate(3px, -2px) rotate(.2deg); } 90% { transform: translate(-2px, 1px); } }
/* ===== 12 Nov 2026: one text size and style on every cake — the size of the regular cake (״מי מקשיב״):
   the TV cake uses it too, and no cake's text has a shadow ===== */
@media (orientation: portrait) {
  html body.cake-layout.tv-round { --cfr: calc(min(38dvh, 84vw) * .074); }
  html body.cake-layout.tv-round:not(#z1):not(#z2) .sentence { font-size: var(--cfr) !important; line-height: 1.28 !important; }
  html body.cake-layout.tv-round:not(#z1):not(#z2) .cake-copy .cake-question { font-size: calc(var(--cfr) * .95) !important; line-height: 1.25 !important; }
  html body.cake-layout.tv-round:not(#z1):not(#z2) .cake-copy .cake-question.long-question { font-size: calc(var(--cfr) * .85) !important; }
  html body.cake-layout.tv-round:not(#z1):not(#z2) .cake-copy .cake-question.very-long-question { font-size: calc(var(--cfr) * .74) !important; }
  html body.cake-layout.tv-round:not(#z1):not(#z2) .cake-copy .stage-result-copy h1 { font-size: calc(var(--cfr) * 1.05) !important; }
  html body.cake-layout.tv-round:not(#z1):not(#z2) .cake-copy .stage-result-copy p { font-size: calc(var(--cfr) * .75) !important; }
  html body.cake-layout.tv-round:not(#z1):not(#z2) .cake-copy .stage-result-copy .revealed-answer { font-size: calc(var(--cfr) * .9) !important; }
}
body.cake-layout #central-card, body.cake-layout #central-card * { text-shadow: none !important; }
body.cake-layout #central-card :is(.sentence, .cake-question, .stage-result-copy p) { font-weight: 800 !important; }
/* the sentences in the games: the same size as on the regular cake */
:root { --cfr: calc(min(38dvh, 84vw) * .074); }
.fx-scene .fix-cake .fix-sentence { font-size: var(--cfr) !important; line-height: 1.3 !important; font-weight: 800 !important; text-shadow: none !important; }
.fx-scene .fix-cake .fix-hint { font-size: calc(var(--cfr) * .55) !important; }
.tf-on .g2-claim { font-size: var(--cfr) !important; line-height: 1.3 !important; font-weight: 800 !important; }
.alias-team-score b.po-bump { display: inline-block; animation: po-bump .6s cubic-bezier(.2, 1.6, .4, 1); }
@media (orientation: portrait) {
/* 13 Nov 2026: the answers to choose from are buttons again (only a revealed answer is written on the cake); they keep the bigger text */
html body.cake-layout:not(#z1):not(#z2):not(#z3):not(#z4) .round-panel .choices .choice { font-size: calc(var(--cfr) * 1.02) !important; font-weight: 900 !important; line-height: 1.15 !important; overflow-wrap: anywhere; }
html body.cake-layout:not(#z1):not(#z2):not(#z3):not(#z4) .round-panel .choices .choice.long-answer { font-size: calc(var(--cfr) * .66) !important; line-height: 1.2 !important; }
html body.cake-layout:not(#z1):not(#z2):not(#z3):not(#z4) .round-panel .choices .choice.very-long-answer { font-size: calc(var(--cfr) * .54) !important; line-height: 1.2 !important; }
html body.cake-layout:not(#z1):not(#z2):not(#z3):not(#z4) .round-panel:has(.choices) { overflow-y: auto; }
}
/* 12 Nov 2026: the result screen leads on with a balloon — the cake slides down, the buttons go */
body.res-ballooned .round-panel :is(.round-controls, .round-controls *) { visibility: hidden !important; pointer-events: none !important; }
/* the slide is one animation, started at a fixed moment: a redraw of the screen picks it up where it is (--dd), so the
   cake glides all the way down and never jumps; everything under ״ככה זה כשמקשיבים״ fades out on the way */
body.res-down #theater-stage, body.res-down .level-candle { animation: res-slide 2s cubic-bezier(.45, 0, .2, 1) var(--dd, 0ms) both !important; }
@keyframes res-slide { from { translate: 0 0; } to { translate: 0 var(--down, 0px); } }
body.res-down :is(#central-card, .round-panel) :is(.stage-result-copy > :not(h1), details, .cake-result > :not(.stage-result-copy), .review-wrap, .scroll-rail) { animation: res-fade 1s ease var(--dd, 0ms) both !important; }
@keyframes res-fade { to { opacity: 0; visibility: hidden; } }
.res-balloon { position: fixed; z-index: 70; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.res-balloon .rb-float { position: absolute; inset: 0; display: block; animation: rb-bob 2.8s ease-in-out .8s infinite alternate; transform-origin: 50% 90%; }
.res-balloon img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .3)); pointer-events: none; }
.res-balloon:active .rb-float { scale: .96; }
@keyframes rb-bob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-2.5%) rotate(2deg); } }
.rb-name { position: absolute; left: 12%; right: 12%; top: 14%; height: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font: 900 var(--fs, 24px)/1.12 Arial, "Arial Hebrew", sans-serif; color: #4a2410; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); pointer-events: none; }
.rb-name b { font-size: 1.25em; color: #8a2a12; }
.rb-burst { position: fixed; z-index: 151; width: 0; height: 0; pointer-events: none; }
.rb-burst i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px rgba(255, 220, 120, .6);
  transform: rotate(var(--a)) translateX(0) rotate(0); animation: rb-shard .55s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes rb-shard { to { transform: rotate(var(--a)) translateX(var(--d)) rotate(220deg) scale(.4); opacity: 0; } }
.rb-flash { position: fixed; inset: 0; z-index: 150; pointer-events: none; clip-path: circle(0 at var(--x) var(--y)); animation: rb-flash .45s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes rb-flash { to { clip-path: circle(150% at var(--x) var(--y)); } }
.rb-flash.out { animation: none; clip-path: none; transition: opacity .5s ease; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .res-balloon .rb-float { animation: none; } }

@media (orientation: portrait) {
/* 12 Nov 2026: the host's answer (after ״בדוק את התשובה״) is written on the cake, not in a box */
html body.cake-layout:not(#z1):not(#z2):not(#z3):not(#z4) .round-panel .host-answer { --ac: #a3195b; background: none !important; border: 0 !important; box-shadow: none !important; padding: .1em .2em !important; }
html body.cake-layout:not(#z1):not(#z2):not(#z3):not(#z4) .round-panel .host-answer strong { color: var(--ac) !important; font-size: calc(var(--cfr) * 1.15) !important; font-weight: 900 !important; text-shadow: none !important; }
html body.cake-layout:not(#z1):not(#z2):not(#z3):not(#z4) .round-panel .host-answer-label { color: inherit !important; opacity: .75; }
html body.cake-layout:is(.cl-planning, .cl-tech, .cl-worry):not(#z1):not(#z2):not(#z3):not(#z4) .round-panel .host-answer { --ac: #ffd36b; color: #f4f1ea; }
}
/* on the dark cakes (planning, tech, worry) everything written on the cake is light, so nothing disappears into it */
html body.cake-layout:is(.cl-planning, .cl-tech, .cl-worry):not(#z1):not(#z2):not(#z3) #central-card :is(h1, h2, h3) { color: #ffd36b !important; }
html body.cake-layout:is(.cl-planning, .cl-tech, .cl-worry):not(#z1):not(#z2):not(#z3) #central-card :is(.sentence, .cake-question, .formula-tag, p, li, summary, .audit-item, span:not(mark), b, strong, em, small) { color: #f4f1ea !important; }
html body.cake-layout:is(.cl-planning, .cl-tech, .cl-worry):not(#z1):not(#z2):not(#z3) #central-card .revealed-answer { color: #ffd36b !important; }
html body.cake-layout:is(.cl-planning, .cl-tech, .cl-worry):not(#z1):not(#z2):not(#z3) .round-panel :is(.mode-pick small, .host-answer-label) { color: #f4f1ea !important; }
html body.cake-layout:is(.cl-planning, .cl-tech, .cl-worry):not(#z1):not(#z2):not(#z3) #central-card .review-sentence,
html body.cake-layout:is(.cl-planning, .cl-tech, .cl-worry):not(#z1):not(#z2):not(#z3) #central-card .review-sentence :is(span, b, strong, em, small) { color: #32172b !important; }
/* the story under ״התשובה והסיפור״: a cream card with a soft frame on every cake */
html body.cake-layout #central-card .review-sentence { background: #fff6dd !important; color: #32172b !important; border: 1.5px solid rgba(201, 149, 80, .55); box-shadow: 0 4px 12px rgba(60, 30, 10, .15); }

/* ===== 13 Nov 2026: the onboarding — the start-team balloons, the handoff after A's game, the decision ===== */
.onb-ov { position: fixed; inset: 0; z-index: 140; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 3vh, 28px); padding: max(16px, env(safe-area-inset-top)) 16px 16px;
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 236, 190, .5), rgba(60, 30, 6, .62)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: pop-in .3s ease both; overflow: hidden; }
.onb-head { max-width: min(560px, 92vw); text-align: center; padding: 14px 22px; border-radius: 22px; background: rgba(255, 248, 228, .94); color: #4a2410; box-shadow: 0 10px 28px rgba(60, 30, 0, .35); }
.onb-head h2 { margin: 0; font-weight: 900; font-size: clamp(26px, 6vw, 40px); line-height: 1.1; color: #8a2a12; }
.onb-head p { margin: 6px 0 0; font-weight: 700; font-size: clamp(16px, 3.8vw, 21px); line-height: 1.35; }
.onb-balloons { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 4vw, 40px); }
.onb-b { position: relative; }
.onb-b[disabled] { cursor: default; }
.onb-lottery .onb-b { transition: filter .12s ease, scale .12s ease; filter: saturate(.55) brightness(.85); }
.onb-lottery .onb-b.onb-hot { filter: none; scale: 1.06; }
.onb-lottery .onb-b.onb-hot img { filter: drop-shadow(0 0 22px rgba(255, 214, 90, .95)) drop-shadow(0 14px 20px rgba(0, 0, 0, .3)); }
.rb-note { position: fixed; z-index: 71; transform: translateX(-50%); padding: 8px 16px; border-radius: 16px; background: rgba(255, 248, 228, .95); color: #4a2410; text-align: center;
  font-weight: 800; font-size: clamp(15px, 3.6vw, 20px); line-height: 1.3; box-shadow: 0 8px 20px rgba(60, 30, 0, .3); pointer-events: none; width: max-content; animation: pop-in .4s ease .55s both; }
.rb-note b { color: #8a2a12; }
/* 13 Nov 2026: in the cheese-cake intro the two teams' balloons rise too, stuck together */
.mi-teams { position: absolute; left: 50%; bottom: -46vh; display: flex; z-index: 0; animation: mi-teams 13s linear -1.2s infinite; }
.mi-team { position: relative; width: min(30vw, 170px); aspect-ratio: 317 / 627; display: block; }
.mi-team + .mi-team { margin-inline-start: max(-6vw, -38px); transform: rotate(9deg); transform-origin: 50% 95%; }
.mi-team:first-child { transform: rotate(-9deg); transform-origin: 50% 95%; }
.mi-mice .mi-team img { position: static; left: auto; bottom: auto; animation: none; width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }
.mi-team b { position: absolute; left: 12%; right: 12%; top: 14%; height: 22%; display: flex; align-items: center; justify-content: center; text-align: center; font: 900 clamp(12px, 3.4vw, 19px)/1.1 Arial, sans-serif; color: #8a2a12; }
@keyframes mi-teams { from { transform: translateX(-50%) translateY(0) rotate(-3deg); } 50% { transform: translateX(-42%) translateY(-75vh) rotate(4deg); } to { transform: translateX(-50%) translateY(-160vh) rotate(-2deg); } }
/* 13 Nov 2026: the full stop after the closing quote mark (app.js strips it from the text) */
:is(.sentence, .seq-sentence, .review-sentence, .fix-sentence, .g2-claim, .mega-text > p:last-child).q-stop::after { content: "״."; }
/* 13 Nov 2026: under an onboarding balloon the screen behind keeps no buttons (nothing that leads anywhere) */
body.onb-cover :is(#app, header) :is(button, [data-action], .res-balloon, .rb-note), body.onb-cover .plan-pick-btn { visibility: hidden !important; pointer-events: none !important; }
/* 13 Nov 2026: onboarding guidance — a quiet arrow with ״לחצו כאן״ when the player takes too long (guide.js) */
.tap-hint { position: fixed; z-index: 160; display: flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; pointer-events: none;
  background: rgba(255, 248, 228, .86); color: #7a3f12; font-weight: 800; font-size: clamp(16px, 3.4vw, 20px); line-height: 1.1; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(70, 35, 5, .22); animation: th-in .5s ease both, th-bob-y 1.1s ease-in-out .5s infinite alternate; }
.tap-hint .th-arrow::before { font-size: 1.35em; font-weight: 900; }
.tap-hint[data-side="up"] { flex-direction: column-reverse; padding: 4px 14px 8px; border-radius: 18px; }
.tap-hint[data-side="up"] .th-arrow::before { content: "↑"; }
.tap-hint[data-side="down"] { flex-direction: column; padding: 8px 14px 4px; border-radius: 18px; animation: th-in .5s ease both, th-bob-yd 1.1s ease-in-out .5s infinite alternate; }
.tap-hint[data-side="down"] .th-arrow::before { content: "↓"; }
.tap-hint[data-side="right"] { flex-direction: row-reverse; animation: th-in .5s ease both, th-bob-x 1.1s ease-in-out .5s infinite alternate; }
.tap-hint[data-side="right"] .th-arrow::before { content: "→"; }
.tap-hint[data-side="left"] { flex-direction: row; animation: th-in .5s ease both, th-bob-xl 1.1s ease-in-out .5s infinite alternate; }
.tap-hint[data-side="left"] .th-arrow::before { content: "←"; }
@keyframes th-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes th-bob-y { to { translate: 0 -6px; } }
@keyframes th-bob-yd { to { translate: 0 6px; } }
@keyframes th-bob-x { to { translate: 6px 0; } }
@keyframes th-bob-xl { to { translate: -6px 0; } }
@media (prefers-reduced-motion: reduce) { .tap-hint { animation: th-in .5s ease both !important; } }

/* 13 Nov 2026: the answer buttons share one font size, made smaller only as much as needed to fit in the box (guide.js) */
html body.cake-layout:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5) .round-panel[data-fit] .choices .choice { font-size: var(--fitfs) !important; }

/* 15 Nov 2026 (user): the end card of an outside game — Prada for a win, Ross for a loss — with what was right */
.plan-outro.po-explain { place-items: center; padding: 16px; pointer-events: auto; background: rgba(30, 18, 8, .35); }
.plan-outro .po-card.po-x { width: min(94vw, 680px); box-sizing: border-box; background: none; border-radius: 0; box-shadow: none; color: #3b2410; text-align: center;
  border-style: solid; border-width: 64px 24px 26px 108px; padding: 0 84px 6px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.plan-outro .po-card.po-prada { border-image: url("assets/endcards/prada.webp") 180 64 70 300 fill / 64px 24px 26px 108px; }
.plan-outro .po-card.po-ross { border-image: url("assets/endcards/ross.webp") 170 64 70 320 fill / 64px 24px 26px 108px; }
.plan-outro .po-card.po-x h2 { margin: -34px 0 0; color: #3b2410; text-shadow: none; font-size: clamp(26px, 5.4vmin, 40px); }
.plan-outro .po-card.po-ross h2 { color: #1b3f8f; }
.plan-outro .po-card.po-x .po-line { margin: 0; color: #5a3a1c; }
.plan-outro .po-ex { width: 100%; max-height: 42vh; overflow: auto; font-size: clamp(17px, 3.2vmin, 24px); line-height: 1.4; font-weight: 600; }
.plan-outro .po-ex p { margin: 4px 0; }
.plan-outro .po-ex .po-said { font-weight: 700; color: #2c1a0a; }
.plan-outro .po-ex .po-said b { color: #b6411f; }
.plan-outro .po-ex .po-right b { color: #7a4a10; }
.plan-outro .po-card.po-ross .po-ex .po-right b { color: #1b3f8f; }
.plan-outro .po-ex .g2-recap { text-align: start; }
.plan-outro .po-next { margin-top: 4px; min-width: 200px; min-height: 52px; border-radius: 999px; border: 0; font: inherit; font-weight: 900; font-size: clamp(18px, 3.4vmin, 24px); color: #fff; cursor: pointer;
  background: linear-gradient(#e2b04a, #b5821f); box-shadow: 0 6px 14px rgba(80, 50, 10, .3); transition: opacity .3s; }
.plan-outro .po-card.po-ross .po-next { background: linear-gradient(#3d7be0, #1d4fb0); }
.plan-outro .po-next:disabled { opacity: .45; cursor: default; }
/* the candle that goes out, in the middle of the card */
.plan-outro .po-out { position: relative; width: 40px; height: 150px; margin: 4px auto 0; }
.plan-outro .po-out-c { position: absolute; left: 0; bottom: 0; width: 40px; height: 120px; object-fit: contain; }
.plan-outro .po-out-f { position: absolute; left: 50%; bottom: 96px; width: 34px; margin-left: -17px; transform-origin: 50% 90%; animation: flame-flicker 1.6s ease-in-out infinite; transition: opacity .35s, scale .35s; }
.plan-outro .po-out-s { position: absolute; left: 50%; bottom: 104px; width: 46px; margin-left: -23px; opacity: 0; transition: opacity .6s .25s, translate 1.8s .25s ease-out; }
.plan-outro .po-out.out .po-out-f { opacity: 0; scale: .2; }
.plan-outro .po-out.out .po-out-s { opacity: .85; translate: 0 -40px; }

/* ===== 15 Nov 2026 (user): ״לתשובה ולסיפור מאחוריה״ — a balloon instead of the button on the cake ===== */
.answer-review { display: none !important; }
.ans-balloon { position: fixed; z-index: 140; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ans-balloon .ab-float { position: absolute; inset: 0; display: block; animation: rb-bob 2.6s ease-in-out 1.4s infinite alternate; transform-origin: 50% 90%; }
.ans-balloon img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(60, 30, 0, .3)); }
.ans-balloon:active .ab-float { scale: .95; }
.ans-tip { position: fixed; z-index: 141; background: #fff8ec; color: #3a2414; border: 2px solid #d4a64a; border-radius: 16px; padding: 10px 14px; font-size: 18px; line-height: 1.35; box-shadow: 0 8px 22px rgba(60, 30, 0, .25); pointer-events: none; animation: ans-tip-in .5s ease 1.5s both; }
.ans-tip::before { content: ''; position: absolute; right: 100%; top: 26px; border: 9px solid transparent; border-right-color: #d4a64a; }
.ans-tip::before { right: auto; left: -18px; }
.ans-tip.ans-tip-l::before { left: auto; right: -18px; border-right-color: transparent; border-left-color: #d4a64a; }
.ans-tip.ans-tip-l { animation-name: ans-tip-in-l; }
.ans-tip.ans-tip-up::before { left: calc(var(--ax, 50%) - 9px); right: auto; top: 100%; border-right-color: transparent; border-top-color: #d4a64a; }
.ans-tip.ans-tip-up { animation-name: ans-tip-in-up; }
@keyframes ans-tip-in-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ans-tip-in-l { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes ans-tip-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.ans-ov { position: fixed; inset: 0; z-index: 2147483100; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(30, 18, 6, .5); }
.ans-gold { position: relative; flex: none; }
.ans-gold > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(40, 20, 0, .45)); }
.ans-in { position: absolute; left: 27%; right: 27%; top: 19%; height: 37%; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transition: opacity .45s ease; }
.ans-in.on { opacity: 1; }
.ans-scroll { flex: 1; min-height: 0; width: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; text-align: center; color: #3a2008; scrollbar-width: thin; scrollbar-color: #9a6a12 transparent; -webkit-mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 14px), transparent); padding: 6px 0 10px; }
.ans-a { margin: 0 0 8px; font-size: 24px; font-weight: 900; line-height: 1.25; color: #4a1c00; }
.ans-story { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.45; }
.ans-story mark, .ans-story b { background: rgba(255, 248, 220, .75); color: #6b1a00; border-radius: 6px; padding: 0 3px; font-weight: 900; }
.ans-ok { flex: none; font: inherit; font-size: 20px; font-weight: 800; padding: 10px 30px; border-radius: 999px; border: 2px solid #8a5a08; background: #fff4d6; color: #4a2a00; cursor: pointer; box-shadow: 0 4px 0 #8a5a08; }
.ans-ok:active { transform: translateY(2px); box-shadow: 0 2px 0 #8a5a08; }
@media (prefers-reduced-motion: reduce) { .ans-balloon .ab-float { animation: none; } }

/* 15 Nov 2026 (user): the map of topics on top of everything */
body.map-on #app { position: relative; z-index: 2147483200; }
body.map-on > :not(#app):not(header):not(footer):not(dialog):not(script):not(.spotlights):not(.curtain):not(.stage-rays):not(.stage-wing):not(#audio-status):not(.game-menu-btn):not(.game-tools):not(.balloon-tools):not(.collect-view):not(.ans-ov-keep) { visibility: hidden !important; pointer-events: none !important; }
body.map-on .game-menu-btn, body.map-on .balloon-tools, body.map-on .collect-view { z-index: 2147483300; }

/* 16 Nov 2026 (user): no ״בחירת משחק״ button while game balloons are up */
body.res-ballooned .plan-pick-btn,body:has(.res-balloon) .plan-pick-btn{display:none!important}

/* 16 Nov 2026: the onboarding game is an option — a button under the balloon goes on without it */
.rb-note .rb-skip { display: block; margin: 10px auto 2px; padding: 10px 20px; border-radius: 999px; border: 2px solid #d9a35c; background: #fff6e4; color: #6b3b0e; font-family: inherit; font-weight: 800; font-size: 1em; line-height: 1.15; cursor: pointer; pointer-events: auto; }
body:has(.rb-skip) .ans-tip { display: none !important; }

/* 16 Nov 2026: the onboarding points at the collected balloons in the menu */
.tool-balloons.tool-glow, .game-menu-btn.tool-glow { animation: tool-glow 1s ease-in-out infinite alternate; }
@keyframes tool-glow { from { box-shadow: 0 0 0 0 rgba(242, 201, 76, .9); } to { box-shadow: 0 0 0 8px rgba(242, 201, 76, .35), 0 0 22px 6px rgba(242, 201, 76, .8); } }

.rb-note.rb-note-skip { padding: 0; background: none; box-shadow: none; }
body.tutor-on .tap-hint { z-index: 2147481001; }

/* 17 Nov 2026 (user): after a team's first turn the answer balloon must be popped before going on */
body.must-ans #app [data-action="continue"], body.must-ans .plan-pick-btn { visibility: hidden !important; pointer-events: none !important; }
/* 17 Nov 2026 (user): on the big gold balloon the answer and its story stand in the middle of the balloon */
.ans-in { top: 13% !important; height: 42% !important; }
.ans-scroll { display: flex; flex-direction: column; }
.ans-scroll > :first-child { margin-top: auto; }
.ans-scroll > :last-child { margin-bottom: auto; }
.plan-pick-btn{display:none!important}
/* 17 Nov 2026 (user): the last screens — the cake goes down and away, the words on a card */
body.last-out #theater-stage, body.last-out .level-candle { animation: last-out 1.3s cubic-bezier(.45,0,.7,.4) both !important; }
body.last-gone #theater-stage, body.last-gone .level-candle { animation: none !important; translate: 0 130vh !important; }
@keyframes last-out { from { translate: 0 0; } to { translate: 0 130vh; } }
body.last-out #app :is(.round-panel, .host-verdict, .round-controls) { visibility: hidden !important; pointer-events: none !important; }
.last-stage { position: fixed; inset: 0; z-index: 60; pointer-events: none; direction: rtl; }
.last-stage .tc-wrap { pointer-events: auto; }
.last-card h1 { margin: 0; font-size: clamp(28px, 6vw, 40px); font-weight: 900; color: #7a2a12; line-height: 1.2; }
.last-card p { margin: 0; }
.last-card .last-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.last-card .last-btns button { min-width: 160px; }
/* 17 Nov 2026 (user): the question a little lower, the answer a little higher */
body:has(#app .host-answer) #app .stage-answer-scroll { translate: 0 3vh; }
/* 19 Nov 2026 (user): the question is always at that height — before the answer is shown too (it does not move) */
body:not(:has(#app .choices)) #app .stage-answer-scroll { translate: 0 3vh; }
#app .host-answer { translate: 0 -2.5vh; }
#app .stage-result-copy .revealed-answer.ans-big { font-size: 1.28em !important; font-weight: 900 !important; }
/* ״עוד סיפור, עוד נר״ blinks */
#app [data-action="continue"].cont-blink { animation: cont-blink 1.1s ease-in-out infinite; }
@keyframes cont-blink { 0%,100% { box-shadow: 0 0 0 0 rgba(242,193,78,0); filter: brightness(1); } 50% { box-shadow: 0 0 0 6px rgba(242,193,78,.75), 0 0 22px 6px rgba(255,214,107,.8); filter: brightness(1.12); } }
@media (prefers-reduced-motion: reduce) { #app [data-action="continue"].cont-blink { animation-duration: 2.4s; } }
/* 17 Nov 2026 (user): the answer stays put from the question to the result — only ״ככה זה כשמקשיבים!״ fades in */
body.ans-keep:not(.res-down) #app :is(.stage-result-copy, .stage-result-scroll, .panel-result, #central-card) { animation: none !important; }
body.ans-keep:not(.res-down) #app .stage-result-copy .revealed-answer { animation: none !important; opacity: 1 !important; }
body.ans-keep:not(.res-down) #app .stage-result-copy > :not(.revealed-answer) { animation: ans-keep-in .9s ease both !important; }
@keyframes ans-keep-in { from { opacity: 0; } to { opacity: 1; } }
.collect-view { z-index: 150; }

/* 19 Nov 2026 (user): the mouse's cake — the ivory stand rises from below, the cheese lands on it with a boom, then the text fades in */
.mi-cake.mi-new { width: min(94vw, calc((100dvh - 150px) / 1.203), 470px); aspect-ratio: 1 / 1.203; animation: none; margin-bottom: 128px; }
.mi-cake.mi-new > img { position: absolute; top: auto; right: auto; bottom: auto; left: auto; width: auto; height: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .4)); }
.mi-cake.mi-new > .mi-stand { left: 0; right: auto; top: auto; bottom: 0; width: 100% !important; animation: mi-stand-in .7s cubic-bezier(.2, .8, .3, 1) both; }
.mi-cake.mi-new > .mi-cheese { left: 14%; right: auto; top: 0; bottom: auto; width: 72% !important; z-index: 1; transform-origin: 50% 100%; animation: mi-cheese-drop .45s cubic-bezier(.6, 0, .9, .6) .7s both, mi-cheese-squash .5s ease-out 1.15s both; }
.mi-new { animation: mi-boom-shake .4s ease-out 1.15s both !important; }
.mi-new .mi-face { left: 15%; width: 70%; top: 17%; bottom: -120px; height: auto; z-index: 2; justify-content: space-between; animation: mi-face-in .6s ease 1.5s both; }
.mi-new .mi-actions { flex: none; }
@keyframes mi-stand-in { from { transform: translateY(110vh); } to { transform: none; } }
@keyframes mi-cheese-drop { from { transform: translateY(-130vh); } to { transform: none; } }
@keyframes mi-cheese-squash { 0% { transform: scale(1.08, .9); } 45% { transform: scale(.97, 1.04); } 100% { transform: none; } }
@keyframes mi-boom-shake { 0%, 100% { translate: 0 0; } 20% { translate: -7px 4px; } 40% { translate: 6px -3px; } 60% { translate: -4px 2px; } 80% { translate: 2px -1px; } }
@keyframes mi-face-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mi-new, .mi-new .mi-stand, .mi-new .mi-cheese, .mi-new .mi-face { animation: none !important; } }

/* ===== 19 Nov 2026 (user): the end cards — Prada (win) / Ross (loss), the logo big on top, the candle of the level standing on the card,
   the text centred and as big as the card allows, lists to the right, no emojis ===== */
.plan-outro.po-explain { padding: 12px; }
.plan-outro .po-card.po-x { --cw: min(96vw, 560px, calc((100dvh - 150px) * .75)); width: var(--cw); max-height: calc(100dvh - 130px); position: relative; overflow: visible;
  border-style: solid; padding: 0 2px 0; gap: 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; }
.plan-outro .po-card.po-prada { --bt: calc(var(--cw) * 350 / 1086); border-width: calc(var(--cw) * 350 / 1086) calc(var(--cw) * 170 / 1086) calc(var(--cw) * 170 / 1086); border-image: url("assets/endcards/prada-card.webp") 350 170 170 fill / calc(var(--cw) * 350 / 1086) calc(var(--cw) * 170 / 1086) calc(var(--cw) * 170 / 1086); }
.plan-outro .po-card.po-ross { --bt: calc(var(--cw) * 312 / 1086); border-width: calc(var(--cw) * 312 / 1086) calc(var(--cw) * 170 / 1086) calc(var(--cw) * 170 / 1086); border-image: url("assets/endcards/ross-card.webp") 312 170 170 fill / calc(var(--cw) * 312 / 1086) calc(var(--cw) * 170 / 1086) calc(var(--cw) * 170 / 1086); }
.plan-outro .po-card.po-x h2 { margin: 0; font-size: clamp(46px, 12vmin, 84px); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; color: #121212; text-shadow: none; }
.plan-outro .po-card.po-ross h2 { color: #1f3f9a; }
.plan-outro .po-card.po-x .po-line { margin: 0; font-size: clamp(20px, 4.6vmin, 30px); font-weight: 800; line-height: 1.25; color: #2a1d12; }
.plan-outro .po-card.po-ross .po-line { color: #1b2a55; }
.plan-outro .po-card.po-x .po-ex { width: 100%; max-height: none; flex: 0 1 auto; min-height: 0; overflow: auto; font-size: clamp(20px, 4.6vmin, 30px); line-height: 1.3; font-weight: 700; text-align: center; color: #2a1d12; }
.plan-outro .po-card.po-x .po-ex p { margin: 2px 0; }
.plan-outro .po-card.po-ross .po-ex b { color: #1f3f9a; }
.plan-outro .po-card.po-prada .po-ex b { color: #8a5a10; }
.plan-outro .po-card.po-x .po-ex .g2-recap, .plan-outro .po-card.po-x .po-ex ul, .plan-outro .po-card.po-x .po-ex ol { text-align: right; }
.plan-outro .po-card.po-x .po-next { position: relative; margin: 10px 0 0; min-width: min(60%, 300px); min-height: 60px; font-size: clamp(22px, 4.8vmin, 30px); z-index: 2; }
.plan-outro .po-card.po-prada .po-next { background: linear-gradient(#ecd6a2, #d6b373); color: #fff; text-shadow: 0 1px 2px rgba(90, 60, 10, .35); }
.plan-outro .po-card.po-ross .po-next { background: linear-gradient(#4f86e4, #2453b8); color: #fff; }
/* the candle of the level, standing up out of the card's top edge (behind the card) */
.plan-outro .po-cand { position: absolute; left: 50%; bottom: calc(100% + var(--bt) - var(--cw) * 60 / 1086); width: calc(var(--cw) * .13); aspect-ratio: 260 / 1089; height: auto; margin-left: calc(var(--cw) * -.065); z-index: -1;
  pointer-events: none; }
.plan-outro .po-cand img { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-outro .po-cand .pc-f { opacity: 0; transform-origin: 50% 27%; transition: opacity .35s, scale .35s; }
.plan-outro .po-cand.lit .pc-f { opacity: 1; animation: flame-flicker 1.6s ease-in-out infinite; }
.plan-outro .po-cand .pc-s { opacity: 0; transition: opacity .6s .2s, translate 1.8s .2s ease-out; }
/* a loss: the candle (not lit) drops away, dramatically */
.plan-outro .po-cand.drop { animation: po-cand-drop 1.25s cubic-bezier(.5, 0, .9, .45) forwards; }
@keyframes po-cand-drop { 0% { transform: none; } 18% { transform: translateY(-14%) rotate(-6deg); } 100% { transform: translateY(130vh) rotate(38deg); } }
/* a candle was lost: the candle of the team's previous game comes up lit — and goes out */
.plan-outro .po-cand.po-prev { transform: translateY(110%); opacity: 0; }
.plan-outro .po-cand.po-prev.up { transform: none; opacity: 1; transition: transform .9s cubic-bezier(.2, .8, .3, 1), opacity .3s; }
.plan-outro .po-cand.po-prev.out .pc-f { opacity: 0; scale: .2; animation: none; }
.plan-outro .po-cand.po-prev.out .pc-s { opacity: .85; translate: 0 -12%; }
@media (orientation: landscape) { .plan-outro.po-explain { place-items: start center; }
  .plan-outro .po-card.po-x { --cw: min(64vw, 500px); margin-top: calc(var(--cw) * .09 * 1089 / 260 * .8 + 6px); max-height: calc(100dvh - var(--cw) * .09 * 1089 / 260 * .8 - 64px); }
  .plan-outro .po-cand { width: calc(var(--cw) * .09); margin-left: calc(var(--cw) * -.045); } }
@media (prefers-reduced-motion: reduce) { .plan-outro .po-cand.drop { animation: none; opacity: 0; } }
.plan-outro .po-card.po-x .po-ex .fix-full { border: 0; background: none; padding: 0; margin: 0; box-shadow: none; font-size: inherit; }
.plan-outro .po-card.po-x .po-ex .g2-recap > div { margin: 0 0 6px; }
/* 19 Nov 2026 (user): a loss — the scene behind the card is blurred; the right one comes out of the blur, marked in yellow */
.plan-outro.po-blur { backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.plan-outro .po-reveal { position: fixed; z-index: 0; transform-origin: 0 0; pointer-events: none; animation: po-reveal-in .6s ease-out .5s both;
  filter: drop-shadow(0 0 6px #ffe14a) drop-shadow(0 0 16px #ffd21f) drop-shadow(0 0 30px rgba(255, 205, 0, .85)); }
.plan-outro .po-reveal > * { outline: 0; }
@keyframes po-reveal-in { from { opacity: 0; filter: blur(8px); } to { opacity: 1; } }
.po-cfly .pc-s { display: none; }
/* 19 Nov 2026 (user): a list's heading (״מה ששמעתם:״) is a title of its own; the list under it to the right */
.plan-outro .po-card.po-x .po-sub { margin: 4px 0 2px; font-size: clamp(24px, 5.6vmin, 36px); font-weight: 900; color: inherit; }
.plan-outro .po-card.po-ross .po-sub { color: #1f3f9a; }
.plan-outro .po-card.po-x .po-ex .po-list { text-align: right; }
/* 19 Nov 2026 (user): the candle stands behind the card (and drops behind it) — it sits in a wrapper beside the card, not inside it */
.plan-outro .po-wrap { position: relative; --cw: min(96vw, 560px, calc((100dvh - 150px) * .75)); }
.plan-outro .po-wrap.po-prada { --bt: calc(var(--cw) * 350 / 1086); }
.plan-outro .po-wrap.po-ross { --bt: calc(var(--cw) * 312 / 1086); }
.plan-outro .po-wrap > .po-cand { bottom: calc(100% - var(--cw) * 60 / 1086); }
.plan-outro .po-card.po-x h2.po-long { font-size: clamp(34px, 8.4vmin, 58px); }
@media (orientation: landscape) { .plan-outro .po-wrap { --cw: min(64vw, 500px); margin-top: calc(var(--cw) * .09 * 1089 / 260 * .8 + 6px); }
  .plan-outro .po-wrap .po-card.po-x { margin-top: 0; } }
/* 19 Nov 2026 (user): the card's bottom matches its top (whole corners), a shadow under the card, and the result text centred */
.plan-outro .po-card.po-x { filter: drop-shadow(0 18px 28px rgba(20, 10, 0, .45)) drop-shadow(0 4px 8px rgba(20, 10, 0, .3)); }
.plan-outro .po-card.po-x .po-ex, .plan-outro .po-card.po-x .po-ex .po-list, .plan-outro .po-card.po-x .po-ex .g2-recap, .plan-outro .po-card.po-x .po-ex p { text-align: center !important; }

/* 19 Nov 2026 (user): the mouse's cake bigger — the stand comes up a little from the bottom edge, the cheese drops and sits on it,
   and the words and both buttons are on the cheese */
.mouse-intro .mi-cake.mi-new { --w: min(98vw, calc((100dvh - 24px) / 1.16), 640px); position: fixed; left: calc(50% - var(--w) / 2); bottom: calc(var(--w) * -.19); width: var(--w); height: calc(var(--w) * 1.354); aspect-ratio: auto; margin: 0; }
.mouse-intro .mi-cake.mi-new > .mi-stand { left: 0; right: auto; top: auto; bottom: 0; width: 100% !important; }
.mouse-intro .mi-cake.mi-new > .mi-cheese { left: 7%; right: auto; top: 0; bottom: auto; width: 86% !important; }
.mouse-intro .mi-new .mi-face { left: 12%; width: 76%; top: 13.5%; bottom: auto; height: 53%; justify-content: center; gap: 10px; }
.mouse-intro .mi-new .mi-text { background: rgba(255, 246, 214, .78); padding: 8px 10px; }
.mouse-intro .mi-new .mi-actions { flex-direction: row; gap: 8px; }
.mouse-intro .mi-new .mi-actions button { flex: 1 1 0; min-width: 0; }

/* ===== 19 Nov 2026 (user, round 3): the end cards — wider (the text fills them), the logo smaller, the card lower so the
   candle above it is seen whole, corners whole all round (the pictures are cut to the card's own edge) ===== */
.plan-outro.po-explain { place-items: start center; overflow-y: auto; padding: 8px 10px 16px; }
.plan-outro .po-wrap, .plan-outro .po-card.po-x { --cw: min(94vw, 760px); }
.plan-outro .po-wrap { margin-top: calc(var(--cw) * .09 * 1089 / 260 * .86 + 8px); }
.plan-outro .po-card.po-x { width: var(--cw); max-height: none; margin: 0; padding: 0 4px; }
.plan-outro .po-card.po-prada { --bt: calc(var(--cw) * 240 / 1012); border-width: calc(var(--cw) * 240 / 1012) calc(var(--cw) * 125 / 1012) calc(var(--cw) * 125 / 1012);
  border-image: url("assets/endcards/prada-card.webp") 240 125 125 fill / calc(var(--cw) * 240 / 1012) calc(var(--cw) * 125 / 1012) calc(var(--cw) * 125 / 1012); }
.plan-outro .po-card.po-ross { --bt: calc(var(--cw) * 205 / 1007); border-width: calc(var(--cw) * 205 / 1007) calc(var(--cw) * 125 / 1007) calc(var(--cw) * 125 / 1007);
  border-image: url("assets/endcards/ross-card.webp") 205 125 125 fill / calc(var(--cw) * 205 / 1007) calc(var(--cw) * 125 / 1007) calc(var(--cw) * 125 / 1007); }
.plan-outro .po-wrap.po-prada { --bt: calc(var(--cw) * 240 / 1012); }
.plan-outro .po-wrap.po-ross { --bt: calc(var(--cw) * 205 / 1007); }
.plan-outro .po-wrap > .po-cand { width: calc(var(--cw) * .09); margin-left: calc(var(--cw) * -.045); bottom: calc(100% - var(--cw) * 40 / 1010); }
.plan-outro .po-card.po-x h2, .plan-outro .po-card.po-x h2.po-long { font-size: clamp(46px, 11vmin, 92px); }
.plan-outro .po-card.po-x .po-ex { font-size: clamp(22px, 4.4vmin, 40px); line-height: 1.3; }
.plan-outro .po-card.po-x .po-sub { font-size: clamp(26px, 5.4vmin, 46px); }
.plan-outro .po-card.po-x .po-next { margin: 12px 0 0; min-height: 64px; font-size: clamp(22px, 4.6vmin, 34px); }
@media (orientation: landscape) { .plan-outro .po-wrap, .plan-outro .po-card.po-x { --cw: min(70vw, 760px, calc((100dvh - 60px) * 1.05)); }
  .plan-outro .po-card.po-x h2, .plan-outro .po-card.po-x h2.po-long { font-size: clamp(40px, 9vmin, 80px); } }

/* 19 Nov 2026 (user): after a try the cake and its stand come back where they were — just a fade; only mice fly, some in front of the cake */
.mouse-intro .mi-cake.mi-new.mi-again, .mouse-intro .mi-cake.mi-new.mi-again > img, .mouse-intro .mi-new.mi-again .mi-face { animation: none !important; }
.mouse-intro .mi-cake.mi-new.mi-again { animation: mi-face-in .6s ease both !important; }
.mouse-intro .mi-mice.mi-front { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
/* the card never runs off the screen: the text scrolls inside it if it must */
.plan-outro .po-card.po-x { max-height: calc(100dvh - var(--cw) * .09 * 1089 / 260 * .86 - 30px); }
.plan-outro .po-card.po-x .po-ex { min-height: 0; overflow-y: auto; }
@media (orientation: landscape) { .plan-outro .po-wrap, .plan-outro .po-card.po-x { --cw: min(60vw, 640px); }
  .plan-outro .po-card.po-x .po-ex { font-size: clamp(20px, 3.6vmin, 32px); }
  .plan-outro .po-card.po-x .po-sub { font-size: clamp(24px, 4.4vmin, 38px); }
  .plan-outro .po-card.po-x h2, .plan-outro .po-card.po-x h2.po-long { font-size: clamp(40px, 8vmin, 72px); } }
/* 19 Nov 2026 (user): the new round menu — the old menu buttons are not shown (the new ones press them) */
html body:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) .game-tools, html body.menu-open:not(#z1):not(#z2):not(#z3):not(#z4):not(#z5):not(#z6):not(#z7):not(#z8) .game-tools { display: none !important; }
html body.cake-layout:not(#z1):not(#z2):not(#z3):not(#z4) .game-menu-btn { display: block !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 50% !important; font-size: 0 !important; color: transparent !important; overflow: visible !important; z-index: 26 !important; }
html body:not(.cake-layout) .game-menu-btn, html body:not(.game-screen) .game-menu-btn { display: none !important; }
.game-menu-btn img, .mn-c img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 3px 5px rgba(60, 30, 5, .35)); }
html body.game-screen:not(#z1):not(#z2):not(#z3) .paper-stage-action .round-pause.art-button img { width: 100% !important; height: 100% !important; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(60, 30, 5, .35)); }
.mn-stack { position: fixed; inset: 0; pointer-events: none; z-index: 25; }
body:not(.game-screen) .mn-stack, body:not(.cake-layout) .mn-stack { display: none; }
.mn-c { position: fixed; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 50%; cursor: pointer; pointer-events: none; z-index: 2;
  opacity: 0; visibility: hidden; transform: translateY(var(--dy, 0)) scale(.55); transition: transform .26s ease-in, opacity .2s ease-in, visibility 0s .26s; }
body.menu-open .mn-c { pointer-events: auto; opacity: 1; visibility: visible; transform: none; transition: transform .42s cubic-bezier(.3, 1.45, .5, 1) var(--d, 0s), opacity .18s ease var(--d, 0s), visibility 0s; }
.mn-pw { position: fixed; overflow: hidden; pointer-events: none; z-index: 1; }
.mn-pill { position: absolute; top: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; cursor: pointer; pointer-events: none;
  visibility: hidden; transform: translateX(-100%); transition: transform .28s ease-in, visibility 0s .28s; }
.mn-pill img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
body.menu-open .mn-item.open .mn-pill { pointer-events: auto; visibility: visible; transform: none; transition: transform .38s cubic-bezier(.25, 1.25, .5, 1), visibility 0s; }
.mn-c:active, .game-menu-btn:active { filter: brightness(.95); }
/* 19 Nov 2026: the menu's pictures, one sheet */
.mn-art { display: block; width: 100%; height: 100%; background: url(assets/menu/atlas.webp) no-repeat; pointer-events: none; filter: drop-shadow(0 3px 5px rgba(60, 30, 5, .35)); }
.mn-art-pause { background-size: 500.0000% 374.8503%; background-position: 0.0000% 0.0000%; }
.mn-art-menu { background-size: 500.0000% 374.8503%; background-position: 25.0000% 0.0000%; }
.mn-art-map { background-size: 500.0000% 377.1084%; background-position: 50.0000% 0.0000%; }
.mn-art-balloons { background-size: 500.0000% 379.3939%; background-position: 75.0000% 0.0000%; }
.mn-art-save { background-size: 500.0000% 377.1084%; background-position: 100.0000% 0.0000%; }
.mn-art-pill-map { background-size: 125.0000% 409.1503%; background-position: 0.0000% 35.3066%; }
.mn-art-pill-save { background-size: 125.0000% 409.1503%; background-position: 0.0000% 67.6533%; }
.mn-art-pill-balloons { background-size: 125.0000% 409.1503%; background-position: 0.0000% 100.0000%; }
.mn-pill .mn-art { filter: none; }

/* 20 Nov 2026 (user): the new logo keeps its shadow wherever it goes — loading, home, and while it passes between screens */
html body :is(.loader-logo, .home-logo, .logo-pass, .logo-fly) { filter: drop-shadow(0 16px 26px rgba(40, 14, 0, .55)) drop-shadow(0 3px 6px rgba(0, 0, 0, .35)) !important; }

/* 20 Nov 2026 (user): the loading bar in the middle, right under the logo, a little smaller */
html body .loader{justify-content:center!important;gap:10px!important}
html body .loader-bar{width:min(46vw,210px)!important;height:7px!important;margin:-4px auto 0!important;align-self:center!important}
html body .loader-text{text-align:center!important;align-self:center!important}
