/* SHOCardsLA — burnt orange / black / tan, with Dodger navy as secondary accent */
:root {
  --orange: #C0531C;
  --orange-deep: #8E3C13;
  --orange-soft: #E36A2C;
  --navy: #005A9C;        /* Dodger royal blue — primary navy accent */
  --navy-deep: #003E73;   /* deeper navy for hover / emphasis */
  --navy-soft: #4A8FC7;   /* lighter navy for accents on dark backgrounds */
  --black: #0E0E0E;
  --black-soft: #1A1A1A;
  --tan: #E8DCC4;
  --tan-deep: #C9B58E;
  --paper: #FAF6EE;
  --ink: #161616;
  --muted: #6B6258;
  --border: rgba(20, 20, 20, 0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --radius: 8px;
  /* Wider canvas so cards / panels can tile 4-5 across on desktop
     instead of 3, with tighter side margins on phones. */
  --max: 1400px;
  --gutter: clamp(10px, 2vw, 22px);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  /* Compact mode: tighter base font + line-height so every page fits more
     content per viewport without losing legibility. */
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
/* ---- Right-side game column on every page (≥1280px viewports) ---- */
@media (min-width: 1280px) {
  body { padding-right: 260px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 9px; font-size: 0.9rem; }
  #live-game-section { display: none !important; }
  /* Collapsed sidebar: thin rail with re-open arrow only */
  body.gs-collapsed { padding-right: 36px; }
  body.gs-collapsed .game-sidebar { width: 36px; }
  body.gs-collapsed .game-sidebar .gs-inner { display: none; }
}
/* Hide the floating game pill on ALL viewports — it was overlapping
   the wrapped nav buttons on mobile, and on desktop the right-side
   sidebar already shows the live game. The dedicated #live-game-section
   on the home page + the "Dodgers Schedule" nav link cover the same
   info on mobile without colliding with the nav. */
#mini-game-pill { display: none !important; }
.game-sidebar {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  min-height: 100%;
  background: var(--black, #0E0E0E);
  color: var(--paper, #FAF6EE);
  border-left: 1px solid rgba(232,220,196,0.18);
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.92em;
  transition: width 0.18s ease;
}
@media (min-width: 1280px) {
  .game-sidebar { display: block; }
}
/* Toggle handle: floating tab on the LEFT edge of the sidebar, vertically
   centered. Only shown on screens wide enough to host the sidebar itself
   (>= 1280px); on smaller screens the sidebar is hidden and this floating
   button would otherwise drift into the middle of the viewport. */
.gs-toggle {
  display: none;
  position: fixed;
  top: 50%;
  right: 260px; /* sits flush against the sidebar's left edge */
  transform: translateY(-50%);
  z-index: 60;
  transition: right 0.18s ease;
}
@media (min-width: 1280px) {
  .gs-toggle { display: block; }
}
.gs-toggle button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 56px;
  border-radius: 10px 0 0 10px;
  background: var(--orange);
  color: var(--paper);
  border: 1px solid rgba(232,220,196,0.2);
  border-right: 0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: -4px 4px 12px rgba(0,0,0,0.35);
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.gs-toggle button:hover {
  background: var(--orange-deep);
  transform: translateX(-2px);
}
.gs-toggle button:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 2px;
}
body.gs-collapsed .gs-toggle { right: 36px; }
body.gs-collapsed .gs-toggle button {
  background: var(--black);
  border-color: var(--orange);
  color: var(--orange-soft);
}
body.gs-collapsed .gs-toggle button:hover {
  background: var(--orange-deep);
  color: var(--paper);
}
.game-sidebar .gs-inner {
  position: sticky;
  top: 0;
  padding: 16px 18px 24px;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.game-sidebar .gs-inner::-webkit-scrollbar { width: 6px; }
.game-sidebar .gs-inner::-webkit-scrollbar-thumb { background: rgba(232,220,196,0.2); border-radius: 4px; }
.game-sidebar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--paper);
}
.gs-section { padding: 12px 0; border-bottom: 1px solid rgba(232,220,196,0.12); }
.gs-section:last-of-type { border-bottom: 0; }
.gs-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 6px;
}
.gs-score-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding-bottom: 4px; }
.gs-team { text-align: center; }
.gs-team-abbr { font-size: 0.82rem; color: var(--tan); }
.gs-team-score { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--paper); }
.gs-team-logo { height: 36px; width: 36px; object-fit: contain; background: var(--paper); border-radius: 50%; padding: 3px; margin: 0 auto 4px; display: block; }
.gs-state { text-align: center; }
.gs-inning { color: var(--paper); font-weight: 700; font-size: 0.95rem; }
.gs-count { color: var(--tan); font-size: 0.78rem; margin-top: 2px; }
.gs-status-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--paper);
}
.gs-status-pill.final { background: rgba(0,0,0,0.55); border: 1px solid rgba(232,220,196,0.3); }
.gs-status-pill.preview { background: var(--orange-deep); }
.gs-mini-row { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--tan); line-height: 1.4; margin-top: 4px; }
.gs-mini-row strong { color: var(--paper); }
.gs-sp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; font-size: 0.85rem; }
.gs-sp .v { color: var(--orange-soft); font-weight: 700; }
.gs-sp .name { color: var(--paper); font-weight: 600; }
.gs-sp .line { color: var(--tan); font-size: 0.72rem; }
.gs-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; color: var(--paper); }
.gs-table th { color: var(--tan); font-weight: 600; padding: 3px 4px; text-align: center; font-size: 0.7rem; }
.gs-table td { padding: 3px 4px; text-align: center; }
.gs-table tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
.gs-list { margin: 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--tan); line-height: 1.5; }
.gs-list li { padding: 4px 0; border-bottom: 1px dashed rgba(232,220,196,0.08); }
.gs-list li:last-child { border-bottom: 0; }
.gs-list strong { color: var(--paper); }
.gs-details summary { cursor: pointer; padding: 6px 0; color: var(--orange-soft); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.gs-details summary::after { content: "▾"; font-size: 0.8rem; }
.gs-details[open] summary::after { content: "▴"; }
.gs-empty { padding: 18px 0; text-align: center; color: var(--tan); font-size: 0.85rem; }

/* Wrapping-paper style watermark — logo tiled across the whole page. */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 0 0 / 320px 320px repeat url("images/logo.png");
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
/* Faint logo overlay on each section so the watermark shows through solid bg colors */
.bg-paper, .bg-tan, .bg-black, .cta-banner, .page-header {
  position: relative;
}
.bg-paper > *, .bg-tan > *, .bg-black > *, .cta-banner > *, .page-header > * { position: relative; z-index: 1; }
.bg-paper::before, .bg-tan::before, .bg-black::before,
.cta-banner::before, .page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 0 0 / 320px 320px repeat url("images/logo.png");
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
/* Dark sections need a lighter blend so the logo is visible against black */
.bg-black::before, .cta-banner::before, .page-header::before {
  opacity: 0.12;
  mix-blend-mode: screen;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  margin: 0 0 0.35em;
  letter-spacing: -0.01em;
}
/* Compact-mode headings — about 20% smaller across the board to reduce
   vertical sprawl on long pages. */
/* Premium pass: bumped section headings back up for a more
   confident editorial feel — was reading as cramped catalog text. */
h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
h3 { font-size: 0.98rem; }
p { margin: 0 0 0.65em; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.35em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Nav items are now rendered statically in every HTML file so they paint
   immediately on first byte (no JS wait, no FOUC). Async injections
   (Login pill, Messages, Notifications, SHO-BETS row) append after the
   5 canonical items; ensureStandardNavLinks no-ops because the items
   are already present. dedupeNavLinks still runs as a safety net.
   The admin pill is still kept hidden until /me confirms admin
   status, so non-admins never see a flash of an Admin button. */
.site-header .admin-pill-slot { visibility: hidden; opacity: 0; }
.site-header.nav-ready .admin-pill-slot { visibility: visible; opacity: 1; transition: opacity .15s ease; }

/* Keyboard-only focus ring. Hidden for mouse clicks (focus-visible only
   activates for keyboard nav) so the UI stays clean for pointer users
   but every interactive element is reachable for assistive-tech and
   power-user keyboard navigation. */
:focus-visible {
  outline: 3px solid #ffd66e;
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #ffd66e;
  outline-offset: 2px;
}
/* Brand area hugs the left edge of the viewport instead of sitting inside
   the centered .container so the SHOCardsLA wordmark sits flush left. */
.site-header .container.nav {
  max-width: none;
  padding-left: clamp(14px, 2vw, 24px);
  padding-right: clamp(14px, 2vw, 24px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 6px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.nav .brand {
  flex-basis: 100%;
  justify-content: flex-start;
}
.nav .nav-links {
  flex-basis: 100%;
  justify-content: center !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
/* Header brand: hide the small logo image and the SO mark; use a text wordmark + tagline. */
.brand img.brand-logo { display: none !important; }
.brand .mark,
.brand-text .mark { display: none !important; }
.brand .brand-text,
.brand-logo ~ .brand-text {
  display: inline-flex !important;
  flex-direction: column;
  gap: 0;
  line-height: 1.0;
  align-items: flex-start;
  padding-right: 18px;
}
.brand-text > span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  line-height: 1;
}
.brand-text::after {
  content: var(--brand-tagline, "Serious collectors. Serious cards.");
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-top: 5px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .brand-text > span { font-size: 1.1rem; }
  .brand-text::after { font-size: 0.58rem; letter-spacing: 0.12em; }
}
@media (max-width: 480px) {
  .brand-text::after { display: none; }
}
.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(192, 83, 28, 0.4);
}
.brand:hover { color: var(--paper); }
.brand .accent { color: var(--orange-soft); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  /* Single-row layout — items shrink/scroll instead of wrapping. The user
     explicitly asked for "one row across" — wrapping was creating a chaotic
     two-row nav. If the row genuinely can't fit, horizontal scroll is the
     graceful fallback. Mobile media-query below relaxes this. */
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: flex-end;
  text-align: center;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-links::-webkit-scrollbar { display: none; }

/* Admin pill slot — sits directly under the SHOCardsLA brand wordmark
   on every page, on every viewport (user request — wants the Admin
   button in a fixed canonical spot rather than buried in the nav row).
   Visible only when nav-login.js has confirmed /me.isAdmin === true,
   so non-admin visitors never see it. */
.admin-pill-slot {
  flex-basis: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 0;
  margin: -4px 0 8px;
  order: 0;
}
.admin-pill-slot .nav-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--paper);
  border: 1px solid var(--orange);
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.admin-pill-slot .nav-admin-pill::before {
  content: "🛠";
  font-size: 0.9em;
}
.admin-pill-slot .nav-admin-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  background: var(--orange-deep);
  border-color: var(--orange-deep);
}

/* ===== Watchlist (★ favorites) ===================================
   Tiny circle button in the corner of every card image. Tapping it
   adds/removes the card from the visitor's localStorage watchlist.
   The header gets a "★ Watchlist (N)" pill once at least one card
   is starred. Open the pill → side drawer with all favorites. */
.card-watch {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, background .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.card-watch:hover { transform: scale(1.12); background: rgba(0,0,0,0.78); }
.card-watch.is-watched {
  background: linear-gradient(135deg, #f4d56a, #d4af37);
  color: #1a1404;
}
.card-watch.is-watched::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(212,175,55,0.5);
  animation: watch-pulse 1.2s ease-out;
  pointer-events: none;
}
@keyframes watch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.55); }
  100% { box-shadow: 0 0 0 16px rgba(212,175,55,0); }
}

