/* ============================================================
   BIRTHDAY SCRAPBOOK — CSS
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #f5efe4;
  --cream-dark: #e8dfd0;
  --paper: #faf6ef;
  --pink: #f4c4c4;
  --pink-light: #fce4e4;
  --maroon: #6b1d32;
  --maroon-dark: #4a1224;
  --maroon-light: #8b2942;
  --text-dark: #2a1a1a;
  --shadow-soft: 2px 4px 12px rgba(60, 20, 30, 0.15);
  --shadow-lift: 4px 8px 24px rgba(60, 20, 30, 0.25);
  --shadow-deep: 6px 12px 32px rgba(60, 20, 30, 0.3);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
  --font-pixel: 'Press Start 2P', monospace;
  --font-cute: 'Bagel', 'Trebuchet MS', sans-serif;
  --font-cute-body: 'Mali', 'Comic Sans MS', cursive;
  --transition-smooth: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  cursor: url('assets/cursors/pointer.svg') 6 2, auto;
}

body {
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #f3ebe0;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(244, 180, 190, 0.18) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 55%, rgba(180, 140, 110, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 40% 90%, rgba(200, 90, 110, 0.08) 0%, transparent 40%),
    linear-gradient(rgba(170, 150, 130, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 150, 130, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px, 28px 28px;
  cursor: url('assets/cursors/pointer.svg') 6 2, auto;
}

a,
button,
.scrapbook-item,
.landing-scrap,
.page-scrap,
.landing__bday-cutout,
.site-nav__btn,
.music-toggle,
.music-control,
.arrange-toggle,
.arrange-toolbar__btn,
.arrange-toolbar__icon-btn,
.for-you-btn,
.vault-key,
input[type="range"] {
  cursor: url('assets/cursors/pointer.svg') 6 2, pointer;
}

a:hover,
button:hover,
.scrapbook-item:hover,
.landing-scrap:hover,
.page-scrap:hover,
.landing__bday-cutout:hover,
.site-nav__btn:hover,
.music-toggle:hover,
.music-control:hover .music-toggle,
.arrange-toggle:hover,
.arrange-toolbar__btn:hover,
.arrange-toolbar__icon-btn:hover,
.for-you-btn:hover,
.vault-key:hover {
  cursor: url('assets/cursors/onhover.png') 16 12, pointer;
}

body.scrapbook-open {
  overflow: auto;
}

body.page-open {
  overflow: auto;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: url('assets/cursors/pointer.svg') 6 2, pointer;
  border: none;
  background: none;
}

/* ---------- Landing Screen ---------- */
.landing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  background: transparent;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.landing--fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
} 

#hearts-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

body.scrapbook-open #hearts-canvas {
  visibility: hidden;
  opacity: 0;
}

.landing-scrap {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(2px 4px 10px rgba(60, 20, 30, 0.15));
  opacity: 0.92;
  cursor: url('assets/cursors/pointer.svg') 6 2, pointer;
  transition: translate 0.35s ease, scale 0.35s ease, filter 0.3s ease;
}

.landing-scrap:hover {
  translate: 0 -10px;
  scale: 1.06;
  filter: drop-shadow(3px 8px 16px rgba(60, 20, 30, 0.22));
  z-index: 5;
}

.landing-scrap--gingham {
  top: 6%;
  left: 3%;
  width: clamp(110px, 20vw, 190px);
  height: auto;
  transform: rotate(-12deg);
  animation: landing-scrap-gingham 6s ease-in-out infinite;
}

.landing-scrap--daisy {
  bottom: 8%;
  right: 4%;
  width: clamp(120px, 22vw, 210px);
  transform: rotate(8deg);
  animation: landing-scrap-daisy 7s ease-in-out infinite;
}

.landing-scrap--roses {
  bottom: 8%;
  left: 3%;
  width: clamp(70px, 14vw, 130px);
  transform: rotate(-8deg);
  animation: landing-scrap-roses 5.5s ease-in-out infinite;
}

.landing-scrap--star {
  top: 10%;
  right: 4%;
  width: clamp(90px, 16vw, 150px);
  transform: rotate(14deg);
  animation: landing-scrap-star 5s ease-in-out infinite;
}

.landing__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: landing-breathe 5s ease-in-out infinite;
}

.landing__bday-cutout {
  width: clamp(200px, 58vw, 300px);
  height: auto;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(2px 5px 12px rgba(60, 20, 30, 0.22));
  transform: rotate(-2deg);
  animation: landing-cutout-float 4.5s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
  cursor: url('assets/cursors/pointer.svg') 6 2, pointer;
  transition: translate 0.35s ease, scale 0.35s ease, filter 0.3s ease;
}

.landing__bday-cutout:hover {
  translate: 0 -10px;
  scale: 1.05;
  filter: drop-shadow(3px 10px 18px rgba(60, 20, 30, 0.28));
}

.landing__name {
  position: absolute;
  bottom: 1.75rem;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  text-transform: lowercase;
  opacity: 0.75;
  pointer-events: none;
}

