/* =========================================================
   Emma Dalia — liens officiels
   Dark leather & crimson, BDSM boudoir mood.
   ========================================================= */

:root {
  --ink: #f4e9e6;
  --ink-soft: rgba(244, 233, 230, 0.72);
  --blood: #c01830;
  --blood-deep: #7c0e22;
  --blood-dark: #4a0814;
  --leather: #120709;
  --leather-2: #1d0b0f;
  --steel: #9b95a0;
  --ring: rgba(192, 24, 48, 0.55);
}

* { box-sizing: border-box; }

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #0a0507;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Background ---------- */

.bgwrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg {
  position: absolute;
  inset: -4%;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center 38%;
  animation: kenburns 38s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.07) translateY(-1.2%); }
}

.bg-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 86% at 50% 30%, rgba(10, 4, 6, 0) 36%, rgba(10, 4, 6, 0.82) 100%),
    linear-gradient(180deg, rgba(10, 4, 6, 0.42) 0%, rgba(10, 4, 6, 0.18) 34%, rgba(16, 4, 8, 0.66) 100%);
}

/* ---------- Drifting embers ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  color: rgba(224, 70, 96, 0.5);
  text-shadow: 0 0 10px rgba(192, 24, 48, 0.8);
  animation: floatSpark 9s ease-in-out infinite;
}

.spark--1 { top: 16%; left: 10%; font-size: 15px; animation-delay: 0s; }
.spark--2 { top: 30%; right: 8%; font-size: 11px; animation-delay: 2.3s; }
.spark--3 { bottom: 24%; left: 14%; font-size: 12px; animation-delay: 4.1s; }
.spark--4 { bottom: 12%; right: 13%; font-size: 16px; animation-delay: 6s; }

@keyframes floatSpark {
  0%, 100% { opacity: 0.15; transform: translateY(0) scale(0.9); }
  50%      { opacity: 0.85; transform: translateY(-16px) scale(1.05); }
}

/* ---------- Card ---------- */

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 44px 26px 24px;
  background: linear-gradient(180deg, rgba(18, 7, 9, 0.72), rgba(12, 5, 7, 0.82));
  border: 1px solid rgba(192, 24, 48, 0.28);
  border-radius: 22px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(244, 233, 230, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.card__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(192, 24, 48, 0.75);
  pointer-events: none;
}

.card__corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.card__corner--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.card__corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.card__corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  margin-bottom: 20px;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--leather-2), var(--blood-dark));
  background-size: cover;
  background-position: center 18%;
  border: 3px solid #1a0a0d;
  box-shadow:
    0 0 0 2px var(--ring),
    0 0 26px rgba(192, 24, 48, 0.4),
    0 14px 30px rgba(0, 0, 0, 0.55);
}

.avatar.has-image {
  background-size: 142%;
  background-position: 34% 8%;
  background-repeat: no-repeat;
}

.avatar__initial {
  font-family: "Cinzel", serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.avatar.has-image .avatar__initial { display: none; }

/* little padlock hanging under the avatar — her collar lock */
.collar-lock {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  font-size: 22px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
  animation: lockSway 5s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes lockSway {
  0%, 100% { transform: translateX(-50%) rotate(-5deg); }
  50%      { transform: translateX(-50%) rotate(5deg); }
}

.hero__ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
  width: 100%;
  max-width: 260px;
}

.hero__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 24, 48, 0.75));
}

.hero__line:last-child {
  background: linear-gradient(90deg, rgba(192, 24, 48, 0.75), transparent);
}

.hero__icon {
  font-size: 15px;
  filter: grayscale(0.2) drop-shadow(0 0 6px rgba(192, 24, 48, 0.5));
}

.name {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow:
    0 0 18px rgba(192, 24, 48, 0.45),
    0 2px 14px rgba(0, 0, 0, 0.8);
}

.tagline {
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.tagline__dot { color: var(--blood); font-style: normal; }

/* ---------- Links ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 15px 20px;
  border-radius: 14px;
  text-align: center;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #1e0d11, #130709);
  border: 1px solid rgba(192, 24, 48, 0.32);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(244, 233, 230, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.link-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 24, 48, 0.65);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(192, 24, 48, 0.25),
    inset 0 1px 0 rgba(244, 233, 230, 0.08);
}

.link-btn:active { transform: translateY(0) scale(0.985); }

/* MYM — the one she wants you to press */
.link-btn--primary {
  font-size: 17.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #b61530 0%, #7c0e22 100%);
  border: 1px solid rgba(255, 120, 140, 0.55);
  /* box-shadow-only pulse: composes safely with the entrance transform */
  animation: bloodPulse 2.6s ease-in-out infinite;
}

.link-btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

@keyframes bloodPulse {
  0%, 100% {
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.5),
      0 0 0 0 rgba(192, 24, 48, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  50% {
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.55),
      0 0 26px 6px rgba(192, 24, 48, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

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

.footer {
  margin-top: 26px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 233, 230, 0.4);
}

/* ---------- Entrance ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .card { max-width: 460px; padding: 52px 34px 28px; }
  .bg { background-position: center 30%; }
  .name { font-size: 38px; }
  .avatar { width: 140px; height: 140px; }
}
