* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f0c1b, #2b1055, #7597de);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: rgba(40, 42, 54, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hidden {
    display: none !important;
}

.logo {
    font-size: 1.8rem;
    color: #ff79c6;
    margin-bottom: 20px;
    text-align: center;
}

.player-turn-card {
    background: #44475a;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
}

.turn-label {
    font-size: 1.1rem;
    color: #a9a9b3;
    margin-bottom: 10px;
}

.player-highlight {
    font-size: 2rem;
    color: #50fa7b;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.4);
}

.turn-sub {
    font-size: 0.95rem;
    color: #f8f8f2;
}

header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #44475a;
    padding-bottom: 10px;
}

.current-player-badge {
    background: #6272a4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #50fa7b;
}

.stats {
    font-size: 0.95rem;
    color: #a9a9b3;
}

.category-badge {
    background: #bd93f9;
    color: #282a36;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.question-card {
    background: #44475a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.option-btn {
    background: #6272a4;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover:not([disabled]) {
    background: #ff79c6;
    transform: translateY(-2px);
}

.option-btn.correct {
    background: #50fa7b !important;
    color: #282a36;
}

.option-btn.wrong {
    background: #ff5555 !important;
}

.main-btn {
    background: #50fa7b;
    color: #282a36;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.main-btn:hover {
    background: #ff79c6;
    color: #fff;
}

.secondary-btn {
    background: transparent;
    color: #a9a9b3;
    border: 1px solid #6272a4;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    margin-top: 10px;
}

.secondary-btn:hover {
    background: rgba(255, 85, 85, 0.2);
    color: #ff5555;
    border-color: #ff5555;
}

#result-screen, #final-leaderboard-screen {
    text-align: center;
    width: 100%;
}

#result-screen h2, #final-leaderboard-screen h2 {
    color: #50fa7b;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

#result-screen p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.leaderboard-list {
    list-style: none;
    width: 100%;
    margin-bottom: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.leaderboard-item {
    background: #44475a;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}

.leaderboard-item strong {
    color: #50fa7b;
}
