/* pylotstudio kids template packs (/templates/kids/ + the Kids teaser on /templates/). TEST SITE ONLY.
   Builds on styles.css tokens (ink, cream, lime, coral). Bright kids accents are layered on top; text on
   bright fills is always ink for contrast. All motion is off under prefers-reduced-motion. */
:root {
  --kp-sun: #ffd23f; --kp-sky: #4cc3ff; --kp-grape: #a98bff; --kp-pink: #ff7eb6; --kp-mint: #5fe0b0;
  --kp-round: ui-rounded, "SF Pro Rounded", "Nunito", var(--sans);
  --kp-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --kp-radius: 28px;
}

/* ---------- Teaser on /templates/ ---------- */
.kp-teaser-sec { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(20px, 3vw, 40px); }
.kp-teaser-grid > li { grid-column: 1 / -1; }
.kp-teaser { position: relative; display: grid; gap: 28px; align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: var(--kp-radius); background: var(--ink); color: var(--text-light); overflow: hidden; isolation: isolate; }
@media (min-width: 900px) { .kp-teaser { grid-template-columns: 1.05fr 1fr; } }
.kp-teaser::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(200,240,75,.22), transparent 60%); z-index: -1; }
.kp-teaser h2 { font-family: var(--kp-round); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; margin: 10px 0 14px; color: var(--text-light); }
.kp-teaser h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--kp-sun); }
.kp-teaser p { color: var(--muted-light); margin: 0 0 22px; max-width: 34em; }
.kp-teaser .kp-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.kp-tiles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kp-tile { aspect-ratio: 3 / 4; border-radius: 18px; display: grid; place-items: center; padding: 8px; box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); transition: transform .5s var(--kp-bounce); }
.kp-tile svg { width: 100%; height: 100%; }
.kp-tile:nth-child(1) { background: var(--kp-sun); transform: rotate(-5deg); }
.kp-tile:nth-child(2) { background: var(--kp-sky); transform: translateY(-10px) rotate(2deg); }
.kp-tile:nth-child(3) { background: var(--kp-pink); transform: rotate(5deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .kp-teaser:hover .kp-tile:nth-child(1) { transform: translateY(-8px) rotate(-9deg); }
  .kp-teaser:hover .kp-tile:nth-child(2) { transform: translateY(-20px) rotate(0); }
  .kp-teaser:hover .kp-tile:nth-child(3) { transform: translateY(-8px) rotate(9deg); }
}

/* Shared chips + buttons */
.kp-badge { display: inline-flex; align-items: center; gap: 6px; padding: .35em .85em; border-radius: 999px; font: 800 .74rem/1 var(--kp-round); letter-spacing: .06em; text-transform: uppercase; background: var(--kp-sun); color: var(--ink); }
.kp-badge-lime { background: var(--lime); }
.kp-btn-bounce { transition: transform .35s var(--kp-bounce), box-shadow .35s; }
@media (prefers-reduced-motion: no-preference) {
  .kp-btn-bounce:hover { transform: translateY(-3px) rotate(-1.5deg); }
  .kp-btn-bounce:active { transform: scale(.95); }
}
.kp-btn-light { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.kp-btn-light:hover { background: #fff; }

/* ---------- /templates/kids/ ---------- */
.page-kids { background: var(--paper); }
.kp-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--text-light); padding: clamp(120px, 15vw, 190px) 0 clamp(70px, 9vw, 120px); isolation: isolate; }
.kp-hero .container { position: relative; z-index: 2; }
.kp-hero h1 { font-family: var(--kp-round); font-weight: 900; font-size: clamp(2.8rem, 8.4vw, 6.6rem); line-height: .94; letter-spacing: -0.035em; margin: 18px 0 20px; max-width: 11em; }
.kp-hero h1 .kp-wiggle { display: inline-block; color: var(--ink); background: var(--kp-sun); padding: 0 .18em; border-radius: .22em; transform: rotate(-3deg); }
.kp-hero h1 .kp-word-lime { color: var(--lime); }
.kp-hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--kp-pink); }
.kp-hero .hero-sub { color: var(--muted-light); max-width: 36em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.kp-hero .kp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kp-blob { position: absolute; border-radius: 50%; z-index: -1; filter: blur(.5px); opacity: .9; }
.kp-blob-1 { width: 260px; height: 260px; right: -60px; top: 90px; background: var(--kp-grape); }
.kp-blob-2 { width: 140px; height: 140px; right: 22%; bottom: -50px; background: var(--kp-sky); }
.kp-blob-3 { width: 90px; height: 90px; left: 58%; top: 22%; background: var(--coral); }
.kp-blob-4 { width: 46px; height: 46px; right: 12%; bottom: 28%; background: var(--lime); }
@media (max-width: 700px) { .kp-blob-1 { width: 160px; height: 160px; top: 70px; right: -70px; opacity: .55; } .kp-blob-3 { display: none; } }
.kp-plane-path { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.kp-plane-path svg { position: absolute; width: 100%; height: 100%; }
.kp-plane { position: absolute; left: 0; top: 0; width: 64px; height: 64px; z-index: 3; pointer-events: none; offset-path: path("M -80 420 C 200 260, 380 520, 640 300 S 1080 120, 1600 220"); offset-rotate: auto; animation: kp-fly 11s linear infinite; }
@keyframes kp-fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (max-width: 700px) { .kp-plane { offset-path: path("M -60 520 C 80 420, 200 600, 300 430 S 420 260, 520 320"); width: 48px; height: 48px; } }
.kp-hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.kp-hero-tags li { padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line-dark); font-size: .88rem; color: var(--text-light); }
.kp-hero-tags a { color: inherit; }

/* Section heads */
.kp-section { padding: clamp(48px, 7vw, 96px) 0; }
#kp-quiz { padding-bottom: clamp(24px, 4vw, 48px); }
.kp-section .section-head h2 { font-family: var(--kp-round); font-weight: 850; letter-spacing: -0.025em; }
.kp-section .section-head h2 em { font-family: var(--serif); font-weight: 400; }

/* Pack picker quiz */
.kp-quiz { background: var(--kp-sky); color: var(--ink); border-radius: var(--kp-radius); padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.kp-quiz::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--kp-sun); opacity: .9; z-index: 0; }
.kp-quiz > * { position: relative; z-index: 1; }
.kp-quiz h2 { font-family: var(--kp-round); font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; margin: 8px 0 6px; color: var(--ink); }
.kp-quiz .kp-quiz-lede { margin: 0 0 22px; color: var(--ink); }
.kp-q { border: 0; margin: 0 0 18px; padding: 0; }
.kp-q-title { font: 800 1.05rem/1.2 var(--kp-round); margin: 0 0 10px; }
.kp-choices { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.kp-choice { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: .6em 1.1em; border-radius: 999px; border: 2px solid var(--ink); background: #fffdf8; color: var(--ink); font: 700 1rem/1 var(--kp-round); cursor: pointer; transition: transform .35s var(--kp-bounce), background .2s; }
.kp-choice .kp-emo { font-size: 1.25rem; line-height: 1; }
.kp-choice[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.kp-choice:focus-visible, .kp-peek:focus-visible, .kp-card a:focus-visible, .kp-confetti-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lime); }
@media (prefers-reduced-motion: no-preference) { .kp-choice:hover { transform: translateY(-3px) rotate(-2deg); } .kp-choice:active { transform: scale(.94); } }
.kp-result { min-height: 1.5em; margin: 6px 0 0; padding: 16px 18px; border-radius: 18px; background: #fffdf8; border: 2px dashed var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-weight: 600; }
.kp-result[hidden] { display: none; }
.kp-result strong { font-family: var(--kp-round); font-size: 1.25rem; }

/* Pack grid */
.kp-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .kp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .kp-grid { grid-template-columns: repeat(3, 1fr); } }
.kp-card > article { height: 100%; display: flex; flex-direction: column; background: #fffdf8; border: 2px solid var(--ink); border-radius: var(--kp-radius); overflow: hidden; box-shadow: 6px 6px 0 var(--ink); transition: transform .45s var(--kp-bounce), box-shadow .45s var(--kp-bounce); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .kp-card:nth-child(odd) > article:hover { transform: translate(-3px, -6px) rotate(-1deg); box-shadow: 10px 12px 0 var(--ink); }
  .kp-card:nth-child(even) > article:hover { transform: translate(-3px, -6px) rotate(1deg); box-shadow: 10px 12px 0 var(--ink); }
}
.kp-card.is-picked > article { box-shadow: 6px 6px 0 var(--ink), 0 0 0 6px var(--lime); }
.kp-flip { position: relative; aspect-ratio: 4 / 3; perspective: 1200px; border-bottom: 2px solid var(--ink); }
.kp-flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--kp-bounce); }
.kp-card.is-flipped .kp-flip-inner { transform: rotateY(180deg); }
.kp-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; border-radius: calc(var(--kp-radius) - 2px) calc(var(--kp-radius) - 2px) 0 0; }
.kp-flip { border-radius: calc(var(--kp-radius) - 2px) calc(var(--kp-radius) - 2px) 0 0; }
.kp-front svg { display: block; width: 100%; height: 100%; }
.kp-back { transform: rotateY(180deg); background: var(--ink); color: var(--text-light); padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.kp-back h4 { font: 800 1rem/1.1 var(--kp-round); color: var(--kp-sun); margin: 0 0 6px; letter-spacing: .01em; }
.kp-back ul { margin: 0; padding: 0; list-style: none; font-size: .88rem; line-height: 1.35; }
@media (min-width: 680px) and (max-width: 1279px) { .kp-back ul { font-size: .8rem; line-height: 1.3; } .kp-back li { padding-top: 2px !important; padding-bottom: 2px !important; } .kp-back h4 { margin-bottom: 4px; } }
.kp-back li { padding: 3px 0 3px 24px; position: relative; color: var(--text-light); }
.kp-back li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; border-radius: 4px; background: var(--lime); transform: rotate(12deg); }
.kp-back li:nth-child(3n+2)::before { background: var(--kp-pink); border-radius: 50%; }
.kp-back li:nth-child(3n)::before { background: var(--kp-sky); }
/* No-JS: show both faces stacked, no flip */
html:not(.js) .kp-flip { aspect-ratio: auto; perspective: none; }
html:not(.js) .kp-flip-inner, html:not(.js) .kp-face { position: static; transform: none; }
html:not(.js) .kp-front { aspect-ratio: 4 / 3; }
html:not(.js) .kp-peek { display: none; }
.kp-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 22px; color: var(--text-dark); }
.kp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.kp-age, .kp-format { display: inline-flex; align-items: center; padding: .3em .75em; border-radius: 999px; font: 800 .72rem/1 var(--kp-round); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.kp-age { background: var(--kp-sun); }
.kp-format { background: var(--paper-2, #ece7da); }
.kp-body h3 { font-family: var(--kp-round); font-weight: 850; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.04; margin: 0 0 .35em; }
.kp-line { color: var(--muted-dark); margin: 0 0 16px; font-size: .98rem; }
.kp-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 2px dashed var(--line-light); }
.kp-price { margin: 0; display: flex; flex-direction: column; line-height: 1.1; }
.kp-price b { font: 850 1.35rem/1 var(--kp-round); letter-spacing: -0.02em; }
.kp-price small { font-size: .78rem; color: var(--muted-dark); margin-top: 4px; }
.kp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-peek { min-height: 46px; padding: .6em 1.1em; border-radius: 999px; border: 2px solid var(--ink); background: var(--lime); color: var(--ink); font: 800 .95rem/1 var(--kp-round); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .35s var(--kp-bounce); }
.kp-peek svg { width: 18px; height: 18px; transition: transform .5s var(--kp-bounce); }
.kp-card.is-flipped .kp-peek svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) { .kp-peek:hover { transform: translateY(-2px) rotate(-2deg); } .kp-peek:active { transform: scale(.94); } }
.kp-ask { font-weight: 700; font-size: .9rem; color: var(--text-dark); text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; align-self: flex-start; margin-top: 12px; }

/* Colour accents per card (the strip behind each SVG) */
.kp-card[data-kp="colouring"] .kp-front { background: var(--kp-sun); }
.kp-card[data-kp="party"] .kp-front { background: var(--kp-pink); }
.kp-card[data-kp="classroom"] .kp-front { background: var(--kp-mint); }
.kp-card[data-kp="chores"] .kp-front { background: var(--kp-sky); }
.kp-card[data-kp="holidays"] .kp-front { background: var(--coral); }
.kp-card[data-kp="awards"] .kp-front { background: var(--kp-grape); }

/* Kids bundle */
.kp-bundle { margin-top: 30px; display: grid; gap: 22px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--kp-radius); background: var(--ink); color: var(--text-light); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--lime); }
@media (min-width: 900px) { .kp-bundle { grid-template-columns: 1.3fr 1fr; } }
.kp-bundle h3 { font: 900 clamp(1.8rem, 3.6vw, 2.6rem)/1 var(--kp-round); letter-spacing: -0.025em; margin: 10px 0 10px; color: var(--text-light); }
.kp-bundle p { color: var(--muted-light); margin: 0 0 12px; }
.kp-bundle ul { margin: 0; padding-left: 1.1em; color: var(--text-light); }
.kp-bundle .kp-price small { color: var(--muted-light); }
.kp-bundle .kp-ask { color: var(--text-light); }
/* kb1 (golive-21n): Kids Everything Bundle pack-cover fan (replaces the blank .kp-stack cards) */
.kp-bundle-pic { display: block; min-width: 0; }
.kp-bundle-art { display: block; width: 100%; max-width: 480px; height: auto; margin-inline: auto; transition: transform .5s var(--kp-bounce); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .kp-bundle:hover .kp-bundle-art { transform: translateY(-6px) rotate(-1deg); } }

