/* SureBall court theme. Presentation only; existing controls and app logic remain intact. */
:root {
  color-scheme: dark;
  --bg: #090c0e;
  --surface: #151a1e;
  --card: #20262b;
  --border: #343b40;
  --accent: #c6ff00;
  --accent-dim: #a6d600;
  --accent-glow: #c6ff0012;
  --text: #f1f3f4;
  --muted: #a0a8ae;
}
body { background: var(--bg); color: var(--text); }
body::before {
  background-image: url('/images/court-texture.svg');
  background-position: center top;
  background-size: 760px 1420px;
  background-repeat: repeat;
  opacity: .55;
}
body > nav:first-of-type { background: #0c1012; border-color: #343b40; backdrop-filter: none; }
.premium-brand small { color: #9da6ab; }
.court-navigation {
  display: flex; justify-content: center; gap: clamp(20px, 6vw, 72px);
  padding: 12px 16px; background: #eceeed; color: #141719;
  position: relative; z-index: 1;
}
.court-navigation a, .court-navigation button {
  border: 0; background: transparent; color: inherit; text-decoration: none;
  font: 600 .85rem 'Barlow', sans-serif; cursor: pointer; padding: 2px 0;
}
.court-navigation a:hover, .court-navigation button:hover { text-decoration: underline; text-underline-offset: 6px; }
.court-navigation a:focus-visible, .court-navigation button:focus-visible { outline: 2px solid #28313a; outline-offset: 4px; }
.court-discover-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.court-discover-head h2 { font: 600 clamp(1.45rem, 3vw, 2rem) 'Barlow', sans-serif; letter-spacing: -.025em; }
.court-create { border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #111600; min-height: 42px; padding: 9px 16px; font: 600 .9rem 'Barlow', sans-serif; cursor: pointer; }
.court-create:hover { background: #d5ff49; }
.hero { padding-block: 32px; gap: 28px; }
.hero h1 { font: 600 clamp(2rem, 4vw, 3.4rem)/1.06 'Barlow', sans-serif; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc { color: var(--muted); font-size: .9rem; }
.hero-stats { border-color: var(--border); }
.hero-tag { color: var(--accent); }
#gamesSection { position: relative; padding-top: 28px; scroll-margin-top: 76px; }
#gamesSection .filter-bar { margin-bottom: 12px; background: #20262b; border: 1px solid #41494f; border-radius: 5px; box-shadow: none; }
#gamesSection .filter-search-field input { min-height: 40px; color: var(--text); font-size: .9rem; }
#gamesSection input::placeholder { color: #a6afb5; }
.filter-options-toggle { background: transparent; color: #e7e9eb; border-color: var(--border); }
.premium-section-head { padding-bottom: 12px; border-bottom: 1px solid #626a70; margin: 12px 0 16px; align-items: center; }
.premium-section-head .section-title, .competitions-section > .section-title {
  font: 600 1rem 'Barlow', sans-serif; letter-spacing: .09em; text-transform: uppercase;
}
.premium-section-head button { color: #aeb7bd; font-size: .8rem; }
.premium-section-head button span { color: inherit; font-size: 1rem; }
.game-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.game-item, .competition-card, .game-card-preview {
  border: 1px solid #343d43; border-radius: 6px; background: #20262b; box-shadow: none;
}
.game-item:hover, .competition-card:hover { border-color: #7d8a92; transform: none; box-shadow: none; }
/* Venue photos and existing badges are retained, with a shorter media treatment. */
.game-item .premium-game-media { min-height: 72px; padding: 12px 16px; }
.premium-game-media::after { background: linear-gradient(transparent, #20262b); }
.premium-game-sport, .premium-game-spots { border-radius: 3px; background: #11171be6; border-color: #5a646a; backdrop-filter: none; font-weight: 500; font-size: .67rem; }
.premium-game-spots { color: var(--accent); }
.game-item .card-body { padding: 14px 16px; }
.game-item .game-title { color: var(--text); font: 600 1.15rem/1.2 'Barlow', sans-serif; letter-spacing: -.015em; text-transform: none; }
.premium-game-mode { color: #a7b0b6; margin-bottom: 10px; font-size: .73rem; }
.game-item .game-meta { color: #c1c8cd; gap: 7px; font-size: .8rem; margin-bottom: 12px; }
.game-item .player-row { border-color: #4a535a; padding-top: 10px; margin-bottom: 12px; }
.premium-game-price { font: 600 1rem 'Barlow', sans-serif; }
.premium-game-price small, .player-count { color: #b7bfc5; }
.game-item .join-btn { min-height: 40px; border-radius: 3px; background: var(--accent); color: #121800; font: 600 .8rem 'Barlow', sans-serif; letter-spacing: .025em; }
.game-item .join-btn.full { background: #343d43; color: #b5bec4; }
.competitions-section { padding-top: 26px; }
.competitions-section > .section-title { padding-bottom: 12px; border-bottom: 1px solid #626a70; }
.competitions-section > .section-eyebrow { color: var(--muted); font-size: .65rem; }
.section-sub { color: #a6afb5; }
.competition-card { border-radius: 5px; }
.competition-card h3 { font-family: 'Barlow', sans-serif; font-weight: 600; }
.map-section { background: #111619; border-color: var(--border); }
.cta-banner { background: #1d2428; border-block: 1px solid #414b52; color: var(--text); }
.cta-banner h2 { font-family: 'Barlow', sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta-banner p { color: #aeb7bd; }
.cta-banner .btn-dark { background: var(--accent); color: #121800; }
footer { background: #0c1012; border-color: var(--border); }
.app-panel, .match-detail-panel, .slide-menu { background: #111619; border-color: var(--border); }
.app-panel-head { background: #161d21; border-color: var(--border); }
.app-panel-title { font-family: 'Barlow', sans-serif; font-weight: 600; }
/* Keep the existing mobile dial geometry and its JS-driven position variables. */
#gamesSection .sport-chip { background: #1b2226; border: 1px solid #657078; color: #c2c9ce; box-shadow: none; }
#gamesSection .sport-chip.active { color: var(--accent); border-color: var(--accent); background: #151c1f; box-shadow: none; }
.sport-chip-icon svg { display: block; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.create-flow-sports .sport-chip-icon svg { margin: auto; }
.mobile-bottom-nav { background: #0c1012; border-color: #41494f; backdrop-filter: none; }
.mobile-bottom-nav .is-active { color: var(--accent); }
:is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media(max-width:768px) {
  body > nav:first-of-type { height: 60px; padding-inline: 18px; }
  .court-navigation { gap: 0; justify-content: space-around; padding-block: 10px; }
  .court-navigation a, .court-navigation button { font-size: .78rem; }
  .hero { padding: 22px 18px 10px; }
  .hero h1 { font-size: 2rem; }
  .hero-visual { margin-top: 4px; }
  #gamesSection { padding: 24px 18px 10px; }
  #gamesSection .sports-strip { margin-top: 0; margin-inline: 0; padding-top: 22px; padding-bottom: 48px; margin-bottom: 12px; }
  #gamesSection .sport-chip { width: 70px; min-width: 70px; height: 70px; min-height: 70px; border-radius: 50%; position: relative; }
  #gamesSection .sport-chip-icon svg { width: 34px; height: 34px; }
  #gamesSection .sport-chip-label { position: absolute; top: 88px; left: 50%; transform: translateX(-50%); font: 500 .75rem 'Barlow', sans-serif; color: #c1c8cd; max-width: none; }
  #gamesSection .sport-chip:not(.active) .sport-chip-label { visibility: hidden; }
  #gamesSection .sport-chip.active .sport-chip-label { color: var(--text); }
  #gamesSection .sport-chip.active::after { content: ''; position: absolute; top: 74px; left: 50%; transform: translateX(-50%); border-inline: 4px solid transparent; border-bottom: 6px solid var(--accent); }
  .game-grid { grid-template-columns: 1fr; }
  .competitions-section { padding-inline: 18px; }
  .mobile-bottom-nav { background: #0c1012; padding-bottom: env(safe-area-inset-bottom); }
}
@media(prefers-reduced-motion:reduce) {
  #gamesSection .sport-chip, .game-item, .competition-card { transition: none; }
}

/* Competition identity uses the saved tournament logo, without cropping. */
.competition-card { grid-template-columns: 56px minmax(0, 1fr) auto; }
.competition-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.competition-card-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--accent); font: 600 .85rem 'Barlow', sans-serif; }
.competition-card-icon img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
