/* ============================================
   Save One Game From Each Year — style.css
   Night Theme — Enhanced Gaming Immersion
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #0b0f1a;
  --card: #151b2b;
  --text: #e8ecf5;
  --secondary: #9aa4b8;
  --primary: #6347d6;
  --accent: #22d3ee;
  --gold: #f4c969;
  --card-hover: var(--card);
  --border: #232b40;
  --success: #34d399;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.32);
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --glow-accent: rgba(34, 211, 238, 0.45);
  --glow-primary: var(--glow-accent);
  --era-glow: var(--glow-accent);
  --white: #fff;
  --ink: var(--bg);
  --ink-shadow: var(--bg);
  --scrim: var(--bg);
  --select-arrow: var(--secondary);
  --select-border: var(--border);
  --accent-strong: var(--accent);
  --lavender: var(--primary);
  --orange: var(--primary);
  --muted-fallback: var(--secondary);
  --header-outline: rgba(255,255,255,0.2);
  --header-current: var(--accent);
  --header-menu-surface: var(--card);
  --era-80s: var(--accent);
  --era-90s: var(--accent);
  --era-00s: var(--accent);
  --era-10s: var(--accent);
  --era-20s: var(--accent);
  --brand-tiktok: var(--accent);
  --brand-facebook: var(--accent);
  --brand-instagram: var(--accent);
  --brand-snapchat: var(--accent);
  --brand-reddit: var(--accent);
}

/* --- Era color shifting --- */
.era-80s, .era-90s, .era-00s, .era-10s, .era-20s { --accent: var(--era-20s); }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* --- Animated Starfield Background --- */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 40% 60%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 55% 20%, rgba(255,255,255,0.45) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 75%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 45%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,0.45) 50%, transparent 50%),
    radial-gradient(1px 1px at 35% 50%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 5% 55%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 85%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 45% 5%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 95% 65%, rgba(255,255,255,0.35) 50%, transparent 50%);
  background-size: 200% 200%;
  animation: starDrift 90s linear infinite;
  opacity: 0.7;
}

body::after {
  background-image:
    radial-gradient(1px 1px at 12% 28%, rgba(99,71,214,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 33% 72%, rgba(34,211,238,0.35) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 58% 15%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 76% 55%, rgba(99,71,214,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 20% 90%, rgba(34,211,238,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 88% 30%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 42% 42%, rgba(99,71,214,0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 65% 88%, rgba(34,211,238,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 8% 48%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 52% 68%, rgba(99,71,214,0.3) 50%, transparent 50%);
  background-size: 250% 250%;
  animation: starDrift2 120s linear infinite;
  opacity: 0.5;
}

@keyframes starDrift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 60%; }
  100% { background-position: 0% 0%; }
}

@keyframes starDrift2 {
  0%   { background-position: 100% 100%; }
  50%  { background-position: 0% 40%; }
  100% { background-position: 100% 100%; }
}

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  position: relative;
  z-index: 1;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* --- Header --- */
.site-header {
  position: relative;
  z-index: 1;
  padding: 40px 20px 24px;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 20px clamp(16px, 2vw, 28px) 44px;
}

.site-header .container::before {
  content: "";
  position: absolute;
  inset: 8px 0 32px;
  z-index: -1;
  border: 1px solid var(--header-outline);
  border-radius: 12px;
  pointer-events: none;
}

.site-header .site-logo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 1.48vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.35vw, 19px);
}

.site-header .site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.site-header .site-logo,
.site-header .site-nav a {
  text-shadow: 0 1px 4px var(--ink-shadow);
}

.site-header .site-nav a:hover,
.site-header .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4em;
}

.site-header .site-nav a[aria-current="page"] {
  text-decoration-color: var(--header-current);
}

.site-header :is(.site-logo, .site-menu-toggle, .site-nav a):focus-visible {
  outline: 2px solid var(--header-current);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-header .site-logo-short,
.site-header .site-menu-toggle {
  display: none;
}

@media (768px <= width < 960px) {
  .site-header .site-logo-full {
    display: none;
  }

  .site-header .site-logo-short {
    display: inline;
  }
}

@media (width < 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 7px 12px;
    background: var(--scrim);
  }

  .site-header .container {
    min-height: 46px;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 0 10px;
  }

  .site-header .container::before {
    inset: 0;
    border-radius: 10px;
  }

  .site-header .site-logo {
    min-height: 44px;
    font-size: clamp(.8125rem, 3.6vw, .9375rem);
  }

  .site-header[data-menu-ready] .site-menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .site-header .site-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
  }

  .site-header .site-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-header[data-menu-ready] .site-nav {
    position: absolute;
    inset: calc(100% + 8px) 0 auto auto;
    display: none;
    width: min(224px, 100%);
    padding: 8px;
    border: 1px solid var(--header-outline);
    border-radius: 10px;
    background: var(--header-menu-surface);
    box-shadow: var(--shadow);
  }

  .site-header[data-menu-ready] .site-menu-toggle[aria-expanded="true"] + .site-nav {
    display: grid;
  }

  .site-header .site-nav a {
    min-height: 44px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
  }

  .site-header .site-nav a:hover {
    background: var(--card-hover);
  }
}

/* --- Start Screen / Hero --- */
.start-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  text-align: center;
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
  background-color: var(--bg);
}
.start-screen.hidden { display: none; }

