:root {
  --v3-solar: #ffc857;
  --v3-satellite: #6ee8ef;
  --v3-rfi: #ff9a7c;
  --v3-ink: #07142f;
}

.child-scene.data-scene {
  grid-template-rows: auto minmax(0, 1fr);
}

.child-scene.data-scene[data-scenario="rfi_scan"]:has(.rfi-clue-deck) {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.child-brand-copy strong b {
  margin-left: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(110, 232, 239, 0.46);
  border-radius: 999px;
  color: var(--signal-soft);
  background: rgba(41, 216, 242, 0.1);
  font-size: 11px;
  letter-spacing: 0.12em;
  vertical-align: 3px;
}

.team-route {
  position: relative;
  isolation: isolate;
}

.team-route-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  z-index: -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(169, 183, 212, 0.14);
  transform: translateY(-50%);
}

.team-route-line i {
  display: block;
  width: var(--route-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--safe),
    var(--signal-soft),
    var(--sun)
  );
  box-shadow: 0 0 14px rgba(110, 232, 239, 0.45);
  transition: width 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-route .chapter-node {
  min-height: 46px;
  padding: 5px 8px;
  border-radius: 14px;
  background: rgba(3, 11, 28, 0.8);
}

.team-route .chapter-node.current {
  color: #0b1430;
  background: var(--sun);
  box-shadow: 0 10px 26px rgba(255, 200, 87, 0.22);
}

.team-route .chapter-node.current::before {
  background: #0b1430;
  box-shadow: 0 0 0 6px rgba(11, 20, 48, 0.1);
}

.team-route .chapter-node img {
  position: absolute;
  left: 50%;
  top: -28px;
  width: 42px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.42));
  transform: translateX(-50%);
  animation: v3-route-hop 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.role-constellation.picture-role-grid {
  align-content: center;
}

.role-claim {
  position: relative;
  width: 100%;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.role-claim:hover,
.role-claim:focus-visible {
  border-color: rgba(110, 232, 239, 0.62);
  transform: translateY(-3px);
}

.role-claim:disabled {
  cursor: default;
  transform: none;
}

.role-claim.claimed {
  border-color: rgba(255, 200, 87, 0.78);
  background:
    radial-gradient(
      circle at 14% 20%,
      rgba(255, 200, 87, 0.2),
      transparent 34%
    ),
    rgba(16, 37, 74, 0.92);
  box-shadow:
    0 0 0 4px rgba(255, 200, 87, 0.1),
    0 20px 36px rgba(0, 0, 0, 0.24);
}

.role-claim-state {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(110, 232, 239, 0.28);
  border-radius: 999px;
  color: var(--signal-soft);
  background: rgba(3, 11, 28, 0.68);
  font-size: 11px;
  font-weight: 850;
}

.role-claim.claimed .role-claim-state {
  border-color: rgba(255, 200, 87, 0.48);
  color: #0b1430;
  background: var(--sun);
}

.role-reset {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 1px solid rgba(169, 183, 212, 0.28);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(3, 11, 28, 0.48);
  font-weight: 800;
}

.prediction-picture-panel .prediction-capsule {
  grid-column: 1 / -1;
}

.prediction-capsule {
  width: 100%;
  min-height: 92px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  border: 1px dashed rgba(169, 183, 212, 0.4);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(3, 11, 28, 0.48);
}

.prediction-capsule.sealed {
  border-style: solid;
  border-color: rgba(255, 200, 87, 0.62);
  color: var(--white);
  background: rgba(255, 200, 87, 0.09);
  box-shadow: inset 0 0 28px rgba(255, 200, 87, 0.05);
}

.prediction-capsule > img,
.prediction-capsule .picture-choice-art {
  width: 70px;
  height: 64px;
  object-fit: contain;
}

.prediction-capsule span small,
.prediction-capsule span strong {
  display: block;
}

.prediction-capsule span small {
  color: inherit;
  font-size: 12px;
  font-weight: 750;
}

.prediction-capsule span strong {
  margin-top: 3px;
  color: var(--white);
  font-size: 22px;
}

.prediction-capsule > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--sun);
  font-style: normal;
  font-weight: 950;
}

.data-header > div:last-child {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.visual-mode-toggle {
  padding: 4px;
  display: flex;
  gap: 4px;
  border: 1px solid rgba(169, 183, 212, 0.22);
  border-radius: 16px;
  background: rgba(3, 11, 28, 0.58);
}

.visual-mode-toggle button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}

