/* v5.22 — Tactical Override Buttons styles */

.vfl-tactics-bar {
  position: fixed;
  bottom: 92px; /* above the dock */
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  display: none;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(8, 14, 20, 0.92);
  border: 1px solid rgba(255, 210, 63, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  z-index: 70;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.vfl-tactics-bar.show {
  display: flex;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.vfl-tac-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1a232e 0%, #0f1620 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #d8dce4;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-transform: uppercase;
}
.vfl-tac-btn:hover {
  background: linear-gradient(180deg, #232f3d 0%, #131d29 100%);
  border-color: rgba(255, 210, 63, 0.4);
  transform: translateY(-1px);
}
.vfl-tac-btn .tac-ico {
  font-size: 16px;
  margin-bottom: 2px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.vfl-tac-btn .tac-lbl {
  white-space: nowrap;
  font-size: 9px;
  color: #ffd23f;
}
.vfl-tac-btn .tac-cd {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Active state — pulsing gold */
.vfl-tac-btn.active {
  background: linear-gradient(180deg, #ffd23f 0%, #c69a15 100%);
  color: #0a0f14;
  border-color: #ffd23f;
  box-shadow: 0 0 0 2px rgba(255, 210, 63, 0.4), 0 0 16px rgba(255, 210, 63, 0.55);
  animation: tac-pulse 1.6s ease-in-out infinite;
}
.vfl-tac-btn.active .tac-lbl,
.vfl-tac-btn.active .tac-cd {
  color: #0a0f14;
}
@keyframes tac-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 210, 63, 0.4), 0 0 16px rgba(255, 210, 63, 0.55); }
  50%      { box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.5), 0 0 28px rgba(255, 210, 63, 0.85); }
}

/* Cooldown state — greyed */
.vfl-tac-btn.cooldown {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.vfl-tac-btn.cooldown:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #1a232e 0%, #0f1620 100%);
}

/* Mobile: shrink and stay above dock */
@media (max-width: 720px) {
  .vfl-tactics-bar {
    bottom: 78px;
    gap: 5px;
    padding: 6px 8px;
  }
  .vfl-tac-btn {
    min-width: 70px;
    padding: 6px 8px;
  }
  .vfl-tac-btn .tac-ico { font-size: 14px; }
  .vfl-tac-btn .tac-lbl { font-size: 8px; }
}
