@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
  /* Look 2.0 palette (Design- Look2.0 handoff): blue-black surfaces, brighter mint. */
  --black:  #070b10;
  --char:   #0b131a;
  --card:   #101b25;
  --card2:  #172a35;
  --white:  #f6f8fa;
  --muted:  #9baebb;
  --mint:   #4de5ae;
  --mint-d: #2cc28d;
  --pink:   #f04d9d;
  --border: #1d2c37;
  --radius: 14px;
  /* Heavy condensed athletic face for headings, times and labels. Barlow
     Condensed over Saira: wider weight range with true italics, and its
     figures stay legible at the 9–11px label sizes this page uses. */
  --rj: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body, #root { min-height: 100%; background: var(--black); }
body { color: var(--white); font-family: 'Manrope', sans-serif; }
::-webkit-scrollbar { display: none; }
input, button, select { font-family: 'Manrope', sans-serif; }
a { text-decoration: none; }

/* ── Loading ─────────────────────────────────────────────────── */
.tm-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}
.tm-loading img { width: 220px; max-width: 70vw; opacity: .95; }

/* ── Landing (Look 2.0) ──────────────────────────────────────────
   Arena photo behind the hero only, fading into the page colour well before
   the cards end — the plan keeps photography out from behind anything people
   need to read quickly. Phones get the 900px crop; the hoop sits on the right
   so the headline has the dark left side. */
.landing-page {
  position: relative;
  min-height: 100vh;
  /* The fade layer is sized to the photo exactly, so the photo always melts
     into the page colour instead of ending in a hard edge. */
  background:
    linear-gradient(180deg, rgba(7,11,16,.1) 0%, rgba(7,11,16,.45) 45%, var(--black) 92%) 72% 0 / 100% 640px no-repeat,
    linear-gradient(90deg, rgba(7,11,16,.85) 0%, rgba(7,11,16,.2) 60%, rgba(7,11,16,0) 100%) 0 0 / 100% 640px no-repeat,
    url('../assets/bg/hero-arena-sm.webp') 72% 0 / auto 640px no-repeat,
    var(--black);
}
@media (min-width: 700px) {
  .landing-page {
    background:
      linear-gradient(180deg, rgba(7,11,16,.05) 0%, rgba(7,11,16,.45) 50%, var(--black) 90%) 0 0 / 100% 56.5vw no-repeat,
      linear-gradient(90deg, rgba(7,11,16,.9) 0%, rgba(7,11,16,.3) 50%, rgba(7,11,16,.1) 100%) 0 0 / 100% 56.3vw no-repeat,
      url('../assets/bg/hero-arena.webp') 0 0 / 100% auto no-repeat,
      var(--black);
  }
}
.landing { max-width: 540px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top, 0px)) 16px 80px; }

