*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #fce4f6;
  color: #3d1a70;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}

:root {
  --pink1: #fde8f5;
  --pink2: #f9c6e8;
  --pink3: #f0a0d0;
  --pink4: #e070b8;
  --pur1: #f0e4ff;
  --pur2: #d4b0f0;
  --pur3: #9060c0;
  --pur4: #6030a0;
  --pur5: #3d1a70;
  --gold: #f8d878;
  --rose: #e87a8a;
  --green: #7ec87e;
}

.grad-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #fce4f6 0%, #f0d0f8 25%, #e0c4f4 50%, #f8d0e8 75%, #fce4f6 100%);
  background-size: 400% 400%;
  animation: gradShift 14s ease infinite;
}

@keyframes gradShift {

  0%,
  100% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }
}

#skyOverlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transition: background 2.5s cubic-bezier(.4, 0, .2, 1), opacity 2.5s ease;
  mix-blend-mode: multiply;
  opacity: 0;
}

#celestialBody {
  position: fixed;
  z-index: 4;
  pointer-events: none;
  width: clamp(50px, 8vw, 90px);
  height: clamp(50px, 8vw, 90px);
  border-radius: 50%;
  transition: all 2.8s cubic-bezier(.4, 0, .2, 1);
  opacity: 0;
}

#horizonGlow {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 35vh;
  pointer-events: none;
  transition: background 2.5s ease, opacity 2.5s ease;
  opacity: 0;
}

#starCanvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 2s ease;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: blobFloat ease-in-out infinite;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translateY(0) scale(1)
  }

  50% {
    transform: translateY(-28px) scale(1.06)
  }
}

.cloud {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  border-radius: 60px;
  animation: cloudDrift linear infinite;
}

.cloud-bump {
  position: absolute;
  border-radius: 50%;
}

@keyframes cloudDrift {
  0% {
    transform: translateX(calc(-100% - 80px)) translateY(0)
  }

  50% {
    transform: translateX(calc(50vw - 50%)) translateY(-8px)
  }

  100% {
    transform: translateX(calc(100vw + 80px)) translateY(0)
  }
}

.float-icon {
  position: fixed;
  pointer-events: none;
  z-index: 2;

  opacity: 0.45;

  animation: floatIcon ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0) rotate(-4deg) scale(1)
  }

  50% {
    transform: translateY(-20px) rotate(4deg) scale(1.08)
  }
}

.glass {
  background: rgba(255, 255, 255, .28);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1.5px solid rgba(255, 255, 255, .65);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(160, 80, 200, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
}

.bubble-text {
  font-weight: 900;
  color: var(--pink3);
  text-shadow: 0 1px 0 #c060a8, 0 2px 0 #b05098, 0 3px 0 #a04088, 0 4px 0 #904078, 0 6px 14px rgba(180, 60, 140, .45);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .65);
  paint-order: stroke fill;
  filter: drop-shadow(0 10px 24px rgba(200, 80, 180, .32));
  animation: bubbleFloat 5s ease-in-out infinite;
}

@keyframes bubbleFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-.4deg)
  }

  50% {
    transform: translateY(-16px) rotate(.4deg)
  }
}

.shimmer-text {
  background: linear-gradient(135deg, #c060c0, #e080d0, #9040b0, #d070c0, #c060c0);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0%
  }

  100% {
    background-position: 250%
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.65) rotate(-4deg)
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0)
  }
}

@keyframes slideL {
  from {
    opacity: 0;
    transform: translateX(-40px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1)
  }

  14% {
    transform: scale(1.22)
  }

  28% {
    transform: scale(1)
  }

  42% {
    transform: scale(1.14)
  }
}

@keyframes spin {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(7px)
  }
}

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 165, 92, .45)
  }

  50% {
    box-shadow: 0 0 0 6px rgba(59, 165, 92, 0)
  }
}

