.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  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.3);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  box-shadow:
    0 3px 12px rgba(var(--shadow-rgb), 0.4),
    inset 0 1px 0 rgba(var(--gold-rgb), 0.1),
    inset 0 0 20px rgba(var(--shadow-rgb), 0.15);
}

.avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid rgba(var(--gold-rgb), 0.3);
  background: var(--bg-inset);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.identity {
  flex: 1;
}

.name {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.title {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.subtitle {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.vitals {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.vital {
  text-align: center;
}

.vitalValue {
  font-size: 1.3rem;
  font-weight: 700;
}

.hp {
  color: var(--hp);
}

.ac {
  color: var(--ac);
}

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

.hpValues {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hpSlash {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.hpMax {
  color: var(--text-secondary);
  font-weight: 600;
}

.hpBonus {
  color: var(--hp);
  font-size: 0.65rem;
  margin-left: 0.15rem;
}

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

.xpCurrent {
  color: var(--gold);
  font-weight: 600;
}

.luckBtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.1rem;
  transition: transform 0.15s;
}

.luckBtn:hover {
  transform: scale(1.2);
}

.colorPicker {
  width: 2rem;
  height: 1.5rem;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  background: none;
}

.colorRow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.nameInput {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--bg-input);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: 5px;
  padding: 0.2rem 0.4rem;
  width: 10rem;
}

.nameInput:focus {
  outline: none;
  border-color: var(--gold);
}

.titleInput {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: 5px;
  padding: 0.15rem 0.4rem;
  width: 8rem;
  margin-left: 0.3rem;
  font-family: "Alegreya", Georgia, serif;
}

.titleInput:focus {
  outline: none;
  border-color: var(--gold);
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 1100px) {
  .panels {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .panels {
    grid-template-columns: 1fr;
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .vitals {
    width: 100%;
    justify-content: space-around;
  }

  .name {
    font-size: 1.2rem;
  }
}

.deleteSection {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
}

.deleteBtn {
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid var(--danger);
  border-radius: 5px;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
}

.deleteBtn:hover {
  background: rgba(var(--danger-rgb), 0.1);
}
