/* Tea-house meal: the cooking cutscene plays full screen, then a compact result card sits along the bottom
   so the picture of the full, happy otter stays visible. */
#meal { cursor: default; }
#meal.vid { background-image: url("assets/meal-cook.webp"); }
#meal video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; background: transparent; }
#meal.vid video { display: block; }
#meal.vid .bg { display: none; }
#meal .zzz { display: none; }

#mealSkip { position: absolute; top: 12px; right: calc(12px + var(--safe-r)); display: none; z-index: 2; }
#meal.cook #mealSkip { display: inline-flex; }

#mealChip { position: absolute; left: calc(12px + var(--safe-l)); top: 10px; display: none; align-items: center; gap: 6px; padding: 4px 16px 4px 4px;
  background: rgba(74, 42, 18, .55); border: 3px solid var(--ink); border-radius: 99px; font-size: clamp(14px, 2.6vh, 20px); white-space: nowrap; max-width: 60vw;
  pointer-events: none; }
#meal.cook #mealChip { display: flex; animation: chipIn .35s cubic-bezier(.2, 1.5, .4, 1) both; }
#mealChip .rz-ico { width: clamp(28px, 6vh, 44px); height: clamp(28px, 6vh, 44px); border-radius: 50%; background: rgba(255, 243, 220, .85); border: 2px solid var(--ink); }
#mealChip .rz-ico img { inset: 8%; width: 84%; height: 84%; }
#mealChipTx { overflow: hidden; text-overflow: ellipsis; }
#mealChip .dots i { display: inline-block; animation: dotHop 1.2s ease-in-out infinite; font-style: normal; }
#mealChip .dots i:nth-child(2) { animation-delay: .15s; }
#mealChip .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotHop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-35%); } }
@keyframes chipIn { from { transform: translateX(-30px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* Centred with auto margins (not left:50% + translate) so the card may grow to the full width before wrapping. */
#mealDone { position: absolute; left: 0; right: 0; margin: 0 auto; width: fit-content; bottom: 3.5vh; display: none; align-items: center; gap: 1.6vh;
  padding: .9vh 1.2vh .9vh .9vh; max-width: min(92vw, 150vh); background: rgba(255, 243, 220, .9); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 5px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .6); cursor: pointer; pointer-events: auto; }
#meal.done #mealDone { display: flex; animation: mealUp .45s cubic-bezier(.2, 1.5, .4, 1) both; }
#meal.done { cursor: pointer; }
@keyframes mealUp { from { transform: translateY(160%); } to { transform: none; } }
#mealDone .rz-ico { flex: none; width: clamp(46px, 12vh, 92px); height: clamp(46px, 12vh, 92px); border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, .95), rgba(255, 210, 120, .6) 60%, rgba(255, 210, 120, 0) 72%);
  animation: icoPop .5s cubic-bezier(.2, 1.7, .4, 1) .25s both; }
#mealDone .rz-ico img { inset: 8%; width: 84%; height: 84%; }
@keyframes icoPop { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.md-tx { display: flex; flex-direction: column; gap: .3vh; min-width: 0; }
#meal #mealText { position: static; transform: none; width: auto; text-align: left; font-size: clamp(18px, 4vh, 32px); line-height: 1.15; }
#meal #mealBuff { position: static; transform: none; padding: 0; background: none; border: 0; border-radius: 0; animation: none; white-space: normal;
  display: flex; align-items: center; gap: .4em; font-size: clamp(14px, 2.7vh, 21px); color: var(--teal2); line-height: 1.2; }
#meal #mealBuff::before { content: "▲"; font-size: .8em; color: var(--green); text-shadow: 0 1px 0 var(--ink); flex: none; }
#meal #mealTap { position: static; transform: none; flex: none; margin-left: .6vh; font-size: clamp(14px, 2.6vh, 20px); white-space: nowrap; padding: .45em 1.1em;
  min-height: 44px; display: flex; align-items: center;
  border-radius: 99px; background: linear-gradient(#ffb66c, #e8603a); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); animation: pulse 1.6s infinite; }