@keyframes memRise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(.8)
  }

  10% {
    opacity: 1;
    transform: translateY(-5px) scale(1)
  }

  85% {
    opacity: .9
  }

  100% {
    opacity: 0;
    transform: translateY(-110vh) scale(.94)
  }
}

@keyframes hintFlash {

  0%,
  100% {
    filter: brightness(1)
  }

  50% {
    filter: brightness(1.55) saturate(1.6)
  }
}

@keyframes sunRise {
  0% {
    box-shadow: 0 0 20px 5px rgba(255, 200, 50, .4)
  }

  50% {
    box-shadow: 0 0 60px 20px rgba(255, 200, 50, .7)
  }

  100% {
    box-shadow: 0 0 20px 5px rgba(255, 200, 50, .4)
  }
}

@keyframes moonGlow {

  0%,
  100% {
    box-shadow: 0 0 20px 8px rgba(200, 220, 255, .4)
  }

  50% {
    box-shadow: 0 0 50px 18px rgba(200, 220, 255, .7)
  }
}

@keyframes cdotPulse {

  0%,
  100% {
    opacity: .3;
    transform: scale(.7)
  }

  50% {
    opacity: 1;
    transform: scale(1.2)
  }
}

@keyframes blobFloatSmall {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

.swiper {
  position: relative;
  z-index: 10;

  width: 100%;
  height: 100vh;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 65px;

  padding-bottom: 45px;

}

.swiper-pagination {
  bottom: 18px !important;
  z-index: 200;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, .45);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: all .3s;
}

.swiper-pagination-bullet-active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.swiper-button-next,
.swiper-button-prev {
  color: rgba(255, 255, 255, .7);
  transition: color .3s;
  z-index: 200;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #fff;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  font-weight: 900;
}

#topNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1.2rem;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.nav-logo {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  color: var(--pur4);
  font-weight: 700;
}

.nav-dots {
  display: flex;
  gap: .4rem;
  align-items: center;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(144, 96, 192, .25);
  border: none;
  cursor: pointer;
  transition: all .3s;
}

.nav-dot.active {
  background: var(--pur3);
  width: 22px;
  border-radius: 4px;
}

.nav-dot.done {
  background: var(--pink4);
}

.nav-music {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  border: 1.5px solid rgba(255, 255, 255, .7);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}

.nav-music:hover {
  transform: scale(1.12);
}

.nav-time-badge {
  font-size: .6rem;
  font-weight: 800;
  color: var(--pur3);
  background: rgba(255, 255, 255, .5);
  padding: .15rem .5rem;
  border-radius: 20px;
  letter-spacing: .05em;
  transition: all 1.5s ease;
}

.btn-primary {
  padding: .8rem 2.4rem;
  background: linear-gradient(135deg, var(--pur3), var(--pink4));
  border: none;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(.82rem, 2vw, 1rem);
  letter-spacing: .07em;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(180, 60, 200, .35);
  transition: transform .25s, box-shadow .25s;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 40px rgba(180, 60, 200, .52);
}

.btn-primary:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  padding: .75rem 2.2rem;
  background: rgba(255, 255, 255, .85);
  border: 2px solid rgba(255, 255, 255, .9);
  color: var(--pur3);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(.82rem, 2vw, 1rem);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(180, 80, 200, .16);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.btn-ghost:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(180, 80, 200, .3);
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: none;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(40, 10, 60, .92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
}

#lightbox.on {
  display: flex;
}

#lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 0 80px rgba(200, 100, 240, .5);
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2.4rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.scroll-hint {
  margin-top: 2rem;
  z-index: 100;
  color: var(--pur3);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  opacity: 0;
  animation: fadeIn .8s ease forwards 4s;
}

.scroll-arrow {
  animation: arrowBounce .85s ease-in-out infinite;
}

.s1-content {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  text-align: center;
  padding: 1rem;
}

.s1-eyebrow {
  font-size: clamp(.62rem, 1.8vw, .8rem);
  font-weight: 800;
  color: var(--pur3);
  letter-spacing: .28em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .55);
  padding: .35rem 1.4rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, .75);
  opacity: 0;
  animation: fadeUp .8s ease forwards .6s;
}

