/* PylonPix public site — static, no framework. 80s/90s arcade on black.
   Type system:
     Press Start 2P — headings only (brand, week labels, section titles)
     Silkscreen     — player names (pixel but legible at row size)
     VT323          — body copy, meta, odds (neon green), timestamps
   Brand: lime #39ff14 (accent text, odds) · orange #e8590c (titles/tags).
   No yellow anywhere. Cards: 2px hard pixel borders, scanline texture. */

:root {
  --bg: #000000;
  --card: #1a1d24;
  --card-head: #20242d;
  --line: #2a2f3a;
  --row-line: #232730;
  --ink: #eef2f8;
  --ink-dim: #8b97a8;
  --ink-faint: #5b6675;
  --accent: #e8590c;      /* pylon orange-red — titles, tags, logo mark */
  --neon: #39ff14;        /* brand lime — accent text, odds */
  --hit: #37d67a;
  --miss: #6b7686;
  --void: #4a5262;
  --pending: #7f8b9c;
  --px: "Press Start 2P", monospace;
  --pxname: "Silkscreen", monospace;
  --vt: "VT323", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- nav
   No bar: X icon + Support float over the top-right of the hero. */
.nav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
}
.nav-x {
  color: var(--neon);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.9));
}
.nav-x:hover { color: var(--ink); }
.nav-support {
  font-family: var(--vt);
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.nav-support:hover { color: var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}
.hero-img {
  display: block;
  width: 100%;
  height: min(52vh, 460px);
  object-fit: cover;
  object-position: center 35%;
  image-rendering: pixelated;
}
.hero.no-img .hero-img { display: none; }
.hero.no-img { padding-top: 46px; }
.hero-fade {
  /* covers the image only — the hero is taller now that the title
     stack extends below it */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(52vh, 460px);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0)    0%,
    rgba(0, 0, 0, 0)    45%,
    rgba(0, 0, 0, 0.35) 68%,
    rgba(0, 0, 0, 0.75) 85%,
    var(--bg)           100%
  );
}
.hero-title {
  /* sits in the fade zone: overlaps only the faded bottom edge of the
     image, so the stack lands below the players, not over them */
  position: relative;
  margin-top: -120px;
  padding-bottom: 12px;
  text-align: center;
}
.hero.no-img .hero-title { position: static; padding-bottom: 8px; }
.hero-logo {
  display: block;
  width: 120px;
  margin: 0 auto 6px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.9));
}
.hero-wordmark {
  display: block;
  width: min(500px, 86vw);
  margin: 0 auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.9));
}

/* ---------------------------------------------------------------- playbook */
main { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.playbook { margin: 32px auto 0; max-width: 640px; text-align: center; }
.playbook-title {
  margin: 0 0 14px;
  font-family: var(--px);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent);
}
.intro {
  margin: 0;
  font-family: var(--vt);
  font-size: 20px;
  line-height: 1.4;              /* even rhythm on every line */
  color: var(--ink-dim);
  overflow-wrap: break-word;     /* never spills the column */
}
.intro + .intro { margin-top: 14px; }   /* identical gap between every stanza */
.intro-oneline {                        /* first stanza reads as a single line */
  white-space: nowrap;
  font-size: clamp(13px, 3.4vw, 20px);  /* shrinks on narrow screens instead of wrapping */
}
.intro a { color: var(--neon); text-decoration: none; }
.intro a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- week cards */
.picks { padding: 30px 0 20px; }
.weeks {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;      /* fixed card width, centered — same every week */
  margin: 0 auto;
}
.loading { text-align: center; color: var(--ink-faint); font-family: var(--vt); font-size: 18px; }

.week-card {
  background: var(--card);
  border: 2px solid var(--line);   /* chunky pixel border, hard edges */
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
/* scanline texture — card background only */
.week-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0 1px,
    transparent 1px 3px
  );
}
.week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--card-head);
  border: none;
  border-bottom: 2px solid var(--line);
  color: inherit;
  cursor: pointer;
  text-align: left;
  position: relative;   /* above the scanlines */
}
.week-card.collapsed .week-head { border-bottom: none; }
.week-label {
  font-family: var(--px);
  font-size: 14px;
  text-transform: uppercase;
}
.week-record {
  font-family: var(--vt);
  font-size: 22px;
  color: var(--neon);
}
.week-card.collapsed .week-body { display: none; }
.week-body { position: relative; }   /* above the scanlines */

.rows { display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- pick row
   Fixed height so every week's card reads identically. */
.prow {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 16px;
  border-top: 1px solid var(--row-line);
}
.prow:first-child { border-top: none; }

.headshot {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--bg);
  object-fit: cover;
  image-rendering: pixelated;
  border: 2px solid var(--line);
}

.who { display: flex; flex-direction: column; min-width: 0; }
.topline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.name {
  font-family: var(--pxname);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.daytag {
  flex: none;
  font-family: var(--vt);
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0 5px;
  line-height: 1.3;
}
.meta {
  font-family: var(--vt);
  font-size: 15px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.odds {
  font-family: var(--vt);
  font-size: 24px;
  font-weight: 700;
  color: var(--neon);
  text-align: right;
  white-space: nowrap;
}
.odds .book {
  color: var(--ink-dim);
  font-weight: 400;
  font-size: 15px;
  margin-left: 6px;
}
.odds.na { color: var(--ink-faint); font-weight: 400; }

/* ---------------------------------------------------------------- stamp */
.stamp {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.stamp img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}
.stamp .glyph {
  font-family: var(--pxname);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}
.stamp.pending img { opacity: 0.85; }
.stamp.hit img { filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.35)); }
.stamp.miss .glyph { color: var(--miss); }
.stamp.void .glyph { color: var(--void); }
.stamp.pending .glyph { color: var(--pending); }
.stamp.hit .glyph { color: var(--hit); }

.posted {
  margin: 0;
  padding: 8px 16px 12px;
  font-family: var(--vt);
  font-size: 14px;
  color: var(--ink-faint);
  border-top: 1px solid var(--row-line);
}

/* ---------------------------------------------------------------- footer */
.site-foot {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 24px 20px 48px;
  border-top: 2px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--vt);
  font-size: 16px;
  text-align: center;
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 480px) {
  .hero-img { height: 38vh; }
  .hero-fade { height: 38vh; }
  .hero-logo { width: 88px; }
  .hero-title { margin-top: -80px; }
  .prow {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 64px;
    padding: 8px 12px;
    row-gap: 2px;
  }
  .headshot { width: 40px; height: 40px; grid-row: 1 / 3; }
  .who { grid-column: 2; }
  .odds {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    font-size: 20px;
    margin-top: 2px;
  }
  .who .meta { font-size: 13px; }
  .stamp { grid-column: 3; grid-row: 1 / 3; width: 40px; height: 40px; }
  .stamp img { width: 34px; height: 34px; }
}
