/* Shared scene chrome: restrained brass, deep slate, compact spacing. */
.ui-kicker{font-size:9px;letter-spacing:1.8px;color:#99acb8}
.hud-active{font-family:Inter,'Microsoft YaHei',sans-serif;background:#0d141f}
.hud-active .app{max-width:1440px;background:linear-gradient(140deg,#172434,#111c2a);border-radius:14px;padding:9px 14px}
.hud-active .top{margin-bottom:7px;gap:9px}.hud-active .top h1{font-size:17px;font-weight:600;letter-spacing:.6px;text-shadow:none;margin:3px 0;color:#e9d9bc}.hud-active .eyebrow{font-size:9px;letter-spacing:1.8px;color:#a1a88f}
.hud-active .badge{background:#ccb0770c;border:1px solid #c6ae7933;border-radius:20px;padding:5px 9px;font-size:10px;color:#cdbb98;box-shadow:none}
.hud-active button{font-size:11px;border-radius:7px;border:1px solid #ffffff1c;background:#ffffff06;box-shadow:none;color:#d9d9d2;padding:7px 10px;transition:background .12s,border-color .12s}
.hud-active button:hover{background:#ffffff12;border-color:#c3a77366}.hud-active button[aria-pressed=true]{background:#bca16a22;border-color:#bc9f6244;color:#e8ce9b}.hud-active button:focus-visible{outline:2px solid #d6b775;outline-offset:1px}
.hud-active .identity{background:#1d2b3a88;border:1px solid #ffffff10;border-radius:8px;padding:6px 9px;font-size:10px;gap:7px}.hud-active .identity a{font-size:10px;border:1px solid #ffffff16;border-radius:5px;padding:5px 7px;color:#c4b491}.hud-active .network{font-size:9px;color:#90b1ad}.hud-active #guest,.hud-active #logout{padding:5px 7px;font-size:10px}
.hud-active .stage{border:1px solid #c8aa713b;border-radius:11px;box-shadow:0 8px 28px #040c1733;overflow:hidden}.hud-active .scene-viewport{height:clamp(320px,calc(100dvh - 267px),640px);background:#111c29}.hud-active .scene-world{background:radial-gradient(ellipse,#233344,#101b29)}
.hud-active .hud-right{border-left:1px solid #ffffff15;background:linear-gradient(140deg,#203144,#142332)}
.hud-active .hud-right nav{padding:7px;gap:4px;border-bottom:1px solid #ffffff12}.hud-active .hud-right nav button{font-size:11px;padding:7px;border:0;background:transparent;color:#92a8b9}.hud-active .hud-right nav button[aria-pressed=true]{background:#bba06c22;color:#e3c995}
.hud-active .hud-right .chat{padding:9px}.hud-active .hud-right .controls{gap:3px}.hud-active .hud-right .controls button{padding:4px 6px;font-size:10px;border-radius:5px}.hud-active .hud-right #channel-note{font-size:9px;color:#92a6b4;line-height:1.65}.hud-active .hud-right .messages{font-size:11px;scrollbar-width:thin;scrollbar-color:#6d7c8655 transparent}.hud-active .message{border-color:#ffffff0c;padding:7px 0;line-height:1.65}.hud-active .message b{color:#cdb991;font-weight:500}
.hud-active .hud-right .nearby{padding:12px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}.hud-active .nearby strong{font-size:12px;color:#e1cda8;font-weight:500}.hud-active .nearby .dialogue-text{font-size:11px;line-height:1.8;color:#bbc9d1}.hud-active .nearby-menu{gap:4px;min-width:0}.hud-active .nearby-menu button{padding:8px 9px;font-size:11px;border:1px solid #ffffff16}.hud-active .nearby-menu button[aria-current=true]{background:#bda16d20;border-color:#d2b57355;outline:0;color:#f1d6a4}.hud-active .nearby-hint{font-size:9px;color:#849aab;line-height:1.7}.hud-active .nearby:after{display:none}
.hud-active #compose{background:#132130;border-color:#ffffff12;padding:6px 9px;gap:7px}.hud-active #compose input{background:transparent;border:0;border-radius:5px;padding:8px 5px;font-size:11px}.hud-active #compose select{background:#1d2d3d;border:0;border-radius:5px;color:#c5b58e;font-size:10px;padding:5px;max-width:100px}.hud-active #compose button{font-size:10px;padding:6px 10px;border-color:#bfa57733}
.hud-active .hud-bottom{background:linear-gradient(#1b2b3a,#142332);border-top:1px solid #bba06b30;padding:7px 11px;min-height:79px;gap:7px;grid-template-columns:1fr 126px 80px 126px 1fr}.hud-active .hud-tools{gap:4px}.hud-active .hud-tools button{padding:6px 7px;min-width:42px;line-height:1.5;font-size:10px}.hud-active .hud-tools small{font-size:9px;color:#8196a7}.hud-active .hud-portrait{border-radius:50%;width:53px;height:53px;border:1px solid #c1a06188;padding:0;background:radial-gradient(circle,#c2974240,#172b3c);box-shadow:0 0 13px #b68a2420}.hud-active .hud-person{font-size:9px;line-height:1.45;color:#cdbb97}.hud-active .hud-vital{font-size:9px;color:#92a5b2}.hud-active .hud-vital .bar{height:10px;border:0;border-radius:10px;background:#263746;margin:5px 0;box-shadow:inset 0 1px 3px #0004}.hud-active .hud-vital span{font-size:8px;line-height:10px;color:#f5e4d4;text-shadow:0 1px #0006}.hud-active .hud-vital i{border-radius:10px;background:linear-gradient(90deg,#983f4b,#d77773)}.hud-active .hud-vital.mp i{background:linear-gradient(90deg,#356b9a,#70accc)}
.hud-active #notice{font-size:10px;color:#bcab88;min-height:15px;margin:4px 0;line-height:1.5}.hud-active .foot{font-size:9px;color:#73889b;margin-top:5px}
.hud-active .scene-viewport dialog,.player-dialog{border:1px solid #c5ab714d!important;border-radius:13px!important;box-shadow:0 16px 54px #02091488!important;background:linear-gradient(135deg,#203346fa,#112130fa)!important;padding:14px!important;color:#e4dfd3}
.hud-active .dialog-head,.player-dialog .dialog-head{border-bottom:1px solid #ffffff12;padding-bottom:9px}.hud-active .dialog-head h2,.player-dialog h2{font-size:15px!important;font-weight:500;color:#e1cba5}.hud-active .scene-viewport dialog nav{gap:4px}.hud-active .scene-viewport dialog nav button{font-size:10px;padding:6px 8px}.hud-active .scene-viewport #dialog-content{font-size:11px}.hud-active .muted,.player-dialog .muted{font-size:10px;line-height:1.8;color:#99afbd}.hud-active .row{font-size:11px;margin:10px 0}
.hud-active .inventory-grid{gap:6px}.hud-active .inventory-slot{border:1px solid #ffffff15;border-radius:7px;background:linear-gradient(145deg,#293b4d,#172a3b);height:46px}.hud-active .inventory-slot.selected{border:1px solid #d9b97488;background:linear-gradient(145deg,#61544055,#26394c);box-shadow:inset 0 0 12px #baa56812}.hud-active .inventory-count{font-size:10px}.hud-active .bag-detail{font-size:11px}.hud-active .equipment-layout{gap:11px;grid-template-columns:170px 1fr}.hud-active .equipment-preview{background:#16293888;border:1px solid #ffffff12;border-radius:9px;padding:7px}.hud-active .equipment-slot{padding:10px;border:1px solid #ffffff13;border-radius:8px;background:#23364877;gap:5px}.hud-active .equipment-slot strong{font-size:11px;color:#cdbb94}.hud-active select,.player-dialog select,.player-dialog input{background:#152636;border:1px solid #ffffff1b;border-radius:6px;color:#dbdcd4;padding:6px;font-size:11px}
.hud-active .utility-pane>.chat,.hud-active .utility-pane>.panel{border:1px solid #ffffff13;border-radius:8px;background:#182b3b88;padding:11px;box-shadow:none}.hud-active .item{border:0;border-radius:7px;background:#ffffff05;padding:9px;font-size:11px}.hud-active .task{font-size:11px;padding:9px 0;border-color:#ffffff10}.hud-active .broadcast{border:1px solid #ffffff16;border-radius:8px;background:#152a35}.hud-active .broadcast p{font-size:14px}.hud-active .guild-grid a{padding:9px;border:1px solid #ffffff12;border-radius:7px;background:#24364888;font-size:11px}
.player-dialog{z-index:20!important}.player-dialog .player-content{padding:12px 0;max-height:calc(70vh - 65px);overflow:auto}.player-heading{display:flex;gap:13px;align-items:center}.player-heading h3{margin:3px 0;font-size:16px;color:#e0d2b7;font-weight:500}.player-avatar{width:67px!important;height:67px!important;border:1px solid #b89c6477;border-radius:50%;background:#1c3143}.public-gear{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.public-gear>div{background:#ffffff04;border:1px solid #ffffff12;padding:9px;border-radius:8px}.public-gear small{display:block;color:#8da4b5;font-size:9px;margin-bottom:5px}.public-gear strong{font-size:11px;color:#d9c8a7;font-weight:500}.player-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.player-dialog button{border:1px solid #ffffff1c;border-radius:7px;background:#ffffff06;color:#d8d5cd;padding:9px;font-size:11px;cursor:pointer}.player-dialog button:hover{background:#c5a66b15}.player-dialog button:disabled{opacity:.4;cursor:default}.player-section{border-top:1px solid #ffffff12;padding:10px 0}.player-section h3{font-size:12px;color:#dbc7a5;margin:0 0 9px}.player-request{border:1px solid #ffffff12;border-radius:8px;background:#ffffff03;padding:10px;margin:7px 0;font-size:11px}.player-request strong,.player-request small{display:block;margin-bottom:6px}.player-request small{font-size:9px;color:#90a9b8}.player-request button{margin:5px 5px 0 0;font-size:10px;padding:6px 8px}.trade-form{display:grid;grid-template-columns:1fr 28px 1fr;align-items:center;gap:8px}.trade-side{display:grid;gap:8px;border:1px solid #ffffff12;padding:12px;border-radius:9px;background:#ffffff03}.trade-side small{font-size:10px;color:#c6b08a}.trade-side input{width:100%;min-width:0}.trade-arrow{text-align:center;font-size:22px;color:#b69d73}.trade-note,.trade-form>button{grid-column:1/-1}.trade-form>button{background:#c3a56920;color:#edd1a0}
@media(max-width:760px){.hud-active .app{padding:7px}.hud-active .hud-bottom{grid-template-columns:1fr 72px 64px 72px 1fr;gap:4px;padding:6px}.hud-active .hud-tools button{min-width:32px;font-size:9px;padding:5px}.hud-active .hud-portrait{width:45px;height:45px}.hud-active .top h1{font-size:15px}.hud-active .equipment-layout{grid-template-columns:125px 1fr}.hud-active .scene-viewport{height:390px}}
@media(max-width:520px){.hud-active .hud-bottom{grid-template-columns:1fr 45px 55px 45px 1fr;gap:2px}.hud-active .hud-tools{gap:2px}.hud-active .hud-tools button{padding:4px 3px;min-width:27px}.hud-active .scene-viewport{height:340px}.player-actions{gap:4px}.player-dialog button{padding:7px;font-size:10px}.trade-form{gap:4px;grid-template-columns:1fr 18px 1fr}.trade-side{padding:7px}.public-gear{gap:4px}.public-gear>div{padding:6px}}

.hud-active .scene-viewport .player-dialog,.main>.player-dialog{position:absolute!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%);width:min(570px,92%)!important;max-height:90%!important;height:auto!important;overflow:auto}.player-dialog .player-content{max-height:calc(65vh - 90px)}

/* Scene-local speech bubbles: Mario RPG style pointer, compact choice list. */
.hud-active .scene-world .nearby{position:absolute;z-index:8;width:250px;max-width:calc(100% - 12px);padding:11px 13px;border:1px solid #e4d2a8;border-radius:16px;background:linear-gradient(135deg,#fff6dc,#e9dec2);color:#29333c;box-shadow:0 5px 0 #19243335,0 9px 24px #06101955;transform:none;font-size:12px}
.hud-active .scene-world .nearby strong{display:block;color:#5b4530;font-size:12px;padding-bottom:5px;border-bottom:1px solid #87725735}.hud-active .scene-world .nearby:after{display:block;content:'';position:absolute;left:var(--tail-x,18px);bottom:-8px;width:13px;height:13px;transform:translateX(-50%) rotate(45deg);background:#e9dec2;border-right:1px solid #e4d2a8;border-bottom:1px solid #e4d2a8}.hud-active .scene-world .nearby.tail-top:after{top:-7px;bottom:auto;background:#fff6dc;border:0;border-left:1px solid #e4d2a8;border-top:1px solid #e4d2a8}
.hud-active .scene-world .nearby .nearby-menu{min-width:0;gap:3px;margin-top:7px}.hud-active .scene-world .nearby button{display:block;width:100%;text-align:left;background:transparent;color:#344251;border:0;border-radius:7px;padding:6px 9px;font-size:12px;box-shadow:none}.hud-active .scene-world .nearby button[aria-current=true]{background:#425770;color:#fff7de;outline:0;box-shadow:inset 3px 0 #eebd65}.hud-active .scene-world .nearby button[aria-current=true]:before{content:'▸ ';color:#ffd78b}.hud-active .scene-world .nearby .nearby-hint{font-size:9px;color:#82715b;margin-top:7px}.hud-active .scene-world .nearby .dialogue-text{font-size:12px;color:#374655;max-height:110px;line-height:1.7}
