#pve-boss-game, #pve-leaderboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
}

#pve-boss-game h2, #pve-leaderboard h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c3e50;
}

#xp-display {
    font-size: 16px;
    margin-bottom: 15px;
    color: #34495e;
}

#xp-display a {
    color: #3498db;
    text-decoration: none;
}

#xp-display a:hover {
    text-decoration: underline;
}

#round-display {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

#game-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#start-btn, #next-round-btn {
    padding: 10px 25px;
    font-size: 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease;
}

#start-btn:hover, #next-round-btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

#boss-area {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

#boss-hp, #player-hp {
    flex: 1;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.5s ease;
}

#boss-hp { color: #fff; }
#player-hp { color: #fff; }

.hp-animate {
    animation: hpChange 0.5s ease;
}

#question-area h3 {
    font-size: 22px;
    margin: 15px 0;
    color: #2c3e50;
}

.question-image {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.answer-btn:hover:not(:disabled) {
    background: #ecf0f1;
    border-color: #7f8c8d;
    transform: translateY(-2px);
}

.answer-btn.correct {
    border-color: #2ecc71;
    background: #e8f8f5;
    color: #2ecc71;
}

.answer-btn.incorrect {
    border-color: #e74c3c;
    background: #fdedec;
    color: #e74c3c;
}

.answer-btn:disabled {
    background: #ecf0f1;
    border-color: #bdc3c7;
    cursor: not-allowed;
}

.answer-btn.shake {
    animation: shake 0.3s ease;
}

#result-area .result {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
}

#result-area .success {
    background: #e8f8f5;
    color: #2ecc71;
    border: 2px solid #2ecc71;
}

#result-area .error {
    background: #fdedec;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

#result-area .xp-gain {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeeba;
}

#result-area .warning {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.loading {
    font-size: 16px;
    color: #7f8c8d;
    margin: 20px 0;
}

#pve-leaderboard table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#pve-leaderboard th, #pve-leaderboard td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

#pve-leaderboard th {
    background: #3498db;
    color: #fff;
    font-weight: bold;
}

#pve-leaderboard tr:nth-child(even) {
    background: #f9f9f9;
}

#pve-leaderboard tr:hover {
    background: #f1f1f1;
}

@keyframes hpChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.fade-in-result {
    animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 600px) {
    #pve-boss-game, #pve-leaderboard {
        padding: 15px;
    }
    #pve-boss-game h2, #pve-leaderboard h2 {
        font-size: 24px;
    }
    #xp-display {
        font-size: 14px;
    }
    #round-display {
        font-size: 14px;
    }
    #game-controls {
        flex-direction: column;
        gap: 10px;
    }
    #start-btn, #next-round-btn {
        width: 100%;
        font-size: 14px;
    }
    #boss-area {
        flex-direction: column;
    }
    #boss-hp, #player-hp {
        width: 100%;
        font-size: 16px;
    }
    #question-area h3 {
        font-size: 18px;
    }
    .answer-btn {
        font-size: 14px;
        padding: 8px;
    }
    #result-area .result {
        font-size: 14px;
        padding: 10px;
    }
    #pve-leaderboard th, #pve-leaderboard td {
        font-size: 14px;
        padding: 8px;
    }
}