/* ---------- Site nav ---------- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.65rem;
}

.site-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #6b3a42;
  padding: 0.65em 1.35em;
  background: linear-gradient(180deg, #fff8f4 0%, #f7e8e0 100%);
  border: none;
  border-radius: 999px;
  box-shadow:
    0 4px 16px rgba(120, 70, 80, 0.14),
    0 0 0 1px rgba(180, 130, 140, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.site-nav--landing .site-nav__btn {
  animation: btn-float 3.5s ease-in-out infinite;
}

.site-nav--landing .site-nav__btn:nth-child(2) { animation-delay: -0.7s; }
.site-nav--landing .site-nav__btn:nth-child(3) { animation-delay: -1.4s; }
.site-nav--landing .site-nav__btn:nth-child(4) { animation-delay: -2.1s; }
.site-nav--landing .site-nav__btn:nth-child(5) { animation-delay: -2.8s; }

.site-nav__btn:hover {
  transform: translateY(-3px) scale(1.04);
  color: #5a2f36;
  background: linear-gradient(180deg, #fffaf7 0%, #fceee8 100%);
  box-shadow:
    0 8px 22px rgba(120, 70, 80, 0.2),
    0 0 0 1px rgba(180, 130, 140, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-nav__btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow:
    0 3px 10px rgba(120, 70, 80, 0.14),
    0 0 0 1px rgba(180, 130, 140, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.site-nav__btn.is-active {
  color: #5a2f36;
  background: linear-gradient(180deg, #fceee8 0%, #f3ddd4 100%);
  box-shadow:
    0 3px 12px rgba(120, 70, 80, 0.16),
    0 0 0 1px rgba(160, 100, 110, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.site-nav--global {
  position: fixed;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  max-width: calc(100vw - 1.5rem);
  padding: 0.35rem;
}

.site-nav--global[hidden] {
  display: none;
}

.site-nav--scrapbook {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 60;
  width: max-content;
  max-width: 100%;
  padding: 0.4rem;
  gap: 0.45rem 0.55rem;
}

.site-nav--scrapbook[hidden] {
  display: none;
}

.site-nav--scrapbook .site-nav__btn {
  animation: btn-float 3.5s ease-in-out infinite;
}

.site-nav--scrapbook .site-nav__btn:nth-child(2) { animation-delay: -0.7s; }
.site-nav--scrapbook .site-nav__btn:nth-child(3) { animation-delay: -1.4s; }
.site-nav--scrapbook .site-nav__btn:nth-child(4) { animation-delay: -2.1s; }
.site-nav--scrapbook .site-nav__btn:nth-child(5) { animation-delay: -2.8s; }

.scrapbook-footer {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: calc(100% - 3rem);
}

@media (max-width: 560px) {
  .scrapbook-footer {
    bottom: 1.1rem;
    max-width: calc(100% - 1.5rem);
  }
}

/* ---------- Homepage toast ---------- */
.home-toast {
  position: fixed;
  left: 50%;
  top: 1.25rem;
  bottom: auto;
  z-index: 1200;
  transform: translateX(-50%) translateY(-12px);
  max-width: min(90vw, 22rem);
  padding: 0.85rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, #fff8f4 0%, #f7e8e0 100%);
  border-radius: 999px;
  box-shadow:
    0 8px 24px rgba(120, 70, 80, 0.18),
    0 0 0 1px rgba(180, 130, 140, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.home-toast[hidden] {
  display: none;
}

.home-toast--visible {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.home-toast__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-style: italic;
  letter-spacing: 0.04em;
  color: #6b3a42;
  text-transform: lowercase;
}

/* ---------- Content pages (about / instructions) ---------- */
.page {
  position: fixed;
  inset: 0;
  z-index: 800;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
  background: transparent;
}

.page--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page[hidden] {
  display: none;
}

.page--visible[hidden] {
  display: block;
}

.page__inner {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 3rem;
}

/* Soft cream wash so floating hearts don't compete with body copy */
.page--instructions .page__inner::before,
.page--stickers .page__inner::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 2.5rem -2.25rem 0.5rem;
  background: radial-gradient(
    ellipse 72% 58% at 50% 38%,
    rgba(243, 235, 224, 0.97) 0%,
    rgba(243, 235, 224, 0.88) 42%,
    rgba(243, 235, 224, 0.45) 68%,
    rgba(243, 235, 224, 0) 100%
  );
  pointer-events: none;
}

.page--stickers .page__inner::before {
  inset: 1.5rem -1.5rem -1rem;
  background:
    radial-gradient(
      ellipse 80% 55% at 50% 18%,
      rgba(243, 235, 224, 0.96) 0%,
      rgba(243, 235, 224, 0.78) 45%,
      rgba(243, 235, 224, 0.2) 75%,
      transparent 100%
    );
}

.page__inner--about {
  max-width: 38rem;
  padding-top: 5.75rem;
  padding-bottom: 4rem;
}

.about-note {
  position: relative;
  padding: 2.1rem 1.65rem 2.35rem;
  background-color: #fff6f0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(244, 180, 190, 0.28) 0 0.55rem, transparent 0.6rem),
    radial-gradient(circle at 78% 12%, rgba(232, 196, 200, 0.35) 0 0.4rem, transparent 0.45rem),
    radial-gradient(circle at 88% 72%, rgba(244, 196, 180, 0.25) 0 0.7rem, transparent 0.75rem),
    radial-gradient(rgba(214, 140, 150, 0.18) 1.1px, transparent 1.2px),
    linear-gradient(180deg, #fff8f3 0%, #ffe9e4 48%, #ffefe8 100%);
  background-size: auto, auto, auto, 18px 18px, auto;
  border: 2px solid rgba(214, 150, 160, 0.45);
  border-radius: 1.35rem 1.1rem 1.45rem 1.2rem / 1.2rem 1.4rem 1.1rem 1.35rem;
  box-shadow:
    4px 10px 0 rgba(180, 120, 130, 0.12),
    0 14px 36px rgba(120, 70, 80, 0.12);
  transform: rotate(-0.7deg);
  animation: about-note-in 0.7s cubic-bezier(0.22, 1.1, 0.36, 1);
}

.about-note__tape {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  width: min(7.5rem, 42%);
  height: 1.35rem;
  transform: translateX(-50%) rotate(-2deg);
  background:
    linear-gradient(
      115deg,
      rgba(255, 214, 220, 0.55) 0%,
      rgba(255, 232, 236, 0.82) 35%,
      rgba(255, 214, 220, 0.6) 70%,
      rgba(255, 240, 242, 0.75) 100%
    );
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(140, 80, 95, 0.12);
  opacity: 0.92;
  pointer-events: none;
}

.page--about .page__eyebrow {
  font-family: var(--font-cute-body);
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: #c47888;
  margin-bottom: 0.55rem;
  opacity: 1;
  text-align: center;
}

.page--about .page__title {
  font-family: var(--font-cute);
  font-size: clamp(2.35rem, 8vw, 3.35rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: #d4647a;
  margin-bottom: 1.15rem;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.65);
}

.page--about .page__prose {
  font-family: var(--font-cute-body);
  font-size: clamp(1.02rem, 2.5vw, 1.18rem);
  font-weight: 400;
  line-height: 1.72;
  color: #5a3540;
}

.page--about .page__prose p {
  text-wrap: pretty;
}

@keyframes about-note-in {
  from {
    opacity: 0;
    transform: rotate(-0.7deg) translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: rotate(-0.7deg) translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .about-note {
    padding: 1.75rem 1.2rem 2rem;
    transform: rotate(-0.4deg);
  }

  .page--about .page__title {
    font-size: clamp(2rem, 11vw, 2.6rem);
  }
}

.page__eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--maroon-light);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.page__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
  text-transform: lowercase;
}

.page__prose {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.85;
  color: var(--text-dark);
}

.page__prose p + p {
  margin-top: 1.1rem;
}

.instructions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.instructions-list li {
  padding: 0.85rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 248, 244, 0.92) 0%, rgba(247, 232, 224, 0.88) 100%);
  border-radius: 1rem;
  box-shadow:
    0 3px 12px rgba(120, 70, 80, 0.08),
    0 0 0 1px rgba(180, 130, 140, 0.16);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.02rem, 2.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-dark);
}

.instructions-list a {
  color: #8b2942;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.instructions-list a:hover {
  color: #6b1d32;
}

/* ---------- Stickers pack page ---------- */
.page__inner--stickers {
  max-width: min(72rem, calc(100vw - 1.5rem));
  padding-top: 5.25rem;
  padding-bottom: 4rem;
}

.stickers-lede {
  margin: -0.85rem 0 1.75rem;
  max-width: 34rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(42, 26, 26, 0.72);
}

.stickers-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 1.15rem 0.85rem;
  align-items: end;
  justify-items: center;
  padding: 0.5rem 0 1rem;
}

.sticker-tile {
  position: relative;
  width: 100%;
  max-width: 9.5rem;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  transform: rotate(var(--tilt, -2deg));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
  cursor: url('assets/cursors/pointer.svg') 6 2, pointer;
}

.sticker-tile:nth-child(4n + 1) { --tilt: -4deg; }
.sticker-tile:nth-child(4n + 2) { --tilt: 3deg; }
.sticker-tile:nth-child(4n + 3) { --tilt: -1.5deg; }
.sticker-tile:nth-child(4n + 4) { --tilt: 5deg; }
.sticker-tile:nth-child(7n + 3) { --tilt: -6deg; }
.sticker-tile:nth-child(11n) { --tilt: 2deg; }

