html.locked body > *:not(.vtd-gate) { visibility: hidden; }
html.locked, html.locked body { overflow: hidden; }

.vtd-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg, #fff);
  cursor: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.vtd-gate--out { opacity: 0; pointer-events: none; }

.vtd-gate-card {
  width: 100%;
  max-width: 460px;
  text-align: left;
  font-family: 'Barlow', system-ui, sans-serif;
  color: var(--fg, #111);
}

.vtd-gate-eyebrow {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted, #666);
  margin: 0 0 16px;
}

.vtd-gate-title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.vtd-gate-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-muted, #555);
  margin: 0 0 28px;
}

.vtd-gate-body a {
  color: var(--fg, #111);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vtd-gate-form { display: flex; flex-direction: column; gap: 12px; }

.vtd-gate-label {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted, #666);
}

.vtd-gate-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--border, #ddd);
  border-radius: 4px;
  background: transparent;
  color: var(--fg, #111);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.vtd-gate-input:focus {
  outline: none;
  border-color: var(--fg, #111);
}

.vtd-gate-submit {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 18px;
  border: 1px solid var(--fg, #111);
  background: var(--fg, #111);
  color: var(--bg, #fff);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.vtd-gate-submit:hover {
  background: transparent;
  color: var(--fg, #111);
}

.vtd-gate-error {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #c63a3a;
}

.vtd-gate-back {
  margin: 32px 0 0;
  font-size: 0.85rem;
}

.vtd-gate-back a {
  color: var(--fg-muted, #666);
  text-decoration: none;
}

.vtd-gate-back a:hover { color: var(--fg, #111); }