.visual-mode-toggle button.active {
  color: #07142f;
  background: var(--signal-soft);
  box-shadow: 0 8px 18px rgba(41, 216, 242, 0.18);
}

.evidence-capture-toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  width: min(620px, 72%);
  min-height: 88px;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 200, 87, 0.66);
  border-radius: 24px;
  color: #0b1430;
  background: #fff5d7;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), 0 0 36px rgba(255, 200, 87, 0.2);
  transform: translateX(-50%);
  animation: v3-evidence-toast 2.2s ease both;
}

.evidence-capture-toast img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.evidence-capture-toast small,
.evidence-capture-toast strong {
  display: block;
}

.evidence-capture-toast small {
  color: #76601c;
  font-size: 12px;
  font-weight: 850;
}

.evidence-capture-toast strong {
  margin-top: 3px;
  font-size: clamp(18px, 1.4vw, 25px);
}

.evidence-reasoning-trail {
  grid-column: 1 / -1;
  width: 100%;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  border: 1px solid rgba(110, 232, 239, 0.26);
  border-radius: 22px;
  background: rgba(3, 11, 28, 0.5);
}

.evidence-reasoning-trail span {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.evidence-reasoning-trail small,
.evidence-reasoning-trail strong {
  display: block;
}

.evidence-reasoning-trail small {
  color: var(--muted);
  font-size: 11px;
}

.evidence-reasoning-trail strong {
  margin-top: 3px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.35;
}

.evidence-reasoning-trail > i {
  align-self: center;
  color: var(--sun);
  font-style: normal;
  font-size: 22px;
}

.mission-complete-constellation {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mission-complete-constellation span {
  min-width: 0;
  padding: 10px 6px;
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: 15px;
  color: var(--sun);
  background: rgba(255, 200, 87, 0.075);
  animation: v3-complete-star 520ms var(--star-delay, 0ms) ease both;
}

.mission-complete-constellation span i {
  font-style: normal;
  font-size: 24px;
  filter: drop-shadow(0 0 10px rgba(255, 200, 87, 0.52));
}

.mission-complete-constellation span strong {
  color: var(--white);
  font-size: 12px;
  white-space: nowrap;
}

.mission-complete-constellation > small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.v3-result-workspace {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.v3-result-tabs {
  justify-self: end;
  padding: 4px;
  display: flex;
  gap: 4px;
  border: 1px solid rgba(169, 183, 212, 0.24);
  border-radius: 16px;
  background: rgba(3, 11, 28, 0.72);
}

.v3-result-tabs button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.v3-result-tabs button.active {
  color: var(--v3-ink);
  background: var(--sun);
}

.v3-result-workspace > .result-card,
.result-replay-panel {
  min-height: 0;
  height: 100%;
}

.result-replay-panel {
  padding: clamp(14px, 1.3vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(110, 232, 239, 0.28);
  border-radius: 30px;
  background: rgba(3, 11, 28, 0.9);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.result-replay-panel .v3gv-replay-header h2 {
  font-size: clamp(24px, 1.8vw, 34px);
}

.result-replay-panel .v3gv-replay-header > strong {
  min-height: 42px;
}

.result-replay-panel .v3gv-replay-controls button {
  min-width: 138px;
  min-height: 48px;
}

.result-replay-panel .v3gv-replay-timeline {
  min-height: 54px;
}

/* V3.1 cooperative signal capture: screen interaction only. */

.capture-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.capture-stage > .v3gv-mission-stage {
  height: 100%;
}

.rfi-capture-stage .v3gv-rfi-clues,
.rfi-capture-stage .v3gv-rfi-band-label,
.rfi-capture-stage .v3gv-rfi-peak text {
  opacity: 0;
  pointer-events: none;
}

.capture-feedback-float {
  position: absolute;
  left: 50%;
  top: clamp(92px, 18%, 126px);
  z-index: 18;
  width: min(760px, 70%);
  min-height: 54px;
  padding: 8px 16px 8px 9px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(110, 232, 239, 0.42);
  border-radius: 999px;
  color: #dffcff;
  background: rgba(4, 21, 44, 0.94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  animation: capture-feedback-arrive 320ms ease both;
}

.capture-feedback-float > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06142d;
  background: var(--signal-soft);
  font-size: 20px;
  font-weight: 950;
}

.capture-feedback-float strong {
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.35;
  text-align: left;
}

.capture-feedback-float[data-kind="success"] {
  border-color: rgba(82, 219, 156, 0.62);
  color: #dbffed;
  background: rgba(8, 49, 45, 0.96);
}

.capture-feedback-float[data-kind="success"] > span {
  background: var(--safe);
}

.capture-feedback-float[data-kind="warning"] {
  border-color: rgba(255, 200, 87, 0.7);
  color: #fff1c3;
  background: rgba(59, 39, 10, 0.96);
}

.capture-feedback-float[data-kind="warning"] > span {
  background: var(--sun);
}

.capture-feedback-float[data-code="marker-too-close"] {
  width: min(880px, 76%);
  animation: capture-feedback-nudge 460ms ease both;
}

.capture-aim-overlay {
  position: absolute;
  z-index: 12;
  left: 7.5%;
  right: 2.6%;
  top: 29%;
  bottom: 9.5%;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  align-items: stretch;
  gap: 10px;
  pointer-events: none;
}

.capture-aim-field {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 2px dashed rgba(110, 232, 239, 0.54);
  border-radius: 26px;
  background: rgba(3, 13, 34, 0.18);
  box-shadow: inset 0 0 50px rgba(41, 216, 242, 0.06);
  cursor: crosshair;
  touch-action: none;
  pointer-events: auto;
}

.capture-aim-field:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 4px;
}

.capture-aim-line {
  position: absolute;
  left: var(--capture-x);
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 238, 188, 0.94) 18%,
    rgba(255, 238, 188, 0.94) 82%,
    transparent
  );
  box-shadow: 0 0 22px rgba(255, 200, 87, 0.72);
  transform: translateX(-50%);
  transition: left 90ms linear;
}

.capture-reticle {
  position: absolute;
  left: var(--capture-x);
  top: var(--capture-y);
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 5px solid var(--sun);
  border-radius: 50%;
  background: rgba(4, 18, 43, 0.65);
  box-shadow:
    0 0 0 12px rgba(255, 200, 87, 0.12),
    0 0 38px rgba(255, 200, 87, 0.82),
    inset 0 0 22px rgba(255, 200, 87, 0.2);
  transform: translate(-50%, -50%);
  transition: left 90ms linear, top 120ms ease;
  animation: capture-magnet-pulse 1.3s ease-in-out infinite;
}

.capture-reticle::before,
.capture-reticle::after,
.capture-reticle > i::before,
.capture-reticle > i::after {
  content: "";
  position: absolute;
  background: var(--sun);
  border-radius: 99px;
}

.capture-reticle::before,
.capture-reticle::after {
  left: 50%;
  width: 5px;
  height: 19px;
  transform: translateX(-50%);
}

.capture-reticle::before {
  top: -16px;
}

.capture-reticle::after {
  bottom: -16px;
}

.capture-reticle > i::before,
.capture-reticle > i::after {
  top: 50%;
  width: 19px;
  height: 5px;
  transform: translateY(-50%);
}

.capture-reticle > i::before {
  left: -16px;
}

.capture-reticle > i::after {
  right: -16px;
}

.capture-reticle img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.36));
}

