/* =================================================================
   BROOKLYN BAR - BLIND TEST NIGHT
   Palette : néon rose/cyan sur fond sombre, vibe lounge urbain
   ================================================================= */

:root {
    --brk-bg: #0d0a14;
    --brk-bg-card: #1a1424;
    --brk-bg-elev: #261c36;
    --brk-pink: #ff2e7e;
    --brk-cyan: #00f0ff;
    --brk-purple: #b026ff;
    --brk-gold: #ffd23f;
    --brk-text: #ffffff;
    --brk-muted: #a89fbd;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--brk-bg);
    color: var(--brk-text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ============ ÉCRANS ============ */
.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;
}

/* ============ TYPO ============ */
.title-neon {
    font-weight: 900;
    color: var(--brk-pink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 10px rgba(255, 46, 126, 0.6),
        0 0 20px rgba(255, 46, 126, 0.4),
        0 0 40px rgba(255, 46, 126, 0.2);
}
.title-cyan {
    color: var(--brk-cyan);
    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.6),
        0 0 20px rgba(0, 240, 255, 0.4);
}

/* ============ LOGIN ============ */
.login-card {
    background: var(--brk-bg-card);
    border-radius: 24px;
    padding: 30px 25px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 46, 126, 0.3);
    box-shadow:
        0 0 50px rgba(255, 46, 126, 0.15),
        0 20px 40px rgba(0,0,0,0.5);
}

.input-brk {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid rgba(255, 46, 126, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    transition: all 0.3s;
}
.input-brk:focus {
    outline: none;
    border-color: var(--brk-pink);
    box-shadow: 0 0 25px rgba(255, 46, 126, 0.4);
}

.btn-brk {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--brk-pink), var(--brk-purple));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 46, 126, 0.4);
    transition: all 0.2s;
}
.btn-brk:active {
    transform: scale(0.96);
}

/* ============ JEU ============ */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
    gap: 12px;
}

.player-badge {
    background: linear-gradient(135deg, var(--brk-pink), var(--brk-purple));
    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(--brk-cyan);
}
.timer.urgent .timer-text { color: var(--brk-pink); animation: shake 0.5s infinite; }
.timer.urgent #timerCircle { stroke: var(--brk-pink); }

@keyframes shake {
    0%,100% { transform: translate(-50%, -50%) rotate(0); }
    25%     { transform: translate(-50%, -50%) rotate(-5deg); }
    75%     { transform: translate(-50%, -50%) rotate(5deg); }
}

.score-badge {
    background: var(--brk-cyan);
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 800;
    color: #0d0a14;
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
}

.question-card {
    background: var(--brk-bg-card);
    border-radius: 24px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.08);
}

.question-text {
    font-size: 1.3rem;
    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, 46, 126, 0.25);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}
.answer-btn:hover {
    border-color: var(--brk-pink);
    background: rgba(255, 46, 126, 0.1);
}
.answer-btn:active { transform: scale(0.97); }

.answer-btn.correct {
    background: rgba(0, 240, 255, 0.25) !important;
    border-color: var(--brk-cyan) !important;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}
.answer-btn.wrong {
    background: rgba(255, 46, 126, 0.25) !important;
    border-color: var(--brk-pink) !important;
    animation: shake 0.5s;
}
.answer-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ============ RÉSULTAT ============ */
.result-card {
    background: var(--brk-bg-card);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 46, 126, 0.2);
}
.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(--brk-cyan); font-weight: 700; margin-bottom: 20px; }
.result-ranking { font-size: 1rem; color: var(--brk-muted); }

/* ============ ATTENTE ============ */
.waiting-card {
    background: var(--brk-bg-card);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(176, 38, 255, 0.2);
}
.waiting-card .pulse {
    font-size: 4rem;
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%      { transform: scale(1.1); opacity: 1; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 400px) {
    .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; }
}