.sticker-tile:hover,
.sticker-tile:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.06);
  filter: drop-shadow(3px 12px 18px rgba(60, 20, 30, 0.22));
  z-index: 2;
  cursor: url('assets/cursors/onhover.png') 16 12, pointer;
}

.sticker-tile:focus-visible {
  outline: 2px solid rgba(107, 58, 66, 0.45);
  outline-offset: 6px;
}

.sticker-tile__art {
  width: 100%;
  height: auto;
  max-height: 8.5rem;
  object-fit: contain;
  filter: drop-shadow(2px 5px 10px rgba(60, 20, 30, 0.16));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.sticker-tile__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #6b3a42;
  opacity: 0.72;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticker-tile__hint {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  padding: 0.2rem 0.45rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.7rem;
  color: #5a2f36;
  background: linear-gradient(180deg, #fff8f4 0%, #f7e8e0 100%);
  border-radius: 999px;
  box-shadow:
    0 3px 10px rgba(120, 70, 80, 0.14),
    0 0 0 1px rgba(180, 130, 140, 0.22);
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.sticker-tile:hover .sticker-tile__hint,
.sticker-tile:focus-visible .sticker-tile__hint,
.sticker-tile--saved .sticker-tile__hint {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sticker-tile--saved .sticker-tile__hint {
  background: linear-gradient(180deg, #fceee8 0%, #f3ddd4 100%);
}

.stickers-wall__empty {
  grid-column: 1 / -1;
  margin: 2rem 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(42, 26, 26, 0.55);
}

@media (min-width: 720px) {
  .stickers-wall {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 1.4rem 1.1rem;
  }

  .sticker-tile__art {
    max-height: 10rem;
  }
}

/* ---------- Floating page cutouts (cutout-no-bg-2) ---------- */
/* ---- New cutout-no-bg-2 page scraps ---- */
.page-scrap {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(2px 5px 12px rgba(60, 20, 30, 0.16));
  opacity: 0.95;
  cursor: url('assets/cursors/pointer.svg') 6 2, pointer;
  transition: translate 0.35s ease, scale 0.35s ease, filter 0.3s ease;
}

.page-scrap:hover {
  translate: 0 -10px;
  scale: 1.06;
  filter: drop-shadow(3px 10px 18px rgba(60, 20, 30, 0.24));
  z-index: 5;
}
.page-scrap--book-coffee {
  top: 10%; left: 2%;
  width: clamp(100px, 18vw, 170px);
  --scrap-rot: -8deg;
  animation: page-float-a 5.2s ease-in-out infinite;
}
.page-scrap--favorite {
  bottom: 18%; right: 4%; top: auto; left: auto;
  width: clamp(140px, 26vw, 240px);
  --scrap-rot: 4deg;
  animation: page-float-b 5.5s ease-in-out infinite;
}
.page-scrap--desk {
  bottom: 8%; left: 4%; top: auto;
  width: clamp(110px, 20vw, 190px);
  --scrap-rot: -3deg;
  animation: page-float-c 5.9s ease-in-out infinite;
}
.page-scrap--whos-she {
  top: 14%; right: 3%; left: auto;
  width: clamp(100px, 18vw, 170px);
  --scrap-rot: 6deg;
  animation: page-float-d 6.2s ease-in-out infinite;
}
.page-scrap--you-will {
  top: 12%; left: 2%;
  width: clamp(120px, 22vw, 200px);
  --scrap-rot: -5deg;
  animation: page-float-a 5.2s ease-in-out infinite;
}
.page-scrap--diva {
  top: 14%; right: 3%; left: auto;
  width: clamp(90px, 16vw, 150px);
  --scrap-rot: 8deg;
  animation: page-float-b 5.5s ease-in-out infinite;
}
.page-scrap--girl-math {
  bottom: 10%; right: 4%; top: auto; left: auto;
  width: clamp(90px, 16vw, 150px);
  --scrap-rot: -4deg;
  animation: page-float-c 5.9s ease-in-out infinite;
}
.page-scrap--lucky {
  bottom: 14%; left: 3%; top: auto;
  width: clamp(100px, 18vw, 170px);
  --scrap-rot: 3deg;
  animation: page-float-d 6.2s ease-in-out infinite;
}

/* ---- cutout-no-bg-2 scrapbook stickers ---- */
.cutout--nb2-manifesting {
  display: none;
  z-index: 14;
}
.cutout--nb2-ghost {
  top: 14.90%;
  left: 46.94%;
  right: auto;
  bottom: auto;
  width: 164px;
  --rot: -1.6deg;
  z-index: 15;
}
.cutout--nb2-look-up {
  top: 34.19%;
  left: 38.46%;
  right: auto;
  bottom: auto;
  width: 160px;
  --rot: 1.3deg;
  z-index: 16;
}
.cutout--nb2-girl-code {
  top: 41.32%;
  left: 53.06%;
  right: auto;
  bottom: auto;
  width: 132px;
  --rot: -4.2deg;
  z-index: 17;
}
.cutout--nb2-lucky-have {
  top: -0.58%;
  left: 75.74%;
  right: auto;
  bottom: auto;
  width: 182px;
  --rot: -3deg;
  z-index: 18;
}
.cutout--nb2-dream-on {
  top: 64.58%;
  left: 53.58%;
  right: auto;
  bottom: auto;
  width: 232px;
  --rot: -1.1deg;
  z-index: 19;
}
.cutout--nb2-bandaid {
  top: 6.31%;
  left: 71.27%;
  right: auto;
  bottom: auto;
  width: 66px;
  --rot: -47deg;
  z-index: 14;
}
.cutout--nb2-cute-chem {
  top: 46.23%;
  left: 43.46%;
  right: auto;
  bottom: auto;
  width: 230px;
  --rot: 2deg;
  z-index: 15;
}
.cutout--nb2-film-cam {
  top: 55.76%;
  left: 61.28%;
  right: auto;
  bottom: auto;
  width: 240px;
  --rot: -4.7deg;
  z-index: 16;
}
.cutout--nb2-plaid-bow {
  top: 47.93%;
  left: 61.67%;
  right: auto;
  bottom: auto;
  width: 184px;
  --rot: -0.3deg;
  z-index: 17;
}
.cutout--nb2-dreamer {
  top: 77.44%;
  left: 61.21%;
  right: auto;
  bottom: auto;
  width: 186px;
  --rot: -0.2deg;
  z-index: 18;
}
.cutout--nb2-1111 {
  top: 50.79%;
  left: 26.30%;
  right: auto;
  bottom: auto;
  width: 150px;
  --rot: 3.4deg;
  z-index: 19;
}
.cutout--nb2-enhypen {
  top: 33.61%;
  left: 81.39%;
  right: auto;
  bottom: auto;
  width: 318px;
  --rot: -1.5deg;
  z-index: 14;
}
.cutout--nb2-chocolate {
  top: 63.06%;
  left: 38.86%;
  right: auto;
  bottom: auto;
  width: 248px;
  --rot: 6deg;
  z-index: 15;
}
.cutout--nb2-bday-blob {
  top: 15.66%;
  left: 41.35%;
  right: auto;
  bottom: auto;
  width: 158px;
  --rot: 0.3deg;
  z-index: 16;
}
.cutout--nb2-hb-jagged {
  top: 50.38%;
  left: 41.35%;
  right: auto;
  bottom: auto;
  width: 208px;
  --rot: -4.8deg;
  z-index: 17;
}
.cutout--nb2-girl-boss {
  top: 32.20%;
  left: 50.36%;
  right: auto;
  bottom: auto;
  width: 138px;
  --rot: 5deg;
  z-index: 18;
}
.cutout--nb2-biryani {
  top: 73.41%;
  left: 26.76%;
  right: auto;
  bottom: auto;
  width: 262px;
  --rot: -0.6deg;
  z-index: 19;
}
.cutout--nb2-coffee-cup {
  top: 80.01%;
  left: 46.68%;
  right: auto;
  bottom: auto;
  width: 146px;
  --rot: -4.3deg;
  z-index: 15;
}
.cutout--nb2-kaleshi {
  top: 66.22%;
  left: 68.90%;
  right: auto;
  bottom: auto;
  width: 162px;
  --rot: -2.5deg;
  z-index: 16;
}
.cutout--nb2-main-char {
  top: 40.09%;
  left: 41.03%;
  right: auto;
  bottom: auto;
  width: 164px;
  --rot: -1.4deg;
  z-index: 17;
}
.cutout--nb2-cash {
  top: 60.72%;
  left: 23.08%;
  right: auto;
  bottom: auto;
  width: 222px;
  --rot: 2.3deg;
  z-index: 18;
}
.cutout--nb2-money-fest {
  top: 9.70%;
  left: 67.65%;
  right: auto;
  bottom: auto;
  width: 218px;
  --rot: 4deg;
  z-index: 19;
}

@keyframes page-float-a {
  0%, 100% { transform: translateY(0) rotate(var(--scrap-rot, -8deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--scrap-rot, -8deg) + 2deg)); }
}

@keyframes page-float-b {
  0%, 100% { transform: translateY(0) rotate(var(--scrap-rot, 8deg)); }
  50% { transform: translateY(-6px) rotate(calc(var(--scrap-rot, 8deg) - 2deg)); }
}

@keyframes page-float-c {
  0%, 100% { transform: translateY(0) translateX(0) rotate(var(--scrap-rot, 5deg)); }
  50% { transform: translateY(-7px) translateX(3px) rotate(calc(var(--scrap-rot, 5deg) + 1.5deg)); }
}

@keyframes page-float-d {
  0%, 100% { transform: translateY(0) rotate(var(--scrap-rot, -12deg)); }
  50% { transform: translateY(-5px) rotate(calc(var(--scrap-rot, -12deg) + 3deg)); }
}

@keyframes page-float-e {
  0%, 100% { transform: translateY(0) rotate(var(--scrap-rot, -4deg)); }
  50% { transform: translateY(-9px) rotate(calc(var(--scrap-rot, -4deg) - 1.5deg)); }
}

@media (max-width: 560px) {
  .site-nav__btn {
    padding: 0.55em 1em;
    font-size: 0.9rem;
  }
}

@keyframes landing-scrap-gingham {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-10deg) translateY(-6px); }
}

@keyframes landing-scrap-daisy {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-5px); }
}

