/* Cloudy Isle website — storybook pastel style (matches the game). No external resources.
   Motion: transform/opacity only, paused off-screen (site.js adds .is-off), off with prefers-reduced-motion. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2f2150;          /* main text, plum */
  --ink-soft: #54476f;     /* secondary text (AA on cream and white) */
  --cream: #fff8ee;
  --paper: #ffffff;
  --sky: #6aa9ee;
  --sky-soft: #dceaff;
  --lilac: #c7b8f0;
  --lilac-soft: #efe9ff;
  --pink: #f6b3c0;
  --pink-soft: #ffe8ec;
  --peach: #fcc79a;
  --peach-soft: #fff0df;
  --leaf: #4f8a22;
  --leaf-soft: #e9f6dc;
  --sun: #ffb43a;
  --sun-deep: #e88a0c;
  --purple: #6a3fb5;
  --night: #2b2357;
  --focus: #1c5fd6;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px rgba(74, 52, 120, 0.12), 0 2px 6px rgba(74, 52, 120, 0.08);
  --shadow-lg: 0 24px 60px rgba(74, 52, 120, 0.18), 0 4px 12px rgba(74, 52, 120, 0.08);
  --spring: cubic-bezier(.2, 1.4, .4, 1);
  --head: "Nunito", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
button { font: inherit; color: inherit; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(106, 63, 181, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.3rem; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 2px 8px rgba(74, 52, 120, 0.2); }
.brand:hover img { animation: squash 0.5s ease; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; transition: background-color 0.2s ease, transform 0.2s var(--spring); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--lilac-soft); }
.nav a:hover { transform: translateY(-1px); }
.nav-toggle { display: none; }
.nav { margin-left: auto; }

