:root {
  --tg-blue: #4289cf;
  --tg-blue-hover: #3a7ec2;
  --text-dark: #232323;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* green gradient with faint telegram-style doodle pattern */
  background-image: url("assets/pattern.svg"),
    linear-gradient(160deg, #c9d3b2 0%, #bcc99b 45%, #a6bc90 75%, #9bb08e 100%);
  background-repeat: repeat, no-repeat;
  background-size: 360px 360px, cover;
  background-attachment: fixed, fixed;
}

/* top navigation bar */
.topbar {
  background: #ffffff;
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #000;
}

.brand-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* centered card stage */
.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.card {
  background: #ffffff;
  width: 100%;
  max-width: 366px;
  border-radius: 28px;
  padding: 44px 34px 40px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(60, 80, 50, 0.18);
}

.avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.title {
  font-size: 30px;
  font-weight: 800;
  margin-top: 26px;
  letter-spacing: 0.2px;
}

.instructions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.instructions p {
  font-size: 17px;
  line-height: 1.3;
  color: #2b2b2b;
}

.instructions .lead {
  font-weight: 700;
}

.instructions strong {
  font-weight: 700;
}

.join-now {
  margin-top: 6px;
  font-weight: 700;
}

/* join button */
.join-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 46px;
  background: var(--tg-blue);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-radius: 24px;
  transition: background 0.15s ease, transform 0.05s ease;
  box-shadow: 0 4px 12px rgba(66, 137, 207, 0.35);
}

.join-btn:hover {
  background: var(--tg-blue-hover);
}

.join-btn:active {
  transform: translateY(1px);
}

@media (max-width: 420px) {
  .card {
    max-width: 340px;
    padding: 38px 26px 34px;
  }
  .title {
    font-size: 27px;
  }
}
