/**
 * Yarışma Sistemi - Ana Stil Dosyası
 * Eğlenceli + Modern Denge
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
    --primary-color: #4C6EF5;
    --secondary-color: #FFB703;
    --accent-color: #FB8500;
    --bg-color: #F7F9FC;
    --dark-shadow: rgba(26, 26, 26, 0.1);
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #6C757D;
    --success: #28A745;
    --danger: #DC3545;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow: 0 4px 12px var(--dark-shadow);
    --shadow-lg: 0 8px 24px var(--dark-shadow);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Participant Screen - Themed Background */
body.participant-screen {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 15%, #2d1b4e 30%, #3d1f5c 45%, #4a2c6a 60%, #3d1f5c 75%, #2d1b4e 90%, #1a1a3e 100%);
    background-size: 400% 400%;
    animation: gradientShift 14s ease infinite;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ana yıldız katmanı - çok sayıda küçük yıldız */
body.participant-screen::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Büyük parlak yıldızlar */
        radial-gradient(3px 3px at 15% 20%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 35% 45%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(4px 4px at 55% 15%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 75% 60%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 90% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 25% 75%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 65% 85%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 10% 50%, rgba(255, 255, 255, 0.8), transparent),
        /* Orta boy yıldızlar */
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 40% 70%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 60% 25%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 80% 55%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 30% 90%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 70% 10%, rgba(255, 255, 255, 0.7), transparent),
        /* Küçük yıldızlar - çok sayıda */
        radial-gradient(1px 1px at 5% 15%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 12% 35%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 18% 55%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 22% 75%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 28% 95%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 38% 5%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 42% 25%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 48% 45%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 52% 65%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 58% 85%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 62% 15%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 68% 35%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 72% 55%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 78% 75%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 82% 95%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 88% 25%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 92% 45%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 95% 65%, rgba(255, 255, 255, 0.4), transparent),
        /* Gezegenler / Büyük yıldızlar */
        radial-gradient(8px 8px at 30% 40%, rgba(255, 200, 100, 0.3), transparent),
        radial-gradient(6px 6px at 70% 70%, rgba(200, 150, 255, 0.3), transparent),
        radial-gradient(10px 10px at 50% 20%, rgba(150, 200, 255, 0.2), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starMove 16s linear infinite;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

/* İkinci yıldız katmanı - farklı hızda hareket eden */
body.participant-screen::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Parlak yıldızlar */
        radial-gradient(2px 2px at 10% 10%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 50% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 80% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(3px 3px at 20% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 90%, rgba(255, 255, 255, 0.9), transparent),
        /* Orta boy yıldızlar */
        radial-gradient(1.5px 1.5px at 15% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 35% 45%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 55% 65%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 75% 85%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 25% 5%, rgba(255, 255, 255, 0.7), transparent),
        /* Küçük yıldızlar */
        radial-gradient(1px 1px at 8% 20%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 16% 40%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 24% 60%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 32% 80%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 44% 10%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 56% 30%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 64% 50%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 72% 70%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 84% 90%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 96% 15%, rgba(255, 255, 255, 0.4), transparent),
        /* Nebula efektleri */
        radial-gradient(40px 40px at 20% 30%, rgba(138, 43, 226, 0.15), transparent),
        radial-gradient(50px 50px at 60% 60%, rgba(75, 0, 130, 0.12), transparent),
        radial-gradient(35px 35px at 80% 20%, rgba(123, 104, 238, 0.1), transparent);
    background-size: 300% 300%;
    background-position: 0% 0%;
    animation: starMove 22s linear infinite reverse;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes starMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.participant-screen .container-sm {
    position: relative;
    z-index: 2;
}

.participant-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-beam {
    position: absolute;
    width: 140%;
    height: 55%;
    top: -20%;
    left: -20%;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(76, 110, 245, 0.14) 40deg, transparent 80deg, rgba(251, 133, 0, 0.12) 140deg, transparent 200deg, rgba(255, 183, 3, 0.1) 280deg, transparent 360deg);
    animation: beamRotate 28s linear infinite;
    opacity: 0.85;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    animation: orbFloat 11s ease-in-out infinite;
}

.bg-orb-1 {
    width: 340px;
    height: 340px;
    top: 4%;
    left: -80px;
    background: radial-gradient(circle, rgba(76, 110, 245, 0.95) 0%, transparent 68%);
}

.bg-orb-2 {
    width: 300px;
    height: 300px;
    bottom: 6%;
    right: -70px;
    background: radial-gradient(circle, rgba(251, 133, 0, 0.85) 0%, transparent 68%);
    animation-delay: -3s;
    animation-duration: 13s;
}

.bg-orb-3 {
    width: 240px;
    height: 240px;
    top: 38%;
    right: 8%;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.7) 0%, transparent 68%);
    animation-delay: -7s;
    animation-duration: 15s;
}

