/* Галька — персонаж-ночник Pure (стиль «Галька · Жемчуг», 17.11.2026). Разметка — templates/_pebble.html.
   data-light: on — светится, wait — просыпается, off — спит. Общий файл для сайта, кабинета, админки, Mini App и /me. */
.pebble { display:block; width:100%; height:100%; overflow:visible; }
.pebble .pb-glow, .pebble .pb-floor, .pebble .pb-lit, .pebble .pb-open, .pebble .pb-closed { transition:opacity 1.2s ease; }
.pebble .pb-float { animation:pb-float 6s ease-in-out infinite; transform-box:fill-box; transform-origin:50% 100%; }
.pebble .pb-breath { animation:pb-breath 4.8s ease-in-out infinite; transform-box:fill-box; transform-origin:50% 60%; }
.pebble .pb-glow { animation:pb-glow 4.8s ease-in-out infinite; }
.pebble .pb-blink { animation:pb-blink 5.5s infinite; transform-box:fill-box; transform-origin:50% 50%; }
.pebble .pb-look { transition:transform .5s cubic-bezier(.3,.7,.3,1); }
.pebble .pb-closed { opacity:0; }
.pebble[data-light=off] .pb-glow { opacity:.05; animation:none; }
.pebble[data-light=off] .pb-floor, .pebble[data-light=off] .pb-lit, .pebble[data-light=off] .pb-open { opacity:0; }
.pebble[data-light=off] .pb-closed { opacity:1; }
.pebble[data-light=off] .pb-float { animation-duration:9s; }
.pebble[data-light=off] .pb-breath { animation-duration:8s; }
.pebble[data-light=wait] .pb-lit { opacity:.55; }
.pebble[data-light=wait] .pb-floor { opacity:.35; }
.pebble[data-light=wait] .pb-glow { animation:pb-pulse 1.1s ease-in-out infinite; }
.pebble[data-light=wait] .pb-breath { animation-duration:1.1s; }
.pebble[data-light=on] .pb-floor { opacity:.75; }
@keyframes pb-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
@keyframes pb-breath { 0%,100% { transform:scale(1,1); } 50% { transform:scale(1.025,.985); } }
@keyframes pb-glow { 0%,100% { opacity:.7; } 50% { opacity:1; } }
@keyframes pb-pulse { 0%,100% { opacity:.25; } 50% { opacity:.8; } }
@keyframes pb-blink { 0%,92%,100% { transform:scaleY(1); } 95% { transform:scaleY(.08); } }
@media (prefers-reduced-motion:reduce) { .pebble * { animation:none !important; } }
