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

body {
    overflow: hidden;
    background: #000;
    font-family: 'Consolas', 'Courier New', 'Liberation Mono', monospace;
}

#renderer {
    display: block;
    width: 100vw;
    height: 100vh;
}

/* Loading screen */
#loading {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s;
}

#loading h1 {
    color: #00ff88;
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0,255,136,0.5);
}

#loading p {
    color: #00aa66;
    font-size: 14px;
}

/* HUD Overlay */
#hud-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    color: #00ff88;
    font-size: 14px;
    text-shadow: 0 0 4px rgba(0, 255, 136, 0.4), 0 1px 2px rgba(0,0,0,0.8);
    z-index: 10;
    user-select: none;
}

/* Speed tape - left side */
#hud-speed {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 4px;
    padding: 12px 16px;
    min-width: 90px;
}

#hud-airspeed {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 1px;
}

#hud-mach {
    font-size: 12px;
    color: rgba(0, 255, 136, 0.7);
    margin-top: 4px;
}

.hud-tape-label {
    font-size: 10px;
    color: rgba(0, 255, 136, 0.6);
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Altitude tape - right side */
#hud-altitude {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 4px;
    padding: 12px 16px;
    min-width: 110px;
}

#hud-alt {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 1px;
}

#hud-alt-agl {
    font-size: 12px;
    color: rgba(0, 255, 136, 0.7);
    margin-top: 4px;
}

/* Vertical speed - right of altitude */
#hud-vsi {
    position: absolute;
    right: 40px;
    top: calc(50% + 65px);
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 4px;
    padding: 6px 12px;
    min-width: 90px;
}

#hud-vs-value {
    font-size: 18px;
    font-weight: bold;
}

/* Heading tape - top center */
#hud-heading {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    padding: 2px;
}

#heading-canvas {
    display: block;
}

/* Attitude indicator - center */
#attitude-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#attitude-canvas {
    display: block;
}

/* Bottom info bar */
#hud-bottom-bar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 13px;
    letter-spacing: 1px;
}

#hud-bottom-bar span {
    white-space: nowrap;
}

/* AOA indicator - left, below speed */
#hud-aoa-box {
    position: absolute;
    left: 40px;
    top: calc(50% + 55px);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
}

/* G-Force display */
#hud-gforce-box {
    position: absolute;
    left: 40px;
    top: calc(50% + 85px);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Bank angle display */
#hud-bank-box {
    position: absolute;
    right: 40px;
    top: calc(50% + 100px);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
}

/* Warnings */
#hud-warnings {
    position: absolute;
    top: calc(50% + 80px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hud-warning {
    color: #ff3333;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 50, 50, 0.6), 0 0 20px rgba(255, 50, 50, 0.3);
    animation: blink 0.6s infinite;
    padding: 4px 16px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 3px;
}

.hud-warning.hidden {
    display: none;
}

#warn-crash {
    font-size: 28px;
    color: #ff0000;
    background: rgba(255, 0, 0, 0.2);
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

/* FPS counter */
#hud-fps-box {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    color: rgba(0, 255, 136, 0.5);
}

/* View mode indicator */
#hud-view-box {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    color: rgba(0, 255, 136, 0.5);
}

/* Airport info display */
#hud-airport-box {
    position: absolute;
    top: 28px;
    left: 10px;
    font-size: 12px;
    color: #ffbb44;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 187, 68, 0.3);
    border-radius: 3px;
    padding: 3px 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 4px rgba(255, 187, 68, 0.4), 0 1px 2px rgba(0,0,0,0.8);
}

/* Controls help */
#hud-help {
    position: absolute;
    bottom: 80px;
    left: 20px;
    font-size: 10px;
    color: rgba(0, 255, 136, 0.35);
    line-height: 1.6;
}

/* Throttle bar */
#hud-throttle-bar {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 200px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 4px;
    overflow: hidden;
}

#throttle-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #00ff88, #00cc66);
    transition: height 0.1s;
    border-radius: 0 0 3px 3px;
}

/* Radar / TCAS display */
#radar-container {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    padding: 4px;
    text-align: center;
}

#radar-label {
    font-size: 10px;
    color: rgba(0, 255, 136, 0.6);
    letter-spacing: 2px;
    margin-bottom: 2px;
}

#radar-range {
    font-size: 9px;
    color: rgba(0, 255, 136, 0.4);
    margin-top: 2px;
}

#radar-canvas {
    display: block;
    margin: 0 auto;
}