.bg-orb-4 {
    width: 200px;
    height: 200px;
    bottom: 34%;
    left: 4%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.55) 0%, transparent 68%);
    animation-delay: -5s;
    animation-duration: 12s;
}

.bg-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.18);
    animation: shapeDrift 14s linear infinite;
}

.bg-shape-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: 14%;
    right: 8%;
    border-color: rgba(76, 110, 245, 0.5);
    box-shadow: 0 0 24px rgba(76, 110, 245, 0.25);
}

.bg-shape-ring-2 {
    width: 90px;
    height: 90px;
    bottom: 28%;
    right: 22%;
    top: auto;
    border-color: rgba(255, 183, 3, 0.45);
    animation-duration: 10s;
    animation-direction: reverse;
}

.bg-shape-diamond {
    width: 88px;
    height: 88px;
    bottom: 18%;
    left: 8%;
    border-radius: 14px;
    border-color: rgba(255, 183, 3, 0.5);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.2);
    animation: shapeDriftDiamond 18s linear infinite reverse;
}

@keyframes shapeDriftDiamond {
    0% { transform: rotate(45deg) translateY(0) scale(1); opacity: 0.45; }
    50% { transform: rotate(225deg) translateY(-36px) scale(1.12); opacity: 0.85; }
    100% { transform: rotate(405deg) translateY(0) scale(1); opacity: 0.45; }
}

.bg-shape-bar {
    width: 180px;
    height: 16px;
    top: 58%;
    left: 4%;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.28);
    animation-duration: 9s;
}

.bg-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
    animation: sparkFloat 6s ease-in-out infinite;
}

.bg-spark-1 { top: 22%; left: 18%; animation-delay: 0s; }
.bg-spark-2 { top: 48%; left: 82%; animation-delay: -1.5s; width: 8px; height: 8px; }
.bg-spark-3 { top: 72%; left: 24%; animation-delay: -3s; }
.bg-spark-4 { top: 30%; left: 68%; animation-delay: -4.2s; width: 5px; height: 5px; }

@keyframes beamRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(42px, -28px) scale(1.14); }
    50% { transform: translate(-24px, 22px) scale(0.92); }
    75% { transform: translate(18px, 34px) scale(1.08); }
}

@keyframes shapeDrift {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.45; }
    50% { transform: translateY(-42px) rotate(180deg) scale(1.08); opacity: 0.9; }
    100% { transform: translateY(0) rotate(360deg) scale(1); opacity: 0.45; }
}

@keyframes sparkFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    50% { transform: translate(20px, -32px) scale(1.6); opacity: 1; }
}

.question-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
}

.question-card-sponsored {
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.45), 0 18px 42px rgba(212, 160, 23, 0.18);
    animation: sponsorGlowPulse 2.4s ease-in-out 1.2s 2;
}

.question-card-sponsored::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 215, 120, 0.28) 50%, transparent 80%);
    animation: sponsorSheen 1.8s ease-in-out 1;
}

