/* TAISO base styles. Dark only. No drop shadows. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-200-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Pix32';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Pixel32.v1.9.7.woff2') format('woff2');
}

:root {
  --bg: #0B0C0E;
  --accent: #FF5C1A;
  --accent-rgb: 255, 92, 26;
  --accent-soft: rgba(255, 92, 26, .45);
  --ink: #F2F2F2;
  --ink-soft: rgba(242, 242, 242, .62);
  --ink-faint: rgba(242, 242, 242, .38);
  --line: rgba(242, 242, 242, .14);
  --font-thin: 'Outfit', system-ui, sans-serif;
  --font-label: 'Pix32', ui-monospace, monospace;
  --cell: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-thin);
  font-weight: 300;
  -webkit-text-size-adjust: 100%;
}

#app { min-height: 100%; }

/* ---- Shell ---------------------------------------------------------------- */

:root {
  --gutter: 16px;
  --tabbar-h: 56px;
}

#app { display: flex; flex-direction: column; min-height: 100%; }

#view {
  flex: 1;
  padding: calc(env(safe-area-inset-top) + 24px) calc(var(--gutter) + env(safe-area-inset-left)) calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px) calc(var(--gutter) + env(safe-area-inset-right));
  outline: none;
}

.screen { max-width: 640px; margin: 0 auto; }

.eyebrow {
  margin: 0 0 var(--cell);
  font-family: var(--font-label);
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}

.screen__title {
  margin: 0 0 24px;
  font-family: var(--font-thin);
  font-weight: 200;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.screen__note { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-label);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  padding: 0 calc(var(--gutter) + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(var(--gutter) + env(safe-area-inset-left));
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.tab {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tabbar-h);
  min-width: 44px;
  font-family: var(--font-label);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tab[aria-current="page"] { color: var(--accent); }

.tab[aria-current="page"]::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: calc(var(--cell) * 6);
  height: 2px;
  margin-left: calc(var(--cell) * -3);
  background: var(--accent);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px calc(var(--gutter) + env(safe-area-inset-right)) 12px calc(var(--gutter) + env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}
.note__text {
  flex: 1;
  margin: 0;
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.note__close {
  min-width: 44px;
  min-height: 44px;
  margin: -12px 0;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-label);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.note__close:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.tab:focus-visible, .link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- Moves ---------------------------------------------------------------- */

.moves [hidden] { display: none !important; }

.search {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0 0 16px;
  padding: 0 16px;
  font-family: var(--font-thin);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 24px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search::placeholder { color: var(--ink-faint); }
.search:focus-visible { border-color: var(--accent); }

.chiprow { margin: 0 0 12px; }

.chiprow__label {
  display: block;
  margin: 0 0 var(--cell);
  font-family: var(--font-label);
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-faint);
}

/* One scrolling line per row; bleeds to the screen edges so chips slide under the gutter. */
.chiprow__strip {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chiprow__strip::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  font-family: var(--font-label);
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.chip:focus-visible, .textbtn:focus-visible, .move:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.moves__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: 8px 0 0;
  border-bottom: 1px solid var(--line);
}

.moves__count {
  margin: 0;
  font-family: var(--font-label);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}

.textbtn {
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--font-label);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}
.textbtn--solid {
  padding: 0 24px;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
}

.move {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
}

.move__thumb {
  flex: none;
  width: 48px;
  height: 60px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(242, 242, 242, .04);
}
.move__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.move__thumb--missing { background: rgba(242, 242, 242, .08); }

.move__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.move__name {
  font-family: var(--font-thin);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}

.move__meta { display: flex; align-items: center; gap: 8px; min-width: 0; }

.pill {
  flex: none;
  padding: 3px 8px 2px;
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.move__regions {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--ink-faint);
}

.dots { flex: none; display: flex; gap: 4px; }
.dots__dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots__dot--on { background: var(--accent); }

.moves__empty { padding: 48px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.moves__none { margin: 0; font-weight: 200; font-size: 32px; line-height: 1.1; color: var(--ink-soft); }

/* ---- Ladders -------------------------------------------------------------- */

.ladder { margin: 0 0 40px; }

.ladder__name {
  margin: 0 0 16px;
  font-family: var(--font-thin);
  font-weight: 200;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.chain { list-style: none; margin: 0; padding: 0; }

.rung { position: relative; padding: 0 0 12px 32px; }

/* The line runs from this node's centre (28px down) to the next node's centre (28px past this row),
   so it joins at any row height. A wider low-alpha halo sits behind a 2px core: light, but no shadow. */
.rung::before,
.rung::after {
  content: '';
  position: absolute;
  top: 28px;
  bottom: -28px;
}
.rung::before {
  left: 7px;
  width: 2px;
  background: rgba(var(--accent-rgb), .12);
}
.rung::after {
  left: 0;
  width: 16px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .06), transparent);
}
.rung:last-child::before,
.rung:last-child::after { display: none; }
/* Brighter between two present steps. */
.rung--lit::before { background: rgba(var(--accent-rgb), .55); }
.rung--lit::after { background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .24), transparent); }

