:root{color-scheme:dark;--bg:#0b111a;--panel:#111b28;--panel-deep:#0e1723;--line:#263345;--text:#edf1f5;--muted:#9caabd;--gold:#dfbc83;--green:#76d7b0;--red:#f07b7d;--blue:#75b5ff;--radius:14px;font-family:"Segoe UI",Inter,system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{color:inherit}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:650}h1{font-size:36px;line-height:1.2;letter-spacing:-1.25px}h2{font-size:18px;letter-spacing:-.35px}.accent{color:var(--gold)}.muted{color:var(--muted)}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-70px;left:16px;z-index:10;padding:12px 20px;background:var(--gold);color:var(--bg)}.skip-link:focus{top:12px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.6px;color:var(--muted)}.tiny-line{display:inline-block;width:24px;height:1px;background:var(--gold);vertical-align:middle;margin-right:8px}
.app-header{border-bottom:1px solid var(--line);background:#0d1520}.header-inner{max-width:1360px;margin:auto;min-height:88px;padding:0 40px;display:flex;align-items:center;gap:36px}.brand{display:flex;align-items:center;gap:12px;font-size:24px;letter-spacing:1px;font-weight:750;line-height:1.05;white-space:nowrap}.brand-light{color:var(--gold);font-weight:400;margin-left:3px}.brand small{display:block;font-size:8px;letter-spacing:3px;color:var(--muted);margin-top:8px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;color:var(--gold);border:1px solid #66553d;border-radius:11px;transform:rotate(-5deg)}.brand-mark .icon{width:25px;height:25px;transform:rotate(5deg)}.status{display:flex;align-items:center;gap:8px;border:1px solid #3a4350;color:var(--muted);font-size:12px;font-weight:600;padding:6px 11px;border-radius:20px;white-space:nowrap}.status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.status[data-state=live]{color:var(--green);border-color:#294c43;background:#112820}.status[data-state=waiting],.status[data-state=connecting]{color:var(--gold);border-color:#514834}.status[data-state=error],.status[data-state=offline],.status[data-state=ended]{color:var(--red);border-color:#593436}.header-actions{margin-left:auto;display:flex;align-items:center;gap:24px}.session-chip{display:flex;flex-direction:column;gap:3px}.session-chip>span{font-size:9px;letter-spacing:1.6px;color:var(--muted)}.session-chip code{font-size:12px;color:#c9d2dc;letter-spacing:1px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:650;transition:background .15s,border-color .15s}.button-gold{background:var(--gold);color:#22201b;border-color:var(--gold)}.button-gold:hover{background:#edcca0;border-color:#edcca0}.button-quiet{background:#192637;border-color:#304054;color:#c8d2df}.button-quiet:hover,.button-quiet[aria-pressed=true]{border-color:var(--gold);color:var(--gold);background:#272a2d}.button .icon{width:17px;height:17px}
.viewer-shell{max-width:1360px;margin:0 auto;padding:34px 40px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading .eyebrow{margin-bottom:12px}.subtitle{color:var(--muted);margin-top:10px;font-size:13px}.feed-summary{display:flex;gap:12px;align-items:center;padding:10px 0 10px 24px;border-left:1px solid var(--line)}.feed-summary>.icon{color:var(--gold);width:25px;height:25px}.feed-summary .eyebrow{display:block;margin-bottom:5px;font-size:9px}.feed-summary strong{display:block;font-weight:500;font-size:13px}.battle-layout{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:22px;align-items:stretch}.map-panel{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.map-panel:focus{outline:none}.map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}.map-title{display:flex;align-items:center;gap:12px;min-width:0}.panel-index{display:grid;place-items:center;font:12px ui-monospace,monospace;color:var(--gold);width:32px;height:36px;border:1px solid #4f493d;background:#25272a;border-radius:7px}.map-title h2{font-size:15px}.map-title>div>span{display:block;font-size:11px;color:var(--muted);margin-top:3px}.map-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}.map-stage{position:relative;display:grid;place-items:center;padding:22px;background-color:#0a121e;background-image:linear-gradient(#24344833 1px,transparent 1px),linear-gradient(90deg,#24344833 1px,transparent 1px);background-size:30px 30px;isolation:isolate}#map{display:block;width:100%;max-width:660px;height:auto;aspect-ratio:1;border-radius:6px;background:#101b28;transition:opacity .2s;box-shadow:0 0 0 1px #334459}.map-stage.is-paused #map{opacity:.35;filter:saturate(.5)}.map-overlay{position:absolute;inset:0;z-index:1;background:#0b1423e8;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:28px;gap:13px}.overlay-symbol{display:grid;place-items:center;width:70px;height:70px;border:1px solid #4b473e;border-radius:50%;background:#27272b;color:var(--gold);margin-bottom:14px}.overlay-symbol .icon{width:34px;height:34px}.map-overlay h3{font-size:24px;letter-spacing:-.6px}.map-overlay p{font-size:13px;color:var(--muted);max-width:320px}.map-overlay .button{margin-top:8px}.map-footer{padding:15px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.map-legend{display:flex;gap:20px;white-space:nowrap}.map-legend>span{display:flex;align-items:center;gap:7px}.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.legend-dot.enemy{background:var(--red)}.legend-dot.ally{background:var(--blue)}
.sidebar{display:flex;flex-direction:column;gap:18px;min-width:0}.roster-panel,.session-panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);overflow:hidden}.roster-panel{display:flex;flex-direction:column;flex:1}.section-heading{padding:22px 20px 19px;display:flex;justify-content:space-between;align-items:center;gap:10px}.section-heading .eyebrow{font-size:9px;margin-bottom:7px}.section-heading h2{font-size:17px}.count-badge{display:grid;place-items:center;min-width:38px;height:38px;border:1px solid #4a463d;background:#24282d;border-radius:9px;color:var(--gold);font:19px ui-monospace,monospace}.hero-list{padding:0 10px 10px}.hero-row{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;padding:13px 10px;border-top:1px solid #243142}.hero-avatar{position:relative;width:46px;height:46px;border-radius:10px;background:#27374b;border:1px solid #705054;overflow:hidden;color:var(--muted);display:grid;place-items:center;font-size:10px}.hero-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-row .hero-avatar{border-color:var(--side-color,var(--muted))}.hero-topline{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:5px}.hero-name{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-team{font-size:9px;color:var(--side-color,var(--muted));white-space:nowrap}.hero-hp-line{display:flex;justify-content:space-between;gap:4px;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.hero-hp-percent{color:#d6e1eb;font-weight:650}.hp-track{height:4px;background:#293346;border-radius:2px;margin-top:6px;overflow:hidden}.hp-fill{height:100%;background:var(--side-color,var(--muted));width:0;transition:width .2s linear}.hero-row[data-low=true] .hero-hp-percent{color:#ffba69}.roster-note{display:flex;align-items:center;gap:8px;padding:12px 20px;background:#0e1723;font-size:10px;color:var(--muted);border-top:1px solid var(--line);margin-top:auto}.small-dot{width:5px;height:5px;border-radius:50%;background:var(--green)}.roster-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 22px 38px;color:var(--muted);flex:1;min-height:180px}.roster-empty .icon{width:32px;height:32px;color:#8393a8;margin-bottom:16px}.roster-empty strong{font-size:13px;font-weight:500;color:#c7d0dc}.roster-empty p{margin-top:7px;font-size:11px;line-height:1.6;max-width:225px}.session-panel .section-heading{padding-bottom:12px}.session-panel h2{font-size:14px}.session-details{margin:0;padding:0 20px 15px;font-size:11px}.session-details>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0}.session-details dt{color:var(--muted)}.session-details dd{margin:0;color:#dce4ed;text-align:right}.readonly-dot{display:inline-block;width:5px;height:5px;background:var(--gold);border-radius:50%;margin-left:4px;vertical-align:middle}.connection-note{margin:0 20px 18px;border-top:1px solid var(--line);padding-top:13px;font-size:11px;color:var(--muted)}.focus-tip{display:flex;gap:12px;padding:4px 4px 0;color:var(--muted)}.focus-tip>.icon{color:var(--gold);width:18px;margin-top:3px}.focus-tip strong{font-size:11px;font-weight:600;color:#c3cedb}.focus-tip p{font-size:11px;line-height:1.65;margin-top:5px}.focus-tip b{font-weight:500;color:#d5deea}kbd{font-family:inherit;font-size:9px;border:1px solid #3b4759;border-radius:3px;padding:0 4px;color:#c2cddd}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 0 28px;color:#95a3b4;font-size:10px}.page-footer>span:first-child{font-weight:650;letter-spacing:1px;color:#c1cad6}.page-footer i{font-style:normal;padding:0 6px;color:var(--gold)}.footer-tag{font-size:8px;letter-spacing:1.5px}.toast{position:fixed;z-index:10;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:#233d35;color:#d4ffeb;border:1px solid #537a6b;padding:13px 22px;border-radius:10px;box-shadow:0 8px 32px #0008;font-size:13px;text-align:center}.pip-video{position:fixed;left:-10000px;width:1px;height:1px;opacity:0;pointer-events:none}
.is-focused .page-heading,.is-focused .sidebar,.is-focused .page-footer{display:none}.is-focused .battle-layout{grid-template-columns:minmax(0,1fr)}.is-focused .viewer-shell{padding-top:20px}.is-focused #map{max-width:min(100%,calc(100dvh - 240px))}.is-focused .map-stage{padding:16px}.calibration-panel{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.calibration-header,.calibration-row,.calibration-group,.calibration-buttons,.calibration-pad,.calibration-scale-inputs{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}.calibration-header{justify-content:space-between}.calibration-panel button,.calibration-panel input,.calibration-panel select{border:1px solid #46546a;border-radius:6px;background:#172335;color:var(--text);padding:7px 10px;min-height:36px}.calibration-panel input{max-width:100px}.calibration-group>span{min-width:130px}.calibration-panel pre{overflow:auto;max-height:250px;font-size:11px;color:var(--muted)}.calibration-note{color:var(--muted);font-size:12px}
@media(min-width:1400px){.map-stage{padding:28px}.header-inner,.viewer-shell{max-width:1360px}}
@media(max-width:1100px){.header-inner{padding:0 24px;gap:24px}.viewer-shell{padding:28px 24px 0}.battle-layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.map-toolbar{padding:16px}.map-stage{padding:16px}.map-help{display:none}.map-footer{padding:14px 16px}h1{font-size:32px}.header-actions{gap:16px}}
@media(max-width:850px){.battle-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:18px}.roster-panel{grid-row:span 2}.focus-tip{grid-column:2}.feed-summary{display:none}.map-stage{padding:20px}#map{max-width:660px}.header-inner{gap:20px}.session-chip{display:none}}
@media(max-width:520px){.header-inner{min-height:74px;padding:0 16px;gap:12px}.brand{font-size:20px;gap:8px}.brand-mark{width:34px;height:34px;border-radius:9px}.brand-mark .icon{width:22px;height:22px}.brand small{font-size:6px;letter-spacing:2.2px;margin-top:6px}.status{font-size:10px;padding:5px 8px;gap:6px}.header-actions{margin-left:auto}.header-actions .button{padding:9px;min-width:38px}.header-actions .button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.viewer-shell{padding:27px 16px 0}.page-heading{margin-bottom:22px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:10px}h1{font-size:29px;letter-spacing:-1px}.subtitle{font-size:12px;margin-top:9px}.map-toolbar{padding:13px 12px}.panel-index{display:none}.map-title h2{font-size:14px}.map-title>div>span{font-size:10px}.map-actions{gap:6px}.map-actions .button{padding:8px;min-height:36px;font-size:11px}.map-actions #focusButton span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.map-stage{padding:8px}.map-footer{padding:12px;font-size:10px}.map-legend{gap:18px}.sidebar{grid-template-columns:1fr;gap:16px}.roster-panel{grid-row:auto}.focus-tip{grid-column:auto;padding:0 5px}.section-heading{padding:19px 18px 16px}.hero-list{padding:0 8px 8px}.hero-row{grid-template-columns:44px minmax(0,1fr);padding:12px 10px}.hero-avatar{width:44px;height:44px}.hero-topline{margin-bottom:4px}.hero-team{font-size:10px}.hero-hp-line{font-size:11px}.page-footer{padding:24px 0;font-size:9px;flex-wrap:wrap;gap:9px}.footer-tag{display:none}.map-overlay{padding:20px}.map-overlay h3{font-size:20px}.overlay-symbol{width:54px;height:54px;margin-bottom:2px}.map-overlay p{font-size:12px}.map-overlay .eyebrow{font-size:8px}.is-focused .viewer-shell{padding-top:14px}.is-focused .map-stage{padding:8px}.is-focused #map{max-width:min(100%,calc(100dvh - 210px))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.hero-row>div:last-child,.hero-name{min-width:0}.hero-team{flex-shrink:0}

a.button{text-decoration:none}

.hero-cd-line{display:flex;gap:4px;margin:2px 0 5px;flex-wrap:wrap}.cd-badge{position:relative;display:inline-grid;place-items:center;flex:0 0 32px;width:32px;height:32px;overflow:hidden;border-radius:50%;border:1px solid #aab5c6;background:#16222f;color:#fff;font-size:12px;line-height:1;font-variant-numeric:tabular-nums}.cd-badge img{display:block;width:100%;height:100%;object-fit:cover}.cd-cooling img,.cd-locked img{filter:brightness(.35)}.cd-value{position:absolute;inset:0;display:grid;place-items:center;font-weight:700;text-shadow:0 1px 2px #000}.cd-placeholder{color:var(--muted)}.cd-cooling .cd-placeholder,.cd-locked .cd-placeholder{visibility:hidden}
.hero-row{grid-template-columns:56px minmax(0,1fr);align-items:center}.hero-identity{min-width:0;text-align:center}.hero-identity .hero-avatar{width:52px;height:52px;margin:0 auto}.hero-identity .hero-name{display:block;margin-top:5px;font-size:10px;line-height:1.2}.hero-topline .hero-cd-line{margin:0;max-width:100%;justify-content:flex-start}
@media(max-width:360px){.header-inner{gap:8px}.header-actions{gap:8px}.status{gap:4px;padding:5px 6px}}
