* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.game-screen {
    display: none;
}

.game-screen.active {
    display: block;
}

/* class Selection */
.class-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.class-card {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.class-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
    border-color: #4CAF50;
}

.class-card h2 {
    margin-bottom: 15px;
    color: #4CAF50;
}

.class-stats {
    text-align: left;
    margin-top: 15px;
}

/* battles */
.battle-area {
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.fighters {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
}

.fighter {
    text-align: center;
    flex: 1;
}

.fighter-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.health-bar {
    width: 200px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    overflow: hidden;
    margin: 10px auto;
    border: 2px solid rgba(255,255,255,0.3);
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    transition: width 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}

.battle-log {
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.battle-log p {
    margin: 5px 0;
    padding: 5px;
    border-left: 3px solid #4CAF50;
    padding-left: 10px;
}

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

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

.stat-box h3 {
    color: #4CAF50;
    margin-bottom: 5px;
}

/* rewards */
.choice-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.choice-card {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.choice-card:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.2);
    border-color: #FFD700;
}

.choice-card h3 {
    color: #FFD700;
    margin-bottom: 15px;
}

button {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    margin: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

/* leaderboard */
.leaderboard {
    background: rgba(0,0,0,0.4);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.leaderboard h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700;
}

.leaderboard-entry {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-entry.top {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #FFD700;
}

.skills-display {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.skill-item {
    display: inline-block;
    background: rgba(138, 43, 226, 0.3);
    border: 2px solid #8A2BE2;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 8px;
    font-size: 0.9em;
}

.center {
    text-align: center;
}