/* ============================================================
   Lineup — dark, mobile-first, all-Inter with wide-tracked caps
   ============================================================ */

:root {
  --bg: #000000;
  --surface: #0c0c0c;
  --surface-alt: #161616;
  --surface-elev: #1c1c1c;
  --ink: #ffffff;
  --ink-soft: #e5e5e5;
  --mute: #8a8a8a;
  --soft: #555555;
  --border: #1c1c1c;
  --border-mid: #2a2a2a;
  --border-strong: #3a3a3a;
  --accent: #ef2542;
  --accent-bright: #ff3854;
  --accent-soft: #2a0d12;
  --ok: #ffffff;
  --shadow: 0 6px 20px rgb(0 0 0 / 0.4);
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; }
img { display: block; }

::selection { background: var(--accent); color: white; }

/* ============================================================
   Type system — Inter at different weights/sizes/tracking
   ============================================================ */
.eyebrow {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow.accent { color: var(--accent-bright); }

.label {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.display-xl {
  font-weight: 800;
  font-size: clamp(40px, 12vw, 88px);
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.display-lg {
  font-weight: 800;
  font-size: clamp(28px, 8vw, 48px);
  letter-spacing: -0.015em;
  line-height: 0.95;
  text-transform: uppercase;
}

.display {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.display-num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

/* ============================================================
   App shell — mobile-first
   ============================================================ */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 72px; /* room for bottom nav on mobile */
}

.topbar {
  background: rgb(0 0 0 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 4px;
  position: relative;
  top: -7px;
}

.divider {
  width: 1px;
  height: 18px;
  background: var(--border-mid);
}

.org-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.org-chip img {
  height: 22px;
  width: auto;
  filter: brightness(1) saturate(1.1);
}

.org-chip .org-meta { display: none; }

.topnav { display: none; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-chip .user-meta { display: none; }

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* Bottom tab nav (mobile primary nav) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(0 0 0 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-mid);
  display: flex;
  z-index: 50;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav button {
  flex: 1;
  background: none;
  border: none;
  color: var(--mute);
  padding: 12px 6px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border-radius: var(--r);
  transition: color 0.12s;
}

.bottom-nav button .nav-icon {
  font-size: 18px;
  line-height: 1;
}

.bottom-nav button.active {
  color: var(--ink);
}

.bottom-nav button.active .nav-dot {
  display: block;
}

.bottom-nav .nav-dot {
  display: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 2px;
}

/* ============================================================
   Layout container
   ============================================================ */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 24px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header .eyebrow { margin-bottom: 10px; }

.page-title {
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.015em;
  line-height: 0.95;
  text-transform: uppercase;
}

.page-subtitle {
  color: var(--mute);
  margin-top: 10px;
  font-size: 13px;
}

.actions-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 12px;
}

.section-head h2 {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.section-head .link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  background: none;
  border: none;
  cursor: pointer;
}

.section-head .link:hover { color: var(--ink); }

/* ============================================================
   Stats strip (mobile = horizontal scroll-friendly)
   ============================================================ */
.stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 22px;
}

.stat-card {
  padding: 14px 16px;
  background: var(--bg);
}

.stat-card .stat-label {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-transform: uppercase;
}

.stat-card .stat-num {
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.stat-card .stat-num.accent { color: var(--accent-bright); }

.stat-card .stat-sub {
  font-size: 11px;
  color: var(--mute);
  margin-top: 4px;
}

/* ============================================================
   Team cards (mobile = stacked full-width)
   ============================================================ */
.teams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
}

.team-card:hover {
  background: var(--surface-alt);
  border-color: var(--border-mid);
}

.team-card:active { transform: scale(0.995); }

.team-card .tc-age {
  font-weight: 800;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  grid-row: 1;
  grid-column: 1;
}

.team-card .tc-gender {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  grid-row: 1;
  grid-column: 2;
  align-self: start;
  justify-self: end;
  white-space: nowrap;
}

.team-card .tc-gender.girls { background: var(--accent); color: white; }
.team-card .tc-gender.boys { background: var(--ink); color: var(--bg); }

.team-card .tc-sub {
  grid-row: 2;
  grid-column: 1 / 3;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.04em;
}

.team-card .tc-sub strong {
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 6px;
}

.team-card .tc-stats {
  grid-row: 3;
  grid-column: 1 / 3;
  display: flex;
  gap: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--border-mid);
  margin-top: 6px;
}

.team-stat .stat-num {
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.team-stat .stat-num.alert { color: var(--accent-bright); }

.team-stat .stat-label {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  transition: all 0.1s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { background: var(--surface-elev); border-color: var(--ink); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--bg); }

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

.btn-ghost {
  border-color: var(--border-mid);
  color: var(--mute);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--border-strong); }

.btn-sm { padding: 8px 12px; font-size: 10px; }
.btn-lg { padding: 13px 22px; font-size: 12px; }
.btn-block { width: 100%; }

/* ============================================================
   Pills
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  white-space: nowrap;
}

.pill-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill-warn { background: var(--accent); color: white; border-color: var(--accent); }
.pill-outline { color: var(--ink); border-color: var(--border-strong); }
.pill-muted { color: var(--mute); }

.pill-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }

/* ============================================================
   Headshot avatar (silhouette by default)
   ============================================================ */
.headshot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border-mid);
}

