:root{--ink:#234a40;--green:#246653;--cream:#f6f5ed;--muted:#7a887b;--line:#dce1d3;--yellow:#f3cd68;--coral:#ed866e}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:ui-rounded,"Avenir Next",Avenir,system-ui,sans-serif;font-size:14px;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #e5a745;outline-offset:4px}button:disabled{cursor:default;opacity:.42}button:not(:disabled):active{transform:translateY(2px)}[hidden]{display:none!important}#game{height:100dvh;min-height:300px;position:relative;overflow:hidden}#world{position:absolute;inset:0;width:100%;height:100%;touch-action:manipulation}.topbar{position:absolute;top:0;left:0;width:100%;height:90px;padding:20px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:3;background:linear-gradient(var(--cream) 75%,transparent)}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:25px;font-weight:850;letter-spacing:-1px}.brand-symbol{font-size:38px;font-weight:900;line-height:1;position:relative}.brand-symbol>span{font-size:21px;position:absolute;left:14px;top:-6px;color:var(--coral)}.brand-sub{display:block;font-size:8px;letter-spacing:2px;margin-top:2px;font-weight:700}.day-clock{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:650}.dot{color:#bbc4b6}.status{font-size:9px;letter-spacing:1.5px;background:#e6eadc;padding:7px 10px;border-radius:7px}.resources{display:flex;align-items:center;gap:8px;background:#fffaf0;border:1px solid #e5e2d5;border-radius:30px;padding:5px 8px 5px 16px}.resources strong{font-size:21px;font-variant-numeric:tabular-nums;min-width:35px}.coin-icon{display:inline-grid;place-items:center;width:23px;height:23px;color:#d59731;background:#f7d879;border:2px solid #ecc05a;border-radius:50%;font-size:13px}.resource-divider{height:22px;width:1px;background:#e4e4d5;margin:0 7px}.heart{color:var(--coral);font-size:20px}.icon-btn{width:38px;height:38px;border-radius:50%;background:transparent;font-size:20px;margin-left:8px}.icon-btn:hover,.soft-btn:hover{background:#e6eadc}.goal-card{position:absolute;left:36px;top:116px;width:242px;text-align:left;background:#fffdf5e8;border:1px solid #e5e5d7;border-radius:18px;padding:17px;z-index:3;box-shadow:0 4px 0 #304c3a04}.eyebrow{display:block;font-size:9px;letter-spacing:1.8px;font-weight:800;color:var(--muted)}.goal-main{display:flex;gap:10px;align-items:center;margin:14px 0}.goal-icon{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:11px;background:#f8e9ba;color:#976d25;font-size:23px}.goal-main strong{font-size:13px;line-height:1.4;display:block}.goal-main small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.goal-arrow{margin-left:auto;color:var(--muted);font-size:24px}.track{display:block;height:4px;background:#e9ece0;border-radius:8px;overflow:hidden}.track>span{display:block;height:100%;background:var(--green);transition:width .35s}.bottom-bar{position:absolute;bottom:0;left:0;width:100%;padding:23px 36px 26px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(transparent,var(--cream) 30%);z-index:3}.bakery-caption strong{display:block;font-size:20px;letter-spacing:-.6px;margin-top:7px}.day-actions{display:flex;align-items:center;gap:8px}.primary{background:var(--green);color:#fffdf3;padding:17px 26px;border-radius:14px;font-weight:750;box-shadow:0 4px 0 #174839;min-height:48px}.primary:hover{background:#317861}.soft-btn{min-width:44px;height:44px;border-radius:12px;background:#e9ecdf;font-weight:700}.secondary{padding:12px 16px;background:#e7ecdf;border-radius:12px;font-weight:700;min-height:44px}#day-summary{font-size:12px;color:var(--muted);text-align:center}#day-summary strong{color:var(--ink);font-size:15px}.room-tag{position:absolute;background:#fffdf5f5;border:1px solid #dfe1d2;border-radius:10px;padding:7px 11px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750;min-height:36px;white-space:nowrap;transform:translate(-50%,-50%);box-shadow:0 3px 0 #273f3610;z-index:2}.room-tag:not(:disabled):active{transform:translate(-50%,-47%)}.room-tag small{font-size:9px;font-weight:600;color:#7c8677}.room-tag.locked{background:#eef0e4d9;color:#889183}.room-tag.available{border-color:#81a793;background:#edf6e4}.room-tag:hover{border-color:#34725c}#register-wrap{position:absolute;text-align:center;z-index:3;transform:translate(-50%,-50%)}.register-btn{display:flex;align-items:center;gap:9px;padding:10px 14px;background:#f6d477;border:2px solid #ffedac;border-radius:14px;box-shadow:0 4px 0 #b58f42;font-size:12px;font-weight:750;min-height:44px}.register-btn strong{font-size:18px}.register-btn.ready{animation:nudge 2s infinite}#register-hint{display:block;font-size:10px;margin-top:10px;color:var(--ink);background:#fffdf4d9;border-radius:5px}#toast{position:absolute;left:50%;top:96px;transform:translate(-50%,-10px);opacity:0;pointer-events:none;z-index:12;background:var(--ink);color:#fffdf2;padding:12px 20px;border-radius:14px;transition:.2s;font-size:13px;max-width:80vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}#scrim{position:absolute;inset:0;background:#1c3c3217;backdrop-filter:blur(2px);z-index:5}#drawer{position:absolute;right:20px;top:20px;bottom:20px;width:365px;background:#fcfbf3;border:1px solid #e4e4d7;border-radius:24px;box-shadow:0 20px 80px #213d3826;z-index:6;overflow:auto;padding:27px;animation:slide .2s ease-out}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:24px}.panel-head h2{margin:8px 0 0;font-size:27px;letter-spacing:-1px}.close{background:#e9ecdf;border-radius:50%;width:36px;height:36px;flex-shrink:0;font-size:22px}.panel-intro{color:#748275;line-height:1.6;font-size:13px}.upgrade-box{background:#eaf0e2;padding:20px;border-radius:18px;margin:20px 0}.stat-row{display:flex;justify-content:space-between;align-items:center;margin:10px 0;font-size:12px}.stat-row strong{font-size:17px}.upgrade-box .primary{width:100%;margin-top:15px;padding:13px}.section-label{font-size:11px;letter-spacing:1.2px;font-weight:800;margin:24px 0 12px;text-transform:uppercase}.options{display:flex;gap:5px}.options button{flex:1;padding:12px 5px;border-radius:10px;background:#e9ecdf;font-size:12px;min-height:44px}.options button.selected{background:var(--green);color:white}.product{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e5e7db}.product .product-icon{display:grid;place-items:center;width:40px;height:44px;font-size:28px;background:#f0ecdc;border-radius:12px}.product strong{font-size:12px;display:block}.product small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.product button{margin-left:auto;border-radius:9px;background:#e6ecdd;padding:10px;font-size:11px;min-height:40px}.product button.selected{background:var(--green);color:white}.note{padding:12px;background:#f5ecd5;border-radius:10px;font-size:12px;line-height:1.5}.mission-item{padding:15px 0;border-bottom:1px solid var(--line)}.mission-item strong{font-size:13px}.mission-item small{display:block;color:var(--muted);margin:6px 0 10px}#modal-layer{position:absolute;inset:0;background:#1d3f3459;backdrop-filter:blur(5px);display:grid;place-items:center;z-index:10;padding:20px}#modal{width:650px;max-width:100%;max-height:100%;overflow:auto;background:#fcfbf3;border-radius:27px;padding:34px;text-align:center;box-shadow:0 24px 100px #183b3533;animation:pop .3s ease-out}#modal h1{font-size:32px;letter-spacing:-1.2px;margin:8px 0 12px}#modal p{color:#748275;font-size:13px;line-height:1.6}.stars{font-size:49px;letter-spacing:12px;color:#d9ddcf;margin:10px}.stars .lit{color:#e7b846;display:inline-block;animation:pop .45s backwards}.report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:22px 0}.report-grid div{background:#edf0e5;border-radius:14px;padding:14px 5px;font-size:11px;color:var(--muted)}.report-grid strong{display:block;font-size:27px;color:var(--ink);margin-bottom:4px}.report-money{display:flex;justify-content:center;flex-wrap:wrap;gap:17px;font-size:12px;margin:20px 0}.report-money strong{display:block;font-size:18px;margin-top:5px}.report-tip{background:#f5e8c6;border-radius:14px;padding:13px 18px;text-align:left;font-size:13px;line-height:1.6;margin:20px 0}.report-goals{text-align:left;font-size:12px;line-height:1.9}.modal-actions{margin-top:20px}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}.settings-row button{padding:10px 15px;border-radius:10px;background:#e9ecdf;min-height:40px}.debug-controls{display:flex;flex-wrap:wrap;gap:8px}.debug-controls button{padding:10px;border-radius:8px;background:#e9ecdf;min-height:40px}#portrait{display:none}.floating{position:absolute;pointer-events:none;font-weight:800;color:var(--green);z-index:4;animation:float 1.2s forwards;font-size:22px}.coin-flight{position:absolute;pointer-events:none;z-index:15;width:18px;height:18px;background:#f6cf61;border:3px solid #e4b34a;border-radius:50%;transition:transform .7s cubic-bezier(.3,0,.8,.4),opacity .7s}.danger{color:#ba5746!important}.quiet{font-size:11px;color:var(--muted)}@keyframes nudge{0%,85%,100%{translate:0 0}90%{translate:0 -5px}95%{translate:0 -2px}}@keyframes slide{from{opacity:0;translate:30px 0}}@keyframes pop{from{opacity:0;scale:.88}to{opacity:1;scale:1}}@keyframes float{to{translate:0 -60px;opacity:0}}@media(max-width:1000px){.topbar{height:66px;padding:12px 20px}.brand{font-size:20px}.brand-symbol{font-size:30px}.brand-sub{font-size:7px;letter-spacing:1px}.day-clock{font-size:11px;gap:8px}.resources{padding:3px 5px 3px 10px}.resources strong{font-size:17px}.goal-card{left:20px;top:84px;width:190px;padding:12px}.goal-main{margin:10px 0}.goal-main strong{font-size:11px}.goal-main small{font-size:10px}.bottom-bar{padding:16px 20px;gap:10px}.bakery-caption strong{font-size:15px}.primary{padding:13px 18px}.room-tag{font-size:10px;padding:5px 8px;gap:5px}.room-tag small{font-size:8px}#toast{top:72px}}@media(max-height:560px){.topbar{height:57px;padding-top:8px;padding-bottom:8px}.goal-card{top:70px;width:178px;padding:11px}.goal-main{margin:8px 0}.goal-icon{width:25px;height:28px;font-size:20px}.eyebrow{font-size:8px;letter-spacing:1px}.bottom-bar{padding-top:10px;padding-bottom:12px}.bakery-caption strong{font-size:14px;margin-top:4px}#day-summary{font-size:10px}.status{font-size:8px;padding:5px}.register-btn{padding:6px 10px;gap:6px;min-height:38px;font-size:10px}.register-btn strong{font-size:15px}#register-hint{font-size:9px;margin-top:6px}.room-tag{min-height:30px}.room-tag small{display:none}#drawer{top:10px;bottom:10px;right:10px;width:330px;padding:20px}.panel-head{margin-bottom:15px}.panel-head h2{font-size:24px}.upgrade-box{padding:14px;margin:12px 0}#modal{padding:18px 28px;max-width:640px}#modal h1{font-size:24px;margin:5px}.stars{font-size:30px;margin:4px}.report-grid{margin:10px 0;gap:6px}.report-grid div{padding:8px}.report-grid strong{font-size:22px}.report-money{margin:10px 0}.report-tip{margin:10px 0;padding:8px 14px;font-size:11px}.report-goals{font-size:10px;line-height:1.7}.modal-actions{margin-top:12px}}@media(orientation:portrait) and (max-width:700px){#portrait{position:absolute;inset:0;z-index:30;background:var(--cream);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}#portrait>span{font-size:80px;color:var(--green)}#portrait h2{margin:12px}#portrait p{color:var(--muted)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

@media(max-height:560px){#modal[data-kind=report]{display:grid;grid-template-columns:1fr 1fr;gap:5px 24px;text-align:left}#modal[data-kind=report]>.eyebrow{grid-column:1;grid-row:1}#modal[data-kind=report]>h1{grid-column:1;grid-row:2;font-size:24px;margin:2px 0}#modal[data-kind=report]>.stars{grid-column:1;grid-row:3;margin:0}#modal[data-kind=report]>.report-goals{grid-column:1;grid-row:4}#modal[data-kind=report]>.report-tip{grid-column:1;grid-row:5 / 7;margin:5px 0}#modal[data-kind=report]>.report-grid{grid-column:2;grid-row:1 / 4;grid-template-columns:1fr 1fr;margin:0}#modal[data-kind=report]>.report-money{grid-column:2;grid-row:4 / 6;gap:9px 16px;margin:6px 0;text-align:center;font-size:10px}#modal[data-kind=report]>.report-money strong{font-size:15px}#modal[data-kind=report]>.modal-actions{grid-column:2;grid-row:6;margin:0}#modal[data-kind=report]>.modal-actions .primary{width:100%}#modal[data-kind=report]>p{grid-column:1 / 3;margin:0}}
/* Child-facing controls stay readable and tappable at phone size. */
.happy-indicator{font-size:25px;line-height:1;padding:0 5px}.goal-card{width:250px}.goal-main strong{font-size:17px;line-height:1.3}.goal-main small{font-size:13px;line-height:1.4;color:#586c5c}.goal-icon{width:42px;height:44px;font-size:28px;background:#f6e6b7}.goal-arrow{font-size:20px}.goal-card .eyebrow{font-size:10px}.goal-main{gap:11px}.room-tag{min-height:48px;padding:9px 15px;border-radius:14px;font-size:15px;gap:8px;border:2px solid #fffef2}.room-icon{font-size:24px;line-height:1}.register-btn{min-height:48px;font-size:14px;padding:10px 14px}.register-btn:disabled{opacity:.78;background:#e8dfbc;box-shadow:0 3px 0 #c4b78f;color:#7e8064}.register-btn strong{font-size:20px}.register-btn .coin-icon{display:none}.soft-btn{min-height:48px;font-size:14px;padding:0 13px}.icon-btn{min-width:44px;min-height:44px}.guided{outline:3px solid #e9b74f;outline-offset:4px}.panel-intro{font-size:16px;color:#536b5d;line-height:1.5}.stat-row{font-size:15px}.stat-row strong{font-size:23px}.upgrade-box{padding:20px}.upgrade-effect{font-size:27px;padding:10px 0}.upgrade-effect strong{display:block;font-size:18px;margin-top:9px}.need-coins{font-size:14px;color:#776136;text-align:center;margin:10px 0}.quiet{font-size:13px;line-height:1.5}.close{width:48px;height:48px;font-size:28px}.panel-choices{display:grid;gap:12px}.choice-btn{display:block;width:100%;min-height:58px;background:#e9efdf;border-radius:14px;font-size:17px;font-weight:750;padding:14px;text-align:left}.price-choices{display:grid;gap:12px}.price-choice{display:grid;grid-template-columns:75px 1fr;column-gap:15px;text-align:left;min-height:76px;padding:15px;background:#edf0e4;border:2px solid transparent;border-radius:16px}.price-choice>span{grid-row:1/3;align-self:center;font-size:22px;letter-spacing:-8px}.price-choice strong{font-size:19px}.price-choice small{font-size:14px;margin-top:5px}.price-choice.selected{background:#dcebd6;border-color:#3d7b59;opacity:1}.product{gap:12px;min-height:86px}.product .product-icon{width:47px;height:51px;font-size:32px;flex-shrink:0}.product strong{font-size:16px}.product small{font-size:13px;line-height:1.4}.product button{font-size:14px;min-height:48px;max-width:125px;flex-shrink:0}.on-menu{color:#2c714e!important;font-weight:700}.section-label{font-size:13px}.settings-row{font-size:16px}.settings-row button{min-height:48px;font-size:15px}.adult-controls{border-top:1px solid var(--line);padding-top:16px;margin-top:22px}.adult-controls summary{cursor:pointer;min-height:48px;display:flex;align-items:center;color:#728071;font-size:14px}.adult-controls summary::before{content:'›';font-size:24px;margin-right:12px}.adult-controls[open] summary::before{content:'⌄'}.help-step{padding:16px 0;border-bottom:1px solid var(--line)}.help-step>span{display:block;font-size:29px;margin-bottom:8px}.help-step strong{font-size:18px}.help-step p{font-size:15px;line-height:1.4;color:#617566}.mission-item strong{font-size:16px}.mission-item small{font-size:14px}.day-actions .primary{min-height:50px;font-size:16px}.bottom-bar{gap:16px}#day-summary{font-size:14px;color:#51674f}#day-summary strong{font-size:19px}.room-tag:not(:disabled):active{transform:translate(-50%,-48%)}.panel-head{align-items:center}
@media(max-width:1000px){.goal-card{width:210px}.goal-main strong{font-size:15px}.goal-main small{font-size:12px}.room-tag{font-size:14px}.room-icon{font-size:22px}.register-btn{font-size:13px}.register-btn strong{font-size:18px}.bakery-caption strong{font-size:15px}.resources{padding:1px 4px 1px 10px}}
@media(max-height:560px){.goal-card{top:72px;width:202px;padding:12px}.goal-main strong{font-size:15px}.goal-main small{font-size:12px}.goal-icon{width:34px;height:38px;font-size:24px}.goal-arrow{display:none}.goal-card .eyebrow{font-size:9px}.room-tag{min-height:48px;font-size:14px;padding:7px 12px}.register-btn{min-height:48px;padding:8px 12px}.room-icon{font-size:22px}.goal-main{margin:10px 0}.bottom-bar{padding:10px 20px}.day-actions .primary{min-height:48px;font-size:15px}.bakery-caption strong{font-size:14px}.bakery-caption .eyebrow{display:none}.close{width:44px;height:44px}.panel-head{margin-bottom:12px}.panel-intro{font-size:15px}.upgrade-box{padding:16px}.stat-row{font-size:14px}.upgrade-box .primary{font-size:15px;min-height:48px}#drawer{width:370px}.day-clock .dot,.day-clock #clock{display:none}.topbar{padding:8px 20px}.brand-sub{display:none}.resources strong{font-size:19px}.brand{font-size:20px}}
@media(max-width:740px) and (orientation:landscape){.goal-card{width:175px;left:12px}.goal-main strong{font-size:14px}.goal-main small{font-size:12px}.goal-icon{display:none}.bakery-caption{display:none}.topbar,.bottom-bar{padding-left:12px;padding-right:12px}.resources{gap:5px}.room-tag{font-size:13px;padding:6px 9px}.room-icon{font-size:21px}.brand-symbol{display:none}}
#modal[data-kind=kid-report]{text-align:left;width:720px;display:grid;grid-template-columns:1fr 1.2fr;gap:20px 26px}.kid-report-head h1{font-size:28px!important;line-height:1.15}.kid-report-head .stars{font-size:35px;letter-spacing:6px;margin:12px 0 0}.kid-report-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.kid-report-numbers>div{background:#eaf0df;border-radius:16px;padding:15px 7px;text-align:center}.kid-report-numbers span{display:block;font-size:29px}.kid-report-numbers strong{display:block;font-size:29px;margin:7px 0}.kid-report-numbers small{font-size:13px;line-height:1.3;display:block}.kid-report-tip{grid-column:1 / 3;display:flex;align-items:center;gap:13px;padding:16px;background:#f6e9bf;border-radius:16px}.kid-report-tip>span{font-size:32px}.kid-report-tip p{font-size:16px!important;color:#514d34!important;line-height:1.4!important;margin:0;flex:1}.kid-report-tip button{flex-shrink:0;background:#ecdaa1;min-height:48px;font-size:15px}.report-details{grid-column:1;align-self:center}.report-details summary{min-height:48px;cursor:pointer;display:flex;align-items:center;font-size:14px;color:#5e735c}.report-details summary::after{content:'⌄';margin-left:10px}.report-details[open]{grid-column:1 / 3}.kid-report-next{grid-column:2;text-align:right}.kid-report-next .primary{width:100%;font-size:17px;min-height:52px}.recipe-found{grid-column:1 / 3;margin:0!important;color:#2b6c4f!important}.report-details .report-goals{font-size:14px}.report-details .report-money{font-size:14px}
@media(max-height:560px){#modal[data-kind=kid-report]{padding:20px;gap:12px 22px;max-width:720px}.kid-report-head h1{font-size:24px!important}.kid-report-head .stars{font-size:31px;margin-top:8px}.kid-report-numbers>div{padding:9px 6px}.kid-report-numbers span{font-size:24px}.kid-report-numbers strong{font-size:25px;margin:4px 0}.kid-report-numbers small{font-size:12px}.kid-report-tip{padding:12px}.kid-report-tip p{font-size:15px!important}.kid-report-tip>span{font-size:26px}.kid-report-next .primary{min-height:48px}.report-details summary{font-size:13px}.report-details .report-grid{margin:4px 0}}
.panel-return{padding-top:20px;position:sticky;bottom:-20px;padding-bottom:4px;background:linear-gradient(transparent,#fcfbf3 30%);margin-top:12px}.panel-return .secondary{width:100%;min-height:48px;font-size:16px;background:#e2ead6}
#drawer[data-panel=price]{width:min(660px,calc(100% - 40px))}#drawer[data-panel=price] .price-choices{grid-template-columns:repeat(3,1fr);gap:10px}#drawer[data-panel=price] .price-choice{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;padding:15px 10px;min-height:155px}#drawer[data-panel=price] .price-choice>span{color:#d7a52c;font-size:25px;letter-spacing:0;white-space:nowrap}#drawer[data-panel=price] .price-choice small{font-size:14px;line-height:1.35}.kid-report-numbers .report-coin{width:28px;height:28px;margin:auto;border-radius:50%;background:#f5d578;border:3px solid #e3b64b;color:#bd8724;font-size:14px;line-height:22px}#drawer[data-panel=price] .panel-return{position:static}
@media(max-height:560px){#drawer[data-panel=price]{padding:18px}#drawer[data-panel=price] .panel-head{margin-bottom:6px}#drawer[data-panel=price] .panel-intro{margin:6px 0 12px;font-size:14px}#drawer[data-panel=price] .price-choice{min-height:128px;padding:10px 8px;gap:4px}#drawer[data-panel=price] .price-choice strong{font-size:18px}#drawer[data-panel=price] .price-choice small{font-size:13px}#drawer[data-panel=price] .panel-return{padding-top:10px;margin-top:4px;padding-bottom:0}}
