:root {
  --wood-deep: #2b190f;
  --wood-dark: #5a3825;
  --wood: #8e5937;
  --wood-light: #bd8255;
  --gold: #f4b942;
  --gold-bright: #ffd66b;
  --gem: #42d6d0;
  --cream: #f8f1e5;
  --paper: #ffe2bf;
  --ink: #211a16;
  --muted: #716158;
  --dark: #17130f;
  --white: #fffaf4;
  --green: #a5b637;
  --container: 1200px;
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 5rem;
  --radius-sm: .75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --shadow-sm: 0 8px 24px rgba(55, 31, 17, .1);
  --shadow-md: 0 22px 60px rgba(39, 21, 12, .18);
  --shadow-game: 0 12px 0 #3a2114, 0 24px 50px rgba(20, 10, 5, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); font-family: "Nunito", sans-serif; font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gem); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--dark); }

.container { width: min(calc(100% - 2.5rem), var(--container)); margin-inline: auto; }
.section { position: relative; padding: clamp(5rem, 9vw, 8.5rem) 0; }
.centered { text-align: center; }
.skip-link { position: fixed; z-index: 2000; top: .75rem; left: .75rem; padding: .75rem 1rem; border-radius: .5rem; background: var(--white); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.scroll-progress { position: fixed; z-index: 1200; inset: 0 0 auto; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gem)); transform: scaleX(0); transform-origin: left; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; line-height: .98; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.6rem, 8vw, 7.75rem); font-weight: 900; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2.7rem, 5vw, 5.1rem); font-weight: 900; }
h3 { margin-bottom: .45rem; font-size: 1.22rem; line-height: 1.2; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.25rem; color: var(--wood); font-size: .78rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 2rem; height: 3px; border-radius: 5px; background: var(--gold); }
.eyebrow.light { color: var(--gold-bright); }
.section-heading { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-heading.centered { margin-inline: auto; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading > p:last-child { max-width: 620px; color: var(--muted); font-size: 1.12rem; }
.section-heading.centered > p:last-child { margin-inline: auto; }
.section-heading h2 span, .difficulty h2 span { color: var(--gold); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .85rem 1.5rem; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--wood-deep); box-shadow: 0 5px 0 #b77819; font-weight: 900; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #b77819; }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 #b77819; }
.button-small { min-height: 42px; padding: .55rem 1.2rem; font-size: .9rem; }
.store-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.store-badge { display: inline-flex; align-items: center; gap: .65rem; min-width: 175px; min-height: 58px; padding: .55rem 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: .8rem; background: #080808; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.2); transition: transform .2s, box-shadow .2s, opacity .2s; }
.store-badge svg { width: 29px; height: 29px; fill: currentColor; flex: none; }
.store-badge span { display: flex; flex-direction: column; font-size: 1.14rem; font-weight: 800; line-height: 1.05; }
.store-badge small { margin-bottom: .16rem; font-size: .58rem; font-weight: 600; letter-spacing: .04em; }
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.28); }
.store-badge.secondary-store { opacity: .72; transform: scale(.94); }
.store-badge.primary-store { box-shadow: 0 0 0 3px rgba(244,185,66,.5), 0 12px 28px rgba(0,0,0,.28); }

.site-header { position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; padding: .8rem 0; transition: padding .25s, background .25s, box-shadow .25s; }
.site-header.scrolled { padding: .35rem 0; background: rgba(32, 20, 13, .82); box-shadow: 0 6px 30px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { position: relative; z-index: 2; width: 154px; transition: width .25s; }
.site-header.scrolled .brand { width: 135px; }
.brand img { width: 100%; height: auto; }
.nav-panel { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); color: rgba(255,250,244,.82); font-size: .9rem; font-weight: 800; }
.nav-panel > a:not(.button) { position: relative; padding: .45rem 0; }
.nav-panel > a:not(.button)::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 5px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.nav-panel > a:not(.button):hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 45px; height: 45px; padding: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,.09); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; border-radius: 3px; background: var(--white); }

