:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #1d102f;
  color: #fff4d8;
}

body { margin: 0; }
[hidden] { display: none !important; }

.game {
  display: grid;
  min-height: 100dvh;
  place-items: center;
}

.loading {
  position: relative;
  width: min(100vw, calc(100dvh * 16 / 9));
  aspect-ratio: 16 / 9;
}

.loading img { display: block; width: 100%; height: 100%; object-fit: contain; }

.loading-status {
  position: absolute;
  inset-inline: 30%;
  bottom: max(3%, env(safe-area-inset-bottom));
  display: grid;
  gap: .2rem;
  justify-items: center;
  color: white;
  font-weight: 800;
  text-align: center;
}

.loading-status p { margin: 0; font-size: clamp(.75rem, 2.5dvh, 1.15rem); }
.loading-status .ui-meter { width: 100%; height: clamp(12px, 4dvh, 24px); --fill: 0%; }
.loading-status .ui-meter { background: #331e4b; }
.loading-status .ui-meter::before { background: linear-gradient(#fff5a3 0 15%, #ebbb30 15% 80%, #a66b24); }
button { min-height: 44px; padding-inline: 1rem; border-radius: 10px; font: inherit; }

.orientation { display: none; text-align: center; }

@media (orientation: portrait) {
  .game { display: none; }
  .orientation { display: grid; min-height: 100dvh; place-items: center; padding-inline: 1.5rem; }
}