.hero-fold {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: calc(100svh - 168px);
  padding: 28px 20px 24px;
  box-sizing: border-box;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
}

.hero-picks-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
  margin: -2px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--secondary);
  animation: fadeIn 1.05s ease;
}

.hero-picks-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-picks-link:hover,
.hero-picks-link:focus-visible {
  color: var(--text);
}

.start-loading {
  margin: 0;
  font-size: 13px;
  color: var(--secondary);
}

.start-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  padding: 14px 18px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.08);
}

.start-error[hidden] { display: none; }

.start-error-msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.start-retry {
  padding: 8px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.start-retry:hover,
.start-retry:focus-visible {
  filter: brightness(1.1);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-below {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px 20px 40px;
  box-sizing: border-box;
}

.hero-support {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--secondary);
}
.hero-contribute-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(34, 211, 238, 0.45);
  padding-bottom: 2px;
}
.hero-contribute-link:hover { color: var(--white); border-bottom-color: var(--accent); }

.hero-year-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  background: rgba(21, 27, 43, 0.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.hero-year-link strong { color: var(--accent); font-weight: 700; }
.hero-year-link:hover,
.hero-year-link:focus-visible { border-color: var(--accent); background: rgba(34, 211, 238, 0.12); color: var(--white); }

/* 2026 homepage entry */
.y26-home-band {
  position: relative;
  z-index: 1;
  padding: 26px 0 10px;
}
.y26-home-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 8% 0%, rgba(34, 211, 238, 0.13), transparent 58%), linear-gradient(180deg, var(--card), var(--bg));
  box-shadow: var(--shadow);
}
.y26-home-kicker {
  margin-bottom: 4px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.y26-home-copy h2 {
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.14;
}
.y26-home-copy p:not(.y26-home-kicker) {
  max-width: 560px;
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.55;
}
.y26-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(34, 211, 238, 0.45);
  padding-bottom: 2px;
}
.y26-home-cta:hover,
.y26-home-cta:focus-visible { color: var(--white); border-bottom-color: var(--accent); }
.y26-home-covers {
  display: grid;
  grid-template-columns: repeat(3, 96px);
  gap: 8px;
}
.y26-home-covers img {
  display: block;
  width: 96px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
}
@media (max-width: 700px) {
  .y26-home-inner { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .y26-home-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .y26-home-covers img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}


.start-screen-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.start-screen::before,
.start-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.start-screen::before {
  background: linear-gradient(180deg, rgba(11,15,26,0.82) 0%, rgba(11,15,26,0.34) 18%, rgba(11,15,26,0.18) 42%, rgba(11,15,26,0.22) 68%, rgba(11,15,26,0.72) 100%);
}

.start-screen::after {
  background: linear-gradient(90deg, rgba(11,15,26,0.42) 0%, rgba(11,15,26,0.05) 22%, rgba(11,15,26,0.05) 78%, rgba(11,15,26,0.42) 100%);
}

.start-screen > *:not(.start-screen-bg) {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 24px;
  letter-spacing: 0.03em;
  animation: fadeIn 0.6s ease;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.03em;
  max-width: 680px;
  animation: fadeIn 0.8s ease;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--lavender) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--secondary);
  max-width: 520px;
  font-size: 17px;
  line-height: 1.7;
  animation: fadeIn 1s ease;
}

.hero-note {
  margin-top: -10px;
  font-size: 13px;
  color: var(--secondary);
  letter-spacing: 0.01em;
  animation: fadeIn 1.05s ease;
}

.hero-note strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-cost {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.hero-proof {
  margin: -4px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--secondary);
}

.hero-updated {
  margin: -6px 0 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--secondary);
  opacity: 0.85;
}

.hero-proof strong {
  color: var(--text);
  font-weight: 700;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  background: rgba(21, 27, 43, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 1.2s ease;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.year-range {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  animation: fadeIn 1.1s ease;
}

.year-range-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.year-range-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--secondary);
  background: rgba(21, 27, 43, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.year-range-chip:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.35);
}

.year-range-chip.is-active {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
}

.year-range-custom {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(21, 27, 43, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.year-range-sep {
  color: var(--secondary);
  font-size: 14px;
  opacity: 0.7;
}

.year-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.year-picker-label {
  font-size: 12px;
  color: var(--secondary);
  white-space: nowrap;
}

.year-picker-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 78px;
  height: 34px;
  padding: 0 28px 0 12px;
  font-size: 14px;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
  background-color: var(--card);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--select-arrow) 50%),
    linear-gradient(135deg, var(--select-arrow) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat, no-repeat;
  border: 1px solid var(--select-border);
  border-radius: 999px;
  cursor: pointer;
}

.year-picker-btn:hover,
.year-picker-btn[aria-expanded="true"] {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--accent);
}

.year-picker-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.year-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 112px;
  max-height: 220px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  background: rgba(21, 27, 43, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  -webkit-overflow-scrolling: touch;
}

.year-picker-menu[hidden] {
  display: none !important;
}

.year-picker-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  cursor: pointer;
}

.year-picker-option:hover,
.year-picker-option:focus-visible {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  outline: none;
}

.year-picker-option.is-selected {
  background: rgba(34, 211, 238, 0.16);
  color: var(--accent);
  font-weight: 700;
}

.year-range-hint {
  margin: 0;
  font-size: 13px;
  color: var(--danger);
}

.year-range[hidden] {
  display: none !important;
}

