:root {
  --bg: #0b0e12;
  --panel: #12161c;
  --text: #d7dee9;
  --muted: #8b95a7;
  --accent: #4da3ff;
  --ok: #2ecc71;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji'; }

#app { position: relative; }
#gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

#hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row.top { /* backdrop-filter: blur(4px);  // disabled to avoid WebGL tint artifacts on some browsers */ }
.brand { font-weight: 600; color: var(--text); }
.status { display: flex; gap: 16px; color: var(--muted); }

.row.bottom { pointer-events: none; }
.row.bottom .left { display: flex; gap: 8px; pointer-events: auto; }
.row.bottom .right { color: var(--muted); pointer-events: none; }

.btn { background: var(--panel); color: var(--text); border: 1px solid #1f2630; border-radius: 8px; padding: 8px 12px; cursor: pointer; user-select: none; transition: background .15s ease, border-color .15s ease; }
.btn:hover { background: #161b23; border-color: #2a3340; }
label.btn { display: inline-flex; align-items: center; gap: 8px; }

.hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; font-size: 18px; color: var(--accent); background: rgba(16, 22, 30, 0.66); border: 1px solid #1f2630; padding: 10px 14px; border-radius: 10px; }

#success { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(18, 22, 28, 0.85); border: 1px solid #2d3746; color: var(--ok); font-weight: 700; padding: 16px 22px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }

.subtle { color: var(--muted); }
