@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
  --ink: #fff8fb;
  --muted: rgba(255, 245, 250, 0.72);
  --rose: #f08ba8;
  --red: #b92f57;
  --violet: #7c3b78;
  --night: #160912;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

.is-locked { overflow: hidden; }

.profile {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.profile__media,
.profile__media img,
.profile__veil { position: absolute; inset: 0; width: 100%; height: 100%; }

.profile__media img { object-fit: cover; object-position: center 38%; }

.profile__veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 5, 13, 0.78) 0%, rgba(25, 8, 20, 0.45) 39%, rgba(36, 10, 27, 0.06) 72%),
    linear-gradient(0deg, rgba(19, 5, 14, 0.82) 0%, transparent 48%),
    radial-gradient(circle at 73% 28%, rgba(234, 96, 145, 0.14), transparent 34%);
}

.profile__content {
  position: relative;
  z-index: 2;
  width: min(610px, calc(100% - 80px));
  margin: 0 0 clamp(56px, 8vh, 96px) clamp(34px, 7vw, 116px);
  animation: reveal 0.9s cubic-bezier(.2,.75,.2,1) both;
}

.profile__eyebrow,
.age-card__eyebrow {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
}

h1 {
  margin: 0;
  font-size: clamp(64px, 8.3vw, 132px);
  line-height: .77;
  letter-spacing: -.065em;
  text-shadow: 0 8px 35px rgba(24, 5, 15, .3);
}

h1 span {
  color: #f6a0b8;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}

.profile__intro { margin: 31px 0 26px; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); }

.profile__actions { display: grid; gap: 12px; width: min(470px, 100%); }

.telegram {
  width: 100%;
  min-height: 76px;
  padding: 13px 17px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  background: linear-gradient(115deg, rgba(190,44,88,.9), rgba(116,48,111,.87));
  box-shadow: 0 18px 60px rgba(99, 20, 67, .35), inset 0 1px rgba(255,255,255,.18);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.telegram:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.42); box-shadow: 0 23px 70px rgba(99,20,67,.5); }
.telegram--sample { background: rgba(28, 13, 24, .72); border-color: rgba(243, 144, 175, .38); box-shadow: 0 15px 45px rgba(19, 5, 15, .28), inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.telegram--sample:hover { background: rgba(54, 21, 43, .82); }
.telegram:focus-visible, button:focus-visible { outline: 3px solid #ffd1df; outline-offset: 4px; }
.telegram small { display: block; margin-bottom: 3px; opacity: .68; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.telegram__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.13); }
.telegram__icon svg { width: 25px; fill: currentColor; }
.telegram__arrow { opacity: .65; font-size: 22px; }
.profile__note { display: flex; align-items: center; gap: 8px; margin: 17px 0 0 3px; color: rgba(255,255,255,.52); font-size: 11px; }
.profile__note span { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--rose); }

.telegram--coffee { width: min(470px, 100%); margin-top: 12px; }
.telegram__icon--coffee { font-size: 22px; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 4, 10, .78);
  backdrop-filter: blur(24px) saturate(.75);
  transition: opacity .55s ease, visibility .55s ease;
}

.age-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(181,41,89,.12), transparent 42%, rgba(104,49,113,.14));
  pointer-events: none;
}

.age-gate__glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: rgba(207,51,104,.16); filter: blur(80px); }

.age-card {
  position: relative;
  width: min(470px, 100%);
  padding: 42px 42px 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(45,19,35,.93), rgba(22,9,18,.96));
  box-shadow: 0 35px 100px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.08);
  text-align: center;
  animation: cardIn .6s cubic-bezier(.2,.8,.2,1) both;
}

.age-card__badge { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 26px; border: 1px solid rgba(255,183,202,.4); border-radius: 50%; background: linear-gradient(145deg, rgba(189,45,87,.32), rgba(114,47,110,.24)); box-shadow: 0 0 45px rgba(201,51,100,.18); font-size: 27px; font-weight: 700; }
.age-card h2 { margin: 0 0 16px; font-size: clamp(28px, 5vw, 39px); line-height: 1.05; letter-spacing: -.045em; }
.age-card #ageDescription { margin: 0 auto 28px; color: rgba(255,245,250,.67); font-size: 14px; line-height: 1.65; }
.age-card__confirm { width: 100%; min-height: 58px; display: flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: linear-gradient(115deg, var(--red), var(--violet)); color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; box-shadow: 0 13px 35px rgba(126,31,81,.3); transition: transform .2s ease, filter .2s ease; }
.age-card__confirm:hover { transform: translateY(-2px); filter: brightness(1.09); }
.age-card__confirm span { font-size: 20px; }
.age-card__leave { margin-top: 15px; border: 0; background: transparent; color: rgba(255,255,255,.48); cursor: pointer; font-size: 12px; }
.age-card__leave:hover { color: rgba(255,255,255,.8); }
.age-card__legal { margin: 25px auto 0; max-width: 350px; color: rgba(255,255,255,.38); font-size: 9px; line-height: 1.55; }

.age-gate.is-accepted { opacity: 0; visibility: hidden; pointer-events: none; }

.exit-screen { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 40%, #351326, var(--night) 55%); text-align: center; }
.exit-screen strong { display: block; color: var(--rose); font-size: 64px; }
.exit-screen p { color: var(--muted); }

@keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }

@media (max-width: 700px) {
  .profile { align-items: end; }
  .profile__media img { object-position: center center; }
  .profile__veil { background: linear-gradient(0deg, rgba(18,5,14,.94) 0%, rgba(22,7,17,.42) 43%, rgba(42,11,30,.08) 73%), radial-gradient(circle at 55% 70%, rgba(203,54,103,.14), transparent 46%); }
  .profile__content { width: calc(100% - 36px); margin: 0 18px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
  .profile__eyebrow { margin-bottom: 10px; }
  h1 { font-size: clamp(55px, 19vw, 82px); line-height: .82; }
  .profile__intro { margin: 20px 0 18px; font-size: 15px; }
  .profile__actions { gap: 9px; }
  .telegram { min-height: 66px; padding: 9px 12px; text-align: left; border-radius: 18px; }
  .telegram__icon { width: 44px; height: 44px; border-radius: 13px; }
  .profile__note { justify-content: center; }
  .telegram--coffee { width: 100%; margin-top: 9px; }
  .age-card { padding: 34px 24px 28px; border-radius: 25px; }
  .age-card__badge { width: 68px; height: 68px; margin-bottom: 22px; font-size: 24px; }
}

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