/* Language picker: native <details>, a list of links to the same page in each language (site.js remembers a choice). */
.lang-pick { position: relative; flex: none; }
.lang-pick > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 0.92rem; letter-spacing: 0.02em; color: var(--ink); background: var(--lilac-soft); transition: background-color 0.2s ease, transform 0.2s var(--spring); }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick > summary:hover { transform: translateY(-1px); }
.lang-pick > summary:hover, .lang-pick[open] > summary { background: #e2d7ff; }
.lang-pick > summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.lang-pick svg { width: 20px; height: 20px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 8px; min-width: 214px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg); transform-origin: 100% 0; animation: pop-in 0.22s var(--spring); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--lilac-soft); }
.lang-menu a[aria-current]::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); }
.lang-menu a[aria-current] { font-weight: 800; color: var(--purple); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.96); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--lilac-soft); color: var(--ink); cursor: pointer;
  }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); box-shadow: var(--shadow); display: none; }
  .nav.open { display: block; animation: drop 0.25s ease; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 14px 12px; }
  .lang-pick { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; }
}
@media (max-width: 860px) {
  html:not(.js) .nav { position: static; display: block; box-shadow: none; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px; border-radius: 999px; border: 0;
  font: 800 1.05rem/1.2 var(--head); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease;
}
.btn svg { flex: none; }
.btn::after { /* sparkle sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 48%, transparent 66%);
  transform: translateX(-120%);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:hover::after { animation: sweep 0.8s ease; }
.btn:active { transform: scale(1.05, 0.9); transition-duration: 0.08s; }
.btn-primary { background: linear-gradient(180deg, #ffd06e, var(--sun)); color: #3a2300; box-shadow: 0 5px 0 var(--sun-deep), 0 12px 24px rgba(232, 138, 12, 0.3); }
.btn-primary:hover { color: #3a2300; }
.btn-primary:hover svg { animation: nudge 0.6s ease; }
.btn-soft, .btn-ghost { background: rgba(255, 255, 255, 0.86); color: var(--purple); box-shadow: 0 4px 0 rgba(106, 63, 181, 0.18), var(--shadow); }
.btn-ghost:hover { color: var(--purple); }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--paper); color: var(--purple); box-shadow: 0 4px 0 rgba(106, 63, 181, 0.16), var(--shadow);
  transition: transform 0.2s var(--spring), opacity 0.2s ease;
}
.round-btn svg { width: 24px; height: 24px; }
.round-btn:hover { transform: scale(1.08); }
.round-btn:active { transform: scale(1.1, 0.88); }
.round-btn[disabled] { opacity: 0.4; cursor: default; transform: none; }

/* Store badges (not links yet: real badges + links replace them at launch) */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 20px 9px 16px;
  border-radius: 16px; background: linear-gradient(180deg, #3a2b62, var(--ink)); color: #fff; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 16px rgba(47, 33, 80, 0.22);
}
.store-badge svg { width: 28px; height: 28px; flex: none; }
.store-badge small { display: block; font-size: 0.74rem; line-height: 1.2; color: #ddd3f5; letter-spacing: 0.02em; }
.store-badge strong { display: block; font: 800 1.12rem/1.2 var(--head); }

/* ---------- Shared section bits ---------- */
section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4.5vw, 56px); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section-head p:last-child { margin-bottom: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font: 800 0.82rem/1.2 var(--head); letter-spacing: 0.09em; text-transform: uppercase; color: var(--purple);
}
.section-head .kicker { color: var(--purple); font-size: 0.82rem; }
.kicker::before { content: ""; width: 18px; height: 18px; background: var(--sun); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* ---------- Hero ---------- */
.hero {
  --mx: 0; --my: 0; --sy: 0;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(640px, 88vh, 900px);
  display: flex; align-items: center;
  padding: clamp(28px, 4vw, 56px) 0 clamp(110px, 10vw, 150px);
  background: #a9b8ec;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .layer { position: absolute; will-change: translate; }
/* every layer overscans the hero so parallax never exposes an edge */
.hero .sky {
  inset: -10% -8%;
  background: #a9b8ec url("/assets/img/sky.webp") 30% 0 / cover no-repeat;
  translate: calc(var(--mx) * -6px) calc(var(--sy) * 0.1px);
}
/* far mountains and near clouds: three mirrored copies side by side, sized by height,
   centred, so the strip is always far wider than the viewport (no seam, no exposed edge) */
.hero .strip { left: 50%; display: flex; width: max-content; }
.hero .strip img { flex: none; width: auto; max-width: none; margin-right: -2px; }
.hero .strip .mirror { transform: scaleX(-1); }
.hero .far { bottom: 18%; opacity: 0.6; translate: calc(-50% + var(--mx) * -14px) calc(var(--sy) * 0.18px); }
.hero .far img { height: clamp(220px, 24vw, 420px); }
.hero .near { bottom: -2%; z-index: 3; pointer-events: none; translate: calc(-50% + var(--mx) * -26px) calc(var(--sy) * -0.12px); }
.hero .near img { height: clamp(150px, 15vw, 270px); }

.hero-grid {
  width: min(100% - 32px, var(--wrap));
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 8px;
}
.hero-copy { position: relative; z-index: 5; max-width: 600px; animation: pop-in 0.8s var(--spring) both; }
.hero-copy::before { /* soft frosted cloud, only where contrast needs it */
  content: ""; position: absolute; z-index: -1; inset: -70px -90px -60px -120px;
  background: radial-gradient(closest-side, rgba(255, 250, 242, 0.88), rgba(255, 250, 242, 0.72) 55%, rgba(255, 250, 242, 0) 100%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.8); color: var(--purple); font-weight: 700; font-size: 0.98rem;
  box-shadow: 0 2px 10px rgba(74, 52, 120, 0.1);
}
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 180, 58, 0.25); }
.hero h1 {
  font-size: clamp(2.35rem, 1.3rem + 3.2vw, 3.75rem); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 18px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7), 0 10px 30px rgba(255, 255, 255, 0.6);
}
.hero h1 .grad {
  background: linear-gradient(95deg, #5b33a8 0%, #a33a86 55%, #c4462a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  padding-bottom: 0.08em;
}
.eyebrow-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 6px; }
.eyebrow-row .eyebrow { margin-bottom: 12px; }
.hero-peek {
  width: 76px; margin-bottom: -6px;
  transform-origin: 50% 100%; animation: peek 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(74, 52, 120, 0.25));
}
.hero .lead { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-soft); max-width: 31em; margin-bottom: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero .store-row { margin-bottom: 10px; }
.hero-note { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.stage { position: relative; aspect-ratio: 1.45; z-index: 2; margin-right: calc(-1 * clamp(0px, (100vw - var(--wrap)) / 2 - 24px, 280px)); margin-left: -24px; }
.stage .layer { inset: 0; }
.s-islets { translate: calc(var(--mx) * -10px) calc(var(--sy) * 0.08px); }
.s-main { translate: calc(var(--mx) * 12px) calc(var(--sy) * -0.06px); }
.stage .islet { position: absolute; width: 22%; animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(74, 52, 120, 0.12)); }
.stage .islet-l { left: -6%; top: 4%; animation-delay: -2s; }
.stage .islet-r { right: -2%; top: -2%; width: 19%; animation-duration: 8s; animation-delay: -4s; }
.stage .island { position: absolute; left: 4%; width: 94%; bottom: 6%; animation: bob 7.5s ease-in-out infinite; }
.stage .island > img:first-child { width: 100%; filter: drop-shadow(0 30px 30px rgba(74, 52, 120, 0.16)); }
.on-island { position: absolute; transform-origin: 50% 100%; animation: sway 4.4s ease-in-out infinite; }
.on-island.bun { left: 36.5%; width: 7.4%; bottom: 47%; }
.on-island.miso { left: 63.5%; width: 9.6%; bottom: 46%; animation-delay: -2s; }
.sparkle, .twinkle { position: absolute; z-index: 2; width: 14px; height: 14px; background: #fffbe6; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 3.2s ease-in-out infinite; }
.sp1 { top: 12%; left: 48%; } .sp2 { top: 28%; left: 88%; animation-delay: -1.2s; width: 18px; height: 18px; } .sp3 { top: 52%; left: 6%; animation-delay: -2.1s; }
.t1 { top: 12%; left: 30%; }
.t2 { top: 22%; left: 78%; animation-delay: -1s; width: 10px; height: 10px; }
.t3 { top: 46%; left: 12%; animation-delay: -2s; }
.t4 { top: 38%; left: 92%; animation-delay: -0.5s; width: 18px; height: 18px; }
.t5 { top: 8%; left: 62%; animation-delay: -1.7s; width: 9px; height: 9px; }

.cloud { position: absolute; left: 0; z-index: 1; opacity: 0.9; animation: drift linear infinite; will-change: transform; }
.cloud-a { top: 4%; width: 18%; max-width: 280px; animation-duration: 95s; animation-delay: -20s; }
.cloud-b { top: 30%; width: 14%; max-width: 220px; animation-duration: 120s; animation-delay: -70s; opacity: 0.75; }
.cloud-c { top: 58%; width: 20%; max-width: 300px; animation-duration: 140s; animation-delay: -10s; opacity: 0.8; }
.cloud-d { top: 16%; width: 12%; max-width: 180px; animation-duration: 110s; animation-delay: -95s; opacity: 0.7; }

.bird { position: absolute; left: 0; z-index: 2; width: 42px; height: 36px; animation: fly 34s linear infinite; }
.bird img { position: absolute; inset: 0; width: 100%; height: auto; }
.bird-1 { top: 14%; animation-delay: -6s; }
.bird-1 .up { animation: flap-a 0.5s steps(1) infinite; }
.bird-1 .down { animation: flap-b 0.5s steps(1) infinite; }
.bird-2 { top: 24%; width: 34px; animation-duration: 46s; animation-delay: -30s; }
.bird-2 img { animation: bob 1.2s ease-in-out infinite; }

@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding: 28px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { max-width: 600px; margin-inline: auto; text-align: center; }
  .hero-copy::before { inset: -40px -40px -30px; }
  .hero .actions, .hero .store-row { justify-content: center; }
  .eyebrow-row { justify-content: center; }
  .hero-peek { width: 64px; }
  .stage { margin: 8px -6% 0; aspect-ratio: 1.3; }
  .stage .island { left: 0; width: 100%; bottom: 6%; }
  .stage .islet-l { left: 0; top: 2%; width: 23%; }
  .stage .islet-r { right: 0; top: 0; width: 20%; }
  .hero .far { bottom: 30%; }
  .cloud-a, .cloud-c { width: 34%; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.1rem, 1rem + 6vw, 2.6rem); }
  .hero .actions .btn { flex: 1 1 auto; }
  .store-badge { flex: 1 1 150px; padding-inline: 12px; }
  .hero-peek { width: 56px; }
}

/* Butterflies: drift on a gentle loop, wings flap by swapping two frames (or squashing one) */
.butterfly { position: absolute; z-index: 1; width: 40px; height: 40px; pointer-events: none; animation: flutter 16s ease-in-out infinite; }
.butterfly img { position: absolute; inset: 0; width: 100%; height: auto; }
.butterfly .o { animation: flap-a 0.36s steps(1) infinite; }
.butterfly .c { animation: flap-b 0.36s steps(1) infinite; }
.butterfly .w { animation: wing 0.4s ease-in-out infinite; }
.learn, .guides { overflow-x: clip; }
.bf-1 { top: 70px; left: 12%; }
.bf-2 { top: 40px; right: 14%; width: 34px; animation-duration: 19s; animation-direction: reverse; }
@media (max-width: 700px) { .bf-1 { left: 4%; top: 24px; } .bf-2 { right: 34%; top: 18px; } }

