/* =============================================================
   ParlayDesk — public sports pages (Public Pages, 2026-10-31)
   The visual foundation for every public, signed-out sports page
   (Phase 1: the NHL player template; Phase 2: the NHL team template;
   Phase 3: the NHL game template; Phase 4: the NHL schedule & results
   page, backend/lib/publicPages/). Loaded
   after /shared.css and uses its tokens (--text, --muted, --border,
   --accent, --accent2, --hit, --missed); only the surfaces below are new.
   Prefix: .pp-   docs/PUBLIC_PAGES.md
   ============================================================= */

.pp-body {
  --pp-surface: #0b1221;
  --pp-surface-2: #0e1628;
  --pp-line: rgba(255,255,255,.07);
  --pp-tint: rgba(59,130,246,.10);
  --pp-pro: #f5b400;
  --pp-radius: 16px;
  display: flex; flex-direction: column; min-height: 100vh;
}
.pp-main { flex: 1 0 auto; width: 100%; min-width: 0; }
.pp-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 24px 0; }

/* Signed-in / signed-out variants. SSR is signed out; public-pages.js (and
   the sessionStorage hint in <head>) set html.pd-auth-in. */
html:not(.pd-auth-in) [data-when="in"],
html.pd-auth-in [data-when="out"] { display: none !important; }

/* The public navbar (2026-11-17 owner, public navigation cleanup): the
   app's own #topbarNav in its PUBLIC SITE configuration — the homepage's
   Home / Game Center / Pricing (navbar.css "PUBLIC SITE CONFIGURATION":
   flat links from 900px, the section control below) — plus the app's
   Sport control, captioned "Sport Selector". Every rule here is keyed to
   `topbar__nav--site`, which PDAccountMenu drops on sign-in when it swaps
   in the app's sections: a signed-in visitor gets the normal app header,
   untouched. */
.pd-mnav__kicker { display: none; }
#topbarNav.topbar__nav--site .pd-mnav__kicker {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
  column-gap: .3em;
  padding-right: 10px;
  border-right: 1px solid rgba(255,255,255,.14);
  color: var(--muted);
  font-weight: 500;
}
/* "Sport Selector | NHL ▾": the caption stands where the sport icon was. */
#topbarNav.topbar__nav--site #pdMnavSportBtn .pd-mnav__ctl-icon { display: none; }

/* The sports pages' public header (topbar__nav--sports: the three links +
   the sport control) needs ~980px on one row. From 1000px: one row, links
   flat, the sport control at the end next to the actions — where it sits
   in the app's full-width header. */
@media (min-width: 1000px) {
  #topbarNav.topbar__nav--site.topbar__nav--sports .pd-mnav { display: flex; margin-left: auto; }
  #topbarNav.topbar__nav--site.topbar__nav--sports .pd-mnav__slot--page { display: none; }
}
/* Below 1000px: the section control carries the links (as on every page
   of the app below its full width) and both controls take their own row
   under the brand and the actions — the phone layout (navbar.css MOBILE),
   at the controls' natural width until 720px. */
@media (max-width: 999.98px) {
  #topbarNav.topbar__nav--site.topbar__nav--sports .mode-tabs { display: none; }
  #topbarNav.topbar__nav--site.topbar__nav--sports .pd-mnav { display: flex; }
}
/* Phones: "Game Center" and "Sport Selector | NHL" share one 44px row
   (358px at 390). The caption stacks into two short lines and the section
   control drops its icon, so neither label is ever cut. */
