/* ==========================================================
   PACK A LITTLE PICNIC - Digital Stationery Scrapbook Styles
   Target: Mobile-Only (~390 x 844px)
   Aesthetic: Soft, Whimsical, Handmade, Pinterest Stationery
   ========================================================== */

:root {
  --font-decorative: 'Crafty Girls', cursive, sans-serif;
  --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Pinterest Warm Pastel Scrapbook Palette */
  --color-paper-cream: #fdfaf6;
  --color-paper-warm: #f7f1e5;
  --color-blush-soft: #fbf0ed;
  --color-gingham-red: #d8433d;
  --color-wicker-brown: #8a5833;
  --color-honey-yellow: #f8c953;
  --color-ink-deep: #43332b;
  --color-ink-soft: #7a6b65;
  --color-white: #ffffff;
  --color-tape-pink: rgba(255, 228, 225, 0.85);

  /* Shadows with warm paper feel */
  --shadow-paper: 0 4px 14px rgba(71, 58, 54, 0.12), 0 1px 3px rgba(71, 58, 54, 0.08);
  --shadow-float: 0 12px 28px rgba(50, 40, 30, 0.22), 0 3px 8px rgba(50, 40, 30, 0.14);
  --shadow-basket: 0 14px 34px rgba(35, 25, 15, 0.28);
  --shadow-button: 0 6px 16px rgba(110, 40, 30, 0.18), 0 2px 4px rgba(110, 40, 30, 0.12);

  /* Easing curves for handmade stop-motion feel */
  --ease-handmade: cubic-bezier(0.34, 1.3, 0.64, 1);
  --ease-gentle: cubic-bezier(0.25, 0.9, 0.35, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #ede6dc;
  font-family: var(--font-body);
  color: var(--color-ink-deep);
  overflow: hidden;
}

/* Desktop Presentation Wrapper */
.desktop-canvas {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ede5da;
  background-image: 
    radial-gradient(#dbcbb9 1px, transparent 1px),
    radial-gradient(#e5d9ca 1px, #ede5da 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

/* Mobile Viewport: strictly ~390 x 844px */
.mobile-viewport {
  position: relative;
  width: 390px;
  height: 844px;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: 
    0 24px 60px rgba(70, 50, 35, 0.25),
    0 4px 16px rgba(70, 50, 35, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 500px) {
  .mobile-viewport {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* 1. Background Asset Layer */
.background-layer {
  position: absolute;
  inset: 0;
  background-image: url('assets/background.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  filter: saturate(1.05) contrast(0.98);
}

/* 2. Paper & Subtle Grain Texture Overlay */
.paper-texture-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12) 0%, rgba(60, 40, 20, 0.1) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================
   OPENING SCREEN: PAPER NOTE & NAME INPUT
   ========================================================== */
.opening-screen {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.8s var(--ease-gentle), transform 0.8s var(--ease-handmade);
}

.opening-screen.fade-out {
  opacity: 0;
  transform: translateY(-40px) scale(0.96);
  pointer-events: none;
}

.paper-container {
  position: relative;
  width: 350px;
  /* Animate paper into place with subtle, slow, handmade stop-motion-style movement */
  animation: paper-entrance-stopmotion 2.2s var(--ease-handmade) forwards;
  filter: drop-shadow(0 16px 30px rgba(50, 35, 20, 0.3));
}

.paper-graphic-wrap {
  position: relative;
  width: 100%;
}

.paper-asset-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Note content placed comfortably over the cream paper sheet */
.paper-stationery-content {
  position: absolute;
  top: 25%;
  left: 20%;
  right: 23%;
  bottom: 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
}

.paper-prompt {
  font-family: var(--font-decorative);
  font-size: 1.22rem;
  line-height: 1.2;
  color: var(--color-ink-deep);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.input-underline-wrap {
  position: relative;
  width: 90%;
  margin-bottom: 14px;
}

.paper-name-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-decorative);
  font-size: 1.38rem;
  color: #872e29;
  text-align: center;
  padding: 4px 6px;
  letter-spacing: 0.4px;
  user-select: text;
  -webkit-user-select: text;
}

.paper-name-input::placeholder {
  color: rgba(122, 107, 101, 0.5);
  font-size: 1.1rem;
}

.handwritten-line {
  width: 100%;
  height: 2px;
  background: #cbb4a3;
  border-radius: 2px;
  margin-top: 2px;
}

.paper-pack-btn {
  background: var(--color-gingham-red);
  color: var(--color-white);
  padding: 9px 22px;
  border-radius: 24px;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(216, 67, 61, 0.3);
  transition: transform 0.25s var(--ease-handmade), box-shadow 0.25s;
}

.paper-pack-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 18px rgba(216, 67, 61, 0.4);
}

.paper-pack-btn:active {
  transform: scale(0.97);
}

/* ==========================================================
   MAIN PICNIC SCREEN
   ========================================================== */
.main-picnic-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

/* Opening Title: One simple, smaller handwritten title, centered and elegant */
.picnic-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 42px 24px 6px;
  display: flex;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-decorative);
  font-size: 1.38rem;
  color: var(--color-white);
  text-shadow: 
    0 2px 6px rgba(45, 30, 15, 0.65),
    0 1px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
  line-height: 1.3;
  max-width: 290px;
  animation: subtle-float 6s ease-in-out infinite;
}

/* Interactive Picnic Stage */
.picnic-stage {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  perspective: 900px;
}

/* Basket Assembly Container */
.basket-assembly {
  position: relative;
  width: 290px;
  height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(var(--shadow-basket));
  transform: translateY(140px) scale(0.95);
  opacity: 0;
  transition: transform 1.3s var(--ease-handmade), opacity 1s var(--ease-gentle);
  margin-top: 10px;
}

.basket-assembly.basket-entered {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: basket-settle-wiggle 1.8s var(--ease-handmade) forwards;
}

.basket-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.basket-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Blanket Layer */
.basket-layer.blanket-wrap {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.8s var(--ease-gentle), transform 0.8s var(--ease-gentle);
  z-index: 6;
}

.basket-layer.blanket-wrap.revealed {
  opacity: 1;
  transform: scale(1);
}

.basket-mat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Floating Animating Blanket */
.floating-blanket {
  position: absolute;
  width: 210px;
  height: 260px;
  top: 18%;
  left: calc(50% - 105px);
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-110px) rotate(-8deg) scale(0.85);
  transition: 
    transform 1.3s var(--ease-handmade),
    opacity 0.6s var(--ease-gentle);
  filter: drop-shadow(0 14px 22px rgba(60, 30, 20, 0.28));
}

.floating-blanket.fly-in {
  opacity: 1;
  transform: translateY(10px) rotate(2.5deg) scale(1.02);
}

.floating-blanket.settle-in {
  opacity: 0;
  transform: translateY(40px) rotate(0deg) scale(1);
  transition: 
    transform 0.7s var(--ease-handmade),
    opacity 0.4s ease-out;
}

.floating-blanket img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================
   PACKED ITEMS NEST WRAP (4 Slots inside the open basket)
   ========================================================== */
.items-nest-wrap {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.nest-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slot 1: Snack (top-left) */
.slot-snack {
  top: 90px;
  left: 45px;
  width: 88px;
  height: 88px;
}

/* Slot 2: Drink (top-right) */
.slot-drink {
  top: 80px;
  right: 45px;
  width: 78px;
  height: 98px;
}

/* Slot 3: Dessert (bottom-left) */
.slot-dessert {
  bottom: 85px;
  left: 45px;
  width: 82px;
  height: 82px;
}

/* Slot 4: Something Pretty (bottom-right) */
.slot-pretty {
  bottom: 80px;
  right: 42px;
  width: 88px;
  height: 88px;
}

.packed-item {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(45, 30, 20, 0.35));
  animation: gentle-treat-idle 4s ease-in-out infinite alternate;
}

/* Basket Lid Layer */
.basket-layer.lid-wrap {
  z-index: 12;
  width: 210px;
  height: 266px;
  left: calc(50% - 105px);
  top: calc(50% - 133px);
  transition: 
    transform 1.4s var(--ease-handmade),
    filter 1s var(--ease-gentle);
  transform-origin: 10% 10%;
  filter: drop-shadow(0 10px 20px rgba(40, 25, 15, 0.35));
}

.lid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  box-shadow: 
    inset 0 0 0 3px rgba(100, 60, 30, 0.35),
    inset 0 3px 6px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.lid-handle {
  position: absolute;
  top: -14px;
  left: calc(50% - 22px);
  width: 44px;
  height: 20px;
  border: 4px solid #6b4020;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: transparent;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.lid-strap {
  position: absolute;
  width: 9px;
  height: 42px;
  background: #5a3518;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  top: -6px;
}

.lid-strap.left-strap { left: 36px; }
.lid-strap.right-strap { right: 36px; }

/* Open lid animation */
.lid-wrap.lid-opened {
  transform: translateY(-180px) rotate(-16deg) scale(0.96);
  filter: drop-shadow(0 18px 26px rgba(40, 25, 15, 0.24));
}

/* Closed lid final animation: smooth stop-motion shut & settle */
.lid-wrap.lid-shut-complete {
  animation: lid-shut-settle 1.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes lid-shut-settle {
  0% {
    transform: translateY(-180px) rotate(-16deg) scale(0.96);
    filter: drop-shadow(0 18px 26px rgba(40, 25, 15, 0.24));
  }
  65% {
    transform: translateY(3px) rotate(0.8deg) scale(1.005);
    filter: drop-shadow(0 12px 22px rgba(40, 25, 15, 0.38));
  }
  82% {
    transform: translateY(-2px) rotate(-0.4deg) scale(0.998);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    filter: drop-shadow(0 10px 20px rgba(40, 25, 15, 0.35));
  }
}

/* ==========================================================
   SELECTION DRAWER: Categorized Options
   ========================================================== */
.selection-drawer {
  position: absolute;
  top: 110px;
  bottom: 110px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-gentle), visibility 0.5s;
}

.selection-drawer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.selection-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 330px;
}

/* Compact gap when 4 items (drinks) */
.selection-card-list.four-items {
  gap: 8px;
}

.selection-card-list.four-items .option-card {
  padding: 6px 12px;
  border-radius: 16px;
}

.selection-card-list.four-items .option-stamp {
  width: 48px;
  height: 48px;
  margin-right: 10px;
}

.selection-card-list.four-items .option-card-img {
  width: 42px;
  height: 42px;
}

.selection-card-list.four-items .option-name {
  font-size: 1.08rem;
}

.selection-card-list.four-items .option-note {
  font-size: 0.68rem;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-paper-cream);
  border: 2px dashed #dbc9b5;
  border-radius: 18px;
  padding: 8px 14px;
  box-shadow: var(--shadow-paper);
  cursor: pointer;
  transition: 
    transform 0.4s var(--ease-handmade),
    box-shadow 0.3s var(--ease-gentle),
    border-color 0.3s,
    opacity 0.4s;
  text-align: left;
}

