:root {
  --bg: #fbf7ff;
  --bg-soft: #f4eaff;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --purple-deep: #4c1d95;
  --pink-soft: #fff0f7;
  --ink: #2a1238;
  --muted: #7a638c;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(168, 85, 247, 0.22);
  --shadow: 0 24px 80px rgba(126, 34, 206, 0.18);
  --shadow-soft: 0 12px 36px rgba(76, 29, 149, 0.11);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(216, 180, 254, 0.55), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(244, 114, 182, 0.18), transparent 32%),
    linear-gradient(135deg, #fbf7ff 0%, #f4eaff 44%, #fff7fb 100%);
  font-family: Tahoma, Arial, "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(rgba(126, 34, 206, 0.07) 1px, transparent 1px),
    radial-gradient(rgba(244, 114, 182, 0.07) 1px, transparent 1px);
  background-position: 0 0, 16px 16px;
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(147, 51, 234, 0.35);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.6;
}

.ambient__orb--one {
  top: -120px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(216, 180, 254, 0.7), rgba(216, 180, 254, 0));
}

.ambient__orb--two {
  bottom: -140px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(251, 207, 232, 0.64), rgba(251, 207, 232, 0));
}

.ambient__heart,
.ambient__star {
  position: absolute;
  color: rgba(147, 51, 234, 0.24);
  font-size: clamp(18px, 2.4vw, 32px);
  animation: float 8s ease-in-out infinite;
}

.ambient__heart--one {
  top: 12%;
  right: 8%;
}

.ambient__heart--two {
  top: 55%;
  left: 5%;
  animation-delay: -3s;
}

.ambient__heart--three {
  right: 18%;
  bottom: 8%;
  animation-delay: -5s;
}

.ambient__star {
  font-size: clamp(14px, 1.8vw, 24px);
  animation-name: twinkle;
  animation-duration: 4s;
}

.ambient__star--one {
  top: 20%;
  left: 14%;
}

.ambient__star--two {
  top: 70%;
  right: 11%;
  animation-delay: -1.5s;
}

.ambient__star--three {
  top: 42%;
  left: 18%;
  animation-delay: -2.7s;
}

.screen {
  width: 100%;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.screen--centered {
  display: grid;
  place-items: center;
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-card,
.intro-card {
  position: relative;
  width: min(100%, 500px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(30px, 7vw, 58px) clamp(22px, 6vw, 50px);
  text-align: center;
}

.login-card::before,
.intro-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--purple-500), #ec4899, transparent);
  content: "";
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--purple-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.35;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 8vw, 3.5rem);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 6vw, 3rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.lead {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.15rem);
}

.mini-heart {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 12px auto 18px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--purple-600);
  background: linear-gradient(145deg, white, var(--purple-100));
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.18);
  font-size: 28px;
  animation: heartbeat 2.8s ease-in-out infinite;
}

.login-form {
  display: grid;
  gap: 10px;
  text-align: right;
}

.login-form label {
  margin-top: 6px;
  color: #5e3972;
  font-size: 0.92rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 white;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.login-form input:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.11);
  transform: translateY(-1px);
}

.form-error {
  min-height: 28px;
  margin: 0;
  color: #9f215c;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.tiny-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 24px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  box-shadow: 0 12px 28px rgba(126, 34, 206, 0.27);
}

.button--primary:hover {
  box-shadow: 0 16px 34px rgba(126, 34, 206, 0.34);
}

