/* Isolated rest-screen layout: global game headers/footers must not turn it into a row. */
#lunchBreak[hidden]{display:none!important}
#lunchBreak{position:fixed;inset:0;z-index:80;display:block;pointer-events:none;color:#88685f;font-family:Nunito,sans-serif}
#lunchBreak .lunch-brand{position:absolute;top:max(22px,env(safe-area-inset-top));left:max(24px,env(safe-area-inset-left));width:190px;height:auto;margin:0;filter:drop-shadow(0 2px 5px #fff8e4bb)}
#lunchBreak .lunch-copy{position:absolute;right:4vw;top:50%;width:clamp(280px,31vw,400px);max-height:calc(100dvh - 125px);overflow:auto;transform:translateY(-45%);text-align:center;pointer-events:auto;padding:9px 5px 14px}
#lunchBreak .lunch-heading{display:block;width:auto;max-width:none;margin:0 0 18px;padding:0;border:0;background:none;box-shadow:none}
#lunchBreak .lunch-heading p{font:700 14px/1.5 Nunito,sans-serif;letter-spacing:.035em;margin:0 0 6px;color:#7f655d}
#lunchBreak .lunch-heading h1{font:800 clamp(25px,2.8vw,36px)/1.2 Nunito,sans-serif;color:#a46c7e;margin:0;letter-spacing:.02em}
#lunchBreak .lunch-note{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:9px;width:100%;max-width:none;margin:0;padding:20px 24px 15px;background:#fff7e8 url('paper-fibres.svg') repeat;border:1px solid #dcc2ac;box-shadow:0 5px 0 #ddc5ae50,0 12px 35px #503c4320;border-radius:34% 4% 5% 5% / 5% 6% 5% 5%;box-sizing:border-box}
#lunchBreak .lunch-note:before{content:'';position:absolute;top:-7px;left:30px;width:68px;height:18px;background:repeating-linear-gradient(90deg,#edacb680 0 5px,#ffdfdf90 5px 10px);transform:rotate(-9deg)}
#lunchBreak .lunch-note p{font:700 16px/1.5 Nunito,sans-serif;color:#88685f;margin:0;width:100%}
#lunchBreak #lunchStatus{display:block;font:700 13px/1.4 Nunito,sans-serif;color:#8a756c;min-height:18px}
#lunchBreak .lunch-note button{display:block;width:100%;font:800 17px/1.4 Nunito,sans-serif;white-space:normal;letter-spacing:.025em;padding:11px 16px;min-height:46px;border:2px solid #bb8a96;background:#efc2cd;color:#805762;border-radius:25px 20px 25px 18px;box-shadow:inset 0 0 0 3px #fff5ef9c,0 3px 0 #d2a5af;cursor:pointer;margin:2px 0 0}
#lunchBreak .lunch-note button:disabled{opacity:.65;cursor:wait}#lunchBreak .lunch-note button:focus-visible{outline:3px solid #7c9b80;outline-offset:4px}
#lunchBreak #lunchReceipt{font-size:13px;margin:0;padding:5px 12px;min-height:32px;background:transparent;border:0;box-shadow:none;color:#8a7165;text-decoration:underline;text-underline-offset:4px}
body:is([data-shift="break"],[data-shift="closed"]) #sceneWrap{position:fixed;inset:0;width:100vw!important;height:100dvh!important;border:0!important;border-radius:0!important}
body:is([data-shift="break"],[data-shift="closed"]) #sceneWrap>:not(#world){visibility:hidden!important}
body[data-shift="closed"] #lunchBreak .lunch-heading p{color:#f3e5d5}body[data-shift="closed"] #lunchBreak .lunch-heading h1{color:#ffd7e0}
body[data-shift="night"] .game-topbar .brand{filter:drop-shadow(0 1px 5px #fff0d899)}
@media(max-aspect-ratio:5/4){#lunchBreak .lunch-brand{width:155px;top:max(16px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left))}#lunchBreak .lunch-copy{top:auto;bottom:max(12px,env(safe-area-inset-bottom));right:auto;left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 28px));max-height:42dvh;padding:8px 4px 6px}#lunchBreak .lunch-heading{margin-bottom:12px}#lunchBreak .lunch-heading p{display:none}#lunchBreak .lunch-heading h1{font-size:25px}#lunchBreak .lunch-note{padding:16px 20px 10px;gap:6px}#lunchBreak .lunch-note p{font-size:14px}#lunchBreak .lunch-note button{font-size:16px}}
@media(max-height:580px) and (min-aspect-ratio:5/4){#lunchBreak .lunch-brand{width:145px;top:12px;left:16px}#lunchBreak .lunch-copy{width:260px;right:18px;max-height:calc(100dvh - 40px);transform:translateY(-50%)}#lunchBreak .lunch-heading{margin-bottom:12px}#lunchBreak .lunch-heading p{display:none}#lunchBreak .lunch-heading h1{font-size:25px}#lunchBreak .lunch-note{padding:15px 18px 10px;gap:6px}#lunchBreak .lunch-note p{font-size:14px}#lunchBreak .lunch-note button{font-size:16px}}
.portrait-student{background-image:url('ui/night/student.webp')!important}.portrait-owl{background-image:url('ui/night/owl.webp')!important}.portrait-black-cat{background-image:url('ui/night/black-cat.webp')!important}.portrait-raccoon{background-image:url('ui/night/raccoon.webp')!important}.portrait-bull{background-image:url('ui/night/bull.webp')!important}.portrait-fox{background-image:url('ui/night/fox.webp')!important}
.customer-portrait:is(.portrait-student,.portrait-owl,.portrait-black-cat,.portrait-raccoon,.portrait-bull,.portrait-fox){background-size:var(--night-portrait-size,105%) auto!important;background-position:50% var(--night-portrait-y,-10%)!important;background-color:#fff5e8;border-radius:50%}
.portrait-student{--night-portrait-size:175%;--night-portrait-y:-4%}.portrait-owl{--night-portrait-size:130%;--night-portrait-y:-20%}.portrait-black-cat{--night-portrait-size:130%;--night-portrait-y:-25%}

/* A small taped reminder: the clock stays proportional, the count stays live. */
#sceneWrap #orderCard.folded{overflow:visible}
#gameShell #shiftCountdown{position:relative;display:flex;align-items:center;gap:9px;width:max-content;max-width:100%;margin:14px 0 4px;padding:5px 14px 5px 7px;color:#876761;background:#fff8e9 url('paper-fibres.svg') repeat;border:1px solid #dcc3ab;border-radius:5% 8% 5% 9% / 13% 9% 14% 10%;box-shadow:1px 3px 0 #b7997f26;transform:rotate(-1deg);pointer-events:none;z-index:2}
#shiftCountdown:before{content:'';position:absolute;top:-6px;left:39%;width:36px;height:12px;background:repeating-linear-gradient(90deg,#efb9c180 0 4px,#ffdfdf99 4px 8px);transform:rotate(5deg)}
#shiftCountdown img{display:block;width:48px;height:48px;object-fit:contain;flex:none}
#shiftCountdown .shift-countdown-copy{display:flex;flex-direction:column;gap:1px;text-align:left;white-space:nowrap}
#gameShell #shiftCountdown strong{font-size:var(--type-body)!important;font-weight:800;line-height:1.3;font-variant-numeric:tabular-nums}
#gameShell #shiftCountdown .shift-countdown-copy>span{font-size:var(--type-note)!important;line-height:1.4}
#sceneWrap #orderCard.folded #shiftCountdown{position:absolute;top:calc(100% + 11px);left:14px;margin:0}
#gameShell #shiftCountdown[data-near="true"]{color:#647e5c;border-color:#a5b497}
html[data-cafe-theme="halloween"] #shiftCountdown:before{background:repeating-linear-gradient(90deg,#edbb8580 0 4px,#ffdfba99 4px 8px)}
@media(max-width:1200px){#shiftCountdown img{width:38px;height:38px}#gameShell #shiftCountdown{gap:6px;padding:4px 10px 4px 5px}#sceneWrap #orderCard.folded #shiftCountdown{left:8px;top:calc(100% + 8px)}}
@media(prefers-reduced-motion:reduce){#gameShell #shiftCountdown{transform:none}}

#lunchBreak #breakShop{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px}#lunchBreak #breakShop[hidden]{display:none}#breakShop svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Keep the heading and primary action at the top; secondary content unfolds in place. */
#lunchBreak .lunch-copy{box-sizing:border-box;padding:24px;background:#fff7e8 url('paper-fibres.svg');border:1px solid #dcc2ac;border-radius:22px;box-shadow:0 8px 30px #503c4320;scrollbar-width:thin;scrollbar-color:#c99da488 transparent;overscroll-behavior:contain;scroll-padding:20px}
#lunchBreak .lunch-copy::-webkit-scrollbar{width:5px}
#lunchBreak .lunch-copy::-webkit-scrollbar-thumb{background:#c99da488;border-radius:20px}
#lunchBreak .lunch-note{padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:10px}
#lunchBreak .lunch-note:before{display:none}
#lunchBreak .break-secondary{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#lunchBreak .break-secondary button{font-size:14px;padding:8px;min-height:44px;background:#fae8e6;box-shadow:none;border-width:1px}
#lunchBreak .boba-support{margin:2px 0 0;padding:10px 0 0;border-top:1px dashed #d8b9a5}
#lunchBreak .boba-support summary{cursor:pointer;font:700 13px/1.5 Nunito,sans-serif;color:#88685f;min-height:30px;align-content:center}
#lunchBreak .boba-support p{font-size:13px;line-height:1.6;margin:10px 0}
#lunchBreak .boba-support-link{font-size:14px;padding:8px 16px}
#lunchBreak #lunchTitle:focus{outline:none}
#lunchBreak summary:focus-visible{outline:3px solid #7c9b80;outline-offset:2px}
body[data-shift="closed"] #lunchBreak .lunch-heading p{color:#7f655d}
body[data-shift="closed"] #lunchBreak .lunch-heading h1{color:#a46c7e}
body:is([data-shift="night"],[data-shift="closed"]) .game-topbar .brand,body[data-shift="closed"] #lunchBreak .lunch-brand{filter:drop-shadow(0 2px 3px #211d35aa)}
@media(max-aspect-ratio:5/4){#lunchBreak .lunch-copy{padding:16px 20px;max-height:46dvh}#lunchBreak .lunch-note{padding:0;gap:6px}#lunchBreak #breakNote{display:none}#lunchBreak .lunch-heading{margin-bottom:8px}}
@media(max-height:580px) and (min-aspect-ratio:5/4){#lunchBreak .lunch-copy{padding:16px}#lunchBreak .lunch-note{padding:0}#lunchBreak #breakNote{display:none}}
