/**
 * Prayer System Styles
 * Meditation and prayer interface styling
 */

/* Main prayer menu container - Prayer Book style */
.prayer-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3a2f25;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    color: #3a2a1a;
}

/* Prayer book container */
.prayer-menu::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
        radial-gradient(ellipse at center, #4a3f35 0%, #2a1f15 100%);
    pointer-events: none;
}

/* Prayer menu header - book cover/title page */
.prayer-menu-header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prayer-menu-title {
    margin: 0;
    font-size: 32px;
    font-weight: normal;
    color: #f4e4c0;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-bottom: 2px solid #8b7355;
    padding-bottom: 10px;
}

.prayer-menu-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: 2px solid #8E7F7F;
    color: #5F5449;
    font-size: 16px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    z-index: 300;
}

.prayer-menu-close:hover {
    background: rgba(142, 127, 127, 0.2);
    border-color: #5F5449;
}

/* Book cover - outer leather binding */
.prayer-book-cover {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 650px;
    padding: 12px;
    background: #3A3238;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 2px solid #8E7F7F;
    perspective: 2000px;
}

/* Book bookmarks on left side */
.prayer-bookmarks {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 300;
}

.prayer-bookmark {
    background: #EBE6D8;
    border: 2px solid #8E7F7F;
    border-right: none;
    padding: 15px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: #5F5449;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}

.prayer-bookmark:hover {
    background: #5F5449;
    color: #EBE6D8;
    left: -45px;
}

.prayer-bookmark.active {
    background: #5F5449;
    color: #EBE6D8;
    border-color: #5F5449;
}

/* Custom prayers view */
.custom-prayers-content {
    width: 100%;
    height: 100%;
    background: #EBE6D8;
    padding: 60px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-prayer-info {
    text-align: center;
    font-family: 'Courier New', monospace;
}

.custom-prayer-info h2 {
    font-size: 24px;
    color: #3A3238;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #8E7F7F;
    padding-bottom: 15px;
}

.custom-prayer-info p {
    font-size: 13px;
    color: #5F5449;
    line-height: 1.6;
    margin: 0;
}

/* Prayer menu content - open book */
.prayer-menu-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transform-style: preserve-3d;
    background: linear-gradient(to right,
        #8E7F7F 0%,
        #5F5449 49%,
        #3A3238 50%,
        #5F5449 51%,
        #8E7F7F 100%);
    border-radius: 0;
}

/* Book spine */
.book-spine {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(to right,
        rgba(0,0,0,0.3),
        rgba(58,50,56,0.5),
        rgba(0,0,0,0.3));
    z-index: 100;
    pointer-events: none;
    border-radius: 0;
}

/* Static pages spread */
.prayer-spread {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

/* Left static page */
.page-left {
    width: 50%;
    height: 100%;
    background: #EBE6D8;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #8E7F7F;
}

/* Paper texture overlay */
.page-left::before,
.page-right::before,
.flip-page-front::before,
.flip-page-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.1"/></svg>');
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

/* Right static page */
.page-right {
    width: 50%;
    height: 100%;
    background: #EBE6D8;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    border-left: 1px solid #8E7F7F;
}

/* Flipping page overlay (like magazine) */
.flip-page {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    right: 0;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    z-index: 10;
}

.flip-page.flipping {
    transform: rotateY(-180deg);
}

.flip-page-front,
.flip-page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #EBE6D8;
    backface-visibility: hidden;
    padding: 40px 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

.flip-page-front {
    border-left: 1px solid #8E7F7F;
}

.flip-page-back {
    transform: rotateY(180deg);
    border-right: 1px solid #8E7F7F;
}

/* Prayer list */
.prayer-list {
    position: relative;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1;
    overflow-y: auto;
}

/* Prayer divider between prayers */
.prayer-divider {
    text-align: center;
    padding: 15px 0;
    color: #8E7F7F;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-style: italic;
    position: relative;
}

.prayer-divider::before,
.prayer-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: linear-gradient(to right, transparent, #8E7F7F, transparent);
}

.prayer-divider::before {
    left: 0;
}

.prayer-divider::after {
    right: 0;
}

/* Prayer book navigation */
.prayer-book-navigation {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 200;
}

.prayer-page-btn {
    background: transparent;
    border: 1px solid #8E7F7F;
    color: #8E7F7F;
    padding: 8px 16px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    border-radius: 0;
}

.prayer-page-btn:hover:not(:disabled) {
    background: rgba(142, 127, 127, 0.1);
    color: #5F5449;
    border-color: #5F5449;
}

.prayer-page-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Page number at bottom of right page */
.page-right .page-number-display,
.flip-page-front .page-number-display {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #8E7F7F;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    z-index: 1;
}

/* Daily prayer stats at bottom of left page */
.page-left .prayer-stats-display,
.flip-page-back .prayer-stats-display {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-family: 'Courier New', monospace;
    z-index: 1;
}

.prayer-stats-display .prayer-used {
    color: #5F5449;
}

.prayer-stats-display .prayer-remaining {
    color: #BEB5AD;
}

/* Prayer item - book entry with full details */
.prayer-item {
    background: transparent;
    border: 2px solid #8E7F7F;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 10px 0;
    width: 100%;
    font-family: 'Courier New', monospace;
}

.prayer-item:hover {
    background: rgba(142, 127, 127, 0.1);
    border-color: #5F5449;
}

.prayer-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.prayer-item.locked {
    opacity: 0.5;
    cursor: default;
}

.prayer-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #8E7F7F;
    padding-bottom: 10px;
}

.prayer-item-icon {
    font-size: 36px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prayer-item-title {
    flex: 1;
}

.prayer-item-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #3A3238;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.prayer-item-tradition {
    font-size: 11px;
    color: #8E7F7F;
    font-style: italic;
    font-family: 'Courier New', monospace;
}

.prayer-item-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prayer-item-description {
    font-size: 13px;
    color: #5F5449;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
}

.prayer-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #8E7F7F;
    font-family: 'Courier New', monospace;
    margin-top: 4px;
}

.prayer-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.prayer-detail-label {
    font-weight: bold;
    text-transform: uppercase;
}

.prayer-item-effects {
    font-size: 11px;
    color: #5F5449;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

.prayer-item-words {
    font-size: 11px;
    color: #8E7F7F;
    font-style: italic;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #8E7F7F;
}

/* Prayer message popup */
.prayer-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.prayer-message-box {
    background: #EBE6D8;
    border: 2px solid #8E7F7F;
    padding: 30px 40px;
    max-width: 500px;
    text-align: center;
    font-family: 'Courier New', monospace;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.prayer-message-title {
    font-size: 18px;
    font-weight: bold;
    color: #3A3238;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #8E7F7F;
    padding-bottom: 15px;
}

.prayer-message-text {
    font-size: 13px;
    color: #5F5449;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.prayer-message-btn {
    background: #EBE6D8;
    border: 2px solid #8E7F7F;
    color: #3A3238;
    padding: 10px 30px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.prayer-message-btn:hover {
    background: #5F5449;
    color: #EBE6D8;
    border-color: #5F5449;
}

/* Prayer animation screen */
.prayer-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #2a251d 0%, #1a1510 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Document paper texture - removed */
.prayer-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Animated background */
.prayer-animation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Prayer content */
.prayer-animation-content {
    position: relative;
    z-index: 100;
    text-align: center;
    color: #f4e4c0;
    font-family: 'Courier New', monospace;
}

.prayer-icon-large {
    display: none;
}

.prayer-name {
    display: none; /* Hidden during prayer animation - prayer text phrases shown instead */
}

.prayer-instruction {
    font-size: 18px;
    color: #d4c4a8;
    margin: 0 0 40px 0;
    font-style: italic;
}

/* Prayer text karaoke style - blur to focus effect */
.prayer-text-karaoke {
    position: relative;
    font-size: 24px;
    color: #d4c4a8;
    margin: 0 0 40px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

.prayer-text-phrase {
    position: absolute;
    opacity: 0;
    filter: blur(8px);
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
}

.prayer-text-phrase.active {
    animation: prayerTextBlurFocus 4.3s ease-in-out forwards;
}

@keyframes prayerTextBlurFocus {
    0% {
        opacity: 0;
        filter: blur(8px);
    }
    15% {
        opacity: 1;
        filter: blur(0px);
        color: #f4e4c0;
        text-shadow: 0 0 10px rgba(244, 228, 192, 0.5);
    }
    70% {
        opacity: 1;
        filter: blur(0px);
        color: #f4e4c0;
        text-shadow: 0 0 10px rgba(244, 228, 192, 0.5);
    }
    100% {
        opacity: 0;
        filter: blur(8px);
        color: #f4e4c0;
        text-shadow: 0 0 10px rgba(244, 228, 192, 0.5);
    }
}

/* Prayer timer */
.prayer-timer {
    margin: 0 auto 40px;
}

.prayer-timer-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.prayer-timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.prayer-timer-bg {
    fill: none;
    stroke: rgba(139, 115, 85, 0.2);
    stroke-width: 4;
}

.prayer-timer-progress {
    fill: none;
    stroke: rgba(139, 115, 85, 0.8);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.prayer-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prayer-timer-seconds {
    font-size: 48px;
    font-weight: bold;
    color: #f4e4c0;
}

.prayer-timer-label {
    font-size: 14px;
    color: #8b7355;
    text-transform: uppercase;
}

/* Prayer cancel button */
.prayer-cancel {
    background: rgba(139, 48, 48, 0.3);
    border: 2px solid #8b3030;
    color: #f4e4c0;
    padding: 12px 30px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prayer-cancel:hover {
    background: rgba(139, 48, 48, 0.5);
    transform: scale(1.05);
}

/* Prayer completion */
/* Prayer completion screen - dark sacred style with game popup structure */
.prayer-complete {
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.95) 0%, rgba(16, 12, 10, 0.98) 100%);
    border: 3px solid #8b7355;
    padding: 30px 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    animation: prayer-complete-slide-in 0.4s ease-out forwards;
}

@keyframes prayer-complete-slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prayer-complete-icon {
    font-size: 42px;
    margin-bottom: 15px;
    color: #f4e4c0;
    text-shadow: 0 0 8px rgba(244, 228, 192, 0.4);
}

.prayer-complete-title {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #f4e4c0;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 10px;
}

.prayer-complete-message {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d4c4a8;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.prayer-unlock-message {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d4c4a8;
    margin: 0 0 20px 0;
    line-height: 1.6;
    border: 2px solid #8b7355;
    padding: 12px;
    background: rgba(139, 115, 85, 0.15);
}

.prayer-complete-btn {
    background: rgba(139, 115, 85, 0.3);
    border: 3px solid #8b7355;
    color: #f4e4c0;
    padding: 10px 30px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.prayer-complete-btn:hover {
    background: rgba(139, 115, 85, 0.5);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
    color: #f4e4c0;
    text-shadow: 0 0 6px rgba(244, 228, 192, 0.3);
}

/* Scrollbar styling */
.prayer-menu-content::-webkit-scrollbar {
    width: 10px;
}

.prayer-menu-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.prayer-menu-content::-webkit-scrollbar-thumb {
    background: rgba(244, 228, 192, 0.3);
    border-radius: 5px;
}

.prayer-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 228, 192, 0.5);
}

/* ============================================
   ABSTRACT PRAYER ANIMATIONS
   Clean, minimal, elegant
   ============================================ */

/* ===== 1: SUNRISE - Sun traveling on arc path ===== */
.prayer-sunrise {
    background: linear-gradient(to bottom,
        #0f0a08 0%,
        #1a1410 30%,
        #2a1f1a 60%,
        #3a2a20 100%);
    animation: sunrise-bg-shift 30s ease-in-out forwards;
}

@keyframes sunrise-bg-shift {
    0% {
        background: linear-gradient(to bottom,
            #0a0505 0%,
            #0f0a08 30%,
            #1a1410 60%,
            #1a1510 100%);
    }
    100% {
        background: linear-gradient(to bottom,
            #1f1510 0%,
            #3f2a20 30%,
            #5f3f30 60%,
            #8b7355 100%);
    }
}

/* Atmospheric glow effect */
.prayer-sunrise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 80%,
        rgba(244, 228, 192, 0.05) 0%,
        transparent 50%);
    opacity: 0;
    animation: sunrise-atmosphere-glow 30s ease-in-out forwards;
    pointer-events: none;
}

@keyframes sunrise-atmosphere-glow {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* SVG arc path styling */
.sunrise-arc-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sunrise-arc-path {
    stroke: rgba(244, 228, 192, 0.3);
    stroke-width: 2;
    fill: none;
    opacity: 0;
    animation: sunrise-show-arc 3s ease-in 2s forwards;
    filter: drop-shadow(0 0 4px rgba(244, 228, 192, 0.4));
}

@keyframes sunrise-show-arc {
    to { opacity: 0.6; }
}

/* Sun following arc path - simpler approach without SVG offset-path */
.sunrise-sun {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle,
        rgba(255, 220, 180, 0.9) 0%,
        rgba(255, 200, 150, 0.5) 50%,
        transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 220, 180, 0.5),
                0 0 100px rgba(244, 228, 192, 0.3);
    z-index: 2;
    left: 5%;
    bottom: 5%;
    animation: sunrise-sun-travel 30s linear forwards;
}

@keyframes sunrise-sun-travel {
    0% { left: 5%; bottom: 5%; opacity: 0.65; transform: translateX(-50%) translateY(50%); }
    6.25% { left: 10.62%; bottom: 25.8%; opacity: 0.68; transform: translateX(-50%) translateY(50%); }
    12.5% { left: 16.25%; bottom: 43.34%; opacity: 0.72; transform: translateX(-50%) translateY(50%); }
    18.75% { left: 21.88%; bottom: 57.84%; opacity: 0.75; transform: translateX(-50%) translateY(50%); }
    25% { left: 27.5%; bottom: 69.5%; opacity: 0.78; transform: translateX(-50%) translateY(50%); }
    31.25% { left: 33.12%; bottom: 78.54%; opacity: 0.80; transform: translateX(-50%) translateY(50%); }
    37.5% { left: 38.75%; bottom: 85.16%; opacity: 0.82; transform: translateX(-50%) translateY(50%); }
    43.75% { left: 44.38%; bottom: 89.57%; opacity: 0.84; transform: translateX(-50%) translateY(50%); }
    50% { left: 50%; bottom: 92%; opacity: 0.85; transform: translateX(-50%) translateY(50%); box-shadow: 0 0 120px rgba(255, 220, 180, 0.85), 0 0 180px rgba(244, 228, 192, 0.51); }
    56.25% { left: 55.62%; bottom: 89.57%; opacity: 0.84; transform: translateX(-50%) translateY(50%); }
    62.5% { left: 61.25%; bottom: 85.16%; opacity: 0.82; transform: translateX(-50%) translateY(50%); }
    68.75% { left: 66.88%; bottom: 78.54%; opacity: 0.80; transform: translateX(-50%) translateY(50%); }
    75% { left: 72.5%; bottom: 69.5%; opacity: 0.78; transform: translateX(-50%) translateY(50%); }
    81.25% { left: 78.12%; bottom: 57.84%; opacity: 0.75; transform: translateX(-50%) translateY(50%); }
    87.5% { left: 83.75%; bottom: 43.34%; opacity: 0.72; transform: translateX(-50%) translateY(50%); }
    93.75% { left: 89.38%; bottom: 25.8%; opacity: 0.68; transform: translateX(-50%) translateY(50%); }
    100% { left: 95%; bottom: 5%; opacity: 0.65; transform: translateX(-50%) translateY(50%); }
}

.sunrise-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 200, 150, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    left: 5%;
    bottom: 5%;
    transform: translate(-50%, 50%);
    animation: sunrise-glow-travel 30s linear forwards;
    z-index: 1;
}

@keyframes sunrise-glow-travel {
    0% { left: 5%; bottom: 5%; }
    6.25% { left: 10.62%; bottom: 25.8%; }
    12.5% { left: 16.25%; bottom: 43.34%; }
    18.75% { left: 21.88%; bottom: 57.84%; }
    25% { left: 27.5%; bottom: 69.5%; }
    31.25% { left: 33.12%; bottom: 78.54%; }
    37.5% { left: 38.75%; bottom: 85.16%; }
    43.75% { left: 44.38%; bottom: 89.57%; }
    50% { left: 50%; bottom: 92%; }
    56.25% { left: 55.62%; bottom: 89.57%; }
    62.5% { left: 61.25%; bottom: 85.16%; }
    68.75% { left: 66.88%; bottom: 78.54%; }
    75% { left: 72.5%; bottom: 69.5%; }
    81.25% { left: 78.12%; bottom: 57.84%; }
    87.5% { left: 83.75%; bottom: 43.34%; }
    93.75% { left: 89.38%; bottom: 25.8%; }
    100% { left: 95%; bottom: 5%; }
}

/* God rays - vertical columns descending from top */
.sunrise-ray {
    position: absolute;
    width: 50px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 220, 180, 0.25) 20%,
        rgba(244, 228, 192, 0.15) 50%,
        rgba(244, 228, 192, 0.08) 80%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    filter: blur(6px);
    top: 0;
    transform: translateX(-50%);
    animation: sunrise-ray-activate 10s ease-in-out;
}

.sunrise-ray.ray-1 { left: 20%; animation-delay: 5s; }
.sunrise-ray.ray-2 { left: 35%; animation-delay: 10s; }
.sunrise-ray.ray-3 { left: 50%; animation-delay: 15s; width: 70px; }
.sunrise-ray.ray-4 { left: 65%; animation-delay: 20s; }
.sunrise-ray.ray-5 { left: 80%; animation-delay: 25s; }

@keyframes sunrise-ray-activate {
    0%, 20% { opacity: 0; }
    40%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== 2: MOONLIGHT - Crescent constellation ===== */
/* ===== 2: MOONLIGHT - Evening crescent moon constellation (60s) ===== */
.prayer-moonlight {
    background: linear-gradient(to bottom,
        #0f0a08 0%,
        #0a0505 30%,
        #0a0505 100%);
}

/* Moonlight-specific layout: timer moved down from top, text on sides */
.prayer-moonlight .prayer-timer {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 200;
}

.prayer-moonlight .prayer-timer-circle {
    width: 120px;
    height: 120px;
}

.prayer-moonlight .prayer-text-karaoke {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin: 0;
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.prayer-moonlight .prayer-text-phrase {
    position: relative;
    width: 35%;
    text-align: center;
}

/* Background twinkling stars */
.moonlight-bg-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(244, 228, 192, 0.5);
    border-radius: 50%;
    z-index: 1;
    animation: moonlight-twinkle 3s ease-in-out infinite;
}

@keyframes moonlight-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Other constellation stars - appear first, then fade out */
.other-constellation-star {
    position: absolute;
    background: rgba(244, 228, 192, 0.9);
    border-radius: 50%;
    width: 5px;
    height: 5px;
    opacity: 0;
    z-index: 2;
    box-shadow: 0 0 10px rgba(244, 228, 192, 0.7);
    animation: moonlight-other-star-appear 2s ease-out 1s forwards,
               moonlight-other-star-fadeout 2s ease-out 15s forwards;
}

@keyframes moonlight-other-star-appear {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
    100% { opacity: 1; transform: scale(1) rotate(360deg); }
}

@keyframes moonlight-other-star-fadeout {
    to { opacity: 0; transform: scale(0.3); }
}

/* Crescent constellation stars - appear sequentially in arc */
.crescent-star {
    position: absolute;
    background: rgba(244, 228, 192, 0.9);
    border-radius: 50%;
    width: 6px;
    height: 6px;
    opacity: 0;
    z-index: 3;
}

/* Position stars in crescent arc - matching moon circle centered at 50%, 50% with radius ~140px */
/* Stars positioned on right edge of circle (crescent shape) from top to bottom */
.crescent-star-1 { top: calc(50% - 125px); left: calc(50% + 50px); animation: moonlight-star-appear 2s ease-out 5s forwards, moonlight-star-glow 3s ease-in-out 7s infinite; }
.crescent-star-2 { top: calc(50% - 110px); left: calc(50% + 80px); animation: moonlight-star-appear 2s ease-out 5.5s forwards, moonlight-star-glow 3s ease-in-out 7.5s infinite; }
.crescent-star-3 { top: calc(50% - 85px); left: calc(50% + 105px); animation: moonlight-star-appear 2s ease-out 6s forwards, moonlight-star-glow 3s ease-in-out 8s infinite; }
.crescent-star-4 { top: calc(50% - 55px); left: calc(50% + 120px); animation: moonlight-star-appear 2s ease-out 6.5s forwards, moonlight-star-glow 3s ease-in-out 8.5s infinite; }
.crescent-star-5 { top: calc(50% - 20px); left: calc(50% + 130px); animation: moonlight-star-appear 2s ease-out 7s forwards, moonlight-star-glow 3s ease-in-out 9s infinite; }
.crescent-star-6 { top: calc(50% + 20px); left: calc(50% + 130px); animation: moonlight-star-appear 2s ease-out 7.5s forwards, moonlight-star-glow 3s ease-in-out 9.5s infinite; }
.crescent-star-7 { top: calc(50% + 55px); left: calc(50% + 120px); animation: moonlight-star-appear 2s ease-out 8s forwards, moonlight-star-glow 3s ease-in-out 10s infinite; }
.crescent-star-8 { top: calc(50% + 85px); left: calc(50% + 105px); animation: moonlight-star-appear 2s ease-out 8.5s forwards, moonlight-star-glow 3s ease-in-out 10.5s infinite; }
.crescent-star-9 { top: calc(50% + 110px); left: calc(50% + 80px); animation: moonlight-star-appear 2s ease-out 9s forwards, moonlight-star-glow 3s ease-in-out 11s infinite; }
.crescent-star-10 { top: calc(50% + 125px); left: calc(50% + 50px); animation: moonlight-star-appear 2s ease-out 9.5s forwards, moonlight-star-glow 3s ease-in-out 11.5s infinite; }
/* Inner arc stars for more detail */
.crescent-star-11 { top: calc(50% - 60px); left: calc(50% + 85px); animation: moonlight-star-appear 2s ease-out 10s forwards, moonlight-star-glow 3s ease-in-out 12s infinite; }
.crescent-star-12 { top: calc(50% + 60px); left: calc(50% + 85px); animation: moonlight-star-appear 2s ease-out 10.5s forwards, moonlight-star-glow 3s ease-in-out 12.5s infinite; }

@keyframes moonlight-star-appear {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.5) rotate(180deg); }
    100% { opacity: 1; transform: scale(1) rotate(360deg); }
}

@keyframes moonlight-star-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(244, 228, 192, 0.7); }
    50% { box-shadow: 0 0 20px rgba(244, 228, 192, 1), 0 0 40px rgba(244, 228, 192, 0.5); }
}

/* Stars fade out after constellation is revealed */
.crescent-star {
    animation: moonlight-star-appear 2s ease-out 5s forwards,
               moonlight-star-glow 3s ease-in-out 7s 5,
               moonlight-star-fadeout 2s ease-out 30s forwards !important;
}

@keyframes moonlight-star-fadeout {
    to { opacity: 0; transform: scale(0.5); }
}

/* Moon aura appears after stars form constellation */
.moon-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(244, 228, 192, 0.15) 0%,
        rgba(244, 228, 192, 0.08) 40%,
        transparent 70%);
    border-radius: 50%;
    opacity: 0;
    z-index: 2;
    animation: moonlight-aura-appear 3s ease-out 25s forwards,
               moonlight-aura-pulse 4s ease-in-out 28s infinite;
}

