:root {
  --ink: #17171a;
  --muted: #63615b;
  --bg: #fdfbf6;
  --surface: #ffffff;
  --line: #ece8dd;
  --accent: #2a78d6;
  --accent-2: #eb6834;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(30, 24, 10, 0.07), 0 1px 2px rgba(30, 24, 10, 0.06);
  --shadow-md: 0 14px 30px rgba(30, 24, 10, 0.14);

  --game-mtg: #eb6834;
  --game-pokemon: #d99000;
  --game-onepiece: #1baf7a;
  --game-lorcana: #2a78d6;
  --game-riftbound: #d4548a;
  --game-community: #158215;
  --game-default: #4a3aa7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(42, 120, 214, 0.08), transparent),
    radial-gradient(1200px 400px at 90% 0%, rgba(235, 104, 52, 0.08), transparent),
    var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.65;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

h1, h2, .brand, .article-card a, .site-header .brand {
  font-family: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.confetti-bar {
  height: 6px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--game-lorcana), var(--game-mtg), var(--game-onepiece),
    var(--game-pokemon), var(--game-riftbound), var(--game-community),
    var(--game-lorcana)
  );
  background-size: 300% 100%;
  animation: slide-rainbow 10s linear infinite;
}

@keyframes slide-rainbow {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  background: linear-gradient(90deg, var(--game-lorcana), var(--game-mtg));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.2px;
}
.brand-mark {
  border-radius: 7px;
  display: block;
}

nav a {
  margin-left: 20px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 3px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-2);
  transition: width 0.2s ease;
}
nav a:hover { color: var(--accent-2); }
nav a:hover::after { width: 100%; }

/* ---------- Hero (index page) ---------- */

.hero {
  border-radius: 22px;
  padding: 40px 32px;
  margin: 10px 0 36px;
  background: linear-gradient(135deg, #2a78d6 0%, #4a3aa7 40%, #e87ba4 75%, #eb6834 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 2.4rem;
  font-weight: 800;
}
.hero p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 55ch;
}
.hero .game-strip {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero .game-strip span {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Follow-a-game bar + picker (client-side personalization) ---------- */

#ml-follow-bar {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 20px 0;
}
.follow-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.follow-label { color: var(--muted); font-weight: 700; }
.follow-chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
}
.follow-edit {
  border: none;
  background: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: underline;
  padding: 4px 2px;
}
.follow-edit-empty {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(42,120,214,0.1), rgba(235,104,52,0.1));
  border: 1px dashed rgba(42,120,214,0.35);
  border-radius: 999px;
  padding: 8px 16px;
}

