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

html, body {
  height: 100%;
}

body {
  background: #fff;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.boot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.flash {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 5;
}

.curtain {
  position: fixed;
  inset: 0;
  background: #000;
  transform: scaleY(0);
  transform-origin: top;
  animation: curtain-down 0.6s ease-in-out forwards;
  z-index: 1;
}

.exit {
  position: fixed;
  top: 24px;
  left: 24px;
  font-family: "SF Mono", Menlo, Monaco, monospace;
  font-size: 12px;
  color: #888;
  text-decoration: none;
  border: none;
  background: none;
  z-index: 2;
}

.exit:hover {
  color: #fff;
}

.content {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.brand {
  display: flex;
  flex-direction: column;
}

.welcome-block {
  display: none;
  flex-direction: column;
  align-items: center;
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Monaco, monospace;
  color: #fff;
}

.welcome-block.fade-out {
  transition: opacity 400ms ease;
  opacity: 0;
}

.welcome-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.welcome-name {
  font-size: 14px;
  color: #ccc;
}

.line {
  font-family: "Helvetica Bold", Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation-fill-mode: forwards;
}

.line + .line {
  margin-top: 4px;
}

.line-1 {
  animation: reveal-line 0.3s steps(3, end) forwards;
  animation-delay: 0.6s;
}

.line-2 {
  animation: reveal-line 1s steps(10, end) forwards;
  animation-delay: 0.9s;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.member-dot {
  width: 16.4px;
  height: 16.4px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  padding: 0;
  opacity: 0;
  transform: scale(0.4);
  animation: dot-in 0.6s ease forwards;
  transition: filter 0.15s ease, opacity 0.3s ease;
  will-change: transform;
}

.member-dot:hover {
  filter: brightness(1.3);
}

.member-dot.settled {
  animation: none;
  opacity: 1;
  transform: scale(2);
}

.member-dot.dimmed {
  opacity: 0.35;
}

.member-dot.red {
  background: #ff3b30;
  animation-delay: 1.9s;
}

.member-dot.green {
  background: #34c759;
  animation-delay: 2.05s;
}

.member-dot.blue {
  background: #007aff;
  animation-delay: 2.2s;
}

.passphrase-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 0;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.35s ease, max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.passphrase-panel.open {
  width: 180px;
  max-height: 160px;
  margin-top: 16px;
  opacity: 1;
}

.passphrase-label {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Monaco, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 8px;
}

.underline-input {
  width: 160px;
  background: none;
  border: none;
  border-bottom: 1px solid #fff;
  border-radius: 0;
  color: #fff;
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Monaco, monospace;
  font-size: 14px;
  text-align: center;
  padding: 4px 0;
  outline: none;
}

.underline-input:disabled {
  color: #888;
  border-bottom-color: #888;
}

.denied {
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Monaco, monospace;
  font-size: 11px;
  color: #888;
  margin-top: 10px;
  visibility: hidden;
}

.denied.visible {
  visibility: visible;
}

.enter {
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  color: #fff;
  font-family: "IBM Plex Mono", "SF Mono", Menlo, Monaco, monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.enter:hover {
  color: #888;
}

@keyframes curtain-down {
  to {
    transform: scaleY(1);
  }
}

@keyframes reveal-line {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes dot-in {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(2);
  }
}
