* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; }
body { font: 16px/1.6 "Segoe UI", system-ui, sans-serif; color: #dfe4f2; background: radial-gradient(120% 90% at 50% 35%, #1b2440, #070a13 70%); }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
header { position: fixed; top: 24px; left: 24px; right: 24px; pointer-events: none; }
h1 { font-size: 26px; font-weight: 600; line-height: 1.2; }
header p { color: #9aa5c4; font-size: 15px; }
#painel { position: fixed; right: 24px; top: 110px; width: min(320px, calc(100% - 48px)); padding: 18px 20px; border-radius: 14px; background: #0f1528d9; border: 1px solid #ffffff1f; backdrop-filter: blur(10px); }
h2 { font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
#etapas { position: fixed; left: 0; right: 0; bottom: 18px; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 4px 16px; }
button { flex: none; font: inherit; font-size: 15px; color: inherit; background: #131a30e6; border: 1px solid #ffffff26; border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: background .25s; }
button:hover { background: #222d52; }
button[aria-pressed="true"] { background: #4a76f0; border-color: #4a76f0; color: #fff; }
button:focus-visible { outline: 2px solid #9db4ff; outline-offset: 2px; }
#carregando { position: fixed; top: 50%; width: 100%; text-align: center; }
@media (max-width: 720px) {
  header p { font-size: 14px; }
  #painel { top: auto; bottom: 76px; right: 16px; width: calc(100% - 32px); padding: 12px 16px; font-size: 14px; }
}