/* Nav pill */
.watchlist-pill {
  position: fixed;
  top: 10px;
  right: 130px;
  z-index: 31;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--ink, #1a1a1a);
  color: var(--paper, #faf6ee);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  border: 1px solid #d4af37;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.watchlist-pill:hover { background: #333; transform: translateY(-1px); }
.watchlist-pill .watchlist-count {
  background: #d4af37;
  color: #1a1404;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}
@media (max-width: 700px) {
  .watchlist-pill { top: 6px; right: 100px; padding: 4px 9px; font-size: 0.72rem; }
}

/* Side drawer */
.watchlist-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 100%;
  max-width: 380px;
  background: var(--paper, #faf6ee);
  z-index: 99999;
  box-shadow: -8px 0 30px rgba(0,0,0,0.4);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.watchlist-drawer.open { transform: translateX(0); }
.watchlist-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,31,63,0.6);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.watchlist-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.watchlist-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--tan-deep);
}
.watchlist-drawer-head h3 { margin: 0; font-size: 1.05rem; }
.watchlist-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 20px;
}
.watchlist-drawer-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--tan-deep);
  align-items: center;
}
.watchlist-drawer-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: #1a1a1a;
}
.watchlist-drawer-item .meta { flex: 1; min-width: 0; }
.watchlist-drawer-item .name {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watchlist-drawer-item .price { font-size: 0.78rem; color: var(--muted); }
.watchlist-drawer-item button {
  background: transparent;
  border: 0;
  color: #c92a2a;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Public "Users Online" circle widget — injected by nav-login.js into
   the site-header. Small badge in the top-right with a live count of
   unique sessions seen in the last 15 minutes. Pulses gold whenever
   the count increases. */
.online-widget {
  position: absolute;
  top: 10px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212,175,55,0.95), rgba(232,163,23,0.95));
  color: #001f3f;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.18);
  z-index: 30;
  transition: transform .15s ease, box-shadow .15s ease;
}
.online-widget:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.online-widget-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #001f3f;
  color: #ffd66e;
  font-size: 1rem;
  line-height: 1;
}
.online-widget-label {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: left;
  padding-right: 4px;
}
@keyframes onlineWidgetPulse {
  0%   { transform: scale(1); box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
  35%  { transform: scale(1.15); box-shadow: 0 6px 22px rgba(212,175,55,0.7); }
  100% { transform: scale(1); box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
}
.online-widget-pulse { animation: onlineWidgetPulse .9s ease-out; }
@media (max-width: 700px) {
  .online-widget {
    top: 6px;
    right: 8px;
    padding: 2px 6px 2px 2px;
  }
  .online-widget-count { width: 26px; height: 26px; font-size: 0.85rem; }
  .online-widget-label { font-size: 0.52rem; }
}
.nav-links a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--orange);
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--paper); background: var(--orange); border-color: var(--orange); }
.nav-links a.active { color: var(--paper); }
/* Home now uses the same orange-bordered pill treatment as the
   other nav items (user request — wanted full visual parity across
   the row). Hover/active states still inherit from .nav-links a. */
