@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:dark;--ink:#f4f7ff;--muted:#b2c8e4;--cyan:#56ebff;--pink:#ff6c9e;--coral:#ff576a;--blue:#73b6ff;--green:#7cf2a8;--yellow:#ffce62;--panel:rgba(7,20,47,.86);font-family:'Noto Sans SC',system-ui,sans-serif;color:var(--ink);background:#061329;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--cyan);outline-offset:5px}button{transition:transform .2s,box-shadow .2s,background .2s}button:hover:not(:disabled){transform:translateY(-2px)}.scene,.vignette{position:fixed;inset:0;pointer-events:none}.scene{background:url('./assets/studio.jpg') center center/cover no-repeat}.vignette{background:linear-gradient(90deg,rgba(2,10,28,.18),transparent 45%,rgba(1,9,25,.4)),linear-gradient(0deg,rgba(2,10,23,.88),transparent 36%,rgba(2,10,23,.55))}#app{position:relative;min-height:100svh;padding:28px 36px 18px;display:flex;flex-direction:column}header{display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:3}.brand{background:none;border:0;text-align:left;padding:0;display:flex;align-items:center;gap:12px}.mascot{font-size:43px;filter:drop-shadow(0 0 12px #ff80b4)}.brand-name{font-weight:900;font-size:clamp(23px,2.6vw,40px);letter-spacing:-1px;color:#fff3ef;text-shadow:2px 2px 0 #d62d58,-1px -1px 0 #ff556c,0 0 16px #ff435b}.brand-sub{font-size:12px;letter-spacing:3px;margin-top:3px;color:#e5ecff}.header-tools{display:flex;align-items:center;gap:10px}.pill,.icon-btn,.ghost{border:1px solid #759cce88;background:rgba(6,20,44,.75);box-shadow:inset 0 0 15px #559aff14;border-radius:99px;padding:10px 16px;font-size:14px;backdrop-filter:blur(16px)}.pill b{color:var(--pink);margin-right:8px}.pill .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ff668b;margin-right:7px;box-shadow:0 0 12px #ff527c}.icon-btn{width:43px;height:43px;padding:0;font-size:20px}.glass{background:linear-gradient(145deg,rgba(29,54,90,.82),rgba(4,16,39,.92));border:1px solid #8dbfff;border-radius:25px;box-shadow:0 0 0 4px #4674ff18,inset 0 0 22px #53a3ff18,0 0 23px #418eff24;backdrop-filter:blur(18px)}.home{flex:1;display:flex;align-items:center;justify-content:flex-end;min-height:650px;padding:35px 3vw 35px 0;position:relative}.welcome{width:min(450px,42vw);padding:32px;text-align:center}.eyebrow{font-size:12px;letter-spacing:4px;color:var(--cyan);font-weight:700}.welcome h1{font-size:clamp(40px,4.5vw,66px);line-height:1.18;letter-spacing:-2px;margin:16px 0;color:#fff4ee;text-shadow:0 0 24px #ff537f80}.welcome h1 span{color:var(--cyan);text-shadow:0 0 24px #30c9ff55}.separator{height:1px;background:linear-gradient(90deg,transparent,#6891bd,transparent);margin:24px 0}.welcome h2{font-size:22px;margin:0 0 10px}.muted{color:var(--muted);line-height:1.9;font-size:14px}.primary{border:1px solid #ffe4ca;background:linear-gradient(110deg,#ff9679,#ff3c67 55%,#ff7c83);box-shadow:0 0 0 4px #fb406e20,0 0 26px #ff3b6366,inset 0 0 14px #ffd09c80;padding:15px 25px;border-radius:99px;font-size:20px;font-weight:800;letter-spacing:2px}.primary:hover{box-shadow:0 0 32px #ff3b6399}.wide{width:100%}.welcome .primary{margin:20px 0 12px;font-size:24px}.welcome .ghost{padding:12px;font-size:16px}.home-note{position:absolute;left:3vw;bottom:60px;max-width:370px}.host-name{display:inline-flex;align-items:center;gap:9px;background:#071934ad;border:1px solid #ffffff50;border-radius:99px;padding:10px 16px;font-size:14px}.host-name i{width:7px;height:7px;border-radius:100%;background:var(--green)}.home-note h2{font-size:27px;text-shadow:0 2px 16px #000;margin:14px 0 6px}.home-note p{font-size:14px;color:#dcecff;margin:0}.little-tags{display:flex;gap:8px;justify-content:center;margin-top:20px}.little-tags span{font-size:12px;color:#c5defc;border:1px solid #54729a66;padding:5px 10px;border-radius:6px}.footer{display:flex;justify-content:space-between;gap:10px;color:#afc2df;font-size:12px;margin-top:auto;padding-top:10px}.footer span:last-child{color:#8fa6c8}.game{flex:1;display:grid;grid-template-columns:220px minmax(260px,1fr) 360px;gap:24px;margin-top:22px;align-items:start}.status{padding:20px;margin-top:65px}.section-title{font-size:18px;font-weight:800;margin:0 0 22px}.section-title span{color:var(--cyan)}.stat{margin-top:23px}.stat-head{display:flex;justify-content:space-between;font-size:14px;font-weight:600;margin-bottom:10px}.stat-head strong{font-size:18px}.meter{height:7px;background:#020e24;border:1px solid #3a526e;border-radius:10px;overflow:hidden}.meter i{display:block;height:100%;border-radius:10px;background:var(--tone,var(--cyan));box-shadow:0 0 12px var(--tone,var(--cyan));transition:width .5s}.stat-head{color:var(--tone,var(--cyan))}.small-note{color:#9bb0ce;font-size:12px;line-height:1.8;margin-top:23px;border-top:1px solid #6886b333;padding-top:16px}.center{min-width:0;display:flex;flex-direction:column;min-height:620px}.round-pill{align-self:center;background:linear-gradient(90deg,#132443bb,#322347dd,#132443bb);padding:8px 27px;border:1px solid #b3a2e888;border-radius:99px;font-size:15px;letter-spacing:3px}.round-pill b{font-size:23px;color:#ff9cac}.phase-title{text-align:center;font-size:38px;font-weight:900;margin:13px 0 6px;text-shadow:0 0 22px #ff487f,2px 2px #a7254e}.phase-sub{text-align:center;font-size:14px;color:#ffcadb;margin:0}.host-caption{margin:auto auto 20px;background:#08162edb;border:1px solid #a9badd88;border-radius:20px;padding:12px 20px;display:flex;gap:12px;align-items:center;max-width:100%;font-size:14px;backdrop-filter:blur(12px)}.host-caption b{color:#ffa8c5;white-space:nowrap}.stage-space{position:relative;flex:1;min-height:280px;display:flex;align-items:center;justify-content:center}.bubble{position:absolute;bottom:30%;left:10px;background:#0b1935b3;border:1px solid #a9b7d988;border-radius:22px 22px 22px 4px;padding:12px 17px;font-size:15px;transform:rotate(-5deg);backdrop-filter:blur(8px)}.timeline{display:flex;gap:8px;justify-content:center}.timeline span{height:4px;width:40px;background:#ffffff30;border-radius:4px}.timeline .done{background:var(--pink);box-shadow:0 0 8px #ff7caa}.controls{padding:23px;margin-top:65px}.controls h2{font-size:23px;margin:0 0 6px;letter-spacing:-.5px}.controls .intro{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 20px}.vote-timer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #57719266;margin-top:18px;padding-top:15px;color:#b6cee9;font-size:13px}.vote-timer strong{color:var(--cyan);font-size:24px;font-variant-numeric:tabular-nums}.food{width:100%;display:grid;grid-template-columns:65px 1fr 23px;align-items:center;gap:11px;text-align:left;background:linear-gradient(110deg,#1c2d4b99,#0b1931);border:1px solid #6685ad;border-radius:15px;padding:12px;margin-top:10px;position:relative}.food.selected{border-color:#ff7da9;box-shadow:0 0 0 2px #ff3c8544,inset 0 0 25px #ed468425,0 0 16px #ff4f8033}.food-art{font-size:43px;text-align:center;filter:drop-shadow(0 0 12px #ffac8155)}.food-name{font-size:16px;font-weight:700}.food-desc{color:#b9cbe2;font-size:12px;margin:4px 0 9px}.food .meter{height:4px}.food-percent{font-size:12px;color:#7edeff;margin-top:5px}.check{width:19px;height:19px;border-radius:50%;border:1px solid #7d93b8;color:#06142d;font-size:12px;text-align:center;line-height:18px}.selected .check{background:#ff99bb;border-color:#ffc1d5}.controls .primary{font-size:17px;margin-top:20px;padding:13px}.controls .ghost{font-size:13px;margin-top:10px}.selection-label{font-size:12px;color:#98abc8;text-align:center;margin-top:12px}.combo{padding:16px;display:flex;justify-content:center;align-items:center;gap:13px;font-size:13px;margin-bottom:10px;border-radius:16px}.combo strong{font-size:17px}.video-shell{position:relative;width:100%;margin-top:22px;border:1px solid #83c2ff;border-radius:20px;overflow:hidden;background:#051022;box-shadow:0 0 32px #3c82ff55}.video-shell video{display:block;width:100%;max-height:440px;aspect-ratio:16/9;background:#020915}.video-shell .video-label{position:absolute;top:12px;left:12px;background:#07162bcc;border-radius:7px;padding:6px 10px;color:#b7efff;font-size:12px;pointer-events:none}.cooking{width:min(420px,100%);padding:35px 20px;text-align:center;border-radius:50%;background:radial-gradient(circle,#071735ee 40%,#09235bbb 65%,transparent 70%);position:relative}.orbit{font-size:56px;margin-bottom:20px;letter-spacing:12px;animation:float 3s ease-in-out infinite}.cooking h2{font-size:30px;text-shadow:0 0 18px #ff5b91;margin:15px 0}.cooking-time{font-size:38px;color:var(--cyan);font-variant-numeric:tabular-nums}.cooking p{font-size:13px;color:#b9d1e7}.indeterminate{height:6px;background:#233550;border-radius:5px;overflow:hidden;margin:22px auto;max-width:260px}.indeterminate:after{content:'';display:block;width:35%;height:100%;background:linear-gradient(90deg,var(--pink),var(--cyan));animation:loading 1.8s ease-in-out infinite}.result-mark{font-size:65px;text-align:center;margin:20px 0}.result-big{color:var(--green);font-weight:900;font-size:50px;text-align:center;text-shadow:0 0 20px #63ff9633}.delta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;margin:15px 0}.delta div{border:1px solid #6582aa66;background:#0b1c36bb;border-radius:12px;padding:12px 4px;text-align:center;font-size:12px;color:var(--muted)}.delta strong{display:block;font-size:23px;color:var(--tone)}.finish{flex:1;display:flex;align-items:center;justify-content:flex-end;min-height:650px;padding:35px 2vw}.finish-panel{width:min(690px,65vw);padding:38px;text-align:center}.finish-panel h1{font-size:65px;margin:0;text-shadow:0 0 25px #ff396c}.finish-panel .trophy{font-size:70px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0}.summary-grid div{padding:20px 5px;border:1px solid #7897bf88;border-radius:17px;background:#0d254c99;color:#b7cce8;font-size:13px}.summary-grid b{font-size:35px;display:block;color:var(--cyan)}.finish-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.finish-actions button{font-size:16px}.demo-stage{width:100%;background:#07152ccc;border:1px solid #a9bbe66b;border-radius:20px;text-align:center;padding:28px 15px;backdrop-filter:blur(10px)}.demo-stage .emoji-large{font-size:80px;animation:float 2s ease-in-out infinite}.demo-stage h3{font-size:23px;margin:10px}.demo-stage p{font-size:13px;color:var(--muted)}.error-box{background:#341e32e8;border:1px solid #ff809c;border-radius:17px;padding:22px;text-align:center;width:100%;font-size:14px}.error-box h3{color:#ffaabd}.error-box p{line-height:1.8;overflow-wrap:anywhere}.error-box button{margin:8px 4px}.mini-action{border:0;background:none;color:#a8dfff;text-decoration:underline;text-underline-offset:4px;font-size:12px;padding:8px}dialog{color:var(--ink);background:linear-gradient(145deg,#172f52,#061329);border:1px solid #8bb7f9;border-radius:24px;padding:30px;width:min(640px,calc(100vw - 30px));max-height:88svh;box-shadow:0 0 80px #225ac977}dialog::backdrop{background:#020918b8;backdrop-filter:blur(9px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{margin:0;font-size:23px}dialog label{display:block;font-size:14px;margin:17px 0 7px}dialog input:not([type=checkbox]),dialog select{width:100%;border:1px solid #627c9e;background:#06142b;border-radius:9px;color:#edf4ff;padding:12px;font-size:14px}dialog input[type=file]{font-size:12px}dialog p,dialog li{font-size:14px;line-height:1.9;color:#bdd1e9}dialog ol{padding-left:22px}dialog .primary{font-size:16px;margin-top:20px}dialog pre{font:12px/1.8 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;color:#c6d8ee;background:#071226;padding:16px;border-radius:12px;max-height:40vh;overflow:auto}dialog a{color:var(--cyan)}.switch-row{display:flex;gap:9px;align-items:center;font-size:14px}.switch-row input{accent-color:#ff628c;width:18px;height:18px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#0e2749;border:1px solid #9abcdf;border-radius:12px;padding:12px 20px;color:#f5f9ff;font-size:14px;opacity:0;transition:.2s;pointer-events:none;z-index:20;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}.load-screen{flex:1;display:grid;place-items:center;min-height:650px}.load-panel{width:min(520px,90vw);padding:45px;text-align:center}.load-panel h1{font-size:35px;margin:20px 0}.load-panel .orbit{font-size:70px}.loading-steps{display:flex;justify-content:space-between;font-size:12px;color:var(--cyan);gap:12px}.rounds-log{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;justify-content:center}.rounds-log span{font-size:12px;color:#bdd5ec;background:#14345b;border-radius:7px;padding:7px 10px}.audio-badge{display:flex;gap:5px;align-items:center;color:#94f3e9;font-size:12px}.audio-badge i{height:12px;width:3px;background:#7af3e8;border-radius:2px}.audio-badge i:nth-child(2){height:18px}.audio-badge i:nth-child(3){height:9px}.playback-full .status,.playback-full .controls{display:none}.playback-full .game{grid-template-columns:1fr;max-width:1100px;width:100%;margin:20px auto}.playback-full .center{min-height:auto}.playback-full .video-shell video{max-height:70vh}.playback-full .stage-space{min-height:0}.playback-full .host-caption{margin:20px auto}.confetti{position:fixed;pointer-events:none;inset:0;overflow:hidden}.confetti i{position:absolute;top:-30px;width:9px;height:19px;background:var(--c);left:var(--x);animation:fall var(--d) linear infinite;animation-delay:var(--delay);transform:rotate(20deg)}@keyframes fall{to{transform:translateY(110vh) rotate(530deg)}}@keyframes loading{0%{transform:translateX(-100%)}100%{transform:translateX(390%)}}@keyframes float{50%{transform:translateY(-8px)}}
@media(min-width:1700px){#app{max-width:1800px;margin:auto}.game{grid-template-columns:250px minmax(400px,1fr) 400px;gap:35px}.center{min-height:74vh}.home{min-height:78vh}.welcome{padding:40px}}
@media(max-width:1100px){#app{padding:22px}.game{grid-template-columns:170px minmax(200px,1fr) 310px;gap:14px}.status{padding:16px}.controls{padding:18px}.brand-name{font-size:27px}.brand-sub{font-size:10px}.pill{font-size:12px;padding:9px 12px}.center{min-height:610px}.phase-title{font-size:30px}.food{grid-template-columns:48px 1fr 18px;padding:10px;gap:8px}.food-art{font-size:34px}.home{padding-right:0}.welcome{width:410px}.header-tools .audio-badge{display:none}}
@media(max-width:800px){#app{padding:16px}.brand-name{font-size:23px}.brand-sub{font-size:9px;letter-spacing:1.5px}.mascot{font-size:31px}.header-tools{gap:6px}.header-tools .pill{display:none}.icon-btn{width:36px;height:36px;font-size:17px}.home{min-height:calc(100svh - 115px);align-items:flex-end;justify-content:center;padding:290px 0 25px}.scene{background-position:38% center}.welcome{width:100%;max-width:480px;padding:23px;background:linear-gradient(145deg,#142e4be8,#06132bf5)}.welcome h1{font-size:40px;margin:10px 0}.welcome h1 br{display:none}.welcome h1 span{margin-left:10px}.welcome .separator{margin:16px 0}.welcome .primary{margin-top:12px}.home-note{top:190px;left:10px;bottom:auto}.home-note h2,.home-note p{display:none}.little-tags{margin-top:15px}.footer{font-size:10px;flex-wrap:wrap}.game{grid-template-columns:1fr;gap:15px;margin-top:15px}.status{order:2;margin:0;padding:12px 15px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px;border-radius:16px}.status h2,.status .small-note{display:none}.stat{margin:0}.stat-head{font-size:11px;display:block;margin-bottom:7px}.stat-head strong{display:block;font-size:17px;margin-top:4px}.center{order:1;min-height:370px}.controls{order:3;margin:0;padding:20px}.phase-title{font-size:29px;margin:8px 0 4px}.round-pill{font-size:12px;padding:4px 20px}.round-pill b{font-size:18px}.phase-sub{font-size:12px}.stage-space{min-height:180px}.host-caption{font-size:12px;margin-bottom:12px;padding:10px 15px}.bubble{display:none}.food{grid-template-columns:65px 1fr 24px}.food-art{font-size:43px}.food-name{font-size:17px}.controls h2{font-size:22px}.food-desc,.food-percent{font-size:12px}.vote-timer{margin-top:12px;padding-top:10px}.controls .primary{margin-top:12px}.finish{padding:270px 0 20px;min-height:85vh}.finish-panel{width:100%;padding:25px 20px}.finish-panel h1{font-size:43px}.finish-panel .trophy{font-size:52px}.summary-grid{gap:8px}.summary-grid b{font-size:27px}.summary-grid div{font-size:12px;padding:13px 5px}.cooking{padding:20px}.orbit{font-size:40px;margin:10px 0}.cooking h2{font-size:27px}.video-shell{margin-top:15px}.playback-full .status,.playback-full .controls{display:none}.load-panel{padding:30px}.load-panel h1{font-size:28px}.load-screen{min-height:80vh}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media(max-width:800px){.welcome h1 br{display:block}.welcome h1 span{margin-left:0}.brand-name{white-space:nowrap;font-size:22px;letter-spacing:-1px}.brand-sub{white-space:nowrap;font-size:9px;letter-spacing:0}.brand{gap:7px}.header-tools{gap:5px}.header-tools .icon-btn{width:32px;height:32px}.mascot{font-size:28px}}
@media(max-width:390px){.mascot{display:none}.brand-name{font-size:21px}.welcome h1{font-size:36px}}
.focus-toggle{position:absolute;top:10px;right:10px;font-size:12px;padding:6px 10px;z-index:2}
/* Live atmosphere and interaction feedback */
.scene{inset:-16px;transform:scale(1.025) translate(var(--parallax-x,0px),var(--parallax-y,0px));animation:scene-breathe 18s ease-in-out infinite;will-change:transform;transition:translate .5s}
@keyframes scene-breathe{0%,100%{transform:scale(1.025) translate(var(--parallax-x,0px),var(--parallax-y,0px))}50%{transform:scale(1.055) translate(var(--parallax-x,0px),calc(var(--parallax-y,0px) - 5px))}}
.atmosphere{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 15% 40%,#fa509511,transparent 42%),radial-gradient(ellipse at 85% 25%,#2abfff16,transparent 42%)}
.atmosphere i{position:absolute;left:var(--x);top:var(--y);width:4px;height:4px;border-radius:50%;background:#ffd99b;box-shadow:0 0 14px 3px #ff9d5377;animation:ambient-rise var(--duration) var(--delay) ease-in-out infinite}
.atmosphere i:nth-child(3n){background:#9aefff;box-shadow:0 0 14px #6cbfff;width:3px;height:3px}
@keyframes ambient-rise{0%,100%{opacity:0;transform:translateY(25px)}35%{opacity:.65}80%{opacity:0;transform:translateY(-100px)}}
#app{z-index:2}.food:hover:not(:disabled){border-color:var(--cyan);box-shadow:0 0 21px #54d7ff33}.food.selected{box-shadow:0 0 0 2px #ff3c8544,0 0 28px color-mix(in srgb,var(--choice-color,#ff7da9) 35%,transparent);background:linear-gradient(110deg,#69325b80,#0b1931)}
.food.selected .food-art{animation:food-wiggle .55s ease-out}.food.selected .check{animation:check-pop .3s ease-out}.food:disabled.selected{opacity:1}
@keyframes food-wiggle{0%{transform:scale(.85) rotate(-9deg)}60%{transform:scale(1.14) rotate(7deg)}100%{transform:scale(1) rotate(0)}}
@keyframes check-pop{50%{transform:scale(1.4)}}
.choice-reaction{align-self:flex-end;margin-bottom:32px;display:flex;align-items:center;flex-direction:column;gap:8px;background:#07192fbb;border:1px solid var(--choice-color,#ff91bc);box-shadow:0 0 35px #fe70ae33;border-radius:25px;padding:18px 25px;backdrop-filter:blur(12px);animation:reaction-in .35s ease-out;text-align:center}
.choice-reaction>span{font-size:52px;filter:drop-shadow(0 0 15px #ffa07955)}.choice-reaction strong{font-size:17px}.choice-reaction small{font-size:12px;color:#bed3ee}
@keyframes reaction-in{from{opacity:0;transform:translateY(12px) scale(.95)}to{opacity:1;transform:none}}
.effect-preview{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;color:#d9e6f9;font-size:12px;margin:15px 0 0;animation:reaction-in .25s}.effect-preview span{color:#91c5ed}.effect-preview b{font-weight:500;color:var(--choice-color,#ffc1d6)}
.vote-timer{position:relative;padding-bottom:9px}.vote-timer:after{content:'';position:absolute;bottom:0;left:0;height:3px;width:calc(var(--vote-progress,1)*100%);max-width:100%;border-radius:4px;background:var(--cyan);box-shadow:0 0 10px var(--cyan);transition:width .25s linear}
.last-seconds .vote-timer strong{color:#ff7998;animation:count-beat .7s ease-in-out infinite}.last-seconds .vote-timer:after{background:#ff7194;box-shadow:0 0 12px #ff7194}.last-seconds .controls{border-color:#ff91aa;box-shadow:0 0 26px #ff638b50}
@keyframes count-beat{50%{transform:scale(1.1);text-shadow:0 0 16px #ff547f}}
.flying-heart{position:fixed;pointer-events:none;z-index:40;color:#ffa3ca;font-size:29px;text-shadow:0 0 14px #ff4078;will-change:transform}
body[data-phase='generating'] .atmosphere{animation:room-glow 3s ease-in-out infinite}body[data-phase='result'] .delta div{animation:reaction-in .5s backwards}body[data-phase='result'] .delta div:nth-child(2){animation-delay:.1s}body[data-phase='result'] .delta div:nth-child(3){animation-delay:.2s}
@keyframes room-glow{50%{background-color:#3a156626}}
@media(max-width:800px){.choice-reaction{margin:20px 0;padding:13px 20px}.choice-reaction>span{font-size:38px}.choice-reaction strong{font-size:15px}.effect-preview{gap:7px;margin-top:10px}.scene{animation-duration:24s}}
@media(prefers-reduced-motion:reduce){.scene{transform:none;will-change:auto}.atmosphere{display:none}*,*:before,*:after{animation:none!important;transition:none!important}}

/* A cinematic interlude replaces the technical generation panel. */
body[data-phase="generating"] .game{grid-template-columns:190px minmax(0,1fr);max-width:1320px;margin-inline:auto}
body[data-phase="generating"] .center{min-width:0}
body[data-phase="generating"] .phase-title{font-size:clamp(25px,3vw,42px);margin:10px 0 0}
body[data-phase="generating"] .phase-sub{margin:4px 0 16px}
body[data-phase="generating"] .stage-space{min-height:0;display:block}
.prep-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border:1px solid #8abaff88;border-radius:26px;background:#0b172a url('./assets/studio.jpg') center/cover;box-shadow:0 0 32px #56bfff25,0 18px 60px #0008;isolation:isolate}
.prep-stage video{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity .8s}
.prep-stage.ready video{opacity:1}.prep-stage.unavailable video{opacity:0}
.prep-shade{position:absolute;inset:0;background:linear-gradient(180deg,#06102235,transparent 30%,#06102240 48%,#061022f5);pointer-events:none}
.prep-badge{position:absolute;left:24px;top:22px;border:1px solid #fff4;background:#07132688;backdrop-filter:blur(12px);padding:7px 12px;border-radius:30px;font-size:12px;color:#e7f3ff;letter-spacing:1px}
.prep-caption{position:absolute;left:32px;right:32px;bottom:25px;text-align:left}.prep-caption h2{font-size:clamp(25px,3.6vw,48px);margin:7px 0}.prep-caption p{margin:0 0 18px;color:#e1ebf8;font-size:15px}.prep-caption .eyebrow{font-size:10px;letter-spacing:3px;color:#c7d9ee}.prep-caption small{display:block;color:#a8bdd3;margin-top:10px;font-size:12px}
.prep-wait{display:flex;align-items:center;gap:12px;font-size:14px;color:#76efff}.prep-dots{display:flex;gap:4px}.prep-dots i{height:5px;width:5px;border-radius:50%;background:currentColor;animation:prepDot 1.3s infinite}.prep-dots i:nth-child(2){animation-delay:.2s}.prep-dots i:nth-child(3){animation-delay:.4s}
.prep-resume{position:absolute;top:35%;left:50%;transform:translate(-50%,-50%);z-index:2}.prep-resume[hidden]{display:none}
@keyframes prepDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media(max-width:760px){body[data-phase="generating"] .game{display:flex;flex-direction:column}body[data-phase="generating"] .status{display:none}.prep-stage{aspect-ratio:4/5;max-height:68vh}.prep-caption{left:20px;right:20px;bottom:22px}.prep-badge{left:18px;top:18px}.prep-caption .eyebrow{font-size:8px;letter-spacing:2px}}
@media(prefers-reduced-motion:reduce){.prep-dots i{animation:none}.prep-stage video{transition:none}}

/* Generated footage is the default main stage; game metrics stay secondary. */
#app.cinema-mode{padding:14px 24px 12px;max-width:none;background:rgba(2,7,16,.9)}
.cinema-mode header{gap:12px}.cinema-mode .brand-name{font-size:23px}.cinema-mode .mascot{font-size:29px}.cinema-mode .brand-sub,.cinema-mode .audio-badge,.cinema-mode .header-tools .pill{display:none}.cinema-mode .icon-btn{width:34px;height:34px;font-size:17px}
.cinema{width:100%;max-width:1800px;align-self:center;flex:1;display:flex;flex-direction:column;min-width:0}
.cinema-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 2px 10px;font-size:14px;color:#e7eef9}.cinema-heading small{font-size:11px;color:#94a8c2;margin-left:6px}.cinema-tag{font-size:10px;color:#8badc6;letter-spacing:1px}
.cinema-mode .cinema-screen{margin:0;border:1px solid #6384a94d;border-radius:15px;box-shadow:0 12px 45px #0007;background:#000;flex:1;display:flex;align-items:center;justify-content:center;min-height:0}
.cinema-mode .cinema-screen video{width:100%;height:calc(100svh - 195px);max-height:none;min-height:260px;aspect-ratio:auto;object-fit:contain;background:#000}
.cinema-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:59px;padding:10px 2px}
.cinema-stats{display:flex;align-items:center;gap:22px}.cinema-stat{display:grid;grid-template-columns:auto auto;gap:4px 10px;min-width:78px;color:#879bb5;font-size:11px}.cinema-stat strong{font-size:12px;font-weight:600;color:var(--tone);text-align:right;font-variant-numeric:tabular-nums}.cinema-stat .meter{grid-column:1/-1;height:3px;border:0;background:#ffffff12}
.cinema-actions{display:flex;gap:8px;margin-left:auto}.cinema-actions .ghost{font-size:11px;padding:8px 12px;border-color:#53698766;background:#11203866}.cinema-actions .cinema-next{color:#c1e8f5}.cinema-mode .footer{font-size:9px;color:#73859d;padding-top:2px}.cinema-mode .footer span:last-child{display:none}
.cinema-mode.playback-full .cinema-stats{display:none}
@media(max-width:800px){#app.cinema-mode{padding:12px 10px}.cinema-mode .brand-name{font-size:19px}.cinema-mode .mascot{font-size:23px}.cinema-heading{font-size:12px}.cinema-tag{font-size:9px}.cinema-mode .cinema-screen video{height:calc(100svh - 230px);min-height:220px}.cinema-bottom{flex-wrap:wrap;gap:12px;padding:12px 4px}.cinema-stats{width:100%;justify-content:space-between;gap:12px}.cinema-stat{min-width:0;flex:1}.cinema-actions{width:100%;justify-content:flex-end}.cinema-mode .cinema-screen{border-radius:10px}}
@media(max-height:500px) and (orientation:landscape){.cinema-mode header,.cinema-mode .footer{display:none}.cinema-heading{margin-top:0}.cinema-mode .cinema-screen video{height:calc(100svh - 100px);min-height:0}.cinema-bottom{flex-wrap:nowrap}.cinema-stats{width:auto;gap:15px}.cinema-actions{width:auto}}

/* Streamer-facing one-click controls and audience overlays. */
.console-btn{border:1px solid #67e4ff99;background:linear-gradient(120deg,#173d63dd,#132348dd);border-radius:99px;padding:10px 15px;color:#eafcff;font-weight:700;box-shadow:0 0 18px #43caff25}.console-btn span{margin-left:4px}.console-btn:hover{border-color:#8ff2ff;box-shadow:0 0 24px #43caff55}
#live-console{position:fixed;inset:0;z-index:70;pointer-events:none;background:transparent;transition:background .25s}#live-console.open{pointer-events:auto;background:#0108178a}.live-drawer{position:absolute;right:0;top:0;height:100%;width:min(410px,94vw);padding:24px;background:linear-gradient(160deg,#142b4df8,#061127fc);border-left:1px solid #82baf288;box-shadow:-20px 0 70px #0009;transform:translateX(105%);transition:transform .3s ease;overflow:auto}.open .live-drawer{transform:none}.live-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.live-head>span{display:grid;grid-template-columns:12px auto;gap:2px 9px;align-items:center}.live-head i{width:9px;height:9px;border-radius:50%;background:#ff5b7f;box-shadow:0 0 12px #ff5b7f}.live-head b{font-size:20px}.live-head small{grid-column:2;color:#83eaff;font-size:11px}.live-head button{border:0;background:#ffffff0e;border-radius:50%;width:38px;height:38px;font-size:25px}.live-tip{font-size:11px;color:#8faac9;border-top:1px solid #58739544;padding-top:15px}.live-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.live-grid button{min-height:105px;border:1px solid #597da7;background:linear-gradient(145deg,#1a3558,#0b1c37);border-radius:16px;padding:14px;text-align:left;display:flex;flex-direction:column;gap:6px;box-shadow:inset 0 0 18px #54a5ff0d}.live-grid button:hover{border-color:#69e8ff;background:linear-gradient(145deg,#234976,#112b4e)}.live-grid button>span{font-size:27px}.live-grid button>b{font-size:14px}.live-grid button>small{font-size:10px;color:#88a6c8}.crowd-switch,.clear-screen{width:100%;border:1px solid #56789f;background:#0c203e;border-radius:12px;padding:12px;margin-top:8px;font-size:13px}.crowd-switch.active{border-color:#60e7b0;color:#8ff5c3;background:#11372f}.clear-screen{border-color:#7a5366;color:#cda7b8;background:#24182b}
#live-overlay{position:fixed;inset:0;z-index:60;pointer-events:none;display:grid;place-items:center;opacity:0;transform:scale(.96);transition:.25s}#live-overlay.visible{opacity:1;transform:none}.live-card{width:min(650px,86vw);background:linear-gradient(145deg,#193e6af2,#07142af7);border:2px solid #9fdcff;border-radius:30px;padding:34px;text-align:center;box-shadow:0 0 0 8px #3e8fff20,0 25px 100px #000c,0 0 45px #4ccfff55;backdrop-filter:blur(18px);animation:overlay-pop .35s ease-out}.live-card>small{color:#72eaff;letter-spacing:4px;font-weight:800}.live-card h2{font-size:clamp(28px,5vw,54px);margin:10px 0 20px;text-shadow:0 0 25px #ff5d91}.overlay-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.overlay-options span{background:#06142f;border:1px solid #708fb8;border-radius:14px;padding:16px 8px;font-size:17px}.overlay-options b{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ff5b89;margin-right:8px}.challenge>span{font-size:70px}.challenge p{color:#c7d9ed}.live-burst{display:flex;flex-direction:column;align-items:center;text-align:center;filter:drop-shadow(0 10px 40px #000)}.live-burst>span{font-size:70px;animation:food-wiggle .7s}.live-burst>b{font-size:clamp(42px,7vw,86px);color:#fff;text-shadow:0 0 15px #ff4b80,0 0 45px #ff4b80}.live-burst>small{font-size:22px;color:#9af2ff;margin-top:10px}.live-burst.cool>b{text-shadow:0 0 18px #41d9ff,0 0 45px #41d9ff}.count-ring{width:min(360px,70vw);aspect-ratio:1;border:8px solid #79e8ff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#061329eb;box-shadow:0 0 0 16px #3fbdff22,0 0 70px #34d6ff77}.count-ring small{color:#b9d8ed;font-size:16px}.count-ring b{font-size:clamp(90px,18vw,160px);line-height:1;color:#fff;text-shadow:0 0 30px #ff557f}.count-ring span{color:#86efff}.wish>div{height:17px;border:1px solid #7198bd;border-radius:20px;background:#061123;overflow:hidden}.wish>div i{display:block;height:100%;background:linear-gradient(90deg,#ff6294,#ffe273);box-shadow:0 0 18px #ff7b9e;transition:width .5s}.wish>b{display:block;margin-top:10px;font-size:24px;color:#ffe077}.gift-menu>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;text-align:left}.gift-menu>div span,.gift-menu>div b{padding:12px;border-bottom:1px solid #ffffff18}.gift-menu>div b{color:#82efff}.gift-menu>div span{font-size:17px}@keyframes overlay-pop{from{opacity:0;transform:scale(.85) translateY(30px)}to{opacity:1;transform:none}}
@media(max-width:800px){.console-btn{width:36px;height:36px;padding:0;font-size:0}.console-btn:first-letter{font-size:17px}.live-drawer{padding:18px}.live-grid button{min-height:91px;padding:11px}.live-card{padding:25px 17px}.overlay-options{grid-template-columns:1fr}.overlay-options span{padding:10px}.count-ring{width:min(270px,68vw)}}
@media(prefers-reduced-motion:reduce){.live-drawer,#live-overlay{transition:none}.live-card{animation:none}}

/* Cook-along mini game shown while the ASMR video is generating. */
.prep-caption{right:47%;z-index:2}.cook-game{position:absolute;z-index:4;right:20px;top:20px;bottom:20px;width:43%;padding:20px;background:linear-gradient(155deg,#142b4ff2,#071327f7);border:1px solid #8bc9efaa;border-radius:22px;box-shadow:0 16px 55px #0009,inset 0 0 25px #47baff12;backdrop-filter:blur(18px);overflow:auto}.cook-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.cook-top>small{color:#7eeeff;letter-spacing:2px;font-weight:800}.video-making,.video-ready{font-size:10px;color:#99b3cd;border:1px solid #526e8f;border-radius:30px;padding:5px 8px;white-space:nowrap}.video-making i,.cook-complete small i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#ff668d;margin-right:5px;box-shadow:0 0 8px #ff668d;animation:count-beat 1s infinite}.video-ready{color:#77f5b0;border-color:#5bd69788;background:#103d2c}.cook-game h3{font-size:22px;margin:13px 0}.cook-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:12px 0 18px}.cook-steps span{display:flex;align-items:center;gap:5px;color:#6f88a4;font-size:10px;white-space:nowrap}.cook-steps i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid #536c8c;font-style:normal}.cook-steps .active{color:#90efff}.cook-steps .active i{background:#28b8d8;color:#061322;border-color:#90f3ff;box-shadow:0 0 13px #3cddff}.cook-steps .done{color:#78dfa7}.cook-steps .done i{background:#3fc587;color:#061a16;border-color:#89efb6}.cook-hint{font-size:12px;color:#a9bdd4;margin:10px 0}.cook-hint b{color:#ffe09a}.recipe-order{display:flex;align-items:center;justify-content:center;gap:6px;margin:13px 0}.recipe-order span{font-size:10px;padding:7px 6px;border:1px solid #587797;border-radius:8px;color:#9eb4ca}.recipe-order span.now{border-color:#ffe07d;color:#ffe7a1;background:#644d1844;box-shadow:0 0 12px #ffd25b33}.recipe-order span.done{border-color:#4fb985;color:#80e9ad;background:#194b3555}.recipe-order i{font-style:normal;color:#59718b}.ingredient-tray{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ingredient-tray button{border:1px solid #6588ad;background:#0b203e;border-radius:13px;padding:12px 4px;color:#dceaff;font-size:11px}.ingredient-tray button span{display:block;font-size:31px;margin-bottom:5px}.ingredient-tray button:hover:not(:disabled){border-color:#ffe084;background:#433a2755;box-shadow:0 0 18px #ffc65033}.ingredient-tray button:disabled{opacity:.35;filter:grayscale(1)}.cook-skip{display:block;border:0;background:none;color:#7894b2;text-decoration:underline;text-underline-offset:4px;font-size:10px;margin:14px auto 0}.mix-bowl{position:relative;width:180px;max-width:100%;aspect-ratio:1;margin:10px auto;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;border:4px solid #8fceef;background:radial-gradient(circle at 50% 35%,#274e6e,#0a1c34 65%);border-radius:50% 50% 45% 45%;box-shadow:inset 0 -25px 35px #020a18aa,0 0 28px #4ad9ff33}.mix-bowl>span{font-size:47px;z-index:2;transition:transform .1s}.mix-bowl:active>span{transform:rotate(25deg) scale(1.12)}.mix-bowl>i{position:absolute;left:0;bottom:0;height:var(--progress);width:100%;background:linear-gradient(#ffda6b66,#ff709788);transition:height .15s}.mix-bowl>b,.mix-bowl>small{z-index:2}.mix-bowl>b{font-size:13px;margin-top:5px}.mix-bowl>small{font-size:9px;color:#bfeaff}.timing-bar{position:relative;height:38px;border:1px solid #6686a8;border-radius:30px;background:#06132a;margin:35px 4px 20px;overflow:hidden}.timing-bar:before{content:'';position:absolute;left:40%;width:20%;top:0;bottom:0;background:#68eca155;box-shadow:0 0 18px #51e69a}.timing-bar i{position:absolute;left:0;top:50%;width:18px;height:18px;border-radius:50%;background:#fff3a1;box-shadow:0 0 16px #ffe05b;transform:translate(-50%,-50%);animation:plate-marker 1.8s linear infinite alternate}.timing-bar b{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#e4fff0}.plate-button{width:100%;border:1px solid #ffe3a3;background:linear-gradient(120deg,#ffae58,#ff597e);border-radius:30px;padding:12px;color:white;font-weight:800;box-shadow:0 0 20px #ff6c7755}.cook-complete{text-align:center;padding:18px 4px}.cook-complete>span{font-size:65px;filter:drop-shadow(0 0 18px #ffbb7155)}.cook-complete h3{margin:7px}.cook-complete>b{display:block;color:#ffe377;font-size:27px;letter-spacing:5px;text-shadow:0 0 15px #ffc94d}.cook-complete p{font-size:12px;color:#b4c6d9}.cook-complete p strong,.cook-result-bonus{color:#75f0a7}.cook-complete>small{color:#8da8c3;font-size:10px}.cook-complete.waiting>span{font-size:50px}.cook-complete .plate-button{margin-top:10px}@keyframes plate-marker{to{left:100%}}
@media(max-width:760px){body[data-phase="generating"] .prep-stage{aspect-ratio:auto;min-height:690px;max-height:none}.prep-stage .prep-caption{display:none}.cook-game{left:12px;right:12px;top:66px;bottom:12px;width:auto;padding:18px}.cook-game h3{font-size:20px}.mix-bowl{width:165px}.prep-badge{z-index:5}}
@media(prefers-reduced-motion:reduce){.timing-bar i{left:50%!important}.video-making i,.cook-complete small i{animation:none}}

/* Continuous five-stop campaign route. */
.route-screen,.upgrade-screen{flex:1;display:grid;place-items:center;padding:30px 0}.route-panel,.upgrade-panel{width:min(1080px,94vw);padding:38px;text-align:center}.route-panel>h1,.upgrade-panel>h1{font-size:clamp(36px,5vw,65px);margin:10px 0;text-shadow:0 0 28px #ff4c7c}.route-panel>.muted,.upgrade-panel>.muted{max-width:680px;margin:0 auto 25px}.route-panel>.primary{margin-top:25px}.route-map{display:flex;align-items:center;justify-content:center;width:100%;margin:14px 0 10px}.route-map>i{height:2px;min-width:13px;flex:1;max-width:55px;background:#344d6a;position:relative}.route-map>i:after{content:'›';position:absolute;right:-3px;top:-12px;color:#5f7996}.route-stop{display:flex;flex-direction:column;align-items:center;min-width:65px;color:#637b96}.route-stop>span{display:grid;place-items:center;width:38px;height:38px;border:1px solid #536c89;background:#0a1930;border-radius:50%;font-size:19px;filter:grayscale(.7)}.route-stop>b{font-size:9px;margin-top:5px;white-space:nowrap}.route-stop>small{display:none}.route-stop.current{color:#fff0b0}.route-stop.current>span{border-color:#ffe17a;background:#4b381b;filter:none;box-shadow:0 0 0 5px #ffce5320,0 0 20px #ffd15866;animation:count-beat 1.4s infinite}.route-stop.cleared{color:#78e6ac}.route-stop.cleared>span{border-color:#62d89c;background:#123d30;filter:none}.route-stop.cleared+ i{background:linear-gradient(90deg,#55d79a,#50a4b8)}.route-map.large{margin:32px 0}.route-map.large .route-stop{min-width:120px}.route-map.large .route-stop>span{width:64px;height:64px;font-size:31px}.route-map.large .route-stop>b{font-size:13px}.route-map.large .route-stop>small{display:block;font-size:9px;margin-top:5px;max-width:115px;color:#7590ad}.route-map.large .route-stop.current>small{color:#ffe49a}.route-map.large .route-stop.cleared>small{color:#70cf9c}.route-brief,.next-stop{display:flex;align-items:center;text-align:left;gap:18px;max-width:620px;margin:24px auto 5px;padding:18px 22px;background:#0a1c36cc;border:1px solid #6e94ba;border-radius:18px}.route-brief>span,.next-stop>span{font-size:52px}.route-brief small,.next-stop small{color:#74eaff;letter-spacing:2px}.route-brief h2{margin:3px 0;font-size:24px}.route-brief p,.next-stop p{margin:4px 0;color:#a9bdd1;font-size:12px}.route-brief b{color:#ffe08a;font-size:12px}.mission-card{padding:12px;margin:-4px 0 18px;background:linear-gradient(120deg,#3c2b1c99,#182846);border:1px solid #dcb66888;border-radius:13px}.mission-card small{display:block;color:#ffdc86;font-size:9px;letter-spacing:2px}.mission-card b{display:block;font-size:12px;margin:5px 0}.mission-card span{font-size:9px;color:#8be8ad}.inventory{margin-top:17px;border-top:1px solid #55708d55;padding-top:13px}.inventory>small{font-size:9px;color:#8198b2}.inventory>div{display:flex;gap:6px;margin-top:7px;flex-wrap:wrap}.inventory span{display:grid;place-items:center;width:29px;height:29px;border:1px solid #667f9d;border-radius:8px;background:#102642;font-size:16px}.inventory em{font-size:9px;color:#647b95;font-style:normal}.mission-result{display:inline-block;margin-top:5px}.mission-result.passed{color:#71eca7}.mission-result.missed{color:#aebed0}.upgrade-panel{max-width:1050px}.upgrade-panel>.route-map.large{margin:20px 0}.next-stop{max-width:520px;margin:12px auto 22px;padding:12px 18px}.next-stop>span{font-size:38px}.next-stop b{display:block;font-size:18px}.upgrade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:760px;margin:0 auto}.upgrade-grid button{min-height:155px;border:1px solid #7699bc;background:linear-gradient(145deg,#1b3b60,#0a1a34);border-radius:20px;padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center}.upgrade-grid button:hover{border-color:#ffe189;background:linear-gradient(145deg,#514221,#112c4b);box-shadow:0 0 28px #ffc84e33}.upgrade-grid span{font-size:48px}.upgrade-grid b{font-size:17px;margin:8px 0}.upgrade-grid small{color:#8debc1}.route-stars{font-size:31px;letter-spacing:8px;color:#ffe16d;text-shadow:0 0 18px #ffc44e;margin:8px 0}.route-log span.passed{border-color:#5fc98c;color:#86edaf;background:#143b2b}
@media(max-width:800px){.route-screen,.upgrade-screen{padding:15px 0}.route-panel,.upgrade-panel{padding:24px 15px}.route-map.large{justify-content:flex-start;overflow-x:auto;padding:8px 4px 14px}.route-map.large .route-stop{min-width:88px}.route-map.large .route-stop>span{width:48px;height:48px;font-size:24px}.route-map.large .route-stop>b{font-size:10px}.route-map.large .route-stop>small{font-size:8px;max-width:85px}.route-map:not(.large) .route-stop>b{display:none}.route-map:not(.large) .route-stop{min-width:37px}.route-map:not(.large) .route-stop>span{width:31px;height:31px;font-size:15px}.route-map>i{min-width:6px}.route-brief{padding:14px}.route-brief>span{font-size:38px}.upgrade-grid{gap:8px}.upgrade-grid button{min-height:125px;padding:12px 5px}.upgrade-grid span{font-size:35px}.upgrade-grid b{font-size:13px}.upgrade-grid small{font-size:10px}.mission-card{display:none}.inventory{display:none}}

/* Generating is a dedicated, centered full-size cooking stage. */
body[data-phase="generating"] #app{padding:18px 24px 12px}
body[data-phase="generating"] .game{display:block;width:100%;max-width:1320px;margin:12px auto 0}
body[data-phase="generating"] .game>.status{display:none!important}
body[data-phase="generating"] .center{width:100%;max-width:1220px;min-height:0;margin:0 auto;display:flex;align-items:stretch}
body[data-phase="generating"] .round-pill{align-self:center;padding:6px 22px;font-size:12px}
body[data-phase="generating"] .round-pill b{font-size:17px}
body[data-phase="generating"] .phase-title{font-size:clamp(27px,3vw,40px);margin:7px 0 2px}
body[data-phase="generating"] .phase-sub{font-size:12px;margin-bottom:10px}
body[data-phase="generating"] .stage-space{display:block;width:100%;min-height:0;flex:none}
body[data-phase="generating"] .prep-stage{width:100%;height:clamp(560px,70vh,720px);min-height:560px;aspect-ratio:auto;margin:0 auto;border-radius:28px}
body[data-phase="generating"] .prep-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body[data-phase="generating"] .prep-shade{background:radial-gradient(circle at center,#06112622 0,#06112666 52%,#031020e8 100%)}
body[data-phase="generating"] .prep-caption{display:none}
body[data-phase="generating"] .prep-badge{z-index:6;left:22px;top:20px}
body[data-phase="generating"] .prep-resume{z-index:7;top:45%;left:20%;transform:translate(-50%,-50%)}
body[data-phase="generating"] .cook-game{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(650px,88%);height:auto;max-height:calc(100% - 72px);padding:30px 34px;border-radius:28px;background:linear-gradient(155deg,#152e51f5,#061226fa);box-shadow:0 22px 80px #000c,0 0 0 5px #50bfff16,inset 0 0 35px #47baff16}
body[data-phase="generating"] .cook-game h3{font-size:clamp(24px,3vw,34px);margin:16px 0}
body[data-phase="generating"] .cook-hint{font-size:14px;text-align:center}
body[data-phase="generating"] .ingredient-tray{gap:14px;margin-top:18px}
body[data-phase="generating"] .ingredient-tray button{min-height:118px;font-size:14px;border-radius:18px}
body[data-phase="generating"] .ingredient-tray button span{font-size:46px}
body[data-phase="generating"] .mix-bowl{width:230px}
body[data-phase="generating"] .timing-bar{height:50px;margin:42px 5px 28px}
body[data-phase="generating"] .plate-button{padding:15px;font-size:16px}
body[data-phase="generating"] .host-caption,body[data-phase="generating"] .center>.route-map{display:none}
body[data-phase="generating"] .footer{padding-top:5px}
@media(max-width:800px){body[data-phase="generating"] #app{padding:12px}body[data-phase="generating"] header{margin-bottom:4px}body[data-phase="generating"] .game{margin-top:4px}body[data-phase="generating"] .phase-title{font-size:27px}body[data-phase="generating"] .phase-sub{margin-bottom:7px}body[data-phase="generating"] .prep-stage{width:100%;height:calc(100svh - 190px);min-height:540px;max-height:none;aspect-ratio:auto}body[data-phase="generating"] .cook-game{left:50%;right:auto;top:50%;bottom:auto;width:min(620px,92%);max-height:calc(100% - 54px);padding:24px;transform:translate(-50%,-50%)}body[data-phase="generating"] .prep-badge{top:12px;left:14px}.cook-steps span{justify-content:center}.cook-steps span:not(.active):not(.done){font-size:0}.cook-steps span:not(.active):not(.done) i{font-size:10px}}
@media(max-height:700px){body[data-phase="generating"] .prep-stage{height:calc(100svh - 145px);min-height:460px}body[data-phase="generating"] .cook-game{padding:20px 26px}.cook-game h3{margin:8px 0}.cook-steps{margin:8px 0 10px}.ingredient-tray button{min-height:92px}.ingredient-tray button span{font-size:35px}.recipe-order{margin:8px 0}.cook-hint{margin:6px 0}.mix-bowl{width:170px}}

/* Food-specific microgames: heat, chopping, shaking and whipping. */
.cook-steps{grid-template-columns:repeat(4,1fr)}.special-game{min-height:235px;display:flex;flex-direction:column;align-items:center;justify-content:center}.special-game>p{color:#b8cbe0;font-size:13px;text-align:center;margin:4px 0 16px}.heat-meter{position:relative;width:100%;height:34px;border:1px solid #6887a7;background:#07152b;border-radius:20px;margin:16px 0 8px}.heat-meter:before{content:'';position:absolute;left:58%;width:14%;inset-block:0;background:#55e79955;box-shadow:0 0 18px #4be499}.heat-meter>i{position:absolute;left:0;top:0;bottom:0;border-radius:20px;background:linear-gradient(90deg,#58d9ff,#ffd251,#ff536c);transition:width .25s}.heat-meter>b{position:absolute;left:58%;width:14%;top:-4px;bottom:-4px;border:1px solid #88ffc0;border-radius:18px}.heat-meter>span{position:absolute;top:50%;transform:translate(-50%,-50%);font-size:24px;transition:left .25s;filter:drop-shadow(0 0 8px #ff994d)}.heat-game>strong{color:#ffe083;font-size:25px}.heat-game>div:last-child,.shake-game>div:last-child{display:flex;gap:8px;margin-top:15px}.heat-game button,.shake-game button{border:1px solid #6f90b1;background:#102744;border-radius:12px;padding:10px 16px;font-size:12px}.heat-game button[data-cook="heat-check"]{background:linear-gradient(120deg,#39bc87,#2288a9);border-color:#8df5c0;font-weight:800}.chop-board{position:relative;width:100%;height:190px;border:8px solid #8c5d3c;border-radius:45% 45% 38% 38%;background:radial-gradient(circle at 30% 20%,#d49c65,#8a5739 72%);box-shadow:inset 0 0 25px #4b2818,0 12px 25px #0006}.chop-board:after{content:'';position:absolute;inset:10px;border:1px dashed #f2bd7a66;border-radius:inherit}.chop-board button{position:absolute;z-index:2;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:54px;height:54px;border:2px solid #fff1a8;border-radius:50%;background:#ff657b;box-shadow:0 0 0 8px #ffdc6d22,0 0 22px #ff6b79;font-size:26px;animation:target-pop .25s ease-out}.shake-cup{position:relative;font-size:86px;line-height:1;padding:12px 45px;animation:cup-float 1.2s ease-in-out infinite}.shake-cup i{position:absolute;right:0;top:38%;font-size:42px;color:#79efff;font-style:normal;text-shadow:0 0 15px #3cdbff;animation:direction-pulse .7s infinite}.shake-game button{min-width:120px}.whip-game>button{position:relative;width:210px;height:210px;border:5px solid #98d4ed;border-radius:50%;background:radial-gradient(circle,#315676,#0a1b32 68%);overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:inset 0 -30px 40px #030b18,0 0 30px #57d7ff33}.whip-game>button>span{font-size:67px;z-index:2;animation:whip-spin .8s linear infinite}.whip-game>button>i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(#fff4cb99,#ffb9cfcc);transition:height .12s}.whip-game>button>b{z-index:2;font-size:13px}@keyframes target-pop{from{transform:translate(-50%,-50%) scale(.5);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}@keyframes cup-float{50%{transform:rotate(-7deg) translateX(-5px)}}@keyframes direction-pulse{50%{transform:scale(1.25)}}@keyframes whip-spin{to{transform:rotate(360deg)}}
@media(max-width:800px){.cook-steps{gap:2px}.cook-steps span{font-size:8px}.cook-steps i{width:18px;height:18px}.special-game{min-height:210px}.chop-board{height:165px}.whip-game>button{width:180px;height:180px}.heat-game button,.shake-game button{padding:9px 11px}}
@media(max-height:700px){.special-game{min-height:170px}.chop-board{height:145px}.whip-game>button{width:150px;height:150px}.shake-cup{font-size:65px;padding-block:4px}}
@media(prefers-reduced-motion:reduce){.chop-board button,.shake-cup,.shake-cup i,.whip-game>button>span{animation:none}}

/* Extra microgames: timed tapping, circular stirring and rhythm heat. */
.timed-game .time-strip{width:100%;height:12px;border:1px solid #637f9f;border-radius:20px;background:#071326;overflow:hidden;margin:4px 0 18px}.timed-game .time-strip i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#58e7ae,#ffe26d,#ff637f);transform-origin:left;animation:time-drain 5s linear forwards}.timed-game>button{width:190px;height:150px;border:3px solid #ffe38b;border-radius:35px;background:radial-gradient(circle,#ff905d,#d83b6d 72%);box-shadow:0 0 0 9px #ffce6622,0 0 35px #ff527066;display:flex;flex-direction:column;align-items:center;justify-content:center}.timed-game>button:active{transform:scale(.94)}.timed-game>button span{font-size:48px}.timed-game>button b{font-size:17px}.timed-game.expired .time-strip i{width:0;animation:none}.stir-board{position:relative;width:225px;height:225px;border:6px solid #8ecce8;border-radius:50%;background:radial-gradient(circle,#315a74 0 42%,#091a31 44%);box-shadow:inset 0 -24px 35px #020b17aa,0 0 30px #53d8ff33}.stir-board>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:62px}.stir-board button{position:absolute;width:51px;height:51px;border:1px solid #6e8dab;border-radius:50%;background:#102743;color:#8da8c2;font-size:25px}.stir-board button:nth-of-type(1){left:50%;top:4px;transform:translateX(-50%)}.stir-board button:nth-of-type(2){right:4px;top:50%;transform:translateY(-50%)}.stir-board button:nth-of-type(3){left:50%;bottom:4px;transform:translateX(-50%)}.stir-board button:nth-of-type(4){left:4px;top:50%;transform:translateY(-50%)}.stir-board button.next{border-color:#ffe27d;background:#65501f;color:white;box-shadow:0 0 0 7px #ffd86222,0 0 22px #ffd65f;animation:direction-pulse .8s infinite}.rhythm-track{position:relative;width:100%;height:58px;border:1px solid #6c88a8;border-radius:30px;background:#071429;margin:26px 0 22px;overflow:hidden}.rhythm-track:before{content:'';position:absolute;left:40%;width:20%;top:0;bottom:0;background:#5cea9b55;box-shadow:0 0 20px #52e59a}.rhythm-track b{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#cffff0}.rhythm-track span{position:absolute;left:0;top:50%;transform:translate(-50%,-50%);font-size:35px;filter:drop-shadow(0 0 10px #ff7c4b);animation:rhythm-fire 1.4s linear infinite alternate}.rhythm-game>button{border:1px solid #ffe29a;background:linear-gradient(120deg,#ffad55,#f24e70);border-radius:28px;padding:14px 28px;font-weight:800;box-shadow:0 0 22px #ff735555}@keyframes time-drain{to{transform:scaleX(0)}}@keyframes rhythm-fire{to{left:100%}}
@media(max-width:800px){.timed-game>button{width:165px;height:125px}.stir-board{width:195px;height:195px}.stir-board button{width:45px;height:45px}.rhythm-track{height:50px}}
@media(max-height:700px){.timed-game>button{height:105px}.timed-game>button span{font-size:35px}.stir-board{width:155px;height:155px}.stir-board button{width:38px;height:38px;font-size:18px}.stir-board>span{font-size:45px}.rhythm-track{margin:12px 0}}
@media(prefers-reduced-motion:reduce){.timed-game .time-strip i,.stir-board button.next,.rhythm-track span{animation:none}.rhythm-track span{left:50%}}

/* More food-specific microgames: memory decorating, precision pouring and ingredient sorting. */
.memory-sequence,.memory-buttons{display:flex;align-items:center;justify-content:center;gap:12px;min-height:94px}.memory-sequence span,.memory-buttons button{display:grid;place-items:center;width:70px;height:70px;border:2px solid #ffd986;border-radius:18px;background:linear-gradient(145deg,#553a33,#162b47);font-size:35px;box-shadow:0 0 20px #ffbd5b33}.memory-sequence i{color:#8eacc7;font-style:normal}.memory-cover{width:min(420px,100%);min-height:92px;border:1px dashed #6885a4;border-radius:18px;background:#07152baa;display:flex;flex-direction:column;align-items:center;justify-content:center}.memory-cover b{font-size:20px}.memory-cover small{margin-top:6px;color:#819ab5}.memory-buttons{min-height:auto;margin-top:10px}.memory-buttons button{width:78px;height:62px;transition:.15s}.memory-buttons button:active{transform:scale(.9)}.memory-peek{margin-top:12px;border:1px solid #6f91b4;border-radius:20px;background:#102a49;padding:9px 18px;color:#c6e9ff}.pour-game{gap:4px}.pour-glass{position:relative;width:135px;height:190px;border:7px solid #b9eaff;border-top-width:3px;border-radius:10px 10px 34px 34px;overflow:hidden;background:#071529;box-shadow:inset 0 0 22px #4ddaff33,0 0 25px #59dfff22}.pour-glass:before{content:'';position:absolute;z-index:3;left:0;right:0;top:22%;height:13%;background:#5def9d44;border-block:2px dashed #80ffb1}.pour-glass>i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(#fff48b,#e8a82f);transition:height .2s}.pour-glass>b{position:absolute;z-index:4;left:0;right:0;top:28%;height:2px;background:#ddffe8}.pour-glass>span{position:absolute;z-index:5;left:50%;bottom:12px;transform:translateX(-50%);font-size:33px}.pour-controls{display:flex;gap:8px;margin-top:12px}.pour-controls button,.sort-game button{border:1px solid #7899bb;background:#102844;border-radius:13px;padding:11px 16px;font-size:12px}.pour-controls button[data-cook="pour-check"]{border-color:#90f2b7;background:linear-gradient(120deg,#2da67a,#237da0);font-weight:800}.sort-item{width:190px;height:150px;border:2px solid #ffe08a;border-radius:30px;background:radial-gradient(circle,#3b5574,#0a1b32 70%);display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 0 30px #ffd35a22}.sort-item span{font-size:70px}.sort-item b{font-size:13px;margin-top:5px}.sort-game>div:last-child{display:flex;gap:12px;margin-top:15px}.sort-game button[data-cook="sort-keep"]{border-color:#75eeb0;background:#174b3c}.sort-game button[data-cook="sort-discard"]{border-color:#ef8c9e;background:#4b2030}
@media(max-width:800px){.memory-sequence,.memory-buttons{gap:7px}.memory-sequence span,.memory-buttons button{width:58px;height:58px;font-size:29px}.pour-glass{height:160px;width:115px}.pour-controls button,.sort-game button{padding:9px 11px}}
@media(max-height:700px){.memory-sequence,.memory-cover{min-height:68px}.memory-sequence span,.memory-buttons button{width:52px;height:52px;font-size:26px}.pour-glass{height:125px;width:96px}.sort-item{height:105px}.sort-item span{font-size:50px}}
