html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #000; }
body { display: grid; place-items: center; }
body > div { width: 100%; height: 100%; }
canvas { position: static !important; display: block; width: 100%; height: 100%; object-fit: contain; }
[hidden] { display: none !important; }
#game-error { position: fixed; z-index: 2; inset: 1rem 1rem auto; padding: 1rem; background: #12151c; color: #ece7dc; font: 16px/1.5 system-ui, sans-serif; border: 1px solid #7fd3c8; border-radius: 10px; }
#game-error button { padding: .5rem 1rem; font: inherit; cursor: pointer; }
