/* Loaded last on every page. Flattens the older layered styles: no glows,
   gradients, blur, tiny letter-spaced caps or decorative labels. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
body{background:#141518!important;color:#e8e8ea}

/* Header: site name left, all games right. */
header.topbar,body>main>header:first-child,.app>header:first-child{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0 12px;border-bottom:1px solid #2a2c31;margin-bottom:14px;font-size:15px;letter-spacing:0;text-transform:none}
header .site{font-weight:700;font-size:16px;color:#e8e8ea;letter-spacing:0}
header .all-games,header a:last-child{font-size:15px;color:#9a9ba1;letter-spacing:0}
.wordmark,.logo,.brand,.tag,.brand-mark{display:none}
footer,.friendly-note,.ready-foot,.start-note,.intro-number,.game-symbol{display:none!important}

/* Labels: readable sentence case, no tracking. */
.eyebrow,.kicker{display:none!important}
.scorebar small,.hud span,.hud small,.metric-label,.court-caption,.aim-panel>div:first-child,.result-score small,
.control span,.how h3,.event-feed strong,.toast strong,.turn strong,.power label,.neon-speed,.mast>span{
  font-size:12px!important;letter-spacing:0!important;text-transform:none!important;font-weight:600}
.court-caption>span:last-child{display:none}

/* Headings: modest. */
h1,#title,#gameTitle{font-size:26px!important;letter-spacing:0!important;line-height:1.15!important;font-style:normal!important;font-weight:700!important;text-transform:none!important}
h1 em{color:inherit;font-style:normal}
h2{letter-spacing:0!important}
.intro-content h2,.ready-screen h2{font-size:22px!important;font-style:normal!important;font-weight:700!important;text-transform:none!important;line-height:1.2!important}

/* Surfaces: flat. */
.ready-screen,.overlay{background:#141518ee!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.instruction-card,.mission,.instructions,.team-mission,#result,.results,.objective,.shot-feedback,.event-feed,.how,.tips,details{
  background:#1b1c20!important;border:1px solid #2a2c31!important;border-radius:8px!important;box-shadow:none!important}
.play-panel,.cabinet,.side-panel,.side{box-shadow:none!important}
.power-track i{background:var(--accent)!important}
.game-card{background:#1b1c20!important}

/* Game code: shown in the header so it can be sent separately from the link. */
.game-code{margin-left:auto;font-size:14px;color:#9a9ba1;font-variant-numeric:tabular-nums;letter-spacing:.06em;user-select:all}
.game-code-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:14px 0 0;color:#9a9ba1;font-size:14px}
.game-code-line b{font-size:22px;letter-spacing:.12em;color:#e8e8ea;user-select:all}
.game-code-line span{flex-basis:100%;font-size:13px}
.sheet.pending #generatedLink,.sheet.pending #playGame,.sheet.pending #shareGame,.sheet.pending #copyGame{opacity:.4;pointer-events:none}

/* Neon Run driving pad: drag horizontally to steer, vertically for throttle. */
.controls.has-pad{display:block!important;padding:0!important}
.drive-pad{position:relative;height:170px;border:1px solid #2a2c31;border-radius:12px;background:#101114;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden;cursor:grab}
.drive-pad[data-active=true]{border-color:#3f424a;background:#121318}
.pad-cross::before,.pad-cross::after{content:"";position:absolute;background:#2a2c31}
.pad-cross::before{left:50%;top:10%;bottom:10%;width:1px}
.pad-cross::after{top:50%;left:6%;right:6%;height:1px}
.pad-thumb{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:var(--accent);opacity:.85;pointer-events:none;transition:left .08s,top .08s}
.drive-pad[data-active=true] .pad-thumb{transition:none}
.pad-label{position:absolute;left:0;right:0;text-align:center;font-size:12px;color:#6f7179;pointer-events:none}
.pad-up{top:8px}.pad-down{bottom:8px}

/* Full screen while driving: the arena and pad fill the screen (also the fallback on iPhone). */
body.immersive{overflow:hidden}
body.immersive .cabinet,.cabinet:fullscreen{position:fixed!important;inset:0!important;z-index:50;margin:0!important;max-width:none!important;width:100%!important;height:100%!important;border-radius:0!important;border:0!important;display:flex!important;flex-direction:column;gap:8px;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;background:#0b0e18!important}
body.immersive .cabinet .hud,.cabinet:fullscreen .hud{flex:none}
body.immersive .cabinet .viewport,.cabinet:fullscreen .viewport{flex:1 1 auto;min-height:0;position:relative}
/* Size the 2D source canvas; the 3D canvas copies its box on resize (world3d.js). */
body.immersive .cabinet .viewport #scene,.cabinet:fullscreen .viewport #scene{display:block;height:100%!important;width:auto!important;max-width:100%;aspect-ratio:420/600;margin:0 auto}
body.immersive .cabinet .view-3d,.cabinet:fullscreen .view-3d{display:none}
body.immersive .cabinet .metrics,.cabinet:fullscreen .metrics{flex:none}
body.immersive .cabinet .controls,.cabinet:fullscreen .controls{flex:none}
body.immersive .drive-pad,.cabinet:fullscreen .drive-pad{height:min(30vh,220px)}

/* Full screen for the shot games (Hoop Shot, Cup Pong, Pocket Rush): scoreboard on top, court fills the rest. */
body.immersive-short{overflow:hidden}
body.immersive-short .play-panel,.play-panel:fullscreen{position:fixed!important;inset:0!important;z-index:50;margin:0!important;max-width:none!important;width:100%!important;height:100%!important;border-radius:0!important;border:0!important;display:flex!important;flex-direction:column;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;background:#141518!important}
body.immersive-short .play-panel .scorebar,.play-panel:fullscreen .scorebar{flex:none}
body.immersive-short .play-panel .scorebar b,.play-panel:fullscreen .scorebar b{font-size:28px}
body.immersive-short .play-panel .stage,.play-panel:fullscreen .stage{flex:1 1 auto;min-height:0;position:relative}
body.immersive-short .play-panel #court,.play-panel:fullscreen #court{display:block;height:100%!important;width:auto!important;max-width:100%;aspect-ratio:420/500;margin:0 auto}
body.immersive-short .play-panel .aim-panel,body.immersive-short .play-panel .court-caption,body.immersive-short .play-panel .aim-access,body.immersive-short .play-panel .view-3d,
.play-panel:fullscreen .aim-panel,.play-panel:fullscreen .court-caption,.play-panel:fullscreen .aim-access{display:none!important}

/* Side panels only show results and sharing; the start screen already explains each game.
   No camera-view toggle and no practice rounds. */
.side .mission,.side .how,.side .event-feed,.side details.tips,
.side-panel .objective,.side-panel .instruction-card,.side-panel #howTo,.side-panel #teamMission,#helpButton,
.view-3d,.practice-button{display:none!important}

/* Team mode is retired: new games are versus only (old team links still play). */
#modePicker,#modeHint,#modes,#modeChoice,[data-filter=team]{display:none!important}

/* Buttons. */
.primary{border-radius:8px!important;box-shadow:none!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important}
.secondary{border-radius:8px!important;letter-spacing:0!important;text-transform:none!important}
.modes button small,.mode-picker button span{letter-spacing:0!important;text-transform:none!important;font-size:12px!important}
.modes button,.mode-picker button{letter-spacing:0!important;text-transform:none!important}
