/* Blueberry Before I Burst — image-only cobbler cards
   Hide the duplicate base layer on steps without a separate scene background,
   then enlarge the single visible image to fill the cellphone frame. */

.relative.h-\[360px\]:has(> img[alt="Put it in the oven"]) > img[alt=""],
.relative.h-\[360px\]:has(> img[alt="Cool it on the counter"]) > img[alt=""],
.relative.h-\[360px\]:has(> img[alt="Pack it for Nina’s"]) > img[alt=""] {
  display: none !important;
}

.relative.h-\[360px\] > img[alt="Put it in the oven"],
.relative.h-\[360px\] > img[alt="Cool it on the counter"],
.relative.h-\[360px\] > img[alt="Pack it for Nina’s"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  transform: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Five-second support break: turn the existing overlay into the actual quiet
   moment scene rather than a generic gradient card. */
.absolute.inset-0.z-\[100\] {
  overflow: hidden !important;
  background-image:
    linear-gradient(rgba(18, 27, 75, 0.18), rgba(18, 27, 75, 0.42)),
    url('/src/assets/game/ch-03/blueberry-burst/Garden-quiet-corner-scene..png') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  backdrop-filter: none !important;
}

.absolute.inset-0.z-\[100\]::before {
  content: '';
  position: absolute;
  inset: 8% 2% 0;
  z-index: 1;
  background-image: url('/src/assets/game/avatar-poses/avatar-quiet-break.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  pointer-events: none;
}

.absolute.inset-0.z-\[100\] > .w-full.max-w-xs {
  position: relative !important;
  z-index: 2 !important;
  align-self: flex-start !important;
  margin-top: 7% !important;
  padding: 14px 16px !important;
  border-color: #f1cf4d !important;
  background: rgba(255, 252, 235, 0.9) !important;
  box-shadow: 0 12px 32px rgba(16, 27, 73, 0.35) !important;
  backdrop-filter: blur(7px) !important;
}

.absolute.inset-0.z-\[100\] > .w-full.max-w-xs > img {
  display: none !important;
}

.absolute.inset-0.z-\[100\] h3 {
  font-size: 1.45rem !important;
  line-height: 1.1 !important;
}

.absolute.inset-0.z-\[100\] .h-24.w-24 {
  width: 74px !important;
  height: 74px !important;
  margin-top: 10px !important;
  font-size: 2.2rem !important;
}

.absolute.inset-0.z-\[100\] p:last-child {
  margin-top: 10px !important;
  font-size: 12px !important;
}
