/* === Card Component === */
.atr26-card {
  background: #1a1a2e;
  border: 2px solid #808080;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.atr26-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.atr26-card-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.atr26-card-icon img {
  max-width: 80px;
  max-height: 80px;
}

.atr26-card-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.atr26-card-desc {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.5rem;
}

.atr26-card-damage {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #ff6b6b;
}

/* === Rarity Colors === */
.atr26-card-rarity,
.rarity-common {
  color: #9e9e9e;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.rarity-rare {
  color: #42a5f5;
}

.rarity-epic {
  color: #ab47bc;
}

.rarity-legendary {
  color: #ffa726;
}

.atr26-card-damage-type {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
}

/* === Card Selection Modal === */

#atr26-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.28s ease;
}

#atr26-modal-overlay.closing {
  opacity: 0;
}

.atr26-modal {
  background: #1e2130;
  border: 1px solid #2e3350;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 680px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
  color: #e8eaf6;
}

.atr26-modal-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: #c5c8f5;
}

.atr26-modal-subtitle {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: #7880a8;
}

/* === Weapon Cards === */

.atr26-weapon-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.atr26-weapon-card {
  flex: 1 1 200px;
  max-width: 260px;
  background: #252b40;
  border: 3px solid #808080;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
  animation: cardReveal 0.5s ease-out both;
}

.atr26-card-a { animation-delay: 0.15s; }
.atr26-card-b { animation-delay: 0.35s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.atr26-weapon-card:focus-visible {
  outline: 2px solid #7c85f0;
  outline-offset: 2px;
}

.atr26-weapon-card:hover:not(.dimmed) {
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.atr26-weapon-card.selected {
  box-shadow: 0 0 0 3px rgba(124, 133, 240, 0.35);
  transform: translateY(-4px);
}

.atr26-weapon-card.dimmed {
  opacity: 0.3;
  transform: none;
  pointer-events: none;
}

.atr26-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1f32;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atr26-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.atr26-card-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #343b58;
}

.atr26-card-body {
  padding: 0.9rem 1rem 1rem;
}

/* === Claim Button === */

.atr26-claim-btn {
  background: #5c67e0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 2.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, opacity 0.14s ease;
}

.atr26-claim-btn:hover:not(:disabled) {
  background: #7c85f0;
}

.atr26-claim-btn:focus-visible {
  outline: 2px solid #7c85f0;
  outline-offset: 3px;
}

.atr26-claim-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === Hint Reveal === */

.atr26-hint-reveal {
  color: #e8eaf6;
  animation: cardReveal 0.4s ease-out;
}

.atr26-hint-content {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 1.05rem;
  margin: 1rem 0 1.5rem;
  color: #e0e0e0;
  text-align: left;
}

/* === Inventory Grid === */
.atr26-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* === Loadout === */
.atr26-loadout-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .atr26-loadout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.atr26-loadout-slot {
  background: #1a1a2e;
  border: 2px dashed #444;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.atr26-loadout-slot:hover {
  border-color: #666;
  background: #1f1f3a;
}

.atr26-loadout-slot-filled {
  border-style: solid;
  border-color: #42a5f5;
}

.atr26-slot-number {
  font-weight: 700;
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.atr26-slot-empty-label {
  font-size: 0.85rem;
}

/* === Inventory Sidebar === */
.atr26-inventory-sidebar {
  max-height: 400px;
  overflow-y: auto;
}

.atr26-sidebar-weapon {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.atr26-sidebar-weapon:hover {
  background: #1f1f3a;
}

/* === Hints === */
.atr26-hints-list {
  max-height: 300px;
  overflow-y: auto;
}

.atr26-hint-card {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.atr26-hint-card p {
  margin: 0;
  color: #ccc;
  font-size: 0.9rem;
}
