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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
    cursor: default;
    user-select: none;
}

#scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    pointer-events: none;
}

#status-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #ff6600;
    backdrop-filter: blur(10px);
}

#status-text {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff6600;
    transition: all 0.3s ease;
}

#status-text.opening,
#status-text.closing {
    color: #ffaa00;
    animation: pulse 1s infinite;
}

#status-text.open {
    color: #ff3300;
    text-shadow: 0 0 15px #ff3300;
}

#status-text.closed {
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
}

#engine-lights {
    display: flex;
    gap: 8px;
}

.engine-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 1px solid #666;
    transition: all 0.3s ease;
}

.engine-light.active {
    background: #00aaff;
    box-shadow: 0 0 15px #00aaff;
    animation: enginePulse 2s infinite;
}

#controls-hint {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 12px;
    color: #ccc;
    opacity: 1;
    transition: opacity 2s ease;
}

#controls-hint.fade-out {
    opacity: 0;
}

#main-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.sfoil-btn {
    position: relative;
    background: linear-gradient(45deg, #333, #555);
    border: 3px solid #ff6600;
    color: #fff;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.sfoil-btn:hover {
    background: linear-gradient(45deg, #444, #666);
    border-color: #ffaa00;
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.5);
    transform: translateY(-2px);
}

.sfoil-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.8);
}

.sfoil-btn.open {
    border-color: #ff3300;
    box-shadow: 0 0 20px rgba(255, 51, 0, 0.4);
}

.sfoil-btn.open:hover {
    border-color: #ff6600;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.6);
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sfoil-btn:hover .button-glow {
    opacity: 1;
    animation: buttonGlow 2s ease-in-out infinite;
}

#settings-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #666;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#settings-panel.collapsed .settings-content {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
}

#settings-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 15px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

#settings-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-content {
    max-height: 300px;
    opacity: 1;
    padding: 20px;
    transition: all 0.3s ease;
}

.setting {
    margin-bottom: 15px;
}

.setting label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.setting input[type="range"] {
    width: 100%;
    background: #333;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.setting input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff6600;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.setting select {
    width: 100%;
    background: #333;
    color: #fff;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 8px;
    font-size: 12px;
}

#easter-egg-counter {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ff3300;
    font-size: 12px;
    color: #ff3300;
    text-shadow: 0 0 5px #ff3300;
}

footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    font-size: 12px;
    color: #666;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

footer:hover {
    opacity: 1;
}

footer a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffaa00;
    text-shadow: 0 0 5px #ffaa00;
}

.easter-egg-text {
    margin-top: 5px;
    font-style: italic;
    color: #888;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes enginePulse {
    0%, 100% { 
        box-shadow: 0 0 15px #00aaff;
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px #00ccff;
        transform: scale(1.1);
    }
}

@keyframes buttonGlow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    #hud {
        top: 10px;
        left: 10px;
    }
    
    #status-display {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    #settings-panel {
        top: 10px;
        right: 10px;
    }
    
    .sfoil-btn {
        font-size: 16px;
        padding: 12px 25px;
        min-width: 200px;
    }
    
    #main-controls {
        bottom: 20px;
    }
    
    footer {
        font-size: 10px;
        bottom: 5px;
    }
    
    #controls-hint {
        font-size: 10px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    #status-display {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .sfoil-btn {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 180px;
    }
    
    .settings-content {
        padding: 15px;
    }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
    #status-display {
        background: rgba(0, 0, 0, 0.9);
        border-color: #fff;
    }
    
    .sfoil-btn {
        border-color: #fff;
        color: #fff;
    }
    
    #settings-panel {
        background: rgba(0, 0, 0, 0.9);
        border-color: #fff;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}