/* ============================================================
   Turnbull Arcade — style.css
   Light premium design system
   ============================================================ */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --ink: #16202e;
  --muted: #5c6b80;
  --line: #e2e8f1;
  --accent: #2f6bff;
  --accent-ink: #1b47b8;
  --good: #1f9d57;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(20, 32, 50, 0.08);
}

* { 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(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 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(--ink);
}
.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(--accent); 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(--ink);
  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: 72px;   /* land below the sticky header on anchor jumps */
}

.overline {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.overline-center { text-align: center; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  margin: 0 0 0.75rem;
}
.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}
.hero-copy .overline { margin-bottom: 0.75rem; }
.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1rem;
}
.subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-art { display: flex; justify-content: center; }
.hero-art svg { max-width: 300px; }

/* compliance strip */
.compliance-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.pill-check {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--good);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px rgba(47, 107, 255, 0.25);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  text-decoration: none;
}
.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--line);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Game ---------- */
.game-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem;
  max-width: 984px;
  margin: 0 auto;
}
#game-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 960 / 540;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid var(--line);
}
#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.5rem 1.25rem;
  margin-top: 1rem;
}
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem 1.5rem 1.6rem;
  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;
  font-size: 0.9rem;
  color: #ffffff;
  background: var(--accent);
}
.step-icon {
  width: 44px;
  height: 44px;
  margin: 0.5rem auto 0.85rem;
  display: block;
  color: var(--accent);
}
.step-card h3 { margin: 0 0 0.5rem; color: var(--ink); font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- What is a claw machine? ---------- */
.whatis-prose {
  max-width: 760px;
  margin: 0 auto 2rem;
}
.whatis-prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.whatis-prose p:last-child { margin-bottom: 0; }
.info-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0 auto 2rem;
  max-width: 900px;
}
.info-card {
  padding: 1.5rem;
  text-align: center;
}
.info-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  display: block;
  color: var(--accent);
}
.info-card h3 { margin: 0 0 0.4rem; color: var(--ink); font-size: 1rem; }
.info-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.whatis-note {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- About / What this is ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.about-prose p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.about-prose p:last-child { margin-bottom: 0; }
.about-glance {
  padding: 1.5rem 1.5rem 0.5rem;
}
.about-glance h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 1.1rem;
}
.glance-list { margin: 0; }
.glance-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.glance-row:last-child { border-bottom: none; }
.glance-row dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}
.glance-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Responsible Play ---------- */
.responsible-card {
  padding: 1.75rem 1.75rem;
  max-width: 780px;
  margin: 0 auto;
}
.responsible-card p { margin: 0 0 1rem; color: var(--muted); }
.responsible-card p:last-child { margin-bottom: 0; }
.responsible-note {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 1.25rem 1.15rem;
}
.faq-body p { margin: 0; color: var(--muted); }

/* ---------- Policy pages ---------- */
.policy-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.policy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 2.25rem 2.5rem;
}
.policy-card h1 {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.policy-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}
.policy-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.6rem;
}
.policy-card h2:first-of-type { margin-top: 0.5rem; }
.policy-card p,
.policy-card li {
  color: var(--muted);
}
.policy-card p { margin: 0 0 1rem; }
.policy-card ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.policy-card li { margin: 0.35rem 0; }
.policy-card strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.site-footer p { margin: 0.4rem 0; }
.footer-strong { color: var(--ink); font-weight: 700; }
.footer-links a { color: var(--accent); }
.footer-copy { margin-top: 1rem; color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .info-row { grid-template-columns: repeat(3, 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: 340px;
    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-actions { justify-content: center; }
  .compliance-strip { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 220px; }

  .about-grid { grid-template-columns: 1fr; }
}

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