/* v7: portrait city lobby and entry flow. Existing kitchen geometry stays intact. */
.stage.city-lobby,.stage.title-screen{
 --safe-top:16px;--safe-bottom:20px;--safe-left:20px;--safe-right:20px;
 padding:0;overflow:hidden;background:#f4c980;
}
.stage.portrait-layout.city-lobby,.stage.portrait-layout.title-screen{
 --safe-top:calc(env(safe-area-inset-top,0px) + var(--edge-top));
 --safe-bottom:calc(env(safe-area-inset-bottom,0px) + var(--edge-bottom));
 --safe-left:calc(env(safe-area-inset-left,0px) + var(--edge-inline));
 --safe-right:calc(env(safe-area-inset-right,0px) + var(--edge-inline));
}
.stage.city-lobby{background:linear-gradient(#f6ca7b,#e9af58 45%,#e4ae63 78%,#c67c35);}
.stage .lobby-hud,.stage .lobby-footer{position:absolute;left:var(--safe-left);right:var(--safe-right);max-width:520px;margin-inline:auto;z-index:8;}
.stage .lobby-hud{top:var(--safe-top);height:166px;display:grid;grid-template-rows:48px 64px 46px;gap:4px;}
.lobby-currencies{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;align-items:center;gap:10px;}
.stage.city-lobby .lobby-currency{height:36px;border:2px solid #fff4c1;background:var(--candy-cream);box-shadow:0 3px 0 #995026,inset 0 2px 1px white;border-radius:22px;display:flex;align-items:center;gap:4px;color:#653615;min-width:0;padding-right:8px;}
.lobby-currency>svg{flex-shrink:0;margin-left:-4px;width:42px;height:42px;filter:drop-shadow(0 2px 1px #7e3d2633);}
.lobby-currency>b{font-size:21px;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;}
.stage .lobby-round{position:relative;display:grid;place-items:center;min-width:48px;min-height:48px;width:48px;height:48px;padding:3px;border-radius:50%;border:2px solid #fff6c9;background:var(--candy-orange);box-shadow:inset 0 2px 1px #fff5bf,0 3px 0 #974a23,0 4px 8px #73411b55;color:#fffaf0;}
.stage .lobby-round>svg{width:34px;height:34px;}
.stage .lobby-settings>svg{width:44px;height:44px;}
.stage .city-profile{display:flex;align-items:center;gap:8px;min-height:64px;border:2px solid #ffdb78;border-radius:20px;background:var(--candy-orange);padding:4px 10px 4px 4px;box-shadow:inset 0 2px 0 #ffeab6,0 3px 0 #a95322;text-align:left;color:#54290f;}
.profile-cat{width:52px;height:52px;border:2px solid #fff7cb;border-radius:50%;background:var(--candy-cream);overflow:hidden;flex-shrink:0;}
.profile-cat>svg{width:52px;height:52px;}
.profile-copy{flex:1;display:grid;grid-template-columns:1fr auto;gap:2px 6px;min-width:0;align-items:center;}
.profile-copy>b{font-size:18px;grid-column:1/-1;line-height:1.25;white-space:nowrap;}
.stage .profile-copy>small{font-size:14px;line-height:18px;color:#4e240d;white-space:nowrap;}
.city-progress{display:block;border:2px solid #974b28;background:#673617;height:13px;overflow:hidden;border-radius:9px;box-shadow:inset 0 2px 3px #47290d66;}
.city-progress>i{height:100%;display:block;background:var(--candy-lime);border-radius:6px;}
.profile-star{display:flex;flex-direction:column;align-items:center;line-height:1;font-size:14px;}
.profile-star>svg{width:30px;height:30px;}
.stage .city-chapters{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.stage .city-chapters>button{min-height:46px;display:flex;align-items:center;justify-content:center;gap:6px;padding:3px 5px;background:var(--candy-cream);border:2px solid #ffd97b;border-radius:15px;box-shadow:0 3px 0 #ae6e36;font-size:16px;color:#663b20;}
.stage .city-chapters>button.selected{background:var(--candy-blue);color:white;border-color:#e4f8ff;text-shadow:0 1px 2px #074560;}
.stage .city-chapters small{color:inherit;font-size:14px;}
.stage .city-scroll{position:absolute;top:calc(var(--safe-top) + 178px);bottom:calc(var(--safe-bottom) + 142px);left:var(--safe-left);right:var(--safe-right);width:auto;max-width:520px;margin-inline:auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;border-radius:20px;border:2px solid #f7d994;box-shadow:0 3px 16px #5e371b44;scrollbar-width:thin;scrollbar-color:#b78440 #eed8a3;}
.stage.has-modal .city-scroll{overflow-y:hidden;}
.city-world{position:relative;width:100%;isolation:isolate;min-width:0;}
.city-ground{position:absolute;inset:0;background:#f1ce8c url('./public/art/city-ground-v7.png') top center/100% auto repeat-y;z-index:-2;pointer-events:none;}
.city-route{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:-1;}
.city-route path{fill:none;stroke-linecap:round;stroke-linejoin:round;}
.city-route .route-shadow{stroke:#b27b3f;stroke-width:35;opacity:.6;transform:translateY(4px);}
.city-route .route-stone{stroke:#fff4cb;stroke-width:30;}
.city-route .route-dashes{stroke:#daa55e;stroke-width:3;stroke-dasharray:2 9;}
.stage .city-node.map-node{position:absolute;left:var(--node-x);top:var(--node-y);transform:translate(-50%,-50%);width:66px;height:66px;min-width:66px;min-height:66px;display:grid;place-items:center;padding:0;border-radius:50%;border:3px solid #fff7d7;background:var(--candy-gold);box-shadow:inset 0 3px 1px #fffcd5,inset 0 -5px 0 #da8b11,0 5px 0 #946323,0 7px 7px #8f60395c;z-index:3;opacity:1;filter:none;}
.stage .city-node.map-node.available{background:var(--candy-blue);box-shadow:inset 0 3px 1px #d9ffff,inset 0 -5px 0 #13719f,0 5px 0 #345765,0 7px 7px #8f60395c;}
.stage .city-node.map-node.locked{background:linear-gradient(#e6d9c5,#c2ad95);border-color:#fff0d2;box-shadow:inset 0 3px 1px #f4eadb,inset 0 -4px 0 #a38c76,0 5px 0 #8f775e;opacity:1;filter:none;}
.city-node-number{font-size:28px;font-weight:900;color:#fffaf0;text-shadow:0 2px 0 #654021;-webkit-text-stroke:2px #654021;paint-order:stroke fill;line-height:1;}
.locked .city-node-number{color:#4c3627;text-shadow:none;-webkit-text-stroke:0;}
.city-node-mark{position:absolute;left:21px;bottom:-13px;width:24px;height:24px;filter:drop-shadow(0 2px 0 #805727);}
.available .city-node-mark{color:white;background:#1684ae;border:1px solid #daf9ff;border-radius:50%;padding:4px;}
.available .city-node-mark>svg{width:14px;height:14px;}
.current-pointer{position:absolute;top:-34px;color:#eb491c;font-size:30px;text-shadow:0 2px 0 #fff7d4;animation:current-bob 1.3s ease-in-out infinite;}
.stage .city-node.current{outline:4px solid #fffccc;outline-offset:3px;}
.stage .city-building{position:absolute;left:var(--building-x);top:var(--building-y);transform:translate(-50%,-50%);width:47%;max-width:235px;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;padding:0;border:0;background:none;box-shadow:none;color:#62391e;z-index:2;touch-action:pan-y;}
.city-building>.building-art{width:100%;height:auto;aspect-ratio:1;}
.stage .building-plaque{width:100%;max-width:180px;padding:3px 4px 1px;border-radius:12px;background:var(--candy-cream);border:2px solid #d69235;box-shadow:0 3px 0 #926331;margin-top:-6px;display:grid;justify-items:center;line-height:1.3;}
.building-plaque>b{font-size:14px;white-space:nowrap;}
.building-stars{display:flex;gap:1px;height:22px;}
.building-stars i{filter:grayscale(1);opacity:.48;}
.building-stars i.lit{filter:none;opacity:1;}
.tier-0 .building-plaque{background:#e5d5bb;}
.city-destination{position:absolute;top:30px;left:15%;right:15%;display:flex;flex-direction:column;align-items:center;padding:12px 6px;background:var(--candy-orange);border:2px solid #fff0a8;border-radius:20px;box-shadow:0 4px 0 #986331;color:#573018;line-height:1.5;text-align:center;font-size:18px;}
.city-welcome{position:absolute;bottom:15px;left:12px;right:12px;text-align:center;color:#58331e;font-size:16px;font-weight:800;}
.stage .lobby-side{position:absolute;top:calc(var(--safe-top) + 194px);left:calc(50% + min(260px, (100% - var(--safe-left) - var(--safe-right))/2) - 58px);z-index:5;}
.stage .treasure-shortcut{width:50px;height:50px;background:var(--candy-cream);}
.stage .treasure-shortcut>svg{width:44px;height:44px;}
.small-badge{position:absolute;bottom:-14px;display:flex;align-items:center;justify-content:center;min-width:40px;height:23px;padding:0 4px;border:1px solid #fff4d5;border-radius:11px;background:#7e451e;color:#fff7dc;font-size:14px;gap:2px;}
.stage .lobby-footer{bottom:var(--safe-bottom);height:132px;display:grid;grid-template-rows:56px 68px;gap:8px;}
.lobby-play-row{display:grid;grid-template-columns:minmax(0,1fr) 52px;gap:10px;align-items:center;}
.stage .lobby-play{width:100%;min-height:56px;font-size:24px;padding:6px 12px;gap:10px;}
.stage .lobby-play>small{font-size:16px;color:#fffdf0;letter-spacing:1px;}
.stage .locate-button{background:var(--candy-blue);box-shadow:inset 0 2px 1px white,0 3px 0 #23688d;}
.stage .lobby-nav{height:68px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:2px 4px;background:var(--candy-orange);border:2px solid #fff0c4;border-radius:20px;box-shadow:inset 0 2px 0 #ffeab1,0 4px 0 #9e5227;gap:4px;}
.stage .lobby-nav>button{position:relative;min-height:60px;min-width:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:1px solid transparent;border-radius:14px;color:#61331c;padding:0;font-size:14px;background:none;}
.stage .lobby-nav>button.selected{background:var(--candy-cream);border-color:#fff8d6;box-shadow:inset 0 -3px 0 #e4b469;}
.lobby-nav svg{width:34px;height:34px;}
.lobby-nav span{line-height:20px;}
.nav-badge{position:absolute;top:1px;right:4px;min-width:20px;height:20px;border:1px solid #fff3d0;background:#d92a35;border-radius:10px;color:white;font-size:13px;font-style:normal;}
/* Entry screen */
.title-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;}
.title-shade{position:absolute;inset:0;background:linear-gradient(#7a351511,transparent 45%,#43220b00 62%,#3b170dcc);}
.stage .title-language{position:absolute;top:var(--safe-top);right:var(--safe-right);z-index:5;width:64px;height:64px;display:flex;flex-direction:column;gap:0;}
.title-language span{font-size:13px;line-height:14px;}
.stage .title-language>svg{height:28px;width:28px;}
.title-brand{position:absolute;top:calc(var(--safe-top) + 62px);left:var(--safe-left);right:var(--safe-right);display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 6px 0 #9a3e1d);}
.stage .title-logo{font-size:clamp(42px,13vw,68px);line-height:1.15;font-weight:1000;letter-spacing:-2px;color:#fff2a3;text-shadow:0 3px 0 #f3a021;-webkit-text-stroke:5px #bb571c;paint-order:stroke fill;transform:rotate(-4deg);margin:0;}
.title-ribbon{margin-top:7px;background:var(--candy-red);border:2px solid #ffd46e;border-radius:12px;padding:5px 22px;font-size:18px;color:#fff2c0;font-weight:900;text-shadow:0 2px 0 #842e18;}
.title-actions{position:absolute;bottom:var(--safe-bottom);left:var(--safe-left);right:var(--safe-right);max-width:360px;margin-inline:auto;display:flex;flex-direction:column;align-items:center;gap:8px;}
.stage .title-play{width:100%;min-height:64px;font-size:26px;letter-spacing:1px;border-radius:23px;}
.title-play svg{width:28px;height:28px;}
.stage .title-save-note{margin:0;color:#fff9e7;font-size:14px;line-height:1.5;text-shadow:0 1px 3px #38170b;}
.title-links{display:flex;justify-content:center;gap:16px;width:100%;}
.stage .title-links a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;color:#fff7e3;font-size:14px;text-decoration:underline;text-underline-offset:4px;padding:4px;text-shadow:0 1px 3px #38170b;}
.language-choice{width:100%;min-height:64px;display:flex;justify-content:space-between;align-items:center;padding:12px 18px;border:2px solid #cf9137;border-radius:16px;background:#fff5df;color:#5a351b;font-size:18px;}
.language-choice>svg{color:#438500;}
/* Truthful file loading overlay; cached navigation only fades the destination. */
.transition-overlay{position:absolute;inset:0;z-index:90;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 39%,#ffdf55,#ffb321 47%,#e3671b 100%);color:#693516;}
.loading-content{position:relative;width:calc(100% - var(--safe-left,20px) - var(--safe-right,20px));max-width:400px;text-align:center;padding-top:32px;}
.loading-art{width:190px;height:190px;margin:0 auto 32px;position:relative;}
.loading-art:before{content:"";position:absolute;inset:-70px;background:repeating-conic-gradient(from 10deg,#fff6a744 0deg 12deg,transparent 12deg 30deg);border-radius:50%;mask-image:radial-gradient(circle,#000,transparent 70%);animation:load-rays 22s linear infinite;}
.loading-art>svg{position:relative;width:190px;height:190px;filter:drop-shadow(0 12px 8px #a7441944);animation:load-food 1.8s ease-in-out infinite;}
.stage .loading-content h2{font-size:25px;color:#643112;margin-bottom:16px;}
.loading-track{height:23px;border:3px solid #fff5d4;border-radius:15px;background:#a54c17;box-shadow:0 3px 0 #bd5e19;overflow:hidden;}
.loading-track>i{display:block;height:100%;width:0;background:var(--candy-lime);border-radius:10px;transition:width .18s ease-out;}
.stage .loading-count{font-size:18px;font-weight:800;color:#653110;display:block;margin:12px 0;}
.stage .loading-tip{font-size:16px;color:#603318;line-height:1.7;background:#fff6d7c9;padding:12px 16px;border-radius:16px;margin-top:28px;}
.loading-actions{display:flex;flex-direction:column;gap:12px;}
.loading-actions>button{width:100%;}
.stage .legal-settings-links{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:18px;}
.legal-settings-links a{display:inline-flex;align-items:center;min-height:48px;color:#633b20;text-decoration:underline;font-size:16px;}
.district-preview{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 0;}
.district-preview>svg{width:160px;height:160px;flex-shrink:0;}
.district-preview>div{display:flex;flex-direction:column;gap:8px;align-items:center;}
.stage .district-preview p{font-size:16px;margin:0;}
.district-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.stage .district-stages>button{display:flex;flex-direction:column;gap:6px;justify-content:center;align-items:center;min-height:88px;background:var(--candy-cream);border:2px solid #e3b66a;border-radius:16px;color:#5a311a;font-size:18px;}
.stage .district-stages small{font-size:14px;}
.stage .district-stages>button:disabled{filter:grayscale(1);opacity:.65;}
.city-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:18px 0;}
.city-stats>div{display:flex;flex-direction:column;align-items:center;gap:8px;}
.city-stats strong{font-size:24px;}
.stage .city-stats span{font-size:14px;}
.city-growth{display:flex;align-items:center;justify-content:center;gap:4px;}
.city-growth>svg{width:28%;height:auto;}
.treasure-list{display:flex;flex-direction:column;gap:12px;}
.stage .treasure-item{display:flex;align-items:center;gap:12px;min-height:88px;text-align:left;border:2px solid #e2b464;border-radius:16px;padding:8px 12px;background:var(--candy-cream);color:#613a20;}
.treasure-item>svg{width:64px;height:64px;flex-shrink:0;}
.treasure-item>span{display:flex;flex-direction:column;gap:6px;}
.stage .treasure-item small{font-size:14px;}
.stage.city-lobby,.stage.title-screen{animation:screen-arrive .22s ease-out;}
@keyframes screen-arrive{from{opacity:.3}to{opacity:1}}
@keyframes current-bob{50%{transform:translateY(-5px)}}
@keyframes load-rays{to{transform:rotate(360deg)}}
@keyframes load-food{50%{transform:translateY(-7px) rotate(3deg)}}
@media(prefers-reduced-motion:reduce){
 .stage.city-lobby,.stage.title-screen,.current-pointer,.loading-art:before,.loading-art>svg{animation:none;}
 .loading-track>i{transition:none;}
}
.stage.portrait-layout.tight-layout .lobby-hud{height:154px;grid-template-rows:48px 54px 44px;}
.stage.portrait-layout.tight-layout .city-profile{min-height:54px;}
.stage.portrait-layout.tight-layout .profile-cat,.stage.portrait-layout.tight-layout .profile-cat>svg{width:44px;height:44px;}
.stage.portrait-layout.tight-layout .city-scroll{top:calc(var(--safe-top) + 164px);}
.stage.portrait-layout.tight-layout .lobby-side{top:calc(var(--safe-top) + 178px);}
.stage.portrait-layout.tight-layout .title-brand{top:calc(var(--safe-top) + 44px);}
.stage.portrait-layout.tight-layout .title-logo{font-size:42px;}
.stage.portrait-layout.tight-layout .title-ribbon{font-size:16px;}
.stage.portrait-layout.tight-layout .title-language{width:48px;height:48px;}
.stage.portrait-layout.tight-layout .title-language>svg{width:24px;height:24px;}
.stage.portrait-layout.narrow-layout .profile-copy>b{font-size:15px;}
.stage.portrait-layout.narrow-layout .profile-star{display:none;}
.stage.portrait-layout.narrow-layout .city-chapters small{display:none;}
.stage.portrait-layout.narrow-layout .lobby-currencies{gap:6px;}
.stage.portrait-layout.narrow-layout .lobby-currency>b{font-size:17px;}
.stage.portrait-layout.narrow-layout .city-node.map-node{width:56px;height:56px;min-width:56px;min-height:56px;}
.stage.portrait-layout.narrow-layout .city-node-mark{left:16px;}
.stage.portrait-layout.narrow-layout .building-plaque>b{font-size:12px;white-space:normal;}
.stage.portrait-layout.narrow-layout .lobby-play{font-size:20px;gap:6px;}
.stage.portrait-layout.narrow-layout .lobby-play>small{display:none;}
.stage.portrait-layout.narrow-layout .title-links{gap:8px;}
.stage.portrait-layout.narrow-layout .title-logo{font-size:34px;letter-spacing:-1px;}
.stage.portrait-layout.narrow-layout .title-ribbon{padding:4px 12px;}

.stage.portrait-layout.narrow-layout .lobby-currency{gap:0;padding-right:0;}
.stage.portrait-layout.narrow-layout .lobby-currency>svg{width:24px;height:24px;margin-left:0;}
.stage.portrait-layout.narrow-layout .lobby-currency>b{font-size:14px;}

.loading-content{max-height:calc(100% - var(--safe-top,16px) - var(--safe-bottom,20px));overflow-y:auto;padding-bottom:20px;}
.stage.portrait-layout.tight-layout .loading-art,.stage.portrait-layout.tight-layout .loading-art>svg{width:140px;height:140px;}
.stage.portrait-layout.tight-layout .loading-art{margin-bottom:16px;}
.stage.portrait-layout.tight-layout .loading-tip{margin-top:16px;}
.stage .lobby-round>.utility-icon{filter:drop-shadow(0 1px 1px #673b16);}

/* Enamel hardware, turquoise route markers, and a single integrated settings medallion. */
.stage.city-lobby{background:linear-gradient(160deg,#ffdfaa,#fff1ce 32%,#f4bf82 82%,#cc845c);}
.stage.city-lobby .lobby-settings,.stage button[data-action="settings"].icon-button{
 padding:0;background:transparent;border:0;box-shadow:none;min-width:48px;min-height:48px;
}
.stage.city-lobby .lobby-settings>svg,.stage button[data-action="settings"].icon-button>svg{width:100%;height:100%;filter:drop-shadow(0 2px 1px #704d3944);}
.stage .city-profile{background:linear-gradient(115deg,#fff9de,#ffdfaf);border-color:#fff9df;color:#533127;border-radius:26px;box-shadow:0 3px 0 #b9815a,0 5px 10px #6b442526;}
.stage .profile-cat{border:0;background:radial-gradient(circle at 30% 25%,#f9e9ac,#ffac68);}
.stage .city-progress{border:0;background:#c88b67;box-shadow:inset 0 2px 3px #84502f55;}
.stage .city-progress>i{background:linear-gradient(#8ae4d0,#229c99);}
.stage.city-lobby .city-chapters{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;}
.stage.city-lobby .city-chapters>button{position:relative;display:flex;flex-direction:column;gap:0;padding:2px;min-width:0;border:0;border-radius:18px;color:#684031;background:#ffe8c6;box-shadow:0 2px 0 #c69266;font-size:15px;line-height:20px;}
.stage.city-lobby .city-chapters>button.selected{color:white;background:linear-gradient(#208e8b,#086c76);box-shadow:inset 0 2px 1px #71d3be,0 3px 0 #275b69;}
.stage.city-lobby .city-chapters small{font-size:13px;line-height:16px;}
.stage.city-lobby .city-chapters svg{position:absolute;right:1px;top:1px;width:13px;height:13px;}
.stage .city-node.map-node{border:3px solid #fff5dc;border-radius:50%;box-shadow:inset 0 2px 1px #ffffdfbb,inset 0 -4px 3px #986d6144,0 4px 0 #dcbd88,0 7px 0 #a57453,0 9px 5px #66452952;}
.stage .city-node.map-node.available{background:radial-gradient(ellipse at 35% 16%,#84f6df,#20cabe 49%,#05939a 90%);}
.stage .city-node.map-node.completed{background:radial-gradient(ellipse at 33% 20%,#fff5a6,#ffcb48 55%,#ed961c);}
.stage .city-node.map-node.locked{background:linear-gradient(150deg,#e4ddc8,#cdbd9d);border-color:#faedd0;}
.stage .city-node-number{font-family:'Arial Rounded MT Bold','Trebuchet MS',sans-serif;font-size:30px;letter-spacing:-1px;}
.stage .lobby-nav{border:1px solid #fff2ca;background:linear-gradient(#fff1d6,#ffdeb3);border-radius:24px;box-shadow:0 4px 0 #ab7654,0 7px 10px #70422e26;}
.stage .lobby-nav>button.selected{background:linear-gradient(#97ecdd,#5fd3c5);border-radius:19px;box-shadow:inset 0 2px 1px #e5fff0;}
.stage .lobby-nav svg{width:38px;height:38px;}
.stage .title-play,.stage .lobby-play,.stage .modal .primary{border-radius:30px;border:2px solid #fff2ae;background:linear-gradient(#daff81,#95dd38 24%,#5bb721 78%,#50a622);color:#fffaf0;text-shadow:0 1px 2px #335d1f;-webkit-text-stroke:1.5px #36641d;paint-order:stroke fill;box-shadow:inset 0 2px 2px #f8ffd1,0 4px 0 #407628,0 6px 9px #4d321a40;}
.stage .modal{border-radius:28px;}
.stage .reset-progress{color:#963e35;}
.stage .setting-rows .reset-progress{background:#ffebe0;color:#963e35;}
.stage .special-backdrop{display:block;width:100%;height:100%;object-fit:cover;}
.iced-drink{position:relative;display:inline-grid;place-items:center;max-height:100%;max-width:100%;}
.iced-drink>svg:first-child{width:100%;height:100%;}
.iced-drink>svg:last-child{position:absolute;right:0;bottom:0;width:49%;height:49%;background:#e0fcff;border-radius:50%;}
.stage.specialty-game .kitchen.specialty-counter{display:block;padding:10px 12px;border-radius:22px;background:linear-gradient(#f4cc91,#ffe6b6 8%,#ecc18a 88%,#c89466);}
.stage.specialty-game #stall-work{width:100%;height:100%;max-width:790px;margin-inline:auto;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;justify-content:safe center;gap:7px;}
.work-bays,.work-tools{display:grid;gap:7px;}
.work-bays{grid-template-columns:repeat(var(--bays),minmax(0,1fr));}
.work-tools{grid-template-columns:repeat(auto-fit,minmax(62px,1fr));}
.stage .work-control{min-width:0;min-height:48px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:3px;border:0;border-radius:16px;background:linear-gradient(#fff7dc,#ffe7b6);color:#533126;font:inherit;box-shadow:inset 0 2px 1px #fffbec,0 3px 0 #b57f52;}
.stage .work-control>svg{width:45px;height:45px;flex-shrink:0;}
.stage .work-control>b{font-size:15px;font-weight:800;line-height:20px;}
.stage .work-control:disabled{opacity:1;filter:saturate(.65);color:#634c40;}
.stage .work-bays .work-control{background:linear-gradient(#bfe6da,#e1f3e6);box-shadow:inset 0 2px 3px #75ad9f,0 3px 0 #889e8a;min-height:85px;}
.stage.grill .work-bays .work-control{background:linear-gradient(#b4b6b7,#e8d6c8);box-shadow:inset 0 2px 3px #9b908a,0 3px 0 #877b72;}
.stage .work-bays svg{height:clamp(54px,9vh,90px);width:auto;}
.stage .work-control.chosen{background:#c1f4de;outline:3px solid #168c83;outline-offset:-3px;}
.work-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px;line-height:1.35;color:#573326;}
.stage .work-foot .work-control{flex:0 0 54px;min-height:48px;}
.stage .work-foot svg{width:20px;height:20px;}
.bay-meter{display:block;width:75%;height:5px;background:#9aaca3;border-radius:5px;overflow:hidden;}
.bay-meter i{display:block;height:100%;background:#138678;}
.stage.specialty-game .kitchen{z-index:3;}
.stage.specialty-game .work-control:focus-visible,.stage .lobby-settings:focus-visible{outline:3px solid #006f94;outline-offset:1px;}

.stage.title-screen .title-brand{filter:none;gap:0;top:calc(var(--safe-top) + 40px);}
.stage.title-screen .title-logo{width:min(82%,400px);transform:none;line-height:0;filter:drop-shadow(0 5px 4px #713b2d48);}
.stage.title-screen .title-logo img{display:block;width:100%;height:auto;max-height:24vh;object-fit:contain;}
.stage.title-screen .title-ribbon{margin-top:-3px;border:0;background:#884332;color:#fff5cb;border-radius:18px;font-size:15px;padding:4px 18px;letter-spacing:2px;}
.stage.title-screen .title-play{max-width:280px;}
.work-control>*{pointer-events:none;}

.work-art{display:grid;place-items:center;width:45px;height:45px;}
.work-bays .work-art{width:100%;height:clamp(54px,9vh,90px);}
.work-foot .work-art{width:20px;height:20px;}
.stage .work-control .work-art>svg,.stage .work-control .work-art>.iced-drink{width:100%;height:100%;}
.bay-meter[hidden]{display:none;}
.stage .city-building.tier-3>.building-art{filter:drop-shadow(0 2px 5px #ffbb5299);}

/* The street meets the edge of the display. Its interactive world stays inside the insets. */
.stage.portrait-layout.city-lobby .city-scroll{left:0;right:0;border:0;border-radius:0;box-shadow:none;}
.stage.portrait-layout.city-lobby .city-world{margin-left:var(--safe-left);margin-right:var(--safe-right);width:auto;}
.stage.portrait-layout.city-lobby .city-ground{left:calc(0px - var(--safe-left));right:calc(0px - var(--safe-right));}
.stage.portrait-layout.city-lobby .lobby-hud{height:144px;grid-template-rows:46px 48px 44px;gap:3px;}
.stage.portrait-layout.city-lobby .city-profile{min-height:48px;border-radius:22px;padding-block:2px;}
.stage.portrait-layout.city-lobby .profile-cat,.stage.portrait-layout.city-lobby .profile-cat>svg{width:40px;height:40px;}
.stage.portrait-layout.city-lobby .city-chapters>button{min-height:44px;}
.stage.portrait-layout.city-lobby .lobby-footer{height:116px;grid-template-rows:52px 58px;gap:6px;}
.stage.portrait-layout.city-lobby .lobby-play{min-height:52px;}
.stage.portrait-layout.city-lobby .lobby-nav{height:58px;}
.stage.portrait-layout.city-lobby .lobby-nav>button{min-height:50px;}
.stage.portrait-layout.city-lobby .lobby-nav svg{width:32px;height:32px;}
.stage.portrait-layout.city-lobby .city-scroll{top:calc(var(--safe-top) + 150px);bottom:calc(var(--safe-bottom) + 123px);}
.stage.portrait-layout.city-lobby .lobby-side{top:calc(var(--safe-top) + 158px);}
.stage .order-item .iced-drink{width:100%;height:100%;}
.stage .order-item .iced-drink>svg:last-child{width:48%;height:48%;}
