@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: #f3f5ff;
  background: #090d18;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #9aa2b8;
  --line: rgba(188, 201, 239, 0.13);
  --lime: #d3ff6b;
  --mono: "DM Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 49% 8%, rgba(35, 57, 111, 0.24), transparent 37rem),
    #090d18;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 255, 107, 0.65);
  border-radius: 9px;
  color: var(--lime);
  font-size: 15px;
  transform: rotate(-7deg);
}

.brand-dot,
.section-heading h2 > span {
  color: var(--lime);
}

.header-note,
.footer-coordinate {
  color: #a7aec0;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(211, 255, 107, 0.75);
}

.hero {
  min-height: 430px;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 54%;
  padding: 66px 0 78px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 21px;
  color: var(--lime);
  font: 10px var(--mono);
  letter-spacing: 0.12em;
}

.eyebrow-line {
  width: 20px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-size: clamp(66px, 8.6vw, 106px);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.89;
}

h1 span {
  color: var(--lime);
}

.hero-description {
  max-width: 395px;
  margin: 25px 0 0;
  color: #b0b7c8;
  font-size: 15px;
  line-height: 1.7;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  color: #edf1ff;
  font-size: 12px;
  text-decoration: none;
}

.explore-link span {
  color: var(--lime);
  font-size: 17px;
  transition: transform 160ms ease;
}

.explore-link:hover span {
  transform: translateY(3px);
}

.orbit-art {
  position: absolute;
  width: 380px;
  height: 380px;
  top: 50%;
  right: 3%;
  transform: translateY(-50%);
}

.orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(165, 184, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
}

.orbit-one {
  width: 260px;
  height: 354px;
}

.orbit-two {
  width: 355px;
  height: 245px;
  transform: translate(-50%, -50%) rotate(31deg);
}

.orbit-core {
  position: absolute;
  inset: 50%;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 255, 107, 0.7);
  border-radius: 34px;
  background: linear-gradient(145deg, #253451, #111a2b 68%);
  box-shadow: 0 0 55px rgba(74, 114, 204, 0.3), inset 0 0 30px rgba(120, 157, 241, 0.12);
  color: var(--lime);
  font-size: 57px;
  font-weight: 600;
  letter-spacing: -0.1em;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.orbit-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(211, 255, 107, 0.85);
}

.spark-one {
  top: 45px;
  left: 91px;
}

.spark-two {
  right: 41px;
  top: 139px;
  width: 6px;
  height: 6px;
  background: #84a8ff;
  box-shadow: 0 0 18px rgba(132, 168, 255, 0.9);
}

.spark-three {
  left: 71px;
  bottom: 83px;
  width: 5px;
  height: 5px;
  background: #ff84d6;
  box-shadow: 0 0 16px rgba(255, 132, 214, 0.8);
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 19px;
  color: #687087;
  font: 9px var(--mono);
  letter-spacing: 0.1em;
}

.games-section {
  padding: 61px 0 78px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.065em;
}

.section-caption {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.game-card {
  --game-color: #9b8cff;
  min-height: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--game-color) 20%, transparent), transparent 57%),
    linear-gradient(145deg, #141a29, #0d1220 75%);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: color-mix(in srgb, var(--game-color) 65%, white 10%);
  outline: none;
  transform: translateY(-4px);
}

.game-card:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--game-color) 32%, transparent);
}

.game-card-top,
.game-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-number,
.game-tag {
  color: #8992a8;
  font: 9px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-tag {
  padding: 6px 8px;
  border: 1px solid rgba(202, 211, 241, 0.13);
  border-radius: 20px;
  color: #b8c0d3;
}

.game-art {
  position: absolute;
  top: 41px;
  left: 50%;
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  color: var(--game-color);
  font-size: 51px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 23px color-mix(in srgb, var(--game-color) 38%, transparent));
  transition: transform 180ms ease;
}

.game-card:hover .game-art {
  transform: translateX(-50%) scale(1.09) rotate(-5deg);
}

.game-title {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.game-description {
  max-width: 225px;
  margin: 7px 0 0;
  color: #9da6bb;
  font-size: 11px;
  line-height: 1.5;
}

.game-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(202, 211, 241, 0.17);
  border-radius: 50%;
  color: var(--game-color);
  font-size: 15px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.game-card:hover .game-arrow {
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-45deg);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(188, 201, 239, 0.2);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #858da2;
  font-size: 11px;
}

.footer-coordinate {
  color: #687087;
  font-size: 9px;
}

.footer-coordinate span {
  margin-left: 6px;
  color: var(--lime);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 40px, 560px);
  }

  .hero {
    min-height: 430px;
    align-items: start;
  }

  .hero-copy {
    width: 100%;
    padding-top: 56px;
  }

  .hero-description {
    max-width: 290px;
  }

  .orbit-art {
    width: 230px;
    height: 230px;
    top: auto;
    right: -25px;
    bottom: -34px;
    transform: none;
    opacity: 0.64;
  }

  .orbit-one {
    width: 160px;
    height: 220px;
  }

  .orbit-two {
    width: 220px;
    height: 150px;
  }

  .orbit-core {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    font-size: 37px;
  }

  .spark-one {
    top: 24px;
    left: 53px;
  }

  .spark-two {
    right: 22px;
    top: 85px;
  }

  .spark-three {
    left: 39px;
    bottom: 46px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }

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

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 36px);
  }

  .site-header {
    height: 68px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .header-note {
    font-size: 8px;
    letter-spacing: 0;
  }

  h1 {
    font-size: 72px;
  }

  .games-section {
    padding: 45px 0 53px;
  }

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

  .game-card {
    min-height: 220px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
