/* =============================================================
   Kika Polkadots — Design System
   Vanilla CSS. Polka dots, candy palette, bouncy motion.
   Motion respects prefers-reduced-motion.
   ============================================================= */

:root {
  /* Palette */
  --pink:   #ff3da5;
  --yellow: #ffd23f;
  --teal:   #27d3c4;
  --orange: #ff8a3d;
  --grape:  #7b5bff;
  --ink:    #221b2e;
  --paper:  #fff9f0;
  --paper-2:#fff2fb;
  --muted:  #6b6478;

  /* Type */
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Shape & depth */
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(34, 27, 46, .10);
  --shadow: 0 14px 34px rgba(123, 91, 255, .16);
  --shadow-pink: 0 12px 28px rgba(255, 61, 165, .28);
  --ring: 0 0 0 4px rgba(255, 61, 165, .25);

  --header-h: 96px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--grape); text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; border-radius: 6px; }

/* ---------- Animated polka-dot background ---------- */
.dot-field {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--paper-2), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #f0fffd, transparent 60%),
    var(--paper);
}
.dot-field .dot {
  position: absolute; border-radius: 50%; opacity: .5;
  animation: floaty var(--dur, 16s) ease-in-out infinite;
  will-change: transform;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  33%      { transform: translateY(-26px) translateX(12px) scale(1.06); }
  66%      { transform: translateY(14px) translateX(-10px) scale(.96); }
}

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  color: var(--pink); letter-spacing: .04em; text-transform: uppercase;
  font-size: .8rem; margin-bottom: .6rem;
  padding: .25rem .8rem; background: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-pill); border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--pink); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-secondary { background: #fff; color: var(--grape); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { transform: translateY(-2px) scale(1.02); }
.btn-ghost { background: rgba(255,255,255,.0); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(123,91,255,.35); }
.btn-ghost:hover { background: #fff; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.12rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 240, .82);
  backdrop-filter: blur(10px);
  border-bottom: 2px dotted rgba(123, 91, 255, .25);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto;
  height: var(--header-h); display: flex; align-items: center; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; color: var(--ink); font-weight: 800; }
.brand-logo { height: 80px; width: auto; margin-top: 0px; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-4deg); } }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.primary-nav a {
  color: var(--ink); font-weight: 700; padding: .5rem .85rem; border-radius: var(--radius-pill);
  position: relative; transition: color .15s ease, background .15s ease;
}
.primary-nav a:not(.nav-cta):hover { color: var(--pink); background: #fff; }
.primary-nav a[aria-current="page"]:not(.nav-cta) { color: var(--pink); }
.primary-nav a[aria-current="page"]:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--yellow);
}
.nav-cta { background: var(--grape); color: #fff !important; box-shadow: var(--shadow-sm); }
.nav-cta:hover { background: var(--pink); transform: translateY(-1px); }

.nav-toggle {
  margin-left: auto; display: none; flex-direction: column; gap: 5px;
  background: #fff; border: none; padding: 10px; border-radius: 12px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: .25rem; padding: 1rem 1.25rem 1.5rem; background: var(--paper);
    border-bottom: 2px dotted rgba(123,91,255,.25); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; margin: 0;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a { padding: .85rem 1rem; font-size: 1.1rem; }
  .nav-cta { text-align: center; margin-top: .35rem; }
}

/* ---------- Page transition ---------- */
.page--entering { animation: pagein .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero h1 .hl { color: var(--pink); }
.hero h1 .hl2 { color: var(--grape); }
.hero-lead { font-size: 1.2rem; color: var(--ink); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.badge {
  background: #fff; box-shadow: var(--shadow-sm); border-radius: var(--radius-pill);
  padding: .4rem .9rem; font-weight: 700; font-size: .9rem; display: inline-flex; gap: .4rem; align-items: center;
}
.badge .b-dot { width: 10px; height: 10px; border-radius: 50%; }

.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-blob {
  position: absolute; inset: 6%; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: conic-gradient(from 90deg, var(--pink), var(--orange), var(--yellow), var(--teal), var(--grape), var(--pink));
  filter: blur(2px); opacity: .9; animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  50% { border-radius: 54% 46% 42% 58% / 46% 56% 44% 54%; transform: rotate(8deg) scale(1.03); }
}
.hero-portrait {
  position: relative; width: 78%; border-radius: 50%; box-shadow: var(--shadow);
  border: 8px solid #fff; background: #fff; animation: bob 6s ease-in-out infinite;
}
.hero-spark { position: absolute; font-size: 1.6rem; animation: twinkle 3s ease-in-out infinite; }

@keyframes twinkle { 0%,100% { transform: scale(.8); opacity: .5; } 50% { transform: scale(1.2); opacity: 1; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-art { max-width: 360px; margin: .5rem auto 0; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .card-emoji { font-size: 2.2rem; display: inline-block; }
.card h3 { margin-top: .6rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card::before {
  content: ""; position: absolute; right: -22px; top: -22px; width: 70px; height: 70px;
  border-radius: 50%; background: var(--dot, var(--yellow)); opacity: .18;
}

/* ---------- Section color washes ---------- */
.wash { background: linear-gradient(180deg, transparent, var(--paper-2) 18%, var(--paper-2) 82%, transparent); }
.wash-teal { background: linear-gradient(180deg, transparent, #eafffd 18%, #eafffd 82%, transparent); }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.8rem; }
.filter-chip {
  border: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  padding: .5rem 1.05rem; border-radius: var(--radius-pill); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.filter-chip:hover { transform: translateY(-2px); }
.filter-chip[aria-pressed="true"] { background: var(--pink); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s ease, box-shadow .25s ease;
}
.gallery-item:hover { transform: scale(1.02) rotate(-1deg); box-shadow: var(--shadow); }
.gallery-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 1rem; }
.gallery-ph span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.gallery-ph small { display:block; opacity:.9; font-weight:600; }
.gallery-note { text-align: center; color: var(--muted); margin-top: 1.4rem; }

/* ---------- Services ---------- */
.svc-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; color: #fff; }

/* ---------- Rates / packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.pkg {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.6rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative; border: 3px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease;
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pkg.featured { border-color: var(--pink); }
.pkg-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--pink); color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; padding: .3rem .9rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-pink);
}
.pkg h3 { font-size: 1.5rem; }
.pkg .price { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--grape); }
.pkg .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.pkg ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.pkg li { padding-left: 1.6rem; position: relative; color: var(--ink); }
.pkg li::before { content: "●"; position: absolute; left: 0; color: var(--teal); }
.pkg .btn { margin-top: auto; justify-content: center; }
.addons { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.6rem; }
.addon { background:#fff; box-shadow: var(--shadow-sm); border-radius: var(--radius-pill); padding: .45rem 1rem; font-weight: 700; font-size: .92rem; }
.addon b { color: var(--pink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; text-align: center; } }
.about-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 8px solid #fff; }
.stat-row { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.4rem; }
.stat { background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.3rem; }
.stat b { font-family: var(--font-display); font-size: 1.8rem; color: var(--pink); display: block; line-height: 1; }
.stat span { color: var(--muted); font-weight: 700; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q .chev { color: var(--pink); transition: transform .25s ease; font-size: 1.3rem; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .card { margin-bottom: 1rem; }
.contact-aside .lead { font-size: 1.1rem; }

.form { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 2px solid #efe7f5;
  font-family: var(--font-body); font-size: 1rem; background: var(--paper); color: var(--ink); transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: var(--ring); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.form .btn { width: 100%; justify-content: center; }
.recaptcha-note { font-size: .76rem; color: var(--muted); text-align: center; margin-top: .9rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(160%);
  background: var(--ink); color: #fff; padding: .9rem 1.3rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow); z-index: 300; font-weight: 700; max-width: 90%; transition: transform .35s cubic-bezier(.2,.9,.2,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: #c0263e; }
.toast.ok { background: #1f9d6b; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none;
  background: var(--pink); color: #fff; font-family: var(--font-display); font-weight: 700;
  padding: .85rem 1.2rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-pink);
}
@media (max-width: 860px) { .sticky-cta { display: inline-flex; } }

/* ---------- Banner / CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--grape), var(--pink)); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(2rem,5vw,3.2rem); text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.92); max-width: 48ch; margin-inline: auto; }
.cta-strip .btn { background: #fff; color: var(--pink); margin-top: .6rem; }
.cta-strip .spot { position: absolute; border-radius: 50%; background: rgba(255,255,255,.16); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #f4eefb; margin-top: 2rem; }
.footer-inner { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; padding: 2.6rem 0 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand p { margin: .2rem 0 0; color: #c8bdda; font-size: .92rem; }
.footer-logo { height: 70px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: flex-end; }
.footer-nav a { color: #f4eefb; font-weight: 700; }
.footer-nav a:hover { color: var(--yellow); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; margin: .6rem 0 0; color: #b6abc9; font-size: .85rem; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; text-align: center; } .footer-nav, .footer-brand { justify-content: center; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Kids Zone (Phase 2) ---------- */
.kz { --kz-gap: 1.1rem; }
.kz-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.kz-back { font-weight: 800; color: var(--grape); text-decoration: none; padding: .45rem .9rem; border-radius: 999px; background: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.kz-back:hover { color: var(--pink); }
.kz-sound { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-weight: 800; cursor: pointer;
  border: 2px solid var(--grape); background: #fff; color: var(--grape); padding: .4rem .9rem; border-radius: 999px; }
.kz-sound[aria-pressed="true"] { background: var(--grape); color: #fff; }
.kz-bar-tools { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.kz-fs { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-weight: 800; cursor: pointer;
  border: 2px solid var(--teal); background: #fff; color: var(--teal); padding: .4rem .9rem; border-radius: 999px; }
.kz-fs[aria-pressed="true"] { background: var(--teal); color: #fff; }

/* Full-screen game: section fills the screen, stage grows to use the room. */
.kz-isfull { background: linear-gradient(160deg, #eafcff, #fff5fb); overflow: auto; }
.kz-isfull .container { max-width: 100%; height: 100%; display: flex; flex-direction: column; padding: 1rem clamp(1rem, 4vw, 2.5rem); }
.kz-isfull .kz-safety, .kz-isfull .kz-book { display: none; }
.kz-isfull .kz-body { flex: 1; min-height: 0; display: flex; }
.kz-isfull .kz-stage { height: 100%; flex: 1; }
.kz-isfull .kz-paint, .kz-isfull .kz-color { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.kz-isfull .kz-paint-stage { height: auto; flex: 1; min-height: 0; }
.kz-isfull .kz-color-stage { flex: 0 0 auto; }
.kz-title { font-family: var(--display, 'Baloo 2', system-ui); font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .3rem; }
.kz-intro { font-size: 1.15rem; margin: 0 0 1rem; color: var(--ink); opacity: .85; }
.kz-safety { background: #fff; border: 2px dashed var(--teal); border-radius: 18px; padding: .7rem 1rem; font-size: .95rem; margin: 0 0 1.4rem; }
.kz-safety a { color: var(--grape); font-weight: 700; }
.kz-body { min-height: 30vh; }

/* Hub game cards */
.kz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--kz-gap); }
.kz-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink);
  background: #fff; border-radius: 22px; padding: 1.4rem; border-top: 6px solid var(--kz-accent, var(--grape));
  box-shadow: 0 6px 0 rgba(123,91,255,.18); transition: transform .15s ease, box-shadow .15s ease; }
.kz-card:hover, .kz-card:focus-visible { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 12px 0 rgba(123,91,255,.22); }
.kz-card-dot { position: absolute; top: -28px; right: -28px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--kz-accent, var(--grape)); opacity: .16; }
.kz-card-emoji { font-size: 2.6rem; }
.kz-card strong { font-family: var(--display, 'Baloo 2', system-ui); font-size: 1.3rem; }
.kz-card-desc { font-size: .95rem; opacity: .82; }
.kz-card-go { margin-top: .5rem; font-weight: 800; color: var(--kz-accent, var(--grape));
  opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.kz-card:hover .kz-card-go, .kz-card:focus-visible .kz-card-go { opacity: 1; transform: translateX(0); }

/* Game stage (canvas-based games: Bubble Pop, etc.) */
.kz-stage { position: relative; width: 100%; height: min(64vh, 560px); border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #eafcff, #fff5fb); box-shadow: inset 0 0 0 2px rgba(123,91,255,.12); touch-action: manipulation; }
.kz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.kz-hud { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .5rem; flex-wrap: wrap; pointer-events: none; }
.kz-pill { background: rgba(255,255,255,.9); border-radius: 999px; padding: .35rem .8rem; font-weight: 800; font-size: .95rem; box-shadow: 0 2px 0 rgba(0,0,0,.06); }
.kz-pill b { color: var(--pink); }
.kz-combo { background: var(--orange); color: #fff; }
.kz-blower { position: absolute; right: .7rem; bottom: .7rem; font: inherit; font-weight: 800; cursor: pointer;
  border: none; background: var(--teal); color: #fff; padding: .6rem 1rem; border-radius: 999px; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.kz-blower:hover { filter: brightness(1.05); }
.kz-blower:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }

/* Paint-a-Face studio */
.kz-paint-stage { height: min(52vh, 460px); }
.kz-paint-hint { position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); margin: 0;
  background: rgba(255,255,255,.9); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; font-size: .95rem; pointer-events: none; }
.kz-paint-tools { margin-top: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.kz-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.kz-chip { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-weight: 700; cursor: pointer;
  border: 2px solid var(--grape); background: #fff; color: var(--ink); padding: .4rem .7rem; border-radius: 999px; }
.kz-chip:hover { background: #f6f2ff; }
.kz-chip > span:first-child { font-size: 1.2rem; }
.kz-chip-l { font-size: .9rem; }
.kz-swatch { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; background: var(--sw);
  border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.12); }
.kz-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--grape); transform: scale(1.08); }
.kz-tool { font: inherit; font-weight: 800; cursor: pointer; border: 2px solid var(--teal); background: #fff; color: var(--ink);
  padding: .45rem .8rem; border-radius: 999px; min-width: 44px; }
.kz-tool:hover { background: #effbfa; }
.kz-tool-save { border-color: var(--pink); color: var(--pink); }
.kz-paint-book { align-self: flex-start; margin-top: .3rem; }
@media (max-width: 600px) { .kz-chip-l { display: none; } }

/* Coloring book */
.kz-color { display: flex; flex-direction: column; gap: .8rem; }
.kz-color-stage { aspect-ratio: 1 / 1; height: auto; width: min(100%, 540px); margin-inline: auto; background: #fff; }
.kz-color-stage .kz-canvas { cursor: crosshair; touch-action: none; }

/* "Coming soon" stub */
.kz-soon { text-align: center; background: #fff; border-radius: 22px; padding: 2.4rem 1.4rem; box-shadow: 0 6px 0 rgba(255,61,165,.16); }
.kz-soon-tag { font-family: var(--display, 'Baloo 2', system-ui); font-size: 1.8rem; margin: 0 0 .5rem; color: var(--pink); }
.kz-soon-hint { font-size: .9rem; opacity: .7; margin-top: 1rem; }

/* Book-Kika strip */
.kz-book { position: relative; overflow: hidden; margin-top: 2rem; background: linear-gradient(135deg, var(--pink), var(--grape));
  border-radius: 22px; padding: 1.4rem 1.6rem; }
.kz-book-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.kz-book strong { color: #fff; font-size: 1.1rem; max-width: 46ch; }
.kz-book .btn { background: #fff; color: var(--pink); }
.kz-book-dot { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: var(--c); opacity: .25; }
.kz-book-dot:nth-child(1) { top: -36px; right: -20px; }
.kz-book-dot:nth-child(2) { bottom: -40px; left: 18%; }

/* ---- B7: Clown Sound Board ---- */
.kz-soundboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; padding: .5rem 0 1rem; }
.kz-spad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  border: none; border-radius: 22px; padding: 1.4rem .8rem; cursor: pointer;
  background: var(--spad, var(--grape)); color: #fff;
  box-shadow: 0 6px 0 rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.12);
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  touch-action: manipulation; user-select: none; transition: transform .08s, box-shadow .08s; }
.kz-spad:hover { filter: brightness(1.06); }
.kz-spad--pressed, .kz-spad:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.kz-spad-emoji { font-size: 2.4rem; line-height: 1; }
.kz-spad-label { font-size: .9rem; }

/* ---- B4: Memory Match ---- */
.kz-memory-hud { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .9rem; }
.kz-mem-newgame { padding: .35rem .9rem; font-size: .9rem; }
.kz-mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .46rem; max-width: 442px; margin-inline: auto; margin-bottom: 1rem; }
@media (max-width: 380px) { .kz-mem-grid { gap: .33rem; max-width: 364px; } }
.kz-mcard { position: relative; aspect-ratio: 1; border: none; border-radius: 10px; cursor: pointer;
  background: var(--grape); box-shadow: 0 3px 0 rgba(0,0,0,.16);
  perspective: 600px; touch-action: manipulation; padding: 0;
  transition: transform .12s; }
.kz-mcard:hover:not(.kz-mcard--done) { transform: scale(1.05); }
.kz-mcard-inner { position: absolute; inset: 0; border-radius: 10px; transition: transform .35s;
  transform-style: preserve-3d; }
.kz-mcard--up .kz-mcard-inner { transform: rotateY(180deg); }
.kz-mcard--done .kz-mcard-inner { transform: rotateY(180deg); }
.kz-mcard-front, .kz-mcard-back { position: absolute; inset: 0; border-radius: 10px;
  backface-visibility: hidden; display: flex; align-items: center; justify-content: center; }
.kz-mcard-front { background: var(--mc, var(--teal)); transform: rotateY(180deg);
  font-size: clamp(2.86rem, 11.7vw, 4.42rem); }
.kz-mcard-back { background: var(--grape); font-size: clamp(2.6rem, 10.4vw, 3.9rem); }
.kz-mcard--done { opacity: .72; pointer-events: none; }
.kz-mem-win { text-align: center; background: #fff; border-radius: 22px;
  padding: 1.6rem 1.4rem; box-shadow: 0 6px 0 rgba(255,61,165,.18); margin-top: .6rem; }
.kz-mem-win p { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 1rem; }
.kz-mem-win-btns { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* ---- B13: Tic-Tac-Toe ---- */
.kz-ttt-wrap { max-width: 420px; margin-inline: auto; }
.kz-ttt-hud { display: flex; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.kz-ttt-modeBtn { font: inherit; font-weight: 800; cursor: pointer; padding: .4rem .9rem;
  border-radius: 999px; border: 2px solid var(--grape); background: #fff; color: var(--grape);
  transition: background .12s, color .12s; }
.kz-ttt-modeBtn--active { background: var(--grape); color: #fff; }
.kz-ttt-status { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
  text-align: center; margin: .6rem 0; min-height: 1.6rem; color: var(--ink); }
.kz-ttt-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .5rem 0 .8rem; }
.kz-ttt-cell { aspect-ratio: 1; border-radius: 16px; border: 3px solid var(--grape);
  background: #fff; font-size: clamp(2rem, 10vw, 3.2rem); cursor: pointer;
  transition: background .1s, transform .1s; touch-action: manipulation; }
.kz-ttt-cell:hover:not([disabled]) { background: #f6f2ff; transform: scale(1.04); }
.kz-ttt-cell--x { background: rgba(255,61,165,.12); }
.kz-ttt-cell--o { background: rgba(27,211,196,.12); }
.kz-ttt-cell--win { background: var(--yellow); box-shadow: 0 0 0 3px var(--orange); }
.kz-ttt-board--done .kz-ttt-cell:not(.kz-ttt-cell--win) { opacity: .55; pointer-events: none; }
.kz-ttt-score { display: flex; gap: .5rem; justify-content: center; margin: .5rem 0; }
.kz-ttt-reset { margin: .6rem auto 0; display: block; }

/* ---- B8: Balloon Animal builder ---- */
.kz-bal-wrap { position: relative; margin: .6rem 0; }
.kz-bal-canvas { display: block; border-radius: 18px; background: #fff9f0; margin-inline: auto;
  box-shadow: 0 6px 0 rgba(123,91,255,.14); }
.kz-bal-hud { position: absolute; top: .6rem; left: .6rem; pointer-events: none; }
.kz-bal-ctrl { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin: .6rem 0; }
.kz-hint { font-size: .95rem; color: var(--muted); margin: .4rem 0 .2rem; min-height: 1.3em; }
.kz-chip--on { background: var(--grape); color: #fff; border-color: var(--grape); }

/* ---- B5: Connect the Dots ---- */
/* (uses existing .kz-stage/.kz-canvas; no additional layout CSS needed) */

/* ---- B2: Jigsaw Puzzle ---- */
.kz-puz-stage { height: min(70vh, 580px); }
.kz-puz-canvas { touch-action: none; }
.kz-puz-controls { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .7rem; }
.kz-puz-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.kz-puz-label { font-weight: 700; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.kz-puz-win { text-align: center; background: #fff; border-radius: 22px;
  padding: 1.4rem 1.2rem; box-shadow: 0 6px 0 rgba(255,61,165,.16); margin-top: .6rem; }
.kz-puz-win p { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 .9rem; }

/* Legal / privacy */
.legal { max-width: 70ch; }
.legal h1 { font-family: var(--display, 'Baloo 2', system-ui); }
.legal h2 { font-family: var(--display, 'Baloo 2', system-ui); margin: 2rem 0 .4rem; font-size: 1.3rem; }
.legal p { margin: .8rem 0; line-height: 1.6; }
.legal ul { margin: .6rem 0 .6rem 1.2rem; padding: 0; line-height: 1.6; }
.legal li { margin: .35rem 0; }
.legal code { background: rgba(123,91,255,.1); padding: .1em .35em; border-radius: 5px; font-size: .92em; }
.legal-updated { color: var(--muted); font-size: .95rem; margin-top: -.3rem; }
.legal-tldr { background: var(--wash, #fff5fb); border-left: 4px solid var(--pink);
  border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0 1.6rem; line-height: 1.6; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
