/* End-of-hand swipe card (app.js showSwipePop). Big, centred over the frozen table; drag = follows the finger / mouse,
   tilts, tints red (left) / green (right); commit → "Later, gator!" fling or ♥ "Kept" pulse. All motion < 900 ms;
   prefers-reduced-motion: no fling / tilt / pulse (stamps still show). Team colours: N–S #5AB4FF, E–W #FFB547 (.team-*). */
.swp-back { position: fixed; inset: 0; top: var(--hdr-h, 56px); z-index: 30; display: flex; align-items: flex-start; justify-content: center; padding: 10px 12px 12px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.62)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
/* starts under the nav bar (never over it); a card taller than the space scrolls instead of sliding under the nav */ /* no fade: the swipe card inside never turns translucent */
.swp-back[hidden] { display: none; }
.swp-wrap { margin-block: auto; width: min(94vw, 420px); display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.swp-card { position: relative; box-sizing: border-box; width: 100%; padding: 18px 18px 14px; border-radius: 24px; outline: none;
  background: linear-gradient(180deg, #2a2d33 0%, #15171b 100%); border: 2px solid #9aa0a8; color: #f1f3f5;
  box-shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  translate: var(--sw-x, 0) var(--sw-y, 0); rotate: var(--sw-r, 0deg); animation: swpIn .26s cubic-bezier(.2,1.3,.4,1); }
.swp-tint { position: absolute; inset: 0; border-radius: 22px; pointer-events: none; opacity: 0; transition: opacity .12s; }
.swp-card.sw-drag[data-swdir="leave"] .swp-tint { background: #ff4d4d; opacity: calc(var(--sw-p, 0) * .42); }
.swp-card.sw-drag[data-swdir="keep"] .swp-tint { background: #3fd877; opacity: calc(var(--sw-p, 0) * .42); }
.swp-card.sw-armed[data-swdir="leave"] { border-color: #ff6b6b; }
.swp-card.sw-armed[data-swdir="keep"] { border-color: #5ee08a; }
.swp-ghost { position: absolute; top: 46%; padding: 4px 12px; border: 4px solid currentColor; border-radius: 10px; font: 900 1.6rem/1.1 system-ui, sans-serif;
  letter-spacing: .02em; text-transform: uppercase; opacity: 0; pointer-events: none; white-space: nowrap; }
.swp-ghost.l { right: 14px; color: #ff6b6b; rotate: 12deg; }
.swp-ghost.r { left: 14px; color: #5ee08a; rotate: -12deg; }
.swp-card.sw-drag[data-swdir="leave"] .swp-ghost.l, .swp-card.sw-drag[data-swdir="keep"] .swp-ghost.r { opacity: var(--sw-p, 0); }
.swp-ring { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; rotate: -90deg; }
.swp-ring circle { fill: none; stroke-width: 3.2; }
.swp-ring .trk { stroke: rgba(255,255,255,.14); }
.swp-ring .arc { stroke: #dfe3e8; stroke-dasharray: 97.4; stroke-dashoffset: 0; stroke-linecap: round; }
.swp-ring .arc.run { animation: swpCount 8s linear forwards; }
.swp-ring .arc.stop { animation-play-state: paused; }
.swp-title { font-size: .85rem; color: #a9b0b8; font-weight: 600; margin: 0 40px 10px 0; }
.swp-scores { display: grid; gap: 6px; }
.swp-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: baseline; column-gap: 10px; }
.swp-row .who { font-weight: 700; font-size: 1rem; }
.swp-row .pts { grid-row: 1 / 3; grid-column: 2; font-size: 2.6rem; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; align-self: center; }
.swp-row .rk { font-size: .9rem; color: #dfe3e8; }
.swp-row .rk small { margin-left: 2px; color: #a9b0b8; font-size: .8rem; }
.swp-row.opp .pts { font-size: 1.8rem; }
.swp-row.opp .who { font-size: .92rem; }
.swp-row.team-ns .who, .swp-row.team-ns .pts { color: #5AB4FF; } .swp-row.team-ew .who, .swp-row.team-ew .pts { color: #FFB547; }
.swp-row.team-ns, .swp-row.team-ew { color: #f1f3f5 !important; }
.swp-partner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); }
.swp-av { --t: #888; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; border: 3px solid var(--t); background: #1d2024; }
.swp-jack { flex: none; width: 64px; height: 64px; display: none; }
.swp-jack img { width: 64px; height: 64px; display: block; }
.no-avatars .swp-av { display: none; } .no-avatars .swp-jack { display: block; }
.swp-pt { display: flex; flex-direction: column; min-width: 0; }
.swp-pt small { color: #a9b0b8; font-size: .78rem; }
.swp-pt b { font-size: 1.45rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swp-bt { font-size: .95rem; color: #f1f3f5; }
.swp-sess { margin-top: 10px; display: grid; gap: 2px; font-size: .82rem; color: #a9b0b8; min-height: 2.4em; }
.swp-sl { display: flex; gap: 8px; align-items: baseline; }
.swp-sl > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swp-sl i { font-style: normal; color: #dfe3e8; }
.swp-sl b { color: #f1f3f5; font-weight: 700; }
.swp-stamp { position: absolute; left: 50%; top: 42%; translate: -50% -50%; rotate: -12deg; padding: 6px 16px; border: 5px solid currentColor; border-radius: 12px;
  font: 900 1.9rem/1.05 system-ui, sans-serif; text-transform: uppercase; white-space: normal; width: max-content; max-width: 84%; text-align: center; opacity: 0; pointer-events: none; background: #0a0b0d; }
.swp-heart { position: absolute; left: 50%; top: 18%; translate: -50% -50%; font-size: 4rem; color: #5ee08a; opacity: 0; pointer-events: none; }
.swp-help { margin: 0; text-align: center; font-size: .85rem; color: #dfe3e8; text-shadow: 0 1px 2px #000; }
.swp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swp-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 10px 8px; border-radius: 18px; font-size: 1.15rem; cursor: pointer;
  background: linear-gradient(180deg, #2a2d33, #15171b); color: #f1f3f5; border: 2px solid; }
.swp-btn small { font-size: .75rem; color: #a9b0b8; font-weight: 500; }
.swp-btn.left { border-color: #ff6b6b; } .swp-btn.left b { color: #ff8a8a; }
.swp-btn.right { border-color: #5ee08a; } .swp-btn.right b { color: #7ef0a4; }
.swp-btn:disabled { opacity: .55; cursor: default; }
.swp-btn:not(:disabled):active { scale: .97; }
.swp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: #dfe3e8; text-shadow: 0 1px 2px #000; }
.swp-done { padding: 8px 16px; border-radius: 999px; border: 1px solid #e6e9ed; background: #3a4048; color: #fff; font-weight: 800; font-size: .95rem; min-height: 40px; cursor: pointer; text-decoration: none; } /* Leave table: a real button (22 Oct 2026) */
.swp-done:disabled { opacity: 1; background: #2a2f36; color: #c9ced4; cursor: default; }
/* commit: left = shake → fling off-screen + "Later, gator!"; right = back to centre, green glow, heart pulse + stamp */
.swp-card.go-left .swp-stamp, .swp-card.go-right .swp-stamp { opacity: 1; animation: swpStamp .16s ease-out both; }
.swp-card.go-left .swp-stamp { color: #ff5a5a; }
.swp-card.go-right .swp-stamp { color: #5ee08a; rotate: -8deg; }
.swp-card.go-left { animation: swpFling .78s cubic-bezier(.55,0,.85,.35) forwards; border-color: #ff6b6b; }
.swp-card.go-right { animation: swpKeep .82s ease-out forwards; border-color: #5ee08a; }
.swp-card.go-right .swp-heart { animation: swpHeart .7s ease-out forwards; }
.swp-card.go-left .swp-tint { background: #ff4d4d; opacity: .3; } .swp-card.go-right .swp-tint { background: #3fd877; opacity: .22; }
@keyframes swpIn { from { scale: .86; } } /* scale only: the card never fades */
@keyframes swpCount { to { stroke-dashoffset: 97.4; } }
@keyframes swpStamp { from { scale: 1.7; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes swpFling {
  0% { translate: var(--sw-x, 0) var(--sw-y, 0); rotate: var(--sw-r, 0deg); }
  10% { translate: calc(var(--sw-x, 0px) + 12px) var(--sw-y, 0); rotate: calc(var(--sw-r, 0deg) + 3deg); }
  20% { translate: calc(var(--sw-x, 0px) - 12px) var(--sw-y, 0); rotate: calc(var(--sw-r, 0deg) - 3deg); }
  32% { translate: calc(var(--sw-x, 0px) + 6px) var(--sw-y, 0); rotate: var(--sw-r, 0deg); }
  55% { translate: calc(var(--sw-x, 0px) - 10px) var(--sw-y, 0); rotate: var(--sw-r, 0deg); }
  100% { translate: -135vw 60px; rotate: -32deg; } }
@keyframes swpKeep {
  0% { translate: var(--sw-x, 0) var(--sw-y, 0); rotate: var(--sw-r, 0deg); box-shadow: 0 18px 50px rgba(0,0,0,.6); }
  30% { translate: 0 0; rotate: 0deg; scale: 1.04; box-shadow: 0 0 0 4px #5ee08a, 0 0 48px rgba(94,224,138,.75); }
  60% { scale: 1; box-shadow: 0 0 0 3px #5ee08a, 0 0 36px rgba(94,224,138,.6); }
  100% { translate: 0 0; rotate: 0deg; scale: 1.02; box-shadow: 0 0 0 3px #5ee08a, 0 0 56px rgba(94,224,138,.8); } }
@keyframes swpHeart { 0% { opacity: 0; scale: .3; } 25% { opacity: 1; scale: 1.35; } 45% { scale: .95; } 65% { scale: 1.25; } 100% { opacity: 1; scale: 1; } }
@media (max-height: 700px) { .swp-row .pts { font-size: 2.1rem; } .swp-row.opp .pts { font-size: 1.5rem; } .swp-partner { margin-top: 10px; padding: 8px; } .swp-av, .swp-jack, .swp-jack img { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) {
  .swp-back, .swp-card, .swp-card.go-left, .swp-card.go-right, .swp-card.go-right .swp-heart, .swp-card .swp-stamp { animation: none !important; }
  .swp-card.sw-drag { rotate: 0deg; }
  .swp-card.go-left { translate: 0 0; rotate: 0deg; }
  .swp-card.go-right { translate: 0 0; rotate: 0deg; box-shadow: 0 0 0 3px #5ee08a, 0 0 36px rgba(94,224,138,.6); }
  .swp-card.go-right .swp-heart { opacity: 1; }
}
/* the next-hand outcome under the card (app.js popStatus): "Waiting on partner…" → "Staying together" / "New partner next hand" */
.swp-status { margin: 0; padding: 10px 12px; border-radius: 14px; text-align: center; font-weight: 800; font-size: 1.1rem; background: #1d2024; color: #f1f3f5; border: 2px solid #9aa0a8; }
.swp-status[hidden] { display: none; }
.swp-status.stay { border-color: #5ee08a; color: #7ef0a4; }
.swp-status.new { border-color: #ffb547; color: #ffcf85; }
/* intermission stage 1 (user, 21 Oct 2026): the results card alone (your team vs the opponents + DoD session scores),
   then the swipe (partner, buttons, drag) takes over the same card */
.swp-back.stage-result .swp-partner, .swp-back.stage-result .swp-help, .swp-back.stage-result .swp-btns,
.swp-back.stage-result .swp-ghost, .swp-back.stage-result .swp-ring, .swp-back.stage-result .swp-done { display: none; }
.swp-back.stage-result .swp-card { cursor: default; }
.swp-back.stage-result .swp-scores { gap: 12px; padding: 6px 0 4px; }
.swp-back.stage-result .swp-row .pts { font-size: 3.2rem; }
.swp-back.stage-result .swp-row.opp .pts { font-size: 2.4rem; }
.swp-back.stage-result .swp-sess { font-size: .95rem; margin-top: 14px; }
.swp-sl.swp-ss b.pos { color: #59d98e; } .swp-sl.swp-ss b.neg { color: #ff7a7a; }
.swp-sl.swp-ss b { font-size: 1.05rem; }
/* 90 s intermission (user, 21 Oct 2026): the table is cleared under the card; the countdown, Ready and the swipe share the card */
#felt.felt-clear .trick .slot > *, #felt.felt-clear .hand > *, #felt.felt-clear .last-trick, #felt.felt-clear .card, #felt.felt-clear [data-card] { display: none !important; }
.swp-next { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .95rem; }
.swp-ready { padding: 8px 18px; border-radius: 999px; border: 1px solid #e6e9ed; background: var(--chrome, linear-gradient(180deg, #f4f6f8, #b9bfc6)); color: #111; font-weight: 800; font-size: .95rem; cursor: pointer; }
.swp-ready[aria-pressed="true"] { background: #2a6b3d; color: #fff; border-color: #5ee08a; cursor: default; }
.swp-card.settled-left { border-color: #ff6b6b; }
.swp-card.settled-left .swp-stamp { opacity: 1; color: #ff5a5a; }
.swp-card.settled-left .swp-tint { background: #ff4d4d; opacity: .18; }

/* milestones: chips under the results card (Oct 21 2026: a toast used to cover the team result line) */
.swp-miles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.swp-miles[hidden] { display: none; }
.swp-mile { padding: 6px 12px; border-radius: 999px; background: linear-gradient(180deg, #f1f3f5, #c9ced4); color: #111; font-weight: 700; font-size: .85rem; box-shadow: 0 4px 12px rgba(0,0,0,.45); animation: swpIn .26s ease-out; }

/* layout groups: the card + its milestone chips, and everything else. Phones: one column (as before). Wide but short
   screens (tablet landscape, 1024x640): two columns so the whole card fits under the nav bar without scrolling. */
.swp-main, .swp-side { display: contents; }
.swp-back { scrollbar-width: thin; }
@media (min-width: 760px) and (max-height: 760px) {
  .swp-wrap { width: min(94vw, 860px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .swp-main, .swp-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
}
@media (max-height: 700px) and (max-width: 759px) { .swp-help { display: none; } .swp-btn { min-height: 52px; padding: 6px 8px; } }
.swp-save { padding: 8px 14px; border-radius: 999px; border: 1px solid #8e959e; background: rgba(0,0,0,.35); color: #f1f3f5; font-weight: 800; font-size: .95rem; cursor: pointer; min-height: 40px; }
.swp-save.on, .fav-save.on { color: #ffd400; border-color: #ffd400; }

/* DoD end of hand, two slides in ONE spot (user, 21 Oct 2026 8:04-8:05 PM ET): both slides share a grid cell, so the
 * card is sized for the larger one from the start and flipping is a fade, never a jump. Slide 1 (stage-result): the
 * hand's outcome; the rest of the card (partner, swipe, Save, BRB) keeps its space but stays invisible until slide 2. */
.swp-slides { display: grid; margin: 4px 0 2px; }
.swp-slide { grid-area: 1 / 1; transition: opacity .35s ease; }
.swp-back:not(.s1-on) .swp-slide.s1, .swp-back.s1-on .swp-slide.s2 { opacity: 0; visibility: hidden; pointer-events: none; }
.swp-back.dod-slides .swp-scores { display: none; }
.swp-dots { display: flex; justify-content: center; gap: 2px; margin: 2px 0 4px; }
.swp-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.swp-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6b7179; }
.swp-back.s1-on .swp-dots [data-s="1"]::before, .swp-back:not(.s1-on) .swp-dots [data-s="2"]::before { background: #f1f3f5; }
.swp-back:not(.dod-slides) .swp-slides, .swp-back:not(.dod-slides) .swp-dots { display: none; }
.swp-back.dod-slides.dod-s1 .swp-partner, .swp-back.dod-slides.dod-s1 .swp-help, .swp-back.dod-slides.dod-s1 .swp-btns,
.swp-back.dod-slides.dod-s1 #rpBrb, .swp-back.dod-slides.dod-s1 #swpSave, .swp-back.dod-slides.dod-s1 .swp-ghost { visibility: hidden; opacity: 0; }
.swp-back.dod-slides.dod-s1 .swp-card { cursor: default; }
.swp-back.dod-slides .swp-partner, .swp-back.dod-slides .swp-btns, .swp-back.dod-slides .swp-sess, .swp-back.dod-slides #rpBrb, .swp-back.dod-slides #swpSave { transition: opacity .35s ease; }
.swp-back.dod-slides .swp-sess { display: none; } /* session % lives on slide 2 */
/* slide 1: per side, bid vs taken, made / set, Nil, points, bags */
.swo-team { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); margin-bottom: 6px; }
.swo-team .who { font-weight: 800; font-size: 1.05rem; }
.swo-team.team-ns .who { color: var(--ns, #5AB4FF); } .swo-team.team-ew .who { color: var(--ew, #FFB547); }
.swo-team .pts { font-size: 1.9rem; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.swo-team .setb { grid-column: 1 / -1; justify-self: end; margin-top: -4px; font-size: .85rem; font-weight: 700; color: #c3c8ce; font-variant-numeric: tabular-nums; } /* DoD: own + set (22 Oct 2026) */
.swo-team .det { grid-column: 1 / -1; font-size: .92rem; color: #dfe3e8; font-variant-numeric: tabular-nums; }
.swo-team .ok { color: #59d98e; font-weight: 800; } .swo-team .bad { color: #ff7a7a; font-weight: 800; }
/* slide 2: big result lines */
.sw2-line { font-size: 1.05rem; font-weight: 700; margin: 2px 0 6px; color: #e9ecef; }
.sw2-line.big { font-size: 1.4rem; font-weight: 900; color: #fff; }
.sw2-line b { font-variant-numeric: tabular-nums; }
.sw2-line small { font-size: .8em; color: #c3c8ce; font-weight: 600; }

/* DoD (user, 21 Oct 2026 8:07 PM ET): ONE results card for DOD_RESULT_HOLD_S (outcome + Your result / Opponents /
 * Your session / Team session), then the swipe screen in the same spot: the partner big in the middle, right = keep
 * (Preferred Pards) on top, left = avoid (Avoid (pending)) at the bottom, Neutral by default. No dots (no slides). */
.swp-back.dod-slides .swp-dots, .swp-back.dod-slides .swp-partner { display: none; }
.swp-res { margin-top: 6px; }
.swp-slide.s2 { display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; min-height: 100%; gap: 10px; }
.sws-top, .sws-bot { font-weight: 800; font-size: 1.05rem; padding: 6px 12px; border-radius: 999px; }
.sws-top { color: #7ef0a4; border: 1px solid rgba(94,224,138,.55); background: rgba(20,60,34,.55); }
.sws-bot { color: #ffb0b0; border: 1px solid rgba(255,107,107,.55); background: rgba(70,20,20,.55); }
.sws-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sws-av { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; font-size: 64px; line-height: 1; background: #15171b; border: 4px solid var(--t, #5AB4FF); box-shadow: 0 6px 22px rgba(0,0,0,.55); }
.sws-name { font-size: 2rem; font-weight: 900; color: var(--ns, #5AB4FF); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sws-neutral { font-size: .95rem; color: #d5d9de; min-height: 1.3em; }
.sws-neutral.is-right { color: #7ef0a4; font-weight: 800; } .sws-neutral.is-left { color: #ffb0b0; font-weight: 800; }
.swp-mini { padding: 6px 10px; border-radius: 999px; border: 1px solid #6b7179; background: rgba(0,0,0,.35); color: #e9ecef; font-weight: 700; font-size: .8rem; cursor: pointer; min-height: 36px; }
.swp-back:not(.dod-slides) #swpAll { display: none; }
.swp-back.dod-slides.dod-s1 #swpAll { visibility: hidden; opacity: 0; }
@media (max-width: 420px) { .sws-av { width: 92px; height: 92px; font-size: 52px; } .sws-name { font-size: 1.6rem; } }

/* DoD swipe screen: the two lines ARE the swipe buttons; the big ✕ / ♥ buttons and the help line go; BRB, ★ Save,
 * All tables, Ready and the countdown stay small at the edges */
.swp-back.dod-slides .swp-btns, .swp-back.dod-slides .swp-help { display: none; }
.sws-top, .sws-bot { font: inherit; font-weight: 800; cursor: pointer; min-height: 44px; }
.swp-back.dod-slides #rpBrb { padding: 4px 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.swp-back.dod-slides #rpBrb h3 { font-size: .72rem; margin: 0; }
.swp-back.dod-slides #rpBrb #rpBrbBody { display: contents; }
.swp-back.dod-slides #rpBrb p { display: none; }
.swp-back.dod-slides #rpBrb button { min-height: 32px; padding: 2px 8px; font-size: .78rem; }

/* DoD: a real swipe (user, 21 Oct 2026 9:32 PM ET). No buttons: the pard sits in the middle; drag it across a line. */
.sws-top, .sws-bot { cursor: default; }
.sws-arena { position: relative; width: 100%; flex: 1; min-height: 190px; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.sws-line { position: absolute; top: 6%; bottom: 6%; width: 0; border-left: 3px dashed rgba(255,255,255,.35); }
.sws-line.l { left: 16%; border-color: rgba(255,107,107,.75); } .sws-line.r { right: 16%; border-color: rgba(94,224,138,.75); }
.sws-lbl { position: absolute; top: 2%; font-size: .68rem; font-weight: 900; letter-spacing: .06em; opacity: .55; transition: opacity .15s, transform .15s; }
.sws-lbl.l { left: 3%; color: #ff8a8a; } .sws-lbl.r { right: 3%; color: #7ef0a4; }
.swp-slide.s2[data-lean="keep"] .sws-lbl.r, .swp-slide.s2[data-lean="leave"] .sws-lbl.l { opacity: 1; transform: scale(1.12); }
.sws-pard { --dx: 0px; --dy: 0px; --rot: 0deg; --p: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 18px 10px;
  border-radius: 20px; background: #1d2026; border: 2px solid #3a3f47; box-shadow: 0 10px 28px rgba(0,0,0,.55); cursor: grab; touch-action: none; max-width: 62%;
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); will-change: transform; }
.sws-pard:focus-visible { outline: 3px solid #ffd54a; outline-offset: 3px; }
.sws-pard.drag { cursor: grabbing; transition: none; }
.sws-pard[data-dir="keep"] { border-color: rgba(94,224,138, calc(.3 + var(--p) * .7)); box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 calc(var(--p) * 34px) rgba(94,224,138,.7); background: color-mix(in srgb, #1d2026, #1f6b3a calc(var(--p) * 60%)); }
.sws-pard[data-dir="leave"] { border-color: rgba(255,107,107, calc(.3 + var(--p) * .7)); box-shadow: 0 10px 28px rgba(0,0,0,.55), 0 0 calc(var(--p) * 34px) rgba(255,90,90,.7); background: color-mix(in srgb, #1d2026, #7a2323 calc(var(--p) * 60%)); }
.sws-pard.armed::after { content: attr(data-dir); position: absolute; top: -12px; left: 50%; translate: -50% 0; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.sws-pard.armed[data-dir="keep"]::after { content: 'KEEP THIS PARD'; background: #5ee08a; color: #0d2a17; } .sws-pard.armed[data-dir="leave"]::after { content: 'AVOID'; background: #ff6b6b; color: #2a0d0d; }
.sws-pard.spring { transition: transform .42s cubic-bezier(.3,1.6,.5,1), border-color .3s, box-shadow .3s, background .3s; }
.sws-pard.hint { animation: swsWiggle 1.6s ease-in-out .4s infinite; }
@keyframes swsWiggle { 0%, 55%, 100% { transform: translate(0,0) rotate(0); } 15% { transform: translate(14px,0) rotate(3deg); } 35% { transform: translate(-14px,0) rotate(-3deg); } }
.sws-pard.fly-right { animation: swsFlyR .6s cubic-bezier(.5,0,.9,.4) forwards; border-color: #5ee08a; }
.sws-pard.fly-left { animation: swsFlyL .6s cubic-bezier(.5,0,.9,.4) forwards; border-color: #ff6b6b; }
@keyframes swsFlyR { from { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } to { transform: translate(140vw, -30px) rotate(28deg); opacity: .2; } }
@keyframes swsFlyL { from { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } to { transform: translate(-140vw, -30px) rotate(-28deg); opacity: .2; } }
.sws-prompt { font-weight: 900; font-size: 1.05rem; color: #ffd54a; animation: swsPulse 1.1s ease-in-out infinite; transition: opacity .2s; }
.sws-prompt.off { opacity: 0; animation: none; }
.sws-prompt .ar { display: inline-block; opacity: .8; } .sws-prompt .ar.l { animation: swsArL 1.1s ease-in-out infinite; } .sws-prompt .ar.r { animation: swsArR 1.1s ease-in-out infinite; }
@keyframes swsPulse { 50% { transform: scale(1.07); } }
@keyframes swsArL { 50% { transform: translateX(-6px); } } @keyframes swsArR { 50% { transform: translateX(6px); } }
.swp-card.dod-lock-left .swp-stamp, .swp-card.dod-lock-right .swp-stamp { opacity: 1; animation: swpStamp .16s ease-out both; z-index: 5; }
.swp-card.dod-lock-left .swp-stamp { color: #ff5a5a; } .swp-card.dod-lock-right .swp-stamp { color: #5ee08a; rotate: -8deg; }
.swp-card.dod-lock-right { box-shadow: 0 0 0 3px #5ee08a, 0 0 36px rgba(94,224,138,.5); } .swp-card.dod-lock-left { box-shadow: 0 0 0 3px #ff6b6b, 0 0 36px rgba(255,90,90,.45); }
@media (prefers-reduced-motion: reduce) { .sws-pard.hint, .sws-prompt, .sws-prompt .ar { animation: none !important; } .sws-pard.fly-left, .sws-pard.fly-right { animation: none; opacity: .35; } }
.swp-back.dod-slides .sws-top, .swp-back.dod-slides .sws-bot { background: none; border: 0; min-height: 0; padding: 2px 6px; } /* plain text, not a button */

/* Trash can for left swipes, keep star for right ones (user, 21 Oct 2026 9:37 PM ET): playful, avoided not banned */
.sws-can { --open: 0; position: absolute; left: 1%; bottom: 10%; width: 40px; height: 50px; pointer-events: none; }
.sws-can .bin { position: absolute; left: 4px; right: 4px; bottom: 0; height: 38px; border-radius: 3px 3px 8px 8px; background: linear-gradient(90deg, #6d7480 0 18%, #8a929e 18% 30%, #6d7480 30% 48%, #8a929e 48% 60%, #6d7480 60% 78%, #8a929e 78%); border: 2px solid #4b515a; }
.sws-can .lid { position: absolute; left: 0; right: 0; top: 4px; height: 7px; border-radius: 4px; background: #9aa2ad; border: 2px solid #4b515a; transform-origin: 2px 100%;
  transform: rotate(calc(var(--open) * -70deg)); transition: transform .12s; }
.sws-can .lid::before { content: ''; position: absolute; left: 40%; width: 20%; top: -6px; height: 5px; border-radius: 3px 3px 0 0; background: #9aa2ad; border: 2px solid #4b515a; border-bottom: 0; }
.sws-can.open { --open: 1; }
.sws-can.shut .lid { animation: swsLidShut .38s cubic-bezier(.3,1.8,.5,1) both; }
.sws-can.shut { animation: swsCanBounce .45s ease-out .05s both; }
@keyframes swsLidShut { from { transform: rotate(-70deg); } 70% { transform: rotate(8deg); } to { transform: rotate(0); } }
@keyframes swsCanBounce { 30% { transform: translateY(3px) scaleY(.92); } 60% { transform: translateY(-4px); } to { transform: none; } }
.sws-star { position: absolute; right: 2%; bottom: 12%; font-size: 30px; color: #5ee08a; opacity: .45; pointer-events: none; transition: opacity .2s; }
.swp-slide.s2[data-lean="keep"] .sws-star, .sws-star.open { opacity: 1; }
.sws-star.got { opacity: 1; animation: swsStarPop .5s cubic-bezier(.3,1.8,.5,1) both; text-shadow: 0 0 14px rgba(94,224,138,.8); }
@keyframes swsStarPop { 40% { transform: scale(1.5); } to { transform: scale(1.15); } }
.sws-pard.into-can { animation: swsIntoCan .62s cubic-bezier(.5,0,.75,.3) forwards; z-index: 3; }
@keyframes swsIntoCan { from { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } 55% { transform: translate(calc(var(--tx) * .8), calc(var(--ty) - 40px)) rotate(-200deg) scale(.45); opacity: 1; }
  to { transform: translate(var(--tx), var(--ty)) rotate(-340deg) scale(.08); opacity: 0; } }
.sws-pard.into-star { animation: swsIntoStar .6s cubic-bezier(.5,0,.75,.3) forwards; z-index: 3; }
@keyframes swsIntoStar { from { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } to { transform: translate(var(--tx), var(--ty)) rotate(25deg) scale(.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sws-pard.into-can, .sws-pard.into-star { animation: none; opacity: 0; } .sws-can.shut, .sws-can.shut .lid, .sws-star.got { animation: none; } }

/* ===== Post-hand recap v2 (user, 26 Oct 2026): score + swipe in ONE popup, split side by side =====
 * LEFT = Board Results (team score, rank, MP %, match points, bonuses, opponent board %); RIGHT = the swipe (drag the
 * pard, arrow keys, or the Swipe buttons). Both stay up for the whole intermission. Phones: stacked, results first. */
.swp-back.recap-split .swp-wrap { display: flex; flex-direction: column; width: min(96vw, 940px); }
/* a 1 px overflow brings in a scrollbar that pushed the split card 5 px off centre: reserve the gutter on both sides */
@media (min-width: 760px) { .swp-back.recap-split { scrollbar-gutter: stable both-edges; } }
.swp-back.recap-split .swp-main, .swp-back.recap-split .swp-side { display: contents; }
.swp-back.recap-split .swp-card { cursor: default; touch-action: pan-y; }
.swp-back.recap-split .swp-slides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.swp-back.recap-split .swp-slide { grid-area: auto; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; min-width: 0; }
.swp-back.recap-split .swp-slide.s1 { border-right: 1px solid rgba(255,255,255,.14); padding-right: 16px; }
.swp-back.recap-split .swp-slide.s2 { min-height: 0; }
.swp-back.recap-split .sws-arena { min-height: 180px; }
@media (max-width: 759px) {
  .swp-back.recap-split .swp-wrap { width: min(96vw, 460px); }
  .swp-back.recap-split .swp-slides { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .swp-back.recap-split .swp-slide.s1 { border-right: 0; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 8px; }
  .swp-back.recap-split .sws-arena { min-height: 140px; }
  .swp-back.recap-split .sws-top, .swp-back.recap-split .sws-bot { display: none; } /* the buttons say it */
  .swp-back.recap-split .sws-av { width: 72px; height: 72px; font-size: 42px; }
  .swp-back.recap-split .sws-name { font-size: 1.35rem; }
}
.swp-recap .rb-h { margin: 0 0 6px; font-size: 1.15rem; font-weight: 900; letter-spacing: .02em; color: #fff; }
.rb-list { margin: 0; display: grid; gap: 4px; }
.rb-row { display: grid; grid-template-columns: minmax(96px, auto) 1fr; align-items: baseline; gap: 10px; padding: 5px 8px; border-radius: 10px; background: rgba(0,0,0,.24); }
.rb-row dt { font-weight: 700; color: #c3c8ce; font-size: .92rem; }
.rb-row dd { margin: 0; text-align: right; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: #f1f3f5; }
.rb-row dd small { display: block; font-size: .78rem; font-weight: 600; color: #c3c8ce; }
.rb-row dd.na { color: #c3c8ce; font-weight: 700; font-size: .92rem; }
.rb-row.big dt { color: var(--ns, #5AB4FF); font-size: 1rem; }
.rb-row.big dd { font-size: 1.9rem; font-weight: 900; line-height: 1.05; }
.rb-row dd.pos { color: #7ef0a4; } .rb-row dd.neg { color: #ff8a8a; }
.rb-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.rb-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: #2b3038; border: 1px solid #59606a; }
.rb-chip.beer { border-color: #ffd54a; color: #ffe69a; } .rb-chip.nil { border-color: #5ee08a; color: #a6f5c1; } .rb-chip.set { border-color: #5AB4FF; color: #b3dcff; }
.rb-note { margin: 6px 2px 0; color: #a9b0b8; }
.sws-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.sws-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 52px; padding: 6px 8px; border-radius: 14px; font: inherit; cursor: pointer; color: #fff; }
.sws-btn b { font-size: 1rem; font-weight: 900; } .sws-btn small { font-size: .75rem; opacity: .85; }
.sws-btn.l { background: #5a1f22; border: 2px solid #ff6b6b; } .sws-btn.r { background: #1b4d2c; border: 2px solid #5ee08a; }
.sws-btn:hover:not(:disabled) { filter: brightness(1.15); }
.sws-btn:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.sws-btn:disabled { opacity: .45; cursor: default; } .sws-btn.chosen { opacity: 1; box-shadow: 0 0 0 3px #ffd54a; }
/* the table behind the popup: no cards, no bid chips, no turn box / centre text left over from the hand */
#felt.felt-clear .card, #felt.felt-clear .center-msg, #felt.felt-clear .turn-box, #felt.felt-clear .bidinfo, #felt.felt-clear .tbank,
#felt.felt-clear .dealer-btn, #felt.felt-clear .trick .slot { visibility: hidden !important; }
/* Offense / Defense (user, 26 Oct 2026): two scores up top of Board Results */
.rb-od { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.rb-odc { display: grid; justify-items: center; padding: 6px 4px; border-radius: 12px; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.12); text-align: center; }
.rb-odc small { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #c3c8ce; font-size: .72rem; }
.rb-odc b { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.15; }
.rb-odc b.na { font-size: .95rem; color: #9aa3ad; }
.rb-odc i { font-style: normal; font-size: .68rem; color: #9aa3ad; }
#rbDef b:not(.na) { color: #8fd3ff; }
/* phones: Offense / Defense / Diff in one compact row so the card still fits 390x844 with the swipe buttons on screen */
@media (max-width: 759px), (max-height: 760px) {
  .rb-od { gap: 4px; }
  .rb-odc { padding: 3px 2px; border-radius: 10px; }
  .rb-odc b { font-size: 1.2rem; }
  #rbOff i, #rbDef i { display: none; }
  #rbDiff i { font-size: .62rem; line-height: 1.15; }
  .swp-back.recap-split .rb-note { display: none; }
  .swp-back.recap-split .rb-row { padding: 3px 8px; }
  .swp-back.recap-split .rb-list { gap: 3px; }
}
.swp-spec[hidden] { display: none; }
