@charset "UTF-8";

/* ==========================================================================
   Love Fragment Page - Special Styles
   Theme: Particle of Light, DNA Connection, Warmth, Eternity
   ========================================================================== */

/* --- Variables & Theme Setup --- */
:root {
  --lf-primary: #ff9a9e; /* Warm Pink */
  --lf-secondary: #fecfef; /* Soft Pink */
  --lf-accent: #a18cd1; /* Ethereal Purple/Blue */
  --lf-gold: #fbc2eb; /* Gold/Pink gradient base */
  --lf-white: #ffffff;
  --lf-text-main: #554555; /* Soft Brown-Black */
  --lf-text-light: #887788;

  --lf-gradient-hero: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  --lf-gradient-warm: linear-gradient(to top, #fad0c4 0%, #ffd1ff 100%);

  --font-heading: "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
}

/* --- Base Override for this page --- */
body {
  background-color: var(--lf-white);
  color: var(--lf-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* --- Particle Canvas Layer (Fixed Background) --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================================================
   Hero Section: Particle Assembly
   ========================================================================== */
.hero-bridge {
  position: relative;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.hero-content {
  z-index: 2;
  animation: fadeUp 1.5s ease-out forwards;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--lf-accent);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(45deg, #ff9a9e 0%, #a18cd1 99%, #fbc2eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-scroll-prompt {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--lf-text-light);
  animation: bounce 2s infinite;
}

/* ==========================================================================
   Content Sections Styling
   ========================================================================== */
.main-content article {
  max-width: 800px;
  margin: 0 auto;
}

/* Section Common */
article section {
  margin-bottom: 6rem;
  padding: 3rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(255, 154, 158, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0; /* JS reveal */
  transform: translateY(30px); /* JS reveal */
}

article section.visible {
  opacity: 1;
  transform: translateY(0);
}

article section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(161, 140, 209, 0.2);
}

article h3 {
  font-size: 1.8rem;
  color: var(--lf-text-main);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--lf-secondary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

article p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* --- Specific Section Styles --- */

/* Numbers Section (Exponential Growth) */
.section-numbers {
  background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
  border-left: 5px solid var(--lf-accent);
}

/* Ancestor Stats Visualization - Pyramid Layout */
.ancestor-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0;
  align-items: center; /* Center stack for pyramid */
  position: relative;
}

.stats-title {
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  color: var(--lf-text-main);
  margin-bottom: 2rem;
  font-weight: 700;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(161, 140, 209, 0.2);
  border: 1px solid var(--lf-secondary);
}

.stats-title i {
  color: var(--lf-primary);
  margin-right: 0.5rem;
  animation: glow-pulse 2s infinite;
}

/* Connecting Line (The Core Axis) */
.ancestor-stats::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--lf-primary) 20%, var(--lf-accent) 80%, transparent);
  z-index: 0;
  transform: translateX(-50%);
}

.stat-row {
  display: flex;
  flex-direction: column; /* Stack label and value vertically for pyramid */
  justify-content: center;
  align-items: center;
  text-align: center;
  
  /* Layout */
  z-index: 1; /* Above the line */
  width: 100%; /* Default */
  
  /* Card Styling */
  background: rgba(255, 255, 255, 0.8); /* Opaque enough to hide line */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(161, 140, 209, 0.15);
  
  /* Animation Start State */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pyramid Widths */
#stat-1 { width: 40%; }
#stat-2 { width: 60%; }
#stat-3 { width: 80%; }
#stat-4 { width: 100%; padding: 2rem 1rem; }

/* Mobile Pyramid Adjustment */
@media (max-width: 768px) {
  #stat-1 { width: 80%; }
  #stat-2 { width: 90%; }
  #stat-3 { width: 95%; }
  #stat-4 { width: 100%; }
}

.stat-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-row:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 154, 158, 0.4);
  border-color: var(--lf-primary);
}

.stat-label {
  font-weight: 700;
  color: var(--lf-text-light);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column; /* Icon on top */
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stat-label i {
  color: white;
  background: linear-gradient(135deg, var(--lf-primary), var(--lf-accent));
  font-size: 1.2rem;
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(255, 154, 158, 0.4);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--lf-text-main);
  line-height: 1;
  font-family: var(--font-heading);
}

/* Special styling for the final numbers */
#stat-3 .stat-value {
  font-size: 2.5rem;
  background: linear-gradient(45deg, #a18cd1 0%, #fbc2eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#stat-4 {
    background: linear-gradient(to bottom, #fff 0%, #fff0f5 100%);
    border: 2px solid var(--lf-primary);
}

#stat-4 .stat-value.highlight {
  font-size: 3.5rem; /* Massive */
  background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 50%, #fbc2eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0px rgba(255,255,255,1));
  margin-top: 0.5rem;
}

.stat-value .unit {
  font-size: 1rem;
  color: var(--lf-text-light);
  font-weight: normal;
  -webkit-text-fill-color: var(--lf-text-light);
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Ancestors Section (Warmth) */
.section-ancestors {
  background: rgba(255, 253, 240, 0.7); /* Warm light yellow tint */
  border-radius: 50% 50% 20px 20px / 20px 20px 20px 20px; /* Slight organic curve */
}

/* Japanese Gods Section */
.section-kamine {
  position: relative;
  overflow: hidden;
}
.section-kamine::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--lf-secondary) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

/* Charge/Energy Section */
.section-charge {
  text-align: center;
}
.battery-metaphor {
  margin: 2rem auto;
  width: 100px;
  height: 50px;
  border: 3px solid var(--lf-text-light);
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 3px;
}
.battery-metaphor::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 15px;
  width: 6px;
  height: 20px;
  background: var(--lf-text-light);
  border-radius: 0 4px 4px 0;
}
.battery-level {
  height: 100%;
  width: 10%; /* Starts low */
  background: var(--lf-primary);
  border-radius: 6px;
  transition: width 2s ease-out;
}
.battery-metaphor.charging .battery-level {
  width: 100%;
  background: linear-gradient(90deg, #ff9a9e 0%, #fbc2eb 100%);
  box-shadow: 0 0 20px var(--lf-primary);
}

/* Action Section */
.section-action {
  background: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
  border: none;
  text-align: center;
}

/* --- Interactive Elements --- */
.pulse-btn {
  background: var(--lf-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
  transition: all 0.3s ease;
  animation: glow-pulse 2s infinite;
}

.pulse-btn:hover {
  transform: scale(1.05);
  background: var(--lf-accent);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 154, 158, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 154, 158, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 154, 158, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  article section {
    padding: 2rem 1rem;
  }
}
