@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Pacifico&family=M+PLUS+Rounded+1c:wght@400;700;800&display=swap');

:root {
  --pink:       #f7c5d5;
  --pink-mid:   #f0a0be;
  --pink-deep:  #e07898;
  --rose:       #fde8ef;
  --cream:      #fff8f0;
  --lavender:   #ede0f8;
  --mint:       #d8f5ed;
  --text:       #5a3a4a;
  --text-soft:  #9a7080;
  --white:      #ffffff;
  --radius:     18px;
  --shadow:     0 4px 24px rgba(224,120,152,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'M PLUS Rounded 1c', 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23f0a0be' opacity='0.8'/%3E%3C/svg%3E") 10 10, auto;
}

/* ══ FLOATING BACKGROUND ELEMENTS ══ */
.bg-float {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  font-size: 28px;
  animation: floatUp linear infinite;
  opacity: 0.35;
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ══ SCROLLING DIVIDER ══ */
.marquee-wrap {
  overflow: hidden;
  background: linear-gradient(90deg, var(--pink-mid), var(--pink-deep), var(--pink-mid));
  padding: 7px 0;
  position: relative;
  z-index: 2;
}
.marquee-track1 {
  display: inline-flex;
  gap: 0;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track1 span {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  padding: 0 8px;
  text-transform: uppercase;
  opacity: 0.92;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══ SCROLLING DIVIDER2 ══ */
.marquee-wrap {
  overflow: hidden;
  background: linear-gradient(90deg, var(--pink-mid), var(--pink-deep), var(--pink-mid));
  padding: 7px 0;
  position: relative;
  z-index: 2;
}
.marquee-track2 {
  display: inline-flex;
  gap: 0;
  animation: marqueeScroll2 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track2 span {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  padding: 0 8px;
  text-transform: uppercase;
  opacity: 0.92;
  flex-shrink: 0;
}
@keyframes marqueeScroll2 {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}


/* ══ HERO SECTION ══ */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--lavender) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(240,160,190,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(200,170,240,0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Dotted pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(224,120,152,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-avatar-wrap {
  position: relative;
  margin-bottom: 18px;
}
.hero-avatar-ring {
  width: 160px; height: 160px;
  border-radius: 50%;
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 8px rgba(255,95,160,0.5));
  position: relative;
  overflow: hidden;
}
.hero-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(#ff5fa0, #e07898, #c03aff, #6dda8a, #ff5fa0);
  animation: spin 3s linear infinite;
  z-index: 0;
}
.hero-avatar-ring > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-avatar {
  width: 152px; height: 152px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  /* заглушка если нет фото */
}
.hero-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Декоративные звёздочки вокруг аватара */
.hero-avatar-deco {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.hero-avatar-deco span {
  position: absolute;
  font-size: 16px;
  animation: twinkle 2s ease-in-out infinite alternate;
}
.hero-avatar-deco span:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.hero-avatar-deco span:nth-child(2) { top: 30%; right: -8px; animation-delay: 0.4s; }
.hero-avatar-deco span:nth-child(3) { bottom: 10%; right: 5%; animation-delay: 0.8s; }
.hero-avatar-deco span:nth-child(4) { bottom: 10%; left: 5%; animation-delay: 1.2s; }
.hero-avatar-deco span:nth-child(5) { top: 30%; left: -8px; animation-delay: 1.6s; }
@keyframes twinkle {
  from { transform: scale(0.7) rotate(-15deg); opacity: 0.5; }
  to   { transform: scale(1.2) rotate(15deg);  opacity: 1; }
}

.hero-name {
  font-family: 'Pacifico', cursive;
  font-size: 28px;
  color: var(--pink-deep);
  margin-bottom: 4px;
  text-shadow: 2px 2px 0 rgba(224,120,152,0.15);
}
.hero-pronouns {
  font-size: 13px;
  color: var(--text-soft);
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 3px 14px;
  display: inline-block;
  margin-bottom: 12px;
}

/* Status badge */
.hero-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  border: 1.5px solid var(--pink);
}
.hero-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6dda8a;
  box-shadow: 0 0 6px #6dda8a;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* Hero right */
.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  gap: 14px;
}

/* Анимированный персонаж-заглушка */
.hero-char {
  width: 150px; height: 150px;
  position: relative;
}
.hero-char-img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: charFloat 3s ease-in-out infinite;
}
@keyframes charFloat {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-12px) rotate(2deg); }
}

.hero-char-placeholder {
  width: 150px; height: 150px;
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  animation: charFloat 3s ease-in-out infinite;
  box-shadow: var(--shadow);
}

/* Floating gif slots */
.hero-gif-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}
.gif-slot {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
  border: 2px solid var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: wobble 2s ease-in-out infinite;
}
.gif-slot img { width: 100%; height: 100%; object-fit: cover; }
.gif-slot:nth-child(2) { animation-delay: 0.3s; }
.gif-slot:nth-child(3) { animation-delay: 0.6s; }
@keyframes wobble {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50%       { transform: rotate(3deg) scale(1.05); }
}

/* ══ ABOUT SECTION ══ */
.about-section {
  position: relative;
  z-index: 1;
  background: var(--white);
  margin: 0 auto;
  max-width: 700px;
  width: calc(100% - 24px);
  border-radius: var(--radius);
  border: 2px dashed var(--pink);
  padding: 28px 32px 32px;
  overflow: hidden;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Dots pattern bg */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(224,120,152,0.07) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
}

.about-inner {
  position: relative;
  z-index: 1;
}

.about-title {
  font-family: 'Pacifico', cursive;
  font-size: 20px;
  color: var(--pink-deep);
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  display: block;
}
.about-title::after {
  content: '';
  display: block;
  margin: 4px auto 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink-deep), transparent);
  border-radius: 2px;
}

