/* gamewatch design system — dark theme, violet accent, Space Grotesk display.
   Self-hosted font (WhiteNoise), so no external CDN / CSP exception needed. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-variable.87c506d88b9f.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0f1a;
  --panel: #16182a;
  --panel-2: #1c1f33;
  --border: #262a40;
  --border-strong: #343a58;
  --text: #e7e9f3;
  --muted: #9398b8;
  --faint: #868dae; /* lifted to clear WCAG AA 4.5:1 for small text on the panels */
  --accent: #8b7cff;
  --accent-strong: #a99cff;
  --accent-bg: #1e1a3d;

  /* Status colors carry timeline meaning (green = out, amber = upcoming, gray = TBA). */
  --released-fg: #7ee0a0;
  --released-bg: #11301d;
  --upcoming-fg: #e7c766;
  --upcoming-bg: #2c2614;
  --tba-fg: #9398b8;
  --tba-bg: #1c2030;

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 7px;

  /* Redesign additions */
  --radius-lg: 14px;
  --released-dot: #7ee0a0;
  --upcoming-dot: #e7c766;
  --tba-dot: #6b7095;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Canonical responsive breakpoints (issue #159). Mobile-first: base = phone,
     min-width layers up. CSS @media can't read custom properties, so these are the
     source of truth for the *values* — @media blocks use the literal px and stay in
     sync by convention. --bp-md (768) is the nav-collapse breakpoint. */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}

html { color-scheme: dark; }
* { box-sizing: border-box; }

/* Accessible focus ring everywhere (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
.cover-link:focus-visible, .radar-row:focus-visible {
  outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { margin: 0 0 0.5rem; font-size: 1.7rem; }
h2 { margin: 1.75rem 0 0.75rem; font-size: 1.25rem; }

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

/* Header / nav */
/* Visually hidden but available to screen readers (live-region announcements, etc.). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Toast for failed HTMX requests (paired with a polite live-region announcement). */
.htmx-toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 1rem);
  background: var(--panel); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 0.7rem 1.1rem; font-size: 0.88rem; max-width: 90vw;
  box-shadow: 0 14px 34px -14px #000; opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.htmx-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Loading state while a month-nav request is in flight (HTMX toggles .htmx-request). */
.rm-arrow.htmx-request { opacity: 0.5; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .htmx-toast { transition: opacity 0.2s ease; } }

/* Keyboard skip link: off-screen until focused, then slides in as the first tab stop. */
.skip-link {
  position: absolute; left: 0.75rem; top: -3.5rem; z-index: 100;
  background: var(--accent); color: #0b0c15; font-weight: 600;
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; outline: 2px solid var(--text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-accent { color: var(--accent); }
/* ── Primary nav — mobile-first (issue #158, #159) ──
   Base = an off-canvas drawer opened by the hamburger; at >=768px (--bp-md) it
   resets to the inline row it has always been on desktop. */
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav form { margin: 0; }

/* Right-grouped header action buttons (mobile): search magnifier + menu hamburger. */
.hdr-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted); cursor: pointer;
}
.nav-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Scrim + drawer. Opened by JS toggling .nav-open on .site-header; the :target
   fallback keeps the menu usable with JS disabled (hamburger is an anchor to #site-nav). */
.nav-scrim {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(6, 7, 14, 0.55); opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s var(--ease);
}
.site-header.nav-open .nav-scrim { opacity: 1; visibility: visible; }
.site-nav {
  position: fixed; inset: 0 0 0 auto; z-index: 30;
  width: min(78vw, 284px);
  display: flex; flex-direction: column; align-items: stretch; gap: 0.1rem;
  padding: calc(env(safe-area-inset-top) + 0.5rem) 0.5rem calc(env(safe-area-inset-bottom) + 0.6rem);
  background: var(--panel); border-left: 1px solid var(--border-strong);
  box-shadow: -14px 0 34px -18px rgba(0, 0, 0, 0.75);
  transform: translateX(100%); transition: transform 0.24s var(--ease);
  overflow-y: auto; overscroll-behavior: contain; font-size: 1rem;
}
.site-header.nav-open .site-nav,
.site-nav:target { transform: translateX(0); }
.nav-close {
  align-self: flex-end; margin-bottom: 0.2rem;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 9px;
}
.nav-close:hover { color: var(--text); }
.nav-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-nav a, .site-nav .linkish {
  display: flex; align-items: center; min-height: 44px; width: 100%;
  padding: 0 0.8rem; border-radius: 8px; font-size: 1rem; text-align: left;
}
.site-nav a[aria-current="page"] { background: var(--accent-bg); }
.site-nav a:hover, .site-nav .linkish:hover { background: var(--panel-2); color: var(--text); }
.site-nav .muted {
  padding: 0.9rem 0.8rem 0.25rem; min-height: 0;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--faint);
}
.site-nav form { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .nav-scrim, .site-nav { transition: none; }
}
body.nav-locked { overflow: hidden; }

/* Global search in the top bar (submits to the browse page's ?q= filter).
   Hidden on mobile — the magnifier expands it in place (nav-search.js). */
.nav-search { position: relative; display: none; align-items: center; flex: 0 1 440px; margin: 0; }
.nav-search .ns-ic {
  position: absolute; left: 0.7rem; display: inline-flex; color: var(--faint); pointer-events: none;
}
.nav-search input {
  width: 100%; padding: 0.5rem 0.85rem 0.5rem 2.1rem; font-size: 0.9rem; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px;
}
.nav-search input::placeholder { color: var(--faint); }
.nav-search input:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.nav-search-open, .nav-search-close {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted); cursor: pointer;
}
.nav-search-open { display: inline-flex; }
.nav-search-open:hover, .nav-search-close:hover { color: var(--text); border-color: var(--border-strong); }
.nav-search-open:focus-visible, .nav-search-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Search takeover on mobile: the field fills the header row, chrome steps aside. */
.site-header.searching .brand,
.site-header.searching .site-nav,
.site-header.searching .hdr-actions { display: none; }
.site-header.searching .nav-search { display: flex; flex: 1; }
.site-header.searching .nav-search-close { display: inline-flex; }