.hero-range-toggle {
  flex: 0 0 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: auto;
  padding: 2px 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--secondary);
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.hero-range-toggle:hover,
.hero-range-toggle:focus-visible {
  opacity: 1;
  color: var(--accent);
  outline: none;
}

.btn-start:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  animation: none;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(560px, 100%);
  min-height: 96px;
  height: auto;
  padding: 14px 28px;
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--bg);
  background: var(--gold);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 26px rgba(244,201,105,0.28);
  animation: btnGlow 3s ease-in-out infinite;
  letter-spacing: 0.01em;
  text-align: center;
}

.btn-start .btn-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.05;
}
.btn-start .btn-label { font-weight: 800; }
.btn-start .btn-range {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.82;
}
.btn-start .btn-icon {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
}
.btn-start .btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 26px rgba(244,201,105,0.28); }
  50% { box-shadow: 0 10px 34px rgba(244,201,105,0.45); }
}
.btn-start:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 38px rgba(244,201,105,0.5);
}

.btn-start.is-loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

/* --- Game Area --- */
.game-area {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 8px 12px 12px;
  box-sizing: border-box;
  justify-content: flex-start;
}
.game-area.active { display: flex; }
body.is-playing {
  overflow: auto;
}
body.is-playing .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
}
body.is-playing .game-area.active {
  min-height: calc(100svh - 56px);
  height: auto;
  max-height: none;
  overflow: visible;
  justify-content: center;
  padding: 18px 20px 36px;
  gap: 14px;
}
body.is-playing .about-section,
body.is-playing .engage-section,
body.is-playing .comments-section,
body.is-playing .contribute-section,
body.is-playing .site-footer {
  display: none !important;
}

/* --- Year Display (Pulsing Glow) --- */
.year-display {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  text-shadow: 0 0 16px var(--era-glow);
  animation: none;
  padding: 0;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

@keyframes yearPulse {
  0%, 100% {
    text-shadow: 0 0 20px var(--era-glow), 0 0 40px var(--era-glow);
    opacity: 1;
  }
  50% {
    text-shadow: 0 0 30px var(--era-glow), 0 0 60px var(--era-glow), 0 0 80px var(--era-glow);
    opacity: 0.92;
  }
}

.year-label {
  font-size: 14px;
  color: var(--secondary);
  text-align: center;
  margin-top: -8px;
}

.pick-hint {
  margin: -2px 0 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.pick-hint[hidden] { display: none; }
.pick-hint.is-hiding { opacity: 0; }

.pick-hint strong {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .pick-hint { font-size: 13px; }
}

/* --- Progress Bar (Shimmer) --- */
.progress-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px var(--era-glow);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.35) 40%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0.35) 60%,
    transparent 100%
  );
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%; }
}

.progress-text {
  font-size: 13px;
  color: var(--secondary);
  text-align: center;
  margin-top: 6px;
}

/* --- Game Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 760px;
  padding: 8px 0;
}

/* --- Game Card (Glow + Tooltip) --- */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.25s cubic-bezier(0.4,0,0.2,1),
              border-color 0.25s ease,
              background 0.2s ease;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  min-height: 0;
  overflow: hidden;
}

/* Legacy full-bleed layer disabled — caused tall empty cards */
/* cover scrim via ::after in play chrome */

/* keep meta/emoji above cover */
.game-card > .card-media { z-index: 0; }
.game-card > .card-meta,
.game-card > .emoji,
.game-card > .vote-overlay,
.game-card > .saved-badge {
  position: absolute !important;
  z-index: 3;
}
.game-card > .game-tooltip { z-index: 8; }


/* Cards without cover art: era-tinted gradient tile */
.game-card:not(.has-bg) {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.07), rgba(255,255,255,0) 62%),
    linear-gradient(160deg, rgba(34,211,238,0.10) 0%, rgba(21,27,43,0.92) 52%, rgba(99,71,214,0.20) 100%);
}

.game-card:not(.has-bg) .emoji {
  font-size: 40px;
  filter: drop-shadow(0 6px 16px var(--era-glow));
}