/* No active underline anywhere — the orange-border treatment on every
   non-Home button already conveys "this is the active page". Cleaner
   and means Home (which has no border) stays truly minimal. */
.nav-links a.active::after,
.nav-links a::after { display: none !important; }

/* SHO-BETS lives on its own row below the main nav — wide, centered, prominent.
   Padding/margin is set so the pulse animation's glow and scale never spill up
   into the nav-links row above; the nav buttons must always read as clean and
   unobstructed even at the loudest moment of the SHO-BETS animation. */
.shobets-row {
  display: flex;
  justify-content: center;
  /* Tighter padding around the giant SHO-BETS bar so it doesn't push
     the rest of the page down by 50+ pixels on every load. */
  padding: 6px var(--gutter, 24px) 8px;
  margin-top: 0;
}
.shobets-row .nav-bets {
  min-width: clamp(280px, 60%, 640px) !important;
  justify-content: center;
  padding: 8px 22px !important;
  font-size: 1.55rem !important;
  letter-spacing: 0.06em;
  gap: 16px !important;
  line-height: 1.1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* iOS Safari fixes: tap-highlight-color so the system tap feedback
     shows (visual confirmation the tap registered), touch-action so
     the 300ms tap-delay + double-tap-zoom doesn't swallow the click,
     cursor for completeness. The button used to feel "dead" on iPhone
     because iOS was treating the giant pulsing element as a zoom
     target instead of a clickable link. */
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.18);
  touch-action: manipulation;
  cursor: pointer;
  /* Attention-grabbing pulse — 2.6s cycle, no strobing. Glow stays compact
     (8px blur, no positive spread) so it never bleeds upward into the
     nav-links row sitting above this button. Pauses on hover so clicks
     land on a steady target. */
  animation: shobets-attention 2.6s ease-in-out infinite;
}
.shobets-row .nav-bets:hover { animation-play-state: paused; }
@keyframes shobets-attention {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(192,83,28,0.30), inset 0 0 0 1px rgba(192,83,28,0);
    filter: brightness(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.015);
    box-shadow: 0 4px 14px rgba(192,83,28,0.45), inset 0 0 0 2px rgba(192,83,28,0.45);
    filter: brightness(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .shobets-row .nav-bets { animation: none; }
}
.shobets-row .nav-bets span {
  font-weight: 900;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 2;
}
.shobets-row .nav-bets svg {
  width: 36px !important;
  height: 54px !important;
  position: relative;
  z-index: 2;
}

/* Dream-like Dodgers-blue waves drifting through the SHO-BETS button.
   Soft, blurred radial blobs that slowly orbit; orange border stays
   on top so the button still reads as a CTA. */
.shobets-row .nav-bets::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 42% 60% at 18% 55%, rgba(30,144,255,0.55), transparent 65%),
    radial-gradient(ellipse 38% 56% at 78% 28%, rgba(0,90,156,0.50),  transparent 65%),
    radial-gradient(ellipse 46% 62% at 58% 82%, rgba(0,123,191,0.45), transparent 65%),
    radial-gradient(ellipse 30% 45% at 90% 70%, rgba(80,170,230,0.35),transparent 65%);
  filter: blur(18px);
  animation: shobets-dream 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.shobets-row .nav-bets::after {
  /* A second slower-moving layer for parallax depth */
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 40% 70% at 50% 50%, rgba(135,206,250,0.20), transparent 70%);
  filter: blur(24px);
  animation: shobets-dream-slow 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes shobets-dream {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(8%, -4%) scale(1.08); }
  50%      { transform: translate(-4%, 6%) scale(0.96); }
  75%      { transform: translate(-9%, -3%) scale(1.04); }
}
@keyframes shobets-dream-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(6%, -5%) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .shobets-row .nav-bets::before,
  .shobets-row .nav-bets::after { animation: none; }
}
/* Unified pill style — every actionable nav button (Inquire, Login, IG,
   My Profile, Predictions, Leaderboard, More) shares the same orange-
   outlined treatment so the right side of the nav reads as one cluster. */
