/* =========================================================
   🚀 CAPACITOR GLOBAL SCROLLBAR NUKE (OPTIMIZED)
========================================================= */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
    display: none !important;
    -webkit-appearance: none !important;
}

/* =========================================================
   CORE SHELL & GLOBAL LAYOUT
========================================================= */
@keyframes ambient-breathing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0b0d;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: linear-gradient(-45deg, #050507, #121217, #1a1600, #08080a);
    background-size: 300% 300%;
    animation: ambient-breathing 18s ease-in-out infinite;
    color: #fff;
    overflow: hidden; 
    overscroll-behavior-y: none; 
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

#bottom-nav { display: flex !important; pointer-events: all !important; visibility: visible !important; opacity: 1 !important; z-index: 9999 !important; }
#bottom-nav .nav-btn { display: flex !important; visibility: visible !important; opacity: 1 !important; }

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

input, textarea, [contenteditable="true"] {
    -webkit-user-select: auto;
    user-select: auto;
}

#app-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; 
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: calc(85px + env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-y: auto; 
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card, .composer, .holy-btn, .nav-btn, .pilgrim-task, .slide-out-panel, .holy-modal-overlay, .premium-glass, .fullscreen-modal, .avatar, .sound-card, .jericho-wall-container {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

body.fullscreen #app-content { padding-bottom: env(safe-area-inset-bottom); }

/* --- LOADING SPINNER --- */
#loadingSpinner {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%); z-index: 1005; width: 50px; height: 50px;
}
.spinner {
    border: 4px solid #333; border-top: 4px solid #FFD700;
    border-radius: 50%; width: 100%; height: 100%; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- TOP PROGRESS BAR --- */
#floatingProgressBar {
    position: fixed; top: 0; left: 0; width: 100%;
    height: calc(5px + env(safe-area-inset-top)); background: #222;
    z-index: 1002; display: none; box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}
#progressBarFill {
    height: 100%; width: 100%; background: linear-gradient(to right, #B8860B, #FFD700);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* =========================================================
   NAVIGATION (BOTTOM & TOP)
========================================================= */
#bottom-nav {
    position: fixed; bottom: 0; width: 100%;
    background: rgba(10, 10, 14, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    display: flex; justify-content: space-around; align-items: flex-end;
    padding: 12px 10px 8px 10px; border-top: 1px solid rgba(255, 215, 0, 0.15); 
    font-size: 0.75rem; z-index: 999; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.fullscreen #bottom-nav { opacity: 0; pointer-events: none; transform: translateY(100%); }

.nav-btn {
    background: transparent; border: none; color: #666; font-size: 0.75rem; 
    font-weight: 700; font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: 0.3px; text-align: center; cursor: pointer; flex: 1; 
    max-width: 75px; padding: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; 
}
.nav-btn span {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    font-size: 1.4rem; border-radius: 16px; background: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); filter: grayscale(100%) opacity(0.6); 
    position: relative; z-index: 2;
}
.nav-btn span i { font-size: 1.4rem; transition: all 0.4s ease; }

.nav-btn.active { color: #FFD700; transform: translateY(-4px); }
.nav-btn.active span {
    transform: translateY(-8px) scale(1.1); 
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.05)); 
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2), inset 0 2px 5px rgba(255, 255, 255, 0.15);
    filter: grayscale(0%) opacity(1); 
}
.nav-btn::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%) scaleX(0);
    width: 20px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #FFD700, #fff);
    box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}
.nav-btn.active::after { transform: translateX(-50%) scaleX(1); opacity: 1; }
.nav-btn:active span { transform: scale(0.9) translateY(4px); background: rgba(255, 215, 0, 0.1); }

.top-nav-container { position: fixed; top: 30px; transform: translateY(-50%); right: 15px; z-index: 1001; display: flex; gap: 12px; transition: opacity 0.3s ease; }
body.fullscreen .top-nav-container { opacity: 0; pointer-events: none; }

.header-btn {
    background: #333; color: #FFD700; border: 1px solid #FFD700; border-radius: 50%;
    width: 34px; height: 34px; font-size: 0.95em; cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4); transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.header-btn:hover, .header-btn:active { background: #FFD700; color: #111; transform: scale(1.1); box-shadow: 0 0 12px rgba(255, 215, 0, 0.6); }

/* =========================================================
   🔔 PREMIUM BOTTOM NAV NOTIFICATION FIX
========================================================= */
#navBellBadge {
    position: absolute !important;
    top: 4px !important;
    right: calc(50% - 22px) !important;
    background: linear-gradient(135deg, #ff4d4d, #cc0000) !important; 
    color: #ffffff !important; 
    font-family: 'Inter', sans-serif !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4) !important;
    border: 2px solid #0f0f14 !important; 
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#navBellBadge[style*="display: none"] { display: none !important; }
#bottom-nav .nav-btn { opacity: 1 !important; filter: none !important; }
#bottom-nav .nav-btn:not(.active) span { opacity: 0.4 !important; filter: grayscale(100%) !important; transition: all 0.3s ease; }
#bottom-nav .nav-btn.active span { opacity: 1 !important; filter: grayscale(0%) !important; }

.hud-badge-dot {
    background: linear-gradient(135deg, #ff4d4d, #cc0000); color: white; padding: 2px 8px;
    border-radius: 12px; font-size: 0.75rem; font-weight: 900; margin-left: 8px; min-width: 18px; text-align: center;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.6); display: none; align-items: center; justify-content: center; border: 1px solid #181818;
}
.hud-badge-dot.active { display: inline-flex !important; animation: premiumBeacon 2s infinite; }

@keyframes premiumBeacon {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 68, 68, 0); }
}

/* =========================================================
   PANELS & MODALS
========================================================= */
.slide-out-panel {
    position: fixed; top: 0; right: 0; width: 100%; height: 100dvh; 
    background-color: rgba(18, 18, 18, 0.98); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    z-index: 1000; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0; box-sizing: border-box; 
    overflow: hidden; display: flex; flex-direction: column;
}
.slide-out-panel.open { transform: translateX(0); }
.slide-out-panel h3 { color: #FFD700; border-bottom: 1px solid #333; padding-bottom: 10px; margin: 30px 20px 0 20px; }

.fullscreen-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; 
    background: #121212; z-index: 1010; flex-direction: column; overflow-y: auto;
    -webkit-overflow-scrolling: touch; overscroll-behavior-y: none;
}