@keyframes moonlight-aura-appear {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes moonlight-aura-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* Solid crescent moon materializes */
.moon-crescent {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: inset 98px 0 0 0 rgba(244, 228, 192, 0);
    border: 0px solid rgba(244, 228, 192, 0);
    opacity: 0;
    z-index: 4;
    animation: moonlight-crescent-solidify 4s ease-out 32s forwards,
               moonlight-moon-pulse 4s ease-in-out 36s infinite;
}

@keyframes moonlight-crescent-solidify {
    0% {
        opacity: 0;
        border-width: 0;
        box-shadow: inset 98px 0 0 0 rgba(244, 228, 192, 0);
    }
    100% {
        opacity: 1;
        border-width: 5px;
        border-color: rgba(244, 228, 192, 0.9);
        box-shadow: inset 98px 0 0 0 rgba(244, 228, 192, 0.85),
                    0 0 50px rgba(244, 228, 192, 0.6),
                    0 0 100px rgba(244, 228, 192, 0.3);
    }
}

@keyframes moonlight-moon-pulse {
    0%, 100% {
        box-shadow: inset 98px 0 0 0 rgba(244, 228, 192, 0.85),
                    0 0 50px rgba(244, 228, 192, 0.6),
                    0 0 100px rgba(244, 228, 192, 0.3);
    }
    50% {
        box-shadow: inset 98px 0 0 0 rgba(244, 228, 192, 1),
                    0 0 75px rgba(244, 228, 192, 0.8),
                    0 0 150px rgba(244, 228, 192, 0.5);
    }
}

/* Protection circle forms around the moon */
.moon-protection-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 3px solid rgba(244, 228, 192, 0.7);
    border-radius: 50%;
    z-index: 3;
    opacity: 0;
    box-shadow: 0 0 20px rgba(244, 228, 192, 0.5),
                inset 0 0 30px rgba(244, 228, 192, 0.2);
    animation: moonlight-circle-form 3s ease-out 40s forwards,
               moonlight-circle-pulse 3s ease-in-out 43s infinite;
}

