body {
    font-family: 'EB Garamond', serif;
    background: #f8fafc;
    font-size: 1.15rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Libre Baskerville', serif;
}

/* Glassmorphism Refined */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 40px -15px rgba(0, 51, 255, 0.08);
    border-color: rgba(0, 51, 255, 0.2);
}

/* Custom Range Inputs Premium */
input[type=range] {
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(0, 51, 255, 0.08);
    border-radius: 10px;
    transition: background 0.3s ease;
}

input[type=range]:hover::-webkit-slider-runnable-track {
    background: rgba(0, 51, 255, 0.12);
}

input[type=range]::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #0033FF;
    cursor: pointer;
    appearance: none;
    padding: 0;
    margin-top: -8px;
    box-shadow: 0 4px 12px rgba(0, 51, 255, 0.4);
    border: 3px solid #ffffff;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 51, 255, 0.5);
}

/* Animations and Decorations */
.gradient-bg {
    background: radial-gradient(circle at top left, #f8fafc, #f1f5f9, #e2e8f0);
    background-attachment: fixed;
    background-size: cover;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(0, 51, 255, 0.1) 0%, rgba(255, 204, 0, 0.1) 100%);
    filter: blur(90px);
    border-radius: 50%;
    z-index: -1;
    animation: float 20s infinite alternate cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(50px, 30px) scale(1.05) rotate(5deg);
    }

    100% {
        transform: translate(-30px, 60px) scale(1) rotate(-5deg);
    }
}

/* Responsiveness Tweaks */
@media (max-width: 640px) {
    .glass {
        padding: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    h1 {
        font-size: 2.25rem !important;
    }

    .glass-card {
        padding: 1.5rem !important;
    }
}