/* Sections 01-07. Depends on tokens.css.
 *
 * The comp is 1440 wide with a 1280 content column; everything here is that
 * column, with the grids collapsing rather than scaling. Panels stay hairline
 * boxes with no radius and no shadow, which is the one rule the handoff states
 * twice.
 */

.pxl-sec {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
  border-top: 1px solid var(--hairline);
  /* The nav is sticky and 76px tall, so an anchor jump lands a section's
     number underneath it without this. */
  scroll-margin-top: 96px;
}
.pxl-sec:first-of-type { border-top: 0; }

.pxl-sec__head { margin-bottom: clamp(28px, 4vw, 48px); }
.pxl-sec__num {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.pxl-sec__title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
}
.pxl-sec__sub {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
}
.pxl-sec__cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 500;
}
.pxl-body {
  margin: 18px 0 0;
  max-width: 68ch;
  font-family: var(--display);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.62;
  color: var(--muted);
}

/* shared code + sprite */
.pxl-code {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 19px;
  /* pre-wrap, not pre: Opus writes prose comments into its programs and one of
     the knight's runs past the half-width panel. Map rows are 16 characters so
     they never reach the wrap, and a wrapped comment beats a clipped one. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
/* A wrapped line is taller than one row, so it cannot be pinned to 19px. */
.pxl-code__line { min-height: 19px; }
.tok--kw { color: var(--code-keyword); }
.tok--val { color: var(--code-value); }
.tok--arg { color: var(--code-arg); }
.tok--map { color: var(--code-letter); }
.tok--comment { color: var(--code-comment); }

.pxl-frame {
  width: var(--frame, 176px);
  height: var(--frame, 176px);
  flex: none;
  box-sizing: border-box;
  border: 1px solid var(--hairline);
  background: var(--checker);
  background-size: var(--checker-size);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pxl-frame__art {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
}

/* 01 - the run */
.pxl-run2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.pxl-panel2 {
  border: 1px solid var(--hairline);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pxl-panel2__head {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--hairline-faint);
}
.pxl-panel2__who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.pxl-panel2[data-who="local"] .pxl-panel2__who { color: var(--accent); }
.pxl-panel2[data-who="opus"] .pxl-panel2__who { color: var(--text); }
.pxl-panel2__cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}
.pxl-panel2__body {
  display: flex;
  gap: 18px;
  padding: 18px 16px;
  align-items: flex-start;
  flex-grow: 1;
  min-width: 0;
}
.pxl-panel2__note {
  padding: 0 16px 16px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-top: auto;
}

/* 02 - the program, annotated */
.pxl-anat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: start; }
.pxl-anat__code { font-family: var(--mono); font-size: 12px; line-height: 22px; }
.pxl-anat__row { display: flex; align-items: baseline; gap: 18px; }
.pxl-anat__row .pxl-code__line { height: 22px; white-space: pre; }
.pxl-anat__note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.pxl-anat__art { display: flex; flex-direction: column; gap: 18px; }
.pxl-anat__facts { display: flex; flex-direction: column; gap: 9px; }
.pxl-anat__fact { display: flex; gap: 10px; align-items: baseline; }
.pxl-anat__fact-v { font-family: var(--mono); font-size: 11px; color: var(--code-value); }

/* 03 - eight moves */
.pxl-moves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pxl-move {
  border: 1px solid var(--hairline);
  background: var(--panel);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pxl-move__art {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  border: 1px solid var(--hairline-faint);
}
.pxl-move__name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.pxl-move__desc {
  margin: 0;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* 04 - the checker */
.pxl-stage + .pxl-stage { margin-top: clamp(32px, 5vw, 56px); }
.pxl-codes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pxl-errcode {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--warn);
  border: 1px solid rgba(255, 92, 62, 0.35);
  padding: 6px 11px;
}
.pxl-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 16px;
}
.pxl-check {
  display: grid;
  grid-template-columns: 26px 168px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline-faint);
}
.pxl-check__num { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.pxl-check__name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.pxl-check__desc { font-family: var(--display); font-size: 13px; color: var(--muted); }
.pxl-check.is-heavy .pxl-check__name { color: var(--accent); }
.pxl-check__weight {
  grid-column: 2 / -1;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.pxl-checks__foot { margin-top: 18px; max-width: 68ch; line-height: 1.8; }

/* 05 - the handoff */
.pxl-flow { display: flex; align-items: stretch; gap: 18px; flex-wrap: wrap; }
.pxl-flow__step {
  flex: 1 1 220px;
  border: 1px solid var(--hairline);
  background: var(--panel);
  padding: 18px;
  position: relative;
}
.pxl-flow__desc { margin: 10px 0 0; font-family: var(--display); font-size: 14px; color: var(--muted); }
.pxl-flow__arrow { align-self: center; color: var(--dim); font-family: var(--mono); }
.pxl-flow__reject {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warn);
}
.pxl-stats { display: flex; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; margin-top: 34px; }
.pxl-stat { display: flex; flex-direction: column; gap: 8px; }
.pxl-stat__n {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pxl-stat__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
}
.pxl-note-box {
  margin-top: 30px;
  border-left: 1px solid var(--accent);
  padding: 4px 0 4px 18px;
}

/* 06 - head to head */
.pxl-table { width: 100%; border-collapse: collapse; font-family: var(--mono); }
.pxl-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 500;
  padding: 0 18px 12px 0;
  border-bottom: 1px solid var(--hairline-strong);
}
.pxl-table td {
  padding: 18px 18px 18px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline-faint);
  font-variant-numeric: tabular-nums;
}
.pxl-table tr.is-win td { color: var(--text); }
.pxl-table tr.is-win td:last-child { color: var(--accent); }

