/* ==========================================================
   Kidsclue — styles
   ========================================================== */
:root {
  --ink: #1D2B53;
  --ink-soft: #4A5785;
  --purple: #7B4DFF;
  --pink: #FF5FA2;
  --orange: #FF9F1C;
  --yellow: #FFD23F;
  --teal: #2EC4B6;
  --blue: #3A86FF;
  --red: #FF4D5A;
  --green: #3BC14A;
  --card: #ffffff;
  --radius: 28px;
  --font: 'Fredoka', 'Baloo 2', 'Nunito', 'Arial Rounded MT Bold', 'Comic Sans MS', 'Chalkboard SE', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; font-family: var(--font); color: var(--ink); overflow: hidden; -webkit-user-select: none; user-select: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
.hidden { display: none !important; }

/* ---------- scenery ---------- */
#scenery { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, #6FD0FF 0%, #BDEFFF 55%, #E8FBFF 100%); transition: background 1s; }
.sun { position: absolute; top: 34px; right: 7vw; width: 110px; height: 110px; }
.sun-rays { position: absolute; inset: -30px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 210, 63, .55) 0 10deg, transparent 10deg 30deg); animation: spin 24s linear infinite; }
.sun-face { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF6B8, #FFD23F 60%, #FFB627); box-shadow: 0 0 60px rgba(255, 210, 63, .8); }
.cloud { position: absolute; width: 200px; opacity: .92; filter: drop-shadow(0 8px 10px rgba(30, 90, 140, .12)); animation: drift linear infinite; }
.cloud.c1 { top: 8%; animation-duration: 70s; }
.cloud.c2 { top: 22%; width: 150px; animation-duration: 95s; animation-delay: -40s; }
.cloud.c3 { top: 4%; width: 120px; animation-duration: 120s; animation-delay: -80s; opacity: .7; }
.balloon-float { position: absolute; width: 46px; height: 58px; border-radius: 50% 50% 48% 48%; bottom: -80px; animation: rise 26s linear infinite; }
.balloon-float::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 50px; background: rgba(29, 43, 83, .25); }
.balloon-float.b1 { left: 8%; background: radial-gradient(circle at 35% 30%, #FFB3C6, #FF4D5A); }
.balloon-float.b2 { left: 84%; background: radial-gradient(circle at 35% 30%, #C9B6FF, #7B4DFF); animation-delay: -13s; animation-duration: 32s; }
.hills { position: absolute; bottom: 0; left: 0; width: 100%; height: 26vh; }
body.night #scenery { background: linear-gradient(180deg, #0B1340, #26307A); }
body.night .sun, body.night .cloud, body.night .balloon-float { opacity: 0; }
body.night .hills { filter: brightness(.35) saturate(.6); }

/* ---------- app frame ---------- */
#app { position: relative; z-index: 1; height: 100%; overflow-y: auto; overflow-x: hidden; }
.screen { min-height: 100%; padding: 22px clamp(14px, 3vw, 40px) 40px; position: relative; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
#toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 999px; font-size: 18px; z-index: 70; transition: transform .35s cubic-bezier(.2, 1.6, .4, 1); }
#toast.show { transform: translate(-50%, 0); }

/* ---------- buttons ---------- */
.btn { --c: var(--purple); background: var(--c); color: #fff; border: 0; border-radius: 24px; padding: 14px 30px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), 0 8px 0 rgba(0, 0, 0, .14), 0 14px 24px rgba(0, 0, 0, .12); transition: transform .12s, box-shadow .12s, filter .2s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(5px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 3px 0 rgba(0, 0, 0, .14); }
.btn.small { padding: 10px 18px; font-size: 18px; border-radius: 18px; }
.btn-round { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1), 0 6px 14px rgba(29, 43, 83, .15); transition: transform .15s; }
.btn-round:hover { transform: scale(1.1) rotate(-6deg); }
.btn-round:active { transform: scale(.94); }
.btn-round.music:not(.on), .btn-round.sound:not(.on) { opacity: .5; }
.btn-link { background: none; border: 0; color: var(--ink-soft); font-size: 18px; text-decoration: underline; margin-top: 10px; }

.speech { position: relative; background: #fff; border-radius: 26px; padding: 16px 24px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; box-shadow: 0 10px 24px rgba(29, 43, 83, .15); max-width: 560px; }
.speech::before { content: ''; position: absolute; left: -16px; top: 50%; margin-top: -12px; border: 12px solid transparent; border-right: 16px solid #fff; border-left: 0; }

/* ---------- mascot ---------- */
.clu { width: 120px; height: 138px; overflow: visible; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(20, 80, 100, .25)); }
.clu.big { width: 170px; height: 195px; }
.clu.mini { width: 62px; height: 72px; animation-duration: 2s; }
.clu .clu-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.clu .clu-glow { transform-box: fill-box; transform-origin: center; animation: glow 1.8s ease-in-out infinite; }
.clu.wave .clu-arm-r, .clu.cheer .clu-arm-r, .clu.cheer .clu-arm-l, .clu.dance .clu-arm-l, .clu.dance .clu-arm-r { transform-box: fill-box; transform-origin: 50% 90%; animation: wave .7s ease-in-out infinite alternate; }
.clu.cheer { animation: jump .8s ease-in-out infinite; }
.clu.dance { animation: dance 1.2s ease-in-out infinite; }

/* ---------- splash ---------- */
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.logo { margin: 0; font-size: clamp(64px, 12vw, 140px); font-weight: 700; letter-spacing: 2px; line-height: 1; }
.logo span { display: inline-block; text-shadow: 0 6px 0 rgba(29, 43, 83, .18), 0 0 0 #fff; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; animation: dropIn .7s cubic-bezier(.2, 1.6, .4, 1) both, letterBob 3s ease-in-out 1s infinite; }
.logo span:nth-child(even) { animation-delay: inherit; }
.tagline { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 600; color: var(--ink-soft); }
.splash-clu { margin: 6px 0 14px; }
.btn-play { font-size: clamp(28px, 4vw, 40px); padding: 20px 52px; border-radius: 40px; animation: pulse 1.6s ease-in-out infinite; }
.fineprint { font-size: 16px; color: var(--ink-soft); margin-top: 18px; }

/* ---------- who ---------- */
.who { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.who-head { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.profile-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; max-width: 980px; }
.profile-card { --c: var(--teal); width: 190px; padding: 22px 12px 18px; border: 0; border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: inset 0 -8px 0 var(--c), 0 14px 26px rgba(29, 43, 83, .16); transition: transform .2s; }
.profile-card:hover { transform: translateY(-6px) rotate(-2deg) scale(1.03); }
.profile-card .avatar { font-size: 76px; line-height: 1; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .12)); }
.profile-card .pname { font-size: 26px; font-weight: 600; }
.profile-card.add { --c: #C8D2F0; border: 4px dashed #C8D2F0; box-shadow: 0 14px 26px rgba(29, 43, 83, .1); background: rgba(255, 255, 255, .7); }
.profile-card.add .avatar { font-size: 56px; margin: 10px 0; }
.age-badge { --c: var(--teal); background: var(--c); color: #fff; font-size: 15px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.pstars { font-size: 18px; color: var(--ink-soft); }
.grown-btn { margin-top: 10px; }

/* ---------- new profile ---------- */
.newprof { display: flex; flex-direction: column; align-items: center; text-align: center; }
.newprof .back { position: absolute; left: 20px; top: 20px; }
.newprof h2 { font-size: clamp(32px, 5vw, 48px); margin: 16px 0 24px; text-shadow: 0 3px 0 #fff; }
.np-step { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.avatar-btn { width: 110px; height: 110px; border-radius: 50%; border: 0; background: #fff; font-size: 64px; box-shadow: inset 0 -6px 0 #E3E9F8, 0 10px 20px rgba(29, 43, 83, .14); transition: transform .2s; }
.avatar-btn:hover { transform: scale(1.12) rotate(8deg); }
.np-avatar { font-size: 100px; animation: bob 2s ease-in-out infinite; }
.name-input { font: 600 36px var(--font); color: var(--ink); text-align: center; width: min(420px, 86vw); padding: 14px 20px; border-radius: 24px; border: 5px solid #fff; background: #fff; box-shadow: 0 10px 22px rgba(29, 43, 83, .14); outline: none; user-select: text; -webkit-user-select: text; }
.name-input:focus { border-color: var(--yellow); }
.np-help { margin: 0; font-size: 18px; color: var(--ink-soft); }
.age-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.age-card { --c: var(--teal); width: 230px; padding: 26px 16px; border: 0; border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: inset 0 -10px 0 var(--c), 0 14px 26px rgba(29, 43, 83, .16); transition: transform .2s; }
.age-card:hover { transform: translateY(-8px) scale(1.04); }
.age-ico { font-size: 72px; }
.age-l { font-size: 26px; font-weight: 700; color: var(--ink); }
.age-s { font-size: 19px; color: var(--ink-soft); }

/* ---------- hub ---------- */
.hub { padding-bottom: 120px; }
.hub-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.me { display: flex; align-items: center; gap: 10px; background: #fff; border: 0; border-radius: 999px; padding: 6px 18px 6px 8px; box-shadow: 0 8px 18px rgba(29, 43, 83, .14); transition: transform .2s; }
.me:hover { transform: scale(1.04); }
.me .avatar { font-size: 40px; background: #F1F5FF; border-radius: 50%; width: 54px; height: 54px; display: grid; place-items: center; }
.me-name { font-size: 24px; font-weight: 600; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.star-count { background: #fff; border-radius: 999px; padding: 10px 20px; font-size: 24px; box-shadow: 0 8px 18px rgba(29, 43, 83, .14); white-space: nowrap; }
.hub-hero { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 14px 0 6px; }
.hero-clu { background: none; border: 0; padding: 0; }
.hero-clu:hover .clu { animation: jump .8s ease-in-out infinite; }
.zone { margin: 26px auto 0; max-width: 1180px; background: rgba(255, 255, 255, .55); border-radius: 36px; padding: 18px clamp(14px, 2.5vw, 30px) 26px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 16px 40px rgba(29, 43, 83, .1); border: 3px solid rgba(255, 255, 255, .8); }
.zone-title { margin: 0; font-size: clamp(30px, 4vw, 42px); display: flex; align-items: center; gap: 12px; }
.zone-title span { display: inline-block; animation: wiggle 2.4s ease-in-out infinite; }
.zone-tech .zone-title { color: #3054C7; }
.zone-learn .zone-title { color: #1D8A3E; }
.zone-sub { margin: 2px 0 18px; font-size: 19px; color: var(--ink-soft); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 18px; }
.tile { position: relative; border: 0; border-radius: 30px; padding: 20px 14px 16px; min-height: 210px; color: #fff; background: linear-gradient(160deg, var(--c1), var(--c2)); display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .16), 0 14px 24px rgba(29, 43, 83, .18); transition: transform .25s cubic-bezier(.2, 1.6, .4, 1); }
.tile::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .14); top: -60px; right: -50px; }
.tile::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, .1); bottom: -30px; left: -20px; }
.tile:hover { transform: translateY(-8px) scale(1.04) rotate(-1.5deg); }
.tile:active { transform: scale(.97); }
.tile-icon { font-size: 68px; line-height: 1.1; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .18)); animation: float 3s ease-in-out infinite; position: relative; z-index: 1; }
.tile:nth-child(2n) .tile-icon { animation-delay: -1.2s; }
.tile:nth-child(3n) .tile-icon { animation-delay: -2s; }
.tile-name { font-size: 25px; font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); position: relative; z-index: 1; }
.tile-skill { font-size: 15px; font-weight: 500; background: rgba(255, 255, 255, .25); padding: 3px 12px; border-radius: 999px; position: relative; z-index: 1; }
.tile-stars { font-size: 24px; color: #FFE45C; letter-spacing: 2px; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); position: relative; z-index: 1; }
.tile-stars i { font-style: normal; color: rgba(255, 255, 255, .35); }
.ico-bubble { display: inline-block; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 12%, rgba(255, 255, 255, .35) 22%, rgba(140, 220, 255, .35) 60%, rgba(255, 140, 220, .55) 100%); border: 3px solid rgba(255, 255, 255, .85); vertical-align: middle; }
.gicon .ico-bubble { width: 32px; height: 32px; }

/* ---------- game shell ---------- */
.game-screen { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 14px clamp(10px, 2vw, 26px) 18px; gap: 10px; }
.game-bar { display: flex; align-items: center; gap: 14px; }
.game-title { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--c1, var(--purple)), var(--c2, var(--blue))); color: #fff; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; padding: 8px 22px; border-radius: 999px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15), 0 8px 18px rgba(29, 43, 83, .16); text-shadow: 0 2px 0 rgba(0, 0, 0, .2); white-space: nowrap; }
.gicon { font-size: 1.15em; }
.dots { flex: 1; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dots span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .75); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .08); transition: background .3s, transform .3s; }
.dots span.on { background: var(--yellow); transform: scale(1.18); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(255, 180, 0, .5); }
.dots .bar { width: min(320px, 100%); height: 20px; background: rgba(255, 255, 255, .75); border-radius: 999px; overflow: hidden; }
.dots .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--orange)); border-radius: 999px; transition: width .4s; }
.prompt { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.prompt-clu { cursor: pointer; flex-shrink: 0; }
.prompt-text { background: #fff; border-radius: 22px; padding: 12px 22px; font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; box-shadow: 0 8px 18px rgba(29, 43, 83, .14); position: relative; }
.prompt-text::before { content: ''; position: absolute; left: -14px; top: 50%; margin-top: -10px; border: 10px solid transparent; border-right: 14px solid #fff; border-left: 0; }
.stage { position: relative; flex: 1; min-height: 340px; border-radius: 34px; background: rgba(255, 255, 255, .5); border: 4px solid rgba(255, 255, 255, .85); box-shadow: 0 18px 40px rgba(29, 43, 83, .12); overflow: hidden; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); touch-action: none; }
body.night .prompt-text { background: #FFF8D6; }

/* ---------- results ---------- */
.results { position: absolute; inset: 0; display: flex; align-items: safe center; justify-content: center; padding: 14px; overflow-y: auto; background: rgba(255, 255, 255, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 20; }
.res-card { background: #fff; border-radius: 36px; padding: 14px 36px 22px; text-align: center; box-shadow: 0 24px 60px rgba(29, 43, 83, .25); max-width: 94%; margin: auto; display: flex; flex-direction: column; align-items: center; }
.res-clu .clu { width: 110px; height: 126px; }
.res-btns .btn { white-space: nowrap; }
.res-card h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); color: var(--purple); line-height: 1.15; }
.res-stars { font-size: clamp(54px, 7vw, 80px); letter-spacing: 6px; line-height: 1.1; }
.res-stars span { display: inline-block; color: #E3E8F4; }
.res-stars span.got { color: var(--yellow); -webkit-text-stroke: 3px #F4A300; animation: starPop .6s cubic-bezier(.2, 1.8, .4, 1) both; text-shadow: 0 6px 14px rgba(255, 180, 0, .45); }
.res-sticker { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 24px; font-weight: 600; color: var(--pink); margin: 4px 0 8px; }
.res-sticker .stk { font-size: 50px; display: inline-block; animation: stickerIn 1s cubic-bezier(.2, 1.6, .4, 1) .9s both; background: #FFF0F7; border-radius: 50%; width: 76px; height: 76px; line-height: 76px; box-shadow: 0 0 0 5px #fff, 0 0 0 9px #FFC2DD; }
.res-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ---------- choice cards ---------- */
.stage-learn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 3vh, 30px); padding: 18px; }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2.5vw, 28px); }
.choice { position: relative; min-width: clamp(130px, 17vw, 190px); min-height: clamp(130px, 17vw, 190px); padding: 14px; border: 0; border-radius: 32px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: inset 0 -8px 0 #E3E9F8, 0 12px 24px rgba(29, 43, 83, .15); transition: transform .2s cubic-bezier(.2, 1.6, .4, 1), opacity .3s, filter .3s; }
.choice:hover { transform: translateY(-6px) scale(1.05) rotate(-2deg); }
.choice.yes { box-shadow: inset 0 -8px 0 #2EA043, 0 0 0 6px #3BC14A, 0 0 40px rgba(59, 193, 74, .6); animation: bounceYes .7s; z-index: 2; }
.choice.nope { opacity: .35; filter: grayscale(1); transform: scale(.9); }
.choices.solved .choice:not(.yes) { opacity: .25; transform: scale(.86); pointer-events: none; }
.mini-speak { position: absolute; top: 6px; right: 8px; font-size: 18px; opacity: .55; padding: 4px; }
.mini-speak:hover { opacity: 1; transform: scale(1.2); }
.big-num { font-size: clamp(64px, 9vw, 96px); font-weight: 700; color: var(--blue); line-height: 1; }
.choices.nums .choice:nth-child(2) .big-num { color: var(--pink); }
.choices.nums .choice:nth-child(3) .big-num { color: var(--green); }
.choices.nums .choice:nth-child(4) .big-num { color: var(--orange); }
.pic-emo { font-size: clamp(60px, 8vw, 88px); line-height: 1.1; }
.pic-emo.num-emo { font-weight: 700; color: var(--purple); }
.pic-word { font-size: 22px; font-weight: 600; color: var(--ink-soft); }
.balloon-letter { --b: var(--red); display: grid; place-items: center; width: clamp(100px, 13vw, 140px); height: clamp(116px, 15vw, 160px); border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .7), var(--b) 45%); color: #fff; font-size: clamp(60px, 8vw, 84px); font-weight: 700; text-shadow: 0 4px 0 rgba(0, 0, 0, .2); animation: float 2.8s ease-in-out infinite; position: relative; }
.balloon-letter::after { content: ''; position: absolute; bottom: -10px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 12px solid var(--b); }
.balloons .choice { background: transparent; box-shadow: none; }
.balloons .choice:nth-child(2) .balloon-letter { animation-delay: -1s; }
.balloons .choice:nth-child(3) .balloon-letter { animation-delay: -2s; }
.lower { font-size: clamp(76px, 10vw, 110px); font-weight: 600; color: var(--blue); line-height: 1; font-family: 'Fredoka', 'Century Gothic', 'Futura', var(--font); }
.shape-svg { width: clamp(100px, 13vw, 150px); height: clamp(100px, 13vw, 150px); overflow: visible; }
.shape-face circle { fill: #1D2B53; }
.choice:hover .shape-svg { animation: wiggle .6s ease-in-out; }

/* ---------- bubble pop ---------- */
.stage-bubbles { background: linear-gradient(180deg, rgba(180, 235, 255, .55), rgba(120, 200, 255, .4)); cursor: pointer; }
.bubble { --tint: #3A86FF; position: absolute; left: 0; top: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, .25) 18%, transparent 40%), radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--tint) 25%, transparent) 40%, color-mix(in srgb, var(--tint) 70%, transparent) 100%);
  border: 3px solid rgba(255, 255, 255, .9); box-shadow: inset -6px -8px 18px rgba(255, 255, 255, .45), 0 6px 18px rgba(29, 43, 83, .12); will-change: transform; }
.bubble span { font-weight: 700; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); pointer-events: none; }
.bubble.popped { animation: popOut .35s ease-out forwards; pointer-events: none; }
.bubble.wobble { animation: wobble .5s; }
.target-chip { --tint: var(--purple); position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 999px; padding: 8px 22px; font-size: 24px; font-weight: 600; z-index: 5; box-shadow: 0 6px 14px rgba(29, 43, 83, .15); border: 5px solid var(--tint); pointer-events: none; }
.target-chip b { color: var(--tint); text-transform: uppercase; }
.tc-val { font-size: 32px; color: var(--purple) !important; }
.burst { position: fixed; width: 12px; height: 12px; border-radius: 50%; pointer-events: none; z-index: 80; margin: -6px 0 0 -6px; animation: burst .6s ease-out forwards; }

/* ---------- firefly catch ---------- */
.stage-night { background: radial-gradient(ellipse at 50% 120%, #2A3D8F, #101848 70%); border-color: rgba(255, 255, 255, .25); cursor: none; }
.tiny-star { position: absolute; width: 4px; height: 4px; background: #fff; border-radius: 50%; animation: twinkle 2.4s ease-in-out infinite; }
.grass-silhouette { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: radial-gradient(ellipse 60px 70px at 30px 100%, #0A1A2E 98%, transparent) repeat-x; background-size: 60px 90px; opacity: .95; }
.firefly { position: absolute; left: 0; top: 0; width: 28px; height: 28px; will-change: transform; pointer-events: none; }
.firefly i { position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, #FFFBD1, #FFE14D 50%, #FFB800); box-shadow: 0 0 18px 8px rgba(255, 230, 80, .75), 0 0 40px 16px rgba(255, 220, 60, .35); animation: flicker 1.1s ease-in-out infinite alternate; }
.firefly::before, .firefly::after { content: ''; position: absolute; top: -2px; width: 14px; height: 12px; background: rgba(220, 240, 255, .55); border-radius: 50%; animation: flap .12s linear infinite alternate; }
.firefly::before { left: -4px; transform-origin: right bottom; }
.firefly::after { right: -4px; transform-origin: left bottom; }
.firefly.caught { transition: transform .7s cubic-bezier(.5, -0.3, .6, 1); }
.jar { --glow: 0; position: absolute; right: 26px; bottom: 18px; width: 110px; height: 130px; border-radius: 24px 24px 30px 30px; background: rgba(200, 230, 255, .18); border: 5px solid rgba(220, 240, 255, .7); display: grid; place-items: center; z-index: 3; }
.jar-lid { position: absolute; top: -20px; left: 10px; right: 10px; height: 18px; background: #C77D3A; border-radius: 8px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }
.jar-glow { position: absolute; inset: 6px; border-radius: 18px; background: radial-gradient(circle, rgba(255, 230, 80, .9), transparent 70%); opacity: var(--glow); transition: opacity .5s; }
.jar-count { position: relative; font-size: 44px; color: #fff; text-shadow: 0 0 10px #FFB800; }
.jar.bump { animation: jarBump .4s; }
.net { position: absolute; left: 0; top: 0; border-radius: 50%; border: 4px dashed rgba(255, 255, 255, .8); background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 4; }
.net.show { opacity: 1; }

/* ---------- glow trail ---------- */
.stage-trail { background: linear-gradient(180deg, rgba(255, 246, 220, .75), rgba(255, 230, 190, .6)); cursor: crosshair; }
.trail-svg { position: absolute; inset: 0; }
.trail-svg .guide { fill: none; stroke: rgba(255, 159, 28, .22); stroke-width: 40; stroke-linecap: round; stroke-linejoin: round; }
.trail-svg .lit { fill: none; stroke: #FF9F1C; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255, 190, 40, .9)); }
.tdot { fill: #fff; stroke: #FFB627; stroke-width: 4; transition: fill .2s, r .2s; }
.tdot.on { fill: #FFD23F; stroke: #FF8C1A; }
.tdot.next { fill: #fff; stroke: #3BC14A; stroke-width: 6; transform-box: fill-box; transform-origin: center; animation: pulseDot .9s ease-in-out infinite; }
.trail-svg.done .lit { stroke: #3BC14A; filter: drop-shadow(0 0 14px rgba(59, 193, 74, .9)); }
.trail-svg.done .tdot { fill: #3BC14A; stroke: #fff; }
.trail-buddy { position: absolute; left: 0; top: 0; font-size: 44px; transition: transform .25s ease-out; pointer-events: none; animation: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }

/* ---------- sort it ---------- */
.stage-sort { background: linear-gradient(180deg, rgba(235, 255, 225, .6), rgba(200, 245, 190, .5)); }
.tray { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.drag-item { position: absolute; width: 90px; height: 90px; display: grid; place-items: center; font-size: 62px; background: #fff; border-radius: 26px; box-shadow: 0 10px 18px rgba(29, 43, 83, .16); cursor: grab; transition: left .35s cubic-bezier(.2, 1.4, .4, 1), top .35s cubic-bezier(.2, 1.4, .4, 1), transform .2s; touch-action: none; z-index: 2; }
.drag-item:hover { transform: scale(1.08) rotate(-4deg); }
.drag-item.dragging { cursor: grabbing; transform: scale(1.18) rotate(6deg); z-index: 10; box-shadow: 0 22px 34px rgba(29, 43, 83, .28); }
.drag-item.dropped { transform: scale(.3); opacity: 0; transition: left .3s, top .3s, transform .45s, opacity .45s; }
.token { width: 70px; height: 70px; }
.bins { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: clamp(14px, 4vw, 60px); padding: 0 14px; pointer-events: none; z-index: 1; }
.bin { width: clamp(150px, 22vw, 230px); height: 170px; border-radius: 22px 22px 46px 46px; background: repeating-linear-gradient(90deg, #E0A458 0 18px, #D08C3C 18px 22px); border: 6px solid #B9732E; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .12), 0 12px 20px rgba(29, 43, 83, .15); transition: transform .2s; }
.bin-ico { font-size: 58px; line-height: 1; background: #fff; border-radius: 50%; width: 86px; height: 86px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.bin-ico .token { width: 60px; height: 60px; }
.bin-label { margin-top: 6px; font-size: 24px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.bin-count { position: absolute; top: -14px; right: -10px; min-width: 38px; height: 38px; border-radius: 19px; background: var(--yellow); font-size: 22px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 4px 8px rgba(0, 0, 0, .2); }
.bin-count:empty { display: none; }
.bin.hover { transform: scale(1.08) translateY(-6px); border-color: var(--green); box-shadow: 0 0 0 6px rgba(59, 193, 74, .5), 0 16px 26px rgba(29, 43, 83, .2); }
.bin.gulp { animation: gulp .45s; }

/* ---------- key garden ---------- */
.stage-keys { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 10px 18px; background: linear-gradient(180deg, rgba(255, 235, 245, .6), rgba(210, 245, 200, .55)); }
.garden { display: flex; gap: clamp(6px, 1.4vw, 16px); flex-wrap: wrap; justify-content: center; }
.sprout { font-size: clamp(34px, 4.5vw, 52px); display: inline-block; filter: grayscale(.2); transition: transform .3s; }
.sprout.bloom { animation: bloom .7s cubic-bezier(.2, 1.8, .4, 1); filter: none; }
.key-target-wrap { flex: 1; display: grid; place-items: center; }
.key-target { background: #fff; border-radius: 34px; padding: 10px 40px; min-width: 180px; text-align: center; box-shadow: inset 0 -10px 0 #FFD6E8, 0 16px 30px rgba(214, 51, 127, .2); }
.kt-char { font-size: clamp(90px, 13vw, 150px); font-weight: 700; color: var(--pink); line-height: 1.1; }
.kt-space { font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: var(--pink); padding: 20px 10px; letter-spacing: 4px; }
.kt-emoji { font-size: clamp(60px, 8vw, 84px); }
.kt-word { display: flex; gap: 8px; justify-content: center; }
.kt-word span { font-size: clamp(56px, 8vw, 86px); font-weight: 700; color: #D6D9E6; min-width: .8em; border-bottom: 6px solid #E8EBF4; }
.kt-word span.done { color: var(--green); border-color: var(--green); }
.kt-word span.cur { color: var(--pink); border-color: var(--pink); animation: letterBob 1s ease-in-out infinite; }
.key-target.word-done { animation: bounceYes .7s; }
.kb { background: #3B4470; padding: 12px; border-radius: 26px; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .25), 0 14px 24px rgba(29, 43, 83, .25); display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.kb-row { display: flex; justify-content: center; gap: clamp(4px, .7vw, 8px); }
.kb-row:nth-child(3) { padding-left: 1.4%; }
.kb-key { position: relative; width: clamp(34px, 6vw, 64px); height: clamp(40px, 6vw, 60px); border: 0; border-radius: 12px; background: #fff; font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; box-shadow: inset 0 -5px 0 #C9CEE3; transition: transform .1s; }
.kb-key.bump::after { content: ''; position: absolute; bottom: 9px; left: 50%; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: #9AA2C2; }
.kb-key.space { width: clamp(220px, 42vw, 420px); font-size: 20px; color: var(--ink-soft); }
.kb-key.glow { background: var(--yellow); box-shadow: inset 0 -5px 0 #E8A800, 0 0 0 4px #fff, 0 0 26px 8px rgba(255, 210, 63, .9); animation: keyGlow 1s ease-in-out infinite; z-index: 1; }
.kb-key.hit { animation: keyHit .3s; }
.kb-key:active { transform: translateY(3px); }

/* ---------- color studio ---------- */
.stage-color { display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(255, 255, 255, .6); }
.pic-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; width: 100%; max-width: 900px; align-content: center; }
.pic-thumb { border: 0; background: #fff; border-radius: 26px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: inset 0 -6px 0 #EDE3FF, 0 12px 22px rgba(29, 43, 83, .14); transition: transform .2s; }
.pic-thumb:hover { transform: translateY(-6px) rotate(-2deg); }
.pic-thumb svg { width: 100%; height: auto; border-radius: 16px; }
.pic-thumb span { font-size: 20px; font-weight: 600; }
svg.pic .r { stroke: #2B2D42; stroke-width: 4; stroke-linejoin: round; transition: fill .25s; }
svg.pic .ln { fill: none; stroke: #2B2D42; stroke-width: 4; stroke-linecap: round; }
.studio { display: flex; gap: 20px; width: 100%; height: 100%; align-items: center; justify-content: center; }
.canvas-wrap { height: 100%; aspect-ratio: 1; max-width: 70%; background: #fff; border-radius: 26px; padding: 10px; box-shadow: 0 14px 30px rgba(29, 43, 83, .16); }
.canvas-wrap svg { width: 100%; height: 100%; display: block; border-radius: 18px; }
.canvas-wrap svg .r { cursor: pointer; }
.canvas-wrap svg .r:hover { stroke-width: 7; }
.palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; }
.swatch { --sw: #fff; width: clamp(46px, 5.5vw, 62px); height: clamp(46px, 5.5vw, 62px); border-radius: 50%; border: 4px solid #fff; background: var(--sw); box-shadow: 0 6px 12px rgba(29, 43, 83, .18); transition: transform .2s; font-size: 26px; }
.swatch:hover { transform: scale(1.12); }
.swatch.on { transform: scale(1.22); box-shadow: 0 0 0 4px var(--ink), 0 8px 16px rgba(29, 43, 83, .25); }
.swatch.rainbow { background: conic-gradient(#FF4D5A, #FFD23F, #3BC14A, #3A86FF, #9B5DE5, #FF4D5A); }
.tools { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
svg.pic .r.splash { animation: paintSplash .35s ease-out; transform-box: fill-box; transform-origin: center; }

/* ---------- learning extras ---------- */
.count-board { display: flex; justify-content: center; width: 100%; }
.count-field { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; }
.critter { position: relative; font-size: clamp(48px, 6.5vw, 70px); background: rgba(255, 255, 255, .85); border: 0; border-radius: 22px; width: clamp(70px, 9vw, 96px); height: clamp(70px, 9vw, 96px); display: grid; place-items: center; box-shadow: 0 6px 12px rgba(29, 43, 83, .1); transition: transform .2s; }
.count-field.dense .critter { width: clamp(56px, 7vw, 74px); height: clamp(56px, 7vw, 74px); font-size: clamp(38px, 5vw, 52px); }
.critter:hover { transform: scale(1.1) rotate(-6deg); }
.critter.counted { background: #FFF6CC; box-shadow: 0 0 0 4px var(--yellow); }
.critter .num { position: absolute; top: -10px; right: -8px; background: var(--orange); color: #fff; font-size: 20px; font-weight: 700; min-width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
.critter .num:empty { display: none; }
.add-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.add-group { position: relative; display: flex; flex-wrap: wrap; gap: 6px; max-width: 280px; justify-content: center; background: rgba(255, 255, 255, .8); padding: 14px 14px 30px; border-radius: 24px; }
.add-group .critter { width: 62px; height: 62px; font-size: 44px; background: none; box-shadow: none; }
.add-group b { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-size: 22px; color: var(--orange); }
.op { font-size: 64px; font-weight: 700; color: var(--purple); }
.op.q { color: var(--orange); animation: pulse 1.2s ease-in-out infinite; }
.letter-hint { display: flex; align-items: center; gap: 12px; background: #fff; padding: 8px 22px; border-radius: 999px; font-size: 24px; font-weight: 600; box-shadow: 0 6px 14px rgba(29, 43, 83, .12); }
.lh-emo { font-size: 40px; }
.letter-sign { background: linear-gradient(160deg, #3A86FF, #1D5FD1); color: #fff; border-radius: 30px; padding: 0 44px; font-size: clamp(110px, 15vw, 170px); font-weight: 700; line-height: 1.15; box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .18), 0 16px 30px rgba(29, 82, 209, .3); text-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.letter-sign.small { font-size: clamp(64px, 9vw, 96px); padding: 0 30px; }
.q-pic { font-size: clamp(70px, 10vw, 110px); line-height: 1; animation: float 3s ease-in-out infinite; }
.train-track { position: relative; width: 100%; overflow: hidden; padding: 10px 0 16px; }
.train { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.train.chug-in { animation: chugIn 1.6s cubic-bezier(.2, .9, .3, 1) both; }
.train.chug-out { animation: chugOut 1.1s ease-in forwards; }
.engine { position: relative; font-size: clamp(64px, 8vw, 92px); line-height: 1; transform: scaleX(-1); }
.eng-body { display: inline-block; animation: chug .4s ease-in-out infinite alternate; }
.smoke { position: absolute; top: -10px; right: 20%; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .9); animation: smoke 1.6s ease-out infinite; }
.smoke.s2 { animation-delay: .8s; }
.car { --car: var(--car-c, #FF6B6B); width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px); background: linear-gradient(180deg, var(--car), color-mix(in srgb, var(--car) 75%, #000)); border-radius: 18px 18px 10px 10px; display: grid; place-items: center; font-size: clamp(38px, 5vw, 54px); position: relative; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); animation: chug .4s ease-in-out infinite alternate; }
.car:nth-child(odd) { animation-delay: .15s; }
.car::before, .car::after { content: ''; position: absolute; bottom: -12px; width: 20px; height: 20px; border-radius: 50%; background: #2B2D42; border: 4px solid #8D99AE; }
.car::before { left: 8px; } .car::after { right: 8px; }
.car.q { background: #fff; border: 5px dashed var(--purple); color: var(--purple); font-weight: 700; animation: pulse 1.1s ease-in-out infinite; }
.car.filled { animation: bounceYes .6s; }
.rails { height: 10px; margin-top: 14px; background: repeating-linear-gradient(90deg, #8D6E63 0 10px, transparent 10px 30px), linear-gradient(#5D4037, #5D4037) bottom/100% 4px no-repeat; }

/* ---------- stickers ---------- */
.stickers-screen .game-bar { margin-bottom: 8px; }
.stickers-screen .game-title { --c1: #FF6FB5; --c2: #9B5DE5; }
.sb-sub { font-size: 20px; color: var(--ink-soft); text-align: center; margin: 8px 0 18px; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; background: rgba(255, 255, 255, .6); border-radius: 30px; padding: 22px; }
.sticker { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 54px; border: 0; }
.sticker.got { background: #fff; box-shadow: 0 0 0 5px #fff, 0 0 0 9px #FFC2DD, 0 10px 18px rgba(29, 43, 83, .15); }
.sticker.got.jump { animation: jump .6s; }
.sticker.locked { background: rgba(29, 43, 83, .08); color: rgba(29, 43, 83, .25); font-size: 34px; font-weight: 700; border: 3px dashed rgba(29, 43, 83, .15); }
.gal-title { text-align: center; font-size: 34px; margin: 30px 0 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto 40px; }
.art { background: #fff; padding: 10px; border-radius: 20px; box-shadow: 0 10px 20px rgba(29, 43, 83, .14); transform: rotate(-2deg); }
.art:nth-child(even) { transform: rotate(2deg); }
.art svg { width: 100%; height: auto; display: block; border-radius: 12px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(29, 43, 83, .45); display: grid; place-items: center; z-index: 50; backdrop-filter: blur(4px); }
.modal-card { background: #fff; border-radius: 30px; padding: 26px 34px; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); max-width: 92%; }
.modal-card h2 { margin: 0 0 6px; font-size: 32px; }
.modal-card p { font-size: 22px; }
.gate-opts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- grown-ups ---------- */
.parent { max-width: 1200px; margin: 0 auto; font-family: var(--font); }
.parent-bar { display: flex; align-items: center; gap: 16px; }
.parent-bar h1 { margin: 0; font-size: 36px; }
.pz-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 18px; }
.pz-kids { grid-row: span 2; }
.pz-card { background: rgba(255, 255, 255, .92); border-radius: 26px; padding: 20px 24px; box-shadow: 0 12px 28px rgba(29, 43, 83, .12); }
.pz-card h2 { margin: 0 0 12px; font-size: 24px; }
.pz-card h3 { margin: 20px 0 10px; font-size: 19px; color: var(--ink-soft); }
.pz-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.pz-tab { border: 2px solid #DCE3F5; background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 18px; }
.pz-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pz-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.pz-stats div { background: #F3F6FF; border-radius: 16px; padding: 12px 6px; text-align: center; }
.pz-stats b { display: block; font-size: 22px; }
.pz-stats span { font-size: 14px; color: var(--ink-soft); }
.pz-skills { display: flex; flex-direction: column; gap: 8px; }
.pz-skill { display: grid; grid-template-columns: 1.4fr 1fr 110px; gap: 12px; align-items: center; font-size: 16px; }
.pz-sk-name small { display: block; font-size: 13px; color: var(--ink-soft); }
.pz-sk-name .ico-bubble { width: 18px; height: 18px; border-width: 2px; }
.pz-meter { height: 12px; background: #EEF1F8; border-radius: 6px; overflow: hidden; }
.pz-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 6px; }
.pz-sk-val { font-size: 14px; color: var(--ink-soft); text-align: right; }
.pz-ages { display: flex; flex-wrap: wrap; gap: 10px; }
.pz-age { --c: var(--teal); border: 3px solid var(--c); background: #fff; color: var(--c); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 600; }
.pz-age.on { background: var(--c); color: #fff; }
.pz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pz-note { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.pz-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 18px; margin: 14px 0 4px; }
.pz-row select { font: 500 16px var(--font); padding: 6px 10px; border-radius: 12px; border: 2px solid #DCE3F5; }
.sw { display: flex; align-items: center; gap: 12px; font-size: 18px; margin: 10px 0; cursor: pointer; }
.sw input { display: none; }
.sw span { width: 52px; height: 30px; border-radius: 15px; background: #D5DBEA; position: relative; transition: background .2s; flex-shrink: 0; }
.sw span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.sw input:checked + span { background: var(--green); }
.sw input:checked + span::after { transform: translateX(22px); }

/* ---------- break ---------- */
.break { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.break h1 { font-size: clamp(40px, 6vw, 64px); margin: 0; color: var(--purple); text-shadow: 0 4px 0 #fff; }
.break-move { font-size: clamp(26px, 3.5vw, 38px); font-weight: 600; background: #fff; padding: 14px 30px; border-radius: 26px; box-shadow: 0 10px 24px rgba(29, 43, 83, .15); }

/* ---------- animations ---------- */
.pop-in { animation: popIn .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.shake { animation: shake .5s !important; }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 260px)); } }
@keyframes rise { from { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-60vh) rotate(4deg); } to { transform: translateY(-125vh) rotate(-4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes glow { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.35); opacity: .7; } }
@keyframes wave { from { transform: rotate(-20deg); } to { transform: rotate(35deg); } }
@keyframes jump { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-24px) scale(1.05, .95); } 60% { transform: translateY(-24px); } }
@keyframes dance { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-14px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes dropIn { 0% { transform: translateY(-120px) scale(.5); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes letterBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-12px) rotate(-3deg); } 40% { transform: translateX(10px) rotate(3deg); } 60% { transform: translateX(-8px); } 80% { transform: translateX(6px); } }
@keyframes bounceYes { 0% { transform: scale(1); } 30% { transform: scale(1.22) rotate(-4deg); } 60% { transform: scale(.95) rotate(3deg); } 100% { transform: scale(1.08); } }
@keyframes starPop { 0% { transform: scale(0) rotate(-90deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes stickerIn { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes popOut { to { scale: 1.6; opacity: 0; } }
@keyframes wobble { 0%,100% { scale: 1; rotate: 0deg; } 30% { scale: 1.15 .85; rotate: -8deg; } 60% { scale: .9 1.1; rotate: 6deg; } }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes flicker { from { opacity: .75; } to { opacity: 1; } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.4); } }
@keyframes jarBump { 50% { transform: scale(1.12) rotate(-4deg); } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.45); } }
@keyframes gulp { 30% { transform: scale(1.12, .9); } 60% { transform: scale(.95, 1.08); } }
@keyframes bloom { 0% { transform: scale(.3) rotate(-30deg); } 100% { transform: scale(1.25) rotate(0); } }
@keyframes keyGlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes keyHit { 0% { transform: scale(1); } 50% { transform: scale(.85); background: var(--green); } 100% { transform: scale(1); } }
@keyframes paintSplash { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes chugIn { from { transform: translateX(110vw); } to { transform: translateX(0); } }
@keyframes chugOut { to { transform: translateX(-120vw); } }
@keyframes chug { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes smoke { 0% { transform: translate(0, 0) scale(.5); opacity: .9; } 100% { transform: translate(30px, -50px) scale(2); opacity: 0; } }
.engine .eng-body { animation-name: chug; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pz-grid { grid-template-columns: 1fr; }
  .pz-stats { grid-template-columns: repeat(3, 1fr); }
  .avatar-grid { grid-template-columns: repeat(4, 1fr); }
  .studio { flex-direction: column; }
  .canvas-wrap { height: auto; width: min(100%, 60vh); max-width: 100%; }
  .palette { grid-template-columns: repeat(8, 1fr); }
  .tools { flex-direction: row; justify-content: center; }
  .game-title { font-size: 18px; padding: 6px 14px; }
  .dots span { width: 16px; height: 16px; }
}
@media (max-width: 600px) {
  .hub-hero .speech { font-size: 18px; }
  .clu.big { width: 120px; height: 138px; }
  .avatar-btn { width: 80px; height: 80px; font-size: 46px; }
  .who-head { flex-direction: column; }
  .who-head .speech::before { display: none; }
}
@media (max-height: 720px) {
  .res-clu .clu { width: 76px; height: 88px; }
  .res-card h2 { font-size: 28px; }
  .res-stars { font-size: 50px; }
  .res-sticker .stk { width: 58px; height: 58px; line-height: 58px; font-size: 38px; }
  .res-btns .btn { padding: 10px 20px; font-size: 20px; }
  .prompt .clu.mini { width: 48px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   v2: points, levels, stages, account
   ========================================================== */
.hub-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lvl-chip { --lc: var(--teal); display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 14px 6px 6px; box-shadow: 0 8px 18px rgba(29, 43, 83, .14); font-size: 16px; cursor: pointer; }
.lvl-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--lc) 22%, #fff); box-shadow: inset 0 0 0 3px var(--lc); font-size: 19px; }
.lvl-txt { white-space: nowrap; color: var(--ink-soft); }
.lvl-txt b { color: var(--ink); }
.lvl-chip.big { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 3px; padding: 6px 18px 8px 6px; border-radius: 26px; }
.lvl-chip.big .lvl-ico { grid-row: span 2; width: 46px; height: 46px; font-size: 26px; }
.lvl-chip.big .lvl-txt { font-size: 18px; }
.lvl-bar { display: block; height: 10px; border-radius: 5px; background: #EEF1F8; overflow: hidden; min-width: 130px; }
.lvl-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--lc), color-mix(in srgb, var(--lc) 60%, #fff)); transition: width 1.2s cubic-bezier(.2, .9, .3, 1); }
.lvl-pts { display: none; }
.lvl-chip.big:hover .lvl-pts { display: block; position: absolute; }
.profile-card .lvl-chip { box-shadow: none; background: #F4F6FC; font-size: 14px; padding: 3px 10px 3px 3px; }
.profile-card .lvl-ico { width: 26px; height: 26px; font-size: 15px; }
.streak b { color: #FF6B00; }
.tile-stage { display: flex; align-items: center; gap: 4px; position: relative; z-index: 1; margin-top: 2px; }
.tile-stage i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.tile-stage i.open { background: rgba(255, 255, 255, .7); }
.tile-stage i.won { background: #FFE45C; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.tile-stage em { font-style: normal; font-size: 14px; font-weight: 600; margin-left: 6px; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.stage-pill { font-size: .62em; background: rgba(255, 255, 255, .28); padding: 2px 10px; border-radius: 999px; margin-left: 4px; }

/* stage picker */
.stage-map { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 20px 4%; }
.stage-path { position: absolute; inset: 12% 4%; width: 92%; height: 76%; }
.stage-path path { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 14; stroke-dasharray: 2 26; stroke-linecap: round; }
.stone { position: relative; justify-self: center; width: clamp(96px, 13vw, 150px); aspect-ratio: 1; border-radius: 50%; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 35% 30%, #fff, #E9EEFB); box-shadow: inset 0 -10px 0 #CBD5EE, 0 14px 24px rgba(29, 43, 83, .18); transition: transform .2s; }
.stone:nth-child(2n+1) { align-self: end; margin-bottom: 8%; }
.stone:nth-child(2n) { align-self: start; margin-top: 8%; }
.stone.open { background: radial-gradient(circle at 35% 30%, #FFF6C9, var(--c1)); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .18), 0 14px 24px rgba(29, 43, 83, .22); color: #fff; }
.stone.open:hover { transform: scale(1.08) rotate(-3deg); }
.stone.locked { opacity: .65; filter: grayscale(.4); }
.stone.current { animation: pulse 1.4s ease-in-out infinite; box-shadow: 0 0 0 6px #fff, 0 0 0 12px rgba(255, 210, 63, .7), 0 14px 24px rgba(29, 43, 83, .22); }
.stone-n { font-size: clamp(40px, 5.5vw, 60px); font-weight: 700; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.stone.locked .stone-n { font-size: clamp(30px, 4vw, 42px); text-shadow: none; }
.stone-stars { font-size: clamp(16px, 2vw, 22px); color: #FFE45C; letter-spacing: 1px; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.stone-stars i { font-style: normal; color: rgba(255, 255, 255, .45); }
.stone-go { position: absolute; bottom: -18px; background: var(--green); color: #fff; font-size: 17px; font-weight: 700; padding: 3px 14px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }

/* results: points & level */
.res-points { font-size: 22px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.pts-count { font-size: 34px; color: #FF8C1A; }
.pts-break { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 500; }
.pts-break span { background: #FFF4E5; color: #B25E00; border-radius: 999px; padding: 3px 10px; }
.res-level { --lc: var(--teal); display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; width: min(340px, 100%); }
.res-level .lvl-bar { flex: 1; height: 14px; border-radius: 7px; }
.lvl-lbl { font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.res-unlock { margin: 6px 0; background: #FFF1D6; color: #C25E00; font-weight: 700; font-size: 20px; border-radius: 999px; padding: 6px 18px; }

/* level-up */
.levelup { z-index: 65; }
.lu-card { --lc: var(--purple); position: relative; overflow: hidden; padding: 20px 50px 30px; display: flex; flex-direction: column; align-items: center; }
.lu-rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--lc) 18%, transparent) 0 12deg, transparent 12deg 24deg); animation: spin 14s linear infinite; z-index: 0; }
.lu-card > *:not(.lu-rays) { position: relative; z-index: 1; }
.lu-clu .clu { width: 120px; height: 138px; }
.lu-badge { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 60px; background: #fff; box-shadow: 0 0 0 8px var(--lc), 0 0 40px 10px color-mix(in srgb, var(--lc) 55%, transparent); margin-top: -10px; animation: stickerIn 1s cubic-bezier(.2, 1.6, .4, 1) both; }
.lu-card h2 { font-size: 46px; margin: 14px 0 0; color: var(--lc); filter: brightness(.85); }
.lu-title { font-size: 26px; margin: 4px 0 10px; }
.lu-bonus { font-size: 20px; }
.lu-bonus span { font-size: 36px; vertical-align: middle; }

/* counting: subtraction */
.critter.leaving { opacity: .35; filter: grayscale(.7); transform: translateY(-8px) rotate(-10deg); }

/* grown-ups v2 */
.pz-side { display: flex; flex-direction: column; gap: 20px; }
.pz-grid { align-items: start; }
.pz-kids { grid-row: auto; }
.pz-level { margin: 14px 0 4px; }
.pz-level .lvl-chip { box-shadow: none; background: #F4F6FC; }
.pz-level .lvl-pts { display: block; font-size: 13px; color: var(--ink-soft); grid-column: 2; }
.pz-stats { grid-template-columns: repeat(3, 1fr); }
.pz-meter.free i { background: linear-gradient(90deg, #C9B6FF, #9B5DE5); }
.pz-row select { max-width: 60%; }
.pz-account form { display: flex; flex-direction: column; gap: 10px; }
.pz-account input[type=email], .pz-account input[type=password] { font: 500 17px var(--font); padding: 10px 14px; border-radius: 14px; border: 2px solid #DCE3F5; user-select: text; -webkit-user-select: text; }
.pz-account input:focus { outline: none; border-color: var(--blue); }
.pz-account .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.35; }
.pz-account .consent input { margin-top: 3px; width: 18px; height: 18px; }
.pz-account .acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pz-account .err { color: #D62839; font-size: 15px; min-height: 18px; margin: 0; }
.plan-badge { display: inline-block; background: linear-gradient(135deg, #FFD23F, #FF8C1A); color: #fff; font-weight: 700; border-radius: 999px; padding: 2px 12px; font-size: 14px; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.plan-badge.free { background: #DCE3F5; color: var(--ink); text-shadow: none; }
.sync-state { font-size: 14px; color: var(--ink-soft); }
.cloud-voice-slot:not(:empty) { margin-top: 12px; padding-top: 10px; border-top: 2px dashed #E6EBF6; }
@media (max-width: 700px) {
  .stage-map { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
  .stone:nth-child(n) { align-self: center; margin: 0; }
  .lvl-chip.big .lvl-bar { min-width: 80px; }
}

/* keyboard fits short screens */
.stage-keys { gap: 8px; }
.key-target-wrap { min-height: 0; }
.kb-key { height: clamp(34px, 6.4vh, 60px); }
@media (max-height: 860px) {
  .sprout { font-size: clamp(26px, 4vh, 40px); }
  .key-target { padding: 6px 28px; border-radius: 26px; }
  .kt-emoji { font-size: clamp(40px, 6vh, 64px); line-height: 1.1; }
  .kt-word span { font-size: clamp(42px, 7vh, 72px); }
  .kt-char { font-size: clamp(70px, 12vh, 130px); }
  .kt-space { padding: 10px; font-size: clamp(28px, 5vh, 48px); }
  .kb { padding: 8px; gap: 6px; }
}

/* ==========================================================
   Character Club: The Countipedes & The Hatchabet
   ========================================================== */
.zone-club { background: linear-gradient(135deg, rgba(255, 240, 230, .75), rgba(230, 255, 245, .75)); }
.zone-club .zone-title { color: #E8573A; }
.ico-wiggly { display: inline-flex; align-items: center; gap: 0; vertical-align: middle; }
.ico-wiggly b { order: -1; width: 34px; height: 34px; border-radius: 50%; background: #FF7A59; box-shadow: inset 0 0 0 3px #D9502F; position: relative; margin-right: -6px; z-index: 2; }
.ico-wiggly b::before, .ico-wiggly b::after { content: ''; position: absolute; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: inset 2px 1px 0 2px #1D2B53; }
.ico-wiggly b::before { left: 6px; } .ico-wiggly b::after { left: 17px; }
.ico-wiggly i { width: 26px; height: 26px; border-radius: 50%; background: #FF7A59; box-shadow: inset 0 0 0 3px #D9502F; margin-left: -5px; animation: wigBob 1s ease-in-out infinite; }
.ico-wiggly i:nth-child(2) { animation-delay: .12s; background: #FF7A59; }
.ico-wiggly i:nth-child(3) { animation-delay: .24s; background: #35C79A; box-shadow: inset 0 0 0 3px #16946F; }
.gicon .ico-wiggly { transform: scale(.6); margin: -10px -14px; }
.pz-sk-name .ico-wiggly { transform: scale(.45); margin: -12px -20px; }

.wig-scene { display: flex; justify-content: center; max-width: 100%; }
.wiggly { max-width: 100%; height: auto; overflow: visible; }
.wiggly .wseg { animation: wigBob 1.1s ease-in-out infinite; transform-box: fill-box; }
.wiggly .wseg.tap { cursor: pointer; }
.wiggly .wseg.tap:hover circle:nth-of-type(1) { filter: brightness(1.08); }
.wiggly .wnum { font: 700 15px var(--font); fill: #fff; text-anchor: middle; opacity: 0; pointer-events: none; }
.wiggly .wseg.counted .wnum { opacity: 1; }
.wiggly .wseg.counted circle:nth-of-type(1) { stroke: #FFD23F; stroke-width: 5; }
.wiggly .wseg.away { opacity: .35; animation: crawlAway 1.4s ease-in-out infinite alternate; }
.wiggly .wspot { fill: rgba(255, 255, 255, .55); stroke: #9AA6C7; stroke-width: 2.5; stroke-dasharray: 5 5; }
.wiggly .whead { animation: wigHead 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.wiggly .wlabel text, .wiggly .whead text { font-family: var(--font); font-weight: 700; text-anchor: middle; fill: #1D2B53; }
.wig-happy .wiggly .wseg { animation: wigJump .5s ease-in-out infinite; }
.wig-sum, .wig-teen { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.wig-teen { gap: 4px; }
.wig-view { display: flex; justify-content: center; min-height: 120px; align-items: center; }
.wig-ctrls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.wig-target { font-size: 26px; font-weight: 600; background: #fff; border-radius: 999px; padding: 8px 22px; box-shadow: 0 6px 14px rgba(29, 43, 83, .12); }
.wig-target b { color: #E8573A; font-size: 34px; }
.choices.wig-choices { flex-direction: column; align-items: center; }
.choices.wig-choices .choice { min-height: 0; padding: 10px 24px; }
.choices.wig-choices .wiggly { width: auto !important; max-width: min(78vw, 640px); }
@keyframes wigBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes wigHead { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes wigJump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes crawlAway { from { transform: translateX(0); } to { transform: translateX(14px); } }

/* Hatchabet */
.chick { width: 110px; height: 124px; overflow: visible; }
.chick .cletter { font: 700 30px var(--font); text-anchor: middle; }
.chick .cwing { transform-box: fill-box; transform-origin: 50% 20%; animation: flapWing 1.6s ease-in-out infinite; }
.chick .cwing.r { animation-delay: .2s; }
.chick .ceyes { transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }
.chick.big { width: 150px; height: 168px; animation: bob 2.2s ease-in-out infinite; }
.chick.sm { width: 64px; height: 72px; }
.chick.baby { width: 86px; height: 96px; }
.chick-hero { display: flex; justify-content: center; }
.chick-hero.munch .chick { animation: munch .25s ease-in-out 4; }
.nest-sign { background: linear-gradient(160deg, #FFC23F, #FF8C1A); color: #fff; font-size: clamp(56px, 8vw, 84px); font-weight: 700; padding: 0 30px; border-radius: 26px; line-height: 1.2; text-shadow: 0 4px 0 rgba(0, 0, 0, .18); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .15), 0 10px 20px rgba(255, 140, 26, .3); }
.choices.eggs .choice { background: radial-gradient(ellipse at 50% 85%, #E9D3A8 0 32%, transparent 33%), #fff; overflow: visible; }
.egg-wrap { position: relative; display: block; width: clamp(90px, 11vw, 120px); aspect-ratio: 100 / 124; }
.egg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: eggWobble 2.4s ease-in-out infinite; transform-origin: 50% 95%; }
.choice:nth-child(2) .egg { animation-delay: -.6s; } .choice:nth-child(3) .egg { animation-delay: -1.2s; } .choice:nth-child(4) .egg { animation-delay: -1.8s; }
.egg-letter { font: 700 36px var(--font); text-anchor: middle; fill: #8A6A2E; }
.egg-top { transition: transform .6s cubic-bezier(.3, 1.6, .5, 1), opacity .6s .5s; transform-box: fill-box; transform-origin: 0% 100%; }
.egg-chick { position: absolute; left: 50%; bottom: 18%; width: 92%; transform: translate(-50%, 30%) scale(.4); opacity: 0; transition: transform .6s .25s cubic-bezier(.2, 1.6, .4, 1), opacity .3s .25s; z-index: 0; }
.egg-chick .chick { width: 100%; height: auto; }
.choice.yes .egg { animation: none; }
.choice.yes .egg-top { transform: translate(-18px, -40px) rotate(-35deg); opacity: 0; }
.choice.yes .egg-chick { opacity: 1; transform: translate(-50%, -20%) scale(1); }
.choice.yes .egg-wrap { z-index: 3; }
.hatch-word { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 8px 24px; font-size: 26px; font-weight: 600; box-shadow: 0 8px 18px rgba(29, 43, 83, .14); }
.hatch-word span { font-size: 40px; }
.spell-pic { font-size: clamp(70px, 10vw, 104px); line-height: 1; animation: float 3s ease-in-out infinite; }
.branch { position: relative; display: flex; gap: 6px; padding: 0 30px 16px; justify-content: center; }
.branch::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 14px; border-radius: 7px; background: linear-gradient(#A47148, #7A4E2D); z-index: -1; box-shadow: 0 4px 8px rgba(0, 0, 0, .15); }
.slot { width: 72px; height: 80px; display: grid; place-items: center; }
.slot.empty { border: 4px dashed rgba(122, 78, 45, .45); border-radius: 22px; font-size: 34px; font-weight: 700; color: rgba(122, 78, 45, .55); background: rgba(255, 255, 255, .5); }
.slot.empty i { font-style: normal; opacity: .55; }
.slot.next { border-color: #FF8C1A; background: rgba(255, 210, 63, .25); animation: pulse 1s ease-in-out infinite; }
.branch.spelled .slot .chick { animation: wigJump .45s ease-in-out infinite; }
.branch.fly .slot .chick { animation: flyAway 1s ease-in forwards; }
.branch.fly .slot:nth-child(2) .chick { animation-delay: .1s; } .branch.fly .slot:nth-child(3) .chick { animation-delay: .2s; } .branch.fly .slot:nth-child(4) .chick { animation-delay: .3s; } .branch.fly .slot:nth-child(5) .chick { animation-delay: .4s; }
.chick-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chick-btn { min-width: 0 !important; min-height: 0 !important; padding: 6px 10px !important; }
.chick-btn.used { opacity: .15; transform: scale(.8); pointer-events: none; }
.choices.chicks .choice { padding: 8px 12px; }
@keyframes flapWing { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(14deg); } }
@keyframes munch { 50% { transform: scale(1.12, .9); } }
@keyframes eggWobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 82% { transform: rotate(6deg); } 88% { transform: rotate(-3deg); } }
@keyframes flyAway { to { transform: translate(60px, -400px) rotate(20deg); opacity: 0; } }
@media (max-height: 760px) {
  .chick.big { width: 112px; height: 126px; }
  .chick { width: 90px; height: 101px; }
  .spell-pic { font-size: 64px; }
}
.wig-scene .wiggly { max-height: 34vh; }
.wig-sum .wiggly, .wig-teen .wiggly { max-width: 46%; }
.wig-teen .wiggly:first-child { max-width: 62%; }
.wig-teen .wiggly:last-child { max-width: 36%; }
.choices.wig-choices .wiggly { max-height: 15vh; }
.chick.baby { width: 104px; height: 116px; }
