/* This file belongs to each game. HUD, menus and controls may be rearranged. */
#game-shell { --game-accent:#82ddd5; --game-text:#eff6f7; color:var(--game-text); background:#15263a; border:1px solid #294657; border-radius:16px; padding:18px; display:grid; gap:14px; }
.player-hud { display:flex; flex-wrap:wrap; gap:18px; align-items:center; }
.player-hud .stat { min-width:58px; }
.player-hud .stat strong { color:var(--game-text); font-size:22px; }
.player-hud .stat span { color:var(--game-text); opacity:.7; letter-spacing:.5px; }
.player-controls { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-left:auto; }
#game-shell .icon-button { color:var(--game-text); border-color:#ffffff30; min-height:40px; }
.play-area { position:relative; min-width:0; }
#game-surface { aspect-ratio:960/600; background:#122337; border:1px solid #ffffff20; border-radius:12px; overflow:hidden; }
#game-surface canvas { display:block; width:100%; height:100%; touch-action:none; }
.game-menu { position:absolute; inset:0; display:grid; place-content:center; gap:12px; text-align:center; padding:16px; background:#102039d9; color:var(--game-text); overflow:auto; }
.game-menu[hidden], [hidden] { display:none !important; }
.game-menu h2 { font-size:clamp(20px,3vw,32px); margin:0; }
.game-menu p { margin:0; font-size:13px; line-height:1.6; max-width:420px; }
.game-menu button { justify-self:center; }
.player-status { display:flex; gap:14px; justify-content:space-between; font-size:11px; align-items:center; }
.player-status p { margin:0; }.update-waiting { color:var(--game-accent); }
.game-dialog { width:min(480px,calc(100% - 28px)); max-height:calc(100dvh - 28px); overflow:auto; padding:24px; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:14px; }
.game-dialog::backdrop { background:#081426b8; }.game-dialog h2 { font-size:24px; }.game-dialog p { line-height:1.7; font-size:14px; color:var(--muted); }
.game-dialog a { color:var(--gold); }.game-dialog button { min-height:44px; }.dialog-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; margin-top:16px; }
.analytics-actions { display:flex; gap:10px; }.analytics-actions button { flex:1; }.analytics-choice { padding:14px; border:1px solid var(--line); border-radius:10px; }
.installation { text-align:center; margin:24px auto; }.installation .install-actions { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }.installation p { font-size:12px; color:var(--muted); }
.installation button { min-height:44px; }#install-platform { display:block; width:100%; margin:10px 0; font:inherit; padding:10px; color:var(--text); background:var(--panel); border:1px solid var(--line); }
.preview-label { color:var(--cyan); font-size:12px; }.is-playing { overflow:hidden; }.is-playing .site-header,.is-playing .page-intro,.is-playing .site-footer,.is-playing .installation { display:none; }
.is-playing .app-shell { padding:0; max-width:none; }
.is-playing #game-shell { position:fixed; inset:0; z-index:30; height:100dvh; padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); border:0; border-radius:0; grid-template-rows:auto minmax(0,1fr) auto; }
.is-playing .play-area { align-self:center; justify-self:center; width:min(100%,calc((100dvh - 156px) * 1.6)); }
#game-shell:fullscreen { height:100dvh; width:100%; }
#game-shell[data-adapter='tiles'] { --game-text:#172c38; background:#f1f1e9; border-color:#d5dfd9; }
[data-adapter='tiles'] .player-hud { align-content:start; }
[data-adapter='tiles'] #game-surface { background:#dfe7e5; aspect-ratio:1; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:14px; }
.signal-tile { min-width:0; min-height:0; border:2px solid #c0cfca; border-radius:12px; font-size:24px; font-weight:700; color:#354a51; background:#f6f6f0; }
.signal-tile.lit { color:#172c38; border-color:#172c38; background:var(--game-accent); box-shadow:inset 0 0 0 4px #ffffff90; }
[data-adapter='tiles'] .game-menu { background:#f1f1e9ef; }[data-adapter='tiles'] .icon-button { border-color:#172c3850 !important; background:#fff8; }
.is-playing #game-shell[data-adapter='tiles'] { grid-template-columns:210px minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; }
.is-playing [data-adapter='tiles'] .player-hud { flex-direction:column; justify-content:center; align-items:stretch; gap:14px; }
.is-playing [data-adapter='tiles'] .player-controls { margin:0; }.is-playing [data-adapter='tiles'] .play-area { width:min(100%,calc(100dvh - 82px)); }
.is-playing [data-adapter='tiles'] .player-status { grid-column:1/-1; }
@media(max-width:600px) {
  #game-shell { padding:12px; }.player-hud { gap:12px; }.player-hud .stat strong { font-size:18px; }.player-controls { margin-left:0; width:100%; }
  .player-controls button { font-size:11px; padding:8px 9px; }.game-menu { gap:8px; padding:10px; }.game-menu p { font-size:11px; }
  .game-menu .primary-button { padding:10px 18px; }
  .is-playing .play-area { width:min(100%,calc((100dvh - 218px) * 1.6)); }
  .is-playing #game-shell[data-adapter='tiles'] { grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr) auto; }
  .is-playing [data-adapter='tiles'] .player-hud { flex-direction:row; justify-content:start; gap:12px; }.is-playing [data-adapter='tiles'] .play-area { width:min(100%,calc(100dvh - 228px)); }
}
@media(max-height:460px) {
  .player-hud { gap:10px; }.player-hud .stat strong { font-size:17px; }.player-hud .stat span { font-size:8px; }.player-controls { gap:5px; }
  .player-controls button { min-height:34px !important; padding:6px 8px; font-size:11px; }.game-menu { gap:6px; padding:8px; }.game-menu p { font-size:11px; }.game-menu h2 { font-size:20px; }
  .game-menu .primary-button { padding:8px 16px; }.is-playing .play-area { width:min(100%,calc((100dvh - 124px) * 1.6)); }
  .is-playing #game-shell[data-adapter='tiles'] { grid-template-columns:210px 1fr; grid-template-rows:1fr auto; }
  .is-playing [data-adapter='tiles'] .player-hud { flex-direction:row; gap:10px; justify-content:start; }.is-playing [data-adapter='tiles'] .play-area { width:min(100%,calc(100dvh - 70px)); }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }

/* Next Game presentation uses the shared focused shell. */
#game-shell { --game-text:#f4efe2; --court-muted:#a6b7b3; --court-line:#ffffff19; gap:9px; background:radial-gradient(ellipse at 50% 46%,#243a38 0%,#142321 64%,#101b19 100%); border-color:#4c6056; }
.player-hud { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:10px 18px; min-width:0; }
.court-location { display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:8px; font-size:11px; font-weight:750; letter-spacing:.10em; white-space:nowrap; }
.court-location::before { content:''; width:8px; height:8px; border-radius:50%; background:#ebbc73; grid-row:span 2; }
.court-location small { color:var(--court-muted); font-size:9px; font-weight:600; letter-spacing:.08em; }
.court-scoreboard { display:flex; justify-self:center; align-items:stretch; justify-content:center; border:1px solid var(--court-line); border-radius:10px; background:#101b19d9; overflow:hidden; }
.court-stat { min-width:68px; padding:5px 10px; text-align:center; }
.court-stat + .court-stat { border-left:1px solid var(--court-line); }
.court-stat strong { display:block; font-size:23px; font-variant-numeric:tabular-nums; line-height:1.08; }
.court-stat span { display:block; color:var(--court-muted); font-size:9px; font-weight:700; white-space:nowrap; }
.court-stat:first-child strong { color:#a3e9d4; }
.court-stat:nth-child(2) strong { color:#ffb095; }
#shot-clock { color:#f4dfb3; }
#shot-clock.urgent { color:#ff966f; }
.player-controls { margin:0; justify-content:end; }
#game-shell .player-controls .icon-button { color:#e6ece5; background:#192724; border-color:#ffffff28; min-height:36px; }
#game-shell .player-controls .icon-button:hover:not(:disabled) { border-color:#b1bdb277; }
#game-shell #update-game { color:#1b241d; background:#e8bc78; border-color:#e8bc78; white-space:nowrap; }
#game-shell #update-game:disabled { opacity:.7; }
#game-surface { aspect-ratio:16/11; border-color:#e6d5af42; border-radius:13px; background:#43575d var(--court-art,url("art/apartment-court.webp")) center / 100% 100% no-repeat; box-shadow:0 10px 32px #050c0b70; }
#game-surface canvas:focus-visible { outline:2px solid #ffd68a; outline-offset:-3px; }
#game-shell[data-court-view='close'] #game-surface { background-position:var(--court-origin); background-size:calc(100% * var(--court-scale)) calc(100% * var(--court-scale)); }
#game-shell[data-court-view='close']:not([data-full-court='true']) #game-surface canvas { transform:scale(var(--court-scale)); transform-origin:var(--court-origin); }
#game-shell[data-court-view='close'] #game-surface:has(canvas:focus-visible) { outline:2px solid #ffd68a; }
.court-made-basket { --made-color:#a3e9d4; position:absolute; inset:clamp(6px,1.3vw,14px) auto auto clamp(6px,1.3vw,14px); max-width:calc(100% - 28px); pointer-events:none; }
.court-made-basket[data-team='1'] { --made-color:#ffb095; }
.court-made-basket[data-heat] { --made-color:#ffc875; }
.court-made-basket[data-team] { display:grid; gap:2px; padding:5px 10px 6px; border-inline-start:3px solid var(--made-color); border-radius:3px 8px 8px 3px; background:#101b19f5; box-shadow:0 3px 10px #050c0b55; animation:court-made-in .18s ease-out both; }
.court-made-basket strong { color:var(--made-color); font-size:clamp(14px,2.2vw,24px); font-weight:900; line-height:1.05; text-transform:uppercase; }
.court-made-basket span { color:#e4ede4; font-size:12px; line-height:1.2; }
@keyframes court-made-in { from { opacity:0; transform:translateY(4px); } }
.game-menu { background:#101c19d9; color:var(--game-text); }
#game-shell[data-round='menu'] .game-menu { background:linear-gradient(90deg,#111c19f5 0%,#111c19e6 31%,#111c1950 70%,#111c1920 100%); place-content:center start; text-align:left; padding:clamp(16px,4vw,52px); }
#game-shell[data-round='menu']:not([data-online='true']) .game-menu { grid-template-columns:minmax(0,42rem); }
.court-menu-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.court-primary-actions { display:flex; align-items:center; gap:8px; }
#game-shell #play:hover { transform:none; }
#update-deferred { color:#f5d29b; text-align:center; flex-basis:100%; }
.court-menu-actions > [role='status'] { flex-basis:100%; }
#game-shell[data-online='true'] #court-matchup,
#game-shell[data-online='true'] #court-online,
#game-shell[data-online='true'] #court-warmup,
#game-shell[data-online='true'] #court-locker-open,
#game-shell[data-online='true'] #court-reward,
#game-shell[data-online='true']:not([data-round='paused']) #menu-description,
#game-shell[data-online='true']:not([data-round='paused']) .court-primary-actions,
#game-shell[data-online='true'][data-round='paused'] #room-lobby { display:none; }
#game-shell[data-online='true'][data-round='menu'] .court-intro { display:none; }
.room-lobby { display:grid; gap:8px; max-width:370px; }
.room-lobby label { font-size:12px; font-weight:750; }
.room-lobby input,.room-lobby select { min-width:0; min-height:36px; padding:4px 8px; border:1px solid var(--court-line); border-radius:8px; background:#172724; color:#ecf5ee; font:inherit; }
.room-entry,.room-invite { display:grid; gap:6px; }
#game-shell .game-menu:has(:is(#ranked-history,#ranked-standings):not([hidden])) { align-content:safe center; justify-content:center; padding:10px; }
.game-menu:has(:is(#ranked-history,#ranked-standings):not([hidden])) > :not(.room-lobby) { display:none; }
:is(#ranked-history,#ranked-standings) { display:grid; gap:6px; width:min(320px,100%); min-width:0; text-align:left; }
:is(#ranked-history-title,#ranked-standings-title) { font-size:20px; }
#ranked-history-list { display:grid; gap:5px; list-style:none; margin:0; padding:0; }
#ranked-history-list:empty { display:none; }
#ranked-history-list li { display:grid; grid-template-columns:1fr auto; gap:2px 8px; border-top:1px solid var(--court-line); padding:4px 0; font-size:12px; }
#ranked-history-list time { grid-column:1/-1; color:var(--court-muted); font-size:10px; }
#ranked-history button { min-height:36px; }
#ranked-history-results,#ranked-report { display:grid; gap:6px; }
#ranked-report h3 { margin:0; font-size:16px; }
#ranked-report textarea { width:100%; min-width:0; resize:vertical; background:#172724; color:#ecf5ee; border:1px solid var(--court-line); border-radius:8px; font:inherit; padding:6px 8px; }
#ranked-history-list li:has(.ranked-report-action) time { grid-column:1; align-self:center; }
#ranked-history-list .ranked-report-action { grid-column:2; grid-row:2; justify-self:end; padding:4px 8px; }
#ranked-standings-list { display:grid; gap:2px; list-style:none; padding:0; margin:0; max-height:9rem; overflow:auto; }
#ranked-standings-list:empty { display:none; }
#ranked-standings-list li { display:grid; grid-template-columns:3ch 1fr auto; gap:8px; padding:5px 0; border-top:1px solid var(--court-line); font-size:12px; }
#ranked-standings-list strong { overflow-wrap:anywhere; }
#ranked-standings-choice { display:grid; gap:4px; }
#ranked-standings-choice input { min-height:0; accent-color:#e8bc78; }
#ranked-standings button { min-height:36px; }
.room-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.room-line input { width:11ch; text-transform:uppercase; }
.room-code { font-size:1.15em; font-weight:800; letter-spacing:.12em; }
.room-connection { position:absolute; z-index:2; left:50%; top:8px; transform:translateX(-50%); width:max-content; max-width:90%; margin:0; padding:6px 10px; border-radius:8px; background:#10221f; color:#ffe1a0; font-size:12px; pointer-events:none; }
#game-shell:not([data-round='running']) .room-connection { display:none; }
#game-shell[data-round='menu'] .court-menu-actions { justify-content:flex-start; }
#court-matchup { display:grid; gap:7px; width:min(100%,42rem); min-width:0; text-align:left; }
#court-mode-deck { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.court-mode-card {
  display:grid; align-content:center; gap:4px;
  width:100%; min-width:0; min-height:44px; padding:7px 9px; border:1px solid #b7ccc044; border-radius:7px;
  color:#f4efe2; background:#1b2b26; font:inherit; line-height:1.12; text-align:left;
}
.court-mode-card strong { font-size:clamp(12px,1.5vw,16px); font-weight:850; }
.court-mode-card span { color:#d4e2d7; font-size:11px; }
.court-mode-card:hover { border-color:#f4efe299; }
.court-mode-card:focus-visible { outline:2px solid #fff2c9; outline-offset:2px; }
.court-mode-card[aria-pressed='true'] {
  border-color:#f5ca81; box-shadow:inset 0 -3px 0 #f5ca81; color:#ffe2ad; background-color:#3b3527;
}
#game-shell[data-round='menu'] #court-mode-deck > .court-mode-card {
  align-content:end; min-height:clamp(76px,12vw,135px); padding:clamp(8px,1.2vw,16px);
  background-image:linear-gradient(0deg,#0a1513f7 0%,#0b1711bb 45%,#10221a22 100%), var(--mode-art);
  background-position:center; background-size:cover;
}
.court-mode-card[data-mode='quick'] { --mode-art:url('art/apartment-court.webp'); }
.court-mode-card[data-mode='arcade'] {
  --mode-art:radial-gradient(circle at 50% 39%,transparent 0 13px,#ffe5b385 14px 15px,transparent 16px),
    linear-gradient(90deg,transparent calc(50% - 1px),#ffe5b385 50%,transparent calc(50% + 1px)),
    repeating-linear-gradient(110deg,#bd7d4233 0 2px,transparent 2px 16px),linear-gradient(115deg,#744a30,#c38f54);
}
.court-mode-card[data-mode='tour'] { --mode-art:url('art/dusk-court.webp'); }
#court-challenges { --mode-art:url('art/rooftop-court.webp'); }
#game-shell[data-round='menu'] #court-mode-deck > .court-mode-card strong {
  font-size:clamp(13px,1.5vw,18px); font-weight:900; letter-spacing:-.035em; overflow-wrap:anywhere;
}
@media (min-width:761px) and (min-height:461px) and (max-height:850px) {
  #game-shell[data-round='menu'] .game-menu:not(:has(#city-tour-panel:not([hidden]))) #court-mode-deck > .court-mode-card {
    min-height:98px; padding:9px;
  }
}
#game-shell[data-round='over'] #court-mode-deck > .court-mode-card:not(#court-challenges) span { display:none; }
#court-challenge-panel {
  display:grid; gap:7px; padding:8px; border:1px solid #92a99e60; border-radius:10px; background:#15241f;
}
.court-challenge-deck, #court-knockout-options { display:grid; gap:6px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.court-challenge-deck > [data-mode='world'] { background-color:#263f35; }
.court-challenge-deck > [data-mode='world'][aria-pressed='true'] { background-color:#3b3527; }
#court-knockout-options { padding-top:7px; border-top:1px solid #92a99e60; }
#game-shell[data-round='menu'] #court-matchup:has(#court-challenge-panel:not([hidden])) #court-mode-deck > .court-mode-card {
  min-height:54px; padding:6px 8px;
}
@media (min-width:600px) {
  .court-challenge-deck { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
#court-quick-rival { display:flex; align-items:center; flex-wrap:wrap; gap:5px 8px; font-size:11px; font-weight:750; }
#court-rivals { min-width:0; padding:5px 9px; border:1px solid var(--court-line); border-radius:7px; background:#172724; color:#ecf5ee; font:inherit; font-size:12px; }
#court-scout { max-width:none; color:#bdd4c8; line-height:1.35; }
#court-shooting-record { color:#ffe2ad; font-weight:750; font-variant-numeric:tabular-nums; }
#court-matchup:has(#city-tour-panel:not([hidden])) #court-scout { display:none; }
#city-tour-panel {
  display:grid; gap:9px; min-width:0; padding:12px 14px; border:1px solid #92a99e60; border-radius:10px;
  background:radial-gradient(ellipse at 9% 0%,#33473a,#182924 68%); color:#f5efe3;
}
.city-tour-heading { display:flex; justify-content:space-between; align-items:end; gap:5px 12px; flex-wrap:wrap; }
#city-tour-panel .city-tour-country { color:#f3ca86; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
#city-tour-city { margin:0; font-size:clamp(17px,3vw,29px); line-height:1.05; letter-spacing:-.035em; }
#city-tour-progress { color:#a4e6c4; font-weight:700; white-space:nowrap; }
.city-tour-progress-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px 9px; }
#city-tour-continue { padding:3px 7px; border:1px solid #91ab9b; border-radius:5px; background:#1b3329; color:#eef7ef; }
.city-tour-match { display:grid; gap:1px; }
#city-tour-opponent { color:#f4efe2; font-weight:700; line-height:1.3; }
#city-tour-format { color:#e0eae2; }
#city-tour-format[data-final] { color:#ffda97; }
#city-tour-rules, #city-tour-storage { color:#c6d6cb; }
#city-tour-rules { margin-inline-start:7px; padding-inline-start:7px; border-inline-start:1px solid #a3bdb673; }
#city-tour-panel #city-tour-scout { margin-top:2px; color:#b9cdc1; font-size:11px; line-height:1.3; }
#city-tour-panel #city-tour-scout[data-goal], #city-tour-stops li[data-badge] .city-tour-marker { color:#ffe0a5; }
#city-tour-regions { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; }
#city-tour-regions button {
  justify-self:stretch; min-width:0; min-height:38px; padding:4px 2px 7px; position:relative;
  border:1px solid #bdd3c144; border-radius:5px; background:#16241f; color:#dae6dc;
  font-size:clamp(9px,1vw,11px); font-weight:750; line-height:1.1;
}
#city-tour-regions button::after {
  content:''; position:absolute; inset:auto 4px 3px; height:2px; border-radius:4px;
  background:linear-gradient(to right,#a4e6c4 var(--region-cleared),#718b783e var(--region-cleared));
}
#city-tour-regions button:hover { border-color:#ddc591; }
#city-tour-regions button[aria-pressed='true'] { color:#ffe2ab; border-color:#d6ad71; background:#3e3828; }
#city-tour-regions button:focus-visible { outline-offset:1px; }
.city-tour-route { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:center; gap:8px; }
#city-tour-map { width:100%; max-height:126px; object-fit:contain; }
#city-tour-stops { display:grid; gap:2px; list-style:none; padding:0; margin:0; }
#city-tour-stops li {
  display:grid; grid-template-columns:11px minmax(0,1fr) auto; column-gap:5px; align-items:center;
  min-width:0; min-height:18px; font-size:11px; line-height:1.15; color:#c8d6ce;
}
.city-tour-marker { display:grid; place-items:center; width:11px; height:12px; font-weight:800; }
.city-tour-marker:empty::before { content:''; width:5px; height:5px; border-radius:50%; background:#829b8e; }
#city-tour-stops li[data-final] .city-tour-marker:empty::before { border-radius:0; background:#e7ba7d; transform:rotate(45deg); }
#city-tour-stops li strong { color:#efd199; font-size:.85em; white-space:nowrap; }
#city-tour-stops li[data-stop='current'] { color:#ffe3ad; font-weight:800; }
#city-tour-stops li[data-stop='current'] .city-tour-marker::before { background:#ffda92; box-shadow:0 0 0 2px #ffda9266; }
#city-tour-stops li[data-stop='cleared'] { color:#a4e6c4; }
#city-tour-stops li button {
  display:grid; grid-column:1/-1; grid-template-columns:subgrid; align-items:center; min-height:23px;
  padding:2px 3px; text-align:start; font:inherit; color:inherit; background:#9ce6c215;
  border:1px solid transparent; border-radius:4px;
}
#city-tour-stops li button:is(:hover,:focus-visible,[aria-pressed='true']) { border-color:#b8ddb9; background:#8fc4a42a; }
#city-tour-stops li button small { font-size:.85em; white-space:nowrap; }
.city-tour-future, #city-tour-destinations { display:flex; flex-wrap:wrap; align-items:center; gap:4px 7px; }
.city-tour-future { border-top:1px solid #adc0af33; padding-top:4px; color:#c6d6cb; }
#city-tour-destinations { list-style:none; padding:0; margin:0; }
#city-tour-destinations li { background:#101d19; border:1px solid #adc0af42; border-radius:20px; padding:2px 8px; font-size:10px; font-weight:700; }
#game-shell:not([data-round='running']) .game-menu:has(#city-tour-panel:not([hidden])) { align-content:safe center; }
#game-shell[data-round='menu'] .game-menu:has(#city-tour-panel:not([hidden])) .court-mode-card { min-height:44px; padding:6px 8px; }
#game-shell[data-round='menu'] .game-menu:has(#city-tour-panel:not([hidden])) .court-mode-card strong { font-size:clamp(12px,1.35vw,17px); }
#rival-name { text-transform:uppercase; }
#court-recap { color:#cbe4d7; }
#court-reward { color:#f4cd91; }
.locker-choices label { display:grid; gap:4px; margin-block:8px; font-size:13px; }
.locker-choices select { width:100%; min-height:36px; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:6px; }
.court-intro { display:none; }
#game-shell[data-round='menu'] .court-intro { display:block; }
#game-shell[data-round='menu'] #menu-title,
.game-menu:has(#court-result:not([hidden])) #menu-title,
.game-menu:has(#court-result:not([hidden])) #menu-description { display:none; }
.court-intro .court-series { color:#e2bc7f; font-size:10px; font-weight:750; letter-spacing:.16em; }
.court-intro h2 { margin:2px 0; font-size:clamp(32px,6vw,77px); font-weight:900; letter-spacing:-.075em; line-height:.95; }
.court-intro em { color:#f3c781; font-style:normal; }
.court-intro .court-mode { margin-top:9px; font-size:11px; color:#e3e9df; letter-spacing:.08em; text-transform:uppercase; }
#game-shell[data-round='menu'] #menu-description { max-width:34ch; color:#d7e0d7; line-height:1.48; }
#game-shell[data-round='menu']:not([data-online='true']) #menu-description { display:none; }
.court-status { text-align:center; justify-content:center; min-height:27px; margin-top:6px; font-size:12px; }
#view-notice:empty { display:none; }
#game-status { min-width:0; padding:5px 13px; border:1px solid var(--court-line); border-radius:30px; background:#101b19d9; color:#e4ede4; font-weight:650; }
#game-status[data-tone='open'] { color:#ffe1a1; border-color:#eec67365; }
#game-status[data-tone='score'] { color:#a8efce; border-color:#9de2ce70; }
#game-status[data-tone='rival'] { color:#ffcab9; border-color:#f59e827e; }
#game-shell[data-world='true'] :is(.court-location small, .court-stat:nth-child(2), #court-pass, .court-keyboard, #touch-stick) { display:none; }
#game-shell[data-world='true'] .court-input { justify-content:flex-end; }
#game-shell[data-world='true'] .court-actions { display:flex; }
.court-actions { display:flex; gap:8px; }
.touch-device .court-actions { display:grid; grid-template-columns:repeat(2,minmax(var(--court-action-width, 78px),1fr)); gap:6px; }
@media (orientation:landscape) and (min-width:670px) {
  .touch-device .court-actions { display:flex; }
}
#game-shell .court-actions button { min-height:44px; min-width:78px; touch-action:none; font-size:13px; font-weight:750; border-color:#ffffff35; }
#game-shell #court-pass { background:#23443c; color:#c8f2e5; }
#game-shell #court-shoot { background:#e8bc78; color:#1b241d; }
#game-shell .court-actions button:disabled { opacity:.42; }
.court-keyboard { color:#d3ded5; font-size:12px; line-height:1.4; margin:0; }
.court-keyboard kbd { color:#f2e1be; border:1px solid #ffffff2b; border-radius:4px; padding:1px 4px; font:inherit; }
#game-shell .court-input { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 4px; min-height:44px; }
#game-shell[data-stick-side='right'] #touch-stick { order:1; }
#game-shell[data-touch-size='large'] { --court-action-width:88px; }
.touch-device #game-shell[data-touch-size='large'] .court-actions button { min-width:var(--court-action-width); min-height:52px; }
.touch-device #game-shell[data-touch-size='large'] #touch-stick { width:104px; height:104px; }
#game-shell #touch-stick::before { top:50%; }
#game-shell #touch-stick::after { left:50%; }
#game-shell #touch-stick-knob { left:calc(50% - 17px); top:calc(50% - 17px); }
.court-key-map { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 10px; margin:8px 0; }
.court-key-map label { display:flex; align-items:center; justify-content:space-between; gap:4px; font-size:12px; }
.court-key-map input, .court-key-map select { min-height:34px; max-width:100%; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:4px 6px; }
.court-key-map input { width:34px; text-align:center; }
#court-control-notice:empty { display:none; }
.court-input .touch-stick { display:none; }
.is-playing.touch-device .court-input .touch-stick { display:block; }
.is-playing.touch-device .court-input .court-keyboard { display:none; }
.is-playing #game-shell[data-adapter='canvas'],
.is-playing.touch-device #game-shell[data-adapter='canvas'] { grid-template-rows:auto minmax(0,1fr) auto; }
.is-playing .court-frame { min-height:0; container-type:size; display:grid; place-items:center; }
.is-playing .court-presentation { width:min(100cqw,calc((100cqh - 34px) * 16 / 11)); max-width:100%; }
.is-playing #game-shell[data-adapter='canvas'] .play-area { width:100%; }
@media(max-width:920px) {
  .court-location { display:none; }
  .player-hud { grid-template-columns:minmax(0,1fr) auto; }
  .court-scoreboard { justify-self:start; }
}
@media(max-width:700px) {
  .player-hud { grid-template-columns:1fr; row-gap:6px; }
  .court-scoreboard { justify-self:center; }
  .player-controls { justify-content:center; }
  .court-stat { min-width:54px; }
  #game-shell[data-round='menu'] .game-menu { align-content:safe center; padding:10px 14px; gap:6px; }
  #game-shell[data-round='menu'] #menu-description { max-width:49ch; }
  .court-intro .court-mode { margin-top:4px; }
}
@media (orientation:landscape) and (max-height:460px) and (min-width:560px) {
  .is-playing.touch-device .player-hud { grid-template-columns:auto minmax(0,1fr); column-gap:8px; }
  .is-playing.touch-device .court-scoreboard { justify-self:start; }
  .is-playing.touch-device .court-stat { padding-inline:6px; }
  .is-playing.touch-device .player-controls { width:auto; justify-content:end; }
  .is-playing.touch-device .court-actions { display:flex; }
}
@media (orientation:landscape) and (max-height:400px) and (min-width:560px) {
  .is-playing.touch-device #game-shell[data-adapter='canvas'][data-round='running'] .court-presentation {
    width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center;
  }
  .is-playing.touch-device #game-shell[data-adapter='canvas'][data-round='running'] .play-area {
    grid-column:2; width:min(calc(100cqh * 16 / 11),calc(100cqw - 224px));
  }
  .is-playing.touch-device #game-shell[data-adapter='canvas'][data-round='running'] .court-status {
    grid-column:3; justify-self:center; width:min(100%,15rem); max-height:100cqh; min-height:0;
    margin:0; padding-inline:8px; flex-direction:column; justify-content:safe center;
    gap:6px; overflow:auto; overflow-wrap:anywhere;
  }
}
@media (orientation:landscape) and (max-height:460px) and (min-width:560px) and (max-width:599px) {
  .is-playing.touch-device .court-stat { padding-inline:4px; }
  .is-playing.touch-device .court-stat span { font-size:8px; }
  .is-playing.touch-device .player-controls .icon-button { min-width:44px; padding-inline:5px; }
  .is-playing.touch-device .court-primary-actions { gap:4px; }
  .is-playing.touch-device #game-shell .court-primary-actions > button { padding-inline:3px; }
}
@media(max-width:600px) and (orientation:portrait) {
  .is-playing #game-shell[data-round='menu']:not([data-online='true']) { grid-template-columns:minmax(0,1fr); }
  .is-playing #game-shell[data-round='menu']:not([data-online='true']) .court-frame { position:relative; min-width:0; }
  .is-playing #game-shell[data-round='menu']:not([data-online='true']) .court-presentation { width:100%; min-width:0; }
  .is-playing #game-shell[data-round='menu']:not([data-online='true']) .play-area { position:static; }
  .is-playing #game-shell[data-round='menu']:not([data-online='true']) .court-input { display:none; }
  #game-shell[data-round='menu']:not([data-online='true']) .game-menu {
    grid-template-columns:minmax(0,1fr); align-content:safe center; justify-content:stretch;
  }
  #game-shell[data-round='menu']:not([data-online='true']) #court-matchup { width:100%; }
  .is-playing.touch-device #game-shell[data-court-view='close'] { grid-template-rows:auto auto auto; align-content:center; }
  .is-playing.touch-device #game-shell[data-court-view='close'] .court-frame { container-type:inline-size; }
  .is-playing.touch-device #game-shell[data-court-view='close'] .court-presentation { width:100%; }
  .is-playing.touch-device #game-shell[data-court-view='close'][data-round='menu']:not([data-online='true']) {
    grid-template-rows:auto minmax(0,1fr) auto; align-content:stretch;
  }
  .is-playing.touch-device #game-shell[data-court-view='close'][data-round='menu']:not([data-online='true']) .court-frame { container-type:size; }
  .is-playing #game-shell[data-full-court='true'] { grid-template-columns:minmax(0,1fr); }
  .is-playing #game-shell[data-full-court='true'] .game-menu { grid-template-columns:minmax(0,1fr); }
  .is-playing #game-shell[data-full-court='true'] .court-keyboard { display:none; }
  .is-playing #game-shell[data-full-court='true']:not([data-round='running']) .court-input { display:none; }
  .is-playing #game-shell[data-full-court='true'] .touch-stick { display:block; }
  .is-playing #game-shell[data-full-court='true'] .court-actions {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px;
  }
  .is-playing #game-shell[data-full-court='true'] .court-actions button { min-width:0; padding-inline:10px; }
}
@media (orientation:landscape) and (max-height:460px), (orientation:portrait) and (max-width:600px) {
  .is-playing.touch-device #game-shell[data-adapter='canvas'] .court-frame { position:relative; }
  .is-playing.touch-device #game-shell[data-adapter='canvas']:not([data-round='running']) .play-area { position:static; }
  .is-playing.touch-device #game-shell[data-adapter='canvas']:not([data-round='running']) .court-input { display:none; }
  .is-playing.touch-device #game-shell[data-adapter='canvas']:not([data-round='running']) #game-status { visibility:hidden; }
  .is-playing.touch-device #game-shell[data-adapter='canvas'] .game-menu {
    z-index:1; align-content:safe center; justify-content:center; border-radius:12px;
  }
}
@media (orientation:landscape) and (max-height:370px) {
  .is-playing.touch-device .court-intro :is(.court-series,.court-mode) { display:none; }
}
@media(max-height:460px) {
  #game-shell[data-round='menu'] .game-menu { align-content:safe center; padding:8px; }
  .court-primary-actions { gap:6px; }
  #game-shell .court-primary-actions > button { min-height:40px; padding-inline:5px; font-size:11px; white-space:nowrap; }
  #game-shell .court-actions button { min-height:42px !important; }
  .court-status { min-height:22px; font-size:11px; }
  #game-status { padding-block:3px; }
  .court-intro h2 { font-size:29px; }
  .court-intro .court-mode { margin-top:4px; }
}
@media (orientation:landscape) and (max-height:400px) and (min-width:560px) {
  .is-playing #game-shell[data-round='menu']:not([data-online='true']) .court-frame { position:relative; }
  .is-playing #game-shell[data-round='menu']:not([data-online='true']) .play-area { position:static; }
  #game-shell[data-round='menu']:not([data-online='true']) .game-menu {
    grid-template-columns:minmax(0,15rem) minmax(0,34rem); grid-template-areas:'title matchup' 'actions matchup';
    align-content:safe center; justify-content:center; align-items:center; gap:6px 16px;
  }
  #game-shell[data-round='menu']:not([data-online='true']) .game-menu > .court-intro { grid-area:title; }
  #game-shell[data-round='menu']:not([data-online='true']) .game-menu > #court-matchup { grid-area:matchup; }
  #game-shell[data-round='menu']:not([data-online='true']) .game-menu > .court-menu-actions { grid-area:actions; align-self:start; }
  #court-matchup, #court-mode-deck { gap:4px; }
  #game-shell[data-round='menu'] #court-mode-deck > .court-mode-card,
  .court-mode-card { align-content:center; min-height:44px; padding:4px 6px; }
  #game-shell[data-round='menu'] .court-mode-card strong,
  #game-shell[data-round='menu'] #court-mode-deck > .court-mode-card strong { font-size:12px; }
  .court-mode-card span { font-size:10px; }
}
@media (min-width:761px) {
  .is-playing #game-shell:is([data-round='menu'],[data-round='over']):not([data-online='true']) .court-frame:has(#city-tour-panel:not([hidden])) { position:relative; }
  .is-playing #game-shell:is([data-round='menu'],[data-round='over']):not([data-online='true']) .play-area:has(#city-tour-panel:not([hidden])) { position:static; }
  #game-shell:is([data-round='menu'],[data-round='over']):not([data-online='true']) .game-menu:has(#city-tour-panel:not([hidden])) {
    grid-template-columns:minmax(110px,1fr) minmax(245px,2fr) minmax(262px,2fr);
    grid-template-areas:'title deck tour' 'actions deck tour'; gap:8px 16px; align-items:center; justify-content:center;
  }
  #game-shell[data-round='over']:not([data-online='true']) .game-menu:has(#city-tour-panel:not([hidden])) {
    grid-template-areas:'result deck tour' 'recap deck tour' 'reward deck tour' 'actions deck tour';
    text-align:left;
  }
  #game-shell[data-round='menu'] .game-menu:has(#city-tour-panel:not([hidden])) > .court-intro { grid-area:title; align-self:end; }
  #game-shell[data-round='over'] .game-menu:has(#city-tour-panel:not([hidden])) > #court-result { grid-area:result; }
  #game-shell[data-round='over'] .game-menu:has(#city-tour-panel:not([hidden])) > #court-recap { grid-area:recap; }
  #game-shell[data-round='over'] .game-menu:has(#city-tour-panel:not([hidden])) > #court-reward { grid-area:reward; }
  #game-shell:is([data-round='menu'],[data-round='over']) .game-menu:has(#city-tour-panel:not([hidden])) > .court-menu-actions { grid-area:actions; align-self:start; justify-content:start; }
  #game-shell:is([data-round='menu'],[data-round='over']) .game-menu:has(#city-tour-panel:not([hidden])) #court-matchup { display:contents; }
  #game-shell:is([data-round='menu'],[data-round='over']) .game-menu:has(#city-tour-panel:not([hidden])) #court-mode-deck { grid-area:deck; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #game-shell:is([data-round='menu'],[data-round='over']) .game-menu:has(#city-tour-panel:not([hidden])) #city-tour-panel { grid-area:tour; }
}
@media (orientation:landscape) and (max-height:400px) and (min-width:761px) {
  #game-shell:is([data-round='menu'],[data-round='over']):not([data-online='true']) .game-menu:has(#city-tour-panel:not([hidden])) { gap:5px 9px; }
  #game-shell[data-round='menu'] .game-menu:has(#city-tour-panel:not([hidden])) .court-mode-card { min-height:38px; padding:4px 6px; }
  #game-shell[data-round='menu'] .game-menu:has(#city-tour-panel:not([hidden])) .court-mode-card strong { font-size:12px; }
  #game-shell[data-round='menu'] .game-menu:has(#city-tour-panel:not([hidden])) .court-mode-card span { display:none; }
  #city-tour-panel { gap:4px; padding:6px 8px; }
  #city-tour-city { font-size:18px; }
  #city-tour-regions button { min-height:27px; }
  .city-tour-route { grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); gap:4px; }
  #city-tour-stops { gap:0; }
  #city-tour-stops li { min-height:14px; font-size:10px; column-gap:3px; }
  #city-tour-stops li button { min-height:19px; }
}
@media (orientation:landscape) and (max-height:400px) {
  #city-tour-scout:not([data-goal]) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
}
@media (max-width:480px) {
  #court-mode-deck { grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
  #game-shell[data-round='menu'] #court-mode-deck > .court-mode-card {
    min-height:54px; padding:5px 8px;
  }
  .city-tour-route { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
  #city-tour-panel { gap:6px; padding:8px; }
  #game-shell[data-round='over'] .game-menu:has(#city-tour-panel:not([hidden])) { position:absolute; inset:0; }
}
@media (orientation:landscape) and (max-height:310px) and (min-width:560px) {
  #game-shell[data-round='menu']:not([data-online='true']) .court-intro :is(.court-series,.court-mode) { display:none; }
  .is-playing #game-shell[data-round='menu']:not([data-online='true']) .court-input { display:none; }
  .is-playing #game-shell[data-round='menu']:not([data-online='true']) #game-status { visibility:hidden; }
}

.court-home-link { display:inline-block; padding:10px 0; color:#ffd7a6; font-weight:750; }
.game-info #game-shell, #court-service-title:empty, #court-service-status:empty { display:none; }
#game-shell[data-service-view][data-round='menu'] .game-menu {
  display:flex; flex-direction:column; justify-content:safe center; align-items:center;
  gap:12px; text-align:center;
}
#game-shell[data-service-view][data-round='menu'] .court-intro {
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
#game-shell[data-service-view][data-round='menu'] .court-intro h2 { font-size:clamp(25px,5vw,48px); }
#game-shell[data-service-view][data-round='menu'] :is(#court-matchup,.court-menu-actions,.court-input,.court-status,.court-location,.court-scoreboard,.player-controls),
#game-shell[data-service-view][data-round='menu'] .court-intro > :is(h2:not(#court-service-title),#court-mode-heading),
#game-shell[data-service-view]:not([data-service-view='account'])[data-round='menu'] .court-account-actions,
#game-shell[data-service-view][data-online='true'] .court-home-link,
#game-shell[data-service-view][data-round='menu']:has(:is(#ranked-history,#ranked-standings):not([hidden])) .court-intro { display:none; }
#game-shell[data-service-view='online'] .room-lobby { text-align:left; }