.game-card .emoji {
  font-size: 36px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card .title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card .platform {
  font-size: 12px;
  color: var(--secondary);
  opacity: 0.7;
}

/* Card Hover Neon Glow */
.game-card:hover {
  transform: scale(1.06) translateY(-3px);
  border-color: var(--accent);
  background: rgba(21, 27, 43, 0.85);
  box-shadow:
    0 0 12px var(--era-glow),
    0 0 28px var(--era-glow),
    0 8px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.game-card:hover .emoji {
  transform: scale(1.33);
}

.game-card:active {
  transform: scale(0.97);
}

.game-card.selected {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 24px var(--glow-accent), 0 0 48px rgba(34,211,238,0.15), 0 8px 32px rgba(0,0,0,0.4);
  transform: scale(1.06) translateY(-3px);
  opacity: 1 !important;
  z-index: 10;
}
.saved-badge {
  position: absolute;
  top: 6px; right: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 5;
}

/* --- Game Card Tooltip --- */
.game-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  max-width: 280px;
  padding: 16px;
  background: rgba(21, 27, 43, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 12px var(--era-glow);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.game-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(21, 27, 43, 0.92);
}

.game-card:hover .game-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.game-tooltip .tooltip-emoji {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 8px;
  display: block;
}

.game-tooltip .tooltip-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.game-tooltip .tooltip-platform {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* --- Results Screen --- */
.results-area {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}
.results-area.active { display: flex; }

.results-area .results-label {
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
}

.results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 900px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(21, 27, 43, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.result-item:hover {
  background: rgba(21, 27, 43, 0.85);
  border-color: rgba(99, 71, 214, 0.3);
  transform: translateX(4px);
  box-shadow: -4px 0 12px var(--era-glow);
}

.result-item .result-year {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  min-width: 42px;
  flex-shrink: 0;
}

.result-item .result-emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.result-item .result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
}

.result-item .result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.result-item .result-platform {
  font-size: 12px;
  color: var(--secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,71,214,0.3);
}
.btn:active { transform: scale(0.97); }

.btn-secondary {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--card-hover);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--ink);
}

.results-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Sound Toggle Button --- */
.sound-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(21, 27, 43, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.sound-toggle:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.sound-toggle.active {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}

body.share-modal-open .sound-toggle {
  opacity: 0;
  pointer-events: none;
}

/* --- Share Canvas Preview --- */
.share-heading {
  margin: 8px 0 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.share-preview {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.share-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ink);
}

/* --- Fade-in animations --- */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-enter {
  animation: cardEnter 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

@keyframes cardEnter {
  from { opacity: 0; transform: scale(0.85) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Keyboard focus --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Hidden utility --- */
.hidden { display: none !important; }

/* --- Selection flash --- */
@keyframes selectionFlash {
  0%   { box-shadow: 0 0 0 0 var(--glow-accent); }
  50%  { box-shadow: 0 0 24px 8px var(--glow-accent); }
  100% { box-shadow: 0 0 8px 2px var(--glow-accent); }
}

.game-card.flash-select {
  animation: selectionFlash 0.5s ease-out;
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 32px;
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)),
                    linear-gradient(90deg, transparent, rgba(34,211,238,0.3), rgba(99,71,214,0.3), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--accent);
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--secondary);
}

.footer-copy {
  font-size: 12px;
  color: var(--secondary);
  opacity: 0.6;
}

/* --- About / Content sections --- */
.about-section,
.engage-section,
.comments-section {
  position: relative;
  z-index: 1;
}

.about-section {
  padding: 20px 0 40px;
}

.about-section .container {
  max-width: 820px;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), rgba(34,211,238,0.3), var(--border), transparent);
  margin-bottom: 48px;
}

.about-section h2 {
  font-size: 1.35rem;
  color: var(--text);
  margin: 48px 0 20px;
  padding: 12px 0 12px 20px;
  border-left: 3px solid var(--accent);
  position: relative;
}

.about-section h2:first-of-type {
  margin-top: 0;
}

