/* ═══════════════════════════════════════════════════════════════════════
   /styles gallery chrome — RWF theme exploration.
   Token-only styling: when the page enters preview mode the SAME rules
   re-render the gallery in the chosen theme (that's the demo). The only
   literal colours here are the per-theme card swatch dots, set inline
   from runtime-resolved tokens by gallery.js.
   ═══════════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }

/* the hidden attribute must always win — .st-previewbar's display:flex
   used to override the UA rule, so the preview bar could NEVER be
   dismissed (founder bug 2026-09-07). Guard applies page-wide. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  transition: background 240ms ease, color 240ms ease;
}

code { font-family: var(--font-mono); font-size: 0.92em; color: var(--muted); }
b { color: var(--text); }

/* ── header — ONE compact bar (title + count + ? + review mode) ─────── */
.st-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
}
.st-bar {
  max-width: 1280px; margin: 0 auto; padding: 9px 28px;
  display: flex; align-items: center; gap: 12px;
}
.st-bar__over {
  flex: none;
  font: 700 10.5px/1 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--lime); border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 9px;
}
.st-bar__title {
  margin: 0; min-width: 0;
  font: 400 17px/1.1 var(--font-display);
  text-transform: uppercase; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-bar__count {
  flex: none; font: 700 10.5px/1 var(--font-mono); color: var(--faint);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.st-bar__spring { flex: 1; }
.st-bar__review, .st-bar__help {
  flex: none; cursor: pointer;
  font: 700 11.5px/1 var(--font-body); letter-spacing: 0.04em;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line-bright);
  border-radius: var(--pill); padding: 9px 13px;
  transition: border-color var(--ease), color var(--ease);
}
.st-bar__review:hover, .st-bar__help:hover { border-color: var(--lime); color: var(--lime); }
.st-bar__help {
  width: 32px; height: 32px; padding: 0;
  display: inline-grid; place-items: center;
  font: 700 14px/1 var(--font-mono); border-radius: 50%;
}
.st-bar__help[aria-expanded="true"] { border-color: var(--lime); color: var(--lime); }

/* the long story, moved into the ? sheet */
.st-overline {
  margin: 0 0 8px; font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime);
}
.st-sheet__title {
  margin: 0 0 10px; font: 400 clamp(24px, 3.4vw, 32px)/1.04 var(--font-display);
  text-transform: uppercase; letter-spacing: 0.01em;
}
.st-sub { margin: 10px 0 0; max-width: 62ch; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.st-links { display: flex; flex-direction: column; gap: 8px; }
.st-links a {
  color: var(--muted); text-decoration: none; font: 600 12.5px/1.2 var(--font-mono);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 12px; transition: color var(--ease), border-color var(--ease);
}
.st-links a:hover { color: var(--lime); border-color: var(--lime); }

/* ── the ? sheet itself ──────────────────────────────────────────────── */
.st-sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; }
.st-sheet__backdrop {
  position: absolute; inset: 0; cursor: pointer;
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  backdrop-filter: blur(5px);
}
.st-sheet__panel {
  position: relative; width: min(660px, 100%); max-height: 84vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-bright); border-radius: var(--radius-lg);
  padding: 24px 26px 20px;
  box-shadow: 0 26px 90px color-mix(in srgb, #000 32%, transparent);
}
.st-sheet__panel .st-links { margin-top: 18px; flex-direction: row; flex-wrap: wrap; }
.st-sheet__x {
  position: absolute; top: 12px; right: 12px; cursor: pointer;
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  font: 700 13px/1 var(--font-mono); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-bright); border-radius: 50%;
  transition: border-color var(--ease), color var(--ease);
}
.st-sheet__x:hover { border-color: var(--lime); color: var(--lime); }
.st-sheet__hint {
  margin: 18px 0 0; padding: 12px 14px; border: 1px dashed var(--line-bright); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 12.5px; line-height: 1.7;
}
.st-sheet__hint b { color: var(--lime); }

