/* ==========================================================================
   Little Explorers – shared game shell + the six learning games
   ========================================================================== */
.intro-icon { font-size: 5.5rem; line-height: 1; animation: bob 2.4s ease-in-out infinite; }

.lg-game {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}
.prompt-row { display: flex; align-items: center; gap: 0.6rem; width: 100%; }
.prompt-row .big-icon { width: 3rem; height: 3rem; font-size: 1.5rem; }
.prompt {
  flex: 1;
  margin: 0;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 0.55rem 0.9rem 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 4.2vw, 1.6rem);
  line-height: 1.25;
  box-shadow: 0 4px 0 rgba(43, 29, 92, 0.2);
}
.prompt .num {
  display: inline-block;
  min-width: 1.4em;
  text-align: center;
  background: var(--purple);
  color: #fff;
  border-radius: 10px;
  padding: 0 0.25em;
}
.prompt .num.q { background: var(--yellow); color: var(--ink); }
.board {
  width: 100%;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}
.lg-game .choices { max-width: 520px; }

/* Draggable items */
.item {
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s;
  position: relative;
  z-index: 1;
}
.item.dragging { cursor: grabbing; z-index: 50; transition: none; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.25)); }
.item.locked { cursor: default; }
.drop-zone { transition: box-shadow 0.2s; }

/* ---------------- Hungry Monkey ---------------- */
.monkey-scene { display: flex; align-items: flex-end; justify-content: center; gap: 0.8rem; width: 100%; }
.monkey-wrap { text-align: center; }
.speech {
  position: relative;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.speech::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  border: 10px solid transparent;
  border-top-color: var(--ink);
  transform: translateX(-50%);
}
.speech b { color: var(--coral-dark); font-size: 1.5rem; }
/* The monkey (SVG): moods + animations */
.monkey-wrap { position: relative; }
.monkey-svg { display: block; width: clamp(150px, 44vw, 250px); height: auto; margin: 0 auto; overflow: visible; }
.monkey-svg * { transform-box: view-box; }
.m-eyes-happy, .m-mouth-chomp, .m-mouth-happy { display: none; }
.monkey-svg.m-chomp .m-mouth-hungry { display: none; }
.monkey-svg.m-chomp .m-mouth-chomp { display: inline; }
.monkey-svg.m-happy .m-mouth-hungry, .monkey-svg.m-happy .m-eyes-open { display: none; }
.monkey-svg.m-happy .m-mouth-happy, .monkey-svg.m-happy .m-eyes-happy { display: inline; }

/* idle: breathe, wag tail, blink, rub tummy */
.m-jumper { transform-origin: 110px 258px; animation: m-breathe 2.4s ease-in-out infinite; }
.m-tail { transform-origin: 150px 205px; animation: m-wag 1.6s ease-in-out infinite; }
.m-eyes-open { transform-origin: 110px 82px; animation: m-blink 4s infinite; }
.m-arm-left { transform-origin: 62px 156px; }
.m-arm-right { transform-origin: 158px 156px; animation: m-rub 1.8s ease-in-out infinite; }
@keyframes m-breathe { 50% { transform: scale(1.02, 0.985); } }
@keyframes m-wag { 50% { transform: rotate(-14deg); } }
@keyframes m-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes m-rub { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(22deg); } }

/* chomp: a happy little hop for each banana */
.monkey-svg.hop .m-jumper { animation: m-hop 0.38s ease-out; }
@keyframes m-hop { 40% { transform: translateY(-14px) scale(0.97, 1.04); } 100% { transform: none; } }

