:root {
  color-scheme: dark;
  --bg: #07070d;
  --surface: rgba(14, 14, 22, 0.78);
  --surface-solid: #101018;
  --surface-high: #181823;
  --line: rgba(164, 142, 184, 0.24);
  --line-strong: rgba(244, 174, 255, 0.4);
  --white: #ececf6;
  --muted: #9a96ad;
  --purple: #b829dd;
  --blue: #00d4ff;
  --green: #39ff14;
  --orange: #ff6b35;
  --pink: #ff00aa;
  --radiation-a: #09205f;
  --radiation-b: #4b126f;
  --radiation-c: #00d4ff;
  --nav-height: 72px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@property --nebula-a-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 16%;
}

@property --nebula-a-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 34%;
}

@property --nebula-b-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 78%;
}

@property --nebula-b-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 32%;
}

@property --nebula-c-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 54%;
}

@property --nebula-c-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 76%;
}

@property --nebula-d-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 36%;
}

@property --nebula-d-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 62%;
}

@property --nebula-e-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 84%;
}

@property --nebula-e-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 66%;
}

@property --nebula-f-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 30%;
}

@property --nebula-f-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
}

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

button,
input {
  font: inherit;
}

main {
  background:
    radial-gradient(circle at 18% 35%, rgba(184, 41, 221, 0.08), transparent 28rem),
    radial-gradient(circle at 82% 64%, rgba(0, 212, 255, 0.08), transparent 30rem),
    var(--bg);
}

.site-nav {
  --nav-glass: rgba(8, 8, 14, 0.82);
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(172px, auto) minmax(420px, 1fr) minmax(300px, auto);
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
  width: 100%;
  min-height: var(--nav-height);
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border: 0;
  border-bottom: 1px solid rgba(164, 142, 184, 0.2);
  border-radius: 0;
  background: var(--nav-glass);
  box-shadow: 0 12px 34px rgba(3, 3, 9, 0.32), 0 1px 18px rgba(184, 41, 221, 0.1);
  backdrop-filter: blur(18px) saturate(1.18);
  isolation: isolate;
}

body:not(.library-body):not(.releases-body):not(.news-body):not(.account-body) .site-nav {
  --nav-glass: rgba(7, 7, 13, 0.7);
}

.site-nav::after {
  position: absolute;
  right: max(24px, calc((100vw - 1320px) / 2));
  bottom: -1px;
  left: max(24px, calc((100vw - 1320px) / 2));
  z-index: -1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent 0%, rgba(184, 41, 221, 0.34) 18%, rgba(0, 212, 255, 0.24) 82%, transparent 100%);
}

.brand {
  position: relative;
  display: inline-grid;
  grid-template-rows: auto auto;
  align-items: center;
  justify-self: start;
  min-width: 166px;
  min-height: 52px;
  padding: 7px 26px 6px 14px;
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1;
  isolation: isolate;
}

.brand::before {
  position: absolute;
  z-index: -1;
  inset: 2px 0;
  content: "";
  border-left: 2px solid var(--purple);
  background: linear-gradient(110deg, rgba(184, 41, 221, 0.13), rgba(0, 212, 255, 0.025) 72%, transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  opacity: 0.82;
  transition: border-color 160ms ease, background 160ms ease;
}

.brand:hover::before,
.brand:focus-visible::before {
  border-left-color: var(--blue);
  background: linear-gradient(110deg, rgba(184, 41, 221, 0.18), rgba(0, 212, 255, 0.08) 72%, transparent);
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.86rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-signal {
  margin-top: 4px;
  color: rgba(154, 150, 173, 0.76);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-blue {
  color: var(--blue);
}

.brand-mark {
  color: #f4aeff;
}

.brand-gradient,
.hero-content h1 span {
  background: linear-gradient(92deg, var(--purple) 8%, #7b58ff 48%, var(--blue) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  position: relative;
  align-self: stretch;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: stretch;
  justify-content: center;
  gap: clamp(17px, 2.25vw, 38px);
  min-width: 0;
  height: var(--nav-height);
  padding-inline: 10px;
  color: var(--muted);
}

.nav-links::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(184, 41, 221, 0.46) 12%, rgba(0, 212, 255, 0.4) 88%, transparent);
}

.nav-links::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(244, 174, 255, 0.9), rgba(0, 212, 255, 0.95), transparent);
  background-repeat: no-repeat;
  background-size: 96px 1px;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.55));
  opacity: 0.42;
  animation: nav-signal-scan 11s linear infinite;
}

