/* Cover 2 public website: the one stylesheet for every page in web/ (site pages and the account pages).
   "Broadcast night" system (owner-approved 2026-11-19, mockups in assets/source/web_redesign/):
   deep-pine colours shared with the in-match HUD (AGENTS.md 0C), TV broadcast graphics language
   (down-and-distance tags, lower thirds, a ticker), magazine rows with big real screenshots,
   telestrator strokes that draw in, and one chalkboard panel for play calling.
   Art comes from GIMP sources in assets/source/web_redesign/parts/ exported to /assets/art/.
   Fonts are self-hosted (CSP is 'self' only). No inline styles anywhere: pages use classes only. */

/* ---- Fonts (SIL OFL, licences in /assets/fonts/) ---- */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/BarlowCondensed-BoldItalic.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/BarlowCondensed-SemiBold.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Barlow-Regular.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/Barlow-Italic.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/Barlow-SemiBold.woff") format("woff"); }

/* ---- Tokens ---- */
:root {
  --bg: #0e2216;          /* page, deep pine */
  --bg-2: #12291c;        /* bands */
  --deep: #0a1a10;        /* ticker, header, footer */
  --card: #1a3a28;        /* cards, panels */
  --board: #173323;       /* chalkboard */
  --line: #29523b;        /* 1px rules and borders */
  --line-2: #2b5a40;      /* stronger borders, input outlines */
  --text: #e8f5ec;
  --text-2: #a8c9b4;
  --caption: #7fa58d;
  --chalk: #eef3ec;
  --green: #2c9455;       /* forest */
  --green-hi: #36a862;
  --green-text: #5cc489;  /* links on the dark background */
  --gold: #e4b85e;
  --gold-hi: #efc977;
  --ink: #071209;         /* text on gold or green */
  --danger: #f0988c;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", Arial, sans-serif;
  --font-mono: Consolas, "Courier New", monospace;
  --radius: 2px;
  --wrap: 1480px;
  --skew: 10px;            /* slant of tags and buttons */
  --header-h: 72px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;     /* slanted button plates may poke a few px past the edge; clip keeps the sticky header working */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); text-underline-offset: 3px; }
a:hover { color: var(--text); }
p { margin: 0 0 1rem; }
h1, h2 { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase;
  line-height: .95; margin: 0 0 .7rem; letter-spacing: .005em; text-wrap: balance; }
h3 { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase;
  line-height: 1; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.6rem, 7.5vw, 6.2rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
strong { font-weight: 600; }
code { font-family: var(--font-mono); font-size: .92em; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .05em .35em; word-break: break-all; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden], .hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--gold); color: var(--ink); padding: .6rem 1rem; z-index: 100; font-weight: 600; }
.skip-link:focus { top: .5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 48px; } }

/* Condensed uppercase voice: nav, labels, buttons, tags. */
.nav a, .btn, .tag, .kicker, .eyebrow, .env-badge, .news-badge, .field-label, .site-footer h2, .ticker-label,
.keys li, .ways th, .film figcaption, .check-list li, .drive li, .fig-cap, .more-link {
  font-family: var(--font-head); font-style: normal; font-weight: 600; text-transform: uppercase;
}

/* ---- Down-and-distance tag: slanted broadcast segments ---- */
.tag { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 1rem; padding: 0; list-style: none;
  font-size: 1rem; letter-spacing: .12em; line-height: 1; }
.tag > span { display: inline-block; padding: .5rem 1.05rem .45rem; background: var(--card); color: var(--text);
  clip-path: polygon(var(--skew) 0, 100% 0, calc(100% - var(--skew)) 100%, 0 100%); }
.tag > span:first-child { background: var(--gold); color: var(--ink); }
.tag > .t-line { background: var(--line); }
.tag > .t-forest { background: var(--green); color: var(--ink); }
.tag > .t-pine { background: var(--deep); }
.tag-sm { font-size: .85rem; margin: 0; }
.tag-sm > span { padding: .38rem .8rem .34rem; }
.kicker { display: block; color: var(--gold); letter-spacing: .18em; font-size: 1rem; margin: 0 0 .35rem; }
.eyebrow { display: block; color: var(--gold); letter-spacing: .18em; font-size: 1rem; margin: 0 0 .35rem; }

