* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #15191b; }
body { font-family: Arial, sans-serif; }
#viewport { position: fixed; inset: 0; display: grid; place-items: center; }
#game { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; outline: 0; touch-action: none; }
@media (max-aspect-ratio: 8/5) {
  #game { width: 100vw; height: 62.5vw; }
}
@media (min-aspect-ratio: 8/3) {
  #game { width: 266.666667vh; height: 100vh; }
}
#loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #15191b; color: #fff; padding: 24px; text-align: center; }
#loading[hidden] { display: none; }
#loading strong { font-size: 28px; }
#loading progress { width: min(320px, 80%); height: 14px; accent-color: #e7b44c; }
#status { font-size: 15px; max-width: 560px; overflow-wrap: anywhere; }
