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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 50%, #FFFFFF 100%);
    min-height: 100vh;
    color: #1F2937;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #DC2626;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 3rem;
}

/* Joueurs Section */
.players-section {
    margin-bottom: 2rem;
}

.players-section h2 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: center;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #DC2626;
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 60px;
    margin-bottom: 1rem;
}

.player-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.player-tag .remove-player {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.player-tag .remove-player:hover {
    background: rgba(255, 255, 255, 0.5);
}

.helper-text {
    text-align: center;
    font-size: 0.875rem;
    color: #9CA3AF;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    outline: none;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
}

.btn-secondary {
    background: #F3F4F6;
    color: #374151;
}

.btn-large {
    display: block;
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.pulse {
    animation: pulse 2s infinite;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    position: relative;
    background: white;
    border: 3px solid #F3F4F6;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #DC2626;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    color: #DC2626;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.875rem;
    color: #6B7280;
}

.couples-only {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #DC2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Wheel */
.current-category {
    text-align: center;
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 2rem;
}

.current-category span {
    color: #DC2626;
    font-weight: 700;
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto 2rem;
    max-width: 100%;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #DC2626;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

#wheel-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.wheel-spinning {
    animation: spin 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* Question Screen */
.player-turn {
    text-align: center;
    margin-bottom: 2rem;
}

.player-turn p {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.player-turn h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #DC2626;
}

.question-card {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.question-type {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #DC2626;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.question-text {
    font-size: 1.5rem;
    color: #1F2937;
    line-height: 1.6;
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .wheel-container {
        width: 350px;
        height: 350px;
    }
    
    .question-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 1rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .wheel-container {
        width: 280px;
        height: 280px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}