:root {
    --liturgical-white: #ffffff;
    --sacramental-gold: #d4af37;
    --ivory-paper: #fdfbf7;
    --text-charcoal: #333333;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Libre Baskerville', serif;
}

body {
    background-color: var(--ivory-paper);
    color: var(--text-charcoal);
    font-family: var(--font-body);
    overflow-x: hidden;
    background-image: radial-gradient(circle at center, #ffffff 0%, var(--ivory-paper) 100%);
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--sacramental-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0px 2px 4px rgba(212, 175, 55, 0.2);
    background: linear-gradient(45deg, #b8860b, #d4af37, #ffd700, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sacramental-gold), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Components */
.chalice-card {
    background: var(--liturgical-white);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    position: relative;
    border-radius: 4px;
}

.chalice-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.icon-gold {
    color: var(--sacramental-gold);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Hero Animations */
.chalice-container {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.chalice-icon {
    font-size: 5rem;
    color: var(--sacramental-gold);
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    animation: pulseGlow 3s infinite alternate;
}

.rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    z-index: 1;
    animation: rotateRays 20s linear infinite;
}

@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
        transform: scale(1.05);
    }
}

@keyframes rotateRays {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Buttons */
.btn-chalice {
    background-color: var(--liturgical-white);
    color: var(--sacramental-gold);
    border: 1px solid var(--sacramental-gold);
    padding: 12px 35px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-chalice:hover {
    background-color: var(--sacramental-gold);
    color: var(--liturgical-white);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-chalice-filled {
    background-color: var(--sacramental-gold);
    color: var(--liturgical-white);
    border: 1px solid var(--sacramental-gold);
    padding: 12px 35px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-chalice-filled:hover {
    background-color: #b8860b;
    border-color: #b8860b;
    color: white;
    text-decoration: none;
}

/* Countdown */
.chalice-countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.time-box {
    text-align: center;
    min-width: 70px;
}

.time-box span {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--sacramental-gold);
    line-height: 1;
}

.time-box small {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.btn-music-chalice {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--liturgical-white);
    border: 2px solid var(--sacramental-gold);
    color: var(--sacramental-gold);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.btn-music-chalice:hover {
    transform: scale(1.1);
}