/* ═══════════════════════════════════════════════════════════
   Walk to Queens — Shared Styles
   Mets-themed, whimsical, fully responsive
   ═══════════════════════════════════════════════════════════ */

/* ── ROOT VARIABLES ── */
:root {
  --mets-blue: #003087;
  --mets-blue-light: #0050b3;
  --mets-orange: #FF5910;
  --mets-orange-light: #ff7a3d;
  --mets-white: #FFFFFF;
  --bg-cream: #FFFBF0;
  --bg-page: #f4f1ea;

  /* Sky colors (applied via body class) */
  --sky-morning: #fde8c8;
  --sky-day: #87CEEB;
  --sky-afternoon: #FDB97D;
  --sky-dusk: #9B72CF;
  --sky-night: #1a1a3e;

  --text-primary: #1A1A2E;
  --text-muted: #6B7280;
  --card-bg: #FFFFFF;
  --card-border: rgba(0,0,0,0.08);

  /* Meg = blue, BF = orange, Nate = Mets black */
  --meg-color: #003087;
  --meg-light: #e8f0ff;
  --bf-color: #FF5910;
  --bf-light: #fff3ee;
  --nate-color: #1B2631;
  --nate-light: #F0F2F5;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);

  --transition: 0.25s ease;
}

/* ── OPENMOJI SHARED ICON ── */
.om-icon {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { color: inherit; text-decoration: none; }
code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  background: rgba(0,0,0,0.07);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ── ACCESSIBILITY ── */
:focus-visible {
  outline: 2px solid var(--mets-orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-nav .nav-link:focus-visible { outline-color: rgba(255,255,255,0.85); }
.cal-nav-btn:focus-visible { border-radius: 50%; }
.cal-cell:focus-visible    { border-radius: 8px; outline-offset: 1px; }

/* ── SELECTION COLOR ── */
::selection      { background: var(--mets-orange); color: #fff; }
::-moz-selection { background: var(--mets-orange); color: #fff; }

/* ── TYPOGRAPHY ── */
.fredoka { font-family: 'Fredoka One', cursive; }
h1, h2, h3, .site-title { font-family: 'Fredoka One', cursive; }

/* ── SKY THEMES (applied to body) ── */
body.sky-morning { --sky-current: var(--sky-morning); }
body.sky-day     { --sky-current: var(--sky-day); }
body.sky-afternoon { --sky-current: var(--sky-afternoon); }
body.sky-dusk    { --sky-current: var(--sky-dusk); }
body.sky-night   { --sky-current: var(--sky-night); }

/* ── BANNERS ── */
.banner-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #fff3cd;
  border-bottom: 2px solid #ffc107;
  font-size: 0.875rem;
  color: #664d03;
  z-index: 1000;
}
.banner-close {
  font-size: 1rem;
  color: #664d03;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.banner-close:hover { background: rgba(0,0,0,0.1); }

/* ── SITE HEADER ── */
.site-header {
  background: var(--mets-blue);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem 0.5rem;
  gap: 1rem;
}
.header-branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-baseball {
  font-size: 1.75rem;
  animation: spin-slow 8s linear infinite;
  display: inline-block;
}
.header-mets-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}
.section-mets-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.85;
}
.site-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: white;
  line-height: 1;
  letter-spacing: 0.5px;
}
.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.contest-subtitle {
  font-size: 0.875rem;
  opacity: 0.85;
  font-weight: 500;
}
.day-badge {
  background: var(--mets-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.5px;
}

/* ── NAV BAR ── */
.site-nav {
  display: flex;
  gap: 0;
  padding: 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.nav-link {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-link:hover { color: white; }
.nav-active { color: white !important; border-bottom-color: var(--mets-orange) !important; }
.nav-btn { font-family: 'Inter', sans-serif; }

/* Nav game widget */
.nav-game-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  align-self: center;
  padding: 4px 10px 4px 7px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  user-select: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: default;
  transition: background 0.25s, border-color 0.25s;
}
.nav-game-widget.nav-game-live {
  background: rgba(220,40,40,0.2);
  border-color: rgba(255,80,80,0.35);
}
.nav-game-widget.nav-game-win {
  background: rgba(0,140,50,0.18);
  border-color: rgba(0,160,60,0.3);
}
.nav-game-widget.nav-game-loss {
  background: rgba(160,0,0,0.15);
  border-color: rgba(180,20,20,0.28);
}
.nav-game-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-game-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5555;
  flex-shrink: 0;
  animation: navLivePulse 1.3s ease-in-out infinite;
}
@keyframes navLivePulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ── GAME MODAL ─────────────────────────────────────────────── */
.game-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.game-modal-box {
  background: #0c1829;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}
.game-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: rgba(255,255,255,0.1);
  border: none; color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: background 0.15s;
}
.game-modal-close:hover { background: rgba(255,255,255,0.2); }
.game-modal-content { padding: 1.25rem; }

/* Score header */
.gm-score-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.gm-team-col {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  flex: 1;
}
.gm-logo { width: 52px; height: 52px; object-fit: contain; }
.gm-team-name { font-size: 0.72rem; color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.gm-score { font-family: 'Fredoka One', cursive; font-size: 2.8rem; color: white; line-height: 1; }
.gm-score-w { color: #7ec8ff; }
.gm-team-w  { }
.gm-team-l  { opacity: 0.6; }
.gm-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gm-live-pill { background: #e53935; color: white; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; letter-spacing: 0.08em; animation: navLivePulse 1.3s infinite; }
.gm-final-pill { font-size: 0.7rem; font-weight: 700; padding: 2px 10px; border-radius: 8px; }
.gm-pill-w { background: rgba(0,160,70,0.25); color: #5de08a; border: 1px solid rgba(0,200,80,0.3); }
.gm-pill-l { background: rgba(200,30,30,0.2); color: #ff8080; border: 1px solid rgba(200,40,40,0.3); }
.gm-vs-txt { font-size: 0.75rem; color: rgba(255,255,255,0.4); font-weight: 700; }

/* Status bar */
.gm-status-bar {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.05);
  padding: 6px 10px; border-radius: 8px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.gm-live-badge { background: #e53935; color: white; font-size: 0.6rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.gm-count { color: rgba(255,211,90,0.85); font-weight: 600; }
.gm-outs  { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.gm-matchup { font-size: 0.78rem; color: rgba(255,255,255,0.65); padding: 2px 0; }
.gm-matchup b { color: rgba(255,255,255,0.4); font-weight: 600; margin-right: 4px; }
.gm-preview-info { margin-bottom: 8px; }
.gm-preview-time { font-size: 0.85rem; color: rgba(255,211,90,0.85); font-weight: 600; margin-bottom: 4px; }

/* Linescore */
.gm-ls-wrap { overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; }
.gm-ls-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.75rem; color: rgba(255,255,255,0.8);
  min-width: 340px;
}
.gm-ls-table thead th {
  color: rgba(255,255,255,0.4);
  font-weight: 700; text-align: center;
  padding: 3px 4px; border-bottom: 1px solid rgba(255,255,255,0.1);
  min-width: 22px;
}
.gm-ls-table td { text-align: center; padding: 5px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.gm-ls-team { text-align: left !important; font-weight: 700; color: white; padding-right: 8px !important; }
.gm-ls-r { font-weight: 700; color: #7ec8ff; border-left: 1px solid rgba(255,255,255,0.1); }
.gm-ls-h { color: rgba(255,211,90,0.7); }
.gm-ls-e { color: #ff8080; }
.gm-inn-cur { background: rgba(255,211,90,0.12); color: rgba(255,211,90,0.9) !important; font-weight: 700; }

/* Recent plays */
.gm-plays { margin-top: 12px; }
.gm-plays-title { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.gm-plays-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gm-plays-list li {
  font-size: 0.78rem; color: rgba(255,255,255,0.75); line-height: 1.4;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  border-left: 2px solid rgba(0,100,255,0.35);
}

/* ── PAGE CONTAINERS ── */
@keyframes wtq-page-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-contest, .page-lab {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: wtq-page-in 0.4s ease-out both;
}

/* ── SECTION TITLES ── */
.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--mets-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   JOURNEY MAP
══════════════════════════════════════════════ */
.section-map { display: flex; flex-direction: column; gap: 0; }

.journey-map {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sky-current, var(--sky-day));
  transition: background 2s ease;
}

/* Zones row — fills middle 55% of map height */
.journey-zones {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px; /* path sits below */
}

.zone {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Zone backgrounds — each has sky + ground gradient */
.zone-citifield {
  background: linear-gradient(to bottom,
    transparent 0%, transparent 45%,
    #3a6b2a 45%, #3a6b2a 80%,
    #c4a882 80%, #c4a882 100%
  );
  border-right: 1px solid rgba(255,255,255,0.15);
}
.zone-queens {
  background: linear-gradient(to bottom,
    transparent 0%, transparent 45%,
    #8b7d6b 45%, #8b7d6b 72%,
    #c4a882 72%, #c4a882 100%
  );
  border-right: 1px solid rgba(255,255,255,0.15);
}
.zone-centralpark {
  background: linear-gradient(to bottom,
    transparent 0%, transparent 40%,
    #2d6a1f 40%, #2d6a1f 78%,
    #c4a882 78%, #c4a882 100%
  );
  border-right: 1px solid rgba(255,255,255,0.15);
}
.zone-brooklyn {
  background: linear-gradient(to bottom,
    transparent 0%, transparent 40%,
    #4a6fa5 40%, #4a6fa5 62%,
    #5f8cc5 62%, #5f8cc5 72%,
    #c4a882 72%, #c4a882 100%
  );
  border-right: 1px solid rgba(255,255,255,0.15);
}
.zone-upstate {
  background: linear-gradient(to bottom,
    transparent 0%, transparent 38%,
    #4a7c3f 38%, #4a7c3f 80%,
    #c4a882 80%, #c4a882 100%
  );
}

/* Zone labels at bottom */
.zone-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 4px;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}

/* Zone scenery elements */
.zone-scenery {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.scene-item { position: absolute; }

/* Citi Field scenery */
.s-scoreboard {
  top: 48%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mets-blue);
  color: white;
  font-size: 0.4rem;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 2px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 1px;
}
.s-diamond {
  top: 50%;
  left: 20%;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
  transform: translateY(-50%);
}
.s-flag { top: 30%; left: 55%; font-size: 1.4rem; }

/* Queens scenery — building silhouettes via CSS */
.s-bldg {
  bottom: 28%;
  background: #4a4040;
  border-radius: 2px 2px 0 0;
}
.s-bldg1 { left: 15%; width: 14%; height: 35%; }
.s-bldg2 { left: 35%; width: 18%; height: 48%; }
.s-bldg3 { left: 60%; width: 12%; height: 28%; }
.s-train { top: 40%; left: 50%; transform: translateX(-50%); font-size: 1rem; }

/* Central Park scenery */
.s-tree { top: 38%; font-size: 1.6rem; left: 20%; }
.s-tree2 { left: 60%; top: 42%; }
.s-pond {
  bottom: 25%;
  left: 35%;
  width: 30%;
  height: 12%;
  background: rgba(70,130,180,0.6);
  border-radius: 50%;
}
.s-duck { bottom: 24%; left: 44%; font-size: 0.85rem; }

/* Brooklyn Bridge scenery */
.s-bridge-tower {
  bottom: 28%;
  width: 6px;
  height: 35%;
  background: #708090;
  border-radius: 2px 2px 0 0;
}
.s-bt1 { left: 28%; }
.s-bt2 { left: 65%; }
.scene-cable {
  position: absolute;
  bottom: 28%;
  height: 1px;
  background: rgba(200,200,200,0.7);
  transform-origin: left center;
}
.s-cable1 {
  left: 28%;
  width: 38%;
  bottom: 48%;
  height: 20%;
  border: none;
  background: transparent;
  border-top: 1px solid rgba(200,200,200,0.7);
  border-radius: 50% 50% 0 0;
}

/* Upstate scenery */
.s-mountain { top: 32%; left: 15%; font-size: 1.8rem; }
.s-pine { top: 42%; left: 50%; font-size: 1.4rem; }
.s-pine2 { left: 65%; top: 45%; }
.s-finish {
  top: 42%;
  right: 8%;
  font-size: 1.8rem;
  animation: wave 1s ease-in-out infinite alternate;
}

/* ── PATH ── */
.journey-path {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, #d4b896, #c4a882);
  border-top: 2px solid #a89070;
  border-bottom: 2px solid #b89878;
  z-index: 5;
}
/* Dotted center line */
.journey-path::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.4) 0px,
    rgba(255,255,255,0.4) 12px,
    transparent 12px,
    transparent 24px
  );
}

/* ── WALKERS (characters) ── */
.walker {
  position: absolute;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.walker-emoji {
  font-size: 2rem;
  animation: bounce-walk 0.55s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.walker-bf .walker-emoji { animation-delay: -0.27s; }
.walker-label {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  color: white;
  margin-top: 2px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.walker-meg  .walker-label { background: var(--meg-color); }
.walker-bf   .walker-label { background: var(--bf-color); }
.walker-nate .walker-label { background: var(--nate-color); }

/* ── MILESTONE POSTS ── */
.milestone-post {
  position: absolute;
  bottom: 60px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--transition), transform var(--transition);
}
.milestone-post.reached {
  opacity: 1;
  animation: pulse-post 0.6s ease-out;
}
.milestone-flag { font-size: 0.9rem; }
.milestone-line {
  width: 2px;
  height: 60px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0px, rgba(0,0,0,0.3) 4px,
    transparent 4px, transparent 8px
  );
}
.milestone-label {
  position: absolute;
  bottom: -18px;
  font-size: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(0,0,0,0.6);
  background: rgba(255,255,255,0.8);
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

/* ── JOURNEY RULER ── */
.journey-ruler {
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--card-border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 0.5rem 1rem;
}
.ruler-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 2%;
}
.ruler-label {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════
   SCOREBOARD
══════════════════════════════════════════════ */

.section-scoreboard {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

.scoreboard-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.player-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}
.player-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.player-card.meg-card  { background: var(--meg-light); }
.player-card.meg-card::before  { background: var(--meg-color); }
.player-card.bf-card   { background: var(--bf-light); }
.player-card.bf-card::before   { background: var(--bf-color); }
.player-card.nate-card { background: var(--nate-light); }
.player-card.nate-card::before { background: var(--nate-color); }

@keyframes winning-glow {
  0%, 100% { box-shadow: 0 0 0 2px var(--mets-orange), var(--shadow-sm); }
  50%       { box-shadow: 0 0 0 3px var(--mets-orange), 0 8px 30px rgba(255,89,16,0.25); }
}
.player-card.card-winning { animation: winning-glow 2.5s ease-in-out infinite; }

.player-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.meg-card  .player-name { color: var(--meg-color); }
.bf-card   .player-name { color: var(--bf-color); }
.nate-card .player-name { color: var(--nate-color); }

.player-score {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  line-height: 1;
  margin: 0.25rem 0;
}
.meg-card  .player-score { color: var(--meg-color); }
.bf-card   .player-score { color: var(--bf-color); }
.nate-card .player-score { color: var(--nate-color); }

.player-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.player-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.player-streak { font-size: 1.4rem; margin-top: 0.4rem; }

.scoreboard-vs {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--text-muted);
  text-align: center;
}

/* Tug-of-war bar */
.tug-bar-wrap { margin-top: 0.75rem; }
.tug-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.tug-bar-label .tug-meg  { color: var(--meg-color); }
.tug-bar-label .tug-bf   { color: var(--bf-color); }
.tug-bar-label .tug-nate { color: var(--nate-color); }

/* Three-segment proportional bar (sandbox three-player layout) */
.tug-bar-three {
  height: 18px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
}
.tug-seg-meg  { height: 100%; background: var(--meg-color); transition: width 1.5s cubic-bezier(0.34,1.56,0.64,1); }
.tug-seg-bf   { height: 100%; background: var(--bf-color);  transition: width 1.5s cubic-bezier(0.34,1.56,0.64,1); }
.tug-seg-nate { height: 100%; background: var(--nate-color); transition: width 1.5s cubic-bezier(0.34,1.56,0.64,1); }

.tug-bar-track {
  height: 18px;
  border-radius: 9px;
  background: var(--bf-light);
  overflow: hidden;
  position: relative;
}
.tug-bar-meg {
  height: 100%;
  background: linear-gradient(to right, var(--meg-color), var(--mets-blue-light));
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 9px;
}
.tug-bar-center {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  z-index: 1;
}

/* Win rate line */
.win-rate-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Streak info */
.streak-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.streak-fire { font-size: 1.25rem; }

/* ══════════════════════════════════════════════
   SNY BOOTH
══════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   CONTEST CALENDAR
══════════════════════════════════════════════ */
.section-calendar {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}
.calendar-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.1rem;
  flex-wrap: wrap;
}
.calendar-title-row .section-title {
  margin-bottom: 0;
}
.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid rgba(0,48,135,0.18);
  background: rgba(0,48,135,0.05);
  color: var(--meg-color);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.cal-nav-btn:hover:not(:disabled) {
  background: rgba(0,48,135,0.12);
  border-color: rgba(0,48,135,0.32);
}
.cal-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}
.mets-record-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0,48,135,0.07);
  border: 1px solid rgba(0,48,135,0.14);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-name {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 0 6px;
  text-transform: uppercase;
}
.cal-cell {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 3px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  position: relative;
  cursor: default;
  transition: transform 0.15s ease;
  border: 2px solid transparent;
  gap: 2px;
  overflow: hidden;
}
.cal-cell:not(.future):not(.empty) { cursor: pointer; }
.cal-cell:hover { transform: scale(1.05); z-index: 2; }
.cal-cell.today { border-color: var(--mets-orange); box-shadow: 0 0 0 1px var(--mets-orange); }
.cal-cell.future { opacity: 0.35; }
.cal-cell.empty { background: transparent; }
.cal-cell.cal-none { background: #f0ede8; color: #bbb; }
.cal-cell.cal-meg  { background: var(--meg-color);  color: white; }
.cal-cell.cal-bf   { background: var(--bf-color);   color: white; }
.cal-cell.cal-nate { background: var(--nate-color); color: white; }
.cal-cell.cal-both { background: linear-gradient(135deg, var(--meg-color) 50%, var(--bf-color) 50%); color: white; }
.cal-cell.cal-all  { background: linear-gradient(135deg, var(--meg-color) 33%, var(--bf-color) 33% 66%, var(--nate-color) 66%); color: white; }
.cal-cell.cal-weekend { background: #f0f4ff; color: var(--text-muted); }
.cal-cell.cal-weekend.cal-meg  { background: var(--meg-color);  color: white; }
.cal-cell.cal-weekend.cal-bf   { background: var(--bf-color);   color: white; }
.cal-cell.cal-weekend.cal-nate { background: var(--nate-color); color: white; }
.cal-cell.cal-weekend.cal-both { background: linear-gradient(135deg, var(--meg-color) 50%, var(--bf-color) 50%); color: white; }
.cal-cell.cal-weekend.cal-all  { background: linear-gradient(135deg, var(--meg-color) 33%, var(--bf-color) 33% 66%, var(--nate-color) 66%); color: white; }
.cal-cell.cal-weekday-muted { background: #f5f3ef; color: #ccc; }
.cal-cell.cal-star::after {
  content: '⭐';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.65rem;
}
.cal-cell.cal-broken::after {
  content: '💔';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.65rem;
}

.cal-date { font-size: 0.7rem; line-height: 1; }
.cal-icon { font-size: 0.7rem; }
.cal-streak-num {
  font-size: 0.55rem;
  font-weight: 900;
  opacity: 0.8;
}

/* ── Mets game overlay ── */
.cal-game {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
  line-height: 1.3;
}
.cal-game-win {
  background: rgba(0,130,40,0.15);
  color: #006020;
  border: 1px solid rgba(0,130,40,0.22);
}
.cal-game-loss {
  background: rgba(180,20,20,0.11);
  color: #8a0000;
  border: 1px solid rgba(180,20,20,0.16);
}
.cal-game-live {
  background: rgba(255,89,16,0.14);
  color: var(--mets-orange);
  border: 1px solid rgba(255,89,16,0.25);
}
.cal-game-preview {
  background: rgba(0,48,135,0.08);
  color: var(--mets-blue);
  border: 1px solid rgba(0,48,135,0.12);
}
.cal-game-ppd {
  background: rgba(120,120,120,0.1);
  color: #888;
  border: 1px solid rgba(120,120,120,0.18);
}

/* Game overlay on colored (winning) cells — invert to stay readable */
.cal-cell.cal-meg .cal-game-win,
.cal-cell.cal-bf  .cal-game-win,
.cal-cell.cal-nate .cal-game-win,
.cal-cell.cal-both .cal-game-win,
.cal-cell.cal-all  .cal-game-win {
  background: rgba(0,0,0,0.28);
  color: #b6ffc4;
  border-color: rgba(255,255,255,0.15);
}
.cal-cell.cal-meg .cal-game-loss,
.cal-cell.cal-bf  .cal-game-loss,
.cal-cell.cal-nate .cal-game-loss,
.cal-cell.cal-both .cal-game-loss,
.cal-cell.cal-all  .cal-game-loss {
  background: rgba(0,0,0,0.28);
  color: #ffb3b3;
  border-color: rgba(255,255,255,0.12);
}
.cal-cell.cal-meg .cal-game-live,
.cal-cell.cal-bf  .cal-game-live,
.cal-cell.cal-nate .cal-game-live,
.cal-cell.cal-both .cal-game-live,
.cal-cell.cal-all  .cal-game-live {
  background: rgba(0,0,0,0.22);
  color: #FFD35A;
  border-color: rgba(255,211,90,0.3);
}
.cal-cell.cal-meg .cal-game-preview,
.cal-cell.cal-bf  .cal-game-preview,
.cal-cell.cal-nate .cal-game-preview,
.cal-cell.cal-both .cal-game-preview,
.cal-cell.cal-all  .cal-game-preview {
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.15);
}
.cal-cell.cal-meg .cal-game-ppd,
.cal-cell.cal-bf  .cal-game-ppd,
.cal-cell.cal-nate .cal-game-ppd,
.cal-cell.cal-both .cal-game-ppd,
.cal-cell.cal-all  .cal-game-ppd {
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.1);
}

.cal-opp-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 2px;
}
.cal-game-score {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1;
  flex: 1;
  text-align: center;
  letter-spacing: 0.02em;
}
.cal-game-badge {
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-left: auto;
  opacity: 0.9;
}
.cal-game-atvs {
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.75;
  flex-shrink: 0;
}
.cal-game-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  margin-left: auto;
  animation: blink-live 1.4s ease-in-out infinite;
}
@keyframes blink-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ── Mobile calendar — cells grow to fit game bar ── */
@media (max-width: 540px) {
  .cal-cell {
    aspect-ratio: auto;
    min-height: 46px;
    padding: 4px 2px 3px;
  }
  .cal-game {
    padding: 2px 3px;
    gap: 2px;
  }
  .cal-game-score { font-size: 0.82rem; }
  .cal-game-badge { font-size: 0.5rem;  }
  .cal-opp-logo   { display: none; }
  .cal-game-atvs  { display: none; }
}

/* ══════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════ */
.stats-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mets-orange);
}
.stat-card.stat-meg::before  { background: var(--meg-color); }
.stat-card.stat-bf::before   { background: var(--bf-color); }
.stat-card.stat-nate::before { background: var(--nate-color); }

.stat-icon { font-size: 1.4rem; margin-bottom: 0.35rem; display: flex; justify-content: center; }
.stat-icon .om-icon { width: 1.8rem; height: 1.8rem; }
.stat-value {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-card.stat-meg  .stat-value { color: var(--meg-color); }
.stat-card.stat-bf   .stat-value { color: var(--bf-color); }
.stat-card.stat-nate .stat-value { color: var(--nate-color); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; line-height: 1.3; }

.section-stats {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

/* ── TRASH TALK BANNER ── */
.trash-talk-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mets-orange);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  animation: slide-down 0.4s ease-out;
  max-width: 90vw;
  text-align: center;
}
.trash-talk-banner button { font-size: 0.75rem; opacity: 0.8; }
.trash-talk-banner button:hover { opacity: 1; }

/* ══════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header {
  background: var(--mets-blue);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h2 { color: white; font-size: 1.4rem; }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* HOF table */
.hof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.hof-table th {
  background: var(--bg-page);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hof-table td { padding: 0.75rem; border-bottom: 1px solid var(--card-border); }
.hof-table tr:last-child td { border-bottom: none; }
.hof-winner { font-weight: 700; color: var(--mets-orange); }
/* Per-category winner coloring */
.hof-meg  { font-weight: 700; color: var(--mets-blue); }
.hof-bf   { font-weight: 700; color: var(--mets-orange); }
.hof-nate { font-weight: 700; color: var(--nate-color); }
/* Most 10K Days column gets extra emphasis */
.hof-star { font-weight: 800; }
/* "In Progress" badge */
.hof-active-badge {
  display: inline-block;
  background: var(--mets-orange);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.5px;
}
.hof-series {
  margin-top: 1.25rem;
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--mets-blue);
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--mets-blue);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--mets-blue-light); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-page);
  color: var(--text-primary);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--card-border);
  transition: background var(--transition);
}
.btn-secondary:hover { background: #e8e4dc; }

/* ── NO DATA STATE ── */
.no-data-nudge {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--card-border);
}
.nudge-icon { font-size: 3rem; margin-bottom: 0.75rem; display: flex; justify-content: center; }
.nudge-icon.small { font-size: 1.5rem; }
.no-data-nudge h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--mets-blue); }
.no-data-nudge p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }

@keyframes wtq-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
.loading-inline {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2rem;
  animation: wtq-pulse 1.4s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   STATS LAB
══════════════════════════════════════════════ */
.page-lab-body { background: #f0ede8; }

.lab-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
}

/* Lifetime stat cards — outer wrapper */
.lab-stat-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Inner grid of regular cards — 5×3 */
.lab-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.875rem;
}
.lab-stat-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--card-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.lab-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.lab-stat-card .stat-value {
  font-family: 'Fredoka One', cursive;
  font-size: 1.75rem;
  color: var(--mets-blue);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.lab-stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}
.lab-stat-card .stat-icon { font-size: 1.25rem; margin-bottom: 0.35rem; }

/* ── JOURNEY CARD ─────────────────────────────────────────────── */
.lab-journey-card {
  background: linear-gradient(135deg, #001a57 0%, #003087 55%, #0a1e4a 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,48,135,0.35), 0 2px 8px rgba(0,0,0,0.2);
  color: white;
  position: relative;
  overflow: hidden;
}
/* Subtle stadium lights overlay */
.lab-journey-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,89,16,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.lab-journey-card::after {
  content: '⚾';
  position: absolute;
  bottom: 1rem; right: 1.5rem;
  font-size: 5rem;
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

/* Header row */
.jny-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.jny-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.2rem;
}
.jny-headline {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1;
  color: white;
  margin-bottom: 0.3rem;
}
.jny-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

/* Circular progress ring */
.jny-pct-ring {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(255,89,16,0.4));
}