.capture-position-chip {
  position: absolute;
  left: clamp(104px, var(--capture-x), calc(100% - 104px));
  bottom: 14px;
  min-width: 174px;
  min-height: 58px;
  padding: 8px 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 200, 87, 0.54);
  border-radius: 18px;
  color: #fff2bd;
  background: rgba(4, 16, 38, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
  transition: left 90ms linear;
  pointer-events: none;
}

.capture-position-chip strong,
.capture-position-chip small {
  display: block;
  text-align: center;
}

.capture-position-chip strong {
  font-size: 19px;
}

.capture-position-chip small {
  margin-top: 1px;
  color: #cbd8ea;
  font-size: 11px;
  font-weight: 750;
}

.capture-nudge {
  min-width: 0;
  border: 1px solid rgba(110, 232, 239, 0.5);
  border-radius: 24px;
  color: #06142d;
  background: var(--signal-soft);
  box-shadow: 0 14px 30px rgba(41, 216, 242, 0.18);
  pointer-events: auto;
}

.capture-nudge span {
  display: block;
  font-size: 78px;
  font-weight: 550;
  line-height: 0.7;
  transform: translateY(-3px);
}

.capture-nudge:active {
  transform: scale(0.96);
}

.capture-nudge:disabled {
  color: rgba(169, 183, 212, 0.62);
  background: rgba(18, 39, 74, 0.86);
  box-shadow: none;
}

