:root{color-scheme:dark;--bg:#111a20;--panel:#1b282f;--panel2:#22343a;--line:#34464b;--text:#f4f3e8;--muted:#a0b3b0;--accent:#d9ec9e;--gold:#e8c87a;--green:#a1db9b;--red:#ff9e92;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}button,input,select{font:inherit}button{background:#293c43;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px 13px;cursor:pointer;font-weight:650;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#3a5257;transform:translateY(-1px)}button:disabled{opacity:.43;cursor:not-allowed}button.primary{background:var(--accent);border-color:var(--accent);color:#182521}button.primary:hover:not(:disabled){background:#efffc2}.wide{width:100%}input,select{background:#101b20;color:var(--text);border:1px solid var(--line);border-radius:7px;padding:10px;min-width:0}input[type=number]{width:75px}h1,h2,h3,p{margin:0}h1{font-size:clamp(34px,4vw,65px);letter-spacing:-.055em;line-height:1.04}h2{font-size:24px;letter-spacing:-.035em}h3{font-size:16px;letter-spacing:-.015em}p{color:var(--muted);line-height:1.6}small,.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#98b0aa;margin:12px 0}.logo{width:48px;height:48px;border-radius:13px;background:var(--accent);color:#1f3030;display:grid;place-content:center;font-size:23px;font-weight:1000;letter-spacing:-.11em;position:relative;flex-shrink:0}.logo span{color:#77934f}.auth{min-height:100vh;display:grid;grid-template-columns:1.45fr 1fr;align-items:center;padding:clamp(24px,6vw,90px);gap:8vw;background:radial-gradient(ellipse at 20% 60%,#314b43,#111a20 65%)}.auth h1 em{color:var(--accent);font-style:normal}.authscene p{max-width:500px;margin:20px 0}.auth form{background:var(--panel);border:1px solid var(--line);padding:32px;border-radius:20px;display:grid;gap:15px;max-width:440px;box-shadow:0 24px 80px #0005}.auth form label{display:grid;gap:6px;color:var(--muted)}#authArt{max-width:650px}.auth[hidden],#game[hidden]{display:none}header{height:80px;display:flex;align-items:center;gap:20px;padding:0 24px;border-bottom:1px solid var(--line);background:#19262c;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:850;letter-spacing:-.035em;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:.15em;margin-top:3px}#metrics{display:flex;gap:25px;flex:1;justify-content:flex-end;align-items:center}.metric small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.metric b{font-size:19px;display:block;font-variant-numeric:tabular-nums;margin-top:3px}.cash{color:var(--accent)}.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:calc(100vh - 80px)}aside{padding:18px 15px;border-right:1px solid var(--line);background:#162229;display:flex;flex-direction:column;gap:8px}#profile{background:var(--panel2);padding:14px;border:1px solid var(--line);border-radius:10px}#profile b{font-size:16px}.bar{height:5px;border-radius:5px;background:#102024;overflow:hidden;margin:10px 0 4px}.bar i{display:block;height:100%;background:var(--accent);border-radius:5px}.navbtn,.bizbtn{display:flex;align-items:center;gap:10px;text-align:left;width:100%;border:1px solid transparent;background:transparent;color:var(--muted);margin:3px 0}.navbtn.active,.bizbtn.active{background:#30453f;color:var(--accent);border-color:#496053}.bizbtn .bubble{margin-left:auto;background:#43564d;color:#e3efc0;border-radius:15px;padding:2px 6px;font-size:11px}.sidefooter{margin-top:auto;padding-top:30px;color:var(--muted);font-size:10px;letter-spacing:.12em}main{padding:26px;min-width:0}.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.heading p{margin-top:5px}.kicker{color:var(--accent);font-weight:750;font-size:11px;letter-spacing:.13em;text-transform:uppercase;margin-bottom:7px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.card{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:16px;min-width:0}.card h3{margin-bottom:8px}.card p{font-size:13px}.card .icon{font-size:28px}.hero{background:linear-gradient(130deg,#283f3b,#1b282f);border:1px solid #405b4f;border-radius:16px;padding:20px;margin-bottom:20px;overflow:hidden}.hero h2{font-size:30px}.world{background:radial-gradient(ellipse,#344c46,#1a2c2e);border:1px solid #3b5550;border-radius:15px;overflow:hidden;position:relative;min-height:240px}.world svg{display:block;width:100%;max-height:440px;user-select:none}.world svg [data-tile],.world svg [data-building]{cursor:pointer}.world svg [data-tile]:hover{fill:#e2ecac;fill-opacity:.6}.world svg [data-building]:hover{filter:brightness(1.13)}.worldlabel{position:absolute;left:14px;top:14px;padding:7px 10px;background:#142326c9;border:1px solid #52645c;border-radius:7px;font-size:11px;letter-spacing:.08em}.section{margin-top:22px}.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:15px 0}.tabs button.active{background:var(--accent);color:#142724}.row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.listrow{border-top:1px solid var(--line);padding:12px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.listrow:first-child{border-top:0}.listrow b{font-weight:700}.tag{display:inline-block;background:#31443b;color:var(--accent);padding:4px 8px;border-radius:6px;font-size:11px}.tag.warn{background:#503d30;color:#f5cf9a}.price{color:var(--gold);font-variant-numeric:tabular-nums;font-weight:750}.order{display:grid;gap:10px}.order .items{min-height:56px;display:grid;gap:5px}.order .items div{display:flex;align-items:center;justify-content:space-between;font-size:13px}.order .items span{color:var(--muted)}.order button{width:100%}.recipe{display:grid;gap:8px}.recipe .icon{float:left;margin-right:8px}.recipe .controls{display:flex;gap:7px;align-items:center}.recipe .controls button{flex:1}.jobs{display:grid;gap:8px;margin:12px 0}.job{padding:10px;background:#152329;border-radius:8px}.job .bar{margin:5px 0}.fin-table{width:100%;border-collapse:collapse}.fin-table td,.fin-table th{padding:11px 8px;text-align:left;border-bottom:1px solid var(--line)}.positive{color:var(--green)}.negative{color:var(--red)}#toast{position:fixed;bottom:20px;right:20px;z-index:20;background:#223a36;border:1px solid #658276;padding:14px 20px;max-width:380px;border-radius:10px;box-shadow:0 10px 30px #0006;opacity:0;pointer-events:none;transition:opacity .15s}#toast.show{opacity:1}dialog{border:1px solid #567065;border-radius:15px;background:#1a2b31;color:var(--text);padding:22px;max-width:min(750px,95vw);max-height:85vh;overflow:auto}dialog::backdrop{background:#061013ba}dialog #closeModal{margin-top:16px}.empty{padding:25px;text-align:center;border:1px dashed #496057;border-radius:12px;color:var(--muted)}.flex{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.stat{font-size:27px;font-weight:800;letter-spacing:-.04em}.hint{font-size:12px;color:var(--muted)}@media(max-width:850px){.auth{grid-template-columns:1fr;gap:25px}.authscene h1{font-size:40px}.auth form{max-width:100%}#authArt{display:none}.shell{grid-template-columns:1fr}aside{border-right:0;border-bottom:1px solid var(--line);padding:12px}aside #profile,.sidefooter,aside .eyebrow{display:none}#nav,#businessList{display:flex;overflow:auto;gap:5px}.navbtn,.bizbtn{white-space:nowrap;width:auto;flex-shrink:0}.brand{font-size:0}.brand small{display:none}header{padding:0 10px;gap:10px;height:64px}#metrics{gap:10px}.metric b{font-size:14px}.metric small{font-size:8px}main{padding:14px}.grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}

.order-product { padding: .65rem 0; border-top: 1px solid var(--line); }
.order-product small { display: block; margin-top: .2rem; }
.order-product .flex { margin-top: .5rem; flex-wrap: wrap; }
.order-product button { font-size: .85rem; }

.shop-stage { border: 1px solid #6f5c46; border-radius: 18px; overflow: hidden; background: #222b29; box-shadow: 0 14px 40px #0e171c66; }
.shop-world { border: 0; border-radius: 0; background: radial-gradient(ellipse at 50% 62%, #b6a276 0%, #687769 46%, #2b3c39 90%); }
.shop-world svg { max-height: 570px; }
.shop-world .shop-customer { cursor: pointer; outline: none; }
.shop-world .shop-customer:hover, .shop-world .shop-customer:focus-visible { filter: drop-shadow(0 0 5px #fff3b7); }
.shop-world .build-tile { stroke: #f2df9e; stroke-opacity: .7; cursor: crosshair; }
.shop-decor summary { cursor: pointer; padding: .6rem 0; color: var(--accent); }
.shop-tickets, .shop-decor-items { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,145px),1fr)); gap: .65rem; }
.shop-ticket { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: .5rem; }
.shop-decor { padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.shop-decor-tile { display: grid; place-items: center; gap: .25rem; padding: .7rem; }
.shop-decor-tile svg { width: 70px; height: 66px; background: radial-gradient(ellipse,#4b5c4d,transparent 70%); }
.shop-decor-tile.active { border-color: var(--accent); }
#modalContent > .order { margin: .65rem 0; padding: .75rem; }

/* The shop stays on screen while the player uses tools. */
#game:not([hidden]) {
 position: fixed; inset: 0; height: 100dvh;
 display: grid; grid-template-rows: auto minmax(0,1fr);
 overflow: hidden; background: #10191b;
}
#game .game-hud {
 position: relative; z-index: 4; height: 58px; min-height: 0;
 padding: 0 clamp(10px,2.4vw,25px);
 background: #182525; gap: clamp(8px,2vw,24px);
}
.game-hud .logo { width: 35px; height: 35px; min-width: 35px; font-size: 15px; }
.game-hud .brand { display: flex; align-items: center; gap: .55rem; min-width: 0; }
#businessList { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(.85rem,2.7vw,1.15rem); }
.game-hud #metrics { margin-inline-start: auto; gap: clamp(8px,2vw,20px); }
.game-hud .metric b { font-size: clamp(.82rem,2.1vw,1.1rem); }
.game-menu { position: relative; flex: 0 0 auto; }
.game-menu summary {
 cursor: pointer; list-style: none; display: grid; place-items: center;
 width: 38px; height: 38px; border: 1px solid #53675b; border-radius: 12px;
}
.game-menu summary::-webkit-details-marker { display:none; }
.game-menu-content {
 position: absolute; top: calc(100% + .55rem); right: 0; width: min(230px, calc(100vw - 20px));
 display: grid; gap: .6rem; padding: 12px; background: #23332f;
 border: 1px solid #53675b; border-radius: 13px; box-shadow: 0 15px 40px #101611ad;
}
.game-menu-content .navbtn { margin: 0; }
#game main { position: relative; min-height: 0; overflow: hidden; padding: 0; }
.shop-picker { height: 100%; box-sizing: border-box; overflow: auto; padding: clamp(14px,4vw,48px); max-width: 920px; margin-inline: auto; }
#game .shop-stage { position: absolute; inset: 0; overflow: hidden; }
#game .shop-stage .shop-world {
 position: absolute; inset: 0;
 min-height: 0; border: 0; border-radius: 0;
 background: radial-gradient(ellipse at 50% 40%,#4a6450 0%,#263d35 51%,#182a28 88%);
}
#game .shop-stage .shop-world svg {
 width: 100%; height: 100%; max-height: none; box-sizing: border-box;
 padding: clamp(2px,2vh,20px) 0 76px;
 filter: drop-shadow(0 18px 20px #111c1a8c);
}
.shop-clock {
 position: absolute; top: 12px; left: 12px; border-radius: 20px; padding: .38rem .7rem;
 background: #162822eb; color: #e7f2c5; border: 1px solid #667b63; font-variant-numeric: tabular-nums;
}
.shop-dock, .shop-placement {
 position: absolute; z-index: 1; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
 display: flex; align-items: center; gap: clamp(2px,1vw,9px); padding: 5px;
 background: #1b2c26ed; border: 1px solid #607c60; border-radius: 18px; box-shadow: 0 8px 26px #111b18a8;
}
.shop-dock button {
 display: grid; justify-items: center; align-content: center; gap: 1px;
 width: clamp(49px,14vw,76px); height: 53px; padding: 0 1px;
 color: #f3ead4; border: 1px solid transparent; background: transparent; border-radius: 12px;
}
.shop-dock button span { font-size: 23px; line-height: 1; color: #e6ca8b; }
.shop-dock button small { font-size: clamp(.63rem,2.5vw,.78rem); white-space: nowrap; }
.shop-dock button:hover, .shop-dock button.active { background: #415540; border-color: #83966d; }
.shop-placement { bottom: 83px; gap: .65rem; padding: .3rem .5rem .3rem .8rem; white-space: nowrap; }
.shop-panel {
 position: absolute; z-index: 2; top: 12px; right: 12px; bottom: 82px; width: min(410px,calc(100% - 24px));
 display: grid; grid-template-rows: auto minmax(0,1fr);
 border: 1px solid #607c60; border-radius: 16px; background: #1b2c26fa; box-shadow: 0 15px 45px #131c1bb0;
}
.shop-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #607c606b; }
.shop-panel-heading h2 { margin: 0; font-size: 1.15rem; }
.shop-panel-heading button { padding: .2rem .65rem; font-size: 1.2rem; }
.shop-panel-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px; }
.shop-panel-body .heading { justify-content: flex-end; margin-bottom: .5rem; }
.shop-panel-body .heading > div, .shop-panel-body .heading:empty { display: none; }
.decor-readout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; font-size: .83rem; color: var(--muted); }
.shop-panel-body .grid { grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); gap: 8px; }
.shop-panel-body .card { padding: 10px; }
.shop-panel-body .shop-decor { padding: 0; border: 0; background: transparent; }
.shop-panel-body .shop-decor h3 { display: none; }
.shop-decor-items { display: grid; grid-template-columns: repeat(auto-fit,minmax(98px,1fr)); gap: 6px; }
.shop-tickets { display: grid; gap: 6px; }
.shop-tickets .shop-ticket { display: flex; justify-content: space-between; gap: .25rem; }
.shop-customer :is(rect,text,path,circle) { cursor:pointer; }
.shop-customer:hover, .shop-customer:focus-visible { filter: brightness(1.2); }
@media (max-width:640px) {
 .shop-panel { top: auto; max-height: min(62dvh,calc(100% - 92px)); bottom: 82px; }
 .shop-panel-body { padding: 9px; }
 #game .shop-stage .shop-world svg { padding-bottom: 68px; }
}

.shop-dock button { position: relative; }
.shop-dock .dock-count { position: absolute; top: 3px; right: 3px; min-width: 17px; padding: 1px 3px; border-radius: 12px; background: #d9e8a7; color: #233323; font-weight: 800; }
.order-product { display: grid; grid-template-columns: 2rem auto 1fr; align-items: center; gap: .55rem; }
.order-icon { font-size: 1.4rem; }
.order-actions { display: flex; justify-content: flex-end; gap: .3rem; }
.order-actions button { min-width: 42px; min-height: 36px; }
.order-actions small { display: inline; }
.order-ready { text-align: right; color: var(--green); }
#modal:has(.order) { width: min(390px,calc(100vw - 24px)); box-sizing: border-box; padding: 14px; }

.shop-dock button { position: relative; }
.shop-dock .dock-count { position: absolute; top: 2px; right: 3px; border-radius: 9px; padding: 1px 5px; background: #e6ca8b; color: #23332f; font-weight: 800; }

.equipment-list { display:grid; gap: .55rem; }
.equipment-batch, .equipment-recipes li { display:flex; justify-content:space-between; gap:.6rem; }
.equipment-batch strong, .equipment-recipes strong { color:var(--accent); white-space:nowrap; font-variant-numeric:tabular-nums; }
.equipment-recipes { list-style:none; margin:.5rem 0 .7rem; padding:0; font-size:.82rem; }
.equipment-recipes li { padding:.28rem 0; border-top:1px solid var(--line); }

#game .shop-stage .shop-theme-coffee { background: radial-gradient(ellipse at 50% 40%,#5f5541,#29352d 60%,#171f20); }
#game .shop-stage .shop-theme-fastfood { background: radial-gradient(ellipse at 50% 40%,#665043,#343738 60%,#1d2528); }
#game .shop-stage .shop-theme-bakery { background: radial-gradient(ellipse at 50% 40%,#695a3b,#42372d 60%,#252023); }
#game .shop-stage .shop-theme-pizza { background: radial-gradient(ellipse at 50% 40%,#65533d,#313a30 60%,#202322); }
#game .shop-stage .shop-theme-icecream { background: radial-gradient(ellipse at 50% 40%,#67576b,#343a47 60%,#202735); }
#game .shop-stage .shop-theme-sandwich { background: radial-gradient(ellipse at 50% 40%,#58624a,#313d35 60%,#202925); }
.shop-dock button { width:clamp(54px,16vw,86px); height:58px; }
.shop-dock .dock-label { color:#f5e8ce; font-weight:650; }
.shop-dock button.active { box-shadow:inset 0 -2px #c9a868; }
.shop-next { position:absolute; bottom:84px; left:50%; transform:translateX(-50%); }
.shop-next button { white-space:nowrap; box-shadow:0 6px 20px #111c1a8c; }
.world svg .build-tile:hover { fill:#e2ecac; fill-opacity:.55; }
.shop-panel { background:#202f2bfa; border-color:#75826a; }
.shop-panel-heading { padding:10px 12px; background:#34453a; border-radius:15px 15px 0 0; }
#modal:has(.order) { width:min(440px,calc(100vw - 24px)); }
.order-product { grid-template-columns:2rem minmax(0,1fr) auto; gap:.4rem; }
.order-item-name { overflow-wrap:anywhere; }
.order-item-name small { color:var(--muted); }
.order-blocker { grid-column:2/-1; color:#f3c68b; }
.order-actions { align-items:center; flex-wrap:wrap; }
.order-actions button { min-width:0; padding:.35rem .45rem; }
.order > .primary { width:100%; margin-top:.4rem; }
.order-blocker button { font-size:.75rem; padding:.23rem .4rem; margin-inline-start:.25rem; }

.ingredient-info { display:flex; align-items:center; gap:.65rem; min-width:0; }
.ingredient-icon { display:inline-grid; place-items:center; flex:0 0 auto; width:2.15rem; height:2.15rem; border-radius:11px; background:radial-gradient(ellipse at 38% 30%,#e0c495,#6e624d 110%); border:1px solid #c9ab7f66; font-size:1.15rem; }
.ingredient-stock { gap:.6rem; padding:.7rem 0; }
.ingredient-info p { margin:.12rem 0 0; font-size:.75rem; }
.ingredient-stock input { width:3.3rem; padding-inline:.35rem; }
.recipe small:has(.ingredient-icon) { display:inline-flex; align-items:center; gap:.22rem; margin:.18rem .1rem; padding:.15rem .3rem; border-radius:7px; background:#344237; }
.recipe small .ingredient-icon { width:1.45rem; height:1.45rem; font-size:.9rem; border-radius:6px; }
.floor-decor { cursor:pointer; }
.floor-decor:hover, .floor-decor:focus-visible { filter:brightness(1.3) drop-shadow(0 1px 3px #ffd59b); }
.decor-inspect svg { display:block; width:90px; height:90px; margin-inline:auto; background:radial-gradient(ellipse,#4b5c4d,transparent 70%); }
.decor-inspect h2 { margin:.1rem 0 .65rem; text-align:center; }
.decor-inspect .flex { justify-content:center; }
.shop-panel-body .ingredient-stock > .flex { flex:0 0 auto; gap:.3rem; }

.recipe-grid { display:grid; gap:.65rem; }
#game .recipe-heading { position:static; z-index:auto; display:flex; align-items:center; gap:.6rem; padding:0; height:auto; border:0; background:none; }
.recipe-heading h3 { margin:0; }
.recipe-ingredients-heading { display:flex; justify-content:space-between; gap:.4rem; margin:.6rem 0 .25rem; font-size:.8rem; font-weight:700; color:#e7d8b8; }
.recipe-ingredients-heading small { font-weight:400; color:var(--muted); }
.recipe-ingredients { display:grid; gap:.28rem; list-style:none; margin:0; padding:0; }
.recipe-ingredient { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.45rem; padding:.3rem .42rem; border:1px solid #ffffff0f; border-radius:8px; background:#16251e; }
.recipe-ingredient .ingredient-icon { width:1.75rem; height:1.75rem; font-size:1rem; border-radius:7px; }
.recipe-ingredient-name { font-size:.82rem; overflow-wrap:anywhere; }
.recipe-ingredient-stock { text-align:right; font-size:.82rem; font-variant-numeric:tabular-nums; }
.recipe-ingredient-stock small { display:block; color:inherit; font-size:.69rem; }
.recipe-ingredient.is-stocked { color:#b6e59d; }
.recipe-ingredient.is-missing { color:#ffaea1; background:#342622; }

.floor-decor.is-selected { filter:brightness(1.23) drop-shadow(0 1px 5px #ffe4a0); }
.decor-actions { width:max-content; max-width:calc(100% - 16px); flex-wrap:wrap; justify-content:center; box-sizing:border-box; }
.decor-actions strong { font-size:.84rem; }
.shop-dock button { width:clamp(43px,14vw,80px); }
.shop-dock .dock-label { font-size:clamp(.57rem,2.4vw,.77rem); }
.equipment-products { display:flex; flex-wrap:wrap; gap:.3rem; }
.equipment-products span { padding:.22rem .4rem; border-radius:7px; background:#344237; }
.next-unlock { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.4rem; }
.next-unlock h3 { margin:0; }
.recipe .menu-remove { background:#723834; border-color:#a15c50; color:#ffe3d9; }
.recipe .menu-add { background:#355a40; border-color:#66916a; color:#ddf6d2; }
.recipe :is(.menu-remove,.menu-add):not(:disabled):hover { filter:brightness(1.16); }
.shop-selection .shop-choice h3 small { color:var(--muted); font-weight:500; }
.shop-choice > .icon { width:46px; height:46px; display:grid; place-items:center; background:#344237; border-radius:12px; margin-bottom:.55rem; }
.job [data-queue-status], .production-estimate { display:block; margin:.25rem 0; color:var(--muted); font-size:.75rem; }
.production-estimate:empty { display:none; }

.finished-stock ul { list-style:none; margin:.4rem 0 0; padding:0; display:grid; gap:.3rem; }
.finished-item { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.4rem; padding:.2rem .35rem; background:#24372c; border-radius:8px; }
.finished-item > span:nth-child(2) { overflow-wrap:anywhere; }
.finished-item strong { min-width:2ch; text-align:right; color:#d5ecae; font-variant-numeric:tabular-nums; }
.finished-item.is-empty { color:var(--muted); }
.finished-item.is-empty strong { color:var(--muted); }
.finished-stock + .card { margin-top:.7rem; }
.stock-hud { position:absolute; top:12px; right:12px; width:min(214px,calc(100% - 24px)); padding:.55rem; background:#192c24ed; border:1px solid #667b63; border-radius:12px; font-size:.8rem; }
.stock-hud button { padding:.23rem .35rem; font-size:.72rem; white-space:nowrap; }
.stock-hud .ingredient-icon { width:1.55rem; height:1.55rem; font-size:.88rem; border-radius:6px; }
@media (max-width:480px) { .stock-hud { width:min(176px,calc(100% - 100px)); } }

.shop-picker .shop-choice { display:flex; flex-direction:column; padding:0; overflow:hidden; background:#213129; border-color:#586a53; }
.shop-picker .shop-cover { display:grid; place-items:center; aspect-ratio: 1.65; background:radial-gradient(ellipse at 50% 70%,#766248,#342e2c); overflow:hidden; }
.shop-cover svg { display:block; height:100%; width:100%; max-height:172px; filter:drop-shadow(0 10px 12px #14151480); }
.shop-picker .shop-cover-fastfood { background:radial-gradient(ellipse at 50% 70%,#875d49,#412d2e); }
.shop-picker .shop-cover-bakery { background:radial-gradient(ellipse at 50% 70%,#876846,#44312a); }
.shop-picker .shop-cover-pizza,.shop-picker .shop-cover-sandwich { background:radial-gradient(ellipse at 50% 70%,#637b57,#303c32); }
.shop-picker .shop-cover-icecream { background:radial-gradient(ellipse at 50% 70%,#8a6c85,#3e394b); }
.shop-choice-content { display:flex; flex-direction:column; flex:1; padding:1rem; }
.shop-choice-content > .wide { margin-top:auto; }
.shop-card-stats { display:grid; grid-template-columns:1fr 1fr; gap:.3rem; margin:.1rem 0 .75rem; }
.shop-card-stats span { display:grid; gap:.15rem; border-radius:8px; padding:.38rem .55rem; background:#17251e; color:var(--muted); font-size:.72rem; }
.shop-card-stats b { color:#e4ebcc; font-size:1.04rem; }
.recipe-stock-badge { display:flex; align-items:center; gap:.45rem; margin:.55rem 0; padding:.4rem .55rem; border-radius:9px; background:#294637; color:#d5ecae; font-size:.79rem; }
.recipe-stock-badge strong { font-size:1.18rem; font-variant-numeric:tabular-nums; }
.recipe-stock-badge.is-empty { background:#25312c; color:var(--muted); }

.shop-tickets .shop-ticket { display:grid; gap:.55rem; width:100%; text-align:left; padding:.65rem .75rem; background:#273a30; border-color:#607151; border-radius:12px; }
.shop-tickets .shop-ticket:hover { border-color:#d1b37a; background:#304538; }
.customer-portrait { display:inline-grid; place-items:center; width:37px; height:37px; overflow:hidden; flex:0 0 auto; border-radius:50%; background:#d4be91; border:1px solid #e8cf9d; vertical-align:middle; }
.customer-portrait svg { width:100%; height:100%; }
.ticket-customer { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.55rem; }
.ticket-customer small { display:block; font-size:.73rem; font-weight:400; margin-top:.15rem; }
.shop-ticket .ticket-price { color:#e7ca8e; font-weight:800; }
.ticket-products { display:flex; flex-wrap:wrap; gap:.26rem; }
.ticket-products .ticket-product { display:inline-flex; align-items:center; gap:.26rem; padding:.24rem .4rem; border-radius:6px; font-size:.75rem; background:#1b2c24; }
.ticket-products .ticket-product span, .ticket-products .ticket-product b { color:#f1e8d1; }
.shop-ticket .ticket-status { font-size:.76rem; justify-self:end; }
.shop-ticket.is-ready .ticket-status { color:#c1e49b; }
#modal .order .tag .customer-portrait { width:24px; height:24px; margin-right:4px; }

.order-timing { padding:.28rem .4rem; border:1px solid #aa9257; background:#494631; color:#f2dda2; font-variant-numeric:tabular-nums; white-space:nowrap; }
.shop-ticket .ticket-status b { color:#f4d791; font-variant-numeric:tabular-nums; }
.machine-running { opacity:0; pointer-events:none; }
.machine-running.is-running { opacity:1; }
.machine-running.is-running path { animation:brew-steam 1.7s ease-in-out infinite; }
@keyframes brew-steam { from { opacity:.15; transform:translateY(3px); } to { opacity:.8; transform:translateY(-3px); } }
@media(prefers-reduced-motion:reduce) { .machine-running.is-running path { animation:none; } }
.job[data-queue-end] { border-left:2px solid #9fa875; background:linear-gradient(100deg,#293b2e,#1c2925); }
.job[data-queue-end] .row span { color:#f0d496; font-variant-numeric:tabular-nums; }
.shop-choice-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.4rem; }
.shop-choice-actions .shop-delete { color:#f0b4a7; }
.shop-delete-confirm .flex { justify-content:flex-end; gap:.5rem; }
.shop-delete-confirm .danger { color:#fff0eb; background:#873f36; border-color:#bc695c; }
#modal:has(.shop-delete-confirm) #closeModal { display:none; }

.sound-control {
 display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
 padding: 0; color: #f0d7a4; background: #24352e; border: 1px solid #53675b;
 border-radius: 12px;
}
.sound-control svg, .shop-dock button span svg { display: block; width: 22px; height: 22px; }
.sound-control:hover { background: #415540; }
#game .game-hud {
 background: linear-gradient(110deg,#22352b,#122321 68%);
 box-shadow: 0 4px 20px #11141180;
}
.shop-dock {
 background: linear-gradient(160deg,#2c4136f5,#122720f5);
 border-color: #9da58180;
}
.shop-dock button { gap: 5px; }
.shop-dock button.active { background: linear-gradient(#587157,#334c3b); }
.shop-dock button.active span { color: #fceab2; }
.shop-dock button:focus-visible, .sound-control:focus-visible { outline: 2px solid #fbe4a4; outline-offset: 2px; }
.shop-panel { background: linear-gradient(145deg,#293b33,#172622 70%); }
.shop-panel > :first-child { border-bottom-color: #a9987060; }
.shop-picker .shop-cover { border-bottom: 1px solid #e6ca8b50; }
.shop-picker .shop-cover svg { transition: transform .24s ease; }
.shop-picker article:hover .shop-cover svg { transform: translateY(-3px) scale(1.035); }
@media (prefers-reduced-motion: reduce) {
 .shop-picker .shop-cover svg { transition: none; }
}

.counter-control { cursor: pointer; outline: none; }
.counter-control:hover, .counter-control:focus-visible { filter: drop-shadow(0 0 4px #ffe2a6); }
.shop-clock { display:flex; align-items:center; gap: .55rem; border-radius: 12px; }
.shop-clock span { display:grid; color:#e7ca8e; }
.shop-clock svg { width:20px; height:20px; }
.shop-clock small { display:block; font-size:.65rem; }
.shop-clock strong { font-size:.94rem; }
.station-filters {
 display:flex; flex-wrap:wrap; gap:.3rem; padding:.45rem; margin:.75rem 0;
 background:#12251f; border: 1px solid #72826960; border-radius:12px;
}
.station-filters button { padding:.34rem .55rem; font-size:.75rem; background:#25372e; }
.station-filters button[aria-pressed="true"] { background:#e2c98f; color:#252d21; border-color:#ffe8b6; }
.shop-panel-heading { background:linear-gradient(110deg,#3b4e3e,#26392f); }
.shop-panel-body { scrollbar-color:#879577 #25362e; }
.shop-tickets .shop-ticket { border-left:3px solid #a48f60; background:linear-gradient(130deg,#34483b,#25372f 60%); }
.shop-tickets .shop-ticket.is-ready { border-left-color:#badd8b; }
.shop-tickets .shop-ticket.is-ready .ticket-status {
 border-radius: 15px; padding: .18rem .48rem; background:#172e22;
}
.recipe-grid .recipe .recipe-heading .icon { box-shadow:inset 0 1px #fff5c946,0 3px 8px #111f19a0; }
.account-page .fin-table { width:100%; overflow-wrap:anywhere; }

.machine-time rect { fill:#1b2926; stroke:#e3c88a; stroke-width:.8px; }
.machine-time text { fill:#ffebbe; font:700 8px system-ui; font-variant-numeric:tabular-nums; }
.machine-time .machine-progress { fill:#cae699; stroke:none; }
.shop-cover { position:relative; isolation:isolate; }
.shop-cover::before {
 content:""; position:absolute; inset:0; z-index:-1;
 background:repeating-linear-gradient(130deg,transparent 0 17px,#fff5d109 18px 19px);
 mask-image:radial-gradient(ellipse at center,#000,transparent 82%);
}

.order-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; margin-bottom:.65rem; }
.order-summary span { background:#152920; padding:.45rem .55rem; border:1px solid #65745c; border-radius:9px; font-size:.75rem; }
.order-summary strong { color:#d5eda4; font-size:1rem; margin-right:.2rem; }
.ticket-products .ticket-product { border:1px solid #84917470; }
.ticket-products .product-ready b { color:#c5ee9d; }
.ticket-products .product-queued b { color:#f0d182; }
.ticket-products .product-missing b { color:#f0a897; }
#saleFeedback {
 position:absolute; z-index:3; left:50%; top:clamp(66px,12vh,96px); transform:translateX(-50%);
 pointer-events:none; max-width:calc(100% - 24px);
}
.sale-receipt {
 display:flex; align-items:center; gap:.65rem; width:max-content; max-width:100%;
 padding:.55rem .85rem; border:1px solid #bca577; border-radius:13px;
 background:linear-gradient(130deg,#283f30,#19312a); color:#fff1cf;
 box-shadow:0 6px 23px #15211bb0;
 animation:sale-receipt 2.4s ease both;
}
.sale-receipt small { display:block; color:#f5d389; font-weight:700; margin-top:.15rem; }
.sale-receipt small span { margin-left:.45rem; color:#c8eda3; }
.sale-check { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#d1e8a4; color:#263d2b; }
@keyframes sale-receipt {
 0% { opacity:0; transform:translateY(12px); }
 12%,80% { opacity:1; transform:translateY(0); }
 100% { opacity:0; transform:translateY(-8px); }
}
@media (prefers-reduced-motion:reduce) { .sale-receipt { animation:none; } }

.equipment-timing-label, .equipment-timings li {
 display:flex; align-items:center; justify-content:space-between; gap:.4rem;
}
.equipment-timing-label { color:var(--muted); font-size:.75rem; margin-top:.65rem; }
.equipment-timings { margin:.25rem 0 .55rem; padding:0; list-style:none; }
.equipment-timings li { padding:.42rem 0; border-top:1px solid #97a18838; }
.equipment-timings b { white-space:nowrap; font-variant-numeric:tabular-nums; }
.equipment-timings strong { color:#d5eda4; }
.equipment-name { display:flex; align-items:center; gap:.5rem; min-width:0; }
.equipment-name h3 { margin:0; }
.equipment-name svg { width:42px; height:42px; flex:none; background:#34483a; border-radius:9px; }
.equipment-timings li > span { display:flex; align-items:center; gap:.4rem; }

.decor-bonus-summary { display:grid; gap:.3rem; margin-bottom:.55rem; }
.decor-effect {
 display:flex; align-items:center; gap:.38rem;
 padding:.3rem .42rem; border-radius:7px;
 background:#203029; color:#e7ecd7; font-size:.72rem; text-align:left;
}
.decor-effect.effect-customers { color:#bcdced; background:#243c45; }
.decor-effect.effect-payout { color:#f6d891; background:#40392b; }
.decor-effect.effect-production { color:#c6e7a4; background:#2b4232; }
.decor-effect svg { flex:none; width:17px; height:17px; background:none; }
.decor-bonus-help { margin-bottom:.65rem; color:var(--muted); font-size:.75rem; }
.decor-bonus-help summary { cursor:pointer; }
.decor-bonus-help ul { padding-inline-start:1.15rem; }
.decor-duplicate { color:var(--muted); }

.logo { background:linear-gradient(145deg,#f8eabd,#c9d996); box-shadow:inset 0 1px #fff8d7,0 2px 6px #0e20195e; }
.logo { place-content:stretch; place-items:center; }
.logo svg { display:block; width:80%; height:80%; }
.shop-level-meter { display:flex; align-items:center; gap:4px; white-space:nowrap; }
.shop-level-meter > span { display:grid; place-items:center; min-width:1.55rem; padding:.2rem; border-radius:7px; color:#f4dfaa; background:#34493a; font-weight:750; font-size:.72rem; }
.shop-level-track { position:relative; isolation:isolate; display:grid; place-items:center; width:clamp(72px,13vw,164px); min-height:22px; background:#152921; border-radius:8px; border:1px solid #718276; overflow:hidden; }
.shop-level-track i { position:absolute; z-index:-1; inset:0 auto 0 0; background:linear-gradient(90deg,#526a3d,#74894b); }
.shop-level-track b { padding:0 .2rem; font-size:clamp(.57rem,1.3vw,.72rem); color:#fff9dd; font-variant-numeric:tabular-nums; }
@media(max-width:480px) { .game-hud #metrics { gap:6px; } .game-hud .brand { min-width:35px; } }

@media(max-width:375px) { #game .game-hud { gap:5px; padding-inline:6px; } .game-menu summary,.sound-control { width:32px; height:32px; } .sound-control { flex-basis:32px; } }

.shop-decor-tile .decor-preview {
 width:100%; height:76px; border-radius:8px;
 background:radial-gradient(ellipse at 50% 67%,#63785a60,#162c247d 74%);
}
.shop-decor-tile:not(:disabled):hover .decor-preview { background-color:#354a39; }
.decor-placement-ghost { pointer-events:none; opacity:.72; }

.service-status { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; color:#d5eda4; background:#24382e; padding:.4rem; border-radius:9px; }
.service-status[hidden],.farewell-card[hidden] { display:none; }
.service-button,.order .service-button { display:inline-flex; align-items:center; justify-content:center; gap:.35rem; width:auto; padding:.4rem .6rem; white-space:nowrap; color:#262d21; background:#e4ca8f; border-color:#ffe8b9; }
.service-button svg { width:17px; height:17px; }
.service-button b { font-variant-numeric:tabular-nums; background:#30291c1c; border-radius:4px; padding:.1rem .24rem; }
.service-farewells { position:absolute; z-index:2; left:50%; transform:translateX(-50%); top:86px; display:grid; gap:.25rem; width:max-content; max-width:calc(100% - 20px); }
.farewell-card { display:flex; align-items:center; gap:.45rem; padding:.35rem .45rem; background:#1a3028; border:1px solid #b89c6e; border-radius:12px; box-shadow:0 6px 18px #131c19a0; }
.farewell-card small { display:block; font-size:.68rem; }
.farewell-card .customer-portrait { width:28px; height:28px; }

.tasting-card { margin-bottom:.65rem; }
.tasting-card > p { margin:.4rem 0 .65rem; }
.tasting-visitor,.tasting-recipe { display:grid; gap:.3rem; padding:.55rem 0; border-top:1px solid var(--border,#46584c); }
.tasting-visitor[hidden] { display:none; }
.tasting-choice { display:flex; flex-wrap:wrap; gap:.35rem; }
.tasting-choice select { flex:1 1 9rem; min-width:0; }
.tasting-recipe button { justify-self:start; }
.shop-customer[hidden] { display:none; }
@media(max-width:600px){
 .shop-dock { width:min(100% - 12px,440px); gap:2px; }
 .shop-dock button { width:auto; flex:1 1 0; min-width:0; }
 .shop-dock .dock-label { font-size:clamp(.53rem,2.1vw,.7rem); }
}
.tasting-choice input { width:5rem; }
.tasting-visitor > button { justify-self:start; }
.tasting-product > small { display:block; margin-top:.4rem; }

.customer-departure,.shop-exit { pointer-events:none; }
.shop-exit text { font-size:6px; font-weight:800; fill:#eff5d3; letter-spacing:.6px; }
.customer-speech { animation:customer-speech 2700ms var(--age) both; }
.customer-speech rect,.customer-speech path { fill:#fff4d8; stroke:#795c46; stroke-width:1; }
.customer-speech text { fill:#392d25; font-size:9px; font-weight:700; }
.customer-exit-walk { animation:customer-exit-walk 1500ms linear var(--walk-delay) both; }
@keyframes customer-speech {
 0%,78% { opacity:1; }
 100% { opacity:0; }
}
@keyframes customer-exit-walk {
 0% { transform:translate(0,0); opacity:1; }
 80% { transform:translate(var(--door-x),var(--door-y)); opacity:1; }
 100% { transform:translate(var(--out-x),var(--out-y)); opacity:0; }
}
@media (prefers-reduced-motion:reduce) {
 .customer-exit-walk { animation-name:customer-exit-fade; }
 @keyframes customer-exit-fade { 0%,70% { opacity:1; } 100% { opacity:0; } }
}
@media (prefers-reduced-motion:no-preference) {
 .customer-exit-walk .customer-step { animation:customer-step 250ms ease-in-out 6 var(--walk-delay) alternate; }
 .customer-exit-walk .customer-step:first-child { animation-direction:alternate-reverse; }
 @keyframes customer-step { from { transform:translateX(-1.5px); } to { transform:translate(1.5px,-2px); } }
}
.customer-departure *, .shop-exit * { pointer-events:none; }
.customer-entry { animation:customer-enter var(--entry-duration) linear var(--walk-delay) both; }
@keyframes customer-enter {
 0% { transform:translate(var(--in-x),var(--in-y)); visibility:hidden; }
 1% { visibility:visible; }
 17% { transform:translate(var(--door-x),var(--door-y)); }
 100% { transform:translate(0,0); visibility:visible; }
}
@media (prefers-reduced-motion:no-preference) {
 .customer-entry .customer-step { animation:customer-step 190ms ease-in-out 5 var(--walk-delay) alternate; }
 .customer-entry .customer-step:first-child { animation-direction:alternate-reverse; }
}
@media (prefers-reduced-motion:reduce) {
 .customer-entry { animation-name:customer-enter-fade; }
 @keyframes customer-enter-fade { 0% { opacity:0; visibility:hidden; } 100% { opacity:1; visibility:visible; } }
}
