/* Astro presentation styles; draft card styles are owned only by this sheet. */
.season-record { font-family:'Barlow Condensed',Impact,sans-serif; font-size:clamp(3rem,12vw,5rem); font-weight:900; letter-spacing:-.045em; font-variant-numeric:tabular-nums; line-height:1.15; }
.season-summary { display:flex; align-items:baseline; flex-wrap:wrap; gap:.5rem 1.25rem; margin:1rem 0; }
.season-summary .season-record { font-size:clamp(2rem,7vw,3rem); }
.season-record span { font-size:.65rem; font-weight:700; letter-spacing:.02em; }
.season-record i { font-style:normal; margin:0 .2em; font-size:.65em; color:#4a5568; }
.season-summary p { font-size:.8rem; color:#4a5568; }
.season-visuals { min-width:0; }
main .scoreboard { margin:1rem 0; border:1px solid var(--line); border-radius:.8rem; overflow:hidden; background:var(--paper); box-shadow:0 4px 16px #001e4408; }
.scoreboard-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem; background:var(--ink); padding:.75rem 1rem; color:var(--paper); }
.scoreboard-heading .eyebrow { color:var(--paper); margin:0; }
/* Muted green/red encode win/loss, preserving the familiar up/down convention. */
.win { background:#d7eacb; color:var(--ink); }
.loss { background:#f2dbd0; color:#873a2c; }
.scoreboard-matchup { display:grid; grid-template-columns:1fr auto 1fr; gap:.75rem; align-items:center; padding:1rem; }
.scoreboard-team { display:grid; grid-template-columns:1fr auto; gap:.25rem 1rem; padding:.75rem 1rem; border-radius:.4rem; min-width:0; }
.scoreboard-team strong { font-size:1.35rem; letter-spacing:.04em; }
.scoreboard-team small { grid-column:1; font-size:.7rem; line-height:1.4; overflow-wrap:anywhere; }
.scoreboard-team b { grid-column:2; grid-row:1 / 3; font-size:3rem; line-height:1; align-self:center; font-variant-numeric:tabular-nums; }
.scoreboard-versus { font-size:.65rem; font-weight:800; color:#4a5568; }
main .inning-table th, main .inning-table td { border:0; padding:.5rem .4rem; text-align:center; vertical-align:middle; border-radius:.2rem; min-width:1.8rem; }
.scoreboard-help { font-size:.65rem; color:#4a5568; margin:.5rem 1rem .9rem; }
.season-progress { margin:1.25rem 0; }
.season-progress label { display:flex; justify-content:space-between; gap:.5rem; font-size:.7rem; font-weight:750; letter-spacing:.05em; margin-bottom:.5rem; }
#chase-app progress { appearance:none; display:block; width:100%; height:1.15rem; border:1px solid var(--line); border-radius:1rem; overflow:hidden; background:var(--wash); accent-color:var(--ink); }
#chase-app progress::-webkit-progress-bar { background:var(--wash); }
#chase-app progress::-webkit-progress-value { background:repeating-linear-gradient(115deg,var(--ink) 0 14px,#00224d 14px 28px); border-radius:1rem; transition:width .18s ease; }
#chase-app progress::-moz-progress-bar { background:var(--ink); border-radius:1rem; }
#chase-app .recent-games button:hover, #chase-app .recent-games button[aria-pressed="true"] { border-color:currentColor; }

#chase-share-url { box-sizing:border-box; width:100%; padding:.7rem; border:1px solid var(--line); border-radius:.4rem; background:var(--paper); color:var(--ink); font:inherit; font-size:.8rem; }
/* 162 squares, nothing else. One flat grid, like a contribution graph: the
   reader wants to see where the losses are, and a row label or a heading in
   the middle of the matrix is just something to read past. 27 divides 162, so
   six full rows leave no gap at the end. */
#chase-app .season-heat button:hover, #chase-app .season-heat button[aria-pressed="true"] { border-color:currentColor; }
/* On a phone the grid is 18 rows tall, so a readout that sits under it is four
   screens down from the square you just tapped. A tap scrolls the readout into
   view so the answer lands where the finger already is. */
@media (max-width:760px) { }
/* 27 columns across a 390px screen leaves 11px cells, too small to aim at with
   a finger. Below the tablet breakpoint the grid drops to 9 columns and the
   row label moves above its cells, so every square keeps a 32px touch target
   and the game number stays legible. The same 162 games, read nine at a time. */
@media (max-width:760px) {
}


/* Homepage */
main .hero { margin:0; border-radius:var(--radius-xl); background:linear-gradient(110deg,#fff 0%,#edf2f7 55%,#0a315e 100%); }
/* The landing hero is full-bleed, so it drops the light background and
   the card radius the plain hero keeps. */
/* Full-bleed means edge to edge, and main carries a page margin that the
   other sections want. A negative margin takes the hero back out to the
   viewport edge without touching that shared padding. *//* Full-bleed: the photo runs to the viewport edge. The hero is 100vw wide and
   pulled left by half the scrollbar-free viewport, which is exact regardless of
   how much margin main carries. An earlier version cancelled main's margin with
   a hardcoded gutter and the two did not agree - main measured 32.5px on
   desktop while the sheet said 20px, leaving 12px of page background at each
   side. main's scrollbar is accounted for by 100vw including it, so the hero
   never produces a horizontal scrollbar. */
/* Full-bleed: the photo reaches both viewport edges. There is no CSS unit for
   the html element's width, and 100vw counts the scrollbar gutter, so both
   static approaches were off - one left 12px, the next overshot by 7px and
   added a horizontal scrollbar. A tiny inline script measures the difference
   between main and the viewport once per resize and hands it to CSS as
   --hero-inset. It costs one property write and cannot disagree with the
   layout it is correcting. */
html { scrollbar-gutter: stable; }
main .hero-fullbleed.hero, main .chase-game-header.hero-fullbleed {
  border-radius:0; background:var(--c-navy-950);
  /* Full bleed to both viewport edges.
     This used to be 100% plus a --hero-inset that a script measured. The variable started unset,
     so the hero rendered at main's width for a moment and then jumped to full width once the
     script ran - a visible resize on every load. scrollbar-gutter: stable reserves the scrollbar
     up front, which means 100vw is now the layout viewport and no measurement is needed. */
  width:100vw; max-width:100vw;
  margin-left:50%; margin-right:50%;
  transform:translateX(-50%);
  /* main carries a 28px top padding for every other section, which showed as a
     band of page background between the navy header and the photograph. Only the
     full-bleed heroes cancel it, so the rest of the page keeps its rhythm. */
  margin-top:-28px;
}
.hero-copy { width:52%; flex:none; }
.hero-fullbleed .hero-copy { width:auto; }
/* One photograph per page. The landing hero puts it beside the copy; the game
   banner keeps it a full-bleed band above the title. width/height on the <img>
   reserve the space so nothing shifts as the file loads. */
main .page-section { margin:0; padding:40px 0; }
main .section-title { margin:0; }
main .chase-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; list-style:none; padding:0; margin:24px 0 0; line-height:1.5; }
main .chase-steps li { padding:24px; margin:0; }
.step-number { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--c-red-500); color:white; font-weight:900; }
.chase-steps h3 { margin:14px 0 6px; }
.chase-steps p { margin:0; color:var(--text-secondary); font-size:.9rem; }
.mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:24px; }
.mode-card { padding:24px; display:flex; flex-direction:column; align-items:start; }
.mode-code { font-size:2.5rem; color:var(--c-red-500); }
.mode-card p { color:var(--text-secondary); font-size:.9rem; flex:1; margin-top:.5rem; }
.mode-card .btn { font-size:.85rem; width:100%; }
main .home-banner { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:36px; margin:20px 0 0; }
.home-banner h2 { font-size:clamp(2rem,4vw,3.5rem); margin:10px 0; max-width:700px; }
.home-banner p { color:var(--c-gray-300); }
.home-banner .eyebrow { color:var(--c-red-400); }
.home-banner .btn { flex:none; }

/* Draft and roster */
#chase-app { color:var(--text-primary); }
main .chase-game-header { margin:0; padding:24px 32px; border-radius:var(--radius-lg); }
.chase-game-header p { margin:6px 0; }
.chase-game-header .eyebrow { color:var(--c-red-400); }
/* Full-bleed hero. The photograph is the background of the whole section, the
   copy sits on top of it, and there is no frame, no border and no rounded
   card around either. WebP at 1920x1080, 103-142 KB each.

   The <img> is absolutely positioned rather than a CSS background so the alt
   text stays with the image for a screen reader, and so the file downloads at
   the same time as the markup instead of after CSS parses. */

/* The copy was pinned to the bottom of the band, which left roughly 85px of empty navy above
   the title while the batter sat at mid height, so the two halves of the hero had no shared
   centre line. Centring the copy block is what makes the hero read as one composition. */
.hero-fullbleed { position:relative; isolation:isolate; overflow:hidden; border-radius:0; display:flex; align-items:center;
  /* Height from the width at the plate's own 3:1, so cover never crops. min-height and max-height
     keep it sane on a short window or a very wide one. */
  height:clamp(300px, 33.4vw, 660px); }
/* The photograph is shown whole, anchored right, and the copy sits on navy to its left.
   object-fit: cover was cropping it: a 1920x1080 photo in a 1905x380 band kept only 35% of its
   height, and object-position 100% 0% put the window on the top edge, so the bottom of every
   picture was the part that disappeared. `contain` keeps the whole frame and lets the navy
   panel take up the slack instead. The photo column is capped so that on a wide monitor the
   picture does not shrink into a stamp in the middle of the band. */
.hero-fullbleed .hero-background {
  position:absolute; z-index:-2; top:0; bottom:0; right:0;
  width:100%; height:100%;
  object-fit:cover; object-position:right center; display:block;
}
/* The band is filled by a 3:1 plate built from the photo itself (scripts/build-hero-plates.py),
   so nothing is cropped away and the left half is real night sky rather than flat navy. The wash
   below only has to keep the copy readable; the picture carries the whole width. */
.hero-fullbleed { background:var(--c-navy-950, #041b36); }
/* Two overlays: a vertical wash for general legibility and a left-weighted one
   where the copy sits, so white text has something dark behind it on any photo. */
/* The scrim is a readability aid, not the background. It was set at 90%
   opacity on the left, which flattened the photograph into a solid navy panel
   under the copy - the exact thing a photo background is supposed to avoid.
   Now the strongest point is 55% and it falls away quickly, so the stadium
   lights and the player stay visible behind the text. The text itself carries
   a shadow, which is what actually keeps white type legible on a night photo. */
/* The copy sits on the navy panel, not on the photograph, so the wash only needs to keep the
   seam and the title legible where the two meet. A full-width scrim darkened the left panel to
   near-black and hid the blue the layout now depends on. */
.hero-fullbleed::before {
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  /* The plate already carries a baked-in navy wash on the left, so this only needs to be enough
     to hold the title's contrast. Doubling it up is what flattened the picture into a colour block. */
  background:linear-gradient(100deg, rgba(2,12,28,.5) 0%, rgba(2,12,28,.34) 34%, rgba(2,12,28,.15) 58%, rgba(2,12,28,.04) 78%, rgba(2,12,28,0) 100%);
}
.hero-fullbleed::after {
  content:''; position:absolute; inset:auto 0 0 0; z-index:-1; height:38%; pointer-events:none;
  background:linear-gradient(to top, rgba(2,12,28,.42), transparent);
}

.hero-fullbleed.hero .hero-copy { position:relative; z-index:1; max-width:44rem; color:#fff; padding:4.5rem 40px 4rem; }
/* The copy used to start 40px from the window edge while everything below it starts at the
   container's left edge, so the two grids did not line up. */
main .hero-fullbleed .hero-copy, main .hero-fullbleed .game-banner-copy { padding-left:max(40px, calc((100% - 1180px) / 2)); }
@media (max-width: 767px) {
  /* The left-panel layout is a desktop arrangement. On a phone there is no room to put a
     photo beside a navy panel: at 375px the contained picture shrank to about a fifth of its
     frame. The photo goes back to filling the band and the copy sits on the scrim again. */
  .hero-fullbleed .hero-background {
    left:0; right:0; width:100%; height:100%; max-width:none;
    object-fit:cover; object-position:100% 50%;
  }
  main .hero-fullbleed .hero-copy, main .hero-fullbleed .game-banner-copy { padding-left:20px; }
  .hero-fullbleed::before {
    background:linear-gradient(100deg, rgba(2,12,28,.8) 0%, rgba(2,12,28,.5) 46%, rgba(2,12,28,.22) 100%);
  }
}
.hero-fullbleed .hero-subtitle { color:#fff; text-shadow:0 1px 16px rgba(2,12,28,.9), 0 0 34px rgba(2,12,28,.7); }
/* chase162.css sets .hero-title color to navy-950 for the light hero. The
   full-bleed hero sits on a night photograph, so the title has to be
   explicitly white here or it renders dark-on-dark. */
.hero-fullbleed .hero-title, .hero-fullbleed .game-banner-title {
  color:#fff; text-shadow:0 2px 22px rgba(2,12,28,.85), 0 0 60px rgba(2,12,28,.6);
}
/* The accent span must out-specify the white rule directly above it. */
.hero-fullbleed .hero-title .accent { color:var(--c-red-500); text-shadow:0 2px 22px rgba(2,12,28,.85); }
/* The mode word stays red. This must out-specify the white rule above, which
   also sets a colour, so it needs the hero-fullbleed class as well. */
.hero-fullbleed .game-banner-title .accent {
  color:var(--c-red-500); text-shadow:0 2px 22px rgba(2,12,28,.85);
}
.hero-fullbleed .eyebrow { color:#ffb3c1; text-shadow:0 1px 14px rgba(2,12,28,.9); }
.hero-fullbleed .hero-stat-label { color:rgba(255,255,255,.92); text-shadow:0 1px 12px rgba(2,12,28,.9); }
.hero-fullbleed .hero-stat-value { color:#fff; }
.hero-fullbleed .btn-secondary { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.5); color:#fff; }
.hero-fullbleed .btn-secondary:hover { background:rgba(255,255,255,.22); }

main .chase-game-header.hero-fullbleed { padding:0; height:clamp(300px, 33.4vw, 660px); display:flex; align-items:center; }
.hero-fullbleed .game-banner-copy { position:relative; z-index:1; padding:4.5rem 40px 3.5rem; color:#fff; }
.hero-fullbleed .game-banner-copy p { color:rgba(255,255,255,.88); text-shadow:0 1px 12px rgba(2,12,28,.7); margin:6px 0; }
/* One photograph per page. The landing hero puts it beside the copy; the game
   banner keeps it a full-bleed band with the title over it.

   The `main` prefix is deliberate. A bare `.game-banner` loses to the existing
   `main .chase-game-header` rule, which is what made an earlier version render
   at 728px instead of 340px with the title sitting below the photo instead of
   on it. Same specificity as the rule it overrides, declared later. */
main .chase-game-header { position:relative; padding:0; overflow:hidden; }
/* Anchor the photos to the left edge. object-position is the image's
   alignment inside the frame, not the slice of photo on screen: an earlier
   pass set 59-62% from each photo's brightness centroid, expecting that to show
   more of the right side, and the browser instead pulled the window left onto
   empty night sky. Scanning brightness-weighted energy across the crop settles
   it - 0% is the maximum for all four photos, at every size they are used at
   (326x280, 574x340, 1360x340). */
#chase-message { font-size:.85rem; color:var(--text-secondary); min-height:24px; margin:20px 0; overflow-wrap:anywhere; }
@media (max-width: 767px) {
  /* The mode explanation moved into the hero, so this line now only ever carries a real state
     change: a respin resolving, or an error the visitor has to act on. Those must stay visible on
     a phone. It keeps its 8px margin when empty so the layout does not jump when one appears. */
  #chase-message { margin:8px 0; font-size:.8rem; }
}
/* Ad slots. The Adsterra creative sizes itself, so these only reserve room and keep it off the
   content around it. Centred because a narrow creative would otherwise hug the left edge. */
.native-ad { display:block; margin:28px auto 0; max-width:900px; overflow:hidden; }
#chase-stage { scroll-margin-top:90px; }
#chase-stage h2 { margin:8px 0 12px; }
.draft-main { min-width:0; }
.draft-title { padding:0 0 20px; border-bottom:1px solid var(--border-light); }
.draft-title .eyebrow { margin:0; }
.draft-title h2 { font-size:clamp(1.5rem,2.5vw,2.15rem); }
.draft-title a { font-size:.8rem; }
.draft-main > p { color:var(--text-secondary); font-size:.85rem; margin:20px 0; }
/* Draft cards have one source of layout rules. The header reserves a track
   for the position and lets the full name grow vertically; OVR belongs with
   the pick controls so it never competes with the name for header space. */
.player-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
.player-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#fff;
  border:1px solid var(--border-light);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
}
.player-card-media {
  flex:none;
  /* Name on the first line with the position badge, source season on the second. It was a single
     flex row, which cannot hold a sub-line, so the season was given the row underneath instead. */
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"name tags" "season tags";
  align-items:center;
  column-gap:10px;
  padding:10px 14px;
  border-radius:var(--radius-md) var(--radius-md) 0 0;
  background:linear-gradient(145deg,var(--c-navy-850),var(--c-navy-950));
}
/* The team and year the player came from. It moved here from the roster panel, where on a phone it
   sat under the name in a two-column list and was squeezed out of view entirely. */
.player-card-media .player-season { grid-area:season; display:block; min-width:0; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; font-size:.62rem; line-height:1.4;
  color:rgba(255,255,255,.62); margin-top:1px; }
/* On a candidate card the name row is tight, so the rarity badge sits beside the position rather
   than under it and the card is no taller than before. The hairline keeps the two capsules from
   reading as one run of text: "★ Elite | CL" is two facts, not one. */
/* The name gives way first: on a 390px phone a full name plus a rarity badge plus a position ran
   past the card, and the name was the one thing that could not be clipped without losing meaning. */
.player-card-media .player-name { grid-area:name; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.player-card-media .media-tags { grid-area:tags; align-self:center; }
.media-tags { display:flex; align-items:center; gap:8px; flex:none; }
.player-card-media .rarity-tag { font-size:.55rem; padding:0 6px; }
.media-tags .position-badge::before { content:''; position:absolute; left:-5px; top:50%;
  height:14px; width:1px; transform:translateY(-50%); background:rgba(255,255,255,.25); }
.media-tags .position-badge { position:relative; }
.position-badge {
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 5px;
  border-radius:7px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:.64rem;
  font-weight:900;
  line-height:1;
  letter-spacing:.02em;
  text-align:center;
}
.player-name {
  flex:1;
  min-width:0;
  margin:0;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:1.05rem;
  font-weight:800;
  font-style:normal;
  line-height:1.25;
  letter-spacing:-.01em;
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
}
.player-card-body { flex:1; padding:0 14px; }
.position-label { font-size:.75rem; color:var(--text-secondary); }
.player-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; margin:0; padding:10px 0; border-block:1px solid var(--border-light); }
.player-stats .stat { text-align:center; }
.player-stats strong { display:block; font-size:.9rem; line-height:1.3; }
.player-stats dd { margin:0; }
.player-stats dt { color:var(--text-secondary); font-size:.62rem; }
.player-stats abbr { text-decoration:none; cursor:help; }
.fine-print { margin:8px 0 0; color:var(--text-secondary); font-size:.68rem; line-height:1.5; }
.player-card-action { display:grid; grid-template-columns:minmax(0,1fr) 48px; align-items:start; gap:8px; padding:10px 14px; border-top:1px solid var(--border-light); }
.slot-buttons { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.slot-buttons .btn { width:100%; min-width:0; padding:0 5px; min-height:44px; font-size:.75rem; }
.rating-badge { display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:44px; border-radius:var(--radius-sm); background:var(--c-gray-100); color:var(--c-navy-950); font-size:.6rem; font-weight:900; line-height:1.2; }
.rating-badge strong { font-size:1.25rem; font-variant-numeric:tabular-nums; }
.pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:16px; margin:24px 0; }
.pagination .btn { background:white; color:var(--text-primary); border-color:var(--border-strong); box-shadow:none; }
.btn:disabled { opacity:.45; cursor:default; transform:none; }
main .roster-panel { margin:0; border:1px solid var(--border-light); background:white; color:var(--text-primary); padding:16px; }
.roster-heading h3 { margin:0; font-size:.9rem; text-transform:uppercase; letter-spacing:.04em; }
.roster-heading > span { font-size:.8rem; font-weight:800; color:var(--c-red-600); }
.roster-grid { display:grid; gap:6px; margin:16px 0; }
.roster-slot + .roster-slot { margin-top:0; }
.roster-slot { grid-template-columns:34px minmax(0,1fr) auto; gap:8px; padding:8px; }
.roster-pos { font-size:.7rem; }
.roster-player small { color:var(--text-secondary); }
/* An open slot used to read "Add Player" beside a grey plus, and both looked like something to press.
   Nothing here is clickable, so it now says TBD in the same weight as the rest of the text and
   says nothing else. The third column collapses rather than holding a gap for a removed icon. */
.roster-tbd { color:var(--text-secondary); opacity:.55; font-weight:700; letter-spacing:.04em; }
/* Only the two top bands are labelled. A third tier put a badge on a third of the roster, which
   made the ordinary read as noteworthy and buried the players worth picking.
   Solid capsule, no glyph: an outlined pill with a shape in front of it was busy, and the shape was
   the first thing read instead of the word. The fill is the whole signal. */
.rarity-tag { display:inline-flex; align-items:center; padding:2px 9px; border-radius:999px;
  font-size:.6rem; font-weight:900; line-height:1.5; letter-spacing:.08em; text-transform:uppercase;
  white-space:nowrap; }
.rarity-elite { background:var(--c-gold-500); color:#3d2a00; }
.rarity-rare { background:var(--c-blue-500); color:#fff; }
/* On a candidate card the name row is tight, so the badge goes beside the position rather than
   under it and keeps the card the same height as before. */
.media-tags { display:flex; align-items:center; gap:5px; flex:none; }
.player-card-media .rarity-tag { font-size:.54rem; padding:0 5px; }
.roster-ovr { font-size:.85rem; text-align:right; }
.roster-slot.empty { border-style:dashed; }
.metrics-heading { font-size:.8rem; margin:20px 0 12px; }
.team-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:12px 0; }
.metric-card { padding:12px 6px; }
.metric-value { font-size:1.5rem; }
.metric-label { font-size:.6rem; }

.respin-control { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:12px; }
.draft-title,#game-scoreboard,.weather-summary,.season-heat { scroll-margin-top:90px; }
.respin-control p { flex:1 1 220px; margin:0; font-size:.8rem; line-height:1.5; color:#334155; }
.respin-control button:disabled { background:#e2e8f0; color:#334155; border:1px solid #94a3b8; opacity:1; cursor:not-allowed; }
/* A table, not a list of sentences. "22 of 162 games played in clear" spends
   eleven words to say what a row can say in three cells, and the reader has to
   do the division themselves to get a share. */
.weather-table th, .weather-table td { padding:7px 10px; border-bottom:1px solid var(--border-light); text-align:left; }
.weather-table tbody tr:last-child th, .weather-table tbody tr:last-child td { border-bottom:0; }
/* Result and share */
.share-card { background:linear-gradient(145deg,#082d56,#031a33); color:white; border-top:5px solid var(--c-red-500); max-width:650px; margin:28px auto; padding:32px; text-align:center; }
.share-card .eyebrow { color:var(--c-gray-200); }
.share-card .season-record { font-size:clamp(4.5rem,12vw,7.5rem); line-height:1; margin:20px 0 0; }
.share-logo { width:64px; height:auto; margin:auto; background:white; border-radius:var(--radius-sm); padding:6px; }
.share-record-label { font-size:.7rem; letter-spacing:.16em; color:var(--c-gray-300); }
.share-card h2 { color:var(--c-red-400); font-size:1.3rem; letter-spacing:.06em; }
.share-domain { font-size:.75rem; letter-spacing:.1em; }
.final-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:24px 0; }
/* The submission block is a short form, not a page section: keep the heading to the
   same scale as the other card headings and stop the name field from stretching
   across the row, which left the button and link marooned on the left. */
/* The card class carries no padding of its own, so this card had its heading, label, field and
   button sitting flush against the border. */
.submission-card { max-width:560px; padding:1.15rem 1.25rem 1.25rem; }
/* The opening screen had the Play button and the whole submission card sitting hard against the
   left edge of the stage, with the result list centred above them. Both belong on the same
   centre line as the list. */
.opening-action { display:flex; justify-content:center; margin:1.1rem 0 1.4rem; }
.opening-action .btn { min-width:min(100%, 16rem); }
/* The card sits in a plain wrapper div, so centring the card itself leaves it flush left in a
   1180px stage. The wrapper is the flex container that does the centring. */
#chase-stage .submission-card { margin-left:auto; margin-right:auto; }
/* The rank card is a summary, not a form: heading, rank and button all sit on the same centre
   line as the result buttons above them, so the eye lands on one axis instead of stepping left
   to read a number and back right to press a button. */
#chase-stage .submission-card:has(.rank-figure) { text-align:center; }
#chase-stage .submission-card:has(.rank-figure) .rank-line { justify-content:center; }
/* "of 5 Classic entries" is a caption hanging off the medal and number, not a separate item.
   It shares the line with them so the whole row reads as one centred sentence. */
#chase-stage .rank-line:has(.rank-figure) { gap:.6rem; }
#chase-stage > div:has(> .submission-card) { display:flex; justify-content:center; }
/* The rank card holds a number and one line of text, so it reads as a stub in a 560px box.
   Narrowing it keeps the left edge where the rest of the stage content sits. */
.submission-card:has(.rank-figure) { max-width:340px; }
.submission-card h2 { font-size:1.05rem; margin:0 0 .75rem; }
.submission-control { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:.5rem; }
/* The label used to sit in the flex row beside the field, which left the field's baseline
   drifting against the button's and the three boxes at three different heights. The label is on
   its own line now and the field and button share one row and one height. */
.submission-control label { grid-column:1 / -1; font-weight:600; font-size:.9rem; }
.submission-control input[type=text] { width:100%; min-width:0; padding:0 .6rem;
  /* box-sizing is not guaranteed on every input reset, so a bare height was being added to by
     the padding and the border: the field came out 38px against a 44px button. Sizing both from
     the same custom property and letting the border-box resolve it is what lines them up. */
  block-size:2.75rem; box-sizing:border-box;
  /* The border used to fall back to rgba(255,255,255,.22), which is invisible on a light card:
     the field read as bare placeholder text with nothing to click. */
  border-radius:6px; border:1px solid rgba(15,35,66,.28); background:rgba(15,35,66,.03); color:inherit; }
.submission-control input[type=text]::placeholder { color:var(--text-secondary); opacity:.8; }
.submission-control input[type=text]:focus-visible { outline:2px solid var(--c-red-500); outline-offset:1px; border-color:var(--c-red-500); }
.submission-control input[type=text]:disabled { opacity:.55; }
.submission-control button { block-size:2.75rem; box-sizing:border-box; padding:0 1.1rem; white-space:nowrap; }
.submission-note { margin:.75rem 0 0; font-size:.85rem; color:var(--text-secondary); }
/* The same button as the row above, so it takes that row's size: on a phone those stretch to the
   stage width, on a desktop they size to their label. Filling the card's content box already gives
   the phone width, and cancelling the card's inset as well overshot it by the padding twice over,
   which is why this once came out 12px wider than the buttons it was meant to match.
   `display` is restated because `.btn` sets inline-flex at equal specificity further down the
   file and would otherwise win. */
.submission-card .scores-link { display:flex; margin:.9rem 0 0; padding:0 1.25rem;
  text-decoration:none; align-items:center; justify-content:center; }

/* After submitting, the form is replaced by where the player landed. The number is the
   point of that card, so it is set large and tabular; everything else steps back. */
.rank-line { display:flex; align-items:baseline; gap:.55rem; margin:0 0 .35rem; }
.rank-figure { display:inline-flex; align-items:center; gap:.3rem;
  font-size:2.4rem; font-weight:700; line-height:1; letter-spacing:-.02em;
  color:var(--accent, #ff1744); font-variant-numeric:tabular-nums; }
/* The number sits beside the medal, not under a "#", matching the board, where the medal is the
   mark and the number is the figure a screen reader reads. */
.rank-number { display:inline-block; }
/* Emoji medals are coloured by the OS font, so the class only sizes and spaces them. */
.rank-figure .rank-medal { font-size:1.9rem; line-height:1; }
.rank-figure .rank-medal .sr-only { position:absolute; width:1px; height:1px; margin:-1px;
  padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.rank-of { font-size:.95rem; color:var(--text-secondary, rgba(255,255,255,.7)); }
.rank-record { font-size:1.05rem; font-weight:600; font-variant-numeric:tabular-nums; }

/* Whose season a shared page is showing. Sits under the mode eyebrow and above the record,
   so someone opening a leaderboard entry sees the name they clicked on. */
.shared-owner { margin:.15rem 0 .1rem; font-size:1.25rem; font-weight:700; color:inherit; }

/* Spinner shown while a shared season is being read. Nothing else: the empty stage is the
   problem, and words next to a spinner just add something to read. */
/* Centred in the area the stage actually owns. The nav bar above it is not part of the
   stage, so centring against the viewport would push the spinner low. */
.stage-waiting { display:grid; place-items:center; min-height:min(58vh, 460px); padding:1.5rem; }
.waiting-spinner { display:block; width:44px; height:44px; border-radius:50%;
  border:4px solid rgba(8,38,74,.16); border-top-color:var(--accent, #ff1744);
  animation:waiting-spin .9s linear infinite; }
@keyframes waiting-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  /* A spinning ring is motion a reader did not ask for; a slow pulse is enough to read as
     "still working", and it still works with animation disabled entirely. */
  .waiting-spinner { animation:waiting-pulse 1.8s ease-in-out infinite; }
}
@keyframes waiting-pulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }
.chase-button { display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; border-radius:var(--radius-sm); background:var(--c-navy-950); color:white; font-weight:800; }
@media(min-width:1024px) { .player-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .roster-panel { position:sticky; top:90px; } }
@media(max-width:1023px) {
  .game-layout { grid-template-columns:minmax(0,1fr); }
  .player-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .roster-panel { position:static; }
    .chase-steps,.mode-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  main .chase-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px) {
  main .hero:not(.hero-fullbleed) { background:linear-gradient(160deg,#fff,#edf2f7); }
  .hero-copy { width:100%; padding:32px 0; }
  /* The full-bleed rule above is more specific than the generic mobile copy
     rule, so on a phone the block kept max-width:44rem and 40px side padding
     and ran 200px past a 390px viewport. Match the full-bleed selector. */
  /* The hero is a flex row, and a flex item defaults to flex:none, so width and
     max-width alone cannot make the copy narrower than its content - it was
     590px wide inside a 390px viewport. Reset the flex basis and let it grow. */
  .hero-fullbleed.hero .hero-copy { max-width:none; width:100%; min-width:0; flex:1 1 auto; padding:2.5rem 20px 2rem; }
  .hero-title { font-size:4rem; }
  .hero-subtitle { font-size:.95rem; }
  .hero-actions { gap:10px; }
  .hero-actions .btn { width:100%; font-size:.9rem; }
  .hero-stats { gap:10px; margin-top:24px; }
  .hero-stat-label { font-size:.65rem; }
  .hero-fullbleed { min-height:420px; }
  /* Phone banner height. This rule is the one that wins: it carries the `main` prefix the
     desktop rule has, and 767px outranks the 760px block in chase162.css. On a phone the banner
     was the largest block between the fold and the first candidate at nearly 500px. */
  main .chase-game-header.hero-fullbleed { min-height:230px; }
  .hero-fullbleed .game-banner-copy { padding:2.5rem 20px 2rem; }
  /* On a phone the banner was the largest block between the fold and the first candidate,
     at nearly 500px. It keeps the photo and the title and gives up the rest. */

  .hero-fullbleed .game-banner-copy { padding: 1.5rem 20px 1.25rem; }
  .hero-fullbleed .game-banner-title { font-size: 1.9rem; }
  .hero-fullbleed::before { background:linear-gradient(180deg, rgba(2,12,28,.30) 0%, rgba(2,12,28,.46) 40%, rgba(2,12,28,.60) 100%); }
  main .page-section { padding:28px 0; }
  .mode-grid,.player-grid { grid-template-columns:minmax(0,1fr); }
  main .chase-steps li { padding:16px; }
  .chase-steps p { font-size:.8rem; }
  main .home-banner { flex-direction:column; align-items:stretch; padding:24px; }
  main .chase-game-header { padding:20px; }
  .game-banner-title { font-size:2.5rem; }
  .draft-title h2 { font-size:1.3rem; }
  .draft-title .eyebrow { font-size:.65rem; }
  .scoreboard-matchup { gap:6px; padding:12px; }
  .scoreboard-team { padding:10px 8px; gap:6px; }
  .scoreboard-team strong { font-size:1rem; }
  .scoreboard-team b { font-size:2rem; }
  .scoreboard-team small { font-size:.6rem; }
  .share-card { padding:20px; }
  .final-actions > * { width:100%; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media print {
  body:has(#chase-share-card) > :not(main),#chase-app:has(#chase-share-card) > :not(#chase-stage),#chase-stage:has(#chase-share-card) > :not(#chase-share-card) { display:none!important; }
  #chase-share-card { background:white; color:var(--text-primary); border:1px solid; margin:0 auto; box-shadow:none; }
  #chase-share-card .eyebrow,#chase-share-card .share-record-label { color:var(--text-primary); }
}

/* A shared result is a receipt, not a page to explore. Record, the report
   card, the twelve names, one button. No grid of 162 squares, no link back
   into a finished game, nothing to click that does not start something new. */
body:has(#chase-app[data-mode="result"]) { background:var(--bg-page); }
.shared-result { max-width:36rem; margin:1.5rem auto 3rem; padding:0 1.25rem; text-align:center; }
.shared-result h2 { margin:0 0 .9rem; font-size:.72rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--text-secondary); }

/* Headline: the record and the overall score, side by side, as on a receipt. */
.shared-result .shared-score { display:flex; align-items:baseline; justify-content:center; gap:1.5rem; margin:.75rem 0 .35rem; }
.shared-result .shared-record { font-family:'Barlow Condensed',Impact,sans-serif; font-size:clamp(3.4rem,14vw,5.2rem); font-weight:900; line-height:.95; letter-spacing:-.02em; color:var(--c-blue-500); }
.shared-result .shared-record i { padding:0 .06em; font-style:normal; color:var(--text-primary); }
.shared-result .shared-record em { font-style:normal; color:var(--text-primary); }
.shared-result .shared-overall { display:flex; align-items:baseline; gap:.15rem; }
.shared-result .shared-overall strong { font-family:'Barlow Condensed',Impact,sans-serif; font-size:2.1rem; font-weight:900; line-height:1; color:var(--c-blue-500); }
.shared-result .shared-overall small { font-size:.8rem; font-weight:700; color:var(--text-secondary); }
.shared-result .shared-verdict { margin:0 0 1.5rem; font-size:.95rem; font-weight:800; color:var(--c-red-600); text-transform:uppercase; letter-spacing:.08em; }

/* Report card: six graded lines, including the weakest selected player. */
.report-card { margin:0 0 1rem; padding:1.15rem 1.25rem; border:1px solid var(--c-gray-200); border-radius:var(--radius-md); background:var(--bg-card); box-shadow:var(--shadow-sm); text-align:left; }
.report-rows { margin:0; }
.report-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.5rem 0; border-top:1px solid var(--c-gray-150); }
.report-row:first-child { border-top:0; padding-top:0; }
.report-row dt { font-weight:700; font-size:.98rem; color:var(--text-primary); }
.report-row dt small { display:block; margin-top:.2rem; font-size:.78rem; font-weight:400; color:var(--text-secondary); overflow-wrap:anywhere; }
.report-row dd { margin:0; }
.grade { display:inline-block; min-width:2.6rem; padding:.2rem .5rem; border-radius:var(--radius-sm); font-family:'Barlow Condensed',Impact,sans-serif; font-size:1.15rem; font-weight:900; line-height:1.15; text-align:center; }
.grade-Aplus, .grade-A { background:#e3f1fd; color:var(--c-blue-500); }
.grade-Bplus, .grade-B { background:#e7f6ee; color:var(--c-green-600); }
.grade-Bminus { background:#eef7f2; color:var(--c-green-600); }
.grade-Cplus, .grade-C, .grade-Cminus { background:#fdf3dd; color:#9a6b06; }
.grade-Dplus, .grade-D { background:#fdeaee; color:var(--c-red-600); }

/* Three named callouts: two good, one warning. */
.report-highlights { display:grid; gap:.6rem; margin:0 0 1rem; }
.highlight { padding:.85rem 1rem; border-radius:var(--radius-md); border:1px solid var(--c-gray-200); background:var(--bg-card); text-align:left; }
.highlight-label { margin:0 0 .15rem; font-size:.62rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--text-secondary); }
.highlight strong { display:block; font-size:1.05rem; font-weight:800; color:var(--text-primary); }
.highlight small { display:block; margin-top:.1rem; font-size:.78rem; color:var(--text-secondary); }
.highlight-good { border-left:3px solid var(--c-blue-500); }
.highlight-warn { border-left:3px solid var(--c-red-600); }
.highlight-warn .highlight-label { color:var(--c-red-600); }

/* Team profile: six labelled bars. */
.team-profile { margin:0 0 1.5rem; padding:1.15rem 1.25rem; border:1px solid var(--c-gray-200); border-radius:var(--radius-md); background:var(--bg-card); box-shadow:var(--shadow-sm); text-align:left; }
.profile-row { display:grid; grid-template-columns:5.4rem 1fr 2rem; align-items:center; gap:.6rem; padding:.3rem 0; }
.profile-label { font-size:.78rem; font-weight:700; color:var(--text-secondary); }
.profile-track { display:block; height:.55rem; border-radius:999px; background:var(--c-gray-150); overflow:hidden; }
.profile-fill { display:block; height:100%; border-radius:999px; background:var(--c-blue-500); }
.profile-score { font-family:'Barlow Condensed',Impact,sans-serif; font-size:.95rem; font-weight:900; color:var(--c-blue-500); text-align:right; }

.shared-roster { margin:0 0 1.5rem; text-align:left; }
.shared-result .roster-list { text-align:left; margin:0; }
.chase-button-lg { display:block; width:100%; padding:1rem; font-size:1.05rem; text-align:center; }

.missing-result { max-width:32rem; margin:3rem auto; padding:2rem; text-align:center; }
.missing-result h2 { margin:0 0 .5rem; }
.missing-result p { margin:0 0 1.5rem; color:var(--text-secondary); }
