@import url('/fonts.css');
:root{color-scheme:dark;--bg:#0c1118;--panel:#171e28;--line:#33404c;--muted:#acb6c3;--text:#f2f0ee;--accent:#efad75;--green:#9cd3be;font-family:'Segoe UI Variable Text','Segoe UI',system-ui,sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);height:100dvh;overflow:hidden}button,input,a{font:inherit}button,a,input{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #ffd0a3}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#19222dde;color:var(--text);padding:11px 15px;min-height:42px;transition:background .15s,border-color .15s}button:hover:enabled{background:#293747;border-color:#718292}button:disabled{opacity:.45;cursor:default}button.primary{display:flex;justify-content:space-between;align-items:center;width:100%;background:var(--accent);border-color:var(--accent);color:#281a11;font-weight:650}button.primary:hover:enabled{background:#ffd0a3;border-color:#ffd0a3}.secondary{width:100%;margin-top:9px;background:transparent}a{color:var(--accent);text-underline-offset:3px}[hidden]{display:none!important}h1,h2,p{margin-top:0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--accent)}#socialScene{position:fixed;inset:0}#socialScene:empty{background:radial-gradient(ellipse at 70% 40%,#41231775,transparent 60%),linear-gradient(135deg,#101b25,#10151d 60%,#281a15)}.social-header{position:fixed;z-index:5;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:23px 30px;background:linear-gradient(#0b111bd9,transparent);pointer-events:none}.social-header a{pointer-events:auto}.brand{display:flex;align-items:center;gap:11px;color:var(--text);text-decoration:none;font-size:16px;font-weight:650}.brand small{display:block;color:#b99a80;font-size:8px;letter-spacing:2.2px;margin-top:3px}.brand-symbol{display:grid;place-items:center;width:34px;height:39px;border:1px solid #987453;border-radius:10px 10px 15px 15px;color:var(--accent);font-family:Georgia,serif;font-size:25px;background:#2c251c}.quiet-link{color:#c7cbd0;font-size:12px;text-decoration:none;padding:9px 12px;border:1px solid #ffffff1c;border-radius:8px;background:#151c26b0}.quiet-link span{margin-left:7px}.lobby{position:fixed;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;padding:100px 20px 25px;overflow:auto;background:radial-gradient(ellipse at center,#0e141d22,#091019a8)}.welcome-card{position:relative;width:480px;max-width:100%;padding:33px 38px 25px;border:1px solid #71615088;border-radius:22px;background:linear-gradient(145deg,#252b32f5,#151d28fa 65%);box-shadow:0 30px 100px #0007;overflow:hidden}.welcome-card h1{font-size:46px;line-height:1.05;letter-spacing:-2px;margin:15px 0 19px}.welcome-card h1 em{font-style:normal;color:var(--accent)}.intro{max-width:340px;color:#c0c5ce;font-size:14px;line-height:1.7;margin-bottom:23px}.lobby-art{position:absolute;right:25px;top:25px;width:112px;height:112px;pointer-events:none;opacity:.7}.portal-ring{position:absolute;inset:7px;border:1px solid #c29c685c;border-radius:50%;box-shadow:0 0 70px #f38e2318,inset 0 0 35px #e89b2912;transform:rotate(-25deg);border-top-color:#f3b57a}.portal-ring::before{content:'';position:absolute;inset:12px;border:1px dashed #bd9b6266;border-radius:50%}.portal-mark{position:absolute;inset:0;display:grid;place-items:center;color:#dfac76;font-size:39px}label,legend{display:block;font-size:12px;font-weight:600;margin-bottom:8px}input{display:block;width:100%;border:1px solid #48505d;background:#101923;color:var(--text);padding:12px;border-radius:9px;font-size:15px;min-height:45px}input::placeholder{color:#758494}.field-help{font-size:11px;line-height:1.6;color:var(--muted);margin:7px 0 19px}.avatar-fieldset{border:0;margin:0 0 22px;padding:0}.avatar-choices{display:flex;gap:9px}.avatar-choice{flex:1;position:relative}.avatar-choice input{position:absolute;opacity:0;width:1px;height:1px}.avatar-choice label{display:flex;align-items:center;gap:8px;border:1px solid #354150;border-radius:10px;padding:11px;margin:0;background:#111a24;cursor:pointer;font-size:12px}.avatar-choice input:checked+label{border-color:#d49d6c;background:#5b422a55;color:#ffd5b0}.avatar-choice input:focus-visible+label{outline:2px solid #ffd0a3;outline-offset:3px}.avatar-choice .avatar-mark{font-size:23px}.form-status{min-height:20px;margin:12px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.form-status.error{color:#ffc3b5}.lobby-notes{display:flex;gap:11px;flex-wrap:wrap;margin:18px 0 13px;padding-top:16px;border-top:1px solid #ffffff12;font-size:10px;color:#c5c3be}.lobby-notes span::before{content:'·';color:var(--accent);margin-right:5px}.privacy-note{color:#8f9baa;font-size:10px;line-height:1.65;margin:0}.privacy-note a{color:#bcb4a8}.invite-notice{color:#bfdbc9;font-size:12px;padding:10px 12px;border:1px solid #709a7c55;border-radius:7px;background:#25473544}.room-ui{position:fixed;inset:100px 0 0;pointer-events:none;z-index:2}.room-ui button,.room-ui details{pointer-events:auto}.room-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:0 28px}.room-title{padding:16px 20px;border:1px solid #65758244;background:#121c27e8;border-radius:13px;box-shadow:0 10px 30px #0002}.room-title .eyebrow{font-size:8px;margin-bottom:6px}.room-title h1{font-size:21px;letter-spacing:-.4px;margin-bottom:5px}.room-title p:last-child{font-size:11px;color:var(--green);margin:0}.room-actions{display:flex;gap:8px}.room-actions button{background:#15202ce8;font-size:12px}.square{width:42px;padding:0;font-size:19px!important}.roster{position:absolute;top:128px;left:28px;width:228px;border:1px solid #65758244;border-radius:10px;background:#121c27e8;font-size:12px;overflow:hidden}.roster summary{cursor:pointer;display:flex;align-items:center;gap:8px;padding:13px;list-style:none}.roster summary::after{content:'⌄';margin-left:auto;color:#9fb2bd}.roster[open] summary::after{transform:rotate(180deg)}.live-dot{width:6px;height:6px;border-radius:50%;background:var(--green)}.roster[data-connected=false] .live-dot{background:#d7a365}.roster ul{list-style:none;padding:0 13px;margin:0;max-height:32dvh;overflow:auto}.roster li{display:flex;gap:9px;align-items:center;padding:9px 0;border-top:1px solid #a2b4c41a;overflow-wrap:anywhere}.roster li small{color:#8ca2b1;margin-left:auto;font-size:9px}.roster p{padding:0 13px 13px;color:#a4b5c3;font-size:10px;line-height:1.5;margin:0}.room-bottom{position:absolute;bottom:54px;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center;white-space:nowrap}.movement-controls{display:flex;padding:4px;border:1px solid #70849355;border-radius:11px;background:#111c28eb}.movement-controls button{border:0;background:transparent;min-height:34px;font-size:11px;padding:8px 11px;color:#b7c5d0}.movement-controls button[aria-pressed=true]{background:#62492f88;color:#ffd3ad;box-shadow:inset 0 0 0 1px #e4ab6a33}.wave-button{background:#eab17d!important;color:#2a1a10;font-weight:600;border-color:#eab17d;box-shadow:0 8px 30px #0004}.wave-button span{font-size:18px;margin-right:5px}.wave-button kbd{color:#65482e;background:#ffffff44;border-color:#9c704355;margin-left:9px}.entrance-button{background:#17232fe8;font-size:11px}.movement-hint{position:absolute;left:15px;right:15px;bottom:17px;margin:0;text-align:center;color:#e3e4e7;font-size:10px;text-shadow:0 1px 6px #000,0 1px 3px #000}.room-notice{position:absolute;top:12px;left:50%;transform:translateX(-50%);max-width:360px;padding:12px 17px;border:1px solid #c5935d88;border-radius:10px;background:#30251deb;color:#ffe1bf;font-size:12px;line-height:1.5;text-align:center}.toast{position:fixed;z-index:10;bottom:125px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);padding:12px 18px;border:1px solid #8c7960;border-radius:10px;background:#1b2733f5;color:#f3e4d3;font-size:12px;box-shadow:0 10px 25px #0005;pointer-events:none}dialog{width:440px;max-width:calc(100vw - 30px);max-height:88dvh;overflow:auto;padding:30px;border:1px solid #6c6155;border-radius:17px;background:#18212c;color:var(--text);box-shadow:0 20px 100px #0008}dialog::backdrop{background:#060d17b8;backdrop-filter:blur(5px)}dialog h2{font-size:29px;letter-spacing:-.7px;margin:13px 0}dialog p{color:var(--muted);font-size:12px;line-height:1.7}dialog .eyebrow{color:var(--accent)}.close-help{float:right;margin:-16px -16px 0 8px;padding:4px;min-height:30px;width:30px;border:0;background:transparent;font-size:22px}dl{margin:23px 0}dl div{display:flex;align-items:center;gap:20px;padding:10px 0;border-bottom:1px solid #364351}dt{min-width:100px;font-size:12px}dd{margin:0;font-size:12px;color:#c3cdd6}kbd{font:10px 'Segoe UI',sans-serif;border:1px solid #576575;border-radius:4px;padding:3px 5px;background:#293644;color:#ebedf0}.noscript{position:fixed;z-index:10;top:110px;left:20px;right:20px;text-align:center;background:#15202c;padding:20px}
@media(max-width:650px){.social-header{padding:17px 15px}.brand{font-size:13px}.brand-symbol{width:29px;height:34px;font-size:22px}.brand small{font-size:7px}.quiet-link{font-size:10px;padding:8px}.lobby{padding:85px 12px 18px;align-items:flex-start}.welcome-card{padding:26px 23px 22px;border-radius:16px}.welcome-card h1{font-size:39px}.lobby-art{width:95px;height:95px;right:18px;top:19px}.intro{font-size:13px}.room-ui{inset:80px 0 0}.room-top{margin:0 12px;gap:8px}.room-title{padding:12px}.room-title h1{font-size:17px}.room-title .eyebrow{font-size:7px}.room-actions{gap:5px}.room-actions button{font-size:10px;padding:8px}.room-actions .square{width:35px;min-height:38px}.roster{top:112px;left:12px;width:190px}.room-bottom{bottom:57px;gap:7px}.movement-controls button{font-size:10px;padding:7px 8px}.wave-button{padding:9px 11px}.wave-button kbd{display:none}.entrance-button{padding:10px;font-size:10px}.movement-hint{font-size:9px;bottom:18px;max-width:340px;margin:auto}.room-notice{top:210px;width:calc(100% - 35px)}.avatar-choice label{padding:10px;font-size:11px}.avatar-choice .avatar-mark{font-size:20px}}
@media(max-height:760px) and (min-width:651px){.lobby{padding-top:87px;align-items:flex-start}.welcome-card{padding:23px 32px 20px}.welcome-card h1{font-size:35px;margin:12px 0}.welcome-card h1 br{display:none}.welcome-card h1 em{margin-left:7px}.intro{font-size:12px;line-height:1.6;margin-bottom:16px;max-width:330px}.lobby-art{width:65px;height:65px;top:40px;right:20px;opacity:.4}.avatar-fieldset{margin-bottom:17px}.lobby-notes{margin-top:12px;padding-top:12px}.form-status{margin-top:8px}.field-help{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.avatar-choice{min-width:0}.avatar-choice label{height:100%;flex-direction:column;text-align:center;font-size:11px}.room-notice{pointer-events:auto}.room-notice button{display:block;margin:10px auto 0;padding:8px 12px;font-size:11px;min-height:34px}

.device-performance{margin:16px 0 22px;padding:12px 0;border-top:1px solid #364351;border-bottom:1px solid #364351}.device-performance summary{cursor:pointer;color:#cbd3dc;font-size:12px}.device-performance>p{margin:12px 0 0;font-size:11px}.device-performance dl{margin:8px 0}.device-performance dl div{padding:7px 0;border:0}.device-performance dt{min-width:100px;color:#9eafbe;font-size:11px}.device-performance dd{font-size:11px}.device-performance .field-help{font-size:10px}

/* Dungeon discovery stays lightweight: this list contains text and live counts only. */
.selected-dungeon{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;margin:0 0 23px;padding:15px 16px;text-align:left;border-color:#99744f88;background:linear-gradient(115deg,#58412b55,#17212d);border-radius:12px}.selected-dungeon>span:first-child{min-width:0;display:flex;flex-direction:column;gap:5px}.selected-dungeon small{color:#baa68e;letter-spacing:1.3px;font-size:8px;font-weight:650}.selected-dungeon strong{color:#f4e6d8;font-size:17px;line-height:1.25;font-weight:650}.selected-dungeon #selectedDungeonCount{color:#a9c4bb;font-size:10px}.dungeon-change{display:flex;gap:8px;align-items:center;font-size:11px;color:#eab88d;flex-shrink:0}.text-button{display:block;margin:7px auto 0;padding:9px 5px;border-color:transparent;background:transparent;color:#bdc9d5;font-size:11px;min-height:33px}.text-button:hover:enabled{background:transparent;color:#ffd3ae;border-color:transparent}.dungeon-dialog{width:650px}.dungeon-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:46dvh;overflow:auto;padding:3px;scrollbar-gutter:stable}.dungeon-option{display:flex;flex-direction:column;gap:7px;align-items:flex-start;justify-content:center;padding:13px;text-align:left;min-height:73px;background:#111c27;border:1px solid #384554}.dungeon-option strong{font-size:12px;font-weight:600;line-height:1.4}.dungeon-count{font-size:10px;color:#a4b8b6}.dungeon-option[aria-current=true]{border-color:#d29c6c;background:#5c412a55}.dungeon-option[aria-current=true] strong{color:#ffd5af}.area-options{display:flex;flex-direction:column;gap:8px;margin-top:20px}.area-options button{text-align:left;justify-content:flex-start}#inviteUrl{font-size:12px}#inviteError{color:#ffc3b5}#dungeonSearch{font-size:14px}.room-actions{flex-wrap:wrap;justify-content:flex-end}.room-top .room-title{min-width:175px;max-width:360px}.room-title h1{overflow-wrap:anywhere}
@media(max-width:650px){.selected-dungeon{padding:12px 14px;margin-bottom:18px}.selected-dungeon strong{font-size:16px}.room-top{flex-wrap:wrap}.room-top .room-title{max-width:calc(100% - 90px);min-width:150px}.room-actions{margin-left:auto;max-width:210px}.room-actions #changeDungeon{order:4;width:100%;min-height:30px;padding:6px}.room-actions #inviteFriends{max-width:115px}.roster{top:160px}.dungeon-dialog{padding:24px 20px}.dungeon-options{gap:7px;max-height:42dvh}.dungeon-option{padding:10px;min-height:79px}.dungeon-option strong{font-size:11px}.dungeon-count{font-size:9px}.welcome-card .intro{margin-bottom:17px}.welcome-card h1{font-size:36px}.lobby-art{opacity:.35}}
@media(max-width:380px){.dungeon-options{grid-template-columns:1fr}.room-actions{max-width:170px}.room-actions #inviteFriends{font-size:9px}.room-actions .square{width:28px}.room-top .room-title{max-width:calc(100% - 180px);min-width:125px}.room-title h1{font-size:15px}}
@media(max-height:820px) and (min-width:651px){.welcome-card{padding-top:23px;padding-bottom:20px}.welcome-card h1{font-size:32px;margin:11px 0}.welcome-card h1 br{display:none}.welcome-card h1 em{margin-left:6px}.welcome-card .intro{font-size:12px;line-height:1.6;margin-bottom:14px}.selected-dungeon{margin-bottom:17px;padding:12px 14px}.avatar-fieldset{margin-bottom:15px}.lobby-art{width:64px;height:64px;top:38px;opacity:.3}.lobby-notes{margin-top:10px;padding-top:12px}.field-help{margin-bottom:13px}.welcome-card .form-status{margin-top:7px}}

