/* Shared visual tokens */
.glow-text-gold {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
}

.glow-text-fire {
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.6), 0 0 20px rgba(249, 115, 22, 0.4);
}

.orb-gold {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
}

.bg-parchment {
    background-color: #fdfbf7;
}

.feast-card-scroller {
    overflow-y: hidden;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scroll-padding-inline: 1.5rem;
    user-select: none;
    -webkit-user-select: none;
}

.feast-card-scroller::-webkit-scrollbar {
    display: none;
}

.feast-card-scroller .js-feast-card {
    -webkit-user-drag: none;
}

.feast-slider-control:disabled {
    opacity: 0.36;
    cursor: default;
    transform: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.journey-node {
    position: relative;
    transition:
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.24s ease,
        background-color 0.24s ease,
        color 0.24s ease;
}

.journey-node:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    z-index: 10;
}

.omer-journey-line {
    z-index: 1;
    pointer-events: none;
}

.calendar-event-node {
    --event-node-size: 44px;
    --event-node-color: #d4af37;
    --event-node-glow: rgba(212, 175, 55, 0.42);
    --event-node-hover-glow: rgba(212, 175, 55, 0.42);
    --event-node-hover-glow-soft: rgba(212, 175, 55, 0.18);
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--event-node-size);
    height: var(--event-node-size);
    cursor: pointer;
    color: #d4d4d4;
}

.calendar-event-node.journey-node:hover {
    transform: none;
    box-shadow: none;
}

.calendar-event-node--passover {
    --event-node-color: #ef4444;
    --event-node-glow: rgba(239, 68, 68, 0.46);
    --event-node-hover-glow: rgba(239, 68, 68, 0.4);
    --event-node-hover-glow-soft: rgba(239, 68, 68, 0.16);
    color: #ef4444;
}

.calendar-event-node--unleavened {
    --event-node-color: #e5e5e5;
    --event-node-glow: rgba(255, 255, 255, 0.42);
    --event-node-hover-glow: rgba(255, 255, 255, 0.38);
    --event-node-hover-glow-soft: rgba(255, 255, 255, 0.14);
    color: #a3a3a3;
}

.calendar-event-node--today:not(.calendar-event-node--done) {
    color: #fff;
}

.calendar-event-node--done.calendar-event-node--passover {
    color: #fff;
}

.calendar-event-node--done.calendar-event-node--unleavened {
    color: #111;
}

.calendar-event-glow,
.calendar-event-surface,
.calendar-event-outline,
.calendar-event-today-pulse {
    position: absolute;
    border-radius: inherit;
    pointer-events: none;
}

.calendar-event-glow {
    inset: 0;
    z-index: 0;
    opacity: 0;
    background: transparent;
    box-shadow:
        0 0 20px var(--event-node-hover-glow),
        0 0 40px var(--event-node-hover-glow-soft);
    filter: none;
    transform: none;
    transition:
        opacity 0.24s ease,
        box-shadow 0.24s ease;
}

.calendar-event-node--passover .calendar-event-glow {
    background: transparent;
}

.calendar-event-node--unleavened .calendar-event-glow {
    background: transparent;
}

.calendar-event-node:hover .calendar-event-glow {
    opacity: 1;
}

.calendar-event-surface,
.calendar-event-outline,
.calendar-event-today-pulse {
    inset: 0;
}

.calendar-event-surface {
    z-index: 2;
    background: #050505;
    border: 1px solid #404040;
    transition:
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}

.calendar-event-node--passover .calendar-event-surface {
    border-color: rgba(127, 29, 29, 0.5);
}

.calendar-event-node--unleavened .calendar-event-surface {
    border-color: rgba(115, 115, 115, 0.5);
}

.calendar-event-node:hover .calendar-event-surface,
.calendar-event-node--today .calendar-event-surface {
    border-color: var(--event-node-color);
}

.calendar-event-node--today .calendar-event-surface {
    box-shadow: 0 0 12px var(--event-node-glow);
}