.nav-cta,
.nav-login,
.nav-instagram,
.nav-my-profile,
.nav-bets,
.nav-leaderboard,
.nav-messages,
.nav-more {
  padding: 8px 14px !important;
  background: transparent;
  color: var(--paper) !important;
  border: 1px solid var(--orange) !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover,
.nav-login:hover,
.nav-instagram:hover,
.nav-my-profile:hover,
.nav-bets:hover,
.nav-leaderboard:hover,
.nav-messages:hover,
.nav-more:hover {
  background: var(--orange) !important;
  color: var(--paper) !important;
  border-color: var(--orange) !important;
}
.nav-cta::after,
.nav-login::after,
.nav-instagram::after,
.nav-my-profile::after,
.nav-bets::after,
.nav-leaderboard::after,
.nav-messages::after,
.nav-more::after { display: none !important; }

/* "More" dropdown panel */
.nav-more-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--black);
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  z-index: 60;
}
.nav-more-panel.open { display: flex; }
.nav-more-panel a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--paper) !important;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-more-panel a:hover { background: rgba(192,83,28,0.15); color: var(--orange-soft) !important; }
.nav-more-panel a::after { display: none !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  /* Mobile: drop the hamburger and just let the buttons wrap naturally
     across multiple rows. All nav items stay visible by default. */
  .nav-toggle { display: none !important; }
  .nav-links {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    padding: 0;
    border-bottom: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 7px 11px !important;
    border-radius: 6px;
    font-size: 0.82rem !important;
  }
  /* SHO-BETS row tightens up on mobile too — keep proportions readable */
  .shobets-row .nav-bets {
    font-size: 1.3rem !important;
    padding: 8px 16px !important;
    min-width: 90% !important;
  }
  .shobets-row .nav-bets svg {
    width: 26px !important;
    height: 38px !important;
  }
  /* Pin the subtext to a readable absolute size on mobile so it doesn't
     scale into illegibility from being 0.42em of the parent */
  .shobets-row .nav-bets > span > span:nth-child(2) {
    font-size: 0.62rem !important;
    letter-spacing: 0.12em !important;
  }
}
@media (max-width: 480px) {
  .nav-links a {
    padding: 6px 9px !important;
    font-size: 0.78rem !important;
  }
  .shobets-row .nav-bets {
    font-size: 1.1rem !important;
    min-width: 94% !important;
    gap: 10px !important;
  }
  .shobets-row .nav-bets > span > span:nth-child(2) {
    font-size: 0.58rem !important;
    letter-spacing: 0.1em !important;
  }
  .shobets-row .nav-bets svg {
    width: 22px !important;
    height: 32px !important;
  }
  /* Prize spotlight (bets + leaderboard) — shrink the image column so the
     title + description have breathing room on narrow phones */
  #prize-spotlight,
  #lb-prize-spotlight {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 14px !important;
  }
  #prize-spotlight-title,
  #lb-prize-spotlight-title {
    font-size: 1.05rem !important;
  }
  /* Recent winner recap card — let it stack vertically with the image
     above the text on tiny screens */
  #recent-winner-card {
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
  }
  #recent-winner-img {
    width: 80px !important;
    height: 80px !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  /* Compact: tighter padding and a slightly smaller default font.
     Tap targets stay above the 36px minimum thanks to padding + line-height. */
  padding: 9px 18px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange);
  color: var(--paper);
}
.btn-primary:hover { background: var(--orange-soft); color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-dark {
  background: var(--black);
  color: var(--paper);
}
.btn-dark:hover { background: var(--black-soft); color: var(--paper); }
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(192,83,28,0.35), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(232,220,196,0.10), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  /* Bumped card column up to clamp(280-420) and text column ratio to
     1.1fr so the two columns sit closer together — no more vast black
     gap between the headline and the card on wide screens. Container
     also gets a max-width below 1200px so the row stays balanced. */
  grid-template-columns: minmax(0, 1.1fr) clamp(280px, 32vw, 420px);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
  padding: clamp(14px, 2vw, 26px) 0;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-card { width: 100%; max-width: clamp(280px, 32vw, 420px); justify-self: stretch; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 14px 0 18px; }
  .hero-card { max-width: 280px; justify-self: center; }
}
.hero h1 { color: var(--paper); margin-bottom: 8px; }
.hero h1 .accent { color: var(--orange-soft); font-style: italic; }
.hero .eyebrow { margin-bottom: 4px; }
.hero p.lead {
  font-size: 0.95rem;
  color: var(--tan);
  max-width: 540px;
  margin: 0 0 14px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(192,83,28,0.25), rgba(14,14,14,0.6)),
    repeating-linear-gradient(45deg, rgba(232,220,196,0.04) 0 12px, rgba(232,220,196,0.0) 12px 24px),
    var(--black-soft);
  border: 1px solid rgba(232,220,196,0.18);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}
.hero-card .badge {
  /* Centered horizontally above the card image — was previously
     flex-start (top-left) which read as awkwardly off-axis. */
  align-self: center;
  background: var(--orange);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
}
.hero-card .ohtani-illustration {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 6rem);
  background: linear-gradient(180deg, var(--tan), var(--orange-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.hero-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--tan);
  font-size: 0.85rem;
  border-top: 1px solid rgba(232,220,196,0.18);
  padding-top: 14px;
}
.hero-card .meta strong { color: var(--paper); font-family: var(--font-display); }

