:root{color-scheme:dark;--ink:#17242c;--cream:#f3e5c6;--gold:#e9bc70;--rust:#ae6246;--muted:#9fada9}*{box-sizing:border-box}body{margin:0;background:#152229;color:var(--cream);font:14px/1.5 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 18%,#3d484242,transparent 65%)}button,a,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #efd18b;outline-offset:4px}button{transition:background .16s,transform .16s}button:hover:not(:disabled){filter:brightness(1.12)}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.shell{width:min(1100px,calc(100% - 48px));margin:0 auto;position:relative}.masthead{height:79px;display:flex;align-items:center;justify-content:space-between;gap:20px}.wordmark{display:flex;align-items:center;color:var(--cream);font:900 26px/1 Georgia,serif;text-decoration:none;letter-spacing:-2px;white-space:nowrap}.wordmark>span:first-child{font-size:17px;margin:0 3px}.wordmark-line{display:block;background:#5e6a64;width:1px;height:24px;margin:0 19px}.wordmark small{font:9px ui-monospace,monospace;letter-spacing:2px}.mast-right{display:flex;align-items:center;gap:25px}.save-state{font:9px ui-monospace,monospace;letter-spacing:1.5px;color:#a1ada2}.text-button{background:none;border:0;font-size:11px;color:#c7cbbc}.text-button span{border:1px solid #6b766c;border-radius:50%;padding:0 5px;margin-left:5px}.game-frame{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#283442;box-shadow:0 25px 75px #0005;border:1px solid #cbbb8c3b;border-radius:3px;isolation:isolate}#game{display:block;width:100%;height:100%;outline:none;touch-action:none;image-rendering:pixelated}.hud{position:absolute;inset:0;pointer-events:none}.hud button{pointer-events:auto}.top-row{position:absolute;top:23px;left:23px;right:23px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.identity{background:#18282be8;box-shadow:0 3px 14px #0003;border:1px solid #d2c39b55;display:flex;align-items:center;padding:5px 10px 5px 4px;border-radius:3px;gap:9px}.identity canvas{width:38px;height:46px;image-rendering:pixelated}.identity>div{display:flex;flex-direction:column}.character-name{font-size:12px;font-weight:800;letter-spacing:1.7px}.location{font-size:10px;color:#bac1b3;margin-top:2px}.switch-button{background:transparent;border:0;border-left:1px solid #cbbb8c44;margin-left:8px;padding:6px 0 6px 12px;display:flex;align-items:center;gap:7px;font-size:19px}.switch-button kbd{font-size:8px}.pocket{display:flex;align-items:center;gap:12px;background:#17262be8;border:1px solid #d2c39b55;border-radius:3px;padding:11px 13px;font:12px ui-monospace,monospace;white-space:nowrap}.pocket i{height:17px;border-left:1px solid #bdb69544}.pocket button{border:0;background:transparent;padding:0 0 0 7px;font-size:18px;line-height:15px}.quest{position:absolute;top:103px;left:24px;width:235px;text-shadow:0 1px 4px #142736;filter:drop-shadow(0 2px 9px #1e2e3a);background:linear-gradient(90deg,#18282be3,#18282b82);border-left:2px solid var(--gold);padding:12px 13px 12px}.eyebrow{display:block;font:9px ui-monospace,monospace;letter-spacing:1.5px;color:var(--gold)}.quest .eyebrow{font-size:8px;letter-spacing:1px}.quest strong{display:block;font-size:13px;line-height:1.4;margin:6px 0}.quest p{font-size:10px;margin:0;color:#dddcc9;line-height:1.55}.quest-track{height:2px;background:#e7d6ae22;margin-top:10px}.quest-track b{display:block;background:var(--gold);height:100%;transition:width .4s}.bottom-row{position:absolute;bottom:20px;left:24px;right:23px;display:flex;align-items:flex-end;justify-content:space-between}.world-note{display:flex;gap:8px;align-items:center;background:#1d2a31cc;padding:7px 9px;color:#e3d8bc;font:8px ui-monospace,monospace;letter-spacing:1.1px}.live-dot{height:5px;width:5px;border-radius:50%;background:#e2b66e;box-shadow:0 0 8px #e4bb73}.map-button{padding:0;border:1px solid #a69a7b7a;background:#182a2deb;border-radius:3px;overflow:hidden;box-shadow:0 3px 14px #0003}.map-button canvas{display:block;width:138px;height:86px}.map-button span{display:block;border-top:1px solid #b5a88444;padding:5px 7px;font:7px ui-monospace,monospace;letter-spacing:1.5px}.map-button kbd{margin-left:9px;font-size:8px}.interaction{position:absolute;top:calc(50% + 76px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;padding:8px 12px;background:#f2dfb9f5;box-shadow:0 4px 13px #14252e55;color:#23303a;font-size:11px;font-weight:650;border-radius:2px;white-space:nowrap}.interaction kbd{background:#26383e;color:#f0dfbd;border:0;padding:4px 6px}.toast{position:absolute;left:50%;bottom:45px;transform:translate(-50%,8px);font-size:12px;text-align:center;padding:10px 18px;max-width:63%;background:#223338f5;border:1px solid #d1b67999;box-shadow:0 4px 22px #17293266;opacity:0;transition:.25s;line-height:1.5;border-radius:3px}.toast.show{transform:translate(-50%,0);opacity:1}.scene-label{position:absolute;left:50%;top:32%;transform:translate(-50%,-10px);text-align:center;opacity:0;transition:.5s;filter:drop-shadow(0 2px 6px #13283c)}.scene-label.show{transform:translate(-50%,0);opacity:1}.scene-label span{display:block;font:10px ui-monospace,monospace;letter-spacing:4px}.scene-label strong{font:italic 37px Georgia,serif;display:block;margin-top:5px;white-space:nowrap}.waypoint{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);padding:5px 10px;background:#1b303ee6;border-radius:2px;font-size:10px}.waypoint+.bottom-row~.toast{bottom:63px}.start-screen{position:absolute;inset:0;display:flex;align-items:center;background:linear-gradient(90deg,#12212cf2 0%,#12212cb5 39%,#12212c18 80%),linear-gradient(0deg,#162731ad,transparent 55%),url('assets/image-4e77d6ebf5518b2d.jpg') center/cover}.start-content{padding:5% 6.5%;width:70%;text-shadow:0 2px 16px #06121c66}.edition{font:9px ui-monospace,monospace;letter-spacing:2px;color:#e0cba3}.start-content h1{font:900 clamp(44px,7.8vw,102px)/.86 ui-sans-serif,system-ui,sans-serif;letter-spacing:-5px;margin:33px 0 22px;transform:rotate(-3deg);transform-origin:left;color:#f4e5c5}.start-content h1 span{display:block;font:800 clamp(17px,2.1vw,27px)/1.4 ui-monospace,monospace;letter-spacing:8px;margin:17px 0 0 3px;color:#edbe70}.start-content>p{font-size:16px;line-height:1.75;font-weight:300;color:#e6dfcc;margin:27px 0}.primary{border:1px solid #f4d49b;color:#263334;background:#e6bf7a;border-radius:2px;padding:11px 20px;font-weight:750;font-size:12px;box-shadow:0 4px 0 #14232a55}.primary.large{font-size:13px;padding:15px 27px;min-width:218px;letter-spacing:.3px}.start-content .start-meta{font:8px ui-monospace,monospace;letter-spacing:2px;color:#c3bdab;margin:23px 0 0}.start-meta span{letter-spacing:.6px;color:#efe4c8;margin-left:12px;font-size:10px}.start-corner{position:absolute;right:29px;bottom:28px;text-align:right;font:900 13px ui-monospace,monospace;letter-spacing:1px;color:#ffefcc}.start-corner span{font:7px ui-monospace,monospace;letter-spacing:1.4px;opacity:.8}.dialog-backdrop{position:absolute;inset:0;background:#11202d9c;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:22px;pointer-events:auto;z-index:10}.dialog{position:relative;max-width:540px;width:100%;max-height:94%;overflow:auto;padding:31px 34px;background:#f1e5c9;color:#283739;box-shadow:0 16px 60px #00101766;border:1px solid #fff0d7;outline:8px solid #192c3033;border-radius:2px}.dialog .eyebrow{color:#946342;font-size:9px}.dialog h2{font:italic 32px/1.15 Georgia,serif;letter-spacing:-.8px;margin:10px 0 17px;padding-right:18px}.dialog p{font-size:13px;line-height:1.7;color:#53615a;margin:10px 0 17px}.dialog strong{color:#253b3c}.close-dialog{position:absolute;right:15px;top:13px;border:0;background:transparent;color:#5a675b;font-size:17px}.dialog-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.dialog .primary{background:#263e41;color:#f2e6c9;border-color:#263e41;box-shadow:none}.secondary{border:1px solid #acb09d;background:transparent;padding:10px 14px;border-radius:2px;font-size:11px;color:#3c504b}.danger{color:#995237}.dialog .smallprint{font-size:10px;line-height:1.6;color:#7b806e;margin-top:13px}.dialog .quote{font:italic 17px/1.55 Georgia,serif;border-left:2px solid #ba8c56;padding:2px 0 2px 15px;color:#526150}.resource-line{display:flex;gap:16px;border-top:1px solid #b6b39f;border-bottom:1px solid #b6b39f;padding:12px 0;margin:17px 0;font:11px ui-monospace,monospace}.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.story-item{border-top:1px solid #c5c2ac;padding:12px 0;font-size:12px}.story-item span{display:block;color:#78806c;font-size:10px;margin-top:4px}.check{color:#437b65}.map-canvas{width:100%;height:auto;background:#253a40;border:1px solid #bdba9e;border-radius:2px;display:block}.map-legend{display:flex;gap:14px;margin:8px 0 14px;font-size:9px;color:#78816c}.destination-grid{display:flex;flex-wrap:wrap;gap:6px}.destination-grid button{padding:7px 10px;font-size:10px}.controls-table{width:100%;border-collapse:collapse;font-size:11px}.controls-table td{border-bottom:1px solid #cfccb8;padding:7px 2px}.controls-table td:first-child{width:45%;font-family:ui-monospace,monospace;color:#355453}.timing{margin:25px 0 12px;height:24px;background:#d1c8ac;border:1px solid #9c9e86;position:relative;overflow:hidden;border-radius:2px}.timing .zone{position:absolute;left:40%;width:23%;height:100%;background:#75957a}.timing .needle{position:absolute;left:0;top:0;width:4px;height:100%;background:#23444b;box-shadow:0 0 0 2px #f0e3c6}.timing-count{font:10px ui-monospace,monospace;letter-spacing:2px;color:#617265}.art-preview{display:block;width:220px;height:150px;margin:0 auto;background:#e5dcc4;border:1px solid #bab5a0}.train-stops{display:flex;align-items:stretch;gap:7px}.train-stops button{flex:1;text-align:left;padding:13px 9px;min-width:0}.train-stops b{display:block;font-size:12px;line-height:1.3}.train-stops span{display:block;font-size:9px;margin-top:7px;color:#6f806f}.train-icon{display:inline-grid;place-items:center;width:23px;height:23px;background:#73827e;border-radius:50%;font-size:14px;color:#f4e6cb;margin-right:8px}.controls{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:17px 1px;color:#a6b1a6;font-size:10px}.controls>div{display:flex;gap:18px;align-items:center}.controls span{display:flex;gap:6px;align-items:center}kbd{border:1px solid #7e8a775c;border-bottom-width:2px;padding:2px 4px;border-radius:3px;font:9px ui-monospace,monospace;color:inherit;letter-spacing:.2px}.controls button{background:none;border:0;color:#c0c5b5;font-size:10px;padding:0;white-space:nowrap}.controls button kbd{margin-left:8px}.dedication{text-align:center;color:#647870;font:italic 12px Georgia,serif;margin:12px 0 32px}.transition{position:absolute;inset:0;background:#172733;opacity:0;pointer-events:none;transition:opacity .2s;z-index:11}.transition.active{opacity:1}.touch-controls{position:absolute;inset:0;pointer-events:none;z-index:3}#joystick{position:absolute;left:24px;bottom:55px;width:94px;height:94px;border:1px solid #e7d9b666;border-radius:50%;background:#1a303350;pointer-events:auto;touch-action:none}#joystick i{position:absolute;top:26px;left:26px;width:40px;height:40px;background:#ebd8b366;border:1px solid #f4e3c5aa;border-radius:50%;pointer-events:none}.touch-actions{position:absolute;bottom:58px;right:22px;display:flex;align-items:center;gap:10px;pointer-events:auto}.touch-actions button{background:#273e44a6;border:1px solid #e0d0aa88;width:44px;height:44px;border-radius:50%;font-size:9px;touch-action:none}.touch-actions .touch-e{width:58px;height:58px;font-size:20px;background:#d9b16ad9;color:#233b40}.confetti{position:absolute;width:5px;height:9px;pointer-events:none;z-index:12;animation:fall 2.8s ease-in forwards}@keyframes fall{from{transform:translateY(-30px) rotate(0)}to{transform:translateY(850px) rotate(700deg);opacity:0}}@media (max-width:800px){.shell{width:calc(100% - 24px)}.masthead{height:59px}.wordmark small{display:none}.wordmark-line{display:none}.mast-right{gap:12px}.controls>div{gap:9px}.controls{font-size:9px}.save-state{font-size:8px}.top-row{top:12px;left:12px;right:12px}.quest{top:84px;left:13px;width:195px;padding:9px 10px}.quest strong{font-size:11px}.quest p{font-size:9px}.bottom-row{bottom:12px;left:13px;right:12px}.map-button canvas{width:105px;height:65px}.pocket{font-size:10px;gap:7px}.identity{gap:5px}.location{font-size:8px}.start-content>p{font-size:13px;margin:20px 0}.start-content h1{margin-top:23px}.start-content h1 span{letter-spacing:5px}.edition{font-size:7px;letter-spacing:1px}.dialog{padding:24px;max-width:500px}.dialog h2{font-size:27px}.dialog p{font-size:12px}.scene-label strong{font-size:28px}.interaction{top:calc(50% + 58px)}}@media (max-width:560px){.shell{width:100%}.masthead{padding:0 12px;height:51px}.game-frame{border-radius:0}.controls{padding:15px 12px}.controls>div{display:none}.controls:before{content:'Touch controls or connect a controller';font-size:9px}.dedication{margin-top:7px}.save-state{display:none}.start-content{padding-left:7%;width:83%}.start-content h1{font-size:52px;letter-spacing:-3px;margin:20px 0 12px}.start-content h1 span{font-size:16px;margin-top:10px;letter-spacing:4px}.start-content>p{font-size:11px;margin:13px 0}.primary.large{font-size:11px;padding:10px 19px;min-width:180px}.start-content .start-meta{margin-top:13px;font-size:6px}.start-corner{display:none}.edition{font-size:6px}.identity canvas{width:25px;height:32px}.identity{padding:4px}.character-name{font-size:9px;letter-spacing:1px}.switch-button{font-size:16px;padding:4px 4px 4px 7px;margin-left:1px}.switch-button kbd{display:none}.pocket{padding:9px 7px;font-size:8px;gap:5px}.pocket button{font-size:14px}.location{max-width:100px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:7px}.quest{top:65px;width:155px;padding:7px;left:12px}.quest .eyebrow{font-size:6px}.quest strong{font-size:9px;margin:4px 0}.quest p{font-size:7px;line-height:1.5}.quest-track{margin-top:5px}.map-button canvas{width:70px;height:44px}.map-button span{font-size:5px;letter-spacing:.5px;padding:3px 4px}.map-button kbd{font-size:5px;margin-left:4px}.world-note{font-size:6px;padding:4px 6px}.interaction{font-size:8px;gap:5px;padding:5px 8px;top:calc(50% + 36px)}.interaction kbd{font-size:7px;padding:2px 4px}.toast{font-size:9px;bottom:25px;padding:7px 10px}.scene-label strong{font-size:24px}.scene-label span{font-size:7px}.dialog-backdrop{padding:15px}.dialog{padding:18px 20px;max-height:96%}.dialog h2{font-size:23px;margin:7px 0 11px}.dialog p{font-size:10px;line-height:1.6;margin:9px 0}.dialog .eyebrow{font-size:7px}.dialog .primary,.secondary{font-size:9px;padding:8px 11px}.dialog-actions{margin-top:13px;gap:6px}.dialog .smallprint{font-size:8px}.resource-line{font-size:9px;padding:8px 0;margin:10px 0}.controls-table{font-size:9px}.controls-table td{padding:4px 0}.timing{margin-top:15px}.art-preview{height:110px;width:160px}.story-item{font-size:10px;padding:7px 0}.story-item span{font-size:8px}.train-stops b{font-size:10px}.train-stops span{font-size:8px}#joystick{left:17px;bottom:47px;width:70px;height:70px}#joystick i{top:19px;left:19px;width:30px;height:30px}.touch-actions{bottom:48px;right:14px;gap:7px}.touch-actions button{width:34px;height:34px;font-size:7px}.touch-actions .touch-e{width:43px;height:43px;font-size:16px}.waypoint{font-size:7px;bottom:17px}}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Keep the complete 4:3 play field visible on laptop screens. */
@media (min-width:561px){.shell{max-width:calc((100svh - 160px) * 4 / 3)}.game-frame{container-type:inline-size}.start-content h1{font-size:clamp(40px,9cqw,102px)}.start-content h1 span{font-size:clamp(15px,2.5cqw,27px)}.start-content>p{font-size:clamp(11px,1.5cqw,16px)}.start-content .edition{font-size:clamp(6px,.85cqw,9px)}.quest{width:min(235px,29cqw)}}

/* Opening-night workbench, production and story UI. */
.conversation{display:grid;grid-template-columns:52px 1fr;gap:3px 12px;border-top:1px solid #c6bca4;padding-top:15px}.conversation b{font:9px ui-monospace,monospace;color:#927049;padding-top:4px}.conversation p{margin:0 0 8px;font-size:12px}.choice-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:15px}.swatch{background:#ded5be;border:1px solid #b4ac94;padding:9px 11px;color:#45584f;border-radius:2px;font-size:10px;flex:1}.swatch.selected{background:#304d50;color:#f0e3c4;border-color:#304d50}.alignment{display:flex;align-items:center;justify-content:center;gap:20px;margin:18px 0 8px;font:9px ui-monospace,monospace;letter-spacing:.7px}.alignment button{border:1px solid #9eaa96;background:#d6d2b9;color:#314b49;padding:7px 16px;font-size:20px;line-height:1}.brand-preview{display:flex;gap:24px;align-items:center}.brand-preview canvas{width:112px;height:auto;box-shadow:2px 4px 0 #c7bda4}.brand-preview>div{flex:1}.opening-art{display:flex;align-items:center;justify-content:center;gap:24px;margin:10px 0 24px}.opening-art canvas{transform:rotate(-4deg);box-shadow:2px 3px 0 #c7bda4}.opening-art canvas+canvas{transform:rotate(7deg)}.photo-strip{display:block;margin:10px auto;transform:rotate(-3deg);box-shadow:3px 4px 0 #c7bda4}.sign-options{display:flex;gap:10px;margin:20px 0}.sign-options button{background:#af6545;color:#f1dfaf;flex:1;padding:16px 8px;border:3px double #e9c996;font:900 16px Georgia}.sign-options button+button{background:#3d6166}.sign-options small{font:6px ui-monospace,monospace}.circuit{display:flex;justify-content:center;align-items:center;gap:13px;margin:25px 0}.circuit>span{background:#ccc6b0;padding:12px;width:78px;text-align:center;border:1px solid #aaab95;font-size:28px;color:#7d8778}.circuit small{display:block;font:9px ui-monospace,monospace}.circuit .lit{background:#e0c281;color:#314b48;border-color:#9b8457;box-shadow:0 0 18px #dbbb7b88}.circuit>b{color:#7e8b76}.dice-reveal{display:flex;align-items:center;flex-direction:column;margin:22px auto}.dice-reveal>span{display:grid;place-items:center;width:76px;height:76px;background:#293e47;color:#f0d28e;border:3px double #d2ae6b;font:700 35px Georgia;animation:dice-settle .65s ease-out}.dice-reveal small{font:9px ui-monospace,monospace;margin-top:12px;color:#6a7967}.story-item.done{color:#40775c}.art-preview{width:250px;height:auto;max-height:180px;object-fit:contain;image-rendering:pixelated}.dialog:focus-within{outline-color:#192c3033}.quest p{font-size:10px}.quest{background:linear-gradient(90deg,#172a30ed,#172a30c4);filter:none;text-shadow:none}.interaction{max-width:85%;white-space:normal;text-align:center}.scene-label{pointer-events:none}.brand-preview canvas,.opening-art canvas,.photo-strip{image-rendering:pixelated}@keyframes dice-settle{0%{transform:rotate(-15deg) translateY(-15px);opacity:.4}70%{transform:rotate(6deg) translateY(3px)}100%{transform:none;opacity:1}}@media(max-width:560px){.conversation{grid-template-columns:40px 1fr;gap:0 8px}.conversation p{font-size:10px}.choice-row{gap:4px}.swatch{font-size:8px;padding:7px}.brand-preview{gap:15px}.brand-preview canvas{width:80px}.art-preview{width:180px;max-height:130px}.circuit>span{width:60px;padding:8px}.alignment{gap:12px;font-size:8px}.quest p{font-size:7px}.story-grid{gap:7px}.sign-options button{font-size:13px}.sign-options small{font-size:5px}}
/* Let phone conversations use the available screen while the world stays 4:3. */
@media(max-width:560px){.dialog-backdrop{position:fixed;inset:0;padding:20px 14px;z-index:20}.dialog{max-height:calc(100svh - 40px);padding:24px}.dialog h2{font-size:27px}.dialog p{font-size:12px}.dialog .primary,.dialog .secondary,.swatch{font-size:11px;min-height:42px}.dialog-actions{margin-top:20px}.dialog .smallprint{font-size:10px}.brand-preview canvas{width:96px}.art-preview{width:240px;max-height:180px}.story-item{font-size:12px}.story-item span{font-size:10px}.conversation p{font-size:12px}.dialog .eyebrow{font-size:9px}}

/* Explicit selection for crowded work areas, shared across keyboard and touch. */
.cycle-target{position:absolute;bottom:106px;left:50%;transform:translateX(-50%);z-index:6;border:1px solid #ddc58d88;border-radius:20px;background:#20353ee8;color:#f3e0b5;padding:7px 15px;min-height:36px;font:10px ui-monospace,monospace;pointer-events:auto}.cycle-target:active{transform:translateX(-50%)}
@media(max-width:560px){.cycle-target{bottom:67px;left:50%;min-height:38px;padding:6px 10px;font-size:9px}}

.commission-note{border-left:3px solid #a87745;padding:8px 12px;background:#ded7bd;color:#36504b;font-size:11px!important}

/* Around the Block: the shared field notebook. */
.notebook-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0}.notebook-card{text-align:left;min-height:104px;padding:14px;background:#e7dbc0;color:#293f43;border:1px solid #c7b89a;border-top:3px solid #a37855;transition:transform .15s,background .15s}.notebook-card:hover{background:#f8eed7;transform:translateY(-2px)}.notebook-card.found{border-top-color:#547c76;background:#dce0c9}.notebook-card small{display:block;font:8px ui-monospace,monospace;letter-spacing:1px;color:#766c57}.notebook-card strong{display:block;font:italic 19px/1.15 Georgia,serif;margin:9px 0 6px}.notebook-card span{font-size:10px;color:#6e776a}.mural-preview{width:100%;height:auto;display:block;border:6px solid #d7c6a6;image-rendering:pixelated;box-shadow:0 4px 0 #c6b799}.field-study{height:110px;position:relative;overflow:hidden;background:#315d79;margin:14px 0 20px;border:5px solid #ddc9a2}.field-study:before{content:'';position:absolute;inset:14px 48% -35px 22px;background:#e9d7af;transform:rotate(-16deg);clip-path:polygon(0 9%,94% 0,79% 45%,100% 79%,5% 100%)}.field-study:after{content:'';position:absolute;left:28%;top:39%;height:38px;width:70px;background:#c48255;transform:rotate(13deg)}.field-study span{position:absolute;right:17px;top:18px;font:9px ui-monospace,monospace;color:#f1d9a4;letter-spacing:3px}.field-study b{position:absolute;right:16px;bottom:2px;font:italic 66px Georgia,serif;color:#a4c1ba}.study-weight{background:#264e75}.study-space{background:#4e6f6b}.study-people{background:#633e43}.start-content .release-note{font:9px/1.5 ui-monospace,monospace;max-width:300px;color:#e2bf85;margin-top:18px}.controls{gap:13px}.controls>div{gap:11px}.controls>button{margin-left:auto}.controls>button+button{margin-left:0}
@media(max-width:560px){.notebook-card{min-height:100px;padding:12px}.notebook-card strong{font-size:18px}.start-content .release-note{font-size:7px;margin-top:9px;max-width:215px}.controls:before{content:'Explore at your own pace'}.controls>button{font-size:10px}.notebook-card small{font-size:7px}}

.activity canvas{display:block;width:100%;height:auto;touch-action:none;border:2px solid #7e806e;border-radius:5px;outline-offset:3px}.activity [data-activity-controls]{display:flex;gap:7px;flex-wrap:wrap}.activity-control{min-height:44px;min-width:44px;touch-action:none;user-select:none}.activity [data-activity-tip]{font-size:13px;line-height:1.55;min-height:42px}.dialog:has(.activity){max-width:700px}.map-canvas{height:auto;max-height:360px}.neighbor-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dialog-backdrop:has(.activity){position:fixed;inset:0;z-index:30;padding:12px;background:#102028df}.dialog:has(.activity){width:min(700px,100%);max-height:calc(100dvh - 24px);padding:22px 26px}.dialog:has(.activity) h2{margin:6px 0 12px;font-size:27px}.activity canvas{width:min(100%,calc((100dvh - 270px)*1.55));margin:auto}.activity [data-activity-tip]{margin:9px 0;font-size:12px;min-height:34px}.dialog:has(.activity) .dialog-actions{margin-top:12px}.activity [data-activity-controls]{justify-content:center}.activity-control{border:1px solid #8e8c71;border-radius:3px;background:#29464d;color:#f4e3ba;padding:8px 12px;font-size:12px}@media(max-width:560px){.dialog:has(.activity){padding:18px 14px}.activity canvas{width:100%}.activity-control{padding:6px 8px}.activity [data-activity-tip]{font-size:11px}}

.build-badge{font:700 11px ui-monospace,monospace;padding:6px 9px;background:#edbe70;color:#26383d;border-radius:3px;white-space:nowrap}.release-shortcuts{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.release-shortcuts button{background:#1f3a42ed;border:1px solid #d2b779;color:#f4e4c2;border-radius:3px;padding:10px 12px;font-size:12px}.start-content{width:86%}.start-content .release-note{font-size:10px;font-weight:700;letter-spacing:.6px;color:#f5d491;max-width:450px}.mast-right{gap:12px}.feature-list{font-size:13px;line-height:1.7}.feature-list b{color:#305865}@media(max-width:560px){.build-badge{font-size:8px;padding:4px}.release-shortcuts{gap:5px;margin-top:9px}.release-shortcuts button{font-size:9px;padding:7px}.start-content .release-note{font-size:7px}.start-content .start-meta{display:none}.start-content h1{font-size:43px}.start-content>p{margin:9px 0}.start-content h1 span{margin-top:7px}.mast-right .save-state{display:none}}

/* 0.9: legible objectives and a proper full-screen neighborhood map. */
:root{--gold:#ffd475;--cream:#fff0d2;--ink:#19354a}.game-frame{border-radius:12px;border-color:#71868a}.quest{background:#17384bf2;width:260px;border-radius:6px;filter:none;text-shadow:none}.quest strong{font-size:14px}.quest p{font-size:11px;color:#e1edeb}.quest-track{height:5px;border-radius:5px;overflow:hidden}.recipe{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.recipe span{font-size:10px;background:#294a60;padding:4px 6px;border-radius:4px;color:#e6e1d3}.recipe span.ready{background:#2b705e;color:#d8ffe9}.recipe b{margin-left:4px}.vitals{position:absolute;left:24px;bottom:66px;width:205px;padding:10px 12px;background:#17384bf2;border:1px solid #d3e0ce44;border-radius:6px}.vitals>div+div{margin-top:7px}.vitals span{font:9px ui-monospace,monospace;display:flex;justify-content:space-between;letter-spacing:.6px}.vitals i{display:block;height:6px;background:#496273;border-radius:4px;margin-top:4px;overflow:hidden}.vitals i b{display:block;height:100%;background:#f28a79;transition:width .25s}#inspirationFill{background:#6ccdc1}.vitals small{display:block;font-size:8px;color:#ccd9cc;margin-top:8px}.identity,.pocket{background:#193a4df2;border-radius:6px}.map-dialog{position:fixed;width:min(1400px,96vw);max-width:none;height:96vh;max-height:none;inset:2vh auto auto 50%;transform:translateX(-50%);padding:18px 24px;display:flex;flex-direction:column;z-index:100}.dialog-backdrop:has(.map-dialog){position:fixed;inset:0;z-index:100;padding:0}.map-dialog h2{font:800 25px/1.1 system-ui;margin:6px 0 8px}.map-dialog #dialogBody{min-height:0;overflow:auto}.map-dialog .map-canvas{height:min(60vh,650px);width:100%;object-fit:contain;touch-action:none;background:#172e43}.map-toolbar{display:flex;align-items:center;gap:8px;margin:6px 0;font-size:10px}.map-toolbar button{border:1px solid #9ba99a;padding:6px 10px;background:#17384b;color:#f9e6c5;border-radius:4px}.map-toolbar span{margin-left:auto}.map-dialog .dialog-actions{margin-top:8px}.map-dialog .destination-grid{gap:4px}.map-dialog .destination-grid button{font-size:10px;padding:5px 7px}.intro-steps{padding-left:22px;font-size:13px;line-height:1.6}.intro-steps li+li{margin-top:10px}.intro-steps b{display:block}.banter{position:absolute;left:50%;top:28%;transform:translateX(-50%);max-width:64%;background:#fff0d5;color:#20394c;border:2px solid #34556d;border-radius:12px;padding:10px 14px;font-size:12px;font-weight:650;text-align:center;box-shadow:0 3px 0 #1b3a4b33}.start-screen{background:linear-gradient(90deg,#132d40ef,#1c354580 65%,#18354a22),url('assets/image-58890aa71f035973.jpg') center/cover}.start-content h1{transform:none;color:#fff0d0}.start-content h1 span{color:#ffcc6d}.interaction{border:2px solid #2e5064;border-radius:8px}.toast{background:#193b4ff5;border-radius:7px}.map-legend{flex-wrap:wrap}.dialog{border-radius:9px}.activity canvas{border:2px solid #234859}
@media(max-width:700px){.quest{width:210px;top:83px;left:12px;padding:9px}.quest strong{font-size:12px}.quest p{font-size:10px}.recipe span{font-size:9px;padding:3px}.vitals{left:12px;width:155px;bottom:48px;padding:7px}.top-row{left:12px;right:12px;top:12px}.pocket{gap:6px;padding:9px}.map-toolbar span{display:none}.map-dialog{padding:15px}.identity .location{max-width:120px}.identity{gap:4px}.map-button canvas{width:100px;height:70px}.map-dialog .map-canvas{height:55vh}}
.controls,.controls>div{flex-wrap:wrap}.controls{justify-content:flex-start;gap:12px 16px}.controls>div{margin-right:auto}.controls button{padding:4px 6px;border:1px solid #81958f55;border-radius:4px}#runButton[aria-pressed=true]{background:#2d735f;color:#e9ffdf}@media(max-width:700px){.vitals{left:auto;right:12px;top:84px;bottom:auto;width:132px}.vitals small{font-size:7px}.map-toolbar{flex-wrap:wrap}}

/* Workbench edition: a quiet, typeset field journal around a textured world. */
:root{--ink:#2c3735;--cream:#ece3cc;--gold:#d4b36d;--muted:#a6ada0}
body{background:#202a2b;font-family:"Avenir Next",Avenir,"Segoe UI",Arial,sans-serif}
body:before{display:none}.masthead{height:64px}.mast-right{gap:14px}.wordmark{font-family:"Arial Black",Arial,sans-serif;font-size:25px;letter-spacing:-1.5px}.wordmark small{font:10px Arial,sans-serif;letter-spacing:.8px}.save-state{font:10px Arial,sans-serif;letter-spacing:0}.build-badge{font:600 10px Arial,sans-serif;color:#dfd3b4;background:transparent;border-left:1px solid #8a8f7a;padding:3px 0 3px 12px;border-radius:0}.text-button{font-size:12px}
.game-frame{border-radius:2px;border:1px solid #666e60;box-shadow:0 16px 46px #0c11122b}
.start-screen{background:linear-gradient(90deg,#1c272de8,#1c272da0 48%,#1c272d15 90%),url('assets/image-4e77d6ebf5518b2d.jpg') center/cover}.start-content h1{font-family:"Arial Black",Impact,Arial,sans-serif;line-height:.9;letter-spacing:-4px;font-weight:900}.start-content h1 span{font-family:Arial,sans-serif;letter-spacing:4px;font-weight:600}.start-content>p{color:#e4dfcf}.edition,.start-meta,.release-note{letter-spacing:.8px!important}.release-shortcuts button{background:#2c3d3b;border-color:#8f9275;border-radius:1px;font:12px Arial,sans-serif}.start-content .release-note{font:10px Arial,sans-serif;color:#dfc997}
.identity,.pocket{background:#283633ed;border:1px solid #9f9f7e55;border-radius:2px;box-shadow:0 2px 5px #15232018}.identity{padding:3px 8px 3px 3px}.identity canvas{width:34px;height:42px}.character-name{font:700 13px Arial,sans-serif;letter-spacing:0}.location{font:10px Arial,sans-serif;color:#c7cdbb}.pocket{font:600 12px Arial,sans-serif;gap:10px;padding:10px 12px}.switch-button{font-size:17px}.top-row{top:18px;left:18px;right:18px}
.quest{top:84px;left:18px;width:235px;background:#293633e8;border:0;border-left:2px solid #c5ad78;border-radius:0;padding:9px 11px;box-shadow:none}.quest .eyebrow{font:10px Arial,sans-serif;letter-spacing:0;color:#cbbd9b}.quest strong{font:600 12px/1.35 Arial,sans-serif;margin:6px 0 4px;padding-right:38px}.quest p{display:none;font:11px/1.5 Arial,sans-serif;color:#e0e3d4;margin-top:8px}.quest.expanded p{display:block}#questToggle{position:absolute;right:8px;top:9px;font:10px Arial,sans-serif;background:none;border:0;border-bottom:1px solid #a7b29b;color:#d9ddc8;padding:0 0 2px}.quest-track{height:2px;border-radius:0;margin-top:8px}.recipe{gap:3px 9px;margin-top:7px}.recipe span,.recipe span.ready{background:none;padding:0;font:10px Arial,sans-serif;color:#d1cebc;border-radius:0}.recipe span.ready{color:#b8cfaf}.recipe b{font-weight:600}.vitals{background:#293633e8;border:0;border-radius:0;padding:8px 10px;width:170px;left:18px;bottom:58px}.vitals span{font:9px Arial,sans-serif;letter-spacing:0;color:#dbddcd}.vitals i{height:3px;border-radius:0;background:#576257}.vitals i b{background:#c87d6a}#inspirationFill{background:#97b6a1}.vitals small{font:9px/1.4 Arial,sans-serif;color:#c1c9b7;margin-top:7px}.world-note{background:#293633db;font:9px Arial,sans-serif;letter-spacing:0;padding:6px 8px}.live-dot{box-shadow:none;background:#b9bd8a}.bottom-row{left:18px;right:18px;bottom:18px}.map-button{background:#293633ed;border:1px solid #b8b19366;border-radius:1px;box-shadow:none}.map-button canvas{width:112px;height:70px}.map-button span{font:8px Arial,sans-serif;letter-spacing:.4px}.interaction{background:#e8ddbf;color:#273632;border:1px solid #c3b28c;border-radius:2px;box-shadow:0 2px 0 #14252836;font:600 12px Arial,sans-serif}.waypoint{font:10px Arial,sans-serif;background:#293633ed;bottom:22px;max-width:47%;text-align:center}.cycle-target{background:#293633ed;border-radius:2px;border:1px solid #a89c7a77;font:10px Arial,sans-serif;padding:4px 9px;min-height:30px}.toast{background:#283b36f5;border:1px solid #b1a27b77;border-radius:2px;font:12px/1.5 Arial,sans-serif}.banter{background:#eee2c7;color:#293b35;border:1px solid #b6aa8a;border-radius:2px;font:12px/1.4 Arial,sans-serif;box-shadow:2px 3px 0 #18252533}
.dialog{font-family:"Avenir Next",Avenir,Arial,sans-serif;border-radius:2px;background:#eae1cd;border:1px solid #f3ecd9;outline:5px solid #28332b33;color:#303b35;box-shadow:0 12px 40px #10202540}.dialog h2{font:700 28px/1.15 "Avenir Next",Arial,sans-serif;letter-spacing:-.6px;font-style:normal}.dialog .eyebrow{font:600 11px Arial,sans-serif;letter-spacing:.3px;color:#756949}.dialog p{font-size:13px;line-height:1.6}.dialog .quote{font-family:inherit;font-style:normal;line-height:1.65;color:#455147;border-left:2px solid #b1a47e;padding-left:13px}.primary,.secondary,.swatch{border-radius:2px;font-family:Arial,sans-serif}.primary{background:#364e44;color:#f1e6ca;border:1px solid #364e44;box-shadow:none}.secondary{color:#394e43;background:#e1d8c0;border:1px solid #b8b295}.dialog .smallprint{font:11px/1.5 Arial,sans-serif;color:#6b7363}.resource-line{font:11px Arial,sans-serif;letter-spacing:0;border-color:#c4baa0}.story-item{font:12px/1.45 Arial,sans-serif}.notebook-card strong{font:600 17px/1.2 Arial,sans-serif}.notebook-card small{font:10px Arial,sans-serif;letter-spacing:0}.work-grade{border-top:1px solid #bfb69c;border-bottom:1px solid #bfb69c;padding:12px 0;color:#3c5948}.activity canvas{border:1px solid #817d67;border-radius:0;image-rendering:pixelated}.activity-control{background:#3d5448;color:#f5e9ce;border:1px solid #73806b;border-radius:2px;font:12px Arial,sans-serif}.activity [data-activity-tip]{font:12px/1.45 Arial,sans-serif}.dialog-backdrop{backdrop-filter:none;background:#192824a8}.dialog-backdrop:has(.activity){background:#172521e8}.dialog:has(.activity) h2{font:700 25px Arial,sans-serif}.map-dialog h2{font:700 25px Arial,sans-serif}.map-toolbar button{background:#3d5448;border-radius:1px}.map-dialog .map-canvas{background:#2b3936}
.controls{gap:9px 12px;padding:12px 1px;font:10px Arial,sans-serif}.controls button{font:11px Arial,sans-serif;background:transparent;border:0;border-bottom:1px solid #76867366;padding:4px 0;border-radius:0;color:#c1cbb7}.controls>div{gap:9px}kbd{font-family:Arial,sans-serif;letter-spacing:0}.dedication{font:11px Arial,sans-serif;color:#8f9c8b;margin:7px 0 14px}
@media(min-width:561px){.shell{max-width:calc((100svh - 150px) * 4 / 3)}}
@media(max-width:700px){.masthead{height:54px}.wordmark small{display:none}.top-row{top:11px;left:11px;right:11px}.quest{left:11px;top:75px;width:190px;padding:8px}.quest strong{font-size:11px}.recipe span{font-size:9px}.vitals{left:11px;right:auto;top:auto;bottom:49px;width:146px}.vitals small{font-size:8px}.bottom-row{left:11px;right:11px;bottom:12px}.map-button canvas{width:90px;height:57px}.identity .location{max-width:110px}.pocket{font-size:10px;gap:6px}.map-dialog{padding:15px}.waypoint{font-size:9px;bottom:16px}}
@media(max-width:560px){.masthead{height:48px}.shell{width:100%}.build-badge{font-size:9px}.game-frame{border-left:0;border-right:0}.identity canvas{width:25px;height:32px}.character-name{font-size:11px}.location{font-size:8px}.quest{top:63px;width:168px}.quest strong{font-size:10px;padding-right:0}.quest .eyebrow,#questToggle{font-size:8px}.quest p{font-size:10px}.recipe{gap:3px 6px}.recipe span{font-size:8px}.vitals{left:auto;right:11px;top:65px;bottom:auto;width:120px;padding:7px}.vitals span{font-size:8px}.vitals small{font-size:7px}.controls{padding:12px}.controls:before{display:none}.controls>button{font-size:11px}.map-button canvas{width:74px;height:46px}.interaction{font-size:10px;padding:6px 9px}.dialog h2{font-size:25px}.dialog p{font-size:12px}.start-content h1{font-size:43px}.start-content .release-note{font-size:8px}.waypoint{max-width:50%;font-size:8px;left:40%}.banter{font-size:11px;max-width:75%}}

/* A usable pocket phone, with the world paused while reading or calling. */
.dialog-backdrop:has(.phone-dialog){position:fixed;inset:0;z-index:40;background:#172722b8;align-items:center}
.phone-dialog{width:min(370px,94vw);max-height:calc(100dvh - 32px);padding:35px 23px 22px;border:7px solid #394440;border-radius:26px;outline:1px solid #889482;background:#e1dac7;box-shadow:0 20px 55px #0b151880}
.phone-dialog:before{content:'';position:absolute;top:10px;left:calc(50% - 25px);width:50px;height:4px;background:#859184;border-radius:5px}
.phone-dialog h2{font-size:25px;margin:7px 0 14px}.phone-dialog .eyebrow{font-size:9px;letter-spacing:1px}.phone-dialog .close-dialog{top:23px;right:14px}.phone-status{display:flex;justify-content:space-between;padding:8px 0 13px;border-bottom:1px solid #b3b49e;color:#58644f;font-size:11px}.phone-apps{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.phone-apps button{display:flex;align-items:flex-start;flex-direction:column;min-height:110px;padding:13px 11px;background:#d0d0b9;color:#344e43;border:1px solid #b7bea6;border-radius:9px;text-align:left}.phone-apps button:nth-child(2),.phone-apps button:nth-child(5){background:#c1cabc}.phone-apps button:nth-child(3){background:#d4c1ae}.phone-apps button b{font:24px/1 Arial,sans-serif;margin-bottom:12px}.phone-apps strong{font-size:12px}.phone-apps small{font-size:10px;line-height:1.3;margin-top:4px;color:#65705c}.phone-dialog .dialog-actions{justify-content:center;margin-top:18px}.phone-dialog .secondary{background:transparent;border:0;border-bottom:1px solid #adb59a;font-size:12px}.contact-list{border-top:1px solid #b9b69b;border-bottom:1px solid #b9b69b}.contact-list p{padding:8px 0}.progress-list p{padding-bottom:10px;border-bottom:1px solid #c9bea2}.progress-list b{color:#3d5948}
#phoneButton{color:#ebd49f;border-color:#b6ab7d;min-height:34px}
@media(max-height:650px){.phone-dialog{padding-top:26px}.phone-apps{gap:8px;margin-top:10px}.phone-apps button{min-height:88px;padding:9px}.phone-apps button b{margin-bottom:6px}.phone-dialog h2{margin-bottom:5px}.phone-status{padding-bottom:8px}}

/* v0.12: the game is a viewport; information lives in its own dock. */
.shell{width:min(1120px,calc(100% - 32px));max-width:min(1120px,calc((100svh - 240px) * 4 / 3));min-width:520px}
.masthead{height:60px}.game-frame{box-shadow:0 12px 35px #0003}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(185px,.55fr);gap:0 24px;padding:12px 15px;background:#273b35;border:1px solid #7e8b6b66;border-top:0;color:#efe2be;font:13px/1.4 Arial,sans-serif}
.dashboard[hidden],.dashboard [hidden]{display:none!important}
.dashboard .top-row,.dashboard .quest,.dashboard .vitals,.dashboard .bottom-row,.dashboard .waypoint{position:static;inset:auto;transform:none;width:auto;max-width:none;margin:0;padding:0;background:none;border:0;filter:none;text-shadow:none;box-shadow:none;border-radius:0}
.dashboard .top-row{grid-column:1/-1;display:flex;align-items:center;padding-bottom:9px;margin-bottom:9px;border-bottom:1px solid #8a9a6d44}
.dashboard .identity,.dashboard .pocket{background:none;padding:0;border:0;box-shadow:none}.dashboard .identity canvas{width:28px;height:34px}.dashboard .character-name{font-size:12px}.dashboard .location{max-width:none;font-size:11px}.dashboard .pocket{font-size:14px}
.dashboard .quest{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-self:start}
.dashboard .quest .eyebrow{grid-column:1;font-size:9px;letter-spacing:1px;color:#b5bd9c}.dashboard .quest>strong{grid-row:2;grid-column:1;font:600 14px/1.35 Arial,sans-serif;padding:0}
.dashboard #questToggle{position:static;grid-column:2;grid-row:1/3;align-self:center;font:11px Arial,sans-serif;color:#f4e6c3;background:#3a5246;border:1px solid #778b67;padding:7px 10px}
.dashboard .quest p,.dashboard .recipe{display:none;grid-column:1/-1;margin:6px 0 0;font-size:12px;line-height:1.5}
.dashboard .quest.expanded p{display:block}.dashboard .quest.expanded .recipe{display:flex;flex-wrap:wrap;gap:7px 15px}.dashboard .recipe>strong{width:100%;font-size:10px;text-transform:uppercase;letter-spacing:.6px;padding:0}.dashboard .recipe span{font-size:12px}.dashboard .quest-track{grid-column:1/-1;height:2px;margin-top:7px}
.dashboard .vitals{align-self:center;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.dashboard .vitals>div{margin:0}.dashboard .vitals span{font-size:9px;white-space:nowrap}.dashboard .vitals small{grid-column:1/-1;font-size:10px;color:#b9c5a4}.dashboard .vitals i{height:3px;margin-top:4px}
.dashboard .bottom-row{grid-column:2;grid-row:3;display:block}.dashboard .world-note{display:none}.dashboard .map-wrap{margin-top:10px}.dashboard .map-button{display:flex;align-items:center;gap:10px;background:transparent;border:0}.dashboard .map-button canvas{width:120px;height:75px}.dashboard .waypoint{grid-column:1;grid-row:3;font-size:11px;color:#ead593;padding-top:9px;white-space:normal}
.clean-view #hud{display:none!important}.controls{flex-wrap:wrap;justify-content:flex-start;gap:10px 16px}.controls>div{width:100%;display:flex;flex-wrap:wrap}.controls>button{font-size:12px;min-height:30px}#hudToggle,#fullMapButton{color:#f1d59b;border-color:#cab481}
.view-options{display:grid;gap:14px;margin:22px 0}.view-options label{display:flex;gap:10px;align-items:center;font:14px Arial,sans-serif}.view-options input{width:18px;height:18px;accent-color:#4b6b54}
.dialog-backdrop:has(.map-dialog){position:fixed;inset:0;z-index:80;background:#112820ee;padding:12px;overflow:auto}
.map-dialog{position:relative;inset:auto;transform:none;width:min(1450px,100%);height:min(960px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:19px 23px;display:flex;flex-direction:column;overflow:hidden;outline:none;border:1px solid #cab891;background:#e7dcc0;border-radius:3px}
.map-dialog h2{font:700 26px Georgia,serif;margin:6px 0 12px}.map-dialog #dialogBody{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:10px}.map-dialog .dialog-actions{margin-top:8px;flex-shrink:0}.map-dialog .eyebrow{font-size:10px}.atlas-toolbar{display:flex;flex-wrap:wrap;gap:6px}.atlas-toolbar button,.map-filters button{border:1px solid #a6ac8b;background:#d4d3b8;color:#2b493d;padding:8px 11px;font:12px Arial,sans-serif;border-radius:2px}.atlas-toolbar button:first-child{background:#345d4c;color:#fff0ca}
.atlas-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;flex:1;min-height:0}.atlas-paper{min-height:0;display:flex;align-items:center;justify-content:center;background:#243e40;position:relative;border:1px solid #78917c;overflow:hidden}.atlas-paper canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none;cursor:grab;max-height:100%;aspect-ratio:9/8}.atlas-paper canvas:active{cursor:grabbing}.atlas-key{position:absolute;bottom:0;right:0;display:flex;gap:14px;background:#233e40;color:#f1e1b5;padding:6px 10px;font:10px Arial,sans-serif;pointer-events:none}
.atlas-sidebar{display:flex;flex-direction:column;gap:8px;min-height:0}.atlas-sidebar label{font:600 12px Arial,sans-serif}.atlas-sidebar input{width:100%;background:#fbf1d7;border:1px solid #9ca98c;padding:11px;font:14px Arial,sans-serif;border-radius:2px;color:#253c33}.map-filters{display:flex;flex-wrap:wrap;gap:5px}.map-filters button{font-size:10px;padding:6px 8px}.map-filters [aria-pressed=true]{background:#3c6150;color:#fff0c5}.atlas-destinations{overflow:auto;display:flex;flex-direction:column;gap:5px;min-height:0;padding-right:4px}.atlas-destinations .destination{display:flex;flex-direction:column;gap:3px;padding:11px 12px;text-align:left;background:#f2e8ce;border:1px solid #babca1;border-radius:2px;color:#2b473a}.atlas-destinations .destination.selected{background:#3a5c4b;border-color:#3a5c4b;color:#fff0c5}.destination strong{font:600 13px Arial,sans-serif}.destination small{font:11px/1.35 Arial,sans-serif;opacity:.8}.atlas-selection{display:flex;gap:12px;align-items:center;padding:10px 0 0;border-top:1px solid #b9ba9c;flex-shrink:0}#mapSelection{flex:1;display:flex;flex-direction:column;gap:4px}#mapSelection strong{font:600 15px Arial,sans-serif}#mapSelection span{font:12px/1.4 Arial,sans-serif}.atlas-selection button{font-size:12px;padding:10px 14px}
.paint-controls{display:flex;align-items:center;gap:16px;font-size:12px}.paint-controls button{background:#3c5c49;border:0;color:#fff0c8;padding:10px;min-width:145px}.paint-controls button:disabled{opacity:.45}#paintStatus{min-height:20px;font-size:12px}.activity-canvas{max-width:100%;height:auto;touch-action:none}
@media(max-width:800px){.shell{max-width:100%;min-width:0}.atlas-layout{grid-template-columns:minmax(0,1fr) 225px}.map-dialog{padding:14px}.atlas-selection{flex-wrap:wrap}#mapSelection{flex-basis:100%}.dashboard{gap:0 14px;padding:10px}.dashboard .quest>strong{font-size:12px}}
@media(max-width:560px){.shell{width:100%;min-width:0}.masthead{height:48px;padding:0 10px}.mast-right .save-state{display:none}.dashboard{grid-template-columns:1fr}.dashboard .vitals{grid-column:1;margin-top:12px}.dashboard .bottom-row,.dashboard .waypoint{grid-column:1;grid-row:auto}.dashboard .vitals small{font-size:10px}.dashboard .quest .eyebrow{font-size:9px}.dashboard .quest>strong{font-size:13px}.controls{padding:10px}.map-dialog{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:12px}.dialog-backdrop:has(.map-dialog){padding:6px}.map-dialog h2{font-size:21px;margin-bottom:8px}.atlas-layout{grid-template-columns:1fr;grid-template-rows:minmax(210px,1fr) minmax(125px,.8fr);gap:9px}.atlas-sidebar{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:34px 1fr;gap:5px}.atlas-sidebar>label{display:none}.atlas-sidebar input{grid-column:1;grid-row:1;font-size:12px;padding:7px}.map-filters{grid-column:1;grid-row:2;overflow:auto;align-content:start}.atlas-destinations{grid-column:2;grid-row:1/3}.atlas-destinations .destination{padding:8px}.destination strong{font-size:11px}.destination small{font-size:9px}.atlas-selection{gap:6px;padding-top:7px}.atlas-selection button{padding:8px 10px}.atlas-toolbar button{font-size:10px;padding:7px}.atlas-key{display:none}.paint-controls{flex-wrap:wrap;gap:7px}}

/* v0.13: a real pocket dashboard, an opt-in radio and bigger activity scenes. */
.phone-dialog{width:min(420px,95vw)}.phone-profile{display:flex;align-items:center;gap:12px;padding:9px 0 12px}.phone-profile canvas{width:40px;height:52px;image-rendering:pixelated}.phone-profile>div{display:flex;flex-direction:column;gap:4px}.phone-profile strong{font-size:12px}.phone-profile small{font-size:11px;color:#526650}.phone-bag-preview{display:flex;flex-wrap:wrap;gap:5px 13px;font-size:10px;color:#506049;padding:8px 0;border-top:1px solid #b9b99c}.phone-bag-preview b{color:#304a3b}.phone-dialog .phone-apps{gap:8px;margin-top:12px}.phone-dialog .phone-apps button{min-height:78px;padding:9px 12px}.phone-dialog .phone-apps button b{font-size:20px;margin-bottom:5px}.phone-dialog .phone-apps strong{font-size:12px}.phone-dialog .phone-apps small{font-size:10px}.phone-save{width:100%;padding:10px;margin-top:12px;border:1px solid #789170;background:#3a5b46;color:#f8ebc8;border-radius:4px;font-size:12px}.phone-dialog .phone-status{font-size:10px;gap:12px}.inventory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.inventory-grid>div{display:flex;flex-direction:column;align-items:center;padding:12px;background:#dfd7b9;border:1px solid #bebda1}.inventory-grid b{font-size:12px}.inventory-grid strong{font:26px Georgia,serif;color:#3a5b47}.inventory-grid small{font-size:10px;color:#687157}.keepsake-list{max-height:150px;overflow:auto;font-size:11px}.keepsake-list p{margin:6px 0;padding:7px;border-bottom:1px solid #c7c2a6}
.radio-dial{display:flex;align-items:center;gap:8px;padding:16px 12px;background:#2b463c;color:#f3deaf;border:3px double #a7ac86;margin:15px 0}.radio-dial>span{font-size:26px;margin-right:5px}.radio-dial>div{flex:1;display:flex;flex-direction:column;gap:5px}.radio-dial strong{font:600 14px Arial,sans-serif}.radio-dial small{font-size:10px;color:#c6c9a0}.radio-dial i{display:block;width:4px;height:4px;background:#b7cd8c;transform-origin:bottom}.radio-dial.playing i{height:19px;animation:radio-bars .6s ease-in-out infinite alternate}.radio-dial i:nth-last-child(2){animation-delay:-.2s}.radio-dial i:nth-last-child(3){animation-delay:-.4s}.radio-dial i:nth-last-child(4){animation-delay:-.1s}.radio-dial i:nth-last-child(5){animation-delay:-.3s}@keyframes radio-bars{from{transform:scaleY(.2)}to{transform:scaleY(1)}}.station-list{display:flex;flex-direction:column;gap:7px}.station-list button{text-align:left;padding:10px 13px;border:1px solid #a8b294;background:#d7d8be;color:#2c493a;border-radius:4px;display:flex;flex-direction:column;gap:3px}.station-list button.selected{background:#456a53;color:#f6e6bb}.station-list strong{font-size:13px}.station-list small{font-size:10px;opacity:.8}.volume-control{display:flex;align-items:center;gap:12px;font-size:12px;margin:17px 0}.volume-control input{width:100%;accent-color:#486e51}.live-radio-link{display:flex;flex-direction:column;gap:6px;color:#355e4b;border:1px solid #a6b495;padding:12px;margin:14px 0;text-decoration:none;background:#d8d7bd}.live-radio-link b{font-size:13px}.live-radio-link span{font-size:10px;line-height:1.45}
.dialog:has(.activity){max-width:760px;width:min(760px,96vw)}.activity>canvas{display:block;width:100%;height:auto;image-rendering:pixelated}.activity-control{min-height:42px;font-size:13px}.cutscene-dialog{width:min(800px,96vw);max-width:800px;padding:22px 28px}.cutscene-dialog canvas,#danceStill{display:block;max-width:100%;width:100%;height:auto;image-rendering:pixelated;border:3px solid #273c3a}.cutscene-subtitle{min-height:48px;padding:12px 16px;background:#2e443b;color:#f1e1bd;font:14px/1.5 Arial,sans-serif;margin:0!important}.cutscene-progress{height:3px;background:#bdba9e}.cutscene-progress b{display:block;height:3px;background:#647d58}.cutscene-dialog h2{font-size:25px}.dashboard .world-note{display:flex;font-size:9px;letter-spacing:.4px;padding-top:8px}.dashboard .bottom-row{align-self:start}.activity [data-activity-tip]{font-size:12px;line-height:1.5}
@media(max-width:560px){.phone-dialog{padding:27px 16px 16px}.phone-dialog h2{font-size:23px}.inventory-grid{grid-template-columns:repeat(2,1fr)}.cutscene-dialog{padding:20px 12px}.cutscene-subtitle{font-size:12px;padding:9px;min-height:55px}.dialog:has(.activity){padding:23px 12px}.activity-control{min-height:44px;padding:9px}.phone-dialog .phone-apps button{min-height:71px}.phone-profile{padding:4px 0}.dashboard .world-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){.radio-dial.playing i{animation:none}}

.challenge-controls{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.challenge-controls button{touch-action:none;user-select:none;min-height:44px;background:#e5d6ac;color:#263e40;border:1px solid #667973;padding:10px 14px;font:inherit}.challenge-controls span,.challenge-brief{font-size:13px;line-height:1.45}.challenge-controls button:active{background:#8bb6a5}.activity #challengeCanvas{display:block;width:100%;height:auto;touch-action:none;outline-offset:3px}.challenge-brief{margin:10px 0 6px;color:#d7e0c8}#challengeStatus{font-size:13px;min-height:1.5em;color:#ebc279}

.mastery-total{display:flex;align-items:center;gap:20px;margin:18px 0}.mastery-total>strong{font-size:58px;color:#e1bc72}.mastery-total p{margin:6px 0}.mastery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mastery-goal{display:flex;flex-direction:column;text-align:left;gap:8px;padding:14px;border:1px solid #607669;background:#294342;color:#eee1bc;font:inherit}.mastery-goal>strong{font-size:27px}.mastery-goal small{font-size:12px;font-weight:400;line-height:1.4}.mastery-goal progress{width:100%;height:5px;accent-color:#e1bc72}.mastery-goal>b{font-size:11px;color:#c8dfbe}.mastery-goal.done{border-color:#e1bc72}.mastery-goal:hover{background:#395852}@media(max-width:500px){.mastery-grid{grid-template-columns:1fr}.mastery-total>strong{font-size:40px}}

/* 0.15: one persistent handset across maps, saves, stats and settings. */
.phone-handle{position:absolute;right:16px;bottom:16px;z-index:12;display:flex;align-items:center;gap:9px;background:#183b48;color:#f7e8ca;border:1px solid #9fb8b4;border-radius:15px;padding:9px 12px;box-shadow:0 4px 0 #10263080;font:bold 11px Arial,sans-serif;cursor:pointer}.phone-handle span{font-size:22px}.phone-handle kbd{background:#42636b;border:0}.phone-handle[hidden]{display:none}
.dialog-backdrop:has(.phone-dialog){position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:14px;background:#0b2038b8;backdrop-filter:blur(4px)}
.dialog.phone-dialog{position:relative;inset:auto;transform:none;display:flex;flex-direction:column;width:min(760px,96vw);height:min(900px,94dvh);max-width:none;max-height:94dvh;padding:20px 28px 8px;border:9px solid #162f3b;border-radius:42px;outline:2px solid #769394;background:#f2e9d5;color:#183b48;box-shadow:0 35px 100px #061722a8,inset 0 0 0 2px #98aaaa;animation:phone-rise .28s ease-out;overflow:hidden}
.phone-dialog:before{display:none}.phone-dialog .close-dialog{top:59px;right:24px;width:30px;height:30px;border:1px solid #59757b;border-radius:50%;color:#234754;z-index:4;font-size:16px}.phone-dialog #dialogEyebrow{font:700 10px Arial,sans-serif;letter-spacing:1.4px;margin-top:9px;color:#56717b}.phone-dialog #dialogTitle{font:700 24px/1.15 Arial,sans-serif;letter-spacing:-.6px;margin:6px 0 16px;padding-right:20px;flex-shrink:0}.phone-dialog #dialogBody{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 3px 8px;scrollbar-width:thin}.phone-dialog #dialogActions{flex-shrink:0;gap:8px;justify-content:flex-start;margin-top:10px}.phone-dialog #dialogActions button{border-radius:8px;padding:9px 14px;font-size:12px;min-height:38px}.phone-dialog .secondary{border:1px solid #a0b0ac;background:#e1e2d5;color:#204a56}.phone-dialog .primary{background:#224f5e;color:#fff0d3;border:1px solid #224f5e}
#phoneHardware{display:flex;justify-content:space-between;align-items:center;height:28px;flex-shrink:0;font:bold 11px Arial,sans-serif;padding:0 7px;color:#234451}#phoneHardware i{position:absolute;left:calc(50% - 47px);top:19px;width:94px;height:21px;background:#152b38;border-radius:14px;box-shadow:inset -7px 0 #234555}#phoneHardware[hidden],#phoneNav[hidden],#phoneHomeBar[hidden]{display:none}#phoneNav{display:flex;justify-content:space-between;align-items:center;height:31px;margin:10px 37px 0 0;flex-shrink:0;border-bottom:1px solid #b8c1b5;padding-bottom:7px;font:11px Arial,sans-serif}#phoneNav button{border:0;background:none;color:#265d75;padding:4px 0;font-weight:700;cursor:pointer}#phoneNav strong{margin-right:auto;margin-left:16px}#phoneNav>span{font-size:9px;letter-spacing:1.5px;color:#57737c}#phoneHomeBar{height:26px;flex-shrink:0;background:none;border:0;margin:5px auto 0;width:180px;cursor:pointer}#phoneHomeBar span{display:block;height:5px;border-radius:4px;background:#224b5a;width:90px;margin:auto}
.phone-home #dialogTitle{font-size:24px;margin-bottom:13px}.phone-wallpaper{background:radial-gradient(ellipse at 90% 0%,#9dbeb6aa,transparent 60%),linear-gradient(155deg,#e4ddc9,#c2d4c9);border-radius:18px;padding:18px}.phone-dialog .phone-profile{padding:0 0 14px;gap:12px}.phone-profile canvas{width:52px;height:67px;image-rendering:pixelated;flex-shrink:0}.phone-profile>div{gap:5px}.phone-profile strong{font:700 22px Arial,sans-serif;letter-spacing:-.6px}.phone-profile small{font:700 9px Arial,sans-serif;letter-spacing:1px;color:#57727a}.phone-profile span{font:12px Arial,sans-serif;color:#3c6268}.phone-wallet{margin-left:auto;text-align:right}.phone-wallet b{font:700 25px Arial,sans-serif;color:#234c55}.phone-live-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.phone-live-stats span{display:flex;justify-content:space-between;font-size:10px;color:#355862;gap:5px}.phone-live-stats progress{height:5px;width:100%;accent-color:#467b79;border:0}.phone-live-stats>div:first-child progress{accent-color:#bd7968}.phone-dialog .phone-status{font:10px Arial,sans-serif;padding:12px 0;margin:0;border-bottom:1px solid #8daaa46b;color:#42616a}
.phone-dialog .phone-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 8px;margin-top:19px}.phone-dialog .phone-apps button{align-items:center;text-align:center;min-height:99px;padding:0 3px 5px;border:0;background:transparent!important;border-radius:11px;color:#1c4352;gap:2px;cursor:pointer}.phone-dialog .phone-apps button:hover,.phone-dialog .phone-apps button:focus-visible{background:#fff5dc88!important;outline:2px solid #658f96;outline-offset:3px}.phone-dialog .phone-apps button b{display:grid;place-items:center;width:49px;height:49px;border-radius:14px;margin:0 0 4px;background:linear-gradient(145deg,#75aaa9,#356b7b);color:#fff3d6;box-shadow:0 3px 0 #15415233,inset 0 1px 0 #d1eecc88}.phone-app svg{width:27px;height:27px}.phone-dialog .phone-apps .app-contacts b,.phone-dialog .phone-apps .app-pet b{background:linear-gradient(145deg,#d79c8a,#9b6473)}.phone-dialog .phone-apps .app-save b,.phone-dialog .phone-apps .app-city b{background:linear-gradient(145deg,#e8bb72,#b48742)}.phone-dialog .phone-apps .app-radio b,.phone-dialog .phone-apps .app-story b{background:linear-gradient(145deg,#9a9fbd,#666584)}.phone-dialog .phone-apps strong{font-size:12px}.phone-dialog .phone-apps small{font-size:9px;color:#526b70;line-height:1.2}.phone-dialog.map-dialog{width:min(1180px,96vw)}.phone-dialog .atlas-layout{grid-template-columns:minmax(0,1fr) 245px}.phone-dialog .atlas-paper canvas{max-height:49dvh;width:100%;object-fit:contain}.phone-dialog .atlas-sidebar{max-height:49dvh}.phone-dialog .atlas-destinations{max-height:31dvh}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:16px}.stats-grid>div{padding:12px;background:#dce4db;border:1px solid #acbfba;border-radius:10px;display:flex;flex-direction:column;gap:5px}.stats-grid small{font-size:10px;color:#56737c}.stats-grid b{font-size:25px;letter-spacing:-.7px;color:#204a59}.settings-list{display:flex;flex-direction:column;gap:8px}.settings-list label{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#dce4db;padding:15px;border-radius:12px}.settings-list label>div{display:flex;flex-direction:column;gap:6px}.settings-list small{font-size:12px;color:#57737b}.settings-list input{width:24px;height:24px;accent-color:#387e83;flex-shrink:0}
@keyframes phone-rise{from{opacity:0;translate:0 55px;rotate:-1.5deg}to{opacity:1;translate:0 0;rotate:0deg}}.reduced-motion *{scroll-behavior:auto}.reduced-motion .phone-dialog{animation:none}
@media(max-width:600px){.dialog.phone-dialog{padding:13px 13px 5px;border-width:6px;border-radius:30px;height:96dvh;max-height:96dvh;width:98vw}.dialog-backdrop:has(.phone-dialog){padding:5px}#phoneHardware i{top:12px;height:19px;width:80px;left:calc(50% - 40px)}.phone-dialog .close-dialog{top:50px;right:10px}.phone-dialog #dialogTitle{font-size:20px;margin:5px 0 12px}.phone-wallpaper{padding:12px}.phone-profile strong{font-size:17px}.phone-wallet b{font-size:20px}.phone-profile small{font-size:8px}.phone-dialog .phone-apps{gap:12px 4px}.phone-dialog .phone-apps button{min-height:88px}.phone-dialog .phone-apps button b{width:44px;height:44px}.phone-dialog .phone-apps small{font-size:8px}.phone-dialog .atlas-layout{grid-template-columns:1fr}.phone-dialog .atlas-sidebar{max-height:none}.phone-dialog .atlas-destinations{max-height:160px}.phone-dialog .atlas-paper canvas{max-height:48dvh}.phone-live-stats span{font-size:9px}.stats-grid{gap:6px}.stats-grid b{font-size:20px}.phone-handle{right:10px;bottom:10px;padding:7px;font-size:9px}.phone-handle kbd{display:none}}
@media(prefers-reduced-motion:reduce){.phone-dialog{animation:none}}
/* Readable activity briefings, conversations and unambiguous memory states. */
.activity-guide .activity-goal{background:#284c54;color:#f9ebc8;padding:15px 18px;border-left:4px solid #eac07a;font-weight:700}.guide-controls{padding:12px 0;border-top:1px solid #aebcaf;border-bottom:1px solid #aebcaf;font-size:13px}.guide-stakes{font-size:13px;line-height:1.6}.activity-guide .intro-steps{counter-reset:steps;padding:0;list-style:none;display:grid;gap:10px}.activity-guide .intro-steps li{counter-increment:steps;display:flex;align-items:center;gap:14px;padding:9px 0;line-height:1.5}.activity-guide .intro-steps li:before{content:counter(steps);display:grid;place-items:center;min-width:30px;height:30px;background:#d3b67e;color:#25434b;border-radius:50%;font-weight:700}
.conversation-scene{display:flex;align-items:center;gap:22px;background:#ead8c5;border:1px solid #bda99a;padding:16px;border-radius:12px}.conversation-portrait{width:85px;height:111px;image-rendering:pixelated;border-radius:8px;flex-shrink:0}.conversation-scene h3{font-size:19px;line-height:1.4;margin:8px 0;color:#294c54}.conversation-scene small{font-size:11px;letter-spacing:1px;color:#765967}.conversation-cue{font-size:12px;color:#745460;margin:7px 0}.connection-meter{display:grid;grid-template-columns:1fr auto;gap:7px;margin:17px 0;font-size:11px}.connection-meter progress{grid-column:1/-1;grid-row:2;width:100%;accent-color:#568f80;height:8px}.conversation-choices{display:grid;gap:8px}.conversation-choices button{display:flex;gap:13px;align-items:center;text-align:left;padding:13px 16px;border:1px solid #839e97;background:#e4e5d4;color:#21464d;font:14px/1.4 Arial,sans-serif;border-radius:9px;cursor:pointer}.conversation-choices button b{border:1px solid #819b92;border-radius:5px;min-width:23px;text-align:center}.conversation-choices button.selected{outline:2px solid #3f7c86;outline-offset:1px}.conversation-choices button.reply-good{background:#b1d4b9;color:#214a3d;border-color:#428471;opacity:1}.conversation-choices button.reply-miss{background:#e9b5a5;color:#653b36;border-color:#ba756a;opacity:1}.conversation-result{border-radius:8px;padding:14px;font:13px/1.5 Arial,sans-serif;animation:feedback-in .2s ease-out}.conversation-result[data-state=success]{background:#bbd9bb;color:#24523e}.conversation-result[data-state=retry]{background:#edc0ac;color:#743f38}#nextConversation{min-height:44px;border:0;padding:10px 18px;cursor:pointer}
[data-pastime-status],#wiringStatus{font:bold 12px/1.4 Arial,sans-serif;background:#e8d9b5;color:#304c57;padding:12px;border-radius:6px;min-height:40px;margin:9px 0}[data-pastime-status][data-state="YOUR TURN"],#wiringStatus[data-state=success]{background:#a9d9b4;color:#254a3e}[data-pastime-status][data-state=RESULT]{background:#e6c8ad;color:#4b3d39}[data-pastime-status][data-state=WATCH]{background:#eed192;color:#51462c}.activity canvas{max-width:100%;height:auto}.activity-control:disabled{opacity:.4;cursor:wait}.reduced-motion .conversation-result{animation:none}@keyframes feedback-in{from{opacity:.3;transform:translateY(7px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:520px){.conversation-scene{gap:12px;padding:12px}.conversation-scene h3{font-size:16px}.conversation-portrait{width:65px;height:85px}.conversation-choices button{font-size:12px;padding:12px}.connection-meter{font-size:10px}}
.phone-health{padding:0;border:0;background:none;font:inherit;text-align:left;cursor:pointer}.phone-health progress{accent-color:#bd7968}.phone-health:hover{outline:1px solid #638e8d;outline-offset:5px;border-radius:3px}
/* Dialog portal sits above the game frame, never clipped by its container. */
body>.dialog-backdrop{position:fixed;inset:0;z-index:100}.dialog.phone-dialog{color-scheme:light}.phone-home #dialogBody{flex:1}.phone-home #dialogActions:empty{display:none}.dialog .activity-guide .activity-goal{color:#f9ebc8}.phone-dialog .story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.phone-dialog .mastery-goal>strong{color:#f5e6c1}

/* v16: the phone's soundtrack shelf */
.sound-start{font-size:11px!important;max-width:300px;line-height:1.5!important;color:#f4e5bd!important}
.audio-now{display:flex;align-items:center;gap:17px;padding:20px;border-radius:14px;background:linear-gradient(125deg,#233b42,#445b55);color:#fbebc9;margin:12px 0 16px;box-shadow:inset 0 1px #ffffff20}
.audio-now>div{min-width:0;display:grid;gap:5px}.audio-now small{letter-spacing:.15em;font-size:10px;color:#b9d4ca}.audio-now strong{font-size:19px;overflow-wrap:anywhere}.audio-now #radioStatus{font-size:12px;line-height:1.5;color:#d0dcca}.audio-record{display:grid;place-items:center;flex:none;width:62px;height:62px;border:7px double #aab69f;border-radius:50%;background:#172c32;color:#f0c880;font-size:24px}
.audio-modes,.audio-buttons{display:flex;gap:7px;flex-wrap:wrap}.audio-modes{margin-bottom:18px}.audio-modes button{font-size:12px;padding:9px 13px}.audio-modes button[aria-pressed=true]{background:#355b59;color:#fff2ca;box-shadow:inset 0 0 0 2px #97c4af}
.audio-panel{border:1px solid #b8bdad;border-radius:12px;margin:12px 0;padding:0 15px;background:#f6efd9}.audio-panel summary{font-size:15px;font-weight:700;padding:16px 0;cursor:pointer}.audio-panel[open]{padding-bottom:16px}.audio-panel p{font-size:13px;line-height:1.5}.audio-panel .station-list{grid-template-columns:1fr 1fr}.audio-panel .station-list button{min-width:0}.audio-panel .station-list small{font-size:11px}
.audio-mixer{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px;margin:0 0 16px}.audio-mixer label>span{display:flex;justify-content:space-between;font-size:13px}.audio-mixer input,.audio-offset input{width:100%;accent-color:#376d64}.audio-mixer output,.audio-offset output{font-variant-numeric:tabular-nums;color:#537168}.audio-offset{display:block;margin-top:20px;font-size:13px}.audio-offset output{float:right}.audio-import{display:block;padding:13px;border:1px dashed #79978c;border-radius:8px;background:#dce6d6;font-size:14px;margin-bottom:14px}.audio-import input{display:block;max-width:100%;font-size:12px;margin-top:8px}.audio-options{display:flex;flex-wrap:wrap;gap:18px;margin:16px 0;font-size:13px}.audio-options label{display:flex;gap:7px;align-items:center}.audio-options input{accent-color:#376d64}
.audio-queue{padding:0;list-style:none;max-height:290px;overflow:auto}.audio-queue li{display:flex;gap:4px;align-items:center;border-bottom:1px solid #bdc8b6;padding:6px 0}.audio-queue .track-name{flex:1;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;box-shadow:none;color:#243c40;font-size:12px;padding:8px}.audio-queue li.current{background:#dce6d6}.audio-queue button:not(.track-name){padding:7px 10px;min-width:34px}.audio-queue button:disabled{opacity:.35}.spotify-field{display:grid;gap:8px;font-size:13px;margin-bottom:12px}.spotify-field input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #a7b3a2;border-radius:6px;background:#fffaf0;font-size:12px}.audio-buttons .live-radio-link{margin:0;display:inline-flex;padding:10px 15px;align-items:center;font-size:13px}.audio-buttons a[aria-disabled=true]{opacity:.5}.audio-footnote{font-size:12px!important;line-height:1.6;color:#5c6e65}
@media(max-width:520px){.audio-mixer{grid-template-columns:1fr}.audio-panel .station-list{grid-template-columns:1fr}.audio-record{width:45px;height:45px}.audio-now{padding:13px;gap:12px}.audio-now strong{font-size:16px}}

.phone-dialog .audio-now strong{color:#fff0ce}.phone-dialog .audio-now small{color:#c5dacf}.audio-panel button,.audio-modes button{font-family:inherit;border:1px solid #9cae9c;border-radius:7px;background:#e5e8d8;color:#244a4b;padding:9px 13px;cursor:pointer;min-height:38px}.audio-panel button:hover,.audio-modes button:hover{background:#cddccc}.audio-panel button:disabled{opacity:.4;cursor:default}.audio-panel button:focus-visible,.audio-modes button:focus-visible{outline:3px solid #518a7b;outline-offset:2px}

/* The supplied cover is shown in full, with controls on a separate paper sleeve. */
.start-screen{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:0;background:#173d45;overflow:auto;align-items:center;padding:14px}
.cover-art{display:block;width:100%;height:auto;max-height:100%;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 7px 8px #091b2466)}
.start-content{width:auto;padding:22px 19px;text-shadow:none}.start-content .edition{font:700 clamp(9px,1.15cqw,12px)/1.4 Arial,sans-serif;color:#e6bf80;letter-spacing:1.3px}
.start-content .menu-title{font:700 clamp(19px,3.3cqw,34px)/1.1 Georgia,serif;color:#fff0cb;margin:16px 0 25px}
.start-content .primary{width:100%;white-space:normal;font:700 clamp(11px,1.45cqw,15px)/1.4 Arial,sans-serif;padding:13px 10px;min-height:48px;background:#f1c268;color:#213a39;border:1px solid #ffdfa0;border-radius:2px;box-shadow:0 3px 0 #9d6540}
.start-content .release-shortcuts{display:grid;gap:10px;margin-top:14px}.start-content .release-shortcuts button{font:12px/1.35 Arial,sans-serif;min-height:44px;padding:9px;background:#254b50;border:1px solid #708878;text-align:left}
.start-content .sound-start{font:11px/1.5 Arial,sans-serif;margin:21px 0;color:#d5d9c0}.start-content .release-note{font:700 10px/1.7 Arial,sans-serif;color:#eac38b;margin:20px 0 0;max-width:none}
.start-content h1.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:560px){.start-screen{grid-template-columns:1fr;padding:12px;align-content:start}.cover-art{max-height:none}.start-content{padding:18px 8px}.start-content .menu-title{display:none}.start-content .edition{display:block;margin-bottom:12px}.start-content .primary{font-size:14px}.start-content .release-shortcuts{grid-template-columns:1fr 1fr}.start-content .release-shortcuts button{font-size:11px}.start-content .sound-start{margin:15px 0 8px}.start-content .release-note{margin:8px 0}.game-frame:has(.start-screen:not([hidden])){aspect-ratio:auto;min-height:720px}.game-frame:has(.start-screen:not([hidden]))>#game{visibility:hidden}}

.dialog p.cutscene-subtitle{color:#f8edca;background:#203c38;font-size:14px;font-weight:600;letter-spacing:.1px}
.train-stops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.train-stops button{min-height:80px;text-align:left;padding:14px}.train-stops button b{font-size:15px}.train-stops button span{font-size:12px;line-height:1.4}.train-stops .train-icon{display:inline-flex;margin-right:6px}
@media(max-width:560px){.train-stops{grid-template-columns:1fr}.train-stops button{min-height:66px}}

/* POSTER BOY RETRO TITLE. Presentation-only overrides for verified v0.17.0. */
body:has(#startScreen:not([hidden])){overflow:hidden;background:#102c34}
body:has(#startScreen:not([hidden])) .masthead,
body:has(#startScreen:not([hidden])) .controls,
body:has(#startScreen:not([hidden])) .dedication,
body:has(#startScreen:not([hidden])) #dashboard{visibility:hidden}
#startScreen.start-screen{position:fixed;inset:0;z-index:80;display:block;width:100vw;height:100svh;min-height:0;padding:0;overflow:hidden;background:#12323b;isolation:isolate}
#startScreen::before{content:"";position:absolute;inset:-24px;z-index:-2;background:var(--title-art) center/cover;filter:blur(13px) brightness(.7)}
#startScreen .cover-art{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 6%;filter:none;z-index:-1}
#startScreen::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(0deg,#071c2bd9 0%,#071c2b88 14%,#071c2b00 48%),repeating-linear-gradient(0deg,#0a162112 0px,#0a162112 1px,transparent 1px,transparent 4px)}
#startScreen .start-content{position:absolute;inset:auto 0 max(34px,env(safe-area-inset-bottom)) 0;z-index:2;width:min(520px,94vw);padding:0 12px;margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;text-shadow:none}
#startScreen .edition,#startScreen .menu-title,#startScreen .sound-start,#startScreen .start-meta{display:none}
#startScreen .release-shortcuts{display:flex;flex-direction:column;align-items:center;gap:4px;margin:3px 0 0;width:100%}
#startScreen .start-content button{position:relative;display:flex;align-items:center;justify-content:center;min-height:46px;width:auto;max-width:100%;padding:11px 28px;margin:0;color:#ffdb8c;border:0;border-radius:0;background:transparent;box-shadow:none;font:bold 20px/1.3 monospace;text-transform:uppercase;transition:transform 100ms ease,color 100ms ease}
#startScreen .start-content button:disabled{color:#a9ad9a;opacity:.7;cursor:wait}
#startScreen .start-content button:hover:not(:disabled),#startScreen .start-content button.retro-selected{color:#fff3b0;filter:none;transform:translateX(4px)}
#startScreen .start-content button::before{content:"";position:absolute;left:2px;top:50%;width:14px;height:20px;background:currentColor;clip-path:polygon(0 0,25% 0,25% 15%,50% 15%,50% 30%,75% 30%,75% 40%,100% 40%,100% 60%,75% 60%,75% 70%,50% 70%,50% 85%,25% 85%,25% 100%,0 100%);transform:translateY(-50%);opacity:0;filter:drop-shadow(2px 2px #182733)}
#startScreen .start-content button.retro-selected::before,#startScreen .start-content button:focus-visible::before,#startScreen .start-content button:hover:not(:disabled)::before{opacity:1}
#startScreen .start-content button:focus-visible{outline:2px dashed #f9e9b699;outline-offset:1px}
#startScreen .retro-word{display:block;height:clamp(17px,2.1vw,25px);width:auto;max-width:100%;overflow:visible;shape-rendering:crispEdges;filter:drop-shadow(2px 0 #182733) drop-shadow(-2px 0 #182733) drop-shadow(0 2px #182733) drop-shadow(0 -2px #182733) drop-shadow(3px 4px #0b1929)}
#startScreen .retro-prompt{display:flex;align-items:center;justify-content:center;margin:0 0 17px;color:#fff3d2;animation:retro-press-start 1.5s steps(1,end) infinite}
#startScreen .retro-prompt .retro-word{height:13px}
#startScreen .release-note{font:700 10px/1.7 monospace;letter-spacing:1.5px;margin:18px 0 0;max-width:none;color:#f5e9cc;text-shadow:1px 2px #102735}
@keyframes retro-press-start{0%,67%,100%{opacity:1}68%,99%{opacity:.35}}
@media(min-aspect-ratio:2/1){#startScreen .cover-art{object-fit:contain;object-position:center center}}
@media(max-aspect-ratio:4/5){#startScreen .cover-art{object-fit:contain;object-position:center 8vh}#startScreen .start-content{bottom:max(40px,8svh);width:96vw}#startScreen::after{background:linear-gradient(0deg,#071c2bea 0%,#071c2b66 32%,transparent 62%)}#startScreen .start-content button{min-height:50px}#startScreen .retro-word{height:21px}}
@media(max-height:520px){#startScreen .start-content{bottom:12px}#startScreen .start-content button{min-height:34px;padding:8px 24px}#startScreen .retro-word{height:15px}#startScreen .retro-prompt{margin-bottom:6px}#startScreen .retro-prompt .retro-word{height:9px}#startScreen .release-note{margin-top:7px;font-size:8px}}
@media(prefers-reduced-motion:reduce){#startScreen .retro-prompt{animation:none}#startScreen .start-content button{transition:none;transform:none!important}}

/* POSTER READABLE INSTRUCTIONS: separate scrolling content, controls and actions. */
body>.dialog-backdrop{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden}
.dialog:not(.phone-dialog){display:flex;flex-direction:column;max-height:calc(100dvh - 24px);overflow:hidden;padding:24px;gap:0;min-width:0}
.dialog:not(.phone-dialog)>#dialogEyebrow,.dialog:not(.phone-dialog)>#dialogTitle{flex:none;padding-right:40px}
.dialog:not(.phone-dialog)>#dialogTitle{margin:10px 0 18px;overflow-wrap:anywhere;font-size:clamp(22px,3vw,32px)}
.dialog:not(.phone-dialog)>#dialogBody{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 6px 8px 0;flex:1 1 auto}
.dialog:not(.phone-dialog)>#dialogActions{position:static;flex:0 0 auto;display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #897c6444;max-height:30dvh;overflow:auto}
.dialog #dialogActions button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.dialog .close-dialog{width:36px;height:36px;display:grid;place-items:center;z-index:5}
.dialog .activity,.dialog .activity-guide{display:flex;flex-direction:column;gap:12px;min-width:0}
.dialog .activity>*{flex-shrink:0}
.dialog .activity canvas{display:block;position:static;max-width:100%;width:100%;height:auto;aspect-ratio:620/400;margin:0}
.dialog .activity [data-activity-tip],.dialog [data-pastime-status],.dialog #challengeStatus,.dialog #wiringStatus{position:static;inset:auto;transform:none;white-space:normal;overflow-wrap:anywhere;line-height:1.55;min-height:44px;height:auto;margin:0;padding:11px 13px;background:#e8d9b5;color:#243e49;border:1px solid #a99d7e;border-radius:3px}
.dialog [data-activity-controls],.dialog [data-pastime-controls],.dialog #challengeControls,.dialog #wiringControls{position:static;display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.dialog [data-activity-controls]>button,.dialog [data-pastime-controls]>button,.dialog #challengeControls>button,.dialog #wiringControls>button{min-height:44px;flex:1 1 100px;white-space:normal;line-height:1.4}
.dialog .activity-guide .activity-goal{margin:0;padding:14px;line-height:1.5;white-space:normal}
.dialog .intro-steps{display:grid;gap:12px;margin:0;padding-left:28px;line-height:1.65}
.dialog .intro-steps li{position:relative;padding:0 0 0 4px;min-height:24px}
.dialog .guide-controls,.dialog .guide-stakes{height:auto;white-space:normal;line-height:1.65;overflow-wrap:anywhere;margin:0}
.dialog .guide-controls{padding:12px;background:#d9e4db;color:#244b48;border-left:3px solid #55776c}
.dialog .challenge-brief{margin:0;line-height:1.6}
.dashboard>*{min-width:0}.dashboard .quest strong,.dashboard .quest p,.dashboard .resource-line{white-space:normal;overflow-wrap:anywhere}
.dev-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dev-grid button{padding:12px;min-height:48px;white-space:normal;text-align:left;line-height:1.4}
#developerSections h3{font:700 14px/1.4 monospace;text-transform:uppercase;margin:22px 0 10px;letter-spacing:1px;color:#304852}
.dev-notice{padding:12px;background:#d7e7cf;border-left:3px solid #6e8969}
#developerBadge{position:fixed;top:max(6px,env(safe-area-inset-top));right:max(6px,env(safe-area-inset-right));z-index:110;font:700 10px/1.4 monospace;letter-spacing:.8px;background:#f3c96e;color:#25333e;border:2px solid #25333e;padding:6px 10px;box-shadow:2px 2px #101d29}
#developerModeButton{font:700 11px/1.4 monospace;letter-spacing:.5px}
.developer-session #saveStatus{color:#efd17d}
.dialog #activityCanvas,.dialog #pastimeCanvas,.dialog #challengeCanvas,.dialog #wiringCanvas{display:block;position:static;width:100%;max-width:100%;height:auto;max-height:none}
.dialog #paintStatus{position:static;margin:12px 0;white-space:normal;line-height:1.55;height:auto}
.dialog #paintControls{display:flex;flex-wrap:wrap;gap:12px;position:static;line-height:1.55}
.dialog #paintControls button{min-height:44px}
body:has(#dialogBackdrop:not([hidden])) #developerBadge{display:none}
@media(max-width:520px){.dialog:not(.phone-dialog){padding:20px 14px 14px;max-height:calc(100dvh - 24px)}.dialog:not(.phone-dialog)>#dialogTitle{font-size:23px}.dev-grid{grid-template-columns:1fr}}
@media(max-height:500px){.dialog:not(.phone-dialog){padding:12px 16px}.dialog:not(.phone-dialog)>#dialogTitle{font-size:20px;margin:4px 0 10px}.dialog:not(.phone-dialog)>#dialogActions{margin-top:6px;padding-top:6px}}

/* 0.18: compact screens and a real handheld control deck. */
:root{--deck:#655176;--button-size:clamp(42px,13vw,54px);--dock-height:202px}
.shell{width:min(1060px,calc(100% - 32px));display:flex;flex-direction:column}
.masthead{order:0;height:50px}.game-frame{order:1;max-height:calc(100dvh - 210px);width:auto;align-self:center;max-width:100%;aspect-ratio:4/3}.dashboard{order:2}.controls{order:4}.dedication{display:none}
.controls{gap:8px;justify-content:center;padding:10px 0}
.controls>div,.controls>#hudToggle,.controls>#viewButton,.controls>#runButton,.controls>#petButton,.controls>#soundButton,.controls>#newFeaturesButton,.controls>#sketchbookButton,.controls>#journalButton,.controls>#developerModeButton{display:none}
.controls>button{font-size:13px;min-height:44px;padding:10px 18px;border:1px solid #708376;background:#293d38;color:#fff1d0;border-radius:5px}
#moreButton{order:3}.wordmark small,.mast-right .save-state{display:none}.mast-right{gap:12px}.text-button{font-size:13px;min-height:44px}.build-badge{font-size:10px}.wordmark-line{display:none}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:10px 14px;gap:5px 16px;background:#253b36}
.dashboard .top-row{grid-column:1/-1;margin:0;padding:0 0 7px;gap:6px}.dashboard .identity canvas{width:23px;height:30px}.dashboard .identity{gap:8px}.dashboard .location{font-size:12px;line-height:1.35}.dashboard .character-name{font-size:12px;letter-spacing:.5px}.dashboard .pocket{font-size:14px;gap:8px}.dashboard .pocket i,.dashboard #materials{display:none}.dashboard .pocket button{min-width:44px;min-height:40px}
.dashboard .quest{grid-column:1;grid-row:2}.dashboard .quest>strong{font-size:15px;grid-row:1;line-height:1.35}.dashboard .quest>.eyebrow{display:none}.dashboard #questToggle{grid-row:1;font-size:12px;min-height:36px}.dashboard .quest p,.dashboard .recipe span{font-size:14px}.dashboard .quest-track{margin-top:2px}.dashboard .waypoint{grid-column:1;grid-row:3;padding:0;font-size:13px}.dashboard .vitals{grid-column:2;grid-row:2/4;width:155px}.dashboard .vitals span{font-size:11px}.dashboard .vitals small{display:none}.dashboard .bottom-row{grid-column:2;grid-row:4}.dashboard .world-note{display:none}
#touchControls{display:none!important}.phone-handle{min-height:42px;font-size:12px}.interaction{font-size:14px!important;line-height:1.35;max-width:85%;white-space:normal}.toast{max-width:92%;font-size:14px;line-height:1.4}.banter{font-size:14px;line-height:1.4}.scene-label strong{font-size:clamp(18px,4vw,30px)}
.dialog p{font-size:16px;line-height:1.5}.dialog .smallprint{font-size:13px;line-height:1.5}.dialog .eyebrow{font-size:12px;color:#565d48}.dialog input{color:#203e43;background:#fffaf0;font-size:16px}.dialog button{font-size:14px;min-height:44px}.dialog .close-dialog{width:44px;height:44px;background:#e1d8c0;color:#254047;top:10px;right:10px}.dialog #dialogActions{max-height:32dvh}.dialog #dialogActions .primary{font-weight:700}.dialog #dialogBody{scrollbar-gutter:auto}.dialog .activity{gap:8px}.dialog .activity>p,.dialog #paintStatus{font-size:14px!important;line-height:1.45}.dialog .challenge-brief{display:none}.quick-steps{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.quick-steps span{background:#d9ddc7;padding:12px;border-radius:5px;font-weight:700}.quick-hint{margin:0;font-weight:600}.guide-details{border-top:1px solid #a6ac94;padding-top:12px}.guide-details summary{min-height:44px;cursor:pointer;font-size:14px;font-weight:600}.guide-details .intro-steps{margin-bottom:14px}.guide-controls{font-size:15px!important}.touch-guide{display:none}.dialog .intro-steps li+li{margin-top:0}.dialog .guide-stakes{margin-top:12px}
.phone-dialog .phone-apps small{display:none}.phone-dialog .phone-apps strong{font-size:14px}.phone-dialog .phone-apps button{min-height:83px}.phone-dialog .phone-profile small{font-size:11px}.phone-dialog .phone-status{font-size:12px}.phone-dialog #dialogActions{overflow:auto;max-height:30dvh}.phone-dialog #dialogActions button{font-size:14px;min-height:44px}.phone-dialog #dialogBody{flex:1 1 auto}.phone-dialog #phoneNav{min-height:44px}.phone-dialog #phoneNav button{font-size:14px}.phone-dialog #phoneNav>span{display:none}.phone-dialog .settings-list small{font-size:14px;line-height:1.4}.phone-dialog .conversation-choices button{font-size:15px}.dialog .conversation-choices button{font-size:15px}.dialog .conversation-cue,.dialog .connection-meter{font-size:13px}
#devUnlockForm{display:grid;gap:10px}#devUnlockForm label{font-size:15px;font-weight:700}#devCode{width:100%;max-width:240px;letter-spacing:12px;padding:14px;border:2px solid #6e8c83;border-radius:6px;font:26px monospace}#devCodeError{margin:0;color:#9b352a;font-size:14px;min-height:21px}.dev-search{display:grid;gap:7px;font-size:14px;font-weight:700}.dev-search input{padding:12px;border:1px solid #718578;border-radius:5px;min-width:0;width:100%}.dev-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dev-grid button{font-size:14px}.dev-notice{font-size:13px!important;margin-top:0}.developer-session #developerBadge{top:auto;bottom:10px;right:12px;font-size:12px;min-height:44px;border-radius:5px}
#handheldDock{order:3;display:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#handheldDock button{touch-action:none;-webkit-tap-highlight-color:transparent;transition:transform .06s,filter .06s}
#handheldDock button.pressed{transform:translateY(3px);filter:brightness(1.3)}
@media(pointer:coarse),(max-width:900px){
 :root{--dock-height:202px}
 .shell{width:min(620px,100%)}.masthead{height:44px;padding:0 12px}.wordmark{font-size:22px}.mast-right .build-badge{display:none}.mast-right{gap:8px}.text-button{font-size:12px}.game-frame{width:100%;max-height:none;border:4px solid #8b79a0;border-bottom:0;border-radius:13px 13px 0 0}.dashboard{border:0;border-left:4px solid #8b79a0;border-right:4px solid #8b79a0;padding:8px 10px;gap:4px}.dashboard .top-row{padding-bottom:5px}.dashboard .identity{gap:5px}.dashboard .location{font-size:11px;max-width:190px}.dashboard .quest{grid-column:1/-1}.dashboard .quest>strong{font-size:14px}.dashboard .waypoint{grid-column:1/-1;font-size:12px}.dashboard .vitals{display:none}.dashboard .bottom-row{grid-column:1/-1;grid-row:4}.dashboard .identity canvas{display:none}.dashboard .switch-button{display:none}.dashboard .pocket button{display:none}.dashboard .pocket{font-size:14px}.controls{margin:0;padding:8px}.controls button{padding:8px 18px}.phone-handle{display:none!important}.interaction kbd{font-size:0}.interaction kbd:after{content:'A';font-size:14px}.interaction{position:absolute!important;top:auto!important;bottom:12px!important;left:50%!important;transform:translateX(-50%)!important;font-size:13px!important;padding:7px 10px;max-width:90%;width:max-content}.scene-label{max-width:90%;}.toast{font-size:13px}.desktop-guide{display:none}.touch-guide{display:inline}
 #handheldDock{display:block;position:relative;padding:12px 12px calc(14px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 12% 65%,#b8a1cb33 0 10%,transparent 11%),radial-gradient(ellipse at 88% 65%,#b8a1cb33 0 11%,transparent 12%),linear-gradient(125deg,#7e6892,#564162 55%,#735b86);border:4px solid #8b79a0;border-top:0;border-radius:0 0 24px 24px;box-shadow:inset 0 2px #c4aedd55,0 5px 0 #31283a;color:#e6d5e9;min-height:190px}
 .handheld-label{display:flex;justify-content:space-between;gap:8px;align-items:center;font:700 10px/1.4 monospace;letter-spacing:1.4px;padding:0 4px 10px;color:#eee0f5}.handheld-label span:last-child{letter-spacing:.7px;font-size:9px;color:#f5e4bc}
 .handheld-controls{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%}.dpad{position:relative;display:grid;width:calc(var(--button-size)*3);height:calc(var(--button-size)*3);grid-template:repeat(3,1fr)/repeat(3,1fr);filter:drop-shadow(0 4px 0 #261f2d);flex-shrink:0}.dpad button,.dpad i{border:0;background:linear-gradient(145deg,#38363d,#1a1b20);padding:0;color:#b7b0ba;font-size:16px;box-shadow:inset 1px 1px 0 #77708077;min-height:0}.dpad i{grid-area:2/2;box-shadow:none;background:#232329}.pad-up{grid-area:1/2;border-radius:7px 7px 0 0}.pad-left{grid-area:2/1;border-radius:7px 0 0 7px}.pad-right{grid-area:2/3;border-radius:0 7px 7px 0}.pad-down{grid-area:3/2;border-radius:0 0 7px 7px}.dpad:after{content:'';position:absolute;top:43%;left:43%;width:14%;height:14%;border-radius:50%;box-shadow:inset 1px 2px 4px #0008;pointer-events:none}
 .face-buttons{display:grid;grid-template:repeat(3,var(--button-size))/repeat(3,var(--button-size));width:calc(var(--button-size)*3);height:calc(var(--button-size)*3);flex-shrink:0}.face-buttons button{position:relative;display:grid;place-content:center;border:2px solid #aba0b3;background:linear-gradient(140deg,#39343e,#17171c);border-radius:50%;box-shadow:0 4px 0 #241b2c,inset 0 1px 2px #ffffff55;padding:0;line-height:1}.face-buttons b{font:bold 27px/1 Arial,sans-serif}.face-buttons small{font:bold 8px/1.2 Arial,sans-serif;letter-spacing:.2px;color:#f0e5e9;margin-top:2px}.face-x{grid-area:1/2;color:#65c9ff}.face-y{grid-area:2/1;color:#a9e568}.face-a{grid-area:2/3;color:#ff7f75}.face-b{grid-area:3/2;color:#ffda69}.face-buttons button:disabled{opacity:.35;filter:none}
 .handheld-center{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:42px;flex:1}.speaker{width:42px;height:22px;background:repeating-linear-gradient(to bottom,#2d263b 0 3px,transparent 3px 7px);border-radius:40%;opacity:.65}.system-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.system-buttons button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:none;border:0;padding:3px 0;min-height:44px;min-width:44px;color:#f8eaf9;font:700 8px/1.1 Arial,sans-serif}.system-buttons i{display:block;width:29px;height:12px;transform:rotate(-14deg);background:linear-gradient(0deg,#24212a,#45404e);border-radius:10px;border:1px solid #a797b1;box-shadow:0 3px #34243e}.switch-artist{border:0;background:none;color:#eee0f5;min-width:44px;min-height:32px;font-size:20px}.switch-artist span{display:block;font:700 8px Arial,sans-serif}
 .handheld-modal:not(.handheld-activity) #handheldDock{display:none}.handheld-activity #handheldDock{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(620px,100%);z-index:120;border-radius:20px 20px 0 0;border-top:3px solid #ab95b9;border-bottom:0;min-height:0;height:calc(var(--dock-height) + env(safe-area-inset-bottom))}.handheld-activity .dialog-backdrop{padding:8px 6px calc(var(--dock-height) + env(safe-area-inset-bottom) + 8px)!important;align-items:stretch}.handheld-activity .dialog:not(.phone-dialog){width:100%;max-width:760px;max-height:100%;padding:12px 10px;align-self:stretch}.handheld-activity #dialogTitle{font-size:19px!important;margin:5px 42px 9px 0!important;padding:0!important}.handheld-activity #dialogEyebrow{font-size:11px;padding-right:40px}.handheld-activity #dialogBody{padding:0}.handheld-activity #dialogActions{display:none!important}.handheld-activity .activity [data-activity-controls],.handheld-activity [data-pastime-controls],.handheld-activity #challengeControls,.handheld-activity #wiringControls{display:none!important}.handheld-activity #paintControls{display:none}.handheld-activity [data-activity-tip],.handheld-activity [data-pastime-status],.handheld-activity #challengeStatus,.handheld-activity #wiringStatus,.handheld-activity #paintStatus{font-size:14px!important;line-height:1.45;padding:8px!important;min-height:0!important;margin:0!important}.handheld-activity .activity{gap:6px}.handheld-activity #dialogBody canvas{width:100%;height:auto;max-height:none}.handheld-activity .handheld-center{gap:7px}
 .dialog:not(.phone-dialog){padding:18px 14px 14px}.dialog .dev-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog .dev-grid button{font-size:14px;padding:11px}.dialog #dialogActions{gap:8px}.dialog #dialogActions button{flex:1 1 125px}.developer-session #developerBadge{bottom:8px;right:8px;font-size:10px;min-height:36px;padding:5px 8px}
}
@media(max-width:359px){:root{--button-size:42px;--dock-height:195px}#handheldDock{padding-left:6px;padding-right:6px}.handheld-label{font-size:9px}.handheld-label span:last-child{font-size:8px}.handheld-center{gap:5px}.system-buttons{gap:0}.handheld-controls{gap:0}.face-buttons b{font-size:24px}.face-buttons small{font-size:7px}.dashboard .location{max-width:185px;font-size:11px}.dialog .dev-grid{grid-template-columns:1fr}}
@media(orientation:landscape) and (max-height:600px) and (max-width:1100px){
 :root{--button-size:44px;--dock-height:0px}
 body:not(:has(#startScreen:not([hidden]))){background:#655176}.shell{width:calc(100% - 290px)}.masthead{display:none}.game-frame{width:100%;max-height:calc(100dvh - 52px);border:3px solid #9781ab;border-radius:5px}.dashboard{padding:5px 8px;border:0}.dashboard .top-row,.dashboard .vitals,.dashboard .quest-track,.dashboard .waypoint,.dashboard .bottom-row{display:none}.dashboard .quest>strong{font-size:12px}.dashboard #questToggle{font-size:11px;min-height:32px;padding:4px 7px}.controls{display:none}
 #handheldDock,.handheld-activity #handheldDock{position:fixed;inset:0;left:0;transform:none;width:100%;height:100dvh;border:0;border-radius:0;background:none;box-shadow:none;padding:0 6px;pointer-events:none;z-index:120}.handheld-label{display:none}.handheld-controls{height:100%;align-items:center;gap:0}.handheld-controls>div{pointer-events:auto}.handheld-center{position:absolute;bottom:4px;left:0;width:142px;gap:0}.speaker,.switch-artist{display:none}.system-buttons{flex-wrap:nowrap;gap:8px}.dpad,.face-buttons{margin-top:-35px}.face-buttons{margin-left:auto}.handheld-activity .dialog-backdrop{padding:5px 148px!important}.handheld-activity .dialog:not(.phone-dialog){padding:9px 10px}.handheld-activity #dialogEyebrow{display:none}.handheld-activity #dialogTitle{font-size:16px!important;margin:0 38px 6px 0!important}.handheld-activity .activity canvas{max-height:calc(100dvh - 102px)!important;object-fit:contain}.handheld-activity #dialogBody>.activity-canvas{max-height:calc(100dvh - 100px)!important;object-fit:contain}.handheld-activity #dialogBody{overflow:auto}.handheld-activity .dialog .close-dialog{top:4px;right:5px;width:36px;height:36px}.handheld-activity #dialogBody p{font-size:12px!important}.handheld-modal:not(.handheld-activity) #handheldDock{display:none}
}
@media(prefers-reduced-motion:reduce){#handheldDock button{transition:none}}

.game-frame{width:min(100%,calc((100dvh - 210px)*4/3))}
@media(pointer:coarse),(max-width:900px){.game-frame{width:100%}}
@media(orientation:landscape) and (max-height:600px) and (max-width:1100px){.game-frame{width:min(100%,calc((100dvh - 52px)*4/3))}.handheld-activity .activity-short-hint{display:none}}
#startScreen .start-content{background:linear-gradient(0deg,#102c34f2,#102c34d9 80%,transparent);border-radius:16px;padding-top:18px}
@media(min-aspect-ratio:4/3){#startScreen .cover-art{object-fit:contain;object-position:24% center;width:70%}#startScreen .start-content{left:auto;right:2vw;bottom:24svh;width:30%;padding:20px 8px;background:#102c34e8}#startScreen .retro-word{height:clamp(14px,1.5vw,23px)}}
@media(min-aspect-ratio:4/3) and (max-height:520px){#startScreen .start-content{bottom:15svh}#startScreen .retro-prompt{margin-bottom:10px}}

/* Preserve optional health display and legible map labels on small screens. */
.dialog .destination strong{font-size:14px}.dialog .destination small{font-size:12px;line-height:1.4}.dialog .atlas-toolbar button,.dialog .map-filters button{font-size:13px;min-height:44px}.dialog .atlas-sidebar input{font-size:16px;min-height:44px}.dialog .stats-grid small,.dialog .mastery-goal small{font-size:12px}
@media(pointer:coarse),(max-width:900px){.dashboard .vitals{display:grid;grid-column:1/-1;grid-row:auto;width:100%;gap:8px 14px;margin-top:4px}.handheld-center{gap:7px}}
@media(max-width:460px){.handheld-center .speaker{display:none}.handheld-center{gap:5px}.handheld-label{padding-bottom:8px}}

/* v19: readable activity controls and unclipped result text. */
#arcadeCanvas { display:block; width:100%; max-width:620px; height:auto; margin:auto; image-rendering:pixelated; touch-action:none; border:2px solid #52666b; border-radius:6px; }
[data-arcade-controls] { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; padding:6px 0; }
[data-arcade-controls] button { min-height:42px; flex:1 0 100px; font-size:12px; padding:8px 10px; }
[data-arcade-status] { min-height:2.5em; margin:8px 0; padding:8px 12px; color:#fff0c7; background:#243c43; font:600 13px/1.4 monospace; white-space:normal; overflow-wrap:anywhere; }
[data-arcade-status][data-state=success] { background:#285b4d; }
[data-arcade-status][data-state=retry] { background:#743f42; }
.job-pay { padding:10px 14px; border-left:4px solid #cb9554; background:#cfa56622; font-weight:700; }
#dialogBody { min-width:0; }
#dialogActions { flex-shrink:0; }
.handheld-activity [data-arcade-controls] { display:none; }

/* Activities keep help below the playfield, with usable touch targets. */
.activity canvas, #neighborhoodScene {display:block;width:100%;height:auto;touch-action:none;}
[data-arcade-controls], [data-pastime-controls], #challengeControls {display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.activity-control, #challengeControls button {min-height:44px;min-width:44px;touch-action:none;}
[data-arcade-status], [data-pastime-status], #challengeStatus {min-height:2.6em;line-height:1.35;white-space:normal;overflow-wrap:break-word;}
@media(max-width:600px){.activity-short-hint,.challenge-brief{font-size:14px;line-height:1.4;}[data-arcade-controls] button{flex:1 1 28%;font-size:12px;}#dialogBody{min-width:0;}.activity{min-width:0;}}

.deli-ticket{margin:0 0 10px;padding:10px 12px;background:#f6e6c2;color:#243f39;font:700 15px/1.5 monospace;border:2px solid #bda06e;border-radius:3px;}
/* v21: a readable atlas and generous cabinet controls. */
.flash-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}.flash-controls button{min-width:48px;min-height:46px;touch-action:none}
#bigMap{width:100%;height:auto;aspect-ratio:900/650;touch-action:none;outline-offset:-3px}
.atlas-toolbar{display:flex;flex-wrap:wrap;gap:6px}.atlas-toolbar button{min-height:44px}.atlas-toolbar #mapArcade{background:#76529f;color:#fff2cf}
.atlas-destinations .destination{min-height:58px;text-align:left}.atlas-destinations small{display:block;margin-top:4px}.atlas-selection{gap:10px}.atlas-selection strong,.atlas-selection span{display:block}.atlas-selection button{min-height:44px}
.map-dialog.phone-dialog{max-width:min(1100px,96vw)!important;width:1100px!important}.map-dialog .atlas-layout{grid-template-columns:minmax(0,1fr) 230px;align-items:start}.map-dialog .atlas-paper{position:sticky;top:0}.map-dialog .atlas-sidebar{max-height:520px;overflow:auto}.map-dialog #mapSearch{min-height:44px;width:100%}.map-dialog .map-filters{display:flex;flex-wrap:wrap;gap:5px}.map-dialog .map-filters button{min-height:36px}
@media(max-width:700px){.map-dialog .atlas-layout{display:flex;flex-direction:column}.map-dialog .atlas-paper{position:static;width:100%;order:0}.map-dialog .atlas-sidebar{width:100%;max-height:none;order:1}.map-dialog .atlas-destinations{display:grid;grid-template-columns:1fr 1fr;max-height:190px;overflow:auto}.map-dialog .map-filters{flex-wrap:nowrap;overflow-x:auto;padding:6px 0}.map-dialog .map-filters button{flex-shrink:0;min-height:42px}.atlas-selection{display:flex;flex-wrap:wrap}.atlas-selection>div{width:100%}.atlas-selection button{flex:1}.atlas-toolbar{display:grid;grid-template-columns:repeat(3,1fr)}.atlas-toolbar button{font-size:11px;padding:7px 4px}.atlas-key{font-size:10px}.flash-controls{gap:5px}.flash-controls button{font-size:12px;padding:8px}}
.atlas-key{display:flex;flex-wrap:wrap;gap:6px 14px;line-height:1.5;font-size:12px}.map-dialog .phoneNav{flex:none}

/* Shared layout prevents target text and cycling controls from colliding. */
#interactionDock{position:absolute;left:50%;bottom:18px;top:auto;transform:translateX(-50%);display:flex;align-items:stretch;gap:6px;max-width:calc(100% - 28px);z-index:24;pointer-events:none}
#interactionDock[hidden]{display:none!important}
#interactionDock #prompt,#interactionDock #cycleButton{position:static!important;inset:auto!important;transform:none!important;margin:0!important;max-width:none;pointer-events:auto}
#interactionDock #prompt{display:flex;align-items:center;gap:9px;min-width:0;padding:10px 12px;white-space:normal;line-height:1.35}
#interactionDock #prompt span{min-width:0;overflow-wrap:anywhere}
#interactionDock #cycleButton{flex:0 0 auto;align-self:stretch;white-space:nowrap;font-size:11px;padding:9px;border:2px solid #e7cc94;background:#253d45;color:#fff0cc}
#interactionDock [hidden]{display:none!important}
.chapter-stops{display:flex;gap:4px;margin-top:8px}.chapter-stops i{flex:1;display:block;height:7px;border-radius:2px;background:#648085}.chapter-stops i.done{background:#f0bd66}
#checkpointHint{display:block;margin-top:5px;line-height:1.35;font-size:11px;color:#d5dfce}
.opening-caption{line-height:1.55;max-width:620px;margin:12px auto!important}
.contract-stakes{display:grid;gap:8px;margin:14px 0}.contract-stakes span{display:flex;justify-content:space-between;gap:16px;padding:10px;background:#e7d7b9;color:#273f45;border-left:4px solid #b57a45}
.atlas-destinations .destination{display:grid;grid-template-columns:32px minmax(0,1fr);gap:3px 10px;align-items:center;text-align:left}.destination-icon{grid-row:span 2;width:32px;height:32px;max-width:none}.atlas-destinations .destination strong,.atlas-destinations .destination small{min-width:0;overflow-wrap:anywhere}.map-results-count{font-size:12px;margin:8px 0;color:#52676b}
@media(max-width:600px){#interactionDock{bottom:10px;max-width:calc(100% - 18px);width:max-content}#interactionDock #prompt{font-size:12px;padding:8px;max-width:calc(100vw - 110px)}#interactionDock #cycleButton{font-size:10px;padding:7px}.contract-stakes span{flex-wrap:wrap}}
.arcade-checkpoints p{display:grid;grid-template-columns:1fr auto;gap:6px}.arcade-checkpoints progress{grid-column:1/-1;width:100%;height:9px;accent-color:#b88442}

/* v23: a readable film frame, dialogue below the artwork, always-visible actions. */
#startScreen .story-shortcuts{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%}
#startScreen .start-content button[hidden]{display:none!important}
#startScreen .opening-menu-note{font:12px/1.5 monospace;color:#fff0d2;margin:5px 0 8px;text-shadow:1px 2px #102635}
#startScreen .story-shortcuts .retro-word{height:15px}
.opening-dialog .opening-stage{background:#253b43;line-height:0;overflow:hidden}
.opening-dialog .opening-stage canvas{display:block;width:100%;height:auto;max-height:49dvh;object-fit:contain;border:0}
.dialog.opening-dialog{width:min(820px,96vw);padding:20px 24px;background:#233e47;border:2px solid #bc9b61;box-shadow:0 18px 70px #08171bbd;color:#fff0d2}
.dialog.opening-dialog #dialogEyebrow{color:#c9d9c9;font:11px/1.3 monospace;letter-spacing:1px}
.dialog.opening-dialog #dialogTitle{color:#fff0d2;font:700 clamp(18px,2.6vw,26px)/1.2 monospace;margin:8px 0 14px}
.dialog.opening-dialog #dialogBody{padding:0;scrollbar-gutter:auto}
.opening-dialogue{padding:16px 18px;background:#f0e2bf;border-top:3px solid #d3ae66;color:#253e46}
.opening-speaker{display:flex;justify-content:space-between;gap:12px;font:700 12px/1.4 monospace;letter-spacing:.5px}
.opening-speaker small{color:#647469;white-space:nowrap}
.dialog.opening-dialog #openingLine{font:16px/1.5 Arial,sans-serif;margin:9px 0 0;min-height:48px;color:#253e46;overflow-wrap:break-word}
.opening-track{height:4px;background:#415e60}.opening-track b{display:block;height:100%;background:#e9bd6c}
.dialog.opening-dialog .opening-controls{font:11px/1.45 monospace;color:#bccdbb;margin:9px 0 0}
.dialog.opening-dialog #dialogActions{border-color:#79918a66;margin-top:10px;padding-top:10px;gap:8px}
.dialog.opening-dialog .primary{background:#e7bd72;color:#243f46;border-color:#f6d599;flex:1 1 180px;font-weight:700}
.dialog.opening-dialog .secondary{background:#2d4d55;color:#f6e6bd;border-color:#66817b;flex:0 1 auto}
.dialog.opening-dialog .close-dialog{background:#2d4d55;color:#f6e6bd}
.dialog.opening-dialog button:focus-visible{outline:3px solid #8bd7cb;outline-offset:2px}
@media(max-width:560px){.dialog.opening-dialog{padding:14px 12px;width:100%}.opening-dialogue{padding:12px}.dialog.opening-dialog #openingLine{font-size:15px;line-height:1.45}.opening-dialog .opening-stage canvas{max-height:39dvh}.dialog.opening-dialog #dialogActions{flex-wrap:wrap}.dialog.opening-dialog .primary{flex-basis:100%}.dialog.opening-dialog .secondary{flex:1}.dialog.opening-dialog .opening-controls{font-size:10px}}
@media(max-height:540px) and (orientation:landscape){.opening-dialog #dialogBody{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:stretch}.opening-dialog .opening-stage canvas{max-height:56dvh}.opening-dialogue{border-top:0;border-left:3px solid #d3ae66}.opening-dialog .opening-track,.opening-dialog .opening-controls{grid-column:1/-1}.dialog.opening-dialog #openingLine{font-size:14px;line-height:1.4}.dialog.opening-dialog #dialogTitle{margin-bottom:8px}.dialog.opening-dialog{padding:12px}}

/* v25: the desktop world uses the available display, independently of browser zoom. */
@media(min-width:901px) and (pointer:fine){
 .expanded-view .shell{width:calc(100% - 28px);max-width:1920px;min-width:0;}
 .expanded-view .masthead{height:42px;}
 .expanded-view .game-frame{width:100%;height:clamp(380px,calc(100dvh - 158px),1100px);max-height:none;aspect-ratio:auto;}
 .expanded-view .dashboard{width:100%;max-width:none;}
 .expanded-view .controls{gap:7px 10px;padding:9px 0;}
 .expanded-view .controls>div{display:none;}
 .expanded-view .dialog.opening-dialog{width:min(1050px,94vw);}
 .expanded-view .opening-dialog .opening-stage canvas{max-height:57dvh;}
 :fullscreen.expanded-view .game-frame{height:calc(100dvh - 140px);}
}
.model-privacy{display:block;min-height:36px;padding:7px 12px;background:#253f48;color:#fff0d2;border:1px solid #80958e;border-radius:3px;font:12px/1.3 monospace;line-height:1.3;}
.opening-stage .model-privacy{margin:8px;}
.activity .model-privacy{margin:8px auto;}
#routeButton[aria-pressed=true]{background:#254f65;color:#a2e5ff;border-color:#70bddc;}
#expandButton[aria-pressed=true]{border-color:#ddbd80;}

/* Two direct activity controls, large enough for touch without crowding the canvas. */
.city-inputs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.city-inputs button{min-width:48px;min-height:48px;touch-action:none;user-select:none}.city-activity canvas{touch-action:none}.city-inputs button:active{transform:translateY(2px);background:#e6bc6e;color:#213943}

/* Campaign pages share the game's ink, paper and brass. No panels cover play. */
.campaign-total{display:grid;gap:8px;background:#23494a;color:#f6e7c5;padding:16px;margin:14px 0}.campaign-total progress{width:100%;accent-color:#d6af63}.campaign-chapters{display:grid;gap:8px}.campaign-chapters details{border:1px solid #a89b7b;border-radius:5px;padding:10px}.campaign-chapters summary{font-weight:700;cursor:pointer;min-height:32px}.campaign-chapters summary small{float:right}.campaign-chapters details button,.campaign-upgrades button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;text-align:left;padding:12px;margin-top:7px;white-space:normal;min-height:48px}.campaign-chapters button small,.campaign-upgrades small{font-weight:400;line-height:1.4}.campaign-stage{color:#315d5b;font-weight:700;padding:10px 0;border-bottom:2px solid #c9a762}.campaign-dialogue{display:grid;gap:4px}.campaign-dialogue p{display:grid;grid-template-columns:85px minmax(0,1fr);gap:12px;margin:4px 0;padding:9px 0}.campaign-dialogue b{font-size:11px;letter-spacing:.6px;color:#487676}.campaign-dialogue span{line-height:1.5}.campaign-film{display:block;width:100%;height:auto;max-height:62dvh;object-fit:contain;background:#203b43;border-radius:4px}.campaign-side button{display:block;width:100%;text-align:left;min-height:48px;margin:6px 0}.campaign-artworks{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.campaign-artworks article{display:grid;gap:7px;padding:16px;border:2px solid #b89b68;background:#f2e4c3;box-shadow:3px 4px 0 #243f4120}.campaign-cabinets{display:grid;grid-template-columns:1fr 1fr;gap:9px}.campaign-cabinets [aria-pressed=true]{background:#255f5b;color:#fff0c9}.campaign-upgrades{display:grid;gap:8px}[data-studio-controls]{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}[data-studio-controls] button{min-height:62px;white-space:normal;line-height:1.4}.activity #studioCanvas{width:100%;height:auto;touch-action:none}.mastery-goal small{white-space:normal;line-height:1.4}.phone-apps{align-content:start}
@media(min-width:1000px){.expanded-view .shell{max-width:none;width:calc(100% - 20px)}.expanded-view .game-frame{height:calc(100dvh - 142px);max-height:none;min-height:400px}.dialog:has(.campaign-film){width:min(1400px,96vw);max-width:96vw}}
@media(max-width:560px){.campaign-dialogue p{grid-template-columns:1fr;gap:4px}.campaign-film{max-height:40dvh}.campaign-cabinets{grid-template-columns:1fr}.campaign-chapters summary{font-size:13px}.campaign-chapters summary small{float:none;display:block}[data-studio-controls]{grid-template-columns:1fr}.phone-apps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.campaign-artworks article{transition:none}}

/* 0.27.1: readable phone activities, safe-area gutters and true-ratio playfields. */
#dialogBody, #dialogActions, #dialogBody .activity, #conversationActivity,
.conversation-scene > div, .conversation-choices button > span,
.phone-profile > div, .phone-apps > button, .settings-list > * { min-width:0; }
#dialogBody p, #dialogBody h3, #dialogBody button, #dialogBody label,
#dialogActions button { overflow-wrap:anywhere; white-space:normal; }
.conversation-scene { min-width:0; }
.conversation-scene > div { flex:1 1 0; }
.conversation-choices button { min-width:0; max-width:100%; }
.conversation-choices button b { flex:0 0 23px; }
.studio-readout { display:none; }
.dialog [data-arcade-status] { color:#fff0c7; }
.connection-meter { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; }
.connection-meter > span, .connection-meter > small { min-width:0; overflow-wrap:anywhere; }
.connection-meter > progress { order:3; width:100%; min-width:0; }
@media(pointer:coarse), (max-width:900px) {
 .dialog-backdrop { box-sizing:border-box; }
 .dialog, .phone-dialog { min-width:0; max-width:100%; }
 #dialogBody { overflow-x:hidden; overflow-y:auto; touch-action:pan-y; }
 #dialogBody > *, #dialogBody .activity > * { min-width:0; max-width:100%; box-sizing:border-box; }
 #dialogBody input, #dialogBody select { min-width:0; max-width:100%; }
 .dialog .close-dialog { width:44px; height:44px; min-width:44px; min-height:44px; }
 .handheld-activity #dialogBody { padding:0; }
 .handheld-activity .activity { gap:6px; }
 .handheld-activity .activity > canvas {
  flex:none; align-self:center; margin:0 auto; height:auto!important;
  max-height:none!important; aspect-ratio:auto; object-fit:fill;
 }
 .handheld-activity .activity > p,
 .handheld-activity [data-arcade-status], .handheld-activity [data-city-status],
 .handheld-activity [data-opening-status], .handheld-activity [data-activity-tip],
 .handheld-activity [data-pastime-status], .handheld-activity #challengeStatus,
 .handheld-activity #wiringStatus, .handheld-activity #paintStatus {
  font-size:13px!important; line-height:1.35; min-height:0; height:auto;
  padding:7px!important; margin:0!important; overflow-wrap:anywhere;
 }
 .handheld-activity .deli-ticket { padding:6px 8px!important; font-size:13px; }
 .handheld-activity [data-city-controls], .handheld-activity [data-opening-controls] { display:none; }
 .handheld-activity #dialogTitle { line-height:1.2; }
 .handheld-activity #handheldDock { padding-bottom:calc(8px + env(safe-area-inset-bottom)); }
 .handheld-direct #handheldDock { display:none!important; }
 .handheld-direct .dialog-backdrop {
  padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
 }
 .handheld-direct .dialog:not(.phone-dialog) { width:min(760px,100%); max-height:100%; }
 .handheld-direct #dialogActions { display:flex!important; margin-top:8px; padding-top:8px; }
 .handheld-direct #dialogActions button { min-height:44px; }
 .studio-readout { display:grid; gap:8px; padding:12px; background:#f0e1be; border:1px solid #b6a27c; border-radius:5px; color:#243e49; }
 .studio-readout p { margin:0!important; padding:0!important; }
 .studio-progress { font:700 12px/1.4 monospace; }
 .studio-prompt { font-size:16px!important; line-height:1.5!important; }
 .studio-feedback { font-size:13px!important; line-height:1.4!important; color:#365b50; }
 .studio-cards > canvas { display:none!important; }
 .studio-cards [data-studio-controls] { margin:0; }
 .studio-cards [data-studio-controls] button { font-size:15px; padding:12px; min-height:48px; }
 .conversation-scene { gap:12px; padding:10px; }
 .handheld-activity #dialogBody .conversation-portrait { width:52px!important; height:68px!important; max-width:52px; flex:0 0 52px; }
 .conversation-scene h3 { font-size:16px; }
 .conversation-choices button { padding:10px; font-size:15px; }
 .dashboard .top-row { flex-wrap:wrap; }
 .dashboard .identity { min-width:0; flex:1 1 180px; }
 .dashboard .location { max-width:100%; overflow-wrap:anywhere; }
 .dashboard .quest { min-width:0; }
}
@media(orientation:landscape) and (max-height:600px) and (max-width:1100px) {
 .handheld-activity:not(.handheld-direct) .dialog-backdrop {
  padding:max(5px,env(safe-area-inset-top)) max(144px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(144px,env(safe-area-inset-left))!important;
 }
 .handheld-activity .dialog:not(.phone-dialog) { padding:8px; }
 .handheld-activity #dialogTitle { margin:0 46px 8px 0!important; min-height:36px; }
 .handheld-direct #dialogTitle { min-height:28px; }
 .handheld-direct .studio-cards [data-studio-controls] { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .handheld-direct .conversation-scene { align-items:flex-start; }
 .handheld-direct .conversation-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .handheld-direct .connection-meter { margin:8px 0; }
}
@media(max-width:359px) {
 .handheld-activity #dialogEyebrow { display:none; }
 .handheld-activity #dialogTitle { font-size:17px!important; min-height:36px; margin:0 46px 8px 0!important; }
 .handheld-activity #handheldDock { --dock-height:178px; padding-top:8px; }
 .handheld-activity .handheld-label { padding-bottom:5px; }
 .handheld-activity .speaker, .handheld-activity .switch-artist { display:none; }
 .handheld-activity .dialog-backdrop { padding-bottom:calc(186px + env(safe-area-inset-bottom))!important; }
 .handheld-direct .dialog-backdrop { padding-bottom:max(8px,env(safe-area-inset-bottom))!important; }
}
@media(pointer:coarse), (max-width:900px) {
 .handheld-activity .city-inputs, .handheld-activity [data-gesture-act] { display:none; }
 .handheld-activity .activity:not(.studio-cards) .studio-readout { padding:6px; gap:4px; }
 .handheld-activity .activity:not(.studio-cards) .studio-prompt { font-size:13px!important; line-height:1.35!important; }
 .handheld-activity .activity .model-privacy { margin:0; min-height:44px; }
}
@media(max-width:700px) {
 .map-dialog .atlas-sidebar { display:flex; flex-direction:column; min-width:0; }
 .map-dialog .map-filters { flex-wrap:wrap; overflow:visible; }
 .map-dialog .atlas-destinations { width:100%; min-width:0; max-height:240px; }
 .map-dialog .destination { min-width:0; }
}
@media(max-width:480px) {
 .map-dialog .atlas-destinations { grid-template-columns:minmax(0,1fr); }
}
.stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.stats-grid > div { min-width:0; overflow-wrap:anywhere; }
@media(max-width:420px) { .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.studio-levels{font:9px/1.4 ui-monospace,monospace;color:#edca8a;max-width:100%;overflow-wrap:anywhere}.city-inputs:empty{display:none}
/* Guided breathing needs a comfortable card, without an unused control deck. */
.dialog[data-activity="meditation"]{height:auto!important;min-height:0}
.dialog[data-activity="meditation"] #activityCanvas{width:min(100%,calc((100dvh - 180px)*1.55))!important;margin-inline:auto}

/* v28: a compact, persistent instrument strip. Health never competes with the chapter. */
.dashboard{grid-template-columns:minmax(160px,.8fr) minmax(200px,1.5fr) minmax(180px,1fr);gap:6px 16px;padding:8px 12px;align-items:center}
.dashboard .top-row{grid-column:1;grid-row:1;display:flex;padding:0;min-width:0;gap:6px}
.dashboard .identity canvas,.dashboard .switch-button,.dashboard .pocket button{display:none}
.dashboard .identity{min-width:0;gap:0}.dashboard .identity>div{min-width:0}.dashboard .character-name{font-size:11px}.dashboard .location{font-size:10px;max-width:none;line-height:1.3}.dashboard .pocket{font-size:13px;margin-left:auto}
.dashboard .quest{grid-column:2;grid-row:1;min-width:0}.dashboard .quest>strong{font-size:12px;line-height:1.3}.dashboard #questToggle{min-height:30px;font-size:10px;padding:4px 7px}
.dashboard .quest-track,.dashboard .chapter-stops{margin-top:3px}.dashboard #checkpointHint{font-size:9px;line-height:1.3;display:block;grid-column:1/-1}.dashboard .vitals{display:grid;grid-column:3;grid-row:1;width:auto;margin:0;gap:5px 12px}.dashboard .vitals[hidden]{display:none}.dashboard .vitals span{font:10px/1.3 monospace}.dashboard .vitals i{height:5px}.dashboard .vitals small{display:block;font-size:9px;line-height:1.25;overflow-wrap:anywhere}.dashboard .waypoint{display:none}.dashboard .bottom-row{grid-column:1/-1;grid-row:2}.dashboard .map-wrap{margin-top:0}
.corner-navigation{position:absolute;bottom:15px;left:12px;max-width:min(250px,50%);padding:9px 12px;background:#173b48ed;border:1px solid #7bb9c5;border-radius:5px;color:#fff0cc;font:12px/1.4 monospace;pointer-events:none;box-shadow:0 3px 0 #142b3c55}.corner-navigation strong,.corner-navigation span{display:block}.corner-navigation span{font-size:10px;color:#b9e4dd}
@media(max-width:900px),(pointer:coarse){.dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:6px 9px;gap:4px 10px}.dashboard .top-row{grid-column:1;grid-row:1}.dashboard .identity{flex:auto}.dashboard .identity>div{display:flex;flex-direction:column}.dashboard .quest{grid-column:1/-1;grid-row:2}.dashboard .vitals{grid-column:2;grid-row:1;gap:4px 8px;width:auto}.dashboard .vitals span{font-size:9px}.dashboard .vitals small{display:none}.dashboard .quest>strong{font-size:11px}.dashboard .bottom-row{grid-row:3}.dashboard .location{font-size:9px}.dashboard .character-name{font-size:10px}.dashboard .pocket{font-size:11px}.dashboard #checkpointHint{font-size:8px}.dashboard .chapter-stops{height:4px}.corner-navigation{font-size:10px;bottom:70px;max-width:52%;padding:6px 8px}}
@media(max-height:540px) and (orientation:landscape){.dashboard{grid-template-columns:minmax(125px,1fr) minmax(150px,1.3fr) minmax(130px,1fr);padding:4px 6px;gap:4px 8px}.dashboard .top-row{grid-column:1;grid-row:1}.dashboard .quest{grid-column:2;grid-row:1}.dashboard .vitals{grid-column:3;grid-row:1}.dashboard .location,.dashboard #checkpointHint{display:none}.dashboard .quest>strong{font-size:10px}.dashboard #questToggle{min-height:24px}.corner-navigation{bottom:12px}}
/* The atlas is a map with a compact finder, not a wall of filter buttons. */
.map-dialog.phone-dialog,.dialog.map-dialog{height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;min-height:0!important;padding:12px!important;border-radius:12px!important;border-width:3px!important;overflow:hidden}
.map-dialog #phoneHardware,.map-dialog #phoneHomeBar,.map-dialog #dialogEyebrow{display:none!important}.map-dialog #phoneNav{padding:0;margin:0;min-height:25px}.map-dialog #dialogTitle{font:700 18px/1.1 monospace!important;margin:4px 35px 8px 0!important}.map-dialog .close-dialog{top:7px!important;right:7px!important;min-height:30px}
.map-dialog #dialogBody{flex:1;min-height:0;overflow:hidden;gap:7px}.map-dialog .atlas-toolbar{display:flex;flex-wrap:nowrap;gap:4px;flex-shrink:0}.map-dialog .atlas-toolbar button{min-height:36px;min-width:34px;padding:5px 8px;font-size:11px;flex:1}.map-dialog .atlas-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 230px;grid-template-rows:minmax(0,1fr);flex:1;min-height:0;gap:9px;align-items:stretch}.map-dialog .atlas-paper{position:relative;min-height:0;align-self:stretch}.map-dialog .atlas-paper canvas{max-height:100%!important;width:100%;height:100%}.map-dialog .atlas-key{display:none}.map-dialog .atlas-sidebar{display:flex!important;flex-direction:column;gap:5px;min-height:0;max-height:none;overflow:hidden}.map-dialog .atlas-sidebar #mapSearch{min-height:36px;font-size:16px;padding:6px}.map-dialog .map-filters{display:grid;grid-template-columns:auto 32px minmax(0,1fr) 32px;align-items:center;gap:4px;flex-wrap:nowrap;padding:0;flex-shrink:0;overflow:visible}.map-filters label{font:11px monospace}.map-dialog .map-filters button{min-height:36px;padding:0;font-size:20px}.map-filters select{min-width:0;width:100%;height:36px;border:1px solid #819c92;background:#f7ecd0;color:#24483f;font:12px monospace;padding:3px}
.map-dialog .atlas-destinations{display:flex!important;flex-direction:column;flex:1;max-height:none!important;overflow:auto;min-height:0;gap:3px}.map-dialog .map-results-count{font:10px/1.2 monospace;margin:2px 0}.map-dialog .destination{min-height:44px!important;padding:5px 7px!important;flex-shrink:0;grid-template-columns:24px minmax(0,1fr)}.map-dialog .destination-icon{width:24px;height:24px}.map-dialog .destination strong{font:600 11px/1.25 monospace}.map-dialog .destination small{font:10px/1.25 monospace;margin:0}.map-dialog .atlas-selection{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;padding-top:6px;align-items:center}.map-dialog #mapSelection{min-width:0;width:auto;flex-basis:auto}.map-dialog #mapSelection strong{font:600 12px/1.3 monospace;overflow-wrap:anywhere}.map-dialog #mapSelection span{font:10px/1.3 monospace;overflow-wrap:anywhere}.map-dialog .atlas-selection button{font:11px monospace;padding:7px 9px;min-height:36px;white-space:normal;max-width:100%}.map-dialog #dialogActions{margin-top:6px;padding-top:5px;flex-shrink:0}.map-dialog #dialogActions button{font-size:11px;min-height:32px;padding:5px 10px}
@media(max-width:600px){.dialog.map-dialog.phone-dialog,.dialog.map-dialog{width:calc(100vw - 8px)!important;max-width:calc(100vw - 8px)!important;padding:8px!important;height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important}.map-dialog .atlas-toolbar button{font-size:9px;padding:4px 2px;min-width:26px}.map-dialog #mapArcade{display:none}.map-dialog .atlas-layout{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(130px,1fr) 128px}.map-dialog .atlas-sidebar{width:100%}.map-dialog .atlas-destinations{display:grid!important;grid-template-columns:1fr 1fr;align-content:start}.map-dialog .map-results-count{display:none}.map-dialog .atlas-selection{grid-template-columns:minmax(0,1fr) auto}.map-dialog #mapSelection{grid-column:1/-1}.map-dialog #mapSelection span{display:none}.map-dialog .atlas-selection button{width:100%}.map-dialog .atlas-selection>div{width:auto}.map-dialog #phoneNav{display:none!important}}
@media(max-height:540px) and (orientation:landscape){.map-dialog #phoneNav{display:none!important}.map-dialog .atlas-layout{grid-template-columns:minmax(0,1fr) 180px!important;grid-template-rows:minmax(0,1fr)!important}.map-dialog #dialogTitle{font-size:14px!important;margin-bottom:4px!important}.map-dialog .atlas-toolbar button{min-height:30px}.map-dialog #mapSelection span{display:none}.map-dialog .atlas-selection{grid-template-columns:minmax(0,1fr) auto auto}.map-dialog #mapSelection{grid-column:1}.map-dialog .atlas-destinations{display:flex!important}.map-dialog #dialogActions{padding:0;border:0;margin-top:4px}.map-dialog #dialogActions button{min-height:26px;padding:3px 10px}}

/* Canvas resolution follows the available map area, without letterboxing. */
.map-dialog .atlas-paper #bigMap{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:fill}

/* Compact activity controls never overlay the drawing surface. */
.work-controls{display:flex;flex-wrap:wrap;gap:8px}.work-controls button{flex:1 1 120px;min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:44px}.work-activity [data-work-status]{min-width:0;overflow-wrap:anywhere;font-size:clamp(11px,2.8vw,14px);margin:6px 0}.work-activity canvas{width:100%;height:auto;display:block;touch-action:none}
@media(max-width:560px){.work-controls{gap:5px}.work-controls button{flex-basis:90px;padding:8px 6px;font-size:12px}}

.handheld-activity .work-activity [data-work-controls]{display:none}.handheld-activity .dialog[data-activity="artist-talk"] [data-work-controls]{display:flex}.handheld-activity .work-activity [data-work-status]{font-size:12px;line-height:1.25}.work-activity canvas{margin-inline:auto}

.dialog[data-activity="artist-talk"] .work-controls button{flex:1 1 0;font-size:12px;padding:8px 5px}
/* Activity dialogs own their scrolling; the city behind them stays still. */
body.handheld-modal{overflow:hidden}
@media(max-width:900px),(pointer:coarse){.dashboard .vitals{min-width:0;grid-template-columns:minmax(0,1fr)}.dashboard .vitals>div{min-width:0}.dashboard .vitals span{gap:5px;white-space:nowrap}}
@media(max-width:700px) and (orientation:landscape){.dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.dashboard .vitals{grid-column:2;grid-row:1}.dashboard .quest{grid-column:1/-1;grid-row:2}}

/* v28.2: stable drawn controls and touch-safe chrome, preserving editable fields. */
.dpad button{display:grid;place-items:center}
.pad-arrow{display:block;width:0;height:0;border-left:9px solid transparent;border-right:9px solid transparent;border-bottom:12px solid #ece4d4;pointer-events:none}
.pad-left .pad-arrow{transform:rotate(-90deg)}.pad-right .pad-arrow{transform:rotate(90deg)}.pad-down .pad-arrow{transform:rotate(180deg)}
.shell,#dialogBackdrop,#handheldDock,#developerBadge{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
button,canvas{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}
.masthead .wordmark{font:bold clamp(12px,3vw,18px)/1 monospace;letter-spacing:1px;white-space:nowrap}
.banter{top:10px;left:50%;width:max-content;max-width:min(72%,580px);padding:7px 12px;font-size:12px;pointer-events:none;z-index:5}
.handheld-enabled .banter{top:7px;max-width:88%;font-size:10px;line-height:1.3}
.neighborhood-activity [data-neighborhood-status]{font-size:13px;line-height:1.35;margin:6px 0;min-height:2.7em}
.neighborhood-controls{display:flex;gap:6px;justify-content:center}.neighborhood-controls button{min-height:44px;min-width:42px;flex:1;max-width:90px;padding:5px}
body.handheld-activity .neighborhood-controls{display:none}

/* v29 compact feedback and meetup action */
#sprintMeter{position:fixed;z-index:15;bottom:160px;left:50%;transform:translateX(-50%);width:72px;height:6px;accent-color:#e9ba65;pointer-events:none}#meetButton{position:fixed;z-index:15;right:12px;top:110px;padding:9px 12px;background:#243d4b;color:#fff0c9;border:1px solid #d6bc81;border-radius:8px}#meetButton[hidden],#sprintMeter[hidden]{display:none}.campaign-stage{grid-column:1/-1}.campaign-dialogue{grid-column:1/-1}.campaign-dialogue p{display:flex;gap:12px}.campaign-dialogue b{min-width:64px}.campaign-stage~.smallprint{grid-column:1/-1;font-size:11px;line-height:1.35;margin:4px 0}.v29-tip{font-size:13px;line-height:1.4}[data-v29-controls]{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}[data-v29-controls] button{min-height:44px;min-width:46px}#v29Canvas{width:100%;height:auto;touch-action:none}

/* 29.1: large Remi artwork and an uncluttered three-button controller. */
.remy-activity canvas{width:100%;height:auto;max-width:780px;image-rendering:auto;touch-action:none;border-radius:12px}
[data-remy-controls]{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:8px;margin-top:10px}
[data-remy-controls] button{min-height:48px;touch-action:none;font-size:14px;padding:10px 6px}
[data-remy-action="act"]{background:#e8bf73;color:#183541}
[data-remy-status]{min-height:1.4em;text-align:center;font-size:13px;margin:8px 0 0}
.corner-navigation small{display:block;color:#e4d8bf;font-size:11px;margin-top:3px}
@media(max-width:560px){[data-remy-controls] button{font-size:12px}.corner-navigation{max-width:min(260px,65vw)}}

.dialog .remy-activity canvas{width:min(100%,max(180px,calc((100dvh - 300px)*1.55)))!important;max-width:780px;height:auto!important;align-self:center;margin-inline:auto;flex:none}
.dialog .remy-activity [data-remy-controls]{flex:none}
@media(max-height:520px){.dialog .remy-activity canvas{width:min(100%,max(150px,calc((100dvh - 210px)*1.55)))!important}.dialog .remy-activity{gap:5px}[data-remy-controls]{margin-top:0}.dialog .remy-activity [data-remy-status]{display:none}}

[data-remy-controls] button{background:#e9dcc0;color:#203b46;border:1px solid #8c9c96;border-radius:6px}[data-remy-controls] [data-remy-action="act"]{background:#e8bf73;color:#183541}[data-remy-controls] button:disabled{opacity:.6}

/* 29.2: stable app identity and uncluttered play feedback. */
#phoneProgress>b{background:#398568!important;color:#fff9df!important}
#phoneAlerts>b{background:#a94c42!important;color:#fff1d1!important}
#phoneDlc>b{background:#756888!important}
.perfect-play{position:fixed;inset:26% 4% auto;z-index:10000;pointer-events:none;text-align:center;font:900 clamp(26px,6vw,80px)/1.1 monospace;color:#ffe48c;text-shadow:4px 4px #182f3f,-2px -2px #182f3f;animation:perfect-pop .3s ease-out}
.perfect-play small{display:block;font-size:.3em;color:#fff;margin-top:12px}
@keyframes perfect-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.perfect-play{animation:none}}

.activity>canvas{margin-inline:auto}.handheld-activity [data-compliment-controls]{display:none}#complimentCanvas{width:100%;height:auto;touch-action:none}

/* 29.3: tactile controls and a compact, labelled replay action. */
#dialogActions button,.dialog-actions button{border-radius:14px;min-height:46px;border:2px solid #f4d68b;box-shadow:0 2px 0 #102b37;}
#dialogActions button.secondary,.dialog-actions button.secondary{background:#334f60;color:#fff6df;border-color:#8baab5;}
.replay-button{flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:46px;border-radius:50%!important;padding:0!important;font-size:26px!important;line-height:1;}
.loss-stat{color:#ff9f9a!important;border-top:1px solid #aa6666;padding-top:12px;font-weight:700;}
.assist-note{background:#443f31;color:#fff0c2;padding:12px;border-radius:10px;}

.dialog .loss-stat{color:#a22f2a!important;}
.dialog-actions .primary{background:#263e41;color:#fff1c9;border-color:#263e41;}
#miniaturePreview{display:block;margin:auto;border-radius:12px;max-width:100%;}

.dialog-actions .primary{background:#eac17b;color:#243e43;border-color:#9b7139;box-shadow:0 2px 0 #b59f78;}

/* 29.4: a brief celebration owns the screen, then reveals the ordinary result. */
body.performance-celebrating > :not(.perfect-play){visibility:hidden!important}
.perfect-play{inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;background:radial-gradient(ellipse at center,#315b6b 0%,#102936 68%);z-index:2147483647;pointer-events:auto;isolation:isolate;font-size:clamp(30px,7vw,92px);animation:perfect-pop .2s ease-out}
.perfect-play strong{max-width:1100px}.perfect-play small{font-size:clamp(12px,2vw,24px);letter-spacing:.1em}
.title-music{position:absolute;right:16px;bottom:16px;z-index:9;padding:9px 13px!important;border:1px solid #f4d68b!important;background:#152e3de6!important;color:#ffe7b0!important;border-radius:22px;font:700 12px monospace!important;min-height:40px}
.birthday-gift{display:block;margin-top:.5em;color:#ffe298}
.birthday-confetti{position:fixed;inset:0;width:100%;height:100%;z-index:99990;pointer-events:none}

/* v29.5: size the whole film by its aspect ratio, never clamp just its height. */
.dialog:has(.campaign-cinema){width:min(1180px,96vw);max-width:1180px}
.campaign-cinema{width:min(100%,calc(62dvh * 16 / 9));margin:0 auto;background:#142c37;border:2px solid #243e46;border-radius:12px;overflow:hidden}
.campaign-cinema .campaign-film{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:none;image-rendering:pixelated;border-radius:0;background:#142c37}
.campaign-caption{padding:15px 20px;background:#1e3944;color:#fff0ce;font:600 clamp(14px,1.5vw,17px)/1.55 Arial,sans-serif;text-align:left}
@media(max-width:560px){.campaign-cinema{width:100%}.campaign-caption{padding:12px;font-size:14px}.dialog:has(.campaign-cinema){padding:24px 12px 14px}.dialog:has(.campaign-cinema) h2{font-size:24px}}
@media(max-height:500px) and (orientation:landscape){.dialog:has(.campaign-cinema){padding:12px 18px}.dialog:has(.campaign-cinema) h2{font-size:22px;margin:4px 0 8px}.campaign-cinema{width:min(100%,calc(52dvh * 16 / 9))}.campaign-caption{padding:8px 12px;font-size:13px}}

/* Let the two birthday captions claim their actual height before sizing the film. */
.dialog:has(.birthday-gift){
 height:min(calc(100dvh - 28px),calc(56.25vw + 320px),900px);
}
.dialog:has(.birthday-gift)>#dialogBody{
 display:flex;flex-direction:column;min-height:0;padding:0;
}
.campaign-cinema:has(.birthday-gift){
 flex:1 1 0;min-height:0;width:min(100%,1000px);overflow-y:auto;
 display:grid;grid-template-rows:minmax(76px,1fr) auto;
}
.campaign-cinema:has(.birthday-gift) .campaign-film{
 width:100%;height:100%;min-height:0;object-fit:contain;
}
@media(max-height:500px) and (orientation:landscape){
 .dialog:has(.birthday-gift)>#dialogTitle{margin:4px 0 6px;font-size:22px}
 .dialog:has(.birthday-gift)>#dialogActions{padding-top:6px;margin-top:6px}
 .campaign-cinema:has(.birthday-gift){grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:minmax(76px,1fr)}
 .campaign-cinema:has(.birthday-gift) .campaign-caption{align-self:center}
}


/* Wiring controls sit outside the illustrated panel on the cream dialog. */
#wiringControls > button {
  border: 1px solid #557079;
  border-radius: 8px;
  background: #294652;
  color: #fff1d4;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
#wiringControls > [data-wire="rotate"] { background: #efd08b; color: #193542; }
#wiringControls > button:focus-visible { outline: 3px solid #246b8a; outline-offset: 2px; }

/* Two independent thumb targets keep the rail order the same on every screen. */
.vr-stage { display:grid; gap:.45rem; justify-items:center; }
.vr-stage #vrCanvas { display:block; width:100%; max-width:960px; height:auto; aspect-ratio:16/9; border:2px solid #253748; border-radius:8px; touch-action:none; }
.vr-pads { display:grid; grid-template-columns:1fr 1fr; gap:clamp(.6rem,4vw,2rem); width:min(100%,650px); }
.vr-pads button { min-height:46px; border:2px solid #fcb7b7; border-radius:12px; background:#792637; color:white; font-weight:700; touch-action:none; }
.vr-pads #vrRight { background:#204d84; border-color:#83daf5; }
.dialog .vr-pads strong { color:#fff9e6; display:inline-block; padding:.14em .42em; border:1px solid currentColor; border-radius:50%; margin-right:.35em; }
.vr-pads small { margin-left:.4em; color:#f1e8da; } .vr-pads button:active { filter:brightness(1.28); }
.vr-guide { line-height:1.6; } .call-roster { margin:.85rem 0; } .call-roster summary { cursor:pointer; font-weight:bold; }
.call-roster table { border-collapse:collapse; width:min(100%,42rem); }
.call-roster th, .call-roster td { padding:.4rem .35rem; text-align:left; border-bottom:1px solid #b9b3a2; }
.call-roster button { min-height:36px; padding:.25rem .65rem; background:#e3d6bc; color:#223f48; border:1px solid #9b9a83; border-radius:7px; }
@media (pointer:coarse) { .vr-pads small { display:none; } }
@media (max-height:520px) and (orientation:landscape) { .vr-stage #vrCanvas { width:auto; max-width:100%; max-height:48dvh; } .vr-pads button { min-height:40px; } }

.shirt-preview{display:block;width:min(100%,20rem);height:auto;margin:.75rem auto 1rem;background:#e5d8b9;border-radius:.5rem}
