/* Digital Memory Journey — pink romantic template */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #e91e8c;
}

.journey-page {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: "Sora", system-ui, sans-serif;
  color: #fff;
  background: #e91e8c;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

.journey-page *,
.journey-page *::before,
.journey-page *::after {
  box-sizing: border-box;
}

.journey-page a { color: inherit; text-decoration: none; }

.j-welcome {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem 4.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.35), transparent 45%),
    linear-gradient(180deg, #ffd6e7 0%, #f7a8c4 55%, #f48fb1 100%);
  color: #ad1457;
  position: relative;
  overflow: hidden;
}

.j-welcome::before {
  content: "❤";
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  opacity: 0.18;
  color: #ff2e78;
}

.j-hello {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 6px 18px rgba(173, 20, 87, 0.25);
}

.j-script {
  margin: -0.35rem 0 0.85rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  color: #c2185b;
  font-weight: 400;
}

.j-welcome-sub {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 1.05rem;
  color: #c2185b;
}

.j-welcome-body {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
  color: #8e2458;
  font-size: 0.98rem;
}

.j-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, #c2185b, #e91e63);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 28px rgba(216, 27, 96, 0.35);
  cursor: pointer;
}

.j-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 2px;
  height: 36px;
  background: #ad1457;
  opacity: 0.7;
  pointer-events: none;
}
.j-scroll-hint::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #ad1457;
  border-bottom: 2px solid #ad1457;
  transform: translateX(-50%) rotate(45deg);
}

.j-section {
  padding: 3.5rem 1.25rem;
  position: relative;
}

.j-section.pink {
  background: #e91e8c;
}

.j-section.deep {
  background: #4a1228;
}

.j-wrap {
  width: min(100%, 920px);
  margin-inline: auto;
}

.j-title {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.j-subtitle {
  text-align: center;
  margin: 0 0 2rem;
  font-style: italic;
  opacity: 0.9;
}

.j-counter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.5rem 0 1.25rem;
  width: 100%;
  max-width: 100%;
}

.j-counter-card {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  padding: 1rem 0.5rem;
  text-align: center;
  min-width: 0;
}

.j-counter-card strong {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.j-counter-card span {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ff4d8d;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.j-counter-note {
  text-align: center;
  margin: 0 0 0.75rem;
  opacity: 0.95;
}

.j-seconds {
  text-align: center;
  font-size: clamp(1.6rem, 7vw, 2.8rem);
  font-weight: 800;
  color: #6b0f3a;
  text-shadow: 0 0 0 transparent;
  word-break: break-all;
  overflow-wrap: anywhere;
  padding: 0 0.5rem;
}

.j-timeline {
  position: relative;
  padding: 1rem 0 2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.j-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
}

.j-item {
  position: relative;
  width: min(42%, 340px);
  margin: 0 0 1.75rem;
  padding: 1.15rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
  max-width: 100%;
}

.j-item:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
}

.j-item:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
}

.j-item::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e91e8c;
}

.j-item:nth-child(odd)::after {
  right: -1.15rem;
  transform: translateX(50%);
}

.j-item:nth-child(even)::after {
  left: -1.15rem;
  transform: translateX(-50%);
}

.j-item-icon { font-size: 1.4rem; }
.j-item-date {
  margin: 0.35rem 0;
  color: #ffe082;
  font-size: 0.85rem;
  font-weight: 600;
}
.j-item-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
}
.j-item-photo {
  margin: 0.55rem 0 0.65rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.12);
}
.j-item-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.j-item-text {
  margin: 0;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.95;
}

.j-song-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}

.j-vinyl {
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ff4d8d 0 18%, #111 18.5% 22%, #222 22% 28%, #111 28.5% 100%);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  position: relative;
  animation: j-spin 12s linear infinite;
}
.j-vinyl::after {
  content: "♪";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffe082;
  font-size: 1.4rem;
}
@keyframes j-spin { to { transform: rotate(360deg); } }

.j-song-meta {
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.j-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.j-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.j-song-msg {
  margin: 0.9rem 0 0;
  font-style: italic;
  line-height: 1.55;
}

.j-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.j-gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.12);
}

.j-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.j-gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  opacity: 0.85;
  padding: 2rem;
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: 16px;
}

.j-letter-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fcf9f5;
  color: #333;
  border-radius: 18px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    rgba(0,0,0,0.05) 28px
  );
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 0.98rem;
}

.j-closing {
  text-align: center;
  margin-top: 1.75rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: #ffc1d6;
}

