/* null VR - Powered by Google XR Blocks */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: 'Courier New', 'Consolas', monospace;
    user-select: none;
    -webkit-user-select: none;
}

#overlay-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.hud-panel {
    pointer-events: auto;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.35), inset 0 0 15px rgba(255, 0, 255, 0.2);
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    animation: glow-pulse 4s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        border-color: rgba(0, 255, 255, 0.6);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    100% {
        border-color: rgba(255, 0, 255, 0.8);
        box-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
    }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.title-badge {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
}

.title-badge span {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.mode-badge {
    display: inline-block;
    background: rgba(0, 255, 128, 0.2);
    color: #00ff80;
    border: 1px solid #00ff80;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 8px;
    text-shadow: 0 0 6px #00ff80;
}

.instructions {
    max-width: 450px;
    font-size: 12px;
    line-height: 1.5;
    color: #a0e0ff;
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.telemetry {
    font-size: 13px;
    line-height: 1.6;
}

.telemetry .value {
    color: #ffff00;
    font-weight: bold;
    text-shadow: 0 0 8px #ffff00;
}

.intensity-meter {
    width: 220px;
}

.intensity-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 6px;
    border: 1px solid rgba(255, 0, 255, 0.5);
}

.intensity-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
    box-shadow: 0 0 12px #ff00ff;
    transition: width 0.1s linear;
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.hud-btn {
    pointer-events: auto;
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid rgba(255, 0, 255, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    transition: all 0.2s;
    text-shadow: 0 0 5px #ff00ff;
}

.hud-btn:hover {
    background: rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
    transform: translateY(-1px);
}

.hud-btn:active {
    transform: translateY(1px);
}

.hud-btn.active {
    background: rgba(0, 255, 128, 0.4);
    border-color: #00ff80;
    color: #00ff80;
    text-shadow: 0 0 8px #00ff80;
}

/* Back button */
.back-link {
    display: inline-block;
    color: #00ffff;
    text-decoration: none;
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 1;
    text-shadow: 0 0 8px #00ffff;
}

/* XR Button adjustments */
#xr-button, .webxr-button {
    font-family: 'Courier New', monospace !important;
    letter-spacing: 1px !important;
}
