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

body {
    background-color: #000;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

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

.header {
    background: rgba(0, 10, 30, 0.75);
    border: 1px solid #00f0ff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    max-width: 450px;
    pointer-events: auto;
}

.header h1 {
    font-size: 22px;
    color: #ffe81f;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 232, 31, 0.5);
}

.header p {
    font-size: 13px;
    color: #00f0ff;
    line-height: 1.4;
}

.hud-overlay {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.stats-panel {
    background: rgba(0, 15, 30, 0.8);
    border: 1px solid #ff3300;
    border-radius: 6px;
    padding: 12px 20px;
    box-shadow: 0 0 10px rgba(255, 51, 0, 0.3);
}

.stat-item {
    font-size: 14px;
    margin: 4px 0;
    font-family: monospace;
}

.stat-label {
    color: #aaa;
}

.stat-value {
    color: #00ff66;
    font-weight: bold;
}

.controls-guide {
    background: rgba(0, 10, 25, 0.85);
    border: 1px solid #ffe81f;
    border-radius: 8px;
    padding: 15px;
    max-width: 360px;
    font-size: 12px;
    color: #ddd;
}

.controls-guide h3 {
    color: #ffe81f;
    margin-bottom: 8px;
    font-size: 14px;
    border-bottom: 1px solid #ffe81f;
    padding-bottom: 4px;
}

.controls-guide ul {
    list-style: none;
}

.controls-guide li {
    margin: 6px 0;
    display: flex;
    justify-content: space-between;
}

.controls-guide span.key {
    color: #00f0ff;
    font-weight: bold;
}

/* Three.js VRButton custom override */
#VRButton {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 12px 28px !important;
    border: 2px solid #ffe81f !important;
    border-radius: 30px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    color: #ffe81f !important;
    font-size: 16px !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    box-shadow: 0 0 20px rgba(255, 232, 31, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 100 !important;
}

#VRButton:hover {
    background: #ffe81f !important;
    color: #000 !important;
    box-shadow: 0 0 30px rgba(255, 232, 31, 0.8) !important;
}
