/* Telegram-style "Join channel" landing page */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --tg-blue: #3390ec;
  --tg-blue-hover: #2b82db;
  --ink: #1f2733;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--ink);
  /* Olive/sage green backdrop matched to the source photo: a bright glow around the
     upper-center, a warm yellow-green cast toward the right, deeper green pooling at
     the bottom-center, and a soft vignette darkening the corners. Layered gradients
     (painted top layer first) reproduce the photo's non-linear lighting. */
  background:
    radial-gradient(60% 60% at 50% 22%, rgba(232, 241, 223, 0.92) 0%, rgba(232, 241, 223, 0) 68%),
    radial-gradient(44% 42% at 50% 104%, rgba(107, 154, 123, 0.45) 0%, rgba(107, 154, 123, 0) 100%),
    radial-gradient(74% 59% at 50% 43%, rgba(121, 161, 126, 0) 45%, rgba(121, 161, 126, 0.5) 100%),
    linear-gradient(96deg, #cdd6b7 0%, #cbd5ab 55%, #ccd692 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Doodle background layer — the real Telegram "cats & dogs" pattern, extracted
   from the source photo and tiled (native tile is 587×1205; shown here at ~half
   scale to match the density in the photo). */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/doodles.png");
  background-repeat: repeat;
  background-size: 294px 604px;
}

/* Header */
.header {
  position: relative;
  z-index: 2;
  background: #fff;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tg-logo {
  width: 34px;
  height: 34px;
  display: block;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #000;
}

/* Card stage */
.stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 20px;
  min-height: calc(100vh - 64px);
}

.card {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 44px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(40, 60, 40, 0.18);
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  background: #eee;
}

.name {
  font-size: 30px;
  font-weight: 800;
  margin: 22px 0 30px;
  letter-spacing: -0.3px;
}

.instructions {
  margin: 0 auto 30px;
  line-height: 1.7;
  font-size: 17px;
  color: #2a3340;
}
.instructions p {
  margin: 6px 0;
}
.instructions .lead {
  font-weight: 700;
}
.instructions .join-line {
  margin-top: 18px;
}
.instructions strong {
  font-weight: 700;
}

/* Join button */
.join-btn {
  display: inline-block;
  background: var(--tg-blue);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 15px 46px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.05s ease;
  box-shadow: 0 6px 16px rgba(51, 144, 236, 0.35);
}
.join-btn:hover {
  background: var(--tg-blue-hover);
}
.join-btn:active {
  transform: translateY(1px);
}

@media (max-width: 480px) {
  .card {
    padding: 34px 24px 38px;
  }
  .name {
    font-size: 26px;
  }
  .instructions {
    font-size: 16px;
  }
}