/* Why grown-ups like them */
.kp-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .kp-why { grid-template-columns: repeat(3, 1fr); } }
.kp-why li { padding: 24px; border-radius: 22px; border: 2px solid var(--ink); background: #fffdf8; }
.kp-why li:nth-child(1) { background: #fff4c7; } .kp-why li:nth-child(2) { background: #dff4ff; } .kp-why li:nth-child(3) { background: #ffe3ef; }
.kp-why h3 { font: 850 1.25rem/1.1 var(--kp-round); margin: 10px 0 6px; }
.kp-why p { margin: 0; color: var(--text-dark); }
.kp-why .kp-ico { width: 46px; height: 46px; }

/* Confetti */
.kp-confetti-btn { min-height: 48px; padding: .6em 1.15em; border-radius: 999px; border: 2px solid var(--text-light); background: transparent; color: var(--text-light); font: 800 1rem/1 var(--kp-round); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.kp-confetti-btn:hover { background: rgba(255,255,255,.08); }
.kp-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.kp-confetti i { position: absolute; top: 0; left: 0; width: 10px; height: 14px; border-radius: 3px; will-change: transform, opacity; }

/* Gentle idle animations in the SVG previews */
@media (prefers-reduced-motion: no-preference) {
  .kp-float { animation: kp-float 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .kp-float-2 { animation-delay: -1.5s; } .kp-float-3 { animation-delay: -3s; }
  .kp-spin { animation: kp-spin 9s linear infinite; transform-box: fill-box; transform-origin: center; }
  .kp-wob { animation: kp-wob 2.6s var(--kp-bounce) infinite; transform-box: fill-box; transform-origin: 50% 90%; }
  .kp-pop { animation: kp-pop 3.2s var(--kp-bounce) infinite; transform-box: fill-box; transform-origin: center; }
  .kp-pop-2 { animation-delay: .4s; } .kp-pop-3 { animation-delay: .8s; } .kp-pop-4 { animation-delay: 1.2s; } .kp-pop-5 { animation-delay: 1.6s; }
  .kp-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: kp-draw 5s ease-in-out infinite; }
  .kp-hero h1 .kp-wiggle { animation: kp-hero-wig 3.4s var(--kp-bounce) infinite; }
  .kp-blob { animation: kp-float 7s ease-in-out infinite; }
  .kp-blob-2 { animation-delay: -2s; } .kp-blob-3 { animation-delay: -4s; } .kp-blob-4 { animation-delay: -1s; }
  .kp-card:hover .kp-float { animation-duration: 1.8s; }
}
@keyframes kp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes kp-spin { to { transform: rotate(360deg); } }
@keyframes kp-wob { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-9deg); } 88% { transform: rotate(7deg); } }
@keyframes kp-pop { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.35); } 80% { transform: scale(.92); } }
@keyframes kp-draw { 0% { stroke-dashoffset: 600; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -600; } }
@keyframes kp-hero-wig { 0%, 70%, 100% { transform: rotate(-3deg); } 80% { transform: rotate(3deg) scale(1.05); } 90% { transform: rotate(-5deg); } }

