/* =========================================================
   I Love You — v9
   Words TRAVEL along heart outline. Heart shape is static.
   CSS offset-path + GPU-only animation. Neon pink glow.
   ========================================================= */

:root {
  --pink: #ff2d95;
  --pink-glow: rgba(255, 45, 149, 0.9);
  --heart-size: min(82vmin, 660px);
  --blink: 2.6s;
  --travel: 50s;
}

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

html, body { width: 100%; height: 100%; overflow: hidden; }

body {
  background: #000;
  font-family: "Poppins", sans-serif;
}

/* ---------- Scene ---------- */
.scene {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart {
  position: relative;
  width: var(--heart-size);
  height: var(--heart-size);
  contain: layout style paint;
  overflow: visible;
}

/* ---------- Shared text style ---------- */
.ily {
  color: var(--pink);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  text-shadow:
    0 0 5px rgba(255,255,255,0.4),
    0 0 18px var(--pink);
}

/* ---------- Moving words (travel along heart path) ---------- */
.ily-move {
  position: absolute;
  offset-rotate: 0deg;
  animation: travel var(--travel) linear infinite;
  will-change: offset-distance;
  contain: layout style;
}

@keyframes travel {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  48%, 52% { opacity: .4; }
}

/* ---------- Static center words ---------- */
.ily-center {
  position: absolute;
  font-weight: 500;
  transform: translate(-50%, -50%);
  animation: blink var(--blink) ease-in-out infinite;
}

/* ---------- Center brand ---------- */
.center-brand {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
  user-select: none;
}

.brand-kitty {
  font-family: "Great Vibes", cursive;
  font-size: clamp(38px, 7vmin, 64px);
  color: var(--pink);
  text-shadow:
    0 0 6px rgba(255,255,255,0.35),
    0 0 20px var(--pink),
    0 0 50px var(--pink-glow);
  line-height: 1.1;
}

.brand-ide {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 4vmin, 36px);
  letter-spacing: 0.35em;
  color: #fff;
  text-shadow:
    0 0 6px rgba(255,255,255,0.3),
    0 0 16px var(--pink);
  line-height: 1;
  margin-top: -2px;
}

/* ---------- Footer credit ---------- */
.credit {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  z-index: 10;
  pointer-events: none;
  user-select: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root { --heart-size: 90vmin; }
  .brand-kitty { font-size: clamp(28px, 6vmin, 44px); }
  .brand-ide { font-size: clamp(14px, 3.5vmin, 24px); }
  .credit { font-size: 9px; letter-spacing: 0.15em; bottom: 10px; }
}

@media (max-width: 400px) {
  :root { --heart-size: 95vmin; }
}