/* ── ★ shortlist — surfaced at the top of the gallery ────────────────── */
.st-short { padding-top: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.st-short__n { color: var(--lime); }
.st-short__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.st-short__chip {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--lime); border-radius: var(--radius);
  padding: 10px 12px; color: var(--text); text-align: left;
  transition: transform var(--ease), box-shadow var(--ease);
}
.st-short__chip:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--lime); }
.st-short__chip:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.st-short__chip i { width: 14px; height: 14px; border-radius: var(--pill); border: 1px solid var(--line-bright); flex: none; }
.st-short__chip b { font: 700 12.5px/1.2 var(--font-body); letter-spacing: 0.02em; }
.st-short__chip small { display: block; color: var(--faint); font: 600 10px/1.4 var(--font-mono); letter-spacing: 0.06em; }
.st-short__chip .st-short__rm {
  flex: none; cursor: pointer; width: 24px; height: 24px; display: inline-grid; place-items: center;
  font: 700 11px/1 var(--font-mono); color: var(--muted);
  background: none; border: 1px solid var(--line); border-radius: 50%;
}
.st-short__chip .st-short__rm:hover { color: var(--danger); border-color: var(--danger); }
.st-short__row { display: flex; gap: 10px; flex-wrap: wrap; }
.st-short__copy, .st-short__clear {
  cursor: pointer; font: 700 11.5px/1 var(--font-body); letter-spacing: 0.05em;
  border-radius: var(--pill); padding: 10px 14px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.st-short__copy { color: var(--on-accent); background: var(--lime); border: 1px solid var(--lime); }
.st-short__copy:hover { background: var(--primary-hover); }
.st-short__copy.is-copied { background: var(--surface-2); color: var(--success); border-color: var(--success); }
.st-short__clear { color: var(--muted); background: none; border: 1px solid var(--line-bright); }
.st-short__clear:hover { color: var(--danger); border-color: var(--danger); }

/* preview-mode bar */
.st-previewbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
  max-width: 1280px; margin: 0 auto; padding: 0 28px 10px;
}
.st-previewbar__chip {
  flex: none;
  font: 700 11px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-accent); background: var(--lime); border-radius: var(--pill);
  padding: 7px 12px;
}
.st-previewbar__copy {
  color: var(--faint); font-size: 12.5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.st-previewbar__exit {
  flex: none; margin-left: auto; cursor: pointer;
  font: 700 12px/1 var(--font-body); letter-spacing: 0.05em;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line-bright);
  border-radius: var(--pill); padding: 9px 14px;
  transition: border-color var(--ease), color var(--ease);
}
.st-previewbar__exit:hover { border-color: var(--lime); color: var(--lime); }
.st-previewbar__exit:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ── sections ───────────────────────────────────────────────────────── */
.st-sec { max-width: 1280px; margin: 0 auto; padding: 40px 28px 8px; }
.st-kicker {
  margin: 0 0 18px; font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.st-h2 {
  margin: 34px 0 6px; font: 400 24px/1.1 var(--font-display);
  text-transform: uppercase;
}
.st-note { color: var(--faint); font-size: 13px; line-height: 1.6; max-width: 78ch; }
.st-kbd {
  display: inline-flex; align-items: center; width: max-content; max-width: 100%;
  color: var(--lime); background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  border: 1px solid var(--line-bright); border-radius: var(--pill);
  padding: 7px 11px; margin: 0 0 16px;
  font: 700 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lime) 10%, transparent);
}
.st-previewbar .st-kbd { margin: 0; color: var(--text); }

