/* Cosmetic listening-room gate. The proposal remains a static page; this is
   a friendly speed bump for a link in circulation, not an authentication
   boundary. */

html.access-pending,
html.access-pending body {
  overflow: hidden;
}

html.access-pending body > * {
  visibility: hidden;
}

html.access-pending body > #accessGate {
  visibility: visible;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 22%, rgba(134, 226, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 22% 78%, rgba(246, 95, 184, 0.12), transparent 26rem),
    var(--bg);
}

.access-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.62;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='240' viewBox='0 0 420 240'%3E%3Cg fill='none' stroke='%23f2ecdc' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M0 24 Q 52 10 105 26 T 210 22 T 315 28 T 420 24'/%3E%3Cpath d='M0 64 Q 60 48 118 66 T 228 60 T 330 68 T 420 64'/%3E%3Cpath d='M0 104 Q 48 90 100 106 T 205 100 T 312 108 T 420 104'/%3E%3Cpath d='M0 144 Q 56 128 112 146 T 220 140 T 322 148 T 420 144'/%3E%3Cpath d='M0 184 Q 50 170 104 186 T 212 180 T 316 188 T 420 184'/%3E%3Cpath d='M0 224 Q 58 208 116 226 T 224 220 T 326 228 T 420 224'/%3E%3C/g%3E%3C/svg%3E");
}

.access-card {
  position: relative;
  width: min(100%, 450px);
  padding: clamp(28px, 6vw, 54px);
  text-align: center;
  background: rgba(14, 10, 22, 0.94);
  border: 1px solid var(--line);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px,
    100% calc(100% - 18px), calc(100% - 18px) 100%,
    18px 100%, 0 calc(100% - 18px), 0 18px);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.7);
}

.access-card::before,
.access-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--holo);
  opacity: 0.72;
}

.access-card::before { top: 0; }
.access-card::after { bottom: 0; transform: scaleX(0.55); }

.access-venue-logo {
  width: 76px;
  height: 104px;
  margin: 0 auto 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(255, 230, 161, 0.13));
}

.access-card .kicker { margin-bottom: 12px; }

.access-card h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.04;
}

.access-card .access-copy {
  max-width: 32ch;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.access-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 28px;
}

.access-form input,
.access-form button {
  min-height: 48px;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-form input {
  min-width: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(242, 236, 220, 0.04);
  border: 1px solid var(--line);
  outline: none;
}

.access-form input:focus-visible {
  border-color: var(--cyan);
  outline: 2px solid rgba(134, 226, 255, 0.32);
  outline-offset: 2px;
}

.access-form input.bad {
  border-color: var(--magenta);
  animation: access-shake 0.28s ease;
}

.access-form button {
  cursor: pointer;
  padding: 12px 18px;
  color: var(--bg);
  background: var(--holo);
  background-size: 220% 100%;
  border: 0;
}

.access-form button:hover,
.access-form button:focus-visible { background-position: 100% 0; }

.access-error {
  min-height: 1.5em;
  margin-top: 9px;
  color: var(--magenta);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@keyframes access-shake {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(-5px); }
  66% { transform: translateX(5px); }
}

@media (max-width: 480px) {
  .access-form { grid-template-columns: 1fr; }
  .access-form input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .access-form input.bad { animation: none; }
}
