﻿#dungeon-room{position:fixed;inset:0;z-index:65;display:grid;place-items:center;background:#0005}#dungeon-room[hidden],#dungeon-hud[hidden]{display:none}.dungeon-window{width:760px;height:440px;padding:12px;background:url('ui/status-frame.png') center/100% 100%;color:#111;font:700 17px TSClient,sans-serif;transform:scale(var(--dungeon-scale,1))}.dungeon-window h2{margin:0;height:42px;padding:5px 18px;background:url('ui/status-title.png') center/100% 100%;color:#fff;font-size:23px;text-shadow:1px 1px #536ca1}.dungeon-paper{margin-top:12px;height:360px;padding:14px 24px;background:url('ui/status-content.png') center/100% 100%;overflow-y:auto;scrollbar-width:none}.dungeon-paper h3{margin:4px 0}.dungeon-paper p{margin:9px 0}.dungeon-controls{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.dungeon-controls button{min-width:120px;width:auto;padding:0 16px}.dungeon-destinations{height:100%;overflow:auto;scrollbar-width:none;padding:8px 18px;touch-action:pan-y}.dungeon-destinations .teleport-row{gap:8px;min-height:65px}.dungeon-destinations .teleport-row strong{flex-basis:65px}.dungeon-destinations .teleport-row span{flex:1}.dungeon-join{display:flex;gap:12px;align-items:center}.dungeon-join input{width:190px;border:2px solid #83b4c2;background:#fff;color:#1b2830;padding:6px;font:700 18px TSClient,sans-serif}.dungeon-destinations p{font-size:15px;margin:8px 0}#dungeon-hud{position:absolute;top:7px;left:50%;transform:translateX(-50%);z-index:22;background:#34305bec;border:2px solid #8fcbd1;border-radius:5px;padding:4px 8px;color:white;font:700 13px TSClient,sans-serif;display:flex;gap:8px;align-items:center;max-width:65vw}#dungeon-hud .native-blue{font-size:14px;min-width:70px;width:auto;height:30px;padding:0 8px}#dungeon-hud span{white-space:nowrap}@media(max-height:500px){#dungeon-hud{top:3px;font-size:11px;gap:3px;padding:2px 4px;max-width:64vw}#dungeon-hud .native-blue{font-size:11px;min-width:52px;height:26px}}.teleport-tabs .teleport-tab{white-space:nowrap}
.dungeon-card-later{position:absolute;right:28px;top:15px;width:110px;height:34px;font-size:15px}.in-dungeon #status-apply,.in-dungeon #status-reset,.in-dungeon #status-stat-rows button{pointer-events:none;opacity:.5}
/* Absolute centering avoids grid intrinsic height pushing the scaled window below a short viewport. */
#dungeon-room{display:block}.dungeon-window{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--dungeon-scale,1))}
/* Original UI_Dungeon: five role slots, native pedestal, add and ready sprites. */
.dungeon-lobby{width:850px;height:470px;padding:8px;box-sizing:border-box}.dungeon-lobby h2{height:48px;box-sizing:border-box}.dungeon-lobby .dungeon-paper{position:relative;margin-top:0;height:404px;padding:0;overflow:hidden}.lobby-name{position:absolute;top:22px;left:0;width:100%;text-align:center;color:#eae970;font-size:29px;-webkit-text-stroke:1px #6960ac;paint-order:stroke fill}.lobby-slot{position:absolute;top:101px;width:143px;height:235px;text-align:center}.lobby-pedestal{position:absolute;left:15px;top:147px;width:113px;height:54px}.lobby-add{position:absolute;left:38px;top:112px;width:68px;height:68px}.lobby-hero{position:absolute;left:-3px;top:20px;width:150px;height:170px}.lobby-player-name{position:absolute;top:0;left:0;width:100%;font-size:18px;color:#111;line-height:22px}.lobby-player-name span{color:#d8f478;-webkit-text-stroke:1px #544c92;paint-order:stroke fill}.lobby-ready{position:absolute;left:54px;top:211px;width:35px;height:31px}.lobby-slot.offline{opacity:.45}.lobby-hint{position:absolute;bottom:32px;left:20px;color:#f00;font-size:18px;max-width:480px}.lobby-controls{position:absolute;bottom:18px;right:20px;display:flex;gap:12px}.lobby-controls button{width:112px;height:43px;font-size:21px}.lobby-controls button:disabled{filter:grayscale(.35);opacity:.65}
.dungeon-lobby .lobby-close{position:absolute;right:18px;top:12px;width:40px;height:40px;background:url('ui/common0_but002D.png') center/contain no-repeat;border:0;font-size:0}.lobby-hint{left:160px;right:260px;text-align:center;max-width:none;font-size:17px;bottom:31px}.lobby-recruit{position:absolute;left:20px;bottom:18px;width:112px;height:43px;font-size:19px}.dungeon-lobby .lobby-name{text-shadow:-1px -1px #6655ae,1px -1px #6655ae,-1px 1px #6655ae,1px 1px #6655ae}.lobby-player-name span{text-shadow:-1px -1px #544c92,1px 1px #544c92}
/* UI_Dungeon/MultipleRoot: native room frame and row join button. */
.dungeon-browser{position:relative;height:100%;min-height:360px;color:#111;font:700 17px TSClient,sans-serif}.dungeon-details{position:absolute;left:18px;top:18px;width:270px}.dungeon-details h3{font-size:25px;color:#f0de70;text-shadow:-1px -1px #6659a4,1px -1px #6659a4,-1px 1px #6659a4,1px 1px #6659a4;margin:10px 65px 22px 0;line-height:1.25}.dungeon-details p{margin:8px 0}.dungeon-details p span{color:#edf3f2;font-weight:700;-webkit-text-stroke:0;text-shadow:-1px 0 #70999f,1px 0 #70999f,0 -1px #70999f,0 1px #70999f,-1px -1px #70999f,1px -1px #70999f,-1px 1px #70999f,1px 1px #70999f}.dungeon-refresh{position:absolute;left:235px;top:14px;width:65px;height:43px;font-size:19px}.dungeon-room-list{position:absolute;left:312px;right:14px;top:12px;bottom:66px;background:url('ui/dungeon-room-list.png') center/100% 100% no-repeat;padding:8px;overflow:auto;scrollbar-width:none;touch-action:pan-y}.dungeon-room-row{min-height:55px;display:flex;align-items:center;gap:7px;border-bottom:1px solid #d2e4e6;padding:0 2px}.dungeon-room-row strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:17px}.dungeon-room-row span{white-space:nowrap;font-size:15px}.dungeon-room-row .dungeon-row-join{width:72px;min-width:72px;height:38px;min-height:0;padding:0;flex:0 0 72px;background-image:url('ui/dungeon-join-button.png');background-size:100% 100%;font-size:18px;line-height:1}.dungeon-browser-controls{position:absolute;left:312px;right:14px;bottom:12px;display:flex;justify-content:space-between}.dungeon-browser-controls button{width:112px;height:43px;font-size:21px}.dungeon-stage-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:22px 0 16px}.dungeon-stage-picker button{width:48px;height:31px;font-size:15px}.dungeon-stage-picker button.selected{filter:brightness(1.15);outline:1px solid #9283c5;outline-offset:-3px}.dungeon-reward{padding-top:10px;border-top:1px solid #c8dfdf;color:#6256ae;font-size:17px}.dungeon-empty{font-size:16px;text-align:center;color:#58696a;margin:20px 0}
