/* =====================================================================
   crew.css — co-op crew assembler   (mount: #crew-assembler)
   Every rule is scoped under .crw / crw- so nothing leaks.
   Mobile-first: 2-column seat grid below 720px, ring of eight seats above.
   ===================================================================== */

#crew-assembler { width: 100%; }

.crw {
  --crw-fill: 0;
  --crw-sweep: 116, 196, 80;
  --crw-gap: clamp(14px, 1.7vw, 22px);
  position: relative;
  display: grid;
  gap: var(--crw-gap);
  width: 100%;
  color: var(--text);
  text-align: left;
}
.crw[data-full="true"] { --crw-sweep: 255, 138, 42; }
.crw [hidden] { display: none !important; }

@media (min-width: 1180px) {
  .crw { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; }
  /* the side column is much taller than the manifest: keep the whole manifest on screen
     (ring sized to the viewport height) and let it ride along while the missions scroll past.
     crew.js sets --crw-stick-top (negative when the panel is taller than the viewport, so its
     buttons always stay reachable). */
  .crw .crw-ring { max-width: clamp(540px, calc(100vh - 356px), 680px); }
  .crw.is-stick .crw-manifest { position: sticky; top: var(--crw-stick-top, calc(var(--topbar-h, 68px) + 20px)); }
}
.crw-side { display: grid; gap: var(--crw-gap); min-width: 0; align-content: start; }
@media (min-width: 860px) and (max-width: 1179.98px) {
  .crw-side { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: start; }
  /* the capability panel is half the missions' height: let it ride along beside them */
  .crw .crw-cap { position: sticky; top: calc(var(--topbar-h, 68px) + 20px); }
}
.crw-panel { min-width: 0; }
/* the focus picker may overflow the seat grid on small screens: keep the manifest's stacking
   context above the panels that follow it */
.crw .crw-manifest { z-index: 2; }

/* ------------------------------------------------------------ panel heads */
.crw-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.crw-head__k { display: flex; align-items: center; gap: 10px; color: var(--text-faint); }
.crw-head__k::before { content: ""; width: 18px; height: 1px; background: var(--ignite); flex: none; }
.crw-head__t { margin-top: 9px; font-size: clamp(0.92rem, 1.25vw, 1.12rem); letter-spacing: 0.08em; line-height: 1.2; }
.crw-count { text-align: right; justify-items: end; }
.crw-count .readout__v { font-size: 0.8rem; color: var(--text-faint); }
.crw-count .readout__v b { font-size: 1.5rem; font-weight: 500; color: var(--text); letter-spacing: 0.04em; }
.crw-count .readout__v small { margin-left: 5px; font-size: 0.8rem; }

