/* Joy of Awareness — site styles (v3: refined storybook) */

/* Self-hosted fonts (Fredoka, Nunito — SIL Open Font License). No requests to Google. */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(../fonts/fredoka-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(../fonts/fredoka-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --cream: #ffffff;          /* page base: clean white */
  --paper: #f3f9f6;          /* alternate band: whisper of mint */
  --sand: #eef6f2;
  --morning: linear-gradient(180deg, #dff1ff 0%, #ecf8f3 55%, #ffffff 100%);
  --forest: #1f3b2d;
  --forest-2: #2c5440;
  --gold: #f2b33d;
  --gold-deep: #d9951c;
  --gold-soft: #fdeccb;
  --peach: #ffdcc4;
  --sage: #d5ead6;
  --sky: #d3e9fa;
  --lilac: #e9ddf6;
  --ink: #23302a;
  --ink-soft: #5f6b64;
  --line: rgba(31, 59, 45, .1);
  --shadow-sm: 0 2px 6px rgba(31, 59, 45, .06), 0 8px 24px rgba(31, 59, 45, .06);
  --shadow-lg: 0 10px 30px rgba(31, 59, 45, .1), 0 30px 70px rgba(31, 59, 45, .1);
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Fredoka", "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-2); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
button { font: inherit; }
h1, h2, h3, .section-head p { text-wrap: balance; }
.nb { display: inline-block; white-space: nowrap; }   /* keep a Chinese phrase on one line; break only between phrases */
html[data-lang="zh"] .parents-card h2 { line-height: 1.25; letter-spacing: .04em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }

/* bilingual */
html[data-lang="en"] [lang="zh"],
html[data-lang="zh"] [lang="en"] { display: none !important; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2 { letter-spacing: .02em; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand .mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 3px 6px rgba(217,149,28,.28)); transition: transform .5s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.brand .word { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; white-space: nowrap; letter-spacing: -.01em; color: var(--forest); }
.brand .word .j { color: var(--gold-deep); }
.brand .word .of { font-size: .72em; font-weight: 500; color: var(--ink-soft); margin: 0 .05em; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .98rem; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--forest); background: rgba(31,59,45,.06); }
.lang-btn {
  border: 1.5px solid var(--line); background: transparent; color: var(--forest);
  font-weight: 800; font-size: .88rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { background: #fff; border-color: rgba(31,59,45,.25); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px; padding: 16px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 10px 24px rgba(31,59,45,.25); }
.btn-primary:hover { background: var(--forest-2); box-shadow: 0 14px 30px rgba(31,59,45,.3); }
.btn-primary .play {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold); display: grid; place-items: center;
}
.btn-primary .play svg { width: 10px; height: 10px; margin-left: 2px; }
.btn-soft { background: rgba(255,255,255,.9); color: var(--forest); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 90px; overflow: hidden; background: var(--morning); margin-top: -72px; padding-top: 112px; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; z-index: 0; }
.hero .b1 { width: 520px; height: 520px; background: #ffe3cf; left: -200px; top: -60px; opacity: .55; }
.hero .b2 { width: 480px; height: 480px; background: #bfe4ff; right: -140px; top: 20px; }
.hero .b3 { width: 420px; height: 420px; background: #c9f0dc; left: 30%; bottom: -180px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 7px 16px 7px 8px;
  font-weight: 800; font-size: .88rem; color: var(--forest); box-shadow: var(--shadow-sm);
}
.pill i { width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; font-style: normal; }
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem); color: var(--forest);
  margin: 22px 0 18px; font-weight: 600;
}
.hero h1 em {
  font-style: normal; color: var(--gold-deep); position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .16em;
  background: var(--gold-soft); border-radius: 99px; z-index: -1;
}
.hero .lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 520px; margin: 0 0 30px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding: 0; list-style: none; font-weight: 700; font-size: .93rem; color: var(--ink-soft); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; flex: none; }

.hero-art { position: relative; padding-bottom: 40px; }
.arch {
  position: relative; aspect-ratio: 4 / 4.3; border-radius: 999px 999px 40px 40px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 10px solid #fff;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 40%; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,236,170,.18), rgba(255,249,240,0) 40%, rgba(31,59,45,.12)); }
.hero-art .crew { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: flex-end; gap: 0; pointer-events: none; }
.hero-art .crew img { height: clamp(95px, 11vw, 150px); width: auto; margin: 0 -8px; filter: drop-shadow(0 12px 12px rgba(31,59,45,.25)); animation: float 4.5s ease-in-out infinite; }
.hero-art .crew img:nth-child(2) { animation-delay: -1.1s; }
.hero-art .crew img:nth-child(3) { animation-delay: -2.2s; height: clamp(110px, 13vw, 175px); position: relative; z-index: 1; }
.hero-art .crew img:nth-child(4) { animation-delay: -3.3s; }
.hero-art .crew img:nth-child(5) { animation-delay: -4s; }
.spark { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff7cf; box-shadow: 0 0 12px 4px rgba(255,214,110,.85); animation: twinkle 4s ease-in-out infinite; z-index: 2; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%,100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes hop { 0% { transform: translateY(0) } 35% { transform: translateY(-22px) rotate(-3deg) } 65% { transform: translateY(0) rotate(2deg) } 82% { transform: translateY(-6px) } 100% { transform: none } }

/* ---------- section basics ---------- */
section { padding: 110px 0; position: relative; }
section[id] { scroll-margin-top: 72px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
html[data-lang="zh"] .eyebrow { letter-spacing: .3em; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--forest); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---------- story: night sky that turns into sunrise as flowers wake ---------- */
.story {
  color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #14303a 0%, #1f4747 50%, #34625a 100%);   /* forest dusk */
}
.sky-stars {
  position: absolute; inset: 0; z-index: -2; opacity: .9;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 8%,  #fff 50%, transparent 51%),
    radial-gradient(2px 2px     at 44% 22%, #fff6c8 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 63% 10%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 78% 24%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 90% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 52%,  #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 95% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 20% 80%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 86% 82%, #fff 50%, transparent 51%);
  animation: starTwinkle 4s ease-in-out infinite alternate;
}
@keyframes starTwinkle { from { opacity: .45; } to { opacity: 1; } }
.dawn {
  position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1.2s var(--ease);
  background: linear-gradient(180deg, #cfe9ff 0%, #e0f3fb 42%, #e8f8ef 78%, #ffffff 100%);   /* same morning as the hero */
}
.story .section-head h2 { color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.25); transition: color .9s, text-shadow .9s; }
.story .section-head p { color: rgba(255,255,255,.82); transition: color .9s; }
.story .section-head p b { color: #ffe08a; font-weight: 800; transition: color .9s; }
.sky-stars { transition: opacity 1.2s; }
/* once the sky is bright, switch text to the site's dark ink */
.story.day .sky-stars { opacity: 0; animation: none; }
.story.day .section-head h2 { color: var(--forest); text-shadow: none; }
.story.day .section-head p { color: var(--ink-soft); }
.story.day .section-head p b { color: var(--gold-deep); }
.story.day .ptext { color: var(--forest); text-shadow: none; }
.story.day .ptext b { color: var(--gold-deep); }
.story.day .pflowers svg .pt { fill: rgba(31,59,45,.15); }
.story.day .pflowers svg.on .pt { fill: var(--gold); }
.story.day .magic { box-shadow: var(--shadow-lg); }
.story .eyebrow { color: var(--gold); }

.magic {
  position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 1072 / 608;
  border-radius: 34px; overflow: hidden; border: 8px solid rgba(255,255,255,.92);
  box-shadow: 0 30px 80px rgba(5, 25, 25, .5), 0 0 0 1px rgba(255,255,255,.2); transition: box-shadow 1s;
  background: #222;
}
.magic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.magic .dim { filter: grayscale(.92) brightness(.58) contrast(.92); }
.magic .lit { -webkit-mask-image: linear-gradient(transparent, transparent); mask-image: linear-gradient(transparent, transparent); }

.hot {
  position: absolute; width: 11%; min-width: 42px; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 0; padding: 0; border-radius: 50%; cursor: pointer; background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.hot::before {            /* breathing glow: "tap me" */
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,246,200,.95) 0 14%, rgba(255,214,100,.55) 36%, rgba(255,200,80,0) 70%);
  animation: breathe 1.8s ease-in-out infinite;
}
.hot::after {             /* dashed ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px dashed rgba(255,236,170,.9); animation: spin 9s linear infinite;
}
.hot:hover::before { animation-duration: .9s; }
.hot.on { pointer-events: none; }
.hot.on::after { opacity: 0; transition: opacity .4s; }
.hot.on::before { animation: glint 2.6s ease-in-out infinite; background: radial-gradient(circle, rgba(255,252,225,1) 0 12%, rgba(255,222,110,.7) 32%, rgba(255,196,60,0) 68%); mix-blend-mode: screen; }
@keyframes breathe { 0%,100% { transform: scale(.75); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.fx { position: absolute; inset: 0; pointer-events: none; }
.bit {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--bc, #ffd76a); box-shadow: 0 0 10px 2px rgba(255,214,110,.8);
  animation: burst .9s cubic-bezier(.15,.7,.3,1) forwards;
}
.bit.star { border-radius: 0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: none; }
@keyframes burst { from { transform: translate(0,0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.confetti {
  position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 3px; background: var(--bc);
  animation: fall var(--t, 2.6s) cubic-bezier(.3,.6,.5,1) forwards;
}
@keyframes fall { to { transform: translate(var(--dx), 120%) rotate(var(--rot)); top: 105%; opacity: .9; } }

.toast {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: rgba(255,255,255,.95); color: var(--forest); font-weight: 800;
  padding: 6px 18px 6px 6px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--gold-soft); }

.done { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,240,200,.25), rgba(0,0,0,0) 70%); }
.done[hidden] { display: none; }
.done-card {
  text-align: center; background: rgba(255,255,255,.94); color: var(--ink);
  border-radius: 28px; padding: 22px 30px 24px; max-width: 420px; margin: 0 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: popIn .5s var(--ease);
}
.done-crew { display: flex; justify-content: center; align-items: flex-end; margin-top: -70px; }
.done-crew img { height: 96px; width: auto; margin: 0 -6px; animation: hop .8s var(--ease) infinite alternate; }
.done-crew img:nth-child(2) { height: 110px; animation-delay: .2s; }
.done-crew img:nth-child(3) { animation-delay: .4s; }
.done-card h3 { color: var(--gold-deep); font-size: 1.6rem; margin: 8px 0 6px; }
.done-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: .95rem; }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.progress { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.pflowers { display: flex; gap: 10px; }
.pflowers svg { width: 30px; height: 30px; transition: transform .4s var(--ease); }
.pflowers svg { filter: drop-shadow(0 2px 6px rgba(30,20,60,.35)); }
.pflowers svg .pt { fill: rgba(255,255,255,.3); transition: fill .4s; }
.pflowers svg.on { transform: scale(1.15) rotate(20deg); }
.pflowers svg.on .pt { fill: var(--gold); }
.ptext { font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(10,30,30,.45); transition: color .9s; }
.ptext b { color: #fff; font-size: 1.25em; }

/* ---------- friends stage ---------- */
.friends { background: var(--cream); }
.stage {
  --tint: var(--peach); --accent: #e8833a;
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  background: #fff; border-radius: 40px; padding: 40px 56px 40px 40px; box-shadow: var(--shadow-lg);
  overflow: hidden; transition: background-color .6s var(--ease);
}
.stage-art { position: relative; height: 440px; display: flex; align-items: flex-end; justify-content: center; }
.stage-art::before {     /* a true, fully visible circle behind the character */
  content: ""; position: absolute; left: 50%; bottom: 20px;
  width: min(380px, 88%); aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--tint); transition: background-color .6s var(--ease);
}
.stage-art::after {      /* soft ground shadow */
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 46%; height: 18px;
  transform: translateX(-50%); border-radius: 50%; background: rgba(31,59,45,.12); filter: blur(6px);
}
.stage-art img {
  position: absolute; bottom: 0; z-index: 1; max-height: 430px; width: auto;
  filter: drop-shadow(0 22px 22px rgba(31,59,45,.22));
  opacity: 0; transform: translateY(20px) scale(.96); transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.stage-art img.on { opacity: 1; transform: none; }
.stage-art img.on.hop { animation: hop .7s var(--ease); }
.quote {
  position: absolute; top: 18px; right: 2%; max-width: 230px; z-index: 2;
  background: #fff; border-radius: 22px 22px 22px 6px; padding: 12px 18px;
  font-weight: 800; color: var(--forest); box-shadow: var(--shadow-sm); font-size: .98rem;
}
.panel { position: relative; display: none; }
.panel.on { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel .who { font-weight: 800; color: var(--accent); font-size: .95rem; letter-spacing: .04em; }
.panel h3 { font-size: clamp(2.8rem, 5vw, 4.2rem); color: var(--forest); margin: 4px 0 16px; }
.panel h3 small { font-size: .42em; color: var(--ink-soft); font-weight: 500; margin-left: 10px; }
.panel p { color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 18px; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--tint); color: var(--forest); font-weight: 800; font-size: .88rem; padding: 6px 14px; border-radius: 999px; }

.picker { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.pick {
  --c: var(--peach);
  border: 0; cursor: pointer; background: transparent; padding: 0; display: grid; justify-items: center; gap: 8px;
  font-weight: 800; color: var(--ink-soft); font-size: .92rem;
}
.pick .av {
  width: 100px; height: 100px; border-radius: 50%; background: var(--c); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px #fff, 0 0 0 3px transparent; transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.pick .av img { height: 86%; width: auto; max-width: 84%; margin-top: 4%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(31,59,45,.18)); transition: transform .3s var(--ease); }
.pick:hover .av { transform: translateY(-3px); }
.pick:hover .av img { transform: scale(1.08); }
.pick[aria-selected="true"] { color: var(--forest); }
.pick[aria-selected="true"] .av { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--forest); transform: translateY(-3px); }

/* ---------- games ---------- */
.games { background: var(--paper); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.game {
  --t: var(--peach);
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.game:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.game .art {
  position: relative; height: 190px; overflow: hidden;
  background: radial-gradient(circle at 70% 120%, rgba(255,255,255,.75) 0 30%, transparent 31%), var(--t);
}
.game .art img { position: absolute; right: 18px; bottom: -40px; height: 230px; width: auto; transition: transform .5s var(--ease); filter: drop-shadow(0 12px 12px rgba(31,59,45,.18)); }
.game:hover .art img { transform: translateY(-10px) rotate(-2deg); }
.game .art .glyph { position: absolute; left: 22px; top: 22px; width: 54px; height: 54px; border-radius: 18px; background: rgba(255,255,255,.85); display: grid; place-items: center; }
.game .art .glyph svg { width: 28px; height: 28px; }
.game .status { position: absolute; left: 22px; bottom: 18px; font-size: .78rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--ink-soft); }
.game .status.first { background: var(--forest); color: #fff; }
.game .body { padding: 22px 24px 26px; }
.game h3 { font-size: 1.45rem; color: var(--forest); margin-bottom: 6px; }
.game p { margin: 0; color: var(--ink-soft); }
.game .with { margin-top: 14px; font-size: .88rem; font-weight: 800; color: var(--ink-soft); }
.game .with b { color: var(--forest); }

/* ---------- play anywhere ---------- */
.anywhere { background: var(--cream); }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.device { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); }
.device .ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--sky); margin-bottom: 20px; }
.device:nth-child(2) .ic { background: var(--sage); }
.device:nth-child(3) .ic { background: var(--gold-soft); }
.device .ic svg { width: 28px; height: 28px; }
.device h3 { font-size: 1.35rem; color: var(--forest); margin-bottom: 8px; }
.device p { margin: 0; color: var(--ink-soft); }

/* ---------- parents ---------- */
.parents { background: var(--cream); padding-top: 0; }
.parents-card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center;
  background: linear-gradient(135deg, #e3f3ff 0%, #e6f7ee 60%, #fff4d6 130%); border-radius: 44px; padding: 64px;
  position: relative; overflow: hidden;
}
.parents-card h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--forest); }
.parents-card > div > p { color: var(--ink-soft); font-size: 1.08rem; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promises li { display: flex; gap: 16px; background: rgba(255,255,255,.75); border-radius: 22px; padding: 18px 20px; }
.promises .ck { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; }
.promises .ck svg { width: 15px; height: 15px; }
.promises b { display: block; color: var(--forest); font-size: 1.05rem; }
.promises span.t { color: var(--ink-soft); font-size: .96rem; }

/* ---------- footer ---------- */
.site-footer {
  position: relative; margin-top: 70px; padding: 30px 0 48px;
  background: linear-gradient(180deg, #eaf7ef 0%, #e2f3fb 100%); color: var(--ink-soft);
}
.site-footer::before {      /* rolling hills on top edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C220 6 470 14 720 38 S1180 8 1440 32 V80 H0z' fill='%23d3eedb'/%3E%3Cpath d='M0 62 C300 30 620 72 920 50 S1300 40 1440 56 V80 H0z' fill='%23eaf7ef'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--forest); text-decoration: none; font-weight: 800; }
.site-footer nav a { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.7); transition: background .2s; }
.site-footer nav a:hover { background: #fff; }
.site-footer small { color: var(--ink-soft); font-weight: 600; }
.site-footer nav { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- simple pages ---------- */
.page { padding: 112px 0 100px; margin-top: -72px; min-height: 80vh; background: var(--morning) top / 100% 560px no-repeat, #fff; }
.page .doc { background: #fff; border-radius: 36px; padding: clamp(26px, 5vw, 56px); box-shadow: var(--shadow-lg); max-width: 820px; margin: 0 auto; }
.page h1 { color: var(--forest); font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.3rem; margin-top: 1.8em; color: var(--forest); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta, .trust { justify-content: center; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .stage { grid-template-columns: 1fr; padding: 32px 28px 36px; text-align: center; }
  .stage-art { height: 340px; }
  .stage-art img { max-height: 330px; }
  .quote { right: 0; top: 0; }
  .facts { justify-items: center; }
  .chips { justify-content: center; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .parents-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 32px); }
  .nav { display: none; }
  .site-header .lang-btn { margin-left: auto; }
  section { padding: 76px 0; }
  .hero { padding: 96px 0 64px; }
  .section-head { margin-bottom: 40px; }
  .game-grid, .device-grid { grid-template-columns: 1fr; }
  .magic { border-width: 5px; border-radius: 24px; }
  .toast { font-size: .82rem; bottom: 10px; }
  .done-card { padding: 16px 18px 18px; }
  .done-crew { margin-top: -54px; }
  .done-crew img { height: 66px; }
  .done-crew img:nth-child(2) { height: 76px; }
  .done-card h3 { font-size: 1.2rem; }
  .done-card p { display: none; }
  .stage { border-radius: 32px; padding: 26px 20px 30px; }
  .stage-art { height: 290px; }
  .stage-art img { max-height: 280px; }
  .quote { font-size: .86rem; max-width: 170px; padding: 9px 13px; }
  .picker { gap: 10px; }
  .pick .av { width: 62px; height: 62px; }
  .pick { font-size: .8rem; }
  .parents-card { border-radius: 32px; }
}
@media (max-width: 400px) {
  .brand b { font-size: 1.08rem; }
  .site-header .btn-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- twinkling golden flowers on the Happiness Tree ---------- */
.glints { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.glint {
  position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.5); opacity: 0;
  background: radial-gradient(circle, rgba(255,252,225,1) 0 12%, rgba(255,222,110,.75) 30%, rgba(255,196,60,0) 68%);
  mix-blend-mode: screen;
  animation: glint 3s ease-in-out infinite;
}
.glint::after {            /* four-point star sparkle */
  content: ""; position: absolute; left: 50%; top: 50%; width: 70%; height: 70%;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  background: #fffbe6;
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
  opacity: .95;
}
@keyframes glint {
  0%, 100% { opacity: 0;   transform: translate(-50%, -50%) scale(.45); }
  45%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
  60%      { opacity: .85; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .glint { opacity: .7; transform: translate(-50%, -50%); } }