.nav-links a {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  align-content: center;
  gap: 8px;
  height: 100%;
  padding: 1px 3px 5px;
  border: 0;
  color: inherit;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-station-number,
.nav-station-code {
  font-family: "JetBrains Mono", monospace;
}

.nav-station-number {
  align-self: start;
  margin-top: 3px;
  color: rgba(154, 150, 173, 0.58);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 160ms ease;
}

.nav-station-copy {
  display: grid;
  gap: 2px;
}

.nav-station-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.nav-station-code {
  color: rgba(154, 150, 173, 0.54);
  font-size: 0.49rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  transition: color 160ms ease;
}

.nav-station-node {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(164, 142, 184, 0.58);
  border-radius: 50%;
  background: #0a0a0f;
  transform: translateX(-50%);
  transition: width 160ms ease, height 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-links a:hover .nav-station-number,
.nav-links a:focus-visible .nav-station-number,
.nav-links a:hover .nav-station-code,
.nav-links a:focus-visible .nav-station-code {
  color: rgba(0, 212, 255, 0.76);
}

.nav-links a:hover .nav-station-node,
.nav-links a:focus-visible .nav-station-node {
  width: 7px;
  height: 7px;
  border-color: var(--blue);
  background: rgba(0, 212, 255, 0.28);
  box-shadow: 0 0 9px rgba(0, 212, 255, 0.72);
}

.nav-links .active {
  color: #f4aeff;
  text-shadow: 0 0 12px rgba(184, 41, 221, 0.34);
}

.nav-links .active .nav-station-number,
.nav-links .active .nav-station-code {
  color: rgba(244, 174, 255, 0.78);
}

.nav-links .active .nav-station-node {
  bottom: -4px;
  width: 9px;
  height: 9px;
  border-color: rgba(244, 174, 255, 0.96);
  border-radius: 2px 2px 5px 5px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 0 6px rgba(244, 174, 255, 0.85), 0 0 15px rgba(0, 212, 255, 0.44);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: clamp(190px, 17vw, 260px);
  height: 42px;
  padding-inline: 12px;
  border: 1px solid rgba(164, 142, 184, 0.3);
  border-radius: 12px;
  background: rgba(25, 25, 37, 0.72);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.search-box::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  content: "";
  border-right: 1px solid rgba(0, 212, 255, 0.54);
  border-bottom: 1px solid rgba(0, 212, 255, 0.54);
  border-radius: 0 0 12px;
  pointer-events: none;
}

.search-box:focus-within {
  border-color: rgba(0, 212, 255, 0.62);
  background: rgba(26, 26, 40, 0.9);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.08), 0 0 18px rgba(0, 212, 255, 0.08);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
}

.login-button,
.button-ghost,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.login-button {
  flex: 0 0 82px;
  width: 82px;
  min-width: 82px;
  max-width: 172px;
  padding-inline: 0;
  border: 1px solid rgba(244, 174, 255, 0.72);
  background: linear-gradient(110deg, rgba(184, 41, 221, 0.11), rgba(0, 212, 255, 0.025));
  color: #f4aeff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.login-button:hover,
.login-button:focus-visible {
  border-color: var(--blue);
  background: linear-gradient(110deg, rgba(184, 41, 221, 0.17), rgba(0, 212, 255, 0.09));
  color: var(--white);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.13);
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-button.is-authenticated {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin-inline: 19px;
  padding: 3px;
  border: 1px solid transparent;
  background: linear-gradient(#101018, #101018) padding-box, conic-gradient(from 215deg, var(--purple), var(--blue), var(--purple)) border-box;
  color: var(--blue);
  box-shadow: 0 0 13px rgba(0, 212, 255, 0.17), 0 0 20px rgba(184, 41, 221, 0.1);
}

.login-button.is-authenticated:hover,
.login-button.is-authenticated:focus-visible,
.login-button.is-authenticated[aria-expanded="true"] {
  box-shadow: 0 0 11px rgba(0, 212, 255, 0.44), 0 0 23px rgba(184, 41, 221, 0.24);
}

.login-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(8, 8, 14, 0.9);
  border-radius: 50%;
  object-fit: cover;
}

.login-avatar-fallback {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(5, 5, 10, 0.88);
}

.login-avatar-fallback::before,
.login-avatar-fallback::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
  background: currentColor;
}

.login-avatar-fallback::before {
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.login-avatar-fallback::after {
  bottom: 6px;
  width: 20px;
  height: 11px;
  border-radius: 11px 11px 7px 7px;
}

.login-button[data-auth-state="initializing"] {
  visibility: hidden;
}

.login-button[data-auth-state="unconfigured"] {
  opacity: 0.88;
}

.menu-button {
  display: none;
  align-content: center;
  justify-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(164, 142, 184, 0.35);
  border-radius: 10px;
  background: rgba(18, 18, 26, 0.78);
  color: #f4aeff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav[data-open="true"] .menu-button span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav[data-open="true"] .menu-button span:nth-child(2) {
  opacity: 0;
}

.site-nav[data-open="true"] .menu-button span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@keyframes nav-signal-scan {
  from { background-position: -110px 0; }
  to { background-position: calc(100% + 110px) 0; }
}
.page {
  position: relative;
  min-height: 100svh;
  scroll-margin-top: 92px;
}

.hero-page {
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 56px) 24px 64px;
}

.arcade-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 115%, rgba(0, 212, 255, 0.045), transparent 44%),
    #05050a;
}

