:root {
  --green: #2E9E52;
  --green-d: #1F7A3D;
  --orange: #FF7A3D;
  --orange-d: #D85F26;
  --sand: #FFE9B8;
  --paper: #FFFBF2;
  --ink: #2B2A38;
  --ink-deep: #1B1A24;
  --muted: #6B6A78;
  --purple: #6A48E0;
  --gold: #FFC93C;
  --blue: #2FB8E6;
  --radius: 20px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-weight: 600;
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 800;
  font-size: 15px;
}
.nav-links a { text-decoration: none; opacity: .8; }
.nav-links a:hover { opacity: 1; }
.lang-switch {
  display: flex;
  gap: 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  font-weight: 800;
  font-size: 13px;
}
.lang-switch a {
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a.active { background: var(--ink); color: #fff; }
.btn-cta {
  background: var(--orange);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--orange-d);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}
.btn-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-d); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sand), var(--paper) 70%);
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--orange); }
.hero p.lede {
  font-size: 18px;
  color: var(--muted);
  font-weight: 700;
  max-width: 46ch;
  margin-bottom: 28px;
}
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-deep);
  color: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 800;
}
.store-badge svg { width: 22px; height: 22px; flex: none; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .lines small { font-size: 10px; opacity: .75; font-weight: 700; }
.store-badge .lines strong { font-size: 15px; font-family: var(--font-display); }

.hero-art { position: relative; display: flex; justify-content: center; }
.phone-mock {
  width: 280px;
  background: var(--green);
  border-radius: 44px;
  border: 6px solid var(--ink);
  padding: 14px;
  box-shadow: 0 24px 0 -8px rgba(0,0,0,.12), 0 30px 40px rgba(43,42,56,.25);
  position: relative;
}
.phone-mock .screen {
  background: linear-gradient(160deg, #3CAE62, #2E9E52);
  border-radius: 28px;
  aspect-ratio: 9/18.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 24px;
  gap: 14px;
}
.phone-mock .screen img { width: 96px; height: 96px; border-radius: 24px; border: 3px solid rgba(255,255,255,.5); }
.phone-mock .screen .title { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.float-chip {
  position: absolute;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 0 rgba(43,42,56,.2);
}
.float-chip.c1 { top: 8%; left: -6%; }
.float-chip.c2 { bottom: 14%; right: -8%; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-d);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-weight: 700; font-size: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 6px 0 rgba(43,42,56,.12);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid var(--ink);
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14.5px; font-weight: 700; margin: 0; }

.creatures-strip {
  background: var(--ink-deep);
  color: #fff;
}
.creatures-strip .section-head h2 { color: #fff; }
.creatures-strip .section-head p { color: rgba(255,255,255,.65); }
.creature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.creature-card {
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
}
.creature-card .swatch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,.3);
}
.creature-card strong { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 4px; }
.creature-card span { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 700; }
@media (max-width: 900px) {
  .creature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .creature-grid { grid-template-columns: repeat(2, 1fr); }
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.mode-card {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--paper);
}
.mode-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  margin-bottom: 12px;
}
.mode-card h3 { font-size: 21px; margin-bottom: 8px; }
.mode-card p { color: var(--muted); font-weight: 700; font-size: 14.5px; margin: 0; }

.fair-play {
  background: var(--green);
  color: #fff;
  border-radius: 28px;
  border: 3px solid var(--ink);
  padding: 48px;
  text-align: center;
  margin: 0 24px;
}
.fair-play h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.fair-play p { max-width: 56ch; margin: 0 auto; font-weight: 700; opacity: .92; }
.fair-play .wrap { max-width: 1072px; }

.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.final-cta p { color: var(--muted); font-weight: 700; margin-bottom: 28px; }
.final-cta .store-badges { justify-content: center; }

