* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #08070c;
  color: #e9d8e7;
  font-family: system-ui, sans-serif;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
a,
button {
  position: fixed;
  top: 22px;
  border: 1px solid #ffffff24;
  border-radius: 22px;
  background: #18101c88;
  color: #d3b9d1;
  text-decoration: none;
  padding: 10px 16px;
  font: 13px system-ui;
  backdrop-filter: blur(8px);
}
a {
  left: 22px;
}
button {
  right: 22px;
  cursor: pointer;
}
.signature {
  position: fixed;
  bottom: 26px;
  width: 100%;
  text-align: center;
  letter-spacing: 7px;
  font-size: 13px;
  color: #b394ab;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .signature {
    letter-spacing: 4px;
  }
}
.gate {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  width: min(340px, calc(100% - 48px));
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.1s,
    transform 1.1s;
  text-align: center;
  z-index: 5;
}
.gate.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}
.gate input {
  width: 100%;
  padding: 17px 20px;
  border: 1px solid #e8afd65c;
  border-radius: 16px;
  background: #130d18b8;
  color: #f4dbea;
  backdrop-filter: blur(12px);
  font: 16px system-ui;
  text-align: center;
  outline: none;
}
.gate input::placeholder {
  color: #bd9db5;
}
.gate input:focus {
  border-color: #eba7d4;
}
.gate button {
  position: static;
  margin-top: 16px;
  padding: 10px 24px;
}
.gate p {
  font-size: 12px;
  color: #d49abb;
  min-height: 18px;
}
.digits {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.gate .digit {
  width: 64px;
  height: 76px;
  padding: 0;
  font-size: 28px;
  border-radius: 14px;
  caret-color: #f4bbdc;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.digits.error {
  animation: shake 0.32s;
}
.digits.error .digit {
  border-color: #b77392;
}
@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
