* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: #0b1220; color: #e2e8f0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; overflow: hidden; }
#app { display: flex; flex-direction: column; height: 100vh; height: var(--stage-h, 100vh); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #111827; }
.title { font-weight: 700; }
.title small { opacity: .7; font-weight: 400; margin-left: 6px; }
.spacer { flex: 1; }
.hud b { color: #fbbf24; }
.hud .sep { opacity: .5; margin: 0 6px; }
#status { padding: 6px 12px; font-size: 13px; background: #0f172a; }
#stage { width: 100%; max-width: 480px; margin: 0 auto; background: #000; touch-action: none; }
#statusbar { padding: 8px 12px; background: #111827; display: flex; justify-content: center; }
.actions { display: flex; gap: 8px; }
.btn { border: 1px solid #334155; background: #1e293b; color: #e2e8f0; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.btn.primary { background: #2563eb; border-color: #2563eb; }
#touchpad { display: flex; gap: 8px; padding: 8px 12px; background: #0f172a; justify-content: center; }
.tbtn { flex: 1; max-width: 160px; padding: 12px; border: 1px solid #334155; background: #1e293b; color: #e2e8f0; border-radius: 8px; font-weight: 700; }
#toast { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); padding: 8px 14px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; }
#toast.show { opacity: 1; }
