/* --- GENERAL & FONT STYLING --- */
body {
    background-color: #111122; /* Fallback color */
    margin: 0;
    padding: 0;
    font-family: 'Cinzel', serif;
    overflow: hidden; /* Prevent scrollbars */
    color: #f0f0f0;
}

svg {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

/* --- ATMOSPHERIC BACKGROUND --- */
#bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(ellipse at center, rgba(34, 34, 51, 0.8) 0%, rgba(17, 17, 34, 1) 100%);
}

/* --- HUD & INSTRUCTIONS --- */
.instructions {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.5;
    font-size: 1.2em;
    letter-spacing: 1px;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#hud {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
}

#hudText {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* --- GAME ELEMENT TWEAKS --- */
#arrow, .arrow-angle {
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}

/* --- MODAL STYLING --- */
.modal-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10;
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(10, 10, 20, 0.85);
    color: #fff;
    padding: 24px 32px;
    border-radius: 12px;
    min-width: 300px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-content h3 {
    margin: 0 0 8px 0;
    font-size: 2.5em;
    font-weight: 700;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-content p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 1.1em;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions button {
    font-family: 'Cinzel', serif;
    font-size: 1em;
    font-weight: 700;
    padding: 10px 18px;
    background: #88ce02;
    color: #111;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.modal-actions button:hover {
    background: #a1f702;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.modal-actions button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}