.s1-name {
  font-size: clamp(4rem, 16vw, 9rem);
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(.34, 1.56, .64, 1) forwards .9s;
}

.s1-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.s1-quote {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  color: var(--pur5);
  font-weight: 700;
  font-size: clamp(.9rem, 2.5vw, 1.15rem);
  max-width: 550px;
  text-align: center;
  line-height: 1.6;
  margin: 0.5rem 0 1.5rem 0;
  opacity: 0;
  animation: fadeUp .8s ease forwards 1.5s;
}

.s1-audio-hint {
  font-size: 0.85rem;
  color: var(--pur4);
  margin-top: 1.2rem;
  font-weight: 800;
  opacity: 0;
  animation: fadeUp .8s ease forwards 2.6s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.s1-polaroid-1 {
  position: absolute;
  top: 0;
  left: -5%;
  transform: rotate(-10deg) scale(0.9);
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

.s1-polaroid-2 {
  position: absolute;
  bottom: 10%;
  right: -5%;
  transform: rotate(12deg) scale(0.9);
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.3s;
}

.s1-bio {
  font-size: clamp(.85rem, 2.2vw, 1.05rem);
  color: var(--pur4);
  font-style: italic;
  font-weight: 700;
  opacity: 0;
  animation: fadeUp .8s ease forwards 1.5s;
}

.s1-pill {
  background: linear-gradient(135deg, var(--pur3), var(--pink4));
  color: #fff;
  font-weight: 800;
  font-size: clamp(.75rem, 2vw, .9rem);
  padding: .45rem 1.8rem;
  border-radius: 50px;
  letter-spacing: .1em;
  box-shadow: 0 4px 20px rgba(160, 80, 200, .4);
  opacity: 0;
  animation: fadeUp .8s ease forwards 1.9s;
}

.s1-btns {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp .8s ease forwards 2.4s;
}

.dc-mini-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.3rem;
  max-width: 330px;
  width: 100%;
  opacity: 0;
  animation: fadeUp .8s ease forwards 2.9s;
}

.dcm-ava {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--pur2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--pur2), var(--pink2));
}

.dcm-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dcm-info {
  text-align: left;
}

.dcm-name {
  font-weight: 900;
  font-size: clamp(.88rem, 2.2vw, 1.05rem);
  color: var(--pur4);
}

.dcm-tag {
  font-size: clamp(.6rem, 1.5vw, .7rem);
  color: var(--pur3);
}

.dcm-status {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: clamp(.58rem, 1.4vw, .68rem);
  color: #666;
  margin-top: .15rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ba55c;
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}

.s2-wrap {
  z-index: 10;
  width: 100%;
  max-width: 800px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
  max-height: 100%;

}

.s2-wrap::-webkit-scrollbar,
.s3-wrap::-webkit-scrollbar,
.s4-wrap::-webkit-scrollbar,
.s7-wrap::-webkit-scrollbar,
.letter-card::-webkit-scrollbar {
  width: 6px;
}

.s2-wrap::-webkit-scrollbar-thumb,
.s3-wrap::-webkit-scrollbar-thumb,
.s4-wrap::-webkit-scrollbar-thumb,
.s7-wrap::-webkit-scrollbar-thumb,
.letter-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.pg-title {
  text-align: center;
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  font-weight: 900;
  color: var(--pur4);
}

.pg-sub {
  text-align: center;
  font-size: clamp(.7rem, 2vw, .85rem);
  color: var(--pur3);
  margin-top: .15rem;
  font-style: italic;
}

.connect-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  padding: .8rem 1.2rem;
}

.city-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

.city-emoji {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.city-name {
  font-weight: 900;
  font-size: clamp(.85rem, 2vw, 1rem);
  color: var(--pur4);
}

.city-sub {
  font-size: clamp(.6rem, 1.5vw, .72rem);
  color: var(--pur3);
}

.conn-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.conn-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.cdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pur2);
  animation: cdotPulse ease-in-out infinite;
}