.calendar-event-node--done.calendar-event-node--passover .calendar-event-surface {
    background: #991b1b;
    border-color: #ef4444;
}

.calendar-event-node--done.calendar-event-node--unleavened .calendar-event-surface {
    background: #e5e5e5;
    border-color: #fff;
}

.calendar-event-outline {
    z-index: 3;
    opacity: 0;
}

.calendar-event-node--done .calendar-event-outline {
    opacity: 1;
    box-shadow:
        inset 0 0 0 2px var(--event-node-color),
        inset 0 0 0 4px #0a0a0a,
        inset 0 0 0 5px var(--event-node-color);
}

.calendar-event-today-pulse {
    z-index: 4;
    opacity: 0;
}

.calendar-event-node--today.calendar-event-node--passover .calendar-event-today-pulse {
    opacity: 1;
    box-shadow:
        inset 0 0 0 2px #f87171,
        0 0 20px rgba(255, 50, 50, 0.9),
        0 0 40px rgba(255, 50, 50, 0.22);
    animation: calendarPassoverPulse 1.7s ease-in-out infinite;
}

.calendar-event-node--today.calendar-event-node--unleavened .calendar-event-today-pulse {
    opacity: 1;
    box-shadow:
        inset 0 0 0 2px #fff,
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.2);
    animation: calendarUnleavenedPulse 1.7s ease-in-out infinite;
}

.calendar-event-text {
    position: relative;
    z-index: 5;
    font-family: var(--font-title-serif, "Noto Serif KR", ui-serif, Georgia, "Times New Roman", Times, serif);
    font-size: 8px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.calendar-event-node--unleavened .calendar-event-text {
    font-size: 7.5px;
    letter-spacing: -0.025em;
}

@keyframes calendarPassoverPulse {
    0%,
    100% {
        opacity: 1;
        box-shadow:
            inset 0 0 0 2px #f87171,
            0 0 20px rgba(255, 50, 50, 0.9),
            0 0 40px rgba(255, 50, 50, 0.22);
    }
    50% {
        opacity: 0.58;
        box-shadow:
            inset 0 0 0 2px rgba(248, 113, 113, 0.72),
            0 0 8px rgba(255, 50, 50, 0.44),
            0 0 16px rgba(255, 50, 50, 0.14);
    }
}

@keyframes calendarUnleavenedPulse {
    0%,
    100% {
        opacity: 1;
        box-shadow:
            inset 0 0 0 2px #fff,
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.2);
    }
    50% {
        opacity: 0.58;
        box-shadow:
            inset 0 0 0 2px rgba(255, 255, 255, 0.72),
            0 0 8px rgba(255, 255, 255, 0.42),
            0 0 16px rgba(255, 255, 255, 0.14);
    }
}

@media (min-width: 640px) {
    .calendar-event-node {
        --event-node-size: 52px;
    }

    .calendar-event-text {
        font-size: 10px;
    }

    .calendar-event-node--unleavened .calendar-event-text {
        font-size: 9px;
    }
}

@media (min-width: 768px) {
    .calendar-event-node {
        --event-node-size: 60px;
    }

    .calendar-event-text {
        font-size: 12px;
        line-height: 1rem;
    }

    .calendar-event-node--unleavened .calendar-event-text {
        font-size: 10px;
        line-height: 14px;
        letter-spacing: 0;
    }
}

.omer-mission-node {
    --omer-node-size: 44px;
    --omer-read-progress: 0%;
    --omer-node-color: #d4af37;
    --omer-node-glow: rgba(212, 175, 55, 0.42);
    --omer-node-hover-glow: rgba(212, 175, 55, 0.42);
    --omer-node-hover-glow-soft: rgba(212, 175, 55, 0.18);
    --omer-star-inset: 5px;
    --omer-label-size: 6px;
    --omer-number-size: 12px;
    isolation: isolate;
    width: var(--omer-node-size);
    height: var(--omer-node-size);
    color: #d4d4d4;
}

.omer-mission-node.journey-node:hover {
    transform: none;
    box-shadow: none;
}