.headshot svg { width: 100%; height: 100%; display: block; }

.headshot.md { width: 56px; height: 56px; }
.headshot.lg { width: 84px; height: 84px; }
.headshot.xl { width: 120px; height: 120px; }

/* ============================================================
   Roster
   ============================================================ */
.roster {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.roster-row {
  display: grid;
  grid-template-columns: 36px 48px 1fr auto;
  gap: 14px;
  padding: 14px 14px;
  align-items: center;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.08s;
}

.roster-row:hover { background: var(--surface-alt); }

.roster-row .num {
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
}

.roster-row .num.muted { color: var(--soft); font-size: 14px; }

.roster-row .player-info { min-width: 0; }

.player-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta {
  font-size: 11px;
  color: var(--mute);
  margin-top: 3px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.player-meta .dot { color: var(--soft); }

.player-meta .sizes {
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.06em;
}

.player-meta .sizes b {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.roster-row .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Hide on mobile, show on tablet+ */
.col-tablet { display: none; }

/* Roster header (desktop only) */
.roster-header { display: none; }

/* ============================================================
   Filter / search
   ============================================================ */
.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px 14px;
  padding: 0 16px;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.filter-pill .pill-count {
  background: var(--border-mid);
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.filter-pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.filter-pill.active .pill-count {
  background: rgb(0 0 0 / 0.15);
  color: var(--bg);
}

.search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  outline: none;
  color: var(--ink);
}

.search-input::placeholder { color: var(--mute); }
.search-input:focus { border-color: var(--ink-soft); }

/* ============================================================
   Tabs
   ============================================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-mid);
  margin: 0 -16px 18px;
  padding: 0 16px;
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  margin-right: 24px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: pointer;
  margin-bottom: -1px;
}

.tab:hover { color: var(--ink-soft); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ============================================================
   Back / breadcrumbs
   ============================================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mute);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.back-link:hover { color: var(--ink); }

/* ============================================================
   Player profile
   ============================================================ */
.profile-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border-mid);
  margin-bottom: 20px;
}

.profile-hero .row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-hero .num-block {
  font-weight: 800;
  font-size: 88px;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  color: var(--accent-bright);
}

.profile-hero .player-name-big {
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-top: 4px;
}

.profile-hero .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute);
  text-transform: uppercase;
  margin-top: 8px;
}

.profile-hero .tags .dot { color: var(--soft); }

.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
}

.profile-section h3 {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-mid);
  font-size: 13px;
  gap: 12px;
}

.field-row:last-child { border-bottom: none; }
.field-label { color: var(--mute); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.field-value { font-weight: 500; text-align: right; word-break: break-word; }

/* Uniform sizes — display block */
.sizes-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  margin: 4px 0 12px;
  overflow: hidden;
}

.size-cell {
  padding: 14px 16px;
  background: var(--surface);
}

.size-cell .label {
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-transform: uppercase;
}

.size-cell .val {
  font-weight: 800;
  font-size: 28px;
  margin-top: 6px;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Docs */
.doc-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-mid);
}
.doc-row:last-child { border-bottom: none; }

