@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Quicksand:wght@500;600&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  color: #ffffff;
}

/* Telegram-only handoff: keep centered on all viewports (overrides mobile “top” layout). */
body.telegram-direct {
  place-items: center;
  align-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 24px
    max(24px, env(safe-area-inset-bottom, 0px));
  text-align: center;
}

@media (max-width: 640px) {
  body.telegram-direct {
    place-items: center;
    align-content: center;
    padding-top: max(32px, env(safe-area-inset-top, 0px));
  }
}

.telegram-direct-msg {
  margin: 0;
  max-width: 20rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Phones: sit between “too low” (full vertical center) and “too high” (flush to top). */
@media (max-width: 640px) {
  body {
    min-height: 100dvh;
    min-height: 100svh;
    place-items: start center;
    align-content: start;
    padding-top: calc(
      env(safe-area-inset-top, 0px) + clamp(28px, 8vh, 72px)
    );
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    padding-left: 24px;
    padding-right: 24px;
  }
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -25%;
  pointer-events: none;
  z-index: 0;
}

/* Snow tiles: one repeat size per layer so background-position loops without a jump. */
body::before {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.95) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.75) 0 2px, transparent 2.8px),
    radial-gradient(circle at 40% 75%, rgba(255, 255, 255, 0.7) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 85% 60%, rgba(255, 255, 255, 0.85) 0 2.1px, transparent 3px);
  background-size: 256px 256px, 256px 256px, 256px 256px, 256px 256px;
  background-repeat: repeat;
  background-position: 0 0, 48px 0, 96px 0, 160px 0;
  opacity: 0.55;
  filter: blur(0.2px);
  animation: snowNear 24s linear infinite;
}

body::after {
  background-image:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 33%, rgba(255, 255, 255, 0.45) 0 1.2px, transparent 2px),
    radial-gradient(circle at 58% 82%, rgba(255, 255, 255, 0.42) 0 1px, transparent 1.7px),
    radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.4) 0 1.1px, transparent 1.9px);
  background-size: 256px 256px, 256px 256px, 256px 256px, 256px 256px;
  background-repeat: repeat;
  background-position: 0 0, 72px 0, 20px 0, 128px 0;
  opacity: 0.45;
  filter: blur(1px);
  transform: scale(1.12);
  transform-origin: center center;
  animation: snowFar 36s linear infinite;
}

.card {
  width: min(100%, 380px);
  background: rgba(255, 192, 203, 0.09);
  border: 1px solid rgba(255, 192, 203, 0.18);
  border-radius: 18px;
  padding: 28px 20px;
  backdrop-filter: blur(8px);
  text-align: center;
  position: relative;
  z-index: 1;
}

.avatar-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.online-indicator {
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle at 35% 30%, #86efac 0%, #22c55e 58%, #15803d 100%);
  box-shadow:
    0 0 0 1px rgba(21, 128, 61, 0.22),
    0 0 8px rgba(34, 197, 94, 0.55);
  animation: liveBreathe 2.2s ease-in-out infinite;
}

.online-indicator::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.55);
  opacity: 0;
  transform: scale(0.7);
  animation: livePing 2.2s ease-out infinite;
}

.name {
  margin: 14px 0 14px;
  font-size: 1.75rem;
  font-family: "Quicksand", Arial, Helvetica, sans-serif;
  color: #ffd6e7;
  letter-spacing: 0.2px;
  font-weight: 500;
  text-shadow: 0 4px 14px rgba(255, 107, 157, 0.28);
}

.profile-bio {
  margin: 0 0 30px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.15px;
  font-weight: 400;
  line-height: 1.55;
}

.location-group {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  margin-right: 0.08em;
  transform: translateX(-3px);
}

.location-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: -0.05em;
  color: #ffb8d9;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.location-pin svg {
  width: 1.05em;
  height: 1.05em;
  display: block;
  transform: translateY(1px);
  fill: #ffb8d9;
}

.profile-bio .location-pin svg path {
  fill: #ffb8d9;
}

/*
 * Emoji often ignores transform when applied directly (especially on Android).
 * Rotate the outer box; size the inner span.
 * Larger berry on fine-pointer devices (mouse / most PCs); touch keeps smaller size.
 */
