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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 100%;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 3rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Instellingen Scherm */
.settings-card, .gameover-card {
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.settings-card h2, .gameover-card h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
    font-size: 1.1rem;
}

.player-count-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-count,
#win-score-selector .btn-score {
    flex: 1;
    min-width: 60px;
    padding: 15px;
    border: 3px solid #e0e6ed;
    background: white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-count:hover,
#win-score-selector .btn-score:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.btn-count.active,
#win-score-selector .btn-score.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.player-input {
    margin-bottom: 15px;
}

.player-input input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.player-input input:focus {
    outline: none;
    border-color: #667eea;
}

select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

/* Knoppen */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f39c12;
    color: white;
}

.btn-secondary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: #e74c3c;
    color: white;
}

.btn-tertiary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Game Info */
.game-info {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.current-category {
    text-align: center;
}

.category-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

#category-display {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    min-height: 40px;
}

.win-target {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    color: #666;
    font-size: 16px;
}

#target-score {
    font-weight: 700;
    color: #764ba2;
}

/* Letter Wiel */
.letter-wheel-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.wheel-arrow {
    font-size: 40px;
    color: #667eea;
    margin-bottom: -10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.letter-wheel {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border: 8px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.letter-wheel.spinning {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.letter-display {
    font-size: 100px;
    font-weight: 900;
    color: #667eea;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-spin {
    font-size: 22px;
    padding: 20px 40px;
    width: auto;
    display: inline-block;
}

.btn-spin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Spelers Container */
.players-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.player-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.player-card.winner {
    border: 4px solid #f39c12;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.player-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.player-score {
    font-size: 32px;
    font-weight: 900;
    color: #667eea;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.btn-score {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-plus {
    background: #2ecc71;
    color: white;
}

.btn-plus:hover {
    background: #27ae60;
    transform: scale(1.05);
}

.btn-minus {
    background: #e74c3c;
    color: white;
}

.btn-minus:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.btn-minus:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

/* Acties */
.actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Game Over */
.winner-info {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-radius: 15px;
    margin: 20px 0;
    border: 3px solid #f39c12;
}

.winner-name {
    font-size: 42px;
    font-weight: 900;
    color: #667eea;
    margin-bottom: 10px;
}

.winner-score {
    font-size: 28px;
    color: #f39c12;
    font-weight: 700;
}

.final-standings {
    margin: 25px 0;
}

.final-standings h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.standing-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8f9fa;
    margin-bottom: 8px;
    border-radius: 10px;
    font-weight: 600;
}

.standing-name {
    color: #2c3e50;
}

.standing-score {
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .settings-card, .gameover-card {
        padding: 25px;
    }
    
    .players-container {
        grid-template-columns: 1fr;
    }
    
    .letter-wheel {
        width: 160px;
        height: 160px;
    }
    
    .letter-display {
        font-size: 80px;
    }
    
    .btn-spin {
        font-size: 18px;
        padding: 16px 30px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .settings-card, .gameover-card {
        padding: 20px;
    }
    
    .player-count-selector {
        gap: 8px;
    }
    
    .btn-count {
        min-width: 50px;
        padding: 12px;
        font-size: 16px;
    }
}