/* OBS Start Screen — Neon Cyberpunk (Cyan #00d4ff + Pink #ff2d7b) */

/* Animated gradient background */
.obs-start {
    width: 1920px;
    height: 1080px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0014 0%, #0d0028 25%, #08001e 50%, #0a0014 75%, #12002a 100%);
    background-size: 400% 400%;
    animation: neonGradientShift 15s ease infinite;
}

@keyframes neonGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Particle canvas */
.obs-start #particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    pointer-events: none;
    z-index: 0;
}

/* Confetti canvas */
.obs-start #confettiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    pointer-events: none;
    z-index: 10;
}

/* Content layer */
.obs-start .obs-content {
    position: relative;
    z-index: 1;
    width: 1920px;
    height: 1080px;
    padding: 30px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========== MAIN COLUMNS ========== */
.obs-start .main-columns {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* Glass panel — neon variant */
.obs-start .glass-panel {
    background: rgba(10, 0, 30, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.obs-start .panel-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

.obs-start .leaderboard-col {
    flex: 0 0 300px;
}

.obs-start .quiz-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ========== LEADERBOARD ========== */
.obs-start .leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.obs-start .leaderboard-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    animation: neonSlideIn 0.4s ease-out both;
    transition: background 0.2s;
}

.obs-start .leaderboard-item:hover {
    background: rgba(0, 212, 255, 0.07);
}

.obs-start .leaderboard-item:nth-child(1) { animation-delay: 0.05s; }
.obs-start .leaderboard-item:nth-child(2) { animation-delay: 0.1s; }
.obs-start .leaderboard-item:nth-child(3) { animation-delay: 0.15s; }
.obs-start .leaderboard-item:nth-child(4) { animation-delay: 0.2s; }
.obs-start .leaderboard-item:nth-child(5) { animation-delay: 0.25s; }
.obs-start .leaderboard-item:nth-child(6) { animation-delay: 0.3s; }
.obs-start .leaderboard-item:nth-child(7) { animation-delay: 0.35s; }
.obs-start .leaderboard-item:nth-child(8) { animation-delay: 0.4s; }
.obs-start .leaderboard-item:nth-child(9) { animation-delay: 0.45s; }
.obs-start .leaderboard-item:nth-child(10) { animation-delay: 0.5s; }

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

.obs-start .lb-rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    width: 30px;
    text-align: center;
    color: #666;
}

.obs-start .lb-rank-1 { color: #ffd700; }
.obs-start .lb-rank-2 { color: #c0c0c0; }
.obs-start .lb-rank-3 { color: #cd7f32; }

.obs-start .lb-medal {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.obs-start .lb-username {
    flex: 1;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ddd;
}

.obs-start .lb-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #00d4ff;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
}

/* ========== QUIZ BLOCK ========== */
.obs-start .quiz-block {
    background: rgba(10, 0, 30, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 36px 44px;
    width: 100%;
    max-width: 720px;
    text-align: center;
    animation: neonQuizFadeIn 0.5s ease-out;
}

@keyframes neonQuizFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.obs-start .quiz-question-text {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 28px;
    line-height: 1.4;
}

.obs-start .quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.obs-start .quiz-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: left;
    font-size: 18px;
    color: #ddd;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.obs-start .quiz-option-letter {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.obs-start .quiz-option-text {
    flex: 1;
}

.obs-start .quiz-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 700;
}

.obs-start .quiz-timer-icon {
    font-size: 28px;
}

.obs-start .quiz-timer.timer-green { color: #00d4ff; }
.obs-start .quiz-timer.timer-yellow { color: #fcc419; }
.obs-start .quiz-timer.timer-red { color: #ff2d7b; animation: neonTimerPulse 0.5s ease-in-out infinite; }

@keyframes neonTimerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Winner */
.obs-start .quiz-winner-block {
    animation: neonWinnerAppear 0.6s ease-out;
}

@keyframes neonWinnerAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.obs-start .quiz-winner-label {
    font-size: 18px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.obs-start .quiz-winner-name {
    font-size: 42px;
    font-weight: 800;
    color: #00d4ff;
    text-shadow:
        0 0 15px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.3);
    animation: neonWinnerGlow 1.5s ease-in-out infinite;
    margin-bottom: 12px;
}

@keyframes neonWinnerGlow {
    0%, 100% {
        text-shadow:
            0 0 15px rgba(0, 212, 255, 0.6),
            0 0 40px rgba(0, 212, 255, 0.3);
    }
    50% {
        text-shadow:
            0 0 25px rgba(0, 212, 255, 0.9),
            0 0 60px rgba(0, 212, 255, 0.5),
            0 0 90px rgba(0, 212, 255, 0.2);
    }
}

.obs-start .quiz-correct-answer {
    font-size: 20px;
    color: #00d4ff;
    margin-top: 8px;
}

.obs-start .quiz-noanswer-text {
    font-size: 28px;
    font-weight: 700;
    color: #ff2d7b;
    margin-bottom: 12px;
}

/* Generating spinner */
.obs-start .quiz-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
}

.obs-start .quiz-generating-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.obs-start .quiz-generating-text {
    font-size: 18px;
    color: #888;
}

/* ========== BOTTOM ROW ========== */
.obs-start .bottom-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-shrink: 0;
}

.obs-start .commands-bar {
    background: rgba(10, 0, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.obs-start .video-info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.obs-start .video-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.obs-start .video-info-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.obs-start .video-info-steps {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.obs-start .video-info-step {
    font-size: 14px;
    color: #b0b0c0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.obs-start .step-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    color: #ff2d7b;
    background: rgba(255, 45, 123, 0.12);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.obs-start .step-highlight {
    color: #00d4ff;
    font-weight: 600;
}

/* Webcam placeholder */
.obs-start .webcam-placeholder {
    flex: 0 0 400px;
    height: 225px;
    border: 2px dashed rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.2);
}

/* ========== STARTING FOOTER ========== */
.obs-start .start-footer {
    text-align: center;
    padding: 4px 0;
    flex-shrink: 0;
}

.obs-start .start-text {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00d4ff, #ff2d7b, #00d4ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neonTextShimmer 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4)) drop-shadow(0 0 30px rgba(255, 45, 123, 0.2));
}

.obs-start .start-icon {
    font-size: 36px;
    margin-right: 12px;
    vertical-align: middle;
    -webkit-text-fill-color: initial;
    color: #00d4ff;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

@keyframes neonTextShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== ANSWER TRACKING ========== */
.obs-start .answer-summary {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.obs-start .answer-count-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.obs-start .ac-1 { color: #00d4ff; border-color: rgba(0, 212, 255, 0.3); }
.obs-start .ac-2 { color: #00ff88; border-color: rgba(0, 255, 136, 0.3); }
.obs-start .ac-3 { color: #fcc419; border-color: rgba(252, 196, 25, 0.3); }
.obs-start .ac-4 { color: #ff2d7b; border-color: rgba(255, 45, 123, 0.3); }

.obs-start .answer-letter {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.obs-start .al-1 { color: #00d4ff; background: rgba(0, 212, 255, 0.15); }
.obs-start .al-2 { color: #00ff88; background: rgba(0, 255, 136, 0.15); }
.obs-start .al-3 { color: #fcc419; background: rgba(252, 196, 25, 0.15); }
.obs-start .al-4 { color: #ff2d7b; background: rgba(255, 45, 123, 0.15); }

.obs-start .answer-correct {
    background: rgba(0, 212, 255, 0.08) !important;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Winners list */
.obs-start .quiz-winners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.obs-start .quiz-winners-list .quiz-winner-name {
    font-size: 28px;
}

/* ========== EMPTY STATE ========== */
.obs-start .empty-state {
    color: #555;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}