.omer-mission-node--unleavened {
    --omer-node-color: #e5e5e5;
    --omer-node-glow: rgba(255, 255, 255, 0.4);
    --omer-node-hover-glow: rgba(255, 255, 255, 0.38);
    --omer-node-hover-glow-soft: rgba(255, 255, 255, 0.14);
}

.omer-mission-node--pentecost {
    --omer-node-color: #ea580c;
    --omer-node-glow: rgba(234, 88, 12, 0.62);
    --omer-node-hover-glow: rgba(234, 88, 12, 0.54);
    --omer-node-hover-glow-soft: rgba(153, 27, 27, 0.22);
    color: #fff;
    z-index: 20;
}

.omer-mission-node--today:not(.omer-mission-node--read-complete):not(.omer-mission-node--pentecost) {
    color: #ffe55c;
}

.omer-mission-node--unleavened.omer-mission-node--today:not(.omer-mission-node--read-complete) {
    color: #fff;
}

.omer-mission-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    background: transparent;
    box-shadow:
        0 0 20px var(--omer-node-hover-glow),
        0 0 40px var(--omer-node-hover-glow-soft);
    filter: none;
    transform: none;
    transition:
        opacity 0.24s ease,
        box-shadow 0.24s ease;
}

.omer-mission-node--unleavened .omer-mission-glow {
    background: transparent;
}

.omer-mission-node--pentecost .omer-mission-glow {
    opacity: 1;
    background: transparent;
    filter: none;
    transform: none;
}

.omer-mission-node:hover .omer-mission-glow {
    opacity: 1;
}

.omer-mission-node--pentecost:hover .omer-mission-glow {
    filter: none;
    transform: none;
}

.omer-mission-surface,
.omer-mission-outline,
.omer-mission-today-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.omer-mission-surface {
    z-index: 2;
    background: #0a0a0a;
    border: 1px solid #404040;
    transition:
        background-color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}

.omer-mission-node--unleavened .omer-mission-surface {
    border-color: rgba(115, 115, 115, 0.5);
}

.omer-mission-node:hover .omer-mission-surface,
.omer-mission-node--today .omer-mission-surface {
    border-color: var(--omer-node-color);
}

.omer-mission-node--today .omer-mission-surface {
    box-shadow: 0 0 12px var(--omer-node-glow);
}

.omer-mission-node--read-complete .omer-mission-surface {
    background: var(--omer-node-color);
    border-color: var(--omer-node-color);
}

