/* Shared styling for the per-renderer routes (/, /voxel, /ray). */

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

html, body {
    height: 100%;
    background: #0d1117;
    color: #c9d1d9;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
}

#canvas {
    width: 100vw;
    height: 100vh;
    display: block;
    background: #1a1a2e;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: monospace;
    font-size: 17px;
    text-align: center;
    min-width: 300px;
    transition: opacity .4s ease-out;
}
#loading.gone { opacity: 0; pointer-events: none; }
#loading.error { color: #f85149; }

#bar {
    margin-top: 12px;
    height: 6px;
    background: #21262d;
    border-radius: 3px;
    overflow: hidden;
}
#fill {
    height: 100%;
    width: 0%;
    background: #58a6ff;
    transition: width .15s linear;
}
#fill.indet {
    width: 30%;
    animation: indet 1.2s linear infinite;
}
@keyframes indet {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

#note { margin-top: 8px; font-size: 13px; color: #8b949e; }

#badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 12px;
    color: #8b949e;
    font-family: 'Fira Code', monospace;
    background: rgba(13, 17, 23, .72);
    padding: 6px 10px;
    border-radius: 5px;
}
#badge a { color: #58a6ff; margin-left: 6px; }
#badge .sep { opacity: .5; }
#badge .warn { color: #d29922; }