@keyframes moonlight-circle-form {
    0% { opacity: 0; width: 0; height: 0; }
    50% { opacity: 1; }
    100% { opacity: 1; width: 400px; height: 400px; }
}

@keyframes moonlight-circle-pulse {
    0%, 100% {
        border-color: rgba(244, 228, 192, 0.7);
        box-shadow: 0 0 20px rgba(244, 228, 192, 0.5),
                    inset 0 0 30px rgba(244, 228, 192, 0.2);
    }
    50% {
        border-color: rgba(244, 228, 192, 1);
        box-shadow: 0 0 40px rgba(244, 228, 192, 0.8),
                    inset 0 0 50px rgba(244, 228, 192, 0.4);
    }
}

/* ===== 3: ZEN_RIPPLES - Meditation breathing ===== */
.prayer-zen_ripples {
    background: radial-gradient(ellipse at center,
        #3a2a20 0%,
        #2a1f1a 50%,
        #1a1410 100%);
}

/* Central breathing circle with border */
.zen-center {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(244, 228, 192, 0.7);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 30px rgba(244, 228, 192, 0.4),
        inset 0 0 30px rgba(244, 228, 192, 0.2);
    z-index: 5;
    animation: zen-breathe 8s ease-in-out infinite;
}

@keyframes zen-breathe {
    0%, 100% {
        width: 150px;
        height: 150px;
        border-width: 3px;
        opacity: 0.7;
        box-shadow:
            0 0 30px rgba(244, 228, 192, 0.4),
            inset 0 0 30px rgba(244, 228, 192, 0.2);
    }
    50% {
        width: 300px;
        height: 300px;
        border-width: 2px;
        opacity: 1;
        box-shadow:
            0 0 60px rgba(244, 228, 192, 0.6),
            inset 0 0 50px rgba(244, 228, 192, 0.3);
    }
}

/* Inner light orb */
.zen-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle,
        rgba(244, 228, 192, 0.8) 0%,
        rgba(244, 228, 192, 0.4) 50%,
        transparent 100%);
    border-radius: 50%;
    filter: blur(3px);
    animation: zen-orb-pulse 8s ease-in-out infinite;
}

