/* Shared read-only pokemon cards: asset icons carry labels, only numbers remain visible. */
.pokemon-status-card {
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 15px;
}
.pokemon-status-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pokemon-status-head > img {
  border-radius: 8px;
  image-rendering: pixelated;
  background: #d4e4c3;
}
.pokemon-status-identity {
  min-width: 0;
  flex: 1;
}
.pokemon-status-identity h3 {
  margin: 0 0 9px;
  font-size: 25px;
  line-height: 1.2;
}
.pokemon-status-stars {
  color: #ffe747;
  font-size: 24px;
  letter-spacing: 2px;
}
.pokemon-status-types {
  display: flex;
  align-self: flex-start;
  gap: 3px;
}
.pokemon-status-types img,
.pokemon-status-stat img,
.pokemon-status-effect img {
  image-rendering: pixelated;
  object-fit: contain;
}
.pokemon-status-meter {
  position: relative;
  height: 25px;
  border: 2px solid #1d2734;
  background: #354052;
  overflow: hidden;
  text-align: center;
}
.pokemon-status-meter > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: #9bd849;
}
.pokemon-status-meter.pp > span {
  background: #639ff6;
}
.pokemon-status-meter > b {
  position: relative;
  line-height: 21px;
  text-shadow:
    1px 1px 2px #000,
    -1px -1px 2px #000;
  font-size: 17px;
}
.pokemon-status-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.pokemon-status-stat {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 7px;
  background: #464d62b3;
  border-bottom: 2px solid #30394e;
  min-width: 0;
}
.pokemon-status-stat b {
  font-size: 18px;
  white-space: nowrap;
}
.pokemon-status-effects,
.pokemon-status-effects .active-buff-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pokemon-status-effects .active-buff-icon {
  width: 34px;
  height: 34px;
  padding: 2px;
  border-radius: 5px;
}
.pokemon-status-effects:empty {
  display: none;
}
.pokemon-status-skill {
  border-top: 2px solid #30394e;
  margin: 0 -8px -8px;
  padding: 0 8px 8px;
}
.pokemon-status-skill h4 {
  background: #363e51b3;
  font-size: 21px;
  margin: 0 -8px 8px;
  padding: 7px 9px;
}
.pokemon-status-skill p {
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
}
.unit-hover-card {
  width: 360px;
  max-height: calc(100vh - 24px);
  background: #61768c;
  border: 4px solid #111a22;
  padding: 9px;
  border-radius: 17px;
}
.unit-hover-card .pokemon-status-identity h3 {
  font-size: 21px;
}
.unit-hover-card .pokemon-status-skill p {
  display: block;
  -webkit-line-clamp: unset;
  font-size: 14px;
}
.unit-hover-card .pokemon-status-stat {
  padding: 5px 2px;
}
.unit-hover-card .pokemon-status-stat img {
  width: 24px;
  height: 24px;
}
.unit-hover-card .pokemon-status-stat b {
  font-size: 16px;
}
#detail .pokemon-status-card {
  padding: 0;
}
#detail:has(.pokemon-status-card) > .panel {
  background: #61768c;
}
#detail:has(.pokemon-status-card) > .panel > header h2 {
  display: none;
}
#detail:has(.pokemon-status-card) > .panel > header::after,
.unit-hover-card[data-pokemon-card]::after {
  content: none;
}
.unit-near-actions {
  padding: 2px;
  gap: 2px;
  border: 1px solid #e4ca71;
  background: #263244d9;
}
.unit-near-actions .btn,
.unit-near-actions .btn.icon-only {
  width: 24px !important;
  min-width: 24px;
  height: 24px;
  min-height: 24px !important;
  padding: 2px !important;
  display: grid;
  place-items: center;
}
.unit-near-actions img {
  image-rendering: pixelated;
}
@media (max-width: 760px) {
  .unit-hover-card {
    width: 310px;
    padding: 8px;
  }
  .pokemon-status-types img {
    width: 18px;
    height: 18px;
  }
}
.pokemon-status-head > .portrait {
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  background: #d4e4c3;
}
.pokemon-status-head .portrait img {
  image-rendering: pixelated;
}
#detail:has(.pokemon-status-card) {
  overflow: auto;
}
.pokemon-status-stars {
  display: flex;
  gap: 3px;
}
#detail:has(.pokemon-status-card) > .panel {
  height: auto;
  min-height: 0;
  max-height: inherit;
}
#detail:has(.pokemon-status-card) > .panel > .panel-body {
  display: block;
  flex: none;
}
#detail .pokemon-status-card {
  align-content: start;
}
.pokemon-status-effects:not(:has(img)) {
  display: none;
}
#detail .pokemon-status-effects .active-buff-strip {
  min-height: 0;
  height: auto;
}
