/* ai-pacing-toast.css — AI decision toast (issue #356 pacing arch).
 *
 * Mounts inside #banner-toasts (flex column child of #phase-header) so
 * the toast flows naturally beneath the phase pill — no absolute
 * positioning, no pixel measurements. Faction accent driven by
 * --toast-accent CSS var, set per-event by the presenter from
 * `--faction-a` / `--faction-b`.
 */

#ai-pacing-toast {
  /* active-faction: default until presenter sets --toast-accent per-event */
  --toast-accent: var(--active-faction, #4cc7e6);
  align-self: center;
  margin-top: 8px;
  transform: translateY(-8px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  min-width: 280px;
  max-width: 560px;
  background: linear-gradient(180deg,
    rgba(10, 14, 20, 0.96) 0%,
    rgba(16, 22, 30, 0.96) 100%);
  border: 1px solid color-mix(in srgb, var(--toast-accent) 38%, transparent);
  border-left: 4px solid color-mix(in srgb, var(--toast-accent) 92%, transparent);
  border-radius: 4px;
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.7),
    0 0 24px color-mix(in srgb, var(--toast-accent) 18%, transparent),
    inset 0 0 24px color-mix(in srgb, var(--toast-accent) 6%, transparent);
  color: #f4ecd0;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}
#ai-pacing-toast.hidden { display: none; }
#ai-pacing-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
#ai-pacing-toast.click-to-advance {
  pointer-events: auto;
  cursor: pointer;
}

/* Column wrapper so the optional weapon line stacks BELOW the primary
   "Attacker -> Target" line. The outer toast is a flex row (with the
   AI tag + this body); inside, the body itself is a flex column. */
#ai-pacing-toast .ai-pacing-toast-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 auto;
}

#ai-pacing-toast .ai-pacing-toast-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 22px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--toast-accent) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--toast-accent) 70%, transparent);
  border-radius: 3px;
  font-family: 'Anton', 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--toast-accent) 95%, white 5%);
}

#ai-pacing-toast .ai-pacing-toast-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Weapon name on a second line, smaller + muted so the primary
   "Attacker → Target" stays the focal point. */
#ai-pacing-toast .ai-pacing-toast-weapon {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: color-mix(in srgb, #f4ecd0 60%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