footer {
  border-top: 3px solid var(--ink);
  padding: 32px 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
footer .links { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; }
  .hero-art { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .fair-play { margin: 0 16px; padding: 32px 20px; }
}

/* ---------- motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.9,.3,1.3);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.creature-grid [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.creature-grid [data-reveal]:nth-child(2) { transition-delay: 40ms; }
.creature-grid [data-reveal]:nth-child(3) { transition-delay: 80ms; }
.creature-grid [data-reveal]:nth-child(4) { transition-delay: 120ms; }
.creature-grid [data-reveal]:nth-child(5) { transition-delay: 160ms; }
.creature-grid [data-reveal]:nth-child(6) { transition-delay: 200ms; }
.creature-grid [data-reveal]:nth-child(7) { transition-delay: 240ms; }
.creature-grid [data-reveal]:nth-child(8) { transition-delay: 280ms; }
.creature-grid [data-reveal]:nth-child(9) { transition-delay: 320ms; }
.creature-grid [data-reveal]:nth-child(10) { transition-delay: 360ms; }

.feature-grid [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.feature-grid [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.feature-grid [data-reveal]:nth-child(3) { transition-delay: 160ms; }

.modes-grid [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.modes-grid [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.modes-grid [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.modes-grid [data-reveal]:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

.site-header { transition: height .25s ease, padding .25s ease, box-shadow .25s ease; }
.site-header.scrolled .wrap { height: 56px; }
.site-header.scrolled { box-shadow: 0 6px 16px rgba(43,42,56,.1); }
.site-header.scrolled .brand img { width: 30px; height: 30px; }

.store-badge { transition: transform .15s ease, box-shadow .15s ease; }
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(0,0,0,.15); }

.creature-card { transition: transform .2s ease; }
.creature-card:hover { transform: translateY(-4px) scale(1.03); }

.btn-cta { transition: transform .15s ease, box-shadow .15s ease; }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--orange-d); }
.btn-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-d); }

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 28px;
}

/* ---------- floating decorations ---------- */
.float-deco {
  position: absolute;
  pointer-events: none;
  filter: blur(0px);
  opacity: .9;
  animation: float-bob 7s ease-in-out infinite;
}
.float-deco canvas { display: block; filter: drop-shadow(0 10px 18px rgba(43,42,56,.18)); }
.float-deco.glow::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, currentColor, transparent 70%);
  opacity: .35;
  filter: blur(18px);
  z-index: -1;
}
.hero .float-deco.d1 { top: -4%; left: 4%; width: 54px; height: 54px; color: #7BD98C; animation-delay: 0s; }
.hero .float-deco.d2 { top: 58%; left: -2%; width: 40px; height: 40px; color: #FFB3C9; animation-delay: 1.2s; animation-duration: 6s; }
.hero .float-deco.d3 { bottom: -6%; left: 30%; width: 46px; height: 46px; color: #7ED0EF; animation-delay: 2.1s; animation-duration: 8s; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .float-deco { animation: none; }
}
@media (max-width: 860px) {
  .float-deco { display: none; }
}

/* ---------- creature canvas (real art, replaces color swatch) ---------- */
.creature-card .creature-canvas {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: block;
}

/* ---------- marquee ticker ---------- */
html, body { overflow-x: hidden; }
.marquee {
  overflow: hidden;
  background: var(--ink-deep);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 14px 0;
  transform: rotate(-1.2deg) scale(1.03);
  margin: -4px 0;
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.marquee-track .pip { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- shotline section (scroll-driven bank-shot demo) ---------- */
.shotline {
  position: relative;
  background: linear-gradient(180deg, var(--ink-deep), #241E3A 55%, var(--ink-deep));
  color: #fff;
  padding: 0;
}
.shotline-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#shotline-canvas { width: 100%; height: 100%; display: block; }
.shotline-combo {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-display);
  pointer-events: none;
}
.shotline-combo .num { font-size: clamp(40px, 8vw, 72px); font-weight: 700; line-height: 1; color: var(--gold); }
.shotline-combo .unit { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 800; }
.shotline-steps { position: relative; z-index: 2; }
.shotline-step {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1.1);
}
.shotline-step.is-visible { opacity: 1; transform: translateY(0); }
.shotline-step:nth-child(odd) { justify-content: flex-start; }
.shotline-step:nth-child(even) { justify-content: flex-end; }
.shotline-card {
  max-width: 420px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.shotline-card .step-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); margin-bottom: 8px; display: block; }
.shotline-card h3 { font-size: 24px; margin-bottom: 10px; color: #fff; }
.shotline-card p { color: rgba(255,255,255,.72); font-weight: 700; font-size: 15px; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .shotline-step { transition: none; }
  .shotline-sticky { position: relative; height: auto; min-height: 320px; }
}
@media (max-width: 760px) {
  .shotline-step:nth-child(odd), .shotline-step:nth-child(even) { justify-content: center; }
  .shotline-card { max-width: 92%; }
}
.screen-fallback {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 24px;
  gap: 14px;
}
html.reduced-motion .screen-fallback { display: flex; }
html.reduced-motion #hero-canvas { display: none; }

/* ---------- legal pages ---------- */
.legal-header { background: var(--sand); padding: 48px 0 32px; border-bottom: 3px solid var(--ink); }
.legal-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-d);
  margin-bottom: 10px;
}
.legal-header h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.legal-header .meta { color: var(--muted); font-weight: 700; font-size: 14px; }
.legal-body { padding: 48px 0 80px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.legal-toc {
  position: sticky;
  top: 96px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 18px;
  background: var(--paper);
}
.legal-toc .label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: block; }
.legal-toc ol { margin: 0; padding-left: 18px; font-size: 13.5px; font-weight: 700; display: flex; flex-direction: column; gap: 7px; }
.legal-toc a { text-decoration: none; color: var(--ink); opacity: .75; }
.legal-toc a:hover { opacity: 1; }
.legal-content h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 .num { color: var(--orange-d); font-size: 15px; }
.legal-content p, .legal-content li { font-size: 15px; color: var(--ink); font-weight: 600; margin: 0 0 14px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 14px; }
.legal-content strong { font-weight: 800; }
.legal-content a { color: var(--orange-d); font-weight: 800; }
.short-version {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 8px;
}
.short-version .label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--green-d); margin-bottom: 10px; display: block; }
.short-version ul { margin: 0; padding-left: 20px; }
.short-version li { margin-bottom: 8px; font-weight: 700; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 18px; }
.legal-table th, .legal-table td { border: 1px solid #E3DECF; padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--sand); font-weight: 800; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
