*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #fafafa;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.word-container {
  position: absolute;
  display: flex;
  gap: 0;
  pointer-events: none;
}

.letter {
  display: inline-block;
  font-weight: 800;
  line-height: 1;
  transition: color 0.3s;
  will-change: transform, opacity;
}

.letter.idle {
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.letter.burst {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.7s ease;
}

.letter.gather {
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.5s ease;
}

#hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  letter-spacing: 0.04em;
}