.hero { position: relative; min-height: 830px; padding: 8rem 0 2rem; overflow: hidden; background: radial-gradient(circle at 74% 35%, rgba(244,185,66,.18), transparent 25%), linear-gradient(135deg, #1b130e 0%, #342013 52%, #1d130d 100%); color: var(--white); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: var(--cream); clip-path: polygon(0 70%, 8% 53%, 16% 72%, 27% 45%, 39% 76%, 52% 53%, 64% 74%, 78% 44%, 89% 66%, 100% 47%, 100% 100%, 0 100%); }
.hero-texture { position: absolute; inset: 0; opacity: .12; background-image: repeating-linear-gradient(96deg, transparent 0 68px, rgba(255,255,255,.08) 70px, transparent 74px), repeating-linear-gradient(4deg, transparent 0 110px, rgba(0,0,0,.35) 112px, transparent 118px); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; }
.hero-grid > * { min-width: 0; }
.hero-copy { min-width: 0; padding: 3rem 0 6rem; }
.hero h1 span { position: relative; display: inline-block; color: var(--gold); text-shadow: 0 5px 0 #7c461b; }
.hero h1 span::after { content: ""; position: absolute; left: 3%; bottom: -.13em; width: 96%; height: .12em; border-radius: 100%; background: var(--gem); transform: rotate(-2deg); }
.hero-lead { max-width: 570px; margin-bottom: 2rem; color: rgba(255,250,244,.75); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero .store-buttons { margin-bottom: 1.25rem; }
.text-link { display: inline-flex; gap: .6rem; align-items: center; padding: .5rem 0; color: var(--gold-bright); font-size: .92rem; font-weight: 800; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateY(3px); }
.hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; }
.phone-shell { position: relative; z-index: 2; width: min(310px, 73vw); aspect-ratio: 9 / 17.2; padding: 10px; overflow: hidden; border: 3px solid #73523f; border-radius: 3.2rem; background: #120d0a; box-shadow: 0 50px 80px rgba(0,0,0,.48), 0 0 0 7px #251a14; transform: rotate(4deg); }
.phone-shell::after { content: ""; position: absolute; inset: 18px auto 18px 13px; width: 3px; border-radius: 5px; background: linear-gradient(transparent, rgba(255,255,255,.3), transparent); }
.phone-shell img { width: 100%; height: 100%; border-radius: 2.55rem; object-fit: cover; object-position: center 18%; }
.phone-speaker { position: absolute; z-index: 3; top: 16px; left: 50%; width: 33%; height: 20px; border-radius: 0 0 14px 14px; background: #120d0a; transform: translateX(-50%); }
.target-card { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 158px; min-height: 124px; padding: 1rem 1.8rem; border: 4px solid #fff0db; border-radius: 46% 54% 44% 56% / 17% 23% 18% 22%; background: linear-gradient(145deg, #ffe7c6, #efbc88); color: var(--wood-dark); box-shadow: 0 9px 0 #9b6744, var(--shadow-md); }
.target-card::before, .target-card::after { content: ""; position: absolute; width: 22px; height: 22px; background: var(--wood-light); opacity: .35; border-radius: 50%; }
.target-card::before { top: 8px; left: 12px; }
.target-card::after { right: 13px; bottom: 8px; }
.target-card small { font-size: .68rem; font-weight: 900; letter-spacing: .2em; }
.target-card strong { font-size: 3.6rem; line-height: 1; }
.target-card-hero { position: absolute; z-index: 4; top: 9%; right: -1%; transform: rotate(6deg); }
.target-card-hero strong { font-size: 2.6rem; }
.equation-chip { position: absolute; z-index: 3; padding: .7rem 1rem; border: 2px solid #c59265; border-radius: .7rem; background: #5b3925; color: var(--gold-bright); box-shadow: 0 6px 0 #29170e; font-size: 1.1rem; font-weight: 900; }
.chip-left { left: 0; bottom: 23%; transform: rotate(-7deg); }
.chip-right { right: 1%; bottom: 34%; transform: rotate(7deg); }
.hero-gem, .hero-coin { position: absolute; z-index: 3; object-fit: contain; filter: drop-shadow(0 15px 15px rgba(0,0,0,.35)); }
.hero-gem { right: 4%; bottom: 10%; width: 82px; transform: rotate(12deg); }
.hero-coin { left: 1%; top: 19%; width: 88px; transform: rotate(-10deg); }
.math-float { position: absolute; color: rgba(255,255,255,.055); font-size: 11rem; font-weight: 900; line-height: 1; }
.float-one { top: 18%; left: -1%; transform: rotate(-15deg); }
.float-two { right: 1%; top: 9%; transform: rotate(12deg); }
.float-three { right: 13%; bottom: 5%; }
.hero-trust { position: relative; z-index: 3; display: flex; justify-content: center; gap: 2.5rem; padding-bottom: 6rem; color: rgba(255,250,244,.6); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hero-trust span::first-letter { color: var(--gold); }

.how { padding-top: 6.5rem; }
.gameplay-stage { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 5rem); min-height: 300px; margin-bottom: 4rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(90,56,37,.12); border-radius: var(--radius-xl); background: #f0e3d1; box-shadow: inset 0 0 80px rgba(132,83,49,.08); }
.equation-build { display: flex; align-items: center; gap: clamp(.45rem, 1.5vw, 1rem); }
.math-tile { display: grid; place-items: center; width: clamp(56px, 8vw, 86px); aspect-ratio: 1; border: 3px solid #c58b49; border-radius: 1rem; background: linear-gradient(145deg, #fff0b9, #e8ad45); color: var(--wood-deep); box-shadow: 0 8px 0 #9f652c; font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 900; }
.math-tile.operator { background: linear-gradient(145deg, #6de5df, #37aea9); box-shadow: 0 8px 0 #247975; }
.math-tile.result { background: linear-gradient(145deg, #bdd15d, #91a22e); box-shadow: 0 8px 0 #596718; }
.equals { font-size: 2rem; font-weight: 900; }
.hit-check { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: white; box-shadow: 0 0 0 8px rgba(165,182,55,.16); font-size: 1.5rem; font-weight: 900; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { position: relative; padding: 2rem; border-top: 1px solid rgba(90,56,37,.18); }
.step > span { display: block; margin-bottom: 2rem; color: var(--wood-light); font-size: .75rem; font-weight: 900; letter-spacing: .18em; }
.step p { margin: 0; color: var(--muted); }

.features { background: #fffaf3; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { min-height: 270px; padding: 2rem; border: 1px solid rgba(90,56,37,.1); border-radius: var(--radius-lg); background: var(--cream); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-wide { display: grid; grid-template-columns: auto 1fr auto; grid-column: span 2; align-items: center; gap: 1.25rem; min-height: 200px; background: linear-gradient(125deg, #f7e6c8, #fff6e9); }
.feature-wide > strong { color: rgba(90,56,37,.14); font-size: clamp(3rem, 8vw, 6rem); line-height: 1; }
.feature-wide > strong small { font-size: .25em; }
.feature-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 3rem; border-radius: 1rem; background: var(--gold); color: var(--wood-deep); box-shadow: 0 6px 0 #b77724; font-size: 1.7rem; font-weight: 900; }
.feature-wide .feature-icon { margin: 0; }
.feature p { margin-bottom: 0; color: var(--muted); }
.feature-dark { background: linear-gradient(145deg, #302016, #1e1510); color: var(--white); }
.feature-dark p { color: rgba(255,250,244,.6); }
.operation-row { display: flex; gap: .45rem; margin-bottom: 3.2rem; }
.operation-row span { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.15); border-radius: .7rem; background: #4b3020; color: var(--gold); font-size: 1.35rem; font-weight: 900; }

.difficulty { overflow: hidden; background: radial-gradient(circle at 75% 45%, rgba(77,182,230,.12), transparent 26%), var(--dark); color: var(--white); }
.difficulty::before { content: "42"; position: absolute; right: -2%; bottom: -14%; color: rgba(255,255,255,.025); font-size: 28rem; font-weight: 900; line-height: 1; }
.difficulty-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.difficulty-copy > p:not(.eyebrow) { max-width: 540px; color: rgba(255,250,244,.63); font-size: 1.08rem; }
.difficulty-track { display: flex; align-items: center; gap: .7rem; margin-top: 2.5rem; color: rgba(255,255,255,.45); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.difficulty-track span.active { color: var(--gold); }
.difficulty-track i { width: clamp(25px, 5vw, 70px); height: 2px; background: linear-gradient(90deg, var(--gold), #61472b); }
.puzzle-shift { position: relative; display: grid; place-items: center; min-height: 520px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-xl); background: rgba(255,255,255,.035); }
.puzzle-shift .target-card { z-index: 2; }
.number-cloud span { position: absolute; display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid #81583b; border-radius: .9rem; background: #513321; color: #f7c463; box-shadow: 0 7px 0 #2a180f; font-size: 1.5rem; font-weight: 900; }
.number-cloud span:nth-child(1) { top: 13%; left: 15%; transform: rotate(-8deg); }
.number-cloud span:nth-child(2) { top: 20%; right: 13%; transform: rotate(7deg); }
.number-cloud span:nth-child(3) { left: 10%; bottom: 22%; transform: rotate(5deg); }
.number-cloud span:nth-child(4) { right: 12%; bottom: 20%; transform: rotate(-6deg); }
.number-cloud span:nth-child(5) { top: 8%; left: 48%; }
.number-cloud span:nth-child(6) { left: 26%; bottom: 8%; color: var(--gem); }
.number-cloud span:nth-child(7) { right: 26%; bottom: 7%; color: var(--gem); }
.number-cloud span:nth-child(8) { top: 42%; right: 5%; color: var(--gem); }
.puzzle-caption { position: absolute; bottom: 2rem; z-index: 2; width: 100%; margin: 0; text-align: center; color: rgba(255,255,255,.65); font-weight: 800; }
.hard-copy { display: none; color: var(--gold); }

.screenshots { overflow: hidden; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; }
.split-heading > p { width: min(100%, 370px); margin-bottom: .25rem; }
.screenshot-swiper { overflow: visible; padding-bottom: 4rem; }
.screen-card { margin: 0; padding: .8rem; overflow: hidden; border: 1px solid rgba(90,56,37,.12); border-radius: 2.25rem; background: #efe2d1; box-shadow: var(--shadow-sm); transition: transform .25s; }
.screen-card:hover { transform: translateY(-8px) rotate(-.5deg); }
.mini-phone { width: 100%; aspect-ratio: 9 / 17.2; overflow: hidden; border: 6px solid var(--dark); border-radius: 1.7rem; background: var(--dark); }
.mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; border-radius: 1.25rem; }
.screen-card figcaption { display: flex; justify-content: space-between; padding: 1.1rem .65rem .45rem; color: var(--wood-dark); font-size: .88rem; font-weight: 900; }
.screen-card figcaption span { color: var(--wood-light); }
.swiper-pagination-bullet { width: 8px; height: 8px; background: var(--wood); opacity: .3; }
.swiper-pagination-bullet-active { width: 28px; border-radius: 8px; background: var(--gold); opacity: 1; }
.swiper-button-next, .swiper-button-prev { top: auto; bottom: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--wood-dark); color: var(--white); }
.swiper-button-prev { left: auto; right: 55px; }
.swiper-button-next { right: 3px; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: .8rem; font-weight: 900; }

.rewards { background: #f0e4d5; }
.medal-path { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.medal-path article { position: relative; width: 15%; text-align: center; }
.medal-path article img { width: 100%; height: 145px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(70,39,20,.18)); transition: transform .25s; }
.medal-path article:hover img { transform: translateY(-7px) scale(1.04); }
.medal-path article span { display: block; margin-top: .8rem; color: var(--wood-dark); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.medal-path article.featured img { transform: scale(1.15); }
.medal-path i { flex: 1; height: 3px; margin: 0 -.5rem 1.5rem; background: repeating-linear-gradient(90deg, #c99c63 0 8px, transparent 8px 14px); }
.reward-note { display: grid; grid-template-columns: 140px 1fr 100px; align-items: center; gap: 1.5rem; width: min(100%, 780px); margin: 5rem auto 0; padding: 1rem 2rem; border-radius: var(--radius-lg); background: linear-gradient(130deg, var(--wood-dark), #362116); color: var(--white); box-shadow: var(--shadow-game); }
.reward-note img { width: 100%; height: 110px; object-fit: contain; }
.reward-note strong, .reward-note span { display: block; }
.reward-note strong { font-size: 1.35rem; }
.reward-note span { color: rgba(255,255,255,.6); }

.mid-cta { background: var(--cream); }
.cta-panel { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem); border-radius: var(--radius-xl); background: radial-gradient(circle at 90% 20%, rgba(244,185,66,.2), transparent 22%), linear-gradient(130deg, #241710, #51321e); color: var(--white); box-shadow: var(--shadow-md); }
.cta-panel::before { content: "+ × ÷ −"; position: absolute; right: 0; bottom: -1rem; color: rgba(255,255,255,.035); font-size: 8rem; font-weight: 900; white-space: nowrap; }
.cta-panel h2 { margin-bottom: 1rem; }
.cta-panel p:not(.eyebrow) { margin-bottom: 0; color: rgba(255,255,255,.65); }
.cta-panel > * { position: relative; z-index: 2; }
.cta-target { position: absolute; top: -25px; right: 8%; opacity: .15; transform: rotate(10deg) scale(.75); }

.mini-challenge { padding-top: 3rem; }
.challenge-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.challenge-intro > p:not(.eyebrow) { max-width: 460px; color: var(--muted); font-size: 1.08rem; }
.demo-label { display: inline-block; padding: .45rem .8rem; border-radius: 999px; background: #eadcca; color: var(--wood); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.challenge-board { position: relative; padding: clamp(2rem, 5vw, 4rem); border: 1px solid #cfa97c; border-radius: var(--radius-xl); background: linear-gradient(145deg, #70482f, #3b2518); box-shadow: var(--shadow-game); text-align: center; }
.challenge-board .target-card { margin-bottom: 2.2rem; }
.demo-equation { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 1.75rem; color: var(--white); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; }
.demo-equation span, .demo-equation b, .demo-equation strong { display: grid; place-items: center; width: clamp(52px, 7vw, 76px); height: clamp(52px, 7vw, 76px); border: 2px solid #95653e; border-radius: .8rem; background: #2e1c12; font-style: normal; }
.demo-equation b { color: var(--gold); }
.demo-equation em { font-style: normal; }
.operation-buttons { display: flex; justify-content: center; gap: .65rem; }
.operation-buttons button { width: 55px; height: 52px; border: 2px solid #d38e3b; border-radius: .8rem; background: linear-gradient(#f7c95d, #d9992e); color: #3d2517; box-shadow: 0 5px 0 #91581f; font-size: 1.4rem; font-weight: 900; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.operation-buttons button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #91581f; }
.operation-buttons button:active, .operation-buttons button.selected { transform: translateY(3px); box-shadow: 0 2px 0 #91581f; }
.operation-buttons button.correct { background: var(--green); border-color: #cfe76b; box-shadow: 0 5px 0 #60731a; }
.operation-buttons button.wrong { animation: shake .28s ease; }
.demo-feedback { min-height: 1.6rem; margin: 1.3rem 0 0; color: rgba(255,255,255,.6); font-weight: 800; }
.challenge-board.solved .demo-feedback { color: #cce777; }
.demo-cta { display: none; margin-top: 1rem; }
.challenge-board.solved .demo-cta { display: inline-flex; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.faq { background: #fffaf3; }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); }
.accordion { border-top: 1px solid rgba(90,56,37,.18); }
.faq-item { border-bottom: 1px solid rgba(90,56,37,.18); }
.faq-item h3 { margin: 0; }
.faq-item button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.5rem .25rem; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font-weight: 900; }
.faq-item button i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #eadac6; }
.faq-item button i::before, .faq-item button i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--wood); transform: translate(-50%, -50%); transition: transform .25s; }
.faq-item button i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open button i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { overflow: hidden; }
.faq-answer p { padding: 0 3.5rem 1.6rem .25rem; margin: 0; color: var(--muted); }
.faq-answer a { color: var(--wood); font-weight: 900; text-decoration: underline; }

.final-cta { overflow: hidden; padding: clamp(6rem, 12vw, 10rem) 0; background: radial-gradient(circle, #563621, #1c120c 65%); color: var(--white); }
.final-cta::before { content: ""; position: absolute; inset: 0; opacity: .13; background: repeating-linear-gradient(91deg, transparent 0 90px, rgba(255,255,255,.08) 92px, transparent 97px); }
.final-cta .container { position: relative; z-index: 2; }
.final-target { margin-bottom: 2.8rem; transform: rotate(-3deg); }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { font-size: clamp(3.3rem, 8vw, 7.5rem); }
.final-cta .container > p:not(.eyebrow) { color: rgba(255,255,255,.66); font-size: 1.18rem; }
.final-cta .store-buttons { justify-content: center; margin-top: 2rem; }
.final-symbols span { position: absolute; color: rgba(255,255,255,.045); font-size: clamp(6rem, 15vw, 13rem); font-weight: 900; }
.final-symbols span:nth-child(1) { top: 7%; left: 3%; transform: rotate(-10deg); }
.final-symbols span:nth-child(2) { bottom: 3%; left: 18%; }
.final-symbols span:nth-child(3) { top: 4%; right: 18%; }
.final-symbols span:nth-child(4) { right: 5%; bottom: 10%; }
.final-symbols span:nth-child(5) { left: 48%; bottom: -8%; }

.site-footer { padding: 4.5rem 0 1.5rem; background: #110c09; color: rgba(255,250,244,.66); }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .8fr; gap: 4rem; padding-bottom: 3.5rem; }
.footer-brand img { width: min(190px, 100%); height: auto; aspect-ratio: 588 / 193; margin-bottom: 1.2rem; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 340px; }
.footer-brand small { color: var(--gold); font-weight: 900; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: .6rem; }
.footer-grid strong { margin-bottom: .5rem; color: var(--white); }
.footer-grid a { width: fit-content; transition: color .2s; }
.footer-grid a:hover { color: var(--gold); }
.pending-link { color: rgba(255,255,255,.34); font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; }
.mobile-download { display: none; }

@media (max-width: 1024px) {
  .nav-panel { gap: 1rem; }
  .hero-grid { gap: 1.5rem; }
  .hero-visual { min-height: 570px; }
  .target-card-hero { right: 0; }
  .chip-left { left: -1rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .difficulty-grid { gap: 3rem; }
  .medal-path article img { height: 120px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 2rem), var(--container)); }
  .menu-toggle { position: relative; z-index: 1002; display: block; }
  .nav-panel { position: fixed; inset: 0 0 0 auto; z-index: 1001; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(88vw, 390px); padding: 6rem 2.5rem 3rem; background: rgba(28,18,12,.98); box-shadow: -20px 0 60px rgba(0,0,0,.35); visibility: hidden; transform: translateX(105%); }
  .nav-panel > a:not(.button) { font-size: 1.35rem; }
  .nav-panel .button { width: 100%; margin-top: 1rem; }
  .hero { min-height: auto; padding-top: 7rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { padding: 2rem 0 1rem; }
  .hero .eyebrow { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero .store-buttons { justify-content: center; }
  .hero-visual { min-height: 510px; }
  .phone-shell { width: 250px; }
  .target-card-hero { right: 7%; }
  .chip-left { left: 8%; }
  .chip-right { right: 8%; }
  .hero-coin { left: 7%; }
  .hero-gem { right: 7%; }
  .hero-trust { flex-wrap: wrap; gap: .7rem 1.5rem; padding-bottom: 7rem; }
  .gameplay-stage { flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 50px 1fr; column-gap: 1rem; padding: 1.5rem 0; }
  .step > span { grid-row: span 2; margin: .15rem 0 0; }
  .step p { grid-column: 2; }
  .difficulty-grid, .challenge-grid, .faq-grid { grid-template-columns: 1fr; }
  .difficulty-copy { text-align: center; }
  .difficulty-copy .eyebrow { justify-content: center; }
  .difficulty-copy > p:not(.eyebrow) { margin-inline: auto; }
  .difficulty-track { justify-content: center; }
  .split-heading { display: block; }
  .medal-path { overflow-x: auto; justify-content: flex-start; gap: 1.2rem; padding: 1rem 0 1.5rem; scroll-snap-type: x mandatory; }
  .medal-path article { flex: 0 0 140px; scroll-snap-align: center; }
  .medal-path i { flex: 0 0 28px; }
  .cta-panel { grid-template-columns: 1fr; text-align: center; }
  .cta-panel .eyebrow, .cta-panel .store-buttons { justify-content: center; }
  .challenge-intro { text-align: center; }
  .challenge-intro .eyebrow { justify-content: center; }
  .challenge-intro > p:not(.eyebrow) { margin-inline: auto; }
  .faq-grid .section-heading { margin-bottom: 0; text-align: center; }
  .faq-grid .eyebrow { justify-content: center; }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .section { padding-block: 4.8rem; }
  h1 { font-size: clamp(2.8rem, 13.4vw, 4rem); }
  h2 { font-size: clamp(2.45rem, 12vw, 3.8rem); }
  .brand { width: 132px; }
  .hero { padding-top: 6rem; }
  .hero-copy { padding-top: 1.5rem; }
  .hero-visual { width: 100%; min-height: 455px; margin-top: .5rem; }
  .phone-shell { width: 220px; margin-inline: auto; border-radius: 2.5rem; }
  .phone-shell img { border-radius: 2rem; }
  .phone-speaker { top: 14px; height: 16px; }
  .target-card-hero { top: 5%; right: 0; min-width: 120px; min-height: 92px; padding: .7rem 1rem; }
  .target-card-hero strong { font-size: 2.15rem; }
  .equation-chip { font-size: .85rem; }
  .chip-left { left: 0; bottom: 19%; }
  .chip-right { right: 0; }
  .hero-coin, .hero-gem { width: 64px; }
  .hero-trust { align-items: center; flex-direction: column; }
  .store-buttons { flex-direction: column; align-items: stretch; }
  .store-badge { justify-content: center; width: 100%; }
  .gameplay-stage { margin-inline: -.4rem; padding: 2rem 1rem; border-radius: 2rem; }
  .gameplay-stage .target-card { min-width: 135px; min-height: 105px; }
  .gameplay-stage .target-card strong { font-size: 3rem; }
  .equation-build { flex-wrap: wrap; justify-content: center; }
  .math-tile { width: 54px; border-radius: .75rem; box-shadow: 0 5px 0 #9f652c; }
  .math-tile.operator { box-shadow: 0 5px 0 #247975; }
  .math-tile.result { box-shadow: 0 5px 0 #596718; }
  .features-grid { grid-template-columns: 1fr; }
  .feature, .feature-wide { grid-column: auto; min-height: auto; }
  .feature-wide { display: block; }
  .feature-wide > strong { display: none; }
  .feature-icon, .operation-row { margin-bottom: 2rem; }
  .puzzle-shift { min-height: 450px; }
  .puzzle-shift .target-card { min-width: 135px; }
  .number-cloud span { width: 48px; height: 48px; font-size: 1.2rem; }
  .swiper-button-next, .swiper-button-prev { display: none; }
  .reward-note { grid-template-columns: 78px 1fr; padding: 1rem; }
  .reward-note img { height: 80px; }
  .reward-note img:last-child { display: none; }
  .reward-note strong { font-size: 1rem; }
  .reward-note span { font-size: .82rem; }
  .cta-panel { padding: 3rem 1.3rem; border-radius: 2rem; }
  .challenge-board { margin-inline: -.25rem; padding: 2rem 1rem; border-radius: 2rem; }
  .demo-equation { gap: .38rem; }
  .demo-equation span, .demo-equation b, .demo-equation strong { width: 49px; height: 49px; }
  .operation-buttons button { width: 49px; }
  .faq-answer p { padding-right: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { gap: 1rem; }
  .mobile-download { position: fixed; z-index: 900; right: .7rem; bottom: .7rem; left: .7rem; display: block; padding: .35rem; border: 1px solid rgba(255,255,255,.15); border-radius: 1rem; background: rgba(26,17,12,.92); box-shadow: 0 10px 35px rgba(0,0,0,.3); backdrop-filter: blur(12px); visibility: hidden; opacity: 0; transform: translateY(130%); }
  .mobile-download a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: .35rem .75rem .35rem 1rem; color: var(--white); }
  .mobile-download span { font-size: .86rem; font-weight: 900; }
  .mobile-download strong { padding: .55rem .8rem; border-radius: .7rem; background: var(--gold); color: var(--wood-deep); font-size: .74rem; }
  .mobile-download.visible { visibility: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-animate], .hero-in { visibility: visible !important; opacity: 1 !important; transform: none !important; }
}
