/* --- THE TRIGGER (Bottom Left) --- */
#credits-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000; /* High priority */
    
    font-family: 'Baksheesh', sans-serif;
    font-size: 0.8em;
    color: #8c7a6b;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

#credits-trigger:hover {
    color: #d2c8b8;
    border-color: #5a4a3a;
    background-color: rgba(15, 10, 10, 0.8);
    box-shadow: 0 0 10px rgba(90, 74, 58, 0.2);
}

#credits-trigger::before {
    /* FIX 1: Unicode escape for the black circle */
    content: '\25cf'; 
    color: #5a4a3a;
    margin-right: 8px;
    animation: beacon-pulse 3s infinite;
}

@keyframes beacon-pulse {
    0% { opacity: 0.3; text-shadow: 0 0 0 transparent; }
    50% { opacity: 1; text-shadow: 0 0 5px #d2c8b8; }
    100% { opacity: 0.3; text-shadow: 0 0 0 transparent; }
}

/* --- THE POPUP WINDOW --- */
#credits-popup {
    position: fixed;
    bottom: 60px; /* Sits just above the trigger */
    left: 20px;
    width: 300px;
    z-index: 1000;
    
    background-color: rgba(10, 5, 5, 0.95);
    border: 1px solid #5a4a3a;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    
    /* Hidden state logic handled by class */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s ease;
    
    font-family: 'EB Garamond', serif;
    font-size: 0.9em;
    color: #d2c8b8;
}

#credits-popup.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* --- POPUP INTERNALS --- */
.credits-header {
    background-color: rgba(90, 74, 58, 0.2);
    padding: 8px 12px;
    border-bottom: 1px solid #5a4a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credits-title {
    font-family: 'Baksheesh', sans-serif;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8c7a6b;
}

/* --- THE FINAL, WORKING CLOSE BUTTON STYLE (Applied to the <span>) --- */
#credits-close {
    /* Style based on the working modal button */
    border: 1px solid #5a4a3a;
    color: #d2c8b8;
    background: none;
    
    /* Layout */
    display: inline-block;
    padding: 5px 10px; /* Increased padding for better target size */
    margin-left: 10px; 
    
    /* Typography */
    font-family: 'Baksheesh', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    
    /* FIX: Increased size */
    font-size: 0.85em; 
    
    /* FIX: Cursor change from text-selection to hand pointer */
    cursor: pointer; 
    
    transition: all 0.2s ease;
}

#credits-close:hover {
    background-color: #5a4a3a;
    color: #ffffff;
    box-shadow: 0 0 5px rgba(210, 200, 184, 0.5);
}

.credits-body {
    padding: 15px;
    line-height: 1.6;
}

.credits-body p {
    margin: 0 0 10px 0;
}

.credits-body a {
    color: #d2c8b8;
    text-decoration: underline;
    text-decoration-color: #5a4a3a;
}