/* =========================================================
   Private album
   ========================================================= */

[hidden] {
  display: none !important;
}

.album-body {
  min-height: 100svh;
  background: #fff7f2;
  color: var(--ink);
}

.album-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.34;
  transition: opacity 0.9s var(--ease);
}

.album-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.86) blur(1px);
  transform: scale(1.02);
}

.album-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 42%, rgba(255, 250, 247, 0.62), transparent 72%),
    linear-gradient(180deg, rgba(255, 248, 244, 0.38), rgba(255, 248, 244, 0.82));
}

.album-body.is-unlocked .album-backdrop {
  opacity: 0.24;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.album-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 13px clamp(20px, 4vw, 54px);
  border-bottom: 1px solid rgba(217, 93, 128, 0.12);
  background: rgba(255, 248, 244, 0.9);
  box-shadow: 0 10px 30px rgba(137, 73, 91, 0.05);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.album-header__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.album-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(90, 52, 68, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.album-header__tag i {
  color: var(--rose);
  font-style: normal;
}

.album-back {
  font-size: 0.72rem;
  color: rgba(90, 52, 68, 0.74);
  transition: color 0.3s ease;
}

.album-back:hover {
  color: var(--rose);
}

/* ---------------------------------------------------------
   Gate
   --------------------------------------------------------- */

.album-main {
  position: relative;
  z-index: 2;
}

.album-gate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 112px 24px 48px;
  overflow: hidden;
}

.gate-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gate-photo {
  position: absolute;
  display: block;
  width: clamp(120px, 14vw, 196px);
  padding: 7px 7px 25px;
  border-radius: 2px;
  background: #fffaf6;
  box-shadow: 0 28px 50px -30px rgba(96, 48, 64, 0.5);
  opacity: 0.75;
}

.gate-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gate-photo--1 {
  top: 17%;
  left: 4%;
  rotate: -8deg;
}

.gate-photo--2 {
  right: 5%;
  bottom: 12%;
  rotate: 8deg;
}

.gate-photo--3 {
  top: 10%;
  right: 12%;
  width: clamp(90px, 10vw, 138px);
  rotate: 12deg;
  opacity: 0.45;
}

.gate-spark {
  position: absolute;
  color: rgba(217, 93, 128, 0.42);
  font-family: var(--font-display);
  animation: gate-float 7s ease-in-out infinite;
}

.gate-spark--1 { top: 26%; left: 27%; font-size: 1.1rem; animation-delay: -1s; }
.gate-spark--2 { right: 24%; top: 33%; font-size: 1.5rem; animation-delay: -3.2s; color: rgba(255, 250, 246, 0.85); }
.gate-spark--3 { bottom: 22%; left: 20%; font-size: 0.8rem; animation-delay: -2.1s; }

@keyframes gate-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); opacity: 0.5; }
  50% { transform: translateY(-14px) rotate(5deg); opacity: 0.95; }
}

.gate-card {
  position: relative;
  width: min(100%, 520px);
  margin-top: 48px;
  padding: 0 clamp(24px, 5vw, 46px) 30px;
  border: 1px solid rgba(217, 93, 128, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 38%),
    rgba(255, 250, 246, 0.95);
  box-shadow:
    0 35px 80px -40px rgba(120, 60, 79, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  text-align: center;
  animation: gate-in 0.9s var(--ease-out) both;
}

@keyframes gate-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate-card.is-error {
  animation: gate-shake 0.45s var(--ease);
}

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.gate-art {
  position: relative;
  width: clamp(132px, 17vw, 176px);
  margin: -86px auto 2px;
  filter: drop-shadow(0 18px 24px rgba(125, 60, 82, 0.16));
}

.gate-art img {
  position: relative;
  z-index: 1;
  width: 100%;
}

.gate-art__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 209, 0.55), transparent 68%);
  transform: translate(-50%, -50%);
}