@keyframes sponsorSheen {
    0% { transform: translateX(-130%) skewX(-12deg); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translateX(130%) skewX(-12deg); opacity: 0; }
}

@keyframes sponsorGlowPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.45), 0 18px 42px rgba(212, 160, 23, 0.18); }
    50% { box-shadow: 0 0 0 5px rgba(255, 200, 60, 0.55), 0 22px 50px rgba(212, 160, 23, 0.35); }
}

.question-stage.is-reveal-contest {
    animation: stageRevealContest 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.question-stage.is-reveal-sponsored {
    animation: stageRevealSponsored 1.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.question-stage.is-reveal-active .card-title {
    animation: titleReveal 0.95s cubic-bezier(0.34, 1.45, 0.64, 1) both;
    animation-delay: 0.2s;
}

.question-stage.is-reveal-active #question-text {
    animation: titleReveal 1s cubic-bezier(0.34, 1.45, 0.64, 1) both;
    animation-delay: 0.38s;
}

.question-stage.is-reveal-active .timer-container {
    animation: timerReveal 1.1s cubic-bezier(0.34, 1.35, 0.64, 1) both;
    animation-delay: 0.55s;
}

@keyframes stageRevealContest {
    0% {
        opacity: 0;
        transform: translateY(72px) scale(0.82) rotate(-2deg);
        filter: blur(10px);
    }
    55% {
        opacity: 1;
        transform: translateY(-8px) scale(1.03) rotate(0.5deg);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes stageRevealSponsored {
    0% {
        opacity: 0;
        transform: scale(0.78) rotate(-3deg);
        filter: blur(8px);
    }
    45% {
        opacity: 1;
        transform: scale(1.06) rotate(1deg);
        filter: blur(0);
    }
    70% {
        transform: scale(0.98) rotate(0deg);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.9);
        letter-spacing: 0.08em;
    }
    100% {
        opacity: 1;
        transform: none;
        letter-spacing: normal;
    }
}

@keyframes timerReveal {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(-180deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.12) rotate(8deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.option-item.reveal-option {
    animation: optionReveal 0.85s cubic-bezier(0.34, 1.35, 0.64, 1) both;
}

@keyframes optionReveal {
    0% {
        opacity: 0;
        transform: translateX(-48px) scale(0.88);
    }
    65% {
        opacity: 1;
        transform: translateX(6px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.reveal-estimate {
    animation: stageRevealContest 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.35s;
}

.sponsor-block.sponsor-reveal {
    animation: sponsorReveal 1.15s cubic-bezier(0.34, 1.35, 0.64, 1) both;
    animation-delay: 0.65s;
}

@keyframes sponsorReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.82) rotate(-2deg);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.05) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.countdown-number.countdown-pop {
    animation: countdownPop 0.75s cubic-bezier(0.34, 1.55, 0.64, 1);
}

@keyframes countdownPop {
    0% { transform: scale(0.35); opacity: 0.2; filter: blur(4px); }
    45% { transform: scale(1.35); opacity: 1; filter: blur(0); }
    70% { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.countdown-screen.is-open .countdown-content,
.countdown-screen:not(.hidden) .countdown-content {
    animation: countdownCardIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes countdownCardIn {
    0% {
        opacity: 0;
        transform: scale(0.75) translateY(48px) rotate(-3deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.04) translateY(-6px) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

/* Countdown Screen */
.countdown-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.countdown-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}

.countdown-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.countdown-number {
    font-size: 120px;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin: 40px 0;
    transition: transform 0.2s ease;
    text-shadow: 0 4px 20px rgba(251, 133, 0, 0.3);
}

.countdown-message {
    font-size: 20px;
    color: var(--text-light);
    margin-top: 30px;
}

@media (max-width: 768px) {
    .countdown-number {
        font-size: 80px;
    }
    
    .countdown-title {
        font-size: 28px;
    }
    
    .countdown-content {
        padding: 40px 30px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 54px;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3B5CE8;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #FFA000;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #E67700;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Kartlar */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-color);
}

.card-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.form-control:disabled {
    background-color: #F5F5F5;
    cursor: not-allowed;
}

/* Şık Seçenekleri (Katılımcı Arayüzü) */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.option-item {
    background: var(--white);
    border: 3px solid #E0E0E0;
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 70px;
}

.option-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.option-item.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.option-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.option-key {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.option-item.selected .option-key {
    background: var(--accent-color);
    transform: scale(1.1);
}

.option-text {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
}

/* Sayaç (Circular Progress) */
.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.timer-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-bg {
    fill: none;
    stroke: #E0E0E0;
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314.16;
    stroke-dashoffset: 314.16;
    transition: stroke-dashoffset 0.1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--accent-color);
}

.timer-expired {
    color: var(--danger);
}

/* Skor Ekranı */
.score-screen {
    text-align: center;
    padding: 40px 20px;
}

.score-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.leaderboard {
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.leaderboard-item.top-3 {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
    border: 2px solid var(--secondary-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.leaderboard-item.top-3 .rank {
    background: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 700;
}

/* Katılımcının kendi ismi */
.leaderboard-item.current-user {
    background: linear-gradient(135deg, #E8F0FE 0%, #D0E7FF 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
}

.leaderboard-item.current-user.top-3 {
    background: linear-gradient(135deg, #FFF5E6 0%, #E8F0FE 100%);
    border: 2px solid var(--primary-color);
}

.current-user-name {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    text-shadow: 0 1px 2px rgba(76, 110, 245, 0.2);
    position: relative;
}

.current-user-name::before {
    content: '⭐';
    margin-right: 8px;
    font-size: 18px;
    animation: star-twinkle 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.2);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(76, 110, 245, 0.3);
    }
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.participant-name {
    flex: 1;
    text-align: left;
    margin-left: 16px;
    font-weight: 600;
    font-size: 18px;
}

.participant-score {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--accent-color);
}

/* Cevap Dağılımı */
.distribution-chart {
    margin: 30px 0;
}

.distribution-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.distribution-label {
    width: 60px;
    font-weight: 600;
    font-size: 18px;
}

.distribution-bar-container {
    flex: 1;
    height: 40px;
    background: #E0E0E0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
}

.distribution-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: white;
    font-weight: 600;
}

.distribution-count {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

/* Bitiş Ekranı */
.finish-screen {
    text-align: center;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.finish-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 220, 100, 0.45), transparent 65%);
    z-index: 0;
}

.finish-screen > * {
    position: relative;
    z-index: 1;
}

.finish-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

.finish-subtitle {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease;
}

/* Tebrik Mesajı */
.congratulations-box {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease;
    max-width: 600px;
    width: 100%;
}

.congratulations-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.congratulations-text {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.congratulations-text strong {
    color: var(--accent-color);
    font-size: 32px;
    font-weight: 700;
}

.congratulations-subtext {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 12px;
}

.finish-podium {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    gap: 12px 16px;
    margin: 16px 0 28px;
    width: 100%;
    max-width: 720px;
    min-height: 268px;
}

.podium-item {
    text-align: center;
    min-width: 0;
}

.podium-item.second { grid-column: 1; }
.podium-item.first { grid-column: 2; }
.podium-item.third { grid-column: 3; }

.podium-box {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 12px;
    padding: 16px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3B5CE8 100%);
    border-radius: var(--border-radius);
    color: white;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    transform-origin: center bottom;
}

.podium-item.first .podium-box {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFA000 100%);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.45), 0 16px 40px rgba(255, 183, 3, 0.45);
}

.podium-item.second .podium-box {
    height: 140px;
}

.podium-item.third .podium-box {
    height: 100px;
}

.podium-rank {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.podium-name {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.podium-score {
    font-size: 24px;
    font-weight: 700;
    margin-top: 8px;
}

.podium-crown {
    height: 44px;
    line-height: 44px;
    font-size: 34px;
    margin-bottom: 6px;
}

.podium-item:not(.first) .podium-crown {
    visibility: hidden;
}

.podium-item.first .podium-crown {
    animation: crownBounce 1.2s ease-in-out infinite;
}

.podium-item.first .podium-name {
    font-size: clamp(18px, 3vw, 26px);
    animation: podiumNameGlow 2s ease-in-out infinite;
}

.podium-box.podium-reveal {
    animation: podiumBoxReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.finish-screen-flash::before {
    animation: finishFlashOverlay 0.55s ease-out;
}

.finish-list-top {
    animation: finishListFade 0.55s ease both;
}

.fireworks-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.firework-burst {
    position: absolute;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
}

.firework-spark {
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fw-color, #FFD700);
    box-shadow: 0 0 12px var(--fw-color, #FFD700), 0 0 24px var(--fw-color, #FFD700);
    animation: fireworkSpark 1.25s ease-out forwards;
    transform: rotate(var(--angle)) translateY(0);
}

.fireworks-layer-large .firework-spark {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 18px var(--fw-color, #FFD700), 0 0 36px var(--fw-color, #FFD700);
    animation: fireworkSparkLarge 1.35s ease-out forwards;
}

.confetti-finish {
    z-index: 9999;
}

.confetti-finish .confetti-piece {
    animation-name: confetti-fall-finish;
}

.confetti-piece-side {
    animation-name: confetti-fall-side;
}

@keyframes podiumBoxReveal {
    0% {
        opacity: 0;
        transform: scaleY(0.25) scaleX(0.92);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes podiumNameGlow {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 18px rgba(255, 215, 0, 0.95); }
}

@keyframes crownBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes finishFlashOverlay {
    0% { opacity: 0; }
    35% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes finishListFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fireworkSpark {
    0% {
        opacity: 1;
        transform: rotate(var(--angle)) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle)) translateY(-110px) scale(0.15);
    }
}

@keyframes fireworkSparkLarge {
    0% {
        opacity: 1;
        transform: rotate(var(--angle)) translateY(0) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle)) translateY(-160px) scale(0.12);
    }
}

@keyframes confetti-fall-finish {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(900deg);
        opacity: 0;
    }
}

@keyframes confetti-fall-side {
    0% {
        transform: translateY(-15vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(var(--drift, 60px)) rotate(720deg);
        opacity: 0;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Konfeti Efekti */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    animation: confetti-fall 3s linear infinite;
}

.confetti-piece:nth-child(2n) {
    background: var(--secondary-color);
}

.confetti-piece:nth-child(3n) {
    background: var(--accent-color);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .option-item {
        padding: 16px;
        min-height: 60px;
    }
    
    .option-key {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-text {
        font-size: 28px;
    }
    
    .finish-title {
        font-size: 36px;
    }
    
    .finish-subtitle {
        font-size: 20px;
    }
    
    .congratulations-box {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .congratulations-title {
        font-size: 32px;
    }
    
    .congratulations-text {
        font-size: 22px;
    }
    
    .congratulations-text strong {
        font-size: 26px;
    }
    
    .congratulations-subtext {
        font-size: 16px;
    }
    
    .podium-box {
        width: 100px;
        padding: 16px;
    }
    
    .podium-item.first .podium-box {
        height: 150px;
    }
    
    .podium-item.second .podium-box {
        height: 120px;
    }
    
    .podium-item.third .podium-box {
        height: 90px;
    }
    
    .current-user-name {
        font-size: 18px !important;
    }
    
    .current-user-name::before {
        font-size: 16px;
        margin-right: 6px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInUp 0.5s ease;
}

/* Katılımcı Toast Mesajı */
.participant-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.participant-toast.show {
    opacity: 1;
    transform: translate(-50%, -10px);
}

.participant-toast--success {
    background: var(--success);
}

.participant-toast--error {
    background: var(--danger);
}

.sponsor-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    background: #fff8e8;
}

.sponsor-block img {
    display: block;
    max-height: 64px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.sponsor-name {
    font-weight: 700;
}

.sponsor-prize {
    color: var(--text-light);
}

.question-enter-contest,
.question-stage.is-reveal-contest {
    will-change: transform, opacity;
}

.question-enter-sponsored,
.question-stage.is-reveal-sponsored {
    will-change: transform, opacity;
}

body.observer-screen .option-item,
body.observer-screen .option-item:hover,
body.observer-screen #submit-estimate {
    cursor: default;
    transform: none;
    pointer-events: none;
    box-shadow: none;
}

body.observer-screen .option-item:hover {
    border-color: #E0E0E0;
}

body.observer-screen #estimate-input {
    pointer-events: none;
}

body.observer-screen .board-search {
    max-width: 600px;
    margin: 0 auto 16px;
}

body.observer-screen .container-sm {
    padding-top: 88px;
}

body.observer-screen .finish-screen {
    min-height: calc(100vh - 88px);
    padding: 32px 24px 48px;
    justify-content: flex-start;
}

body.observer-screen .finish-podium {
    max-width: 980px;
    min-height: 340px;
    gap: 16px 28px;
    margin-bottom: 32px;
}

body.observer-screen .podium-box {
    max-width: 280px;
    padding: 22px 18px;
}

body.observer-screen .podium-item.first .podium-box {
    height: 220px;
}

body.observer-screen .podium-item.second .podium-box {
    height: 168px;
}

body.observer-screen .podium-item.third .podium-box {
    height: 128px;
}

body.observer-screen .podium-name {
    font-size: clamp(20px, 2vw, 30px);
}

body.observer-screen .podium-item.first .podium-name {
    font-size: clamp(26px, 2.6vw, 42px);
}

body.observer-screen .podium-score {
    font-size: clamp(22px, 2vw, 32px);
}

body.observer-screen .congratulations-title {
    font-size: clamp(36px, 4vw, 56px);
}

body.observer-screen .congratulations-box {
    max-width: 900px;
    margin-bottom: 24px;
}

body.observer-screen .finish-screen .leaderboard {
    max-width: 900px;
}

.led-brand-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.led-logo-slot {
    flex: 0 0 160px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.led-logo-slot img {
    max-height: 56px;
    max-width: 160px;
    object-fit: contain;
}

.led-brand-title {
    flex: 1;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 28px);
    color: var(--primary-color);
}

.observer-qr {
    display: none;
    position: fixed;
    z-index: 40;
    top: 50%;
    left: min(calc(50% + 300px), calc(100vw - 264px));
    transform: translateY(-50%);
    width: 240px;
    background: #fff;
    color: var(--text-dark);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.observer-qr.is-visible {
    display: block;
}

.observer-qr.is-inline {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    flex: 0 0 240px;
}

.lobby-screen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lobby-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    width: min(980px, 100%);
}

.no-contest-card,
.lobby-join-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 48px 36px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.no-contest-icon,
.lobby-join-icon {
    font-size: 96px;
    line-height: 1;
    margin-bottom: 20px;
}

.no-contest-title,
.lobby-join-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.no-contest-message,
.lobby-join-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

.no-contest-subtitle {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.pulse-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 24px 4px 0;
    border-radius: 50%;
    background: var(--primary-color);
    animation: lobbyPulse 1.5s ease-in-out infinite;
}

.pulse-dot:nth-child(2) { animation-delay: 0.3s; }
.pulse-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes lobbyPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.lobby-join-card .form-group {
    text-align: left;
    margin-top: 20px;
}

.lobby-join-card .btn {
    margin-top: 8px;
    pointer-events: none;
}

.observer-qr-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.observer-qr-url {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-light);
    word-break: break-all;
}

#qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

#qrcode canvas,
#qrcode img {
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto;
}

