:root {
  --bg: #06080b;
  --bg-elev: #090d12;
  --surface: #0d1219;
  --surface-2: #121a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef6;
  --muted: #8c98a9;
  --faint: #7b8798;
  --lime: #c9ff4a;
  --lime-soft: rgba(201, 255, 74, 0.12);
  --lime-line: rgba(201, 255, 74, 0.32);
  --cyan: #5ad7ff;
  --amber: #ffb648;
  --pink: #ff6b9a;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

::selection {
  background: var(--lime);
  color: #070a05;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--lime);
  color: #070a05;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.accent {
  color: var(--lime);
}

.muted {
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #080b05;
}

.btn--primary:hover {
  background: #d7ff75;
  border-color: #d7ff75;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--lime-line);
  color: var(--lime);
}

.btn--sm {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 12.5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.text-link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--lime);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.text-btn:hover {
  color: var(--text);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 11, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 30px;
  height: 30px;
  color: var(--lime);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand__text em {
  font-style: normal;
  color: var(--lime);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--lime);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

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

.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  color: var(--lime);
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
}

.menu-btn .icon--close {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon--menu {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon--close {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 46px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow__divider {
  color: var(--faint);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(201, 255, 74, 0.5);
  animation: dot-pulse 2.4s ease-out infinite;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 6.4vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero__lede {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 590px;
  margin-top: 30px;
  padding: 7px 7px 7px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within {
  border-color: var(--lime-line);
  box-shadow: 0 0 0 4px rgba(201, 255, 74, 0.08);
}

.hero-search__icon {
  color: var(--faint);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.hero-search input::placeholder {
  color: var(--faint);
}

.hero-search .btn {
  flex: 0 0 auto;
}

.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quick-tags__label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-tag {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-tag:hover {
  color: var(--lime);
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
}

.hero__stats > div {
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.hero__stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero__stats dt {
  margin-bottom: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero__stats dd {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* ---------- Radar visual ---------- */

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.radar {
  position: relative;
  width: min(100%, 424px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 255, 74, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 255, 74, 0.07) 0%, rgba(201, 255, 74, 0.015) 42%, transparent 68%),
    #070b0f;
  box-shadow: inset 0 0 90px rgba(201, 255, 74, 0.04), 0 40px 90px rgba(0, 0, 0, 0.35);
  /* The dial clips the rotating sweep; the two tags stay outside it so they are
     not cut by the circle's rounded edge. */
  overflow: visible;
}

.radar__dial {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: clip;
}

.radar__ring {
  position: absolute;
  border: 1px solid rgba(201, 255, 74, 0.11);
  border-radius: 50%;
}

.radar__ring--1 { inset: 7%; }
.radar__ring--2 { inset: 22%; }
.radar__ring--3 { inset: 37%; }
.radar__ring--4 { inset: 52%; }

.radar__cross {
  position: absolute;
  background: rgba(201, 255, 74, 0.08);
}

.radar__cross--v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.radar__cross--h {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(201, 255, 74, 0) 0deg, rgba(201, 255, 74, 0.02) 26deg, rgba(201, 255, 74, 0.24) 58deg, rgba(201, 255, 74, 0.02) 74deg, rgba(201, 255, 74, 0) 96deg);
  animation: radar-sweep 6.5s linear infinite;
}

.radar__sweep::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 255, 74, 0.75), rgba(201, 255, 74, 0));
  transform-origin: left center;
}

.radar__blip {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 255, 74, 0.12), 0 0 14px rgba(201, 255, 74, 0.55);
  animation: blip 3.2s ease-in-out infinite;
}

.radar__blip--1 { top: 28%; left: 63%; animation-delay: 0s; }
.radar__blip--2 { top: 41%; left: 30%; animation-delay: 0.7s; }
.radar__blip--3 { top: 64%; left: 55%; animation-delay: 1.3s; }
.radar__blip--4 { top: 72%; left: 72%; animation-delay: 1.9s; }
.radar__blip--5 { top: 22%; left: 45%; animation-delay: 2.4s; }

.radar__center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(201, 255, 74, 0.7);
}

.radar__tag {
  position: absolute;
  padding: 4px 8px;
  border: 1px solid var(--lime-line);
  border-radius: 999px;
  background: rgba(7, 11, 15, 0.86);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radar__tag--a { top: 13%; left: 8%; }
.radar__tag--b { bottom: 15%; right: 9%; }

.hero__visual-note {
  display: flex;
  justify-content: space-between;
  width: min(100%, 424px);
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section {
  padding: 74px 0;
}

.section--browse {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 40px);
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 300px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

/* ---------- Picks ---------- */

.picks {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
}

.spotlight {
  position: relative;
  min-height: 372px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c1, #6d28d9), var(--c2, #06b6d4));
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.2;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 6, 9, 0.04) 0%, rgba(4, 6, 9, 0.42) 58%, rgba(4, 6, 9, 0.86) 100%);
}

.spotlight__monogram {
  position: absolute;
  top: -22px;
  right: 6px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.1);
  font-size: 196px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  user-select: none;
}

.spotlight__top {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.spotlight__label .icon {
  width: 12px;
  height: 12px;
  stroke-width: 1.8;
}

.spotlight h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.spotlight__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(4, 6, 9, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spotlight__score {
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.spotlight h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.045em;
}

.spotlight__tagline {
  max-width: 420px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.spotlight__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.spotlight__meta span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
}

/* The hero's deadline pill: same amber language as the small flags, but it has
   to hold its own against the bordered pills beside it. Two classes deep so it
   beats `.spotlight__meta span` without !important. */
.spotlight__meta .ends-flag {
  margin-left: 0;
  border-color: rgba(255, 182, 72, 0.42);
  background: rgba(255, 182, 72, 0.12);
  color: var(--amber);
  font-size: 10px;
}

.spotlight__meta .ends-flag--over {
  border-color: rgba(255, 255, 255, 0.18);
  background: none;
  color: var(--faint);
  text-decoration: line-through;
}

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

.spotlight__actions .btn--primary {
  background: #fff;
  border-color: #fff;
  color: #0a0d12;
}

.spotlight__actions .btn--primary:hover {
  background: var(--lime);
  border-color: var(--lime);
}

.spotlight__link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.spotlight__link:hover {
  color: #fff;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  padding: 10px 20px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.leaderboard__head {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leaderboard__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard__item {
  border-bottom: 1px solid var(--line);
}

.leaderboard__item:last-child {
  border-bottom: 0;
}

.leaderboard__link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}

.leaderboard__rank {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.leaderboard__item:first-child .leaderboard__rank {
  color: var(--lime);
}

.leaderboard__content {
  min-width: 0;
}

.leaderboard__title {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard__sub {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  color: var(--faint);
  font-size: 10.5px;
}

/* Same rule as the card: a flex container drops text-overflow, so the
   ellipsis has to sit on the text span, never on the flag. */
.leaderboard__sub-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard__bar {
  height: 2px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.leaderboard__bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(201, 255, 74, 0.4), var(--lime));
}

.leaderboard__score {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
}

.leaderboard__link:hover .leaderboard__title {
  color: var(--lime);
}

/* ---------- Filters ---------- */

.filter-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.filter-panel__top {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0f15;
  color: var(--faint);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search:focus-within {
  border-color: var(--lime-line);
  box-shadow: 0 0 0 3px rgba(201, 255, 74, 0.07);
}

.filter-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.filter-search input::placeholder {
  color: var(--faint);
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.select-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.select-wrap > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.select-wrap select {
  height: 46px;
  min-width: 148px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: #0a0f15;
  color: var(--text);
  font-size: 12.5px;
  transition: border-color 0.2s ease;
}

.select-wrap select:hover {
  border-color: var(--line-strong);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 14px;
}

.filter-row__label {
  flex: 0 0 64px;
  padding-top: 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0a0f15;
}

.segmented button {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button.is-active {
  background: var(--lime);
  color: #080b05;
  font-weight: 600;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip.is-active {
  border-color: var(--lime-line);
  background: var(--lime-soft);
  color: var(--lime);
}

.chip--all.is-active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 16px;
}

.results-bar p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ---------- Game cards ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  min-width: 0;
}

.game-card__link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card__link:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 255, 74, 0.34);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

.game-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c1, #1f2937), var(--c2, #0f172a));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
}

.game-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 9, 0) 35%, rgba(4, 6, 9, 0.55) 100%);
}

.game-card__monogram {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.game-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid rgba(201, 255, 74, 0.3);
  border-radius: 999px;
  background: rgba(5, 8, 11, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card__badge--keep {
  border-color: rgba(255, 182, 72, 0.38);
  color: var(--amber);
}

.game-card__score {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 8, 11, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
}

.game-card__score span {
  color: var(--faint);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.game-card__platforms {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.game-card__platforms span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(5, 8, 11, 0.5);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.game-card__body {
  padding: 14px 15px 16px;
}

.game-card__genres {
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-card__title {
  margin: 5px 0 3px;
  overflow: hidden;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
}

/* The ellipsis has to live on the text span: a flex container ignores
   text-overflow, and the deadline flag must never be the part that gets cut. */
.game-card__meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Shared look for every "Ends 3 Dec" flag. Components only set where it sits. */
.ends-flag {
  flex: none;
  margin-left: auto;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ends-flag--over {
  color: var(--faint);
  text-decoration: line-through;
}

.game-card__link:hover .game-card__title {
  color: var(--lime);
}

.game-grid--library {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empty-state {
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  text-align: center;
}

.empty-state__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  color: var(--faint);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.load-more-wrap[hidden] {
  display: none;
}

/* ---------- Manifesto ---------- */

.section--manifesto {
  border-top: 1px solid var(--line);
}

.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.manifesto h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.manifesto__copy p:last-child {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.manifesto__points {
  display: grid;
  gap: 0;
}

.point {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.point:first-child {
  padding-top: 0;
  border-top: 0;
}

.point__num {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.point h3 {
  margin: 6px 0 6px;
  font-size: 16px;
}

.point p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Page hero ---------- */

.page-hero {
  padding: 62px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 5.6vw, 68px);
  letter-spacing: -0.05em;
}

.page-hero__lede {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-hero__stat {
  flex: 0 0 auto;
  padding: 0 0 8px 28px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.page-hero__stat span {
  display: block;
  color: var(--lime);
  font-size: 62px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.page-hero__stat p {
  margin: 8px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section--library {
  padding-top: 40px;
}

/* ---------- Detail ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--lime);
}

.breadcrumb span[aria-current] {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-shell {
  padding: 24px 0 84px;
}

.detail-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 80px 0;
  color: var(--muted);
  font-size: 13px;
}

.loader {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) 214px;
  gap: 34px;
  align-items: start;
}

.detail-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c1, #1f2937), var(--c2, #0f172a));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.2;
}

.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 6, 9, 0.6) 100%);
}

.detail-cover__monogram {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(90px, 11vw, 150px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.09em;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.28);
  user-select: none;
}

.detail-cover__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 8, 11, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-body {
  padding-top: 6px;
}

.detail-body h1 {
  margin: 4px 0 10px;
  font-size: clamp(40px, 5.2vw, 64px);
  letter-spacing: -0.055em;
}

.detail-tagline {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* The original English title, printed under a localized one. Mono + caps so it
   reads as a store label rather than a second heading competing with the h1. */
.detail-title-alt {
  margin: -4px 0 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.badge {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--lime {
  border-color: var(--lime-line);
  background: var(--lime-soft);
  color: var(--lime);
}

.badge--amber {
  border-color: rgba(255, 182, 72, 0.34);
  background: rgba(255, 182, 72, 0.09);
  color: var(--amber);
}

.badge--closed {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  text-decoration: line-through;
}

.detail-desc {
  margin-bottom: 26px;
  color: #c1cad6;
  font-size: 14.5px;
  line-height: 1.72;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-score {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.score-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) calc(var(--score, 0) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--surface);
}

.score-ring span {
  position: relative;
  z-index: 1;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.detail-score > p {
  margin: 0 0 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.detail-meta {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.detail-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.detail-meta dt {
  flex: none;
  color: var(--faint);
  font-size: 10.5px;
  white-space: nowrap;
}

.detail-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 11px;
  text-align: right;
}

.detail-meta dd span {
  display: block;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 48px;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin-bottom: 20px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.highlight-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: #c1cad6;
  font-size: 14px;
}

.highlight-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.highlight-list .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--lime);
}

.detail-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.callout {
  padding: 20px;
  border: 1px solid var(--lime-line);
  border-radius: 18px;
  background: var(--lime-soft);
}

.callout h3 {
  margin-bottom: 8px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.callout p {
  margin: 0;
  color: #c8d3b4;
  font-size: 13.5px;
  line-height: 1.6;
}

.tag-block h3 {
  margin-bottom: 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tag-block__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-block__items span,
.tag-block__items a {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tag-block__items a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

/* Cross-links at the foot of genre / platform landing pages */
.collection-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.collection-links h2 {
  margin: 0 0 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.collection-links .tag-block__items {
  gap: 8px;
}

/* The home page wraps this block in its own section, so the extra top spacing
   used at the foot of genre pages would read as dead space there. */
.section--facets {
  padding: 0 0 74px;
}

.section--facets .collection-links {
  margin-top: 0;
}

a.badge:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.detail-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.detail-related .section-head {
  margin-bottom: 22px;
}

.game-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-error {
  padding: 90px 0;
  text-align: center;
}

.detail-error h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 56px);
}

.detail-error p {
  margin-bottom: 24px;
  color: var(--muted);
}

.noscript-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- About ---------- */

.page-hero--about {
  padding-bottom: 52px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

.about-block {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.about-block h2 {
  margin-bottom: 14px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.about-block p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.about-block strong {
  color: var(--text);
  font-weight: 500;
}

.about-block code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
}

.about-block a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c1cad6;
  font-size: 13.5px;
}

.check-list .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--lime);
}

.section--cta {
  padding-top: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 180px at 85% 50%, rgba(201, 255, 74, 0.1), transparent 70%),
    var(--surface);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 26px;
  border-top: 1px solid var(--line);
  background: #05070a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 310px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--faint);
  font-size: 10.5px;
}

.footer-bottom .mono {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.site-footer--mini {
  padding: 26px 0;
}

/* ---------- 404 ---------- */

.lost-main {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 60px 0;
}

.lost {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lost__radar {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 26px;
  border: 1px solid rgba(201, 255, 74, 0.16);
  border-radius: 50%;
  background: #070b0f;
  overflow: hidden;
}

.lost__radar .radar__ring--1 { inset: 12%; }
.lost__radar .radar__ring--2 { inset: 30%; }
.lost__radar .radar__ring--3 { inset: 46%; }
.lost__radar .radar__sweep { animation-duration: 4s; }

.lost h1 {
  margin-bottom: 10px;
  font-size: clamp(44px, 7vw, 72px);
  letter-spacing: -0.055em;
}

.lost__copy {
  max-width: 420px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14.5px;
}

.lost__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- Motion ---------- */

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

@keyframes blip {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  18% { opacity: 1; transform: scale(1.15); }
  40% { opacity: 0.55; transform: scale(0.95); }
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 255, 74, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(201, 255, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 255, 74, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .game-grid,
  .game-grid--library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .detail-score {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: center;
    gap: 24px;
  }

  .detail-score .score-ring {
    margin: 0;
  }

  .detail-score > p {
    display: none;
  }

  .detail-meta {
    border-top: 0;
  }

  .detail-meta > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    order: 2;
  }

  .radar {
    width: min(100%, 360px);
  }

  .hero__visual-note {
    width: min(100%, 360px);
  }

  .picks {
    grid-template-columns: 1fr;
  }

  .spotlight {
    min-height: 330px;
  }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 40px, 1180px);
  }

  .header-inner {
    gap: 16px;
    height: 66px;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 12, 16, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

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

  .menu-btn {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-note {
    max-width: 100%;
    text-align: left;
  }

  .page-hero__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .page-hero__stat {
    padding: 0 0 0 20px;
    text-align: left;
  }

  .filter-panel__top {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-selects {
    width: 100%;
  }

  .select-wrap {
    flex: 1;
  }

  .select-wrap select {
    width: 100%;
    min-width: 0;
  }

  .filter-row {
    flex-direction: column;
    gap: 8px;
  }

  .filter-row__label {
    flex: none;
    padding-top: 0;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-score {
    grid-column: auto;
    grid-template-columns: 100px 1fr;
  }

  .score-ring {
    width: 100px;
    height: 100px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

  .game-grid--related {
    grid-template-columns: 1fr;
  }

  .detail-related .section-head {
    margin-bottom: 16px;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .hero__stats > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-search {
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .hero-search input {
    width: calc(100% - 40px);
    flex: 1 0 60%;
  }

  .hero-search .btn {
    width: 100%;
  }

  .filter-selects {
    flex-direction: column;
  }

  .segmented {
    width: 100%;
    justify-content: space-between;
  }

  .segmented button {
    flex: 1;
    padding: 7px 8px;
    text-align: center;
  }

  .chip-row {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }

  .manifesto h2 {
    font-size: 36px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 54px);
  }

  .hero__lede {
    font-size: 14.5px;
  }

  .game-grid,
  .game-grid--library {
    grid-template-columns: 1fr;
  }

  .game-card__cover {
    aspect-ratio: 16 / 10;
  }

  .game-card__monogram {
    font-size: 76px;
  }

  .spotlight {
    min-height: 300px;
    padding: 24px;
  }

  .spotlight__monogram {
    font-size: 150px;
  }

  .page-hero {
    padding-top: 44px;
  }

  .page-hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .page-hero__stat span {
    font-size: 48px;
  }

  .detail-body h1 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .detail-score {
    grid-template-columns: 88px 1fr;
    padding: 16px;
  }

  .score-ring {
    width: 88px;
    height: 88px;
  }

  .score-ring span {
    font-size: 27px;
  }

  .cta-band {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------------- */
/* Language switch + Chinese typography                                       */
/* ------------------------------------------------------------------------- */

/* Sits between the search icon and the primary CTA. Small, outlined, and
   labelled in the language it switches to, which is the only label that makes
   sense to a reader who cannot read the current one. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  border-color: var(--lime-line);
  color: var(--text);
}

/* Latin keeps the system UI stack; hanzi falls through to a real CJK face
   instead of the browser's default serif or a synthetic oblique. */
html[lang="zh-Hans"] body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  line-height: 1.72;
  letter-spacing: 0.01em;
}

/* The display type uses tight negative tracking — a Latin device. At -0.03em
   hanzi start to collide, so the Chinese tree resets it and opens the leading. */
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] .brand__text,
html[lang="zh-Hans"] .hero__copy h1,
html[lang="zh-Hans"] .page-hero h1 {
  letter-spacing: 0;
}

html[lang="zh-Hans"] h1 {
  line-height: 1.24;
}

html[lang="zh-Hans"] h2 {
  line-height: 1.34;
}

/* Small labels carry 0.1em+ of tracking for Latin caps; hanzi only needs a hint. */
html[lang="zh-Hans"] .eyebrow,
html[lang="zh-Hans"] .filter-row__label,
html[lang="zh-Hans"] .leaderboard__head,
html[lang="zh-Hans"] .ends-flag,
html[lang="zh-Hans"] .spotlight__score,
html[lang="zh-Hans"] .hero__visual-note .mono {
  letter-spacing: 0.04em;
}

html[lang="zh-Hans"] .detail-desc,
html[lang="zh-Hans"] .page-hero__lede,
html[lang="zh-Hans"] .hero__lede,
html[lang="zh-Hans"] .about-block p,
html[lang="zh-Hans"] .manifesto p {
  line-height: 1.85;
}

@media (max-width: 560px) {
  .lang-switch {
    height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }
}

/* Keep a highlighted phrase such as 免费拥有 from breaking across two lines —
   the lime run reads as two separate words when the line breaks inside it. */
html[lang="zh-Hans"] .about-block strong {
  white-space: nowrap;
}

/* ---- capsule art -------------------------------------------------------
   Steam capsules downloaded by enrich.py. Absolute so the badges, score chip
   and platform chips keep their own stacking; the scrim on ::after is what
   keeps that text legible over a bright screenshot. */
.spotlight__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight--art::before {
  display: none;
}

.spotlight--art::after {
  background: linear-gradient(180deg, rgba(4, 6, 9, 0.2) 0%, rgba(4, 6, 9, 0.64) 56%, rgba(4, 6, 9, 0.93) 100%);
}

.game-card__art,
.detail-cover__art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__cover--art {
  background: var(--surface-2);
}

.game-card__cover--art::before,
.detail-cover--art::before {
  display: none;
}

.game-card__cover--art::after {
  background: linear-gradient(180deg, rgba(4, 6, 9, 0.08) 34%, rgba(4, 6, 9, 0.74) 100%);
}

.detail-cover--art::after {
  background: linear-gradient(180deg, rgba(4, 6, 9, 0) 46%, rgba(4, 6, 9, 0.72) 100%);
}

/* ---- player data strip -------------------------------------------------- */
.detail-players {
  margin-top: 56px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.detail-players .section-head {
  align-items: baseline;
  margin-bottom: 22px;
}

.detail-players h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.03em;
}

.detail-players__stamp {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  margin: 0;
  padding: 18px 20px 20px;
  background: var(--surface);
}

.stat dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.stat dd {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 7px 0 0;
}

.stat__value {
  color: var(--text);
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.stat__note {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

/* Han characters do not want the wide tracking that suits Latin small caps. */
html[lang="zh-Hans"] .stat dt {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
}

html[lang="zh-Hans"] .stat__note {
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .detail-players {
    margin-top: 40px;
    padding-top: 30px;
  }

  .detail-players .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-players__stamp {
    text-align: left;
  }

  .stat {
    padding: 15px 16px 17px;
  }
}
