html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #78A355;
  overscroll-behavior: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  touch-action: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.muat {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #78A355;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: opacity .3s ease;
}

.muat.is-selesai {
  opacity: 0;
  pointer-events: none;
}

.muat__judul {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.muat__bar {
  width: min(280px, 70vw);
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}

.muat__isi {
  width: 0;
  height: 100%;
  border-radius: 7px;
  background: #fff;
  transition: width .2s ease;
}

.muat__teks {
  margin: 0;
  font-size: 15px;
  opacity: .9;
}

/* Tombol kembali hanya selama layar muat; sesudah game jalan, tombol kembali ada di dalam game. */
.keluar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  padding: 0 18px;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  color: #2B3A33;
  font: 700 16px/44px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.keluar.is-sembunyi {
  display: none;
}
