/* Shared 2D/3D support trigger. Compact enough to protect the artwork,
   tangible enough to read as the campaign's primary action. */
.support-control {
  --trigger-orange: #f58200;
  --trigger-paper: #eeeae0;
  position: relative;
  width: min(286px, 100%);
  max-width: 286px;
  justify-self: center;
  align-self: center;
  text-align: center;
}

#supportButton {
  position: relative;
  display: block;
  width: 100%;
  min-height: 66px;
  padding: 0 12px;
  border: 1px solid #f582008f;
  border-radius: 0;
  background: linear-gradient(180deg, #1c1f1eeb, #0e100ff2);
  color: var(--trigger-paper);
  text-align: left;
  isolation: isolate;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  box-shadow: inset 0 0 0 1px #ffffff0a, 0 8px 22px #0007;
  transition: border-color .18s, background .18s, transform .12s;
}

#supportButton::before {
  content: 'COVERING FIRE';
  position: absolute;
  left: 39px;
  top: 9px;
  color: #8f948e;
  font: 400 7px/1 Free, sans-serif;
  letter-spacing: .17em;
}

#supportButton::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 23px, #ffffff08 23px 24px);
  mask-image: linear-gradient(90deg, #000, transparent 65%);
  opacity: .55;
}

#supportButton:hover:not(:disabled) {
  border-color: #ff9f35;
  background: linear-gradient(180deg, #242724f2, #111311f7);
  transform: translateY(-1px);
}

#supportButton:active:not(:disabled) { transform: translateY(1px); }
#supportButton:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

#supportButton:disabled {
  cursor: default;
  border-color: #73776b66;
  background: #151715e8;
  color: #aeb2a9;
  box-shadow: none;
}

#supportButton[data-state='return'] {
  border-color: #f582008f;
  color: var(--trigger-paper);
}

.weapon-visual,
.weapon-meta { display: none !important; }

#supportButton .weapon-action {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 13px 0 5px;
  border: 0;
  color: inherit;
}

#supportButton .weapon-action > b {
  font: 800 20px/1 Free, sans-serif;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.aim-mark {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  color: var(--trigger-orange);
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  transition: transform .18s;
}

.aim-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
  background: #151715;
}

#supportButton .rounds {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  min-width: 68px;
  padding-left: 10px;
  border-left: 1px solid #4b4d47;
  color: var(--trigger-orange);
}

#supportButton .rounds > b {
  font: 400 23px/1 Free, sans-serif;
  letter-spacing: -.04em;
}

#supportButton .rounds > small {
  font: 800 9px/1 Free, sans-serif;
  color: inherit;
}

#supportButton:hover:not(:disabled) .aim-mark { transform: rotate(90deg); }
#supportButton.is-firing { animation: trigger-recoil .16s ease-out; }
#supportButton.is-firing .aim-mark { transform: scale(1.25) rotate(90deg); }
#supportButton:disabled .aim-mark,
#supportButton:disabled .rounds { color: #969b93; }
#supportButton[data-state='complete']::before { content: 'MISSION COMPLETE'; color: #8e938b; }
#supportButton[data-state='complete'] #actionLabel { font-size: 18px; }

#actionBenefit {
  display: block;
  margin-top: 6px;
  color: #aeb3ab;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .02em;
}

#supportNote {
  display: none;
  margin: 5px 0 0;
  color: #d9bba0;
  font-size: 9px;
  line-height: 1.3;
}

.support-control:has(#supportButton[data-state='error']) #supportNote { display: block; }

@keyframes trigger-recoil {
  0% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  #supportButton,
  .aim-mark { transition: none !important; animation: none !important; }
}

@media (max-width: 720px) {
  .support-control { max-width: 270px; }
  #supportButton { min-height: 62px; }
  #supportButton .weapon-action { height: 60px; }
  #supportButton .weapon-action > b { font-size: 19px; }
  #supportButton .rounds > b { font-size: 21px; }
}