.option-card:hover, .option-card:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-float);
  border-color: var(--color-gingham-red);
}

.option-card:active {
  transform: scale(0.97);
}

.option-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 38px;
  height: 12px;
  background: var(--color-tape-pink);
  transform: rotate(-3deg);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.option-stamp {
  width: 58px;
  height: 58px;
  background: #fdf5ea;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.option-card-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.option-name {
  font-family: var(--font-decorative);
  font-size: 1.18rem;
  color: var(--color-ink-deep);
  line-height: 1.2;
}

.option-note {
  font-size: 0.7rem;
  color: var(--color-ink-soft);
  margin-top: 2px;
}

.select-badge {
  font-family: var(--font-decorative);
  font-size: 0.74rem;
  background: #f9ede7;
  color: var(--color-gingham-red);
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(216, 67, 61, 0.2);
}

.option-card.selected {
  border-color: var(--color-gingham-red);
  background: #fff8f6;
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(216, 67, 61, 0.25);
}

.option-card.fade-out {
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  pointer-events: none;
}

/* Flying item animation clone */
.flying-item-clone {
  position: absolute;
  z-index: 99;
  pointer-events: none;
  transition: all 1.2s var(--ease-handmade);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* Stop-motion wiggles */
.wiggle-item-1 { animation: slow-stop-motion-wiggle-1 3.2s ease-in-out infinite; }
.wiggle-item-2 { animation: slow-stop-motion-wiggle-2 3.6s ease-in-out infinite; }
.wiggle-item-3 { animation: slow-stop-motion-wiggle-3 4s ease-in-out infinite; }
.wiggle-item-4 { animation: slow-stop-motion-wiggle-1 3.8s ease-in-out infinite; }

/* ==========================================================
   CONTROLS & PROMPTS
   ========================================================== */
.controls-shelf {
  position: relative;
  z-index: 10;
  padding: 14px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.pinterest-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-decorative);
  font-size: 1.3rem;
  cursor: pointer;
  outline: none;
  border: none;
  padding: 13px 26px;
  border-radius: 30px;
  box-shadow: var(--shadow-button);
  transition: 
    transform 0.35s var(--ease-handmade),
    box-shadow 0.3s var(--ease-gentle),
    background-color 0.3s;
  letter-spacing: 0.3px;
}

