/* gate.css — OTP identity gate + accept modal. Matches the proposal's
   indigo/gold palette (Cormorant Garamond headings, Inter Tight body). */

#proposalRoot[aria-hidden="true"] { display: none; }

#gate, #acceptModal {
  position: fixed; inset: 0; z-index: 2147483647;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 100% at 50% 30%, #40406c 0%, #2d2d51 55%, #16162e 100%);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  padding: 24px;
}
#acceptModal { background: rgba(22, 22, 46, 0.82); backdrop-filter: blur(4px); }
/* The ID rule above would otherwise beat the UA [hidden] rule; keep hidden working. */
#acceptModal[hidden] { display: none; }

.gate-card { width: min(440px, 92vw); text-align: center; }
.gate-logo { height: 30px; width: auto; margin: 0 auto 28px; display: block;
  filter: drop-shadow(0 0 26px rgba(212, 175, 55, 0.32)); }
.gate-ey { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: #d4af37; font-weight: 600; margin-bottom: 14px; }
.gate-card h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;
  font-size: 30px; color: #f5f5f7; margin: 0 0 10px; letter-spacing: -0.01em; }
.gate-card p { font-size: 13.5px; line-height: 1.6; color: rgba(245, 245, 247, 0.62);
  margin: 0 0 22px; font-weight: 300; }
.gate-card p strong { color: #f5f5f7; font-weight: 500; }
.gate-hint { color: rgba(245, 245, 247, 0.45); }

.gate-card form { display: flex; gap: 8px; }
.gate-card input {
  flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(196, 200, 236, 0.3); border-radius: 7px;
  padding: 13px 15px; color: #f5f5f7; font-size: 14px; outline: none;
  transition: border-color 0.15s ease; font-family: inherit;
}
#codeInput { text-align: center; letter-spacing: 0.5em; font-size: 20px; font-weight: 600; }
.gate-card input::placeholder { color: rgba(245, 245, 247, 0.38); letter-spacing: normal; }
.gate-card input:focus { border-color: #d4af37; }

.gate-card button[type="submit"], #acceptConfirmBtn, #acceptClose {
  background: #d4af37; color: #2d2d51; border: none; border-radius: 7px;
  padding: 0 24px; height: 46px; font-weight: 600; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; cursor: pointer; font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease; white-space: nowrap;
}
.gate-card button[type="submit"]:hover:not(:disabled),
#acceptConfirmBtn:hover:not(:disabled), #acceptClose:hover { background: #e6cd72; transform: translateY(-1px); }
.gate-card button:disabled { opacity: 0.55; cursor: default; }

.gate-msg { color: #ffb3a0; font-size: 12.5px; margin-top: 14px; min-height: 16px; line-height: 1.5; }
.gate-msg.ok { color: #9ad9b0; }

.gate-link { background: none; border: none; color: rgba(245, 245, 247, 0.55);
  font-size: 12px; cursor: pointer; margin: 16px 10px 0; text-decoration: underline;
  font-family: inherit; padding: 0; }
.gate-link:hover { color: #d4af37; }

.gate-ft { margin-top: 32px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245, 245, 247, 0.32); }

/* Accept modal */
.gate-as { font-size: 13px; color: rgba(245, 245, 247, 0.7); }
.gate-actions { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
#acceptDone button, .gate-actions button { height: 46px; }
.gate-secondary { background: transparent; color: rgba(245, 245, 247, 0.75);
  border: 1px solid rgba(196, 200, 236, 0.3); border-radius: 7px; padding: 0 24px;
  font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; font-family: inherit; }
.gate-secondary:hover { border-color: #f5f5f7; color: #f5f5f7; }

@keyframes gateShake { 10%,90%{transform:translateX(-2px)} 30%,70%{transform:translateX(4px)} 50%{transform:translateX(-6px)} }
.gate-card.shake { animation: gateShake 0.4s ease; }
@media (prefers-reduced-motion: reduce) { .gate-card.shake { animation: none; } }
