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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
}

canvas {
    display: block;
}
#loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(#5bbcff, #dff4ff);
    z-index: 100;
}

#loading h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 15px black;
}

#loading p {
    color: white;
    font-size: 20px;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    z-index: 20;
}

.panel {
    min-width: 190px;
    padding: 15px;
    border-radius: 14px;
    background: rgba(20, 20, 25, 0.65);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.panel h2 {
    margin-bottom: 10px;
    font-size: 18px;
    letter-spacing: 2px;
}

.panel div {
    margin: 8px 0;
}

#minimap {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

#controls {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 240px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(20, 20, 25, 0.65);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 20;
}

#controls h2 {
    margin-bottom: 12px;
}

#controls p {
    margin-bottom: 8px;
    opacity: 0.9;
}

#crosshair {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    pointer-events: none;
    z-index: 30;
}

@media (max-width: 900px) {
    #hud {
        flex-direction: column;
    }
    #controls {
        width: 200px;
        font-size: 14px;
    }
}