
:root{color-scheme:dark;--bg:#101722;--panel:#192330;--line:#2c3a49;--text:#edf3f5;--muted:#91a1b2;--mint:#a2ecc5;--gold:#f5d378}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:14px}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);background:#233140;color:var(--text);padding:10px 14px;border-radius:9px;transition:transform .15s,background .15s}button:hover{background:#34475a;transform:translateY(-1px)}button:disabled{opacity:.4;cursor:not-allowed;transform:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}a{color:inherit;text-decoration:none}header{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 3.2%;gap:20px}.back{font-size:10px;font-weight:800;letter-spacing:1.4px;color:#b0bdca}.brand{font-size:23px;font-weight:950;letter-spacing:-1px;color:#75e1e0}.brand span{color:var(--gold)}.header-actions{display:flex;align-items:center;gap:9px}.header-actions button{font-size:11px;padding:8px 11px}.pill{font-size:9px;letter-spacing:1.2px;background:#2b3240;color:#c9d2df;padding:7px 10px;border-radius:20px}main{max-width:1700px;margin:auto;padding:34px 3.2% 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:25px}.eyebrow,.section-label{font-size:10px;font-weight:800;letter-spacing:1.5px;color:var(--muted)}.eyebrow{color:var(--mint);margin:0 0 12px}h1{font-size:clamp(31px,3.5vw,49px);line-height:1.12;letter-spacing:-2px;margin:0 0 12px}h1 span{color:var(--mint)}.intro>div>p:last-child{color:var(--muted);font-size:13px}.intro-note{display:flex;align-items:center;gap:16px;border:1px solid var(--line);border-radius:14px;background:#1a2531;padding:19px 24px;max-width:380px}.intro-note p{margin:6px 0 0;font-size:12px;color:var(--muted)}.spark{font-size:32px;color:var(--gold)}.game-layout{display:grid;grid-template-columns:237px minmax(350px,1fr) 252px;gap:20px;align-items:start}.panel{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:20px}.section-label{display:flex;align-items:center;justify-content:space-between}.section-label span{letter-spacing:.5px;color:var(--mint);font-size:9px}.player-panel{text-align:center}#portrait{width:150px;height:142px;image-rendering:pixelated;background:radial-gradient(ellipse,#31434e,transparent 70%);margin:10px 0 0}h2{font-size:19px;letter-spacing:-.5px;line-height:1.3;margin:8px 0}.player-panel>p{color:var(--muted);font-size:11px;margin:0 0 17px}.full{width:100%}.secondary{background:#233340;font-size:11px}.divider{height:1px;background:var(--line);margin:23px 0}.money-label{text-align:left;color:var(--muted);font-size:11px;margin-top:20px}.balance{text-align:left;font-size:35px;letter-spacing:-1px;font-weight:800;margin:3px 0 15px}.budget-line{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.budget-line strong{color:var(--mint)}.bar{height:6px;background:#0d1823;border-radius:8px;margin:9px 0 20px;overflow:hidden}.bar i{display:block;height:100%;background:var(--mint);transition:width .5s}.mini-grid{display:grid;grid-template-columns:1fr 1fr;text-align:left;gap:16px}.mini-grid span{display:block;font-size:10px;color:var(--muted)}.mini-grid strong{display:block;font-size:17px;margin-top:5px}.goal-box{text-align:left;background:#202f38;border:1px solid #354848;padding:14px;border-radius:10px;margin-top:21px}.goal-box>span{font-size:9px;letter-spacing:1px;color:var(--mint)}.goal-box>strong{display:block;font-size:12px;margin-top:9px}.goal-box p{font-size:10px;color:var(--muted);line-height:1.7}.goal-box button{background:#30463f;color:var(--mint);border-color:#3f6150}.text-button{background:transparent;border:0;color:var(--muted);font-size:11px;margin-top:12px}.world-column{border:1px solid var(--line);border-radius:15px;background:var(--panel);overflow:hidden}.world-toolbar{display:flex;align-items:center;justify-content:space-between;padding:14px 17px}.world-toolbar>div{display:flex;align-items:center;gap:9px}.world-toolbar strong{font-size:12px}.world-toolbar #day{font-size:9px;letter-spacing:.5px;color:var(--muted);margin-left:10px}.world-toolbar button{padding:4px 9px}.live-dot{width:6px;height:6px;border-radius:100%;background:var(--mint)}.world-frame{position:relative;background:#6ea286;aspect-ratio:1.38;overflow:hidden}#world{width:100%;height:100%;display:block;touch-action:manipulation}.world-chip,.time-chip{position:absolute;top:14px;background:#172a29e8;padding:8px 11px;border:1px solid #6a938050;border-radius:7px;font-size:8px;letter-spacing:1px;pointer-events:none}.world-chip{left:14px;color:#c7f1da}.time-chip{right:14px;color:var(--gold)}.world-hint{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);width:max-content;max-width:95%;text-align:center;font-size:9px;background:#102721dd;border:1px solid #60816c;padding:9px 12px;border-radius:7px;pointer-events:none}.day-footer{display:flex;justify-content:space-between;align-items:center;padding:17px;gap:10px}.day-footer strong{font-size:12px}.day-footer p{font-size:10px;color:var(--muted);margin:6px 0 0}.primary{background:var(--mint);color:#142c24;border-color:var(--mint);font-weight:800;font-size:12px;white-space:nowrap}.primary:hover{background:#bdfcda}.quick-places{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);padding:12px 8px;gap:4px}.quick-places button{background:transparent;border:0;font-size:21px;color:#accbbb;padding:6px 2px}.quick-places span{display:block;font-size:9px;color:var(--muted);margin-top:5px}.right-column{display:flex;flex-direction:column;gap:17px}.right-column h2{margin-top:19px}.muted{color:var(--muted);font-size:11px;line-height:1.7}.small{font-size:10px}.challenge{display:flex;gap:10px;align-items:center;margin-top:19px;padding-top:15px;border-top:1px solid var(--line)}.check{border:1px solid #4f635d;background:#263c35;color:var(--mint);border-radius:50%;width:28px;height:28px;display:grid;place-items:center;flex-shrink:0}.challenge strong{font-size:11px}.challenge small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.reward-shelf{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.trophy{width:49px;height:52px;background:#243340;border:1px solid #3b4a57;border-radius:9px;display:grid;place-items:center;font-size:25px}.trophy.locked{opacity:.35;filter:grayscale(1)}.tip-card{padding:19px 21px;background:#292c29;border:1px solid #414238;border-radius:14px}.tip-card>span{font-size:9px;letter-spacing:1px;color:var(--gold)}.tip-card p{font-size:12px;line-height:1.8;color:#d2d0b8}.tip-card small{font-size:9px;color:#aaa891;line-height:1.5;display:block}footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);margin-top:30px;padding:21px 0;color:var(--muted);font-size:9px;letter-spacing:1px}footer span{letter-spacing:0}footer button{padding:4px 8px;font-size:9px;margin-left:10px}dialog{background:var(--panel);color:var(--text);border:1px solid #4d6671;border-radius:20px;padding:28px;width:min(640px,94vw);max-height:90vh;box-shadow:0 25px 100px #0009}dialog::backdrop{background:#07111bdc;backdrop-filter:blur(5px)}dialog h2{font-size:28px;margin:5px 0 10px}dialog p{line-height:1.7;color:#a9bac9;font-size:13px}.modal-top{display:flex;justify-content:space-between;align-items:start;gap:15px}.modal-top button{padding:5px 10px}.modal-logo{width:100%;max-height:210px;object-fit:contain;border-radius:12px}.field{display:block;margin:17px 0;font-size:11px;color:#bdcbd5}.field input,.field select{display:block;width:100%;margin-top:8px;background:#0f1c27;border:1px solid #435562;border-radius:8px;padding:11px;color:white}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.swatches{display:flex;gap:8px;margin-top:9px}.swatch{width:32px;height:32px;border-radius:8px;padding:0}.swatch.selected{outline:3px solid white;outline-offset:2px}.location-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:15px 0}.location-card{text-align:left;padding:13px}.location-card strong{display:block;font-size:13px}.location-card small{display:block;font-size:10px;line-height:1.6;color:#afc0cb;margin-top:7px}.location-card.selected{background:#2d4b40;border-color:var(--mint)}.shop-list{display:grid;gap:10px;margin:18px 0}.shop-item{display:flex;gap:12px;align-items:center;background:#101c28;border:1px solid var(--line);border-radius:11px;padding:13px}.shop-item .item-icon{font-size:30px;width:40px;text-align:center}.shop-item .item-copy{flex:1}.shop-item strong{font-size:13px}.shop-item small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:5px}.shop-item button{font-size:11px;white-space:nowrap}.notice{padding:12px;border:1px solid #536a52;background:#2a3e33;border-radius:9px;font-size:12px;line-height:1.7;color:#d3ead7}.notice.warning{background:#41372b;border-color:#736142;color:#f3d49e}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.journal-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.journal-row small{color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,30px);opacity:0;background:#d6f8e4;color:#152c22;padding:14px 22px;border-radius:12px;box-shadow:0 8px 40px #0006;z-index:20;pointer-events:none;transition:.2s;max-width:90vw;font-weight:650;font-size:13px}#toast.show{opacity:1;transform:translate(-50%,0)}.mobile-pad{display:none}.world-frame:fullscreen{aspect-ratio:auto;height:100vh;width:100vw}.world-frame:fullscreen #world{object-fit:contain;background:#193326}@media(min-width:1600px){.world-frame{aspect-ratio:1.5}}@media(max-width:1200px){.game-layout{grid-template-columns:210px minmax(320px,1fr)}.right-column{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr}.world-frame{aspect-ratio:1.16}.world-hint{font-size:8px}.world-toolbar #day{margin-left:2px}}@media(max-width:720px){header{height:64px;padding:0 16px}.brand{font-size:18px}.back{font-size:8px}.pill{display:none}.header-actions button{font-size:9px;padding:7px}.intro-note{display:none}main{padding:24px 14px 0}.intro{margin-bottom:18px}h1{font-size:36px}.game-layout{display:flex;flex-direction:column;gap:14px}.player-panel{width:100%;display:grid;grid-template-columns:70px 1fr 1fr;text-align:left;align-items:center;gap:7px 12px;padding:13px}.player-panel>.section-label,.player-panel .divider,.player-panel .money-label,.player-panel .budget-line,.player-panel .bar,.player-panel .goal-box,.player-panel>.text-button{display:none}.player-panel #portrait{grid-row:1/4;width:70px;height:75px;margin:0}.player-panel h2{font-size:16px;margin:0}.player-panel>p{font-size:9px;margin:0;grid-row:2;grid-column:2}.player-panel #customize{grid-column:2;grid-row:3;padding:6px;font-size:9px}.player-panel .balance{grid-column:3;grid-row:1/3;font-size:27px;margin:0;text-align:right}.player-panel .mini-grid{grid-column:3;grid-row:3;gap:4px}.mini-grid span{font-size:8px}.mini-grid strong{font-size:11px;margin-top:2px}.world-column{width:100%}.world-frame{aspect-ratio:1.15}.world-toolbar{padding:10px}.world-toolbar strong{font-size:10px}.world-toolbar #day{font-size:8px}.world-hint{bottom:9px;max-width:70%;left:auto;right:8px;transform:none;font-size:8px}.world-chip{font-size:6px;padding:6px;top:8px;left:8px}.time-chip{font-size:8px;padding:6px;top:8px;right:8px}.mobile-pad{position:absolute;left:8px;bottom:8px;display:grid;grid-template-columns:repeat(3,27px);gap:3px}.mobile-pad button{padding:4px;background:#173429ce;font-size:14px;border-color:#7caa8877}.mobile-pad button:first-child{grid-column:2}.mobile-pad button:nth-child(2){grid-row:2;grid-column:1}.mobile-pad button:nth-child(3){grid-row:2;grid-column:2}.mobile-pad button:nth-child(4){grid-row:2;grid-column:3}.right-column{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:10px}.right-column .panel{padding:15px}.tip-card{grid-column:1/-1}.day-footer{padding:13px}.day-footer strong{font-size:11px}.day-footer p{font-size:9px;max-width:185px}.right-column h2{font-size:16px}footer{font-size:8px;flex-direction:column;align-items:start}.location-cards{grid-template-columns:1fr 1fr}dialog{padding:20px}.form-grid{gap:0 12px}.shop-item{padding:10px;gap:7px}.shop-item .item-icon{width:27px;font-size:24px}}

.skill-track{height:34px;background:#0b1720;position:relative;overflow:hidden;border-radius:9px;margin:25px 0}.skill-track i{position:absolute;left:38%;width:24%;height:100%;background:#8bdab9}.skill-track b{position:absolute;height:100%;width:5px;background:#fff;box-shadow:0 0 10px #fff;left:0}

.brand img{width:160px;height:63px;object-fit:cover;object-position:50% 55%;border-radius:6px}.intro-note{border-color:#527968;background:linear-gradient(120deg,#203f36,#223447)}.world-frame{box-shadow:inset 0 0 70px #2d795a44}#world{image-rendering:pixelated}.primary{box-shadow:0 3px 0 #558e76}.right-column .panel:first-child{border-top:3px solid #91dcb3}.right-column .panel:nth-child(2){border-top:3px solid #bba0ec}.world-chip{color:#ffe391}.goal-box{border-color:#547962}@media(max-width:720px){.brand img{width:105px;height:45px}.header-actions{gap:4px}.header-actions button{font-size:8px;padding:6px}.back{font-size:7px;letter-spacing:.3px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.memory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px auto;max-width:320px}.memory-tile{height:70px;font-size:28px;color:#91c5bb;background:#244746;border-color:#4a7270}.memory-tile.lit{background:#c4f97c;color:#244135;box-shadow:0 0 24px #b4ef7d99;transform:scale(1.04)}

@media(max-width:720px){#help{font-size:0;width:22px;padding:4px}#help::before{content:"?";font-size:12px}#audioSettings{padding:5px;font-size:12px}.header-actions{gap:3px}}

/* Keep the entire application usable when native fullscreen is denied. */
html.game-expanded body{position:fixed;inset:0;height:100dvh;overflow:auto;z-index:9999;background:#111b28}html.game-expanded header{position:sticky;top:0;z-index:30;background:#111b28;padding-top:10px;padding-bottom:10px}html.game-expanded main{max-width:none;padding-top:12px}html.game-expanded .intro,html.game-expanded main>footer{display:none}#exitExpanded{position:fixed;bottom:12px;right:12px;z-index:10000;background:#d4f59b;color:#18272c;border:2px solid #243b36;padding:10px 16px;border-radius:12px;font-weight:800}#exitExpanded[hidden]{display:none}

/* Character studio */
dialog.designer-dialog{width:min(1060px,96vw);padding:25px}.avatar-studio{display:grid;grid-template-columns:310px minmax(0,1fr);gap:28px;align-items:start}.avatar-preview{position:sticky;top:0;text-align:center;background:#101c2b;border:1px solid #3b536c;border-radius:16px;padding:18px;overflow:hidden}.avatar-preview canvas{width:100%;max-height:380px;object-fit:contain;display:block;border-radius:12px;margin:14px 0;image-rendering:pixelated}.avatar-preview>strong{display:block;font-size:24px;color:var(--mint)}.avatar-preview-actions{display:flex;gap:8px;justify-content:center}.avatar-preview-actions button{font-size:11px}.avatar-controls{min-width:0}.avatar-controls>.field:first-child{margin-top:0}.avatar-colors{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.avatar-colors label{font-size:10px;color:#c5d1dc}.avatar-colors input{display:block;width:100%;height:34px;border:1px solid #516578;border-radius:7px;background:#13202c;margin-top:7px;cursor:pointer}.avatar-section{border:1px solid #3a4c5c;border-radius:12px;margin:12px 0;padding:14px}.avatar-section summary{cursor:pointer;font-weight:750;color:var(--mint);font-size:14px}.avatar-section summary span{float:right;font-size:10px;color:var(--muted);margin-top:3px}.avatar-choices{border:0;padding:0;margin:20px 0}.avatar-choices legend{font-size:11px;font-weight:750;margin-bottom:10px;width:100%}.avatar-choices legend span{float:right;color:var(--muted);font-size:10px;font-weight:400}.avatar-options{display:flex;flex-wrap:wrap;gap:6px}.avatar-options button{font-size:10px;padding:8px 10px;border-radius:7px}.avatar-options button[aria-pressed=true]{background:#b0f0d2;color:#17372b;border-color:#b0f0d2;box-shadow:0 0 0 2px #b0f0d222}.avatar-section output{float:right;color:var(--mint)}.avatar-save{position:sticky;bottom:-25px;background:#192330f5;border-top:1px solid #405369;padding:15px 0 0;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;backdrop-filter:blur(10px)}.avatar-save>span{font-size:11px;color:var(--muted)}
@media(max-width:720px){dialog.designer-dialog{padding:17px}.avatar-studio{grid-template-columns:1fr;gap:16px}.avatar-preview{position:sticky;top:-17px;z-index:2;padding:10px;display:grid;grid-template-columns:120px 1fr;gap:0 12px;align-items:center}.avatar-preview canvas{grid-column:1;grid-row:1/6;max-height:160px;margin:0}.avatar-preview>.eyebrow{grid-column:2;font-size:8px;margin:0}.avatar-preview>strong{font-size:20px}.avatar-preview p{margin:5px 0;font-size:9px;line-height:1.4}.avatar-preview>p:last-child{display:none}.avatar-preview-actions button{font-size:10px;padding:7px}.avatar-save{bottom:-17px}.avatar-save>span{max-width:110px;font-size:9px}.avatar-colors{gap:8px}.avatar-section{padding:12px}}

.avatar-options button{width:82px;min-height:36px;padding:6px 3px}.avatar-options canvas{display:block;width:68px;height:76px;margin:0 auto 5px;image-rendering:pixelated;background:#132330;border-radius:6px}.avatar-options{gap:7px}@media(max-width:720px){.avatar-options button{width:calc((100% - 21px)/4);font-size:9px}.avatar-options canvas{width:100%;max-width:68px;height:70px;object-fit:contain}}

/* Furnished home and allowance-powered catalog */
dialog.home-dialog{width:min(1200px,96vw)}.home-studio{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:24px;align-items:start}.home-view{position:sticky;top:0;min-width:0}.home-view>canvas{width:100%;display:block;border:1px solid #4b6675;border-radius:14px;background:#18334a;image-rendering:pixelated;cursor:pointer}.home-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0}.home-toolbar label{font-size:10px;color:var(--muted)}.home-toolbar select{display:block;background:#172634;color:var(--text);border:1px solid #41596a;border-radius:7px;padding:8px;margin-top:5px;max-width:170px}.home-toolbar>span{font-size:10px;color:var(--mint)}.home-selection{padding:15px;background:#12212f;border:1px solid #405568;border-radius:12px;min-height:145px}.home-selection h3{margin:8px 0;font-size:20px;color:var(--mint)}.home-selection p{font-size:11px;margin:7px 0;line-height:1.6}.home-selection .eyebrow{font-size:9px;color:var(--gold)}.home-selection .text-button{display:block;margin:5px 0 0;padding:5px}.home-activities{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.home-activities button{font-size:10px;padding:9px}.home-tabs{display:flex;flex-wrap:wrap;gap:6px;position:sticky;top:0;z-index:1;background:#192330;padding-bottom:10px}.home-tabs button{font-size:10px;padding:9px}.home-tabs [aria-pressed=true]{background:var(--mint);color:#183528}.home-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-card{background:#112130;border:1px solid #3a5266;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0}.home-card.selected{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}.home-card canvas{width:100%;height:120px;object-fit:contain;border-radius:7px;image-rendering:pixelated}.home-card strong{font-size:12px;line-height:1.4}.home-card small{font-size:10px;color:var(--muted);line-height:1.5}.home-card button{font-size:11px;margin-top:auto}.home-catalog>.field{margin:7px 0}.home-catalog{min-width:0}@media(max-width:720px){dialog.home-dialog{padding:16px}.home-studio{grid-template-columns:1fr;gap:15px}.home-view{position:relative}.home-view>canvas{max-height:250px;object-fit:contain}.home-selection{min-height:100px;padding:12px}.home-selection h3{font-size:18px}.home-tabs{top:-16px;padding-top:8px}.home-items{grid-template-columns:repeat(2,minmax(0,1fr))}.home-card canvas{height:110px}.home-toolbar{padding:7px 0}.home-view>p{font-size:9px}}

/* Keep desktop room controls reachable, including on shorter laptop screens. */
@media(min-width:721px){.home-view{max-height:calc(84dvh - 130px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:5px}.home-view>canvas{max-height:32dvh;object-fit:contain}}
.home-buy-reason{color:var(--gold);border-left:3px solid var(--gold);padding:7px 9px;background:#f5d3780b;border-radius:4px}

/* The interactive canvas box must match its image; no letterbox hit-test offset. */
@media(min-width:721px){.home-view>canvas{width:min(100%,50.2857dvh);height:auto;max-height:none;object-fit:fill;margin-inline:auto}}
@media(max-width:720px){.home-view>canvas{width:min(100%,392.857px);height:auto;max-height:none;object-fit:fill;margin-inline:auto}}

#homeInterior{touch-action:none;outline-offset:3px}.room-mode{display:flex;gap:7px;margin-top:10px}.room-mode button{flex:1;font-size:11px;padding:10px 6px}.room-mode [aria-pressed=true]{background:var(--mint);color:#183528}.room-edit-buttons,.room-pad{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}.room-edit-buttons button,.room-pad button{font-size:10px;padding:9px 12px}#roomSelected{font-size:12px;color:var(--gold)}.room-interaction{padding:10px;background:#263b49;border:1px solid #426274;border-radius:9px;font-size:11px}.room-interaction:empty{display:none}.room-interaction strong{display:block;color:var(--mint);margin-bottom:8px}.room-interaction button{font-size:10px;margin:3px;padding:9px}.room-pad button{min-width:43px;min-height:40px}#roomHint{min-height:30px;line-height:1.5}.home-view [hidden]{display:none!important}
.shop-dialog{width:min(1440px,97vw);max-width:1440px}.shop-studio{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:22px}.shop-world{min-width:0}.shop-world canvas{display:block;width:100%;border:3px solid #567d8d;border-radius:16px;background:#1b3045;touch-action:none}.shop-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.shop-nav button{font-size:12px;padding:10px 6px}.shop-panel{max-height:78vh;overflow:auto;padding:4px 12px 16px;scrollbar-width:thin}.shop-wallet{padding:12px;background:#263d50;border-radius:10px;color:#ffdfa2}.shop-dialogue{padding:20px;background:#273b54;border:1px solid #8172a3;border-radius:14px;margin:14px 0}.shop-dialogue p{font-size:18px;line-height:1.65}.shop-dialogue button{margin:8px 5px 0 0}.shop-choice{display:block;width:100%;text-align:left;margin:10px 0;white-space:normal;line-height:1.5}.shop-choice small{display:block;color:#b6ded2;margin-top:5px}.shop-panel .shop-item{padding:12px 0}.shop-panel .shop-item button{margin-top:8px}.quick-places{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:850px){.shop-studio{grid-template-columns:1fr}.shop-panel{max-height:none;overflow:visible}.shop-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-places{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-dialogue p{font-size:16px}}
.friend-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.friend-card{background:#263d51;border:1px solid #5d7889;border-radius:16px;padding:18px}.friend-card canvas{display:block;width:150px;max-width:100%;margin:auto}.friend-card p{font-size:14px;line-height:1.6}.friend-card h3{color:#f5d397}.friend-card button{width:100%;white-space:normal}.friend-card small{display:block;margin-top:12px;color:#b8e8ca}.friend-conversation{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:25px}.friend-profile{padding:18px;background:#22394d;border-radius:16px;align-self:start}.friend-profile canvas{width:180px;max-width:100%;display:block;margin:auto}.friend-profile li{font-size:13px;line-height:1.7;margin:8px 0}.friend-profile p{font-size:14px}.friend-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.friend-actions button{white-space:normal}.friend-companion{padding:16px;margin:14px 0;background:#293a53;border:1px solid #9d88bd;border-radius:12px}.friend-companion button{margin:5px}.adventure-stage canvas{width:100%;border-radius:14px;border:2px solid #7e9c9b}.adventure-stage h3{color:#f6d48c}.adventure-stage .shop-choice{max-width:100%}@media(max-width:850px){.friend-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.friend-conversation,.friend-cards{grid-template-columns:1fr}.friend-profile canvas{width:110px}.friend-profile{padding:12px}.friend-profile ul{max-height:100px;overflow:auto}.friend-actions{grid-template-columns:1fr}header{flex-wrap:wrap}}
.work-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.work-card,.work-contracts article{padding:20px;background:#263e53;border:1px solid #6a8292;border-radius:15px}.work-card h3,.work-offer h3{color:#f5d59a}.work-card p,.work-contracts p{line-height:1.6}.work-card button{width:100%}.work-badge{color:#a5e4c1;font-size:13px}.work-contracts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.work-contracts h3{font-size:17px}.work-contracts small{display:block;line-height:1.7;margin:10px 0}.work-contracts button{width:100%;white-space:normal}.work-offer canvas,.work-play canvas{display:block;width:100%;border-radius:14px;border:2px solid #658796;touch-action:none}.work-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:16px 0}.work-inputs button{font-size:17px;border-width:3px;white-space:normal;padding:15px 6px}.work-ticket{background:#233d52;border:1px solid #e4c789;padding:15px;border-radius:12px;font-weight:bold;color:#ffe2a0}.work-footer{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.work-footer span{align-self:center;font-size:13px;color:#bdd7db}.pay-stub{background:#e6eed8;color:#22384b;padding:24px;border-radius:10px;max-width:480px;margin:20px auto}.pay-stub>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px dashed #78918b}.pay-stub>div:last-child{font-size:22px;border-top:2px solid #78918b}.work-play .notice{min-height:48px}@media(max-width:700px){.work-contracts,.work-cards{grid-template-columns:1fr}.work-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.work-inputs button{font-size:15px}.pay-stub{padding:16px}.pay-stub>div:last-child{font-size:19px}}

/* Pocket High and the guided handbook */
.school-canvas,#schoolConversationArt{width:100%;display:block;border:3px solid #8cacc3;border-radius:14px;touch-action:none;outline-offset:3px}.school-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.school-cards article{background:#263d51;border:1px solid var(--club);padding:20px;border-radius:15px}.school-icon{font-size:32px;color:var(--club)}.school-cards h3{color:var(--club)}.school-cards p{font-size:14px;line-height:1.7}.school-approach{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:15px 0}.school-approach button{white-space:normal;font-size:12px;min-height:44px}.school-blackboard{background:#234a49;border:3px solid #b8996e;border-radius:12px;padding:25px;margin:18px 0;color:#f8eed6}.school-blackboard>span{font-size:35px;color:#ffdc8c}.school-blackboard h3{font-size:22px;line-height:1.5}.school-blackboard p{font-size:20px;line-height:1.7}.school-answers{display:grid;gap:12px}.school-answers button{text-align:left;font-size:18px;white-space:normal;min-height:52px}details{background:#263d51;padding:16px;border-radius:10px;margin:18px 0}summary{cursor:pointer;color:#a8e3c6}.tutorial-bar{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:18px 24px;background:linear-gradient(110deg,#293e61,#21483e);border:2px solid #a0d9bb;border-radius:17px;margin:0 0 22px}.tutorial-bar[hidden]{display:none}.tutorial-bar>div{flex:1;min-width:180px}.tutorial-bar strong{display:block;color:#ffe0a0}.tutorial-bar p{font-size:13px;margin:7px 0 0}.tutorial-welcome{background:#263d51;padding:22px;border-radius:13px;margin:18px 0;line-height:1.9}.tutorial-handbook{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2fr);gap:20px;margin-top:24px}.tutorial-handbook nav{display:flex;flex-direction:column;gap:6px;max-height:520px;overflow:auto}.tutorial-handbook nav button{text-align:left;font-size:12px;white-space:normal}.tutorial-handbook [aria-current=page]{background:#a4dcc2;color:#19332b}.tutorial-handbook article{background:#22394d;padding:22px;border-radius:12px;line-height:1.9}.tutorial-handbook h3{color:#ffe0a0}.quick-places{grid-template-columns:repeat(7,minmax(0,1fr))}.work-contracts{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:850px){.quick-places{grid-template-columns:repeat(4,minmax(0,1fr))}.school-approach{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.school-cards,.tutorial-handbook,.work-contracts{grid-template-columns:1fr}.tutorial-handbook nav{max-height:180px}.tutorial-bar{padding:14px}.school-blackboard{padding:17px}.school-blackboard h3,.school-blackboard p{font-size:17px}.quick-places{grid-template-columns:repeat(3,minmax(0,1fr))}}

.school-route{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-width:550px;margin:20px auto}.school-route button{min-height:60px;padding:4px;font-size:12px;border-radius:8px}.school-pads{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.school-pads button{font-size:35px;padding:20px 5px}.school-pattern{font-size:25px;letter-spacing:6px;color:#ffe1a0;text-align:center}@media(max-width:600px){.school-route button{min-height:48px;font-size:9px}.school-pattern{font-size:18px;letter-spacing:2px}}

/* A visible world, contextual speech bubbles, and a deliberate daily rhythm. */
[hidden]{display:none!important}.game-layout{grid-template-columns:200px minmax(0,1fr) 315px}.world-column{container-type:inline-size;container-name:play}.right-column{position:sticky;top:14px}.conversation-dock:empty{display:none}#modal.choice-bubble{position:relative;inset:auto;margin:0 0 18px;padding:20px;width:100%;max-width:100%;max-height:70vh;overflow:auto;border-radius:20px 20px 20px 5px;border:2px solid #82bba8;box-shadow:0 10px 35px #0004;background:#1e3242;animation:bubble-in .35s ease-out}#modal.choice-bubble::backdrop{background:none;backdrop-filter:none}#modal.choice-bubble:before{content:'● ● ●';display:block;color:#91d2bb;font-size:7px;letter-spacing:5px;margin-bottom:9px}#modal.choice-bubble h2{font-size:21px}#modal.choice-bubble p{font-size:13px;line-height:1.8}#modal.choice-bubble .modal-actions{flex-wrap:wrap;justify-content:start}#modal.choice-bubble .shop-item{flex-wrap:wrap;padding:12px}#modal.choice-bubble .shop-item .item-copy{min-width:155px}#modal.choice-bubble .shop-item button{margin-left:auto}#modal.choice-bubble .friend-conversation{grid-template-columns:1fr}#modal.choice-bubble .friend-profile{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px}#modal.choice-bubble .friend-profile canvas{width:70px;margin:0}#modal.choice-bubble .friend-profile p,#modal.choice-bubble .friend-profile ul,#modal.choice-bubble .friend-profile .eyebrow{display:none}#modal.choice-bubble .friend-actions{grid-template-columns:1fr 1fr}#modal.stage-dialog{position:relative;inset:auto;margin:0;padding:20px;width:100%;max-width:none;max-height:none;border:0;border-radius:0;background:#1b3041;box-shadow:none;animation:stage-in .45s ease-out}#interactionStage{background:#1b3041;min-height:420px}#interactionStage>canvas{width:100%;display:block}body.scene-active .game-layout{grid-template-columns:minmax(0,1fr) 315px}body.scene-active .player-panel{display:none}body.scene-active .world-toolbar{border-bottom:1px solid #456173}.creation-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:22px}.creation-layout canvas{width:100%;position:sticky;top:10px;align-self:start;border-radius:13px;border:2px solid #658b9d}.creation-layout .notice p{font-size:13px}.creation-layout .location-cards{margin-top:0}.home-choice-cards{display:grid;gap:12px;margin-bottom:18px}.home-choice-cards button{text-align:left;padding:20px}.home-choice-cards [aria-pressed=true]{background:#33594d;border-color:#9ee3bf}.home-choice-cards small{display:block;color:#c3d7d4;margin-top:8px;line-height:1.7}.creation-hidden{display:none}.coach-panel{padding:21px;background:linear-gradient(135deg,#264d45,#233a53);border:1px solid #8abda7;border-radius:17px}.coach-panel h3{font-size:20px;line-height:1.4;color:#ffe2a4;margin:12px 0}.coach-panel p{font-size:13px;line-height:1.8;color:#d4e6e1}.coach-panel small{display:block;font-size:10px;line-height:1.7;margin-top:12px;color:#a8c9c4}.coach-tools{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}.coach-tools button{font-size:10px;padding:7px}.day-dashboard{display:flex;gap:18px;align-items:center;justify-content:space-between;background:#173544;padding:14px 18px;border-block:1px solid #537181;position:sticky;top:0;z-index:8}.wallet-live span{display:block;font-size:8px;letter-spacing:1.5px;color:#b3d6cb}.wallet-live strong{display:block;color:#c9f6d9;font-size:25px;font-variant-numeric:tabular-nums}.clock-live{display:flex;gap:10px;align-items:center}.clock-live svg{width:42px;height:42px;fill:#263f54;stroke:#e9d399;stroke-width:2;flex-shrink:0}.clock-live g{transform-origin:22px 22px;transition:transform 1.1s cubic-bezier(.2,.7,.3,1)}.clock-live strong{display:block;color:#ffe1a2;font-size:19px;font-variant-numeric:tabular-nums}.clock-live small{display:block;font-size:9px;color:#a9c8ca;margin-top:4px}.day-dashboard button{font-size:10px;padding:9px}.scene-breadcrumb{font-size:10px;color:#a4c5c6;margin:0;padding:11px 16px;background:#203b4c}.clock-help{font-size:10px;line-height:1.7;color:#a5c4c5;padding:0 16px}.resource-ribbon{padding:11px 16px;background:#304b43;border-left:4px solid #bde6a5;color:#f6e5b4}.resource-ribbon:empty{display:none}.resource-ribbon strong{display:block;font-size:12px}.resource-ribbon span{display:block;color:#d1e7d6;font-size:11px;margin-top:5px}.resource-pop{animation:resource-in .6s ease-out}.flying-coin{position:fixed;z-index:1000;color:#ffe094;text-shadow:2px 3px #8e602c;font-size:25px;pointer-events:none}.travel-caption{position:absolute;bottom:14px;left:5%;right:5%;padding:16px;border-radius:12px;border:1px solid #a6d3b5;background:#173d43ee;z-index:5;box-shadow:0 8px 30px #0004}.travel-caption p{margin:0}.travel-caption strong,.travel-caption span{display:block}.travel-caption strong{color:#ffe3a2;font-size:17px}.travel-caption span{font-size:11px;line-height:1.7;margin-top:6px;color:#d4e9df}.travel-caption button{font-size:10px;margin-top:8px}.transition-layer{position:absolute;inset:0;z-index:6;background:#9ac7ce;animation:stage-in .5s ease-out}.transition-layer>canvas{width:100%;height:100%;display:block}.transition-caption{position:absolute;bottom:12px;left:5%;right:5%;padding:17px;background:#173441ed;border-radius:12px;border:1px solid #a5c9bf}.transition-caption strong{font-size:20px;color:#ffe3a0}.transition-caption p{font-size:12px;line-height:1.7;color:#d6e7df}.transition-caption button{font-size:10px}.world-frame{aspect-ratio:1.54;min-height:380px}.world-frame[data-time=night]{background:#243b55}.world-frame[data-time=sunset]{background:#d7b499}.home-catalog,.shop-panel{max-height:680px;overflow:auto}.home-studio,.shop-studio{gap:18px}.friend-conversation section{min-width:0}.day-footer{border-top:1px solid #496272}.day-footer p{line-height:1.6}.right-column>.panel,.right-column>.tip-card{opacity:.88}.right-column>.panel:first-of-type{margin-top:0}.world-toolbar>div{flex-wrap:wrap}#cameraToggle{white-space:normal;max-width:100px}#transitionLayer .primary{white-space:normal}.world-frame #world{image-rendering:auto}
@container play (max-width:800px){.home-studio,.shop-studio,.avatar-studio,.creation-layout{grid-template-columns:1fr}.avatar-preview{position:relative;top:auto}.avatar-preview canvas{max-height:330px;width:auto;max-width:100%;margin:auto}.creation-layout canvas{position:relative}.home-catalog{max-height:450px}.shop-panel{max-height:none}.school-approach{grid-template-columns:repeat(2,minmax(0,1fr))}.work-cards{grid-template-columns:1fr}}
@keyframes bubble-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}@keyframes stage-in{from{opacity:.3;filter:brightness(.7)}to{opacity:1;filter:brightness(1)}}@keyframes resource-in{0%{background:#b6c780;color:#193730}100%{background:#304b43}}
@media(max-width:1150px){.game-layout{grid-template-columns:minmax(0,1fr) 300px}.player-panel{grid-column:1/-1}.right-column{grid-column:2;display:flex}.world-column{grid-column:1;grid-row:2}.scene-active .game-layout{grid-template-columns:minmax(0,1fr) 300px}.scene-active .world-column{grid-row:1}.right-column>.panel,.right-column>.tip-card{display:none}.player-panel{display:flex;align-items:center;gap:14px;text-align:left;padding:12px}.player-panel>.section-label,.player-panel .divider,.player-panel .money-label,.player-panel .budget-line,.player-panel .bar,.player-panel .goal-box,.player-panel>.text-button{display:none}.player-panel #portrait{width:70px;height:75px;margin:0}.player-panel .balance{margin:0 0 0 auto;font-size:27px}.player-panel h2{font-size:17px}.player-panel .mini-grid{margin-left:auto}.player-panel #customize{width:auto;max-width:130px}}
@media(max-width:760px){header{height:auto;min-height:70px;padding:10px;gap:8px;flex-wrap:wrap}.header-actions{flex-wrap:wrap;justify-content:end}.intro{margin-bottom:15px}.intro h1{font-size:29px}.intro>div>p:last-child{font-size:11px}.game-layout,body.scene-active .game-layout{display:flex;flex-direction:column}.world-column{order:1}.player-panel{order:0;width:100%;display:grid;grid-template-columns:65px 1fr 1fr;gap:8px}.player-panel #customize{width:100%;max-width:none}.right-column{order:2;position:static;display:flex;width:100%;gap:12px}.right-column>.panel,.right-column>.tip-card{display:none}.conversation-dock:not(:empty){position:fixed;bottom:10px;left:10px;right:10px;z-index:15;pointer-events:none}.conversation-dock #modal.choice-bubble{pointer-events:auto;max-height:45vh;max-height:45dvh;margin:0;border-radius:17px;padding:15px;box-shadow:0 10px 60px #0008}.coach-panel{padding:16px}.coach-panel h3{font-size:18px}.coach-panel p{font-size:12px}.day-dashboard{padding:11px;gap:8px}.wallet-live strong{font-size:22px}.clock-live svg{width:34px;height:34px}.clock-live strong{font-size:16px}.clock-live small{font-size:8px}#cameraToggle{font-size:8px;padding:7px;max-width:65px}.world-frame{min-height:350px;aspect-ratio:1}.world-hint{max-width:69%}.transition-caption{padding:12px;bottom:8px}.transition-caption strong{font-size:17px}.transition-caption p{font-size:11px}.creation-layout,.work-contracts{grid-template-columns:1fr}#modal.stage-dialog{padding:14px}.location-cards{grid-template-columns:1fr}.creation-layout .location-cards{grid-template-columns:1fr 1fr}.creation-layout .location-card{padding:11px}.creation-layout .location-card strong{font-size:11px}.creation-layout .location-card small{font-size:9px}.scene-breadcrumb{padding:8px 11px}.tutorial-bar{display:none}.day-footer{flex-wrap:wrap}.day-footer>button{margin-left:auto}.home-catalog{max-height:400px}.clock-help{font-size:9px}.resource-ribbon{padding:9px 12px}.scene-active .player-panel{display:none}}

.playing .intro,.playing .player-panel{display:none}.playing .game-layout{grid-template-columns:minmax(0,1fr) 315px}.playing .world-column{grid-row:1;grid-column:1}.playing main{padding-top:20px}.coach-status{margin-top:17px;padding-top:13px;border-top:1px solid #628779;color:#d9efc5}.coach-status strong,.coach-status span{display:block;font-size:12px;line-height:1.8}.coach-status span{color:#b9d7d1}#playerMenu{padding:0;border:1px solid #668992;background:#284957;width:43px;height:48px;flex-shrink:0;overflow:hidden}#hudPortrait{width:42px;height:49px;display:block}.wallet-live{margin-right:auto}.day-dashboard{gap:12px}.world-frame{aspect-ratio:1.65}@media(max-width:760px){.playing .game-layout{display:flex}.playing .world-column{width:100%}#playerMenu{width:32px;height:40px}#hudPortrait{width:34px;height:40px}.day-dashboard{gap:8px}.wallet-live strong{font-size:20px}.clock-live{gap:6px}.world-frame{aspect-ratio:1.04}}

.playing .tutorial-bar{display:none}.conversation-dock{position:relative}.conversation-dock:has(dialog[open]):before{content:"";position:absolute;left:-11px;top:38px;border-right:12px solid #82bba8;border-block:10px solid transparent}@media(max-width:760px){.conversation-dock:has(dialog[open]):before{left:28px;top:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-bottom:12px solid #82bba8;border-top:0}}

.transition-busy #coachPanel button,.transition-busy .quick-places button,.transition-busy #nextDay,.transition-busy #cameraToggle{opacity:.4;pointer-events:none}.transition-layer{opacity:1}.transition-caption{backdrop-filter:blur(4px)}

.playing .world-frame{height:clamp(320px,52vh,540px);min-height:320px;aspect-ratio:auto}.playing #world{width:100%;height:100%}@media(max-width:760px){.playing .world-frame{height:clamp(330px,48vh,450px)}}

#modal.home-dialog .home-studio{grid-template-columns:1fr}#modal.home-dialog .home-catalog{display:none}#modal.home-dialog.catalog-open .home-catalog{display:block}#modal.home-dialog.catalog-open .home-studio{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr)}.home-toolbar{flex-wrap:wrap}.home-toolbar>button{width:100%;margin-bottom:8px}#modal.home-dialog:not(.catalog-open) .home-view{max-height:none;overflow:visible}#modal.home-dialog:not(.catalog-open) #homeInterior{width:100%;max-height:none}.world-column .home-studio{display:grid}@container play (max-width:800px){#modal.home-dialog.catalog-open .home-studio{grid-template-columns:1fr}}

/* Living conversations keep the actual choices next to animated characters. */
#conversationBackdrop{display:block;width:100%;height:auto;aspect-ratio:25/14;border-radius:18px;background:#9dbfc5}.conversation-caption{padding:12px 18px;margin:0;background:#1d3445;color:#f0e7cf;font-size:14px;line-height:1.6;border-radius:0 0 14px 14px}.talking-scene .friend-conversation{display:block}.talking-scene #modal.choice-bubble .friend-profile{display:none}.talking-scene .shop-choice{white-space:normal}.talking-scene #conversationDock{min-width:0}@media(max-width:700px){.talking-scene #interactionStage{scroll-margin-top:125px}#conversationBackdrop{min-height:240px;object-fit:contain}.conversation-caption{font-size:12px;padding:10px}}

/* Optional, compact encounters and readable schedules. */
.town-moment{position:absolute;left:12px;bottom:12px;max-width:300px;padding:13px;border:2px solid #c9dfac;border-radius:16px;background:#183c43ed;z-index:5;box-shadow:0 6px 20px #0005}.town-moment strong{font-size:13px;color:#ffe2a0}.town-moment p{font-size:12px;margin:7px 0;line-height:1.5}.town-moment button{font-size:11px;margin:3px;padding:9px}.town-plan{padding:12px;background:#1c3345;border-radius:11px;margin:10px 0}.town-plan strong,.town-plan small{display:block}.town-plan summary{cursor:pointer;font-size:12px;margin-top:10px;color:#b4dfc7}.town-plan p{font-size:12px}.town-contacts{padding:13px;background:#263e50;border:1px solid #87b09c;border-radius:14px;margin:14px 0}.town-contacts button{width:100%;white-space:normal;font-size:12px;margin-top:8px}@media(max-width:760px){.town-moment{max-width:260px;padding:10px}.town-moment p{font-size:11px}}

/* Walkable playground: physical scene plus compact, readable play controls. */
.park-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:18px}.park-layout>section,.park-layout>aside{min-width:0}.park-layout canvas{width:100%;height:auto;border-radius:16px;background:#a8cad2;touch-action:none}.park-layout aside{background:#1b3447;border:1px solid #49677a;border-radius:16px;padding:18px}.park-stations,.park-walk{display:flex;gap:6px;flex-wrap:wrap}.park-stations button{font-size:11px;padding:9px}.park-meter{position:relative;height:28px;border-radius:20px;background:#35425c;margin:18px 4px;overflow:hidden}.park-meter i{position:absolute;left:27%;width:46%;height:100%;background:#7fb6a0}.park-meter b{position:absolute;top:3px;width:18px;height:22px;border-radius:50%;background:#ffe19a;transform:translateX(-50%)}.park-target{border:2px solid #e6d38f!important;background:#385b5a!important}.park-playing{padding:18px;background:#30465b;border-radius:14px;color:#ffe7a4}.park-layout details{margin:18px 0}.park-layout summary{cursor:pointer}.park-layout aside>button{margin:5px 3px;white-space:normal}.park-layout .shop-choice{width:100%}@container play (max-width:650px){.park-layout{grid-template-columns:1fr}}@media(max-width:760px){.park-layout{grid-template-columns:1fr}.park-layout aside{padding:13px}.park-layout canvas{min-height:260px;object-fit:contain}.park-stations button{flex:1 1 40%}}

.park-layout>section{position:sticky;top:12px;align-self:start}.park-active .park-stations,.park-active .park-walk{display:none}.park-layout #parkHint{font-size:12px;padding:12px;line-height:1.5}.park-layout aside p{font-size:13px;line-height:1.55}.park-layout aside h3{margin:12px 0}.park-layout aside .shop-choice{font-size:13px}

.world-column:has(.park-layout){overflow:visible}.park-active #parkHint{display:none}
@container play (max-width:650px){.park-layout>section{position:static}.park-active aside{max-height:34dvh;overflow:auto}.park-active canvas{min-height:0}.park-layout .modal-top h2{font-size:22px}}
@media(max-width:760px){.park-layout>section{position:static}.park-active aside{max-height:34dvh;overflow:auto}.park-active canvas{min-height:0}#modal:has(.park-active) .modal-top h2{font-size:22px;margin:8px 0}#modal:has(.park-active) .modal-top{margin-bottom:4px}#modal:has(.park-active) #modalContent>p{font-size:12px;margin:6px 0}}

.park-layout aside{overflow-x:hidden}.park-layout aside>.shop-choice{width:calc(100% - 6px)}

/* Fullscreen uses the available height and a readable playfield rather than stretching a letterbox. */
.camera-controls{position:absolute;left:12px;top:12px;display:flex;gap:5px;z-index:3}.camera-controls button{font-size:12px;padding:9px 11px;background:#152e3ded;border-color:#7fa8a2}.world-chip{display:none}.playing .world-frame{height:clamp(420px,62dvh,800px)}
html.game-expanded .playing main{height:calc(100dvh - 78px);padding:12px 20px 0}html.game-expanded .playing .game-layout{height:100%;grid-template-columns:minmax(0,1fr) 285px}html.game-expanded .playing .world-column{display:flex;flex-direction:column;height:100%;min-height:0}html.game-expanded .playing .world-frame{flex:1;height:auto;min-height:260px}html.game-expanded .playing .right-column{max-height:100%;overflow:auto}html.game-expanded .playing .quick-places{flex-shrink:0}html.game-expanded .playing .day-footer{padding:10px 15px}html.game-expanded .playing .scene-breadcrumb{margin:5px 15px}html.game-expanded .playing .world-column:has(.park-layout),html.game-expanded .playing .world-column:has(.stage-dialog[open]){overflow:auto;display:block}
@media(min-width:1800px){html.game-expanded .playing .game-layout{max-width:2100px;margin:auto}}
@media(max-width:760px){.camera-controls{top:8px;left:8px}.camera-controls button{font-size:11px;padding:8px}.playing .world-frame{height:58dvh;min-height:360px}.world-hint{font-size:10px;max-width:85%;white-space:normal}.time-chip{top:52px}html.game-expanded .playing main{height:auto;padding:8px}html.game-expanded .playing .world-column{min-height:calc(100dvh - 100px)}html.game-expanded .playing .world-frame{height:58dvh;flex:auto}html.game-expanded .playing .right-column{max-height:none}.scene-active .camera-controls{display:none}}




.header-actions .new-game-button{background:#a2ecc5;color:#142c24;font-weight:800;white-space:nowrap}.save-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.save-card{background:#10212c;border:1px solid #506c72;border-radius:12px;padding:16px;min-width:0;text-align:center}.save-card canvas{width:100px;height:110px}.save-card p{font-size:12px}.save-card h3{overflow-wrap:anywhere}.empty-slot{height:110px;display:grid;place-items:center;font-size:50px;color:#a2ecc5}.setup-steps{padding-left:23px}.setup-steps li{line-height:1.7;color:#bdcfd6;margin:12px 0}.setup-steps strong{color:#e5f5ec}.choice-bubble:has(.save-slots){width:min(760px,96vw);max-width:96vw}.choice-bubble:has(.setup-steps){width:min(630px,96vw);max-width:96vw}@media(max-width:650px){.save-slots{grid-template-columns:1fr}.save-card canvas{float:left;width:75px;height:85px}.save-card .empty-slot{height:45px}.header-actions .new-game-button{font-size:11px;padding:9px}.setup-steps li{font-size:12px}}




html.game-expanded .playing .game-layout{grid-template-rows:minmax(0,1fr)}html.game-expanded .playing .world-column{max-height:100%;min-width:0}html.game-expanded .playing .world-frame{min-height:240px;flex:1 1 0;max-height:none}

/* Setup is a new story; keep the previous character safe without showing its HUD. */
.setup-active .player-panel,.setup-active .day-dashboard,.setup-active #resourceRibbon,.setup-active .day-footer,.setup-active .quick-places,.setup-active #coachPanel,.setup-active #tutorialBar,.setup-active .intro,.setup-active .clock-help,.setup-active .scene-breadcrumb,.setup-active .world-toolbar,.setup-active .right-column>.panel,.setup-active .tip-card{display:none!important}
header{position:sticky;top:0;z-index:30;background:#111b28;flex-shrink:0}
#modal{scroll-margin-top:110px}
@media(max-width:760px){header{height:auto;min-height:64px;padding:8px 12px;flex-wrap:wrap;gap:6px}.header-actions{flex-wrap:wrap;gap:4px}.header-actions .new-game-button{font-size:12px;padding:8px}#modal{scroll-margin-top:145px}.setup-active .game-layout{display:block}.setup-active .world-column{max-height:none!important}}

.setup-active header button:not(#newGame):not(#music):not(#sound):not(#audioSettings),.setup-active header .pill{display:none}

@media(max-width:760px){html.game-expanded .playing .world-frame{height:58dvh;min-height:360px;flex:none}html.game-expanded .playing .world-column{max-height:none}}
