:root {
  --ba-bg: #020405;
  --ba-dot: #EDE6DA;
  --ba-bone: #EDE6DA;
  --ba-accent: #F28C28;
  --ba-accent-glow: rgba(242, 140, 40, 0.55);
  --ba-twin: #2DD4BF;
  --ba-twin-glow: rgba(45, 212, 191, 0.5);
  --ba-surface: rgba(10, 14, 18, 0.88);
  --ba-surface-border: rgba(237, 230, 218, 0.14);
  --ba-text-main: #EDE6DA;
  --ba-text-muted: rgba(237, 230, 218, 0.74);
  --ba-top: 0px;
}

[data-brainiall-autopilot] {
  display: block;
  position: relative;
  width: 100%;
  background-color: var(--ba-bg);
  color: var(--ba-text-main);
  touch-action: pan-y;
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ba-track {
  position: relative;
  width: 100%;
  height: 740vh;
  touch-action: pan-y;
}

@media (max-width: 768px) {
  .ba-track {
    height: 660vh;
  }
}

/* Reserva a altura da trilha antes de o módulo montar: na 03 a demo carrega sob demanda, e sem a reserva a página
   crescia 740vh depois (o menu "Products" levava para o meio da demo). Mesmas alturas da .ba-track. */
[data-brainiall-autopilot]:empty {
  min-height: 740vh;
}

@media (max-width: 768px) {
  [data-brainiall-autopilot]:empty {
    min-height: 660vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-brainiall-autopilot]:empty {
    min-height: 0;
  }
}

.ba-stage {
  position: sticky;
  top: var(--ba-top, 0px);
  width: 100%;
  height: calc(100svh - var(--ba-top, 0px));
  min-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  touch-action: pan-y;
  user-select: none;
}

.ba-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  z-index: 1;
}

.ba-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at var(--ba-hero-x, 50%) var(--ba-hero-y, 50%), rgba(45, 212, 191, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at center, transparent 40%, rgba(2, 4, 5, 0.65) 100%),
              linear-gradient(to top, rgba(2, 4, 5, 0.9) 0%, transparent 22%);
}

.ba-scroll-hint {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(14, 18, 22, 0.85);
  border: 1px solid rgba(242, 140, 40, 0.4);
  border-radius: 999px;
  font-family: 'Azeret Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ba-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ba-scroll-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
}

.ba-scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ba-accent);
  box-shadow: 0 0 10px var(--ba-accent);
  animation: ba-pulse-dot 1.8s infinite ease-in-out;
}

@keyframes ba-pulse-dot {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.ba-top-nav {
  position: relative;
  z-index: 12;
  width: 100%;
  padding: 16px 20px 8px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.ba-act-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--ba-surface);
  border: 1px solid var(--ba-surface-border);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  max-width: 96vw;
  overflow-x: auto;
}

.ba-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ba-text-muted);
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
}

.ba-act-btn:hover {
  color: var(--ba-text-main);
  background: rgba(237, 230, 218, 0.08);
}

.ba-act-btn:focus-visible {
  outline: 2px solid var(--ba-accent);
  outline-offset: 2px;
}

.ba-act-btn.is-active {
  color: #020405;
  background: var(--ba-accent);
  border-color: var(--ba-accent);
  font-weight: 600;
  box-shadow: 0 2px 14px var(--ba-accent-glow);
}

.ba-step-num {
  font-size: 12px;
  opacity: 0.9;
}

.ba-step-txt {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .ba-top-nav {
    padding: 10px 10px 4px;
  }
  .ba-act-nav {
    padding: 4px 6px;
    gap: 4px;
  }
  .ba-act-btn {
    padding: 5px 8px;
    min-width: 28px;
    justify-content: center;
  }
  .ba-step-txt {
    display: none !important;
  }
  .ba-step-num {
    font-size: 12px;
    font-weight: 600;
  }
}

.ba-labels-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.ba-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 7;
}

