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

:root {
  --bg: #0a1018;
  --cy: #00cfe0;
  --cy-dim: #007a8a;
  --cy-glow: rgba(0, 207, 224, 0.22);
  --am: #f0b420;
  --am-dim: #8a6010;
  --am-glow: rgba(240, 180, 32, 0.2);
  --tx: #c4d8e8;
  --tx-lo: #4a6a7e;
  --w2: #1a2a3c;
  --w3: #243448;
  --danger: #c05050;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--tx);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  cursor: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
}

button,
input,
a {
  font: inherit;
  cursor: none;
}

.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.cursor::before,
.cursor::after {
  content: '';
  position: absolute;
  background: var(--cy);
  opacity: 0.7;
}

.cursor::before {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

.cursor::after {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.corner {
  position: fixed;
  width: 18px;
  height: 18px;
  border-color: var(--cy-dim);
  border-style: solid;
  z-index: 10;
  opacity: 0;
  animation: appear 0.4s ease 1.1s both;
}

.corner.tl {
  top: 22px;
  left: 22px;
  border-width: 1px 0 0 1px;
}

.corner.tr {
  top: 22px;
  right: 22px;
  border-width: 1px 1px 0 0;
}

.corner.bl {
  bottom: 22px;
  left: 22px;
  border-width: 0 0 1px 1px;
}

.corner.br {
  bottom: 22px;
  right: 22px;
  border-width: 0 1px 1px 0;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wordmark {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cy);
  text-shadow: 0 0 20px var(--cy-glow);
  margin-bottom: 72px;
  opacity: 0;
  animation: appear 0.4s ease 0.2s both;
}

.wordmark span {
  color: var(--cy-dim);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

.handle-field {
  display: flex;
  align-items: center;
  position: relative;
  opacity: 1;
  animation: appear 0.5s ease 0.5s both;
}

.tilde {
  font-size: clamp(44px, 8vw, 78px);
  font-weight: 300;
  color: var(--cy-dim);
  line-height: 1;
  user-select: none;
  padding-right: 3px;
  transition: color 0.25s, text-shadow 0.25s;
}

.handle-field.has-input .tilde {
  color: var(--cy);
}

.handle-field.available .tilde {
  color: var(--am);
  text-shadow: 0 0 24px var(--am-glow);
}

.handle-input {
  width: clamp(180px, 38vw, 560px);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(44px, 8vw, 78px);
  font-weight: 300;
  color: var(--tx);
  background: none;
  border: none;
  outline: none;
  caret-color: var(--cy);
  letter-spacing: -0.01em;
  line-height: 1;
}

.handle-input::placeholder {
  color: var(--w3);
}

.handle-status {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  height: 18px;
  opacity: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: opacity 0.18s;
}

.handle-status.show {
  opacity: 1;
}

.handle-status.checking {
  color: var(--tx-lo);
}

.handle-status.available {
  color: var(--am);
}

.handle-status.taken {
  color: var(--danger);
}

.claim-btn {
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am);
  background: none;
  border: 1px solid var(--am-dim);
  padding: 10px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, border-color 0.15s, box-shadow 0.15s;
}

.claim-btn.show {
  opacity: 1;
  pointer-events: all;
}

.claim-btn:hover {
  border-color: var(--am);
  box-shadow: 0 0 14px var(--am-glow);
}

.facts {
  margin-top: 80px;
  display: flex;
  gap: 40px;
  opacity: 0;
  animation: appear 0.4s ease 0.9s both;
}

.fact {
  font-size: 11px;
  font-weight: 300;
  color: var(--tx-lo);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact::before {
  content: '· ';
  color: var(--w3);
}

.signin,
.spec {
  position: fixed;
  bottom: 26px;
  z-index: 10;
  font-size: 11px;
  font-weight: 300;
  color: var(--tx-lo);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.15s;
  opacity: 0;
  animation: appear 0.4s ease 1.3s both;
}

.signin {
  right: 26px;
}

.spec {
  left: 26px;
}

.signin:hover,
.spec:hover {
  color: var(--cy-dim);
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}


@media (max-width: 720px) {
  .facts {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 64px;
  }

  .claim-btn {
    position: static;
    transform: none;
    margin-left: 20px;
  }

  .handle-field {
    flex-wrap: wrap;
    justify-content: center;
  }

  .handle-status {
    position: static;
    width: 100%;
    text-align: center;
    margin-top: 16px;
  }

  .spec,
  .signin {
    bottom: 18px;
  }
}
