@font-face {
  font-family: "Pixelify Sans";
  src: url("./fonts/pixelify-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #121216;
  --rule: #302e37;
  --ink: #f2f0f6;
  --muted: #aaa4b5;
  --accent: #9e8bca;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --pixel: "Pixelify Sans", var(--mono);
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

body {
  margin: 0;
}

.page {
  width: min(100% - 2 * clamp(1rem, 5vw, 4.5rem), 83rem);
  margin-inline: auto;
}

.signal-bar, .studio {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.signal-bar, .game-status, h2 {
  font: 600 0.75rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-bar {
  min-height: 4.5rem;
  align-items: center;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.channel-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.45rem rgb(158 139 202 / 50%);
}

.signal-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 3vw, 2.5rem);
}

.signal-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  text-underline-offset: 0.3em;
}

.signal-bar a {
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

.signal-bar a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.25rem;
}

.signal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 8rem) clamp(0.5rem, 4vw, 3.5rem);
  background: radial-gradient(ellipse at 78% 48%, rgb(107 78 163 / 9%), transparent 47%);
}

.crt-heading {
  margin: 0;
  font: 650 clamp(2.55rem, 7.4vw, 7rem) / 0.92 var(--pixel);
  letter-spacing: -0.045em;
  color: #eee6f7;
}

.crt-heading span {
  display: block;
}

@media (forced-colors: none) {
  .crt-heading {
    filter: drop-shadow(0 0 0.13em rgb(166 133 220 / 33%));
  }
}

.hero-link {
  --button-bg: var(--panel);
  --button-ink: #ded1f3;
  --button-edge: #ab98d5;
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 3rem;
  max-width: 100%;
  min-height: 3.25rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: var(--button-ink);
  font: 550 1.0625rem / 1.25 var(--pixel);
  text-decoration: none;
}

.hero-link::before, .hero-link::after {
  --step: 5px;
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--button-edge);
  clip-path: polygon(
    var(--step) 0, calc(100% - var(--step)) 0,
    calc(100% - var(--step)) var(--step), 100% var(--step),
    100% calc(100% - var(--step)), calc(100% - var(--step)) calc(100% - var(--step)),
    calc(100% - var(--step)) 100%, var(--step) 100%,
    var(--step) calc(100% - var(--step)), 0 calc(100% - var(--step)),
    0 var(--step), var(--step) var(--step)
  );
}

.hero-link::after {
  --step: 4px;
  inset: 2px;
  background: var(--button-bg);
}

.hero-link-label, .hero-link-icon {
  display: grid;
  align-items: center;
}

.hero-link-label {
  padding: 0.7rem 1rem;
}

.hero-link-icon {
  place-items: center;
  border-inline-start: 1px solid currentColor;
  margin-block: 0.65rem;
}

.hero-link:hover, .hero-link:focus-visible {
  --button-bg: #d0c2eb;
  --button-ink: #17101f;
  color: var(--button-ink);
}

.hero-link:active {
  --button-bg: #ab98d5;
}

