:root {
  --bg: #14131f;
  --bg-alt: #1a1830;
  --fg: #f2eee6;
  --fg-muted: #b6aecb;
  --accent: #6d8dff;
  --accent-hover: #5876e6;
  --warm: #ffb15e;
  --warm-soft: #ffd9a0;
  --card-bg: #211f38;
  --border: #35315a;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(255, 177, 94, 0.12), transparent),
    radial-gradient(900px 500px at 100% 10%, rgba(109, 141, 255, 0.14), transparent),
    var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--warm); }
a:hover { color: var(--warm-soft); }

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--fg);
}

.brand-icon { border-radius: 8px; }

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.hero {
  padding: 72px 20px 56px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1 1 420px; }
.hero-art { flex: 1 1 380px; }

.hero-art img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 70px -20px rgba(255, 177, 94, 0.25), 0 20px 50px -15px rgba(0,0,0,0.5);
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.25;
  margin: 0 0 18px;
}

.hero-sub {
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 0 28px;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--warm), #ff9a4d);
  color: #241505;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; background: var(--border); color: var(--fg-muted); }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.download-status {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.download-status.error { color: #ffb15e; }

.hero-help-link {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

@media (max-width: 560px) {
  .header-row { flex-direction: column; gap: 10px; align-items: flex-start; }
  .nav { gap: 18px; font-size: 0.9rem; }
}

@media (max-width: 820px) {
  .hero { flex-direction: column; padding-top: 48px; }
  .hero-text { order: 2; text-align: center; }
  .hero-art { order: 1; max-width: 420px; }
  .cta-row { justify-content: center; }
}

.section {
  padding: 60px 20px;
}

.section-alt { background: var(--bg-alt); }

.section h2 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.7rem;
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--fg-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }

.card h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--warm-soft);
}

.card p {
  color: var(--fg-muted);
  margin-bottom: 0;
}

.games-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 760px) {
  .games-row { grid-template-columns: 1fr; }
}

.games-note {
  margin-top: 28px;
  margin-bottom: 0;
}
.games-note code {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.game-card {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease;
}
.game-card:hover { transform: translateY(-3px); }

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.game-card figcaption {
  padding: 14px 16px;
  font-weight: 600;
  text-align: center;
  color: var(--fg);
}

.steps {
  max-width: 700px;
  margin: 32px auto 0;
  padding-left: 24px;
}

.steps li {
  margin-bottom: 18px;
}

.note {
  max-width: 700px;
  margin: 24px auto 0;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.help-step {
  max-width: 760px;
  margin: 0 auto 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.help-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.help-step h2 {
  font-size: 1.3rem;
  color: var(--warm-soft);
  margin-bottom: 14px;
}

.help-step ul, .help-step ol {
  color: var(--fg-muted);
  padding-left: 22px;
}
.help-step ul ul { margin-top: 6px; }
.help-step code {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.shot-placeholder {
  margin: 20px 0 0;
}

.shot-box {
  aspect-ratio: 16 / 9;
  max-width: 480px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px;
}

.shot-placeholder figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  max-width: 480px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--fg-muted);
  font-size: 0.85rem;
  text-align: center;
}
