/* ── Black Hole Canvas Wrap ── */

#bh-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #00000a;
    overflow: hidden;
    margin-bottom: 1px;          /* fuses visually with stat-grid border */
    border: 1px solid var(--border);
}

#bh-wrap canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#bh-status {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: rgba(77, 163, 255, 0.55);
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 10;
}

#bh-status.hidden {
    opacity: 0;
}

/* ── Controls ── */

.bh-controls {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.bh-control-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bh-ctrl-label {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.bh-ctrl-val {
    color: var(--accent);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    transition: box-shadow 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 8px rgba(77, 163, 255, 0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
}

/* ── Stat grid reuse — already in artemis.css, safe to repeat ── */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.stat {
    background: var(--bg);
    padding: 1.25rem;
    animation: bh-fade-in 0.4s ease both;
}

.stat:nth-child(1) { animation-delay: 0.05s; }
.stat:nth-child(2) { animation-delay: 0.10s; }
.stat:nth-child(3) { animation-delay: 0.15s; }
.stat:nth-child(4) { animation-delay: 0.20s; }

@keyframes bh-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.stat-unit {
    font-size: 0.7rem;
    color: var(--muted);
    margin-left: 0.25rem;
}

@media (max-width: 480px) {
    .stat-grid  { grid-template-columns: 1fr; }
    .stat-value { font-size: 1.1rem; }
}
