:root{color-scheme:dark;--cream:#ffe5ab;--red:#e95643;--mint:#a9d9bb;--ink:#211c27;--panel:#302833}*{box-sizing:border-box}body{margin:0;background:#17151d;color:var(--cream);font:16px/1.5 ui-sans-serif,system-ui,sans-serif;background-image:linear-gradient(45deg,#1c1821 25%,transparent 25%,transparent 75%,#1c1821 75%),linear-gradient(45deg,#1c1821 25%,transparent 25%,transparent 75%,#1c1821 75%);background-size:24px 24px;background-position:0 0,12px 12px}main{max-width:1000px;margin:24px auto;padding:0 24px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px}.wordmark{font:bold 26px monospace;color:var(--red)}.wordmark small{font:12px monospace;letter-spacing:3px;color:var(--cream)}button{font:700 16px/1.3 inherit; font-family:inherit;font-weight:700;background:var(--cream);color:var(--ink);border:0;border-bottom:4px solid #ae8756;padding:13px 22px;cursor:pointer;border-radius:3px;transition:transform .12s}button:hover:not(:disabled){transform:translateY(-2px);background:#fff0cc}button:focus-visible{outline:3px solid #fff;outline-offset:4px}button:disabled{opacity:.4;cursor:default}.quiet{color:var(--cream);background:transparent;border:1px solid #665060;font-size:14px;padding:8px 12px;margin-left:6px}.quiet:hover:not(:disabled){background:#433443}.secondary{background:#483b48;color:var(--cream);border-color:#1a141e}.primary{background:var(--red);border-color:#94362f;color:#fff5d9}#scene-wrap{position:relative;border:6px solid #4c3840;box-shadow:0 6px 0 #0f1017;overflow:hidden}canvas{display:block;width:100%;image-rendering:pixelated}#scene-label{position:absolute;left:16px;top:12px;background:#211c27df;padding:4px 10px;font:12px monospace;letter-spacing:2px}#content{padding:26px 0 18px}.title{text-align:center}.eyebrow{color:var(--mint);font:700 12px monospace;letter-spacing:3px}h1,h2,h3{font-family:monospace;line-height:1.12}h1{font-size:clamp(36px,6vw,65px);letter-spacing:-3px;margin:12px 0;color:var(--cream);text-shadow:3px 3px #8e3939}h2{font-size:28px;margin:8px 0 12px}h3{font-size:21px;margin:0 0 10px}p{color:#d3c1bd;margin:10px 0 20px}.actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:20px}.brand-logo{display:block;max-width:300px;max-height:100px;width:auto;height:auto;object-fit:contain;margin:10px auto;image-rendering:auto}.brand-text{font:bold 15px monospace;letter-spacing:5px;color:var(--red)}.subtle{font-size:13px;color:#b49da4}.restaurant-grid,.tray-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.restaurant,.tray{text-align:left;display:block;position:relative;background:#302833;color:var(--cream);border:1px solid #695058;border-bottom:4px solid #4e3843;padding:18px}.restaurant:hover:not(:disabled),.tray:hover:not(:disabled){background:#443340}.restaurant p,.tray p{font-size:14px;margin:10px 0}.restaurant b{font:700 21px monospace}.tag{display:block;color:var(--mint);font:12px monospace;letter-spacing:1px;margin-bottom:10px}.tray.selected{border-color:var(--mint);background:#34453f}.tray .food{float:left;width:64px;height:48px;margin-right:12px;image-rendering:pixelated}.tray strong{display:block;font-size:16px}.tray p{clear:both;padding-top:10px;min-height:48px}.stats{display:flex;justify-content:space-between;color:var(--mint);font:13px monospace;gap:6px}.risk{color:#ffb49d}.plate-bar{background:#302833;border:1px solid #695058;padding:16px;margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:16px}.plate-bar p{margin:4px 0;font-size:14px}.plate-bar button{white-space:nowrap}#hud{display:flex;justify-content:space-between;padding:12px 0 18px;gap:10px;font:14px monospace}#hud[hidden]{display:none}#hud strong{color:var(--mint)}.quote{font:700 24px/1.3 monospace;color:var(--cream);max-width:640px;margin:15px auto}.stars{font-size:36px;color:#ffc564;letter-spacing:8px}.score{font:700 52px monospace}.receipt{max-width:450px;margin:20px auto;background:#f7e3b7;color:#382837;padding:24px;box-shadow:6px 6px #090c13;transform:rotate(-1deg)}.receipt p{color:#65505a;font:15px monospace}.receipt-row{display:flex;justify-content:space-between;border-bottom:1px dashed #9a7d72;padding:7px 0;font:14px monospace}footer{font:11px monospace;letter-spacing:1px;color:#8f7d88;padding:20px 0 10px;display:flex;justify-content:space-between;gap:14px}dialog{max-width:540px;background:#302833;color:var(--cream);border:3px solid var(--red);padding:28px}dialog::backdrop{background:#0c0b13dd}dialog li{padding:8px 0;color:#e4d0c0}dialog p{font-size:14px}dialog button{width:100%}.progress{height:6px;background:#58404c;margin:22px auto;max-width:320px;overflow:hidden}.progress i{display:block;height:100%;background:var(--mint);animation:taste 3s linear forwards}@keyframes taste{from{width:0}to{width:100%}}@media(max-width:600px){main{padding:0 12px;margin:12px auto}header{margin-bottom:12px}.wordmark small{display:none}#scene-wrap{border-width:4px}#content{padding-top:20px}h1{letter-spacing:-2px}.restaurant-grid{grid-template-columns:1fr}.tray-grid{grid-template-columns:1fr 1fr;gap:8px}.tray{padding:12px}.tray .food{float:none;margin:0 0 6px}.tray p{min-height:62px;font-size:13px}.stats{font-size:12px;flex-wrap:wrap}.plate-bar{align-items:stretch;flex-direction:column}#hud{font-size:12px;flex-wrap:wrap}footer{flex-direction:column}.restaurant p{margin:6px 0}.restaurant-grid{margin-top:12px}#scene-label{font-size:10px;padding:2px 6px;left:8px;top:8px}.quote{font-size:20px}}
/* Keep the primary action visible on shorter laptop screens. */
#scene-wrap[data-mode="title"] #scene,#scene-wrap[data-mode="results"] #scene{max-height:32vh;object-fit:contain;background:#a9dce6}
@media(min-width:700px){#content.title{padding-top:18px}.title p{margin-bottom:12px}.title .actions{margin-top:14px}}
@media(prefers-reduced-motion:reduce){button{transition:none}.progress i{animation:none;width:100%}}
/* Original logo, untouched and uncropped, on the page background. */
.brand-logo{max-width:230px;max-height:155px;padding:0;background:transparent;box-sizing:content-box}
.primary{color:#211c27;border-bottom-color:#907026}
h1{text-shadow:3px 3px #715726}

/* Sunny daytime theme with dark text on pale yellow surfaces. */
:root{color-scheme:light}
body{background:#fff3be;background-image:none;color:#30291e}
.wordmark{color:#806015}.wordmark small,.quiet,h1,.quote{color:#30291e}
h1{text-shadow:3px 3px #e4c36e}
p,.subtle,footer{color:#665539}
.quiet{border-color:#aa8c4b}.quiet:hover:not(:disabled){background:#f3dfa2}
button:focus-visible{outline-color:#684c12}
#scene-wrap{border-color:#af8a43;box-shadow:0 6px 0 #dcc27a}
#scene-label{background:#fff3bee8;color:#40331d}
.eyebrow,.tag,.stats,#hud strong{color:#326257}.risk{color:#9b3b22}
.restaurant,.tray,.plate-bar{background:#fff8db;color:#30291e;border-color:#bba467}
.restaurant:hover:not(:disabled),.tray:hover:not(:disabled){background:#ffedb0}
.tray.selected{background:#e1edc6;border-color:#477965}
.secondary{background:#ead49b;color:#30291e;border-color:#aa8c4b}
.stars{color:#987009}.receipt{background:#fff9e2;box-shadow:6px 6px #dbc27a}
dialog{background:#fff5ce;color:#30291e}dialog li{color:#514329}
dialog::backdrop{background:#332b1aaa}.progress{background:#e2cc8f}.progress i{background:#477965}
#scene-wrap[data-mode="map"]{max-width:800px;margin:auto}
#scene-wrap[data-mode="map"] #scene{touch-action:none}
.door-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;background:#fff8db;border:1px solid #bba467}.door-bar span{font-weight:600}
.walk-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:16px}.walk-controls>span{font-size:14px;color:#665539}.dpad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,40px);gap:4px}.dpad button{padding:6px;touch-action:none;user-select:none;font-size:22px;background:#ead49b;border-color:#aa8c4b}.dpad button[data-direction="up"]{grid-column:2}.dpad button[data-direction="left"]{grid-column:1;grid-row:2}.dpad button[data-direction="down"]{grid-column:2;grid-row:2}.dpad button[data-direction="right"]{grid-column:3;grid-row:2}
@media(max-width:600px){.door-bar{flex-direction:column;align-items:stretch}.walk-controls{gap:12px}.walk-controls>span{font-size:13px}}
header>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}header .quiet{margin-left:0}
#game:fullscreen,body.expanded-game #game{width:100%;height:100dvh;max-width:none;margin:0;padding:16px 24px;background:#fff3be;overflow:auto}
body.expanded-game{overflow:hidden}body.expanded-game #game{position:fixed;inset:0;z-index:100}
#game:fullscreen footer,body.expanded-game footer{display:none}
#game:fullscreen[data-state="map"] #scene-wrap,body.expanded-game #game[data-state="map"] #scene-wrap{width:min(100%,calc((100dvh - 238px)*1.5));max-width:none}
#game:fullscreen[data-state="map"] #content,body.expanded-game #game[data-state="map"] #content{max-width:1080px;margin:auto;padding:12px 0 0}
#game:fullscreen[data-state="map"] #content>h2,#game:fullscreen[data-state="map"] #content>p,#game:fullscreen[data-state="map"] #content>.eyebrow,body.expanded-game #game[data-state="map"] #content>h2,body.expanded-game #game[data-state="map"] #content>p,body.expanded-game #game[data-state="map"] #content>.eyebrow{display:none}
#game:fullscreen[data-state="map"] .walk-controls,body.expanded-game #game[data-state="map"] .walk-controls{margin-top:8px}
@media(pointer:fine){#game:fullscreen[data-state="map"] .dpad,body.expanded-game #game[data-state="map"] .dpad{display:none}}
#game:fullscreen[data-state="build"],body.expanded-game #game[data-state="build"]{max-width:1200px;margin:auto}
@media(max-width:600px){header .quiet{font-size:12px;padding:8px}#game:fullscreen,body.expanded-game #game{padding:10px 12px}#game:fullscreen[data-state="map"] #scene-wrap,body.expanded-game #game[data-state="map"] #scene-wrap{width:min(100%,calc((100dvh - 350px)*1.5))}}
@media(min-width:601px) and (pointer:fine){
#game:fullscreen[data-state="map"] #scene-wrap,body.expanded-game #game[data-state="map"] #scene-wrap{width:min(100%,calc((100dvh - 260px)*1.5))}
#game:fullscreen[data-state="map"]:has(#content>.actions) #scene-wrap,body.expanded-game #game[data-state="map"]:has(#content>.actions) #scene-wrap{width:min(100%,calc((100dvh - 310px)*1.5))}
#game:fullscreen[data-state="map"] .walk-controls,body.expanded-game #game[data-state="map"] .walk-controls{display:none}
#game:fullscreen[data-state="map"] .actions,body.expanded-game #game[data-state="map"] .actions{margin-top:8px}
}

header{justify-content:flex-end}
.intro-screen{position:fixed;inset:0;z-index:1000;background:#fff3be;display:grid;place-items:center;opacity:1;transition:opacity .6s ease;padding:24px}
.intro-logo{grid-area:1/1;display:block;width:min(58vw,320px);height:auto;max-height:48vh;object-fit:contain;background:transparent;opacity:0;transition:opacity .65s ease}
.intro-title{grid-area:1/1;text-align:center;max-width:100%;font-size:clamp(36px,7vw,80px);opacity:0;transition:opacity .7s ease}
.intro-status{position:absolute;bottom:20%;left:20px;right:20px;text-align:center;font:14px monospace;color:#665539}
.intro-skip{position:absolute;bottom:28px;right:28px;color:#514329}
.intro-screen[data-phase="logo"] .intro-logo{opacity:1}
.intro-screen[data-phase="title"] .intro-title{opacity:1;transition-delay:.4s}
.intro-screen[data-phase="exit"]{opacity:0;pointer-events:none}
.intro-screen[data-phase="exit"] .intro-title{opacity:1}
@media(prefers-reduced-motion:reduce){.intro-screen,.intro-logo,.intro-title{transition:none!important}}
/* Supplied logo above the scene; compact during play. */
header{justify-content:space-between}
.top-logo{display:block;max-height:42px;max-width:90px;width:auto;height:auto;object-fit:contain;background:transparent;image-rendering:auto}
#game[data-state="title"] header,#game[data-state="results"] header{display:grid;grid-template-columns:1fr auto 1fr;align-items:start}
#game[data-state="title"] .top-logo,#game[data-state="results"] .top-logo{grid-column:2;max-height:130px;max-width:180px}
#game[data-state="title"] header>div,#game[data-state="results"] header>div{grid-column:3}
.intro-logo{align-self:start;margin-top:clamp(24px,5vh,60px);max-height:32vh}
@media(max-width:600px){#game[data-state="title"] header,#game[data-state="results"] header{grid-template-columns:1fr;justify-items:center;gap:12px}#game[data-state="title"] .top-logo,#game[data-state="results"] .top-logo{grid-column:1;max-height:115px}#game[data-state="title"] header>div,#game[data-state="results"] header>div{grid-column:1;justify-content:center}.top-logo{max-height:34px;max-width:45px}header{gap:6px}}
.top-logo{width:50px;height:42px}
#game[data-state="title"] .top-logo,#game[data-state="results"] .top-logo{width:156px;height:130px}
@media(max-width:600px){#game[data-state="title"] .top-logo,#game[data-state="results"] .top-logo{width:138px;height:115px}.top-logo{width:41px;height:34px}}

/* Bold uppercase game title without a shadow, including the opening sequence. */
h1{font-weight:900;text-transform:uppercase;text-shadow:none}