@keyframes zen-orb-pulse {
    0%, 100% {
        width: 40px;
        height: 40px;
        opacity: 0.6;
    }
    50% {
        width: 80px;
        height: 80px;
        opacity: 1;
    }
}

/* Expanding ripple circles */
.zen-circle {
    position: absolute;
    border: 2px solid rgba(244, 228, 192, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zen-expand 6s ease-out infinite;
}

.zen-circle.circle-1 { animation-delay: 0s; }
.zen-circle.circle-2 { animation-delay: 1.2s; }
.zen-circle.circle-3 { animation-delay: 2.4s; }
.zen-circle.circle-4 { animation-delay: 3.6s; }
.zen-circle.circle-5 { animation-delay: 4.8s; }

@keyframes zen-expand {
    0% { width: 150px; height: 150px; opacity: 0.8; }
    100% { width: 800px; height: 800px; opacity: 0; }
}

/* ===== 4: SACRED_GEOMETRY - Alchemical sacred geometry ===== */
.prayer-sacred_geometry {
    background: radial-gradient(circle at center,
        #0a0e27 0%,
        #050712 100%);
}

/* Central sacred symbol (Om or alchemical) */
.sacred-symbol {
    position: absolute;
    font-size: 120px;
    color: rgba(218, 165, 32, 0.9);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 30px rgba(218, 165, 32, 0.5);
    opacity: 0;
    animation: symbol-appear 2s ease-out 3s forwards,
               symbol-glow 4s ease-in-out 5s infinite;
    filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.4));
}

@keyframes symbol-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes symbol-glow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(218, 165, 32, 0.5);
    }
    50% {
        text-shadow: 0 0 50px rgba(218, 165, 32, 0.8),
                     0 0 80px rgba(218, 165, 32, 0.4);
    }
}

/* Geometric lines drawing from center outward */
.geometry-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.geometry-line {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(218, 165, 32, 0) 0%,
        rgba(218, 165, 32, 0.7) 50%,
        rgba(218, 165, 32, 0) 100%);
    transform-origin: left center;
    opacity: 0;
    animation: geometry-line-draw 1.5s ease-out forwards;
    filter: drop-shadow(0 0 3px rgba(218, 165, 32, 0.5));
}

.geometry-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg);
    animation-delay: 0s;
}
.geometry-line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(60deg);
    animation-delay: 0.3s;
}
.geometry-line:nth-child(3) {
    transform: translate(-50%, -50%) rotate(120deg);
    animation-delay: 0.6s;
}

@keyframes geometry-line-draw {
    0% {
        opacity: 0;
        width: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
        width: 300px;
    }
}

