@font-face{font-family:"Menu Dot";src:url("counter-art/cafe-dot.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
:root{color-scheme:dark;font-family:"Menu Dot","Yu Gothic",sans-serif;color:#f0e1bb;background:#22332c}
*{box-sizing:border-box}
body{min-height:100vh;margin:0;background:radial-gradient(ellipse at 44% 21%,#39473a 0,transparent 68%),#22332c}
main{max-width:1000px;margin:auto;padding:clamp(10px,3vh,28px) clamp(14px,3.5vw,52px) 32px}
a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:4px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:-1px}
.counter-layout{width:100%}
.scene{border:1px solid #9d8761;background:#3a332b;box-shadow:0 8px 25px #14201b66;overflow:hidden}
canvas{display:block;width:100%;height:auto;image-rendering:pixelated;background:#544637}
#prep-feedback{margin:0;padding:8px 15px;color:#f0e1bf;background:#34362c;font-size:.94rem;line-height:1.65}
.menu{
  width:min(94vw,740px);max-height:90vh;max-height:90dvh;overflow:auto;padding:0;
  color-scheme:light;color:#463526;background:#f7ecd2;border:5px solid #764439;
  border-radius:5px 8px 8px 5px;box-shadow:0 2px #d0b899,0 5px #804d3e,0 14px 40px #17221d77;
  font-family:"Menu Dot","Yu Mincho",serif;
}
.menu::backdrop{background:#17201ba8}
.book-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 6%;background:#713e37;color:#ffebc3;border-bottom:2px solid #b18d58}
.book-head>div{display:flex;align-items:baseline;gap:1em}
.book-head span{font-size:.8rem;letter-spacing:.14em}
.book-head h2{margin:0;font:400 1.55rem/1.3 "Menu Dot",serif;letter-spacing:.14em}
.menu button{cursor:pointer;font:inherit}
.menu-close{background:transparent;color:inherit;border:1px solid #c49c7a;border-radius:2px;padding:5px 10px;white-space:nowrap}
.book-spread{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.book-spread[hidden]{display:none}
.book-page{min-width:0;padding:18px clamp(10px,3vw,34px) 20px;text-align:center;background:linear-gradient(90deg,#f9efd8 0%,#f5e8cb 92%,#dfcba8 100%)}
.book-page+.book-page{border-left:1px solid #b69b75;background:linear-gradient(90deg,#ddc6a4 0%,#f7ebd0 8%,#faf0d9 100%)}
.book-page h3{margin:0;font-weight:400;font-size:1.16rem;letter-spacing:.12em}
#menu-list h3{padding:.2em 0 .5em;border-bottom:3px double #ac906e;color:#715244}
.menu-note{position:absolute;top:10px;left:2px;writing-mode:vertical-rl;color:#8b4437;border:1px solid #aa6854;padding:4px 2px;letter-spacing:.12em;font-size:.66rem;line-height:1;transform:rotate(-5deg)}
.menu-item{position:relative;display:grid;justify-items:center;width:100%;padding:10px 4px 8px;background:transparent;color:inherit;border:0;border-radius:2px}
.menu-item+.menu-item{border-top:1px solid #c9b493}
.menu-item img{object-fit:contain;image-rendering:pixelated}
.menu-item img{width:100%;height:clamp(78px,13vh,124px);margin:3px 0 6px;transition:transform .16s}
.menu-item:hover img,.menu-item:focus-visible img{transform:translateY(-2px)}
.menu-item:hover strong,.menu-item:focus-visible strong{text-decoration:underline;text-underline-offset:4px}
.menu-item strong{font-weight:400;font-size:clamp(.92rem,2.3vw,1.28rem);letter-spacing:.04em}
.menu-item small{font-size:.8rem;line-height:1.55;margin:.4em 0;color:#695842}
.menu-currency{margin:0;padding:6px 14px;text-align:center;background:#f5e8cb;color:#624936;font-size:.84rem;line-height:1.5;text-wrap:balance}
.from-price{font-size:.9rem;color:#774435}
.counter-stage{position:relative;container-type:inline-size}
#master-bubble{
  --mouth-x:47cqw;--mouth-y:23cqw;--face-gap:10cqw;
  position:absolute;left:calc(var(--mouth-x) + var(--face-gap));top:var(--mouth-y);transform:translateY(-50%);
  max-width:calc(98cqw - var(--mouth-x) - var(--face-gap));width:max-content;padding:10px 17px;
  background:#fff3d8;color:#47382a;border:2px solid #785e43;border-radius:8px 8px 8px 2px;
  box-shadow:2px 3px 0 #372b214d;pointer-events:none;
}
#master-bubble::before,#master-bubble::after{content:"";position:absolute;right:100%;top:50%;width:clamp(9px,3cqw,24px);height:16px;background:#785e43;transform:translateY(-50%);clip-path:polygon(100% 0,100% 100%,0 50%)}
#master-bubble::after{margin-right:-2px;height:12px;background:#fff3d8}
#master-bubble[data-side=left]{left:auto;right:calc(100cqw - var(--mouth-x) + var(--face-gap));max-width:calc(var(--mouth-x) - var(--face-gap) - 2cqw);border-radius:8px 8px 2px 8px}
#master-bubble[data-side=left]::before,#master-bubble[data-side=left]::after{right:auto;left:100%;transform:translateY(-50%) scaleX(-1)}
#master-bubble[data-side=left]::after{margin-right:0;margin-left:-2px}
#master-bubble span{display:block;font:400 .73rem "Menu Dot",serif;color:#815143;margin-bottom:3px}
#speech{font-size:clamp(1rem,1.75vw,1.12rem);line-height:1.6;overflow-wrap:anywhere;margin:0;outline:none}
#counter-replies{
  position:absolute;bottom:3%;left:50%;transform:translateX(-50%);width:min(90%,440px);
  padding:10px 14px 12px;border:1px solid #ac9470;border-radius:5px;box-shadow:0 3px 12px #271d1844;
  color:#fff1ce;background:#37493d;font-family:"Menu Dot","Yu Mincho",serif;
}
#counter-replies:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.guest-request,.reply-choices{display:flex;align-items:center;gap:8px}
.reply-choices{grid-column:1/-1;grid-row:2;align-items:stretch}.menu-back{grid-column:2;grid-row:1}
.guest-request img{width:36px;height:30px;object-fit:contain;image-rendering:pixelated}
.guest-request{font-size:.86rem}
.menu-back{background:none;border:0;color:#ead8b6;font:inherit;font-size:.76rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px 0}
.reply-choices button{flex:1;min-height:46px;border:1px solid #dbbe93;border-radius:3px;background:#f9edd2;color:#463626;font:inherit;cursor:pointer;display:flex;align-items:baseline;justify-content:center;gap:.65em;padding:8px 4px}
.reply-choices button:hover,.reply-choices button:focus-visible{background:#ffe4ad;border-color:#8f6036}
.reply-choices button span:first-child{font-size:1.14rem}
.reply-choices button:enabled{align-items:center}
.reply-choices button span+span{font-size:.84rem;color:#715241}
.reply-choices button:disabled{cursor:default;flex-wrap:wrap;align-content:center;align-items:baseline;
  gap:0 .35em;background:repeating-linear-gradient(135deg,#cfcec6 0 3px,#d6d5cc 3px 6px);
  color:#444540;border:1px dashed #73766e;box-shadow:inset 0 0 0 2px #d6d5cc}
.reply-choices button:disabled span:first-child::before{content:"";display:inline-block;width:10px;height:13px;
  background:currentColor;margin-right:4px;clip-path:polygon(0 41%,17% 41%,17% 15%,32% 0,68% 0,83% 15%,83% 41%,67% 41%,67% 22%,33% 22%,33% 41%,100% 41%,100% 100%,0 100%)}
.reply-choices button:disabled span+span{font-size:.78rem;color:inherit}
@media(max-width:540px){.reply-choices button{flex-direction:column;align-items:center;justify-content:center;gap:2px}.reply-choices button:disabled{align-items:center;flex-wrap:nowrap}.reply-choices button span+span{white-space:nowrap}}
.reply-choices button small{width:100%;font-size:.72rem;line-height:1.45}
.scene.in-conversation>#seat-hint{display:none}
@media(max-width:600px){
  #master-bubble{padding:7px 9px;border-radius:9px 9px 9px 2px}
  #master-bubble.long-speech{position:relative;left:auto;right:auto;top:auto;transform:none;margin:6px 2% 6px auto;width:82%;max-width:none}
  #master-bubble.long-speech[data-side=left]{margin-left:2%;margin-right:auto}
  #master-bubble.long-speech::before,#master-bubble.long-speech::after{left:calc(var(--mouth-x) - 16cqw - 8px);right:auto;top:auto;bottom:100%;width:12px;height:8px;clip-path:polygon(0 100%,50% 0,100% 100%);margin:0;transform:none}
  #master-bubble.long-speech[data-side=left]::before,#master-bubble.long-speech[data-side=left]::after{left:calc(var(--mouth-x) - 2cqw - 8px)}
  #master-bubble.long-speech::after{bottom:calc(100% - 2px)}
  #master-bubble span{font-size:.68rem}#speech{font-size:.88rem}
  #counter-replies{position:static;transform:none;width:100%;border:0;border-top:1px solid #a99169;border-radius:0;padding:8px 12px 12px}
  .guest-request{font-size:.78rem}.guest-request img{width:26px;height:23px}
}
@media(max-width:540px){
  .book-head{padding:8px 12px}.book-head span{font-size:.7rem}.book-head h2{font-size:1.2rem}
  .book-page{padding:12px 10px}.book-page h3{font-size:1rem}
  .menu-item small{font-size:.75rem;min-height:3.1em}.menu-item{padding:7px 0}

}
@media(prefers-reduced-motion:reduce){.menu-item img{transition:none}}
a:focus-visible,button:focus-visible{outline:2px solid #b27035;outline-offset:2px}
#recipe-workbench{display:block;margin-top:.6rem}

canvas.served{cursor:grab;touch-action:pan-y}
canvas.served:active{cursor:grabbing}
canvas:focus-visible{outline:2px solid #edc580;outline-offset:-3px}
.turn-hint{font-size:.79rem;margin:0;padding:6px 12px 9px;text-align:center;background:#34362c;color:#e5cca4}
.game-view{position:relative}
#room-objects,#guest-settings{position:absolute;inset:0;pointer-events:none}
#room-objects button,.table-dish{position:absolute;pointer-events:auto;background:transparent;border:0;border-radius:6px;cursor:pointer;min-width:24px;min-height:24px}
#room-objects [data-room=calendar]{left:77.4%;top:8.3%;width:9.4%;height:18.6%}
#room-objects [data-room=clock]{left:59%;top:4%;width:9%;height:25%}
#room-objects [data-room=plant]{left:1%;top:46%;width:7.4%;height:17%}
#room-objects [data-room=mill]{left:92%;top:45%;width:6.8%;height:9%}
#room-objects [data-room=lamp]{left:18.5%;top:9%;width:15.5%;height:18%}
.turn-hint:empty{display:none}
#room-objects [data-room=cup]{min-width:0;min-height:0;transform:translate(-50%,-50%)}
#room-objects button:focus-visible::after{content:attr(aria-label);position:absolute;bottom:100%;left:50%;transform:translateX(-50%);white-space:nowrap;background:#352e24;color:#fff1cf;padding:3px 6px;font:12px/1.4 "Menu Dot",sans-serif;border-radius:3px;pointer-events:none}
#room-objects [data-room=menu]:focus-visible::after,#room-objects [data-room=cup]:focus-visible::after{left:auto;right:0;transform:none}
#room-objects [data-room=book]:focus-visible::after{left:0;transform:none}
#room-objects [data-room=plates]{left:68%;top:60%;width:6%;height:5%}
#room-objects [data-room=saucers]{left:74.5%;top:60%;width:5.5%;height:5%}
#room-objects [data-room=glass]{min-width:0;min-height:0;top:59.9%;width:3.19%;height:4.6%;transform:translateX(-50%)}
#room-objects [data-room^=cabinet-]{top:68%;width:5%;height:5.8%;transform:translateX(-50%)}
#room-objects [data-room=cabinet-left]{left:70.14%}
#room-objects [data-room=cabinet-right]{left:97.64%}
#room-objects [data-room^=tin-]{min-width:0;transform:translateX(-50%);min-height:0}
#room-objects [data-room=tin-large]{left:71.94%;top:30.4%;width:3.6%;height:7.6%}
#room-objects [data-room=tin-small]{left:75.42%;top:32%;width:3.2%;height:6%}
#room-objects [data-room=sink]{left:58.5%;top:60%;width:6%;height:7%}
#room-objects [data-room=brewer]{left:15%;top:58%;width:8%;height:23%}
#room-objects [data-room=recipes]{left:94%;top:28.5%;width:5.8%;height:9.5%}
#room-objects [data-room=returns]{left:24%;top:67%;width:11%;height:6%}
#room-objects [data-room=cat]{left:8.5%;top:56.2%;width:9.4%;height:6.5%}
#room-objects [data-room=master]{left:39%;top:15%;width:16%;height:31%;border-radius:45%}
#room-objects [data-room=window]{left:11.5%;top:40%;width:9%;height:15%}
#room-objects [data-room=sugar]{left:5%;top:71%;width:8%;height:10%}
#room-objects [data-room=book]{left:4.5%;top:84%;width:14%;height:9%}
#room-objects [data-room=receipts]{left:17%;top:90%;width:10%;height:8%}
#journal h3{font-size:.85rem;color:#5c5c44;margin:.65rem 5% .3rem}
#dish-focus,#receipts{box-sizing:border-box;width:min(94vw,540px);max-height:92dvh;overflow:auto;font:inherit;padding:0;border:2px solid #aa8c5a}
#dish-focus::backdrop,#receipts::backdrop{background:#111713d9}
#dish-focus{color:#f6e5bf;background:#282d26;text-align:center}
#dish-focus header{padding:16px 12px 0}#dish-focus small{color:#dbc49c}
#dish-focus h2,#receipts h2{font-size:1.45rem;line-height:1.3;margin:4px 0}
#focus-art{width:100%;height:auto;touch-action:none;cursor:grab;background:radial-gradient(ellipse at 50% 64%,#62634c,#353d32 57%,#282d26 83%)}
#focus-art:active{cursor:grabbing}
.focus-controls{font-size:.79rem;color:#d6cab4;margin:0}
#focus-score{margin:12px 6% 0;border-top:1px solid #706d55;padding:8px 0}
#focus-score strong{color:#ffe2a1;font-size:1.45rem}
#focus-score small{display:block}
#focus-score p,#receipts li p{font-size:.86rem;line-height:1.7;margin:4px 0}
#dish-focus button,#receipts button{font:inherit;min-height:44px;cursor:pointer;border:1px solid #b1976c;border-radius:3px;color:#443b2b;background:#f6e5bd;padding:6px 16px}
#dish-focus form{margin:4px 0 16px}
#receipts{background:#f4e8c9;color:#514333;padding:18px clamp(14px,3vw,26px);width:min(94vw,510px)}
#receipts header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #b38870}
#receipts .receipt-tools{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0}
#receipts .receipt-tools[hidden],#rank-field[hidden]{display:none}
.receipt-tools label{display:grid;gap:2px;font-size:.75rem}
.receipt-tools select{min-height:44px;font:inherit;font-size:.94rem;color:inherit;background:#fff4d9;border:1px solid #aa9068;border-radius:3px;padding:0 5px}
.score-parts li small{display:block;font-size:.72rem;color:inherit}
#receipts ol{list-style:none;margin:0;padding:0}#receipts ol>li{border-bottom:1px dashed #af9e7d;padding:8px 0}
.score-parts{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 12px;list-style:none;padding:0;margin:7px 0;font-size:.84rem}
.score-parts li{white-space:nowrap}.score-parts b{font-weight:normal;color:inherit}
#receipts .score-parts{justify-content:flex-start}
#receipts summary{cursor:pointer;min-height:44px}#receipts summary b{float:right;color:#79503c}
#receipts summary small{display:block;color:#746650}
#room-objects [data-room=menu]{left:82%;top:81%;width:16%;height:14%}
#recipe-book{width:min(94vw,710px);max-height:90dvh;overflow:auto;padding:0;color-scheme:light;color:#493c2e;background:#f5ead2;border:5px solid #425b50;border-radius:5px;box-shadow:0 12px 35px #17221d99}
#recipe-book::backdrop{background:#17221dcc}
.recipe-heading,#recipe-book footer{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:10px 5%}
.recipe-heading{background:#425b50;color:#fff0cf}
.recipe-heading h2,.recipe-spread h3{margin:0;font:400 clamp(1rem,3vw,1.4rem) "Menu Dot",serif}
#recipe-book button{color:inherit;background:transparent;cursor:pointer;font:inherit}
.recipe-heading button{border:1px solid #b3b39a;border-radius:3px;padding:.3em .6em}
#recipe-index{display:flex;flex-wrap:wrap;padding:7px 4%;gap:4px;border-bottom:1px solid #c3ac84}
#recipe-index button{border:0;padding:.55em .65em;font-size:.85rem}
#recipe-index [aria-pressed=true]{background:#435c50;color:#fff1cc;border-radius:2px}
.recipe-spread{display:grid;grid-template-columns:2fr 3fr}
.recipe-plate,.recipe-notes{padding:clamp(16px,3vw,30px)}
.recipe-plate{text-align:center;background:linear-gradient(90deg,#f8efd9 87%,#e2cfa9);border-right:1px solid #b5a27d}
.recipe-plate img{width:100%;height:126px;object-fit:contain;image-rendering:pixelated}
.recipe-plate p,.recipe-notes li{font-size:.92rem;line-height:1.7}
.recipe-notes ol{padding-left:1.45em}.recipe-notes li+li{margin-top:.55em}
#recipe-book a{text-decoration:underline;text-underline-offset:3px;color:#35594b}
#recipe-book footer{border-top:1px solid #c3ac84;font-size:.82rem}
#recipe-book footer small{padding:2px 5px;border:2px double #995e4a;color:#995e4a;transform:rotate(-3deg)}
@media(max-width:520px){.recipe-spread{grid-template-columns:1fr}.recipe-plate{border:0;border-bottom:1px solid #c3ac84;background:#f8efd9;display:grid;grid-template-columns:82px 1fr;text-align:left;align-items:center;column-gap:12px}.recipe-plate img{grid-row:span 2;height:72px}.recipe-plate p{margin:0}.recipe-notes{padding-top:12px}#recipe-index button{padding:.5em}}
#stamp-notice{position:absolute;bottom:14%;left:2%;pointer-events:none;color:#543b2c;max-width:88%;z-index:2}
.stamp-slip{background:#fbefce;border:1px solid #ac8955;outline:1px solid #c6ac7b;outline-offset:-4px;padding:7px 12px;text-align:center;box-shadow:0 3px 8px #33261d50;transform:rotate(-2deg);animation:card-arrives .23s ease-out}
.stamp-slip small,.stamp-slip strong{display:block}.stamp-slip small{font-size:clamp(.58rem,1vw,.72rem);letter-spacing:.05em;color:#745e46}.stamp-slip strong{font-size:clamp(.85rem,1.5vw,1.05rem)}
.stamp-row{display:grid;grid-template-columns:repeat(var(--stamp-columns),1fr);gap:3px;margin:4px 0}
.stamp-row>div{position:relative;width:clamp(24px,3.8vw,37px);aspect-ratio:1;border:1px solid #d5c195;border-radius:50%}
canvas.stamp-print{background:transparent;display:block;width:100%;height:auto;image-rendering:auto}
.stamp-press canvas{animation:ink-impression .92s both}
.stamp-press::after{content:"";position:absolute;left:9%;right:9%;height:70%;top:5%;background:linear-gradient(to bottom,#a68056,#603d29 65%,#372f29 66%);clip-path:polygon(31% 0,69% 0,76% 13%,66% 36%,61% 52%,68% 64%,95% 72%,100% 85%,100% 100%,0 100%,0 85%,5% 72%,32% 64%,39% 52%,34% 36%,24% 13%);animation:stamp-down .92s both}
@keyframes card-arrives{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@keyframes stamp-down{0%,18%{opacity:0;transform:translateY(-65%) rotate(-9deg)}30%{opacity:1}52%,60%{opacity:1;transform:translateY(28%) rotate(0)}100%{opacity:0;transform:translateY(-70%) rotate(5deg)}}
@keyframes ink-impression{0%,51%{opacity:0}55%{opacity:1;transform:scale(1.07)}72%,100%{opacity:1;transform:scale(1)}}
#journal{
  box-sizing:border-box;color-scheme:light;color:#473a2d;background:#f7edd0;
  border:3px solid #536b53;border-radius:8px;padding:0;width:min(440px,94vw);
  max-height:90vh;max-height:90dvh;overflow:auto;box-shadow:0 8px 22px #20271b66;
}
#journal::backdrop{background:#151b16a3}
#journal .book-head{background:#506850}
.menu,#journal{container-type:inline-size}
@container(max-width:440px){
  .book-head>div{flex-direction:column;gap:2px}
}
#journal button{font:inherit;cursor:pointer}
.card-tally{display:flex;align-items:center;justify-content:space-between;margin:4px 5%}
.card-tally .stamp-count{margin:0}
#journal .stamp-tabs{display:flex;gap:4px;margin:0 5%;border-bottom:2px solid #556d58}
#journal .stamp-tabs button{flex:1;min-height:44px;padding:3px 2px;font-size:clamp(.72rem,3.2vw,.9rem);white-space:nowrap;background:#e6d9b8;color:#5f5642;border:1px solid #bbab83;border-bottom:0;border-radius:6px 6px 0 0}
#journal .stamp-tabs button[aria-pressed=true]{color:#fff4d9;background:#4c6353;border-color:#4c6353}
#journal .stamp-tabs button:focus-visible{outline:2px solid #c18345;outline-offset:-4px}
#journal .bonus-seal{width:34px;height:34px;padding:0;color:#68573e;background:transparent;border:1px dotted #b8a780;border-radius:50%}
#journal .bonus-seal[aria-pressed=true]{background:#e3d6b3}
.stamp-slip small:has(.notice-seal){display:flex;align-items:center;gap:4px;justify-content:center}
.notice-seal{position:relative;width:24px;height:24px}
.stamp-count{font-size:.85rem;letter-spacing:.08em;margin:12px 5% 8px;color:#5c654e}
#journal ol{display:grid;grid-template-columns:repeat(var(--stamp-columns),minmax(0,1fr));grid-auto-rows:4.55rem;border-top:1px solid #cdbd95;border-left:1px solid #cdbd95;list-style:none;margin:0 5%;padding:0}
#journal li{min-width:0;border-bottom:1px solid #cdbd95;border-right:1px solid #cdbd95}
#journal li button{width:100%;height:100%;border:0;background:transparent;color:#604836;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:clamp(.66rem,2.5vw,.78rem);line-height:1.2;padding:2px}
#journal li button span{text-wrap:balance}
#journal li button:hover,#journal li button[aria-pressed=true]{background:#e5d9b6}
#journal li button:focus-visible{outline:2px solid #476353;outline-offset:-3px}
#journal .blank-stamp::after{order:-1;content:"";width:34px;height:34px;border:1px dashed #b8a780;border-radius:50%}
#journal li canvas{width:40px;flex:none}
.card-notes{margin:10px 5% 0;padding:8px 10px;background:#eee2c3;border-left:2px solid #ab956b;block-size:6rem;overflow:auto;font-size:.86rem;line-height:1.5}
.stamp-detail strong{color:#4c6350;font-size:.81rem}.stamp-detail p,.card-confirm p{margin:3px 0}
.card-confirm button{border:1px solid #90795b;border-radius:3px;background:#f9efd6;color:#513e2f;padding:5px 7px;margin:3px 4px 0 0}
#replace-card{color:#854a3c}
#journal footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 8px;padding:4px 5% 8px;min-height:2.5rem}
#journal footer small,#journal footer button{font-size:.74rem;color:#695b48}
#journal footer button{background:none;border:0;text-decoration:underline;text-underline-offset:3px;padding:6px 0}
#journal footer button:disabled{opacity:.5;cursor:default}
@media(prefers-reduced-motion:reduce){.stamp-slip,.stamp-press canvas{animation:none}.stamp-press::after{display:none}}
.table-dish{padding:0;touch-action:manipulation;min-width:0;min-height:0}
.table-dish .resting-cup{position:absolute;inset:0;pointer-events:none}
.table-dish canvas{width:100%;height:100%;background:transparent}


.game-view canvas.playing{touch-action:none;cursor:grab}
@media(max-width:600px) and (orientation:portrait){
  .game-view canvas.mill-arena{aspect-ratio:1;height:auto;object-fit:cover}
}
@media(orientation:landscape) and (max-height:540px){
  .game-view:has(canvas.mill-arena){max-width:min(100%,calc((100dvh - 100px)*1.5));margin-inline:auto}
}
body.touch-kitchen:not(:has(dialog[open])){touch-action:pinch-zoom;user-select:none;-webkit-user-select:none}
#game-tools #step-start{min-height:44px;border-radius:4px;background:#f7e7c0}
.playfield{position:relative;min-width:0;grid-column:1/-1;grid-row:1}
#step-intro:not([hidden]){position:absolute;inset:0;display:grid;place-content:center;justify-items:center;pointer-events:none}
#intro-verb{color:#fff2cf;background:#63382e;border:3px solid #332a22;
  box-shadow:inset 0 0 0 2px #bb875c,4px 4px #332a22;
  padding:.18em .42em .22em .5em;font-size:clamp(28px,7cqw,64px);line-height:1.25;
  letter-spacing:.04em;text-shadow:2px 2px #35251f}
#step-countdown:not([hidden]){margin-top:5px;display:grid;place-items:center;width:1.7em;height:1.4em;
  color:#402c22;background:#ffe4a7;border:2px solid #50382a;box-shadow:3px 3px #392e24;
  font-size:clamp(22px,4cqw,36px);line-height:1;font-variant-numeric:tabular-nums}
.game-view:has(#step-intro:not([hidden])) #cue strong{display:none}
@media(prefers-reduced-motion:no-preference){
  #step-intro:not([hidden]) #intro-verb{animation:order-call .12s steps(2,end) both}
  @keyframes order-call{from{transform:translateY(4px) scale(.94)}to{transform:none}}
}
#start-preference:not([hidden]){display:block;padding:6px 0 17px}
.game-view canvas.playing:active{cursor:grabbing}
.game-view canvas.playing.rhythm{cursor:pointer;-webkit-tap-highlight-color:transparent}
#cue{position:absolute;left:3%;top:3%;pointer-events:none;min-width:105px;transform:rotate(-3deg);background:#f6e9c7;color:#683b2c;padding:4px 15px 8px;border:2px solid #7c5639;box-shadow:3px 3px #402b25}
#cue strong{display:block;font-size:clamp(1.2rem,3.2vw,2.8rem);line-height:1.25;font-weight:900}
#game-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#493b2c;color:#f8e7c5;padding:9px 12px}
#game-tools span{flex:1 1 145px;font-size:.86rem}
#game-tools button{font:inherit;font-size:.85rem;background:#f3dfb3;color:#453324;border:1px solid #af905e;padding:8px;cursor:pointer}
#beat-pads:not([hidden]){display:flex;gap:8px}
#game-tools #beat-pads button{min-height:46px;min-width:48px;font-size:1.28rem;border:2px solid #42615a;border-bottom-width:4px;border-radius:5px;color:#243e37;background:#e1eacf;touch-action:manipulation}
#game-tools #beat-pads button[data-dir="a"]{background:#ebb882;border-color:#886540}
#game-tools #beat-pads button[data-dir="b"]{background:#c7bbd9;border-color:#6c6079}
#game-tools #beat-pads button:active{background:#ffd38b}
@media(max-width:540px){
  #game-tools:has(#beat-pads:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) auto}
  #beat-pads:not([hidden]){grid-row:2;grid-column:1/-1;gap:clamp(2px,1vw,6px)}#game-tools #beat-pads button{flex:1;min-width:44px}
  #game-tools #ice-finish{font-size:.77rem;min-height:44px;color:#f4dfb7;background:transparent;border:0;text-decoration:underline;text-underline-offset:4px}
}
#game-pause{position:absolute;right:2%;top:2%;min-height:44px;padding:5px 10px;font:inherit;font-size:.84rem;color:#f6e6c8;background:#493d31;border:1px solid #aa9677;border-radius:5px;cursor:pointer}
#pause-menu{width:min(82vw,300px);padding:22px;color:#49382b;background:#f4e6c9;border:3px double #88714e;border-radius:7px;text-align:center}
#pause-menu::backdrop{background:#1b211ccd}
#pause-title{font-size:1.18rem;margin:0 0 17px}
#pause-menu button{font:inherit;min-height:44px;cursor:pointer}
#pause-menu form button{width:100%;color:#fff3dc;background:#3f5a4c;border:1px solid #334d40;border-radius:4px}
#game-cancel{margin-top:12px;color:#705544;background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;font-size:.88rem}
#game-tools[hidden],#cue[hidden]{display:none}
#step-count{display:block;font:400 .8rem/1.6 "Menu Dot",sans-serif;letter-spacing:.07em}
@media(max-width:540px){
  .game-view:has(canvas.playing){display:grid;grid-template-columns:minmax(0,1fr) auto;background:#f6e9c7}
  #game-pause{position:static;grid-column:2;grid-row:2;align-self:center;margin:3px 5px}
  #cue{position:static;display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;transform:none;border:0;border-top:1px solid #a78a61;box-shadow:none;padding:6px 12px}
  .game-view:has(canvas.playing) #cue{grid-column:1;grid-row:2;flex-wrap:wrap;align-content:center}
  #cue[hidden]{display:none}
  #cue strong{font-size:1.15rem}
}

/* Front-of-house opening sign, menu colophon and receipt filing. */
#cafe-entry{position:absolute;inset:0;z-index:6;display:grid;place-items:center;color:#f1dfb7;background:radial-gradient(ellipse at 50% 45%,#364b40,#202d27 78%)}
#cafe-entry[hidden],.entry-failure,.entry-error .entry-wait{display:none}
.entry-sign{width:min(76%,300px);text-align:center;padding:clamp(7px,2vw,22px) 12px;border-block:3px double #a38b62}
.entry-sign strong{display:block;font-size:clamp(1.2rem,3vw,2rem);font-weight:400;letter-spacing:.09em}
#entry-cup{margin:0 auto;width:clamp(80px,19vw,156px);height:auto;background:transparent}
.entry-sign span{font-size:clamp(.72rem,2vw,.92rem)}
.entry-version{display:block;margin-top:.45rem;color:#c8bda6;font-size:.72rem;letter-spacing:.04em}
.entry-error .entry-failure{display:block}.entry-failure a{display:inline-block;text-decoration:underline;padding:6px}
.menu-imprint{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;padding:4px 5%;color:#5a4934;background:#efe2bd;border-top:1px solid #b89b71}
.menu-imprint small{margin-left:auto;font-size:.72rem}
.menu-guide{flex-basis:100%;min-width:0;border-top:1px solid #cbb68d;font-size:.86rem;line-height:1.65}
.menu-guide summary{width:fit-content;max-width:100%;padding:10px 0;cursor:pointer;color:#4a4939}
.menu-guide p{max-width:42em;margin:0 0 .8em}
.house-music{display:flex;align-items:center;flex-wrap:wrap;gap:0 10px}
#music-switch{background:transparent;color:#4a5543;border:0;min-height:44px;padding:0 5px;font:inherit;cursor:pointer}
#music-switch[aria-pressed=true]{color:#2d594a}#music-volume-label{font-size:.8rem}
#music-volume{width:68px;vertical-align:middle;accent-color:#50684e}
#music-message:not(:empty){font-size:.8rem}
.receipt-filing{border-top:1px dashed #b39b72;margin-top:12px;padding-top:8px}
.receipt-filing:has(#discard-receipts[hidden]):has(#receipt-confirm[hidden]):has(#receipt-status:empty){display:none}
#receipts #discard-receipts{background:transparent;border:0;text-decoration:underline;color:#695742}
#receipt-confirm p,#receipt-status{font-size:.86rem}#receipt-status:empty{display:none}

/* Room objects open into the free table space on a tall phone. */
html.guest-dock :is(#order-menu,#journal,#receipts,#recipe-book,#dish-focus)[open]{
  position:fixed;inset:var(--panel-top) auto auto var(--panel-left);margin:0;
  width:var(--panel-width);max-width:none;min-height:0;
  max-height:calc(var(--panel-room) - max(10px,env(safe-area-inset-bottom)));
  overflow:auto;overscroll-behavior:contain;scroll-padding-block:3.8rem 12px;
}
html.guest-dock :is(#order-menu,#journal,#receipts,#recipe-book,#dish-focus)::backdrop{background:transparent}
html.guest-dock :is(#order-menu,#journal) .book-head,
html.guest-dock #recipe-book .recipe-heading{position:sticky;z-index:2;top:0}
html.guest-dock #counter-replies{position:static;transform:none;width:100%;border-radius:0}
html.guest-dock #focus-art{max-height:28dvh;object-fit:contain}
html.guest-dock .menu-close{min-height:44px}
html.guest-dock .menu-item img{height:clamp(48px,calc(var(--panel-room) * .13),82px);margin:1px 0 3px}
html.guest-dock .menu-item{padding-block:5px}
html.guest-dock .menu-item small{margin-block:2px}

/* Make room on the illustration itself for the seasonal bookmark. */
.menu-note{writing-mode:horizontal-tb;top:4px;left:2px;padding:3px 4px;letter-spacing:0;background:#f8edd1}
#room-objects [data-room=glass]{padding:0;height:7.5%;top:58.45%}
@media (pointer:coarse){
  #room-objects [data-room=menu]{min-height:44px;bottom:2%;top:auto}
  #room-objects [data-room=book]{min-width:44px;min-height:44px;bottom:2%;top:auto;left:2.5%;width:14%}
  #room-objects [data-room=receipts]{min-height:44px;min-width:44px;bottom:0;top:auto;left:18%}
}
