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

body {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, #000000 0%, #0a0a2e 50%, #16213e 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.app-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #0088ff;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #00ffff, 0 0 30px #0088ff; }
    to { text-shadow: 0 0 30px #00ffff, 0 0 50px #0088ff; }
}

.question {
    font-size: 1.2rem;
    color: #ffa500;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #ffa500;
}

.counter-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.counter-label {
    font-size: 1rem;
    color: #ffffff;
}

.counter {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 15px #00ff88;
    min-width: 200px;
    animation: pulse 1s ease-in-out infinite;
}

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

#scene-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.control-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    z-index: 1000;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    min-width: 120px;
}

.control-group label {
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: bold;
}

.slider {
    width: 100px;
    height: 5px;
    background: #333;
    outline: none;
    border-radius: 5px;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #00ffff;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
}

.control-btn {
    background: linear-gradient(45deg, #0088ff, #00ffff);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.3);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 255, 0.5);
}

.control-select {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.info-panel.collapsed .info-content {
    display: none;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #00ffff;
    font-weight: bold;
}

.info-toggle {
    background: none;
    border: none;
    color: #00ffff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.info-toggle:hover {
    background: rgba(0, 255, 255, 0.1);
}

.fact {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0 10px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ffff);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.progress-text {
    text-align: center;
    color: #00ff88;
    font-weight: bold;
    font-size: 0.9rem;
}

.milestone-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: #ffa500;
    text-shadow: 0 0 30px #ffa500;
    z-index: 10000;
    pointer-events: none;
    animation: celebrate 3s ease-out forwards;
}

@keyframes celebrate {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .counter {
        font-size: 1.5rem;
        min-width: 150px;
    }
    
    .control-panel {
        bottom: 10px;
        left: 10px;
        right: 10px;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .info-panel {
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 300px;
    }
    
    .milestone-celebration {
        font-size: 2rem;
    }
}