.rx-hero {
  position: relative;
  height: var(--hero-h, min(92svh, 860px));
  min-height: 560px;
  margin: 0 0 var(--sp-8);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(20,179,145,0.20), transparent 55%),
    radial-gradient(90% 70% at 12% 100%, rgba(216,178,106,0.14), transparent 60%),
    linear-gradient(165deg, #0e242e 0%, #0f2832 45%, #000000 100%);
}
html[data-theme="light"] .rx-hero {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(20,179,145,0.22), transparent 55%),
    radial-gradient(90% 70% at 12% 100%, rgba(216,178,106,0.16), transparent 60%),
    linear-gradient(165deg, #073c29 0%, #0e242e 55%, #000000 100%);
}
#qsCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.rx-hero {
  --hero-fade: 5rem;
  margin-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--hero-fade)), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--hero-fade)), transparent 100%);
}

.rx-hero-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 0 1.25rem; max-width: 980px;
}
.qs-hero .rx-hero-inner::before {
  content: ""; position: absolute; inset: -18% -12%; z-index: -1;
  background: radial-gradient(closest-side, rgba(8, 24, 30, 0.78), rgba(8, 24, 30, 0.45) 55%, rgba(8, 24, 30, 0));
  pointer-events: none;
}
.rx-hero-kicker { color: var(--c-glow) !important; justify-content: center; font-size: var(--fs-lead); }
.rx-hero-kicker::before { display: none; }