/* Track bar */
.jny-track-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.jny-endpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.jny-endpoint span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.jny-bar-wrap {
  flex: 1;
  position: relative;
  height: 16px;
}
.jny-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  top: 4px;
  overflow: visible;
}
.jny-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF5910, #ff8c52);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,89,16,0.5);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}
/* Waypoint dots */
.jny-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  z-index: 2;
}
.jny-dot-past   { background: rgba(255,140,82,0.9); box-shadow: 0 0 4px rgba(255,89,16,0.6); }
.jny-dot-future { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); }

/* Location pin */
.jny-pin {
  position: absolute;
  top: -14px;
  transform: translateX(-50%);
  font-size: 1.1rem;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: left 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* "You are here" badge */
.jny-location-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.jny-loc-emoji { font-size: 1.4rem; flex-shrink: 0; }
.jny-loc-icon  { flex-shrink: 0; }
.jny-loc-om    { width: 1.6rem; height: 1.6rem; display: block; }
.jny-wp-icon   { width: 1.5rem; height: 1.5rem; display: block; }
.jny-next-icon { width: 1rem;   height: 1rem;   vertical-align: middle; display: inline-block; }
.jny-pin-icon  { width: 1.1rem; height: 1.1rem; display: block; }
.jny-badge-icon { width: 1rem;  height: 1rem;   vertical-align: middle; display: inline-block; }
.sb-fire-icon  { width: 1rem;   height: 1rem;   vertical-align: middle; display: inline-block; margin-left: 2px; }
.jny-loc-text  { flex: 1; }
.jny-loc-name  {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}
.jny-loc-name strong { color: white; font-weight: 700; }
.jny-loc-note  {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}
.jny-next {
  font-size: 0.7rem;
  color: rgba(255,89,16,0.85);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bottom stat row */
.jny-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.875rem;
}
.jny-stat {
  flex: 1;
  text-align: center;
}
.jny-stat-val {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: white;
  line-height: 1;
  margin-bottom: 0.15rem;
}
.jny-stat-lbl {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.jny-stat-div {
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Charts */
.chart-container {
  position: relative;
  margin: 0 auto;
}
.chart-wide   { width: 100%; max-height: 320px; }
.chart-medium { width: 100%; max-height: 280px; }
.chart-square { width: 100%; max-width: 480px; max-height: 480px; }
.chart-container canvas { width: 100% !important; }

/* Race chart — dark stadium card, works on all screen sizes */
.race-chart-container {
  background: #0c1829;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.18);
}

@media (min-width: 768px) {
  .chart-medium { max-height: 420px; }
  .chart-wide   { max-height: 400px; }
  #dow-chart-container     { background: #fff; border-radius: 16px; padding: 8px 16px 4px; box-shadow: var(--shadow-sm); }
  #monthly-chart-container { background: #fff; border-radius: 16px; padding: 8px 20px 4px; box-shadow: var(--shadow-sm); max-width: 860px; margin: 0 auto; }
}

.chart-callout {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}
.chart-callout strong { color: var(--text-primary); }

.inline-om-icon { width: 1.2em; height: 1.2em; vertical-align: middle; display: inline-block; }

/* Records wall */
.records-wall {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}
.records-column h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.records-column.meg-col  h3 { color: var(--meg-color); }
.records-column.bf-col   h3 { color: var(--bf-color); }
.records-column.nate-col h3 { color: var(--nate-color); }

.record-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--card-border);
}
.record-trophy { font-size: 1.2rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.record-trophy-img { width: 1.5rem; height: 1.5rem; }
.col-dot-icon { width: 1rem; height: 1rem; vertical-align: middle; }
.record-info { flex: 1; }
.record-title { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.record-value { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--text-primary); }
.record-date { font-size: 0.7rem; color: var(--text-muted); }

/* Insights */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.insight-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--mets-orange);
}
.insight-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; display: flex; align-items: flex-start; }
.insight-icon.om-icon { width: 1.8rem; height: 1.8rem; margin-top: 2px; }
.insight-body { flex: 1; }
.insight-text { font-size: 0.875rem; line-height: 1.5; color: var(--text-primary); margin-bottom: 0.3rem; }
.insight-quip { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* Desktop-only message */
.lab-section-desktop { display: block; }
.desktop-only-msg { display: none; }

/* EOM modal specific styles */
.eom-winner {
  text-align: center;
  padding: 1.5rem 0;
}
.eom-trophy { font-size: 4rem; margin-bottom: 0.5rem; display: flex; justify-content: center; }
.eom-trophy-img { width: 4rem !important; height: 4rem !important; }
.eom-winner-name {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}
.eom-score { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1rem; }
.eom-json {
  background: #1a1a2e;
  color: #a0f0a0;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: monospace;
  white-space: pre;
  overflow-x: auto;
}

/* Hourly chart zone bands */
.hourly-zone-labels {
  display: flex;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 0.5rem;
  margin-top: 0.25rem;
}
.hourly-zone-label { text-align: center; text-transform: uppercase; letter-spacing: 0.4px; }

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
@keyframes bounce-walk {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes wave {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}

@keyframes pop-in {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes slide-down {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes pulse-post {
  0%   { transform: translateX(-50%) scale(1); }
  50%  { transform: translateX(-50%) scale(1.3); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 4px 2px rgba(255,89,16,0.3); }
  50%       { box-shadow: 0 0 12px 5px rgba(255,89,16,0.6); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .journey-map { height: 300px; }
  .walker-emoji { font-size: 1.6rem; }
  .player-score { font-size: 2.25rem; }
  .records-wall { grid-template-columns: 1fr; }

  .lab-section-desktop { display: block; }

  .zone-label { font-size: 0.5rem; padding: 2px 2px; }
  .s-flag, .s-mountain, .s-duck, .s-train { font-size: 0.9rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .journey-map { height: 220px; }
  .walker-emoji { font-size: 1.3rem; }
  .walker-label { display: none; }
  .milestone-label { display: none; }
  .milestone-line { height: 35px; }
  .milestone-flag { font-size: 0.65rem; }

  .scoreboard-players { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .scoreboard-vs { grid-column: 1 / -1; grid-row: 1; order: -1; font-size: 1rem; }
  .player-score { font-size: 2rem; }

  .stats-cards-row { grid-template-columns: 1fr 1fr; }

  .records-wall { grid-template-columns: 1fr; }

  .lab-section-desktop { display: none; }
  .desktop-only-msg { display: block; }
  .desktop-only-msg {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid var(--card-border);
  }

  .header-inner { flex-direction: row; align-items: center; justify-content: center; padding: 0.4rem 1rem; }
  .header-meta { display: none; }
  .header-mets-logo { width: 30px; height: 30px; }
  .site-title { font-size: 1.2rem; }

  /* Nav: keep all links on one row centered, game widget wraps to its own strip */
  .site-nav { flex-wrap: wrap; padding: 0 0.5rem; justify-content: center; }
  .nav-link { padding: 0.45rem 0.65rem; font-size: 0.8rem; }
  .nav-game-widget {
    width: 100%;
    margin: 0;
    border-radius: 0;
    justify-content: center;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 6px 16px;
    font-size: 0.75rem;
    gap: 8px;
  }

  /* Scoreboard: single column on mobile */
  .scoreboard-players { grid-template-columns: 1fr; }
  .scoreboard-vs { grid-column: 1; grid-row: auto; order: 0; font-size: 1rem; padding: 0.1rem 0; }
  .player-card { padding: 1rem 1.25rem; }
  .player-score { font-size: 2.4rem; }

  .lab-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .jny-header { flex-direction: row; }
  .jny-stats-row { flex-wrap: wrap; }
  .jny-stat { min-width: 30%; }

  .zone-scenery { display: none; }
  .zone-label { font-size: 0.45rem; }

  .modal-box { border-radius: var(--radius-md); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .walker-emoji, .header-baseball, .s-finish { animation: none; }
}


/* ═══════════════════════════════════════════════════════════════
   HERO TIMELINE — light, airy, Mets-themed
   ═══════════════════════════════════════════════════════════════ */

/* ── Section wrapper ────────────────────────────────────────── */
#mets-oracle {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #C8E6F5 0%, #EAF6FF 55%, #F0FAE8 100%);
  padding: 0;
}

/* ── Sky background ─────────────────────────────────────────── */
.hero-sky-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Sun */
.hero-sun {
  position: absolute;
  top: 12px;
  right: 80px;
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, #FFE066 30%, #FFD700 60%, transparent 72%);
  border-radius: 50%;
  box-shadow: 0 0 28px 8px rgba(255,220,50,0.35);
  animation: sun-glow 6s ease-in-out infinite;
}
@keyframes sun-glow {
  0%,100% { box-shadow: 0 0 28px 8px rgba(255,220,50,0.35); }
  50%      { box-shadow: 0 0 40px 14px rgba(255,220,50,0.55); }
}

/* Clouds */
.hero-cloud {
  position: absolute;
  background: white;
  border-radius: 50px;
  opacity: 0.85;
}
.hero-cloud::before, .hero-cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}
.hc-1 {
  width: 100px; height: 30px;
  top: 18px; left: 8%;
  animation: cloud-drift 22s linear infinite;
}
.hc-1::before { width: 40px; height: 38px; top: -18px; left: 16px; }
.hc-1::after  { width: 30px; height: 28px; top: -12px; left: 44px; }

.hc-2 {
  width: 140px; height: 36px;
  top: 8px; left: 30%;
  animation: cloud-drift 34s linear infinite;
  animation-delay: -12s;
}
.hc-2::before { width: 56px; height: 50px; top: -24px; left: 22px; }
.hc-2::after  { width: 40px; height: 36px; top: -16px; left: 64px; }

.hc-3 {
  width: 90px; height: 26px;
  top: 22px; left: 60%;
  animation: cloud-drift 28s linear infinite;
  animation-delay: -7s;
}
.hc-3::before { width: 36px; height: 32px; top: -15px; left: 14px; }
.hc-3::after  { width: 28px; height: 24px; top: -10px; left: 40px; }

@keyframes cloud-drift {
  from { transform: translateX(-20px); }
  to   { transform: translateX(30px); }
}

/* ── Body ───────────────────────────────────────────────────── */
.hero-body {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.75rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ── Header row ─────────────────────────────────────────────── */
.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Title block */
.hero-title-block { display: flex; flex-direction: column; gap: 0.3rem; }
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mets-orange);
}
.hero-month-name {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--mets-blue);
  line-height: 1;
}
.hero-day-pill {
  display: inline-block;
  background: var(--mets-orange);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.5px;
  width: fit-content;
}

/* ── SNY BROADCAST BOOTH ─────────────────────────────────────── */
.booth-cameo {
  width: 100%;
  background: linear-gradient(160deg, #001b4d 0%, #002b7a 50%, #000f2d 100%);
  border: 1px solid rgba(74,144,255,0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 8px 32px rgba(0,0,0,0.45),
    0 2px 8px rgba(0,48,135,0.3);
}
.booth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.32rem 1rem;
  background: rgba(0,0,0,0.32);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.booth-sny {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.booth-onair {
  font-size: 0.5rem;
  font-weight: 800;
  color: #fff;
  background: #cc0000;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 1.5px;
  animation: blink-on-air 2s step-end infinite;
}
@keyframes blink-on-air {
  0%,49% { opacity: 1; }
  50%,100% { opacity: 0; }
}
/* Horizontal body: crew left, divider, quote right */
.booth-body {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem 0.7rem;
}
.booth-crew {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.booth-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 10px;
  padding: 5px 6px;
  transition: background 0.2s;
  width: 60px;
}
.bp-photo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.bp-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}
/* Keith (2nd) and Ron (3rd) — tighter face crop */
.booth-crew .booth-person:nth-child(2) .bp-photo { object-position: center 5%; }
.booth-crew .booth-person:nth-child(3) .bp-photo { object-position: center 5%; }
.bp-initials {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.bp-name {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}
.booth-person-active .bp-name { color: rgba(255,255,255,0.85); }
/* Vertical separator */
.booth-divider {
  width: 1px;
  align-self: stretch;
  min-height: 64px;
  flex-shrink: 0;
  margin: 0 1rem;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,0.14) 20%,
    rgba(255,255,255,0.14) 80%,
    transparent 100%);
}
/* Quote area — grows with content, never clips */
.booth-quote-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}
.booth-quote {
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.93);
  line-height: 1.5;
  font-weight: 500;
  transition: opacity 0.35s ease;
  word-wrap: break-word;
}
.booth-speaker {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.35s ease, color 0.35s ease;
}
/* Progress timer bar */
.booth-timer-bar {
  height: 3px;
  background: rgba(255,255,255,0.05);
}
.booth-timer-fill {
  height: 100%;
  width: 0%;
  transition: width linear;
}
/* Hover */
.booth-person:hover { background: rgba(255,255,255,0.07); }
.booth-person:hover .bp-photo-wrap { border-color: rgba(255,255,255,0.3); }

/* ── Timeline ────────────────────────────────────────────────── */
.hero-timeline {
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 0.5rem;
  box-shadow: 0 2px 16px rgba(0,48,135,0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.8);
}

.timeline-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.tl-ball { font-size: 1.5rem; animation: spin-slow 3s linear infinite; }

/* ═══════════════════════════════════════════════════════════════
   LED BASEBALL SCOREBOARD
   ═══════════════════════════════════════════════════════════════ */
.hero-scoreboard-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.5),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Board shell — deep stadium green/navy */
.sb-board {
  background: #0a1628;
  overflow: hidden;
}

/* Orange header bar — Mets brand */
.sb-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #FF5910 0%, #e84a08 100%);
  gap: 1rem;
  flex-wrap: wrap;
}
.sb-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: white;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.sb-tagline {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* Table container */
.sb-table-wrap {
  overflow-x: auto;
  padding: 0.1rem 0;
}
.sb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}

/* Column headers: W1 W2 … R H E */
.sb-table thead tr {
  background: #0f1f35;
}
.sb-table thead th {
  padding: 0.3rem 0.6rem;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  text-align: center;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.sb-team-col {
  min-width: 80px;
  text-align: left !important;
  padding-left: 1rem !important;
}

/* Active week column glows amber */
.sb-inn      { min-width: 34px; }
.sb-inn-cur  {
  color: #FFD35A !important;
  background: rgba(255,211,90,0.06);
  text-shadow: 0 0 8px rgba(255,211,90,0.5);
}

/* R H E divider */
.sb-rh-divider {
  border-left: 1px solid rgba(255,255,255,0.15) !important;
}
.sb-rhe-h {
  min-width: 40px;
  color: rgba(255,255,255,0.55) !important;
}

/* Player rows */
.sb-row td {
  padding: 0.55rem 0.6rem;
  text-align: center;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.35rem;
  color: #FFD35A;  /* amber LED */
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}
.sb-row:last-child td { border-bottom: none; }

/* Winning row gets brighter numbers */
.sb-row-win td { color: #FFE97A; }
.sb-row-win .sb-r {
  text-shadow: 0 0 12px rgba(255,211,90,0.7), 0 0 24px rgba(255,211,90,0.3);
}

/* Team name column */
.sb-name {
  text-align: left !important;
  font-family: 'Fredoka One', cursive !important;
  font-size: 1.05rem !important;
  letter-spacing: 1.5px !important;
  padding-left: 1rem !important;
  color: white !important;
}
.sb-name-meg  { color: #7ec8ff !important; }   /* soft blue */
.sb-name-bf   { color: #ffb566 !important; }   /* soft orange */
.sb-name-nate { color: #a8bfcc !important; }   /* soft slate — readable on dark bg */

/* Cell variants */
.sb-future  { color: rgba(255,211,90,0.2) !important; font-size: 1rem !important; }
.sb-cell    { }

/* R H E value cells */
.sb-rhe-v {
  border-left: 1px solid rgba(255,255,255,0.12);
}
.sb-r {
  font-size: 1.6rem !important;
  color: white !important;
  font-weight: 900;
}
.sb-h { color: rgba(255,211,90,0.75) !important; font-size: 1.1rem !important; }
.sb-e { color: #ff7a7a !important; font-size: 1rem !important; }  /* red = errors */

/* TODAY battle strip — live head-to-head */
.sb-today-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #0d1e38;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,211,90,0.15);
}
.sb-today-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sb-today-label {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: rgba(255,211,90,0.6);
}
.sb-today-goal-lbl {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
}
.sb-today-prow {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.sb-today-prow-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sb-today-pname {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 1.5px;
}
.sb-today-meg-row  .sb-today-pname { color: #7ec8ff; }
.sb-today-bf-row   .sb-today-pname { color: #ffb566; }
.sb-today-nate-row .sb-today-pname { color: #a8bfcc; }
.sb-today-psteps {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.15rem;
  letter-spacing: 1px;
}
.sb-today-meg-row  .sb-today-psteps { color: #7ec8ff; }
.sb-today-bf-row   .sb-today-psteps { color: #ffb566; }
.sb-today-nate-row .sb-today-psteps { color: #a8bfcc; }
.sb-today-prog-track {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.sb-today-prog-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}
.sb-today-meg-row  .sb-today-prog-fill { background: #7ec8ff; }
.sb-today-bf-row   .sb-today-prog-fill { background: #ffb566; }
.sb-today-nate-row .sb-today-prog-fill { background: #a8bfcc; }
.sb-today-hit .sb-today-prog-fill { background: #FFD35A; }
.sb-today-prow-bot {
  display: flex;
  justify-content: space-between;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
}
.sb-today-psub  { color: rgba(255,255,255,0.45); }
.sb-today-psync { color: rgba(255,255,255,0.25); }

/* Footer — leader announcement */
.sb-footer-bar {
  padding: 0.4rem 1rem;
  background: #060e1c;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-status {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 2px;
  display: inline-block;
  animation: sb-blink-slow 3s ease-in-out infinite;
}
.sb-leader-meg  { color: #7ec8ff; }
.sb-leader-bf   { color: #ffb566; }
.sb-leader-nate { color: #a8bfcc; }
.sb-tied       { color: #FFD35A; }
.sb-waiting    { color: rgba(255,211,90,0.5); }
@keyframes sb-blink-slow {
  0%,85%,100% { opacity: 1; }
  90%          { opacity: 0.5; }
}

/* ── Track rows ──────────────────────────────────────────────── */
.track-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.track-row-milestones { margin-top: 0.5rem; }

.track-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 170px;
  flex-shrink: 0;
}
.track-info-spacer { visibility: hidden; }
.track-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.track-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
}
.track-steps {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.track-bar-outer {
  flex: 1;
  min-width: 0;
  position: relative;
}
.track-bar {
  width: 100%;
  height: 26px;
  background: #E8EFF8;
  border-radius: 14px;
  overflow: visible;
  position: relative;
}

/* ── Track fills ─────────────────────────────────────────────── */
.track-fill {
  height: 100%;
  border-radius: 12px;
  position: relative;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}
.tf-meg {
  background: linear-gradient(90deg, #003087 0%, #1a56c4 100%);
  box-shadow: 0 2px 8px rgba(0,48,135,0.35);
}
.tf-bf {
  background: linear-gradient(90deg, #FF5910 0%, #ff7c3a 100%);
  box-shadow: 0 2px 8px rgba(255,89,16,0.35);
}

/* ── Avatars at the tip of each fill ─────────────────────────── */
.track-avatar {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
  animation: avatar-bob 2s ease-in-out infinite;
  z-index: 2;
  line-height: 1;
}
.track-avatar svg { display: block; }
.ta-meg { animation-delay: 0s; }
.ta-bf  { animation-delay: 0.7s; }
@keyframes avatar-bob {
  0%,100% { transform: translateY(-50%); }
  50%      { transform: translateY(-68%); }
}

/* ── Milestone strip ─────────────────────────────────────────── */
.milestones-strip {
  position: relative;
  height: 60px;
  width: 100%;
  /* strip clips within bar-outer so markers at 0% and 100% stay in bounds */
  overflow: visible;
}
.mm-marker {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}
.mm-marker:hover { transform: translateX(-50%) scale(1.15); }

/* Fixed-size wrapper guarantees consistent marker height regardless of img load state */
.mm-pip-wrap {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mm-pip {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  border: 2.5px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s, transform 0.2s;
  background: white;
}
.mm-pip-om { width: 22px; height: 22px; }
.mm-pip-lock { opacity: 0.5; }
.sb-status-icon { width: 1.1em; height: 1.1em; }
.hero-eyebrow-ball { width: 1em; height: 1em; }
.cal-cell-icon { width: 0.9em; height: 0.9em; }
.legend-icon { width: 1em; height: 1em; }
.card-crown { width: 1rem; height: 1rem; }
.streak-fire { width: 1.2em; height: 1.2em; }
.eom-trophy-img { width: 3rem; height: 3rem; }
.nudge-ball-img { width: 3rem; height: 3rem; }
.booth-sny-icon { width: 0.9em; height: 0.9em; }
.popup-source-icon { width: 0.9em; height: 0.9em; }
.mm-unlocked .mm-pip {
  box-shadow: 0 3px 12px rgba(0,48,135,0.25);
  border-color: rgba(255,255,255,0.9);
}
.mm-unlocked:hover .mm-pip {
  box-shadow: 0 4px 16px rgba(0,48,135,0.4);
}
/* Headshot pip for player milestones */
.mm-pip-photo {
  width: 32px; height: 32px;
  min-width: 32px; min-height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2.5px solid white;
  box-shadow: 0 3px 12px rgba(0,48,135,0.3);
  display: block;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}
.mm-unlocked .mm-pip-photo {
  box-shadow: 0 3px 14px rgba(0,0,0,0.35);
}
.mm-unlocked:hover .mm-pip-photo {
  box-shadow: 0 5px 18px rgba(0,0,0,0.5);
}
.mm-locked .mm-pip {
  background: #E8EFF8;
  opacity: 0.5;
}
.mm-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-top: 1px;
}
.mm-unlocked .mm-label { color: var(--mets-blue); }

/* ── Journey card on homepage ───────────────────────────────── */
.hero-journey-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,48,135,0.3);
}
/* Leg badge inline in eyebrow */
.jny-leg-badge {
  display: inline-block;
  background: rgba(255,89,16,0.85);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ── Daily callout ───────────────────────────────────────────── */
.hero-callout-row { display: flex; }
.callout-duo {
  display: flex;
  gap: 1rem;
  flex: 1;
  flex-wrap: wrap;
}
.callout-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,48,135,0.1);
  border-left: 4px solid var(--mets-orange);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.callout-person-card {
  flex: 1;
  min-width: 240px;
}
.callout-person-header {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 0.25rem;
}
.callout-person-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  line-height: 1;
}
.callout-person-total {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}
.callout-body { display: flex; flex-direction: column; gap: 2px; }
.callout-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.callout-text {
  font-size: 0.83rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ── Grass strip ─────────────────────────────────────────────── */
.hero-grass {
  position: relative;
  z-index: 1;
  height: 24px;
  background: linear-gradient(180deg, #3A7D2C 0%, #2E6122 100%);
  overflow: hidden;
}
.grass-stripe {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 24px,
    rgba(255,255,255,0.07) 24px, rgba(255,255,255,0.07) 48px
  );
}

/* ── Milestone popup ─────────────────────────────────────────── */
.hero-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.hero-popup-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border-top: 5px solid var(--mets-blue);
}
.popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.popup-close:hover { background: #f0f0f0; }
.popup-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.popup-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--mets-blue);
  text-align: center;
  margin-bottom: 1rem;
}
.popup-headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.popup-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.popup-source {
  display: block;
  font-size: 0.72rem;
  color: var(--mets-orange);
  text-decoration: underline;
  word-break: break-word;
}
.popup-source:hover { color: var(--mets-blue); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 700px) {
  .hero-body    { padding: 1.5rem 1rem 1.25rem; gap: 1.1rem; }
  .hero-header  { flex-direction: column; gap: 0.75rem; }
  .track-info   { min-width: 120px; }
  .track-steps  { display: none; }
  .track-name   { font-size: 0.78rem; }
  .hero-month-name { font-size: 1.6rem; }
  .callout-duo  { flex-direction: column; }
  .callout-person-card { min-width: unset; }
  .hs-steps     { font-size: 1.2rem; }
  .hs-name      { font-size: 0.95rem; }
  /* Booth — compact but stay horizontal */
  .booth-body   { padding: 0.6rem 0.75rem; }
  .booth-person { width: 52px; padding: 4px 4px; }
  .bp-photo-wrap{ width: 42px; height: 42px; }
  .booth-divider{ margin: 0 0.65rem; }
  .booth-quote  { font-size: 0.88rem; }
}
@media (max-width: 480px) {
  .track-info  { min-width: 90px; }
  .track-name  { font-size: 0.7rem; }
  .mm-label    { display: none; }
  .mm-pip      { width: 22px; height: 22px; font-size: 0.75rem; }
  /* Booth — stack on very small screens */
  .booth-body  { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  .booth-crew  { gap: 0.2rem; width: 100%; justify-content: space-between; }
  .booth-person{ width: auto; flex: 1; }
  .booth-divider { display: none; }
  .booth-quote-wrap {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }
  .booth-quote { font-size: 0.82rem; }
}

/* ══════════════════════════════════════════════════════════
   HALL OF FAME PAGE
══════════════════════════════════════════════════════════ */

.page-hof-body { background: #f0ede8; }

.page-hof {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Hero Banner ── */
.hof-hero-banner {
  background: linear-gradient(135deg, #002060 0%, #003087 45%, #0050b3 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 8px 40px rgba(0,32,96,0.35);
  overflow: hidden;
  position: relative;
}
.hof-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 20px,
    rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px
  );
}
.hof-hero-deco {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}
.hof-deco-mets-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.55;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}
.hof-hero-center {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}
.hof-mets-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(1.1);
  flex-shrink: 0;
}
.hof-hero-title-wrap {
  text-align: center;
}
.hof-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,211,90,0.9);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.3rem;
}
.hof-hero-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 3rem;
  color: white;
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hof-hero-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin: 0.4rem 0 0;
  font-style: italic;
}

/* ── Series Banner ── */
.hof-series-banner {
  background: linear-gradient(135deg, #FF5910 0%, #e04800 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  box-shadow: 0 4px 24px rgba(255,89,16,0.3);
}
.hof-series-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.hof-series-icon { font-size: 1.8rem; }
.hof-series-text { text-align: center; }
.hof-series-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hof-series-score {
  font-family: 'Fredoka One', sans-serif;
  font-size: 2.5rem;
  color: white;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.hof-series-leader {
  text-shadow: 0 0 20px rgba(255,255,255,0.8);
  font-size: 3rem;
}
.hof-series-dash { opacity: 0.6; font-size: 2rem; }
.hof-series-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.2rem;
  font-style: italic;
}

/* ── Section wrapper ── */
.hof-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hof-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hof-section-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.8rem;
  color: var(--mets-blue);
  margin: 0;
}
.hof-section-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.7;
}
.hof-section-icon { font-size: 1.4rem; }

/* ── Records Grid ── */
.hof-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ── Record Card ── */
.hof-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem 1.1rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hof-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.hof-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mets-blue), var(--mets-orange));
  border-radius: 2px 2px 0 0;
}
.hof-card-winner-meg { border-color: rgba(0,48,135,0.25); }
.hof-card-winner-bf  { border-color: rgba(255,89,16,0.25); }

.hof-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.hof-card-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}
.hof-card-trophy { display: none; }
.hof-card-trophy {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.3rem;
  opacity: 0.6;
}
.hof-card-title {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.15rem;
  color: var(--mets-blue);
  line-height: 1.2;
}
.hof-card-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid #f0ede8;
  font-style: italic;
}

/* Duel layout (Meg vs Kyle) */
.hof-card-players {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.hof-card-player {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  background: #f8f6f2;
  text-align: center;
}
.hof-card-player-meg  { background: rgba(0,48,135,0.05); }
.hof-card-player-bf   { background: rgba(255,89,16,0.05); }
.hof-card-player-nate { background: rgba(27,38,49,0.05); }
.hof-card-holder.hof-card-player-meg {
  background: rgba(0,48,135,0.12);
  border: 1.5px solid rgba(0,48,135,0.2);
}
.hof-card-holder.hof-card-player-bf {
  background: rgba(255,89,16,0.12);
  border: 1.5px solid rgba(255,89,16,0.2);
}
.hof-card-holder.hof-card-player-nate {
  background: rgba(27,38,49,0.12);
  border: 1.5px solid rgba(27,38,49,0.25);
}
.hof-card-player-name {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.hof-card-player-meg  .hof-card-player-name { color: var(--mets-blue); }
.hof-card-player-bf   .hof-card-player-name { color: var(--mets-orange); }
.hof-card-player-nate .hof-card-player-name { color: var(--nate-color); }
.hof-card-player-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1;
}
.hof-card-holder .hof-card-player-val { font-size: 1.65rem; }
.hof-card-player-meg.hof-card-holder  .hof-card-player-val { color: var(--mets-blue); }
.hof-card-player-bf.hof-card-holder   .hof-card-player-val { color: var(--mets-orange); }
.hof-card-player-nate.hof-card-holder .hof-card-player-val { color: var(--nate-color); }
.hof-card-player-sub {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.3;
}
.hof-card-vs {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0 0.1rem;
}
/* Trio card layout — three player columns */
.hof-card-players-trio { gap: 0.35rem; }
.hof-card-players-trio .hof-card-player-val { font-size: 1.2rem; }
.hof-card-players-trio .hof-card-holder .hof-card-player-val { font-size: 1.4rem; }
/* Winner border tint */
.hof-card-winner-nate { border-color: rgba(27,38,49,0.25); }
/* Monthly results — nate winner badge */
.hof-month-winner-nate { background: rgba(27,38,49,0.1); color: var(--nate-color); }

/* Combined (single value) card */
.hof-card-combined {
  text-align: center;
}
.hof-card-combined-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 2.2rem;
  color: var(--mets-blue);
  line-height: 1;
  margin-top: 0.25rem;
}
.hof-card-combined-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Monthly Results ── */
.hof-month-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hof-month-row {
  background: white;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hof-month-row-active {
  border: 2px solid var(--mets-orange);
  background: #fffbf8;
}
.hof-month-label {
  min-width: 160px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hof-month-name {
  font-family: 'Fredoka One', sans-serif;
  font-size: 1.1rem;
  color: var(--mets-blue);
}
.hof-month-active {
  display: inline-block;
  background: var(--mets-orange);
  color: white;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}
.hof-month-winner {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}
.hof-month-winner-meg { background: rgba(0,48,135,0.1); color: var(--mets-blue); }
.hof-month-winner-bf  { background: rgba(255,89,16,0.1); color: var(--mets-orange); }
.hof-month-tied       { font-size: 0.62rem; color: var(--text-muted); font-style: italic; }

/* Stats mini-table: label col + one col per player */
.hof-month-stats-table {
  flex: 1;
  display: grid;
  grid-template-columns: max-content 1fr 1fr 1fr;
  column-gap: 0.6rem;
  row-gap: 0.1rem;
  align-items: center;
  min-width: 0;
}
.hof-stats-header,
.hof-stats-row { display: contents; }

.hof-stats-phdr {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #e8e5e0;
}
.hof-stats-lbl-col { border-bottom: 1px solid #e8e5e0; }

.hof-stats-lbl {
  font-size: 0.57rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.18rem 0;
}
.hof-stats-val {
  font-family: 'Fredoka One', sans-serif;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.3;
}
.hof-stats-val.hof-winner-val {
  font-size: 1.15rem;
}
.hof-p-meg  { color: var(--mets-blue); }
.hof-p-bf   { color: var(--mets-orange); }
.hof-p-nate { color: var(--nate-color); }
/* On the orange banner bg, --mets-orange is invisible — use white instead */
.hof-series-banner .hof-p-bf { color: white; }
.hof-vs     { font-size: 0.65rem; color: var(--text-muted); font-weight: 700; }

/* Player origin subtitle (sandbox three-player layout) */
.player-origin {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 0.15rem;
}
/* --text-muted (#6B7280) on tinted light card bgs fails AA — override with darker value */
.player-card .player-origin,
.player-card .player-score-label {
  color: #505867;
}

/* Three-player scoreboard: equal-width cards, VS dividers centered */
.scoreboard-three {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.scoreboard-three > .player-card {
  flex: 1;
  min-width: 0;
}
.scoreboard-three > .scoreboard-vs {
  flex: none;
  align-self: center;
  padding: 0 0.25rem;
}
@media (max-width: 700px) {
  .scoreboard-three { flex-direction: column; gap: 0.35rem; }
  .scoreboard-three > .scoreboard-vs {
    align-self: stretch;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    opacity: 0.35;
    padding: 0.1rem 0;
    border-top: 1px dashed var(--card-border);
    border-bottom: 1px dashed var(--card-border);
  }
}

/* Journey row (per-player progress bars for three-player layout) */
.journey-rows { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.journey-row  { display: flex; align-items: center; gap: 0.6rem; }
.journey-row-name {
  width: 3.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}
.journey-row-track {
  flex: 1;
  height: 12px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  overflow: hidden;
}
.journey-row-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1.5s cubic-bezier(0.34,1.56,0.64,1);
}
.journey-row-fill.meg-fill  { background: var(--meg-color); }
.journey-row-fill.bf-fill   { background: var(--bf-color); }
.journey-row-fill.nate-fill { background: var(--nate-color); }
.journey-row-pct {
  width: 2.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.hof-winner-val { font-size: 1.25rem; }

/* ── Mobile ── */
@media (max-width: 700px) {
  .hof-hero-title    { font-size: 2rem; }
  .hof-mets-logo     { width: 56px; height: 56px; }
  .hof-hero-deco     { display: none; }
  .hof-records-grid  { grid-template-columns: 1fr; }
  .hof-series-score  { font-size: 1.8rem; }
  .hof-series-leader { font-size: 2.2rem; }

  /* Monthly results: stack label above stats table */
  .hof-month-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hof-month-label {
    min-width: unset;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  .hof-month-stats-table {
    grid-template-columns: max-content 1fr 1fr 1fr;
    column-gap: 0.4rem;
  }
  .hof-stats-phdr  { font-size: 0.58rem; }
  .hof-stats-lbl   { font-size: 0.55rem; }
  .hof-stats-val   { font-size: 0.9rem; }
  .hof-stats-val.hof-winner-val { font-size: 1.05rem; }
}


/* ── SITE FOOTER ── */
.site-footer {
  background: var(--mets-blue);
  color: rgba(255,255,255,0.7);
  padding: 1rem 1.5rem;
  margin-top: 3rem;
}
.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.footer-mets-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(10);
}
.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.footer-version {
  font-size: 0.62rem;
  opacity: 0.4;
  letter-spacing: 0.04em;
  margin-left: 0.6rem;
}


/* ══════════════════════════════════════════════
   CALENDAR DAY TOOLTIP
══════════════════════════════════════════════ */

/* Desktop floating card — opacity only, no scale flash */
.cal-day-tooltip {
  position: absolute;
  z-index: 950;
  width: 268px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.cal-day-tooltip.cal-tip-visible {
  opacity: 1;
  /* pointer-events stays none on desktop — tooltip must not intercept mouse events */
}

/* Backdrop (mobile) */
.cal-tooltip-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s;
}
.cal-tooltip-backdrop.cal-tip-visible {
  display: block;
  opacity: 1;
}

/* Inner padding */
.cal-tip-inner { padding: 14px 16px 16px; }

/* Date header */
.tip-date {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--mets-blue);
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Section divider */
.tip-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 10px -16px;
}

/* Players list */
.tip-players { display: flex; flex-direction: column; gap: 8px; }

/* Single player row */
.tip-player { border-radius: 8px; padding: 5px 7px; margin: 0 -7px; }
.tip-player.tip-day-leader {
  background: rgba(255,193,7,0.08);
  border: 1px solid rgba(255,193,7,0.22);
}
.tip-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.tip-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tip-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  flex: 1;
  white-space: nowrap;
}
.tip-player.tip-day-leader .tip-name {
  font-weight: 700;
  color: #111;
}
.tip-crown { font-size: 0.7rem; line-height: 1; }
.tip-steps {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tip-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.tip-hit  { background: rgba(0,150,60,0.11); color: #005520; }
.tip-miss { background: rgba(0,0,0,0.055);   color: #777; }
.tip-none { background: transparent;         color: #bbb; font-weight: 500; }

/* Step bar */
.tip-bar {
  height: 3px;
  background: rgba(0,0,0,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.tip-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.22,1,0.36,1);
  opacity: 0.65;
}
.tip-day-leader .tip-fill { opacity: 0.9; }

/* Game section */
.tip-games { display: flex; flex-direction: column; gap: 0; }
.tip-game {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.tip-game:last-child { border-bottom: none; padding-bottom: 0; }

/* W/L/PPD/LIVE badge — sits on the left as a fixed-width column */
.tip-gbadge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 1px;
  min-width: 28px;
  text-align: center;
}
.tip-win     { background: rgba(0,140,50,0.12);  color: #00501a; }
.tip-loss    { background: rgba(190,0,0,0.09);   color: #800000; }
.tip-live    { background: rgba(220,50,0,0.11);  color: #b03000; animation: pulse 1.4s infinite; }
.tip-ppd     { background: rgba(100,100,100,0.1); color: #666; }
.tip-preview { background: rgba(0,48,135,0.07); color: var(--mets-blue); }

/* Game detail: two lines — matchup on top, score below */
.tip-game-detail { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tip-game-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 3px;
  flex-shrink: 0;
}
.tip-gopp {
  font-size: 0.72rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}
.tip-gscore {
  font-size: 0.9rem;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.tip-gscore-label {
  font-size: 0.65rem;
  color: #aaa;
  font-weight: 500;
  margin-left: 3px;
}

/* ── Mobile: bottom sheet ── */
@media (max-width: 599px) {
  .cal-day-tooltip {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 32px rgba(0,0,0,0.18);
    transform: translateY(105%);
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    max-height: 72vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cal-day-tooltip.cal-tip-visible {
    transform: translateY(0);
  }
  .cal-tip-inner { padding: 6px 20px 36px; }
  /* Drag handle */
  .cal-tip-inner::before {
    content: '';
    display: block;
    width: 32px;
    height: 4px;
    background: rgba(0,0,0,0.13);
    border-radius: 2px;
    margin: 8px auto 14px;
  }
  .tip-date  { font-size: 1.1rem; }
  .tip-steps { font-size: 0.88rem; }
  .tip-name  { font-size: 0.85rem; }
  .tip-bar   { height: 4px; }
  .tip-player { padding: 7px 9px; margin: 0 -9px; }
  .tip-gscore { font-size: 1rem; }
}