.button--soft {
  border: 1px solid var(--border);
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

.button--wide {
  width: 100%;
}

.gift-mark {
  position: relative;
  width: 112px;
  height: 106px;
  margin: 14px auto 28px;
}

.gift-mark__box {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 92px;
  height: 72px;
  border-radius: 14px 14px 20px 20px;
  background:
    linear-gradient(90deg, transparent 43%, rgba(255, 255, 255, 0.72) 43% 57%, transparent 57%),
    linear-gradient(145deg, var(--purple-400), var(--purple-700));
  box-shadow: 0 18px 35px rgba(126, 34, 206, 0.26);
}

.gift-mark__box::before {
  position: absolute;
  top: -11px;
  right: -6px;
  width: 104px;
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(145deg, #d8b4fe, #9333ea);
  content: "";
}

.gift-mark__bow {
  position: absolute;
  top: 3px;
  width: 42px;
  height: 34px;
  border: 8px solid var(--purple-500);
  background: rgba(255, 255, 255, 0.38);
}

.gift-mark__bow--right {
  right: 53px;
  border-radius: 50% 50% 10% 50%;
  transform: rotate(20deg);
}

.gift-mark__bow--left {
  left: 53px;
  border-radius: 50% 50% 50% 10%;
  transform: rotate(-20deg);
}

.down-cue {
  display: block;
  margin-top: 18px;
  color: var(--purple-500);
  font-size: 28px;
  animation: bob 2s ease-in-out infinite;
}

.gift-content {
  width: 100%;
  overflow: clip;
}

.slim-header {
  display: flex;
  width: var(--content);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.slim-header__heart {
  color: var(--purple-600);
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 130px) 0;
}

.section--compact {
  padding-top: 56px;
  padding-bottom: 20px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto clamp(34px, 6vw, 58px);
  text-align: center;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.music-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.music-card__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 20px;
  color: white;
  background: linear-gradient(145deg, var(--purple-500), var(--purple-700));
  box-shadow: 0 12px 26px rgba(126, 34, 206, 0.24);
  font-size: 28px;
}

.music-card__copy h2 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
}

.music-card__copy p {
  margin: 0;
  color: var(--muted);
}

.youtube-holder {
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 18px;
  background: #1c1023;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.music-youtube-link {
  grid-column: 1 / -1;
  justify-self: center;
}

.youtube-holder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.birthday-stage {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(30px, 7vw, 60px) 20px;
  text-align: center;
}

.birthday-stage::before {
  position: absolute;
  top: 16%;
  width: min(520px, 85%);
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 180, 254, 0.54), transparent 68%);
  content: "";
  filter: blur(8px);
}

