/* MEAL FX V3 — ефекти при додавање храна */
.p3fx-fly {
  position: fixed; z-index: 99990; pointer-events: none; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 3px rgba(212,175,95,.85);
  will-change: transform, opacity;
}
.p3fx-dot { position: fixed; z-index: 99991; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; background: #E9C77D; box-shadow: 0 0 10px rgba(233,199,125,.9); }
.p3fx-plus {
  position: fixed; z-index: 99992; pointer-events: none; transform: translate(-50%, 0);
  padding: 6px 12px; border-radius: 14px; background: #D4AF5F; color: #0A1424;
  font: 800 13px/1 var(--pp-font, 'Manrope', sans-serif); box-shadow: 0 8px 22px -6px rgba(212,175,95,.7);
  animation: p3fxPlus 1.25s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes p3fxPlus { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 18% { opacity: 1; transform: translate(-50%, -8px) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -34px); } }

/* прстенот „пулсира“ кога ќе слета храната */
.v2-ring.p3fx-pulse { animation: p3fxPulse .7s cubic-bezier(.2,.8,.2,1); }
.v2-ring.p3fx-pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(212,175,95,.7); animation: p3fxHalo .8s ease-out forwards; pointer-events: none; }
.v2-ring { position: relative; }
@keyframes p3fxPulse { 0% { transform: scale(1); } 35% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes p3fxHalo { from { opacity: 1; transform: scale(.92); } to { opacity: 0; transform: scale(1.25); } }

/* мал прстен горе (кога големиот не е на екран) */
#p3fxMini {
  position: fixed; z-index: 99980; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 66px);
  transform: translate(-50%, -16px) scale(.9); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 30px;
  background: rgba(17,31,53,.96); border: 1px solid rgba(212,175,95,.35); box-shadow: 0 14px 34px rgba(0,0,0,.5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s ease; font-family: var(--pp-font, 'Manrope', sans-serif);
}
#p3fxMini.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
#p3fxMini b { display: block; color: #F2F4F8; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
#p3fxMini small { color: #8C9AB3; font-size: 11.5px; font-weight: 600; }

/* копчињата за избор — мек притисок */
.pp-food-selection { transition: transform .12s ease, background-color .25s ease, color .25s ease !important; }
.pp-food-selection:active { transform: scale(.96); }
.app-meal-card { transition: border-color .3s ease, box-shadow .3s ease; }
.app-meal-card:has(.css-meal-chk:checked) { box-shadow: 0 0 0 1px rgba(212,175,95,.55), 0 14px 30px -14px rgba(212,175,95,.35) !important; }
@media (prefers-reduced-motion: reduce) { .p3fx-plus, .v2-ring.p3fx-pulse, .v2-ring.p3fx-pulse::after { animation: none !important; } }
