/* GUNNODU'S WORLD — Main design */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pink: #e8b8bd;
  --cream: #fff8ed;
  --gold: #d6ad72;
  --dark: #49302f;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

#app {
  min-height: 100svh;
}

.welcome-screen {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(73, 42, 43, 0.22),
      rgba(73, 42, 43, 0.05)
    ),
    radial-gradient(
      circle at 50% 40%,
      #fff4e8 0%,
      #eec9c5 55%,
      #b98283 100%
    );
}

.welcome-screen::before,
.welcome-screen::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 248, 237, 0.55);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-screen::before {
  inset: 18px;
}

.welcome-screen::after {
  inset: 28px;
}

.welcome-content {
  width: min(100%, 720px);
  padding: 45px 20px;
  animation: appear 1.5s ease both;
}

.eyebrow {
  color: #fff8ed;
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.welcome-content h1 {
  color: #fff8ed;
  font-size: clamp(36px, 8vw, 76px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 3px;
  text-shadow: 0 3px 20px rgba(60, 30, 30, 0.2);
}

.subtitle {
  color: #fff8ed;
  font-size: clamp(17px, 3vw, 24px);
  font-style: italic;
  margin-top: 22px;
}

#enter-world {
  margin-top: 42px;
  padding: 16px 34px;
  border: 1px solid #fff4df;
  border-radius: 40px;
  background: rgba(255, 248, 237, 0.92);
  color: #805454;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

#enter-world:hover {
  transform: translateY(-3px);
  background: white;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */

@media (max-width: 600px) {
  .welcome-content {
    padding: 30px 12px;
  }

  .welcome-content h1 {
    letter-spacing: 1px;
  }

  .eyebrow {
    letter-spacing: 2px;
  }

  #enter-world {
    padding: 15px 28px;
  }

  .welcome-screen::before {
    inset: 10px;
  }

  .welcome-screen::after {
    inset: 18px;
  }
}/* =================================
   INTERACTIVE GARDEN MAP
================================= */

.garden-screen,
.chapter-screen {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: 70px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, #fff2e8, transparent 65%),
    linear-gradient(145deg, #d9a6a8, #f4d9d1 48%, #b98583);
}

.garden-screen::before,
.chapter-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px;
  border: 1px solid rgba(255, 248, 237, 0.65);
  pointer-events: none;
}

.garden-heading {
  text-align: center;
  color: #fffaf0;
  margin: 15px auto 55px;
}

.garden-heading h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  margin: 16px 0;
}

.garden-heading > p:last-child {
  font-style: italic;
  font-size: 19px;
}