.conn-icon {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  animation: blobFloatSmall 3s ease-in-out infinite;
}

.conn-label {
  font-size: clamp(.6rem, 1.5vw, .72rem);
  font-weight: 800;
  color: var(--pur3);
  letter-spacing: .1em;
}

.tl-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.4rem, 1.5vw, .8rem);
}

.tl-item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  align-items: flex-start;
  padding: .7rem .9rem;
  border-radius: 16px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.45);

}

.tl-item.anim {
  animation: slideL .6s ease forwards;
}

.tl-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--pur3), var(--pink4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(180, 60, 200, .3);
}

.tl-body {
  flex: 1;
}

.tl-label {
  font-size: clamp(.58rem, 1.5vw, .7rem);
  font-weight: 800;
  color: var(--pur3);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}

.tl-text {
  font-size: clamp(.75rem, 1.8vw, .86rem);
  color: var(--pur5);
  font-weight: 600;
  line-height: 1.45;
}

.s3-wrap {
  z-index: 10;
  width: 100%;
  max-width: 1000px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  overflow-y: auto;
  max-height: 100%;
}

.s3-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dc-window {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(80, 40, 140, .35);
  border: 1px solid rgba(255, 255, 255, .15);
}

.dc-titlebar {
  background: #1e1f22;
  padding: .5rem .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.dc-td {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dc-tlabel {
  color: #72767d;
  font-size: .7rem;
  font-family: monospace;
  margin-left: .4rem;
}

.dc-body {
  background: #313338;
  display: flex;
  min-height: 280px;

}

.dc-sidebar {
  width: 56px;
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .8rem 0;
  gap: .6rem;
}

.dc-si {
  width: 38px;
  height: 38px;
  background: #404249;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  cursor: pointer;
  transition: border-radius .2s, background .2s;
}

.dc-si:hover {
  border-radius: 12px;
  background: #5865F2;
}

.dc-main {
  flex: 1;
  padding: .8rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  overflow: hidden;
}

.dc-ch-label {
  color: #72767d;
  font-size: .67rem;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: .2rem;
}

.dc-msg {
  display: flex;
  gap: .45rem;
  align-items: flex-start;
}

.dc-msg.self {
  flex-direction: row-reverse;
}

.dc-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}

.dc-bbl {
  background: #404249;
  border-radius: 0 12px 12px 12px;
  padding: .35rem .72rem;
  color: #dbdee1;
  font-size: clamp(.6rem, 1.65vw, .75rem);
  line-height: 1.45;
  max-width: 82%;
}

.dc-msg.self .dc-bbl {
  background: #5865F2;
  border-radius: 12px 0 12px 12px;
}

.dc-ts {
  font-size: .5rem;
  color: #5a5d64;
  margin-top: .12rem;
}

.dc-msg.self .dc-ts {
  text-align: left;
}

.dc-typing {
  color: #8a8d93;
  font-size: .62rem;
  font-style: italic;
  animation: fadeIn 1.2s ease infinite alternate;
  padding-top: .3rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .7rem;
  width: 100%;
}

.stat-card {
  padding: .85rem 1rem;
  border-radius: 16px;
  text-align: center;
  transition: transform .25s;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-num {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
  color: var(--pur4);
  line-height: 1;
}

.stat-label {
  font-size: clamp(.58rem, 1.4vw, .7rem);
  font-weight: 700;
  color: var(--pur3);
  margin-top: .2rem;
  letter-spacing: .07em;
}

.game-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
}

.gbadge {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem 1rem;
  border-radius: 50px;
  font-size: clamp(.58rem, 1.5vw, .73rem);
  font-weight: 800;
  background: rgba(255, 255, 255, .38);
  color: var(--pur4);
  border: 1.5px solid rgba(255, 255, 255, .65);
  transition: transform .2s;
}

.gbadge:hover {
  transform: scale(1.07);
}

.s4-wrap {
  z-index: 10;
  width: 100%;
  max-width: 900px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  overflow-y: auto;
  max-height: 100%;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr));
  gap: 1.1rem;
  justify-items: center;
  width: 100%;
}

