/* Pipo Says: English for 4 to 7 year olds. Big targets, everything spoken,
   lots of movement. Each world sets --sky1, --sky2, --g1, --g2 and --wc. */
:root {
  --ink: #2a1f5c;
  --font: "Baloo 2", ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  --sky1: #7fd6ff;
  --sky2: #d9f6ff;
  --g1: #9be564;
  --g2: #62c94a;
  --wc: #ff8a1f;
  --pipo: #ff8a3d;
  --pipo2: #ffc38a;
  --gold: #ffc21a;
  --emo: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
button:focus {
  outline: none;
}
button:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
}
.emo {
  font-family: var(--emo);
  line-height: 1;
  font-style: normal;
}

/* ---------- Scene behind every screen ---------- */
#scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, var(--sky1), var(--sky2) 72%);
  transition: background 0.6s;
}
#scene .sun {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 210px;
  height: 210px;
}
#scene .sun .rays {
  position: absolute;
  inset: 0;
  animation: spin 40s linear infinite;
}
#scene .sun .face {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  animation: bob 4s ease-in-out infinite;
}
.cloud {
  position: absolute;
  left: 0;
  width: 150px;
  opacity: 0.95;
  animation: drift linear infinite;
  will-change: transform;
}
.cloud svg {
  display: block;
  width: 100%;
}
#scene .hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  min-height: 110px;
}
#scene .hills svg {
  width: 100%;
  height: 100%;
  display: block;
}
#scene .hills .h1 {
  fill: var(--g1);
  transition: fill 0.6s;
}
#scene .hills .h2 {
  fill: var(--g2);
  transition: fill 0.6s;
}
#scene .decor {
  position: absolute;
  bottom: 3%;
  font-size: clamp(26px, 6vmin, 46px);
  transform-origin: 50% 100%;
  animation: sway 3.4s ease-in-out infinite;
}
.floaty {
  position: absolute;
  bottom: -90px;
  width: 56px;
  animation: rise linear infinite;
  will-change: transform;
}
.floaty svg {
  display: block;
  width: 100%;
  overflow: visible;
}

