html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  user-select: none;
}

body {
  font-family: "Press Start 2P", monospace;
}

canvas {
  display: block;
  touch-action: none;
}

#cryptoTextContainer {
  position: fixed;
  bottom: 26px;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.2s linear;
}

#cryptoText,
#cursor {
  display: inline-block;
  color: #4db8ff;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(12px, 1.4vw, 24px);
  letter-spacing: 3px;
  text-shadow:
    0 0 6px rgba(77, 184, 255, 0.9),
    0 0 16px rgba(77, 184, 255, 0.55);
}

#cursor {
  margin-left: 6px;
  animation: blink 0.8s infinite;
}

#actions {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  z-index: 12;
  display: grid;
  justify-items: center;
  gap: 14px;
}

#startButton {
  min-width: min(42vw, 430px);
  padding: 34px 72px;
  border: 2px solid rgba(77, 184, 255, 0.82);
  background: rgba(2, 18, 28, 0.2);
  color: #4db8ff;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(20px, 2.2vw, 34px);
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 14px rgba(77, 184, 255, 0.4),
    inset 0 0 10px rgba(77, 184, 255, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
  animation: buttonAura 3s infinite ease-in-out;
}

#startButton:hover {
  background: #4db8ff;
  color: #000;
  box-shadow:
    0 0 22px rgba(77, 184, 255, 1),
    0 0 56px rgba(77, 184, 255, 0.8);
}

#startButton:active {
  transform: scale(0.985);
}

#startButton:disabled {
  cursor: wait;
  opacity: 0.7;
}

#botButton {
  color: rgba(77, 184, 255, 0.9);
  font-size: 10px;
  text-decoration: none;
  padding: 10px 12px;
  text-shadow: 0 0 8px rgba(77, 184, 255, 0.7);
}

#botButton:hover,
#botButton:focus-visible {
  color: #fff;
}

#statusText {
  min-height: 14px;
  max-width: min(90vw, 680px);
  margin: 0;
  color: #ff6b6b;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes buttonAura {
  0%,
  100% {
    box-shadow:
      0 0 12px rgba(77, 184, 255, 0.35),
      0 0 28px rgba(77, 184, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 22px rgba(77, 184, 255, 1),
      0 0 60px rgba(77, 184, 255, 0.78);
  }
}

@media (max-width: 700px) {
  #startButton {
    width: calc(100% - 56px);
    min-width: 0;
    padding: 26px 20px;
    font-size: 22px;
  }

  #actions {
    width: 100%;
    bottom: 92px;
  }

  #cryptoText,
  #cursor {
    font-size: 12px;
    letter-spacing: 2px;
  }
}