.photo-card {
  position: relative;
  background: #fff;
  padding: 8px 8px 34px;
  box-shadow: 0 6px 30px rgba(160, 70, 200, .2);
  cursor: zoom-in;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
  max-width: 400px;

  width: 100%;
}

.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.photo-card:nth-child(1) {
  transform: rotate(-3.2deg)
}

.photo-card:nth-child(2) {
  transform: rotate(2.1deg)
}

.photo-card:nth-child(3) {
  transform: rotate(-1.6deg)
}

.photo-card:nth-child(4) {
  transform: rotate(2.8deg)
}

.photo-card:nth-child(5) {
  transform: rotate(-2.5deg)
}

.photo-card:nth-child(6) {
  transform: rotate(1.8deg)
}

.photo-card:nth-child(7) {
  transform: rotate(-1.2deg)
}

.photo-card:nth-child(8) {
  transform: rotate(3.1deg)
}

.photo-card:hover {
  transform: rotate(0) scale(1.08) !important;
  box-shadow: 0 18px 55px rgba(160, 70, 200, .38);
  z-index: 20;
}

.photo-sticker {
  position: absolute;
  top: -12px;
  right: -10px;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15));
  animation: spin 9s linear infinite;
}

.photo-cap {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(.88rem, 2.2vw, 1.05rem);
  color: #9060a0;
  text-align: center;
  margin-top: .35rem;
}

.gallery-ribbon {
  background: linear-gradient(135deg, var(--pur3), var(--pink4));
  color: #fff;
  font-weight: 800;
  font-size: clamp(.62rem, 1.7vw, .78rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .35rem 1.6rem;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(160, 60, 200, .3);
}

.s5-wrap {
  z-index: 10;
  width: 100%;
  max-width: 900px;
}

.letter-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, .94), rgba(255, 240, 255, .94));
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 24px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 20px 80px rgba(180, 80, 200, .18), inset 0 1px 0 rgba(255, 255, 255, .95);
  max-height: 78vh;
  overflow-y: auto;
  max-height: 78vh;
  overflow-y: auto;
  position: relative;
}

.letter-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 24px;
  background: repeating-linear-gradient(transparent, transparent 29px, rgba(180, 130, 220, .15) 30px);
}

.letter-seal {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  animation: heartBeat 2.2s ease-in-out infinite;
  z-index: 1;
}

.letter-badge {
  background: linear-gradient(135deg, var(--pur3), var(--pink4));
  color: #fff;
  font-size: clamp(.58rem, 1.5vw, .7rem);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .3rem 1.2rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.1rem;
  z-index: 1;
  position: relative;
}

.letter-date {
  font-size: .7rem;
  color: #9060a0;
  margin-bottom: .85rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.letter-dear {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--pur3);
  margin-bottom: .9rem;
  position: relative;
  z-index: 1;
}

.letter-body {
  font-size: clamp(.84rem, 2vw, .98rem);
  color: #4a2060;
  line-height: 2.05;
  position: relative;
  z-index: 1;
  column-count: 2;
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.letter-body p {
  margin-bottom: .95rem;
}

.letter-sign {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  color: var(--pur3);
  text-align: right;
  margin-top: 1.1rem;
  position: relative;
  z-index: 1;
}

.s6-title-wrap {
  position: absolute;
  top: 70px;

  left: 0;
  right: 0;
  z-index: 10;
  text-align: center;
  padding: clamp(1rem, 3vw, 2.2rem) 1rem .5rem;
}

.s6-title-main {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--pur4);
  text-shadow: 0 2px 10px rgba(255, 255, 255, .9);
}

.s6-title-sub {
  font-size: clamp(.72rem, 1.8vw, .88rem);
  color: var(--pur3);
  margin-top: .25rem;
  font-style: italic;
}

