/* The hero illustration (ill.mjs draws it, ill.js plays it). Colours are the ones in Adaface's
   own hero art and stylesheet; the four dots are ours. */
:root {
  --ill-ink: #2b2b2b;
  --ill-sky: #d6eaf2;
  --ill-blue: #209cee;
  --ill-blue-3: #b3e5fc;
  --ill-muted: #6b6b6b;
}
.cx-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ill {
  position: relative;
  width: 576px;
  height: 398px;
  flex: none;
  color: var(--ill-ink);
  text-align: left;
}
.ill svg.scene {
  position: absolute;
  left: 0;
  top: 44px;
  overflow: visible;
}
.ill .ln {
  stroke: var(--ill-ink);
  stroke-width: 1.75;
  stroke-linejoin: round;
  stroke-linecap: round;
}
/* The two side labels: pills, red on the side without us and blue on ours, so they read first. */
.ill-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}
.ill-labels > span {
  justify-self: center;
  max-width: calc(100% - 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fdeee8;
  color: #b8330c;
  white-space: nowrap;
}
.ill-labels > span.amn {
  background: #e3f2fd;
  color: #0a6ebd;
}
.ill-dots {
  display: inline-grid;
  grid-template-columns: 5px 5px;
  grid-template-rows: 5px 5px;
  gap: 2px;
}
.ill-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.ill-dots i:nth-child(1) {
  background: #2f6de0;
}
.ill-dots i:nth-child(2) {
  background: #2e9e5b;
}
.ill-dots i:nth-child(3) {
  background: #e08a1e;
}
.ill-dots i:nth-child(4) {
  background: #8a54d6;
}

/* Steps: from-N shows from step N on, only-2 shows in step 2 alone. */
.ill[data-step="1"] .from-2,
.ill[data-step="1"] .from-3,
.ill[data-step="2"] .from-3,
.ill:not([data-step="2"]) .only-2 {
  opacity: 0;
}

/* The drawing */
.ill .front {
  fill: #fff;
}
.ill .front.sky {
  fill: var(--ill-sky);
}
.ill .bub {
  fill: #fff;
}
.ill .hl {
  fill: var(--ill-blue-3);
  opacity: 0.75;
}
/* Green is the real question, red the decoy. */
.ill .band.real {
  fill: #e3f4e6;
}
.ill .band.decoy {
  fill: #fde3dc;
}
.ill .t-cap {
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--ill-muted);
}
.ill .t-cap.real {
  fill: #1f7a43;
}
.ill .t-cap.decoy {
  fill: #c93b12;
}
.ill .t-q {
  font-size: 15px;
  font-weight: 800;
  fill: var(--ill-ink);
}
.ill .t-bl {
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--ill-muted);
}
.ill .t-b {
  font-size: 13px;
  font-weight: 800;
  fill: var(--ill-ink);
}
.ill .t-out {
  font-size: 15px;
  font-weight: 900;
  fill: var(--ill-ink);
}
.ill .t-out.amn {
  fill: var(--ill-blue);
}

/* Motion, on the playing copy only (ill.js moves the parts). Steps cross-fade; at step 2 the
   highlight lands as the AI's read ends; the outcome follows the answer. */
.ill.play .from-2,
.ill.play .from-3,
.ill.play .only-2 {
  transition: opacity 0.4s;
}
.ill.play[data-step="2"] .hl {
  transition-delay: 0.7s;
}
.ill.play[data-step="3"] .t-out {
  transition-delay: 0.4s;
}
.ill.play .scan-fill {
  transform-box: fill-box;
  transform-origin: top;
}
