:root{font:18px/1.45 "Trebuchet MS",system-ui,sans-serif;color:#173f34;background:#faf6e9;--ink:#173f34;--green:#164c3e;--gold:#ffcc6a}
*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;padding:8px max(4%,calc((100vw - 1080px)/2));border-bottom:1px solid #c7c5ae;background:#fffdf4}header strong{font:bold 1rem Georgia,serif}header a{color:var(--ink);font-weight:bold;text-decoration:none}
main{width:min(1080px,100%);margin:auto;padding:12px 20px 35px}.sign{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}h1,h2,h3,p{margin:0}h1{font:900 clamp(2.5rem,6vw,4rem)/1 Georgia,serif;letter-spacing:-.055em}.sign p{font-weight:bold;margin-top:4px}.dots{display:inline-flex;gap:5px}.dot{width:15px;height:15px;border-radius:50%;border:2px solid #29604f;display:inline-grid;place-items:center;font-size:10px}.dot.done{color:white;background:#29604f}#progress{font-size:.8rem;font-weight:bold;text-align:right}#progress span.txt{display:block}
button{border:1.5px solid #8a9b88;border-radius:10px;padding:.58rem .9rem;min-height:44px;font:700 1rem/1.25 inherit;font-family:inherit;font-weight:bold;font-size:1rem;background:#fffcf1;color:var(--ink);cursor:pointer}button:hover{background:#f1ead6}button:focus-visible,a:focus-visible{outline:3px solid #176fc3;outline-offset:3px}button:disabled{opacity:.55}header button{font-size:.85rem}#scene{position:relative;background:#d9e5cf url('./art/counter.webp') center 65%/cover;border:2px solid #244d3e;border-radius:20px;box-shadow:0 5px 0 #d4c4a1;overflow:hidden}.awning{height:12px;background:repeating-linear-gradient(90deg,#e58f58 0 37px,#fff0d2 37px 74px)}#room{min-height:260px;display:grid;grid-template-columns:minmax(150px,.95fr) minmax(210px,2fr) minmax(75px,.7fr);gap:14px;align-items:center;padding:20px}
.ticket{align-self:center;background:#fff8df;box-shadow:0 4px 0 #9b8058;border:1px solid #a68c62;padding:16px 14px;border-radius:4px;position:relative;transform:rotate(-2deg)}.ticket:before{content:'';position:absolute;top:-6px;left:38%;width:24%;height:12px;border-radius:5px;background:#4d6b5c}.ticket h2{font:700 1.25rem Georgia;margin-bottom:7px}.ticket p{display:flex;justify-content:space-between;gap:5px;padding:4px 0;border-bottom:1px dashed #c4b79c;font-size:.94rem}.ticket p:last-child{border:0}.chef{max-width:100%;max-height:170px;align-self:end;justify-self:center;filter:drop-shadow(0 3px 2px #897854)}
.tray{display:flex;gap:8px;border-radius:24px;padding:12px 9px;box-shadow:inset 0 0 0 3px #85a692,0 4px 0 #695f45;background:#31604e;border:2px solid var(--ink)}.plate{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#fff6da;border:2px solid #c3aa82;border-radius:17px;padding:7px 3px;text-align:center}.flag{padding:1px 9px;background:#f4dba4;border-radius:4px;font-size:.85rem}.plate small{font-weight:bold;font-size:.82rem}.food{display:block;position:relative;width:100%;height:clamp(65px,10vw,115px);text-align:center}.food>img{width:100%;height:100%;object-fit:contain}.tops{display:flex;justify-content:center;position:absolute;left:0;right:0;top:24%;font-size:1.2rem}.tops img{width:25%;max-width:43px;object-fit:contain}.smallfood .food{height:60px}.smallfood .tops img{max-width:24px}
#turn{margin:14px 0 0;background:#fffcf3;border:1px solid #c9c1a7;border-radius:14px;padding:16px 18px}#turn h2{font:bold clamp(1.18rem,2.5vw,1.65rem) Georgia,serif;margin:0 0 9px}.options{display:flex;align-items:stretch;flex-wrap:wrap;gap:9px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#24604c}.bell{background:var(--gold);border-color:#a47c37}.orderBtn{text-align:left;min-width:125px}.orderBtn small{display:block;font-weight:normal}.portion{min-width:82px;display:grid;justify-items:center}.portion .food{width:85px}#message{margin:10px 4px;font-weight:bold;min-height:1.4em}.stamp{display:inline-block;padding:3px 8px;border:2px solid var(--green);transform:rotate(-4deg);border-radius:5px;font-weight:bold}.celebrate .chef{animation:cheer .7s ease}.celebrate .tray{animation:delivery .65s ease}.celebrate .stamp{animation:stamp .62s ease}.cook .plate{animation:delivery .45s ease}@keyframes cheer{40%{transform:translateY(-13px) rotate(-6deg)}}@keyframes delivery{50%{transform:translateY(5px) scale(1.025)}}@keyframes stamp{0%{opacity:0;transform:scale(1.6) rotate(-10deg)}70%{transform:scale(.95) rotate(-4deg)}}
@media(max-width:700px){main{padding:10px 12px}#room{grid-template-columns:1fr 82px;gap:10px;padding:12px;min-height:0}.ticket{transform:none;padding:10px 13px}.ticket h2{font-size:1.05rem}.ticket p{padding:1px 0}.chef{grid-column:2;grid-row:1;align-self:center;max-height:90px}.tray{grid-column:1/-1;grid-row:2}.food{height:72px}.awning{height:8px}#turn{padding:12px}.sign p{font-size:.88rem}header strong{font-size:.85rem}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}
.empty-tray{width:100%;align-self:center;text-align:center;color:#fff9df;font-weight:bold;padding:30px 5px}.portion .food{pointer-events:none}.ticket .stamp{margin-top:6px}
.report-link{background:transparent;border:0;color:#3e5b4f;text-decoration:underline;font-size:.82rem;margin-top:12px}dialog{color:var(--ink);background:#fffaf0;max-width:min(470px,90vw);border:2px solid var(--green);border-radius:12px}dialog::backdrop{background:#193a3080}dialog p,dialog table{margin:10px 0}dialog table{width:100%;border-collapse:collapse}dialog th,dialog td{padding:4px;text-align:left;border-bottom:1px solid #d1c4a5}

.campaign{position:sticky;top:0;z-index:3;display:grid;gap:.35rem;padding:.6rem 0;background:#fffaf0;font-weight:700}
.campaign progress{width:100%;height:.8rem;accent-color:var(--green)}
dialog{width:min(44rem,94vw);max-width:94vw;max-height:85vh;box-sizing:border-box;overflow:auto}
dialog summary{cursor:pointer;font-weight:700;padding:.45rem 0}

.audio-setting{display:flex;align-items:center;gap:.5rem;font-size:.875rem}
@media(max-width:520px){header strong{display:none}}