.omer-mission-node--pentecost .omer-mission-surface,
.omer-mission-node--pentecost.omer-mission-node--read-complete .omer-mission-surface {
    background: linear-gradient(90deg, #ea580c, #dc2626);
    border-color: transparent;
}

.omer-mission-node--read-complete {
    color: #050505;
}

.omer-mission-node--pentecost,
.omer-mission-node--pentecost.omer-mission-node--read-complete {
    color: #fff;
}

.omer-mission-node--read-complete .omer-mission-glow {
    transform: none;
}

.omer-mission-node--pentecost.omer-mission-node--read-complete .omer-mission-glow {
    opacity: 1;
    filter: none;
    transform: none;
}

.omer-mission-node--pentecost.omer-mission-node--read-complete:hover .omer-mission-glow {
    filter: none;
    transform: none;
}

.omer-mission-outline {
    z-index: 3;
    opacity: 0;
    transition: opacity 0.24s ease, box-shadow 0.24s ease;
}

.omer-mission-node--read-complete .omer-mission-outline {
    opacity: 1;
    box-shadow:
        inset 0 0 0 2px var(--omer-node-color),
        inset 0 0 0 4px #0a0a0a,
        inset 0 0 0 5px var(--omer-node-color);
}

.omer-mission-node--today.omer-mission-node--read-complete .omer-mission-outline {
    box-shadow:
        inset 0 0 0 2px var(--omer-node-color),
        inset 0 0 0 4px #0a0a0a,
        inset 0 0 0 5px var(--omer-node-color),
        0 0 24px rgba(255, 215, 0, 0.78);
}

.omer-mission-node--pentecost .omer-mission-outline,
.omer-mission-node--pentecost.omer-mission-node--read-complete .omer-mission-outline {
    opacity: 1;
    box-shadow:
        inset 0 0 0 2px rgba(234, 88, 12, 0.78),
        inset 0 0 0 4px rgba(10, 10, 10, 0.9),
        inset 0 0 0 5px rgba(234, 88, 12, 0.86),
        0 0 28px rgba(234, 88, 12, 0.72);
}

.omer-mission-today-pulse {
    z-index: 4;
    opacity: 0;
}

.omer-mission-node--today .omer-mission-today-pulse {
    opacity: 1;
    box-shadow:
        inset 0 0 0 2px #ffe55c,
        0 0 20px rgba(255, 215, 0, 0.9),
        0 0 40px rgba(255, 215, 0, 0.28);
    animation: omerTodayRingPulse 1.7s ease-in-out infinite;
}

.omer-mission-fill {
    opacity: 0;
    position: absolute;
    inset: 0;
    z-index: 3;
    height: 100%;
    width: 100%;
    overflow: visible;
    pointer-events: none;
    transform: rotate(-90deg);
    transition: opacity 0.24s ease;
}

.omer-mission-node--read-progress .omer-mission-fill {
    opacity: 1;
}

.omer-mission-fill__track,
.omer-mission-fill__progress {
    fill: none;
    stroke-width: 4;
}

.omer-mission-fill__track {
    stroke: rgba(255, 255, 255, 0.08);
}

.omer-mission-fill__progress {
    stroke: rgba(212, 175, 55, 0.88);
    stroke-linecap: round;
    stroke-dasharray: 295.31;
    stroke-dashoffset: 295.31;
    transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.omer-mission-star {
    position: absolute;
    inset: var(--omer-star-inset);
    z-index: 4;
    border-radius: inherit;
    background: rgba(185, 28, 28, 0.62);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0;
    transform: rotate(-8deg);
    filter: drop-shadow(0 0 5px rgba(127, 29, 29, 0.3));
    transition: opacity 0.32s ease;
    pointer-events: none;
}

.omer-mission-node--read-complete .omer-mission-fill__progress,
.omer-mission-node--read-complete .omer-mission-fill__track {
    opacity: 0;
}

.omer-mission-node--proclaimed .omer-mission-star {
    opacity: 0.68;
}

.omer-mission-text {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title-serif, "Noto Serif KR", ui-serif, Georgia, "Times New Roman", Times, serif);
    font-weight: 600;
    line-height: 1;
}

.omer-mission-label {
    margin-bottom: -2px;
    font-size: var(--omer-label-size);
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0.62;
}

.omer-mission-number {
    font-size: var(--omer-number-size);
    font-weight: 600;
    line-height: 1.08;
}

.omer-mission-node--proclaimed .omer-mission-label,
.omer-mission-node--proclaimed .omer-mission-number {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.28), 0 0 8px rgba(255, 255, 255, 0.22);
}

.omer-mission-node--pentecost .omer-mission-label,
.omer-mission-node--pentecost .omer-mission-number,
.omer-mission-node--pentecost.omer-mission-node--proclaimed .omer-mission-label,
.omer-mission-node--pentecost.omer-mission-node--proclaimed .omer-mission-number {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 8px rgba(255, 255, 255, 0.24);
}

@keyframes omerTodayRingPulse {
    0%,
    100% {
        opacity: 1;
        box-shadow:
            inset 0 0 0 2px #ffe55c,
            0 0 20px rgba(255, 215, 0, 0.9),
            0 0 40px rgba(255, 215, 0, 0.28);
    }
    50% {
        opacity: 0.58;
        box-shadow:
            inset 0 0 0 2px rgba(255, 229, 92, 0.72),
            0 0 8px rgba(255, 215, 0, 0.44),
            0 0 16px rgba(255, 215, 0, 0.14);
    }
}