.rx-hero-title {
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(2.6rem, 7vw, 5.4rem); color: #f2fff8; margin-bottom: 0.35rem;
}
.rx-hero-slogan {
  color: rgba(226, 255, 240, 0.88) !important;
  font-size: var(--fs-lead) !important;
  margin-top: 0.9rem; margin-bottom: 2rem !important;
}
.rx-hero .home-slogan-accent {
  color: var(--c-glow); position: relative;
  text-shadow: 0 0 24px rgba(160,232,96,0.45);
}
.rx-hero .home-slogan-accent::after {
  content: ""; position: absolute; left: -0.15em; right: -0.15em; bottom: -0.18em; height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-glow), transparent);
  border-radius: 99px; opacity: 0.75; animation: rx-breathe 5s ease-in-out infinite;
}
.rx-hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
.rx-hero .rx-btn-ghost { color: #d7f5b8; border-color: rgba(215,245,184,0.45); }
.rx-hero .rx-btn-ghost:hover { color: var(--c-glow); border-color: var(--c-glow); }

.qs-hud {
  position: absolute; z-index: 3;
  left: clamp(1rem, 3vw, 2.5rem);
  bottom: calc(var(--hero-fade) + 0.75rem);
  display: flex; flex-direction: column; gap: 0.6rem;
  max-width: min(420px, calc(100% - 2rem));
}
.qs-modes {
  display: inline-flex; align-self: flex-start;
  padding: 4px; border-radius: var(--r-pill);
  background: rgba(10, 30, 38, 0.72);
  border: 1px solid rgba(160, 232, 96, 0.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.qs-mode {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 0; background: transparent; color: #a9c3b4;
  font-family: "Changa", sans-serif; font-weight: 700; font-size: 0.92rem;
  padding: 0.38rem 1rem; border-radius: var(--r-pill);
  cursor: pointer; transition: background 0.25s ease, color 0.25s ease;
}
.qs-mode:hover { color: #e7f2ea; }
.qs-mode:focus-visible { outline: 2px solid var(--c-glow); outline-offset: 2px; }
.qs-mode-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.qs-mode.is-on[data-mode="capture"] { background: rgba(238, 203, 134, 0.18); color: #f6dca4; }
.qs-mode.is-on[data-mode="detect"] { background: rgba(184, 245, 126, 0.16); color: #c9f79c; }
.qs-mode.is-on .qs-mode-dot { opacity: 1; box-shadow: 0 0 10px currentColor; }

.qs-meter-fill {
  position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #49c5b6, #eecb86 60%, #ff7a5c);
  transition: transform 0.12s linear;
}

.qs-meter-state {
  min-width: 8.5em; text-align: right;
  font-family: "Changa", sans-serif; font-weight: 700; color: #c9f79c;
  transition: color 0.3s ease;
}
.qs-hero.is-quorate .qs-meter-state { color: #ff9a7e; }

.qs-hero.is-broken .qs-meter-state { color: #b8f57e; text-shadow: 0 0 12px rgba(184, 245, 126, 0.7); }

.qs-hint { margin: 0; font-size: 0.82rem; line-height: 1.45; color: rgba(231, 242, 234, 0.8); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

.hx { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.hx-inner { width: min(1180px, 100% - 2.5rem); margin: 0 auto; }
.hx-kicker {
  font-family: "Changa", sans-serif; font-weight: 700; font-size: var(--fs-kicker);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-glow); margin: 0 0 0.9rem;
}
.hx-title {
  font-family: "Changa", sans-serif; font-weight: 800; letter-spacing: -0.01em; line-height: 1.08;
  font-size: clamp(2rem, 4.4vw, 3.4rem); color: #f2fff8; margin: 0 0 1.1rem; max-width: 22ch;
}
.hx-title em { color: var(--c-glow); }
.hx-pipe .hx-lead { max-width: none; }
.hx-lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--c-text-2); max-width: 62ch; margin: 0 0 2.6rem; text-wrap: balance; }
:is(#hx-systems, #hx-world) .hx-more { display: inline-block; margin-top: 1.1rem; font-weight: 700; color: var(--c-glow); text-decoration: none; }
:is(#hx-systems, #hx-world) .hx-more:hover { text-decoration: underline; color: var(--c-glow); }

.hx + .hx::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(880px, 80%); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(160, 232, 96, 0.35), transparent);
}

.hx-problem { padding-top: clamp(3rem, 6vw, 5rem); }
.hx-figures {
  list-style: none; margin: 0 0 3.2rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.hx-figures li { border-left: 2px solid var(--c-amber); padding: 0.2rem 0 0.2rem 1.1rem; }
.hx-figure {
  display: block; font-family: "Changa", sans-serif; font-weight: 800; line-height: 1;
  font-size: clamp(2rem, 3.6vw, 3rem); color: #f6dca4; font-variant-numeric: tabular-nums;
}
.hx-figure-note { display: block; margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.5; color: var(--c-text-2); }

.hx-wait {
  --h: 0;
  border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  background: linear-gradient(160deg, rgba(28, 67, 82, 0.55), rgba(14, 36, 46, 0.55));
  border: 1px solid var(--c-line-2);
}
.hx-wait-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.5rem; margin-bottom: 1.6rem; }
.hx-wait-title { font-family: "Changa", sans-serif; font-weight: 800; font-size: var(--fs-h3); color: #f2fff8; margin: 0; }
.hx-wait-sub { margin: 0; font-size: 0.88rem; color: var(--c-text-3); }
.hx-wait-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hx-wait-track { position: relative; padding-top: 2.2rem; }
.hx-wait-rail { position: relative; height: 14px; border-radius: 99px; background: rgba(255,255,255,0.07); }
.hx-wait-fill {
  position: absolute; inset: 0; border-radius: 99px; transform-origin: 0 50%;
  transform: scaleX(var(--h));
  background: linear-gradient(90deg, #eecb86, #e9a55a 55%, #e2574c);
}
.hx-wait-zone {
  position: absolute; top: -6px; bottom: -6px; left: 66.67%; right: 0;
  border-radius: 6px; border: 1px dashed rgba(242, 255, 248, 0.55);
}
.hx-wait-zone span {
  position: absolute; bottom: calc(100% + 6px); right: 0;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-2); white-space: nowrap;
}
.hx-wait-signal {
  position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -4px; border-radius: 50%;
  background: radial-gradient(circle, #fff3c8 0, #eecb86 45%, rgba(238,203,134,0) 72%);
  animation: hx-pulse 2.2s ease-in-out infinite;
}
.hx-wait-signal span {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-family: "Changa", sans-serif; font-weight: 800; font-size: 0.72rem; color: #f6dca4;
}
@keyframes hx-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.7; } }

.hx-wait-range {
  position: absolute; left: -10px; right: -10px; top: calc(2.2rem - 8px); width: calc(100% + 20px);
  height: 30px; margin: 0; background: transparent; cursor: grab;
  -webkit-appearance: none; appearance: none;
}
.hx-wait-range:active { cursor: grabbing; }
.hx-wait-range::-webkit-slider-runnable-track { height: 30px; background: transparent; }
.hx-wait-range::-moz-range-track { height: 30px; background: transparent; }
.hx-wait-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%;
  background: #f2fff8; border: 4px solid #e9a55a; box-shadow: 0 0 0 6px rgba(233, 165, 90, 0.18), 0 6px 14px rgba(0,0,0,0.45);
}
.hx-wait-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #f2fff8; border: 4px solid #e9a55a; box-shadow: 0 0 0 6px rgba(233, 165, 90, 0.18);
}
.hx-wait-range:focus-visible { outline: none; }
.hx-wait-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--c-glow); }
.hx-wait-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--c-glow); }
.hx-wait-ticks {
  list-style: none; margin: 0.8rem 0 0; padding: 0;
  display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--c-text-3); font-variant-numeric: tabular-nums;
}
.hx-wait-read { display: grid; grid-template-columns: 64px 1fr; gap: 3.15rem; align-items: center; }
.hx-shield { width: 64px; height: 72px; overflow: visible; }
.hx-shield-shape { fill: rgba(255,255,255,0.04); stroke: rgba(242, 255, 248, 0.5); stroke-width: 2; }
.hx-shield-level {
  fill: #e2574c;
  opacity: calc(min(1, var(--h) * 1.5) * 0.85);
}
.hx-wait-out { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--c-text); min-height: 6.4em; }
.hx-wait-hours {
  display: block; font-family: "Changa", sans-serif; font-weight: 800; font-size: 1.6rem; line-height: 1.1;
  color: #f6dca4; margin-bottom: 0.25rem; font-variant-numeric: tabular-nums;
}
.hx-wait[data-band="late"] .hx-wait-hours { color: #ff9a7e; }

.hx-sys {
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(170deg, rgba(28, 67, 82, 0.6), rgba(10, 26, 33, 0.7));
  border: 1px solid var(--c-line-2);
}
.hx-sys-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--c-line); }
.hx-sys-tab {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  padding: 1.1rem 1rem; text-align: left;
  font-family: "Changa", sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--c-text-3);
  transition: color 0.3s ease;
}
.hx-sys-tab-k { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.1rem; }
.hx-sys-tab[aria-selected="true"] { color: #f2fff8; }
.hx-sys-tab:focus-visible { outline: 2px solid var(--c-glow); outline-offset: -4px; }
.hx-sys-ink {
  position: absolute; left: 0; bottom: -1px; width: 50%; height: 3px;
  background: var(--c-glow); box-shadow: 0 0 14px var(--c-glow);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.45s ease;
}
.hx-sys[data-sys="capture"] .hx-sys-ink { transform: translateX(100%); background: #eecb86; box-shadow: 0 0 14px #eecb86; }

.hx-sys-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(1.2rem, 3vw, 2.2rem); align-items: center; }
.hx-sys-art { width: 100%; height: auto; overflow: visible; stroke-linecap: round; stroke-linejoin: round; }
.hx-sys-art text { font-family: "Changa", sans-serif; }

.hx-sys-art .art { opacity: 0; transition: opacity 0.55s ease; }
.hx-sys[data-sys="detect"] .art-detect,
.hx-sys[data-sys="capture"] .art-capture { opacity: 1; }

.hx-sys-art g, .hx-sys-art path, .hx-sys-art rect, .hx-sys-art ellipse, .hx-sys-art use, .hx-sys-art text { transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 0.5s ease, fill 0.5s ease; }
.a-cell { fill: rgba(73, 197, 182, 0.07); stroke: #49c5b6; stroke-width: 2.2; }
.a-label { fill: #7e988a; font-size: 14px; font-weight: 700; font-style: italic; }
.a-tag { fill: #a9c3b4; font-size: 12.5px; font-weight: 700; }
.a-tag-dim { fill: #7e988a; font-weight: 500; }
.a-ahl { fill: #eecb86; stroke: #eecb86; stroke-width: 2.4; }

.a-drift { animation: a-drift 3.4s ease-in-out infinite; }
.a-drift-2 { animation-duration: 4.1s; animation-delay: -1.3s; }
@keyframes a-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -5px); } }
.a-ahl-dock { transform: translate(84px, -12px); }
.a-lasr-shape { fill: rgba(169, 195, 180, 0.12); stroke: #a9c3b4; stroke-width: 2.4; }
.a-lasr-t { fill: #d6eadf; font-size: 14px; font-weight: 800; }
.a-lasr-body { transform-box: fill-box; transform-origin: 50% 50%; }
.a-strand { fill: none; stroke: #7e988a; stroke-width: 3; }
.a-op { fill: rgba(255, 255, 255, 0.05); stroke: #7e988a; stroke-width: 1.6; }
.a-prom { fill: none; stroke: #7e988a; stroke-width: 2.6; }
.a-gene { fill: rgba(255, 255, 255, 0.04); stroke: #7e988a; stroke-width: 2; }
.a-gene-t { fill: #a9c3b4; font-size: 12.5px; font-weight: 800; }
.a-read { fill: none; stroke: #b8f57e; stroke-width: 3; stroke-dasharray: 22 200; opacity: 0; }
.a-state { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
.a-off { fill: #7e988a; }
.a-on { fill: #b8f57e; opacity: 0; }
.a-expr { fill: none; stroke: #b8f57e; stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s ease !important; }
.a-expr-head { fill: none; stroke: #b8f57e; stroke-width: 2.6; opacity: 0; }
.a-expr-g .a-tag { opacity: 0; }
.a-glow { opacity: 0; }
.a-barrels rect { fill: rgba(184, 245, 126, 0.85); stroke: #e8ffd4; stroke-width: 1.2; transform-box: fill-box; transform-origin: 50% 50%; }
.a-barrels { opacity: 0; }
.a-tag-gfp { fill: #b8f57e; }
.a-rays path { fill: none; stroke: #b8f57e; stroke-width: 3; stroke-dasharray: 3 8; }
.a-rays { opacity: 0; }
.a-badge circle { fill: #0f2a33; stroke: #4f6a5e; stroke-width: 1.6; }
.a-badge text { fill: #7e988a; font-size: 12px; font-weight: 800; }

.hx-sys[data-sys="detect"]:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .a-badge-1 circle,
.hx-sys[data-sys="detect"]:is([data-step="2"], [data-step="3"], [data-step="4"]) .a-badge-2 circle,
.hx-sys[data-sys="detect"]:is([data-step="3"], [data-step="4"]) .a-badge-3 circle,
.hx-sys[data-sys="detect"][data-step="4"] .a-badge-4 circle { stroke: #b8f57e; }
.hx-sys[data-sys="detect"]:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .a-badge-1 text,
.hx-sys[data-sys="detect"]:is([data-step="2"], [data-step="3"], [data-step="4"]) .a-badge-2 text,
.hx-sys[data-sys="detect"]:is([data-step="3"], [data-step="4"]) .a-badge-3 text { fill: #b8f57e; }
.hx-sys[data-sys="detect"][data-step="1"] .a-badge-1 circle,
.hx-sys[data-sys="detect"][data-step="2"] .a-badge-2 circle,
.hx-sys[data-sys="detect"][data-step="3"] .a-badge-3 circle,
.hx-sys[data-sys="detect"][data-step="4"] .a-badge-4 circle { fill: #b8f57e; }
.hx-sys[data-sys="detect"][data-step="1"] .a-badge-1 text,
.hx-sys[data-sys="detect"][data-step="2"] .a-badge-2 text,
.hx-sys[data-sys="detect"][data-step="3"] .a-badge-3 text,
.hx-sys[data-sys="detect"][data-step="4"] .a-badge-4 text { fill: #0a1a21; }

.hx-sys[data-sys="detect"][data-step="1"] .a-ahl-dock { animation: a-enter 1.4s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
@keyframes a-enter { from { transform: translate(0, 0); } to { transform: translate(84px, -12px); } }
.hx-sys[data-sys="detect"][data-step="2"] .a-ahl-dock { transform: translate(142px, -20px); }
.hx-sys[data-sys="detect"]:is([data-step="2"], [data-step="3"], [data-step="4"]) .a-lasr-shape { stroke: #b8f57e; fill: rgba(184, 245, 126, 0.14); }
.hx-sys[data-sys="detect"][data-step="2"] .a-lasr-body { animation: a-pop 0.6s 0.55s ease-out; }
@keyframes a-pop { 50% { transform: scale(1.1); } }
.hx-sys[data-sys="detect"]:is([data-step="3"], [data-step="4"]) .a-lasr { transform: translate(20px, 79px); }
.hx-sys[data-sys="detect"]:is([data-step="3"], [data-step="4"]) .a-ahl-dock { transform: translate(162px, 59px); }
.hx-sys[data-sys="detect"]:is([data-step="3"], [data-step="4"]) :is(.a-op, .a-prom, .a-gene) { stroke: #b8f57e; }
.hx-sys[data-sys="detect"]:is([data-step="3"], [data-step="4"]) .a-off { opacity: 0; }
.hx-sys[data-sys="detect"]:is([data-step="3"], [data-step="4"]) .a-on { opacity: 1; transition-delay: 0.5s; }
.hx-sys[data-sys="detect"]:is([data-step="3"], [data-step="4"]) .a-read { opacity: 1; animation: a-read 1.6s 0.6s linear infinite; }
@keyframes a-read { from { stroke-dashoffset: 22; } to { stroke-dashoffset: -118; } }
.hx-sys[data-sys="detect"][data-step="4"] .a-expr { stroke-dashoffset: 0; }
.hx-sys[data-sys="detect"][data-step="4"] :is(.a-expr-head, .a-expr-g .a-tag) { opacity: 1; transition-delay: 0.5s; }
.hx-sys[data-sys="detect"][data-step="4"] .a-barrels { opacity: 1; transition-delay: 0.5s; }
.hx-sys[data-sys="detect"][data-step="4"] .a-barrels rect { animation: a-pop-in 0.5s ease-out backwards; }
.hx-sys[data-sys="detect"][data-step="4"] .a-barrels rect:nth-child(1) { animation-delay: 0.6s; }
.hx-sys[data-sys="detect"][data-step="4"] .a-barrels rect:nth-child(2) { animation-delay: 0.75s; }
.hx-sys[data-sys="detect"][data-step="4"] .a-barrels rect:nth-child(3) { animation-delay: 0.9s; }
.hx-sys[data-sys="detect"][data-step="4"] .a-barrels rect:nth-child(4) { animation-delay: 1.05s; }
@keyframes a-pop-in { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } }
.hx-sys[data-sys="detect"][data-step="4"] .a-glow { opacity: 1; transition-delay: 0.9s; animation: a-breathe 2.6s 1.5s ease-in-out infinite; }
@keyframes a-breathe { 50% { opacity: 0.55; } }
.hx-sys[data-sys="detect"][data-step="4"] .a-rays { opacity: 1; transition-delay: 1.1s; }
.hx-sys[data-sys="detect"][data-step="4"] .a-rays path { animation: a-rays 1.2s linear infinite; }
@keyframes a-rays { to { stroke-dashoffset: -11; } }
.hx-sys[data-sys="detect"][data-step="4"] .art-detect .a-cell { stroke: #b8f57e; fill: rgba(184, 245, 126, 0.12); transition-delay: 0.9s; }

.a-retron circle { fill: none; stroke: #7e988a; stroke-width: 2.4; }
.a-msd { fill: none; stroke: #7e988a; stroke-width: 2.4; }
.a-apt { fill: none; stroke: #b8f57e; stroke-width: 3; }
.a-apt-in { opacity: 0; }
.a-out { opacity: 0; transform: translateX(-70px); }
.a-bound { opacity: 0; }

.a-pa-cell { fill: rgba(76, 175, 106, 0.10); stroke: #4caf6a; stroke-width: 2.2; }
.a-tag-pa { fill: #4caf6a; font-style: italic; }
.a-talk { fill: none; stroke: #eecb86; stroke-width: 2; stroke-dasharray: 4 6; opacity: 0.55; }
.a-x { fill: none; stroke: #f2fff8; stroke-width: 2.4; stroke-linecap: round; opacity: 0; }

.a-drift-3 { animation-duration: 3.8s; animation-delay: -2.2s; }
.a-drift-4 { animation-duration: 4.6s; animation-delay: -0.7s; }
.a-drift-5 { animation-duration: 3.2s; animation-delay: -3.1s; }
.hx-sys[data-sys="capture"]:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .a-msd { stroke: #eecb86; stroke-width: 6; }
.hx-sys[data-sys="capture"]:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .a-apt-in { opacity: 1; }
.hx-sys[data-sys="capture"]:is([data-step="3"], [data-step="4"]) .a-cell-open { stroke-dasharray: 10 12; }
.hx-sys[data-sys="capture"]:is([data-step="2"], [data-step="3"], [data-step="4"]) .a-out { opacity: 1; transform: none; }
.hx-sys[data-sys="capture"]:is([data-step="3"], [data-step="4"]) .a-bound { opacity: 1; }
.hx-sys[data-sys="capture"][data-step="4"] .a-ahl-caught { opacity: 0.3; }
.hx-sys[data-sys="capture"][data-step="4"] .a-x { opacity: 1; }

.hx-sys-panel h3 { font-family: "Changa", sans-serif; font-weight: 800; font-size: var(--fs-h3); color: #f2fff8; margin: 0 0 1rem; line-height: 1.25; }
.hx-steps { list-style: none; margin: 0; padding: 0; counter-reset: hxs; }
.hx-steps li { counter-increment: hxs; }
.hx-steps button {
  display: grid; grid-template-columns: 2.1rem 1fr; gap: 0 0.7rem; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 0.6rem 0.7rem; border-radius: var(--r-md);
  color: var(--c-text-3); font: inherit; font-size: 0.95rem; line-height: 1.5; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.hx-steps button::before {
  content: counter(hxs); grid-row: span 2;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  font-family: "Changa", sans-serif; font-weight: 800; font-size: 0.95rem;
  border: 2px solid currentColor; opacity: 0.7;
}
.hx-steps button > span { grid-column: 2; }
.hx-steps b { display: block; font-family: "Changa", sans-serif; font-size: 1.02rem; color: inherit; }
.hx-steps li.is-past button { color: var(--c-text-2); }
.hx-steps li.is-now button { color: #f2fff8; background: rgba(184, 245, 126, 0.08); }
.hx-steps li.is-now button::before { opacity: 1; color: var(--c-glow); box-shadow: 0 0 14px rgba(184, 245, 126, 0.45); }
.hx-sys[data-sys="capture"] .hx-steps li.is-now button { background: rgba(238, 203, 134, 0.08); }
.hx-sys[data-sys="capture"] .hx-steps li.is-now button::before { color: #eecb86; box-shadow: 0 0 14px rgba(238, 203, 134, 0.45); }
.hx-steps button:hover { color: #e7f2ea; }
.hx-steps button:focus-visible { outline: 2px solid var(--c-glow); outline-offset: 2px; }
.hx-aside { margin: 1rem 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--c-text-3); }

.hx-pipe-track {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem;
}
.hx-stage { position: relative; perspective: 900px; }
.hx-stage > a {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 1.4rem 1.3rem 1.3rem; border-radius: var(--r-lg); text-decoration: none; color: var(--c-text);
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(184, 245, 126, 0.12), transparent 60%),
    linear-gradient(165deg, rgba(28, 67, 82, 0.75), rgba(14, 36, 46, 0.75));
  border: 1px solid var(--c-line-2);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hx-stage > a:hover, .hx-stage > a:focus-visible { border-color: rgba(184, 245, 126, 0.55); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7), 0 0 30px -12px rgba(184, 245, 126, 0.5); }
.hx-stage > a:focus-visible { outline: 2px solid var(--c-glow); outline-offset: 3px; }
.hx-stage-icon { width: 48px; height: 48px; fill: none; stroke: #b8f57e; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; overflow: visible; }
.hx-stage-halo { stroke: rgba(184, 245, 126, 0.25); stroke-dasharray: 3 5; }
.hx-stage-k { font-family: "Changa", sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-3); font-weight: 700; }
.hx-stage-name { font-family: "Changa", sans-serif; font-weight: 800; font-size: 1.35rem; color: #f2fff8; margin: 0.25rem 0 0.55rem; line-height: 1.15; }
.hx-stage-text { font-size: 0.92rem; line-height: 1.6; color: var(--c-text-2); }
.hx-stage-go { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--c-glow); }

.hx-stats { list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.hx-stats a {
  display: flex; flex-direction: column; height: 100%; padding: 1.2rem 1.1rem; border-radius: var(--r-lg);
  text-decoration: none; background: rgba(22, 50, 63, 0.6); border: 1px solid var(--c-line);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.hx-stats a:hover, .hx-stats a:focus-visible { transform: translateY(-4px); border-color: rgba(238, 203, 134, 0.55); background: rgba(28, 67, 82, 0.7); }
.hx-stats a:focus-visible { outline: 2px solid var(--c-glow); outline-offset: 3px; }
.hx-stat-n { font-family: "Changa", sans-serif; font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; color: #f6dca4; font-variant-numeric: tabular-nums; }
.hx-stat-l { margin-top: 0.6rem; font-size: 0.88rem; line-height: 1.5; color: var(--c-text-2); }

.hx-world-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hx-orbit-wrap { --d: min(460px, 86vw); position: relative; width: var(--d); aspect-ratio: 1; margin: 0 auto; }
.hx-orbit-wrap::before {
  content: ""; position: absolute; inset: 40px; border-radius: 50%;
  border: 1px dashed rgba(184, 245, 126, 0.22);
}
.hx-orbit { position: absolute; inset: 0; animation: hx-spin 80s linear infinite; }
.hx-orbit-item {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  transform: rotate(calc(var(--i) * 360deg / var(--n))) translateX(calc(var(--d) / 2 - 40px)) rotate(calc(var(--i) * -360deg / var(--n)));
  text-decoration: none;
}
.hx-orbit-face {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: #f4f9f5; border: 2px solid rgba(184, 245, 126, 0.4);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.6);
  animation: hx-spin 80s linear infinite reverse;
  transition: scale 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hx-orbit-face img { width: 82%; height: 82%; object-fit: contain; }
html[data-theme="dark"] .hx-orbit-face img { opacity: 1; }
.hx-orbit-item:hover .hx-orbit-face, .hx-orbit-item:focus-visible .hx-orbit-face {
  scale: 1.22; border-color: #b8f57e; box-shadow: 0 0 22px rgba(184, 245, 126, 0.55);
}
.hx-orbit-item:focus-visible { outline: none; }
.hx-orbit-wrap:hover .hx-orbit, .hx-orbit-wrap:hover .hx-orbit-face,
.hx-orbit-wrap:focus-within .hx-orbit, .hx-orbit-wrap:focus-within .hx-orbit-face { animation-play-state: paused; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem;
  text-decoration: none;
  background: radial-gradient(circle, rgba(28, 67, 82, 0.95), rgba(14, 36, 46, 0.95));
  border: 1px solid rgba(184, 245, 126, 0.35);
  box-shadow: 0 0 60px -10px rgba(184, 245, 126, 0.35);
}
.hx-orbit-core-n { font-family: "Changa", sans-serif; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: #c9f79c; }
.hx-orbit-core-l { font-size: 0.8rem; line-height: 1.4; color: var(--c-text-2); margin: 0.35rem 0; }
.hx-orbit-core-go { font-weight: 700; font-size: 0.85rem; color: var(--c-glow); }
.hx-orbit-core:focus-visible { outline: 2px solid var(--c-glow); outline-offset: 3px; }

.hx-world-side { display: grid; gap: 1.5rem; }
.hx-voices { padding: 1.4rem 1.5rem; border-radius: var(--r-lg); background: rgba(22, 50, 63, 0.6); border: 1px solid var(--c-line); }
.hx-side-title { font-family: "Changa", sans-serif; font-weight: 800; font-size: 1.2rem; color: #f2fff8; margin: 0 0 1rem; }
.hx-voices-list { list-style: none; margin: 0; padding: 0; position: relative; }
.hx-voices-list::before { content: ""; position: absolute; left: 3.6rem; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--c-line-2); }
.hx-voices-list li { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: 0 1.1rem; align-items: baseline; padding: 0.42rem 0; position: relative; }
.hx-voices-list li::before { content: ""; position: absolute; left: calc(3.6rem - 4px); top: 0.85rem; width: 9px; height: 9px; border-radius: 50%; background: #49c5b6; box-shadow: 0 0 8px #49c5b6; }
.hx-voice-when { font-size: 0.8rem; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.hx-voice-who { font-weight: 700; color: #e7f2ea; }
.hx-voice-role { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #49c5b6; }
.hx-voices .hx-more { margin-top: 0.8rem; }

.hx-game-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; display: block; overflow: hidden; padding: 1.5rem 9rem 1.5rem 1.5rem; border-radius: var(--r-lg);
  text-decoration: none;
  background: none;
  border: 1px solid rgba(238, 203, 134, 0.3);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease, border-color 0.3s ease;
}
.hx-game-card:hover, .hx-game-card:focus-visible { border-color: rgba(238, 203, 134, 0.7); }
.hx-game-card:focus-visible { outline: 2px solid var(--c-glow); outline-offset: 3px; }
.hx-game-k { display: block; font-family: "Changa", sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #eecb86; font-weight: 700; }
.hx-game-name { display: block; font-family: "Changa", sans-serif; font-weight: 800; font-size: 1.45rem; color: #f2fff8; margin: 0.2rem 0 0.5rem; }
.hx-game-text { display: block; font-size: 0.9rem; line-height: 1.6; color: var(--c-text-2); }
.hx-game-cards { position: absolute; right: 2.6rem; top: 50%; width: 64px; height: 88px; margin-top: -44px; }
.hx-game-cards i {
  position: absolute; inset: 0; border-radius: 8px;
  background: linear-gradient(160deg, #b8f57e, #49c5b6); border: 2px solid #e7f2ea;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,0.6);
  transform-origin: 50% 110%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hx-game-cards i:nth-child(1) { transform: rotate(-12deg); background: linear-gradient(160deg, #eecb86, #d8b26a); }
.hx-game-cards i:nth-child(2) { transform: rotate(-2deg); background: linear-gradient(160deg, #2edbb4, #14b391); }
.hx-game-cards i:nth-child(3) { transform: rotate(9deg); }
.hx-game-card:hover .hx-game-cards i:nth-child(1) { transform: rotate(-28deg) translateY(-4px); }
.hx-game-card:hover .hx-game-cards i:nth-child(2) { transform: rotate(-6deg) translateY(-10px); }
.hx-game-card:hover .hx-game-cards i:nth-child(3) { transform: rotate(18deg) translateY(-4px); }

.hx-play { padding-top: clamp(3rem, 6vw, 5rem); }
.hx-play-head { text-align: center; }
.hx-play-head .hx-kicker { margin-bottom: 0.6rem; }
.hx-play-head .hx-title { margin: 0 auto; max-width: none; }
.hx-play .cap-page { margin-top: 1.5rem !important; }
.hx-play .cap-page > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.home-video-frame {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(20,179,145,0.25);
  box-shadow: 0 24px 60px -30px rgba(6,64,46,0.5);
}

.hx-map { display: grid; gap: 1.5rem; }
.hx-map-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.hx-map-col { --tone: #b8f57e; }
.tone-glow { --tone: #b8f57e; }
.tone-teal { --tone: #2edbb4; }
.tone-mint { --tone: #7fd8cd; }
.tone-amber { --tone: #eecb86; }
.tone-coral { --tone: #ff9a7e; }
.hx-map-col h3 {
  font-family: "Changa", sans-serif; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tone); margin: 0 0 0.8rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--tone);
}
.hx-map-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
#hx-explore .hx-map-col a {
  display: block; padding: 0.42rem 0.6rem; border-radius: var(--r-sm); text-decoration: none;
  color: var(--c-text); font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
#hx-explore .hx-map-col a:hover, #hx-explore .hx-map-col a:focus-visible, #hx-explore .hx-map-col a.is-on {
  background: color-mix(in srgb, var(--tone) 16%, transparent); color: #f2fff8; transform: translateX(4px);
}
.hx-map-col a:focus-visible { outline: 2px solid var(--tone); outline-offset: 1px; }
.hx-map-desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hx-map-spot {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 0.2rem 1.4rem; align-items: center;
  padding: 1.2rem 1.5rem; border-radius: var(--r-lg); text-decoration: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 14%, rgba(14, 36, 46, 0.9)), rgba(14, 36, 46, 0.9));
  border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.hx-map-spot::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 4px; border-radius: 4px; background: var(--tone); box-shadow: 0 0 14px var(--tone); }
.hx-map-spot-k { grid-row: span 2; font-family: "Changa", sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--tone); writing-mode: vertical-rl; transform: rotate(180deg); }
.hx-map-spot-name { font-family: "Changa", sans-serif; font-weight: 800; font-size: 1.5rem; color: #f2fff8; line-height: 1.1; }
.hx-map-spot-text { grid-column: 2; font-size: 0.98rem; line-height: 1.55; color: var(--c-text-2); }
.hx-map-spot-go { grid-row: 1 / span 2; grid-column: 3; font-weight: 700; color: var(--tone); white-space: nowrap; }
.hx-map-spot.is-swap .hx-map-spot-name, .hx-map-spot.is-swap .hx-map-spot-text { animation: hx-swap 0.35s ease; }
@keyframes hx-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hx-explore + .container .quiz-invite { margin-top: 0; }

@media (max-width: 1199.98px) {
  .hx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-map-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 991.98px) {
  .hx-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .hx-wait-body { grid-template-columns: 1fr; }
  .hx-sys-stage { grid-template-columns: 1fr; }
  .hx-sys-art { max-width: 560px; margin: 0 auto; }
  .hx-pipe-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-world-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .rx-hero { min-height: 560px; height: min(92svh, 720px); margin-top: calc(-1 * var(--sp-4)); }
  .rx-hero-title { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .qs-hero .rx-hero-inner { margin-bottom: 7rem; }
  .qs-hud { left: 1rem; right: 1rem; max-width: none; }

  .qs-meter-state { min-width: 0; }
  .hx-pipe-track { grid-template-columns: 1fr; gap: 1.6rem; }
  .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-stats li:last-child { grid-column: span 2; }
  .hx-sys-tab { font-size: 1.1rem; padding: 0.9rem 0.8rem; }
  .hx-game-card { padding-right: 6.5rem; }
  .hx-game-cards { right: 1.9rem; width: 52px; height: 72px; margin-top: -36px; }
  .hx-orbit-item { width: 52px; height: 52px; margin: -26px 0 0 -26px; transform: rotate(calc(var(--i) * 360deg / var(--n))) translateX(calc(var(--d) / 2 - 30px)) rotate(calc(var(--i) * -360deg / var(--n))); }
  .hx-orbit-wrap::before { inset: 30px; }
  .hx-map-cols { grid-template-columns: 1fr; }
  .hx-map-desc { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; font-weight: 400; font-size: 0.85rem; line-height: 1.5; color: var(--c-text-2); margin-top: 0.15rem; }
  .hx-map-spot { display: none; }
  .hx-wait-read { grid-template-columns: 48px 1fr; }
  .hx-shield { width: 48px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-orbit, .hx-orbit-face, .hx-wait-signal { animation: none !important; }
  .hx-stage > a, .hx-game-card { transform: none !important; }
  .hx-sys-art g, .hx-sys-art path, .hx-sys-art rect, .hx-sys-art ellipse, .hx-sys-art use, .hx-sys-art text { transition: none !important; }
  .hx-sys-art * { animation: none !important; }
}

@media print {
  .rx-hero { height: auto; min-height: 0; padding: 2rem 0; background: none !important; -webkit-mask-image: none; mask-image: none; }
  #qsCanvas, .qs-hud, .hx-orbit-wrap, .hx-map-spot { display: none !important; }
}

/* The citation numerals link down to the reference list. They keep the body
   colour rather than the link colour, as everywhere else on the wiki, and are
   set apart by weight instead -- the same way .desc sup does it for Results,
   Description and Safety. Without the weight they read as ordinary text and
   nobody can tell there is anything to click. */
.hx sup { font-weight: 700; }
.hx sup a { color: inherit; text-decoration: none; padding: 0 0.08em; }
.hx sup a:hover,
.hx sup a:focus-visible { text-decoration: underline; }
