/* V1.4 — lightweight cinematic effects */
body:before{background:radial-gradient(ellipse at 12% 22%,#69bdf52b,transparent 42%),radial-gradient(ellipse at 80% 25%,#adc6ff3b,transparent 46%),radial-gradient(ellipse at 45% 90%,#8b9eea26,transparent 45%);animation:ambient 14s ease-in-out infinite alternate}#gl-particles{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;opacity:.55}.launch-brand img{width:210px}.launch-nav{box-shadow:0 4px 30px #0002}.welcome-section{margin-bottom:18px}.stats-grid{margin-block:22px}.stat-card{padding:16px 20px}.featured-card{min-height:clamp(320px,29vw,490px);border-color:transparent;background:linear-gradient(var(--surface),var(--surface)) padding-box,linear-gradient(110deg,#69bdf5,#adc6ff,#8b9eea,#69bdf5) border-box;background-size:100% 100%,300% 100%;animation:energy 8s linear infinite}.hero-art{inset:0;display:block;background:var(--surface)}.hero-art img{position:absolute;right:5%;top:5%;width:42%;height:90%;max-height:none;object-fit:contain;filter:drop-shadow(0 12px 30px #0008)}.hero-art:before{content:'';position:absolute;inset:-30px;background-image:var(--hero-bg);background-size:cover;background-position:center;filter:blur(35px);opacity:.4;transform:scale(1.08)}.hero-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,var(--bg) 0%,transparent 85%);pointer-events:none}.hero-art.landscape img{inset:0;width:100%;height:100%;object-fit:cover;filter:none}.hero-art.landscape:after{background:linear-gradient(90deg,#10243aed 0%,#10243aa0 45%,transparent 90%)}.hero-copy{max-width:55%;color:#fff;text-shadow:0 2px 12px #000}.hero-copy p{color:#eaf5ff}.hero-controls button{min-width:42px}.discovery-track{scrollbar-width:none;scroll-behavior:smooth}.discovery-track::-webkit-scrollbar{display:none}.discovery-section .section-heading{gap:12px}.discovery-section h2{font-size:clamp(20px,1.7vw,28px)}.row-controls{display:flex;gap:6px;margin-left:auto}.row-controls button{border:1px solid var(--border);border-radius:50%;width:36px;height:36px;background:var(--surface);color:var(--text);cursor:pointer}.discovery-card,.game-card{isolation:isolate}.discovery-card:after,.game-card:after{background:linear-gradient(115deg,transparent 15%,#69bdf530 34%,#b8d6ff38 48%,#bfcaff30 62%,transparent 80%);background-size:250% 100%;background-position:var(--hx,50%) center;mix-blend-mode:screen}.discovery-card:hover,.game-card:hover{box-shadow:0 8px 30px var(--art-glow,#adc6ff44)}.primary-button,.watch-button,.row-controls button{transition:background .3s,transform .2s,box-shadow .3s}.primary-button:hover,.watch-button:hover,.row-controls button:hover{background:linear-gradient(110deg,#285f93,#254d7c,#455da5);color:white;box-shadow:0 0 20px #adc6ff55;transform:translateY(-2px)}.loading-state{position:relative;overflow:hidden}.loading-state:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent,#69bdf522,transparent);animation:scan 1.8s linear infinite}.calendar-cover{box-shadow:0 0 12px #adc6ff33}.gradient-text{background-size:200% auto;animation:energy 8s linear infinite}.gl-reveal{animation:reveal .55s ease both}.gl-intro{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#10243a;pointer-events:none;animation:intro 1.1s ease both}.gl-intro img{width:min(55vw,350px);animation:reveal .5s ease both}.light-theme #gl-particles{opacity:.22}.light-theme .hero-art:after{background:linear-gradient(90deg,#10243ae8,transparent)}@keyframes intro{0%,60%{opacity:1}100%{opacity:0;visibility:hidden}}@keyframes reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes energy{to{background-position:200% center}}@keyframes scan{from{transform:translateX(-100%)}to{transform:translateX(100%)}}@media(max-width:700px){.launch-brand img{width:145px}.hero-art{height:210px;inset:0 0 auto}.hero-art img{width:90%;right:5%}.hero-copy{max-width:100%;padding-top:200px;color:var(--text);text-shadow:none}.hero-copy p{color:var(--muted)}}@media(prefers-reduced-motion:reduce){#gl-particles,.gl-intro{display:none}.discovery-track{scroll-behavior:auto}}

/* Compact layout */
.launch-nav {
  gap: 12px;
  padding-block: 5px;
}

.launch-brand img {
  width: clamp(200px, 18vw, 236px);
}

.launch-nav nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 0;
}

.launch-tools input {
  min-height: 44px;
  padding-block: 8px;
}

.launch-tools .icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.page-content {
  padding-block: 22px;
}

.welcome-section h1,
.featured-card h2 {
  margin-block: 8px;
}

.featured-section,
.games-section {
  margin-bottom: 22px;
}

.featured-card {
  min-height: clamp(285px, 22vw, 365px);
  padding: clamp(18px, 3vw, 42px);
}

.hero-controls {
  margin-top: 10px;
}

.hero-controls button {
  min-width: 44px;
  min-height: 44px;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-block: 14px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stats-grid .stat-card {
  --stat-accent: var(--cyan);
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 0;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(110deg, color-mix(in srgb, var(--stat-accent) 8%, var(--surface)), var(--surface) 75%);
}

.stats-grid .stat-card:nth-child(2) { --stat-accent: var(--purple); }
.stats-grid .stat-card:nth-child(3) { --stat-accent: var(--orange); }
.stats-grid .stat-card:nth-child(5) { --stat-accent: var(--pink); }

.stats-grid .stat-card strong {
  flex: 0 0 auto;
  min-width: 2.8ch;
  padding: 3px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--stat-accent) 12%, var(--surface));
  color: var(--text);
  font-size: clamp(16px, 1.6vw, 22px);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.stats-grid .stat-label {
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .stats-grid .stat-card {
    gap: 6px;
    padding-inline: 7px;
  }
}

.discovery-section {
  margin-block: 20px;
}

.section-heading {
  margin-bottom: 10px;
}

.discovery-track {

  padding-block: 6px 10px;
}

.game-grid {
  gap: 12px;
}

.game-info {
  padding: 10px;
}

.page-intro,
.content-panel {
  margin-block: 16px;
}

.calendar-navigation #todayMonth {
  width: auto;
  padding-inline: 8px;
}