.arcade-background::before,
.arcade-background::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190vmax;
  height: 190vmax;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: 50% 50%;
  background-repeat: no-repeat;
  will-change: transform, background-position, background-size, opacity;
}

.arcade-background::before {
  z-index: 0;
  opacity: var(--nebula-core-opacity, 0.76);
  filter: blur(var(--nebula-core-blur, 18px)) saturate(var(--nebula-saturation, 1.34));
  background:
    radial-gradient(ellipse 34% 25% at var(--nebula-a-x) var(--nebula-a-y), color-mix(in srgb, var(--radiation-a) 78%, transparent), transparent 70%),
    radial-gradient(ellipse 32% 24% at var(--nebula-b-x) var(--nebula-b-y), color-mix(in srgb, var(--radiation-b) 72%, transparent), transparent 72%),
    radial-gradient(ellipse 28% 21% at var(--nebula-c-x) var(--nebula-c-y), rgba(0, 212, 255, 0.25), transparent 74%),
    radial-gradient(ellipse 22% 18% at var(--nebula-d-x) var(--nebula-d-y), rgba(244, 174, 255, 0.14), transparent 72%),
    radial-gradient(ellipse 21% 17% at var(--nebula-e-x) var(--nebula-e-y), rgba(0, 212, 255, 0.13), transparent 73%),
    radial-gradient(ellipse 20% 15% at var(--nebula-f-x) var(--nebula-f-y), rgba(57, 255, 20, 0.055), transparent 74%),
    linear-gradient(135deg, rgba(4, 10, 26, 0.96), rgba(9, 4, 18, 0.97));
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  animation: nebula-flow var(--nebula-flow-duration, 72s) linear infinite;
}

.arcade-background::after {
  z-index: 1;
  opacity: var(--nebula-ribbon-opacity, 0.24);
  filter: blur(var(--nebula-ribbon-blur, 32px)) saturate(var(--nebula-saturation, 1.34));
  background:
    radial-gradient(ellipse 36% 11% at var(--nebula-c-x) var(--nebula-d-y), rgba(0, 212, 255, 0.18), transparent 75%),
    radial-gradient(ellipse 30% 10% at var(--nebula-b-x) var(--nebula-e-y), rgba(184, 41, 221, 0.18), transparent 76%),
    radial-gradient(ellipse 22% 11% at var(--nebula-d-x) var(--nebula-c-y), rgba(244, 174, 255, 0.13), transparent 78%),
    radial-gradient(ellipse 19% 9% at var(--nebula-a-x) var(--nebula-b-y), rgba(9, 32, 95, 0.34), transparent 74%),
    radial-gradient(ellipse 17% 8% at var(--nebula-e-x) var(--nebula-d-y), rgba(0, 212, 255, 0.11), transparent 76%),
    radial-gradient(ellipse 17% 8% at var(--nebula-f-x) var(--nebula-f-y), rgba(57, 255, 20, 0.055), transparent 76%);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  mix-blend-mode: screen;
  animation: nebula-ribbon var(--nebula-ribbon-duration, 96s) linear infinite;
}