/* ------------------------------------------------------------ manifest body */
.crw-body { position: relative; }
.crw-ring {
  position: relative; width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.crw-links, .crw-sweep, .crw-ticks { display: none; }

/* emblem — in grid mode it becomes a compact status strip above the seats */
.crw-core {
  grid-column: 1 / -1; order: -1;
  display: flex; align-items: center; gap: 14px;
  padding: 2px 2px 10px; pointer-events: none;
}
.crw-core__logo {
  width: 42px; height: auto; flex: none;
  opacity: calc(0.35 + var(--crw-fill) * 0.65);
  transition: opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.crw[data-full="true"] .crw-core__logo { filter: drop-shadow(0 0 14px rgba(255, 138, 42, 0.5)); }
.crw-core__stat { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.crw-core__n { font-family: var(--f-mono); font-size: 1.1rem; color: var(--text); letter-spacing: 0.06em; font-feature-settings: "tnum" 1; }
.crw-core__n small { font-size: 0.7em; color: var(--text-faint); margin-left: 1px; }
.crw-core__s {
  font-family: var(--f-display); font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.4s;
}
.crw[data-full="true"] .crw-core__s { color: var(--ignite); }

/* ------------------------------------------------------------ seats */
.crw-slot {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  min-height: 124px; padding: 10px 11px 10px;
  text-align: left; color: var(--text);
  background: linear-gradient(180deg, rgba(22, 27, 36, 0.92), rgba(9, 12, 17, 0.95));
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease-out), opacity 0.5s var(--ease-out), translate 0.5s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.crw-slot::before, .crw-slot::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
  border: 0 solid var(--silver); opacity: 0; transition: opacity 0.3s, border-color 0.3s;
}
.crw-slot::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.crw-slot::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.crw-slot.is-filled { border-style: solid; border-color: rgba(255, 255, 255, 0.2); }
.crw-slot.is-filled::before, .crw-slot.is-filled::after { opacity: 0.9; }
.crw-slot:active { transform: scale(0.985); }
.crw-slot[aria-expanded="true"] { border-style: solid; border-color: var(--ignite); background: linear-gradient(180deg, rgba(40, 26, 14, 0.9), rgba(12, 12, 14, 0.96)); }
.crw-slot[aria-expanded="true"]::before, .crw-slot[aria-expanded="true"]::after { opacity: 1; border-color: var(--ignite); }
@media (hover: hover) {
  .crw-slot:hover { border-color: var(--silver); }
  .crw-slot[aria-expanded="true"]:hover { border-color: var(--ignite); }
  .crw-slot:hover .crw-slot__plus { transform: rotate(90deg); color: var(--ignite); }
  .crw-slot:hover .crw-slot__open { color: var(--text); }
}
.crw-slot.is-hl { border-color: rgba(116, 196, 80, 0.75); }
.crw-slot.is-hl::before, .crw-slot.is-hl::after { border-color: var(--signal); opacity: 1; }
.crw.is-hl .crw-slot:not(.is-hl) { opacity: 0.5; }

.crw-slot__fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.crw-slot__fx::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(255, 138, 42, 0.26), transparent);
  transform: translateY(-110%); opacity: 0;
}
.crw-slot.is-lock { animation: crw-lock 0.95s var(--ease-out); }
.crw-slot.is-lock .crw-slot__fx::before { animation: crw-scan 0.8s var(--ease-io); }
@keyframes crw-lock {
  0% { border-color: var(--ignite); box-shadow: inset 0 0 0 1px rgba(255, 138, 42, 0.7), 0 0 26px rgba(255, 138, 42, 0.22); }
  100% { box-shadow: inset 0 0 0 1px rgba(255, 138, 42, 0), 0 0 0 rgba(255, 138, 42, 0); }
}
@keyframes crw-scan {
  0% { transform: translateY(-110%); opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}

.crw-slot__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 16px; }
.crw-slot__n { font-family: var(--f-display); font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
.crw-slot__ico { display: block; width: 16px; height: 16px; color: var(--ignite); opacity: 0; transition: opacity 0.4s; }
.crw-slot__ico svg { display: block; }
.crw-slot.is-filled .crw-slot__ico { opacity: 1; }

.crw-slot__empty { display: grid; justify-items: center; gap: 8px; margin: auto; color: var(--text-faint); transition: color 0.3s; }
.crw-slot__plus { width: 18px; height: 18px; transition: transform 0.45s var(--ease-out), color 0.3s; }
.crw-slot__open { font-family: var(--f-display); font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; transition: color 0.3s; }
.crw-slot.is-filled .crw-slot__empty { display: none; }
.crw-slot:not(.is-filled) .crw-slot__filled { display: none; }

.crw-slot__filled { display: grid; gap: 3px; min-width: 0; }
.crw-slot__code { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: 0.1em; line-height: 1.05; color: var(--text); min-height: 1.05em; }
.crw-slot__name { font-weight: 700; font-size: 0.7rem; line-height: 1.2; color: var(--text-dim); text-wrap: balance; }
.crw-slot__call {
  display: flex; align-items: center; gap: 6px; margin-top: 3px;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--silver-hi); white-space: nowrap;
  min-height: 1.2em; font-feature-settings: "tnum" 1;
}
.crw-slot__call:not(:empty)::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: var(--signal); box-shadow: 0 0 8px var(--signal);
}

