:root {
  --bg: #0d0a18;
  --card-bg: #1a1330;
  --ink: #f3eefc;
  --ink-muted: #8a7aad;
  --ink-faint: #5f5478;
  --border-soft: #241a3d;

  --pink: #ff2e88;
  --pink-rgb: 255, 46, 136;
  --cyan: #00e5ff;
  --cyan-rgb: 0, 229, 255;
  --yellow: #ffe14d;
  --yellow-rgb: 255, 225, 77;
  --coral: #ff5c5c;
  --coral-rgb: 255, 92, 92;
  --orange: #ff9633;
  --orange-rgb: 255, 150, 51;
  --lime: #b8f34a;
  --lime-rgb: 184, 243, 74;
  --mint: #2fffb0;
  --mint-rgb: 47, 255, 176;
  --blue: #5b8cff;
  --blue-rgb: 91, 140, 255;
  --violet: #b56cff;
  --violet-rgb: 181, 108, 255;

  --font-display: "Silkscreen", "Courier New", monospace;
  --font-mono: "Space Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 1px;
}

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

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

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

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: var(--bg);
  text-align: center;
  padding: 96px 24px 0;
  cursor: crosshair;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(39px, 6.9vw, 72px);
  line-height: 1.6;
  margin: 0;
}

.hero__title-accent {
  color: var(--pink);
}

.hero__floor {
  position: absolute;
  top: 400px;
  left: 0;
  right: 0;
  height: 140px;
  overflow: hidden;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, var(--cyan) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(0deg, var(--cyan) 0 2px, transparent 2px 24px);
  opacity: 0.35;
  transform: perspective(240px) rotateX(62deg);
  transform-origin: top;
}

.hero__horizon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px 2px rgba(var(--cyan-rgb), 0.7);
}

.hero__catches {
  position: absolute;
  top: 10px;
  right: 24px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 1px;
}

.hero__ball {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff6b0, var(--yellow) 60%, #d9a800);
  box-shadow: 0 0 20px rgba(var(--yellow-rgb), 0.6);
  z-index: 2;
  top: 176px;
  left: 426px;
  will-change: top, left, transform;
}

.hero__paddle {
  position: absolute;
  width: 90px;
  height: 14px;
  border-radius: 4px;
  background: var(--pink);
  box-shadow: 0 0 14px rgba(var(--pink-rgb), 0.5);
  z-index: 2;
  top: 427px;
  left: 405px;
  will-change: left;
}

/* Games section */

.games {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
}

.games__intro {
  margin-bottom: 44px;
}

.games__intro h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
  color: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.game-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 28px;
  background: var(--card-bg);
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.card-number {
  font-family: var(--font-display);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.5;
  text-align: center;
  padding: 20px 4px;
  color: var(--ink);
}

.card-cta {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.card-cta span {
  transition: transform 0.15s ease;
}

.game-card:hover .card-cta span {
  transform: translateX(4px);
}

/* Accent variants -- one hue per card, spaced round the colour wheel so no
   two neighbours in the grid share a family. Each modifier sets only the
   accent; the styling below is shared. */

.game-card {
  --accent: var(--pink);
  --accent-rgb: var(--pink-rgb);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.2), 0 0 24px rgba(var(--accent-rgb), 0.15);
}

.game-card:hover {
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 0 34px rgba(var(--accent-rgb), 0.3);
}

.game-card .card-number,
.game-card .card-cta {
  color: var(--accent);
}

.game-card--pink   { --accent: var(--pink);   --accent-rgb: var(--pink-rgb); }
.game-card--coral  { --accent: var(--coral);  --accent-rgb: var(--coral-rgb); }
.game-card--orange { --accent: var(--orange); --accent-rgb: var(--orange-rgb); }
.game-card--yellow { --accent: var(--yellow); --accent-rgb: var(--yellow-rgb); }
.game-card--lime   { --accent: var(--lime);   --accent-rgb: var(--lime-rgb); }
.game-card--mint   { --accent: var(--mint);   --accent-rgb: var(--mint-rgb); }
.game-card--cyan   { --accent: var(--cyan);   --accent-rgb: var(--cyan-rgb); }
.game-card--blue   { --accent: var(--blue);   --accent-rgb: var(--blue-rgb); }
.game-card--violet { --accent: var(--violet); --accent-rgb: var(--violet-rgb); }

/* About */

.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 96px;
  text-align: center;
}

.about h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 16px;
  color: var(--ink);
}

.about p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* Footer */

.site-footer {
  background: var(--bg);
  color: var(--ink-faint);
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 16px 20px;
  }
  .site-nav {
    gap: 16px;
  }
  .hero {
    padding: 72px 20px 0;
  }
  .games {
    padding: 56px 20px;
  }
  .game-card {
    padding: 24px;
    min-height: 240px;
  }
}
