:root{--gold:#ffc861;--gold-bright:#fff0a5;--cream:#fff0d0;--ink:#321a27;--muted:#d7b7bd;--purple:#682c8c;--red:#8e173c;font-family:Arial,"Arial Hebrew",sans-serif;color:#fff1d7;background:#240c25;color-scheme:dark;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 50% 12%,#68223d88,transparent 53%),linear-gradient(90deg,#18091d,#350e2d 45%,#18091d);overflow-x:hidden}button,a,input{touch-action:manipulation}button{cursor:pointer;font:inherit;font-weight:800;border:0}button:focus-visible,a:focus-visible{outline:4px solid #fff;outline-offset:5px}button:disabled{cursor:default;opacity:.4}header{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:22px 24px;position:relative;z-index:3}.wordmark{background:transparent;color:var(--cream);font-size:23px;display:flex;align-items:center;gap:7px}.wordmark b{color:var(--gold);font-size:35px}.wordmark span{font-size:11px;letter-spacing:1px;border-right:1px solid #b78a6a;margin-right:7px;padding-right:12px;color:var(--muted)}.header-tools{display:flex;gap:10px}.icon-button{width:43px;height:43px;border:1px solid #a7745d;border-radius:50%;color:var(--cream);background:#2d102d;font-size:23px}.spotlights{pointer-events:none;position:fixed;inset:0;background:conic-gradient(from 154deg at 15% -5%,transparent 0deg,#ffd07c16 15deg,transparent 25deg),conic-gradient(from 180deg at 85% -10%,transparent,#ffcf8222 20deg,transparent 32deg);z-index:0}.curtain{position:fixed;top:0;bottom:0;width:max(4vw,16px);background:repeating-linear-gradient(90deg,#2c071e,#6c1535 12px,#3d0927 25px);box-shadow:0 0 30px #0008;pointer-events:none;z-index:1}.curtain.left{left:0;border-right:2px solid #c2834555}.curtain.right{right:0;border-left:2px solid #c2834555}main{max-width:1020px;margin:0 auto;padding:12px 32px 50px;position:relative;z-index:2}footer{position:relative;z-index:2;text-align:center;color:#d5aaa6;font-size:14px;padding:0 20px max(26px,env(safe-area-inset-bottom));letter-spacing:1px}.eyebrow{font-size:14px;font-weight:800;letter-spacing:2px;color:var(--gold);margin:0 0 12px;text-align:center}.marquee{border:3px solid #ffcb6c;padding:34px 22px;border-radius:36px;background:linear-gradient(#361126,#230f25);box-shadow:0 0 0 6px #773b2d,0 0 0 8px #c6883b,0 0 32px #ffaf3840,inset 0 0 35px #f1a14d11;position:relative;text-align:center}.marquee:before,.marquee:after{content:"";position:absolute;left:22px;right:22px;height:9px;background:radial-gradient(circle,#fffbd2 0 3px,#ffc04b 4px,transparent 5px) 0 0/27px 9px;filter:drop-shadow(0 0 5px #ffb832)}.marquee:before{top:10px}.marquee:after{bottom:10px}.hero{max-width:720px;margin:12px auto 26px}.hero h1{margin:6px 0;color:#ffd07c;font-size:clamp(42px,7vw,76px);font-weight:950;line-height:1.07;text-shadow:0 3px #984e2d,0 5px #17051b;letter-spacing:-2px}.hero .tag{font-size:19px;color:#ffe9b6;margin:20px 0 0}.birthday{display:inline-flex;gap:10px;align-items:center;background:#f5bb5f;color:#3a152a;padding:7px 22px;border-radius:3px;transform:rotate(-2deg);font-weight:900;font-size:15px;margin-top:24px;box-shadow:0 4px 0 #9c562e}.scoreboard{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.score{border:1px solid #896553;border-radius:20px;padding:20px 16px;background:linear-gradient(145deg,#24192a,#100e19);text-align:center;position:relative}.score.white{background:linear-gradient(145deg,#fff6e7,#ddc9b9);color:#2c1425}.score.active{border:2px solid #fbc365;box-shadow:0 0 22px #ffc35e22}.score .team{font-size:clamp(20px,4vw,27px);font-weight:900}.score .number{font-weight:900;font-size:46px;color:var(--gold);line-height:1.2;font-variant-numeric:tabular-nums}.score.white .number{color:#723c48}.score .number small{font-size:17px;font-weight:500;opacity:.65}.score .team-label{display:block;font-size:12px;letter-spacing:1px;margin-bottom:8px;opacity:.6}.mini-candles{display:flex;justify-content:center;gap:4px;height:23px;margin:12px 0 0}.mini-candle{width:5px;height:15px;display:inline-block;border-radius:2px;background:#81727a;position:relative;align-self:end}.mini-candle.on{background:linear-gradient(90deg,#b96922,#ffe3a2,#e5a448);box-shadow:0 0 9px #ffbf5355}.mini-candle.on:before{content:"";width:5px;height:8px;background:#ffeaae;box-shadow:0 0 7px #ffb54c;border-radius:80% 0 65% 65%;transform:rotate(-35deg);position:absolute;top:-10px;left:0}.primary{display:block;width:100%;background:linear-gradient(#ffdb8b,#f2b34d);color:#3b1524;border:2px solid #fff2bd;border-radius:17px;box-shadow:0 5px 0 #8e4828,0 0 22px #ffbc3c26;padding:18px 20px;font-size:26px;font-weight:900;min-height:65px}.primary:hover{filter:brightness(1.07)}.secondary{display:block;width:100%;border:1px solid #a27269;border-radius:15px;background:#47213c;color:var(--cream);padding:16px;font-size:20px;min-height:58px}.secondary.light{background:#fff0d0;color:#361525}.button-row{display:flex;gap:12px;margin:17px 0}.button-row>*{flex:1}.home-actions{max-width:620px;margin:auto}.small-copy{color:var(--muted);font-size:15px;line-height:1.6;text-align:center;margin:18px 0}.text-link{color:var(--gold);font-size:16px;text-decoration:underline;background:none;padding:12px;display:inline-block}.home-bottom{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}.stage-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px}.stage-head .secondary{width:auto;font-size:16px;padding:10px 15px;min-height:44px}.pill{font-size:14px;font-weight:bold;color:var(--gold);border:1px solid #aa774b;border-radius:99px;padding:8px 13px;display:inline-block}.title{text-align:center;font-size:clamp(28px,5vw,44px);line-height:1.25;margin:14px 0 20px}.topic{color:#d2aab9;font-size:17px;line-height:1.5;text-align:center;margin:0 0 18px}.reading-card{background:linear-gradient(110deg,#fff2d4,#ffe5b4);border:3px solid #e2a854;border-radius:22px;color:#2e1727;padding:26px 28px;box-shadow:0 0 0 5px #43132f,0 0 0 7px #bc6f43;margin:20px 0 26px;position:relative}.reading-card .sentence{font-size:clamp(27px,4vw,37px);font-weight:800;line-height:1.65;margin:14px 0 20px;overflow-wrap:anywhere}.reading-label{font-size:14px;color:#8b4b39;font-weight:800;display:flex;justify-content:space-between}.read-progress{display:flex;gap:8px;justify-content:center;margin-bottom:20px}.read-progress span{height:8px;width:42px;border-radius:10px;background:#774054}.read-progress span.on{background:var(--gold);box-shadow:0 0 8px #f8c25c44}.clock{display:flex;align-items:center;gap:14px;direction:ltr}.clock strong{font-size:26px;font-variant-numeric:tabular-nums;color:var(--cream);min-width:70px}.track{flex:1;background:#683a4b;height:9px;border-radius:30px;overflow:hidden}.track i{display:block;background:var(--gold);height:100%;transition:width .3s}.clock.urgent strong{color:#ffad91}.clock .icon-button{font-size:17px;width:38px;height:38px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}.choice{position:relative;background:linear-gradient(145deg,#793386,#4e2367);border:2px solid #ba74c1;color:#fff6e1;border-radius:17px;min-height:105px;padding:22px 16px;font-size:25px;line-height:1.4;overflow-wrap:anywhere;box-shadow:0 4px 0 #200c29}.choice:nth-child(2){background:linear-gradient(145deg,#a73666,#6d204a);border-color:#dd7398}.choice:nth-child(3){background:linear-gradient(145deg,#37666e,#203b52);border-color:#75a5a7}.choice:nth-child(4){background:linear-gradient(145deg,#806329,#554127);border-color:#bd9b51}.choice:hover{filter:brightness(1.12)}.question-box{background:#fff0ce;color:#32182a;border-radius:16px;padding:24px;font-size:clamp(28px,4vw,36px);font-weight:900;line-height:1.5;text-align:center;border:2px solid #e9b05e}.tabs{display:flex;background:#1b0c20;padding:5px;border:1px solid #714354;border-radius:14px;margin-top:22px}.tabs button{flex:1;color:#dfbcc8;background:none;border-radius:10px;padding:13px 10px;font-size:18px}.tabs button.selected{background:#704066;color:white}.voice-panel{padding:26px 18px;text-align:center;background:#3f1a38;border-radius:20px;border:1px solid #835a68;margin-top:22px}.voice-panel .mic{font-size:54px;display:block;margin-bottom:12px}.voice-panel p{font-size:21px;line-height:1.5}.voice-status{font-size:18px!important;color:#e0c4cd;min-height:1.5em}.yes{background:linear-gradient(#427a60,#205044);color:white;border-color:#86c698}.no{background:linear-gradient(#993b58,#681c3a);color:white;border-color:#df889e}.big-candle{height:160px;width:43px;margin:60px auto 24px;border-radius:8px 8px 5px 5px;background:linear-gradient(90deg,#cf833b,#fff1bb 40%,#e9aa52 90%);box-shadow:0 0 80px #ffca4455;position:relative}.big-candle:before{content:"";position:absolute;width:4px;height:17px;background:#70432e;top:-13px;left:19px}.big-candle:after{content:"";position:absolute;width:33px;height:56px;background:radial-gradient(ellipse at 45% 78%,#fffbe6 0 22%,#ffe888 35%,#ffb12d 65%,#e56c24 80%);left:6px;top:-65px;transform:rotate(6deg);border-radius:80% 5% 55% 55%;box-shadow:0 0 40px #ffd45c99;animation:flicker 1.3s infinite alternate}.big-candle.off{background:linear-gradient(90deg,#4d4654,#94828e,#50414f);box-shadow:none}.big-candle.off:after{height:55px;width:6px;background:linear-gradient(transparent,#b7a5af);opacity:.5;filter:blur(3px);top:-68px;left:19px;border-radius:50%;box-shadow:none;animation:smoke 2s infinite}.result{text-align:center;padding:20px 20px 30px}.result h1{font-size:48px;color:var(--gold);margin:10px 0}.result p{font-size:24px;line-height:1.5}.result .primary{max-width:480px;margin:24px auto}.result details{margin:20px 0;text-align:right;border-top:1px solid #b57b5a;padding-top:20px;font-size:19px;line-height:1.7}.result details summary{cursor:pointer;color:var(--gold);font-weight:800;padding-bottom:10px}.result details .review-sentence{padding:18px;background:#fff0d0;color:#32182a;border-radius:12px;font-size:22px}.correct-answer{font-size:27px;color:#ffdf95;font-weight:800}.round-review{border:1px solid #87546a;border-radius:14px;padding:12px 18px;margin-top:24px}.round-review summary{cursor:pointer;padding:10px;font-size:17px}.audit-item{padding:14px 0;border-top:1px solid #6a3f59;font-size:19px;line-height:1.7}.map-intro{font-size:17px;line-height:1.5;color:var(--muted);text-align:center}.map-group{border:1px solid #845269;background:#31122d;border-radius:20px;margin:18px 0;padding:20px}.map-group.locked{opacity:.58;background:#221022}.map-title{display:flex;gap:12px;align-items:center}.map-title .emoji{font-size:35px}.map-title h3{font-size:23px;margin:0 0 7px;line-height:1.4}.map-title small{font-size:15px;color:#e0b59f}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:18px 0 0}.level-button{border-radius:12px;min-height:52px;background:#f5c265;color:#32162a;font-size:23px;border:1px solid #ffe9ac;position:relative}.level-button:disabled{background:#43263e;border-color:#75536a;color:#c6a6b8;opacity:1;font-size:18px}.level-button .lock{font-size:11px;display:block}.team-picker{display:flex;gap:10px;justify-content:center;margin:22px 0}.team-picker button{padding:13px 22px;border-radius:12px;background:#2b1a2b;color:#fff2dd;border:1px solid #ab7863;font-size:20px}.team-picker button.selected{background:var(--gold);color:#2b1428}.fireworks{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:8}.fireworks b{position:absolute;left:var(--x);top:var(--y);height:7px;width:7px;background:var(--color);border-radius:50%;box-shadow:0 0 10px var(--color);animation:spark 2s ease-out var(--delay) 2 both;transform:translate(0,0);opacity:0}.winner-star{font-size:80px;text-shadow:0 0 40px #f9cf64;display:block;margin-top:30px}.note{font-size:16px;line-height:1.6;color:var(--muted)}dialog{max-width:650px;width:calc(100% - 32px);max-height:85svh;border:2px solid #e2ac5b;border-radius:24px;background:#31132e;color:#fff0d7;padding:34px 25px;box-shadow:0 0 60px #0008}dialog::backdrop{background:#100715dd;backdrop-filter:blur(5px)}dialog h2{font-size:32px;text-align:center}dialog ol{padding-right:23px;font-size:21px;line-height:1.7}dialog li{margin:10px 0}.close{position:absolute;left:15px;top:10px;background:none;color:#ffd985;font-size:32px}.loading{text-align:center;padding:80px 10px;font-size:26px}.pause-overlay{position:fixed;inset:0;z-index:15;background:#1c091feb;backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;padding:30px}.pause-overlay .marquee{max-width:520px;width:100%}.pause-overlay h2{font-size:35px}.pause-overlay p{font-size:22px;line-height:1.5}.pause-overlay button{margin-top:30px}.install-note{border-top:1px solid #714353;padding-top:16px}.reset-check{text-align:center;padding:25px}.reset-check p{font-size:22px;line-height:1.6}mark{background:#ffc74f;color:#251527;border-radius:3px;padding:1px 3px}@keyframes flicker{from{transform:rotate(-6deg) scale(.95)}to{transform:rotate(5deg) scale(1.05)}}@keyframes smoke{to{transform:translateY(-35px);opacity:0}}@keyframes spark{0%{opacity:0;transform:translate(0,0) scale(.2)}10%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.2)}}@media(min-width:760px){main{padding-top:20px}.home-actions{max-width:620px}.scoreboard{max-width:720px;margin:26px auto}.game-area{max-width:800px;margin:auto}.map-columns{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.reading-card{padding:30px 38px}}@media(max-width:480px){header{padding:15px 20px}.wordmark{font-size:20px}.wordmark span{display:none}main{padding:8px 23px 36px}.hero{padding:32px 12px 27px;margin-top:8px}.hero h1{font-size:44px}.hero .tag{font-size:17px}.birthday{font-size:13px;padding:7px 14px}.scoreboard{gap:11px;margin:23px 0}.score{padding:15px 8px}.score .number{font-size:39px}.score .team{font-size:21px}.primary{font-size:25px;padding:17px 13px}.button-row{gap:10px}.button-row .secondary{font-size:18px}.reading-card{padding:20px 18px;border-radius:19px}.reading-card .sentence{font-size:29px;line-height:1.65}.choices{gap:10px}.choice{font-size:24px;min-height:110px;padding:20px 11px}.question-box{font-size:29px;padding:21px 16px}.result{padding:18px 8px}.result h1{font-size:41px}.map-group{padding:17px 14px}.map-title h3{font-size:22px}.stage-head .pill{font-size:13px;padding:8px 9px}.stage-head{gap:7px}.title{font-size:31px}.eyebrow{font-size:12px;letter-spacing:1.5px}.level-grid{gap:7px}.icon-button{width:40px;height:40px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.fireworks{display:none}}

.question-number{text-align:center;color:var(--gold);font-size:18px;font-weight:800;margin:0 0 12px}.save-note{text-align:center;color:#d9c395;font-size:15px;margin:18px 0}.reset-button{margin:16px 0}.stage-tools{display:flex;gap:8px}.stage-head{flex-wrap:wrap}.stage-tools .secondary{font-size:14px;padding:10px}.audio-status{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:18px;right:18px;max-width:620px;margin:auto;z-index:20;background:#31132ef2;border:1px solid #dda756;border-radius:15px;padding:14px 18px;text-align:center;color:#ffdf9c;font-size:17px;box-shadow:0 4px 25px #0007;pointer-events:none}.audio-status button{pointer-events:auto}.audio-status[hidden]{display:none}

/* Restore the earlier game's Hebrew system type, normal tracking and 1.55 reading rhythm. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}.reading-card .sentence{font-family:inherit;font-size:clamp(29px,3.7vw,38px);font-weight:700;line-height:1.55;letter-spacing:normal;word-spacing:normal;overflow-wrap:normal;text-align:right}.question-box{font-size:clamp(29px,4vw,38px);font-weight:800;line-height:1.45;letter-spacing:normal}.choice{font-size:clamp(24px,3vw,29px);font-weight:700;line-height:1.35}.audio-status{font-size:14px;padding:9px 14px;bottom:max(8px,env(safe-area-inset-bottom));max-width:420px}main{padding-bottom:90px}@media(max-width:480px){main{padding-inline:18px;padding-bottom:84px}.reading-card{padding:22px 18px}.reading-card .sentence{font-size:clamp(27px,7.4vw,31px);line-height:1.55;letter-spacing:normal}.question-box{font-size:30px;line-height:1.45}.choice{font-size:25px;line-height:1.35}.hero h1{letter-spacing:-1px}.map-group .level-button{font-family:inherit}}

/* Compact story cards while retaining the large Hebrew type. */
.reading-card .sentence{line-height:1.2;margin:10px 0;}.reading-card{margin:14px 0 20px;padding-block:18px}.read-progress{margin-bottom:12px}.question-box{line-height:1.25}@media(max-width:480px){.reading-card .sentence{line-height:1.2}.reading-card{padding-block:16px}}

.parameter-chip{display:inline;padding:0;margin:0;border:0;border-bottom:2px dotted #9c5e34;border-radius:3px;background:#e1a95722;color:inherit;font:inherit;line-height:inherit;text-align:inherit;cursor:pointer}.parameter-chip:hover,.parameter-chip:focus-visible{background:#ffc66577}.parameter-hint{display:block;font-size:14px;line-height:1.35;color:#81553b;margin-top:16px;font-weight:500}.parameter-dialog p{font-size:18px;line-height:1.5}.pool-values{list-style:none;padding:0;display:grid;gap:8px}.pool-values li{border:1px solid #795262;padding:12px;border-radius:10px;font-size:20px}.pool-values small{display:block;color:#ceb1bc;font-size:13px;margin-top:5px}.pool-values .chosen{border-color:#ffcc70;background:#79542b55}.answer-clock{margin:18px 0}.parameter-dialog .primary{position:sticky;bottom:0}.updates-page{max-width:800px;margin:auto;font-size:20px;line-height:1.65}.updates-page li{margin-bottom:15px}

/* The actual story cast occupies only the space above its card. */
.motion-card{--cast-height:220px;position:relative;isolation:isolate;max-width:800px;margin:14px auto 24px;padding-top:var(--cast-height)}.card-cast{position:absolute;top:0;left:0;right:0;height:calc(var(--cast-height) + 24px);z-index:1;pointer-events:none;user-select:none;display:flex;align-items:flex-end;justify-content:center;gap:10px;padding:12px 16px 0;overflow:hidden}.motion-front{position:relative;z-index:2}.peek-slot{position:relative;flex:0 1 calc(100% / var(--cast-count));max-width:240px;min-width:0;height:calc(var(--cast-height) + 5px);display:block;pointer-events:none}.peek-slot.person{max-width:260px}.peek-rise{display:flex;align-items:flex-end;justify-content:center;width:100%;height:100%;animation:cast-hover 4.7s ease-in-out var(--bob-delay) infinite;transform-origin:50% 100%;will-change:transform}.peek-slot img{display:block;object-fit:contain;width:100%;height:100%;filter:drop-shadow(0 5px 5px #140a1755);animation:cast-sway 6.1s ease-in-out var(--bob-delay) infinite;transform-origin:50% 95%}.motion-card .reading-card,.motion-card .question-box{margin:0;position:relative}.motion-result>.motion-front{background:linear-gradient(135deg,#3c1634,#2b102b);border:2px solid #c08b4d;border-radius:26px;box-shadow:0 12px 35px #17091966}.motion-result .marquee{box-shadow:none}.motion-question{--cast-height:160px;margin-top:4px}.motion-card.no-cast{--cast-height:36px}.motion-result.no-cast{--cast-height:20px}@keyframes cast-hover{0%,100%{transform:translateY(8px)}50%{transform:translateY(-8px)}}@keyframes cast-sway{0%,100%{transform:rotate(calc(var(--tilt) * -.55))}50%{transform:rotate(var(--tilt))}}@media(max-width:480px){.motion-card{--cast-height:180px;margin:8px auto 20px}.card-cast{padding-inline:2px;gap:3px}.peek-slot{max-width:190px}.peek-slot.person{max-width:205px}.motion-question{--cast-height:145px}.motion-card.no-cast{--cast-height:30px}.motion-result.no-cast{--cast-height:20px}}@media(prefers-reduced-motion:reduce){.peek-rise,.peek-slot img{animation:none!important;transform:none!important}}

/* Names are chosen only when a new campaign begins. */
.team-setup{max-width:650px;margin:20px auto;padding:24px}.team-name-field{display:block;text-align:right;font-size:24px;font-weight:800;margin:25px 0;color:var(--gold)}.team-name-field select{display:block;width:100%;margin-top:12px;padding:18px;border:2px solid #d6a355;border-radius:14px;font:inherit;font-size:25px;background:#fff0d0;color:#32182a;min-height:68px}.team-name-error{min-height:26px;color:#ffb8ad;font-size:18px;text-align:center}.team-setup>.text-link{display:block;margin:16px auto}.result-page{max-width:720px;margin:0 auto;padding:12px 0 30px}.result-card{max-width:580px;margin:0 auto;padding:22px 22px 18px;background:linear-gradient(135deg,#3c1634,#2b102b);border:1px solid #d0a658;border-radius:30px;box-shadow:0 10px 30px #19091b44}.result-card h1{font-size:clamp(27px,4.5vw,36px);margin:10px 0}.result-card p{font-size:23px;line-height:1.45;margin:12px 0 4px}.result-scene{position:relative;height:225px;display:flex;justify-content:center;align-items:flex-start;isolation:isolate}.result-scene .big-candle{height:135px;width:37px;margin:62px auto 0}.result-scene .big-candle:before{left:17px}.result-scene .big-candle:after{left:3px}.result-art{position:absolute;z-index:2;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:460px;display:flex;justify-content:center;align-items:flex-end;gap:2px;pointer-events:none}.result-art img{flex:0 1 150px;width:0;min-width:0;max-width:160px;height:110px;object-fit:contain;animation:none!important;transform:none!important}.result-page>.primary{max-width:580px;margin:22px auto 30px}.answer-highlight{background:#ffbd65;color:#31152a;box-shadow:0 0 0 2px #ffbd65;border-radius:4px;font-weight:900;padding:1px 3px}.result-page .review-sentence{line-height:1.45!important}.result-page .correct-answer{font-size:29px;font-weight:900}.result-page .answer-review[open] summary{margin-bottom:16px}@media(max-width:480px){.team-setup{padding:12px 0}.team-name-field select{font-size:23px}.result-card{padding:18px 15px 16px;border-radius:25px}.result-scene{height:205px}.result-scene .big-candle{height:120px;margin-top:58px}.result-art img{height:100px}.result-card p{font-size:22px}.result-page{padding-top:5px}.result-card h1{font-size:29px}.result-page>.primary{margin-top:20px}}

/* Team names and a compact score strip replace the header while playing. */
.team-name-row{display:flex;gap:10px;align-items:stretch;margin-top:12px}.team-name-row input{display:block;width:100%;min-width:0;padding:16px 14px;border:2px solid #d6a355;border-radius:14px;font:inherit;font-size:24px;background:#fff0d0;color:#32182a;min-height:68px}.name-dice{flex:0 0 68px;border:2px solid #ffe4a3;border-radius:14px;background:linear-gradient(#ffdd8e,#efb44f);font-size:34px;color:#32182a;box-shadow:0 4px 0 #8e4828}.name-dice:active{transform:translateY(2px);box-shadow:0 2px 0 #8e4828}.game-scoreboard{max-width:800px;margin:0 auto 16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;direction:rtl}.game-score{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#242035;border:2px solid #51445f;border-radius:19px;padding:15px 18px;min-height:80px;color:#d2cbd8;direction:rtl}.game-score.second{direction:ltr}.game-score.active{background:#433348;border-color:#ffe37a;color:#ffe37a;box-shadow:0 0 0 1px #ffe37a55}.game-team-name{font-size:clamp(18px,2.6vw,27px);font-weight:850;line-height:1.2;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;direction:rtl;text-align:right}.game-score.second .game-team-name{text-align:left}.game-team-score{display:flex;align-items:center;gap:7px;flex-shrink:0;direction:ltr;font-size:31px;font-weight:900}.game-team-score>span{font-size:30px}.game-tools{max-width:800px;margin:30px auto 8px;display:flex;gap:10px}.game-tools .secondary{font-size:17px;padding:13px}.round-status{font-size:14px;color:var(--muted);text-align:center;margin:8px 0 16px}.game-screen{display:flex;flex-direction:column;min-height:100svh}.game-screen>main{order:1;width:100%;padding-bottom:18px}.game-screen>header{order:3;width:100%;margin-top:auto;padding-top:14px;padding-bottom:20px}.game-screen>footer{order:4}.game-screen .motion-card{margin-top:0}.game-screen .result-page{padding-top:0}@media(max-width:480px){.game-scoreboard{gap:8px;margin-bottom:12px}.game-score{padding:12px 10px;border-radius:16px;min-height:72px}.game-team-name{font-size:17px}.game-team-score{font-size:25px;gap:3px}.game-team-score>span{font-size:25px}.team-name-row input{font-size:21px;min-height:64px;padding:13px 10px}.name-dice{flex-basis:60px;font-size:30px}.game-screen>header{padding-inline:18px}.game-tools .secondary{font-size:16px}.game-score.second .game-team-name{text-align:left}}

/* Let highlighted parameters wrap as ordinary text, including on narrow screens. */
.parameter-chip{white-space:normal;word-spacing:normal;letter-spacing:normal;box-decoration-break:clone;-webkit-box-decoration-break:clone}.reading-card .sentence,.review-sentence,.question-box{white-space:normal;word-spacing:normal;letter-spacing:normal}

/* Location art stays behind the actual people, objects and matching media. */
.atlas-sprite{display:block;width:100%;max-width:210px;aspect-ratio:var(--art-ratio);background-repeat:no-repeat;pointer-events:none;flex-shrink:1}
.location-cast{z-index:0;opacity:.58;gap:24px;transform:translateY(-8px)}.location-cast .peek-slot{max-width:240px}.location-cast .atlas-sprite{max-width:235px}.foreground-cast{z-index:1;align-items:flex-end}.foreground-cast .peek-slot.media{max-width:145px}.foreground-cast .peek-slot.person,.foreground-cast .peek-slot.object{z-index:2}.foreground-cast .peek-slot.media{z-index:1}.peek-rise>.atlas-sprite{margin:auto auto 0}.motion-front{z-index:3}
.result-location-art{position:absolute;inset:10px 0 30px;display:flex;justify-content:center;align-items:center;gap:10px;z-index:0;opacity:.36;pointer-events:none}.result-location-art .atlas-sprite{width:130px;max-height:150px}.result-scene .big-candle{position:relative;z-index:1}.result-art>.atlas-sprite{flex:0 1 110px;max-width:120px;height:100px}.result-art .atlas-sprite{animation:none!important;transform:none!important}
@media(max-width:480px){.location-cast{gap:12px;opacity:.53}.foreground-cast .peek-slot.media{max-width:105px}.result-location-art .atlas-sprite{width:95px}.result-art>.atlas-sprite{height:90px;flex-basis:90px}}

/* One fixed stage throughout the story, question and reveal. */
.stage-game{--stage-art-height:clamp(225px,30svh,285px);--stage-card-height:clamp(242px,31svh,290px);position:relative}
.stage-game .round-status{margin:6px 0 12px}.stage-progress{position:relative;z-index:8;margin-bottom:0;height:15px}.stage-progress span{height:7px}.theater-stage{position:relative;isolation:isolate;height:calc(var(--stage-art-height) + var(--stage-card-height));margin:0 auto 20px;max-width:800px}
.central-card{position:absolute;left:0;right:0;bottom:0;z-index:5;height:var(--stage-card-height);margin:0;padding:22px 26px;background:#fff1cd;color:#32172b;border:3px solid #e8ae54;border-radius:27px;box-shadow:0 0 0 5px #43132f,0 0 0 7px #bc6f43,0 14px 32px #13071a55;transition:transform .65s ease,background-color .7s ease;overflow:hidden}
.stage-scroll{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b98249 transparent;touch-action:pan-y;outline-offset:-3px;padding-inline:3px 10px}
.stage-scroll .sentence{font-family:inherit;font-size:clamp(29px,3.7vw,38px);font-weight:750;line-height:1.2;letter-spacing:normal;word-spacing:normal;text-align:right;margin:0;overflow-wrap:break-word}.stage-scroll .parameter-hint{font-size:12px;line-height:1.4;margin-top:18px}
.stage-scenery{position:absolute;inset:-55px 0 var(--stage-card-height);z-index:2;pointer-events:none;overflow:hidden;mask-image:linear-gradient(#000 0 97%,transparent);-webkit-mask-image:linear-gradient(#000 0 97%,transparent)}
.stage-cast{position:absolute;left:0;right:0;bottom:-7px;display:flex;justify-content:center;align-items:flex-end;pointer-events:none;gap:0;height:100%}
.stage-art{width:calc(96% / var(--art-count));max-width:250px;min-width:0;height:90%;margin-inline:-6px;position:relative;transform-origin:50% 100%}
.stage-art .atlas-sprite{width:100%;max-width:none}.stage-art img{display:block;object-fit:contain;width:100%;height:100%;max-height:100%;filter:drop-shadow(0 5px 7px #13051955)}
.stage-deal{height:100%;width:100%;animation:stage-deal .85s cubic-bezier(.18,.8,.25,1.1) var(--deal-delay) both;transition:transform .85s cubic-bezier(.6,0,.8,.35),opacity .5s ease}
.stage-hover{height:100%;display:flex;align-items:flex-end;justify-content:center;animation:stage-hover 5.5s ease-in-out var(--hover-delay) infinite;transform-origin:50% 100%}
.stage-backdrop{z-index:0;align-items:flex-start;bottom:22px;opacity:.84;gap:18px}.stage-backdrop .stage-art{height:100%;max-width:300px;min-width:0;flex-shrink:1}.stage-backdrop .stage-hover{align-items:center;animation-duration:7s}.stage-foreground{z-index:2;height:var(--stage-art-height);max-width:680px;margin-inline:auto}.stage-foreground .stage-art{height:83%;max-width:265px}.stage-foreground .stage-art.media{max-width:180px;height:66%}
.stage-transition-cue{position:absolute;top:38%;left:0;right:0;text-align:center;z-index:3;color:#ffdc81;font-size:21px;font-weight:700;opacity:0;transition:opacity .8s ease;pointer-events:none;text-shadow:0 2px 12px #100512}
.cast-leaving .stage-deal{animation:none;transform:translateY(115%) rotate(5deg);opacity:0;transition-delay:calc(var(--art-index)*.06s)}.cast-leaving .stage-hover{animation-play-state:paused}.cast-leaving .stage-transition-cue{opacity:1}.preparing-question .central-card{transform:translateY(-16px)}.preparing-question:before{content:"";position:absolute;inset:-30px -30px 0;background:radial-gradient(ellipse at 50% 65%,#20082000 15%,#0f061c99 90%);z-index:1;pointer-events:none;animation:stage-fade .8s both}
.phase-question .central-card{transform:translateY(-16px)}.stage-question{height:100%;display:flex;flex-direction:column;justify-content:center;gap:12px;overflow-y:auto;animation:question-arrive .8s ease .2s both}.stage-question .question-number{margin:0;font-size:13px;color:#8e5a34;opacity:.75}.stage-question .question-box{background:none;border:0;box-shadow:none;border-radius:0;padding:0;margin:0;line-height:1.22;font-size:clamp(29px,3.8vw,39px);text-align:center;color:#32172b;font-weight:800}
.phase-question .stage-deal{animation-duration:.8s}.stage-game .answer-clock,.stage-game .tabs,.stage-game .choices{animation:question-arrive .7s ease .35s both}.stage-game .clock{margin-top:8px}.stage-instruction{font-size:14px;margin:14px 0 18px}.stage-game .choices{margin-top:18px}.stage-game .choice{min-height:94px;font-size:clamp(22px,3vw,28px)}
.stage-candle{position:absolute;left:50%;top:0;bottom:var(--stage-card-height);z-index:1;opacity:0;transform:translate(-50%,100%);transition:opacity 1s,transform 1.1s cubic-bezier(.2,.9,.3,1);pointer-events:none}.stage-candle .big-candle{height:calc(var(--stage-art-height) - 20px);width:43px;margin:28px 0 0}.phase-result .stage-candle{opacity:1;transform:translate(-50%,0);animation:candle-rise 1.3s ease both}.stage-success .stage-candle{filter:drop-shadow(0 0 28px #ffbc45aa)}.stage-failure .stage-candle{filter:saturate(.35)}
.phase-result .stage-scenery{filter:blur(4px);opacity:.2;transition:filter 1s,opacity 1s}.phase-result .stage-deal{animation:none}.phase-result .stage-hover{animation:none}.phase-result .central-card{width:100%;max-width:none;margin:0;border:2px solid #d6a452;background:#32112f;color:#fff1d0;transform:none;padding:22px 26px}
.stage-result-copy{height:100%;overflow-y:auto;display:flex;flex-direction:column;align-items:center;justify-content:safe center;text-align:center;gap:12px;animation:question-arrive .8s ease both}.stage-result-copy h1{font-size:clamp(28px,3.8vw,38px);line-height:1.1;color:#ffd36b;margin:0}.stage-result-copy p{margin:0;font-size:clamp(19px,2.5vw,25px);line-height:1.25}.stage-result-copy .revealed-answer{font-size:clamp(23px,3vw,31px);font-weight:800;color:#fff2d0;line-height:1.2}.stage-failure .stage-result-copy h1{color:#d9b6c9}
.stage-reveal{position:absolute;bottom:calc(var(--stage-card-height) - 2px);left:50%;width:86%;height:205px;display:flex;justify-content:center;align-items:flex-end;z-index:7;transform:translateX(-50%);pointer-events:none}.reveal-piece{display:flex;justify-content:center;align-items:flex-end;width:min(260px,100%);height:100%;animation:answer-rise 1s cubic-bezier(.17,.85,.2,1.12) both;filter:drop-shadow(0 6px 10px #18071c66)}.reveal-piece img{width:100%;height:100%;object-fit:contain}.reveal-piece .atlas-sprite{width:100%;max-width:230px;max-height:205px}.stage-success .stage-reveal{filter:drop-shadow(0 0 12px #ffb83b66)}
.stage-game>details{margin:22px 0;padding:14px 0;border-bottom:1px solid #ac766666;color:#f8d893}.stage-game>details .review-sentence{background:#fff1cd;color:#32172b;padding:18px;border-radius:16px;line-height:1.4}.stage-game .correct-answer{color:#ffe29a}
@keyframes stage-deal{from{transform:translateY(110%) rotate(-13deg);opacity:0}60%{opacity:1}to{transform:translateY(0) rotate(0deg);opacity:1}}
@keyframes stage-hover{0%,100%{transform:translateY(0) rotate(var(--art-tilt))}50%{transform:translateY(-9px) rotate(calc(var(--art-tilt)*-.6))}}
@keyframes question-arrive{from{opacity:0;filter:blur(5px);transform:translateY(10px)}to{opacity:1;filter:blur(0);transform:translateY(0)}}
@keyframes stage-fade{from{opacity:0}to{opacity:1}}
@keyframes answer-rise{from{transform:translateY(100%) scale(.75);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@keyframes candle-rise{from{transform:translate(-50%,95%);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@media(max-width:480px){.stage-game{--stage-art-height:clamp(220px,30svh,275px);--stage-card-height:clamp(240px,31svh,280px)}.central-card,.phase-result .central-card{padding:20px 18px;border-radius:25px}.stage-scroll .sentence{font-size:clamp(28px,7.5vw,34px);line-height:1.22}.stage-scroll{padding-inline:0 5px}.stage-backdrop{gap:6px;bottom:25px}.stage-backdrop .stage-art{width:calc(100% / var(--art-count));max-width:280px}.stage-foreground{max-width:95%}.stage-foreground .stage-art{height:86%;margin-inline:-8px}.stage-foreground .stage-art.media{height:67%;max-width:150px}.stage-reveal{height:195px}.stage-game .choices{gap:10px}.stage-game .choice{min-height:100px;padding:15px 10px}.stage-question .question-box{font-size:30px}.stage-game .tabs{margin-top:16px}.stage-result-copy{gap:10px}.stage-result-copy h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){.stage-deal,.stage-hover,.reveal-piece,.stage-candle,.stage-question,.stage-result-copy,.stage-game .choices,.stage-game .tabs,.stage-game .answer-clock{animation:none!important}.stage-deal,.central-card,.stage-scenery{transition:none!important}.cast-leaving .stage-deal{transform:translateY(115%)!important;opacity:0!important}.phase-result .stage-candle{transform:translate(-50%,0)!important;opacity:1!important}}

/* Large, internally scrolling card; keep the complete turn close to one screen. */
.game-screen main{padding-top:8px;padding-bottom:12px}
.game-scoreboard{margin-bottom:6px}
.stage-game{--stage-art-height:68px;--stage-card-height:clamp(340px,calc(100svh - 376px),680px)}
.stage-game .round-status{margin:3px 0 6px;font-size:12px}
.stage-game .stage-clock{margin:0 0 8px;position:relative;z-index:9;gap:10px}
.stage-clock strong{font-size:22px;min-width:61px}.stage-clock .track{height:12px}.stage-clock .icon-button{width:32px;height:32px;font-size:15px}
.stage-progress{height:14px;margin:0}
.theater-stage{margin-bottom:14px}
.central-card,.phase-result .central-card{padding:24px 26px;border-radius:28px;transform:none}
.stage-scroll .sentence{font-size:clamp(29px,3.5vw,36px);line-height:1.23}
.stage-scroll .parameter-hint{margin-top:14px}
.stage-scenery{inset:auto 0 calc(var(--stage-card-height) - 84px);height:184px;mask-image:none;-webkit-mask-image:none;overflow:hidden}
.stage-cast{height:100%;bottom:0;align-items:flex-end}
.stage-backdrop{bottom:0;opacity:.8;gap:26px}.stage-backdrop .stage-art{height:100%;max-width:250px}.stage-backdrop .stage-hover{align-items:flex-end}
.stage-foreground{height:100%;max-width:560px;bottom:-20px}.stage-foreground .stage-art{height:91%;max-width:220px}.stage-foreground .stage-art.media{height:80%;max-width:165px}
.stage-deal{animation-duration:1s}.stage-hover{animation-duration:5.5s}
.stage-transition-cue{display:none}
.stage-instruction{font-size:12px;margin:9px 0 0;line-height:1.2}
.stage-game>.primary{min-height:54px;padding:15px 18px;margin:0}
.stage-answer-scroll,.stage-result-scroll{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b98249 transparent;touch-action:pan-y}
.stage-answer-scroll{display:flex;flex-direction:column;gap:13px;padding:0 3px}
.stage-question{height:auto;min-height:96px;flex:0 0 auto;overflow:visible;gap:8px;justify-content:center}
.stage-question .question-box{font-size:clamp(26px,3.3vw,35px);line-height:1.15}
.stage-question .question-number{font-size:11px}
.stage-game .tabs{margin:0;flex:0 0 auto;padding:3px;border-radius:12px}
.stage-game .tabs button{padding:9px 5px;font-size:15px;line-height:1.2}
.stage-game .choices{margin:0;gap:12px;flex:1 0 230px;grid-template-rows:1fr 1fr}
.stage-game .choice{min-height:100px;padding:14px 11px;font-size:clamp(21px,2.5vw,28px);line-height:1.2}
.stage-game .voice-panel{margin:0;padding:14px;flex:1 0 auto}.stage-game .voice-panel p{font-size:18px;line-height:1.25}
.stage-game .voice-panel .correct-answer{color:#ffe29a}
.phase-result .stage-candle{top:calc(var(--stage-art-height) + 20px);bottom:auto;height:180px;z-index:6}.stage-candle .big-candle{height:180px;width:37px;margin:0}
.stage-reveal{top:calc(var(--stage-art-height) + 58px);bottom:auto;height:150px;z-index:7;width:80%}.reveal-piece{width:min(210px,100%)}.reveal-piece .atlas-sprite{max-height:150px;max-width:200px}
.stage-result-copy{height:auto;min-height:0;overflow:visible;gap:10px;padding-top:190px;margin-bottom:18px;justify-content:flex-start}
.stage-result-copy h1{font-size:clamp(26px,3.4vw,36px)}.stage-result-copy p{font-size:clamp(19px,2.3vw,24px)}.stage-result-copy .revealed-answer{font-size:clamp(23px,3vw,30px)}
.stage-result-scroll>.primary{min-height:54px;padding:14px;margin:0 0 14px}
.stage-result-scroll>details{padding:12px 0;border-bottom:1px solid #ac766666;color:#f8d893;font-size:15px}.stage-result-scroll>details .review-sentence{background:#fff1cd;color:#32172b;padding:16px;border-radius:15px;line-height:1.35}
.game-tools{margin:12px auto 0;gap:8px}.game-tools .secondary{padding:10px;font-size:13px;min-height:38px}
@media(max-width:600px){.game-screen main{padding:6px 14px 10px}.game-scoreboard{gap:8px;margin-bottom:4px}.game-score{min-height:66px;padding:9px 10px;border-radius:20px}.game-team-name{font-size:clamp(16px,4.8vw,22px);line-height:1.08}.game-team-score{gap:4px;font-size:24px}.stage-game{--stage-art-height:59px;--stage-card-height:clamp(320px,calc(100svh - 376px),720px)}.central-card,.phase-result .central-card{padding:21px 18px;border-radius:27px}.stage-scroll .sentence{font-size:clamp(27px,7vw,33px);line-height:1.23}.stage-backdrop{gap:8px}.stage-backdrop .stage-art{max-width:210px}.stage-foreground{max-width:92%}.stage-foreground .stage-art{height:90%;margin-inline:-7px}.stage-foreground .stage-art.media{height:76%;max-width:140px}.stage-game .choices{gap:10px;flex-basis:220px}.stage-game .choice{font-size:22px;min-height:100px}.stage-question{min-height:83px}.stage-question .question-box{font-size:27px}.stage-answer-scroll{gap:11px}.stage-result-copy{padding-top:175px}.stage-reveal{height:140px}.reveal-piece .atlas-sprite{max-height:140px}.stage-candle .big-candle{height:165px}.stage-instruction{margin-top:7px}}
@media(max-height:700px){.stage-game{--stage-art-height:45px;--stage-card-height:clamp(290px,calc(100svh - 285px),480px)}.stage-game .round-status{margin:0}.stage-game .stage-clock{margin-bottom:3px}.central-card,.phase-result .central-card{padding-block:17px}.theater-stage{margin-bottom:10px}.stage-game>.primary{min-height:47px;padding:12px}.stage-instruction{display:none}.stage-result-copy{padding-top:138px}.stage-reveal{top:calc(var(--stage-art-height) + 42px);height:115px}.reveal-piece .atlas-sprite{max-height:115px}.phase-result .stage-candle{top:calc(var(--stage-art-height) + 17px)}.stage-candle .big-candle{height:140px}.stage-question{min-height:72px}.stage-question .question-box{font-size:25px}.stage-game .choice{min-height:86px;font-size:21px}.stage-game .choices{flex-basis:190px}}

.game-screen>header,.game-screen>footer{display:none}.game-tools .game-sound{flex:0 0 42px;font-size:18px}

.stage-game>.primary{font-size:24px;line-height:1.2}
.stage-result-scene{height:182px;position:relative;isolation:isolate;margin:0 0 14px}
.phase-result .stage-result-scene .stage-candle{top:0;bottom:0;z-index:1;height:180px;animation:none;transform:translate(-50%,0);opacity:1}
.stage-result-scene .stage-reveal{top:auto;bottom:0;height:135px;z-index:2}
.stage-result-scene .reveal-piece .atlas-sprite{max-height:135px}
.stage-result-copy{padding-top:0}
@media(max-height:700px){.stage-result-scene{height:135px}.phase-result .stage-result-scene .stage-candle{height:135px}.stage-result-scene .stage-reveal{height:105px}.stage-result-copy{padding-top:0}}

.phase-question .central-card{transform:none}.stage-foreground{bottom:5px}

.stage-clock-placeholder{height:32px;margin-bottom:8px}@media(max-height:700px){.stage-clock-placeholder{margin-bottom:3px}}

/* A little more space for the floating cast, with a slightly smaller stage. */
.stage-game{--stage-art-height:86px;--stage-card-height:clamp(320px,calc(100svh - 416px),640px)}
@media(max-width:600px){.stage-game{--stage-art-height:77px;--stage-card-height:clamp(300px,calc(100svh - 416px),680px)}}
@media(max-height:700px){.stage-game{--stage-art-height:59px;--stage-card-height:clamp(270px,calc(100svh - 315px),450px)}}
.hero .tag{margin-bottom:0}.home-actions{margin-top:25px}.home-actions>.primary{max-width:100%}.home-bottom{margin-top:24px}

/* Results: only text, a candle rising behind the card, and success fireworks. */
.result-progress-space{height:14px}
.phase-result .result-candle{position:absolute;top:-8px;left:50%;height:calc(var(--stage-art-height) + 120px);width:43px;z-index:1;pointer-events:none;transform:translateX(-50%);animation:result-candle-rise 1.1s cubic-bezier(.16,.85,.25,1.05) both}
.result-candle .big-candle{width:43px;height:100%;margin:0}
.result-candle .big-candle:before{left:19px}.result-candle .big-candle:after{left:6px}
.result-candle .big-candle.off:after{left:19px;opacity:0;animation:none}
.result-candle .will-light{animation:result-wax-ignite 1.1s steps(1,end) both}
.result-candle .will-light:after{opacity:0;animation:result-flame-ignite .25s ease 1.1s both,flicker 1.3s ease 1.35s infinite alternate}
.phase-result .stage-result-scroll{display:flex;flex-direction:column;gap:12px}
.phase-result .stage-result-copy{padding:0;flex:1 0 auto;justify-content:center;margin:0;min-height:150px}
.stage-result-scroll>.primary{flex:0 0 auto;margin-bottom:0}
.stage-result-scroll>details{flex:0 0 auto}
@keyframes result-candle-rise{from{transform:translate(-50%,calc(var(--stage-card-height) + 160px));opacity:0}12%{opacity:1}to{transform:translate(-50%,0);opacity:1}}
@keyframes result-wax-ignite{from{background:linear-gradient(90deg,#4d4654,#94828e,#50414f);box-shadow:none}to{background:linear-gradient(90deg,#cf833b,#fff1bb 40%,#e9aa52 90%);box-shadow:0 0 80px #ffca4455}}
@keyframes result-flame-ignite{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.phase-result .result-candle,.result-candle .will-light,.result-candle .will-light:after{animation:none}.result-candle .will-light:after{opacity:1}}

.special-formula{display:block;width:100%;margin:13px 0;background:linear-gradient(135deg,#70344f,#542554);border:2px solid #e9b65f;color:#fff0cd;padding:17px;font-size:22px;box-shadow:0 0 15px #f3b95822}

/* Reading viewport: six to seven lines, independently of screen height. */
.reading-game{--stage-card-height:calc(7 * 1.23 * clamp(29px,3.5vw,36px) + 48px)}
.reading-game .stage-scroll{height:100%;max-height:100%}
@media(max-width:600px){.reading-game{--stage-card-height:calc(7 * 1.23 * clamp(27px,7vw,33px) + 42px)}}
@media(max-height:700px){.reading-game{--stage-card-height:calc(6 * 1.23 * 27px + 34px)}.reading-game .stage-scroll .sentence{font-size:27px}}

/* Use the available game viewport, with an independent pocket for the floating art. */
.game-screen{height:100svh;min-height:0}
.game-screen>main{width:100%;max-width:960px;height:100svh;min-height:0;margin:0 auto;padding:12px 18px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}
.game-scoreboard{width:100%;max-width:900px;margin:0;flex:0 0 auto;gap:10px}
.game-score{min-height:62px;padding:10px 14px;border-radius:18px}
.game-team-name{font-size:clamp(17px,2.5vw,24px);line-height:1.12}
.game-team-score{font-size:26px}.game-team-score>span{font-size:26px}
.stage-game{width:100%;max-width:900px;margin:0 auto;min-height:0;flex:1 1 auto;display:flex;flex-direction:column;--stage-art-height:76px}
.stage-game .round-status{margin:0 0 8px;font-size:12px;line-height:1.2;flex:0 0 auto}
.stage-game .stage-clock{margin:0 0 10px;gap:9px;flex:0 0 auto}
.stage-clock strong{font-size:20px;min-width:57px}.stage-clock .track{height:9px}
.stage-progress{height:12px;flex:0 0 auto;margin:0 0 8px}.stage-progress span{height:5px}
.game-tools{width:100%;max-width:900px;flex:0 0 auto;margin:0;gap:8px}
.game-tools .secondary{min-height:38px;padding:9px 10px;font-size:13px}
.game-tools .game-sound{flex-basis:40px}
.theater-stage{width:100%;max-width:900px;margin:0 0 10px}
.central-card,.phase-result .central-card{padding:20px;border-radius:25px}
.stage-scenery{height:140px;bottom:calc(var(--stage-card-height) - 52px)}
.stage-backdrop{gap:18px;opacity:.72}.stage-backdrop .stage-art{max-width:210px}
.stage-foreground{bottom:-5px;max-width:76%;gap:8px}.stage-foreground .stage-art{margin-inline:0;max-width:170px}.stage-foreground .stage-art.media{max-width:135px}
.reading-game{--story-font:clamp(25px,3.3vw,32px);--stage-card-height:calc(7 * 1.28 * var(--story-font) + 40px)}
.reading-game .theater-stage{flex:1 1 auto;min-height:calc(var(--stage-card-height) + 54px);max-height:calc(var(--stage-card-height) + 180px)}
.reading-game .stage-scroll .sentence{font-size:var(--story-font);line-height:1.28}
.reading-game>.primary{margin:0;flex:0 0 auto;min-height:48px;padding:12px;font-size:22px}
.stage-instruction{display:none}
.answer-game{--stage-art-height:64px}
.answer-game .theater-stage{flex:1 1 auto;height:auto;min-height:0;margin-bottom:3px;--stage-card-height:calc(100% - var(--stage-art-height))}
.answer-game .central-card{height:calc(100% - var(--stage-art-height));padding:18px}
.answer-game .stage-scenery{top:0;bottom:auto;height:calc(var(--stage-art-height) + 44px)}
.answer-game .stage-answer-scroll{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:12px;padding:0 1px 4px;min-height:0}
.answer-game .stage-question{min-height:0;height:auto;gap:6px;padding:0;margin:0;flex:none}
.answer-game .question-number{font-size:11px;line-height:1.15;margin:0}
.answer-game .stage-question .question-box{font-size:clamp(23px,3vw,30px);line-height:1.2;margin:0}
.answer-game .tabs{padding:3px;border-radius:12px}
.answer-game .tabs button{padding:8px 5px;font-size:15px;line-height:1.15;min-height:34px}
.answer-game .choices{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(70px,1fr));gap:10px;margin:0;flex:none}
.answer-game .choice{min-height:70px;height:100%;padding:12px 10px;font-size:clamp(19px,2.6vw,26px);line-height:1.2;border-width:2px;box-shadow:0 4px 0 #32182a;border-radius:18px;overflow-wrap:anywhere}
.answer-game .choice.long-answer{font-size:clamp(17px,2.2vw,22px)}.answer-game .choice.very-long-answer{font-size:clamp(16px,2vw,20px)}
.answer-game .voice-panel{min-height:0;overflow-y:auto}
.result-game{justify-content:center}.result-game .theater-stage{flex:1;min-height:0;max-height:620px;--stage-card-height:calc(100% - var(--stage-art-height))}
.result-game .central-card{height:calc(100% - var(--stage-art-height))}
@media(max-width:600px){
 .game-screen>main{padding:10px 14px max(10px,env(safe-area-inset-bottom));gap:10px}
 .game-scoreboard{gap:9px}.game-score{min-height:58px;padding:9px 10px;border-radius:17px}.game-team-name{font-size:clamp(16px,4.5vw,20px)}.game-team-score,.game-team-score>span{font-size:23px}
 .stage-game{--stage-art-height:72px}.reading-game{--story-font:clamp(24px,6.5vw,28px);--stage-card-height:calc(7 * 1.28 * var(--story-font) + 34px)}
 .central-card,.phase-result .central-card{padding:17px 16px}
 .stage-foreground{max-width:83%}.stage-backdrop{gap:14px}.stage-foreground .stage-art{max-width:145px}.stage-foreground .stage-art.media{max-width:115px}
 .answer-game{--stage-art-height:58px}.answer-game .central-card{padding:16px 14px}.answer-game .stage-answer-scroll{gap:10px}.answer-game .stage-question .question-box{font-size:24px}.answer-game .choices{gap:9px}.answer-game .choice{font-size:21px;padding:10px 8px}.answer-game .choice.long-answer{font-size:18px}.answer-game .choice.very-long-answer{font-size:16px}
}
@media(max-height:700px){
 .game-screen>main{padding-block:8px;gap:8px}.game-score{min-height:50px;padding-block:7px}.game-team-name{font-size:16px}.game-team-score,.game-team-score>span{font-size:21px}
 .stage-game .round-status{margin-bottom:6px}.stage-game .stage-clock{margin-bottom:8px}.stage-clock strong{font-size:18px}.stage-clock .icon-button{width:28px;height:28px}
 .reading-game{--story-font:24px;--stage-card-height:calc(6 * 1.28 * var(--story-font) + 32px)}.reading-game .stage-scroll .sentence{font-size:var(--story-font)}
 .answer-game{--stage-art-height:46px}.answer-game .central-card{padding:14px 12px}.answer-game .stage-answer-scroll{gap:8px}.answer-game .stage-question .question-box{font-size:22px}.answer-game .choice{font-size:19px}.answer-game .choice.long-answer{font-size:17px}.answer-game .choice.very-long-answer{font-size:15px}.answer-game .tabs button{min-height:31px;padding:6px 4px;font-size:14px}
 .game-tools .secondary{min-height:34px;padding:8px;font-size:12px}
}
.reading-game .stage-scenery{top:0;bottom:calc(var(--stage-card-height) - 52px);height:auto}
.reading-game .stage-cast{height:calc(100% - 24px)}
/* Give narrow atlas sprites enough width to peek above the card. */
.reading-game .stage-backdrop{bottom:26px;gap:0}
.reading-game .stage-backdrop .stage-art{width:clamp(110px,calc(100% / var(--art-count)),190px);flex:0 0 clamp(110px,calc(100% / var(--art-count)),190px);margin-inline:-10px}
.reading-game .stage-foreground{bottom:20px}
.answer-game .choices{grid-template-rows:repeat(2,minmax(min-content,1fr))}
.answer-game .choice{height:auto}
.reading-game .theater-stage{max-height:none}

/* Three additional complete reading lines, with the same text size. */
.reading-game{--story-lines:10;--stage-card-height:calc(var(--story-lines) * 1.28 * var(--story-font) + 46px)}
@media(max-width:600px){.reading-game{--stage-card-height:calc(var(--story-lines) * 1.28 * var(--story-font) + 40px)}}
@media(max-height:700px){.reading-game{--story-lines:9;--stage-card-height:calc(var(--story-lines) * 1.28 * var(--story-font) + 40px)}.reading-game .central-card{padding-block:17px}}
@media(max-height:600px){.reading-game{--story-font:22px;--stage-card-height:calc(var(--story-lines) * 1.28 * var(--story-font) + 36px)}.reading-game .central-card{padding-block:15px}.reading-game .theater-stage{min-height:calc(var(--stage-card-height) + 40px)}}

.formula-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:10px}.formula-button{min-height:54px;margin:0;padding:12px 8px;font-size:19px}.map-group .map-title{margin-bottom:14px}

/* A fixed upper edge with content-sized reading cards, capped at seven lines. */
.game-screen>main{padding-top:max(6px,env(safe-area-inset-top));padding-bottom:max(6px,env(safe-area-inset-bottom));gap:8px;height:100svh}
.reading-game{--reading-art-space:clamp(90px,17svh,160px);--story-lines:7}
.reading-game .theater-stage{flex:1 1 0;min-height:calc(var(--reading-art-space) + 2 * 1.28 * var(--story-font) + 40px);height:auto;max-height:none;margin-bottom:12px}
.reading-game .central-card{top:var(--reading-art-space);bottom:auto;height:auto;max-height:none;transform:none;padding-block:18px}
.reading-game .stage-scroll{height:auto;max-height:calc(7 * 1.28 * var(--story-font));overflow-y:auto}
.reading-game .parameter-hint{display:none}
.reading-game .stage-scenery{top:0;bottom:auto;height:calc(var(--reading-art-space) + 30px);overflow:hidden}
.reading-game .stage-cast{height:100%}.reading-game .stage-backdrop{bottom:18px}.reading-game .stage-foreground{bottom:10px}
.reading-game>.primary{margin-top:auto;margin-bottom:0}
.result-game{justify-content:flex-start}.result-game .theater-stage{max-height:none}
.phase-result .result-candle{top:-24px;height:calc(var(--stage-art-height) + 120px)}
.map-columns{grid-template-columns:1fr;gap:16px}.map-group{margin:0}.formula-grid{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}
@media(max-width:600px){.reading-game .central-card{padding-block:16px}}
@media(max-height:700px){.reading-game{--reading-art-space:clamp(74px,14svh,98px)}.reading-game .central-card{padding-block:14px}}
/* User adjustment: lower the fixed card edge slightly and lift the next button. */
.reading-game{--reading-art-space:clamp(112px,20svh,188px)}
.reading-game>.primary{margin-bottom:14px}
@media(max-height:700px){.reading-game{--reading-art-space:clamp(92px,17svh,120px)}.reading-game>.primary{margin-bottom:10px}}

/* Lower the fixed reading edge, leaving room for the full floating silhouettes. */
.reading-game{--reading-art-space:clamp(126px,23svh,216px)}
.reading-game .central-card{top:min(var(--reading-art-space),calc(100% - 7 * 1.28 * var(--story-font) - 42px))}
.reading-game .stage-scenery{overflow:visible}
.reading-game .stage-cast{height:calc(100% - 24px)}
.reading-game .stage-backdrop .stage-art{max-width:min(190px,calc(var(--reading-art-space) * .9))}
.reading-game .stage-foreground .stage-art{max-width:min(145px,calc(var(--reading-art-space) * .75))}
.parameter-chip.parameter-colored{color:#24152c;background:#f5ce73;border-radius:5px;box-shadow:0 0 0 2px #f5ce73;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.parameter-chip.parameter-colored.color-1{background:#9bdfcf;box-shadow:0 0 0 2px #9bdfcf}
.parameter-chip.parameter-colored.color-2{background:#f4aeca;box-shadow:0 0 0 2px #f4aeca}
.parameter-chip.parameter-colored.color-3{background:#bfc6fa;box-shadow:0 0 0 2px #bfc6fa}
.parameter-chip.parameter-colored.color-4{background:#ffbd91;box-shadow:0 0 0 2px #ffbd91}
@media(max-height:700px){.reading-game{--reading-art-space:clamp(104px,20svh,136px)}}


/* One whole-sentence fade, with artwork bursting from both card edges. */
.reading-card-shell{position:absolute;left:0;right:0;top:min(var(--reading-art-space),calc(100% - 7 * 1.28 * var(--story-font) - 42px));--lower-reach:50px}
.reading-game .reading-card-shell .central-card{position:relative;top:auto;bottom:auto}
.reading-game .reading-card-shell .stage-scenery{inset:0;height:100%;overflow:visible}
.reading-game .reading-card-shell .stage-cast{height:110px;max-width:100%;gap:12px;bottom:auto}
.reading-game .burst-up{top:-98px}
.reading-game .burst-down{top:auto;bottom:calc(-1 * var(--lower-reach))!important}
.reading-game .stage-cast .stage-art{width:calc(90% / var(--art-count));flex:0 1 140px;max-width:140px;height:100%;margin-inline:0}
.reading-game .burst-up .stage-deal{animation:burst-up .85s cubic-bezier(.18,.85,.25,1.1) var(--deal-delay) both}
.reading-game .burst-down .stage-deal{animation:burst-down .85s cubic-bezier(.18,.85,.25,1.1) var(--deal-delay) both}
.reading-game .stage-cast .stage-hover{align-items:center}
.reading-game .stage-art .atlas-sprite{max-height:110px;width:auto;height:100%;aspect-ratio:var(--art-ratio)}
@keyframes burst-up{0%{opacity:0;transform:translateY(105px) scale(.55) rotate(-12deg)}65%{opacity:1;transform:translateY(-12px) scale(1.06) rotate(3deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@keyframes burst-down{0%{opacity:0;transform:translateY(-105px) scale(.55) rotate(12deg)}65%{opacity:1;transform:translateY(16px) scale(1.06) rotate(-3deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
.sentence-fade{animation:whole-sentence-in .65s ease both}
@keyframes whole-sentence-in{from{opacity:0}to{opacity:1}}
.reading-game .already-entered .stage-deal{animation:none}
.reading-game .cast-leaving .stage-deal{animation:none;opacity:0;transform:scale(.65);transition:opacity .35s,transform .45s}
.result-answer-art{position:absolute;top:0;left:0;right:0;height:var(--stage-art-height);display:flex;justify-content:center;align-items:flex-end;gap:10px;z-index:4;pointer-events:none}
.result-answer-piece{height:100%;width:min(160px,40%);display:flex;align-items:flex-end;justify-content:center;animation:result-art-return .7s ease both;filter:drop-shadow(0 4px 8px #16071c66)}
.result-answer-piece img{height:100%;width:100%;object-fit:contain}.result-answer-piece .atlas-sprite{height:100%;width:auto;aspect-ratio:var(--art-ratio);max-width:100%}
@keyframes result-art-return{from{opacity:0;transform:translateY(45px) scale(.6)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.sentence-fade,.reading-game .stage-cast .stage-deal,.result-answer-piece{animation:none!important}}

/* Full-width answer buttons, revealed in their top-to-bottom reading order. */
.answer-game .choices{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,minmax(60px,1fr));gap:12px;animation:none}
.answer-game .choice{width:100%;min-height:60px;padding:14px 20px;border-radius:22px;border-width:3px;box-shadow:0 5px 0 #32182a;display:flex;align-items:center;justify-content:center;animation:answer-button-in .42s ease both;animation-delay:.12s}
.answer-game .choice:nth-child(2){animation-delay:.24s}
.answer-game .choice:nth-child(3){animation-delay:.36s}
.answer-game .choice:nth-child(4){animation-delay:.48s}
@keyframes answer-button-in{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:700px){.answer-game .choices{gap:10px;grid-template-rows:repeat(4,minmax(54px,1fr))}.answer-game .choice{min-height:54px;padding:11px 16px;border-radius:19px}}
@media(prefers-reduced-motion:reduce){.answer-game .choice{animation:none}}

/* Reading composition: places behind the floating people, anchored to the card. */
.reading-game{--reading-art-space:clamp(140px,27svh,260px)}
.reading-game .reading-card-shell{top:min(var(--reading-art-space),calc(100% - 7 * 1.28 * var(--story-font) - 54px));--front-art-height:160px;--back-art-height:130px}
.reading-game .reading-card-shell .stage-cast{gap:clamp(4px,2vw,16px);align-items:flex-end}
.reading-game .reading-card-shell .burst-back{z-index:0;top:auto;bottom:calc(100% + var(--front-art-height) * .34 - 12px);height:var(--back-art-height);max-width:86%;margin-inline:auto;opacity:.95}
.reading-game .reading-card-shell .burst-front{z-index:2;top:auto;bottom:calc(100% - 30px);height:var(--front-art-height)}
.reading-game .reading-card-shell .burst-down{z-index:1;height:110px}
.reading-game .burst-back .stage-art{flex:0 1 180px;max-width:180px}
.reading-game .burst-front .stage-art{flex:0 1 210px;max-width:210px}
.reading-game .reading-card-shell .stage-art .atlas-sprite{height:100%;max-height:100%;width:auto;max-width:100%;aspect-ratio:var(--art-ratio)}
.reading-game .reading-card-shell .stage-hover{animation:reading-float 5s ease-in-out var(--hover-delay) infinite;align-items:flex-end}
.reading-game .burst-back .stage-hover{animation-duration:6.5s}
.reading-game>.primary{position:relative;top:var(--reading-button-shift,0px)}
@keyframes reading-float{0%,100%{transform:translateY(0) rotate(var(--art-tilt))}50%{transform:translateY(-7px) rotate(calc(var(--art-tilt) * -.5))}}
.reading-game .cast-leaving .stage-hover{animation-play-state:paused}
@media(max-height:700px){.reading-game{--reading-art-space:clamp(110px,22svh,150px)}}
@media(prefers-reduced-motion:reduce){.reading-game .reading-card-shell .stage-hover{animation:none!important}}

/* Preserve the atlas cutout proportions when several places share the row. */
.reading-game .reading-card-shell .stage-art .atlas-sprite{height:auto;width:100%;max-height:none;aspect-ratio:var(--art-ratio)}

/* Spoken answers: reveal once, then let the teams judge without a running clock. */
.answer-game .stage-question .question-box{font-size:clamp(31px,4.8vw,44px);line-height:1.16;font-weight:900;overflow-wrap:anywhere}
.answer-game .stage-question{padding:8px 3px 6px;gap:9px}
.answer-game .voice-panel{display:flex;flex-direction:column;justify-content:center;gap:18px;padding:16px 3px 22px;overflow:visible}
.voice-instruction{font-size:18px;color:#805344;text-align:center;margin:0;font-weight:700}
.answer-game .check-answer,.host-answer{width:100%;min-height:84px;border-radius:22px;padding:20px 16px;font-size:clamp(24px,3.6vw,32px)}
.host-answer{background:linear-gradient(#fff7db,#ffdf93);border:3px solid #dba74d;box-shadow:0 5px 0 #a86b37;text-align:center;color:#32172b;display:flex;flex-direction:column;justify-content:center;gap:8px;animation:host-answer-in .25s ease both;overflow-wrap:anywhere}
.host-answer-label{font-size:14px;color:#8a5a33;font-weight:700}
.host-answer strong{font-size:inherit;line-height:1.2}
.host-verdict{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:2px}
.host-verdict .secondary{min-height:70px;border-radius:19px;border-width:2px;font-size:25px;box-shadow:0 4px 0 #32182a}
.host-verdict .yes{background:linear-gradient(135deg,#458b70,#224e45);border-color:#8bc4a3;color:#fff9e9}
.host-verdict .no{background:linear-gradient(135deg,#ad426f,#742346);border-color:#e594b0;color:#fff9e9}
.answer-clock-stopped{display:grid;place-items:center;width:38px;height:38px;border:1px solid #b28a5b;border-radius:50%;color:#ffe298;font-size:22px}
.answer-game .tabs button:disabled{opacity:.65}
@keyframes host-answer-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:700px){.answer-game .stage-question .question-box{font-size:29px}.answer-game .voice-panel{gap:13px;padding:10px 2px 14px}.answer-game .check-answer,.host-answer{min-height:74px;padding:16px 12px}.host-verdict .secondary{min-height:62px;font-size:23px}}
@media(prefers-reduced-motion:reduce){.host-answer{animation:none}}
.answer-game .voice-panel{background:transparent;border:0;box-shadow:none;color:var(--ink)}

/* Reserve a central lane for the candle and separate fitted slots for every illustration. */
.result-answer-art{display:grid;grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr);gap:8px;direction:ltr;padding-inline:4px}
.result-art-side{display:grid;grid-template-columns:repeat(var(--piece-count),minmax(0,1fr));gap:8px;height:100%;min-width:0;align-items:end}
.result-art-side:last-child{grid-column:3}
.result-art-side .result-answer-piece{width:100%;min-width:0;max-width:160px;justify-self:center}
.result-art-side .result-answer-piece .atlas-sprite{width:100%;height:auto;max-height:100%;aspect-ratio:var(--art-ratio)}
/* A mirrored LTR scroll surface keeps even iOS overlay indicators on the left.
   Restore the paragraph independently so Hebrew text and parameter chips stay RTL. */
.reading-game .stage-scroll{direction:ltr;transform:scaleX(-1);padding-inline:3px 10px}
.reading-game .stage-scroll>.sentence{direction:rtl;transform:scaleX(-1)}

/* A vertical journey through Shalva's building, from the front door to the cake. */
.progress-screen{height:100svh;overflow:hidden;background:#f7efdc;color:#392c39;color-scheme:light}.progress-screen>header,.progress-screen>footer,.progress-screen>.curtain,.progress-screen>.spotlights{display:none}.progress-screen>main{width:100%;max-width:760px;height:100svh;margin:auto;padding:0}.progress-map{height:100%;display:flex;flex-direction:column;background:#faf4e5;overflow:hidden}.map-toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 22px 10px;flex-shrink:0;background:#fffaf0;z-index:2}.map-heading small{font-size:12px;color:#8d6d42;font-weight:bold;letter-spacing:1px}.map-heading h1{margin:3px 0 0;font-size:29px;line-height:1.1;color:#49343a}.map-home{font-size:15px;color:#705546;border:1px solid #dbc8aa;border-radius:24px;padding:11px 17px;background:#fffaf0;white-space:nowrap}.map-team-switch{display:flex;gap:8px;padding:8px 18px;background:#fffaf0;flex-shrink:0}.map-team-switch button{flex:1;min-width:0;min-height:48px;padding:9px 13px;background:#f1eadc;border:2px solid transparent;border-radius:15px;color:#74635a;font-size:16px;display:flex;align-items:center;justify-content:space-between;gap:7px;overflow-wrap:anywhere;line-height:1.2}.map-team-switch button.selected{border-color:#bb8744;background:#fff4c9;color:#49353c;box-shadow:0 2px 0 #c2995f}.map-team-switch button span{white-space:nowrap;font-size:18px;flex-shrink:0}.map-view-controls{display:flex;justify-content:space-between;padding:2px 23px 5px;background:#fffaf0;flex-shrink:0}.map-view-controls .text-link{padding:7px 0;font-size:14px;color:#8c6639}.tower-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#bd915c #fff4df;background:#f1e4cc;direction:ltr;position:relative}.tower-world{position:relative;isolation:isolate;direction:rtl;--world:#cfb8d9;--world-dark:#885e99;background:linear-gradient(90deg,#0000000a,transparent 15% 85%,#0000000a),var(--world);border-inline:14px solid #fff4dfaa}.world-sign{min-height:78px;padding:14px 18px;display:flex;align-items:center;gap:12px;position:relative;z-index:1;background:#ffffffc4;border-top:2px solid #fff9ef;border-bottom:1px solid #5a383a19;box-shadow:0 4px 0 #00000006}.world-sign>span:first-child{width:45px;height:45px;display:grid;place-items:center;font-size:32px;flex-shrink:0;background:#fff7;border-radius:14px}.world-sign small{color:#776651;font-size:12px;font-weight:700}.world-sign h2{margin:4px 0 0;font-size:22px;line-height:1.15;color:#49363d}.world-sign .world-soon{margin-right:auto;max-width:90px;font-size:11px;color:#725a51;background:#fff9;border:1px solid #b497752e;padding:6px 8px;border-radius:10px;text-align:center}.world-family{--world:#e9cfc5;--world-dark:#a26768}.world-food{--world:#f2d69c;--world-dark:#c98b49}.world-media{--world:#d3c5e9;--world-dark:#8a6aaf}.world-travel{--world:#b8dce1;--world-dark:#548c98}.world-construction{--world:#ded3bf;--world-dark:#a48c69}.world-cleaning{--world:#c2dcc8;--world-dark:#699e7d}.world-politics{--world:#d0d9ec;--world-dark:#687da6}.world-home{--world:#d4dcbc;--world-dark:#8a9b62}.world-beauty{--world:#efd1dc;--world-dark:#ad7692}.world-birthday{--world:#f2dfb1;--world-dark:#bd975b}.tower-floor{position:relative;overflow:hidden}.tower-windows{position:absolute;inset:24px 7%;display:grid;grid-template-columns:repeat(2,1fr);gap:44px 52%;opacity:.17;pointer-events:none}.tower-windows i{height:56px;background:#fff1d2;border:5px solid var(--world-dark);border-radius:35px 35px 2px 2px;box-shadow:inset 0 -22px #fff7d5;position:relative}.tower-windows i:after{content:'';position:absolute;left:48%;top:0;bottom:0;border-left:3px solid var(--world-dark)}.tower-trail{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.tower-trail path{fill:none;stroke:#fff9e9;stroke-width:12;stroke-linejoin:round;stroke-linecap:round}.tower-trail .trail-shadow{stroke:#a6875c66;stroke-width:19}.tower-stop{position:absolute;transform:translateX(-50%);width:57px;height:57px;z-index:2;direction:rtl}.candle-node{height:54px;width:57px;display:grid;place-items:center;border-radius:50%;border:3px solid #fff5dc;background:#fff9eb;color:#806648;font-size:20px;box-shadow:0 4px 0 #a78e67,0 5px 8px #624b3824;position:relative;padding:0;transition:transform .12s}.candle-node:not(:disabled):hover{transform:translateY(-2px)}.candle-node:disabled{opacity:1;cursor:default;background:#e5dfd0;color:#a49a87;border-color:#f4ebda;box-shadow:0 3px 0 #b9aa8d}.tower-stop.done .candle-node{background:#dfb867;border-color:#fff0bb;color:#604526;box-shadow:0 4px 0 #ac8244,0 5px 8px #624b3824}.node-flame{position:absolute;top:-12px;left:50%;transform:translateX(-50%);font-size:17px;filter:drop-shadow(0 1px 1px #bf8731)}.tower-stop.current .candle-node{background:#fff4b8;border-color:#a96742;box-shadow:0 0 0 5px #fff6dc99,0 4px 0 #9e7149;color:#784830}.tower-stop.current .node-flame{top:-23px;font-size:25px}.you-are-here{position:absolute;right:calc(100% + 12px);top:15px;white-space:nowrap;font-size:12px;font-weight:900;background:#704a48;color:#fff6e4;border-radius:8px;padding:5px 7px;box-shadow:0 2px 0 #553336}.map-players{position:absolute;left:calc(100% + 12px);top:11px;display:flex;gap:4px}.map-player{height:30px;min-width:30px;border-radius:50%;border:2px solid #fff3d6;box-shadow:0 2px 0 #7e6651;display:grid;place-items:center;font-size:13px;font-weight:900;background:#493447;color:#fff5dc}.map-player.player-1{background:#fff8ea;color:#614248}.world-objects{position:absolute;inset:0;pointer-events:none}.world-object{position:absolute;font-size:clamp(30px,7vw,49px);filter:drop-shadow(0 4px 0 #6c5b3b1c)}.world-object.object-0{left:5%;top:18%;transform:rotate(-9deg)}.world-object.object-1{right:4%;top:49%;transform:rotate(8deg)}.world-object.object-2{left:7%;top:80%;transform:rotate(-5deg)}.world-balcony{height:19px;background:linear-gradient(#fff2d5 30%,#e5c798 32% 45%,#0001 46%);box-shadow:0 3px 7px #4c3d2e23;position:relative;z-index:3}.tower-entrance{padding:32px 25px 40px;background:#ede0ca;text-align:center;color:#705647;direction:rtl}.tower-entrance>span{font-size:65px;display:block}.tower-entrance b{font-size:22px}.tower-entrance p{font-size:14px}.tower-top{position:relative;isolation:isolate;direction:rtl;text-align:center;padding:24px 20px 28px;background:radial-gradient(ellipse at 50% 40%,#fff6c9,#efd8a9);color:#715133;min-height:310px;overflow:hidden}.tower-top h2{margin:12px 0 0;font-size:30px;color:#715133}.tower-top p{font-size:15px;margin:7px 0 0}.cake-stars{font-size:30px;color:#bf8e42;letter-spacing:12px;position:absolute;inset:26px 0;z-index:-1}.map-cake{position:relative;height:180px;width:220px;margin:0 auto}.cake-tier{position:absolute;left:50%;transform:translateX(-50%);display:block;background:linear-gradient(90deg,#fffae7,#fffef9 55%,#e9d7b2);border:2px solid #c29a5f;border-radius:12px 12px 7px 7px;box-shadow:inset 0 10px #fffaf0,inset 0 -8px #ddbb7c}.cake-tier:after{content:'✦　✦　✦';color:#bb8b42;position:absolute;inset:14px 0;font-size:15px}.tier-top{width:96px;height:45px;bottom:96px;z-index:3}.tier-middle{width:148px;height:49px;bottom:51px;z-index:2}.tier-base{width:202px;height:53px;bottom:2px;z-index:1}.cake-plate{position:absolute;bottom:-5px;left:0;right:0;height:13px;border-radius:50%;background:#ca9a52;border:3px solid #f9e6af;z-index:3;box-shadow:0 6px 15px #78542d33}.cake-candle{position:absolute;top:6px;left:50%;transform:translateX(-50%);font-style:normal;font-size:22px;font-weight:900;color:#8e5b23;z-index:4;background:#fff4c1;border:2px solid #be8b42;border-radius:7px;padding:5px 6px}.cake-candle:before{content:'';position:absolute;width:9px;height:15px;border-radius:70% 30% 65% 35%;background:#ffbc38;top:-18px;left:50%;transform:translateX(-50%);box-shadow:0 0 14px #ffcf31}.map-scroll-cue{background:#fffaf0;color:#9a754d;padding:7px 10px max(7px,env(safe-area-inset-bottom));font-size:12px;text-align:center;flex-shrink:0;box-shadow:0 -2px 8px #6e513516}.politics-draft{max-width:760px;margin:auto}.politics-source{background:#ffffff0b;border:1px solid #a5936444;padding:18px;border-radius:16px;margin:15px 0}.politics-source summary{font-size:22px;cursor:pointer;color:#ffe4a4}.politics-source .source-template{font-size:23px;line-height:1.6;white-space:pre-wrap}.politics-source .audit-item{padding:14px 0;border-bottom:1px solid #ffffff19}.politics-source .source-issue{color:#ffcfb7;font-size:16px}.politics-source p{overflow-wrap:anywhere}.cake-finish{display:block;margin-top:12px}@media(max-width:400px){.map-toolbar{padding:12px 15px 7px}.map-heading h1{font-size:25px}.map-team-switch{padding:7px 12px}.map-team-switch button{font-size:14px;padding:8px}.world-sign{padding:12px;gap:8px;min-height:78px}.world-sign h2{font-size:18px}.world-sign>span:first-child{font-size:27px;width:35px}.world-sign .world-soon{max-width:75px;font-size:10px}.tower-world{border-inline-width:8px}.you-are-here{right:calc(100% + 8px);font-size:10px;padding:5px}.map-players{left:calc(100% + 8px);gap:2px}.map-player{min-width:25px;height:25px;font-size:11px}.map-home{padding:10px 12px;font-size:14px}}

/* The route climbs upward: the sign belongs below the first candle of each world. */
.tower-world{display:flex;flex-direction:column}.tower-world .world-sign{order:3}.tower-world .world-balcony{order:2}.tower-world .tower-floor{order:1;flex-shrink:0}

/* One level-colored candle follows the question through its result. */
.round-candle{--level-deep:#247554;--level-pale:#bff1d8;position:absolute;top:-25px;left:50%;width:52px;height:calc(var(--stage-art-height) + 125px);z-index:3;pointer-events:none;transform:translateX(-50%);animation:round-candle-rise 1.05s cubic-bezier(.16,.85,.25,1.08) both;filter:drop-shadow(0 7px 10px #16071c66)}
.round-candle.formula-level-1{--level-deep:#247554;--level-pale:#bff1d8}.round-candle.formula-level-2{--level-deep:#a67b00;--level-pale:#fff2a5}.round-candle.formula-level-3{--level-deep:#a95010;--level-pale:#ffd0a0}.round-candle.formula-level-4{--level-deep:#8f2929;--level-pale:#ffc0bd}.round-candle.formula-level-5{--level-deep:#57319a;--level-pale:#d7c1ff}
.round-candle .big-candle,.round-candle .big-candle.off{width:52px;height:100%;margin:0;background:linear-gradient(90deg,var(--level-deep),var(--level-pale) 43%,var(--level-color) 88%);box-shadow:none;border:1px solid #fff7;border-radius:10px 10px 6px 6px}
.round-candle .big-candle:before{left:24px}.round-candle .big-candle:after{left:10px}.round-candle .big-candle.off:after{opacity:0;animation:none}
.round-candle.candle-lit .big-candle{box-shadow:0 0 52px color-mix(in srgb,var(--level-color) 72%,#fff)}
.round-candle.candle-lit .big-candle:after{animation:round-flame-on .28s ease both,flicker 1.3s ease .28s infinite alternate}
.candle-level-badge{position:absolute;top:58px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:3px;white-space:nowrap;background:#fff8e8;color:#3a2230;border:2px solid var(--level-color);border-radius:99px;padding:3px 7px;font-size:10px;line-height:1;box-shadow:0 2px 7px #1d091d55}.candle-level-badge b{font-size:10px}
.round-answer-art{position:absolute;top:-8px;left:0;right:0;height:calc(var(--stage-art-height) + 82px);z-index:4;pointer-events:none;display:grid;grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr);gap:8px;direction:ltr;padding-inline:5px;overflow:hidden}
.round-art-side{display:grid;grid-template-columns:repeat(var(--piece-count),minmax(0,1fr));align-items:end;gap:7px;min-width:0}.round-art-side:last-child{grid-column:3}.round-answer-piece{width:100%;min-width:0;max-width:145px;height:100%;justify-self:center;display:flex;align-items:flex-end;justify-content:center;filter:drop-shadow(0 4px 8px #16071c66);animation:round-piece-rise .75s cubic-bezier(.18,.85,.25,1.1) both,round-piece-float 4.2s ease-in-out .75s infinite}.round-answer-piece img{width:100%;height:100%;object-fit:contain}.round-answer-piece .atlas-sprite{width:100%;height:auto;max-height:100%;aspect-ratio:var(--art-ratio)}
.phase-result .round-answer-piece{animation:round-piece-float 4.2s ease-in-out var(--hover-delay) infinite}.stage-failure .round-candle{filter:saturate(.68) drop-shadow(0 7px 10px #16071c66)}
.level-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:0 0 16px}.level-legend span{background:#fff1d012;border:1px solid #a77864;border-radius:99px;padding:6px 9px;font-size:13px;font-weight:800}.formula-level-mark{display:inline-flex;align-items:center;gap:2px;margin-inline-start:5px;font-size:13px;white-space:nowrap}
@keyframes round-candle-rise{from{transform:translate(-50%,calc(var(--stage-card-height) + 170px));opacity:0}14%{opacity:1}to{transform:translate(-50%,0);opacity:1}}
@keyframes round-flame-on{from{opacity:0;transform:translateY(8px) scale(.35)}to{opacity:1;transform:rotate(6deg) scale(1)}}
@keyframes round-piece-rise{from{opacity:0;transform:translateY(90px) scale(.7)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes round-piece-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}
@media(max-width:600px){.round-answer-art{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);height:calc(var(--stage-art-height) + 65px)}.round-answer-piece{max-width:112px}.round-candle{width:46px;height:calc(var(--stage-art-height) + 105px)}.round-candle .big-candle,.round-candle .big-candle.off{width:46px}.round-candle .big-candle:before{left:21px}.round-candle .big-candle:after{left:7px}.candle-level-badge{top:49px}}
@media(prefers-reduced-motion:reduce){.round-candle,.round-answer-piece,.round-candle.candle-lit .big-candle:after{animation:none!important}}
.reading-game .round-candle{top:-110px;height:190px;animation:none;z-index:2}
.reading-game .burst-up{padding-inline:80px}
.reading-game .burst-back{z-index:0}
@media(max-height:700px){.reading-game .round-candle{top:-85px;height:155px}}

/* Chocolate cake stage: the same cake and candle stay in place throughout the round. */
.game-scoreboard{gap:clamp(46px,10vw,112px)}
.cake-stage,.reading-game .cake-stage,.answer-game .cake-stage,.result-game .cake-stage{position:relative;isolation:isolate;flex:1 1 auto;min-height:350px;max-height:none;height:auto;width:100%;margin:0 auto;overflow:visible;--cake-top:clamp(80px,19%,135px);--cake-bottom:0px}
.cake-stage-image{position:absolute;z-index:1;left:0;right:0;top:var(--cake-top);bottom:var(--cake-bottom);border-style:solid;border-width:125px 60px 155px;border-image-source:url('assets/graphics/chocolate-cake-interface.png');border-image-slice:450 120 440 120 fill;border-image-width:125px 60px 155px;border-image-repeat:stretch;pointer-events:none;filter:drop-shadow(0 10px 14px #10001477)}
.cake-stage .central-card,.reading-game .cake-stage .central-card,.answer-game .cake-stage .central-card,.result-game .cake-stage .central-card{position:absolute;z-index:5;left:13%;right:13%;top:calc(var(--cake-top) + 112px);bottom:155px;width:auto;height:auto;min-height:0;max-height:none;padding:3px 6px;background:transparent;color:#3b1121;border:0;border-radius:0;box-shadow:none;transform:none;overflow:hidden}
.cake-stage .stage-scroll{height:100%;max-height:none;overflow-y:auto;padding:0 7px}
.cake-stage .stage-scroll .sentence{font-size:clamp(21px,3vw,33px);line-height:1.3;color:#3b1121}
.cake-stage .stage-answer-scroll,.cake-stage .stage-result-scroll{height:100%;display:flex;flex-direction:column;overflow:auto;gap:9px;overscroll-behavior:contain}
.cake-stage .stage-answer-scroll .stage-question{height:auto;min-height:0;flex:0 0 auto}
.cake-stage .stage-question .question-box{font-size:clamp(23px,3.4vw,34px);color:#3b1121}
.cake-stage .question-number{color:#814827}
.cake-stage .tabs{flex:0 0 auto;margin:0}.cake-stage .choices{flex:0 0 auto;display:grid;grid-template-rows:none;margin:0;gap:8px}
.cake-stage .choice{min-height:52px;font-size:clamp(18px,2.7vw,25px);padding:8px 12px}
.cake-stage .voice-panel{flex:1 0 auto;min-height:110px;gap:10px;padding:6px 0;color:#32182a}
.cake-stage .check-answer,.cake-stage .host-answer{min-height:54px;padding:10px;font-size:clamp(19px,3vw,26px)}
.cake-stage .host-verdict .secondary{min-height:48px;font-size:21px}
.cake-stage .stage-result-copy{flex:0 0 auto;min-height:0;padding:0;overflow:visible;color:#3b1121}
.cake-stage .stage-result-copy h1,.cake-stage .stage-result-copy p,.cake-stage .stage-result-copy .revealed-answer,.cake-stage .stage-failure .stage-result-copy h1{color:#3b1121}
.cake-stage .stage-result-copy h1{font-size:clamp(24px,3.5vw,36px)}.cake-stage .stage-result-copy p{font-size:clamp(18px,2.6vw,24px)}
.cake-stage details{color:#3b1121;font-size:16px}.cake-stage details summary{color:#76421f}.cake-stage .review-sentence{background:#fff4d6}
.cake-stage-action{position:absolute;z-index:6;left:17%;right:17%;bottom:83px;height:44px;display:flex;align-items:center;justify-content:center}
.cake-stage-action .primary{width:100%;height:100%;min-height:0;padding:2px 8px;border:0;border-radius:18px;background:transparent;box-shadow:none;color:#4b1a14;font-size:clamp(18px,3.3vw,27px);line-height:1.1}
.cake-stage-action .primary:hover{background:#ffeebf55}
.cake-stage .round-candle,.reading-game .cake-stage .round-candle{position:absolute;z-index:4;top:calc(var(--cake-top) - clamp(85px,15%,125px));bottom:auto;left:50%;height:clamp(105px,20%,158px);width:clamp(44px,7vw,60px);transform:translateX(-50%);animation:none;filter:drop-shadow(0 5px 8px #16071c77)}
.cake-stage .round-candle .big-candle,.cake-stage .round-candle .big-candle.off{position:relative;width:100%;height:100%;margin:0;border:2px solid #d9a24d;border-radius:12px 12px 9px 9px;background:linear-gradient(90deg,#4f280b66,#ffffff33 35%,transparent 60%,#37160966),repeating-linear-gradient(142deg,#fff6dc 0 12px,#d9c8a2 13px 15px,var(--level-color) 16px 30px,var(--level-deep) 31px 34px);box-shadow:inset 5px 0 8px #ffffff99,inset -5px 0 8px #3a170955}
.cake-stage .round-candle .big-candle:before{content:'';position:absolute;left:50%;top:-11px;width:4px;height:14px;background:#4c2a1b;transform:translateX(-50%);border-radius:2px}
.cake-stage .round-candle .big-candle:after{content:'';position:absolute;left:50%;top:-65px;width:32px;height:56px;transform:translateX(-50%);background:radial-gradient(ellipse at 50% 75%,#fffef5 0 20%,#ffe88b 37%,#ffa426 70%,#d85411 90%);border-radius:90% 5% 60% 60%;box-shadow:0 0 26px #ffc660aa;opacity:1}
.cake-stage .round-candle .big-candle.off:after{opacity:0;animation:none}
.cake-stage .round-candle.candle-lit .big-candle:after{animation:cake-flame .9s ease-in-out infinite alternate}
.cake-stage .round-answer-art{position:absolute;z-index:2;left:4%;right:4%;top:0;bottom:auto;height:calc(var(--cake-top) + 12px);display:grid;grid-template-columns:minmax(0,1fr) clamp(68px,12%,112px) minmax(0,1fr);gap:5px;padding:0;overflow:visible;pointer-events:none}
.cake-stage .round-art-side{display:grid;grid-template-columns:repeat(var(--piece-count),minmax(0,1fr));gap:3px;min-width:0;align-items:end;overflow:hidden}.cake-stage .round-art-side:last-child{grid-column:3}
.cake-stage .round-answer-piece{width:100%;height:100%;max-width:none;min-width:0;animation:round-piece-rise .75s ease both,round-piece-float 4.2s ease-in-out .75s infinite;overflow:hidden}
.cake-stage .round-answer-piece img{object-fit:contain;width:100%;height:100%}.cake-stage .round-answer-piece .atlas-sprite{width:100%;height:auto;max-height:100%;aspect-ratio:var(--art-ratio);background-repeat:no-repeat}
.game-screen .fireworks{z-index:0}.game-screen .cake-stage{z-index:1}.cake-stage.stage-failure .round-candle{filter:drop-shadow(0 5px 8px #16071c77)}
@keyframes cake-flame{from{transform:translateX(-50%) rotate(-4deg) scale(.95)}to{transform:translateX(-50%) rotate(4deg) scale(1.04)}}
@media(max-width:600px){.cake-stage-image{border-width:82px 33px 110px;border-image-width:82px 33px 110px}.cake-stage .central-card,.reading-game .cake-stage .central-card,.answer-game .cake-stage .central-card,.result-game .cake-stage .central-card{left:11%;right:11%;top:calc(var(--cake-top) + 72px);bottom:110px}.cake-stage .stage-scroll .sentence{font-size:clamp(19px,5.5vw,26px);line-height:1.28}.cake-stage .stage-question .question-box{font-size:clamp(21px,5.5vw,29px)}.cake-stage-action{left:15%;right:15%;bottom:55px;height:34px}.cake-stage-action .primary{font-size:clamp(16px,5vw,22px)}}
@media(prefers-reduced-motion:reduce){.cake-stage .round-answer-piece,.cake-stage .round-candle.candle-lit .big-candle:after{animation:none!important}}
.cake-prologue-cast{height:125px;position:relative;display:grid;grid-template-columns:minmax(0,1fr) 65px minmax(0,1fr);align-items:end;gap:8px;direction:ltr;isolation:isolate;flex-shrink:0}
.cake-prologue-cast .cake-art{grid-column:1;width:min(100%,130px);height:110px;aspect-ratio:auto;margin:0 auto;position:relative;z-index:1;animation:cake-panel-in .45s ease both,round-piece-float 4.2s ease-in-out .45s infinite}
.cake-prologue-cast .cake-built{grid-column:3;width:100%;height:100px;margin:0;position:relative;z-index:1;animation:round-piece-float 4.8s ease-in-out infinite}
.cake-prologue-candle{position:absolute;z-index:2;left:50%;bottom:0;transform:translateX(-50%);width:44px;height:105px;border:2px solid #d9a24d;border-radius:10px;background:linear-gradient(90deg,#4f280b66,#ffffff44 35%,transparent 60%,#37160966),repeating-linear-gradient(142deg,#fff6dc 0 12px,#d9c8a2 13px 15px,#52b788 16px 30px,#247554 31px 34px);box-shadow:inset 5px 0 8px #ffffff99,inset -5px 0 8px #3a170955}
.cake-prologue-candle:before{content:'';position:absolute;left:50%;top:-11px;width:4px;height:14px;background:#4c2a1b;transform:translateX(-50%)}
.cake-screen .cake-card{border-style:solid;border-width:82px 33px 110px;border-image-source:url('assets/graphics/chocolate-cake-interface.png');border-image-slice:450 120 440 120 fill;border-image-width:82px 33px 110px;border-image-repeat:stretch;border-radius:0;box-shadow:none;background:transparent;padding:4px 10px;color:#321a27;margin-top:-28px;position:relative;z-index:0}
.cake-screen .cake-card .eyebrow,.cake-screen .cake-card .cake-stage-label{color:#8c3c37}.cake-screen .cake-card .primary{background:linear-gradient(#ffdb8b,#f2b34d);color:#3b1524}
.cake-screen .cake-question-visual .cake-prologue-cast{height:100px}.cake-screen .cake-question-visual .cake-art{width:95px;height:95px}.cake-screen .cake-question-visual .cake-built{display:block;height:80px}.cake-screen .cake-question-visual .cake-prologue-candle{height:85px}
@media(prefers-reduced-motion:reduce){.cake-prologue-cast .cake-art,.cake-prologue-cast .cake-built{animation:none!important}}

/* The candle is planted in the icing; the front decoration masks the moving text. */
.cake-stage .round-candle,.reading-game .cake-stage .round-candle{top:calc(var(--cake-top) - clamp(85px,15%,125px) + 32px)}
.cake-stage .round-candle::after{content:'';position:absolute;z-index:-1;left:50%;bottom:-7px;width:145%;height:18px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,#77502c 0 35%,#e2a84b 52%,#76330c 72%,transparent 75%);box-shadow:0 3px 5px #32120788}
.cake-stage::after{content:'';position:absolute;z-index:6;left:0;right:0;top:var(--cake-top);bottom:var(--cake-bottom);border-style:solid;border-width:125px 60px 155px;border-image-source:url('assets/graphics/chocolate-cake-interface.png');border-image-slice:450 120 440 120 fill;border-image-width:125px 60px 155px;border-image-repeat:stretch;clip-path:inset(calc(100% - 155px) 0 0);pointer-events:none}
.cake-stage .central-card,.reading-game .cake-stage .central-card,.answer-game .cake-stage .central-card,.result-game .cake-stage .central-card{bottom:128px}
.cake-stage .stage-scroll,.cake-stage .stage-answer-scroll,.cake-stage .stage-result-scroll{direction:rtl;transform:none;scrollbar-width:thin;scrollbar-color:#a96638 #f7ddb2}
.cake-stage .stage-scroll>.sentence{direction:rtl;transform:none}
.cake-stage .stage-scroll::-webkit-scrollbar,.cake-stage .stage-answer-scroll::-webkit-scrollbar,.cake-stage .stage-result-scroll::-webkit-scrollbar{width:7px}
.cake-stage .stage-scroll::-webkit-scrollbar-thumb,.cake-stage .stage-answer-scroll::-webkit-scrollbar-thumb,.cake-stage .stage-result-scroll::-webkit-scrollbar-thumb{background:#a96638;border-radius:10px}
.cake-stage-action{z-index:8;gap:6px;direction:rtl}
.cake-stage-action .tabs{display:flex;flex:0 1 42%;min-width:0;height:100%;padding:2px;margin:0;border:1px solid #a56831;border-radius:11px;background:#f9d990}
.cake-stage-action .tabs button{padding:2px 4px;font-size:clamp(12px,1.8vw,17px);color:#512316;white-space:nowrap}
.cake-stage-action .tabs button.selected{background:#7b421c;color:#fff7dc}
.cake-stage-action .check-answer{flex:1;min-width:0}
.cake-stage-action .host-verdict{flex:1;min-width:0;height:100%;gap:5px;margin:0}
.cake-stage-action .host-verdict button,.cake-stage-action .host-verdict .secondary{height:100%;min-height:0;padding:2px 5px;border-radius:10px;font-size:clamp(14px,2vw,20px);box-shadow:none;line-height:1.1}
.cake-stage-action .host-verdict .primary{color:#4b1a14;background:#f9d990}
.cake-screen .cake-card>.primary{position:absolute;left:17%;right:17%;bottom:-59px;width:66%;height:34px;min-height:0;margin:0;padding:2px 5px;border:0;background:transparent;box-shadow:none;font-size:clamp(15px,4vw,21px);line-height:1.1;color:#4b1a14}
.cake-screen .cake-prologue-candle{bottom:-27px}
@media(max-width:600px){.cake-stage::after{border-width:82px 33px 110px;border-image-width:82px 33px 110px;clip-path:inset(calc(100% - 110px) 0 0)}.cake-stage .central-card,.reading-game .cake-stage .central-card,.answer-game .cake-stage .central-card,.result-game .cake-stage .central-card{bottom:91px}.cake-stage-action{left:14%;right:14%;gap:4px}.cake-stage-action .tabs{flex-basis:43%}.cake-stage-action .tabs button{font-size:12px}.cake-stage-action .host-verdict button,.cake-stage-action .host-verdict .secondary{font-size:15px}}
/* Leave enough scroll room for the final line to clear the foreground icing. */
.cake-stage .stage-scroll,.cake-stage .stage-answer-scroll,.cake-stage .stage-result-scroll{padding-bottom:38px}

.formula-weight{display:block;font-size:11px;font-weight:600;opacity:.75;margin-top:2px}
