:root {
  --bg: #05060d;
  --bg-2: #0b0e22;
  --panel: rgba(18, 23, 52, 0.72);
  --line: rgba(120, 160, 255, 0.22);
  --text: #e4ecff;
  --muted: #a3b2d9;
  --blue: #3d8bff;
  --blue-hi: #8fd0ff;
  --red: #ff4b5c;
  --purple: #b06bff;
  /* Seasonal theme colours: html/site.css (made by tools/build-site.mjs) overrides these. */
  --bg-top: #15193a;
  --nav-bg: rgba(5, 6, 13, 0.72);
  --card: rgba(12, 16, 40, 0.6);
  --accent: #5aa5ff;
  --accent-dark: #2a5fd6;
  --accent-glow: rgba(61, 139, 255, 0.45);
  --orb1-hi: #d6efff;
  --orb1-lo: #0b2a6b;
  --orb2-hi: #ffdfe2;
  --orb2-lo: #6b0b1d;
  --tagline-a: #8fd0ff;
  --tagline-b: #c78cff;
  --tagline-c: #ff7a90;
  --hero-image: url("images/site/hero.jpg");
  --font: "Inter", "SF Pro Display", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--bg-top) 0%, var(--bg-2) 40%, var(--bg) 100%) fixed;
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-hi); }

/* ------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); flex-wrap: wrap; justify-content: flex-end; }

.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

.nav .nav-cta {
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 820px);
  display: grid;
  place-items: center;
  padding: 64px 16px 72px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-image) center / cover no-repeat;
  /* A board in play from the seasonal theme, softened so the logo and text stay readable. */
  filter: blur(6px) brightness(0.7);
  transform: scale(1.04);
  opacity: 0.45;
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.hero-inner { position: relative; max-width: 820px; }

.hero-logo { width: min(640px, 90vw); margin: 0 auto -8px; filter: drop-shadow(0 10px 40px var(--accent-glow)); }

.tagline {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  background: linear-gradient(90deg, var(--tagline-a), var(--tagline-b) 55%, var(--tagline-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { margin: 14px auto 30px; max-width: 620px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }

.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.btn-ghost { color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: default; }

.platforms { margin-top: 22px; color: var(--muted); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ------------------------------------------------------------ sections */

.feature-shot { padding: 0 clamp(16px, 4vw, 48px); margin-top: -40px; position: relative; }
.feature-shot figure { margin: 0 auto; max-width: 1180px; }
.feature-shot img,
.gallery img {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.section { max-width: 1180px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 48px) 0; }

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-lede { margin: 0 0 36px; max-width: 760px; color: var(--muted); }

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

.step, .mode {
  position: relative;
  padding: 26px 24px 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.step h3, .mode h3 { margin: 0 0 8px; font-size: 20px; }
.step p, .mode p { margin: 0; color: var(--muted); font-size: 16px; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--orb1-hi), var(--blue) 40%, var(--orb1-lo));
  box-shadow: 0 0 18px var(--accent-glow);
}
.step:nth-child(2) .step-num { background: radial-gradient(circle at 35% 30%, #f0dcff, var(--purple) 40%, #3d1278); box-shadow: 0 0 18px rgba(176, 107, 255, 0.6); }
.step:nth-child(3) .step-num { background: radial-gradient(circle at 35% 30%, var(--orb2-hi), var(--red) 40%, var(--orb2-lo)); box-shadow: 0 0 18px var(--red); }

.legend-title { margin: 56px 0 18px; font-size: 22px; }

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}

.legend img { width: 56px; height: 56px; border-radius: 10px; flex: none; image-rendering: auto; }
.legend .orb-pair { display: flex; flex: none; }
.legend .orb-pair img { width: 44px; height: 44px; }
.legend .orb-pair img + img { margin-left: -6px; }
.legend strong { display: block; font-size: 16px; }
.legend span { color: var(--muted); font-size: 15px; line-height: 1.45; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.gallery a { display: block; transition: transform 0.2s ease; }
.gallery a:hover { transform: translateY(-3px); }

.play-band { text-align: center; padding-bottom: 24px; }
.play-band p { color: var(--muted); }
.play-band .btn { margin: 10px 0 18px; }

.keys { font-size: 14px; }
kbd {
  display: inline-block;
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: 600 13px var(--font);
  text-align: center;
}

/* ------------------------------------------------------------ footer */

.footer {
  margin-top: 96px;
  padding: 36px 16px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.footer p { margin: 4px 0; }
.footer .credit { color: var(--text); }

/* ------------------------------------------------------------ lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 4, 12, 0.92);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary, .gallery a { transition: none; }
}