@media (min-width: 640px) {
    .omer-mission-node {
        --omer-node-size: 52px;
        --omer-star-inset: 6px;
        --omer-label-size: 7px;
        --omer-number-size: 16px;
    }
}

@media (min-width: 768px) {
    .omer-mission-node {
        --omer-node-size: 60px;
        --omer-star-inset: 7px;
        --omer-label-size: 8px;
        --omer-number-size: 18px;
    }
}

/* Hagah interaction */
#hagah-scroll-region {
    overscroll-behavior-y: contain;
    overflow-anchor: none;
}

#teleprompter-board,
#hagah-text-container,
.hagah-history-list,
.hagah-history-item,
.hagah-history-text {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

#teleprompter-board {
    --hagah-history-pull-distance: 0px;
    --hagah-history-pull-progress: 0;
    --hagah-history-pull-offset: -10px;
}

.hagah-history-pull-indicator {
    display: flex;
    width: 100%;
    height: var(--hagah-history-pull-distance);
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: rgba(146, 93, 14, 0.68);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    opacity: var(--hagah-history-pull-progress);
    pointer-events: none;
    text-align: center;
    transition:
        height 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.18s ease;
}

.hagah-history-pull-indicator-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    transform: translateY(var(--hagah-history-pull-offset));
    transition: transform 0.18s ease;
}

.hagah-history-pull-label {
    display: block;
}

.hagah-history-pull-icon {
    display: inline-flex;
    font-size: 1rem;
    line-height: 1;
    opacity: calc(0.58 + (var(--hagah-history-pull-progress) * 0.42));
    animation: hagahHistoryPullArrow 0.9s ease-in-out infinite;
}

#teleprompter-board.is-pulling-history .hagah-history-pull-indicator,
#teleprompter-board.is-pulling-history .hagah-history-pull-indicator-inner {
    transition: none;
}

@keyframes hagahHistoryPullArrow {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.hagah-history-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    overflow-anchor: none;
    transition:
        filter 0.24s ease,
        opacity 0.24s ease;
}

.hagah-history-spacer {
    width: 100%;
    height: 0;
    flex: 0 0 auto;
    transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#teleprompter-board.hagah-history-collapsed .hagah-history-spacer {
    display: none;
}

#teleprompter-board.hagah-history-collapsed .hagah-history-list {
    gap: 2rem;
}

#teleprompter-board.hagah-history-collapsed .hagah-history-item:not(.is-current):not(.is-inline-previous) {
    display: none;
}

#teleprompter-board.hagah-history-collapsed .hagah-history-item.is-inline-previous {
    transform: scale(0.86);
    opacity: 0.3;
    filter: saturate(0.72);
}

#teleprompter-board.hagah-history-collapsed .hagah-history-item.is-current {
    transform: scale(1);
    opacity: 1;
    filter: none;
}

#teleprompter-board.hagah-history-no-pull .hagah-history-pull-indicator {
    display: none;
}

.hagah-history-item {
    width: 100%;
    max-width: 46rem;
    transform: scale(0.86);
    transform-origin: center center;
    opacity: 0.34;
    filter: saturate(0.72);
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        filter 0.28s ease;
    will-change: transform, opacity, filter;
}

.hagah-history-item.is-active {
    position: relative;
    z-index: 2;
    transform: scale(1);
    opacity: 1;
    filter: none;
}

.hagah-history-item.is-current:not(.is-active) {
    opacity: 0.56;
}

.hagah-history-text {
    width: 100%;
    margin: 0;
}

.hagah-history-item:not(.is-active) .hagah-history-text {
    color: #525252;
}

#teleprompter-board.hagah-source-obscured .hagah-history-list {
    filter: blur(7px);
    opacity: 0.2;
}

.hagah-voice-record-button {
    --voice-level: 0;
    --voice-glow-opacity: 0;
}

.hagah-voice-record-button.is-uploading {
    cursor: progress;
}

#hagah-voice-play-button.is-playing #hagah-voice-play-progress-fill {
    background: linear-gradient(90deg, rgba(245, 221, 171, 0.82) 0%, rgba(217, 119, 6, 0.9) 100%);
}