@keyframes landing-scrap-roses {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-5px); }
}

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

@keyframes landing-cutout-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-5px); }
}

/* ---------- Music Control ---------- */
.music-control {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.music-control--visible {
  opacity: 1;
  visibility: visible;
}

.music-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fffef9;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dark);
  border: 1px solid rgba(120, 90, 80, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.music-control:hover .music-toggle,
.music-control:focus-within .music-toggle,
.music-control--open .music-toggle {
  transform: scale(1.08);
  box-shadow: var(--shadow-lift);
}

.music-toggle__icon--off {
  display: none;
  opacity: 0.45;
}

.music-control--muted .music-toggle__icon--on {
  display: none;
}

.music-control--muted .music-toggle__icon--off {
  display: block;
}

.music-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.55rem;
  background: #fffef9;
  border: 1px solid rgba(120, 90, 80, 0.15);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-control:hover .music-panel,
.music-control:focus-within .music-panel,
.music-control--open .music-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.music-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 7px;
  height: 96px;
  writing-mode: vertical-lr;
  direction: rtl;
  background: transparent;
  padding: 0;
  margin: 0;
}

.music-volume::-webkit-slider-runnable-track {
  width: 7px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3ddd4 0%, #e8cfc4 100%);
}

.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #fffaf7;
  border: 1px solid rgba(160, 100, 110, 0.35);
  box-shadow: 0 2px 6px rgba(120, 70, 80, 0.2);
}

.music-volume::-moz-range-track {
  width: 7px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3ddd4 0%, #e8cfc4 100%);
  border: none;
}

.music-volume::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fffaf7;
  border: 1px solid rgba(160, 100, 110, 0.35);
  box-shadow: 0 2px 6px rgba(120, 70, 80, 0.2);
}

@keyframes music-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Scrapbook Container ---------- */
.scrapbook {
  position: relative;
  min-height: 260vh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: 7.5rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition:
    opacity var(--transition-smooth),
    visibility var(--transition-smooth),
    transform var(--transition-smooth);
  background-color: #f3ebe0;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(244, 180, 190, 0.18) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 55%, rgba(180, 140, 110, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 40% 90%, rgba(200, 90, 110, 0.08) 0%, transparent 40%),
    linear-gradient(rgba(170, 150, 130, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 150, 130, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px, 28px 28px;
  overflow: hidden;
}

.scrapbook--visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scrapbook__frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  border: none;
  box-shadow: none;
}

.scrapbook__frame::before {
  display: none;
}

/* ---------- Animations ---------- */
@keyframes float-soft {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)) scale(var(--scale, 1)); }
  50% { transform: translateY(-10px) rotate(calc(var(--rot, 0deg) + 1.2deg)) scale(var(--scale, 1)); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)) scale(var(--scale, 1)); }
  50% { transform: translateY(-7px) rotate(calc(var(--rot, 0deg) - 1deg)) scale(var(--scale, 1)); }
}

@keyframes float-sway {
  0%, 100% { transform: translateX(0) translateY(0) rotate(var(--rot, 0deg)) scale(var(--scale, 1)); }
  50% { transform: translateX(4px) translateY(-8px) rotate(calc(var(--rot, 0deg) + 2deg)) scale(var(--scale, 1)); }
}

