:root{--paper:#f4f1e9;--ink:#252820;--muted:#72766a;--line:#d9d7cb;--orange:#d57143;--orange-light:#f2ddcc;--white:#fcfbf7;--serif:'Libre Caslon Display',Georgia,serif;--sans:'DM Sans',Arial,sans-serif;--mono:'DM Mono',monospace}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:15px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{color:var(--orange)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:5px}button:disabled{cursor:default;opacity:.45}img{display:block;max-width:100%}.header{max-width:1600px;margin:auto;padding:23px 42px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:12px;letter-spacing:1.6px;white-space:nowrap}.brand b{display:block;font-size:10px;letter-spacing:2.4px;margin-top:3px;font-weight:500}.brand-mark{font:italic 42px var(--serif);line-height:1;letter-spacing:-4px;background:var(--ink);color:var(--paper);padding:0 12px 6px 8px;border-radius:11px}.header nav{display:flex;gap:28px;font-size:12px}.header nav a{padding:9px 0;border-bottom:1px solid transparent}.header nav a[aria-current]{border-color:var(--ink)}.button{display:inline-flex;align-items:center;justify-content:center;gap:15px;padding:15px 20px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:5px;font-size:13px;font-weight:500;transition:background .2s,transform .2s}.button:hover{background:#343434;color:white;transform:translateY(-1px)}.button.small{padding:11px 15px;font-size:11px;white-space:nowrap}.button.secondary{background:transparent;color:var(--ink);border-color:var(--line)}.button.secondary:hover{background:#e8e5dc}.button.accent{background:var(--orange);border-color:var(--orange);color:white}.button.full{width:100%}.text-button{background:none;border:0;padding:8px 0;font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}.text-button:hover{color:var(--ink)}main{max-width:1516px;margin:auto;padding:42px 42px 0}.eyebrow{font:10px var(--mono);letter-spacing:1.6px;text-transform:uppercase;color:var(--muted);margin:0 0 15px}.eyebrow:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--orange);margin-right:10px;vertical-align:1px}h1{font-size:clamp(38px,4.7vw,69px);line-height:1.02;letter-spacing:-2.7px;font-weight:500;margin:0}h1 em,h2 em{font-family:var(--serif);font-weight:400;letter-spacing:-1.8px}h2{font-size:30px;font-weight:500;letter-spacing:-1px;margin:0}h3{font-size:16px;font-weight:500;margin:0}p{line-height:1.7}small{font-size:11px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:30px}.page-heading p{max-width:310px;font-size:13px;color:var(--muted);margin:0;line-height:1.7}.hero-title{margin-bottom:32px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:23px;align-items:stretch}.scene-card{background:#e9dfcd;border:1px solid #d9ceba;border-radius:10px;overflow:hidden;position:relative;min-width:0}.scene-card .room{width:100%;height:100%;object-fit:cover;aspect-ratio:3/2;transition:opacity .25s}.scene-top{position:absolute;top:17px;left:17px;right:17px;display:flex;justify-content:space-between;align-items:center;z-index:2;pointer-events:none}.scene-pill{background:#fcf9f0e8;backdrop-filter:blur(9px);border:1px solid #fff4;padding:9px 12px;border-radius:40px;font:9px var(--mono);letter-spacing:.6px;display:flex;align-items:center;gap:7px}.dot{width:5px;height:5px;background:#757575;display:inline-block;border-radius:50%}.scene-bottom{position:absolute;bottom:17px;left:17px;right:17px;display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.scene-note{color:white;text-shadow:0 1px 8px #0008;font-size:12px;max-width:70%;line-height:1.5}.scene-number{font:11px var(--mono);color:white;text-shadow:0 1px 7px #0008}.timer-panel{padding:23px;background:var(--white);border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column}.panel-top{font:9px var(--mono);letter-spacing:1px;display:flex;justify-content:space-between;align-items:center}.timer-status{font-size:9px;color:var(--muted);font-family:var(--mono)}.timer-display{font-size:69px;font-weight:400;letter-spacing:-4px;line-height:1.2;margin:27px 0 0;font-variant-numeric:tabular-nums}.timer-sub{color:var(--muted);font-size:11px;margin:5px 0 24px;line-height:1.6}.field-label{display:block;font:9px var(--mono);letter-spacing:.7px;margin:0 0 8px;color:var(--muted)}select{appearance:none;width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:5px;background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m3 5 3 3 3-3' fill='none' stroke='%23252820'/%3E%3C/svg%3E") no-repeat right 15px center;font-size:12px;color:var(--ink);margin-bottom:12px}.timer-panel .button{padding:14px}.timer-panel .text-button{font-size:10px;align-self:center;margin-top:5px}.next-unlock{border-top:1px solid var(--line);margin-top:auto;padding-top:20px}.next-unlock .eyebrow{font-size:8px;margin:0 0 12px;letter-spacing:1px}.next-unlock h3{font-size:14px}.progress-track{height:3px;background:#dededc;border-radius:3px;margin:13px 0 8px;overflow:hidden}.progress-track>span{display:block;height:100%;background:var(--orange);transition:width 1s linear}.progress-caption{display:flex;justify-content:space-between;color:var(--muted);font:9px var(--mono)}.timer-doodle{font:italic 20px var(--serif);color:#777777;line-height:1.15;text-align:center;margin:23px 0 19px;transform:rotate(-5deg)}.under-scene{display:flex;justify-content:space-between;align-items:center;margin:16px 0 40px;gap:18px}.under-scene p{margin:0;font-size:11px;color:var(--muted)}.stats{display:flex;gap:25px;font:10px var(--mono);white-space:nowrap}.stats span{color:var(--muted)}.stats b{font-weight:400;color:var(--ink)}.section-line{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:26px;margin-bottom:20px;gap:20px}.section-line a{font-size:11px;text-decoration:underline;text-underline-offset:4px}.collection{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:39px}.object-card{border:1px solid var(--line);background:var(--white);padding:18px 14px;text-align:left;border-radius:6px;min-width:0;position:relative;transition:transform .2s,border-color .2s}.object-card:hover{transform:translateY(-3px);border-color:var(--orange)}.object-card.locked{background:transparent;color:#828478}.object-card svg{width:34px;height:34px;margin:5px 0 19px;stroke:var(--orange)}.object-card.locked svg{stroke:#a6a899}.object-card h3{font-size:12px;line-height:1.3}.object-card .object-index{position:absolute;top:12px;right:12px;font:8px var(--mono);color:var(--muted)}.object-card p{font:9px var(--mono);margin:7px 0 0;color:var(--muted)}.quiet-banner{display:flex;align-items:center;justify-content:space-between;padding:26px 0 4px;border-top:1px solid var(--line);gap:24px}.quiet-banner h2{font-size:24px}.quiet-banner p{font-size:12px;color:var(--muted);margin:5px 0 0}.quiet-banner .coming{font:9px var(--mono);color:var(--muted);white-space:nowrap}.demo-bar{display:flex;align-items:center;gap:17px;background:var(--orange-light);padding:14px 18px;border-radius:6px;margin-bottom:22px;flex-wrap:wrap}.demo-bar strong{font:10px var(--mono);letter-spacing:1px}.demo-bar span{font-size:11px}.demo-bar input{flex:1;min-width:120px;accent-color:var(--orange)}.demo-bar .text-button{margin-left:auto;color:var(--ink);font-size:11px}.demo-bar output{font:11px var(--mono);min-width:80px}.info-banner{font-size:12px;padding:12px 17px;background:#e5e5e3;border:1px solid var(--line);border-radius:5px;margin-bottom:20px;line-height:1.6}.gallery-controls{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0}.gallery-controls p{margin:0;font-size:12px;color:var(--muted)}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px;margin-bottom:35px}.stage-card{background:var(--white);border:1px solid var(--line);border-radius:7px;overflow:hidden}.stage-card .image-button{width:100%;padding:0;border:0;position:relative;background:#e7dfd3;display:block;overflow:hidden}.stage-card img{width:100%;aspect-ratio:3/2;object-fit:cover;transition:transform .35s}.stage-card .image-button:hover img{transform:scale(1.025)}.stage-card .stage-badge{position:absolute;left:12px;top:12px;background:#faf6ecee;border-radius:30px;padding:7px 9px;font:8px var(--mono)}.stage-card .stage-body{padding:17px 17px 13px}.stage-row{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.stage-row h3{font-size:14px}.stage-row>span{white-space:nowrap;font:10px var(--mono);color:var(--muted)}.stage-card p{font-size:11px;color:var(--muted);line-height:1.6;margin:7px 0 13px}.stage-links{border-top:1px solid var(--line);padding-top:11px;display:flex;justify-content:space-between;gap:10px;font:9px var(--mono)}.stage-links a:hover{text-decoration:underline}.chapter-nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:25px}.chapter-nav a{padding:8px 13px;border:1px solid var(--line);border-radius:30px;font-size:10px}.chapter-nav a:hover{background:var(--orange-light)}.guide-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:35px 0 55px}.guide-step{padding:26px;border:1px solid var(--line);border-radius:7px;background:var(--white)}.step-num{font:10px var(--mono);color:var(--orange);margin-bottom:20px}.guide-step h2{font-size:24px}.guide-step p{color:var(--muted);font-size:13px}.mini-timer{font-size:52px;letter-spacing:-3px;margin:28px 0}.guide-art{height:170px;display:flex;align-items:center;justify-content:center;background:#eee8db;border-radius:5px;margin:22px 0}.guide-art svg{width:75px;height:75px;stroke:var(--orange)}.guide-art img{height:100%;width:100%;object-fit:cover;border-radius:5px}.guide-compare{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:25px 0 40px}.guide-compare figure{margin:0}.guide-compare img{border-radius:7px;width:100%;aspect-ratio:3/2;object-fit:cover}.guide-compare figcaption{display:flex;justify-content:space-between;font:10px var(--mono);margin-top:11px;color:var(--muted)}.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 40px;margin-bottom:45px}.rule{border-top:1px solid var(--line);padding:20px 0}.rule h3{font-size:15px}.rule p{color:var(--muted);font-size:12px;margin:7px 0 0}.math-line{display:flex;align-items:center;justify-content:center;gap:22px;background:#eae6da;padding:25px;border-radius:7px;margin:30px 0;font-family:var(--mono);font-size:12px}.math-line b{font:36px var(--sans);letter-spacing:-1px;display:block;margin-bottom:5px}.math-line>div{text-align:center}.guide-callout{border-left:3px solid var(--orange);padding:5px 23px;margin:30px 0;color:var(--muted);font-size:13px;line-height:1.8}.budget-head{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin:32px 0}.budget-card{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:28px}.budget-card h2{font-size:24px}.balance-number{font-size:60px;letter-spacing:-3px;margin:15px 0 0;font-variant-numeric:tabular-nums}.balance-number span{font-size:14px;letter-spacing:0;color:var(--muted)}.budget-card p{font-size:12px;color:var(--muted)}.budget-card input[type=range]{width:100%;accent-color:var(--orange);margin:24px 0 10px}.calc-output{display:flex;align-items:baseline;gap:10px}.calc-output strong{font-size:38px;font-weight:400;letter-spacing:-1px}.calc-output span{font-size:12px;color:var(--muted)}.table-scroll{overflow-x:auto;margin:30px 0 25px}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:650px}th{font:9px var(--mono);letter-spacing:.5px;color:var(--muted);padding:16px 14px;border-bottom:1px solid var(--ink)}td{padding:20px 14px;border-bottom:1px solid var(--line)}td:first-child{font-weight:500}td small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:4px}.shortfall{color:#b75734}.budget-notes{max-width:830px;font-size:12px;color:var(--muted);line-height:1.8}.budget-notes p{margin:10px 0}.budget-meter{height:10px;background:#dededc;border-radius:5px;margin:20px 0 8px;overflow:hidden}.budget-meter span{background:var(--orange);height:100%;display:block}.pill-row{display:flex;flex-wrap:wrap;gap:8px}.pill-row span{border:1px solid var(--line);border-radius:30px;padding:8px 12px;font-size:10px;color:var(--muted)}footer{max-width:1516px;margin:45px auto 0;padding:25px 42px 30px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);gap:22px;color:var(--muted);font-size:10px}.footer-brand{font-weight:600;color:var(--ink);font-size:12px}footer>span:last-child{font:8px var(--mono);letter-spacing:1px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);max-width:calc(100% - 32px);width:max-content;background:var(--ink);color:var(--paper);padding:15px 23px;border-radius:8px;box-shadow:0 8px 30px #0002;opacity:0;pointer-events:none;transition:.25s;z-index:9;font-size:12px}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:12px;padding:0;background:var(--paper);color:var(--ink);width:min(820px,calc(100% - 32px));max-height:90vh;box-shadow:0 25px 100px #0004}dialog::backdrop{background:#151515aa;backdrop-filter:blur(5px)}dialog .close{position:absolute;right:12px;top:12px;z-index:2;background:var(--paper);border:1px solid var(--line);width:32px;height:32px;font-size:23px;border-radius:50%;line-height:1}.dialog-image{width:100%;aspect-ratio:3/2;object-fit:cover}.dialog-text{padding:25px 29px}.dialog-text h2{font-size:26px;margin:9px 0}.dialog-text p{color:var(--muted);font-size:12px;margin:7px 0}.dialog-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}.skip{position:absolute;top:-60px;left:15px;background:var(--ink);color:white;padding:12px;z-index:20}.skip:focus{top:10px}.sparkle{animation:reveal .9s ease-out}.active-scene:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,transparent 10%,#ffce7a14 50%,transparent 90%);background-size:200% 200%;animation:sunlight 12s ease-in-out infinite}.pause-hint{font-size:10px;color:var(--muted);margin-top:11px;line-height:1.6;text-align:center}.intro-tag{font:9px var(--mono);letter-spacing:.6px;color:var(--orange)}.empty-collection{color:var(--muted);font-size:12px;padding:15px 0}.page-intro{max-width:600px;color:var(--muted);font-size:13px;line-height:1.8;margin:18px 0}.note{font-size:11px;color:var(--muted);line-height:1.7}.chapter-label{margin:38px 0 16px;display:flex;align-items:center;gap:15px;font:10px var(--mono);color:var(--muted);letter-spacing:1px}.chapter-label:after{content:'';height:1px;background:var(--line);flex:1}.state-label{color:var(--orange)}
@keyframes reveal{0%{filter:brightness(1.2);transform:scale(1.015)}100%{filter:brightness(1);transform:scale(1)}}@keyframes sunlight{0%,100%{background-position:0 50%;opacity:.3}50%{background-position:100% 50%;opacity:.9}}
@media(min-width:1400px){.workspace{grid-template-columns:minmax(0,1fr) 320px}.timer-display{font-size:78px}.timer-panel{padding:28px}.timer-doodle{margin:33px 0}.timer-sub{margin-bottom:29px}}
@media(max-width:1050px){.header{padding:20px 25px;gap:20px}.header nav{gap:17px;font-size:11px}.header>.button{display:none}main{padding:32px 25px 0}.workspace{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.timer-panel{padding:20px}.timer-display{font-size:59px;margin-top:20px}.timer-doodle{margin:18px 0}.next-unlock{padding-top:15px}.collection{grid-template-columns:repeat(4,minmax(0,1fr))}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-flow{gap:14px}.guide-step{padding:20px}footer{padding-left:25px;padding-right:25px}}
@media(max-width:740px){.header{flex-wrap:wrap;padding:17px 20px;gap:15px}.brand{font-size:10px}.brand b{font-size:9px}.brand-mark{font-size:34px}.header nav{width:100%;justify-content:space-between;gap:12px;order:3;font-size:10px}.header>.button{display:inline-flex;margin-left:auto;font-size:9px;padding:10px}main{padding:27px 18px 0}h1{font-size:44px;letter-spacing:-1.8px}h1 em{letter-spacing:-1px}.page-heading{display:block;margin-bottom:23px}.page-heading p{margin:15px 0 0;max-width:100%;font-size:12px}.workspace{display:flex;flex-direction:column;gap:17px}.scene-card .room{height:auto;aspect-ratio:3/2}.scene-top{top:11px;left:11px;right:11px}.scene-pill{font-size:7px;padding:7px 9px}.scene-bottom{bottom:12px;left:12px;right:12px}.scene-note{font-size:10px}.scene-number{font-size:9px}.timer-panel{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:0 19px}.panel-top{grid-column:1/-1}.timer-display{font-size:60px;margin:16px 0 0;grid-column:1;grid-row:2}.timer-sub{grid-column:1;grid-row:3;margin:0 0 17px;font-size:10px}.intention-wrap{grid-column:2;grid-row:2/4;align-self:center}.timer-panel>.button{grid-column:1/-1}.timer-panel>.text-button{grid-column:1/-1;justify-self:center}.timer-doodle{display:none}.next-unlock{grid-column:1/-1;margin-top:14px}.pause-hint{grid-column:1/-1;margin-bottom:0}.under-scene{align-items:flex-start;flex-direction:column;gap:11px;margin:17px 0 30px}.stats{font-size:9px;gap:20px}.section-line h2{font-size:24px}.collection{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.object-card{padding:15px 10px}.object-card h3{font-size:11px}.object-card p{font-size:8px}.object-card svg{width:29px;height:29px;margin:5px 0 14px}.quiet-banner{align-items:flex-start;flex-direction:column;gap:12px}.quiet-banner h2{font-size:23px}.demo-bar{gap:12px;padding:14px}.demo-bar input{order:4;flex-basis:100%}.demo-bar output{margin-left:auto;min-width:0}.demo-bar .text-button{margin-left:0}.demo-bar>span{display:none}.gallery-controls{align-items:flex-start;flex-direction:column}.gallery-grid{grid-template-columns:1fr;gap:19px}.stage-row h3{font-size:15px}.stage-card p{font-size:12px}.stage-links{font-size:10px}.guide-flow{grid-template-columns:1fr;margin:25px 0 35px}.guide-step{padding:23px}.guide-art{height:170px}.guide-compare{gap:12px}.guide-compare figcaption{font-size:8px;line-height:1.5;gap:8px;flex-direction:column}.rules-grid{grid-template-columns:1fr}.math-line{gap:14px;padding:20px 12px;font-size:9px}.math-line b{font-size:29px}.budget-head{grid-template-columns:1fr}.budget-card{padding:23px}.balance-number{font-size:52px}.table-scroll{margin-left:-5px;margin-right:-5px}.budget-notes{font-size:11px}footer{padding:22px 18px;flex-wrap:wrap;margin-top:30px;font-size:9px;gap:14px}footer>span:last-child{width:100%;font-size:8px}.dialog-text{padding:20px}.dialog-text h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Launch pass: preserve the full scene and make controls comfortable on touch screens. */
.workspace{align-items:start}.scene-card .room{height:auto;object-fit:contain}.dialog-text a{overflow-wrap:anywhere}.stage-row{flex-wrap:wrap}.stage-row h3{min-width:0;overflow-wrap:anywhere}dialog{max-width:calc(100vw - 24px)}dialog .close{width:44px;height:44px}.scene-pill{max-width:70%}.math-line{flex-wrap:wrap}.header nav a{min-height:44px;display:inline-flex;align-items:center}.text-button{min-height:44px;display:inline-flex;align-items:center}.stage-links a{min-height:44px;display:inline-flex;align-items:center}.button{min-height:44px}input[type=range]{min-height:44px}img{overflow-wrap:anywhere}
@media(max-width:740px){.header nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%}.header nav a{font-size:11px;justify-content:center;text-align:center;line-height:1.35;padding:8px 3px}.header{padding-bottom:10px}select,input,textarea{font-size:16px}.timer-panel{min-width:0}.timer-display{font-size:clamp(48px,15vw,64px)}.intention-wrap{min-width:0}.timer-sub{line-height:1.6}.scene-top{gap:8px}.scene-pill{font-size:7px}.collection{grid-template-columns:repeat(2,minmax(0,1fr))}.object-card{min-height:115px}.math-line{justify-content:center;gap:12px}.math-line b{font-size:26px}.fixed-gallery-controls select{width:100%;font-size:16px}.fixed-gallery-controls label{width:100%}.review-toggle{min-height:44px}.review-actions button{min-height:44px}.review-download{min-height:44px;display:flex;align-items:center}.music-actions a{min-height:44px;display:inline-flex;align-items:center}.alert-switch{min-height:44px}.scene-note{max-width:100%}}

@media(max-width:740px){.page-heading h1{font-size:clamp(33px,9.5vw,40px);line-height:1.06}.page-heading{margin-bottom:18px}}

@media(max-width:740px){.review-actions button{min-width:44px}}

@media(max-width:900px){.workspace{display:flex;flex-direction:column}.workspace>.scene-card,.workspace>.timer-panel{width:100%}.timer-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 19px}.panel-top{grid-column:1/-1}.timer-display{grid-column:1;grid-row:2}.timer-sub{grid-column:1;grid-row:3}.intention-wrap{grid-column:2;grid-row:2/4;align-self:center}.timer-panel>.button,.timer-panel>.text-button,.next-unlock,.pause-hint{grid-column:1/-1}.timer-panel>.text-button{justify-self:center}.timer-doodle{display:none}}
