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

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

#stage {
  position: fixed;
  left: 0;
  top: 0;
  display: block;
  background: #000;
}

/* Small terminal line typed under the final message. */
#prompt {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  white-space: pre;
  pointer-events: none;
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  font-weight: 400;
  font-size: clamp(12px, 1.45vw, 19px);
  letter-spacing: 0.08em;
  color: #d9d2c3;
  opacity: 0;
  transition: opacity 1.4s ease;
}

#prompt.on {
  opacity: 0.88;
}

#prompt .cursor {
  display: inline-block;
  margin-left: 0.2em;
  color: #f4ecdc;
  animation: blink 1.06s steps(1, end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Start screen: the whole page is the button. */
#tap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  outline: none;
  opacity: 0;
  transition: opacity 0.9s ease;
  -webkit-tap-highlight-color: transparent;
}

#tap span {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  font-weight: 400;
  font-size: clamp(13px, 1.5vw, 19px);
  letter-spacing: 0.32em;
  padding-left: 0.32em; /* balances the trailing letter-spacing so the text stays centered */
  color: #e8e1d4;
  animation: breathe 2.8s ease-in-out infinite;
}

#tap.on {
  opacity: 1;
}

#tap[hidden] {
  display: none;
}

#tap.gone {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.95; }
}