@keyframes landing-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes btn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes heart-soft {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes wobble-click {
  0%   { transform: rotate(var(--rot, 0deg)) scale(var(--scale, 1)); }
  25%  { transform: rotate(calc(var(--rot, 0deg) - 4deg)) scale(calc(var(--scale, 1) * 1.06)); }
  50%  { transform: rotate(calc(var(--rot, 0deg) + 4deg)) scale(calc(var(--scale, 1) * 1.08)); }
  75%  { transform: rotate(calc(var(--rot, 0deg) - 2deg)) scale(calc(var(--scale, 1) * 1.04)); }
  100% { transform: rotate(var(--rot, 0deg)) scale(var(--scale, 1)); }
}

.float-a { animation: float-soft 5.2s ease-in-out infinite; }
.float-b { animation: float-gentle 6.1s ease-in-out infinite; }
.float-c { animation: float-sway 5.6s ease-in-out infinite; }
.float-d { animation: float-soft 4.7s ease-in-out infinite; }
.float-e { animation: float-gentle 6.8s ease-in-out infinite; }

/* ---------- Scrapbook Items ---------- */
.scrapbook-item {
  cursor: url('assets/cursors/pointer.svg') 6 2, pointer;
  position: absolute;
  z-index: 10;
  transition:
    filter 0.3s ease,
    box-shadow 0.3s ease,
    translate 0.35s ease,
    scale 0.35s ease;
  will-change: transform;
  transform: rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  transform-origin: center center;
}

.scrapbook-item:hover {
  cursor: url('assets/cursors/onhover.png') 16 12, pointer;
  z-index: 40;
  filter: brightness(1.04) drop-shadow(4px 10px 18px rgba(60, 20, 30, 0.28));
  translate: 0 -10px;
  scale: 1.05;
}

.scrapbook-item.wobble {
  animation: wobble-click 0.45s ease !important;
  z-index: 50;
}

/* ---------- Cutout Stickers ---------- */
.cutout {
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(2px 5px 10px rgba(60, 20, 30, 0.18));
  user-select: none;
  -webkit-user-drag: none;
}

.paper-scrap {
  object-fit: cover;
  box-shadow: 3px 6px 16px rgba(60, 20, 30, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---- Background papers ---- */
.cutout--gingham-1 {
  display: none;
}

.cutout--hearts-paper {
  top: -1.81%;
  left: -0.53%;
  right: auto;
  bottom: auto;
  width: 330px;
  height: 632px;
  --rot: 0.5deg;
  z-index: 2;
  clip-path: polygon(0% 4%, 97% 0%, 100% 96%, 3% 100%);
}

.cutout--gingham-2 {
  top: -1.40%;
  left: 83.10%;
  right: auto;
  bottom: auto;
  width: 290px;
  height: 500px;
  --rot: -2deg;
  z-index: 3;
  clip-path: polygon(0% 0%, 100% 5%, 94% 100%, 6% 95%);
}

.cutout--burgundy {
  top: 26.24%;
  left: 81.92%;
  right: auto;
  bottom: auto;
  width: 360px;
  height: 500px;
  --rot: 1.5deg;
  z-index: 3;
  clip-path: polygon(5% 2%, 100% 0%, 95% 98%, 0% 100%);
}

.cutout--marble {
  top: 59.50%;
  left: -2.17%;
  right: auto;
  bottom: auto;
  width: 360px;
  height: 500px;
  --rot: -4deg;
  z-index: 3;
  clip-path: polygon(2% 0%, 100% 4%, 97% 100%, 0% 96%);
}

.cutout--painted-clouds {
  top: 33.14%;
  left: -2.17%;
  right: auto;
  bottom: auto;
  width: 360px;
  height: 500px;
  --rot: 2.2deg;
  z-index: 4;
  opacity: 0.92;
  clip-path: polygon(0% 6%, 96% 0%, 100% 94%, 4% 100%);
}

/* ---- Ephemera ---- */
.cutout--french-news {
  top: 87.84%;
  left: -0.66%;
  right: auto;
  bottom: auto;
  width: 360px;
  height: 500px;
  --rot: -2.5deg;
  z-index: 5;
  clip-path: polygon(3% 0%, 100% 2%, 97% 100%, 0% 97%);
}

.cutout--vintage-news {
  top: 54.70%;
  left: 79.36%;
  right: auto;
  bottom: auto;
  width: 360px;
  height: 500px;
  --rot: 4deg;
  z-index: 5;
  clip-path: polygon(0% 3%, 98% 0%, 100% 97%, 2% 100%);
}

.cutout--magazine {
  top: 82.23%;
  left: 77.19%;
  right: auto;
  bottom: auto;
  width: 360px;
  height: 500px;
  --rot: -2deg;
  z-index: 5;
  clip-path: polygon(4% 0%, 100% 5%, 96% 100%, 0% 95%);
}

.cutout--hand-letter {
  display: none;
}

.cutout--letter-script {
  top: -6.78%;
  left: 90.66%;
  right: auto;
  bottom: auto;
  width: 170px;
  --rot: -1.5deg;
  z-index: 6;
}

/* ---- Nature / texture stickers ---- */
.cutout--sky {
  top: 29.57%;
  left: 62.06%;
  right: auto;
  bottom: auto;
  width: 286px;
  --rot: -4.9deg;
  z-index: 8;
}

.cutout--news-torn {
  display: none;
}

.cutout--wildflowers {
  top: -4.68%;
  left: -2.04%;
  right: auto;
  bottom: auto;
  width: 220px;
  --rot: -0.4deg;
  z-index: 8;
}

.cutout--pines {
  display: none;
}

.cutout--daisy {
  top: 23.50%;
  left: 79.55%;
  right: auto;
  bottom: auto;
  width: 360px;
  --rot: -2deg;
  z-index: 9;
}

.cutout--vinyl {
  top: 16.72%;
  left: 66.54%;
  right: auto;
  bottom: auto;
  width: 226px;
  --rot: -4.1deg;
  z-index: 9;
}

.cutout--cloud {
  top: 31.56%;
  left: 22.02%;
  right: auto;
  bottom: auto;
  width: 268px;
  --rot: -5.5deg;
  z-index: 9;
}

/* ---- Polaroids ---- */
.polaroid {
  width: clamp(120px, 22vw, 200px);
  padding: 10px 10px 28px;
  background: #fffef9;
  box-shadow: 3px 8px 20px rgba(60, 20, 30, 0.22);
  z-index: 12;
  position: absolute;
}

.polaroid__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1212;
}

.polaroid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Portrait photos: bias crop toward the person (less empty ceiling / wall) */
.polaroid__img--vaishvi-1 {
  object-position: 52% 58%;
}

.polaroid__img--vaishvi-2 {
  object-position: 48% 42%;
}

.polaroid__caption {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-style: italic;
  color: var(--text-dark);
  text-align: center;
  margin-top: 8px;
  text-transform: lowercase;
}

.polaroid__heart {
  position: absolute;
  bottom: 6px;
  right: 10px;
  color: #d4647a;
  font-size: 0.85rem;
}

.polaroid--1 {
  top: 0.82%;
  left: 51.35%;
  right: auto;
  bottom: auto;
  width: 240px;
  --rot: -4.5deg;
}

.polaroid--2 {
  top: 0.76%;
  left: 35.50%;
  right: auto;
  bottom: auto;
  width: 224px;
  --rot: 5deg;
}

.polaroid--3 {
  display: none;
}

/* ---- Focal stickers ---- */
.cutout--bday-card {
  top: 3.27%;
  left: 4.34%;
  right: auto;
  bottom: auto;
  width: 240px;
  --rot: 3deg;
  z-index: 15;
}

.cutout--balloons {
  top: 16.48%;
  left: 41.95%;
  right: auto;
  bottom: auto;
  width: 234px;
  --rot: -89deg;
  z-index: 16;
}

.cutout--ticket {
  top: 16.72%;
  left: 1.38%;
  right: auto;
  bottom: auto;
  width: 260px;
  --rot: -1.5deg;
  z-index: 15;
}

.cutout--pink-ticket {
  top: 12.10%;
  left: 87.51%;
  right: auto;
  bottom: auto;
  width: 120px;
  --rot: 0.5deg;
  z-index: 14;
}

.cutout--roses {
  top: 17.01%;
  left: 23.47%;
  right: auto;
  bottom: auto;
  width: 160px;
  --rot: -1.8deg;
  z-index: 14;
}

.cutout--blue-bouquet {
  top: 37.23%;
  left: 0.39%;
  right: auto;
  bottom: auto;
  width: 244px;
  --rot: 0.4deg;
  z-index: 14;
}

.cutout--panda {
  display: none;
}

.cutout--miffy {
  top: -2.16%;
  left: 63.77%;
  right: auto;
  bottom: auto;
  width: 314px;
  --rot: -5.1deg;
  z-index: 18;
}

.cutout--butterfly {
  top: -3.57%;
  left: 16.70%;
  right: auto;
  bottom: auto;
  width: 344px;
  --rot: -0.6deg;
  z-index: 17;
}

.cutout--star {
  top: 4.50%;
  left: 84.81%;
  right: auto;
  bottom: auto;
  width: 110px;
  --rot: -2.5deg;
  z-index: 17;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .scrapbook {
    min-height: 320vh;
  }
}

@media (min-width: 900px) {
  .scrapbook {
    min-height: 220vh;
  }
}

/* ---------- Arrange Mode ---------- */
.arrange-toggle {
  display: none !important;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 920;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fffef9;
  border: 1px solid rgba(120, 90, 80, 0.2);
  box-shadow: var(--shadow-soft);
  font-size: 1.1rem;
  color: var(--text-dark);
  display: none;
  align-items: center;
  justify-content: center;
}

.arrange-toggle--visible {
  display: none !important;
}

.arrange-toggle:hover,
.arrange-toggle--active {
  background: #f3ebe0;
  box-shadow: var(--shadow-lift);
}

.arrange-toolbar {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 950;
  width: min(300px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  background: #fffef9;
  border: 1px solid rgba(120, 90, 80, 0.2);
  box-shadow: 3px 8px 24px rgba(60, 20, 30, 0.18);
  font-family: var(--font-display);
  color: var(--text-dark);
}

.arrange-toolbar[hidden] {
  display: none !important;
}

.arrange-toolbar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.arrange-toolbar__icon-btn {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.6;
  padding: 0.2rem 0.4rem;
}

.arrange-toolbar__icon-btn:hover {
  opacity: 1;
}

.arrange-toolbar__hint {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(42, 26, 26, 0.65);
  margin-bottom: 0.9rem;
  line-height: 1.35;
}

.arrange-toolbar__row {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-style: italic;
  text-transform: lowercase;
}

.arrange-toolbar__row input[type="range"] {
  width: 100%;
  accent-color: #8b2942;
}

.arrange-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.arrange-toolbar__btn {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  text-transform: lowercase;
  padding: 0.4em 0.85em;
  background: #f3ebe0;
  border: 1px dashed rgba(120, 90, 80, 0.35);
  color: var(--text-dark);
  box-shadow: 1px 2px 6px rgba(60, 20, 30, 0.08);
}

.arrange-toolbar__btn:hover {
  background: #efe6d8;
}

.arrange-toolbar__btn--ghost {
  background: transparent;
}

.arrange-toolbar__btn--danger {
  background: #f3e0e4;
  border-color: rgba(139, 41, 66, 0.35);
  color: #6b1d32;
}

.arrange-toolbar__btn--danger:hover {
  background: #edd0d8;
}

.arrange-toolbar__status {
  margin-top: 0.65rem;
  min-height: 1.2em;
  font-size: 0.8rem;
  font-style: italic;
  color: #8b2942;
}

.scrapbook-item.cutout--removed {
  display: none !important;
}

body.arrange-on .scrapbook-item.cutout--removed {
  display: none !important;
}

body.arrange-on .scrapbook-item {
  animation: none !important;
  cursor: url('assets/cursors/pointer.svg') 6 2, grab;
  outline: 1px dashed transparent;
}

body.arrange-on .scrapbook-item:hover {
  outline-color: rgba(139, 41, 66, 0.35);
  filter: none;
  translate: none;
  scale: none;
}

body.arrange-on .scrapbook-item.arrange-selected {
  outline: 2px solid #8b2942;
  outline-offset: 3px;
  z-index: 60 !important;
}

body.arrange-on .scrapbook-item.arrange-dragging {
  cursor: url('assets/cursors/pointer.svg') 6 2, grabbing;
  z-index: 70 !important;
  outline: 2px solid #8b2942;
}

/* Temporary cutout id labels — remove body.show-note-ids later */
body.show-note-ids .scrapbook-item::after,
body.show-note-ids .landing-scrap::after,
body.show-note-ids .page-scrap::after,
body.show-note-ids .landing__bday-cutout::after {
  content: attr(data-note);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--rot, var(--scrap-rot, 0deg))));
  z-index: 30;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.92);
  border: 1px solid rgba(160, 100, 110, 0.28);
  box-shadow: 0 2px 8px rgba(60, 20, 30, 0.12);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.03em;
  color: #6b3a42;
  white-space: nowrap;
  pointer-events: none;
}

