/* Base Styles */
body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0e6 50%, #e6f0ff 100%);
    min-height: 100vh;
    color: #4a4a4a;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.font-sacred {
    font-family: 'Cinzel Decorative', cursive;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:active {
    transform: scale(0.98);
}

/* Claymorphism */
.clay-btn {
    border-radius: 16px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 2px 2px 6px rgba(255, 255, 255, 0.7),
        inset -2px -2px 6px rgba(0, 0, 0, 0.05),
        6px 6px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.clay-btn:active {
    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.05),
        inset -4px -4px 8px rgba(255, 255, 255, 0.6);
    transform: translateY(2px);
}

.clay-primary {
    background-color: #fce7f3;
    color: #831843;
}

.clay-accent {
    background-color: #e0f2fe;
    color: #075985;
}

.clay-orange {
    background-color: #ffedd5;
    color: #9a3412;
}

.clay-green {
    background-color: #dcfce7;
    color: #166534;
}

.clay-purple {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.clay-white {
    background-color: #ffffff;
    color: #374151;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pop-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 60s linear infinite;
}

.animate-slide-up {
    animation: slide-up 0.4s ease-out forwards;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(-10%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

.animate-pop-in {
    animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Masking Frame Styles */
.mask-container {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: white;
    display: flex;
    flex-direction: column;
    animation: slide-up 0.3s ease-out;
}

.mask-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}