/* Warm cartoon diner. All motion is decorative and follows the game state. */
.diner-scene{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.hero-shadow{position:absolute;left:50%;top:78%;width:16%;height:4%;border-radius:50%;background:#9a673640;filter:blur(2px);translate:-50% 0;transition:top .14s;z-index:1}
[data-mode=cartoon] .screen{background:#fff1ce}
[data-mode=cartoon] .ramps{filter:drop-shadow(0 4px 0 #935a3538);z-index:1}
.conveyor-stripes{animation:conveyor 1.2s linear infinite}@keyframes conveyor{to{stroke-dashoffset:-27}}
.floor{display:none}
[data-mode=cartoon] .device{border-radius:30px;background:linear-gradient(135deg,#fff4df,#e8dbbf);border-color:#fff8ea;box-shadow:0 5px 0 #b1a388,0 13px 0 #10282c,0 26px 44px #061c2355}
[data-mode=cartoon] .device-top{background:linear-gradient(#fff9ed,#f1e3cb)}
[data-mode=cartoon] .screen-bezel{background:linear-gradient(135deg,#3e5551,#253e3c);border-color:#172f30;box-shadow:inset 0 2px 5px #142c30,0 1px 0 #fff}
[data-mode=cartoon] .brand{box-shadow:0 4px 0 #a35b3940,inset 0 2px #fff9ee;border-color:#b9764b;background:linear-gradient(#fffaf0,#ffe8c4)}
.hero{transform:rotate(var(--lean,0deg));transition:left .13s ease-out,top .13s ease-out,transform .13s ease-out}
/* All hero artwork has a square canvas. Preserve it as the board changes shape. */
.hero-body{position:absolute;top:0;left:50%;height:100%;width:auto;aspect-ratio:1;transform:translateX(-50%);transform-origin:50% 90%;animation:hero-breathe 2.6s ease-in-out infinite}
@keyframes hero-breathe{0%,100%{translate:0 0;scale:1 1}50%{translate:0 -.5%;scale:1.015 1.012}}
.hero.munch{animation:hero-chomp .36s ease-out}@keyframes hero-chomp{0%,100%{translate:0 0;scale:1 1}30%{translate:0 -2%;scale:1.065 .97}65%{translate:0 1%;scale:.99 1.04}}
.hero.hero-hurt{animation:hero-hurt .3s ease}@keyframes hero-hurt{20%,70%{translate:-3px 0}45%,90%{translate:3px 0}}
.catcher{width:13%;height:10%;border:0;line-height:0;filter:none!important;transition:left .075s ease-out,top .075s ease-out;transform:translate(-50%,-40%)}
.catcher img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 0 #71472835)}
.tray-catch{animation:tray-catch .3s ease-out}@keyframes tray-catch{35%{translate:0 5px;scale:1.1 .85}70%{translate:0 -3px;scale:1 1.07}}
.tray-miss{animation:tray-miss .28s ease}@keyframes tray-miss{25%{rotate:-9deg}75%{rotate:8deg}}
.food{filter:drop-shadow(0 2px 1px #71472b30)!important;animation:item-arrive .22s ease-out}
.food-visual{display:block;width:100%;height:100%;transform:translateY(var(--hop,0px)) rotate(var(--roll,0deg));transform-origin:center}
.food-visual img{width:100%;height:100%;object-fit:contain;display:block}
.food-image{background:none;width:9%;height:15%;min-width:27px;min-height:26px}
.food.vegetable{width:8%;height:16%;min-width:26px;min-height:27px}
.food.club-box{width:11%;height:18%}.food.club-box img{width:100%;height:100%}
@keyframes item-arrive{from{opacity:0;scale:.7}to{opacity:1;scale:1}}
.effects{position:absolute;inset:0;pointer-events:none;z-index:5;overflow:hidden}
.pickup-effect{position:absolute;width:1px;height:1px;--effect:#f7b942;animation:effect-life .7s linear forwards}
.pickup-effect b{position:absolute;left:0;top:-14px;white-space:nowrap;padding:4px 9px;border:2px solid #fff4d5;border-radius:14px;font:900 15px 'Golos Text',Arial,sans-serif;color:#704128;background:#fff0b8;box-shadow:0 2px 0 #9b61342e;animation:float-points .7s ease-out forwards}
.effect-bonus{--effect:#67b58b}.effect-bonus b{background:#d5f1bd;color:#315c43}.effect-bad{--effect:#e56952}.effect-bad b{background:#ffdac8;color:#a1382e}
.pickup-effect i{position:absolute;width:6px;height:6px;background:var(--effect);border:1px solid #fff3d5;border-radius:2px;animation:spark .6s var(--delay) ease-out forwards}
@keyframes effect-life{0%,85%{opacity:1}100%{opacity:0}}@keyframes float-points{from{transform:translate(-50%,0) scale(.75)}25%{transform:translate(-50%,-12px) scale(1.1)}to{transform:translate(-50%,-35px) scale(1);opacity:0}}
@keyframes spark{from{translate:0 0;rotate:0deg;opacity:1}to{translate:var(--dx) var(--dy);rotate:120deg;opacity:0}}
.heart{display:inline-block;color:#d95442;filter:drop-shadow(0 1px 0 #a15431);transition:opacity .2s,scale .2s}.heart.spent{opacity:.18;scale:.8}
.score-pop{animation:score-pop .25s ease}@keyframes score-pop{40%{scale:1.12;color:#ca6735}}
.life-pop{animation:life-pop .3s ease}@keyframes life-pop{35%{scale:1.13}75%{scale:.95}}
.board-shake{animation:board-shake .25s ease}@keyframes board-shake{20%{translate:-2px 0}45%{translate:2px 0}70%{translate:-1px 0}}
[data-mode=cartoon] .feedback{left:21%;right:21%;top:19%;font-size:13px;color:#8b4b2b;line-height:1.2;pointer-events:none}
[data-mode=cartoon] dialog{background:linear-gradient(145deg,#fff5ddf7,#ffe7bef5)}
.character{transition:background .15s,border-color .15s,box-shadow .15s}.character[aria-pressed=true]{box-shadow:0 2px 0 #bb714547,inset 0 1px #fff5d8}
.primary{box-shadow:0 3px 0 #241f1b40;transition:translate .12s,box-shadow .12s}.primary:active{translate:0 2px;box-shadow:0 1px 0 #241f1b40}
.won-overlay .overlay-inner{position:relative;overflow:hidden}.won-overlay h2{color:#b45b28}.won-overlay .result-score{color:#d6722e}
.confetti{position:absolute;pointer-events:none;top:-15px;left:var(--x);width:7px;height:12px;background:hsl(var(--hue) 76% 62%);border-radius:2px;animation:confetti 1.7s var(--delay) ease-in forwards;z-index:2}
@keyframes confetti{to{translate:var(--drift) 440px;rotate:530deg;opacity:0}}
body:not([data-game-status=playing]) .hero-body,body:not([data-game-status=playing]) .conveyor-stripes{animation-play-state:paused}
body[data-game-status=paused] .board *,body[data-game-status=paused] .board{animation-play-state:paused!important}
@media(max-width:760px){[data-mode=cartoon] .feedback{font-size:9px}.pickup-effect b{font-size:11px;padding:3px 6px;border-width:1px}.pickup-effect i{width:4px;height:4px}}
@media(prefers-reduced-motion:reduce){.hero-body,.conveyor-stripes,.food,.hero.munch,.hero.hero-hurt,.tray-catch,.tray-miss,.board-shake,.score-pop,.life-pop{animation:none!important}.food-visual{transform:none!important}.effects,.confetti{display:none}.hero,.catcher,.hero-slice{transition:none!important}}

/* Original restaurant logos, with no additional advertising captions. */
[data-mode=cartoon] .brand{display:flex;align-items:center;justify-content:center;width:14%;aspect-ratio:1.15;overflow:hidden;padding:4px;background:#fff;box-shadow:0 3px 0 #a35b3940,inset 0 2px #fff;border-width:1px}
.brand img{display:block;width:100%;height:100%;object-fit:contain;flex-shrink:0}
.brand-0 img{width:185%;height:auto}.brand-2 img{width:140%;height:auto}

/* Progress, late-arrival cues, and a compact victory celebration. */
.meal-progress{position:absolute;bottom:8%;left:26%;width:48%;height:5px;background:#bb865e33;border-radius:10px;overflow:hidden;z-index:1}.meal-progress span{display:block;height:100%;background:linear-gradient(90deg,#ed9736,#e46b39);border-radius:inherit;transition:width .22s ease-out}.streak{position:absolute;bottom:10%;left:25%;width:50%;text-align:center;color:#a45b29;font-size:10px;font-weight:800;z-index:2}.food.near-catch{filter:drop-shadow(0 0 4px #ffd473)!important}.food.near-catch .food-visual img{filter:drop-shadow(0 2px 0 #fff5b8)}
.menu-links{display:flex;justify-content:center;gap:8px}.menu-links .dossier-link{margin:0 0 4px}
.leader-overlay .overlay-inner{justify-content:flex-start;padding:12px 15px}.leader-overlay h2{font-size:24px;margin:0 0 7px}.leader-status{font-size:10px;line-height:1.4;margin:5px 0 8px}.leader-scroll{width:100%;overflow:auto;margin-bottom:10px;min-height:30px}.leader-scroll table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}.leader-scroll th{font-size:9px;text-transform:uppercase;color:#97725b;border-bottom:2px solid #dec29e}.leader-scroll td,.leader-scroll th{padding:7px 4px}.leader-scroll td{border-bottom:1px solid #ddc29c66;overflow-wrap:anywhere}.leader-scroll tr:nth-child(-n+3) td:first-child{color:#b36120;font-weight:900}.leader-scroll th:nth-child(4),.leader-scroll td:nth-child(4),.leader-scroll th:last-child,.leader-scroll td:last-child{text-align:right;white-space:nowrap}
.result-overlay .overlay-inner{padding:8px 16px;justify-content:flex-start}.result-overlay h2{font-size:22px;margin:2px 0 5px}.result-overlay .result-score{font-size:25px;margin:3px 0}.result-overlay .result-points{font-size:10px;margin:3px 0 8px}.victory-message{font-weight:800;font-size:13px;line-height:1.3;margin:3px 0 5px;color:#8c502e}.result-overlay .overlay-buttons{gap:6px;flex-wrap:wrap}.result-overlay .primary{font-size:10px;padding:7px 14px}.result-overlay .secondary{font-size:10px;padding:6px 8px}
.victory-scene{height:68px;width:130px;position:relative;flex-shrink:0;isolation:isolate;margin:0 auto 3px}.victory-scene>img{position:absolute;left:36px;top:0;height:66px;width:58px;object-fit:contain;animation:victory-cheer 1.5s ease-out}.victory-rays{position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(#edaa3944 0deg 15deg,transparent 15deg 30deg);animation:victory-rays 2s ease-out}.victory-burger{position:absolute;left:12px;top:5px;font-size:26px;animation:victory-food 1.4s ease-in-out}.victory-medal{position:absolute;right:7px;bottom:2px;background:#f7c359;border:3px solid #ffe7ac;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;font-weight:900;font-size:14px;color:#7d4c24;animation:victory-medal .7s cubic-bezier(.2,1.5,.5,1)}
@keyframes victory-cheer{0%{translate:0 40px;scale:.6;opacity:0}30%{translate:0 -5px;scale:1.1}50%{translate:0 2px}70%{translate:0 -3px}100%{translate:0 0;scale:1;opacity:1}}@keyframes victory-rays{from{rotate:-45deg;scale:.3}to{rotate:20deg;scale:1}}@keyframes victory-food{0%{translate:0 -20px;rotate:-30deg;opacity:0}35%{translate:10px 10px;opacity:1}65%{translate:0 -5px;rotate:10deg}100%{translate:0 0;rotate:0deg}}@keyframes victory-medal{from{scale:0;rotate:-80deg}to{scale:1;rotate:0deg}}
#winner-form{width:100%;max-width:350px;margin:2px auto 7px}#winner-form label{display:block;font-size:10px;margin-bottom:5px}.winner-fields{display:flex;gap:5px}.winner-fields input{min-width:0;flex:1;width:100%;border:1px solid #b58c63;border-radius:6px;padding:7px 8px;background:#fffaf1;font:inherit;font-size:12px;color:#463125}.save-status,#save-status{font-size:10px;line-height:1.3;margin:5px 0;min-height:13px}
@media(max-width:440px){.board{min-height:300px}.leader-overlay .overlay-inner{padding:10px 8px}.leader-overlay h2{font-size:20px}.leader-scroll table{font-size:9px}.leader-scroll td,.leader-scroll th{padding:6px 3px}.leader-scroll th{font-size:8px}.leader-status{font-size:9px}.result-overlay .overlay-inner{padding:5px 8px}.result-overlay h2{font-size:18px}.victory-scene{height:58px}.victory-scene>img{height:56px}.victory-message{font-size:11px}.result-overlay .result-score{font-size:22px}.result-overlay .result-points{font-size:9px;margin-bottom:5px}.streak{font-size:8px}.result-overlay .overlay-buttons{margin-top:2px}}
@media(prefers-reduced-motion:reduce){.victory-scene *{animation:none!important}.meal-progress span{transition:none}}

.site-brand{display:flex;flex-direction:column;gap:4px;min-width:0}.publisher{color:#e9b883;letter-spacing:3px;font-size:9px;font-weight:800}.masthead .wordmark{line-height:1.05}@media(max-width:440px){.publisher{font-size:8px;letter-spacing:2px}}

.food.wings-bucket{width:10%;height:18%;min-width:32px;min-height:32px}.food.fries{height:16%;min-height:29px}

#overlay:focus{outline:none}
.round-error{color:#943d31;font-size:11px;font-weight:700;line-height:1.3;margin:3px 0 6px}

.food.beer{width:7%;height:21%;min-width:26px;min-height:44px}.food.rolls{width:11%;height:17%;min-width:38px;min-height:32px}
.drink-effects{position:absolute;top:8%;left:21%;right:21%;z-index:5;border-radius:9px;padding:4px 5px;background:#693992;color:#fff6df;text-align:center;font-size:10px;font-weight:800;pointer-events:none}.drink-effects[hidden]{display:none}.control.shuffled{background:#693992;color:#fff6df;box-shadow:0 3px 0 #3f2457}.control.shuffled kbd{color:#ead4ff}body[data-slowed=true] .conveyor-stripes{animation-duration:2.4s}
@media(max-width:760px){.drink-effects{left:18%;right:18%;font-size:8px;padding:3px}.control.shuffled{box-shadow:0 2px 0 #3f2457}}

.score-block,.goal{white-space:nowrap}.goal{flex-shrink:0}.lives-block #lives{display:inline-flex;gap:4px;letter-spacing:0;line-height:1}

.menu-links{flex-wrap:wrap;gap:4px 8px}.menu-links .dossier-link{padding-left:8px;padding-right:8px;white-space:nowrap}
.catch-overlay .overlay-inner{height:100%;min-height:0;padding:12px 18px;gap:8px;justify-content:flex-start}
.catch-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;flex-shrink:0}.catch-heading h2{font-size:24px;margin:0;letter-spacing:-.7px}.catch-heading time{font-size:10px;color:#8c6248;white-space:nowrap}
.catch-photo{margin:0;width:100%;min-height:0;flex:1;display:flex;flex-direction:column;gap:6px}.catch-photo button{background:none;border:0;padding:0;min-height:0;flex:1;width:100%;border-radius:10px;overflow:hidden;cursor:zoom-in}.catch-photo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:10px}.catch-photo figcaption{font-size:10px;color:#8c6248;flex-shrink:0}.catch-overlay #catch-back{flex-shrink:0;padding:5px 10px}
dialog.catch-viewer{position:fixed;inset:0;margin:auto;width:min(1100px,96vw);max-width:96vw;height:auto;max-height:94svh;padding:42px 10px 10px;background:#fff4df;border:2px solid #c88b5a;border-radius:14px;overflow:auto;color:#463125}dialog.catch-viewer::backdrop{background:#181d19dd;pointer-events:auto}.catch-viewer img{display:block;width:100%;height:auto;max-height:calc(94svh - 56px);object-fit:contain}.catch-close{position:absolute;top:8px;right:10px;background:#463125;color:#fff4df;border:0;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:700}
@media(max-width:440px){.menu-links{gap:2px}.menu-links .dossier-link{font-size:9px;padding:5px 6px}.catch-overlay .overlay-inner{padding:10px;gap:6px}.catch-heading h2{font-size:21px}.catch-heading time{font-size:9px}.catch-photo figcaption{font-size:9px}}

/* Optional audio intro, played only after a listener chooses it. */
.preroll-overlay .overlay-inner{gap:12px;padding:16px}.preroll-overlay h2{font-size:30px;letter-spacing:2px;margin:0}.preroll-disc{display:grid;place-items:center;width:84px;height:84px;border:9px solid #382a21;border-radius:50%;background:radial-gradient(circle,#f7c26f 0 35%,#493428 36% 42%,#261f1b 43% 100%);box-shadow:0 5px 0 #c0875b44;color:#6b3a21;font-size:24px;flex-shrink:0}.preroll-caption{font-size:12px;margin:0;color:#8c6248}.preroll-overlay audio{display:block;width:min(360px,100%);min-height:54px}.preroll-status{font-size:11px;line-height:1.4;max-width:360px;margin:0}.preroll-status:empty{display:none}@media(max-width:440px){.preroll-overlay .overlay-inner{gap:9px;padding:12px}.preroll-overlay h2{font-size:24px}.preroll-disc{width:64px;height:64px;border-width:7px}.preroll-caption{font-size:10px}.preroll-status{font-size:10px}}

@media(max-width:440px){.menu-links{display:grid;grid-template-columns:repeat(2,max-content);justify-content:center;gap:0 8px}.menu-links .dossier-link{font-size:9px;line-height:1.3;padding:3px 6px;margin-bottom:0}}