@media (min-width: 1500px) {
  .game-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .discovery-track {
    column-gap: 12px;
    grid-auto-columns: calc((100% - 76px) / 7);
  }
}

@media (max-width: 1000px) {
  .launch-nav {
    row-gap: 0;
  }
}

@media (max-width: 700px) {
  .launch-brand img {
    width: clamp(125px, 42vw, 178px);
  }

  .launch-tools {
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }

  .launch-tools input {
    width: min(100%, 200px);
    min-width: 0;
    padding-inline: 7px;
    font-size: 13px;
  }

  .featured-card {
    min-height: 0;
    padding: 14px;
  }

  .hero-art {
    height: 146px;
  }

  .hero-copy {
    padding-top: 140px;
  }
}


/* Blueprint theme */
:root {
  --bg: #080f1b;
  --surface: #182f49;
  --surface-2: #203b59;
  --surface-3: #2b4b6d;
  --border: #9db9d62e;
  --text: #f2f8ff;
  --muted: #b8cbe0;
  --cyan: #69bdf5;
  --purple: #adc6ff;
  --orange: #efb95f;
  --green: #8cd4a2;
  --pink: #bfcaff;
}

body.light-theme {
  --bg: #eaf4fc;
  --surface: #f8fcff;
  --surface-2: #dfeefb;
  --surface-3: #d1e3f4;
  --border: #43638226;
  --text: #162b43;
  --muted: #415b75;
  --cyan: #155486;
  --purple: #245889;
  --orange: #8b4a22;
  --green: #326543;
  --pink: #414c96;
}

body.light-theme .launch-brand img {
  content: url("../images/branding/logo-light.svg?v=blueprint");
}

.discovery-section[id] {
  scroll-margin-block-start: 116px;
}

.stats-grid a.stat-card:hover {
  background: color-mix(in srgb, var(--stat-accent) 13%, var(--surface));
}

.stats-grid a.stat-card:focus-visible {
  outline-offset: -3px;
}

.forecast-range,
.watchlist-feedback {
  color: var(--muted);
  font-size: 13px;
}

.watchlist-feedback {
  margin-block-end: 10px;
}

.watchlist-feedback:has(#watchlistMessage:empty) {
  margin-block-end: 0;
}

.watchlist-feedback button {
  margin-inline-start: 8px;
}

.row-controls[hidden] {
  display: none;
}

@media (max-width: 390px) {
  .launch-nav {
    column-gap: 8px;
  }

  .launch-brand img {
    width: clamp(130px, 44vw, 172px);
  }
}

