html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: sans-serif;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

#track {
  display: flex;
  height: 100%;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

.slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#ui button {
  pointer-events: auto;
  cursor: pointer;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 15vmin;
  height: 15vmin;
  max-width: 90px;
  max-height: 90px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 6vmin;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-prev { left: 4%; }
#btn-next { right: 4%; }

#btn-home {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 13vmin;
  height: 13vmin;
  max-width: 80px;
  max-height: 80px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 6vmin;
}

#counter {
  position: absolute;
  bottom: 3%;
  right: 4%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 1vmin 2vmin;
  border-radius: 1vmin;
  font-size: 3.5vmin;
  font-weight: bold;
}

#empty {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 5vmin;
  text-align: center;
  z-index: 5;
}

#empty.visible {
  display: flex;
}

#pin-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4vmin;
}

#pin-screen.hidden {
  display: none;
}

#pin-title {
  color: #fff;
  font-size: 6vmin;
}

#pin-dots {
  display: flex;
  gap: 3vmin;
}

.dot {
  width: 7vmin;
  height: 7vmin;
  max-width: 56px;
  max-height: 56px;
  border-radius: 50%;
  border: 0.6vmin solid #fff;
  box-sizing: border-box;
}

.dot.active {
  background: #fff;
}

#pin-error {
  color: #ff6b6b;
  font-size: 4.5vmin;
  min-height: 6vmin;
  text-align: center;
}

#pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5vmin;
  width: 75vmin;
  max-width: 440px;
}

.key {
  font-size: 6.5vmin;
  height: 12vmin;
  max-height: 96px;
  border: none;
  border-radius: 2vmin;
  background: #2a2a2a;
  color: #fff;
  cursor: pointer;
}

.key:disabled {
  opacity: 0.3;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
}

.video-cover .play {
  font-size: 18vmin;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}