.twenty-number {
  position: absolute;
  top: -46px;
  color: rgba(147, 51, 234, 0.075);
  font-size: clamp(10rem, 34vw, 23rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
  text-shadow: 0 0 42px rgba(168, 85, 247, 0.13);
  user-select: none;
}

.cake {
  position: relative;
  z-index: 1;
  width: min(270px, 78vw);
  height: 240px;
  margin-top: 32px;
}

.candles {
  position: absolute;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: end;
  gap: 28px;
  transform: translateX(-50%);
}

.candle {
  position: relative;
  width: 12px;
  height: 62px;
  border-radius: 5px;
  background: repeating-linear-gradient(-35deg, white 0 8px, var(--purple-300) 8px 14px);
  box-shadow: 0 3px 8px rgba(76, 29, 149, 0.16);
}

.candle:nth-child(2) {
  height: 72px;
}

.flame {
  position: absolute;
  top: -27px;
  left: 50%;
  width: 16px;
  height: 25px;
  border-radius: 70% 35% 65% 35%;
  background: linear-gradient(#fff7a8, #fbbf24 52%, #f97316);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
  transform: translateX(-50%) rotate(7deg);
  transform-origin: bottom center;
  animation: flicker 900ms ease-in-out infinite alternate;
}

.birthday-stage.candles-out .flame {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px) scale(0);
  transition: opacity 350ms ease, transform 350ms ease;
}

.cake__icing {
  position: absolute;
  right: 5%;
  bottom: 66px;
  width: 90%;
  height: 52px;
  border-radius: 50% 50% 38% 38%;
  background: linear-gradient(180deg, white, #f7e9ff);
  box-shadow: inset 0 -10px 18px rgba(216, 180, 254, 0.28);
}

.cake__icing::after {
  position: absolute;
  right: 0;
  bottom: -21px;
  width: 100%;
  height: 34px;
  background:
    radial-gradient(circle at 12% 0, #f7e9ff 0 14px, transparent 15px),
    radial-gradient(circle at 36% 0, #f7e9ff 0 20px, transparent 21px),
    radial-gradient(circle at 61% 0, #f7e9ff 0 15px, transparent 16px),
    radial-gradient(circle at 84% 0, #f7e9ff 0 19px, transparent 20px);
  content: "";
}

.cake__body {
  position: absolute;
  right: 8%;
  bottom: 12px;
  width: 84%;
  height: 95px;
  border-radius: 12px 12px 34px 34px;
  background:
    linear-gradient(90deg, transparent 22%, rgba(255, 255, 255, 0.27) 22% 25%, transparent 25%),
    linear-gradient(145deg, #d8b4fe, #a855f7);
  box-shadow: 0 24px 38px rgba(126, 34, 206, 0.23);
}

.cake__plate {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, white, #e9d5ff);
  box-shadow: 0 10px 18px rgba(76, 29, 149, 0.15);
}

.wish-message {
  position: relative;
  z-index: 2;
  min-height: 32px;
  margin: 4px 0 0;
  color: var(--purple-deep);
  font-size: 1.05rem;
  font-weight: 800;
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 8px;
  height: 12px;
  border-radius: 3px;
  background: var(--confetti-color);
  animation: confetti-pop 1.35s cubic-bezier(0.17, 0.67, 0.45, 1) forwards;
}

.photo-album {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.polaroid {
  position: relative;
  margin: 0;
  border: 1px solid rgba(126, 34, 206, 0.12);
  border-radius: 8px 8px 18px 18px;
  padding: 10px 10px 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(76, 29, 149, 0.13);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.polaroid:hover,
.polaroid:focus-within {
  z-index: 2;
  box-shadow: 0 26px 56px rgba(76, 29, 149, 0.2);
  transform: rotate(0deg) translateY(-8px);
}

.polaroid--featured {
  grid-column: span 2;
  border-color: rgba(147, 51, 234, 0.25);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(243, 232, 255, 0.9));
}

.photo-button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  padding: 0;
  cursor: zoom-in;
  background: var(--purple-100);
  aspect-ratio: 4 / 5;
}

.polaroid--featured .photo-button {
  aspect-ratio: 16 / 10;
}

.photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5eff8;
  transition: transform 300ms ease, filter 300ms ease;
}

.photo-button:hover img {
  filter: saturate(1.03) contrast(1.02);
  transform: scale(1.025);
}

.photo-button--sideways img {
  position: absolute;
  top: -16.666%;
  left: 12.5%;
  width: 75%;
  height: 133.333%;
  transform: rotate(-90deg);
}

.photo-button--sideways:hover img {
  transform: rotate(-90deg) scale(1.02);
}

.polaroid figcaption {
  padding: 14px 8px 0;
  color: #5d3d6c;
  font-size: 0.92rem;
  text-align: center;
}

.photo-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 6px 12px;
  color: white;
  background: rgba(76, 29, 149, 0.78);
  box-shadow: 0 8px 22px rgba(76, 29, 149, 0.24);
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.likes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.like-card {
  min-height: 220px;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.like-card:hover {
  box-shadow: 0 24px 52px rgba(76, 29, 149, 0.16);
  transform: translateY(-6px);
}

.like-card--wide {
  grid-column: span 4;
  min-height: auto;
  text-align: center;
}

.like-card__icon {
  display: block;
  margin-bottom: 18px;
  font-size: 38px;
}

.like-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.letter-paper {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(126, 34, 206, 0.15);
  border-radius: 10px 10px 32px 32px;
  padding: clamp(34px, 8vw, 76px);
  background:
    linear-gradient(rgba(168, 85, 247, 0.055) 1px, transparent 1px),
    rgba(255, 253, 255, 0.92);
  background-size: 100% 34px;
  box-shadow: var(--shadow);
}

.letter-paper::after {
  position: absolute;
  inset: 0;
  border: 12px solid rgba(243, 232, 255, 0.35);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.letter-paper__stamp {
  position: absolute;
  top: 28px;
  left: 28px;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px dashed var(--purple-300);
  border-radius: 50%;
  color: var(--purple-700);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  transform: rotate(-9deg);
}

.letter-copy {
  margin-top: 34px;
  font-size: clamp(1rem, 3vw, 1.25rem);
}

.letter-line {
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(12px);
}

.letter-section.is-visible .letter-line {
  animation: line-reveal 680ms ease forwards;
}

.letter-section.is-visible .letter-line:nth-child(2) {
  animation-delay: 280ms;
}

.letter-section.is-visible .letter-line:nth-child(3) {
  animation-delay: 560ms;
}

.letter-section.is-visible .letter-line:nth-child(4) {
  animation-delay: 840ms;
}

.letter-line--signature {
  color: var(--purple-700);
  font-size: 1.12em;
  font-weight: 900;
}

.sweet-card {
  position: relative;
  width: min(700px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 8vw, 70px) 24px;
  text-align: center;
}

.sweet-card__spark {
  position: absolute;
  top: 20px;
  left: 24px;
  color: var(--purple-400);
  font-size: 30px;
  animation: twinkle 3s ease-in-out infinite;
}

.sweet-line {
  min-height: 66px;
  margin: 22px auto;
  color: var(--purple-deep);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 800;
}

.sweet-line.is-changing {
  animation: sweet-change 420ms ease;
}

.finale-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background: linear-gradient(180deg, transparent, rgba(243, 232, 255, 0.75) 30%, rgba(255, 247, 251, 0.76));
}

.finale-transition {
  width: min(720px, 100%);
  margin: 0 auto 28px;
  color: var(--purple-700);
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 800;
}

.finale-photo {
  width: min(560px, 100%);
  margin: 0 auto;
}

.finale-photo__button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.84);
  border-radius: 32px;
  padding: 0;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 28px 80px rgba(76, 29, 149, 0.24),
    0 0 80px rgba(192, 132, 252, 0.24);
}

.finale-photo__button img {
  display: block;
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: linear-gradient(145deg, #f6effa, #fff);
}

.finale-copy {
  width: min(720px, 100%);
  margin: 36px auto 0;
  text-align: center;
}

.finale-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
}

.finale-copy > p {
  margin: 0 0 28px;
  color: var(--purple-700);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 800;
}

.last-word {
  margin: 30px auto 0;
  border-right: 3px solid var(--purple-400);
  border-radius: 18px;
  padding: 24px;
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-soft);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  animation: last-word-in 600ms ease both;
}

.last-word cite {
  display: block;
  margin-top: 12px;
  color: var(--purple-700);
  font-style: normal;
}

.footer {
  padding: 70px 20px max(50px, env(safe-area-inset-bottom));
  color: var(--muted);
  text-align: center;
}

.footer span {
  color: var(--purple-600);
  font-size: 26px;
}

.footer p {
  margin: 10px 0 4px;
  color: var(--ink);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(56px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
  background: rgba(25, 9, 37, 0.9);
  backdrop-filter: blur(14px);
  animation: lightbox-in 220ms ease both;
}

.lightbox__close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 18px;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.13);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.lightbox__frame {
  width: min(880px, 100%);
  text-align: center;
}

.lightbox__frame img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78svh;
  margin: 0 auto;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
}

.lightbox__frame img.is-sideways {
  max-width: min(72svh, 88vw);
  max-height: 84vw;
  transform: rotate(-90deg);
}

.lightbox__frame p {
  margin: 18px auto 0;
  color: white;
  font-weight: 700;
}

.expired-screen {
  display: grid;
  width: 100%;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.expired-card {
  width: min(580px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: clamp(38px, 8vw, 70px) clamp(22px, 6vw, 52px);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(16px);
}

.expired-card__heart {
  color: var(--purple-600);
  font-size: 46px;
  animation: heartbeat 2.8s ease-in-out infinite;
}

.expired-card h1 {
  margin-top: 18px;
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.expired-card p {
  margin: 0;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.screen.is-entering .glass-card {
  animation: card-enter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.22; transform: scale(0.8) rotate(0); }
  50% { opacity: 0.8; transform: scale(1.25) rotate(18deg); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.08); }
  20% { transform: scale(1); }
  30% { transform: scale(1.05); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes flicker {
  from { transform: translateX(-50%) rotate(4deg) scale(0.94); }
  to { transform: translateX(-50%) rotate(-5deg) scale(1.07); }
}

@keyframes confetti-pop {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-r)) scale(0.75);
  }
}

@keyframes line-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sweet-change {
  0% { opacity: 1; transform: translateY(0); }
  45% { opacity: 0; transform: translateY(-8px); }
  55% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes last-word-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 860px) {
  .photo-album {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .like-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  :root {
    --content: min(100% - 24px, 1120px);
    --radius-xl: 26px;
  }

  body {
    line-height: 1.75;
  }

  .screen {
    padding-right: 12px;
    padding-left: 12px;
  }

  .login-card,
  .intro-card {
    padding: 34px 20px;
  }

  .music-card {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }

  .music-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .music-card__icon {
    width: 56px;
    height: 56px;
  }

  .birthday-stage {
    min-height: 510px;
  }

  .twenty-number {
    top: 20px;
    font-size: 9rem;
  }

  .photo-album {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .polaroid,
  .polaroid--featured {
    grid-column: auto;
    width: min(100%, 480px);
    margin-inline: auto;
  }

  .polaroid--featured .photo-button {
    aspect-ratio: 4 / 5;
  }

  .likes-grid {
    grid-template-columns: 1fr;
  }

  .like-card,
  .like-card--wide {
    grid-column: auto;
    min-height: auto;
  }

  .letter-paper {
    padding: 38px 22px 44px;
  }

  .letter-paper__stamp {
    position: static;
    width: 58px;
    height: 58px;
    margin: 0 0 20px auto;
  }

  .finale-photo__button {
    border-width: 7px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  .letter-line {
    opacity: 1;
    transform: none;
  }
}
