.container {
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sectionTitle {
  font-family: var(--font-display, "Cinzel", Georgia, serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.addBtn {
  font-family: var(--font-display, "Cinzel", Georgia, serif);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  background: transparent;
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  border-radius: 3px;
  color: var(--gold);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}

.addBtn:hover {
  background: rgba(var(--gold-rgb), 0.1);
  border-color: var(--gold);
}

/* ── Picker ── */

.picker {
  background: var(--bg-inset);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  border-radius: 4px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--gold-rgb), 0.2) transparent;
}

.pickerItem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.4rem 0.6rem;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.8rem;
  transition: all 0.12s;
}

.pickerItem:hover {
  background: rgba(var(--gold-rgb), 0.08);
  border-color: rgba(var(--gold-rgb), 0.25);
}

.tierBadge {
  font-family: var(--font-display, "Cinzel", Georgia, serif);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  border-radius: 2px;
  padding: 0.1rem 0.3rem;
  flex-shrink: 0;
}

.pickerName {
  flex: 1;
  color: var(--text-primary);
}

.focusBadge {
  font-size: 0.65rem;
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: 2px;
  padding: 0.1rem 0.3rem;
}

/* ── Empty state ── */

.empty {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-style: italic;
  margin: 0.25rem 0;
}

/* ── Tier groups ── */

.tierGroup {
  margin-bottom: 0.75rem;
}

.tierLabel {
  font-family: var(--font-display, "Cinzel", Georgia, serif);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.1);
}

/* ── Individual spell row ── */

.spell {
  background: var(--bg-inset);
  border: 1px solid rgba(var(--gold-rgb), 0.1);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.4rem;
  transition: border-color 0.15s, opacity 0.15s;
}

.spell.exhausted {
  opacity: 0.5;
}

.spell.exhausted .spellName {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.spell.focusing {
  border-color: rgba(var(--gold-rgb), 0.55);
  box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.12), inset 0 0 12px rgba(var(--gold-rgb), 0.04);
}

.spellMain {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.spellName {
  font-family: var(--font-display, "Cinzel", Georgia, serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.focusActive {
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 600;
}

.exhaustedLabel {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  background: rgba(var(--shadow-rgb), 0.3);
  border-radius: 2px;
  padding: 0.1rem 0.3rem;
}

.lockedLabel {
  font-size: 0.65rem;
  color: var(--danger);
  background: rgba(var(--danger-rgb), 0.1);
  border: 1px solid rgba(var(--danger-rgb), 0.25);
  border-radius: 2px;
  padding: 0.1rem 0.3rem;
}

.spellMeta {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 0.3rem;
}

.spellDesc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.spellActions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cast button — gold primary */
.castBtn {
  font-family: var(--font-display, "Cinzel", Georgia, serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  background: var(--btn-gold-bg);
  border: none;
  border-radius: 3px;
  color: var(--btn-active-text);
  cursor: pointer;
  transition: filter 0.15s, opacity 0.15s;
}

.castBtn:hover:not(:disabled) {
  filter: brightness(1.1);
}

.castBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
}

/* Remove button — subtle, red on hover */
.removeBtn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 1px solid rgba(var(--shadow-rgb), 0.3);
  border-radius: 3px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.15s;
}

.removeBtn:hover {
  color: var(--danger);
  border-color: rgba(var(--danger-rgb), 0.4);
  background: rgba(var(--danger-rgb), 0.06);
}
