@font-face {
  font-family: "Kihim";
  src: url("./Kihim-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --gradient-blue-low: rgb(0, 144, 255);
  --gradient-blue-high: rgb(0, 188, 255);
  --button-text: #eefaff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--gradient-blue-low);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--button-text);
  background: var(--gradient-blue-low);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--gradient-blue-high) 0%, rgb(0, 172, 255) 45%, var(--gradient-blue-low) 100%);
  isolation: isolate;
}

.gradient-bg canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.landing-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  padding: 22px 14px;
  place-items: center;
}

.hero {
  position: relative;
  display: flex;
  width: min(100%, 1420px);
  min-height: calc(100vh - 44px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  isolation: isolate;
}

.title-stage {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 1420px);
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0 clamp(14px, 4vw, 56px);
  pointer-events: none;
}

.title-text {
  margin: 0;
  color: #fff;
  font-family: "Kihim", Impact, sans-serif;
  font-size: clamp(5.5rem, 24vw, 15.8rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  filter: none;
  text-shadow: none;
}

.chart-stage {
  position: relative;
  z-index: 2;
  width: min(68vw, 260px);
  aspect-ratio: 1;
  margin: -0.95rem 0 0;
  padding: 0;
  border-radius: 8px;
  transform: translateZ(0);
}

.chart-stage img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  user-select: none;
}

.telegram-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 1.35rem;
  padding: 0 18px 0 14px;
  overflow: visible;
  border: 1px solid rgba(86, 130, 188, 0.34);
  border-radius: 999px;
  color: #fff;
  background: #54a9eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  letter-spacing: 0;
  isolation: isolate;
  transition: background-color 160ms ease;
}

.telegram-button:disabled {
  cursor: default;
}

.telegram-button:hover {
  background: #4fa3e3;
}

.telegram-button:disabled:hover {
  background: #54a9eb;
}

.telegram-button:active {
  background: #4898d6;
}

.telegram-button:disabled:active {
  background: #54a9eb;
}

.telegram-button-limited {
  padding: 0 20px;
}

.telegram-button:focus-visible {
  outline: 3px solid rgba(255, 242, 0, 0.82);
  outline-offset: 5px;
}

.telegram-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  filter: none;
}

.telegram-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.login-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 520px) {
  .landing-shell {
    padding: 28px 24px;
  }

  .hero {
    min-height: calc(100vh - 56px);
  }

  .chart-stage {
    width: min(54vw, 330px);
    margin-top: -1.3rem;
  }

  .telegram-button {
    min-height: 42px;
    font-size: 14px;
  }
}

@media (min-width: 860px) {
  .chart-stage {
    width: min(39vw, 420px);
    margin-top: -3.1rem;
  }

  .telegram-button {
    margin-top: 1.45rem;
  }
}

@media (min-width: 1180px) {
  .chart-stage {
    width: min(34vw, 480px);
    margin-top: -4.2rem;
  }

  .telegram-button {
    min-height: 42px;
    margin-top: 1.35rem;
    font-size: 14px;
  }
}

@media (max-height: 720px) and (min-width: 860px) {
  .chart-stage {
    width: min(34vw, 380px);
    margin-top: -3.6rem;
  }

  .telegram-button {
    min-height: 42px;
    margin-top: 0.9rem;
  }
}