/* ------------------------------------------------------------ picker */
.crw-picker {
  position: absolute; z-index: 30; left: 0; top: 0; width: min(320px, 100%);
  background: rgba(7, 9, 12, 0.97);
  border: 1px solid var(--line-strong); border-radius: 2px;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: crw-pop 0.24s var(--ease-out);
  scroll-margin: calc(var(--topbar-h, 68px) + 12px) 0 16px;
}
.crw-picker[data-side="above"] { transform-origin: 50% 100%; }
.crw-picker[data-side="below"] { transform-origin: 50% 0; }
@keyframes crw-pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
.crw-picker::before, .crw-picker::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none; border: 0 solid var(--ignite);
}
.crw-picker::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.crw-picker::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.crw-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px 10px; border-bottom: 1px solid var(--line); }
.crw-picker__t { font-family: var(--f-display); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.crw-kbd {
  padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 2px;
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
}
.crw-opt {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 8px 14px; text-align: left;
  border-bottom: 1px solid var(--line); color: var(--text);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.crw-opt:last-child { border-bottom: 0; }
.crw-opt:hover, .crw-opt:focus-visible { background: rgba(255, 138, 42, 0.08); box-shadow: inset 2px 0 0 var(--ignite); outline: none; }
.crw-opt:focus-visible { outline: 1px solid rgba(255, 138, 42, 0.7); outline-offset: -1px; }
.crw-opt__ico { display: grid; place-items: center; color: var(--text-dim); transition: color 0.2s; }
.crw-opt:hover .crw-opt__ico, .crw-opt:focus-visible .crw-opt__ico, .crw-opt[aria-checked="true"] .crw-opt__ico { color: var(--ignite); }
.crw-opt__txt { display: grid; gap: 1px; min-width: 0; }
.crw-opt__name { font-size: 0.84rem; font-weight: 700; line-height: 1.25; }
.crw-opt__desc { font-size: 0.74rem; line-height: 1.3; color: var(--text-faint); }
.crw-opt__code { display: grid; justify-items: end; gap: 1px; font-family: var(--f-mono); }
.crw-opt__code b { font-weight: 500; font-size: 0.74rem; letter-spacing: 0.1em; color: var(--text-dim); }
.crw-opt__code i { font-style: normal; font-size: 0.62rem; color: var(--text-faint); min-height: 1em; }
.crw-opt[aria-checked="true"] .crw-opt__name { color: var(--ignite-hot); }
.crw-opt[aria-checked="true"] .crw-opt__code b { color: var(--ignite); }
.crw-opt--release .crw-opt__ico { color: var(--text-faint); }
.crw-opt--release:hover .crw-opt__ico, .crw-opt--release:focus-visible .crw-opt__ico { color: var(--warn); }

/* ------------------------------------------------------------ actions */
.crw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.crw-actions .btn svg { flex: none; }
.crw-actions .btn[aria-disabled="true"] { opacity: 0.38; pointer-events: none; }
.crw-hint { margin-left: auto; font-family: var(--f-display); font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
@media (hover: none) { .crw-actions .btn { min-height: 44px; } }
@media (max-width: 520px) { .crw-hint { display: none; } .crw-actions .btn { flex: 1 1 auto; } }

/* ------------------------------------------------------------ capability matrix */
.crw-cap__list { display: grid; }
.crw-cap__row {
  display: grid; grid-template-columns: minmax(84px, 112px) minmax(0, 1fr) 54px; align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.crw-cap__row:last-child { border-bottom: 0; }
.crw-cap__k { display: grid; gap: 4px; }
.crw-cap__label { font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); transition: color 0.3s; }
.crw-cap__row.is-zero .crw-cap__label { color: var(--text-dim); }
.crw-cap__src { display: flex; gap: 6px; font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.08em; }
.crw-cap__src i { font-style: normal; }
.crw-cap__src .is-1 { color: var(--text-dim); }
.crw-cap__src .is-2 { color: var(--text-faint); }
.crw-cap__src .is-2::before { content: "+"; margin-right: 1px; }
.crw-cap__bar { display: flex; gap: 3px; width: 100%; min-width: 0; align-items: stretch; }
.crw-cap__bar .segbar__seg { flex: 1 1 0; width: auto; min-width: 0; height: 9px; }
.crw-cap__bar .segbar__seg.crw-half { opacity: 0.5; }
.crw-cap__bar .segbar__seg.crw-gain { background: var(--ignite); opacity: 0.9; }
.crw-cap__bar .segbar__seg.crw-gain.is-off { opacity: 0.75; }
.crw-cap__bar .segbar__seg.crw-gain.crw-ghalf { opacity: 0.4; }
.crw-cap__bar .segbar__seg.crw-loss { background: var(--warn); opacity: 0.7; }
.crw-cap__v { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; font-family: var(--f-mono); font-feature-settings: "tnum" 1; }
.crw-cap__v b { font-weight: 500; font-size: 0.95rem; color: var(--text); transition: color 0.4s; }
.crw-cap__row.is-zero .crw-cap__v b { color: var(--text-faint); }
.crw-cap__v i { font-style: normal; font-size: 0.62rem; min-width: 2ch; text-align: right; }
.crw-cap__v i.is-up { color: var(--ignite); }
.crw-cap__v i.is-down { color: var(--warn); }
.crw-cap__row.is-bump .crw-cap__v b { animation: crw-bump 0.7s var(--ease-out); }
@keyframes crw-bump { 0% { color: var(--ignite-hot); } 100% { color: var(--text); } }
.crw-cap__note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.78rem; line-height: 1.5; color: var(--text-faint); }
/* small screens: counts sit inline under the title; the manifest count lives in the emblem strip */
@media (max-width: 719.98px) {
  .crw-manifest .crw-count { display: none; }
}
@media (max-width: 520px) {
  .crw-count { display: flex; align-items: baseline; gap: 10px; text-align: left; justify-items: start; flex-basis: 100%; }
  .crw-head { margin-bottom: 8px; }
}
@media (max-width: 480px) {
  .crw-cap__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; }
  .crw-cap__k { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 12px; }
  .crw-cap__v { grid-column: 2; grid-row: 1; }
  .crw-cap__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ------------------------------------------------------------ missions */
.crw-missions__list { display: grid; }
.crw-mission {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px;
  padding: 16px 0 16px 16px; border-bottom: 1px solid var(--line);
  transition: background 0.5s;
}
.crw-mission:last-child { border-bottom: 0; }
.crw-mission::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px;
  background: var(--line-strong); transition: background 0.4s, box-shadow 0.4s;
}
.crw-mission.is-ready { background: linear-gradient(90deg, rgba(116, 196, 80, 0.08), transparent 72%); }
.crw-mission.is-ready::before { background: var(--signal); box-shadow: 0 0 12px rgba(116, 196, 80, 0.55); }
.crw-mission.is-new { animation: crw-ready 1.5s ease-out; }
@keyframes crw-ready { 0% { background-color: rgba(116, 196, 80, 0.24); } 100% { background-color: rgba(116, 196, 80, 0); } }
.crw-mission__idx { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--text-faint); }
.crw-mission__t { margin: 5px 0 0; font-family: var(--f-display); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.35; color: var(--text); }
.crw-mission__d { margin-top: 6px; font-size: 0.86rem; line-height: 1.5; color: var(--text-dim); max-width: 52ch; }
.crw-mission__req { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.crw-req {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 6px;
  border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 2px;
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.crw-req::before { content: ""; width: 5px; height: 5px; border: 1px solid currentColor; flex: none; transition: background 0.3s; }
.crw-req__n { opacity: 0.85; }
.crw-req.is-part { color: var(--ignite-hot); border-color: rgba(255, 138, 42, 0.45); }
.crw-req.is-met { color: var(--signal); border: 1px solid rgba(116, 196, 80, 0.45); background: rgba(116, 196, 80, 0.07); }
.crw-req.is-met::before { background: currentColor; }
.crw-mission__need { margin-top: 10px; font-size: 0.78rem; line-height: 1.5; color: var(--text-faint); }
.crw-mission__need b { font-weight: 700; color: var(--ignite-hot); }
.crw-mission.is-ready .crw-mission__need { color: var(--signal); }
.crw-mission__st { align-self: start; margin-top: 2px; white-space: nowrap; transition: color 0.3s, border-color 0.3s; }
.crw-mission__st.chip--signal { background: rgba(116, 196, 80, 0.08); }
@media (max-width: 420px) {
  .crw-mission { grid-template-columns: 1fr; }
  .crw-mission__st { order: -1; justify-self: start; margin: 0; }
}

/* ------------------------------------------------------------ footer line */
.crw-foot { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 4px; text-align: center; }
@media (min-width: 1180px) { .crw-foot { grid-column: 1 / -1; } }
.crw-foot::before, .crw-foot::after { content: ""; flex: 1 1 0; max-width: 240px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.crw-foot::after { transform: scaleX(-1); }
.crw-foot span { font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); line-height: 1.8; }
@media (max-width: 520px) { .crw-foot::before, .crw-foot::after { display: none; } .crw-foot span { font-size: 0.56rem; } }

/* ------------------------------------------------------------ intro (is-pre → is-intro) */
.crw.is-pre .crw-panel, .crw.is-pre .crw-foot { opacity: 0; translate: 0 18px; }
.crw.is-pre .crw-slot { opacity: 0; translate: 0 12px; }
.crw.is-intro .crw-panel, .crw.is-intro .crw-foot { transition: opacity 0.9s var(--ease-out), translate 1.1s var(--ease-out); }
.crw.is-intro .crw-cap { transition-delay: 0.12s; }
.crw.is-intro .crw-missions { transition-delay: 0.24s; }
.crw.is-intro .crw-foot { transition-delay: 0.4s; }
.crw.is-intro .crw-slot { transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease-out), opacity 0.7s var(--ease-out) calc(0.15s + var(--i) * 70ms), translate 0.9s var(--ease-out) calc(0.15s + var(--i) * 70ms); }

/* ================================================================
   RING MODE  (≥ 720px) — eight seats on an orbit around the emblem
   ================================================================ */
@media (min-width: 720px) {
  .crw-body::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
    opacity: 0.8;
  }
  .crw-ring {
    display: block; position: relative; aspect-ratio: 1; max-width: 680px; margin-inline: auto;
    container-type: inline-size;
  }
  .crw-links { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .crw-ticks {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
    animation: crw-spin 220s linear infinite;
  }
  .crw-sweep {
    display: block; position: absolute; inset: 28%; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 0deg, rgba(var(--crw-sweep), 0) 0deg, rgba(var(--crw-sweep), 0) 280deg, rgba(var(--crw-sweep), 0.12) 359deg, rgba(var(--crw-sweep), 0) 360deg);
    opacity: calc(0.25 + var(--crw-fill) * 0.75);
    animation: crw-spin 14s linear infinite;
  }

  .crw-core {
    position: absolute; left: 50%; top: 50%; z-index: 1;
    width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%);
    display: grid; align-content: center; justify-items: center; gap: 4cqw;
    padding: 0; text-align: center; order: 0;
  }
  .crw-core__logo { width: 42%; }
  .crw-core__stat { display: grid; justify-items: center; gap: 0.7cqw; }
  .crw-core__n { font-size: 1rem; font-size: clamp(0.8rem, 2.5cqw, 1.2rem); }
  .crw-core__s { font-size: 0.54rem; font-size: clamp(0.54rem, 1.25cqw, 0.62rem); }

  .crw-slot {
    position: absolute; left: calc(var(--x) - 11.5%); top: calc(var(--y) - 9.5%);
    width: 23%; height: 19%; min-height: 0;
    padding: 8px 10px; padding: clamp(6px, 1.5cqw, 11px) clamp(8px, 1.75cqw, 12px);
    gap: 2px;
  }
  .crw-slot__n { font-size: 0.54rem; font-size: clamp(0.54rem, 1.25cqw, 0.62rem); }
  .crw-slot__open { font-size: 0.54rem; font-size: clamp(0.54rem, 1.3cqw, 0.64rem); }
  .crw-slot__code { font-size: 1.1rem; font-size: clamp(1rem, 3.5cqw, 1.65rem); }
  .crw-slot__name { font-size: 0.64rem; font-size: clamp(0.62rem, 1.8cqw, 0.8rem); }
  .crw-slot__call { font-size: 0.6rem; font-size: clamp(0.58rem, 1.65cqw, 0.74rem); margin-top: 1px; }
  .crw-slot__plus { width: 1.1rem; width: clamp(16px, 3cqw, 22px); height: auto; }

  /* decorative geometry */
  .crw-d-halo { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 0.14; }
  .crw-d-ticks { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
  .crw-d-orbit { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 0.16; }
  .crw-d-bus { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 0.16; }
  .crw-d-spoke { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 0.16; }

  /* lit connections: drawn with stroke-dashoffset (pathLength = 1) */
  .crw-lit {
    fill: none; stroke-linecap: round; stroke-width: 0.3;
    stroke-dasharray: 1 1; stroke-dashoffset: var(--off, 1); opacity: 0;
    transition: stroke-dashoffset 0.85s var(--ease-out), opacity 0.35s linear;
  }
  .crw-lit.is-on { stroke-dashoffset: 0; opacity: 1; }
  .crw-lit--bus { stroke: var(--signal); }
  .crw-lit--spoke { stroke: var(--silver-hi); stroke-width: 0.26; }
  .crw-lit--core { stroke: var(--silver-hi); stroke-width: 0.55; }
  .crw[data-full="true"] .crw-lit--core { stroke: var(--ignite); transition: stroke 0.6s, stroke-dashoffset 0.85s var(--ease-out), opacity 0.35s linear; }
  .crw[data-full="true"] .crw-lit--bus { stroke: var(--ignite-hot); transition: stroke 0.6s, stroke-dashoffset 0.85s var(--ease-out), opacity 0.35s linear; }
  .crw-lit.is-flash { animation: crw-flash 1s ease-out; }
}
@keyframes crw-flash { 0% { stroke: #fff; stroke-width: 0.6; } 100% { stroke-width: 0.3; } }
@keyframes crw-spin { to { transform: rotate(360deg); } }

/* pause every perpetual animation while the module is off-screen / tab hidden */
.crw:not(.is-live) .crw-sweep, .crw:not(.is-live) .crw-ticks, .crw:not(.is-live) .dot--pulse { animation-play-state: paused; }

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .crw-sweep, .crw-ticks { animation: none !important; }
  .crw-lit { transition: opacity 0.2s linear !important; stroke-dashoffset: 0; }
  .crw-picker { animation: none; }
}
