html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

#app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

#main-stage {
  position: relative;
  height: 85%;
  overflow: hidden;
  background: #000;
}

.stage-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.stage-frame.is-active {
  opacity: 1;
  pointer-events: auto;
}

#stage-click-catcher {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

#control-btn {
  position: absolute;
  top: 2vh;
  right: 2vh;
  z-index: 10;
  width: 7vh;
  height: 7vh;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 3vh;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#control-btn:active {
  background: rgba(0, 0, 0, 0.8);
}

#bottom-bar {
  height: 15%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  background: #111;
  scrollbar-width: none;
}

#bottom-bar::-webkit-scrollbar {
  display: none;
}

.bottom-bar__track {
  display: flex;
  height: 100%;
  align-items: stretch;
}

.bottom-bar__tile {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  margin: 0;
  border: 0.4vh solid transparent;
  box-sizing: border-box;
  background: #000;
  cursor: pointer;
}

.bottom-bar__tile.is-current {
  border-color: #ffcc00;
}

.bottom-bar__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-touch-callout: none;
}