.bubble-field {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.mem-bubble {
  position: absolute;
  border-radius: 50px;
  padding: .45rem 1.1rem;
  font-size: clamp(.58rem, 1.5vw, .76rem);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  animation: memRise linear forwards;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, .65);
  box-shadow: 0 4px 16px rgba(180, 80, 200, .2);
}

.s7-wrap {
  z-index: 10;
  width: 100%;
  max-width: 1000px;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(.5rem, 3vw, 2.5rem);
  overflow-y: auto;
  max-height: 100%;
}

.s7-divider {
  display: none;
}

.finale-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  text-align: center;
}

.css-cake {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  cursor: pointer;
  transition: transform .3s;
}

.css-cake:hover {
  transform: scale(1.08);
}

.css-cake::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.15) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 2s infinite alternate;
}

.cake-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cake-sparkles::before,
.cake-sparkles::after {
  content: '✦';
  position: absolute;
  color: #fff2a8;
  font-size: 1.6rem;
  animation: floatIcon 2s infinite, flicker 1.5s infinite;
  text-shadow: 0 0 10px rgba(255, 200, 50, 0.8);
}

.cake-sparkles::before {
  top: 10px;
  left: -25px;
  animation-delay: 0s;
}

.cake-sparkles::after {
  top: 40px;
  right: -30px;
  font-size: 1.2rem;
  animation-delay: -0.8s;
}

