/* pn-pair.css — shared look for the contrast games (hot/cold, up/down, open/shut, wet/dry, clean/dirty, full/empty).
   Loaded after pn-kit.css. Each game sets its own colours and moves its pieces with the CSS variables below. */
:root { --accent: #ff7a2f; }

.scene { position: relative; width: min(100cqw, 100cqh * 1.26); aspect-ratio: 340 / 270; container-type: size;  /* pn-kit.css also has a .scene (the fixed, untappable backdrop of the PN games): undo those parts here */
  pointer-events: auto; inset: auto; overflow: visible; z-index: auto; }
/* portrait phone: the scene grows taller, the ground stays at the bottom */
@container (orientation: portrait) { .scene { width: 100cqw; height: min(100cqh, 100cqw * 1.3); aspect-ratio: auto; } }
.scene .sky { position: absolute; inset: 0; z-index: 0; border: 4px solid var(--ink); border-radius: 22px; overflow: hidden;
  background: var(--sky, linear-gradient(#8fd6ff 0%, #d4f1ff 70%)); box-shadow: 0 6px 0 rgba(43, 35, 71, .25); }
.scene .back { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; z-index: 1; display: block; pointer-events: none;
  border-radius: 0 0 22px 22px; overflow: hidden; }
.scene .back.full { top: 0; height: 100%; border-radius: 22px; }
.scene svg .o, .item svg .o, .host svg .o { stroke: #2b2347; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.sun { position: absolute; z-index: 1; right: 7%; top: 5%; width: 12cqw; aspect-ratio: 1; border-radius: 50%; background: #ffd93b; border: 4px solid var(--ink);
  box-shadow: 0 0 0 7px rgba(255, 217, 59, .35); }
/* two slow clouds: the only background motion */
.cloud { position: absolute; z-index: 1; width: 17cqw; height: 6.5cqw; background: #fff; border: 3px solid var(--ink); border-radius: 99px; opacity: .95; pointer-events: none;
  animation: pp-drift 38s linear infinite; }
.cloud::before { content: ''; position: absolute; left: 22%; bottom: 40%; width: 46%; height: 150%; background: #fff; border: 3px solid var(--ink); border-bottom: 0; border-radius: 99px 99px 0 0; }
.cloud.c1 { top: 9%; animation-delay: -8s; }
.cloud.c2 { width: 12cqw; height: 5cqw; top: 22%; animation-duration: 52s; animation-delay: -30s; }
@keyframes pp-drift { from { left: -20%; } to { left: 105%; } }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none; left: 55%; } .cloud.c2 { left: 10%; } }

/* the two choices: equal big tap areas; the thing stands at the bottom of its area */
.choice { position: absolute; z-index: 3; top: var(--ctop, 3%); bottom: var(--feet, 10cqw); width: var(--cw, 44%); padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.choice.L { left: var(--cl, 4%); } .choice.R { right: var(--cl, 4%); }
.scene.busy .choice { pointer-events: none; }
.item { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: var(--iw, 86%); aspect-ratio: var(--iar, 1); transform-origin: 50% 100%; }
.item > svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; }
.item.shadow::after { content: ''; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: -3%; height: 9%; border-radius: 50%; background: rgba(43, 35, 71, .18); }
.item .say { z-index: 6; }
.choice:active .item { scale: .95; }
/* hint glow sits on the thing itself, not the big invisible button */
.item.glow { animation: none; }
.item.glow > svg { animation: pn-glow 1.1s ease-in-out infinite; }

/* the helper animal in the middle (some games) */
.host { position: absolute; z-index: 4; left: 50%; bottom: var(--hfeet, 6cqw); width: var(--hw, 30%); aspect-ratio: 1; translate: -50% 0; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transform-origin: 50% 100%; }
.host > svg { width: 100%; height: 100%; display: block; overflow: visible; transform-origin: 50% 100%; }
.host .say { z-index: 7; }

/* happy moves */
.item.yay > svg, .host.yay > svg { animation: pp-yay .7s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pp-yay { 0% { transform: none; } 25% { transform: scale(1.1, .88); } 55% { transform: translateY(-12%) scale(.96, 1.06); } 80% { transform: scale(1.04, .96); } 100% { transform: none; } }
.item.wag > svg, .host.wag > svg { animation: pp-wag .5s ease-in-out 2; }
@keyframes pp-wag { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.item.shiver > svg, .host.shiver > svg { animation: pp-shiver .08s linear 10; }
@keyframes pp-shiver { 25% { transform: translateX(-2.5%); } 75% { transform: translateX(2.5%); } }
.item.hop > svg, .host.hop > svg { animation: pp-hop .3s ease-in-out 3; }
@keyframes pp-hop { 50% { transform: translateY(-16%) scale(.95, 1.05); } }

#hero { gap: 2%; }
.q b { color: var(--accent); font-size: 1.3em; letter-spacing: .02em; }
.check-row:empty { min-height: 0; }

/* ---------- the new animals (same drawing rules as pn-kit's) ---------- */
.ani-penguin { --fur: #34405e; --muz: #ffffff; --inner: #ffb3c7; }
.ani-squirrel { --fur: #d0773a; --muz: #ffe2c2; --inner: #ffb38a; --tail: #b8612a; }
.ani-chick { --fur: #ffe14d; --muz: #fff3a6; --inner: #ffd21f; }
.ani-elephant { --fur: #a9bfd6; --muz: #c9d8e8; --inner: #ffb3c7; }
.ani-lamb { --fur: #fff8ee; --muz: #f4d7bb; --inner: #ffb3c7; --face: #f4d7bb; }
.ani-mouse { --fur: #bfbfd3; --muz: #ecebf6; --inner: #ffb3c7; }
.ani-pig { --fur: #ffbccd; --muz: #ff94b2; --inner: #ff7fa5; }
.ani-bunny { --fur: #f4ece4; --muz: #ffffff; --inner: #ffb3c7; }
.ani-lion { --fur: #ffc44d; --muz: #fff1c9; --inner: #ff9a5a; --mane: #d9772a; }
.ani-snail { --fur: #a8e070; --muz: #e6f7c8; --inner: #ffb3c7; }
.ani-fox { --fur: #ff8a3d; --muz: #ffffff; --inner: #ffd0b0; }
.ani-fox .a-lid { fill: var(--fur); }
.ani-caterpillar { --fur: #8fd14f; --muz: #d8f5b0; --inner: #ffb3c7; }
.ani-caterpillar .a-lid { fill: var(--fur); }
.ani-raccoon { --fur: #a09bb0; --muz: #ffffff; --inner: #ffb3c7; }
.ani-raccoon .a-lid { fill: var(--fur); }
.rc-mask { fill: #4a4458; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.ani-seal { --fur: #9fb4c8; --muz: #e3ecf4; --inner: #ffb3c7; }
.ani-seal .a-lid { fill: var(--fur); }
.ani-hippo { --fur: #a9a4dc; --muz: #d6d2f4; --inner: #ffb3c7; }
.ani-hippo .a-lid { fill: var(--fur); }
.ani-kangaroo { --fur: #d4935a; --muz: #f6dcc0; --inner: #ffb3c7; }
.ani-kangaroo .a-lid { fill: var(--fur); }
.ani-frog { --fur: #6cc24a; --muz: #d8f5b0; --inner: #ffb3c7; }
.ani-frog .a-lid { fill: var(--fur); }
.ani-frog .frog-feet { fill: #6cc24a; }
.ani-flamingo { --fur: #ff8fb3; --muz: #ffd0e0; --inner: #ff6f9c; }
.ani-flamingo .a-lid { fill: var(--fur); }
.ani-flamingo .mouth { display: none; }
.fl-beak { fill: #fff6e8; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.fl-tip { fill: var(--ink); }
.ani-hamster { --fur: #f2a65a; --muz: #fff4e2; --inner: #ffb3c7; }
.ani-hamster .a-lid { fill: var(--fur); }
.ani-hamster .h-pouch { opacity: 0; transition: opacity .2s; }
.ani-hamster.puff .h-pouch { opacity: 1; }
.ani-owl { --fur: #a8754b; --muz: #f7e6c8; --inner: #ffb3c7; }
.ani-owl .a-lid { fill: var(--muz); }
.ani-owl .a-muz { stroke: none; }
.a-glasses { fill: none; stroke: var(--ink); stroke-width: 2.6; }
.ani-penguin .a-lid, .ani-squirrel .a-lid, .ani-chick .a-lid, .ani-elephant .a-lid, .ani-mouse .a-lid, .ani-pig .a-lid, .ani-bunny .a-lid, .ani-lion .a-lid, .ani-snail .a-lid { fill: var(--fur); }
.ani-lamb .a-lid { fill: var(--face); }
.a-face { fill: var(--face, var(--muz)); stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.a-beak { fill: #ff9a1f; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.a-feet { fill: #ff9a1f; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.a-bushy { fill: var(--tail); stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.a-wool { fill: var(--fur); stroke: var(--ink); stroke-width: 3.5; }
.a-trunk { fill: var(--fur); stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.a-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }

/* shared touches: the measuring star, floating bubbles, mud splashes */
.pp-star { position: fixed; z-index: 21; width: 34px; height: 34px; pointer-events: none; }
.pp-star svg { width: 100%; height: 100%; display: block; }
.pp-float { position: fixed; z-index: 21; pointer-events: none; border-radius: 50%; }
.pp-float.bubble { background: radial-gradient(circle at 32% 30%, #fff 0 22%, rgba(220, 240, 255, .55) 24%); border: 2px solid #2b2347; }
.pp-float.mud { background: #8a5a2b; border: 2px solid #2b2347; border-radius: 46% 54% 50% 50%; }
