.character-details-container {
  width: 98%;
  height: 98%;
}
.character-details {
  container-type: inline-size;
  font-size: 0.75rem;
  text-align: left;
}

.character-details__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.character-details__name {
  font-size: 1.1em;
}

.character-details__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

@container (max-width: 34rem) {
  .character-details__columns {
    grid-template-columns: 1fr;
  }
}

.character-details__panel {
  margin-bottom: 1rem;
}

.character-details__heading {
  font-size: 0.85em;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.25rem;
}

.character-details__heading small {
  opacity: 0.7;
  float: right;
  font-size: 0.9em;
}

/* --- stats table --- */

.character-details__stats {
  width: 100%;
  border-collapse: collapse;
}

.character-details__stats th,
.character-details__stats td {
  padding: 0.15rem 0.4rem 0.15rem 0;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.character-details__stats thead th {
  font-size: 0.85em;
  opacity: 0.6;
  font-weight: normal;
}

.character-details__iv {
  opacity: 0.75;
}

.character-details__nature-marker.is-boost {
  color: #92cc41;
}

.character-details__nature-marker.is-drop {
  color: #e76e55;
}

/* --- IV radar --- */

.iv-radar {
  width: 100%;
  max-width: 16rem;
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

/* Grid and axes stay recessive: they are the scale, not the data. */
.iv-radar__grid polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.25;
}

.iv-radar__grid line {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.25;
}

/* Single series, so one accent — checked for >= 3:1 against both the light
   and the dark app surface. */
.iv-radar__area {
  fill: #2f86d9;
  fill-opacity: 0.35;
  stroke: #2f86d9;
  stroke-width: 2;
  stroke-linejoin: round;
}

.iv-radar__vertices circle {
  fill: #2f86d9;
  stroke: var(--bulma-body-background-color, #fff);
  stroke-width: 1.5;
}

/* Labels wear text ink, never the series color. */
.iv-radar__labels text {
  fill: currentColor;
  font-size: 9px;
  opacity: 0.85;
}

.iv-radar__labels .iv-radar__value {
  opacity: 0.75;
}

/* --- moves --- */

.character-details__moves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@container (max-width: 34rem) {
  .character-details__moves {
    grid-template-columns: 1fr;
  }
}

.character-details__move {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  border: 2px solid currentColor;
  padding: 0.4rem;
}

.character-details__move.is-empty {
  opacity: 0.4;
  justify-content: center;
}

.character-details__move-pp {
  margin-left: auto;
  opacity: 0.75;
}

.character-details__ability-desc {
  opacity: 0.85;
}