/* Mobile single-column collapse for the hero is handled in the rule
   immediately under .hero-inner above; nothing extra needed here. */

/* ---------- Sections ---------- */
/* Compact-mode round 3: section padding squeezed further so the home
   page surfaces (live game, fact-of-day, why-us features, featured
   inventory, SHO-BETS, leaderboard, CTA) sit on roughly half a screen
   each. Was clamp(20-40px), then 20-40px, now 14-28px. */
section { padding: clamp(14px, 2.4vw, 28px) 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(12px, 1.8vw, 22px);
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.bg-tan { background: var(--tan); }
.bg-paper { background: var(--paper); }
.bg-black { background: var(--black); color: var(--tan); }
.bg-black h1, .bg-black h2, .bg-black h3 { color: var(--paper); }
.bg-black .eyebrow { color: var(--orange-soft); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  /* Compact: 220 -> 200 min so 4 features fit per row on desktop. */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--black);
  color: var(--orange-soft);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.88rem; }

/* ---------- Inventory grid ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 22px;
}
.filter {
  padding: 6px 13px;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { border-color: var(--orange); color: var(--orange); }
.filter.active { background: var(--black); color: var(--paper); border-color: var(--black); }

/* Inventory folder picker — two manila-folder-style cards (Premium +
   High-End) that the visitor picks to browse a subset. Each card has a
   "tab" at the top (like a real file folder), a large preview image
   pulled from a card inside the folder, a count, and a CTA chip. The
   preview image rotates every 5 minutes via script.js. */
