/* ---------- Tokens (Royal throne) ---------- */
:root {
  --burgundy: #6b1430;
  --crimson: #97203f;       /* velvet button */
  --crimson-light: #b13456;
  --crimson-dark: #6a1129;

  --rose: #c8527a;          /* a "pinky" royal accent */

  --gold: #d4af37;
  --gold-light: #f3df95;
  --gold-dark: #a07c1d;

  --ivory: #fbf4e4;
  --white: #ffffff;

  --ink: #2a0d18;           /* deep burgundy-black outline */
  --text-dark: #3d1424;
  --text-muted: #8a6470;

  --card-bg: #fdf8ee;
  --card-border: #2a0d18;
  --card-shadow:
    0 0 0 2px var(--gold) inset,
    0 16px 0 -2px rgba(42, 13, 24, 0.12),
    0 34px 70px -12px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  overflow-x: hidden;
  position: relative;
  background: #1a0a10;
}

/* ---------- Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("background.png");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  animation: bg-drift 46s ease-in-out infinite alternate;
}

@keyframes bg-drift {
  from { transform: scale(1.04); }
  to   { transform: scale(1.1); }
}

/* regal vignette so the card and text pop */
.bg-tint {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 95% at 50% 14%, rgba(255, 220, 150, 0.10) 0%, transparent 50%),
    radial-gradient(120% 120% at 50% 50%, transparent 40%, rgba(10, 4, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(20, 8, 14, 0.30) 0%, rgba(20, 8, 14, 0.45) 100%);
  pointer-events: none;
}

/* ---------- Floating sparkles ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.spark {
  position: absolute;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  opacity: 0.8;
  animation: twinkle 3.6s ease-in-out infinite;
}
.spark--1 { top: 16%; left: 12%; font-size: 18px; animation-delay: 0s; }
.spark--2 { top: 30%; right: 14%; font-size: 24px; animation-delay: 0.8s; }
.spark--3 { bottom: 22%; left: 18%; font-size: 14px; animation-delay: 1.6s; }
.spark--4 { bottom: 14%; right: 20%; font-size: 20px; animation-delay: 2.3s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 0.95; transform: scale(1.15); }
}

/* ---------- Card ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 44px 28px 26px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #fffaf0 0%, var(--card-bg) 100%);
  border: 3px solid var(--card-border);
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* faint royal watermark inside the card */
.card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.10) 0%, transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(151, 32, 63, 0.08) 0%, transparent 42%);
  pointer-events: none;
}

/* gold gem corners */
.card__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  background: var(--gold);
  border-radius: 4px;
  transform: rotate(45deg);
}
.card__corner--tl { top: -8px; left: -8px; }
.card__corner--tr { top: -8px; right: -8px; background: var(--rose); }
.card__corner--bl { bottom: -8px; left: -8px; background: var(--rose); }
.card__corner--br { bottom: -8px; right: -8px; }

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

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.avatar-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-top: 10px;
}

.crown {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  font-size: 44px;
  z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  animation: crown-bob 5s ease-in-out infinite;
}

@keyframes crown-bob {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50%      { transform: translateX(-50%) translateY(-5px) rotate(2deg); }
}

.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(140deg, #f3df95 0%, #c8527a 52%, #6b1430 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  box-shadow:
    0 0 0 5px var(--gold),
    0 0 0 8px var(--ink),
    0 14px 26px -8px rgba(0, 0, 0, 0.6);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

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

/* When a real photo is set: frame her foreground body AND her mirror
   reflection together (the full composition) */
.avatar.has-image {
  background-size: 128%;
  background-position: 19% 5%;
}

.avatar__initial {
  font-family: "Cinzel", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 58px;
  color: var(--ivory);
  line-height: 1;
  text-shadow: 0 3px 0 var(--ink);
}

.hero__ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 240px;
  margin-top: 2px;
}

