:root {
  --bg: #0b0a0c;
  --surface: rgba(24, 22, 27, 0.78);
  --surface-hover: rgba(36, 33, 40, 0.92);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(220, 220, 230, 0.28);
  --text: #f4f1f4;
  --muted: #a39ea8;
  --accent: #c8102e;
  --chrome: linear-gradient(135deg, #f5f5f7 0%, #a9a9b2 45%, #ececf0 55%, #7d7d86 100%);
  --radius: 18px;
  --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "UnifrakturMaguntia", "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Background (blurred photo, visible mostly on desktop) ---------- */

.bg {
  position: fixed;
  inset: -40px;
  z-index: -1;
  background: url("assets/madu-1.webp") center / cover no-repeat;
  filter: blur(40px) brightness(0.28) saturate(0.8);
  transform: scale(1.1);
}

/* ---------- Age gate ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: var(--gutter);
  background: rgba(6, 5, 7, 0.82);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.is-gated { overflow: hidden; }
.is-gated .gate { display: grid; }
.is-gated .page { filter: blur(14px); pointer-events: none; user-select: none; }

.gate__card {
  width: 100%;
  max-width: 400px;
  padding: 32px 24px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: #121014;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.gate__card h2 {
  margin: 16px 0 8px;
  font-size: 1.5rem;
}

.gate__card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge18 {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.btn + .btn { margin-top: 10px; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #e01535; }

.btn--ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--text); }

/* ---------- Language switch ---------- */

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lang button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang button[aria-pressed="true"] { background: #fff; color: #000; }

.lang--gate { margin-top: 20px; }

/* ---------- Layout ---------- */

.topbar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(var(--gutter), env(safe-area-inset-right));
  z-index: 10;
}

.layout {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100dvh;
}

.hero {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 10, 12, 0) 45%, rgba(11, 10, 12, 0.85) 82%, var(--bg) 100%);
}

.content {
  position: relative;
  margin-top: -96px;
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
}

/* ---------- Profile ---------- */

.profile { text-align: center; margin-bottom: 24px; }

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  line-height: 1.05;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
}

.handle {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.bio {
  max-width: 34ch;
  margin: 0 auto;
  color: #d6d2d8;
  font-size: 0.98rem;
}

/* ---------- Main links (big) ---------- */

.links { display: grid; gap: 12px; }

.link {
  --brand: #fff;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}

.link:hover { background: var(--surface-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.link:active { transform: scale(0.98); }

.link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
}

.link__icon svg { width: 26px; height: 26px; }

.link__icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  transform: scale(1.12);
}

.link--privacy .link__icon { overflow: hidden; background: #f3ede6; }

.link__text { flex: 1; min-width: 0; display: grid; }

.link__text strong { font-size: 1.08rem; font-weight: 700; }

.link__text small { color: var(--muted); font-size: 0.85rem; }

.link__tag {
  flex: none;
  padding: 4px 8px;
  border: 1px solid rgba(200, 16, 46, 0.6);
  border-radius: 8px;
  color: #ff5a73;
  font-size: 0.72rem;
  font-weight: 700;
}

.link--privacy  { --brand: #f7913d; }
.link--onlyfans { --brand: #00aff0; }
.link--telegram { --brand: #229ed9; }
.link--x        { --brand: #000; }
.link--x .link__icon { border: 1px solid var(--border-strong); }

/* ---------- Secondary links (small) ---------- */

.section-label {
  margin: 28px 0 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: #d6d2d8;
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.social svg { width: 22px; height: 22px; }
.social:hover { background: var(--surface-hover); color: #fff; transform: translateY(-2px); }
.social:active { transform: scale(0.97); }

/* ---------- Footer ---------- */

.footer {
  margin-top: 32px;
  color: #6f6a74;
  font-size: 0.75rem;
  text-align: center;
}

.footer p { margin: 4px 0; }

/* ---------- Larger screens: same vertical column, framed as a card ---------- */

@media (min-width: 600px) {
  .layout {
    max-width: 480px;
    min-height: 0;
    margin: 48px auto;
    border: 1px solid var(--border-strong);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  }

  .content { padding: 0 24px 32px; }
}

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