/* ==========================================================================
   Hashmark Basketball — product styles
   Dark court theme, orange accent. Motion rules:
   - Every animation has a job (feedback, hierarchy, or one live indicator).
   - All motion freezes (not slows) under prefers-reduced-motion.
   - No cursor followers, no glassmorphism, no scroll-triggered fades.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --bg: #101111;
  --panel: #191b1b;
  --panel2: #202222;
  --text: #f4f3ed;
  --muted: #a9b0ad;
  --line: #323635;
  --orange: #ffa15d;
  --green: #75dfa5;
  --red: #ffb0b0;
  --radius: 12px;
  --lift: 0 8px 24px rgb(0 0 0 / 0.35);
  --speed: 180ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.08; letter-spacing: -1.7px; font-weight: 800; }
h2 { font-size: 21px; letter-spacing: -0.6px; line-height: 1.25; }
h3 { font-size: 16px; line-height: 1.3; }
p { color: var(--muted); }
small { font-size: 11px; }

.skip {
  position: fixed;
  top: -100px;
  left: 18px;
  padding: 14px;
  background: var(--orange);
  color: #111;
  z-index: 30;
}
.skip:focus { top: 10px; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 83px;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(16, 17, 17, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.7px;
}
.brand svg { color: var(--orange); }
.brand small {
  display: block;
  color: var(--orange);
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
}

.product-switch {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 8px;
}
.product-switch a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 5px;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.product-switch a[aria-current] { background: #33261c; color: var(--orange); }

.account {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.account-name {
  color: var(--muted);
  max-width: 140px;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Layout + sidebar
   -------------------------------------------------------------------------- */

.app-layout {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: calc(100vh - 150px);
}

.sidebar {
  padding: 34px 20px;
  border-right: 1px solid var(--line);
}

.sidebar-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 16px;
}

.sidebar nav { display: grid; gap: 5px; }

