/* Readable decision screens and a quieter town HUD. */
:root{--muted:#526354;--orange:#b64f32}
body{line-height:1.6}button,input,select,a{ -webkit-tap-highlight-color:transparent }
:is(button,a,input,select,summary):focus-visible{outline:3px solid #a34227;outline-offset:3px;box-shadow:0 0 0 6px #fffdf5}
h1,h2,h3{letter-spacing:-.045em}button{line-height:1.4}
.skip-link{position:fixed;top:8px;left:8px;z-index:1000;transform:translateY(-150%);background:var(--paper);padding:12px;border:2px solid var(--green);border-radius:8px}.skip-link:focus{transform:none}
.header-tools button,.close,.street-heading button{width:44px;height:44px;min-width:44px;min-height:44px}
.eyebrow{font-size:11px;letter-spacing:1px}.muted,.micro,.legal{font-size:13px}.lede{font-size:17px}.intro-tags span{font-size:12px}.text-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:13px}label{font-size:14px}select,input[type=number]{font-size:16px;min-height:48px}#resume-info{font-size:14px}.primary,.secondary{min-height:48px;font-size:15px}footer{font-size:11px}
dialog{width:560px;padding:24px;scroll-padding-block:24px}dialog p,#street-story>p{font-size:15px;line-height:1.65}dialog h2{font-size:29px;padding-right:8px}.dialog-top{position:relative}.dialog-top .eyebrow{max-width:calc(100% - 52px)}dialog .legal{font-size:12px}.close{position:relative;flex:none}.results-intro h2{margin-top:14px}
dialog :is(small,.choice-card small,.activity small,.own-budget small,.destination-grid small){font-size:13px;line-height:1.5}
dialog :is(.text-button,.choice-effects,.product b,.product small,.product .price,.shop-counter,.basket-info,.shelf-note,.plan-feedback,.store-form label,.store-cost,.store-cost span,.store-promo p,.store-promo .primary,.comparison p,.replay-card p,.family-brief,.store-brief,.forecast,#store-status){font-size:14px!important}
dialog :is(.basket-title,.basket-tally,.category-checks span,.plan-chips button,.plan-preview small,.run-compare small,.store-metrics small,.family-card small,.family-slot small,.mini-store>small,.shop-brand small,.mini-store>span){font-size:12px}
.product{min-height:96px;grid-template-columns:30px minmax(0,1fr);padding:12px 9px}.product b{padding-right:8px}.product .emoji{font-size:26px}.shelf{gap:10px}.basket{position:relative;top:auto}.basket-title{flex-wrap:wrap;justify-content:center;gap:3px 12px}.basket-items button{min-width:44px;min-height:44px}.basket-empty{font-size:13px}.shopping-sticky{position:relative;bottom:auto;padding-bottom:0}.shop-counter{flex-wrap:wrap;gap:8px}.quick-amounts{flex-wrap:wrap}.quick-amounts button,.plan-chips button{min-height:44px;font-size:13px}.quick-amounts button{min-width:80px}input[type=range]{height:44px}
summary{min-height:44px;padding:10px 0;font-size:14px}.receipt>div{font-size:14px;align-items:baseline}.receipt strong{font-size:16px}.what-if-options button{min-height:48px;font-size:14px}.comparison table{font-size:13px;table-layout:fixed}.comparison th,.comparison td{overflow-wrap:anywhere}.comparison caption{font-size:12px}.comparison-head{font-size:13px}.run-compare{gap:8px}.run-compare b{font-size:21px}.run-compare small{line-height:1.5}.badges span{font-size:12px}.share>*{font-size:14px}.store-metrics{gap:8px}.store-metrics b{font-size:23px}.store-metrics small{color:var(--muted)}.store-promo>small{font-size:12px;color:var(--muted)}.store-promo a.text-button{min-height:44px}.mini-store>small{opacity:1}.store-form select{font-size:16px}.family-card b,.family-slot span{font-size:13px;line-height:1.4}.family-card{min-height:112px;padding:10px 6px}.family-slot{min-height:93px;padding:9px}.family-slot small,.family-card small{color:#435b38}.family-photo>span{font-size:11px}.plan-feedback small{color:var(--muted)}.destination-grid button{min-height:80px}.destination-grid b{font-size:15px}.quiet-order{font-size:14px}
.playing .top{top:10px}.playing .hud{background:#21483e;top:73px;width:390px;padding:12px 16px}.playing .hud small{font-size:10px;letter-spacing:.6px;color:#d7e6d7}.playing .hud b{font-size:23px}.playing .scene-caption{top:158px;font-size:10px;background:#fffaf0}.playing .scene-caption>span:last-child{font-size:9px}.playing #life-menu{top:203px;width:300px;gap:8px}#life-menu button{min-height:72px;background:#fffaf0;padding:12px 10px 12px 30px}#life-menu b{font-size:13px}#life-menu small{font-size:11px}#life-menu button>span{top:11px}.playing.with-life-menu .side-panel{top:286px;width:300px;padding:14px;background:#fffaf0}.playing #mission-title{font-size:21px;margin:8px 0}.playing #mission-desc{font-size:13px;display:block}.playing .week-head .eyebrow,.playing .week-head b{font-size:10px}.playing #go{font-size:14px;min-height:46px;padding:10px}.playing .side-panel .save-state{display:flex;font-size:11px;margin-top:10px;flex-wrap:wrap;gap:0 8px}.playing .save-state .text-button{font-size:12px;min-height:32px}.playing .scene-tools{top:80px}.scene-tools button{min-height:44px;min-width:64px;font-size:12px;background:#fffaf0}.playing .place-pin{min-height:28px;font-size:11px}.playing .town-caption{font-size:11px}.walk-actions small{font-size:12px}#enter-place{font-size:14px}#enter-place:disabled{font-size:12px}#joystick>span{font-size:11px}#save-indicator[data-warning=true]{color:#a33c24;font-weight:700}.story-open .side-panel,.story-open #life-menu{visibility:hidden}
#street-story{margin:0;left:auto;top:auto;width:430px;max-width:calc(100% - 32px);bottom:24px;right:24px;max-height:70dvh;padding:22px;background:#fffaf0}#street-story::backdrop{background:#183b3218;backdrop-filter:none}#street-story h2{font-size:27px}.street-choices b{font-size:16px}.street-choices small{font-size:13px;display:block}.street-choices em{font-size:13px;color:#28593d}.street-choices button{min-height:78px;padding:13px}#street-story .street-foot{font-size:12px;color:var(--muted)}#notice{font-size:14px;max-width:calc(100% - 32px);bottom:18px}
@media(max-width:760px){
 .app{padding:0 20px}.top{height:72px}.scene-wrap{height:230px}.side-panel{padding:18px 0 28px}h1{font-size:40px}.eyebrow{font-size:10px}.intro-tags{gap:7px}.intro-tags span{font-size:12px}#welcome .micro{font-size:12px}.scene-caption{font-size:9px}.scene-caption>span:last-child{font-size:8px}.town-caption{font-size:11px}footer{font-size:10px;flex-wrap:wrap}dialog{padding:20px;max-height:94dvh}dialog h2{font-size:27px}
 .playing .top{left:12px;right:12px;top:calc(6px + env(safe-area-inset-top));height:44px}.playing .brand{min-height:44px;font-size:15px}.playing .hud{top:calc(62px + env(safe-area-inset-top));left:12px;right:12px;width:auto;padding:11px 13px;gap:10px}.playing .hud small{font-size:10px}.playing .hud b{font-size:22px}.playing .scene-caption{display:none}.playing #life-menu{top:calc(147px + env(safe-area-inset-top));left:12px;width:calc(100% - 102px);max-width:340px}#life-menu button{padding:9px 7px;min-height:64px}#life-menu button>span{display:none}#life-menu b{font-size:12px}#life-menu small{font-size:10px}.playing .scene-tools{top:calc(147px + env(safe-area-inset-top));right:12px;gap:8px}.playing.with-life-menu .side-panel{top:calc(224px + env(safe-area-inset-top));left:12px;width:calc(100% - 102px);max-width:340px;padding:12px}.playing.with-life-menu #mission-title{font-size:18px}.playing.with-life-menu #mission-desc{display:none}.playing.with-life-menu #go{font-size:13px;min-height:44px}.playing .side-panel .save-state{display:flex;font-size:10px;margin-top:8px}.playing .save-state .text-button{font-size:12px}.playing .week-head .eyebrow,.playing .week-head b{font-size:9px}.playing .town-caption{font-size:10px;max-width:95%;white-space:normal;text-align:center}.playing .place-pin{font-size:10px;min-height:28px}.walk-actions small{font-size:11px;max-width:140px}#enter-place{font-size:13px;min-width:94px}#walk-controls{bottom:calc(44px + env(safe-area-inset-bottom))}
 #street-story{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:66dvh;padding:18px}#street-story h2{font-size:26px}.family-slot{min-height:90px}.family-card{min-height:110px}.family-board{gap:6px}.family-card b{font-size:13px}.run-compare b{font-size:18px}.run-compare small{font-size:11px}
}
@media(max-width:360px){.app{padding:0 14px}.brand{font-size:16px}.header-tools{gap:5px}h1{font-size:36px}dialog{padding:16px}.shelf{grid-template-columns:1fr}.product{min-height:76px;grid-template-columns:38px 1fr}.family-board,.family-shelf{grid-template-columns:repeat(2,1fr)}.share{flex-direction:column}.run-compare{grid-template-columns:1fr}.run-compare>div{padding:7px}.store-metrics{grid-template-columns:1fr}.store-metrics div{display:flex;align-items:center;justify-content:space-between;padding:10px}.playing .hud b{font-size:20px}.playing #life-menu,.playing.with-life-menu .side-panel{width:calc(100% - 94px)}.playing.with-life-menu #mission-title{font-size:16px}.playing .week-head{flex-wrap:wrap}.playing .hud small{font-size:9px}}
@media(max-height:700px) and (max-width:760px){.playing.with-life-menu .side-panel{top:calc(221px + env(safe-area-inset-top))}.playing .week-head{display:none}.playing.with-life-menu #mission-title{font-size:16px;margin:0 0 5px}.playing .save-state #save-indicator{display:none}.playing .save-state #save-indicator[data-warning=true]{display:block}.playing .save-state{margin-top:4px}.playing .save-state .text-button{min-height:28px}.playing #go{margin-top:4px}#street-story{max-height:86dvh}.playing .town-caption{display:none}#walk-controls{bottom:calc(28px + env(safe-area-inset-bottom))}}
@media(max-height:500px) and (min-width:600px){.playing .top{left:12px;right:12px;top:6px}.playing .hud{top:62px;left:12px;width:285px;max-width:285px;padding:8px 12px}.playing .hud b{font-size:20px}.playing .scene-caption{display:none}.playing #life-menu{left:auto;right:12px;top:62px;width:250px;gap:6px}.playing #life-menu button{min-height:60px;padding:8px}.playing #life-menu button>span{display:none}.playing #life-menu b{font-size:12px}.playing #life-menu small{font-size:10px}.playing.with-life-menu .side-panel{left:auto;right:12px;top:134px;width:250px;padding:10px}.playing .week-head,.playing #mission-desc{display:none}.playing.with-life-menu #mission-title{font-size:16px;margin:0}.playing .side-panel .save-state{margin-top:3px}.playing .save-state #save-indicator{display:none}.playing .save-state #save-indicator[data-warning=true]{display:block}.playing .scene-tools{left:12px;right:auto;top:145px;flex-direction:row}.playing .scene-tools button{min-width:56px}.playing .town-caption{display:none}#walk-controls{bottom:25px;left:22px;right:22px}#joystick{width:83px;height:83px}#stick-knob{left:17px;top:17px}#street-story{max-height:calc(100dvh - 24px);width:430px;left:auto;right:12px;bottom:12px}dialog{max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.dialog-top{position:sticky;top:-24px;z-index:8;background:var(--paper);padding:8px 0;margin-top:-8px}.street-heading{position:sticky;top:-22px;z-index:2;background:#fffaf0;padding-block:6px}
@media(max-width:760px){.dialog-top{top:-20px}.street-heading{top:-18px}.playing #life-menu,.playing .scene-tools{top:calc(154px + env(safe-area-inset-top))}.playing.with-life-menu .side-panel{top:calc(231px + env(safe-area-inset-top))}}
@media(max-width:360px){.dialog-top{top:-16px}}
@media(max-height:500px) and (min-width:600px){.playing #life-menu{top:62px}.playing .scene-tools{top:145px}.playing.with-life-menu .side-panel{top:134px}}
.mini-store{background-color:#477163}
.playing #life-menu button{padding:10px}.playing #life-menu button>span{display:none}.playing #life-menu small{font-size:10px;line-height:1.3}.playing #life-menu b{font-size:12px}
body:has(#sheet.family-moment[open]) :is(.hud,.side-panel,#life-menu,.scene-tools,#walk-controls,.town-caption){visibility:hidden}
dialog.family-moment{position:fixed;inset:auto 20px 20px auto;margin:0;width:420px;max-height:80dvh;padding:20px;background:#fffaf0f5}dialog.family-moment::backdrop{background:#203c3210;backdrop-filter:none}.family-moment .family-photo{display:none}.family-moment h2{font-size:25px}.family-moment p{font-size:13px}.family-moment .memory-board{gap:8px;margin:12px 0}.family-moment .memory-board button{min-height:64px}.family-moment .dialog-top{background:#fffaf0;top:-20px}
@media(max-width:760px){dialog.family-moment{inset:auto 12px 12px 12px;width:auto;max-height:61dvh;padding:16px}.family-moment .dialog-top{top:-16px}.family-moment h2{font-size:23px;margin:6px 0}.family-moment .memory-board button{min-height:58px}.family-moment p{margin:8px 0}}
@media(max-height:500px){dialog.family-moment{max-height:calc(100dvh - 24px)}}
@media(max-height:500px) and (min-width:600px){.playing .hud{gap:10px}.playing .hud small{font-size:9px;white-space:nowrap}.playing .scene-tools{top:145px}}