.capture-locked .capture-aim-field {
  border-style: solid;
  border-color: rgba(255, 200, 87, 0.72);
  cursor: default;
}

.capture-locked .capture-reticle {
  animation: capture-star-lock 520ms cubic-bezier(0.2, 0.8, 0.2, 1.15) both;
}

.capture-team-dock {
  padding: 9px 14px;
  grid-template-rows: 48px minmax(0, 1fr);
  gap: 8px;
  border-color: rgba(255, 154, 124, 0.23);
  background: rgba(4, 13, 31, 0.9);
}

.capture-role-relay {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.capture-role-relay::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  z-index: 0;
  height: 3px;
  border-radius: 99px;
  background: rgba(169, 183, 212, 0.18);
  transform: translateY(-50%);
}

.capture-role-relay > div {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 4px 10px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(169, 183, 212, 0.16);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(5, 17, 39, 0.95);
}

.capture-role-relay > div.current {
  border-color: rgba(255, 200, 87, 0.7);
  color: var(--white);
  background: rgba(67, 48, 13, 0.96);
  box-shadow: 0 0 22px rgba(255, 200, 87, 0.14);
}

.capture-role-relay > div.done {
  border-color: rgba(82, 219, 156, 0.34);
  color: #d8ffed;
}

.capture-role-relay > div.unclaimed:not(.current) {
  opacity: 0.52;
}

.capture-role-picture {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.capture-role-picture img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.capture-role-picture i {
  position: absolute;
  right: -5px;
  top: -5px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06142d;
  background: var(--signal-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.capture-role-relay .current .capture-role-picture i {
  background: var(--sun);
}

.capture-role-relay > div > span:last-child,
.capture-role-relay strong,
.capture-role-relay small {
  min-width: 0;
  display: block;
}

.capture-role-relay strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-role-relay small {
  margin-top: 1px;
  color: inherit;
  font-size: 10px;
  font-weight: 750;
}

.capture-scan-controls {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
}

.capture-shout-button {
  width: min(960px, 65%);
  height: 100%;
  min-height: 90px;
  padding: 6px 22px;
  display: grid;
  grid-template-columns: 82px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 2px solid rgba(110, 232, 239, 0.64);
  border-radius: 25px;
  color: #06142d;
  background: var(--signal-soft);
  box-shadow: 0 15px 38px rgba(41, 216, 242, 0.22);
}

.capture-shout-button:hover,
.capture-shout-button:focus-visible {
  border-color: #fff;
  transform: translateY(-2px);
}

.capture-shout-button > img {
  width: 78px;
  height: 72px;
  object-fit: contain;
}

.capture-shout-button > span:not(.capture-pause-symbol) {
  text-align: left;
}

.capture-shout-button strong,
.capture-shout-button small {
  display: block;
}

.capture-shout-button strong {
  font-size: clamp(28px, 2vw, 38px);
  line-height: 1.05;
}

.capture-shout-button small {
  margin-top: 4px;
  color: #205a67;
  font-size: 13px;
  font-weight: 850;
}

.capture-shout-button.complete {
  border-color: rgba(82, 219, 156, 0.6);
  color: #0c402e;
  background: var(--safe);
  box-shadow: none;
}

.capture-pause-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: repeat(2, 12px);
  place-content: center;
  gap: 8px;
  border-radius: 50%;
  background: rgba(6, 20, 45, 0.13);
}

.capture-pause-symbol i {
  width: 12px;
  height: 28px;
  border-radius: 5px;
  background: #06142d;
}

.capture-shout-button .evidence-counter {
  color: #0b4f60;
}

.capture-undo,
.capture-cancel {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(169, 183, 212, 0.3);
  border-radius: 15px;
  color: #d6e2f3;
  background: rgba(16, 37, 74, 0.9);
  font-size: 13px;
  font-weight: 850;
}

.capture-scan-controls > .capture-undo {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.capture-cancel {
  position: absolute;
  right: 22px;
  top: -17px;
  z-index: 5;
  min-height: 38px;
  border-color: rgba(255, 154, 124, 0.42);
  color: #ffd8cc;
  background: rgba(55, 23, 29, 0.96);
}

.capture-reason-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.capture-reason-card {
  position: relative;
  min-width: 0;
  min-height: 94px;
  padding: 7px 13px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(110, 232, 239, 0.28);
  border-radius: 20px;
  color: var(--white);
  background: rgba(16, 37, 74, 0.86);
  text-align: left;
}

.capture-reason-card:hover,
.capture-reason-card:focus-visible {
  border-color: var(--signal-soft);
  transform: translateY(-2px);
}

.capture-reason-card.selected {
  border-color: var(--sun);
  color: #06142d;
  background: var(--sun);
}

.capture-reason-card .picture-choice-art {
  width: 68px;
  height: 68px;
  padding: 8px;
}

.capture-reason-card strong,
.capture-reason-card small {
  display: block;
}

.capture-reason-card strong {
  font-size: clamp(20px, 1.35vw, 27px);
}

.capture-reason-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.capture-reason-card.selected small {
  color: #624d13;
}

.capture-reason-card > i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-weight: 950;
}

.capture-lock-row {
  width: min(1180px, 82%);
  justify-self: center;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(440px, 1.18fr);
  gap: 14px;
}

.capture-selected-reason,
.capture-lock-button {
  min-width: 0;
  min-height: 90px;
  padding: 8px 16px;
  display: grid;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
}

.capture-selected-reason {
  grid-template-columns: 70px minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 200, 87, 0.35);
  background: rgba(255, 200, 87, 0.09);
}

.capture-selected-reason .picture-choice-art {
  width: 66px;
  height: 62px;
}

.capture-selected-reason span small,
.capture-selected-reason span strong,
.capture-lock-button span small,
.capture-lock-button span strong {
  display: block;
}

.capture-selected-reason span small,
.capture-lock-button span small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.capture-selected-reason span strong {
  margin-top: 3px;
  color: var(--white);
  font-size: 24px;
}

.capture-selected-reason > button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(169, 183, 212, 0.3);
  border-radius: 14px;
  color: #dce7f7;
  background: rgba(16, 37, 74, 0.86);
  font-weight: 850;
}

