:root {
  --ink: #e8edf0;
  --muted: #93a2ac;
  --paper: #0d141b;
  --panel: #131e27;
  --panel-2: #182630;
  --line: #31414d;
  --line-soft: #22313c;
  --signal: #f4c542;
  --hot: #ff6b45;
  --cool: #4de1c1;
  --rose: #ff7eb6;
  --violet: #8fa8ff;
  --danger: #ff6b6b;
  --success: #62e6a7;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --radius: 2px;
  --space: clamp(1rem, 3vw, 2rem);
  color-scheme: dark;
  font-family: "Space Grotesk", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="light"] {
    --ink: #101820;
    --muted: #5b6a73;
    --paper: #eef1ee;
    --panel: #f8faf7;
    --panel-2: #e5eae6;
    --line: #aab4b3;
    --line-soft: #d2d9d5;
    --shadow: 0 22px 70px rgba(32, 44, 45, 0.12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink: #101820;
  --muted: #5b6a73;
  --paper: #eef1ee;
  --panel: #f8faf7;
  --panel-2: #e5eae6;
  --line: #aab4b3;
  --line-soft: #d2d9d5;
  --shadow: 0 22px 70px rgba(32, 44, 45, 0.12);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #e8edf0;
  --muted: #93a2ac;
  --paper: #0d141b;
  --panel: #131e27;
  --panel-2: #182630;
  --line: #31414d;
  --line-soft: #22313c;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--signal) #08080a;
}

/* Relay-station scrollbar: a dark channel with a bright, usable energy cell. */
::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

::-webkit-scrollbar-track {
  border-left: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(180deg, transparent 0 11px, rgba(255, 255, 255, 0.045) 12px 13px),
    #08080a;
}

::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 3px solid #08080a;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--signal) 0 34%, var(--cool) 34% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 10px rgba(255, 212, 71, 0.18);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe178 0 34%, var(--hot) 34% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 0 14px rgba(255, 92, 138, 0.34);
}

::-webkit-scrollbar-corner {
  background: #08080a;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  z-index: 20;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
img,
canvas,
svg {
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: var(--signal);
  color: #101820;
  padding: 0.7rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  font:
    500 0.72rem/1.4 "DM Mono",
    monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.section {
  padding: 5rem var(--space);
  max-width: 1440px;
  margin: auto;
}
.site-header {
  position: relative;
  z-index: 15;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 72px;
  padding: 0 var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font:
    500 0.85rem "DM Mono",
    monospace;
  letter-spacing: 0.09em;
}
.logo-type b {
  color: var(--signal);
  font-weight: 500;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
}
.logo-mark i {
  position: absolute;
  background: currentColor;
}
.logo-mark i:nth-child(1) {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}
.logo-mark i:nth-child(2) {
  width: 38px;
  height: 1px;
  transform: rotate(45deg);
}
.logo-mark i:nth-child(3) {
  height: 38px;
  width: 1px;
  transform: rotate(45deg);
}
.menu-button {
  border: 1px solid var(--line);
  background: transparent;
  min-width: 48px;
  min-height: 44px;
  padding: 0 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-transform: uppercase;
  font:
    500 0.72rem "DM Mono",
    monospace;
}
.menu-button i,
.menu-button i:after {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
}
.menu-button i:after {
  transform: translateY(5px);
}
.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--space);
}
.site-nav.open {
  display: grid;
}
.site-nav a,
.sound-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font:
    500 0.8rem "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sound-toggle {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.button {
  min-height: 46px;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: #111820;
  padding: 0.75rem 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font:
    500 0.78rem "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--ink);
}
.button:active {
  transform: translateY(1px);
}
.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.button-light {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.text-link {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
  font:
    500 0.78rem "DM Mono",
    monospace;
  text-transform: uppercase;
}
.text-link span {
  color: var(--signal);
}
.home-hero {
  min-height: 620px;
  padding: 4rem var(--space);
  display: grid;
  gap: 3rem;
  max-width: 1440px;
  margin: auto;
}
.hero-copy h1 {
  font-size: clamp(3.2rem, 13vw, 8.5rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  margin: 1.5rem 0 2rem;
  max-width: 900px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--signal);
}
.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: center;
}
.hero-console {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  align-self: end;
}
.console-top {
  height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font:
    400 0.65rem "DM Mono",
    monospace;
  color: var(--muted);
}
.console-top span {
  margin-right: auto;
}
.console-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.console-top i:first-of-type {
  background: var(--signal);
}
.hero-console > a {
  display: grid;
  padding: 1.25rem;
  min-height: 190px;
  position: relative;
}
.hero-console > a:after {
  content: "";
  width: 95px;
  height: 95px;
  border: 18px solid var(--signal);
  border-radius: 50%;
  position: absolute;
  right: 1.2rem;
  top: 2rem;
  opacity: 0.85;
}
.hero-console > a span,
.hero-console > a small {
  font:
    400 0.65rem "DM Mono",
    monospace;
  color: var(--muted);
  z-index: 1;
}
.hero-console > a strong {
  font-size: 1.8rem;
  align-self: end;
  z-index: 1;
}
.hero-console > a b {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  font:
    500 0.7rem "DM Mono",
    monospace;
  z-index: 1;
}
.console-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.console-readout span {
  padding: 0.75rem 0.4rem;
  text-align: center;
  font:
    400 0.55rem "DM Mono",
    monospace;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--signal);
  color: #111820;
}
.ticker div {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.75rem;
  font:
    500 0.68rem "DM Mono",
    monospace;
  letter-spacing: 0.1em;
  animation: ticker 28s linear infinite;
}
.ticker span {
  white-space: nowrap;
}
.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-heading h2,
.split-info h2,
.faq h2 {
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin: 0;
}
.section-heading > p {
  color: var(--muted);
  max-width: 500px;
}
.card-grid {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.35rem);
}
.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  display: grid;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.game-card:hover {
  background: var(--panel-2);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.card-visual {
  aspect-ratio: 16 / 9;
  min-height: 0;
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper);
}
.card-visual:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  background-color: rgba(16, 24, 33, 0.04);
  opacity: 0.24;
  pointer-events: none;
  z-index: 1;
}
.card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1),
    filter 0.45s ease;
}
.game-card:hover .card-image {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}
.card-code {
  position: absolute;
  left: 1rem;
  top: 1rem;
  font:
    700 0.68rem "DM Mono",
    monospace;
  z-index: 2;
  color: #fff;
  background: rgba(7, 7, 9, 0.9);
  border: 1px solid color-mix(in srgb, var(--accent, var(--signal)) 72%, #fff);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 0.38rem 0.52rem;
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
}
.card-open {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.35rem 0.55rem;
  font:
    500 0.6rem "DM Mono",
    monospace;
  z-index: 2;
  transform: translateY(4px);
  opacity: 0;
  transition: 0.2s;
}
.game-card:hover .card-open {
  opacity: 1;
  transform: none;
}
.card-copy {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  min-height: 190px;
}
.card-copy strong {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}
.card-copy > span:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}
.card-copy small {
  font:
    400 0.63rem "DM Mono",
    monospace;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--muted);
}
.category-band {
  background: var(--panel);
  max-width: none;
}
.category-band > * {
  max-width: 1390px;
  margin-inline: auto;
}
.category-list {
  border-top: 1px solid var(--line);
}
.category-list a {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto 1rem;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s;
}
.category-list a:hover {
  padding-left: 0.8rem;
}
.category-list span,
.category-list small,
.category-list b {
  font:
    400 0.65rem "DM Mono",
    monospace;
  color: var(--muted);
}
.category-list strong {
  font-size: 1.1rem;
}
.split-info {
  display: grid;
  gap: 3rem;
  border-top: 1px solid var(--line);
}
.split-info ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.split-info li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}
.split-info li > span {
  font:
    400 0.65rem "DM Mono",
    monospace;
  color: var(--signal);
}
.split-info strong {
  font-size: 1.1rem;
}
.split-info p {
  color: var(--muted);
  margin: 0.3rem 0;
}
.faq {
  display: grid;
  gap: 2rem;
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font:
    400 1.2rem "DM Mono",
    monospace;
  color: var(--signal);
}
details p {
  color: var(--muted);
  max-width: 650px;
  margin: 0 0 1.5rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space);
  background: var(--panel);
}
.footer-call {
  padding: 4rem 0 5rem;
}
.footer-call > p {
  font:
    400 0.7rem "DM Mono",
    monospace;
  text-transform: uppercase;
  color: var(--signal);
}
.footer-call h2 {
  font-size: clamp(2.7rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-grid p {
  color: var(--muted);
  max-width: 330px;
}
.footer-grid h3 {
  font:
    500 0.67rem "DM Mono",
    monospace;
  text-transform: uppercase;
  color: var(--signal);
}
.footer-grid a:not(.logo) {
  color: var(--muted);
  padding: 0.2rem 0;
}
.footer-grid a:hover {
  color: var(--ink);
}
.footer-base {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font:
    400 0.62rem "DM Mono",
    monospace;
  color: var(--muted);
}
.section-intro,
.content-hero {
  padding: 5rem var(--space);
  max-width: 1440px;
  margin: auto;
  display: grid;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.section-intro > span {
  font:
    400 0.7rem "DM Mono",
    monospace;
  color: var(--signal);
}
.section-intro h1,
.content-hero h1,
.category-hero h1 {
  font-size: clamp(3.2rem, 10vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  margin: 1rem 0;
}
.section-intro > div > p:last-child,
.content-hero > p:last-child,
.category-hero > div > p:last-child {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
}
.filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow: auto;
  padding-bottom: 0.7rem;
}
.filter {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.65rem 0.85rem;
  min-height: 44px;
  cursor: pointer;
  font:
    400 0.65rem "DM Mono",
    monospace;
  text-transform: uppercase;
}
.filter.active,
.filter:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: #101820;
}
.filter span {
  opacity: 0.7;
}
.filter-result {
  font:
    400 0.65rem "DM Mono",
    monospace;
  color: var(--muted);
  margin: 1rem 0 2rem;
}
.game-card[hidden] {
  display: none;
}
.breadcrumb {
  max-width: 1440px;
  margin: auto;
  padding: 1.2rem var(--space);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font:
    400 0.64rem "DM Mono",
    monospace;
  text-transform: uppercase;
  color: var(--muted);
  overflow: auto;
  white-space: nowrap;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.breadcrumb b {
  color: var(--line);
}
.channel-panels {
  display: grid;
  gap: 2rem;
}
.channel-panels article {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: grid;
  gap: 2rem;
}
.channel-panels article > div > span {
  font:
    400 0.7rem "DM Mono",
    monospace;
  color: var(--signal);
}
.channel-panels h2 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  margin: 0.5rem 0;
  line-height: 1;
}
.channel-panels article > div > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 480px;
}
.mini-cards {
  display: grid;
  grid-template-columns: 1fr;
}
.mini-cards .card-copy {
  min-height: 160px;
}
.category-hero {
  min-height: 480px;
  padding: 5rem var(--space);
  max-width: 1440px;
  margin: auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.channel-dial {
  width: min(70vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  margin: auto;
  font:
    500 5rem "DM Mono",
    monospace;
  color: var(--signal);
}
.channel-dial:before,
.channel-dial:after {
  content: "";
  position: absolute;
  background: var(--line);
}
.channel-dial:before {
  width: 120%;
  height: 1px;
}
.channel-dial:after {
  height: 120%;
  width: 1px;
}
.channel-dial i {
  position: absolute;
  inset: 25px;
  border: 14px solid var(--signal);
  border-radius: 50%;
  opacity: 0.4;
}
.prose-strip {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
}
.prose-strip h2 {
  font-size: 2rem;
}
.prose-strip p {
  color: var(--muted);
  max-width: 760px;
}
.content-hero {
  padding-block: 7rem;
}
.content-hero h1 em {
  font-style: normal;
  color: var(--signal);
}
.statement-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  max-width: 1000px;
}
.statement-hero > p.lead {
  font-size: 1.2rem;
  max-width: 760px;
}
.prose {
  max-width: 860px;
}
.prose h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 3.5rem 0 1rem;
}
.prose p {
  color: var(--muted);
  font-size: 1.05rem;
}
.prose a,
.legal a,
.contact-layout a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.email-plain {
  color: var(--signal);
  font-weight: 700;
  text-decoration: none;
}
.contact-layout {
  display: grid;
  gap: 3rem;
}
.contact-blocks {
  display: grid;
  gap: 1.9rem;
  align-content: start;
}
.contact-block {
  border-left: 2px solid var(--signal);
  padding-left: 1.4rem;
  display: grid;
  gap: 0.45rem;
}
.contact-block h3 {
  font-size: 1.15rem;
  margin: 0;
}
.contact-block p {
  color: var(--muted);
}
.contact-block a {
  justify-self: start;
}
.contact-form {
  display: grid;
  gap: 1.2rem;
}
.contact-form > div {
  display: grid;
  gap: 0.35rem;
}
.contact-form label {
  font:
    500 0.68rem "DM Mono",
    monospace;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 0.85rem;
}
.contact-form small {
  display: none;
  color: var(--danger);
}
.contact-form .invalid small {
  display: block;
}
.contact-form .invalid input,
.contact-form .invalid select,
.contact-form .invalid textarea {
  border-color: var(--danger);
}
.form-privacy,
.form-status {
  color: var(--muted);
}
.legal {
  display: grid;
  gap: 3rem;
  max-width: 1120px;
}
.legal > nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.legal > nav h2 {
  font-size: 1rem;
}
.legal > nav a {
  color: var(--muted);
  padding: 0.2rem 0;
}
.legal section {
  padding: 0 0 2.5rem;
  margin: 0 0 2.5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 2rem;
}
.legal section > span {
  font:
    400 0.65rem "DM Mono",
    monospace;
  color: var(--signal);
}
.legal section h2 {
  font-size: 1.7rem;
}
.legal section p {
  color: var(--muted);
}
.legal .legal-intro {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
  max-width: 760px;
}
.legal h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.4rem;
}
.legal ul,
.legal ol {
  margin: 0.6rem 0;
  padding-left: 1.3rem;
}
.legal li {
  color: var(--muted);
  padding: 0.25rem 0;
}
.legal li a {
  word-break: break-word;
}
.not-found {
  min-height: 75vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem var(--space);
}
.error-code {
  font-size: clamp(8rem, 30vw, 20rem);
  line-height: 1;
  letter-spacing: -0.1em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-code .logo-mark {
  width: 0.55em;
  height: 0.55em;
  margin-inline: 0.05em;
}
.not-found h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 1rem;
}
.not-found > p:not(.eyebrow) {
  color: var(--muted);
}
.not-found > div:last-child {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.game-page {
  --game-accent: var(--signal);
}
.game-cover {
  max-width: 1440px;
  margin: 1rem auto 0;
  padding: 0 var(--space);
}
.game-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel-2);
}
.game-cover figcaption {
  padding: 0.75rem 0 0;
  color: var(--muted);
  font:
    400 0.62rem "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.game-title {
  padding: 3rem var(--space) 4rem;
  max-width: 1440px;
  margin: auto;
  display: grid;
  gap: 2rem;
}
.game-title h1 {
  font-size: clamp(3.2rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin: 0.8rem 0;
}
.game-title > div > p:last-child {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
}
.game-title dl {
  border-top: 1px solid var(--line);
  margin: 0;
}
.game-title dl div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font:
    400 0.68rem "DM Mono",
    monospace;
  text-transform: uppercase;
}
.game-title dt {
  color: var(--muted);
}
.game-title dd {
  margin: 0;
}
.game-shell {
  max-width: 1120px;
  margin: 0 auto 4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.game-toolbar {
  min-height: 52px;
  padding: 0.7rem 1rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font:
    400 0.65rem "DM Mono",
    monospace;
  text-transform: uppercase;
}
.game-toolbar > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--game-accent);
  box-shadow: 0 0 12px var(--game-accent);
}
.statline {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.statline b {
  color: var(--game-accent);
}
.game-root {
  min-height: 360px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
  touch-action: none;
  background: var(--paper);
}
.game-root:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.25;
  pointer-events: none;
}
.game-loading {
  font:
    400 0.7rem "DM Mono",
    monospace;
  color: var(--muted);
}
.game-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}
.touch-controls {
  padding: 0 1rem 1rem;
}
.touch-pad {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(2, 52px);
  justify-content: center;
  gap: 0.4rem;
}
.touch-pad button,
.touch-row button,
.number-pad button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  min-width: 52px;
  min-height: 48px;
  cursor: pointer;
}
.touch-pad button[data-dir="up"] {
  grid-column: 2;
}
.touch-pad button[data-dir="left"] {
  grid-column: 1;
}
.touch-pad button[data-dir="down"] {
  grid-column: 2;
}
.touch-pad button[data-dir="right"] {
  grid-column: 3;
}
.touch-row,
.number-pad {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.game-manual {
  max-width: 1120px;
  margin: auto;
  padding: 0 var(--space) 4rem;
}
.manual-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.manual-nav a {
  font:
    400 0.7rem "DM Mono",
    monospace;
  text-transform: uppercase;
}
.manual-grid {
  display: grid;
}
.manual-grid section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.manual-grid span {
  font:
    400 0.65rem "DM Mono",
    monospace;
  color: var(--game-accent);
}
.manual-grid h2 {
  font-size: 1.3rem;
}
.manual-grid p,
.manual-note p {
  color: var(--muted);
}
.manual-note {
  padding: 2rem 0;
}
.manual-note h2 {
  font-size: 2rem;
}
.manual-note h3 {
  margin-top: 2rem;
}
.game-faq {
  display: grid;
  gap: 2rem;
  background: var(--panel);
  max-width: none;
  padding-inline: max(var(--space), calc((100vw - 1390px) / 2));
}
.related {
  padding-top: 4rem;
}
.game-board,
.dom-grid {
  position: relative;
  z-index: 1;
}
.game-canvas {
  width: min(100%, 760px);
  height: auto;
  aspect-ratio: 4/3;
  display: block;
  background: #091016;
  border: 1px solid var(--line);
}
.square-canvas {
  width: min(100%, 620px);
  aspect-ratio: 1;
}
.dom-grid {
  display: grid;
  width: min(100%, 520px);
  aspect-ratio: 1;
  gap: 5px;
}
.dom-grid button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  min-width: 0;
  min-height: 0;
  padding: 0;
  cursor: pointer;
  font:
    500 clamp(0.8rem, 4vw, 1.4rem) "DM Mono",
    monospace;
}
.dom-grid button:hover {
  border-color: var(--game-accent);
}
.result-overlay {
  position: absolute;
  z-index: 5;
  inset: 1rem;
  display: grid;
  place-content: center;
  text-align: center;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border: 1px solid var(--game-accent);
  padding: 2rem;
}
.result-overlay h2 {
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
  margin: 0.5rem;
}
.result-overlay p {
  color: var(--muted);
}
.mine-grid {
  grid-template-columns: repeat(var(--mine-size, 8), 1fr);
}
.mine-grid button.flagged:after {
  content: "⚑";
}
.mine-grid button.revealed {
  background: var(--paper);
}
.mine-grid button.mine {
  color: var(--danger);
}
.fusion-grid {
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  padding: 5px;
}
.fusion-grid button {
  font-size: clamp(1rem, 6vw, 2rem);
  background: color-mix(in srgb, var(--game-accent) calc(var(--power, 1) * 6%), var(--panel));
}
.triad-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: 520px;
}
.triad-grid button {
  font-size: clamp(1.65rem, 8vw, 3.6rem);
}
.four-grid {
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  aspect-ratio: 7/6;
  max-width: 560px;
  background: var(--line);
  padding: 5px;
}
.four-grid button {
  border-radius: 50%;
  background: var(--paper);
}
.four-grid button.p1 {
  background: var(--signal);
}
.four-grid button.p2 {
  background: var(--hot);
}
.memory-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: 540px;
}
.memory-grid button {
  font-size: clamp(1rem, 7vw, 2.2rem);
}
.memory-grid button:not(.open):not(.matched) {
  color: transparent;
}
.memory-grid button:not(.open):not(.matched):after {
  content: "R9";
  color: var(--muted);
  font-size: 0.75rem;
}
.memory-grid button.matched {
  background: color-mix(in srgb, var(--game-accent) 25%, var(--panel));
}
.tile-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: 520px;
}
.tile-grid button.empty {
  visibility: hidden;
}
.word-game,
.typing-game,
.reaction-game,
.chroma-game,
.sudoku-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  text-align: center;
}
.scramble {
  font:
    500 clamp(2rem, 12vw, 5rem) "DM Mono",
    monospace;
  letter-spacing: 0.14em;
  margin: 1.5rem 0;
  color: var(--game-accent);
  word-break: break-all;
}
.game-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.game-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 0.7rem;
  width: min(100%, 330px);
  font-size: 1rem;
}
.reaction-pad {
  width: min(90vw, 520px);
  height: 260px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font:
    500 1.2rem "DM Mono",
    monospace;
  cursor: pointer;
}
.reaction-pad.go {
  background: var(--success);
  color: #07140e;
}
.target-range {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  height: min(62vh, 480px);
  min-height: 340px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: crosshair;
}
.target {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 2px solid var(--game-accent);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}
.target:before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 4px solid var(--game-accent);
  border-radius: 50%;
}
.typing-words {
  font:
    500 clamp(1.3rem, 4vw, 2rem) / 1.6 "DM Mono",
    monospace;
  text-align: left;
  padding: 1.2rem;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.typing-words span.done {
  color: var(--success);
}
.typing-words span.current {
  background: var(--game-accent);
  color: #111820;
}
.typing-game input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 1rem;
}
.chroma-word {
  font-size: clamp(3rem, 14vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2rem;
}
.chroma-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.chroma-options button {
  min-height: 58px;
  border: 1px solid var(--line);
  background: var(--panel);
  font:
    500 0.8rem "DM Mono",
    monospace;
  text-transform: uppercase;
}
.lights-grid {
  grid-template-columns: repeat(5, 1fr);
  max-width: 520px;
}
.lights-grid button.on {
  background: var(--game-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--game-accent) 50%, transparent);
}
.echo-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 500px;
  gap: 10px;
}
.echo-grid button:nth-child(1) {
  --echo: #f4c542;
}
.echo-grid button:nth-child(2) {
  --echo: #ff6b45;
}
.echo-grid button:nth-child(3) {
  --echo: #4de1c1;
}
.echo-grid button:nth-child(4) {
  --echo: #8fa8ff;
}
.echo-grid button {
  background: color-mix(in srgb, var(--echo) 25%, var(--panel));
  border-color: var(--echo);
  font-size: 1rem;
}
.echo-grid button.active {
  background: var(--echo);
  transform: scale(0.97);
}
.sudoku-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: 430px;
  margin: auto;
}
.sudoku-grid button {
  font-size: clamp(1.4rem, 8vw, 2.5rem);
}
.sudoku-grid button:nth-child(2n) {
  border-right-width: 3px;
}
.sudoku-grid button:nth-child(n + 5):nth-child(-n + 8) {
  border-bottom-width: 3px;
}
.sudoku-grid button.fixed {
  background: var(--panel);
  color: var(--muted);
}
.sudoku-grid button.selected {
  outline: 3px solid var(--game-accent);
  outline-offset: -3px;
}
.sudoku-grid button.conflict {
  color: var(--danger);
}
@media (min-width: 560px) {
  .game-actions {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mini-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-root {
    min-height: 500px;
    padding: 1.5rem;
  }
  .manual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .manual-grid section {
    padding: 2rem;
  }
  .manual-grid section:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .chroma-options {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
  }
  .menu-button {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
  }
  .site-nav a,
  .sound-toggle {
    border: 0;
    min-height: 44px;
    font-size: 0.65rem;
  }
  .site-nav a {
    position: relative;
  }
  .site-nav a:after {
    content: none;
  }
  .home-hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.7fr);
    align-items: end;
    padding-block: 6rem;
  }
  .hero-console {
    margin-bottom: 1rem;
  }
  .section {
    padding-block: 7rem;
  }
  .section-heading {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .compact-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .compact-grid .card-visual {
    min-height: 0;
  }
  .compact-grid .card-copy {
    min-height: 200px;
  }
  .split-info {
    grid-template-columns: 1fr 1fr;
  }
  .faq,
  .game-faq {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
  .section-intro {
    grid-template-columns: 100px 1fr;
    padding-block: 8rem;
  }
  .channel-panels article {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .category-hero {
    grid-template-columns: 1fr 0.7fr;
  }
  .prose-strip {
    grid-template-columns: 0.5fr 1fr auto;
    align-items: start;
  }
  .contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .legal {
    grid-template-columns: 260px 1fr;
  }
  .legal > nav {
    position: sticky;
    top: 100px;
    align-self: start;
  }
  .game-title {
    grid-template-columns: 1.5fr 0.5fr;
    align-items: end;
    padding-block: 6rem;
  }
  .game-title dl {
    min-width: 270px;
  }
  .game-shell {
    border-radius: var(--radius);
  }
  .manual-note {
    max-width: 760px;
  }
  .footer-call {
    display: flex;
    justify-content: space-between;
    align-items: end;
  }
  .footer-call h2 {
    margin-bottom: 0;
  }
  .content-hero {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .content-hero .eyebrow {
    grid-column: 1/-1;
  }
  .statement-hero {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1180px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .directory .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .quick-section .card-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .channel-panels article {
    grid-template-columns: 0.7fr 1.3fr;
  }
  .manual-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .manual-grid section {
    border-right: 1px solid var(--line);
  }
  .manual-grid section:last-child {
    border-right: 0;
  }
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes arcade-field-drift {
  from {
    background-position:
      0 0,
      40px 90px,
      150px 30px,
      80px 130px,
      0 0,
      0 0,
      0 0;
  }
  to {
    background-position:
      140px -220px,
      -140px 310px,
      360px -150px,
      -170px 410px,
      0 0,
      36px -36px,
      36px -36px;
  }
}

@keyframes arcade-scan-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 0.96;
  }
}

@keyframes page-channel-sweep {
  from {
    transform: translateX(-135%) skewX(-18deg);
  }
  to {
    transform: translateX(135%) skewX(-18deg);
  }
}

@keyframes page-channel-label {
  from {
    opacity: 0;
    letter-spacing: 0.34em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.18em;
  }
}

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

/* -------------------------------------------------------------------------- */
/* Game-forward visual system                                                  */
/* -------------------------------------------------------------------------- */
:root {
  --ink: #f6f4ff;
  --muted: #aaaab6;
  --paper: #090909;
  --panel: #151515;
  --panel-2: #232323;
  --line: #3d3d46;
  --line-soft: #27272d;
  --signal: #ffd447;
  --hot: #ff5c8a;
  --cool: #57e3c4;
  --rose: #e596ff;
  --violet: #8c7dff;
  --shadow: 0 16px 0 #030303;
  --radius: 18px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root[data-theme="light"] {
    --ink: #181532;
    --muted: #665f7c;
    --paper: #f4f1ff;
    --panel: #fffdf8;
    --panel-2: #ece8ff;
    --line: #d7d0ef;
    --line-soft: #e7e2f4;
    --signal: #ffc83d;
    --hot: #ff5c8a;
    --cool: #19bea7;
    --rose: #b974e8;
    --violet: #6f5ae6;
    --shadow: 0 12px 30px rgba(35, 24, 80, 0.15);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --ink: #181532;
  --muted: #665f7c;
  --paper: #f4f1ff;
  --panel: #fffdf8;
  --panel-2: #ece8ff;
  --line: #d7d0ef;
  --line-soft: #e7e2f4;
  --signal: #ffc83d;
  --hot: #ff5c8a;
  --cool: #19bea7;
  --rose: #b974e8;
  --violet: #6f5ae6;
  --shadow: 0 12px 30px rgba(35, 24, 80, 0.15);
  color-scheme: light;
}

body {
  background:
    radial-gradient(
      circle at 8% 4%,
      color-mix(in srgb, var(--violet) 14%, transparent) 0 11rem,
      transparent 11.2rem
    ),
    radial-gradient(
      circle at 92% 24%,
      color-mix(in srgb, var(--hot) 9%, transparent) 0 13rem,
      transparent 13.2rem
    ),
    var(--paper);
  isolation: isolate;
}

/* A quiet arcade field lives behind the content: drifting star pixels, a slow
   scan band, and no interactive surface. It is deliberately peripheral so
   game controls and editorial copy remain the visual priority. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.88;
  background-image:
    radial-gradient(circle at 11% 19%, rgba(255, 212, 71, 0.78) 0 1px, transparent 1.8px),
    radial-gradient(circle at 79% 16%, rgba(87, 227, 196, 0.7) 0 1px, transparent 1.7px),
    radial-gradient(circle at 87% 66%, rgba(255, 92, 138, 0.7) 0 1px, transparent 1.7px),
    radial-gradient(circle at 21% 78%, rgba(140, 125, 255, 0.75) 0 1px, transparent 1.8px),
    linear-gradient(115deg, transparent 0 44%, rgba(87, 227, 196, 0.055) 49%, transparent 54%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size:
    280px 280px,
    360px 360px,
    440px 440px,
    520px 520px,
    100% 100%,
    72px 72px,
    72px 72px;
  background-position:
    0 0,
    40px 90px,
    150px 30px,
    80px 130px,
    0 0,
    0 0,
    0 0;
  animation:
    arcade-field-drift 34s linear infinite,
    arcade-scan-pulse 8s ease-in-out infinite;
}

body::before {
  opacity: 0.045;
  mix-blend-mode: screen;
}

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

/* Keep the desktop experience inside the same arcade visual language. */
html,
body {
  cursor:
    url("/assets/images/cursors/arcade-crosshair.svg") 16 16,
    crosshair;
}

a,
button,
.button,
.filter,
.menu-button,
.sound-toggle,
summary,
select,
[role="button"],
.game-card,
.game-root canvas,
.game-root [data-action],
.touch-controls button {
  cursor:
    url("/assets/images/cursors/arcade-hand.svg") 8 4,
    pointer;
}

input,
textarea,
[contenteditable="true"] {
  cursor: text;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

.site-header {
  border-bottom: 2px solid var(--line);
  border-radius: 0 0 20px 20px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  z-index: 30;
}

@media (max-width: 767px) {
  .site-nav {
    z-index: 31;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  }
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
  border: 0;
  border-radius: 0;
  background: none;
  color: initial;
  box-shadow: none;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5));
}

.logo-type {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "relay nine"
    "arcade arcade";
  column-gap: 0.34rem;
  row-gap: 0.12rem;
  align-items: baseline;
  line-height: 1;
}

.logo-type > span {
  grid-area: relay;
  color: var(--ink);
  font-size: 0.82rem;
}

.logo-type b {
  grid-area: nine;
  color: var(--signal);
  font-size: 0.82rem;
  font-weight: 800;
}

.logo-type small {
  grid-area: arcade;
  color: var(--cool);
  font:
    700 0.42rem "DM Mono",
    monospace;
  letter-spacing: 0.2em;
}

.menu-button {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.site-nav a,
.sound-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  padding-inline: 0.8rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.sound-toggle:hover {
  border-color: var(--line);
  background: var(--panel-2);
}

.button {
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.button:hover {
  transform: translate(2px, 2px);
  background: var(--hot);
  border-color: var(--hot);
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.button-quiet {
  border-radius: 999px;
}

.home-hero {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.hero-console {
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 10px 10px 0 var(--violet);
  background: var(--panel);
  transform: rotate(1deg);
}

.hero-console[data-game-carousel] {
  --hero-accent: var(--hot);
}

.console-dots {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.console-dot {
  width: 24px;
  min-width: 24px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor:
    url("/assets/images/cursors/arcade-hand.svg") 8 4,
    pointer;
}

.console-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.console-dot[aria-current="true"]::before {
  background: var(--hero-accent);
  border-color: var(--hero-accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--hero-accent) 55%, transparent);
  transform: scale(1.15);
}

.hero-console > [data-carousel-link] {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.hero-console.is-changing > [data-carousel-link] {
  opacity: 0.32;
  transform: translateY(4px);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(42, 32, 88, 0.28), transparent 42%), rgba(5, 5, 7, 0.9);
  backdrop-filter: blur(0);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.38s,
    backdrop-filter 0.38s ease;
}

.page-transition::before {
  content: "";
  position: absolute;
  inset: -22% -35%;
  background:
    linear-gradient(
      90deg,
      transparent 0 37%,
      rgba(87, 227, 196, 0.12) 42%,
      var(--signal) 48%,
      var(--hot) 52%,
      rgba(255, 92, 138, 0.12) 58%,
      transparent 63%
    ),
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(255, 255, 255, 0.07) 12px 13px);
  transform: translateX(-135%) skewX(-18deg);
}

.page-transition span {
  position: relative;
  z-index: 1;
  opacity: 0;
  color: var(--ink);
  font:
    700 clamp(0.68rem, 1.3vw, 0.88rem) "DM Mono",
    monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.is-page-leaving {
  overflow: hidden;
}

body.is-page-leaving .page-transition {
  visibility: visible;
  opacity: 1;
  backdrop-filter: blur(3px);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.38s ease;
}

body.is-page-leaving .page-transition::before {
  animation: page-channel-sweep 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-page-leaving .page-transition span {
  animation: page-channel-label 0.24s ease 0.1s both;
}

.site-header,
main,
.site-footer {
  transform-origin: 50% 0;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s ease;
}

body.is-page-leaving .site-header,
body.is-page-leaving main,
body.is-page-leaving .site-footer {
  opacity: 0.3;
  transform: translateY(-10px) scale(0.988);
  filter: blur(2px) saturate(0.65);
}

body.is-page-entering .site-header,
body.is-page-entering main,
body.is-page-entering .site-footer {
  opacity: 0;
  transform: translateY(12px) scale(0.988);
  filter: blur(2px) saturate(0.72);
}

.hero-console > a::after {
  border-width: 18px;
  border-color: var(--hero-accent, var(--hot));
  transition: border-color 0.2s ease;
}

.ticker {
  border-block: 2px solid var(--line);
  background: var(--signal);
  box-shadow: inset 0 -3px 0 rgba(16, 13, 43, 0.15);
}

.filter-bar {
  gap: 0.7rem;
}

.filter {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.filter.active,
.filter:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--paper);
}

.category-band {
  border-block: 2px solid var(--line);
  background: color-mix(in srgb, var(--violet) 10%, var(--paper));
}

.category-list a {
  border: 2px solid transparent;
  border-radius: 14px;
  margin-block: 0.35rem;
  padding: 1rem;
}

.category-list a:hover {
  border-color: var(--line);
  background: var(--panel-2);
}

.card-grid {
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: 0.25rem;
}

.game-card {
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--line);
  background: var(--panel);
}

.game-card:nth-child(4n + 1) {
  border-top-color: var(--signal);
}
.game-card:nth-child(4n + 2) {
  border-top-color: var(--cool);
}
.game-card:nth-child(4n + 3) {
  border-top-color: var(--hot);
}
.game-card:nth-child(4n + 4) {
  border-top-color: var(--violet);
}

.game-card:hover {
  background: var(--panel-2);
  box-shadow: 7px 8px 0 color-mix(in srgb, var(--line) 72%, #030303);
}

.card-visual {
  background: var(--panel-2);
}

.card-code,
.card-open {
  border-radius: 999px;
}

.card-copy {
  padding: 1.35rem;
}

.game-shell {
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 10px 10px 0 var(--violet);
  overflow: hidden;
}

.game-toolbar {
  background: var(--panel-2);
}

.game-root {
  background:
    radial-gradient(
      circle at 50% 30%,
      color-mix(in srgb, var(--violet) 10%, transparent) 0 12rem,
      transparent 12.5rem
    ),
    var(--paper);
}

.game-root::before {
  opacity: 0.12;
}

.game-cover img {
  border: 2px solid var(--line);
  border-radius: 24px;
}

.game-actions button,
.touch-pad button,
.touch-row button,
.number-pad button {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.game-actions .button:not(.button-quiet) {
  background: var(--signal);
  border-color: var(--signal);
  color: #15110a;
  text-shadow: none;
}

.game-actions .button-quiet {
  background: var(--panel-2);
  color: var(--ink);
}

/* Physical arcade-button feedback for both mouse and touch controls. */
.game-actions button,
.touch-pad button,
.touch-row button,
.number-pad button {
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 0 #080808;
  transition:
    transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.12s ease,
    background-color 0.12s ease,
    border-color 0.12s ease;
}

.game-actions .button:not(.button-quiet) {
  box-shadow:
    0 4px 0 #9e6f00,
    0 0 18px rgba(255, 212, 71, 0.2);
}

.game-actions button:is(:active, .is-key-pressed),
.touch-pad button:is(:active, .is-key-pressed),
.touch-row button:is(:active, .is-key-pressed),
.number-pad button:is(:active, .is-key-pressed) {
  transform: translateY(3px) scale(0.975);
  box-shadow: 0 1px 0 #080808;
  background: color-mix(in srgb, var(--panel-2) 72%, var(--violet));
  border-color: var(--violet);
}

.game-actions .button:not(.button-quiet):is(:active, .is-key-pressed) {
  background: #f0ad18;
  border-color: #f0ad18;
  box-shadow:
    0 1px 0 #9e6f00,
    0 0 8px rgba(255, 212, 71, 0.12);
}

.manual-grid {
  gap: 1rem;
}

.manual-grid section,
.legal section,
.channel-panels article {
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 1.4rem;
}

.site-footer {
  border-top: 2px solid var(--line);
  background: var(--panel);
}

.footer-call {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--panel-2);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 8px 8px 0 var(--hot);
}

.footer-grid {
  border-top: 0;
  gap: 1.2rem;
}

.footer-grid > div {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: var(--paper);
}

.footer-base {
  border-top: 2px solid var(--line);
}

@media (max-width: 767px) {
  .home-hero {
    min-height: auto;
  }
  .hero-console {
    transform: none;
  }
  .card-grid {
    padding: 0;
  }
  .game-card {
    box-shadow: 4px 4px 0 var(--line);
  }
  .footer-call {
    box-shadow: 5px 5px 0 var(--hot);
  }
}

@media (max-width: 430px) {
  .game-root:has(.mine-grid) {
    padding: 0.5rem;
  }

  .mine-grid {
    gap: 3px;
  }

  .game-root:has(.four-grid) {
    padding-inline: 0;
  }

  .four-grid {
    width: 100%;
    max-width: none;
    gap: 2px;
    padding: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card:hover,
  .hero-console,
  .button:hover {
    transform: none;
  }
}