.ba-leader-line {
  stroke: rgba(237, 230, 218, 0.45);
  stroke-width: 1px;
  fill: none;
}

.ba-leader-dot {
  fill: rgba(237, 230, 218, 0.45);
}

.ba-scene-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(8, 12, 16, 0.88);
  border: 1px solid rgba(237, 230, 218, 0.2);
  border-radius: 8px;
  font-family: 'Azeret Mono', monospace;
  font-size: 13px;
  color: var(--ba-text-main);
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.ba-scene-tag.is-visible {
  opacity: 1;
}

.ba-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ba-accent);
  box-shadow: 0 0 8px var(--ba-accent);
}

.ba-scene-tag[data-ba-style="twin"] {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(6, 20, 24, 0.9);
  color: #CCFBF1;
  font-weight: 600;
}

.ba-scene-tag[data-ba-style="twin"] .ba-tag-dot {
  background: var(--ba-twin);
  box-shadow: 0 0 10px var(--ba-twin);
}

.ba-scene-tag[data-ba-style="safe"] {
  border-color: rgba(242, 140, 40, 0.45);
  color: #FEF3C7;
}

.ba-scene-tag[data-ba-style="best"] {
  border-color: var(--ba-accent);
  background: rgba(30, 16, 6, 0.92);
  color: var(--ba-accent);
  font-weight: 700;
  box-shadow: 0 0 20px var(--ba-accent-glow);
}

#ba-tag-axis::before {
  content: "↑ ";
  color: var(--ba-text-main);
  font-weight: 700;
}

.ba-chip-ore {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(100, 116, 139, 0.92);
  border: 1px solid rgba(237, 230, 218, 0.3);
  border-radius: 999px;
  font-family: 'Azeret Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #F8FAFC;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 10;
  white-space: nowrap;
}

.ba-chip-ore.is-visible {
  opacity: 1;
}

.ba-loop-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: 'Azeret Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--ba-text-main);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.25s ease, color 0.2s ease;
}

.ba-loop-node::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ba-text-muted);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ba-loop-node.is-visible {
  opacity: 1;
}

.ba-loop-node.is-hot {
  color: var(--ba-accent);
}

.ba-loop-node.is-hot::before {
  background: var(--ba-accent);
  box-shadow: 0 0 8px var(--ba-accent-glow);
}

@media (max-width: 600px) {
  .ba-scene-tag {
    padding: 4px 10px;
    font-size: 12px;
  }
  .ba-loop-node {
    padding: 0;
    font-size: 12px;
  }
}

.ba-duel-overlay {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  box-sizing: border-box;
}

.ba-duel-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ba-duel-cards-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 920px;
  gap: 20px;
  box-sizing: border-box;
}

.ba-duel-card {
  background: var(--ba-surface);
  border: 1px solid var(--ba-surface-border);
  border-radius: 14px;
  padding: 14px 18px;
  flex: 1;
  min-width: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

@media (min-width: 601px) {
  .ba-duel-overlay {
    inset: 0;
    top: 0;
    height: 100%;
    padding: 0;
  }
  .ba-duel-cards-row {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
  }
  .ba-duel-card {
    position: absolute;
    width: 240px;
    flex: none;
  }
  .ba-duel-disclaimer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    white-space: nowrap;
  }
}

.ba-duel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ba-duel-title {
  font-family: 'Azeret Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ba-duel-title[data-ba-mode="fixed"] {
  color: #94A3B8;
}

.ba-duel-title[data-ba-mode="ap"] {
  color: var(--ba-accent);
}

.ba-duel-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(237, 230, 218, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
  display: flex;
  position: relative;
}

.ba-duel-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.ba-duel-bar[data-ba-mode="fixed"] {
  background: #94A3B8;
  width: 74%;
}

.ba-duel-bar-base {
  height: 100%;
  background: #EDE6DA;
  border-radius: 999px 0 0 999px;
  transition: width 0.3s ease;
}

