/* Arc web sign-in gate (see arc-gate.js).
   A dark card that covers a page until the visitor is signed in with a verified
   Arc account. Self-contained: the tokens below fall back to literal values so
   the gate looks right on any page that includes this file. */

.gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.gate[hidden] { display: none; }

.gate-scrim {
  position: absolute; inset: 0;
  background: rgba(6, 6, 10, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gate-card {
  position: relative;
  width: min(440px, 100%);
  padding: 2rem 1.9rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--bg-elev, #15151c);
  color: var(--text, #f6f6f8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
  text-align: center;
  animation: gate-pop 0.22s ease;
}
@keyframes gate-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.gate-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.35rem;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
  color: inherit; text-decoration: none;
}
.gate-brand img { display: block; border-radius: 7px; }
.gate-brand span {
  background: var(--accent-grad, linear-gradient(120deg, #ff8a3d 0%, #ff5724 46%, #ec1d36 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.gate-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: rgba(255, 87, 36, 0.14);
  color: var(--accent, #ff5724);
}
.gate-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.gate-title { margin: 0 0 0.55rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.gate-copy { margin: 0 0 1.35rem; font-size: 0.95rem; line-height: 1.55; color: var(--text-dim, #b6b6c2); }
.gate-copy strong { color: var(--text, #f6f6f8); font-weight: 600; }

.gate-loading {
  margin: 0; padding: 1.6rem 0 2rem;
  font-size: 0.95rem; color: var(--text-dim, #b6b6c2);
}

.gate-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.gate-btn {
  display: block; width: 100%;
  padding: 0.78rem 1.1rem;
  border: 0; border-radius: 999px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  color: #fff; text-decoration: none; cursor: pointer;
  background: var(--accent-grad, linear-gradient(120deg, #ff8a3d 0%, #ff5724 46%, #ec1d36 100%));
}
.gate-btn:hover { filter: brightness(1.07); }
.gate-btn:disabled { opacity: 0.6; cursor: default; filter: none; }
.gate-btn--ghost { background: rgba(255, 255, 255, 0.1); }

.gate-msg { margin: 0.85rem 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--text-dim, #b6b6c2); }
.gate-msg:empty { margin: 0; }
.gate-msg.is-ok { color: #5ad19a; }
.gate-msg.is-error { color: #ff7a6b; }

.gate-fine { margin: 1.1rem 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--text-faint, #80808d); }
.gate-link {
  padding: 0; border: 0; background: none;
  font: inherit; color: var(--text-dim, #b6b6c2); text-decoration: underline; cursor: pointer;
}
.gate-link:hover { color: var(--text, #f6f6f8); }

.gate-legal {
  display: flex; justify-content: center; gap: 1.1rem;
  margin-top: 1.4rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
}
.gate-legal a { color: var(--text-faint, #80808d); text-decoration: none; }
.gate-legal a:hover { color: var(--text, #f6f6f8); }

/* The page behind the gate: frozen, blurred, and not interactive. The gate
   itself is a direct child of <body>, so it stays sharp. */
body.is-gated { overflow: hidden; }
body.is-gated > .nav,
body.is-gated > main,
body.is-gated > footer,
body.is-gated > .modal,
body.is-gated > .toast {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 480px) {
  .gate-card { padding: 1.7rem 1.3rem 1.2rem; border-radius: 16px; }
  .gate-title { font-size: 1.3rem; }
}
