/* Illustrated accents preserve live text and native touch targets. */
.loading-screen{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 50% 30%,#fff5df,#e0e9d9 70%);overflow:auto}
.loading-card{width:min(380px,100%);position:relative;padding:94px 26px 28px;text-align:center;border:2px solid #fffdf2;border-radius:28px;background:#fff9e9;box-shadow:0 24px 80px #46684625,0 5px 16px #9e784817}
.loading-awning{position:absolute;width:calc(100% + 16px);left:-8px;top:-4px;height:86px;object-fit:contain;filter:drop-shadow(0 5px 6px #9c6d3720)}
.loading-kicker{font-size:14px;color:#64816b;letter-spacing:2px}.loading-card h1{font-size:38px;line-height:1.2;color:#285c47;margin:12px 0}.loading-tagline{font-size:15px;color:#7e674b;margin:0}.loading-illustration{height:140px;width:210px;object-fit:contain;margin:14px auto;display:block}
.loading-meter-heading{display:flex;justify-content:space-between;align-items:center;font-size:16px;color:#375d48;margin:6px 0 10px}.loading-meter-heading strong{color:#b27132;font-variant-numeric:tabular-nums}.loading-progress{height:18px;border:1px solid #dec99d;border-radius:20px;background:#eae4cd;padding:3px;box-shadow:inset 0 2px 4px #9d87551c}.loading-progress i{display:block;height:100%;width:0;border-radius:16px;background:linear-gradient(90deg,#8bbf9b,#4c9579);transition:width .15s linear}.loading-status{min-height:40px;font-size:14px;line-height:1.5;margin:12px 0;color:#746043}.loading-card>small{font-size:12px;color:#7b8064}.loading-card .primary-button{margin:8px 0 16px;min-height:48px;font-size:18px}.is-loading .desktop-note{visibility:hidden}
.result-medal{display:block;margin:2px auto 4px;width:60px;height:65px;object-fit:contain;filter:drop-shadow(0 4px 7px #a06a2525)}.result-hope strong{font-size:16px;color:#3d7359;display:inline-block;margin-bottom:7px;line-height:1.5}
.modal-header:before{content:"";position:absolute;right:4px;bottom:0;width:80px;height:58px;background:url('../assets/ui-corner@2x.webp') center/contain no-repeat;opacity:.12;pointer-events:none}.modal-header>*{position:relative}
.game-shell:not(.is-playing) .workbench{background-image:url('../assets/ui-corner@2x.webp');background-size:95px auto;background-position:right 12px top 4px;background-repeat:no-repeat}.game-shell:not(.is-playing) .bench-top .section-note{visibility:hidden}
.customer.has-reaction{opacity:1}.customer-reaction{position:absolute;bottom:72%;left:50%;transform:translateX(-50%);width:100%;padding:9px 5px;border:1.5px solid #b2c79b;border-radius:13px;background:#fffae8;color:#386347;font-size:14px;font-weight:700;line-height:1.4;box-shadow:0 6px 20px #47775524;z-index:5;pointer-events:none}.customer-reaction:after{content:"♥";color:#d88f61;display:block;font-size:13px;margin-top:2px}.customer.has-reaction .empty-slot{display:none}.large-text .customer-reaction{font-size:16px}
@media(max-height:700px){.customer-reaction{bottom:65%;font-size:13px;padding:5px 3px}.large-text .customer-reaction{font-size:14px}.customer-reaction:after{display:none}.game-shell:not(.is-playing) .workbench{background-size:68px auto}.loading-card{padding-top:70px;padding-bottom:18px}.loading-awning{height:65px}.loading-illustration{height:100px;margin:8px auto}.loading-card h1{font-size:32px}.result-medal{height:48px;width:44px}}
@media(prefers-reduced-motion:reduce){.loading-progress i{transition:none}}

/* Normalize people by silhouette width, not full-body height. The counter masks legs. */
.is-playing .street-sign{display:none}
.is-playing .customer-row{inset:12px 15px 0}
.is-playing .customer img.person{top:67px;bottom:auto;width:94%;height:auto;max-height:none;object-fit:contain;object-position:top center}
.is-playing .customer-status{display:none}.is-playing .customer.ready .customer-status{display:block}
.is-playing .customer-reaction{top:0;bottom:auto}
.game-shell:not(.is-playing) .customer img.person{width:100%;height:auto;max-height:none;bottom:-20px}
@media(max-height:800px) and (min-height:701px){.is-playing .stall{height:84px;object-fit:cover;object-position:top;bottom:-20px}.is-playing .customer img.person{top:58px;width:90%}}
@media(max-height:700px){.is-playing .heat-row{display:none}.is-playing .customer-row{top:10px;bottom:0}.is-playing .customer img.person{top:49px;width:87%}.is-playing .stall{height:76px;bottom:-27px}.game-shell:not(.is-playing) .customer img.person{bottom:-32px}}
@media(max-height:600px){.is-playing .customer img.person{top:45px;width:82%}.is-playing .stall{height:66px;bottom:-30px}.game-shell:not(.is-playing) .customer img.person{bottom:-39px}}

/* Lemon pounding has its own vertical tool motion. Milk tea keeps the shake motion. */
.lemon-prep{display:none;position:absolute;left:68%;bottom:calc(12cqw - 8px);width:17%;height:31cqw;transform:translateX(-50%);z-index:8;pointer-events:none}
.lemon-prep .lemon-cup{position:absolute;bottom:0;left:0;width:100%;height:auto;z-index:2}
.lemon-prep .lemon-muddler{position:absolute;width:28%;height:auto;bottom:7cqw;left:36%;z-index:1;transform:translateY(-10px)}
.game-shell[data-dish="lemonade"][data-process="tap"] .lemon-prep{display:block}
.game-shell[data-dish="lemonade"][data-process="tap"] .grill-food{visibility:hidden;animation:none!important}
.game-shell[data-dish="lemonade"][data-process="tap"] .drink-bubble,.game-shell[data-dish="lemonade"][data-process="tap"] .drink-spark{display:none}
.game-shell[data-dish="lemonade"].pound-hit .lemon-muddler{animation:pound-lemon .26s ease-out}
.lemon-impact{position:absolute;bottom:3cqw;left:20%;width:60%;height:18%;border:2px solid #e7c849;border-radius:50%;opacity:0;z-index:3}
.game-shell[data-dish="lemonade"].pound-hit .lemon-impact{animation:lemon-impact .26s ease-out}
@keyframes pound-lemon{0%{transform:translateY(-12px)}42%{transform:translateY(6px)}100%{transform:translateY(-10px)}}
@keyframes lemon-impact{0%{opacity:0;transform:scale(.5)}42%{opacity:.85}100%{opacity:0;transform:scale(1.2)}}
@media(max-height:700px){.lemon-prep{bottom:21px;width:16%}.lemon-prep .lemon-muddler{bottom:7cqw}}
@media(max-height:600px){.lemon-prep{bottom:19px}}
.reduced-motion .lemon-muddler,.reduced-motion .lemon-impact{animation:none!important}
.lemon-prep .lemon-muddler{z-index:3}.lemon-impact{z-index:4}
.game-shell[data-dish="lemonade"].pound-hit .lemon-muddler,.game-shell[data-dish="lemonade"].pound-hit .lemon-impact{animation-duration:.18s}
.game-shell:not(.is-playing) .workbench{background-color:#fff8e6}
@media(max-height:800px) and (min-height:701px){.is-playing .grill-food{bottom:16px}.game-shell[data-category="drink"] .grill-food{bottom:10px}.lemon-prep{bottom:10px}}
@media(max-height:700px){.is-playing .grill-food{bottom:11px}.game-shell[data-category="drink"] .grill-food,.lemon-prep{bottom:5px}}
@media(max-height:600px){.is-playing .grill-food{bottom:0}.game-shell[data-category="drink"] .grill-food,.lemon-prep{bottom:0}}

/* Production usability review: comfortable controls and an explicit way back. */
.top-actions{gap:4px;flex-shrink:0}.topbar .icon-button{width:44px;height:44px;flex-shrink:0}.topbar .icon-button svg{width:20px;height:20px}.topbar .district{min-width:0;line-height:1.35}
.arcade-link{display:flex;align-items:center;justify-content:center;min-height:44px;margin:8px 0 12px;padding:8px 12px;border:1px solid #a6b998;border-radius:12px;background:#edf3e2;color:#375d48;font-size:15px;font-weight:700;text-decoration:none;text-align:center;touch-action:manipulation}.arcade-link:focus-visible{outline:3px solid #8a542b;outline-offset:3px}
.topbar{min-height:52px;padding-top:4px;padding-bottom:4px}

.account-dialog { width:min(440px,92vw); max-height:85dvh; overflow:auto; border:2px solid #d7c69a; border-radius:24px; background:#fff9e9; color:#345c45; padding:24px; box-shadow:0 20px 80px #29493844; font-size:17px; }
.account-dialog::backdrop { background:#20382e99; }
.account-dialog p { line-height:1.6; font-size:16px; }
.account-dialog button { min-height:48px; border:1px solid #b7c69e; border-radius:12px; padding:10px 14px; background:#e7efd6; color:#345c45; font:inherit; cursor:pointer; }
.account-dialog .account-close { float:right; font-size:24px; }
.account-actions { display:flex; gap:8px; flex-wrap:wrap; }
.account-body label { display:block; margin:14px 0; }
.account-body input { display:block; box-sizing:border-box; width:100%; min-height:48px; margin-top:7px; padding:10px; font-size:16px; border:1px solid #aebf9c; border-radius:10px; background:#fff; color:#284b37; }
.account-body form button { width:100%; background:#ffd09a; }
.account-status { color:#85501f; min-height:24px; }
.ranking-list { list-style:none; padding:0; }
.ranking-list li { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #ded7bd; }
.account-dialog button:focus-visible,.account-dialog input:focus-visible { outline:3px solid #487b62; outline-offset:3px; }
@media(max-width:380px) {
  .account-dialog { padding:18px; }
  .account-dialog h2 { font-size:24px; margin:12px 0; }
  .account-dialog p { margin:10px 0; }
  .account-actions { flex-wrap:nowrap; gap:5px; }
  .account-actions button { padding:8px; font-size:15px; flex:1; white-space:nowrap; }
}

/* Keep single- and multi-line notices centered; legacy line clamping broke flex alignment. */
.toast{display:flex;align-items:center;justify-content:center;text-align:center;-webkit-line-clamp:unset;-webkit-box-orient:initial;min-height:44px;max-height:none;padding:4px 10px;line-height:18px}
.large-text .toast{line-height:18px}

/* Visible account entry points occupy the lobby scene's existing sign lane. */
.account-entry{position:absolute;top:6px;left:14px;right:14px;display:flex;gap:8px;z-index:12}
.account-entry button{flex:1;min-width:0;min-height:44px;padding:7px 8px;border:1.5px solid #9db68c;border-radius:12px;background:#fff9eaf5;color:#315c42;box-shadow:0 5px 15px #41613c20;font-size:15px;font-weight:750}
.account-entry button:first-child{background:#e8f0d8}.account-entry button:last-child{background:#fff0cd;border-color:#c7a161;color:#75501f}
.is-playing .account-entry{display:none}.game-shell:not(.is-playing) .street-sign{display:none}

.game-shell:not(.is-playing) .scene-caption{top:56px;left:14px;right:14px;transform:none;white-space:normal;text-align:center;font-size:12px;line-height:18px;padding:5px 8px;background:#fff9e5ed;z-index:12}
