/* モンスターシステム用スタイル */
.monster-area {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #4a5568;
}

.monster-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.monster-emoji {
    font-size: 5em;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.monster-emoji.damaged {
    animation: damageShake 0.5s ease;
    filter: drop-shadow(0 0 15px rgba(255, 255, 0, 0.8));
}

.monster-emoji.defeated {
    opacity: 0.3;
    filter: grayscale(100%);
    transform: scale(0.8);
}

.monster-hp {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.hp-label {
    color: #e2e8f0;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.hp-hearts {
    display: flex;
    gap: 5px;
}

.hp-heart {
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.hp-heart.full {
    color: #e53e3e;
    filter: drop-shadow(0 0 5px rgba(229, 62, 62, 0.5));
}

.hp-heart.empty {
    color: #4a5568;
    opacity: 0.5;
}

.monster-name {
    color: #e2e8f0;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.battle-log {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    min-height: 40px;
    color: #e2e8f0;
    font-size: 0.9em;
    border: 1px solid #4a5568;
}

.battle-message {
    margin: 5px 0;
    padding: 5px;
    border-radius: 5px;
    animation: fadeIn 0.5s ease;
}

.battle-message.damage {
    background: rgba(229, 62, 62, 0.2);
    border-left: 3px solid #e53e3e;
}

.battle-message.heal {
    background: rgba(56, 178, 172, 0.2);
    border-left: 3px solid #38b2ac;
}

.battle-message.victory {
    background: rgba(246, 173, 85, 0.2);
    border-left: 3px solid #f6ad55;
}

/* モンスターHPレベル別スタイル */
.monster-hp-5 .monster-emoji {
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.8));
}

.monster-hp-4 .monster-emoji {
    filter: drop-shadow(0 0 12px rgba(255, 69, 0, 0.7));
}

.monster-hp-3 .monster-emoji {
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.6));
}

.monster-hp-2 .monster-emoji {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.monster-hp-1 .monster-emoji {
    filter: drop-shadow(0 0 5px rgba(128, 128, 128, 0.4));
    opacity: 0.7;
}

/* アニメーション */
@keyframes damageShake {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-10px) scale(1.1); }
    75% { transform: translateX(10px) scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes healPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(56, 178, 172, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(56, 178, 172, 0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(56, 178, 172, 0.5)); }
}

.monster-heal {
    animation: healPulse 0.8s ease;
}

@keyframes defeatFade {
    0% { opacity: 1; transform: scale(1) rotate(0deg); }
    100% { opacity: 0.2; transform: scale(0.5) rotate(180deg); }
}

.monster-defeat {
    animation: defeatFade 1s ease forwards;
}

/* バトル結果表示 */
.battle-results {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    color: white;
}

.battle-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.battle-stat {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.battle-stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #f6ad55;
}

.battle-stat-label {
    font-size: 0.9em;
    color: #e2e8f0;
}

.defeated-monsters {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.defeated-monster-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.defeated-monster-item:last-child {
    border-bottom: none;
}

.monster-word {
    font-weight: bold;
    color: #f6ad55;
}