/* ---------- Screens ---------- */
.scr {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
  animation: scr-in 0.42s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.top {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 3;
}
.top .grow {
  flex: 1;
  min-width: 0;
}
.rbtn {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 0 rgba(42, 31, 92, 0.18), 0 8px 18px rgba(42, 31, 92, 0.12);
  transition: transform 0.12s;
  position: relative;
}
.rbtn:active {
  transform: translateY(3px) scale(0.94);
}
.rbtn svg {
  width: 30px;
  height: 30px;
}
.rbtn .badge {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: #ff3b6b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 24px;
  border: 2px solid #fff;
}
.screen-title {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 6.4vw, 38px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 3px 0 var(--wc), 0 5px 0 rgba(42, 31, 92, 0.25);
}
.screen-title small {
  display: block;
  font-size: 0.48em;
  color: var(--ink);
  text-shadow: none;
  opacity: 0.75;
  margin-top: 4px;
}

/* ---------- Home ---------- */
.home {
  justify-content: space-between;
}
.home .top {
  justify-content: space-between;
}
.home .top .r {
  display: flex;
  gap: 10px;
}
.title {
  margin: 0;
  text-align: center;
  line-height: 0.92;
  font-size: clamp(54px, 17vw, 112px);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.title .word {
  display: inline-block;
}
.title .ch {
  display: inline-block;
  color: #fff;
  -webkit-text-stroke: 0.06em var(--c);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--c), 0 0.13em 0 rgba(42, 31, 92, 0.22);
  animation: hop 2.8s ease-in-out infinite, drop-in 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 0.11s), calc(var(--i) * 0.07s);
}
.tagline {
  margin: 6px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 3px;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  font-size: clamp(16px, 4.4vw, 22px);
  box-shadow: 0 4px 0 rgba(42, 31, 92, 0.14);
}
.tagline .flag {
  width: 30px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  display: block;
}
.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .pipo-wrap {
  height: min(36vh, 64vw, 300px);
  aspect-ratio: 136 / 148;
  cursor: pointer;
  position: relative;
}
.hero .pipo-wrap .pq-pipo {
  width: 100%;
  height: 100%;
}
.hero .hello {
  position: absolute;
  left: 58%;
  top: 2%;
  padding: 6px 16px 4px;
  border-radius: 22px 22px 22px 6px;
  background: #fff;
  font-weight: 800;
  font-size: clamp(20px, 5.4vw, 30px);
  box-shadow: 0 5px 0 rgba(42, 31, 92, 0.14);
  animation: hello 3.2s ease-in-out infinite;
  white-space: nowrap;
}
.home .menu {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 6px;
}
.bigbtn {
  grid-column: 1 / -1;
  height: 84px;
  border-radius: 28px;
  background: linear-gradient(180deg, #4ee07a, #20b955);
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 0 #158a3d, 0 14px 26px rgba(21, 138, 61, 0.35);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  animation: breathe 1.8s ease-in-out infinite;
  transition: transform 0.1s;
}
.bigbtn svg {
  width: 40px;
  height: 40px;
}
.bigbtn:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #158a3d;
}
.midbtn {
  height: 64px;
  border-radius: 22px;
  background: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 0 rgba(42, 31, 92, 0.18);
  transition: transform 0.1s;
}
.midbtn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(42, 31, 92, 0.18);
}
.midbtn .emo {
  font-size: 28px;
}
.midbtn.reto {
  background: linear-gradient(180deg, #ffd84a, #ffb31a);
  box-shadow: 0 6px 0 #d48a00;
  color: #5a3300;
}

/* ---------- World map ---------- */
.map .worlds {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 760px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
  overflow-y: auto;
  padding: 4px 4px 10px;
}
@media (min-aspect-ratio: 4/3) {
  .map .worlds {
    grid-template-columns: repeat(3, 1fr);
  }
}
.wcard {
  position: relative;
  border-radius: 26px;
  min-height: 130px;
  overflow: hidden;
  background: linear-gradient(170deg, var(--s1), var(--s2));
  box-shadow: 0 7px 0 var(--sh), 0 12px 22px rgba(42, 31, 92, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 8px 10px;
  animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 0.07s);
  transition: transform 0.12s;
}
.wcard:active {
  transform: translateY(4px) scale(0.98);
}
.wcard::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -30%;
  height: 62%;
  border-radius: 50%;
  background: var(--g);
}
.wcard .big {
  position: absolute;
  left: 50%;
  top: 44%;
  font-size: clamp(54px, 15vw, 84px);
  transform: translate(-50%, -50%);
  animation: float 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.4s);
  filter: drop-shadow(0 6px 4px rgba(42, 31, 92, 0.2));
}
.wcard .mini {
  position: absolute;
  font-size: clamp(20px, 5vw, 28px);
  animation: sway 2.6s ease-in-out infinite;
}
.wcard .name {
  position: relative;
  font-size: clamp(22px, 5.8vw, 30px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 5px var(--sh);
  paint-order: stroke fill;
}
.wcard .es {
  position: relative;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.8;
}
.wcard .wstars {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 9px 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 14px;
}
.wcard .done {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 26px;
}

/* ---------- Levels of a world ---------- */
.levels .path {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 520px;
}
.levels .path svg.trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stone {
  position: absolute;
  width: clamp(76px, 22vmin, 118px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff, var(--wc) 75%);
  box-shadow: 0 7px 0 rgba(42, 31, 92, 0.28), inset 0 -6px 0 rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 0.08s);
}
.stone .ic {
  font-size: clamp(34px, 10vmin, 54px);
}
.stone .num {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 33px;
  box-shadow: 0 3px 0 rgba(42, 31, 92, 0.2);
}
.stone .lname {
  position: absolute;
  top: 100%;
  margin-top: 4px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 10px;
  border-radius: 999px;
}
.stone .st {
  position: absolute;
  top: -20px;
  display: flex;
  gap: 1px;
}
.stone .st svg {
  width: 22px;
  height: 22px;
}
.stone .st svg:nth-child(2) {
  transform: translateY(-6px);
}
.stone.locked {
  background: radial-gradient(circle at 36% 30%, #fff, #b9b3cf 75%);
  filter: saturate(0.4);
}
.stone.locked .ic {
  opacity: 0.35;
}
.stone .lock {
  position: absolute;
  font-size: 30px;
  right: -6px;
  bottom: -2px;
}
.stone.next {
  animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) backwards, pulse 1.3s ease-in-out 0.6s infinite;
  animation-delay: calc(var(--i) * 0.08s), 0.6s;
}
.stone.boss {
  background: radial-gradient(circle at 36% 30%, #fff8c4, #ffb31a 75%);
}
.levels .walker {
  position: absolute;
  width: clamp(54px, 15vmin, 80px);
  aspect-ratio: 136 / 148;
  transform: translate(-50%, -100%);
  pointer-events: none;
  transition: left 0.6s, top 0.6s;
}

/* ---------- Play ---------- */
.play {
  display: grid;
  grid-template-areas: "hud" "say" "stage";
  grid-template-rows: auto auto 1fr;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-items: stretch;
  padding-left: 10px;
  padding-right: 10px;
}
.hud {
  grid-area: hud;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 900px;
  justify-self: center;
}
.prog {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
}
.prog span {
  flex: 0 1 34px;
  min-width: 0;
  aspect-ratio: 1;
  transition: transform 0.3s;
}
.prog span.now {
  animation: pulse 1.1s ease-in-out infinite;
}
.prog span.on {
  animation: star-in 0.6s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.prog svg {
  display: block;
  width: 100%;
  height: 100%;
}
.clock {
  font-weight: 800;
  font-size: 20px;
  background: #fff;
  border-radius: 999px;
  padding: 2px 12px 0;
  box-shadow: 0 4px 0 rgba(42, 31, 92, 0.16);
  min-width: 74px;
  text-align: center;
}
.say {
  grid-area: say;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 760px;
  justify-self: center;
  margin: 6px 0 2px;
  min-height: 92px;
}
.dock {
  width: 84px;
  height: 92px;
  flex: none;
  cursor: pointer;
  position: relative;
}
.dock .pq-pipo {
  width: 100%;
  height: 100%;
}
.dock .crown {
  position: absolute;
  left: 50%;
  top: -14px;
  font-size: 30px;
  transform: translateX(-38%) rotate(10deg);
  animation: float 2s ease-in-out infinite;
}
.bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 24px;
  padding: 10px 16px 8px;
  box-shadow: 0 5px 0 rgba(42, 31, 92, 0.14);
  font-size: clamp(22px, 6.4vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.bubble::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  margin-top: -10px;
  border: 10px solid transparent;
  border-right: 14px solid #fff;
  border-left: 0;
}
.bubble .txt {
  min-width: 0;
}
.bubble .txt.es {
  font-size: 0.62em;
  color: #6b5fa0;
}
.bubble .txt.new {
  animation: txt-in 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.bubble .hear {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef3ff;
  display: grid;
  place-items: center;
}
.bubble .hear svg {
  width: 28px;
  height: 28px;
}
.speaking .bubble .hear {
  animation: pulse 0.6s ease-in-out infinite;
}
#stage {
  grid-area: stage;
  position: relative;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  justify-self: center;
}
.q {
  position: absolute;
  inset: 0;
  animation: q-in 0.45s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.q.out {
  animation: q-out 0.35s ease-in forwards;
  pointer-events: none;
}
@media (orientation: landscape) and (max-height: 600px) {
  .play {
    grid-template-areas: "hud hud" "say stage";
    grid-template-columns: minmax(200px, 32%) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 10px;
  }
  .say {
    flex-direction: column;
    justify-content: center;
    align-self: center;
  }
  .say .bubble::before {
    left: 50%;
    top: -12px;
    margin: 0 0 0 -10px;
    border: 10px solid transparent;
    border-bottom: 14px solid #fff;
    border-top: 0;
  }
  .say .bubble {
    width: 100%;
    flex: none;
  }
  .dock {
    width: 110px;
    height: 120px;
  }
}

/* ---------- Picture cards ---------- */
.grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: var(--gap, 14px);
}
.card {
  width: var(--size);
  height: var(--size);
  border-radius: 28%;
  background: #fff;
  box-shadow: 0 7px 0 var(--sh, #d6ccff), 0 12px 20px rgba(42, 31, 92, 0.14);
  display: grid;
  place-items: center;
  position: relative;
  animation: pop-in 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 0.09s);
}
.card > .in {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  animation: bob 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.6s);
}
.card .emo.pic {
  font-size: calc(var(--size) * 0.62);
}
.card svg.pic {
  width: 80%;
  height: 80%;
  overflow: visible;
}
.card:active {
  transform: scale(0.95);
}
.digit {
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-size: calc(var(--size) * 0.7);
  -webkit-text-stroke: 0.08em var(--c);
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0 var(--c), 0 0.1em 0 rgba(42, 31, 92, 0.2);
  transform: translateY(4%);
}
.dots {
  position: relative;
  width: 84%;
  height: 84%;
}
.dots .emo {
  position: absolute;
  transform: translate(-50%, -50%);
}
.good {
  animation: good 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) !important;
  z-index: 2;
}
.card.good {
  box-shadow: 0 0 0 6px #4ee07a, 0 7px 0 #20b955, 0 12px 26px rgba(32, 185, 85, 0.45);
}
.shake {
  animation: shake 0.5s ease-in-out !important;
}
.dim {
  opacity: 0.35;
  transform: scale(0.9);
  transition: opacity 0.3s, transform 0.3s;
}
.hint {
  animation: hint 0.9s ease-in-out infinite !important;
}
.card.hint {
  box-shadow: 0 0 0 6px var(--gold), 0 0 30px 6px rgba(255, 194, 26, 0.75), 0 7px 0 #e0a100;
}
.wordpop {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: clamp(34px, 10vw, 60px);
  color: #fff;
  -webkit-text-stroke: 7px #20b955;
  paint-order: stroke fill;
  text-shadow: 0 5px 0 rgba(42, 31, 92, 0.25);
  white-space: nowrap;
  animation: wordpop 1.5s ease-out forwards;
}

