html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gamePage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--game-ivory);
  background: var(--game-bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.shell {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
}

.game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overflow: clip;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.topbar {
  position: absolute;
  z-index: 5;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  right: calc(env(safe-area-inset-right, 0px) + 8px);
  left: calc(env(safe-area-inset-left, 0px) + 60px);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--control-h);
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand h1 {
  margin: 0;
}

.accountCluster {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  pointer-events: none;
}

.accountCluster > * {
  pointer-events: auto;
}

.accountCluster > .wallet {
  order: -1;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .gamePage *,
  .gamePage *::before,
  .gamePage *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
