/* Website copy of the app's app-motion.css + app-photos.css (scope .mo instead of .app-shell). Change both together.
   Web: full-page slide rules are left out because detail and chat open as pop-up sheets. */
/* Short, interruptible transitions; no artificial delay on content or actions. */
.mo .sheet-bg.motion-leaving{display:flex;pointer-events:none}
.mo body:has(.sheet-bg.motion-leaving){overflow:hidden}
.mo :is(button,.card,.app-menu){-webkit-tap-highlight-color:transparent}
.mo :is(button,.app-menu){transition:transform .16s ease,background-color .18s ease,color .18s ease}
.mo :is(button,.app-menu):active{transform:scale(.97)}
.mo .card:active .thumb{transform:scale(.985)}
.mo .thumb{background:#eef0f2;transition:transform .2s ease;overflow:hidden}
.mo .d-gal{background:#eef0f2}
.mo :is(#list,.d-gal,.pa-grid,.chat-photo,.cm-photos,.cm-post) img:not([data-photo-ready]){visibility:hidden}
.mo .d-gal .photo-loading{display:grid;place-items:center;background:#eef0f2;color:#737c88;font-size:13px}
.mo .sheet-bg :is(.detail-shell,.sheet){backface-visibility:hidden;-webkit-backface-visibility:hidden}
.mo .app-nav button[aria-selected=true]>span:first-child{animation:motori-tab-pop .32s cubic-bezier(.22,1,.36,1)}
.mo :is(.fav-btn,.d-fav)[aria-pressed=true] svg{animation:motori-heart .32s ease-out}
#motoriStartup .startup-brand{animation:motori-brand-in .55s cubic-bezier(.22,1,.36,1) both}
@keyframes motori-brand-in{from{opacity:0;transform:translateY(12px) scale(.95)}to{opacity:1;transform:none}}
@keyframes motori-tab-pop{0%{transform:translateY(3px) scale(.9)}60%{transform:translateY(-2px) scale(1.04)}100%{transform:none}}
@keyframes motori-heart{0%{transform:scale(.8)}55%{transform:scale(1.17)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){
 .mo :is(button,.app-menu,.thumb){transition:none}
 .mo :is(button,.app-menu):active,.mo .card:active .thumb{transform:none}
 .mo .app-nav button[aria-selected=true]>span:first-child,.mo :is(.fav-btn,.d-fav)[aria-pressed=true] svg,#motoriStartup .startup-brand{animation:none}
}
.mo [data-photo-pending]{position:relative;background:#f1f4f8}
.mo [data-photo-pending]::before,.motori-wait-car{content:"";display:block;width:44px;height:32px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 44'%3E%3Cpath d='M10 21l7-13h26l10 13 6 4v11H5V25z' fill='%237b8df5'/%3E%3Cpath d='M21 12h18l7 10H16z' fill='%23e9efff'/%3E%3Ccircle cx='16' cy='35' r='6' fill='%23475177'/%3E%3Ccircle cx='48' cy='35' r='6' fill='%23475177'/%3E%3Ccircle cx='10' cy='27' r='2' fill='white'/%3E%3Ccircle cx='53' cy='27' r='2' fill='white'/%3E%3C/svg%3E");animation:motori-car-bob 1.2s ease-in-out infinite}
.mo [data-photo-pending]::before{position:absolute;left:calc(50% - 22px);top:calc(50% - 16px);pointer-events:none;z-index:1}
.motori-wait{display:flex;align-items:center;flex-direction:column;gap:9px;color:#7a8497;font-size:12px;letter-spacing:-.02em}
.motori-wait-dots{color:#F5D089;letter-spacing:5px;animation:motori-wait-dots 1.2s ease-in-out infinite}
@keyframes motori-car-bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
@keyframes motori-wait-dots{0%,100%{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.mo [data-photo-pending]::before,.motori-wait-car,.motori-wait-dots{animation:none}}
/* Loading outlines with a soft sweep, and pressed items dim briefly like a native list. */
.mo .cm-skel{display:grid;gap:22px;padding:14px 0}
.mo .cm-skel-grid{grid-template-columns:1fr 1fr;gap:16px 10px}
.mo .cm-skel :is(.cm-skel-row,.cm-skel-post,.cm-skel-tile){display:grid;gap:9px}
.mo .cm-skel i{display:block;height:13px;border-radius:7px}
.mo .cm-skel .sk-line.short{width:34%}
.mo .cm-skel .sk-line.mid{width:68%}
.mo .cm-skel .sk-photo{height:auto;aspect-ratio:1;border-radius:12px}
.mo .cm-skel .sk-block{height:180px;border-radius:12px;margin-top:6px}
.mo .cm-skel i,.mo [data-photo-pending]{background:#e8eaf1 linear-gradient(105deg,#ffffff00 0%,#ffffff00 40%,#ffffffd9 50%,#ffffff00 60%,#ffffff00 100%) 0 0/250% 100% no-repeat;animation:motori-sweep .85s ease-in-out infinite}
/* Light runs left to right; every bar shares the page clock so the sweep reads as one wave. */
.mo .cm-skel i,.mo [data-photo-pending]{background-attachment:fixed}
@keyframes motori-sweep{from{background-position:115% 0}to{background-position:-15% 0}}
.mo .cm-skel .sk-media{grid-template-columns:58px 1fr;gap:12px;align-items:center}
.mo .cm-skel .sk-media>span{display:grid;gap:9px}
.mo .cm-skel .sk-thumb{width:58px;height:58px;border-radius:14px}
.mo :is(.card,.cm-pc,.cm-tile,.chat-item,.cm-notice,.cm-owner-link button){-webkit-tap-highlight-color:transparent;transition:opacity .14s ease}
.mo :is(.card,.cm-pc,.cm-tile,.chat-item,.cm-notice,.cm-owner-link button):active:not(:has(button:active)){opacity:.55}
@media(prefers-reduced-motion:reduce){.mo .cm-skel i,.mo [data-photo-pending]{animation:none}.mo :is(.card,.cm-pc,.cm-tile,.chat-item,.cm-notice){transition:none}}
/* 예시 글: same quiet badge as 예시 매물 in the car list. */
.mo .cm-ex{display:inline-flex;align-items:center;margin-right:6px;padding:2px 7px;border-radius:6px;background:#15253bcc;color:#fff;font-size:10.5px;font-weight:700;letter-spacing:0;line-height:1.4;vertical-align:1px}
.mo .cm-tile-photo{position:relative}
.mo .cm-tile-photo>.cm-ex{position:absolute;left:8px;top:8px;z-index:2;margin:0}
.mo .cm-tile-ph{position:absolute;inset:0;display:grid;place-items:center;color:#b3bccb;background:#eef1f6}
.mo .cm-tile-ph .cm-ic{width:40px;height:40px}

/* 크게 보기: wait for the original photo instead of stretching the 360px list thumbnail. */
.mo #list img[data-hires=wait]{visibility:hidden}
.mo #list .thumb:has(>img[data-hires=wait]){position:relative;background:#f1f4f8}
.mo #list .thumb:has(>img[data-hires=wait])::before{content:"";position:absolute;left:calc(50% - 22px);top:calc(50% - 16px);width:44px;height:32px;pointer-events:none;z-index:1;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 44'%3E%3Cpath d='M10 21l7-13h26l10 13 6 4v11H5V25z' fill='%237b8df5'/%3E%3Cpath d='M21 12h18l7 10H16z' fill='%23e9efff'/%3E%3Ccircle cx='16' cy='35' r='6' fill='%23475177'/%3E%3Ccircle cx='48' cy='35' r='6' fill='%23475177'/%3E%3Ccircle cx='10' cy='27' r='2' fill='white'/%3E%3Ccircle cx='53' cy='27' r='2' fill='white'/%3E%3C/svg%3E");animation:motori-car-bob 1.2s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.mo #list .thumb:has(>img[data-hires=wait])::before{animation:none}}

/* Full-screen photo viewer: black, edge to edge, swipe between photos. */
#motoriViewer{position:fixed;inset:0;z-index:1000;background:#000;display:flex;flex-direction:column;touch-action:pan-x pan-y}
#motoriViewer[hidden]{display:none}
html.mv-open,html.mv-open body{overflow:hidden}
#motoriViewer .mv-track{flex:1;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
#motoriViewer .mv-track::-webkit-scrollbar{display:none}
#motoriViewer .mv-slide{flex:0 0 100%;height:100%;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;scroll-snap-stop:always;overflow:hidden}
#motoriViewer .mv-slide[data-zoom=on]{touch-action:none}
#motoriViewer .mv-slide img{width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transform-origin:center;will-change:transform}
#motoriViewer .mv-close{position:absolute;z-index:2;left:max(12px,env(safe-area-inset-left));top:calc(env(safe-area-inset-top) + 12px);width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:22px;background:transparent;color:#fff}
#motoriViewer .mv-close svg{width:26px;height:26px;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;fill:none;filter:drop-shadow(0 1px 2px #0008)}
#motoriViewer .mv-dots{position:absolute;left:0;right:0;bottom:calc(env(safe-area-inset-bottom) + 22px);display:flex;justify-content:center;gap:8px;pointer-events:none}
#motoriViewer .mv-dots i{width:7px;height:7px;border-radius:50%;background:#ffffff59}
#motoriViewer .mv-dots i.on{background:#fff}
#motoriViewer .mv-count{color:#fff;font:600 13px -apple-system,BlinkMacSystemFont,sans-serif;background:#ffffff26;border-radius:12px;padding:5px 11px}