/* >=768px (--bp-md): full inline header — no hamburger, no drawer, search always shown. */
@media (min-width: 768px) {
  .hdr-actions, .nav-scrim, .nav-close { display: none; }
  .nav-search { display: flex; }
  .site-nav {
    position: static; z-index: auto; inset: auto; width: auto;
    flex-direction: row; align-items: center; gap: 1.1rem;
    padding: 0; background: none; border: 0; box-shadow: none;
    transform: none; overflow: visible; font-size: 0.95rem;
  }
  .site-nav a, .site-nav .linkish {
    min-height: 0; width: auto; padding: 0; border-radius: 0; font-size: inherit;
  }
  .site-nav a[aria-current="page"] { background: none; }
  .site-nav a:hover, .site-nav .linkish:hover { background: none; }
  .site-nav .muted {
    padding: 0; min-height: 0; font-size: inherit; text-transform: none; letter-spacing: 0;
  }
  .site-nav form { width: auto; }
}

.container { max-width: 80rem; margin: 0 auto; padding: 2rem 1.5rem; }

.tagline { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* Badges — generic plus status modifiers */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.badge--accent { background: var(--accent-bg); border-color: transparent; color: var(--accent-strong); }
.badge--released { background: var(--released-bg); border-color: transparent; color: var(--released-fg); }
.badge--upcoming { background: var(--upcoming-bg); border-color: transparent; color: var(--upcoming-fg); }
.badge--tba { background: var(--tba-bg); border-color: transparent; color: var(--tba-fg); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* Standalone status dot (in front of titles / dates) — status is text + dot, never color alone */
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.sdot--released { background: var(--released-dot); box-shadow: 0 0 0 3px rgba(126, 224, 160, 0.14); }
.sdot--upcoming { background: var(--upcoming-dot); box-shadow: 0 0 0 3px rgba(231, 199, 102, 0.14); }
.sdot--tba { background: var(--tba-dot); box-shadow: 0 0 0 3px rgba(107, 112, 149, 0.14); }

code {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px;
  padding: 0.05rem 0.35rem; font-size: 0.9em;
}
ul { padding-left: 1.25rem; }

/* Buttons */
button {
  font: inherit; font-weight: 500; cursor: pointer;
  color: #0e0f1a; background: var(--accent); border: 0;
  border-radius: var(--radius-sm); padding: 0.5rem 0.95rem;
  transition: background 0.12s ease;
}
button:hover { background: var(--accent-strong); }
.linkish {
  background: transparent; color: var(--muted); padding: 0; font-weight: 400;
  text-decoration: underline;
}
.linkish:hover { background: transparent; color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); color: var(--faint);
  font-size: 0.85rem; padding: 1.25rem 1.5rem; text-align: center;
}
.site-footer a { color: var(--muted); }

/* Auth / preference forms */
.auth-form { max-width: 22rem; }
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="number"] {
  width: 100%; padding: 0.5rem 0.65rem; margin: 0.2rem 0 0.7rem;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
}
.auth-form input:focus, .filters input:focus, .filters select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg);
}
.error { color: #ff8a8a; }
.ok { color: var(--released-fg); }
.pref-section { margin-bottom: 2rem; }
.pref-section h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.check { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); }
input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }

/* MFA */
.qr { background: #fff; display: inline-block; padding: 0.75rem; border-radius: var(--radius); }
.qr svg { width: 200px; height: 200px; display: block; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; max-width: 24rem; }
.codes code { display: block; text-align: center; padding: 0.4rem; }

/* Browse filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.5rem; }
.filters input, .filters select {
  font: inherit; padding: 0.45rem 0.65rem; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
}
.filters input[type="search"] { min-width: 14rem; flex: 1 1 14rem; }
.filters input[type="number"] { width: 6rem; }

/* Game grid + cards */
.game-grid {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.game-card { display: flex; flex-direction: column; gap: 0.55rem; }
.cover-link { display: block; position: relative; overflow: hidden; border-radius: var(--radius); }
.cover-link img, .cover-placeholder {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel);
  transition: transform 0.25s var(--ease), border-color 0.2s var(--ease);
}
.cover-link:hover img { transform: scale(1.04); border-color: var(--border-strong); }
.cover-placeholder {
  display: grid; place-items: center; font-family: var(--font-display);
  font-size: 2rem; font-weight: 600; color: var(--accent); background: var(--accent-bg);
}
.game-title {
  font-family: var(--font-display); font-weight: 500; color: var(--text);
  text-decoration: none; line-height: 1.3; letter-spacing: -0.01em;
}
.game-title:hover { color: var(--accent-strong); text-decoration: none; }
.game-card .meta { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8rem; }
/* date-forward card: precision date in the display font + status dot, relative line under it */
.card-date { display: flex; align-items: center; gap: 0.5rem; }
.card-date .when {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.card-date .when--released { color: var(--released-fg); }
.card-date .when--upcoming { color: var(--upcoming-fg); }
.card-date .when--tba { color: var(--tba-fg); }
.card-rel { font-size: 0.75rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.card-rel.is-soon { color: var(--accent-strong); }
.plat-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.plat {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px; padding: 0.05rem 0.32rem;
  white-space: nowrap; flex: none;
}
/* "+N" overflow chip: same footprint as a platform, dimmer; remaining names in title */
.plat--more { color: var(--faint); cursor: default; }

/* Pagination */
.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 2rem; }

/* Game detail */
/* Cover (3:4) + trailer (16:9) share the row at EQUAL height: flex-grow 27:64 keeps
   their widths in the ratio that makes their heights match, and the pair fills the row. */
.game-detail .crumb { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.4rem; }
.game-detail .crumb:hover { color: var(--accent-strong); text-decoration: none; }
.detail-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.detail-head h1 { margin: 0; font-size: 1.9rem; }
.media-row { display: flex; gap: 1.5rem; align-items: stretch; margin: 1rem 0 1.5rem; }
.media-row .cover { flex: 27 1 0; min-width: 0; width: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.game-detail .cover { border-radius: var(--radius); border: 1px solid var(--border); }
@media (max-width: 720px) {
  .media-row { flex-direction: column; }
  .media-row .cover { flex: none; width: 160px; }
  .trailers { flex: none; width: 100%; }
}
.badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.5rem 0; }
/* meta as an aligned definition grid inside a panel card */
.game-meta {
  margin: 0 0 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; align-items: start;
  padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.meta-label { color: var(--muted); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.15rem; }
.meta-val { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; min-width: 0; }
.summary { max-width: 54rem; color: #cfd3ea; }
.releases { width: 100%; border-collapse: collapse; }
.releases th, .releases td { text-align: left; padding: 0.62rem 0.85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.releases thead th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom-color: var(--border-strong); }
.releases tbody tr { transition: background 0.12s var(--ease); }
.releases tbody tr:hover { background: var(--panel); }
.releases td:first-child { font-weight: 500; }
.releases td:last-child { text-align: right; }
.releases .rel-line { display: block; margin-top: 0.25rem; font-size: 0.72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.releases .rel-line.is-soon { color: var(--accent-strong); font-weight: 600; }
/* Detail-page countdown sits just under the head, left-aligned. */
.detail-countdown { margin: 0.1rem 0 0.5rem; }
.detail-countdown .countdown { margin-top: 0; }

/* Game detail media: genre links, trailers, screenshots, external links */
.genre-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.genre-links a {
  font-size: 0.8rem; color: var(--accent-strong); background: var(--accent-bg);
  border: 1px solid #2c2655; border-radius: 999px; padding: 0.12rem 0.62rem; text-decoration: none;
  transition: border-color 0.12s var(--ease);
}
.genre-links a:hover { border-color: var(--accent); text-decoration: none; }

.trailers { flex: 64 1 0; min-width: 0; display: flex; flex-direction: column; }
.trailer-placeholder {
  width: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--panel); color: var(--muted); font-size: 0.9rem;
}
.trailer-poster {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #000; cursor: pointer;
}
.trailer-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trailer-poster:hover { border-color: var(--accent); }
.trailer-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; padding-left: 4px;
  display: grid; place-items: center; font-size: 1.5rem; color: #fff; border-radius: 50%;
  background: rgba(14, 15, 26, 0.55); border: 2px solid rgba(255, 255, 255, 0.85);
}
.trailer-poster:hover .trailer-play { background: var(--accent); border-color: var(--accent); color: #0e0f1a; }
.trailer-nav { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.6rem; }
.trailer-nav button {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.1rem 0.65rem; font-size: 1.1rem; line-height: 1.2;
}
.trailer-nav button:hover { border-color: var(--accent); }
.trailer-title {
  flex: 1; min-width: 0; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.shots { margin: 1.5rem 0; }
.shot-grid {
  list-style: none; padding: 0; display: grid; gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.shot-grid img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.shot-grid a:hover img { border-color: var(--accent); }

.links, .reviews, .length { margin: 1.5rem 0; }
/* HowLongToBeat lengths — same visual language as review scores. */
.hltb-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.5rem; }
.hltb {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--panel-2);
}
.hltb b { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hltb-lbl { font-size: 0.78rem; color: var(--muted); }
/* Review scores (IGDB critics + players). Colour band by tier; number leads, label trails. */
.score-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.7rem; }
.score {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--panel-2);
}
.score b { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.score-lbl { font-size: 0.78rem; color: var(--muted); }
.score--high b { color: var(--released-fg); }
.score--mid b { color: var(--upcoming-fg); }
.score--low b { color: #e98b8b; }
.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.link-list a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.35rem 0.8rem; text-decoration: none;
}
.link-list a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* In-page lightbox (screenshots + trailers) */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; overflow: auto;
  background: rgba(8, 9, 16, 0.92); display: flex; align-items: center; justify-content: center;
  padding: 2rem; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { margin: auto; display: flex; align-items: center; justify-content: center; }
.lightbox-img {
  max-width: 92vw; max-height: 90vh; object-fit: contain;
  border-radius: 6px; cursor: zoom-in;
}
.lightbox-img.zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox-video { width: min(92vw, 1280px); aspect-ratio: 16 / 9; border: 0; border-radius: 6px; cursor: default; }
body.lightbox-open { overflow: hidden; }

/* Screenshot gallery: transparent edge zones over the image page prev/next; centre zooms. */
.lb-gallery { position: relative; display: inline-flex; }
.lb-nav {
  position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; border: 0; cursor: pointer;
  display: flex; align-items: center; color: #fff; font-size: 2.6rem; line-height: 1;
  background: transparent; opacity: 0; transition: opacity 0.15s var(--ease);
}
/* Black gradient darkest at the screenshot edge, fading to transparent toward the centre. */
.lb-prev {
  left: 0; justify-content: flex-start; padding-left: 0.7rem;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
}
.lb-next {
  right: 0; justify-content: flex-end; padding-right: 0.7rem;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent);
}
.lb-prev span, .lb-next span { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.lb-gallery:hover .lb-nav { opacity: 0.55; }
.lb-nav:hover { opacity: 1; }
.lb-gallery.is-zoomed .lb-nav { display: none; }  /* edges become panning room when zoomed */
.lb-count {
  position: absolute; bottom: 0.7rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.8rem; color: #fff; background: rgba(8, 9, 16, 0.7); border-radius: 999px;
  padding: 0.15rem 0.6rem; font-variant-numeric: tabular-nums; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .lb-nav { transition: none; } }

/* Follow button (following = outlined accent) */
.follow-btn.following {
  background: var(--panel-2); color: var(--accent-strong); border: 1px solid var(--accent);
}
.follow-btn.following:hover { background: var(--panel-2); }

/* Release radar (home) — status-keyed rows */
.radar-section { margin-bottom: 2.5rem; }
.band {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--muted);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 1.5rem 0 0.4rem;
}
.band .bcount {
  color: var(--faint); font-weight: 500; letter-spacing: 0; text-transform: none;
  font-variant-numeric: tabular-nums;
}
.radar-list { list-style: none; padding: 0; margin: 0; }
.radar-row {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 0.9rem;
  padding: 0.55rem 0.7rem 0.55rem 0.55rem; position: relative; text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.radar-row:hover { text-decoration: none; background: var(--panel); border-radius: var(--radius-sm); }
.radar-list li:last-child .radar-row { border-bottom-color: transparent; }
.radar-row::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: var(--border-strong); opacity: 0; transition: opacity 0.14s var(--ease);
}
.radar-row:hover::before { opacity: 1; }
.radar-row--released:hover::before { background: var(--released-dot); }
.radar-row--upcoming:hover::before { background: var(--upcoming-dot); }
.radar-row--tba:hover::before { background: var(--tba-dot); }
.radar-cover {
  width: 46px; height: 61px; flex: none; overflow: hidden;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--accent-bg); color: var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  display: grid; place-items: center;
}
.radar-cover img { width: 100%; height: 100%; object-fit: cover; }
.radar-main { min-width: 0; }
.radar-main .title-row { display: flex; align-items: center; gap: 0.5rem; }
.radar-main .game-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radar-platforms { font-size: 0.78rem; margin-top: 0.12rem; display: flex; gap: 0.3rem; flex-wrap: wrap; }
.radar-date { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.radar-rel { font-size: 0.74rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.radar-rel.is-soon { color: var(--accent-strong); font-weight: 600; }

/* ============================ Release radar dashboard (home) ============================ */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(139, 124, 255, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(139, 124, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 124, 255, 0); } }
@keyframes sweep { 0% { left: -40%; } 100% { left: 120%; } }

.radar-head { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.radar-head h1 { margin: 0; }
.live {
  display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-bg);
  border: 1px solid #2c2655; border-radius: 999px; padding: 0.25rem 0.7rem;
}
.live .blip { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s var(--ease) infinite; }
.radar-head .when-now { color: var(--faint); font-size: 0.85rem; margin-left: auto; font-variant-numeric: tabular-nums; }

.stat-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.42rem 0.85rem;
  background: var(--panel); border: 1px solid var(--border); border-radius: 999px; font-size: 0.88rem;
}
.stat-chip b { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-chip .muted { font-size: 0.85rem; }

.radar-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 1.75rem; align-items: start; }

.hero {
  position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 1.5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover; filter: blur(46px) saturate(1.1); opacity: 0.4; }
.hero-bg .veil {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14, 15, 26, 0.96) 38%, rgba(14, 15, 26, 0.55) 70%, rgba(14, 15, 26, 0.35) 100%),
    radial-gradient(120% 90% at 88% 10%, rgba(139, 124, 255, 0.18), transparent 60%);
}
.hero-sweep { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-sweep::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(139, 124, 255, 0.1) 50%, transparent);
  animation: sweep 6.5s linear infinite;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 152px 1fr; gap: 1.4rem; padding: 1.5rem; }
