/* LittleWaifu — mobile-first link-in-bio + desktop two-column */

:root {
  --bg: #0a0a0a;
  --card: #121212;
  --card-elev: #161616;
  --text: #ffffff;
  --muted: #9a9a9a;
  --pink: #ff6b9d;
  --pink-hot: #ff4d8d;
  --violet: #c77dff;
  --purple: #9d4edd;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font-family: inherit;
}

/* ---------- Blurred hero backdrop ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0a0a;
  pointer-events: none;
}

.page-bg-img {
  position: absolute;
  inset: -12%;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(42px) saturate(1.15) brightness(0.55);
  transform: scale(1.18);
}

.page-bg-dim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(10, 10, 10, 0.15), rgba(10, 10, 10, 0.82) 70%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.92));
}

/* ---------- Shell / card ---------- */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding:
    max(20px, var(--safe-t))
    max(14px, var(--safe-l))
    max(28px, var(--safe-b))
    max(14px, var(--safe-r));
}

.card {
  width: 100%;
  max-width: 430px;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  /* no max-height — it was shrinking width and leaving a black gap on the side */
  min-height: 300px;
  background: #1a0f1f;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 85%;
}

.hero-fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 20% 10%, #ff6b9d 0%, transparent 55%),
    radial-gradient(100% 80% at 90% 30%, #9d4edd 0%, transparent 50%),
    linear-gradient(160deg, #2a1030, #0a0a0a 70%);
}

.hero-fallback span {
  font-size: clamp(64px, 18vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.22);
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(18, 18, 18, 0.35) 40%,
    rgba(18, 18, 18, 0.95) 78%,
    #121212 100%
  );
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 20px 18px;
  z-index: 2;
}

.hero-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.55rem, 6.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.verified {
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.hero-handle {
  margin: 6px 0 0;
  color: #b0b0b0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Card body ---------- */
.card-body {
  padding: 4px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tagline {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Social icons ---------- */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.social:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.08);
}

.social:active {
  transform: scale(0.96);
}

.social svg {
  width: 22px;
  height: 22px;
}

.social[data-id="instagram"] {
  background: radial-gradient(
      circle at 30% 110%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285aeb 90%
    );
}

.social[data-id="tiktok"] {
  background: #010101;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 6px 16px rgba(0, 0, 0, 0.28);
}

.social[data-id="telegram"] {
  background: #2aabee;
}

.social[data-id="x"] {
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(0, 0, 0, 0.28);
}

/* ---------- Premium CTA ---------- */
.cta {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 200px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1020;
  color: #fff;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 10px 28px rgba(157, 78, 221, 0.18);
}

.cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 157, 0.35);
  box-shadow: 0 16px 36px rgba(255, 107, 157, 0.22);
}

.cta:active {
  transform: scale(0.985);
}

.cta-media,
.cta-media img,
.cta-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-media img {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias down so the body/butt is in frame, not just the face */
  object-position: center 78%;
}

.cta-fallback {
  background:
    radial-gradient(90% 80% at 15% 20%, #ff6b9d 0%, transparent 55%),
    radial-gradient(80% 70% at 90% 70%, #9d4edd 0%, transparent 55%),
    linear-gradient(135deg, #2a1030, #120818);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.55) 78%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.cta-lock {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.cta-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  text-align: left;
}

.cta-label {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* ---------- Telegram secondary ---------- */
.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(42, 171, 238, 0.45);
  background: rgba(42, 171, 238, 0.1);
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.tg-btn:hover {
  background: rgba(42, 171, 238, 0.18);
  border-color: rgba(42, 171, 238, 0.7);
}

.tg-btn:active {
  transform: scale(0.98);
}

.tg-btn[hidden] {
  display: none !important;
}

/* ---------- Footer ---------- */
.foot {
  text-align: center;
  padding-top: 2px;
}

.foot p {
  margin: 0;
  color: #6b6b6b;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Overlays / modals ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding:
    max(20px, var(--safe-t))
    max(18px, var(--safe-l))
    max(20px, var(--safe-b))
    max(18px, var(--safe-r));
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade-in 0.22s ease both;
}

.overlay[hidden] {
  display: none !important;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: min(100%, 360px);
  padding: 28px 22px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1a1a1a, #121212);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  animation: modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(157, 78, 221, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon.age {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #ffd0e2;
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.modal-hint {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-hot), var(--purple));
  box-shadow: 0 10px 24px rgba(255, 77, 141, 0.28);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  font-size: 1.05rem;
  margin-top: 4px;
}

/* Early age-gate: hide landing flash when ?b=1 escaped */
html.nw-age-now .wrap,
html.nw-age-now .page-bg {
  visibility: hidden;
}

html.nw-age-now #ageOverlay,
html.nw-age-now #ageOverlay[hidden] {
  display: grid !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 480px) {
  .wrap {
    align-items: center;
    padding-top: max(28px, var(--safe-t));
  }

  .hero {
    max-height: 420px;
  }
}

/* Desktop: full-bleed backdrop + wide two-column card */
@media (min-width: 900px) {
  .wrap {
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
  }

  .card {
    max-width: min(1040px, 92vw);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }

  .hero {
    aspect-ratio: auto;
    max-height: none;
    min-height: 560px;
    height: 100%;
    border-radius: 0;
  }

  .hero-media img {
    object-position: 30% 85%;
  }

  .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px 32px;
    gap: 4px;
  }

  .tagline {
    margin-top: 4px;
  }

  .socials {
    margin: 18px 0 22px;
  }

  .cta {
    aspect-ratio: 4 / 5;
    min-height: 280px;
    max-height: 420px;
  }

  .foot {
    margin-top: 18px;
  }
}

@media (min-width: 1200px) {
  .card {
    max-width: 1120px;
  }

  .hero {
    min-height: 620px;
  }
}
