:root {
  color-scheme: dark;
  --text: #c8ffd0;
  --green: #39ff5a;
  --green-strong: #9dffad;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

body {
  cursor: pointer;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

.wake-message {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 24px;
  color: var(--green-strong);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 1200ms ease, transform 1200ms ease;
  text-shadow: 0 0 16px rgba(57, 255, 90, 0.9), 0 0 40px rgba(57, 255, 90, 0.45);
}

.wake-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.wake-message span {
  font-size: clamp(20px, 3.2vw, 46px);
  line-height: 1.2;
}

.wake-message strong {
  display: block;
  color: #f0fff2;
  font-size: clamp(38px, 7vw, 96px);
  letter-spacing: 0;
  line-height: 1;
}

.wake-message .typing::after {
  content: "";
  display: inline-block;
  width: 0.6ch;
  height: 0.9em;
  margin-left: 0.12em;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  animation: blink 900ms steps(1) infinite;
  vertical-align: -0.08em;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.rabbit {
  position: fixed;
  left: -140px;
  bottom: 9vh;
  width: 118px;
  height: 74px;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.78)) drop-shadow(0 0 28px rgba(57, 255, 90, 0.28));
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(0.92);
  z-index: 2;
}

.rabbit.running {
  animation: rabbit-run 1300ms linear forwards;
}

.rabbit span {
  position: absolute;
  display: block;
  background: #f5fff6;
}

.rabbit-body {
  left: 22px;
  bottom: 14px;
  width: 62px;
  height: 38px;
  border-radius: 52% 46% 46% 54%;
}

.rabbit-head {
  right: 14px;
  bottom: 34px;
  width: 34px;
  height: 30px;
  border-radius: 50%;
}

.rabbit-tail {
  left: 8px;
  bottom: 32px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.rabbit-ear {
  right: 24px;
  bottom: 58px;
  width: 9px;
  height: 34px;
  border-radius: 999px;
  transform-origin: bottom center;
}

.rabbit-ear-left {
  transform: rotate(-18deg);
}

.rabbit-ear-right {
  right: 12px;
  height: 31px;
  transform: rotate(18deg);
}

.rabbit-leg {
  bottom: 4px;
  height: 11px;
  border-radius: 999px;
  transform-origin: center;
}

.rabbit-leg-front {
  right: 18px;
  width: 36px;
  transform: rotate(-10deg);
  animation: rabbit-leg-front 360ms ease-in-out infinite;
}

.rabbit-leg-back {
  left: 22px;
  width: 44px;
  transform: rotate(12deg);
  animation: rabbit-leg-back 360ms ease-in-out infinite;
}

@keyframes rabbit-run {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.92);
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(100vw + 180px), 0, 0) scale(0.92);
  }
}

@keyframes rabbit-leg-front {
  50% {
    transform: rotate(18deg) translateX(-8px);
  }
}

@keyframes rabbit-leg-back {
  50% {
    transform: rotate(-16deg) translateX(10px);
  }
}
