/* ── Quick taste strip (story rings) ── */
.swipe-strip-wrap { margin: 4px 0 20px; }
.swipe-strip-wrap[hidden] { display: none; }
.swipe-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-inline: 2px; }
.swipe-strip-title { font-weight: 800; font-size: 16px; }
.swipe-strip-hint { font-size: 12px; color: var(--text-secondary); }
.swipe-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.swipe-strip::-webkit-scrollbar { display: none; }
.swipe-story {
    flex: 0 0 auto; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-primary); scroll-snap-align: start;
}
.swipe-ring {
    width: 70px; height: 70px; border-radius: 50%; padding: 3px; display: block;
    background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #feda75);
    transition: transform .2s;
}
.swipe-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--bg-dark); }
.swipe-story:hover .swipe-ring { transform: scale(1.06); }
.swipe-story:focus-visible { outline: none; }
.swipe-story:focus-visible .swipe-ring { box-shadow: 0 0 0 3px var(--brand-gold); }
.swipe-story-name { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }

/* ── Full-screen viewer ── */
.swipe-viewer {
    position: fixed; inset: 0; z-index: 2000; display: none; flex-direction: column;
    background: #000; color: #fff; padding: max(10px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
}
.swipe-viewer.open { display: flex; animation: swipeIn .25s ease; }
.swipe-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.swipe-progress { flex: 1; display: flex; gap: 3px; }
.swipe-progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.swipe-progress i.now { background: #fff; }
.swipe-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; cursor: pointer; }
.swipe-stage { flex: 1; position: relative; min-height: 0; display: grid; place-items: center; }
.swipe-card {
    position: absolute; inset: 0; margin: auto; width: min(100%, 480px); border-radius: 22px; overflow: hidden;
    background: #111 center / cover no-repeat; box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    touch-action: pan-y; user-select: none; cursor: grab; transition: transform .25s ease;
    --like: 0; --pass: 0;
}
.swipe-card:active { cursor: grabbing; }
.swipe-card::after { /* tint follows the drag */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(230, 57, 70, calc(var(--pass) * .35)), transparent 40%, transparent 60%, rgba(46, 196, 106, calc(var(--like) * .35)));
}
.swipe-stamp {
    position: absolute; top: 28px; z-index: 2; padding: 6px 14px; border: 4px solid; border-radius: 10px;
    font: 900 26px/1 system-ui, sans-serif; letter-spacing: 2px; pointer-events: none;
}
.stamp-like { left: 22px; color: #2ec46a; transform: rotate(-14deg); opacity: var(--like); }
.stamp-pass { right: 22px; color: #e63946; transform: rotate(14deg); opacity: var(--pass); }
.swipe-info {
    position: absolute; inset: auto 0 0 0; z-index: 1; padding: 60px 18px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}
.swipe-resto { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swipe-rating { font-size: 13px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.swipe-dish { margin-top: 4px; font-weight: 600; }
.swipe-caption { margin: 8px 0 0; font-size: 14px; line-height: 1.6; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swipe-user { display: inline-block; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); text-decoration: none; }
.swipe-user span { text-decoration: underline; }
.swipe-controls { display: flex; justify-content: center; gap: 36px; padding-top: 14px; }
.swipe-controls[hidden] { display: none; }
.swipe-btn {
    width: 66px; height: 66px; border-radius: 50%; border: 0; cursor: pointer; font-size: 28px; line-height: 1;
    background: #1c1c1c; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); transition: transform .15s;
}
.swipe-btn:active { transform: scale(.88); }
.swipe-btn:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 3px; }
.swipe-pass { color: #e63946; }
.swipe-like { color: #2ec46a; }
.swipe-end { text-align: center; padding: 24px; }
.swipe-end-emoji { font-size: 64px; margin-bottom: 12px; }
.swipe-end h3 { font-size: 22px; margin-bottom: 6px; }
.swipe-end p { color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
@keyframes swipeIn { from { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .swipe-card, .swipe-viewer.open { transition: none; animation: none; } }

/* Grid/flex items default to min-width:auto, so the wide story strip would push the feed column off-screen. */
.feed-column, .swipe-strip-wrap { min-width: 0; }
.swipe-strip-hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
