/* Entry motion is cosmetic. The route, focus and scroll state already changed. */
[data-dining-motion] { animation-duration: 210ms; animation-timing-function: cubic-bezier(.2,.7,.2,1); animation-fill-mode: both; }
[data-dining-motion="route-forward"], [data-dining-motion="dialog-forward"] { animation-name: dining-enter-forward; }
[data-dining-motion="route-back"], [data-dining-motion="dialog-back"] { animation-name: dining-enter-back; }
[data-dining-motion="route-up"], [data-dining-motion="dialog-up"] { animation-name: dining-enter-up; }
[data-dining-motion="route-fade"], [data-dining-motion="dialog-fade"] { animation-name: dining-enter-fade; }
@keyframes dining-enter-forward { from { opacity: .55; transform: translate3d(28px,0,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes dining-enter-back { from { opacity: .6; transform: translate3d(-22px,0,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes dining-enter-up { from { opacity: .55; transform: translate3d(0,26px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes dining-enter-fade { from { opacity: .65; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-dining-motion] { animation: none !important; transform: none !important; }
}
/* The bar is decorative; the 44px noninteractive surface is the touch target. */
.motion-handle { display:flex; align-items:center; justify-content:center; flex:0 0 44px; width:min(160px,60%); min-height:44px; margin:-16px auto 0; user-select:none; -webkit-user-select:none; cursor:grab; }
.motion-handle::before { content:""; width:36px; height:4px; border-radius:999px; background:currentColor; opacity:.26; }
#discover-search-dialog > .motion-handle { margin:0 auto; }
.motion-handle + .discover-search-header { padding-top:0; }

@media(min-width:900px){#detail.search-detail-fullscreen{inset:0;margin:auto;width:min(760px,90vw);height:min(88dvh,900px);max-height:88dvh;border-radius:22px;padding:24px 32px 32px}}

/* Keep food-detail surfaces opaque during entry; content motion is independent.
   The priority intentionally overrides opacity in the shared keyframes. */
#detail.food-detail[data-dining-motion] { opacity: 1 !important; }