body.show-note-ids .landing__bday-cutout {
  position: relative;
}

/* ---------- Cutout note overlay (retro mail window) ---------- */
.note-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: note-overlay-in 0.3s ease;
}

.note-overlay[hidden] {
  display: none;
}

.note-overlay__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(42, 26, 26, 0.34);
  cursor: url('assets/cursors/pointer.svg') 6 2, pointer;
  animation: note-backdrop-in 0.35s ease;
}

.note-sheet {
  --note-ink: #2a1a1a;
  --note-bar: #e8c4c8;
  --note-paper: #fffef9;
  --note-btn: #f3ebe0;
  --note-w: min(26rem, calc(100vw - 2rem));
  --note-h: min(56vh, 28rem);
  position: relative;
  z-index: 1;
  width: var(--note-w);
  height: var(--note-h);
  max-height: min(78vh, 34rem);
  display: flex;
  flex-direction: column;
  background: var(--note-paper);
  border: 3px solid var(--note-ink);
  box-shadow: 6px 6px 0 var(--note-ink);
  overflow: hidden;
  transform-origin: center center;
  transition:
    width 0.55s cubic-bezier(0.22, 1.15, 0.36, 1),
    height 0.55s cubic-bezier(0.22, 1.15, 0.36, 1),
    max-height 0.55s cubic-bezier(0.22, 1.15, 0.36, 1),
    box-shadow 0.45s ease;
}

