.card {
  background-color: var(--bg-surface);
  background-image: var(--texture-surface), var(--texture-speckle);
  background-size:
    256px 256px,
    128px 128px;
  background-repeat: repeat, repeat;
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: 4px;
  padding: 1rem;
  cursor: pointer;
  box-shadow:
    0 4px 12px rgba(var(--shadow-rgb), 0.5),
    0 1px 4px rgba(var(--shadow-rgb), 0.3),
    inset 0 1px 0 rgba(var(--gold-rgb), 0.06);
  transition:
    border-color 0.15s,
    transform 0.1s,
    box-shadow 0.15s;
}

.card:hover {
  border-color: rgba(var(--gold-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(var(--shadow-rgb), 0.6),
    0 2px 6px rgba(var(--shadow-rgb), 0.4),
    inset 0 1px 0 rgba(var(--gold-rgb), 0.1),
    0 0 15px rgba(var(--gold-rgb), 0.05);
}

.cardHeader {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  background: var(--bg-inset);
  flex-shrink: 0;
}

.nameRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex: 1;
  min-width: 0;
}

.name {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.level {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-left: 0.3rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 0.6rem;
  margin-left: 3.4rem;
}

.vitalsRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.ac {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.acLabel {
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.acValue {
  font-size: 1.15rem;
  color: var(--ac);
}

.luck {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.modRow {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.mod {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

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

.modValue {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.xp {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: right;
}
