/* ============================================================
   SPORTYLAND · Los Mochis — design system v11 "Cancha"
   Deep court-green ink · warm bone cream · rationed clay accent
   Squared geometry, hairline rules, court-line dividers.
   Two moods, one house: marketing = cream, portal = green ink.
   ============================================================ */

/* ── Fonts (self-hosted, variable) ── */
@font-face {
  font-family: "Archivo";
  src: url("/media/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/media/fonts/hanken-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo-fb";
  src: local("Arial");
  size-adjust: 112%;
}

/* ── Tokens ── */
:root {
  /* ground */
  --ink: #16211b;
  --ink-2: #1d2c24;
  --ink-3: #2c4033;
  --cream: #f2ede4;
  --cream-2: #e4ded2;
  --paper: #fbf8f1;
  --hairline: #ddd6c9;
  --muted: #6b655c;
  --muted-dark: #a9b2a5;

  /* clay accent — rationed */
  --clay: #a34a28;
  --clay-bright: #d8825a;
  --clay-fill: #b4552d;
  --clay-tint: rgba(163, 74, 40, 0.1);

  /* semantic (light bases / dark variants) */
  --ok: #366049;
  --ok-dark: #93bca0;
  --warn: #6e5712;
  --warn-dark: #c9a227;
  --bad: #8c3722;
  --bad-dark: #da9678;

  /* theme slots — light (marketing) defaults */
  --bg: var(--cream);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --card: var(--paper);
  --line: var(--hairline);
  --accent: var(--clay);
  --press: var(--cream-2);
  --sem-ok: var(--ok);
  --sem-warn: var(--warn);
  --sem-bad: var(--bad);
  --tint-ok: rgba(54, 96, 73, 0.12);
  --tint-warn: rgba(110, 87, 18, 0.12);
  --tint-bad: rgba(140, 55, 34, 0.12);

  /* type */
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --disp: "Archivo", "Archivo-fb", Arial, sans-serif;

  /* rhythm */
  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px;
  --shell: 1200px;
  --col: 680px;
  --dock-h: 64px;
  --safe: env(safe-area-inset-bottom, 0px);

  /* motion */
  --fast: 200ms ease-out;
  --base: 300ms ease-in-out;
  --slow: 500ms ease-in-out;

  --shadow: 0 8px 24px rgba(13, 19, 16, 0.16);
  --scrim-hero: rgba(13, 19, 16, 0.45);
}

/* dark mood — portal + ink sections */
.dark,
body.app-mode {
  --bg: var(--ink);
  --fg: var(--cream);
  --fg-muted: var(--muted-dark);
  --card: var(--ink-2);
  --line: var(--ink-3);
  --accent: var(--clay-bright);
  --press: var(--ink-3);
  --sem-ok: var(--ok-dark);
  --sem-warn: var(--warn-dark);
  --sem-bad: var(--bad-dark);
  --tint-ok: rgba(147, 188, 160, 0.14);
  --tint-warn: rgba(201, 162, 39, 0.14);
  --tint-bad: rgba(218, 150, 120, 0.14);
}
.dark { background: var(--bg); color: var(--fg); }

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--fg);
  background: var(--bg);
}
body.app-mode { padding-bottom: calc(var(--dock-h) + var(--safe)); }
img, video { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
select, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* inside overflow scrollers the outer ring clips — draw it inward instead */
.seg button:focus-visible,
.datestrip button:focus-visible,
.rail :focus-visible {
  outline-offset: -3px;
}
section[id] { scroll-margin-top: 84px; }
::selection { background: var(--clay-tint); }

/* ── Type roles ── */
.eyebrow {
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s3);
}
.t-display {
  font-family: var(--disp);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(2.125rem, 8.5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.t-h1 {
  font-family: var(--disp);
  font-stretch: 125%;
  font-weight: 650;
  font-size: clamp(1.9rem, 5.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.t-h2 {
  font-family: var(--disp);
  font-stretch: 118%;
  font-weight: 620;
  font-size: clamp(1.45rem, 3.6vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.t-h3 { font: 600 1.25rem/1.25 var(--sans); }
.t-data {
  font-family: var(--disp);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.sub { color: var(--fg-muted); }
.fine { font-size: 0.6875rem; line-height: 1.5; color: var(--fg-muted); }

/* ── Layout primitives ── */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.col { max-width: var(--col); margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s5); }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }

/* court-line divider — the house signature: baseline + center mark */
.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  position: relative;
  margin: 0;
  overflow: visible;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 1px;
  height: 7px;
  background: var(--line);
}

/* ── Wordmark (masked PNG → any color) ── */
.wordmark {
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("/media/brand/sportyland-wordmark.png") no-repeat center / contain;
  mask: url("/media/brand/sportyland-wordmark.png") no-repeat center / contain;
  aspect-ratio: 284 / 29;
}

/* ── Header ── */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 68px;
  display: flex;
  align-items: center;
  color: var(--cream);
  background: transparent;
  transition: background var(--base), color var(--base), box-shadow var(--base);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.top .brand { display: inline-flex; align-items: center; text-decoration: none; }
.top .brand .wordmark { height: 21px; width: 206px; transition: opacity var(--base); }
/* on the landing hero the brand lives in the hero itself — header mark fades in on scroll */
body.landing .top:not(.scrolled) .brand .wordmark { opacity: 0; }
.top.scrolled {
  background: var(--cream);
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--hairline);
}
body.app-mode .top {
  background: var(--ink);
  color: var(--cream);
  box-shadow: inset 0 -1px 0 var(--ink-3);
  height: 60px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s6);
  border: 0;
  border-radius: 0;
  background: var(--fg);
  color: var(--bg);
  font: 600 0.8125rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--fast), color var(--fast), box-shadow var(--fast), opacity var(--fast);
}
.btn:hover:not(:disabled) { background: var(--ink-3); color: var(--cream); }
.dark .btn:hover:not(:disabled), body.app-mode .btn:hover:not(:disabled) { background: var(--cream-2); color: var(--ink); }
.btn:disabled { background: var(--line); color: var(--fg-muted); cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn-ghost:hover, .dark .btn-ghost:hover, body.app-mode .btn-ghost:hover {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn-ghost:disabled { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-danger { background: transparent; color: var(--sem-bad); box-shadow: inset 0 0 0 1px currentColor; }
.btn-danger:hover, .dark .btn-danger:hover, body.app-mode .btn-danger:hover {
  background: transparent;
  color: var(--sem-bad);
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn-text {
  background: transparent;
  color: currentColor;
  min-height: 44px; /* WCAG touch target; visual stays a slim underlined label */
  padding: 0;
  border-bottom: 0;
  letter-spacing: 0.04em;
}
.btn-text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn-text:hover, .dark .btn-text:hover, body.app-mode .btn-text:hover {
  background: transparent;
  color: var(--accent);
}
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: 0.75rem; }
.btn-lg { min-height: 56px; padding: 0 var(--s7); }
.btn-block { width: 100%; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font: 600 0.8125rem/1 var(--sans);
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}
.field input, .field select, .field textarea {
  min-height: 52px;
  padding: var(--s3) var(--s4);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--fg);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B655C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.dark .field select, body.app-mode .field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A9B2A5' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* segmented control */
.seg { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow-x: auto; }
.seg button {
  flex: 1 0 auto;
  min-height: 44px;
  padding: 0 var(--s4);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font: 600 0.8125rem/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  white-space: nowrap;
  transition: background var(--fast), color var(--fast);
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--fg); color: var(--bg); }

/* ── Cards & rows ── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: var(--s4);
}
.card-lg { padding: var(--s5); }
.card-title {
  font-family: var(--disp);
  font-stretch: 116%;
  font-weight: 620;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.item { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item:first-child { padding-top: 0; }
.empty { color: var(--fg-muted); font-size: 0.9375rem; padding: var(--s3) 0; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border-radius: 0;
  font: 600 0.6875rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; flex: none; background: currentColor; }
.badge-ok   { background: var(--tint-ok);   color: var(--sem-ok); }
.badge-warn { background: var(--tint-warn); color: var(--sem-warn); }
.badge-bad  { background: var(--tint-bad);  color: var(--sem-bad); }
.badge-mut  { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--fg-muted); }

/* capacity bar */
.cap { display: flex; flex-direction: column; gap: 6px; margin: var(--s3) 0; }
.cap-bar { height: 4px; background: var(--line); border-radius: 0; overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--sem-ok); transition: width var(--base); }
.cap-bar.warn i { background: var(--sem-warn); }
.cap-bar.full i { background: var(--sem-bad); }
.cap-note { font-size: 0.8125rem; color: var(--fg-muted); }
.cap-note.low { font-weight: 700; color: var(--fg); }

/* request timeline: Enviada → En revisión → Confirmada */
.tl { display: flex; align-items: center; gap: 6px; margin-top: var(--s2); flex-wrap: wrap; }
.tl span { display: flex; align-items: center; gap: 6px; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.tl span::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--line); background: transparent; }
.tl span.done::before { background: var(--sem-ok); border-color: var(--sem-ok); }
.tl span.done { color: var(--sem-ok); }
.tl span.stop::before { background: var(--sem-bad); border-color: var(--sem-bad); }
.tl span.stop { color: var(--sem-bad); }
.tl i { flex: none; width: 14px; height: 1px; background: var(--line); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: var(--ink);
}
.hero-media, .hero-media video, .hero-media .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media .poster { transition: opacity var(--slow); }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--scrim-hero), var(--scrim-hero)),
    linear-gradient(transparent 45%, rgba(13, 19, 16, 0.78));
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-block: var(--s8);
}
.hero-pause {
  position: absolute;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 2;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(242, 237, 228, 0.7);
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  transition: border-color var(--fast);
}
.hero-pause:hover { border-color: var(--cream); }
.hero .wordmark { height: clamp(20px, 5.5vw, 28px); width: auto; aspect-ratio: 284 / 29; color: var(--cream); margin-bottom: var(--s5); }
.hero .eyebrow { color: var(--clay-bright); }
.hero-lead { max-width: 34rem; margin-top: var(--s4); font-size: 1.0625rem; color: rgba(242, 237, 228, 0.92); }
.hero-cta { display: flex; gap: var(--s3); margin-top: var(--s6); flex-wrap: wrap; }