.folder-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 960px;
  margin: 0 auto;
}
.folder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f5e6c8 0%, #e8d3a8 100%);
  border-radius: 6px 22px 14px 14px;
  padding: 50px 18px 22px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.folder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.1);
}
.folder-card::before {
  /* The "tab" — angled trapezoid at the top-left edge of the folder */
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  width: 38%;
  height: 36px;
  background: linear-gradient(180deg, #d9bf85 0%, #c4a76d 100%);
  border-radius: 6px 14px 0 0;
  border-right: 1px solid rgba(0,0,0,0.1);
  border-top: 1px solid rgba(0,0,0,0.08);
}
.folder-card .folder-label {
  position: absolute;
  top: 6px;
  left: 30px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a3618;
}
.folder-card .folder-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.35), 0 4px 10px rgba(0,0,0,0.18);
  margin-bottom: 14px;
}
.folder-card .folder-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease;
}
.folder-card .folder-image .folder-image-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232,220,196,0.6);
  font-size: 0.85rem;
}
.folder-card .folder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.folder-card .folder-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #2a1f08;
  margin: 0;
}
.folder-card .folder-count {
  background: rgba(0,0,0,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #4a3618;
}
.folder-card .folder-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border: 0;
  align-self: flex-start;
}
.folder-card.premium {
  background: linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%);
  border-color: rgba(212,175,55,0.4);
}
.folder-card.premium::before {
  background: linear-gradient(180deg, #d4af37 0%, #b88a1a 100%);
}
.folder-card.premium .folder-label { color: #1a1404; }
.folder-card.premium .folder-title { color: #ffd66e; }
.folder-card.premium .folder-count {
  background: rgba(212,175,55,0.18);
  color: #ffd66e;
}
.folder-card.premium .folder-cta {
  background: linear-gradient(135deg, #f4d56a, #d4af37 60%, #b88a1a);
  color: #1a1404;
}
.folder-card.premium .folder-image {
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.4), inset 0 2px 8px rgba(0,0,0,0.5);
}

.card-grid {
  display: grid;
  /* Premium pass: serious buyers want to see card details clearly.
     Pumped min back up to 230px so cards sit ~4 across on desktop
     and 2 across on phones with proper room to read the spec text.
     Gap widened slightly for a calmer, gallery-style layout. */
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  border-color: var(--tan-deep);
}
.card-image {
  aspect-ratio: 5 / 8;
  background: var(--black);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 30% 20%, rgba(192,83,28,0.5), transparent 60%),
    repeating-linear-gradient(45deg, rgba(232,220,196,0.06) 0 14px, transparent 14px 28px);
}
.card-image .label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.4rem);
  background: linear-gradient(180deg, var(--tan), var(--orange-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  padding: 0 12px;
}
.card-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px 10px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}
@media (max-width: 600px) {
  .card-image img { padding: 8px 6px; }
}
.card-image .tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 4px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/*
 * Notable-serial badges (⭐ FIRST / ⚾ JERSEY MATCH / 🏆 LAST / 👑 1 OF 1).
 * Rendered into the top of the card image, stacked vertically when a
 * card hits more than one (rare). Each badge gets its own tone:
 *
 *   • .serial-badge-unique  — 1/1 (premium gold gradient)
 *   • .serial-badge-first   — #1/X (warm gold)
 *   • .serial-badge-last    — #X/X (orange, ties the print run shut)
 *   • .serial-badge-jersey  — #17/X (Dodger navy — Ohtani's jersey)
 */
.card-image .serial-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  z-index: 4;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  white-space: nowrap;
}
.card-image .serial-badge + .serial-badge { top: 38px; }
.card-image .serial-badge + .serial-badge + .serial-badge { top: 66px; }
.card-image .serial-badge .serial-badge-ico { font-size: 0.85rem; line-height: 1; }
.card-image .serial-badge-unique {
  background: linear-gradient(135deg, #f4d56a, #d4af37 60%, #b88a1a);
  color: #1a1404;
  border: 1px solid rgba(180, 132, 26, 0.65);
}
.card-image .serial-badge-first {
  background: linear-gradient(135deg, #f4d56a, #d4af37);
  color: #1a1404;
  border: 1px solid rgba(180, 132, 26, 0.6);
}
.card-image .serial-badge-last {
  background: linear-gradient(135deg, var(--orange-soft, #E36A2C), var(--orange-deep, #8E3C13));
  color: var(--paper);
  border: 1px solid rgba(0,0,0,0.25);
}
.card-image .serial-badge-jersey {
  background: linear-gradient(135deg, var(--navy-soft, #4A8FC7), var(--navy-deep, #003E73));
  color: var(--paper);
  border: 1px solid rgba(0,0,0,0.25);
}
/* POP 1 — population-of-one. Champagne-gold gradient with a tiny
   medallion icon so it visually pairs with the FIRST/LAST gold tones
   but reads as distinct (it's a grade rarity, not a serial position). */
.card-image .serial-badge-pop {
  background: linear-gradient(135deg, #fff1a8, #e0c25e 60%, #b8902a);
  color: #1a1404;
  border: 1px solid rgba(180, 132, 26, 0.7);
}

/*
 * Premium-section cards — when rendered inside .premium-grid they
 * pick up a gold-trimmed border and slightly darker body so the
 * showcase reads as a curated tier, not a continuation of the main
 * inventory grid.
 */
.premium-grid .card {
  background: var(--paper);
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 0 0 1px rgba(212,175,55,0.20) inset;
}
.premium-grid .card:hover {
  border-color: #d4af37;
  box-shadow: 0 14px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(212,175,55,0.40) inset;
  transform: translateY(-4px);
}
.premium-grid .card .card-image {
  background: linear-gradient(180deg, #0e0e0e 0%, #1a1a1a 100%);
}
.premium-grid .card .card-body { padding: 16px 18px 18px; }

/*
 * Rookie-card (RC) badge — mimics the iconic red RC stamp that
 * appears on PSA labels for rookie issues. Sits in the top-right of
 * the card image so it reads instantly as a credential, not a tag.
 */
.card-image .rc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 8px;
  background: linear-gradient(135deg, #d72b2b, #a91a1a);
  color: #fff;
  font-family: var(--font-display, Georgia, serif);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1.5px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  z-index: 4;
}
/* If a photo-count badge is also present, offset the RC down a hair
   so they don't visually collide. .photo-count-badge sits top-right
   too; styles.css positions it without `top: 10px` so they overlap.
   Push the badge slightly when both are present using the sibling
   selector. */
.card-image .rc-badge + .photo-count-badge,
.card-image .photo-count-badge + .rc-badge { margin-top: 30px; }

/* Featured RC badge inside the detail-modal head row. */
.card-detail-badges .rc-badge {
  position: static; top: auto; right: auto;
  height: 28px;
  min-width: 42px;
  padding: 0 12px;
  font-size: 0.95rem;
}

/* Larger version inside the detail-modal head — same colors, more
   confident sizing so the badge reads as a featured callout. */
.card-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px 12px;
  background: var(--black);
}
.card-detail-badges .serial-badge {
  position: static; top: auto; left: auto;
  font-size: 0.78rem;
  padding: 6px 12px 6px 10px;
}
.card-detail-badges .serial-badge .serial-badge-ico { font-size: 1rem; }
/* Premium pass: card body breathes again so the spec text doesn't
   read as cramped catalog rows. */
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.card-body .desc { color: var(--muted); font-size: 0.88rem; margin: 0 0 12px; flex: 1; line-height: 1.45; }
.card-body .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card-body .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--black);
  letter-spacing: -0.01em;
}
.card-body .inquire {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange-deep);
}
.card-body .inquire:hover { color: var(--orange); }
.card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
/* Authentication signal — cert/grade line gets its own tone so it
   reads as a credential line, not a footnote. */
.card-cert {
  font-size: 0.78rem !important;
  color: var(--muted) !important;
  margin: 0 0 8px !important;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Hide admin-hidden cards from non-admin visitors. Admins see them
   with a HIDDEN pill (rendered by .admin-only above) so they can
   un-hide inline. The data attribute is set by renderCard(). */
.card[data-hidden="1"] { display: none; }
body.is-admin .card[data-hidden="1"] { display: flex; opacity: 0.72; }

/* Admin action row on each inventory card — Edit / Hide / Archive.
   Rendered inside the card body but hidden by .admin-only unless
   <body> has the .is-admin class. Lays out as a compact pill row. */
.card-admin-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.card-admin-act {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  border: 1px solid var(--tan-deep);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-admin-act:hover { background: var(--tan); }
.card-admin-act.edit { color: var(--orange-deep); border-color: rgba(192,83,28,0.4); }
.card-admin-act.hide,
.card-admin-act.show { color: var(--navy-deep); border-color: rgba(0,90,156,0.4); }
.card-admin-act.archive { color: #8a1a1a; border-color: rgba(201,42,42,0.4); }
/* Premium toggle. ☆ Premium (off) = subtle gold accent; ★ Premium (on)
   = filled gold gradient so the admin sees the active state at a glance. */
.card-admin-act.premium-off { color: #8a6500; border-color: rgba(212,175,55,0.55); }
.card-admin-act.premium-off:hover { background: rgba(212,175,55,0.10); }
.card-admin-act.premium-on {
  background: linear-gradient(135deg, #f4d56a, #d4af37 60%, #b88a1a);
  color: #1a1404;
  border-color: rgba(180, 132, 26, 0.7);
  font-weight: 800;
}
.card-admin-act.premium-on:hover { filter: brightness(1.05); }

/* Hidden-pill on card title (admin view only) */
.card-hidden-pill {
  background: #6B6258;
  color: var(--paper);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
}

/* Card detail expansion modal — opens when a visitor taps a card */
.card-detail-backdrop {
  position: fixed; inset: 0;
  background: rgba(14,14,14,0.78);
  z-index: 9700;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.card-detail-modal {
  background: var(--paper);
  border-radius: 14px;
  max-width: 620px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.card-detail-head {
  position: relative;
  background: var(--black);
  padding: 14px 50px 14px 18px;
}
.card-detail-head h2 {
  color: var(--paper);
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}
.card-detail-close {
  position: absolute; top: 8px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.12);
  border: 0; border-radius: 50%;
  color: var(--paper);
  font-size: 1.3rem;
  cursor: pointer;
}
.card-detail-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  background: #181818;
}
@media (min-width: 540px) {
  .card-detail-images.has-multi { grid-template-columns: 1fr 1fr; }
}
.card-detail-images img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  background: #0e0e0e;
  border-radius: 8px;
  cursor: zoom-in;
}
.card-detail-body {
  padding: 16px 20px 20px;
}
.card-detail-body .desc {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 14px;
}
.card-detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 0.86rem;
  margin: 0 0 16px;
  padding: 12px;
  background: var(--tan);
  border-radius: 8px;
}
.card-detail-specs .row {
  display: flex; gap: 6px; align-items: baseline; min-width: 0;
}
.card-detail-specs .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.card-detail-specs .value {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-detail-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.card-detail-price-row .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--orange-deep);
}
.card-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.card-detail-actions a {
  text-align: center;
  padding: 10px 8px;
  background: var(--orange);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  border-radius: 7px;
  font-size: 0.9rem;
}
.card-detail-actions a.secondary { background: var(--black); }
.card-detail-actions a.ghost {
  background: transparent;
  color: var(--orange-deep);
  border: 1px solid var(--orange);
}

/* "Suggest to a friend" button on each inventory card. Sits below the
   Buy/Trade/Inquire row as a subtle full-width text button — discoverable
   but not competing with the primary actions. Clicking opens the share
   modal injected by script.js. */
.card-suggest {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 7px 8px;
  background: transparent;
  color: var(--orange-deep);
  border: 1px dashed var(--tan-deep);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.card-suggest:hover {
  background: rgba(192,83,28,0.08);
  color: var(--orange);
  border-color: var(--orange);
  border-style: solid;
}

/* Inventory share modal — built dynamically by script.js, styled here. */
.inv-share-backdrop {
  position: fixed; inset: 0;
  background: rgba(14,14,14,0.7);
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.inv-share-card {
  background: var(--paper);
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.inv-share-head {
  padding: 16px 20px 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.inv-share-head h3 { margin: 0; font-size: 1.05rem; color: var(--black); }
.inv-share-close {
  background: transparent; border: 0; font-size: 1.4rem; color: var(--muted);
  cursor: pointer; padding: 2px 6px;
}
.inv-share-body { padding: 14px 20px; }
.inv-share-card-name {
  font-size: 0.9rem; color: var(--ink); font-weight: 600;
  background: var(--tan);
  padding: 8px 12px; border-radius: 6px; margin-bottom: 12px;
}
.inv-share-link-row {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.inv-share-link-row input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--tan-deep);
  border-radius: 6px; font-family: ui-monospace, monospace; font-size: 0.8rem;
  background: white; min-width: 0;
}
.inv-share-link-row button {
  padding: 8px 12px; background: var(--orange); color: var(--paper);
  border: 0; border-radius: 6px; font-weight: 600; font-size: 0.85rem;
  cursor: pointer; font-family: inherit;
}
.inv-share-link-row button:hover { background: var(--orange-deep); }
.inv-share-options { display: grid; gap: 6px; }
.inv-share-options button {
  text-align: left; padding: 10px 12px;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 7px; cursor: pointer; font-family: inherit;
  font-size: 0.88rem; color: var(--ink); font-weight: 500;
  transition: background 0.14s, border-color 0.14s;
}
.inv-share-options button:hover { background: var(--tan); border-color: var(--tan-deep); }
.inv-share-options button strong { color: var(--orange-deep); }
.inv-share-hint {
  margin: 12px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4;
}
.inv-share-hint .badge {
  display: inline-block; background: var(--orange); color: var(--paper);
  padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px;
}

/* Inline invite form (revealed when "Email a friend" is chosen). */
.inv-share-invite { margin-top: 12px; display: grid; gap: 8px; }
.inv-share-invite input[type="email"],
.inv-share-invite textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--tan-deep);
  border-radius: 6px; font: inherit; font-size: 0.88rem;
}
.inv-share-invite textarea { resize: vertical; min-height: 60px; }
.inv-share-invite label.ack {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.82rem; color: var(--ink); cursor: pointer;
}
.inv-share-invite label.ack input {
  width: 16px; height: 16px; accent-color: var(--orange); flex-shrink: 0; margin-top: 2px;
}
.inv-share-invite .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inv-share-invite .send-btn {
  padding: 8px 16px; background: var(--orange); color: var(--paper);
  border: 0; border-radius: 6px; font-weight: 600; font-size: 0.85rem;
  cursor: pointer; font-family: inherit;
}
.inv-share-invite .send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.inv-share-invite .status {
  font-size: 0.82rem; color: var(--muted); min-height: 1.1em; margin: 0;
}

.card-btn {
  display: inline-block;
  padding: 8px 6px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  transition: all .12s ease;
}
.card-btn.buy { background: var(--orange); color: var(--paper); border-color: var(--orange); }
.card-btn.buy:hover { background: var(--orange-soft); color: var(--paper); }
.card-btn.trade { background: var(--black); color: var(--paper); border-color: var(--black); }
.card-btn.trade:hover { background: var(--black-soft); color: var(--paper); }
.card-btn.inquire-btn:hover { border-color: var(--orange); color: var(--orange); }
.adv-check { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; font-weight: 500; cursor: pointer; background: var(--paper); }
.adv-check input { margin: 0; }
.adv-check:has(input:checked) { background: var(--black); color: var(--paper); border-color: var(--black); }
.year-pill { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.year-pill:hover { border-color: var(--orange); color: var(--orange); }
.year-pill.active { background: var(--orange); color: var(--paper); border-color: var(--orange); }

.page-btn {
  padding: 7px 12px;
  border: 1px solid var(--tan-deep);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 38px;
}
.page-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.page-btn.active-page { background: var(--orange); color: var(--paper); border-color: var(--orange); cursor: default; }
.page-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.page-gap { color: var(--muted); padding: 0 4px; }

.photo-count-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: var(--paper);
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.photo-count-badge:hover { background: var(--orange); }

.inv-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.inv-lightbox.show { display: flex; }
.inv-lightbox .lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
.inv-lightbox .lb-close, .inv-lightbox .lb-prev, .inv-lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--paper);
  border: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.inv-lightbox .lb-close { top: 18px; right: 18px; }
.inv-lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.inv-lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.inv-lightbox .lb-close:hover, .inv-lightbox .lb-prev:hover, .inv-lightbox .lb-next:hover { background: rgba(255,255,255,0.25); }
.inv-lightbox .lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Compact: drastically narrower column gap on wide screens. */
  gap: clamp(20px, 3.6vw, 48px);
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.image-block {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(192,83,28,0.4), rgba(14,14,14,0.85)),
    repeating-linear-gradient(45deg, rgba(232,220,196,0.04) 0 14px, transparent 14px 28px),
    var(--black);
  display: grid;
  place-items: center;
  color: var(--tan);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-md);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--tan-deep);
  font-size: 1.2rem;
}
.step h3 { margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 26px);
  box-shadow: var(--shadow-sm);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  /* Compact form inputs — still 40px+ tall thanks to padding + font. */
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid var(--tan-deep);
  border-radius: 7px;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(192,83,28,0.18);
}
.form textarea { min-height: 100px; resize: vertical; }
.form .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form .hint { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--orange-deep), var(--orange));
  color: var(--paper);
  text-align: center;
  /* Tighter — was clamp(28-52px). Inner-page CTAs were dominating
     the bottom of every screen. */
  padding: clamp(20px, 3vw, 36px) 0;
}
.cta-banner h2 { color: var(--paper); }
.cta-banner p { color: rgba(250,246,238,0.9); max-width: 560px; margin: 0 auto 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--tan);
  padding: 32px 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 9px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 5px; }
