/* Страница верификации — mobile-first, тема Telegram */

:root {
  --bg: var(--tg-theme-bg-color, #0f172a);
  --card: var(--tg-theme-secondary-bg-color, #1e293b);
  --text: var(--tg-theme-text-color, #f1f5f9);
  --muted: var(--tg-theme-hint-color, #94a3b8);
  --accent: var(--tg-theme-button-color, #3b82f6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
}

.state { text-align: center; max-width: 420px; }
.hidden { display: none !important; }

.state__icon { font-size: 52px; margin-bottom: 12px; }
.state__title { font-size: 20px; margin: 0 0 10px; }
.state__text { color: var(--muted); margin: 0 0 20px; }
.state__hint { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

.spinner {
  width: 38px; height: 38px; margin: 0 auto 16px;
  border: 3px solid rgba(148, 163, 184, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}

/* Touch-таргет ≥ 44px */
.idbox {
  min-height: 52px;
  padding: 14px 24px;
  background: var(--card);
  color: var(--text);
  border: none;
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 20px;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: all;
}
.idbox:active { opacity: 0.8; }
