/* Lily Rimms — liquid glass link hub */

:root {
  --bg: #0a0508;
  --ink: #f8efe8;
  --muted: rgba(248, 239, 232, 0.7);
  --faint: rgba(248, 239, 232, 0.48);
  --rose: #f0b3c4;
  --rose-deep: #c45c7a;
  --plum: #5a1838;
  --gold: #e4cdb0;
  --glass: linear-gradient(165deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.07) 48%, rgba(255, 255, 255, 0.04) 100%);
  --glass-border: rgba(255, 255, 255, 0.28);
  --radius: 26px;
  --icon-radius: 18px;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Bodoni Moda", "Cormorant Garamond", "Palatino Linotype", serif;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

html {
  height: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body:not(.age-ok) {
  overflow: hidden;
  height: 100dvh;
}

a {
  color: inherit;
}

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

/* ---------- atmosphere ---------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0508;
}

.bg-photo {
  position: absolute;
  inset: -48px;
  background: url("assets/bg.jpg") center 18% / cover no-repeat;
  filter: blur(8px) saturate(130%);
  transform: scale(1.12);
}

.bg-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 620px at 50% -8%, rgba(140, 36, 78, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(10, 4, 8, 0.18) 0%, rgba(10, 4, 8, 0.34) 48%, rgba(10, 4, 8, 0.62) 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 48%, rgba(0, 0, 0, 0.32) 100%);
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ---------- layout ---------- */

.shell {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 calc(40px + env(safe-area-inset-bottom));
  padding-top: max(36px, env(safe-area-inset-top));
}

body.age-ok .shell {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- identity ---------- */

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.avatar {
  position: relative;
  width: 118px;
  height: 118px;
  margin-bottom: 16px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 230, 236, 0.85) 0%, rgba(196, 92, 122, 0.5) 42%, rgba(255, 255, 255, 0.12) 72%, rgba(228, 205, 176, 0.45) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  pointer-events: none;
}

.name {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(58px, 16vw, 80px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 0.06em 0.12em 0.14em 0.04em;
  overflow: visible;
  text-transform: lowercase;
  background: linear-gradient(180deg, #fff8f6 0%, #f4c4d0 48%, #e08aa4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f0b3c4;
  filter:
    drop-shadow(0 0 10px rgba(232, 164, 184, 0.55))
    drop-shadow(0 0 28px rgba(196, 92, 122, 0.4))
    drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}

.handle {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.tagline {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(248, 239, 232, 0.92);
}

.bio {
  margin-top: 8px;
  max-width: 22em;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- cards ---------- */

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px 14px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.3) 0%, transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card.featured {
  align-items: flex-start;
  padding: 16px 16px 16px 14px;
  background: linear-gradient(
    165deg,
    rgba(255, 210, 222, 0.3) 0%,
    rgba(196, 92, 122, 0.22) 46%,
    rgba(90, 20, 50, 0.26) 100%
  );
  border-color: rgba(255, 220, 230, 0.5);
  box-shadow:
    0 16px 44px rgba(140, 30, 70, 0.38),
    0 0 28px rgba(196, 92, 122, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.card.featured::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: sheen 5.5s ease-in-out 1.2s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes sheen {
  0%, 70%, 100% { transform: translateX(-120%); opacity: 0; }
  80% { transform: translateX(180%); opacity: 1; }
}

.glyph {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: var(--icon-radius);
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 6px 14px rgba(0, 0, 0, 0.18);
  color: var(--ink);
  align-self: flex-start;
}

.glyph svg {
  width: 24px;
  height: 24px;
}

.glyph-fansly {
  background: linear-gradient(180deg, #7ee0f2 0%, #2aa8c4 100%);
  color: #062228;
  border-color: rgba(255, 255, 255, 0.35);
}

.glyph-of {
  background: linear-gradient(180deg, #5cd4ff 0%, #0095d6 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.glyph-x {
  background: linear-gradient(180deg, #2a2a2c 0%, #0b0b0d 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.glyph-reddit {
  background: linear-gradient(180deg, #ff6a3d 0%, #ff4500 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.glyph-pics {
  background: linear-gradient(180deg, rgba(255, 230, 238, 0.28), rgba(140, 40, 80, 0.4));
  color: #fff;
}

.glyph-throne {
  background: linear-gradient(180deg, #f0d7b4 0%, #c4925a 100%);
  color: #3a2410;
  border-color: rgba(255, 255, 255, 0.35);
}

.copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.label {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hint {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.card.featured .hint,
.card.spoil .hint {
  color: rgba(255, 236, 242, 0.86);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(255, 246, 248, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ---------- gallery ---------- */

.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 12px 12px 14px;
}

.gallery-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  margin: 0 -2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.strip::-webkit-scrollbar {
  height: 4px;
}

.strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
}

.strip picture,
.strip img {
  flex: 0 0 auto;
  width: 108px;
  height: 144px;
  object-fit: cover;
  border-radius: 16px;
  scroll-snap-align: start;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- spoil me ---------- */

.card.spoil {
  align-items: flex-start;
  background: linear-gradient(
    165deg,
    rgba(255, 214, 226, 0.22) 0%,
    rgba(80, 16, 40, 0.28) 100%
  );
}

.wish-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.wish-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.wish-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(240, 179, 196, 0.55), transparent);
  animation: wish-shimmer 2.8s ease-in-out infinite;
}

@keyframes wish-shimmer {
  0% { left: -40%; }
  100% { left: 100%; }
}

.wish-heart {
  flex: 0 0 auto;
  color: var(--rose);
  font-size: 13px;
  text-shadow: 0 0 10px rgba(232, 164, 184, 0.7);
}

/* ---------- footer ---------- */

.foot {
  margin-top: 28px;
  text-align: center;
  color: rgba(248, 239, 232, 0.52);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot p + p {
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 12px;
}

/* ---------- interactions ---------- */

@media (hover: hover) and (pointer: fine) {
  a.card:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  a.card.featured:hover,
  a.card.spoil:hover {
    background: linear-gradient(
      165deg,
      rgba(232, 164, 184, 0.4) 0%,
      rgba(90, 20, 50, 0.4) 52%,
      rgba(255, 255, 255, 0.1) 100%
    );
  }
}

.card:focus-visible,
.btn:focus-visible,
.strip:focus-visible {
  outline: 2px solid rgba(232, 164, 184, 0.9);
  outline-offset: 3px;
}

a.card:active {
  transform: translateY(0) scale(0.99);
}

/* ---------- age gate ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: rgba(6, 2, 4, 0.28);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.gate[hidden],
body.age-ok .gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-card {
  width: min(400px, 100%);
  padding: 36px 28px 28px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(40, 14, 24, 0.42) 100%);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  animation: gate-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.gate-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--rose);
  margin-bottom: 10px;
}

#gate-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 7.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.gate-copy {
  margin: 12px 0 26px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 16px;
  border-radius: 16px;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn.leave {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn.enter {
  background: linear-gradient(180deg, #e8b4c4 0%, #c45c7a 100%);
  color: #2a0a14;
  box-shadow:
    0 8px 24px rgba(196, 92, 122, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@media (hover: hover) and (pointer: fine) {
  .btn.leave:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  .btn.enter:hover {
    transform: translateY(-1px);
    box-shadow:
      0 12px 28px rgba(196, 92, 122, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

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

/* ---------- desktop ---------- */

@media (min-width: 800px) {
  .shell {
    width: min(440px, calc(100% - 64px));
    padding-top: 56px;
  }

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

  .tagline {
    font-size: 22px;
  }

  .strip picture,
  .strip img {
    width: 116px;
    height: 154px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .card.featured::after,
  .wish-track::after,
  body.age-ok .shell,
  .gate-card {
    animation: none !important;
  }

  .card,
  .btn {
    transition: none;
  }
}

.pill.pill-promo {
  background: linear-gradient(135deg, rgba(240,179,196,.95), rgba(196,92,122,.95));
  color: #2a0a17;
  border-color: rgba(255,230,238,.7);
  box-shadow: 0 0 12px rgba(240,179,196,.45);
}