@media (prefers-reduced-motion: reduce) {
  .kp-plane { animation: none; offset-distance: 38%; }
  .kp-flip-inner, .kp-card > article, .kp-tile, .kp-bundle-art, .kp-choice, .kp-peek, .kp-peek svg { transition: none !important; }
  .kp-card.is-flipped .kp-flip-inner { transform: none; }
  .kp-card .kp-back { transform: none; opacity: 0; visibility: hidden; }
  .kp-card.is-flipped .kp-back { opacity: 1; visibility: visible; }
  .kp-card.is-flipped .kp-front { visibility: hidden; }
}
@media (max-width: 379px) { .kp-back { padding: 10px 14px; } .kp-back ul { font-size: .78rem; line-height: 1.28; } .kp-back li { padding-top: 2px; padding-bottom: 2px; } .kp-back h4 { font-size: .92rem; margin-bottom: 4px; } }

.kp-save { margin: 0 0 14px !important; font-size: .95rem; color: var(--muted-light) !important; }
.kp-save s { color: var(--muted-light); }
.kp-save strong { color: var(--ink); background: var(--lime); padding: .1em .45em; border-radius: 6px; }

/* ───────── Sky Crew character range (full-test sc1). Dark sky band, cast tiles that say hi on hover/tap,
   character-led pack cards (reuse .kp-card flip), and a separate Sky Crew bundle. Motion off for reduced-motion users. ───────── */
