:root {
  --accent-from: #ff5f8f;
  --accent-to: #ff9a5a;
  --bg: #0b0509;
  --bg-card: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.07);
  --text: #f5eef0;
  --text-dim: rgba(245, 238, 240, 0.6);
  --hero-bg: url('/images/hero-bg.jpg');
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.bg-hero {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 650px 420px at 50% 0%, color-mix(in srgb, var(--accent-from) 22%, transparent), transparent 70%) no-repeat,
    linear-gradient(180deg, rgba(11, 5, 9, 0.55) 0%, rgba(11, 5, 9, 0.82) 55%, rgba(11, 5, 9, 0.96) 100%) no-repeat,
    var(--hero-bg) center / cover no-repeat,
    var(--bg);
}

.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: block;
  width: 100vw;
  height: 100vh;
}

.hidden { display: none !important; }

.brand-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-pill:active { transform: scale(0.97); }

@keyframes btn-pop-3d {
  0% { transform: perspective(600px) translateY(0) scale(1) rotateX(0deg) rotateY(0deg); }
  30% { transform: perspective(600px) translateY(-8px) scale(1.06) rotateX(14deg) rotateY(-12deg); }
  60% { transform: perspective(600px) translateY(2px) scale(0.97) rotateX(-6deg) rotateY(6deg); }
  100% { transform: perspective(600px) translateY(0) scale(1) rotateX(0deg) rotateY(0deg); }
}

.btn-pop {
  animation: btn-pop-3d 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-gradient {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-from) 70%, transparent), color-mix(in srgb, var(--accent-to) 70%, transparent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -10px 14px -10px rgba(0, 0, 0, 0.25),
    0 10px 28px -10px var(--accent-from);
}

.btn-gradient:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 14px -10px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px 6px color-mix(in srgb, var(--accent-from) 60%, transparent),
    0 12px 30px -10px var(--accent-from);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-outline:active { transform: scale(0.97); }

.btn-outline:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 24px 4px rgba(255, 255, 255, 0.16);
}

/* Age gate */

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-card {
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.avatar-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  box-shadow: 0 0 40px -6px var(--accent-from);
}

.avatar-wrap.small {
  width: 70px;
  height: 70px;
  margin-bottom: 14px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg);
  background: #241019;
}

.fine-print {
  font-size: 0.72rem;
  color: rgba(245, 238, 240, 0.4);
  margin-top: 16px;
}

/* Main page */

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px 60px;
}

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

.links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;
  display: block;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Featured card */

.link-card.featured .media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.03);
}

.badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.badge.accent {
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}

.featured .body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 10px;
}

.featured .label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.chip {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}

.featured .subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.open-btn {
  padding: 10px 18px;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Simple row */

.link-card.simple {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.simple .info {
  flex: 1;
  min-width: 0;
}

.simple .label {
  font-weight: 600;
  font-size: 0.95rem;
}

.simple .subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simple .arrow {
  opacity: 0.45;
  flex-shrink: 0;
}

.site-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Warning overlay */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 4, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.warn-card {
  background: #150a10;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
}

.warn-card h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.warn-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 22px;
}

.warn-actions {
  display: flex;
  gap: 10px;
}

.warn-actions .btn-outline,
.warn-actions .btn-pill {
  flex: 1;
}