/* Yard-line rule (GIMP tile) used between header bands and sections. */
.yard-rule { height: 40px; background: url("/assets/art/yard-divider-tile.webp") left center / 230px 40px repeat-x; opacity: .9; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 26, 16, .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.2) blur(6px); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; min-height: var(--header-h); padding-top: .35rem; padding-bottom: .35rem; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 48px; width: auto; }
.env-badge { margin-left: .5rem; padding: .1rem .5rem; border: 1px solid var(--gold); color: var(--gold); font-size: .9rem; letter-spacing: .14em; line-height: 1.3; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .3rem; margin-left: auto; }
.nav a { position: relative; color: var(--text-2); text-decoration: none; padding: .5rem .65rem; font-size: 1.08rem; letter-spacing: .1em; }
.nav a::after { content: ""; position: absolute; left: .65rem; right: .65rem; bottom: -.15rem; height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(.5); background: var(--line-2); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }
.header-bug { display: none; }
@media (min-width: 1180px) { .header-bug { display: inline-flex; } }
.auth-slot { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--text-2); }
.auth-slot strong { color: var(--text); }
.auth-discord { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.auth-discord:hover, .auth-discord.is-linked { color: var(--text); }
.discord-banner { margin-bottom: 0; border-left-width: 0; border-width: 0 0 1px; }
.discord-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }

/* ---- Buttons: slanted plates (the plate is a skewed ::before, so borders stay on the slant) ---- */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .65rem 1.7rem; border: 0; background: none; color: var(--ink);
  font-size: 1.2rem; letter-spacing: .1em; text-decoration: none; cursor: pointer; line-height: 1; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-12deg);
  background: var(--gold); border: 2px solid var(--gold); transition: background .15s ease, border-color .15s ease; }
.btn:hover { color: var(--ink); }
.btn:hover::before { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-primary { color: var(--ink); }
.btn-forest::before { background: var(--green); border-color: var(--green); }
.btn-forest:hover::before { background: var(--green-hi); border-color: var(--green-hi); }
.btn-ghost, .btn-ghost:hover { color: var(--text); }
.btn-ghost::before { background: rgba(10, 26, 16, .35); border-color: var(--text-2); }
.btn-ghost:hover::before { background: rgba(232, 245, 236, .08); border-color: var(--text); }
.btn-small { min-height: 38px; padding: .35rem 1.05rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn:focus-visible { outline-offset: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; align-items: center; margin-left: 6px; }

/* ---- Telestrator: GIMP-drawn strokes placed in an SVG that is cover-fitted exactly like the photo under it.
   Each stroke is revealed by a mask rect that scales from 0 to 1 (draw-in). No motion when reduced motion is set. */
.tele { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.tele .wipe { transform-box: fill-box; transform-origin: left center; }
.tele .wipe-rtl { transform-origin: right center; }
@keyframes tele-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tele-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .tele .wipe { animation: tele-draw .85s cubic-bezier(.3, .7, .3, 1) both; animation-delay: .4s; }
  .tele .d1 { animation-delay: .9s; }
  .tele .d2 { animation-delay: 1.35s; }
  .tele .d3 { animation-delay: 1.6s; }
  .tele .pop { animation: tele-fade .3s ease-out both; animation-delay: 1.6s; }
  /* Below the fold the strokes wait until the section scrolls into view (site.js adds .is-live). */
  .js-tele .tele[data-tele-wait]:not(.is-live) .wipe { animation: none; transform: scaleX(0); }
  .js-tele .tele[data-tele-wait]:not(.is-live) .pop { animation: none; opacity: 0; }
}

/* ---- Hero: full-bleed daytime game from above, copy on the left ---- */
.hero { position: relative; overflow: hidden; background: var(--deep); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.88); }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 34, 22, .97) 0%, rgba(14, 34, 22, .88) 24%, rgba(14, 34, 22, .5) 41%, rgba(14, 34, 22, 0) 56%),
    linear-gradient(180deg, rgba(10, 26, 16, .85) 0%, rgba(10, 26, 16, 0) 18%, rgba(10, 26, 16, 0) 68%, var(--bg) 100%); }