/* 07 - what you own */
.pxl-own {
  margin-top: 34px;
  border: 1px solid var(--hairline);
  background: var(--panel-raised);
  padding: clamp(24px, 4vw, 40px);
}
.pxl-own__rows { margin-top: 20px; }
.pxl-own__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-faint);
  align-items: baseline;
}
.pxl-own__v { font-family: var(--display); font-size: 15px; color: var(--text); }
.pxl-cost { display: flex; align-items: baseline; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.pxl-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.pxl-cta__primary, .pxl-cta__secondary {
  height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.pxl-cta__primary { background: var(--accent); color: #fff; }
.pxl-cta__primary:hover { background: var(--accent-lift); color: #fff; }
.pxl-cta__secondary { border: 1px solid var(--hairline-strong); color: var(--text); }
.pxl-cta__secondary:hover { border-color: rgba(255, 255, 255, 0.34); color: var(--text); }

@media (max-width: 1000px) {
  .pxl-moves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pxl-checks { grid-template-columns: minmax(0, 1fr); }
  .pxl-anat { grid-template-columns: minmax(0, 1fr); }
  /* The sprite leads once the columns stack - the code is the explanation. */
  .pxl-anat__art { order: -1; }
}

@media (max-width: 760px) {
  .pxl-run2 { grid-template-columns: minmax(0, 1fr); }
  .pxl-panel2__body { flex-direction: column; }
  .pxl-moves { grid-template-columns: minmax(0, 1fr); }
  .pxl-check { grid-template-columns: 24px minmax(0, 1fr); }
  .pxl-check__desc { grid-column: 2; }
  .pxl-own__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pxl-anat__note { display: none; }
  /* A palette line is wider than a 360px phone; let the listing scroll on its
     own rather than the whole page scrolling sideways. */
  .pxl-anat__code { min-width: 0; overflow-x: auto; font-size: 11px; -webkit-overflow-scrolling: touch; }
}

/* 01 - palette strip and downloads */
.pxl-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.pxl-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pxl-swatch {
  width: 40px;
  height: 22px;
  border: 1px solid var(--hairline);
  background: none;
  padding: 0;
  display: flex;
  overflow: hidden;
  cursor: pointer;
}
.pxl-swatch__stop { flex: 1; }
.pxl-swatch[aria-pressed="true"] { border-color: var(--accent); }
.pxl-swatch:hover { border-color: rgba(255, 255, 255, 0.34); }

.pxl-downloads { display: flex; gap: 10px; }
.pxl-dl {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.pxl-dl:hover { border-color: rgba(255, 255, 255, 0.34); color: var(--text); }
.pxl-dl--go { color: var(--accent); border-color: rgba(47, 125, 246, 0.4); display: inline-flex; align-items: center; }
.pxl-dl--go:hover { color: var(--accent-lift); border-color: var(--accent); }

/* 01 - the run readouts, carried over from the run page's treatment */
.pxl-panel2__bar { height: 2px; background: rgba(255, 255, 255, 0.07); }
.pxl-panel2__bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 90ms linear;
}
.pxl-panel2__clock {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 16px 0;
  min-height: 34px;
}
.pxl-panel2__ms {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pxl-panel2__ms-unit { font-family: var(--mono); font-size: 12px; color: var(--label); }
.pxl-panel2__beat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: auto;
}

/* The sprite gets a scan line on the row that just landed, as on the run
   page - it is what ties the streaming map text to the picture. */
.pxl-panel2__stage {
  position: relative;
  width: 176px;
  height: 176px;
  flex: none;
  box-sizing: border-box;
  border: 1px solid var(--hairline);
  background: var(--checker);
  background-size: var(--checker-size);
}
.pxl-panel2__stage .pxl-frame__art { width: 100%; height: 100%; }
.pxl-panel2__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
}
.pxl-panel2__scan.is-on { opacity: 1; }

@media (max-width: 760px) {
  .pxl-panel2__stage { width: 140px; height: 140px; }
}

/* ------------------------------------------------ daily allowance meter */
.pxl-quota {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dim);
}
.pxl-quota[hidden] { display: none; }
.pxl-quota__cells { display: inline-flex; gap: 4px; }
.pxl-quota__cell {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background 240ms ease, box-shadow 240ms ease;
}
.pxl-quota__cell.is-on {
  background: var(--accent);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.22);
}
.pxl-quota__count { color: var(--text); }
.pxl-quota__note { color: var(--dim); }
.pxl-quota[data-empty="true"] .pxl-quota__count { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pxl-quota__cell { transition: none; } }

/* On the panel: left-aligned, one line, under the note it explains. */
.pxl-quota--compact { justify-content: flex-start; margin: 0; padding: 12px 16px; border-top: 1px solid var(--hairline-faint); }
.pxl-quota--compact .pxl-quota__cell { width: 9px; height: 9px; }
.pxl-quota--compact .pxl-quota__label { display: none; }
.pxl-quota__total { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.pxl-quota__total[hidden] { display: none; }
.pxl-quota__track {
  position: relative;
  width: 96px;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.pxl-quota__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent-lift);
  transition: width 240ms ease;
}
.pxl-quota--compact .pxl-quota__track { width: 64px; }
@media (prefers-reduced-motion: reduce) { .pxl-quota__fill { transition: none; } }

/* The program toggle exists for phones only; wider screens always show it. */
.pxl-panel2__toggle { display: none; }

/* ------------------------------------------------------------- phones
   The comparison is the point of section 01, so on a phone the two sprites
   sit side by side where both fit in one screen, and each program listing
   folds behind a toggle instead of stacking a screen and a half of code
   between them. */
@media (max-width: 760px) {
  .pxl-run2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .pxl-panel2__head {
    height: auto;
    /* Tall enough for a caption that wraps to two lines on a 320px phone,
       so the two panels' header rules stay level. */
    min-height: 66px;
    justify-content: flex-start;
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .pxl-panel2__who { font-size: 10px; letter-spacing: 0.14em; }
  .pxl-panel2__cap { font-size: 9px; letter-spacing: 0.08em; line-height: 1.4; }
  /* The caption already reads "12.5 ms, in your browser", and the bar under
     the header shows progress, so the counter row was a 42px empty band
     between the header and the sprite. */
  .pxl-panel2__clock { display: none; }
  .pxl-panel2__body { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
  .pxl-panel2__stage { width: 100%; height: auto; aspect-ratio: 1; }
  .pxl-panel2__note { padding: 0 12px 12px; font-size: 9px; letter-spacing: 0.02em; }

  .pxl-panel2 .pxl-code { display: none; }
  .pxl-panel2[data-code="open"] .pxl-code {
    display: block;
    font-size: 10px;
    line-height: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pxl-panel2__toggle {
    display: block;
    width: 100%;
    min-height: 40px;           /* a thumb, not a cursor */
    border: 1px solid var(--hairline);
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .pxl-panel2__toggle[aria-expanded="true"] { color: var(--accent); border-color: rgba(47, 125, 246, 0.4); }

  /* Both meters: two tidy rows instead of four wrapped, centred fragments. */
  .pxl-quota {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    margin-top: 16px;
    letter-spacing: 0.14em;
  }
  .pxl-quota__label { display: none; }
  .pxl-quota__total { grid-column: 1 / -1; justify-self: center; }
  .pxl-quota__note { grid-column: 1 / -1; justify-self: center; font-size: 9px; }
  .pxl-quota--compact { justify-content: start; padding: 10px 12px; gap: 6px 8px; }
  .pxl-quota--compact .pxl-quota__cell { width: 8px; height: 8px; }
  .pxl-quota--compact .pxl-quota__cells { gap: 3px; }
  .pxl-quota--compact .pxl-quota__count,
  .pxl-quota--compact .pxl-quota__total { grid-column: 1 / -1; justify-self: start; letter-spacing: 0.06em; }
  .pxl-quota--compact .pxl-quota__track { width: 100%; max-width: 120px; }
  .pxl-quota--compact .pxl-quota__total { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pxl-quota--compact .pxl-quota__note { display: none; }

  /* Palette strip and downloads: full width, thumb-sized. */
  .pxl-tools { flex-direction: column; align-items: stretch; gap: 14px; }
  .pxl-downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pxl-dl { min-height: 44px; justify-content: center; text-align: center; }
}

/* ------------------------------------------- phones: sections 02 - 07
   The desktop layouts collapsed to one column of desktop-sized parts. These
   rules re-proportion them for a 360-430px screen instead. */
@media (max-width: 760px) {
  .pxl-sec { padding: 48px 0; scroll-margin-top: 72px; }
  .pxl-sec__head { margin-bottom: 24px; }

  /* 02: the sprite and its facts side by side, then the listing. */
  .pxl-anat__art { flex-direction: row; align-items: center; gap: 16px; }
  .pxl-anat__art .pxl-frame { --frame: 132px !important; flex: none; }

  /* 03: eight moves as a compact two-column grid - about half the scroll. */
  .pxl-moves { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pxl-move { padding: 14px; gap: 8px; }
  .pxl-move__art { width: 40px; height: 40px; }
  .pxl-move__name { font-size: 11px; letter-spacing: 0.12em; }
  .pxl-move__desc { font-size: 12px; line-height: 1.45; }

  /* 04: tighter rows - name over description, half the vertical rhythm. */
  .pxl-check { row-gap: 3px; padding: 9px 0; }
  .pxl-check__name { font-size: 10.5px; }
  .pxl-check__desc { font-size: 12.5px; line-height: 1.4; }
  .pxl-codes { gap: 8px; }
  .pxl-errcode { font-size: 10px; padding: 5px 9px; }

  /* 05: the flow reads top to bottom, so its arrows point down. */
  .pxl-flow { flex-direction: column; gap: 6px; }
  .pxl-flow__step { flex: none; padding: 14px 16px; }
  .pxl-flow__arrow { align-self: center; transform: rotate(90deg); line-height: 1; padding: 2px 0; }
  .pxl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .pxl-stat__n { font-size: clamp(24px, 7.4vw, 32px); }
  .pxl-stat__label { font-size: 9px; letter-spacing: 0.1em; line-height: 1.4; }

  /* 06: one labelled card per row. */
  .pxl-table thead { display: none; }
  .pxl-table, .pxl-table tbody, .pxl-table tr { display: block; }
  .pxl-table tr {
    border: 1px solid var(--hairline);
    background: var(--panel);
    padding: 6px 16px;
    margin-bottom: 10px;
  }
  .pxl-table td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    font-size: 13px;
  }
  .pxl-table tr td:last-child { border-bottom: 0; }
  .pxl-table td::before {
    content: attr(data-label);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--label);
    padding-top: 2px;
  }
  .pxl-table tr.is-win { border-color: rgba(47, 125, 246, 0.4); }

  /* 07: full-width, thumb-sized actions. */
  .pxl-cta { flex-direction: column; gap: 10px; }
  .pxl-cta__primary, .pxl-cta__secondary { justify-content: center; height: 52px; }
}

/* ------------------------------------------- phones: touch and legibility
   Measured on a 390px phone: the palette swatches were 40 x 22 tap targets,
   and the panels' sentences were set at 9px. Uppercase mono labels stay
   small - they are labels - but anything read as a sentence goes to 10.5px
   or more, and anything tapped gets at least ~40px in its short dimension. */
@media (max-width: 760px) {
  .pxl-swatch { min-width: 44px; min-height: 36px; }
  .pxl-strip { gap: 8px; }
  .pxl-panel2__note { font-size: 10.5px; line-height: 1.55; }
  .pxl-panel2__cap { font-size: 10px; }
  .pxl-quota__note { font-size: 10px; }
  .pxl-stat__label { font-size: 10px; }
  .pxl-flow__reject, .pxl-check__weight { font-size: 10px; }
}

/* Touch screens have no hover, so a tap needs its own acknowledgement. */
@media (hover: none) {
  .pxl-hero__chip, .pxl-dl, .pxl-swatch, .pxl-panel2__toggle,
  .pxl-cta__primary, .pxl-cta__secondary { -webkit-tap-highlight-color: transparent; }
  .pxl-hero__chip:active, .pxl-dl:active, .pxl-panel2__toggle:active,
  .pxl-cta__secondary:active { border-color: var(--accent); color: var(--text); background: rgba(47, 125, 246, 0.08); }
  .pxl-swatch:active { outline: 1px solid var(--accent); outline-offset: 2px; }
  .pxl-cta__primary:active { background: var(--accent-lift); }
}
