:root {
  --bg-deep: #07070c;
  --bg-glow: #12121a;
  --text-primary: #f4efe6;
  --text-muted: rgba(244, 239, 230, 0.62);
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dim: rgba(201, 169, 98, 0.35);
  --rose: #c47b8a;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(201, 169, 98, 0.22);
  --accent: #c9a962;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 169, 98, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(196, 123, 138, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 70%, rgba(120, 140, 180, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg-glow) 0%, var(--bg-deep) 100%);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  z-index: 0;
}

body.gallery-open {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  mix-blend-mode: screen;
}

.container {
  height: 100vh;
  width: 100vw;
  margin: 0 auto;
  text-align: center;
  visibility: hidden;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.container.gallery-open {
  overflow: visible;
  height: auto;
  min-height: 100vh;
}

.container div.six {
  top: 12vh;
  z-index: 2;
}

.container div.seven,
.container div.eight {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
}

.container > div:not(.ten) {
  position: absolute;
  left: 0;
  right: 0;
  top: 18vh;
  padding: 0 1.5rem;
}

.one {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.one h1.one {
  margin: 0;
}

.one [data-node-name="greeting"] {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  margin-bottom: 0.35em;
}

.one [data-node-name="name"] {
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 45%, #a8864a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  letter-spacing: 0.12em;
  filter: drop-shadow(0 0 24px rgba(201, 169, 98, 0.25));
}

.two {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

.three {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.four .text-box {
  width: min(640px, 92vw);
  margin: 0 auto;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem 1.1rem 3.2rem;
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.text-box p {
  margin: 0;
  text-align: left;
  line-height: 1.85;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.28);
}

.five p {
  font-size: clamp(1.2rem, 3vw, 1.85rem);
  position: absolute;
  left: 0;
  right: 0;
  line-height: 1.65;
  padding: 0 1rem;
}

.idea-3 strong {
  padding: 0.15em 0.45em;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid var(--gold-dim);
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold-light);
}

.five .idea-5 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--gold-light);
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
}

.idea-6 span {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 600;
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.15), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(201, 169, 98, 0.18);
}

.six {
  position: relative;
}

.six img.lydia-dp {
  display: inline-block;
  max-width: min(280px, 72vw);
  height: auto;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 98, 0.45);
  box-shadow:
    0 0 0 8px rgba(201, 169, 98, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(201, 169, 98, 0.12);
  object-fit: cover;
  object-position: center 22%;
  aspect-ratio: 1;
}

