:root {
    --mcdo-red: #DA291C;
    --mcdo-yellow: #FFC72C;
    --mcdo-dark: #1a1a1a;
    --mcdo-card: #242424;
    --mcdo-white: #FFFFFF;
    --mcdo-gray: #999999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: var(--mcdo-white);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Login Screen */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.arches {
    filter: drop-shadow(0 0 30px rgba(255, 199, 44, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--mcdo-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
    text-shadow: 2px 2px 0 var(--mcdo-red);
}

.title sup {
    font-size: 0.8rem;
}

.subtitle-suisse {
    font-size: 1.2rem;
    color: #FF4444;
    margin-top: 5px;
    font-weight: 700;
}

.login-card {
    background: var(--mcdo-card);
    border-radius: 24px;
    padding: 30px 25px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 199, 44, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.qr-hint {
    text-align: center;
    margin-bottom: 25px;
}

.emoji-big {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.qr-hint p {
    color: var(--mcdo-gray);
    font-size: 1rem;
}

.input-mcdo {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid rgba(255, 199, 44, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: var(--mcdo-white);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
    font-weight: 600;
}

.input-mcdo:focus {
    outline: none;
    border-color: var(--mcdo-yellow);
    box-shadow: 0 0 25px rgba(255, 199, 44, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.btn-mcdo {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #FFC72C, #FFA500);
    color: #1a1a1a;
    border: none;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 199, 44, 0.3);
}

.btn-mcdo:active {
    transform: scale(0.95);
    box-shadow: 0 5px 10px rgba(255, 199, 44, 0.2);
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 199, 44, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(255, 199, 44, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 199, 44, 0); }
}

.info-text {
    text-align: center;
    color: var(--mcdo-gray);
    margin-top: 15px;
    font-size: 0.9rem;
}

.sponsor-bar {
    margin-top: 30px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--mcdo-gray);
    letter-spacing: 1px;
}

/* Game Screen */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin-bottom: 25px;
    gap: 15px;
}

.player-badge {
    background: var(--mcdo-red);
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timer {
    position: relative;
    width: 70px;
    height: 70px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

#timerCircle {
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--mcdo-yellow);
}

.timer.urgent .timer-text {
    color: #FF0000;
    animation: shake 0.5s infinite;
}

.timer.urgent #timerCircle {
    stroke: #FF0000;
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-5deg); }
    75% { transform: translate(-50%, -50%) rotate(5deg); }
}

.score-badge {
    background: var(--mcdo-yellow);
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 800;
    color: #1a1a1a;
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
}

.question-card {
    background: var(--mcdo-card);
    border-radius: 24px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255,255,255,0.1);
}

.question-number {
    text-align: center;
    color: var(--mcdo-yellow);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    min-height: 50px;
    line-height: 1.5;
}

.answers-grid {
    display: grid;
    gap: 10px;
}

.answer-btn {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--mcdo-white);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.answer-btn:active {
    transform: scale(0.97);
}

.answer-btn.correct {
    background: rgba(76, 175, 80, 0.3) !important;
    border-color: #4CAF50 !important;
    animation: correctPulse 0.5s;
}

.answer-btn.wrong {
    background: rgba(244, 67, 54, 0.3) !important;
    border-color: #F44336 !important;
    animation: shake 0.5s;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.answer-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    margin-top: 25px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--mcdo-yellow);
    border-radius: 3px;
    transition: width 0.5s;
    width: 0%;
}

.progress-text {
    color: var(--mcdo-gray);
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 50px;
    text-align: right;
}

/* Result Screen */
.result-card {
    background: var(--mcdo-card);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.result-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
}

.result-text {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.result-points {
    font-size: 1.2rem;
    color: var(--mcdo-yellow);
    font-weight: 700;
    margin-bottom: 20px;
}

.result-ranking {
    font-size: 1rem;
    color: var(--mcdo-gray);
    margin-bottom: 25px;
}

/* Final Screen */
.final-card {
    background: var(--mcdo-card);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.final-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--mcdo-yellow);
    margin-bottom: 20px;
}

.final-score {
    font-size: 3rem;
    font-weight: 900;
    color: var(--mcdo-white);
    margin-bottom: 10px;
}

.final-rank {
    font-size: 1.3rem;
    color: var(--mcdo-gray);
    margin-bottom: 25px;
}

.final-stats {
    font-size: 0.9rem;
    color: var(--mcdo-gray);
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 400px) {
    .title {
        font-size: 1.5rem;
    }
    .game-header {
        gap: 8px;
    }
    .player-badge, .score-badge {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    .timer {
        width: 55px;
        height: 55px;
    }
    .timer-text {
        font-size: 1.2rem;
    }
}