/* AmigoTales — storybook-premium design system (2026-11 redesign) */
:root {
  --navy: #04587c; --navy-deep: #033f5a; --pink: #ef7c8e; --pink-deep: #dd5f76; --parch: rgb(249, 224, 168);
  --cream: #fffaf3; --cream-2: #fbf2e4; --sky: #e6f5fc; --mint: #1fa39a; --gold: #e7b347; --lilac: #a77bd6; --green: #5aa83a; --orange: #f39a4b;
  --ink: #23323d; --muted: #66727c; --line: rgba(4, 88, 124, .1);
  --r-sm: 14px; --r: 24px; --r-lg: 36px;
  --shadow-sm: 0 2px 8px rgba(35, 50, 61, .06); --shadow: 0 14px 40px -12px rgba(35, 50, 61, .18); --shadow-lg: 0 30px 70px -20px rgba(4, 63, 90, .35);
  --ease: cubic-bezier(.2, .8, .2, 1); --bounce: cubic-bezier(.3, 1.6, .5, 1);
  --display: "Lobster Two", "Georgia", cursive; --body: "Andika", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--body); color: var(--ink); background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3, .brand, .display { font-family: var(--display); font-weight: 700; color: var(--navy); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--pink-deep); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 18px; background: url(/img/deco/sparkle.svg) center/contain no-repeat; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tint { background: linear-gradient(180deg, var(--cream) 0, var(--cream-2) 18%, var(--cream-2) 82%, var(--cream) 100%); }
