:root {
  --dice-black: black;
  --dice-red: hsl(3, 62%, 45%);
  --dice-white: white;
}

#legion_attack_pool {
  background: var(--pl-color-surface-raised);
  border: var(--pl-border-width-s) solid var(--pl-color-surface-border);
  border-radius: var(--pl-radius-l);
  box-shadow: var(--pl-shadow-m);
  padding: var(--pl-space-xs) var(--pl-space-s);
  pointer-events: auto;
}

#legion_attack_pool_container {
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding: var(--pl-space-m);
  pointer-events: none;
  position: sticky;
}

#legion_attack_pool_container:empty {
  display: none;
}

.armyCard_faction {
  height: 3rem;
  width: auto;
}

.armyCard h3 {
  margin: 0;
}

.armyShow_unitTypes img {
  height: 3rem;
  width: auto;
}

.armyUnit_grid {
  display: grid;
  gap: var(--pl-space-m);
  grid-template-columns: repeat(5, 1fr);
}

.armyUnit_unit {
  grid-column: 1 / span 3;
  grid-row: 1 / span 2;
}

.armyUnit_unit > img {
  width: 100%;
}

.armyUnit_upgradeType img {
  height: 1.75rem;
  width: auto;
}

.armyUnitUpgrade {
  position: relative;
}