.ba-duel-bar-extra {
  height: 100%;
  background: var(--ba-accent);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 10px var(--ba-accent-glow);
  transition: width 0.3s ease;
}

.ba-duel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ba-duel-label {
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ba-text-main);
  text-transform: uppercase;
}

.ba-duel-disclaimer {
  width: 100%;
  text-align: center;
  margin-top: 2px;
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  color: rgba(237, 230, 218, 0.55);
}

@media (max-width: 600px) {
  .ba-duel-overlay {
    top: 52px;
    padding: 0 8px;
    gap: 4px;
  }
  .ba-duel-cards-row {
    flex-direction: column;
    gap: 8px;
  }
  .ba-duel-card {
    padding: 8px 10px;
    border-radius: 10px;
  }
  .ba-duel-title {
    font-size: 12px;
  }
  .ba-duel-bar-wrap {
    height: 6px;
    margin-bottom: 4px;
  }
  .ba-duel-label {
    font-size: 12px;
  }
  .ba-duel-disclaimer {
    font-size: 12px;
    line-height: 1.2;
  }
}

.ba-hud-layer {
  position: relative;
  z-index: 12;
  width: 100%;
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .ba-stage[data-ba-beat="5a"] .ba-hud-layer,
  .ba-stage[data-ba-beat="5c"] .ba-hud-layer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.ba-hud-content-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
}