.arcade-background canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes nebula-flow {
  0% {
    --nebula-a-x: 13%;
    --nebula-a-y: 34%;
    --nebula-b-x: 82%;
    --nebula-b-y: 28%;
    --nebula-c-x: 52%;
    --nebula-c-y: 78%;
    --nebula-d-x: 35%;
    --nebula-d-y: 62%;
    --nebula-e-x: 86%;
    --nebula-e-y: 68%;
    --nebula-f-x: 30%;
    --nebula-f-y: 18%;
    transform: translate3d(-50.6%, -50.2%, 0) scale(1.025);
  }

  17% {
    --nebula-a-x: 21%;
    --nebula-a-y: 40%;
    --nebula-b-x: 76%;
    --nebula-b-y: 34%;
    --nebula-c-x: 60%;
    --nebula-c-y: 70%;
    --nebula-d-x: 40%;
    --nebula-d-y: 68%;
    --nebula-e-x: 78%;
    --nebula-e-y: 60%;
    --nebula-f-x: 26%;
    --nebula-f-y: 26%;
    transform: translate3d(-50.2%, -49.8%, 0) scale(1.045);
  }

  34% {
    --nebula-a-x: 30%;
    --nebula-a-y: 48%;
    --nebula-b-x: 64%;
    --nebula-b-y: 42%;
    --nebula-c-x: 68%;
    --nebula-c-y: 62%;
    --nebula-d-x: 48%;
    --nebula-d-y: 72%;
    --nebula-e-x: 70%;
    --nebula-e-y: 52%;
    --nebula-f-x: 36%;
    --nebula-f-y: 34%;
    transform: translate3d(-49.9%, -49.6%, 0) scale(1.06);
  }

  50% {
    --nebula-a-x: 34%;
    --nebula-a-y: 58%;
    --nebula-b-x: 58%;
    --nebula-b-y: 54%;
    --nebula-c-x: 62%;
    --nebula-c-y: 56%;
    --nebula-d-x: 54%;
    --nebula-d-y: 60%;
    --nebula-e-x: 66%;
    --nebula-e-y: 46%;
    --nebula-f-x: 44%;
    --nebula-f-y: 42%;
    transform: translate3d(-49.6%, -50%, 0) scale(1.07);
  }

  67% {
    --nebula-a-x: 24%;
    --nebula-a-y: 62%;
    --nebula-b-x: 70%;
    --nebula-b-y: 38%;
    --nebula-c-x: 50%;
    --nebula-c-y: 82%;
    --nebula-d-x: 56%;
    --nebula-d-y: 52%;
    --nebula-e-x: 82%;
    --nebula-e-y: 74%;
    --nebula-f-x: 32%;
    --nebula-f-y: 40%;
    transform: translate3d(-50.1%, -50.4%, 0) scale(1.052);
  }

  84% {
    --nebula-a-x: 16%;
    --nebula-a-y: 50%;
    --nebula-b-x: 80%;
    --nebula-b-y: 28%;
    --nebula-c-x: 42%;
    --nebula-c-y: 78%;
    --nebula-d-x: 46%;
    --nebula-d-y: 54%;
    --nebula-e-x: 88%;
    --nebula-e-y: 70%;
    --nebula-f-x: 34%;
    --nebula-f-y: 24%;
    transform: translate3d(-50.4%, -50.3%, 0) scale(1.04);
  }

  100% {
    --nebula-a-x: 13%;
    --nebula-a-y: 34%;
    --nebula-b-x: 82%;
    --nebula-b-y: 28%;
    --nebula-c-x: 52%;
    --nebula-c-y: 78%;
    --nebula-d-x: 35%;
    --nebula-d-y: 62%;
    --nebula-e-x: 86%;
    --nebula-e-y: 68%;
    --nebula-f-x: 30%;
    --nebula-f-y: 18%;
    transform: translate3d(-50.6%, -50.2%, 0) scale(1.025);
  }
}

@keyframes nebula-ribbon {
  0% {
    transform: translate3d(-50.8%, -49.8%, 0) scale(1.02) skewX(-1.2deg);
    opacity: var(--nebula-ribbon-opacity, 0.24);
  }

  25% {
    transform: translate3d(-50.1%, -50.4%, 0) scale(1.05) skewX(0.8deg);
    opacity: calc(var(--nebula-ribbon-opacity, 0.24) + 0.025);
  }

  50% {
    transform: translate3d(-49.5%, -50.6%, 0) scale(1.07) skewX(1.4deg);
    opacity: calc(var(--nebula-ribbon-opacity, 0.24) + 0.035);
  }

  75% {
    transform: translate3d(-49.7%, -49.9%, 0) scale(1.045) skewX(-0.6deg);
    opacity: calc(var(--nebula-ribbon-opacity, 0.24) + 0.015);
  }

  100% {
    transform: translate3d(-50.8%, -49.8%, 0) scale(1.02) skewX(-1.2deg);
    opacity: var(--nebula-ribbon-opacity, 0.24);
  }
}

.bg-debug-panel {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100vw - 36px));
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(244, 174, 255, 0.42);
  border-radius: 8px;
  background: rgba(10, 10, 16, 0.88);
  box-shadow: 0 0 32px rgba(184, 41, 221, 0.22);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  backdrop-filter: blur(18px);
}

.bg-debug-panel[hidden] {
  display: none;
}

.bg-debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #f4aeff;
  font-weight: 800;
}

.bg-debug-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(244, 174, 255, 0.38);
  border-radius: 999px;
  background: rgba(244, 174, 255, 0.08);
  color: #f4aeff;
  cursor: pointer;
}

