/* Match Bahnschrift's visible capitals to the centre of its line box. */
@font-face{font-family:"ICF Bahnschrift";src:local("Bahnschrift");font-style:normal;font-weight:300 700;ascent-override:91%;descent-override:21%;line-gap-override:0%}
:root{color-scheme:dark;--page:#0e1522;--surface:#172132;--edge:#344256;--ink:#f2eee6;--muted:#b9c3d1;--gold:#d4b577;--row-height:96px;font-family:"ICF Bahnschrift",Bahnschrift,"DIN Alternate",Arial,Helvetica,sans-serif;background:var(--page);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;padding:0 28px;overflow:hidden}button,select{font:inherit;color:var(--ink);background:#1d2a3e;border:1px solid #526178;border-radius:5px;padding:8px 12px}button{cursor:pointer}button:hover,select:hover{border-color:var(--gold)}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.hall-header{height:106px;flex-shrink:0;display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--edge)}.hall-brand img{display:block;width:58px;height:58px}.hall-title{min-width:0;flex:1}.hall-title p{font-size:10px;letter-spacing:2px;color:var(--gold);margin:0 0 8px}.hall-title h1{font-size:clamp(22px,2vw,38px);margin:0;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview-label{color:#f0cb80;letter-spacing:1px;margin-left:18px}.hall-clock{text-align:right}.hall-clock time{display:block;font-size:36px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:1px}.hall-clock span{font-size:11px;color:var(--muted)}
.hall-toolbar{min-height:70px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:14px}.hall-now{display:flex;gap:10px;align-items:center;font-size:12px;letter-spacing:1.5px;font-weight:bold}.live-dot{display:inline-block;width:8px;height:8px;background:#81c9a2;border-radius:50%;flex-shrink:0}.hall-subtitle{border-left:1px solid var(--edge);padding-left:15px;margin-left:8px;font-weight:400;color:var(--muted);letter-spacing:0}.hall-controls,.hall-controls form{display:flex;gap:8px;align-items:center}.hall-controls{font-size:12px}.hall-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;flex:1;min-height:0;padding-bottom:14px}.hall-panel{min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid var(--edge);background:var(--surface);border-radius:8px;overflow:hidden}.hall-panel-header{height:88px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-top:3px solid var(--gold);border-bottom:1px solid var(--edge);gap:12px}.hall-category{font-size:9px;letter-spacing:2px;color:var(--gold)}.hall-panel h2{margin:5px 0 0;font-size:28px}.hall-panel h2 span{font-size:19px;color:var(--muted);font-weight:400;margin-left:8px}.hall-count{color:#a9d9bf;font-size:13px;white-space:nowrap;background:#213b36;padding:7px 10px;border-radius:4px}.hall-column-labels{display:grid;grid-template-columns:72px minmax(0,1fr) repeat(3,42px) 54px;gap:10px;padding:13px 22px;color:var(--muted);font-size:10px;letter-spacing:1.4px;flex-shrink:0}.hall-column-labels span:nth-child(n+3){text-align:center}.hall-matches{flex:1;min-height:0;overflow:hidden}.hall-match{height:var(--row-height);padding:9px 22px;display:grid;grid-template-columns:72px minmax(0,1fr) repeat(3,42px) 54px;column-gap:10px;align-items:center;border-top:1px solid #2b384b}.hall-match:nth-child(even){background:#1a2638}.hall-table{grid-column:1;grid-row:1 / 4;align-self:center;background:#27374e;border:1px solid #465775;border-radius:6px;width:64px;min-height:58px;display:flex;align-items:center;justify-content:center;color:#e5c991;font-size:26px;font-weight:700;overflow-wrap:anywhere;text-align:center}.hall-location{grid-column:2 / -1;grid-row:1;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-bottom:6px}.hall-player{min-width:0;display:flex;align-items:center;gap:9px;font-size:clamp(18px,1.3vw,26px);line-height:1.25;font-weight:600}.hall-player span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hall-player img{width:23px;height:17px;object-fit:cover;border-radius:2px;flex-shrink:0}.hall-player .hall-flags{display:flex;gap:3px;flex-shrink:0}.hall-player small{display:none}.hall-set,.hall-point{text-align:center;font-variant-numeric:tabular-nums;font-weight:700;font-size:24px}.hall-set{color:var(--muted);font-size:21px}.hall-point{background:#2b3a50;border-radius:4px;padding:1px 0;color:#f7dfaa}.hall-panel-footer{display:flex;justify-content:space-between;gap:10px;padding:11px 22px;border-top:1px solid var(--edge);color:var(--muted);font-size:11px;min-height:36px;flex-shrink:0}.hall-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:10px;text-align:center;padding:25px}.hall-empty strong{font-size:22px;color:var(--ink)}.hall-empty span{font-size:14px}.hall-footer{height:42px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px;gap:16px}.hall-footer [data-connection]{color:#a9d9bf}.hall-footer [data-connection].is-stale{color:#f5c67b}.hall-noscript{position:fixed;inset:40% 15%;background:var(--surface);padding:25px;border:1px solid var(--gold)}:fullscreen .hall-controls{display:none}
@media(min-width:1700px){:root{--row-height:108px}.hall-header{height:118px}.hall-panel-header{height:96px}.hall-toolbar{min-height:76px}.hall-table{width:70px}.hall-column-labels,.hall-match{grid-template-columns:72px minmax(0,1fr) repeat(3,48px) 60px}.hall-set,.hall-point{font-size:28px}}
@media(max-width:1000px){body{padding:0 16px}.hall-panels{gap:14px}.hall-header{height:88px}.hall-panel-header{padding:14px;height:77px}.hall-count{font-size:11px;padding:6px}.hall-column-labels,.hall-match{padding-left:14px;padding-right:14px;grid-template-columns:52px minmax(0,1fr) repeat(3,27px) 39px;gap:7px}.hall-table{width:46px;font-size:22px}.hall-panel h2{font-size:24px}.hall-panel h2 span{font-size:15px}.hall-player{font-size:16px;gap:6px}.hall-player img{width:20px;height:15px}.hall-subtitle{display:none}.hall-title p{font-size:9px;letter-spacing:1px}.preview-label{display:block;margin:5px 0 0}.hall-panel-footer{padding-left:14px;padding-right:14px}}
@media(max-width:650px){body{height:auto;min-height:100dvh;overflow:auto;padding:0 12px}.hall-header{gap:10px}.hall-brand img{width:42px;height:42px}.hall-title h1{font-size:18px;white-space:normal}.hall-title p{font-size:8px}.hall-clock time{font-size:23px}.hall-clock span{font-size:9px}.hall-toolbar{align-items:flex-start;flex-direction:column;padding:14px 0;gap:12px}.hall-now{font-size:10px}.hall-panels{grid-template-columns:1fr;flex:none}.hall-panel{height:660px}.hall-column-labels,.hall-match{grid-template-columns:52px minmax(0,1fr) repeat(3,27px) 39px}.hall-footer{height:auto;min-height:50px;flex-wrap:wrap;gap:8px;padding:10px 0}.hall-footer-note{display:none}}

.hall-game-point,.hall-games-won{text-align:center;font-variant-numeric:tabular-nums;font-size:21px;font-weight:650;border-radius:4px;padding:2px 0}.hall-game-point{color:var(--muted);background:#202d40}.hall-game-point.is-winner{color:var(--ink);background:#304036}.hall-game-point.is-current{color:#f7dfaa;background:#453c2d;box-shadow:none}.hall-game-point.is-empty{background:transparent}.hall-games-won{font-size:21px;font-weight:750;color:var(--ink);background:#2b3a50;border-left:0}
@media(min-width:1700px){.hall-game-point{font-size:25px}.hall-games-won{font-size:25px}}
@media(max-width:1000px){.hall-column-labels,.hall-match{column-gap:5px}.hall-column-labels{font-size:9px;letter-spacing:.5px}.hall-game-point{font-size:17px}.hall-games-won{font-size:17px}.hall-table{width:40px}.hall-player{font-size:17px}}
.hall-games-won{width:42px;justify-self:center}
@media(min-width:1700px){.hall-games-won{width:48px}}
@media(max-width:1000px){.hall-games-won{width:27px}}
/* Match every result box to the original rectangular G1 dimensions. */
.hall-game-point,.hall-games-won{display:flex;align-items:center;justify-content:center;justify-self:center;width:42px;height:28px;padding:0;line-height:1}
@media(min-width:1700px){.hall-game-point,.hall-games-won{width:48px;height:33px}}
@media(max-width:1000px){.hall-game-point,.hall-games-won{width:27px;height:24px}}
/* Separate the two player rows while preserving the result-box sizes. */
.hall-match{row-gap:2px;padding-top:12px;padding-bottom:12px}.hall-location{padding-bottom:0}
.hall-column-labels{background:#1a2638}

.hall-match:last-child{border-bottom:1px solid #2b384b}

.hall-panel-footer{position:relative}.hall-page-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:#253348;overflow:hidden;pointer-events:none}.hall-page-progress-fill{display:block;width:100%;height:100%;background:#8ba8c7;transform:scaleX(0);transform-origin:left center}
@media(prefers-reduced-motion:reduce){.hall-page-progress-fill{transition:none}}
.hall-player{font-family:Roboto,Arial,Helvetica,sans-serif}.hall-player .hall-player-name{font-weight:400}.hall-first-name{font-weight:400}.hall-last-name{font-weight:900;text-transform:uppercase}
.hall-player-pair{display:grid;grid-template-columns:minmax(0,max-content) max-content minmax(0,max-content);column-gap:.25em}
.hall-player:not(.is-match-winner) .hall-first-name{color:#c4cedb}
[data-theme="light"] .hall-player:not(.is-match-winner) .hall-first-name{color:#536579}
.hall-player img{height:1em;width:1.333333em}

.hall-table{grid-row:2 / 4;width:58px;height:42px;min-height:0}
@media(max-width:1000px){.hall-table{width:40px;height:32px}}
.hall-game-point:not(.is-empty),.hall-games-won{border:1px solid #465775}

/* Reserve the metadata row so player scores keep their grid positions. */
.hall-match::before{content:'';grid-column:1;grid-row:1}

/* Align the table badge and the games total with equal side margins. */
.hall-match,.hall-column-labels{padding-inline:12px}

/* Balance the metadata between the top divider and the first player. */
.hall-location{position:relative;top:3px}

/* Separate the game totals from the individual game points. */
.hall-games-won{justify-self:end}.hall-column-labels span:last-child{justify-self:end;text-align:right;width:42px}@media(min-width:1700px){.hall-column-labels span:last-child{width:48px}}@media(max-width:1000px){.hall-column-labels span:last-child{width:27px}}

/* Distinguish games won from the individual game points. */
.hall-games-won{background:#284c52;color:#effbfb}

/* Round and group move into the table badge; only two player rows remain. */
.hall-match{grid-template-rows:repeat(2,minmax(0,1fr))}.hall-match::before{content:none}.hall-table{grid-row:1 / 3;width:64px;height:66px;flex-direction:column;gap:2px;padding:4px;overflow:hidden}.hall-table-round,.hall-table-group{display:block;max-width:100%;font-size:9px;line-height:12px;font-weight:400;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hall-table-number{font-size:26px;line-height:28px;font-weight:700}
@media(max-width:1000px){.hall-table{width:48px;height:58px;padding:3px;gap:1px}.hall-table-round,.hall-table-group{font-size:8px;line-height:11px}.hall-table-number{font-size:22px;line-height:25px}}

/* Keep dashboard labels readable at every screen size. */
.hall-panel-footer,.hall-footer,.hall-clock span{font-size:14px}
.hall-count{font-size:18px}
.hall-column-labels,.hall-category{font-size:12px}
.hall-panel[data-category="women"] .hall-category{font-size:11px}
.hall-now{font-size:18px}.hall-subtitle{font-size:12px}
.hall-table{width:100%;height:70px}.hall-table-round,.hall-table-group{font-size:11px;line-height:14px}
.hall-match,.hall-column-labels{grid-template-columns:60px minmax(0,1fr) repeat(3,42px) 54px}
@media(min-width:1700px){.hall-match,.hall-column-labels{grid-template-columns:60px minmax(0,1fr) repeat(3,48px) 60px}}
@media(max-width:1000px){.hall-match,.hall-column-labels{grid-template-columns:56px minmax(0,1fr) repeat(3,27px) 39px}}

/* Light hall display: cool neutral surfaces with blue and petrol accents. */
:root[data-theme="light"]{color-scheme:light;--page:#eef2f6;--surface:#fff;--edge:#ccd6e2;--ink:#182c42;--muted:#536579;--gold:#336684}
[data-theme="light"] button,[data-theme="light"] select{background:#fff;border-color:#bccbda}
[data-theme="light"] button:hover,[data-theme="light"] select:hover{background:#e7eff5;border-color:#336684}
[data-theme="light"] .hall-panel{box-shadow:0 4px 18px #233b5410}
[data-theme="light"] .hall-panel-header{background:#fff}
[data-theme="light"] .hall-column-labels{background:#e7eef5}
[data-theme="light"] .hall-match{border-color:#dbe3ec}
[data-theme="light"] .hall-match:nth-child(even){background:#f4f7fa}
[data-theme="light"] .hall-table{background:#e5edf5;border-color:#b5c7d9;color:#254b6b}
[data-theme="light"] .hall-count{background:#e0f0ea;color:#24634f}
[data-theme="light"] .live-dot{background:#258267}
[data-theme="light"] .hall-game-point{background:#edf2f7;color:#40566d}
[data-theme="light"] .hall-game-point.is-winner{background:#e4eee9;color:#285c47}
[data-theme="light"] .hall-game-point.is-current{background:#f7edcf;color:#70551c}
[data-theme="light"] .hall-game-point.is-empty{background:transparent}
[data-theme="light"] .hall-game-point:not(.is-empty),[data-theme="light"] .hall-games-won{border-color:#b5c7d9}
[data-theme="light"] .hall-games-won{background:#d5eae9;color:#174e54}
[data-theme="light"] .hall-footer [data-connection]{color:#24634f}
[data-theme="light"] .hall-footer [data-connection].is-stale{color:#8a541b}
[data-theme="light"] .hall-page-progress{background:#e0e8f0}
[data-theme="light"] .hall-page-progress-fill{background:#668ca9}
[data-theme="light"] .preview-label{color:#805d1c}
.hall-player.is-match-winner .hall-player-name,.hall-game-point.is-match-winner,.hall-games-won.is-match-winner{color:#e4c06f}
[data-theme="light"] .hall-player.is-match-winner .hall-player-name,[data-theme="light"] .hall-game-point.is-match-winner,[data-theme="light"] .hall-games-won.is-match-winner{color:#895b0b}

/* Projector bracket: upper half on the left, lower half on the right. */
.hall-knockout{flex:1;min-height:0;display:flex;flex-direction:column;margin-bottom:14px;border:1px solid var(--edge);border-top:3px solid var(--gold);border-radius:8px;background:var(--surface);overflow:auto}
.hall-knockout-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:1px solid var(--edge);flex-shrink:0}
.hall-knockout-header h2{font-size:32px;margin:6px 0 0}.hall-knockout-caption{font-size:16px;color:var(--muted)}
.hall-knockout-stage{position:relative;display:grid;grid-template-columns:1.1fr 1fr 1.1fr 1fr 1.1fr;gap:clamp(14px,1.6vw,32px);padding:22px 24px;flex:1;min-height:340px;isolation:isolate}
.hall-ko-column{display:flex;flex-direction:column;min-width:0;z-index:1}.hall-ko-column-matches{display:flex;flex:1;flex-direction:column;justify-content:space-around;gap:28px;min-height:0}
.hall-ko-round-label{font-size:13px;letter-spacing:1.7px;text-align:center;color:var(--muted);padding-bottom:12px}
.hall-ko-left-2{grid-column:1;grid-row:1}.hall-ko-left-1{grid-column:2;grid-row:1}.hall-ko-centre-0{grid-column:3;grid-row:1}.hall-ko-right-1{grid-column:4;grid-row:1}.hall-ko-right-2{grid-column:5;grid-row:1}
.hall-ko-match{border:1px solid var(--edge);border-radius:7px;background:var(--page);padding:12px;min-width:0;flex-shrink:0;box-shadow:0 5px 18px #00000012}
.hall-ko-match.is-live{border-color:#81c9a2}.hall-ko-match.is-final{border:2px solid var(--gold);padding:16px 12px;background:var(--surface)}
.hall-ko-match-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;font-size:13px;color:var(--muted)}
.hall-ko-match-heading strong{color:var(--gold);font-size:14px;white-space:nowrap}.hall-ko-match-heading span{text-align:right;overflow-wrap:anywhere}
.hall-ko-side{display:flex;align-items:center;gap:10px;min-width:0}.hall-ko-side+.hall-ko-side{margin-top:12px;padding-top:12px;border-top:1px solid var(--edge)}
.hall-ko-side .hall-player{flex:1;min-width:0;font-size:clamp(20px,1.25vw,26px);gap:7px;line-height:1.25}
.hall-ko-names{flex:1;min-width:0}.hall-ko-names .hall-player-name{display:block;max-width:100%}
.hall-ko-side .hall-games-won{flex-shrink:0;width:32px;height:32px;font-size:23px}.hall-ko-side .is-pending .hall-player-name{font-family:inherit;font-size:17px;color:var(--muted)}
.hall-ko-lines{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;fill:none;stroke:#71869f;stroke-width:2}
.hall-knockout-footer{position:relative;display:flex;justify-content:space-between;gap:16px;padding:12px 24px;border-top:1px solid var(--edge);font-size:14px;color:var(--muted);flex-shrink:0}
.hall-ko-depth-1{grid-template-columns:1fr 1.1fr 1fr;padding-left:8%;padding-right:8%}.hall-ko-depth-1 .hall-ko-left-1{grid-column:1}.hall-ko-depth-1 .hall-ko-centre-0{grid-column:2}.hall-ko-depth-1 .hall-ko-right-1{grid-column:3}
.hall-ko-depth-0{grid-template-columns:minmax(0,520px);justify-content:center}.hall-ko-depth-0 .hall-ko-centre-0{grid-column:1}
[data-theme="light"] .hall-ko-match{background:#f4f7fa}[data-theme="light"] .hall-ko-match.is-final{background:#fff}[data-theme="light"] .hall-ko-match.is-live{border-color:#258267}[data-theme="light"] .hall-ko-lines{stroke:#899eb2}
@media(max-width:1400px){.hall-toolbar{flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.hall-controls{flex-wrap:wrap}.hall-knockout-stage{gap:16px;padding-left:16px;padding-right:16px}.hall-ko-match{padding:9px}.hall-ko-side{gap:6px}.hall-ko-side .hall-player{font-size:20px;gap:5px}.hall-ko-side .hall-games-won{width:27px;height:28px;font-size:20px}.hall-ko-match-heading{font-size:12px}.hall-knockout-header h2{font-size:28px}}
@media(max-width:1100px){.hall-knockout-stage{min-width:1100px}.hall-knockout-header,.hall-knockout-footer{min-width:700px}.hall-knockout-caption{font-size:14px}}
@media(max-width:650px){.hall-knockout{flex:none;height:660px}.hall-controls select,.hall-controls button{padding:7px 9px}.hall-now{flex-wrap:wrap;letter-spacing:1px}.hall-knockout-footer{font-size:12px}}

/* Non-modal celebrations stay within the matching competition card. */
.hall-panel,.hall-knockout{position:relative}
.hall-slam-overlay{position:absolute;inset:88px 0 0;z-index:5;display:flex;align-items:center;justify-content:center;padding:24px;background:#0e1522e8;pointer-events:none}
.hall-slam-message{width:min(100%,580px);padding:28px 22px;border:2px solid var(--gold);border-radius:12px;background:var(--surface);box-shadow:0 12px 50px #0005;text-align:center;display:flex;flex-direction:column;align-items:center;gap:11px;min-width:0}
.hall-slam-coin{width:56px;height:56px;border-radius:50%;border:3px solid #b9af95;box-shadow:inset 0 0 0 5px #00000012,0 4px 12px #0004;flex-shrink:0}
.hall-slam-coin.is-white{background:radial-gradient(circle at 35% 30%,#fff,#ded8c9)}.hall-slam-coin.is-black{background:radial-gradient(circle at 35% 30%,#4c5360,#090d13);border-color:#9199a5}
.hall-slam-type{font-size:clamp(32px,2.8vw,50px);line-height:1.1;color:var(--gold);margin:0}
.hall-slam-by{font-size:20px;color:var(--muted)}
.hall-slam-name{justify-content:center;max-width:100%;width:100%;font-size:clamp(26px,2.25vw,40px);line-height:1.25;font-weight:400}
.hall-slam-detail{font-size:17px;color:var(--muted);margin-top:4px}
[data-theme="light"] .hall-slam-overlay{background:#eef2f6ed}
@media(min-width:1700px){.hall-panel>.hall-slam-overlay{top:96px}}
@media(max-width:1000px){.hall-panel>.hall-slam-overlay{top:77px}.hall-slam-overlay{padding:16px}.hall-slam-message{padding:26px 16px}.hall-slam-detail{font-size:16px}}
@media(max-height:700px){.hall-slam-message{padding:18px;gap:8px}.hall-slam-coin{height:42px;width:42px}.hall-slam-type{font-size:32px}.hall-slam-name{font-size:28px}}

/* Preserve page positions until the next full cycle after a match expires. */
.hall-match-gap{visibility:hidden;pointer-events:none}
