* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #06060f;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#hud {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  color: #8a93c4;
  font-size: 13px;
  letter-spacing: 2px;
  pointer-events: none;
}

#hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18%;
  text-align: center;
  color: #5fe8d8;
  font-size: 16px;
  letter-spacing: 3px;
  pointer-events: none;
  opacity: 0.9;
  animation: pulse 1.6s ease-in-out infinite;
  transition: opacity 0.6s;
}

#hint.gone { opacity: 0; animation: none; }

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