.bg-debug-group {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(164, 142, 184, 0.18);
}

.bg-debug-group strong {
  color: var(--blue);
  font-size: 0.72rem;
}

.bg-debug-row {
  display: grid;
  grid-template-columns: 1fr minmax(110px, 46%);
  align-items: center;
  gap: 10px;
}

.bg-debug-row input {
  min-width: 0;
  accent-color: var(--blue);
}

.bg-debug-row input[type="color"] {
  width: 100%;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(164, 142, 184, 0.32);
  border-radius: 6px;
  background: transparent;
}

#arcade-tuner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: none;
  width: min(370px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: 8px;
  background: rgba(10, 10, 15, 0.9);
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.18);
  color: var(--white);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  backdrop-filter: blur(16px);
}

#arcade-tuner[data-open="true"] {
  display: block;
}

#arcade-tuner label {
  display: grid;
  grid-template-columns: 120px 1fr 52px;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: #cfcbe0;
}

#arcade-tuner input,
#arcade-tuner select {
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(158, 139, 158, 0.3);
  border-radius: 6px;
  background: rgba(31, 31, 37, 0.85);
  color: var(--white);
  accent-color: var(--blue);
}

.hero-content {
  width: min(900px, 100%);
  text-align: center;
  transform: translateY(4vh);
}

.hero-content h1 {
  display: grid;
  gap: 4px;
  margin: 0 0 28px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 6.4rem;
  font-weight: 700;
  line-height: 0.94;
}

.hero-content h1 span {
  white-space: nowrap;
}

.hero-content p {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.75;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.button-primary,
.button-ghost {
  padding-inline: 30px;
  border: 1px solid transparent;
}

.button-primary {
  padding-inline: 31px;
  border: 0;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  color: var(--white);
  box-shadow:
    -7px 0 22px rgba(184, 41, 221, 0.3),
    7px 0 22px rgba(0, 212, 255, 0.28),
    0 0 15px rgba(123, 88, 255, 0.18);
}

.button-ghost {
  border-color: #f4aeff;
  color: #f4aeff;
  background: rgba(12, 12, 18, 0.42);
  box-shadow:
    0 0 20px rgba(244, 174, 255, 0.24),
    inset 0 0 14px rgba(184, 41, 221, 0.07);
}

.news-page {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 13, 0.98), rgba(11, 11, 18, 0.96)),
    radial-gradient(circle at 80% 10%, rgba(255, 107, 53, 0.08), transparent 24rem);
}

.timeline-module,
.home-game-module,
.news-module,
.weekly-module,
.site-info-module {
  position: relative;
  z-index: 1;
  padding-inline: clamp(20px, 5vw, 72px);
}

.home-game-module {
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 38svh;
  padding-block: 48px;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 24%, rgba(0, 212, 255, 0.08), transparent 26rem),
    rgba(11, 11, 17, 0.82);
}

.timeline-module {
  display: grid;
  grid-template-columns: 310px 1fr;
  align-items: center;
  gap: 28px;
  overflow: visible;
  border-block: 1px solid var(--line);
  background: rgba(11, 11, 17, 0.82);
}

.module-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.module-heading.compact {
  margin-bottom: 0;
}

.module-heading p {
  margin: 0;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.module-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2.65rem;
  line-height: 1;
}

.section-link {
  width: fit-content;
  margin-top: 6px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-link:hover {
  color: #f4aeff;
}

.home-module-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.home-module-header .module-heading {
  margin-bottom: 0;
}

.home-module-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.home-module-meta .section-link {
  margin-top: 0;
}

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

.home-game-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(184, 41, 221, 0.07), transparent 55%),
    rgba(20, 20, 30, 0.72);
  transition: transform 180ms ease, border-color 180ms ease;
}