#hagah-text-container .hagah-stage-line {
    display: inline-block;
    transition: filter 0.3s ease, opacity 0.3s ease;
    will-change: filter, opacity;
}

#hagah-text-container .hagah-particle-suffix {
    display: inline;
    transition: filter 0.3s ease, opacity 0.3s ease;
    will-change: filter, opacity;
}

#hagah-text-container .hagah-stage-muted {
    display: inline-block;
    filter: blur(7px);
    opacity: 0.2;
    vertical-align: baseline;
}

#hagah-text-container .hagah-stage-muted--particle {
    display: inline;
    filter: blur(6px);
    opacity: 0.3;
}

#hagah-text-container .hagah-stage-muted--line {
    opacity: 0.2;
}

#teleprompter-board.hagah-source-obscured #hagah-text-container .hagah-stage-muted,
#teleprompter-board.hagah-source-obscured #hagah-text-container .hagah-stage-muted--particle,
#teleprompter-board.hagah-source-obscured #hagah-text-container .hagah-stage-muted--line {
    filter: none;
    opacity: 1;
    color: inherit;
    text-shadow: none;
}

#daily-modal.daily-modal--omer-review #hagah-read-mission,
#daily-modal.daily-modal--omer-review #hagah-stage-controls,
#daily-modal.daily-modal--omer-review #hagah-form-header,
#daily-modal.daily-modal--omer-review #hagah-textarea-wrap,
#daily-modal.daily-modal--omer-review #hagah-form-section > div:first-child {
    display: none;
}

@media (min-width: 768px) {
    #hagah-text-container.hagah-text-container--compact-desktop {
        font-size: 1.25rem;
        line-height: 1.85;
    }
}

/* Pentecost image flash */
.pentecost-thunder {
    isolation: isolate;
}

.pentecost-arch-clip {
    border-radius: inherit;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.pentecost-arch-clip > * {
    border-radius: inherit;
}

.pentecost-thunder__image {
    transform: scale(1.1);
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition:
        transform 1s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.22s ease;
}

.pentecost-flash-overlay {
    z-index: 2;
    opacity: 0;
    mix-blend-mode: screen;
    filter: saturate(1.15);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 1), transparent 16%),
        radial-gradient(circle at 52% 38%, rgba(255, 255, 255, 0.9), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.28) 100%);
}

.pentecost-thunder:hover .pentecost-thunder__image {
    transform: scale(1);
    filter: brightness(1.18) contrast(1.03);
}

.pentecost-thunder:hover .pentecost-flash-overlay {
    animation: pentecostWhiteFlash 7s linear infinite;
}

@keyframes pentecostWhiteFlash {
    0%,
    100% {
        opacity: 0;
    }
    9% {
        opacity: 0;
    }
    10.8% {
        opacity: 1;
    }
    11.9% {
        opacity: 0.12;
    }
    13.2% {
        opacity: 0.68;
    }
    14.8% {
        opacity: 0;
    }
    46% {
        opacity: 0;
    }
    47.6% {
        opacity: 0.72;
    }
    48.5% {
        opacity: 0.14;
    }
    49.8% {
        opacity: 0.96;
    }
    51.4% {
        opacity: 0;
    }
    78% {
        opacity: 0;
    }
    79.2% {
        opacity: 0.46;
    }
    79.9% {
        opacity: 0.1;
    }
    81.1% {
        opacity: 0.76;
    }
    82.4% {
        opacity: 0.2;
    }
    83.3% {
        opacity: 0.98;
    }
    85.2% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pentecost-thunder:hover .pentecost-thunder__image {
        filter: brightness(1.18) contrast(1.03);
    }

    .pentecost-thunder:hover .pentecost-flash-overlay {
        animation: none;
        opacity: 0.26;
    }
}

/* Feast overview cards */
@media (max-width: 767px) {
    #section-feasts .js-feast-card {
        width: min(80vw, 320px);
        max-width: 320px;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