.pinterest-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(100, 30, 20, 0.24);
}

.pinterest-btn:active {
  transform: translateY(1px) scale(0.98);
}

.paper-tag-btn {
  background: var(--color-white);
  color: var(--color-wicker-brown);
  border: 2px dashed rgba(138, 88, 51, 0.35);
  box-shadow: var(--shadow-paper);
}

.btn-stitch {
  position: absolute;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2d3c2;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}

.prompt-badge {
  background: rgba(255, 255, 255, 0.94);
  padding: 9px 22px;
  border-radius: 22px;
  border: 1.5px dashed var(--color-gingham-red);
  box-shadow: var(--shadow-paper);
  backdrop-filter: blur(4px);
  animation: gentle-badge-wiggle 3s ease-in-out infinite;
}

.prompt-text {
  font-family: var(--font-decorative);
  font-size: 1.25rem;
  color: var(--color-gingham-red);
}

/* Complete Final State Card */
.complete-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.complete-banner {
  background: var(--color-white);
  padding: 10px 24px;
  border-radius: 22px;
  border: 2px dashed #e2c0b0;
  box-shadow: var(--shadow-paper);
  transform: rotate(-1.5deg);
  max-width: 90%;
  text-align: center;
}

.complete-title {
  font-family: var(--font-decorative);
  font-size: 1.32rem;
  color: var(--color-gingham-red);
  letter-spacing: 0.3px;
  display: block;
}