.sc-section { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #10142a 0%, #16204a 55%, #0e100d 100%); color: var(--text-light); padding: clamp(64px, 9vw, 120px) 0; }
.sc-section .section-head h2 { font-family: var(--kp-round); font-weight: 900; letter-spacing: -0.025em; color: var(--text-light); }
.sc-section .section-head h2 em { font-family: var(--serif); font-weight: 400; color: var(--kp-pink); }
.sc-section .lede { color: #c9cde0; }
.sc-section .kicker { color: var(--lime); }
.sc-hl { color: var(--ink); background: var(--lime); padding: 0 .16em; border-radius: .2em; display: inline-block; transform: rotate(-2deg); }
.sc-clouds span { position: absolute; z-index: -1; background: rgba(255,255,255,.06); border-radius: 999px; }
.sc-clouds span:nth-child(1) { width: 260px; height: 70px; top: 8%; right: -40px; }
.sc-clouds span:nth-child(2) { width: 180px; height: 52px; top: 42%; left: -50px; }
.sc-clouds span:nth-child(3) { width: 220px; height: 60px; bottom: 12%; right: 18%; }

/* Cast */
.sc-cast { list-style: none; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .sc-cast { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .sc-cast { grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); align-items: stretch; } }
.sc-char { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: #fffdf8; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--sc-col, var(--lime)); color: var(--ink); }
.sc-char-hero { grid-column: 1 / -1; }
@media (min-width: 1080px) { .sc-char-hero { grid-column: auto; grid-row: span 1; } }
.sc-char-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 10px 6px; border-radius: 22px 22px 0 0; -webkit-tap-highlight-color: transparent; }
.sc-char-btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; box-shadow: 0 0 0 6px var(--ink); }
.sc-art-wrap { display: block; width: 100%; max-width: 150px; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--sc-col) 30%, #fffdf8); }
.sc-char-hero .sc-art-wrap { max-width: 210px; }
.sc-art { display: block; width: 100%; height: 100%; overflow: visible; }
.sc-name { display: block; margin-top: 8px; font: 900 1.25rem/1.05 var(--kp-round); letter-spacing: -0.02em; }
.sc-char-hero .sc-name { font-size: 1.6rem; }
.sc-char-hero .sc-name::after { content: "mascot"; display: inline-block; margin-left: 8px; padding: .25em .6em; border-radius: 999px; background: var(--lime); font: 800 .62rem/1 var(--kp-round); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.sc-role { display: block; font-size: .86rem; color: var(--muted-dark); margin-top: 2px; }
.sc-say { margin: 0; padding: 10px 14px 16px; font-size: .86rem; color: var(--text-dark); line-height: 1.4; }
.sc-say strong { display: block; font: 850 1rem/1.2 var(--kp-round); color: var(--ink); margin-bottom: 4px; }
.sc-say span { color: var(--muted-dark); }
/* The catchphrase pops like a speech bubble when a character is greeted */
.sc-char.is-hi .sc-say strong { background: var(--sc-col); border-radius: 12px; padding: 4px 8px; margin-left: -8px; margin-right: -8px; }

/* Character animations: hover (fine pointer) or tap/keyboard (.is-hi) */
@media (prefers-reduced-motion: no-preference) {
  .sc-art { transition: transform .5s var(--kp-bounce); transform-origin: 50% 85%; }
  .sc-char { transition: transform .45s var(--kp-bounce), box-shadow .45s var(--kp-bounce); }
  .sc-char:hover, .sc-char.is-hi { transform: translateY(-4px) rotate(-1deg); box-shadow: 8px 9px 0 var(--sc-col, var(--lime)); }
  .sc-char.is-hi[data-sc-char="pylo"] .sc-art { animation: sc-flap .9s var(--kp-bounce); }
  .sc-char.is-hi[data-sc-char="dartle"] .sc-art { animation: sc-zoom 1s cubic-bezier(.5,0,.3,1); }
  .sc-char.is-hi[data-sc-char="duvetta"] .sc-art { animation: sc-drift 1.6s ease-in-out; }
  .sc-char.is-hi[data-sc-char="mapsy"] .sc-art { animation: sc-tilt 1s var(--kp-bounce); }
  .sc-char.is-hi[data-sc-char="hoopsy"] .sc-art { animation: sc-rise 1.3s var(--kp-bounce); }
  .sc-char.is-hi[data-sc-char="blipsy"] .sc-art { animation: sc-orbit 1.2s ease-in-out; }
  @media (hover: hover) and (pointer: fine) {
    .sc-char:hover .sc-art { transform: translateY(-6px) rotate(-4deg) scale(1.04); }
  }
  .sc-breathe { animation: sc-breathe 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .sc-bundle-crew .sc-art { animation: kp-float 4.5s ease-in-out infinite; }
  .sc-bundle-crew .sc-b1 { animation-delay: -.8s; } .sc-bundle-crew .sc-b2 { animation-delay: -1.6s; } .sc-bundle-crew .sc-b3 { animation-delay: -2.4s; } .sc-bundle-crew .sc-b4 { animation-delay: -3.2s; } .sc-bundle-crew .sc-b5 { animation-delay: -4s; }
}
@keyframes sc-flap { 0% { transform: none; } 20% { transform: translateY(-14px) rotate(-8deg); } 40% { transform: translateY(-20px) rotate(7deg); } 60% { transform: translateY(-8px) rotate(-5deg); } 80% { transform: translateY(2px) scale(1.04, .96); } 100% { transform: none; } }
@keyframes sc-zoom { 0% { transform: none; } 35% { transform: translateX(40%) rotate(-10deg); opacity: 0; } 36% { transform: translateX(-40%) rotate(-10deg); opacity: 0; } 70% { transform: translateX(-6%); opacity: 1; } 100% { transform: none; } }
@keyframes sc-drift { 0%, 100% { transform: none; } 50% { transform: translateY(-10px) scale(1.06); } }
@keyframes sc-tilt { 0%, 100% { transform: none; } 30% { transform: rotate(-12deg); } 60% { transform: rotate(9deg); } }
@keyframes sc-rise { 0% { transform: none; } 50% { transform: translateY(-22px) scale(1.05); } 100% { transform: none; } }
@keyframes sc-orbit { 0% { transform: none; } 50% { transform: rotate(18deg) translateY(-8px); } 100% { transform: none; } }
@keyframes sc-breathe { 0%, 100% { transform: scale(.88); opacity: .55; } 50% { transform: scale(1.06); opacity: 1; } }

/* Packs */
.sc-packs-head h2 { color: var(--text-light); }
.sc-grid { margin-bottom: 0; }
.sc-card[data-sc-tone="book"] .kp-front { background: var(--lime); }
.sc-card[data-sc-tone="stickers"] .kp-front { background: var(--kp-sky); }
.sc-card[data-sc-tone="story"] .kp-front { background: var(--kp-sun); }
.sc-card[data-sc-tone="party"] .kp-front { background: var(--kp-pink); }
.sc-card[data-sc-tone="calm"] .kp-front { background: var(--kp-grape); }
.sc-section .kp-card > article { box-shadow: 6px 6px 0 var(--lime); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .sc-section .kp-card > article:hover { box-shadow: 10px 12px 0 var(--lime); } }
.sc-pages { background: var(--ink) !important; color: var(--lime) !important; }
.sc-bundle { background: #fffdf8; color: var(--ink); box-shadow: 6px 6px 0 var(--kp-pink); }
.sc-bundle h3 { color: var(--ink); }
.sc-bundle p, .sc-bundle ul { color: var(--text-dark); }
.sc-bundle .kp-price small, .sc-bundle .kp-save, .sc-bundle .kp-save s { color: var(--muted-dark) !important; }
.sc-bundle .kp-ask { color: var(--ink); }
.sc-bundle .kp-actions { border-color: var(--line-light) !important; }
.sc-bundle-crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 360px; margin: 0 auto; }
.sc-bundle-crew .sc-art { width: 100%; height: auto; aspect-ratio: 1; }
.sc-bundle-crew .sc-b0 { grid-row: span 2; grid-column: span 2; }

@media (prefers-reduced-motion: reduce) {
  .sc-char, .sc-art { transition: none !important; animation: none !important; }
}

/* kc3 (golive-21n): real pack preview on the Sky Crew Take-off Party card (image instead of the sample SVG). */
.kp-front-img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 7% 6%; box-sizing: border-box; filter: drop-shadow(0 10px 14px rgba(14,16,13,.28)); transform: rotate(-2deg); }
