/* YamYam web swipe demo */
.sd { --sd-orange: #ff6b35; --sd-ink: #2a1d16; --sd-muted: #8a7a6e; --sd-line: #f0e1d4; display: flex; justify-content: center; }
.sd, .sd * { box-sizing: border-box; }
.sd-phone { width: 330px; max-width: 100%; background: #17120e; border-radius: 46px; padding: 10px; box-shadow: 0 40px 70px -30px rgba(60, 20, 0, .65); }
.sd-screen { background: #fff8f2; border-radius: 37px; padding: 16px 14px 14px; color: var(--sd-ink); min-height: 640px; display: flex; flex-direction: column; font-family: inherit; }
.sd-head { display: flex; justify-content: space-between; align-items: center; font-weight: 900; }
.sd-brand { color: var(--sd-orange); font-size: 16px; letter-spacing: -.01em; }
.sd-prog { font-size: 13px; color: var(--sd-muted); font-weight: 700; }
.sd-sub { font-size: 12.5px; color: var(--sd-muted); margin: 2px 0 10px; line-height: 1.3; }
.sd-stage { position: relative; height: 438px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.sd-stage:focus-visible { outline: 3px solid #ffb393; outline-offset: 4px; border-radius: 22px; }
.sd-card { position: absolute; inset: 0; background: #fff; border: 1px solid var(--sd-line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 34px -22px rgba(42, 29, 22, .6); cursor: grab; will-change: transform; transition: transform .26s ease, opacity .26s ease; }
.sd-card.drag { transition: none; cursor: grabbing; }
.sd-photo { position: relative; flex: 0 0 62%; background: linear-gradient(135deg, #ffe0b2, #ffccbc); overflow: hidden; }
.sd-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.sd-body { padding: 11px 14px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; min-height: 0; }
.sd-body h4 { margin: 0; font-size: 18px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sd-by { font-size: 12px; color: var(--sd-muted); font-weight: 600; }
.sd-meta { font-size: 12.5px; color: var(--sd-muted); font-weight: 600; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.sd-tags span { background: #ffe6da; color: #e85a2a; font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 999px; }
.sd-stamp { position: absolute; top: 14px; padding: 2px 10px; border: 3.5px solid; border-radius: 9px; font-weight: 900; font-size: 20px; letter-spacing: 2px; opacity: 0; background: rgba(255, 255, 255, .9); }
.sd-stamp.like { left: 12px; color: #2eb85c; transform: rotate(-12deg); }
.sd-stamp.nope { right: 12px; color: #e23b54; transform: rotate(12deg); }
.sd-actions { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }
.sd-fab { width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; line-height: 1; display: grid; place-items: center; background: #fff; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .35); font-family: inherit; }
.sd-fab.no { color: #e23b54; }
.sd-fab.skip { color: var(--sd-muted); font-size: 19px; }
.sd-fab.yes { background: var(--sd-orange); color: #fff; width: 60px; height: 60px; font-size: 25px; }
.sd-fab:focus-visible, .sd-btn:focus-visible { outline: 3px solid #ffb393; outline-offset: 2px; }
.sd-result[hidden], .sd-stage[hidden], .sd-actions[hidden], .sd-sub[hidden] { display: none; }
.sd-result h3 { margin: 6px 0 2px; font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.sd-lead { font-size: 13px; color: var(--sd-muted); line-height: 1.4; margin: 0 0 8px; }
.sd-pick { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--sd-line); border-radius: 16px; padding: 8px; margin-bottom: 8px; }
.sd-pick-img { width: 84px; height: 72px; object-fit: cover; border-radius: 11px; background: #ffe0b2; display: block; }
.sd-pick-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sd-pick-tx b { font-size: 14.5px; line-height: 1.2; }
.sd-pick-tx span { font-size: 12px; color: var(--sd-muted); font-weight: 600; }
.sd-rk { font-size: 10.5px; font-weight: 800; color: #e85a2a; text-transform: uppercase; letter-spacing: .05em; }
.sd-cta { display: grid; gap: 8px; margin-top: 10px; }
.sd-btn { display: block; text-align: center; font: inherit; font-weight: 800; font-size: 15px; border: 0; border-radius: 999px; padding: 13px 18px; background: var(--sd-orange); color: #fff; cursor: pointer; text-decoration: none; }
.sd-btn.ghost { background: #ffe6da; color: var(--sd-ink); }
@media (prefers-reduced-motion: reduce) { .sd-card { transition: none; } }
@media (max-width: 380px) { .sd-stage { height: 410px; } }

/* onboarding hint (data-hint) */
.sd-card.hint { animation: sdNudge 4.8s ease-in-out 1s 3; }
.sd-card.hint .sd-stamp.like { animation: sdStampR 4.8s ease-in-out 1s 3; }
.sd-card.hint .sd-stamp.nope { animation: sdStampL 4.8s ease-in-out 1s 3; }
.sd-finger { position: absolute; left: 50%; top: 44%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(60, 60, 60, .45); border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); pointer-events: none; z-index: 50; opacity: 0; animation: sdFinger 4.8s ease-in-out 1s 3; }
.sd-pill { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); z-index: 60; background: rgba(23, 18, 14, .8); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: .01em; padding: 7px 14px; border-radius: 999px; white-space: nowrap; pointer-events: none; animation: sdPill 1.8s ease-in-out infinite; }
@keyframes sdNudge {
  0%, 16%, 48%, 52%, 82%, 100% { transform: translate(0, 0) rotate(0); }
  32% { transform: translate(64px, 4px) rotate(5deg); }
  66% { transform: translate(-64px, 4px) rotate(-5deg); }
}
@keyframes sdStampR { 0%, 20%, 44%, 100% { opacity: 0; } 30%, 36% { opacity: 1; } }
@keyframes sdStampL { 0%, 54%, 78%, 100% { opacity: 0; } 64%, 70% { opacity: 1; } }
@keyframes sdFinger {
  0% { opacity: 0; transform: translate(0, 0) scale(1.4); }
  10% { opacity: 1; transform: translate(0, 0) scale(1); }
  32% { opacity: 1; transform: translate(64px, 4px) scale(1); }
  46% { opacity: 1; transform: translate(0, 0) scale(1); }
  66% { opacity: 1; transform: translate(-64px, 4px) scale(1); }
  80% { opacity: 1; transform: translate(0, 0) scale(1); }
  92%, 100% { opacity: 0; transform: translate(0, 0) scale(1.3); }
}
@keyframes sdPill { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .sd-card.hint, .sd-card.hint .sd-stamp, .sd-finger, .sd-pill { animation: none; } .sd-finger { display: none; } }
