/* Virtual World — game-only styles (loaded only when the page opens). Sizes are in the 1280×634 logical frame. */
.vw-stage2{position:relative;width:100%;overflow:hidden;background:#666;border-radius:10px}
.vw-frame{position:absolute;left:0;top:0;width:1280px;height:634px;transform-origin:0 0;font-family:system-ui,"Segoe UI",sans-serif;color:#fff;user-select:none}
.vw-canvas{position:absolute;inset:0;width:1280px;height:634px;display:block;cursor:pointer}
.vw-canvas.is-dragging{cursor:grabbing}
.vw-turn{position:absolute;left:0;top:0;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.vw-turn:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.vw-panel{background:rgba(24,25,30,.72);border:1px solid rgba(255,255,255,.09);box-shadow:0 2px 8px rgba(0,0,0,.18);backdrop-filter:blur(6px)}
.vw-room{position:absolute;left:8px;top:8px;display:flex;gap:8px;align-items:center;padding:4px 12px 4px 4px;border-radius:26px}
.vw-portrait{width:40px;height:40px;border-radius:50%;box-shadow:0 0 0 2px rgba(255,255,255,.85)}
.vw-room-name{font-size:14px;font-weight:700;letter-spacing:.1px}
.vw-room-sub{font-size:10px;opacity:.75;margin-top:1px}
.vw-exit{position:absolute;right:10px;top:10px;font:600 11px system-ui,sans-serif;color:#fff;border-radius:14px;padding:5px 12px;cursor:pointer}
.vw-exit:hover{background:rgba(40,41,48,.85)}
.vw-chat{position:absolute;left:8px;bottom:30px;width:290px}
.vw-chat-tab{display:inline-block;background:rgba(24,25,30,.78);font-size:11px;font-weight:700;padding:3px 22px 3px;border-radius:6px 6px 0 0}
.vw-chat-row{display:flex;align-items:center;background:#fff;border-radius:0 8px 8px 8px;padding:3px 3px 3px 8px;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.vw-chat-row input{flex:1;min-width:0;border:0;outline:0;font-size:12px;color:#222;background:transparent;height:16px}
.vw-chat-row input::placeholder{color:#9a9a9a}
.vw-chat-row button{font:700 10px system-ui,sans-serif;color:#fff;background:linear-gradient(#4fd39f,#2fb884);border:0;border-radius:9px;padding:3px 11px;cursor:pointer}
.vw-emotes{position:absolute;left:8px;bottom:2px;z-index:1;display:flex;gap:4px}
.vw-hud-j09 .vw-emotes{bottom:7px}
.vw-emotes button{box-sizing:border-box;display:grid;place-items:center;width:26px;height:26px;padding:0;border:2px solid #101114;border-radius:50%;background:radial-gradient(circle at 50% 35%,#535051,#29282c 65%,#1b1a1e);box-shadow:0 1px 2px #111a;cursor:pointer}
.vw-emotes button:hover{background:radial-gradient(circle at 50% 35%,#70656a,#373238 66%,#27242a)}
.vw-emotes svg{display:block;width:22px;height:22px}
.vw-emotes button{position:relative}
.vw-emote-label{display:none;position:absolute;left:-2px;bottom:calc(100% + 6px);padding:3px 7px;border:1px solid #727680;border-radius:4px;background:#20232a;color:#fff;font:600 11px/1.2 system-ui,sans-serif;white-space:nowrap;pointer-events:none}
.vw-emotes button:hover .vw-emote-label,.vw-emotes button:focus-visible .vw-emote-label{display:block}
.vw-emotes :focus-visible{outline:2px solid #fff;outline-offset:2px}
.vw-actions{position:absolute;right:6px;bottom:6px;display:flex;gap:5px;align-items:flex-end}
.vw-act{width:58px;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:linear-gradient(#3a3b42,#26272c);border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;font:700 11px system-ui,sans-serif;cursor:pointer;padding:0;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.vw-act:hover{background:linear-gradient(#45464e,#2d2e34)}
.vw-act svg{width:28px;height:28px}
.vw-zoom{display:flex;flex-direction:column;gap:4px;margin-right:3px}
.vw-zoom button{width:19px;height:19px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:#2b2c32;color:#fff;font:700 12px/1 system-ui,sans-serif;cursor:pointer;padding:0}
.vw-toast{position:absolute;left:50%;bottom:80px;transform:translateX(-50%);background:rgba(24,25,30,.88);font-size:12px;padding:6px 14px;border-radius:14px}
.vw-toast[hidden]{display:none}
.vw-status{display:grid;place-items:center;min-height:200px;color:#8a8d9e;font-size:14px}
.vw-status[hidden]{display:none}

/* J09 opt-in: compact edge bands measured in the logical frame, with original Kora artwork. */
.vw-hud-j09 .vw-room{left:6px;top:5px;width:166px;height:40px;box-sizing:border-box;gap:7px;padding:2px;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}
.vw-hud-j09 .vw-portrait{width:36px;height:36px;flex:none}
.vw-hud-j09 .vw-room-name{font-size:13px}
.vw-hud-j09 .vw-room-sub{font-size:10px;opacity:1}
.vw-hud-j09 .vw-chat{left:8px;bottom:39px;width:290px}
.vw-hud-j09 .vw-chat-tab{height:16px;display:block;box-sizing:border-box;color:#fff;border:0;font:700 10px/16px system-ui,sans-serif;padding:0 20px;cursor:pointer}
.vw-hud-j09 .vw-chat-row{height:22px;box-sizing:border-box}
.vw-chat-log{position:absolute;bottom:100%;inset-inline:0;max-height:120px;overflow:auto;box-sizing:border-box;padding:5px 8px;background:#21252a;color:#fff;font-size:11px;overflow-wrap:anywhere;border-radius:6px}
.vw-chat-log[hidden]{display:none}
.vw-hud-main,.vw-hud-tools,.vw-hud-camera{position:absolute;display:flex;align-items:center}
.vw-hud-main{bottom:7px;right:6px;gap:5px}
.vw-hud-j09 .vw-act{gap:3px;border-radius:6px;background:linear-gradient(#343b42,#20262c);font-size:10px}
.vw-hud-j09 .vw-act:hover{background:#45515a}
.vw-hud-j09 .vw-act svg{width:38px;height:38px;flex:none;filter:drop-shadow(0 1px 1px #1118)}
.vw-hud-main .vw-act{width:58px;height:58px}
.vw-hud-tools{left:965px;bottom:72px;gap:7px;height:40px}
.vw-hud-room-id{width:67px;height:38px;display:grid;place-items:center;background:#20262c;border:1px solid #707980;box-sizing:border-box;border-radius:5px;font-size:10px;font-weight:650}
.vw-hud-tools .vw-act{width:40px;height:40px;font-size:9px;gap:1px}
.vw-hud-j09 .vw-hud-tools .vw-act svg{width:25px;height:25px}
.vw-hud-camera{right:8px;bottom:72px;height:40px;width:52px;gap:2px}
.vw-hud-camera .vw-zoom{gap:2px;margin:0}
.vw-hud-camera .vw-zoom button{width:18px;height:18px}
.vw-hud-pan{position:relative;width:32px;height:39px;flex:none}
.vw-hud-pan button{position:absolute;width:14px;height:13px;border:1px solid #79838c;border-radius:3px;background:#282e34;color:#fff;font:700 10px/1 system-ui,sans-serif;cursor:pointer;padding:0}
.vw-hud-pan button:nth-child(1){left:9px;top:0}
.vw-hud-pan button:nth-child(2){left:0;top:13px}
.vw-hud-pan button:nth-child(3){right:0;top:13px}
.vw-hud-pan button:nth-child(4){left:9px;bottom:0}
.vw-hud-j09 button:focus-visible{outline:2px solid #fff;outline-offset:2px}


.vw-frame.is-decorating :is(.vw-room,.vw-exit,.vw-chat,.vw-emotes,.vw-turn,.vw-actions,.vw-hud-tools,.vw-hud-camera,.vw-hud-main){visibility:hidden;pointer-events:none}
.vw-decor-preview,.vw-decor-controls,.vw-decor-camera,.vw-decor-context,.vw-decor-status{position:absolute;z-index:20}
.vw-frame [hidden]:is(.vw-decor-preview,.vw-decor-controls,.vw-decor-camera,.vw-decor-context,.vw-decor-status,.vw-decor-empty,.vw-decor-grid,.vw-decor-extra,.vw-decor-room-settings){display:none}
.vw-decor-controls [hidden]{display:none}
.vw-decor-preview{left:30px;top:25px;width:254px;min-height:431px;display:flex;flex-direction:column;color:#372b41;background:#f9f4fb;border:3px solid #332940;border-radius:10px;overflow:hidden;box-shadow:0 8px 24px #20132366;font-size:14px}
.vw-decor-preview header,.vw-decor-photo header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:repeating-linear-gradient(135deg,#32293e 0 9px,#3f334b 9px 16px);color:#fff;font-size:18px}
.vw-decor-preview header button{background:#65516e;color:white;border:1px solid #9c7ba2;border-radius:5px;font-weight:800}
.vw-decor-preview header{cursor:grab;touch-action:none;user-select:none}.vw-decor-preview header:active{cursor:grabbing}
.vw-decor-appearance:not([hidden]){display:grid;gap:4px;padding:7px 10px;font-weight:700;background:#f5eaf5}
.vw-decor-appearance select{width:100%;padding:5px 7px;border:1px solid #a489a9;border-radius:5px;background:#fff;color:#372b41;font:inherit}
.vw-decor-parts:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:5px 7px 8px;border:1px solid #bda6c0;border-radius:6px;font-size:12px}
.vw-decor-parts label{display:grid;gap:2px;font-weight:700}.vw-decor-parts select{width:100%;font:inherit}
.vw-decor-preview nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:6px;background:#5a4665}
.vw-decor-extra{display:flex;gap:6px;padding:5px 8px;background:#e1d0e5}.vw-decor-extra button{flex:1}
.vw-decor-preview :is(nav,.vw-decor-extra) button{border:0;border-radius:5px;background:#493750;color:#fff;padding:7px 2px;font-weight:700}
.vw-decor-preview :is(nav,.vw-decor-extra) button[aria-pressed=true]{background:#fff1f7;color:#7c3152}
.vw-decor-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:85px;align-content:start;gap:5px;min-height:240px;max-height:385px;overflow:auto;padding:7px;background:#e9ddec}
.vw-decor-preview{max-height:calc(100% - 48px)}
.vw-decor-grid{min-height:0}
.vw-decor-search{margin:5px 7px;color:#372b41;font:inherit}
.vw-decor-bottom [hidden]{display:none}
.vw-decor-grid button{position:relative;display:grid;justify-items:center;align-content:start;gap:2px;min-width:0;border:1px solid #c4abca;border-radius:6px;background:linear-gradient(#fff,#f8eff8);color:#382b44;padding:2px}
.vw-decor-grid button[aria-pressed=true],.vw-decor-grid button:hover:not(:disabled){border-color:#b75587;box-shadow:inset 0 0 0 1px #b75587;background:#fbe0ed}
.vw-decor-grid :is(canvas,img){width:44px;height:44px;object-fit:contain}.vw-decor-grid small{font-weight:700;font-size:11px;line-height:12px}.vw-decor-grid b{margin-top:1px;color:#684364;font-size:10px}
.vw-decor-bottom{display:grid;gap:6px;margin-top:auto;padding:9px 10px;background:#f5eaf5;color:#614d68}.vw-decor-empty{padding:8px 12px}
.vw-decor-controls{right:24px;top:23px;display:grid;justify-items:stretch;gap:6px}
.vw-decor-camera{right:24px;bottom:23px;display:grid;justify-items:end;gap:4px}
.vw-decor-pan{display:grid;grid-template-columns:repeat(3,31px);gap:3px}.vw-decor-pan button:first-child,.vw-decor-pan button:last-child{grid-column:2}.vw-decor-pan button:nth-child(2){grid-column:1;grid-row:2}.vw-decor-pan button:nth-child(3){grid-column:3;grid-row:2}
.vw-decor-zoom{display:flex;gap:4px}
.vw-decor-controls button,.vw-decor-camera button,.vw-decor-context button,.vw-decor-bottom button,.vw-decor-photo button{padding:7px 10px;border:1px solid #755170;border-radius:7px;background:linear-gradient(#73566f,#4a364e);color:#fff;font-weight:800;cursor:pointer}
.vw-decor-camera button{min-width:31px;padding:5px}.vw-decor-controls [data-decor-expand]{background:linear-gradient(#659b47,#356625)}
.vw-decor-controls button[data-decor-end],.vw-decor-photo button[data-photo=use]{background:linear-gradient(#da648e,#a93e6d);border-color:#9e3b63}.vw-decor-controls button:disabled,.vw-decor-context button:disabled,.vw-decor-grid button:disabled{opacity:.48;cursor:default}
.vw-decor-context{display:flex;gap:4px;transform:translate(-50%,-100%);white-space:nowrap}.vw-decor-context button{border-radius:40px;box-shadow:0 2px 5px #23182388}.vw-decor-context button:hover:not(:disabled){background:#b04974}
.vw-decor-status{bottom:17px;left:50%;transform:translateX(-50%);padding:7px 13px;border-radius:8px;background:#302537e6;color:#fff1f8;font-weight:650;pointer-events:none;white-space:nowrap}
.vw-decor-photo{border:3px solid #30243b;border-radius:12px;background:#fff9fd;padding:0;text-align:center;color:#342a3a;box-shadow:0 10px 50px #170b1ba6}.vw-decor-photo::backdrop{background:#25133177}.vw-decor-photo>div{padding:8px 20px 15px}.vw-decor-photo p{margin:7px 0}.vw-decor-photo img{display:block;width:220px;height:220px;object-fit:cover;margin:auto;border-radius:8px}.vw-decor-photo button{margin:2px}.vw-decor-photo button[data-photo=own]{display:block;margin:6px auto 0;background:none;color:#57334d;border:0;text-decoration:underline;box-shadow:none}
