:root {
  --navy: #0d2b5e;
  --navy-2: #1b4594;
  --red: #d62839;
  --gold: #f4b400;
  --cream: #fffaf0;
  --sky: #eaf3ff;
  --ink: #1d2433;
  --muted: #5a6478;
  --line: #e4e7ef;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13, 43, 94, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: 'Baloo 2', 'Nunito', sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 250, 240, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 800 1.25rem 'Baloo 2', sans-serif; }
.brand img { width: 46px; height: 46px; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: var(--sky); }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 10px; font: 700 0.95rem 'Nunito', sans-serif; padding: 6px 12px; cursor: pointer; }
@media (max-width: 780px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--cream); flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: 800 1.05rem 'Nunito', sans-serif; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; background: var(--red); color: #fff; box-shadow: 0 4px 0 #a51c2b; transition: transform 0.1s; }
.btn:hover { transform: translateY(-1px); }
.btn.navy { background: var(--navy); box-shadow: 0 4px 0 #071a3b; }
.btn.ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn[aria-disabled='true'] { background: #c9ced9; box-shadow: none; color: #3f4758; cursor: default; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* sections */
section { padding: 64px 0; }
.alt { background: #fff; }
.sky { background: var(--sky); }
.eyebrow { display: inline-block; font-weight: 800; color: var(--red); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 6px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--sky), var(--cream)); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .tagline { font: italic 700 1.2rem 'Baloo 2', sans-serif; color: var(--red); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; }
.card img.thumb { border-radius: 12px; margin-bottom: 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--sky); }
.card img.thumb.contain { object-fit: contain; }
.card .btns { margin-top: auto; padding-top: 12px; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #fff3cd; color: #7a5600; margin-bottom: 10px; align-self: flex-start; }
.tag.new { background: #ffe1e4; color: var(--red); }

.shot { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.fan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fan img { border-radius: 12px; box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: '★'; position: absolute; left: 4px; color: var(--gold); font-size: 1.1rem; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery img { border-radius: 12px; box-shadow: var(--shadow); }

.games { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); counter-reset: g; }
.game { background: #fff; border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); border-top: 6px solid var(--navy-2); }
.game:nth-child(2n) { border-top-color: var(--red); }
.game:nth-child(3n) { border-top-color: var(--gold); }
.game .meta { font-size: 0.88rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.game ol { padding-left: 1.2em; margin: 0; }
.game li { margin-bottom: 4px; }

.buy { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.buy .note { font-size: 0.92rem; color: var(--muted); margin: 12px 0 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.facts div { background: var(--sky); border-radius: 14px; padding: 12px 14px; }
.facts b { display: block; font: 800 1.4rem 'Baloo 2', sans-serif; color: var(--navy); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* footer */
footer { background: var(--navy); color: #dfe7f7; padding: 40px 0 28px; font-size: 0.95rem; }
footer a { color: #fff; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer h4 { color: #fff; margin: 0 0 8px; font: 800 1.05rem 'Baloo 2', sans-serif; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 16px; color: #aab8d6; font-size: 0.85rem; }
@media (max-width: 700px) { footer .wrap { grid-template-columns: 1fr; } }
/* let grid columns shrink on phones instead of growing to fit wide images */
.hero .wrap > *, .split > *, .grid > * { min-width: 0; }

/* ===================== playful layer ===================== */
:root { --sun: #ffd23f; --mint: #3ddc97; --coral: #ff6b6b; --sky-2: #cfe6ff; }
body { background: var(--cream); }
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #fff6c9 0%, transparent 60%), linear-gradient(180deg, #bfe0ff 0%, #e6f2ff 55%, var(--cream) 100%); padding-bottom: 96px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: var(--cream); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 0 480 70 720 40 S 1200 0 1440 40 V70 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 0 480 70 720 40 S 1200 0 1440 40 V70 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero .wrap { position: relative; z-index: 1; }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles span { position: absolute; color: var(--sun); font-size: 22px; text-shadow: 0 2px 0 rgba(13,43,94,.15); animation: twinkle 3s ease-in-out infinite; }
.sparkles span:nth-child(2n) { color: #fff; font-size: 16px; animation-delay: -1.2s; }
.sparkles span:nth-child(3n) { color: var(--coral); font-size: 14px; animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(20deg); opacity: .5; } }
.hl { position: relative; white-space: nowrap; color: var(--red); }
.hl::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .28em; background: var(--sun); border-radius: 999px; z-index: -1; transform: rotate(-1.5deg); }
h1 .hl { z-index: 0; }
.stickers { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.sticker { display: inline-flex; align-items: center; gap: 6px; font: 800 .92rem 'Nunito', sans-serif; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--navy); box-shadow: 0 3px 0 rgba(13,43,94,.18); transform: rotate(-2deg); }
.sticker:nth-child(2) { transform: rotate(2deg); background: var(--sun); }
.sticker:nth-child(3) { transform: rotate(-1deg); background: #dff7ec; }
.photo-frame { position: relative; }
.photo-frame .shot { transform: rotate(1.5deg); border: 8px solid #fff; box-shadow: 0 18px 40px rgba(13,43,94,.25); }
.photo-frame .tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; background: rgba(255,210,63,.75); transform: rotate(-4deg); border-radius: 3px; z-index: 2; }
.float-card { position: absolute; width: 92px; border-radius: 8px; box-shadow: 0 10px 22px rgba(13,43,94,.3); border: 3px solid #fff; z-index: 2; animation: bob 5s ease-in-out infinite; }
.float-card.a { left: -34px; bottom: -26px; transform: rotate(-12deg); }
.float-card.b { right: -24px; top: -30px; transform: rotate(10deg); animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 860px) { .float-card { width: 70px; } .float-card.a { left: -6px; } .float-card.b { right: -6px; } }

/* marquee of state cards */
.ribbon { background: var(--navy); color: #fff; padding: 26px 0 30px; overflow: hidden; position: relative; }
.ribbon h2 { color: #fff; text-align: center; margin-bottom: 18px; }
.ribbon h2 small { display: block; font: 700 .95rem 'Nunito', sans-serif; color: var(--sun); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.track { display: flex; gap: 18px; width: max-content; animation: slide 60s linear infinite; }
.ribbon:hover .track { animation-play-state: paused; }
.track img { width: 130px; height: auto; border-radius: 10px; border: 3px solid #fff; transform: rotate(var(--r, 0deg)); transition: transform .2s; }
.track img:hover { transform: rotate(0) scale(1.08); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track, .float-card, .sparkles span { animation: none; } }

/* colourful product cards */
.card.pop { border-top: 8px solid var(--red); transition: transform .2s, box-shadow .2s; }
.card.pop:nth-child(2) { border-top-color: var(--sun); }
.card.pop:nth-child(3) { border-top-color: var(--mint); }
.card.pop:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 36px rgba(13,43,94,.18); }
.card.pop .thumb { background: linear-gradient(135deg, #e6f2ff, #fff6c9); }

/* quiz */
.quiz-wrap { background: linear-gradient(135deg, #fff1d6, #ffe0e6 60%, #e3f0ff); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; }
@media (max-width: 760px) { .quiz-wrap { grid-template-columns: minmax(0, 1fr); padding: 24px; } }
.clue { font: 800 clamp(1.5rem, 3.5vw, 2.1rem) 'Baloo 2', sans-serif; color: var(--navy); margin: 6px 0 16px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choices button { font: 800 1.05rem 'Nunito', sans-serif; padding: 14px 10px; border-radius: 16px; border: 3px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; box-shadow: 0 4px 0 var(--navy); transition: transform .1s; }
.choices button:hover { transform: translateY(-2px); }
.choices button.right { background: var(--mint); border-color: #1d8f5f; box-shadow: 0 4px 0 #1d8f5f; color: #0b3d27; }
.choices button.wrong { background: #ffd9d9; border-color: var(--coral); box-shadow: 0 4px 0 var(--coral); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-weight: 800; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.stars-score { color: var(--gold); font-size: 1.3rem; letter-spacing: 2px; }

/* flip cards */
.flip { perspective: 1000px; cursor: pointer; background: none; border: 0; padding: 0; width: 100%; display: block; }
.flip-inner { position: relative; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; aspect-ratio: 2 / 3; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; backface-visibility: hidden; box-shadow: 0 10px 24px rgba(13,43,94,.22); }
.flip img.back { transform: rotateY(180deg); }
.flip .hint { position: absolute; right: 8px; bottom: 8px; z-index: 3; background: var(--sun); color: var(--navy); font: 800 .75rem 'Nunito', sans-serif; padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 0 rgba(0,0,0,.15); backface-visibility: hidden; }
.quiz-card .flip-inner { box-shadow: none; }
.quiz-card .front-q { position: absolute; inset: 0; border-radius: 12px; background: repeating-linear-gradient(45deg, var(--navy) 0 14px, var(--navy-2) 14px 28px); display: grid; place-items: center; color: #fff; font: 800 4rem 'Baloo 2', sans-serif; backface-visibility: hidden; box-shadow: 0 10px 24px rgba(13,43,94,.22); border: 5px solid #fff; }

/* wavy section tops */
.wave-top { position: relative; }
.wave-top::before { content: ''; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: inherit; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 360 0 720 40 1080 15 S 1440 20 1440 20 V40 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 360 0 720 40 1080 15 S 1440 20 1440 20 V40 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.sun-band { background: var(--sun); }
.sun-band h2 { color: var(--navy); }
.mint-band { background: #dff7ec; }
footer { position: relative; }
.eyebrow { background: #fff; padding: 4px 12px; border-radius: 999px; box-shadow: 0 2px 0 rgba(13,43,94,.1); }
.flip { position: relative; }
.flip-inner, .flip img, .quiz-card .front-q { display: block; }
.flip-inner { width: 100%; }
.flip-inner { -webkit-transform-style: preserve-3d; }
.flip img, .flip .hint, .quiz-card .front-q { -webkit-backface-visibility: hidden; }
.flip img.back { transform: rotateY(180deg) translateZ(1px); }
.flip img:not(.back), .quiz-card .front-q { transform: translateZ(1px); }
/* 2D flip: squeeze to zero width, swap faces, open again (works in every browser) */
.flip .flip-inner, .flip.flipped .flip-inner { transform: none; transition: transform .22s ease-in; }
.flip.turning .flip-inner { transform: scaleX(0); }
.flip img.back, .flip img:not(.back), .quiz-card .front-q { transform: none; }
.flip img.back { opacity: 0; }
.flip.flipped img.back { opacity: 1; }
.flip.flipped img:not(.back), .flip.flipped .front-q { opacity: 0; }
.quiz-card .front-q { display: grid; place-items: center; }
.quiz-badge { width: 200px; height: 200px; margin-inline: auto; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 96px; box-shadow: 0 10px 0 rgba(13,43,94,.12), var(--shadow); border: 6px dashed var(--sun); }
@media (max-width: 760px) { .quiz-badge { width: 130px; height: 130px; font-size: 64px; } }

/* ===================== KIDS THEME ===================== */
:root { --outline: #1b2a4a; --pink: #ffd6e4; --lilac: #e7dcff; --lemon: #fff4b8; --mint2: #d6f5e3; --skyk: #cdeaff; }
body { font-family: 'Nunito', system-ui, sans-serif; background-color: #fffaf0; background-image: radial-gradient(#ffd9a8 1.6px, transparent 1.6px); background-size: 26px 26px; }
h1, h2, h3, .brand { font-family: 'Fredoka', 'Baloo 2', sans-serif; letter-spacing: .2px; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.8rem); font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* header: colourful pill buttons */
.top { background: #fff; border-bottom: 4px solid var(--outline); }
.brand { font-size: 1.45rem; color: var(--navy); }
.brand img { width: 52px; height: 52px; transition: transform .3s; }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav a { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.02rem; border: 3px solid var(--outline); box-shadow: 0 3px 0 var(--outline); background: var(--lemon); margin: 2px; transition: transform .12s; }
.nav a:nth-child(2) { background: var(--pink); }
.nav a:nth-child(3) { background: var(--mint2); }
.nav a:nth-child(4) { background: var(--lilac); }
.nav a:nth-child(5) { background: var(--skyk); }
.nav a:hover { transform: translateY(-2px) rotate(-2deg); background-color: #fff; }
.nav a[aria-current] { background: var(--red); color: #fff; }
.menu-btn { border-width: 3px; box-shadow: 0 3px 0 var(--outline); background: var(--lemon); }

/* sky scene in every hero */
.hero { background: linear-gradient(180deg, #7cc8ff 0%, #b8e2ff 55%, #e9f6ff 100%); padding-top: 70px; }
.hero::after { background: #fffaf0; }
.kid-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kid-sky .sun { position: absolute; right: 3%; top: 14px; width: 120px; animation: spin 30s linear infinite; }
.kid-sky .cloud { position: absolute; opacity: .95; filter: drop-shadow(0 6px 0 rgba(27,42,74,.08)); animation: drift 38s linear infinite; }
.kid-sky .c1 { width: 170px; top: 26px; left: -10%; }
.kid-sky .c2 { width: 120px; top: 120px; left: 40%; animation-duration: 52s; animation-delay: -20s; }
.kid-sky .c3 { width: 150px; top: 60%; left: 70%; animation-duration: 46s; animation-delay: -35s; opacity: .8; }
.kid-sky .plane { position: absolute; width: 200px; left: 36%; top: 34px; animation: fly 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { translate: -20vw 0; } to { translate: 120vw 0; } }
@keyframes fly { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 14px -10px; rotate: 3deg; } }
@media (max-width: 760px) { .kid-sky .sun { width: 78px; } .kid-sky .plane { width: 130px; left: 50%; top: 10px; } }
@media (prefers-reduced-motion: reduce) { .kid-sky * { animation: none !important; } }
.hero .eyebrow, .eyebrow { font-family: 'Fredoka', sans-serif; font-weight: 600; letter-spacing: .04em; color: var(--outline); background: var(--sun); border: 3px solid var(--outline); box-shadow: 0 3px 0 var(--outline); transform: rotate(-2deg); display: inline-block; padding: 4px 14px; }
.tagline { font-family: 'Fredoka', sans-serif; font-style: normal; font-size: 1.3rem; color: #fff; display: inline-block; background: var(--red); padding: 4px 14px; border-radius: 14px; border: 3px solid var(--outline); transform: rotate(1deg); box-shadow: 0 3px 0 var(--outline); }
.hero .lead { color: #23324f; font-weight: 600; }

/* chunky cartoon buttons */
.btn { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.12rem; border: 3px solid var(--outline); box-shadow: 0 5px 0 var(--outline); padding: 12px 26px; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 8px 0 var(--outline); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--outline); }
.btn.navy { background: #4d7cff; }
.btn.ghost { background: #fff; color: var(--outline); box-shadow: 0 5px 0 var(--outline); }
.btn[aria-disabled='true'] { border-color: #8a93a8; box-shadow: 0 5px 0 #8a93a8; }

/* cartoon frames on photos and cards */
.shot, .photo-frame .shot { border: 4px solid var(--outline); border-radius: 22px; box-shadow: 10px 10px 0 var(--sun); transform: rotate(-1.2deg); background: #fff; }
.split > .shot:nth-of-type(1) { box-shadow: 10px 10px 0 #ff9ab2; }
.photo-frame .tape { background: rgba(255,107,107,.8); }
.card, .buy, .game, .quiz-wrap { border: 4px solid var(--outline); border-radius: 26px; box-shadow: 8px 8px 0 var(--outline); }
.card.pop { border-top-width: 4px; }
.card.pop:nth-child(1) { background: #fff3f5; }
.card.pop:nth-child(2) { background: #fffbe6; }
.card.pop:nth-child(3) { background: #effcf5; }
.card.pop:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 12px 14px 0 var(--outline); }
.card .thumb { border: 3px solid var(--outline); border-radius: 16px; }
.game { border-top-width: 10px; }
.game:nth-child(1) { background: #fff3f5; } .game:nth-child(2) { background: #fffbe6; } .game:nth-child(3) { background: #effcf5; }
.game:nth-child(4) { background: #f3eeff; } .game:nth-child(5) { background: #eaf6ff; } .game:nth-child(6) { background: #fff1e0; }
.tag { border: 2px solid var(--outline); font-family: 'Fredoka', sans-serif; font-weight: 600; }
.sticker { border: 3px solid var(--outline); box-shadow: 0 3px 0 var(--outline); font-family: 'Fredoka', sans-serif; font-weight: 600; }
.facts div { background: #fff; border: 3px solid var(--outline); box-shadow: 0 4px 0 var(--outline); border-radius: 18px; }
.facts div:nth-child(1) { background: var(--pink); } .facts div:nth-child(2) { background: var(--lemon); } .facts div:nth-child(3) { background: var(--mint2); }
.facts b { font-family: 'Fredoka', sans-serif; }
.ticks li::before { content: '⭐'; font-size: 1rem; top: 1px; }
.choices button { font-family: 'Fredoka', sans-serif; font-weight: 600; border-color: var(--outline); box-shadow: 0 5px 0 var(--outline); }
.quiz-badge { border: 5px dashed var(--outline); background: var(--lemon); }

/* playful section colours (instead of plain white) */
section.alt { background: var(--lilac); }
section.sky { background: var(--skyk); }
section.sun-band { background: #ffd23f; }
section.mint-band { background: var(--mint2); }
.center h2 { display: inline-block; position: relative; }
h2 { position: relative; }
.center h2::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -10px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 Q 12 0 22 8 T 42 8 T 62 8 T 82 8 T 102 8 T 118 8' fill='none' stroke='%23ff6b6b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* grassy hills above the footer */
.hills { position: relative; height: 90px; margin-top: -10px; }
.hills svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hills .flower { position: absolute; bottom: 30px; font-size: 26px; animation: sway 3s ease-in-out infinite; transform-origin: bottom center; }
.hills .flower:nth-child(odd) { animation-delay: -1.5s; }
@keyframes sway { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
footer { background: #3f9a4a; color: #effff0; border-top: 0; }
footer h4 { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; }
footer .fine { color: #d9f5dc; border-top-color: rgba(255,255,255,.3); }
.hero .tagline { color: #fff; }
.center > .eyebrow, .center > div > .eyebrow { display: table; margin: 0 auto 12px; }
.hero .wrap.center .eyebrow { display: table; margin: 0 auto 12px; }
.kid-sky .cloud { opacity: 1; }
/* phones: show the product picture first */
@media (max-width: 860px) {
  .hero .photo-frame { order: -1; max-width: 520px; margin: 0 auto 6px; }
  .hero { padding-top: 64px; }
}
.photo-frame a { display: block; }
/* home: two big product pictures right away */
.hero-duo { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.duo-head { grid-column: 1 / -1; text-align: center; }
.duo-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 4px; }
.duo { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 4px solid var(--outline); border-radius: 28px; box-shadow: 10px 10px 0 var(--sun); overflow: hidden; transition: transform .15s, box-shadow .15s; transform: rotate(-1deg); }
.duo.two { box-shadow: 10px 10px 0 #ff9ab2; transform: rotate(1deg); }
.duo:hover { transform: translateY(-6px) rotate(0); box-shadow: 14px 16px 0 var(--outline); }
.duo-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 4px solid var(--outline); background: #f3e6d0; }
.duo-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duo:first-of-type .duo-pic img { object-position: 55% 55%; }
.duo-text { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; align-items: flex-start; }
.duo-text b { font: 700 1.6rem 'Fredoka', sans-serif; color: var(--navy); }
.duo-text > span:not(.btn):not(.duo-tag) { color: var(--muted); font-weight: 600; }
.duo-tag { font: 600 .9rem 'Fredoka', sans-serif; background: var(--lemon); border: 2px solid var(--outline); border-radius: 999px; padding: 2px 10px; }
.duo.two .duo-tag { background: var(--pink); }
.duo-text .btn { margin-top: 8px; }
@media (max-width: 760px) { .hero-duo { grid-template-columns: minmax(0, 1fr); gap: 22px; } .duo, .duo.two { transform: none; } .duo-pic { aspect-ratio: 16 / 10; } .duo-head { text-align: left; } }
/* home: short banner + every product on one shelf */
.hero.banner { padding: 46px 0 70px; }
.hero.banner h1 { margin: 12px 0 6px; }
.hero.banner .lead { margin-inline: auto; color: #23324f; }
.shelf-sec { padding: 10px 0 56px; }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .shelf { gap: 14px; } }
.prod { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: #fff; border: 4px solid var(--outline); border-radius: 24px; box-shadow: 7px 7px 0 var(--outline); padding: 12px 12px 14px; transition: transform .15s, box-shadow .15s; }
.prod:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 10px 12px 0 var(--outline); }
.prod.p1 { background: #fff3f5; } .prod.p2 { background: #fffbe6; } .prod.p3 { background: #effcf5; } .prod.p4 { background: #f3eeff; }
.prod-pic { position: relative; display: block; aspect-ratio: 4 / 3; border: 3px solid var(--outline); border-radius: 16px; overflow: hidden; margin-bottom: 8px; background: #fff; }
.prod-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod b { font: 700 1.2rem 'Fredoka', sans-serif; color: var(--navy); line-height: 1.2; }
.prod > span:not(.prod-pic):not(.go) { font-size: .92rem; font-weight: 700; color: var(--muted); }
.prod .go { margin-top: auto; padding-top: 6px; font: 600 1rem 'Fredoka', sans-serif; color: var(--red); }
.soon { position: absolute; top: 8px; right: 8px; background: var(--sun); border: 2px solid var(--outline); border-radius: 999px; font: 600 .78rem 'Fredoka', sans-serif; padding: 2px 9px; color: var(--outline); }
.hero.banner .wrap { display: block; }
footer h4 { font-weight: 500; letter-spacing: .3px; }
footer, footer p, footer li, footer a { font-weight: 400; }
/* hover: lift straight up, never tilt */
.prod:hover, .card.pop:hover, .duo:hover { transform: translateY(-5px); }
.btn:hover { transform: translateY(-3px); }
.nav a:hover { transform: translateY(-2px); }
/* real U.S. map next to the quiz */
.quiz-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.quiz-map { background: #e9f6ff; border: 4px solid var(--outline); border-radius: 22px; padding: 10px; box-shadow: 6px 6px 0 var(--outline); min-height: 160px; }
.usmap { width: 100%; height: auto; display: block; }
.usmap .st path { fill: #fff3b0; transition: fill .3s; }
.usmap .st path:nth-child(3n) { fill: #ffd6e4; }
.usmap .st path:nth-child(3n+1) { fill: #d6f5e3; }
.usmap .bd { fill: none; stroke: var(--outline); stroke-width: 1.2; stroke-linejoin: round; }
.usmap .st path.hit { fill: #ff4d5e; stroke: var(--outline); stroke-width: 3; animation: pop .6s ease; transform-box: fill-box; transform-origin: center; }
.usmap .st path.miss { fill: #b9c2d6; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (max-width: 760px) { .quiz-wrap { grid-template-columns: minmax(0, 1fr); } }
/* product pictures sit straight — no tilt anywhere */
.shot, .photo-frame .shot, .split > .shot:nth-of-type(1), .duo, .duo.two, .prod, .card, .buy, .game, .quiz-wrap { transform: none !important; }
.prod:hover, .card.pop:hover, .duo:hover { transform: translateY(-5px) !important; }
.photo-frame .tape { transform: none; }

/* Math Kingdom plans & prices */
.buy .price { font: 700 2rem 'Fredoka', sans-serif; color: var(--navy); margin: 4px 0; }
.buy .price small { font-size: 1rem; color: var(--muted); }
.buy .price s { font-size: 1.05rem; color: var(--muted); margin-left: 6px; }
.buy.best { background: #fffbe6; }
.early-box { margin: 32px auto 0; max-width: 820px; background: #fff; border: 4px solid var(--outline); border-radius: 26px; box-shadow: 8px 8px 0 var(--outline); padding: 22px 26px; }
.early-box h3 { margin: 0 0 8px; }
.early-box li { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
.compare { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: #fff; border: 4px solid var(--outline); border-radius: 22px; overflow: hidden; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 2px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-family: 'Fredoka', sans-serif; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 700; }
.compare td:last-child { background: #fffbe6; }
.small { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 600px) { .compare th, .compare td { padding: 9px 8px; font-size: 0.88rem; } }
.pdf-note { font-size: .9rem; opacity: .8; margin-top: 8px; }
.dl-box { text-align: center; max-width: 640px; }
.dl-box .btn { font-size: 1.15rem; }
.fine-print { font-size: .9rem; opacity: .8; margin-top: 28px; }
