/* Taara Toys: candy-bright palette from the logo on warm cream, rounded Fredoka headings, Nunito text. */
:root {
  --sun: #ffc531; --sun-d: #e0a300; --sun-l: #fff3c9;
  --coral: #ff6b5b; --coral-d: #e04a3a; --coral-l: #ffe1dc;
  --berry: #ff4f8b; --berry-l: #ffe0ec;
  --sky: #3fb2f2; --sky-d: #1f8fd0; --sky-l: #dcf2ff;
  --grape: #2563e0; --grape-d: #1a49b0; --grape-l: #e2ecff;
  --mint: #22c3a0; --mint-d: #12977b; --mint-l: #d9f7ef;
  --ink: #2a2154; --muted: #6a6390;
  --bg: #fffaf2; --soft: #fff2df; --card: #ffffff; --line: #efe3d1;
  --wa: #1fa855;
  --link: var(--grape);
  --radius: 24px;
  --shadow: 0 2px 0 rgba(42, 33, 84, .05), 0 14px 30px -16px rgba(42, 33, 84, .35);
  --shadow-lg: 0 24px 50px -22px rgba(42, 33, 84, .45);
  --gut: max(5vw, 16px);
  --head-h: 72px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f0ff; --muted: #b7b0da;
    --bg: #17132e; --soft: #201a3e; --card: #261f48; --line: #3a3166;
    --grape-l: #1e2c5c; --sky-l: #1c2f4f; --mint-l: #173c3a; --coral-l: #44243a; --sun-l: #3d3222; --berry-l: #432040;
    --link: #9cc0ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); scrollbar-color: #b9aef0 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Nunito, system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .4em; font-weight: 700; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--link); }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 8vw, 104px); position: relative; overflow-x: clip; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }

/* coloured words inside headings */
.hl { position: relative; white-space: nowrap; }
.hl-sun { color: var(--sun-d); } .hl-coral { color: var(--coral); } .hl-sky { color: var(--sky-d); } .hl-grape { color: var(--grape); } .hl-mint { color: var(--mint-d); } .hl-berry { color: var(--berry); }
@media (prefers-color-scheme: dark) { .hl-sun { color: var(--sun); } .hl-sky { color: var(--sky); } .hl-grape { color: #b6a5ff; } .hl-mint { color: var(--mint); } }
.squiggle { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8q10-8 20 0t20 0 20 0 20 0 20 0 16 0' fill='none' stroke='%23ffc531' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 12px no-repeat; padding-bottom: 10px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 Nunito, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 18px; height: 18px; background: currentColor; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(22px, 3vw, 34px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; max-width: 40em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 0; font: 800 16px/1.1 Nunito, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn.small { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sun { background: var(--sun); color: #3a2a00; box-shadow: 0 5px 0 var(--sun-d); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral-d); }
.btn-grape { background: var(--grape); color: #fff; box-shadow: 0 5px 0 var(--grape-d); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 5px 0 #15803f; }
.btn-white { background: #fff; color: var(--grape); box-shadow: 0 5px 0 rgba(42, 33, 84, .18); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px currentColor; }
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.armed { background: #b3261e; box-shadow: 0 4px 0 #7f1a14; color: #fff; }

/* header */
.demo-banner { background: var(--sun-l); color: #4a3800; text-align: center; font-size: 14px; padding: 8px 16px; }
@media (prefers-color-scheme: dark) { .demo-banner { color: var(--ink); } }
.site-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); transition: border-color .2s, box-shadow .2s; }
.site-head.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(42, 33, 84, .5); }
.head-row { display: flex; align-items: center; gap: 12px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.mark { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 3px 10px -4px rgba(42, 33, 84, .35); }
.wordmark { font: 700 28px/1 Fredoka, sans-serif; letter-spacing: -.01em; }
.wm-a { color: var(--grape); }
.wm-b i { font-style: normal; }
.wm-b i:nth-child(1) { color: var(--coral); } .wm-b i:nth-child(2) { color: var(--sun-d); } .wm-b i:nth-child(3) { color: var(--mint-d); } .wm-b i:nth-child(4) { color: var(--berry); }
#head-wa { flex: none; }
.wa-short { display: none; }
@media (prefers-color-scheme: dark) { .wm-a { color: var(--link); } }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; padding: 8px 16px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--grape-l); color: var(--grape); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) { .nav { display: none; } #head-wa { margin-left: auto; } .wordmark { font-size: 23px; } .mark { width: 46px; height: 46px; } }
@media (max-width: 560px) { .wa-long { display: none; } .wa-short { display: inline; } }
@media (max-width: 380px) { #head-wa { padding-inline: 12px; } #head-wa .wa-short { display: none; } .wordmark { font-size: 21px; } }

/* bottom tab bar on phones */
.tabbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-radius: 22px; box-shadow: 0 10px 30px -8px rgba(42, 33, 84, .4); border: 1px solid var(--line); padding: 6px; }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 16px; color: var(--muted); text-decoration: none; font: 800 12px/1.1 Nunito, sans-serif; }
  .tabbar svg { width: 26px; height: 26px; }
  .tabbar a[aria-current="page"] { background: var(--grape-l); color: var(--grape); }
  @media (prefers-color-scheme: dark) { .tabbar a[aria-current="page"] { color: #fff; } }
}

/* hero (home) */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, #c9ecff 0%, #e6e0ff 55%, #ffe7f0 100%); color: #2a2154; }
@media (prefers-color-scheme: dark) { .hero { background: linear-gradient(170deg, #1d2d58 0%, #2a2160 55%, #3b1f4a 100%); color: #f3f0ff; } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 28px; padding-block: clamp(36px, 6vw, 76px) clamp(120px, 14vw, 180px); }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--coral); padding: 8px 16px 8px 10px; border-radius: 999px; font: 800 15px Nunito, sans-serif; margin-bottom: 20px; box-shadow: var(--shadow); }
.hero-tag svg { width: 22px; height: 22px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.025em; line-height: 1; margin-bottom: 18px; }
.hero h1 .hl-coral { color: var(--coral); }
.lede { font-size: clamp(17px, 1.6vw, 19px); max-width: 32em; color: inherit; opacity: .85; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 30px; }
.hero .btn-ghost { color: var(--grape); }
@media (prefers-color-scheme: dark) { .hero .btn-ghost { color: #fff; } .hero-tag { background: var(--card); } }
.perks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .7); padding: 8px 14px 8px 8px; border-radius: 999px; font-weight: 800; font-size: 15px; }
@media (prefers-color-scheme: dark) { .perks li { background: rgba(255, 255, 255, .1); } }
.perks .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.perks .dot svg { width: 16px; height: 16px; }
.hero-art { position: relative; }
.hero-logo { width: min(100%, 520px); height: auto; margin: 0 auto; border-radius: 50%; box-shadow: 0 24px 40px -18px rgba(42, 33, 84, .45); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
.floaty { position: absolute; z-index: 0; pointer-events: none; animation: drift 9s ease-in-out infinite; }
.floaty:nth-child(2n) { animation-duration: 12s; animation-direction: reverse; }
@keyframes drift { 50% { transform: translateY(-18px) rotate(8deg); } }
.cloud { position: absolute; z-index: 0; pointer-events: none; fill: #fff; opacity: .85; animation: float-x 40s linear infinite; }
@media (prefers-color-scheme: dark) { .cloud { opacity: .08; } }
@keyframes float-x { from { transform: translateX(-10vw); } to { transform: translateX(10vw); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .perks { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero-art { order: -1; max-width: 440px; margin: 0 auto -10px; width: 100%; }
  .hero-logo { width: min(78vw, 340px); }
}
@media (max-width: 480px) { .hero-cta .btn { flex: 1 1 100%; } }


/* small page banner (shop, play, contact) */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(36px, 5vw, 64px) clamp(64px, 7vw, 92px); text-align: center; color: #2a2154; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin-bottom: 10px; }
.page-hero p { font-size: 18px; max-width: 34em; margin: 0 auto; opacity: .85; }
.page-hero .quote-line { display: inline-block; margin-top: 16px; font: 600 17px Fredoka, sans-serif; background: rgba(255,255,255,.75); padding: 8px 18px; border-radius: 999px; }
.page-hero > .wrap { position: relative; z-index: 1; }
.ph-shop { background: linear-gradient(160deg, #ffe39a, #ffc9b8); }
.ph-play { background: linear-gradient(160deg, #b9f0e1, #c9ecff); }
.ph-contact { background: linear-gradient(160deg, #e6e0ff, #ffd6e6); }
@media (prefers-color-scheme: dark) {
  .page-hero { color: #f3f0ff; }
  .page-hero .quote-line { background: rgba(255,255,255,.1); }
  .ph-shop { background: linear-gradient(160deg, #4a3520, #4a2530); }
  .ph-play { background: linear-gradient(160deg, #143d3a, #1d2d58); }
  .ph-contact { background: linear-gradient(160deg, #2a2160, #451f3e); }
}

/* quote ribbon */
.ribbon-wrap { overflow: hidden; margin-top: -24px; padding-block: 14px; position: relative; z-index: 2; }
.ribbon { background: var(--grape); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: 0 -2vw; box-shadow: 0 10px 24px -14px rgba(42, 33, 84, .6); }
.ribbon-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ribbon li { display: flex; align-items: center; gap: 22px; padding-right: 22px; font: 600 clamp(17px, 2vw, 22px) Fredoka, sans-serif; white-space: nowrap; }
.ribbon li::after { content: ""; width: 20px; height: 20px; background: var(--sun); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* age tiles */
.ages-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.age-tile { --c: var(--sky); --l: var(--sky-l); display: grid; justify-items: center; gap: 10px; padding: 22px 10px 18px; border-radius: var(--radius); background: var(--l); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.age-tile:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }
.age-tile .bubble { display: grid; place-items: center; width: clamp(70px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--c); color: #fff; font: 700 clamp(20px, 2.4vw, 28px)/1 Fredoka, sans-serif; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12); }
.age-tile b { font: 600 18px Fredoka, sans-serif; }
.age-tile small { color: var(--muted); font-weight: 700; margin-top: -8px; }
.age-tile:nth-child(6n+1) { --c: var(--berry); --l: var(--berry-l); }
.age-tile:nth-child(6n+2) { --c: var(--sun-d); --l: var(--sun-l); }
.age-tile:nth-child(6n+3) { --c: var(--mint); --l: var(--mint-l); }
.age-tile:nth-child(6n+4) { --c: var(--sky); --l: var(--sky-l); }
.age-tile:nth-child(6n+5) { --c: var(--grape); --l: var(--grape-l); }
.age-tile:nth-child(6n+6) { --c: var(--coral); --l: var(--coral-l); }
@media (max-width: 900px) { .ages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ages-grid { gap: 10px; } .age-tile { padding: 16px 6px 14px; } .age-tile b { font-size: 16px; } }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); color: var(--ink); text-decoration: none; font: 600 18px/1.2 Fredoka, sans-serif; transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--grape); box-shadow: var(--shadow); }
.cat-ico { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: var(--sun-l); }
.cat-ico .ph-art { width: 80%; height: 80%; }
.cat-tile:nth-child(4n+2) .cat-ico { background: var(--sky-l); }
.cat-tile:nth-child(4n+3) .cat-ico { background: var(--berry-l); }
.cat-tile:nth-child(4n) .cat-ico { background: var(--mint-l); }

/* toy cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 22px; }
.toy { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.toy:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.toy-link { color: inherit; text-decoration: none; flex: 1; }
.frame { position: relative; aspect-ratio: 1; background: var(--soft); margin: 10px 10px 0; border-radius: 18px; overflow: hidden; }
.ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.toy:hover .ph { transform: scale(1.05); }
.ph-empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--sun-l); }
.ph-empty .ph-art { width: 72%; height: 72%; }
.ph-empty.big { aspect-ratio: 4 / 3; }
.toy:nth-child(4n+2) .ph-empty { background: var(--sky-l); }
.toy:nth-child(4n+3) .ph-empty { background: var(--berry-l); }
.toy:nth-child(4n) .ph-empty { background: var(--mint-l); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--sun); color: #3a2a00; font: 800 13px Nunito, sans-serif; padding: 5px 11px; border-radius: 999px; box-shadow: 0 3px 0 var(--sun-d); }
.badge.out { left: auto; right: 10px; background: #fff; color: #7f1a14; box-shadow: none; }
.toy.sold .ph { filter: grayscale(.6); opacity: .8; }
.toy-meta { padding: 14px 18px 6px; }
.age { display: inline-block; color: var(--grape); background: var(--grape-l); font-size: 13px; font-weight: 800; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .age { color: #d4c9ff; } }
.toy h3 { font-size: 19px; margin: 0 0 6px; }
.prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.price { font: 700 21px Fredoka, sans-serif; color: var(--coral); white-space: nowrap; }
.prices.big .price { font-size: 32px; }
.mrp { color: var(--muted); font-size: 15px; white-space: nowrap; }
.off { font-size: 13px; font-weight: 800; color: var(--mint-d); background: var(--mint-l); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .off { color: var(--mint); } }
.enquire { margin: 12px 18px 18px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 16px; background: var(--soft); border-radius: var(--radius); }
.empty .ph-art { width: 160px; margin: 0 auto 8px; }
.loading { color: var(--muted); }
.more { display: flex; justify-content: center; margin-top: 34px; }

/* catalogue filters */
.toolbar { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: calc(-1 * clamp(56px, 6vw, 80px)) 0 26px; position: relative; z-index: 2; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
input, select, textarea { width: 100%; font: 16px Nunito, sans-serif; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 11px 14px; min-height: 50px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--grape); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--grape) 20%, transparent); }
[aria-invalid="true"] { border-color: #b3261e; }
.search input { padding-left: 44px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6390' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 14px center / 20px no-repeat; }
.ages { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scrollbar-width: none; }
.ages::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 800 15px Nunito, sans-serif; cursor: pointer; min-height: 42px; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--grape); }
.chip.on { background: var(--grape); border-color: var(--grape); color: #fff; }
.count-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 700; }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr 1fr; } .filters .search { grid-column: 1 / -1; } .toolbar { padding: 14px; } }

/* toy dialog */
.toy-dialog { width: min(940px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.toy-dialog::backdrop { background: rgba(32, 24, 70, .6); backdrop-filter: blur(3px); }
.toy-dialog[open] { animation: pop-in .25s ease-out; }
@keyframes pop-in { from { transform: scale(.94); opacity: 0; } }
#d-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--soft); aspect-ratio: 1; }
.gallery > * { flex: 0 0 100%; scroll-snap-align: start; width: 100%; height: 100%; object-fit: cover; }
#d-body > p.muted { grid-column: 1; margin: 6px 0; }
.d-info { padding: 30px; }
.d-info h2 { color: var(--ink); font-size: clamp(26px, 3vw, 36px); }
.stock { font-weight: 800; margin: 8px 0 12px; }
.stock.in { color: var(--mint-d); }
.stock.out { color: #b3261e; }
.desc { white-space: pre-line; }
.d-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
@media (max-width: 720px) { #d-body { grid-template-columns: 1fr; } .d-info { padding: 20px; } }

/* big quote */
.big-quote { position: relative; overflow: hidden; background: var(--grape); color: #fff; border-radius: 36px; padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 80px); text-align: center; }
.big-quote blockquote { margin: 0 auto; max-width: 30em; font: 600 clamp(24px, 3.4vw, 40px)/1.25 Fredoka, sans-serif; position: relative; z-index: 1; }
.big-quote blockquote::before { content: "“"; display: block; font-size: 2.6em; line-height: .6; color: var(--sun); }
.big-quote cite { display: block; margin-top: 18px; font: 800 16px Nunito, sans-serif; font-style: normal; opacity: .85; position: relative; z-index: 1; }
.big-quote .floaty { opacity: .9; }

/* play teaser */
.play-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; background: linear-gradient(150deg, var(--mint-l), var(--sky-l)); border-radius: 36px; padding: clamp(26px, 5vw, 56px); }
.play-teaser h2 { margin-bottom: 10px; }
.mini-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini-games a { display: grid; justify-items: center; gap: 8px; background: var(--card); border-radius: 22px; padding: 18px 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); text-align: center; transition: transform .2s; }
.mini-games a:hover { transform: translateY(-6px) rotate(1.5deg); }
.mini-games svg { width: 72px; height: 64px; }
.mini-games b { font: 600 17px/1.15 Fredoka, sans-serif; }
.mini-games small { color: var(--muted); font-weight: 700; }
@media (max-width: 820px) { .play-teaser { grid-template-columns: 1fr; text-align: center; } }
@media (max-width: 420px) { .mini-games { gap: 8px; } .mini-games a { padding: 14px 6px; } .mini-games svg { width: 48px; height: 48px; } .mini-games b { font-size: 15px; } }

/* why us */
.why { background: var(--soft); }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.trio article { background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.trio article::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--l, var(--sun-l)); }
.trio article:nth-child(2) { --l: var(--berry-l); }
.trio article:nth-child(3) { --l: var(--mint-l); }
.trio .ico { display: block; position: relative; z-index: 1; width: 76px; height: 68px; margin-bottom: 12px; }
.trio .ico svg { width: 100%; height: 100%; }
.trio h3 { font-size: 24px; }
.trio p { margin: 0; color: var(--muted); }
.trio q { display: block; margin-top: 14px; font: 600 16px Fredoka, sans-serif; color: var(--grape); quotes: none; }
@media (prefers-color-scheme: dark) { .trio q { color: #c9bcff; } }

/* call to action band */
.cta-band { background: linear-gradient(120deg, var(--coral), var(--berry)); color: #fff; border-radius: 36px; padding: clamp(30px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 18px; opacity: .92; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-band .btn-white { color: var(--coral); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 36px; align-items: start; margin-top: calc(-1 * clamp(56px, 6vw, 80px)); position: relative; z-index: 2; }
.info-card { background: var(--grape); color: #fff; border-radius: 28px; padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden; }
.info-card h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.info-card p { opacity: .9; }
.info-card .btn-wa { position: relative; z-index: 1; }
.details { display: grid; gap: 14px; margin: 22px 0; position: relative; z-index: 1; }
.details div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.details dt { font-weight: 800; opacity: .75; }
.details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; font-weight: 700; }
.details a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.info-card h3 { margin: 8px 0 0; position: relative; z-index: 1; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: #3a2a00; font: 700 16px Fredoka, sans-serif; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); }
.form { display: grid; gap: 14px; position: relative; }
.form h2 { font-size: clamp(24px, 3vw, 30px); margin: 0; }
.form label { display: grid; gap: 6px; font-weight: 800; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.toy-row { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.hp { position: absolute; left: -9999px; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.error { margin: 0; color: #b3261e; font-weight: 700; }
@media (prefers-color-scheme: dark) { .error, .stock.out { color: #ff8a80; } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.link-wa { color: var(--wa); font-weight: 800; }
.done { display: flex; gap: 12px; align-items: flex-start; background: var(--sun-l); color: var(--ink); border-radius: 16px; padding: 14px 16px; }
.done svg { width: 30px; height: 30px; flex: none; }
.done p { margin: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 520px) { .row2, .toy-row { grid-template-columns: 1fr; } }

/* footer */
.site-foot { background: #221b46; color: #e3defa; padding-block: 56px 28px; position: relative; margin-top: clamp(40px, 6vw, 80px); }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: #221b46; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20q50-20 100 0t100 0 100 0 100 0 100 0 100 0 100 0 100 0 100 0 100 0 100 0 100 0V40H0z'/%3E%3C/svg%3E") 0 0 / 100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20q50-20 100 0t100 0 100 0 100 0 100 0 100 0 100 0 100 0 100 0 100 0 100 0 100 0V40H0z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-foot .wm-a { color: #fff; }
.site-foot h3 { color: var(--sun); font-size: 18px; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: #e3defa; text-decoration: none; font-weight: 700; }
.site-foot a:hover { color: var(--sun); }
.done .ticket { margin: 6px 0; }
.done .ticket b { font-size: 1.15em; font-family: Fredoka, sans-serif; letter-spacing: .03em; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); }
.socials a:hover { background: rgba(255,255,255,.18); }
.socials svg { width: 20px; height: 20px; }
.foot-quote { font: 600 20px/1.3 Fredoka, sans-serif; margin: 16px 0 0; max-width: 18em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 14px; color: #b7b0da; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 200px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 100; transition: transform .25s; max-width: calc(100vw - 32px); }
@media (min-width: 861px) { .toast { bottom: 24px; } }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: #b3261e; color: #fff; }

/* two toys per row on phones */
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .frame { margin: 6px 6px 0; border-radius: 14px; }
  .toy { border-radius: 18px; }
  .toy-meta { padding: 10px 12px 4px; }
  .toy h3 { font-size: 16px; }
  .price { font-size: 18px; }
  .off { display: none; }
  .enquire { margin: 8px 10px 12px; padding-inline: 8px; }
}

/* scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* play corner */
.game-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: calc(-1 * clamp(56px, 6vw, 80px)) 0 18px; position: relative; z-index: 2; }
.game-tabs button { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); color: var(--ink); border: 3px solid transparent; border-radius: 22px; padding: 12px 16px; cursor: pointer; font: inherit; min-height: 72px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.game-tabs button:hover { transform: translateY(-3px); }
.game-tabs button[aria-selected="true"] { border-color: var(--coral); box-shadow: 0 5px 0 var(--coral); }
.game-tabs b { display: block; font: 600 19px Fredoka, sans-serif; }
.game-tabs small { color: var(--muted); font-weight: 700; }
.g-ico { flex: none; width: 48px; height: 48px; }
.g-ico svg { width: 100%; height: 100%; }
@media (max-width: 640px) { .game-tabs { grid-template-columns: 1fr; gap: 8px; } .game-tabs button { min-height: 58px; } .g-ico { width: 38px; height: 38px; } }
.game-stage { padding: clamp(14px, 2.5vw, 26px); }
.g-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 14px; font-weight: 700; }
.g-bar b { font: 600 20px Fredoka, sans-serif; color: var(--coral); }
.g-bar .btn { margin-left: auto; }
.g-win { margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--sun-l); color: var(--ink); font-weight: 800; text-align: center; }
.play-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 28px; }
.play-tips p { margin: 0; background: var(--card); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); font-weight: 700; }
.play-tips b { display: block; font: 600 18px Fredoka, sans-serif; color: var(--grape); }
@media (prefers-color-scheme: dark) { .play-tips b { color: #c9bcff; } }

.mem-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .mem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } }
.mem-card { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 16px; cursor: pointer; background: none; }
.mem-card > span { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; transition: transform .3s, opacity .3s; backface-visibility: hidden; }
.mem-back { background: var(--grape); box-shadow: 0 4px 0 var(--grape-d); }
.mem-back svg { width: 46%; }
.mem-front { background: #fff; border: 3px solid var(--line); transform: rotateY(180deg); opacity: 0; }
.mem-front svg { width: 78%; height: 78%; }
.mem-card.up .mem-back { transform: rotateY(180deg); opacity: 0; }
.mem-card.up .mem-front { transform: none; opacity: 1; }
.mem-card.got .mem-front { border-color: var(--sun); background: #fff3c9; }
.mem-card:disabled { cursor: default; }

.catch-wrap { position: relative; height: clamp(320px, 52vh, 460px); border-radius: 18px; overflow: hidden; touch-action: none; }
.catch-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.catch-msg { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; padding: 20px; color: #fff; background: rgba(42, 33, 84, .55); }
.catch-msg strong { font: 600 clamp(22px, 3vw, 30px) Fredoka, sans-serif; }
.catch-msg span { max-width: 30em; }

.sort-stage { display: grid; justify-items: center; gap: 14px; padding-block: 6px 10px; }
.sort-ask { font: 600 clamp(20px, 2.6vw, 26px) Fredoka, sans-serif; margin: 0; text-align: center; min-height: 1.3em; }
.sort-piece svg { width: 120px; height: 120px; }
.sort-piece .pop { animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.sort-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: min(100%, 620px); background: var(--sky); padding: 16px; border-radius: 22px; box-shadow: 0 6px 0 var(--sky-d); }
.hole { aspect-ratio: 1; border: 0; border-radius: 14px; background: #a8dcf8; cursor: pointer; display: grid; place-items: center; padding: 10%; }
.hole svg { width: 100%; height: 100%; }
.hole.yes { background: var(--sun); }
.hole.no { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 420px) { .sort-box { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 300px); } }


/* sections that follow another band without extra top space */
.band[data-flush] { padding-top: 0; }
figure.big-quote { margin: 0; }

/* floating decorations: positions */
.floaty { width: clamp(34px, 5vw, 64px); }
.floaty[data-star] { width: clamp(22px, 3vw, 38px); }
.floaty svg { width: 100%; height: auto; display: block; }
.hero .s1 { left: 38%; top: 10%; } .hero .s2 { right: 40%; bottom: 30%; }
.cloud { width: clamp(120px, 16vw, 220px); }
.hero .c1 { left: 8%; top: 4%; } .hero .c2 { right: 12%; bottom: 22%; animation-direction: reverse; }
.big-quote .q1 { left: 6%; top: 14%; } .big-quote .q2 { right: 8%; top: 20%; } .big-quote .q3 { left: 14%; bottom: 14%; }
.info-card .i1 { right: 18px; top: 18px; width: 40px; }
.page-hero .s1 { right: 22%; bottom: 30%; }
@media (max-width: 860px) { .hero .s2, .hero .c2, .page-hero .s1 { display: none; } }
.perks li:nth-child(1) .dot { background: var(--mint); }
.perks li:nth-child(2) .dot { background: var(--sun-d); }
.perks li:nth-child(3) .dot { background: var(--berry); }
@media (max-width: 560px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; font-size: 16px; }
  .cat-ico { width: 56px; height: 56px; }
}

.site-foot .mark { width: 64px; height: 64px; }

/* Ask Taara chat */
.ask-fab { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: var(--grape); color: #fff; font: 700 17px Fredoka, sans-serif; cursor: pointer; box-shadow: 0 5px 0 var(--grape-d), 0 14px 28px -10px rgba(42, 33, 84, .6); transition: transform .15s; }
.ask-fab:hover { transform: translateY(-2px); }
.ask-fab img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.ask-fab.hide { display: none; }
.ask-fab::before, .ask-fab::after { content: ""; position: absolute; top: 2px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--grape); }
.ask-fab::before { box-shadow: none; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.ask-panel { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 110px)); display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-radius: 26px; box-shadow: 0 30px 70px -20px rgba(42, 33, 84, .55); border: 1px solid var(--line); overflow: hidden; animation: pop-in .2s ease-out; }
.ask-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: linear-gradient(120deg, var(--grape), #4f8ff7); color: #fff; }
.ask-head img { border-radius: 50%; background: #fff; }
.ask-head b { display: block; font: 600 19px/1.1 Fredoka, sans-serif; }
.ask-head small { opacity: .85; font-weight: 700; }
.ask-x { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ask-log { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d6cff5 transparent; overscroll-behavior: contain; padding: 16px 14px; display: grid; align-content: start; gap: 10px; background: var(--bg); }
.ask-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.ask-msg p { margin: 0; }
.ask-msg.bot { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ask-msg.me { justify-self: end; background: var(--grape); color: #fff; border-bottom-right-radius: 6px; }
.ask-msg.typing { display: flex; gap: 5px; padding: 14px; }
.ask-msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.ask-msg.typing i:nth-child(2) { animation-delay: .15s; } .ask-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.ask-toy { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 8px; border-radius: 14px; background: var(--soft); }
.ask-ph { flex: none; width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.ask-ph .ph-art { width: 80%; height: 80%; }
.ask-toy b { display: block; font: 600 15px/1.2 Fredoka, sans-serif; }
.ask-toy .prices { gap: 2px 6px; margin-top: 2px; }
.ask-toy .price { font-size: 16px; }
.ask-toy .mrp, .ask-toy .off { font-size: 12px; }
.ask-links { display: flex; gap: 14px; margin: 4px 0 0; }
.ask-links a { font-weight: 800; font-size: 14px; color: var(--link); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--bg); }
.ask-chips button { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 800 13px Nunito, sans-serif; cursor: pointer; }
.ask-chips button:hover { border-color: var(--grape); }
.ask-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ask-form input { min-height: 44px; border-radius: 999px; padding-inline: 16px; }
.ask-note { margin: 0; padding: 0 14px 10px; font-size: 11.5px; color: var(--muted); text-align: center; }
@media (max-width: 860px) {
  .ask-fab { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); padding: 5px; }
  .ask-fab span { display: none; }
  .ask-fab img { width: 46px; height: 46px; }
  .ask-panel { right: 8px; left: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)); max-height: 680px; z-index: 50; }
}


/* rising balloons */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.rise { position: absolute; bottom: -140px; width: clamp(34px, 4.5vw, 56px); animation: rise 18s linear infinite; will-change: transform; }
.rise svg { width: 100%; height: auto; display: block; animation: sway 4s ease-in-out infinite alternate; }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(calc(-100vh - 300px)); } }
@keyframes sway { from { transform: translateX(-14px) rotate(-6deg); } to { transform: translateX(14px) rotate(6deg); } }
.rise.r1 { left: 4%; animation-duration: 17s; animation-delay: -2s; }
.rise.r2 { left: 16%; animation-duration: 22s; animation-delay: -11s; width: clamp(28px, 3.5vw, 44px); }
.rise.r3 { left: 30%; animation-duration: 19s; animation-delay: -6s; }
.rise.r4 { left: 47%; animation-duration: 24s; animation-delay: -16s; width: clamp(26px, 3vw, 40px); }
.rise.r5 { left: 62%; animation-duration: 18s; animation-delay: -9s; }
.rise.r6 { left: 76%; animation-duration: 21s; animation-delay: -1s; width: clamp(30px, 3.8vw, 48px); }
.rise.r7 { left: 88%; animation-duration: 16s; animation-delay: -13s; }
.rise.r8 { left: 95%; animation-duration: 23s; animation-delay: -5s; width: clamp(26px, 3vw, 40px); }
.page-hero .rise { animation-duration: 14s; }
@media (max-width: 860px) { .rise.r2, .rise.r4, .rise.r6 { display: none; } .rise { opacity: .8; } }

/* toy train along the bottom of the home banner */
.rail { position: absolute; left: 0; right: 0; bottom: 14px; height: clamp(64px, 8.5vw, 108px); z-index: 1; pointer-events: none; }
.rail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, #8a5a3c 0 14px, transparent 14px 26px); border-top: 3px solid #6b4430; opacity: .55; }
.train { position: absolute; bottom: 4px; left: 0; height: 100%; animation: chug 26s linear -9s infinite; will-change: transform; }
.train-svg { height: 100%; width: auto; display: block; animation: rattle .5s ease-in-out infinite alternate; }
@keyframes chug { from { transform: translateX(-100%); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes rattle { to { transform: translateY(-2px); } }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.puff { opacity: 0; animation: puff 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.puff.p1 { animation-delay: .4s; } .puff.p2 { animation-delay: .8s; } .puff.p3 { animation-delay: 1.2s; } .puff.p4 { animation-delay: 1.6s; }
@keyframes puff { 0% { opacity: 1; transform: translate(0, 0) scale(.5); } 60% { opacity: .85; } 100% { opacity: 0; transform: translate(-90px, -38px) scale(2.6); } }
.puff { stroke: #cfc8ea; stroke-width: 1.5; }
.car { animation: bob .45s ease-in-out infinite alternate; }
.car.c2 { animation-delay: -.1s; } .car.c3 { animation-delay: -.2s; } .car.c4 { animation-delay: -.3s; } .car.c5 { animation-delay: -.4s; }
@keyframes bob { to { transform: translateY(-3px); } }
.bln { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 1.6s ease-in-out infinite alternate; }
.bln.b2 { animation-delay: -.5s; } .bln.b3 { animation-delay: -1s; }
@keyframes sway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.lamp { animation: blink 1.2s steps(2, jump-none) infinite; }
.lamp.l2 { animation-delay: -.6s; }
@keyframes blink { 50% { opacity: .35; } }
@media (max-width: 860px) { .train { animation-duration: 16s; } }



/* twinkling stars */
.floaty[data-star] svg { animation: twinkle 2.6s ease-in-out infinite; transform-origin: center; }
.floaty[data-star]:nth-of-type(2n) svg { animation-delay: -1.3s; }
@keyframes twinkle { 50% { transform: scale(.7) rotate(20deg); opacity: .6; } }

/* paper plane looping across a banner */
.plane { position: absolute; z-index: 0; top: 18%; left: 0; width: clamp(80px, 9vw, 120px); pointer-events: none; animation: fly 16s ease-in-out infinite; }
.plane svg { width: 100%; height: auto; display: block; }
@keyframes fly {
  0% { transform: translate(-160px, 40px) rotate(-6deg); }
  50% { transform: translate(50vw, -10px) rotate(4deg); }
  100% { transform: translate(calc(100vw + 40px), 30px) rotate(-4deg); }
}
.page-hero .plane { top: 8%; animation-duration: 12s; }

/* pinwheel spinning in the shop banner */
.pinwheel { position: absolute; z-index: 0; left: 5%; bottom: 0; width: clamp(54px, 7vw, 86px); pointer-events: none; }
.pinwheel svg { width: 100%; height: auto; display: block; }
.pin-blades { transform-box: fill-box; transform-origin: center; animation: spin 2.2s linear infinite; }

/* rocket zooming across (play banner and home play teaser) */
.zoom { position: absolute; z-index: 0; top: 12%; left: 0; width: clamp(90px, 10vw, 130px); pointer-events: none; animation: zoom 9s ease-in infinite; }
.zoom svg { width: 100%; height: auto; display: block; }
.flame { transform-box: fill-box; transform-origin: right center; animation: flicker .18s ease-in-out infinite alternate; }
@keyframes flicker { to { transform: scaleX(.65); } }
@keyframes zoom {
  0% { transform: translate(-180px, 60px) rotate(-12deg); }
  60%, 100% { transform: translate(calc(100vw + 60px), -40px) rotate(-12deg); }
}
.play-teaser { position: relative; overflow: hidden; }
.play-teaser > div { position: relative; z-index: 1; }
.play-teaser .zoom { top: auto; bottom: 10%; animation-duration: 11s; opacity: .9; }

/* toy car driving along the footer wave */
.road-car { position: absolute; z-index: 1; top: -62px; left: 0; width: clamp(64px, 7vw, 90px); pointer-events: none; animation: drive 18s linear infinite; }
.road-car svg { width: 100%; height: auto; display: block; animation: rattle .35s ease-in-out infinite alternate; }
@keyframes drive { from { transform: translateX(-120px); } to { transform: translateX(calc(100vw + 20px)); } }

@media (max-width: 860px) { .pinwheel { left: 2%; opacity: .85; } .plane { width: 70px; } }
@media (min-width: 861px) { .site-foot { padding-bottom: 96px; } }

/* alignment fixes */
.page-hero .quote-line { border-radius: 20px; max-width: min(100%, 30em); }
.info-card h2 { padding-right: 48px; }
@media (max-width: 560px) {
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .pinwheel { display: none; }
  .g-bar .btn { margin-left: 0; }
}
@media (min-width: 1101px) { .perks { flex-wrap: nowrap; } .perks li { white-space: nowrap; } }


/* scroll motion: every section brings something in */
.js .reveal.pop { transform: translateY(34px) scale(.9); transition-duration: .55s; transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.pop.in { transform: none; }
.js .section-head.reveal { transform: translateX(-36px); }
.js .section-head.reveal.in { transform: none; }
.js .big-quote.reveal, .js .cta-band.reveal { transform: scale(.94); }
.js .big-quote.reveal.in, .js .cta-band.reveal.in { transform: none; }
.section-head { position: relative; }
.mascot { position: absolute; z-index: 0; right: 0; top: -54px; width: clamp(46px, 5vw, 66px); pointer-events: none; }
.mascot svg { width: 100%; height: auto; display: block; animation: hop 2.6s ease-in-out infinite; }
.js .mascot { opacity: 0; transform: translateX(140px) rotate(240deg); transition: opacity .6s, transform 1.2s cubic-bezier(.2, .9, .3, 1.15); }
.js .in > .mascot { opacity: 1; transform: none; }
@keyframes hop { 50% { transform: translateY(-10px) rotate(-6deg); } }
.cta-band .mascot { top: auto; bottom: 8px; right: 30%; width: clamp(60px, 7vw, 90px); }
.js .cta-band .mascot { transform: translateX(-220px); }
.js .cta-band.in > .mascot { transform: none; }
.cta-band .mascot svg { animation: rattle .35s ease-in-out infinite alternate; }
@media (max-width: 560px) { .mascot { top: -44px; width: 42px; } .cta-band .mascot { right: 6%; bottom: auto; top: 10px; width: 54px; } }

/* toys walking along the bottom of a section */
.lane { position: absolute; left: 0; right: 0; bottom: 6px; height: clamp(54px, 6vw, 82px); pointer-events: none; z-index: 0; }
.walker { position: absolute; left: 0; bottom: 0; height: 100%; aspect-ratio: 4 / 5; animation: walk 30s linear -11s infinite; }
.w-robot { animation-delay: -19s; } .w-duck { animation-delay: -6s; }
.walker.w-duck { aspect-ratio: 9 / 8; }
.walker svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lane.rev .walker { animation-direction: reverse; }
.lane.rev .walker svg { transform: scaleX(-1); }
@keyframes walk { from { transform: translateX(-100%); } to { transform: translateX(100vw); } }
.leg, .arm { transform-box: fill-box; transform-origin: 50% 0; animation: step .5s ease-in-out infinite alternate; }
.leg-b, .arm-a { animation-direction: alternate-reverse; }
@keyframes step { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.bodybob { animation: hop .25s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateY(-3px); } }
.w-duck .bodybob { transform-box: fill-box; transform-origin: 50% 100%; animation: waddle .5s ease-in-out infinite alternate; }
@keyframes waddle { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.wing { transform-box: fill-box; transform-origin: 0 50%; animation: step .3s ease-in-out infinite alternate; }
.key { transform-box: fill-box; transform-origin: 30% 50%; animation: spin 1.4s linear infinite; }

/* butterflies fluttering through the banners */
.fly { position: absolute; z-index: 0; left: 0; top: 30%; width: clamp(32px, 3.4vw, 46px); pointer-events: none; animation: flutter 22s linear -7s infinite; }
.fly svg { width: 100%; height: auto; display: block; }
.fly-2 { top: 58%; width: clamp(26px, 2.8vw, 36px); animation-duration: 28s; animation-delay: -12s; }
@keyframes flutter {
  0% { transform: translate(-60px, 0) rotate(8deg); }
  20% { transform: translate(20vw, -40px) rotate(-6deg); }
  40% { transform: translate(40vw, 20px) rotate(10deg); }
  60% { transform: translate(60vw, -30px) rotate(-8deg); }
  80% { transform: translate(80vw, 30px) rotate(6deg); }
  100% { transform: translate(calc(100vw + 60px), 0) rotate(-4deg); }
}
.wing-l, .wing-r { transform-box: fill-box; animation: flap .22s ease-in-out infinite alternate; }
.wing-l { transform-origin: 100% 50%; } .wing-r { transform-origin: 0 50%; }
@keyframes flap { to { transform: scaleX(.25); } }

/* helicopter hovering across the play areas */
.heli { position: absolute; z-index: 0; left: 0; top: 8%; width: clamp(70px, 8vw, 110px); pointer-events: none; animation: hover 20s ease-in-out -4s infinite; }
.heli svg { width: 100%; height: auto; display: block; overflow: visible; transform: scaleX(-1); }
.play-teaser .heli { top: 4%; animation-delay: -8s; opacity: .9; }
@keyframes hover {
  0% { transform: translate(calc(100vw + 40px), 10px); }
  25% { transform: translate(70vw, -6px); } 30% { transform: translate(66vw, 6px); }
  60% { transform: translate(30vw, -8px); } 65% { transform: translate(26vw, 4px); }
  100% { transform: translate(-160px, 0); }
}
.rotor { transform-box: fill-box; transform-origin: center; animation: rotor .12s linear infinite alternate; }
@keyframes rotor { to { transform: scaleX(.15); } }
.tail-rotor { transform-box: fill-box; transform-origin: center; animation: spin .3s linear infinite; }

/* twinkling sparkles */
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sp { position: absolute; width: clamp(14px, 1.7vw, 24px); }
.sp svg { width: 100%; height: auto; display: block; animation: sparkle 2.4s ease-in-out infinite; }
.sp1 { left: 4%; top: 12%; } .sp2 { right: 6%; top: 30%; } .sp3 { left: 46%; top: 6%; }
.sp4 { left: 22%; bottom: 14%; } .sp5 { right: 24%; bottom: 10%; } .sp6 { right: 40%; top: 46%; }
.sp2 svg { animation-delay: -.6s; } .sp3 svg { animation-delay: -1.2s; } .sp4 svg { animation-delay: -1.8s; } .sp5 svg { animation-delay: -.9s; } .sp6 svg { animation-delay: -1.5s; }
@keyframes sparkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
.big-quote .sp { width: clamp(14px, 1.8vw, 24px); }

/* 404 page */
.ph-404 { background: linear-gradient(160deg, var(--sky-l), #efe9ff); padding-block: clamp(48px, 8vw, 96px); }
.ph-404 .lost { display: block; width: 110px; margin: 0 auto 12px; animation: bob 1.2s ease-in-out infinite alternate; }
.ph-404 .lost svg { width: 100%; height: auto; display: block; }
.hero-cta.center { justify-content: center; margin-top: 18px; }

/* phones: keep the big movements, skip the tiny ones */
@media (max-width: 560px) {
  .flame, .train-svg, .car, .bln, .tail-rotor { animation: none; }
  .fly-2, .heli .tail-rotor, .sp4, .sp5, .sp6 { display: none; }
  .walker { animation-duration: 18s; }
}

/* one place for reduced motion: everything stands still, decorations that only move are hidden */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rise, .plane, .zoom, .road-car, .lane, .fly, .heli, .sparkles { display: none; }
  .train { left: 50%; transform: translateX(-50%); }
  .puff { opacity: .6; }
}