@media (max-width: 720px) {
  #topbarNav.topbar__nav--site.topbar__nav--sports .pd-mnav__kicker {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-right: 9px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  #topbarNav.topbar__nav--site.topbar__nav--sports #pdMnavPageBtn .pd-mnav__ctl-icon { display: none; }
}
@media (min-width: 720.02px) and (max-width: 999.98px) {
  .topbar:has(#topbarNav.topbar__nav--site.topbar__nav--sports) { flex-wrap: wrap; row-gap: 10px; padding-bottom: 10px; }
  .topbar:has(#topbarNav.topbar__nav--site.topbar__nav--sports) .topbar-left { order: 1; }
  .topbar:has(#topbarNav.topbar__nav--site.topbar__nav--sports) .topbar-right { order: 2; margin-left: auto; }
  #topbarNav.topbar__nav--site.topbar__nav--sports { order: 3; flex-basis: 100%; width: 100%; }
}
/* Its menu items are links here (mobile-nav.js sport links). */
a.pd-mnav__item { box-sizing: border-box; text-decoration: none; }
/* Signed-in Free / Pro variants (2026-11-11, lib/publicPages/researchTeasers.js).
   public-pages.js sets html.pd-tier-free | pd-tier-pro from /api/me's
   server-resolved capabilities; until then neither variant shows. */
html:not(.pd-tier-free) [data-tier="free"],
html:not(.pd-tier-pro) [data-tier="pro"],
html.pd-tier-pro [data-tier-hide="pro"] { display: none !important; }

/* Topbar CTA label swap (same rule as the legal/Community pages). */
.cta-full { display: inline; }
.cta-short { display: none; }
@media (max-width: 440px) {
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .topbar:has(#topbarNav[hidden]) { padding-top: 12px; padding-left: 14px; padding-right: 14px; }
  .topbar:has(#topbarNav[hidden]) .topbar-right { gap: 6px; }
  .topbar:has(#topbarNav[hidden]) .topbar-right .nav-btn { padding: 0 10px; font-size: 12.5px; }
}

/* ── Shared type ─────────────────────────────────────────────── */
.pp-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent2);
}
.pp-eyebrow-link {
  color: inherit; text-decoration: none; border-radius: 3px;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
/* Link hover = colour change only, every sport (owner, 2026-11-15). */
.pp-eyebrow-link:hover { color: #93c5fd; }
.pp-eyebrow-link:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.pp-k {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.pp-h2 { font-size: 15px; font-weight: 700; letter-spacing: -.005em; color: var(--text); }
.pp-empty { padding: 18px 0 6px; font-size: 13.5px; color: var(--muted); }

/* ── Cards ───────────────────────────────────────────────────── */
.pp-card {
  min-width: 0;
  padding: 20px 22px 22px;
  border: 1px solid var(--border); border-radius: var(--pp-radius);
  background: var(--pp-surface);
}
.pp-card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.pp-card-sub { font-size: 12.5px; color: var(--muted); }

/* ── Hero: identity + next game ──────────────────────────────── */
.pp-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, 280px); align-items: center; gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--border); border-radius: 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(59,130,246,.20) 0%, rgba(59,130,246,0) 55%),
    linear-gradient(180deg, var(--pp-surface-2), var(--pp-surface));
}
.pp-mark {
  position: relative;
  width: 108px; height: 108px; border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(155deg, #1d4ed8 0%, #1e3a8a 48%, #0f172a 100%);
  border: 1px solid rgba(96,165,250,.35);
  box-shadow: 0 10px 30px rgba(2,6,23,.55), inset 0 1px 0 rgba(255,255,255,.12);
}
.pp-mark-num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.pp-mark-hash { font-size: .55em; font-weight: 700; opacity: .65; margin-right: 1px; vertical-align: .38em; }
.pp-mark-team { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: rgba(219,234,254,.75); }
.pp-id { min-width: 0; }
.pp-name {
  margin: 6px 0 12px;
  font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -.025em; color: #f8fafc;
  overflow-wrap: anywhere;
}
.pp-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-fact {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 6px 11px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--pp-line);
}
.pp-fact-k { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.pp-next {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 4px 0 4px 24px; border-left: 1px solid var(--pp-line);
}
.pp-next-match { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.25; }
.pp-next-at { color: var(--muted); font-weight: 600; margin-right: 2px; }
.pp-next-when { font-size: 13.5px; color: var(--muted); }
.pp-next-none { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ── Body grid ───────────────────────────────────────────────── */
.pp-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start;
  margin-top: 20px;
}
.pp-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ── Season tiles ────────────────────────────────────────────── */
.pp-tiles { display: grid; gap: 10px; }
.pp-tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pp-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pp-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-tile {
  min-width: 0;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 6px;
  padding: 16px 8px 14px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--pp-line);
}
.pp-tile dd { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.pp-tile dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); cursor: default; }
.pp-tile.is-key { background: var(--pp-tint); border-color: rgba(96,165,250,.28); }
.pp-tile.is-key dd { color: #dbeafe; }
.pp-tile.is-key dt { color: var(--accent2); }

/* ── Recent games table ──────────────────────────────────────── */
.pp-table-wrap { overflow-x: auto; margin: 0 -6px; }
.pp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pp-table th, .pp-table td { padding: 11px 6px; text-align: center; white-space: nowrap; }
.pp-table thead th {
  padding-top: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--pp-line);
}
.pp-table thead abbr { text-decoration: none; cursor: default; }
.pp-table tbody tr + tr > * { border-top: 1px solid var(--pp-line); }
.pp-table tbody td { font-size: 15px; font-weight: 600; color: var(--text); }
.pp-table .pp-game { text-align: left; width: 34%; }
.pp-table .pp-res { text-align: left; }
.pp-table .is-key { color: #dbeafe; }
.pp-table thead .is-key { color: var(--accent2); }
.pp-game { font-weight: 400; }
.pp-opp { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); }
.pp-opp-at { color: var(--muted); font-weight: 600; }
.pp-date { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.pp-table tbody .pp-res { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pp-res-o { display: inline-block; min-width: 14px; font-weight: 800; }
.pp-res-o.is-w { color: var(--hit); }
.pp-res-o.is-l { color: #f87171; }
.pp-res-x { font-size: 11px; font-weight: 700; letter-spacing: .04em; }

/* ── Locked / teaser cards ───────────────────────────────────── */
.pp-locked { display: flex; flex-direction: column; gap: 12px; }
.pp-lock {
  position: relative; overflow: hidden; min-width: 0;
  border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--pp-surface);
}
/* Abstract, data-free art: blurred bars that read as "more here". */
.pp-lock-art {
  height: 54px; padding: 12px 18px 0;
  display: flex; align-items: flex-end; gap: 7px;
  filter: blur(2px); opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
          mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.pp-lock-art i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent2), rgba(59,130,246,.2)); }
.pp-lock-art i:nth-child(1) { height: 40%; } .pp-lock-art i:nth-child(2) { height: 70%; }
.pp-lock-art i:nth-child(3) { height: 52%; } .pp-lock-art i:nth-child(4) { height: 88%; }
.pp-lock-art i:nth-child(5) { height: 35%; } .pp-lock-art i:nth-child(6) { height: 64%; }
.pp-lock-art i:nth-child(7) { height: 78%; }
.pp-lock-art--line i { background: linear-gradient(180deg, rgba(245,180,0,.85), rgba(245,180,0,.12)); }
.pp-lock-art--line i:nth-child(odd) { height: 58%; } .pp-lock-art--line i:nth-child(even) { height: 30%; }
.pp-lock-body { position: relative; padding: 4px 18px 16px; margin-top: -8px; }
.pp-lock-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  font-size: 14.5px; font-weight: 700; color: var(--text);
}
.pp-lock-ic { display: inline-flex; width: 16px; height: 16px; color: var(--muted); }
.pp-lock-ic svg { width: 16px; height: 16px; }
/* PRO cards: the shared gold PRO lock (/pd-pro.css), 2026-11-18. */
.pp-pro-lock { --pd-lock-size: 16px; }
.pp-tier {
  padding: 2px 7px; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  color: var(--accent2); background: rgba(59,130,246,.12); border: 1px solid rgba(96,165,250,.22);
}
.pp-tier--pro { color: #1a1a1a; background: var(--pp-pro); border-color: var(--pp-pro); }
/* "Included": the visitor already has this feature. */
.pp-tier--ok { color: #86efac; background: rgba(34,197,94,.10); border-color: rgba(74,222,128,.28); }
.pp-lock-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.pp-lock .pp-lock-actions .pp-lock-link--quiet { color: var(--muted); }
.pp-lock .pp-lock-actions .pp-lock-link--quiet:hover { color: var(--text); }
.pp-lock-copy { margin: 6px 0 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pp-lock-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent2); text-decoration: none;
  border-radius: 6px;
}
.pp-lock-link svg { width: 14px; height: 14px; transition: transform 150ms; }
.pp-lock-link:hover { color: #93c5fd; }
.pp-lock-link:hover svg { transform: translateX(2px); }
.pp-lock-link:focus-visible, .pp-btn:focus-visible, .pp-pick a:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

/* ── CTA ─────────────────────────────────────────────────────── */
.pp-cta {
  padding: 20px; border-radius: 14px;
  border: 1px solid rgba(96,165,250,.28);
  background: radial-gradient(120% 120% at 100% 0%, rgba(59,130,246,.18), rgba(59,130,246,0) 60%), var(--pp-surface);
}
.pp-cta-title { font-size: 16px; font-weight: 700; color: var(--text); }
.pp-cta-copy { margin: 6px 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pp-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-cta-actions .pp-btn { flex: 1 1 auto; }
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: opacity 150ms, background 150ms;
}
.pp-btn--primary { color: #fff; background: linear-gradient(135deg, var(--accent), #2563eb); }
.pp-btn--primary:hover { opacity: .9; }
.pp-btn--primary:active { opacity: .8; }
.pp-btn--ghost { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--border); }
.pp-btn--ghost:hover { background: rgba(255,255,255,.07); }

/* #7a889e: 5.6:1 on the page (#020617), ≥ 4.97:1 on the card navies; still a
   step below --muted, so the note stays secondary (was #64748b, 4.2:1). */
.pp-note { margin: 22px 2px 0; font-size: 12px; line-height: 1.5; color: #7a889e; }

/* ── Not found / choose a player ─────────────────────────────── */
.pp-wrap--msg { max-width: 560px; padding-top: 56px; }
.pp-msg { padding: 28px; }
.pp-h1-msg { margin: 6px 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #f8fafc; }
.pp-msg-copy { margin-bottom: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pp-pick { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.pp-pick a {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px;
  text-decoration: none; background: rgba(255,255,255,.03); border: 1px solid var(--pp-line);
}
.pp-pick a:hover { background: rgba(255,255,255,.06); }
.pp-pick-name { font-size: 15px; font-weight: 700; color: var(--text); }
.pp-pick-meta { font-size: 12.5px; color: var(--muted); }

/* ── Team page (Phase 2) ─────────────────────────────────────── */
/* Team identity mark: the team code on a crest. ParlayDesk has no licensed
   team logos, so the code carries the identity (docs/PUBLIC_PAGES.md). */
.pp-crest {
  position: relative;
  width: 108px; height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding-bottom: 8px;
  border-radius: 24px 24px 54px 54px / 24px 24px 44px 44px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0) 0 46%, rgba(255,255,255,.07) 46% 58%, rgba(255,255,255,0) 58%),
    linear-gradient(160deg, #1d4ed8 0%, #1e3a8a 50%, #0f172a 100%);
  border: 1px solid rgba(96,165,250,.35);
  box-shadow: 0 10px 30px rgba(2,6,23,.55), inset 0 1px 0 rgba(255,255,255,.12);
}
.pp-crest-code { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: .02em; color: #fff; }
.pp-crest-league { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; color: rgba(219,234,254,.7); }

/* A partial record says so, inside its card. */
.pp-scope {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
  background: rgba(255,255,255,.025); border: 1px dashed rgba(148,163,184,.25);
}
.pp-scope strong { color: var(--text); font-weight: 700; }
.pp-scope-ic { flex: none; display: inline-flex; width: 16px; height: 16px; margin-top: 1px; color: var(--accent2); }
.pp-scope-ic svg { width: 16px; height: 16px; }

/* Last results: three compact tiles; each links to its game page when it
   has one (Phase 3). */
.pp-results { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pp-result { min-width: 0; display: flex; }
.pp-result-a {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--pp-line);
  font-variant-numeric: tabular-nums; text-decoration: none;
}
a.pp-result-a { transition: background 150ms, border-color 150ms; }
a.pp-result-a:hover { background: rgba(255,255,255,.06); border-color: rgba(96,165,250,.3); }
a.pp-result-a:focus-visible, .pp-next-link:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.pp-next-link {
  color: inherit; text-decoration: none; border-radius: 3px;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.pp-next-link:hover { color: #93c5fd; }
.pp-result-when { font-size: 12px; color: var(--muted); }
.pp-result-opp { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.2; }
.pp-result-opp abbr { text-decoration: none; cursor: default; }
.pp-result-score { font-size: 15px; font-weight: 600; color: var(--muted); }

/* Lineup: identity only, each row links to the player's page. */
.pp-lu-group + .pp-lu-group { margin-top: 16px; }
.pp-lu-group .pp-k { margin-bottom: 8px; }
.pp-lu-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 6px; }
.pp-lu-list li { min-width: 0; display: flex; }
.pp-pl {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 6px 12px 6px 8px; border-radius: 10px;
  text-decoration: none; color: var(--text);
  background: rgba(255,255,255,.025); border: 1px solid var(--pp-line);
  transition: background 150ms, border-color 150ms;
}
a.pp-pl:hover { background: rgba(255,255,255,.06); border-color: rgba(96,165,250,.3); }
.pp-pl:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.pp-pl-no {
  flex: none; min-width: 28px; text-align: right;
  font-size: 12.5px; font-weight: 700; color: var(--accent2); font-variant-numeric: tabular-nums;
}
.pp-pl-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pp-lu-toggle { display: none; }
.pp-pl-pos { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-decoration: none; cursor: default; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .pp-hero { grid-template-columns: auto minmax(0, 1fr); }
  .pp-next {
    grid-column: 1 / -1; gap: 4px;
    padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--pp-line);
  }
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-col--side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .pp-col--side .pp-locked { display: contents; }
  .pp-col--side .pp-cta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pp-wrap { padding: 18px 16px 0; }
  .pp-hero { gap: 16px; padding: 18px; border-radius: 18px; }
  .pp-mark { width: 76px; height: 76px; border-radius: 20px; }
  .pp-mark-num { font-size: 28px; }
  .pp-mark-team { font-size: 9.5px; letter-spacing: .14em; }
  .pp-name { margin: 4px 0 10px; font-size: 28px; }
  .pp-fact { padding: 5px 9px; font-size: 12.5px; }
  .pp-next-match { font-size: 16px; }
  .pp-grid, .pp-col { gap: 14px; }
  .pp-grid { margin-top: 14px; }
  .pp-col--side { display: flex; flex-direction: column; gap: 12px; }
  .pp-card { padding: 16px 16px 18px; border-radius: 14px; }
  .pp-tiles { gap: 6px; }
  .pp-tile { padding: 12px 2px 10px; border-radius: 10px; gap: 5px; }
  .pp-tile dd { font-size: 22px; }
  .pp-tile dt { font-size: 10px; letter-spacing: .06em; }
  .pp-table th, .pp-table td { padding: 10px 4px; }
  .pp-table tbody td { font-size: 14px; }
  .pp-crest { width: 76px; height: 84px; gap: 3px; padding-bottom: 6px; border-radius: 18px 18px 38px 38px / 18px 18px 30px 30px; }
  .pp-crest-code { font-size: 22px; }
  .pp-crest-league { font-size: 9px; letter-spacing: .16em; }
  .pp-results { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pp-result-a {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "opp score" "when score";
    align-items: center; gap: 2px 12px; padding: 10px 14px;
  }
  .pp-result-opp { grid-area: opp; font-size: 15px; }
  .pp-result-when { grid-area: when; }
  .pp-result-score { grid-area: score; font-size: 14.5px; }
  .pp-lu-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* Phones: first rows + "Show all N players" (presentation only; every
     row is in the HTML, and without JS — no html.pp-js — all show). */
  html.pp-js .pp-lineup.is-collapsed .pp-lu-more { display: none; }
  html.pp-js .pp-lineup.is-collapsed .pp-lu { position: relative; }
  html.pp-js .pp-lineup.is-collapsed .pp-lu::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none;
    background: linear-gradient(180deg, rgba(11,18,33,0), var(--pp-surface));
  }
  html.pp-js .pp-lu-toggle, html.pp-js .pp-sch-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 40px; margin-top: 10px; padding: 0 14px; border-radius: 10px;
    font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent2); cursor: pointer;
    background: rgba(59,130,246,.08); border: 1px solid rgba(96,165,250,.28);
  }
  html.pp-js .pp-lu-toggle::after, html.pp-js .pp-sch-toggle::after {
    content: ''; width: 7px; height: 7px; margin-top: -3px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  }
  html.pp-js .pp-lu-toggle[aria-expanded="true"]::after, html.pp-js .pp-sch-toggle[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
  .pp-lu-toggle:focus-visible, .pp-sch-toggle:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
  .pp-pl { min-height: 38px; padding: 4px 12px 4px 6px; }
}
@media (max-width: 380px) {
  .pp-hero { grid-template-columns: minmax(0, 1fr); }
  .pp-mark { flex-direction: row; gap: 8px; width: auto; height: auto; padding: 8px 12px; justify-self: start; border-radius: 12px; }
  .pp-mark-num { font-size: 20px; }
  .pp-crest { flex-direction: row; gap: 8px; width: auto; height: auto; padding: 8px 12px; justify-self: start; border-radius: 12px; }
  .pp-crest-code { font-size: 20px; }
  .pp-name { font-size: 26px; }
  .pp-table .pp-game { width: auto; }
  .pp-table tbody td { font-size: 13.5px; }
  .pp-table tbody .pp-res { font-size: 12.5px; }
  .pp-opp { font-size: 13.5px; }
  .pp-date { font-size: 11px; }
}
/* ── Game page (Phase 3) ─────────────────────────────────────── */
/* Hero: title block, then the two-team scoreboard, then one line of plain
   result/status text. Same card, gradient and width as the player/team
   heroes; team identity is the code (no licensed logos). */
.pp-ghero { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
.pp-ghead { min-width: 0; }
.pp-gname { margin-bottom: 6px; font-size: 34px; }
.pp-gname-at { font-weight: 600; color: var(--muted); }
.pp-gdate { font-size: 14px; color: var(--muted); }
.pp-sb {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 20px 22px; border-radius: 16px;
  background: rgba(2,6,23,.35); border: 1px solid var(--pp-line);
}
.pp-sb-team { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pp-sb-crest {
  width: 64px; height: 70px;
  display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
  border-radius: 16px 16px 32px 32px / 16px 16px 26px 26px;
  font-size: 19px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0) 0 46%, rgba(255,255,255,.07) 46% 58%, rgba(255,255,255,0) 58%),
    linear-gradient(160deg, #1d4ed8 0%, #1e3a8a 50%, #0f172a 100%);
  border: 1px solid rgba(96,165,250,.35);
  box-shadow: 0 8px 22px rgba(2,6,23,.5), inset 0 1px 0 rgba(255,255,255,.12);
}
.pp-sb-name {
  max-width: 100%; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--text);
  text-decoration: none; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; border-radius: 4px;
}
/* Hero team names: no underline; a brand-blue brightening instead. */
a.pp-sb-name { transition: color 150ms; }
a.pp-sb-name:hover { color: #93c5fd; }
a.pp-sb-name:focus-visible { color: #93c5fd; outline: 2px solid var(--accent2); outline-offset: 3px; }
.pp-sb-side { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pp-sb-team.is-loss .pp-sb-crest { filter: saturate(.45) brightness(.8); }
.pp-sb-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 120px; }
.pp-sb-score {
  display: flex; align-items: center; gap: 12px;
  font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #f8fafc;
}
.pp-sb-n.is-loss { color: #64748b; }
.pp-sb-dash { font-size: .6em; font-weight: 600; color: #475569; }
.pp-sb-at { font-size: 30px; font-weight: 700; line-height: 1; color: #475569; }
.pp-sb-when { font-size: 13.5px; color: var(--muted); text-align: center; }
.pp-sb-when time { color: var(--text); font-weight: 600; }
.pp-gstatus {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--pp-line);
}
.pp-gstatus--final { color: #dbeafe; background: var(--pp-tint); border-color: rgba(96,165,250,.28); }
.pp-gstatus--scheduled { color: var(--accent2); background: rgba(59,130,246,.08); border-color: rgba(96,165,250,.22); }
/* Live is green, as in Game Center Overview (2026-11-12). */
.pp-gstatus--live { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.38); }
.pp-gstatus--postponed, .pp-gstatus--cancelled, .pp-gstatus--suspended, .pp-gstatus--not_played { color: #fde68a; background: rgba(245,180,0,.10); border-color: rgba(245,180,0,.3); }
.pp-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
@media (prefers-reduced-motion: no-preference) {
  .pp-live-dot { animation: pp-live-pulse 2s ease-out infinite; }
}
@keyframes pp-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.pp-gsum { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--text); text-align: center; }
.pp-gsum:not(.pp-gsum--final) { font-size: 13.5px; font-weight: 400; color: var(--muted); }

/* Scoring by period: goals only, two rows. */
.pp-ptable thead th { padding-bottom: 9px; }
.pp-ptable th, .pp-ptable td { width: 11%; }
.pp-ptable .pp-pt-team { width: auto; text-align: left; }
.pp-ptable tbody .pp-pt-team { font-size: 14.5px; font-weight: 700; color: var(--text); }
.pp-pt-code { display: none; text-decoration: none; cursor: default; }
.pp-ptable tbody td { color: var(--muted); }
.pp-ptable tbody .pp-pt-final { font-size: 17px; font-weight: 800; color: var(--text); }
.pp-ptable tbody tr:not(.is-win) .pp-pt-final { color: var(--muted); }
.pp-ptable thead .pp-pt-final { color: var(--accent2); }
.pp-pt-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.pp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Teams: one link row per side, to the team page. */
.pp-gt-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pp-gt-list li { min-width: 0; display: flex; }
.pp-gt {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: rgba(255,255,255,.025); border: 1px solid var(--pp-line);
}
a.pp-gt { transition: background 150ms, border-color 150ms; }
a.pp-gt:hover { background: rgba(255,255,255,.06); border-color: rgba(96,165,250,.3); }
a.pp-gt:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.pp-gt > svg { flex: none; width: 15px; height: 15px; color: var(--accent2); }
.pp-gt-code {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: #dbeafe;
  background: linear-gradient(160deg, #1d4ed8, #1e3a8a 60%, #0f172a); border: 1px solid rgba(96,165,250,.3);
}
.pp-gt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-gt-name { font-size: 14.5px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.pp-gt-sub { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .pp-gt-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pp-ghero { gap: 16px; }
  .pp-gname { font-size: 24px; }
  .pp-gdate { font-size: 13px; }
  .pp-sb { gap: 8px; padding: 16px 10px; border-radius: 14px; }
  .pp-sb-crest { width: 46px; height: 50px; font-size: 14px; border-radius: 12px 12px 24px 24px / 12px 12px 19px 19px; }
  .pp-sb-name { font-size: 13.5px; }
  .pp-sb-side { font-size: 9.5px; }
  .pp-sb-mid { min-width: 0; gap: 6px; }
  .pp-sb-score { font-size: 38px; gap: 6px; }
  .pp-sb-at { font-size: 24px; }
  .pp-sb-when { font-size: 12px; }
  .pp-gstatus { padding: 2px 8px; font-size: 10px; letter-spacing: .08em; }
  .pp-gsum { font-size: 14px; }
  .pp-pt-code { display: inline; }
  .pp-pt-name { display: none; }
  .pp-ptable tbody .pp-pt-team { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .pp-sb { padding: 14px 6px; gap: 4px; }
  .pp-sb-name { font-size: 12px; }
  .pp-sb-score { font-size: 28px; gap: 3px; }
  .pp-sb-crest { width: 40px; height: 44px; font-size: 12.5px; }
}

/* ── Schedule & results (Phase 4) ────────────────────────────── */
/* Hero: title block only, same card and width as the other heroes. */
.pp-shero { display: block; }
.pp-sname { margin-bottom: 6px; font-size: 34px; }
.pp-ssub { font-size: 14px; color: var(--muted); }
.pp-sjump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
a.pp-sjump-a { text-decoration: none; transition: background 150ms, border-color 150ms; }
a.pp-sjump-a:hover { background: rgba(255,255,255,.07); border-color: rgba(96,165,250,.3); }
a.pp-sjump-a:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
/* Jump links (#upcoming / #recent, and a direct link to either): the
   section settles 16px below the sticky topbar. --pp-topbar-h is the
   topbar's measured height (public-pages.js); the fallbacks are its
   signed-out heights, so a load straight onto #recent lands right before
   the script runs. Smooth scrolling only without a reduced-motion wish. */
html:has(.pp-schedule) { --pp-topbar-h: 69px; scroll-padding-top: calc(var(--pp-topbar-h) + 16px); }
@media (max-width: 720px) { html:has(.pp-schedule) { --pp-topbar-h: 63px; } }
@media (prefers-reduced-motion: no-preference) { html:has(.pp-schedule) { scroll-behavior: smooth; } }

/* Day groups: the ET date, then the day's games. */
.pp-sch-day + .pp-sch-day { margin-top: 18px; }
.pp-sch-date {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.pp-sch-rel {
  padding: 1px 7px; border-radius: 6px;
  font-size: 10px; letter-spacing: .06em; color: var(--accent2);
  background: rgba(59,130,246,.12); border: 1px solid rgba(96,165,250,.22);
}
.pp-sch-games { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-sg-li { min-width: 0; display: flex; }

/* One game: status line, then away and home (code, name, score). The whole
   row is the game-page link. */
.pp-sg {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "status" "away" "home"; gap: 8px;
  padding: 12px 14px 13px; border-radius: 12px;
  text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border: 1px solid rgba(148,163,184,.2);
}
a.pp-sg { transition: background 150ms, border-color 150ms; }
a.pp-sg:hover { background: rgba(255,255,255,.06); border-color: rgba(96,165,250,.3); }
a.pp-sg:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.pp-sg-team { min-width: 0; display: flex; align-items: center; gap: 10px; }
.pp-sg-team--away { grid-area: away; }
.pp-sg-team--home { grid-area: home; }
/* The team's code: its team-colored badge (/team-badges.css, .pd-tb). */
.pp-sg-code { --tb-h: 26px; --tb-w: 54px; }
.pp-sg-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pp-sg-n { flex: none; min-width: 22px; text-align: right; font-size: 18px; font-weight: 800; }
.pp-sg-team.is-win .pp-sg-name { font-weight: 700; }
.pp-sg-team.is-loss .pp-sg-name, .pp-sg-team.is-loss .pp-sg-n { color: var(--muted); }
.pp-sg-status {
  grid-area: status; justify-self: start;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.pp-sg-status--final { color: #93c5fd; }
.pp-sg-status--time { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.pp-sg-status--live { color: #fecaca; }
.pp-sg-status--postponed, .pp-sg-status--cancelled, .pp-sg-status--suspended, .pp-sg-status--not_played { color: #fde68a; }
.pp-sch .pp-scope { margin-top: 16px; }

/* Teams: every team's code, to its team page. */
.pp-st-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.pp-st-list li { min-width: 0; display: flex; }
.pp-st {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 9px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: #dbeafe; text-decoration: none;
  background: rgba(255,255,255,.03); border: 1px solid var(--pp-line);
  transition: background 150ms, border-color 150ms;
}
.pp-st:hover { background: rgba(59,130,246,.12); border-color: rgba(96,165,250,.3); }
.pp-st:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.pp-sch-toggle { display: none; }

@media (max-width: 900px) {
  .pp-col--side .pp-steams { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pp-sname { font-size: 26px; }
  .pp-ssub { font-size: 13.5px; }
  .pp-sjump { margin-top: 12px; }
  .pp-sch-day + .pp-sch-day { margin-top: 14px; }
  .pp-sch-games { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  /* Phones: status at the right, two lines per game. */
  .pp-sg {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "away status" "home status";
    gap: 3px 10px; padding: 7px 10px 7px 12px;
  }
  .pp-sg-team { gap: 8px; }
  .pp-sg-code { --tb-h: 21px; --tb-w: 46px; padding: 0 5px; }
  .pp-sg-status { letter-spacing: .05em; }
  /* Two-word labels (Result pending) wrap in a narrow right column, so the
     team names keep the width. */
  .pp-sg-status { justify-self: end; align-self: center; width: min-content; white-space: normal; text-align: right; line-height: 1.25; }
  .pp-sg-status--live { width: auto; white-space: nowrap; }
  .pp-sg-status--time { width: auto; white-space: nowrap; }
  .pp-sg-name { font-size: 14px; }
  a.pp-sjump-a { min-height: 36px; align-items: center; }
  .pp-sg-n { font-size: 16px; }
  /* Phones: first rows + "Show all N" (presentation only; every row is in
     the HTML, and without JS — no html.pp-js — all show). */
  html.pp-js .pp-sch.is-collapsed .pp-sch-more { display: none; }
  html.pp-js .pp-sch.is-collapsed .pp-sch-days { position: relative; }
  html.pp-js .pp-sch.is-collapsed .pp-sch-days::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none;
    background: linear-gradient(180deg, rgba(11,18,33,0), var(--pp-surface));
  }
}
@media (max-width: 380px) {
  /* Narrow phones: the status takes its own top line (the approved card's
     head row), so long team names keep the full width beside their badge. */
  .pp-sg { padding: 7px 10px 8px; gap: 3px 8px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "status" "away" "home"; }
  .pp-sg-status, .pp-sg-status--live, .pp-sg-status--time { justify-self: start; width: auto; white-space: nowrap; text-align: left; }
  .pp-sg-status.has-gn { flex-direction: row; align-items: center; gap: 5px; }
  .pp-sg-gn::before { content: '·'; margin-right: 5px; }
  .pp-sg-code { --tb-h: 20px; --tb-w: 45px; padding: 0 4px; }
  .pp-sg-status { font-size: 10px; letter-spacing: .05em; }
  .pp-sg-status--time { font-size: 12px; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-lock-link svg, .pp-pl, a.pp-result-a, a.pp-gt, a.pp-sb-name, a.pp-sg, a.pp-sjump-a, .pp-st { transition: none; }
}

/* NBA player page (NBA phase 1): basketball scores are three digits, so on
   the narrowest phones the result may wrap between W/L, score and OT label
   (never inside the score) and the stat columns keep fitting their card.
   Scoped: NHL tables never carry the modifier. */
@media (max-width: 380px) {
  .pp-table--nba th, .pp-table--nba td { padding-left: 3px; padding-right: 3px; }
  .pp-table--nba .pp-res { white-space: normal; }
  .pp-table--nba .pp-res-s, .pp-table--nba .pp-res-x { white-space: nowrap; }
}

/* NFL pages (NFL suite, 2026-11-01). A tie is a real NFL result: neutral,
   neither the win green nor the loss red. The recent-games table keeps
   fitting at 320px with "2/3"-style kicking cells and three-digit yards,
   the NBA table's narrow-phone rule. Scoped: NHL/NBA never carry these. */
.pp-res-o.is-t { color: var(--text); }
@media (max-width: 380px) {
  .pp-table--nfl th, .pp-table--nfl td { padding-left: 3px; padding-right: 3px; }
  .pp-table--nfl .pp-res { white-space: normal; }
  .pp-table--nfl .pp-res-s, .pp-table--nfl .pp-res-x { white-space: nowrap; }
}

/* MLB pages (MLB suite, 2026-11-01). A two-way player's season and recent
   cards hold two labelled lines (batting, pitching). Four tiles hold
   five-character values ("198.1" IP, "1.000" AVG), so on the narrowest
   phones their values step down to fit. The recent table
   keeps fitting at 320px with "2-4" hit cells, IP like "6.2" and an
   extra-innings label, the NFL table's narrow-phone rule. Scoped: other
   sports never carry these. */
.pp-mlb-line + .pp-mlb-line { margin-top: 18px; }
.pp-mlb-line > .pp-k { margin-bottom: 8px; }
@media (max-width: 380px) {
  .pp-tiles--mlb .pp-tile dd { font-size: 18px; }
  .pp-table--mlb th, .pp-table--mlb td { padding-left: 3px; padding-right: 3px; }
  .pp-table--mlb .pp-res { white-space: normal; }
  .pp-table--mlb .pp-res-s, .pp-table--mlb .pp-res-x { white-space: nowrap; }
}
/* MLB schedule: a doubleheader row names its game after the status
   ("FINAL · GAME 2"); on phones, where the status is a narrow right
   column, it takes its own line under the status. */
.pp-sg-gn { color: var(--muted); white-space: nowrap; }
.pp-sg-gn::before { content: '·'; margin-right: 5px; }
@media (max-width: 640px) {
  .pp-sg-status.has-gn { flex-direction: column; align-items: flex-end; gap: 1px; }
  .pp-sg-gn::before { content: none; }
}

/* NHL Public Pages 2.0: shared interaction rules (interaction audit,
   2026-11-09, BETA). Scoped to the four NHL 2.0 wrappers, so the other
   sports' pages (same base classes) do not change.
   - Text links: hover and keyboard focus both brighten to #93c5fd with a
     150ms colour transition. Name links (white or muted at rest) need no
     second cue (the scoreboard names' language). Links already blue at
     rest keep the arrow nudge (CTAs). No hover underlines anywhere
     (owner, 2026-11-15: colour change is ParlayDesk's hover language).
   - CTA lock links: a ~43px touch target, and the "NHL" breadcrumb a
     47×30px one, both as a transparent ::before (no layout change), kept
     inside the free space around them (the copy above, the card edge
     below; the hero padding above, the heading below). */
:is(.pp-team2, .pp-player2, .pp-game2, .pp-sched2) :is(.pp-eyebrow-link, .pp-next-link, .pp-lock-link) { transition: color 150ms; }
:is(.pp-team2, .pp-player2, .pp-game2, .pp-sched2) :is(.pp-eyebrow-link, .pp-next-link, .pp-lock-link):focus-visible { color: #93c5fd; }
:is(.pp-team2, .pp-player2) .pp-next-link:hover { text-decoration-line: none; }
:is(.pp-team2, .pp-player2, .pp-game2, .pp-sched2) .pp-lock-link { position: relative; padding-block: 5px; margin-block: -5px; }
:is(.pp-team2, .pp-player2, .pp-game2, .pp-sched2) .pp-lock-link::before { content: ''; position: absolute; inset: -6px -6px -12px; }
:is(.pp-team2, .pp-player2, .pp-game2) .pp-eyebrow-link { position: relative; }
:is(.pp-team2, .pp-player2, .pp-game2) .pp-eyebrow-link::before { content: ''; position: absolute; inset: -14px -8px -2px; }
@media (prefers-reduced-motion: reduce) {
  :is(.pp-team2, .pp-player2, .pp-game2, .pp-sched2) :is(.pp-eyebrow-link, .pp-next-link, .pp-lock-link) { transition: none; }
}

/* "Show all" toggles, every sport (lineup and schedule; final polish,
   2026-11-09): the base :hover never applied (html.pp-js outranks it). It
   does now, on hover-capable pointers only, so a tap does not leave it
   lit. Rest appearance, layout and the phone-only display unchanged. */
html.pp-js :is(.pp-lu-toggle, .pp-sch-toggle) { transition: background 150ms, border-color 150ms; }
@media (hover: hover) {
  html.pp-js :is(.pp-lu-toggle, .pp-sch-toggle):hover { background: rgba(59,130,246,.14); border-color: rgba(96,165,250,.42); }
}
@media (prefers-reduced-motion: reduce) {
  html.pp-js :is(.pp-lu-toggle, .pp-sch-toggle) { transition: none; }
}

/* Signed-in way back into the app (Unified Game Center Phase 1,
   2026-11-09; /pd-return.js): one quiet "← Back to Research · <player>"
   link between the header and the page, in the page's own column. Shown
   only to a signed-in visitor who came from the app; ParlayDesk blue on
   hover/focus like every other navigation control. */
.pd-return { width: 100%; max-width: 1120px; margin: 0 auto; padding: 14px 24px 0; box-sizing: border-box; }
.pd-return[hidden] { display: none; }
.pd-return:not([hidden]) ~ .pp-main .pp-wrap { padding-top: 14px; }
/* The link itself is the shared back control (.pd-back, /pd-back.css,
   2026-11-10): the same look in the app's Game Center and Research. */
@media (max-width: 640px) {
  .pd-return { padding: 10px 16px 0; }
  .pd-return:not([hidden]) ~ .pp-main .pp-wrap { padding-top: 12px; }
}

/* =============================================================
   Unified Game Center (2026-11-10, BETA)
   ============================================================= */
/* The shared compact header (/gc-header.css) sits in the page's width,
   above the page's own content. */
.pp-gcx-wrap { padding-bottom: 0; }
.pp-gcx-wrap ~ .pp-wrap { padding-top: 0; }
.pp-gcx-wrap .gcx { margin-bottom: 18px; }
.pd-return:not([hidden]) ~ .pp-main .pp-gcx-wrap { padding-top: 14px; }
@media (max-width: 640px) {
  .pp-gcx-wrap .gcx { margin-bottom: 14px; }
  .pd-return:not([hidden]) ~ .pp-main .pp-gcx-wrap { padding-top: 12px; }
}

/* Favorites ★ (/pp-gamecenter.js fills .pp-fav-slot; /pd-favorites.css
   styles the star). Player page: beside the name. */
.pp-name-row { display: flex; align-items: center; gap: 6px 14px; min-width: 0; }
.pp-name-row .pp-name { min-width: 0; }
.pp-fav-slot { display: inline-flex; flex: none; }
.pp-fav-slot:empty { display: none; }
.pp-fav-slot--hero .pd-fav-btn { width: 36px; height: 36px; margin: 0; border: 1px solid rgba(148,163,184,.24); border-radius: 10px; background: rgba(255,255,255,.03); }
.pp-fav-slot--hero .pd-fav-icon { width: 20px; height: 20px; }
.pp-fav-slot--hero .pd-fav-btn[data-fav-on="true"] { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.08); }
/* Phones (2026-11-11, pre-v1.9.0 blocker): the 2.0 player hero stacks the
   number tile on its own row up to 480px (public-player.css), so the star
   moves to that row's right end. The name then has the hero's full width
   and is never crowded by, or wrapped around, the star; the star keeps a
   40px box (plus pd-favorites.css's touch ::after). DOM order — name, then
   star — is unchanged for assistive tech. */
/* The team hero (unified four-sport pages, 2026-11-11: a team star beside
   the team name) stacks the same way, so its star takes the same place. */
@media (max-width: 480px) {
  .pp-phero .pp-fav-slot--hero, .pp-thero .pp-fav-slot--hero { position: absolute; top: 15px; right: 14px; z-index: 1; }
  .pp-phero .pp-fav-slot--hero .pd-fav-btn, .pp-thero .pp-fav-slot--hero .pd-fav-btn { width: 40px; height: 40px; }
}
/* Lineup / player rows: the star sits at the row's end, outside the link
   (the name stays one plain link). Pointer screens show it on hover or
   keyboard focus; a favorite's star always shows; touch screens always
   show it, quieter. */
.pp-fav-row { position: relative; }
.pp-fav-row > .pp-fav-slot { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); }
.pp-fav-row > a.pp-pl { padding-right: 34px; }
.pp-fav-row .pd-fav-btn { width: 30px; height: 30px; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .pp-fav-row .pd-fav-btn { opacity: 0; transition: opacity 120ms, color 120ms, background-color 120ms; }
  .pp-fav-row:hover .pd-fav-btn, .pp-fav-row:focus-within .pd-fav-btn,
  .pp-fav-row .pd-fav-btn[data-fav-on="true"], .pp-fav-row .pd-fav-btn[aria-expanded="true"] { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  .pp-fav-row .pd-fav-btn[data-fav-on="false"] { color: #7a889e; }
  .pp-fav-row .pd-fav-btn { width: 40px; height: 40px; }
  .pp-fav-row > a.pp-pl { padding-right: 46px; }
}
/* The signed-out prompt. */
.pp-fav-prompt {
  position: absolute; z-index: 60; box-sizing: border-box; padding: 14px 16px 16px;
  border: 1px solid rgba(96,165,250,.35); border-radius: 14px;
  background: linear-gradient(180deg, #0f182b, #0b1221); box-shadow: 0 18px 40px rgba(0,0,0,.5);
  color: #e5e7eb;
}
.pp-fav-prompt[hidden] { display: none; }
.pp-fav-prompt-t { margin: 0 28px 6px 0; font-size: 15px; font-weight: 800; }
.pp-fav-prompt-c { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.pp-fav-prompt-a { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-fav-prompt-a .pp-btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.pp-fav-prompt-x {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.pp-fav-prompt-x:hover, .pp-fav-prompt-x:focus-visible { color: #fff; background: rgba(255,255,255,.06); outline: none; }
@media (prefers-reduced-motion: reduce) {
  .pp-fav-row .pd-fav-btn { transition: none; }
}

/* ── Game Center surfaces (2026-11-10, BETA) ─────────────────────
   Visual consistency pass: the NHL Game Center pages (every page with the
   shared Game Center tabs: body.pp-has-gcx — team, player, game, schedule
   and the public Game Center views) use the app's own flat card (Stats /
   Active / History: styles.css --card-bg rgba(255,255,255,.035),
   --card-border rgba(255,255,255,.08), --card-shadow, 16px radius) — here
   as its opaque rendered colour over the page, so the phones' "Show all"
   fades (which end on --pp-surface) still match the card. No gradients,
   washes or glass. Heroes are plain cards that keep only their thin team-
   colour top edge; team colour stays in badges, tiles and scoring edges.
   Inner rows are flat too. Other sports' pages are unchanged. */
body.pp-has-gcx {
  --pp-card-bg: #0f1524;
  --pp-surface: #0f1524;
  --pp-surface-2: #0f1524;
  --pp-card-border: rgba(255,255,255,.08);
  --pp-card-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 8px 20px rgba(0,0,0,.35);
  --pp-card-radius: 16px;
  --pp-row-bg: rgba(255,255,255,.03);
  --pp-row-border: rgba(255,255,255,.08);
}
body.pp-has-gcx .pp-card,
body.pp-has-gcx .pp-lock,
body.pp-has-gcx .pp-gcd,
body.pp-has-gcx .pp-cta,
body.pp-has-gcx .pp-ghero,
body.pp-has-gcx .pp-thero,
body.pp-has-gcx .pp-phero,
body.pp-has-gcx .pp-hero {
  border-color: var(--pp-card-border); border-radius: var(--pp-card-radius);
  background: var(--pp-card-bg);
  box-shadow: var(--pp-card-shadow);
}
body.pp-has-gcx .pp-btn--primary { background: var(--accent, #3b82f6); }
body.pp-has-gcx .pp-sched2 .pp-sg,
body.pp-has-gcx .pp-team2 .pp-trows .pp-result-a {
  background: var(--pp-row-bg); border-color: var(--pp-row-border);
}
body.pp-has-gcx .pp-sched2 .pp-sg:has(.pp-sg-status--live) {
  background: var(--pp-row-bg); border-color: rgba(248,113,113,.34);
}
body.pp-has-gcx .pp-gcd { --gc-card: var(--pp-row-bg); }
@media (max-width: 640px) {
  body.pp-has-gcx { --pp-card-radius: 14px; }
}

/* ── Game Center parity: player rows with the shared jersey tile
   (2026-11-15 owner correction). The app's Game Center row: 40-44px enamel
   tile (#N over the team code), name, quiet meta, 12px corners. ── */
.pp-pl:has(.pd-jt) { gap: 12px; min-height: 52px; padding: 6px 12px 6px 6px; border-radius: 12px; }
.pp-team2 .pp-pl:has(.pd-jt) { gap: 12px; min-height: 52px; padding: 6px 10px 6px 6px; border-radius: 12px; }
.pp-pl .pd-jt { flex: none; }
.pp-pl-name { text-decoration: none; }

/* The favorite star's room (2026-11-22). The star is absolutely placed at the
   row's right edge, so the link must keep room for it whatever row variant
   applies: the jersey-tile rows above (.pp-team2 .pp-pl:has(.pd-jt), higher
   specificity) reset padding-right to 10px and the star covered the position
   badge (Artturi Lehkonen's LW). One custom property, one winning rule. */
.pp-fav-row { --pp-fav-room: 38px; }
.pp-fav-row > a.pp-pl, .pp-fav-row > a.pp-pl:has(.pd-jt), .pp-team2 .pp-fav-row > a.pp-pl, .pp-team2 .pp-fav-row > a.pp-pl:has(.pd-jt) { padding-right: var(--pp-fav-room); }
@media (hover: none), (pointer: coarse) { .pp-fav-row { --pp-fav-room: 48px; } }

/* Roster availability (teamRosterNow.js): the injury pill under the name. */
.pp-pl-id { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pp-pl-id .pp-pl-name { flex: none; max-width: 100%; }
.pp-pl-id .pd-inj { margin-left: 0; font-size: 10px; line-height: 1.35; }

/* ── Unified Game Center frame (2026-11-16, owner correction) ──────────
   Every Game Center page — team, player and game pages, like the hub and
   the schedule (/gc/gc-public.css .pd-gc-frame) — sits in the app's own
   frame (apps/styles.css main.container: 1180px, 16px gutters, 30px top on
   desktop, 12 + 10px on phones up to 768px), so the shared header and the
   content never jump moving between Overview, Teams, Players, Schedule and
   a team / player / game page, signed in or not. The pages' content is
   unchanged. The way-back bar keeps its own spacing (rules above). */
body.pp-has-gcx .pp-wrap { max-width: 1180px; padding-left: 16px; padding-right: 16px; }
body.pp-has-gcx .pp-gcx-wrap { padding-top: 30px; }
body.pp-has-gcx .pp-gcx-wrap .gcx { margin-bottom: 16px; }
@media (max-width: 768px) {
  body.pp-has-gcx .pp-gcx-wrap { padding-top: 22px; }
  body.pp-has-gcx .pp-gcx-wrap .gcx { margin-bottom: 12px; }
}

/* Account-aware PRO card (v2.2.1 RC3 player sidebar; v2.2.3 RC3 shared by
   player, team and game pages, researchTeasers.js proPromoCard): what PRO
   adds (guest / Free), or shortcuts (PRO). Its action is the pages' own
   primary button (.pp-btn--primary) for guest and Free alike — PRO gold
   stays on the PRO tag, never on the button (owner, 2026-11-24). */
.pp-promo { display: flex; flex-direction: column; gap: 12px; }
.pp-promo-v { display: flex; flex-direction: column; gap: 12px; }
.pp-promo-h { display: flex; align-items: center; gap: 8px; margin: 0; }
.pp-promo-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pp-promo-i { min-width: 0; }
.pp-promo-i, .pp-promo-a { display: flex; align-items: flex-start; gap: 10px; }
.pp-promo-a { margin: -6px; padding: 6px; border-radius: 10px; color: inherit; text-decoration: none; }
.pp-promo-a:hover { background: rgba(255,255,255,.04); }
.pp-promo-a:focus-visible { outline: 2px solid #60a5fa; outline-offset: 0; }
.pp-promo-ic { flex: none; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; background: rgba(96,165,250,.12); color: #93c5fd; }
.pp-promo-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--muted, #94a3b8); }
.pp-promo-tx b { color: var(--text, #e5e7eb); font-size: 14px; }
.pp-promo-go { margin-left: auto; align-self: center; color: var(--muted, #94a3b8); font-size: 20px; line-height: 1; }
.pp-promo-cta { align-self: stretch; justify-content: center; text-align: center; }
.pp-promo-more { align-self: center; font-size: 13px; font-weight: 600; color: #93c5fd; text-decoration: none; }
.pp-promo-more:hover { color: #bfdbfe; text-decoration: underline; }
.pp-promo-more:focus-visible { outline: 2px solid var(--accent2, #60a5fa); outline-offset: 3px; border-radius: 4px; }
.pp-promo-more[hidden] { display: none; }
/* A PRO account never sees the upgrade variant, a guest / Free never the shortcuts. */
html.pd-tier-pro .pp-promo [data-tier-hide="pro"] { display: none; }
html.pd-auth-in:not(.pd-tier-free):not(.pd-tier-pro) .pp-promo [data-tier-hide="pro"] { display: none; } /* tier not known yet: no upgrade pitch on a guess */
.pp-promo-fine { text-align: center; margin-top: -4px; }

.pp-lock-body .pd-trial-fine { margin-top: 4px; font-size: 11.5px; }