/* Release timeline, calendar agenda and Watchlist activity */
.timeline-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr));
  gap: 14px;
}
.timeline-day {
  min-width: 0;
  padding: 10px 12px;
  border-top: 2px solid var(--cyan);
  border-radius: 0 0 8px 8px;
  background: var(--surface);
}
.timeline-day h3 { color: var(--cyan); font-size: 14px; }
.timeline-day ul,
.watchlist-activity ul { list-style: none; }
.timeline-day li { margin-block: 7px; }
.timeline-day li span,
.timeline-day p,
.game-details .date-context { color: var(--muted); font-size: 12px; display: block; }
.calendar-forecast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
}
.calendar-forecast input { accent-color: var(--cyan); }
.release-calendar:has(.agenda-day) {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.agenda-day {
  min-width: 0;
  min-height: 44px;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 4px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, translate 200ms ease;
}
.agenda-day span { color: var(--text); font-size: 11px; }
.agenda-day[data-density="some"] { background: color-mix(in srgb, var(--cyan) 12%, var(--surface)); }
.agenda-day[data-density="many"] { background: color-mix(in srgb, var(--cyan) 24%, var(--surface)); }
.agenda-day[aria-current] { text-decoration: underline; }
.agenda-day[aria-pressed="true"] { border-color: var(--cyan); translate: 0 -2px; }
.legend-dot.unverified { background: var(--pink); }
.calendar-status.unverified { color: var(--pink); border-color: currentColor; }
.watchlist-activity { margin-block: 12px 20px; }
.watchlist-activity li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; border-bottom: 1px solid var(--border); }
.watchlist-activity p,
.watchlist-activity li > span:last-child { color: var(--muted); }
.activity-label { color: var(--cyan); }

.featured-card .hero-art img,
.featured-card .hero-copy { animation: none; }
.featured-outgoing { pointer-events: none; }

.calendar-cover,
.detail-cover {
  aspect-ratio: 3 / 4;
}
.calendar-cover img,
.detail-cover img {
  height: 100%;
  object-fit: contain;
}

/* Blueprint catalogue and deep links */
.timeline-day a {
  color: var(--cyan);
  text-underline-offset: 3px;
}
.timeline-day a:hover { text-decoration: underline; }
#calendarGrid { scroll-margin-block-start: 120px; }
.catalogue-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.catalogue-list .game-info {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.45fr) auto;
  align-items: center;
  gap: 8px 16px;
}
.catalogue-list .game-meta,
.catalogue-list .game-score { display: none; }
.catalogue-list :is(h3, .game-date, .game-platforms, .game-actions) {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalogue-list .game-date,
.catalogue-list .game-platforms { font-variant-numeric: tabular-nums; }
.game-art-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  background: repeating-linear-gradient(145deg, transparent 0 14px, color-mix(in srgb, var(--cyan) 8%, transparent) 14px 15px),
    linear-gradient(155deg, var(--surface-3), var(--surface));
  color: var(--text);
  font: 700 13px/1.3 var(--heading);
  letter-spacing: .035em;
  text-align: center;
  overflow-wrap: anywhere;
}
.game-art-placeholder > span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-art > .game-art-placeholder { position: absolute; inset: 0 5% 0 auto; width: 42%; }
.calendar-cover .game-art-placeholder { padding: 2px; font-size: 9px; }
@media (min-width: 481px) {
  #catalogueControls { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .catalogue-list .game-info { grid-template-columns: minmax(0, 1fr) auto; }
  .catalogue-list .game-date, .catalogue-list .game-platforms { grid-column: 1; }
  .catalogue-list .game-actions { grid-column: 2; grid-row: 1 / span 3; }
  .hero-art > .game-art-placeholder { inset: 0; width: 100%; }
  .agenda-day { min-height: 48px; }
}

#agendaDate { scroll-margin-block-start: 120px; }
body::before { opacity: .68; }
body:not(.light-theme)::before { opacity: .36; }
#gl-particles { opacity: .24; }
.light-theme #gl-particles { opacity: .12; }
.game-card:hover,
.discovery-card:hover { transform: translateY(-2px); box-shadow: none; }
.game-card:hover::after,
.discovery-card:hover::after { opacity: .35; }
.catalogue-list .game-card:hover { transform: none; }

/* Catalogue, agenda and Watchlist polish */
.catalogue-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 8px 14px;
}
.catalogue-count { color: var(--muted); font-size: 13px; }
.filter-chip {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-2);
  max-width: 100%;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.filter-chip:hover,