.doc-mark {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  border-radius: 50%;
}
.doc-mark.ok { background: var(--ink); color: var(--bg); }
.doc-mark.missing { background: var(--accent); color: white; }
.doc-mark.pending { background: var(--surface-elev); color: var(--ink); border: 1px solid var(--border-mid); }

.doc-name { font-weight: 600; font-size: 13px; }
.doc-meta { font-size: 11px; color: var(--mute); text-align: right; letter-spacing: 0.02em; }

/* Alerts */
.alert-card {
  background: var(--accent);
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border-radius: var(--r);
}

.alert-card.subtle {
  background: var(--surface-elev);
  color: var(--ink);
  border: 1px solid var(--border-mid);
}

.alert-card .alert-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.alert-card.subtle .alert-icon { background: var(--ink); color: var(--bg); }

.alert-card .alert-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.5;
}

.alert-card .alert-text strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============================================================
   Schedule
   ============================================================ */
.day-group {
  margin-bottom: 4px;
}

.day-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--border-mid);
}

.day-header .day-num {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.day-header .day-name {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.day-header .day-context {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--soft);
}

.event-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  cursor: pointer;
}

.event-row:hover { background: var(--surface); margin: 0 -8px; padding: 14px 8px; border-radius: 6px; }
.event-row:last-child { border-bottom: none; }

.event-row .event-time {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.event-row .event-time .duration {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: uppercase;
  margin-top: 4px;
}

.event-row .event-body { min-width: 0; }

.event-row .event-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.event-row .event-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.event-row .event-location {
  font-size: 12px;
  color: var(--mute);
  margin-top: 2px;
}

.event-row .event-teams {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  color: var(--mute);
}

.type-practice { color: var(--ink-soft); border-color: var(--border-strong); }
.type-game { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.type-tournament { background: var(--accent); color: white; border-color: var(--accent); }
.type-meeting { color: var(--mute); }

.team-chip {
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  color: var(--mute);
  white-space: nowrap;
}

.team-chip.girls { color: var(--accent-bright); border-color: var(--accent); }
.team-chip.boys { color: var(--ink); border-color: var(--border-strong); }

/* ============================================================
   Modal
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: flex-end;
  padding: 0;
  z-index: 100;
  animation: fade 0.12s;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  animation: slide-up 0.18s ease-out;
}

@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal h2 {
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.modal p {
  color: var(--mute);
  margin-bottom: 18px;
  font-size: 13px;
}

.invite-box {
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  background: var(--bg);
}

.invite-box input {
  border: none;
  background: transparent;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  min-width: 0;
}

.invite-box .btn {
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border-mid);
  padding: 0 16px;
  flex-shrink: 0;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: flex-end;
}

.share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  z-index: 200;
  animation: toast-in 0.18s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
}

@keyframes toast-in {
  from { transform: translate(-50%, 10px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ============================================================
   Wizard (parent side)
   ============================================================ */
.parent-shell {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
}

.parent-header {
  background: rgb(0 0 0 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-mid);
  padding: 14px 18px 12px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.parent-header .row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.parent-header .lineup-bug {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.parent-header .lineup-bug .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 3px;
  position: relative;
  top: -6px;
}

.parent-header .step-of {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-transform: uppercase;
}

.parent-header .team-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 4px;
}

.skip-link {
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 5px 11px;
  font-family: inherit;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
}
.skip-link:hover { color: var(--ink); border-color: var(--ink); }

.parent-header .team-banner img { height: 38px; width: auto; }

.parent-header .team-banner .team-line-1 {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

.parent-header .team-banner .team-line-2 {
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  margin-top: 4px;
}

.wizard-progress {
  display: flex;
  gap: 3px;
  margin-top: 14px;
}

.wizard-step-pip {
  height: 3px;
  flex: 1;
  background: var(--border-mid);
  border-radius: 999px;
  transition: background 0.2s;
}

.wizard-step-pip.done { background: var(--ink); }
.wizard-step-pip.current { background: var(--accent); }

.wizard-body { padding: 22px 18px 28px; }

.wizard-title {
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 8px;
}

.wizard-sub {
  color: var(--mute);
  margin-bottom: 22px;
  font-size: 13px;
}

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  font-size: 15px;
  background: var(--surface);
  outline: none;
  color: var(--ink);
  transition: border-color 0.1s;
}

.form-input::placeholder { color: var(--soft); }
.form-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238a8a8a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--ink);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.form-hint { font-size: 11px; color: var(--mute); margin-top: 4px; }

.subheading {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 22px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-mid);
}