.home-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.home-game-status {
  width: fit-content;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.home-game-card h3,
.home-game-card p {
  margin: 0;
}

.home-game-card h3 {
  color: var(--white);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
}

.home-game-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-game-card small {
  color: #aaa4b8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
}

.home-game-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.home-module-state {
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 180px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: rgba(20, 20, 30, 0.42);
  text-align: left;
}

.home-module-state:not([hidden]) {
  display: flex;
}

.home-module-state > span {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.6rem;
}

.home-module-state[data-state="loading"] > span {
  animation: home-content-orbit 900ms linear infinite;
}

.home-module-state[data-state="error"] > span {
  color: var(--orange);
}

.home-module-state strong {
  color: var(--white);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
}

.home-module-state p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-module-state button {
  min-height: 38px;
  padding-inline: 16px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  background: rgba(184, 41, 221, 0.08);
  color: #f4aeff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

@keyframes home-content-orbit {
  to { transform: rotate(360deg); }
}

.timeline-track {
  position: relative;
  height: min(230px, 28svh);
  min-height: 205px;
  overflow: visible;
}

.timeline-track svg {
  position: absolute;
  inset: 50% 0 auto;
  width: 100%;
  height: 120px;
  transform: translateY(-50%);
  overflow: visible;
}

.timeline-track path {
  fill: none;
  stroke: rgba(184, 41, 221, 0.48);
  stroke-width: 5;
  stroke-dasharray: 14 14;
}

.timeline-event {
  --tone: var(--blue);
  position: absolute;
  left: var(--x);
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 130px;
  transform: translateX(-50%);
  text-align: center;
}

.event-top {
  top: 20px;
}

.event-bottom {
  bottom: 12px;
}

.event-dot {
  width: 18px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--tone);
  box-shadow: 0 0 20px var(--tone);
}

.timeline-event.large .event-dot {
  width: 30px;
}

.timeline-event time {
  color: var(--tone);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.timeline-event strong {
  color: var(--white);
  font-size: 0.88rem;
  line-height: 1.2;
}

.news-module {
  display: grid;
  align-content: center;
  min-height: 66svh;
  padding-block: 42px 56px;
}

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

.news-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 20, 30, 0.72);
  backdrop-filter: blur(14px);
}

.news-card:hover,
.release-card:hover,
.source-list span:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.card-meta span {
  color: #f4aeff;
}

.news-card h3,
.news-card p {
  margin: 0;
}

.news-card h3 {
  min-height: 62px;
  font-size: 1.04rem;
  line-height: 1.45;
}

.news-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.home-news-card {
  display: flex;
  flex-direction: column;
}

.home-news-card h3 {
  min-height: 0;
}

.home-news-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-news-card footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: #aaa4b8;
  font-size: 0.72rem;
}

.home-news-card footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-card footer a {
  flex: 0 0 auto;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.67rem;
  font-weight: 700;
}

.final-page {
  display: grid;
  grid-template-rows: minmax(50svh, auto) minmax(50svh, auto);
  background:
    radial-gradient(circle at 18% 22%, rgba(184, 41, 221, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 72%, rgba(0, 212, 255, 0.1), transparent 28rem),
    #080810;
}

.weekly-module {
  display: grid;
  align-content: center;
  padding-block: 72px 42px;
}

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

.release-card {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-high);
  transition: transform 180ms ease, border-color 180ms ease;
}

.release-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.release-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 10, 0.92));
}

.release-card > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 22px;
}

.release-card time {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 700;
}

.release-card strong {
  font-size: 1.1rem;
  line-height: 1.25;
}

.home-release-card::before {
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 212, 255, 0.28), transparent 25%),
    radial-gradient(circle at 24% 62%, rgba(184, 41, 221, 0.25), transparent 28%),
    linear-gradient(155deg, #111321, #080810);
}

.home-release-card small {
  color: #bbb5c8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.home-release-card a {
  width: fit-content;
  margin-top: 8px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.cover-cozy::before {
  background:
    radial-gradient(circle at 30% 40%, rgba(57, 255, 20, 0.5), transparent 18%),
    linear-gradient(135deg, #2a1736, #0b3444 55%, #243d18);
}

.cover-neon::before {
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 212, 255, 0.64), transparent 22%),
    radial-gradient(circle at 54% 46%, rgba(255, 107, 53, 0.48), transparent 13%),
    linear-gradient(180deg, #111321, #081018);
}

.cover-minimal::before {
  background:
    linear-gradient(135deg, rgba(244, 174, 255, 0.18), transparent 30%),
    repeating-linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0 2px, transparent 2px 18px),
    #101018;
}

.cover-solar::before {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 107, 53, 0.72), transparent 18%),
    radial-gradient(circle at 60% 50%, rgba(57, 255, 20, 0.28), transparent 28%),
    linear-gradient(180deg, #211018, #07070d);
}

.site-info-module {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 44px 64px;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 14, 0.72);
}

.source-block {
  display: grid;
  align-content: center;
  gap: 24px;
  min-width: 0;
}

.site-info-module .module-heading h2 {
  line-height: 1.12;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.source-list span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 20, 30, 0.72);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease;
}

