:root {
  --bg: #ffb7c5;
  --bg-deep: #ff9fb3;
  --ink: #2a2233;
  --ink-soft: #7a5d6b;
  --card: rgba(255, 255, 255, 0.55);
  --card-hover: rgba(255, 255, 255, 0.8);
  --accent: #ff4f8b;
  --radius: 22px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 62vh;
  max-height: 560px;
  min-height: 380px;
  background: linear-gradient(160deg, #f6d6df, #e8b3c2) center / cover no-repeat;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(255, 183, 197, 0) 0%, var(--bg) 92%);
}

.identity {
  position: relative;
  z-index: 2;
  margin-top: -96px;
  text-align: center;
  padding: 0 16px;
}
.name {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.verified { width: 30px; height: 30px; flex: none; }
.bio {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ---------- main card ---------- */
.feature {
  display: block;
  position: relative;
  margin: 28px 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ffd1dc, #ff8fab);
  box-shadow: 0 12px 30px rgba(140, 40, 80, 0.25);
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .2s ease;
}
.feature:active { transform: scale(.98); }
.feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 55%);
}
.feature span {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  z-index: 1;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.feature .pulse {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255,79,139,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(255,79,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,79,139,0); }
}

/* ---------- link buttons ---------- */
.links {
  display: grid;
  gap: 12px;
  margin: 22px 16px 0;
}
.btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--card-hover); }
.btn:active { transform: scale(.98); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn .label { flex: 1; }
.btn .arrow { opacity: .4; font-size: 20px; }

.footer {
  text-align: center;
  margin-top: 36px;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer a { color: inherit; }

/* ---------- 18+ gate ---------- */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.gate-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,.7);
  border-radius: 28px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(140,40,80,.2);
}
.gate-card .badge {
  display: inline-block;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 8px 18px;
}
.gate-card h1 { font-size: 26px; margin-top: 18px; }
.gate-card p { color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.gate-actions { display: grid; gap: 10px; margin-top: 24px; }
.primary {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.secondary {
  display: block;
  padding: 14px;
  border-radius: 16px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

/* ---------- open-in-browser hint ---------- */
.hint {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(30, 10, 20, .6);
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 16px;
}
.hint[hidden] { display: none; }
.hint-box {
  background: #fff; color: var(--ink);
  border-radius: 20px; padding: 20px;
  max-width: 300px; margin-top: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.hint-box b { display: block; font-size: 17px; margin-bottom: 6px; }
.hint-box p { color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.hint-box .row { display: flex; gap: 8px; margin-top: 14px; }
.hint-box .row a, .hint-box .row button {
  flex: 1; text-align: center; padding: 10px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; border: 0;
}
.hint-box .row a { background: var(--accent); color: #fff; }
.hint-box .row button { background: #f3e6ea; color: var(--ink); }

/* ---------- simple text page ---------- */
.doc { max-width: 640px; margin: 0 auto; padding: 40px 16px; line-height: 1.6; }
.doc h1 { margin-bottom: 16px; }
.doc p { margin-bottom: 12px; color: var(--ink-soft); }
.doc a { color: var(--ink); }

/* ---------- entrance animation ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroIn {
  from { opacity: 0; transform: scale(1.08); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes shine {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  60%, 100% { transform: translateX(260%) skewX(-18deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-6deg); }
  40% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
}

.hero img       { animation: heroIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
.name           { animation: rise .8s .15s cubic-bezier(.2,.7,.2,1) both; }
.bio            { animation: rise .8s .3s cubic-bezier(.2,.7,.2,1) both; }
.feature        { animation: rise .9s .45s cubic-bezier(.2,.7,.2,1) both; }
.links .btn     { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.links .btn:nth-child(1) { animation-delay: .6s; }
.links .btn:nth-child(2) { animation-delay: .72s; }
.links .btn:nth-child(3) { animation-delay: .84s; }
.footer         { animation: rise .8s 1s both; }

/* shine sweep across the main card */
.feature::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  z-index: 2;
  pointer-events: none;
  animation: shine 3.2s 1.6s ease-in-out infinite;
}

/* small wiggle on the verified badge */
.verified { animation: wiggle 1.2s 1.4s ease-in-out both; transform-origin: center; }

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