/* Boss Fight Styles */

.boss-fight-selection {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.boss-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-card-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
}

.boss-card:not(.boss-card-locked):hover {
    border-color: var(--color-primary);
}

.boss-card-locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.boss-card-emoji {
    font-size: 48px;
    line-height: 1;
}

.boss-card-info {
    flex: 1;
}

.boss-card-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 2px;
}

.boss-card-detail {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.boss-card-arrow {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
}

/* Fight screen */
.boss-fight-screen .test-container {
    gap: var(--space-md);
}

.boss-fight-area-compact {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-sm) 0;
}

.boss-fight-area-compact .boss-emoji {
    font-size: 64px;
}

.boss-fight-area-compact .boss-hp-container {
    flex: 1;
    margin: 0;
}

.boss-emoji {
    font-size: 96px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.boss-hp-container {
    margin: var(--space-md) auto;
    max-width: 300px;
}

.boss-hp-label {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.boss-hp-bar {
    width: 100%;
    height: 12px;
    background: var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.boss-hp-fill {
    height: 100%;
    background: var(--color-error);
    border-radius: 6px;
    transition: width 0.4s ease;
}

/* Animations */
.boss-damaged {
    animation: boss-shake 0.4s ease;
    filter: brightness(1.5);
}

@keyframes boss-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

.boss-miss {
    animation: boss-grow 0.4s ease;
}

@keyframes boss-grow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.boss-victory {
    animation: boss-defeat 1.5s ease forwards;
}

@keyframes boss-defeat {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(0.5) rotate(180deg); opacity: 0.5; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.boss-survived {
    animation: boss-survive 1.5s ease forwards;
}

@keyframes boss-survive {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.3); opacity: 0.5; }
}

/* Interstitial */
.boss-interstitial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.boss-interstitial-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-top: var(--space-lg);
}

.boss-interstitial-victory .boss-interstitial-title {
    color: var(--color-success);
}

.boss-interstitial-defeat .boss-interstitial-title {
    color: var(--color-error);
}

.boss-interstitial-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin-top: var(--space-sm);
}
