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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    background-color: #000;
    color: #eee;
}

#canvas-container {
    position: fixed;
    inset: 0;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#labels {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.loading.hidden { display: none; }

.info {
    position: fixed;
    top: 12px;
    left: 12px;
    max-width: min(420px, calc(100vw - 24px));
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.info h1 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info .big {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.info .warn { color: #ffb15a; }
.info .bad { color: #ff6b6b; }
.info .good { color: #5fe39a; }
.info .dim { color: rgba(255, 255, 255, 0.55); }
.info.hidden { display: none; }

.legend {
    position: fixed;
    bottom: 12px;
    left: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 6px;
    font-size: 11px;
    display: none;
    gap: 10px;
    pointer-events: none;
}

.legend.visible { display: flex; }
.legend span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 3px;
    margin-right: 4px;
    vertical-align: middle;
    background: var(--c);
}

.map-label {
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.projector-label { border-width: 2px; }
.landmark-label { color: rgba(255, 255, 255, 0.8); background: rgba(0, 0, 0, 0.35); }

/* lil-gui, matching the reference sim's dark panel */
.lil-gui.root {
    --background-color: rgba(0, 0, 0, 0.88);
    --widget-color: #2a2a2a;
    --focus-color: #3a3a3a;
    --hover-color: #333;
    --number-color: #6ad5ff;
    --string-color: #b8f28a;
    --font-size: 12px;
    --input-font-size: 12px;
    --width: 300px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.embed .lil-gui { display: none; }
body.embed .info { font-size: 11px; padding: 7px 9px; }
