/* Original title/home stage and HUD primitives; responsive interiors follow below.
   arcade-ui.css supplies the shared screen shell and CSS-pixel HUD layout. */
@font-face {
  font-family: "CAT Bahnschrift";
  src: local("Bahnschrift");
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "CAT Symbols";
  src: url("/fonts/NotoSansMath-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --console-navy: #0a1226;
  --console-accent: #ffd83a;
  --console-hot: #ff5a2a;
  --console-text: #f3f6ff;
  --console-muted: #b4bfdb;
  --console-dim: #7d89a8;
  --console-panel: rgb(6.375 10.2 25.5 / 91%);
}
.client-version{position:fixed;right:16px;bottom:68px;z-index:250;pointer-events:none;color:rgba(219,227,240,.85);font:600 18px Bahnschrift,sans-serif;text-shadow:0 1px 3px #05080f}
[hidden] { display: none !important; }
#app {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  background: var(--console-navy);
  color: var(--console-text);
}
#app:empty { display: none; }
.console-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
  isolation: isolate;
  overflow: hidden;
  background: var(--console-navy) url("/assets/frontend/stadiums/training.jpg") center / cover no-repeat;
  color: var(--console-text);
  font-family: "CAT Bahnschrift", "Bahnschrift", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-stretch: 100%;
  font-variation-settings: "wght" 400, "wdth" 100;
  font-size: 28px;
  line-height: 1.2;
  text-align: left;
  letter-spacing: 0;
  font-synthesis: none;
}
.console-stage *, .console-stage *::before, .console-stage *::after { box-sizing: border-box; }
.console-stage > * { position: absolute; z-index: 2; }
.console-stage::before, .console-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.console-stage::before { background: linear-gradient(to right, rgb(2.55 5.1 15.3 / 92%) 0%, rgb(2.55 5.1 15.3 / 0%) 76%); }
.console-stage::after { background: linear-gradient(to bottom, rgb(2.55 5.1 15.3 / 0%) 55%, rgb(2.55 5.1 15.3 / 72%) 100%),radial-gradient(ellipse 1150px 850px at 50% 42%, rgb(2.55 5.1 15.3 / 0%) 0%, rgb(2.55 5.1 15.3 / 70%) 100%); }
.console-stage[data-screen="selection"], .console-stage[data-screen="rules"] { background-image: linear-gradient(to right, rgb(2.55 5.1 15.3 / 96%), rgb(2.55 5.1 15.3 / 35%)),url("/assets/frontend/stadiums/training.jpg"); }
.console-stage[data-screen="selection"]::before, .console-stage[data-screen="selection"]::after,
.console-stage[data-screen="rules"]::before, .console-stage[data-screen="rules"]::after { display: none; }
#app.on-match { background: transparent; }
#app.on-match .console-stage { background: transparent; }
#app.on-match .console-stage::before, #app.on-match .console-stage::after { display: none; }
.console-stage :where(h1,h2,h3,p,figure) { margin: 0; padding: 0; }
.console-stage button, .console-stage input, .console-stage select {
  margin: 0;
  min-height: 0;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-transform: none;
  letter-spacing: 0;
  text-align: inherit;
  transition: none;
}
.console-stage button { cursor: pointer; appearance: none; }
.console-stage button:disabled { opacity: 1; color: var(--console-dim); cursor: default; }
.console-stage button:active { transform: none; }
.console-stage button:focus { outline: none; }
.console-stage [hidden] { display: none !important; }
.c-backdrop { inset: 0; z-index: 0; width: 1920px; height: 1080px; object-fit: cover; pointer-events: none; }
.c-shade { inset: 0; z-index: 1; pointer-events: none; }
/* frontend.gd::_vignette, kept as three separate source gradients. */
.c-shade::before, .c-shade::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.c-shade::before { background: linear-gradient(to right, rgb(2.55 5.1 15.3 / 92%) 0%, rgb(2.55 5.1 15.3 / 0%) 76%); }
.c-shade::after {
  background:
    linear-gradient(to bottom, rgb(2.55 5.1 15.3 / 0%) 55%, rgb(2.55 5.1 15.3 / 72%) 100%),
    radial-gradient(ellipse 1150px 850px at 50% 42%, rgb(2.55 5.1 15.3 / 0%) 0%, rgb(2.55 5.1 15.3 / 70%) 100%);
}
/* setup_style.gd::shell supplies its own full-screen source background/shade. */
.console-stage:has(.c-roster) .c-shade,
.console-stage:has(.c-rules-panel) .c-shade { background: linear-gradient(to right, rgb(2.55 5.1 15.3 / 96%), rgb(2.55 5.1 15.3 / 35%)); }
.console-stage:has(.c-roster) .c-shade::before,
.console-stage:has(.c-roster) .c-shade::after,
.console-stage:has(.c-rules-panel) .c-shade::before,
.console-stage:has(.c-rules-panel) .c-shade::after { display: none; }
.c-selection-dim { inset: 0; z-index: 1; pointer-events: none; background: rgb(1.275 3.825 14.025 / 36%); }

