:root {
  color-scheme: dark;
  --bg: #020615;
  --panel: #050b1d;
  --text: #f5f7ff;
  --muted: #b8bfd2;
  --cyan: #1de8ff;
  --magenta: #ff54d8;
  --max: 980px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(0,225,255,.10), transparent 24rem),
    radial-gradient(circle at 88% 10%, rgba(255,65,218,.10), transparent 26rem),
    linear-gradient(180deg, #030817 0%, #01040d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 8px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: .9;
}

.brand-main {
  font-size: clamp(2rem, 10vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.08em;
  background: linear-gradient(90deg, var(--cyan), #7b72ff 48%, var(--magenta) 78%, #6af2b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(80,198,255,.3));
}

.brand-sub {
  margin-top: 10px;
  padding-left: .4em;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .7em;
  color: #65efff;
}

main {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.intro {
  padding: 56px 0 36px;
  text-align: center;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: -.04em;
}

.intro p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 4vw, 1.25rem);
}

.games {
  display: grid;
  gap: 24px;
}

.game-card {
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(9,18,42,.96), rgba(3,7,20,.96));
  box-shadow: 0 0 24px rgba(0,0,0,.45), inset 0 0 28px rgba(255,255,255,.015);
}

.game-card.cyan { color: var(--cyan); }
.game-card.magenta { color: var(--magenta); }

.game-art {
  aspect-ratio: 16 / 10;
  background: #020614;
  border-bottom: 1px solid currentColor;
}

.game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-copy { padding: 24px; }

.game-copy h2 {
  margin: 0 0 14px;
  color: currentColor;
  font-size: clamp(1.75rem, 8vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: 0 0 15px currentColor;
}

.game-copy p {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 160px;
  min-height: 54px;
  padding: 13px 24px;
  border: 2px solid currentColor;
  border-radius: 12px;
  color: var(--text);
  background: rgba(5,11,30,.75);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease;
}

.play-button:hover,
.play-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  outline: none;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
  filter: drop-shadow(0 0 8px currentColor);
}

.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 48px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(180,202,255,.14);
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #c9cede;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: #fff; text-decoration: underline; }

.legal-page {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 42px 0 70px;
}

.legal-page h1 { font-size: clamp(2rem, 8vw, 3rem); }
.legal-page h2 { margin-top: 2rem; }
.legal-page p { color: #d6daea; line-height: 1.7; }
.back-link { display: inline-block; margin-top: 26px; color: var(--cyan); }

@media (min-width: 740px) {
  .site-header { padding-top: 38px; }
  .intro { padding: 72px 0 48px; }

  .game-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 360px;
  }

  .game-art {
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid currentColor;
  }

  .game-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
  }
}
