#gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top, #1a2540 0, #050710 45%, #000);
  color: #f7fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#gate[hidden],
#root[hidden] {
  display: none !important;
}

.gate-card {
  width: min(380px, 100%);
  padding: 32px 28px 26px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #1e40af59, #0f172afa);
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 22px 44px #000000f2, 0 0 0 1px #0f172ae6;
  backdrop-filter: blur(22px);
}

.gate-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.gate-title {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-pin-wrap {
  position: relative;
  margin-bottom: 18px;
}

.gate-pin {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.gate-dot {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0f172ad9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.gate-dot.filled::after {
  background: #4ade80;
  box-shadow: 0 0 10px #22c55ecc;
}

.gate-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
}

.gate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #9ca3af;
  cursor: pointer;
  user-select: none;
}

.gate-row input {
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
  cursor: pointer;
}

.gate-error {
  min-height: 18px;
  margin: 0 0 12px;
  font-size: 12px;
  color: #f97373;
}

.gate-btn {
  width: 100%;
  border: 1px solid rgba(34, 197, 94, 0.55);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4ade80;
  background: radial-gradient(circle at top, #22c55e40, #0f172afa);
  cursor: pointer;
}

.gate-btn:hover {
  border-color: #4ade80;
  box-shadow: 0 0 18px #22c55e38;
}

.gate-card.shake {
  animation: gate-shake 0.38s ease;
}

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