.hero__line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold));
}
.hero__ornament .hero__line:last-child {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark), transparent);
}

.hero__icon {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 2px 1px rgba(42, 13, 24, 0.4));
}

/* Regal name */
.name {
  position: relative;
  font-family: "Cinzel", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--gold);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 var(--gold-dark),
    0 3px 6px rgba(0, 0, 0, 0.35);
}

.tagline {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--crimson);
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 60px;
  padding: 16px 22px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: var(--crimson);
  color: var(--ivory);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 0 2px var(--gold) inset,
    0 5px 0 0 var(--crimson-dark),
    0 5px 0 3px var(--ink);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  transition:
    transform 0.12s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.12s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* glossy sheen */
.link-btn::before {
  content: "";
  position: absolute;
  inset: 4px 4px 50% 4px;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.link-btn:hover {
  background: var(--crimson-light);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px var(--gold) inset,
    0 7px 0 0 var(--crimson-dark),
    0 7px 0 3px var(--ink);
}
.link-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 2px var(--gold) inset,
    0 2px 0 0 var(--crimson-dark),
    0 2px 0 3px var(--ink);
}
.link-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Primary — luxe gold with dark royal text */
.link-btn--primary {
  background: linear-gradient(180deg, #f7e6a2 0%, var(--gold) 100%);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 0 2px #fff7df inset,
    0 5px 0 0 var(--gold-dark),
    0 5px 0 3px var(--ink);
}
.link-btn--primary:hover {
  background: linear-gradient(180deg, #fff0bf 0%, #e6c456 100%);
  box-shadow:
    0 0 0 2px #fff7df inset,
    0 7px 0 0 var(--gold-dark),
    0 7px 0 3px var(--ink);
}
.link-btn--primary:active {
  box-shadow:
    0 0 0 2px #fff7df inset,
    0 2px 0 0 var(--gold-dark),
    0 2px 0 3px var(--ink);
}

/* ---------- Age gate (verify.html) ---------- */
.verify-crown {
  align-self: center;
  font-size: 56px;
  line-height: 1;
  margin-top: 4px;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
  animation: crown-bob-center 5s ease-in-out infinite;
}

@keyframes crown-bob-center {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-5px) rotate(2deg); }
}

.verify-title {
  font-family: "Cinzel", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--gold);
  -webkit-text-stroke: 1.2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--gold-dark), 0 3px 6px rgba(0, 0, 0, 0.35);
}

.verify-text {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-dark);
}
.verify-text strong { color: var(--crimson); }

.verify-note {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* "leave" button — muted, secondary to the gold confirm */
.link-btn--leave {
  background: #efe6d4;
  color: var(--text-dark);
  text-shadow: none;
  box-shadow:
    0 0 0 2px #fff inset,
    0 5px 0 0 #cdbfa3,
    0 5px 0 3px var(--ink);
}
.link-btn--leave:hover {
  background: #f6efe1;
  box-shadow:
    0 0 0 2px #fff inset,
    0 7px 0 0 #cdbfa3,
    0 7px 0 3px var(--ink);
}
.link-btn--leave:active {
  box-shadow:
    0 0 0 2px #fff inset,
    0 2px 0 0 #cdbfa3,
    0 2px 0 3px var(--ink);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 2px;
  color: var(--text-muted);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 380px) {
  .card { padding: 40px 20px 22px; border-radius: 18px; }
  .name { font-size: 34px; }
  .avatar-wrap { width: 112px; height: 112px; }
  .avatar__initial { font-size: 50px; }
  .crown { font-size: 38px; top: -30px; }
  .link-btn { min-height: 56px; font-size: 13.5px; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .card { max-width: 450px; padding: 54px 36px 30px; }
  .name { font-size: 48px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg, .spark, .crown, .card, .link-btn {
    animation: none !important;
    transition: none !important;
  }
  .link-btn:hover, .link-btn:active { transform: none; }
}