/* ---------- Trust strip ---------- */
.trust-wrap { position: relative; z-index: 6; margin-top: -54px; }
.trust {
  list-style: none; margin-inline: auto; padding: 16px 26px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  background: var(--paper); border-radius: 999px; box-shadow: var(--shadow-lg);
}
.trust li { display: flex; align-items: center; gap: 10px; font: 800 0.98rem/1.2 var(--head); }
.ti { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.ti svg { width: 21px; height: 21px; }
.ti-ads { background: var(--pink-soft); color: #b42e5f; }
.ti-heart { background: #fff1d9; color: #d9730a; }
.ti-cloud { background: var(--sky-soft); color: #2e6fc4; }
.ti-shield { background: var(--leaf-soft); color: #3f7a17; }
.ti-voice { background: var(--lilac-soft); color: var(--purple); }
.trust li:hover .ti { animation: squash 0.5s ease; }
@media (max-width: 760px) {
  .trust { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; padding: 18px; gap: 14px 12px; }
  .trust li { font-size: 0.92rem; }
  .trust li:last-child { grid-column: 1 / -1; justify-self: center; }
}

/* ---------- Peek inside (gallery) ---------- */
.peek { background: linear-gradient(180deg, var(--cream), var(--lilac-soft) 30%, var(--lilac-soft) 70%, var(--cream)); padding-top: clamp(72px, 9vw, 120px); overflow: hidden; }
.gallery { --h: clamp(190px, 26vw, 360px); position: relative; }
.gallery-track {
  display: flex; gap: clamp(18px, 3vw, 36px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 24px max(16px, (100% - var(--wrap)) / 2) 12px;
  scroll-padding-inline: max(16px, (100% - var(--wrap)) / 2);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.slide { flex: none; margin: 0; scroll-snap-align: start; display: grid; grid-template-rows: calc(var(--h) + 24px) auto; justify-items: center; gap: 16px; }
.device {
  align-self: center; position: relative;
  background: linear-gradient(150deg, #43386a, #241c3c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1), 0 26px 50px rgba(47, 33, 80, 0.28), 0 6px 12px rgba(47, 33, 80, 0.16);
  transition: transform 0.4s var(--spring);
}
.device img { object-fit: cover; background: var(--sky-soft); }
.device.tablet { padding: 12px; border-radius: 28px; }
.device.tablet img { height: var(--h); width: calc(var(--h) * 4 / 3); border-radius: 16px; }
.device.phone { padding: 9px 16px; border-radius: 36px; }
.device.phone img { height: calc(var(--h) * 0.64); width: calc(var(--h) * 0.64 * 2.164); border-radius: 22px; }
.device.phone::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #5d527f; }
.slide:hover .device { transform: translateY(-6px) rotate(-0.6deg); }
.slide figcaption { text-align: center; color: var(--ink-soft); font-size: 0.98rem; max-width: 30ch; }
.slide figcaption strong { display: block; color: var(--ink); font: 800 1.1rem/1.3 var(--head); margin-bottom: 2px; }
.gallery-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.gallery-progress { flex: 0 1 240px; height: 8px; border-radius: 999px; background: rgba(106, 63, 181, 0.14); overflow: hidden; }
.gallery-progress span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lilac), var(--purple)); transform-origin: 0 50%; transform: scaleX(0.2); transition: transform 0.2s ease; }
html:not(.js) .gallery-nav { display: none; }

/* ---------- How it works ---------- */
.how { padding-top: clamp(48px, 6vw, 80px); }
.steps-3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); position: relative; }
.steps-3::before { content: ""; position: absolute; left: 16%; right: 16%; top: 96px; border-top: 3px dashed rgba(106, 63, 181, 0.22); }
.step { position: relative; text-align: center; background: var(--paper); border-radius: 28px; padding: 22px 22px 26px; box-shadow: var(--shadow); transition: transform 0.3s var(--spring); }
.step:hover { transform: translateY(-6px); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; }
.step-art { height: 140px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; position: relative; }
.art-guides img { height: 92px; width: auto; margin: 0 -10px; animation: bob 4s ease-in-out infinite; }
.art-guides img:nth-child(2) { height: 112px; z-index: 1; animation-delay: -1.3s; }
.art-guides img:nth-child(3) { animation-delay: -2.6s; }
.art-island img:first-child { height: 130px; width: auto; animation: bob 6s ease-in-out infinite; }
.art-island .st { position: absolute; width: 46px; top: 6px; left: calc(50% + 40px); animation: twinkle-img 2.6s ease-in-out infinite; }
.art-parent img:first-child { width: 96px; padding: 18px; background: var(--lilac-soft); border-radius: 30px; box-shadow: var(--shadow); box-sizing: content-box; margin-bottom: 8px; }
.art-parent .bd { position: absolute; width: 56px; left: calc(50% + 36px); top: 4px; animation: sway 3.4s ease-in-out infinite; }
.step-num { position: absolute; top: 16px; left: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ffd06e, var(--sun)); color: #3a2300; font: 800 1.15rem var(--head); box-shadow: 0 3px 0 var(--sun-deep); }
@media (max-width: 800px) {
  .steps-3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps-3::before { display: none; }
  .step { display: grid; grid-template-columns: 112px 1fr; column-gap: 14px; text-align: left; align-items: center; padding: 18px 18px 18px 14px; }
  .step-art { grid-row: span 2; height: 104px; margin: 0; }
  .step h3 { align-self: end; margin: 0; }
  .step p { align-self: start; font-size: 0.97rem; }
  .step-num { top: 10px; left: 10px; width: 32px; height: 32px; font-size: 1rem; }
  .art-guides img { height: 62px; margin: 0 -12px; } .art-guides img:nth-child(2) { height: 76px; }
  .art-island img:first-child { height: 96px; } .art-island .st { left: auto; right: 0; width: 36px; }
  .art-parent img:first-child { width: 56px; padding: 12px; border-radius: 22px; } .art-parent .bd { left: auto; right: 2px; width: 40px; }
}

/* ---------- Learning areas ---------- */
.learn { background: linear-gradient(180deg, var(--cream), #fdf3e4 50%, var(--cream)); }
.regions { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 6px; }
.region-track { display: contents; }
.region-card {
  --tint: #eef5ff; --accent: #2e5fa8; --chip: #d7e6fb;
  position: relative; display: flex; flex-direction: column; border-radius: 28px; background: var(--tint);
  box-shadow: var(--shadow); transition: transform 0.35s var(--spring), box-shadow 0.35s ease;
}
.region-card:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: var(--shadow-lg); }
.rc-art { position: relative; aspect-ratio: 2 / 1; border-radius: 28px 28px 0 0; }
.rc-art::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; background: linear-gradient(180deg, transparent 55%, var(--tint)); pointer-events: none; }
.rc-bg { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@supports (clip-path: inset(0 round 1px)) {
  .rc-art { clip-path: inset(-60px -20px -60px -20px round 28px 28px 0 0); }
}
.rc-islet { position: absolute; z-index: 2; right: 5%; bottom: -14%; width: 27%; filter: drop-shadow(0 12px 12px rgba(47, 33, 80, 0.18)); animation: bob 6s ease-in-out infinite; transition: translate 0.3s ease; translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 6px); }
.rc-pin { position: absolute; z-index: 2; left: 16px; top: 14px; width: 46px; filter: drop-shadow(0 6px 8px rgba(47, 33, 80, 0.25)); animation: bob 4s ease-in-out infinite; }
.region-card:nth-child(2n) .rc-islet { animation-delay: -2s; }
.region-card:nth-child(3n) .rc-islet { animation-delay: -3.5s; }
.region-card:hover .rc-pin { animation: hop 0.7s var(--spring); }
.rc-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 6px 22px 22px; }
.rc-body h3 { color: var(--accent); font-size: 1.32rem; margin: 0 30% 6px 0; }
.rc-body > p { color: var(--ink-soft); margin: 0 0 14px; }
.chips { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); color: var(--accent); font-weight: 700; font-size: 0.88rem; box-shadow: inset 0 0 0 1.5px var(--chip); }
.c-numbers  { --tint: #eaf3ff; --accent: #2a5ea8; --chip: #c9dcf6; }
.c-letters  { --tint: #fff0ea; --accent: #b23c22; --chip: #f6cfc2; }
.c-puzzle   { --tint: #f1ecff; --accent: #5a35a6; --chip: #d9cdf6; }
.c-colours  { --tint: #fff6dc; --accent: #8a5200; --chip: #f2dca0; }
.c-nature   { --tint: #ebf7e1; --accent: #3a6f14; --chip: #cbe6b3; }
.c-feelings { --tint: #ffedf3; --accent: #a8285a; --chip: #f6c6d6; }
.c-music    { --tint: #e3f6f3; --accent: #146b62; --chip: #b8e3dc; }

.reward-card { --tint: #fff4dc; --accent: #7a4a00; --chip: #f3d79a; grid-column: span 2; flex-direction: row; align-items: stretch; background: linear-gradient(120deg, #fff4dc, #ffe9f0); overflow: hidden; }
.rw-art { position: relative; flex: 0 0 48%; min-height: 250px; background: radial-gradient(ellipse at 50% 85%, rgba(255, 196, 92, 0.35), transparent 65%); }
.rw-play { position: absolute; left: 2%; bottom: 12%; width: 66%; animation: bob 7s ease-in-out infinite; }
.rw-tree { position: absolute; right: 0; bottom: 18%; width: 44%; animation: bob 6s ease-in-out infinite; animation-delay: -2.5s; }
.rw-i { position: absolute; width: 15%; filter: drop-shadow(0 6px 8px rgba(47, 33, 80, 0.2)); }
.rw-teddy { left: 46%; bottom: 6%; animation: sway 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.rw-kite { left: 10%; top: 8%; animation: kite 5s ease-in-out infinite; }
.reward-card .rc-body { padding: 24px 26px 26px 6px; }
.reward-card .rc-body h3 { margin-right: 0; }
.rw-flow { display: flex; align-items: center; gap: 2px; margin: 0 0 8px !important; color: var(--accent); font: 800 0.9rem var(--head); }
.rw-flow img { width: 26px; margin-right: -6px; animation: twinkle-img 2.4s ease-in-out infinite; }
.rw-flow img:nth-child(2) { animation-delay: -0.8s; } .rw-flow img:nth-child(3) { animation-delay: -1.6s; }
.rw-flow svg { width: 22px; height: 22px; margin: 0 4px 0 12px; }

@media (max-width: 1000px) {
  .regions { display: block; width: 100%; padding-top: 0; }
  .region-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    padding: 6px 16px 34px; scroll-padding-inline: 16px; gap: 16px;
  }
  .region-track::-webkit-scrollbar { display: none; }
  .region-track { align-items: flex-start; }
  .region-card { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; min-height: 340px; }
  .region-card:hover { transform: translateY(-4px); }
  .reward-card { width: min(100% - 32px, 720px); margin: 0 auto; }
}
@media (max-width: 640px) {
  .reward-card { flex-direction: column; }
  .rw-art { flex: none; min-height: 190px; }
  .reward-card .rc-body { padding: 4px 22px 22px; }
}

.ages { margin-top: clamp(40px, 6vw, 72px); background: var(--paper); border-radius: 30px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.ages-title { text-align: center; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); margin-bottom: 20px; }
.age-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.age-steps li { position: relative; }
.age-steps li { border-radius: 22px; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.age-steps .age { font: 800 1.9rem/1 var(--head); }
.age-steps strong { font: 800 1.1rem var(--head); }
.age-steps li > span:last-child { color: var(--ink-soft); font-size: 0.97rem; }
.a1 { background: var(--pink-soft); } .a1 .age { color: #a8285a; }
.a2 { background: var(--sky-soft); padding-top: 34px !important; } .a2 .age { color: #2a5ea8; }
.a3 { background: var(--leaf-soft); padding-top: 50px !important; } .a3 .age { color: #3a6f14; }
.ages-note { text-align: center; color: var(--ink-soft); max-width: 48em; margin: 20px auto 0; font-size: 0.98rem; }
@media (max-width: 720px) { .age-steps { grid-template-columns: 1fr; } .a2, .a3 { padding-top: 18px !important; } }

/* ---------- Guides ---------- */
.guides { background: linear-gradient(180deg, var(--cream), var(--lilac-soft) 22%, var(--lilac-soft) 80%, var(--cream)); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 40px; }
.guide { --g1: #b9a3ee; --g2: #7c58cc; --sun: #ffd36b; --acc: #5a35a6; position: relative; background: var(--paper); border-radius: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.35s var(--spring); }
.guide:hover { transform: translateY(-6px); }
.g-scene {
  position: relative; height: 270px; border-radius: 30px 30px 0 0;
  background: radial-gradient(circle at 82% 26%, var(--sun) 0 34px, transparent 35px), radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(170deg, var(--g1), var(--g2));
}
.g-hoot { --g1: #d8c9fb; --g2: #8f6bd8; --sun: #ffd36b; --acc: #5a35a6; }
.g-bun  { --g1: #ffe8a6; --g2: #ffb8cb; --sun: #fff3b8; --acc: #a8285a; }
.g-miso { --g1: #c6f1ea; --g2: #ffc79a; --sun: #fff1c4; --acc: #146b62; }
.g-cloud { position: absolute; height: 26px; width: 120px; border-radius: 26px; background: #fff; opacity: 0.85; animation: float-x 9s ease-in-out infinite; }
.g-cloud::before, .g-cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.g-cloud::before { width: 44px; height: 44px; left: 16px; top: -22px; }
.g-cloud::after { width: 58px; height: 58px; left: 46px; top: -34px; }
.g-cloud.c1 { left: 6%; top: 48%; }
.g-cloud.c2 { left: 30%; top: 86%; width: 150px; animation-delay: -4s; animation-duration: 11s; opacity: 0.7; }
.g-talk { position: absolute; right: 6%; bottom: 0; z-index: 2; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 24px; -webkit-tap-highlight-color: transparent; }
.g-char { height: 300px; width: auto; transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; filter: drop-shadow(0 14px 14px rgba(47, 33, 80, 0.22)); }
.g-bun .g-char { height: 316px; }
.g-bun .g-char { animation-delay: -1.2s; } .g-miso .g-char { animation-delay: -2.4s; height: 290px; }
.g-play { position: absolute; right: calc(100% + 6px); bottom: 22px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--paper); color: var(--acc); box-shadow: var(--shadow); font: 800 0.95rem var(--head); }
.g-play::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 3px solid var(--paper); opacity: 0; animation: ring 2.4s ease-out infinite; }
.g-play svg { width: 22px; height: 22px; }
.g-talk:hover .g-play { transform: scale(1.06); }
.g-play { transition: transform 0.2s var(--spring); }
/* Narrow cards: the pill moves left only as far as the card needs (never past 12px from its edge, then it overlaps
   the guide's feet). Pill right edge = min(beside the guide, card width - 12px - pill width); the button ends at 94%. */
.g-scene { container-type: inline-size; }
.g-play { z-index: 1; --pw: 124px; right: min(calc(100% + 6px), calc(94cqw - 12px - var(--pw))); }
.g-talk:hover .g-char { animation: hop 0.7s var(--spring); }
.g-talk:active .g-char { transform: scale(1.06, 0.92); }
.g-bubble {
  position: absolute; z-index: 3; left: 14px; top: 16px; width: 54%; margin: 0;
  background: var(--paper); border-radius: 20px; padding: 10px 12px 12px; box-shadow: var(--shadow);
  font: 800 0.95rem/1.35 var(--head); color: var(--ink);
  opacity: 0; transform: scale(0.6) translateY(10px); transform-origin: 90% 100%; transition: opacity 0.25s ease, transform 0.35s var(--spring);
  pointer-events: none;
}
.g-bubble::after { content: ""; position: absolute; right: -10px; top: 38px; border: 10px solid transparent; border-left-color: var(--paper); border-right: 0; }
.g-bubble img { width: 40px; height: auto; float: left; margin: 0 8px 2px 0; }
.guide.talking .g-bubble { opacity: 1; transform: none; }
.guide.talking .g-char { animation: talk 0.5s ease-in-out infinite; }
.guide.talking .g-play::after { animation-duration: 1s; }
/* Talking guides: the game's rig drawn with WebGL (assets/js/guides.js) over the static picture, which stays as the
   fallback and keeps the button's size (no layout shift). The canvas reaches past the box for gestures. */
.g-rig { position: absolute; left: 50%; bottom: 0; height: 300px; translate: -50% 0; opacity: 0; pointer-events: none; transform-origin: 50% 100%; transition: opacity 0.45s ease; filter: drop-shadow(0 14px 14px rgba(47, 33, 80, 0.22)); }
.g-bun .g-rig { height: 316px; } .g-miso .g-rig { height: 290px; }
.g-talk .g-char { transition: opacity 0.45s ease; }
.g-talk.rig-on .g-rig { opacity: 1; }
.g-talk.rig-on .g-char { opacity: 0; animation: none; }
.g-talk.rig-on:hover .g-rig { animation: hop 0.7s var(--spring); }
.g-talk.rig-on:active .g-rig { transform: scale(1.05, 0.94); }
.rig-cv { position: absolute; display: block; max-width: none; animation: rig-breathe 3.8s ease-in-out infinite; }
.g-bun .rig-cv { animation-duration: 3.2s; } .g-hoot .rig-cv, .hm-rig .rig-cv { animation-duration: 4.4s; }
/* The animated face stays readable while the bubble is open: a slimmer bubble. */
.guide:has(.rig-on) .g-bubble { width: 47%; font-size: 0.9rem; padding: 9px 11px 11px; }
.guide:has(.rig-on) .g-bubble img { width: 34px; }
@keyframes rig-breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.008 1.016; } }

/* F-097 Hoot, the site mascot: fixed bottom-left on a little cloud, safe-area aware. He never moves away while the
   page scrolls (user decision 18.11.2026); the bubble opens up and to the right, and the footer keeps room so the
   last lines scroll clear of him. */
.hoot-mascot { position: fixed; z-index: 40; left: max(10px, calc(env(safe-area-inset-left) + 6px)); bottom: max(8px, calc(env(safe-area-inset-bottom) + 4px)); width: 120px; height: 182px; pointer-events: none; }
.hm-hoot { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 28px; opacity: 0; translate: 0 0; transition: opacity 0.5s ease, translate 0.45s var(--spring); -webkit-tap-highlight-color: transparent; }
.hoot-mascot.is-ready .hm-hoot { opacity: 1; }
.has-hoot .site-footer { padding-bottom: 210px; }
.hm-hoot:focus-visible { outline: 3px solid var(--acc, #5a35a6); outline-offset: 2px; }
.hm-body { position: absolute; left: 0; right: 0; bottom: 18px; height: 154px; animation: hm-bob 4.2s ease-in-out infinite; }
.hm-rig { position: absolute; left: 50%; bottom: 10px; height: 136px; translate: -50% 0; opacity: 1; filter: drop-shadow(0 6px 6px rgba(47, 33, 80, 0.18)); }
.hm-cloud { position: absolute; left: 6px; right: 6px; bottom: 10px; height: 28px; border-radius: 28px; background: #fff; box-shadow: 0 6px 16px rgba(74, 52, 120, 0.16); animation: hm-bob 4.2s ease-in-out infinite; }
.hm-cloud::before, .hm-cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.hm-cloud::before { width: 44px; height: 44px; left: 13px; top: -18px; }
.hm-cloud::after { width: 54px; height: 54px; left: 44px; top: -26px; }
.hm-bubble { position: absolute; left: calc(100% - 10px); bottom: 124px; width: max-content; max-width: min(300px, calc(100vw - 150px)); padding: 12px 82px 13px 15px; border-radius: 20px 20px 20px 6px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); font: 800 0.95rem/1.38 var(--head); opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.92); transform-origin: 0% 100%; transition: opacity 0.25s ease, transform 0.35s var(--spring), visibility 0s linear 0.35s; pointer-events: auto; }
.hm-bubble p { margin: 0; }
.hoot-mascot.is-saying .hm-bubble { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.35s var(--spring), visibility 0s; }
.hm-tools { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; }
.hm-close, .hm-voice { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; transition: background-color 0.2s ease, transform 0.2s var(--spring); }
.hm-close:hover, .hm-voice:hover { background: var(--lilac-soft); }
.hm-close:active, .hm-voice:active { transform: scale(0.88); }
.hm-close:focus-visible, .hm-voice:focus-visible { outline: 3px solid var(--acc, #5a35a6); outline-offset: 1px; }
.hm-close svg { width: 16px; height: 16px; }
.hm-voice svg { width: 22px; height: 22px; }
.hm-voice .on, .hm-voice[aria-pressed="true"] .off { display: none; }
.hm-voice[aria-pressed="true"] .on { display: block; }
.hm-voice[aria-pressed="true"] { color: var(--purple); }
.hoot-mascot.is-speaking .hm-voice[aria-pressed="true"] .wave { animation: hm-wave 0.9s ease-in-out infinite; transform-origin: 30% 50%; }
@keyframes hm-wave { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes hm-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@media (max-width: 720px) {
  .hoot-mascot { width: 76px; height: 116px; }
  .hm-body { height: 98px; bottom: 11px; }
  .hm-rig { height: 84px; bottom: 7px; }
  .has-hoot .site-footer { padding-bottom: 140px; }
  .hm-cloud { bottom: 7px; height: 20px; }
  .hm-cloud::before { width: 30px; height: 30px; left: 8px; top: -12px; }
  .hm-cloud::after { width: 37px; height: 37px; left: 30px; top: -17px; }
  .hm-bubble { bottom: 80px; left: calc(100% - 12px); font-size: 0.88rem; max-width: min(260px, calc(100vw - 104px)); padding-right: 80px; }
}
@media print { .hoot-mascot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .g-rig .rig-cv { animation: none; }
}
.g-text { padding: 20px 24px 24px; }
.g-text h3 { color: var(--acc); margin-bottom: 8px; }
.g-text p { color: var(--ink-soft); margin: 0; }
.traits { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.traits li { padding: 3px 11px; border-radius: 999px; background: var(--lilac-soft); color: var(--acc); font-weight: 700; font-size: 0.86rem; }
.g-bun .traits li { background: var(--pink-soft); }
.g-miso .traits li { background: #dcf5f0; }
@media (max-width: 960px) {
  .guide-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 56px; }
}

.vip {
  margin-top: 40px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 24px;
  background: linear-gradient(120deg, #fff1e4, #f5ecff 60%, #e5f7f3); border-radius: 30px; padding: 22px 32px 22px 18px; box-shadow: var(--shadow);
}
.vip-art { display: flex; align-items: flex-end; justify-content: center; height: 180px; }
.vip-art img { height: 150px; width: auto; margin: 0 -8px; filter: saturate(0.9) drop-shadow(0 10px 10px rgba(47, 33, 80, 0.16)); animation: bob 5s ease-in-out infinite; }
.vip-art .v1 { height: 128px; }
.vip-art .v2 { height: 172px; z-index: 1; animation-delay: -1.7s; }
.vip-art .v3 { animation-delay: -3.3s; }
.vip-text h3 { font-size: 1.45rem; margin-bottom: 6px; }
.vip-text p { color: var(--ink-soft); margin: 0; }
.vip-text .kicker { color: #8a5200; }
.vip-text .kicker::before { display: none; }
.vip-text .kicker img { width: 26px; }
@media (max-width: 720px) { .vip { grid-template-columns: 1fr; text-align: center; padding: 20px 22px 26px; } .vip-text .kicker { justify-content: center; } }

/* ---------- Journeys ---------- */
.night {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  background: radial-gradient(ellipse at 20% 30%, rgba(255, 196, 140, 0.25), transparent 50%), linear-gradient(160deg, #3a2f78, var(--night) 55%, #1f1a45);
  color: #f4efff; border-radius: 36px; padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow-lg);
}
.night .twinkle { z-index: -1; background: #fff6c8; }
.night h2 { color: #fff; }
.night h3 { color: #ffd88a; font-size: 1.15rem; margin-top: 20px; }
.night p { color: #e3dcf7; }
.night a { color: #ffd88a; }
.night .kicker { color: #ffd88a; }
.night-art { position: relative; min-height: 300px; display: grid; place-items: center; }
.night-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(199, 184, 240, 0.4), transparent 68%); }
.night-art .ship { position: relative; width: min(100%, 360px); animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.3)); }
.night-art .rocket { position: absolute; width: 64px; right: 4%; top: 2%; animation: rocket 6s ease-in-out infinite; }
.night-art .nstar { position: absolute; width: 54px; left: 6%; bottom: 8%; animation: twinkle-img 3s ease-in-out infinite; }
.chapters { counter-reset: ch; list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; position: relative; }
.chapters::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; border-left: 3px dotted rgba(255, 216, 138, 0.5); }
.chapters li { counter-increment: ch; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px 8px 50px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); }
.chapters li::before { content: counter(ch); position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ffe08f, var(--sun)); color: #3a2300; font: 800 1rem var(--head); box-shadow: 0 0 0 4px rgba(255, 216, 138, 0.18); }
.chapters em { font-style: normal; font-size: 0.82rem; font-weight: 700; color: #ffd88a; background: rgba(255, 216, 138, 0.14); padding: 1px 9px; border-radius: 999px; }
.night .small { font-size: 0.98rem; margin-bottom: 10px; }
.realms { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.realms li { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.93rem; }
@media (max-width: 860px) { .night { grid-template-columns: 1fr; } .night-art { min-height: 220px; } .night-art .ship { width: min(70%, 280px); } }

/* ---------- Parents ---------- */
.parents { background: linear-gradient(180deg, var(--cream), var(--sky-soft) 18%, var(--sky-soft) 84%, var(--cream)); }
.corner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: clamp(40px, 6vw, 64px); }
.dash { margin: 0; background: #fffaf3; border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden; border: 6px solid #fff; rotate: -1deg; transition: rotate 0.4s var(--spring); }
.dash:hover { rotate: 0deg; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: linear-gradient(90deg, #ece4ff, #f6efff); }
.dash-title { display: inline-flex; align-items: center; gap: 8px; font: 800 1.05rem var(--head); color: var(--purple); }
.dash-title img { width: 26px; }
.dash-child { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 2px 6px rgba(74, 52, 120, 0.1); }
.dash-child img { width: 28px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; padding: 14px; }
.dash-card { background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(74, 52, 120, 0.07); }
.dash-card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.dash-card .d-h { font: 800 0.8rem var(--head); color: var(--purple); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.d-skills { grid-row: span 2; }
.d-next { grid-column: 1 / -1; background: #fff6e2; }
.d-big { font: 800 1.35rem var(--head) !important; color: var(--ink) !important; }
.d-big span { font-size: 0.9rem; color: var(--ink-soft); }
.d-bars { display: flex; align-items: flex-end; gap: 7px; height: 54px; margin: 8px 0; }
.d-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #b49cf0, var(--purple)); transform-origin: 50% 100%; }
.dash.in .d-bars i, html:not(.js) .d-bars i { animation: grow 0.8s var(--spring) both; }
.d-bars i:nth-child(2) { animation-delay: 0.05s; } .d-bars i:nth-child(3) { animation-delay: 0.1s; } .d-bars i:nth-child(4) { animation-delay: 0.15s; } .d-bars i:nth-child(5) { animation-delay: 0.2s; } .d-bars i:nth-child(6) { animation-delay: 0.25s; } .d-bars i:nth-child(7) { animation-delay: 0.3s; }
.d-bars .h1 { height: 12%; } .d-bars .h3 { height: 38%; } .d-bars .h4 { height: 50%; } .d-bars .h5 { height: 62%; } .d-bars .h6 { height: 75%; } .d-bars .h8 { height: 100%; }
.d-meta { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.d-meta img { width: 20px; }
.d-skills ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.d-skills li { display: grid; grid-template-columns: 22px 1fr auto; grid-template-areas: "i n l" "i t t"; column-gap: 8px; align-items: center; font-size: 0.88rem; }
.d-skills li img { grid-area: i; width: 22px; }
.d-skills .n { grid-area: n; font-weight: 700; }
.d-skills .t { grid-area: t; font-size: 0.78rem; color: var(--ink-soft); }
.lvl { grid-area: l; display: flex; gap: 3px; }
.lvl i { width: 14px; height: 8px; border-radius: 4px; background: #e8e1f6; }
.l1 i:nth-child(-n+1), .l2 i:nth-child(-n+2), .l3 i:nth-child(-n+3) { background: linear-gradient(90deg, #8fc75a, var(--leaf)); }
.win { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink) !important; }
.win + .win { margin-top: 6px !important; }
.win img { width: 26px; }
.dash figcaption { font-size: 0.82rem; color: var(--ink-soft); padding: 0 16px 12px; }
.corner-text h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feat li { display: flex; gap: 14px; align-items: flex-start; }
.feat img { flex: none; width: 52px; height: 52px; object-fit: contain; padding: 10px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); box-sizing: border-box; }
.feat strong { display: block; font: 800 1.05rem var(--head); }
.feat span { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 900px) { .corner { grid-template-columns: 1fr; } .dash { rotate: 0deg; } }
@media (max-width: 520px) { .dash-grid { grid-template-columns: 1fr; } .d-skills { grid-row: auto; } }

.safe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.safe { background: var(--paper); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); transition: transform 0.3s var(--spring); }
.safe:hover { transform: translateY(-5px) rotate(-0.4deg); }
.safe:hover .safe-ic { animation: squash 0.6s ease; }
.safe h3 { font-size: 1.15rem; margin: 12px 0 6px; }
.safe p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.safe-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--lilac-soft); }
.safe-ic img { width: 32px; height: 32px; object-fit: contain; }
.safe-ic svg { width: 28px; height: 28px; }
.ic-pink { background: var(--pink-soft); color: #b42e5f; }
.ic-lilac { color: var(--purple); }
.ic-gold { background: #fff1d9; color: #d9730a; }
@media (max-width: 900px) { .safe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .safe-grid { grid-template-columns: 1fr; } }

/* ---------- Plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; padding-top: 20px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: 28px; padding: 26px 24px 26px; box-shadow: var(--shadow); transition: transform 0.3s var(--spring); }
.plan:hover { transform: translateY(-6px); }
.plan-art { height: 92px; display: flex; align-items: flex-end; margin-bottom: 10px; }
.plan-art img { height: 88px; width: auto; animation: bob 6s ease-in-out infinite; }
.plan .plan-kicker { font: 800 0.82rem var(--head); color: var(--purple); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan-sub { color: var(--ink-soft); margin-bottom: 12px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf-soft); }
.plan li::after { content: ""; position: absolute; left: 7.5px; top: calc(0.35em + 4px); width: 5px; height: 8px; border: solid var(--leaf); border-width: 0 2.5px 2.5px 0; rotate: 45deg; }
.plan.featured { background: linear-gradient(180deg, #f6f0ff, #fff 60%); box-shadow: 0 0 0 3px var(--lilac), var(--shadow-lg); }
@media (min-width: 901px) { .plan.featured { transform: translateY(-12px); } .plan.featured:hover { transform: translateY(-18px); } }
.plan-flag { position: absolute; top: -15px; left: 50%; translate: -50% 0; white-space: nowrap; padding: 6px 16px; border-radius: 999px; background: linear-gradient(180deg, #8a62d8, var(--purple)); color: #fff; font: 800 0.85rem var(--head); box-shadow: 0 4px 12px rgba(106, 63, 181, 0.35); }
.featured .plan-art img { height: 92px; margin-right: -14px; }
.featured .plan-art img + img { height: 70px; animation-delay: -2s; }
.price-note { text-align: center; color: var(--ink-soft); margin: 26px auto 0; font-size: 0.98rem; }
.calm { margin-top: 22px; background: var(--paper); border-radius: 26px; padding: 22px 26px; box-shadow: var(--shadow); }
.calm h3 { margin-bottom: 12px; }
.calm ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; }
.calm li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.calm li svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--leaf-soft); color: #3f7a17; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 30px; } .calm ul { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */
.download { padding-top: clamp(100px, 12vw, 150px); }
.dl-card {
  position: relative; text-align: center; max-width: 820px; margin-inline: auto; padding: 130px clamp(20px, 5vw, 56px) 40px;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.8), transparent 60%), linear-gradient(180deg, #cfe0ff, #f6dcf0 70%, #ffe9d6);
  border-radius: 36px; box-shadow: var(--shadow-lg);
}
.dl-guides { position: absolute; left: 50%; top: -80px; translate: -50% 0; width: max-content; display: flex; align-items: flex-end; }
.dl-guides img { height: 150px; width: auto; margin: 0 -6px; transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(47, 33, 80, 0.2)); }
.dl-guides img:nth-child(2) { height: 170px; animation-delay: -1.2s; }
.dl-guides img:nth-child(3) { animation-delay: -2.4s; }
@media (max-width: 400px) { .dl-guides img { height: 128px; } .dl-guides img:nth-child(2) { height: 146px; } .dl-guides { top: -62px; } }
.dl-card .app-icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 14px; box-shadow: var(--shadow); }
.dl-card p { color: var(--ink-soft); max-width: 36em; margin-inline: auto; }
.dl-card .store-row { justify-content: center; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-side img { width: 130px; margin-bottom: 8px; animation: sway 4s ease-in-out infinite; transform-origin: 50% 100%; }
.faq-side p { color: var(--ink-soft); }
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; width: 100%; }
.faq details { background: var(--paper); border-radius: 20px; box-shadow: 0 2px 10px rgba(74, 52, 120, 0.07); transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.faq details:hover { box-shadow: var(--shadow); }
.faq details[open] { background: #fdfbff; box-shadow: 0 0 0 2px var(--lilac-soft), var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 60px 18px 22px; font-weight: 700; position: relative; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac-soft); color: var(--purple); font: 800 1.25rem var(--head); transition: rotate 0.3s var(--spring), background-color 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; background: var(--sun); color: #3a2300; }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); }
.faq details[open] > div { animation: drop 0.3s ease; }
.faq details > div p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-side { position: static; text-align: center; } .faq-side img { margin-inline: auto; width: 110px; } }

/* ---------- Content pages (legal, support, delete) ---------- */
.page-hero { background: linear-gradient(180deg, var(--sky-soft), var(--cream)); padding: clamp(36px, 6vw, 72px) 0 24px; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; width: min(100% - 32px, 820px); }
.page-hero p { color: var(--ink-soft); max-width: 44em; }
.page-hero .cloud { top: 10%; width: 200px; opacity: 0.6; }
.prose { max-width: 820px; margin-inline: auto; padding-bottom: 72px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.2em; border-radius: 16px; box-shadow: 0 2px 10px rgba(74, 52, 120, 0.08); background: var(--paper); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid #eee6f7; }
.prose th { background: var(--lilac-soft); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose section:not(.box) { padding: 0; margin-bottom: 8px; }
.box { background: var(--paper); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin: 0 0 20px; }
.box h2:first-child, .box h3:first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.lang-note { background: var(--lilac-soft); border-left: 5px solid var(--purple); border-radius: 16px; padding: 14px 18px; margin: 0 0 16px; color: var(--ink); }
.draft-banner { background: #fff3c4; border: 2px dashed #c79100; border-radius: 16px; padding: 14px 18px; margin: 0 0 24px; color: #4a3500; }
mark.ph { background: #fff0a8; color: #4a3500; border-bottom: 2px dashed #c79100; padding: 0 3px; border-radius: 4px; font-weight: 600; }
.toc { columns: 2 220px; list-style: none; padding: 0; margin: 0; }
.toc li { break-inside: avoid; padding: 2px 0; }
.steps { counter-reset: st; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; padding-left: 44px; min-height: 32px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); font: 800 0.95rem var(--head); color: #3a2300; }

/* Form */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }
.field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 2px solid #d8cdef; background: #fff;
  font: inherit; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 4px rgba(106, 63, 181, 0.18); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--purple); }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.error { color: #a1123a; }
.form-status.ok { color: #2f5a10; }

/* 404 */
.lost { text-align: center; padding: clamp(48px, 8vw, 96px) 0; }
.lost img { width: 200px; margin: 0 auto 16px; animation: sway 4s ease-in-out infinite; transform-origin: 50% 100%; }


/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #eae4f7; padding: 56px 0 32px; margin-top: 64px; box-shadow: 0 -10px 0 var(--ink); }
.site-footer::before, .site-footer::after { /* cloud edge */
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
  background-repeat: repeat-x;
}
.site-footer::before { top: -34px; height: 36px; background-image: radial-gradient(circle at 48px 48px, var(--ink) 47px, transparent 48px); background-size: 96px 36px; background-position: 10px 0; }
.site-footer::after { top: -22px; height: 24px; background-image: radial-gradient(circle at 30px 34px, var(--ink) 33px, transparent 34px); background-size: 60px 24px; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
.site-footer .lang-list a[aria-current] { border-bottom-color: var(--sun); }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.site-footer .foot-brand p { color: #cfc5e6; max-width: 26em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { display: inline-block; padding: 4px 0; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color 0.2s ease; }
.site-footer ul a:hover { border-bottom-color: var(--sun); }
.site-footer .small { font-size: 0.9rem; color: #cfc5e6; margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 20px; }
.site-footer mark.ph { background: #fff0a8; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .foot-brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5%); } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.02, 0.98); } 50% { transform: scale(0.99, 1.02); } 55% { transform: scale(1.01, 0.99); } }
@keyframes hop { 0% { transform: scale(1); } 25% { transform: scale(1.08, 0.9); } 55% { transform: translateY(-14px) scale(0.95, 1.06); } 100% { transform: none; } }
@keyframes talk { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.04, 0.95) rotate(-1.5deg); } 65% { transform: translateY(-6px) scale(0.98, 1.03) rotate(1.5deg); } }
@keyframes squash { 0% { transform: scale(1); } 30% { transform: scale(1.14, 0.86); } 60% { transform: scale(0.94, 1.08); } 100% { transform: scale(1); } }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
@keyframes fly { from { transform: translate(-12vw, 0); } 50% { transform: translate(50vw, -30px); } to { transform: translate(112vw, 10px); } }
@keyframes flap-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes flap-b { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }
@keyframes twinkle-img { 0%, 100% { transform: scale(0.85) rotate(-8deg); } 50% { transform: scale(1.08) rotate(8deg); } }
@keyframes peek { 0%, 100% { transform: translateY(0) rotate(6deg); } 40% { transform: translateY(-8px) rotate(-4deg); } 60% { transform: translateY(-6px) rotate(8deg); } }
@keyframes kite { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(-8px, -10px) rotate(8deg); } }
@keyframes rocket { 0%, 100% { transform: translate(0, 0) rotate(8deg); } 50% { transform: translate(-6px, -14px) rotate(-4deg); } }
@keyframes flutter { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 25% { transform: translate(60px, -24px) rotate(10deg); } 50% { transform: translate(110px, 8px) rotate(-4deg); } 75% { transform: translate(40px, 26px) rotate(6deg); } }
@keyframes wing { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.35); } }
@keyframes float-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(14px); } }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sweep { to { transform: translateX(120%); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Off-screen animated areas are paused (site.js toggles .is-off) */
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.7s var(--spring); }
.reveal.in { opacity: 1; transform: none; }
.region-card.reveal.in:hover, .step.reveal.in:hover, .guide.reveal.in:hover, .safe.reveal.in:hover, .plan.reveal.in:hover { transition: transform 0.35s var(--spring), box-shadow 0.35s ease; }
.region-card.reveal.in:hover { transform: translateY(-8px) rotate(-0.5deg); }
.step.reveal.in:hover, .guide.reveal.in:hover, .plan.reveal.in:hover { transform: translateY(-6px); }
.safe.reveal.in:hover { transform: translateY(-5px) rotate(-0.4deg); }
@media (min-width: 901px) { .plan.featured.reveal.in { transform: translateY(-12px); } .plan.featured.reveal.in:hover { transform: translateY(-18px); } }
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .cloud, .bird, .butterfly { display: none; }
  .hero .layer { translate: none !important; }
  .hero .strip { translate: -50% 0 !important; }
}
@media print {
  .site-header, .site-footer, .hero-bg, .stage, .hero .near, .cloud, .gallery-nav { display: none; }
  body { background: #fff; }
}
html.lang-redirect body { visibility: hidden; }