.modal-header {
    display: flex; align-items: center; padding: calc(20px + env(safe-area-inset-top)) 20px 10px;
    flex-shrink: 0; position: sticky; top: 0; background: inherit; z-index: 10;
}
.modal-header .fullscreen-back-btn {
    background: none; border: 1px solid #FFD700; color: #FFD700; border-radius: 50%;
    width: 45px; height: 45px; font-size: 1.2em; cursor: pointer; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s, background 0.2s;
}
.modal-header .fullscreen-back-btn:active { transform: scale(0.9); background: rgba(255,215,0,0.2); }
.modal-header h2 { flex: 1; text-align: center; margin: 0; color: #FFD700; font-size: 1.5em; }
.header-dummy { width: 45px; height: 45px; flex-shrink: 0; }

#focusExitContainer { position: fixed; top: calc(15px + env(safe-area-inset-top)); right: 15px; z-index: 1001; display: none; gap: 15px; }
body.fullscreen #focusExitContainer { display: flex; }

/* =========================================================
   SOUND MIXER & TOOLBOX
========================================================= */
.sound-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); 
    gap: 25px 15px; padding: 10px 20px calc(100px + env(safe-area-inset-bottom)); flex: 1;
    overflow-y: auto; -webkit-overflow-scrolling: touch; justify-items: center;
}
.sound-card {
    background: transparent; border: none; padding: 0; text-align: center; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; width: 100%; position: relative;
}
.sound-card i {
    font-size: 1.8em; color: #aaa; background: rgba(30, 30, 35, 0.8); width: 75px; height: 75px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%; 
    border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.sound-card.active i {
    color: #111; background: #FFD700; border-color: #FFD700; transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4), inset 0 -3px 10px rgba(0,0,0,0.1);
}
.sound-card label { display: none; }
.sound-card input[type="range"] {
    width: 85%; accent-color: #FFD700; pointer-events: none; opacity: 0; transform: translateY(-20px) scale(0.8); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); height: 4px; margin-top: 15px;
}
.sound-card.active input[type="range"] { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.sound-card input[type="checkbox"] { display: none; }

.stop-sounds-btn {
    width: calc(100% - 40px); margin: 10px 20px 30px; padding: 18px; background: rgba(204, 0, 0, 0.15); color: #ff4d4d;
    border: 1px solid rgba(204, 0, 0, 0.3); border-radius: 50px; font-weight: bold; font-size: 1.1em; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.stop-sounds-btn:active { transform: scale(0.95); background: rgba(204, 0, 0, 0.3); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }

.toolbox-item { margin-bottom: 15px; }
.toolbox-btn {
    width: 100%; padding: 15px; background: #222; color: #fff; border: 1px solid #333; border-radius: 8px; text-align: left;
    cursor: pointer; font-size: 1em; display: flex; align-items: center; gap: 15px; transition: background 0.2s;
}
.toolbox-btn:active { background: #333; }

/* =========================================================
   COMPACT TIMER STYLES
========================================================= */
#timerDisplay { font-size: 3em; font-weight: bold; color: #FFD700; text-align: center; margin: 20px 0 15px; }
.timer-set-btn {
    width: 100%; padding: 18px; background: #1e1e1e; border: 2px solid #FFD700; border-radius: 12px; color: #FFD700;
    font-size: 1.6rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.timer-set-btn:hover, .timer-set-btn:active { background: rgba(255, 215, 0, 0.2); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3); }

.picker-wrapper { position: relative; width: 100%; height: 300px; margin: 40px 0; }
.picker-content { display: flex; align-items: center; justify-content: center; gap: 30px; height: 100%; }
.wheel { height: 300px; width: 120px; overflow-y: scroll; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.wheel::-webkit-scrollbar { display: none; }
.picker-option { height: 60px; display: flex; align-items: center; justify-content: center; font-size: 2.8em; font-weight: bold; color: #888; scroll-snap-align: center; transition: color 0.2s, opacity 0.2s; }
.picker-option.empty { visibility: hidden; }
.unit { font-size: 1.8em; color: #FFD700; font-weight: 600; }
.highlight-bar { position: absolute; left: 20px; right: 20px; top: 120px; height: 60px; border-top: 2px solid rgba(255,215,0,0.6); border-bottom: 2px solid rgba(255,215,0,0.6); pointer-events: none; }
.picker-overlay { position: absolute; left: 0; width: 100%; height: 120px; pointer-events: none; }
.top-overlay { top: 0; background: linear-gradient(to bottom, #121212 20%, transparent 100%); }
.bottom-overlay { bottom: 0; background: linear-gradient(to top, #121212 20%, transparent 100%); }

/* =========================================================
   MODALS & ALERTS
========================================================= */
#errorModal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(0,0,0,0.8); z-index: 2000;
    align-items: center; justify-content: center; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
#errorModal .error-card { background: #1e1e1e; border: 2px solid #FFD700; border-radius: 20px; padding: 40px 30px; text-align: center; max-width: 85%; box-shadow: 0 0 30px rgba(255,215,0,0.3); }
#errorModal p { font-size: 1.6em; color: #FFD700; margin-bottom: 40px; line-height: 1.4; }
#errorModal button { padding: 15px 50px; background: #FFD700; color: #111; border: none; border-radius: 50px; font-size: 1.4em; font-weight: bold; cursor: pointer; }

/* =========================================================
   BEAUTIFIED SIDE MENU (HUD DASHBOARD)
========================================================= */
.menu-scroll-content { padding: 15px 20px 40px; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 20px; }

/* --- HUD LAYOUT STYLES --- */
.hud-box { 
    background: linear-gradient(145deg, rgba(30, 25, 15, 0.8), rgba(15, 10, 5, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 215, 0, 0.05);
    display: flex; flex-direction: column; gap: 15px; 
}
.hud-user-row { 
    display: flex; align-items: center; gap: 15px; 
    border-bottom: 1px solid rgba(255, 215, 0, 0.15); 
    padding-bottom: 15px; 
}
.hud-action-row { 
    display: flex; justify-content: space-between; align-items: center; 
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 215, 0, 0.15); 
    border-radius: 12px; padding: 12px 20px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); 
}
.hud-icon-btn { 
    background: rgba(255, 215, 0, 0.05); border: 1px solid rgba(255, 215, 0, 0.25); color: #FFD700; 
    border-radius: 14px; width: 48px; height: 48px; display: flex; justify-content: center; 
    align-items: center; font-size: 1.3em; cursor: pointer; transition: all 0.2s ease; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
}
.hud-icon-btn:hover, .hud-icon-btn:active { 
    background: rgba(255, 215, 0, 0.15); border-color: #FFD700; color: #FFD700; 
    transform: translateY(-2px); box-shadow: 0 6px 15px rgba(255, 215, 0, 0.2); 
}

/* --- NAVIGATION LINKS --- */
.hud-links-list { 
    display: flex; flex-direction: column; 
    background: rgba(30, 30, 35, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 18px; 
    overflow: hidden; 
    margin-top: 5px; 
    z-index: 10; 
    position: relative; 
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
}
.hud-link-item { 
    background: transparent; border: none; color: #fff; 
    font-weight: 800; font-size: 0.95em; letter-spacing: 1px; 
    padding: 18px 20px; text-align: left; cursor: pointer; 
    display: flex; align-items: center; justify-content: space-between; 
    transition: background 0.2s, padding-left 0.2s; 
}
.hud-link-item:active { 
    background: rgba(255, 215, 0, 0.1); 
    color: #FFD700; 
}
.hud-divider { 
    height: 1px; 
    background: rgba(255, 255, 255, 0.05); 
    margin: 0 15px; 
}

/* Redesigned Timer Buttons inside Focus Card */
.premium-btn { width: 100%; padding: 18px; border-radius: 16px; font-weight: 900; font-size: 1.15em; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; justify-content: center; align-items: center; gap: 10px; background: linear-gradient(135deg, #FFD700, #F5A623); color: #111; border: none; box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25), inset 0 2px 2px rgba(255,255,255,0.5); margin-top: 10px; text-transform: uppercase; letter-spacing: 1px; position: relative; overflow: hidden; }
.premium-btn:active { transform: scale(0.92) translateY(4px); box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5), inset 0 6px 12px rgba(0,0,0,0.25); filter: brightness(1.15); }
.premium-btn::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); transform: skewX(-20deg); transition: 0s; }
.premium-btn:active::after { left: 150%; transition: 0.4s ease-out; }
.premium-btn.outline { background: transparent; border: 1px solid #FFD700; color: #FFD700; box-shadow: none; margin-top: 5px; }
.premium-btn.outline:active { background: rgba(255, 215, 0, 0.1); }
.premium-btn.danger { background: #cc0000; color: #fff; box-shadow: 0 4px 15px rgba(204, 0, 0, 0.2); }

.total-time-display { text-align: center; margin: 25px 0 20px; }
.total-time-display small { color: #888; font-size: 0.7em; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.total-time-display span { color: #FFD700; font-size: 1.5em; font-weight: bold; font-family: monospace; letter-spacing: 2px; }

/* Timer End Modal */
.timer-end-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(17, 17, 17, 0.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 2000; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5vh 5vw; box-sizing: border-box; color: #fff; gap: 4vh; overflow-y: auto; }
.timer-end-modal h2 { font-size: 2.6em; color: #FFD700; font-weight: 600; letter-spacing: 1px; margin: 0; }
.timer-end-modal p { font-size: 1.25em; line-height: 1.7; max-width: 85%; opacity: 0.95; margin: 0; }
.timer-end-modal .verse { font-style: italic; color: #FFD700; font-size: 1.3em; padding: 20px 0; border-top: 1px solid #333; border-bottom: 1px solid #333; max-width: 90%; margin: 0; }
.timer-end-modal button { padding: 16px 50px; background: #FFD700; color: #111; border: none; border-radius: 50px; font-size: 1.5em; font-weight: bold; cursor: pointer; box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3); transition: all 0.3s; }
.timer-end-modal button:active { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4); }

@media (max-height: 650px) {
    .timer-end-modal { gap: 2.5vh; padding: 3vh 5vw; }
    .timer-end-modal h2 { font-size: 2.2em; }
    .timer-end-modal p { font-size: 1.1em; }
    .timer-end-modal .verse { font-size: 1.1em; padding: 15px 0; }
    .timer-end-modal button { padding: 14px 40px; font-size: 1.3em; }
}

/* =========================================================
   REMINDER TOGGLES
========================================================= */
.reminder-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; font-size: 1.4em; }
.switch { position: relative; display: inline-block; width: 70px; height: 38px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 38px; }
.slider:before { position: absolute; content: ""; height: 30px; width: 30px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #FFD700; }
input:checked + .slider:before { transform: translateX(32px); }

/* =========================================================
   🚀 APP INTEGRATION FIXES 🚀
========================================================= */
#app-content #header { top: 0 !important; z-index: 996 !important; }
#app-content #bible-text { padding-top: 65px !important; padding-bottom: 180px !important; }
#app-content #footer-nav { bottom: 85px !important; z-index: 990 !important; }
#app-content #menu { z-index: 995 !important; padding-bottom: 130px !important; }
#app-content #kyb-popup, #app-content #search-results-popup { height: calc(100dvh - 85px) !important; top: 0 !important; z-index: 1000 !important; }
#app-content #note-popup, #app-content #book-checklist-popup { margin-bottom: 85px !important; z-index: 1000 !important; }
#app-content #selection-modal, #app-content #daily-verse-popup, #app-content #search-results-popup { z-index: 1000 !important; }

/* 🌟 VERSE OF THE DAY RESPONSIVE FIX */
#app-content #daily-verse-popup { position: fixed !important; width: 90vw !important; max-width: 380px !important; max-height: 85dvh !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important; box-sizing: border-box !important; margin: 0 !important; overflow-y: auto !important; }
#app-content #note-backdrop { z-index: 998 !important; }

/* =========================================================
   ACHIEVEMENT TOAST
========================================================= */
#achievementToast {
    position: fixed; top: env(safe-area-inset-top); left: 50%; transform: translate(-50%, -150%); opacity: 0; background: rgba(30, 30, 46, 0.98); border: 1px solid #FFD700; border-radius: 50px; padding: 10px 25px 10px 15px; display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3); z-index: 9999; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease; pointer-events: none;
}
#achievementToast.show { transform: translate(-50%, 20px); opacity: 1; pointer-events: auto; cursor: pointer; }
#achievementToast .achievement-icon { font-size: 2.2em; filter: drop-shadow(0 0 8px rgba(255,215,0,0.5)); }
#achievementToast .achievement-text h4 { margin: 0; color: #FFD700; font-family: 'Arial', sans-serif; font-size: 0.85em; text-transform: uppercase; letter-spacing: 1px; }
#achievementToast .achievement-text p { margin: 4px 0 0 0; color: #fff; font-size: 1.1em; font-weight: bold; }

/* =========================================================
   HOLY GLOW WELCOME MODAL
========================================================= */
.holy-welcome-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 99999 !important; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box;
}
.holy-welcome-card { background: linear-gradient(145deg, rgba(30,30,35,0.95), rgba(15,15,18,0.98)); border: 1px solid rgba(255, 215, 0, 0.4); border-radius: 24px; padding: 45px 30px; text-align: center; max-width: 380px; width: 100%; position: relative; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05); animation: floatUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes floatUp { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.holy-welcome-glow { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 250px; height: 250px; background: radial-gradient(circle, rgba(255,215,0,0.25) 0%, transparent 70%); pointer-events: none; }
.holy-welcome-title { color: #FFD700; font-size: 2.8em; margin: 0 0 5px; font-family: 'Georgia', serif; text-shadow: 0 2px 20px rgba(255, 215, 0, 0.6); position: relative; letter-spacing: 1px; }
.holy-welcome-subtitle { color: #d4af37; font-size: 0.95em; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 25px; font-family: 'Arial', sans-serif; opacity: 0.9; position: relative; }
.holy-welcome-text { color: #f0f0f0; font-size: 1.15em; line-height: 1.7; margin-bottom: 40px; position: relative; font-family: 'Georgia', serif; font-style: italic; }
.holy-welcome-begin-btn { background: #FFD700; color: #111; border: none; padding: 16px 40px; font-size: 1.25em; font-weight: bold; border-radius: 50px; cursor: pointer; width: 100%; box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3); transition: all 0.3s ease; position: relative; }
.holy-welcome-begin-btn:active { transform: scale(0.95); box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2); }

/* =========================================================
   MUSIC ICON PULSE & THOUGHT BUBBLE
========================================================= */
.hint-bubble {
    background: rgba(20, 20, 20, 0.95); border: 1.5px solid #FFD700; color: #FFD700; padding: 10px 14px; border-radius: 18px 0 18px 18px; font-size: 0.9rem; font-weight: 700; box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4); opacity: 0; transform: translateX(15px); transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none; white-space: normal; max-width: 220px; text-align: right; line-height: 1.3; position: absolute; right: 45px; top: 40px; 
}
.hint-bubble.show { opacity: 1; transform: translateX(0); }
.pulse-anim { animation: softPulse 2s infinite; }
@keyframes softPulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6); } 50% { transform: scale(1.2); box-shadow: 0 0 0 12px rgba(255, 215, 0, 0); border-color: #fff; color: #fff; } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } }

/* =========================================================
   FOCUS MODE TIMER FIX
========================================================= */
body.fullscreen #timerDisplay { position: fixed !important; top: 85px !important; left: 50% !important; transform: translateX(-50%) !important; font-size: 2.8rem !important; font-family: 'Unbounded', system-ui !important; z-index: 9999 !important; text-shadow: 0 0 30px rgba(255,215,0,0.8) !important; width: 100% !important; text-align: center !important; pointer-events: none !important; color: #FFD700 !important; }

/* =========================================================
   😇 THE SANCTUARY HALO SYSTEM (GAMIFICATION)
========================================================= */
img.halo-bronze { border: 2px solid #cd7f32 !important; box-shadow: 0 0 12px rgba(205, 127, 50, 0.6) !important; }
img.halo-silver { border: 2px solid #e5e4e2 !important; box-shadow: 0 0 15px rgba(229, 228, 226, 0.8) !important; animation: haloPulse 3s infinite ease-in-out; }
img.halo-gold { border: 2px solid #FFD700 !important; box-shadow: 0 0 20px rgba(255, 215, 0, 0.9) !important; animation: haloPulse 2.5s infinite ease-in-out; }
img.halo-diamond { border: 2px solid #00E5FF !important; box-shadow: 0 0 25px rgba(0, 229, 255, 1) !important; animation: diamondShimmer 2s infinite linear; }
img.halo-ruby { border: 2px solid #ff3264 !important; box-shadow: 0 0 20px rgba(224, 17, 95, 0.8), inset 0 0 10px rgba(224, 17, 95, 0.5) !important; animation: rubyFlare 1.5s infinite alternate; }
img.halo-ethereal { border: 2px solid #b76e79 !important; animation: etherealShift 4s infinite linear; }
img.halo-divine { border: 3px solid #ffffff !important; box-shadow: 0 0 30px #ffffff, 0 0 50px #FFD700 !important; animation: divineRadiance 3s infinite ease-in-out; }

@keyframes haloPulse { 0% { box-shadow: 0 0 10px currentColor; } 50% { box-shadow: 0 0 20px currentColor; } 100% { box-shadow: 0 0 10px currentColor; } }
@keyframes diamondShimmer { 0% { box-shadow: 0 0 15px #00E5FF, inset 0 0 10px #00E5FF; border-color: #00E5FF; } 50% { box-shadow: 0 0 30px #ffffff, inset 0 0 20px #ffffff; border-color: #ffffff; } 100% { box-shadow: 0 0 15px #00E5FF, inset 0 0 10px #00E5FF; border-color: #00E5FF; } }
@keyframes rubyFlare { 0% { box-shadow: 0 0 15px rgba(224,17,95,0.6); border-color: #e0115f; } 100% { box-shadow: 0 0 35px rgba(255,50,100,1); border-color: #ff3264; transform: scale(1.02); } }
@keyframes etherealShift { 0% { box-shadow: 0 0 25px #ff00ff; border-color: #ff00ff; } 33% { box-shadow: 0 0 25px #00ffff; border-color: #00ffff; } 66% { box-shadow: 0 0 25px #00ff00; border-color: #00ff00; } 100% { box-shadow: 0 0 25px #ff00ff; border-color: #ff00ff; } }
@keyframes divineRadiance { 0% { box-shadow: 0 0 20px #fff, 0 0 40px #FFD700; transform: scale(1); } 50% { box-shadow: 0 0 45px #fff, 0 0 80px #FFD700; transform: scale(1.08); } 100% { box-shadow: 0 0 20px #fff, 0 0 40px #FFD700; transform: scale(1); } }

/* =========================================================
   🧱 THE JERICHO WALL STYLES
========================================================= */
.jericho-wall-container { background: linear-gradient(145deg, rgba(20, 15, 10, 0.9), rgba(10, 5, 5, 0.95)); border: 1px solid rgba(255, 215, 0, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 2px 10px rgba(255, 215, 0, 0.05); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); cursor: pointer; transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s; }
.jericho-wall-container:active { transform: scale(0.97); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8); border-color: #FFD700; }
.jericho-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.jericho-title { color: #FFD700; font-family: 'Unbounded', sans-serif; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5); display: flex; align-items: center; gap: 8px; }
.jericho-stats { color: #fff; font-weight: 900; font-size: 0.95rem; background: rgba(0,0,0,0.6); padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); }
.jericho-track { width: 100%; height: 26px; background: linear-gradient(180deg, #050505, #111); border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.1); border-top: 2px solid rgba(0,0,0,0.9); box-shadow: inset 0 4px 10px rgba(0,0,0,0.8); overflow: hidden; position: relative; }
.jericho-fill { height: 100%; background: linear-gradient(90deg, #F5A623, #FFD700, #FFF7B0); box-shadow: inset 0 -2px 5px rgba(0,0,0,0.3), 0 0 20px rgba(255,215,0,0.6); border-radius: 13px; position: relative; transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1); }
.jericho-glow-effect { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent); animation: jericho-shimmer 2s infinite linear; }
@keyframes jericho-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.jericho-footer { text-align: center; color: #bbb; font-size: 0.85rem; margin-top: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

/* =========================================================
   ✨ THE LIVING WORD - VISUAL EFFECTS ENGINE
========================================================= */
#lw-fx-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 999999; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
.lw-fx-warfare { background: radial-gradient(circle at center, rgba(200, 20, 0, 0.4), rgba(10,0,0,0.9) 80%); animation: lw-screen-shake 0.5s cubic-bezier(.36,.07,.19,.97) both, lw-fire-pulse 2s infinite alternate; }
@keyframes lw-screen-shake { 0%, 100% {transform: translateX(0);} 10%, 30%, 50%, 70%, 90% {transform: translateX(-8px) translateY(8px);} 20%, 40%, 60%, 80% {transform: translateX(8px) translateY(-8px);} }
@keyframes lw-fire-pulse { 0% { box-shadow: inset 0 0 50px rgba(255,50,0,0.5); } 100% { box-shadow: inset 0 0 150px rgba(255,100,0,0.8); } }
.lw-fx-healing { background: linear-gradient(0deg, rgba(0,229,255,0.4) 0%, rgba(5,5,15,0.9) 80%); animation: lw-cyan-ascend 3s ease-in-out infinite alternate; }
@keyframes lw-cyan-ascend { 0% { box-shadow: inset 0 -50px 100px rgba(0,229,255,0.2); } 100% { box-shadow: inset 0 -150px 200px rgba(0,229,255,0.6); } }
.lw-fx-peace { background: radial-gradient(circle at center, rgba(255,215,0,0.25), rgba(10,10,5,0.9) 70%); animation: lw-gold-shimmer 4s infinite alternate ease-in-out; }
@keyframes lw-gold-shimmer { 0% { opacity: 0.8; filter: brightness(1); } 100% { opacity: 1; filter: brightness(1.3); box-shadow: inset 0 0 120px rgba(255,215,0,0.3); } }
.lw-fx-wisdom { background: radial-gradient(circle at center, rgba(138, 43, 226, 0.4), rgba(10,5,20,0.9) 80%); animation: lw-purple-nebula 4s ease-in-out infinite alternate; }
@keyframes lw-purple-nebula { 0% { box-shadow: inset 0 0 80px rgba(138,43,226,0.2); filter: hue-rotate(0deg); } 100% { box-shadow: inset 0 0 150px rgba(138,43,226,0.6); filter: hue-rotate(20deg); } }
.lw-fx-joy { background: radial-gradient(circle at center, rgba(255, 20, 147, 0.3), rgba(15,0,10,0.9) 80%); animation: lw-pink-burst 2s infinite alternate ease-in-out; }
@keyframes lw-pink-burst { 0% { box-shadow: inset 0 -50px 100px rgba(255,20,147,0.3); } 100% { box-shadow: inset 0 -100px 200px rgba(255,100,200,0.7); transform: scale(1.02); } }
.lw-fx-text-container { text-align: center; padding: 40px; border-radius: 24px; background: rgba(0,0,0,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); max-width: 85%; transform: scale(0.7); transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.lw-fx-active .lw-fx-text-container { transform: scale(1); }
.lw-fx-ref { font-family: 'Unbounded', sans-serif; font-size: 2.2em; margin-bottom: 15px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 0 30px currentColor; }
.lw-fx-msg { color: #f0f0f0; font-size: 1.2em; font-style: italic; line-height: 1.5; font-weight: 500; }
.lw-particle { position: absolute; background: #fff; border-radius: 50%; pointer-events: none; animation: lw-float-up 2.5s linear forwards; }
@keyframes lw-float-up { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-150px) scale(0); opacity: 0; } }

/* =========================================================
   🚀 CORE ENGAGEMENT LOOP: ONBOARDING & PILGRIM'S SCROLL
========================================================= */
.onboard-finger { position: absolute; font-size: 3em; color: #FFD700; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6)); animation: onboard-bounce 0.7s infinite alternate cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 99999; pointer-events: none !important; }
.tour-flash-highlight { animation: tourFlash 1.5s infinite alternate !important; box-shadow: inset 0 0 0 2px #00E5FF, 0 0 15px rgba(0, 229, 255, 0.4) !important; border-radius: inherit; }
@keyframes onboard-bounce-side { 0% { transform: translateY(-50%) translateX(0); } 100% { transform: translateY(-50%) translateX(15px); } }
.pilgrim-scroll-widget { font-size: 16px !important; }
.pilgrim-scroll-widget .pilgrim-task { font-size: 14px !important; line-height: 1.4 !important; }
#bottom-nav .nav-btn { font-size: 12px !important; }
#bottom-nav .nav-btn i { font-size: 20px !important; }
.holy-modal-overlay h2 { font-size: 24px !important; line-height: 1.2 !important; }
.holy-modal-overlay p { font-size: 16px !important; line-height: 1.5 !important; }
.holy-modal-overlay button { font-size: 16px !important; line-height: normal !important; }
#settingsPanel h2 { font-size: 22px !important; }
@keyframes tourFlash { 0% { filter: brightness(1); } 100% { filter: brightness(1.3); } }
@keyframes suckIntoPortal { 0% { transform: scale(1) rotate(0deg); opacity: 1; filter: blur(0px); } 50% { transform: scale(0.4) rotate(180deg); opacity: 0.8; filter: blur(2px); } 100% { transform: scale(0) rotate(720deg); opacity: 0; filter: blur(5px); } }
.suck-animation { animation: suckIntoPortal 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards !important; }
@keyframes onboard-bounce { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-20px) scale(1.1); } }
.pilgrim-scroll-widget { position: fixed; bottom: 90px; right: 15px; background: linear-gradient(145deg, rgba(20,15,10,0.95), rgba(10,5,5,0.98)); border: 1px solid rgba(255, 215, 0, 0.4); border-radius: 16px; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,215,0,0.1); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 9000; transform: translateX(150%); transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); min-width: 220px; }
.pilgrim-scroll-widget.active { transform: translateX(0); }
.pilgrim-task { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: #ddd; font-size: 0.9em; font-weight: 600; transition: all 0.3s; }
.pilgrim-task i { font-size: 1.2em; color: rgba(255,255,255,0.2); }
.pilgrim-task.completed { color: #00E5FF; text-decoration: line-through; opacity: 0.8; }
#scroll-drop-zone { position: fixed; bottom: 110px; left: 20px; width: 65px; height: 65px; background: rgba(20,20,25,0.9); border: 2px dashed #FFD700; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFD700; font-size: 1.5em; z-index: 99999; box-shadow: 0 0 30px rgba(255,215,0,0.3), inset 0 0 15px rgba(255,215,0,0.2); transform: scale(0); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s, border 0.2s; pointer-events: none; }
#scroll-drop-zone.active-hover { background: rgba(255,215,0,0.2); border: 2px solid #00E5FF; color: #00E5FF; transform: scale(1.15); box-shadow: 0 0 40px rgba(0,229,255,0.6); }

/* =========================================
   🌟 ETERNAL ASCENSION & DIAMOND VAULT ANIMATIONS
========================================= */
.eternal-ascension-overlay { position: fixed; inset: 0; z-index: 100000; background: radial-gradient(circle at center, rgba(212,175,55,0.25) 0%, rgba(0,0,0,0.95) 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; backdrop-filter: blur(10px); transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.eternal-ascension-overlay.active { opacity: 1; }
.ascension-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ascension-particle { position: absolute; bottom: -10px; width: 4px; height: 15px; background: linear-gradient(to top, rgba(255,215,0,0), #FFD700); border-radius: 50%; opacity: 0.8; animation: floatUpAsc 2s ease-in forwards; }
@keyframes floatUpAsc { 0% { transform: translateY(0) scale(1); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-100vh) scale(0.5); opacity: 0; } }
.badge-3d-container { perspective: 1000px; margin-bottom: 20px; }
.badge-3d { width: 120px; height: 120px; background: linear-gradient(135deg, #FFD700, #F5A623); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 4em; color: #111; box-shadow: 0 0 40px rgba(255,215,0,0.8), inset 0 0 20px rgba(255,255,255,0.5); border: 4px solid #fff; transform-style: preserve-3d; animation: rotate3D 3.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes rotate3D { 0% { transform: rotateY(0deg) scale(0.5); } 50% { transform: rotateY(360deg) scale(1.2); } 100% { transform: rotateY(720deg) scale(1); } }
@keyframes diamond-rain-fall { 0% { transform: translateY(-50px) rotate(0deg) scale(0.8); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(300px) rotate(360deg) scale(1.2); opacity: 0; } }
.diamond-rain-container { position: absolute; inset: 0; overflow: hidden; border-radius: 24px; z-index: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.05)); }
.falling-gem { position: absolute; top: -30px; color: #00E5FF; filter: drop-shadow(0 0 10px rgba(0,229,255,0.8)); animation: diamond-rain-fall linear infinite; }

/* =========================================================
   HARDWARE ACCELERATED GIFTS ENGINE (DYNAMIC KEYFRAMES)
========================================================= */
/* Radiant Supernova */
@keyframes letterbox-top { 0% { transform: translateY(-100%); } 10%, 90% { transform: translateY(0); } 100% { transform: translateY(-100%); } }
@keyframes letterbox-bottom { 0% { transform: translateY(100%); } 10%, 90% { transform: translateY(0); } 100% { transform: translateY(100%); } }
@keyframes nova-flash { 0% { opacity: 0; background: rgba(255, 255, 255, 0); } 15% { opacity: 1; background: rgba(255, 255, 255, 1); filter: brightness(5) contrast(2); } 40% { background: radial-gradient(circle, rgba(255,245,200,1) 0%, rgba(255,215,0,0.4) 40%, transparent 80%); } 85% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(2); } }
@keyframes cinematic-prism { 0% { transform: translateZ(-2000px) rotateX(0deg) rotateY(0deg) scale(0); opacity: 0; filter: blur(20px); } 20% { transform: translateZ(200px) rotateX(180deg) rotateY(180deg) scale(1); opacity: 1; filter: blur(0px); box-shadow: 0 0 100px 50px rgba(255, 215, 0, 0.8); } 80% { transform: translateZ(500px) rotateX(360deg) rotateY(360deg) scale(1.2); opacity: 1; box-shadow: 0 0 150px 80px rgba(255, 255, 255, 0.9); } 100% { transform: translateZ(1500px) rotateX(540deg) rotateY(540deg) scale(3); opacity: 0; } }
@keyframes gold-dust { 0% { opacity: 0; transform: translateY(0) scale(1); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--travel-y)) translateX(var(--travel-x)) scale(var(--scale)); } }
.cinematic-bar { position: absolute; left: 0; right: 0; height: 12vh; background: #000; z-index: 10; box-shadow: 0 0 30px rgba(0,0,0,0.9); }
.bar-top { top: 0; animation: letterbox-top 6s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.bar-bottom { bottom: 0; animation: letterbox-bottom 6s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.nova-core { position: absolute; inset: 0; z-index: 5; animation: nova-flash 5.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; mix-blend-mode: screen; }
.prism-object { position: absolute; z-index: 8; width: 150px; height: 150px; background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,215,0,0.9) 50%, rgba(218,165,32,0.8) 100%); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); animation: cinematic-prism 5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; will-change: transform; }
.gold-particle { position: absolute; background: #fff; border-radius: 50%; box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.8); animation: gold-dust 4.5s ease-out forwards; z-index: 6; }

/* Cataclysmic Meteor */
@keyframes earth-shatter { 0% { transform: translate(0, 0) rotate(0deg); } 10% { transform: translate(-10px, -10px) rotate(-1deg); } 20% { transform: translate(10px, 10px) rotate(1deg); } 30% { transform: translate(-15px, 5px) rotate(-2deg); } 40% { transform: translate(15px, -5px) rotate(2deg); } 50% { transform: translate(-10px, -15px) rotate(-1deg); } 60% { transform: translate(10px, 15px) rotate(1deg); } 70% { transform: translate(-5px, 5px) rotate(0deg); } 100% { transform: translate(0, 0) rotate(0deg); } }
.screen-shake { animation: earth-shatter 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes meteor-fall { 0% { transform: translate(50vw, -120vh) rotate(45deg) scale(0.5); opacity: 1; } 80% { transform: translate(0vw, 80vh) rotate(45deg) scale(1.5); opacity: 1; } 85% { transform: translate(-5vw, 100vh) rotate(45deg) scale(2); opacity: 0; } 100% { transform: translate(-5vw, 100vh) rotate(45deg) scale(2); opacity: 0; } }
@keyframes shockwave-expand { 0% { transform: scale(0); opacity: 1; border-width: 50px; } 100% { transform: scale(10); opacity: 0; border-width: 0px; } }
@keyframes fire-debris { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
.meteor-body { position: absolute; width: 60px; height: 60px; background: radial-gradient(circle, #fff 0%, #ffdf00 30%, #ff4500 70%, #8b0000 100%); border-radius: 50%; box-shadow: 0 0 50px 20px rgba(255, 69, 0, 0.8); animation: meteor-fall 1.2s cubic-bezier(0.5, 0, 1, 1) forwards; }
.meteor-body::after { content: ''; position: absolute; top: -300px; left: 15px; width: 30px; height: 350px; background: linear-gradient(to top, rgba(255, 69, 0, 0.9), transparent); filter: blur(10px); border-radius: 50px; }
.impact-shockwave { position: absolute; bottom: -10vh; width: 300px; height: 300px; border: 50px solid rgba(255, 140, 0, 0.8); border-radius: 50%; animation: shockwave-expand 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; opacity: 0; }
.fire-particle { position: absolute; bottom: 0; width: 15px; height: 15px; background: #ff4500; border-radius: 50%; box-shadow: 0 0 10px #ffdf00; animation: fire-debris 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

/* Heavens Opened */
@keyframes sky-darken { 0% { background: rgba(0, 0, 0, 0); } 15% { background: rgba(10, 20, 40, 0.85); } 85% { background: rgba(10, 20, 40, 0.85); } 100% { background: rgba(0, 0, 0, 0); } }
@keyframes divine-burst { 0% { opacity: 0; transform: translateY(-50vh) scale(0.5); } 15% { opacity: 1; transform: translateY(-10vh) scale(1.5); } 85% { opacity: 1; transform: translateY(-10vh) scale(1.6); } 100% { opacity: 0; transform: translateY(-50vh) scale(0.5); } }
@keyframes ray-spin { 0% { transform: rotate(0deg); opacity: 0; } 20% { opacity: 0.8; } 80% { opacity: 0.8; } 100% { transform: rotate(45deg); opacity: 0; } }
@keyframes dove-descend { 0% { transform: translateY(-30vh) scale(0); opacity: 0; filter: brightness(10) blur(10px); } 25% { transform: translateY(0) scale(1.2); opacity: 1; filter: brightness(1.5) blur(0px) drop-shadow(0 0 30px #fff); } 35% { transform: translateY(-2vh) scale(1); } 80% { transform: translateY(-2vh) scale(1); opacity: 1; filter: brightness(1.5) drop-shadow(0 0 40px #fff); } 100% { transform: translateY(-50vh) scale(0); opacity: 0; } }
@keyframes heavenly-motes { 0% { transform: translateY(-10vh) rotate(0deg) scale(0.5); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--drop-y)) translateX(var(--drift-x)) rotate(var(--spin)) scale(1.2); opacity: 0; } }
.heavens-background { position: absolute; inset: 0; animation: sky-darken 6.5s ease-in-out forwards; z-index: 1; }
.divine-light { position: absolute; top: -20vh; width: 150vw; height: 100vh; background: radial-gradient(ellipse at top center, rgba(255,250,200,1) 0%, rgba(255,215,0,0.6) 30%, transparent 70%); animation: divine-burst 6.5s ease-out forwards; z-index: 2; mix-blend-mode: screen; }
.god-rays { position: absolute; top: -50vh; width: 200vw; height: 200vh; background: repeating-conic-gradient(from 0deg at 50% 10%, rgba(255,255,255,0.4) 0deg 5deg, transparent 5deg 15deg); animation: ray-spin 6.5s linear forwards; z-index: 3; mix-blend-mode: overlay; -webkit-mask-image: radial-gradient(circle at 50% 10%, black 10%, transparent 70%); }
.holy-dove { position: absolute; z-index: 10; font-size: 120px; animation: dove-descend 6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; will-change: transform; }
.heavenly-mote { position: absolute; top: 10vh; background: linear-gradient(135deg, #ffffff, #ffd700); border-radius: 50px 0 50px 0; box-shadow: 0 0 10px #ffd700; z-index: 5; animation: heavenly-motes 5s ease-out forwards; }

/* Crown of Glory */
@keyframes royal-fade { 0% { background: rgba(0, 0, 0, 0); } 10% { background: radial-gradient(circle, rgba(40,10,60,0.85) 0%, rgba(10,5,20,0.95) 100%); } 85% { background: radial-gradient(circle, rgba(40,10,60,0.85) 0%, rgba(10,5,20,0.95) 100%); } 100% { background: rgba(0, 0, 0, 0); } }
@keyframes crown-majesty { 0% { transform: translateZ(-3000px) translateY(-150vh) rotateY(-720deg) scale(0.1); opacity: 0; } 20% { transform: translateZ(200px) translateY(0) rotateY(0deg) scale(1.5); opacity: 1; } 25% { transform: translateZ(0px) translateY(0) rotateY(0deg) scale(1.2); opacity: 1; } 25%, 65% { opacity: 1; } 45% { transform: translateZ(50px) translateY(-20px) scale(1.25); } 65% { transform: translateZ(0px) translateY(0px) scale(1.2); } 85% { transform: translateZ(1000px) translateY(-50vh) rotateX(20deg) scale(3); opacity: 0; } 100% { opacity: 0; } }
@keyframes divine-aura-pulse { 0% { transform: scale(0); opacity: 0; } 22% { transform: scale(0); opacity: 0; } 25% { transform: scale(1); opacity: 0.8; } 45% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 150px 100px rgba(255, 215, 0, 0.6); } 65% { transform: scale(1); opacity: 0.8; } 80% { transform: scale(3); opacity: 0; } 100% { transform: scale(3); opacity: 0; } }
@keyframes royal-shockwave { 0% { transform: scale(0) rotateX(60deg); opacity: 1; border-width: 40px; } 100% { transform: scale(8) rotateX(60deg); opacity: 0; border-width: 0px; } }
@keyframes premium-particle-fall { 0% { transform: translate3d(0, 0, 0) scale(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; transform: translate3d(var(--tx-start), var(--ty-start), var(--tz)) scale(var(--scale)) rotate(180deg); } 90% { opacity: 1; } 100% { transform: translate3d(var(--tx-end), 120vh, var(--tz)) scale(var(--scale)) rotate(720deg); opacity: 0; } }
.royal-veil { position: absolute; inset: 0; z-index: 1; animation: royal-fade 12s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.divine-aura { position: absolute; z-index: 2; width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,215,0,0.8) 40%, transparent 70%); border-radius: 50%; mix-blend-mode: screen; animation: divine-aura-pulse 12s linear forwards; }
.majestic-crown { position: absolute; z-index: 5; font-size: 180px; line-height: 1; text-shadow: 0 1px 0 #b38e00, 0 2px 0 #a68300, 0 3px 0 #997900, 0 4px 0 #8c6e00, 0 5px 0 #806400, 0 6px 0 #735a00, 0 10px 20px rgba(0,0,0,0.8), 0 0 50px rgba(255,215,0,0.5); filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)); animation: crown-majesty 12s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; will-change: transform; }
.premium-particle { position: absolute; z-index: 4; font-size: 24px; animation: premium-particle-fall 7s cubic-bezier(0.25, 1, 0.5, 1) forwards; opacity: 0; }
.shockwave-ring { position: absolute; z-index: 3; width: 200px; height: 200px; border: 20px solid rgba(255, 215, 0, 0.8); border-radius: 50%; box-shadow: 0 0 30px #fff, inset 0 0 30px #fff; opacity: 0; }

/* Throne Room */
@keyframes void-collapse-2 { 0% { background: rgba(0,0,0,0); } 8% { background: radial-gradient(circle, rgba(10,0,30,0.99) 30%, rgba(0,0,15,0.98) 70%); } 92% { background: radial-gradient(circle, rgba(10,0,30,0.99) 30%, rgba(0,0,15,0.98) 70%); } 100% { background: rgba(0,0,0,0); } }
@keyframes ophanim-spin-1 { 0% { transform: rotateX(65deg) rotateY(0deg) rotateZ(0deg) scale(0); opacity: 0; filter: brightness(0.6); } 12% { transform: rotateX(65deg) rotateY(0deg) rotateZ(60deg) scale(1.1); opacity: 1; filter: brightness(1.4); } 82% { transform: rotateX(65deg) rotateY(0deg) rotateZ(1440deg) scale(1.8); opacity: 1; filter: brightness(2); } 100% { transform: rotateX(65deg) rotateY(0deg) rotateZ(1800deg) scale(5); opacity: 0; } }
@keyframes ophanim-spin-2 { 0% { transform: rotateX(70deg) rotateY(55deg) rotateZ(0deg) scale(0); opacity: 0; } 12% { transform: rotateX(70deg) rotateY(55deg) rotateZ(-60deg) scale(1.1); opacity: 1; } 82% { transform: rotateX(70deg) rotateY(55deg) rotateZ(-1440deg) scale(1.8); opacity: 1; } 100% { transform: rotateX(70deg) rotateY(55deg) rotateZ(-1800deg) scale(5); opacity: 0; } }
@keyframes ophanim-spin-3 { 0% { transform: rotateX(68deg) rotateY(-55deg) rotateZ(0deg) scale(0); opacity: 0; } 12% { transform: rotateX(68deg) rotateY(-55deg) rotateZ(60deg) scale(1.1); opacity: 1; } 82% { transform: rotateX(68deg) rotateY(-55deg) rotateZ(1440deg) scale(1.8); opacity: 1; } 100% { transform: rotateX(68deg) rotateY(-55deg) rotateZ(1800deg) scale(5); opacity: 0; } }
@keyframes ophanim-spin-4 { 0% { transform: rotateX(72deg) rotateY(30deg) rotateZ(0deg) scale(0); opacity: 0; } 15% { transform: rotateX(72deg) rotateY(30deg) rotateZ(-80deg) scale(1); opacity: 1; } 80% { transform: rotateX(72deg) rotateY(30deg) rotateZ(-1600deg) scale(1.6); opacity: 1; } 100% { transform: rotateX(72deg) rotateY(30deg) rotateZ(-2000deg) scale(4.5); opacity: 0; } }
@keyframes ophanim-spin-5 { 0% { transform: rotateX(67deg) rotateY(-30deg) rotateZ(0deg) scale(0); opacity: 0; } 15% { transform: rotateX(67deg) rotateY(-30deg) rotateZ(80deg) scale(1); opacity: 1; } 80% { transform: rotateX(67deg) rotateY(-30deg) rotateZ(1600deg) scale(1.6); opacity: 1; } 100% { transform: rotateX(67deg) rotateY(-30deg) rotateZ(2000deg) scale(4.5); opacity: 0; } }
@keyframes holy-core-pulse-2 { 0% { transform: translateZ(0) scale(0); opacity: 0; box-shadow: 0 0 0 rgba(255,255,255,0); } 18% { transform: translateZ(120px) scale(0.6); opacity: 0.9; box-shadow: 0 0 120px 80px #fff, 0 0 300px 150px #ffd700; } 35% { transform: translateZ(120px) scale(1.4); opacity: 1; box-shadow: 0 0 250px 120px #fff, 0 0 600px 300px #ffaa00; } 78% { transform: translateZ(180px) scale(1.8); opacity: 1; } 88% { transform: translateZ(1800px) scale(8); opacity: 1; } 100% { transform: translateZ(2500px) scale(15); opacity: 0; } }
@keyframes cinematic-text-push-2 { 0% { transform: translateZ(-2500px) scale(0.5); opacity: 0; letter-spacing: -30px; filter: blur(30px); } 38% { transform: translateZ(0) scale(1); opacity: 1; letter-spacing: 8px; filter: blur(0); } 72% { transform: translateZ(300px) scale(1.1); opacity: 1; letter-spacing: 20px; text-shadow: 0 0 60px #fff, 0 0 140px #ffd700, 0 0 220px #ffaa00; } 88% { transform: translateZ(1200px) scale(1.3); opacity: 0.3; letter-spacing: 50px; filter: blur(15px); } 100% { transform: translateZ(2800px) scale(2); opacity: 0; } }
@keyframes ember-drift-2 { 0% { transform: translate3d(var(--start-x), var(--start-y), 0) scale(0); opacity: 0; } 8% { opacity: 1; transform: translate3d(var(--start-x), var(--start-y), 0) scale(var(--scale)); } 85% { opacity: 1; } 100% { transform: translate3d(var(--end-x), 150vh, var(--end-z)) scale(var(--scale)); opacity: 0; } }
@keyframes spark-drift { 0% { transform: translate3d(var(--start-x), var(--start-y), 0) scale(0.3); opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { transform: translate3d(var(--end-x), 120vh, var(--end-z)) scale(1.8); opacity: 0; } }
.throne-void-2 { position: absolute; inset: 0; z-index: 1; animation: void-collapse-2 20s cubic-bezier(0.15, 0, 0.25, 1) forwards; }
.ophanim-ring-2 { position: absolute; z-index: 3; width: 420px; height: 420px; border: 18px solid rgba(255, 215, 0, 0.85); border-radius: 50%; box-shadow: 0 0 60px #ff4500, inset 0 0 60px #ff4500, 0 0 120px #ffd700, inset 0 0 120px #ffd700; background-image: repeating-conic-gradient(from 0deg, transparent 0deg 15deg, rgba(255,255,255,0.95) 15deg 22deg, transparent 22deg 40deg); -webkit-mask-image: radial-gradient(circle, transparent 60%, black 68%); }
.ring-1 { animation: ophanim-spin-1 20s cubic-bezier(0.23, 0.1, 0.32, 1) forwards; } .ring-2 { animation: ophanim-spin-2 20s cubic-bezier(0.23, 0.1, 0.32, 1) forwards; } .ring-3 { animation: ophanim-spin-3 20s cubic-bezier(0.23, 0.1, 0.32, 1) forwards; } .ring-4 { animation: ophanim-spin-4 20s cubic-bezier(0.23, 0.1, 0.32, 1) forwards; top: 15%; left: 20%; } .ring-5 { animation: ophanim-spin-5 20s cubic-bezier(0.23, 0.1, 0.32, 1) forwards; top: 25%; right: 18%; }
.holy-core-2 { position: absolute; z-index: 4; width: 180px; height: 180px; background: radial-gradient(circle, #ffffff 30%, #ffeeaa 70%, #ffaa00 100%); border-radius: 50%; animation: holy-core-pulse-2 20s cubic-bezier(0.35, 0, 0.25, 1) forwards; }
.proclamation-text-2 { position: absolute; z-index: 10; font-family: 'Georgia', serif; font-size: 4.8rem; font-weight: 900; color: #fff; text-transform: uppercase; text-align: center; line-height: 1.15; animation: cinematic-text-push-2 20s cubic-bezier(0.2, 0.85, 0.25, 1) forwards; will-change: transform, letter-spacing, filter; }
.golden-ember-2, .divine-spark { position: absolute; z-index: 5; border-radius: 50%; animation: ember-drift-2 9s linear forwards; }
.golden-ember-2 { width: 7px; height: 7px; background: #ffdf00; box-shadow: 0 0 18px 8px #ff8c00; }
.divine-spark { width: 4px; height: 4px; background: #a0e0ff; box-shadow: 0 0 12px 6px #ffffff; animation-name: spark-drift; animation-duration: 6s; }

/* Eternal Eclipse */
@keyframes eclipse-darken { 0% { background: rgba(0,0,0,0); } 25% { background: rgba(5,0,15,0.98); } 75% { background: rgba(5,0,15,0.98); } 100% { background: rgba(0,0,0,0); } }
@keyframes video-bleed { 0% { opacity: 0; filter: blur(20px); } 15% { opacity: 0.9; filter: blur(0px); } 85% { opacity: 0.9; filter: blur(0px); } 100% { opacity: 0; filter: blur(20px); } }
@keyframes eclipse-orb-grow { 0% { transform: scale(0.1) rotate(0deg); opacity: 0; filter: brightness(0.5); } 30% { transform: scale(1.8) rotate(180deg); opacity: 1; filter: brightness(1.2); } 70% { transform: scale(2.1) rotate(720deg); opacity: 1; } 100% { transform: scale(0.6) rotate(1440deg); opacity: 0; } }
@keyframes corona-flare { 0% { transform: scale(0.8); opacity: 0; } 35% { transform: scale(2.8); opacity: 0.9; } 65% { transform: scale(3.2); opacity: 0.85; } 100% { transform: scale(5); opacity: 0; } }
@keyframes cosmic-drift { 0% { transform: translate3d(var(--sx), var(--sy), var(--sz)) scale(0.2) rotate(0deg); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate3d(var(--ex), var(--ey), var(--ez)) scale(var(--ss)) rotate(var(--rot)); opacity: 0; } }
@keyframes final-radiance { 0% { opacity: 0; transform: scale(0.5); } 78% { opacity: 0; } 82% { opacity: 1; transform: scale(1.6); filter: brightness(4) contrast(1.5); } 92% { opacity: 0.9; transform: scale(2.8); } 100% { opacity: 0; transform: scale(6); } }
.eclipse-veil { position: absolute; inset: 0; z-index: 0; animation: eclipse-darken 14s ease-in-out forwards; }
.eclipse-video-bg { position: absolute; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: 1; animation: video-bleed 14s ease-in-out forwards; mix-blend-mode: screen; }
.golden-corona { position: absolute; top: 38%; left: 50%; transform: translateX(-50%); width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,215,0,0.9) 10%, transparent 70%); border-radius: 50%; animation: corona-flare 14s ease-out forwards; z-index: 2; mix-blend-mode: screen; }
.eclipse-orb { position: absolute; top: 38%; left: 50%; transform: translateX(-50%); width: 260px; height: 260px; background: radial-gradient(circle, #111 40%, #000 70%); border-radius: 50%; box-shadow: 0 0 120px 60px rgba(255, 215, 0, 0.6), inset 0 0 80px rgba(255,255,255,0.4); animation: eclipse-orb-grow 14s cubic-bezier(0.23, 0.1, 0.32, 1) forwards; z-index: 3; }
.cosmic-particle { position: absolute; width: 5px; height: 5px; background: #fff; border-radius: 50%; box-shadow: 0 0 12px #ffd700; z-index: 5; animation: cosmic-drift 14s linear forwards; }
.final-radiance { position: absolute; inset: 0; z-index: 8; background: radial-gradient(circle at center, rgba(255,240,180,1) 0%, transparent 70%); animation: final-radiance 14s ease-out forwards; mix-blend-mode: screen; opacity: 0; }

/* Astral Awakening */
@keyframes container-astral-fade { 0% { opacity: 0; } 5%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes video-astral-reveal { 0% { opacity: 0; filter: blur(30px) brightness(0.5); transform: scale(1.1); } 15%, 85% { opacity: 0.85; filter: blur(0px) brightness(1.2); transform: scale(1); } 100% { opacity: 0; filter: blur(30px) brightness(0.2); transform: scale(1.2); } }
@keyframes cinematic-celestial-text { 0% { opacity: 0; transform: translateZ(-800px); letter-spacing: -10px; filter: blur(20px); } 20%, 80% { opacity: 1; transform: translateZ(0px); letter-spacing: 8px; filter: blur(0px); text-shadow: 0 0 30px #fff, 0 0 60px #a2d2ff, 0 0 100px #6a00ff; } 100% { opacity: 0; transform: translateZ(800px); letter-spacing: 40px; filter: blur(20px); } }
.astral-video-bg { position: absolute; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: 1; animation: video-astral-reveal 16s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; mix-blend-mode: screen; }
.celestial-text { position: absolute; z-index: 10; font-family: 'Georgia', serif; font-size: 2.5rem; font-weight: 300; color: #ffffff; text-transform: uppercase; text-align: center; line-height: 1.4; animation: cinematic-celestial-text 15s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

/* Divine Grace */
@keyframes grace-container-fade { 0% { opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes video-grace-reveal { 0% { opacity: 0; filter: blur(20px) brightness(0.3); transform: scale(1.05); } 20% { opacity: 0.9; filter: blur(0px) brightness(1.1); transform: scale(1); } 85% { opacity: 0.9; filter: blur(0px) brightness(1); transform: scale(1.02); } 100% { opacity: 0; filter: blur(20px) brightness(0.2); transform: scale(1.05); } }
@keyframes prayer-ascension { 0% { transform: translate(var(--startX), 110vh) scale(var(--startScale)); opacity: 0; } 20% { opacity: var(--maxOpacity); } 80% { opacity: var(--maxOpacity); } 100% { transform: translate(calc(var(--startX) + var(--driftX)), -10vh) scale(var(--endScale)); opacity: 0; } }
@keyframes heaven-rays-sway { 0% { opacity: 0; transform: translateY(-20vh) rotate(-5deg) scale(1.2); } 25% { opacity: 0.5; transform: translateY(0vh) rotate(2deg) scale(1.1); } 50% { opacity: 0.6; transform: translateY(5vh) rotate(-2deg) scale(1.15); } 75% { opacity: 0.5; transform: translateY(0vh) rotate(3deg) scale(1.1); } 100% { opacity: 0; transform: translateY(-20vh) rotate(-5deg) scale(1.2); } }
@keyframes cinematic-grace-text { 0% { opacity: 0; transform: translateY(20px); letter-spacing: 2px; filter: blur(10px); } 25% { opacity: 1; transform: translateY(0px); letter-spacing: 8px; filter: blur(0px); text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); } 75% { opacity: 1; transform: translateY(-10px); letter-spacing: 12px; filter: blur(0px); text-shadow: 0 0 30px rgba(255, 255, 255, 0.8); } 100% { opacity: 0; transform: translateY(-30px); letter-spacing: 20px; filter: blur(10px); } }
.grace-video-bg { position: absolute; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: 1; animation: video-grace-reveal 16s ease-in-out forwards; mix-blend-mode: screen; }


/* =========================================================
   🚀 BETA LAUNCH: STABLE FULL-SCREEN ACTION LOCK
   Used by GlobalFeed → Prayer focus handoff and other cinematic flows.
========================================================= */
body.hg-focus-lock {
    overflow: hidden !important;
    background: #000 !important;
}
body.hg-focus-lock #bottom-nav,
body.hg-focus-lock .top-nav-container,
body.hg-focus-lock #settingsPanel,
body.hg-focus-lock #toolboxModal,
body.hg-focus-lock #holyGlowStoreModal {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(100%) !important;
}
body.hg-focus-lock #app-content {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
    z-index: 2147483000 !important;
    -webkit-overflow-scrolling: auto !important;
}
body.hg-ios-stable * {
    -webkit-tap-highlight-color: transparent !important;
}
.hg-will-animate {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
}