.follow-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 5, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.follow-picker {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
}
.follow-picker h3 {
  margin: 0 0 6px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.3rem;
}
.follow-picker p { margin: 0 0 18px; color: var(--muted); font-size: 0.88rem; }
.picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.picker-chip {
  border: 2px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.picker-chip.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.picker-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.picker-save {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.picker-save:hover { transform: translateY(-2px); }
.picker-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Push notification opt-in (subscribe.js) ---------- */

#ml-notify-bar {
  max-width: 800px;
  margin: 0 auto;
  padding: 6px 20px 0;
  display: flex;
}
#ml-notify-bar:empty { padding: 0; }
.notify-btn { margin-left: auto; }
.notify-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.notify-chip {
  color: var(--accent-2);
  border-color: rgba(235, 104, 52, 0.35);
}
.notify-manage { font-size: 0.8rem; }
.picker-danger { color: var(--accent-2); }

.ml-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: ml-toast-in 0.25s ease;
}
.ml-toast strong { font-family: "Baloo 2", sans-serif; font-size: 0.95rem; }
.ml-toast span { color: var(--muted); font-size: 0.85rem; }
.ml-toast-out { animation: ml-toast-out 0.3s ease forwards; }
@keyframes ml-toast-in {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes ml-toast-out {
  to { transform: translateY(12px); opacity: 0; }
}

/* ---------- Quick Hits (Bleacher-Report-style scrollable strip) ---------- */

.quick-hits-section { margin-top: 8px; }
.quick-hits-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  margin: 0 0 36px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.quick-hits-strip::-webkit-scrollbar { height: 8px; }
.quick-hits-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.quick-hit {
  position: relative;
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quick-hit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quick-hit a, .quick-hit > div:first-child { text-decoration: none; color: inherit; display: block; }
.quick-hit img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background: var(--line);
}
.quick-hit-noimg {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--bg);
}
.quick-hit-body { padding: 10px 12px 12px; }
.quick-hit-pct {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.quick-hit-pct.up { color: #0ca30c; }
.quick-hit-pct.down { color: #d03b3b; }
.quick-hit strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
  margin-bottom: 4px;
  /* clamp to 2 lines so uneven card names don't blow out card height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quick-hit-price { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.quick-hit-body .sparkline { display: block; width: 100%; height: 20px; margin-top: 4px; }

/* ---------- Section headings (movers, related, latest analysis) ---------- */

.section-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  font-family: "Baloo 2", sans-serif;
}
.section-heading .meta {
  font-weight: 600;
  font-size: 0.78rem;
  margin-left: 4px;
}

/* ---------- Stats bar + Biggest Movers (homepage market snapshot) ---------- */

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 30px;
}
.stat-tile {
  flex: 1 1 140px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  text-align: center;
}
.stat-tile strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
}
.stat-tile span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}
.mover-card {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  border-left: 5px solid var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mover-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mover-card.up { border-left-color: #0ca30c; }
.mover-card.down { border-left-color: #d03b3b; }
.mover-card strong { font-size: 0.95rem; line-height: 1.3; }
.mover-price { font-size: 0.82rem; color: var(--muted); }
.mover-pct { font-weight: 800; font-size: 1.05rem; }
.mover-pct.up { color: #0ca30c; }
.mover-pct.down { color: #d03b3b; }
.mover-card .sparkline { display: block; width: 100%; height: 24px; margin-top: 2px; }

/* ---------- Market Pulse by Game (per-game rollup tiles) ---------- */

.game-pulse-section { margin-top: 4px; }
.game-pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}
.pulse-tile {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  border-left: 5px solid var(--game-default);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pulse-tile.game-mtg { border-left-color: var(--game-mtg); }
.pulse-tile.game-pokemon { border-left-color: var(--game-pokemon); }
.pulse-tile.game-onepiece { border-left-color: var(--game-onepiece); }
.pulse-tile.game-lorcana { border-left-color: var(--game-lorcana); }
.pulse-tile.game-riftbound { border-left-color: var(--game-riftbound); }
.pulse-tile.game-community { border-left-color: var(--game-community); }
.pulse-tile .tag { align-self: flex-start; }
.pulse-quiet { color: var(--muted); font-size: 0.85rem; }
.pulse-stat { font-size: 0.85rem; color: var(--ink); }
.pulse-avg { font-weight: 800; }
.pulse-avg.up { color: #0ca30c; }
.pulse-avg.down { color: #d03b3b; }
.pulse-top { font-size: 0.82rem; color: var(--muted); }
.pulse-top-pct { font-weight: 700; }
.pulse-top-pct.up { color: #0ca30c; }
.pulse-top-pct.down { color: #d03b3b; }

/* ---------- Momentum badges (build_site.py's classify_momentum) ---------- */

.momentum-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--muted);
}
.momentum-chip {
  display: inline-block;
  font-size: 0.85rem;
  margin-left: 4px;
  vertical-align: middle;
}

/* ---------- Card action buttons (watchlist heart + share) ---------- */

.card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.watch-btn, .share-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: transform 0.12s ease, color 0.12s ease;
  padding: 0;
}
.watch-btn:hover, .share-btn:hover { transform: scale(1.1); }
.watch-btn.watching { color: var(--accent-2); }
.watch-btn .watch-icon, .share-btn .share-icon { pointer-events: none; }
.share-btn:hover { color: var(--accent); }

.quick-hits-strip .card-actions { top: 6px; right: 6px; gap: 4px; }
.quick-hits-strip .watch-btn, .quick-hits-strip .share-btn { width: 26px; height: 26px; font-size: 0.9rem; }

/* "Cards You're Watching" reuses .quick-hits-section / .quick-hits-strip --
   #watchlist-section just needs the [hidden] no-JS/empty-watchlist fallback,
   which the hidden attribute already handles via the UA stylesheet. */

/* ---------- Since Your Last Visit banner ---------- */

.visit-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  max-width: 800px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(42, 120, 214, 0.1), rgba(235, 104, 52, 0.1));
  border: 1px solid var(--line);
  font-size: 0.88rem;
}
.visit-banner span { flex: 1 1 260px; color: var(--ink); }
.visit-banner a {
  font-weight: 700;
  white-space: nowrap;
}
.visit-banner-close {
  border: none;
  background: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 2px 4px;
}
.visit-banner-close:hover { color: var(--ink); }

/* ---------- Check Your List (paste-in bulk price checker) ---------- */

.list-checker-section { margin: 0 0 36px; }
.list-checker-section > .meta { margin: 0 0 12px; }
.list-checker-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--ink);
  resize: vertical;
  box-shadow: var(--shadow-sm);
}
.list-checker-textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.list-checker-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
}
.list-checker-run {
  background: linear-gradient(135deg, var(--accent), #1c5cab);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.list-checker-run:hover { filter: brightness(1.06); }
.list-checker-run:disabled { opacity: 0.6; cursor: default; }
.list-checker-status { font-size: 0.82rem; color: var(--muted); }
.list-checker-results { display: flex; flex-direction: column; gap: 10px; }
.list-check-row {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 10px 14px;
}
.list-check-query { font-size: 0.8rem; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.list-check-matches { display: flex; flex-wrap: wrap; gap: 8px; }
.list-check-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 10px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  border: 1px solid var(--line);
}
.list-check-chip:hover { border-color: var(--accent); }
.list-check-chip .set-name { color: var(--muted); }
.list-check-chip .price { font-weight: 800; }
.list-check-none { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ---------- Related articles (bottom of article pages) ---------- */

.related { margin-top: 48px; }
.related .article-grid { margin-top: 4px; }

/* ---------- Article card grid (index page) ---------- */

.article-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px 20px;
  border-top: 6px solid var(--game-default);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.article-card a.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
.article-card a.card-title:hover { color: var(--accent-2); }
.article-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.article-card .card-cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.article-card .card-cta::after { content: " →"; transition: margin-left 0.15s ease; }
.article-card:hover .card-cta::after { margin-left: 4px; }

.article-card.game-mtg { border-top-color: var(--game-mtg); }
.article-card.game-pokemon { border-top-color: var(--game-pokemon); }
.article-card.game-onepiece { border-top-color: var(--game-onepiece); }
.article-card.game-lorcana { border-top-color: var(--game-lorcana); }
.article-card.game-riftbound { border-top-color: var(--game-riftbound); }
.article-card.game-community { border-top-color: var(--game-community); }

/* ---------- Article page ---------- */

article h1 { font-size: 1.95rem; margin-bottom: 6px; font-weight: 800; }
h2 { font-size: 1.35rem; margin-top: 2em; color: var(--accent-2); font-weight: 700; }
.meta { color: var(--muted); font-size: 0.88rem; margin-top: 0; }

/* ---------- Tag pills ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  background: var(--game-default);
  border-radius: 999px;
  padding: 3px 12px 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.tag.game-mtg { background: var(--game-mtg); }
.tag.game-pokemon { background: var(--game-pokemon); }
.tag.game-onepiece { background: var(--game-onepiece); }
.tag.game-lorcana { background: var(--game-lorcana); }
.tag.game-riftbound { background: var(--game-riftbound); }
.tag.game-community { background: var(--game-community); }

/* ---------- Card image gallery ---------- */

.card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-gallery figure {
  margin: 0;
  text-align: center;
}
.card-gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.card-gallery figure:hover img {
  transform: translateY(-6px) scale(1.04) rotate(-1deg);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}
.card-gallery figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.card-gallery figcaption span {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.4em 0;
  font-size: 0.95rem;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: #fbf6ec; }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Buy CTA buttons ---------- */

p.buy-cta {
  margin: 28px 0 8px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(42, 120, 214, 0.08), rgba(235, 104, 52, 0.08));
  border: 1px dashed rgba(42, 120, 214, 0.3);
  border-radius: var(--radius);
}
p.buy-cta strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Baloo 2", sans-serif;
  font-size: 1rem;
  color: var(--ink);
}
p.buy-cta a {
  display: inline-block;
  text-decoration: none;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  margin: 4px 8px 4px 0;
  background: linear-gradient(135deg, var(--accent), #1c5cab);
  box-shadow: 0 4px 12px rgba(42, 120, 214, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
p.buy-cta a:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 18px rgba(42, 120, 214, 0.45);
}
p.buy-cta a:nth-of-type(2) {
  background: linear-gradient(135deg, var(--accent-2), #c74f1f);
  box-shadow: 0 4px 12px rgba(235, 104, 52, 0.35);
}
p.buy-cta a:nth-of-type(2):hover {
  box-shadow: 0 8px 18px rgba(235, 104, 52, 0.45);
}
p.buy-cta a::before { content: "🛒 "; }
p.buy-cta em, em.disclosure-note {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Misc content polish ---------- */

article strong { color: var(--ink); }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }

.site-footer {
  margin-top: 60px;
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.site-footer a { color: var(--accent); }
.footer-crosslink { font-weight: 600; }

@media (max-width: 480px) {
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 1.8rem; }
}
