/* One screen for the game. Optional lists live in dialogs, not below the work area. */
html,body{height:100%;overflow:hidden}#app{height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{height:64px;flex:0 0 64px;padding:0 24px}.brand>span:last-child{font-size:25px}.brandmark{width:36px;height:36px}.brandmark svg{width:24px;height:24px}.brand small{font-size:8px;letter-spacing:2px}.topnav{gap:23px}.header-right{gap:7px}.wallet span{font-size:15px}.app-layout{flex:1;min-height:0;height:auto;max-height:none;padding:0;overflow:hidden}.sidebar{position:static;width:214px;flex:0 0 214px;height:100%;max-height:none;min-height:0}.project-top{padding:16px 15px 12px;flex:none}.project-top .eyebrow{font-size:10px;margin-bottom:8px}.project-progress{margin:0 0 8px;font-size:12px}.roomlist{display:grid;grid-template-rows:repeat(11,minmax(0,1fr));gap:3px;flex:1;min-height:0;padding:0 9px 7px;overflow:visible}.roomitem{margin:0;padding:5px 8px;min-width:0;width:100%;max-width:none;gap:8px;border:0;min-height:0;border-radius:8px}.room-icon{height:30px;width:30px;flex-shrink:0}.room-name{font-size:13px;white-space:normal;line-height:1.2}.room-name small{font-size:10px;margin-top:3px}.roomitem .done-icon{width:14px}.save-note{padding:9px 15px;font-size:10px;flex:none;line-height:1.3}.workspace{display:flex;flex-direction:column;gap:12px;min-height:0;height:100%;max-height:100%;width:100%;padding:16px 22px;margin:0;max-width:none;overflow:hidden}.page-heading{margin:0;gap:12px;flex:0 0 auto;min-height:42px}.page-heading h1{font-size:clamp(24px,2.3vw,34px);line-height:1.2}.page-heading .eyebrow{font-size:9px;margin-bottom:4px}.heading-actions{display:flex;align-items:center;gap:8px}.room-picker-button{white-space:nowrap}.secondary,.primary{font-size:14px;padding:10px 15px;min-height:42px}.page-heading .secondary{min-height:38px;font-size:13px;padding:9px 12px}.task-toolbar{display:flex;align-items:center;gap:12px;min-height:38px;flex:none;padding:0 2px}.task-toolbar>span{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.task-toolbar>span>.icon{width:19px;height:19px;color:#6c855c}.task-toolbar strong{font-size:14px;font-weight:500;line-height:1.3}.task-toolbar .secondary{font-size:12px;padding:7px 11px;min-height:32px;white-space:nowrap}.task-toolbar .textbtn{font-size:12px;white-space:nowrap;padding:6px}.work-layout,.room-workspace:has(.previewing) .work-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-height:0;flex:1;margin:0}.room-workspace.choosing-materials .work-layout{grid-template-columns:minmax(0,1fr) 260px}.work-main,.room-workspace:has(.previewing) .work-main{display:flex;flex-direction:column;gap:10px;min-height:0;min-width:0;height:100%}.scene-stage{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:0;min-width:0;overflow:hidden;position:relative;background:#eceee4;border-radius:12px}.scene-stage>.fitted-scene{flex:none;aspect-ratio:auto;max-width:100%;max-height:100%;min-width:0;margin:0;border-radius:10px;box-shadow:none}.canvas-wrap canvas{width:100%;height:100%;aspect-ratio:1.6}.overview-art>img,.final-house>img{width:100%;height:100%;object-fit:contain}.scene-stage .image-tag{min-width:22%;height:10%;padding:5px 10px;font-size:11px;top:0;left:0;border-radius:0 0 8px 0;white-space:nowrap}.scene-stage .image-tag .icon{width:15px;height:15px}.play-controls{display:flex;align-items:stretch;gap:10px;flex:none;min-height:66px}.workbar{display:flex;align-items:center;flex:1;min-width:0;margin:0;padding:10px 13px;gap:10px;border-radius:9px}.tool-display{min-width:0;gap:9px;align-items:center}.tool-display>svg{height:33px;width:33px;padding:6px}.tool-display strong{font-size:14px}.tool-display small{font-size:12px;line-height:1.4;max-width:none;margin-top:3px}.work-progress{width:70px;flex:none;margin:0}.work-progress>span{font-size:13px;margin-bottom:5px}.supply-bar{display:flex;align-items:stretch;gap:8px;flex:none;padding:0;min-height:0}.supply-bar .secondary{align-self:center;padding:10px 12px;font-size:12px;white-space:nowrap}.supply{padding:9px 12px;width:auto;min-width:130px;max-width:220px;font-size:13px;gap:8px}.supply small{font-size:11px;margin-top:3px}.supply>.icon{width:21px;height:21px}.work-panel,.room-workspace:has(.previewing) .work-panel{align-self:center;margin:0;padding:18px;max-height:100%;overflow:auto}.material-title .eyebrow{font-size:9px;margin-bottom:8px}.material-title h2{font-size:25px;margin:0}.tier-list{display:flex;flex-direction:column;gap:8px;margin:17px 0 13px}.tier-card{padding:12px;width:100%;flex:auto}.tier-card>div{flex-wrap:nowrap;gap:8px}.tier-card strong{font-size:14px}.tier-card b{width:auto;margin:0 0 0 auto;font-size:13px}.tier-card>span{font-size:12px;margin:6px 0 0 25px}.selected-material-detail{font-size:13px;line-height:1.5;color:#78866b;margin:0 0 15px;min-height:38px}.work-panel .full{max-width:none}.money-note{font-size:11px;margin-top:8px;text-align:center}.completion-bar{margin:0;padding:8px 4px;flex:none;flex-wrap:nowrap;min-height:56px}.completion-bar>div{width:auto}.completion-bar .primary{width:auto}.completion-bar strong{font-size:14px}.completion-bar small{font-size:12px}.overview-bottom{padding:0;flex:none;min-height:62px;flex-wrap:nowrap;gap:15px}.overview-bottom .primary{width:auto}.overview-bottom p strong{font-size:14px}.overview-bottom p span{font-size:12px;margin-top:4px}.scene-caption{padding:40px 20px 16px}.scene-caption strong{font-size:23px}.final-message{padding:45px 20px 16px}.final-message strong{font-size:25px}.final-summary{padding:0;min-height:58px;gap:20px;flex:none;border:0;flex-wrap:nowrap}.final-summary>span{font-size:13px;white-space:nowrap}.final-summary .primary{margin-left:auto}.final-grid,.final-title{display:none}.intro{flex:1;min-height:0;height:auto;padding:0}.intro-copy{left:7%;top:50%;bottom:auto;transform:translateY(-50%);max-width:470px}.intro-copy h1{font-size:clamp(40px,4.3vw,64px)}.intro-copy p{font-size:15px;margin-bottom:23px}.intro-facts{margin-top:20px}.intro-caption{bottom:18px}dialog{max-height:calc(100dvh - 32px);overflow:auto;padding:27px;overscroll-behavior:contain}dialog h2{padding-right:20px}.room-dialog{width:min(680px,calc(100vw - 32px));max-width:none}.room-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:20px}.room-choice{display:flex;align-items:center;gap:9px;padding:11px 10px;min-height:65px;text-align:left;background:#f0f3e9;color:#49613e;border:1px solid #dce3d1;border-radius:9px}.room-choice.current{background:#e6eedb;border-color:#8ba078}.room-choice>span{width:29px;flex:none}.room-choice .icon{width:22px;height:22px}.room-choice strong{font-weight:500;font-size:14px;line-height:1.3}.room-choice small{display:block;font-size:11px;margin-top:4px;color:#8b997c}.task-list{display:block;margin:15px 0}.task-list li{font-size:14px;padding:9px 0}.task-list small{font-size:11px}.task-number{height:25px;width:25px}.dialog-close{top:6px;right:6px}
@media(max-height:760px) and (min-width:761px){.project-top{padding:12px 15px 10px}.roomitem{padding:4px 7px}.room-name small{display:none}.room-icon{height:27px;width:27px}.sidebar{width:196px;flex-basis:196px}.workspace{padding:12px 18px;gap:9px}.page-heading .eyebrow{display:none}.page-heading{min-height:37px}.page-heading h1{font-size:27px}.material-title .eyebrow{display:none}.tier-list{margin:12px 0;gap:7px}.tier-card{padding:10px}.tier-card>span{font-size:11px}.selected-material-detail{font-size:12px;min-height:0;margin-bottom:12px}.work-panel{padding:15px}.task-toolbar{min-height:34px}.play-controls{min-height:60px}.roomlist{gap:1px}}
@media(max-width:1050px){header{padding:0 17px;gap:14px}.brandmark{display:none}.topnav{gap:15px}.topnav button{font-size:13px}.sidebar{width:186px;flex-basis:186px}.room-name{font-size:12px}.workspace{padding:13px 16px}.room-workspace.choosing-materials .work-layout{grid-template-columns:minmax(0,1fr) 230px}.work-panel{padding:15px}.supply{min-width:115px;max-width:175px;font-size:12px}.tool-display small{font-size:11px}.task-toolbar .textbtn{display:none}.room-picker-grid{gap:7px}}
@media(max-width:760px){#app{padding-bottom:calc(58px + env(safe-area-inset-bottom))}header{height:56px;flex-basis:56px;padding:0 12px;flex-wrap:nowrap;gap:10px}.brand>span:last-child{font-size:22px}.brand small{font-size:7px;letter-spacing:1.5px}.header-right{gap:2px}.header-right .iconbtn{width:30px}.wallet{padding-right:7px;margin-right:2px;gap:6px}.wallet span{font-size:13px}.wallet small{font-size:9px}.wallet .icon{width:17px;height:17px}.topnav{order:3;position:fixed;left:0;right:0;bottom:0;z-index:30;height:calc(58px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);justify-content:space-around;background:#fcfcf8f5;border-top:1px solid var(--line);gap:0}.topnav button{flex-direction:column;justify-content:center;font-size:11px;padding:5px 22px;gap:3px}.topnav button .icon{width:19px;height:19px}.topnav button.active:after{top:0;bottom:auto;left:8px;right:8px;height:2px}.sidebar{display:none}.app-layout{flex-direction:row;padding:0;min-height:0}.workspace{padding:10px 12px;gap:8px}.page-heading{min-height:36px;gap:7px}.page-heading h1{font-size:23px}.page-heading .eyebrow{display:none}.heading-actions{gap:5px}.page-heading .secondary{font-size:11px;min-height:34px;padding:8px}.page-heading .secondary .icon{width:15px;height:15px}.task-toolbar{gap:7px;min-height:32px;align-items:center;padding:0}.task-toolbar strong{font-size:12px}.task-toolbar>span{gap:5px}.task-toolbar>span>.icon{width:15px;height:15px}.task-toolbar .secondary{font-size:11px;padding:6px 8px;min-height:31px}.task-toolbar .material-shortcut{display:none}.work-layout,.room-workspace:has(.previewing) .work-layout{display:flex;flex-direction:column;gap:9px}.work-main,.room-workspace:has(.previewing) .work-main{flex:1;min-height:0;height:auto;gap:8px}.room-workspace.choosing-materials .work-layout{display:flex;flex-direction:column}.work-panel,.room-workspace:has(.previewing) .work-panel{width:100%;margin:0;padding:11px 12px;flex:none;align-self:stretch;overflow:visible;max-height:none}.material-title .eyebrow{display:none}.material-title h2{font-size:19px}.tier-list{flex-direction:row;margin:9px 0 7px;gap:7px}.tier-card{padding:8px 6px;flex:1;min-width:0}.tier-card>div{flex-wrap:wrap;gap:5px}.tier-card strong{font-size:13px}.tier-card b{width:100%;margin:2px 0 0 20px;font-size:12px}.tier-dot{width:15px;height:15px;font-size:10px}.tier-card>span{display:none}.selected-material-detail{font-size:11px;line-height:1.4;min-height:0;margin:0 0 9px}.work-panel .primary{min-height:37px;padding:9px 13px;font-size:13px}.money-note{display:none}.scene-stage{border-radius:9px}.scene-stage>.fitted-scene{border-radius:8px}.scene-stage .image-tag{font-size:9px;padding:3px 7px;min-width:22%;height:10%;max-width:65%;gap:5px}.scene-stage .image-tag .icon{width:12px;height:12px}.play-controls{flex-direction:column;gap:6px;min-height:0}.workbar{padding:8px 10px;min-height:58px;gap:7px}.tool-display{gap:7px}.tool-display>svg{width:28px;height:28px;padding:5px}.tool-display strong{font-size:13px}.tool-display small{font-size:11px;line-height:1.4;max-width:none}.work-progress{width:52px}.work-progress>span{font-size:12px}.supply-bar{flex-direction:row;justify-content:space-between;align-items:stretch;gap:7px;min-height:34px}.supply{max-width:none;min-width:0;flex:1;padding:7px 10px;font-size:12px}.supply small{display:none}.supply .icon{width:17px;height:17px}.supply-bar .secondary{margin-left:auto;min-height:34px;padding:7px 10px;font-size:11px}.completion-bar{min-height:51px;gap:8px;padding:0;flex-wrap:nowrap}.completion-bar strong{font-size:12px}.completion-bar small{font-size:10px}.completion-bar .primary{font-size:12px;padding:10px 12px;min-height:39px}.overview .page-heading h1,.finale .page-heading h1{font-size:24px}.overview .page-heading,.finale .page-heading{align-items:center}.overview-bottom{flex-wrap:nowrap;min-height:59px;padding:0;gap:9px}.overview-bottom>div{gap:7px}.overview-bottom>div>.icon{display:none}.overview-bottom p strong{font-size:12px}.overview-bottom p span{font-size:11px;line-height:1.3}.overview-bottom .primary{font-size:12px;padding:10px 12px;min-height:40px;white-space:nowrap}.hotspot{width:30px;height:30px}.hotspot .icon{width:16px;height:16px}.scene-caption,.final-message{padding:30px 12px 10px}.scene-caption strong,.final-message strong{font-size:18px}.final-summary{gap:7px;min-height:65px;flex-wrap:wrap;align-content:center;justify-content:space-between}.final-summary>span{font-size:11px;gap:5px}.final-summary>span .icon{width:15px;height:15px}.final-summary .primary{font-size:12px;min-height:37px;margin-left:auto;padding:9px 12px}.intro{min-height:0;height:auto;flex:1}.intro-copy{left:23px;right:23px;top:auto;bottom:45px;transform:none;max-width:none}.intro-copy h1{font-size:clamp(32px,7vw,46px);margin:12px 0;letter-spacing:-1px}.intro-copy p{font-size:13px;line-height:1.6;margin:0 0 18px;max-width:340px}.intro-copy .large{font-size:14px;min-height:42px;padding:12px 18px}.intro-facts{font-size:10px;gap:12px;margin-top:16px}.intro-facts span+span:before{margin-right:10px}.intro-caption{left:23px;bottom:13px;right:auto;font-size:9px}.room-dialog{padding:20px 15px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}dialog h2{font-size:23px;margin-bottom:12px}.room-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:14px}.room-choice{padding:9px 8px;min-height:57px;gap:6px}.room-choice strong{font-size:12px}.room-choice small{font-size:10px;margin-top:3px}.room-choice>span{width:24px}.room-choice .icon{width:19px;height:19px}.task-list li{padding:7px 0;font-size:13px}.task-list small{font-size:10px}dialog{padding:22px;max-height:calc(100dvh - 24px)}dialog p{font-size:13px}#toast{bottom:calc(70px + env(safe-area-inset-bottom));font-size:12px}}
@media(max-width:1100px) and (max-height:600px) and (orientation:landscape){#app{padding:0}header{height:48px;flex-basis:48px;padding:0 14px}.topnav{position:static;height:100%;padding:0;order:initial;flex-direction:row;border:0;background:none;gap:16px}.topnav button{flex-direction:row;padding:0 3px;font-size:12px;gap:6px}.topnav button.active:after{top:auto;bottom:0}.brand>span:last-child{font-size:21px}.brand small{display:none}.sidebar{display:none}.workspace{padding:8px 14px;gap:6px}.page-heading{min-height:32px}.page-heading h1{font-size:23px}.page-heading .eyebrow{display:none}.page-heading .secondary{font-size:11px;min-height:30px;padding:6px 9px}.task-toolbar{min-height:29px}.task-toolbar strong{font-size:12px}.task-toolbar .secondary{font-size:11px;min-height:28px;padding:5px 8px}.work-layout,.room-workspace:has(.previewing) .work-layout{display:flex;flex:1;min-height:0}.work-main,.room-workspace:has(.previewing) .work-main{display:flex;flex:1;flex-direction:row;align-items:stretch;gap:12px;min-height:0;height:auto}.scene-stage{flex:1;min-height:0}.canvas-wrap{max-width:100%}.play-controls{display:flex;flex-direction:column;width:174px;min-width:174px;justify-content:center;gap:8px}.workbar{display:block;flex:none;padding:10px}.tool-display{align-items:flex-start}.tool-display>svg{width:25px;height:25px}.tool-display strong{font-size:13px}.tool-display small{font-size:11px}.work-progress{width:100%;margin-top:9px}.supply-bar{display:flex;flex-direction:column;gap:7px;min-height:0}.supply{width:100%;min-width:0;max-width:none;font-size:12px;padding:9px}.supply small{display:none}.supply-bar .secondary{margin:0;align-self:stretch;min-height:32px;font-size:11px}.room-workspace.choosing-materials .work-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:12px}.room-workspace.choosing-materials .work-main{display:flex}.work-panel,.room-workspace:has(.previewing) .work-panel{align-self:center;padding:11px 13px;width:100%;max-height:100%;overflow:auto;margin:0}.material-title .eyebrow{display:none}.material-title h2{font-size:20px}.tier-list{flex-direction:row;gap:5px;margin:8px 0}.tier-card{padding:8px 5px;min-width:0;flex:1}.tier-card>div{flex-wrap:wrap;gap:4px}.tier-card strong{font-size:12px}.tier-card b{width:100%;margin:1px 0 0 0;font-size:11px}.tier-dot{display:none}.tier-card>span{display:none}.selected-material-detail{font-size:11px;min-height:0;line-height:1.35;margin-bottom:9px}.work-panel .primary{font-size:12px;padding:9px 12px;min-height:35px}.money-note{display:none}.completion-bar{width:174px;flex:none;flex-direction:column;justify-content:center;align-items:stretch;gap:12px;padding:0}.completion-bar>div{width:100%;gap:6px}.completion-bar strong{font-size:12px}.completion-bar .primary{font-size:12px;min-height:37px;padding:10px}.overview-bottom{min-height:41px}.overview-bottom p span{display:none}.overview-bottom .primary{font-size:12px;min-height:35px;padding:8px 12px}.final-summary{min-height:39px;gap:12px;flex-wrap:nowrap}.final-summary>span{font-size:12px}.final-summary .primary{font-size:12px;padding:8px 12px;min-height:35px}.overview .page-heading h1,.finale .page-heading h1{font-size:24px}.intro{min-height:0}.intro-copy{top:50%;bottom:auto;left:6%;transform:translateY(-50%);max-width:450px}.intro-copy h1{font-size:32px;line-height:1.1;margin:8px 0}.intro-copy p{font-size:12px;line-height:1.5;max-width:390px;margin-bottom:10px}.intro-copy>.eyebrow{font-size:8px;margin-bottom:5px}.intro-copy .large{font-size:12px;padding:8px 14px;min-height:35px}.intro-facts{margin-top:9px;font-size:9px}.intro-caption{bottom:10px;left:auto;right:15px}.room-dialog{width:min(720px,calc(100vw - 24px));padding:16px 20px}.room-dialog h2{font-size:22px;margin-bottom:8px}.room-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:9px;gap:6px}.room-choice{min-height:51px;padding:7px 10px}.room-choice strong{font-size:12px}.room-choice small{font-size:10px}.task-list{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.task-list li{font-size:12px;padding:6px 0}dialog{width:min(650px,calc(100vw - 24px));max-width:none;padding:20px}dialog h2{font-size:22px}dialog p{font-size:12px;line-height:1.5;margin-bottom:12px}#toast{bottom:15px}}
@media(max-width:380px){.brand>span:last-child{font-size:20px}.wallet small{display:none}.wallet span{font-size:12px}.header-right .iconbtn{width:27px}.workspace{padding:8px 9px;gap:6px}.page-heading h1{font-size:20px}.page-heading .secondary{font-size:10px;gap:4px;padding:7px}.task-toolbar strong{font-size:11px}.task-toolbar>span>.icon{display:none}.work-panel{padding:9px 10px}.material-title h2{font-size:18px}.selected-material-detail{font-size:10px}.tier-list{margin:7px 0}.play-controls{gap:5px}.workbar{padding:7px 8px}.tool-display>svg{display:none}.supply-bar .secondary{min-height:31px}.overview .page-heading h1,.finale .page-heading h1{font-size:21px}.overview-bottom>div{display:none}.overview-bottom .primary{width:100%}.scene-caption strong,.final-message strong{font-size:16px}}
.overview-art>img,.final-house>img,.intro-image{display:block}.task-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.task-dialog-footer .primary{font-size:13px}.task-dialog-footer .textbtn{font-size:12px;text-align:left;line-height:1.4}

a.brand{text-decoration:none;color:inherit}.brandmark{font-size:24px}

/* Direct manipulation: one tool, automatically supplied material. */
.canvas-wrap canvas.direct-work{cursor:none;touch-action:none}.canvas-wrap .image-tag{pointer-events:none}.material-note{display:flex;align-items:center;gap:7px;align-self:center;color:#71836a;font-size:12px;max-width:200px;line-height:1.35}.material-note .icon{width:17px;height:17px}.supply-bar{align-items:center}.tool-display>svg{color:#56754b;background:#eaf0df;border-radius:9px}.workbar{background:linear-gradient(110deg,#fffffb,#f1f3e9)}@media(max-width:760px){.material-note{font-size:10px;max-width:190px}.supply-bar{min-height:30px}.supply-bar:has(.material-note){justify-content:space-between}}@media(max-width:1100px) and (max-height:600px) and (orientation:landscape){.material-note{font-size:11px;max-width:100%}.supply-bar{align-items:stretch}}

.material-intro{font-size:12px;line-height:1.45;color:var(--muted,#68766a);margin:6px 0 0;max-width:28ch}
