/* Custom game HUD extensions */
.weapon-hud-inline {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.weapon-slot {
  padding: 6px 12px;
  border: 1px solid #4a5568;
  background: #1a202c;
  border-radius: 4px;
  cursor: pointer;
  color: #cbd5e0;
  font-size: 13px;
}
.weapon-slot.active {
  border-color: #ecc94b;
  background: #2d3748;
  color: #ecc94b;
  font-weight: bold;
}
.action-btn-large {
  background: #e53e3e !important;
  color: #fff !important;
  font-weight: bold;
}
.action-btn-build {
  background: #3182ce !important;
  color: #fff !important;
  font-weight: bold;
}
.alert-banner-float {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(197, 48, 48, 0.95);
  border: 2px solid #fc8181;
  border-radius: 8px;
  padding: 10px 24px;
  color: #fff;
  font-weight: bold;
  z-index: 99;
  box-shadow: 0 0 20px rgba(229, 62, 62, 0.8);
  pointer-events: none;
}
.mission-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(26, 32, 44, 0.95);
  border: 1px solid #4a5568;
  border-radius: 8px;
  padding: 6px 14px;
  margin: 4px 6px;
  font-size: 12px;
  color: #e2e8f0;
}
.mission-info {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mission-info span {
  color: #ecc94b;
  font-weight: bold;
}
.mission-track {
  flex: 1;
  max-width: 220px;
  height: 8px;
  background: #2d3748;
  border-radius: 4px;
  overflow: hidden;
}
.mission-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ecc94b, #48bb78);
  transition: width 0.3s ease;
}
.mission-reward {
  font-size: 11px;
  color: #cbd5e0;
}

/* Weapon Assembly Modal & Arsenal Slots */
.weapon-slots-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}
.weapon-slot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #1a202c;
  border: 1px solid #4a5568;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.weapon-slot-card:hover:not(.locked) {
  border-color: #63b3ed;
  background: #2d3748;
}
.weapon-slot-card.active {
  background: #2b6cb0 !important;
  border-color: #bee3f8 !important;
  color: #fff;
}
.weapon-slot-card.locked {
  opacity: 0.55;
  background: #171923;
  border-style: dashed;
  cursor: pointer;
}
.weapon-name-tag {
  font-weight: bold;
  font-size: 13px;
}
.weapon-ammo-count {
  font-size: 12px;
  color: #ecc94b;
  font-family: monospace;
  font-weight: bold;
}
.ammo-pouch-box {
  margin-top: 8px;
  padding: 8px 10px;
  background: #171923;
  border-radius: 6px;
  border: 1px solid #2d3748;
}
.ammo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.ammo-tag {
  background: #2d3748;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: #68d391;
  font-weight: bold;
}

/* Modal Overlay */
.craft-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.craft-modal.hidden {
  display: none;
}
.craft-modal-content {
  background: #1a202c;
  border: 2px solid #4a5568;
  border-radius: 12px;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  overflow: hidden;
  color: #e2e8f0;
}
.craft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #2d3748;
  border-bottom: 1px solid #4a5568;
}
.craft-header h2 { margin: 0; font-size: 18px; color: #fff; }
.close-btn {
  background: none;
  border: none;
  color: #a0aec0;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}
.close-btn:hover { color: #fff; }
.craft-stash-bar {
  display: flex;
  gap: 16px;
  padding: 8px 20px;
  background: #232d3d;
  font-size: 12px;
  border-bottom: 1px solid #374151;
  align-items: center;
}
.craft-stash-bar b { color: #68d391; }
.craft-tabs {
  display: flex;
  background: #171923;
  border-bottom: 1px solid #2d3748;
}
.tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: #a0aec0;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tab-btn.active {
  color: #63b3ed;
  border-bottom-color: #63b3ed;
  background: #1a202c;
}
.craft-grid {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.craft-grid.hidden { display: none; }
.craft-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}
.craft-card:hover {
  border-color: #68d391;
}
.craft-card-info h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: #fff;
}
.craft-card-info p {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: #a0aec0;
}
.craft-card-meta {
  font-size: 11px;
  color: #ecc94b;
}
.craft-cost {
  font-size: 11px;
  color: #e2e8f0;
  margin-top: 4px;
}
.craft-cost b { color: #fed7d7; }
.craft-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: bold;
  background: #3182ce;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.craft-btn:hover:not(:disabled) {
  background: #2b6cb0;
}
.craft-btn:disabled {
  background: #4a5568;
  color: #a0aec0;
  cursor: not-allowed;
}
.craft-btn.assembled {
  background: #2f855a;
  cursor: default;
}
.cycle-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}
.cycle-pill.day {
  background: rgba(236, 201, 75, 0.2);
  color: #ecc94b;
  border: 1px solid #d69e2e;
}
.cycle-pill.night {
  background: rgba(229, 62, 62, 0.25);
  color: #fc8181;
  border: 1px solid #e53e3e;
  animation: pulseNight 1.5s infinite;
}
@keyframes pulseNight {
  0%, 100% { box-shadow: 0 0 4px rgba(229, 62, 62, 0.4); }
  50% { box-shadow: 0 0 12px rgba(229, 62, 62, 0.8); }
}
.btn-skip-cycle {
  background: #c53030;
  color: #fff;
  border: 1px solid #fc8181;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-skip-cycle:hover {
  background: #e53e3e;
  transform: scale(1.04);
}
.btn-skip-cycle.day-mode {
  background: #2b6cb0;
  border-color: #63b3ed;
}
.btn-skip-cycle.day-mode:hover {
  background: #3182ce;
}
.base-lvl-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #ecc94b;
  color: #fef08a;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}
.weapon-level-tag {
  font-size: 11px;
  color: #ecc94b;
  font-weight: bold;
}
.btn-upgrade-weapon {
  padding: 6px 12px;
  background: #b7791f;
  border: 1px solid #ecc94b;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-upgrade-weapon:hover:not(:disabled) {
  background: #d69e2e;
}
.btn-upgrade-weapon:disabled {
  background: #4a5568;
  border-color: #718096;
  color: #a0aec0;
  cursor: not-allowed;
}