.hero-media .tele { z-index: 1; }
.hero .wrap { position: relative; min-height: min(84vh, 860px); display: flex; flex-direction: column; justify-content: center; padding-top: 4rem; padding-bottom: 4.5rem; }
.hero-copy { max-width: 40rem; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 7rem); max-width: 12ch; margin-bottom: 1.4rem; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-pitch { font-size: clamp(1.1rem, 1.6vw, 1.4rem); color: var(--text-2); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-note { color: var(--caption); font-size: .95rem; margin: 1.1rem 0 0; }
@media (max-width: 760px) {
  .hero-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .hero-media > img { object-position: center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10, 26, 16, .55) 0%, rgba(10, 26, 16, 0) 30%, rgba(10, 26, 16, 0) 60%, var(--bg) 100%); }
  .hero { background: var(--bg); }
  .hero .wrap { min-height: 0; padding-top: 0; padding-bottom: 2.5rem; margin-top: -2.5rem; }
}

/* ---- Ticker: newest patch notes from /api/news ---- */
.ticker { position: relative; display: flex; align-items: stretch; background: var(--deep); border-top: 2px solid var(--gold); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-label { flex: 0 0 auto; display: flex; align-items: center; padding: .55rem 1.3rem .55rem 1rem; background: var(--gold); color: var(--ink);
  letter-spacing: .14em; font-size: .95rem; clip-path: polygon(0 0, 100% 0, calc(100% - var(--skew)) 100%, 0 100%); z-index: 1; text-decoration: none; }
.ticker-label:hover { color: var(--ink); background: var(--gold-hi); }
.ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2rem, #000 calc(100% - 3rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 2rem, #000 calc(100% - 3rem), transparent 100%); }
.ticker-track { display: flex; align-items: center; gap: 0; margin: 0; padding: 0 0 0 1.5rem; list-style: none; white-space: nowrap; }
.ticker-track li { display: flex; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .04em; }
.ticker-track li + li::before { content: "/"; color: var(--gold); padding: 0 1.4rem; }
.ticker-track a { color: var(--text); text-decoration: none; }
.ticker-track a:hover { color: var(--gold); }
.ticker-track .ticker-empty { color: var(--caption); }
@keyframes ticker-crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track.is-crawling { animation: ticker-crawl var(--crawl, 50s) linear infinite; }
  .ticker:hover .ticker-track.is-crawling, .ticker:focus-within .ticker-track.is-crawling { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .ticker-viewport { overflow-x: auto; } }

/* ---- Sections ---- */
main { flex: 1 0 auto; }
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-2); }
.section-deep { background: var(--deep); }
.section-fine { padding: 1.25rem 0; }
.section p, .section li, .section dd { max-width: 72ch; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lead { margin-bottom: 0; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--text-2); max-width: 46rem; }
.muted { color: var(--text-2); }
.small-print { color: var(--caption); font-size: .8rem; margin: 0; overflow-wrap: anywhere; }
.more-link { display: inline-block; color: var(--gold); letter-spacing: .14em; text-decoration: none; font-size: 1.05rem; }
.more-link::after { content: " \203A"; }
.more-link:hover { color: var(--gold-hi); }

/* Magazine rows: big screenshot with a lower-third tag, text column beside it. */
.feature-row { display: grid; gap: 2rem; align-items: center; }
.feature-row + .feature-row { margin-top: clamp(3rem, 7vw, 5.5rem); }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
  .feature-row.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature-row.reverse > .feature-media { order: 2; }
}
.feature-media { position: relative; margin: 0; }
.feature-media > img, .feature-media > button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 6px solid var(--gold); }
.feature-media .tag { position: absolute; left: 1rem; bottom: 1.4rem; margin: 0; }
.feature-text p { color: var(--text-2); font-size: 1.12rem; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.check-list li { padding: .7rem 0 .65rem 1.7rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; letter-spacing: .06em; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem; background: var(--gold);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }

/* Chalkboard panel (borrowed from the "chalk talk" direction) for play calling. */
.board { position: relative; background: url("/assets/art/board-grain-tile.webp") 0 0 / 256px repeat, var(--board);
  border: 1px solid var(--line-2); box-shadow: inset 0 0 80px rgba(0, 0, 0, .35); padding: clamp(1rem, 3vw, 2rem); }
.board-diagram { width: 100%; height: auto; }
.board .fig-cap { margin: .9rem 0 0; }
.board-shot { margin: 1.25rem 0 0; }
.board-shot img { width: 100%; border: 1px solid var(--line-2); }
.fig-cap { color: var(--caption); font-size: .95rem; letter-spacing: .08em; }
.fig-cap b { color: var(--gold); font-weight: 600; margin-right: .6rem; }
.pull-quote { margin: 2rem 0 0; padding: .2rem 0 .2rem 1.4rem; border-left: 6px solid var(--gold);
  font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--gold); max-width: 22ch; }