.c-logo { left: 100px; top: 40px; width: 352px; height: auto; display: block; object-fit: contain; pointer-events: none; }
.c-logo-home { left: 96px; top: 50px; width: 478px; }
.c-logo-title { left: 960px; top: 432px; width: 1005px; height: auto; transform: translate(-50%,-50%); }
.c-header-title {
  left: 510px; top: 48px; width: 790px; height: 78px;
  font-size: 52px; line-height: 1.24; font-weight: 700; font-stretch: 75%;
  font-variation-settings: "wght" 700, "wdth" 75; text-transform: uppercase;
  text-shadow: 0 2px 0 rgb(5.1 10.2 25.5 / 90%);
}
.c-header-accent { left: 470px; top: 50px; width: 9px; height: 68px; background: var(--console-hot); }
.c-steps { left: 1350px; top: 58px; width: 470px; height: 62px; font-size: 20px; line-height: 30px; color: var(--console-dim); font-weight: 600; font-variation-settings: "wght" 600,"wdth" 100; }
.c-steps > * { display: block; }
.c-steps .active, .c-steps .current, .c-steps [aria-current="step"] { color: var(--console-accent); }
.c-status-rank { left: 1430px; top: 48px; width: 414px; height: 25px; text-align: right; font-size: 19px; color: var(--console-muted); }
.c-status-chip { top: 77px; height: 36px; min-width: 150px; padding: 4px 12px !important; background: rgb(5.1 10.2 25.5 / 85%) !important; text-align: center !important; font-size: 19px !important; font-weight: 600 !important; font-variation-settings: "wght" 600,"wdth" 100; }
.c-status-chip:focus-visible, .c-status-chip:hover { outline: 2px solid var(--console-accent) !important; }
.c-status-online { left: 1430px; top: 117px; width: 414px; text-align: right; font-size: 19px; color: var(--console-muted); }
.c-status-block .c-status-rank { position: relative; left: 0; top: 0; width: 414px; height: 25px; }
.c-status-chips { position: relative; display: flex; gap: 12px; margin-top: 4px; height: 36px; }
.c-status-block .c-status-chip { position: static; min-width: 0; flex-shrink: 0; }
.c-status-block .c-status-online { position: relative; left: 0; top: 0; width: 414px; margin-top: 4px; }