.about-section p {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-section strong {
  color: var(--text);
  font-weight: 600;
}

/* Styled ordered list — step cards */
.about-section ol {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin: 0;
}

.about-section ol li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(21, 27, 43, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.about-section ol li:hover {
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(21, 27, 43, 0.75);
  transform: translateX(4px);
}

.about-section ol li::before {
  content: counter(steps);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 50%;
  margin-top: 1px;
}

/* Styled unordered list — feature cards */
.about-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin: 0;
}

.about-section ul li {
  padding: 16px 20px 16px 20px;
  background: rgba(21, 27, 43, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
  position: relative;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.about-section ul li:hover {
  border-color: rgba(99, 71, 214, 0.3);
  background: rgba(21, 27, 43, 0.65);
  transform: translateY(-2px);
}

.about-section ul li strong {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}

/* Hide the colon after bold labels in ul li */
.about-section ul li strong::after {
  content: '';
}

/* --- Engage Section --- */
.engage-section {
  padding: 24px 0;
}

.engage-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 28px;
  background: rgba(21, 27, 43, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.engage-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.engage-icon {
  font-size: 28px;
}

.engage-text {
  font-size: 15px;
  color: var(--secondary);
  font-weight: 500;
}

.results-area .results-label,
.comments-section .section-heading {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Comments Section --- */
.comments-section {
  padding: 48px 0 32px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-heading-icon {
  font-size: 24px;
}

/* --- Responsive (640px) --- */
@media (max-width: 640px) {
  .container {
    padding: 16px 12px 36px;
  }

  .footer-nav {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .year-display {
    font-size: 2.25rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-card {
    padding: 14px 8px 12px;
    min-height: 100px;
  }

  .game-card .emoji {
    font-size: 28px;
  }

  .game-card:hover .emoji {
    transform: scale(1.2);
  }

  .game-card .title {
    font-size: 12px;
  }

  .game-card .platform {
    font-size: 12px;
  }

  .results-list {
    grid-template-columns: 1fr;
  }

  .result-item .result-title {
    font-size: 13px;
  }

  .hero-fold {
    min-height: calc(100svh - 59px);
    padding: 20px 16px 20px;
    gap: 12px;
  }

  .hero-below {
    padding: 4px 16px 36px;
    gap: 12px;
  }

  .start-screen-bg {
    object-position: center 40%;
  }

  .start-screen::before {
    background: linear-gradient(180deg, rgba(11,15,26,1) 0%, rgba(11,15,26,0.7) 14%, rgba(11,15,26,0.45) 40%, rgba(11,15,26,0.58) 70%, rgba(11,15,26,1) 100%);
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.65;
    max-width: 34ch;
  }

  .hero-note {
    font-size: 12px;
  }

  .hero-support {
    font-size: 14px;
    max-width: 34ch;
  }

  .btn-start .btn-arrow {
    display: none;
  }

  .btn-start {
    justify-content: center;
  }

  .year-range-custom {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    justify-content: center;
    border-radius: var(--radius);
  }

  .year-picker-menu {
    max-height: 200px;
  }

  .year-range-presets {
    gap: 6px;
  }

  .hero-stats {
    padding: 14px 20px;
    gap: 16px;
  }

  .hero-stat-num {
    font-size: 1.3rem;
  }

  .btn-start {
    width: 100%;
    min-height: 84px;
    height: auto;
    padding: 12px 20px;
    font-size: 24px;
  }
  .btn-start .btn-range { font-size: 14px; }

  .about-section ul {
    grid-template-columns: 1fr;
  }

  .engage-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .sound-toggle {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8125rem; /* 29px */
    line-height: 1.2;
  }

  .hero-cost {
    font-size: 13px;
    letter-spacing: 0.05em;
  }

  .hero-cta-row {
    width: 100%;
  }

  .btn-start {
    width: 100%;
    min-width: 0;
  }

  .hero-range-toggle {
    height: auto;
    padding: 2px 4px;
    font-size: 12px;
  }

  .site-menu-toggle span {
    width: 15px;
  }
}

@media (max-width: 300px) {
  .hero-stats {
    gap: 8px;
  }
}

/* ============================================
   v2: Background overlay, vote overlay, tooltips
   ============================================ */

/* --- Background overlay on game hover --- */
.game-bg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.5) saturate(1.2);
  opacity: 0;
  transition: opacity 0.2s ease, filter 0.2s ease;
  pointer-events: none;
}
.game-bg-overlay.active {
  opacity: 0.82;
}

/* --- Dimmed cards after selection --- */
.game-card.dimmed {
  opacity: 0.4;
  pointer-events: none;
}

/* --- Vote result overlay at bottom of card --- */
.vote-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(11,15,26,0.75);
  border-radius: 0 0 var(--radius) var(--radius);
  text-shadow: 0 0 8px var(--era-glow);
}

/* --- Tooltip with Steam image + description --- */
.game-tooltip {
  text-align: left;
}
.tooltip-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
  display: block;
}
.tooltip-desc {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.5;
  margin-top: 6px;
}

@media (hover: none), (pointer: coarse) {
  .game-tooltip {
    display: none !important;
  }
}

/* --- Result item image --- */
.result-img {
  width: 88px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* --- Share message --- */
.share-msg {
  font-size: 13px;
  color: var(--success);
  margin-top: 4px;
}

/* ============================================
   Long-form pages — /games and /how-to-play
   ============================================ */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 20px 96px;
  font-size: 17px;
  line-height: 1.8;
}

.page-content h1,
.page-content h2 {
  font-family: var(--font-title);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-content h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 18px; }
.page-content h2 { font-size: clamp(22px, 3vw, 30px); margin: 64px 0 18px; }
.page-content h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.8;
}

.page-content p { margin: 0 0 1.15em; color: var(--secondary); }
.page-content p strong { color: var(--text); }
.page-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.32);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.page-content a:hover { border-bottom-color: var(--accent); }
.page-content ul, .page-content ol { margin: 0 0 1.2em; padding-left: 1.35em; color: var(--secondary); }
.page-content li { margin: 0.4em 0; }

.page-content .games-vote-intro {
  margin: 0 0 14px;
  scroll-margin-top: 76px;
}

.page-content .games-vote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  line-height: 1.25;
  transition: filter 160ms ease, transform 160ms ease;
}

.page-content .games-vote-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (hover: hover) {
  .page-content .games-vote-link:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
  }
}

.page-content .games-vote-link:active {
  filter: brightness(0.92);
}

.page-content #games-vote-help {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .page-content .games-vote-link {
    transition: none;
  }

  .page-content .games-vote-link:hover {
    transform: none;
  }
}

/* --- Year cards --- */
.year-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 10px;
  margin: 0 0 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.year-block:hover { border-color: rgba(34, 211, 238, 0.32); }

.year-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px !important;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
}
.year-num {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.year-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  opacity: 0.7;
}

.year-games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
}
.year-games li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  font-size: 15px;
  line-height: 1.45;
}
.yg-title { color: var(--text); }
.yg-plat {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--secondary);
  opacity: 0.8;
  white-space: nowrap;
}

/* --- Page jump nav --- */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 26px 0 32px;
  padding: 10px 0;
  background: rgba(11, 15, 26, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.page-nav-label {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}
.page-nav a {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.1;
  color: var(--text);
  text-decoration: none;
}
.page-nav a:hover,
.page-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
}
.page-content h2, .year-block { scroll-margin-top: 86px; }

.back-top {
  margin: 40px 0 0 !important;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: right;
}
.back-top a { font-size: 13px; }

@media (max-width: 767px) {
  .page-content h1 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 10px;
  }
}

@media (max-width: 640px) {
  .page-content { padding: 20px 16px 72px; font-size: 16px; }
  .page-content h2 { margin-top: 48px; }
  .year-games { grid-template-columns: 1fr; }
  .year-block { padding: 14px 16px 8px; }
  .yg-plat { font-size: 12px; }
  .page-nav { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 18px 0 24px; padding: 8px 0; }
  .page-nav-label { display: none; }
  .page-nav::-webkit-scrollbar { display: none; }
  .page-nav a { white-space: nowrap; }
  .back-top { text-align: left; }
}