.garden-map {
  width: min(100%, 950px);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.garden-destination {
  min-height: 210px;
  padding: 25px 14px;
  border: 1px solid rgba(255, 248, 237, 0.8);
  border-radius: 130px 130px 20px 20px;
  background: rgba(255, 248, 237, 0.76);
  color: #754c4c;
  font-family: Georgia, serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(80, 43, 43, 0.12);
  transition: transform 0.35s ease, background 0.35s ease;
}

.garden-destination:hover {
  transform: translateY(-8px);
  background: #fffaf3;
}

.destination-symbol {
  font-size: 38px;
}

.destination-title {
  font-size: 19px;
}

.destination-subtitle {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.8;
}

.chapter-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.chapter-content {
  width: min(100%, 650px);
  padding: 50px 20px;
  color: #fffaf0;
}

.chapter-symbol {
  font-size: 65px;
  margin-bottom: 25px;
}

.chapter-content h1 {
  font-size: clamp(34px, 7vw, 62px);
  font-weight: 400;
  margin: 22px 0;
}

.chapter-content > p {
  font-size: 19px;
}

.chapter-divider {
  margin: 35px 0;
  font-size: 24px;
}

.chapter-coming {
  font-style: italic;
  line-height: 1.8;
}

.back-button {
  position: absolute;
  top: 35px;
  left: 35px;
  border: 1px solid rgba(255, 248, 237, 0.8);
  border-radius: 30px;
  padding: 12px 20px;
  background: rgba(255, 248, 237, 0.85);
  color: #754c4c;
  font-family: Georgia, serif;
  cursor: pointer;
}

/* Mobile layout */

@media (max-width: 650px) {
  .garden-screen,
  .chapter-screen {
    padding: 55px 22px;
  }

  .garden-heading {
    margin: 30px auto 38px;
  }

  .garden-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .garden-destination {
    min-height: 175px;
    padding: 18px 9px;
    border-radius: 100px 100px 16px 16px;
  }

  .destination-symbol {
    font-size: 31px;
  }

  .destination-title {
    font-size: 16px;
  }

  .destination-subtitle {
    font-size: 12px;
  }

  .back-button {
    top: 25px;
    left: 25px;
  }
}

@media (max-width: 360px) {
  .garden-map {
    gap: 10px;
  }

  .garden-destination {
    min-height: 155px;
  }
}/* =====================================
   GUNNODU'S WORLD — REAL GARDEN SCENERY
===================================== */

/* Desktop artwork */
.welcome-screen,
.garden-screen,
.chapter-screen {
  background-image:
    linear-gradient(
      rgba(48, 27, 31, 0.20),
      rgba(48, 27, 31, 0.20)
    ),
    url("assets/backgrounds/garden-desktop.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Keep text readable over the artwork */
.garden-heading,
.chapter-content {
  text-shadow: 0 2px 12px rgba(40, 20, 20, 0.35);
}

/* Mobile uses its own portrait artwork */
@media (max-width: 650px) {
  .welcome-screen,
  .garden-screen,
  .chapter-screen {
    background-image:
      linear-gradient(
        rgba(48, 27, 31, 0.18),
        rgba(48, 27, 31, 0.18)
      ),
      url("assets/backgrounds/garden-mobile.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
}/* GARDEN GATE DESIGN */

.garden-destination {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    145deg,
    rgba(255, 250, 239, 0.96),
    rgba(239, 215, 193, 0.91)
  );
  border: 1px solid rgba(197, 151, 96, 0.85);
  outline: 1px solid rgba(255, 245, 220, 0.7);
  outline-offset: -7px;
  box-shadow:
    0 14px 35px rgba(55, 29, 25, 0.28),
    inset 0 0 25px rgba(255, 255, 255, 0.55);
  color: #68413c;
}

.garden-destination::after {
  content: "✧";
  position: absolute;
  bottom: 10px;
  color: #bd8d55;
  font-size: 17px;
}

.garden-destination:hover {
  transform: translateY(-7px) scale(1.025);
  background: linear-gradient(
    145deg,
    #fffdf6,
    #f5dfcf
  );
  box-shadow:
    0 20px 42px rgba(55, 29, 25, 0.35),
    inset 0 0 25px white;
}

.destination-symbol {
  filter: drop-shadow(0 3px 4px rgba(80, 40, 30, 0.15));
}

.destination-title {
  color: #68413c;
  font-weight: 500;
}

.destination-subtitle {
  color: #805d55;
  opacity: 1;
}/* LEKHANA'S PERSONAL WELCOME */

.welcome-intro {
  color: #fff6e9;
  font-size: clamp(16px, 2vw, 21px);
  font-style: italic;
  margin-bottom: 18px;
}

.welcome-title {
  color: #fff8ef;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.18;
}

.her-name {
  color: #f4c2c0;
  font-family: cursive;
  font-style: italic;
  font-size: clamp(58px, 10vw, 105px);
  line-height: 1.25;
  text-shadow: 0 3px 18px rgba(65, 25, 30, 0.3);
}

.her-full-name {
  color: #fff5e8;
  letter-spacing: 6px;
  font-size: clamp(12px, 2vw, 17px);
  margin-top: 4px;
}

.welcome-divider {
  color: #ffe0bd;
  margin: 25px 0;
  font-size: 25px;
}

.welcome-content .subtitle {
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.7;
  margin-top: 0;
}

#enter-world {
  background: linear-gradient(135deg, #d88987, #b96668);
  color: #fff8ed;
  border: 1px solid #f6d4b9;
  min-width: 230px;
}

@media (max-width: 600px) {
  .her-full-name {
    letter-spacing: 4px;
  }

  .welcome-content {
    padding: 25px 14px;
  }
}/* =================================
   BIRTHDAY MEMORIES GALLERY
================================= */

.memories-screen {
  padding: 30px 20px 60px;
  min-height: 100vh;
}

.memories-screen .chapter-content {
  text-align: center;
  margin: 45px auto 35px;
}

.memories-screen h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 15px 0;
  color: #f5d9e5;
}

.memories-screen .chapter-content > p:last-of-type {
  color: #e5c5d2;
}

.memory-grid {
  width: min(1100px, 100%);
  margin: 35px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.memory-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.memory-grid img:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .memories-screen {
    padding: 20px 12px 45px;
  }
}/* CINEMATIC PHOTO VIEWER */

.photo-viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(ellipse at 20% 20%, #f8dce8, transparent 55%),
    radial-gradient(ellipse at 80% 80%, #e8dafa, transparent 55%),
    linear-gradient(135deg, #f8e8df, #f3dce8);
  align-items: center;
  justify-content: center;
  padding: 55px 65px;
  isolation: isolate;
}

.photo-viewer.active {
  display: flex;
}

.photo-viewer img {
  position: relative;
  z-index: 2;
  max-width: 85%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(255, 210, 225, 0.15);
}
/* Cinematic photo transition */
.photo-viewer img.photo-changing {
    animation: photoReveal 0.45s ease both;
}

@keyframes photoReveal {
    from {
        opacity: 0;
        transform: scale(0.985);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-viewer button {
  position: absolute;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 30px;
}

.viewer-close {
  top: 20px;
  right: 25px;
}

.viewer-prev {
  left: 15px;
}

.viewer-next {
  right: 15px;
}

.viewer-counter {
  position: absolute;
  bottom: 15px;
  color: white;
  font-size: 14px;
}

@media (max-width: 600px) {
  .photo-viewer {
    padding: 55px 40px;
  }

  .photo-viewer img {
    max-width: 100%;
    max-height: 75vh;
  }

  .photo-viewer button {
    width: 38px;
    height: 38px;
    font-size: 25px;
  }
}/* =====================================
   GUNNODU'S WORLD
   CREAM EDITORIAL SCRAPBOOK
===================================== */

:root {
  --paper: #F5EDE3;
  --paper-white: #FFFDF8;
  --soft-beige: #E8D8C8;
  --vintage-brown: #754C43;
  --muted-rose: #B58A70;
  --ink: #29221F;
}

.memories-screen {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  padding: 30px 20px 70px;
}

.memories-screen .chapter-content {
  text-align: center;
  max-width: 750px;
  margin: 55px auto 45px;
}

.memories-screen .eyebrow {
  color: var(--vintage-brown);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 11px;
}

.memories-screen h1 {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 400;
  letter-spacing: -2px;
  margin: 18px 0;
}

.memories-screen .chapter-content > p:last-of-type {
  color: var(--vintage-brown);
  font-family: Georgia, serif;
  font-size: 17px;
}

.memories-screen .chapter-divider {
  color: var(--muted-rose);
  margin-top: 25px;
  font-size: 22px;
}

.memories-screen .back-button {
  background: var(--paper-white);
  color: var(--vintage-brown);
  border: 1px solid var(--soft-beige);
  border-radius: 30px;
  padding: 13px 23px;
  cursor: pointer;
}/* CREAM SCRAPBOOK LAYOUT FIX */

.memories-screen {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #F5EDE3;
  color: #29221F;
}

.memories-screen .chapter-content {
  width: min(100%, 750px);
  margin: 55px auto 45px;
  text-align: center;
}

.memories-screen .memory-grid {
  width: min(100%, 1050px);
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  align-items: start;
}

.memories-screen .memory-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  padding: 9px;
  box-sizing: border-box;
  background: #FFFDF8;
  border-radius: 3px;
  box-shadow: 0 5px 16px rgba(65, 43, 32, 0.13);
  transition: transform 0.35s ease;
}

.memories-screen .memory-grid img:nth-child(3n + 1) {
  transform: rotate(-2deg);
}

.memories-screen .memory-grid img:nth-child(3n + 2) {
  transform: rotate(1.5deg);
}

.memories-screen .memory-grid img:nth-child(3n) {
  transform: rotate(-1deg);
}

.memories-screen .memory-grid img:hover {
  transform: rotate(0deg) translateY(-5px);
}

@media (max-width: 600px) {
  .memories-screen .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
}/* EDITORIAL SCRAPBOOK PHOTO COLLAGE */

.memories-screen .memory-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 24px;
}

.memories-screen .memory-grid img {
  grid-column: span 2;
  aspect-ratio: 4 / 5;
}

/* Featured photographs */
.memories-screen .memory-grid img:nth-child(8n + 1) {
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}

.memories-screen .memory-grid img:nth-child(8n + 5) {
  grid-column: span 3;
  aspect-ratio: 4 / 5;
}

.memories-screen .memory-grid img:nth-child(8n + 6) {
  grid-column: span 3;
  aspect-ratio: 4 / 5;
}

@media (max-width: 600px) {
  .memories-screen .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .memories-screen .memory-grid img,
  .memories-screen .memory-grid img:nth-child(n) {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
  }

  .memories-screen .memory-grid img:nth-child(8n + 1) {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }
}

/* =================================
   GUNNU'S CINEMATIC MEMORY GALLERY
================================= */

.memories-screen .memory-grid {
    gap: 18px;
    padding: 12px 0;
}

.memories-screen .memory-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease,
                box-shadow 0.35s ease;
}

.memories-screen .memory-grid img:hover {
    transform: scale(1.035);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.photo-viewer {
    backdrop-filter: blur(14px);
}

.photo-viewer img {
    max-width: 92%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .memories-screen .memory-grid {
        gap: 12px;
    }

    .memories-screen .memory-grid img {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .memories-screen .memory-grid img {
        transition: none;
    }
}/* Elegant memory chapter buttons */
.memory-chapters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 45px auto;
    padding: 15px;
}

.chapter-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid #c9bda8;
    border-radius: 30px;
    padding: 13px 22px;
    color: #655544;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(80, 60, 40, 0.08);
}

.chapter-card:hover {
    background: #e9dfd0;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(80, 60, 40, 0.15);
}

.chapter-card span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.75;
}/* Luxury cinematic photo viewer upgrade */

.photo-viewer img {
    max-width: 88%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 14px;
    border: 2px solid rgba(255, 235, 215, 0.65);
    box-shadow:
        0 15px 60px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(255, 220, 190, 0.16);
    animation: memoryReveal 0.5s ease;
}

@keyframes memoryReveal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-viewer button:hover {
    background: rgba(255, 235, 215, 0.35);
    transform: scale(1.12);
}


/* =================================
   GUNNU'S WORLD - MOBILE EXPERIENCE
================================= */

@media (max-width: 600px) {

    * {
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .welcome-content {
        width: 100%;
        padding: 35px 18px;
    }

    .welcome-content h1 {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.2;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }

    #enter-world {
        padding: 14px 25px;
        font-size: 14px;
    }

    .memory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .memory-grid img {
        width: 100%;
        height: 190px;
        object-fit: cover;
    }

    .photo-viewer {
        padding: 20px 12px;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }

    .photo-viewer img {
        max-width: 92%;
        max-height: 68vh;
        object-fit: contain;
    }

    .photo-viewer button {
        width: 42px;
        height: 42px;
    }

    .viewer-caption {
        max-width: 90%;
        font-size: 15px;
        text-align: center;
        line-height: 1.6;
    }

    .viewer-counter {
        font-size: 13px;
    }
}/* OUR BEGINNING — CINEMATIC LOVE STORY */

.love-story {
  width: 100%;
  margin: 45px auto 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.story-moment {
  padding: 32px 25px;
  border: 1px solid rgba(255, 235, 215, 0.35);
  border-radius: 22px;
  background: rgba(255, 248, 240, 0.09);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(30, 15, 20, 0.15);
  animation: storyReveal 0.9s ease both;
  text-align: center;
}

.story-moment:nth-child(2) {
  animation-delay: 0.2s;
}

.story-moment:nth-child(3) {
  animation-delay: 0.4s;
}

.story-date {
  display: block;
  color: #f5d6c8;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.story-moment h2 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 400;
  margin-bottom: 18px;
  color: #fff1e8;
}

.story-moment p {
  font-size: 16px;
  line-height: 1.9;
  color: #fffaf5;
}

.story-decoration {
  font-size: 27px;
  margin-top: 20px;
}

@keyframes storyReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .love-story {
    gap: 18px;
    margin-top: 30px;
  }

  .story-moment {
    padding: 25px 18px;
  }

  .story-moment p {
    font-size: 15px;
  }
}/* First meeting photograph */
.story-photo {
  display: block;
  width: min(100%, 340px);
  max-height: 420px;
  object-fit: contain;
  margin: 25px auto;
  border: 5px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  animation: storyReveal 1s ease both;
}
/* LUXURY VINTAGE BLUSH CAKE */

.birthday-cake {
  max-width: 480px;
  margin: 45px auto;
  padding: 40px 15px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px;
  background: rgba(255,245,240,.10);
  backdrop-filter: blur(14px);
}

.real-cake {
  position: relative;
  width: 300px;
  height: 290px;
  margin: 35px auto 15px;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.2));
}

.cake-plate {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg,#fff9ef,#d9b9a9);
  box-shadow: 0 9px 16px rgba(0,0,0,.2);
}

.cake-plate span {
  color: #bd8b73;
  font-size: 14px;
}

.cake-layer {
  position: absolute;
  overflow: hidden;
  border: 2px solid #fff0e8;
  box-shadow:
    inset 0 -9px 12px rgba(156,83,76,.12),
    0 5px 8px rgba(0,0,0,.13);
}

.cake-bottom {
  bottom: 20px;
  left: 20px;
  width: 260px;
  height: 95px;
  border-radius: 20px 20px 14px 14px;
  background: linear-gradient(90deg,#d98c91,#ffe0d5 45%,#d98c91);
}

.cake-middle {
  bottom: 115px;
  left: 42px;
  width: 216px;
  height: 68px;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(90deg,#edb3ad,#fff0e5 50%,#e8aaa7);
}

.cake-top {
  position: absolute;
  bottom: 175px;
  left: 42px;
  width: 216px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(ellipse,#fff7ec,#f3c9bd);
  box-shadow: 0 6px 9px rgba(0,0,0,.12);
}

.frosting-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  border-radius: 50%;
  border-top: 8px dotted #fff7ed;
  border-bottom: 5px double #fff7ed;
}

.cake-pearls {
  position: absolute;
  top: 38px;
  width: 100%;
  color: #fff9e9;
  font-size: 19px;
  letter-spacing: 4px;
  text-align: center;
  text-shadow: 0 2px 3px #b77d79;
}

.cake-top span {
  position: absolute;
  top: 3px;
  font-size: 25px;
}

.cake-strawberry:first-child { left: 22px; }
.cake-flower { left: 94px; }
.cake-strawberry:last-child { right: 22px; }

.candles {
  position: absolute;
  z-index: 6;
  bottom: 207px;
  left: 87px;
  display: flex;
  gap: 34px;
}

.candle {
  position: relative;
  width: 13px;
  height: 55px;
  border-radius: 5px;
  background: repeating-linear-gradient(
    135deg,#fff9e9 0 5px,#df9ba5 5px 9px
  );
  box-shadow: 2px 3px 5px rgba(0,0,0,.18);
}

.wick {
  position: absolute;
  top: -7px;
  left: 5px;
  width: 2px;
  height: 8px;
  background: #3b2924;
}

.flame {
  position: absolute;
  top: -31px;
  left: -1px;
  width: 15px;
  height: 26px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(
    ellipse at 50% 70%,
    #fff 0 12%,
    #ffe58b 35%,
    #ff9b37 70%,
    transparent 100%
  );
  filter: drop-shadow(0 0 9px #ffc65d);
  transform-origin: center bottom;
  animation: realisticFlame .16s infinite alternate;
}

@keyframes realisticFlame {
  from { transform: rotate(-6deg) scale(.95,1); }
  to { transform: rotate(7deg) scale(1.08,.94); }
}

.birthday-cake.blown-out .flame {
  opacity: 0;
  transform: scale(.2) translateY(-12px);
}

.cake-hint {
  color: #fff4e8;
  font-style: italic;
  margin: 25px 0;
}

.birthday-cake button {
  margin: 7px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 30px;
  background: rgba(255,255,255,.18);
  color: white;
  cursor: pointer;
}

@media(max-width:600px) {
  .real-cake {
    transform: scale(.88);
    transform-origin: center;
  }
}
.cake-name {
  position: absolute;
  top: 38px;
  width: 100%;
  text-align: center;
  color: #9b5361;
  font-family: Georgia, serif;
  font-size: 23px;
  font-style: italic;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(255,255,255,.8);
  z-index: 2;
}
/* PERSONAL LOVE LETTER CLOSING */
.letter-closing {
  margin-top: 28px;
  color: #fff1e8;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.9;
  font-style: italic;
  text-align: center;
}

.letter-signature {
  margin-top: 25px;
  color: #f5c5c9;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.8;
  font-style: italic;
  text-align: right;
  padding-right: 20px;
}
/* MAGICAL BIRTHDAY GIFT REVEAL */
#gift-message:not([hidden]) {
  animation: giftReveal 1.4s ease both;
  transform-origin: center;
}

@keyframes giftReveal {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Elegant readable photo captions */
.viewer-caption {
  color: #fff8ed !important;
  background: linear-gradient(
    135deg,
    rgba(35, 18, 29, 0.94),
    rgba(91, 43, 65, 0.92)
  );
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  margin: 12px auto;
}
/* Dreamy romantic photo viewer */
.photo-viewer {
  background:
    radial-gradient(ellipse at 15% 20%,
      rgba(255, 220, 224, 0.95), transparent 48%),
    radial-gradient(ellipse at 85% 80%,
      rgba(230, 190, 190, 0.85), transparent 48%),
    linear-gradient(135deg,
      #f9e8e5,
      #ead5dc,
      #f7e9d8) !important;
}

/* Soft champagne glow */
.photo-viewer .viewer-caption {
  background: linear-gradient(
    135deg,
    #8d5265,
    #b77b79
  ) !important;
  color: #fffaf0 !important;
  border: 1px solid rgba(255, 235, 205, 0.7);
}

/* Elegant navigation controls */
.photo-viewer button {
  background: rgba(139, 78, 99, 0.82);
  color: #fff8ed;
  border: 1px solid rgba(255, 235, 205, 0.65);
}
/* Multicolour romantic petals */
.falling-petals {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.falling-petal:nth-child(4n) {
  background: linear-gradient(135deg, #e8c9ff, #b99ae8);
}

.falling-petal:nth-child(4n + 1) {
  background: linear-gradient(135deg, #ffe0c2, #f2a77f);
}

.falling-petal:nth-child(4n + 2) {
  background: linear-gradient(135deg, #fff6d8, #e7d19b);
}

.falling-petal:nth-child(4n + 3) {
  background: linear-gradient(135deg, #ffc8dc, #e78bab);
}

/* Falling flower petals animation */
.falling-petal {
  position: absolute;
  top: -30px;
  width: 14px;
  height: 20px;
  border-radius: 80% 10% 80% 10%;
  opacity: 0.9;
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  0% {
    transform: translateY(-30px) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(50vh) translateX(45px) rotate(180deg);
  }
  100% {
    transform: translateY(110vh) translateX(-35px) rotate(360deg);
  }
}