/* ───────────── base ───────────── */
:root {
  --pink-1: #ffccd5;
  --pink-2: #ff9ab5;
  --pink-3: #ff6699;
  --pink-4: #e066a3;
  --lavender: #f0f0ff;
  --glow: rgba(255, 154, 181, 0.55);
  --glass: rgba(20, 8, 14, 0.38);
  --glass-edge: rgba(255, 204, 213, 0.18);
  --text: #fff;
  --muted: rgba(255, 236, 242, 0.78);
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pointer: url("../cursor.cur"), pointer;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #14080d;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink-3); color: #fff; }

/* ───────────── background video ───────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(20, 8, 14, 0) 35%, rgba(20, 8, 14, 0.55) 100%),
    rgba(20, 8, 14, 0.15);
}

/* ───────────── intro ───────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(10, 4, 8, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: var(--pointer);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 1.2s ease, filter 1.2s ease, visibility 0s linear 1.2s;
}

.intro:focus-visible { outline: none; }
.intro:focus-visible .intro__title { text-shadow: 0 0 28px var(--glow); }

.intro.is-gone {
  opacity: 0;
  filter: blur(12px);
  visibility: hidden;
  pointer-events: none;
}

.intro__inner {
  text-align: center;
  padding: 24px;
  transition: transform 1.2s ease;
}

.intro.is-gone .intro__inner { transform: scale(1.08); }

.intro__title {
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--pink-1), var(--pink-2), var(--pink-3), var(--pink-4), var(--lavender), var(--pink-1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 102, 153, 0.35));
  animation: flow 10s linear infinite;
}

.intro__heart {
  display: inline-block;
  color: var(--pink-3);
  -webkit-text-fill-color: var(--pink-3);
  margin-left: 6px;
  font-size: 0.7em;
  vertical-align: 0.12em;
  animation: beat 1.6s ease-in-out infinite;
}

.intro__hint {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: lowercase;
  color: var(--muted);
  animation: breathe 2.4s ease-in-out infinite;
}

.hint-touch { display: none; }
@media (hover: none) {
  .hint-touch { display: inline; }
  .hint-desktop { display: none; }
}

/* ───────────── profile card ───────────── */
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 90px 20px 40px;
}

.card {
  position: relative;
  width: min(420px, 100%);
  padding: 0 28px 22px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 1s ease 0.35s, transform 1s cubic-bezier(.2, .8, .2, 1) 0.35s;
}

body.is-entered .card {
  opacity: 1;
  transform: none;
}

.card__avatar {
  width: 132px;
  height: 132px;
  margin: -66px auto 0;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--pink-1), var(--pink-3), var(--pink-4));
  box-shadow: 0 0 30px var(--glow);
}

.card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1d0c14;
}

.card__name {
  position: relative;
  display: inline-block;
  margin-top: 14px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
}

.card__name-text {
  background: linear-gradient(90deg, var(--pink-1), var(--pink-2), var(--pink-3), var(--pink-4), var(--lavender), var(--pink-1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 182, 193, 0.55));
  animation: flow 12s linear infinite;
}

/* little twinkles around the name */
.card__name::before,
.card__name::after {
  content: "\2726";
  position: absolute;
  color: var(--pink-1);
  text-shadow: 0 0 8px var(--pink-2);
  pointer-events: none;
  animation: twinkle 2.8s ease-in-out infinite;
}

.card__name::before { top: 2px; left: -18px; font-size: 13px; }
.card__name::after  { bottom: 4px; right: -20px; font-size: 16px; animation-delay: 1.4s; }

.card__bio {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}

.card__footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 204, 213, 0.12);
}

.card__views {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.card__views svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───────────── music button ───────────── */
.music {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  font: 600 13px/1 var(--font);
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: var(--pointer);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease .9s, transform .8s ease .9s, background .25s, border-color .25s;
}

body.is-entered .music { opacity: 1; transform: none; }

.music:hover, .music:focus-visible {
  background: rgba(255, 102, 153, 0.22);
  border-color: rgba(255, 154, 181, 0.45);
  outline: none;
}

.music svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music svg .fill { fill: currentColor; stroke: none; }

.music__label::before { content: "\266A  "; color: var(--pink-2); }

.music__off { display: none; }
.music[aria-pressed="true"] .music__on { display: none; }
.music[aria-pressed="true"] .music__off { display: block; }
.music[aria-pressed="true"] .music__label { opacity: 0.6; text-decoration: line-through; }

/* ───────────── animations ───────────── */
@keyframes flow {
  from { background-position: 0% 50%; }
  to   { background-position: 300% 50%; }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.18); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.12); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.1) rotate(20deg); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* ───────────── small screens ───────────── */
@media (max-width: 480px) {
  .card { padding: 0 20px 18px; }
  .card__avatar { width: 112px; height: 112px; margin-top: -56px; }
  .card__name { font-size: 34px; }
  .card__bio { font-size: 16px; }
  .music__label { display: none; }
  .music { padding: 10px; }
}

/* ───────────── reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
