/* knownprint.com use-case scenes: one short animated story beside each use case on /use-cases
   (use-cases.html), played by scenes.js. Every colour is a docs/design/palette.md hex, as in
   site.css; this file only adds to site.css and loads after it.

   How a scene works
   - .scene is the stage. Its markup carries every beat class (b1 to bN, N = the count of times in
     data-beats), so with no script, under reduced motion or with no IntersectionObserver the
     stage shows its last frame. scenes.js takes them off (is-live), then adds b1, b2 and so on at
     the data-beats times while the scene is in view, holds data-hold ms, fades (is-out) and
     starts again. A rule hides a part until its beat with `.scene-x:not(.bN) .part` and changes
     it after a beat with `.scene-x.bN .part`.
   - is-playing is on while a scene plays: endless motion (a pulse, a stream) runs only then.
     is-rewinding is on for the one frame a scene goes back to its start: nothing inside it
     transitions.
   - A beat that should replay a short effect (a click, a pop) switches the effect between two
     keyframes of the same shape (sc-pop-a, sc-pop-b), which restarts it. The beat classes add
     up, so such rules come one per beat in beat order: the latest beat's rule then wins.
   - Numbers that count are CSS counters on a registered integer (--sc-n), shown by ::after, so
     they tick up as the value changes and need no script.
   - Each scene's own rules sit under its class (.scene-pay and so on) at the end of this file,
     with its own transitions inside the one reduced-motion block of that scene.

   Shared parts
   - .sc-win, a window of the customer's site: .sc-win-bar (title), .sc-win-body.
   - .sc-kp, knownprint's answer as the site's backend sees it, on navy (palette section 12,
     the tooltip surface): .sc-kp-head with the mark, .sc-row (.sc-k label, value), .sc-id (a
     visitor id), .sc-meter (a bar, --sc-v 0 to 1), .sc-num (a counting number, --sc-n).
   - .sc-tag with is-deny, is-allow, is-hold or is-info (verdict text on its badge fill), and on
     navy the Dark column's pairs.
   - .sc-stamp, the big red word that lands at the end (Blocked, Held and the like).
   - .sc-cursor, a pointer. */

