/* Floating food icons: purely background, always behind the page and never clickable. */
/* The layer is as tall as the screen with the phone's address bar hidden (100lvh) and never changes size, so the icons
   do not jump or bounce when the address bar slides in and out while scrolling. */
#oml-bg-icons { height: 100vh; height: 100lvh; left: 0; overflow: hidden; pointer-events: none; position: fixed; right: 0; top: 0; z-index: -1; }
.oml-bg-icon { animation: oml-bg-rise linear infinite; bottom: -90px; line-height: 0; position: absolute; will-change: transform, opacity; }
.oml-bg-icon svg { display: block; height: 100%; width: 100%; }
@keyframes oml-bg-rise {
	0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); }
	10% { opacity: var(--bg-opacity, 0.35); }
	90% { opacity: var(--bg-opacity, 0.35); }
	100% { opacity: 0; transform: translate(var(--bg-sway, 20px), -118vh) rotate(10deg); }
}
/* Same journey measured against the fixed-height layer, where the browser supports it. */
@supports (height: 100lvh) {
	@keyframes oml-bg-rise {
		0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); }
		10% { opacity: var(--bg-opacity, 0.35); }
		90% { opacity: var(--bg-opacity, 0.35); }
		100% { opacity: 0; transform: translate(var(--bg-sway, 20px), -118lvh) rotate(10deg); }
	}
}

/* Frosted glass over the icons, so they blur softly as they pass behind a card. */
body.oml-has-bg-icons .oml-card,
body.oml-has-bg-icons .oml-auth__panel { backdrop-filter: blur(3px) saturate(1.3); -webkit-backdrop-filter: blur(3px) saturate(1.3); background: rgba(255, 255, 255, 0.4); }
/* The big logo block on the home page: see-through too. */
body.oml-has-bg-icons .home-hero__mark { backdrop-filter: blur(3px) saturate(1.3); -webkit-backdrop-filter: blur(3px) saturate(1.3); background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.5); }
body.oml-has-bg-icons .oml-auth { background: transparent; }
/* The kitchen dashboard: the name card and the four buttons are frosted too, so the icons show through. */
body.oml-has-bg-icons .oml-vendor-home__header,
body.oml-has-bg-icons .oml-vendor-home__card { backdrop-filter: blur(3px) saturate(1.3); -webkit-backdrop-filter: blur(3px) saturate(1.3); background: rgba(255, 255, 255, 0.55); }
@media (prefers-reduced-motion: reduce) { #oml-bg-icons { display: none; } }