.armyUnitUpgrade_actions {
  display: none;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.armyUnitUpgrade:is(:hover, :focus-within) .armyUnitUpgrade_actions {
  display: flex;
}

.attackPool_dice {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.attackPool_dice .dice {
  height: 1.75rem;
  width: 1.75rem;
}

.attackPool_dice span {
  color: var(--pl-color-text-normal);
  font-size: var(--pl-font-size-s);
}

.attackPool_roll {
  color: inherit;
  text-decoration: none;
}

.dice-black .dice {
  color: var(--dice-black);
  filter: drop-shadow(0 0 1px var(--dice-white));
}

.dice-red .dice {
  color: var(--dice-red);
}

.dice-white .dice {
  color: var(--dice-white);
}

.diceButton {
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  height: 60px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 60px;
}

.diceButton .dice {
  height: 60px;
  width: 60px;
}

.diceButton .dice-defense {
  height: 50px;
  width: 50px;
}

.diceButton_plus {
  color: var(--dice-white);
  height: 30px;
  position: absolute;
  width: 30px;
}

.diceButton.dice-white .diceButton_plus {
  color: var(--dice-red);
}

.diceRoller_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.diceRoller_controls {
  border-radius: var(--pl-radius-l);
  padding: var(--pl-space-m);
}

.factionCard_body {
  display: flex;
  justify-content: center;
}

.factionCard_body img {
  height: 8rem;
  object-fit: contain;
  width: auto;
}

.keywordCard_actions {
  justify-content: flex-end;
}

.keywordCard img {
  display: inline-block;
  height: 1em;
  vertical-align: middle;
  width: auto;
}

.keywordCard p {
  font-size: var(--pl-font-size-l);
  margin: 0;
}

.keywordName {
  color: var(--app-accent);
  font-size: var(--pl-font-size-s);
  letter-spacing: 0.05rem;
  margin: 0;
  text-transform: uppercase;
}

.legionHeader {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--pl-space-xs);
  padding: var(--pl-space-m) var(--pl-space-m) 0;
}

.legionHeader_title {
  color: var(--pl-color-text-normal);
  font-weight: var(--pl-font-weight-bold);
  letter-spacing: 0.1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.legionHeader > .pl-tab-group {
  max-width: 100%;
}

.slideshow {
  display: flex;
  flex-direction: column;
  height: 50vh;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
}

.slideshow > img {
  animation: 120s linear infinite slide;
  filter: brightness(0.5) saturate(0.5);
  height: 200%;
  max-width: unset;
  object-fit: cover;
  opacity: var(--opacity);
  position: absolute;
  transition-duration: 5s;
  transition-property: opacity;
  width: 200%;
}

.slideshow_content {
  z-index: 1;
}

.slideshow_content h1 {
  font-size: var(--pl-font-size-4xl);
}

.upgradeImage {
  width: min(100%, 300px);
}

.weaponKeywords:has(> :empty) {
  display: none;
}

@keyframes slide {
  0% {
    left: 0;
    scale: 1;
    top: 0;
  }

  25% {
    left: -100%;
    top: 0;
  }

  50% {
    left: 0;
    scale: 1.5;
    top: -100%;
  }

  75% {
    left: -100%;
    top: -100%;
  }

  100% {
    left: 0;
    scale: 1;
    top: 0;
  }
}

@media (hover: none) {
  .armyUnitUpgrade_actions {
    display: flex;
  }
}

@media screen and (max-width: 700px) {
  .armyUnit_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/*



 */

@font-face {
  font-family: "Starjedi";
  src: url(/assets/Starjedi-52e9e3b037380276c8d91ba4f91602c616da6b1c737a386ed83ae51717cead75.ttf);
}

:root {
  --app-accent: hsl(40, 100%, 55%);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  position: relative;
}

h1 {
  color: var(--app-accent);
  font-family: Starjedi, sans-serif;
  letter-spacing: 0.1rem;
}

h2 {
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.cardImageLink {
  border-radius: var(--pl-radius-l);
  display: block;
  overflow: hidden;
  transition: scale var(--pl-duration-normal) ease-in-out;
}

.cardImageLink:hover {
  scale: 1.0125;
}

.cardImageLink img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.container {
  margin-inline: auto;
  max-width: 75rem;
  padding: var(--pl-space-l) var(--pl-space-m);
  width: 100%;
}

.flashMessages {
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.flashMessages > * {
  box-shadow: var(--pl-shadow-m);
  pointer-events: auto;
}

.globalHeader {
  align-items: center;
  background: var(--pl-color-surface-lowered);
  border-bottom: var(--pl-border-width-s) solid var(--pl-color-surface-border);
  display: flex;
  gap: var(--pl-space-m);
  justify-content: space-between;
  padding: var(--pl-space-s) var(--pl-space-m);
  position: sticky;
  top: 0;
  z-index: 20;
}

.globalHeader_title {
  color: var(--app-accent);
  font-family: Starjedi, sans-serif;
  font-size: var(--pl-font-size-xl);
  letter-spacing: 0.1rem;
  text-decoration: none;
}

.heroImage {
  border-radius: var(--pl-radius-l);
  width: 100%;
}

.imagePicker button {
  background: none;
  border: 0;
  cursor: pointer;
  filter: brightness(0.85);
  padding: 0;
  transition-duration: var(--pl-duration-fast);
  transition-property: filter, scale;
  width: 100%;
}

.imagePicker button:hover {
  filter: brightness(1);
  scale: 1.01;
}

.imagePicker img {
  object-fit: contain;
  width: 100%;
}

.narrowContainer {
  max-width: 40rem;
}

.searchInput {
  flex: 1;
  min-width: min(100%, 16rem);
}

.tableWrapper {
  overflow-x: auto;
}

.toolbar {
  border: var(--pl-border-width-s) solid var(--pl-color-surface-border);
  border-radius: var(--pl-radius-l);
  padding: var(--pl-space-m);
}

.toolbar h1 {
  margin: 0;
}

.typeHeading h2 {
  margin: 0;
}

.typeHeading img {
  height: 3rem;
  width: auto;
}

@media screen and (max-width: 700px) {
  .globalHeader_title {
    font-size: var(--pl-font-size-m);
  }
}
legion-dice-component {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  position: relative;
}

legion-dice-component .dice.dice-attack {
  height: 100px;
  width: 100px;
}

legion-dice-component .dice.dice-defense {
  height: 80px;
  width: 80px;
}

legion-dice-component[data-type="defense"] {
  padding: var(--pl-space-m);
}

legion-dice-component img {
  height: 30px;
  position: absolute;
  width: 30px;
}

legion-dice-component img:not([src]) {
  display: none;
}