/* ArcadeButton: source parallelogram and its separate left selection slash. */
.c-main-menu { left: 130px; top: 300px; width: 620px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.console-stage .c-main-entry {
  position: relative; isolation: isolate; width: 620px; height: 80px; padding: 4px 30px 4px 32px;
  font-size: 48px; font-weight: 800; font-stretch: 75%; font-variation-settings: "wght" 700,"wdth" 75;
  text-align: left; line-height: 1; text-transform: uppercase; color: var(--console-text); overflow: visible;
}
.c-main-entry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(5.1 10.2 22.95 / 15%); transform: skewX(-10.2deg); }
.c-main-entry::after { content: ""; position: absolute; left: -20px; top: 0; width: 11px; height: 100%; background: rgb(125 137 168 / 65%); transform: skewX(-10.2deg); }
.console-stage .c-main-entry.compact { width: 540px; height: 58px; font-size: 30px; }
.console-stage .c-main-entry:is(:hover,:focus-visible,.selected) { color: var(--console-navy); }
.c-main-entry:is(:hover,:focus-visible,.selected)::before { background: var(--console-accent); }
.c-main-entry:is(:hover,:focus-visible,.selected)::after { background: var(--console-hot); }
.console-stage .c-main-entry:disabled { color: var(--console-dim); }
.c-main-entry:disabled::before { background: rgb(5.1 10.2 22.95 / 15%); }
.c-main-entry:disabled::after { background: rgb(125 137 168 / 65%); }
.c-main-description { left: 130px; top: 960px; width: 1000px; height: 46px; color: var(--console-muted); font-size: 22px; line-height: 36px; }
.c-title-start { left: 360px; top: 820.8px; width: 1200px; height: 60px; text-align: center !important; font-size: 38px !important; font-weight: 600 !important; text-shadow: 0 0 8px #050a19,0 2px 0 #050a19; animation: c-title-pulse 1.9635s linear infinite; }
@keyframes c-title-pulse { 0%,100% { opacity: .825; } 25% { opacity: 1; } 75% { opacity: .65; } }
.c-hints { left: 0; top: 1022px; width: 1920px; height: 58px; padding: 0 30px; display: flex; align-items: center; justify-content: flex-end; gap: 26px; background: rgb(5.1 10.2 25.5 / 88%); color: var(--console-muted); font-size: 28px; }
.c-hints > span, .c-hint { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.c-hints kbd, .c-keycap { display: inline-block; padding: 2px 10px; border: 2px solid rgb(243 246 255 / 50%); border-radius: 5px; background: rgb(243 246 255 / 8%); color: var(--console-text); font: inherit; font-size: 22px; font-weight: 700; line-height: 28px; }

/* Responsive game interiors. The title and home keep their original stage above. */
.console-stage .c-button { position:relative; isolation:isolate; min-height:48px; padding:12px 20px; border:1px solid #ffffff26; border-radius:4px; background:#ffffff08; color:var(--console-text); font-size:16px; font-weight:700; line-height:1.2; text-align:center; }
.console-stage .c-button:is(:hover,:focus-visible) { background:#ffffff16; border-color:#ffffff75; }
.console-stage .c-button:focus-visible,.console-stage .c-choice button:focus-visible { outline:3px solid #f3f6ff; outline-offset:-3px; }
.console-stage .c-button.primary { color:#0a1425; background:#ffda39; border-color:#ffda39; }
.console-stage .c-button.primary:disabled { color:#8391ad; background:#19263b; border-color:#ffffff14; }
.console-stage .c-button:disabled { opacity:.6; }
.c-choice { position:relative; display:flex; align-items:stretch; min-width:0; min-height:48px; border:1px solid #ffffff20; border-radius:4px; background:#ffffff05; }
.c-choice:hover,.c-choice:focus-within { border-color:#ffffff70; background:#ffffff0c; }
.c-choice-label { display:flex; align-items:center; flex:1; min-width:0; padding:8px 12px; color:#b4bfdb; font-size:15px; }
.console-stage .c-choice-prev,.console-stage .c-choice-next { flex:0 0 44px; min-width:44px; min-height:48px; text-align:center; font-size:14px; color:#b4bfdb; }
.console-stage .c-choice-value { flex:1; min-width:0; min-height:48px; padding:8px 4px; text-align:center; font-size:16px; font-weight:600; overflow-wrap:anywhere; }
.c-choice:has(.c-choice-label) .c-choice-value { flex:0 1 180px; }
.c-choice.disabled { opacity:.5; }
.c-local-header .c-steps { position:static; inset:auto; width:auto; height:auto; min-width:0; display:flex; gap:16px; flex-wrap:wrap; color:#7d89a8; font-size:13px; line-height:1.5; }
.c-local-header .c-step.current { color:#ffda39; }
.c-selection-content { display:grid; align-content:start; gap:16px; }
.c-mode-select { display:flex; gap:8px; }
.console-stage .c-mode-select .c-button { min-height:44px; padding:10px 18px; font-size:14px; }
.console-stage .c-mode-select .selected { border-color:#ffda39; color:#ffda39; background:#ffda3914; }
.c-participants { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.c-participants:has(> :nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.c-seat { min-width:0; border:1px solid #ffffff20; border-radius:4px; background:#0c1a30d9; }
.c-seat.selected { border-color:var(--seat); box-shadow:inset 4px 0 var(--seat); background:#1b2d46c7; }
.console-stage .c-seat > button { display:flex; width:100%; min-height:82px; padding:8px 12px; text-align:left; align-items:center; gap:10px; }
.console-stage .c-seat > button:focus-visible { outline:3px solid #f3f6ff; outline-offset:-3px; }
.c-seat img { width:52px; height:64px; object-fit:contain; flex-shrink:0; }
.c-seat button > span { display:grid; min-width:0; gap:3px; }
.c-seat small { font-size:11px; color:#a9b7d1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.c-seat small:first-child { color:var(--seat); letter-spacing:.07em; }
.c-seat strong { font-size:17px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.c-seat .c-seat-ready { font-size:11px; color:#e1e8f7; font-weight:400; }
.c-selection-main { display:grid; min-width:0; }
.c-player-editor { display:grid; grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr); min-width:0; background:linear-gradient(115deg,#20365288,#101e35dd 60%); border:1px solid #ffffff15; border-top:2px solid var(--seat); border-radius:5px; overflow:hidden; }
.c-player-art { position:relative; display:grid; place-items:center; min-width:0; min-height:290px; background:radial-gradient(ellipse at 50% 90%,#59698f42,transparent 65%); }
.c-player-art:after { content:""; position:absolute; inset:12% 18%; border:1px solid #ffffff12; border-radius:50%; transform:rotate(-25deg); pointer-events:none; }
.c-player-art > .c-player-preview-stage { position:relative; z-index:1; width:100%; height:310px; object-fit:contain; object-position:center 35%; filter:drop-shadow(0 18px 15px #0007); }
.c-hero-seat { position:absolute; top:18px; left:20px; color:var(--seat); font-size:18px; font-weight:800; }
.c-editor-info { display:grid; align-content:center; gap:10px; padding:22px 26px 22px 8px; min-width:0; }
.c-editor-info .c-character-row { border:0; border-bottom:1px solid #ffffff20; background:none; }
.console-stage .c-character-row .c-choice-value { font-size:clamp(24px,2.6vw,36px); font-weight:800; line-height:1; }
.c-player-bio-line,.c-equipment-summary { color:#aab9d2; font-size:13px; line-height:1.5; }
.c-slot-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 18px; }
.c-attributes { min-width:0; border-bottom:1px solid #ffffff18; }
.c-attributes > summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; color:#bac7dc; font-size:12px; cursor:pointer; list-style:none; }
.c-attributes > summary::after { content:'+'; color:#ffda39; font-size:18px; }
.c-attributes[open] > summary::after { content:'−'; }
.c-attributes > summary:focus-visible { outline:3px solid #f3f6ff; outline-offset:-3px; }
.c-attributes .c-slot-stats { padding-bottom:10px; }
.c-stat { display:flex; align-items:center; gap:8px; min-width:0; }
.c-stat > span { color:#aab9d2; font-size:12px; flex:1; }
.c-stat progress { width:48%; height:5px; appearance:none; border:0; background:#2b3d58; color:var(--seat); accent-color:var(--seat); }
.c-stat progress::-webkit-progress-bar { background:#2b3d58; }
.c-stat progress::-webkit-progress-value { background:var(--seat); }
.c-stat progress::-moz-progress-bar { background:var(--seat); }
.c-editor-actions { display:flex; flex-wrap:wrap; gap:8px; }
.console-stage .c-editor-actions .c-button { flex:1; min-height:44px; padding:10px 14px; font-size:13px; }
.console-stage .c-editor-actions .c-ready.ready { color:#ffda39; }
.console-stage .c-editor-actions .c-remove-companion { flex-basis:100%; min-height:44px; font-size:12px; color:#aab9d2; }
.c-roster-wrap { min-width:0; }
.c-roster { position:relative; width:100%; font-family:"CAT Symbols","Segoe UI",sans-serif; font-variation-settings:normal; }
.c-roster-wrap .c-roster { position:relative!important; inset:auto!important; width:100%!important; height:auto!important; }
.c-roster-name { margin-bottom:8px; color:#aab9d2; font-size:12px; }
.c-roster-grid { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:6px; }
.console-stage .c-roster-tile { position:relative; width:100%; min-width:0; height:72px; padding:4px 4px 20px; border:1px solid #34455e; border-radius:3px; overflow:hidden; background:#12243e; color:#f3f6ff; font:inherit; font-size:11px; text-align:center; }
.console-stage .c-roster-tile:hover { background:#29425f; border-color:#bac7dc; }
.console-stage .c-roster-tile:is(.chosen,.selected,[aria-pressed="true"]) { border:2px solid #ffda39; background:#534b25; }
.console-stage .c-roster-tile:focus-visible { outline:3px solid #f3f6ff; outline-offset:-3px; }
.c-roster-icon { position:absolute; left:50%; top:3px; width:46.933px; height:48px; overflow:hidden; transform:translateX(-50%); pointer-events:none; }
.c-roster-icon > img { position:absolute; left:-40.533px; top:-9.6px; width:132.267px; height:170.667px; max-width:none; pointer-events:none; }
.c-roster-caption { position:absolute; left:0; right:0; bottom:0; padding:3px 2px; overflow:hidden; background:#071123ed; white-space:nowrap; text-overflow:ellipsis; text-align:center; font-size:10px; line-height:14px; }
.c-roster-badges { position:absolute; left:4px; top:2px; display:flex; gap:3px; color:#ffda39; font-size:10px; line-height:14px; }
.c-roster-badges > * { font-style:normal; color:var(--seat,#ffda39); }
.c-local-actions .c-status { flex:1; color:#aab9d2; font-size:13px; line-height:1.4; }
.c-local-actions .c-status.error { color:#ffc0ab; }
.c-rules-content { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr); gap:24px; align-content:center; }
.c-court-card { overflow:hidden; border-radius:5px; background:#101f35; border:1px solid #ffffff20; }
.c-court-card > img { display:block; width:100%; aspect-ratio:1.95; object-fit:cover; }
@media(min-width:1000px) and (max-height:800px){.c-court-card > img{height:28vh;aspect-ratio:auto}.c-court-card > div{padding:18px}}
.c-court-card > div { padding:22px; display:grid; gap:8px; }
.c-court-card h2 { font-size:32px; }
.c-court-card .c-button { margin-top:10px; width:100%; }
.c-rules-surface { color:#aab9d2; font-size:15px; text-transform:capitalize; }
.c-rules-panel { display:grid; align-content:start; gap:14px; min-width:0; padding:26px; border-top:2px solid #ffda39; border-radius:5px; background:#101e35db; }
.c-rules-panel h2 { font-size:24px; margin-bottom:8px; }
.c-rules-panel .c-choice { flex-wrap:wrap; }
.c-rules-panel .c-choice-label { flex-basis:100%; padding:10px 12px 0; font-size:13px; }
.c-rules-panel .c-choice-value { flex:1; }
.c-advanced-content { display:grid; gap:12px; }
.c-advanced-help { color:#aab9d2; font-size:13px; line-height:1.5; }
.c-match-download { display:grid; justify-items:start; gap:6px; min-width:0; margin-top:10px; }
.c-match-download p { color:#cbd7e9; font-size:13px; line-height:1.4; margin:0; }
.c-match-download progress { width:100%; max-width:240px; height:8px; accent-color:#ffda39; }
.c-match-download .c-button { max-width:100%; white-space:normal; }
.c-picker-shade { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:24px; background:#030913ed; backdrop-filter:blur(10px); }
.c-picker-panel { display:grid; grid-template-rows:auto minmax(0,1fr); gap:20px; width:min(1100px,100%); max-height:calc(100dvh - 48px); padding:28px; color:#f3f6ff; border:1px solid #ffffff30; border-top:3px solid #ffda39; border-radius:6px; background:#0e1b30; box-shadow:0 30px 100px #0007; }
.c-picker-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.c-picker-title { font-size:clamp(22px,2.6vw,32px); }
.c-picker-header .a-kicker { margin-bottom:6px; }
.console-stage .c-picker-close { flex-shrink:0; min-height:44px; padding:10px 16px; font-size:14px; }
.c-picker-body { display:grid; min-height:0; min-width:0; overflow:auto; }
.c-customize-panel { grid-template-rows:auto auto minmax(0,1fr); }
.c-customize-panel .c-picker-body { grid-template-columns:240px minmax(0,1fr); gap:24px; }
.c-customize-preview { display:flex; flex-direction:column; align-items:center; min-width:0; padding:12px; border-radius:4px; background:radial-gradient(ellipse at 50% 65%,#314b7380,transparent 70%); text-align:center; }
.c-customize-preview > .c-player-preview-stage { width:100%; height:270px; object-fit:contain; }
.c-customize-preview strong { font-size:20px; }
.c-customize-preview span { color:#aab9d2; font-size:14px; padding:8px 0; }
.c-customize-tabs { display:flex; gap:8px; }
.console-stage .c-customize-tabs button { min-width:110px; min-height:48px; padding:10px 20px; border:1px solid #ffffff30; border-radius:4px; font-size:15px; text-align:center; }
.console-stage .c-customize-tabs button[aria-pressed="true"] { color:#ffda39; border-color:#ffda39; background:#ffda3910; }
.console-stage .c-customize-tabs button:focus-visible { outline:3px solid #fff; outline-offset:-3px; }
.c-picker-grid { display:grid; align-content:start; align-items:start; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:max-content; gap:10px; min-width:0; min-height:0; overflow:auto; padding:3px; }
.c-picker-grid[data-kind="control"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.c-picker-grid[data-kind="court"] { grid-template-columns:repeat(3,minmax(0,1fr)); }
.console-stage .c-picker-item { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-width:0; min-height:64px; padding:12px; border:1px solid #ffffff20; border-radius:4px; background:#ffffff05; font-size:14px; text-align:center; }
.console-stage .c-picker-item.selected { border-color:#ffda39; background:#ffda3912; }
.console-stage .c-picker-item:is(:hover,:focus-visible) { border-color:#f3f6ff; outline:3px solid #f3f6ff; outline-offset:-3px; background:#ffffff15; }
.c-picker-thumb { display:block; flex-shrink:0; width:100%; height:110px; object-fit:contain; }
.c-customize-panel .c-picker-body { overflow:hidden; }
.console-stage .c-picker-grid[data-kind="outfit_id"] .c-picker-item { min-height:200px; }
.console-stage .c-picker-grid[data-kind="racket"] .c-picker-item { min-height:170px; }
.console-stage .c-picker-grid[data-kind="court"] .c-picker-item { min-height:180px; }
.c-picker-grid[data-kind="court"] .c-picker-thumb { height:auto; aspect-ratio:1.8; object-fit:cover; border-radius:2px; }
.c-picker-grid[data-kind="outfit_id"] .c-picker-thumb { height:145px; }
.c-picker-label { display:block; width:100%; overflow-wrap:anywhere; line-height:1.35; }
.c-picker-check { position:absolute; top:7px; right:8px; color:#ffda39; font-size:18px; }
@media(max-width:1000px) {
 .c-player-editor { grid-template-columns:minmax(160px,.65fr) minmax(0,1.35fr); }
 .c-player-art > .c-player-preview-stage { height:280px; }
 .c-editor-info { padding:18px 18px 18px 0; }
 .c-participants { gap:6px; }
 .console-stage .c-seat > button { padding:8px; gap:6px; }
 .c-seat img { width:38px; }
 .c-seat strong { font-size:14px; }
 .c-seat small { font-size:10px; }
 .c-rules-content { gap:16px; grid-template-columns:minmax(0,1fr) minmax(280px,1fr); }
 .c-rules-panel { padding:18px; }
 .c-picker-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:700px) {
 .c-local-header .c-steps { gap:8px; font-size:11px; }
 .c-participants { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .c-selection-content { gap:12px; }
 .c-player-editor { grid-template-columns:minmax(115px,.6fr) minmax(0,1.4fr); }
 .c-player-art { min-height:240px; }
 .c-player-art > .c-player-preview-stage { height:245px; }
 .c-hero-seat { top:12px; left:12px; font-size:14px; }
 .c-editor-info { gap:9px; padding:16px 12px 16px 0; }
 .c-player-bio-line { display:none; }
 .c-slot-stats { grid-template-columns:1fr; gap:4px; }
 .c-stat > span { font-size:11px; }
 .c-editor-info .c-choice-label { flex-basis:100%; padding:7px 8px 0; font-size:12px; }
 .c-editor-info .c-choice:has(.c-choice-label) { flex-wrap:wrap; }
 .c-editor-info .c-choice-value { flex:1; font-size:13px; }
 .console-stage .c-character-row .c-choice-value { font-size:23px; }
 .console-stage .c-choice-prev,.console-stage .c-choice-next { flex-basis:44px; }
 .c-equipment-summary { font-size:11px; }
 .c-editor-actions { gap:6px; }
 .console-stage .c-editor-actions .c-button { padding:10px; font-size:12px; }
 .c-roster-grid { grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
 .c-rules-content { grid-template-columns:1fr; align-content:start; }
 .c-court-card > div { padding:16px; }
 .c-court-card h2 { font-size:26px; }
 .c-local-actions .c-status { order:-1; flex-basis:100%; font-size:12px; }
 .c-picker-shade { padding:12px; }
 .c-picker-panel { max-height:calc(100dvh - 24px); padding:16px; gap:14px; }
 .c-picker-header { align-items:start; gap:8px; }
 .console-stage .c-picker-close { padding:10px; font-size:12px; }
 .c-customize-panel .c-picker-body { grid-template-columns:120px minmax(0,1fr); gap:12px; }
 .c-customize-preview { padding:0; }
 .c-customize-preview > .c-player-preview-stage { height:180px; }
 .c-customize-preview strong { font-size:15px; }
 .c-customize-preview span { font-size:12px; }
 .c-picker-grid,.c-picker-grid[data-kind="court"] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
 .c-picker-grid[data-kind="control"] { grid-template-columns:1fr; }
 .console-stage .c-picker-item { padding:8px; font-size:12px; }
 .c-picker-grid[data-kind="outfit_id"] .c-picker-thumb { height:110px; }
 .console-stage .c-picker-grid[data-kind="outfit_id"] .c-picker-item { min-height:160px; }
 .console-stage .c-picker-grid[data-kind="racket"] .c-picker-item { min-height:135px; }
 .console-stage .c-picker-grid[data-kind="court"] .c-picker-item { min-height:120px; }
 .c-picker-thumb { height:80px; }
}
@media(max-width:430px) {
 .c-roster-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
 .c-player-editor { grid-template-columns:100px minmax(0,1fr); }
 .c-editor-actions { flex-direction:column; }
 .c-hero-seat { left:8px; }
 .c-player-art > .c-player-preview-stage { height:235px; }
 .c-mode-select .c-button { flex:1; }
 .c-customize-panel .c-picker-body { grid-template-columns:100px minmax(0,1fr); gap:8px; }
 .c-customize-preview > .c-player-preview-stage { height:160px; }
 .c-picker-grid { gap:6px; }
}
@media(max-height:600px) and (min-width:601px) {
 .c-selection-content { gap:10px; }
 .c-local-header .c-steps { font-size:11px; }
 .c-player-art { min-height:200px; }
 .c-player-art > .c-player-preview-stage { height:220px; }
 .c-editor-info { padding:12px 18px 12px 0; gap:7px; }
 .c-slot-stats { gap:4px 14px; }
 .c-player-bio-line { display:none; }
 .c-participants { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .console-stage .c-seat > button { min-height:64px; padding:5px 10px; }
 .c-seat img { height:50px; }
 .c-seat .c-seat-ready { display:none; }
 .c-picker-panel { max-height:calc(100dvh - 24px); padding:16px; gap:10px; }
 .c-picker-shade { padding:12px; }
 .c-customize-preview > .c-player-preview-stage { height:180px; }
 .c-picker-grid[data-kind="outfit_id"] .c-picker-thumb { height:100px; }
 .console-stage .c-picker-grid[data-kind="outfit_id"] .c-picker-item { min-height:160px; }
 .c-rules-content { align-content:start; }
 .c-court-card > img { max-height:190px; }
}
/* Desktop keeps the selected player and the roster in the same game viewport. */
@media(min-width:1000px) {
 .c-selection-content { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); grid-template-rows:44px 60px minmax(0,1fr); gap:12px 20px; align-content:stretch; overflow:hidden; }
 .c-selection-content > .c-mode-select { grid-column:1/-1; grid-row:1; }
 .c-selection-content > .c-participants { grid-column:1/-1; grid-row:2; }
 .c-selection-content > .c-selection-main { grid-column:1; grid-row:3; min-height:0; }
 .c-selection-content > .c-roster-wrap { grid-column:2; grid-row:3; min-height:0; overflow:auto; padding:2px 3px 2px 0; }
 .c-selection-content .c-roster-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
 .c-selection-content .c-roster-tile { height:72px; }
 .c-selection-content .c-seat > button { min-height:58px; height:58px; padding:5px 12px; }
 .c-selection-content .c-seat img { width:34px; height:46px; }
 .c-selection-content .c-seat button > span { grid-template-columns:auto 1fr auto; align-items:center; width:100%; column-gap:10px; row-gap:2px; }
 .c-selection-content .c-seat small:first-child { grid-column:1; grid-row:1; }
 .c-selection-content .c-seat strong { grid-column:2; grid-row:1; font-size:16px; }
 .c-selection-content .c-seat small:nth-of-type(2) { grid-column:2; grid-row:2; }
 .c-selection-content .c-seat .c-seat-ready { grid-column:3; grid-row:1/3; font-size:10px; }
 .c-selection-content .c-player-editor { grid-template-columns:minmax(150px,.75fr) minmax(0,1.25fr); height:100%; min-height:0; }
 .c-selection-content .c-player-art { min-height:0; height:100%; }
 .c-selection-content .c-player-art > .c-player-preview-stage { height:100%; min-height:0; max-height:420px; }
 .c-selection-content .c-editor-info { min-height:0; overflow:auto; align-content:center; padding:16px 16px 16px 0; gap:9px; }
 .c-selection-content .c-editor-actions .c-button { padding:10px 8px; }
}
@media(min-width:1000px) and (max-height:800px) {
 .c-selection-content { gap:10px 18px; grid-template-rows:44px 54px minmax(0,1fr); }
 .c-selection-content .c-seat > button { min-height:52px; height:52px; }
 .c-selection-content .c-seat .c-seat-ready { display:none; }
 .c-selection-content .c-seat button > span { grid-template-columns:auto 1fr; }
 .c-selection-content .c-player-bio-line { display:none; }
 .c-selection-content .c-editor-info { gap:8px; padding-block:12px; }
 .c-selection-content .c-roster-name { margin-bottom:6px; }
 .c-selection-content .c-roster-tile { height:64px; }
 .console-stage .c-selection-content .c-character-row .c-choice-value { font-size:27px; }
}
/* Short landscape puts the compact participant strip beside the mode toggle. */
@media(min-width:601px) and (max-width:999px) and (max-height:600px) {
 .c-selection-content { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); grid-template-rows:44px minmax(0,1fr); gap:10px 14px; align-content:stretch; overflow:hidden; }
 .c-selection-content > .c-mode-select { grid-column:1; grid-row:1; gap:5px; }
 .console-stage .c-selection-content .c-mode-select .c-button { flex:1; font-size:12px; padding:8px; }
 .c-selection-content > .c-participants { grid-column:2; grid-row:1; gap:4px; }
 .c-selection-content .c-participants > .c-seat { min-width:0; }
 .c-selection-content .c-seat > button { min-height:44px; height:44px; padding:4px 6px; }
 .c-selection-content .c-seat img,.c-selection-content .c-seat small:nth-of-type(2),.c-selection-content .c-seat .c-seat-ready { display:none; }
 .c-selection-content .c-seat strong { font-size:11px; }
 .c-selection-content .c-seat small:first-child { font-size:8px; letter-spacing:0; }
 .c-selection-content > .c-selection-main { grid-column:1; grid-row:2; min-height:0; }
 .c-selection-content > .c-roster-wrap { grid-column:2; grid-row:2; min-height:0; overflow:auto; padding:2px; }
 .c-selection-content .c-roster-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
 .c-selection-content .c-roster-tile { height:60px; }
 .c-selection-content .c-player-editor { height:100%; min-height:0; grid-template-columns:110px minmax(0,1fr); }
 .c-selection-content .c-player-art { height:100%; min-height:0; }
 .c-selection-content .c-player-art > .c-player-preview-stage { height:100%; max-height:260px; }
 .c-selection-content .c-editor-info { min-height:0; padding:8px 10px 8px 0; gap:6px; overflow:auto; align-content:start; }
 .c-selection-content .c-player-bio-line,.c-selection-content .c-equipment-summary { display:none; }
 .c-selection-content .c-editor-info > .a-kicker { font-size:9px; }
 .console-stage .c-selection-content .c-character-row .c-choice-value { font-size:21px; }
 .c-selection-content .c-control-row { flex-wrap:wrap; }
 .c-selection-content .c-control-row .c-choice-label { flex-basis:100%; padding:4px 8px 0; font-size:11px; }
 .c-selection-content .c-control-row .c-choice-value { flex:1; font-size:12px; }
 .c-selection-content .c-editor-actions { gap:5px; }
 .console-stage .c-selection-content .c-editor-actions .c-button { padding:8px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .c-title-start { animation:none; opacity:1; } }
@media(max-width:1000px){
 .c-player-editor .c-control-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px}
 .c-player-editor .c-control-row .c-choice-label{grid-column:1/-1;padding:5px 10px}
 .c-player-editor .c-control-row .c-choice-prev{grid-column:1;grid-row:2}
 .c-player-editor .c-control-row .c-choice-value{grid-column:2;grid-row:2}
 .c-player-editor .c-control-row .c-choice-next{grid-column:3;grid-row:2}
}
@media(max-width:600px){
 .c-local-header{flex-direction:column;align-items:flex-start;gap:8px}
 .c-local-header .a-title{font-size:27px}.c-local-header .c-steps{font-size:10px}
 .console-stage .c-seat>button{min-height:60px;padding:6px}.c-seat img{height:44px}.c-seat .c-seat-ready{display:none}
 .c-player-editor .c-control-row .c-choice-value{font-size:13px}
}
@media(max-height:600px) and (min-width:601px) and (max-width:999px){
 .c-editor-info>.a-kicker{display:none}
 .c-editor-info>.c-character-row{order:0}.c-editor-info>.c-editor-actions{order:1}.c-editor-info>.c-attributes{order:2}.c-editor-info>.c-control-row{order:3}
}

/* Original exhibition/hud/scoreboard.gd, scaled with the game viewport. */
body.console-client #game-shell>header,body.console-client #game-shell>footer{display:none}
body.console-client .match-controls{display:none}
#console-match-hud{position:fixed;inset:0;z-index:1;pointer-events:none;color:#f3f6ff;font-family:"CAT Bahnschrift",Bahnschrift,sans-serif;font-weight:600}
.c-hud-stage{position:absolute;left:50%;top:50%;width:1920px;height:1080px;transform:translate(-50%,-50%) scale(var(--hud-scale,1));transform-origin:center}
.c-scoreboard{position:absolute;left:48px;top:40px;font-variation-settings:"wght" 600,"wdth" 100;font-variant-numeric:tabular-nums}
.c-score-rows{background:rgba(8.925,15.3,38.25,.88);border-radius:5px 5px 0 0;overflow:hidden}
.c-score-row{display:grid;grid-template-columns:38px var(--score-name-width,200px) 54px 76px;align-items:center;min-height:46px;font-size:28px;line-height:1.05}
.c-score-row+.c-score-row{border-top:2px solid #ffffff1a}
.c-score-server{display:flex;align-items:center;justify-content:center;height:46px}.c-score-server i{display:block;width:14px;height:14px;border-radius:50%;background:#dbff47}
.c-score-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.c-score-name.doubles{font-size:20px}
.c-score-games,.c-score-points{display:flex;height:46px;align-items:center;justify-content:center;font-weight:700}
.c-score-games{background:rgba(25.5,38.25,79.05,.95)}.c-score-points{background:#ffd83a;color:#0a1226}
.c-score-footer{font-size:22px;line-height:28px;color:#b4bfdb;background:rgba(0,5.1,17.85,.8);padding:3px 16px 5px;border-top:3px solid #ffd83a;border-radius:0 0 5px 5px}
.c-hud-fps{position:absolute;right:48px;bottom:40px;font-size:20px;text-shadow:1px 1px 3px #000}
.c-serve-gauge-canvas{position:absolute;inset:0;width:1920px;height:1080px;pointer-events:none}
.c-event-banner{position:absolute;left:50%;top:72%;transform:translate(-50%,-50%);padding:10px 56px 12px;border-top:3px solid #ffd83a;border-bottom:1px solid #ffd83a;border-radius:3px;background:rgba(3.825,8.925,22.95,.92);box-shadow:0 0 10px rgba(0,0,0,.45);text-align:center;white-space:nowrap;pointer-events:none}
.c-event-title{font-size:46px;line-height:1.2;font-weight:700;font-variation-settings:"wght" 700,"wdth" 100;color:#f3f6ff}
.c-event-banner.accent .c-event-title{color:#ffd83a}
.c-event-subtitle{margin-top:2px;font-size:22px;line-height:1.2;font-weight:500;font-variation-settings:"wght" 500,"wdth" 100;color:#b4bfdb}
.c-match-hint{position:absolute;left:48px;bottom:40px;font-size:22px;line-height:34px;font-weight:500;font-variation-settings:"wght" 500,"wdth" 100;color:#f3f6ff;text-shadow:0 0 6px rgba(0,0,0,.75);pointer-events:none}
.match-controls{position:fixed;left:calc(50% - 912px * var(--hud-scale,1));bottom:calc(50% - 500px * var(--hud-scale,1));z-index:1;transform:scale(var(--hud-scale,1));transform-origin:bottom left}
.c-hud-pause{border:0;padding:0;background:none;font-family:"CAT Bahnschrift",Bahnschrift,sans-serif;font-size:22px;font-weight:500;color:#f3f6ff;text-shadow:1px 1px 3px #000;cursor:pointer}

.c-player-preview-stage { position:relative; width:100%; min-width:0; }
.c-player-preview-stage > img { width:100%; height:100%; object-fit:contain; object-position:center; }
.c-hero-seat { z-index:2; pointer-events:none; }