/* happy: arms up, jump 4 times with squash & stretch, then keep dancing */
.monkey-svg.m-happy .m-arm-left { animation: m-wave-left 0.5s ease-in-out infinite alternate; }
.monkey-svg.m-happy .m-arm-right { animation: m-wave-right 0.5s ease-in-out infinite alternate; }
@keyframes m-wave-left { from { transform: rotate(118deg); } to { transform: rotate(145deg); } }
@keyframes m-wave-right { from { transform: rotate(-118deg); } to { transform: rotate(-145deg); } }
.monkey-svg.celebrate .m-jumper { animation: m-jump 0.8s cubic-bezier(.3,.7,.4,1) 4, m-dance 1s ease-in-out 3.2s infinite; }
.monkey-svg.celebrate .m-shadow { transform-origin: 110px 258px; animation: m-shadow 0.8s cubic-bezier(.3,.7,.4,1) 4; }
.monkey-svg.celebrate .m-tail { animation-duration: 0.4s; }
@keyframes m-jump {
  0% { transform: translateY(0) scale(1.1, 0.88); }
  20% { transform: translateY(0) scale(0.94, 1.08); }
  50% { transform: translateY(-70px) scale(1, 1) rotate(-4deg); }
  80% { transform: translateY(0) scale(1.12, 0.86); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes m-shadow { 50% { transform: scale(0.55); opacity: 0.08; } }
@keyframes m-dance {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  25% { transform: rotate(0deg) translateY(-10px); }
  50% { transform: rotate(6deg) translateY(0); }
  75% { transform: rotate(0deg) translateY(-10px); }
}

/* floating hearts and stars */
.joy {
  position: absolute;
  bottom: 30%;
  pointer-events: none;
  animation: joy-float 2.4s ease-out forwards;
  opacity: 0;
}
@keyframes joy-float {
  0% { transform: translateY(0) scale(0.4); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-190px) scale(1.2) rotate(20deg); opacity: 0; }
}
.basket {
  width: min(260px, 42vw);
  min-height: 130px;
  margin-bottom: 0.8rem;
  background: repeating-linear-gradient(45deg, #e6a65d 0 12px, #d48f43 12px 24px);
  border: 4px solid var(--ink);
  border-radius: 12px 12px 40px 40px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.basket-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1rem; min-height: 60px; }
.basket-items .item { font-size: 2.2rem; }
.basket-label {
  align-self: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}
.pile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.65);
  border: 3px dashed var(--ink-soft);
  border-radius: 24px;
  padding: 0.8rem 1rem;
  min-height: 90px;
  width: min(100%, 560px);
}