@property --sc-n {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

/* Layout: the text and the scene side by side, the scene changing sides each section; on narrow
   screens the scene sits between the heading and the list. */
.uc {
  display: grid;
  grid-template-areas:
    "head"
    "scene"
    "offer";
  gap: 28px;
}

.uc > .section-head {
  grid-area: head;
  margin-bottom: 0;
}

.uc > .scene {
  grid-area: scene;
}

.uc > .offer-col {
  grid-area: offer;
}

@media (min-width: 1024px) {
  .uc {
    grid-template-areas:
      "head scene"
      "offer scene";
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 56px;
    row-gap: 28px;
  }

  .uc-flip {
    grid-template-areas:
      "scene head"
      "scene offer";
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .uc > .scene {
    align-self: stretch;
  }
}

/* The stage. */
.scene {
  /* The light tokens, fixed: the homepage's moods retoken :root, never a scene. */
  --text: #0b1b33;
  --text-2: #475569;
  --border: #d9e1ec;
  --border-strong: #64748b;
  --primary: #2451e6;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 28px 18px 46px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 1px 1px, #d9e1ec 1px, transparent 1.6px) 0 0 / 20px 20px,
    linear-gradient(160deg, #ffffff, #eef3ff 75%);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.35;
  container-type: inline-size;
  -webkit-user-select: none;
  user-select: none;
}

.section-card .scene {
  background:
    radial-gradient(circle at 1px 1px, #d9e1ec 1px, transparent 1.6px) 0 0 / 20px 20px,
    linear-gradient(160deg, #f4f7fc, #eef3ff 75%);
}

@media (min-width: 640px) {
  .scene {
    min-height: 420px;
    padding: 36px 28px 48px;
  }
}

.scene .icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
}

/* A window of the customer's site. */
.sc-win {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.sc-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 650;
}

.sc-win-bar::before {
  width: 30px;
  height: 8px;
  flex: none;
  background: radial-gradient(circle, #d9e1ec 3.5px, transparent 4px) 0 0 / 11px 8px repeat-x;
  content: "";
}

.sc-win-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.sc-label {
  color: var(--text-2);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sc-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #ffffff;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.sc-btn {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 650;
}

/* The scene's own layout box: a wide stage draws it a little larger. */
.sc-set {
  position: relative;
  width: min(100%, 540px);
}

@container (min-width: 600px) {
  .sc-set {
    zoom: 1.12;
  }
}

/* The narrowest phones (a 320 px screen) draw it a little smaller, at the 290 px layout every
   scene is built for. */
@container (max-width: 279px) {
  .sc-set {
    zoom: 0.88;
  }
}

/* knownprint's answer, on navy. */
.sc-kp {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px 16px;
  border: 1px solid #243b5e;
  border-radius: 14px;
  background: #0b1b33;
  box-shadow: var(--shadow);
  color: #f4f7fc;
}

.sc-kp-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sc-kp-head .mark {
  width: 18px;
  height: 18px;
  stroke-width: 2.8;
}

.sc-kp-head .mark-frame {
  stroke: #ffffff;
}

.sc-kp-head .mark-lines {
  stroke: #22c4e0;
}

/* The live dot at the head's right end. */
.sc-kp-head::after {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #22c4e0;
  box-shadow: 0 0 0 3px #132a4d;
  content: "";
}

.sc-k {
  color: #a9b8cf;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sc-id {
  color: #7fa6ff;
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.sc-meter {
  --sc-v: 0;
  --sc-fill: #22c4e0;
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #243b5e;
}

.sc-meter > i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sc-fill);
  transform: scaleX(var(--sc-v));
  transform-origin: left;
}

.sc-num {
  counter-reset: sc-n calc(var(--sc-n));
  font-variant-numeric: tabular-nums;
}

.sc-num::after {
  content: counter(sc-n);
}

/* Tags: a verdict is always a word and an icon beside its colour. */
.sc-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.sc-tag .icon {
  width: 1em;
  height: 1em;
  stroke-width: 2.6;
}

.sc-tag.is-deny {
  background: #fef2f2;
  color: #b91c1c;
}

.sc-tag.is-allow {
  background: #f0fdf4;
  color: #15803d;
}

.sc-tag.is-hold {
  background: #fffbeb;
  color: #b45309;
}

.sc-tag.is-info {
  background: #eef3ff;
  color: #2451e6;
}

.sc-kp .sc-tag.is-deny {
  background: #7f1d1d;
  color: #fca5a5;
}

.sc-kp .sc-tag.is-allow {
  background: #14532d;
  color: #4ade80;
}

.sc-kp .sc-tag.is-hold {
  background: #78350f;
  color: #fbbf24;
}

.sc-kp .sc-tag.is-info {
  background: #2a4470;
  color: #a9c3ff;
}

/* The word that lands at the end. */
.sc-stamp {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.28em 0.6em 0.3em 0.5em;
  border: 3px solid #dc2626;
  border-radius: 10px;
  background: #fef2f2;
  box-shadow:
    0 0 0 4px #ffffff,
    var(--shadow);
  color: #dc2626;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-7deg);
}

.sc-stamp .icon {
  width: 0.9em;
  height: 0.9em;
  stroke-width: 3.2;
}

.sc-stamp.is-allow {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}

.sc-stamp.is-hold {
  border-color: #b45309;
  background: #fffbeb;
  color: #b45309;
}

.sc-cursor {
  position: absolute;
  z-index: 6;
  width: 22px;
  height: 22px;
  fill: #ffffff;
  stroke: #0b1b33;
  stroke-width: 1.6;
  stroke-linejoin: round;
  pointer-events: none;
}

/* The pause button scenes.js adds to every scene (motion that loops must be pausable). */
.sc-pause {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 11;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-2);
  cursor: pointer;
  opacity: 0.8;
}

.sc-pause:hover,
.sc-pause:focus-visible {
  color: var(--text);
  opacity: 1;
}

.sc-pause::before {
  width: 10px;
  height: 11px;
  background: linear-gradient(
    90deg,
    currentColor 3.5px,
    transparent 3.5px 6.5px,
    currentColor 6.5px
  );
  content: "";
}

.scene.is-paused .sc-pause::before {
  width: 9px;
  height: 11px;
  margin-left: 2px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Motion shared by every scene. Between two plays a veil in the stage's own background covers the
   scene (is-out), the scene goes back to its start under it, and the veil lifts again: the veil
   keeps its transition while is-rewinding stops everyone else's. */
@media (prefers-reduced-motion: no-preference) {
  .scene::after {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 520ms var(--ease-out);
    content: "";
  }

  .scene.is-out::after {
    opacity: 1;
  }

  /* The stage itself keeps its transitions: site.js may still be fading it in (data-reveal). */
  .scene.is-rewinding *,
  .scene.is-rewinding *::before,
  .scene.is-rewinding *::after {
    /* biome-ignore lint/complexity/noImportantStyles: a rewind must win over every beat rule. */
    transition: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: a rewind must win over every beat rule. */
    animation: none !important;
  }

  .sc-kp-head::after {
    animation: sc-live 1.8s ease-in-out infinite paused;
  }

  .scene.is-playing .sc-kp-head::after {
    animation-play-state: running;
  }
}

@keyframes sc-live {
  50% {
    box-shadow: 0 0 0 6px #132a4d;
    opacity: 0.55;
  }
}

/* A stamp landing: in big, then settling with a small overshoot. */
@keyframes sc-stamp {
  0% {
    opacity: 0;
    transform: rotate(-7deg) scale(2.2);
  }

  55% {
    opacity: 1;
    transform: rotate(-7deg) scale(0.92);
  }

  75% {
    transform: rotate(-7deg) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: rotate(-7deg) scale(1);
  }
}

/* The page shaking once as a stamp lands. */
@keyframes sc-thud {
  20% {
    transform: translate(-3px, 2px);
  }

  40% {
    transform: translate(3px, -2px);
  }

  60% {
    transform: translate(-2px, 1px);
  }

  80% {
    transform: translate(1px, 0);
  }
}

@keyframes sc-pop-a {
  40% {
    transform: scale(1.18);
  }
}

@keyframes sc-pop-b {
  40% {
    transform: scale(1.18);
  }
}

@keyframes sc-click-a {
  45% {
    transform: scale(0.82);
  }
}

@keyframes sc-click-b {
  45% {
    transform: scale(0.82);
  }
}

/* A ring that spreads from a part and fades. */
@keyframes sc-ring-a {
  0% {
    box-shadow: 0 0 0 0 #fca5a5;
  }

  100% {
    box-shadow: 0 0 0 14px #fef2f2;
  }
}

@keyframes sc-ring-b {
  0% {
    box-shadow: 0 0 0 0 #fca5a5;
  }

  100% {
    box-shadow: 0 0 0 14px #fef2f2;
  }
}

@keyframes sc-shake {
  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

/* Payment fraud: one browser tries card after card at a checkout. The bank declines four; the
   fifth is blocked once the site has counted five cards from one visitor id, while knownprint
   returns that visitor id for every try with its signals and a climbing suspect score. */
.pay-set {
  display: grid;
}

/* On a narrow stage the panel overlaps the checkout's foot, so the log ends above it. */
.pay-shop .sc-win-body {
  padding-bottom: 40px;
}

.pay-reel {
  display: block;
  flex: 1;
  height: 1.4em;
  overflow: hidden;
  letter-spacing: 0.04em;
}

.pay-reel > span {
  display: block;
  line-height: 1.4em;
  transform: translateY(calc(var(--pay-i, 0) * -100%));
}

.scene-pay.b2 .pay-reel {
  --pay-i: 1;
}

.scene-pay.b3 .pay-reel {
  --pay-i: 2;
}

.scene-pay.b4 .pay-reel {
  --pay-i: 3;
}

.scene-pay.b5 .pay-reel {
  --pay-i: 4;
}

.pay-press {
  position: relative;
}

.pay-btn > span {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 6px;
}

.scene-pay:not(.b6) .pay-btn-b,
.scene-pay.b6 .pay-btn-a {
  opacity: 0;
  transform: translateY(10px);
}

.scene-pay.b6 .pay-btn-a {
  transform: translateY(-10px);
}

.scene-pay.b6 .pay-btn {
  background: #dc2626;
}

.pay-cursor {
  top: 52%;
  right: 16%;
}

.scene-pay.b6 .pay-cursor {
  opacity: 0;
}

.pay-log {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--border);
  list-style: none;
}

.pay-log > li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.pay-log > li > .icon {
  color: #dc2626;
  stroke-width: 2.6;
}

.pay-log .sc-tag {
  margin-left: auto;
  font-family: var(--font);
}

.scene-pay:not(.b1) .pay-log > li:nth-child(1),
.scene-pay:not(.b2) .pay-log > li:nth-child(2),
.scene-pay:not(.b3) .pay-log > li:nth-child(3),
.scene-pay:not(.b4) .pay-log > li:nth-child(4),
.scene-pay:not(.b5) .pay-log > li:nth-child(5) {
  opacity: 0;
  transform: translateX(-12px);
}

.pay-log > li:nth-child(5) {
  color: #b91c1c;
  font-weight: 650;
}

.pay-kp {
  z-index: 2;
  width: 88%;
  margin-top: -26px;
  justify-self: end;
}

.pay-same {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a9b8cf;
  font-size: 0.75rem;
}

.pay-same .icon {
  color: #22c4e0;
}

.scene-pay:not(.b2) .pay-same {
  opacity: 0;
}

.pay-tally {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-count {
  --sc-n: 0;
  min-width: 1.2ch;
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.scene-pay.b1 .pay-count {
  --sc-n: 1;
}

.scene-pay.b2 .pay-count {
  --sc-n: 2;
}

.scene-pay.b3 .pay-count {
  --sc-n: 3;
}

.scene-pay.b4 .pay-count {
  --sc-n: 4;
}

.scene-pay.b5 .pay-count {
  --sc-n: 5;
  color: #dc2626;
}

.pay-tally-what {
  display: grid;
  gap: 5px;
}

.pay-dots {
  display: flex;
  gap: 5px;
}

.pay-dots > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8eef8;
}

.scene-pay.b1 .pay-dots > i:nth-child(1),
.scene-pay.b2 .pay-dots > i:nth-child(2),
.scene-pay.b3 .pay-dots > i:nth-child(3),
.scene-pay.b4 .pay-dots > i:nth-child(4),
.scene-pay.b5 .pay-dots > i:nth-child(5) {
  background: #ef4444;
}

.pay-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.pay-score {
  --sc-n: 4;
  font-size: 1.125rem;
  font-weight: 750;
}

.scene-pay.b3 .pay-score {
  --sc-n: 31;
  color: #fbbf24;
}

.scene-pay.b4 .pay-score {
  --sc-n: 58;
}

.scene-pay.b5 .pay-score {
  --sc-n: 91;
  color: #fca5a5;
}

.pay-meter {
  --sc-v: 0.04;
}

.scene-pay.b3 .pay-meter {
  --sc-v: 0.31;
  --sc-fill: #f59e0b;
}

.scene-pay.b4 .pay-meter {
  --sc-v: 0.58;
}

.scene-pay.b5 .pay-meter {
  --sc-v: 0.91;
  --sc-fill: #ef4444;
}

.pay-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pay-flags .sc-tag {
  font-size: 0.6875rem;
}

.scene-pay:not(.b3) .pay-flags > :nth-child(1),
.scene-pay:not(.b4) .pay-flags > :nth-child(2),
.scene-pay:not(.b5) .pay-flags > :nth-child(3) {
  opacity: 0;
  transform: scale(0.6);
}

.pay-stamp {
  top: 27%;
  left: 50%;
  translate: -50% -50%;
}

.scene-pay:not(.b6) .pay-stamp {
  opacity: 0;
}

.scene-pay.b6 .pay-shop {
  border-color: #fca5a5;
}

@container (min-width: 470px) {
  .pay-set {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: 16px;
  }

  .pay-shop .sc-win-body {
    padding-bottom: 16px;
  }

  .pay-kp {
    width: auto;
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pay-reel > span {
    transition: transform 420ms var(--ease-out);
  }

  .pay-btn,
  .pay-shop {
    transition:
      background-color 300ms ease,
      border-color 300ms ease;
  }

  .pay-btn > span,
  .pay-cursor,
  .pay-same,
  .pay-flags > *,
  .pay-log > li {
    transition:
      opacity 360ms var(--ease-out),
      transform 360ms var(--ease-out);
  }

  .pay-flags > * {
    transition-timing-function: cubic-bezier(0.3, 1.6, 0.5, 1);
  }

  .pay-dots > i {
    transition: background-color 300ms ease;
  }

  .pay-count {
    transition: color 300ms ease;
  }

  .pay-score {
    transition:
      --sc-n 700ms var(--ease-out),
      color 300ms ease;
  }

  .pay-meter > i {
    transition:
      transform 700ms var(--ease-out),
      background-color 400ms ease;
  }

  /* One rule per beat, in beat order, so the latest beat's keyframes win and restart. */
  .scene-pay.b1 .pay-cursor {
    animation: sc-click-a 280ms ease;
  }

  .scene-pay.b2 .pay-cursor {
    animation-name: sc-click-b;
  }

  .scene-pay.b3 .pay-cursor {
    animation-name: sc-click-a;
  }

  .scene-pay.b4 .pay-cursor {
    animation-name: sc-click-b;
  }

  .scene-pay.b5 .pay-cursor {
    animation-name: sc-click-a;
  }

  .scene-pay.b1 .pay-count {
    animation: sc-pop-a 360ms var(--ease-out);
  }

  .scene-pay.b2 .pay-count {
    animation-name: sc-pop-b;
  }

  .scene-pay.b3 .pay-count {
    animation-name: sc-pop-a;
  }

  .scene-pay.b4 .pay-count {
    animation-name: sc-pop-b;
  }

  .scene-pay.b5 .pay-count {
    animation-name: sc-pop-a;
  }

  .scene-pay.b5 .pay-kp {
    animation: sc-ring-a 900ms var(--ease-out);
  }

  .scene-pay.b6 .pay-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-pay.b6 .pay-shop {
    animation: sc-thud 380ms ease 260ms;
  }
}

/* Account takeover: one correct password, two browsers. */
.ato-set {
  --ato-g: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--ato-g);
  font-size: 0.75rem;
}

.ato-key,
.ato-who {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 6px;
  padding: 3px 12px 3px 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: #1b3fbf;
  font-weight: 700;
}

.ato-key {
  z-index: 1;
  grid-column: 1 / -1;
  box-shadow: var(--shadow);
  color: var(--text);
}

.ato-key .icon,
.ato-who .icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: currentColor;
  stroke: #ffffff;
}

.ato-who.ato-thief {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

.ato-fork {
  height: 32px;
  margin: -16px calc(var(--ato-g) / -2) 0 50%;
  border: solid #a9b8cf;
  border-width: 2px 0 0 2px;
  border-radius: 12px 0 0;
}

.ato-fork.ato-thief {
  margin: -16px 50% 0 calc(var(--ato-g) / -2);
  scale: -1 1;
}

.scene-ato.b3 .ato-own {
  border-color: #16a34a;
}

.scene-ato.b8 .ato-thief {
  border-color: #ef4444;
}

.ato-win {
  z-index: 1;
  margin-top: 8px;
}

.ato-win .sc-win-bar {
  font-size: 1em;
}

.scene-ato:not(.b1) .ato-win b,
.scene-ato:not(.b4) .ato-thief b {
  clip-path: inset(0 100% 0 0);
}

.ato-ok,
.ato-ask {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #15803d;
  font-size: 0.92em;
  font-weight: 700;
  transform-origin: left;
}

.ato-slot,
.ato-ver {
  display: grid;
  align-items: start;
  gap: 6px;
}

.ato-slot > *,
.ato-btn > span {
  grid-area: 1 / 1;
}

.scene-ato.b3 .ato-own .ato-btn {
  background: #15803d;
}

.scene-ato:not(.b2) .ato-ok,
.scene-ato:not(.b4) .ato-thief .ato-ok,
.scene-ato:not(.b3) .ato-b,
.scene-ato.b3 .ato-a,
.scene-ato.b6 .ato-thief .ato-btn,
.scene-ato:not(.b6) .ato-ver,
.scene-ato:not(.b8) .ato-stamp,
.scene-ato:not(.b2) .ato-res > *,
.scene-ato:not(.b5) .ato-res.ato-thief > *,
.scene-ato.b2 .ato-own::before,
.scene-ato.b5 .ato-res::before {
  opacity: 0;
  transform: scale(0.8);
}

.ato-ask {
  color: #b45309;
}

.ato-ask::after {
  content: "Verify it's you";
}

.scene-ato.b7 .ato-ask {
  color: #b91c1c;
}

.scene-ato.b7 .ato-ask::after {
  content: "Wrong code";
}

.ato-code {
  display: flex;
  gap: 3px;
}

.ato-win b,
.ato-code {
  clip-path: inset(0);
}

.ato-code > i {
  flex: 1;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  background: #fffbeb;
  font: 700 1em / 1.9 var(--mono);
  text-align: center;
}

.scene-ato:not(.b6) .ato-code {
  clip-path: inset(0 100% 0 0);
}

.scene-ato.b7 .ato-code > i {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

.scene-ato.b8 .ato-code > i {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

.ato-stamp {
  top: 33%;
  left: 48%;
  font-size: 1.4em;
  translate: -50% -50%;
}

.ato-kp {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(var(--ato-g) + 26px);
  margin-top: -12px;
  padding: 2em 12px 1em;
}

.ato-kp .sc-kp-head {
  grid-column: 1 / -1;
}

.ato-res {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #4ade80;
}

.ato-res.ato-thief {
  color: #fca5a5;
}

.ato-res .sc-k {
  margin-top: auto;
}

.ato-res::before {
  position: absolute;
  top: 40%;
  color: #8396b0;
  content: "Waiting for a sign-in";
}

.ato-find {
  display: flex;
  gap: 6px;
  font-weight: 700;
}

.ato-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.ato-score .sc-num {
  min-width: 2ch;
  font-size: 1.4em;
  font-weight: 750;
  text-align: right;
}

.ato-own .ato-score > * {
  --sc-fill: #4ade80;
  --sc-v: 0.04;
  --sc-n: 3;
}

.ato-thief .ato-score > * {
  --sc-fill: #ef4444;
  --sc-v: 0.84;
  --sc-n: 84;
}

.scene-ato:not(.b2) .ato-own *,
.scene-ato:not(.b5) .ato-thief * {
  --sc-v: 0;
  --sc-n: 0;
}

@container (min-width: 470px) {
  .ato-set {
    --ato-g: 16px;
    font-size: 0.8125rem;
  }

  .ato-code > i {
    line-height: 2.2;
  }

  .ato-stamp {
    top: 31%;
    font-size: 1.85em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ato-win b {
    transition: clip-path 480ms steps(8, end) 200ms;
  }

  .ato-code {
    transition: clip-path 540ms steps(6, end) 520ms;
  }

  .ato-ok,
  .ato-a,
  .ato-b,
  .ato-btn,
  .ato-ver,
  .ato-res > *,
  .ato-res::before,
  .ato-win,
  .ato-fork,
  .ato-code > i {
    transition:
      all 360ms ease,
      transform 460ms cubic-bezier(0.3, 1.5, 0.5, 1);
  }

  .ato-thief .ato-ok {
    transition-delay: 820ms;
  }

  .ato-res > :nth-child(n + 2),
  .ato-ver {
    transition-delay: 300ms;
  }

  .scene-ato.b6 .ato-thief .ato-btn {
    transition-duration: 160ms;
  }

  .ato-score .sc-num {
    transition: --sc-n 900ms var(--ease-out) 240ms;
  }

  .ato-score .sc-meter > i {
    transition: transform 900ms var(--ease-out) 240ms;
  }

  .scene-ato.b7 .ato-code {
    animation: sc-shake 420ms ease;
  }

  .scene-ato.b8 .ato-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-ato.b8 .ato-win.ato-thief {
    animation: sc-thud 380ms ease 260ms;
  }
}

/* Bots and scrapers: sign-ins look like people until knownprint's gate reads them, then bots stop
   at the site's door. Positions in percent of the lane, which zoom never rescales. */
.bot-set {
  display: grid;
  gap: 14px;
}

.bot-lane {
  --t: 28px;
  --p: 38px;
  position: relative;
  height: 160px;
  background:
    repeating-linear-gradient(#e2e8f0 0 2px, transparent 0 var(--p)) 0
    calc(var(--p) + 5px + var(--t) / 2) / auto calc(var(--p) * 2 + 2px) no-repeat;
  container-type: inline-size;
}

.bot-gate {
  position: absolute;
  inset: 24px auto -15px calc(28% - var(--t) / 2 - 4px);
  z-index: 2;
  width: calc(var(--t) + 6px);
  padding-top: 8px;
  border: 1px solid #243b5e;
  border-bottom: 0;
  border-radius: 99px 99px 0 0;
  background: #0b1b33;
  box-shadow: var(--shadow);
  color: #22c4e0;
  text-align: center;
}

.bot-gate::after {
  position: absolute;
  inset: 30px calc(var(--t) / 2 + 1px) 24px;
  background: #22c4e0;
  box-shadow: 0 0 8px 1px #22c4e0;
  content: "";
}

.bot-tok {
  --hue: #dc2626;
  --gx: calc(28% - var(--t) / 2);
  --door: calc(58% - var(--t) - 8px);
  --d: calc(var(--k, 0) * -0.6s);
  position: absolute;
  top: calc((var(--l, 0) + 1) * var(--p) + 6px);
  left: var(--x, 0px);
}

.bot-ok {
  --hue: #15803d;
}

.bot-tok .icon {
  width: var(--t);
  height: var(--t);
  padding: calc(var(--t) / 4 - 1px);
  border: 1.5px solid;
  border-radius: 50%;
  background: #ffffff;
  color: #64748b;
}

.bot-hit {
  --x: calc(var(--gx) + var(--t) + 12px);
}

.bot-hit .icon {
  color: var(--hue);
}

.bot-out .icon,
.bot-hit use {
  opacity: 0;
}

.bot-tok use + use {
  --a: 0;
  opacity: 0;
}

.bot-hit use:last-child {
  opacity: 1;
}

.bot-tok::after {
  position: absolute;
  top: 50%;
  right: 0;
  padding: 3px 7px;
  border-radius: 99px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.6875rem;
  opacity: 0;
  translate: 0 -50%;
  content: "Blocked";
}

.bot-ok::after {
  content: none;
}

.bot-out::after {
  opacity: 1;
}

.bot-tok:nth-of-type(2) {
  --k: 1;
  --l: 1;
  --x: calc(var(--gx) - var(--t) - 10px);
}

.bot-tok:nth-of-type(3) {
  --k: 2;
  --l: 2;
}

.bot-tok:nth-of-type(4) {
  --k: 3;
  --x: var(--door);
}

.bot-tok:nth-of-type(5) {
  --k: 4;
  --l: 1;
}

.bot-site {
  position: absolute;
  inset: 0 0 0 58%;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr 1fr;
}

.bot-ct {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  padding: 0 12px;
}

.bot-set .sc-num {
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1;
}

.bot-ct .sc-num {
  --sc-n: var(--np, 0);
  color: #15803d;
}

.bot-ct .bot-nb {
  --sc-n: var(--nb, 0);
  color: #dc2626;
  font-size: 1.75rem;
}

.scene-bot.b2 {
  --nb: 214;
  --np: 31;
}

.scene-bot.b3 {
  --nb: 560;
  --np: 76;
}

.scene-bot.b4 {
  --nb: 958;
  --np: 131;
}

.bot-stamp {
  top: -8px;
  left: min(79%, 100% - 72px);
  translate: -50% 0;
  font-size: 1.125rem;
}

.scene-bot:not(.b5) .bot-stamp {
  opacity: 0;
}

.scene-bot.b1 .bot-kp .sc-num {
  --sc-n: 63;
  color: #fbbf24;
}

.scene-bot.b1 .sc-meter {
  --sc-v: 0.63;
  --sc-fill: #f59e0b;
}

.scene-bot.b3 .bot-kp .sc-num {
  --sc-n: 97;
  color: #fca5a5;
}

.scene-bot.b3 .sc-meter {
  --sc-v: 0.97;
  --sc-fill: #ef4444;
}

.bot-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bot-flags > * {
  transform-origin: left;
}

.bot-tool {
  flex: 100%;
  font-size: 0.75rem;
}

.scene-bot:not(.b1) .sc-id,
.scene-bot:not(.b1) .bot-flags > :first-child,
.scene-bot:not(.b2) .bot-tool,
.scene-bot:not(.b3) .bot-flags > :nth-child(n + 3) {
  opacity: 0;
  transform: scale(0.6);
}

.scene-bot:not(.b1) .bot-tok::after {
  visibility: hidden;
}

@container (min-width: 420px) {
  .bot-lane {
    --t: 32px;
    --p: 48px;
    height: 200px;
  }

  .bot-ct {
    justify-items: end;
  }

  .bot-stamp {
    top: 114px;
    left: 60%;
  }

  .bot-kp {
    grid-template-columns: 1fr 1fr;
  }

  .bot-kp .sc-kp-head {
    grid-column: 1 / -1;
  }

  .bot-kp .sc-row {
    display: grid;
    gap: 4px;
  }

  .bot-flags {
    grid-area: 2 / 2 / 5;
    padding-left: 16px;
    border-left: 1px solid #243b5e;
  }
}

@keyframes bot-go {
  0% {
    left: 0;
  }

  27%,
  33% {
    left: var(--gx);
  }

  58%,
  100% {
    left: var(--door);
  }
}

@keyframes bot-tint {
  0% {
    opacity: 0;
  }

  0%,
  29% {
    color: #64748b;
  }

  5%,
  58% {
    opacity: 1;
    transform: none;
    box-shadow: 0 0 0 0 currentColor;
  }

  31%,
  100% {
    color: var(--hue);
  }

  66%,
  100% {
    opacity: 0;
    transform: scale(1.4);
    box-shadow: 0 0 0 10px transparent;
  }
}

@keyframes bot-swap {
  0%,
  29% {
    opacity: var(--a, 1);
  }

  31%,
  100% {
    opacity: calc(1 - var(--a, 1));
  }
}

@keyframes bot-word {
  0%,
  57% {
    opacity: 0;
    transform: scale(0.5);
  }

  64%,
  82% {
    opacity: 1;
    transform: none;
  }

  94%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes bot-scan {
  50%,
  85% {
    opacity: 0.3;
    box-shadow: 0 0 0 0 #22c4e0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scene-bot.is-playing .bot-tok {
    animation: bot-go 3s linear var(--d) infinite;
  }

  .scene-bot.is-playing .bot-tok .icon {
    animation: bot-tint 3s linear var(--d) infinite;
  }

  .scene-bot.is-playing use:not(:only-child) {
    animation: bot-swap 3s linear var(--d) infinite;
  }

  .scene-bot.is-playing .bot-tok::after {
    animation: bot-word 3s cubic-bezier(0.3, 1.6, 0.5, 1) var(--d) infinite;
  }

  .scene-bot.is-playing .bot-gate::after {
    animation: bot-scan 0.6s -0.3s infinite;
  }

  .bot-kp .sc-id,
  .bot-flags > * {
    transition:
      opacity 360ms var(--ease-out),
      transform 420ms cubic-bezier(0.3, 1.6, 0.5, 1);
  }

  .bot-set .sc-num {
    transition:
      --sc-n 700ms var(--ease-out),
      color 300ms;
  }

  .bot-kp i {
    transition:
      transform 700ms var(--ease-out),
      background-color 400ms;
  }

  .scene-bot.b4 .bot-ct .sc-num {
    animation: sc-pop-a 360ms var(--ease-out);
  }

  .scene-bot.b5 .bot-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-bot.b5 .bot-site {
    animation: sc-thud 380ms ease 260ms;
  }
}

/* New account fraud: one browser opens account after account, a web of them, until knownprint
   turns it red and the site blocks the sixth signup. --sig-k is the beat. */
.sig-set {
  display: grid;
  gap: 12px;
}

.scene-sig.b1 {
  --sig-k: 1;
}

.scene-sig.b2 {
  --sig-k: 2;
}

.scene-sig.b3 {
  --sig-k: 3;
}

.scene-sig.b4 {
  --sig-k: 4;
}

.scene-sig.b5 {
  --sig-k: 5;
}

.scene-sig.b6 {
  --sig-k: 6;
}

.scene-sig.b7 {
  --sig-k: 7;
}

.sig-reel {
  display: inline-grid;
  height: 20px;
  overflow: clip;
  line-height: 20px;
}

.sig-reel > span {
  translate: 0 calc(clamp(0, var(--sig-k, 1) - 1, 5) * -100%);
}

.sig-btn > span {
  grid-area: 1 / 1;
}

.scene-sig:not(.b7) .sig-btn-b,
.scene-sig.b7 .sig-btn-a {
  opacity: 0;
}

.scene-sig.b7 .sig-btn {
  background: #dc2626;
}

.sig-stamp {
  top: 64%;
  left: 50%;
  font-size: 1.25rem;
  translate: -50% -50%;
}

.scene-sig:not(.b7) .sig-stamp {
  opacity: 0;
}

.sig-web {
  position: relative;
  height: max(186px, 59cqw);
  container-type: size;
}

.sig-web > * {
  position: absolute;
  top: 50%;
  left: 50%;
}

.sig-ring {
  width: calc(74cqmin + 50px);
  aspect-ratio: 1;
  border: 1.5px dashed #d9e1ec;
  border-radius: 50%;
  translate: -50% -50%;
}

.scene-sig.b3 .sig-ring {
  border-color: #f59e0b;
}

.scene-sig.b6 .sig-ring {
  border-color: #ef4444;
}

/* Spoke i shows from beat i, clockwise from the top. */
.sig-sp {
  --sig-o: clamp(0, var(--sig-k, 0) - var(--sig-i) + 1, 1);
  --sig-a: calc(var(--sig-i) * 60deg - 150deg);
  --sig-d: calc(var(--sig-i) * 110ms - 110ms);
  width: 37cqmin;
  height: 2px;
  transform-origin: 0 50%;
  rotate: var(--sig-a);
}

.sig-s1 {
  --sig-i: 1;
}

.sig-s2 {
  --sig-i: 2;
}

.sig-s3 {
  --sig-i: 3;
}

.sig-s4 {
  --sig-i: 4;
}

.sig-s5 {
  --sig-i: 5;
}

.sig-s6 {
  --sig-i: 7;
  --sig-a: -150deg;
}

.sig-sp::before {
  position: absolute;
  inset: 0;
  background-color: #a9c3ff;
  transform-origin: 0 50%;
  scale: var(--sig-o) 1;
  content: "";
}

.sig-sp > i {
  position: absolute;
  inset: -16px -17px auto auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid #d9e1ec;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: #2451e6;
  opacity: var(--sig-o);
  rotate: calc(var(--sig-a) * -1);
  scale: calc(0.3 + var(--sig-o) * 0.7);
}

.scene-sig.b6 .sig-sp::before {
  background-color: #ef4444;
  box-shadow: 0 0 8px #fca5a5;
}

.scene-sig.b6 .sig-sp > i {
  border-color: #fca5a5;
  background-color: #fef2f2;
  color: #dc2626;
}

.scene-sig .sig-sp.sig-s6::before {
  background: repeating-linear-gradient(90deg, #ef4444 0 5px, transparent 5px 10px);
  box-shadow: none;
}

.scene-sig .sig-sp.sig-s6 > i {
  border: 2px dashed #fca5a5;
  background: #dc2626;
  color: #ffffff;
}

.sig-hub {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0b1b33;
  box-shadow:
    0 0 0 5px #ffffff,
    var(--shadow);
  color: #22c4e0;
  font-size: 1.5rem;
  translate: -50% -50%;
}

.scene-sig.b6 .sig-hub {
  box-shadow:
    0 0 0 5px #ffffff,
    var(--shadow),
    0 0 0 7px #ef4444;
  color: #fca5a5;
}

.sig-one {
  border: 1px solid #d9e1ec;
  background: #ffffff;
  color: #475569;
  translate: -50% calc(10cqmin + 5px);
}

.scene-sig.b6 .sig-one {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

.sig-tally,
.sig-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sig-count {
  --sc-n: min(var(--sig-k, 0), 5);
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1;
}

.sig-score {
  display: grid;
  flex: 1 1 120px;
  gap: 8px;
}

.sig-bar {
  --sig-s: clamp(4, var(--sig-k, 0) * 23 - 42, 96);
}

.sig-meter {
  --sc-v: calc(var(--sig-s) / 100);
  --sc-fill: var(--sig-f, #22c4e0);
  flex: 1;
}

.sig-num {
  --sc-n: var(--sig-s);
  font-size: 1.125rem;
  font-weight: 750;
}

.scene-sig.b3 .sig-bar {
  --sig-f: #f59e0b;
  color: #fbbf24;
}

.scene-sig.b6 :is(.sig-bar, .sig-count) {
  --sig-f: #ef4444;
  color: #fca5a5;
}

.sig-stats,
.sig-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sig-stats {
  align-items: end;
  gap: 10px 16px;
}

.sig-tally {
  flex: 0 1 150px;
}

.scene-sig:not(.b3) .sig-flags > :nth-child(1),
.scene-sig:not(.b4) .sig-flags > :nth-child(2),
.scene-sig:not(.b5) .sig-flags > :nth-child(3) {
  opacity: 0;
  transform: scale(0.6);
}

@container (min-width: 420px) {
  .sig-set {
    grid-template-columns: 1fr 1fr;
  }

  .sig-web {
    height: auto;
  }

  .sig-kp {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sig-reel > span {
    transition: translate 420ms var(--ease-out);
  }

  .sig-btn,
  .sig-btn > span,
  .sig-ring,
  .sig-hub,
  .sig-one,
  .sig-count {
    transition: all 300ms ease;
  }

  .sig-flags > * {
    transition: all 360ms cubic-bezier(0.3, 1.6, 0.5, 1);
  }

  .sig-sp::before {
    transition:
      all 140ms ease var(--sig-d),
      scale 480ms var(--ease-out);
  }

  .sig-sp > i {
    transition:
      all 140ms ease var(--sig-d),
      opacity 240ms ease 200ms,
      scale 520ms cubic-bezier(0.3, 1.6, 0.5, 1) 200ms;
  }

  .sig-num,
  .sig-meter > i {
    transition: all 700ms var(--ease-out);
  }

  /* all does not reach a registered custom property: name the count so it ticks. */
  .sig-num {
    transition-property: all, --sc-n;
  }

  .scene-sig.b6 .sig-sp > i {
    animation: sc-pop-a 360ms var(--ease-out) var(--sig-d);
  }

  .scene-sig.b6 .sig-count {
    animation: sc-pop-a 360ms var(--ease-out);
  }

  .scene-sig.b6 .sig-kp {
    animation: sc-ring-a 900ms var(--ease-out);
  }

  .scene-sig.b7 .sig-s6 > i {
    animation: sc-shake 420ms ease 500ms;
  }

  .scene-sig.b7 .sig-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-sig.b7 .sig-form {
    animation: sc-thud 380ms ease 260ms;
  }
}

/* Free-trial abuse: a first trial runs dry, then the same person clears cookies and signs up in a
   private window with a fresh email. knownprint returns the same visitor id, so the site refuses. */
.trial-set {
  display: grid;
  gap: 14px;
}

.trial-stack {
  display: grid;
}

.trial-stack > * {
  grid-area: 1 / 1;
  align-self: start;
}

.trial-a {
  margin-right: 12px;
}

.scene-trial:not(.b4) .trial-a {
  transform: translateY(64px);
}

.trial-b {
  margin: 106px 0 0 12px;
}

.trial-b .sc-win-bar {
  border-radius: 13px 13px 0 0;
  background: #132a4d;
  color: #f4f7fc;
}

.trial-pv {
  margin-left: auto;
  background: #2a4470;
  color: #a9c3ff;
}

.trial-cred {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.trial-n {
  --sc-n: 100;
  font-size: 1.75rem;
  font-weight: 750;
  line-height: 1;
}

.scene-trial.b2 .trial-a .trial-n {
  --sc-n: 0;
  color: #b45309;
}

.trial-m {
  --sc-v: 1;
  --sc-fill: #2451e6;
  background: #e2e8f0;
}

.scene-trial.b1 .trial-m {
  --sc-fill: #16a34a;
}

.scene-trial.b2 .trial-m {
  --sc-v: 0;
}

.trial-btn > span {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 6px;
}

.scene-trial.b1 .trial-a .trial-btn {
  background: #15803d;
}

.scene-trial.b5 .trial-b .trial-btn {
  background: #1b3fbf;
}

.scene-trial.b6 .trial-b .trial-btn {
  background: #dc2626;
}

.trial-cur {
  right: 16%;
  bottom: 20px;
}

.trial-b .trial-cur {
  bottom: 60px;
}

.trial-foot {
  display: grid;
  place-items: center;
}

.trial-foot > * {
  grid-area: 1 / 1;
}

.trial-foot p {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
}

.scene-trial:not(.b6) .trial-foot p {
  opacity: 0;
  transform: translateY(-6px);
}

.scene-trial.b2 .trial-a .trial-cur,
.scene-trial.b6 .trial-cur,
.scene-trial.b6 .trial-b .trial-cred,
.scene-trial.b6 .trial-foot span,
.scene-trial:not(.b6) .trial-stamp {
  opacity: 0;
}

.trial-chip {
  position: absolute;
  top: -13px;
  right: -6px;
  box-shadow: var(--shadow);
}

.scene-trial:not(.b1) .trial-a .trial-btn > :last-child,
.scene-trial.b1 .trial-a .trial-btn > :first-child,
.scene-trial:not(.b6) .trial-b .trial-btn > :last-child,
.scene-trial.b6 .trial-b .trial-btn > :first-child,
.scene-trial:not(.b3) .trial-chip {
  opacity: 0;
  transform: scale(0.6);
}

.scene-trial:not(.b4) .trial-b {
  opacity: 0;
  transform: translate(28px, 14px);
}

.scene-trial.b6 .trial-b {
  border-color: #ef4444;
}

.trial-stamp {
  top: 67px;
  left: 50%;
  translate: -50% -50%;
}

.trial-ids {
  position: relative;
  display: grid;
  gap: 8px;
}

.trial-id {
  padding: 8px 10px;
  border: 1px solid #243b5e;
  border-radius: 10px;
  background: #132a4d;
}

.scene-trial:not(.b1) .trial-id:first-child .sc-id,
.scene-trial:not(.b5) .trial-id + .trial-id .sc-id,
.scene-trial:not(.b5) .trial-tags > .sc-tag {
  background: #243b5e;
  color: transparent;
}

.trial-link {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #243b5e;
  border-radius: 50%;
  background: #0b1b33;
  color: #8396b0;
  translate: -50% -50%;
}

.scene-trial.b5 .trial-id,
.scene-trial.b5 .trial-link {
  border-color: #22c4e0;
}

.scene-trial.b5 .trial-link {
  background: #22c4e0;
  color: #0b1b33;
}

.trial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trial-tags > .sc-tag {
  font-size: 0.6875rem;
}

.trial-sure {
  width: 100%;
}

.trial-sure .sc-meter {
  flex: 1;
  align-self: center;
}

.scene-trial.b5 .trial-sure .sc-meter {
  --sc-v: 0.92;
}

@container (min-width: 470px) {
  .trial-stack {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .scene-trial:not(.b4) .trial-a {
    transform: translate(calc(50% + 6px), 32px);
  }

  .trial-a {
    margin: 0;
  }

  .trial-stack > .trial-b {
    grid-area: 1 / 2;
    margin: 40px 0 0;
  }

  .trial-chip {
    top: calc(100% + 14px);
    right: auto;
    left: 0;
  }

  .trial-kp {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
  }

  .trial-kp .sc-kp-head {
    grid-column: 1 / -1;
  }

  .trial-tags {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .trial-set * {
    transition: all 420ms var(--ease-out);
  }

  /* Icons take their tag's colour frame by frame instead of fading it late (Safari). */
  .trial-set .icon,
  .trial-set .icon * {
    transition: none;
  }

  .trial-stack > * {
    transition-duration: 640ms;
  }

  .trial-chip {
    transition-timing-function: cubic-bezier(0.3, 1.6, 0.5, 1);
  }

  .trial-n {
    transition:
      --sc-n 1300ms cubic-bezier(0.45, 0, 0.55, 1),
      color 300ms ease 1000ms;
  }

  .trial-m > i {
    transition: transform 1300ms cubic-bezier(0.45, 0, 0.55, 1);
  }

  .trial-sure i {
    transition-duration: 900ms;
  }

  .scene-trial.b5 .trial-kp * {
    transition-delay: 380ms;
  }

  .scene-trial.b5 .trial-tags > :nth-child(2) {
    transition-delay: 620ms;
  }

  .scene-trial.b5 .trial-tags > :nth-child(3) {
    transition-delay: 820ms;
  }

  .scene-trial.b5 .trial-id,
  .scene-trial.b5 .trial-link {
    animation: trial-glow 1s var(--ease-out) 380ms;
  }

  .scene-trial.b1 .trial-cur {
    animation: sc-click-a 280ms ease;
  }

  .scene-trial.b5 .trial-cur {
    animation-name: sc-click-b;
  }

  .scene-trial.b6 .trial-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-trial.b6 .trial-b {
    animation: sc-thud 380ms ease 260ms;
  }
}

@keyframes trial-glow {
  0% {
    box-shadow: 0 0 0 0 #22c4e0;
  }

  100% {
    box-shadow: 0 0 0 12px transparent;
  }
}

/* Promo abuse: WELCOME20 claimed four times under new emails by one visitor, paid once. */
.promo-set {
  display: grid;
  gap: 28px;
}

.promo-coupon,
.promo-log {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.promo-coupon {
  display: grid;
  grid-template-columns: clamp(76px, 18cqi, 96px) minmax(0, 1fr);
}

.promo-off {
  position: relative;
  display: grid;
  place-content: center;
  border-right: 2px dashed #ffffff;
  background: linear-gradient(160deg, #2451e6, #1b3fbf);
  color: #ffffff;
  font-size: clamp(1.625rem, 6cqi, 2rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.promo-off small {
  margin-top: 4px;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promo-off::before,
.promo-off::after {
  position: absolute;
  top: -9px;
  right: -10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #f4f7fc;
  content: "";
}

.promo-off::after {
  top: auto;
  bottom: -9px;
}

.promo-main {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 14px 18px;
}

.promo-code {
  padding: 4px 10px;
  border: 1.5px dashed #a9c3ff;
  border-radius: 8px;
  background: #eef3ff;
  color: #1b3fbf;
  font-family: var(--mono);
  font-size: clamp(1.125rem, 4cqi, 1.25rem);
  letter-spacing: 0.08em;
}

.promo-rule {
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
}

.promo-stamp {
  top: 120px;
  left: calc(50% + 14px);
  font-size: 1rem;
  translate: -50% -50%;
}

.scene-promo:not(.b5) .promo-stamp {
  opacity: 0;
}

.scene-promo.b5 .promo-coupon,
.scene-promo.b5 .promo-off::before,
.scene-promo.b5 .promo-off::after {
  border-color: #fca5a5;
}

.promo-log p {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --promo-h 1 keeps a claim row a placeholder. */
.scene-promo:not(.b1) p:nth-child(2),
.scene-promo:not(.b2) p:nth-child(3),
.scene-promo:not(.b3) p:nth-child(4),
.scene-promo:not(.b4) p:nth-child(5) {
  --promo-h: 1;
  --promo-c: #22c4e0;
}

.promo-who,
.promo-kp {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
}

.promo-who {
  padding: 8px 12px;
  background:
    linear-gradient(#e8eef8, #e8eef8) 12px calc(50% - 13px) / calc(var(--promo-h, 0) * 62%) 8px
    no-repeat;
}

.promo-log p + p > .promo-who {
  border-top: 1px solid #e8eef8;
}

.promo-log samp,
.promo-kp .sc-id {
  font: clamp(0.6875rem, 3.7cqi, 0.8125rem) / 1.35 var(--mono);
}

.promo-log samp,
.promo-kp > span {
  opacity: calc(1 - var(--promo-h, 0));
  translate: calc(var(--promo-h, 0) * -10px);
}

.promo-who .sc-tag,
.promo-kp > b {
  opacity: calc(1 - var(--promo-h, 0));
  scale: calc(1 - var(--promo-h, 0));
}

.promo-kph {
  padding: 9px 12px;
  background: #0b1b33;
  color: #f4f7fc;
}

.promo-kp {
  position: relative;
  grid-template-rows: auto minmax(22px, auto);
  padding-left: 26px;
  background:
    linear-gradient(#1c3357, #1c3357) 26px calc(50% - 13px) / calc(var(--promo-h, 0) * 58%) 8px
    no-repeat,
    #0b1b33;
}

.scene-promo.b2 p:nth-child(-n + 4) .sc-id {
  color: #22c4e0;
}

.promo-sig {
  background: #2a4470;
  color: #a9c3ff;
}

.promo-sig:not(.promo-vpn) .icon {
  color: #22c4e0;
}

.promo-vpn {
  background: #78350f;
  color: #fbbf24;
}

.promo-kp > i {
  position: absolute;
  top: calc(50% - 17.5px);
  left: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c4e0;
  box-shadow:
    0 0 0 3px #1c3357,
    0 0 0 calc(14px - var(--promo-h, 0) * 14px) var(--promo-c, transparent);
  opacity: calc(1 - var(--promo-h, 0) * 0.7);
  scale: calc(1 - var(--promo-h, 0) * 0.3);
}

.promo-kp > b {
  position: absolute;
  bottom: calc(50% + 13px);
  left: 13.5px;
  height: 100%;
  border-left: 2px solid #22c4e0;
  transform-origin: top;
}

.promo-log p:nth-child(5) b {
  border-left-style: dashed;
}

.promo-log p:nth-child(5) i {
  border: 2px solid #22c4e0;
  background: #0b1b33;
}

.promo-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

.promo-foot .sc-label {
  flex: 1;
}

.scene-promo.b1 .promo-paid,
.scene-promo.b2 .promo-ref {
  --sc-n: 1;
}

.scene-promo.b3 .promo-ref {
  --sc-n: 2;
}

.scene-promo.b4 .promo-ref {
  --sc-n: 3;
}

.scene-promo.b5 .promo-foot .is-deny {
  background: #dc2626;
  color: #ffffff;
}

@container (min-width: 440px) {
  .promo-set {
    gap: 18px;
  }

  .promo-stamp {
    top: 54px;
    left: 75%;
    font-size: 1.125rem;
  }
}

@container (max-width: 359px) {
  .promo-sig {
    font-size: 0.6875rem;
  }

  .promo-sig .icon {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .promo-log samp,
  .promo-kp > * {
    transition: 380ms var(--ease-out);
  }

  .promo-who,
  .promo-kp {
    transition: 320ms var(--ease-out);
  }

  .promo-kp > b {
    transition-delay: 100ms;
  }

  .promo-kp > i {
    transition:
      380ms cubic-bezier(0.3, 1.6, 0.5, 1) 360ms,
      box-shadow 800ms var(--ease-out) 420ms;
  }

  .promo-kp .sc-id {
    transition-delay: 420ms;
  }

  .promo-sig {
    transition-delay: 560ms;
  }

  .promo-who .sc-tag {
    transition: 380ms cubic-bezier(0.3, 1.6, 0.5, 1) 720ms;
  }

  .promo-coupon,
  .promo-off::before,
  .promo-off::after,
  .promo-foot .sc-tag {
    transition: 300ms ease;
  }

  .promo-foot .sc-num {
    transition: --sc-n 400ms var(--ease-out) 720ms;
  }

  .scene-promo.b1 .promo-code {
    animation: sc-pop-a 360ms var(--ease-out);
  }

  .scene-promo.b1 .promo-foot .is-allow,
  .scene-promo.b2 .promo-foot .is-deny {
    animation: sc-pop-b 360ms var(--ease-out) 720ms;
  }

  .scene-promo.b2 .promo-code {
    animation-name: sc-pop-b;
  }

  .scene-promo.b3 .promo-code,
  .scene-promo.b3 .promo-foot .is-deny {
    animation-name: sc-pop-a;
  }

  .scene-promo.b4 .promo-code,
  .scene-promo.b4 .promo-foot .is-deny {
    animation-name: sc-pop-b;
  }

  .scene-promo.b5 .promo-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-promo.b5 .promo-coupon {
    animation: sc-thud 380ms ease 260ms;
  }
}

/* Ban evasion: a banned player comes back with a new name and email, a private window and a
   VPN. knownprint returns the same visitor id, a line ties the two cards and the site blocks it. */
.ban-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 12px;
}

.ban-card {
  --ban-top: #e8eef8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(var(--ban-top) 32px, #ffffff 0);
  box-shadow: var(--shadow);
}

.ban-av {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #132a4d;
  color: #a9c3ff;
  font-weight: 800;
}

.ban-new .ban-av {
  background: #2451e6;
  color: #ffffff;
}

.ban-mail {
  margin-bottom: 4px;
  color: #64748b;
  font: 0.6875rem var(--mono);
}

.ban-btn {
  align-self: stretch;
  margin-top: 6px;
}

.ban-btn > span {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 5px;
}

.scene-ban:not(.b5) .ban-btn > :last-child,
.scene-ban.b5 .ban-btn > :first-child {
  opacity: 0;
  transform: translateY(8px);
}

.scene-ban.b5 .ban-btn {
  background: #dc2626;
}

.scene-ban.b1 .ban-old,
.scene-ban.b5 .ban-new {
  --ban-top: #fef2f2;
  border-color: #fca5a5;
}

.ban-old {
  transform-origin: 50% 100%;
}

.scene-ban:not(.b2) .ban-old {
  translate: calc(50% + 6px) -40px;
  scale: 1.18;
}

.scene-ban:not(.b2) .ban-new {
  opacity: 0;
  translate: 24px 0;
}

.scene-ban.b2 .ban-old > :not(.ban-stamp) {
  opacity: 0.45;
}

.scene-ban.b1 .ban-old .ban-av,
.scene-ban.b5 .ban-new .ban-av {
  opacity: 0;
}

.ban-stamp {
  top: 31px;
  left: 50%;
  font-size: 1rem;
  translate: -50% -50%;
}

.scene-ban:not(.b1) .ban-old .ban-stamp,
.scene-ban:not(.b5) .ban-new .ban-stamp {
  opacity: 0;
}

.ban-tried {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.ban-tried .sc-tag {
  position: relative;
  border: 1px solid var(--border);
  background: #f4f7fc;
  color: var(--text-2);
  font-size: 0.6875rem;
}

.ban-tried .sc-tag::after {
  position: absolute;
  inset: calc(50% - 1px) 5px auto;
  height: 2px;
  background: #dc2626;
  transform: scaleX(0);
  transform-origin: left;
  content: "";
}

.scene-ban.b5 .ban-tried .sc-tag {
  border-color: #fca5a5;
  color: #94a3b8;
}

.scene-ban.b5 .ban-tried .sc-tag::after {
  transform: none;
}

.scene-ban:not(.b2) .ban-tried > * {
  opacity: 0;
  transform: scale(0.6);
}

.ban-link {
  position: relative;
  height: 44px;
}

.ban-link > i,
.ban-link::before {
  position: absolute;
  top: 0;
  bottom: 50%;
  border: 0 solid #94a3b8;
  clip-path: inset(0);
  content: "";
}

.ban-link > i {
  right: 50%;
  left: calc(25% - 4px);
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 12px;
}

.ban-link > i + i {
  right: calc(25% - 4px);
  left: 50%;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 12px;
}

.ban-link::before {
  top: -40px;
  bottom: 0;
  left: calc(50% - 1px);
  border-left-width: 2px;
}

.scene-ban.b2 .ban-link::before {
  clip-path: inset(calc(100% - 24px) 0 0);
}

.scene-ban:not(.b2) .ban-link > i {
  clip-path: inset(0 100% 0 0);
}

.scene-ban:not(.b3) .ban-link > i + i {
  clip-path: inset(0 0 0 100%);
}

.scene-ban.b4 .ban-link > i,
.scene-ban.b4 .ban-link::before {
  border-color: #ef4444;
}

.ban-same {
  position: absolute;
  top: calc(50% - 1px);
  left: 50%;
  z-index: 1;
  background: #0b1b33;
  color: #f4f7fc;
  translate: -50% -50%;
}

.ban-same .icon {
  color: #fca5a5;
}

.scene-ban:not(.b4) .ban-same {
  opacity: 0;
  scale: 0.6;
}

.ban-acc,
.ban-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.ban-kp .sc-id {
  transform-origin: 100% 50%;
}

.ban-count {
  --sc-n: 1;
  margin-left: auto;
  font-size: 1.75rem;
  font-weight: 750;
  line-height: 1;
}

.scene-ban.b4 .ban-count {
  --sc-n: 2;
  color: #fca5a5;
}

.ban-meter {
  --sc-v: 0.92;
  flex: 1;
}

.scene-ban.b2:not(.b3) .ban-kp .sc-id,
.scene-ban.b2:not(.b3) .ban-meter {
  --sc-v: 0;
  opacity: 0.3;
}

.scene-ban:not(.b3) .ban-flags .sc-tag {
  background: #132a4d;
  color: #5b6b82;
}

@container (min-width: 420px) {
  .ban-stamp {
    font-size: 1.25rem;
  }

  .ban-kp {
    width: 74%;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ban-card {
    transition:
      translate 640ms var(--ease-out),
      scale 640ms var(--ease-out),
      opacity 480ms var(--ease-out),
      border-color 300ms;
  }

  .ban-btn,
  .ban-old > :not(.ban-stamp),
  .ban-flags .sc-tag,
  .ban-kp .sc-id,
  .ban-meter {
    transition:
      background-color 300ms,
      color 300ms,
      opacity 480ms;
  }

  .ban-card .ban-av {
    transition: opacity 200ms 250ms;
  }

  .ban-btn > span,
  .ban-tried > * {
    transition:
      opacity 360ms var(--ease-out),
      transform 360ms cubic-bezier(0.3, 1.6, 0.5, 1),
      border-color 300ms,
      color 300ms;
  }

  .ban-tried > * {
    transition-delay: 620ms;
  }

  .ban-tried > :nth-child(2) {
    transition-delay: 740ms;
  }

  .ban-tried > :nth-child(3) {
    transition-delay: 860ms;
  }

  .ban-tried .sc-tag::after {
    transition: transform 320ms var(--ease-out) 440ms;
  }

  .ban-link > i,
  .ban-link::before {
    transition:
      clip-path 600ms var(--ease-out),
      border-color 300ms 500ms;
  }

  .ban-same {
    transition:
      opacity 360ms var(--ease-out) 420ms,
      scale 420ms cubic-bezier(0.3, 1.6, 0.5, 1) 420ms;
  }

  .ban-count {
    transition:
      --sc-n 500ms var(--ease-out) 300ms,
      color 300ms 300ms;
  }

  .ban-meter > i {
    transition: transform 700ms var(--ease-out);
  }

  .scene-ban.b1 .ban-old .ban-stamp,
  .scene-ban.b5 .ban-new .ban-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-ban.b1 .ban-old,
  .scene-ban.b5 .ban-new {
    animation:
      sc-thud 380ms 260ms,
      sc-ring-b 900ms var(--ease-out) 260ms;
  }

  .scene-ban.b3 .ban-flags .sc-tag {
    animation: sc-pop-a 420ms var(--ease-out) 300ms;
  }

  .scene-ban.b3 .ban-flags .sc-tag + .sc-tag {
    animation-delay: 540ms;
  }

  .scene-ban.b4 .ban-count,
  .scene-ban.b4 .ban-kp .sc-id {
    animation: sc-pop-b 420ms var(--ease-out) 300ms;
  }
}

/* SMS abuse: a script asks for code after code, to number after number, until knownprint flags
   a bot and the site sends no more. */
.sms-set {
  display: grid;
  gap: 14px;
}

.sms-form .sc-win-body {
  padding-bottom: 24px;
}

.sms-form .sc-btn::after {
  content: "Send me a code";
}

.scene-sms.b6 .sms-form .sc-btn {
  background: #dc2626;
}

.scene-sms.b6 .sms-form .sc-btn::after {
  content: "Code not sent";
}

.sms-hand {
  position: absolute;
  bottom: 42px;
  left: 73%;
}

.sms-bot {
  position: absolute;
  top: 19px;
  right: -6px;
  background: #0b1b33;
  color: #f4f7fc;
}

.sms-bot .icon {
  color: #fca5a5;
}

.sms-stamp {
  top: 74px;
  left: 50%;
  translate: -50% -50%;
}

.sms-out {
  order: 1;
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.sms-out > .sc-win-bar {
  margin: 0 -12px;
}

.sms-tally {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sms-tally > p {
  display: grid;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef3ff;
  color: #2451e6;
}

.sms-tally b {
  font-size: 1.625rem;
  font-weight: 750;
  line-height: 1.15;
}

.scene-sms.b3 .sms-tally > :first-child {
  background: #fef2f2;
  color: #dc2626;
}

.sms-tally > p + p,
.scene-sms.b4 .sms-tally > :first-child {
  background: #f4f7fc;
  color: #64748b;
}

.scene-sms.b4 .sms-tally > p + p {
  background: #f0fdf4;
  color: #15803d;
}

.sms-sent {
  --sc-n: 4;
}

.scene-sms.b1 .sms-sent {
  --sc-n: 46;
}

.scene-sms.b2 .sms-sent {
  --sc-n: 133;
}

.scene-sms.b3 .sms-sent {
  --sc-n: 211;
}

.scene-sms.b4 .sms-held {
  --sc-n: 52;
}

.scene-sms.b5 .sms-held {
  --sc-n: 167;
}

.scene-sms.b6 .sms-held {
  --sc-n: 238;
}

/* New texts grow in at the foot and push old ones out at the top. */
.sms-reel {
  --sms-r: 54px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 162px;
  overflow: hidden;
  list-style: none;
}

.sms-reel > li {
  display: grid;
  flex: none;
  align-content: center;
  justify-items: end;
  gap: 3px;
  height: var(--sms-r);
  transform-origin: 100% 100%;
}

.sms-reel b {
  padding: 5px 11px;
  border-radius: 14px 14px 4px;
  background: #2451e6;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.sms-reel b::before {
  content: "Your code is ";
}

.sms-reel i {
  color: #64748b;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 650;
}

.sms-reel > :nth-child(n + 8) b {
  background: #fef2f2;
  box-shadow: inset 0 0 0 1px #fca5a5;
  color: #b91c1c;
  text-decoration: line-through;
}

.sms-reel > :nth-child(n + 8) i {
  color: #dc2626;
}

.sms-reel > :nth-child(n + 8) i::before {
  font-size: 1.25em;
  font-weight: 800;
  line-height: 0;
  content: "\d7\a0";
}

.scene-sms:not(.b4) .sms-reel > :nth-child(8) b,
.scene-sms:not(.b5) .sms-reel > :nth-child(n + 9) b {
  background: #f4f7fc;
  box-shadow: inset 0 0 0 1px #d9e1ec;
  color: #64748b;
  text-decoration-color: transparent;
}

.scene-sms:not(.b1) .sms-reel > :nth-child(5),
.scene-sms:not(.b2) .sms-reel > :nth-child(6),
.scene-sms:not(.b3) .sms-reel > :nth-child(7),
.scene-sms:not(.b4) .sms-reel > :nth-child(8),
.scene-sms:not(.b5) .sms-reel > :nth-child(n + 9) {
  height: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.9);
}

.scene-sms.b1 .sms-reel > :nth-child(1),
.scene-sms.b2 .sms-reel > :nth-child(2),
.scene-sms.b3 .sms-reel > :nth-child(3),
.scene-sms.b4 .sms-reel > :nth-child(4),
.scene-sms.b5 .sms-reel > :nth-child(-n + 6),
.scene-sms:not(.b4) .sms-reel > :nth-child(8) i,
.scene-sms:not(.b5) .sms-reel > :nth-child(n + 9) i,
.scene-sms:not(.b6) .sms-stamp {
  opacity: 0;
}

.scene-sms:not(.b2) .sms-flags > :nth-child(1),
.scene-sms:not(.b3) .sms-flags > :nth-child(n + 2) {
  opacity: 0;
  transform: scale(0.6);
}

.sms-meter {
  --sc-v: 0.04;
}

.sms-n {
  --sc-n: 4;
  font-size: 1.125rem;
  font-weight: 750;
}

.scene-sms.b2 .sms-meter {
  --sc-v: 0.41;
  --sc-fill: #f59e0b;
}

.scene-sms.b2 .sms-n {
  --sc-n: 41;
  color: #fbbf24;
}

.scene-sms.b3 .sms-meter {
  --sc-v: 0.94;
  --sc-fill: #ef4444;
}

.scene-sms.b3 .sms-n {
  --sc-n: 94;
  color: #fca5a5;
}

.sms-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sms-flags .sc-tag {
  font-size: 0.6875rem;
}

@container (min-width: 470px) {
  .sms-set {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 16px;
  }

  .sms-out {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .sms-reel {
    --sms-r: 64px;
    height: 256px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sms-reel > li {
    transition:
      480ms var(--ease-out),
      transform 480ms cubic-bezier(0.3, 1.3, 0.5, 1);
  }

  .sms-flags > * {
    transition: 400ms cubic-bezier(0.3, 1.4, 0.5, 1);
  }

  .sms-reel > :nth-child(10),
  .sms-flags > :nth-child(3) {
    transition-delay: 200ms;
  }

  .sms-reel b,
  .sms-reel i {
    transition: 320ms ease 460ms;
  }

  .sms-tally > p,
  .sms-form .sc-btn {
    transition: 400ms ease;
  }

  .sms-tally b {
    transition: --sc-n 800ms var(--ease-out);
  }

  .sms-tally .sms-held,
  .scene-sms.b4 .sms-tally > p {
    transition-delay: 460ms;
  }

  .sms-n,
  .sms-meter > i {
    transition: 700ms var(--ease-out);
  }

  .sms-n {
    transition-property: all, --sc-n;
  }

  .scene-sms.b1 .sms-hand .sc-cursor {
    animation: sc-click-a 475ms ease -200ms 12;
  }

  .scene-sms.b1 .sms-form .sc-btn {
    animation: sms-press 475ms ease -200ms 12;
  }

  .scene-sms.b4 .sms-reel > :nth-child(8) b,
  .scene-sms.b5 .sms-reel > :nth-child(n + 9) b {
    animation: sc-shake 420ms ease 760ms;
  }

  .scene-sms.b3 .sms-kp {
    animation: sc-ring-a 900ms var(--ease-out);
  }

  .scene-sms.b6 .sms-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-sms.b6 .sms-form {
    animation: sc-thud 380ms ease 260ms;
  }
}

@keyframes sms-press {
  45% {
    transform: scale(0.97);
  }
}

/* Account sharing: one login in five countries; knownprint counts its browsers, the site blocks
   those over the plan's limit. */
.scene-share.b1 {
  --i: 1;
}

.scene-share.b2 {
  --i: 2;
}

.scene-share.b3 {
  --i: 3;
}

.scene-share.b4 {
  --i: 4;
}

.share-map {
  --hy: 88;
  --rx: 33;
  --ry: 79;
  position: relative;
  height: 400px;
  margin-bottom: 12px;
  container-type: size;
}

/* --n: the browser's place, --a: its angle, --on: 1 once it is in. */
.share-node {
  --on: clamp(0, var(--i, 0) + 2 - var(--n), 1);
  --c: #16a34a;
  --dx: calc(var(--rx) * cos(var(--a)));
  --dy: calc(var(--ry) * sin(var(--a)));
  position: absolute;
  top: calc((var(--hy) - var(--dy)) * 1%);
  left: calc((50 + var(--dx)) * 1%);
}

.share-node::before,
.share-node::after {
  position: absolute;
  z-index: -1;
  content: "";
}

/* The line to the account: dotted, coloured once the browser is in. */
.share-node::before {
  width: hypot(calc(var(--dx) * 1cqw), calc(var(--dy) * 1cqh));
  height: 2px;
  background:
    linear-gradient(var(--c), var(--c)) 0 / calc(100% * var(--on)) no-repeat,
    repeating-linear-gradient(90deg, #a9b8cf 0 3px, transparent 0 7px);
  transform-origin: 0 50%;
  rotate: atan2(calc(var(--dy) * 1cqh), calc(var(--dx) * -1cqw));
}

.share-node::after {
  inset: -5px;
  border: 2px solid #a9b8cf;
  border-radius: 50%;
  background: #ffffff;
}

.share-node:nth-child(1) {
  --n: 1;
  --a: 160deg;
}

.share-node:nth-child(2) {
  --n: 2;
  --a: 132deg;
}

.share-node:nth-child(3) {
  --n: 3;
  --a: 90deg;
  --c: #f59e0b;
}

.share-node:nth-child(4) {
  --n: 4;
  --a: 48deg;
}

.share-node:nth-child(5) {
  --n: 5;
  --a: 20deg;
  --rx: 30;
}

.share-node:nth-child(n + 4) {
  --c: #ef4444;
}

.scene-share.b5 .share-node:nth-child(n + 4)::before {
  --on: 0;
  opacity: 0.3;
}

.share-card {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: max-content;
  padding-bottom: 8px;
  opacity: var(--on);
  translate: -50% -50%;
  scale: calc(0.6 + 0.4 * var(--on));
}

.share-card > .sc-win-bar {
  justify-self: stretch;
  padding: 6px 10px;
  color: var(--text);
}

/* The site's answer waits for knownprint's. */
.share-card > .sc-tag {
  position: relative;
  margin: 0 8px;
}

.share-card > .sc-tag::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #e8eef8;
  opacity: calc(1 - var(--on));
  content: "";
}

.scene-share.b5 .share-node:nth-child(n + 4) .share-card {
  border: 1px dashed #fca5a5;
  background: #f4f7fc;
  box-shadow: none;
}

.scene-share.b5 .share-node:nth-child(n + 4) .sc-win-bar {
  color: #94a3b8;
}

.share-hub {
  position: absolute;
  top: calc(var(--hy) * 1%);
  left: 50%;
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 10px;
  padding: 10px 12px;
  translate: -50% -50%;
  white-space: nowrap;
}

.share-ava {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2451e6;
  box-shadow: 0 0 0 4px #eef3ff;
  color: #ffffff;
}

.share-plan {
  display: grid;
  color: var(--text-2);
  font-size: 0.75rem;
}

.share-plan b {
  color: var(--text);
  font-size: 0.9375rem;
}

.share-limit {
  display: flex;
  grid-column: span 2;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 0.75rem;
  font-weight: 700;
}

.scene-share.b2 .share-hub {
  color: #b45309;
}

.scene-share.b3 .share-hub {
  border-color: #fca5a5;
  color: #dc2626;
}

.share-stamp {
  top: 45%;
  left: 78%;
  font-size: 1rem;
  translate: -50% -50%;
}

.scene-share:not(.b5) .share-stamp {
  opacity: 0;
}

.share-reel {
  height: 1.4em;
  overflow: hidden;
  text-align: end;
}

.share-reel > span {
  display: block;
  line-height: 1.4em;
  translate: 0 calc(var(--i, 0) * -100%);
}

.share-flag {
  display: grid;
}

.share-flag > * {
  grid-area: 1 / 1;
  transform-origin: 0 50%;
}

.scene-share.b1 .share-flag > :first-child,
.scene-share:not(.b1) .share-flag > :last-child {
  opacity: 0;
  scale: 0.8;
}

.share-tally {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #243b5e;
}

.share-count {
  --sc-n: calc(var(--i, 0) + 1);
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1;
}

@container (min-width: 470px) {
  .share-map {
    --hy: 85;
    --ry: 74;
    height: 310px;
  }

  .share-map > .share-node {
    --a: calc(210deg - var(--n) * 40deg);
    --rx: 38;
  }

  .share-stamp {
    top: 50%;
    left: 81%;
    font-size: 1.25rem;
  }

  .share-kp {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
    column-gap: 20px;
  }

  .share-kp > .sc-kp-head {
    grid-column: span 2;
  }

  .share-tally {
    grid-area: 2 / 2 / span 3;
    padding: 0 0 0 20px;
    border: 0;
    border-left: 1px solid #243b5e;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .share-card {
    transition: 520ms cubic-bezier(0.3, 1.6, 0.5, 1);
  }

  .share-node::before {
    transition:
      background-size 480ms var(--ease-out) 220ms,
      opacity 300ms var(--ease-out) 700ms;
  }

  .share-reel > span,
  .share-flag > *,
  .share-card > .sc-win-bar,
  .share-count {
    transition: 400ms var(--ease-out) 550ms;
  }

  .share-card > .sc-tag::after,
  .share-hub {
    transition: 400ms var(--ease-out) 850ms;
  }

  .share-count {
    transition-property: --sc-n;
  }

  .scene-share.b1 .share-count {
    animation: sc-pop-a 360ms var(--ease-out) 550ms;
  }

  .scene-share.b2 .share-count,
  .scene-share.b2 .share-flag > * {
    animation: sc-pop-b 360ms var(--ease-out) 550ms;
  }

  .scene-share.b3 .share-count,
  .scene-share.b3 .share-flag > * {
    animation-name: sc-pop-a;
  }

  .scene-share.b4 .share-count,
  .scene-share.b4 .share-flag > * {
    animation-name: sc-pop-b;
  }

  .scene-share.b5 .share-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-share.b5 .share-map {
    animation: sc-thud 380ms ease 260ms;
  }
}

/* Paywall bypass: a reader clears cookies, then opens a private window, to reset the free count;
   knownprint returns the same visitor id, so the count snaps back. --wall-r is 1 while a reset
   seems to work, --wall-u while the article is open. */
.scene-wall.b3:not(.b4),
.scene-wall.b5:not(.b6) {
  --wall-r: 1;
  --wall-u: 1;
}

.scene-wall:not(.b2) {
  --wall-u: 1;
}

.wall-set {
  display: grid;
  gap: 14px;
}

.wall-page {
  --wall-card: #ffffff;
  --wall-soft: #eef3ff;
  --wall-line: #d9e1ec;
  --wall-blue: #2451e6;
  border-color: var(--wall-line);
  background: var(--wall-card);
  color: #0b1b33;
}

.scene-wall.b5 .wall-page {
  --wall-card: #1c3357;
  --wall-soft: #132a4d;
  --wall-line: #2a4470;
  --wall-blue: #7fa6ff;
  color: #f4f7fc;
}

.wall-page .sc-win-bar {
  border-color: var(--wall-line);
  color: inherit;
}

.wall-page .sc-win-bar::before {
  width: 32px;
}

.scene-wall.b5 .sc-win-bar::before {
  opacity: 0.35;
}

.wall-body {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 13px 13px;
}

.wall-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--wall-soft);
  font-weight: 750;
}

.wall-meter .sc-label {
  margin-right: auto;
  color: inherit;
  opacity: 0.7;
}

.wall-pips {
  display: flex;
  gap: 4px;
}

.wall-pips > * {
  --sc-v: calc(1 - var(--wall-r, 0));
  --sc-fill: var(--wall-blue);
  width: 22px;
  height: 8px;
  border-radius: 4px;
  background: var(--wall-line);
}

.scene-wall:not(.b1) .wall-pips > :last-child {
  --sc-v: 0;
}

.wall-num {
  --sc-n: calc(3 - 3 * var(--wall-r, 0));
}

.wall-num {
  white-space: nowrap;
}

.wall-num::after {
  content: counter(sc-n) " of 3";
}

.scene-wall:not(.b1) .wall-num {
  --sc-n: 2;
}

.scene-wall.b6 .wall-meter,
.scene-wall.b6 .wall-lock {
  --wall-blue: #f87171;
  background: #7f1d1d;
  color: #fca5a5;
}

.scene-wall.b6 .wall-meter .sc-label {
  opacity: 1;
}

.wall-lede {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
}

.wall-kick {
  color: var(--wall-blue);
}

.wall-title {
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.2;
}

.wall-by {
  font-size: 0.75rem;
  opacity: 0.7;
}

.wall-pic {
  grid-area: 1 / 2 / 4;
  width: 72px;
  height: 64px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 68% 38%, #fbbf24 0 6px, transparent 7px),
    linear-gradient(#eef3ff, #a9c3ff 58%, #7fa6ff 58%, #2451e6);
}

.wall-text {
  display: grid;
  gap: 9px;
  padding: 6px 0;
  filter: blur(calc(2px - var(--wall-u, 0) * 2px));
}

.wall-text > i {
  height: 7px;
  border-radius: 4px;
  background: var(--wall-line);
}

.wall-text > :last-child {
  width: 58%;
}

.wall-sheet {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 14px;
  background: var(--wall-card);
  transform: translateY(calc(var(--wall-u, 0) * (100% + 28px)));
}

.wall-sheet::before {
  position: absolute;
  inset: -28px 0 100%;
  background: linear-gradient(transparent, var(--wall-card));
  content: "";
}

.wall-lock {
  display: flex;
  padding: 9px;
  border-radius: 50%;
  background: var(--wall-soft);
  color: var(--wall-blue);
}

.wall-sheet > b {
  overflow-wrap: normal;
}

.wall-btn {
  padding: 0 16px;
}

.wall-toast {
  position: absolute;
  top: -14px;
  right: 12px;
  box-shadow: var(--shadow);
}

.wall-stamp {
  top: 68%;
  left: 50%;
  font-size: 1.125rem;
  translate: -50% -50%;
}

.wall-kp {
  --wall-blue: #7fa6ff;
  justify-self: center;
  width: min(94%, 360px);
}

.wall-id {
  opacity: calc(1 - var(--wall-r, 0) * 0.75);
  transform-origin: right;
}

.wall-sure {
  --sc-v: calc(0.94 - 0.94 * var(--wall-r, 0));
  width: 120px;
}

.wall-kp > .sc-tag {
  transform-origin: left;
}

.scene-wall:not(.b6) .wall-kp > .sc-tag {
  background: transparent;
  box-shadow: inset 0 0 0 1px #2a4470;
  color: #8396b0;
}

.scene-wall:not(.b3) .wall-toast,
.scene-wall.b4 .wall-toast:first-of-type,
.scene-wall:not(.b5) .wall-toast + p,
.scene-wall:not(.b7) .wall-stamp {
  opacity: 0;
  transform: scale(0.6);
}

@container (min-width: 470px) {
  .wall-title {
    font-size: 1.25rem;
  }

  .wall-stamp {
    top: 66%;
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* The site reacts once knownprint has answered. */
  .scene-wall.b4:not(.b5) .wall-page,
  .scene-wall.b6 .wall-page {
    --wall-d: 320ms;
  }

  /* Colour follows the page at once, so text never lags dark on the dark card (Safari); the
     parts that set their own colour fade it below. */
  .wall-set * {
    transition:
      450ms ease var(--wall-d, 0ms),
      color 0s,
      transform 360ms cubic-bezier(0.3, 1.6, 0.5, 1) var(--wall-d, 0ms);
  }

  .wall-page,
  .wall-kick,
  .wall-lock,
  .wall-kp > .sc-tag,
  .scene-wall.b6 .wall-meter {
    transition:
      450ms ease var(--wall-d, 0ms),
      transform 360ms cubic-bezier(0.3, 1.6, 0.5, 1) var(--wall-d, 0ms);
  }

  .wall-num {
    transition: --sc-n 480ms var(--ease-out) var(--wall-d, 0ms);
  }

  .wall-sheet {
    transition:
      450ms ease,
      transform 560ms cubic-bezier(0.3, 1.3, 0.5, 1) var(--wall-d, 0ms);
  }

  /* The pips drain right to left. */
  .wall-pips > :first-child {
    --wall-k: 2;
  }

  .wall-pips > :nth-child(2) {
    --wall-k: 1;
  }

  .wall-pips i {
    transition:
      450ms ease var(--wall-d, 0ms),
      transform 480ms var(--ease-out)
      calc(var(--wall-k, 0) * var(--wall-r, 0) * 110ms + var(--wall-d, 0ms));
  }

  .wall-sure i {
    transition: transform 640ms var(--ease-out);
  }

  .scene-wall.b1 .wall-num {
    animation: sc-pop-a 380ms var(--ease-out);
  }

  .scene-wall.b4 .wall-num {
    animation: sc-pop-b 420ms var(--ease-out) 560ms;
  }

  .scene-wall.b6 .wall-num {
    animation-name: sc-pop-a;
  }

  .scene-wall.b4:not(.b5) .wall-kp,
  .scene-wall.b6 .wall-kp {
    animation: wall-ring 800ms var(--ease-out);
  }

  .scene-wall.b4:not(.b5) .wall-id,
  .scene-wall.b6 .wall-id,
  .scene-wall.b6 .wall-kp > .sc-tag {
    animation: sc-pop-a 420ms var(--ease-out);
  }

  .scene-wall.b4:not(.b5) .wall-meter,
  .scene-wall.b6 .wall-meter,
  .scene-wall.b6 .wall-lock {
    animation: wall-ring 800ms var(--ease-out) 420ms;
  }

  .scene-wall.b7 .wall-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-wall.b7 .wall-page {
    animation: sc-thud 380ms ease 260ms;
  }
}

/* An outline keeps the part's own shadow. */
@keyframes wall-ring {
  0% {
    outline: 2px solid var(--wall-blue);
    outline-offset: 0;
  }

  100% {
    outline: 2px solid transparent;
    outline-offset: 12px;
  }
}

/* Fake votes: eight new accounts carry one game past the leader of a poll. Every vote comes from
   the same browser, so the poll counts one and holds seven for review. */
.vote-set {
  display: grid;
  justify-items: center;
  padding-top: 12px;
}

.vote-poll {
  width: 100%;
}

.vote-q {
  font-size: 0.9375rem;
  font-weight: 750;
}

.vote-opts {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.vote-opts > li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 650;
}

.vote-n {
  --sc-n: 24;
  font-weight: 750;
}

.vote-b .vote-n {
  --sc-n: 19;
}

.vote-c .vote-n {
  --sc-n: 11;
}

.scene-vote.b1 .vote-b .vote-n {
  --sc-n: 23;
}

.scene-vote.b2 .vote-b .vote-n {
  --sc-n: 27;
}

.scene-vote.b5 .vote-b .vote-n {
  --sc-n: 20;
}

.vote-bar {
  position: relative;
  flex: 1 0 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8eef8;
}

.vote-bar > * {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36.7%;
  border-radius: inherit;
  background: #a9c3ff;
}

.vote-a i {
  width: 80%;
  background: #2451e6;
}

.vote-b i {
  width: 63.3%;
}

.scene-vote.b1 .vote-b i {
  width: 76.7%;
}

.scene-vote.b2 .vote-b i {
  width: 90%;
  background: #2451e6;
}

.scene-vote.b2 .vote-a i {
  background: #a9c3ff;
}

.scene-vote.b5 .vote-a i {
  background: #2451e6;
}

.scene-vote.b5 .vote-b i {
  width: 66.7%;
  background: #a9c3ff;
}

/* The part of the bar the seven held votes added. */
.vote-bar > b {
  left: 66.7%;
  width: 23.3%;
  background: repeating-linear-gradient(-45deg, #ef4444 0 3px, #fca5a5 3px 6px);
}

.scene-vote:not(.b4) .vote-bar > b {
  opacity: 0;
}

.vote-stamp {
  top: 0;
  right: 4px;
  font-size: 0.875rem;
  translate: 0 -45%;
}

.scene-vote:not(.b6) .vote-stamp {
  opacity: 0;
}

.scene-vote.b6 .vote-poll {
  border-color: #fca5a5;
}

@container (min-width: 470px) {
  .vote-stamp {
    right: 10px;
    font-size: 1.5rem;
  }
}

.vote-flow {
  display: grid;
  width: min(100%, 420px);
  margin-top: 16px;
}

.vote-head {
  display: grid;
  place-items: center;
}

.vote-head > * {
  grid-area: 1 / 1;
}

.vote-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scene-vote.b5 .vote-head .sc-label,
.scene-vote:not(.b5) .vote-tags > * {
  opacity: 0;
  transform: translateY(6px);
}

.vote-chips {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  justify-items: center;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.vote-chips > li {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #2451e6;
  box-shadow: var(--shadow);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 750;
}

.vote-chips > :nth-child(2n) {
  background: #0e7490;
}

/* Empty seats until the votes land. */
.scene-vote:not(.b1) .vote-chips > :nth-child(-n + 4),
.scene-vote:not(.b2) .vote-chips > :nth-child(n + 5) {
  border: 2px dashed #a9b8cf;
  background: #ffffff;
  box-shadow: none;
  color: transparent;
  transform: scale(0.8);
}

/* The site keeps the first vote and strikes the other seven. */
.scene-vote.b4 .vote-chips > li {
  border-color: #ef4444;
  background: #fef2f2;
  color: #ef4444;
}

.scene-vote.b4 .vote-chips > :first-child {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}

.vote-chips > li::after {
  position: absolute;
  inset: 50% 3px auto;
  height: 2px;
  margin-top: -1px;
  background: #dc2626;
  transform: rotate(-45deg) scaleX(0);
  content: "";
}

.scene-vote.b4 .vote-chips > li + li::after {
  transform: rotate(-45deg) scaleX(1);
}

.vote-lines {
  width: 100%;
  fill: none;
  stroke-width: 1.5;
}

.vote-lines path {
  stroke: #94a3b8;
  stroke-dasharray: 150;
}

.scene-vote:not(.b1) .vote-lines :nth-child(-n + 4),
.scene-vote:not(.b2) .vote-lines :nth-child(n + 5) {
  stroke-dashoffset: 150;
}

.scene-vote.b3 .vote-lines path {
  stroke: #ef4444;
}

.scene-vote.b4 .vote-lines :first-child {
  stroke: #16a34a;
}

.vote-node {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #243b5e;
  border-radius: 50%;
  background: #0b1b33;
  box-shadow: var(--shadow);
  color: #22c4e0;
  font-size: 1.125rem;
}

.scene-vote.b3 .vote-node {
  border-color: #ef4444;
  color: #fca5a5;
}

.vote-kp {
  width: min(100%, 400px);
  margin-top: -20px;
  padding-top: 26px;
}

.scene-vote:not(.b1) .vote-id {
  border-radius: 4px;
  background: #243b5e;
  color: transparent;
}

.vote-tally {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vote-tally .sc-k {
  flex: 1;
}

.vote-count {
  --sc-n: 0;
  color: #5b6b82;
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1;
}

.scene-vote.b1 .vote-count {
  --sc-n: 4;
  color: #f4f7fc;
}

.scene-vote.b2 .vote-count {
  --sc-n: 8;
}

.scene-vote.b3 .vote-count {
  color: #fca5a5;
}

.scene-vote:not(.b3) .vote-tally .sc-tag {
  opacity: 0;
  transform: scale(0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .vote-set * {
    transition: all 500ms var(--ease-out);
  }

  .vote-n,
  .vote-count {
    transition:
      --sc-n 700ms var(--ease-out),
      color 300ms ease;
  }

  .vote-tags > *,
  .vote-tally .sc-tag,
  .vote-chips > li {
    transition-timing-function: cubic-bezier(0.3, 1.6, 0.5, 1);
  }

  .vote-chips > li::after {
    transition: transform 360ms var(--ease-out);
    transition-delay: inherit;
  }

  .vote-chips > :nth-child(4n + 2),
  .vote-lines :nth-child(4n + 2),
  .vote-tags > :last-child {
    transition-delay: 90ms;
  }

  .vote-chips > :nth-child(4n + 3),
  .vote-lines :nth-child(4n + 3) {
    transition-delay: 180ms;
  }

  .vote-chips > :nth-child(4n),
  .vote-lines :nth-child(4n) {
    transition-delay: 270ms;
  }

  .scene-vote.b3 .vote-lines path {
    transition-delay: 0ms;
  }

  .scene-vote.b3 .vote-node {
    animation: sc-ring-a 900ms var(--ease-out);
  }

  .scene-vote.b6 .vote-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-vote.b6 .vote-poll {
    animation: sc-thud 380ms ease 260ms;
  }
}

/* VPN and proxy checks: a tunnelled visit loses the UK catalogue once knownprint sees the VPN. */
.vpn-set {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.vpn-map {
  position: relative;
  aspect-ratio: 32 / 15;
  margin-bottom: 6px;
}

.vpn-map > svg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #d9e1ec;
  stroke-linecap: round;
  stroke-width: 1.2;
}

.vpn-globe {
  mask-image: linear-gradient(#0b1b33 40%, transparent);
}

.vpn-globe circle {
  fill: #ffffff;
  stroke: #a9b8cf;
}

.vpn-map > .vpn-hop {
  stroke: #ef4444;
  stroke-dasharray: 5 6;
  stroke-width: 2;
  clip-path: inset(-6px);
}

.scene-vpn:not(.b3) .vpn-hop {
  clip-path: inset(-6px 100% -6px -6px);
}

.vpn-out {
  stroke: #2451e6;
  stroke-dasharray: 100 120;
  stroke-width: 2;
}

.scene-vpn:not(.b1) .vpn-out {
  stroke-dashoffset: 100;
}

.scene-vpn.b2 .vpn-out {
  stroke: #ef4444;
}

.vpn-map > :where(span) {
  position: absolute;
  white-space: nowrap;
  translate: -50% -50%;
}

.vpn-from {
  top: 68%;
  left: 13.75%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px dashed #f87171;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 800;
}

.vpn-lbl {
  top: calc(68% + 18px);
  left: 13.75%;
  color: #b91c1c;
  text-align: center;
  translate: -50%;
}

.vpn-tun {
  top: 21.7%;
  left: 37.7%;
}

.scene-vpn:not(.b3) :is(.vpn-from, .vpn-lbl, .vpn-tun) {
  opacity: 0;
  transform: scale(0.5);
}

.vpn-dot {
  top: 53.3%;
  left: 61.25%;
  width: 22px;
  height: 22px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  outline: 3px solid #a9c3ff;
  background: #2451e6;
}

.scene-vpn.b2 .vpn-dot {
  outline-color: #fca5a5;
  background: #ef4444;
}

.vpn-mark {
  top: calc(53.3% + 16px);
  left: 61.25%;
  display: grid;
  justify-items: center;
  gap: 4px;
  translate: -50%;
}

.vpn-map .sc-tag {
  border: 1px solid #fca5a5;
  box-shadow: var(--shadow);
}

.vpn-mark > .is-info {
  border-color: var(--border);
  text-decoration: line-through 2px transparent;
}

.scene-vpn.b2 .vpn-mark > .is-info {
  background: #f4f7fc;
  color: #64748b;
  text-decoration-color: #ef4444;
}

.scene-vpn:not(.b2) .vpn-mark > .is-deny {
  opacity: 0;
  transform: translateY(-8px) scale(0.8);
}

.vpn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}

.vpn-uk {
  position: relative;
  font-size: 1.375rem;
  font-weight: 750;
}

.vpn-uk::after {
  position: absolute;
  inset: 41% -3px auto;
  height: 3px;
  background: #dc2626;
  transform: scaleX(0);
  transform-origin: left;
  content: "";
}

.scene-vpn.b5 .vpn-uk {
  color: #94a3b8;
}

.scene-vpn.b5 .vpn-uk::after {
  transform: none;
}

.vpn-tags {
  display: grid;
}

.vpn-tags > *,
.vpn-btn > * {
  grid-area: 1 / 1;
  justify-content: center;
  width: auto;
}

.scene-vpn.b5 :is(.vpn-tags, .vpn-btn) > :first-child,
.scene-vpn:not(.b5) :is(.vpn-tags, .vpn-btn) > :last-child {
  opacity: 0;
  transform: scale(0.6);
}

.scene-vpn.b5 .vpn-btn {
  background: #dc2626;
}

.scene-vpn.b5 .vpn-offer {
  border-color: #fca5a5;
}

.scene-vpn.b6 .vpn-offer .sc-label {
  opacity: 0;
}

.vpn-uk,
.vpn-v:not(.sc-tag) {
  border-radius: 6px;
}

.scene-vpn:not(.b1) :is(.vpn-uk, .vpn-tags > *) {
  background: #e8eef8;
  color: transparent;
}

.scene-vpn:not(.b1) .vpn-kp > :nth-child(2) .vpn-v,
.scene-vpn:not(.b2) .vpn-kp > :nth-child(3) .vpn-v,
.scene-vpn:not(.b3) .vpn-kp > :nth-child(4) .vpn-v,
.scene-vpn:not(.b4) .vpn-kp > :nth-child(n + 5) .vpn-v {
  background: #243b5e;
  color: transparent;
}

.vpn-stamp {
  top: 40px;
  left: 50%;
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  translate: -50% -50%;
}

.scene-vpn:not(.b6) .vpn-stamp {
  opacity: 0;
}

.vpn-kp {
  gap: 8px;
}

.vpn-kp .sc-row {
  align-items: center;
  min-height: 24px;
}

.vpn-n {
  font-size: 1.125rem;
  font-weight: 750;
}

.scene-vpn.b2 .vpn-n {
  --sc-n: 31;
  color: #fbbf24;
}

.scene-vpn.b2 .vpn-m {
  --sc-v: 0.31;
  --sc-fill: #f59e0b;
}

.scene-vpn.b4 .vpn-n {
  --sc-n: 78;
  color: #fca5a5;
}

.scene-vpn.b4 .vpn-m {
  --sc-v: 0.78;
  --sc-fill: #ef4444;
}

@container (min-width: 470px) {
  .vpn-set {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }

  .vpn-map {
    grid-column: span 2;
    justify-self: center;
    width: min(100%, 400px);
    margin-bottom: -12px;
  }

  .vpn-kp {
    grid-area: 2 / 1;
  }

  .vpn-offer {
    align-self: end;
  }
}

@keyframes vpn-flow {
  to {
    stroke-dashoffset: -22;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .vpn-hop {
    transition: clip-path 900ms var(--ease-out);
    animation: vpn-flow 900ms linear infinite paused;
  }

  .scene-vpn.is-playing .vpn-hop {
    animation-play-state: running;
  }

  .vpn-out,
  .vpn-map > span,
  .vpn-mark > span,
  .vpn-tags > *,
  .vpn-btn,
  .vpn-btn > *,
  .vpn-offer,
  .vpn-offer .sc-label,
  .vpn-uk,
  .vpn-v,
  .vpn-n,
  .vpn-m > i {
    transition: 400ms var(--ease-out);
  }

  .vpn-out,
  .vpn-n,
  .vpn-m > i {
    transition-duration: 700ms;
  }

  .vpn-n {
    transition-property: all, --sc-n;
  }

  .vpn-map > .vpn-tun {
    transition-delay: 360ms;
  }

  .vpn-mark > .is-deny {
    transition-delay: 200ms;
  }

  .vpn-uk::after {
    transition: transform 420ms var(--ease-out) 120ms;
  }

  .scene-vpn.b2 .vpn-dot {
    animation: sc-ring-a 900ms var(--ease-out);
  }

  .scene-vpn.b6 .vpn-stamp {
    animation: sc-stamp 560ms var(--ease-out) both;
  }

  .scene-vpn.b6 .vpn-offer {
    animation: sc-thud 380ms ease 260ms;
  }
}

/* The homepage's What you get: three scenes of good outcomes in a row on wide screens, each with
   a caption, before the two lists. */
.wins {
  display: grid;
  gap: 32px;
  max-width: 640px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}

.win {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  min-width: 0;
}

.win-cap {
  display: grid;
  gap: 4px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.45;
}

.win-cap strong {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .wins {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: none;
  }

  .wins .scene {
    min-height: 460px;
    padding: 24px 14px 46px;
  }
}

/* The homepage: real customers approved at once. Four orders reach a checkout; knownprint reads
   each visit while a line sweeps the row, then the site approves the returning customer, the new
   customer and the shopper in a private window, and blocks the one guest order from a spoofed
   browser on a datacentre network. Beats: a row arrives (odd), its answer lands (even). */
.ok-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ok-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 14px;
  overflow: hidden;
  border-bottom: 1px solid #e8eef8;
  border-left: 3px solid transparent;
}

/* A row not yet reached is a skeleton. */
.ok-row::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, #e8eef8 16px, transparent 17px) 14px 50% / 34px 34px no-repeat,
    linear-gradient(#e8eef8, #e8eef8) 61px calc(50% - 8px) / 42% 9px no-repeat,
    linear-gradient(#eef3ff, #eef3ff) 61px calc(50% + 9px) / 28% 7px no-repeat,
    #ffffff;
  content: "";
  opacity: 0;
  z-index: 1;
}

/* The sweep while knownprint reads the visit. */
.ok-row::after {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 2px;
  background: #0e7490;
  box-shadow: 0 0 0 6px #eef3ff;
  content: "";
  opacity: 0;
}

.ok-av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef3ff;
  color: #2451e6;
  font-size: 0.75rem;
  font-weight: 750;
}

.ok-bad .ok-av {
  background: #fef2f2;
  color: #b91c1c;
}

.ok-who {
  display: grid;
  min-width: 0;
}

.ok-who > b {
  font-size: 0.8125rem;
  font-weight: 650;
}

.ok-who > span {
  grid-area: 2 / 1;
}

.ok-v > * {
  grid-area: 1 / 1;
  justify-self: end;
}

.ok-wait,
.ok-sig {
  color: var(--text-2);
  font-size: 0.6875rem;
}

.ok-sig .icon {
  margin-right: 4px;
  color: #0e7490;
}

.ok-bad .ok-sig .icon {
  color: inherit;
}

.ok-by {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: #0b1b33;
  color: #f4f7fc;
  font-size: 0.6875rem;
  font-weight: 800;
}

.ok-by .mark {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.ok-by .mark-frame {
  stroke: #ffffff;
}

.ok-by .mark-lines {
  stroke: #22c4e0;
}

.ok-bad .ok-sig {
  color: #b91c1c;
  font-weight: 650;
}

.ok-v {
  display: grid;
}

.ok-chk {
  background: #e8eef8;
  color: #475569;
}

.ok-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 12px 14px 14px;
}

.ok-foot .sc-num::after {
  margin-right: 0.3em;
}

.ok-yes {
  --sc-n: 0;
}

.ok-no {
  --sc-n: 0;
}

.scene-ok.b2 .ok-yes {
  --sc-n: 1;
}

.scene-ok.b4 .ok-yes {
  --sc-n: 2;
}

.scene-ok.b8 .ok-yes {
  --sc-n: 3;
}

.scene-ok.b6 .ok-no {
  --sc-n: 1;
}

.ok-done {
  flex-basis: 100%;
  color: #15803d;
  font-size: 0.8125rem;
}

.scene-ok:not(.b8) .ok-done {
  opacity: 0;
  transform: translateY(6px);
}

/* Before its row arrives: the skeleton. Until its answer: the wait line and Checking. */
.scene-ok:not(.b1) .ok-row:nth-child(1)::before,
.scene-ok:not(.b3) .ok-row:nth-child(2)::before,
.scene-ok:not(.b5) .ok-row:nth-child(3)::before,
.scene-ok:not(.b7) .ok-row:nth-child(4)::before {
  opacity: 1;
}

.scene-ok.b2 .ok-row:nth-child(1) :is(.ok-wait, .ok-chk),
.scene-ok.b4 .ok-row:nth-child(2) :is(.ok-wait, .ok-chk),
.scene-ok.b6 .ok-row:nth-child(3) :is(.ok-wait, .ok-chk),
.scene-ok.b8 .ok-row:nth-child(4) :is(.ok-wait, .ok-chk),
.scene-ok:not(.b2) .ok-row:nth-child(1) :is(.ok-sig, .ok-v > :last-child),
.scene-ok:not(.b4) .ok-row:nth-child(2) :is(.ok-sig, .ok-v > :last-child),
.scene-ok:not(.b6) .ok-row:nth-child(3) :is(.ok-sig, .ok-v > :last-child),
.scene-ok:not(.b8) .ok-row:nth-child(4) :is(.ok-sig, .ok-v > :last-child) {
  opacity: 0;
  transform: scale(0.85);
}

.scene-ok.b2 .ok-row:nth-child(1),
.scene-ok.b4 .ok-row:nth-child(2),
.scene-ok.b8 .ok-row:nth-child(4) {
  border-left-color: #16a34a;
}

.scene-ok.b6 .ok-bad {
  border-left-color: #dc2626;
  background: #fef2f2;
}

@media (prefers-reduced-motion: no-preference) {
  .ok-row,
  .ok-row::before,
  .ok-done,
  .ok-who > span,
  .ok-v > * {
    transition:
      opacity 360ms var(--ease-out),
      transform 360ms cubic-bezier(0.3, 1.5, 0.5, 1),
      background-color 360ms ease,
      border-color 360ms ease;
  }

  .ok-yes,
  .ok-no {
    transition: --sc-n 500ms var(--ease-out);
  }

  .ok-wait {
    animation: pulse 1.2s ease-in-out infinite paused;
  }

  .scene-ok.is-playing .ok-wait {
    animation-play-state: running;
  }

  /* Once a row's answer is in, its wait line stops pulsing: a running animation would hold its
     opacity above the 0 that hides it, and it would blink over the answer. */
  .scene-ok.b2 .ok-row:nth-child(1) .ok-wait,
  .scene-ok.b4 .ok-row:nth-child(2) .ok-wait,
  .scene-ok.b6 .ok-row:nth-child(3) .ok-wait,
  .scene-ok.b8 .ok-row:nth-child(4) .ok-wait {
    animation: none;
  }

  .scene-ok.is-playing.b1 .ok-row:nth-child(1)::after,
  .scene-ok.is-playing.b3 .ok-row:nth-child(2)::after,
  .scene-ok.is-playing.b5 .ok-row:nth-child(3)::after,
  .scene-ok.is-playing.b7 .ok-row:nth-child(4)::after {
    animation: ok-sweep 860ms var(--ease-out);
  }

  .scene-ok.b6 .ok-bad {
    animation: sc-shake 420ms ease 120ms;
  }

  .scene-ok.b8 .ok-done {
    transition-delay: 200ms;
  }
}

@keyframes ok-sweep {
  0% {
    opacity: 1;
    left: 0;
  }

  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    left: 100%;
  }
}