.capture-lock-button {
  grid-template-columns: 76px minmax(0, 1fr);
  border: 1px solid rgba(255, 200, 87, 0.7);
  color: #06142d;
  background: var(--sun);
  box-shadow: 0 14px 34px rgba(255, 200, 87, 0.18);
  text-align: left;
}

.capture-lock-button img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.capture-lock-button span strong {
  font-size: clamp(25px, 1.7vw, 34px);
}

.capture-lock-button span small {
  color: #6a5311;
}

.capture-confirm-button {
  width: min(1080px, 76%);
  height: 100%;
  min-height: 90px;
  justify-self: center;
  padding: 6px 20px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 16px;
  border: 2px solid rgba(255, 200, 87, 0.72);
  border-radius: 24px;
  color: #fff2c8;
  background: rgba(69, 45, 8, 0.94);
  box-shadow: 0 15px 38px rgba(255, 200, 87, 0.16);
  text-align: left;
}

.capture-question-shield {
  width: 66px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 4px solid var(--sun);
  border-radius: 28px 28px 36px 36px;
  color: var(--sun);
  background: rgba(3, 11, 28, 0.46);
  font-size: 38px;
  font-weight: 950;
}

.capture-confirm-button strong,
.capture-confirm-button small {
  display: block;
}

.capture-confirm-button strong {
  font-size: clamp(25px, 1.75vw, 35px);
}

.capture-confirm-button small {
  margin-top: 4px;
  color: #f1d990;
  font-size: 12px;
  font-weight: 800;
}

.capture-confirm-button > img {
  width: 80px;
  height: 76px;
  object-fit: contain;
}

.capture-confirmed-row {
  width: min(1280px, 88%);
  min-height: 90px;
  justify-self: center;
  padding: 7px 12px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(82, 219, 156, 0.5);
  border-radius: 24px;
  background: rgba(11, 60, 53, 0.88);
}

.capture-confirmed-row > img {
  width: 72px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 200, 87, 0.6));
}

.capture-confirmed-row span small,
.capture-confirmed-row span strong {
  display: block;
}

