:root {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #b7c0cc;
  --paper: #070b12;
  --card: #121a26;
  --line: #243044;
  --mast: #05070c;
  --mast-ink: #f7f4ee;
  --mast-dim: #9aa6b5;
  --red: #ff2d2d;
  --gold: #f5c518;
  --sheet: #f6f1e6;
  --sheet-ink: #14110e;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", Palatino, serif;
  --sans: "Barlow Condensed", "Arial Narrow", "Segoe UI", Helvetica, sans-serif;
  --stripe: var(--red);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #070b12;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}
a { color: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #111;
  padding: 6px 10px;
  z-index: 5;
}
.skip:focus { top: 8px; }
.mast {
  background: linear-gradient(180deg, rgba(5, 7, 12, .2), rgba(5, 7, 12, .55));
  color: var(--mast-ink);
  padding: 0 0 0;
  border-bottom: 0;
  position: relative;
  z-index: 1;
}
.mast::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red) 35%, #7a1028 100%);
}
.mast-top, .wordmark, .desks, .wrap, .colophon .wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}
.mast-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mast-dim);
  padding-top: 12px;
}
.wordmark { padding: 16px 0 8px; overflow: visible; }
.wordmark a {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible;
}
.slant {
  font-family: var(--sans);
  font-size: clamp(46px, 7.2vw, 88px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-style: italic;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.08em 0.14em 0.04em 0.02em;
  background: linear-gradient(100deg, #fff 20%, #ffe7a3 55%, #ff5a4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.net {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #111;
  background: var(--gold);
  padding: 6px 10px 4px;
  margin-bottom: 10px;
  font-weight: 700;
}
.rule { display: none; }
.desks {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 0 16px;
  overflow-x: auto;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  scrollbar-width: thin;
}
.desks a {
  color: var(--mast-dim);
  text-decoration: none;
  flex: 0 0 auto;
  border: 1px solid #2c3a4e;
  background: #101722;
  padding: 7px 12px 5px;
  border-radius: 999px;
  font-weight: 700;
}
.desks a:hover { color: #fff; border-color: var(--gold); }
.desks a.on {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 45, 45, .25);
}
.wrap {
  padding: 28px 22px 12px;
  background: rgba(7, 11, 18, .94);
}
main, .colophon { position: relative; z-index: 1; }
.snes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #10182b;
}
.snes-theme {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-repeat: repeat-x;
  background-position: 0 center;
  background-size: auto 100%;
  animation: snes-slide 36s linear infinite, snes-cycle 48s linear infinite;
  opacity: 0;
}
.snes-gridiron { background-image: url("/bg/gridiron.jpg"); background-color: #14345a; animation-delay: 0s, 0s; }
.snes-hardwood { background-image: url("/bg/hardwood.jpg"); background-color: #1a120c; animation-delay: 0s, -12s; }
.snes-diamond { background-image: url("/bg/diamond.jpg"); background-color: #7ec8ef; animation-delay: 0s, -24s; }
.snes-ice { background-image: url("/bg/ice.jpg"); background-color: #102033; animation-delay: 0s, -36s; }
.snes::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 8, 14, .45), rgba(5, 8, 14, .62)),
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, .07) 0 1px,
      transparent 1px 4px
    );
  pointer-events: none;
}
@keyframes snes-slide {
  from { background-position: 0 center; }
  to { background-position: calc(-800 / 343 * 100vh) center; }
}
@keyframes snes-cycle {
  0% { opacity: 0; }
  6% { opacity: 1; }
  22% { opacity: 1; }
  28% { opacity: 0; }
  100% { opacity: 0; }
}
.results { display: flex; flex-direction: column; }
.result {
  display: grid;
  grid-template-columns: 112px 1fr;
  column-gap: 18px;
  row-gap: 4px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #243044;
}
.result .kicker {
  grid-column: 1;
  grid-row: 1;
  background: transparent;
  color: var(--gold);
  padding: 0;
  font-size: 13px;
  letter-spacing: .14em;
}
.result h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--sans);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
}
.result h2 a { text-decoration: none; }
.result h2 a:hover { color: var(--gold); }
.result .shot-link { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
.result .shot-link .shot {
  display: block;
  width: 112px;
  height: 84px;
  margin: 0;
  object-fit: cover;
  object-position: center top;
  background: radial-gradient(circle at 50% 20%, #2a3b56, #0c121c 72%);
}
.result .result-copy { grid-column: 2; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.result:not(:has(.shot-link)) { grid-template-columns: 1fr; }
.result:not(:has(.shot-link)) .result-copy { grid-column: 1; }
.result.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 8px 22px;
  align-items: end;
  padding: 4px 0 26px;
  margin-bottom: 8px;
  border-bottom: 4px solid var(--red);
}
.result.lead .shot-link { grid-column: 2; grid-row: 1; }
.result.lead .shot-link .shot {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center bottom;
}
.result.lead .result-copy { grid-column: 1; grid-row: 1; }
.result.lead:not(:has(.shot-link)) { grid-template-columns: 1fr; }
.result.lead .kicker {
  background: var(--red);
  color: #fff;
  padding: 3px 8px 1px;
}
.result.lead h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  max-width: 18ch;
  margin: 10px 0 8px;
}
.result.lead .deck { font-size: 1.25rem; color: #f3efe6; max-width: 40rem; }
.card .shot, .story .shot {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: contain;
  object-position: center bottom;
  background: radial-gradient(circle at 50% 20%, #2a3b56, #0c121c 72%);
  margin: 0 0 10px;
}
.card.lead .shot { height: 240px; }
.story .shot { width: min(100%, 280px); height: 240px; margin: 0 0 18px; }
.board {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  align-items: stretch;
  margin: 0 0 18px;
}
.linescore {
  width: 100%;
  border-collapse: collapse;
  background: #121820;
  color: #f4efe4;
  font-family: var(--cond);
  overflow: hidden;
}
.linescore th, .linescore td {
  padding: 8px 7px;
  text-align: center;
  border-bottom: 1px solid #2a3548;
  font-size: 18px;
}
.linescore thead th { color: #9aa8bd; font-weight: 600; font-size: 13px; letter-spacing: .08em; }
.linescore tbody th { text-align: left; font-weight: 700; padding-left: 10px; white-space: nowrap; }
.linescore .tot { color: var(--gold); font-weight: 800; }
.linescore tr.win td.tot, .linescore tr.win th { color: #fff; }
.linescore tr.win { background: rgba(200, 29, 20, .35); }
.star {
  background: linear-gradient(180deg, #2a140f, #141820);
  border: 1px solid #c9a227;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.star img { width: 100%; height: 120px; object-fit: contain; object-position: center bottom; }
.star-kicker { margin: 6px 0 0; color: var(--gold); font-family: var(--cond); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.star-name { margin: 0; font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: .95; color: #fff; }
.star-team, .star-line { margin: 2px 0 0; color: #d7deea; font-size: 14px; }
.narrative { margin: 0 0 8px; }
.narrative p { font-size: 1.12rem; }
.linescore-wrap { overflow-x: auto; }
@media (max-width: 800px) {
  .board { grid-template-columns: 1fr; }
}
.card {
  --stripe: var(--red);
  background: linear-gradient(180deg, #182232, var(--card));
  border: 1px solid var(--line);
  border-left: 5px solid var(--stripe);
  padding: 14px 16px 12px;
  transition: transform .18s ease, border-color .18s ease;
  min-height: 100%;
}
.card:hover { transform: translateY(-3px); border-color: #3d516c; }
.card.lead {
  grid-column: 1 / -1;
  padding: 28px 28px 22px;
  background:
    linear-gradient(115deg, rgba(255, 45, 45, .95) 0 8px, transparent 8px),
    linear-gradient(160deg, #2a0d12 0%, #121826 42%, #0c1522 100%);
  border-left: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.card.lead h2 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: .9;
  max-width: 18ch;
}
.card[data-desk="nfl"] { --stripe: #c9a227; }
.card[data-desk="nba"] { --stripe: #ff7a18; }
.card[data-desk="mlb"] { --stripe: #3ddc97; }
.card[data-desk="nhl"] { --stripe: #5eb0ff; }
.card[data-desk="soccer"] { --stripe: #39d353; }
.card[data-desk="tennis"] { --stripe: #d6ff4a; }
.card[data-desk="boxing"] { --stripe: #ff4d6d; }
.card[data-desk="golf"] { --stripe: #7dffb3; }
.card[data-desk="basketball"] { --stripe: #ff9f1c; }
.card[data-desk="baseball"] { --stripe: #8ecae6; }
.card[data-desk="football"] { --stripe: #e8c547; }
.card[data-desk="hockey"] { --stripe: #90e0ef; }
.card[data-desk="ufc"], .card[data-desk="mma"] { --stripe: #ff3b3b; }
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #111;
  background: var(--gold);
  text-decoration: none;
  font-weight: 800;
  padding: 3px 8px 1px;
}
.card.lead .kicker { background: var(--red); color: #fff; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
h2 { font-size: 28px; line-height: .95; margin: 10px 0 8px; }
h2 a, h1 { text-decoration: none; }
h2 a:hover { color: var(--gold); }
.deck { color: var(--muted); font-size: 1.02rem; margin: 0 0 8px; font-family: var(--serif); text-transform: none; letter-spacing: 0; font-weight: 400; }
.card.lead .deck { font-size: 1.35rem; color: #f3efe6; max-width: 42rem; }
.by, .count, .empty { font-family: var(--sans); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.by time { font-style: normal; color: var(--gold); }
.section-head { margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.section-head .kicker { margin-bottom: 8px; }
.pager { display: flex; gap: 16px; align-items: center; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; margin: 22px 0; }
.pager a { color: #111; background: var(--gold); font-weight: 800; text-decoration: none; padding: 8px 12px; }
.story.wrap {
  background: var(--sheet);
  color: var(--sheet-ink);
  width: min(820px, calc(100% - 28px));
  margin: 22px auto 28px;
  padding: 28px 28px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.story h1 { font-size: clamp(42px, 6vw, 74px); line-height: .88; margin: 10px 0; color: #111; }
.story .deck { font-size: 1.35rem; color: #3a342c; max-width: 40rem; }
.story .by { color: #5c564c; }
.story .by time { color: #9a3412; }
.story .body { max-width: 40rem; font-size: 1.16rem; color: #1c1916; }
.story .body p { margin: 0 0 1em; }
.story .body a { color: #b42318; }
.story .body iframe { width: 100%; max-width: 40rem; aspect-ratio: 16 / 9; height: auto; border: 0; background: #111; }
.story .kicker { background: var(--red); color: #fff; }
.desk h1 { margin-top: 0; }
.desk form, .file-story { display: grid; gap: 12px; max-width: 40rem; margin-top: 16px; }
.desk label { display: grid; gap: 4px; font-family: var(--sans); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
input, textarea, select, button { font: inherit; }
input, textarea, select {
  border: 1px solid var(--line);
  background: #fff;
  color: #14110e;
  padding: 8px 10px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--serif);
  font-size: 18px;
}
textarea { min-height: 220px; }
button {
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 12px 18px 10px;
  font-family: var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
  width: fit-content;
}
button:hover { background: #ff4d4d; }
.out button { background: #243044; }
.warn { color: #ffb4a8; font-family: var(--sans); }
.colophon {
  margin-top: 28px;
  padding: 26px 0 48px;
  background: #05070c;
  border-top: 4px solid var(--gold);
}
.colophon strong {
  font-family: var(--sans);
  font-size: 28px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.colophon p { margin: 6px 0; color: var(--muted); }
.foot-links a { color: var(--gold); font-family: var(--sans); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.patrons { margin-top: 22px; max-width: 42rem; }
.patrons-kicker {
  font-family: var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.patrons p:last-child { color: #d5dbe3; font-size: 17px; line-height: 1.45; }
.patrons a { color: #fff; text-underline-offset: 3px; }
.all-desks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.all-desks a {
  color: #d5dbe3;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid #2a3648;
  padding: 5px 8px 3px;
}
.all-desks a:hover { color: #111; background: var(--gold); border-color: var(--gold); }
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .card.lead { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .card.lead { padding: 20px 16px 16px; }
  .story.wrap { padding: 20px 16px 28px; }
  .mast-top span:last-child { display: none; }
  .net { margin-bottom: 6px; }
  .result, .result.lead { grid-template-columns: 88px minmax(0, 1fr); }
  .result h2, .result .deck, .result .by, .result .kicker { grid-column: auto; grid-row: auto; }
  .result .shot-link .shot, .result.lead .shot-link .shot { width: 88px; height: 72px; object-fit: cover; object-position: center top; }
  .result.lead .shot-link, .result.lead .result-copy { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .card:hover { transform: none; }
  .snes-theme { opacity: 0; }
  .snes-gridiron { opacity: 1; }
}
