@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Noto+Sans+KR:wght@400;500;700&display=swap');
*{box-sizing:border-box}body{margin:0;background:#060711;color:#fff;font:14px 'Noto Sans KR',sans-serif;overflow:hidden}button,a,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid #ffffff26;background:#151729cc;padding:12px 18px;border-radius:5px;transition:.2s}button:hover{background:#ffffff20;border-color:#ffffff70}button:focus-visible{outline:2px solid #c1a4ff}button:disabled{opacity:.5}#world{position:fixed;width:100%;height:100%;touch-action:none}#shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,#050614d9,transparent 90%),linear-gradient(0deg,#050614b0,transparent 40%)}header{position:absolute;top:32px;left:4%;right:4%;display:flex;align-items:center;gap:20px;z-index:3}.brand{font:bold 27px 'Barlow Condensed';letter-spacing:3px}.brand span{color:#b48aff}.brand small{display:block;font:8px sans-serif;letter-spacing:3px;margin-top:6px}.pill{margin-left:auto;font-size:10px;letter-spacing:1px;border:1px solid #ffffff26;border-radius:30px;padding:10px 16px}#quality{font-size:10px}#welcome{position:absolute;left:8%;top:24%;max-width:850px}.eyebrow{color:#bca6fa;font-size:12px;letter-spacing:4px}h1{font:800 clamp(52px,7.6vw,108px)/.95 'Barlow Condensed',sans-serif;letter-spacing:-1px;margin:24px 0}h1 em{font-style:normal;-webkit-text-stroke:1px #d3c6f6;color:transparent}p{color:#a8a9bb;line-height:1.8}.match{display:flex;align-items:center;gap:20px;margin-top:30px}.match button{width:240px;text-align:left;background:linear-gradient(120deg,#a96cf52e,#111424bb);border-top:2px solid #ac78f9;padding:19px}.match button:last-child{border-top-color:#fa65aa;background:linear-gradient(120deg,#fa65aa20,#111424bb)}.match small{font-size:9px;letter-spacing:2px;color:#bbaccf}.match strong{display:block;font:700 34px 'Barlow Condensed';margin:8px 0}.match span{font-size:10px;color:#c6bfd6}.match i{font:italic 22px 'Barlow Condensed';color:#a4a4b6}.fine{font-size:10px;color:#9797ac;line-height:1.9;margin-top:25px}footer{position:absolute;bottom:18px;left:4%;font-size:9px;letter-spacing:1px;color:#8e8caa;pointer-events:none}.score{position:absolute;top:115px;left:50%;transform:translateX(-50%);width:min(530px,90%);display:flex;align-items:center;justify-content:space-between;text-align:center;background:#080a18b0;border:1px solid #ffffff1c;border-top:2px solid #b986ff;border-radius:8px;padding:15px 28px;backdrop-filter:blur(12px)}.score b{display:block;font:600 42px 'Barlow Condensed'}.score>div:first-child b{color:#bc89ff}.score>div:last-child b{color:#ff88bb}.score small{font-size:10px;color:#c4b9d4}.clock span,.clock small{display:block;font-size:8px;letter-spacing:2px}.clock strong{font:600 30px 'Barlow Condensed'}#seatLabel{position:absolute;left:4%;top:130px;color:#b5adcf;font-size:10px;letter-spacing:2px}nav{position:absolute;left:4%;top:195px;display:flex;flex-direction:column;gap:8px}nav button{text-align:left;font-size:11px;padding:11px 15px}.actions{position:absolute;bottom:65px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.actions button{display:flex;gap:12px;align-items:center;font-size:22px;padding:12px 20px;background:#101222df}.actions span{font-size:11px;text-align:left;white-space:nowrap}.actions small{display:block;color:#a999c9;font-size:7px;margin-top:4px;letter-spacing:1px}aside{position:absolute;right:4%;top:105px;width:320px;background:#0d1023f5;border:1px solid #ffffff22;padding:26px;max-height:75vh;overflow:auto;border-radius:10px;z-index:8}aside h2{font:600 24px 'Barlow Condensed';letter-spacing:2px}aside p{font-size:10px}label{display:block;font-size:11px;margin:18px 0}input{width:100%;accent-color:#bb89ff;margin-top:12px}select{background:#1b1d32;color:white;border:1px solid #ffffff25;padding:9px;width:100%;margin-top:8px}aside>button:not(.close){width:100%;margin:5px 0;font-size:11px}.close{float:right;padding:4px 10px;border:0;font-size:24px}#intro{position:absolute;inset:0;background:linear-gradient(0deg,#080919aa,transparent,#08091955);text-align:center;padding-top:30vh;pointer-events:none}#intro small{letter-spacing:8px;color:#c6b2ff}#intro h2{font:700 clamp(32px,6vw,80px) 'Barlow Condensed';margin:20px 0}#intro button{pointer-events:auto}#videoPanel{position:absolute;inset:10% 15%;z-index:10;background:#0b0d1c;border:1px solid #ffffff30;padding:24px;box-shadow:0 0 150px #000;border-radius:12px;overflow:auto}.videoTop{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.videoTop small{font-size:9px;letter-spacing:2px;color:#ad94e3}.videoTop h2{font:600 26px 'Barlow Condensed';margin:7px 0}#player{aspect-ratio:16/9;min-height:200px;width:100%;background:#000}#player iframe{width:100%;height:100%;border:0;min-height:200px}#videoPanel p,#videoPanel a{font-size:11px;color:#b8abc9}dialog{background:#111427;color:#fff;border:1px solid #ffffff30;border-radius:12px;padding:30px;max-width:520px;width:90%}dialog::backdrop{background:#000a}dialog h2{font:600 36px 'Barlow Condensed'}dialog p{font-size:12px}dialog button{margin-top:10px}.bracketRow{display:flex;justify-content:space-between;padding:20px 0;border-bottom:1px solid #ffffff20}#toast{position:absolute;bottom:160px;left:50%;transform:translateX(-50%);background:#181329eb;border:1px solid #d6b9ff55;border-radius:40px;padding:12px 25px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .3s}[hidden]{display:none!important}@media(max-width:650px){header{top:20px}.brand{font-size:20px}.pill{display:none}#quality{margin-left:auto}#welcome{left:7%;right:7%;top:24%}h1{font-size:65px}.match{gap:9px}.match button{width:46%;padding:13px}.match strong{font-size:27px}.match span{font-size:8px}.eyebrow{font-size:9px}.score{top:86px;padding:10px 20px}.score b{font-size:32px}#seatLabel{top:174px;font-size:8px}nav{top:200px;gap:5px}nav button{font-size:9px;padding:8px 10px}.actions{bottom:60px;width:94%;gap:5px}.actions button{padding:10px 8px;gap:5px;flex:1;font-size:17px}.actions span{font-size:9px}.actions small{font-size:5px}footer{font-size:7px;right:4%;line-height:1.8}aside{width:90%;right:5%;top:90px}#videoPanel{inset:12% 3%;padding:15px}#player{aspect-ratio:1.25}.videoTop h2{font-size:22px}}

body.entered #shade{background:linear-gradient(0deg,#05061470,transparent 35%,transparent 75%,#05061450)}
@media(max-width:650px){nav{display:grid;grid-template-columns:1fr 1fr;width:230px;top:200px}nav button{padding:7px 8px}}

/* Official player projected onto the physical scoreboard plane. */
#videoPanel{position:fixed;inset:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible;pointer-events:none;z-index:4}
#player{position:fixed;top:0;left:0;width:760px;height:380px;min-height:0;aspect-ratio:auto;transform-origin:0 0;pointer-events:auto;background:#000;will-change:transform}
#player iframe{width:760px;height:380px;min-height:0;display:block}
.videoTop{position:fixed;right:4%;top:100px;max-width:260px;margin:0;padding:10px 12px;background:#0b0d1ce8;border:1px solid #ffffff25;border-radius:6px;pointer-events:auto;gap:12px}
.videoTop h2{font-size:17px}.videoTop small{font-size:7px}.videoTop button{font-size:9px;padding:8px}
#boardStatus{position:fixed;bottom:35px;left:50%;transform:translateX(-50%);max-width:70%;text-align:center;background:#090b19d9;padding:7px 12px;pointer-events:none}
#youtubeLink{position:fixed;right:4%;bottom:30px;background:#0b0d1ce8;padding:8px;pointer-events:auto}
body.board-view .score{left:4%;transform:none;top:100px;width:250px;padding:8px 12px}body.board-view .score b{font-size:26px}body.board-view .score small{font-size:8px}body.board-view .score strong{font-size:22px}body.board-view #seatLabel{display:none}
@media(max-width:650px){body.board-view .score{left:3%;top:85px;width:180px}.videoTop{right:3%;top:85px;max-width:160px;padding:5px}.videoTop h2{font-size:12px}.videoTop small{display:none}.videoTop button{padding:5px}.board-view nav{top:auto;bottom:135px;grid-template-columns:repeat(3,1fr);width:94%;left:3%}#boardStatus{bottom:27px;left:3%;transform:none;max-width:60%;font-size:8px}#youtubeLink{right:3%;bottom:30px;max-width:32%;font-size:8px}}

#viewLabel{position:fixed;left:4%;top:177px;font-size:10px;color:#cdb8ef;pointer-events:none}nav button[aria-pressed="true"]{border-color:#bd8bff;background:#3b245d}body.board-view nav{gap:5px}body.board-view nav button{padding:8px 12px}@media(max-width:650px){#viewLabel{top:160px;font-size:9px}.board-view nav{bottom:135px;grid-template-columns:repeat(4,1fr);width:94%}.board-view nav button{font-size:8px;padding:7px 4px}}

.genderChoice{display:flex;align-items:center;gap:9px;margin:14px 0;font-size:12px}.genderChoice button{padding:9px 18px}.genderChoice button[aria-pressed="true"]{border-color:#c9a2ff;background:#493063}.genderChoice small{font-size:10px;color:#bca9d6}#crowdAudit{line-height:1.7;color:#d0b8ff}@media(max-width:650px){#welcome{top:18%}#welcome h1{font-size:48px}.genderChoice{flex-wrap:wrap}.genderChoice small{flex-basis:100%}.genderChoice button{min-height:42px}}

#toast{top:72px;bottom:auto;max-width:70%;font-size:10px;padding:7px 16px}
/* Playback messages occupy a dedicated bottom strip, never the cheer controls. */
#boardStatus{bottom:calc(8px + env(safe-area-inset-bottom));left:3%;transform:none;max-width:60%;margin:0;font-size:9px;line-height:1.4;padding:6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#youtubeLink{bottom:calc(8px + env(safe-area-inset-bottom));right:3%;max-width:33%;font-size:9px;line-height:1.4;padding:6px 8px}
body.entered footer{display:none}.actions{bottom:calc(52px + env(safe-area-inset-bottom))}
@media(max-width:650px){#boardStatus,#youtubeLink{font-size:8px}.actions{bottom:calc(50px + env(safe-area-inset-bottom))}.board-view nav{bottom:calc(125px + env(safe-area-inset-bottom))}}

#tournamentRules{max-width:540px;margin:12px 0;font-size:11px;padding:10px 12px;border:1px solid #b48aff44;border-radius:6px;background:#0a0c1ddd}#tournamentRules summary{cursor:pointer;color:#d4b8ff}#tournamentRules p{font-size:10px;margin:6px 0}#welcome{max-height:74vh;overflow:auto;padding-right:12px}@media(max-width:650px){#welcome{max-height:76vh}#tournamentRules{font-size:10px}}
@media(max-width:650px){.board-view nav{display:flex;flex-direction:row;overflow-x:auto;height:42px;bottom:calc(125px + env(safe-area-inset-bottom));gap:5px;scrollbar-width:thin}.board-view nav button{flex:0 0 auto;min-width:80px;white-space:nowrap}body.board-view .score{padding:6px 10px}.videoTop{max-width:145px}#viewLabel{top:150px}}
@media(max-height:500px){body.entered header{display:none}body.board-view .score{top:4px;left:3%;height:50px}.videoTop{top:4px}.board-view nav{display:flex;flex-direction:row;overflow-x:auto;top:auto;bottom:40px;left:3%;width:94%;height:32px}.board-view nav button{flex:0 0 auto;font-size:8px;padding:4px}.actions{right:3%;left:auto;transform:none;bottom:80px;flex-direction:column}.actions button{padding:5px;font-size:12px}.actions span{font-size:8px}#viewLabel{top:58px}}

body:not(.entered) #shade{background:linear-gradient(90deg,#050614df 15%,#05061480 55%,transparent)}#timeNotice{top:15%;max-height:50vh}#welcome{top:17%;max-height:77vh}#welcome h1{font-size:58px;margin:14px 0}#welcome .fine{margin:12px 0}@media(max-width:650px){#welcome h1{font-size:38px}#welcome{top:15%;max-height:79vh}}

body.player-docked .videoTop{top:37px;right:12px;width:240px;height:34px;padding:4px 8px}body.player-docked .videoTop small{display:none}body.player-docked .videoTop h2{font-size:12px;margin:0}body.player-docked #quality{visibility:hidden}@media(max-width:650px){body.player-docked .score{top:285px;left:auto;right:12px;width:240px;height:50px}body.player-docked #viewLabel{top:62px;left:3%;max-width:50%;font-size:8px}body.player-docked header .brand{font-size:14px}body.player-docked .videoTop{max-width:240px}}

#gateDialog{max-height:88vh;overflow:auto}#gateSeats{padding:12px;border:1px solid #a889da44;border-radius:8px}#gateSeats label{margin:8px 0}.seatFields{display:flex;gap:10px}.seatFields label{flex:1}#selectedSeatText{color:#e1bcff}body.board-view #seatLabel{display:block;position:fixed;top:172px;left:4%;max-width:235px;font-size:8px;letter-spacing:0}body.board-view #viewLabel{top:185px}@media(max-width:650px){body.board-view #seatLabel{top:145px;left:3%;max-width:180px}body.board-view #viewLabel{top:157px}body.player-docked #seatLabel{top:335px;right:12px;left:auto}body.player-docked #viewLabel{top:62px}}

#seatMap{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;max-height:140px;overflow:auto;margin:8px 0}#seatMap button{padding:5px 2px;min-width:0;font-size:10px;border-radius:4px}#seatMap button[aria-pressed=true]{background:#b693ff;color:#111}

#gateDialog{width:min(720px,94vw)}#stadiumSeatPlan{display:block;width:100%;height:300px;background:#070e17;border:1px solid #6e5c98;border-radius:12px;cursor:crosshair;touch-action:manipulation}.mapTools{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.mapTools button{font-size:11px;padding:8px}.mapTools button[aria-pressed=true]{background:#7958b5}.mapHelp{font-size:10px!important;color:#c9bfd7}.selectedSeatPulse{animation:seatPulse 1.5s infinite}@keyframes seatPulse{50%{stroke-opacity:.3}}#seatPreviewBar{position:fixed;z-index:12;left:50%;bottom:20px;transform:translateX(-50%);background:#11152bee;padding:16px;border:1px solid #a58ecb;border-radius:12px;max-width:90vw;text-align:center}#seatPreviewBar strong{display:block;font-size:13px;margin-bottom:8px}@media(max-width:650px){#stadiumSeatPlan{height:260px}.mapTools button{flex:1;font-size:10px;padding:10px 4px}}


body.board-view:not(.player-docked) .score{top:auto;bottom:132px;left:12px;width:230px;height:45px;padding:4px}body.board-view:not(.player-docked) nav{display:flex;flex-direction:row;left:12px;top:auto;bottom:90px;width:calc(100% - 24px);height:36px;overflow:auto}body.board-view:not(.player-docked) nav button{white-space:nowrap;flex:0 0 auto;padding:7px;font-size:9px}body.board-view:not(.player-docked) .actions{bottom:40px}body.board-view:not(.player-docked) #seatLabel{top:60px}body.board-view:not(.player-docked) #viewLabel{top:70px}body.board-view:not(.player-docked) .videoTop{top:5px;right:12px;height:55px;max-width:240px}body.board-view:not(.player-docked) .videoTop h2{font-size:10px}

body.board-view:not(.player-docked) header .brand small{visibility:hidden}body.board-view:not(.player-docked) #seatLabel{top:auto;bottom:183px;left:12px}body.board-view:not(.player-docked) #viewLabel{top:auto;bottom:173px;left:12px}

#menuToggle{position:fixed;z-index:9;left:12px;bottom:12px;font-size:11px;padding:8px 12px}body.menus-collapsed #hud nav,body.menus-collapsed .actions,body.menus-collapsed .score,body.menus-collapsed #seatLabel,body.menus-collapsed #viewLabel{display:none!important}#exitDialog,#reentryDialog{max-width:420px}#exitDialog p,#reentryDialog p{font-size:14px}

/* Seat preview is a compact toolbar, not a full-height settings aside. */
#seatPreviewBar{inset:auto 12px auto 12px;top:calc(12px + env(safe-area-inset-top));width:auto;max-width:none;height:auto;min-height:0;max-height:110px;transform:none;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#11152be8;overflow:visible}#seatPreviewBar[hidden]{display:none}#seatPreviewBar strong{margin:0;font-size:12px;line-height:1.5}#seatPreviewBar>button{width:auto;flex-shrink:0;margin:0;padding:10px;font-size:11px}.seat-preview header,.seat-preview footer,.seat-preview #shade,.seat-preview #hud,.seat-preview #videoPanel{display:none!important}

#stageLightControl{display:flex;flex-wrap:wrap;gap:8px;align-items:center}#stageLightControl input{width:100%}#stageLightControl small{font-size:10px;color:#c0b9d2}#stageLightControl button{padding:7px}

.score{display:none!important}.messages-open #videoPanel{visibility:hidden}

#viewLabel{display:none!important}
#modal:has(.footballBracketScroll){max-width:96vw;width:96vw;max-height:92dvh;overflow:auto;padding:20px}#modal:has(.footballBracketScroll) .close{position:sticky;top:0;float:right;z-index:2;background:#231b35}.footballBracketScroll{overflow:auto;max-height:70dvh;touch-action:pan-x pan-y;border:1px solid #6a527f;border-radius:12px;background:#080d19}.footballBracketSvg{display:block;width:1800px;max-width:none;height:auto}.bracketZoom{display:flex;gap:8px;margin:10px 0;align-items:center}.bracketZoom button{padding:9px 14px}.bracketZoom small{font-size:11px;color:#c3b3d6}#leagueBracketList:has(.footballBracketScroll){max-height:none}.footballBracketScroll:focus-visible{outline:2px solid #e6caff}

.board-view .videoTop{display:none!important}

/* Approved original identity; bounded slots keep controls clear. */
header .brand{flex:0 1 180px;min-width:0;line-height:0;letter-spacing:0}header .brand img{display:block;width:180px;max-width:100%;height:auto;max-height:64px;object-fit:contain;object-position:left center}.entryLogo{display:block;width:227px;max-width:70vw;height:80px;object-fit:contain;object-position:left;margin:0 0 8px}.introLogo{display:block;width:227px;max-width:65vw;height:80px;object-fit:contain;margin:0 auto 12px}@media(max-width:600px){header .brand{flex-basis:136px}header .brand img{width:136px;max-height:48px}.entryLogo{width:180px;height:64px;margin-bottom:4px}.introLogo{width:180px;height:64px}}

/* Keep the video exit reachable even while the title overlay is hidden. */
#boardClose{position:fixed;z-index:20;top:calc(12px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));width:44px;height:44px;padding:0;pointer-events:auto;background:#171328ee;font-size:22px;line-height:1;border-radius:8px}
#supportDialog{max-width:440px;max-height:min(85dvh,680px);overflow:auto;padding:24px;color:#fff}#supportDialog h2{font:700 22px/1.3 'Noto Sans KR',sans-serif;margin:0}#supportDialog p{font-size:14px;line-height:1.6;color:#ddd5ea}#supportDialog .supportHead{display:flex;align-items:center;justify-content:space-between;gap:16px}#supportDialog .supportHead button{font-size:24px;margin:0;min-width:44px;min-height:44px;padding:6px}#supportDialog input{background:#0a0b17;border:1px solid #a08ab7;border-radius:8px;padding:12px;color:#fff;font-size:16px}#supportDialog>button{width:100%;min-height:44px}#supportDialog button:focus-visible,#supportDialog input:focus-visible{outline:3px solid #ddbaff;outline-offset:3px}
@media(max-width:650px){#supportDialog{width:calc(100vw - 24px);padding:18px}}

/* High contrast readable introduction, including short mobile viewports. */
#intro{z-index:15;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(4,5,18,.80),rgba(4,5,18,.58),rgba(4,5,18,.84));overflow:auto}#intro h2{font-size:clamp(30px,6vw,64px);line-height:1.12;margin:12px 0;color:#fff;text-shadow:0 2px 9px #000}#introSub{font:600 clamp(16px,3vw,21px)/1.55 'Noto Sans KR',sans-serif;color:#fff;background:rgba(8,9,24,.89);border:1px solid #a28cc466;border-radius:12px;padding:10px 16px;margin:6px auto 12px;max-width:min(90vw,650px);text-wrap:balance}#intro #skip{min-height:44px;font-size:14px}#intro small{letter-spacing:3px}#seatMap{grid-template-columns:repeat(5,minmax(44px,1fr));max-height:190px}#seatMap button{min-width:44px;min-height:44px;font-size:12px;padding:8px 2px}.visuallyHidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-height:500px){#intro .introLogo{height:38px;margin:0}#intro h2{font-size:26px;margin:6px}#introSub{font-size:14px;padding:6px 10px;line-height:1.3}}

#supportQr{display:block;width:min(100%,360px);height:auto;max-height:36dvh;object-fit:contain;background:#fff;margin:12px auto}#supportDialog a{display:block;color:#e6c9ff;min-height:44px;padding:10px;text-align:center}

#boardPlay{position:fixed;z-index:20;top:calc(12px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));min-height:44px;padding:10px 14px;pointer-events:auto;background:#251842ef;font-size:12px;border-radius:8px}

#flatPlayer{position:fixed;z-index:20;top:calc(62px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));min-height:44px;padding:10px 14px;pointer-events:auto;background:#251842ef;font-size:12px;border-radius:8px}

#teamColorStatus{font-size:12px;color:#e5dcf2;line-height:1.65;padding:10px;margin-bottom:10px;background:#0b0c1de8;border:1px solid #8c71ad66;border-radius:8px}#teamColorStatus>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:3px 0}#teamColorStatus a{color:#dec0ff}.teamColorSwatch{display:inline-block;width:24px;height:16px;flex:0 0 24px;border:1px solid #ffffff99;border-radius:3px}
#introAudioStatus { color:#fff; background:rgba(6,8,24,.88); border-radius:10px; padding:.5rem .8rem; font-size:clamp(.9rem,2vw,1rem); max-width:38rem; }
#intro .audioHint { color:#e3e6f8; font-size:.85rem; margin:.35rem 1rem; }
#introAudioRetry { min-height:44px; }
#audioHelpStatus { color:#f2f3ff; }
#audioAlert{position:fixed;z-index:12;right:12px;top:calc(64px + env(safe-area-inset-top));max-width:min(360px,calc(100vw - 24px));padding:10px;background:#111427f2;border:1px solid #bca6fa;border-radius:8px;color:#fff;font-size:13px;line-height:1.5}#audioAlert button{min-height:40px;margin:6px 5px 0 0;padding:8px}#audioAlertClose{float:right}

/* A short route for first-time fans, without inventing live attendance. */
.quickEntry{border:1px solid #b58fe6;border-radius:12px;padding:16px;margin:16px 0;background:linear-gradient(125deg,#38254d,#131a32)}.quickEntry strong{font-size:17px}.quickEntry label{margin:10px 0 4px}.quickEntry select{font-size:14px!important;min-height:44px}.quickEntry button{width:100%;min-height:48px;margin:10px 0;background:#7450a1;font-size:13px}.quickEntry small{display:block!important;line-height:1.6;font-size:11px!important;letter-spacing:0!important;color:#e9def5!important}#leaguePanel p{font-size:13px}#leaguePanel summary{font-size:13px;line-height:1.6}#leaguePanel label{font-size:13px}#leaguePanel .leagueNotice{font-size:11px}body:not(.board-view) #hud nav{max-height:calc(100dvh - 315px);overflow:auto;overscroll-behavior:contain}#hud nav button{min-height:40px}#missionToggle{position:fixed;z-index:9;right:12px;bottom:12px;padding:8px 12px;font-size:11px;min-height:36px;background:#261e38}#missionCard{position:fixed;z-index:11;right:12px;bottom:58px;width:min(330px,calc(100vw - 24px));padding:16px;border-radius:12px;background:#141326f5;border:1px solid #b394d5;color:#fff}#missionCard ul{list-style:none;padding:0;font-size:13px;line-height:1.9}#missionCard li.done{color:#b8ebc9}#missionCard p{font-size:12px;color:#d2c9e3;margin:6px 0 0}#lobbyConfirm{max-height:85dvh;overflow:auto}#lobbyConfirm h2{font:700 24px/1.35 'Noto Sans KR',sans-serif}#lobbyConfirm button{min-height:44px}#lobbyConfirm p{font-size:14px}#toast{z-index:25}#boardStatus{left:145px;max-width:calc(100vw - 285px)}@media(max-width:650px){#leaguePanel p{font-size:12px}.quickEntry{padding:13px}.quickEntry strong{font-size:16px}#welcome{bottom:24px;max-height:none}#hud nav button{min-height:44px}body:not(.board-view) #hud nav{width:calc(100vw - 24px);left:12px;max-height:calc(100dvh - 330px)}#missionToggle{font-size:10px}#boardStatus{bottom:94px;left:12px;max-width:calc(100vw - 24px)}}@media(max-height:500px){#welcome{top:90px;bottom:12px}#welcome h1{font-size:32px}.entryLogo{display:none}body:not(.board-view) #hud nav{top:80px;max-height:calc(100dvh - 170px)}}

.public-cheer-dialog{width:min(570px,calc(100vw - 24px));max-width:570px;max-height:88dvh;overflow:auto;padding:22px;background:#151326;color:#fff}.public-cheer-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.public-cheer-head h2{font:700 23px/1.35 'Noto Sans KR',sans-serif;margin:0}.public-cheer-dialog p{font-size:13px;color:#d9d1e8;line-height:1.65}.public-cheer-dialog button{min-height:44px}.public-cheer-notice{padding:12px;border:1px solid #8972a5;border-radius:8px;background:#241b38}.public-cheer-tools{display:flex;gap:8px}.public-cheer-tools button{flex:1}.public-cheer-list{padding:0;list-style:none;max-height:260px;overflow:auto}.public-cheer-list li{border:1px solid #554469;border-radius:9px;padding:12px;margin:9px 0}.public-cheer-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.public-cheer-meta time{font-size:11px;color:#a99dbb}.public-cheer-list p{color:#fff;overflow-wrap:anywhere;white-space:pre-wrap;margin:8px 0}.public-cheer-dialog .public-cheer-report-open{font-size:11px;padding:6px 12px}.public-cheer-dialog label{font-size:13px;margin:12px 0 5px}.public-cheer-dialog input,.public-cheer-dialog textarea{display:block;width:100%;margin:6px 0;border:1px solid #8f75aa;background:#0b0b18;color:#fff;border-radius:6px;padding:10px;font:inherit;font-size:16px}.public-cheer-submit{width:100%;background:#745096}.public-cheer-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important}.public-cheer-report{padding:14px;border:1px solid #a28ab9;border-radius:8px;background:#241c32}.public-cheer-report button{margin-right:8px}

.lightBoardEntry{display:inline-block;color:#f0d6ff;background:#302040;border:1px solid #b98cdd;border-radius:8px;padding:12px 16px;font-size:14px;line-height:1.5;text-decoration:none;margin:8px 0}

/* Real server attendance is deliberately distinct from the 3D demo score. */
.visitor-counter{position:relative;flex-shrink:0;border:1px solid #bba0e766;background:#161225ed;border-radius:9px;font-size:11px;letter-spacing:0;z-index:5;color:#ded3ef}.visitor-counter summary{cursor:pointer;padding:10px 13px;white-space:nowrap;list-style-position:inside}.visitor-counter b{color:#f1dbff;font-size:15px;font-variant-numeric:tabular-nums}.visitor-details{position:absolute;right:0;top:100%;width:min(340px,86vw);padding:17px;background:#161225;border:1px solid #bba0e766;border-radius:9px;box-shadow:0 15px 40px #0009;max-height:60vh;overflow:auto}.visitor-details p{font-size:11px!important;line-height:1.65;color:#c8bad7!important;margin:9px 0}.visitor-details strong{font-size:12px}.visitor-counter[data-connection=stale] summary{color:#e9c080}main>.visitor-counter{width:fit-content;margin-top:16px}main>.visitor-counter .visitor-details{left:0;right:auto}header{gap:12px}header .pill{font-size:9px;padding:8px 10px}@media(max-width:850px){header .pill{display:none}header .visitor-counter{margin-left:auto}header .brand img{max-width:150px}header{left:3%;right:3%}}@media(max-width:530px){header{gap:6px}header .brand img{max-width:95px}header .visitor-counter summary{font-size:9px;padding:8px}header .visitor-counter b{font-size:12px}header #quality{padding:8px 6px;font-size:8px}.visitor-details{width:min(320px,90vw)}}

/* Real browser-session priority is visually separate from the simulated round. */
.presence-entry-note{font-size:12px!important;line-height:1.7!important;color:#d9c7ec!important}
.live-presence{max-width:600px;margin:0 auto 12px;padding:14px 18px;border:1px solid #a27ad1;border-radius:15px;background:linear-gradient(120deg,#241838ef,#141d32f2);box-shadow:0 8px 24px #0005;text-align:center;pointer-events:auto}
.live-presence>strong{font-size:15px;color:#f4ddff}.live-team-counts{display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:10px;margin:10px 0 7px}.live-team-counts div{display:grid;gap:2px}.live-team-counts span{font-size:12px;color:#e0d1ef}.live-team-counts b{font:700 27px/1.1 sans-serif;color:#fff}.live-team-counts small{font-size:10px;color:#bdaecc}.live-presence>p{font-size:12px;margin:7px 0}.live-presence>small{display:block;font-size:10px;line-height:1.6;color:#c8bbd8}.live-presence details{font-size:11px;color:#d7c6e6;margin-top:6px}.live-presence details p{font-size:11px;line-height:1.6}.live-presence[data-connection=stale] .live-team-counts b{color:#b8acc4}.live-presence[data-connection=stale] #liveStatus{color:#e5c98b}
@media(max-width:650px){.live-presence{padding:10px 12px;margin-bottom:8px}.live-presence>strong{font-size:13px}.live-team-counts b{font-size:23px}.live-team-counts{margin:7px 0}}

#livePresence{position:fixed;z-index:4;right:12px;top:104px;width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 190px);overflow:auto;margin:0}
body.board-view #livePresence{top:auto;bottom:58px;width:270px;padding:9px 12px}body.board-view #livePresence>strong{font-size:11px}body.board-view #livePresence>small,body.board-view #livePresence details{display:none}body.board-view #livePresence .live-team-counts{margin:4px 0}body.board-view #livePresence .live-team-counts b{font-size:19px}body.board-view #livePresence>p{font-size:10px;margin:4px 0}
@media(max-width:650px){#livePresence{top:85px;width:calc(100vw - 24px);max-height:210px}body:not(.board-view) #hud nav{top:308px;max-height:calc(100dvh - 438px)}body.board-view #livePresence{width:min(245px,calc(100vw - 24px));bottom:58px}}
@media(max-height:500px){#livePresence{top:76px;max-height:calc(100dvh - 135px);width:250px}body:not(.board-view) #hud nav{top:80px;width:calc(100vw - 290px);max-height:calc(100dvh - 150px)}}

/* One responsive HUD owns the bottom controls. Keep a separate safe strip for
   the host's bottom-right editor badge and mobile system/browser UI. */
:root {
  --arena-bottom-safe: calc(64px + env(safe-area-inset-bottom));
  --arena-playback-row: 0px;
}
body {
  --arena-dock-bottom: calc(var(--arena-bottom-safe) + var(--arena-playback-row));
}
body:has(#videoPanel:not([hidden]) #boardStatus:not([hidden])),
body:has(#videoPanel:not([hidden]) #youtubeLink:not([hidden])) {
  --arena-playback-row: 52px;
}
body.entered #hud {
  position: fixed;
  inset: auto max(12px, env(safe-area-inset-right)) var(--arena-dock-bottom) max(12px, env(safe-area-inset-left));
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  grid-auto-rows: max-content;
  grid-template-areas: "checklist checklist" "seat presence" "nav presence" "actions presence" "menu mission";
  gap: 8px 12px;
  align-items: end;
  max-height: calc(100dvh - var(--arena-dock-bottom) - 120px - env(safe-area-inset-top));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  pointer-events: none;
}
body.entered #hud > :is(nav, .actions, #livePresence, #menuToggle, #missionToggle, #missionCard, #controls, #audioAlert) {
  pointer-events: auto;
}
body.entered #hud nav {
  grid-area: nav;
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 64px;
  max-height: none;
  margin: 0;
  padding: 3px 3px 7px;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-padding-inline: 3px;
  border: 1px solid #bca1e733;
  border-radius: 9px;
  background: #0b0c1de8;
}
body.entered #hud nav button {
  flex: 0 0 auto;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 11px;
  white-space: nowrap;
}
body.entered #hud .actions {
  grid-area: actions;
  position: relative;
  inset: auto;
  transform: none;
  display: flex;
  flex-direction: row;
  justify-self: center;
  width: min(100%, 620px);
  min-width: 0;
  gap: 6px;
  margin: 0;
}
body.entered #hud .actions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 54px;
  justify-content: center;
  padding: 8px 10px;
  gap: 7px;
  font-size: 21px;
}
body.entered #hud .actions span { font-size: 11px; }
body.entered #hud .actions small { font-size: 7px; }
body.entered #hud #livePresence {
  grid-area: presence;
  position: relative;
  inset: auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: 190px;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
body.entered #hud #livePresence > strong { font-size: 12px; }
body.entered #hud #livePresence > p { margin: 4px 0; font-size: 11px; line-height: 1.5; }
body.entered #hud .live-team-counts { margin: 5px 0; gap: 6px; }
body.entered #hud .live-team-counts div { min-width: 0; }
body.entered #hud .live-team-counts span { overflow-wrap: anywhere; }
body.entered #hud .live-team-counts b { font-size: 23px; }
body.entered #hud #seatLabel {
  grid-area: seat;
  position: relative;
  inset: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
body.entered #hud :is(#menuToggle, #missionToggle) {
  position: relative;
  inset: auto;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
}
body.entered #hud #menuToggle { grid-area: menu; justify-self: start; }
body.entered #hud #missionToggle { grid-area: mission; justify-self: end; }
body.entered #hud #missionCard {
  grid-area: checklist;
  position: relative;
  inset: auto;
  justify-self: end;
  width: min(100%, 540px);
  max-height: 180px;
  overflow: auto;
  overscroll-behavior: contain;
}
body.entered #hud #controls {
  position: fixed;
  top: calc(76px + env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--arena-bottom-safe) - 88px - env(safe-area-inset-top));
}
body.entered.menus-collapsed #hud {
  grid-template-areas: "checklist checklist" "presence presence" "menu mission";
}
body.entered.menus-collapsed #hud #livePresence {
  justify-self: end;
  width: min(100%, 420px);
  max-height: 160px;
}
/* Playback fallback notices get their own row below the dock, never a control row. */
body.entered #boardStatus,
body.entered #youtubeLink {
  top: auto;
  bottom: var(--arena-bottom-safe);
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 6px;
  overflow: auto;
  white-space: normal;
  pointer-events: auto;
}
body.entered #boardStatus {
  left: max(12px, env(safe-area-inset-left));
  transform: none;
  width: calc(58% - 18px);
  max-width: none;
  text-align: left;
}
body.entered #youtubeLink {
  right: max(12px, env(safe-area-inset-right));
  width: calc(42% - 18px);
  max-width: 360px;
}
body.entered #videoPanel:has(#youtubeLink[hidden]) #boardStatus { width: calc(100% - 24px); }
@media (max-width: 900px) {
  body.entered #hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "checklist checklist" "presence presence" "seat seat" "nav nav" "actions actions" "menu mission";
    gap: 6px;
  }
  body.entered #hud #livePresence { max-height: 132px; }
  body.entered #hud .actions { width: min(100%, 620px); }
}
@media (max-width: 500px) {
  body.entered #hud .actions button { flex-direction: column; gap: 2px; min-height: 66px; padding: 5px 3px; font-size: 19px; }
  body.entered #hud .actions span { font-size: 10px; text-align: center; }
  body.entered #hud .actions small { margin-top: 2px; font-size: 6px; letter-spacing: .5px; }
  body.entered #hud nav button { font-size: 10px; padding-inline: 10px; }
  body.entered #boardStatus, body.entered #youtubeLink { font-size: 10px; }
}
@media (max-height: 500px) {
  body.entered #hud { max-height: calc(100dvh - var(--arena-dock-bottom) - 112px - env(safe-area-inset-top)); }
  body.entered #hud #livePresence { max-height: 110px; }
  body.entered #hud #controls { top: 12px; max-height: calc(100dvh - var(--arena-bottom-safe) - 24px); }
  body.entered #hud #missionCard { max-height: 120px; }
}
@media (min-width: 600px) and (max-width: 900px) and (max-height: 500px) {
  body.entered #hud {
    grid-template-columns: minmax(0, 1fr) 230px;
    grid-template-areas: "checklist checklist" "seat presence" "nav presence" "actions presence" "menu mission";
  }
  body.entered.menus-collapsed #hud { grid-template-areas: "checklist checklist" "presence presence" "menu mission"; }
}
