.artifacts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  background-color: rgba(24, 23, 29, 0.6);
  border-radius: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(38, 35, 45, 0.8);
}

.filter-label {
  color: #817193;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-right: 0.2rem;
}

.filter-btn {
  background: rgba(24, 23, 30, 0.4);
  color: #a99bbd;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  border: none;
  outline: none;
  font-family: inherit;
}

.filter-btn.active {
  background: rgba(109, 91, 136, 0.7);
  color: #f2ebff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 200, 230, 0.5);
}

.filter-btn:active {
  background: rgba(109, 91, 136, 0.9);
}

.altar-section {
  background-color: rgba(15, 14, 20, 0.7);
  border-radius: 1.2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(135, 100, 163, 0.4);
}

.altar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #d4c8e6;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.altar-seals {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.altar-seal {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(30, 28, 40, 0.8);
  border: 2px solid rgba(60, 50, 80, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #4a3d5c;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.altar-seal.active {
  border-color: var(--accent-light);
  color: #d4c8e6;
  box-shadow: 0 0 10px rgba(180, 150, 220, 0.3);
  cursor: default;
}

.altar-seal:not(.active):not(.locked):active {
  border-color: var(--border-accent);
  color: #9d91af;
}

.altar-seal.locked {
  border-color: rgba(40, 35, 50, 0.4);
  color: #2a2435;
  cursor: not-allowed;
}

.altar-timer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.altar-ready {
  color: var(--accent-light);
  font-weight: 600;
  font-style: normal;
}

.altar-reward {
  text-align: center;
  margin-top: 0.8rem;
  padding: 0.6rem;
  background-color: rgba(109, 91, 136, 0.2);
  border-radius: 1rem;
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(135, 100, 163, 0.3);
  cursor: pointer;
}

.altar-reward:active {
  background-color: rgba(109, 91, 136, 0.4);
}

.artifacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.artifact-card {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(36, 33, 41, 0.6);
  cursor: pointer;
}

.artifact-card.selected {
  border-color: var(--accent-light);
  box-shadow: 0 0 8px rgba(180, 150, 220, 0.2);
}

.artifact-card:active {
  border-color: rgba(109, 91, 136, 0.7);
}

.artifact-image {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  object-fit: cover;
  background-color: #2a2435;
  flex-shrink: 0;
  border: 1px solid rgba(60, 50, 80, 0.4);
}

.artifact-info {
  flex: 1;
  min-width: 0;
}

.artifact-slot-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.artifact-stars {
  color: var(--star-gold);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.artifact-main-stat {
  font-size: 0.9rem;
  color: var(--accent-light);
  font-weight: 600;
}

.artifact-sub-stats {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.equip-button {
  display: block;
  width: 100%;
  padding: 0.7rem;
  background: rgba(109, 91, 136, 0.6);
  color: #f2ebff;
  border: 1px solid rgba(180, 150, 220, 0.5);
  border-radius: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  letter-spacing: 0.5px;
}

.equip-button:disabled {
  background: rgba(40, 35, 50, 0.4);
  color: #4a3d5c;
  border-color: rgba(40, 35, 50, 0.4);
  cursor: not-allowed;
}

.equip-button:not(:disabled):active {
  background: rgba(109, 91, 136, 0.9);
}

.empty-message {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 550px) {
  .filter-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
  }
  .altar-seal {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

.compare-columns {
  display: flex;
  gap: 0.6rem;
}

.compare-column {
  flex: 1;
  min-width: 0;
}

.compare-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.compare-card {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0.8rem;
  padding: 0.6rem;
  border: 1px solid rgba(36, 33, 41, 0.6);
  text-align: center;
}

.compare-card.selected {
  border-color: var(--accent-light);
  box-shadow: 0 0 8px rgba(180, 150, 220, 0.2);
}

.compare-image {
  width: 40px;
  height: 40px;
  border-radius: 0.4rem;
  object-fit: cover;
  background-color: #2a2435;
  margin-bottom: 0.3rem;
  border: 1px solid rgba(60, 50, 80, 0.4);
}

.compare-main-stat {
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.compare-sub-stats {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.compare-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.compare-equip-btn {
  flex: 1;
  padding: 0.6rem;
  background: rgba(109, 91, 136, 0.6);
  color: #f2ebff;
  border: 1px solid rgba(180, 150, 220, 0.5);
  border-radius: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.compare-equip-btn:active {
  background: rgba(109, 91, 136, 0.9);
}

.compare-cancel-btn {
  flex: 1;
  padding: 0.6rem;
  background: rgba(40, 35, 50, 0.4);
  color: #a99bbd;
  border: 1px solid rgba(60, 50, 80, 0.4);
  border-radius: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.compare-cancel-btn:active {
  background: rgba(60, 50, 80, 0.6);
}