* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: #0d1117; color: #e6edf3; font-family: "Inter", system-ui, -apple-system, sans-serif; }
#app { position: relative; width: 100%; height: 100%; overflow: hidden; }
#scene { display: block; width: 100%; height: 100%; background: #000; }
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); color: #e6edf3; font-size: 1.1rem; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 10; }
.overlay.visible { opacity: 1; pointer-events: auto; }
#ui { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; align-items: center; z-index: 20; background: rgba(13,17,23,0.75); padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(6px); }
button { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.08); color: #e6edf3; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s ease, border-color 0.2s ease; }
button:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.2); }
button:disabled { opacity: 0.6; cursor: not-allowed; }
button.primary { background: #238636; border-color: #2ea043; }
.status { font-size: 0.85rem; opacity: 0.9; }
.debug { margin-left: 8px; font-size: 0.75rem; color: #9ae6b4; max-width: 360px; word-break: break-word; }
@media (max-width: 640px) {
  #ui { flex-wrap: wrap; }
  button { font-size: 0.85rem; padding: 6px 8px; }
}