.footer-grid a { color: var(--tan); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--paper); }
.footer-grid p { color: var(--tan); font-size: 0.88rem; margin: 0 0 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 22px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(232,220,196,0.7);
  font-size: 0.85rem;
}
.footer-bottom .brand { color: var(--paper); }

/* ---------- Page header (non-home) ---------- */
.page-header {
  background: var(--black);
  color: var(--paper);
  /* Tighter still — user asked to minimize dead space site-wide.
     Inner pages were burning ~40px above the H1 for no payoff. */
  padding: clamp(14px, 2vw, 24px) 0 clamp(10px, 1.6vw, 20px);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 70% 30%, rgba(192,83,28,0.3), transparent 60%);
}
.page-header .container { position: relative; }
.page-header h1 { color: var(--paper); margin-bottom: 6px; }
.page-header p { color: var(--tan); font-size: 0.92rem; max-width: 640px; margin: 0; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5.5'/></svg>");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Contact info card ---------- */
.info-card {
  background: var(--black);
  color: var(--tan);
  border-radius: var(--radius);
  padding: clamp(16px, 2.6vw, 24px);
}
.info-card h3 { color: var(--paper); }
.info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.info-row svg { width: 18px; height: 18px; color: var(--orange-soft); flex-shrink: 0; margin-top: 2px; }
.info-row strong { color: var(--paper); display: block; margin-bottom: 2px; }
.info-row a { color: var(--tan); }
.info-row a:hover { color: var(--paper); }

/* ---- Mobile polish ---- */
/*
 * Mobile safety net — applies on every screen ≤ 700px wide. Three goals:
 *
 * 1) iOS Safari zoom prevention. Any form input under 16px triggers
 *    a viewport zoom on focus, breaking the layout. Force ≥16px on
 *    EVERY input/select/textarea sitewide so we don't have to chase
 *    individual fields page by page.
 *
 * 2) Thumb-friendly tap targets. Buttons, anchors with .btn / .btn-sm,
 *    nav links, and the card-action row all get a 36px+ min-height
 *    so they're hit-able without aim. Was 28-30px in places.
 *
 * 3) No accidental horizontal scroll. Body overflow-x:hidden as a
 *    backstop in case any third-party widget (Identity, Turnstile,
 *    Resend confirmation iframe) tries to push past viewport width.
 */
@media (max-width: 700px) {
  input, select, textarea {
    font-size: 16px !important;
  }
  .btn, .btn-sm, .card-btn, .filter, .sort-pill, .adv-check, .year-pill,
  .nav-links a, button:not(.serial-badge):not(.rc-badge):not(.photo-count-badge) {
    min-height: 36px;
  }
  .btn { min-height: 40px; padding-top: 10px; padding-bottom: 10px; }
  body { overflow-x: hidden; }
  /* The card-detail expansion modal should go full-screen on phones
     — no wasted bezel, no rounded corners eating header area. */
  .card-detail-backdrop { padding: 0; align-items: stretch; }
  .card-detail-modal {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    width: 100%;
  }
  .card-detail-images img { max-height: 60vh; }
}

@media (max-width: 640px) {
  /* Game widget: stack venue row + lineups, give lineup tables breathing room */
  #lg-venue-row { grid-template-columns: 1fr !important; gap: 10px !important; }
  #lg-lineup-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  #lg-card table { font-size: 0.78rem !important; }
  #lg-card .lg-lineup-table th,
  #lg-card .lg-lineup-table td { padding: 4px 6px !important; }
  #lg-card details summary { font-size: 0.72rem !important; }

  /* Line score: enable horizontal scroll on narrow screens */
  .line-score-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .line-score-wrap table { min-width: 480px; }

  /* Inventory: snug filter pills */
  .adv-check, .year-pill { font-size: 0.82rem !important; padding: 5px 9px !important; }

  /* Forum sort pills + cards */
  .sort-pill { font-size: 0.8rem !important; padding: 5px 10px !important; }
  .post-card { padding: 14px !important; }

  /* Footer collapses to single column on phones */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Hero spacing */
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }

  /* Tighter container padding on phones */
  .container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 380px) {
  /* Truly tiny screens */
  #lg-card { padding: 16px !important; }
  .brand img.brand-logo { height: 40px; }
  .nav-toggle { padding: 6px; }
}