/* ---------- Bubbles ---------- */
.bub {
  position: absolute;
  bottom: 0;
  width: var(--size);
  height: var(--size);
  margin-left: calc(var(--size) / -2);
  will-change: transform;
}
.bub .ball {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 9%, rgba(255, 255, 255, 0.25) 10% 30%, rgba(160, 220, 255, 0.28) 60%, rgba(120, 140, 255, 0.5));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85), inset -8px -10px 18px rgba(120, 80, 255, 0.25), 0 6px 14px rgba(42, 31, 92, 0.12);
  animation: wobble 2.2s ease-in-out infinite;
}
.bub .emo.pic {
  font-size: calc(var(--size) * 0.55);
}
.bub .digit {
  font-size: calc(var(--size) * 0.6);
}
.bub.balloon .ball {
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.bub.balloon svg {
  width: 100%;
  height: 130%;
  overflow: visible;
  transform: translateY(12%);
}
.bub.hint .ball {
  box-shadow: inset 0 0 0 4px var(--gold), 0 0 28px 8px rgba(255, 194, 26, 0.85);
}
.bub.popped {
  pointer-events: none;
}
.bub.popped .ball {
  animation: popped 0.3s ease-out forwards;
}

/* ---------- Holes ---------- */
.holes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: end;
  justify-items: center;
  padding: 2% 0 4%;
}
.holes.tall {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.hole {
  position: relative;
  width: var(--size);
  height: calc(var(--size) * 1.05);
}
.hole .pit {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 10%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #2b160a, #5b3418 70%);
  box-shadow: 0 0 0 5px #8a5a2b;
}
.hole .clip {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  bottom: 22%;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 24% 24%;
}
.hole .critter {
  position: absolute;
  left: 50%;
  bottom: -2%;
  font-size: calc(var(--size) * 0.7);
  transform: translate(-50%, 115%);
  transition: transform 0.28s cubic-bezier(0.3, 1.5, 0.5, 1);
  cursor: pointer;
}
.hole.up .critter {
  transform: translate(-50%, 0);
}
.hole.caught .critter {
  animation: caught 0.8s ease-out forwards;
}
.hole .lip {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  height: 26%;
  border-radius: 50% 50% 46% 46% / 70% 70% 30% 30%;
  background: linear-gradient(180deg, #b07a3e, #8a5a2b);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.18), 0 6px 0 rgba(42, 31, 92, 0.18);
  pointer-events: none;
}
.hole .lip::before,
.hole .lip::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 22%;
  height: 22px;
  background: var(--g2);
  border-radius: 50% 50% 0 0;
  clip-path: polygon(0 100%, 20% 0, 40% 100%, 60% 10%, 80% 100%, 100% 30%, 100% 100%);
}
.hole .lip::before {
  left: 4%;
}
.hole .lip::after {
  right: 4%;
}
.hole.hint .pit {
  box-shadow: 0 0 0 5px var(--gold), 0 0 26px 8px rgba(255, 194, 26, 0.85);
}

/* ---------- Paint ---------- */
.paint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}
.canvas {
  width: min(70%, 46vh, 360px);
  aspect-ratio: 1.2;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 8px 0 #d6ccff, 0 14px 24px rgba(42, 31, 92, 0.14);
  display: grid;
  place-items: center;
  position: relative;
  animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.canvas::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 3px dashed #e6e0fa;
  pointer-events: none;
}
.canvas svg {
  width: 82%;
  height: 82%;
  overflow: visible;
}
.canvas svg .f {
  transition: fill 0.6s ease-out;
}
.canvas.painted {
  animation: good 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.pots {
  display: flex;
  gap: min(4vw, 22px);
  justify-content: center;
}
.pot {
  width: min(19vw, 15vh, 104px);
  aspect-ratio: 0.86;
  animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 0.08s + 0.2s);
}
.pot svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pot.hint {
  filter: drop-shadow(0 0 10px #ffc21a) drop-shadow(0 0 4px #ffc21a);
}
.blob {
  position: fixed;
  z-index: 30;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  pointer-events: none;
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.12), inset 5px 5px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- Count ---------- */
.count {
  position: absolute;
  inset: 0;
}
.count .field {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: min(40%, 190px);
}
.thing {
  position: absolute;
  font-size: var(--size);
  transform: translate(-50%, -50%);
  animation: pop-in 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 0.05s);
  cursor: pointer;
  transition: opacity 0.2s;
}
.thing > span {
  display: block;
  animation: bob 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.3s);
}
.thing.gone {
  opacity: 0;
  pointer-events: none;
}
.count .bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(40%, 190px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.basket {
  position: relative;
  width: min(44vw, 24vh, 190px);
  aspect-ratio: 1.25;
}
.basket svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.basket .n {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 56px;
  text-align: center;
  box-shadow: 0 4px 0 rgba(42, 31, 92, 0.18);
}
.basket .n.bump {
  animation: star-in 0.4s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.basket.bump svg {
  animation: squash 0.35s ease-out;
}
.okbtn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4ee07a, #20b955);
  box-shadow: 0 7px 0 #158a3d;
  display: grid;
  place-items: center;
  transition: transform 0.12s, opacity 0.2s;
}
.okbtn svg {
  width: 48px;
  height: 48px;
}
.okbtn:disabled {
  opacity: 0.4;
}
.okbtn:not(:disabled) {
  animation: breathe 1.4s ease-in-out infinite;
}
.okbtn.hint {
  box-shadow: 0 7px 0 #158a3d, 0 0 0 6px var(--gold), 0 0 26px 8px rgba(255, 194, 26, 0.8);
}

/* ---------- Feed Pipo ---------- */
.feed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.feed .eater {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
}
.feed .eater .pq-pipo {
  position: absolute;
  left: 50%;
  bottom: -2%;
  height: min(104%, 320px);
  width: auto;
  aspect-ratio: 136 / 148;
  transform: translateX(-50%);
}
.pq-pipo.hungry .mouth-o {
  transform: scale(1.25);
  animation: hungry 0.9s ease-in-out infinite alternate;
}
.pq-pipo.hungry .smile {
  opacity: 0;
}
.pq-pipo.chomp .mouth-o {
  animation: chomp 0.18s ease-in-out 4 alternate;
}
.pq-pipo.no .whole {
  animation: no 0.7s ease-in-out;
}
.table {
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: center;
  gap: min(3vw, 18px);
  padding: 14px 8px 16px;
  border-radius: 26px 26px 18px 18px;
  background: repeating-linear-gradient(90deg, #ff6b6b 0 26px, #fff 26px 52px), #fff;
  background-blend-mode: normal;
  box-shadow: 0 8px 0 #c94a4a;
  position: relative;
}
.table::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.55) 0 26px, transparent 26px 52px);
}
.plate {
  position: relative;
  width: min(21vw, 15vh, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 55%, #e9e4f7 56% 62%, #fff 63%);
  box-shadow: 0 5px 0 rgba(42, 31, 92, 0.2);
  display: grid;
  place-items: center;
  animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 0.08s);
}
.plate .food {
  font-size: min(13vw, 9vh, 66px);
  display: block;
  position: relative;
}
.plate.hint {
  box-shadow: 0 5px 0 rgba(42, 31, 92, 0.2), 0 0 0 5px var(--gold), 0 0 26px 8px rgba(255, 194, 26, 0.8);
}
.flyer {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ---------- The boy (body and clothes) ---------- */
.boyq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
}
.leo {
  position: relative;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 240 / 440;
  container-type: inline-size;
  animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.leo > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.leo .part {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.leo .part.lit {
  animation: lit 0.9s ease-out;
}
.leo .part.wig {
  animation: wig 0.5s ease-in-out;
}
.leo .part.hint .hl {
  fill: rgba(255, 194, 26, 0.55);
  stroke: #ffc21a;
  stroke-width: 4;
  animation: hint 0.9s ease-in-out infinite;
}
.leo .hl {
  fill: transparent;
}
.leo .worn {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: worn 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.leo .worn.off {
  animation: worn-off 0.5s ease-in forwards;
}
.leo .blinker {
  animation: leo-blink 4s infinite;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.rack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
}
.hanger {
  width: min(24vw, 16vh, 108px);
  aspect-ratio: 1;
  border-radius: 26%;
  background: #fff;
  box-shadow: 0 6px 0 #d6ccff;
  display: grid;
  place-items: center;
  animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 0.08s);
}
.hanger .emo {
  font-size: min(15vw, 10vh, 66px);
}
.hanger.hint {
  box-shadow: 0 6px 0 #e0a100, 0 0 0 6px var(--gold), 0 0 26px 8px rgba(255, 194, 26, 0.8);
}
.hanger.used {
  visibility: hidden;
}
@media (orientation: portrait) {
  .boyq.dressq {
    flex-direction: column;
    gap: 10px;
  }
  .boyq.dressq .leo {
    height: auto;
    flex: 1;
    min-height: 0;
    width: auto;
  }
  .boyq.dressq .rack {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Overlays ---------- */
.ov {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(42, 20, 90, 0.66);
  animation: fade 0.3s ease-out;
}
.ov .rays {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 170vmax;
  height: 170vmax;
  margin: -85vmax 0 0 -85vmax;
  background: repeating-conic-gradient(rgba(255, 236, 140, 0.22) 0 10deg, transparent 10deg 20deg);
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.panel {
  position: relative;
  width: min(100%, 440px);
  max-height: 100%;
  overflow-y: auto;
  background: #fff;
  border-radius: 32px;
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 10px 0 rgba(42, 31, 92, 0.3);
  animation: panel-in 0.55s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.panel h2 {
  margin: 0;
  font-size: clamp(32px, 9vw, 46px);
  line-height: 1;
  font-weight: 800;
  color: #fff;
  -webkit-text-stroke: 7px var(--wc);
  paint-order: stroke fill;
}
.panel .sub {
  margin: 4px 0 0;
  font-weight: 800;
  font-size: 18px;
  opacity: 0.75;
}
.panel p {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0;
  line-height: 1.3;
}
.bigstars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  margin: 12px 0 6px;
}
.bigstars svg {
  width: 74px;
  height: 74px;
  opacity: 0;
}
.bigstars svg:nth-child(2) {
  width: 92px;
  height: 92px;
  margin-bottom: 10px;
}
.bigstars svg.in {
  opacity: 1;
  animation: star-in 0.6s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.newstickers {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 4px;
  min-height: 10px;
}
.sticker {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--wc), 0 6px 0 rgba(42, 31, 92, 0.2);
  display: grid;
  place-items: center;
  position: relative;
  animation: sticker-in 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(0.9s + var(--i) * 0.25s);
  --size: 70px;
}
.sticker .emo.pic {
  font-size: 46px;
}
.sticker svg.pic {
  width: 80%;
  height: 80%;
}
.sticker .digit {
  font-size: 50px;
}
.sticker .tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wc);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 0 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.acts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.go {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4ee07a, #20b955);
  box-shadow: 0 7px 0 #158a3d;
  display: grid;
  place-items: center;
  animation: breathe 1.4s ease-in-out infinite;
}
.go svg {
  width: 48px;
  height: 48px;
}
.round-card {
  text-align: center;
  color: #fff;
  animation: panel-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.round-card .ic {
  font-size: 110px;
  display: block;
  animation: float 1.6s ease-in-out infinite;
}
.round-card .r {
  font-size: 22px;
  font-weight: 800;
}
.round-card .w {
  font-size: clamp(44px, 13vw, 72px);
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 8px var(--wc);
  paint-order: stroke fill;
}

@media (max-height: 520px) {
  .panel {
    padding: 12px 14px;
  }
  .panel h2 {
    font-size: 30px;
  }
  .panel p {
    margin: 4px 0;
    font-size: 15px;
  }
  .bigstars {
    margin: 4px 0 0;
  }
  .bigstars svg {
    width: 46px;
    height: 46px;
  }
  .bigstars svg:nth-child(2) {
    width: 58px;
    height: 58px;
  }
  .sticker {
    width: 56px;
    height: 56px;
    --size: 50px;
  }
  .sticker .emo.pic {
    font-size: 32px;
  }
  .sticker .digit {
    font-size: 36px;
  }
  .acts {
    margin-top: 8px;
  }
  .go {
    width: 70px;
    height: 70px;
  }
  .round-card .ic {
    font-size: 70px;
  }
}

/* ---------- Album ---------- */
.album .tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.album .tab {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 30px;
  display: grid;
  place-items: center;
  position: relative;
}
.album .tab.on {
  background: #fff;
  box-shadow: 0 5px 0 var(--wc);
  transform: translateY(-3px);
}
.album .tab small {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 11px;
  font-weight: 800;
  background: var(--wc);
  color: #fff;
  border-radius: 999px;
  padding: 0 5px;
  font-family: var(--font);
}
.album .page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
  max-width: 760px;
  background: #fffdf5;
  border-radius: 28px;
  box-shadow: 0 8px 0 rgba(42, 31, 92, 0.2);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 14px 10px;
  align-content: start;
}
.slot {
  --size: 80px;
  aspect-ratio: 1;
  border-radius: 22px;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--wc), 0 5px 0 rgba(42, 31, 92, 0.15);
  display: grid;
  place-items: center;
  position: relative;
  transform: rotate(var(--r));
  animation: pop-in 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 0.03s);
}
.slot .emo.pic {
  font-size: 48px;
}
.slot svg.pic {
  width: 78%;
  height: 78%;
}
.slot .digit {
  font-size: 52px;
}
.slot .lab {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 999px;
  padding: 0 8px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(42, 31, 92, 0.15);
}
.slot.miss {
  background: #efeaf8;
  box-shadow: 0 0 0 3px #d6cfe8;
}
.slot.miss .in {
  filter: grayscale(1) brightness(0.2);
  opacity: 0.14;
}
.slot.miss .lab {
  display: none;
}
.slot .es {
  position: absolute;
  top: -9px;
  right: -6px;
  background: var(--wc);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 0 7px;
  animation: pop-in 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* ---------- Particles ---------- */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

/* ---------- Pipo (same mascot as the Infantil games) ---------- */
.pq-pipo {
  display: block;
  overflow: visible;
}
.pq-pipo * {
  transform-box: fill-box;
}
.pq-pipo .whole {
  transform-origin: 50% 100%;
  animation: pq-idle 2.6s ease-in-out infinite;
}
.pq-pipo .lid {
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 0.08s;
}
.pq-pipo.blink .lid {
  transform: scaleY(1);
}
.pq-pipo .pupil {
  transition: transform 0.15s ease-out;
}
.pq-pipo .mouth-o {
  transform-origin: 50% 50%;
  transform: scale(0);
}
.pq-pipo.talk .mouth-o {
  animation: pq-talk 0.26s ease-in-out infinite alternate;
}
.pq-pipo.talk .smile {
  opacity: 0;
}
.pq-pipo .antenna {
  transform-origin: 50% 100%;
  animation: pq-sway 2.2s ease-in-out infinite;
}
.pq-pipo .arm {
  transform-origin: 50% 20%;
}
.pq-pipo.cheer .whole {
  animation: pq-jump 0.9s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.pq-pipo.cheer .arm.l {
  animation: pq-wave-l 0.3s ease-in-out 3 alternate;
}
.pq-pipo.cheer .arm.r {
  animation: pq-wave-r 0.3s ease-in-out 3 alternate;
}
.pq-pipo.cheer .smile {
  opacity: 0;
}
.pq-pipo.cheer .mouth-o {
  transform: scale(1.2);
  animation: none;
}
.pq-pipo.oops .whole {
  animation: pq-tilt 0.7s ease-in-out;
}
.pq-pipo.wave .arm.r {
  animation: pq-wave-r 0.35s ease-in-out 4 alternate;
}
.pq-pipo.dance .whole {
  animation: dance 0.9s ease-in-out infinite;
}
.pq-pipo.dance .arm.l {
  animation: pq-wave-l 0.45s ease-in-out infinite alternate;
}
.pq-pipo.dance .arm.r {
  animation: pq-wave-r 0.45s ease-in-out infinite alternate;
}

/* ---------- Keyframes ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes drift {
  from {
    transform: translateX(-200px);
  }
  to {
    transform: translateX(110vw);
  }
}
@keyframes rise {
  from {
    transform: translate(0, 0) rotate(-6deg);
  }
  50% {
    transform: translate(26px, -60vh) rotate(6deg);
  }
  to {
    transform: translate(-10px, -125vh) rotate(-4deg);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5%);
  }
}
@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(7deg);
  }
}
@keyframes hop {
  0%,
  70%,
  100% {
    transform: translateY(0) scale(1);
  }
  78% {
    transform: translateY(0) scale(1.1, 0.88);
  }
  86% {
    transform: translateY(-16%) scale(0.95, 1.06);
  }
  94% {
    transform: translateY(0) scale(1.04, 0.96);
  }
}
@keyframes drop-in {
  from {
    transform: translateY(-120%) scale(0.6);
    opacity: 0;
  }
}
@keyframes hello {
  0%,
  100% {
    transform: rotate(-4deg) scale(1);
  }
  50% {
    transform: rotate(3deg) scale(1.06);
  }
}
@keyframes breathe {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.05;
  }
}
@keyframes scr-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-12deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.12;
  }
}
@keyframes star-in {
  0% {
    transform: scale(0) rotate(-90deg);
  }
  70% {
    transform: scale(1.35) rotate(12deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
@keyframes txt-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
}
@keyframes q-in {
  from {
    opacity: 0;
    transform: translateX(14%) scale(0.92);
  }
}
@keyframes q-out {
  to {
    opacity: 0;
    transform: translateX(-14%) scale(0.92);
  }
}
@keyframes good {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.22) rotate(-5deg);
  }
  60% {
    transform: scale(0.95) rotate(3deg);
  }
  100% {
    transform: scale(1.06);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-12px) rotate(-4deg);
  }
  40% {
    transform: translateX(10px) rotate(3deg);
  }
  60% {
    transform: translateX(-7px);
  }
  80% {
    transform: translateX(5px);
  }
}
@keyframes hint {
  0%,
  100% {
    scale: 1;
  }
  50% {
    scale: 1.08;
  }
}
@keyframes wordpop {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.4);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -80%) scale(1.15);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -170%) scale(0.9);
  }
}
@keyframes wobble {
  0%,
  100% {
    border-radius: 50%;
    transform: scale(1, 1);
  }
  33% {
    border-radius: 48% 52% 50% 50%;
    transform: scale(1.04, 0.97);
  }
  66% {
    border-radius: 52% 48% 49% 51%;
    transform: scale(0.97, 1.03);
  }
}
@keyframes popped {
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}
@keyframes caught {
  0% {
    transform: translate(-50%, 0) scale(1);
  }
  30% {
    transform: translate(-50%, -30%) scale(1.25) rotate(-8deg);
  }
  60% {
    transform: translate(-50%, -25%) scale(1.15) rotate(8deg);
  }
  100% {
    transform: translate(-50%, 0) scale(1.1);
  }
}
@keyframes squash {
  40% {
    transform: scale(1.08, 0.9);
  }
  70% {
    transform: scale(0.97, 1.04);
  }
}
@keyframes hungry {
  from {
    transform: scale(1.1, 1);
  }
  to {
    transform: scale(1.3, 1.25);
  }
}
@keyframes chomp {
  from {
    transform: scale(1.3);
  }
  to {
    transform: scale(0.3, 0.15);
  }
}
@keyframes no {
  20% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(4deg);
  }
}
@keyframes dance {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  25% {
    transform: translateY(-10%) rotate(0);
  }
  50% {
    transform: translateY(0) rotate(6deg);
  }
  75% {
    transform: translateY(-10%) rotate(0);
  }
}
@keyframes lit {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  35% {
    transform: scale(1.18);
    filter: brightness(1.25) drop-shadow(0 0 8px #ffd23f);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
@keyframes wig {
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}
@keyframes worn {
  from {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}
@keyframes worn-off {
  to {
    transform: translate(-50%, 60%) rotate(40deg) scale(0.6);
    opacity: 0;
  }
}
@keyframes leo-blink {
  0%,
  46%,
  50%,
  100% {
    transform: scaleY(1);
  }
  48% {
    transform: scaleY(0.1);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
  }
}
@keyframes sticker-in {
  0% {
    opacity: 0;
    transform: scale(2.4) rotate(-30deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.9) rotate(6deg);
  }
  100% {
    transform: scale(1) rotate(-3deg);
  }
}
@keyframes pq-sway {
  50% {
    transform: rotate(-10deg);
  }
  0%,
  100% {
    transform: rotate(8deg);
  }
}
@keyframes pq-idle {
  0%,
  100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.03, 0.97);
  }
}
@keyframes pq-talk {
  from {
    transform: scale(0.35, 0.25);
  }
  to {
    transform: scale(1, 1);
  }
}
@keyframes pq-jump {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  15% {
    transform: translateY(0) scale(1.15, 0.82);
  }
  45% {
    transform: translateY(-28%) scale(0.9, 1.12);
  }
  75% {
    transform: translateY(0) scale(1.08, 0.92);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}
@keyframes pq-wave-l {
  to {
    transform: rotate(50deg);
  }
}
@keyframes pq-wave-r {
  to {
    transform: rotate(-50deg);
  }
}
@keyframes pq-tilt {
  25% {
    transform: rotate(-9deg);
  }
  50% {
    transform: rotate(7deg);
  }
  75% {
    transform: rotate(-4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .card > .in,
  .thing > span,
  .bub .ball,
  .cloud,
  .floaty,
  #scene .sun .rays,
  .title .ch,
  .bigbtn,
  .ov .rays {
    animation: none !important;
  }
}
