:root {
  --cream: #fff6e8;
  --cream-2: #ffefd5;
  --cream-3: #f6e2c1;
  --brown: #5c3a1e;
  --brown-2: #8d6a45;
  --ink: #3d2714;
  --green: #3fcb6e;
  --green-2: #2aa457;
  --yellow: #ffc83d;
  --blue: #1e5fd0;
  --pink: #ff8cc8;
  --radius: 26px;
  --shadow: 0 18px 40px rgba(92, 58, 30, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 200, 61, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(63, 203, 110, 0.12), transparent 60%),
    var(--cream);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand span, .btn, .chip, .kicker, .eyebrow {
  font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
}

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

a { color: inherit; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  backdrop-filter: blur(14px);
  background: rgba(255, 246, 232, 0.82);
  border-bottom: 1px solid rgba(92, 58, 30, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  color: var(--brown);
  letter-spacing: 0.2px;
}

.brand img { width: 40px; height: 40px; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
  color: var(--brown-2);
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--brown); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 3px solid #2b7a45;
  border-radius: 999px;
  background: linear-gradient(180deg, #58dd85, var(--green-2));
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
  box-shadow: 0 6px 0 #1d7a3f, 0 14px 26px rgba(42, 164, 87, 0.28);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #1d7a3f; }

.btn-small { padding: 9px 20px; font-size: 15px; border-width: 2px; box-shadow: 0 4px 0 #1d7a3f; }

.btn-ghost {
  background: #fffaf0;
  color: var(--brown);
  border-color: var(--cream-3);
  box-shadow: 0 5px 0 #e2cba6;
  text-shadow: none;
}

.btn-ghost:hover { filter: none; background: #fff; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  font-weight: 800;
  color: var(--brown);
  letter-spacing: -0.5px;
}

h1 br { display: block; }

.lede {
  margin: 0 0 26px;
  max-width: 34ch;
  font-size: 19px;
  color: #6a4d33;
}

.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.micro { font-size: 14px; font-weight: 700; color: var(--brown-2); }

.play-link { display: inline-flex; align-items: center; }
.play-link img { width: auto; height: 64px; }

.facts {
  display: flex;
  gap: 28px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--brown-2);
  font-size: 14px;
  font-weight: 700;
}

.facts strong { display: block; font-size: 24px; color: var(--brown); font-family: "Baloo 2", sans-serif; }

/* ---------------------------------------------------------------- phone */
.hero-art { display: flex; justify-content: center; }

.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.phone {
  position: relative;
  height: min(720px, 78vh);
  aspect-ratio: 9 / 19.5;
  width: auto;
  max-width: 92vw;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #5a4128, #2a1c12 55%);
  box-shadow:
    0 34px 70px rgba(92, 58, 30, 0.32),
    inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.phone canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #ffe7c2;
  touch-action: manipulation;
}

.screen {
  position: absolute;
  inset: 11px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(38, 23, 11, 0.55);
  backdrop-filter: blur(7px);
  text-align: center;
  z-index: 3;
}

.screen[hidden] { display: none; }

.screen-start {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 220, 150, 0.28), transparent 55%),
    rgba(44, 27, 13, 0.66);
}

.start-logo { width: min(280px, 88%); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35)); }

.start-line {
  margin: 18px 0 22px;
  color: #ffe9c4;
  font-weight: 700;
  font-size: 16px;
}

.btn-play { padding: 16px 56px; font-size: 22px; }

.start-hint { margin: 18px 0 0; color: rgba(255, 233, 196, 0.65); font-size: 13px; }

.panel {
  width: 100%;
  padding: 26px 22px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fffaf0, var(--cream-2));
  border: 3px solid #fff;
  box-shadow: 0 16px 34px rgba(20, 12, 4, 0.35);
}

.panel .kicker {
  margin: 0 0 4px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.panel h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.1; color: var(--brown); }

.stars { display: flex; justify-content: center; gap: 6px; margin: 12px 0 6px; }
.stars img { width: 44px; height: 44px; object-fit: contain; transition: transform 0.2s ease; }
.stars img.dim { opacity: 0.22; filter: grayscale(1); }
.stars img:not(.dim) { animation: star-pop 0.45s ease both; }
.stars img:nth-child(2) { animation-delay: 0.1s; }
.stars img:nth-child(3) { animation-delay: 0.2s; }