/* ===== 5: SACRED_FLAME - Sequential candle lighting ===== */
.prayer-sacred_flame {
    background: radial-gradient(circle at center,
        #1a0f0a 0%,
        #0a0505 100%);
}

/* Candles appear first (no flames yet) */
.candle-base {
    position: absolute;
    width: 14px;
    height: 120px;
    background: linear-gradient(to top,
        rgba(200, 180, 150, 0.9) 0%,
        rgba(180, 160, 130, 0.85) 100%);
    border-radius: 7px;
    bottom: 30%;
    opacity: 0;
}

.candle-base.candle-1 {
    left: 25%;
    animation: flame-candle-appear 1.5s ease-out 0s forwards;
}
.candle-base.candle-2 {
    left: 50%;
    transform: translateX(-50%);
    animation: flame-candle-appear 1.5s ease-out 0.5s forwards;
}
.candle-base.candle-3 {
    right: 25%;
    animation: flame-candle-appear 1.5s ease-out 1s forwards;
}

@keyframes flame-candle-appear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flames light up sequentially after candles appear */
.candle-flame {
    position: absolute;
    width: 28px;
    height: 45px;
    background: radial-gradient(ellipse at center bottom,
        rgba(255, 240, 200, 1) 0%,
        rgba(255, 200, 100, 0.9) 35%,
        rgba(255, 150, 50, 0.5) 65%,
        transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    filter: blur(1.5px);
    opacity: 0;
}

.candle-flame.flame-1 {
    bottom: calc(30% + 120px);
    left: 25%;
    transform: translateX(-7px);
    animation: flame-light-up 1s ease-out 2s forwards,
               flame-dance 1.8s ease-in-out 3s infinite;
}

.candle-flame.flame-2 {
    bottom: calc(30% + 120px);
    left: 50%;
    transform: translate(-50%, 0) translateX(-7px);
    animation: flame-light-up 1s ease-out 3s forwards,
               flame-dance 1.8s ease-in-out 4s infinite;
}

.candle-flame.flame-3 {
    bottom: calc(30% + 120px);
    right: 25%;
    transform: translateX(7px);
    animation: flame-light-up 1s ease-out 4s forwards,
               flame-dance 1.8s ease-in-out 5s infinite;
}

@keyframes flame-light-up {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes flame-dance {
    0%, 100% {
        transform: translateX(-6px) scaleY(1) scaleX(1);
        opacity: 1;
    }
    25% {
        transform: translateX(-8px) scaleY(1.15) scaleX(0.9);
        opacity: 0.95;
    }
    50% {
        transform: translateX(-4px) scaleY(0.9) scaleX(1.1);
        opacity: 0.85;
    }
    75% {
        transform: translateX(-7px) scaleY(1.1) scaleX(0.95);
        opacity: 0.9;
    }
}

.flame-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle,
        rgba(255, 200, 100, 0.2) 0%,
        transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
}

.flame-glow.glow-1 {
    bottom: calc(25% + 70px);
    left: 38%;
    transform: translateX(-54px);
    animation-delay: 0s;
}

.flame-glow.glow-2 {
    bottom: calc(25% + 70px);
    left: 50%;
    transform: translate(-50%, 0) translateX(-60px);
    animation-delay: 0.3s;
}

.flame-glow.glow-3 {
    bottom: calc(25% + 70px);
    left: 62%;
    transform: translateX(-54px);
    animation-delay: 0.6s;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* ===== 6: BREATH_PULSE - Merging energies ===== */
.prayer-breath_pulse {
    background: radial-gradient(circle at center,
        #0a1628 0%,
        #020815 100%);
}

/* Left orbit/energy (blue) */
.breath-orb {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(100, 200, 255, 0.7) 0%,
        rgba(50, 150, 255, 0.5) 40%,
        rgba(30, 100, 200, 0.2) 100%);
    box-shadow:
        0 0 60px rgba(100, 200, 255, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.2);
    animation: breath-orbit-left 8s ease-in-out infinite;
}

@keyframes breath-orbit-left {
    0%, 100% {
        transform: translateX(-250px);
        opacity: 1;
    }
    50% {
        transform: translateX(-20px);
        opacity: 0.8;
    }
}

/* Right orbit/energy (red/orange) - use first wave */
.breath-wave.wave-1 {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 30%,
        rgba(255, 150, 100, 0.7) 0%,
        rgba(255, 100, 80, 0.5) 40%,
        rgba(200, 80, 60, 0.2) 100%);
    box-shadow:
        0 0 60px rgba(255, 150, 100, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.2);
    animation: breath-orbit-right 8s ease-in-out infinite;
    border: none;
}

@keyframes breath-orbit-right {
    0%, 100% {
        transform: translateX(250px);
        opacity: 1;
    }
    50% {
        transform: translateX(20px);
        opacity: 0.8;
    }
}

/* Third merged energy in center (purple) - use second wave */
.breath-wave.wave-2 {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(200, 150, 255, 0.9) 0%,
        rgba(150, 120, 255, 0.6) 40%,
        rgba(100, 80, 200, 0.2) 100%);
    box-shadow:
        0 0 80px rgba(200, 150, 255, 0.7),
        inset 0 0 60px rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: breath-merge-appear 3s ease-out 4s forwards,
               breath-merge-pulse 3s ease-in-out 7s infinite;
    border: none;
}

@keyframes breath-merge-appear {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes breath-merge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 80px rgba(200, 150, 255, 0.7),
            inset 0 0 60px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow:
            0 0 120px rgba(200, 150, 255, 0.9),
            inset 0 0 80px rgba(255, 255, 255, 0.4);
    }
}