@media (forced-colors: active) {
  .hero-link {
    border: 2px solid LinkText;
  }

  .hero-link::before, .hero-link::after {
    display: none;
  }
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.page-actions .hero-link {
  margin-top: 0;
}

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

.radar {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 23rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #514860;
  border-radius: 50%;
  background: radial-gradient(circle, #21192e, var(--panel) 72%);
  box-shadow: inset 0 0 2.5rem rgb(107 78 163 / 12%), 0 0 2.25rem rgb(107 78 163 / 17%);
}

.radar-grid, .radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.radar-grid {
  background:
    linear-gradient(0deg, transparent calc(50% - 0.5px), #766095 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), #766095 calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    repeating-radial-gradient(circle closest-side, transparent 0 calc(25% - 1px), #766095 calc(25% - 1px) 25%);
  opacity: 0.18;
}

.radar-sweep {
  background: conic-gradient(from 0deg, rgb(158 139 202 / 48%), transparent 72deg);
  opacity: 0;
}

.radar-blip, .radar-mark {
  grid-area: 1 / 1;
  position: relative;
}

.radar-blip {
  width: 0.58rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #eee3ff;
  box-shadow: 0 0 0.65rem #b59be8;
  opacity: 0;
}

.radar-mark {
  display: block;
  width: min(48%, 10rem);
  height: auto;
  filter: drop-shadow(0 0 0.85rem rgb(158 139 202 / 35%));
}

@media (prefers-reduced-motion: no-preference) {
  .radar-grid { animation: radar-grid 3.2s ease-out both; }
  .radar-sweep { animation: radar-sweep 3.2s linear both; }
  .radar-blip { animation: radar-contact 3.2s ease-out both; }
  .radar-mark { animation: radar-reveal 3.2s ease-out both; }
}

@keyframes radar-grid {
  0%, 60% { opacity: 0.58; }
  100% { opacity: 0.18; }
}

@keyframes radar-sweep {
  0% { transform: rotate(-35deg); opacity: 0.65; }
  56% { opacity: 0.8; }
  68%, 100% { transform: rotate(-395deg); opacity: 0; }
}

@keyframes radar-contact {
  0%, 43% { transform: scale(0.4); opacity: 0; }
  52% { opacity: 1; }
  67%, 100% { transform: scale(2.5); opacity: 0; }
}

@keyframes radar-reveal {
  0%, 59% { transform: rotate(-45deg) scale(0.15); opacity: 0; }
  73% { transform: rotate(-22deg) scale(0.72); }
  76% { opacity: 1; }
  100% { transform: rotate(0) scale(1); opacity: 1; }
}

.games, .studio {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem;
}

h2, .games p, .studio p {
  margin: 0;
}

h2 {
  color: var(--ink);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.game-entry {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  gap: 0.5rem;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid var(--rule);
  background: var(--panel);
}

.game-entry h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  letter-spacing: -0.025em;
}

.game-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.game-status {
  color: var(--accent);
}

.game-entry video {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.5rem;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.games p, .studio p {
  color: var(--muted);
  line-height: 1.55;
}

.signal-bar [aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

.studio a {
  color: var(--accent);
  text-underline-offset: 0.3em;
}

.about {
  width: min(100%, 64rem);
  margin-inline: auto;
}

.about-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 5vw, 5rem);
  padding-block: clamp(2.75rem, 8vw, 6rem);
}

.about-intro h1 {
  margin: 0;
  color: #eee6f7;
  font: 650 clamp(2.7rem, 7vw, 6rem) / 1 var(--pixel);
  letter-spacing: -0.045em;
}

.about-intro img {
  width: clamp(3.25rem, 12vw, 8rem);
  height: auto;
  flex: none;
  filter: drop-shadow(0 0 1rem rgb(158 139 202 / 28%));
}

.about p, .about-updates p, .home-blog p {
  max-width: 65ch;
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.about-intro p {
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.about-intro .page-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font: 600 0.75rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.75rem;
}

.about-engine, .about-updates {
  padding: clamp(1rem, 4vw, 2.25rem);
  border: 1px solid var(--rule);
  background: var(--panel);
  scroll-margin-top: 1rem;
}

.about-engine h2 {
  font: 600 clamp(1.55rem, 4vw, 2.5rem) / 1.1 var(--pixel);
  letter-spacing: 0;
  text-transform: none;
}

.about-updates {
  margin-block: 1rem 2.5rem;
}

.about > .about-engine:last-child {
  margin-bottom: 2.5rem;
}

.engine-features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-blog {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem;
}

.home-blog h3 {
  margin: 0.75rem 0 0;
}

.home-blog > a {
  display: inline-block;
  margin-top: 0.5rem;
}

.home-blog a, .about p a {
  color: var(--accent);
  text-underline-offset: 0.25em;
}

@media (max-width: 46rem) {
  .signal-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 3rem 0;
    background: radial-gradient(ellipse at 50% 76%, rgb(107 78 163 / 9%), transparent 55%);
  }

  .crt-heading {
    font-size: clamp(2.55rem, 12vw, 5rem);
  }

  .radar {
    width: min(84%, 19rem);
  }
}

@media (max-width: 56rem) {
  .game-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-values {
    grid-template-columns: minmax(0, 1fr);
  }
}
