:root {
  color-scheme: dark;
  --background: #000;
  --surface: rgba(13, 13, 13, .94);
  --ink: #f5f5f7;
  --muted: rgba(245, 245, 247, .58);
  --accent: #fff;
  --border: rgba(255, 255, 255, .11);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow-x: hidden;
  background: #000;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), #000 84%), url("/gate-wave.webp") 50% 35% / cover no-repeat;
  opacity: .46;
  filter: grayscale(1) contrast(1.13);
  transform: scale(1.04);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 52% 56% at 50% 45%, transparent 0, rgba(0, 0, 0, .52) 70%, #000 100%);
}

.verification {
  position: relative;
  width: min(100%, 438px);
  padding: 29px 32px 25px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(20, 20, 20, .97), rgba(7, 7, 7, .97));
  box-shadow: 0 42px 110px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .035);
  animation: card-in .45s cubic-bezier(.22, 1, .36, 1) both;
}
.verification::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 190px;
  top: -150px;
  right: -60px;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  filter: blur(55px);
}
.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 32px; color: #fff; font-size: 13px; font-weight: 750; letter-spacing: .14em; }
.brand-mark { width: 24px; height: 24px; flex: none; background: currentColor; mask: url("/real-logo.svg") center / contain no-repeat; -webkit-mask: url("/real-logo.svg") center / contain no-repeat; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.card-kicker { display: inline-flex; align-items: center; gap: 9px; min-height: 28px; margin: 0; padding: 0 11px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 100px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .7); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; font-weight: 700; letter-spacing: .11em; white-space: nowrap; }
.kicker-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .09); }
.card-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .055); color: #fff; transition: background .25s ease, border-color .25s ease; }
.card-icon svg { width: 26px; height: 26px; }
h1 { margin: 0; font-size: clamp(31px, 8vw, 39px); font-weight: 660; line-height: 1.03; letter-spacing: -.052em; }
.description { max-width: 330px; margin: 13px 0 27px; color: var(--muted); font-size: 14px; line-height: 1.56; letter-spacing: -.006em; }

.challenge-area { min-height: 69px; display: flex; align-items: center; justify-content: center; }
.challenge-area.is-compact { min-height: 140px; }
#turnstile-mount { width: 100%; min-width: 0; display: flex; justify-content: center; }
.challenge-skeleton { width: 100%; max-width: 300px; min-height: 69px; padding: 12px; display: flex; align-items: center; gap: 13px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 6px; background: #111; }
.is-compact .challenge-skeleton { width: 150px; height: 140px; flex-direction: column; justify-content: center; }
.is-compact .skeleton-lines { width: 80px; flex: none; }
.challenge-skeleton[hidden] { display: none; }
.skeleton-square { width: 27px; height: 27px; flex: none; border: 2px solid rgba(255, 255, 255, .3); border-radius: 4px; }
.skeleton-lines { display: grid; gap: 8px; flex: 1; }
.skeleton-lines i { height: 7px; border-radius: 5px; background: rgba(255, 255, 255, .13); animation: breathe 1.3s ease-in-out infinite alternate; }
.skeleton-lines i:last-child { width: 60%; }
.status { min-height: 30px; margin: 13px 2px 0; display: flex; align-items: flex-start; gap: 8px; color: rgba(255, 255, 255, .45); font-size: 12px; line-height: 1.45; }
.status[hidden] { display: none; }
.status::before { content: ""; width: 5px; height: 5px; flex: none; margin-top: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.status[data-tone="error"] { color: #ffaaa3; }
.status[data-tone="error"]::before { background: #ff8e86; }
.status[data-tone="success"] { color: #fff; }
.status[data-tone="success"]::before { background: #fff; }
.status a { color: #fff; font-weight: 700; }
.retry-button { width: 100%; min-height: 46px; margin-top: 5px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 14px; background: #fff; color: #000; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.retry-button[hidden] { display: none; }
.retry-button:hover { background: rgba(255, 255, 255, .88); transform: translateY(-1px); }
.retry-button:focus-visible, .status a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.retry-button span { font-size: 18px; }
.card-footer { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .36); font-size: 11px; }
.footer-lock { color: rgba(255, 255, 255, .58); font-size: 15px; }
.noscript-note { padding: 11px; border-radius: 9px; background: rgba(255, 173, 103, .12); color: #ffd2a3; font-size: 12px; line-height: 1.5; }
.verification.is-success .card-icon { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); }
.verification.is-success .challenge-area { display: none; }

@keyframes breathe { from { opacity: .4; } to { opacity: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) {
  body { padding: 15px; }
  .verification { padding: 25px 20px 21px; border-radius: 19px; }
  .brand { margin-bottom: 28px; }
  .card-header { margin-bottom: 23px; }
  .description { margin-bottom: 22px; }
  .challenge-area { margin-inline: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
