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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-info {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.screen {
    display: none;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.screen.active {
    display: block;
}

#lobby {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

#lobby h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

#player-name {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
}

button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

#players-list {
    margin: 30px 0;
    text-align: left;
}

#players {
    list-style: none;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

#players li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

#game {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.question-container h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.answer-btn {
    padding: 20px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.2);
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.answer-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.02);
}

.answer-btn.selected {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.3);
}

.answer-btn.correct {
    background: rgba(76, 175, 80, 0.8);
    border-color: #4caf50;
}

.answer-btn.incorrect {
    background: rgba(244, 67, 54, 0.8);
    border-color: #f44336;
}

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

.progress h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.score-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ecdc4;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

#timer {
    font-weight: bold;
    color: #ff6b6b;
}

#results {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

#final-scores {
    margin: 30px 0;
    font-size: 1.2rem;
}

.winner {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .answers-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .answer-btn {
        padding: 15px;
        font-size: 1rem;
    }
}