.send-btn {
  background: var(--color-gingham-red);
  color: var(--color-white);
  border: 2px dashed rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 20px rgba(216, 67, 61, 0.38);
  font-size: 1.2rem;
  padding: 12px 24px;
}

.send-btn .btn-stitch {
  background: rgba(255, 255, 255, 0.75);
}

.send-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(216, 67, 61, 0.48);
}

.share-secondary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.secondary-paper-btn {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-wicker-brown);
  border: 1.5px dashed #caa28b;
  border-radius: 20px;
  font-family: var(--font-decorative);
  font-size: 1.05rem;
  padding: 7px 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(60, 30, 20, 0.12);
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.secondary-paper-btn:hover {
  transform: translateY(-1px) scale(1.03);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(60, 30, 20, 0.18);
}

.secondary-paper-btn:active {
  transform: scale(0.97);
}

.replay-btn {
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px dashed #caa28b;
  color: var(--color-wicker-brown);
  font-family: var(--font-decorative);
  font-size: 0.98rem;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(60, 30, 20, 0.1);
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.replay-btn:hover {
  transform: translateY(-1px) scale(1.03);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(60, 30, 20, 0.16);
}

.replay-btn:active {
  transform: scale(0.97);
}

/* Tactile Toast Notification */
.picnic-toast {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(255, 255, 255, 0.96);
  border: 2px dashed var(--color-gingham-red);
  box-shadow: 0 10px 28px rgba(70, 30, 20, 0.25);
  border-radius: 22px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 60;
  pointer-events: none;
  font-family: var(--font-decorative);
  color: var(--color-gingham-red);
  font-size: 1.18rem;
  animation: toast-pop-in 2.8s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
}

.toast-heart {
  font-size: 1.25rem;
  color: var(--color-gingham-red);
}

@keyframes toast-pop-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-14px) scale(0.92);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  82% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
  }
}

