/* Star Battle — website styles */
:root {
  --bg: #0b0e1a;
  --bg-2: #121735;
  --card: #171d3f;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef1ff;
  --muted: #9aa3c7;
  --gold: #ffc94d;
  --gold-2: #ffb020;
  --accent: #7c8cff;
  --radius: 16px;
  --max-w: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .star { color: var(--gold); font-size: 22px; }
.nav a { color: var(--muted); margin-left: 24px; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(124, 140, 255, 0.25), transparent),
    radial-gradient(ellipse 40% 40% at 80% 10%, rgba(255, 201, 77, 0.08), transparent),
    var(--bg);
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero h1 .gold { color: var(--gold); }
.hero .tagline {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Store badges */
.badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 10px 20px;
  min-width: 190px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.badge .lines { text-align: left; line-height: 1.2; }
.badge .small { font-size: 11px; opacity: 0.8; }
.badge .big { font-size: 17px; font-weight: 600; }
.badge.disabled { opacity: 0.65; cursor: default; }
.coming-soon { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); }
.section-title { font-size: clamp(26px, 4vw, 36px); text-align: center; margin-bottom: 12px; letter-spacing: -0.01em; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 48px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon { font-size: 30px; margin-bottom: 14px; display: block; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* How to play */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { text-align: center; padding: 24px 16px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1305; font-weight: 800; font-size: 19px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* Board demo */
.board-demo { display: flex; justify-content: center; margin-top: 8px; }
.board-demo svg { max-width: 320px; width: 100%; height: auto; filter: drop-shadow(0 12px 40px rgba(124, 140, 255, 0.25)); }

/* Themes strip */
.themes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.theme-chip {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--card-border);
}

/* Premium */
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 860px; margin: 0 auto; }
.tier { position: relative; text-align: center; }
.tier .price { font-size: 34px; font-weight: 800; margin: 10px 0 2px; }
.tier .per { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.tier ul { list-style: none; color: var(--muted); font-size: 14px; }
.tier li { padding: 4px 0; }
.tier .flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1305; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 999px;
}

/* CTA */
.cta { text-align: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Legal / prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; letter-spacing: -0.01em; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.prose h2 { font-size: 21px; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: #c7cdea; font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 24px; margin: 10px 0 18px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--card-border); padding: 10px 12px; text-align: left; color: #c7cdea; }
.prose th { background: var(--card); color: var(--text); }
.prose .notice {
  background: var(--card); border: 1px solid var(--card-border);
  border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 16px 18px; margin: 20px 0;
  font-size: 14.5px; color: #c7cdea;
}

/* 404 */
.notfound { text-align: center; padding: 140px 24px; }
.notfound h1 { font-size: 88px; color: var(--gold); line-height: 1; }
.notfound p { color: var(--muted); margin: 12px 0 28px; }
.btn {
  display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1305; font-weight: 700; padding: 12px 28px; border-radius: 12px;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }

@media (max-width: 640px) {
  .nav a { margin-left: 14px; font-size: 14px; }
  section { padding: 56px 0; }
}
