/* Moldura do GameHub no iPhone: as telas ficam dentro da área segura (fora do entalhe e da barra
   de início); o que sobra em volta é preto. */
html, body { margin: 0; height: 100%; overflow: hidden; background: #07040f; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
iframe { position: fixed; border: 0; background: transparent; color-scheme: normal; }
#hub, #game, #editor { top: env(safe-area-inset-top); right: env(safe-area-inset-right); bottom: env(safe-area-inset-bottom); left: env(safe-area-inset-left);
  width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right)); height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
#game, #editor { z-index: 2; background: #000; }
body:has(#game), body:has(#editor) { background: #000; }
#fatal { position: fixed; inset: 0; display: flex; align-items: center; padding: 2rem; font: 500 1.1rem/1.5 system-ui, sans-serif; color: #fff; text-align: center; }
#install { position: fixed; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 1.2rem; background: rgba(4, 2, 10, .86); }
#install .box { display: flex; flex-direction: column; align-items: center; gap: .8rem; max-width: 22rem; padding: 1.6rem 1.3rem; border-radius: 1.4rem; text-align: center;
  color: #f1edff; font: 500 1rem/1.5 system-ui, sans-serif; background: #150d2e; border: 1px solid rgba(255, 255, 255, .14); }
#install img { width: 4.4rem; height: 4.4rem; border-radius: 1rem; }
#install b { font-size: 1.25rem; line-height: 1.3; }
#install p { margin: 0; color: #cfc6ee; }
#install button { margin-top: .4rem; padding: .7rem 1.2rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 2rem; color: #f1edff; background: transparent; font: 600 .95rem system-ui, sans-serif; }
[hidden] { display: none !important; }
/* Com o jogo aberto, a tela inicial (com a capa borrada no fundo) some de vez: o iPhone para de compor ela por trás do jogo. */
body:has(#game) #hub, body:has(#editor) #hub { visibility: hidden; }
