/* GTAX code reels (reels.js). Colours and faces are the site's tokens (site.css);
   the resolved letters repeat the mark: indigo squares, the full code in teal. */
.cr-stage { display: grid; justify-items: center; gap: 14px; --cr-col: 124px; --cr-h: 264px; }
.cr-reels { display: flex; gap: 12px; }
.cr-col { display: grid; justify-items: center; gap: 8px; width: var(--cr-col); }
.cr-tier { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate); }
.cr-reel { position: relative; width: 92px; height: var(--cr-h); overflow: hidden; border-radius: 4px; background: var(--tint);
  touch-action: none; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.cr-live .cr-reel { cursor: grab; }
.cr-live .cr-reel:active { cursor: grabbing; }
.cr-reel:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.cr-cell { position: absolute; left: 8px; right: 8px; top: 0; height: calc(var(--cr-h) / 3);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1;
  color: var(--indigo); will-change: transform; }
/* the no-script view: one resting letter in the middle of the window */
.cr-stage:not(.cr-live) .cr-cell { transform: translateY(calc(var(--cr-h) / 3)); }
.cr-cell.cr-on { background: var(--indigo); color: var(--paper); border-radius: 3px; }
.cr-last .cr-cell.cr-on { background: var(--teal); color: #fff; }
.cr-name { font-family: var(--display); font-size: 0.88rem; line-height: 1.25; color: var(--ink); text-align: center;
  width: 100%; height: 3.75em; overflow: hidden; overflow-wrap: anywhere; }
.cr-spin { font-family: var(--display); font-size: 1rem; font-weight: 600; color: #fff; background: var(--teal-deep);
  border: 1px solid var(--teal-deep); border-radius: 3px; padding: 11px 20px 9px; cursor: pointer; }
.cr-spin:disabled { opacity: 0.6; cursor: progress; }
.cr-spin:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
/* scoped twice: the hero's own `.hero p` size must not reach the app's lines */
.cr-stage .cr-hint { font-size: 0.84rem; line-height: 1.4; color: var(--slate); margin: 0; max-width: none; }

.cr-readout { min-width: 0; }
.cr-readout:empty { display: none; }
.cr-code-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.cr-code { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: 0.04em; color: var(--teal-deep); }
.cr-path { font-family: var(--display); font-size: 1.1rem; color: var(--indigo); }
.cr-readout .cr-counts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 10px 0 0; max-width: none; font-size: 0.95rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.cr-counts b { color: var(--ink); font-weight: 600; }
.cr-readout .cr-desc { margin: 10px 0 0; max-width: 72ch; font-size: 1rem; line-height: 1.55; }
.cr-table { overflow-x: auto; margin-top: 14px; }
.cr-table table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.cr-table caption { text-align: left; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); padding-bottom: 6px; }
.cr-table th { font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate);
  text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.cr-table td { padding: 7px 8px; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.cr-table .cr-num { text-align: right; white-space: nowrap; }
.cr-table .cr-rank { color: var(--slate); width: 2.2em; }
.cr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cr-readout .cr-source { margin: 10px 0 0; font-size: 0.82rem; line-height: 1.4; color: var(--slate); max-width: none; }
@media (max-width: 700px) {
  .cr-stage { --cr-col: 100px; --cr-h: 216px; }
  .cr-reels { gap: 8px; }
  .cr-reel { width: 80px; }
  .cr-cell { font-size: 2.6rem; }
  .cr-code { font-size: 2rem; }
}
