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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #FFA500;
    overflow: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-content {
    text-align: center;
    z-index: 10001;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: #FF8C00;
    text-shadow: 0 0 20px #FFA500;
    margin-bottom: 3rem;
}

.instructions {
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.instructions p {
    margin: 0.5rem 0;
}

.start-btn {
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    border: 2px solid #FFA500;
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 1rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-top: 2rem;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}

.start-btn:hover {
    background: linear-gradient(135deg, #FFA500, #FFB520);
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.8);
    transform: scale(1.05);
}

.loading-text {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #00BFFF;
    min-height: 1.5rem;
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9998;
}

/* Game Container */
#game-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

#scene-container {
    width: 100%;
    height: calc(100vh - 40px);
}

/* HUD */
#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.hud-element {
    position: absolute;
    pointer-events: none;
}

/* Health Display */
#health-display {
    bottom: 30px;
    left: 30px;
}

.hud-label {
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.health-value {
    font-size: 3rem;
    font-weight: bold;
    color: #FF8C00;
    text-shadow: 0 0 10px #FFA500;
    animation: glow 2s ease-in-out infinite;
}

.health-value.pulse {
    animation: pulse 0.5s ease-in-out infinite;
}

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

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px #FFA500; }
    50% { text-shadow: 0 0 20px #FFA500; }
}

/* Suit Status */
#suit-status {
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suit-icon {
    font-size: 1.5rem;
}

.suit-text {
    font-size: 0.9rem;
    color: #00ff00;
    letter-spacing: 0.1rem;
}

/* Crosshair */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    text-shadow: 0 0 10px #FFA500;
}

/* Hold Indicator */
#hold-indicator {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #00BFFF;
    letter-spacing: 0.1rem;
}

/* Message Display */
#message-display {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #FFA500;
    letter-spacing: 0.15rem;
    text-shadow: 0 0 15px #FFA500;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
    white-space: nowrap;
}

/* Pointer Lock Prompt */
#pointer-lock-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#pointer-lock-prompt p {
    font-size: 1.5rem;
    color: #FFA500;
    text-shadow: 0 0 20px #FFA500;
    letter-spacing: 0.2rem;
}

/* Game Over */
#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.game-over-content {
    text-align: center;
    z-index: 3001;
}

.game-over-content h2 {
    font-size: 2.5rem;
    color: #ff0000;
    text-shadow: 0 0 30px #ff0000;
    margin-bottom: 1rem;
}

.game-over-content h3 {
    font-size: 1.8rem;
    color: #ff1493;
    margin-bottom: 2rem;
}

.game-over-message {
    font-size: 1.1rem;
    color: #FFA500;
    margin: 2rem 0;
    max-width: 600px;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-size: 0.85rem;
    z-index: 100;
    border-top: 1px solid #333;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-right a {
    color: #FFA500;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #FFB520;
    text-shadow: 0 0 10px #FFA500;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .instructions {
        font-size: 0.9rem;
    }
    
    #footer {
        font-size: 0.7rem;
        padding: 0 1rem;
    }
    
    .footer-center {
        display: none;
    }
}