/* ============================================================
   Shakti Arcade — style.css
   Warm, friendly, playful arcade design system
   ============================================================ */

:root {
  --bg: #fff8f0;
  --surface: #ffffff;
  --surface-2: #fff1e3;
  --ink: #2a211c;
  --muted: #7a6a5d;
  --line: #f0e2d4;
  --accent: #ff6b4a;
  --accent-2: #ffb020;
  --accent-ink: #e04e2e;
  --amber-ink: #a86a12;      /* readable amber for small uppercase labels */
  --good: #2f9e6f;
  --radius: 20px;
  --shadow: 0 10px 34px rgba(120, 70, 40, .10);
  --header-h: 62px;   /* sticky header height — drives scroll-margin-top */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* decorative blobs bleed past the viewport edge — never let them scroll the page */
  overflow-x: clip;
}

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-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 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.6rem;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo-claw {
  flex: none;
  background: linear-gradient(135deg, rgba(255, 107, 74, .16), rgba(255, 176, 32, .18));
  border-radius: 14px;
  padding: 3px;
}

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--muted);
  font-weight: 650;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--accent-ink); text-decoration: none; }

/* burger (hidden on desktop) */
.nav-toggle { display: none; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface-2);
}
.burger span {
  width: 24px;
  height: 3px;
  background: var(--accent-ink);
  border-radius: 3px;
}

/* ---------- Layout primitives ---------- */
.section {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  padding: 4.5rem 1.25rem;
  scroll-margin-top: var(--header-h);
}

/* full-bleed coloured band */
.band {
  position: relative;
  background: var(--surface-2);
  margin: 3.5rem 0;
  padding: 4.5rem 0;
  scroll-margin-top: var(--header-h);
}
.band::before,
.band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-repeat: repeat-x;
  background-size: 28px 14px;
  pointer-events: none;
}
.band::before {
  top: 0;
  background-image: radial-gradient(circle at 50% 0%, var(--bg) 9px, transparent 10px);
}
.band::after {
  bottom: 0;
  background-image: radial-gradient(circle at 50% 100%, var(--bg) 9px, transparent 10px);
}
.band-inner {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 1.25rem;
}

/* playful dotted section divider */
.dots-divider {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--line);
}
.dots-divider::before,
.dots-divider::after {
  content: "";
  flex: 1;
  border-top: 3px dotted var(--line);
}
.dots-divider span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: .75;
}
.dots-divider span:nth-child(2) { background: var(--accent); }

/* ---------- Type ---------- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--amber-ink);
  background: rgba(255, 176, 32, .16);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin: 0 0 0.9rem;
}
.overline-center {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.85rem, 4.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  margin: 0 0 0.8rem;
}
.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 750;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(255, 107, 74, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 107, 74, .34);
  filter: saturate(1.06);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }
.btn-secondary {
  color: var(--accent-ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-secondary:hover {
  box-shadow: 0 12px 26px rgba(120, 70, 40, .14);
  filter: none;
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 3.5rem; }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  top: -90px;
  right: -70px;
  width: 380px;
  height: 380px;
  background: radial-gradient(closest-side, rgba(255, 176, 32, .26), transparent);
}
.hero::after {
  bottom: -60px;
  left: -110px;
  width: 300px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(255, 107, 74, .18), transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 2.75rem;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1rem;
}
.subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 0 0 1.9rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.9rem;
}

/* hero illustration on a coral blob */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 107, 74, .90), rgba(255, 176, 32, .85));
  border-radius: 46% 54% 40% 60% / 56% 44% 56% 44%;
  box-shadow: 0 18px 44px rgba(224, 78, 46, .22);
}
.hero-art svg {
  position: relative;
  z-index: 1;
  max-width: 280px;
}

/* compliance pills */
.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.42rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(120, 70, 40, .08);
}
.pill-check {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--good);
}

/* ============================================================
   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) - 6px);
  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, .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: 1.1rem;
  font-size: 0.95rem;
}

/* ============================================================
   HOW TO PLAY — numbered timeline
   ============================================================ */
.timeline {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}
.tl-step { position: relative; }
.tl-num {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.3rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(255, 107, 74, .30);
  border: 4px solid var(--bg);
}
.tl-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tl-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* mobile: vertical dotted rail */
@media (max-width: 879px) {
  .tl-step { padding-left: 74px; min-height: 54px; }
  .tl-num { position: absolute; left: 0; top: 0; }
  .tl-step::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 58px;
    bottom: -2.25rem;
    border-left: 3px dotted var(--accent-2);
    opacity: .65;
  }
  .tl-step:last-child::before { display: none; }
}

