body.access-locked {
  overflow: hidden;
}

#protected-content {
  display: none;
}

body.access-open #protected-content {
  display: block;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(0, 0, 0, 0.28), transparent 24%),
    rgba(18, 14, 11, 0.88);
  backdrop-filter: blur(12px);
}

body.access-open .access-gate {
  display: none;
}

.access-card {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 250, 243, 0.96);
  color: #201b17;
  border: 1px solid rgba(32, 27, 23, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.access-card h1,
.access-card p {
  margin: 0;
}

.access-card h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
}

.access-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8f4a2a;
}

.access-copy {
  margin-top: 14px;
  color: #64574d;
  line-height: 1.6;
}

.access-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.access-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(32, 27, 23, 0.18);
  background: #fff;
  font: inherit;
}

.access-button {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  background: #8f4a2a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.access-note,
.access-error {
  font-size: 0.92rem;
  line-height: 1.5;
}

.access-note {
  margin-top: 12px;
  color: #6d5b4f;
}

.access-error {
  min-height: 1.2em;
  color: #9c2f25;
}