.j-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .j-welcome {
    padding: 3.25rem 1.15rem 4rem;
    min-height: 100svh;
  }
  .j-section {
    padding: 2.25rem 0;
    overflow-x: hidden;
  }
  .j-wrap {
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
  }
  .j-start-btn {
    width: min(100%, 320px);
    justify-content: center;
    min-height: 48px;
  }
  /* 2 columns on phones — 5-wide grid was overflowing and left a white strip */
  .j-counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .j-counter-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
  .j-timeline {
    padding-left: 0.25rem;
  }
  .j-timeline::before {
    left: 14px;
    transform: none;
  }
  .j-item,
  .j-item:nth-child(odd),
  .j-item:nth-child(even) {
    width: auto;
    margin-left: 2.35rem;
    margin-right: 0;
    text-align: left;
  }
  .j-item::after,
  .j-item:nth-child(odd)::after,
  .j-item:nth-child(even)::after {
    left: -1.4rem;
    right: auto;
    transform: none;
  }
  .j-song-grid {
    grid-template-columns: 1fr;
  }
  .j-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .j-embed {
    aspect-ratio: 16 / 9;
  }
  .j-embed iframe {
    width: 100%;
    height: 100%;
  }
  .j-letter-card {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .j-gallery {
    grid-template-columns: 1fr;
  }
  .j-counter-card span {
    font-size: 0.62rem;
  }
  .j-title {
    font-size: 1.35rem;
    padding: 0 0.25rem;
  }
}

/* ——— Demo polish ——— */
.j-welcome-inner {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}

.j-welcome--photo {
  background:
    linear-gradient(180deg, rgba(255, 214, 231, 0.82) 0%, rgba(233, 30, 140, 0.55) 55%, rgba(173, 20, 87, 0.72) 100%),
    var(--j-welcome-photo) center / cover no-repeat;
  color: #fff;
}
.j-welcome--photo::before {
  display: none;
}
.j-welcome--photo .j-hello {
  color: #fff;
  text-shadow: 0 8px 28px rgba(80, 10, 40, 0.45);
}
.j-welcome--photo .j-script {
  color: #ffe4f0;
  text-shadow: 0 4px 18px rgba(80, 10, 40, 0.4);
}
.j-welcome--photo .j-welcome-sub,
.j-welcome--photo .j-welcome-body {
  color: rgba(255, 255, 255, 0.92);
}
.j-welcome--photo .j-scroll-hint,
.j-welcome--photo .j-scroll-hint::after {
  background: #fff;
  border-color: #fff;
}
.j-welcome--photo .j-scroll-hint {
  background: #fff;
}
.j-welcome--photo .j-scroll-hint::after {
  background: transparent;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.j-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.j-floaters span {
  position: absolute;
  font-size: 1.25rem;
  opacity: 0.35;
  animation: j-float 12s ease-in-out infinite;
  color: #fff;
}
.j-floaters span:nth-child(1) { left: 8%; top: 18%; animation-delay: 0s; font-size: 1.6rem; }
.j-floaters span:nth-child(2) { left: 78%; top: 22%; animation-delay: 1.4s; }
.j-floaters span:nth-child(3) { left: 18%; top: 68%; animation-delay: 2.2s; font-size: 1.1rem; }
.j-floaters span:nth-child(4) { left: 86%; top: 58%; animation-delay: 0.8s; }
.j-floaters span:nth-child(5) { left: 48%; top: 12%; animation-delay: 3s; font-size: 0.95rem; }
.j-floaters span:nth-child(6) { left: 62%; top: 78%; animation-delay: 1.8s; }

@keyframes j-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.28; }
  50% { transform: translateY(-18px) scale(1.08); opacity: 0.55; }
}

.journey-page--demo .j-item {
  box-shadow: 0 14px 36px rgba(90, 10, 45, 0.22);
  transition: transform 0.25s ease;
}
.journey-page--demo .j-item:hover {
  transform: translateY(-3px);
}
.journey-page--demo .j-item-photo {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}
.journey-page--demo .j-gallery figure {
  box-shadow: 0 10px 28px rgba(90, 10, 45, 0.25);
  transition: transform 0.25s ease;
}
.journey-page--demo .j-gallery figure:hover {
  transform: scale(1.02);
}
.journey-page--demo .j-counter-card {
  box-shadow: 0 10px 24px rgba(90, 10, 45, 0.18);
}
.journey-page--demo .j-seconds {
  color: #ffe082;
  letter-spacing: 0.02em;
}

.j-demo-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.j-demo-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff !important;
  font-weight: 700;
}