.gate-eyebrow {
  margin-top: 8px;
  color: var(--rose);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.gate-card h1 {
  margin: 10px 0 14px;
  font-family: var(--font-cn);
  font-size: clamp(1.95rem, 3.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.gate-copy {
  color: rgba(90, 52, 68, 0.62);
  font-family: var(--font-cn);
  font-size: 0.87rem;
  line-height: 2;
  letter-spacing: 0.02em;
}

.unlock-form {
  margin-top: 28px;
  text-align: left;
}

.gate-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(90, 52, 68, 0.5);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.password-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 93, 128, 0.22);
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: inset 0 2px 7px rgba(119, 62, 79, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.password-wrap:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(217, 93, 128, 0.09);
}

.password-wrap.is-invalid {
  border-color: #c94f69;
  box-shadow: 0 0 0 4px rgba(201, 79, 105, 0.09);
}

.password-wrap input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
}

.password-wrap input::placeholder {
  color: #b49aa2;
}

.password-toggle {
  flex: 0 0 auto;
  margin-right: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rose);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.password-toggle:hover {
  background: rgba(217, 93, 128, 0.08);
}

.album-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--rose);
  color: #fffaf6;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  cursor: pointer;
  box-shadow: 0 16px 30px -16px rgba(191, 74, 108, 0.6);
  transition: transform 0.35s var(--ease), background 0.3s ease, box-shadow 0.35s ease;
}

.album-submit:hover {
  background: #cf5274;
  transform: translateY(-2px);
  box-shadow: 0 20px 35px -16px rgba(191, 74, 108, 0.7);
}

.album-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.album-submit__icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(255, 250, 246, 0.18);
  font-size: 0.68rem;
}

.gate-message {
  min-height: 1.8em;
  margin-top: 10px;
  color: #bf4b66;
  font-size: 0.72rem;
  line-height: 1.8;
  text-align: center;
}

.gate-message.is-success {
  color: var(--rose);
}

.unlock-heart {
  position: fixed;
  z-index: 120;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 1rem;
  pointer-events: none;
  animation: unlock-heart 1.7s var(--ease-out) both;
}

@keyframes unlock-heart {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drift), calc(var(--rise) * -1)) rotate(var(--spin)); }
}