.about-text {
  text-align: center;
}

.about-text p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}
.about-text p:last-child { margin-bottom: 0; }

/* ══ LIKES / INTERESTS ══ */
.interests-section {
  position: relative;
  z-index: 1;
  padding: 28px 16px;
}

.section-title {
  font-family: 'Pacifico', cursive;
  font-size: 20px;
  color: var(--pink-deep);
  text-align: center;
  margin-bottom: 18px;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.interest-card {
  background: var(--white);
  border: 2px solid var(--pink);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
  box-shadow: 3px 3px 0 var(--pink);
}
.interest-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--pink-deep);
}
.interest-card .ic-emoji { font-size: 26px; display: block; margin-bottom: 5px; }

/* ══ GALLERY ══ */
.gallery-section {
  position: relative;
  z-index: 1;
  padding: 0 16px 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-slot {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--pink), var(--lavender));
  border: 2px solid var(--pink-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.gallery-slot:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 8px 32px rgba(224,120,152,0.3);
}
.gallery-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ══ LIGHTBOX ══ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30,10,20,0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(224,120,152,0.4);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 1002;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(255,95,160,0.5);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 1002;
  user-select: none;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,95,160,0.5);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ══ FEATURED PHOTO ══ */
.featured-section {
  position: relative;
  z-index: 1;
  padding: 0 16px 28px;
  display: flex;
  justify-content: center;
}

.featured-photo-wrap {
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--pink-mid);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.featured-photo-wrap:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 36px rgba(224,120,152,0.3);
}
.featured-photo-wrap img {
  width: 100%;
  display: block;
}

/* ══ SOCIALS / LINKS ══ */
.links-section {
  position: relative;
  z-index: 1;
  padding: 0 16px 32px;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--pink);
  border-radius: 50px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.18s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 3px 3px 0 var(--pink);
  position: relative;
  overflow: hidden;
}
.link-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}
.link-btn:hover::after { left: 140%; }
.link-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--pink-deep);
  border-color: var(--pink-deep);
}
.link-btn:active { transform: scale(0.96); }
.link-btn-icon { font-size: 20px; flex-shrink: 0; }

/* ══ FLOATING GIFS ROW ══ */
.float-gifs-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding: 0 16px 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.float-gif {
  width: 70px; height: 70px;
  object-fit: contain;
  animation: gifBounce 1.8s ease-in-out infinite;
}
.float-gif:nth-child(2) { animation-delay: 0.3s; width: 55px; height: 55px; }
.float-gif:nth-child(3) { animation-delay: 0.6s; }
.float-gif:nth-child(4) { animation-delay: 0.2s; width: 55px; height: 55px; }
.float-gif:nth-child(5) { animation-delay: 0.5s; }

.float-gif-placeholder {
  font-size: 52px;
  animation: gifBounce 1.8s ease-in-out infinite;
  display: inline-block;
}
.float-gif-placeholder:nth-child(2) { animation-delay: 0.3s; font-size: 40px; }
.float-gif-placeholder:nth-child(3) { animation-delay: 0.6s; }
.float-gif-placeholder:nth-child(4) { animation-delay: 0.2s; font-size: 40px; }
.float-gif-placeholder:nth-child(5) { animation-delay: 0.5s; }

@keyframes gifBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ══ INTERACTIVE ANIMATION WIDGET ══ */
.widget-section {
  position: relative;
  z-index: 1;
  padding: 0 16px 32px;
  display: flex;
  justify-content: center;
}

.heart-widget {
  background: var(--white);
  border: 2px solid var(--pink);
  border-radius: var(--radius);
  padding: 22px 28px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: var(--shadow);
}

.heart-widget-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.heart-canvas-wrap {
  position: relative;
  height: 180px;
  margin-bottom: 10px;
  cursor: pointer;
}

#heartCanvas {
  width: 100%;
  height: 180px;
  border: 2px solid var(--pink);
  display: block;
}

.heart-click-hint {
  font-size: 11px;
  color: var(--text-soft);
  opacity: 0.7;
}

/* ══ FOOTER ══ */
.page-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--text-soft);
  border-top: 2px dashed var(--pink);
}

/* ══ ANIMATIONS: entrance ══ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }
.fade-up:nth-child(5) { animation-delay: 0.5s; }
.fade-up:nth-child(6) { animation-delay: 0.6s; }

/* ══ RESPONSIVE ══ */
@media (max-width: 600px) {
  .hero { min-height: auto; }
  .links-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-avatar-ring { width: 130px; height: 130px; }
  .hero-avatar { width: 122px; height: 122px; }
  .hero-name { font-size: 22px; }
  .about-section { margin: 12px 8px 0; padding: 20px 16px 24px; width: calc(100% - 16px); }
  .interests-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .lightbox-img { max-width: 95vw; max-height: 75vh; border-radius: 8px; }
  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
    font-size: 20px;
    background: rgba(255,255,255,0.18);
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 20px; }
}