@media (max-width: 900px) {
  .ba-hud-content-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.ba-act-card {
  pointer-events: auto;
  background: var(--ba-surface);
  border: 1px solid var(--ba-surface-border);
  border-radius: 14px;
  padding: 20px 24px;
  max-width: min(480px, 34%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.3s ease;
}

.ba-act-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ba-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ba-act-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ba-text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ba-act-phrase {
  font-size: 15px;
  line-height: 1.48;
  color: rgba(237, 230, 218, 0.88);
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.ba-act-extra {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(237, 230, 218, 0.72);
  margin-top: 8px;
}

.ba-evidence-card {
  pointer-events: auto;
  background: var(--ba-surface);
  border: 1px solid rgba(242, 140, 40, 0.55);
  border-radius: 14px;
  padding: 16px 20px;
  max-width: min(440px, 32%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease;
}

.ba-evidence-card.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ba-evidence-lead {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--ba-accent);
  margin-bottom: 6px;
  line-height: 1.05;
  text-transform: uppercase;
}

.ba-evidence-text {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(237, 230, 218, 0.9);
  margin-bottom: 14px;
}

.ba-evidence-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Azeret Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ba-accent);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid rgba(242, 140, 40, 0.5);
  border-radius: 999px;
  background: rgba(242, 140, 40, 0.12);
  transition: all 0.2s ease;
}

.ba-evidence-link:hover {
  background: rgba(242, 140, 40, 0.25);
  border-color: var(--ba-accent);
}

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

.ba-gauge {
  margin-left: auto;
  pointer-events: auto;
  background: var(--ba-surface);
  border: 1px solid var(--ba-surface-border);
  border-radius: 14px;
  padding: 14px 18px;
  width: 240px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (min-width: 601px) {
  .ba-gauge {
    position: absolute;
    width: 240px;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .ba-gauge.is-visible {
    opacity: 1;
  }
  .ba-gauge-track {
    height: 10px;
  }
}

.ba-gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ba-gauge-name {
  font-family: 'Azeret Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ba-text-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ba-gauge-track {
  width: 100%;
  height: 8px;
  background: rgba(237, 230, 218, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
  display: flex;
  position: relative;
}

.ba-gauge-gap {
  position: absolute;
  top: 0;
  height: 100%;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.ba-gauge-gap.is-visible {
  opacity: 1;
}

.ba-gauge-fill-base {
  height: 100%;
  background: #EDE6DA;
  border-radius: 999px 0 0 999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ba-gauge-fill-extra {
  height: 100%;
  background: #F28C28;
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 10px var(--ba-accent-glow);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ba-gauge-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.ba-gauge-sub-fixed,
.ba-gauge-sub-ap {
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.ba-gauge-sub-fixed {
  color: var(--ba-text-muted);
}

.ba-gauge-sub-ap {
  color: var(--ba-accent);
  display: none;
}

.ba-gauge-sub-ap.is-visible {
  display: inline;
}

.ba-sim-badge {
  display: block;
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  color: rgba(237, 230, 218, 0.48);
  letter-spacing: 0.02em;
}

.ba-controls-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 18px;
  background: var(--ba-surface);
  border: 1px solid var(--ba-surface-border);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  max-width: 100%;
  box-sizing: border-box;
}

.ba-ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ba-ctrl-label {
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--ba-text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ba-btn-group {
  display: inline-flex;
  background: rgba(237, 230, 218, 0.06);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(237, 230, 218, 0.1);
}

.ba-ctrl-btn {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ba-text-muted);
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: pan-y;
}

.ba-ctrl-btn:hover {
  color: var(--ba-text-main);
  background: rgba(237, 230, 218, 0.08);
}

.ba-ctrl-btn:focus-visible {
  outline: 2px solid var(--ba-accent);
  outline-offset: 2px;
}

.ba-ctrl-btn.ba-active {
  background: var(--ba-accent);
  color: #020405;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--ba-accent-glow);
}

.ba-ctrl-btn.is-pulsing {
  animation: ba-btn-glow 1.2s infinite ease-in-out;
}

@keyframes ba-btn-glow {
  0%, 100% { box-shadow: 0 0 6px var(--ba-accent-glow); }
  50% { box-shadow: 0 0 16px var(--ba-accent); }
}

.ba-ctrl-group[hidden] {
  display: none !important;
}

.ba-ctrl-group:not([hidden]) ~ .ba-ctrl-group:not([hidden]) {
  border-left: 1px solid rgba(237, 230, 218, 0.15);
  padding-left: 12px;
}

.ba-bar-pulse-2x {
  animation: ba-pulse-extra 0.4s ease-in-out 2;
}

@keyframes ba-pulse-extra {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.8); box-shadow: 0 0 16px var(--ba-accent); }
}

.ba-act-phrase.is-faded {
  opacity: 0 !important;
  pointer-events: none;
}

.ba-btn-operator {
  border: 1px solid rgba(237, 230, 218, 0.24);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ba-text-main);
  background: rgba(237, 230, 218, 0.06);
  cursor: pointer;
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  touch-action: pan-y;
}

.ba-btn-operator:hover {
  border-color: var(--ba-accent);
  background: rgba(242, 140, 40, 0.15);
  color: var(--ba-accent);
}

.ba-btn-operator:focus-visible {
  outline: 2px solid var(--ba-accent);
  outline-offset: 2px;
}

.ba-btn-operator[aria-pressed="true"] {
  border-color: var(--ba-accent);
  background: rgba(242, 140, 40, 0.2);
  color: var(--ba-accent);
}

.ba-operator-hint {
  font-size: 12px;
  color: rgba(237, 230, 218, 0.55);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .ba-operator-hint {
    display: none;
  }
}

@media (max-width: 600px) {
  .ba-hud-layer {
    padding: 0 10px 10px;
    gap: 8px;
  }

  .ba-hud-content-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ba-act-card {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 100%;
  }

  .ba-act-badge {
    display: none !important;
  }

  .ba-act-title {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .ba-act-phrase {
    font-size: 15px;
    line-height: 1.35;
  }

  .ba-act-extra {
    display: none !important;
  }

  .ba-evidence-card {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 100%;
  }

  .ba-evidence-lead {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .ba-evidence-text {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .ba-evidence-link {
    font-size: 12px;
    padding: 6px 12px;
  }

  .ba-gauge {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    opacity: 1;
  }

  .ba-gauge-header {
    margin-bottom: 4px;
  }

  .ba-gauge-name {
    font-size: 12px;
  }

  .ba-gauge-track {
    height: 6px;
    margin-bottom: 4px;
  }

  .ba-controls-bar {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ba-ctrl-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .ba-ctrl-label {
    display: inline-block !important;
    font-size: 12px;
  }


  .ba-btn-group {
    display: inline-flex;
    padding: 2px;
    border-radius: 999px;
    background: rgba(237, 230, 218, 0.08);
  }

  .ba-ctrl-btn {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .ba-btn-operator {
    width: 100%;
    max-width: none;
    font-size: 12px;
    padding: 8px 12px;
    line-height: 1.2;
    text-align: center;
    border-radius: 999px;
  }

  .ba-operator-hint {
    display: block !important;
    font-size: 12px;
    text-align: center;
    margin-top: 2px;
    white-space: normal; 
  }
}

@media (prefers-reduced-motion: reduce) {
  .ba-track {
    height: auto !important;
  }
  .ba-stage {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
  }
  .ba-canvas,
  #ba-act-card,
  .ba-top-nav,
  #ba-duel-overlay,
  #ba-chip-ore,
  .ba-labels-layer,
  .ba-gauge,
  .ba-scroll-hint,
  .ba-vignette,
  .ba-hud-layer {
    display: none !important;
  }
  .ba-reduced-motion-panel {
    display: block !important;
  }
}

.ba-reduced-motion-panel {
  display: none;
  width: 100%;
  padding: 32px 24px 64px;
  box-sizing: border-box;
}

.ba-rm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .ba-rm-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .ba-rm-card-act5 {
    grid-column: span 2 !important;
  }
  .ba-rm-evidence {
    grid-column: span 2 !important;
  }
}

.ba-rm-card {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  background: var(--ba-surface) !important;
  border: 1px solid var(--ba-surface-border) !important;
  border-radius: 14px !important;
  padding: 22px !important;
  max-width: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-sizing: border-box !important;
}

.ba-rm-step {
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  color: var(--ba-accent);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ba-rm-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--ba-text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
  line-height: 1.1;
}

.ba-rm-desc {
  font-size: 15px;
  color: var(--ba-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.ba-rm-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #020405;
  display: block;
}

.ba-rm-evidence {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-self: stretch !important;
  height: 100% !important;
  min-height: 100% !important;
  text-align: left !important;
  position: relative !important;
  background: var(--ba-surface) !important;
  border: 1px solid rgba(242, 140, 40, 0.55) !important;
  border-radius: 14px !important;
  padding: 24px !important;
  opacity: 1 !important;
  transform: none !important;
  max-width: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-sizing: border-box !important;
}

.ba-rm-evidence .ba-evidence-lead {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--ba-accent);
  line-height: 1.05;
  margin-top: auto !important;
  margin-bottom: 8px !important;
}

.ba-rm-evidence .ba-evidence-text {
  font-size: 14px;
  color: var(--ba-text-muted);
  line-height: 1.45;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.ba-rm-evidence .ba-evidence-link {
  font-family: 'Azeret Mono', monospace;
  font-size: 12px;
  color: var(--ba-text-main);
  text-decoration: underline;
  display: inline-block;
  pointer-events: auto;
  margin-top: 0 !important;
  margin-bottom: auto !important;
}

.ba-rm-card-act5 .ba-controls-bar {
  display: flex !important;
  position: static !important;
  pointer-events: auto !important;
  margin-top: 20px !important;
  padding: 16px 0 0 !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--ba-surface-border) !important;
  box-shadow: none !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.ba-rm-card-act5 .ba-ctrl-group {
  display: flex !important;
}

.ba-rm-card-act5 .ba-operator-hint {
  display: block !important;
}

@media (min-width: 601px) {
  .ba-act-extra { display: none !important; }
}