/* Expanding unity waves - use remaining waves */
.breath-wave.wave-3,
.breath-wave.wave-4 {
    position: absolute;
    border: 3px solid rgba(200, 150, 255, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breath-expand 6s ease-out 7s infinite;
}

.breath-wave.wave-3 { animation-delay: 7s; }
.breath-wave.wave-4 { animation-delay: 9s; }

@keyframes breath-expand {
    0% { width: 200px; height: 200px; opacity: 0.8; }
    100% { width: 700px; height: 700px; opacity: 0; }
}

/* ===== 7: WATER_FLOW - Flowing water ===== */
.prayer-water_flow {
    background: radial-gradient(circle at top,
        #1a2530 0%,
        #0f1218 100%);
}

.water-source {
    position: absolute;
    width: 80px;
    height: 8px;
    background: rgba(120, 180, 255, 0.6);
    border-radius: 4px;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(120, 180, 255, 0.4);
}

.water-stream {
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom,
        rgba(120, 180, 255, 0.7) 0%,
        rgba(100, 160, 235, 0.5) 50%,
        rgba(80, 140, 215, 0.3) 100%);
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    height: 55%;
    border-radius: 3px;
    animation: stream-shimmer 2s ease-in-out infinite;
}

@keyframes stream-shimmer {
    0%, 100% { opacity: 0.7; box-shadow: 0 0 10px rgba(120, 180, 255, 0.5); }
    50% { opacity: 1; box-shadow: 0 0 20px rgba(120, 180, 255, 0.7); }
}

.water-droplet {
    position: absolute;
    width: 6px;
    height: 8px;
    background: rgba(150, 200, 255, 0.8);
    border-radius: 50% 50% 50% 0%;
    transform: rotate(45deg);
    box-shadow: 0 0 5px rgba(120, 180, 255, 0.5);
    animation: drop-fall 1.2s linear infinite;
}

.water-droplet:nth-child(2) { left: 47%; animation-delay: 0.2s; }
.water-droplet:nth-child(3) { left: 50%; animation-delay: 0.4s; }
.water-droplet:nth-child(4) { left: 53%; animation-delay: 0.6s; }
.water-droplet:nth-child(5) { left: 49%; animation-delay: 0.1s; }
.water-droplet:nth-child(6) { left: 51%; animation-delay: 0.3s; }

@keyframes drop-fall {
    0% { top: 15%; opacity: 0; transform: rotate(45deg) scale(0.5); }
    10% { opacity: 0.8; transform: rotate(45deg) scale(1); }
    90% { opacity: 0.8; }
    100% { top: 70%; opacity: 0; transform: rotate(45deg) scale(0.8); }
}

.water-pool {
    position: absolute;
    width: 180px;
    height: 50px;
    background: radial-gradient(ellipse at center,
        rgba(120, 180, 255, 0.4) 0%,
        rgba(100, 160, 235, 0.2) 60%,
        transparent 100%);
    border-radius: 50%;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 30px rgba(120, 180, 255, 0.2);
}

.water-ripple {
    position: absolute;
    border: 2px solid rgba(120, 180, 255, 0.5);
    border-radius: 50%;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ripple-spread 2.5s ease-out infinite;
}

.water-ripple:nth-child(8) { animation-delay: 0s; }
.water-ripple:nth-child(9) { animation-delay: 0.6s; }
.water-ripple:nth-child(10) { animation-delay: 1.2s; }
.water-ripple:nth-child(11) { animation-delay: 1.8s; }

@keyframes ripple-spread {
    0% { width: 40px; height: 20px; opacity: 0.7; }
    100% { width: 200px; height: 100px; opacity: 0; }
}

/* ===== 8: SPINNING_MANDALA - Progressive petal drawing ===== */
.prayer-spinning_mandala {
    background: linear-gradient(135deg,
        #0f0f23 0%,
        #1a1a3e 100%);
}

/* Pulsing center glow effect */
.prayer-spinning_mandala::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle,
        rgba(244, 228, 192, 0.4) 0%,
        rgba(244, 228, 192, 0.2) 50%,
        transparent 100%);
    border-radius: 50%;
    animation: mandala-center-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mandala-center-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* Mandala structure - 12 petals appearing sequentially */
.mandala-center {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Center circle with purple gradient */
.mandala-center::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(200, 150, 220, 0.9) 0%,
        rgba(160, 120, 200, 0.6) 100%);
    border-radius: 50%;
    border: 3px solid rgba(220, 180, 240, 0.8);
    box-shadow: 0 0 30px rgba(200, 150, 220, 0.5);
}

.mandala-petal {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    border-radius: 50% 0 50% 0;
    box-shadow: 0 0 20px currentColor;
    opacity: 0;
    animation: mandala-petal-appear 1.2s ease-out forwards;
}

/* 12 petals with staggered appearance and color cycling */
.mandala-petal:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-90px);
    background: rgba(244, 150, 150, 0.4);
    color: rgba(244, 150, 150, 0.5);
    animation-delay: 0s;
}
.mandala-petal:nth-child(2) {
    transform: translate(-50%, -50%) rotate(30deg) translateY(-90px);
    background: rgba(244, 200, 150, 0.4);
    color: rgba(244, 200, 150, 0.5);
    animation-delay: 0.8s;
}
.mandala-petal:nth-child(3) {
    transform: translate(-50%, -50%) rotate(60deg) translateY(-90px);
    background: rgba(244, 228, 150, 0.4);
    color: rgba(244, 228, 150, 0.5);
    animation-delay: 1.6s;
}
.mandala-petal:nth-child(4) {
    transform: translate(-50%, -50%) rotate(90deg) translateY(-90px);
    background: rgba(200, 244, 150, 0.4);
    color: rgba(200, 244, 150, 0.5);
    animation-delay: 2.4s;
}
.mandala-petal:nth-child(5) {
    transform: translate(-50%, -50%) rotate(120deg) translateY(-90px);
    background: rgba(150, 244, 180, 0.4);
    color: rgba(150, 244, 180, 0.5);
    animation-delay: 3.2s;
}
.mandala-petal:nth-child(6) {
    transform: translate(-50%, -50%) rotate(150deg) translateY(-90px);
    background: rgba(150, 220, 244, 0.4);
    color: rgba(150, 220, 244, 0.5);
    animation-delay: 4s;
}
.mandala-petal:nth-child(7) {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-90px);
    background: rgba(150, 180, 244, 0.4);
    color: rgba(150, 180, 244, 0.5);
    animation-delay: 4.8s;
}
.mandala-petal:nth-child(8) {
    transform: translate(-50%, -50%) rotate(210deg) translateY(-90px);
    background: rgba(180, 150, 244, 0.4);
    color: rgba(180, 150, 244, 0.5);
    animation-delay: 5.6s;
}
.mandala-petal:nth-child(9) {
    transform: translate(-50%, -50%) rotate(240deg) translateY(-90px);
    background: rgba(220, 150, 244, 0.4);
    color: rgba(220, 150, 244, 0.5);
    animation-delay: 6.4s;
}
.mandala-petal:nth-child(10) {
    transform: translate(-50%, -50%) rotate(270deg) translateY(-90px);
    background: rgba(244, 150, 220, 0.4);
    color: rgba(244, 150, 220, 0.5);
    animation-delay: 7.2s;
}
.mandala-petal:nth-child(11) {
    transform: translate(-50%, -50%) rotate(300deg) translateY(-90px);
    background: rgba(244, 150, 180, 0.4);
    color: rgba(244, 150, 180, 0.5);
    animation-delay: 8s;
}
.mandala-petal:nth-child(12) {
    transform: translate(-50%, -50%) rotate(330deg) translateY(-90px);
    background: rgba(244, 150, 160, 0.4);
    color: rgba(244, 150, 160, 0.5);
    animation-delay: 8.8s;
}

@keyframes mandala-petal-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateY(-40px) scale(0.3);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateY(-90px) scale(1);
    }
}

/* Light rays emanating from center - rotate slowly */
.mandala-ring {
    position: absolute;
    width: 4px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    background: linear-gradient(to bottom,
        rgba(244, 228, 192, 0.6) 0%,
        rgba(244, 228, 192, 0.3) 50%,
        transparent 100%);
    opacity: 0;
    animation: mandala-ray-rotate 20s linear infinite, mandala-ray-fade 6s ease-in 6s forwards;
}

.mandala-ring.ring-1 {
    transform: translate(-50%, -100%) rotate(0deg);
    animation-delay: 0s, 6s;
}
.mandala-ring.ring-2 {
    transform: translate(-50%, -100%) rotate(45deg);
    animation-delay: 0s, 6.3s;
}
.mandala-ring.ring-3 {
    transform: translate(-50%, -100%) rotate(90deg);
    animation-delay: 0s, 6.6s;
}

@keyframes mandala-ray-rotate {
    0% { transform: translate(-50%, -100%) rotate(var(--start-rotation, 0deg)); }
    100% { transform: translate(-50%, -100%) rotate(calc(var(--start-rotation, 0deg) + 360deg)); }
}

@keyframes mandala-ray-fade {
    0% { opacity: 0; }
    100% { opacity: 0.7; }
}

/* ===== 9: SPIRIT_JOURNEY - Native American animal circle ceremony ===== */
.prayer-spirit_journey {
    background: radial-gradient(circle at center,
        #0a0a0a 0%,
        #000000 100%);
}

/* Moon and stars background */
.prayer-spirit_journey::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    top: 15%;
    right: 15%;
    border-radius: 50%;
    box-shadow: inset -15px 0 0 rgba(200, 200, 220, 0.6),
                0 0 40px rgba(180, 180, 200, 0.3);
    opacity: 0;
    animation: spirit-moon-rise 5s ease-in forwards;
}

