/* --- V4 FEATURE: DUNKLES ARCHIV (⚓🛡️🧬) --- */

.archive-btn-glow {
    position: relative;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
}

.archive-btn-glow:hover {
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.5), inset 0 0 10px rgba(197, 160, 89, 0.3);
}

/* Modal Styling */
.archive-modal-paper {
    background-color: #1a1714 !important;
    background-image:
        radial-gradient(circle at center, rgba(30, 20, 10, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('../assets/black-paper.png') !important;
    color: var(--text-color-light) !important;
    border: 1px solid var(--accent-gold) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), inset 0 0 100px rgba(197, 160, 89, 0.1) !important;
    max-width: 600px !important;
    padding: 40px !important;
    text-align: center;
    transform-origin: center;
    position: relative;
}

#archive-content h2,
.archive-fragment-wrap h2 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 15px;
}

@media screen and (max-width: 500px) {
    .archive-modal-paper {
        padding: 40px 15px 20px !important;
    }

    #archive-content h2,
    .archive-fragment-wrap h2 {
        font-size: 1.8rem;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        letter-spacing: 1px;
    }
}

#archive-content p,
.archive-text {
    font-style: italic;
    line-height: 1.8;
    font-size: 1.3rem;
    white-space: pre-wrap;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

/* Scenic Engine: Madness Animation */
.madness-effect {
    animation: madness-unfold 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes madness-unfold {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
        filter: blur(15px) contrast(150%);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: blur(0px) contrast(100%);
    }
}

.app-madness {
    transition: filter 0.5s ease;
    filter: sepia(0.5) contrast(1.2) brightness(0.8);
}

.no-scroll {
    overflow: hidden !important;
}

/* --- Relic FAB (UX Overhaul) --- */
.relic-fab {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #2a2218 0%, #0e0d0c 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(197, 160, 89, 0.2);
    z-index: var(--z-index-overlay);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: relic-pulse 4s infinite ease-in-out;
}

.relic-fab:hover {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.4);
}

@keyframes relic-pulse {
    0% { box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 5px rgba(197, 160, 89, 0.1); }
    50% { box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(197, 160, 89, 0.3); }
    100% { box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 5px rgba(197, 160, 89, 0.1); }
}
