html {
    background-color: oklch(var(--b1));

    scroll-padding-top: 5rem;
}

@media (max-width: 768px) {
    html {
        background-position: top center;
    }
}

@supports (-webkit-touch-callout: none) {
    html {
        background-attachment: scroll;
    }
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -10px) scale(1.05); }
    66% { transform: translate(-5px, 5px) scale(0.95); }
}

.blob-animated {
    animation: blob-float 20s ease-in-out infinite;
}

.blob-animated-delayed {
    animation: blob-float 25s ease-in-out infinite;
    animation-delay: -5s;
}

/* content transition */
.main-transition {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-loading {
    opacity: 0;
    transform: translateY(4px);
}

/* Navbar menu */
.menu a.active {
    background-color: oklch(var(--p) / 0.15);
    color: oklch(var(--p));
}

/* Dock */
.dock a.dock-active {
    color: oklch(var(--p));
}

/* Начальное состояние — анимация на паузе */
.icon-animated animate,
.icon-animated animateTransform {
    animation-play-state: paused;
}

/* Запуск анимации */
.icon-animated.animate animate,
.icon-animated.animate animateTransform {
    animation-play-state: running;
}