/* Soft gate for /abcs — client-side PIN only (not real auth). */

html.abcs-pending-gate body {
  visibility: hidden;
}

html.abcs-pending-gate body.abcs-gate-locked {
  visibility: visible;
}

.abcs-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(900px 420px at 20% 0%, #e4ece8 0%, transparent 55%),
    radial-gradient(800px 380px at 100% 10%, #e7eef5 0%, transparent 50%),
    #f4f6f8;
  color: #1c2430;
  font-family: "Figtree", system-ui, sans-serif;
}

.abcs-gate[hidden] {
  display: none !important;
}

.abcs-gate__panel {
  width: min(22rem, 100%);
  text-align: center;
}

.abcs-gate__label {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.abcs-gate__hint {
  margin-top: 0.4rem;
  color: #5a6572;
  font-size: 0.9rem;
}

.abcs-gate__slots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.75rem 0 1.5rem;
}

.abcs-gate__slot {
  width: 0.85rem;
  height: 2.4rem;
  border-radius: 0.2rem;
  border: 1.5px solid #c5d0da;
  background: #fff;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.abcs-gate__slot.is-filled {
  background: #2f6f5e;
  border-color: #2f6f5e;
  transform: translateY(-1px);
}

.abcs-gate__slot.is-error {
  border-color: #b4413a;
  background: #f8e8e6;
}

.abcs-gate__pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  max-width: 16rem;
  margin: 0 auto;
}

.abcs-gate__key {
  appearance: none;
  border: 1px solid #d5dde5;
  background: #fff;
  color: #1c2430;
  border-radius: 0.55rem;
  min-height: 3.1rem;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.abcs-gate__key:hover {
  border-color: #2f6f5e;
}

.abcs-gate__key:active {
  background: #eef3f1;
}

.abcs-gate__key--ghost {
  color: #5a6572;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.abcs-gate__error {
  min-height: 1.25rem;
  margin-top: 0.9rem;
  color: #b4413a;
  font-size: 0.85rem;
  font-weight: 600;
}

.abcs-gate__back {
  display: inline-block;
  margin-top: 1.5rem;
  color: #5a6572;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.abcs-gate__back:hover {
  color: #2f6f5e;
}

body.abcs-gate-locked {
  overflow: hidden;
}

body.abcs-gate-locked > :not(.abcs-gate) {
  visibility: hidden;
}
