@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600&display=swap");

:root {
  --navy: #0d1b33;
  --navy-2: #163056;
  --maroon: #4c1421;
  --foam: #f4f1ea;
  --ink: #122033;
  --muted: #5b6573;
  --line: #d5d0c6;
  --card: #fffdf8;
  --wave: #2b6ea8;
  --rope: #c4a574;
  --ok: #1f6b4a;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Barlow, ui-sans-serif, system-ui, sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--foam);
}
html:has(body.gate),
body.gate,
.gate {
  background: #0a0a0c;
}
body {
  font-family: var(--body);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
}
img { max-width: 100%; height: auto; }
a { color: var(--wave); }
a, button, .slot, .pick { cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--rope);
  outline-offset: 3px;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: 2rem; margin: 0 0 var(--space-1); }
h2 { font-size: 1.45rem; margin: var(--space-4) 0 var(--space-1); }
h3 { font-size: 1.15rem; margin: var(--space-3) 0 var(--space-1); }
p { margin: 0 0 12px; }
.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: max(var(--space-2), env(safe-area-inset-top)) max(var(--space-2), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(var(--space-2), env(safe-area-inset-left));
}
.kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.lead { font-size: 1.15rem; }
.muted { color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--space-2);
  margin: 12px 0;
}
.say {
  border-left: 4px solid var(--maroon);
  padding: 12px var(--space-2);
  margin: 12px 0;
  background: var(--card);
}
.say strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.how {
  margin: -4px 0 16px;
  color: var(--ink);
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--space-3);
}
header.top img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
}
nav.tabs {
  display: flex;
  gap: var(--space-1);
}
nav.tabs a {
  text-decoration: none;
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 180ms ease, color 180ms ease;
}
nav.tabs a:hover { background: #efe8dc; }
nav.tabs a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 28px;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background:
    linear-gradient(180deg, #0a0a0c 0%, #0a0a0c 62%, #4c1421 160%);
}
.gate-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 28rem);
}
.gate-crests {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.gate-bar .club {
  width: 40px;
  height: auto;
  display: block;
}
.gate-bar .team {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f7f3ea;
  display: block;
  object-fit: cover;
}
.gate-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gate-club {
  margin: 0;
  color: #f5f5f4;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.gate-team {
  margin: 0;
  color: rgba(245, 245, 244, 0.72);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gate a.hero {
  display: block;
  width: min(100%, 28rem);
  text-decoration: none;
  color: inherit;
  padding-bottom: 12px;
}
/* On dark gate, never use maroon for small type — too low contrast */
body.gate .eyebrow {
  margin: 0 0 12px;
  color: #e7e5e4;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  color: #f5f5f4;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.4rem, 22vw, 7.2rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
}
.hero-title span { display: block; }
.hero-lockup {
  margin: 20px 0 0;
  color: rgba(245, 245, 244, 0.7);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
}
.hero-lockup span { display: block; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 28px;
  border-radius: 4px;
  background: var(--maroon);
  color: #fff;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.gate a.hero:hover .cta { background: #6b1c2c; }

.hero.band {
  background: #0a0a0c;
  color: #f5f5f4;
  border-radius: 4px;
  border-left: 4px solid var(--maroon);
  padding: 20px 18px 22px;
  margin: 0 0 var(--space-3);
}
.hero.band .hero-title {
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  line-height: 0.85;
}
.hero.band .hero-lockup {
  color: rgba(245, 245, 244, 0.68);
  font-size: 1rem;
}
header.top img.crest {
  width: auto;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.post-list a.post {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  margin: 0 0 12px;
  min-height: 44px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.post-list a.post:hover { border-color: var(--rope); }
.post-list a.post h2 { margin: 0 0 6px; font-size: 1.25rem; }
.post-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pitch {
  background: #163056;
  color: #fff;
  border-radius: 16px;
  padding: 14px 10px 18px;
  margin: 12px 0 18px;
}
.pitch .row {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}
.pitch .row.back { grid-template-columns: 1fr 1fr 1fr; }
.pitch .row.gk { grid-template-columns: 1fr; max-width: 40%; margin-left: auto; margin-right: auto; }
/* 1-3-2-3 */
.pitch.f-1323 .row.fwd { grid-template-columns: 1fr 1fr 1fr; }
.pitch.f-1323 .row.mid { grid-template-columns: 1fr 1fr; max-width: 70%; margin-left: auto; margin-right: auto; }
/* 1-3-3-2 */
.pitch.f-1332 .row.fwd { grid-template-columns: 1fr 1fr; max-width: 70%; margin-left: auto; margin-right: auto; }
.pitch.f-1332 .row.mid { grid-template-columns: 1fr 1fr 1fr; }
.formation-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.formation-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.formation-btn.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.slot {
  appearance: none;
  border: 1px dashed #8eb0d6;
  background: #0d1b33;
  color: #fff;
  border-radius: 12px;
  min-height: 84px;
  padding: 8px 6px;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}
.slot.has {
  border-style: solid;
  background: #1d3f6e;
}
.slot.is-over,
.pool.is-over {
  border-color: #f4f1ea;
  box-shadow: 0 0 0 2px rgba(244, 241, 234, 0.35);
}
.slot .pos { display: block; font-size: 0.75rem; color: #b9c9dc; }
.slot .who { display: block; font-weight: 650; color: #b9c9dc; }

.board { margin: 12px 0 24px; }
.pool-wrap { margin-top: 14px; }
.pool-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.pool {
  min-height: 72px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #efe8dc;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.pool-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.chip {
  appearance: none;
  border: 1px solid #8eb0d6;
  background: #f7f3ea;
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 6px 12px 6px 6px;
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  touch-action: none;
  user-select: none;
  cursor: grab;
  max-width: 100%;
}
.chip--placed {
  width: 100%;
  justify-content: flex-start;
  background: #f4f1ea;
  border-color: transparent;
  padding-right: 8px;
}
.chip.is-dragging { opacity: 0.35; }
.chip-face, .chip-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
  background: #d5d0c6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  pointer-events: none;
  margin: 0;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  opacity: 0.95;
}
body.is-chip-dragging { cursor: grabbing; }
body.is-chip-dragging * { cursor: grabbing !important; }
.face-pos {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.face-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.face {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 10px;
  text-align: center;
}
.face img, .face .ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #e6e0d4;
  display: block;
}
.face .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 650;
  font-size: 1.6rem;
}
.face h3 { margin: 8px 0 4px; }
.face select, .field input, .field button, .dialog button, .dialog input {
  width: 100%;
  min-height: 44px;
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 10px;
}
.field { margin: 10px 0; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field button, .dialog .go {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.face .ghost {
  margin-top: 8px;
  background: transparent;
  color: var(--muted);
}
.bench { margin-top: 8px; color: #d7e2f0; font-size: 0.95rem; }

.dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  width: min(92vw, 28rem);
  background: var(--card);
}
.dialog::backdrop { background: rgba(13, 27, 51, 0.55); }
.pick {
  width: 100%;
  text-align: left;
  margin: 6px 0;
  background: var(--foam);
}

.clock td, .clock th { text-align: left; padding: 6px 8px 6px 0; vertical-align: top; }
table.clock { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
table.clock tr + tr td { border-top: 1px solid var(--line); }

body.field {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body.field .wrap {
  max-width: 430px;
  padding-bottom: max(96px, env(safe-area-inset-bottom));
}
body.field h1 { font-size: 1.7rem; }
nav.jump {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--foam);
  margin: 0 -16px 16px;
  padding: 8px 16px 10px;
}
nav.jump a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
ol.clock {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
ol.clock li { border-bottom: 1px solid var(--line); }
ol.clock a {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}
ol.clock time {
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.block { padding-top: 8px; scroll-margin-top: 64px; }

figure.diagram { margin: 12px 0; }
figure.diagram svg { display: block; width: 100%; height: auto; }
figure.diagram figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 16px; font-size: 0.95rem; margin: 8px 0 16px; }
.swatch { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

@media (min-width: 720px) {
  .face-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  nav.tabs a,
  .post-list a.post { transition: none; }
}


/* Press Trigger soccer mark — red pressers closing white targets */
.press-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 28px);
  flex-wrap: wrap;
  margin: 0;
}
.press-lock .hero-title {
  text-align: left;
}
.press-mark {
  flex: 0 0 auto;
  width: clamp(88px, 22vw, 132px);
  height: auto;
  display: block;
}
.press-lock--band .press-mark {
  width: clamp(64px, 16vw, 96px);
}
.press-caption {
  margin: 14px 0 0;
  color: #a8a29e;
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.hero.band .press-caption {
  text-align: left;
  margin-top: 10px;
}
@media (max-width: 420px) {
  /* Keep mark beside title — never stack (stacking stretched the SVG) */
  .press-lock {
    flex-direction: row;
    flex-wrap: nowrap;
  }
}


/* Gate lockup: one calm coaching line, not stacked slogans */
body.gate .hero-lockup {
  margin: 18px 0 0;
  max-width: 22rem;
  color: #e7e5e4;
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
body.gate .hero-lockup span { display: inline; }
body.gate .press-lock {
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
body.gate .press-lock .hero-title {
  text-align: left;
}
body.gate .press-caption { display: none; }
.hero.band .hero-lockup {
  margin-top: 12px;
  color: rgba(245, 245, 244, 0.85);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}
.hero.band .hero-lockup span { display: inline; }
.hero.band .press-lock {
  justify-content: flex-start;
}


/* sport9: gate packs from the top — never center or space-between */
html:has(body.gate),
body.gate {
  min-height: 100%;
  min-height: 100dvh;
}
body.gate {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 28px;
  padding: max(24px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}
body.gate .gate-bar {
  margin: 0;
  width: min(100%, 22rem);
  flex: 0 0 auto;
}
body.gate a.hero {
  margin: 0;
  padding-bottom: 0;
  width: min(100%, 22rem);
  flex: 0 0 auto;
}
body.gate .press-lock {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 4px;
}
body.gate .press-mark {
  flex: 0 0 72px;
  width: 72px;
  height: 60px;
  max-width: 72px;
  max-height: 60px;
  display: block;
}
body.gate .hero-title {
  font-size: clamp(2.8rem, 14vw, 4.5rem);
  line-height: 0.85;
  text-align: left;
}
body.gate .hero-lockup {
  margin: 20px 0 0;
  max-width: 22rem;
}
body.gate .cta {
  margin-top: 28px;
}
@media (max-width: 420px) {
  body.gate {
    gap: 24px;
    padding-top: max(20px, env(safe-area-inset-top));
  }
}


/* sport10: roster pool drag chips */

.chip-x {
  margin-left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  flex: 0 0 auto;
}
.chip-x:hover { color: var(--maroon); background: rgba(76, 20, 33, 0.08); }

/* sport14: formation switch 1323/1332 */


/* sport17: mowed-stripe pitch behind the front page and roster page only
   (body.pitch-bg). Edge to edge, no tiling, no page-wide wash. Text sits on
   its own panels so the field stays visible. Replaces the sport16 block. */
html:has(body.pitch-bg) {
  background: #5a9a32;
}
body.pitch-bg,
body.gate.pitch-bg {
  background-color: #5a9a32;
  background-image: url("/img/pitch-mobile.svg?v=sport17");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
}
@media (min-width: 800px) {
  body.pitch-bg,
  body.gate.pitch-bg {
    background-image: url("/img/pitch-desktop.svg?v=sport17");
  }
}
body.pitch-bg .wrap { background: transparent; }

/* Front page: keep the light type, give the crest bar and hero their own dark panels */
body.gate.pitch-bg .gate-bar,
body.gate.pitch-bg a.hero {
  background: rgba(10, 10, 12, 0.78);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
body.gate.pitch-bg a.hero { padding-bottom: 20px; }

/* Roster page: intro and bench pool get card panels */
body.pitch-bg .intro.card { margin: 0 0 var(--space-2); }
body.pitch-bg .intro.card h1 { margin-top: 0; }
body.pitch-bg .intro.card p:last-child { margin-bottom: 0; }
body.pitch-bg .pool-wrap {
  background: rgba(255, 253, 248, 0.94);
  border-radius: 16px;
  padding: 10px 12px 12px;
}

/* sport24: 4-3-1 diamond — 9 on top, two 10s wide, 6 at the base */
.pitch.f-431 .row.fwd { grid-template-columns: 1fr; max-width: 30%; margin-left: auto; margin-right: auto; }
.pitch.f-431 .row.am { grid-template-columns: 1fr 1fr; max-width: 72%; margin-left: auto; margin-right: auto; }
.pitch.f-431 .row.mid { grid-template-columns: 1fr; max-width: 30%; margin-left: auto; margin-right: auto; }
.pitch.f-431 .row.back { grid-template-columns: 1fr 1fr 1fr 1fr; }


/* sport20: home stage — press lock and staff share the field, not a left pile */
body.gate.pitch-bg {
  justify-content: center;
  align-items: center;
}
.gate-stage {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 18px 22px;
  align-items: stretch;
}
.gate-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
body.gate .gate-stage .gate-bar,
body.gate .gate-stage a.hero {
  width: auto;
  max-width: none;
}
.staff-card {
  background: rgba(10, 10, 12, 0.78);
  color: #f5f5f4;
  border-radius: 8px;
  padding: 18px 18px 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.staff-card h2 {
  margin: 0 0 4px;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e7e5e4;
}
.staff-card dl { margin: 0; }
.staff-row {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.staff-row dt,
.staff-row dd { margin: 0; }
.staff-row dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 244, 0.68);
}
.staff-row dd {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.heja-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--maroon);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.heja-link:hover { background: #6b1c2c; }
@media (max-width: 799px) {
  body.gate.pitch-bg {
    justify-content: flex-start;
    align-items: stretch;
  }
  .gate-stage {
    grid-template-columns: 1fr;
    width: min(100%, 28rem);
  }
}


/* sport21: schedule tab, poster centered on the pitch with a buffer */
nav.tabs { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 420px) {
  nav.tabs a { padding: 8px 10px; font-size: 0.88rem; }
}
body.schedule-page { min-height: 100dvh; }
.sched-frame {
  box-sizing: border-box;
  width: min(920px, calc(100% - 28px));
  margin: 14px auto 22px;
}
@media (min-width: 800px) {
  .sched-frame {
    width: min(920px, calc(100% - 112px));
    margin: 36px auto 48px;
  }
}
.sched-frame header.top { margin-bottom: 14px; }
.sched-frame header.top img.crest {
  width: auto;
  height: 48px;
  border-radius: 0;
  background: transparent;
}
.sched {
  background: #f6f1e6;
  color: #3d1220;
  border-radius: 22px;
  padding: 14px 12px 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.sched-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #6d2033;
  color: #fffdf8;
  border-radius: 18px;
  padding: 14px 16px 16px;
}
.sched-banner img {
  width: 78px;
  height: auto;
  flex: 0 0 auto;
  display: block;
}
.sched-brand { min-width: 0; }
.sched-org {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sched-team {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.sched-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: #fffdf8;
  color: #3d1220;
  border-radius: 999px;
  padding: 5px 12px 5px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.sched-pill em {
  font-family: Georgia, "Palatino Linotype", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.sched-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a6258;
}
.sched-key { display: flex; gap: 14px; letter-spacing: 0.08em; }
.dot {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: -1px;
  background: #6d2033;
}
.dot.open {
  background: transparent;
  box-shadow: inset 0 0 0 2px #6d2033;
}
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.game {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 10px 12px;
  min-height: 76px;
}
.game.home { background: #6d2033; color: #fffdf8; }
.game.away { background: #fffdf8; color: #3d1220; box-shadow: inset 0 0 0 2px #6d2033; }
.when {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.game.home .when { background: #fffdf8; color: #6d2033; }
.game.away .when { background: #6d2033; color: #fffdf8; }
.when span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.when strong {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
}
.opp {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.place {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
}
.ha {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.game.home .ha { background: #fffdf8; color: #3d1220; }
.game.away .ha { background: #f3d5dc; color: #6d2033; }
.sched-foot { text-align: center; margin: 22px 8px 4px; }
.sched-foot h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: 0.01em;
  color: #6d2033;
  line-height: 0.9;
}
.sched-foot p {
  margin: 8px 0 0;
  color: #4a433c;
  font-size: 0.92rem;
}
@media (max-width: 560px) {
  .sched-banner { align-items: flex-start; }
  .sched-banner img { width: 64px; }
  .game { grid-template-columns: auto minmax(0, 1fr); }
  .ha { grid-column: 2; justify-self: start; }
  .when { width: 56px; height: 56px; }
  .when strong { font-size: 1.45rem; }
}


/* sport23: bigger lineup map, a sub slot under every position */
body.roster-page .wrap {
  max-width: min(1120px, calc(100% - 20px));
}
@media (min-width: 800px) {
  body.roster-page .wrap {
    max-width: min(1180px, calc(100% - 72px));
  }
  body.roster-page .pitch {
    padding: 26px 20px 30px;
  }
  body.roster-page .slot:not(.slot--sub) {
    min-height: 124px;
  }
}
body.roster-page .pitch .row { gap: 12px; margin: 12px 0; }
body.roster-page .slot:not(.slot--sub) { min-height: 100px; }
.pos-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.slot--sub {
  min-height: 44px;
  padding: 4px 6px;
  gap: 2px;
  border-radius: 10px;
  background: #091426;
}
.slot--sub.has { background: #163056; }
.slot--sub .pos {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.slot--sub .who { font-size: 0.78rem; font-weight: 600; }
.slot--sub .chip,
.chip--sub {
  min-height: 28px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 650;
}

/* sport25: keeper stays centered after the roster row margin */
body.roster-page .pitch .row.gk,
.pitch .row.gk {
  grid-template-columns: 1fr;
  width: min(16rem, 46%);
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
}
