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

body {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

#status-bar {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 255, 0, 0.1);
    border-bottom: 2px solid #00ff00;
    backdrop-filter: blur(10px);
}

#status-text, #commander-name {
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
}

#subtitle-container {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    z-index: 90;
}

#subtitle-text {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    padding: 20px;
    font-size: 18px;
    line-height: 1.4;
    text-shadow: 0 0 10px #00ff00;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#subtitle-text.active {
    opacity: 1;
}

#interaction-prompt {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    text-align: center;
    z-index: 95;
}

#prompt-text {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#prompt-text.active {
    opacity: 1;
}

#choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-button {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.choice-button.active {
    opacity: 1;
    transform: translateY(0);
}

.choice-button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: scale(1.02);
}

#scanner-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid #00ff00;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    z-index: 85;
    transition: opacity 0.5s ease;
}

#scanner-display.hidden {
    opacity: 0;
    pointer-events: none;
}

#scanner-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: 
        radial-gradient(circle at center, transparent 20px, rgba(0, 255, 0, 0.1) 21px),
        conic-gradient(transparent 0deg, rgba(0, 255, 0, 0.2) 90deg, transparent 180deg, rgba(0, 255, 0, 0.2) 270deg);
    border-radius: 50%;
    animation: scan 2s linear infinite;
}

#scanner-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    text-align: center;
    text-shadow: 0 0 10px #00ff00;
}

@keyframes scan {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#audio-indicator {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 80;
}

#audio-bars {
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#audio-bars.active {
    opacity: 1;
}

.bar {
    width: 4px;
    height: 20px;
    background: #00ff00;
    border-radius: 2px;
    animation: audioBar 0.8s ease-in-out infinite;
}

.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes audioBar {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.hidden {
    display: none !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #status-bar {
        padding: 15px;
        font-size: 12px;
    }
    
    #subtitle-text {
        font-size: 16px;
        padding: 15px;
    }
    
    #prompt-text {
        font-size: 14px;
        padding: 12px;
    }
    
    .choice-button {
        padding: 12px;
        font-size: 13px;
    }
    
    #scanner-display {
        width: 250px;
        height: 250px;
    }
    
    #scanner-grid {
        width: 230px;
        height: 230px;
    }
}

