.profile-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.4);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #34d399;
  color: #052e2b;
  font-size: 1.7rem;
  font-weight: 800;
}

.name {
  margin: 4px 0 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.hero {
  margin-bottom: 24px;
}

.health strong {
  color: #fb7185;
}

.hunger strong {
  color: #3cfb88;
}

.energy strong {
  color: #fae560;
}

.profile-top {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) minmax(140px, 180px);
  gap: 12px;
  align-items: stretch;
}

.human-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.16), rgba(59, 130, 246, 0.16));
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.character-center {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.profile-details {
  width: 100%;
}

.avatar-icon {
  font-size: 2.5rem;
}

.character-meta {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-row span {
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-row strong {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
}

.status-meters {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card {
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 12px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-icon {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.icon-base,
.icon-fill {
  position: absolute;
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.icon-base {
  opacity: 0.18;
  filter: grayscale(1);
}

.icon-fill {
  opacity: 1;
  clip-path: inset(var(--empty) 0 0 0);
  transition: clip-path 260ms ease;
}

.status-card.health {
  color: #fb7185;
}

.status-card.hunger {
  color: #3cfb88;
}

.status-card.energy {
  color: #fae560;
}

.meter-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.9), rgba(34, 211, 212, 0.9));
  transition: width 260ms ease;
}

.status-card.health .meter-fill {
  background: linear-gradient(90deg, #fda4af, #fb7185);
}

.status-card.hunger .meter-fill {
  background: linear-gradient(90deg, #97f1bb, #3cfb88);
}

.status-card.energy .meter-fill {
  background: linear-gradient(90deg, #eee5a8, #fae560);
}



.status-card strong {
  font-size: 1.8rem;
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(167, 243, 208, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  color: #d1fae5;
  font-weight: 700;
}

.experience-meta-row {
  position: relative;
}

.experience-toggle {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-align: right;
}

.experience-toggle strong {
  pointer-events: none;
}

.experience-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 50;

  width: 280px;
  max-height: 380px;
  overflow-y: auto;

  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;

  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.experience-panel-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
}

.experience-skills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.experience-skill-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.experience-skill-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  font-size: 12px;
  line-height: 1.2;
}

.experience-skill-name {
  font-weight: 600;
}

.experience-skill-value {
  opacity: 0.75;
  white-space: nowrap;
}

.experience-skill-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.experience-skill-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
}