/* ── Character Sheet ──────────────────────────────────────────── */
.sheet-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.sheet-name {
  font-family: var(--font-char); font-size: 2rem; color: var(--accent);
}
.sheet-subtitle { color: var(--text-dim); font-size: 1rem; }
.sheet-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.sheet-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
  .sheet-grid { grid-template-columns: 1fr; }
}

.sheet-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem;
}
.sheet-section-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: var(--accent); letter-spacing: 0.08em; margin-bottom: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.sheet-section-full { grid-column: 1 / -1; }

/* ── HP Bar ───────────────────────────────────────────────────── */
.hp-bar-wrap { margin-bottom: 0.75rem; }
.hp-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; margin-bottom: 0.3rem;
}
.hp-bar-label span:first-child { color: var(--text-dim); }
.hp-bar-label span:last-child { font-weight: bold; }
.hp-bar {
  height: 20px; background: var(--bg-input); border-radius: 10px;
  overflow: hidden; position: relative; cursor: pointer;
}
.hp-bar-fill {
  height: 100%; border-radius: 10px;
  transition: width 0.4s ease, background 0.4s ease;
}
.hp-bar-fill.hp-high { background: var(--success); }
.hp-bar-fill.hp-mid { background: #f39c12; }
.hp-bar-fill.hp-low { background: var(--danger); }

/* ── Inventory List ───────────────────────────────────────────── */
.inv-list { list-style: none; }
.inv-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.inv-item:last-child { border-bottom: none; }
.inv-item-name { flex: 1; }
.inv-item-qty {
  background: var(--bg-input); padding: 0.15rem 0.5rem;
  border-radius: 4px; font-size: 0.8rem; margin: 0 0.5rem;
  color: var(--text-dim);
}
.inv-item-actions { display: flex; gap: 0.25rem; }

/* ── Spell Slots ──────────────────────────────────────────────── */
.spell-group { margin-bottom: 0.75rem; }
.spell-group-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.spell-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.spell-tag {
  background: var(--bg-input); border: 1px solid var(--border);
  padding: 0.25rem 0.6rem; border-radius: 999px;
  font-size: 0.8rem; color: var(--text);
}

/* ── Condition Pills ──────────────────────────────────────────── */
.condition-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.condition-pill {
  padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  background: #5b2c6f; color: #d7bde2;
  display: flex; align-items: center; gap: 0.3rem;
}
.condition-pill-remove {
  cursor: pointer; opacity: 0.7; font-size: 0.9rem;
  transition: opacity var(--transition);
}
.condition-pill-remove:hover { opacity: 1; }

/* ── Trust & Moments ──────────────────────────────────────────── */
.trust-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.trust-item:last-child { border-bottom: none; }
.trust-bar-wrap {
  width: 100px; height: 6px; background: var(--bg-input);
  border-radius: 3px; overflow: hidden;
}
.trust-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }
