:root {
  color-scheme: dark;
  --background: #11111b;
  --surface: #191925;
  --surface-raised: #20202e;
  --text: #f5f2ff;
  --muted: #a4a0b5;
  --purple: #b69aff;
  --pink: #ff83bf;
  --line: rgba(235, 230, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(119, 74, 173, 0.14), transparent 34rem),
    var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 28px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--purple), var(--pink));
  color: #171320;
  font-size: 17px;
}

.brand-period {
  color: var(--pink);
}

.top-link {
  color: #d3cede;
  font-size: 13px;
  font-weight: 600;
}

.top-link span {
  margin-left: 5px;
  color: var(--purple);
}

.hero {
  display: grid;
  min-height: 490px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 76px 28px 68px;
  grid-template-columns: 1fr 0.82fr;
  align-items: center;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 1.65px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #88e4b0;
  box-shadow: 0 0 12px rgba(136, 228, 176, 0.65);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 1.08;
}

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

.hero-description {
  max-width: 410px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.primary-button,
.play-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 19px;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: #1b1524;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button:hover,
.play-button:hover {
  transform: translateY(-2px);
  background: #c8b4ff;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
}

.orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(182, 154, 255, 0.12);
  border-radius: 50%;
}

.orbit-two {
  width: 220px;
  height: 220px;
  border-color: rgba(255, 131, 191, 0.11);
}

.art-card {
  position: relative;
  display: flex;
  width: 190px;
  height: 230px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 19px;
  border: 1px solid rgba(223, 208, 255, 0.25);
  border-radius: 18px;
  background: linear-gradient(145deg, #302546, #1d1b2b 75%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.4), 0 0 55px rgba(168, 126, 255, 0.1);
  transform: rotate(5deg);
}

.art-card-label,
.art-card-caption {
  color: #b8aecb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.art-emoji {
  font-size: 83px;
  filter: drop-shadow(0 10px 24px rgba(255, 131, 191, 0.24));
}

.art-spark {
  position: absolute;
  color: var(--pink);
  font-size: 28px;
}

.spark-one {
  top: 53px;
  right: 21%;
}

.spark-two {
  bottom: 60px;
  left: 17%;
  color: var(--purple);
}

.art-chip {
  position: absolute;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--purple);
}

.chip-one {
  top: 80px;
  left: 21%;
  transform: rotate(-12deg);
}

.chip-two {
  right: 19%;
  bottom: 57px;
  color: var(--pink);
  transform: rotate(12deg);
}

.games-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 28px 92px;
  scroll-margin-top: 20px;
}

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

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

h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -1.5px;
}

.game-count {
  padding-bottom: 5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

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

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 154, 255, 0.5);
}

.game-art {
  display: grid;
  min-height: 175px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 131, 191, 0.16), transparent 39%),
    linear-gradient(135deg, #292039, #1c1b2b);
}

.game-art span {
  font-size: 70px;
  filter: drop-shadow(0 12px 25px rgba(255, 131, 191, 0.22));
  transition: transform 180ms ease;
}

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

.game-info {
  padding: 18px;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.game-meta h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.4px;
}

.game-tag {
  color: var(--purple);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.game-description {
  min-height: 42px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.play-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #252332;
  color: var(--text);
  font-size: 12px;
}

.play-button:hover {
  background: #302a40;
}

.play-button span {
  color: var(--purple);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-brand {
  color: var(--text);
  font-size: 15px;
}

.footer-brand .brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  font-size: 14px;
}

@media (max-width: 700px) {
  .hero {
    min-height: 0;
    padding-top: 58px;
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 290px;
    margin-top: 25px;
  }

  .games-section {
    padding-top: 20px;
  }

  h1 {
    letter-spacing: -2.5px;
  }
}

@media (max-width: 450px) {
  .topbar,
  .footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero,
  .games-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .footer p {
    max-width: 145px;
    text-align: right;
  }
}

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