:root{font-family:"Trebuchet MS",Verdana,Arial,sans-serif;color:#20392f;background:#f6f4ea;--green:#26483a;--green-2:#3c6950;--cream:#fffdf5;--gold:#e7ba68}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #f6cd73;outline-offset:2px}.skip{position:absolute;z-index:100;left:12px;top:-60px;background:white;padding:12px}.skip:focus{top:8px}
.game{height:100vh;height:100dvh;min-height:520px;position:relative;overflow:hidden;background:#b9d6c9;isolation:isolate}
#garden-canvas{width:100%;height:100%;display:block;touch-action:none;outline:none}
.game::after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,49,35,.26),transparent 23%,transparent 65%,rgba(15,42,30,.24));z-index:1}
.game-ui{z-index:3}.game-ui[hidden]{display:none!important}body .rex-progress-pill{bottom:90px;right:16px;max-width:300px}body:has(.panel:not([hidden])) .rex-progress-pill,body .rex-progress-pill:has([data-progress-action][hidden]),body.is-immersed .rex-progress-pill{display:none!important}body.is-immersed random-express-nav{display:none!important}@media(max-width:700px){body .rex-progress-pill{bottom:calc(max(8px,env(safe-area-inset-bottom)) + 70px)!important;left:12px;right:12px;max-width:none}}
.topbar{position:absolute;top:max(66px,env(safe-area-inset-top));left:clamp(12px,2.3vw,36px);right:clamp(12px,2.3vw,36px);display:flex;align-items:flex-start;justify-content:space-between;gap:16px;color:white;text-shadow:0 2px 8px rgba(8,36,25,.45)}
.identity h1{font-family:Georgia,serif;font-weight:600;font-size:clamp(28px,3.2vw,44px);line-height:1;letter-spacing:-.045em;margin:0}
.identity p{font-size:13px;letter-spacing:.04em;margin:5px 0 0;color:#f4eadb}
.wallet{display:flex;background:rgba(22,53,39,.73);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.2);border-radius:16px;overflow:hidden;box-shadow:0 10px 30px #092b2044;text-shadow:none}
.wallet span{padding:9px 17px;min-width:74px;text-align:center;display:flex;flex-direction:column}.wallet span+span{border-left:1px solid #ffffff29}.wallet b{color:#fff4d6;font-size:20px;line-height:1}.wallet small{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#e5eadc;margin-top:4px}
.hint{position:absolute;top:clamp(126px,17vh,158px);left:50%;transform:translateX(-50%);max-width:min(480px,calc(100vw - 28px));display:flex;align-items:center;gap:12px;padding:12px 13px 12px 18px;color:#304536;background:#fffbeced;border:1px solid #fff6d6;border-radius:14px;box-shadow:0 10px 28px #193b2c30;font-size:13px;line-height:1.35}
.hint[hidden]{display:none}.hint button,.panel header button{border:0;background:transparent;color:inherit;font-size:24px;width:36px;height:36px;flex:none;border-radius:10px}.hint button:hover,.panel header button:hover{background:#00000014}
.status-chip{position:absolute;left:50%;bottom:96px;transform:translateX(-50%);background:#234c3de8;color:white;padding:8px 14px;border-radius:999px;font-size:13px;white-space:nowrap;box-shadow:0 8px 24px #14362b55}
.tools{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:4px;padding:6px;background:rgba(255,253,245,.94);backdrop-filter:blur(20px);border:1px solid #fff;box-shadow:0 12px 45px #103a2e60;border-radius:20px;max-width:calc(100vw - 20px)}
.tools button{border:0;background:transparent;color:#375346;min-width:72px;min-height:60px;padding:6px 9px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;font-weight:700;line-height:1;white-space:nowrap}
.tools button:hover,.tools button[aria-pressed=true]{background:#dfeadf;color:#214633}
.tool-icon{font-family:Georgia,serif;font-size:25px;font-weight:400;line-height:1}
.panel{position:absolute;bottom:96px;left:clamp(12px,2.3vw,36px);width:min(370px,calc(100vw - 24px));max-height:min(67vh,600px);display:flex;flex-direction:column;background:rgba(255,253,246,.97);border:1px solid #fff;border-radius:19px;box-shadow:0 20px 60px #0b372653;overflow:hidden}
.panel[hidden]{display:none}.panel header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 10px 20px;border-bottom:1px solid #d9e0d2}.panel h2{margin:0;font-family:Georgia,serif;font-size:24px;line-height:1.15;font-weight:600;color:#244835}
#panel-body{overflow:auto;padding:13px 15px 17px;overscroll-behavior:contain}
.panel-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 13px}.panel-tabs button{border:1px solid #d7dfd3;background:#f2f4e9;padding:8px 11px;border-radius:8px;color:#385645;font-size:12px;font-weight:700;min-height:38px}.panel-tabs button.active{background:#285d42;color:white;border-color:#285d42}
.panel-intro{font-size:13px;line-height:1.45;color:#526b59;margin:0 0 13px}.panel-list{display:grid;gap:7px}.item-row{display:flex;align-items:center;gap:10px;padding:9px 10px;background:#f6f6ed;border:1px solid #e3e7da;border-radius:10px;min-height:60px}.item-swatch{width:30px;height:30px;border-radius:50%;flex:none;border:2px solid #ffffffa8;box-shadow:0 2px 6px #0002}.item-info{flex:1;min-width:0}.item-info strong{display:block;font-size:13px;color:#284735}.item-info small{display:block;color:#657565;font-size:11px;margin-top:3px}.item-row button,.panel-button,.selected button,.photo-bar button,.fallback button{background:#2c6048;color:white;border:0;border-radius:8px;min-height:40px;padding:8px 12px;font-size:12px;font-weight:700}.item-row button:disabled{background:#c8cfc5;color:#5d685f;cursor:not-allowed}.item-row button:hover:not(:disabled),.panel-button:hover{background:#1b4b34}.item-row button.secondary{background:#e2e9dd;color:#2c5d42}.item-row button.secondary:hover{background:#d3e3d3}
.panel-field{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:10px 0;color:#365642;font-size:13px}.panel-field input[type=range]{width:130px}.panel-field select,.panel-field input[type=text],.panel-field input[type=number]{border:1px solid #cbd8c8;border-radius:7px;background:white;padding:8px;color:#294937;min-width:100px;max-width:160px}.panel-field input[type=checkbox]{width:20px;height:20px;accent-color:#317250}.panel-button{width:100%;margin:5px 0;min-height:44px;text-align:left}.panel-button.secondary{background:#e1e9dd;color:#2e5944}.panel-button.danger{background:#f8e5df;color:#7d4338}.panel h3{font-family:Georgia,serif;margin:18px 0 8px;font-size:18px;color:#2e4d39}.panel p,.panel li{font-size:13px;line-height:1.45}.panel ul{padding-left:20px}
.selected{position:absolute;right:clamp(12px,2.3vw,36px);bottom:99px;background:#fffcf0f0;border:1px solid #fff;border-radius:15px;padding:13px;width:min(260px,calc(100vw - 24px));box-shadow:0 12px 36px #133f3055;color:#2b4d39}.selected[hidden]{display:none}.selected strong{font-family:Georgia,serif;display:block;font-size:18px}.selected small{display:block;margin:3px 0 9px;color:#5a715f}.selected .actions{display:flex;flex-wrap:wrap;gap:5px}.selected button{min-height:36px;padding:7px 9px}
.toast{position:absolute;top:135px;right:18px;z-index:6;max-width:min(300px,calc(100vw - 36px));padding:10px 15px;color:white;background:#234d3de8;border-radius:10px;box-shadow:0 10px 30px #08281755;opacity:0;transform:translateY(-10px);transition:opacity .25s,transform .25s;pointer-events:none;font-size:13px}.toast.show{opacity:1;transform:none}
.photo-bar{position:absolute;z-index:5;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:10px;background:#fffbefed;padding:9px;border-radius:13px;white-space:nowrap}.photo-bar[hidden]{display:none}.restore{position:absolute;z-index:5;right:18px;bottom:18px;border:0;border-radius:10px;padding:12px 18px;background:#fffbeb;color:#214934;font-weight:700;min-height:44px}.restore[hidden]{display:none}
.loading{position:absolute;inset:0;background:#d2e2d4;z-index:9;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#2a5b43;font-family:Georgia,serif;font-size:20px}.loading[hidden]{display:none}.loading-mark{font-size:60px;animation:bloom 2s ease-in-out infinite alternate}@keyframes bloom{to{transform:rotate(30deg) scale(1.12)}}
.fallback{position:absolute;z-index:10;inset:0;background:#f7f3e8;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4vw;padding:5vw}.fallback[hidden]{display:none}.fallback img{width:100%;border-radius:18px}.fallback h2{font:32px Georgia,serif}.fallback p{line-height:1.6}
.about{padding:70px 24px 90px;background:#f6f4ea}.about-inner{max-width:1040px;margin:auto}.about .eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:.15em;font-weight:700;color:#62866a}.about h2{font:normal clamp(30px,4vw,48px)/1.12 Georgia,serif;letter-spacing:-.035em;max-width:600px;margin:12px 0 18px;color:#264738}.about p{font-size:16px;line-height:1.7;max-width:780px;color:#415a49}.about-columns{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin:28px 0}.about h3{font:normal 24px Georgia,serif;margin:0 0 5px}.about a{color:#286645}
@media(max-width:700px){.game{min-height:480px}.topbar{top:max(58px,env(safe-area-inset-top));left:12px;right:12px;gap:7px}.identity h1{font-size:clamp(24px,6.3vw,33px);max-width:180px}.identity p{font-size:10px;margin-top:4px}.wallet{border-radius:11px}.wallet span{min-width:45px;padding:8px 6px}.wallet b{font-size:15px}.wallet small{font-size:8px}.hint{top:117px;max-width:calc(100vw - 24px);padding:8px 8px 8px 12px;font-size:11px}.hint button{width:32px;height:32px}.tools{bottom:max(8px,env(safe-area-inset-bottom));left:10px;right:10px;transform:none;width:auto;justify-content:space-between;border-radius:15px;gap:0;padding:4px}.tools button{min-width:0;flex:1;min-height:55px;padding:4px 2px;font-size:10px;border-radius:11px}.tool-icon{font-size:21px}.panel{left:10px;right:10px;width:auto;bottom:76px;max-height:min(57vh,470px);border-radius:16px}.panel h2{font-size:21px}.selected{left:10px;right:10px;bottom:76px;width:auto}.status-chip{bottom:78px;font-size:11px}.toast{top:114px;font-size:11px}.about{padding:48px 20px}.about-columns{grid-template-columns:1fr;gap:12px}.fallback{grid-template-columns:1fr;padding:16px}.fallback img{max-height:40vh;object-fit:cover}}
@media(max-width:380px){.identity h1{font-size:23px;max-width:160px}.wallet span{min-width:42px;padding:7px 4px}.wallet b{font-size:14px}.tools button{font-size:9px}.tool-icon{font-size:20px}}
@media(max-height:700px){.hint{top:112px}.panel{max-height:calc(100dvh - 190px)}.topbar{top:56px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Garden journal: quiet parchment surfaces and botanical portraits. */
.identity h1{font-size:32px;font-weight:400;letter-spacing:-.035em}.identity p{font-size:12px}
.topbar{top:22px;left:132px;align-items:center}.wallet{background:#fff7e8ee;border-color:#e8dcc5;border-radius:12px;box-shadow:0 4px 18px #384e2826}.wallet b{color:#425a3b;font-size:18px}.wallet small{color:#66705b}.wallet span+span{border-color:#c9bea64d}
.hint{left:30px;top:100px;transform:none;max-width:290px;background:#f9f5e9ec;border-radius:10px;box-shadow:0 5px 20px #2d3d2420;font-size:13px;padding:6px 8px 6px 14px}.hint button,.panel header button{min-width:44px;min-height:44px}
.game::after{background:linear-gradient(180deg,#263f2824,transparent 19%,transparent 80%,#29422820)}
.tools{border-radius:16px;box-shadow:0 8px 28px #273e2940;background:#fff8e9f5;border-color:#e8dcc5;gap:6px;padding:7px}.tools button{min-width:74px;font-size:12px;min-height:58px;border-radius:10px;color:#58654a;font-weight:600}.tools button[aria-pressed=true]{background:#dfe7d2;color:#35503c}.tool-icon{display:flex;align-items:center;justify-content:center}.tool-icon svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.panel{width:min(400px,calc(100vw - 24px));background:#fcf8ee;border-color:#e7ddc8;box-shadow:0 12px 45px #253d303b;border-radius:16px;max-height:calc(100dvh - 190px)}.panel h2{font-weight:400;font-size:26px}.panel header{padding:10px 14px 10px 20px}.panel-tabs{border-bottom:1px solid #dce1cf;padding-bottom:10px}.panel-tabs button{min-height:44px;border-radius:7px;background:transparent;border-color:transparent;font-size:13px}.panel-tabs button.active{background:#e1e8d7;color:#38543a;border-color:#d0dcc4}.panel-intro{font-size:13px;line-height:1.55}
.item-row{background:transparent;border:0;border-bottom:1px solid #e4e3d5;border-radius:0;padding:5px 0;gap:12px;min-height:94px}.plant-portrait{width:82px;height:82px;object-fit:contain;flex:none;background:radial-gradient(ellipse,#e5e9d775,transparent 72%)}.plant-portrait.undiscovered{filter:brightness(0) opacity(.2)}.item-info strong{font:18px/1.2 Georgia,serif;color:#38553e}.item-info small{font-size:12px;line-height:1.45;color:#69735e}.item-row button{min-height:44px;min-width:60px;background:#5a7451;font-size:12px;padding:8px 10px;border-radius:7px}.panel h3{font-weight:400;font-size:21px}.selected button{min-height:44px}.status-chip{background:#526c47ee}.toast{background:#526c47f2;top:92px}
@media(max-width:700px){.topbar{left:112px;right:12px;top:17px;display:block}.identity h1{font-size:25px;max-width:none;line-height:1.02}.identity p{display:none}.wallet{position:absolute;top:66px;left:-100px;right:0;justify-content:space-around;background:#fff8e9ec}.wallet span{flex:1;flex-direction:row;align-items:center;justify-content:center;gap:5px;padding:8px 4px}.wallet b{font-size:16px}.wallet small{font-size:9px;margin:0}.hint{top:130px;left:12px;right:12px;max-width:none;font-size:12px;padding:2px 5px 2px 12px;background:#faf6e6e8}.tools{gap:0;padding:5px;bottom:8px}.tools button{min-width:0;min-height:55px;font-size:10px}.tool-icon svg{width:23px;height:23px}.panel{bottom:79px;max-height:calc(100dvh - 207px);width:auto}.panel h2{font-size:24px}.item-row{min-height:83px}.plant-portrait{width:70px;height:70px}.item-info strong{font-size:17px}.toast{top:133px}.status-chip{max-width:calc(100vw - 24px);white-space:normal;text-align:center}.selected{bottom:80px}}
@media(max-width:380px){.identity h1{font-size:24px}.wallet small{font-size:9px}.tools button{font-size:10px}}
.botanical-page{text-align:center}.journal-hero{width:170px;height:170px;object-fit:contain;display:block;margin:0 auto;background:radial-gradient(ellipse,#e3e8d8,transparent 70%)}.botanical-page h3{font-size:27px;margin:0 0 8px}.botanical-page p{line-height:1.6;color:#68735e}.growth-strip{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #dbe0cf;border-bottom:1px solid #dbe0cf;padding:12px 0;margin:16px 0}.growth-strip figure{margin:0}.growth-strip img{width:100%;height:90px;object-fit:contain}.growth-strip figcaption{font-size:12px;color:#5c7354}.color-varieties{display:flex;justify-content:center;gap:10px;margin:12px 0 20px}.color-varieties span{display:block;width:25px;height:25px;border-radius:50%;background:var(--petal);border:3px solid white;box-shadow:0 1px 4px #0002}
.camera-tools{position:absolute;right:24px;top:calc(50% - 72px);display:grid;gap:5px}.camera-tools button{width:44px;height:44px;background:#fff8e9ed;border:1px solid #e5dfca;border-radius:10px;font-size:25px;color:#4a6546;box-shadow:0 3px 10px #253c2820}.camera-tools svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.camera-tools button:hover{background:#e4ead8}.is-immersed .camera-tools{display:none}@media(max-width:700px){.camera-tools{right:10px;top:auto;bottom:151px;gap:4px}.camera-tools button{width:44px;height:44px}.panel:not([hidden])~.camera-tools{display:none}body:has(.panel:not([hidden])) .camera-tools{display:none}}

/* Clear tool state, compact guidance, and accessible controls. */
.tools button[aria-pressed=true]{background:#47633e;color:#fffdf5}
.identity{background:#fff8e9ed;color:#38543a;text-shadow:none;padding:9px 13px;border-radius:12px}.identity p{color:#64735a}
.is-exploring .topbar{display:none}.about h2{max-width:720px}
.panel-field input[type=range]{accent-color:#5a7451;height:28px}.panel-field input[type=range]::-webkit-slider-runnable-track{background:#d8e1ce;border-radius:9px;height:7px}.panel-field input[type=range]::-webkit-slider-thumb{margin-top:-4px}
.quick-actions{display:flex;gap:8px;margin-bottom:12px}.quick-actions button{flex:1;min-height:44px;border:1px solid #ced9c3;border-radius:8px;background:#e6ecdc;color:#37563b;font-weight:700}
.inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.inventory-grid figure{margin:0;background:#f0f1e4;border-radius:10px;padding:6px;text-align:center}.inventory-grid img{width:100%;height:80px;object-fit:contain}.inventory-grid figcaption{font-size:12px;line-height:1.4}.inventory-grid b{display:block;color:#496d40}
.history-tools{position:absolute;left:24px;bottom:96px;display:flex;gap:5px}.history-tools button{width:44px;height:44px;border:1px solid #dbdfce;border-radius:10px;background:#fff8e9ed;color:#45643c;font-size:25px}.history-tools button:disabled{opacity:.45;cursor:default}
body:has(.panel:not([hidden])) .history-tools,.is-immersed .history-tools{display:none}
body:not(.has-grown-plant) .rex-progress-pill{display:none!important}
body.has-grown-plant:not(.save-notice) .rex-progress-pill{left:auto!important;right:16px!important;bottom:96px!important;width:44px;height:44px;padding:0;overflow:hidden}
body.has-grown-plant:not(.save-notice) .rex-progress-pill [data-progress-label]{display:none}
body.has-grown-plant:not(.save-notice) .rex-progress-pill button{font-size:0;width:44px;min-width:44px;padding:0;background:#536f48}
body.has-grown-plant:not(.save-notice) .rex-progress-pill button::before{content:'☁';font-size:23px}
body .rex-progress-pill[data-error=true]{width:auto!important;max-width:280px;height:auto!important;overflow:visible!important}
body .rex-progress-pill[data-error=true] [data-progress-label]{display:block!important;font-size:12px}
@media(max-width:700px){.topbar{top:14px}.identity{padding:8px 9px}.identity h1{font-size:24px}.wallet{top:60px}.hint{top:115px}.history-tools{left:10px;bottom:82px}.camera-tools{bottom:135px;grid-template-columns:44px;right:10px}.is-exploring .camera-tools{bottom:135px}.toast{top:116px;max-width:calc(100vw - 24px)}body.has-grown-plant:not(.save-notice) .rex-progress-pill{right:10px!important;bottom:82px!important}}
