:root {
  color-scheme: dark;
  --bg-top: #2a252a;
  --bg-mid: #1a1618;
  --bg-bottom: #0f0d0e;
  --ink: #f4ede4;
  --ink-soft: #c6b9ac;
  --ink-muted: #8a7f75;
  --rose: #d49a99;
  --gold: #d4b37a;
  --of-blue: #00aff0;
  --of-blue-dark: #0074a8;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.04);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
  color: var(--ink);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: soft-light;
}

.page-shell {
  position: relative;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: clamp(24px, 6svh, 56px) 16px;
  overflow-x: hidden;
}

.page-shell::after {
  content: "";
  position: fixed;
  width: 340px;
  height: 340px;
  left: 50%;
  top: 34%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 154, 153, 0.2) 0%, transparent 70%);
  filter: blur(36px);
  animation: shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

.landing-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  min-height: min(820px, calc(100svh - 48px));
  display: flex;
  flex-direction: column;
  padding: 40px 24px 32px;
}

.profile-photo-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto;
}

.profile-photo,
.photo-fallback {
  position: absolute;
  inset: 0;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: linear-gradient(135deg, #3a2f2a 0%, #2a2220 60%, #1a1512 100%);
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.profile-photo {
  display: none;
}

.photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244, 237, 228, 0.38);
  font-size: 42px;
  font-style: italic;
  font-weight: 300;
}

.online-dot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #2dd673;
  border: 3px solid var(--bg-bottom);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.identity {
  margin-top: 22px;
  text-align: center;
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.05;
}

.verified-badge {
  width: 18px;
  height: 18px;
  color: #1d9bf0;
  flex: 0 0 auto;
}

.verified-badge svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.verified-badge .check {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.identity p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.flourish {
  display: block;
  width: 24px;
  height: 1px;
  margin: 10px auto 0;
  background: var(--rose);
  opacity: 0.75;
}

.status-panel {
  margin-top: 32px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.status-panel[hidden] {
  display: none;
}

.cta-mount {
  margin-top: 32px;
}

.of-button,
.age-panel,
.hold-link {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: linear-gradient(180deg, var(--of-blue) 0%, #009eda 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  color: #fff;
}

.of-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 69px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}

.of-button:hover {
  transform: translateY(-1px);
}

.of-button:active {
  transform: scale(0.99);
}

.rail {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: rgba(255, 255, 255, 0.5);
}

.heart-chip {
  width: 40px;
  height: 40px;
  margin-left: 4px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.heart-chip svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.button-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.button-title {
  display: block;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.button-subtitle {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.age-panel {
  overflow: hidden;
  padding: 14px;
  animation: fade-swap 180ms ease-out;
}

.age-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
}

.age-copy {
  max-width: 300px;
  margin: 7px auto 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.age-confirm {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.hold-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hold-caption svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  animation: hold-pulse 1.6s ease-in-out infinite;
}

.hold-link {
  position: relative;
  min-height: 69px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  -webkit-touch-callout: default;
  user-select: none;
  transition: transform 120ms ease, box-shadow 220ms ease;
}

.hold-link.is-holding {
  transform: scale(0.992);
}

.hold-link.is-armed {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 0 0 3px rgba(0, 175, 240, 0.28);
}

.progress-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(180deg, #0088c2 0%, var(--of-blue-dark) 100%);
  opacity: 0.92;
}

.hold-link > :not(.progress-fill) {
  position: relative;
  z-index: 1;
}

.reset-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  --social-tint: #ffffff;
  --social-rail: #ffffff;
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--social-tint) 24%, transparent);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--social-tint) 13%, transparent) 0%,
    color-mix(in srgb, var(--social-tint) 8%, transparent) 100%
  );
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 140ms ease, border-color 140ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--social-tint) 36%, transparent);
}

.social-link--instagram {
  --social-tint: #dd2a7b;
  --social-rail: linear-gradient(180deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

.social-link--tiktok {
  --social-tint: #fe2c55;
  --social-rail: linear-gradient(180deg, #25f4ee 0%, #fe2c55 100%);
}

.social-link--youtube {
  --social-tint: #ff0033;
  --social-rail: #ff0033;
}

.social-link--x {
  --social-tint: #ffffff;
  --social-rail: #e8e8e8;
}

.social-rail {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--social-rail);
}

.social-chip {
  width: 40px;
  height: 40px;
  margin-left: 4px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid color-mix(in srgb, var(--social-tint) 28%, transparent);
  color: var(--social-tint);
}

.social-icon-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.social-title {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: capitalize;
}

.social-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-arrow {
  padding-right: 4px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}

.signature {
  margin-top: auto;
  padding-top: 40px;
  color: var(--ink-muted);
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

.page-shell[data-state="unavailable"] .profile-photo-wrap,
.page-shell[data-state="unavailable"] .identity,
.page-shell[data-state="unavailable"] .signature {
  display: none;
}

.page-shell[data-state="unavailable"] .landing-card {
  justify-content: center;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.18);
  }
}

@keyframes fade-swap {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes hold-pulse {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@media (max-width: 380px) {
  .landing-card {
    padding-inline: 12px;
  }

  h1 {
    font-size: 30px;
  }

  .button-title {
    font-size: 14px;
  }
}