.rung__node {
  position: absolute;
  left: 0;
  top: 20px;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
  /* The one intentional glow on this screen: a lit step. */
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .45);
}
.rung--missing .rung__node {
  border-color: rgba(var(--accent-rgb), .22);
  box-shadow: none;
}

.rung__card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a.rung__card:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
a.rung__card:active .rung__name { color: var(--accent); }

.rung__num {
  flex: none;
  width: 24px;
  font-family: var(--font-label);
  font-size: 16px;
  line-height: 20px;
  color: var(--ink-faint);
}

.rung__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.rung__name {
  font-family: var(--font-thin);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rung--missing .rung__name { color: var(--ink-faint); }

.rung__tag {
  padding: 3px 8px 2px;
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.rung--missing .move__thumb { opacity: .5; }

/* ---- Body ----------------------------------------------------------------- */
/* Body screen: glass body, callout nodes, leader lines, sheet. Owned by src/body-map.js. */

.body [hidden] { display: none !important; }

.body__title {
  margin: 0 0 8px;
  font-family: var(--font-thin);
  font-weight: 200;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.stage { position: relative; width: 100%; margin: 0 0 16px; }

.stage__fig { position: absolute; top: 0; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.stage__img { display: block; width: 100%; height: 100%; pointer-events: none; }
.stage__img.is-turning { animation: body-turn .24s ease-out; }
@keyframes body-turn { from { opacity: 0; } to { opacity: 1; } }

.stage__tints { position: absolute; inset: 0; pointer-events: none; }

/* Selected light: an accent div masked by an alpha copy of the region PNG (made at load; the glow layer uses a blurred copy). */
.tint {
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: screen;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.tint--zone { opacity: .7; }
.tint--kin { opacity: .3; }
.tint--hot { opacity: .85; }
.tint--glow { opacity: .6; }

.stage__lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.lead line { stroke: rgba(242, 242, 242, .34); stroke-width: 1; }
.lead circle { fill: rgba(242, 242, 242, .6); }
.lead--on line { stroke: var(--accent); }
.lead--on circle { fill: var(--accent); }

.node {
  position: absolute;
  z-index: 2;
  width: 84px;
  margin: 0 0 0 -42px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.node__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--accent-rgb), .7);
  border-radius: 50%;
  background: rgba(11, 12, 14, .72);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .3);
  transition: background .15s, box-shadow .15s;
}

.node__num {
  font-family: var(--font-thin);
  font-weight: 200;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
}

.node__label {
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.node--kin .node__ring { box-shadow: 0 0 16px rgba(var(--accent-rgb), .5); }
.node--on .node__ring { background: var(--accent); box-shadow: 0 0 20px rgba(var(--accent-rgb), .6); }
.node--on .node__num { color: var(--bg); font-weight: 300; }
.node--on .node__label, .node--kin .node__label { color: var(--accent); }
.node:focus-visible, .turn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

.turn {
  position: absolute;
  bottom: 0;
  z-index: 2;
  margin-left: -42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 84px;
  min-height: 44px;
  font-family: var(--font-label);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  background: rgba(11, 12, 14, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.turn__arrow { color: var(--accent); font-size: 16px; line-height: 1; }

.sheet {
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.sheet__head { display: flex; align-items: flex-end; gap: 16px; }

.sheet__num {
  flex: none;
  margin: 0;
  font-family: var(--font-thin);
  font-weight: 200;
  font-size: 96px;
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--ink);
}

.sheet__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 6px; }

.sheet__area {
  margin: 0;
  font-family: var(--font-label);
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}

.sheet__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sheet__links .link { font-size: 14px; min-height: 36px; }

.sheet__list { margin: 12px 0 0; border-top: 1px solid var(--line); }
.sheet__list:empty { display: none; }
.sheet__note { margin: 12px 0 0; font-weight: 200; font-size: 24px; line-height: 1.2; color: var(--ink-soft); }
/* ---- End Body ------------------------------------------------------------- */

/* ---- Detail --------------------------------------------------------------- */
/* Detail screen: flip viewer, dose numerals, muscles, written guidance. Owned by src/detail.js. */

.detail__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -8px 0 0;
  font-family: var(--font-label);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  text-decoration: none;
}
.detail__back:focus-visible, .flip:focus-visible, .flip__dot:focus-visible, .scard:focus-visible, .cnode:focus-visible, .srcs__a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.detail__head { margin: 0 0 16px; }
.detail__title { margin: 0 0 12px; font-family: var(--font-thin); font-weight: 200; font-size: 40px; line-height: 1.08; letter-spacing: -.01em; }
.detail__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Flip viewer: frames stacked, each later frame wiped in from the left with clip-path. */
.detail__viewer { margin: 0 0 8px; }
.flip {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(242, 242, 242, .04);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.flip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: clip-path .22s ease-out; }
.flip__img.is-missing, .scard__thumb img.is-missing { object-fit: contain; padding: 12%; }
.flip.is-wiping .flip__img { transition: none; }
.flip__edge { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -1px; background: var(--accent); opacity: 0; transition: opacity .15s; pointer-events: none; }
.flip.is-wiping .flip__edge { opacity: .9; }
.flip__count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 8px 2px;
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  background: rgba(11, 12, 14, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
  pointer-events: none;
}

.flip__dots { display: flex; justify-content: center; }
.flip__dot { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flip__pip { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .15s, box-shadow .15s; }
.flip__dot.is-on .flip__pip { background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .6); }

.flip__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.flip__hint { margin: 0; font-family: var(--font-label); font-size: 12px; line-height: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }

/* Dose: giant thin numerals. */
.dose { margin: 16px 0 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dose__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 32px; }
.dose__num { margin: 0; font-family: var(--font-thin); font-weight: 200; font-size: clamp(48px, 17vw, 64px); line-height: .95; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.dose__label { margin: 6px 0 0; font-family: var(--font-label); font-size: 12px; line-height: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.dose__note { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* Sections. */
.dsec { padding: 24px 0 0; }
.dsec__h { margin: 0 0 12px; font-family: var(--font-label); font-weight: 400; font-size: 16px; line-height: 20px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.dsec__p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }

.dsteps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.dsteps li { position: relative; padding: 0 0 14px 40px; font-size: 17px; line-height: 1.5; counter-increment: step; }
.dsteps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--font-label); font-size: 14px; line-height: 18px; letter-spacing: .08em; color: var(--accent); }

.dlist { margin: 0; padding: 0; list-style: none; }
.dlist li { position: relative; padding: 0 0 10px 20px; font-size: 17px; line-height: 1.5; }
.dlist li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--accent); }
.dlist--warn li::before { background: var(--ink-faint); }

/* Muscles: chips beside a small body. */
.muscles { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.muscles__chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dchip { padding: 6px 12px 5px; font-family: var(--font-label); font-size: 13px; line-height: 16px; text-transform: uppercase; letter-spacing: .08em; border-radius: 999px; }
.dchip--p { color: var(--bg); background: var(--accent); border: 1px solid var(--accent); }
.dchip--s { color: var(--ink-soft); background: none; border: 1px solid var(--accent-soft); }

.mini { position: relative; flex: none; width: 96px; aspect-ratio: 720 / 1200; }
.mini__img { display: block; width: 100%; height: 100%; pointer-events: none; }
.mini__tints { position: absolute; inset: 0; pointer-events: none; }
.tint--solid { opacity: 1; }
.tint--soft { opacity: .45; }

/* Progression chain: a vertical line with glowing nodes, like Ladders. */
.dchain { margin: 0; padding: 0; list-style: none; }
.dchain__step { position: relative; padding: 0 0 0 28px; min-height: 52px; }
.dchain__step::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.dchain__step:first-child::before { top: 22px; }
.dchain__step:last-child::before { bottom: auto; height: 22px; }
.dchain__step:only-child::before { display: none; }
.dchain__tag { display: block; margin: 0 0 -4px; padding-top: 2px; font-family: var(--font-label); font-size: 12px; line-height: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.cnode { position: relative; display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.cnode__dot { position: absolute; left: -28px; top: 50%; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-faint); }
.cnode__name { font-family: var(--font-thin); font-weight: 300; font-size: 19px; line-height: 1.2; }
.cnode--here .cnode__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .6); }
.cnode--here .cnode__name { color: var(--accent); }
a.cnode:hover .cnode__dot { border-color: var(--accent); }

/* Stretch after cards. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scard { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.scard__thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: rgba(242, 242, 242, .04); }
.scard__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scard__name { font-family: var(--font-thin); font-weight: 300; font-size: 18px; line-height: 1.2; }

/* Sources. */
.srcs { margin: 0; padding: 0; list-style: none; }
.srcs li { border-bottom: 1px solid var(--line); }
.srcs__a { display: block; padding: 12px 0; font-size: 15px; line-height: 1.4; color: var(--ink-soft); text-decoration: none; overflow-wrap: anywhere; }
.srcs__a:hover { color: var(--accent); }

.detail__safety { margin: 32px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-family: var(--font-label); font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .flip__img { transition: none; }
}
/* ---- End Detail ----------------------------------------------------------- */

/* BEGIN covers: category header above the Moves list */
.moves__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  margin: 0 0 16px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg);
}
/* END covers */
