:root{font-family:DM Sans,Inter,Noto Sans CJK SC,system-ui,sans-serif;color:#fff9eb;font-synthesis:none;--green: #324d40;--rust: #9d4e31;--line: #dadccf;--paper: #fffdf5;--gold: #f7e0ab;--glass: rgba(31,40,32,.81);--edge: rgba(251,246,222,.32);--x: max(clamp(18px,3.4vw,60px),env(safe-area-inset-left));--y: max(clamp(16px,3.8vh,40px),env(safe-area-inset-top));--bottom: max(clamp(18px,3.8vh,40px),env(safe-area-inset-bottom))}*{box-sizing:border-box}html,body,#app,main{width:100%;height:100%;margin:0;overflow:hidden}body{background:#344337}button,input,textarea,select{font:inherit}button{color:inherit;background:none;border:0;cursor:pointer;touch-action:manipulation}button,select{-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #efb85b;outline-offset:3px}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}svg{flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.game,.viewport,#world,#hud{position:absolute;inset:0;width:100%;height:100%}.game{height:100dvh;isolation:isolate}#world{display:block;touch-action:none;outline:none}#hud{pointer-events:none;z-index:2}#hud:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(153deg,rgba(22,35,29,.57),transparent 27%),linear-gradient(0deg,rgba(15,25,19,.52),transparent 25%)}#hud button,#hud .needs,#hud #street-panel{pointer-events:auto}.place,.tools,.scene-switch,.companion,.care,#street-panel,#hud-toggle,#metrics{position:absolute}.place{top:var(--y);left:var(--x);text-shadow:0 1px 5px #14261ed9}.place-location,.scene-info,.scene-info span,.tools,.views,.speaker,.travel,.transform,.care-grid,.street-options{display:flex;align-items:center}.place-location{font-size:11px;font-weight:650;letter-spacing:.13em;gap:5px;color:#fff2cf}h1{font:600 clamp(31px,3.8vw,56px)/1.2 "Noto Serif CJK SC","Songti SC",Georgia,serif;letter-spacing:.075em;margin:.09em 0 .2em}.scene-info{font-size:12px;gap:9px;font-weight:580}.scene-info span{gap:4px}.scene-info i{width:2px;height:2px;border-radius:50%;background:currentColor}.travel,.views,.circle,.speaker .signet,.action-icon,.transform,#street-panel,.needs{background:var(--glass);border:1px solid var(--edge);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.travel{gap:7px;border-radius:28px;padding:0 12px;min-height:37px;font-size:12px;font-weight:600;margin-top:15px;color:#fff9ea}.travel svg:first-child{color:var(--gold)}.tools{top:var(--y);right:calc(var(--x) + 52px);gap:8px}.circle{display:grid;width:43px;height:43px;border-radius:50%;place-items:center;color:#fff8e6;box-shadow:0 2px 16px #14251f21}#hud-toggle{top:var(--y);right:max(var(--x),env(safe-area-inset-right));z-index:3}.scene-switch{top:calc(var(--y) + 60px);right:var(--x)}.views{padding:3px;gap:2px;border-radius:30px}.views button{min-height:31px;border-radius:20px;display:flex;gap:4px;align-items:center;justify-content:center;padding:0 9px;color:#eae9d8;font-size:12px}.views button[aria-pressed=true]{background:#f4e8c9;color:#37483b;font-weight:650}.companion{left:var(--x);bottom:var(--bottom);width:min(38vw,440px);text-shadow:0 1px 5px #17221df0}.speaker{padding:0;gap:8px;max-width:100%;text-shadow:inherit}.signet{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--gold)}.name{font:600 26px/1.1 Baskervville,Georgia,serif;letter-spacing:.015em}#routine{font-size:11px;padding:3px 7px;border-radius:12px;line-height:1.5;background:#222b20a6;color:#f9edd3;white-space:nowrap}.speaker>svg{transform:rotate(-90deg);color:#f9edd3}.speaker[aria-expanded=true]>svg{transform:rotate(90deg)}#quote{margin:9px 0 0;padding:0 0 0 11px;border-left:2px solid #edc986;color:#fffbed;font:550 clamp(14px,1.25vw,18px)/1.65 "Noto Serif CJK SC","Songti SC",serif;text-shadow:0 1px 3px #102116,0 0 8px #1f251cdc}.needs{position:absolute;bottom:calc(100% + 12px);left:0;width:235px;padding:15px 16px 8px;border-radius:18px;text-shadow:none}.needs h2,#street-panel h2{font-size:13px;margin:0 0 10px;color:var(--gold);font-weight:650}.hand{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;margin:2px 0 4px;border:1px solid var(--edge);border-radius:18px;color:var(--gold);font-size:12px}.need{display:flex;gap:8px;align-items:center;margin:8px 0;font-size:12px}.need span{display:flex;gap:5px;align-items:center}.need output{min-width:20px;text-align:right;font-variant-numeric:tabular-nums}.track{height:4px;flex:1;overflow:hidden;border-radius:4px;background:#fff3}.track b{background:var(--ink);filter:brightness(1.42);display:block;height:100%;border-radius:4px}#attitude{color:#dedfc6;font-size:11px;margin:10px 0 5px}.care{right:var(--x);bottom:var(--bottom);display:flex;align-items:flex-end;flex-direction:column;gap:13px}.care-grid{gap:clamp(5px,1.1vw,17px)}.care-btn{display:flex;align-items:center;flex-direction:column;gap:6px;padding:0 2px;min-width:46px;color:#fffbed;text-shadow:0 1px 4px #102116}.action-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;box-shadow:inset 0 0 0 3px #ffffff07,0 2px 10px #18251a32}.care-btn strong{font-size:12px;font-weight:650;line-height:1.4;white-space:nowrap}.transform{min-height:40px;padding:0 14px;gap:7px;border-radius:26px;background:#f4e3bc;color:#374332;border-color:#dac49b;font-size:13px;font-weight:700;box-shadow:0 2px 10px #17261d38}#form-label{font-weight:490;font-size:10px;padding-left:8px;border-left:1px solid #a5a48b}#street-panel{top:calc(var(--y) + 153px);left:var(--x);border-radius:16px;padding:13px;max-width:265px;max-height:35vh;overflow:auto}#street-panel div+div>h2{margin-top:12px}.street-options{flex-wrap:wrap;gap:6px;font-size:12px}.street-options button{display:flex;align-items:center;gap:3px;border:1px solid #f1e3b85c;border-radius:20px;font-size:12px;min-height:34px;padding:5px 8px}.street-options button[aria-pressed=true]{color:#253b32;background:#ecdab7}.neighbor small{display:none}#metrics,#scene-error{color:#fff9eb;background:#17261ee6;border:1px solid var(--edge);border-radius:12px;padding:9px 12px;font-size:12px;z-index:3}#metrics{top:calc(var(--y) + 110px);right:var(--x);white-space:pre;pointer-events:none}#scene-error{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);max-width:75%;text-align:center}@media(hover:hover){.circle:hover,.travel:hover,.care-btn:hover .action-icon,.views button:hover:not([aria-pressed=true]){background:#475a44}.transform:hover{background:#ffedbf}}@media(max-width:720px){:root{--x: max(14px,env(safe-area-inset-left));--y: max(14px,env(safe-area-inset-top));--bottom: max(14px,env(safe-area-inset-bottom)) }.tools{gap:5px;right:calc(var(--x) + 42px)}.circle{width:37px;height:37px}.place-location{font-size:10px}h1{font-size:31px;margin:.09em 0 .19em}.scene-info{font-size:10px;gap:5px}.scene-info svg{width:12px}.travel{min-height:35px;margin-top:9px}.scene-switch{top:calc(var(--y) + 48px)}.views{flex-direction:column;border-radius:23px}.views button{min-width:34px;min-height:34px;padding:0 8px}.views button span{font-size:11px}.companion{width:min(calc(100% - 36px),390px);bottom:calc(var(--bottom) + 78px)}.speaker .signet{width:31px;height:31px}.name{font-size:23px}#quote{font-size:14px;line-height:1.5;margin-top:5px;padding-right:2px}.care{left:var(--x);right:var(--x);gap:0;align-items:stretch}.care-grid{justify-content:space-between;gap:1px}.care-btn{padding:0;min-width:42px;gap:4px}.care-btn strong{font-size:11px}.action-icon{width:40px;height:40px}.action-icon svg{width:20px;height:20px}.transform{position:absolute;right:0;bottom:calc(100% + 109px);min-height:36px;padding:0 10px;font-size:12px}#form-label{display:none}#street-panel{top:calc(var(--y) + 126px);max-width:calc(100% - 125px);max-height:22vh;padding:9px}#street-panel h2{margin:0 0 5px}#street-panel div+div>h2{margin-top:7px}#metrics{top:calc(var(--y) + 183px)}}@media(max-height:530px)and (orientation:landscape){:root{--y: 9px;--bottom: 10px}.scene-switch{top:calc(var(--y) + 46px)}h1{font-size:26px}.place-location,#form-label{display:none}.care{left:auto;gap:5px}.transform{position:static;align-self:flex-end}.companion{width:35vw;bottom:var(--bottom)}.views{flex-direction:row}.action-icon{width:34px;height:34px}.care-btn{min-width:40px}#street-panel{top:95px;max-height:32vh}}dialog{width:min(455px,calc(100% - 32px));border-radius:18px;border:1px solid #d2d2c2;padding:23px;background:var(--paper);color:#344638;box-shadow:0 22px 90px #1a2e2740;max-height:87dvh}dialog::backdrop{background:#21302570;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}.dialog-head .square{border:0;background:#f0f0e7;width:30px;height:30px}dialog h3{font-size:14px;margin:18px 0 8px}.choice{border:1px solid var(--line);background:#f8f7f0;border-radius:12px;display:flex;width:100%;align-items:center;gap:12px;padding:12px;text-align:left;margin-top:8px}.choice>span:first-child{color:var(--rust)}.choice strong,.choice small{display:block}.choice small,.muted{color:#748073;font-size:12px;line-height:1.6}.choice>svg{margin-left:auto}.field{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;font-size:14px}.field select,dialog input:not([type=checkbox]),dialog textarea{border:1px solid #cccfc0;background:#fff;border-radius:8px;padding:8px;color:#304638}.field select{min-width:105px}.field input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}dialog hr{border:0;border-top:1px solid var(--line);margin:16px 0}.button-row{display:flex;gap:8px;flex-wrap:wrap}.light,.primary{padding:9px 14px;border-radius:8px;font-size:13px;font-weight:600}.light{background:#f0f0e7}.primary{background:#405e48;color:#fff}dialog textarea,dialog input.fill{display:block;width:100%;margin:6px 0 12px}dialog textarea{resize:vertical}#settings-result,#chat-result{color:#8b5533;font-size:13px}.journal{padding:0;list-style:none;font-size:14px}.journal li{padding:10px 0;border-top:1px solid var(--line)}.journal small{display:block;color:#818672;font-size:11px;margin-bottom:4px}.toast{position:fixed;z-index:6;bottom:22px;left:50%;transform:translate(-50%);border-radius:20px;background:#334b3c;color:#fff;padding:9px 18px;font-size:13px;box-shadow:0 3px 15px #0002;max-width:85vw;text-align:center}.dialog-head h2{margin:0;font:650 22px "Noto Serif CJK SC",serif}.square{display:grid;place-items:center;border-radius:50%}.dialog-head .square{width:38px;height:38px}dialog{max-height:min(85dvh,740px);overscroll-behavior:contain}.toast{bottom:auto;top:calc(var(--y) + 54px);max-width:min(78vw,420px)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