.six .hat {
  position: absolute;
  width: 72px;
  top: -58px;
  left: 50%;
  transform: translateX(-50%) scale(1.05);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.baloons img {
  display: inline-block;
  position: absolute;
  opacity: 0.35;
  filter: saturate(0.6) brightness(0.85);
}

.baloons img:nth-child(even) {
  left: -10%;
}

.baloons img:nth-child(odd) {
  right: -10%;
}

.baloons img:nth-child(3n + 0) {
  left: 30%;
}

.eight svg {
  width: 25px;
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  z-index: -1;
}

.eight svg:nth-child(1) { top: 7vh; left: 5vw; fill: #c9a962; }
.eight svg:nth-child(2) { top: 23vh; left: 35vw; fill: #c47b8a; }
.eight svg:nth-child(3) { top: 33vh; left: 23vw; fill: #8a9bb5; }
.eight svg:nth-child(4) { top: 43vh; left: 57vw; fill: #c9a962; }
.eight svg:nth-child(5) { top: 68vh; left: 7vw; fill: #a8864a; }
.eight svg:nth-child(6) { top: 42vh; left: 77vw; fill: #c47b8a; }
.eight svg:nth-child(7) { top: 68vh; left: 83vw; fill: #e8d5a3; }
.eight svg:nth-child(8) { top: 86vh; left: 37vw; fill: #8a9bb5; }
.eight svg:nth-child(9) { top: 94vh; left: 87vw; fill: #c9a962; }

.wish-hbd {
  font-size: clamp(2rem, 5vw, 3em);
  margin: 1.2rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 400;
}

.wish h5 {
  font-weight: 300;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  margin: 1rem auto 0;
  max-width: 36em;
  line-height: 1.85;
  color: var(--text-muted);
}

.nine p {
  font-size: clamp(1.1rem, 2.8vw, 1.65rem);
  font-weight: 300;
  color: var(--text-muted);
}

#replay {
  z-index: 3;
  cursor: pointer;
  color: var(--gold-light);
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

#replay:hover {
  color: var(--gold);
  letter-spacing: 0.06em;
}

.last-smile {
  color: var(--rose);
  font-size: 1.5em;
}

/* —— Travel gallery (final act) —— */
.ten.travel-gallery {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(0.85rem, 3vw, 1.75rem) calc(2.5rem + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  text-align: left;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(201, 169, 98, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(7, 7, 12, 0.2) 0%, var(--bg-deep) 35%);
}

.container.gallery-open .ten.travel-gallery {
  pointer-events: auto;
}

.travel-gallery__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.travel-gallery__header {
  text-align: center;
  margin-bottom: clamp(1.25rem, 3.5vw, 2rem);
}

.travel-gallery__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  color: var(--gold);
  font-weight: 400;
}

.travel-gallery__title {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.travel-gallery__subtitle {
  margin: 1rem auto 0;
  max-width: 28em;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.travel-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.6vw, 1rem);
}

.travel-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.travel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 98, 0.45);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(201, 169, 98, 0.08);
}

.travel-card--hero {
  grid-column: span 2;
}

.travel-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.travel-card--hero .travel-card__media {
  aspect-ratio: 16 / 10;
  max-height: min(42vh, 320px);
}

.travel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease;
}

.travel-card:hover .travel-card__media img {
  transform: scale(1.05);
}

.travel-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 12, 0.05) 0%,
    rgba(7, 7, 12, 0.15) 45%,
    rgba(7, 7, 12, 0.82) 100%
  );
  pointer-events: none;
}

.travel-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(232, 213, 163, 0.08) 50%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.travel-card:hover .travel-card__shine {
  opacity: 1;
}

.travel-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 0.9rem 0.95rem;
  z-index: 1;
}

.travel-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.travel-card__index {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  opacity: 0.85;
}

.travel-card__province {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 230, 0.55);
  text-transform: uppercase;
}

.travel-card__city {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.travel-card__caption {
  margin: 0.45rem 0 0;
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  line-height: 1.65;
  color: rgba(244, 239, 230, 0.72);
  letter-spacing: 0.03em;
}

.travel-gallery__footer {
  margin-top: clamp(1.25rem, 3.5vw, 2rem);
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  line-height: 1.9;
}

.travel-gallery__sign {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  font-size: 0.88em;
}

@media screen and (min-width: 900px) {
  .travel-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .travel-card--hero {
    grid-column: span 2;
  }
}

@media screen and (max-width: 640px) {
  .travel-gallery__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .travel-card--hero {
    grid-column: span 1;
  }

  .travel-card__media {
    aspect-ratio: 4 / 3;
  }

  .travel-card--hero .travel-card__media {
    aspect-ratio: 16 / 11;
    max-height: min(38vh, 260px);
  }

  .travel-card__caption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .travel-gallery__subtitle {
    font-size: 0.9rem;
    line-height: 1.65;
  }
}

.play-pause {
  width: 44px;
  height: 44px;
  background-size: 55%;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('../img/play.svg');
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  position: fixed;
  right: 5vw;
  top: 5vh;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  filter: invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(1.1);
}

.play-pause:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(201, 169, 98, 0.2);
}

.play-pause.playing {
  background-image: url('../img/pause.svg');
  animation: rotate 4s linear infinite;
}

.startSign {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.startSign .two:first-child {
  max-width: 22em;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.startSign .button {
  padding: 0.95rem 2.4rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.14), rgba(255, 255, 255, 0.03));
  color: var(--gold-light);
  letter-spacing: 0.22em;
  font-size: 0.9rem;
  transition: all 0.35s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.startSign .button:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-deep);
  border-color: transparent;
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(201, 169, 98, 0.25);
}

@media screen and (max-width: 500px) {
  .container {
    width: 100%;
  }

  .four .text-box {
    width: 92%;
    padding-bottom: 3.5rem;
  }

  .text-box .fake-btn {
    right: 10px;
    bottom: 10px;
  }

  .idea-5 span {
    display: block;
  }

  .six .hat {
    width: 52px;
    top: -42px;
  }

  .one [data-node-name="greeting"] {
    letter-spacing: 0.22em;
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
