:root{--ink:#203d50;--text:#263c4b;--muted:#748590;--accent:#c92443;--line:#dce5eb;--panel:328px}*{box-sizing:border-box}body{margin:0;font:13px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#e2e9ee;color:var(--text);overflow:hidden}button,select,input{font:inherit}button,select{cursor:pointer}button{border:1px solid #d5dfe6;border-radius:8px;background:#fff;color:var(--text);padding:9px 12px;text-align:left;transition:background .15s}button:hover{background:#edf2f6}button.active{background:var(--ink);color:#fff;border-color:var(--ink)}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:#345a73}header{position:fixed;left:20px;right:20px;top:18px;height:58px;display:flex;align-items:center;gap:18px;z-index:5}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;background:#fffffff2;padding:10px 14px;border:1px solid #ffffffb8;border-radius:12px;flex-shrink:0;box-shadow:0 4px 25px #2233440c}.brand-symbol{width:32px;height:32px;display:grid;place-items:center;border:2px solid var(--accent);border-radius:50%;font-size:17px;font-weight:650;color:var(--accent)}.brand strong{display:block;font-size:16px;font-weight:650;letter-spacing:-.3px;color:var(--ink)}.brand small{display:block;font-size:9px;color:#8a98a2;letter-spacing:1.2px}.stadium-picker{position:relative;min-width:210px;background:#fffffff2;border-radius:11px;padding:7px 12px;border:1px solid #ffffffb8}.stadium-picker label{display:block;font-size:9px;letter-spacing:1px;color:var(--muted);font-weight:650}.stadium-picker select{appearance:none;border:0;background:transparent;padding:2px 25px 0 0;font-weight:650;color:var(--ink);width:100%;font-size:13px}.stadium-picker:after{content:'⌄';position:absolute;right:13px;bottom:13px;color:#6e8290;pointer-events:none}.mode-tabs{display:flex;gap:3px;padding:4px;background:#fffffff2;border-radius:11px;margin-left:auto;box-shadow:0 4px 25px #2233440c}.mode-tabs button{border:0;font-size:12px;font-weight:600;padding:10px 15px;text-align:center}.lighting{display:flex;gap:3px;background:#fffffff2;border-radius:11px;padding:4px}.lighting button{border:0;padding:10px 12px;font-size:11px}.lighting[aria-busy=true]{box-shadow:0 0 0 2px #c9244333}aside{position:fixed;left:20px;top:94px;bottom:62px;width:var(--panel);overflow:auto;scrollbar-width:thin;background:#fffffff5;border:1px solid #fff;border-radius:14px;box-shadow:0 8px 40px #162b3c12;padding:18px 17px;z-index:3}.stadium-title{padding:0 0 16px;border-bottom:1px solid #e4ebef;margin-bottom:16px}.stadium-title small{font-size:9px;letter-spacing:1.3px;color:#8d9aa3;font-weight:650}.stadium-title h1{font-size:23px;line-height:1.12;letter-spacing:-.65px;font-weight:650;color:#20394b;margin:5px 0}.stadium-title p{font-size:11px;color:#71828e;margin:0}.label{font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:650;color:#718491;margin:0 0 10px}.views{display:grid;grid-template-columns:1fr 1fr;gap:6px}.views button{font-size:11px;padding:11px 9px;min-height:38px}.divider{height:1px;background:#e4ebef;margin:17px 0}details>summary{cursor:pointer;font-size:11px;font-weight:600;color:#4b6678;padding:5px 0 10px}details .views{margin-top:3px}.toggle{display:flex;align-items:center;justify-content:space-between;padding:7px 0;font-size:12px;cursor:pointer}.toggle input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}.toggle small{display:block;font-size:9px;color:#8f9da6}#stage{position:fixed;left:calc(var(--panel) + 52px);right:20px;top:94px;bottom:62px;border-radius:14px;overflow:hidden;background:#d8e3ec;box-shadow:0 8px 40px #162b3c08}iframe{border:0;width:100%;height:100%;display:block}#scene-chip{position:absolute;top:16px;left:16px;border:1px solid #ffffffb8;background:#ffffffe6;padding:8px 11px;border-radius:8px;font-size:10px;color:#617482;pointer-events:none}#scene-hint{position:absolute;bottom:15px;left:16px;color:#637989;background:#ffffffe3;border-radius:7px;padding:7px 10px;font-size:10px;pointer-events:none}.stage-actions{position:absolute;bottom:15px;right:16px;display:flex;gap:6px}.stage-actions button{background:#fffffff2;font-size:10px;padding:8px 10px}.footer{position:fixed;bottom:15px;left:20px;right:20px;display:flex;align-items:center;justify-content:space-between;color:#69808e;font-size:10px;gap:20px}.footer-left{display:flex;gap:12px;align-items:center}.footer a{text-decoration:none;border-bottom:1px solid #a8bac7}.footer .dot{height:5px;width:5px;border-radius:50%;background:#7e9889}.seat-intro{font-size:11px;color:#768a96;margin:0 0 10px}.tier-tabs{display:flex;gap:4px;background:#edf2f5;padding:4px;border-radius:8px}.tier-tabs button{flex:1;text-align:center;font-size:10px;border:0;background:transparent;padding:7px 3px}.tier-tabs button.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px #18344818}.block-map{width:100%;height:215px;display:block;margin:7px 0}.block-map polygon{stroke:#fff;stroke-width:.8;fill:#dce5eb}.block-map g[role=button]{cursor:pointer;outline:none}.block-map .tier-active polygon{fill:#9eafbc}.block-map .selected polygon{fill:#c92443}.block-map g[role=button]:hover polygon,.block-map g[role=button]:focus polygon{stroke:#203d50;stroke-width:1.6}.block-map text{font-size:7px;text-anchor:middle;dominant-baseline:middle;fill:#fff;pointer-events:none;font-weight:650}.seat-fields{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:6px}.seat-fields label{font-size:9px;color:#748793;letter-spacing:.6px;font-weight:600}.seat-fields select{width:100%;display:block;border:1px solid #d5e0e7;background:#fff;color:#263c4b;border-radius:7px;padding:8px 4px;font-size:11px;margin-top:4px}.seat-detail-heading{display:flex;align-items:center;justify-content:space-between;margin-top:15px;padding-top:12px;border-top:1px solid #e2e9ee;font-size:12px}.seat-detail-heading label{font-size:9px;color:#7c8d99;display:flex;align-items:center;gap:3px}.seat-detail-heading input{accent-color:var(--accent)}#seat-map{width:100%;height:145px;background:#f2f6f8;border-radius:8px;margin-top:7px;display:block;cursor:pointer;touch-action:none}.chosen{font-size:11px;font-weight:600;margin:11px 0 7px}.primary{width:100%;background:var(--accent);border-color:var(--accent);color:#fff;text-align:center;font-weight:650;font-size:12px;padding:11px}.primary:hover{background:#b81f3c}.caveat{font-size:9px;line-height:1.5;color:#8c9ba5;margin:9px 0 0}.info-link{display:flex;justify-content:space-between;padding-top:14px;margin-top:16px;border-top:1px solid #e4ebef;font-size:11px;text-decoration:none}.info-link span{font-size:14px}.load-state{position:absolute;inset:0;background:#e4ebf0f7;display:grid;place-items:center;z-index:6}.load-state>div{width:min(320px,80%)}.load-state small{font-size:10px;letter-spacing:1.6px;color:#7d909d}.load-state h2{font-size:27px;letter-spacing:-.8px;font-weight:600;color:#294457;margin:12px 0 7px}.load-state p{font-size:12px;color:#7c8f9c}.progress{height:3px;background:#d5e0e7;border-radius:3px;overflow:hidden;margin-top:20px}.progress i{display:block;background:var(--accent);height:100%;width:40%;animation:progress 1.5s ease-in-out infinite}@keyframes progress{from{transform:translateX(-100%)}to{transform:translateX(350%)}}.load-state.error .progress{display:none}.load-state button{margin-top:10px;font-size:12px}#seat-view-card{position:absolute;bottom:61px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);background:#fffffff0;border:1px solid #ffffffc9;border-radius:12px;padding:13px 16px;box-shadow:0 8px 32px #142f4824;z-index:4}#seat-view-card strong{font-size:12px;display:block;margin-bottom:8px}#seat-view-card .row{display:flex;justify-content:space-between;gap:12px;align-items:center}#seat-view-card button{font-size:10px;padding:7px 9px}.fov-tabs{display:flex;gap:3px}body.viewing-seat #stage,body.panel-hidden #stage{left:20px}body.viewing-seat aside,body.panel-hidden aside{display:none}body.viewing-seat #scene-hint{font-size:9px}.night{background:#1c2b37}.night header .brand,.night .stadium-picker,.night .mode-tabs,.night .lighting,.night aside{box-shadow:0 8px 30px #0002}.night .footer{color:#a2b4bf}.night .footer a{color:#bbccd8}.hide,[hidden]{display:none!important}#diagnostics{position:fixed;right:20px;bottom:54px;z-index:30;width:350px;background:#fff;border:1px solid #d6e1e8;border-radius:12px;padding:15px;max-height:60vh;overflow:auto;box-shadow:0 10px 50px #1234}#diagnostics h2{font-size:13px;margin:0 0 10px}#diagnostics pre{font:10px/1.4 monospace;white-space:pre-wrap}#diagnostics button{font-size:11px}dialog{border:1px solid #fff;border-radius:16px;padding:25px;max-width:600px;width:calc(100vw - 35px);color:var(--text);box-shadow:0 20px 80px #1235}dialog::backdrop{background:#142c3a66;backdrop-filter:blur(3px)}dialog h2{margin-top:0;font-size:21px}dialog p{font-size:12px;color:#647d8b;line-height:1.7}dialog .dialog-actions{display:flex;justify-content:space-between;align-items:center;margin-top:20px}dialog a{font-size:12px}body.loading .interaction-control{pointer-events:none;opacity:.5}@media(max-width:1100px){:root{--panel:286px}header{gap:10px}.brand{padding:9px 11px}.brand strong{font-size:14px}.brand small{font-size:8px}.brand-symbol{width:28px;height:28px}.stadium-picker{min-width:180px;max-width:200px}.mode-tabs button{font-size:10px;padding:10px 11px}.lighting button{font-size:10px;padding:10px}aside{padding:15px}.views button{font-size:10px}.stadium-title h1{font-size:21px}.block-map{height:190px}#seat-map{height:125px}.stage-actions button{font-size:9px}#scene-hint{max-width:55%;font-size:9px}}@media(max-width:760px){:root{--panel:245px}header{top:10px;left:10px;right:10px;gap:6px;height:54px;flex-wrap:wrap}.brand{padding:8px}.brand strong{font-size:13px}.brand small{display:none}.brand-symbol{width:25px;height:25px}.stadium-picker{min-width:0;flex:1;padding:6px 9px}.stadium-picker label{font-size:8px}.stadium-picker select{font-size:11px}.lighting{padding:3px}.lighting button{padding:8px 7px;font-size:9px}.mode-tabs{position:absolute;top:61px;left:0;margin:0}.mode-tabs button{font-size:11px;padding:9px 12px}aside{top:116px;left:10px;bottom:52px;width:var(--panel);padding:13px;max-height:calc(100dvh - 170px)}#stage{left:10px;right:10px;top:116px;bottom:52px;border-radius:10px}aside{background:#fffffff7;z-index:4}body:not(.panel-hidden):not(.viewing-seat) #stage #scene-chip{display:none}.footer{left:10px;right:10px;bottom:12px;font-size:9px}.footer-left{gap:6px}.footer #model-note{display:none}.stage-actions{right:10px;bottom:10px}.stage-actions button{padding:7px 8px}#scene-hint{left:10px;bottom:10px;max-width:55%}.stadium-title h1{font-size:20px}.views button{font-size:10px;padding:9px 6px}.toggle{font-size:11px}.block-map{height:172px}#seat-map{height:110px}.seat-fields select{font-size:10px}.tier-tabs button{font-size:9px}body.viewing-seat #stage,body.panel-hidden #stage{left:10px}#seat-view-card{bottom:55px}#scene-chip{font-size:9px;top:10px;left:10px}body.viewing-seat .mode-tabs{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.progress i{animation-duration:3s}}

#match-hud{position:absolute;top:16px;right:16px;min-width:205px;padding:9px 11px;border:1px solid #ffffffb8;border-radius:10px;background:#fffffff0;color:#263c4b;box-shadow:0 4px 18px #1231;font-variant-numeric:tabular-nums}.match-caption{display:flex;justify-content:space-between;gap:14px;color:#7b8c97;font-size:8px;letter-spacing:1px}.score-line{display:flex;align-items:center;gap:12px;font-size:11px;margin-top:5px}.score-line strong{font-size:19px;font-weight:650;color:#263f51;letter-spacing:2px}.score-line button{border:0;background:#eaf0f3;padding:3px 7px;font-size:12px;text-align:center;margin-left:auto}#goal-notice{font-size:12px;font-weight:700;color:#c92443;text-align:center;border-top:1px solid #e3e8ec;margin-top:7px;padding-top:6px}.match-actions{display:flex;gap:6px;margin-top:9px}.match-actions button{flex:1;text-align:center;font-size:10px;padding:8px 5px}#match-options{margin-top:-5px}#match-options summary{padding-bottom:2px}body.loading #match-hud{display:none}@media(max-width:1100px){#match-hud{min-width:185px;padding:8px;top:12px;right:12px}.score-line{gap:9px;font-size:10px}.score-line strong{font-size:17px}#scene-chip{max-width:calc(100% - 230px)}}@media(max-width:760px){#match-hud{top:10px;right:10px;min-width:178px}.match-caption{font-size:7px}body:not(.panel-hidden):not(.viewing-seat):not(.free-roaming) #match-hud{display:none}#scene-chip{max-width:calc(100% - 210px)}}

.match-actions{display:grid;grid-template-columns:1fr 1fr}.match-actions #demo-foul{grid-column:1/-1;grid-row:2}#match-phase{margin-top:6px;padding-top:5px;border-top:1px solid #dce5eb;color:#8a5e21;font-size:10px;font-weight:600;text-align:center}#match-events-count:empty{display:none}

body.free-roaming #stage{left:20px}body.free-roaming aside{display:none}@media(max-width:760px){body.free-roaming #stage{left:10px}body.free-roaming .mode-tabs{display:none}}

/* Match controls stay available in the sidebar and when viewing from a seat. */
.match-controls{padding:12px;border:1px solid #dce5eb;border-radius:10px;background:#f7fafb}.match-controls-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.match-controls-heading strong{font-size:12px;color:var(--ink)}#match-status{font-size:9px;color:#6d828f}.match-control-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.match-control-row>.toggle{flex:1;gap:9px}.match-control-row>button{padding:7px 9px;text-align:center;white-space:nowrap;font-size:10px}.match-controls>.toggle{padding:5px 0}.match-controls #match-options{margin-top:7px;border-top:1px solid #e0e8ed;padding-top:6px}.match-controls #match-options>summary{font-size:10px}.match-controls .toggle input,#match-hud .toggle input{width:17px;height:17px;margin:0;flex-shrink:0}#match-hud{min-width:236px;max-width:calc(100% - 28px)}#match-hud .score-line{justify-content:space-between}#match-hud .match-control-row{border-top:1px solid #e0e8ed;margin-top:7px;padding-top:3px}#match-hud .toggle{font-size:10px;gap:8px;padding:5px 0}#match-hud .match-control-row>button{font-size:10px;padding:5px 8px;background:#edf2f5}#match-hud .match-visibility{display:grid;grid-template-columns:1fr 1fr;gap:13px;border-top:1px solid #e0e8ed;padding-top:3px}.toggle input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:1100px){#match-hud{min-width:218px}#scene-chip{max-width:calc(100% - 256px)}}@media(max-width:760px){#match-hud{min-width:218px}.match-controls{padding:9px}.match-control-row{gap:8px}.match-control-row>button{padding:6px 7px;font-size:9px}#scene-chip{max-width:calc(100% - 250px)}}

/* Flow layout follows score/event height, including hidden HUD on small screens. */
#stage-controls{position:absolute;top:16px;right:16px;z-index:4;display:flex;flex-direction:column;align-items:flex-end;gap:8px;width:min(292px,calc(100% - 32px));max-height:min(520px,calc(100% - 80px));overflow-y:auto;scrollbar-width:thin;pointer-events:none}#stage-controls>*{pointer-events:auto;flex-shrink:0}#stage-controls #match-hud{position:relative;inset:auto;width:236px;min-width:0;max-width:100%}#stage-controls #environment-controls{position:relative;inset:auto;width:100%;max-height:none;margin:0}body.viewing-seat #stage-controls{max-height:calc(100% - 160px)}@media(max-width:1100px){#stage-controls{top:12px;right:12px;width:min(276px,calc(100% - 24px))}#stage-controls #match-hud{width:218px}}@media(max-width:760px){#stage-controls{top:10px;right:10px;width:min(270px,calc(100% - 20px));max-height:calc(100% - 72px)}body.viewing-seat #stage-controls{max-height:calc(100% - 150px)}}

/* Club identity belongs to the selected stadium; the app mark stays generic. */
.stadium-picker-crest{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:32px;height:40px;object-fit:contain;pointer-events:none}
.stadium-picker.has-club-crest{padding-left:51px;min-width:245px}
.stadium-title{display:flex;align-items:center;gap:10px}
.stadium-title-crest{display:block;width:44px;height:56px;object-fit:contain;flex:0 0 44px}
.stadium-title-copy{min-width:0;flex:1}
@media(max-width:1100px){.stadium-picker.has-club-crest{min-width:220px;max-width:240px}}
@media(max-width:760px){.stadium-picker.has-club-crest{min-width:0;max-width:none;padding-left:41px}.stadium-picker-crest{left:7px;width:27px;height:34px}.stadium-title-crest{width:36px;height:46px;flex-basis:36px}.stadium-title{gap:8px}}