/* --- Year pilot pages /games/YYYY --- */
.year-page .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--secondary);
}
.year-page .breadcrumb a {
  color: var(--secondary);
  border-bottom: none;
}
.year-page .breadcrumb a:hover { color: var(--accent); }
.year-page .year-vote-cta { margin: 0 0 22px; }
.year-page .year-blurb {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 62ch;
}
.year-page-games {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.year-page-game {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: rgba(21, 27, 43, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.year-page-game img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--card);
}
.year-page-game .yg-emoji {
  width: 120px;
  height: 68px;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: rgba(34, 211, 238, 0.08);
  border-radius: 6px;
  flex-shrink: 0;
}
.year-page-game strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}
.year-page-game .yg-plat,
.year-page-game .yg-year {
  display: inline-block;
  margin-top: 4px;
  margin-right: 10px;
  font-size: 12px;
  color: var(--secondary);
}
.year-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
@media (max-width: 640px) {
  .year-page-games { grid-template-columns: 1fr; }
  .year-page-game img,
  .year-page-game .yg-emoji { width: 96px; height: 54px; }
}



/* --- Share modal --- */
.share-modal[hidden] { display: none !important; }
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 26, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: shareFadeIn 0.28s ease;
}
.share-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 22px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(180deg, rgba(21, 27, 43, 0.98), rgba(11, 15, 26, 0.98));
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(99, 71, 214, 0.12);
  animation: sharePopIn 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.share-modal.is-closing .share-modal-panel {
  animation: sharePopOut 0.22s ease forwards;
}
.share-modal.is-closing .share-modal-backdrop {
  animation: shareFadeOut 0.22s ease forwards;
}
.share-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.share-modal-title {
  margin: 0 28px 6px 0;
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--accent);
}
.share-modal-hint {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 0.92rem;
}
.share-name-label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--secondary);
}
.share-name-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
}
.share-name-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.share-modal-preview {
  max-width: 280px;
  margin: 0 auto 14px;
}
.share-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
@keyframes shareFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shareFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes sharePopIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sharePopOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(0.96); }
}
body.share-modal-open { overflow: hidden; }

/* Result cards with cover art */
.result-item.has-bg {
  position: relative;
  overflow: hidden;
  min-height: 72px;
  background-image:
    linear-gradient(90deg, rgba(11,15,26,0.92) 0%, rgba(11,15,26,0.72) 42%, rgba(11,15,26,0.45) 100%),
    var(--result-bg);
  background-size: cover;
  background-position: center;
  border-color: rgba(34, 211, 238, 0.22);
}
.result-item.has-bg .result-title,
.result-item.has-bg .result-year { text-shadow: 0 1px 8px rgba(0,0,0,0.75); }
.result-img {
  width: 88px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}


.game-card .card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(232, 236, 245, 0.78);
  text-shadow: 0 1px 6px rgba(0,0,0,0.65);
  max-width: 100%;
}
.game-card.has-bg .card-desc { color: rgba(232, 236, 245, 0.9); }


/* ===== v9b: moderate square cards + breathing room ===== */
body.is-playing .game-area.active {
  --play-cols: 5;
  --play-gap: 24px;
  /* Cap size — do not stretch to fill the screen */
  --play-card: clamp(108px, 11vw, 136px);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(var(--play-cols, 5), var(--play-card, 136px));
  grid-auto-rows: auto;
  gap: var(--play-gap, 24px);
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 4px;
  justify-content: center;
  align-content: center;
  flex: 0 0 auto;
  min-height: 0;
}
.game-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: var(--play-card, 136px);
  gap: 8px;
}
.game-card-wrap.dimmed {
  opacity: 0.38;
  filter: grayscale(0.35);
}
/* First-card breathing cue: draws the eye for 2s, no movement. */
@keyframes cardBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.12), 0 0 18px rgba(34, 211, 238, 0.12); }
  50% { box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.24), 0 0 26px rgba(34, 211, 238, 0.24); }
}
.game-card-wrap.is-hinting .game-card {
  animation: cardBreathe 2s ease-in-out 1;
}
.card-title-below {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  padding: 0 2px;
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  text-align: center;
  word-break: break-word;
}
.game-card-wrap.is-selected .card-title-below {
  color: var(--accent);
}
.game-area { gap: 8px; }
.progress-wrap { max-width: 360px; width: 100%; margin: 0 auto; }
.year-display {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  padding: 0;
  line-height: 1;
}
.year-label { display: none; }

.game-card {
  width: var(--play-card, 100%);
  height: var(--play-card, auto);
  aspect-ratio: 1 / 1;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  min-height: 0;
  background: var(--card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
  overflow: hidden;
}
.game-card.has-bg { background: var(--card); }
.game-card.has-bg::before { display: none; content: none; }
.game-card.has-bg::after {
  display: none;
  content: none;
}
.game-card:not(.has-bg) {
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
}

.game-card .card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  background: var(--ink);
}
.game-card .card-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
  filter: brightness(0.98) saturate(1.02);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.game-card:hover .card-cover {
  transform: scale(1.04);
  filter: brightness(0.98) saturate(1.02);
}