/* ── Marketing bands ── */
.band { padding-block: clamp(64px, 10vw, 96px); }
.band-head { max-width: 46rem; margin-bottom: clamp(28px, 6vw, 48px); }
.band-head p { color: var(--fg-muted); margin-top: var(--s3); max-width: 65ch; }

.manifesto {
  font-family: var(--disp);
  font-stretch: 112%;
  font-weight: 550;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.3;
  max-width: 24em;
  text-wrap: balance;
}

/* sports as court-line table rows */
.sports { border-top: 1px solid var(--line); }
.sport-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
}
.sport-row .n { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.22em; color: var(--fg-muted); }
.sport-row h3 {
  font-family: var(--disp);
  font-stretch: 122%;
  font-weight: 640;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.sport-row p { grid-column: 2; color: var(--fg-muted); max-width: 40rem; margin-top: 6px; }
.sport-row .tag { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }

/* gallery — fixed 4:5, never stretched */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; }
.gallery figcaption { font: 600 0.6875rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); margin-top: var(--s3); }

/* benefit rows (membership, ink section) */
.benefits { border-top: 1px solid var(--line); }
.benefit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s2) var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.benefit strong { font-size: 1.0625rem; font-weight: 600; }
.benefit span { color: var(--fg-muted); font-size: 0.9375rem; }

