/* ── page base ── */

body.page-chapter2 {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

/* ── wind / bubbles ── */

.page-chapter2 .wind {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* ── waves ── */

.ch2Waves {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 15vh;
  background-image: url("images/about/waves.webp");
  background-repeat: repeat-x;
  background-size: auto 15vh;
  background-position: bottom left;
  z-index: 0;
  pointer-events: none;
}

/* ── close bubble ── */

.page-chapter2 .closeBubble {
  top: 3vh;
  left: 3vh;
}

/* ── scene layout ── */

.ch2Scene {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ch2Content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4vh;
  max-width: 600px;
}

/* ── greeting area ── */

.ch2Script {
  margin: 0;
  font-family: "CedarvilleCursive", cursive;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1;
  color: rgba(181, 111, 122, 0.6);
  text-shadow: 0 1px 12px rgba(255, 250, 248, 0.95), 0 0 40px rgba(255, 250, 248, 0.7);
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.1s both;
}

.ch2Greeting {
  margin: 1.8vh 0 0;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.6;
  color: var(--body);
  text-shadow: 0 1px 10px rgba(255, 250, 248, 0.9), 0 0 30px rgba(255, 250, 248, 0.6);
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.25s both;
}

/* ── eyebrow with lines ── */

.ch2Eyebrow {
  margin-top: 3.5vh;
  display: flex;
  align-items: center;
  gap: 1.6vh;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.35s both;
}

.ch2EyebrowLine {
  display: block;
  width: 5vh;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 134, 142, 0.4));
}

.ch2EyebrowLine:last-child {
  background: linear-gradient(270deg, transparent, rgba(196, 134, 142, 0.4));
}

.ch2EyebrowText {
  font-size: 1.3vh;
  letter-spacing: 0.42vh;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── days hero ── */

.ch2Days {
  margin-top: 2vh;
  position: relative;
  opacity: 0;
  animation: ch2DaysReveal 0.8s ease-out 0.5s both;
}

.ch2DaysLabel {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.ch2DaysNumber {
  margin: 0.8vh 0 0;
  font-family: "JosefinSansRegular", "PingFang SC", sans-serif;
  font-size: clamp(90px, 18vw, 160px);
  line-height: 0.9;
  background: linear-gradient(180deg, #da9ca7 0%, #aa6b75 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(196, 134, 142, 0.22));
  position: relative;
}

/* glow behind the number */
.ch2Days::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 200px;
  transform: translate(-50%, -45%);
  background: radial-gradient(
    ellipse at center,
    rgba(218, 156, 167, 0.14) 0%,
    rgba(218, 156, 167, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.ch2DaysSuffix {
  margin: 0.6vh 0 0;
  font-size: 1.8vh;
  letter-spacing: 0.2em;
  color: var(--muted);
}

@keyframes ch2DaysReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── divider ── */

.ch2Divider {
  margin: 3vh 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 60px;
  position: relative;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.7s both;
}

.ch2Divider::before,
.ch2Divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 134, 142, 0.36));
}

.ch2Divider::after {
  background: linear-gradient(270deg, transparent, rgba(196, 134, 142, 0.36));
}

.ch2DividerDot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(196, 134, 142, 0.42);
  flex-shrink: 0;
}

/* ── event card (memoryCard style) ── */

.ch2Event {
  padding: 2.4vh 3.2vh 2.8vh;
  border: 1px solid var(--card-border);
  border-radius: 3.6vh;
  background:
    linear-gradient(180deg, rgba(255, 252, 251, 0.82), rgba(255, 247, 244, 0.68)),
    url("images/index/paper.webp");
  background-size: auto, 48%;
  box-shadow: 0 2vh 5vh -3vh var(--shadow);
  backdrop-filter: blur(16px);
  opacity: 0;
  animation: cardSlideIn 0.55s ease-out 0.85s both;
}

.ch2EventLabel {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.ch2EventName {
  margin: 1.2vh 0 0;
  font-size: clamp(17px, 2.4vw, 22px);
  line-height: 1.5;
  color: var(--deep);
}

.ch2EventCount {
  margin: 0.5vh 0 0;
  font-size: 1.8vh;
  color: var(--muted);
}

.ch2EventCount span {
  font-family: "JosefinSansRegular", "PingFang SC", sans-serif;
  font-size: 1.25em;
  color: var(--primary-strong);
}

/* ── responsive ── */

@media (max-width: 720px) {
  .page-chapter2 .closeBubble {
    top: 14px;
    left: 14px;
  }

  .ch2DaysNumber {
    font-size: clamp(76px, 22vw, 120px);
  }

  .ch2Days::after {
    width: 240px;
    height: 160px;
  }

  .ch2Waves {
    height: 10vh;
    background-size: auto 10vh;
  }

  .ch2Event {
    padding: 2vh 2.6vh 2.4vh;
    border-radius: 3vh;
  }
}

@media (max-height: 640px) {
  .ch2Greeting {
    margin-top: 1vh;
  }

  .ch2Eyebrow {
    margin-top: 2vh;
  }

  .ch2Days {
    margin-top: 1vh;
  }

  .ch2Divider {
    margin: 2vh 0;
  }
}
