@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes rise-soft {
    from {
        opacity: 0;
        transform: translate3d(0, 6px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sheet-up {
    from {
        transform: translate3d(0, 24px, 0);
        opacity: 0.6;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sweep {
    to {
        transform: translateX(100%);
    }
}

@keyframes breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(250%);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.page {
    animation: rise var(--dur-3) var(--ease-out) both;
}

.reveal {
    animation: rise-soft var(--dur-3) var(--ease-out) both;
}

.reveal-1 {
    animation-delay: 30ms;
}

.reveal-2 {
    animation-delay: 60ms;
}

.reveal-3 {
    animation-delay: 90ms;
}

.reveal-4 {
    animation-delay: 120ms;
}

.reveal-5 {
    animation-delay: 150ms;
}

.pop {
    animation: pop var(--dur-3) var(--ease-out);
}

.rule--draw {
    display: none;
}

.collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-3) var(--ease-out);
}

.collapse--open {
    grid-template-rows: 1fr;
}

.collapse__inner {
    overflow: hidden;
}

@keyframes check-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes badge-pop {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    60% {
        transform: scale(1.18);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes tile-in {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.grid > * {
    animation: tile-in var(--dur-3) var(--ease-out) both;
}

.grid > *:nth-child(1) { animation-delay: 0ms; }
.grid > *:nth-child(2) { animation-delay: 35ms; }
.grid > *:nth-child(3) { animation-delay: 70ms; }
.grid > *:nth-child(4) { animation-delay: 105ms; }
.grid > *:nth-child(5) { animation-delay: 140ms; }
.grid > *:nth-child(6) { animation-delay: 175ms; }
.grid > *:nth-child(n + 7) { animation-delay: 200ms; }

.panel__row {
    animation: rise-soft var(--dur-2) var(--ease-out) both;
}

.dock__badge {
    animation: badge-pop var(--dur-3) var(--ease-out);
}

.btn,
.chip,
.icon-btn,
.p-card,
.panel__row--tappable,
.option-card,
.variant {
    -webkit-touch-callout: none;
}
