/* CP3: fixed desktop Hero rows and compact skills with the existing full-card previews. */
@media (min-width:1000px) {
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) {
    grid-template-rows:repeat(3,minmax(0,1fr))!important;
    grid-auto-rows:minmax(0,1fr)!important; align-content:stretch!important;
    overflow:visible!important; scrollbar-width:none!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) > .hero {
    align-self:start!important; justify-self:start!important;
    width:calc(100% / var(--rpg-card-scale,1))!important;
    transform:scale(var(--rpg-card-scale,1)); transform-origin:top left;
    padding:5px!important; gap:2px 6px!important;
    transition:border-color .16s ease,box-shadow .16s ease!important;
    /* Fit script only reduces a dense card when its natural contents exceed its row. */
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .heroTop { gap:1px 6px!important; }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) :is(.passiveBadge, .pathBadge) {
    font-size:10px!important; padding:1px 4px!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .statusChips:has(> .neutral:only-child) {
    display:none!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .statusPill {
    padding:1px 3px!important; font-size:10px!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .linkedEffectsTop { margin:0!important; gap:2px!important; }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .linkedEffectMarker {
    min-height:17px!important; padding:1px 4px!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .masteryArea { gap:2px!important; }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .masteryLabel { line-height:12px!important; }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .masteries {
    grid-template-rows:32px!important; grid-auto-rows:32px!important;
    min-height:32px!important; height:32px!important; max-height:32px!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .masterySlot {
    height:32px!important; min-height:32px!important; max-height:32px!important;
    overflow:hidden!important; cursor:help;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .mastery {
    height:30px!important; min-height:30px!important; max-height:30px!important;
    padding:3px 19px 3px 4px!important; gap:1px!important; justify-content:center!important;
    cursor:pointer;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .mastery:disabled { cursor:default; }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .masteryName {
    white-space:nowrap!important; overflow:hidden!important; text-overflow:ellipsis!important;
    padding:0!important; margin:0!important; font-size:11px!important; line-height:12px!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .masteryType { display:none!important; }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .masteryHint {
    margin:0!important; padding:0!important; border:0!important;
    font-size:9px!important; line-height:10px!important; white-space:nowrap!important;
    background:transparent!important; color:inherit!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .masteryInfo {
    width:18px!important; height:26px!important; min-height:26px!important;
    right:0!important; bottom:2px!important; border-radius:2px!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .emptyMastery,
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .emptyMastery :is(span, small) {
    font-size:10px!important; line-height:12px!important; min-height:0!important;
  }
  html body.battleMode.rpgArena :is(#youHeroes, #pcHeroes) .masterySlot:where(:hover, :focus-within) {
    outline:2px solid #e1bc68!important; outline-offset:1px;
  }
}