@keyframes spirit-moon-rise {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 0.7; transform: translateY(0); }
}

/* Medicine wheel at center - appears during prayer phase */
.prayer-spirit_journey::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(200, 150, 120, 0.5);
    border-radius: 50%;
    opacity: 0;
    animation: spirit-medicine-wheel 3s ease-in 10s forwards;
    box-shadow: 0 0 30px rgba(200, 150, 120, 0.4);
}

@keyframes spirit-medicine-wheel {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0deg); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1) rotate(360deg); }
}

/* Twinkling stars */
.spirit-feather {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(220, 220, 240, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(220, 220, 240, 0.8);
    animation: spirit-star-twinkle 3s ease-in-out infinite;
}

.spirit-feather:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.spirit-feather:nth-child(2) { top: 20%; left: 75%; animation-delay: 0.5s; }
.spirit-feather:nth-child(3) { top: 30%; left: 85%; animation-delay: 1s; }
.spirit-feather:nth-child(4) { top: 70%; left: 15%; animation-delay: 1.5s; }
.spirit-feather:nth-child(5) { top: 80%; left: 80%; animation-delay: 2s; }

@keyframes spirit-star-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* 8 Native American animal symbols in circle */
.spirit-animal {
    position: absolute;
    font-size: 50px;
    top: 50%;
    left: 50%;
    filter: sepia(0.6) brightness(0.8);
    opacity: 0;
    /* Animals appear sequentially */
    animation: spirit-animal-appear 2s ease-out forwards,
               spirit-animal-bow 4s ease-in-out 2s forwards,
               spirit-animal-raise 4s ease-out 6s forwards,
               spirit-animal-glow 3s ease-in-out 10s infinite;
}

/* Position animals in circle - 8 positions */
.spirit-animal.eagle {
    transform: translate(-50%, -50%) translate(0, -180px);
    animation-delay: 0s, 2s, 6s, 10s;
}
.spirit-animal.wolf {
    transform: translate(-50%, -50%) translate(127px, -127px);
    animation-delay: 0.8s, 2.8s, 6.8s, 10.8s;
}
.spirit-animal.bear {
    transform: translate(-50%, -50%) translate(180px, 0);
    animation-delay: 1.6s, 3.6s, 7.6s, 11.6s;
}
.spirit-animal:nth-child(9) {
    transform: translate(-50%, -50%) translate(127px, 127px);
    animation-delay: 2.4s, 4.4s, 8.4s, 12.4s;
}
.spirit-animal:nth-child(10) {
    transform: translate(-50%, -50%) translate(0, 180px);
    animation-delay: 3.2s, 5.2s, 9.2s, 13.2s;
}
.spirit-animal:nth-child(11) {
    transform: translate(-50%, -50%) translate(-127px, 127px);
    animation-delay: 4s, 6s, 10s, 14s;
}
.spirit-animal:nth-child(12) {
    transform: translate(-50%, -50%) translate(-180px, 0);
    animation-delay: 4.8s, 6.8s, 10.8s, 14.8s;
}
.spirit-animal:nth-child(13) {
    transform: translate(-50%, -50%) translate(-127px, -127px);
    animation-delay: 5.6s, 7.6s, 11.6s, 15.6s;
}

/* Prayer beam from center pointing to animal */
.smoke-swirl {
    position: absolute;
    width: 4px;
    height: 150px;
    top: 50%;
    left: 50%;
    background: linear-gradient(to top,
        transparent 0%,
        rgba(200, 150, 120, 0.6) 50%,
        rgba(244, 228, 192, 0.3) 100%);
    transform-origin: bottom center;
    opacity: 0;
    filter: blur(2px);
    animation: spirit-prayer-beam 3s ease-out 10s forwards;
}

@keyframes spirit-animal-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(var(--circle-y, -180px)) translateX(var(--circle-x, 0)) scale(0.3);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) translateY(var(--circle-y, -180px)) translateX(var(--circle-x, 0)) scale(1);
    }
}

@keyframes spirit-animal-bow {
    0% { filter: sepia(0.6) brightness(0.8); }
    50% { filter: sepia(0.7) brightness(0.6); }
    100% { filter: sepia(0.6) brightness(0.8); }
}

@keyframes spirit-animal-raise {
    0% { filter: sepia(0.6) brightness(0.8); }
    100% { filter: sepia(0.5) brightness(1); }
}

@keyframes spirit-animal-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(244, 228, 192, 0.5);
    }
    50% {
        text-shadow: 0 0 25px rgba(244, 228, 192, 0.8),
                     0 0 40px rgba(200, 150, 120, 0.4);
    }
}

@keyframes spirit-prayer-beam {
    0% {
        opacity: 0;
        height: 0;
    }
    100% {
        opacity: 0.7;
        height: 150px;
    }
}

