:root {
  --bg: #11110f;
  --paper: #f8f6ef;
  --paper-soft: rgba(248, 246, 239, 0.94);
  --ink: #151515;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.24);
  --green: #29f35f;
  --telegram: #2ca8f7;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.48);
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: white;
  background:
    radial-gradient(circle at 18% 22%, rgba(178, 139, 92, 0.45), transparent 30%),
    radial-gradient(circle at 82% 42%, rgba(255, 126, 77, 0.28), transparent 32%),
    linear-gradient(180deg, #1d1913 0%, #080807 100%);
  overflow-x: hidden;
}

.shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 0 20px;
  isolation: isolate;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  filter: blur(22px);
  opacity: 0.55;
  transform: scale(1.05);
}

.ambient-left {
  background: image-set(
      url("./hero-v1-420.avif") type("image/avif"),
      url("./hero-v1-420.webp") type("image/webp"),
      url("./hero.png") type("image/png")
    )
    center / cover no-repeat;
}

.ambient-right {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 31%, transparent 69%, rgba(0, 0, 0, 0.78)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.phone-card {
  position: relative;
  width: min(100vw, 420px);
  min-height: 100vh;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #2c241d;
}

.phone-card > picture:first-of-type,
.backdrop {
  position: absolute;
  inset: 0;
}

.backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.18) 28%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.26) 32%, transparent 52%);
}

.profile {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: max(140px, env(safe-area-inset-top) + 116px) 28px 0;
  text-align: center;
}

.avatar {
  width: 78px;
  height: 78px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

h1 {
  margin: 16px 0 6px;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 0.95;
  letter-spacing: -1.8px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.86), 0 1px 2px rgba(0, 0, 0, 0.75);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(41, 243, 95, 0.95);
}

.sep {
  color: rgba(255, 255, 255, 0.42);
}

.bio {
  max-width: 320px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.2px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.78);
}

.bio span {
  display: block;
}

.dm-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc(100% - 54px);
  max-width: 360px;
  margin: 44px auto 0;
  padding: 16px 24px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper-soft);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dm-card:active {
  transform: scale(0.985);
}

.dm-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #001808;
  background: var(--green);
  border-radius: 999px;
  font-weight: 900;
}

.dm-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.dm-copy strong {
  font-size: 17px;
  line-height: 1;
}

.dm-copy small {
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
}

.offer {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-top: 38px;
}

.offer-badge {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.timer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.timer span {
  display: grid;
  justify-items: center;
  min-width: 36px;
}

.timer b {
  font-size: 22px;
  line-height: 1;
}

.timer small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}

.timer i {
  font-style: normal;
  font-weight: 900;
  opacity: 0.78;
}

.fineprint {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 102px;
  left: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.bottom-bar {
  position: fixed;
  z-index: 5;
  right: max(16px, calc((100vw - 420px) / 2 + 16px));
  bottom: max(18px, env(safe-area-inset-bottom) + 14px);
  left: max(16px, calc((100vw - 420px) / 2 + 16px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  max-width: 392px;
  margin: 0 auto;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 11px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
}

.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
}

.brand-mark span {
  position: absolute;
  width: 12px;
  height: 12px;
}

.mark-a {
  top: 0;
  left: 0;
  background: #1c1c22;
}

.mark-b {
  right: 0;
  bottom: 0;
  background: #c9bbff;
}

.bottom-bar strong {
  font-size: 18px;
  letter-spacing: -0.6px;
}

.bottom-bar a {
  padding: 10px 18px;
  color: white;
  text-decoration: none;
  background: #000;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

@media (min-width: 760px) {
  .phone-card {
    min-height: 100vh;
  }

  .dm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  }
}

@media (max-width: 460px) {
  .shell {
    padding: 0;
  }

  .phone-card {
    width: 100vw;
    box-shadow: none;
  }

  .profile {
    padding-top: max(124px, env(safe-area-inset-top) + 96px);
  }

  .dm-card {
    margin-top: 42px;
    width: calc(100% - 38px);
  }

  .fineprint {
    bottom: 98px;
  }

  .bottom-bar {
    right: 12px;
    left: 12px;
  }
}