.game-card .card-meta,
.game-card .title,
.game-card .platform,
.game-card .card-desc,
.game-card .game-tooltip {
  display: none !important;
}
.game-card.has-bg > .emoji {
  display: none;
}
.game-card:not(.has-bg) > .emoji {
  position: static !important;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  opacity: 1;
  filter: none;
  z-index: auto;
}
.game-card > .vote-overlay,
.game-card > .saved-badge {
  position: absolute !important;
  z-index: 5;
}
.game-card .emoji-img { display: none; }
.game-card {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}
.game-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(34,211,238,0.35),
    0 10px 28px rgba(0,0,0,0.45),
    0 0 24px rgba(34,211,238,0.18);
}
.game-card:hover > .emoji {
  opacity: 1;
  filter: brightness(1);
  background: rgba(11,15,26,0.72);
  transform: scale(1.04);
}

.game-bg-overlay {
  filter: blur(10px) brightness(0.35) saturate(1.05);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.game-bg-overlay.active {
  opacity: 0.78;
  filter: blur(8px) brightness(0.95) saturate(1.2);
}

/* Contribute covers */
.contribute-section {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34,211,238,0.04), transparent 40%);
}
.contribute-title {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 8px;
}
.contribute-lead {
  color: var(--secondary);
  max-width: 640px;
  margin: 0 0 22px;
  line-height: 1.55;
}
.contribute-form { max-width: 820px; }
.contribute-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.contribute-file {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(34,211,238,0.35);
  border-radius: var(--radius);
  background: rgba(11,15,26,0.55);
}
.contribute-file-label { font-size: 13px; color: var(--secondary); }
.contribute-preview img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--ink);
}
.contribute-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contribute-fields label,
.contribute-check {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--secondary);
}
.contribute-fields input[type="text"],
.contribute-fields input[type="number"] {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}
.contribute-legal { margin: 8px 0 14px; }
.contribute-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  line-height: 1.45;
}
.contribute-check input { margin-top: 3px; flex: 0 0 auto; }
.contribute-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--secondary);
  line-height: 1.5;
}
.contribute-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.contribute-hint, .contribute-status {
  font-size: 13px;
  color: var(--secondary);
  margin: 0;
}
.contribute-status { color: var(--accent); }

@media (max-width: 1100px) {
  body.is-playing .game-area.active {
    --play-cols: 5;
    --play-card: clamp(100px, 10.5vw, 128px);
    --play-gap: 20px;
  }
}
@media (max-width: 900px) {
  body.is-playing .game-area.active {
    --play-cols: 4;
    --play-card: clamp(100px, 18vw, 124px);
    --play-gap: 20px;
  }
}
@media (max-width: 640px) {
  body.is-playing .game-area.active {
    --play-cols: 2;
    --play-card: clamp(120px, 40vw, 148px);
    --play-gap: 20px;
  }
  .contribute-grid { grid-template-columns: 1fr; }
  .year-display { font-size: 1.35rem; }
}

.game-card .saved-badge { z-index: 6; }
.game-card.has-bg.selected { background: rgba(11, 15, 26, 0.96); }

.year-label[hidden] { display: none !important; }
.progress-wrap { margin-bottom: 2px; }
.cards-grid { flex: 1 1 auto; align-content: start; width: 100%; }


/* gap comfort v2 */
body.is-playing .game-area.active { --play-gap: 24px !important; }
.cards-grid { gap: 22px !important; }
@media (max-width: 900px) {
  body.is-playing .game-area.active { --play-gap: 20px !important; }
  .cards-grid { gap: 18px !important; }
}
@media (max-width: 640px) {
  body.is-playing .game-area.active { --play-gap: 16px !important; }
  .cards-grid { gap: 16px !important; }
}

.game-card:not(.has-bg) > .emoji {
  position: relative !important;
  top: auto; left: auto;
  width: auto; height: auto;
  font-size: 28px;
  line-height: 1;
  background: none;
  box-shadow: none;
}
.game-card > .vote-overlay {
  left: 0; right: 0; bottom: 0;
  z-index: 5 !important;
}


/* ===== Share modal v2 — auto popup + social grid ===== */
.share-modal[hidden] { display: none !important; }
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: shareFadeIn 0.28s ease;
}
.share-modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(94vh, 960px);
  overflow: auto;
  padding: 28px 24px 22px;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(99, 71, 214, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(21, 27, 43, 0.99), rgba(11, 15, 26, 0.99));
  box-shadow: 0 28px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(99, 71, 214, 0.14);
  animation: sharePopIn 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.share-modal.is-closing .share-modal-panel {
  animation: sharePopOut 0.22s ease forwards;
}
.share-modal.is-closing .share-modal-backdrop {
  animation: shareFadeOut 0.22s ease forwards;
}
.share-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.share-modal-close:hover { background: rgba(255,255,255,0.12); }

.share-modal-inner {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.share-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.share-preview {
  width: 100%;
  max-width: 280px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.35),
    0 16px 48px rgba(0,0,0,0.45),
    0 0 40px rgba(99, 71, 214, 0.18);
  border: 0;
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease;
}
.share-preview:hover { transform: rotate(0deg) scale(1.02); }
.share-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--ink);
}
.share-preview-loading {
  display: flex;
  min-height: 420px;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--secondary);
  background: linear-gradient(180deg, var(--card), var(--bg));
}
.share-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(34, 211, 238, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: shareSpin 0.8s linear infinite;
}
@keyframes shareSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .share-spinner { animation: none; }
  .game-card-wrap.is-hinting .game-card { animation: none; }
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  padding: 12px 16px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(99, 71, 214, 0.16));
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn-download:hover {
  border-color: rgba(34, 211, 238, 0.75);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(99, 71, 214, 0.28));
}
.btn-dl-icon { font-size: 1rem; }

