.kingdom-gm-loadout-chooser {
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid rgba(220, 178, 72, .34);
  background: linear-gradient(135deg, rgba(24, 13, 38, .94), rgba(7, 8, 14, .92));
  box-shadow: inset 0 0 24px rgba(122, 51, 177, .08);
}

.kingdom-gm-loadout-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.kingdom-gm-loadout-heading strong {
  color: #f2d47d;
  letter-spacing: .12em;
}

.kingdom-gm-loadout-heading span {
  color: rgba(232, 220, 195, .68);
  font-size: 11px;
}

.kingdom-gm-loadout-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.kingdom-gm-loadout-options button {
  min-height: 58px;
  border: 1px solid rgba(205, 166, 72, .38);
  background: rgba(7, 8, 14, .76);
  color: #e8d9b2;
  cursor: pointer;
  transition: .18s ease;
}

.kingdom-gm-loadout-options button b,
.kingdom-gm-loadout-options button small { display: block; }
.kingdom-gm-loadout-options button b { font-size: 16px; }
.kingdom-gm-loadout-options button small { margin-top: 3px; color: #a97bd1; }
.kingdom-gm-loadout-options button:hover:not(:disabled) { transform: translateY(-1px); border-color: #e7bd58; }
.kingdom-gm-loadout-options button.is-active {
  border-color: #f0c35a;
  background: linear-gradient(135deg, rgba(86, 24, 124, .88), rgba(33, 13, 50, .96));
  box-shadow: 0 0 18px rgba(154, 64, 218, .26), inset 0 0 15px rgba(228, 181, 72, .08);
}
.kingdom-gm-loadout-options button:disabled { opacity: .48; cursor: not-allowed; }

.kingdom-gm-persist-status {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 3px solid #b984d8;
  background: rgba(44, 18, 59, .48);
  color: #dac8e6;
  font-size: 11px;
}
.kingdom-gm-persist-status[data-type="success"] { border-left-color: #d8b54c; color: #f1d98b; }
.kingdom-gm-persist-status[data-type="error"] { border-left-color: #d96a6a; color: #f2b0b0; }
.kingdom-gm-persist-status[data-type="info"] { border-left-color: #9e6bd6; }

.kingdom-npc-gm-management {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 174, 68, .52);
  background:
    radial-gradient(circle at 85% 0%, rgba(130, 47, 184, .22), transparent 38%),
    linear-gradient(145deg, rgba(16, 12, 27, .98), rgba(7, 12, 22, .98));
  box-shadow: inset 0 0 28px rgba(128, 56, 174, .09), 0 8px 24px rgba(0, 0, 0, .18);
}

.kingdom-npc-gm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.kingdom-npc-gm-head h3 { margin: 2px 0 5px; color: #f0d17a; }
.kingdom-npc-gm-head p:last-child { margin: 0; color: rgba(238, 229, 207, .72); font-size: 12px; }
.kingdom-npc-gm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid #d5ad4d;
  background: linear-gradient(135deg, #4f176b, #180a27);
  color: #f6da7c;
  font-weight: 900;
  letter-spacing: .1em;
}

.kingdom-npc-gm-warning {
  margin: 8px 0 12px;
  padding: 9px 11px;
  border-left: 3px solid #d9a64d;
  background: rgba(92, 58, 13, .16);
  color: #ead49e;
  font-size: 12px;
}

.kingdom-npc-gm-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.kingdom-npc-gm-fields .field small {
  display: block;
  margin-top: 4px;
  color: rgba(224, 214, 191, .58);
  font-size: 10px;
  line-height: 1.45;
}
.kingdom-npc-gm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .kingdom-gm-loadout-heading { display: block; }
  .kingdom-gm-loadout-heading span { display: block; margin-top: 4px; }
  .kingdom-gm-loadout-options { grid-template-columns: 1fr; }
  .kingdom-npc-gm-fields { grid-template-columns: 1fr; }
  .kingdom-npc-gm-actions .btn { flex: 1 1 100%; }
}
