/* PixalCream Studios - heritage page only. Uses the tokens from site.css (--panel, --line, --accent...). */

/* hidden must win over the card's display:flex when a filter hides it */
.race[hidden], .hx-tools[hidden], .hx-count[hidden], [hidden].hx-locknote, .hx-linkbox[hidden] { display: none !important; }

.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hx-nojs { color: var(--muted); padding: 1rem 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius); margin: 0; }
.hx-lede { color: var(--muted); max-width: 46rem; margin: 0.25rem 0 1.25rem; }
.hx-note { color: var(--muted); font-size: 0.9375rem; margin: 0.5rem 0 0; }

/* hero extras */
.hx-quick { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.625rem; max-width: 52rem; }
.hx-quick li { padding: 0.375rem 0.875rem; border: 1px solid var(--line); border-radius: 62.4375rem; background: var(--panel); color: #c3cde2; font-size: 0.9062rem; }
.hx-quick b { color: var(--accent); }
.hx-jump { display: flex; flex-wrap: wrap; gap: 0.25rem 1.125rem; margin-top: 1.25rem; font-size: 0.9375rem; }
.hx-jump a { display: inline-block; padding: 0.375rem 0; color: var(--accent-2); }

.hx-origin { margin: 0 0 2rem; max-width: 52rem; }
.hx-banner { margin-top: 0.5rem; }

/* ---------- cards ---------- */
.race .hx-blood { font-size: 0.8125rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.4375rem; color: var(--muted); }
.race .hx-blood::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #d94a4a; box-shadow: 0 0 8px rgba(217, 74, 74, .55); }
.race .hx-blood.copper::before { background: #3f8cff; box-shadow: 0 0 8px rgba(63, 140, 255, .55); }
.hx-more { margin-top: 0.25rem; }
.hx-more summary { cursor: pointer; color: var(--accent-2); font-size: 0.9062rem; font-weight: 600; padding: 0.25rem 0; }
.hx-more dl { margin: 0.5rem 0 0; display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 0.375rem 0.75rem; font-size: 0.9062rem; }
.hx-more dt { color: var(--text); font-weight: 600; }
.hx-more dd { margin: 0; color: #b6c1d9; }
.hx-cardbtns { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.25rem; }
.hx-link { background: none; border: 0; padding: 0.375rem 0; color: var(--accent-2); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.hx-link:hover { text-decoration: underline; }
.race.hx-flash { animation: hx-glow 1.5s ease-out; }
@keyframes hx-glow {
  0% { box-shadow: 0 0 0 0 rgba(78, 201, 255, 0); border-color: var(--line); }
  25% { box-shadow: 0 0 0 4px rgba(78, 201, 255, .45); border-color: var(--accent-2); }
  100% { box-shadow: 0 0 0 0 rgba(78, 201, 255, 0); }
}

/* ---------- shared form bits ---------- */
.hx-field { display: flex; flex-direction: column; gap: 0.3125rem; min-width: 0; }
.hx-field > label, .hx-label { font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hx-input, .hx-select {
  width: 100%; min-width: 0; padding: 0.5625rem 0.75rem; border-radius: 0.625rem;
  border: 1px solid var(--line); background: rgba(5, 7, 13, .7); color: var(--text); font: inherit; font-size: 0.9688rem;
}
.hx-select { cursor: pointer; }
.hx-input:focus-visible, .hx-select:focus-visible { border-color: var(--accent-2); }
.hx-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 62.4375rem; overflow: hidden; background: rgba(5, 7, 13, .7); }
.hx-segbtn, .hx-chip {
  background: transparent; color: var(--muted); border: 0; font: inherit; font-size: 0.875rem; font-weight: 600;
  padding: 0.5rem 0.875rem; cursor: pointer; min-height: 2.5rem;
}
.hx-segbtn[aria-pressed="true"] { background: rgba(78, 201, 255, .16); color: var(--accent-2); }
/* the segmented box clips overflow, so draw the focus ring inside the button */
.hx-segbtn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -3px; }
.hx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.hx-chips .hx-label { margin-right: 0.25rem; }
.hx-chip { border: 1px solid var(--line); border-radius: 62.4375rem; background: var(--panel); }
.hx-chip:hover, .hx-segbtn:hover { color: var(--text); }
.hx-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(255, 138, 61, .1); }
.hx-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1rem; align-items: center; }
.btn.hx-small { padding: 0.5625rem 1.125rem; font-size: 0.875rem; }
.btn[aria-disabled="true"] { opacity: .55; }
.hx-hint { color: var(--muted); font-size: 0.875rem; }

/* ---------- explorer tools ---------- */
.hx-tools { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.hx-toolrow { display: grid; gap: 0.875rem; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; align-items: end; }
.hx-count { margin: 1rem 0 0; color: #c3cde2; font-size: 0.9375rem; min-height: 1.5em; }

/* ---------- tables (stack into cards on phones) ---------- */
.hx-tablewrap { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow-x: auto; }
.hx-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hx-table th, .hx-table td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.hx-table thead th { font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(5, 7, 13, .45); }
.hx-table tbody th { color: var(--text); font-weight: 700; }
.hx-table td { color: #b6c1d9; }
.hx-table td b { color: var(--text); }
.hx-table tbody tr:last-child th, .hx-table tbody tr:last-child td { border-bottom: 0; }
.hx-table tbody tr:hover { background: rgba(78, 201, 255, .04); }
@media (max-width: 760px) {
  .hx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hx-table, .hx-table tbody, .hx-table tr, .hx-table th, .hx-table td { display: block; width: 100%; }
  .hx-table tr { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .hx-table tbody tr:last-child { border-bottom: 0; }
  .hx-table th, .hx-table td { border: 0; padding: 0.25rem 1rem; }
  .hx-table td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}

/* ---------- compare ---------- */
.hx-compare { margin-top: 0.5rem; }
.hx-cmp-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.875rem; align-items: end; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.hx-swap { align-self: end; }
.hx-cmp-out { margin-top: 1rem; padding: 1.25rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.hx-cmp-heads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-left: min(11rem, 32%); }
.hx-cmp-head { display: flex; flex-direction: column; gap: 0.125rem; border-top: 3px solid var(--c, var(--accent-2)); padding-top: 0.625rem; min-width: 0; }
.hx-cmp-ep { color: var(--accent); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.hx-cmp-name { color: var(--text); font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.hx-cmp-meta { color: var(--muted); font-size: 0.875rem; }
.hx-h4 { margin: 1.5rem 0 0.625rem; font-weight: 700; line-height: 1.4; font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.hx-cmp-row { display: grid; grid-template-columns: min(11rem, 32%) minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.375rem 0; border-bottom: 1px solid rgba(28, 39, 64, .6); }
.hx-cmp-label { color: #c3cde2; font-size: 0.9375rem; }
.hx-cmp-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hx-barline { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.hx-track { position: relative; flex: 1 1 auto; height: 0.5rem; border-radius: 62.4375rem; background: rgba(141, 154, 181, .14); overflow: hidden; min-width: 2rem; }
.hx-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--c, var(--accent-2)); box-shadow: 0 0 10px var(--c, transparent); transition: width .35s var(--ease, ease); }
.hx-div::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(223, 230, 243, .45); }
.hx-dfill { position: absolute; top: 0; bottom: 0; transition: width .35s var(--ease, ease), left .35s var(--ease, ease); }
.hx-dfill.good { background: #5fd39a; }
.hx-dfill.bad { background: #ffb35c; }
.hx-val { flex: 0 0 auto; min-width: 1.5rem; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.9375rem; }
.hx-valw { min-width: 6.5rem; text-align: left; font-weight: 500; font-size: 0.875rem; color: #c3cde2; }
.hx-cmp-stats { display: grid; gap: 0; }
.hx-statrow { display: grid; grid-template-columns: min(11rem, 32%) repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 0.375rem 0; border-bottom: 1px solid rgba(28, 39, 64, .6); font-variant-numeric: tabular-nums; }
.hx-sl { color: #c3cde2; font-size: 0.9375rem; }
.hx-sv { color: var(--muted); font-size: 0.9375rem; }
.hx-sv.win { color: #5fd39a; font-weight: 700; }
.hx-cmp-notes { margin: 1.25rem 0 0; padding-left: 1.25rem; color: #c3cde2; font-size: 0.9375rem; }
.hx-cmp-notes li { margin: 0.25rem 0; }
@media (max-width: 640px) {
  .hx-cmp-pick { grid-template-columns: minmax(0, 1fr); }
  .hx-swap { justify-self: start; }
  .hx-cmp-out { padding: 1rem; }
  .hx-cmp-heads { padding-left: 0; }
  .hx-cmp-row { grid-template-columns: minmax(0, 1fr); gap: 0.375rem; }
  .hx-cmp-bars { gap: 0.625rem; }
  .hx-valw { min-width: 0; }
  .hx-barline { flex-wrap: wrap; gap: 0.25rem 0.5rem; }
  .hx-div { flex-basis: 100%; }
  .hx-statrow { grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
}

/* ---------- Forge stages ---------- */
ol.hx-stages { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.hx-stages .step p .pill { display: inline-block; margin-left: 0.25rem; vertical-align: 1px; }

/* ---------- Forge preview ---------- */
.hx-forge { margin-top: 0.5rem; }
.hx-forge-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; }
.hx-forge-ctl, .hx-forge-out { padding: 1.375rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.hx-forge-ctl > .hx-field { margin-top: 1rem; }
.hx-forge-ctl > .hx-field:first-child { margin-top: 0; }
.hx-pool { margin: 1rem 0 0.5rem; color: var(--accent); font-weight: 700; font-size: 0.9375rem; }
.hx-pool.empty { color: #5fd39a; }
.hx-attrs-ctl { display: grid; gap: 0.25rem; }
.hx-arow { display: grid; grid-template-columns: minmax(5.5rem, 7rem) 2.5rem 2rem 2.5rem minmax(0, 1fr); grid-template-areas: "n m v p e" "bar bar bar bar bar"; align-items: center; gap: 0.125rem 0.5rem; padding: 0.375rem 0; border-bottom: 1px solid rgba(28, 39, 64, .6); }
.hx-aname { grid-area: n; color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.hx-arow .hx-step:first-of-type { grid-area: m; }
.hx-aval { grid-area: v; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.hx-arow .hx-step:last-of-type { grid-area: p; }
.hx-aeff { grid-area: e; color: var(--muted); font-size: 0.8125rem; min-width: 0; }
.hx-aeff.up { color: #5fd39a; }
.hx-aeff.dn { color: #ffb35c; }
.hx-ameter { grid-area: bar; height: 0.3125rem; }
.hx-step {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: rgba(5, 7, 13, .7);
  color: var(--text); font: inherit; font-size: 1.125rem; font-weight: 700; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s;
}
.hx-step:hover:not(:disabled) { border-color: var(--accent-2); color: var(--accent-2); }
.hx-step:disabled { opacity: .35; cursor: not-allowed; }
.hx-range { width: 100%; accent-color: var(--accent); min-height: 1.75rem; cursor: pointer; }
.hx-status { margin: 0.75rem 0 0; color: #c3cde2; font-size: 0.9062rem; min-height: 1.5em; }
.hx-linkbox { margin-top: 0.5rem; font-size: 0.8125rem; }
.hx-who { margin: 0 0 1rem; padding-left: 0.75rem; border-left: 3px solid var(--c, var(--accent)); color: var(--text); font-weight: 600; }
.hx-fstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.hx-fstat { padding: 0.625rem 0.75rem; border: 1px solid var(--line); border-radius: 0.625rem; background: rgba(5, 7, 13, .45); min-width: 0; }
.hx-fstat dt { font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hx-fstat dd { margin: 0.125rem 0 0; color: var(--text); font-size: 1.0625rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hx-delta { font-size: 0.75rem; font-weight: 600; margin-left: 0.25rem; }
.hx-delta.up { color: #5fd39a; }
.hx-delta.dn { color: #ffb35c; }
.hx-ftrait { margin: 1rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9062rem; }
.hx-locknote { margin: 1rem 0 0; padding: 0.75rem 1rem; border: 1px solid rgba(255, 138, 61, .45); background: rgba(255, 138, 61, .08); border-radius: 0.625rem; color: #ffd2b0; font-size: 0.9062rem; }
.hx-locknote.hx-flash { animation: hx-shake .45s ease; }
@keyframes hx-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hx-locked .hx-forge-ctl { border-color: rgba(255, 138, 61, .45); }
.hx-locked .hx-step, .hx-locked .hx-range, .hx-locked .hx-forge-ctl .hx-select, .hx-locked .hx-segbtn { opacity: .55; }
@media (max-width: 900px) { .hx-forge-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .hx-arow { grid-template-columns: minmax(0, 1fr) 2.5rem 1.75rem 2.5rem; grid-template-areas: "n m v p" "e e e e" "bar bar bar bar"; }
  .hx-forge-ctl, .hx-forge-out { padding: 1rem; }
  .hx-fstats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- commander card maker ---------- */
.hx-cardmaker { margin-top: 0.5rem; }
.hx-card-grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.hx-card-ctl { padding: 1.375rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.hx-card-ctl > .hx-field + .hx-field { margin-top: 1rem; }
.hx-card-ctl .hx-hint { font-size: 0.8125rem; }
.hx-card-stage { min-width: 0; }
.hx-idcard {
  --c: var(--accent-2);
  position: relative; margin: 0; padding: 1.25rem 1.5rem 1rem; overflow: hidden; min-width: 0;
  border: 2px solid var(--c); border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(14, 20, 36, .96), rgba(5, 7, 13, .98));
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(14, 20, 36, .96), rgba(5, 7, 13, .98));
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(223, 230, 243, .06);
  transition: border-color .3s;
}
.hx-idcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(223, 230, 243, .018) 0 1px, transparent 1px 4px);
}
.hx-idcard.hx-pop { animation: hx-pop .45s var(--ease, ease); }
@keyframes hx-pop { 0% { transform: scale(.985); filter: brightness(1.25); } 100% { transform: scale(1); filter: none; } }
.hx-id-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-bottom: 0.625rem; border-bottom: 1px solid rgba(141, 154, 181, .28); }
.hx-id-org { color: var(--accent-2); font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hx-id-no { color: var(--text); font-size: 0.875rem; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.hx-id-head { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.125rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(141, 154, 181, .28); }
.hx-id-sigil { width: 6rem; height: 6rem; }
.hx-id-sigil svg { display: block; }
.hx-id-who { min-width: 0; }
.hx-id-ep { display: block; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hx-id-call { margin: 0.125rem 0 0; color: #fff; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.375rem); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.hx-id-call.hx-id-blank { color: rgba(223, 230, 243, .5); font-style: italic; font-weight: 700; }
.hx-id-her { margin: 0.375rem 0 0; color: var(--c); font-weight: 600; font-size: 0.9688rem; }
.hx-id-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; padding: 1rem 0; }
.hx-id-facts { margin: 0; display: grid; gap: 0.75rem; align-content: start; }
.hx-id-fact dt, .hx-id-label { margin: 0; color: var(--muted); font-size: 0.6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hx-id-fact dd { margin: 0.125rem 0 0; color: var(--text); font-size: 0.9375rem; line-height: 1.45; }
.hx-id-side { display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.hx-id-attrs { list-style: none; margin: 0.375rem 0 0; padding: 0; display: grid; gap: 0.4375rem; }
.hx-id-attrs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n v" "t t"; gap: 0.1875rem 0.5rem; align-items: baseline; }
.hx-id-an { grid-area: n; color: var(--text); font-weight: 600; font-size: 0.875rem; }
.hx-id-av { grid-area: v; color: var(--text); font-weight: 700; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.hx-id-av.up { color: #5fd39a; }
.hx-id-av.dn { color: #ffb35c; }
.hx-id-attrs .hx-track { grid-area: t; height: 0.3125rem; }
.hx-id-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 0.75rem; border-top: 1px solid rgba(141, 154, 181, .28); font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hx-id-stamp { color: var(--accent); }
.hx-id-site { color: var(--muted); }
@media (max-width: 900px) { .hx-card-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .hx-card-ctl { padding: 1rem; }
  .hx-idcard { padding: 1rem 1rem 0.875rem; }
  .hx-id-head { grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.875rem; }
  .hx-id-sigil { width: 4.25rem; height: 4.25rem; }
  .hx-id-body { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- blood ---------- */
.hx-bloodgrid { margin-top: 0.5rem; }
.hx-iron { border-top: 3px solid #d94a4a; }
.hx-copper { border-top: 3px solid #3f8cff; }
.hx-bloodgrid .checks { margin-top: 0.875rem; }
.hx-bloodgrid .checks li { font-size: 0.9375rem; }
.card p.hx-dot { margin-top: 0.875rem; font-size: 0.875rem; }

/* ---------- leanings ring ---------- */
.hx-ties { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 2rem; align-items: center; }
.hx-ring { width: 100%; max-width: 26rem; margin-inline: auto; }
.hx-ringsvg { display: block; width: 100%; height: auto; overflow: visible; }
.hx-orbit { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.hx-tie { fill: none; stroke-width: 2.25; opacity: .7; transition: opacity .25s, stroke-width .25s; }
.hx-tie.respect, .hx-tie.alliance { stroke: var(--accent-2); }
.hx-tie.profit { stroke: #ffd36b; stroke-dasharray: 6 5; }
.hx-tie.opposites, .hx-tie.odds { stroke: var(--accent); }
.hx-tie.odds { stroke-dasharray: 2 5; stroke-linecap: round; }
.hx-node circle { stroke: var(--bg); stroke-width: 3; transition: opacity .25s; }
.hx-node text { fill: var(--muted); font-size: 19px; font-family: inherit; transition: fill .25s, opacity .25s; }
.hx-focus .hx-tie { opacity: .12; }
.hx-focus .hx-tie.on { opacity: 1; stroke-width: 3.5; }
.hx-focus .hx-node { opacity: .35; }
.hx-focus .hx-node.on { opacity: 1; }
.hx-focus .hx-node.on text { fill: var(--text); }
.hx-pairs { margin-top: 0; max-width: none; }
.hx-pairs li { transition: background .2s; border-radius: 0.5rem; padding-inline: 0.5rem; }
.hx-pairs li.on { background: rgba(78, 201, 255, .06); }
.hx-pairs b { flex-basis: 6rem; }
.hx-allegiance { margin-top: 2rem; }
@media (max-width: 860px) { .hx-ties { grid-template-columns: minmax(0, 1fr); gap: 1rem; } .hx-ring { max-width: 22rem; } }
@media (max-width: 420px) { .hx-pairs li { flex-direction: column; gap: 0.25rem; } .hx-pairs b { flex-basis: auto; } }

/* ---------- quiz ---------- */
.hx-qgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.hx-q { margin: 0; padding: 1.125rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.hx-q legend { padding: 0 0.375rem; color: var(--text); font-weight: 700; font-size: 1rem; }
.hx-opt { display: flex; align-items: center; gap: 0.625rem; padding: 0.4375rem 0.25rem; cursor: pointer; color: #c3cde2; font-size: 0.9375rem; border-radius: 0.5rem; }
.hx-opt:hover { color: var(--text); background: rgba(78, 201, 255, .05); }
.hx-opt input { accent-color: var(--accent); width: 1.125rem; height: 1.125rem; flex: 0 0 auto; margin: 0; }
.hx-qres { margin-top: 1rem; }
.hx-qcard { padding: 1.375rem 1.5rem; border: 1px solid var(--line); border-left: 3px solid var(--c, var(--accent)); border-radius: var(--radius); background: var(--panel); }
.hx-qcard h3 { margin: 0.25rem 0 0; font-size: 1.375rem; }
.hx-qcard .checks { margin-top: 0.75rem; }

/* ---------- status cards ---------- */
.hx-status .checks { margin-top: 0.25rem; }
.hx-status .checks li { font-size: 0.9375rem; }
.hx-status .tag:not(.now):not(.later) { background: rgba(141, 154, 181, .14); color: var(--muted); }

/* ---------- local toast (only when the shared one is missing) ---------- */
.hx-toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; max-width: min(28rem, calc(100% - 2rem));
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  padding: 0.75rem 1.125rem; border-radius: 0.75rem; border: 1px solid rgba(78, 201, 255, .45);
  background: rgba(10, 15, 28, .96); color: var(--text); font-size: 0.9375rem; box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, .45);
  transition: opacity .25s, transform .25s;
}
.hx-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .hx-toolrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hx-toolrow .hx-grow { grid-column: 1 / -1; }
  .hx-toolrow > .hx-field:last-child { grid-column: 1 / -1; }
  .hx-tools { padding: 1rem; }
  .hx-more dl { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; }
  .hx-more dd { margin-bottom: 0.375rem; }
}

/* ---------- reduced motion: no glow, shake or bar slides ---------- */
@media (prefers-reduced-motion: reduce) {
  .race.hx-flash, .hx-locknote.hx-flash, .hx-idcard.hx-pop { animation: none; }
  .race.hx-flash { outline: 2px solid var(--accent-2); outline-offset: 2px; }
  .hx-fill, .hx-dfill, .hx-tie, .hx-node circle, .hx-node text, .hx-toast, .hx-pairs li, .hx-step, .hx-idcard { transition: none; }
}