.note-sheet--enter {
  animation: note-sheet-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.note-sheet--large {
  --note-w: min(40rem, calc(100vw - 1.25rem));
  --note-h: min(88vh, 48rem);
  width: var(--note-w);
  height: var(--note-h);
  max-height: min(88vh, 48rem);
  box-shadow: 8px 8px 0 var(--note-ink);
}

.note-sheet--growing {
  animation: note-sheet-grow 0.55s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.note-sheet--shrinking {
  animation: note-sheet-shrink 0.5s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.note-sheet__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.4rem 0.45rem 0.65rem;
  background: var(--note-bar);
  border-bottom: 3px solid var(--note-ink);
  flex-shrink: 0;
}

.note-sheet__titlebar-label {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: clamp(0.48rem, 1.7vw, 0.62rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--note-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-sheet__controls {
  display: flex;
  gap: 0.28rem;
  flex-shrink: 0;
}

.note-sheet__winbtn {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--note-ink);
  background: var(--note-btn);
  color: var(--note-ink);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(42, 26, 26, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.note-sheet__winbtn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(42, 26, 26, 0.35);
}

.note-sheet__winbtn--close:hover {
  background: #f0d0d6;
}

.note-sheet__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 1.1rem 1.15rem;
  min-height: 0;
  flex: 1;
  overflow: auto;
  background:
    linear-gradient(rgba(170, 150, 130, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 150, 130, 0.05) 1px, transparent 1px),
    var(--note-paper);
  background-size: 18px 18px, 18px 18px, auto;
}

.note-sheet__title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(42, 26, 26, 0.45);
  text-align: center;
}

body.show-note-ids .note-sheet__title {
  display: block !important;
}

.note-sheet__body {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-style: italic;
  line-height: 1.75;
  color: var(--text-dark);
  white-space: pre-wrap;
  text-align: left;
}

.note-sheet__body p + p {
  margin-top: 0.85rem;
}

.note-sheet__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.note-react {
  min-width: 6.5rem;
  padding: 0.7em 1em 0.6em;
  border: 3px solid var(--note-ink);
  background: var(--note-btn);
  color: var(--note-ink);
  font-family: var(--font-pixel);
  font-size: clamp(0.48rem, 1.6vw, 0.58rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--note-ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.note-react:hover {
  background: #f7e0e4;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--note-ink);
}

.note-react:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--note-ink);
}

.note-react--liked {
  background: #f0d0d6;
}

.note-sheet__react-msg {
  margin: 0;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  line-height: 1.7;
  color: #6b3a42;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: note-msg-in 0.35s ease;
}

.note-sheet__react-msg[hidden] {
  display: none;
}

.note-sheet__react-msg--dislike {
  color: #8a4a55;
}

/* Full-page like celebration */
.like-hearts {
  position: fixed;
  inset: 0;
  z-index: 1600;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}

.like-hearts--active {
  opacity: 1;
  visibility: visible;
}

.like-hearts__bloom {
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(70vw, 28rem);
  height: min(70vw, 28rem);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 180, 190, 0.35) 0%,
    rgba(232, 145, 158, 0.18) 35%,
    rgba(243, 235, 224, 0) 70%
  );
  animation: like-bloom 1.8s ease-out forwards;
}

.like-hearts--grand .like-hearts__bloom {
  width: min(95vw, 42rem);
  height: min(95vw, 42rem);
  background: radial-gradient(
    circle,
    rgba(255, 200, 210, 0.45) 0%,
    rgba(232, 145, 158, 0.22) 32%,
    rgba(243, 235, 224, 0) 72%
  );
  animation: like-bloom 2.4s ease-out forwards;
}

.like-hearts__bloom--second {
  top: 42%;
  width: min(60vw, 22rem);
  height: min(60vw, 22rem);
  animation-delay: 0.35s;
  background: radial-gradient(
    circle,
    rgba(255, 230, 235, 0.4) 0%,
    rgba(244, 180, 190, 0.16) 40%,
    transparent 70%
  );
}

.like-hearts__bit {
  position: absolute;
  left: var(--hx, 50%);
  top: var(--hy, 80%);
  color: var(--hc, #d4647a);
  font-size: var(--hs, 1rem);
  line-height: 1;
  opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(180, 80, 100, 0.28));
  text-shadow: 0 0 var(--hblur, 0px) currentColor;
  animation: like-heart-fly var(--hdur, 2.4s) cubic-bezier(0.16, 0.8, 0.25, 1) forwards;
  animation-delay: var(--hd, 0s);
  will-change: transform, opacity;
}

@keyframes like-bloom {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55);
  }
}

@keyframes like-heart-fly {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.25) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  55% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--hdrift, 0px)), var(--hrise, -70vh))
      scale(1.15)
      rotate(var(--hrot, 24deg));
  }
}

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

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

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

