/* Панда-маскот (panda-pet.js): общие детали сцены 640×300 и «живущая на сайте» панда в левом нижнем углу */
.pd-part { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; pointer-events: none; will-change: transform; }
.pd-flap { filter: brightness(0.93); }
.pd-flap--front { filter: brightness(0.86); }
.pd-shadow { position: absolute; top: 266px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 36, 22, 0.35), rgba(14, 36, 22, 0)); pointer-events: none; }

/* Живёт на сайте: сцена уменьшена до 0,37 (≈237×111), кликается только сама панда */
.pd-pet { position: fixed; left: 8px; bottom: 6px; z-index: 60; width: 237px; height: 111px; pointer-events: none; transition: opacity 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1), bottom 300ms cubic-bezier(0.16, 1, 0.3, 1); animation: pd-pet-in 600ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pd-pet-in { from { opacity: 0; transform: translateY(12px); } }
.pd-pet.is-gone { opacity: 0; transform: translateY(16px); }
.pd-pet__stage { position: absolute; left: 0; top: 0; width: 640px; height: 300px; transform: scale(0.37); transform-origin: 0 0; }
.pd-pet__hit { position: absolute; left: 0; bottom: 6px; width: 46px; height: 72px; padding: 0; border: 0; border-radius: 26px; background: none; cursor: pointer; pointer-events: auto; }
.pd-pet__hit:focus-visible { outline: 2px solid var(--accent-strong, #00b22d); outline-offset: 2px; }
.pd-pet__x { position: absolute; left: 4px; top: 10px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--muted, #5b625d); box-shadow: 0 1px 2px rgba(14, 36, 22, 0.08), 0 4px 12px rgba(14, 36, 22, 0.12); font-size: 16px; line-height: 24px; cursor: pointer; pointer-events: auto; opacity: 0; transition: opacity 200ms ease; }
.pd-pet:hover .pd-pet__x, .pd-pet__x:focus-visible { opacity: 1; }
body.has-cookie-banner .pd-pet { bottom: 96px; }
@media (max-width: 1199px), (prefers-reduced-motion: reduce) { .pd-pet { display: none; } }
