/* Original BowlCulture cat-and-mouse mascots on welcome and checkout screens. */
#welcomeIntro .welcome-mascot.mascot-duo {
  left: clamp(0px, 3vw, 42px);
  bottom: clamp(8px, 2vh, 22px);
  width: clamp(180px, 31vw, 370px);
  height: auto;
  filter: drop-shadow(0 12px 16px #07160d52);
  animation: mascot-duo-arrive 4.7s cubic-bezier(.2,.72,.26,1) both,
    mascot-duo-float 3.2s 4.7s ease-in-out infinite;
}

.checkout-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
  overflow: hidden;
}

.checkout-intro-copy { min-width: 0; }
.checkout-character-art {
  display: block;
  width: 124px;
  height: 92px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 5px 7px #26422a24);
  animation: checkout-mascot-bob 3.5s ease-in-out infinite;
}

.handoff-character-art,
.checkout-result-mascot {
  display: block;
  width: min(100%, 152px);
  height: 94px;
  margin: -3px auto 2px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px #26422a22);
  animation: checkout-mascot-bob 3.5s ease-in-out infinite;
}

.commerce-reorder {
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #e6d39d;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8e6, #fffdf6);
}

.commerce-reorder[hidden] { display: none !important; }
.commerce-reorder strong { display: block; color: #254b35; font-size: 12px; }
.commerce-reorder p { margin: 4px 0 9px; color: #626b5d; font-size: 11px; line-height: 1.45; }
.commerce-reorder button {
  min-height: 39px;
  border: 0;
  border-radius: 9px;
  padding: 9px 12px;
  background: #1b5b3d;
  color: white;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.commerce-reorder button:hover { background: #123c2b; }

@keyframes mascot-duo-arrive {
  0% { opacity: 0; transform: translate(-24px, 28px) rotate(-5deg) scale(.88); }
  58% { opacity: 1; transform: translate(0, -5px) rotate(2deg) scale(1.02); }
  76% { transform: translate(0, 3px) rotate(-1deg) scale(.99); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes mascot-duo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes checkout-mascot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 720px) {
  #welcomeIntro .welcome-mascot.mascot-duo {
    left: 0;
    bottom: max(8px, 1.5vh);
    width: clamp(165px, 48vw, 250px);
  }
  .checkout-intro { grid-template-columns: minmax(0, 1fr) 100px; gap: 4px; }
  .checkout-character-art { width: 100px; height: 78px; }
  .handoff-character-art, .checkout-result-mascot { width: 134px; height: 82px; }
}

@media (max-width: 420px) {
  #welcomeIntro .welcome-mascot.mascot-duo { width: clamp(145px, 48vw, 195px); }
  .checkout-intro { grid-template-columns: minmax(0, 1fr) 78px; padding: 12px 9px 12px 12px; }
  .checkout-character-art { width: 78px; height: 67px; }
}

@media (prefers-reduced-motion: reduce) {
  #welcomeIntro .welcome-mascot.mascot-duo,
  .checkout-character-art,
  .handoff-character-art,
  .checkout-result-mascot { animation: none !important; }
}
