:root {
  --bg-dark: #05080C;
  --border-dark: rgba(255, 255, 255, 0.08);
  --text: #F1F5F9;
  --text-dim: #93A0B8;
  --accent: #818CF8;
  --cyan: #38BDF8;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 55% at 88% 6%, rgba(20, 130, 140, 0.16), transparent 65%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(8, 35, 42, 0.6), transparent 70%),
    linear-gradient(120deg, #02080F 0%, #05101A 55%, #06111B 100%);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  overscroll-behavior: none;
  position: relative;
  overflow-x: hidden;
}

/* ============================= STARFIELD ============================= */

#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}

/* ============================= LAYOUT ============================= */

#page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

/* ============================= HERO ============================= */

#hero {
  text-align: center;
  margin-bottom: 56px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}

#hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 9vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #F1F5F9 0%, #B9C4DA 60%, #818CF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--text-dim);
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38BDF8, #818CF8);
  color: #05080C;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.cta-btn:active {
  transform: scale(0.98);
}

.cta-hint {
  margin: 16px auto 0;
  max-width: 380px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================= PANELS ============================= */

.panel {
  margin-bottom: 40px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
}

#keep-score {
  padding-top: 56px;
}

#whats-playing {
  padding-top: 56px;
}

.yt-link {
  color: var(--cyan);
  text-decoration: none;
}

.yt-link:hover {
  text-decoration: underline;
}

.panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  text-align: center;
}

.panel p + p {
  margin-top: 16px;
}

.panel-lead {
  margin: 0 0 14px !important;
  text-align: center;
  font-size: 17px !important;
  font-weight: 700;
  color: var(--text) !important;
  line-height: 1.5 !important;
}

/* "Smoked glass" card fill, matching the game's card style. */
.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  background:
    linear-gradient(180deg, rgba(65, 76, 89, .70), rgba(24, 34, 46, .80));
  border: 1px solid rgba(166, 174, 185, .35);
  text-align: center;
}

.step-card:last-child { margin-bottom: 0; }

.step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}

/* ============================= SHOWCASE (large screenshots) ============================= */

#showcase {
  margin-bottom: 48px;
  text-align: center;
}

#showcase h2 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
}

.showcase-video {
  margin-top: 28px;
  margin-bottom: 32px;
}

.showcase-video img {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(166, 174, 185, .35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.showcase-phone img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.screenshot-caption {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ============================= YOUTUBE CTA ============================= */

#youtube-cta {
  text-align: center;
}

.youtube-link {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.youtube-link:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.youtube-logo {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* ============================= FOOTER ============================= */

#site-footer {
  text-align: center;
  padding-top: 24px;
}

#site-footer p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

#site-footer p:last-child { margin-bottom: 0; }

#site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

#site-footer a:hover {
  text-decoration: underline;
}

/* ============================= WIDER SCREENS ============================= */

@media (min-width: 760px) {
  #page {
    max-width: 760px;
  }
}