/* season / avisos editorial cards */
.season { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); }

/* demo access band */
.demo-band { border: 1px solid var(--line); padding: var(--s5); }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); padding: var(--s7) 0 calc(var(--s6) + var(--safe)); }
body.app-mode .foot { display: none; }
.foot-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot .wordmark { height: 17px; width: 166px; color: var(--fg); }
.foot h4 { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 var(--s3); }
.foot p, .foot a { font-size: 0.9375rem; color: var(--fg-muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-legal { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.milo { text-decoration: none; }
.milo:hover { color: var(--fg); }

/* ── Views / portal ── */
.view { min-height: 60svh; }
.pad { padding-top: calc(60px + var(--s6)); padding-bottom: var(--s7); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); }
.page-head h1 {
  font-family: var(--disp);
  font-stretch: 122%;
  font-weight: 640;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.page-head p { color: var(--fg-muted); margin-top: 6px; }

/* greeting */
.hello h1 {
  font-family: var(--disp);
  font-stretch: 122%;
  font-weight: 640;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.hello .svc { color: var(--fg-muted); margin-top: var(--s2); }

/* Hoy rail */
.rail { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; }
.rail > * { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }

/* quick actions — court-line list */
.qa { border-top: 1px solid var(--line); }
.qa button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  text-align: left;
  padding: var(--s4) 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--fast);
}
.qa button:hover { padding-left: 6px; }
.qa strong {
  font-family: var(--disp);
  font-stretch: 118%;
  font-weight: 620;
  font-size: 1.25rem;
  text-transform: uppercase;
}
.qa em { display: block; font-style: normal; color: var(--fg-muted); font-size: 0.875rem; margin-top: 3px; }
.qa .arr { color: var(--accent); font-size: 1.1rem; }

/* date strip */
.datestrip { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: 2px; }
.datestrip button {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 56px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background var(--fast), border-color var(--fast);
}
.datestrip .dow { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.datestrip .dom { font-family: var(--disp); font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.datestrip button.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.datestrip button.on .dow { color: var(--bg); opacity: 0.75; }

/* slot grid */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.slot {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}
.slot strong { font-family: var(--disp); font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.slot span { font: 500 0.625rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.slot.on { background: var(--clay-fill); border-color: var(--clay-fill); color: var(--paper); }
.slot.on strong { color: var(--paper); }
.slot.on span { color: var(--paper); opacity: 0.8; }
.slot.busy { cursor: not-allowed; }
.slot.busy strong { color: var(--fg-muted); text-decoration: line-through; }

/* court code */
.qr {
  border: 1px dashed var(--line);
  padding: var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}
.qr b { font-family: var(--disp); font-stretch: 110%; font-size: 1.4rem; letter-spacing: 0.08em; }

/* membership card */
.mcard {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink-3);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}
.mcard .wordmark { height: 15px; width: 147px; color: var(--cream); }
.mcard .who { font-family: var(--disp); font-stretch: 118%; font-weight: 620; font-size: 1.4rem; text-transform: uppercase; }
.mcard .meta { display: flex; justify-content: space-between; gap: var(--s3); font: 600 0.6875rem/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); flex-wrap: wrap; }

/* ── Dock ── */
.dock[hidden] { display: none; }
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  height: calc(var(--dock-h) + var(--safe));
  padding-bottom: var(--safe);
  background: var(--ink);
  box-shadow: inset 0 1px 0 var(--ink-3);
  display: flex;
}
.dock button {
  flex: 1;
  background: none;
  border: 0;
  border-top: 2px solid transparent;
  color: var(--muted-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: 600 0.625rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--fast), border-color var(--fast);
}
.dock button svg { width: 22px; height: 22px; }
.dock button.on { color: var(--cream); border-top-color: var(--clay-bright); }
@media (min-width: 900px) {
  .dock { justify-content: center; }
  .dock button { flex: 0 0 130px; }
}

/* ── Login ── */
.login-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(68px + var(--s5)) 20px var(--s7);
}
.login-card { width: min(430px, 100%); }
.hint { font-size: 0.8125rem; color: var(--fg-muted); border: 1px dashed var(--line); padding: var(--s3) var(--s4); line-height: 1.7; }

/* ── Toasts ── */
.toasts {
  position: fixed;
  bottom: calc(var(--dock-h) + var(--safe) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  width: min(400px, calc(100vw - 32px));
}
.toast {
  background: var(--ink-2);
  color: var(--cream);
  border: 1px solid var(--ink-3);
  border-left: 3px solid var(--clay-bright);
  border-radius: 2px;
  padding: var(--s3) var(--s4);
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  animation: toast-in 250ms ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll reveal (marketing only) ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 450ms ease-out, transform 450ms ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (min-width: 720px) {
  .slots { grid-template-columns: repeat(5, 1fr); }
  .gallery { gap: var(--s4); }
  .hero { min-height: 88vh; }
}
@media (max-width: 480px) {
  .page-head { flex-direction: column; align-items: flex-start; }
  .sport-row { grid-template-columns: auto 1fr; }
  .sport-row .tag { grid-column: 2; justify-self: start; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}