.feature-text .pull-quote p, .pull-quote p { margin: 0; max-width: none; font-size: inherit; color: inherit; }

/* Full-bleed screenshot with the copy on the right (under center). */
.bleed { position: relative; overflow: hidden; background: var(--deep); isolation: isolate; }
.bleed-media { position: absolute; inset: 0; z-index: -1; }
.bleed-media > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: saturate(.9); }
.bleed-media::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(14, 34, 22, 0) 42%, rgba(14, 34, 22, .82) 60%, rgba(14, 34, 22, .95) 70%),
    linear-gradient(180deg, var(--bg) 0%, rgba(14, 34, 22, 0) 14%, rgba(14, 34, 22, 0) 84%, var(--deep) 100%); }
.bleed .wrap { min-height: min(80vh, 760px); display: flex; align-items: center; justify-content: flex-end; padding-top: 4rem; padding-bottom: 4rem; }
.bleed-copy { width: min(100%, 31rem); }
.bleed-copy p { color: var(--text-2); font-size: 1.12rem; }
@media (max-width: 760px) {
  .bleed-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .bleed-media::after { background: linear-gradient(180deg, rgba(14, 34, 22, 0) 60%, var(--deep) 100%); }
  .bleed .wrap { min-height: 0; padding-top: 1.5rem; padding-bottom: 3rem; }
}
.keys { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.keys li { display: inline-flex; align-items: baseline; gap: .55rem; padding: .4rem .75rem .35rem; border: 2px solid var(--line-2); background: rgba(10, 26, 16, .7);
  font-size: .95rem; letter-spacing: .1em; color: var(--text-2); }
.keys kbd { font-family: inherit; color: var(--text); }

/* Ways to play: a standings table, not cards. */
.ways-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .ways-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 4rem; } }
.ways { width: 100%; border-collapse: collapse; }
.ways th { text-align: left; background: var(--card); color: var(--text-2); letter-spacing: .16em; font-size: .9rem; padding: .7rem 1rem; }
.ways td { padding: 1rem; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.ways td:first-child { font-family: var(--font-head); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.6rem; color: var(--text); line-height: 1; white-space: nowrap; }
.ways tr.counts td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.ways tr.counts td:last-child { color: var(--gold); font-weight: 600; }
@media (max-width: 560px) {
  .ways thead { display: none; }
  .ways tr { display: grid; grid-template-columns: 1fr; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .ways td { border: 0; padding: .1rem .9rem; }
  .ways td:first-child { padding-top: .3rem; }
}
.uniform-card { margin: 0; }
.uniform-card img { width: 100%; border: 1px solid var(--line-2); }
.uniform-card h3 { margin-top: 1.2rem; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.uniform-card p { color: var(--text-2); }

/* Game film: screenshot strip, one taped like a photo on the board. */
.film { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.film figure { margin: 0; position: relative; }
.film button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.film button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.film img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; background: var(--deep);
  box-shadow: inset 4px 0 0 var(--gold); letter-spacing: .12em; font-size: .95rem; }
.film .taped { transform: rotate(-1.6deg); }
.film .taped img { border: 6px solid var(--chalk); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.film .taped figcaption { background: none; box-shadow: none; color: var(--caption); padding-left: 0; }
.film .taped::before, .film .taped::after { content: ""; position: absolute; top: -12px; width: 76px; height: 27px; z-index: 1;
  background: url("/assets/art/tape-strip.webp") center / contain no-repeat; }
.film .taped::before { left: -14px; transform: rotate(-12deg); }
.film .taped::after { right: -14px; transform: rotate(10deg); }

/* Discord band over the stadium lights. */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(90deg, rgba(10, 26, 16, .96) 0%, rgba(10, 26, 16, .78) 55%, rgba(10, 26, 16, .5) 100%), url("/assets/banner_stadium.png") center 30% / cover no-repeat, var(--deep); }
.cta-band .wrap { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band p { color: var(--text-2); font-size: 1.15rem; max-width: 46rem; margin: 0; }

/* ---- Page title band for inner pages ---- */
.page-title { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(90deg, rgba(14, 34, 22, .97) 0%, rgba(14, 34, 22, .88) 45%, rgba(14, 34, 22, .55) 100%),
    linear-gradient(180deg, rgba(14, 34, 22, 0) 50%, var(--bg) 100%),
    url("/assets/banner_stadium.png") center 35% / cover no-repeat, var(--bg-2); }
.page-title h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); margin-bottom: .6rem; }
.page-title p { margin: 0; color: var(--text-2); max-width: 46rem; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.page-title.photo-lockers, .page-title.photo-trenches {
  background: linear-gradient(90deg, rgba(14, 34, 22, .97) 0%, rgba(14, 34, 22, .88) 50%, rgba(14, 34, 22, .5) 100%),
    linear-gradient(180deg, rgba(14, 34, 22, 0) 45%, var(--bg) 100%),
    url("/assets/media/game-first-down.jpg") center 40% / cover no-repeat, var(--bg-2); }

/* ---- Grids, cards, callouts ---- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 0; padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.card-gold { border-top-color: var(--gold); }
.card h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.card p:last-child { margin-bottom: 0; }
.card.narrow { max-width: 44rem; }
.card .tag { margin-bottom: .8rem; }
.callout { border-left: 6px solid var(--gold); background: var(--bg-2); padding: 1rem 1.25rem; }
.callout strong { color: var(--gold); }

/* ---- Screenshots (media page) and lightbox ---- */
.shots { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.shot { margin: 0; background: var(--deep); overflow: hidden; }
.shot button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.shot button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.shot button:hover img { transform: scale(1.025); }
.shot figcaption { padding: .75rem 1rem; font-size: .97rem; color: var(--text-2); box-shadow: inset 4px 0 0 var(--gold); }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot button:hover img { transform: none; } }
dialog.lightbox { width: min(1200px, 96vw); max-height: 94vh; padding: 0; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); }
dialog.lightbox::backdrop { background: rgba(4, 10, 6, .9); }
.lightbox-body { display: grid; gap: .5rem; padding: .75rem; }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; background: #000; }
.lightbox-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.lightbox-caption { margin: 0; color: var(--text-2); font-size: .95rem; flex: 1 1 14rem; }
.lightbox-controls { display: flex; gap: .9rem; padding-right: 6px; }

/* ---- News ---- */
.news-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news-card { display: grid; gap: .35rem; padding: 1.25rem 1.25rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
  box-shadow: inset 0 0 0 transparent; transition: background .15s ease, box-shadow .15s ease; }
.news-card:hover { background: var(--card); box-shadow: inset 5px 0 0 var(--gold); color: var(--text); }
.news-card h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.news-meta { font-size: .92rem; color: var(--caption); display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; font-variant-numeric: tabular-nums; }
.news-badge { display: inline-block; letter-spacing: .14em; color: var(--ink); background: var(--gold); padding: .2rem .7rem .15rem; font-size: .85rem;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.news-summary { margin: 0; color: var(--text-2); }
.article { max-width: 48rem; }
.article h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-top: .6rem; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.article li { margin-bottom: .35rem; }
.article-figure { margin: 1.25rem 0; }
.article-figure button { all: unset; display: block; cursor: zoom-in; }
.article-figure button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.article-figure img { border: 1px solid var(--line-2); width: 100%; }
.article-figure figcaption { color: var(--caption); font-size: .92rem; margin-top: .4rem; }
.back-link { display: inline-block; margin-bottom: 1rem; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
.back-link::before { content: "\2039  "; }
.state-msg { padding: 1.25rem; border: 1px dashed var(--line-2); color: var(--text-2); }

/* ---- Download ---- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0 1.25rem; margin: 0 0 1.5rem; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.facts dt, .facts dd { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--text-2); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.facts dd { margin: 0; word-break: break-word; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: .2rem 0 .8rem 3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-style: italic; font-size: 1.25rem;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* ---- FAQ ---- */
.faq { max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.15rem 3rem 1.15rem 0; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.3rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 1.8rem; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { color: var(--gold); }
.faq summary:hover { color: var(--green-text); }
.faq .answer { padding: 0 0 1.25rem; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---- Footer ---- */
.site-footer { border-top: 3px solid var(--green); background: var(--deep); padding: 3rem 0 2rem; font-size: .97rem; color: var(--text-2); }
.site-footer .wrap { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand img { height: 64px; width: auto; margin-bottom: .8rem; }
.footer-brand p { color: var(--caption); max-width: 22rem; }
.site-footer h2 { font-size: 1rem; color: var(--gold); letter-spacing: .16em; margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; margin: .5rem 0 0; color: var(--caption); font-size: .9rem; }

/* ---- Alpha access ---- */
.drive { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 0 2.5rem; padding: 0;
  background: repeating-linear-gradient(90deg, rgba(43, 90, 64, .9) 0 2px, transparent 2px 10%), #163a26; border: 1px solid var(--line-2); }
.drive::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--drive, 0%); background: rgba(44, 148, 85, .28); border-right: 3px solid var(--green); transition: width .6s ease; }
.drive li { position: relative; padding: .9rem 1rem .8rem 3rem; letter-spacing: .12em; font-size: 1.05rem; color: var(--text-2); }
.drive li::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 2px solid var(--text-2); background: var(--deep); }
.drive li small { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .85rem; color: var(--caption); }
.drive li.is-done { color: var(--text); }
.drive li.is-done::before { background: var(--green); border-color: var(--green); }
.drive li.is-current { color: var(--text); }
.drive li.is-current::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(228, 184, 94, .25); }
.drive li.is-current small { color: var(--gold); }
@media (max-width: 760px) { .drive { grid-template-columns: 1fr 1fr; } .drive::before { display: none; } }
.alpha-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1000px) { .alpha-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---- Notices, forms ---- */
.notice, .alert { padding: .9rem 1.1rem; border: 1px solid var(--line-2); border-left-width: 5px; background: var(--card); margin-bottom: 1.25rem; }
.notice-success, .alert-success { border-left-color: var(--green); }
.notice-warning, .alert-warning { border-left-color: var(--gold); }
.notice-danger, .alert-danger, .alert-error { border-color: var(--danger); color: var(--danger); }
.apply-form { max-width: 64rem; margin-top: 1.5rem; }
.field-group { margin-bottom: 1.15rem; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field-label { display: block; color: var(--text-2); font-size: .98rem; letter-spacing: .12em; margin-bottom: .35rem; }
.field { width: 100%; min-height: 48px; padding: .65rem .8rem; background: var(--deep); color: var(--text); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 0; font: inherit; font-size: 1rem; }
.field:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field[aria-invalid="true"] { border-color: var(--danger); }
select.field { appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background: linear-gradient(45deg, transparent 50%, var(--text-2) 50%) right 1.15rem center / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--text-2) 50%) right .8rem center / 6px 6px no-repeat, var(--deep); }
textarea.field { resize: vertical; }
.field-hint { color: var(--caption); font-size: .85rem; margin: .3rem 0 0; }
.field-error { color: var(--danger); font-size: .92rem; margin: .3rem 0 0; }
#form-code .btn { margin-top: 1rem; margin-left: 6px; }

/* Account pages (log in, create account, confirm email, set password): one card over the stadium, no site menu. */
.auth-page { justify-content: center; padding: 2rem 16px;
  background: linear-gradient(180deg, rgba(10, 26, 16, .82), rgba(10, 26, 16, .96)), url("/assets/media/game-hero.jpg") center / cover no-repeat fixed, var(--bg); }
.auth-card { flex: 0 0 auto; width: 100%; max-width: 31rem; margin: 0 auto; background: rgba(18, 41, 28, .96); border: 1px solid var(--line); border-top: 5px solid var(--gold); padding: 2rem 1.75rem; }
.auth-logo { display: block; width: max-content; margin: 0 auto 1.2rem; }
.auth-logo img { height: 64px; width: auto; }
.auth-card h1 { font-size: clamp(2.4rem, 8vw, 3.2rem); text-align: center; margin-bottom: .5rem; }
.auth-desc { color: var(--text-2); text-align: center; }
.auth-card .btn-block { margin-top: .4rem; }
.auth-links { margin: 1.4rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: .4rem; text-align: center; font-size: .97rem; }
.auth-steps { margin: 0 0 1.1rem; padding-left: 1.3rem; color: var(--text-2); font-size: .95rem; }
.auth-steps li { margin: .2rem 0; }
.auth-note { margin: 1.1rem 0 0; color: var(--caption); font-size: .9rem; text-align: center; }
.auth-footer { text-align: center; color: var(--caption); font-size: .82rem; margin: 1.25rem 0 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Phones ---- */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { font-size: 1rem; }
  .site-header .wrap { gap: .1rem .75rem; }
  .brand img { height: 40px; }
  .nav { margin-left: 0; width: 100%; order: 3; gap: 0; }
  .nav a { padding: .35rem .45rem; font-size: .98rem; letter-spacing: .06em; }
  .auth-slot { margin-left: auto; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
  .auth-name { display: none; }
  .site-header { position: relative; }
  .btn { min-height: 48px; padding: .6rem 1.3rem; font-size: 1.1rem; }
  .tag { font-size: .88rem; }
  .auth-card { padding: 1.6rem 1.1rem; }
  .auth-page { background-attachment: scroll; }
}

/* ---- Standings (public leaderboard, web/standings.html) ---- */
.standings-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.standings-tools label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); }
.standings-tools select { background: var(--card); color: var(--text); border: 1px solid var(--line-2); padding: .5rem .8rem; font: inherit; min-height: 40px; }
.standings-note { margin: 0; color: var(--caption); font-size: .92rem; flex: 1 1 18rem; }
.standings-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings th { text-align: left; background: var(--card); color: var(--text-2); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; padding: 0; white-space: nowrap; }
.standings th button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .75rem .9rem; cursor: pointer; }
.standings th button:hover, .standings th button:focus-visible { color: var(--gold); outline: none; }
.standings th[aria-sort="ascending"] button::after { content: " \25B2"; font-size: .7em; }
.standings th[aria-sort="descending"] button::after { content: " \25BC"; font-size: .7em; }
.standings td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.standings .team-link { all: unset; cursor: pointer; font: inherit; color: var(--text); font-weight: 600; }
.standings .team-link:hover, .standings .team-link:focus-visible { color: var(--gold); text-decoration: underline; outline: none; }
.team-modal { position: fixed; inset: 0; background: rgba(5, 14, 9, .78); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 200; }
.team-modal[hidden] { display: none; }
.team-dialog { position: relative; background: var(--card); border: 1px solid var(--line-2); color: var(--text); width: min(640px, 100%); max-height: 90vh; overflow-y: auto; padding: 1.5rem; }
.team-close { position: absolute; top: .6rem; right: .6rem; background: transparent; color: var(--text-2); border: 1px solid var(--line-2); padding: .4rem .8rem; cursor: pointer; font: inherit; min-height: 40px; }
.team-close:hover, .team-close:focus-visible { color: var(--gold); border-color: var(--gold); outline: none; }
.team-dialog h2 { margin: 0; font-size: 1.8rem; }
.team-dialog h3 { margin: 1.25rem 0 .5rem; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; color: var(--text-2); }
.tp-head { display: flex; gap: 1rem; align-items: center; margin: 0 4.5rem 1rem 0; }
.tp-head img.team-logo { width: 72px; height: 72px; flex: none; border-radius: 50%; background: #e8f5ec; padding: 4px; box-sizing: border-box; object-fit: contain; }
.tp-sub { margin: .2rem 0 0; color: var(--text-2); font-size: .95rem; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.tp-stat { background: rgba(0, 0, 0, .2); border: 1px solid var(--line); padding: .6rem .8rem; }
.tp-val { display: block; font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.tp-label { display: block; color: var(--text-2); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.tp-list { margin: 0; padding-left: 1.2rem; color: var(--text-2); }
.tp-history { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tp-history th, .tp-history td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--line); color: var(--text-2); }
body.modal-open { overflow: hidden; }
.standings td.rank { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--text); width: 4rem; }
.standings tr.top3 td.rank { color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.standings td.team { color: var(--text); font-weight: 600; }
.standings td.num { text-align: center; }
.standings th[data-sort="mega"], .standings th[data-sort="playoff"], .standings th[data-sort="record"], .standings th[data-sort="level"] { text-align: center; }
.standings th[data-sort="mega"] button, .standings th[data-sort="playoff"] button, .standings th[data-sort="record"] button, .standings th[data-sort="level"] button { text-align: center; }
.standings td.mega { color: var(--gold); font-weight: 700; }
.standings .logo-col { width: 3.5rem; min-width: 3.25rem; }
.standings img.team-logo { display: block; width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: #e8f5ec; padding: 2px; box-sizing: border-box; min-width: 44px; }
.standings .class-name { display: block; color: var(--caption); font-size: .85rem; font-weight: 400; }
@media (max-width: 640px) {
  .standings th, .standings td { padding-left: .5rem; padding-right: .5rem; }
  .standings th[data-sort="coach"], .standings td.coach, .standings th[data-sort="level"], .standings td.level { display: none; }
  .standings td.rank { font-size: 1.2rem; width: 2.5rem; }
}
