:root{color-scheme:light;--paper:#f5efdf;--ink:#263d38;--muted:#657069;--orange:#b95532;--gold:#e7b659;--line:#d9d7c3;--green:#234d40;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button,.file-button{border:1px solid #c9cebd;background:#fffbef;border-radius:11px;padding:12px 16px;color:var(--ink);cursor:pointer;min-height:44px;font-weight:650;transition:background .15s,transform .15s}button:hover{background:#eae5d5}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #ba532e;outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,serif;font-size:clamp(30px,3.1vw,47px);font-weight:500;line-height:1.02;letter-spacing:-1.5px;margin-bottom:15px}h2{font-family:Georgia,serif;font-size:32px;font-weight:500;letter-spacing:-.8px}h3{font-size:16px}p{line-height:1.55}small,.muted{color:var(--muted)}.top{height:83px;display:flex;align-items:center;gap:24px;padding:12px 28px;border-bottom:1px solid var(--line)}.back{text-decoration:none;font-size:13px;font-weight:700}.brand{flex:1}.brand small{display:block;font-size:9px;font-weight:800;letter-spacing:2.4px;margin-bottom:4px}.brand strong{font-family:Georgia,serif;font-size:28px;letter-spacing:-.8px;font-weight:500}.brand span{color:var(--orange)}.icon-button{background:transparent;border:0;font-size:24px}.hud{height:74px;display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;padding:12px 28px;border-bottom:1px solid var(--line);gap:15px}.hud div{border-right:1px solid var(--line)}.hud div:last-child{border:0}.hud small{display:block;letter-spacing:1.4px;font-size:9px;font-weight:750;margin-bottom:5px}.hud b{font-size:20px;font-variant-numeric:tabular-nums}.hud b span{font-size:12px;font-weight:400}main{display:grid;grid-template-columns:minmax(0,1fr) 390px;height:calc(100dvh - 157px);min-height:460px}.world{position:relative;overflow:hidden;min-width:0;background:#bcc4a9}.world canvas{display:block;width:100%;height:100%;touch-action:none}.scene-top{position:absolute;top:20px;left:20px;right:20px;display:flex;justify-content:space-between;pointer-events:none;gap:10px}.pill{font-size:9px;letter-spacing:1.8px;font-weight:800;background:#fff9e8e8;border:1px solid #fff8;border-radius:100px;padding:12px 15px;align-self:start}.glass{background:#f5efdfdc;border-color:#fffb;backdrop-filter:blur(8px);pointer-events:auto;font-size:12px;min-height:38px;padding:9px 13px}.crosshair{position:absolute;left:50%;top:50%;color:white;text-shadow:0 1px 3px #152d21;font:20px Arial;pointer-events:none;opacity:.7}.scene-caption{position:absolute;left:24px;bottom:24px;color:#fff;max-width:65%;text-shadow:0 2px 6px #203326;pointer-events:none}.scene-caption span{display:block;font-family:Georgia,serif;font-size:24px;margin-bottom:7px}.scene-caption small{color:#fffe;font-size:10px}.interact{position:absolute;right:20px;bottom:25px}.touch-controls{display:none}.notebook{display:flex;flex-direction:column;border-left:1px solid var(--line);overflow:hidden;background:var(--paper)}.tabs{display:flex;border-bottom:1px solid var(--line);padding:12px 20px 0;gap:8px;flex-shrink:0}.tabs button{background:none;border:0;border-radius:0;font-size:12px;padding:12px 8px 16px;font-weight:600;border-bottom:2px solid transparent}.tabs button.active{border-color:var(--orange);color:var(--orange)}.tabs span{font-size:10px;background:#e8e3d4;padding:1px 4px;border-radius:4px}#panel{padding:27px 25px;flex:1;overflow:auto;scrollbar-width:thin}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:var(--orange);margin-bottom:14px}.subtitle{font-size:14px;color:var(--muted);margin-bottom:23px}.primary{background:var(--green);border-color:var(--green);color:#fff9e8;width:100%;text-align:center}.primary:hover{background:#326351}.secondary{width:100%;margin-top:9px;background:transparent}.text-button{border:0;background:transparent;padding:10px 0;text-decoration:underline;font-size:12px}.card{border:1px solid var(--line);border-radius:14px;padding:16px;background:#faf6ea;margin:13px 0}.card p:last-child{margin-bottom:0}.card small{display:block;font-size:11px;margin-top:5px}.card .value{font-family:Georgia,serif;font-size:30px;line-height:1.2}.activity{display:flex;align-items:center;gap:14px;width:100%;text-align:left;margin:9px 0;padding:13px 14px;background:#faf6ea;min-height:67px}.activity .symbol{font-size:22px;min-width:29px}.activity strong{display:block;font-size:14px}.activity small{display:block;margin-top:4px;font-size:11px;font-weight:400}.activity .arrow{margin-left:auto;color:#9a9b83}.activity.done{opacity:.6}.section-label{font-size:10px;letter-spacing:1.8px;font-weight:750;color:var(--muted);margin:22px 0 12px}.tag{display:inline-block;font-size:9px;letter-spacing:.6px;padding:4px 6px;background:#e7ebdc;border-radius:5px;color:#385546}.tag.gold{background:#f3d68f;color:#705120}.notice{padding:12px 14px;border-left:3px solid var(--gold);font-size:12px;background:#f2e8c9;line-height:1.5;margin:14px 0}.error{border-color:#bd5036;background:#f9e1d4;color:#81321f}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.actions{display:flex;gap:9px;margin:12px 0}.actions>*{flex:1}.metric{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.bar{height:7px;background:#dddccb;border-radius:5px;overflow:hidden;margin:12px 0}.bar>i{display:block;height:100%;background:var(--orange);border-radius:5px;transition:width .15s}.clock{font-variant-numeric:tabular-nums;color:var(--orange);font-size:13px;font-weight:700}.item-picture{width:100%;height:145px;object-fit:contain;background:#e7e6d8;border-radius:9px;padding:10px}.find-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.find-row img{width:48px;height:48px;object-fit:contain;border-radius:6px;background:#e7e6d8}.find-row input{width:21px;height:21px;accent-color:var(--green);flex-shrink:0}.find-row label{flex:1}.find-row strong{display:block}.find-row small{display:block;font-size:10px;margin-top:4px}.money-input{display:flex;align-items:center;border:1px solid #aeb6a0;border-radius:9px;background:#fffdf5;padding-left:13px;font-size:20px;margin:12px 0}.money-input input{width:100%;border:0;padding:12px;background:transparent;color:var(--ink);outline-offset:0}.repair-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:18px 0}.repair-target{aspect-ratio:1;background:#dce1d0;border-radius:50%;font-size:19px}.repair-target.hit{background:#a5b49a;color:#39553b;opacity:.6}.phone{background:#f2d6ac;border:2px solid #c07839;width:100%;margin:12px 0;font-size:14px}.phone.ringing{animation:ring .3s alternate infinite;background:#ebbc62}.sort-item{width:100%;font-size:22px;padding:23px;margin:14px 0;border-width:3px}.day-dots{display:flex;gap:5px;margin-top:10px}.day-dots span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e0e1d0;font-size:10px}.day-dots .yes{background:#567b62;color:white}.danger{color:#932f1b;border-color:#d7ad9c}.notebook footer{display:flex;justify-content:space-between;gap:6px;padding:13px 23px;font-size:10px;border-top:1px solid var(--line);color:var(--muted)}dialog{border:1px solid #d6d0ba;border-radius:20px;padding:27px;max-width:min(440px,calc(100vw - 30px));max-height:90dvh;color:var(--ink);background:var(--paper);box-shadow:0 24px 70px #15231a55}dialog::backdrop{background:#172f2880;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;gap:20px}.dialog-head button{border:0;background:none;padding:0;min-width:44px;font-size:25px}.file-button{display:block;text-align:center;margin-top:10px}.file-button input{display:none}.week-options{display:flex;gap:5px;margin:12px 0;flex-wrap:wrap}.week-options label{font-size:12px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}#toast{position:fixed;left:50%;bottom:23px;transform:translate(-50%,20px);max-width:calc(100vw - 28px);background:#203d35;color:#fff9e5;padding:13px 19px;border-radius:11px;opacity:0;pointer-events:none;transition:all .2s;z-index:20;font-size:13px;box-shadow:0 5px 22px #193c2840}#toast.show{transform:translate(-50%,0);opacity:1}#scene-loading{position:absolute;inset:0;display:grid;place-items:center;background:#bcc4a9;font-family:Georgia,serif;font-size:24px;padding:24px;text-align:center}.log{font-size:12px;border-bottom:1px solid var(--line);padding:10px 0}.stock-controls{position:sticky;top:-27px;background:var(--paper);padding:12px 0;z-index:2}.checkline{display:flex;gap:9px;align-items:center;font-size:13px;margin:16px 0}.checkline input{width:20px;height:20px;accent-color:var(--green)}.progress-steps{display:flex;gap:6px}.progress-steps span{flex:1;background:#dedfcc;height:5px;border-radius:5px}.progress-steps span.done{background:#4f765c}.world-paused{filter:blur(3px)}@keyframes ring{from{transform:rotate(-1deg)}to{transform:rotate(1deg)}}@media(pointer:coarse){.touch-controls{position:absolute;display:block;left:14px;bottom:14px;text-align:center}.touch-controls button{width:43px;height:43px;padding:0;min-height:43px;background:#f7f0dbbe;border-color:#fff9;touch-action:none;margin:2px}.touch-controls>button{margin-bottom:0}.scene-caption{bottom:120px;font-size:15px}.scene-caption small{display:none}}@media(max-width:800px){.top{height:65px;padding:9px 15px;gap:14px}.brand strong{font-size:23px}.brand small{font-size:7px;letter-spacing:1.6px}.hud{height:62px;padding:9px 15px;gap:10px}.hud b{font-size:16px}.hud small{font-size:8px;letter-spacing:.7px}.hud b span{font-size:10px}main{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 127px)}.world{height:38dvh;min-height:230px;max-height:380px;flex-shrink:0}.notebook{border-left:0;border-top:1px solid var(--line);overflow:visible;min-height:55dvh}.tabs{position:sticky;top:0;z-index:5;background:var(--paper);padding:4px 15px 0;justify-content:space-around}.tabs button{padding:10px 12px 13px}#panel{padding:23px 22px;overflow:visible;min-height:300px}.scene-top{top:12px;left:12px;right:12px}.pill{padding:10px 12px;font-size:8px}.scene-caption{left:17px;max-width:55%;bottom:18px}.scene-caption span{font-size:19px}.scene-caption small{display:none}.interact{right:12px;bottom:15px}.touch-controls~.interact{bottom:15px}.touch-controls{left:9px;bottom:9px}.touch-controls button{width:36px;height:36px;min-height:36px;margin:1px}.scene-caption{bottom:101px}.notebook footer{padding:16px 22px}h1{font-size:36px}.stock-controls{top:45px}.activity{min-height:66px}.hud div:first-child{min-width:0}.back{font-size:11px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:800px){.touch-controls button{width:44px;height:44px;min-height:44px}.scene-caption{bottom:116px}}
