:root {
  --bg: #0b1220;
  --card: #121a2b;
  --text: #f4f7fb;
  --muted: #9aa8c0;
  --accent: #2f6fed;
  --accent-hover: #255ad0;
  --danger: #ff6b6b;
  --ok: #3dd68c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;
}

.site[aria-hidden="true"] {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.92);
  backdrop-filter: blur(8px);
}

.gate.is-hidden {
  display: none;
}

.gate__card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.gate__icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
}

.gate__card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.gate__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.gate__status {
  min-height: 22px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 14px;
}

.gate__status.is-ok { color: var(--ok); }
.gate__status.is-wait { color: #f0c14b; }

.gate__btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

.gate__btn:hover { background: var(--accent-hover); }
.gate__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.gate__hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