/* desktop: horizontal dotted rail */
@media (min-width: 880px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .tl-step { text-align: center; }
  .tl-num { margin: 0 auto 1.1rem; }
  .tl-step::before {
    content: "";
    position: absolute;
    top: 26px;
    left: calc(50% + 38px);
    right: calc(-50% + 38px);
    border-top: 3px dotted var(--accent-2);
    opacity: .65;
  }
  .tl-step:last-child::before { display: none; }
}

/* ============================================================
   WHAT IS A CLAW MACHINE — prose + quick facts panel
   ============================================================ */
.whatis-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: start;
  margin-top: 0.5rem;
}
.whatis-prose p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}
.whatis-prose p:last-child { margin-bottom: 0; }

.facts-panel {
  background: var(--surface-2);
  border: 2px dashed rgba(255, 107, 74, .38);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
}
.facts-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.facts-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.fact-icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}
.fact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--amber-ink);
}
.fact-value {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.whatis-note {
  max-width: 780px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.5rem;
}

/* ============================================================
   ABOUT — peach band, prose + at-a-glance table
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.25rem;
  align-items: start;
  margin-top: 0.5rem;
}
.about-prose p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}
.about-prose p:last-child { margin-bottom: 0; }
.about-prose strong { color: var(--ink); }

.about-glance {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 0.9rem;
}
.about-glance h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--ink);
}
.glance-list { margin: 0; }
.glance-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--line);
}
.glance-row:last-child { border-bottom: none; }
.glance-row dt {
  font-weight: 750;
  color: var(--ink);
  font-size: 0.9rem;
}
.glance-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   RESPONSIBLE PLAY — calm centred column
   ============================================================ */
.responsible-wrap {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.responsible-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 107, 74, .16), rgba(255, 176, 32, .20));
  color: var(--accent-ink);
}
.responsible-badge svg { width: 38px; height: 38px; }
.responsible-wrap p {
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.responsible-wrap .overline {
  color: var(--amber-ink);
  margin: 0 auto 0.9rem;
}
.responsible-wrap .responsible-note {
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}

/* ============================================================
   FAQ — accordion
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}
.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.15rem 1.4rem;
  font-weight: 750;
  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: "";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2.5px 12px no-repeat,
    rgba(255, 107, 74, .12);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.4rem 1.25rem; }
.faq-body p { margin: 0; color: var(--muted); }

/* ============================================================
   Policy pages
   ============================================================ */
.policy-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  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.75rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.policy-card .policy-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}
.policy-card h2 {
  font-size: 1.18rem;
  font-weight: 750;
  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-2);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
}
.site-footer .footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.site-footer p { margin: 0.4rem 0; }
.footer-strong { color: var(--ink); font-weight: 750; }
.footer-links { margin-top: 1.1rem !important; }
.footer-links a { color: var(--accent-ink); font-weight: 650; }
.footer-copy { margin-top: 1.1rem !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .whatis-grid,
  .about-grid { grid-template-columns: 1fr; }
}

/* Tablet / mobile: collapse nav into burger */
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .burger { display: flex; }
  /* keep the collapsed nav row from padding out the header height */
  .header-inner { row-gap: 0; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .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 .overline { margin-inline: auto; }
  .hero-copy .subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .compliance-strip { justify-content: center; }
  .hero-art {
    order: -1;
    max-width: 330px;
    margin-inline: auto;
  }
  .hero-art svg { max-width: 210px; }
}

@media (max-width: 420px) {
  :root { --header-h: 60px; }
  .section { padding: 3.25rem 1rem; }
  .band { padding: 3.25rem 0; }
  .band-inner { padding: 0 1rem; }
  .header-inner { padding: 0.75rem 1rem; }
  .policy-card { padding: 1.5rem 1.25rem 1.75rem; }
  .pill { font-size: 0.8rem; }
  .tl-step { padding-left: 66px; }
  .tl-num { width: 48px; height: 48px; font-size: 1.15rem; }
  .tl-step::before { left: 23px; top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-item summary::after { transition: none; }
  .btn:hover { transform: none; }
}