.strawberry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.2em;
  vertical-align: middle;
  transform: rotate(45deg) translateZ(0);
  -webkit-transform: rotate(45deg) translateZ(0);
}

.strawberry-inner {
  display: block;
  font-size: 0.68em;
  line-height: 1;
}

@media (pointer: fine) {
  .strawberry-inner {
    font-size: 0.84em;
  }
}

.links {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(97, 111, 131, 0.64), rgba(67, 80, 99, 0.56));
  border: 1px solid rgba(100, 116, 139, 0.55);
  border-radius: 12px;
  padding: 13px 16px;
  width: 92%;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 16px rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn::before {
  content: none;
}

.btn-icon {
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.18));
  transform: translateZ(0);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 20px rgba(15, 23, 42, 0.3);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 10px rgba(15, 23, 42, 0.22);
}

.btn-blue {
  background: linear-gradient(180deg, rgba(80, 147, 252, 0.72), rgba(45, 116, 227, 0.58));
  border-color: rgba(96, 165, 250, 0.58);
}

.btn-blue:hover {
  background: linear-gradient(180deg, rgba(99, 160, 255, 0.76), rgba(52, 122, 233, 0.62));
}

.btn-telegram {
  background: linear-gradient(180deg, rgba(58, 177, 232, 0.72), rgba(28, 145, 201, 0.58));
  border-color: rgba(56, 189, 248, 0.58);
}

.btn-telegram:hover {
  background: linear-gradient(180deg, rgba(74, 192, 246, 0.76), rgba(24, 153, 219, 0.62));
}

.btn-instagram {
  background: linear-gradient(180deg, rgba(249, 136, 197, 0.74), rgba(233, 97, 168, 0.6));
  border-color: rgba(249, 168, 212, 0.58);
}

.btn-instagram:hover {
  background: linear-gradient(180deg, rgba(251, 151, 206, 0.78), rgba(238, 112, 177, 0.64));
}

.social-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.35) 55%,
    transparent 100%
  );
}

.social-footer__rule {
  width: min(92vw, 320px);
  height: 0;
  border: 0;
  border-top: 1px solid rgba(59, 130, 246, 0.24);
  margin: 0;
}

.social-footer__copy {
  margin: 0;
  padding: 0 12px 2px;
  max-width: 36rem;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
}

.cta-hint {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 92%;
  max-width: 92%;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: hintCycle 11s ease-in-out 3s infinite;
}

.cta-arrow {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.02em;
  text-shadow:
    0.55px 0 0 currentColor,
    -0.55px 0 0 currentColor,
    0 0.55px 0 currentColor,
    0 -0.55px 0 currentColor,
    0.35px 0.35px 0 currentColor,
    -0.35px -0.35px 0 currentColor;
  animation: hintFloat 1.2s ease-in-out infinite;
}

.cta-bubble {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}

.cta-text {
  display: block;
  font-size: clamp(0.72rem, 3.1vw, 0.84rem);
  letter-spacing: 0.18px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
}

/* Each layer shifts by exactly (256px, 256px) → tile repeats; no loop jump. */
@keyframes snowNear {
  0% {
    background-position:
      0 0,
      48px 0,
      96px 0,
      160px 0;
  }
  100% {
    background-position:
      256px 256px,
      304px 256px,
      352px 256px,
      416px 256px;
  }
}

@keyframes snowFar {
  0% {
    background-position:
      0 0,
      72px 0,
      20px 0,
      128px 0;
  }
  100% {
    background-position:
      256px 256px,
      328px 256px,
      276px 256px,
      384px 256px;
  }
}

@keyframes hintFloat {
  0%,
  100% {
    transform: translateY(2px);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes hintCycle {
  0%,
  7% {
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  /* ~4s fully visible @ 11s cycle vs ~2.5s before (~+1.5s hold) */
  52% {
    opacity: 1;
  }
  68% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes liveBreathe {
  0%,
  100% {
    opacity: 0.95;
    transform: scale(1);
  }
  50% {
    opacity: 0.78;
    transform: scale(0.95);
  }
}

@keyframes livePing {
  0% {
    opacity: 0.7;
    transform: scale(0.72);
  }
  80% {
    opacity: 0;
    transform: scale(1.45);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
