/* ============================================================
   SquishTune — Plushy, bubbly, kiddie stylesheet
   ============================================================ */

:root {
  --mint:   #7FCF5F;
  --coral:  #FF7E9D;
  --peach:  #FF9A4D;
  --aqua:   #33CDB0;
  --lav:    #B58BE8;
  --lemon:  #E8C52E;

  --ink:    #4a3b6b;   /* soft purple-gray text */
  --ink-2:  #7a6aa0;
  --cream:  #FFFDF7;
  --paper:  #FFFFFF;

  --shadow-sm: 0 6px 0 rgba(120,90,160,.12), 0 10px 22px rgba(120,90,160,.16);
  --shadow-md: 0 10px 0 rgba(120,90,160,.12), 0 18px 38px rgba(120,90,160,.22);
  --shadow-lg: 0 14px 0 rgba(120,90,160,.10), 0 30px 60px rgba(120,90,160,.28);

  --radius: 34px;
  --radius-sm: 22px;

  --font: "Baloo 2", "Fredoka", "Comic Sans MS", "Trebuchet MS",
          "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -8%, #FFE3EC 0%, transparent 55%),
    radial-gradient(1100px 800px at 95% 0%, #DFF6E8 0%, transparent 50%),
    radial-gradient(900px 900px at 80% 100%, #E4ECFF 0%, transparent 55%),
    radial-gradient(900px 700px at 0% 100%, #FFF1D6 0%, transparent 55%),
    linear-gradient(180deg, #FFFDF7, #FBF7FF);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Floating bubble background ---------- */
.bg-bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-bubbles span {
  position: absolute;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95), rgba(255,255,255,.25) 45%, rgba(255,255,255,0) 70%);
  box-shadow: inset 0 0 18px rgba(255,255,255,.6);
  opacity: .55;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) scale(.9); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .5; }
  100% { transform: translateY(-118vh) translateX(40px) scale(1.1); opacity: 0; }
}

/* ---------- Layout shell ---------- */
.shell { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 18px 60px; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin: 14px auto 8px; max-width: 1180px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; cursor: pointer; }
.brand img { height: 40px; width: auto; border-radius: 14px; }
.brand .b-name {
  font-weight: 800; font-size: 1.35rem; letter-spacing: .5px;
  background: linear-gradient(90deg, var(--coral), var(--peach), var(--lemon), var(--mint), var(--aqua), var(--lav));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 6px; }
.nav-link {
  border: none; cursor: pointer; font-family: var(--font); font-weight: 700;
  font-size: 1rem; color: var(--ink-2);
  padding: 10px 16px; border-radius: 999px; background: transparent;
  transition: transform .15s, background .2s, color .2s;
}
.nav-link:hover { background: #fff; transform: translateY(-2px); }
.nav-link.active { color: #fff; background: linear-gradient(135deg, var(--coral), var(--peach)); box-shadow: 0 6px 14px rgba(255,126,157,.45); }
.nav-link .em { font-size: 1.15rem; margin-right: 4px; }

.icon-btn {
  border: 3px solid #fff; cursor: pointer; font-family: var(--font);
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--mint));
  color: #fff; font-size: 1.3rem; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: transform .15s;
}
.icon-btn:hover { transform: scale(1.08) rotate(-6deg); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.off { background: linear-gradient(135deg, #c9bfe0, #b9aed6); }

/* ---------- Big plush buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 1.05rem;
  color: #fff; border: none; border-radius: 999px;
  padding: 14px 26px; background: linear-gradient(135deg, var(--coral), var(--peach));
  box-shadow: var(--shadow-sm); transition: transform .14s, box-shadow .14s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(2px) scale(.97); box-shadow: 0 4px 0 rgba(120,90,160,.18); }
.btn.alt { background: linear-gradient(135deg, var(--aqua), var(--mint)); }
.btn.ghost { background: #fff; color: var(--ink); border: 3px solid #ffe1ea; box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 26px 10px 18px; }
.hero-banner { width: 100%; max-width: 760px; margin: 0 auto 6px; display: block; filter: drop-shadow(0 16px 30px rgba(150,120,200,.25)); border-radius: 30px; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; line-height: 1.02;
  background: linear-gradient(90deg, var(--coral), var(--peach), var(--lemon), var(--mint), var(--aqua), var(--lav));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(255,255,255,.7));
  margin-top: 6px;
}
.hero p.lead { font-size: clamp(1rem, 2.6vw, 1.4rem); color: var(--ink-2); font-weight: 600; margin: 12px auto 22px; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-mascot { width: clamp(140px, 30vw, 230px); margin: 4px auto -10px; display: block; cursor: pointer; animation: bob 3.4s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(150,120,200,.25)); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
.hero-stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.stat { background: #fff; border: 3px solid #fff; border-radius: 22px; padding: 12px 20px; box-shadow: var(--shadow-sm); min-width: 120px; }
.stat b { display: block; font-size: 1.6rem; color: var(--coral); }
.stat span { font-size: .9rem; color: var(--ink-2); font-weight: 600; }

/* ---------- Section headings ---------- */
.section { margin-top: 46px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; color: var(--ink); }
.sec-head .pill { margin-left: auto; }
.pill { background: #fff; border: 3px solid #ffe1ea; color: var(--ink-2); font-weight: 700; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: .95rem; }

/* ---------- Carousel (featured) ---------- */
.carousel { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { height: 10px; }
.carousel::-webkit-scrollbar-thumb { background: #ffd2de; border-radius: 999px; }
.feature-card {
  scroll-snap-align: start; flex: 0 0 280px; cursor: pointer;
  background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
  border: 3px solid #fff; transition: transform .18s, box-shadow .18s; text-align: left;
}
.feature-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-md); }
.feature-card img { width: 100%; height: 150px; object-fit: contain; border-radius: var(--radius-sm); background: var(--soft, #faf6ff); }
.feature-card h3 { font-size: 1.2rem; margin-top: 10px; }
.feature-card p { color: var(--ink-2); font-weight: 600; font-size: .92rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.show-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Show card ---------- */
.show-card {
  position: relative; cursor: pointer; border-radius: var(--radius);
  background: #fff; border: 3px solid #fff; box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.show-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-md); }
.show-card .poster { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.show-card .body { padding: 14px 16px 18px; }
.show-card .emoji-row { font-size: 1.6rem; margin-bottom: 4px; }
.show-card h3 { font-size: 1.35rem; }
.show-card .tag { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.show-card .show-desc { color: var(--ink-2); font-weight: 600; font-size: .86rem; line-height: 1.45; margin-top: 8px; }
.show-card .song-list { list-style: none; margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; }
.show-card .song-list li { background: #fff; border: 2px solid #f4effd; border-radius: 12px; padding: 5px 10px; font-weight: 700; font-size: .84rem; color: var(--ink); }
.show-card .watch {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--c, var(--coral)); color: #fff; font-weight: 800;
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 6px 0 rgba(0,0,0,.06);
}
.ep-count { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: .85rem; box-shadow: var(--shadow-sm); }

/* ---------- Video card ---------- */
.video-card {
  cursor: pointer; border-radius: var(--radius); background: #fff;
  border: 3px solid #fff; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .18s, box-shadow .18s; text-align: left; position: relative;
}
.video-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-md); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--soft, #f3eaff); display: grid; place-items: center; overflow: hidden; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-thumb .big-emoji { position: relative; font-size: 3.4rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); z-index: 2; }
.play-badge {
  position: absolute; z-index: 3; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  font-size: 1.7rem; color: var(--c, var(--coral)); box-shadow: var(--shadow-md);
  transition: transform .18s;
}
.video-card:hover .play-badge { transform: scale(1.12); }
.video-dur { position: absolute; z-index: 3; bottom: 10px; right: 10px; background: rgba(74,59,107,.82); color: #fff; font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; }
.video-badge { position: absolute; z-index: 3; top: 10px; left: 10px; background: var(--c, var(--coral)); color: #fff; font-weight: 800; font-size: .76rem; padding: 4px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.video-meta { padding: 12px 14px 16px; }
.video-meta h4 { font-size: 1.05rem; }
.video-meta .scene { color: var(--ink-2); font-weight: 600; font-size: .8rem; line-height: 1.35; margin-top: 2px; opacity: .9; }
.video-meta .sub { color: var(--ink-2); font-weight: 600; font-size: .85rem; display: flex; gap: 10px; margin-top: 5px; justify-content: space-between; }
.player-scene { margin: 10px 2px 0; background: #fff; border: 3px solid #fff; border-radius: 16px; padding: 8px 14px; color: var(--ink-2); font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm); }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  cursor: pointer; border: 3px solid #fff; background: #fff; color: var(--ink-2);
  font-family: var(--font); font-weight: 700; font-size: .95rem; padding: 9px 16px;
  border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .14s, background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { transform: translateY(-2px); }
.chip.active { color: #fff; background: var(--c, var(--coral)); border-color: var(--c, var(--coral)); }

/* ---------- Game card ---------- */
.game-card {
  cursor: pointer; border-radius: var(--radius); background: var(--soft, #faf6ff);
  border: 4px solid #fff; box-shadow: var(--shadow-sm); padding: 22px 16px 18px; text-align: center;
  transition: transform .18s, box-shadow .18s; position: relative; overflow: hidden;
}
.game-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); }
.game-card .g-emoji { font-size: 3.4rem; display: inline-block; animation: bob 3.6s ease-in-out infinite; }
.game-card h3 { font-size: 1.25rem; margin-top: 8px; }
.game-card p { color: var(--ink-2); font-weight: 600; font-size: .9rem; margin-top: 4px; }
.game-card .play-now { margin-top: 12px; display: inline-block; background: var(--c, var(--coral)); color: #fff; font-weight: 800; padding: 8px 18px; border-radius: 999px; box-shadow: 0 6px 0 rgba(0,0,0,.05); }

/* ---------- Shop ---------- */
.shop-card {
  background: #fff; border: 4px solid #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.shop-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-md); }
.shop-img {
  position: relative; aspect-ratio: 16/9; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(255,255,255,.85), rgba(255,255,255,0) 60%),
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.7), rgba(255,255,255,0) 40%),
    var(--soft, #faf6ff);
}
.shop-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px 12px 2px; transition: transform .35s cubic-bezier(.2,1,.3,1); filter: drop-shadow(0 12px 14px rgba(120,90,160,.22)); }
.shop-card:hover .shop-img img { transform: translateY(-4px) scale(1.06) rotate(-1.5deg); }
.shop-card.group .shop-img img { padding: 10px 6px 0; }
.shop-kind { position: absolute; top: 10px; right: 10px; color: #fff; font-weight: 800; font-size: .74rem; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); letter-spacing: .2px; }
.shop-kind.pair  { background: linear-gradient(135deg, var(--aqua), var(--mint)); }
.shop-kind.group { background: linear-gradient(90deg, var(--coral), var(--peach), var(--lemon), var(--mint), var(--aqua), var(--lav)); }
.shop-sub { color: var(--ink-2); font-weight: 700; font-size: .8rem; margin-top: -4px; }
.shop-sub span { font-weight: 800; }
.shop-card.group { grid-column: 1 / -1; }
.shop-card.group .shop-img { aspect-ratio: auto; min-height: 220px; max-height: 320px; }
@media (min-width: 720px) {
  .shop-card.group { flex-direction: row; align-items: stretch; }
  .shop-card.group .shop-img { flex: 1 1 58%; max-height: none; min-height: 300px; }
  .shop-card.group .shop-body { flex: 1 1 42%; justify-content: center; padding: 22px 26px; }
  .shop-card.group .shop-body h3 { font-size: 1.6rem; }
}

/* shop banner (pricing at a glance) */
.shop-banner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sb-item { background: rgba(255,255,255,.85); border: 3px solid #fff; border-radius: 22px; padding: 12px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.sb-item b { font-size: 1.05rem; color: var(--ink); }
.sb-item span { font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.chip small { background: rgba(0,0,0,.08); border-radius: 999px; padding: 1px 7px; font-size: .78rem; font-weight: 800; }
.chip.active small { background: rgba(255,255,255,.3); }
.shop-emoji { position: absolute; top: 10px; left: 10px; font-size: 1.7rem; line-height: 1; background: rgba(255,255,255,.9); border-radius: 999px; min-width: 46px; height: 46px; padding: 0 10px; display: grid; place-items: center; box-shadow: var(--shadow-sm); letter-spacing: 2px; }
.shop-price { position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,.94); color: var(--c, var(--coral)); font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: .95rem; box-shadow: var(--shadow-sm); }
.shop-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-body h3 { font-size: 1.25rem; }
.shop-body p { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.shop-plays { background: var(--soft, #faf6ff); color: var(--ink); font-weight: 800; font-size: .85rem; padding: 7px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.shop-foot .price { font-size: 1.4rem; font-weight: 800; color: var(--c, var(--coral)); }
.shop-foot .press { padding: 10px 16px; font-size: .95rem; background: linear-gradient(135deg, var(--c, var(--coral)), var(--peach)); }
/* ---------- Cart toggle (nav) ---------- */
.cart-toggle { position: relative; }
.cart-badge {
  position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px;
  padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff;
  font-size: .8rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2); border: 2px solid #fff;
}
.cart-badge.hidden { display: none; }

/* ---------- Cart drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(74,59,107,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 95; height: 100%; width: min(400px, 92vw);
  background: var(--cream); border-left: 5px solid #fff; box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .35s cubic-bezier(.2,1,.3,1);
  display: flex; flex-direction: column; padding: 14px 16px 18px;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cart-head h3 { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; }
.cart-empty { text-align: center; color: var(--ink-2); font-weight: 700; margin: 40px 12px; line-height: 1.6; }
.cart-empty span { font-weight: 600; opacity: .8; }
.cart-row { display: flex; gap: 12px; align-items: center; background: #fff; border: 3px solid #fff; border-left: 6px solid var(--c, var(--coral)); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-sm); }
.cart-row img { width: 58px; height: 58px; object-fit: contain; padding: 3px; border-radius: 14px; background: var(--soft, #faf6ff); }
.cr-info { flex: 1; min-width: 0; }
.cr-info b { display: block; font-size: 1rem; color: var(--ink); }
.cr-info span { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.cr-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cr-qty .qbtn.sm { width: 28px; height: 28px; font-size: 1.1rem; border-radius: 10px; }
.cr-qty span { min-width: 18px; text-align: center; font-weight: 800; color: var(--ink); }
.cr-remove { margin-left: auto; border: none; background: none; cursor: pointer; color: var(--coral); font-weight: 800; font-family: var(--font); font-size: .82rem; text-decoration: underline; }
.cr-price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.cart-foot { border-top: 3px dashed #eee; padding-top: 12px; margin-top: 8px; }
.cart-line { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink-2); margin: 4px 2px; }
.cart-line.total { font-size: 1.3rem; color: var(--ink); font-weight: 800; margin-top: 6px; }
.cart-secure { text-align: center; font-size: .78rem; color: var(--ink-2); font-weight: 600; margin-top: 8px; }

/* ---------- Product detail modal ---------- */
.prod { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.prod-img {
  position: relative; width: 100%; border-radius: 24px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center;
  box-shadow: inset 0 0 0 4px #fff, var(--shadow-sm);
  background:
    radial-gradient(120% 80% at 50% 108%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%),
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.75), rgba(255,255,255,0) 42%),
    var(--soft, #faf6ff);
}
.prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; filter: drop-shadow(0 16px 18px rgba(120,90,160,.25)); animation: bob 4s ease-in-out infinite; }
.prod-img.group { aspect-ratio: 16/10; }
.prod-show { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: #fff; border: 3px solid var(--c, var(--coral)); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 5px 12px; border-radius: 999px; }
.prod-includes { background: #fff; border: 3px solid #f1eafc; border-radius: 18px; padding: 10px 12px; }
.pi-title { font-weight: 800; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.pi-title em { font-style: normal; color: var(--mint); }
.pi-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pi-chip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #f1eafc; background: var(--cream); border-radius: 999px; padding: 4px 10px 4px 4px; font-family: var(--font); font-weight: 700; font-size: .82rem; color: var(--ink-2); cursor: pointer; transition: transform .12s, border-color .2s; }
.pi-chip img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; background: #fff; }
.pi-chip:hover { transform: translateY(-2px); border-color: var(--lav); }
.prod-emoji { position: absolute; top: 10px; left: 10px; font-size: 1.8rem; line-height: 1; background: rgba(255,255,255,.92); min-width: 50px; height: 50px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; box-shadow: var(--shadow-sm); letter-spacing: 2px; }
.prod-info { display: flex; flex-direction: column; gap: 10px; }
.prod-desc { color: var(--ink-2); font-weight: 600; font-size: .98rem; line-height: 1.55; }
.qty { display: flex; align-items: center; gap: 10px; }
.qbtn { width: 42px; height: 42px; border-radius: 14px; border: 3px solid #fff; background: linear-gradient(135deg, var(--coral), var(--peach)); color: #fff; font-size: 1.5rem; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: transform .12s; }
.qbtn:hover { transform: scale(1.06); }
.qbtn:active { transform: scale(.9); }
.qty #qNum, .qty span#qNum { font-size: 1.4rem; font-weight: 800; min-width: 28px; text-align: center; color: var(--ink); }
.qty-label { color: var(--ink-2); font-weight: 700; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ---------- Order confirmation ---------- */
.confirm { text-align: center; padding: 10px 6px 4px; }
.confirm-emoji { font-size: 3.4rem; }
.confirm p { color: var(--ink-2); font-weight: 600; margin: 8px 0; }
.confirm-id { background: #fff; border: 3px solid #e8f7df; border-radius: 16px; padding: 10px; font-weight: 700; color: var(--ink); display: inline-block; }
.confirm-note { font-size: .82rem; opacity: .8; }
.confirm-note code { background: #fff; padding: 2px 6px; border-radius: 6px; }

@media (max-width: 620px) {
  .prod { grid-template-columns: 1fr; }
  .prod-img { width: min(280px, 100%); margin: 0 auto; }
  .prod-img.group { width: 100%; }
}

/* ---------- Parents / About ---------- */
.parents-hero { text-align: center; padding: 26px 12px 14px; }
.parents-badge { display: inline-block; background: #fff; border: 3px solid #ffe6b3; color: var(--peach); font-weight: 800; padding: 8px 20px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 14px; font-size: 0.95rem; }
.parents-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); font-weight: 800; line-height: 1.2; background: linear-gradient(90deg, var(--coral), var(--peach), var(--lemon), var(--mint), var(--lav)); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 960px; margin: 0 auto; }
.parents-hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink); font-weight: 600; margin: 16px auto 0; max-width: 860px; line-height: 1.6; }

.parents-highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.p-highlight-pill { background: #FFFFFF; border: 2px solid rgba(120,90,160,.14); border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; font-weight: 700; color: var(--ink); box-shadow: 0 4px 10px rgba(120,90,160,.06); display: inline-flex; align-items: center; gap: 6px; }

/* The Crisis Box */
.crisis-box { background: linear-gradient(135deg, #FFFFFF, #FFF9F7); border: 3px solid #FFE4DE; border-left: 8px solid #FF7E9D; border-radius: 28px; padding: 28px 26px; box-shadow: var(--shadow-sm); }
.crisis-box .crisis-quote { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 800; color: #9C2744; line-height: 1.45; margin-bottom: 16px; }
.crisis-box p { font-size: 1.02rem; line-height: 1.7; color: var(--ink); margin-bottom: 14px; font-weight: 500; }
.crisis-box p:last-child { margin-bottom: 0; font-weight: 700; color: var(--ink); }

/* The SquishTune Difference */
.difference-manifesto { font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.6; background: #FFFFFF; border: 3px solid #E8F5E9; border-radius: 24px; padding: 20px 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.difference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.diff-card { background: #FFFFFF; border: 3px solid #FFFFFF; border-radius: 28px; padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 12px; }
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.diff-card .d-icon { font-size: 2.4rem; width: 62px; height: 62px; border-radius: 20px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 6px rgba(0,0,0,.06); }
.diff-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.diff-card p { font-size: 0.95rem; line-height: 1.65; color: var(--ink-2); font-weight: 500; }

/* The 6 Universes & 12 Characters */
.universes-intro { font-size: 1.1rem; font-weight: 700; color: var(--ink-2); margin-bottom: 18px; }
.universes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.universe-card { background: #FFFFFF; border: 3px solid #FFFFFF; border-radius: 26px; padding: 22px 20px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; border-left: 8px solid var(--u-color, #FF7E9D); display: flex; flex-direction: column; gap: 10px; }
.universe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.u-head { display: flex; align-items: center; gap: 12px; }
.u-emoji { font-size: 2.2rem; }
.u-name { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.universe-card p { font-size: 0.94rem; line-height: 1.6; color: var(--ink-2); font-weight: 500; }

.promise-card { background: #fff; border: 3px solid #fff; border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow-sm); text-align: center; transition: transform .18s, box-shadow .18s; }
.promise-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.p-emoji { font-size: 2.6rem; display: inline-block; animation: bob 3.8s ease-in-out infinite; }
.promise-card h3 { font-size: 1.2rem; margin: 6px 0; }
.promise-card p { color: var(--ink-2); font-weight: 600; font-size: .92rem; }

.tips { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tip { background: linear-gradient(135deg, #fff, #fff8ee); border: 3px solid #fff; border-left: 7px solid var(--lemon); border-radius: 20px; padding: 14px 18px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); }

.faq { display: grid; gap: 12px; max-width: 760px; }
.faq-item { background: #fff; border: 3px solid #fff; border-radius: 20px; box-shadow: var(--shadow-sm); padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; color: var(--ink); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "▾"; color: var(--coral); font-size: 1.2rem; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { color: var(--ink-2); font-weight: 600; padding: 0 0 14px; }

.parents-cta { text-align: center; background: linear-gradient(135deg, #fff, #fef3f7); border: 3px solid #fff; border-radius: var(--radius); padding: 26px 18px; box-shadow: var(--shadow-sm); }

/* ---------- Modal (video player + games) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(74,59,107,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 18px; overflow-y: auto;
}
.overlay.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(900px, 100%); background: var(--cream); border-radius: 36px; border: 5px solid #fff;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: popIn .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes popIn { from { transform: scale(.82) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.modal-head .m-title { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.modal-head .m-sub { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.modal-close {
  margin-left: auto; border: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral); color: #fff; font-size: 1.4rem; display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.modal-close:hover { transform: rotate(90deg) scale(1.05); }
.modal-body { padding: 0 18px 22px; }

/* video player stage */
.player-stage {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 16/9;
  background: radial-gradient(circle at 50% 35%, #fff, var(--soft, #efe7ff));
  display: grid; place-items: center; box-shadow: inset 0 0 0 4px #fff, var(--shadow-sm);
}
.player-stage .pl-mascot { width: 38%; max-width: 240px; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 12px 16px rgba(150,120,200,.3)); }
.player-stage .pl-emoji { position: absolute; font-size: 5rem; opacity: .9; filter: drop-shadow(0 6px 8px rgba(0,0,0,.12)); }
/* visualizer bars */
.viz { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; align-items: flex-end; height: 70px; padding: 0 16px; }
.viz i { width: 10px; height: 12px; border-radius: 999px; background: var(--c, var(--coral)); opacity: .85; }
.player-controls { display: flex; align-items: center; gap: 14px; padding: 16px 4px 4px; }
.player-btn { border: none; cursor: pointer; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--peach)); color: #fff; font-size: 1.5rem; display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .14s; }
.player-btn:hover { transform: scale(1.08); }
.player-btn:active { transform: scale(.9); }
.progress { flex: 1; height: 16px; background: #efe7ff; border-radius: 999px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,.08); cursor: pointer; }
.progress .fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--coral), var(--peach)); border-radius: 999px; transition: width .25s linear; }
.time { font-weight: 800; color: var(--ink-2); min-width: 96px; text-align: right; }


/* ---------- GAMES PAGE (v2) ---------- */
.games-hero { background: linear-gradient(135deg, #FFE6EE 0%, #F0E6FB 50%, #D7F6EF 100%); border-radius: var(--radius); border: 5px solid #fff; box-shadow: var(--shadow-md); padding: 26px 28px; position: relative; overflow: hidden; }
.games-hero::before { content: ""; position: absolute; inset: -40% -20%; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.7), transparent 40%), radial-gradient(circle at 80% 70%, rgba(255,255,255,.6), transparent 35%); pointer-events: none; }
.games-hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: center; }
.games-hero h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--ink); }
.games-hero p { color: var(--ink-2); font-weight: 600; margin-top: 8px; max-width: 60ch; line-height: 1.45; }
.games-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.games-hero-tags span { background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .82rem; color: var(--ink); box-shadow: 0 4px 0 rgba(120,90,160,.08); }
.games-hero-art { position: relative; height: 190px; }
.games-hero-art img { position: absolute; bottom: 0; height: 150px; filter: drop-shadow(0 14px 16px rgba(80,50,120,.25)); animation: bob 3.4s ease-in-out infinite; }
.games-hero-art .gh1 { left: 0; height: 175px; animation-delay: -1s; }
.games-hero-art .gh2 { left: 50%; transform: translateX(-50%); height: 130px; bottom: 10px; animation-delay: -2.2s; }
.games-hero-art .gh3 { right: 0; height: 160px; animation-delay: -.4s; }

.game-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.game-card.v2 { padding: 0; text-align: left; background: #fff; border-radius: 30px; display: flex; flex-direction: column; animation: cardIn .6s cubic-bezier(.2,1.2,.4,1) both; animation-delay: var(--delay, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.game-card.v2:hover { transform: translateY(-8px) scale(1.015); }
.gc-scene { position: relative; height: 200px; overflow: hidden; background: var(--soft); }
.gc-bg { position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.95), transparent 40%), radial-gradient(circle at 75% 70%, rgba(255,255,255,.7), transparent 35%), linear-gradient(160deg, var(--soft), color-mix(in srgb, var(--c) 42%, #fff)); }
.gc-bg::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--c) 55%, #fff); opacity: .9; }
.gc-hero { position: absolute; bottom: 8px; height: 150px; filter: drop-shadow(0 12px 12px rgba(60,40,100,.28)); transition: transform .4s cubic-bezier(.2,1.4,.4,1); }
.gc-hero.a { left: 12%; z-index: 2; }
.gc-hero.b { right: 12%; height: 128px; bottom: 6px; }
.game-card.v2:hover .gc-hero.a { transform: translateY(-10px) rotate(-6deg) scale(1.06); }
.game-card.v2:hover .gc-hero.b { transform: translateY(-14px) rotate(6deg) scale(1.08); }
.gc-emoji { position: absolute; top: 12px; left: 14px; font-size: 2rem; background: #fff; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; box-shadow: var(--shadow-sm); animation: bob 3s ease-in-out infinite; }
.gc-tag { position: absolute; top: 18px; right: 14px; background: var(--c); color: #fff; font-weight: 800; font-size: .74rem; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 0 rgba(0,0,0,.08); letter-spacing: .2px; }
.gc-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.gc-show { font-size: .74rem; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .6px; }
.game-card.v2 h3 { font-size: 1.3rem; margin-top: 2px; color: var(--ink); line-height: 1.15; }
.game-card.v2 p { color: var(--ink-2); font-weight: 600; font-size: .92rem; margin-top: 6px; flex: 1; }
.gc-learn { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gc-learn span { font-size: .74rem; font-weight: 800; background: var(--soft); color: var(--ink); border-radius: 999px; padding: 4px 10px; }
.game-card.v2 .play-now { margin-top: 14px; text-align: center; padding: 12px 18px; font-size: 1.05rem; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 70%, #000 12%); transition: transform .12s; }
.game-card.v2:active .play-now { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 70%, #000 12%); }

/* ---------- GAME MODAL / ENGINE ---------- */
.modal.game-modal { width: min(1040px, 100%); }
.game-host { margin: 0 -6px 4px; }
.gk-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 74vh; border-radius: 26px; overflow: hidden; background: var(--soft); box-shadow: inset 0 0 0 4px #fff, var(--shadow-sm); user-select: none; -webkit-user-select: none; touch-action: none; }
.gk-wrap:fullscreen { border-radius: 0; max-height: none; aspect-ratio: auto; width: 100vw; height: 100vh; }
.gk-canvas { display: block; width: 100%; height: 100%; }
.gk-hud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 3; }
.gk-pill { background: rgba(255,255,255,.92); border-radius: 999px; padding: 7px 14px; font-weight: 800; color: var(--ink); box-shadow: 0 4px 0 rgba(90,60,140,.12), 0 8px 18px rgba(90,60,140,.15); font-size: .95rem; white-space: nowrap; }
.gk-score { font-size: 1.15rem; min-width: 74px; text-align: center; }
.gk-score.bump { animation: scoreBump .35s cubic-bezier(.2,1.6,.4,1); }
@keyframes scoreBump { 40% { transform: scale(1.25); } }
.gk-title { overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.gk-hud-btns { display: flex; gap: 6px; pointer-events: auto; }
.gk-btn { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; background: var(--c); color: #fff; font-size: 1.05rem; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.12); display: grid; place-items: center; transition: transform .12s; }
.gk-btn:hover { transform: scale(1.08); } .gk-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.gk-btn.off { filter: grayscale(1); opacity: .7; }
.gk-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 30px); background: rgba(74,59,107,.9); color: #fff; font-weight: 800; padding: 10px 20px; border-radius: 999px; opacity: 0; transition: .3s cubic-bezier(.2,1.4,.4,1); pointer-events: none; z-index: 4; font-size: 1rem; max-width: 92%; text-align: center; }
.gk-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gk-intro, .gk-over { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; background: rgba(255,253,247,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .3s; padding: 12px; overflow: auto; }
.gk-intro.hide { opacity: 0; pointer-events: none; }
.gk-over { opacity: 0; pointer-events: none; } .gk-over.show { opacity: 1; pointer-events: auto; }
.gk-intro-card, .gk-over-card { background: #fff; border-radius: 28px; border: 4px solid var(--soft); box-shadow: var(--shadow-md); padding: 18px 22px 20px; max-width: 460px; width: 100%; text-align: center; animation: popIn .4s cubic-bezier(.2,1.4,.4,1); }
.gk-intro-art { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 96px; margin-bottom: 4px; }
.gk-intro-art img { height: 96px; filter: drop-shadow(0 8px 10px rgba(60,40,100,.25)); animation: bob 2.8s ease-in-out infinite; }
.gk-intro-art img:last-child { height: 82px; animation-delay: -1.4s; }
.gk-intro-card h3, .gk-over-card h3 { font-size: 1.35rem; color: var(--ink); line-height: 1.15; }
.gk-intro-card p, .gk-over-card p { color: var(--ink-2); font-weight: 600; font-size: .92rem; margin-top: 6px; line-height: 1.4; }
.gk-learn { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.gk-learn span { font-size: .76rem; font-weight: 800; background: var(--soft); color: var(--ink); border-radius: 999px; padding: 4px 10px; }
.gk-play { margin-top: 14px; border: none; cursor: pointer; font-family: var(--font); font-weight: 800; font-size: 1.15rem; color: #fff; background: var(--c); padding: 12px 30px; border-radius: 999px; box-shadow: 0 6px 0 rgba(0,0,0,.12); transition: transform .12s; animation: pulseBtn 1.6s ease-in-out infinite; }
.gk-play:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.gk-play.alt { background: var(--ink); animation: none; }
@keyframes pulseBtn { 50% { transform: scale(1.05); } }
.gk-over-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gk-stars { font-size: 2.8rem; line-height: 1; letter-spacing: 4px; }
.gk-stars span { display: inline-block; color: #e9e2f3; transform: scale(0); animation: starIn .5s cubic-bezier(.2,1.6,.4,1) forwards; }
.gk-stars span.lit { color: #FFD84D; text-shadow: 0 4px 0 #e0a800, 0 0 18px rgba(255,216,77,.6); }
@keyframes starIn { to { transform: scale(1); } }

@media (max-width: 720px) {
  .games-hero { padding: 20px 18px; }
  .games-hero-inner { grid-template-columns: 1fr; }
  .games-hero-art { height: 120px; }
  .games-hero-art img { height: 100px; } .games-hero-art .gh1 { height: 115px; } .games-hero-art .gh2 { height: 90px; } .games-hero-art .gh3 { height: 105px; }
  .game-grid { grid-template-columns: 1fr; gap: 18px; }
  .gc-scene { height: 170px; } .gc-hero { height: 128px; } .gc-hero.b { height: 110px; }
  .modal.game-modal { border-radius: 24px; }
  .modal.game-modal .modal-body { padding: 0 8px 10px; }
  .modal.game-modal .modal-head .m-sub { display: none; }
  .modal.game-modal .modal-head .m-title { font-size: 1rem; }
  .game-host { margin: 0; }
  .gk-wrap { aspect-ratio: 2 / 3; max-height: 72vh; border-radius: 20px; }
  .gk-pill { font-size: .82rem; padding: 6px 10px; } .gk-score { font-size: 1rem; min-width: 60px; }
  .gk-title { display: none; }
  .gk-toast { font-size: .84rem; padding: 8px 14px; bottom: auto; top: 58px; transform: translate(-50%, -20px); }
  .gk-toast.show { transform: translate(-50%, 0); }
  .gk-btn { width: 36px; height: 36px; font-size: .95rem; }
  .gk-intro-card, .gk-over-card { padding: 14px 16px 16px; }
  .gk-intro-art { height: 78px; } .gk-intro-art img { height: 78px; } .gk-intro-art img:last-child { height: 66px; }
  .gk-intro-card p { font-size: .86rem; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .gk-wrap { max-height: 82vh; }
}

/* ---------- Footer ---------- */
.footer { margin-top: 60px; text-align: center; color: var(--ink-2); font-weight: 600; }
.footer .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.footer a { color: var(--ink-2); text-decoration: none; background: #fff; border: 3px solid #fff; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); font-weight: 700; }
.footer a:hover { transform: translateY(-2px); }
.footer .copy { font-size: .85rem; opacity: .8; margin-top: 8px; }

/* ---------- Music note particles ---------- */
.note-pop { position: fixed; z-index: 200; pointer-events: none; font-size: 1.6rem; animation: noteFloat 1s ease-out forwards; }
@keyframes noteFloat { from { transform: translateY(0) scale(.6); opacity: 1; } to { transform: translateY(-90px) scale(1.3) rotate(20deg); opacity: 0; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(40px); z-index: 150; background: #fff; color: var(--ink); font-weight: 800; padding: 14px 26px; border-radius: 999px; box-shadow: var(--shadow-md); border: 3px solid #ffe1ea; opacity: 0; transition: transform .3s, opacity .3s; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }


/* ---------- Hero video (public/SquishTune.mp4) ---------- */
.hero-video-wrap {
  position: relative; width: 100%; max-width: 960px; margin: 0 auto 10px;
  aspect-ratio: 16/9; border-radius: 30px; overflow: hidden; background: #fff;
  border: 5px solid #fff; box-shadow: var(--shadow-lg);
  transform: translateZ(0);            /* clip the video's corners on iOS */
}
.hero-video-wrap.is-mobile { aspect-ratio: 4/5; max-width: 520px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s ease; background: #fff; cursor: pointer; }
.hero-video-wrap.ready .hero-video { opacity: 1; }
.hero-video-wrap.failed .hero-video { display: none; }
.hero-video-wrap .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; filter: none; transition: opacity .6s ease; }
.hero-video-wrap.ready:not(.failed) .hero-fallback { opacity: 0; pointer-events: none; }
.hero-unmute {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  background: rgba(255,255,255,.85); font-size: 1.2rem; display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.hero-unmute:hover { transform: scale(1.08); }
.hero.has-video { padding-top: 14px; }
.hero.has-video h1 { margin-top: 12px; }
@media (max-width: 720px) {
  .hero-video-wrap { border-radius: 22px; border-width: 4px; margin-bottom: 4px; }
  .hero.has-video { padding-top: 6px; }
  .hero-banner { border-radius: 22px; }
  .hero-mascot { width: clamp(120px, 34vw, 170px); }
}

/* ---------- Real video player (files from /public) ---------- */
.player-stage.real { background: #1b1533; display: block; }
.real-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #1b1533; display: block; cursor: pointer; }
.real-video::-webkit-media-controls, .real-video::-webkit-media-controls-enclosure, .real-video::-internal-media-controls-overlay-cast-button { display: none !important; -webkit-appearance: none; }
.big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.94); color: var(--c, var(--coral)); font-size: 2.6rem; padding-left: 8px;
  box-shadow: var(--shadow-md); cursor: pointer; transition: transform .18s, opacity .25s; z-index: 2;
  animation: bob 2.4s ease-in-out infinite;
}
.big-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.player-stage.is-playing .big-play { opacity: 0; pointer-events: none; }
.loading-note { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(255,255,255,.92); color: var(--ink); font-weight: 800; font-size: .88rem; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); z-index: 2; max-width: 92%; text-align: center; transition: opacity .3s; }
.loading-note.hide { opacity: 0; pointer-events: none; }
.player-stage.real:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player-stage.real:fullscreen .real-video { object-fit: contain; }
.player-btn.small { width: 46px; height: 46px; font-size: 1.1rem; background: linear-gradient(135deg, var(--aqua), var(--mint)); }
.progress { touch-action: none; }
.drop-hint { margin-top: 10px; text-align: center; color: var(--ink-2); font-weight: 600; font-size: .8rem; opacity: .85; }
.drop-hint b { color: var(--ink); }

/* video-card "real file" badge */
.file-badge { position: absolute; z-index: 3; top: 10px; right: 10px; background: rgba(27,21,51,.85); color: #fff; font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px; }
.video-card.has-file .play-badge { background: var(--c, var(--coral)); color: #fff; }
.mini-badge { font-size: .8em; }
.show-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.show-card .watch.trailer { border: none; cursor: pointer; font-family: var(--font); font-size: .95rem; background: linear-gradient(135deg, #1b1533, #4a3b6b); }

.lbl-short { display: none; }
@media (max-width: 720px) { .lbl-long { display: none; } .lbl-short { display: inline; } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  /* Header: brand + icon buttons on row 1, page buttons on their own full-width row 2.
     Nothing can overflow or overlap — the row of links is a 6-column grid. */
  .nav {
    flex-wrap: wrap; gap: 8px 6px; padding: 8px 10px 10px; border-radius: 24px; margin: 8px 8px 6px;
    position: sticky; top: 0;
  }
  .brand { gap: 6px; margin-right: auto; flex: 0 1 auto; min-width: 0; }
  .brand img { height: 34px; }
  .brand .b-name { display: inline; font-size: 1.1rem; }
  .icon-btn { width: 40px; height: 40px; font-size: 1.05rem; flex: 0 0 auto; border-width: 2px; order: 2; }
  .nav-links {
    order: 3; flex: 1 1 100%; width: 100%; min-width: 0;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px;
  }
  .nav-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    padding: 6px 2px; min-width: 0; font-size: .62rem; line-height: 1.1; border-radius: 16px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .nav-link .em { font-size: 1.25rem; margin: 0; line-height: 1.1; }
  .nav-link .label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
  .nav-link:hover { transform: none; }
  .cart-badge { min-width: 18px; height: 18px; font-size: .7rem; top: -6px; right: -6px; }
  .shell { padding: 0 12px 50px; }
  .sec-head .pill { margin-left: 0; }
  .shop-card.group .shop-img { min-height: 200px; }
  .player-controls { gap: 8px; padding: 12px 0 2px; flex-wrap: wrap; }
  .player-btn { width: 50px; height: 50px; }
  .player-btn.small { width: 40px; height: 40px; font-size: 1rem; }
  .time { min-width: 0; font-size: .85rem; }
  .modal { border-radius: 26px; border-width: 4px; }
  .modal-body { padding: 0 12px 16px; }
}
@media (max-width: 360px) {
  .brand .b-name { display: none; }
  .nav-link .label { font-size: .58rem; }
  .nav-link .em { font-size: 1.15rem; }
}
@media (max-width: 420px) {
  .stat { min-width: 100px; padding: 10px 14px; }
  .hero h1 { letter-spacing: 0; }
  .grid { gap: 14px; }
}

/* ---------- Page Hero Banners (Shows & Shop) ---------- */
.page-hero-banner {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  margin: 18px 0 28px;
  border: 4px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 48px rgba(255, 143, 171, 0.28), 0 6px 20px rgba(152, 228, 200, 0.25);
}
.page-hero-banner .phb-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (min-width: 680px) {
  .page-hero-banner .phb-img {
    height: 280px;
  }
}
.page-hero-banner .phb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.1) 45%, transparent 100%);
  pointer-events: none;
}
.page-hero-banner .phb-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}
.page-hero-banner .phb-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-hero-banner .phb-title {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.3);
}
@media (max-width: 540px) {
  .page-hero-banner {
    border-radius: 26px;
    margin: 12px 0 20px;
  }
  .page-hero-banner .phb-img {
    height: 180px;
  }
  .page-hero-banner .phb-content {
    padding: 16px 20px;
  }
}

/* ---------- Third-site Game Overlay ---------- */
.ts-game-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: tsFadeIn .25s ease;
}
.ts-game-overlay.open {
  display: flex;
  flex-direction: column;
}
.ts-game-overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
  display: block;
}
@keyframes tsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   Coloring Book — Toddler & Kid-Friendly Styles
   ============================================================ */
.coloring-page-root {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

/* Header */
.coloring-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid #FFFFFF;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.coloring-title-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}
.coloring-title-badge .c-emoji {
  font-size: 2.6rem;
  background: #FFF0F5;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.08);
}
.coloring-title-badge .c-title {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--coral), var(--peach), var(--lav));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.coloring-title-badge .c-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 2px;
}
.coloring-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.c-top-btn {
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(120,90,160,.12);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.c-top-btn:hover {
  transform: translateY(-2px);
  background: #FFF9FC;
}
.c-top-btn.save-btn {
  background: linear-gradient(135deg, #FF7E9D, #FF9A4D);
  color: #FFFFFF;
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(255,126,157,.4);
}
.c-top-btn.save-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(255,126,157,.5);
}

/* Studio Layout */
.coloring-studio {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 820px) {
  .coloring-studio {
    grid-template-columns: 1fr;
  }
}

/* Left Tools Panel */
.coloring-controls {
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid #FFFFFF;
  border-radius: 28px;
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tool-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.group-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--ink-2);
  padding-left: 4px;
}
.tool-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.c-tool-btn {
  border: 2px solid rgba(120,90,160,.12);
  border-radius: 20px;
  background: #FFFFFF;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform .15s, border-color .2s, background .2s, box-shadow .2s;
  user-select: none;
}
.c-tool-btn .t-ico {
  font-size: 1.6rem;
}
.c-tool-btn:hover {
  transform: translateY(-2px);
  background: #FFFDF8;
}
.c-tool-btn.active {
  background: linear-gradient(135deg, #FFE8F0, #FFF3E6);
  border-color: #FF7E9D;
  color: #FF4D6D;
  box-shadow: 0 4px 14px rgba(255,126,157,.25);
  transform: scale(1.03);
}

/* Size Buttons */
.size-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.c-size-btn {
  border: 2px solid rgba(120,90,160,.12);
  border-radius: 18px;
  background: #FFFFFF;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-2);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 68px;
  transition: transform .15s, border-color .2s, background .2s;
}
.c-size-btn .size-dot {
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  transition: transform .2s, background .2s;
}
.c-size-btn:hover {
  transform: translateY(-2px);
}
.c-size-btn.active {
  border-color: #33CDB0;
  background: #E8FAF6;
  color: #138E75;
  box-shadow: 0 4px 12px rgba(51,205,176,.25);
}
.c-size-btn.active .size-dot {
  transform: scale(1.15);
}

/* Action Buttons (Undo & Clear) */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.c-action-btn {
  border: 2px solid rgba(120,90,160,.12);
  border-radius: 18px;
  background: #FFFFFF;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .15s, background .2s;
}
.c-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}
.c-action-btn:disabled {
  cursor: not-allowed;
}
.c-action-btn.clear-btn {
  color: #E63946;
}
.c-action-btn.clear-btn:hover {
  background: #FFF0F2;
  border-color: #FFB3BA;
}

/* Stage & Canvas */
.coloring-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stage-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid #FFFFFF;
  border-radius: 24px;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
}
.c-nav-arrow {
  border: none;
  background: #FFFFFF;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(120,90,160,.14);
  transition: transform .15s, background .2s;
}
.c-nav-arrow:hover {
  transform: scale(1.1);
  background: #FFF5F8;
}
.c-nav-arrow:active {
  transform: scale(0.92);
}
.c-active-info {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.c-cur-emoji {
  font-size: 2.2rem;
}
.c-cur-name {
  font-size: 1.25rem;
  font-weight: 800;
  display: block;
  color: var(--ink);
}
.c-cur-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  display: block;
}

/* Viewport Container for Canvas */
.coloring-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 660px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 32px;
  border: 5px solid #FFFFFF;
  box-shadow: 0 14px 36px rgba(120,90,160,.16), 0 2px 6px rgba(120,90,160,.08);
  overflow: hidden;
  touch-action: none;
}
.coloring-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.paint-layer {
  z-index: 1;
  cursor: crosshair;
}
.lineart-layer {
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Candy Palette */
.coloring-palette-wrap {
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid #FFFFFF;
  border-radius: 28px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.palette-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.palette-scroll::-webkit-scrollbar {
  height: 8px;
}
.palette-scroll::-webkit-scrollbar-thumb {
  background: rgba(120,90,160,.2);
  border-radius: 999px;
}
.c-crayon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 4px;
  scroll-snap-align: start;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font);
}
.c-crayon-body {
  width: 48px;
  height: 68px;
  border-radius: 14px 14px 22px 22px;
  box-shadow: 0 6px 12px rgba(0,0,0,.15), inset 0 2px 4px rgba(255,255,255,.5);
  position: relative;
  transition: transform .2s, box-shadow .2s;
  border: 3px solid #FFFFFF;
}
.c-crayon-tip {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 14px;
  border-radius: 12px 12px 4px 4px;
  background: inherit;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.4);
}
.c-crayon-ring {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(255,255,255,.4);
}
.c-crayon-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
}
.c-crayon-btn:hover .c-crayon-body {
  transform: translateY(-6px);
}
.c-crayon-btn.active {
  transform: scale(1.12) translateY(-6px);
}
.c-crayon-btn.active .c-crayon-body {
  box-shadow: 0 10px 22px rgba(0,0,0,.25), 0 0 0 4px var(--c-hex);
}
.c-crayon-btn.active .c-crayon-label {
  color: var(--ink);
  font-weight: 800;
}

/* Carousel Section */
.coloring-carousel-section {
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid #FFFFFF;
  border-radius: 28px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.carousel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.carousel-hint {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}
.carousel-hint code {
  background: #FFF0F5;
  color: #D81B60;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.coloring-thumbnail-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.coloring-thumbnail-strip::-webkit-scrollbar {
  height: 8px;
}
.coloring-thumbnail-strip::-webkit-scrollbar-thumb {
  background: rgba(120,90,160,.2);
  border-radius: 999px;
}
.c-thumb-card {
  border: 3px solid rgba(120,90,160,.12);
  background: #FFFFFF;
  border-radius: 22px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 140px;
  flex-shrink: 0;
  cursor: pointer;
  font-family: var(--font);
  scroll-snap-align: start;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.c-thumb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.c-thumb-card.active {
  border-color: #FF7E9D;
  box-shadow: 0 8px 20px rgba(255,126,157,.35);
  transform: scale(1.05) translateY(-4px);
}
.thumb-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FDFBF7;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.thumb-emoji {
  font-size: 1.15rem;
}
.thumb-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .coloring-header {
    padding: 12px 16px;
  }
  .coloring-title-badge .c-emoji {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  .c-top-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  .c-crayon-body {
    width: 42px;
    height: 60px;
  }
  .c-thumb-card {
    width: 110px;
  }
}

/* ============================================================
   Parental Gate (Apple Guideline 1.3 & Google Families Policy)
   ============================================================ */
.parent-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 48, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pgFadeIn 0.25s ease-out;
}
.parent-gate-overlay.hidden {
  display: none !important;
}

@keyframes pgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.parent-gate-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 28px;
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border: 4px solid #FFE5EC;
}

.parent-gate-card.gate-shake {
  animation: pgShake 0.4s ease-in-out;
}

@keyframes pgShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.parent-gate-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F4F0F8;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: #6C5E78;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.parent-gate-close:hover {
  background: #E8E0F0;
  transform: scale(1.08);
}

.parent-gate-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 8px;
}

.parent-gate-badge {
  display: inline-block;
  background: #FFF1F4;
  color: #E63968;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid #FFD0DC;
}

.parent-gate-title {
  font-size: 1.4rem;
  color: #2D2438;
  margin: 0 0 6px;
}

.parent-gate-sub {
  font-size: 0.95rem;
  color: #6D637A;
  margin: 0 0 20px;
  line-height: 1.4;
}

.parent-gate-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #FBF8FF;
  border: 2px dashed #D6C7EB;
  border-radius: 18px;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
}
.eq-num, .eq-op {
  font-size: 1.8rem;
  color: #4A3A68;
}
.eq-display {
  min-width: 60px;
  font-size: 1.8rem;
  color: #E63968;
  background: #ffffff;
  border: 2px solid #FFCCD8;
  border-radius: 12px;
  padding: 2px 14px;
  text-align: center;
}

.parent-gate-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.pg-key {
  height: 52px;
  border-radius: 14px;
  border: 2px solid #EBE5F2;
  background: #FAF8FD;
  color: #352B44;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Fredoka', system-ui, sans-serif;
  transition: transform 0.1s, background 0.1s;
}
.pg-key:active {
  transform: scale(0.95);
  background: #E8E0F2;
}
.pg-key.pg-clear {
  color: #E63968;
  background: #FFF1F4;
  border-color: #FFD2DE;
}
.pg-key.pg-submit {
  color: #ffffff;
  background: #33CDB0;
  border-color: #2AB89D;
  font-size: 1.5rem;
}

.parent-gate-msg {
  min-height: 20px;
  font-size: 0.85rem;
  color: #E63968;
  font-weight: 600;
}

/* ============================================================
   VIP Paywall Modal (RevenueCat IAP)
   ============================================================ */
.vip-paywall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 16, 38, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: pgFadeIn 0.25s ease-out;
}
.vip-paywall-overlay.hidden {
  display: none !important;
}

.vip-paywall-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 100%);
  border-radius: 32px;
  padding: 34px 28px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 3px solid #FFEEC9;
  text-align: center;
}

.vip-paywall-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F4F0F8;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: #6C5E78;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.vip-paywall-close:hover {
  background: #E8E0F0;
  transform: scale(1.08);
}

.pw-hero {
  margin-bottom: 20px;
}
.pw-badge {
  display: inline-block;
  background: linear-gradient(90deg, #FFD13B 0%, #FF9A4D 100%);
  color: #3C2200;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 170, 0, 0.35);
  margin-bottom: 12px;
}
.pw-title {
  font-size: 1.7rem;
  color: #2D233C;
  margin: 0 0 8px;
}
.pw-sub {
  font-size: 0.95rem;
  color: #6E647E;
  margin: 0 auto;
  max-width: 440px;
  line-height: 1.45;
}

.pw-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F9F6FE;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 22px;
  text-align: left;
}
.pw-perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: #4C4060;
  line-height: 1.35;
}
.pw-perk span {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}
.pw-perk strong {
  display: block;
  color: #291D3C;
  font-size: 0.92rem;
}

.pw-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.pw-tier {
  position: relative;
  background: #FFFFFF;
  border: 2.5px solid #E6DDF2;
  border-radius: 18px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.pw-tier:hover {
  border-color: #B58BE8;
  transform: translateY(-2px);
}
.pw-tier.selected {
  border-color: #FF7E9D;
  background: #FFF7F9;
  box-shadow: 0 6px 18px rgba(255, 126, 157, 0.22);
}
.pw-tier.featured {
  border-color: #FFD13B;
  background: #FFFDF4;
}
.pw-tier.featured.selected {
  border-color: #FF7E9D;
  background: #FFF7F9;
  box-shadow: 0 8px 22px rgba(255, 126, 157, 0.28);
}
.tier-tag {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(90deg, #FF7E9D 0%, #FF9A4D 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 999px;
}
.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.tier-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #2D233C;
}
.tier-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #E63968;
}
.tier-desc {
  font-size: 0.85rem;
  color: #746B84;
}

.pw-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.pw-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: linear-gradient(90deg, #FF4D6D 0%, #FF8811 100%);
  border: none;
  border-radius: 20px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.38);
  transition: transform 0.15s, box-shadow 0.15s;
}
.pw-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.48);
}
.pw-cta-btn:active {
  transform: scale(0.98);
}
.pw-cta-btn.loading {
  opacity: 0.8;
  cursor: wait;
}
.cta-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.cta-sub {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
}

.pw-restore-wrap {
  text-align: center;
}
.pw-link-btn {
  background: none;
  border: none;
  color: #776592;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 10px;
}
.pw-link-btn:hover {
  color: #E63968;
}

.pw-legal {
  font-size: 0.75rem;
  color: #8C829B;
  line-height: 1.45;
  margin: 0;
}
.pw-legal a {
  color: #745F93;
  text-decoration: underline;
}

.pw-active-box {
  background: #E8F9F3;
  border: 2px solid #85E0C2;
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 18px;
}
.pw-active-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}
.pw-active-box h3 {
  color: #127255;
  margin: 0 0 6px;
  font-size: 1.3rem;
}
.pw-active-box p {
  color: #2F6957;
  font-size: 0.92rem;
  margin: 0 0 16px;
}

/* VIP Badge in Header & elsewhere */
.vip-nav-badge {
  background: linear-gradient(90deg, #FFD13B 0%, #FF9A4D 100%);
  color: #3C2200;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #FFC42B;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 170, 0, 0.3);
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vip-nav-badge:hover {
  transform: scale(1.06);
}
.vip-nav-badge.hidden {
  display: none !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