.site-footer {
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer strong {
  color: var(--white);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.6rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #f4aeff;
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .site-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px;
    gap: 0;
    min-height: 64px;
    padding-inline: 18px;
  }

  .site-nav::after {
    right: 18px;
    left: 18px;
  }

  .site-nav > .brand {
    align-self: center;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .site-nav[data-open="true"] {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px auto auto;
    max-height: 100svh;
    overflow-y: auto;
    background: rgba(8, 8, 14, 0.97);
    box-shadow: 0 18px 44px rgba(3, 3, 9, 0.72), 0 1px 24px rgba(184, 41, 221, 0.16);
  }

  .site-nav[data-open="true"] .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    align-self: auto;
    justify-self: stretch;
    gap: 0;
    width: 100%;
    height: auto;
    padding: 15px 0 14px;
    border-top: 1px solid rgba(164, 142, 184, 0.15);
  }

  .site-nav[data-open="true"] .nav-links::before {
    top: 31px;
    right: auto;
    bottom: 31px;
    left: 19px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(184, 41, 221, 0.54), rgba(0, 212, 255, 0.46));
  }

  .site-nav[data-open="true"] .nav-links::after {
    display: none;
  }

  .site-nav[data-open="true"] .nav-links a {
    grid-template-columns: 28px auto;
    justify-content: start;
    gap: 12px;
    height: 58px;
    padding: 0 14px 0 34px;
    border-bottom: 1px solid rgba(164, 142, 184, 0.075);
  }

  .site-nav[data-open="true"] .nav-links a:last-child {
    border-bottom: 0;
  }

  .site-nav[data-open="true"] .nav-station-number {
    align-self: center;
    margin: 0;
    font-size: 0.62rem;
  }

  .site-nav[data-open="true"] .nav-station-label {
    font-size: 0.94rem;
  }

  .site-nav[data-open="true"] .nav-station-code {
    display: block;
    font-size: 0.52rem;
  }

  .site-nav[data-open="true"] .nav-station-node,
  .site-nav[data-open="true"] .nav-links .active .nav-station-node {
    top: 50%;
    bottom: auto;
    left: 19px;
    transform: translate(-50%, -50%);
  }

  .site-nav[data-open="true"] .nav-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(164, 142, 184, 0.15);
  }

  .site-nav[data-open="true"] .search-box {
    width: 100%;
  }

  .site-nav[data-open="true"] .login-button.is-authenticated {
    margin-inline: 19px;
  }

  .menu-button {
    display: grid;
    justify-self: end;
  }

  .news-grid,
  .release-grid,
  .home-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-nav {
    width: 100%;
    padding-inline: 12px;
  }

  .site-nav::after {
    right: 12px;
    left: 12px;
  }

  .brand {
    min-width: 150px;
    padding-inline: 11px 22px;
  }

  .brand-wordmark {
    font-size: 1.62rem;
  }

  .hero-page {
    padding-inline: 18px;
  }

  .hero-content {
    transform: translateY(2vh);
  }

  .hero-content h1 {
    font-size: 2.65rem;
  }

  .brand-signal {
    font-size: 0.44rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .module-heading h2 {
    font-size: 2rem;
  }

  .news-page,
  .final-page {
    display: block;
  }

  .timeline-module {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 360px;
    padding-block: 100px 42px;
  }

  .timeline-track {
    min-height: 230px;
  }

  .timeline-event {
    min-width: 96px;
  }

  .timeline-event strong {
    font-size: 0.76rem;
  }

  .news-grid,
  .release-grid,
  .home-game-grid,
  .site-info-module {
    grid-template-columns: 1fr;
  }

  .home-game-module,
  .news-module,
  .weekly-module,
  .site-info-module {
    padding-block: 56px;
  }

  .home-module-header {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .home-module-meta {
    justify-items: start;
  }

  .home-module-state:not([hidden]) {
    align-items: start;
    flex-wrap: wrap;
    justify-content: start;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 132px;
    padding-inline: 9px 18px;
  }

  .brand-wordmark {
    font-size: 1.5rem;
  }

  .brand-signal {
    display: none;
  }

  .site-nav[data-open="true"] .nav-actions {
    grid-template-columns: 1fr;
  }

  .site-nav[data-open="true"] .login-button:not(.is-authenticated) {
    width: 100%;
    max-width: none;
  }

  .site-nav[data-open="true"] .login-button.is-authenticated {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-game-card {
    transition: none;
  }

  .home-module-state[data-state="loading"] > span {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links::after {
    animation: none;
  }

  .brand::before,
  .nav-links a,
  .nav-station-number,
  .nav-station-code,
  .nav-station-node,
  .search-box,
  .login-button,
  .menu-button span {
    transition: none;
  }
}

.library-body .site-nav,
.releases-body .site-nav,
.news-body .site-nav {
  opacity: 1 !important;
  transition: none !important;
  will-change: auto !important;
}

/* Server-rendered directory links supplement interactive content lists. */
.content-directory { max-width: 1200px; margin: 24px auto; padding: 16px; border-top: 1px solid #373243; line-height: 1.8; }
.content-directory summary { cursor: pointer; }
.content-directory ul { columns: 2 260px; padding-left: 24px; }
.content-directory li { break-inside: avoid; overflow-wrap: anywhere; }
.scoped-content-search { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:18px 0; }
.scoped-content-search label { display:flex; flex:1 1 260px; gap:10px; align-items:center; color:var(--text-muted,#aaa6bb); }
.scoped-content-search input { flex:1; min-width:0; padding:12px; border:1px solid #494156; border-radius:10px; background:#11101a; color:#f4f0ff; }
.scoped-content-search button { padding:10px 14px; border:1px solid #625173; border-radius:10px; background:#25162f; color:#f4e1ff; cursor:pointer; }
.scoped-search-chips { flex-basis:100%; display:flex; flex-wrap:wrap; gap:8px; }
.game-follow-button { padding:10px 20px; border:1px solid #ca80dc; border-radius:22px; background:#24102e; color:#f1cbff; cursor:pointer; }
.player-filter-fields { display:grid; gap:12px; padding:16px 0; border:0; border-top:1px solid #332d40; }
.player-filter-fields label { display:grid; gap:6px; }
.player-filter-fields select { max-width:100%; min-width:0; padding:8px; background:#14121c; border:1px solid #44374f; border-radius:8px; color:#ede7f7; }
.player-filter-fields small { color:#aaa0b5; }
.home-game-card { padding: 0; gap: 0; overflow: hidden; }
.home-game-card .home-game-art { position: relative; display: block; width: 100%; aspect-ratio: 16/9; margin: 0; overflow: hidden; background: #151221; }
.home-game-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-game-art .home-game-status { position: absolute; right: 12px; top: 12px; padding: 5px 8px; color: #88ffb1; background: #080910d9; border: 1px solid #ffffff20; border-radius: 5px; }
.home-game-copy { padding: 18px; }
.home-game-card .home-game-title { display: block; margin: 0; width: auto; color: var(--white); font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.home-game-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.home-game-tags .tag-chip { color: #d3c8df; background: #241f2c; padding: 4px 8px; border-radius: 5px; font-size: .75rem; }
.home-game-art-empty { display: grid; place-items: center; height: 100%; padding: 24px; background: linear-gradient(120deg,#351d40,#112b35); color: #e7ddec; font-size: 1.5rem; text-align: center; }

/* Home collections use readable card sizes rather than stretching to the viewport. */
[data-module="home-content"] .news-page,
[data-module="home-content"] .final-page { min-height: 0; }
[data-module="home-content"] .final-page { grid-template-rows: auto auto; }
[data-module="home-content"] .site-info-module {
  align-items: start;
  gap: 24px;
  padding: 28px max(20px, calc((100% - 1320px) / 2));
}
[data-module="home-content"] .source-block { gap: 12px; }
[data-module="home-content"] .site-info-module .module-heading h2 { font-size: 1.3rem; }
[data-module="home-content"] .source-list { gap: 8px; }
[data-module="home-content"] .source-list span { padding: 6px 9px; font-size: .75rem; }
[data-module="home-content"] .site-footer { gap: 8px; font-size: .875rem; }
[data-module="home-content"] .site-footer strong { font-size: 1.15rem; }
[data-module="home-content"] .home-game-module,
[data-module="home-content"] .news-module,
[data-module="home-content"] .weekly-module {
  min-height: 0;
  padding: 40px max(20px, calc((100% - 1320px) / 2));
}
.home-game-card .home-game-art { aspect-ratio: 460 / 215; }
.home-game-copy { padding: 14px 16px; }
.home-game-card .home-game-title { font-size: 1rem; }
.home-game-tags { margin-top: 10px; }
.home-release-card { grid-template-columns: 100px minmax(0, 1fr); align-items: start; gap: 12px; min-height: 140px; padding: 14px; }
.home-release-card::before, .home-release-card::after { content: none; }
.home-release-card > div { position: relative; padding: 0; min-width: 0; }
.home-release-card .home-release-art { display: block; margin: 0; width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: 5px; }
.home-release-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-release-card .home-release-title { display: block; margin: 8px 0; color: var(--white); font: 700 .95rem/1.4 Inter, sans-serif; overflow-wrap: anywhere; }
.home-release-card:not(:has(.home-release-art)) { grid-template-columns: minmax(0, 1fr); min-height: 0; }
[data-home-list="releases"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-home-list="articles"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  [data-home-list="releases"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-home-list="articles"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  [data-home-list="releases"] { grid-template-columns: minmax(0, 1fr); }
  [data-home-list="articles"] { grid-template-columns: minmax(0, 1fr); }
  .home-release-card { min-height: 120px; }
}