.hero-cover {
  width: 152px; aspect-ratio: 3 / 4; border-radius: var(--radius); border: 1px solid var(--border-strong);
  overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); background: var(--accent-bg);
  display: grid; place-items: center; color: var(--accent); font-family: var(--font-display); font-size: 2.5rem; font-weight: 600;
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { min-width: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-strong);
}
.hero h2 { margin: 0; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; }
.hero h2 a { color: inherit; }
.hero h2 a:hover { color: var(--accent-strong); text-decoration: none; }
.hero-sub { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.countdown { display: flex; gap: 0.5rem; margin-top: 0.2rem; flex-wrap: wrap; align-items: center; }
.cd-seg {
  min-width: 66px; text-align: center; background: rgba(28, 31, 51, 0.7); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 0.5rem 0.3rem 0.4rem;
}
.cd-seg .n {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1;
  color: var(--upcoming-fg); font-variant-numeric: tabular-nums;
}
.cd-seg.is-secs .n { color: var(--accent-strong); }
.cd-seg .l { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: 0.3rem; }
.cd-segs { display: flex; gap: 0.5rem; align-items: center; }
.cd-out { font-size: 0.95rem; }
/* [hidden] alone can't beat the flex/inline-flex display rules above, so override it */
.cd-segs[hidden], [data-cd-out][hidden] { display: none; }
.cd-date { font-size: 0.86rem; color: var(--muted); align-self: center; font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; gap: 0.6rem; margin-top: 0.4rem; flex-wrap: wrap; align-items: center; }
.hero-actions a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; border-radius: var(--radius-sm); padding: 0.5rem 0.95rem; text-decoration: none; }
.hero-actions a:hover { text-decoration: none; }
.btn-quiet { background: var(--panel-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-quiet:hover { background: var(--panel); border-color: var(--accent); }
.hero-actions .following { background: var(--accent-bg); color: var(--accent-strong); border: 1px solid var(--accent); }

/* "Next up" carousel: slides are stacked in one grid cell and cross-faded; the container
   sizes to the tallest slide so the layout doesn't jump as it rotates. */
.hero-carousel { position: relative; margin-bottom: 1.5rem; }
.hero-track { display: grid; }
.hero-carousel .hero { margin-bottom: 0; }
.hero-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.992);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; position: relative; z-index: 1; }
.hero-dots { position: absolute; bottom: 0.9rem; right: 1.1rem; z-index: 3; display: flex; gap: 0.4rem; }
.hero-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.3); transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.55); }
.hero-dot.is-active { background: var(--accent-strong); transform: scale(1.25); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: rgba(14, 15, 26, 0.6); color: var(--text); font-size: 1.4rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-carousel:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-prev { left: 0.7rem; }
.hero-next { right: 0.7rem; }
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }

.sec-label {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 1.6rem 0 0.85rem;
}
.sec-label .count { color: var(--faint); font-weight: 500; letter-spacing: 0; }
.sec-label .rule { flex: 1; height: 1px; background: var(--border); }
.week-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.week-card {
  position: relative; display: block; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel);
  transition: transform 0.22s var(--ease), border-color 0.2s var(--ease), box-shadow 0.22s var(--ease);
}
.week-card .wc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.week-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-card); text-decoration: none; }
.week-card:hover .wc-art { transform: scale(1.05); }
.week-card .wc-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 16, 0.92), rgba(8, 9, 16, 0.4) 45%, rgba(8, 9, 16, 0.05) 70%); }
.week-card .wc-soon { position: absolute; top: 0.6rem; left: 0.6rem; }
.week-card .wc-hype {
  position: absolute; top: 0.6rem; right: 0.6rem; display: inline-flex; align-items: center; gap: 0.2rem;
  font-size: 0.7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-strong);
  background: rgba(20, 18, 38, 0.78); border: 1px solid var(--accent); border-radius: 999px; padding: 0.1rem 0.4rem;
}
.week-card .wc-body { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.65rem; }
.week-card .wc-date { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #f3e4ad; font-variant-numeric: tabular-nums; }
.week-card .wc-title {
  font-family: var(--font-display); font-weight: 500; color: #fff; font-size: 0.95rem; line-height: 1.25;
  white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.week-card .wc-plats { display: flex; flex-wrap: nowrap; gap: 0.3rem; margin-top: 0.35rem; overflow: hidden; }
.week-card .wc-plats .plat { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.12); color: #d7daf0; }

/* "By month" browsable row: header nav + a single horizontally-scrolling strip of cards. */
.radar-month { margin-bottom: 0.5rem; }
.rm-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.7rem; }
.rm-title { font-size: 0.95rem; }
.rm-title .muted { font-weight: 400; }
.rm-nav { display: flex; gap: 0.4rem; }
.rm-arrow {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--panel-2); color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.rm-arrow:hover:not(:disabled) { background: var(--panel); border-color: var(--accent); color: var(--accent-strong); }
.rm-arrow:disabled { opacity: 0.4; cursor: default; }
.rm-row {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.rm-row::-webkit-scrollbar { height: 8px; }
.rm-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.rm-card { flex: 0 0 190px; scroll-snap-align: start; }
.rm-empty { padding: 0.5rem 0; }

.now-axis { display: flex; align-items: center; gap: 0.8rem; margin: 1.9rem 0 0.4rem; }
.now-axis .tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-strong); }
.now-axis .tag .blip { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s var(--ease) infinite; }
.now-axis .rule { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--accent), var(--border-strong) 40%, var(--border)); }
.now-axis .stamp { color: var(--faint); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.radar-toggle { margin: 1.1rem 0 0.2rem; text-align: center; }
.radar-toggle a {
  display: inline-block; font-size: 0.8rem; color: var(--muted); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 0.35rem 0.95rem; text-decoration: none;
}
.radar-toggle a:hover { color: var(--accent-strong); border-color: var(--accent); text-decoration: none; }

.timeline { position: relative; margin: 0; padding: 0.4rem 0 0 1.5rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 10px; width: 2px; background: linear-gradient(to bottom, var(--border-strong), var(--border) 70%, transparent); }
.tl-band { position: relative; margin: 1.25rem 0 0.4rem; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tl-band:first-child { margin-top: 0.4rem; }
.tl-band .count { color: var(--faint); font-weight: 500; letter-spacing: 0; }
.tl-row {
  position: relative; display: grid; grid-template-columns: 54px 1fr auto; align-items: center;
  gap: 0.95rem; padding: 0.5rem 0.65rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.tl-row:hover { background: var(--panel); border-color: var(--border); text-decoration: none; }
.tl-row::before {
  content: ""; position: absolute; left: calc(-1.5rem + 1px); top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border-strong); z-index: 1;
}
.tl-row--upcoming::before { border-color: var(--upcoming-dot); }
.tl-row--released::before { border-color: var(--released-dot); }
.tl-row--tba::before { border-color: var(--tba-dot); }
.tl-cover {
  width: 54px; height: 72px; border-radius: 6px; border: 1px solid var(--border); overflow: hidden;
  background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600;
}
.tl-cover img { width: 100%; height: 100%; object-fit: cover; }
.tl-main { min-width: 0; }
.tl-main .game-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-platforms { margin-top: 0.15rem; }
.tl-date { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.18rem; }
.tl-rel { font-size: 0.74rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl-rel.is-soon { color: var(--accent-strong); font-weight: 600; }

.rail-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.rail-card h3 { margin: 0 0 0.75rem; font-size: 0.98rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.rail-card h3 .seeall { font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; color: var(--accent-strong); }
.watch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
.watch-grid .wt {
  position: relative; aspect-ratio: 3 / 4; border-radius: 6px; border: 1px solid var(--border); overflow: hidden; display: block;
  background: var(--accent-bg); transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.watch-grid .wt:hover { border-color: var(--accent); transform: translateY(-2px); }
.watch-grid .wt img { width: 100%; height: 100%; object-fit: cover; }
.watch-grid .wt .wt-dot { position: absolute; top: 4px; right: 4px; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 26px 1fr; gap: 0.6rem; padding: 0.6rem 0; align-items: start; }
.feed li + li { border-top: 1px solid var(--border); }
.feed .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.feed .ic--earlier { background: var(--released-bg); color: var(--released-fg); }
.feed .ic--delayed { background: var(--upcoming-bg); color: var(--upcoming-fg); }
.feed .ic--confirmed { background: var(--accent-bg); color: var(--accent-strong); }
.feed .ft { font-size: 0.86rem; line-height: 1.4; }
.feed .ft b { font-family: var(--font-display); font-weight: 500; color: var(--text); }
.feed .ago { font-size: 0.72rem; color: var(--faint); margin-top: 0.1rem; }
.feed .ch-earlier { color: var(--released-fg); font-weight: 600; }
.feed .ch-delayed { color: var(--upcoming-fg); font-weight: 600; }
.feed .ch-confirmed { color: var(--accent-strong); font-weight: 600; }

.mini-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 0.65rem; align-items: center; padding: 0.45rem 0; }
/* the 1fr middle column must be allowed to shrink below content width so the
   title can ellipsize instead of pushing the "Out" badge out of the card */
.mini-row > span:not(.badge) { min-width: 0; }
.mini-row + .mini-row { border-top: 1px solid var(--border); }
.mini-cover { width: 40px; height: 53px; border-radius: 5px; border: 1px solid var(--border); overflow: hidden; background: var(--accent-bg); display: block; }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-title { font-family: var(--font-display); font-weight: 500; font-size: 0.86rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mini-sub { font-size: 0.74rem; color: var(--faint); }

@media (max-width: 980px) { .radar-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .live .blip, .now-axis .tag .blip { animation: none; }
  .hero-sweep::before { animation: none; }
  .hero-slide { transition: none; }
}

/* ============================ Cover-forward browse (posters + list view) ============================ */
.browse-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.view-toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; gap: 2px; }
.view-toggle a { color: var(--muted); padding: 0.32rem 0.7rem; border-radius: 5px; font-size: 0.82rem; text-decoration: none; }
.view-toggle a:hover { color: var(--text); text-decoration: none; }
.view-toggle a.is-active { background: var(--panel-2); color: var(--text); }

.month-rail {
  display: flex; align-items: center; gap: 0.7rem; margin: 2rem 0 1.05rem; position: sticky; top: 4.1rem; z-index: 5;
  background: linear-gradient(to bottom, var(--bg) 72%, transparent); padding: 0.3rem 0;
}
.browse-results .month-rail:first-of-type { margin-top: 0; }
.month-rail .mr-label { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.month-rail .mr-line { flex: 1; height: 1px; background: var(--border); }
.month-rail .mr-count { font-size: 0.8rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.month-rail--now .mr-label::after { content: "· now"; color: var(--accent-strong); font-size: 0.82rem; font-weight: 500; margin-left: 0.45rem; }

.poster-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem 1.1rem; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); }
.poster-grid + .poster-grid { margin-top: 1.4rem; }
.poster-grid .feature { grid-column: span 2; }
@media (max-width: 520px) { .poster-grid .feature { grid-column: span 1; } }
.poster-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 3 / 4; background: var(--panel); color: #fff; text-decoration: none;
  transition: transform 0.22s var(--ease), border-color 0.2s var(--ease), box-shadow 0.22s var(--ease);
}
.poster-card.feature { aspect-ratio: 16 / 10; }
.poster-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-card); text-decoration: none; }
.poster-card .pc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.poster-card:hover .pc-art { transform: scale(1.06); }
.poster-card .pc-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 16, 0.93) 0%, rgba(8, 9, 16, 0.5) 26%, rgba(8, 9, 16, 0) 52%); }
/* whole-card link sits above the art/body but below the interactive top controls */
.poster-card .pc-link { position: absolute; inset: 0; z-index: 1; }
.poster-card .pc-top { position: absolute; top: 0.6rem; left: 0.6rem; right: 0.6rem; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; }
.pc-fav-form { margin: 0; }
.pc-fav {
  width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 999px;
  background: rgba(14, 15, 26, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); color: #d7daf0;
  opacity: 0; transform: translateY(-3px); backdrop-filter: blur(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.poster-card:hover .pc-fav, .poster-card:focus-within .pc-fav, .pc-fav.is-following { opacity: 1; transform: translateY(0); }
.pc-fav:hover { background: var(--accent); color: #0e0f1a; border-color: var(--accent); }
/* Golden, matching the "Upcoming" tag — distinguishes a followed game at a glance from the accent (purple) hover state. */
.pc-fav.is-following { color: var(--upcoming-fg); background: rgba(231, 199, 102, 0.2); border-color: var(--upcoming-fg); }
.pc-fav.is-following svg path { fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .pc-fav { transform: none; } }
.poster-card .pc-status {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.18rem 0.5rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; backdrop-filter: blur(6px); background: rgba(14, 15, 26, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
}
.poster-card .pc-status--released { color: var(--released-fg); }
.poster-card .pc-status--upcoming { color: var(--upcoming-fg); }
.poster-card .pc-status--tba { color: var(--tba-fg); }
.poster-card .pc-body { position: absolute; left: 0.78rem; right: 0.78rem; bottom: 0.7rem; }
.poster-card.feature .pc-body { left: 1.1rem; right: 1.1rem; bottom: 1rem; max-width: 60%; }
.poster-card .pc-date { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.poster-card.feature .pc-date { font-size: 1.5rem; }
.poster-card .pc-date--upcoming { color: #f3e4ad; }
.poster-card .pc-date--released { color: #b9f0cd; }
.poster-card .pc-rel-line { font-size: 0.74rem; color: #c8ccea; opacity: 0.85; margin-top: 0.1rem; font-variant-numeric: tabular-nums; }
.poster-card .pc-title {
  font-family: var(--font-display); font-weight: 500; font-size: 0.94rem; color: #fff; margin-top: 0.18rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.poster-card.feature .pc-title { font-size: 1.25rem; -webkit-line-clamp: 3; }
.poster-card .pc-plats { display: flex; flex-wrap: nowrap; gap: 0.3rem; margin-top: 0.45rem; overflow: hidden; opacity: 0; transform: translateY(4px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.poster-card:hover .pc-plats, .poster-card.feature .pc-plats { opacity: 1; transform: translateY(0); }
.poster-card .pc-plats .plat { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.12); color: #d7daf0; }
@media (prefers-reduced-motion: reduce) { .poster-card .pc-plats { opacity: 1; transform: none; } }

/* Browse layout — sticky filter sidebar + month-grouped results */
.browse-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 2.25rem; align-items: start; }
/* Sticky, but capped to the viewport and independently scrollable — otherwise a filter
   sidebar taller than the window (e.g. more filter groups than fit) is unreachable below
   the fold, with no way to scroll down to it. */
.browse-sidebar { position: sticky; top: 5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; overscroll-behavior: contain; }
.browse-sidebar .filters {
  display: flex; flex-direction: column; align-items: stretch; gap: 1.05rem; margin-bottom: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.1rem;
}
.browse-sidebar .filters input:not([type="checkbox"]):not([type="radio"]), .browse-sidebar .filters select {
  width: 100%; min-width: 0; flex: none;
}
.result-count { margin-top: 0; display: flex; align-items: center; gap: 0.6rem; }
.result-count b { color: var(--text); font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* Filter sidebar (rebuilt) — real form controls, styled with :checked + label (works w/o JS) */
/* Collapsible filter panel: a native <details> so it works with no JS. On desktop the summary
   is a plain header and the panel stays open; on mobile browse-filters.js collapses it and the
   summary becomes a full-width "Filters" tap target (see the ≤720px block below). */
.filter-collapse { display: flex; flex-direction: column; gap: 1.05rem; }
.filter-toggle { display: flex; align-items: center; gap: 0.5rem; list-style: none; cursor: default; }
.filter-toggle::-webkit-details-marker { display: none; }
.ft-title { margin: 0; font-size: 1.02rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.ft-chevron { margin-left: auto; color: var(--muted); transition: transform 0.2s ease; display: none; }
.filter-body { display: flex; flex-direction: column; gap: 1.05rem; }
.fcount {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; color: var(--accent-strong);
  background: var(--accent-bg); border: 1px solid #2c2655; border-radius: 999px; padding: 0.08rem 0.45rem;
}
.filters .clear { font-size: 0.78rem; color: var(--muted); align-self: flex-start; }
.filters .clear:hover { color: var(--accent-strong); }
.active-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.achip {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 500;
  padding: 0.2rem 0.25rem 0.2rem 0.55rem; border-radius: 999px;
  background: var(--accent-bg); border: 1px solid #2c2655; color: var(--accent-strong); text-decoration: none;
}
.achip .x {
  display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  font-size: 0.72rem; line-height: 1;
}
.achip:hover { text-decoration: none; }
.achip:hover .x { background: rgba(169, 156, 255, 0.18); color: #fff; }
.search-field { position: relative; }
.search-field .si {
  position: absolute; left: 0.62rem; top: 50%; transform: translateY(-50%); color: var(--faint);
  pointer-events: none; display: grid;
}
.search-field input { padding-left: 2.05rem; }
.fgroup { display: flex; flex-direction: column; gap: 0.5rem; }
.fgroup > label, .glabel {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint);
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.field-grid--wide { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.field-grid--date { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.field-mini { display: flex; flex-direction: column; gap: 0.25rem; }
.field-mini > span { font-size: 0.7rem; color: var(--muted); }
/* segmented control (radios) */
.seg { display: flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 3px; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg label {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; font-size: 0.8rem;
  padding: 0.36rem 0.25rem; border-radius: 5px; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.seg label:hover { color: var(--text); }
.seg input:checked + label { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.seg input:focus-visible + label { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
/* multi-select toggle chips (checkboxes) */
.chip-set { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-set input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip-set label {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; padding: 0.32rem 0.62rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); cursor: pointer;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease), color 0.14s var(--ease);
}
.chip-set label:hover { border-color: var(--border-strong); color: var(--text); }
.chip-set input:checked + label { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-strong); }
.chip-set input:focus-visible + label { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
/* toggle switches (checkboxes) */
.switch-group { display: flex; flex-direction: column; gap: 0.7rem; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-size: 0.85rem; color: var(--text); cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch .track {
  width: 36px; height: 21px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border-strong);
  position: relative; flex: none; transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--muted); transition: transform 0.16s var(--ease), background 0.15s var(--ease);
}
.switch input:checked + .track { background: var(--accent-bg); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(15px); background: var(--accent-strong); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.filter-foot { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }
.filter-foot button { flex: 1; }
.filter-foot .reset { font-size: 0.84rem; color: var(--muted); }
.filter-foot .reset:hover { color: var(--accent-strong); }

/* Custom searchable dropdown — JS enhances a native <select> into this (no-JS keeps the select) */
.cselect { position: relative; }
.cselect-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.35rem;
  font: inherit; font-size: 0.85rem; padding: 0.45rem 0.55rem; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); cursor: pointer; text-align: left; transition: border-color 0.12s var(--ease);
}
.cselect-btn:hover { border-color: var(--border-strong); }
.cselect.open .cselect-btn { border-color: var(--accent); }
.cselect-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-caret { color: var(--muted); flex: none; transition: transform 0.15s var(--ease); }
.cselect.open .cselect-caret { transform: rotate(180deg); }
.cselect-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; margin: 0; padding: 4px;
  list-style: none; background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.75); max-height: 244px; overflow: auto;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.14s var(--ease), transform 0.14s var(--ease);
}
.cselect.open .cselect-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cselect-menu li[role="option"] {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.42rem 0.55rem; border-radius: 6px;
  font-size: 0.85rem; color: var(--muted); cursor: pointer;
}
.cselect-menu li[role="option"].active { background: var(--panel); color: var(--text); }
.cselect-menu li[aria-selected="true"] { color: var(--accent-strong); }
.cselect-menu li[aria-selected="true"]::after { content: "✓"; margin-left: auto; font-size: 0.78rem; }
.cselect-menu li[hidden] { display: none; }
.cselect-search {
  position: sticky; top: 0; z-index: 1; background: var(--panel-2); margin: -4px -4px 4px; padding: 8px 8px 7px;
  border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
}
.cselect-search input {
  width: 100%; font: inherit; font-size: 0.82rem; padding: 0.4rem 0.55rem; background: var(--panel);
  border: 1px solid var(--border); border-radius: 6px; color: var(--text);
}
.cselect-search input::placeholder { color: var(--faint); }
.cselect-empty { display: block; padding: 0.5rem 0.55rem; font-size: 0.82rem; color: var(--faint); }
.month-head {
  display: flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text);
  margin: 2rem 0 0.95rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 4.1rem; z-index: 5;
  background: linear-gradient(to bottom, var(--bg) 70%, rgba(14, 15, 26, 0));
}
.browse-results .month-head:first-of-type { margin-top: 0; }
.month-head .mcount {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.month-head--now::before {
  content: "NOW"; font-family: var(--font-body); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--accent-strong); background: var(--accent-bg);
  border: 1px solid #2c2655; padding: 0.12rem 0.4rem; border-radius: 5px; align-self: center;
}
/* Appended pages (HTMX load-more) stack as sibling grids — keep the rhythm tidy. */
.game-grid + .game-grid { margin-top: 1.25rem; }
.game-grid + .month-head { margin-top: 1.75rem; }
/* Shared button/link style. (Was `.load-more`, which had drifted onto non-pagination
   actions; `.load-more` is now just the id on the paginate control.) */
.btn {
  display: block; width: max-content; margin: 1.75rem auto 0;
  font-family: var(--font-display); font-weight: 500;
  color: var(--accent-strong); background: var(--panel-2);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 0.55rem 1.4rem; text-decoration: none;
}
.btn:hover { background: var(--panel); border-color: var(--accent); text-decoration: none; }
.btn.htmx-request { opacity: 0.55; pointer-events: none; }
@media (max-width: 720px) {
  .browse-layout { grid-template-columns: 1fr; gap: 1rem; }
  .browse-sidebar { position: static; max-height: none; overflow-y: visible; }
  /* Collapse the filter form behind a full-width "Filters" tap target so results show first. */
  .filter-toggle { cursor: pointer; min-height: 2.25rem; }
  .ft-chevron { display: block; }
  .filter-collapse[open] .ft-chevron { transform: rotate(180deg); }
  .filter-collapse:not([open]) { gap: 0; }
}

/* --- Discover: taste profile ------------------------------------------- */
.discover-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.discover-head h1 { margin-bottom: 0.25rem; }
.discover-head .btn { white-space: nowrap; flex: none; }

.taste-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.taste-card {
  display: flex; align-items: stretch; gap: 1rem;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem;
}
.tc-art {
  width: 56px; height: 75px; object-fit: cover; flex: none;
  border-radius: var(--radius-sm); background: var(--panel-2);
}
.tc-art--blank { display: block; }
.tc-body { flex: 1; min-width: 0; }
.tc-title { font-weight: 600; color: var(--text); text-decoration: none; }
.tc-title:hover { color: var(--accent-strong); }
.tc-blurb { margin: 0.35rem 0 0; font-size: 0.92rem; line-height: 1.45; }
.tc-remove { flex: none; align-self: center; }

.taste-search { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; max-width: 32rem; }
.taste-search input[type="search"] {
  flex: 1; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); padding: 0.5rem 0.75rem;
}
.taste-search input:focus { outline: none; border-color: var(--accent); }

.taste-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.taste-result {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem;
}
.tr-form { display: grid; gap: 0.6rem; }
.tr-head { display: flex; align-items: center; gap: 0.7rem; }
.tr-art {
  width: 40px; height: 54px; object-fit: cover; flex: none;
  border-radius: var(--radius-sm); background: var(--panel-2);
}
.tr-art--blank { display: block; }
.tr-title { font-weight: 600; }
.tr-form textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); padding: 0.5rem 0.65rem;
  font: inherit; resize: vertical;
}
.tr-form textarea:focus { outline: none; border-color: var(--accent); }
.tr-form button { justify-self: start; }

.discover-actions { display: flex; gap: 0.5rem; flex: none; }

/* "Your taste in a nutshell" synthesized summary (Phase 3c). */
.taste-summary {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.5rem;
}
.taste-summary h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.ts-prose { margin: 0 0 0.6rem; line-height: 1.55; }

/* Parsed-aspect chips on the profile + recommendation reasons. */
.tc-chips, .rc-why { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.5rem; }
.chip {
  display: inline-block; font-size: 0.78rem; line-height: 1; padding: 0.3rem 0.55rem;
  border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted);
}
.chip--liked { color: var(--released-fg); border-color: color-mix(in srgb, var(--released-fg) 40%, var(--border)); }
.chip--disliked { color: #ff8a8a; border-color: color-mix(in srgb, #ff8a8a 35%, var(--border)); }
.chip--external {
  color: var(--accent-strong); background: var(--accent-bg);
  border-color: var(--accent); margin-left: 0.5rem; vertical-align: middle;
}
.tc-analyzing { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--accent-strong); }
.tc-analyzing::before { content: "⋯ "; }

/* Recommendations list. */
.rec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.rec-card {
  display: flex; gap: 1rem; align-items: stretch;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem;
}
.rc-art {
  width: 56px; height: 75px; object-fit: cover; flex: none;
  border-radius: var(--radius-sm); background: var(--panel-2);
}
.rc-art--blank { display: block; }
.rc-body { flex: 1; min-width: 0; }
.rc-title { font-weight: 600; color: var(--text); text-decoration: none; }
.rc-title:hover { color: var(--accent-strong); }
.rc-why-label { font-size: 0.8rem; color: var(--muted); margin-right: 0.15rem; }
.rc-why-text { margin: 0.4rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--text); }

/* "More like this" on the game detail page. */
.more-like-this { margin-top: 1.75rem; }
.sim-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.85rem;
}
.sim-link { display: block; color: var(--text); text-decoration: none; }
.sim-link:hover { text-decoration: none; }
.sim-link:hover .sim-title { color: var(--accent-strong); }
.sim-art {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--border);
  display: block;
}
.sim-title { display: block; margin-top: 0.4rem; font-size: 0.88rem; line-height: 1.3; }

/* Game-page taste card — the Discover enrichment (descriptor + standout aspects) surfaced on
   the game detail page. Distinct from .taste-card (the played-games rows on the profile). */
.game-taste {
  margin: 1.5rem 0; max-width: 54rem; padding: 1rem 1.15rem;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
}
.game-taste h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.gt-descriptor { margin: 0 0 0.75rem; line-height: 1.6; color: #cfd3ea; }
.gt-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; margin: 0.5rem 0 0; }
.gt-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-right: 0.15rem;
}
.gt-caveats > span:last-child { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.chip--aspect { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-strong); }
.gt-provenance { margin: 0.85rem 0 0; font-size: 0.72rem; color: var(--faint); }