@keyframes note-sheet-grow {
  0% {
    transform: scale(0.97);
  }
  55% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes note-sheet-shrink {
  0% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes note-msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- For you / vault ---------- */
.for-you-btn {
  position: relative;
  z-index: 61;
  padding: 0.15rem 0.4rem;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.9vw, 0.98rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #6b3a42;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.25s ease;
}

.for-you-btn[hidden] {
  display: none !important;
}

.for-you-btn:hover {
  color: #5a2f36;
  transform: translateY(-1px);
}

.vault-sheet {
  --note-w: min(26rem, calc(100vw - 1.75rem));
  --note-h: auto;
  width: var(--note-w);
  height: auto;
  max-height: min(88vh, 32rem);
  transition:
    width 0.7s cubic-bezier(0.22, 1.15, 0.36, 1),
    height 0.7s cubic-bezier(0.22, 1.15, 0.36, 1),
    max-height 0.7s cubic-bezier(0.22, 1.15, 0.36, 1),
    box-shadow 0.55s ease;
}

.vault-sheet--gift {
  --note-w: min(30rem, calc(100vw - 1.5rem));
  --note-h: auto;
  width: var(--note-w);
  height: auto;
  max-height: min(90vh, 40rem);
  box-shadow:
    8px 8px 0 var(--note-ink, #2a1a1a),
    0 0 0 1px rgba(232, 196, 200, 0.45);
}

.vault-overlay--gift .note-overlay__backdrop {
  background: rgba(42, 26, 26, 0.42);
  animation: vault-backdrop-gift 0.8s ease;
}

.vault-sheet--gift-in {
  animation: vault-gift-in 0.9s cubic-bezier(0.16, 1.15, 0.28, 1);
}

.vault-sheet--success {
  animation: vault-success-pulse 0.55s ease;
}

.vault-sheet__content {
  padding-bottom: 0.85rem;
}

.vault-sheet--gift .vault-sheet__content {
  padding: 1.25rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vault-hint {
  margin: 0 0 0.85rem;
  font-family: var(--font-pixel);
  font-size: clamp(0.42rem, 1.5vw, 0.52rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: rgba(42, 26, 26, 0.72);
  text-align: center;
}

.vault-slots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.vault-slot {
  width: 2.15rem;
  height: 2.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--note-ink, #2a1a1a);
  background: #fffef9;
  box-shadow: 2px 2px 0 var(--note-ink, #2a1a1a);
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--note-ink, #2a1a1a);
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.vault-slot--filled {
  background: #f8ebe8;
}

.vault-slot--pop {
  animation: vault-slot-pop 0.28s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.vault-slots--reject .vault-slot {
  animation: vault-slot-reject 0.45s ease;
  animation-delay: calc(var(--si, 0) * 0.04s);
  border-color: #8a3a48;
  background: #f7dfe3;
  box-shadow: 2px 2px 0 #8a3a48;
}

.vault-slots--success .vault-slot {
  animation: vault-slot-success 0.55s cubic-bezier(0.22, 1.3, 0.36, 1) both;
  animation-delay: calc(var(--si, 0) * 0.06s);
  border-color: #6b3a44;
  background: #f4d4da;
  box-shadow: 2px 2px 0 #6b3a44;
}

.vault-error {
  margin: 0 0 0.65rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--maroon);
}

.vault-error--pop {
  animation: vault-error-pop 0.45s cubic-bezier(0.22, 1.3, 0.36, 1);
}

.vault-error[hidden] {
  display: none !important;
}

.vault-keyboard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.15rem 0 0.25rem;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.vault-keyboard--reject {
  animation: vault-keyboard-flash 0.45s ease;
}

.vault-keyboard__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.vault-key {
  min-width: 1.85rem;
  height: 2rem;
  padding: 0 0.35rem;
  border: 2px solid #2a1a1a;
  background: #f3ebe0;
  box-shadow: 2px 2px 0 #2a1a1a;
  font-family: var(--font-pixel);
  font-size: 0.48rem;
  line-height: 1;
  color: #2a1a1a;
  text-transform: uppercase;
  transition: transform 0.08s ease, background 0.15s ease;
}

.vault-key:hover {
  background: #e8c4c8;
}

.vault-key:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #2a1a1a;
}

.vault-key--wide {
  min-width: 4.2rem;
  font-size: 0.4rem;
  letter-spacing: 0.02em;
}

.vault-key--enter {
  background: #e8c4c8;
}

.vault-sheet--shake {
  animation: vault-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.vault-sheet--reject {
  filter: saturate(1.05);
}

.vault-lock {
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.vault-lock--out {
  opacity: 0;
  transform: scale(0.94) translateY(8px);
  pointer-events: none;
}

.vault-lock[hidden] {
  display: none !important;
}

.vault-secret[hidden] {
  display: none !important;
}

.vault-secret {
  position: relative;
  opacity: 0;
}

.vault-secret--reveal {
  animation: vault-secret-reveal 0.85s cubic-bezier(0.16, 1.1, 0.28, 1) forwards;
}

.vault-secret__body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
}

.gift-intro {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  line-height: 1.5;
  color: rgba(42, 26, 26, 0.78);
}

.gift-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.7) 0%, transparent 40%),
    radial-gradient(circle at 86% 82%, rgba(244, 180, 190, 0.28) 0%, transparent 48%),
    linear-gradient(165deg, #fff8f4 0%, #fce8e4 45%, #f3ddd4 100%);
  color: #5a2f36;
  border: 1px solid rgba(180, 130, 140, 0.28);
  box-shadow:
    0 8px 22px rgba(120, 70, 80, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: rotate(-0.4deg);
}

.gift-card__shine {
  position: absolute;
  inset: -40% auto auto -25%;
  width: 55%;
  height: 160%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 240, 245, 0.55) 52%,
    transparent 65%
  );
  transform: rotate(18deg);
  pointer-events: none;
  animation: gift-shine 4.5s ease-in-out infinite;
}

.gift-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.gift-card__brand {
  font-family: var(--font-cute, var(--font-display));
  font-size: clamp(1.45rem, 4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #8b2942;
}

.gift-card__kind {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: #6b3a42;
  opacity: 0.75;
  text-transform: lowercase;
}

.gift-card__amount {
  position: relative;
  z-index: 1;
  margin: 0 0 1.05rem;
  font-family: var(--font-cute, var(--font-display));
  font-size: clamp(2.1rem, 6.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #d4647a;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.65);
}

.gift-card__fields {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
}

.gift-card__field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.gift-card__field--pin {
  max-width: 10rem;
}

.gift-card__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: rgba(90, 47, 54, 0.65);
}

.gift-card__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(180, 130, 140, 0.28);
  border-radius: 0.7rem;
  background: rgba(255, 254, 249, 0.72);
  color: #5a2f36;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: url('assets/cursors/pointer.svg') 6 2, pointer;
}

.gift-card__value:hover,
.gift-card__value--copied {
  background: #fffef9;
  border-color: rgba(160, 100, 110, 0.4);
  box-shadow:
    0 3px 10px rgba(120, 70, 80, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: url('assets/cursors/onhover.png') 16 12, pointer;
}

.gift-card__mono {
  font-family: var(--font-pixel);
  font-size: clamp(0.42rem, 1.5vw, 0.52rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #5a2f36;
}

.gift-card__copy-hint {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.75rem;
  color: #8b2942;
  opacity: 0.7;
}

.gift-card__footer {
  position: relative;
  z-index: 1;
  margin: 0.95rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(90, 47, 54, 0.62);
  text-align: center;
}

@keyframes gift-shine {
  0%, 100% { transform: translateX(0) rotate(18deg); opacity: 0.45; }
  50% { transform: translateX(35%) rotate(18deg); opacity: 0.9; }
}

@media (max-width: 420px) {
  .gift-card {
    padding: 1.15rem 1rem 1rem;
  }

  .gift-card__field--pin {
    max-width: none;
  }

  .vault-sheet--gift .vault-sheet__content {
    padding: 1.05rem 0.95rem 1.15rem;
  }
}

@keyframes vault-shake {
  0%, 100% { transform: translateX(0); }
  12% { transform: translateX(-10px) rotate(-0.4deg); }
  24% { transform: translateX(10px) rotate(0.4deg); }
  36% { transform: translateX(-8px); }
  48% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  72% { transform: translateX(5px); }
  84% { transform: translateX(-2px); }
}

@keyframes vault-slot-pop {
  0% { transform: scale(0.82); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes vault-slot-reject {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
  55% { transform: translateY(2px); }
}

@keyframes vault-slot-success {
  0% { transform: scale(1); background: #f8ebe8; }
  40% { transform: scale(1.12); background: #f4d4da; }
  100% { transform: scale(1.04); background: #f4d4da; }
}

@keyframes vault-error-pop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes vault-keyboard-flash {
  0%, 100% { filter: none; opacity: 1; }
  35% { filter: saturate(0.7); opacity: 0.72; }
}

@keyframes vault-success-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

@keyframes vault-gift-in {
  0% {
    opacity: 0.55;
    transform: scale(0.82) translateY(28px);
  }
  55% {
    opacity: 1;
    transform: scale(1.045) translateY(-4px);
  }
  78% {
    transform: scale(0.985) translateY(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes vault-secret-reveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes vault-backdrop-gift {
  from { background: rgba(42, 26, 26, 0.34); }
  to { background: rgba(42, 26, 26, 0.42); }
}

@media (max-width: 420px) {
  .vault-key {
    min-width: 1.55rem;
    height: 1.85rem;
    font-size: 0.4rem;
  }

  .vault-key--wide {
    min-width: 3.4rem;
  }

  .vault-slot {
    width: 1.85rem;
    height: 2.25rem;
  }
}

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