/* Sound Toggle */
.sound-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 35;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(138, 88, 51, 0.25);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-wicker-brown);
  font-size: 1.1rem;
  backdrop-filter: blur(4px);
  transition: transform 0.25s;
}

.sound-toggle:active {
  transform: scale(0.92);
}

/* Particles */
.particle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  overflow: hidden;
}

.paper-heart {
  position: absolute;
  font-size: 1.4rem;
  color: #ea5b55;
  opacity: 0;
  transform: translateY(0) scale(0.8) rotate(0deg);
  animation: float-heart 2.6s var(--ease-gentle) forwards;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Utility Hidden */
.hidden {
  display: none !important;
}

/* ==========================================================
   ANIMATION KEYFRAMES (Subtle, Slow, Stop-Motion Inspired)
   ========================================================== */

@keyframes paper-entrance-stopmotion {
  0% {
    opacity: 0;
    transform: translateY(80px) rotate(-3deg) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px) rotate(1.8deg) scale(1.01);
  }
  75% {
    transform: translateY(4px) rotate(-1deg) scale(0.995);
  }
  90% {
    transform: translateY(-2px) rotate(0.5deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

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

@keyframes basket-settle-wiggle {
  0% { transform: translateY(140px) rotate(0deg) scale(0.95); }
  60% { transform: translateY(-6px) rotate(-1.2deg) scale(1.01); }
  75% { transform: translateY(3px) rotate(0.8deg) scale(0.995); }
  90% { transform: translateY(-1px) rotate(-0.4deg) scale(1); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes slow-stop-motion-wiggle-1 {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(1.5deg) translateY(-1px); }
  50% { transform: rotate(-1deg) translateY(1px); }
  75% { transform: rotate(0.8deg) translateY(-0.5px); }
}

@keyframes slow-stop-motion-wiggle-2 {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  30% { transform: rotate(-1.8deg) translateY(-1.5px); }
  60% { transform: rotate(1.2deg) translateY(1px); }
  85% { transform: rotate(-0.6deg) translateY(-0.5px); }
}

@keyframes slow-stop-motion-wiggle-3 {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  20% { transform: rotate(1.2deg) translateY(1px); }
  45% { transform: rotate(-1.5deg) translateY(-1px); }
  70% { transform: rotate(1.8deg) translateY(-0.5px); }
}

@keyframes gentle-treat-idle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(1.2deg) scale(1.02); }
}

@keyframes gentle-badge-wiggle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}

@keyframes float-heart {
  0% { opacity: 0; transform: translateY(0) scale(0.6) rotate(-10deg); }
  20% { opacity: 1; transform: translateY(-20px) scale(1.1) rotate(5deg); }
  80% { opacity: 0.8; transform: translateY(-90px) scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: translateY(-130px) scale(0.9) rotate(8deg); }
}
