*{box-sizing:border-box}
:root{font-family:ui-sans-serif,system-ui,sans-serif;color:#263e35;background:#e7e5d9;font-synthesis:none;--hud-gap:12px;--dock-height:54px;--bar-min:0px;--hud-bottom:max(12px,env(safe-area-inset-bottom,0px),var(--bar-min));--hud-top:max(12px,env(safe-area-inset-top,0px))}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{margin:0}button{-webkit-tap-highlight-color:transparent;font:inherit;cursor:pointer;border:0;color:inherit}button:focus-visible,canvas:focus-visible{outline:2px solid #e5c980;outline-offset:5px}button:disabled{cursor:default;opacity:.5}[hidden]{display:none!important}.symbols{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#app{position:fixed;top:var(--vv-top,0px);left:0;right:0;height:var(--vv-height,100dvh);min-height:300px;overflow:hidden;background:radial-gradient(ellipse at 50% 47%,#f5f1e3 0,#e6e5d9 55%,#cad1c3 100%)}#scene{width:100%;height:100%;display:block;touch-action:none;outline:none}
#home-link{position:absolute;top:var(--hud-top);left:max(12px,env(safe-area-inset-left,0px));z-index:5;color:#f4efdc;text-decoration:none;font-size:12px;font-weight:650;padding:8px 12px;border-radius:12px;background:#243d32c9;backdrop-filter:blur(12px)}#home-link:focus-visible{outline:2px solid #e5c980;outline-offset:3px}
.dock{position:absolute;bottom:var(--hud-bottom);left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:4px;padding:6px;border:1px solid #f4f0da22;border-radius:18px;background:#243d32c9;color:#f4efdc;box-shadow:0 6px 25px #18302618;backdrop-filter:blur(12px);opacity:.72;transition:opacity .2s}
.dock:hover,.dock:focus-within{opacity:1}.icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;padding:10px;background:transparent;border-radius:12px;color:inherit}.icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.icon:hover{background:#ffffff12}.icon[aria-pressed=true]{background:#f7ecc723;color:#ffe7ae}.divider{width:1px;height:20px;background:#f4efdc20;margin:0 3px}.view-controls{display:flex;gap:3px}
.interaction{position:absolute;bottom:calc(var(--hud-bottom) + var(--dock-height) + var(--hud-gap));left:50%;transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:9px;max-width:90%;padding:10px 15px;border-radius:24px;background:#243d32dc;color:#fff6dc;box-shadow:0 4px 16px #172a2715;font-size:12px;white-space:nowrap}.interaction b{font-weight:450}kbd{font:10px ui-sans-serif,system-ui,sans-serif;border:1px solid #fff5d850;border-radius:5px;min-width:20px;padding:3px;text-align:center}.toast{position:absolute;bottom:calc(var(--hud-bottom) + var(--dock-height) + var(--hud-gap) + 48px);left:50%;transform:translateX(-50%);font-size:12px;background:#243d32e8;color:#fff6dc;padding:10px 17px;border-radius:25px;max-width:88%;text-align:center;pointer-events:none;opacity:0;transition:opacity .2s}
.loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#e7e5d9f5;z-index:10;text-align:center;padding:30px}.loading h2{font:26px Georgia,serif}.loading p{font-size:13px;max-width:340px;line-height:1.6}.loading button{background:#294b3d;color:#fff;padding:12px 20px;border-radius:10px}.spinner{width:25px;height:25px;border-radius:50%;border:2px solid #899d8350;border-top-color:#35583d;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
#help{position:absolute;z-index:5;bottom:calc(var(--hud-bottom) + var(--dock-height) + var(--hud-gap));left:50%;transform:translateX(-50%);width:310px;max-width:calc(100% - 24px);max-height:calc(var(--vv-height,100dvh) - 120px);overflow:auto;padding:22px;border-radius:20px;background:#203a31f5;color:#f4efdc;box-shadow:0 12px 50px #15292025;backdrop-filter:blur(15px);font-size:12px;line-height:1.6}#help h2{font-size:14px;font-weight:500;margin:7px 0 22px}#close-help{float:right;width:32px;height:32px;margin:-2px -5px 0 0}dl{margin:0}dl div{display:flex;justify-content:space-between;margin:13px 0}dt{letter-spacing:1px;color:#e6d8ae;font-size:11px}dd{margin:0;color:#d2dacd}#help p{margin:22px 0;color:#d2dacd}.connection{display:flex;align-items:center;gap:7px;border-top:1px solid #ffffff15;padding-top:14px;font-size:10px;color:#bfcdbd}#network-dot{width:5px;height:5px;border-radius:50%;background:#c5a469}#network-dot.online{background:#9ebd8e}#company{margin-left:auto}
@media(pointer:fine){body[data-moving=true] .dock:not(:hover):not(:focus-within){opacity:.3}}
@media(max-width:600px){.dock{padding:5px;gap:2px;border-radius:17px}.icon{width:42px;height:44px;padding:10px}.divider{margin:0 1px}.view-controls{gap:1px}.interaction{font-size:12px}.toast{font-size:11px}}
@media(pointer:coarse),(max-width:760px){:root{--bar-min:48px}.interaction{left:auto;right:max(12px,env(safe-area-inset-right,0px));transform:none;max-width:min(46%,220px);min-height:44px;white-space:normal}.interaction kbd{display:none}.dock{opacity:.88}.dock,.interaction{touch-action:none;user-select:none}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}.dock,.toast{transition:none}}

#joystick{position:absolute;width:112px;height:112px;margin:-56px 0 0 -56px;border:1px solid #fff6dc66;border-radius:50%;background:#243d321a;box-shadow:0 0 0 1px #243d3212;pointer-events:none}
#joystick-knob{position:absolute;left:36px;top:36px;width:38px;height:38px;border-radius:50%;border:1px solid #fff6dc80;background:#fff6dc38;box-shadow:0 2px 10px #18302618}
#wardrobe{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;justify-content:flex-end;pointer-events:none}
#wardrobe[hidden]{display:none!important}
.wardrobe-stage{flex:1;pointer-events:none;display:flex;align-items:flex-start;justify-content:center;padding:max(56px,calc(var(--hud-top) + 44px)) 16px 0}
.wardrobe-stage p{margin:0;padding:8px 12px;border-radius:999px;background:#243d3280;color:#fff6dc;font-size:11px}
.wardrobe-panel{pointer-events:auto;max-height:min(52dvh,420px);overflow:auto;padding:14px 16px calc(14px + var(--hud-bottom));border-radius:22px 22px 0 0;background:#243d32f5;color:#fff6dc;backdrop-filter:blur(16px);box-shadow:0 -12px 40px #15292040}
.wardrobe-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.wardrobe-panel strong{font-size:16px;font-weight:600}
.wardrobe-done{background:#e6cfaa;color:#243d32;min-height:40px;padding:8px 16px;border-radius:12px;font-weight:650}
#look-account{color:#d2dacd;font-size:11px;line-height:1.4;margin:0 0 12px}
.wardrobe-tabs{display:flex;gap:6px;margin-bottom:12px}
.wardrobe-tabs button{flex:1;min-height:40px;border-radius:12px;background:#ffffff12;color:inherit;font-size:13px}
.wardrobe-tabs button[aria-selected=true]{background:#f7ecc723;color:#ffe7ae}
.wardrobe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.wardrobe-card{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:72px;padding:10px 6px;border-radius:14px;background:#ffffff10;color:inherit;font-size:11px}
.wardrobe-card.on{outline:2px solid #e5c980;outline-offset:1px;background:#f7ecc718}
.wardrobe-swatch{width:28px;height:28px;border-radius:9px;background:var(--swatch,#efe3c4);box-shadow:inset 0 -2px 0 #00000022}
.wardrobe-label{margin:12px 0 8px;color:#dbc6b0;font-size:11px}
.look-swatches{display:flex;flex-wrap:wrap;gap:6px}.look-swatches button{width:36px;height:36px;min-height:36px;border-radius:10px;background:var(--swatch,#ffffff18);color:inherit;font-size:10px;padding:0}
.look-swatches button.on{outline:2px solid #e5c980;outline-offset:2px}
@media(min-width:820px){
  #wardrobe{flex-direction:row;align-items:stretch;justify-content:flex-end}
  .wardrobe-stage{align-items:flex-end;padding:0 0 calc(24px + var(--hud-bottom)) 24px;justify-content:flex-start}
  .wardrobe-panel{width:360px;max-height:none;margin:max(16px,var(--hud-top)) max(16px,env(safe-area-inset-right,0px)) max(16px,var(--hud-bottom));border-radius:22px}
}
body[data-looking=true] .dock,body[data-looking=true] .interaction,body[data-looking=true] #home-link,body[data-looking=true] #help{display:none}
#shop-editor{position:absolute;z-index:4;top:max(16px,var(--hud-top));right:max(16px,env(safe-area-inset-right,0px));width:320px;max-width:calc(100% - 32px);max-height:calc(var(--vv-height,100dvh) - 125px);overflow:auto;padding:16px;border-radius:18px;background:#243d32ed;color:#fff6dc;backdrop-filter:blur(12px);font-size:12px;touch-action:pan-y}
#shop-editor header{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}#shop-editor strong{font-weight:500;font-size:14px}#selected-prop{color:#dbc6b0;font-size:11px}#prop-catalog{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}#shop-editor button{background:#ffffff12;color:inherit;min-height:44px;padding:8px 10px;border-radius:9px}#prop-catalog button{flex:0 0 95px;font-size:11px}#shop-editor p{color:#d2dacd;font-size:11px;line-height:1.4;margin:8px 0}.edit-actions{display:flex;gap:4px}.edit-actions button{flex:1;min-width:0;font-size:20px}#shop-editor footer{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}#shop-editor #save-shop{background:#e6cfaa;color:#243d32}
body[data-editing=true] .dock,body[data-editing=true] .interaction,body[data-editing=true] #wardrobe{display:none}body[data-editing=true] .toast{bottom:calc(var(--hud-bottom) + 12px)}
body[data-looking=true] #look-btn{background:#f7ecc723;color:#ffe7ae}
@media(max-width:600px){body[data-zone=manicure] .dock{gap:0;padding:4px}.dock .icon{width:38px}.dock .view-controls{gap:0}.dock .divider{margin:0}#shop-editor{padding:12px;max-height:245px}#shop-editor header{margin-bottom:6px}}
