.telegram-entry[hidden] { display: none !important; }

.telegram-entry {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  grid-template-rows: minmax(220px, 42vh) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  color: #123836;
  background: #edf8f5;
  font-family: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

.telegram-entry__visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #123f3d;
}

.telegram-entry__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(.82) brightness(.82);
}

.telegram-entry__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 48, 46, .08), rgba(8, 48, 46, .54));
}

.telegram-entry__brand {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  letter-spacing: .13em;
  font-size: 14px;
}

.telegram-entry__brand .brand__mark { transform: scale(.84); transform-origin: left center; }

.telegram-entry__orbit {
  position: absolute;
  border: 1px solid rgba(171, 245, 231, .38);
  border-radius: 50%;
}

.telegram-entry__orbit--one { width: 180px; height: 70px; right: -34px; bottom: 56px; transform: rotate(-18deg); }
.telegram-entry__orbit--two { width: 132px; height: 132px; right: 5px; bottom: 24px; }

.telegram-entry__panel {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding: 30px 24px max(24px, env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: #fbfefd;
  box-shadow: 0 -18px 52px rgba(15, 70, 66, .16);
}

.telegram-entry__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #0b9188;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.telegram-entry h1 {
  max-width: 330px;
  margin: 0;
  font-size: clamp(30px, 9vw, 44px);
  line-height: .98;
  letter-spacing: -.055em;
}

.telegram-entry__panel > p:not(.telegram-entry__status) {
  max-width: 430px;
  margin: 18px 0 0;
  color: #53716f;
  font-size: 16px;
  line-height: 1.5;
}

.telegram-entry__action {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #0a9b91, #087e78);
  box-shadow: 0 13px 30px rgba(7, 130, 122, .23);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.telegram-entry__action:active { transform: translateY(1px) scale(.995); }
.telegram-entry__action:disabled { cursor: wait; opacity: .82; box-shadow: none; }
.telegram-entry__action svg { width: 22px; height: 22px; fill: currentColor; }

.telegram-entry__status {
  min-height: 42px;
  margin: 12px 2px 0;
  color: #5d7674;
  font-size: 13px;
  line-height: 1.45;
}

.telegram-entry__route {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #496865;
  font-size: 12px;
}

.telegram-entry__route span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.telegram-entry__route b { color: #0b9188; font-size: 11px; }
.telegram-entry__route i { flex: 1; height: 1px; min-width: 10px; background: #cfe3df; }

.telegram-entry__terms {
  display: inline-flex;
  margin-top: 24px;
  color: #33706c;
  font-size: 13px;
  text-underline-offset: 3px;
}

.telegram-entry__panel > small {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: #78918e;
  font-size: 11px;
  line-height: 1.4;
}

.telegram-entry__panel > small i { width: 7px; height: 7px; border-radius: 50%; background: #18ad91; box-shadow: 0 0 0 4px rgba(24, 173, 145, .12); }
.telegram-entry.is-complete .telegram-entry__action { background: #147a70; }
body.telegram-entry-active { overflow: hidden; }
.telegram-entry-active .startup-shell,
.telegram-entry-active .app-stage { display: none; }

@media (min-width: 720px) {
  .telegram-entry { grid-template-columns: minmax(320px, 46%) minmax(380px, 540px); grid-template-rows: 1fr; justify-content: center; background: #dcefeb; }
  .telegram-entry__visual { min-height: 100vh; min-height: 100dvh; }
  .telegram-entry__panel { align-self: center; margin: 24px; padding: 40px; border-radius: 30px; box-shadow: 0 22px 72px rgba(15, 70, 66, .18); }
}

@media (max-height: 690px) and (max-width: 719px) {
  .telegram-entry { grid-template-rows: minmax(160px, 31vh) minmax(0, 1fr); }
  .telegram-entry__panel { margin-top: -22px; padding-top: 24px; }
  .telegram-entry__panel > p:not(.telegram-entry__status) { margin-top: 12px; font-size: 14px; }
  .telegram-entry__action { margin-top: 16px; min-height: 52px; }
  .telegram-entry__terms { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .telegram-entry *, .telegram-entry *::before, .telegram-entry *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
