:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#293c30;background:#f6efdf;font-synthesis:none;--forest: #254b3d;--paper: #fff9eb;--reward: #e85d04;--muted: #6b5a43;--gold: #ffd166}*{box-sizing:border-box}body{margin:0;width:100%;height:100dvh;overflow:hidden;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;display:flex;flex-direction:column}[hidden]{display:none!important}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}button{font:600 13px system-ui,-apple-system,Segoe UI,Roboto,sans-serif;min-height:44px;border:1px solid #d9d2bf;border-radius:10px;background:var(--paper);color:var(--forest);padding:9px 14px;cursor:pointer;touch-action:manipulation;transition:background-color .15s,transform .08s}button:hover:enabled{background:#efe9d3}button:active:enabled{transform:translateY(1px) scale(.98)}button:disabled{opacity:.5;cursor:default}button:focus-visible{outline:3px solid #d75b28;outline-offset:3px}button.primary,#play,#pause,#resume,#prestige{background:var(--forest);color:var(--paper);border-color:var(--forest)}button.primary:hover:enabled,#play:hover:enabled,#pause:hover:enabled,#resume:hover:enabled,#prestige:hover:enabled{background:#1b3a2e}button.reward{background:var(--reward);color:#fff;border-color:#bc4a05}button.reward:hover:enabled{background:#bf4d04}.hint{box-shadow:0 0 0 3px var(--gold),0 0 22px 6px #ffd16680;animation:hint 1.2s ease-in-out infinite}@keyframes hint{50%{box-shadow:0 0 0 5px var(--gold),0 0 30px 12px #ffd16600}}header{position:relative;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:max(10px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 10px max(24px,env(safe-area-inset-left));min-height:72px;border-bottom:1px solid #ded5bf;background:#f6efdf}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand-mark{flex-shrink:0;width:46px;height:46px;border:1px solid #c9c2a2;border-radius:50%;font-size:28px;line-height:44px;text-align:center;color:#bd472b}h1{font:700 23px Georgia,serif;letter-spacing:-.5px;margin:0;white-space:nowrap}.brand p{font-size:11px;text-transform:uppercase;letter-spacing:2px;color:var(--muted);margin:4px 0 0}.header-actions{display:flex;gap:8px;flex-shrink:0}body[data-screen=title] .brand{visibility:hidden}#app{min-height:0;flex:1;position:relative;display:flex;flex-direction:column;gap:12px;padding:14px max(24px,env(safe-area-inset-right)) 0 max(24px,env(safe-area-inset-left))}#world{flex:0 0 58%;min-height:220px;position:relative;display:flex;flex-direction:column;border:1px solid #d3c4a8;border-radius:16px;overflow:hidden;background:#f0ddbb}#scene{flex:1;min-height:0;position:relative}canvas{display:block;width:100%;height:100%;touch-action:none}#topbar{position:absolute;top:6px;left:8px;right:8px;z-index:2;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:6px;pointer-events:none}#hud{display:flex;align-items:center;padding:3px 4px;border-radius:999px;background:#fff9ebf2;box-shadow:0 3px 12px #3b2e2333}#hud>div{display:flex;align-items:center;padding:3px 10px;white-space:nowrap}#hud>div+div{border-left:1px solid #e6ddc9}#hud strong{font-variant-numeric:tabular-nums}#coins{display:inline-block;font-size:19px}#coins:before,dialog[data-kind=offline] h2:before{content:"";display:inline-block;width:.8em;height:.8em;margin-right:.3em;vertical-align:-.05em;border-radius:50%;background:radial-gradient(circle at 35% 35%,#ffe9a8,#e8a92a 65%);box-shadow:inset 0 0 0 .1em #c98a12}#income{font-size:13px;color:var(--muted)}#stars{font-size:14px}#stars:before{content:"★ ";color:#d9960f}#rush-chip{font-size:13px;font-weight:700;color:#b84300}#rush-sign{pointer-events:auto;margin-left:auto;min-height:36px;padding:6px 14px;border-radius:999px;box-shadow:0 3px 12px #7a2e0055;transform-origin:50% -20px;animation:swing 2.6s ease-in-out infinite}@keyframes swing{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}#station-controls{position:absolute;inset:0;pointer-events:none}.station{position:absolute;display:flex;flex-direction:column;justify-content:flex-end;padding:0 8px 10px;pointer-events:none}.station button{pointer-events:auto}.station .tap{flex:1;min-height:0;margin-bottom:4px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px;padding:0 2px 2px;border:0;border-radius:12px;background:transparent;color:#fff9eb}.station .tap:hover:enabled{background:#ffffff1f}.station .tap span{max-width:100%;padding:2px 8px;border-radius:9px;background:#2b1d14b8;font-size:12px;line-height:1.2}.station .tap small{font-size:11px;color:#fff4dc;text-shadow:0 1px 2px #2b1d14}.station .mini-upgrade{min-height:32px;padding:4px 6px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:var(--gold);border-color:#e0a43a;color:#3b2a1a}.station .mini-upgrade:hover:enabled{background:#ffdc85}.station .mini-upgrade:disabled{opacity:1;background:#2b1d1433;border-color:transparent;color:#fff4dcb3}.station.compact{padding-bottom:6px}.station.compact .tap small{display:none}.station.compact .tap span{font-size:11px;padding-inline:6px}.station.compact .mini-upgrade{min-height:28px;font-size:11px}#world-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:36px;padding:8px 16px;background:#f8ecd2;color:#6e553f;font-size:12px}#queue-label{white-space:nowrap}#tutorial{text-align:right;font-weight:600;color:#8a3c14}#sheet{min-height:0;flex:1;display:flex;flex-direction:column;background:var(--paper);border:1px solid #ded6c3;border-radius:14px;overflow:hidden}.sheet-top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 12px;border-bottom:1px solid #e4ddcb}.tabs{display:flex;gap:6px}.tabs button{min-height:40px;padding:7px 14px;border:0;border-radius:8px;background:transparent;font-size:13px}.tabs button[aria-selected=true]{background:var(--forest);color:var(--paper)}.amount{display:flex;flex-shrink:0;padding:3px;border-radius:8px;background:#efe8d7}.amount button{min-height:34px;padding:4px 10px;border:0;background:transparent;font-size:12px}.amount button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #0002}.cards{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:10px;padding:12px;overflow:auto}article{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;min-width:0;padding:10px 12px;border:1px solid #e3dcc8;border-radius:10px;background:#fffdf6}article .number{font-size:22px;color:#b9965a}article>div{flex:1;min-width:110px}h3{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0 0 3px;font-size:13px;font-weight:700}.badge{padding:2px 7px;border-radius:999px;background:#ffe6c7;color:#8a3c14;font-size:11px;font-weight:700}article p{margin:0;font-size:12px;line-height:1.45;color:var(--muted)}article>button{width:100%;min-height:38px;padding:6px;font-size:12px}article>button:not(.reward):enabled{background:var(--forest);color:var(--paper);border-color:var(--forest)}article>button:not(.reward):hover:enabled{background:#1b3a2e}button.done:disabled{opacity:1;background:transparent;border-style:dashed;color:#3f6b55}#panel-street{overflow:auto;padding:16px}.street-card{max-width:650px;margin:auto}.street-card h2{margin:2px 0 6px;font-size:26px}.street-card p{margin:2px 0;font-size:13px;line-height:1.55;color:var(--muted)}#bonus{font-weight:700;color:var(--forest)}#prestige{width:100%;max-width:420px;margin:10px 0}h2{font:700 30px Georgia,serif;letter-spacing:-.5px;margin:10px 0 16px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:3px;color:#a35f37}body[data-screen=title] #world{flex:1 1 auto}body[data-screen=title] #world-footer{display:none}#title-screen{position:absolute;inset:0;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at center,#2b1d1400 35%,#2b1d1440)}.title-card{max-width:min(640px,100%);padding:24px 40px 22px;border:1px solid #e3d3b1;border-radius:26px;background:#fff9ebf2;box-shadow:0 24px 70px #3b2e2340;text-align:center;transition:opacity .4s,transform .4s}body:not([data-ready]) .title-card{opacity:0;transform:translateY(8px)}.title-mark{font-size:32px;color:#bd472b}#hero-title{margin:2px 0 8px;font-size:clamp(34px,6vw,60px);line-height:1.05}#tagline{margin:0 0 20px;font-size:16px;color:var(--muted)}#play{min-width:220px;min-height:56px;border-radius:14px;font-size:18px;box-shadow:0 5px #173227}#play:active:enabled{transform:translateY(3px);box-shadow:0 2px #173227}#best{margin:14px 0 0;font-size:13px;color:var(--muted)}#best:empty{display:none}footer{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:32px;padding:6px max(24px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));color:var(--muted);font-size:11px}#status{margin:0 0 0 auto;text-align:right}#controls,#pause-controls{display:none}@media(hover:hover)and (pointer:fine){#controls,#pause-controls{display:block}}#pause-overlay{position:fixed;inset:0;z-index:5;display:grid;place-items:center;padding:20px;background:#16392ecc}.card{max-width:min(440px,100%);padding:26px 30px;border:1px solid #c4b58d;border-radius:22px;background:var(--paper);box-shadow:0 18px 80px #071c3166;text-align:center}.card h2{margin:0 0 6px}#pause-stats{margin:0 0 18px;font-size:14px;color:var(--muted)}#resume{min-width:200px;min-height:52px;font-size:16px}#pause-controls{margin:16px 0 0;font-size:12px;color:var(--muted)}dialog{max-width:min(480px,92vw);max-height:90dvh;overflow:auto;padding:26px 28px;border:1px solid #c4b58d;border-radius:22px;background:var(--paper);color:var(--forest);text-align:center;box-shadow:0 18px 100px #071c3166}dialog[open]{animation:pop .3s cubic-bezier(.2,1.4,.4,1)}@keyframes pop{0%{transform:scale(.9);opacity:0}}dialog::backdrop{background:#18372cc9}dialog h2{margin:4px 0 8px;font-size:28px}dialog p{margin:0;font-size:15px;line-height:1.6;color:var(--muted);white-space:pre-line}#modal-body:empty,#modal-note:empty{display:none}dialog[data-kind=offline] h2{font:800 36px system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-variant-numeric:tabular-nums}dialog[data-kind=dish] #modal-body:first-line{font-size:19px;font-weight:700;color:var(--forest)}#modal-art{position:relative;isolation:isolate;display:grid;place-items:center;width:104px;height:104px;margin:0 auto 14px;font:52px Georgia,serif;color:#c85832}#modal-art:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:50%;background:repeating-conic-gradient(#f1d8a9 0deg 15deg,#f8ecd2 15deg 30deg);animation:sun 30s linear infinite}@keyframes sun{to{transform:rotate(360deg)}}#modal-actions{display:flex;gap:10px;margin-top:20px}#modal-actions button{flex:1 1 0;min-width:0;min-height:54px;font-size:15px}#modal-note{margin-top:12px;font-size:13px;font-weight:600;color:#a03a0a}#modal-settings{display:flex;flex-direction:column;gap:10px;margin-top:12px}.switch{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:10px 12px 10px 16px;font-size:15px}.switch:after{content:attr(data-state);min-width:70px;padding:5px 12px;border-radius:999px;background:#e4dccb;color:#5d4f3c;font-size:13px}.switch[aria-pressed=true]:after{background:var(--forest);color:var(--paper)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}body[data-layout=portrait] #world{flex-basis:58%;min-height:370px}body[data-layout=portrait] .cards{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-layout=tall] #world{flex-basis:62%;min-height:470px}body[data-layout=tall] .cards{grid-template-columns:1fr}body[data-layout=wide] #app{flex-direction:row}body[data-layout=wide] #world{flex:1;min-width:0;min-height:0}body[data-layout=wide] #sheet{flex:0 0 38%}body[data-layout=wide] .cards{grid-template-columns:1fr}body[data-layout=wide] #world-footer{display:none}@media(max-width:620px){header{min-height:60px;padding:max(8px,env(safe-area-inset-top)) 12px 8px}.brand-mark{display:none}h1{font-size:18px}.brand p{font-size:10px;letter-spacing:1px}.header-actions{gap:6px}.header-actions button{min-height:40px;padding:6px 12px;font-size:12px}#app{padding:8px 8px 0;gap:8px}#world{border-radius:12px}#coins{font-size:17px}.sheet-top{flex-wrap:wrap;gap:4px;padding:5px}.tabs{width:100%;gap:2px}.tabs button{flex:1;padding:7px 4px;font-size:12px}.amount{margin-left:auto}.cards{padding:8px;gap:8px}#world-footer{padding:6px 12px;font-size:11px;min-height:30px}footer{min-height:26px;padding:4px 12px max(6px,env(safe-area-inset-bottom))}.station{padding-inline:4px}dialog{padding:22px 18px}#modal-actions{flex-direction:column}.title-card{padding:22px 20px 18px}}@media(max-height:500px){header{min-height:50px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px}.brand-mark{width:34px;height:34px;font-size:20px;line-height:32px}h1{font-size:18px}.brand p{font-size:10px;margin-top:2px}.header-actions button{min-height:38px;padding:5px 12px}#app{padding-top:6px}#world{border-radius:10px}footer{min-height:24px;padding-top:3px;padding-bottom:max(3px,env(safe-area-inset-bottom))}.sheet-top{flex-wrap:wrap;gap:2px;padding:5px}.tabs{width:100%;justify-content:space-between}.tabs button{min-height:36px;padding:6px 8px;font-size:12px}.amount{margin-left:auto}#modal-art,.title-mark{display:none}dialog{padding:16px 20px}dialog h2{margin:4px 0;font-size:24px}#modal-actions{flex-direction:row;margin-top:12px}#modal-actions button{min-height:48px}.title-card{padding:14px 24px}#hero-title{margin:0 0 4px;font-size:32px}#tagline{margin-bottom:10px;font-size:14px}#play{min-height:48px}#best{margin-top:8px}.card{padding:16px 24px}}@media(max-height:500px)and (min-width:621px){#app{flex-direction:row}#world{flex:1;min-width:0;min-height:0}#sheet{flex:0 0 40%}.cards{grid-template-columns:1fr}#world-footer{display:none}}
