/* SparkGlee — game styles, pack A: bubbles, shapes, letters, animals, moreless, pattern, feed, oddone.
 * Every rule is scoped under .g-<id>. The root element fills the stage as a flex column:
 * a .scene on top (flex:1) and, where used, a .choices row below it. */

.g-bubbles, .g-shapes, .g-letters, .g-animals, .g-moreless, .g-pattern, .g-feed, .g-oddone {
  flex: 1; width: 100%; min-height: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: clamp(8px, 2vh, 16px);
  font-family: 'Fredoka', system-ui, sans-serif;
}
.g-bubbles .scene, .g-shapes .scene, .g-letters .scene, .g-animals .scene,
.g-moreless .scene, .g-pattern .scene, .g-feed .scene, .g-oddone .scene {
  position: relative; flex: 1; width: 100%; min-height: 200px; overflow: hidden; border-radius: 28px;
}
.g-bubbles .choices, .g-shapes .choices, .g-animals .choices, .g-pattern .choices, .g-feed .choices { flex: 0 0 auto; }

/* ───────────── Bubble Pop ───────────── */
.g-bubbles .bub-scene {
  min-height: 300px; touch-action: manipulation;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, .45), transparent 60%),
    linear-gradient(180deg, #8fe3ff 0%, #6fb8ff 55%, #9f8bff 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 10px 30px rgba(40, 30, 120, .25);
}
.g-bubbles .bub-ray {
  position: absolute; top: -20%; left: 18%; width: 22%; height: 140%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 80%);
  transform: rotate(14deg); filter: blur(6px); pointer-events: none; animation: bub-ray 7s ease-in-out infinite alternate;
}
.g-bubbles .bub-ray.r2 { left: 58%; width: 14%; animation-duration: 9s; opacity: .7; }
@keyframes bub-ray { from { transform: rotate(10deg) translateX(-10%); } to { transform: rotate(18deg) translateX(10%); } }
.g-bubbles .bubble {
  position: absolute; top: 120%; left: 50%; transform: translate(-50%, -50%);
  width: 90px; height: 90px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background:
    radial-gradient(circle at 32% 27%, #fff 0 7%, rgba(255, 255, 255, .7) 10%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .45) 0 6%, rgba(255, 255, 255, 0) 14%),
    radial-gradient(circle at 42% 38%, var(--l, #fff) 0%, var(--c, #6cf) 58%, var(--d, #39c) 100%);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .15), inset 0 6px 14px rgba(255, 255, 255, .55), 0 8px 18px rgba(30, 20, 90, .25);
  opacity: .95; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  display: grid; place-items: center;
}
.g-bubbles .bubble .bub-icon { font-size: 2.6rem; line-height: 1; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.g-bubbles .bubble.popped { animation: bub-pop .38s ease-out forwards; pointer-events: none; }
@keyframes bub-pop {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1.35); opacity: .9; filter: brightness(1.4); }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
.g-bubbles .bubble.nope { animation: bub-nope .45s ease; }
@keyframes bub-nope {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(-58%, -50%) scale(.94); }
  75% { transform: translate(-42%, -50%) scale(.94); }
}
.g-bubbles .bubble.hint { box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 0 28px 10px rgba(255, 255, 255, .8); }
.g-bubbles .bub-tally {
  position: absolute; z-index: 5; top: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(40, 30, 120, .18); pointer-events: none;
}
.g-bubbles .bub-tally i {
  width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 15px; display: grid; place-items: center;
  border: 3px dashed rgba(60, 50, 140, .3); opacity: .55; transition: all .25s;
}
.g-bubbles .bub-tally i.on {
  opacity: 1; border: 3px solid #fff; transform: scale(1.15);
  background: radial-gradient(circle at 35% 30%, #fff 0 15%, var(--c, #ffe08a) 60%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* ───────────── Shape Safari ───────────── */
.g-shapes .safari {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 85% 12%, #fff6b0 0 7%, rgba(255, 246, 176, 0) 18%),
    linear-gradient(180deg, #bff3ff 0%, #e2fbd5 58%, #9fe08a 58.5%, #6fcf63 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .4), 0 10px 30px rgba(20, 90, 40, .2);
}
.g-shapes .sf-deco { position: absolute; font-size: clamp(2.2rem, 8vw, 3.6rem); pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .15)); }
.g-shapes .d1 { left: 4%; bottom: 30%; }
.g-shapes .d2 { right: 5%; bottom: 34%; animation-delay: -1.2s; }
.g-shapes .d3 { left: 22%; bottom: 2%; }
.g-shapes .d4 { right: 20%; bottom: 3%; font-size: clamp(1.8rem, 6vw, 2.8rem); }
.g-shapes .sf-card {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: clamp(12px, 3vh, 22px) clamp(22px, 6vw, 44px); border-radius: 26px;
  background: linear-gradient(180deg, #fffdf3, #fff1c9); border: 4px solid #fff;
  box-shadow: 0 10px 0 #e9c46a, 0 18px 30px rgba(120, 80, 0, .25);
}
.g-shapes .sf-word { font-size: clamp(1.7rem, 7vw, 2.8rem); font-weight: 700; color: #3b2e6e; letter-spacing: .02em; }
.g-shapes .sf-dots { display: flex; gap: 6px; }
.g-shapes .sf-dots i { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(#ff8fab, #ff4d6d); box-shadow: 0 2px 0 #c9184a; }
.g-shapes .sf-big { width: min(52vw, 230px); aspect-ratio: 1; z-index: 2; }
.g-shapes .sf-big .shape-svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .22)); animation: sf-bob 2.6s ease-in-out infinite; }
.g-shapes .shape-choice { padding: 8px; }
.g-shapes .shape-choice .shape-svg {
  width: min(19vw, 96px); height: min(19vw, 96px); display: block; margin: auto;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .2)); transition: transform .2s;
}
.g-shapes .shape-choice:hover .shape-svg { transform: scale(1.06) rotate(-3deg); }
.g-shapes .shape-choice .eyes { animation: sf-blink 4s infinite; transform-origin: 50% 54%; }
@keyframes sf-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes sf-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* ───────────── Letter Lagoon ───────────── */
.g-letters .lagoon {
  min-height: 320px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .5), transparent 55%),
    linear-gradient(180deg, #7de2ff 0%, #2bb4e0 45%, #0f84b8 80%, #0b6a96 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 10px 30px rgba(0, 60, 100, .3);
}
.g-letters .wave {
  position: absolute; left: -10%; width: 120%; height: 40px; top: 6%; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 20px -6px, transparent 22px, rgba(255, 255, 255, .55) 23px, transparent 27px) 0 0 / 40px 40px repeat-x;
  animation: lg-wave 6s linear infinite;
}
.g-letters .wave.w2 { top: 10%; opacity: .3; animation-duration: 9s; animation-direction: reverse; }
@keyframes lg-wave { to { transform: translateX(40px); } }
.g-letters .weed, .g-letters .shell { position: absolute; bottom: -4px; font-size: clamp(2rem, 8vw, 3.2rem); pointer-events: none; transform-origin: bottom center; animation: lg-sway 3.4s ease-in-out infinite; }
.g-letters .k1 { left: 4%; } .g-letters .k2 { left: 46%; animation-delay: -1s; } .g-letters .k3 { right: 6%; animation-delay: -2s; }
.g-letters .shell { left: 26%; bottom: 4px; font-size: clamp(1.4rem, 5vw, 2rem); animation: none; }
@keyframes lg-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.g-letters .lb {
  position: absolute; bottom: -20px; width: 12px; height: 12px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .15); animation: lg-rise 6s linear infinite;
}
.g-letters .b1 { left: 14%; } .g-letters .b2 { left: 63%; animation-delay: -2s; width: 8px; height: 8px; } .g-letters .b3 { left: 84%; animation-delay: -4s; }
@keyframes lg-rise { to { transform: translateY(-420px); opacity: 0; } }
.g-letters .fish {
  position: absolute; left: -20%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 0; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-width: 96px; min-height: 76px;
}
.g-letters .fish.left { flex-direction: row; }
.g-letters .fish.right { flex-direction: row-reverse; }
.g-letters .fish-body { font-size: clamp(3rem, 11vw, 4.4rem); line-height: 1; filter: drop-shadow(0 6px 4px rgba(0, 40, 80, .3)); animation: lg-wag .5s ease-in-out infinite alternate; }
.g-letters .fish.right .fish-body { transform: scaleX(-1); animation-name: lg-wag-r; }
@keyframes lg-wag { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes lg-wag-r { from { transform: scaleX(-1) rotate(-5deg); } to { transform: scaleX(-1) rotate(5deg); } }
.g-letters .fish-letter {
  display: grid; place-items: center; width: clamp(46px, 12vw, 60px); height: clamp(46px, 12vw, 60px); border-radius: 50%;
  font-size: clamp(1.7rem, 6vw, 2.3rem); font-weight: 700; color: #1d3c78;
  background: radial-gradient(circle at 32% 28%, #fff 0 14%, #eaf8ff 40%, #bfe8ff 100%);
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 50, 100, .3), inset 0 -4px 8px rgba(0, 80, 160, .15);
  margin: 0 -6px;
}
.g-letters .fish.hint .fish-letter { box-shadow: 0 0 0 6px #ffe066, 0 0 24px 8px rgba(255, 224, 102, .8); }
.g-letters .fish.shake .fish-letter { background: radial-gradient(circle at 32% 28%, #fff 0 14%, #ffe3e3 50%, #ffb3b3 100%); }
.g-letters .fish.caught { z-index: 3; }
.g-letters .fish.caught .fish-letter { background: radial-gradient(circle at 32% 28%, #fff 0 14%, #fff3b0 50%, #ffd23d 100%); transform: scale(1.25); transition: transform .3s; }

/* ───────────── Who Says That? ───────────── */
.g-animals .farm {
  display: grid; place-items: center; min-height: 190px;
  background: linear-gradient(180deg, #a5e6ff 0%, #dff7ff 60%, #b6ec8e 60.5%, #7ed957 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .4), 0 10px 30px rgba(40, 100, 20, .2);
}
.g-animals .hill { position: absolute; bottom: -40%; width: 70%; height: 80%; border-radius: 50%; background: radial-gradient(circle at 50% 20%, #9be36c, #5cbf3a); pointer-events: none; }
.g-animals .h1 { left: -15%; } .g-animals .h2 { right: -20%; bottom: -46%; background: radial-gradient(circle at 50% 20%, #8bd85f, #4caf2e); }
.g-animals .sun { position: absolute; top: 8%; right: 7%; font-size: clamp(2rem, 7vw, 3rem); pointer-events: none; }
.g-animals .barn { position: absolute; bottom: 8%; left: 6%; font-size: clamp(2rem, 8vw, 3.2rem); pointer-events: none; }
.g-animals .bubble-say {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: clamp(10px, 2.5vh, 18px) clamp(20px, 5vw, 34px); border-radius: 999px;
  background: #fff; box-shadow: 0 8px 0 rgba(0, 0, 0, .08), 0 14px 30px rgba(0, 60, 20, .2);
}
.g-animals .bubble-say::after {
  content: ''; position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  border: 12px solid transparent; border-top: 16px solid #fff; border-bottom: 0;
}
.g-animals .spk, .g-animals .cue-icon { font-size: clamp(1.8rem, 7vw, 2.8rem); }
.g-animals .say-txt { font-size: clamp(1.6rem, 7vw, 2.8rem); font-weight: 700; color: #e85d04; text-transform: capitalize; }
.g-animals .say-q { font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; color: #7b5cff; }
.g-animals .bubble-say.icon-only .cue-icon { font-size: clamp(2.6rem, 10vw, 3.8rem); }
.g-animals .ani-choices .ani { font-size: clamp(2.8rem, 12vw, 4.2rem); line-height: 1; display: block; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .18)); }
.g-animals .ani-choices .choice:hover .ani { animation: ani-hop .5s ease; }
@keyframes ani-hop { 50% { transform: translateY(-8px) scale(1.06); } }
.g-animals .ani-choices { align-self: center; }
.g-animals .ani-reveal {
  position: absolute; z-index: 3; right: 10%; bottom: 8%; display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none; animation: ani-in .55s cubic-bezier(.3, 1.6, .5, 1) both;
}
.g-animals .ani-reveal .ani-big { font-size: clamp(3.4rem, 14vw, 6rem); line-height: 1; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .2)); animation: ani-hop .6s ease .55s 2; }
.g-animals .ani-reveal b { font-size: clamp(1rem, 4vw, 1.4rem); color: #2b1b4f; background: #fff; border-radius: 999px; padding: 2px 14px; box-shadow: 0 3px 0 rgba(0, 0, 0, .1); }
@keyframes ani-in { from { transform: translateY(60px) scale(.4); opacity: 0; } }

/* ───────────── Snack Stack ───────────── */
.g-moreless .table {
  display: flex; align-items: center; justify-content: space-evenly; gap: 8px; padding: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .0) 0 38px, rgba(255, 255, 255, .25) 38px 40px),
    linear-gradient(180deg, #ffe0b8 0%, #f7b984 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), 0 10px 30px rgba(140, 60, 0, .2);
}
.g-moreless .plate {
  position: relative; flex: 0 1 44%; aspect-ratio: 1; max-width: 300px; min-width: 120px; border: 0; padding: 12%; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center;
  background: url(../img/art/props/plate.webp) center / 100% 100% no-repeat; /* illustrated plate (prop/plate) */
  box-shadow: 0 12px 22px rgba(90, 50, 10, .22);
  transition: transform .15s; -webkit-tap-highlight-color: transparent;
}
.g-moreless .plate:active { transform: scale(.96); }
.g-moreless .plate.is-correct { box-shadow: 0 0 0 8px rgba(95, 208, 138, .65), 0 18px 30px rgba(0, 100, 40, .3); }
.g-moreless .plate.hint { box-shadow: 0 0 0 8px rgba(255, 210, 61, .7), 0 12px 22px rgba(90, 50, 10, .22); }
/* Picture plates: the pile fills the plate's inner circle (a % padding here would be a % of the whole table). */
.g-moreless .plate:not(.num-plate) { grid-template-columns: minmax(0, 1fr); padding: 0; }
.g-moreless .pile { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 2px; width: 72%; max-width: 100%; justify-self: center; }
.g-moreless .ml-count { position: absolute; top: 4%; right: 4%; min-width: 1.8em; padding: 0 .35em; border-radius: 999px; background: #7b3fe4; color: #fff;
  font-size: clamp(1.2rem, 5vw, 1.8rem); font-weight: 700; line-height: 1.6; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.g-moreless .treat {
  font-size: calc(clamp(1.4rem, 5.5vw, 2.4rem) * var(--s, 1)); line-height: 1.05;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .18)); animation: ml-drop .4s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes ml-drop { from { transform: translateY(-30px) scale(.4); opacity: 0; } }
.g-moreless .vs { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 700; color: #b5651d; flex: 0 0 auto; text-shadow: 0 2px 0 #fff; }
.g-moreless .num-plate { display: flex; flex-direction: column; gap: 6px; }
.g-moreless .big-num { font-size: clamp(3rem, 14vw, 5.5rem); font-weight: 700; color: #7b3fe4; line-height: 1; text-shadow: 0 4px 0 rgba(123, 63, 228, .18); }
.g-moreless .dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.g-moreless .dots i { width: clamp(9px, 2.6vw, 14px); height: clamp(9px, 2.6vw, 14px); border-radius: 50%; background: linear-gradient(#ff9fb2, #ff5c8a); }

/* ───────────── Pattern Parade ───────────── */
.g-pattern .rail {
  display: flex; flex-direction: column; justify-content: center; min-height: 190px;
  background:
    radial-gradient(circle at 12% 18%, #fff8c8 0 6%, rgba(255, 248, 200, 0) 15%),
    linear-gradient(180deg, #a8e4ff 0%, #e6f8ff 62%, #a5e07d 62.5%, #79c95a 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .4), 0 10px 30px rgba(140, 70, 0, .2);
}
.g-pattern .cloud { position: absolute; font-size: clamp(2rem, 8vw, 3.4rem); opacity: .9; pointer-events: none; }
.g-pattern .c1 { top: 8%; left: 18%; } .g-pattern .c2 { top: 14%; right: 12%; animation-delay: -1.5s; }
.g-pattern .track-wrap { position: relative; width: 100%; padding: 0 2%; margin-top: 8%; }
.g-pattern .track {
  height: 14px; margin: 0 -4%; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #8d5524 0 10px, transparent 10px 22px), linear-gradient(#9aa0a6 0 4px, transparent 4px 10px, #9aa0a6 10px 14px);
}
.g-pattern .train { display: flex; align-items: flex-end; gap: 6px; container-type: inline-size; transition: transform 1s ease-in; }
.g-pattern .train.go { transform: translateX(-130%); }
.g-pattern .car {
  position: relative; flex: 1 1 0; max-width: 96px; aspect-ratio: 1 / 1.05; min-width: 0;
  display: grid; place-items: center; border-radius: 12px 12px 8px 8px; margin-bottom: 10px;
  font-size: min(44px, calc(100cqw / var(--n, 7) * .5)); font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #ff7a7a, #e63946); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), 0 4px 8px rgba(0, 0, 0, .15);
  animation: pt-roll .5s cubic-bezier(.2, 1.3, .5, 1) both;
}
.g-pattern .car:nth-child(3n+1) { background: linear-gradient(180deg, #6ec6ff, #2f80ed); }
.g-pattern .car:nth-child(3n+2) { background: linear-gradient(180deg, #ffd56b, #f4a300); }
.g-pattern .car::before, .g-pattern .car::after {
  content: ''; position: absolute; bottom: -10px; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #ddd 0 25%, #333 30% 100%); box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}
.g-pattern .car::before { left: 10%; } .g-pattern .car::after { right: 10%; }
.g-pattern .car.engine { background: linear-gradient(180deg, #5b5f97, #2d3047); }
.g-pattern .car.engine .pemo { font-size: 1.3em; }
.g-pattern .smoke {
  position: absolute; top: -40%; left: 30%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .9);
  animation: pt-puff 1.4s ease-out infinite;
}
@keyframes pt-puff { from { transform: translateY(10px) scale(.4); opacity: .9; } to { transform: translateY(-30px) scale(1.4); opacity: 0; } }
@keyframes pt-roll { from { transform: translateX(60px); opacity: 0; } }
.g-pattern .car.num { font-size: min(34px, calc(100cqw / var(--n, 7) * .36)); text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.g-pattern .car.mystery { background: repeating-linear-gradient(45deg, #fff 0 10px, #f1ecff 10px 20px); color: #7b5cff; border: 3px dashed #7b5cff; }
.g-pattern .car.mystery .qm { animation: pt-q 1s ease-in-out infinite; }
.g-pattern .car.mystery.filled { background: linear-gradient(180deg, #7dffb0, #2fd16b); color: #fff; border-style: solid; border-color: #fff; animation: pt-fill .4s ease; }
@keyframes pt-q { 50% { transform: scale(1.2) rotate(8deg); } }
@keyframes pt-fill { 50% { transform: scale(1.2); } }
.g-pattern .pemo { line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.g-pattern .pdot {
  display: inline-block; width: .9em; height: .9em; border-radius: 50%; border: 3px solid #fff;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--c) 45%); box-shadow: 0 3px 6px rgba(0, 0, 0, .2);
}
.g-pattern .pat-choices .choice { font-size: clamp(2.4rem, 10vw, 3.4rem); }
.g-pattern .pat-choices .pdot { width: 1em; height: 1em; }
.g-pattern .choices { align-self: center; }

/* ───────────── Hungry Monster ───────────── */
.g-feed .den {
  display: flex; align-items: center; justify-content: space-evenly; gap: 10px; padding: 14px; flex-wrap: wrap;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .35), transparent 40%),
    linear-gradient(160deg, #d7c4ff 0%, #b49bff 50%, #8f7cf0 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 10px 30px rgba(60, 20, 140, .25);
}
.g-feed .m-side, .g-feed .p-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.g-feed .m-side .monster { margin-top: 12%; } /* room for the horns (top: -12%) so the speech bubble never sits on them */
.g-feed .m-speech {
  position: relative; display: flex; gap: 12px; padding: 8px 18px; border-radius: 22px; background: #fff; cursor: pointer;
  box-shadow: 0 6px 16px rgba(40, 0, 100, .2);
}
.g-feed .m-speech::after { content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); border: 10px solid transparent; border-top: 12px solid #fff; border-bottom: 0; }
.g-feed .want { display: flex; align-items: center; gap: 4px; font-size: clamp(1.6rem, 6vw, 2.2rem); }
.g-feed .want b { color: #ff4d6d; font-weight: 700; }
.g-feed .monster {
  position: relative; width: clamp(130px, 34vw, 190px); aspect-ratio: 1 / .95; border-radius: 48% 48% 42% 42%;
  background: radial-gradient(circle at 35% 28%, #a6ffcb 0%, #3ad29f 45%, #19a37a 100%);
  box-shadow: inset 0 -14px 24px rgba(0, 80, 50, .25), 0 12px 24px rgba(30, 0, 80, .3);
  animation: fd-breathe 2.4s ease-in-out infinite;
}
@keyframes fd-breathe { 50% { transform: scale(1.03, .97); } }
.g-feed .horn { position: absolute; top: -12%; width: 16%; height: 22%; background: linear-gradient(#ffe58a, #ffb703); border-radius: 50% 50% 20% 20%; }
.g-feed .hl { left: 18%; transform: rotate(-18deg); } .g-feed .hr { right: 18%; transform: rotate(18deg); }
.g-feed .m-eyes { position: absolute; top: 18%; left: 0; right: 0; display: flex; justify-content: center; gap: 10%; }
.g-feed .eye { position: relative; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08); animation: fd-blink 4.5s infinite; }
.g-feed .pupil { position: absolute; left: 30%; top: 30%; width: 44%; height: 44%; border-radius: 50%; background: #2b2140; box-shadow: inset 4px 4px 0 -1px #fff; animation: fd-look 3s ease-in-out infinite; }
@keyframes fd-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes fd-look { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(30%, 15%); } 60% { transform: translate(-25%, 15%); } }
.g-feed .blush { position: absolute; top: 46%; width: 16%; height: 9%; border-radius: 50%; background: rgba(255, 120, 160, .55); }
.g-feed .bl { left: 10%; } .g-feed .br { right: 10%; }
.g-feed .m-mouth {
  position: absolute; left: 25%; right: 25%; top: 54%; height: 30%; border-radius: 12% 12% 50% 50% / 10% 10% 90% 90%;
  background: #5a1036; overflow: hidden; transform-origin: top center;
}
.g-feed .tooth { position: absolute; top: 0; width: 18%; height: 26%; background: #fff; border-radius: 0 0 6px 6px; }
.g-feed .tooth:first-child { left: 20%; } .g-feed .tooth:nth-child(2) { right: 20%; }
.g-feed .m-tongue { position: absolute; bottom: -20%; left: 25%; width: 50%; height: 55%; border-radius: 50%; background: #ff6b9a; }
.g-feed .monster.chomp .m-mouth { animation: fd-chomp .18s ease-in-out 4 alternate; }
@keyframes fd-chomp { from { transform: scaleY(1); } to { transform: scaleY(.15); } }
.g-feed .monster.nope { animation: fd-no .5s ease; }
@keyframes fd-no { 20%, 60% { transform: rotate(-8deg); } 40%, 80% { transform: rotate(8deg); } }
.g-feed .counter { display: flex; gap: 8px; min-height: 40px; }
.g-feed .count-chip {
  display: flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 1.4rem;
  background: rgba(255, 255, 255, .85); box-shadow: 0 3px 8px rgba(40, 0, 100, .18);
}
.g-feed .count-chip b { font-size: 1.5rem; color: #5a2bd6; }
.g-feed .count-chip.empty { color: #9a8fc0; font-weight: 700; }
.g-feed .feed-plate {
  width: clamp(150px, 40vw, 240px); aspect-ratio: 1.6; border-radius: 50%; display: grid; place-items: center; padding: 6%;
  background: url(../img/art/props/plate.webp) center / 100% 100% no-repeat; /* illustrated plate, squashed into perspective */
  box-shadow: 0 12px 20px rgba(40, 0, 100, .2);
}
.g-feed .plate-items { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 0; max-width: 100%; }
.g-feed .plate-items.eaten .plate-food { animation: fd-eaten .45s ease-in forwards; }
@keyframes fd-eaten { to { transform: translate(-120px, -40px) scale(.2); opacity: 0; } }
.g-feed .plate-food {
  border: 0; background: none; padding: 0 1px; cursor: pointer; font-size: clamp(1.4rem, 5.6vw, 2rem); line-height: 1.1;
  animation: fd-land .35s cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent;
}
@keyframes fd-land { from { transform: translateY(-40px) scale(.3); opacity: 0; } }
.g-feed .feed-btn {
  font-family: inherit; font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 700; color: #fff; border: 0; cursor: pointer;
  min-height: 60px; padding: 10px 28px; border-radius: 999px;
  background: linear-gradient(180deg, #ff8fab, #ff4d6d); box-shadow: 0 6px 0 #c9184a, 0 10px 20px rgba(200, 24, 74, .3);
  transition: transform .1s;
}
.g-feed .feed-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #c9184a; }
.g-feed .basket { align-self: center; }
.g-feed .basket .food { font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1; display: block; }
.g-feed .basket .choice:active .food { transform: scale(.85); }

/* ───────────── Odd One Out ───────────── */
.g-oddone .detective {
  display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; padding: clamp(10px, 2.5vh, 20px);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .5), transparent 35%),
    linear-gradient(160deg, #fff1d6 0%, #ffd9b0 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), 0 10px 30px rgba(160, 60, 0, .2);
}
.g-oddone .odd-cards { width: 100%; max-width: 720px; margin: 0 auto; }
.g-oddone .odd-cards .choice { aspect-ratio: 1; min-height: 72px; }
.g-oddone .odd-emo { font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1; display: block; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .15)); }
.g-oddone .odd-txt { font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 700; }
.g-oddone .odd-cards.solved .choice:not(.is-correct) { opacity: .55; transform: scale(.94); transition: all .3s; }
@media (max-width: 520px) {
  .g-oddone .odd-cards { --cols: 2 !important; max-width: 340px; }
}

/* ───────── small screens / short screens ───────── */
@media (max-width: 420px) {
  .g-feed .den { flex-direction: column; justify-content: center; }
  .g-feed .m-side { flex-direction: row; }
  .g-feed .m-side .monster { margin-top: 0; }
  .g-feed .m-speech::after { display: none; }
  .g-moreless .plate { min-width: 0; flex-basis: 45%; }
  .g-letters .fish-body { font-size: 2.8rem; }
}
@media (max-height: 640px) {
  .g-bubbles .bub-scene, .g-letters .lagoon { min-height: 240px; }
  .g-feed .monster { width: 120px; }
  .g-feed .feed-plate { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-bubbles .bub-ray, .g-letters .wave, .g-letters .lb, .g-feed .eye, .g-feed .pupil, .g-feed .monster, .g-pattern .smoke { animation: none; }
}

/* ───────────── v2: Pip's Tricks demos + accessibility ───────────── */
/* Bubble Pop */
.g-bubbles .bubble .bub-icon.bub-sym { font-size: 2.2rem; color: #fff; filter: none; text-shadow: 0 0 3px rgba(0, 0, 0, .7), 0 2px 3px rgba(0, 0, 0, .45); }
.g-bubbles .bub-tally i { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
body.a11y-motor .g-bubbles .bubble::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; }
.demo-bub { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; font-size: .9em;
  background: radial-gradient(circle at 32% 27%, #fff 0 8%, rgba(255,255,255,0) 24%), radial-gradient(circle at 42% 38%, #fff 0%, var(--c) 58%);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .15), 0 4px 10px rgba(30, 20, 90, .2); }
.demo-bub.dim { opacity: .35; filter: grayscale(.4); }
.demo-bub.demo-hl { padding: 0; }
.g-bub-demo-col { flex-direction: column-reverse; }
/* Shape Safari */
.demo-shape { display: inline-block; width: 1.8em; height: 1.8em; }
.demo-shape .shape-svg { width: 100%; height: 100%; }
.g-shapes-demo b { font-size: .7em; }
/* Letter Lagoon: motor = bigger letter targets and a wider hit area */
body.a11y-motor .g-letters .fish { min-width: 124px; min-height: 100px; }
body.a11y-motor .g-letters .fish-letter { width: 72px; height: 72px; font-size: 2.6rem; }
body.a11y-motor .g-letters .fish::after { content: ''; position: absolute; inset: -14px; }
.g-letters-bed span { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; padding: 0 .15em; }
/* Who Says That? */
.g-animals .bubble-say.listen .spk { font-size: clamp(2.4rem, 9vw, 3.6rem); }
.g-animals .bubble-say.loud { border-radius: 30px; padding: clamp(14px, 3vh, 22px) clamp(24px, 6vw, 40px); box-shadow: 0 0 0 5px #ffb703, 0 14px 30px rgba(0, 60, 20, .25); }
.g-animals .bubble-say.loud .say-txt { font-size: clamp(2.4rem, 11vw, 4rem); letter-spacing: .03em; color: #d00000; text-shadow: 0 3px 0 #ffd166; }
.g-ani-say { color: #e85d04; }
/* Snack Stack */
.g-ml-demo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: clamp(28px, 7vw, 40px); }
.g-ml-demo .big { font-size: 1.5em; }
.g-ml-demo b { font-size: .7em; color: #6a5cff; margin-left: 8px; }
.g-ml-line span { font-size: .6em; font-weight: 700; min-width: 1.3em; text-align: center; }
/* Pattern Parade: colour-safe symbols on dots */
.g-pattern .pdot.sym, .g-pat-demo .pdot.sym { display: inline-grid; place-items: center; vertical-align: middle; }
.g-pattern .pdot.sym i, .g-pat-demo .pdot.sym i { font-style: normal; font-size: .6em; line-height: 1; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .8), 0 1px 2px rgba(0, 0, 0, .6); }
.g-pat-demo .pdot { display: inline-grid; place-items: center; width: 1em; height: 1em; border-radius: 50%; border: 3px solid #fff;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--c) 45%); box-shadow: 0 3px 6px rgba(0, 0, 0, .2); }
.g-pat-demo .qm { font-weight: 700; color: #ff8a3d; }
.g-pat-nums span { font-weight: 700; font-size: .8em; } .g-pat-nums b { font-size: .45em; color: #21c87a; }
/* Odd One Out: colour-safe symbol badges */
.g-oddone .odd-cards .choice { position: relative; }
.odd-sym { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  font-size: 1rem; font-weight: 700; color: #1b1040; background: #fff; box-shadow: 0 0 0 2px #1b1040; line-height: 1; }
.g-odd-demo > span, .g-odd-demo .demo-hl > span { position: relative; display: inline-block; }
.g-odd-demo .odd-sym { position: relative; right: auto; bottom: auto; display: inline-grid; width: 1.1em; height: 1.1em; font-size: .4em; vertical-align: bottom; margin-left: -.4em; }
.g-odd-nums span { font-weight: 700; font-size: .8em; padding: 0 .2em; }