/* ---------------- School Bus ---------------- */
.bus-scene { width: min(100%, 560px); }
.bus {
  position: relative;
  background: #ffcf3f;
  border: 4px solid var(--ink);
  border-radius: 26px 46px 16px 16px;
  padding: 2.3rem 4.2rem 2.6rem 1rem;
}
.bus.drive { animation: rumble 0.25s linear 8; }
@keyframes rumble { 50% { transform: translateY(-3px); } }
.bus-sign {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--ink);
  font-size: 1rem;
}
.bus-windows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; }
.seat {
  aspect-ratio: 1;
  background: #bfe9ff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.seat .item { font-size: clamp(1.8rem, 8vw, 2.6rem); }
.bus-door {
  position: absolute;
  right: 0.9rem;
  top: 2.2rem;
  width: 2.6rem;
  bottom: 1.6rem;
  background: #bfe9ff;
  border: 3px solid var(--ink);
  border-radius: 8px;
}
.bus-light { position: absolute; right: -6px; bottom: 1.6rem; width: 14px; height: 22px; background: #fff3b0; border: 3px solid var(--ink); border-radius: 6px; }
.wheel {
  position: absolute;
  bottom: -26px;
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, #ccc 0 30%, var(--ink) 31%);
  border-radius: 50%;
}
.wheel.w1 { left: 14%; }
.wheel.w2 { right: 16%; }
.road { height: 26px; background: #7a7a8a; border-radius: 0 0 14px 14px; margin-top: 4px; }
.bus-stop { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; }
.stop-sign { font-size: 3rem; }
.waiting {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 80px;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.65);
  border: 3px dashed var(--ink-soft);
  border-radius: 20px;
  padding: 0.5rem 0.8rem;
  align-items: center;
}

/* ---------------- Number Train ---------------- */
.track { width: 100%; overflow: hidden; padding-top: 3.6rem; }
.train { display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-height: 130px; }
.train.choo { animation: chug 2.4s ease-in 0.2s forwards; }
@keyframes chug { 15% { transform: translateX(-10px); } 100% { transform: translateX(120vw); } }
.engine { width: clamp(96px, 25vw, 160px); flex: 0 0 auto; }
.engine .puff { animation: puff 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes puff { 50% { transform: translateY(-4px) scale(1.15); } }
.cars { display: flex; flex-direction: row-reverse; gap: 4px; align-items: flex-end; }
.rails { height: 10px; background: repeating-linear-gradient(90deg, #7a4b2a 0 8px, transparent 8px 22px), linear-gradient(#555, #555) center / 100% 4px no-repeat; margin-top: 2px; }
.carriage {
  width: clamp(44px, 12.5vw, 84px);
  height: clamp(64px, 18vw, 110px);
  background: var(--car);
  border: 3px solid var(--ink);
  border-radius: 10px 10px 6px 6px;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  position: relative;
  margin-bottom: 10px;
  font-size: 1rem;
}
.car-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.6rem); color: #fff; text-shadow: 0 2px 0 var(--ink); line-height: 1.2; }
.car-dots { font-size: clamp(0.55rem, 2vw, 0.85rem); line-height: 1; padding: 0 2px; text-align: center; word-break: break-all; }
.cw { position: absolute; bottom: -12px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #ccc 0 30%, var(--ink) 31%); }
.cw.a { left: 6px; }
.cw.b { right: 6px; }
.yard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 0.6rem;
  background: rgba(255, 255, 255, 0.6);
  border: 3px dashed var(--ink-soft);
  border-radius: 24px;
  padding: 0.9rem;
  width: min(100%, 600px);
  min-height: 110px;
}

/* ---------------- Match the Number (modern) ---------------- */
.mx-world {
  --g1: #1b1046; --g2: #4c2bb0; --g3: #8b5cf6;
  position: relative;
  width: min(100%, 860px);
  border-radius: 34px;
  padding: clamp(1rem, 3vw, 1.8rem);
  background: linear-gradient(150deg, var(--g1), var(--g2) 55%, var(--g3));
  box-shadow: 0 24px 50px -18px rgba(43, 29, 92, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: clamp(0.9rem, 3vw, 1.4rem);
}
.mx-ocean { --g1: #023e6b; --g2: #0a7cc2; --g3: #38c6f4; }
.mx-dino { --g1: #14532d; --g2: #2f8f3a; --g3: #a3d94a; }
.mx-candy { --g1: #9d174d; --g2: #e0559b; --g3: #f9a8d4; }
.mx-magic { --g1: #4c1d95; --g2: #a855f7; --g3: #f0abfc; }
.mx-race { --g1: #7c2d12; --g2: #ea580c; --g3: #fbbf24; }
.mx-jungle { --g1: #064e3b; --g2: #0f9b6c; --g3: #fde047; }

/* soft glowing background shapes */
.mx-blob { position: absolute; border-radius: 50%; filter: blur(28px); opacity: 0.55; z-index: -1; animation: mx-drift 9s ease-in-out infinite alternate; }
.mx-blob.b1 { width: 220px; height: 220px; background: var(--g3); top: -60px; right: -40px; }
.mx-blob.b2 { width: 180px; height: 180px; background: #ffffff; opacity: 0.18; bottom: -60px; left: -40px; animation-delay: -3s; }
.mx-blob.b3 { width: 140px; height: 140px; background: var(--g2); top: 40%; left: 45%; animation-delay: -6s; }
@keyframes mx-drift { to { transform: translate(30px, 20px) scale(1.15); } }

.mx-head { display: grid; justify-items: center; gap: 0.6rem; }
.mx-chip {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* the glowing number orb */
.mx-orb {
  position: relative;
  width: clamp(130px, 34vw, 180px);
  aspect-ratio: 1;
  border-radius: 38%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 38%),
    linear-gradient(160deg, #fff6c7, #ffd84d 45%, #ff9f1c);
  box-shadow:
    0 18px 30px -10px rgba(0, 0, 0, 0.45),
    0 0 0 6px rgba(255, 255, 255, 0.25),
    inset 0 -10px 18px rgba(214, 120, 0, 0.45);
  animation: mx-float 3s ease-in-out infinite;
}
.mx-orb:active { transform: scale(0.95); }
.mx-orb.glow { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.55), 0 0 60px 18px rgba(255, 230, 120, 0.85); }
.mx-digit {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.4rem, 15vw, 6.4rem);
  line-height: 0.9;
  padding-top: 0.12em;
  background: linear-gradient(180deg, #6d28d9, #2b1d5c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(255, 255, 255, 0.7));
}
.mx-word { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #7a3d00; text-transform: uppercase; letter-spacing: 0.12em; }
@keyframes mx-float { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* frosted glass answer cards */
.mx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 2vw, 1rem); }
.mx-card {
  position: relative;
  border-radius: 26px;
  padding: clamp(0.7rem, 2.2vw, 1.1rem);
  min-height: clamp(120px, 26vw, 190px);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s;
  animation: mx-in 0.5s cubic-bezier(.2,.9,.3,1.3) both;
  animation-delay: calc(var(--d) * 0.12s);
}
.mx-card:hover { transform: translateY(-4px); }
.mx-card:active { transform: scale(0.97); }
@keyframes mx-in { from { opacity: 0; transform: translateY(24px) scale(0.9); } }
.mx-card.right {
  background: linear-gradient(160deg, #dcfce7, #4ade80);
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 0 40px 8px rgba(134, 239, 172, 0.75);
  transform: translateY(-6px) scale(1.04);
}
.mx-card.wrong { animation: shake 0.45s ease; opacity: 0.35; filter: grayscale(0.6); }
.mx-card.dim { opacity: 0.35; }
.mx-check {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #22c55e;
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.5);
}
.mx-card.right .mx-check { transform: scale(1); }

/* item patterns */
.pattern { display: grid; place-items: center; }
.pattern.dice { grid-template: repeat(3, 1fr) / repeat(3, 1fr); width: min(100%, 170px); aspect-ratio: 1; }
.pattern.frame { grid-template: repeat(2, 1fr) / repeat(5, 1fr); width: 100%; gap: 0.2rem; }
.pattern .it {
  font-size: clamp(1.5rem, 6.5vw, 2.6rem);
  line-height: 1;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
  animation: mx-pop 0.4s cubic-bezier(.2,.9,.3,1.5) both;
  animation-delay: calc(var(--d) * 0.12s + var(--i) * 0.05s + 0.2s);
}
.pattern.frame .it { font-size: clamp(1.2rem, 4.6vw, 2.1rem); }
.pattern .slot { width: 60%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.45); }
.pattern .it.counted { animation: mx-count 0.5s cubic-bezier(.2,.9,.3,1.5) both; }
@keyframes mx-pop { from { transform: scale(0); } }
@keyframes mx-count { 0% { transform: scale(1); } 45% { transform: scale(1.5) translateY(-6px); } 100% { transform: scale(1.15); } }

/* phones: cards stacked as wide rows so the ten-frames stay big */
@media (max-width: 560px) {
  .mx-cards { grid-template-columns: 1fr; }
  .mx-card { min-height: 112px; padding: 0.5rem 0.9rem; }
  .pattern.dice { width: 128px; }
  .pattern.dice .it { font-size: 2.1rem; }
  .pattern.frame { width: min(100%, 300px); }
  .pattern.frame .it { font-size: 1.8rem; }
  .mx-orb { width: 120px; }
  .mx-digit { font-size: 4rem; }
}

/* ---------------- Apple Tree ---------------- */
.orchard { position: relative; width: min(100%, 520px); display: grid; justify-items: center; }
.tree { position: relative; width: min(100%, 360px); aspect-ratio: 1 / 0.95; }
.tree-top {
  position: absolute;
  inset: 0 0 26% 0;
  background:
    radial-gradient(circle at 30% 35%, #5ed36a 0 34%, transparent 35%),
    radial-gradient(circle at 70% 35%, #4fc45c 0 34%, transparent 35%),
    radial-gradient(circle at 50% 22%, #63d870 0 36%, transparent 37%),
    radial-gradient(circle at 50% 55%, #3fb34d 0 40%, transparent 41%);
  filter: drop-shadow(0 4px 0 rgba(43, 29, 92, 0.35));
}
.tree-trunk { position: absolute; left: 43%; width: 14%; top: 60%; bottom: 0; background: #8b5a2b; border: 4px solid var(--ink); border-radius: 10px 10px 0 0; }
.apple {
  position: absolute;
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transform: translate(-50%, 0);
  animation: sway 3s ease-in-out infinite;
}
.apple:disabled { cursor: default; }
@keyframes sway { 50% { transform: translate(-50%, 0) rotate(8deg); } }
.apple.falling { position: static; transform: none; animation: none; font-size: 2rem; }
.apple-basket {
  margin-top: -0.6rem;
  width: min(240px, 66vw);
  min-height: 92px;
  background: repeating-linear-gradient(45deg, #e6a65d 0 12px, #d48f43 12px 24px);
  border: 4px solid var(--ink);
  border-radius: 12px 12px 36px 36px;
  display: grid;
  justify-items: center;
  padding: 0.3rem;
  z-index: 1;
}
.grass { width: 100%; height: 18px; background: #7ccf5c; border-radius: 10px; margin-top: -8px; }

/* ---------------- Shape Detective ---------------- */
.detective { width: min(100%, 720px); display: grid; gap: 0.6rem; justify-items: center; }
.find-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 1rem 0.3rem 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
}
.find-icon svg { width: 52px; height: 52px; display: block; }
.scene-box { width: 100%; background: #fff; border: 4px solid var(--ink); border-radius: 24px; padding: 0.4rem; box-shadow: 0 7px 0 rgba(43, 29, 92, 0.2); }
.shape-scene { display: block; width: 100%; height: auto; touch-action: manipulation; }
.shape-scene [data-shape] { cursor: pointer; }
.shape-scene .spotted { stroke: #ff2d75; stroke-width: 8; animation: spot 0.6s ease; transform-box: fill-box; transform-origin: center; }
@keyframes spot { 50% { transform: scale(1.12); } }

/* Tablets in landscape: give the board more room */
@media (min-width: 900px) and (orientation: landscape) {
  .lg-game { max-width: 1000px; }
}

/* Bigger boards on tablets */
@media (min-width: 760px) {
  .item { font-size: 4rem; }
  .monkey-svg { width: 300px; }
  .basket { width: 320px; min-height: 160px; }
  .bus-scene { width: min(100%, 680px); }
  .seat .item { font-size: 3.2rem; }
  .tree { width: 440px; }
  .apple { font-size: 3.6rem; }
  .engine { width: 200px; }
  .carriage { width: 92px; height: 120px; }
  .car-num { font-size: 2.8rem; }
}

/* "POO POO!" bubble + steam clouds */
.train { position: relative; }
.toot-fx { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 5; }
.toot-bubble {
  position: absolute;
  bottom: 10px;
  right: 6px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.8rem 0;
  box-shadow: 0 5px 0 rgba(43, 29, 92, 0.25);
  transform-origin: 90% 100%;
  animation: toot-pop 1.5s ease-out forwards;
}
@keyframes toot-pop {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  12% { transform: scale(1.2) rotate(4deg); opacity: 1; }
  20% { transform: scale(0.95) rotate(-2deg); }
  32% { transform: scale(1.1) rotate(3deg); }
  45%, 85% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: translateY(-8px) scale(0.9); opacity: 0; }
}
.steam {
  position: absolute;
  left: -14px;
  top: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(43, 29, 92, 0.25);
  opacity: 0;
  animation: steam-up 1.4s ease-out forwards;
  animation-delay: calc(var(--s) * 0.14s);
}
@keyframes steam-up {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0.95; }
  100% { transform: translate(calc(-30px - var(--s) * 6px), -80px) scale(2.2); opacity: 0; }
}