.section.sky { background: linear-gradient(180deg, var(--cream) 0, var(--sky) 20%, var(--sky) 80%, var(--cream) 100%); }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.head h2 { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 99px; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; padding: 12px 0; height: 88px; } /* fixed height: the sky below tucks exactly 88px under it */
.top .bar { position: relative; display: flex; align-items: center; gap: 20px; background: rgba(255, 250, 243, .84); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 8px 10px 8px 22px; transition: box-shadow .3s; }
.top.scrolled .bar { box-shadow: var(--shadow); }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; color: var(--navy); padding: 9px 14px; border-radius: 99px; transition: background .2s, color .2s; font-size: .98rem; }
.nav a:hover { background: rgba(4, 88, 124, .07); }
.nav a.on { color: var(--pink-deep); background: rgba(239, 124, 142, .1); }
.nav a.cart-link { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 10px 16px; margin-left: 6px; }
.nav a.cart-link:hover { background: var(--navy-deep); }
.cart-link svg { width: 18px; height: 18px; }
.cart-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--pink); color: #fff; border-radius: 99px; font-size: .78rem; padding: 0 6px; }
.cart-count.pop { animation: pop .5s var(--bounce); }
@keyframes pop { 40% { transform: scale(1.6); } }
.burger { display: none; margin-left: auto; background: var(--navy); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.burger svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .burger { display: grid; place-items: center; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px; border-radius: var(--r); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav a.cart-link { justify-content: center; margin: 6px 0 0; }
  .logo img { height: 40px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, #f48fa0, var(--pink-deep)); color: #fff; border: 0; border-radius: 999px; padding: 15px 30px; font: 700 1.05rem/1 var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(221, 95, 118, .65), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s var(--bounce), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(221, 95, 118, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn.navy { background: linear-gradient(180deg, #0a6d97, var(--navy-deep)); box-shadow: 0 10px 24px -8px rgba(4, 63, 90, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.ghost { background: rgba(255, 255, 255, .7); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn.ghost:hover { background: #fff; }
.btn.amazon { background: linear-gradient(180deg, #ffc65a, #f2a019); color: #2d2200; box-shadow: 0 10px 24px -8px rgba(242, 160, 25, .6), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn.soon { background: linear-gradient(180deg, #bc97e6, var(--lilac)); box-shadow: 0 10px 24px -8px rgba(167, 123, 214, .6); cursor: default; }
.btn.small { padding: 10px 18px; font-size: .92rem; }
.btn .arrow { transition: transform .2s; } .btn:hover .arrow { transform: translateX(3px); }
.link { font-weight: 700; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--pink); padding-bottom: 2px; }

/* ---------- hero with character scenes ----------
   Everything scales with the viewport (vw + clamp) so the scene keeps its proportions at every width.
   Layout zones: text (left) · books (right) · Amigo swinging in the right gutter · meadow band below with Coco, Skye, Lola. */
.hero { --meadow: clamp(200px, 22vw, 320px); position: relative; overflow: hidden; margin-top: -88px; padding: calc(116px + 3vw) 0 0; background:
  radial-gradient(60vw 34vw at 85% 10%, rgba(255, 255, 255, .9), transparent 60%),
  radial-gradient(50vw 30vw at 10% 30%, rgba(255, 236, 214, .7), transparent 60%),
  linear-gradient(180deg, #cdeefd 0%, #e7f6fd 45%, #fdf3e3 100%); }
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4vw; align-items: center; padding-bottom: var(--meadow); }
.hero h1 .hl { color: var(--pink-deep); display: block; }
.hero .lead { color: #4b5a64; margin-bottom: 28px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.hero .trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero .trust svg { width: 18px; height: 18px; color: var(--mint); }
/* book stack: a fixed-ratio box, so the covers keep their shape at any size */
.books { position: relative; display: block; width: 100%; max-width: 480px; aspect-ratio: 1.12; margin: 0 clamp(70px, 9vw, 150px) 0 auto; perspective: 1400px; }
.books img { position: absolute; width: 62%; height: auto; aspect-ratio: 900 / 904; object-fit: cover; object-position: top; border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow-lg); transition: transform .6s var(--ease); }
.books img:nth-child(1) { left: 0; top: 18%; transform: rotate(-10deg); }
.books img:nth-child(2) { right: 0; top: 16%; transform: rotate(9deg); }
.books img:nth-child(3) { left: 19%; top: 0; z-index: 2; }
.books:hover img:nth-child(1) { transform: rotate(-14deg) translate(-4%, 2%); }
.books:hover img:nth-child(2) { transform: rotate(13deg) translate(4%, 2%); }
.books:hover img:nth-child(3) { transform: translateY(-3%) scale(1.02); }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; height: calc(var(--meadow) * .85); background: url(/img/deco/hills.svg) bottom/100% 100% no-repeat; z-index: 2; pointer-events: none; }
.cloud { position: absolute; aspect-ratio: 2; background: url(/img/deco/cloud.svg) center/contain no-repeat; pointer-events: none; z-index: 1; filter: drop-shadow(0 12px 18px rgba(4, 88, 124, .08)); animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(4vw); } }
.spark { position: absolute; width: 22px; height: 22px; background: url(/img/deco/sparkle.svg) center/contain no-repeat; pointer-events: none; z-index: 2; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.45) rotate(45deg); opacity: .5; } }

/* characters living in the scene (decorative; aria-hidden in markup) */
.actor { position: absolute; z-index: 4; pointer-events: none; }
.actor img { width: 100%; height: auto; filter: drop-shadow(0 16px 18px rgba(35, 50, 61, .18)); }
/* Amigo + branch move together as one box in the right-hand gutter */
.swingbox { --rope: 92px; top: 0; right: clamp(20px, calc(50vw - 700px), 140px); width: clamp(76px, 9vw, 160px); }
.swingbox .swing { position: absolute; top: 0; left: 0; width: 100%; padding-top: var(--rope); transform-origin: 1.6% 0; animation: swing 4.6s ease-in-out infinite; }
/* the rope continues Amigo's vine straight up to the top of the screen (same width, position and colour as the vine in the art) */
.swingbox .swing::before { content: ""; position: absolute; top: 0; left: .3%; width: 2.6%; height: calc(var(--rope) + 2px); border-radius: 2px; background: linear-gradient(90deg, #6f5034, #a8865f 45%, #8a6a47); }
.swingbox .swing img { display: block; }
@keyframes swing { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(-6deg); } }
/* meadow band: Coco left, Skye centre (popping out of a cloud on the hill), Lola right */
.ground { position: absolute; z-index: 4; pointer-events: none; bottom: calc(var(--meadow) * .12); }
.leap { left: clamp(0px, calc(50vw - 640px), 200px); width: clamp(170px, 24vw, 380px); aspect-ratio: 1.65; }
.leap .rocks { position: absolute; bottom: 0; left: 30%; width: 44%; }
.leap .coco { position: absolute; bottom: 4%; left: 0; width: 42%; animation: leap 3.8s var(--ease) infinite; }
@keyframes leap { 0%, 10% { transform: translate(0, 0); } 18% { transform: translate(0, 4%) scale(1.04, .94); } 40% { transform: translate(70%, -70%) rotate(-5deg); } 60% { transform: translate(138%, 0) rotate(3deg); } 66% { transform: translate(138%, 3%) scale(1.04, .94); } 74%, 82% { transform: translate(138%, 0); }
  83% { transform: translate(138%, 0) scaleX(-1); } 90% { transform: translate(69%, -50%) scaleX(-1); } 98%, 100% { transform: translate(0, 0) scaleX(-1); } }
.lift { right: clamp(0px, calc(50vw - 640px), 200px); width: clamp(100px, 15vw, 240px); animation: lift 3s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes lift { 0%, 55%, 100% { transform: translateY(0); } 65% { transform: translateY(3px) scale(1.02, .97); } 80% { transform: translateY(-16px) scale(.99, 1.02); } }
.peek { left: 50%; translate: -50% 0; width: clamp(96px, 12vw, 200px); aspect-ratio: .72; }
/* Skye's head rises inside a window whose bottom edge sits behind the cloud's solid middle, so no edge ever shows */
.hero .peek { left: clamp(28px, calc(50vw - 690px), 210px); top: 116px; translate: none; width: clamp(84px, 9vw, 140px); } /* upper-left sky, like the inner pages */
@media (min-width: 901px) { .hero { padding-top: calc(134px + min(12.6vw, 196px)); } } /* always leaves room for Skye's cloud above the text */
.peek .window { position: absolute; left: 10%; width: 80%; top: -16%; height: 79%; overflow: hidden; } /* extends upward so her ears never clip at the top of the pop */
.peek .skye { position: absolute; left: 0; bottom: 0; width: 100%; transform: translateY(105%); animation: peek 7s var(--ease) infinite; }
.peek .puff { position: absolute; left: -25%; bottom: 0; width: 150%; aspect-ratio: 480 / 260; background: url(/img/deco/cloud-soft.svg) center/contain no-repeat; }
.peek .skye { filter: none !important; }
@keyframes peek { 0%, 10% { transform: translateY(105%); } 24% { transform: translateY(-4%); } 30%, 76% { transform: translateY(0); } 82% { transform: translateY(4%); } 92%, 100% { transform: translateY(105%); } }
@media (max-width: 900px) {
  .hero { --meadow: clamp(170px, 42vw, 240px); padding-top: 220px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .hero .ctas, .hero .trust { justify-content: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .books { max-width: min(420px, 82vw); margin: 0 auto; }
  .swingbox { --rope: 92px; top: 0; right: 10px; width: clamp(60px, 14vw, 90px); }
  .leap { width: clamp(150px, 40vw, 240px); } .lift { width: clamp(84px, 22vw, 140px); } .hero .peek { width: 78px; top: 104px; left: 30px; }
  .hero .cloud { display: none; }
}
@media (max-width: 520px) { .hero h1 { font-size: 2.45rem; } .eyebrow { font-size: .68rem; letter-spacing: .12em; } }

/* page hero (inner pages): same scene language, smaller; actors stay in the side gutters and the meadow */
.page-hero { position: relative; overflow: hidden; margin-top: -88px; padding: calc(100px + min(11vw, 150px)) 0 clamp(110px, 11vw, 150px); /* room for Skye above the title */ text-align: center; background:
  radial-gradient(60vw 30vw at 50% 0, rgba(255, 255, 255, .85), transparent 70%), linear-gradient(180deg, #d7f1fd 0%, #eaf7fd 55%, var(--cream) 100%); }
.page-hero > .wrap { position: relative; z-index: 3; }
.page-hero .lead { margin: 0 auto; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(80px, 9vw, 120px); background: url(/img/deco/hills.svg) bottom/100% 100% no-repeat; z-index: 2; pointer-events: none; }
.page-hero .ground { bottom: clamp(8px, 1.4vw, 20px); }
.page-hero .lift { width: clamp(70px, 9vw, 140px); right: clamp(4px, calc(50vw - 600px), 160px); }
.page-hero .peek { left: clamp(34px, calc(50vw - 600px), 190px); top: 100px; translate: none; width: clamp(70px, 7vw, 110px); } /* upper-left sky */
.page-hero .leap { left: clamp(0px, calc(50vw - 640px), 160px); width: clamp(150px, 17vw, 260px); }
.page-hero .swingbox { width: clamp(52px, 7vw, 120px); right: clamp(24px, calc(50vw - 640px + 2vw), 170px); }
@media (max-width: 700px) { .page-hero .peek { top: 100px; left: 30px; width: 70px; } .page-hero .swingbox { --rope: 84px; } .page-hero { padding-top: 220px; } }


/* ---------- friends lineup ---------- */
.lineup { display: flex; justify-content: center; align-items: flex-end; gap: clamp(2px, 1.6vw, 26px); height: calc(var(--lineup-h) + 70px); padding-top: 70px; position: relative; }
.pal { position: relative; background: none; border: 0; padding: 0 0 32px; cursor: pointer; height: calc(var(--lineup-h) * var(--h)); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; animation: idle 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); transform-origin: 50% 100%; }
.pal img { height: 100%; width: auto; filter: drop-shadow(0 14px 14px rgba(35, 50, 61, .16)); transition: transform .3s var(--bounce); }
.pal:hover img, .pal:focus-visible img { transform: translateY(-6px) scale(1.04); }
.pal .name { position: absolute; bottom: 0; font: 700 1.05rem var(--display); color: #fff; background: var(--c); padding: 2px 14px; border-radius: 99px; white-space: nowrap; box-shadow: 0 6px 14px -4px var(--c); }
.pal.hop { animation: hop .75s var(--bounce); }
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(calc((var(--i) - 2) * .5deg)); } }
@keyframes hop { 0% { transform: none; } 15% { transform: scale(1.08, .9); } 45% { transform: translateY(-34px) scale(.96, 1.05); } 72% { transform: scale(1.04, .96); } 100% { transform: none; } }
.bubble { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px) scale(.6); opacity: 0; background: #fff; color: var(--navy); border-radius: 22px; padding: 10px 16px; font: 700 .95rem/1.35 var(--body); width: max-content; max-width: 220px; text-align: center; transition: transform .3s var(--bounce), opacity .2s; pointer-events: none; z-index: 5; box-shadow: var(--shadow), inset 0 0 0 2px var(--c); }
.bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; }
.pal.talk .bubble { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.pal:first-child .bubble { left: 0; transform: translateY(8px) scale(.6); } .pal:first-child.talk .bubble { transform: none; }
.pal:last-of-type .bubble { left: auto; right: 0; transform: translateY(8px) scale(.6); } .pal:last-of-type.talk .bubble { transform: none; }
.pal:first-child .bubble::after { left: 28px; } .pal:last-of-type .bubble::after { left: auto; right: 20px; }
.lineup-hint { text-align: center; color: var(--muted); font-weight: 700; margin: 6px 0 0; }
@media (max-width: 600px) { .pal .name { font-size: .78rem; padding: 1px 8px; } .bubble { max-width: 150px; font-size: .82rem; } .lineup { gap: 0; } }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.card .pic { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.card .pic img.contain { object-fit: contain; }
.card.book .pic { background: linear-gradient(180deg, var(--sky), var(--cream-2)); }
.card.book .pic img { object-fit: contain; padding: 20px 20px 12px; filter: drop-shadow(0 12px 14px rgba(35, 50, 61, .22)); }
.card .pic img.alt { opacity: 0; }
.card:hover .pic img.alt { opacity: 1; }
.card:hover .pic img:not(.alt) { transform: scale(1.04); }
.card .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .title { font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.3; }
.card .sub { color: var(--muted); font-size: .88rem; }
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; color: var(--pink-deep); font-size: 1.15rem; }
.card.amazon .price { color: #b26a00; font-size: .95rem; } .card.soon .price { color: var(--lilac); font-size: .95rem; }
.tag { display: inline-block; border-radius: 99px; padding: 4px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; background: var(--cream-2); color: var(--navy); }
.tag.storybook { background: #def1fb; } .tag.coloring { background: #f1e7ff; color: #6b3fa6; } .tag.merch { background: #ffe3e8; color: #a23b52; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); color: var(--navy); font: 700 .74rem var(--body); letter-spacing: .05em; padding: 6px 10px; border-radius: 99px; box-shadow: var(--shadow-sm); display: inline-flex; gap: 6px; align-items: center; }
.badge.soon { background: var(--lilac); color: #fff; }
.badge svg { width: 14px; height: 14px; }
.filters { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border-radius: 99px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); margin-bottom: 34px; flex-wrap: wrap; justify-content: center; }
.filters button { border: 0; background: transparent; color: var(--navy); border-radius: 99px; padding: 10px 18px; font: 700 .95rem var(--body); cursor: pointer; transition: background .2s, color .2s; }
.filters button.on { background: var(--navy); color: #fff; }

/* book carousel */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 30px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); cursor: pointer; font-size: 1.3rem; transition: transform .2s; }
.rail-nav button:hover { transform: scale(1.08); }

/* feature banner */
.banner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 30px; border-radius: var(--r-lg); padding: clamp(36px, 5vw, 64px); color: #e9f5fa; background:
  radial-gradient(600px 300px at 90% 0, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(135deg, #0a6d97, var(--navy-deep)); box-shadow: var(--shadow-lg); }
.banner h2 { color: #fff; }
.banner .eyebrow { color: #ffd0d8; }
.banner p { color: #cfe7f1; max-width: 520px; }
.banner .art { position: relative; height: 100%; min-height: 260px; }
.banner .art img { position: absolute; bottom: -70px; right: 0; width: min(300px, 100%); animation: bob 3.4s ease-in-out infinite; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, .25)); }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-2deg); } }
@media (max-width: 800px) { .banner { grid-template-columns: 1fr; text-align: center; } .banner p { margin: 0 auto 1em; } .banner .art { min-height: 230px; } .banner .art img { right: calc(50% - 110px); width: 220px; } }

/* values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { background: #fff; border-radius: var(--r); padding: 28px 24px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; text-align: left; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.value .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; background: var(--c); color: #fff; box-shadow: 0 10px 20px -8px var(--c); }
.value .ico svg { width: 28px; height: 28px; }
.value h3 { font-size: 1.35rem; margin-bottom: .3em; }
.value p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* friend portraits */
.friends { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.friend { text-align: center; text-decoration: none; }
.friend .ring { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff, #f6efe3); box-shadow: inset 0 0 0 5px var(--c), var(--shadow); display: grid; place-items: end center; overflow: hidden; transition: transform .35s var(--bounce); }
.friend .ring img { width: 74%; height: auto; margin-bottom: -2%; }
.friend:hover .ring { transform: translateY(-8px) rotate(-3deg); }
.friend .brand { font-size: 1.55rem; margin-top: 12px; display: block; color: var(--c); }
@media (max-width: 760px) { .friends { grid-template-columns: repeat(3, 1fr); } }

/* ---------- product page ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 22px; } .crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.stage { position: relative; aspect-ratio: 1; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); overflow: hidden; }
.stage > img { width: 100%; height: 100%; object-fit: contain; }
.stage.photo > img { object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 74px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 0 0 0 1px var(--line); position: relative; transition: box-shadow .2s, transform .2s; }
.thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--pink); }
.thumbs button:hover { transform: translateY(-2px); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t360 { display: grid; place-items: center; font: 700 .82rem/1.1 var(--body); color: var(--navy); background: linear-gradient(180deg, #fff, var(--sky)); }
.thumbs .t360 svg { width: 26px; height: 26px; display: block; margin: 0 auto 2px; }
/* 360 spin viewer */
.spin { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.spin.drag { cursor: grabbing; }
.spin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; pointer-events: none; }
.spin img.on { opacity: 1; }
.spin-ui { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-radius: 99px; padding: 6px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); z-index: 2; }
.spin-ui button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; font-size: 1rem; display: grid; place-items: center; }
.spin-ui span { font: 700 .82rem var(--body); color: var(--navy); padding: 0 6px; white-space: nowrap; }
.buybox h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: 10px; }
.buybox .price { font-size: 1.8rem; display: block; margin: 6px 0 18px; }
.buybox .desc { font-size: 1.06rem; }
.ticks { padding: 0; list-style: none; margin: 18px 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.buy { display: flex; gap: 14px; align-items: center; margin: 24px 0 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; background: #fff; border-radius: 99px; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.qty button { border: 0; background: none; width: 44px; height: 50px; font-size: 1.3rem; cursor: pointer; color: var(--navy); }
.qty input { width: 44px; text-align: center; border: 0; font: 700 1.05rem var(--body); background: none; margin: 0; padding: 0; box-shadow: none; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.assure div { background: #fff; border-radius: var(--r-sm); padding: 12px; font-size: .84rem; color: var(--muted); box-shadow: 0 0 0 1px var(--line); text-align: center; }
.assure b { display: block; color: var(--navy); font-size: .92rem; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
/* page-flip book preview */
.flipbook .fb-stage { position: relative; aspect-ratio: 1; perspective: 2000px; background: linear-gradient(180deg, var(--sky), var(--cream-2)); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); cursor: pointer; }
.fb-page { position: absolute; inset: 7%; backface-visibility: hidden; transform-origin: left center; transition: transform .9s var(--ease); background: #fff; border-radius: 6px 14px 14px 6px; box-shadow: var(--shadow); overflow: hidden; }
.fb-page img { width: 100%; height: 100%; object-fit: cover; }
.fb-page.turned { transform: rotateY(-180deg); }
.fb-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.fb-controls button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; font-size: 1.3rem; }
.fb-controls button:disabled { opacity: .3; cursor: default; }
.fb-dots { display: flex; gap: 8px; } .fb-dots span { width: 10px; height: 10px; border-radius: 99px; background: #d9cdb8; transition: all .3s; } .fb-dots span.on { background: var(--pink); width: 26px; }

/* ---------- characters page ---------- */
.meet { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.meet-card { background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow), inset 0 0 0 3px var(--c, var(--pink)); text-align: left; min-height: 300px; position: relative; z-index: 3; }
.meet-card h2 { color: var(--c, var(--navy)); }
.meet-card.swap { animation: swap .5s var(--bounce); }
@keyframes swap { from { transform: scale(.94); opacity: .4; } }
.species { color: var(--c, var(--pink-deep)); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.char { --c: var(--pink); display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.char:last-child { border-bottom: 0; }
.char:nth-child(even) { grid-template-columns: 1fr 360px; } .char:nth-child(even) .pic { order: 2; }
.char .pic { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: end center; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff, #f6efe3); box-shadow: inset 0 0 0 6px var(--c), var(--shadow); }
.char .pic img { width: 74%; }
.char h2 { color: var(--c); }
.char dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.char dt { font-weight: 700; color: var(--navy); } .char dd { margin: 0; }
@media (max-width: 860px) { .meet, .char, .char:nth-child(even) { grid-template-columns: 1fr; } .char:nth-child(even) .pic { order: 0; } .char .pic { max-width: 300px; margin: 0 auto; width: 100%; } }

/* ---------- play page ---------- */
.memory { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 660px; margin: 0 auto; }
@media (max-width: 560px) { .memory { grid-template-columns: repeat(4, 1fr); } }
.mcard { aspect-ratio: 3/4; perspective: 800px; border: 0; padding: 0; background: none; cursor: pointer; }
.mcard .in { position: relative; display: block; width: 100%; height: 100%; transition: transform .55s var(--bounce); transform-style: preserve-3d; }
.mcard.up .in, .mcard.done .in { transform: rotateY(180deg); }
.mcard .front, .mcard .back { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; display: grid; place-items: center; box-shadow: var(--shadow); }
.mcard .front { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .3), transparent 50%), linear-gradient(135deg, #0a6d97, var(--navy-deep)); }
.mcard .front::after { content: ""; width: 40%; aspect-ratio: 1; background: url(/img/deco/sparkle.svg) center/contain no-repeat; }
.mcard .back { background: radial-gradient(circle at 50% 30%, #fff, #f6efe3); transform: rotateY(180deg); box-shadow: inset 0 0 0 4px var(--c), var(--shadow); overflow: hidden; place-items: end center; }
.mcard .back img { width: 84%; }
.mcard.done .back { animation: glow 1s; } @keyframes glow { 50% { box-shadow: inset 0 0 0 4px var(--c), 0 0 0 8px var(--c); } }
.gamebar { display: flex; justify-content: center; gap: 18px; align-items: center; margin: 12px 0 24px; flex-wrap: wrap; font-weight: 700; color: var(--navy); }
.colorer { display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .colorer { grid-template-columns: 1fr; } }
.colorer canvas { width: 100%; height: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); cursor: crosshair; touch-action: manipulation; }
.panel { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.panel h3 { font-size: 1.2rem; }
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.palette button { aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); cursor: pointer; transition: transform .15s; }
.palette button[aria-pressed="true"] { transform: scale(1.18); box-shadow: 0 0 0 3px var(--navy); }
.pages { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pages button { width: 54px; height: 54px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pages button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--pink); }
.pages img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- cart, checkout, forms ---------- */
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } .cart-table .hide-sm { display: none; } }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.cart-table td, .cart-table th { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cart-table img { width: 68px; height: 68px; object-fit: cover; border-radius: 14px; }
.link-btn { background: none; border: 0; color: var(--pink-deep); cursor: pointer; font: inherit; text-decoration: underline; }
.summary { background: #fff; border-radius: var(--r); box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 26px; }
.summary .line { display: flex; justify-content: space-between; padding: 7px 0; }
.summary .total { border-top: 1px dashed #e3d6bf; margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.freebar { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.freebar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); border-radius: 99px; transition: width .6s var(--ease); }
label { display: block; font-weight: 700; color: var(--navy); font-size: .92rem; }
input, textarea, select { width: 100%; padding: 13px 16px; border: 1px solid #e6d9c2; border-radius: var(--r-sm); font: 1rem var(--body); background: #fff; margin-top: 6px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(239, 124, 142, .18); }
form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form .fields { grid-template-columns: 1fr; } }
.testbox { background: #fff6da; border: 1px solid #f1d98c; border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 16px; font-size: .95rem; }
.err { background: #ffe8eb; color: #9b1c33; border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.ok { background: #e4f7ec; color: #17603a; border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 14px 24px; border-radius: 99px; box-shadow: var(--shadow-lg); z-index: 70; font-weight: 700; animation: toast .4s var(--bounce); }
@keyframes toast { from { transform: translate(-50%, 20px); opacity: 0; } }
.legal { max-width: 780px; } .legal h2 { font-size: 1.7rem; margin-top: 1.6em; }
.content { max-width: 780px; margin: 0 auto; }

/* ---------- footer ---------- */
footer { position: relative; margin-top: 90px; color: #cfe3ec; background: var(--navy-deep); padding: 80px 0 30px; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 41px; background: var(--navy-deep); -webkit-mask: radial-gradient(42px 42px at 50% 100%, #000 98%, transparent) 0 0 / 84px 41px repeat-x; mask: radial-gradient(42px 42px at 50% 100%, #000 98%, transparent) 0 0 / 84px 41px repeat-x; }
footer a { color: #fff; text-decoration: none; opacity: .86; } footer a:hover { opacity: 1; text-decoration: underline; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
footer .brand { color: #fff; font-size: 2.3rem; }
footer strong { color: #fff; display: block; margin-bottom: 12px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
footer .links { display: grid; gap: 8px; }
footer small { display: block; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); opacity: .7; }
footer .peeker { position: absolute; right: max(20px, calc(50% - 560px)); top: -128px; width: 150px; z-index: 2; pointer-events: none; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .peeker { width: 104px; top: -88px; } }

/* ---------- scroll reveal & confetti ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.shown { opacity: 1; transform: none; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.confetti i { position: absolute; width: 10px; height: 14px; border-radius: 3px; animation: burst 1.3s cubic-bezier(.15, .7, .4, 1) forwards; }
@keyframes burst { to { transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--r)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .peek .skye { transform: none; }
  .swingbox .swing { transform: none; }
}
.spin-ui span { display: inline-flex; align-items: center; gap: 6px; min-width: 96px; justify-content: center; }
.spin-ui span svg { width: 20px; height: 20px; flex: none; }
/* lineup: even spacing, one shared baseline, matching soft ground shadow under every friend */
.lineup { gap: clamp(14px, 3.2vw, 48px); }
.pal::before { content: ""; position: absolute; bottom: 26px; left: 50%; translate: -50% 50%; width: 78%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(35, 50, 61, .2), transparent); z-index: -1; }
.pal { isolation: isolate; padding-bottom: 34px; }
.pal img { filter: drop-shadow(0 8px 10px rgba(35, 50, 61, .12)); }
.pal .name { bottom: 0; }
@media (max-width: 600px) { .lineup { gap: 4px; } .pal::before { bottom: 22px; height: 10px; } }
/* designed cover for books still being illustrated */
.cover-ph { position: absolute; inset: 14px 14px 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; padding: 18px; border-radius: 6px 14px 14px 6px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .28), transparent 55%), linear-gradient(160deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c)); box-shadow: var(--shadow), inset 6px 0 0 rgba(0, 0, 0, .08); }
.cover-ph::before { content: ""; position: absolute; top: 12%; right: 12%; width: 34px; height: 34px; background: url(/img/deco/sparkle.svg) center/contain no-repeat; opacity: .9; }
.cover-ph::after { content: ""; position: absolute; bottom: 14%; left: 14%; width: 22px; height: 22px; background: url(/img/deco/sparkle.svg) center/contain no-repeat; opacity: .7; }
.cover-ph .ser { font: 700 .7rem var(--body); letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.cover-ph .t { font: 700 clamp(1.3rem, 2.2vw, 2rem)/1.1 var(--display); }
.cover-ph .lbl { font: 700 .72rem var(--body); letter-spacing: .08em; background: rgba(255, 255, 255, .2); padding: 5px 12px; border-radius: 99px; }
.cover-ph.line { background: #fff; color: var(--c); box-shadow: var(--shadow), inset 0 0 0 3px var(--c); }
.cover-ph.line .lbl { background: color-mix(in srgb, var(--c) 14%, #fff); }
.stage .cover-ph { inset: 9%; }
.stage .cover-ph .t { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }

/* footer Amigo waves: the same approved image twice, one copy without the hand, one copy with only the hand rotating at the wrist */
footer .peeker { aspect-ratio: 1185 / 1738; }
footer .peeker img { position: absolute; inset: 0; width: 100%; height: 100%; }
footer .peeker .base { clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 86% 33%, 100% 33%, 100% 55%, 78% 55%, 78% 48%, 86% 44%, 86% 33%); }
footer .peeker .hand { clip-path: polygon(86% 33%, 100% 33%, 100% 55%, 78% 55%, 78% 48%, 86% 44%); transform-origin: 82% 52%; animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-10deg); } }
/* gift set pages: link to the plush that comes in the set */
.includes { display: flex; align-items: center; gap: 14px; margin: 18px 0 6px; padding: 10px 16px 10px 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); text-decoration: none; color: var(--muted); font-size: .92rem; transition: transform .25s var(--ease), box-shadow .25s; }
.includes:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.includes img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.includes b { display: block; color: var(--navy); font-size: 1rem; }
.includes .arrow { margin-left: auto; color: var(--pink-deep); font-weight: 700; font-size: 1.2rem; }
