/* Setups (/setups/, built by scripts/build_pages.py from gallery/). On top of styles.css and
   /s/share.css, whose trackball every page here draws.

   Lit by the ball: every light here comes from the ball's own colors. An app's tile takes one of
   them (.sx-t0 … .sx-t6, picked from its name); the buttons a setup changes glow amber, the buttons'
   color; red is only for a shortcut that's hard to take back. Things move once, when they arrive
   or when you do something, and never on their own after that. Reduce Motion: fades only. */

/* Wider than a text page (styles.css's .pg-container comes later in the head, so this names both). */
.pg-container.sx-wide { max-width: calc(1160px + 2 * var(--gutter)); }
.sx-t0 { --tint: 53, 214, 255; }
.sx-t1 { --tint: 61, 107, 255; }
.sx-t2 { --tint: 138, 92, 255; }
.sx-t3 { --tint: 240, 86, 216; }
.sx-t4 { --tint: 255, 92, 168; }
.sx-t5 { --tint: 255, 179, 64; }
.sx-t6 { --tint: 77, 168, 255; }
.sx-page [hidden] { display: none !important; }

/* --------------------------------------------------------------- App tile (a glyph for its kind of work) */
.sx-tile {
  --s: 40px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * 0.3);
  background:
    radial-gradient(120% 120% at 28% 18%, rgba(255, 255, 255, 0.5), transparent 46%),
    linear-gradient(150deg, rgba(var(--tint, 77, 168, 255), 1), rgba(var(--tint, 77, 168, 255), 0.55) 60%, rgba(10, 10, 20, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 6px 18px -6px rgba(var(--tint, 77, 168, 255), 0.75);
  color: #fff;
  font-family: var(--rounded);
  font-size: calc(var(--s) * 0.4);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.sx-tile .icon { width: 58%; height: 58%; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.sx-tile-sm { --s: 24px; font-size: 10px; }
.sx-tile-sm .icon { width: 64%; height: 64%; stroke-width: 2.2; }
.sx-tile-lg { --s: 52px; }

/* --------------------------------------------------------------- Keycaps, chips */
.sx-keys { display: inline-flex; gap: 3px; flex: none; white-space: nowrap; }
.sx-keys kbd { font-size: 12.5px; min-width: 1.9em; height: 1.9em; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-chip, .sx-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2); font-size: 12px; font-weight: 500; line-height: 1.6; white-space: nowrap;
}
.sx-chip-feat { background: rgba(var(--buttons-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--buttons-rgb), 0.45); color: #ffd796; }
.sx-chip-red { background: rgba(255, 69, 58, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.4); color: #ffb3ad; }
.sx-reddot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 8px rgba(255, 69, 58, 0.9); }
.sx-badges { display: inline-flex; gap: 6px; margin-left: auto; }
.sx-badge-new { background: rgba(var(--ball-rgb), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--ball-rgb), 0.55); color: #cfe6ff; font-weight: 600; }
.sx-badge-tried { color: #c6f6d2; box-shadow: inset 0 0 0 1px rgba(48, 209, 88, 0.4); background: rgba(48, 209, 88, 0.08); }
.sx-badge { animation: sx-fade 0.4s var(--ease-out) backwards; }

/* --------------------------------------------------------------- The top of /setups/ */
.sx-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  margin-top: clamp(18px, 3vw, 30px);
}
.sx-top-copy { animation: sx-rise 0.7s var(--ease-out) backwards; }
.sx-top-h {
  margin-top: 16px;
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.sx-grad { display: block; background: var(--orb); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.sx-top-lede { margin-top: 20px; max-width: 33em; color: var(--text-2); font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.5; }
.sx-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin-top: 22px; color: var(--text-3); font-size: 15px; }
.sx-stats b { color: var(--text); font-family: var(--rounded); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 5px; }
.sx-stats span { display: inline-flex; align-items: baseline; }
.sx-stats-new { color: #cfe6ff; font-weight: 600; }
.sx-feed { display: inline-flex; align-items: center; gap: 6px; align-self: center; color: var(--text-2); font-size: 14px; }
.sx-feed .icon { width: 15px; height: 15px; color: var(--buttons); }
.sx-num { font-variant-numeric: tabular-nums; }
.sx-top-demo { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.sx-demo-cap { display: flex; align-items: center; gap: 10px; max-width: 440px; color: var(--text-3); font-size: 14px; line-height: 1.4; }
.sx-demo-cap a { color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
  .sx-top { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------- An app's or a maker's page */
.sx-sub-hero { margin-top: clamp(20px, 3vw, 32px); animation: sx-rise 0.7s var(--ease-out) backwards; }
.sx-sub-h { margin-top: 16px; font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; line-height: 1.03; letter-spacing: -0.04em; }
.sx-sub-h .tag { font-size: 14px; font-weight: 500; letter-spacing: 0; vertical-align: 0.5em; }
.sx-maker { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.sx-maker > div { flex: 1 1 320px; min-width: 0; }
.sx-maker .sx-sub-h { margin-top: 0; }
.sx-orb {
  display: inline-grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.85), transparent 30%),
    radial-gradient(circle at 30% 30%, #35d6ff, transparent 55%),
    radial-gradient(circle at 70% 75%, #f056d8, transparent 60%),
    linear-gradient(160deg, #3d6bff, #8a5cff);
  box-shadow: inset 0 -6px 14px rgba(8, 4, 30, 0.45), 0 10px 28px -10px rgba(90, 110, 255, 0.9);
  color: #fff; font-family: var(--rounded); font-size: 22px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 20, 0.5);
}
.sx-maker .sx-orb { width: 84px; height: 84px; font-size: 34px; }

/* --------------------------------------------------------------- Browsing: search, filters */
.sx-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.sx-head h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.025em; }
.sx-all { color: var(--text-2); font-size: 15px; }
.sx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.sx-search {
  position: relative; display: flex; align-items: center; flex: 1 1 280px; min-width: 0;
  height: 48px; padding: 0 12px 0 44px; border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.sx-search > .icon { position: absolute; left: 15px; width: 19px; height: 19px; color: var(--text-3); pointer-events: none; }
.sx-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none;
  color: var(--text); font: inherit; font-size: 16px;
}
.sx-search input::placeholder { color: var(--text-3); }
.sx-search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.6); }
.sx-search:focus-within {
  background: rgba(var(--ball-rgb), 0.07);
  box-shadow: inset 0 0 0 1.5px rgba(var(--ball-rgb), 0.85), 0 0 0 4px rgba(var(--ball-rgb), 0.16), 0 18px 50px -24px rgba(var(--ball-rgb), 0.9);
}
.sx-search:focus-within > .icon { color: var(--ball); }
.sx-slash { flex: none; color: var(--text-3); }
.sx-search:focus-within .sx-slash { display: none; }
@media (hover: none) { .sx-slash { display: none; } }
.sx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-pill, .sx-appchip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2); font: inherit; font-size: 14.5px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.2s, transform 0.25s var(--ease-out);
}
.sx-pill:active, .sx-appchip:active { transform: scale(0.96); transition-duration: 0.08s; }
.sx-pill.is-on, .sx-pill[aria-pressed="true"] { background: rgba(var(--ball-rgb), 0.16); box-shadow: inset 0 0 0 1.5px rgba(var(--ball-rgb), 0.75); color: #fff; }
.sx-pill-saved .icon { width: 15px; height: 15px; }
.sx-pill-saved b { font-family: var(--rounded); font-variant-numeric: tabular-nums; color: var(--buttons); }
.sx-pill-saved b:empty { display: none; }
.sx-pill-saved[aria-pressed="true"] { background: rgba(var(--buttons-rgb), 0.14); box-shadow: inset 0 0 0 1.5px rgba(var(--buttons-rgb), 0.7); }
.sx-pill-saved[aria-pressed="true"] .icon { fill: var(--buttons); color: var(--buttons); }
.sx-applist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-appchip { padding: 0 14px 0 7px; color: var(--text); }
.sx-appchip[data-su-app=""] { padding: 0 16px; }
@media (hover: hover) {
  .sx-appchip:hover { text-decoration: none; transform: translateY(-1px); background: rgba(var(--tint, var(--ball-rgb)), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--tint, var(--ball-rgb)), 0.5), 0 8px 24px -12px rgba(var(--tint, var(--ball-rgb)), 0.8); }
  .sx-pill:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
}
.sx-appchip.is-on { background: rgba(var(--tint, var(--ball-rgb)), 0.18); box-shadow: inset 0 0 0 1.5px rgba(var(--tint, var(--ball-rgb)), 0.85), 0 8px 26px -14px rgba(var(--tint, var(--ball-rgb)), 0.9); }
.su-count { min-height: 22px; margin-top: 14px; color: var(--text-3); font-size: 14px; }
.sx-local { margin-top: 18px; color: var(--text-3); font-size: 13.5px; }
@media (max-width: 640px) {
  /* Search and Saved share a row; the trackballs are one row to swipe through, like the apps. */
  .sx-search { flex: 1 1 180px; }
  .sx-pill-saved { order: 1; flex: none; }
  .sx-pills { order: 2; flex: 0 0 calc(100% + 2 * var(--gutter)); flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
  .sx-pills::-webkit-scrollbar { display: none; }
  .sx-pills .sx-pill { flex: none; }
  /* One row of apps to swipe through, so the cards aren't pushed down the page. */
  .sx-browse .sx-applist { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .sx-browse .sx-applist::-webkit-scrollbar { display: none; }
  .sx-browse .sx-applist li { flex: none; }
}

/* --------------------------------------------------------------- Cards */
.sx-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 318px), 1fr)); gap: 16px; }
.sx-item { position: relative; display: flex; min-width: 0; animation: sx-rise 0.6s var(--ease-out) backwards; }
.sx-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 0 20px 18px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    var(--face) padding-box,
    linear-gradient(rgba(13, 14, 19, 0.8), rgba(13, 14, 19, 0.8)) padding-box,
    var(--edge) border-box;
  box-shadow: var(--lift);
  color: var(--text);
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--rise, 0px));
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.sx-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(var(--tint), 0.9), rgba(var(--tint), 0) 45%, rgba(var(--buttons-rgb), 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.sx-card:hover, .sx-card:focus-visible {
  --rise: -4px;
  text-decoration: none;
  box-shadow: var(--lift), 0 26px 60px -28px rgba(var(--tint), 0.85);
}
/* Light on the glass, where the pointer is (setups.js sets --lx/--ly while it's over the card). */
.sx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--lx, 50%) var(--ly, 0%), rgba(var(--tint), 0.18), rgba(255, 255, 255, 0.04) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.sx-card.is-tilting::before { opacity: 1; }
.sx-card.is-tilting { transition: transform 0.12s linear, box-shadow 0.35s var(--ease-out); }
.sx-card:hover::after, .sx-card:focus-visible::after { opacity: 1; }
.sx-card:focus-visible { outline: 2px solid rgba(var(--tint), 0.9); outline-offset: 3px; border-radius: 22px; }
.sx-card:active { transform: translateY(-2px) scale(0.99); }

/* The card's picture: this setup's buttons lit on a small trackball, and its first moves. */
.sx-art {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 128px;
  margin: 0 -20px 6px;
  padding: 16px 54px 16px 18px;
  border-radius: 21px 21px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 12% 50%, rgba(var(--tint), 0.3), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
}
.sx-mini { position: relative; width: 92px; aspect-ratio: 1; border-radius: 22%; background: linear-gradient(180deg, #1b1b22, #0c0c10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px -14px rgba(0, 0, 0, 0.95), 0 10px 40px -16px rgba(var(--tint), 0.8); }
.sx-mini-pad { position: absolute; width: 43%; height: 43%; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.sx-mini-pad.on { background: linear-gradient(180deg, #ffd27e, #ffaa2e); box-shadow: 0 0 14px rgba(var(--buttons-rgb), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.sx-mini-tl { left: 5%; top: 5%; border-radius: 40% 8% 8% 8%; }
.sx-mini-tr { right: 5%; top: 5%; border-radius: 8% 40% 8% 8%; }
.sx-mini-bl { left: 5%; bottom: 5%; border-radius: 8% 8% 8% 40%; }
.sx-mini-br { right: 5%; bottom: 5%; border-radius: 8% 8% 40% 8%; }
.sx-mini-well { position: absolute; inset: 12%; border-radius: 50%; background: #050506; box-shadow: 0 0 0 2.5px #0b0b0e, 0 0 0 3.5px rgba(var(--tint), 0.5); }
.sx-mini-ball {
  position: absolute; inset: 25%; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, #fff 0%, rgba(255, 255, 255, 0.5) 12%, transparent 30%),
    radial-gradient(circle at 30% 30%, #35d6ff, transparent 60%),
    radial-gradient(circle at 72% 78%, #f056d8, transparent 62%),
    linear-gradient(160deg, rgb(var(--tint)), #8a5cff);
  box-shadow: inset 0 -5px 10px rgba(8, 4, 30, 0.5);
  transition: transform 0.5s var(--ease-out);
}
.sx-moves { display: grid; gap: 4px; min-width: 0; }
.sx-mv { display: block; color: var(--text-2); font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-mv i { display: inline-block; width: 19px; color: var(--buttons); font-style: normal; font-weight: 700; }
.sx-mv-more { padding-left: 19px; color: var(--text-3); font-size: 12px; }
/* Pointing at a card runs through its moves once: each lights in turn, and the ball leans. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sx-card:hover .sx-mv:not(.sx-mv-more) { animation: sx-mvlit 0.55s var(--ease-out) backwards; }
  .sx-card:hover .sx-n2 { animation-delay: 0.16s; }
  .sx-card:hover .sx-n3 { animation-delay: 0.32s; }
  .sx-card:hover .sx-n4 { animation-delay: 0.48s; }
  .sx-card:hover .sx-mini-ball { transform: rotate(18deg) scale(1.04); }
  .sx-card:hover .sx-mini-pad.on { animation: sx-flash-mini 0.7s var(--ease-out); }
}
@keyframes sx-mvlit { 0% { color: var(--text-2); transform: none; } 35% { color: #fff; transform: translateX(4px); text-shadow: 0 0 14px rgba(var(--buttons-rgb), 0.7); } }
@keyframes sx-flash-mini { 35% { box-shadow: 0 0 26px 4px rgba(var(--buttons-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.7); } }
.sx-card-top { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.sx-card-top .sx-tile { --s: 28px; }
.sx-card-app { color: var(--text-2); font-size: 14px; font-weight: 600; }
.sx-card-title { font-size: 20px; font-weight: 650; line-height: 1.22; letter-spacing: -0.015em; }
.sx-card-sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text-2); font-size: 14.5px; line-height: 1.5;
}
.sx-card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sx-card-by { color: var(--text-3); font-size: 13px; }
.sx-card-by a { color: var(--text-2); }
/* Save: a bookmark on the card's corner. It's beside the link, not inside it. */
.sx-save {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(10, 11, 16, 0.6); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--ease-out), color 0.2s, box-shadow 0.25s var(--ease), background-color 0.2s;
}
.sx-save .icon { width: 17px; height: 17px; transition: transform 0.35s var(--ease-out); }
@media (hover: hover) { .sx-save:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); } }
.sx-save:active { transform: scale(0.9); transition-duration: 0.08s; }
.sx-save:focus-visible { outline: 2px solid var(--buttons); outline-offset: 2px; border-radius: 50%; }
.sx-save[aria-pressed="true"] { color: var(--buttons); box-shadow: inset 0 0 0 1px rgba(var(--buttons-rgb), 0.6), 0 0 22px -4px rgba(var(--buttons-rgb), 0.7); }
.sx-save[aria-pressed="true"] .icon { fill: currentColor; }
.sx-save.is-pop .icon { animation: sx-pop 0.45s var(--ease-out); }
@keyframes sx-pop { 35% { transform: scale(1.35) translateY(-2px); } }

.su-empty {
  margin-top: 8px; padding: 26px 24px; border-radius: 22px; text-align: center;
  background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2); animation: sx-fade 0.3s var(--ease-out);
}
.su-empty-h { color: var(--text); font-size: 19px; font-weight: 650; overflow-wrap: anywhere; }
.su-empty p + p { margin-top: 6px; }
.su-empty .su-empty-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 16px; }
.su-back { margin-top: 40px; }
.sx-more-one { margin-top: 18px; color: var(--text-3); font-size: 14.5px; }

/* Arriving: the cards rise in one after another, once. */
.sx-grid > .sx-item:nth-child(2) { animation-delay: 50ms; }
.sx-grid > .sx-item:nth-child(3) { animation-delay: 100ms; }
.sx-grid > .sx-item:nth-child(4) { animation-delay: 150ms; }
.sx-grid > .sx-item:nth-child(5) { animation-delay: 200ms; }
.sx-grid > .sx-item:nth-child(6) { animation-delay: 250ms; }
.sx-grid > .sx-item:nth-child(n+7) { animation-delay: 300ms; }
@keyframes sx-rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
@keyframes sx-fade { from { opacity: 0; } }

/* --------------------------------------------------------------- Lately: what was added, by day */
.sx-log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.sx-log li { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; padding: 14px 0 14px 22px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; line-height: 1.55; }
.sx-log li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--buttons); box-shadow: 0 0 10px rgba(var(--buttons-rgb), 0.8); }
.sx-log li:not(:first-child)::before { background: var(--text-3); box-shadow: none; }
.sx-log time { color: var(--text); font-weight: 600; }
.sx-log b { color: var(--text); }
.sx-log a { color: var(--text); text-decoration-color: rgba(236, 238, 248, 0.3); }
@media (max-width: 640px) { .sx-log li { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- Not made yet, how it works */
.sx-wantlist { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-wantlist li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 7px; border-radius: 999px;
  border: 1px dashed var(--line-2); color: var(--text-2); font-size: 14.5px;
}
.sx-wantlist .sx-tile { filter: grayscale(0.85) brightness(0.8); box-shadow: none; }
.sx-how3 { list-style: none; counter-reset: how; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.sx-how3 li {
  counter-increment: how; position: relative; padding: 18px 18px 18px 58px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2); font-size: 15px; line-height: 1.5;
}
.sx-how3 li::before {
  content: counter(how); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(var(--buttons-rgb), 0.14); box-shadow: inset 0 0 0 1px rgba(var(--buttons-rgb), 0.5);
  color: var(--buttons); font-family: var(--rounded); font-weight: 700;
}
.sx-how3 b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
.sx-how3 strong { color: var(--text); }
.pg-section > .sx-how-note { margin-top: 14px; color: var(--text-3); font-size: 14.5px; }

/* --------------------------------------------------------------- A setup's page: the hero */
.sx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(20px, 3vw, 32px);
}
.sx-hero-copy { animation: sx-rise 0.7s var(--ease-out) backwards; min-width: 0; }
.sx-hero-app { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 15px; font-weight: 600; }
.sx-hero-app a { color: var(--text); }
.sx-h {
  margin-top: 18px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, #fff 0%, #fff 50%, color-mix(in srgb, rgb(var(--tint)) 60%, #fff) 80%, color-mix(in srgb, var(--buttons) 60%, #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.sx-lede { margin-top: 18px; max-width: 32em; color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; }
.sx-hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sx-hero-meta .sx-card-by { font-size: 14px; }
.sx-cta { margin-top: 26px; }
.sx-hero .fine { margin-top: 12px; color: var(--text-3); font-size: 14px; }
@media (max-width: 860px) {
  .sx-hero { grid-template-columns: minmax(0, 1fr); }
  .sx-hero .sx-play { order: -1; }
}

/* --------------------------------------------------------------- The trackball you can play
   share.css's trackball, lit where the setup changes it. With setups-play.js the lit buttons can be
   held: the ring of moves shows round the ball, a roll lights its way, the ball leans that way
   and the line under it says what the Mac gets. Nothing loops; it plays once by itself, then waits. */
.sx-play { display: grid; justify-items: center; gap: 14px; width: 100%; min-width: 0; }
.sx-stage { --sb-mid: rgb(var(--tint, 61, 107, 255)); max-width: 460px; animation: sx-fade 0.9s var(--ease-out) 0.1s backwards; }
@media (max-width: 860px) { .sx-stage { max-width: 340px; } }
@media (max-width: 420px) { .sx-stage { max-width: 300px; } }
.sh-pad.sx-on {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(var(--buttons-rgb), 0.95), rgba(var(--buttons-rgb), 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 230, 180, 0.4),
    0 0 26px 2px rgba(var(--buttons-rgb), 0.55), 0 0 70px 6px rgba(var(--buttons-rgb), 0.22);
  animation: sx-light 1.1s var(--ease-out) 0.35s backwards;
  transition: filter 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.12s var(--ease-out);
}
@keyframes sx-light { from { background: rgba(255, 255, 255, 0.08); box-shadow: none; } }
/* One after another, the way a hand would reach them, each label arriving just after its button. */
.sh-pad.sx-on.sx-o2 { animation-delay: 0.75s; }
.sh-pad.sx-on.sx-o3 { animation-delay: 1.15s; }
.sx-callout.sx-o1 { animation-delay: 0.7s; }
.sx-callout.sx-o2 { animation-delay: 1.1s; }
.sx-callout.sx-o3 { animation-delay: 1.5s; }
.sx-callout.sx-o4 { animation-delay: 1.85s; }
/* A gesture button's four ways, in the pad's outer corner (the rest sits under the ball's well). */
.sx-arrows { width: 30%; height: 30%; margin: 7%; fill: rgba(70, 36, 0, 0.7); }
.sh-pad-tl.sx-on { place-items: start start; }
.sh-pad-tr.sx-on { place-items: start end; }
.sh-pad-bl.sx-on { place-items: end start; }
.sh-pad-br.sx-on { place-items: end end; }

/* The lit buttons, as real buttons over their pads (the well and the ball sit above their middles). */
.sx-hit {
  position: absolute; width: 44%; height: 44%; padding: 0; border: 0; background: none;
  cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.sx-hit:active { cursor: grabbing; }
.sx-hit-tl { left: 4%; top: 4%; border-radius: 40% 8% 8% 8%; }
.sx-hit-tr { right: 4%; top: 4%; border-radius: 8% 40% 8% 8%; }
.sx-hit-bl { left: 4%; bottom: 4%; border-radius: 8% 8% 8% 40%; }
.sx-hit-br { right: 4%; bottom: 4%; border-radius: 8% 8% 40% 8%; }
.sx-hit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sh-pad.is-peek { filter: brightness(1.14); }
.sh-pad.is-down {
  filter: brightness(1.12); transform: scale(0.975);
  box-shadow: inset 0 2px 6px rgba(90, 40, 0, 0.5), inset 0 0 0 1px rgba(255, 240, 200, 0.7), 0 0 44px 8px rgba(var(--buttons-rgb), 0.8), 0 0 120px 20px rgba(var(--buttons-rgb), 0.3);
}
/* The ball leans the way you roll, and the ring's marker for that way lights. */
.sx-play .sh-liquid { transform: scale(1.3); transition: transform 0.45s var(--ease-out); }
.sx-play .sh-spec, .sx-play .sh-orb { transition: transform 0.45s var(--ease-out), filter 0.4s var(--ease); }
.sx-play[data-way="up"] .sh-liquid { transform: scale(1.3) translateY(-10%) rotate(-8deg); }
.sx-play[data-way="down"] .sh-liquid { transform: scale(1.3) translateY(10%) rotate(8deg); }
.sx-play[data-way="left"] .sh-liquid { transform: scale(1.3) translateX(-10%) rotate(-24deg); }
.sx-play[data-way="right"] .sh-liquid { transform: scale(1.3) translateX(10%) rotate(24deg); }
.sx-play[data-way="up"] .sh-spec { transform: translate(55%, -22%) scale(0.9); }
.sx-play[data-way="down"] .sh-spec { transform: translate(55%, 110%) scale(1.1); }
.sx-play[data-way="left"] .sh-spec { transform: translate(-22%, 45%); }
.sx-play[data-way="right"] .sh-spec { transform: translate(135%, 45%); }
.sx-play[data-way] .sh-orb { filter: brightness(1.14) saturate(1.12); }
.sx-play[data-way="tap"] .sh-orb { transform: scale(0.97); }
.sx-dial { position: absolute; inset: 10%; border-radius: 50%; opacity: 0; transition: opacity 0.25s var(--ease); pointer-events: none; }
.sx-play.is-dial .sx-dial { opacity: 1; }
.sx-dial i {
  position: absolute; width: 5%; height: 5%; border-top: 3px solid; border-left: 3px solid; border-radius: 2px;
  color: rgba(255, 255, 255, 0.28); transition: color 0.2s, filter 0.2s;
}
.sx-dial-up { left: 47.5%; top: 2.5%; transform: rotate(45deg); }
.sx-dial-down { left: 47.5%; bottom: 2.5%; transform: rotate(225deg); }
.sx-dial-left { top: 47.5%; left: 2.5%; transform: rotate(-45deg); }
.sx-dial-right { top: 47.5%; right: 2.5%; transform: rotate(135deg); }
.sx-play[data-way="up"] .sx-dial-up, .sx-play[data-way="down"] .sx-dial-down,
.sx-play[data-way="left"] .sx-dial-left, .sx-play[data-way="right"] .sx-dial-right { color: var(--buttons); filter: drop-shadow(0 0 8px rgba(var(--buttons-rgb), 0.95)); }

/* Labels over the stage: one at each lit corner while it rests, and the held button's moves
   (up, down, left, right, and its tap in its own corner) while it's held or pointed at. */
.sx-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sx-callout, .sx-rl {
  position: absolute;
  display: grid;
  gap: 1px;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(14, 15, 21, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(var(--buttons-rgb), 0.35), 0 10px 30px -12px rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}
.sx-callout { max-width: 48%; animation: sx-rise 0.6s var(--ease-out) 0.6s backwards; transition: opacity 0.2s var(--ease); }
.sx-callout b { color: var(--buttons); font-size: 11.5px; font-weight: 600; }
.sx-callout-tl { left: 0; top: 0; }
.sx-callout-tr { right: 0; top: 0; text-align: right; }
.sx-callout-bl { left: 0; bottom: 0; }
.sx-callout-br { right: 0; bottom: 0; text-align: right; }
.sx-callout-dim { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px var(--line); color: var(--text-2); }
.sx-callout-dim b { color: var(--text-3); }
.sx-play.is-ring .sx-callout { opacity: 0; }
.sx-ringset { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), visibility 0s 0.2s; }
.sx-ringset.is-on { opacity: 1; visibility: visible; transition: opacity 0.2s var(--ease); }
.sx-rl { max-width: 40%; font-weight: 600; text-align: center; transition: background-color 0.18s, color 0.18s, box-shadow 0.2s, transform 0.3s var(--ease-out); }
.sx-rl .sx-keys { display: none; }
.sx-rl::before { color: var(--buttons); font-size: 11.5px; font-weight: 700; }
.sx-rl-up { top: 0; left: 50%; transform: translateX(-50%); }
.sx-rl-up::before { content: "↑"; }
.sx-rl-down { bottom: 0; left: 50%; transform: translateX(-50%); }
.sx-rl-down::before { content: "↓"; }
.sx-rl-left { left: 0; top: 50%; max-width: 30%; transform: translateY(-50%); text-align: left; }
.sx-rl-left::before { content: "←"; }
.sx-rl-right { right: 0; top: 50%; max-width: 30%; transform: translateY(-50%); text-align: right; }
.sx-rl-right::before { content: "→"; }
.sx-rl-tap { max-width: 29%; }
.sx-ringset[data-kind="gesture"] .sx-rl-tap::before { content: "Tap"; }
.sx-ringset[data-kind="press"] .sx-rl-tap { max-width: 46%; }
.sx-ringset[data-kind="press"] .sx-rl-tap::before { content: "Press"; }
.sx-rl-usual { color: var(--text-2); font-weight: 500; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px var(--line); }
.sx-at-tl .sx-rl-tap { left: 0; top: 0; text-align: left; }
.sx-at-tr .sx-rl-tap { right: 0; top: 0; text-align: right; }
.sx-at-bl .sx-rl-tap { left: 0; bottom: 0; text-align: left; }
.sx-at-br .sx-rl-tap { right: 0; bottom: 0; text-align: right; }
.sx-rl.is-fire {
  background: linear-gradient(180deg, #ffd27e, #ffaa2e); color: #2a1500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 34px 2px rgba(var(--buttons-rgb), 0.7), 0 10px 30px -12px rgba(0, 0, 0, 0.9);
}
.sx-rl.is-fire::before { color: #5a2e00; }
.sx-rl-up.is-fire { transform: translateX(-50%) translateY(-4px) scale(1.05); }
.sx-rl-down.is-fire { transform: translateX(-50%) translateY(4px) scale(1.05); }
.sx-rl-left.is-fire { transform: translateY(-50%) translateX(-4px) scale(1.05); }
.sx-rl-right.is-fire { transform: translateY(-50%) translateX(4px) scale(1.05); }
.sx-rl-tap.is-fire { transform: scale(1.05); }
@media (max-width: 420px) {
  .sx-callout, .sx-rl { padding: 5px 8px; font-size: 12px; border-radius: 10px; }
}

/* What the Mac gets: the move, its name and its keys, under the trackball. */
.sx-readout {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 460px; min-height: 54px;
  padding: 8px 8px 8px 16px; border-radius: 17px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px var(--line);
  animation: sx-fade 0.5s var(--ease-out);
}
.sx-ro { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14.5px; line-height: 1.35; }
.sx-ro-idle { color: var(--text-3); font-size: 13.5px; }
.sx-ro-move { color: var(--text-3); }
.sx-ro-name { color: var(--text); font-weight: 650; }
.sx-ro-x { color: var(--buttons); font-family: var(--rounded); font-weight: 700; font-variant-numeric: tabular-nums; }
.sx-ro.is-pop > * { animation: sx-ropop 0.36s var(--ease-out) backwards; }
.sx-ro.is-pop > :nth-child(2) { animation-delay: 40ms; }
.sx-ro.is-pop > :nth-child(3) { animation-delay: 80ms; }
@keyframes sx-ropop { from { opacity: 0; transform: translateY(7px) scale(0.96); } }
.sx-replay {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 38px; padding: 0 14px 0 11px; border: 0; border-radius: 999px;
  background: rgba(var(--buttons-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--buttons-rgb), 0.45);
  color: #ffd796; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: transform 0.3s var(--ease-out), background-color 0.2s, opacity 0.2s;
}
.sx-replay .icon { width: 13px; height: 13px; fill: currentColor; stroke-width: 1; }
@media (hover: hover) { .sx-replay:hover { background: rgba(var(--buttons-rgb), 0.2); transform: translateY(-1px); } }
.sx-replay:active { transform: scale(0.95); transition-duration: 0.08s; }
.sx-replay:focus-visible { outline: 2px solid var(--buttons); outline-offset: 2px; border-radius: 999px; }
.sx-replay[disabled] { opacity: 0.45; cursor: default; transform: none; }

/* Coming back from Glideball: a ring of light leaves the ball once, and the lit buttons flash. */
.sx-stage::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  border: 2px solid rgba(var(--buttons-rgb), 0.9);
  box-shadow: 0 0 30px 4px rgba(var(--buttons-rgb), 0.5);
  opacity: 0;
  pointer-events: none;
}
.sx-back .sx-hero .sx-stage::after { animation: sx-ripple 1.1s var(--ease-out); }
.sx-back .sx-hero .sh-pad.sx-on { animation: sx-flash 0.9s var(--ease-out); }
@keyframes sx-ripple { 0% { opacity: 1; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.9); } }

/* --------------------------------------------------------------- Every move */
.pg-section > .sx-sub { margin-top: -6px; color: var(--text-3); font-size: 14.5px; }
.sx-btns { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; align-items: start; }
.sx-btn {
  padding: 18px 12px 14px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(var(--buttons-rgb), 0.1), transparent 70%) padding-box,
    var(--face) padding-box,
    linear-gradient(rgba(13, 14, 19, 0.8), rgba(13, 14, 19, 0.8)) padding-box,
    var(--edge) border-box;
  box-shadow: var(--lift);
}
.sx-btn-h { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-size: 17px; }
.sx-movelist { list-style: none; margin: 10px 0 0; padding: 0; }
.sx-movelist li + li { border-top: 1px solid var(--line); }
.sx-move {
  display: grid; grid-template-columns: 26px 84px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px;
  width: 100%; min-height: 52px; padding: 8px; border: 0; border-radius: 12px; background: none;
  color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sx-move-static { cursor: default; }
.sx-move-glyph { color: var(--buttons); font-size: 17px; font-weight: 700; text-align: center; transition: transform 0.35s var(--ease-out); }
.sx-move-dir { color: var(--text-3); font-size: 13.5px; }
.sx-move-do { display: grid; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.sx-how { color: var(--text-3); font-size: 12.5px; font-weight: 400; }
.sx-move-dim .sx-move-do { color: var(--text-2); font-weight: 400; }
@media (hover: hover) { button.sx-move:hover { background: rgba(var(--buttons-rgb), 0.07); } }
button.sx-move:focus-visible { outline: 2px solid var(--buttons); outline-offset: -2px; border-radius: 12px; }
.sx-move.is-playing { background: rgba(var(--buttons-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--buttons-rgb), 0.45); }
.sx-move[data-play-way="up"].is-playing .sx-move-glyph { transform: translateY(-4px); }
.sx-move[data-play-way="down"].is-playing .sx-move-glyph { transform: translateY(4px); }
.sx-move[data-play-way="left"].is-playing .sx-move-glyph { transform: translateX(-4px); }
.sx-move[data-play-way="right"].is-playing .sx-move-glyph { transform: translateX(4px); }
.sx-note { margin: 10px 8px 0; color: var(--text-3); font-size: 13.5px; }
@media (max-width: 520px) {
  .sx-move { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .sx-move-dir { grid-column: 2; grid-row: 1; font-size: 12.5px; }
  .sx-move-do { grid-column: 2; grid-row: 2; }
  .sx-move-glyph { grid-row: 1 / span 2; }
  .sx-move .sx-keys { grid-row: 1 / span 2; grid-column: 3; }
}

/* --------------------------------------------------------------- Why, what changes, the path */
.sx-quote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 18px 0 0; align-items: start; max-width: 780px; }
.sx-quote .sx-orb { grid-row: span 2; margin-top: 4px; }
.sx-quote blockquote { margin: 0; color: var(--text); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; letter-spacing: -0.01em; }
.sx-quote figcaption { color: var(--text-3); font-size: 14px; }
.sx-quote figcaption a { color: var(--text-2); }
.sx-diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 18px; }
.sx-diff-col { padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.sx-diff-new { background: rgba(var(--buttons-rgb), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--buttons-rgb), 0.32); }
.sx-diff h3 { font-size: 15px; color: var(--text-2); font-weight: 600; }
.sx-diff-new h3 { color: #ffd796; }
.sx-diff ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.sx-diff b { color: var(--text); }
.sx-path { list-style: none; counter-reset: path; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sx-path li { counter-increment: path; position: relative; display: grid; align-content: start; gap: 4px; padding-top: 40px; color: var(--text-3); font-size: 14px; line-height: 1.45; }
.sx-path li::before {
  content: counter(path); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2); font-family: var(--rounded); font-size: 14px; font-weight: 700;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.sx-path li::after { content: ""; position: absolute; left: 34px; right: -6px; top: 13px; height: 2px; border-radius: 2px; background: var(--line-2); }
.sx-path li:last-child::after { display: none; }
.sx-path b { color: var(--text); font-size: 15px; }
.sx-path li.is-done::before { content: "✓"; background: var(--buttons); color: #2a1500; box-shadow: 0 0 18px -2px rgba(var(--buttons-rgb), 0.9); animation: sx-pop 0.45s var(--ease-out); }
.sx-path li.is-done::after { background: linear-gradient(90deg, var(--buttons), var(--line-2)); }
@media (max-width: 720px) {
  .sx-path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sx-path li { padding: 2px 0 20px 42px; }
  .sx-path li::after { left: 13px; right: auto; top: 32px; bottom: 2px; width: 2px; height: auto; }
}
.sx-remix p { max-width: 68ch; }
.pg-section > .sx-built { margin-top: 12px; }

/* --------------------------------------------------------------- Red note, facts, the end */
.sx-red {
  display: flex;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 56px);
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 69, 58, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.38), 0 20px 60px -40px rgba(255, 69, 58, 0.8);
  color: var(--text-2);
}
.sx-red > .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--bad); }
.sx-red h2 { color: #ffc9c4; font-size: 18px; }
.sx-red ul { margin: 8px 0 0; padding-left: 18px; }
.sx-red p { margin-top: 8px; }
.sx-red strong { color: var(--text); }

.sx-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.sx-facts > div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.sx-facts dt { color: var(--text-3); font-size: 13px; }
.sx-facts dd { margin: 4px 0 0; color: var(--text); font-size: 15px; }
.sx-others { margin-top: 16px; }
.sx-report { margin-top: 14px; font-size: 14px; }
.sx-report a { color: var(--text-3); }
.sx-report a:hover { color: var(--text-2); }
.sx-again { margin-top: clamp(48px, 7vw, 72px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* --------------------------------------------------------------- Try it, and the moment after */
.sx-try { position: relative; transition: transform 0.18s var(--ease-out), box-shadow 0.3s var(--ease); }
.sx-try:active { transform: scale(0.97); transition-duration: 0.08s; }
.sx-try.is-sent { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 1px rgba(255, 220, 160, 0.7), 0 0 44px -6px rgba(var(--buttons-rgb), 0.9); }
.sx-try.is-opening { animation: sx-press 0.5s var(--ease-out); }
.sx-try.is-opening .icon { animation: sx-nudge 0.9s var(--ease-out) infinite; }
@keyframes sx-press { 40% { transform: scale(0.96); } 100% { transform: scale(1); } }
@keyframes sx-nudge { 50% { transform: translateY(2px); } }
/* The buttons it lights flash once more as Glideball opens, then the hero's ball brightens. */
.sx-opening .sh-pad.sx-on { animation: sx-flash 0.9s var(--ease-out); }
.sx-opening .sx-hero .sh-orb { filter: brightness(1.18) saturate(1.1); transition: filter 0.5s var(--ease); }
@keyframes sx-flash { 35% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 40px 8px rgba(var(--buttons-rgb), 0.85), 0 0 110px 20px rgba(var(--buttons-rgb), 0.35); } }
/* Share: the site's secondary button (styles.css .btn-secondary), with the hover, press and focus
   the primary has, and a confirmation you can feel: it dips, the share glyph lifts away while a
   check draws itself in its place, the label rolls over to "Link copied" and a green edge comes in.
   Both glyphs and both labels share one spot, so the button never changes size. */
.sx-share[hidden] { display: none; }
.sx-share {
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.3s var(--ease), background-color 0.2s;
}
.sx-share::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120% 140% at 50% -20%, rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .sx-share:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 30px -14px rgba(0, 0, 0, 0.9);
  }
  .sx-share:hover::after { opacity: 1; }
}
.sx-share:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.sx-share:focus-visible { outline: 2px solid var(--ball); outline-offset: 3px; }
.sx-share-glyph, .sx-share-text { display: inline-grid; }
.sx-share-glyph > *, .sx-share-text > * { grid-area: 1 / 1; justify-self: center; }
.sx-share-glyph .icon { transition: transform 0.32s var(--ease-out), opacity 0.2s; }
.sx-share-check { opacity: 0; color: var(--ok); }
.sx-share-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sx-share-text > * { transition: transform 0.32s var(--ease-out), opacity 0.22s; }
.sx-share-done { opacity: 0; transform: translateY(70%); color: #c6f6d2; }
.sx-share.is-done { animation: sx-dip 0.42s var(--ease-out); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(48, 209, 88, 0.65), 0 0 28px -8px rgba(48, 209, 88, 0.6); }
.sx-share.is-done .sx-share-glyph .icon:first-child { opacity: 0; transform: translateY(-80%); }
.sx-share.is-done .sx-share-check { opacity: 1; }
.sx-share.is-done .sx-share-check path { animation: sx-draw 0.38s 0.08s var(--ease-out) forwards; }
.sx-share.is-done .sx-share-idle { opacity: 0; transform: translateY(-70%); }
.sx-share.is-done .sx-share-done { opacity: 1; transform: none; }
.sx-share.is-failed { animation: sx-shake 0.36s var(--ease); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 69, 58, 0.6); }
@keyframes sx-dip { 30% { transform: scale(0.95); } 70% { transform: scale(1.02); } }
@keyframes sx-draw { to { stroke-dashoffset: 0; } }
@keyframes sx-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.sx-try-note { margin-top: 12px; color: var(--text-3); font-size: 14px; }
.sx-missing {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(var(--ball-rgb), 0.08);
  box-shadow: inset 0 0 0 1px rgba(var(--ball-rgb), 0.35), 0 16px 40px -24px rgba(var(--ball-rgb), 0.7);
  color: var(--text-2);
  font-size: 14.5px;
}
.sx-missing[hidden] { display: none; }
.sx-missing.is-new { animation: sx-rise 0.45s var(--ease-out); }
.sx-missing > .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--ball); }
.sx-missing strong { color: var(--text); }
.sx-missing-row { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sx-again { flex-direction: column; align-items: center; text-align: center; }
.sx-again .sx-tryblock { display: grid; justify-items: center; max-width: 560px; }
.sx-again .sx-missing { text-align: left; }
.sx-more { margin-top: 18px; color: var(--text-3); font-size: 14px; }
.sx-more a { color: var(--text-2); }

.sx-again { margin-top: clamp(40px, 6vw, 64px); }
.sx-keep .icon { transition: transform 0.35s var(--ease-out); }
.sx-keep .sx-keep-on { opacity: 0; transform: translateY(70%); color: #ffd796; }
.sx-keep[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(var(--buttons-rgb), 0.65), 0 0 28px -8px rgba(var(--buttons-rgb), 0.6); }
.sx-keep[aria-pressed="true"] .icon { fill: var(--buttons); color: var(--buttons); }
.sx-keep[aria-pressed="true"] .sx-keep-off { opacity: 0; transform: translateY(-70%); }
.sx-keep[aria-pressed="true"] .sx-keep-on { opacity: 1; transform: none; }
.sx-keep.is-pop .icon { animation: sx-pop 0.45s var(--ease-out); }
.sx-keep:focus-visible { outline: 2px solid var(--ball); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .sx-try.is-opening, .sx-try.is-opening .icon, .sx-opening .sh-pad.sx-on { animation: none; }
  .sx-try:active { transform: none; }
  .sx-item, .sx-top-copy, .sx-sub-hero, .sx-hero-copy, .sx-callout, .sx-stage { animation-name: sx-fade; }
  .sh-pad.sx-on { animation: none; }
  .sh-pad.is-down { transform: none; }
  .sx-card, .sx-card:hover, .sx-card:focus-visible, .sx-card:active, .sx-appchip:hover, .sx-save:hover, .sx-replay:hover { transform: none; }
  .sx-share:hover, .sx-share:active, .sx-share.is-done, .sx-share.is-failed { transform: none; animation: none; }
  .sx-share.is-done .sx-share-check path { animation: none; stroke-dashoffset: 0; }
  .sx-share-glyph .icon, .sx-share-text > * { transform: none !important; }
  .sx-back .sx-hero .sx-stage::after, .sx-back .sx-hero .sh-pad.sx-on { animation: none; }
  /* The ball doesn't lean and nothing slides: a roll still lights its label and its marker. */
  .sx-play .sh-liquid, .sx-play[data-way] .sh-liquid { transform: scale(1.3); }
  .sx-play .sh-spec, .sx-play[data-way] .sh-spec, .sx-play[data-way] .sh-orb { transform: none; }
  .sx-rl-up.is-fire, .sx-rl-down.is-fire { transform: translateX(-50%); }
  .sx-rl-left.is-fire, .sx-rl-right.is-fire { transform: translateY(-50%); }
  .sx-rl-tap.is-fire { transform: none; }
  .sx-ro.is-pop > *, .sx-save.is-pop .icon, .sx-keep.is-pop .icon, .sx-path li.is-done::before, .sx-badge { animation: none; }
  .sx-move.is-playing .sx-move-glyph { transform: none !important; }
}
