/* Battle HP Bar */
.battle-hp {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.hp-fill {
    height: 100%;
    transition: width 0.3s ease-out;
}

/* Battle Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    display: none;
}

.overlay-content {
    background: linear-gradient(145deg, #1a2a6c, #162144);
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    min-width: 350px;
}

.overlay-content h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.overlay-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Retry button matching game UI */
.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 30px;
    color: #ffd700;
    font-family: 'Pacifico', cursive;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 1px;
}

.retry-btn:hover {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.retry-btn:active {
    transform: translateY(-1px);
}