:root {
  --telegram: #2aabee;
  --telegram-dark: #229ed9;
  --text: #222;
  --muted: #707579;
  --line: #e7e9eb;
  --surface: #fff;
  --page: #f4f5f6;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.open-card {
  width: min(420px, 100%);
  padding: 38px 28px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}

.telegram-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--telegram);
}

.telegram-logo svg {
  width: 52px;
  height: 52px;
  fill: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--telegram-dark);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.description {
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.primary-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--telegram-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.primary-button:active {
  transform: scale(0.99);
}

.primary-button.is-opening {
  opacity: 0.76;
}

.fallback-link {
  display: inline-block;
  margin-top: 17px;
  color: var(--telegram-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.instruction {
  margin: 26px 0 0;
  padding: 16px;
  border-radius: 10px;
  background: #f1f8fc;
  color: #536067;
  font-size: 14px;
  line-height: 1.45;
}

.age-note {
  margin: 18px 0 0;
  color: #a0a5a8;
  font-size: 12px;
}

@media (max-width: 420px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .open-card {
    padding: 32px 20px 26px;
    border-radius: 14px;
  }
}