.cake-deco {
  position: absolute;
  pointer-events: none;
  animation: floatIcon 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  z-index: 5;
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.cake-plate {
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 160px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cake-body {
  position: absolute;
  bottom: 10px;
  left: 20px;
  width: 100px;
  height: 65px;
  background: #f9c6e8;

  border-radius: 12px 12px 0 0;
  border-bottom: 5px solid #9060c0;

  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.4);
}

.cake-frosting {
  position: absolute;
  bottom: 55px;
  left: 15px;
  width: 110px;
  height: 30px;
  background: #fff;
  border-radius: 15px 15px 10px 10px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.cake-frosting::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 8px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 26px 6px 0 #fff, 48px -2px 0 #fff, 72px 4px 0 #fff;
}

.cake-candle {
  position: absolute;
  bottom: 85px;
  left: 62px;
  width: 16px;
  height: 40px;
  background: repeating-linear-gradient(-45deg,
      #fff,
      #fff 4px,
      #ff6b6b 4px,
      #ff6b6b 8px);
  border-radius: 3px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cake-flame {
  position: absolute;
  top: -24px;
  left: 2px;
  width: 12px;
  height: 20px;
  background: #ffcc00;
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 15px #ffcc00, 0 0 30px #ff9900, inset 0 0 4px #fff;
  animation: flicker .5s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

.css-cake.blown .cake-flame {
  display: none;

}

.css-cake.blown::after {
  content: '✨';
  position: absolute;
  top: -20px;
  left: 55px;
  font-size: 1.8rem;
  animation: floatIcon 2.5s infinite;
}

@keyframes flicker {
  0% {
    transform: scale(1) rotate(-3deg);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.15) rotate(3deg);
    opacity: 1;
  }
}

.finale-hbd {
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
}

.finale-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  color: #fff2a8;

  text-shadow: 0 2px 10px rgba(255, 200, 50, .4);
}

.finale-wish {
  font-size: clamp(.82rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.95);

  max-width: 440px;
  line-height: 1.95;
  font-style: italic;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.puzzle-section {
  width: 100%;
  max-width: 100%;
}

.puzzle-intro {
  font-size: clamp(.8rem, 2vw, .95rem);
  color: #fde8f5;

  font-weight: 700;
  margin-bottom: .75rem;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.puzzle-grid {
  display: grid;
  border: 3px solid var(--pur2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(160, 80, 200, .25);
  user-select: none;
  touch-action: none;
}

.p-piece {
  position: relative;
  overflow: hidden;
  transition: transform .15s, box-shadow .2s;
  border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer;
}

.p-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.p-piece::after {
  content: attr(data-n);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(.65rem, 2vw, .95rem);
  font-weight: 900;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  background: rgba(130, 60, 180, .22);
  pointer-events: none;
  transition: opacity .35s;
}

.p-piece.placed::after {
  opacity: 0;
}

.p-piece.selected {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
  transform: scale(.93);
  box-shadow: inset 0 0 0 3px var(--gold);
}

.p-piece.hint-flash {
  animation: hintFlash .4s ease 3;
}

.puzzle-controls {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .75rem;
}

.puzzle-progress {
  font-size: clamp(.7rem, 1.8vw, .82rem);
  color: rgba(255, 255, 255, 0.85);

  font-weight: 700;
  margin-top: .4rem;
  text-align: center;
}

.gift-box {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  padding: 1.4rem 1.6rem;
  border-radius: 22px;
  text-align: center;
}

.gift-box.show {
  display: flex;
  animation: popIn .65s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

.gift-icon {
  font-size: clamp(2.5rem, 7vw, 4rem);
  animation: heartBeat 1.5s ease-in-out infinite;
}

.gift-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--pur3);
}

.gift-msg {
  font-size: clamp(.8rem, 2vw, .95rem);
  color: var(--pur5);
  line-height: 1.9;
  max-width: 360px;
}

@media (max-width: 359px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }

  .s2-wrap,
  .s3-wrap,
  .s4-wrap,
  .s7-wrap {
    padding: 1rem;
  }

  .letter-card {
    padding: 1.2rem;
  }

  .conn-dots {
    display: none;
  }
}

@media (max-width: 599px) {
  .s1-polaroid-1 {
    top: -5%;
    left: 4%;
    transform: rotate(-15deg) scale(0.55);
    transform-origin: top left;
  }
  .s1-polaroid-2 {
    bottom: 2%;
    right: 4%;
    transform: rotate(15deg) scale(0.55);
    transform-origin: bottom right;
  }

  .s1-inner {
    gap: 0.7rem;
  }
  
  .s1-quote {
    font-size: 0.82rem;
    margin: 0.3rem 0 0.8rem 0;
    line-height: 1.4;
    max-width: 95%;
  }
  
  .s1-audio-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
  }
  
  .s1-eyebrow {
    font-size: 0.55rem;
    padding: 0.3rem 1rem;
  }
  
  .s1-pill {
    font-size: 0.65rem;
    padding: 0.4rem 1.2rem;
  }

  .tl-list,
  .s3-wrap,
  .s7-wrap {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  .connect-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    gap: 0.2rem;
  }

  .conn-mid {
    margin: 0;
    transform: scale(0.85);

  }

  .conn-dots {
    transform: none;
  }

  .dc-sidebar {
    display: none;
  }

  .dc-main {
    padding: .6rem;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .s2-wrap {
    max-width: 90%;
  }
}

@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 1024px) and (max-height: 800px) {
  .letter-card {
    max-height: 100%;
  }

  .photo-card {
    padding-bottom: 24px;
  }
}

@media (min-width: 1200px) {
  .s2-wrap {
    max-width: 900px;
  }

  .s3-wrap {
    max-width: 1200px;
  }

  .s4-wrap {
    max-width: 1350px;
  }

  .s7-wrap {
    max-width: 900px;
  }

  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 115%;
  }

  .s2-wrap {
    max-width: 1200px;
  }

  .s3-wrap {
    max-width: 1500px;
  }

  .s4-wrap {
    max-width: 1700px;
  }

  .s7-wrap {
    max-width: 1200px;
  }

  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }

  .letter-card {
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .s5-wrap .letter-card {
    max-height: 85vh;
    padding: 1rem 1.5rem;
  }

  .s1-name {
    font-size: clamp(2rem, 8vh, 3.5rem);
  }

  .pg-title {
    font-size: clamp(1.2rem, 5vh, 2rem);
  }
}