.subheading .opt {
  text-transform: none;
  font-weight: 500;
  font-size: 11px;
  color: var(--soft);
  letter-spacing: 0;
  margin-left: 8px;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-mid);
  gap: 10px;
}

.wizard-footer .btn { flex: 1; justify-content: center; padding: 14px; }
.wizard-footer .btn-primary { flex: 2; }

/* Headshot upload */
.headshot-upload {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px dashed var(--border-mid);
  border-radius: var(--r);
  cursor: pointer;
  background: var(--surface);
}

.headshot-upload:hover { border-color: var(--ink-soft); background: var(--surface-alt); }
.headshot-upload.uploaded { border-style: solid; border-color: var(--ink); background: var(--surface-alt); }

.headshot-upload .hs-text { flex: 1; }

.headshot-upload .hs-name {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.headshot-upload .hs-hint {
  font-size: 11px;
  color: var(--mute);
  margin-top: 4px;
}

/* Upload box */
.upload {
  border: 1px dashed var(--border-mid);
  border-radius: var(--r);
  padding: 14px 16px;
  text-align: left;
  color: var(--mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  background: var(--surface);
  transition: border 0.12s, background 0.12s;
}

.upload:hover { border-color: var(--ink-soft); background: var(--surface-alt); color: var(--ink); }
.upload.uploaded { border-style: solid; border-color: var(--ink); background: var(--surface-alt); color: var(--ink); }

.upload .upload-icon {
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.upload .upload-name {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.upload .upload-hint {
  font-size: 11px;
  color: var(--mute);
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

/* Sign box */
.sign-box {
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--surface);
}

.sign-box .legal {
  font-size: 11px;
  color: var(--mute);
  max-height: 90px;
  overflow-y: auto;
  margin-bottom: 14px;
  line-height: 1.6;
  padding-right: 8px;
}

.sign-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  background: none;
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 22px;
  font-style: italic;
  text-align: center;
  outline: none;
  padding: 6px 0;
  color: var(--ink);
}

/* Done state */
.done-state { text-align: center; padding: 32px 8px; }

.done-state .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-weight: 800;
  font-size: 22px;
}

.done-state h2 {
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}

.done-state p { color: var(--mute); margin-bottom: 0; max-width: 380px; margin: 0 auto; font-size: 13px; }

.done-schedule {
  margin-top: 32px;
  text-align: left;
  border-top: 1px solid var(--border-mid);
  padding-top: 22px;
}

.done-schedule h3 {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--mute);
}

/* ============================================================
   Splash screen
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease;
}

.splash.fading {
  opacity: 0;
  pointer-events: none;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/basketball-net.png");
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(1.1);
  transform: scale(1.03);
  animation: splash-kenburns 5s ease-out;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgb(0 0 0 / 0.2) 0%, rgb(0 0 0 / 0.7) 80%),
    linear-gradient(180deg, rgb(0 0 0 / 0.4) 0%, rgb(0 0 0 / 0.1) 50%, rgb(0 0 0 / 0.85) 100%);
}

@keyframes splash-kenburns {
  from { transform: scale(1.0); }
  to { transform: scale(1.06); }
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  animation: splash-fade-in 0.6s ease-out 0.1s both;
}

@keyframes splash-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 0;
}

.splash-lineup {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.28em;
  color: white;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.splash-lineup .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 6px;
  margin-top: -10px;
}

.splash-x {
  font-size: 20px;
  font-weight: 300;
  color: rgb(255 255 255 / 0.4);
  letter-spacing: 0;
}

.splash-org {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.4));
}

.splash-loader {
  width: 56px;
  height: 1px;
  background: rgb(255 255 255 / 0.15);
  margin: 40px auto 0;
  overflow: hidden;
  position: relative;
}

.splash-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  transform: translateX(-100%);
  animation: splash-loader 1.6s ease-out 0.2s forwards;
}

@keyframes splash-loader {
  to { transform: translateX(0); }
}

.splash-tag {
  margin-top: 24px;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: rgb(255 255 255 / 0.45);
  text-transform: uppercase;
}

/* ============================================================
   Landing / Role chooser
   ============================================================ */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.landing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 20px 32px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.landing .eyebrow {
  margin-bottom: 14px;
}

.landing h1 {
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.94;
  margin-bottom: 16px;
}

.landing .lead {
  font-size: 15px;
  color: var(--mute);
  margin-bottom: 32px;
  line-height: 1.55;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.role-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-card:hover {
  border-color: var(--ink);
  background: var(--surface-elev);
}

.role-card .role-num {
  font-weight: 800;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.role-card .role-text { flex: 1; min-width: 0; }

.role-card .role-name {
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.role-card .role-desc {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.45;
}

.role-card .role-arrow {
  font-weight: 800;
  font-size: 18px;
  color: var(--mute);
  flex-shrink: 0;
}

.role-card:hover .role-arrow { color: var(--accent-bright); }

.landing-foot {
  border-top: 1px solid var(--border-mid);
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  background: rgb(0 0 0 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.landing-foot .lineup-wordmark {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.landing-foot .lineup-wordmark .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
  margin-top: -8px;
}

.landing-foot .tagline {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--border-mid);
}

/* ============================================================
   Up Next card (dashboard)
   ============================================================ */
.upnext-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  padding: 16px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.upnext-card:hover { background: var(--surface-alt); border-color: var(--border-strong); }

.upnext-card .un-time {
  text-align: center;
  padding-right: 14px;
  border-right: 1px solid var(--border-mid);
}

.upnext-card .un-day {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mute);
  text-transform: uppercase;
}

.upnext-card .un-num {
  font-weight: 800;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 4px;
}

.upnext-card .un-clock {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 6px;
}

.upnext-card .un-body { min-width: 0; }

.upnext-card .un-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.upnext-card .un-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.upnext-card .un-loc {
  font-size: 11px;
  color: var(--mute);
  margin-top: 4px;
}

/* ============================================================
   Player home — feed, hype, trip banner
   ============================================================ */
.headshot.sm { width: 32px; height: 32px; }

.trip-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.trip-banner:hover { background: var(--surface-alt); border-color: var(--border-strong); }

.trip-banner .tb-main { flex: 1; min-width: 0; }

.trip-banner .tb-name {
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-top: 5px;
}

.trip-banner .tb-sub {
  font-size: 11px;
  color: var(--mute);
  margin-top: 3px;
}

.trip-banner .tb-arrow {
  font-weight: 800;
  font-size: 18px;
  color: var(--mute);
  flex-shrink: 0;
}

.trip-banner:hover .tb-arrow { color: var(--accent-bright); }

.feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
}

.feed-card .feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 9px;
}

.feed-card .feed-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.feed-card .feed-body {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.hype-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  white-space: nowrap;
}

.hype-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hype-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hype-avatars .headshot.sm + .headshot.sm { margin-left: -10px; }

.hype-who {
  font-size: 13px;
  line-height: 1.4;
  min-width: 0;
}

.hype-who b { font-weight: 700; }

.hype-note {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--border-strong);
}

.hype-foot {
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-top: 10px;
}

/* Give-hype modal pickers */
.mate-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 4px;
}