.landing__hero { margin-bottom: 22px; }
.landing__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.landing__logo { width: 44px; height: auto; filter: drop-shadow(0 4px 14px rgba(77,229,174,.25)); }
.landing__wordmark-img { height: 22px; width: auto; }
.landing__tagline { font-family: var(--rj); font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 64px; }
.landing__headline {
  font-family: var(--rj); font-style: italic; font-weight: 900;
  font-size: clamp(44px, 13vw, 64px); line-height: .88; letter-spacing: -.005em;
  text-transform: uppercase; color: var(--white); margin-bottom: 10px;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.landing__headline::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 2px;
  background: var(--mint); margin-bottom: 12px; transform: skewX(-20deg);
}
.landing__headline span { display: block; color: var(--mint); }
.landing__hero .landing__section-sub { color: #c3cfd8; }

.landing__card {
  background: rgba(16,27,37,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.landing__section-title { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.landing__section-sub { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Tournament card: muted court photo behind the host logo and title, a
   left-to-right gradient so the text side stays dark. */
.landing__list { display: grid; gap: 12px; }
.tourn-card {
  position: relative;
  background:
    linear-gradient(90deg, rgba(10,17,24,.97) 0%, rgba(10,17,24,.88) 55%, rgba(10,17,24,.55) 100%),
    url('../assets/bg/card-arena.webp') center 40% / cover no-repeat,
    var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--mint);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.tourn-card__row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tourn-card__logo { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; border-radius: 50%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.tourn-card__info { min-width: 0; }
.tourn-card__name {
  font-family: var(--rj); font-style: italic; font-size: 24px; font-weight: 800;
  line-height: 1; text-transform: uppercase; letter-spacing: .005em; margin-bottom: 6px;
  text-wrap: balance;
}
.tourn-card__loc { font-size: 12.5px; color: #c3cfd8; font-weight: 600; line-height: 1.4; }
.tourn-card__cta {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #6ff0c1 0%, var(--mint) 55%, var(--mint-d) 100%);
  color: #04130d;
  font-family: var(--rj);
  font-style: italic;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 18px rgba(77,229,174,.22);
}
.tourn-card__cta:hover { filter: brightness(1.06); }

/* ── Landing code entry ──────────────────────────────────────── */
.landing__code { margin-top: 14px; }
.landing__code-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.landing__code-icon { flex: none; color: var(--mint); }
.landing__code-row { display: flex; gap: 8px; margin-bottom: 6px; }
.landing__code-input {
  flex: 1;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--rj);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .25em;
  text-align: center;
  text-transform: uppercase;
  padding: 11px 10px;
  min-height: 52px;
  outline: none;
  transition: border-color .15s;
  min-width: 0;
}
.landing__code-input:focus { border-color: var(--mint); }
.landing__code-btn {
  background: linear-gradient(180deg, #6ff0c1 0%, var(--mint) 55%, var(--mint-d) 100%);
  border: none;
  border-radius: 10px;
  color: #04130d;
  font-family: var(--rj);
  font-style: italic;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 0 24px;
  min-height: 52px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.landing__code-btn:hover { filter: brightness(1.06); }
.landing__code-btn:disabled { opacity: .5; cursor: not-allowed; }
.landing__code-err { font-size: 12px; color: #f87171; min-height: 18px; }
.landing__empty { text-align: center; color: var(--muted); font-size: 13px; padding: 16px 0; }
.landing__code-prompt { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ── Landing organizer banner ────────────────────────────────── */
.landing__pitch {
  margin-top: 14px;
  text-align: left; padding: 24px 20px 20px;
  background:
    linear-gradient(90deg, rgba(10,17,24,.95) 0%, rgba(10,17,24,.8) 50%, rgba(10,17,24,.35) 100%),
    linear-gradient(180deg, rgba(10,17,24,0) 35%, rgba(10,17,24,.94) 75%),
    url('../assets/bg/organizer.webp') 80% 20% / cover no-repeat,
    var(--card);
}
.landing__pitch-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--rj); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--mint); margin-bottom: 8px; }
.landing__pitch-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--mint); transform: skewX(-20deg); }
.landing__pitch .landing__section-title { font-family: var(--rj); font-style: italic; font-weight: 800; font-size: 30px; line-height: .98; text-transform: uppercase; margin-bottom: 8px; text-wrap: balance; }
.landing__pitch .landing__section-sub { font-size: 14px; color: #c3cfd8; }
.landing__pitch-list { list-style: none; display: grid; gap: 12px; margin: 20px 0 22px; }
.landing__pitch-list li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.landing__pitch-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.landing__pitch-list b { color: var(--white); font-weight: 700; }
.landing__pitch-links { display: grid; background: rgba(7,11,16,.75); border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; }
.landing__pitch-links a { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-size: 15px; font-weight: 700; color: var(--white); text-decoration: none; }
.landing__pitch-links a + a { border-top: 1px solid var(--border); }
.landing__pitch-links a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); }
.landing__pitch-links a:hover { color: var(--mint); }
.landing__pitch-links a:hover::after { border-color: var(--mint); }

/* ── App shell ───────────────────────────────────────────────── */
.app { min-height: 100vh; background: var(--black); padding-bottom: 72px; }

/* ── Sticky header ───────────────────────────────────────────── */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0a1118 0%, rgba(7,11,16,.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* env() adds the notch/status-bar inset on phones that have one and resolves
     to 0 everywhere else, so the content never starts flush against the chrome. */
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0;
}

/* This used to open the page at 22px with a tagline under it, so the first
   thing a parent saw was OUR name rather than the tournament they came for.
   Its only job is "go back to the tournament list", which a compact chip does
   just as well. The tournament banner below is now the anchor. */
.home-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-bottom: 10px;
  opacity: .72;
}
.home-btn:active { opacity: 1; }
/* Sized here, not inline in app.js — an inline width silently beat this rule. */
.home-btn img { width: 34px; height: auto; }
.home-btn__wordmark { height: 15px !important; width: auto !important; }

.tourn-banner {
  background: linear-gradient(180deg, rgba(77,229,174,.09) 0%, rgba(77,229,174,.03) 100%);
  border: 1px solid rgba(77,229,174,.22);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
/* 66px, not 60: with the logo sitting beside two lines of text at these sizes,
   anything smaller reads as an icon rather than the event's mark. */
.tourn-banner__logo {
  width: 72px; height: 72px; object-fit: contain; flex-shrink: 0;
  border-radius: 10px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.tourn-banner > div { min-width: 0; }
.tourn-banner__name {
  font-family: var(--rj); font-size: 19px; font-weight: 800; color: var(--white);
  letter-spacing: .02em; text-transform: uppercase; line-height: 1.08;
  text-wrap: balance;
}
.tourn-banner__hosted {
  font-family: var(--rj); font-size: 11px; font-weight: 700; color: var(--mint);
  letter-spacing: .1em; text-transform: uppercase; margin-top: 5px;
}

/* ── Sponsors ──
   A scrolling rail, not a wrapping grid: overflow signals "there are more" and
   stays one line tall, where eight logos in a grid would push the schedule off
   a phone screen entirely. */
.sponsors { margin-bottom: 12px; }
.sponsors__label {
  font-family: var(--rj); font-size: 9px; font-weight: 700; color: var(--muted);
  letter-spacing: .22em; text-transform: uppercase;
  text-align: center; margin-bottom: 7px;
}
.sponsors__rail {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none; scrollbar-width: none;
}
.sponsors__rail::-webkit-scrollbar { display: none; }
.sponsor {
  flex: 0 0 auto; scroll-snap-align: start;
  width: 123px; height: 64px;
  display: grid; place-items: center;
  background: #fff;                 /* sponsor marks are drawn for light grounds */
  border-radius: 9px;
  padding: 7px 10px;
  text-decoration: none;
  overflow: hidden;
}
.sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.sponsor__name {
  font-family: var(--rj); font-size: 12px; font-weight: 700; color: #14181c;
  text-align: center; line-height: 1.15; letter-spacing: .02em;
}

@media (max-width: 380px) {
  .tourn-banner { padding: 11px 12px; gap: 11px; }
  .tourn-banner__logo { width: 60px; height: 60px; }
  .tourn-banner__name { font-size: 17px; }
  .sponsor { width: 108px; height: 57px; }
}

.div-picker { padding-bottom: 10px; }
.div-picker__label { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 5px; }
.pill-row { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 6px; padding-bottom: 2px; }

/* ── Pill buttons ────────────────────────────────────────────── */
.pill-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--card);
  color: var(--muted);
  font-family: var(--rj);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.pill-btn--active { background: var(--mint); color: #031007; }
.pill-btn--sm { padding: 4px 11px; font-size: 11px; }

.pill-btn--div { border: 1px solid transparent; background: transparent; color: var(--muted); }
.pill-btn--div-active { background: color-mix(in srgb, var(--dc) 12%, transparent); color: var(--dc); border-color: color-mix(in srgb, var(--dc) 30%, transparent); }

/* ── Tab content ─────────────────────────────────────────────── */
.tab-content { padding: 8px 16px 0; }
@media (max-width: 380px) {
  .sticky-header { padding-left: 13px; padding-right: 13px; }
  .tab-content   { padding-left: 13px; padding-right: 13px; }
}

.div-label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.div-active-pill {
  background: color-mix(in srgb, var(--dc) 12%, transparent);
  color: var(--dc);
  border: 1px solid color-mix(in srgb, var(--dc) 25%, transparent);
  font-family: var(--rj);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .06em;
}
.div-active-meta { font-family: var(--rj); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }

/* ── Day pills + search ──────────────────────────────────────── */
.day-pills { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }

.search-input {
  width: 100%;
  background: var(--char);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--white);
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color .15s;
}
.search-input:focus { border-color: var(--mint); }

.search-result-info {
  background: rgba(77,229,174,.08);
  border: 1px solid rgba(77,229,174,.2);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--mint);
  font-weight: 700;
  letter-spacing: .04em;
}

/* ── Day groups ──────────────────────────────────────────────── */
.day-group { margin-bottom: 20px; }

.day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.day-header__label { font-family: var(--rj); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.day-header__line { flex: 1; height: 1px; background: var(--border); }
.day-header__count { font-family: var(--rj); font-size: 11px; font-weight: 700; color: var(--border); letter-spacing: .08em; }

.day-header--venue .day-header__chip {
  background: rgba(77,229,174,.12);
  border: 1px solid rgba(77,229,174,.25);
  border-radius: 7px;
  padding: 5px 12px;
  font-family: var(--rj);
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: .06em;
}

/* ── Game card ───────────────────────────────────────────────── */
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 8px;
  transition: background .1s;
}
.game-card:hover { background: var(--card2); }
.game-card--hl { border-color: rgba(77,229,174,.35); background: rgba(77,229,174,.04); }

.game-card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 8px; }
.game-card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.game-card__time { font-family: var(--rj); font-size: 18px; font-weight: 700; color: var(--mint); white-space: nowrap; text-align: right; }
.game-card__day { display: block; font-family: var(--rj); font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-align: right; margin-top: 2px; }

.game-card__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 10px; }
.game-card__team { font-family: var(--rj); font-size: 19px; font-weight: 700; color: var(--white); line-height: 1.1; letter-spacing: -.01em; }
.game-card__team--right { text-align: right; }
.game-card__team--hl { color: var(--mint); }
/* how a team got into a bracket game: "1st Pool A", "Winner Gm 8" */
.game-card__seat { display: block; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 9px;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #4b5563; margin-top: 3px; }
.game-card__team--right .game-card__seat { text-align: right; }
.game-card__vs { font-family: var(--rj); font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-align: center; }

.game-card__venue { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
.map-cta { margin-left: auto; font-size: 11px; color: rgba(77,229,174,.6); font-weight: 700; letter-spacing: .04em; }

/* ── Pills (round, div) ──────────────────────────────────────── */
.round-pill {
  font-family: var(--rj);
  font-size: 8px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 999px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.game-num { font-family: var(--rj); font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }

.div-pill {
  background: color-mix(in srgb, var(--dc) 10%, transparent);
  color: var(--dc);
  border: 1px solid color-mix(in srgb, var(--dc) 25%, transparent);
  font-family: var(--rj);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* ── Standings ───────────────────────────────────────────────── */
.pool-section { margin-bottom: 20px; }
.pool-title { font-family: var(--rj); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }

.standings-table { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.standings-head { display: grid; grid-template-columns: 1fr 48px 48px 60px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.standings-head span { font-family: var(--rj); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-align: center; }
.standings-head span:first-child { text-align: left; }

.standings-row { display: grid; grid-template-columns: 1fr 48px 48px 60px; padding: 13px 16px; border-top: 1px solid var(--border); }
.standings-row--top { background: rgba(77,229,174,.04); }
.standings-team { display: flex; align-items: center; gap: 8px; }
.standings-team span:last-child { font-family: var(--rj); font-size: 16px; font-weight: 700; color: var(--muted); }
.standings-row--top .standings-team span:last-child { color: var(--white); }

.medal { width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0; }
.medal--0 { background: #FFD700; }
.medal--1 { background: #C0C0C0; }
.medal--2 { background: #CD7F32; }

.standings-stat { font-family: var(--rj); font-size: 16px; font-weight: 700; color: var(--white); text-align: center; }
.standings-stat--pts { color: var(--border); }
.standings-note { font-size: 12px; color: var(--muted); text-align: center; padding-top: 4px; }
.scorer-link { text-align: center; padding: 18px 0 8px; font-size: 13px; }
.scorer-link a, .landing__scorer-link { color: var(--mint); font-weight: 700; text-decoration: none; }
.landing__scorer-link { display: block; margin-top: 12px; font-size: 14px; }

/* ── Venues ──────────────────────────────────────────────────── */
.venue-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mint);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background .12s;
}
.venue-card:hover { background: var(--card2); }
.venue-card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.venue-card__name { font-family: var(--rj); font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.venue-card__addr { font-size: 11px; color: var(--muted); }
.venue-card__count { text-align: right; flex-shrink: 0; }
.venue-card__num { font-family: var(--rj); font-size: 24px; font-weight: 700; color: var(--mint); line-height: 1; }
.venue-card__label { font-family: var(--rj); font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.venue-card__days { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.venue-card__times { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 600; }
.venue-card__footer { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.venue-cta { margin-left: auto; font-family: var(--rj); font-size: 11px; font-weight: 700; color: rgba(77,229,174,.6); letter-spacing: .06em; }

.day-tag { background: rgba(77,229,174,.08); color: var(--mint); font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .06em; }
.div-tag {
  background: color-mix(in srgb, var(--dc) 8%, transparent);
  color: var(--dc);
  border: 1px solid color-mix(in srgb, var(--dc) 20%, transparent);
  font-family: var(--rj);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

/* Venue timetable */
.venue-detail-head { background: var(--char); border-bottom: 1px solid var(--border); padding: 16px 18px; }
.venue-detail-name { font-family: var(--rj); font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: -.01em; margin-bottom: 3px; }
.venue-addr-link { display: inline-flex; align-items: center; gap: 5px; color: var(--mint); font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.venue-detail-games { padding: 16px 16px 80px; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  margin-bottom: 14px;
  font-family: var(--rj);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.stat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-chip { background: rgba(77,229,174,.08); border: 1px solid rgba(77,229,174,.18); border-radius: 8px; padding: 6px 12px; display: flex; align-items: baseline; gap: 5px; }
.stat-chip__n { font-family: var(--rj); font-size: 18px; font-weight: 700; color: var(--mint); }
.stat-chip__l { font-family: var(--rj); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .1em; }

/* ── Teams ───────────────────────────────────────────────────── */
.teams-intro { background: rgba(77,229,174,.08); border: 1px solid rgba(77,229,174,.18); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.teams-intro__title { font-family: var(--rj); font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: .02em; }
.teams-intro__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.group-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; margin: 0 0 8px 2px; }

.div-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--dc, var(--mint));
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.div-block__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.div-block__name { font-family: var(--rj); font-size: 19px; font-weight: 700; color: var(--white); }
.div-block__count {
  background: color-mix(in srgb, var(--dc) 12%, transparent);
  color: var(--dc);
  border: 1px solid color-mix(in srgb, var(--dc) 25%, transparent);
  font-family: var(--rj);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .08em;
}

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 7px; }
.team-btn {
  background: var(--char);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 9px 10px;
  color: var(--white);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  transition: background .1s;
}
.team-btn:hover { background: var(--card2); }
.team-btn__name { display: block; font-family: var(--rj); font-size: 15px; font-weight: 800; line-height: 1.05; }
.team-btn__meta { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; font-weight: 800; letter-spacing: .06em; }

/* ── Team share card ─────────────────────────────────────────── */
.team-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.action-btn {
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--rj);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  border: none;
}
.action-btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.action-btn--mint { background: var(--mint); color: #031007; margin-left: auto; }
.action-btn--green { background: rgba(77,229,174,.08); border: 1px solid rgba(77,229,174,.25); color: var(--mint); }

.team-share-card {
  background: linear-gradient(180deg, #101b25 0%, #070b10 100%);
  border: 1px solid var(--border);
  border-top: 4px solid var(--mint);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.team-share-card__head { padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.team-share-card__top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.team-share-card__brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--rj); font-size: 19px; font-weight: 700; color: var(--white); line-height: 1; }
.brand-sub { font-family: var(--rj); font-size: 8px; font-weight: 700; color: var(--muted); letter-spacing: .22em; }
.team-share-card__tourn { text-align: right; }
.team-share-card__tourn-name { font-family: var(--rj); font-size: 12px; font-weight: 800; color: var(--mint); letter-spacing: .08em; }
.team-share-card__tourn-date { font-size: 10px; color: var(--muted); font-weight: 700; }
.team-share-card__team-name { font-family: var(--rj); font-size: 36px; font-weight: 700; color: var(--white); line-height: .95; letter-spacing: -.03em; margin-bottom: 8px; }
.team-share-card__pills { display: flex; gap: 7px; flex-wrap: wrap; }
.pool-pill { background: rgba(255,255,255,.05); color: var(--white); border: 1px solid var(--border); font-family: var(--rj); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; }
.games-pill { background: rgba(77,229,174,.08); color: var(--mint); border: 1px solid rgba(77,229,174,.18); font-family: var(--rj); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; }

.team-share-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.stat-cell { padding: 13px 10px; text-align: center; border-left: 1px solid var(--border); }
.stat-cell:first-child { border-left: none; }
.stat-cell__n { font-family: var(--rj); font-size: 26px; font-weight: 700; color: var(--mint); line-height: 1; }
.stat-cell__l { font-family: var(--rj); font-size: 9px; font-weight: 800; color: var(--muted); letter-spacing: .12em; }

.team-share-card__body { padding: 16px 18px; }

.team-card-section { background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; margin-bottom: 12px; }
.team-card-section--green { background: rgba(77,229,174,.055); border-color: rgba(77,229,174,.16); }
.team-card-section__title { font-family: var(--rj); font-size: 13px; font-weight: 900; color: var(--mint); letter-spacing: .12em; margin-bottom: 8px; }
.team-card-section__label { font-family: var(--rj); font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .14em; margin-bottom: 10px; }

.pool-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.pool-team-pill { background: rgba(255,255,255,.045); color: var(--white); border: 1px solid var(--border); font-family: var(--rj); font-size: 14px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.pool-team-pill--you { background: color-mix(in srgb, var(--dc) 12%, transparent); color: var(--dc); border-color: color-mix(in srgb, var(--dc) 35%, transparent); }

.schedule-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding-top: 0; }
.schedule-row--border { padding-top: 9px; margin-top: 9px; border-top: 1px solid rgba(255,255,255,.08); }
.schedule-row__time { font-family: var(--rj); font-size: 17px; font-weight: 900; color: var(--white); line-height: 1; }
.schedule-row__time--mint { color: var(--mint); }
.schedule-row__day { font-size: 9px; color: var(--muted); font-weight: 800; letter-spacing: .04em; margin-top: 3px; }
.schedule-row__teams { font-family: var(--rj); font-size: 15px; font-weight: 900; color: var(--white); line-height: 1.05; }
.schedule-row__venue { font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.schedule-row__meta { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.schedule-row__label { font-family: var(--rj); font-size: 15px; font-weight: 900; color: var(--white); line-height: 1.05; }

.my-game { display: grid; grid-template-columns: 74px 1fr; gap: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 9px; }
.team-card-section .my-game:last-child { margin-bottom: 0; }
.my-game__time { font-family: var(--rj); font-size: 20px; font-weight: 800; color: var(--mint); line-height: 1; border-right: 1px solid var(--border); padding-right: 10px; }
.my-game__day { font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: .05em; margin-top: 4px; }
.my-game__row { display: flex; gap: 8px; align-items: center; margin-bottom: 5px; }
.my-game__opp { font-family: var(--rj); font-size: 18px; font-weight: 800; color: var(--white); line-height: 1.05; }
.venue-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }

/* ── Bottom nav ──────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(7,11,16,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.nav-btn {
  padding: 13px 0 15px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  transition: color .15s;
}
.nav-btn--active { color: var(--mint); }
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn span { font-family: var(--rj); font-size: 10px; font-weight: 700; letter-spacing: .12em; }

/* ── Game scores (public viewer) ────────────────────────────── */
.game-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px 4px;
}
.game-score__val {
  font-family: var(--rj);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.game-score__sep { font-size: 16px; color: var(--muted); }
.game-score__badge {
  font-family: var(--rj);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 2px 6px;
  border-radius: 4px;
}
.game-score--final .game-score__badge { background: rgba(77,229,174,.15); color: var(--mint); }
.game-score--live  .game-score__badge { background: rgba(251,191,36,.15);  color: #fbbf24;   }
.game-card--scored { border-color: rgba(77,229,174,.2); }

/* ── Standings enhancements ──────────────────────────────────── */
.standings-stat--pos { color: var(--mint); }
.standings-stat--neg { color: #f87171; }
.standings-empty-note { font-size: 11px; color: var(--muted); padding: 6px 12px 2px; text-align: center; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 0; color: var(--muted); }
.empty-state__title { font-family: var(--rj); font-size: 20px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.empty-state__sub { font-size: 13px; }

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  body { background: #fff !important; }
  .no-print { display: none !important; }
  .print-sheet { padding: 0 !important; }
  .team-share-card { box-shadow: none !important; border: 1px solid #ddd !important; page-break-inside: avoid; background: #fff !important; }
  .team-share-card, .team-share-card * { color: #111 !important; }
  .team-share-card span { border-color: #ddd !important; }
}

/* ── Venue maps ───────────────────────────────────────────────────────── */
/* The embedded preview orients someone who has never been to the gym; the
   button below it is what actually gets them there. On a phone outside an
   unfamiliar venue, one tap to turn-by-turn is the whole feature. */
.venue-map {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

.venue-dir-btn {
  display: block;
  text-align: center;
  background: rgba(77,229,174,.1);
  border: 1px solid rgba(77,229,174,.34);
  color: var(--mint);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--rj);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.venue-dir-btn:active { background: rgba(77,229,174,.18); }

.venue-addr-link__hint { color: var(--muted); font-weight: 400; }

/* On the list card. Inline-block with its own padding so it's a real tap
   target on a phone, not a two-pixel strip of text inside a bigger card. */
.venue-card__dir {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--mint);
  border: 1px solid rgba(77,229,174,.3);
  border-radius: 6px;
  padding: 4px 9px;
}
.venue-card__dir:active { background: rgba(77,229,174,.14); }

/* ── Game card, rebuilt as a scoreboard ──────────────────────────────────
   Teams stacked with the score boxed on the right, instead of "A VS B" across
   one line with the score beneath. A phone reads a scoreboard down the page,
   and stacking stops two long club names colliding in the middle. */
.game-card { border-left: 3px solid var(--dc, var(--mint)); }

.gc-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.gc-when { display: flex; flex-direction: column; min-width: 0; }
.gc-time {
  font-family: var(--rj); font-size: 22px; font-weight: 700; color: var(--mint);
  line-height: 1; letter-spacing: .01em;
}
.gc-day {
  font-family: var(--rj); font-size: 10px; font-weight: 600; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase; margin-top: 4px;
}
.gc-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.gc-teams { display: flex; flex-direction: column; gap: 4px; }
/* VS between the stacked rows, trailed by a hairline so it reads as a divider. */
.gc-vs {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--rj); font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .16em; line-height: 1;
}
.gc-vs::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.gc-team {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.gc-team__name {
  font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.2;
  min-width: 0; overflow-wrap: anywhere;
}
.gc-team__seat {
  display: block; font-family: var(--rj); font-size: 10px; font-weight: 600;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px;
}
/* A box, not just bold text: at a glance across a gym the number has to be the
   thing the eye lands on. */
.gc-team__score {
  flex: none; min-width: 52px; text-align: center;
  background: var(--char); border: 1px solid var(--border); border-radius: 9px;
  font-family: var(--rj); font-size: 25px; font-weight: 700; color: var(--white);
  line-height: 1; padding: 7px 10px; font-variant-numeric: tabular-nums;
}
.gc-team--won .gc-team__name  { color: var(--mint); }
.gc-team--won .gc-team__score { color: var(--mint); border-color: rgba(77,229,174,.4); }
.gc-team--hl  .gc-team__name  { background: rgba(77,229,174,.16); border-radius: 4px; padding: 0 3px; }

.gc-status {
  text-align: center; font-family: var(--rj); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-top: 9px;
}
.gc-status--final { color: var(--mint); }
.gc-status--live  { color: #f5b55e; }
.gc-status--num   { color: var(--border); }

@media (max-width: 360px) {
  .gc-time { font-size: 20px; }
  .gc-team__name { font-size: 15.5px; }
  .gc-team__score { min-width: 46px; font-size: 22px; padding: 6px 8px; }
}

/* The live strip. Above the tournament banner because a parent checking a
   score mid-morning wants to know it's current before anything else. */
.last-updated {
  text-align: center;
  font-family: var(--rj);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

/* T-Mint ran a rule from the group label to the edge, which reads as a section
   break rather than a stray caption floating above the pills. */
.div-picker__label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.div-picker__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Public box score ─────────────────────────────────────────────────── */
.gc-box-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 10px; padding: 9px 12px;
  background: rgba(77,229,174,.07);
  border: 1px solid rgba(77,229,174,.24);
  border-radius: 9px;
  color: var(--mint);
  font-family: var(--rj); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
}
.gc-box-btn:active { background: rgba(77,229,174,.14); }
.gc-box-chev { transition: transform .18s ease; font-size: 9px; }
.gc-box-btn[aria-expanded="true"] .gc-box-chev { transform: rotate(180deg); }

.gc-box { margin-top: 9px; }
.box-empty { font-size: 12px; color: var(--muted); padding: 10px 2px; text-align: center; }

.box-team { margin-bottom: 12px; }
.box-team:last-child { margin-bottom: 0; }
.box-team__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 0 2px 6px;
  font-family: var(--rj); font-size: 13px; font-weight: 700; color: var(--white);
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.box-team__tot { color: var(--mint); font-size: 17px; }

.box-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.box-tbl th {
  text-align: left; font-family: var(--rj); font-size: 9px; font-weight: 700;
  color: var(--muted); letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 5px 5px 0; white-space: nowrap;
}
.box-tbl th.n, .box-tbl td.n { text-align: right; padding-right: 0; padding-left: 7px; }
.box-tbl td {
  padding: 7px 5px 7px 0; border-top: 1px solid var(--rule, #1b1f22);
  color: var(--muted); vertical-align: baseline;
}
.box-jersey {
  font-family: var(--rj); font-weight: 700; color: var(--mint);
  width: 30px; font-variant-numeric: tabular-nums;
}
.box-name { color: var(--white); font-weight: 600; }
/* The number under the name, quiet: it's the thread tying this line to the
   same player next season, not something to read on every row. */
.box-mint {
  display: block; font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px; color: var(--muted); letter-spacing: .06em; margin-top: 2px;
}
.box-pts {
  font-family: var(--rj); font-size: 16px; font-weight: 700; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.box-tbl td.n { font-variant-numeric: tabular-nums; }
.box-dnp { opacity: .45; }

/* The whole name-and-number is the way into that player's career page. The
   number alone was a 9px tap target next to a 13px name nobody could press —
   people aim at the name, so the name has to be the link. */
a.box-player { display: block; text-decoration: none; padding: 2px 0; }
a.box-player .box-name { text-decoration: underline; text-decoration-color: rgba(77,229,174,.34);
  text-underline-offset: 3px; }
a.box-player:active .box-name,
a.box-player:active .box-mint { color: var(--mint); }

/* ── Tournament leaders ───────────────────────────────────────────────── */
.ldr-note {
  font-size: 11.5px; color: var(--muted); line-height: 1.5;
  margin: 2px 2px 12px;
}
.ldr { display: flex; flex-direction: column; }
.ldr-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.ldr-row:last-child { border-bottom: none; }
.ldr-row:active { background: rgba(77,229,174,.06); }
.ldr-rank {
  font-family: var(--rj); font-size: 17px; font-weight: 700; color: var(--border);
  width: 24px; text-align: right; flex: none; font-variant-numeric: tabular-nums;
}
.ldr-row--1 .ldr-rank { color: var(--mint); }
.ldr-who { flex: 1; min-width: 0; }
.ldr-name { display: block; font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.2; }
.ldr-sub  { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ldr-val {
  flex: none; min-width: 56px; text-align: right;
  font-family: var(--rj); font-size: 22px; font-weight: 700; color: var(--white);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.ldr-row--1 .ldr-val { color: var(--mint); }
.ldr-val small {
  display: block; font-family: var(--mn); font-size: 8.5px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.empty-state__sub { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; max-width: 40ch; }

/* A full-tier box score is twelve columns. It scrolls inside its own box
   rather than making the page scroll sideways. */
.box-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.box-tbl--full { min-width: 680px; }
.box-tbl--full td.n, .box-tbl--full th.n { padding-left: 5px; padding-right: 5px; }
.box-tbl .n { font-variant-numeric: tabular-nums; }
.box-tbl .box-pc { color: var(--muted); }

/* One control, two halves of the same tab. A segmented switch rather than
   pills: these are two views of one thing, not a filter over a list. */
.seg-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 11px; padding: 3px; margin-bottom: 13px;
}
.seg-btn {
  font-family: var(--rj); font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 0; border: none; border-radius: 8px; cursor: pointer;
  background: none; color: var(--muted); transition: background .15s, color .15s;
}
.seg-btn--active { background: var(--mint); color: #051710; }
.seg-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* Four items, always — LEADERS moved inside STANDINGS. Still give the labels
   room to shrink on the narrowest phones rather than letting the row wrap. */
@media (max-width: 400px) {
  .bottom-nav .nav-btn span { font-size: 9.5px; letter-spacing: .04em; }
  .bottom-nav .nav-btn svg { width: 18px; height: 18px; }
}

/* Organizer preview of an unpublished tournament (editor → 👁 Preview) */
#tm-preview-banner {
  position: sticky; top: 0; z-index: 100;
  background: #fbbf24; color: #111; text-align: center;
  font-size: .78rem; line-height: 1.4; padding: .5rem 1rem;
}
#tm-preview-banner b { letter-spacing: .08em; }
.tm-preview-denied { max-width: 28rem; margin: 18vh auto 0; padding: 0 16px; text-align: center; color: #9ca3af; font-size: .9rem; }
.tm-preview-denied a { color: var(--mint); }

/* ══════════════════════════════════════════════════════════════════════════
   Look 2.0 — tournament screens (Design- Look2.0 handoff, steps 3–5)
   Overrides only; the rules above stay as the base. Photography is limited to
   the tournament banner — schedules, standings and team pages stay plain so
   times and names read fast.
══════════════════════════════════════════════════════════════════════════ */

/* ── Step 3: header, banner, controls ── */
.sticky-header { background: linear-gradient(180deg, #08101a 0%, rgba(7,11,16,.94) 100%); border-bottom: 1px solid rgba(29,44,55,.6); }
.home-btn { opacity: .9; margin-bottom: 10px; }

/* Same height as before — the arena sits behind it, it doesn't make it taller. */
.tourn-banner {
  background:
    linear-gradient(90deg, rgba(8,14,20,.96) 0%, rgba(8,14,20,.82) 55%, rgba(8,14,20,.45) 100%),
    url('../assets/bg/banner-arena.webp') 85% 45% / cover no-repeat,
    var(--card);
  border: 1px solid rgba(77,229,174,.28);
  border-left: 4px solid var(--mint);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.tourn-banner__name { font-style: italic; font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: .01em; }
.tourn-banner__sep { display: none; }
.tourn-banner__loc {
  display: block; margin-top: 6px;
  font-family: 'Manrope', sans-serif; font-style: normal; font-size: 12px; font-weight: 700;
  text-transform: none; letter-spacing: 0; color: #c3cfd8;
}
.tourn-banner__loc::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px;
  border: 2px solid var(--mint); border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translateY(-1px);
}
.tourn-banner__hosted { font-size: 11.5px; letter-spacing: .12em; margin-top: 6px; }
@media (max-width: 380px) { .tourn-banner__name { font-size: 18px; } }

.div-picker__label { font-family: var(--rj); font-size: 11px; letter-spacing: .2em; margin-bottom: 7px; }
.pill-row { gap: 7px; margin-bottom: 9px; }

/* Finger-sized, boxed. Mint marks the selected filter; a division keeps its
   own colour (pink for girls) when selected. */
.pill-btn {
  min-height: 40px; padding: 8px 16px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  color: #c3cfd8; font-size: 14px; letter-spacing: .07em;
}
.pill-btn--sm { min-height: 36px; padding: 6px 13px; font-size: 13px; }
.pill-btn--active { background: var(--mint); border-color: var(--mint); color: #04130d; }
.pill-btn--div { background: var(--card); border: 1px solid var(--border); color: #c3cfd8; }
.pill-btn--div-active {
  background: color-mix(in srgb, var(--dc) 24%, var(--card));
  border-color: var(--dc); color: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dc) 35%, transparent), 0 4px 14px color-mix(in srgb, var(--dc) 22%, transparent);
}

/* The selected division as a heading, in its colour. */
.div-label-row { gap: 10px; margin: 6px 0 14px; align-items: baseline; }
.div-active-pill {
  background: none; border: none; padding: 0; border-radius: 0;
  font-style: italic; font-size: 30px; font-weight: 800; line-height: 1;
  letter-spacing: .005em; color: var(--dc);
}
.div-active-meta { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }

.day-pills { gap: 7px; }
.search-input { background: var(--card); min-height: 46px; }

.day-header__label { font-size: 13px; letter-spacing: .14em; color: #c3cfd8; }
.day-header__count { font-size: 12px; color: var(--muted); }

/* ── Step 4: game cards ── time dominant, text-only teams, status top right */
.game-card {
  background: linear-gradient(180deg, #121f2a 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--dc, var(--mint));
  border-radius: 14px;
  padding: 14px 15px 12px;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.game-card:hover { background: linear-gradient(180deg, #152532 0%, #12202b 100%); }
.game-card--scored { border-color: rgba(77,229,174,.22); border-left-color: var(--dc, var(--mint)); }
.game-card--hl { border-color: rgba(77,229,174,.45); }
.gc-time { font-size: 32px; font-weight: 800; letter-spacing: 0; }
.gc-day { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; margin-top: 5px; }
.round-pill {
  font-size: 11px; font-weight: 800; padding: 5px 10px; letter-spacing: .1em;
  border: 1px solid rgba(255,255,255,.08);
}
.div-pill { font-size: 12px; padding: 4px 10px; }
.gc-teams { gap: 6px; margin-top: 4px; }
.gc-team__name { font-size: 18px; font-weight: 700; }
.gc-team__seat { font-size: 11px; }
.gc-vs { font-size: 11px; color: #5f7382; }
.gc-team__score { background: var(--black); font-size: 28px; font-weight: 800; min-width: 54px; border-radius: 10px; }
.gc-status { font-size: 12px; font-weight: 800; letter-spacing: .18em; margin-top: 10px; }
.gc-status--num { color: #5f7382; }
.gc-status--live { color: #ff5a6a; display: flex; align-items: center; justify-content: center; gap: 7px; }
.gc-status--live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5a6a;
  box-shadow: 0 0 0 0 rgba(255,90,106,.6); animation: tm-live 1.6s infinite;
}
@keyframes tm-live { 70% { box-shadow: 0 0 0 7px rgba(255,90,106,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,106,0); } }
@media (prefers-reduced-motion: reduce) { .gc-status--live::before { animation: none; } }
.game-card__venue { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(29,44,55,.8); font-size: 13.5px; color: #c3cfd8; font-weight: 600; }
.map-cta { font-family: var(--rj); font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--mint); }
.gc-box-btn { min-height: 42px; font-size: 13px; }

@media (max-width: 360px) {
  .gc-time { font-size: 27px; }
  .gc-team__name { font-size: 16px; }
  .gc-team__score { font-size: 24px; min-width: 46px; }
}

/* ── Step 5: standings, venues, teams, nav ── */
.pool-title { font-size: 14px; letter-spacing: .16em; color: #c3cfd8; }
.standings-table { background: linear-gradient(180deg, #121f2a 0%, var(--card) 100%); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.standings-head { background: rgba(7,11,16,.5); }
.standings-head span { font-size: 12px; }
.standings-team span:last-child { font-size: 17px; }
.standings-stat { font-size: 18px; }
.standings-stat--pts { color: var(--muted); }
.standings-row--top { background: rgba(77,229,174,.06); box-shadow: inset 3px 0 0 var(--mint); }

.venue-card { background: linear-gradient(180deg, #121f2a 0%, var(--card) 100%); border-left-width: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.venue-card__name { font-style: italic; font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.venue-card__addr { font-size: 12px; }
.venue-card__num { font-size: 30px; font-weight: 800; }
.venue-cta { font-size: 13px; font-weight: 800; color: var(--mint); }
.venue-detail-head { background: var(--card); }
.venue-detail-name { font-style: italic; font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.back-btn { min-height: 38px; font-size: 13px; }

.teams-intro__title { font-style: italic; font-weight: 800; font-size: 22px; text-transform: uppercase; }
.div-block { background: linear-gradient(180deg, #121f2a 0%, var(--card) 100%); border-left-width: 4px; }
.div-block__name { font-style: italic; font-weight: 800; font-size: 22px; text-transform: uppercase; }
.team-btn { min-height: 52px; background: var(--black); }
.team-btn__name { font-size: 16px; }
.team-share-card__team-name { font-style: italic; font-weight: 800; text-transform: uppercase; }
.stat-cell__n { font-weight: 800; }
.my-game__time { font-size: 22px; }
.action-btn { min-height: 38px; font-size: 13px; }

/* Active tab gets a mint bar on top, as in the concept. Same four tabs. */
.bottom-nav { background: rgba(7,11,16,.96); }
.nav-btn { position: relative; padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px)); }
.nav-btn span { font-size: 11px; }
.nav-btn--active::before {
  content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--mint); box-shadow: 0 2px 10px rgba(77,229,174,.5);
}
.app { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 400px) { .bottom-nav .nav-btn span { font-size: 10px; letter-spacing: .06em; } }

/* Keep the sticky header no taller than before the redesign: the bigger
   division buttons are paid for by a tighter banner and logo row. */
.home-btn { margin-bottom: 8px; }
.tourn-banner { padding: 11px 13px; margin-bottom: 10px; }
.tourn-banner__logo { width: 60px; height: 60px; }
.tourn-banner__name { font-size: 19px; }
.tourn-banner__loc, .tourn-banner__hosted { margin-top: 4px; }
.pill-btn--div { min-height: 36px; padding: 6px 14px; }
.div-picker { padding-bottom: 6px; }
.div-picker__label { margin-bottom: 5px; }
.pill-row { margin-bottom: 6px; }

/* Division picker below the pinned header: rows wrap so every division shows
   (a scrolling row hid U14B D2/D3 off-screen), boys and girls each sit in a
   thin box in their colour, and the selected division is filled solid. */
.div-picker { padding: 4px 0 2px; }
.div-picker .pill-row { flex-wrap: wrap; overflow-x: visible; margin-bottom: 0; }
.div-picker > .div-picker__label { margin-bottom: 7px; }
.div-group {
  --g: #60a5fa;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--g) 45%, transparent);
  border-radius: 12px;
  padding: 16px 10px 10px;
}
.div-group--girls { --g: var(--pink); }
.div-group + .div-group { margin-top: 18px; }
.div-group .div-picker__label {
  position: absolute; top: -8px; left: 10px;
  margin: 0; padding: 0 7px; line-height: 15px;
  background: var(--black); color: var(--g);
}
.div-group .div-picker__label::after { display: none; }
.div-picker .pill-btn--div-active {
  background: var(--dc); border-color: var(--dc); color: #06101a; box-shadow: none;
}

/* ── Standings detail: PF/PA, pool progress, tie notes, playoff picture ── */
.standings-table--full .standings-head,
.standings-table--full .standings-row { grid-template-columns: 1fr 26px 26px 34px 34px 42px; padding-left: 12px; padding-right: 12px; column-gap: 2px; }
.standings-table--full .standings-team span:last-child { font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.standings-table--full .standings-stat { font-size: 16px; }
.standings-table--full .standings-stat--sm { font-size: 14px; color: #9BAEBB; }
@media (min-width: 480px) {
  .standings-table--full .standings-head,
  .standings-table--full .standings-row { grid-template-columns: 1fr 40px 40px 48px 48px 56px; padding-left: 16px; padding-right: 16px; }
  .standings-table--full .standings-team span:last-child { font-size: 17px; }
}
.standings-table--full .standings-row { cursor: pointer; }
.standings-row--open { background: rgba(77,229,174,.08); }
.stand-games { padding: 4px 12px 10px 24px; background: rgba(7,11,16,.35); }
.stand-game { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; font-size: 13px; color: #c3cfd8; padding: 4px 0; }
.stand-game span:first-child { color: var(--muted); font-family: var(--rj); font-weight: 700; }
.stand-game span:last-child { font-family: var(--rj); font-weight: 700; }
.stand-game__muted { color: var(--muted); }
.pool-progress { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.pool-progress--done { color: var(--mint); }
.tie-note { font-size: 13px; line-height: 1.4; color: #c3cfd8; background: rgba(23,42,53,.6); border-left: 3px solid var(--mint); border-radius: 6px; padding: 8px 10px; margin: 8px 0 0; }
.po-list { display: flex; flex-direction: column; gap: 8px; }
.po-game { background: linear-gradient(180deg, #121f2a 0%, var(--card) 100%); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.po-game__head { display: flex; justify-content: space-between; gap: 8px; font-family: var(--rj); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.po-game__body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.po-seat { display: flex; flex-direction: column; min-width: 0; }
.po-game__body .po-seat:last-child { text-align: right; }
.po-seat b { font-family: var(--rj); font-size: 16px; color: var(--white); overflow-wrap: anywhere; }
.po-seat span { font-size: 12px; color: var(--muted); }
.po-seat--wait b { color: #9BAEBB; }
.po-vs { font-family: var(--rj); font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; }

/* Latest scores: the division pill on a game card opens that division. */
.div-pill--link { cursor: pointer; font-family: var(--rj); }
.div-pill--link:hover { background: color-mix(in srgb, var(--dc) 20%, transparent); }

/* Streams: a link under "Latest scores", and a link on streamed finals. */
.stream-link { color: #ff8a8a; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gc-watch {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px;
  padding: 9px 12px; border-radius: 10px; text-decoration: none; font-family: var(--rj);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #ff8a8a;
  background: color-mix(in srgb, #ff3b3b 12%, transparent); border: 1px solid color-mix(in srgb, #ff3b3b 35%, transparent);
}
.gc-watch span { font-weight: 600; letter-spacing: 0; color: var(--muted); font-size: 11px; }
