/* Character profile page */
.character-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 240px at 15% 20%, rgba(74, 134, 255, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(255, 204, 51, 0.08), rgba(74, 134, 255, 0.05));
}
.character-hero__body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.character-hero__identity {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.character-hero__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.character-hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.character-hero__icon-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading-color);
}
.character-name {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: 0.3px;
  color: var(--heading-accent);
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.character-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  align-items: center;
  margin-top: 0.35rem;
}
.hero-vocation {
  color: var(--text-soft);
}
.hero-badge {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.2px;
}
.hero-badge--level {
  background: rgba(255, 204, 51, 0.18);
  color: rgba(255, 214, 102, 0.95);
  border: 1px solid rgba(255, 204, 51, 0.35);
}
.hero-badge--status {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: inherit;
}
.hero-badge--status.is-online {
  background: rgba(25, 135, 84, 0.2);
  color: rgba(180, 255, 210, 0.95);
  border-color: rgba(25, 135, 84, 0.45);
  box-shadow: 0 0 12px rgba(25, 135, 84, 0.35);
}
.hero-badge--status:hover {
  color: #fff;
}
.hero-badge--status.is-online::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(25, 135, 84, 0.55);
  animation: heroPulse 1.8s ease-out infinite;
}
.hero-badge--status.is-offline {
  background: rgba(108, 117, 125, 0.2);
  color: var(--text-muted);
}
.hero-lastseen {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.character-hero__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.character-hero__actions {
  display: flex;
  gap: 0.5rem;
}
@media (max-width: 575px) {
  .character-hero__actions {
    width: 100%;
  }
  .character-hero__actions .btn {
    width: 100%;
  }
}
.hero-world {
  color: var(--text-soft);
}
.character-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.character-card__title {
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0.75rem;
  color: var(--heading-accent);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stat-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .stat-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.stat-value {
  font-size: 0.95rem;
  color: var(--text-main);
}
.stat-progress__header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.stat-subtitle {
  font-weight: 700;
  color: var(--subheading-color);
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}
.progress-unavailable,
.empty-state {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.skill-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.skill-label {
  font-weight: 700;
  font-size: 0.9rem;
}
.skill-value {
  color: var(--text-main);
}
.appearance-preview {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.avatar-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 204, 51, 0.45), rgba(74, 134, 255, 0.35));
  border: 1px solid var(--panel-border);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
}
.appearance-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.death-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.death-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  font-size: 0.9rem;
}
.death-time {
  font-size: 0.85rem;
}
.title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.title-badge {
  background: rgba(74, 134, 255, 0.18);
  color: rgba(180, 210, 255, 0.95);
  border: 1px solid rgba(74, 134, 255, 0.35);
}
.achievement-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.achievement-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.achievement-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
}
.achievement-fallback {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-weight: 700;
}
.achievement-name {
  font-size: 0.8rem;
  color: var(--text-soft);
}
.achievement-inline {
  margin-top: 0.4rem;
  color: var(--text-soft);
}
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.achievement-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bio-text {
  color: var(--text-main);
  white-space: pre-wrap;
}
.bio-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
@keyframes heroPulse {
  0% { opacity: 0.6; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}