.share-cta-col { min-width: 0; }
.share-modal-header { margin: 0 36px 18px 0; }
.share-modal-title {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--accent);
  letter-spacing: -0.02em;
}
.share-modal-subtitle {
  margin: 0;
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.share-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.share-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.share-social-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}
.share-social-btn:active { transform: translateY(0); }
.share-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.share-btn-x:hover { border-color: rgba(255,255,255,0.4); }
.share-btn-tiktok:hover { border-color: rgba(34, 211, 238, 0.55); color: var(--brand-tiktok); }
.share-btn-facebook:hover { border-color: rgba(34, 211, 238, 0.55); color: var(--brand-facebook); }
.share-btn-instagram:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--brand-instagram);
}
.share-btn-threads:hover { border-color: rgba(255,255,255,0.45); }
.share-btn-snapchat:hover { border-color: rgba(34, 211, 238, 0.55); color: var(--brand-snapchat); }
.share-btn-reddit:hover { border-color: rgba(34, 211, 238, 0.55); color: var(--brand-reddit); }
.share-btn-copy:hover { border-color: rgba(34, 211, 238, 0.55); color: var(--accent); }

.share-tip {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted, var(--muted-fallback));
  line-height: 1.4;
}
.share-msg {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--accent);
}
.share-text-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@keyframes shareFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shareFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes sharePopIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sharePopOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(0.96); }
}
body.share-modal-open { overflow: hidden; }

@media (max-width: 720px) {
  .share-modal { padding: 10px; align-items: flex-end; }
  .share-modal-panel {
    width: 100%;
    max-height: 92vh;
    padding: 20px 14px 16px;
    border-radius: 18px 18px 12px 12px;
  }
  .share-modal-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .share-preview {
    max-width: 200px;
    transform: none;
  }
  .share-preview:hover { transform: none; }
  .btn-download { max-width: 200px; }
  .share-socials { grid-template-columns: 1fr 1fr; gap: 8px; }
  .share-social-btn {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .share-modal-header { margin-right: 32px; }
}


/* Homepage landing — play lives on /play */
.home-landing-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 4px;
}
a.year-range-chip {
  text-decoration: none;
  color: inherit;
}
.home-landing .hero-support a,
.home-landing .hero-note a {
  color: var(--accent);
}
.play-page-note {
  max-width: 42rem;
  margin: 24px auto 48px;
  padding: 0 16px;
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}


a.btn-start {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}


/* During vote / results: keep homepage landing content out of the way */
body.is-playing .contribute-section,
body.is-playing .about-section,
body.is-playing .engage-section,
body.is-playing .comments-section,
body.is-playing .hero-contribute-link,
body.is-results .contribute-section,
body.is-results .about-section,
body.is-results .engage-section,
body.is-results .comments-section,
body.is-results .hero-contribute-link {
  display: none !important;
}



/* --- Decade guide: table + cover grid --- */
.decade-table-wrap {
  overflow-x: auto;
  margin: 20px 0 30px;
  -webkit-overflow-scrolling: touch;
}
.decade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.decade-table th,
.decade-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.decade-table th {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.decade-table td:first-child {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.decade-table tr:last-child td { border-bottom: 0; }
.decade-table a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.decade-covers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 34px;
}
.decade-cover { margin: 0; }
.decade-cover a { display: block; }
.decade-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
}
.decade-cover figcaption {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--secondary);
}
@media (max-width: 640px) {
  .decade-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decade-table { font-size: 13px; }
  .decade-table th,
  .decade-table td { padding: 9px 10px; }
}



@media (max-width: 640px) {
  .decade-table thead { display: none; }
  .decade-table,
  .decade-table tbody,
  .decade-table tr,
  .decade-table td { display: block; width: 100%; }
  .decade-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .decade-table td {
    border: 0;
    padding: 2px 0;
  }
  .decade-table td:first-child {
    font-size: 16px;
    margin-bottom: 2px;
  }
  .decade-table td:nth-child(2) {
    color: var(--text);
    font-size: 14px;
  }
  .decade-table td:nth-child(3) {
    font-size: 12px;
    margin-top: 4px;
  }
}



/* --- Year pilot cards on /games --- */
.pilot-cards { margin: 28px 0 32px; }
.pilot-cards__heading {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--text);
}
.pilot-cards__lede {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.55;
}
.pilot-cards__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.pilot-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pilot-card:hover { border-color: rgba(34, 211, 238, 0.32); transform: translateY(-1px); }
.pilot-card__year {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.pilot-card__title {
  margin: 10px 0 6px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}
.pilot-card__why {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
}
.pilot-card__meta {
  margin: auto 0 12px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.45;
}
.page-content .pilot-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.pilot-cards__note {
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 12px;
  opacity: 0.8;
}
.year-badge {
  display: inline-block;
  margin-right: auto;
  padding: 2px 8px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .pilot-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pilot-cards__grid { grid-template-columns: 1fr; }
  .pilot-card__year { font-size: 30px; }
}