.clear-filters { color: var(--cyan); }
.game-grid:not(.catalogue-list) .game-info {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  gap: 6px;
}
.game-grid:not(.catalogue-list) .game-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
}
.game-grid .game-info h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.game-grid .game-info .detail-link { text-align: left; }
.game-grid .game-date { margin: 0; font-variant-numeric: tabular-nums; }
.game-grid .game-platforms { margin: 0; color: var(--muted); }
.game-grid .game-meta { align-self: start; margin: 0; }
.game-details { background: var(--surface-2); }
.agenda-total { color: var(--muted); font-size: 13px; }
.agenda-group > h3 { color: var(--text); margin-block: 12px 8px; }
.agenda-group > h3 span { color: var(--muted); font-size: 13px; }
.agenda-group > .load-more { margin-block: 8px 16px; }
.launch-nav nav a.has-unread::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  margin-inline-end: 5px;
  flex: 0 0 7px;
}
@media (max-width: 700px) {
  .filter-chip, .clear-filters { min-height: 44px; }
}

/* Blueprint gradient accents */
:root {
  --headline-gradient: linear-gradient(105deg, #b7e3ff, #69bdf5 58%, #aabaff);
  --action-gradient: linear-gradient(115deg, #b4e4ff, #72bcf7 70%, #a8b9ff);
  --action-hover-gradient: linear-gradient(115deg, #d2edff, #8bcbff 70%, #bcc9ff);
}
body.light-theme {
  --headline-gradient: linear-gradient(105deg, #145384, #205da1 60%, #464f98);
  --action-gradient: linear-gradient(115deg, #a9ddff, #75bbef 70%, #acbcfa);
  --action-hover-gradient: linear-gradient(115deg, #ceebff, #91caff 70%, #c5d0ff);
}
.welcome-section .gradient-text {
  background-image: var(--headline-gradient);
  background-size: 100% 100%;
  animation: none;
}
.featured-card {
  background-image: linear-gradient(var(--surface), var(--surface)),
    linear-gradient(120deg, #3e6e9f, #8fd1ff 46%, #636bc2 74%, #3e6e9f);
}
.hero-art:not(.landscape)::after {
  background: radial-gradient(ellipse at 78% 25%, #69bdf52b, transparent 56%),
    linear-gradient(90deg, #080f1bf2, #101f38a6 49%, #2e568231 100%);
}
.primary-button {
  background: var(--action-gradient);
  color: #0c2036;
}
.primary-button:hover {
  background: var(--action-hover-gradient);
  color: #0c2036;
}

/* Centered game details */
.game-details {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cyan) 24%, var(--border));
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 80px #0007;
}
.game-details::backdrop {
  background: #050b16b8;
  backdrop-filter: blur(5px);
}
.detail-scroll {
  max-height: calc(100dvh - 34px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.game-details .detail-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.detail-overview {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 26px 64px 26px 26px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 12% 18%, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 70%), var(--surface-2);
}
.game-details .detail-cover {
  float: none;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
}
.game-details .detail-cover img { display: block; }
.detail-heading h2 {
  color: var(--text);
  font-size: clamp(23px, 3.5vw, 34px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.detail-release, .detail-platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-release { margin-top: 10px; color: var(--text); }
.detail-platforms {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.detail-platforms li, .detail-confidence {
  border-radius: 6px;
  padding: 3px 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.detail-confidence[data-confidence="confirmed"] { color: var(--green); }
.detail-confidence[data-confidence="estimated"] { color: var(--orange); }
.detail-confidence[data-confidence="unverified"] { color: var(--pink); }
.detail-body { padding: 23px 26px 26px; }
.detail-body h3 { font-size: 15px; }
.game-details .detail-description {
  margin: 7px 0 20px;
  color: var(--muted);
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 13px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.detail-facts dt { color: var(--muted); font-size: 12px; }
.detail-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .detail-overview {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 20px 18px;
    text-align: center;
  }
  .game-details .detail-cover { width: 90px; }
  .detail-release, .detail-platforms { justify-content: center; }
  .detail-body { padding-inline: 18px; }
}

/* Game details panels and interaction states */
.game-details { border-radius: 22px; }
.detail-overview {
  margin: 12px 12px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.game-details .detail-close {
  top: 18px;
  right: 18px;
  border-radius: 12px;
}
.detail-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.detail-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.detail-body h3 { color: var(--text); font-size: 16px; }
.game-details .detail-description { margin-bottom: 14px; }
.detail-credits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-facts dd { color: var(--text); font-size: 14px; }
.detail-release > span:first-child { font-weight: 700; }
.detail-provenance { padding: 3px; }
.detail-provenance summary {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.detail-provenance summary::marker { color: var(--cyan); }
.detail-provenance .detail-facts { margin: 2px 13px 13px; }
.detail-provenance summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.game-details .detail-close,
.detail-provenance summary { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
@media (hover: hover) {
  .game-details .detail-close:hover,
  .detail-provenance summary:hover {
    color: var(--cyan);
    border-color: color-mix(in srgb, var(--cyan) 45%, var(--border));
    background-color: var(--surface-3);
  }
}
@media (max-width: 560px) {
  .detail-overview { padding-inline: 12px; }
  .detail-panel { padding: 12px; }
  .detail-provenance { padding: 3px; }
}

/* Shared Blueprint lighting */
:root {
  --ambient-cyan: #24c4df26;
  --ambient-purple: #9674eb33;
  --ambient-blue: #4b87fb38;
  --ambient-fill: #111c37;
}
body.light-theme {
  --ambient-cyan: #39bde033;
  --ambient-purple: #b39af333;
  --ambient-blue: #5a9eff38;
  --ambient-fill: #e7edff;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
}
body::before,
body:not(.light-theme)::before {
  opacity: .85;
  background:
    radial-gradient(ellipse at 16% 30%, var(--ambient-cyan), transparent 44%),
    radial-gradient(ellipse at 88% 17%, var(--ambient-purple), transparent 42%),
    radial-gradient(ellipse at 58% 90%, var(--ambient-blue), transparent 46%),
    linear-gradient(145deg, var(--bg) 20%, var(--ambient-fill) 100%);
  animation: blueprint-ambient-drift 25s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(ellipse at 32% 64%, var(--ambient-blue), transparent 39%),
    radial-gradient(ellipse at 78% 52%, var(--ambient-purple), transparent 34%);
  animation: blueprint-light-sweep 32s ease-in-out infinite alternate;
  opacity: .5;
}
@keyframes blueprint-ambient-drift {
  from { transform: translate(-4%, -2%) scale(1); }
  to { transform: translate(4%, 3%) scale(1.08); }
}
@keyframes blueprint-light-sweep {
  from { transform: translate(6%, -4%) scale(1.02); opacity: .38; }
  to { transform: translate(-8%, 4%) scale(1.12); opacity: .64; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: blueprint-page-out 160ms ease-out both; }
::view-transition-new(root) { animation: blueprint-page-in 250ms ease-out both; }
@keyframes blueprint-page-out {
  to { opacity: 0; }
}
@keyframes blueprint-page-in {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* Blueprint HUD accents */
:root {
  --hud-active: #8edcff;
  --hud-glow: #60caff50;
  --hud-edge: #67b7ef62;
}
body.light-theme {
  --hud-active: #155486;
  --hud-glow: #156eac30;
  --hud-edge: #2874b05c;
}
.launch-nav nav a[aria-current="page"] {
  color: var(--hud-active);
  text-shadow: 0 0 12px var(--hud-glow);
}
.launch-nav nav a[aria-current="page"]::after {
  background: linear-gradient(90deg, var(--hud-active), var(--purple));
  box-shadow: 0 0 9px var(--hud-glow);
}
.agenda-day[aria-pressed="true"],
.watch-button.saved,
.filter-chip {
  border-color: var(--hud-edge);
  box-shadow: inset 0 0 0 1px var(--hud-edge), 0 0 13px var(--hud-glow);
}
.agenda-day[aria-pressed="true"] {
  color: var(--hud-active);
  background: color-mix(in srgb, var(--cyan) 16%, var(--surface));
}
.stats-grid .stat-card { position: relative; }
.stats-grid .stat-card::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--hud-edge);
  border-right: 1px solid var(--hud-edge);
  pointer-events: none;
}
.stats-grid .stat-card strong,
.agenda-day > strong {
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.stats-grid .stat-card strong {
  border-inline-start: 2px solid color-mix(in srgb, var(--stat-accent) 70%, transparent);
  border-radius: 4px;
}
.agenda-day > span {
  min-width: 2ch;
  padding-inline: 4px;
  border-radius: 4px;
  color: var(--hud-active);
  background: var(--surface);
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.discovery-section:target > .section-heading h2 {
  color: var(--hud-active);
  text-shadow: 0 0 14px var(--hud-glow);
}
@media (hover: hover) {
  .stats-grid a.stat-card:hover::after,
  .stats-grid a.stat-card:focus-visible::after {
    border-color: var(--hud-active);
    filter: drop-shadow(0 0 5px var(--hud-glow));
  }
}

/* Cursor lighting and card movement */
:root { --card-light: #71d9ff4a; --card-light-secondary: #a893ff20; }
body.light-theme { --card-light: #66bdff62; --card-light-secondary: #9b80e530; }

.game-card::after,
.discovery-card::after {
  background: radial-gradient(ellipse at var(--card-light-x, 50%) var(--card-light-y, 35%),
    var(--card-light), var(--card-light-secondary) 32%, transparent 66%);
  mix-blend-mode: normal;
  transition: opacity 220ms ease;
}
.game-card:hover::after,
.discovery-card:hover::after,
.game-card:has(:focus-visible)::after,
.discovery-card:focus-visible::after {
  opacity: .68;
}
.game-card:has(:focus-visible),
.discovery-card:focus-visible {
  border-color: var(--hud-active);
  box-shadow: 0 0 16px var(--hud-glow);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .game-card,
  .discovery-card {
    transition: transform 260ms cubic-bezier(.2,.65,.25,1), box-shadow 240ms ease, border-color 240ms ease;
  }
  .game-card[data-pointer-glow],
  .discovery-card[data-pointer-glow] {
    z-index: 1;
    transform: perspective(850px) translateY(-3px) rotateX(var(--card-tilt-x, 0deg)) rotateY(var(--card-tilt-y, 0deg));
    border-color: var(--hud-edge);
    box-shadow: 0 8px 24px -8px var(--hud-glow);
  }
  .catalogue-list .game-card[data-pointer-glow] { transform: translateY(-1px); }
  .game-card[data-pointer-glow]::after,
  .discovery-card[data-pointer-glow]::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .game-card:hover,
  .discovery-card:hover { transform: none; }
}

/* Release Radar */
.release-radar {
  margin-block: 4px 18px;
}
.radar-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 8px;
}
.radar-heading h2 { font-size: clamp(21px, 2.5vw, 28px); letter-spacing: -.025em; }
.radar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.radar-grid > p { grid-column: 1 / -1; }
.radar-card {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 3 / 4;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #f2f8ff;
  background: #10243a;
  text-decoration: none;
  transition: transform 260ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.radar-art, .radar-card::before, .radar-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.radar-art { z-index: -3; }
.radar-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.radar-art .game-art-placeholder { color: transparent; }
.radar-card::before {
  z-index: -2;
  content: "";
  background: linear-gradient(180deg, #07132144, transparent 35%, #071321d9 74%, #071321fc 100%),
    linear-gradient(110deg, #0a1e3b66, transparent 65%);
}
.radar-card::after {
  z-index: -1;
  content: "";
  opacity: 0;
  background: radial-gradient(ellipse at var(--card-light-x, 50%) var(--card-light-y, 38%),
    #86deff5c, #a995ff28 34%, transparent 66%);
  transition: opacity 220ms ease;
}
.radar-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(10px, 1.15vw, 15px);
}
.radar-card time {
  border: 1px solid #a6d7ff58;
  border-radius: 8px;
  padding: 4px 8px;
  background: #0c2039e8;
  color: #d0eaff;
  font: 600 12px/1.4 ui-monospace, Consolas, monospace;
}
.radar-card .radar-title {
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 9px #000a;
}
.radar-card p { color: #c2e5ff; margin-top: 6px; font-size: 12px; }
.radar-card:hover,
.radar-card:focus-visible { border-color: var(--hud-active); box-shadow: 0 8px 22px -10px var(--hud-glow); }
.radar-card:hover::after, .radar-card:focus-visible::after { opacity: .74; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .radar-card[data-pointer-glow] {
    transform: perspective(850px) translateY(-3px) rotateX(var(--card-tilt-x, 0deg)) rotateY(var(--card-tilt-y, 0deg));
  }
}
@media (max-width: 940px) {
  .radar-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(147px, 25%, 176px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 3px;
    padding: 3px 3px 9px;
  }
  .radar-tile { scroll-snap-align: start; }
  .radar-grid > p { grid-column: 1; min-width: min(65vw, 320px); }
}
@media (max-width: 620px) {
  .radar-card-content { gap: 10px; padding: 10px; }
  .radar-card .radar-title { font-size: clamp(14px, 4.3vw, 18px); }
  .radar-card p { font-size: 11px; }
  .radar-card time { padding-inline: 6px; font-size: 11px; }
}

.agenda-filters:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.agenda-filters label { color: var(--muted); font-size: 13px; }
.agenda-filters select {
  min-height: 44px;
  max-width: 100%;
  padding: 7px 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
}

/* Discover headline and statistics */
.discover-header .welcome-section,
.discover-header .stats-grid { margin: 0; }
.discover-header .stats-grid { margin-top: 6px; }
@media (min-width: 900px) {
  .discover-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(385px, 39%, 570px);
    align-items: start;
    gap: 24px;
  }
  .discover-header .stats-grid {
    margin: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .discover-header .stat-card { grid-column: span 2; }
  .discover-header .stat-card:nth-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 761px) and (max-width: 899px) {
  .discover-header .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .discover-header {
    grid-template-columns: minmax(0, 1fr) clamp(610px, 53%, 720px);
    align-items: center;
    gap: 16px;
  }
  .discover-header .stats-grid {
    grid-template-columns: 1fr .85fr 1.25fr 1.25fr 1fr;
  }
  .discover-header .stat-card:nth-child(n) { grid-column: auto; }
}

/* Discover metrics */
.discover-header .stats-grid {
  gap: 8px;
  overflow: visible;
  border: 0;
  background: none;
}
.discover-header .stat-card {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--stat-accent) 22%, var(--border));
  border-radius: 12px;
  background: radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--stat-accent) 13%, transparent), transparent 85%),
    var(--surface);
}
.discover-header .stat-card:nth-child(3),
.discover-header .stat-card:nth-child(4) { --stat-accent: var(--cyan); }
.discover-header .stat-card::after { content: none; }
.discover-header .stat-card strong {
  grid-row: 2;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: clamp(22px, 2.15vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  text-align: left;
}
.discover-header .stat-label {
  grid-row: 1;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}
.discover-header a.stat-card { padding-inline-end: 23px; }
.discover-header a.stat-card::after {
  content: "\2197";
  top: 8px;
  right: 8px;
  width: auto;
  height: auto;
  border: 0;
  color: var(--cyan);
  font-size: 12px;
}
.discover-header a.stat-card:is(:hover, :focus-visible) {
  border-color: var(--hud-active);
  background: color-mix(in srgb, var(--cyan) 14%, var(--surface));
  box-shadow: 0 0 13px var(--hud-glow);
}

/* Blueprint depth */
:root {
  --depth-line: #b2ddff1f;
  --depth-shadow: #02071065;
  --depth-shadow-raised: #020710a0;
}
body.light-theme {
  --depth-line: #38699c26;
  --depth-shadow: #50719724;
  --depth-shadow-raised: #42678e36;
}
.launch-nav {
  box-shadow: 0 1px 0 var(--depth-line), 0 12px 32px -16px var(--depth-shadow-raised);
}
.discover-header .stat-card {
  box-shadow: inset 0 1px 0 var(--depth-line), 0 6px 15px -8px var(--depth-shadow);
}
.radar-card,
.game-card,
.discovery-card {
  box-shadow: inset 0 1px 0 var(--depth-line), 0 12px 26px -16px var(--depth-shadow-raised);
}
.radar-card::before {
  background: linear-gradient(180deg, #07132155, transparent 32%, #071321dc 75%, #071321fc 100%),
    linear-gradient(115deg, #1333595c, transparent 63%);
}
.radar-card time {
  box-shadow: 0 3px 10px #03070e55, inset 0 1px 0 #c4e8ff20;
}
.game-card:has(:focus-visible),
.discovery-card:focus-visible,
.radar-card:focus-visible {
  box-shadow: 0 0 0 1px var(--hud-active), 0 0 16px var(--hud-glow);
}
@media (prefers-reduced-motion: no-preference) {
  .discover-header .stat-card {
    animation: discover-stat-in 440ms cubic-bezier(.22,.72,.25,1) both;
  }
  .discover-header .stat-card:nth-child(2) { animation-delay: 45ms; }
  .discover-header .stat-card:nth-child(3) { animation-delay: 90ms; }
  .discover-header .stat-card:nth-child(4) { animation-delay: 135ms; }
  .discover-header .stat-card:nth-child(5) { animation-delay: 180ms; }
  .discover-header a.stat-card {
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  }
  .discover-header a.stat-card:is(:hover, :focus-visible) {
    transform: translateY(-2px);
  }
}
@keyframes discover-stat-in {
  from { opacity: .45; translate: 0 9px; }
  to { opacity: 1; translate: 0 0; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .radar-art img {
    transition: transform 350ms cubic-bezier(.22,.72,.25,1);
  }
  .radar-card[data-pointer-glow] .radar-art img {
    transform: translate(calc((var(--card-light-x, 50%) - 50%) * -.065),
      calc((var(--card-light-y, 50%) - 50%) * -.065)) scale(1.09);
  }
  .radar-card[data-pointer-glow],
  .game-card[data-pointer-glow],
  .discovery-card[data-pointer-glow] {
    box-shadow: 0 14px 30px -15px var(--depth-shadow-raised), 0 0 18px -5px var(--hud-glow);
  }
}

/* Discover metric accents */
.discover-header .stats-grid {
  --metric-tracked: #83c4ff;
  --metric-upcoming: #b7acff;
  --metric-forecast: #71dfe9;
  --metric-watchlist: #8cddba;
}
.light-theme .discover-header .stats-grid {
  --metric-tracked: #215f99;
  --metric-upcoming: #5945a1;
  --metric-forecast: #126779;
  --metric-watchlist: #25664c;
}
.discover-header .stat-card:nth-child(1) { --stat-accent: var(--metric-tracked); }
.discover-header .stat-card:nth-child(2) { --stat-accent: var(--metric-upcoming); }
.discover-header .stat-card:nth-child(3),
.discover-header .stat-card:nth-child(4) { --stat-accent: var(--metric-forecast); }
.discover-header .stat-card:nth-child(5) { --stat-accent: var(--metric-watchlist); }
.discover-header .stat-card {
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--stat-accent) 42%, transparent),
    0 6px 15px -8px var(--depth-shadow);
}
.discover-header .stat-card strong {
  color: color-mix(in srgb, var(--stat-accent) 64%, var(--text));
}
.discover-header a.stat-card::after { color: var(--stat-accent); }
.discover-header a.stat-card:is(:hover, :focus-visible) {
  border-color: var(--stat-accent);
  background: color-mix(in srgb, var(--stat-accent) 14%, var(--surface));
  box-shadow: 0 0 13px color-mix(in srgb, var(--stat-accent) 35%, transparent);
}

/* Radar date and confidence */
.radar-card time { display: inline-flex; align-items: center; gap: 7px; }
.radar-card time strong { font-size: clamp(18px, 2vw, 25px); line-height: 1; }
.radar-card time span { max-width: 5ch; font-size: 11px; }
.radar-card::before {
  background: linear-gradient(180deg, #07132155, transparent 28%, #071321e8 73%, #071321 100%);
}
.radar-card .radar-confidence { display: flex; margin-top: 6px; font-size: 12px; flex-wrap: wrap; gap: 2px 7px; color: #d8eafb; }
.radar-confidence span + span::before { content: "· "; }
.radar-confidence [data-confidence="confirmed"] { color: #a5efb1; }
.radar-confidence [data-confidence="estimated"] { color: #ffd489; }
@media (max-width: 940px) {
  .radar-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--hud-edge) var(--surface);
  }
}
.discovery-section[id] .discovery-card:hover { border-color: var(--border); }

/* Quick search and game actions */
.launch-tools { position: relative; }
.quick-search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  width: min(340px, calc(100vw - 32px));
  padding: 5px;
  border: 1px solid var(--hud-edge);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 34px var(--depth-shadow-raised);
}
.quick-search-results [role="option"] {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.quick-search-results [role="option"]:is(:hover, [aria-selected="true"]) { background: var(--surface-3); }
.quick-search-results [role="option"] span { color: var(--muted); font-size: 12px; }
.detail-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.detail-game-actions .primary-button, .detail-store {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
}
.detail-store {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cyan);
  background: var(--surface);
  font-weight: 700;
}
.detail-store:hover { border-color: var(--hud-active); }
@media (max-width: 560px) {
  .detail-game-actions { justify-content: center; }
}

.radar-tile { min-width: 0; display: grid; align-content: start; gap: 6px; }
.radar-card { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.radar-title { display: block; font-family: var(--heading); }
.detail-availability .detail-game-actions { margin-top: 9px; justify-content: flex-start; }
.game-details .detail-availability p { margin: 5px 0 0; color: var(--muted); }

.detail-store small { color: var(--muted); font-size: 11px; }
.detail-facts small { display: block; margin-top: 3px; color: var(--muted); }

.discover-page { padding-block-start: 8px; }

/* Deep-space background */
body:not(.light-theme)::before {
  background:
    radial-gradient(ellipse at 17% 27%, #19498672, transparent 42%),
    radial-gradient(ellipse at 86% 25%, #56328c70, transparent 38%),
    radial-gradient(ellipse at 63% 87%, #12376879, transparent 46%),
    linear-gradient(145deg, #040713 10%, #090f25 100%);
}
body:not(.light-theme)::after {
  background:
    radial-gradient(ellipse at 29% 64%, #12658a40, transparent 32%),
    radial-gradient(ellipse at 74% 53%, #743baf41, transparent 30%);
}
#gl-particles { display: block; opacity: .81; }
.light-theme #gl-particles { opacity: .45; filter: brightness(.48) saturate(1.25); }
