:root {
  --ink: #fffafc;
  --muted: #d8cbd4;
  --pink: #ff3f86;
  --pink-deep: #ca1d60;
  --glass: rgba(20, 11, 21, .76);
  --line: rgba(255, 255, 255, .17);
  --header: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #0c080d;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; overflow: hidden; }

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 20%, rgba(235, 50, 119, .16), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(112, 42, 112, .19), transparent 32%),
    #0c080d;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.home-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(12, 8, 13, .78);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.brand {
  width: max-content;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.6px;
  text-decoration: none;
}

.brand span, .brand b { color: var(--pink); }
.brand b { margin-left: 5px; font-size: 18px; }

.preview-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eadfe6;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}

.preview-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ef0b1;
  box-shadow: 0 0 0 5px rgba(94, 240, 177, .1);
}

.home-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.home-nav a:hover { transform: translateY(-1px); }
.login-link { border: 1px solid var(--line); background: rgba(255, 255, 255, .05); }
.signup-link { border: 1px solid #ff5a96; background: linear-gradient(135deg, #ff4c8d, #c91f61); box-shadow: 0 12px 34px rgba(222, 34, 106, .28); }

.reels-feed {
  height: calc(100vh - var(--header));
  height: calc(100dvh - var(--header));
  margin-top: var(--header);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.reels-feed::-webkit-scrollbar { display: none; }

.profile-reel {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 70px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.profile-reel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--reel-image) center 34% / cover no-repeat;
  filter: blur(72px) saturate(.85);
  opacity: .19;
  transform: scale(1.08);
}

.reel-card {
  position: relative;
  isolation: isolate;
  height: calc(100svh - var(--header) - 18px);
  aspect-ratio: 9 / 16;
  max-width: calc(100vw - 140px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  background: #21141d;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .52), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}

.reel-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.002);
}

.reel-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 4, 8, .38) 0%, transparent 25%, transparent 49%, rgba(8, 4, 8, .28) 64%, rgba(8, 4, 8, .96) 100%);
}

.profile-meta {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 88px;
  left: 20px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

.profile-meta h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vh, 38px);
  line-height: 1;
  letter-spacing: -.045em;
}

.profile-meta h2 span { font-weight: 500; color: #f2dae4; }
.profile-place { margin: 0 0 10px; color: #fff2f7; font-size: 13px; font-weight: 720; }
.profile-bio { margin: 0; max-width: 92%; color: #eee3e9; font-size: 12px; line-height: 1.45; }
.profile-tags { display: flex; gap: 6px; margin-top: 11px; overflow: hidden; }

.profile-tags span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(17, 9, 16, .48);
  color: #f9eaf0;
  font-size: 10px;
  font-weight: 670;
  backdrop-filter: blur(9px);
}

.reel-actions {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: 1.15fr .7fr .7fr .7fr 1.15fr;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 17px;
  background: rgba(20, 11, 20, .78);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .26);
  backdrop-filter: blur(16px) saturate(130%);
}

.reel-action {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 7px;
  border: 0;
  border-radius: 12px;
  color: #fff9fb;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 780;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}

.reel-action:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.reel-action:first-child { background: linear-gradient(135deg, rgba(255, 63, 134, .95), rgba(190, 24, 91, .95)); }
.reel-action-icon { padding-inline: 0; }
.reel-action svg { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.feed-sentinel { width: 1px; height: 1px; }

.modal {
  width: min(92vw, 780px);
  max-height: min(88svh, 760px);
  padding: 0;
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 26px;
  color: #23131d;
  background: #fffafd;
  box-shadow: 0 38px 120px rgba(0, 0, 0, .65);
}

.modal::backdrop { background: rgba(8, 4, 8, .74); backdrop-filter: blur(10px); }
.profile-modal { grid-template-columns: minmax(240px, .9fr) 1.1fr; }
.profile-modal[open] { display: grid; }
.profile-modal > img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: center top; }
.modal-copy { position: relative; align-self: center; padding: 48px 42px; }
.modal-kicker { display: block; margin-bottom: 12px; color: var(--pink-deep); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.modal h2 { margin: 0 0 7px; font-size: 34px; line-height: 1.05; letter-spacing: -.04em; }
.modal p { color: #745e6b; line-height: 1.6; }
.modal-location { margin: 0 0 20px; color: #a22a58 !important; font-size: 13px; font-weight: 750; }
.interest-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.interest-list span { padding: 7px 11px; border-radius: 999px; background: #f9e9f0; color: #82304e; font-size: 11px; font-weight: 720; }
.disclosure { padding: 12px 14px; border: 1px solid #efd5e1; border-radius: 12px; background: #fff5f9; font-size: 11px; }
.modal-close { position: absolute; z-index: 5; top: 14px; right: 14px; width: 37px; height: 37px; border: 1px solid rgba(56, 24, 40, .14); border-radius: 50%; color: #311722; background: rgba(255, 255, 255, .86); cursor: pointer; font-size: 23px; line-height: 1; }
.modal-primary, .modal-secondary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 12px; font-size: 12px; font-weight: 820; text-decoration: none; }
.modal-primary { color: white; background: linear-gradient(135deg, #f94283, #bd1958); box-shadow: 0 12px 30px rgba(204, 28, 94, .2); }
.modal-primary span { margin-left: 14px; }
.modal-secondary { border: 1px solid #e7cfda; color: #6c2442; background: white; }

.gate-modal { max-width: 470px; padding: 44px; text-align: center; }
.gate-modal[open] { display: block; }
.gate-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 22px; color: white; background: linear-gradient(135deg, #ff5c99, #b91c57); box-shadow: 0 18px 38px rgba(209, 31, 98, .25); font-size: 28px; }
.gate-actions { display: grid; gap: 9px; margin-top: 26px; }
.gate-footnote { margin: 20px 0 0; font-size: 10px; }
.noscript { position: fixed; z-index: 100; inset: auto 15px 15px; padding: 15px; border-radius: 12px; color: #2b1520; background: white; text-align: center; }

@media (max-width: 760px) {
  :root { --header: 64px; }
  .home-header { grid-template-columns: 1fr auto; gap: 10px; padding: 0 12px 0 15px; }
  .brand { font-size: 21px; }
  .brand b { font-size: 14px; }
  .preview-note { position: fixed; z-index: 28; top: calc(var(--header) + 10px); left: 50%; width: max-content; max-width: calc(100vw - 24px); padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(15, 8, 14, .7); transform: translateX(-50%); backdrop-filter: blur(13px); font-size: 9px; }
  .home-nav { gap: 6px; }
  .home-nav a { min-height: 36px; padding: 0 13px; font-size: 11px; }
  .profile-reel { min-height: 100%; max-height: 100%; padding: 0; }
  .profile-reel::before { display: none; }
  .reel-card { width: 100vw; max-width: none; height: 100%; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
  .profile-meta { right: 15px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 15px; }
  .profile-meta h2 { font-size: 30px; }
  .profile-bio { max-width: 96%; font-size: 11.5px; }
  .reel-actions { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; }
  .reel-action { min-height: 50px; gap: 5px; font-size: 9.5px; }
  .reel-action svg { width: 16px; height: 16px; }
  .profile-modal[open] { display: block; }
  .profile-modal > img { width: 100%; height: min(42svh, 390px); min-height: 0; }
  .modal-copy { padding: 28px 23px 30px; }
  .modal h2 { font-size: 29px; }
  .gate-modal { padding: 38px 22px 28px; }
}

@media (max-width: 380px) {
  .login-link { display: none !important; }
  .profile-tags span:nth-child(3) { display: none; }
  .reel-action { padding-inline: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