@keyframes star-pop {
  0% { transform: scale(0.2) rotate(-18deg); }
  70% { transform: scale(1.15) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

.win-meta { margin: 4px 0 18px; font-weight: 700; color: var(--brown-2); font-size: 15px; }

.lose-copy { margin: 0 0 18px; font-size: 15px; color: #6a4d33; }

.screen-actions { display: flex; flex-direction: column; gap: 10px; }
.screen-actions .btn { width: 100%; padding: 13px 20px; font-size: 17px; }

.under-phone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }

.dots { display: flex; gap: 7px; }

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e6d3b4;
  box-shadow: inset 0 1px 2px rgba(92, 58, 30, 0.2);
}

.dots i.done { background: var(--green); }
.dots i.active { background: var(--yellow); transform: scale(1.35); }

.toggles { display: flex; gap: 8px; }

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid #e8d5b6;
  background: #fffaf0;
  color: var(--brown-2);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chip[aria-pressed="true"] { background: #e9f9ef; border-color: #b7e8c6; color: var(--green-2); }

/* ---------------------------------------------------------------- strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 42px auto 0;
  padding: 0 24px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(92, 58, 30, 0.07);
}

.strip-item img { width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto; }

.strip-item strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 18px; color: var(--brown); }
.strip-item span { font-size: 14px; color: #6a4d33; line-height: 1.45; }

/* ---------------------------------------------------------------- sections */
.how, .about {
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 24px 24px;
}

.section-head { max-width: 620px; margin-bottom: 34px; }

h2 { margin: 0 0 14px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; color: var(--brown); font-weight: 800; }

.section-lede { margin: 0; font-size: 18px; color: #6a4d33; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  background: #fffaf0;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}

.card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }

.card-bg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; opacity: 0.16; margin: 0 !important; }

.card h3 { position: relative; margin: 0 0 8px; font-size: 21px; color: var(--brown); }

.card p { position: relative; margin: 0; font-size: 15px; color: #6a4d33; line-height: 1.55; }

.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 48px; }

.about-copy p { margin: 0 0 16px; color: #5c4029; max-width: 56ch; }

.note {
  margin-top: 20px !important;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 200, 61, 0.16);
  border: 2px dashed rgba(180, 130, 30, 0.35);
  font-size: 14px;
  font-weight: 700;
  color: #7a5a1e !important;
}

.about-art { display: flex; justify-content: center; }
.about-art img { width: min(340px, 100%); filter: drop-shadow(0 24px 30px rgba(92, 58, 30, 0.2)); }

/* ---------------------------------------------------------------- footer */
.footer {
  margin-top: 84px;
  padding: 34px 24px 46px;
  background: linear-gradient(180deg, transparent, rgba(246, 226, 193, 0.55));
  border-top: 2px solid rgba(92, 58, 30, 0.08);
}

.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; justify-items: center; gap: 8px; text-align: center; }

.footer-inner img { width: 44px; height: 44px; object-fit: contain; }

.footer p { margin: 0; font-size: 14px; color: #6a4d33; max-width: 60ch; }
.footer .fine { font-size: 12px; color: #9c8166; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 26px; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .facts { justify-content: center; }
  .hero-art { order: 2; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-art { order: -1; }
  .strip { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { padding: 10px 16px; gap: 12px; }
  .nav-links { display: none; }
  .brand { font-size: 20px; }
  .brand img { width: 32px; height: 32px; }
  .btn-small { padding: 8px 14px; font-size: 13px; }
  .hero { padding: 22px 16px 0; }
  h1 { font-size: 40px; }
  .facts { gap: 18px; }
  .phone { height: auto; width: min(93vw, 390px); aspect-ratio: 9 / 19.5; border-radius: 38px; padding: 9px; }
  .phone canvas, .screen { border-radius: 30px; }
  .screen { inset: 9px; padding: 18px; }
  .panel h2 { font-size: 26px; }
  .how, .about { padding: 62px 16px 0; }
  .cards { grid-template-columns: 1fr; }
  .footer { margin-top: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .stars img { transition: none; animation: none; }
}