.gate-note {
  margin-top: 18px;
  color: rgba(90, 52, 68, 0.4);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.gate-note span {
  color: var(--rose);
}

.gate-foot {
  margin-top: 28px;
  color: rgba(90, 52, 68, 0.38);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ---------------------------------------------------------
   Gallery
   --------------------------------------------------------- */

.album-gallery {
  min-height: calc(100svh - 64px);
  padding: clamp(70px, 9vw, 110px) clamp(20px, 5vw, 48px) 80px;
  background:
    radial-gradient(ellipse 55% 42% at 84% 6%, rgba(255, 196, 212, 0.27), transparent 70%),
    radial-gradient(ellipse 42% 44% at 6% 82%, rgba(211, 193, 236, 0.16), transparent 72%),
    rgba(255, 248, 244, 0.9);
  animation: gallery-in 0.9s var(--ease-out) both;
}

@keyframes gallery-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.album-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.album-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(217, 93, 128, 0.14);
}

.album-eyebrow {
  color: var(--rose);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.album-hero h1 {
  margin: 17px 0 18px;
  font-family: var(--font-cn);
  font-size: clamp(2.9rem, 6.3vw, 5.6rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.015em;
}

.album-hero h1 em {
  color: var(--rose);
  font-style: italic;
}

.album-lead {
  color: rgba(90, 52, 68, 0.6);
  font-family: var(--font-cn);
  font-size: 0.88rem;
  line-height: 2.1;
}

.album-hero__side {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 8px;
}

.album-hero__stamp {
  position: relative;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(217, 93, 128, 0.32);
  border-radius: 50%;
  color: var(--rose);
  transform: rotate(9deg);
}

.album-hero__stamp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.album-hero__stamp svg text {
  fill: rgba(90, 52, 68, 0.5);
  font-family: var(--font-body);
  font-size: 7.5px;
  letter-spacing: 2px;
}

.album-hero__stamp > span {
  font-family: var(--font-display);
  font-size: 2rem;
}

.album-hero__hand {
  color: rgba(90, 52, 68, 0.4);
  font-family: var(--font-cn);
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.9;
  letter-spacing: 0.05em;
  transform: rotate(-4deg);
}

.album-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0 30px;
}

.album-toolbar > span {
  color: rgba(90, 52, 68, 0.48);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.album-toolbar strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.album-toolbar i {
  margin: 0 3px;
  color: var(--rose);
  font-style: normal;
}

/* ---------------------------------------------------------
   Private film
   --------------------------------------------------------- */

.album-film {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 325px);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  margin-bottom: clamp(38px, 5vw, 58px);
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(217, 93, 128, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 45% 75% at 88% 20%, rgba(255, 194, 209, 0.38), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 239, 243, 0.68));
  box-shadow:
    0 30px 65px -48px rgba(95, 52, 65, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.album-film::before {
  content: "♡";
  position: absolute;
  top: -38px;
  left: 3%;
  color: rgba(217, 93, 128, 0.06);
  font-family: var(--font-display);
  font-size: 15rem;
  line-height: 1;
  pointer-events: none;
}

.album-film__copy {
  position: relative;
  z-index: 1;
}

.album-film h2 {
  margin: 13px 0 17px;
  font-family: var(--font-cn);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.02em;
}

.album-film h2 em {
  color: var(--rose);
  font-style: italic;
}

.album-film__text {
  max-width: 520px;
  color: rgba(90, 52, 68, 0.62);
  font-family: var(--font-cn);
  font-size: 0.86rem;
  line-height: 2.05;
}

.album-film__player {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: 100%;
  max-width: 325px;
}

.video-shell {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 8px solid #fffdf9;
  border-radius: 20px;
  background: #2d1b25;
  box-shadow:
    0 24px 50px -25px rgba(86, 42, 57, 0.55),
    0 0 0 1px rgba(217, 93, 128, 0.1);
  rotate: 1.2deg;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #21131b;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(255, 250, 246, 0.7);
  border-radius: 50%;
  background: rgba(255, 250, 246, 0.86);
  color: var(--rose);
  box-shadow: 0 12px 30px -12px rgba(80, 37, 51, 0.55);
  font-size: 1rem;
  cursor: pointer;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), background 0.3s ease, opacity 0.3s ease;
  animation: video-play-pulse 2.8s ease-in-out infinite;
}

.video-play span {
  margin-left: 3px;
}

.video-play:hover {
  background: #fffdf9;
  transform: translate(-50%, -50%) scale(1.07);
}

.video-play[hidden] {
  display: none;
}

@keyframes video-play-pulse {
  0%, 100% { box-shadow: 0 12px 30px -12px rgba(80, 37, 51, 0.55), 0 0 0 0 rgba(255, 250, 246, 0.28); }
  50% { box-shadow: 0 12px 30px -12px rgba(80, 37, 51, 0.55), 0 0 0 13px rgba(255, 250, 246, 0); }
}

.video-stamp {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(255, 250, 246, 0.24);
  border-radius: 999px;
  background: rgba(71, 42, 58, 0.66);
  color: rgba(255, 250, 246, 0.82);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-caption {
  margin-top: 17px;
  color: rgba(90, 52, 68, 0.42);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ---------------------------------------------------------
   Rotating cake
   --------------------------------------------------------- */

.album-cake {
  position: relative;
  margin-bottom: clamp(44px, 6vw, 70px);
  padding: clamp(34px, 5vw, 48px) clamp(18px, 4vw, 40px) 30px;
  overflow: hidden;
  border: 1px solid rgba(217, 93, 128, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(ellipse 62% 70% at 50% 54%, rgba(255, 255, 255, 0.7), transparent 72%),
    linear-gradient(160deg, rgba(255, 249, 245, 0.9), rgba(255, 226, 235, 0.72));
  box-shadow:
    0 34px 80px -58px rgba(95, 52, 65, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  text-align: center;
}

.album-cake::before {
  content: "♡";
  position: absolute;
  top: -70px;
  right: 4%;
  color: rgba(217, 93, 128, 0.055);
  font-family: var(--font-display);
  font-size: 19rem;
  line-height: 1;
  pointer-events: none;
}

.album-cake__head {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}

.album-cake__head h2 {
  margin: 12px 0 14px;
  font-family: var(--font-cn);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.album-cake__head h2 em {
  color: var(--rose);
  font-style: italic;
}

.album-cake__head > p:last-child {
  color: rgba(90, 52, 68, 0.58);
  font-family: var(--font-cn);
  font-size: 0.85rem;
  line-height: 2;
}

.cake-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  height: 530px;
  margin: 2px auto 0;
  outline: none;
  perspective: 1200px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.cake-stage:focus-visible {
  outline: 2px dashed rgba(217, 93, 128, 0.5);
  outline-offset: 2px;
  border-radius: 26px;
}

.cake-stage.is-dragging {
  cursor: grabbing;
}

.cake-glow {
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(560px, 86vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 193, 211, 0.3) 43%, transparent 70%);
  filter: blur(8px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cake-shadow {
  position: absolute;
  bottom: 38px;
  left: 50%;
  width: min(430px, 80vw);
  height: 78px;
  border-radius: 50%;
  background: rgba(114, 57, 76, 0.18);
  filter: blur(20px);
  transform: translateX(-50%);
  pointer-events: none;
}

.cake-plate {
  position: absolute;
  bottom: 44px;
  left: 50%;
  width: min(440px, 82vw);
  height: 102px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 30%, #fffdf7 0 52%, #ffead9 70%, #eac8b9 100%);
  box-shadow:
    0 28px 34px -22px rgba(91, 45, 61, 0.48),
    inset 0 3px 2px rgba(255, 255, 255, 0.85),
    inset 0 -4px 7px rgba(168, 100, 112, 0.18);
  transform: translateX(-50%);
  pointer-events: none;
}

.cake-plate::before {
  content: "";
  position: absolute;
  inset: 14px 26px;
  border: 1px dashed rgba(217, 93, 128, 0.24);
  border-radius: 50%;
}

.cake-3d {
  --angle: -17deg;
  position: absolute;
  bottom: 81px;
  left: 50%;
  z-index: 3;
  width: 360px;
  height: 380px;
  transform: translateX(-50%) scale(1.15) rotateX(-14deg) rotateY(var(--angle));
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
}

.cake-tier {
  position: absolute;
  bottom: var(--y);
  left: 50%;
  width: 0;
  height: var(--h);
  transform-style: preserve-3d;
}

.cake-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  transform-style: preserve-3d;
}

.cake-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 1px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 23%),
    linear-gradient(90deg, #f9b4c5, #ea839f 48%, #d96c8a);
  box-shadow: inset 0 0 0 1px rgba(170, 79, 104, 0.1);
  backface-visibility: hidden;
}

.cake-tier--bottom .cake-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 27%),
    linear-gradient(90deg, #f6a7bb, #e37895 48%, #cf627f);
}

.cake-tier--top .cake-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(90deg, #ffc6d3, #f29cb2 48%, #e4829d);
}

.cake-panel::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -1px;
  left: -1px;
  z-index: 1;
  height: 25%;
  border-radius: 0 0 42% 42% / 0 0 28% 28%;
  background: linear-gradient(180deg, #fff9ee, #ffead9);
  box-shadow: 0 2px 3px rgba(153, 76, 95, 0.12);
}

.cake-panel::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 12%;
  left: 12%;
  height: 48%;
  opacity: 0.65;
  background-image:
    radial-gradient(circle, #ffe3a0 0 1.2px, transparent 1.6px),
    radial-gradient(circle, #e7d5ff 0 1px, transparent 1.4px);
  background-size: 17px 21px, 22px 26px;
  background-position: 2px 3px, 10px 12px;
}

.cake-lid {
  position: absolute;
  top: calc(-1 * var(--r));
  left: calc(-1 * var(--r));
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 35%, #ed829b 0 3.5%, transparent 4%),
    radial-gradient(circle at 66% 42%, #ed829b 0 4.5%, transparent 5%),
    radial-gradient(circle at 46% 68%, #f2a0b1 0 3%, transparent 3.6%),
    radial-gradient(circle at 67% 72%, #fff8ec 0 3%, transparent 3.6%),
    radial-gradient(circle at 50% 50%, #fff8ed 0 58%, #ffedde 59% 81%, #f2b1c1 82% 85%, #fff6e9 86%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 250, 242, 0.6),
    inset 0 0 28px rgba(202, 118, 134, 0.12);
  transform: rotateX(90deg);
  backface-visibility: visible;
}

.cake-toppers {
  position: absolute;
  bottom: 226px;
  left: 50%;
  z-index: 5;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.cake-berry {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 19px;
  height: 19px;
  margin-left: -9.5px;
  border-radius: 50% 50% 47% 47%;
  background: radial-gradient(circle at 33% 28%, #ffb9c0, #ec6f88 48%, #b83c5b 100%);
  box-shadow: 0 4px 7px rgba(108, 40, 57, 0.28);
  transform: translate3d(var(--x), 0, var(--z));
}

.cake-berry::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 11px;
  height: 7px;
  margin-left: -5.5px;
  border-radius: 50% 50% 22% 22%;
  background: #74a477;
  transform: rotate(-8deg);
}

.cake-berry--small {
  width: 14px;
  height: 14px;
  margin-left: -7px;
}

.cake-dollop {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 17px;
  height: 17px;
  margin-left: -8.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffefb, #fff0df 55%, #ecc7bf);
  box-shadow: 0 4px 7px rgba(108, 40, 57, 0.18);
  transform: translate3d(var(--x), 0, var(--z));
}

.cake-candles {
  position: absolute;
  bottom: 226px;
  left: 50%;
  z-index: 6;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.cake-candle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  transform: translate3d(var(--x), 0, var(--z));
  transform-style: preserve-3d;
}

.cake-candle__stick {
  position: absolute;
  bottom: 0;
  left: -4.5px;
  width: 9px;
  height: 44px;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #fff6ea 0 4px, #ef8ca4 4px 8px);
  box-shadow: inset -2px 0 3px rgba(120, 52, 71, 0.2);
  transform-style: preserve-3d;
}

.cake-candle__stick::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 241, 231, 0.22);
  transform: rotateY(90deg);
}

.cake-candle__flame {
  position: absolute;
  bottom: 48px;
  left: -7.5px;
  width: 15px;
  height: 22px;
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 76%, #fff9dd 0 20%, #ffd47d 21% 47%, #ff904f 48% 75%, rgba(255, 102, 54, 0) 76%);
  box-shadow:
    0 0 12px 3px rgba(255, 178, 84, 0.65),
    0 0 38px 13px rgba(255, 128, 72, 0.24);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  animation: cake-flame 0.22s infinite alternate ease-in-out;
}

.cake-candle__flame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  opacity: 0.85;
  transform: rotateY(90deg);
}

@keyframes cake-flame {
  from { transform: scale(1) rotate(-2deg); }
  to { transform: scale(1.09, 0.92) rotate(2deg); }
}

.cake-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cake-hearts span {
  position: absolute;
  color: rgba(217, 93, 128, 0.45);
  font-family: var(--font-display);
  animation: cake-heart-float 5s ease-in-out infinite;
}

.cake-hearts span:nth-child(1) { top: 22%; left: 16%; font-size: 1.2rem; animation-delay: -1s; }
.cake-hearts span:nth-child(2) { top: 35%; right: 16%; font-size: 0.8rem; animation-delay: -2.6s; }
.cake-hearts span:nth-child(3) { top: 64%; left: 10%; font-size: 0.65rem; animation-delay: -3.4s; color: rgba(255, 250, 246, 0.9); }

@keyframes cake-heart-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); opacity: 0.35; }
  50% { transform: translateY(-13px) rotate(5deg); opacity: 0.85; }
}

.cake-hint {
  position: absolute;
  top: 18px;
  left: 50%;
  color: rgba(90, 52, 68, 0.38);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
}

.cake-controls {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: -6px;
}

.cake-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 93, 128, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  color: var(--rose);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.cake-arrow:hover {
  border-color: var(--rose);
  background: #fffdf9;
  transform: translateY(-2px);
}

.cake-auto {
  min-width: 108px;
  padding: 10px 17px;
  border: 1px solid rgba(217, 93, 128, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: rgba(90, 52, 68, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cake-auto[aria-pressed="true"] {
  border-color: rgba(217, 93, 128, 0.42);
  background: rgba(255, 236, 242, 0.9);
  color: var(--rose);
}

.cake-auto:hover {
  border-color: var(--rose);
  background: #fffdf9;
}

.lock-btn {
  padding: 8px 15px;
  border: 1px solid rgba(217, 93, 128, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  color: rgba(90, 52, 68, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.lock-btn span {
  margin-left: 4px;
  color: var(--rose);
}

.lock-btn:hover {
  border-color: var(--rose);
  background: #fff;
  color: var(--ink);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 40px);
  align-items: start;
}

.album-card {
  display: block;
  width: 100%;
  padding: 11px 11px 20px;
  border: 1px solid rgba(104, 61, 74, 0.08);
  border-radius: 2px;
  background: #fffdf9;
  box-shadow: 0 26px 50px -34px rgba(95, 52, 65, 0.5);
  color: var(--ink);
  text-align: left;
  cursor: zoom-in;
  rotate: var(--r, 0deg);
  transition: transform 0.55s var(--ease), rotate 0.55s var(--ease), box-shadow 0.55s var(--ease);
  animation: card-in 0.8s var(--ease-out) backwards;
}

.album-card:nth-child(1) { --r: -2.4deg; animation-delay: 0.06s; }
.album-card:nth-child(2) { --r: 1.7deg; animation-delay: 0.12s; margin-top: 28px; }
.album-card:nth-child(3) { --r: -1.2deg; animation-delay: 0.18s; }
.album-card:nth-child(4) { --r: 1.8deg; animation-delay: 0.24s; margin-top: 12px; }
.album-card:nth-child(5) { --r: -2deg; animation-delay: 0.3s; margin-top: 40px; }
.album-card:nth-child(6) { --r: 1.4deg; animation-delay: 0.36s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.album-card:hover {
  z-index: 2;
  transform: translateY(-8px);
  rotate: 0deg;
  box-shadow: 0 36px 60px -32px rgba(95, 52, 65, 0.5);
}

.album-card__frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f5dce2;
}

.album-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.album-card:hover .album-card__frame img {
  transform: scale(1.045);
}

.album-card__meta {
  display: block;
  padding: 14px 7px 0;
}

.album-card__date {
  display: block;
  margin-bottom: 4px;
  color: #ad8792;
  font-size: 0.56rem;
  letter-spacing: 0.17em;
}

.album-card__meta strong {
  display: block;
  font-family: var(--font-cn);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.album-endnote {
  margin-top: 64px;
  color: rgba(90, 52, 68, 0.42);
  font-family: var(--font-cn);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.06em;
  text-align: center;
}

.album-endnote span {
  margin-left: 5px;
  color: var(--rose);
  font-style: normal;
}

.album-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 48px);
  background: var(--night);
  color: rgba(255, 250, 246, 0.4);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.album-footer i {
  color: #ffc2d1;
  font-style: normal;
}

.album-body.is-locked .album-footer {
  display: none;
}

/* ---------------------------------------------------------
   Lightbox
   --------------------------------------------------------- */

.album-body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: min(960px, 92vw);
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 50px 100px -30px rgba(57, 28, 38, 0.55);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  animation: lightbox-in 0.4s var(--ease-out);
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox::backdrop {
  background: rgba(55, 30, 41, 0.64);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox__stage {
  display: grid;
  min-height: 380px;
  place-items: center;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.8), transparent 60%),
    #ffe9ef;
}

.lightbox__stage img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 25px 45px -25px rgba(93, 49, 63, 0.45);
}

.lightbox__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.lightbox__date {
  color: var(--rose);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.lightbox__info h2 {
  margin: 10px 0 14px;
  font-family: var(--font-cn);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.lightbox__info p {
  color: rgba(90, 52, 68, 0.62);
  font-family: var(--font-cn);
  font-size: 0.85rem;
  line-height: 2;
}

.lightbox__close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(217, 93, 128, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 246, 0.88);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox__close:hover {
  background: #fff;
  transform: rotate(90deg);
}

.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 93, 128, 0.14);
}

.lightbox__nav button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(217, 93, 128, 0.24);
  border-radius: 50%;
  background: transparent;
  color: var(--rose);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.lightbox__nav button:hover {
  background: var(--rose);
  color: #fffaf6;
}

.lightbox__nav span {
  color: rgba(90, 52, 68, 0.42);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {
  .gate-photo {
    opacity: 0.35;
  }

  .gate-photo--1 { left: -4%; }
  .gate-photo--2 { right: -4%; }

  .album-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .album-hero__side {
    display: none;
  }

  .album-film {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .album-film__player {
    justify-self: center;
    max-width: 300px;
  }

  .cake-stage {
    height: 480px;
  }

  .cake-3d {
    bottom: 52px;
    transform: translateX(-50%) scale(0.88) rotateX(-14deg) rotateY(var(--angle));
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .album-card:nth-child(2),
  .album-card:nth-child(5) {
    margin-top: 18px;
  }

  .album-card:nth-child(3),
  .album-card:nth-child(4),
  .album-card:nth-child(6) {
    margin-top: 0;
  }

  .lightbox[open] {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .lightbox__stage {
    min-height: 240px;
    padding: 26px;
  }

  .lightbox__stage img {
    max-height: 46vh;
  }
}

@media (max-width: 640px) {
  .album-header {
    padding: 13px 18px;
  }

  .album-header__tag {
    display: none;
  }

  .album-header__right {
    gap: 10px;
  }

  .album-gate {
    padding: 98px 18px 36px;
  }

  .gate-photo--1,
  .gate-photo--3 {
    display: none;
  }

  .gate-photo--2 {
    right: -12%;
    bottom: 8%;
    opacity: 0.28;
    width: 140px;
  }

  .gate-card {
    margin-top: 44px;
    padding: 0 22px 26px;
    border-radius: 24px;
  }

  .gate-art {
    width: 140px;
    margin-top: -70px;
  }

  .gate-copy {
    font-size: 0.82rem;
  }

  .password-wrap input {
    font-size: 16px;
  }

  .gate-foot {
    font-size: 0.58rem;
  }

  .album-gallery {
    padding: 92px 18px 60px;
  }

  .album-hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.5rem);
  }

  .album-grid {
    grid-template-columns: 1fr;
    max-width: 390px;
    margin: 0 auto;
  }

  .album-card {
    rotate: var(--r, 0deg);
  }

  .album-card:nth-child(2),
  .album-card:nth-child(3),
  .album-card:nth-child(4),
  .album-card:nth-child(5),
  .album-card:nth-child(6) {
    margin-top: 0;
  }

  .album-toolbar {
    margin: 26px 0 24px;
  }

  .album-film {
    margin-bottom: 34px;
    padding: 25px 18px 28px;
    border-radius: 20px;
  }

  .album-film h2 {
    font-size: clamp(1.85rem, 8vw, 2.2rem);
  }

  .album-film__text {
    font-size: 0.82rem;
  }

  .album-film__player {
    max-width: 285px;
  }

  .video-shell {
    border-width: 6px;
    border-radius: 17px;
  }

  .video-caption {
    font-size: 0.6rem;
  }

  .album-cake {
    margin-bottom: 34px;
    padding: 28px 12px 24px;
    border-radius: 22px;
  }

  .album-cake__head h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .album-cake__head > p:last-child {
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .cake-stage {
    height: 410px;
  }

  .cake-3d {
    bottom: 38px;
    transform: translateX(-50%) scale(0.76) rotateX(-14deg) rotateY(var(--angle));
  }

  .cake-plate {
    bottom: 34px;
    width: min(330px, 84vw);
    height: 80px;
  }

  .cake-glow {
    width: 92vw;
  }

  .cake-hint {
    top: 9px;
    font-size: 0.5rem;
    letter-spacing: 0.15em;
  }

  .cake-controls {
    gap: 8px;
    margin-top: 0;
  }

  .cake-arrow {
    width: 38px;
    height: 38px;
  }

  .cake-auto {
    min-width: 102px;
    padding: 9px 14px;
  }

  .album-endnote {
    margin-top: 44px;
  }

  .album-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 20px 18px;
  }

  .lightbox {
    width: 94vw;
    border-radius: 18px;
  }

  .lightbox__info {
    padding: 24px;
  }

  .lightbox__nav {
    margin-top: 22px;
  }
}

@media (max-width: 380px) {
  .album-header .brand__text {
    font-size: 0.72rem;
  }

  .album-back {
    font-size: 0.66rem;
  }

  .gate-card {
    padding-right: 17px;
    padding-left: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate-card,
  .album-gallery,
  .album-card,
  .gate-spark {
    animation: none;
  }
}
