:root {
  --bg: #04070f;
  --card: #0a1228;
  --card-2: #121c35;
  --text: #eef2ff;
  --muted: #adb6cd;
  --line: rgba(142, 162, 197, 0.28);
  --line-soft: rgba(120, 141, 182, 0.2);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(80% 65% at 50% 10%, #111936 0%, #060b16 70%, #02040a 100%);
  color: var(--text);
}

body {
  display: flex;
  justify-content: center;
  padding: 12px 10px calc(92px + env(safe-area-inset-bottom, 0px));
}

.page {
  width: min(100%, 392px);
}

.phone {
  border-radius: 20px;
  padding: 4px;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.card {
  border-radius: 28px;
  padding: 14px 14px 18px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(78% 55% at 78% 5%, rgba(82, 54, 122, 0.6) 0%, rgba(29, 30, 80, 0.1) 55%, rgba(9, 16, 36, 0.85) 100%),
    linear-gradient(160deg, rgba(16, 29, 63, 0.9) 0%, rgba(9, 16, 32, 0.96) 100%);
}

.card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.handle,
.tg-badge {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 16px;
  color: #d7def0;
  background: rgba(45, 56, 89, 0.32);
  text-decoration: none;
  font-size: clamp(18px, 4.6vw, 29px);
  font-weight: 500;
}

.tg-badge {
  width: 56px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tg-badge span {
  transform: translateX(1px);
}

.avatar-wrap {
  margin: 18px auto 16px;
  width: min(100%, 265px);
  aspect-ratio: 1;
  border: 2px solid rgba(149, 160, 190, 0.45);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.title {
  margin: 0;
  font-size: clamp(32px, 8.6vw, 50px);
  line-height: 1.12;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 5.1vw, 34px);
  line-height: 1.42;
}

.chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 18px;
  color: #e4eaf6;
  background: rgba(26, 37, 64, 0.35);
  font-size: clamp(17px, 4.8vw, 31px);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip--active {
  background: rgba(75, 64, 97, 0.45);
  border-color: rgba(176, 155, 206, 0.6);
}

.info-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px;
  background: rgba(22, 34, 58, 0.64);
  box-shadow: inset 0 0 0 1px rgba(35, 53, 88, 0.4);
}

.info-box--accent {
  margin-top: 22px;
}

.info-box h2,
.info-box p {
  margin: 0;
}

.info-box h2 {
  font-size: clamp(22px, 5.4vw, 36px);
  line-height: 1.2;
}

.info-box p + p {
  margin-top: 10px;
}

.info-box p {
  color: #e2e9f7;
  font-size: clamp(18px, 4.8vw, 33px);
  line-height: 1.4;
}

.story-box p {
  text-wrap: pretty;
  line-height: 1.52;
  letter-spacing: 0.1px;
}

.story-box p + p {
  margin-top: 14px;
}

.story-box {
  padding-top: 20px;
  padding-bottom: 20px;
}

.info-box h2 + p {
  margin-top: 8px;
  color: var(--muted);
}

.footer-note {
  margin: 18px 4px 2px;
  color: #a0adc9;
  font-size: clamp(17px, 4.5vw, 31px);
  line-height: 1.45;
}

.cta {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(96vw, 392px);
  border-radius: 15px;
  padding: 15px 20px;
  color: #dbf3ff;
  text-decoration: none;
  font-size: clamp(20px, 5vw, 30px);
  text-align: center;
  background: linear-gradient(180deg, #0aa8ff 0%, #0078d6 100%);
  box-shadow: 0 10px 20px rgba(0, 95, 175, 0.45);
  z-index: 40;
}

@media (max-width: 480px) {
  .phone {
    padding: 3px;
    border-radius: 14px;
  }

  .card {
    border-radius: 24px;
    padding: 16px 14px 14px;
  }

  .info-box {
    padding: 16px 15px;
  }

  .story-box {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 8px 6px 12px;
  }

  .card {
    padding: 14px 12px 12px;
  }

  .avatar-wrap {
    width: min(100%, 220px);
  }

  .chips {
    gap: 8px;
  }

  .chip {
    padding: 9px 14px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 18px 16px calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .page {
    width: min(100%, 430px);
  }

  .cta {
    width: min(92vw, 410px);
  }
}
