/* ============================================================
   Lucky Claw Arcade — style.css
   Night arcade / neon design system
   ============================================================ */

:root {
  --bg: #101426;
  --surface: #1a2038;
  --accent: #ff5d9e;
  --accent-2: #4de1ff;
  --gold: #ffcc4d;
  --text: #eef1fb;
  --muted: #9aa3c7;
  --radius: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1000px 600px at 15% -10%, rgba(255, 93, 158, 0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(77, 225, 255, 0.15), transparent 55%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 20, 38, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(154, 163, 199, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-claw { flex: none; }

.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* burger (hidden on desktop) */
.nav-toggle { display: none; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1100px;
  margin-inline: auto;
  padding: 4.5rem 1.25rem;
  scroll-margin-top: 80px;   /* land below the sticky header on anchor jumps */
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  margin: 0 0 2rem;
}
.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: -1rem auto 2rem;
}

/* ---------- Hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}
.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0 0 1.75rem;
}
.hero-art { display: flex; justify-content: center; }
.hero-art svg { max-width: 300px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  color: #101426;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(255, 93, 158, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(77, 225, 255, 0.45);
  text-decoration: none;
}

/* ---------- Game ---------- */
#game-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 960 / 540;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(77, 225, 255, 0.25);
  box-shadow: 0 0 40px rgba(77, 225, 255, 0.12);
}
#game {
  display: block;
  width: 100%;
  height: 100%;
  background: #0c1024;
  outline: none;
  touch-action: none;
}
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hud-coins {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(#ffd54d, #f5a623);
  color: #5a3a12;
  border: 2px solid #7a4a12;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.hud-prizes { top: 42px; }
.hud-stack {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hud-btn {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#ffd54d, #f5a623);
  border: 2px solid #7a4a12;
  border-radius: 12px;
  box-shadow: 0 3px 0 #b9791a;
}
.hud-btn .glyph {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.hud-btn .cap {
  color: #5a3a12;
  font-size: 0.6rem;
  font-weight: 700;
  margin-top: 2px;
}
.controls-hint {
  text-align: center;
  color: var(--muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(154, 163, 199, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.step-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: #101426;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.step-icon {
  width: 44px;
  height: 44px;
  margin: 0.5rem auto 0.75rem;
  display: block;
}
.step-card h3 { margin: 0 0 0.5rem; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Collection ---------- */
.collection-wall {
  background: var(--surface);
  border: 1px solid rgba(154, 163, 199, 0.15);
  border-radius: var(--radius);
  min-height: 200px;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.collection-empty { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid rgba(154, 163, 199, 0.15);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0.3rem 0; }
.footer-links a { color: var(--accent-2); }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Tablet / mobile: collapse nav into burger */
@media (max-width: 820px) {
  .burger { display: flex; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-toggle:checked ~ .site-nav {
    max-height: 300px;
    padding-top: 0.75rem;
  }
  .site-nav a { padding: 0.5rem 0; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .subtitle { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 220px; }
}

@media (max-width: 400px) {
  .section { padding: 3rem 1rem; }
  .header-inner { padding: 0.75rem 1rem; }
}