.capture-confirmed-row span small {
  color: #a6f1d1;
  font-size: 11px;
  font-weight: 850;
}

.capture-confirmed-row span strong {
  margin-top: 3px;
  font-size: clamp(20px, 1.45vw, 28px);
}

.capture-confirmed-row > button {
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  color: #073326;
  background: var(--safe);
  font-weight: 900;
}

.capture-confirmed-row > button.capture-undo {
  color: #dce8f6;
  background: rgba(16, 37, 74, 0.86);
}

@keyframes capture-magnet-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 8px rgba(255, 200, 87, 0.1),
      0 0 28px rgba(255, 200, 87, 0.66),
      inset 0 0 20px rgba(255, 200, 87, 0.16);
  }
  50% {
    box-shadow:
      0 0 0 16px rgba(255, 200, 87, 0.17),
      0 0 46px rgba(255, 200, 87, 0.92),
      inset 0 0 26px rgba(255, 200, 87, 0.23);
  }
}

@keyframes capture-star-lock {
  0% {
    transform: translate(-50%, -50%) scale(1.25) rotate(-8deg);
  }
  65% {
    transform: translate(-50%, -50%) scale(0.88) rotate(3deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
}

@keyframes capture-feedback-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes capture-feedback-nudge {
  0%,
  100% {
    transform: translateX(-50%);
  }
  28% {
    transform: translateX(calc(-50% - 11px));
  }
  58% {
    transform: translateX(calc(-50% + 11px));
  }
}

@keyframes v3-route-hop {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes v3-evidence-toast {
  0% {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.96);
  }
  12%, 82% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.99);
  }
}

@keyframes v3-complete-star {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1250px), (max-height: 760px) {
  .team-route .chapter-node {
    min-height: 38px;
    padding: 3px 6px;
  }

  .team-route .chapter-node img {
    top: -21px;
    width: 32px;
    height: 29px;
  }

  .role-claim-state {
    top: 7px;
    right: 7px;
  }

  .role-reset {
    min-height: 34px;
  }

  .prediction-capsule {
    min-height: 68px;
    grid-template-columns: 54px minmax(0, 1fr) 36px;
  }

  .prediction-capsule > img,
  .prediction-capsule .picture-choice-art {
    width: 52px;
    height: 48px;
  }

  .visual-mode-toggle button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .evidence-capture-toast {
    min-height: 68px;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .evidence-capture-toast img {
    width: 50px;
    height: 50px;
  }

  .capture-aim-overlay {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 7px;
  }

  .capture-reticle {
    width: 76px;
    height: 76px;
  }

  .capture-reticle img {
    width: 40px;
    height: 40px;
  }

  .capture-nudge span {
    font-size: 58px;
  }

  .capture-position-chip {
    min-width: 142px;
    min-height: 46px;
    bottom: 8px;
  }

  .capture-team-dock {
    grid-template-rows: 38px minmax(0, 1fr);
    gap: 5px;
  }

  .capture-role-relay > div {
    padding: 2px 7px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .capture-role-picture,
  .capture-role-picture img {
    width: 28px;
    height: 28px;
  }

  .capture-role-relay strong {
    font-size: 11px;
  }

  .capture-role-relay small {
    display: none;
  }

  .capture-shout-button,
  .capture-confirm-button {
    min-height: 72px;
  }

  .capture-shout-button {
    grid-template-columns: 62px 44px minmax(0, 1fr) auto;
  }

  .capture-shout-button > img,
  .capture-confirm-button > img {
    width: 58px;
    height: 56px;
  }

  .capture-reason-card {
    min-height: 72px;
    grid-template-columns: 54px minmax(0, 1fr) 22px;
  }

  .capture-reason-card .picture-choice-art {
    width: 52px;
    height: 52px;
  }

  .capture-reason-card small {
    display: none;
  }

  .capture-lock-row {
    grid-template-columns: minmax(300px, 0.82fr) minmax(370px, 1.18fr);
  }

  .capture-selected-reason,
  .capture-lock-button,
  .capture-confirmed-row {
    min-height: 70px;
  }

  .capture-confirmed-row > img,
  .capture-lock-button img {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-route .chapter-node img,
  .evidence-capture-toast,
  .mission-complete-constellation span,
  .capture-reticle,
  .capture-feedback-float {
    animation: none;
  }
}