.sidebar a {
  padding: 12px 14px;
  color: var(--muted);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.sidebar a:hover { background: var(--panel2); color: var(--text); }
.sidebar a.active { background: #33261c; color: var(--orange); }

.nav-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.sidebar-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.sidebar-note {
  font-size: 11px;
  line-height: 1.7;
  padding: 14px;
}
.sidebar-league {
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sidebar-league span {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}

main {
  padding: 42px 44px 60px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Page head — the h1 slides up once per navigation (CSS-only, plays on render)
   -------------------------------------------------------------------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 32px;
}
.page-head p {
  margin-top: 12px;
  font-size: 14px;
  max-width: 56ch;
}

.page-head h1 {
  animation: h1-rise 0.45s var(--ease) both;
}

@keyframes h1-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Buttons — arrow slides in on primary CTAs
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  transition: background-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.btn:hover { background: #2d302e; }
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #18130f;
}
.btn.primary:hover { background: #ffb57f; }

/* Arrow-slide hover: only on primary CTAs so it stays purposeful */
.btn.primary::after {
  content: '\2192'; /* right arrow */
  display: inline-block;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-6px);
  transition: width var(--speed) var(--ease), opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.btn.primary:hover::after,
.btn.primary:focus-visible::after {
  width: 0.85em;
  opacity: 1;
  transform: translateX(0);
}

.btn.small {
  padding: 8px 11px;
  font-size: 11px;
  min-height: 36px;
}
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }

/* --------------------------------------------------------------------------
   Panels + grids
   -------------------------------------------------------------------------- */

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 0;
  transition: border-color var(--speed) var(--ease);
}

/* Subtle lift on hover for clickable panels only (league cards), not every panel */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.section-head p {
  font-size: 12px;
  margin-top: 6px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  background: #231c16;
  border-color: #4c3524;
  padding: 30px;
}
.hero-panel h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.05;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  max-width: 12ch;
}
.hero-panel p {
  max-width: 36ch;
  position: relative;
  z-index: 1;
  font-size: 13px;
}
.hero-panel .actions {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.court-mark {
  position: absolute;
  width: 310px;
  height: 310px;
  right: -90px;
  top: 25px;
  color: var(--orange);
  opacity: 0.18;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.kicker {
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.welcome-feature {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.welcome-feature:last-child { border: 0; padding-bottom: 0; }
.welcome-feature p {
  font-size: 12px;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   League cards — card lift on hover (the interactive surface, so it earns it)
   -------------------------------------------------------------------------- */

.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

.league-card {
  display: block;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.league-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--lift);
}
.league-card h3 {
  margin: 20px 0 5px;
  font-size: 20px;
}
.league-card .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Chips + empty/loading states
   -------------------------------------------------------------------------- */

.chip {
  font-size: 10px;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.chip.orange {
  color: var(--orange);
  border-color: #704522;
  background: #33261c;
}
.chip.green {
  color: var(--green);
  border-color: #375646;
}
.chip.red {
  color: var(--red);
  border-color: #664044;
}

.empty {
  padding: 38px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.empty h3 { margin-bottom: 10px; }
.empty p {
  font-size: 13px;
  max-width: 48ch;
  margin: 0 auto 18px;
}
.empty .actions { justify-content: center; }

.loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
.loading::before {
  content: '';
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 20px;
  border: 2px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.stack { display: grid; gap: 22px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-shell { max-width: 780px; }

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

label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #424845;
  border-radius: 7px;
  background: #111414;
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  transition: border-color var(--speed) var(--ease);
}
input:hover, select:hover { border-color: #565d59; }
input:focus, select:focus { border-color: var(--orange); }
input::placeholder { color: #87918b; }

.full { grid-column: 1 / -1; }

.help {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}

.form-title {
  margin: 26px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}
.check span { display: block; }
.check small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 400;
}

.form-actions {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.error {
  padding: 15px 18px;
  border: 1px solid #714646;
  color: var(--red);
  border-radius: 8px;
  background: #281c1c;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.error p { color: var(--red); }
.error[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Auth / landing — cinematic chalkboard court
   -------------------------------------------------------------------------- */

/* Logged-out landing drops the app shell entirely */
body.auth-shell .sidebar { display: none; }
body.auth-shell .app-layout { grid-template-columns: 1fr; min-height: 0; }
body.auth-shell main { padding: 0; }

.landing { min-height: calc(100vh - 83px); display: flex; flex-direction: column; }

.hero-court {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 44px;
  align-items: start;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 44px 44px 150px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-art svg { width: 100%; height: 100%; display: block; }
/* Wide screens: cap the art so play tags never slide under the CTA row/auth card */
@media (min-width: 1500px) {
  .hero-art { right: 30%; left: auto; width: 70%; max-width: 1180px; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 9vh;
  max-width: 760px;
}
.hero-copy h1 {
  font-size: clamp(42px, 5.2vw, 76px);
  letter-spacing: -3px;
  margin-bottom: 24px;
  max-width: 16ch;
}
.hero-sub {
  font-size: 15px;
  max-width: 44ch;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.trust-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.btn.cta-ghost {
  background: transparent;
  border-color: #565d59;
  min-width: 108px;
}
.btn.cta-ghost:hover { border-color: var(--text); background: rgb(255 255 255 / 0.04); }

/* Floating play card — the one allowed translucency */
.play-card {
  position: absolute;
  z-index: 2;
  left: 44px;
  bottom: 56px;
  width: 300px;
  padding: 18px 20px;
  border: 1px solid #3a403d;
  border-radius: 12px;
  background: rgb(22 24 24 / 0.78);
  backdrop-filter: blur(6px);
  animation: card-in 0.5s var(--ease) 0.9s both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.play-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.play-card-sub { color: var(--orange); }
.play-card dl { display: grid; gap: 9px; margin: 0; }
.play-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}
/* Outcome rows stay out of the card until the play actually resolves. */
[data-outcome-row][hidden] { display: none; }
.play-card dt { color: var(--muted); }
.play-card dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.play-card-dash { color: var(--orange); }
.play-card-caption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Auth card column — top-aligned with the story */
.auth-col { position: relative; z-index: 2; }
.auth-card { background: rgb(25 27 27 / 0.92); }

/* Court artwork details */
.court-num {
  fill: rgb(255 255 255 / 0.05);
  font-size: 90px;
  font-weight: 800;
  letter-spacing: -4px;
}
.pos circle { stroke: #5a655f; fill: rgb(16 17 17 / 0.6); stroke-width: 1.4; }
.pos text { fill: #c7cdc7; font-size: 10px; font-weight: 700; }
.ptag rect {
  fill: rgb(14 15 15 / 0.88);
  stroke: #3a403d;
}
.ptag text {
  fill: #c7cdc7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.ptag-hot rect { stroke: var(--orange); }
.ptag-hot text { fill: var(--orange); }
.ptag-hot { animation: tag-pulse 2.6s ease-in-out infinite; }
@keyframes tag-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Chalk routes draw in once, then rest */
.chalk-routes .draw {
  stroke: #8a938d;
  stroke-dasharray: 2 8;
  animation: chalk-draw 1.1s var(--ease) 0.15s both;
}
.chalk-routes .draw-hot {
  stroke: var(--orange);
  animation-delay: 0.45s;
}
@keyframes chalk-draw {
  from { stroke-dashoffset: 220; opacity: 0.15; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* Four rooms — hairline-separated columns, not boxed cards */
.rooms {
  border-top: 1px solid var(--line);
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 42px 44px 64px;
}
.rooms h2 { margin-bottom: 30px; }
.rooms .sec-head { margin-bottom: 26px; }
.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.room { padding-right: 28px; }
.room + .room {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.room h3 { margin-bottom: 8px; }
.room p { font-size: 12.5px; line-height: 1.6; }

.auth-form {
  display: grid;
  gap: 20px;
}
.auth-form h2 { margin-bottom: 4px; }
.auth-footer {
  font-size: 12px;
  text-align: center;
  margin-top: 22px;
}
.auth-footer a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forgot-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.forgot-link:hover { color: #ffb57f; }

/* --------------------------------------------------------------------------
   Tabs — pill color slides between states
   -------------------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  margin-bottom: 26px;
  padding-bottom: 10px;
}
.tabs a {
  padding: 10px 14px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 6px;
  color: var(--muted);
  min-height: 40px;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.tabs a:hover { color: var(--text); background: var(--panel2); }
.tabs a.active {
  color: var(--orange);
  background: #33261c;
}

/* --------------------------------------------------------------------------
   Metrics — count-up numbers are driven by JS (data-count); CSS holds the look
   -------------------------------------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 22px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px 22px;
}
.metric dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.metric dd {
  margin: 7px 0 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Dashboard extras: slate, standings snapshot, gauntlet strip
   -------------------------------------------------------------------------- */

.overview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

/* Live game pulse — the single ambient loop on the page */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(255 176 176 / 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgb(255 176 176 / 0); }
}

.slate-list {
  display: grid;
  gap: 10px;
}

.slate-game {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161919;
  font-size: 13px;
}
.slate-game .slate-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.slate-game .slate-teams span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slate-game .slate-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.slate-game .slate-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.slate-game.is-live { border-color: #664044; }
.slate-game.is-live .slate-status { color: var(--red); }
.slate-game.is-final .slate-status { color: var(--green); }

/* Standings snapshot */
.snapshot-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.snapshot-row:last-child { border-bottom: 0; }
.snapshot-rank {
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.snapshot-row.is-you .snapshot-rank,
.snapshot-row.is-you .snapshot-team { color: var(--orange); }
.snapshot-team {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.snapshot-record {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.snapshot-pf {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Gauntlet strip */
.gauntlet-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 16px 22px;
  border: 1px solid #4c3524;
  border-radius: 9px;
  background: #231c16;
  margin-bottom: 22px;
  font-size: 12px;
}
.gauntlet-strip .gauntlet-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.gauntlet-strip dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.gauntlet-strip dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Tables + players
   -------------------------------------------------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 600;
  text-transform: uppercase;
  background: #161919;
}
th, td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }

.player-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.player-name-button {
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  min-height: 32px;
  cursor: pointer;
  transition: color var(--speed) var(--ease);
}
.player-name-button:hover { color: var(--orange); }

td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
td select {
  min-width: 155px;
  font-size: 12px;
}

.date-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.date-toolbar input {
  width: 168px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Game schedule (lineup page day games)
   -------------------------------------------------------------------------- */

.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.game {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161919;
}
.game-top {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 15px;
}
.game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filters label {
  flex: 1;
  min-width: 125px;
}
.filters label:first-child {
  flex: 2;
  min-width: 180px;
}
.filters .btn {
  align-self: end;
}

/* --------------------------------------------------------------------------
   Draft room — gentle pulse on the clock header when it is YOUR pick
   -------------------------------------------------------------------------- */

.on-clock h2 {
  color: var(--orange);
  animation: clock-glow 2.2s ease-in-out infinite;
}
@keyframes clock-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* --------------------------------------------------------------------------
   Notice, footer, dialog
   -------------------------------------------------------------------------- */

.notice {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: 400px;
  background: #292c29;
  border: 1px solid #5b6b5f;
  color: var(--text);
  padding: 17px 22px;
  border-radius: 10px;
  z-index: 50;
  box-shadow: 0 12px 36px #0008;
  animation: notice-in 0.25s var(--ease);
}
.notice[hidden] { display: none; }
@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  max-width: 1600px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 22px 32px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.footer span:first-child { letter-spacing: 1px; }

dialog {
  width: min(760px, calc(100% - 32px));
  max-height: 85vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  padding: 28px;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.icon-button {
  height: 40px;
  width: 40px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  border-radius: 7px;
  font-size: 17px;
  transition: background-color var(--speed) var(--ease);
}
.icon-button:hover { background: #2d302e; }

.player-profile {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 25px;
}
.avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: #33261c;
  border: 1px solid #704522;
  border-radius: 12px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
}
.player-profile p {
  margin-top: 7px;
  font-size: 12px;
}

.data-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 18px;
}

.month-card { margin-bottom: 18px; }
.month-card .section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.section-space { margin-top: 32px; }

/* --------------------------------------------------------------------------
   Page arrival — content settles once per navigation
   -------------------------------------------------------------------------- */

.page-enter {
  animation: arrive 0.25s ease-out;
}
@keyframes arrive {
  from {
    opacity: 0.5;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  main { padding: 34px 26px; }
  .app-layout { grid-template-columns: 195px 1fr; }
  .sidebar { padding: 28px 13px; }
  .dashboard-grid,
  .overview-row { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .page-head { align-items: flex-start; }
  .hero-panel { min-height: 260px; }
  .hero-court { grid-template-columns: minmax(0, 1fr) 350px; gap: 30px; }
  .hero-copy h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -2px; }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 18px 20px;
    gap: 16px;
  }
  .brand { font-size: 16px; }
  .product-switch {
    order: 3;
    width: 100%;
  }
  .product-switch a {
    flex: 1;
    justify-content: center;
  }
  .account { margin-left: auto; }
  .account-name { display: none; }
  .app-layout { display: block; }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }
  .sidebar-label,
  .sidebar-section,
  .sidebar-note { display: none; }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }
  .sidebar a {
    white-space: nowrap;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 12px;
  }
  .sidebar .nav-icon { width: 15px; }
  main { padding: 28px 20px 45px; }
  .page-head {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1.1px;
  }
  .panel { padding: 20px; }
  .grid-2,
  .grid-3,
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .metrics { gap: 8px; }
  .metric { padding: 13px 11px; }
  .metric dt { font-size: 8px; }
  .metric dd { font-size: 21px; }
  .gauntlet-strip { gap: 8px 18px; }
  /* Landing stacks: art behind, copy first, stat card in flow, form below */
  .hero-court {
    display: block;
    min-height: 0;
    padding: 26px 20px 40px;
  }
  .hero-copy { padding-top: 24vw; max-width: none; }
  .hero-copy h1 { font-size: clamp(34px, 9.5vw, 44px); letter-spacing: -1.6px; margin-bottom: 18px; }
  .hero-sub { margin-bottom: 26px; }
  .play-card {
    position: static;
    width: min(340px, 100%);
    margin-top: 32px;
    left: auto;
    bottom: auto;
  }
  .auth-col { margin-top: 30px; }
  .rooms { padding: 34px 20px 50px; }
  .rooms h2 { margin-bottom: 20px; }
  .room-grid { grid-template-columns: 1fr; }
  .room { padding-right: 0; }
  .room + .room {
    border-left: 0;
    padding-left: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .court-num { font-size: 64px; }
  .auth-form { gap: 17px; }
  .footer {
    flex-direction: column;
    padding: 22px 20px;
    gap: 7px;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .filters { gap: 12px; }
  .notice {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  .hero-panel h2 { font-size: 38px; }
  .hero-panel { padding: 25px; }
  .court-mark { right: -130px; }
  .tabs { margin-inline: -4px; }
  td, th { padding: 12px 10px; }
  dialog { padding: 20px; }
  .date-toolbar { flex-wrap: wrap; }
  .date-toolbar input { width: 155px; }
  .league-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Logged-in home: scoreboard, quick tiles
   -------------------------------------------------------------------------- */

.home-slate .section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.home-scoreboard { margin-top: 18px; }
.home-scoreboard .data-note { margin-bottom: 12px; }
.home-scoreboard .scoreboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.home-scoreboard .scoreboard-game {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--panel2);
}
.home-scoreboard .scoreboard-game--live { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.home-scoreboard .scoreboard-state {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted);
}
.home-scoreboard .scoreboard-game--live .scoreboard-state { color: var(--green); }
.home-scoreboard .scoreboard-state i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: live-pulse 2.4s ease-in-out infinite;
}
.home-scoreboard .game-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.home-scoreboard .game-row {
  display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px;
}
.home-scoreboard .game-row span:first-child { color: var(--text); font-weight: 600; }
.home-scoreboard .game-row span:last-child { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.home-scoreboard .game-venue { margin-top: 9px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.quick-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 26px;
}
.quick-tiles .tile {
  display: flex; flex-direction: column; gap: 5px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; background: var(--panel);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.quick-tiles .tile:hover { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); background: var(--panel2); transform: translateY(-2px); }
.quick-tiles .tile strong { font-size: 14px; color: var(--text); }
.quick-tiles .tile span { font-size: 12px; color: var(--muted); }

@media (max-width: 760px) {
  .quick-tiles { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Landing: scoreboard + game modes
   -------------------------------------------------------------------------- */

.landing-scoreboard { margin-top: 40px; max-width: 1320px; margin-left: auto; margin-right: auto; width: calc(100% - 88px); }
.landing-scoreboard .section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.mode-grid { margin-top: 48px; }
.mode-grid > h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 22px; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: transform 200ms ease, border-color 200ms ease; }
.mode-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--orange) 40%, var(--line)); }
.mode-card .kicker { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: 2.2px; }
.mode-card h3 { font-size: 22px; letter-spacing: -0.5px; }
.mode-card p { color: var(--muted); }
.mode-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.mode-card li { color: var(--muted); font-size: 13px; padding-left: 16px; position: relative; }
.mode-card li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); opacity: .7; }
.mode-card .btn { margin-top: auto; align-self: flex-start; }
.mode-card--gauntlet { border-color: color-mix(in srgb, var(--orange) 30%, var(--line)); background: linear-gradient(180deg, rgba(255,161,93,0.05), transparent 40%), var(--panel); }
@media (max-width: 860px) { .mode-cards { grid-template-columns: 1fr; } }

/* Play rotation dots on the play card */
.play-dots { display: flex; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.play-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--muted); background: transparent; padding: 0; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.play-dot:hover { border-color: var(--orange); transform: scale(1.25); }
.play-dot.on { background: var(--orange); border-color: var(--orange); }

/* Play tags: HTML overlays in a fixed safe band (bottom-right of the art),
   never inside the scalable SVG, so they can't drift under copy/cards. */
.court-tags {
  position: absolute; right: 3%; bottom: 6%;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  z-index: 1;
}
/* Below 1300px the auth card stacks over the art — hide the overlay tags there
   (the same names appear inside the play card's mini-tag strip). */
@media (max-width: 1299px) {
  .court-tags { display: none; }
}
.court-tag {
  position: absolute; transform: translate(-50%,-50%);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--text); background: rgba(20,23,24,0.88);
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 9px;
  white-space: nowrap;
  animation: tag-in .5s ease-out .55s both;
}
.court-tag.hot { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 65%, var(--line)); animation: tag-in .5s ease-out .55s both, hot-pulse 2.6s ease-in-out 1.1s infinite; }
@keyframes hot-pulse { 50% { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,161,93,0.12); } }
.play-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mini-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.4px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; }

/* Crossfade when a new play draws in */
.hero-art svg .draw { stroke-dasharray: 6 7; }
.hero-art svg .draw { stroke-dashoffset: 0; animation: chalk-draw 1.1s ease-out both; }
@keyframes chalk-draw { from { stroke-dashoffset: 220; opacity: .2; } to { stroke-dashoffset: 0; opacity: 1; } }
.hero-art svg .ptag, .hero-art svg .pos { animation: tag-in .5s ease-out .55s both; }
@keyframes tag-in { from { opacity: 0; transform: translate(var(--tx,0), var(--ty,6px)); } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Reduced motion — FREEZE everything, no exceptions
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   Football-parity studio hero (copied structurally from app.css, basketball palette)
   ========================================================================== */

:root {
  --pylon: #ffa15d;
  --chalk: #f4f3ed;
  --chalk-dim: #a9b0ad;
  --chalk-faint: #6f7a74;
  --hair: #323635;
  --sweep-lit: #1a2420;
  --sweep-mid: #121815;
  --sweep-far: #101111;
  --daylight: #8fb7a0;
  --rail: clamp(1.25rem, 4vw, 3.5rem);
  --r-panel: 14px;
  --shadow-key: 0 24px 48px -24px rgba(0,0,0,.9);
}

.studio {
  position: relative;
  min-height: clamp(560px, 86svh, 940px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2rem, 6vh, 4.5rem);
  overflow: hidden;
}

.sweep {
  position: absolute;
  inset: -10% -10% 0;
  z-index: 0;
  background:
    radial-gradient(120% 82% at 62% 26%, var(--sweep-lit) 0%, var(--sweep-mid) 42%, var(--sweep-far) 78%),
    var(--sweep-far);
}
.sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(16,17,17,.6) 92%);
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 1500px;
  perspective-origin: 50% 40%;
  pointer-events: none;
}

.pitch {
  --pw: min(1150px, 128vw);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--pw);
  height: calc(var(--pw) * 520 / 800);
  margin-left: calc(var(--pw) / -2 + 2vw);
  margin-top: calc(var(--pw) * -520 / 800 * 0.585);
  transform-style: preserve-3d;
  transform: rotateX(var(--camx, 53deg)) rotateZ(0deg) translateZ(var(--camzoom, 0px));
  will-change: transform;
}
.pitch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.court-lines { stroke: rgba(244,243,237,.09); stroke-width: 1.2; fill: none; }
.court-lines polygon:first-child { fill: rgba(26,38,32,.7); stroke: rgba(244,243,237,.5); }
.yardnum {
  fill: rgba(244,243,237,.1);
  font-size: 64px;
  font-weight: 800;
  font-family: "Archivo", sans-serif;
}

.route { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.route-live { stroke: rgba(244,243,237,1); stroke-width: 7; stroke-dasharray: 12 9; }
.route-target { stroke: var(--pylon); stroke-width: 10; filter: drop-shadow(0 0 14px rgba(255,161,93,.95)); }

.pos { text-anchor: middle; }
.pos circle {
  fill: rgba(22,32,27,.95);
  stroke: rgba(244,243,237,.85);
  stroke-width: 1.5;
}
.pos text { fill: #f4f3ed; font-size: 11px; font-weight: 700; }

.standee { position: absolute; transform-style: preserve-3d; pointer-events: none; }
.standee .fig {
  position: absolute;
  left: -27px;
  bottom: 0;
  width: 54px;
  transform-origin: 50% 100%;
  transform: rotateX(calc(var(--camx, 53deg) * -1));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.standee .plate {
  padding: 4px 8px 5px;
  border-radius: 2px;
  background: #F4F3ED;
  color: #101111;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.01em;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.9);
  white-space: nowrap;
}
.standee .post { width: 2px; height: 16px; background: linear-gradient(to bottom, rgba(244,243,237,.5), rgba(244,243,237,0)); }
.standee.tgt .plate { background: var(--pylon); color: #101111; }
.standee .cast {
  position: absolute;
  left: -17px;
  top: -4px;
  width: 34px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.72), transparent);
  filter: blur(1.5px);
}

.ball {
  position: absolute;
  z-index: 3;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFD9A8, #F08A3E 50%, #B0541A);
  box-shadow: 0 0 0 2px rgba(244,243,237,.95), 0 0 26px 8px rgba(255,161,93,.95), 0 0 60px 14px rgba(255,161,93,.45);
  opacity: 0;
  z-index: 2;
}
.ballshadow {
  position: absolute;
  z-index: 2;
  width: 12px; height: 5px;
  margin: -2px 0 0 -6px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  filter: blur(1.5px);
  opacity: 0;
}
.pop {
  position: absolute;
  z-index: 3;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid var(--pylon);
  opacity: 0;
}

.dof {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(74% 64% at 55% 36%, transparent 0%, rgba(16,17,17,.08) 68%, rgba(16,17,17,.5) 100%),
    linear-gradient(to right, rgba(16,17,17,.7) 0%, rgba(16,17,17,.14) 40%, transparent 62%),
    linear-gradient(to bottom, rgba(16,17,17,.66) 0%, transparent 15%, transparent 46%, rgba(16,17,17,.3) 58%, rgba(16,17,17,.7) 74%, var(--sweep-far) 88%);
}

.hero-copy { position: relative; z-index: 3; width: 100%; }
.hero-copy h1 { max-width: 12ch; margin-bottom: .55rem; }
/* Football-parity page gutter: the wrap inside .studio needs its own padding
   because .studio is full-bleed. */
.studio .wrap { padding-left: clamp(1.5rem, 4.5vw, 4rem); padding-right: clamp(1.5rem, 4.5vw, 4rem); }
/* Court art a touch more present so the studio reads as a court, not noise */
.studio .court-lines { stroke: rgba(244,243,237,.7); stroke-width: 2; }
.studio .yardnum { fill: rgba(244,243,237,.42); }
.studio .route-live { stroke: rgba(244,243,237,1); stroke-width: 7; stroke-dasharray: 12 9; }
/* Plate hierarchy: target/hot plate bright, others clearly secondary but legible */
.studio .standee .plate { background: #F4F3ED; color: #101111; }
.studio .standee.tgt .plate { background: var(--orange); color: #18130f; }
.hero-copy .lede {
  font-size: 17px;
  max-width: 52ch;
  color: var(--chalk-dim);
  line-height: 1.38;
  margin: 0 0 1.6rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.cta-note { font-size: 12px; color: var(--chalk-faint); margin: 0; }
.hero-copy .btn.primary { background: var(--orange); color: #18130f; border-color: var(--orange); }
.hero-copy .btn.primary:hover { filter: brightness(1.08); }
.hero-copy .btn.cta-ghost { background: transparent; border: 1px solid var(--hair); color: var(--text); }

.bug {
  position: absolute;
  right: var(--rail);
  bottom: clamp(2rem, 6vh, 4.5rem);
  z-index: 3;
  width: min(290px, 42vw);
  background: rgba(16,17,17,.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: .85rem .95rem;
  box-shadow: var(--shadow-key);
}
.bug-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .5rem; }
.bug-head b { font-size: 12px; font-weight: 680; text-transform: uppercase; letter-spacing: .08em; }
.bug-clock { font-size: 12px; color: var(--chalk-faint); }
.bug-line { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; border-top: 1px solid var(--hair); font-size: 12px; }
.bug-line span:first-child { color: var(--chalk-dim); }
.bug-gain { color: var(--pylon); font-variant-numeric: tabular-nums; }
.bug-caption { margin: .6rem 0 0; font-size: 12px; color: var(--chalk-faint); line-height: 1.35; }

/* Rooms grid, football-identical hairline structure */
.landing .rooms, .landing .room-grid {
  border-color: var(--line);
}
.landing .room-grid {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.landing .room { background: var(--bg); padding: 1.6rem 1.4rem 1.5rem; position: relative; display: flex; flex-direction: column; }
.landing .room .hit { margin-top: auto; padding-top: 1.1rem; }
.landing .room::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(90% 70% at var(--gx, 20%) var(--gy, 0%), rgba(255,161,93,.14), transparent 70%);
}
.landing .room:hover { background: #191b1b; }
.landing .room:hover::before { opacity: 1; }
.landing .room h3, .landing .room p, .landing .room .hit { position: relative; }
.landing .room p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: .45rem 0 0; }
.landing .room .hit { display: block; margin-top: 1.1rem; font-size: 12px; color: var(--orange); font-weight: 620; }
.landing .featured-mode {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-top: 2rem; padding: 1.8rem 1.9rem;
  border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line));
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,161,93,.06), transparent 55%), var(--panel);
}
.landing .featured-mode h3 { margin: .2rem 0 .4rem; }
.landing .featured-mode p { margin: 0; max-width: 68ch; }
.landing .featured-mode-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.landing .featured-mode .hit { color: var(--orange); font-weight: 620; white-space: nowrap; }

@media(max-width:960px) {
  .studio { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; padding-top: clamp(268px, 39svh, 392px); padding-bottom: 2.5rem; }
  .stage { bottom: auto; height: clamp(292px, 43svh, 424px); overflow: hidden; }
  .sweep { inset: -8% -8% auto; height: clamp(420px, 62svh, 600px); }
  .dof { bottom: auto; height: clamp(300px, 44svh, 436px); background: radial-gradient(78% 56% at 52% 36%, transparent 0%, rgba(16,17,17,.25) 58%, rgba(16,17,17,.9) 100%), linear-gradient(to bottom, rgba(16,17,17,.78) 0%, transparent 15%, transparent 48%, rgba(16,17,17,.9) 80%, var(--sweep-far) 100%); }
  .pitch { --pw: min(820px, 170vw); margin-left: calc(var(--pw) / -2); margin-top: calc(var(--pw) * -520 / 800 * 0.632); }
  .hero-copy { order: 1; }
  .bug { position: relative; left: auto; right: auto; bottom: auto; width: 100%; max-width: 100%; order: 2; margin: 1.9rem 0 0; }
  .hero-copy .lede { font-size: 15px; max-width: 38ch; }
  .landing .featured-mode { align-items: flex-start; flex-direction: column; gap: 1rem; }
}
@media(max-width:620px) { .bug-caption { display: none; } }


/* --------------------------------------------------------------------------

   Modes — three ways to play (mirrors football landing)

   -------------------------------------------------------------------------- */

.modes {
  position: relative;
  padding: clamp(48px, 8vh, 88px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(255,161,93,.10), transparent 52%),
    radial-gradient(70% 60% at 100% 100%, rgba(70,52,38,.35), transparent 58%),
    var(--bg);
}
.modes .wrap { max-width: 1320px; margin: 0 auto; padding: 0 44px; }
.modes-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .7rem;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.modes .sec-head { margin-bottom: 20px; }
.modes-free {
  margin: 0 0 28px;
  padding: .85rem 1.15rem;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,161,93,.12), transparent 42%), var(--panel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.modes-free b { color: var(--orange); }
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.mode-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255,161,93,.10), transparent 62%),
    var(--panel);
  transition: background-color var(--speed) var(--ease);
}
.mode-card > .btn { margin-top: auto; align-self: flex-start; }
.mode-card:hover { background: var(--panel2); }
.mode-card-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 9px;
  border: 1px solid #704522;
  border-radius: 4px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mode-card h3 { margin-bottom: 9px; }
.mode-card .mode-hook {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}
.mode-card ul { margin: 0 0 20px; padding: 0; list-style: none; }
.mode-card li {
  position: relative;
  padding: 7px 0 7px 17px;
  border-top: 1px solid rgba(244,243,237,.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.mode-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--orange);
}
.mode-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) {
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card, .mode-card .btn { width: 100%; }
  .mode-card .btn { justify-content: center; }
}


/* --------------------------------------------------------------------------
   Money: free is live today; the escrow track is announced, not sold
   -------------------------------------------------------------------------- */
.money { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.money .wrap { max-width: 1320px; margin: 0 auto; padding: 0 44px; }
.money .sec-head { margin-bottom: 26px; }
.money h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -1.2px; margin: 6px 0 10px; }
.money .sec-head p { color: var(--muted); max-width: 62ch; }
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.money-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.money-card h3 { font-size: 20px; letter-spacing: -0.4px; }
.money-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.money-card li { color: var(--muted); font-size: 13px; padding-left: 16px; position: relative; }
.money-card li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); opacity: .7; }
.money-card .btn { margin-top: auto; align-self: flex-start; }
.money-badge {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
}
.money-badge--free { border: 1px solid var(--line); color: var(--muted); }
.money-badge--real { background: var(--orange); color: #140b06; }
.money-badge--soon { border: 1px solid var(--line); color: var(--muted); }
.money-card--soon {
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 11px, rgba(255,161,93,.05) 11px, rgba(255,161,93,.05) 12px),
    var(--panel);
}
.money-cta--off {
  background: transparent;
  border: 1px dashed rgba(255,161,93,.45);
  color: var(--muted);
  cursor: default;
}
.money-note { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .money-grid { grid-template-columns: 1fr; } }

/* ============ Phone layout ============ */
/* Hard-coded desktop gutters: 44px a side left a 302px column on a 390px phone,
   and the scoreboard then subtracted a further 88px from its own width. */
@media (max-width: 760px) {
  .wrap.wrap, .modes .wrap, .money .wrap, .studio .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .landing-scoreboard { width: 100%; margin-top: 24px; }
  .landing-scoreboard .section-head { gap: 12px; }
  /* A 9px dot is not a tap target, but ten 29px dots overflow the play card and
     clip its text. 24px fits all ten across a phone (10*24 + 9*7 = 303px) and the
     visual dot stays 9px via the inset. flex-wrap + max-width are a hard guard so
     this row can never push the card wider than the viewport again. */
  .play-dots {
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
  }
  .play-dot {
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0;
    border: none;
    background: transparent;
    flex: 0 0 auto;
  }
  .play-dot::before {
    content: "";
    position: absolute;
    inset: 7.5px;
    border-radius: 50%;
    border: 1px solid var(--muted);
  }
  .play-dot.on { background: transparent; }
  .play-dot.on::before { background: var(--orange); border-color: var(--orange); }
  /* Nothing inside a play card should ever be clipped by the right edge. */
  .play-card {
    max-width: 100%;
  }
  .play-card p,
  .play-card dd,
  .play-card dt,
  .play-card h3,
  .play-card h4,
  .play-card span {
    overflow-wrap: anywhere;
    min-width: 0;
  }
}