/* ── theme cards ────────────────────────────────────────────────────── */
.st-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 14px;
}
.st-card {
  text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; color: var(--text);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.st-card:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.st-card.is-sel { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.st-card[aria-pressed="true"] { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.st-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.st-card__num { font: 700 10px/1 var(--font-mono); color: var(--faint); letter-spacing: 0.2em; }
.st-card__name { font: 400 21px/1.05 var(--font-display); text-transform: uppercase; margin: 0; }
.st-card__desc { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0; min-height: 4.5em; }
.st-card__swatches { display: flex; gap: 6px; align-items: center; }
.st-card__sw { width: 22px; height: 22px; border-radius: var(--pill); border: 1px solid var(--line-bright); }
.st-card__sw--bg { border-radius: var(--radius-sm); }
.st-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-card__hex { font: 600 10.5px/1 var(--font-mono); color: var(--faint); letter-spacing: 0.04em; }
.st-card__snip {
  cursor: pointer; font: 700 10.5px/1 var(--font-mono); letter-spacing: 0.06em;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-bright);
  border-radius: var(--pill); padding: 8px 10px;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.st-card__snip:hover { color: var(--lime); border-color: var(--lime); }
.st-card__snip.is-copied { color: var(--on-accent); background: var(--lime); border-color: var(--lime); }
.st-card__cta {
  cursor: pointer; font: 700 11px/1 var(--font-body); letter-spacing: 0.08em;
  color: var(--on-accent); background: var(--lime); border: 0; border-radius: var(--pill);
  padding: 9px 13px; transition: background var(--ease);
}
.st-card__cta:hover { background: var(--primary-hover); }

/* ── compare strip ──────────────────────────────────────────────────── */
.st-switch { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; margin-bottom: 18px; }
.st-switch__btn {
  cursor: pointer; border: 0; background: none; color: var(--muted);
  font: 700 12px/1 var(--font-body); letter-spacing: 0.05em;
  border-radius: var(--pill); padding: 9px 14px;
  transition: background var(--ease), color var(--ease);
}
.st-switch__btn.is-on { background: var(--lime); color: var(--on-accent); }
.st-switch__btn:not(.is-on):hover { color: var(--text); }

.st-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: max-content;
  gap: 18px; overflow-x: auto; padding: 4px 4px 18px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.st-cell { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.st-cell__cap {
  display: flex; align-items: center; gap: 8px;
  font: 700 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.st-cell__dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-bright); }
.st-cell__hex { color: var(--faint); letter-spacing: 0.03em; }
.st-strip iframe {
  width: 844px; height: 830px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg); display: block;
}
.st-strip[data-screen="home"] iframe, .st-strip[data-screen="battle"] iframe {
  width: 424px; height: 830px;
}

/* ── preview section ────────────────────────────────────────────────── */
.st-preview__hero { display: flex; justify-content: center; }
.st-preview__hero iframe {
  width: 844px; max-width: 100%; height: 840px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg);
}

/* ── ON THE APP strip — the V2 board game in the eight skins ────────── */
.st-appstrip {
  display: grid; grid-auto-flow: column; grid-auto-columns: max-content;
  gap: 18px; overflow-x: auto; padding: 4px 4px 18px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.st-appcell { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.st-apppair iframe {
  width: 824px; height: 920px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--bg); display: block;
}
.st-appstrip[data-screen="home"] .st-apppair iframe,
.st-appstrip[data-screen="battle"] .st-apppair iframe {
  width: 424px;
}


.st-lib {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-top: 18px; align-items: start;
}
.st-lib__comp {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.st-lib__name { margin: 0; font: 700 11px/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.st-lib .fg-battle, .st-lib .fg-pro, .st-lib .fg-state { width: 100%; }
.st-mini {
  cursor: pointer; align-self: flex-start; margin-top: 8px;
  background: none; border: 1px solid var(--line-bright); color: var(--muted);
  font: 600 11px/1 var(--font-body); border-radius: var(--pill); padding: 7px 11px;
  transition: color var(--ease), border-color var(--ease);
}
.st-mini:hover { color: var(--lime); border-color: var(--lime); }

/* ── checks ─────────────────────────────────────────────────────────── */
.st-checks__row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.st-runbtn {
  cursor: pointer; font: 700 12px/1 var(--font-body); letter-spacing: 0.08em;
  color: var(--on-accent); background: var(--lime); border: 0;
  border-radius: var(--pill); padding: 11px 18px;
}
.st-runbtn:hover { background: var(--primary-hover); }
.st-runbtn:disabled { opacity: 0.55; cursor: wait; }
.st-checks__sum { font: 600 12.5px/1.4 var(--font-mono); color: var(--muted); }
.st-checks__sum.is-pass { color: var(--success); }
.st-checks__sum.is-fail { color: var(--danger); }

.st-checks__out { overflow-x: auto; }
.st-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.st-table th, .st-table td {
  text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); white-space: nowrap;
}
.st-table th { color: var(--faint); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; }
.st-table td.ok { color: var(--success); }
.st-table td.bad { color: var(--danger); font-weight: 700; }
.st-table td.mut { color: var(--muted); }

/* ── footer ─────────────────────────────────────────────────────────── */
.st-footer {
  max-width: 1280px; margin: 0 auto; padding: 36px 28px 56px;
  border-top: 1px solid var(--line); margin-top: 44px;
  color: var(--muted); font-size: 13px; line-height: 1.7;
}
.st-footer a { color: var(--lime); }
.st-footer__fine { color: var(--faint); font-size: 12px; }

@media (max-width: 720px) {
  .st-bar, .st-previewbar, .st-sec, .st-footer { padding-left: 16px; padding-right: 16px; }
  .st-bar { gap: 8px; }
  .st-bar__count { display: none; }
  .st-bar__review { padding: 9px 11px; }
  .st-strip iframe { width: 424px; }
  .st-apppair iframe { width: 424px; }
}

/* ── theme-name flash — the big label on every arrow swap ─────────────── */
.st-flash {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  display: grid; place-items: center;
  font: 400 clamp(44px, 9vw, 120px)/1 var(--font-display);
  text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--text); text-align: center; padding: 0 5vw;
  text-shadow: 0 2px 30px color-mix(in srgb, var(--bg) 80%, transparent);
  opacity: 0;
}
.st-flash::before {                 /* soft scrim so the name reads on any kit */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(46% 34% at 50% 42%, color-mix(in srgb, var(--bg) 78%, transparent), transparent 78%);
}
.st-flash::after {                  /* the rule that draws under the name */
  content: ""; position: absolute; left: 50%; top: 58%;
  width: min(88vw, 1100px); height: 3px;
  transform: translate(-50%, 0) scaleX(0);
  background: var(--lime); border-radius: var(--pill);
}
.st-flash.is-on { opacity: 1; animation: stFlashIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.st-flash.is-on::after { animation: stFlashRule 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.st-flash.is-quick.is-on { animation: stFlashQuick 0.48s ease both; }
@keyframes stFlashIn {
  0%   { opacity: 0; transform: translateY(16px) scale(0.97); }
  12%  { opacity: 1; transform: translateY(0) scale(1); }
  74%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}
@keyframes stFlashQuick {
  0%   { opacity: 0; transform: scale(0.985); }
  22%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}
@keyframes stFlashRule {
  0%   { transform: translate(-50%, 0) scaleX(0); }
  28%  { transform: translate(-50%, 0) scaleX(1); }
  100% { transform: translate(-50%, 0) scaleX(1); }
}

/* ── card flags — "from your sites" + founder favourite ───────────────── */
.st-card__flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -2px; }
.st-card__flag {
  display: inline-flex; align-items: center;
  font: 700 9.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--pill); padding: 5px 9px;
}
.st-card__flag--site {
  color: var(--lime); border: 1px dashed color-mix(in srgb, var(--lime) 55%, transparent);
  background: color-mix(in srgb, var(--lime) 8%, transparent);
}
.st-card__flag--fav {
  color: #1c1712;
  background: color-mix(in srgb, #d9a521 82%, #fff);
  border: 1px solid #1c1712;
}
.st-card__flag--variant {
  color: var(--coral);
  border: 1px solid color-mix(in srgb, var(--coral) 55%, transparent);
  background: color-mix(in srgb, var(--coral) 8%, transparent);
}

/* ◈ marker on strip captions (mined kits) */
.st-cell__site { color: var(--lime); font-size: 1.05em; }

/* ═══════════ 📱 PHONE REVIEW MODE — full-screen theme slides ═══════════
   The whole overlay wears the active theme via .sw[data-theme] (the
   same [data-theme] token scoping the gallery uses); the slide content
   is a real app-screen render (appdemo.html?bare=1). Chrome text sits
   on solid --surface chips over --bg so AA contrast is preserved in
   every kit. */
.sw {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body);
  overscroll-behavior: none;
  transform: translateY(calc(var(--sw-up, 0px) * -1));
  transition: transform 200ms ease;
}
.sw__stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.sw__slide {
  position: absolute; inset: 0; opacity: 0; z-index: 1;
  transform: translateX(0); will-change: transform, opacity;
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sw__slide.is-cur { opacity: 1; z-index: 3; transform: none; }
.sw__slide.is-out-l { transform: translateX(-46px); }
.sw__slide.is-out-r { transform: translateX(46px); }
.sw__slide.is-drag { transition: none; }
.sw__frame {
  width: 100%; height: 100%; border: 0; display: block; background: var(--bg);
  pointer-events: none;   /* gestures belong to the stage — the slide is a display render */
}

/* hud — floats over the slides; interactive bits re-enable pointer events */
.sw__hud {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
}
.sw__top {
  display: flex; align-items: center; gap: 8px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 14px 0;
}
.sw__count, .sw__hint {
  font: 700 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 11px;
}
.sw__hint {
  color: var(--text); letter-spacing: 0.08em;
  margin-left: auto; margin-right: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
}
.sw__grid {
  pointer-events: auto; cursor: pointer; flex: none;
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  font: 700 15px/1 var(--font-mono); color: var(--text);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line-bright); border-radius: var(--radius-sm);
  transition: border-color var(--ease), color var(--ease);
}
.sw__grid:hover { border-color: var(--lime); color: var(--lime); }
.sw__bottom { display: flex; flex-direction: column; gap: 10px; padding: 0 14px max(12px, env(safe-area-inset-bottom, 0px)); }
.sw__dots {
  display: flex; justify-content: center; gap: 5px; flex-wrap: wrap;
  pointer-events: auto;
}
.sw__dot {
  cursor: pointer; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 24%, transparent);
  transition: transform 160ms ease, background 160ms ease;
}
.sw__dot:hover { transform: scale(1.5); }
.sw__dot.is-on { background: var(--lime); transform: scale(1.45); }
.sw__dot.is-picked { box-shadow: 0 0 0 2px color-mix(in srgb, var(--lime) 60%, transparent); }
.sw__panel {
  pointer-events: auto; cursor: default;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 16px 15px;
  box-shadow: 0 14px 50px color-mix(in srgb, #000 22%, transparent);
}
.sw__name {
  margin: 0 0 6px; font: 400 clamp(20px, 6vw, 27px)/1.05 var(--font-display);
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--text);
}
.sw__desc {
  margin: 0 0 12px; color: var(--text); font-size: 12.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sw__pick {
  cursor: pointer; font: 700 12px/1 var(--font-body); letter-spacing: 0.05em;
  color: var(--on-accent); background: var(--lime); border: 1px solid var(--lime);
  border-radius: var(--pill); padding: 11px 16px;
  transition: background var(--ease), transform var(--ease);
}
.sw__pick:hover { background: var(--primary-hover); transform: translateY(-1px); }
.sw__pick:active { transform: translateY(0); }
.sw__pick .sw__heart { font-size: 1.15em; margin-right: 2px; }
.sw__pick[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border-color: var(--line-bright); }
.sw__pick[aria-pressed="true"]:hover { border-color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  .sw__slide { transition: opacity 0.01ms, transform 0.01ms; }
  .sw { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .st-flash.is-on, .st-flash.is-quick.is-on { animation: none; opacity: 0.9; }
  .st-flash.is-on::after { transform: translate(-50%, 0) scaleX(1); animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
