:root{--tt-scroll:18s}
#tt-brand{position:fixed;left:max(14px,env(safe-area-inset-left));top:max(12px,env(safe-area-inset-top));width:132px;z-index:1400;background:#08171deb;border:1px solid #49616b70;border-radius:13px;overflow:hidden;box-shadow:0 5px 22px #0005;text-align:center;color:#fff;font-family:system-ui,sans-serif}
.tt-logo{height:78px;overflow:hidden;background:#a50913}.tt-logo img{display:block;width:132px;height:132px;margin-top:-25px;object-fit:cover}
#tt-brand>strong{display:block;font-size:18px;letter-spacing:3px;line-height:32px;font-weight:750}
.tt-contact{overflow:hidden;white-space:nowrap;padding:7px 0;border-top:1px solid #ffffff16;font-size:11px;color:#94e3d1;text-align:left}
.tt-contact span{display:inline-block;padding-left:100%;animation:tt-contact-scroll var(--tt-scroll) linear infinite}
.tt-contact:hover span,.tt-contact:focus span{animation-play-state:paused}
@keyframes tt-contact-scroll{to{transform:translateX(-100%)}}
@media(prefers-reduced-motion:reduce){.tt-contact{overflow-x:auto}.tt-contact span{animation:none;padding:0 6px}}
#tt-xo-frame{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:20;background:#09171d}
#tt-xo-frame[hidden]{display:none}
.tt-xo-settings #tt-xo-frame{z-index:1800}
#tt-view-switch{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom));display:flex;gap:5px;padding:6px;border:1px solid #55707880;background:#091a22f2;border-radius:12px;z-index:1600;box-shadow:0 5px 24px #0006;max-width:calc(100vw - 20px)}
#tt-view-switch button{border:0;border-radius:7px;min-height:38px;padding:0 16px;font:600 13px system-ui;white-space:nowrap;background:transparent;color:#b8cbd1;cursor:pointer}
#tt-view-switch button[aria-pressed=true]{color:#08251d;background:#72e6c6}
#tt-view-switch button:focus-visible{outline:2px solid #fff;outline-offset:1px}
#tt-settings{border-left:1px solid #ffffff20!important}
#tt-connection{position:fixed;right:16px;bottom:64px;font:11px system-ui;color:#c0ded5;z-index:1400;background:#091b22df;padding:6px 10px;border-radius:7px;pointer-events:none}
body.mode3d #map{display:none!important}
.xh-top{left:auto!important;right:12px!important;width:auto!important;max-width:calc(100vw - 180px)!important;z-index:1450!important}
.tt-xo #map,.tt-xo #island,.tt-xo #qk,.tt-xo #minihint,.tt-xo #pan,.tt-xo .xh-rail,.tt-xo #roster,.tt-xo #xh-glass-map,.tt-xo .xh-footer{visibility:hidden!important;pointer-events:none!important}
.tt-xo #dock{z-index:1700}.xh-room-info{gap:7px!important}.xh-room-code{font-size:12px!important}
#xh-glass-map{bottom:80px!important}#camseg{bottom:78px!important}
#camseg{z-index:1500!important;background:#091a22f2;border:1px solid #55707880;border-radius:10px}
#camseg button.on{color:#72e6c6;background:#72e6c61f;box-shadow:none}
#tt-3d-settings{color:#dbeeea;background:#10252c;border:1px solid #44616b;border-radius:15px;box-shadow:0 20px 80px #000b;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:20px;box-sizing:border-box;font-family:system-ui}
#tt-3d-settings::backdrop{background:#031015b8;backdrop-filter:blur(5px)}
#tt-3d-settings header{display:flex;align-items:center;justify-content:space-between;gap:12px}#tt-3d-settings h2{font-size:20px;margin:0 0 12px}#tt-3d-settings h3{font-size:14px;color:#72e6c6;margin:18px 0 10px}
#tt-3d-settings button{background:#193d46;color:#e3f6f1;border:1px solid #42676b;border-radius:7px;padding:9px 12px;cursor:pointer}#tt-settings-close{font-size:20px;padding:2px 10px!important;align-self:flex-start}
#tt-3d-settings .xh-model-choice{display:none}#tt-3d-settings .dock-note{font-size:12px;line-height:1.7;color:#9fbab9}#tt-3d-settings .sld{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:15px 0;padding:0}#tt-3d-settings input[type=range]{flex:1;min-width:100px}#tt-3d-settings .vs-seg{display:flex;gap:4px;flex-wrap:wrap}#tt-3d-settings .vs.on{background:#72e6c6;color:#0a2722}#tt-model-enter{width:100%;margin-top:16px;background:#72e6c6!important;color:#0a2722!important;font-weight:700}
.tt-login{background:radial-gradient(ellipse at top,#153943,#08121b 70%)!important}
.tt-login .login{margin-top:190px}.tt-login .login>.brand{display:none}.tt-login>main.card{max-width:480px;margin:190px auto 24px}
@media(max-width:700px){
 #tt-brand{width:96px;left:10px;top:10px;border-radius:10px}.tt-logo{height:52px}.tt-logo img{width:96px;height:96px;margin-top:-19px}#tt-brand>strong{font-size:15px;line-height:28px;letter-spacing:2px}.tt-contact{font-size:10px;padding:6px 0}
 #tt-view-switch{left:auto;right:10px;transform:none;bottom:calc(10px + env(safe-area-inset-bottom));gap:2px;padding:5px}#tt-view-switch button{padding:0 9px;font-size:12px;min-height:38px}
 #tt-connection{right:10px;top:12px;bottom:auto;font-size:10px;padding:4px 7px}
 .xh-top{max-width:calc(100vw - 124px)!important;right:10px!important}.xh-room-info{flex-wrap:wrap!important;justify-content:flex-end!important}.xh-viewers{font-size:10px!important}.xh-status{display:none!important}
 .tt-login .login{margin-top:150px}#camseg{bottom:76px!important}
}

#tt-brand.xh-original .tt-logo{height:92px;background:#101d35;display:flex;align-items:center;justify-content:center}
#tt-brand.xh-original .tt-logo img{width:92px;height:92px;margin:0;object-fit:contain}
#tt-brand.xh-original>strong{font-size:16px;letter-spacing:1px}
@media(max-width:700px){#tt-brand.xh-original .tt-logo{height:64px}#tt-brand.xh-original .tt-logo img{width:64px;height:64px}#tt-brand.xh-original>strong{font-size:14px;letter-spacing:1px}}

/* XO mint controls, with the original 3D preferences and listeners. */
body.mode3d #map{display:none!important}
body.mode3d #map.mini{display:block!important;visibility:visible!important;left:12px!important;bottom:140px!important;top:auto!important;right:auto!important;z-index:100!important}
#tt-3d-settings{width:min(620px,calc(100vw - 24px));height:min(760px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden;background:#0e2229;border-color:#3d5a61}
#tt-3d-settings[open]{display:flex;flex-direction:column}
#tt-3d-settings header{padding:18px 22px 8px}
#tt-3d-settings h2{margin:3px 0 0;font-size:22px}
#tt-3d-settings .tt-eyebrow{margin:0;font-size:10px;color:#72e6c6;letter-spacing:2px}
#tt-scene-note{padding:0 22px;margin:6px 0 16px;color:#a4bec1;font-size:12px;line-height:1.7;min-height:40px}
.tt-settings-tabs{display:flex;gap:6px;margin:0 22px 12px;border-bottom:1px solid #ffffff16;padding-bottom:12px}
#tt-3d-settings .tt-settings-tabs button{flex:1;background:transparent;border-color:transparent;color:#a4bec1;font-size:13px}
#tt-3d-settings .tt-settings-tabs button[aria-selected=true]{background:#72e6c61c;border-color:#72e6c652;color:#72e6c6}
#tt-settings-pages{overflow-y:auto;overscroll-behavior:contain;padding:0 22px 16px;flex:1;min-height:0;scrollbar-color:#3d656b #0e2229;scrollbar-width:thin}
#tt-settings-pages [hidden]{display:none!important}
#tt-3d-settings .tt-control-group,#tt-3d-settings .dock-group{border:1px solid #ffffff13;border-radius:10px;background:#152d35;padding:14px;margin:0 0 12px;min-width:0}
#tt-3d-settings .tt-control-group:disabled{opacity:.45}
#tt-3d-settings h3,#tt-3d-settings legend{margin:0 0 12px;font-size:13px;font-weight:650;color:#72e6c6}
#tt-3d-settings legend{padding:0 7px}
#tt-3d-settings .sld,#tt-3d-settings .row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0;padding:12px 0;border-bottom:1px solid #ffffff0b;min-height:34px}
#tt-3d-settings .sld:last-child,#tt-3d-settings .row:last-child{border-bottom:0}
#tt-3d-settings .row-col{flex:1;min-width:110px}
#tt-3d-settings .row-t{font-size:12px;color:#dbeeea}
#tt-3d-settings .row-s{font-size:10px;line-height:1.6;color:#8ca8af}
#tt-3d-settings .sld>span:first-child{color:#dbeeea!important;font-size:12px!important;min-width:105px;white-space:normal!important}
#tt-3d-settings .sld input[type=range]{accent-color:#72e6c6;min-width:70px;width:100px}
#tt-3d-settings .sld .v{color:#72e6c6;font-size:11px;min-width:42px;text-align:right}
#tt-3d-settings .vs-seg{gap:4px;justify-content:flex-end}
#tt-3d-settings .vs{font-size:11px;padding:7px 10px}
#tt-3d-settings .sw{padding:0;border:0;background:#47606a;width:38px;height:23px}
#tt-3d-settings .sw::after{width:18px;height:18px;top:2.5px;left:2.5px}
#tt-3d-settings .sw.on{background:#72e6c6}
#tt-3d-settings .sw.on::after{transform:translateX(15px)}
#tt-3d-settings .vs-ic{width:38px;height:30px;padding:6px}
#tt-3d-settings .vs-ic.on{background:#72e6c6;color:#09271f;box-shadow:none}
#tt-3d-settings .color-swatch{display:flex;gap:8px;align-items:center;font-size:10px;color:#a4bec1}
#tt-3d-settings input[type=color]{width:34px;height:26px;border:0;background:transparent;padding:0;cursor:pointer}
#tt-3d-settings footer{display:flex;gap:10px;flex-shrink:0;padding:14px 22px;border-top:1px solid #ffffff13;background:#0c1f26}
#tt-3d-settings footer button{flex:1;font-size:12px;min-height:38px;margin:0!important;width:auto!important}
#tt-white-enter{border-color:#72e6c6!important;color:#72e6c6!important;background:transparent!important}
#tt-3d-settings button:focus-visible{outline:2px solid #72e6c6;outline-offset:2px}
@media(max-width:700px){
 #tt-view-switch{left:10px;right:10px;transform:none;gap:2px}
 #tt-view-switch button{flex:1;padding:0 5px}
 #tt-3d-settings{width:calc(100vw - 16px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}
 #tt-3d-settings header{padding:16px 16px 8px}
 #tt-scene-note{padding:0 16px}
 .tt-settings-tabs{margin:0 16px 10px}
 #tt-settings-pages{padding:0 12px 12px}
 #tt-3d-settings .tt-control-group,#tt-3d-settings .dock-group{padding:11px}
 #tt-3d-settings .sld .vs-seg{flex:1;min-width:130px}
 #tt-3d-settings footer{padding:12px}
 body.mode3d #map.mini{bottom:140px!important;width:38vw!important;height:20vh!important}
}
/* Modern retains the original glass roster; XO uses its darker teal panels. */
#xh-map-actions{display:none;position:fixed;left:24px;bottom:142px;z-index:1041;gap:8px;padding:6px;border:1px solid #ffffff24;border-radius:11px;background:#0c2029ed;backdrop-filter:blur(16px)}
.radar-style-modern:not(.mode3d) #xh-map-actions{display:flex}
#xh-map-actions .vs-ic{width:38px;height:38px}
@media(max-width:900px){#xh-map-actions{left:12px;bottom:198px}}
body.sheeting #xh-map-actions{visibility:hidden}
#radar-style-switch{position:fixed;right:20px;top:16px;z-index:1650;display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 14px;border:1px solid #ffffff24;border-radius:11px;background:#0c2029f2;color:#7897a2;box-shadow:0 6px 24px #0004;font:12px system-ui;cursor:pointer}
#radar-style-switch span{font-size:10px;color:#9cb5bd}#radar-style-switch i{font-style:normal;color:#4a626b}#radar-style-switch b{font-weight:550}#radar-style-switch .active{color:#72e6c6}
#radar-style-switch:focus-visible,#roster .op:focus-visible{outline:2px solid #72e6c6;outline-offset:2px}
.xh-brand,.xh-footer,.xh-rail,.xh-mobile-nav,.xh-notice,.xh-legacy-room-badge,#xh-screen-awake,#xh-glass-toolbar,#quick,#pan,#hud,#mini-hint,#viewswitch,#gateway-diagnostics{display:none!important}
.radar-style-xo .xh-top,.radar-style-xo #island,.radar-style-xo #dock,.radar-style-xo #dock-handle,.radar-style-xo #xh-glass-map,.tt-xo #roster,.tt-xo #roster-handle{display:none!important}
body.xh-glass #roster{top:116px;bottom:132px;z-index:1400}
body #roster-handle{right:334px;z-index:1450}body.roster-hidden #roster-handle{right:0}
#radar-follow-hint{font:10px system-ui;color:#8cabaf;padding:0 16px 12px;margin:0;border-bottom:1px solid #ffffff10}
.radar-style-xo #roster{background:#0c212bef;border-color:#42636b;border-radius:10px;backdrop-filter:blur(16px)}
.radar-style-xo #roster .pan-head{background:#12303c;border-bottom:1px solid #ffffff0d;padding:14px 16px}
.radar-style-xo #radar-follow-hint{padding-top:10px;background:#12303c}
.radar-style-xo #roster .op{margin:0 8px;padding:11px 7px;border-radius:4px}
.radar-style-xo #roster .op-av{border-radius:7px}
.radar-style-xo #roster .op.sel{background:#37e08a12;box-shadow:inset 3px 0 #37e08a}
.radar-style-xo #roster .xh-roster-tabs{background:#102b36;margin-top:12px;border-radius:6px}
.radar-style-modern #radar-style-switch,.radar-style-modern #tt-view-switch,.radar-style-modern #camseg{background:var(--glass);backdrop-filter:blur(16px);border-color:var(--hair);border-radius:17px}
.radar-style-modern #tt-view-switch button[aria-pressed=true]{background:#77e6be18;color:var(--mint);box-shadow:inset 0 0 0 1px #77e6be33}
.radar-style-modern #tt-3d-settings{background:var(--glass-solid);border-radius:20px}
.radar-style-modern #tt-3d-settings .tt-control-group,.radar-style-modern #tt-3d-settings .dock-group{background:#ffffff04;border-radius:14px}
.radar-style-modern #tt-3d-settings footer{background:#121b19}
.radar-style-modern .xh-room-info{top:72px!important;right:24px!important}
.radar-style-modern #dock{top:174px;z-index:1500}
body.mode3d #map.mini{max-width:230px;max-height:170px}
#radar-players[hidden]{display:none!important}
@media(max-width:900px){
 #radar-style-switch{right:10px;top:12px;min-height:38px;font-size:11px;padding:7px 10px;gap:6px}
 #tt-connection{top:58px;bottom:auto;right:10px}
 .radar-style-modern .xh-room-info{top:82px!important;right:10px!important}
 .radar-style-modern #island{top:140px}
 body.xh-glass #roster,body.xh-glass #dock{top:188px;bottom:138px;left:10px;right:10px;width:auto;z-index:1600}
 body.xh-glass #roster-handle{display:none}
 .radar-style-modern #xh-glass-map{bottom:134px!important}
 .radar-style-modern .leaflet-top{top:186px}
 #tt-view-switch button{padding:0 8px}
}
@media(max-width:360px){#radar-style-switch{font-size:10px;gap:5px;padding:7px 8px}#radar-style-switch span{display:none}#tt-view-switch button{font-size:11px;padding:0 3px}}
