/* ══════════════════════════════════════════════════════════════
   Component — Stratagem Modal
   Merged from shared/stratagem-ui.css (wins) + v0.4/style.css fallbacks
══════════════════════════════════════════════════════════════ */

#modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-toast);
  backdrop-filter: blur(5px);
}
#modal-bg.open { display: flex; }

#strat-modal {
  width: min(400px, calc(100vw - 40px));
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(10,16,22,.985), rgba(8,12,18,.995));
  border: 1px solid color-mix(in srgb, var(--faction-a) 16%, transparent);
  border-top: 2px solid var(--strat);
  box-shadow: 0 16px 44px rgba(0,0,0,.48), 0 0 0 1px rgba(204,136,0,.05) inset;
}

.modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--faction-a) 8%, transparent);
  background: linear-gradient(180deg, rgba(204,136,0,.08), rgba(204,136,0,.03));
}
.modal-title {
  font: 700 11px/1 'Rajdhani', sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--strat);
}
.modal-x {
  appearance: none;
  border: 0;
  background: none;
  color: rgba(224,232,240,.44);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}
.modal-x:hover { color: var(--text-primary); transform: scale(1.05); }

.strat-list { overflow-y: auto; }
.strat-item {
  padding: 10px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--faction-a) 4%, transparent);
  cursor: pointer;
  transition: background .15s ease;
}
.strat-item:hover { background: color-mix(in srgb, var(--faction-a) 3%, transparent); }
.strat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.strat-name {
  flex: 1;
  color: var(--text-primary);
  font: 700 12px/1 'Rajdhani', sans-serif;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.strat-cp {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(204,32,32,.14);
  border: 1px solid rgba(204,32,32,.22);
  color: #ff8f8f;
  font: 700 10px/1 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.strat-timing {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(204,136,0,.12);
  border: 1px solid rgba(204,136,0,.2);
  color: var(--strat);
  font: 700 9px/1 'Rajdhani', sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.strat-desc {
  color: var(--text-sec);
  font: 500 11px/1.4 'Rajdhani', sans-serif;
}
