/*
 * Gate shell styles. Self-contained: no CDN, no external font, no images.
 * The page must render identically with the network cut after the document.
 */

:root {
  color-scheme: light dark;
  --gate-fg: #1a1a1a;
  --gate-bg: #ffffff;
  --gate-muted: #5c5c5c;
  --gate-rule: #d8d8d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gate-fg: #f2f2f2;
    --gate-bg: #121212;
    --gate-muted: #a8a8a8;
    --gate-rule: #333333;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--gate-bg);
  color: var(--gate-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.gate {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  text-align: center;
}

.gate__status {
  margin: 0;
}

.gate__reference {
  margin: 0;
  color: var(--gate-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

.gate__challenge {
  display: flex;
  justify-content: center;
  min-height: 4rem;
}

.gate__retry {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.gate__retry-copy {
  margin: 0;
  color: var(--gate-muted);
  font-size: 0.875rem;
}

.gate__button {
  appearance: none;
  border: 1px solid var(--gate-rule);
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.5rem 1.25rem;
}

.gate__button:hover {
  border-color: var(--gate-muted);
}

.gate__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .gate__button {
    transition: border-color 120ms ease;
  }
}
