:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #111;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

.page {
  --page-inline-padding: 28px;

  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px;
  text-align: center;
  background-color: #111;
  background-image:
    linear-gradient(0deg, rgb(0 0 0 / 58%), rgb(0 0 0 / 10%) 58%, rgb(0 0 0 / 16%)),
    url("../images/bg-mobile.webp");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

.page-content {
  position: absolute;
  inset: 0;
  text-shadow: 0 2px 8px rgb(0 0 0 / 55%);
}

.profile-group,
.cta-group {
  position: absolute;
  left: 50%;
  width: min(calc(100% - var(--page-inline-padding) - var(--page-inline-padding)), 324px);
  transform: translateX(-50%);
}

.profile-group {
  top: 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.avatar {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgb(0 0 0 / 42%), 0 0 0 2px rgb(255 255 255 / 88%);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
}

.avatar::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, #ff5b5b, #ffb25b, #fff56b, #5dff9a, #5bf7ff, #5d7dff, #b45bff, #ff5bc8, #ff5b5b);
  filter: blur(3px);
  opacity: 0.85;
  animation: avatar-glow 9s linear infinite;
}

@keyframes avatar-glow {
  to { transform: rotate(360deg); }
}

.identity {
  margin-bottom: 0;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 9vw, 2.5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
}

h1 span {
  display: inline-block;
  color: #fff;
}

.identity p {
  margin: 4px 0 0;
  font-size: 1.18rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.load-text {
  position: relative;
  display: inline-block;
}

.is-loading .load-text {
  color: transparent;
  text-shadow: none;
}

.is-loading .load-text::after {
  content: "";
  position: absolute;
  inset: 0.12em 0;
  border-radius: 999px;
  background:
    linear-gradient(100deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 70%) 45%, rgb(255 255 255 / 20%) 72%) 0 0 / 220% 100%,
    rgb(255 255 255 / 28%);
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
  animation: loader-sheen 1.05s ease-in-out infinite;
}

@keyframes loader-sheen {
  to {
    background-position: -220% 0, 0 0;
  }
}

.presence-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cta-group {
  top: 70%;
}

.availability {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(0.9rem, 3.6vw, 1.154rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgb(0 0 0 / 58%);
  white-space: nowrap;
}

.availability-status,
.availability-response {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.availability-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid rgb(228 255 233 / 78%);
  border-radius: 50%;
  background: #3ee76a;
  box-shadow: 0 0 7px rgb(62 231 106 / 76%);
  animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 7px rgb(62 231 106 / 76%); }
  50% { box-shadow: 0 0 12px rgb(62 231 106 / 95%); }
}

.availability-separator {
  flex: 0 0 auto;
  color: rgb(255 255 255 / 35%);
  font-weight: 500;
}

.availability-clock {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.geo-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  min-height: 34px;
}

.geo-location-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  overflow: visible;
  stroke: url(#location-rainbow);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgb(91 247 255 / 42%));
  animation: location-float 2.4s ease-in-out infinite;
}

.geo-location-text {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.93rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgb(0 0 0 / 55%);
  white-space: nowrap;
}

@keyframes location-float {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 4px rgb(91 247 255 / 42%));
  }

  50% {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 7px rgb(255 91 200 / 58%));
  }
}

.offer-copy {
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.3;
}

.offer-copy p {
  margin: 0;
}

.button {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 1px 10px rgb(0 0 0 / 45%);
  background:
    radial-gradient(circle at 18% 0%, rgb(255 255 255 / 46%), transparent 32%),
    linear-gradient(180deg, rgb(255 255 255 / 22%), rgb(255 255 255 / 8%) 48%, rgb(255 255 255 / 14%)),
    rgb(255 255 255 / 12%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 70%),
    inset 0 -16px 26px rgb(255 255 255 / 10%),
    0 12px 28px rgb(0 0 0 / 30%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: transform 0.15s ease;
}

.button.is-pressed {
  transform: scale(0.985);
}

.button::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -5px;
  padding: 7px;
  border-radius: 17px;
  pointer-events: none;
  background: linear-gradient(45deg, #ff5b5b, #ffb25b, #fff56b, #5dff9a, #5bf7ff, #5d7dff, #b45bff, #ff5bc8, #ff5b5b);
  background-size: 400%;
  filter: blur(8px);
  opacity: 0.72;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: button-glow 18s linear infinite;
}

.button::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(45deg, #ff5b5b, #ffb25b, #fff56b, #5dff9a, #5bf7ff, #5d7dff, #b45bff, #ff5bc8, #ff5b5b);
  background-size: 400%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: button-glow 18s linear infinite;
}

.button:hover,
.button:focus-visible {
  background:
    radial-gradient(circle at 18% 0%, rgb(255 255 255 / 54%), transparent 32%),
    linear-gradient(180deg, rgb(255 255 255 / 28%), rgb(255 255 255 / 10%) 48%, rgb(255 255 255 / 17%)),
    rgb(255 255 255 / 15%);
}

.button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@keyframes button-glow {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* Desktop: wide cinematic frame, content column on the left. */
@media (min-width: 621px) {
  .page {
    background-image:
      linear-gradient(90deg, rgb(0 0 0 / 62%) 0%, rgb(0 0 0 / 34%) 42%, rgb(0 0 0 / 6%) 68%, rgb(0 0 0 / 18%)),
      url("../images/bg-desktop.webp");
  }
}

@media (min-width: 900px) {
  .page-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 34px;
    padding: 0 0 0 max(56px, 8vw);
    text-align: left;
  }

  .profile-group,
  .cta-group {
    position: static;
    width: min(360px, 40vw);
    transform: none;
    align-items: flex-start;
  }

  .profile-group { gap: 22px; }

  .avatar { width: 116px; height: 116px; }

  .availability,
  .geo-location { justify-content: flex-start; }

  .availability { font-size: 1.05rem; }

  .offer-copy { font-size: 0.92rem; }

  .button { min-height: 58px; border-radius: 14px; }
}

/* Tall screens: keep blocks visually anchored to thirds of the viewport. */
@media (min-height: 900px) and (min-width: 621px) {
  .profile-group { top: 26%; }
  .cta-group { top: 72%; }
}

@media (max-width: 620px) {
  .page {
    --page-inline-padding: 46px;

    padding: 24px 46px;
    background-image:
      linear-gradient(0deg, rgb(0 0 0 / 62%), rgb(0 0 0 / 8%) 62%, rgb(0 0 0 / 14%)),
      url("../images/bg-mobile.webp");
  }

  .profile-group {
    top: 11%;
    gap: 16px;
  }

  .avatar {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 360px) {
  .page {
    --page-inline-padding: 24px;

    padding-inline: 24px;
  }

  .availability {
    flex-direction: column;
    gap: 2px;
    white-space: normal;
  }

  .availability-separator {
    display: none;
  }
}

/* Low-height screens (phone landscape): compact stack. */
@media (max-height: 520px) {
  .profile-group {
    top: 6%;
    gap: 10px;
  }

  .avatar {
    width: 62px;
    height: 62px;
  }

  h1 { font-size: 1.6rem; }

  .identity p { font-size: 0.95rem; }

  .availability { font-size: 0.82rem; }

  .geo-location { min-height: 22px; }
  .geo-location-icon { width: 16px; height: 16px; }
  .geo-location-text { font-size: 0.78rem; }

  .cta-group { top: 72%; }

  .offer-copy {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .button {
    min-height: 46px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .geo-location-icon,
  .availability-dot,
  .button::before,
  .button::after {
    animation: none;
  }
}