/* ===== 10: ENERGY_SPIRAL - Chakra energy ===== */
.prayer-energy_spiral {
    background: radial-gradient(circle at center,
        #1a0a1a 0%,
        #0a0505 100%);
}

.chakra-point {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px currentColor;
    animation: chakra-pulse 3s ease-in-out infinite;
}

.chakra-point.root { bottom: 15%; background: #ff4444; color: #ff4444; animation-delay: 0s; }
.chakra-point.sacral { bottom: 25%; background: #ff8844; color: #ff8844; animation-delay: 0.4s; }
.chakra-point.solar { bottom: 35%; background: #ffdd44; color: #ffdd44; animation-delay: 0.8s; }
.chakra-point.heart { bottom: 45%; background: #44ff44; color: #44ff44; animation-delay: 1.2s; }
.chakra-point.throat { bottom: 55%; background: #4488ff; color: #4488ff; animation-delay: 1.6s; }
.chakra-point.third-eye { bottom: 65%; background: #8844ff; color: #8844ff; animation-delay: 2s; }
.chakra-point.crown { bottom: 75%; background: #ff44ff; color: #ff44ff; animation-delay: 2.4s; }

@keyframes chakra-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
        box-shadow: 0 0 20px currentColor;
    }
    50% {
        transform: translateX(-50%) scale(1.6);
        opacity: 1;
        box-shadow: 0 0 40px currentColor;
    }
}

.energy-serpent {
    position: absolute;
    width: 4px;
    height: 60%;
    background: linear-gradient(to top,
        #ff4444 0%,
        #ff8844 15%,
        #ffdd44 30%,
        #44ff44 45%,
        #4488ff 60%,
        #8844ff 80%,
        #ff44ff 100%);
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.energy-orb {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 200, 100, 0.5) 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    left: 50%;
    transform: translateX(-50%);
    animation: orb-rise 5s ease-in-out infinite;
}

.energy-orb:nth-child(10) { animation-delay: 0s; }
.energy-orb:nth-child(11) { animation-delay: 0.6s; }
.energy-orb:nth-child(12) { animation-delay: 1.2s; }
.energy-orb:nth-child(13) { animation-delay: 1.8s; }
.energy-orb:nth-child(14) { animation-delay: 2.4s; }

@keyframes orb-rise {
    0% { bottom: 15%; opacity: 0; transform: translateX(-50%) scale(0.3); }
    20% { opacity: 1; }
    80% { opacity: 0.8; }
    100% { bottom: 75%; opacity: 0; transform: translateX(-50%) scale(1); }
}

.spiral-path {
    position: absolute;
    width: 60px;
    height: 60%;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.spiral-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border-left: 3px dashed rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    animation: spiral-rotate 12s linear infinite;
}

@keyframes spiral-rotate {
    0% { transform: rotate(0deg) scaleX(1); }
    50% { transform: rotate(180deg) scaleX(0.5); }
    100% { transform: rotate(360deg) scaleX(1); }
}

/* ===== 11: CONFESSION_DOVE - Forgiveness ===== */
.prayer-confession_dove {
    background: radial-gradient(circle at center,
        #2a2a2a 0%,
        #1a1a1a 50%,
        #0a0a0a 100%);
}

.dove-bird {
    position: absolute;
    width: 50px;
    height: 35px;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: dove-fly 12s ease-in-out infinite;
}

.dove-body {
    width: 25px;
    height: 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.dove-wing {
    position: absolute;
    width: 20px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50% 50% 0 0;
    top: 3px;
    animation: wing-beat 0.5s ease-in-out infinite;
}

.dove-wing.left { left: -18px; transform-origin: right center; }
.dove-wing.right { right: -18px; transform-origin: left center; }

@keyframes dove-fly {
    0% { top: 80%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 0.9; }
    100% { top: 15%; opacity: 0; }
}

@keyframes wing-beat {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(30deg); }
}

.darkness-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(40, 40, 40, 0.7);
    border-radius: 50%;
    animation: dark-sink 8s ease-in infinite;
}

.darkness-particle:nth-child(3) { left: 25%; animation-delay: 0s; }
.darkness-particle:nth-child(4) { left: 37%; animation-delay: 0.8s; }
.darkness-particle:nth-child(5) { left: 50%; animation-delay: 1.6s; }
.darkness-particle:nth-child(6) { left: 63%; animation-delay: 2.4s; }
.darkness-particle:nth-child(7) { left: 75%; animation-delay: 3.2s; }

@keyframes dark-sink {
    0% { top: 20%; opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

.divine-light-beam {
    position: absolute;
    width: 120px;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 200, 0.3) 0%,
        rgba(255, 255, 150, 0.15) 50%,
        transparent 100%);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(5px);
    animation: beam-glow 12s ease-in-out infinite;
}

@keyframes beam-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.6; }
}

/* ===== 12: DIVINE_LIGHT - Heavenly rays ===== */
.prayer-divine_light {
    background: radial-gradient(circle at top,
        #3a3530 0%,
        #2a2520 40%,
        #1a1510 100%);
}

.heaven-beam {
    position: absolute;
    width: 60px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 200, 0.4) 0%,
        rgba(255, 250, 180, 0.25) 50%,
        transparent 100%);
    top: 0;
    filter: blur(3px);
    animation: beam-shine 8s ease-in-out infinite;
}

.heaven-beam:nth-child(1) { left: 15%; animation-delay: 0s; }
.heaven-beam:nth-child(2) { left: 25%; animation-delay: 0.4s; }
.heaven-beam:nth-child(3) { left: 35%; animation-delay: 0.8s; }
.heaven-beam:nth-child(4) { left: 50%; animation-delay: 0.2s; width: 80px; }
.heaven-beam:nth-child(5) { left: 65%; animation-delay: 0.6s; }
.heaven-beam:nth-child(6) { left: 75%; animation-delay: 0.1s; }
.heaven-beam:nth-child(7) { left: 85%; animation-delay: 0.5s; }

@keyframes beam-shine {
    0% { height: 0; opacity: 0; }
    30% { height: 70%; opacity: 0.7; }
    70% { height: 70%; opacity: 0.6; }
    100% { height: 0; opacity: 0; }
}

.divine-orb {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 250, 200, 0.7) 30%,
        rgba(255, 245, 180, 0.3) 60%,
        transparent 100%);
    border-radius: 50%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 60px rgba(255, 255, 200, 0.6),
        0 0 100px rgba(255, 250, 180, 0.3);
    animation: orb-shine 6s ease-in-out infinite;
}

@keyframes orb-shine {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
        box-shadow:
            0 0 60px rgba(255, 255, 200, 0.5),
            0 0 100px rgba(255, 250, 180, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
        box-shadow:
            0 0 80px rgba(255, 255, 200, 0.8),
            0 0 140px rgba(255, 250, 180, 0.5);
    }
}

.divine-wave {
    position: absolute;
    border: 3px solid rgba(255, 255, 200, 0.4);
    border-radius: 50%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: divine-expand 5s ease-out infinite;
}

.divine-wave:nth-child(9) { animation-delay: 0s; }
.divine-wave:nth-child(10) { animation-delay: 1.6s; }
.divine-wave:nth-child(11) { animation-delay: 3.2s; }

@keyframes divine-expand {
    0% { width: 120px; height: 120px; opacity: 0.8; }
    100% { width: 500px; height: 500px; opacity: 0; }
}

/* ═══════════════════════════════════════════════════
   CUSTOM PRAYER BUILDER
   ═══════════════════════════════════════════════════ */

.custom-prayers-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    font-family: 'Courier New', monospace;
}

.custom-prayer-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8E7F7F;
}

.custom-prayer-header h2 {
    color: #5F5449;
    font-size: 18px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.custom-prayer-header p {
    color: #8E7F7F;
    font-size: 11px;
    font-style: italic;
}

.custom-prayer-builder {
    display: flex;
    gap: 20px;
    flex: 1;
    overflow: hidden;
}

.phrase-selection {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.phrase-selection h3 {
    color: #5F5449;
    font-size: 13px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.phrases-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phrase-item {
    background: transparent;
    border: 2px solid #8E7F7F;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phrase-item:hover {
    background: rgba(142, 127, 127, 0.1);
    border-color: #5F5449;
}

.phrase-item.selected {
    background: #5F5449;
    border-color: #5F5449;
}

.phrase-item.selected .phrase-category,
.phrase-item.selected .phrase-text,
.phrase-item.selected .phrase-effects {
    color: #EBE6D8;
}

.phrase-category {
    color: #8E7F7F;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.phrase-text {
    color: #5F5449;
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.phrase-effects {
    color: #8E7F7F;
    font-size: 10px;
    font-style: italic;
}

.custom-prayer-preview {
    flex: 1;
    border-left: 2px solid #8E7F7F;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.custom-prayer-preview h3 {
    color: #5F5449;
    font-size: 13px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.selected-phrases {
    background: rgba(142, 127, 127, 0.05);
    border: 1px solid #8E7F7F;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 150px;
}

.selected-phrase {
    color: #5F5449;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.selected-phrase::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #8E7F7F;
}

.custom-prayer-effects {
    margin-bottom: 15px;
}

.custom-prayer-effects h4 {
    color: #5F5449;
    font-size: 11px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.effects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.effect-item {
    background: transparent;
    border: 1px solid #8E7F7F;
    padding: 5px 10px;
    font-size: 10px;
    color: #5F5449;
}

.perform-custom-prayer-btn,
.clear-phrases-btn {
    width: 100%;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.perform-custom-prayer-btn {
    background: #5F5449;
    border: 2px solid #5F5449;
    color: #EBE6D8;
}

.perform-custom-prayer-btn:hover:not(:disabled) {
    background: #4A3934;
    border-color: #4A3934;
}

.perform-custom-prayer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.clear-phrases-btn {
    background: transparent;
    border: 2px solid #8E7F7F;
    color: #5F5449;
}

.clear-phrases-btn:hover {
    background: rgba(142, 127, 127, 0.1);
}

.no-phrases-selected {
    text-align: center;
    padding: 40px 20px;
    color: #8E7F7F;
}

.no-phrases-selected p {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Scrollbar styling for phrase list */
.phrase-selection::-webkit-scrollbar {
    width: 8px;
}

.phrase-selection::-webkit-scrollbar-track {
    background: rgba(142, 127, 127, 0.1);
}

.phrase-selection::-webkit-scrollbar-thumb {
    background: #8E7F7F;
    border-radius: 4px;
}

.phrase-selection::-webkit-scrollbar-thumb:hover {
    background: #5F5449;
}