.mate-row::-webkit-scrollbar { display: none; }

.mate-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r);
  min-width: 64px;
  color: var(--mute);
  flex-shrink: 0;
}

.mate-chip .headshot { width: 46px; height: 46px; border: 2px solid transparent; }

.mate-chip .mate-name {
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mate-chip.active { color: var(--ink); }
.mate-chip.active .headshot { border-color: var(--accent); }

.hype-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hype-option {
  padding: 9px 13px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  transition: all 0.1s;
}

.hype-option:hover { color: var(--ink); border-color: var(--border-strong); }
.hype-option.active { background: var(--accent); border-color: var(--accent); color: white; }

.hype-option-desc {
  font-size: 12px;
  color: var(--mute);
  margin-top: 10px;
  min-height: 18px;
}

/* ============================================================
   Responsive — tablet & up
   ============================================================ */
@media (min-width: 720px) {
  .container { max-width: 1100px; padding: 32px 24px 80px; }

  .app { padding-bottom: 0; }
  .bottom-nav { display: none; }

  .topbar { padding: 14px 24px; }

  .topbar-left .divider { display: block; }
  .org-chip img { height: 28px; }
  .org-chip .org-meta { display: flex; flex-direction: column; }
  .org-chip .org-name {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
  }
  .org-chip .org-sub {
    font-size: 11px;
    color: var(--mute);
    margin-top: 3px;
  }

  .topnav {
    display: flex;
    gap: 0;
    margin-left: 12px;
  }
  .topnav button {
    background: none;
    border: none;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -15px;
    padding-bottom: 18px;
  }
  .topnav button:hover { color: var(--ink); }
  .topnav button.active { color: var(--ink); border-bottom-color: var(--accent); }

  .user-chip .user-meta {
    display: flex;
    flex-direction: column;
    text-align: right;
  }
  .user-chip .user-name { font-weight: 600; font-size: 12px; }
  .user-chip .user-role { color: var(--mute); font-size: 11px; }

  .page-title { font-size: 48px; }

  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-card { padding: 18px 22px; }
  .stat-card .stat-num { font-size: 38px; }

  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .team-card .tc-age { font-size: 64px; }

  .roster-row {
    grid-template-columns: 44px 56px 2fr 100px 80px 130px auto;
    gap: 16px;
    padding: 14px 18px;
  }
  .roster-row .num { font-size: 26px; }
  .col-tablet { display: block; }
  .col-tablet.muted { color: var(--mute); font-size: 12px; }
  .col-tablet.position {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .col-tablet.sizes {
    display: flex;
    gap: 10px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .col-tablet.sizes .size-row {
    display: flex;
    gap: 4px;
    align-items: baseline;
  }
  .col-tablet.sizes .size-row .key {
    font-size: 9px;
    color: var(--mute);
    letter-spacing: 0.12em;
  }
  .player-meta { font-size: 12px; }
  .player-meta .sizes { display: none; } /* moves to its own column on tablet */

  .roster-header {
    display: grid;
    grid-template-columns: 44px 56px 2fr 100px 80px 130px auto;
    gap: 16px;
    padding: 10px 18px;
    background: var(--surface);
    cursor: default;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
  }
  .roster-header:hover { background: var(--surface); }

  .filter-pills { margin: 0 0 14px 0; padding: 0; overflow: visible; }

  .tabs { margin: 0 0 22px; padding: 0; }

  .profile-hero {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border-mid);
    border-radius: var(--r);
    margin-bottom: 18px;
  }
  .profile-hero .row-top {
    display: contents;
  }
  .profile-hero .num-block {
    font-size: 96px;
    grid-column: 1;
  }
  .profile-hero .info-block { grid-column: 2; }
  .profile-hero .right-col {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }
  .profile-hero .player-name-big { font-size: 38px; }

  .profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .event-row {
    grid-template-columns: 88px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px 0;
  }
  .event-row .event-time { font-size: 15px; }
  .event-row .event-head { gap: 10px; }
  .event-row .event-title { font-size: 15px; }

  .modal-backdrop {
    place-items: center;
    padding: 24px;
  }
  .modal {
    border-radius: var(--r-lg);
    border: 1px solid var(--border-mid);
    max-width: 500px;
  }
  @keyframes slide-up { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

  .toast { bottom: 24px; left: auto; right: 24px; transform: none; }
  @keyframes toast-in {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .landing h1 { font-size: 60px; }
  .landing-content { padding: 80px 24px 48px; }
  .role-cards { flex-direction: row; }
  .role-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 12px; flex: 1; }
  .role-card .role-arrow { align-self: flex-end; }
  .splash-lockup { gap: 28px; }
  .splash-lineup { font-size: 32px; }
  .splash-org { height: 72px; }
}

@media (min-width: 1024px) {
  .teams-grid { grid-template-columns: repeat(3, 1fr); }
  .page-title { font-size: 64px; }
  .container { padding: 40px 32px 100px; }
}
