@font-face {
  font-family: 'Rubik Mono One';
  src: url('../fonts/RubikMonoOne-Regular.ttf') format('truetype');
  font-display: swap;
}

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

body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#stage {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
  outline: none;
}

.tap {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(8, 6, 4, 0.92);
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.tap[hidden] {
  display: none;
}

.tap-button {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 3px #f4ebdd;
  transition: transform 0.12s ease-out;
}

.tap:active .tap-button,
.tap:focus-visible .tap-button {
  transform: scale(0.94);
}

.tap-label {
  margin: 0;
  padding: 0 16px;
  font: 18px/1.5 'Rubik Mono One', system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-align: center;
  color: #f4ebdd;
}

.rotate {
  display: none;
}

@media (orientation: portrait) and (pointer: coarse) {
  .rotate {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 3;
    margin: 0;
    font: 13px/1.5 'Rubik Mono One', system-ui, sans-serif;
    letter-spacing: 0.06em;
    text-align: center;
    color: #f4ebdd;
    pointer-events: none;
  }
}
