/* ============================================
   STRONGHOLD THEME VARIABLES (LIVING TABERNACLE)
   ============================================ */
:root {
    --bg-obsidian: #050505;
    /* Deepest black/grey */
    --bg-stone: #1a1a1a;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --gold-wick: #fff7ed;
    /* White-hot center */
    --gold-flame: #fbbf24;
    /* Core flame */
    --gold-glow: #f59e0b;
    /* Outer glow */
    --gold-dim: rgba(245, 158, 11, 0.4);

    /* Font sizes */
    --font-header: 2rem;
    --font-body: 1rem;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-obsidian);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    /* Prevent scroll, this is an immersive view */
    position: relative;
    cursor: default;
}

/* ============================================
   BACKGROUND LAYERS
   ============================================ */
.fog-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40vh;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   THE VIGIL (CANVAS)
   ============================================ */
#vigil-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Behind UI but interactive for hover */
}

/* ============================================
   UI CONTAINER (Floating above canvas)
   ============================================ */
.ui-layer {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    /* Let clicks pass through to canvas where needed */
}

/* Make interactive elements clickable again */
.ui-layer>* {
    pointer-events: auto;
}

/* ============================================
   HEADER: 1 PETER 5:9
   ============================================ */
.header-section {
    text-align: center;
    margin-top: 40px;
    animation: fadeDown 1.5s ease-out;
}

.shield-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.scripture-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
    max-width: 700px;
}

.scripture-ref {
    font-size: 0.9rem;
    color: var(--gold-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   INTERACTION: TAKE YOUR STAND
   ============================================ */
.interaction-zone {
    margin-top: auto;
    /* Push to bottom */
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* The Unlit Lantern */
.user-lantern-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

.lantern-icon {
    font-size: 3rem;
    filter: brightness(0.4) sepia(1);
    /* Dim/Unlit */
    transition: all 0.5s ease;
    cursor: pointer;
}

.user-lantern-container:hover .lantern-icon {
    filter: brightness(0.6) sepia(1);
    transform: scale(1.1);
}

.action-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s;
    animation: gentlePulse 3s infinite ease-in-out;
    /* Invite click */
}

@keyframes gentlePulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        color: var(--gold-dim);
    }
}

.user-lantern-container:hover+.action-label {
    color: var(--gold-flame);
    animation: none;
    /* Stop pulsing on hover */
}

/* Selection Menu (Hidden by default) */
.stand-menu {
    position: absolute;
    bottom: 120px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--gold-dim);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.stand-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stand-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.stand-option:hover {
    background: var(--gold-dim);
    color: #fff;
    border-color: var(--gold-glow);
}

/* ============================================
   TOOLTIP (Digital Empathy)
   ============================================ */
#vigil-tooltip {
    position: fixed;
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid var(--gold-dim);
    padding: 12px 16px;
    border-radius: 8px;
    pointer-events: none;
    /* Pass through */
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transform: translate(-50%, -120%);
    /* Center above cursor */
}

.tooltip-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
}

.tooltip-highlight {
    color: var(--gold-glow);
    font-weight: 600;
}

/* ============================================
   IGNITION STATE (Active)
   ============================================ */
.interaction-zone.ignited .lantern-icon {
    filter: brightness(1.2) drop-shadow(0 0 20px var(--gold-glow));
    transform: scale(1.2);
    /* Animation handled in JS to fly away */
}

.interaction-zone.ignited .action-label {
    color: var(--gold-glow);
    animation: pulseText 2s infinite;
}

/* ============================================
   JAMES 1 FOOTER (The Revelation)
   ============================================ */
.testament-footer {
    margin-top: 60px;
    text-align: center;
    max-width: 600px;
    opacity: 0.3;
    /* Start dim */
    transition: opacity 2s ease;
}

.testament-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testament-ref {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--gold-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-target {
    color: var(--text-primary);
    transition: all 1s ease;
}

/* Active State (Post-Ignition) */
.testament-footer.revealed {
    opacity: 1;
}

.testament-footer.revealed .pulse-target {
    color: var(--gold-flame);
    text-shadow: 0 0 10px var(--gold-glow);
    animation: heartbeat 3s infinite ease-in-out;
}

@keyframes heartbeat {

    0%,
    100% {
        text-shadow: 0 0 10px var(--gold-glow);
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--gold-dim);
        opacity: 0.8;
    }
}

.victory-banner-bottom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.3;
    z-index: 5;
    transition: opacity 0.3s;
}

.victory-banner-bottom:hover {
    opacity: 1;
}

.cta-tiny {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}