@font-face {
  font-family: "TimesNewRoman";
  src: url("../assets/fonts/times-new-roman-regular.ttf") format("truetype");
}
@font-face {
  font-family: "BaskervilleBold";
  src: url("../assets/fonts/baskerville-bold.ttf") format("truetype");
}
:root {
  --font-primary: "TimesNewRoman", serif;
  --font-size-standard: 0.8rem;
  --background-image-base: url("../assets/ui/lethal_fantasy_background.webp");
  --font-secondary: "BaskervilleBold", serif;
  --logo-standard: url("../assets/ui/lf_logo_small_02.webp");
}
.initiative-area {
  min-width: 8rem;
  max-width: 8rem;
  display: flex;
  flex-direction: row;
}
.initiative-area input {
  min-width: 3rem;
  max-width: 3rem;
}
#logo {
  content: var(--logo-standard);
  width: 50px;
  height: 50px;
  margin-left: 15px;
}
#pause > img {
  content: var(--logo-standard);
  height: 192px;
  width: 192px;
  top: -45px;
  left: calc(50% - 96px);
}
i.lethalfantasy {
  width: 36px;
  height: 36px;
  background-image: var(--logo-standard);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  position: relative;
  filter: grayscale(1);
  transition: 0.3s;
}
.application.dialog.lethalfantasy {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  background-image: var(--background-image-base);
}
.application.dialog.lethalfantasy button:hover {
  background: var(--color-dark-6);
}
.application.dialog.lethalfantasy .legend {
  font-family: var(--font-primary);
}
#tooltip.tooltip-avantages {
  max-width: 550px;
  text-align: left;
}
.chat-message,
.chat-message.whisper {
  font-family: var(--font-primary);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.combat-sidebar li.combatant .token-initiative .initiative {
  margin-right: 16px;
}
.combat-sidebar li.combatant .token-initiative {
  flex: none;
}
.initiative-minus {
  margin-right: 8px;
}
.lethalfantasy .character-sheet-common label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
}
.lethalfantasy .item-sheet-common {
  overflow: auto;
}
.lethalfantasy .item-sheet-common .form-fields {
  padding-top: 4px;
}
.lethalfantasy .item-sheet-common .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .item-sheet-common .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .item-sheet-common .form-group select,
.lethalfantasy .item-sheet-common .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .item-sheet-common .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .item-sheet-common label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .item-sheet-common .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .item-sheet-common .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .character-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: scroll;
}
.lethalfantasy .character-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .character-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .character-content input:disabled,
.lethalfantasy .character-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .character-content input,
.lethalfantasy .character-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .character-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .character-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .character-content .form-fields input,
.lethalfantasy .character-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .character-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .character-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .character-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
}
.lethalfantasy .character-main {
  display: flex;
}
.lethalfantasy .character-main .character-pc {
  display: flex;
  gap: 10px;
  flex: 1;
}
.lethalfantasy .character-main .character-pc .character-left {
  min-width: 200px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
}
.lethalfantasy .character-main .character-pc .character-left .character-left-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 8px;
}
.lethalfantasy .character-main .character-pc .character-left .character-left-image .character-img {
  height: 140px;
  width: 140px;
  width: auto;
  border: none;
}
.lethalfantasy .character-main .character-pc .character-left .character-hp {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 4px;
}
.lethalfantasy .character-main .character-pc .character-left .character-hp .name {
  flex: none;
  min-width: 2.5rem;
  max-width: 2.5rem;
}
.lethalfantasy .character-main .character-pc .character-left .character-hp input {
  flex: none;
  min-width: 2.2rem;
  max-width: 2.2rem;
  margin-left: 4px;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .character-main .character-pc .character-left .character-hp .character-hp-max {
  clear: both;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 4px 0;
  align-items: center;
}
.lethalfantasy .character-main .character-pc .character-left .character-hp .character-hp-max input {
  width: 3.2rem;
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .character-main .character-pc .character-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lethalfantasy .character-main .character-pc .character-right .character-name {
  display: flex;
}
.lethalfantasy .character-main .character-pc .character-right .character-name input {
  width: 400px;
}
.lethalfantasy .character-main .character-pc-play {
  min-width: 320px;
}
.lethalfantasy .character-main .character-pc-edit {
  min-width: 320px;
}
.lethalfantasy .character-main .character-characteristics {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lethalfantasy .character-main .character-characteristics .character-characteristic {
  display: flex;
  align-items: center;
}
.lethalfantasy .character-main .character-characteristics .character-characteristic span {
  min-width: 2.2rem;
  max-width: 2.2rem;
}
.lethalfantasy .character-main .character-characteristics .character-characteristic .rollable:hover,
.lethalfantasy .character-main .character-characteristics .character-characteristic .rollable:focus {
  text-shadow: 0 0 8px var(--color-shadow-primary);
  cursor: pointer;
}
.lethalfantasy .character-main .character-characteristics .character-characteristic .form-group {
  flex: 1;
  padding-left: 4px;
}
.lethalfantasy .character-main .character-characteristics .character-characteristic .form-group .form-fields {
  flex: none;
  width: 3rem;
}
.lethalfantasy .character-main .character-challenges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lethalfantasy .character-main .character-challenges .character-challenge {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}
.lethalfantasy .character-main .character-challenges .character-challenge .rollable:hover,
.lethalfantasy .character-main .character-challenges .character-challenge .rollable:focus {
  text-shadow: 0 0 8px var(--color-shadow-primary);
  cursor: pointer;
}
.lethalfantasy .character-main .character-challenges .character-challenge .name {
  flex: 1;
  min-width: 3rem;
  margin-left: 0.5rem;
}
.lethalfantasy .character-main .character-challenges .character-challenge .form-group {
  flex: 1;
  padding-left: 4px;
}
.lethalfantasy .character-main .character-challenges .character-challenge .form-group .form-fields {
  flex: none;
  width: 50px;
}
.lethalfantasy .character-main .character-movements {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lethalfantasy .character-main .character-movements .character-movement {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}
.lethalfantasy .character-main .character-movements .character-movement .rollable:hover,
.lethalfantasy .character-main .character-movements .character-movement .rollable:focus {
  text-shadow: 0 0 8px var(--color-shadow-primary);
  cursor: pointer;
}
.lethalfantasy .character-main .character-movements .character-movement .name {
  flex: 1;
  min-width: 3rem;
  margin-left: 0.5rem;
}
.lethalfantasy .character-main .character-movements .character-movement .form-group {
  flex: 1;
  padding-left: 4px;
}
.lethalfantasy .character-main .character-movements .character-movement .form-group .form-fields {
  flex: none;
  width: 50px;
}
.lethalfantasy .character-main .character-saves {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lethalfantasy .character-main .character-saves .character-save {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}
.lethalfantasy .character-main .character-saves .character-save .rollable:hover,
.lethalfantasy .character-main .character-saves .character-save .rollable:focus {
  text-shadow: 0 0 8px var(--color-shadow-primary);
  cursor: pointer;
}
.lethalfantasy .character-main .character-saves .character-save .name {
  flex: 0;
  min-width: 5rem;
  max-width: 5rem;
  margin-left: 0.5rem;
}
.lethalfantasy .character-main .character-saves .character-save .name-pain {
  flex: 0;
  min-width: 3rem;
  max-width: 3rem;
  margin-left: 0.5rem;
}
.lethalfantasy .character-main .character-saves .character-save .form-group {
  flex: 0;
  padding-left: 4px;
}
.lethalfantasy .character-main .character-saves .character-save .form-group .form-fields {
  flex: none;
  width: 50px;
}
.lethalfantasy .character-main .character-characteristics-play {
  min-width: 160px;
}
.lethalfantasy .character-main .character-characteristic-edit {
  min-width: 160px;
}
.lethalfantasy .tab.character-biography .main-div .biodata {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-biography .main-div .biodata .biodata-elem {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-biography .main-div .biodata .biodata-elem .item-img {
  width: 24px;
  height: 24px;
  margin: 4px 0 0 0;
}
.lethalfantasy .tab.character-biography .main-div .biodata .biodata-elem .name {
  min-width: 8rem;
}
.lethalfantasy .character-biography prose-mirror.inactive {
  min-height: 40px;
}
.lethalfantasy .character-biography prose-mirror.active {
  min-height: 150px;
}
.lethalfantasy .tab.character-skills .main-div {
  display: grid;
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.character-skills .main-div legend a {
  font-size: calc(var(--font-size-standard) * 1);
  padding-left: 4px;
}
.lethalfantasy .tab.character-skills .main-div .skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-skills .main-div .skills .skill {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-skills .main-div .skills .skill .item-img {
  width: 24px;
  height: 24px;
}
.lethalfantasy .tab.character-skills .main-div .skills .skill .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-skills .main-div .gifts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-skills .main-div .gifts .gift {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-skills .main-div .gifts .gift .item-img {
  width: 24px;
  height: 24px;
}
.lethalfantasy .tab.character-skills .main-div .gifts .gift .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-skills .main-div .vulnerabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-skills .main-div .vulnerabilities .vulnerability {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-skills .main-div .vulnerabilities .vulnerability .item-img {
  width: 24px;
  height: 24px;
}
.lethalfantasy .tab.character-skills .main-div .vulnerabilities .vulnerability .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-equipment .main-div {
  display: grid;
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.character-equipment .main-div legend a {
  font-size: calc(var(--font-size-standard) * 1.4);
  padding-left: 4px;
}
.lethalfantasy .tab.character-equipment .main-div .moneys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-equipment .main-div .equipments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-equipment .main-div .equipments .equipment {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-equipment .main-div .equipments .equipment .item-img {
  width: 24px;
  height: 24px;
  margin: 4px 0 0 0;
}
.lethalfantasy .tab.character-equipment .main-div .equipments .equipment .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-equipment .main-div .equipments .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-combat .main-div {
  display: grid;
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.character-combat .main-div legend a {
  font-size: calc(var(--font-size-standard) * 1.4);
  padding-left: 4px;
}
.lethalfantasy .tab.character-combat .main-div .combat-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail .input {
  min-width: 2.5rem;
  max-width: 2.5rem;
}
.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail .ranged-attack-button {
  font-size: 0.8rem;
}
.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail button {
  min-width: 9rem;
}
.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail .armor-hp {
  margin-right: 4px;
  min-width: 11rem;
  max-width: 11rem;
}
.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail .armor-hp .name {
  min-width: 6rem;
  max-width: 6rem;
}
.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail .armor-hp .input {
  min-width: 3.5rem;
  max-width: 3.5rem;
}
.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail .granted {
  min-width: 8rem;
  max-width: 8rem;
}
.lethalfantasy .tab.character-combat .main-div .combat-details .combat-detail .granted .input {
  min-width: 2.5rem;
  max-width: 2.5rem;
}
.lethalfantasy .tab.character-combat .main-div .wounds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-combat .main-div .wounds .wound {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-combat .main-div .wounds .wound .wound-description {
  min-width: 14rem;
  max-width: 14rem;
}
.lethalfantasy .tab.character-combat .main-div .wounds .wound .wound-duration {
  min-width: 3rem;
  max-width: 3rem;
}
.lethalfantasy .tab.character-combat .main-div .wounds .wound .wound-value {
  min-width: 3rem;
  max-width: 3rem;
}
.lethalfantasy .tab.character-combat .main-div .wounds .wound .item-img {
  width: 24px;
  height: 24px;
  margin: 4px 0 0 0;
}
.lethalfantasy .tab.character-combat .main-div .wounds .wound .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-combat .main-div .weapons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-combat .main-div .weapons .weapon {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-combat .main-div .weapons .weapon .item-img {
  width: 24px;
  height: 24px;
  margin: 4px 0 0 0;
}
.lethalfantasy .tab.character-combat .main-div .weapons .weapon .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-combat .main-div .weapons .weapon .attack-icons a {
  margin-left: 8px;
  margin-right: 8px;
}
.lethalfantasy .tab.character-combat .main-div .armors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-combat .main-div .armors .armor {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-combat .main-div .armors .armor .item-img {
  width: 24px;
  height: 24px;
  margin: 4px 0 0 0;
}
.lethalfantasy .tab.character-combat .main-div .armors .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-combat .main-div .armors .item-detail {
  min-width: 2rem;
}
.lethalfantasy .tab.character-combat .main-div .shields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  min-width: 20rem;
}
.lethalfantasy .tab.character-combat .main-div .shields .shield {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-combat .main-div .shields .shield .item-img {
  width: 24px;
  height: 24px;
  margin: 4px 0 0 0;
}
.lethalfantasy .tab.character-combat .main-div .shields .item-detail {
  min-width: 2.5rem;
}
.lethalfantasy .tab.character-combat .main-div .shields .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-spells .main-div {
  display: grid;
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.character-spells .main-div legend a {
  font-size: calc(var(--font-size-standard) * 1.4);
  padding-left: 4px;
}
.lethalfantasy .tab.character-spells .main-div .spell-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-spells .main-div .spell-details .spell-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-spells .main-div .spell-details .spell-detail button {
  min-width: 10rem;
}
.lethalfantasy .tab.character-spells .main-div .spell-details .spell-detail .armor-hp {
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .tab.character-spells .main-div .spell-details .spell-detail .armor-hp .input {
  flex: 0;
  min-width: 3rem;
  max-width: 3rem;
}
.lethalfantasy .tab.character-spells .main-div .spells {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  min-width: 18rem;
}
.lethalfantasy .tab.character-spells .main-div .spells .spell {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-spells .main-div .spells .spell .item-img {
  min-width: 24px;
  max-width: 24px;
  height: 24px;
}
.lethalfantasy .tab.character-spells .main-div .spells .spell .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-spells .main-div prose-mirror.inactive {
  min-height: 40px;
}
.lethalfantasy .tab.character-spells .main-div prose-mirror.active {
  min-height: 150px;
}
.lethalfantasy .tab.character-miracles .main-div {
  display: grid;
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.character-miracles .main-div legend a {
  font-size: calc(var(--font-size-standard) * 1.4);
  padding-left: 4px;
}
.lethalfantasy .tab.character-miracles .main-div .miracle-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.character-miracles .main-div .miracle-details .miracle-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-miracles .main-div .miracle-details .miracle-detail button {
  min-width: 10rem;
}
.lethalfantasy .tab.character-miracles .main-div .miracle-details .miracle-detail .armor-hp {
  min-width: 20rem;
  max-width: 20rem;
}
.lethalfantasy .tab.character-miracles .main-div .miracle-details .miracle-detail .armor-hp .input {
  min-width: 3rem;
  max-width: 3rem;
}
.lethalfantasy .tab.character-miracles .main-div .miracles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  min-width: 18rem;
}
.lethalfantasy .tab.character-miracles .main-div .miracles .miracle {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.character-miracles .main-div .miracles .miracle .item-img {
  width: 24px;
  height: 24px;
}
.lethalfantasy .tab.character-miracles .main-div .miracles .miracle .name {
  min-width: 12rem;
}
.lethalfantasy .tab.character-miracles .main-div prose-mirror.inactive {
  min-height: 40px;
}
.lethalfantasy .tab.character-miracles .main-div prose-mirror.active {
  min-height: 150px;
}
.lethalfantasy .monster-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: scroll;
}
.lethalfantasy .monster-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .monster-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .monster-content input:disabled,
.lethalfantasy .monster-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .monster-content input,
.lethalfantasy .monster-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .monster-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .monster-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .monster-content .form-fields input,
.lethalfantasy .monster-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .monster-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .monster-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .monster-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
}
.lethalfantasy .monster-main {
  display: flex;
}
.lethalfantasy .monster-main .monster-left-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 4px;
}
.lethalfantasy .monster-main .monster-left-image .monster-img {
  height: 140px;
  width: 140px;
  width: auto;
  border: none;
}
.lethalfantasy .monster-main .monster-pc {
  display: flex;
  gap: 10px;
  flex: 1;
}
.lethalfantasy .monster-main .monster-pc .monster-hp {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 4px;
}
.lethalfantasy .monster-main .monster-pc .monster-hp .name {
  flex: none;
  min-width: 2.5rem;
  max-width: 2.5rem;
}
.lethalfantasy .monster-main .monster-pc .monster-hp .damage-resistance {
  flex: none;
  min-width: 6rem;
  max-width: 6rem;
}
.lethalfantasy .monster-main .monster-pc .monster-hp input {
  flex: none;
  min-width: 2.2rem;
  max-width: 2.2rem;
  margin-left: 4px;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .monster-main .monster-pc .monster-hp .character-hp-max {
  clear: both;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 4px 0;
  align-items: center;
}
.lethalfantasy .monster-main .monster-pc .monster-hp .character-hp-max input {
  width: 3.2rem;
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .monster-main .monster-pc .monster-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lethalfantasy .monster-main .monster-pc .monster-right .monster-name {
  display: flex;
}
.lethalfantasy .monster-main .monster-pc .monster-right .monster-name input {
  width: 400px;
}
.lethalfantasy .monster-main .monster-pc-play {
  min-width: 400px;
}
.lethalfantasy .monster-main .monster-pc-edit {
  min-width: 400px;
}
.lethalfantasy .monster-main .monster-characteristics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lethalfantasy .monster-main .monster-characteristics .monster-characteristic {
  display: flex;
  align-items: center;
}
.lethalfantasy .monster-main .monster-characteristics .monster-characteristic .rollable:hover,
.lethalfantasy .monster-main .monster-characteristics .monster-characteristic .rollable:focus {
  text-shadow: 0 0 8px var(--color-shadow-primary);
  cursor: pointer;
}
.lethalfantasy .monster-main .monster-characteristics .monster-characteristic span {
  min-width: 2.2rem;
  max-width: 2.2rem;
}
.lethalfantasy .monster-main .monster-characteristics .monster-characteristic .form-group {
  flex: 1;
  padding-left: 4px;
}
.lethalfantasy .monster-main .monster-characteristics .monster-characteristic .form-group .form-fields {
  flex: none;
  width: 3rem;
}
.lethalfantasy .monster-main .monster-skills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lethalfantasy .monster-main .monster-skills .monster-skill {
  display: grid;
  grid-template-columns: repeat(3, auto 2.5rem);
  gap: 0.5rem;
  align-items: center;
}
.lethalfantasy .monster-main .monster-skills .monster-skill .rollable:hover,
.lethalfantasy .monster-main .monster-skills .monster-skill .rollable:focus {
  text-shadow: 0 0 8px var(--color-shadow-primary);
  cursor: pointer;
}
.lethalfantasy .monster-main .monster-skills .monster-skill input {
  min-width: 2.2rem;
  max-width: 2.5rem;
}
.lethalfantasy .monster-main .monster-skills .monster-skill .name {
  margin-left: 4px;
}
.lethalfantasy .monster-main .monster-skills .monster-skill .form-group {
  padding-left: 4px;
}
.lethalfantasy .monster-main .monster-skills .monster-skill .form-group .form-fields {
  flex: none;
  width: 2.5rem;
}
.lethalfantasy .monster-main .monster-movements {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lethalfantasy .monster-main .monster-movements .monster-movement {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lethalfantasy .monster-main .monster-movements .monster-movement .rollable:hover,
.lethalfantasy .monster-main .monster-movements .monster-movement .rollable:focus {
  text-shadow: 0 0 8px var(--color-shadow-primary);
  cursor: pointer;
}
.lethalfantasy .monster-main .monster-movements .monster-movement .name {
  flex: 1;
  min-width: 3rem;
  margin-left: 0.5rem;
}
.lethalfantasy .monster-main .monster-movements .monster-movement .form-group {
  flex: 1;
  padding-left: 4px;
}
.lethalfantasy .monster-main .monster-movements .monster-movement .form-group .form-fields {
  flex: none;
  width: 50px;
}
.lethalfantasy .monster-main .monster-saves {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lethalfantasy .monster-main .monster-saves .monster-save {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}
.lethalfantasy .monster-main .monster-saves .monster-save .rollable:hover,
.lethalfantasy .monster-main .monster-saves .monster-save .rollable:focus {
  text-shadow: 0 0 8px var(--color-shadow-primary);
  cursor: pointer;
}
.lethalfantasy .monster-main .monster-saves .monster-save .name {
  flex: 0;
  min-width: 5rem;
  max-width: 5rem;
  margin-left: 0.5rem;
}
.lethalfantasy .monster-main .monster-saves .monster-save .name-pain {
  flex: 0;
  min-width: 3rem;
  max-width: 3rem;
  margin-left: 0.5rem;
}
.lethalfantasy .monster-main .monster-saves .monster-save .form-group {
  flex: 0;
  padding-left: 4px;
}
.lethalfantasy .monster-main .monster-saves .monster-save .form-group .form-fields {
  flex: none;
  width: 50px;
}
.lethalfantasy .monster-main .monster-characteristics-play {
  min-width: 200px;
}
.lethalfantasy .monster-main .monster-characteristic-edit {
  min-width: 200px;
}
.lethalfantasy .tab.monster-biography .main-div .biodata {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-biography .main-div .biodata .biodata-elem {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.monster-biography .main-div .biodata .biodata-elem .name {
  min-width: 8rem;
}
.lethalfantasy .monster-biography prose-mirror.inactive {
  min-height: 40px;
}
.lethalfantasy .monster-biography prose-mirror.active {
  min-height: 150px;
}
.lethalfantasy .tab.monster-skills .main-div {
  display: grid;
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.monster-skills .main-div legend a {
  font-size: calc(var(--font-size-standard) * 1);
  padding-left: 4px;
}
.lethalfantasy .tab.monster-skills .main-div .skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-skills .main-div .skills .skill {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.monster-skills .main-div .skills .skill .item-img {
  width: 24px;
  height: 24px;
}
.lethalfantasy .tab.monster-skills .main-div .skills .skill .name {
  min-width: 12rem;
}
.lethalfantasy .tab.monster-skills .main-div .gifts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-skills .main-div .gifts .gift {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.monster-skills .main-div .gifts .gift .item-img {
  width: 24px;
  height: 24px;
}
.lethalfantasy .tab.monster-skills .main-div .gifts .gift .name {
  min-width: 12rem;
}
.lethalfantasy .tab.monster-skills .main-div .vulnerabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-skills .main-div .vulnerabilities .vulnerability {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.monster-skills .main-div .vulnerabilities .vulnerability .item-img {
  width: 24px;
  height: 24px;
}
.lethalfantasy .tab.monster-skills .main-div .vulnerabilities .vulnerability .name {
  min-width: 12rem;
}
.lethalfantasy .tab.monster-equipment {
  display: grid;
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.monster-equipment legend a {
  font-size: calc(var(--font-size-standard) * 1.4);
  padding-left: 4px;
}
.lethalfantasy .tab.monster-equipment .moneys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-equipment .equipments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-equipment .equipments .equipment {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.monster-equipment .equipments .equipment .item-img {
  width: 24px;
  height: 24px;
  margin: 4px 0 0 0;
}
.lethalfantasy .tab.monster-equipment .equipments .equipment .name {
  min-width: 12rem;
}
.lethalfantasy .tab.monster-equipment .equipments .name {
  min-width: 12rem;
}
.lethalfantasy .tab.monster-combat {
  display: grid;
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.monster-combat legend a {
  font-size: calc(var(--font-size-standard) * 1.4);
  padding-left: 4px;
}
.lethalfantasy .tab.monster-combat .combat-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-combat .combat-details .combat-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.monster-combat .combat-details .combat-detail button {
  min-width: 10rem;
}
.lethalfantasy .tab.monster-combat .combat-details .combat-detail .armor-hp {
  min-width: 20rem;
  max-width: 20rem;
}
.lethalfantasy .tab.monster-combat .combat-details .combat-detail .armor-hp .input {
  min-width: 3rem;
  max-width: 3rem;
}
.lethalfantasy .tab.monster-combat .attacks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-combat .attacks .attack {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.monster-combat .attacks .attack .name {
  min-width: 8rem;
  max-width: 8rem;
}
.lethalfantasy .tab.monster-combat .attacks .attack .damage-dice {
  width: 4rem;
  max-width: 3.5rem;
}
.lethalfantasy .tab.monster-combat .attacks .attack .numeric {
  width: 2.2rem;
}
.lethalfantasy .tab.monster-combat .attacks .attack .attack-icons a {
  margin-left: 4px;
  margin-right: 4px;
}
.lethalfantasy .tab.monster-combat .ranged-attacks {
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .attack .name {
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .attack .damage-dice {
  width: 5rem;
  max-width: 5rem;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range {
  margin-top: 8px;
  border-top: 1px solid var(--color-border-light-tertiary, #ccc);
  padding-top: 6px;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range > label {
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields .range-field {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields .range-field label {
  font-size: 0.7rem;
  white-space: nowrap;
}
.lethalfantasy .tab.monster-combat .ranged-attacks .ranged-weapon-range .range-fields .range-field input {
  width: 3.5rem;
  text-align: center;
}
.lethalfantasy .tab.monster-combat .armors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-combat .armors .armor {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.monster-combat .armors .armor .item-img {
  width: 24px;
  height: 24px;
  margin: 4px 0 0 0;
}
.lethalfantasy .tab.monster-combat .armors .name {
  min-width: 12rem;
}
.lethalfantasy .tab.monster-spells {
  display: grid;
  grid-template-columns: 1fr;
}
.lethalfantasy .tab.monster-spells legend a {
  font-size: calc(var(--font-size-standard) * 1.4);
  padding-left: 4px;
}
.lethalfantasy .tab.monster-spells .spells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.lethalfantasy .tab.monster-spells .spells .spell {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lethalfantasy .tab.monster-spells .spells .spell .item-img {
  width: 24px;
  height: 24px;
}
.lethalfantasy .tab.monster-spells .spells .spell .name {
  min-width: 12rem;
}
.lethalfantasy .tab.monster-spells prose-mirror.inactive {
  min-height: 40px;
}
.lethalfantasy .tab.monster-spells prose-mirror.active {
  min-height: 150px;
}
.lethalfantasy .skill-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.lethalfantasy .skill-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .skill-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .skill-content input:disabled,
.lethalfantasy .skill-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .skill-content input,
.lethalfantasy .skill-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .skill-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .skill-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .skill-content .form-fields input,
.lethalfantasy .skill-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .skill-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .skill-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .skill-content .form-fields {
  padding-top: 4px;
}
.lethalfantasy .skill-content .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .skill-content .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .skill-content .form-group select,
.lethalfantasy .skill-content .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .skill-content .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .skill-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .skill-content .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .skill-content .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .skill-content .header {
  display: flex;
}
.lethalfantasy .skill-content .header img {
  width: 50px;
  height: 50px;
}
.lethalfantasy .skill-content input[type="checkbox"] {
  font-size: var(--font-size-14);
  width: 20px;
  padding-top: 0;
}
.lethalfantasy .skill-content input[type="checkbox"]:checked {
  background-color: rgba(0, 0, 0, 0.1);
}
.lethalfantasy .skill-content input[type="checkbox"]:checked::after {
  color: rgba(0, 0, 0, 0.1);
}
.lethalfantasy .gift-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.lethalfantasy .gift-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .gift-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .gift-content input:disabled,
.lethalfantasy .gift-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .gift-content input,
.lethalfantasy .gift-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .gift-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .gift-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .gift-content .form-fields input,
.lethalfantasy .gift-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .gift-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .gift-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .gift-content .form-fields {
  padding-top: 4px;
}
.lethalfantasy .gift-content .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .gift-content .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .gift-content .form-group select,
.lethalfantasy .gift-content .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .gift-content .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .gift-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .gift-content .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .gift-content .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .gift-content .header {
  display: flex;
}
.lethalfantasy .gift-content .header img {
  width: 50px;
  height: 50px;
}
.lethalfantasy .gift-content input[type="checkbox"] {
  font-size: var(--font-size-14);
  width: 20px;
  padding-top: 0;
}
.lethalfantasy .gift-content input[type="checkbox"]:checked {
  background-color: rgba(0, 0, 0, 0.1);
}
.lethalfantasy .gift-content input[type="checkbox"]:checked::after {
  color: rgba(0, 0, 0, 0.1);
}
.lethalfantasy .weapon-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.lethalfantasy .weapon-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .weapon-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .weapon-content input:disabled,
.lethalfantasy .weapon-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .weapon-content input,
.lethalfantasy .weapon-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .weapon-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .weapon-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .weapon-content .form-fields input,
.lethalfantasy .weapon-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .weapon-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .weapon-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .weapon-content .form-fields {
  padding-top: 4px;
}
.lethalfantasy .weapon-content .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .weapon-content .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .weapon-content .form-group select,
.lethalfantasy .weapon-content .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .weapon-content .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .weapon-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .weapon-content .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .weapon-content .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .weapon-content .header {
  display: flex;
}
.lethalfantasy .weapon-content .header img {
  width: 50px;
  height: 50px;
}
.lethalfantasy .weapon-content label {
  flex: 10%;
}
.lethalfantasy .armor-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.lethalfantasy .armor-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .armor-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .armor-content input:disabled,
.lethalfantasy .armor-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .armor-content input,
.lethalfantasy .armor-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .armor-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .armor-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .armor-content .form-fields input,
.lethalfantasy .armor-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .armor-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .armor-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .armor-content .form-fields {
  padding-top: 4px;
}
.lethalfantasy .armor-content .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .armor-content .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .armor-content .form-group select,
.lethalfantasy .armor-content .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .armor-content .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .armor-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .armor-content .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .armor-content .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .armor-content .header {
  display: flex;
}
.lethalfantasy .armor-content .header img {
  width: 50px;
  height: 50px;
}
.lethalfantasy .armor-content label {
  flex: 10%;
}
.lethalfantasy .spell-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.lethalfantasy .spell-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .spell-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .spell-content input:disabled,
.lethalfantasy .spell-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .spell-content input,
.lethalfantasy .spell-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .spell-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .spell-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .spell-content .form-fields input,
.lethalfantasy .spell-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .spell-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .spell-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .spell-content .form-fields {
  padding-top: 4px;
}
.lethalfantasy .spell-content .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .spell-content .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .spell-content .form-group select,
.lethalfantasy .spell-content .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .spell-content .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .spell-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .spell-content .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .spell-content .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .spell-content .header {
  display: flex;
}
.lethalfantasy .spell-content .header img {
  width: 50px;
  height: 50px;
}
.lethalfantasy .spell-content label {
  flex: 10%;
}
.lethalfantasy .vulnerability-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.lethalfantasy .vulnerability-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .vulnerability-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .vulnerability-content input:disabled,
.lethalfantasy .vulnerability-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .vulnerability-content input,
.lethalfantasy .vulnerability-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .vulnerability-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .vulnerability-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .vulnerability-content .form-fields input,
.lethalfantasy .vulnerability-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .vulnerability-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .vulnerability-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .vulnerability-content .form-fields {
  padding-top: 4px;
}
.lethalfantasy .vulnerability-content .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .vulnerability-content .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .vulnerability-content .form-group select,
.lethalfantasy .vulnerability-content .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .vulnerability-content .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .vulnerability-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .vulnerability-content .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .vulnerability-content .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .vulnerability-content .header {
  display: flex;
}
.lethalfantasy .vulnerability-content .header img {
  width: 50px;
  height: 50px;
}
.lethalfantasy .vulnerability-content input[type="checkbox"] {
  font-size: var(--font-size-14);
  width: 20px;
  padding-top: 0;
}
.lethalfantasy .vulnerability-content input[type="checkbox"]:checked {
  background-color: rgba(0, 0, 0, 0.1);
}
.lethalfantasy .vulnerability-content input[type="checkbox"]:checked::after {
  color: rgba(0, 0, 0, 0.1);
}
.lethalfantasy.fortune img {
  border: 0px;
}
.lethalfantasy.fortune .intro-chat {
  border-radius: 20px;
  display: flex;
  flex-direction: row;
}
.lethalfantasy.fortune .intro-chat .intro-img {
  padding: 5px;
  width: 80px;
  align-self: center;
}
.lethalfantasy.fortune .intro-chat .intro-right {
  display: flex;
  flex-direction: column;
}
.lethalfantasy.fortune .intro-chat .intro-right .introText {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  width: 210px;
  text-align: center;
}
.lethalfantasy.fortune .button.control,
.lethalfantasy.fortune .fortune-accepted {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: calc(var(--font-size-standard) * 1.3);
}
.lethalfantasy.ask-roll {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
}
.lethalfantasy .defense-request {
  padding: 12px;
  background: linear-gradient(to bottom, #3a3930 0%, #2a2920 100%);
  border: 2px solid #d4af37;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
.lethalfantasy .defense-request h3 {
  margin: 0 0 10px 0;
  color: #d4af37;
  font-size: calc(var(--font-size-standard) * 1.1);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.lethalfantasy .defense-request h3 i {
  margin-right: 6px;
}
.lethalfantasy .defense-request p {
  margin: 8px 0;
  color: #f0e6d2;
  font-size: calc(var(--font-size-standard) * 0.95);
  line-height: 1.4;
}
.lethalfantasy .defense-request p strong {
  color: #d4af37;
  font-weight: 600;
}
.lethalfantasy .defense-request .defense-prompt {
  margin-top: 12px;
  padding: 8px;
  background: rgba(212, 175, 55, 0.1);
  border-left: 3px solid #d4af37;
  border-radius: 4px;
  font-weight: 600;
  color: #d4af37;
  text-align: center;
}
.lethalfantasy .defense-request-dialog .attack-info {
  padding: 12px;
  background: linear-gradient(to bottom, rgba(42, 41, 32, 0.8) 0%, rgba(26, 25, 16, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 6px;
  margin-bottom: 16px;
}
.lethalfantasy .defense-request-dialog .attack-info p {
  margin: 6px 0;
  color: #f0e6d2;
  font-size: calc(var(--font-size-standard) * 0.95);
}
.lethalfantasy .defense-request-dialog .attack-info p strong {
  color: #d4af37;
  font-weight: 600;
}
.lethalfantasy .defense-request-dialog .weapon-selection label {
  display: block;
  margin-bottom: 8px;
  color: #d4af37;
  font-weight: 600;
  font-size: calc(var(--font-size-standard) * 0.95);
}
.lethalfantasy .defense-request-dialog .weapon-selection select {
  width: 100%;
  padding: 8px 12px;
  background: #3a3930 !important;
  border: 1px solid #d4af37;
  border-radius: 4px;
  color: #ffffff !important;
  font-size: calc(var(--font-size-standard) * 0.95);
  cursor: pointer;
}
.lethalfantasy .defense-request-dialog .weapon-selection select:focus {
  outline: none;
  border-color: #f0e6d2;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}
.lethalfantasy .defense-request-dialog .weapon-selection select option {
  background: #3a3930 !important;
  color: #ffffff !important;
  padding: 6px;
}
.lethalfantasy .defense-request-dialog .weapon-selection select option:checked,
.lethalfantasy .defense-request-dialog .weapon-selection select option:hover {
  background: #4a4940 !important;
  color: #ffffff !important;
}
.lethalfantasy .grit-luck-dialog {
  color: var(--color-text-dark-primary, #191813);
}
.lethalfantasy .grit-luck-dialog .combat-status {
  padding: 12px;
  background: linear-gradient(to bottom, rgba(42, 41, 32, 0.88) 0%, rgba(26, 25, 16, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 6px;
  margin-bottom: 16px;
}
.lethalfantasy .grit-luck-dialog .combat-status p {
  margin: 6px 0;
  color: #f0e6d2;
  font-size: calc(var(--font-size-standard) * 0.95);
}
.lethalfantasy .grit-luck-dialog .combat-status p strong {
  color: #d4af37;
  font-weight: 600;
}
.lethalfantasy .grit-luck-dialog .combat-status .bonus-info {
  color: #90EE90;
  font-style: italic;
  margin-top: 8px;
}
.lethalfantasy .grit-luck-dialog .offer-text {
  color: var(--color-text-dark-primary, #191813);
  font-size: calc(var(--font-size-standard) * 1);
  text-align: center;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.lethalfantasy .grit-luck-dialog .shield-warning {
  color: #7a4000;
  background: rgba(255, 160, 0, 0.12);
  border: 1px solid rgba(255, 160, 0, 0.4);
  border-radius: 5px;
  font-size: calc(var(--font-size-standard) * 0.88);
  padding: 6px 10px;
  margin: 0;
  text-align: center;
}
.lethalfantasy .grit-luck-dialog .shield-warning i {
  color: #c07000;
  margin-right: 5px;
}
.lethalfantasy .attack-result {
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  margin: 8px 0;
}
.lethalfantasy .attack-result.attack-success {
  background: linear-gradient(to bottom, rgba(139, 0, 0, 0.2) 0%, rgba(100, 0, 0, 0.3) 100%);
  border: 2px solid rgba(220, 20, 60, 0.6);
}
.lethalfantasy .attack-result.attack-failure {
  background: linear-gradient(to bottom, rgba(0, 100, 139, 0.2) 0%, rgba(0, 70, 100, 0.3) 100%);
  border: 2px solid rgba(70, 130, 180, 0.6);
}
.lethalfantasy .attack-result h3 {
  margin: 0 0 16px 0;
  color: #d4af37;
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.lethalfantasy .attack-result h3 i {
  margin-right: 8px;
}
.lethalfantasy .attack-result .combat-comparison {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
.lethalfantasy .attack-result .combat-comparison .combat-side {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
}
.lethalfantasy .attack-result .combat-comparison .combat-side.winner {
  background: rgba(0, 255, 0, 0.1);
  border: 2px solid rgba(0, 255, 0, 0.4);
}
.lethalfantasy .attack-result .combat-comparison .combat-side.loser {
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid rgba(255, 0, 0, 0.3);
}
.lethalfantasy .attack-result .combat-comparison .combat-side .side-label {
  font-size: calc(var(--font-size-standard) * 0.8);
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.lethalfantasy .attack-result .combat-comparison .combat-side .side-name {
  font-size: calc(var(--font-size-standard) * 1);
  color: #f0e6d2;
  font-weight: 600;
  margin-bottom: 8px;
}
.lethalfantasy .attack-result .combat-comparison .combat-side .side-roll {
  font-size: calc(var(--font-size-standard) * 1.5);
  color: #d4af37;
  font-weight: 700;
}
.lethalfantasy .attack-result .combat-comparison .combat-vs {
  font-size: calc(var(--font-size-standard) * 1.2);
  color: #d4af37;
  font-weight: 700;
  padding: 0 16px;
}
.lethalfantasy .attack-result .combat-result-text {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1.1);
  color: #f0e6d2;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}
.lethalfantasy .attack-result .combat-result-text i {
  margin-right: 8px;
}
.lethalfantasy .attack-result .combat-result-text strong {
  color: #d4af37;
}
.lethalfantasy .attack-result .attack-result-damage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.lethalfantasy .attack-result .attack-result-damage.single-btn {
  grid-template-columns: 1fr;
  max-width: 280px;
  margin: 0 auto;
}
.lethalfantasy .attack-result .attack-result-damage.spell-damage {
  grid-template-columns: 1fr;
  width: 100%;
}
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn {
  padding: 10px 14px;
  background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
  border: 1px solid #4b0000;
  border-radius: 6px;
  color: #f0e6d2;
  font-weight: 600;
  font-size: calc(var(--font-size-standard) * 0.9);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn:hover::before {
  left: 100%;
}
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn i {
  font-size: calc(var(--font-size-standard) * 1.1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn:hover {
  background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: #5b0000;
}
.lethalfantasy .attack-result .attack-result-damage .roll-damage-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.lethalfantasy .equipment-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.lethalfantasy .equipment-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .equipment-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .equipment-content input:disabled,
.lethalfantasy .equipment-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .equipment-content input,
.lethalfantasy .equipment-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .equipment-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .equipment-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .equipment-content .form-fields input,
.lethalfantasy .equipment-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .equipment-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .equipment-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .equipment-content .form-fields {
  padding-top: 4px;
}
.lethalfantasy .equipment-content .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .equipment-content .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .equipment-content .form-group select,
.lethalfantasy .equipment-content .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .equipment-content .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .equipment-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .equipment-content .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .equipment-content .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .equipment-content .header {
  display: flex;
}
.lethalfantasy .equipment-content .header img {
  width: 50px;
  height: 50px;
}
.lethalfantasy .equipment-content label {
  flex: 10%;
}
.lethalfantasy .shield-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.lethalfantasy .shield-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .shield-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .shield-content input:disabled,
.lethalfantasy .shield-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .shield-content input,
.lethalfantasy .shield-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .shield-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .shield-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .shield-content .form-fields input,
.lethalfantasy .shield-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .shield-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .shield-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .shield-content .form-fields {
  padding-top: 4px;
}
.lethalfantasy .shield-content .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .shield-content .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .shield-content .form-group select,
.lethalfantasy .shield-content .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .shield-content .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .shield-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .shield-content .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .shield-content .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .shield-content .header {
  display: flex;
}
.lethalfantasy .shield-content .header img {
  width: 50px;
  height: 50px;
}
.lethalfantasy .shield-content label {
  flex: 10%;
}
.lethalfantasy .miracle-content {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  background-image: var(--background-image-base);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: auto;
}
.lethalfantasy .miracle-content nav.tabs [data-tab] {
  color: #636060;
}
.lethalfantasy .miracle-content nav.tabs [data-tab].active {
  color: #252424;
}
.lethalfantasy .miracle-content input:disabled,
.lethalfantasy .miracle-content select:disabled {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: transparent;
  color: var(--color-dark-3);
}
.lethalfantasy .miracle-content input,
.lethalfantasy .miracle-content select {
  height: 1.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.lethalfantasy .miracle-content input[name="name"] {
  height: 2.5rem;
  margin-right: 4px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  border: none;
}
.lethalfantasy .miracle-content fieldset {
  margin-bottom: 4px;
  border-radius: 4px;
}
.lethalfantasy .miracle-content .form-fields input,
.lethalfantasy .miracle-content .form-fields select {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .miracle-content .form-fields select {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy .miracle-content legend {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  letter-spacing: 1px;
}
.lethalfantasy .miracle-content .form-fields {
  padding-top: 4px;
}
.lethalfantasy .miracle-content .form-group {
  display: flex;
  flex: 1;
  flex-direction: row;
}
.lethalfantasy .miracle-content .form-group label {
  align-content: center;
  min-width: 10rem;
  max-width: 10rem;
}
.lethalfantasy .miracle-content .form-group select,
.lethalfantasy .miracle-content .form-group input {
  text-align: left;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy .miracle-content .form-group input[type="checkbox"] {
  min-width: 1.2rem;
  max-width: 1.2rem;
  margin-right: 0.5rem;
}
.lethalfantasy .miracle-content label {
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  flex: 50%;
}
.lethalfantasy .miracle-content .align-top {
  align-self: flex-start;
  padding: 0.1rem;
  margin-right: 0.2rem;
}
.lethalfantasy .miracle-content .shift-right {
  margin-left: 2rem;
}
.lethalfantasy .miracle-content .header {
  display: flex;
}
.lethalfantasy .miracle-content .header img {
  width: 50px;
  height: 50px;
}
.lethalfantasy .miracle-content label {
  flex: 10%;
}
.application.dialog.lethalfantasy {
  color: var(--color-dark-1);
}
.application.dialog.lethalfantasy input,
.application.dialog.lethalfantasy select {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: var(--color-dark-6);
  color: var(--color-dark-2);
}
.application.dialog.lethalfantasy .apply-damage-dialog .dialog-content {
  padding: 6px;
  font-size: calc(var(--font-size-standard) * 1);
}
.application.dialog.lethalfantasy .apply-damage-dialog .dialog-content .header {
  text-align: center;
  padding: 4px;
  margin-bottom: 6px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}
.application.dialog.lethalfantasy .apply-damage-dialog .dialog-content .damage-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  margin-bottom: 6px;
  background-color: rgba(139, 0, 0, 0.1);
  border-radius: 3px;
}
.application.dialog.lethalfantasy .apply-damage-dialog .dialog-content .damage-summary .damage-value {
  color: var(--color-level-error);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
}
.application.dialog.lethalfantasy .apply-damage-dialog .dialog-content .dr-summary {
  display: flex;
  justify-content: space-around;
  gap: 4px;
  padding: 3px;
  margin-bottom: 6px;
  font-size: calc(var(--font-size-standard) * 0.85);
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}
.application.dialog.lethalfantasy .apply-damage-dialog .dialog-content .damage-options .option-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  margin: 2px 0;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}
.application.dialog.lethalfantasy .apply-damage-dialog .dialog-content .damage-options .option-line strong {
  color: var(--color-dark-1);
  font-size: calc(var(--font-size-standard) * 1.05);
}
.lethalfantasy-roll-dialog fieldset {
  padding: 4px;
}
.lethalfantasy-roll-dialog .goto-token-button {
  justify-content: center;
  align-items: center;
  align-content: center;
  margin-left: 0.5rem;
  max-width: 8rem;
  background-color: var(--color-dark-6);
  color: var(--color-dark-2);
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
}
.lethalfantasy-range-defense-dialog {
  width: 18rem;
}
.lethalfantasy-range-defense-dialog fieldset {
  padding: 4px;
}
.lethalfantasy-range-defense-dialog .fieldset-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.lethalfantasy-range-defense-dialog select {
  margin-left: 0.5rem;
  min-width: 12rem;
  max-width: 12rem;
}
.lethalfantasy-range-defense-dialog .field-section {
  display: flex;
  align-items: center;
  justify-content: left;
}
.lethalfantasy-range-defense-dialog .field-name {
  width: 5rem;
  min-width: 5rem;
  max-width: 5em;
}
.dialog-form .form-footer {
  padding: 4px;
  gap: 4px;
}
.dialog-form .form-footer button {
  min-width: 8rem;
  min-height: 2rem;
  padding: 2px 6px;
  margin: 0;
  font-size: calc(var(--font-size-standard) * 0.9);
}
.dialog-modifier {
  display: flex;
  justify-content: center;
  align-items: center;
}
.dialog-modifier select {
  border: none;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--color-dark-2);
  width: 60px;
  text-align: center;
}
.dialog-favor {
  display: flex;
  justify-content: center;
  align-items: center;
}
.dialog-favor select {
  border: none;
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--color-dark-2);
  width: 120px;
  text-align: center;
}
.main,
.dialog-damage,
.dialog-resource,
.dialog-challenge,
.dialog-save {
  margin-bottom: 0px;
  padding-bottom: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
}
.main select,
.dialog-damage select,
.dialog-resource select,
.dialog-challenge select,
.dialog-save select {
  min-width: 8rem;
  max-width: 8rem;
  margin-left: 1rem;
}
.dialog-warning {
  margin: 0.4rem 0.2rem 0.2rem;
  padding: 0.35rem 0.5rem;
  border-left: 3px solid #c8941a;
  background: rgba(200, 148, 26, 0.12);
  border-radius: 3px;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 0.9);
  color: #7a5400;
  line-height: 1.4;
}
.dialog-warning i {
  color: #c8941a;
  margin-right: 0.4rem;
}
.lethalfantasy.dice-roll,
.fvtt-lethal-fantasy.dice-roll,
.message.lethalfantasy.dice-roll,
.message.fvtt-lethal-fantasy.dice-roll {
  flex-direction: column;
  overflow: hidden;
}
.lethalfantasy.dice-roll .dice-total,
.fvtt-lethal-fantasy.dice-roll .dice-total,
.message.lethalfantasy.dice-roll .dice-total,
.message.fvtt-lethal-fantasy.dice-roll .dice-total,
.lethalfantasy.dice-roll .dice-formula,
.fvtt-lethal-fantasy.dice-roll .dice-formula,
.message.lethalfantasy.dice-roll .dice-formula,
.message.fvtt-lethal-fantasy.dice-roll .dice-formula {
  padding-top: 4px;
}
.lethalfantasy.dice-roll .dice-total,
.fvtt-lethal-fantasy.dice-roll .dice-total,
.message.lethalfantasy.dice-roll .dice-total,
.message.fvtt-lethal-fantasy.dice-roll .dice-total {
  margin-bottom: 4px;
}
.lethalfantasy.dice-roll .message-header,
.fvtt-lethal-fantasy.dice-roll .message-header,
.message.lethalfantasy.dice-roll .message-header,
.message.fvtt-lethal-fantasy.dice-roll .message-header {
  font-family: var(--font-primary);
}
.lethalfantasy.dice-roll .chat-header,
.fvtt-lethal-fantasy.dice-roll .chat-header,
.message.lethalfantasy.dice-roll .chat-header,
.message.fvtt-lethal-fantasy.dice-roll .chat-header {
  background: linear-gradient(135deg, rgba(40, 30, 20, 0.7) 0%, rgba(30, 22, 15, 0.9) 100%);
  border-bottom: 2px solid rgba(139, 69, 19, 0.4);
  padding: 6px 8px;
  margin-bottom: 6px;
}
.lethalfantasy.dice-roll .chat-header .character-info,
.fvtt-lethal-fantasy.dice-roll .chat-header .character-info,
.message.lethalfantasy.dice-roll .chat-header .character-info,
.message.fvtt-lethal-fantasy.dice-roll .chat-header .character-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lethalfantasy.dice-roll .chat-header .character-info .character-avatar,
.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-avatar,
.message.lethalfantasy.dice-roll .chat-header .character-info .character-avatar,
.message.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(139, 69, 19, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.lethalfantasy.dice-roll .chat-header .character-info .character-avatar img,
.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-avatar img,
.message.lethalfantasy.dice-roll .chat-header .character-info .character-avatar img,
.message.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.lethalfantasy.dice-roll .chat-header .character-info .character-details,
.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-details,
.message.lethalfantasy.dice-roll .chat-header .character-info .character-details,
.message.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-details {
  flex-grow: 1;
}
.lethalfantasy.dice-roll .chat-header .character-info .character-details .character-name,
.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-details .character-name,
.message.lethalfantasy.dice-roll .chat-header .character-info .character-details .character-name,
.message.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-details .character-name {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: bold;
  color: #f0e6d2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: 4px;
}
.lethalfantasy.dice-roll .chat-header .character-info .character-details .roll-type-badge,
.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-details .roll-type-badge,
.message.lethalfantasy.dice-roll .chat-header .character-info .character-details .roll-type-badge,
.message.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-details .roll-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(139, 69, 19, 0.3);
  border: 1px solid rgba(139, 69, 19, 0.5);
  border-radius: 12px;
  font-size: calc(var(--font-size-standard) * 0.9);
  color: #d4c5a9;
}
.lethalfantasy.dice-roll .chat-header .character-info .character-details .roll-type-badge i,
.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-details .roll-type-badge i,
.message.lethalfantasy.dice-roll .chat-header .character-info .character-details .roll-type-badge i,
.message.fvtt-lethal-fantasy.dice-roll .chat-header .character-info .character-details .roll-type-badge i {
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy.dice-roll .roll-details,
.fvtt-lethal-fantasy.dice-roll .roll-details,
.message.lethalfantasy.dice-roll .roll-details,
.message.fvtt-lethal-fantasy.dice-roll .roll-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin: 0 6px 6px 6px;
}
.lethalfantasy.dice-roll .roll-details .detail-item,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-item,
.message.lethalfantasy.dice-roll .roll-details .detail-item,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: calc(var(--font-size-standard) * 0.85);
}
.lethalfantasy.dice-roll .roll-details .detail-item i,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-item i,
.message.lethalfantasy.dice-roll .roll-details .detail-item i,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-item i {
  opacity: 0.7;
}
.lethalfantasy.dice-roll .roll-details .detail-item.weapon-name,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-item.weapon-name,
.message.lethalfantasy.dice-roll .roll-details .detail-item.weapon-name,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-item.weapon-name {
  font-weight: 500;
  color: #3a3a2a;
}
.lethalfantasy.dice-roll .roll-details .detail-item.other-result,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-item.other-result,
.message.lethalfantasy.dice-roll .roll-details .detail-item.other-result,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-item.other-result {
  flex-basis: 100%;
  font-style: italic;
  color: #e0d5c0;
}
.lethalfantasy.dice-roll .roll-details .detail-badge,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge,
.message.lethalfantasy.dice-roll .roll-details .detail-badge,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: calc(var(--font-size-standard) * 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lethalfantasy.dice-roll .roll-details .detail-badge.favor-badge,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.favor-badge,
.message.lethalfantasy.dice-roll .roll-details .detail-badge.favor-badge,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.favor-badge {
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.3) 0%, rgba(0, 100, 0, 0.4) 100%);
  border: 1px solid rgba(34, 139, 34, 0.6);
  color: #90ee90;
  text-shadow: 0 0 4px rgba(34, 139, 34, 0.8);
}
.lethalfantasy.dice-roll .roll-details .detail-badge.favor-badge i,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.favor-badge i,
.message.lethalfantasy.dice-roll .roll-details .detail-badge.favor-badge i,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.favor-badge i {
  color: #98fb98;
  animation: sparkle 2s ease-in-out infinite;
}
.lethalfantasy.dice-roll .roll-details .detail-badge.disfavor-badge,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.disfavor-badge,
.message.lethalfantasy.dice-roll .roll-details .detail-badge.disfavor-badge,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.disfavor-badge {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(100, 0, 0, 0.4) 100%);
  border: 1px solid rgba(139, 0, 0, 0.6);
  color: #ff6b6b;
  text-shadow: 0 0 4px rgba(139, 0, 0, 0.8);
}
.lethalfantasy.dice-roll .roll-details .detail-badge.disfavor-badge i,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.disfavor-badge i,
.message.lethalfantasy.dice-roll .roll-details .detail-badge.disfavor-badge i,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.disfavor-badge i {
  color: #ff5252;
}
.lethalfantasy.dice-roll .roll-details .detail-badge.special-badge,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.special-badge,
.message.lethalfantasy.dice-roll .roll-details .detail-badge.special-badge,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.special-badge {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.3) 0%, rgba(184, 134, 11, 0.4) 100%);
  border: 1px solid rgba(218, 165, 32, 0.6);
  color: #ffd700;
  text-shadow: 0 0 4px rgba(218, 165, 32, 0.8);
}
.lethalfantasy.dice-roll .roll-details .detail-badge.damage-badge,
.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.damage-badge,
.message.lethalfantasy.dice-roll .roll-details .detail-badge.damage-badge,
.message.fvtt-lethal-fantasy.dice-roll .roll-details .detail-badge.damage-badge {
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.3) 0%, rgba(139, 0, 0, 0.4) 100%);
  border: 1px solid rgba(178, 34, 34, 0.6);
  color: #ff8080;
}
.lethalfantasy.dice-roll .formula-section,
.fvtt-lethal-fantasy.dice-roll .formula-section,
.message.lethalfantasy.dice-roll .formula-section,
.message.fvtt-lethal-fantasy.dice-roll .formula-section {
  padding: 4px 6px;
  margin: 0 6px 6px 6px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  border: 1px solid rgba(139, 69, 19, 0.3);
}
.lethalfantasy.dice-roll .formula-section .formula-display,
.fvtt-lethal-fantasy.dice-roll .formula-section .formula-display,
.message.lethalfantasy.dice-roll .formula-section .formula-display,
.message.fvtt-lethal-fantasy.dice-roll .formula-section .formula-display {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lethalfantasy.dice-roll .formula-section .formula-display i,
.fvtt-lethal-fantasy.dice-roll .formula-section .formula-display i,
.message.lethalfantasy.dice-roll .formula-section .formula-display i,
.message.fvtt-lethal-fantasy.dice-roll .formula-section .formula-display i {
  color: #d4af37;
  font-size: calc(var(--font-size-standard) * 1);
}
.lethalfantasy.dice-roll .formula-section .formula-display .formula-text,
.fvtt-lethal-fantasy.dice-roll .formula-section .formula-display .formula-text,
.message.lethalfantasy.dice-roll .formula-section .formula-display .formula-text,
.message.fvtt-lethal-fantasy.dice-roll .formula-section .formula-display .formula-text {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 0.95);
  font-weight: 500;
  color: #3a3a2a;
}
.lethalfantasy.dice-roll .formula-section .dice-breakdown,
.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown,
.message.lethalfantasy.dice-roll .formula-section .dice-breakdown,
.message.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lethalfantasy.dice-roll .formula-section .dice-breakdown .dice-item,
.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown .dice-item,
.message.lethalfantasy.dice-roll .formula-section .dice-breakdown .dice-item,
.message.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown .dice-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(139, 69, 19, 0.2);
  border-radius: 4px;
  border: 1px solid rgba(139, 69, 19, 0.3);
}
.lethalfantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-type,
.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-type,
.message.lethalfantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-type,
.message.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-type {
  font-weight: 600;
  color: #2a2a1a;
  font-size: calc(var(--font-size-standard) * 0.85);
}
.lethalfantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-separator,
.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-separator,
.message.lethalfantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-separator,
.message.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-separator {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}
.lethalfantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-value,
.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-value,
.message.lethalfantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-value,
.message.fvtt-lethal-fantasy.dice-roll .formula-section .dice-breakdown .dice-item .dice-value {
  font-weight: bold;
  color: #ffd700;
  font-size: calc(var(--font-size-standard) * 0.95);
}
.lethalfantasy.dice-roll .result-section,
.fvtt-lethal-fantasy.dice-roll .result-section,
.message.lethalfantasy.dice-roll .result-section,
.message.fvtt-lethal-fantasy.dice-roll .result-section {
  margin: 0 6px 6px 6px;
}
.lethalfantasy.dice-roll .result-section .main-result,
.fvtt-lethal-fantasy.dice-roll .result-section .main-result,
.message.lethalfantasy.dice-roll .result-section .main-result,
.message.fvtt-lethal-fantasy.dice-roll .result-section .main-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(40, 30, 20, 0.6) 0%, rgba(20, 15, 10, 0.8) 100%);
  border-radius: 6px;
  border: 2px solid rgba(139, 69, 19, 0.5);
  margin-bottom: 6px;
}
.lethalfantasy.dice-roll .result-section .main-result .result-label,
.fvtt-lethal-fantasy.dice-roll .result-section .main-result .result-label,
.message.lethalfantasy.dice-roll .result-section .main-result .result-label,
.message.fvtt-lethal-fantasy.dice-roll .result-section .main-result .result-label {
  font-size: calc(var(--font-size-standard) * 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c9b896;
  margin: 0;
}
.lethalfantasy.dice-roll .result-section .main-result .result-value,
.fvtt-lethal-fantasy.dice-roll .result-section .main-result .result-value,
.message.lethalfantasy.dice-roll .result-section .main-result .result-value,
.message.fvtt-lethal-fantasy.dice-roll .result-section .main-result .result-value {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1.6);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.lethalfantasy.dice-roll .result-section .main-result .result-value.success,
.fvtt-lethal-fantasy.dice-roll .result-section .main-result .result-value.success,
.message.lethalfantasy.dice-roll .result-section .main-result .result-value.success,
.message.fvtt-lethal-fantasy.dice-roll .result-section .main-result .result-value.success {
  color: #90ee90;
  text-shadow: 0 0 10px rgba(34, 139, 34, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.lethalfantasy.dice-roll .result-section .main-result .result-value.failure,
.fvtt-lethal-fantasy.dice-roll .result-section .main-result .result-value.failure,
.message.lethalfantasy.dice-roll .result-section .main-result .result-value.failure,
.message.fvtt-lethal-fantasy.dice-roll .result-section .main-result .result-value.failure {
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(139, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.lethalfantasy.dice-roll .result-section .d30-result,
.fvtt-lethal-fantasy.dice-roll .result-section .d30-result,
.message.lethalfantasy.dice-roll .result-section .d30-result,
.message.fvtt-lethal-fantasy.dice-roll .result-section .d30-result {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.2) 0%, rgba(138, 43, 226, 0.3) 100%);
  border: 2px solid rgba(138, 43, 226, 0.5);
  border-radius: 6px;
  padding: 6px;
  margin-bottom: 6px;
}
.lethalfantasy.dice-roll .result-section .d30-result .d30-header,
.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-header,
.message.lethalfantasy.dice-roll .result-section .d30-result .d30-header,
.message.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  margin-bottom: 4px;
}
.lethalfantasy.dice-roll .result-section .d30-result .d30-header i,
.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-header i,
.message.lethalfantasy.dice-roll .result-section .d30-result .d30-header i,
.message.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-header i {
  color: #da70d6;
  font-size: calc(var(--font-size-standard) * 1.2);
}
.lethalfantasy.dice-roll .result-section .d30-result .d30-header .d30-label,
.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-header .d30-label,
.message.lethalfantasy.dice-roll .result-section .d30-result .d30-header .d30-label,
.message.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-header .d30-label {
  flex-grow: 1;
  font-weight: bold;
  color: #2a1a3a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: calc(var(--font-size-standard) * 0.9);
}
.lethalfantasy.dice-roll .result-section .d30-result .d30-header .d30-value,
.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-header .d30-value,
.message.lethalfantasy.dice-roll .result-section .d30-result .d30-header .d30-value,
.message.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-header .d30-value {
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-standard) * 1.5);
  font-weight: bold;
  color: #3d006e;
  background: rgba(255, 255, 255, 0.35);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(138, 43, 226, 0.4);
}
.lethalfantasy.dice-roll .result-section .d30-result .d30-message,
.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-message,
.message.lethalfantasy.dice-roll .result-section .d30-result .d30-message,
.message.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-message {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(230, 220, 255, 0.2);
  border-left: 3px solid #da70d6;
  border-radius: 4px;
  font-style: italic;
  color: #2a2a3a;
  line-height: 1.4;
}
.lethalfantasy.dice-roll .result-section .d30-result .d30-message i,
.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-message i,
.message.lethalfantasy.dice-roll .result-section .d30-result .d30-message i,
.message.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-message i {
  color: #ff69b4;
  margin-top: 2px;
  flex-shrink: 0;
}
.lethalfantasy.dice-roll .result-section .d30-result .d30-message span,
.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-message span,
.message.lethalfantasy.dice-roll .result-section .d30-result .d30-message span,
.message.fvtt-lethal-fantasy.dice-roll .result-section .d30-result .d30-message span {
  flex-grow: 1;
}
.lethalfantasy.dice-roll .outcome-badge,
.fvtt-lethal-fantasy.dice-roll .outcome-badge,
.message.lethalfantasy.dice-roll .outcome-badge,
.message.fvtt-lethal-fantasy.dice-roll .outcome-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  margin: 0 8px 10px 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: calc(var(--font-size-standard) * 1.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.lethalfantasy.dice-roll .outcome-badge.success-outcome,
.fvtt-lethal-fantasy.dice-roll .outcome-badge.success-outcome,
.message.lethalfantasy.dice-roll .outcome-badge.success-outcome,
.message.fvtt-lethal-fantasy.dice-roll .outcome-badge.success-outcome {
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.3) 0%, rgba(0, 100, 0, 0.4) 100%);
  border: 2px solid rgba(34, 139, 34, 0.6);
  color: #90ee90;
  text-shadow: 0 0 8px #228b22;
}
.lethalfantasy.dice-roll .outcome-badge.success-outcome i,
.fvtt-lethal-fantasy.dice-roll .outcome-badge.success-outcome i,
.message.lethalfantasy.dice-roll .outcome-badge.success-outcome i,
.message.fvtt-lethal-fantasy.dice-roll .outcome-badge.success-outcome i {
  font-size: calc(var(--font-size-standard) * 1.3);
}
.lethalfantasy.dice-roll .outcome-badge.failure-outcome,
.fvtt-lethal-fantasy.dice-roll .outcome-badge.failure-outcome,
.message.lethalfantasy.dice-roll .outcome-badge.failure-outcome,
.message.fvtt-lethal-fantasy.dice-roll .outcome-badge.failure-outcome {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(100, 0, 0, 0.4) 100%);
  border: 2px solid rgba(139, 0, 0, 0.6);
  color: #ff6b6b;
  text-shadow: 0 0 8px #8b0000;
}
.lethalfantasy.dice-roll .outcome-badge.failure-outcome i,
.fvtt-lethal-fantasy.dice-roll .outcome-badge.failure-outcome i,
.message.lethalfantasy.dice-roll .outcome-badge.failure-outcome i,
.message.fvtt-lethal-fantasy.dice-roll .outcome-badge.failure-outcome i {
  font-size: calc(var(--font-size-standard) * 1.3);
}
.lethalfantasy.dice-roll .outcome-badge.failure-outcome .resource-lost,
.fvtt-lethal-fantasy.dice-roll .outcome-badge.failure-outcome .resource-lost,
.message.lethalfantasy.dice-roll .outcome-badge.failure-outcome .resource-lost,
.message.fvtt-lethal-fantasy.dice-roll .outcome-badge.failure-outcome .resource-lost {
  font-size: calc(var(--font-size-standard) * 0.85);
  opacity: 0.9;
}
.lethalfantasy.dice-roll .target-info,
.fvtt-lethal-fantasy.dice-roll .target-info,
.message.lethalfantasy.dice-roll .target-info,
.message.fvtt-lethal-fantasy.dice-roll .target-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 0 6px 6px 6px;
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.2) 0%, rgba(139, 0, 0, 0.3) 100%);
  border-left: 3px solid #dc143c;
  border-radius: 6px;
  font-size: calc(var(--font-size-standard) * 0.9);
  font-weight: 500;
  color: #2a1a1a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.lethalfantasy.dice-roll .target-info i,
.fvtt-lethal-fantasy.dice-roll .target-info i,
.message.lethalfantasy.dice-roll .target-info i,
.message.fvtt-lethal-fantasy.dice-roll .target-info i {
  color: #dc143c;
  font-size: calc(var(--font-size-standard) * 1.1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}
.lethalfantasy.dice-roll .target-info strong,
.fvtt-lethal-fantasy.dice-roll .target-info strong,
.message.lethalfantasy.dice-roll .target-info strong,
.message.fvtt-lethal-fantasy.dice-roll .target-info strong {
  color: #8b0000;
  font-weight: 700;
}
.lethalfantasy.dice-roll .private-result,
.fvtt-lethal-fantasy.dice-roll .private-result,
.message.lethalfantasy.dice-roll .private-result,
.message.fvtt-lethal-fantasy.dice-roll .private-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  margin: 0 8px 10px 8px;
  background: rgba(80, 80, 80, 0.3);
  border: 2px dashed rgba(120, 120, 120, 0.5);
  border-radius: 8px;
  color: #b0b0b0;
  font-style: italic;
}
.lethalfantasy.dice-roll .private-result i,
.fvtt-lethal-fantasy.dice-roll .private-result i,
.message.lethalfantasy.dice-roll .private-result i,
.message.fvtt-lethal-fantasy.dice-roll .private-result i {
  font-size: calc(var(--font-size-standard) * 1.2);
}
@keyframes sparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}
.lethalfantasy.dice-roll img,
.fvtt-lethal-fantasy.dice-roll img,
.message.lethalfantasy.dice-roll img,
.message.fvtt-lethal-fantasy.dice-roll img {
  border: 0px;
}
.lethalfantasy.dice-roll .damage-buttons,
.fvtt-lethal-fantasy.dice-roll .damage-buttons,
.message.lethalfantasy.dice-roll .damage-buttons,
.message.fvtt-lethal-fantasy.dice-roll .damage-buttons {
  width: calc(100% - 16px);
  padding: 10px;
  margin: 0 8px 10px 8px;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.15) 0%, rgba(101, 50, 14, 0.2) 100%);
  border: 1px solid rgba(139, 69, 19, 0.3);
  border-radius: 8px;
}
.lethalfantasy.dice-roll .damage-buttons .damage-buttons-title,
.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-title,
.message.lethalfantasy.dice-roll .damage-buttons .damage-buttons-title,
.message.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: calc(var(--font-size-standard) * 1);
  text-align: center;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid,
.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid,
.message.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid,
.message.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 280px;
  margin: 0 auto;
  gap: 8px;
}
.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn,
.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn,
.message.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn,
.message.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn {
  padding: 10px 14px;
  background: linear-gradient(to bottom, #8b4513 0%, #6b3410 100%);
  border: 1px solid #4b2408;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f0e6d2;
  cursor: pointer;
  border-radius: 6px;
  font-size: calc(var(--font-size-standard) * 0.9);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn::before,
.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn::before,
.message.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn::before,
.message.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:hover::before,
.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:hover::before,
.message.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:hover::before,
.message.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:hover::before {
  left: 100%;
}
.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn i,
.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn i,
.message.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn i,
.message.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn i {
  font-size: calc(var(--font-size-standard) * 1.1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:hover,
.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:hover,
.message.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:hover,
.message.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:hover {
  background: linear-gradient(to bottom, #9b5523 0%, #7b4420 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: #5b3418;
}
.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:active,
.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:active,
.message.lethalfantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:active,
.message.fvtt-lethal-fantasy.dice-roll .damage-buttons .damage-buttons-grid .damage-roll-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.lethalfantasy.dice-roll .damage-result,
.fvtt-lethal-fantasy.dice-roll .damage-result,
.message.lethalfantasy.dice-roll .damage-result,
.message.fvtt-lethal-fantasy.dice-roll .damage-result {
  width: calc(100% - 16px);
  padding: 10px;
  margin: 0 8px 10px 8px;
  background: linear-gradient(135deg, rgba(80, 80, 80, 0.15) 0%, rgba(60, 60, 60, 0.2) 100%);
  border: 1px solid rgba(100, 100, 100, 0.3);
  border-radius: 8px;
}
.lethalfantasy.dice-roll .damage-result.auto-applied,
.fvtt-lethal-fantasy.dice-roll .damage-result.auto-applied,
.message.lethalfantasy.dice-roll .damage-result.auto-applied,
.message.fvtt-lethal-fantasy.dice-roll .damage-result.auto-applied {
  background: linear-gradient(135deg, rgba(0, 100, 0, 0.15) 0%, rgba(0, 70, 0, 0.2) 100%);
  border: 1px solid rgba(0, 150, 0, 0.4);
}
.lethalfantasy.dice-roll .damage-result .auto-damage-notice,
.fvtt-lethal-fantasy.dice-roll .damage-result .auto-damage-notice,
.message.lethalfantasy.dice-roll .damage-result .auto-damage-notice,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .auto-damage-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1a1a1a;
  font-weight: 600;
  font-size: calc(var(--font-size-standard) * 0.9);
}
.lethalfantasy.dice-roll .damage-result .auto-damage-notice i,
.fvtt-lethal-fantasy.dice-roll .damage-result .auto-damage-notice i,
.message.lethalfantasy.dice-roll .damage-result .auto-damage-notice i,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .auto-damage-notice i {
  font-size: calc(var(--font-size-standard) * 1.2);
}
.lethalfantasy.dice-roll .damage-result ul,
.fvtt-lethal-fantasy.dice-roll .damage-result ul,
.message.lethalfantasy.dice-roll .damage-result ul,
.message.fvtt-lethal-fantasy.dice-roll .damage-result ul {
  padding: 0;
  margin: 0;
}
.lethalfantasy.dice-roll .damage-result .li-apply-wounds,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.lethalfantasy.dice-roll .damage-result .li-apply-wounds > div:first-child,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds > div:first-child,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds > div:first-child,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds > div:first-child {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: calc(var(--font-size-standard) * 1);
  text-align: center;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn,
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn {
  padding: 8px 12px;
  background: linear-gradient(to bottom, #5a5850 0%, #4b4a44 100%);
  border: 1px solid #2b2a24;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f0e6d2;
  cursor: pointer;
  border-radius: 6px;
  font-size: calc(var(--font-size-standard) * 0.85);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  position: relative;
}
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn::after,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn::after,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn::after,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn::after,
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn::after,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn::after,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn::after,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:hover::after,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:hover::after,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:hover::after,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:hover::after,
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:hover::after,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:hover::after,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:hover::after,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:hover::after {
  width: 200%;
  height: 200%;
}
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:hover,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:hover,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:hover,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:hover,
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:hover,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:hover,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:hover,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:hover {
  background: linear-gradient(to bottom, #6a6860 0%, #5a5850 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  border-color: #3b3a34;
}
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:active,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:active,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:active,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .apply-wounds-btn:active,
.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:active,
.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:active,
.message.lethalfantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:active,
.message.fvtt-lethal-fantasy.dice-roll .damage-result .li-apply-wounds .combatants-grid .request-defense-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.lethalfantasy.dice-roll .attack-targets,
.fvtt-lethal-fantasy.dice-roll .attack-targets,
.message.lethalfantasy.dice-roll .attack-targets,
.message.fvtt-lethal-fantasy.dice-roll .attack-targets {
  margin: 0 8px 10px 8px;
  background: linear-gradient(135deg, rgba(80, 80, 80, 0.15) 0%, rgba(60, 60, 60, 0.2) 100%);
  border: 1px solid rgba(100, 100, 100, 0.3);
  border-radius: 8px;
}
.lethalfantasy.dice-roll .attack-targets ul,
.fvtt-lethal-fantasy.dice-roll .attack-targets ul,
.message.lethalfantasy.dice-roll .attack-targets ul,
.message.fvtt-lethal-fantasy.dice-roll .attack-targets ul {
  padding: 0;
  margin: 0;
}
.lethalfantasy.dice-roll .attack-targets .li-select-target,
.fvtt-lethal-fantasy.dice-roll .attack-targets .li-select-target,
.message.lethalfantasy.dice-roll .attack-targets .li-select-target,
.message.fvtt-lethal-fantasy.dice-roll .attack-targets .li-select-target {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lethalfantasy.dice-roll .attack-targets .li-select-target > div:first-child,
.fvtt-lethal-fantasy.dice-roll .attack-targets .li-select-target > div:first-child,
.message.lethalfantasy.dice-roll .attack-targets .li-select-target > div:first-child,
.message.fvtt-lethal-fantasy.dice-roll .attack-targets .li-select-target > div:first-child {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: calc(var(--font-size-standard) * 1);
  text-align: center;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.lethalfantasy.dice-roll .attack-targets .li-select-target .combatants-grid,
.fvtt-lethal-fantasy.dice-roll .attack-targets .li-select-target .combatants-grid,
.message.lethalfantasy.dice-roll .attack-targets .li-select-target .combatants-grid,
.message.fvtt-lethal-fantasy.dice-roll .attack-targets .li-select-target .combatants-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  justify-items: center;
}
.lethalfantasy.dice-roll .d30-message,
.fvtt-lethal-fantasy.dice-roll .d30-message,
.message.lethalfantasy.dice-roll .d30-message,
.message.fvtt-lethal-fantasy.dice-roll .d30-message {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(139, 0, 0, 0.1);
  border-left: 3px solid var(--color-level-error);
  border-radius: 3px;
  font-size: calc(var(--font-size-standard) * 0.95);
  font-style: italic;
  color: var(--color-dark-1);
}
/* -------------------------------------------- */
/* Damage Applied Message                       */
/* -------------------------------------------- */
.message .fvtt-lethal-fantasy.damage-applied-message,
.fvtt-lethal-fantasy.damage-applied-message {
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(139, 0, 0, 0.15) 100%);
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0.25rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-header,
.fvtt-lethal-fantasy.damage-applied-message .damage-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-header .damage-icon,
.fvtt-lethal-fantasy.damage-applied-message .damage-header .damage-icon {
  font-size: 2rem;
  color: #dc143c;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  animation: heartbeat 2s ease-in-out infinite;
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-header .damage-info,
.fvtt-lethal-fantasy.damage-applied-message .damage-header .damage-info {
  flex: 1;
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-header .damage-info .target-name,
.fvtt-lethal-fantasy.damage-applied-message .damage-header .damage-info .target-name {
  font-size: calc(var(--font-size-standard) * 1.1);
  font-weight: bold;
  color: #2a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-header .damage-info .damage-subtitle,
.fvtt-lethal-fantasy.damage-applied-message .damage-header .damage-info .damage-subtitle {
  font-size: calc(var(--font-size-standard) * 0.85);
  color: #5a3a3a;
  font-style: italic;
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details,
.fvtt-lethal-fantasy.damage-applied-message .damage-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-amount,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
  border-radius: 4px;
  border-left: 3px solid #dc143c;
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-amount .damage-label,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-amount .damage-label {
  font-weight: 600;
  color: #3a2a2a;
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-amount .damage-value,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-amount .damage-value {
  font-size: calc(var(--font-size-standard) * 1.4);
  font-weight: bold;
  color: #dc143c;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-amount .damage-raw,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-amount .damage-raw {
  font-size: calc(var(--font-size-standard) * 0.85);
  color: #6a4a4a;
  margin-left: 6px;
  font-style: italic;
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-reduction,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-reduction,
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-source,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  font-size: calc(var(--font-size-standard) * 0.95);
  color: #3a2a2a;
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-reduction i,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-reduction i,
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-source i,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-source i {
  color: #8b4513;
  font-size: calc(var(--font-size-standard) * 0.9);
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-reduction strong,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-reduction strong,
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-source strong,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-source strong {
  font-weight: 700;
  color: #2a1a1a;
}
.message .fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-reduction i,
.fvtt-lethal-fantasy.damage-applied-message .damage-details .damage-reduction i {
  color: #4a6fa5;
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  10%,
  30% {
    transform: scale(1.1);
  }
  20%,
  40% {
    transform: scale(1);
  }
}
/* -------------------------------------------- */
/* Progression Message                          */
/* -------------------------------------------- */
.message .fvtt-lethal-fantasy.progression-message,
.fvtt-lethal-fantasy.progression-message {
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  margin: 0.2rem 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.message .fvtt-lethal-fantasy.progression-message.progression-success,
.fvtt-lethal-fantasy.progression-message.progression-success {
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.1) 0%, rgba(0, 100, 0, 0.15) 100%);
  border: 1px solid rgba(34, 139, 34, 0.3);
}
.message .fvtt-lethal-fantasy.progression-message.progression-failure,
.fvtt-lethal-fantasy.progression-message.progression-failure {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(184, 134, 11, 0.15) 100%);
  border: 1px solid rgba(255, 140, 0, 0.3);
}
.message .fvtt-lethal-fantasy.progression-message .progression-header,
.fvtt-lethal-fantasy.progression-message .progression-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
}
.progression-success .message .fvtt-lethal-fantasy.progression-message .progression-header,
.progression-success .fvtt-lethal-fantasy.progression-message .progression-header {
  border-bottom: 1px solid rgba(34, 139, 34, 0.2);
}
.progression-failure .message .fvtt-lethal-fantasy.progression-message .progression-header,
.progression-failure .fvtt-lethal-fantasy.progression-message .progression-header {
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}
.message .fvtt-lethal-fantasy.progression-message .progression-header .progression-icon,
.fvtt-lethal-fantasy.progression-message .progression-header .progression-icon {
  font-size: 1.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.progression-success .message .fvtt-lethal-fantasy.progression-message .progression-header .progression-icon,
.progression-success .fvtt-lethal-fantasy.progression-message .progression-header .progression-icon {
  color: #228b22;
  animation: pulse-success 2s ease-in-out infinite;
}
.progression-failure .message .fvtt-lethal-fantasy.progression-message .progression-header .progression-icon,
.progression-failure .fvtt-lethal-fantasy.progression-message .progression-header .progression-icon {
  color: #ff8c00;
  animation: rotate-slow 3s linear infinite;
}
.message .fvtt-lethal-fantasy.progression-message .progression-header .progression-info,
.fvtt-lethal-fantasy.progression-message .progression-header .progression-info {
  flex: 1;
}
.message .fvtt-lethal-fantasy.progression-message .progression-header .progression-info .actor-name,
.fvtt-lethal-fantasy.progression-message .progression-header .progression-info .actor-name {
  font-size: calc(var(--font-size-standard) * 1);
  font-weight: bold;
  color: #2a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}
.message .fvtt-lethal-fantasy.progression-message .progression-header .progression-info .progression-subtitle,
.fvtt-lethal-fantasy.progression-message .progression-header .progression-info .progression-subtitle {
  font-size: calc(var(--font-size-standard) * 0.8);
  font-style: italic;
  line-height: 1.2;
  margin-top: 0.1rem;
}
.progression-success .message .fvtt-lethal-fantasy.progression-message .progression-header .progression-info .progression-subtitle,
.progression-success .fvtt-lethal-fantasy.progression-message .progression-header .progression-info .progression-subtitle {
  color: #2d5a2d;
}
.progression-failure .message .fvtt-lethal-fantasy.progression-message .progression-header .progression-info .progression-subtitle,
.progression-failure .fvtt-lethal-fantasy.progression-message .progression-header .progression-info .progression-subtitle {
  color: #8b6914;
}
.message .fvtt-lethal-fantasy.progression-message .progression-details,
.fvtt-lethal-fantasy.progression-message .progression-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon,
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-roll,
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-count,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.4rem;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  font-size: calc(var(--font-size-standard) * 0.9);
  color: #3a2a2a;
  line-height: 1.2;
}
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon i,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon i,
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll i,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-roll i,
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-count i,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-count i {
  font-size: calc(var(--font-size-standard) * 0.85);
}
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon strong,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon strong,
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll strong,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-roll strong,
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-count strong,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-count strong {
  font-weight: 700;
  color: #2a1a1a;
}
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon {
  border-left: 3px solid #8b4513;
}
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon i,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-weapon i {
  color: #8b4513;
}
.progression-success .message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll,
.progression-success .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll {
  border-left: 3px solid #228b22;
}
.progression-failure .message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll,
.progression-failure .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll {
  border-left: 3px solid #ff8c00;
}
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll .roll-label,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-roll .roll-label {
  font-weight: 600;
}
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll .roll-value,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-roll .roll-value {
  font-size: calc(var(--font-size-standard) * 1.1);
  font-weight: bold;
}
.progression-success .message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll .roll-value,
.progression-success .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll .roll-value {
  color: #228b22;
}
.progression-failure .message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll .roll-value,
.progression-failure .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll .roll-value {
  color: #ff8c00;
}
.progression-success .message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll i,
.progression-success .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll i {
  color: #228b22;
}
.progression-failure .message .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll i,
.progression-failure .fvtt-lethal-fantasy.progression-message .progression-details .progression-roll i {
  color: #ff8c00;
}
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-count,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-count {
  border-left: 3px solid #4a6fa5;
}
.message .fvtt-lethal-fantasy.progression-message .progression-details .progression-count i,
.fvtt-lethal-fantasy.progression-message .progression-details .progression-count i {
  color: #4a6fa5;
}
@keyframes pulse-success {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}
@keyframes rotate-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* -------------------------------------------- */
/* Attack Result Message                        */
/* -------------------------------------------- */
.message .attack-result,
.attack-result {
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  margin: 8px 0;
}
.message .attack-result.attack-success,
.attack-result.attack-success {
  background: linear-gradient(to bottom, rgba(139, 0, 0, 0.2) 0%, rgba(100, 0, 0, 0.3) 100%);
  border: 2px solid rgba(220, 20, 60, 0.6);
}
.message .attack-result.attack-failure,
.attack-result.attack-failure {
  background: linear-gradient(to bottom, rgba(0, 100, 139, 0.2) 0%, rgba(0, 70, 100, 0.3) 100%);
  border: 2px solid rgba(70, 130, 180, 0.6);
}
.message .attack-result h3,
.attack-result h3 {
  margin: 0 0 8px 0;
  color: #000;
  font-size: calc(var(--font-size-standard) * 1.2);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.message .attack-result h3 i,
.attack-result h3 i {
  margin-right: 8px;
}
.message .attack-result .combat-comparison,
.attack-result .combat-comparison {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
.message .attack-result .combat-comparison .combat-side,
.attack-result .combat-comparison .combat-side {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.message .attack-result .combat-comparison .combat-side.winner,
.attack-result .combat-comparison .combat-side.winner {
  background: rgba(0, 255, 0, 0.1);
  border: 2px solid rgba(0, 255, 0, 0.4);
}
.message .attack-result .combat-comparison .combat-side.loser,
.attack-result .combat-comparison .combat-side.loser {
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid rgba(255, 0, 0, 0.3);
}
.message .attack-result .combat-comparison .combat-side .side-label,
.attack-result .combat-comparison .combat-side .side-label {
  font-size: calc(var(--font-size-standard) * 0.8);
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: center;
}
.message .attack-result .combat-comparison .combat-side .side-info,
.attack-result .combat-comparison .combat-side .side-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.message .attack-result .combat-comparison .combat-side .side-name,
.attack-result .combat-comparison .combat-side .side-name {
  font-size: calc(var(--font-size-standard) * 1);
  color: #fff;
  font-weight: 700;
}
.message .attack-result .combat-comparison .combat-side .side-roll,
.attack-result .combat-comparison .combat-side .side-roll {
  font-size: calc(var(--font-size-standard) * 1.5);
  color: #f4d03f;
  font-weight: 700;
}
.message .attack-result .combat-comparison .combat-vs,
.attack-result .combat-comparison .combat-vs {
  font-size: calc(var(--font-size-standard) * 1.2);
  color: #f4d03f;
  font-weight: 700;
  padding: 4px 0;
  text-align: center;
}
.message .attack-result .combat-result-text,
.attack-result .combat-result-text {
  text-align: center;
  font-size: calc(var(--font-size-standard) * 1.1);
  color: #fff;
  margin-bottom: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-weight: 600;
}
.message .attack-result .combat-result-text i,
.attack-result .combat-result-text i {
  margin-right: 8px;
}
.message .attack-result .combat-result-text strong,
.attack-result .combat-result-text strong {
  color: #f4d03f;
  font-weight: 700;
}
.message .attack-result .attack-result-damage,
.attack-result .attack-result-damage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.message .attack-result .attack-result-damage.single-btn,
.attack-result .attack-result-damage.single-btn {
  grid-template-columns: 1fr;
  max-width: 280px;
  margin: 0 auto;
}
.message .attack-result .attack-result-damage.spell-damage,
.attack-result .attack-result-damage.spell-damage {
  grid-template-columns: 1fr;
  width: 100%;
}
.message .attack-result .attack-result-damage .roll-damage-btn,
.attack-result .attack-result-damage .roll-damage-btn {
  padding: 10px 14px;
  background: linear-gradient(to bottom, #8b0000 0%, #660000 100%);
  border: 1px solid #4b0000;
  border-radius: 6px;
  color: #f0e6d2;
  font-weight: 600;
  font-size: calc(var(--font-size-standard) * 0.9);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.message .attack-result .attack-result-damage .roll-damage-btn::before,
.attack-result .attack-result-damage .roll-damage-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}
.message .attack-result .attack-result-damage .roll-damage-btn:hover::before,
.attack-result .attack-result-damage .roll-damage-btn:hover::before {
  left: 100%;
}
.message .attack-result .attack-result-damage .roll-damage-btn i,
.attack-result .attack-result-damage .roll-damage-btn i {
  font-size: calc(var(--font-size-standard) * 1.1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}
.message .attack-result .attack-result-damage .roll-damage-btn:hover,
.attack-result .attack-result-damage .roll-damage-btn:hover {
  background: linear-gradient(to bottom, #a00000 0%, #7b0000 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: #5b0000;
}
.message .attack-result .attack-result-damage .roll-damage-btn:active,
.attack-result .attack-result-damage .roll-damage-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
#token-hud .hp-loss-wrap {
  position: absolute;
  left: 75px;
  display: none;
  top: 50%;
  width: 48px;
  text-align: start;
  overflow-y: auto;
}
#token-hud .hp-loss-wrap-col1 {
  transform: translate(-200%, -50%);
}
#token-hud .hp-loss-wrap-col2 {
  transform: translate(-300%, -50%);
}
#token-hud .hp-loss-wrap-col3 {
  transform: translate(-400%, -50%);
}
#token-hud .hp-loss-hud-active {
  display: block;
}
#token-hud .hp-loss-hud-disabled {
  display: none;
}
#token-hud .hud-loss-hp-button-select {
  max-width: 40px;
  background-image: var(--background-image-base);
  padding-top: 0;
  padding-bottom: 0;
  width: max-content;
  margin: 0;
  color: #252424;
}
#token-hud .hp-loss-wrap .hud-loss-hp-button-select {
  padding-left: 8px;
  font-size: 0.9rem;
}
/* HP Gain Styles */
#token-hud .hp-gain-wrap {
  position: absolute;
  left: 75px;
  display: none;
  top: 50%;
  width: 48px;
  text-align: start;
  overflow-y: auto;
}
#token-hud .hp-gain-wrap-col1 {
  transform: translate(-200%, -50%);
}
#token-hud .hp-gain-wrap-col2 {
  transform: translate(-300%, -50%);
}
#token-hud .hp-gain-wrap-col3 {
  transform: translate(-400%, -50%);
}
#token-hud .hp-gain-hud-active {
  display: block;
}
#token-hud .hp-gain-hud-disabled {
  display: none;
}
#token-hud .hud-gain-hp-button-select {
  max-width: 40px;
  background-image: var(--background-image-base);
  padding-top: 0;
  padding-bottom: 0;
  width: max-content;
  margin: 0;
  color: #252424;
}
#token-hud .hp-gain-wrap .hud-gain-hp-button-select {
  padding-left: 8px;
  font-size: 0.9rem;
}
/* Luck/Grit Styles */
#token-hud .luck-grit-wrap {
  position: absolute;
  left: 75px;
  display: none;
  top: 50%;
  width: 80px;
  text-align: start;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(139, 69, 19, 0.5);
  border-radius: 4px;
  padding: 4px 6px;
  transform: translate(-100%, -50%);
}
#token-hud .luck-grit-hud-active {
  display: block;
}
#token-hud .luck-grit-hud-disabled {
  display: none;
}
#token-hud .luck-grit-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0;
}
#token-hud .luck-grit-label {
  flex: 1;
  color: #c9b896;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
#token-hud .luck-grit-btn {
  width: 28px;
  height: 22px;
  padding: 0;
  background: rgba(139, 69, 19, 0.25);
  border: 1px solid rgba(139, 69, 19, 0.4);
  border-radius: 3px;
  color: #d4c5a9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#token-hud .luck-grit-btn:hover {
  background: rgba(139, 69, 19, 0.5);
  border-color: rgba(139, 69, 19, 0.7);
}
/* -------------------------------------------------- */
/* Dice Tray — injected into the Foundry chat sidebar */
/* -------------------------------------------------- */
.lf-dice-tray {
  padding: 6px 8px;
  background: linear-gradient(135deg, rgba(245, 232, 200, 0.97) 0%, rgba(238, 222, 185, 0.97) 100%), url("/systems/fvtt-lethal-fantasy/assets/ui/lethal_fantasy_background.webp") center / cover;
  border-top: 2px solid rgba(139, 69, 19, 0.5);
  border-bottom: 1px solid rgba(139, 69, 19, 0.25);
  width: 100%;
  box-sizing: border-box;
  pointer-events: all;
}
.lf-dice-tray .lf-dt-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.lf-dice-tray .lf-dt-label {
  color: #3a2a10;
  font-size: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}
.lf-dice-tray .lf-dt-count {
  width: 44px;
  flex-shrink: 0;
  padding: 3px 4px;
  background: rgba(139, 69, 19, 0.15);
  border: 1px solid rgba(139, 69, 19, 0.45);
  border-radius: 4px;
  color: #2a1a08;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.lf-dice-tray .lf-dt-count option {
  background: #f5ead0;
  color: #2a1a08;
}
.lf-dice-tray .lf-dt-count:focus {
  outline: none;
  border-color: rgba(139, 69, 19, 0.7);
  box-shadow: 0 0 4px rgba(139, 69, 19, 0.25);
}
.lf-dice-tray .lf-dt-dice {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  flex: 1;
}
.lf-dice-tray .lf-dt-die-btn {
  padding: 3px 7px;
  background: rgba(139, 69, 19, 0.15);
  border: 1px solid rgba(139, 69, 19, 0.4);
  border-radius: 4px;
  color: #2a1a08;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  line-height: 1.5;
  letter-spacing: 0.3px;
}
.lf-dice-tray .lf-dt-die-btn:hover {
  background: rgba(139, 69, 19, 0.35);
  border-color: rgba(139, 69, 19, 0.7);
  color: #5a2a00;
  box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
  transform: translateY(-1px);
}
.lf-dice-tray .lf-dt-die-btn:active {
  transform: translateY(0);
  box-shadow: none;
  background: rgba(139, 69, 19, 0.5);
}
.lf-dice-tray .lf-dt-explode-label {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: rgba(160, 80, 20, 0.7);
  font-size: 14px;
  flex-shrink: 0;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lf-dice-tray .lf-dt-explode-label:hover {
  color: rgba(200, 100, 30, 0.9);
  border-color: rgba(139, 69, 19, 0.45);
  background: rgba(139, 69, 19, 0.12);
}
.lf-dice-tray .lf-dt-explode-label input[type="checkbox"] {
  appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}
.lf-dice-tray .lf-dt-explode-label input[type="checkbox"]:checked ~ i {
  color: #cc4400;
  filter: drop-shadow(0 0 4px rgba(200, 80, 0, 0.6));
}
.lf-dice-tray .lf-dt-explode-label:has(input:checked) {
  color: #cc4400;
  border-color: rgba(139, 69, 19, 0.55);
  background: rgba(139, 60, 10, 0.2);
}
/* Free roll chat card — styled to match regular system roll cards */
.lf-free-roll-card {
  border-radius: 6px;
  overflow: hidden;
}
.lf-free-roll-card .lf-frc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: linear-gradient(135deg, rgba(40, 30, 20, 0.7) 0%, rgba(30, 22, 15, 0.9) 100%);
  border-bottom: 2px solid rgba(139, 69, 19, 0.4);
}
.lf-free-roll-card .lf-frc-header i {
  color: #c9b896;
  font-size: calc(var(--font-size-standard, 14px) * 1.1);
}
.lf-free-roll-card .lf-frc-header .lf-frc-title-text {
  font-size: calc(var(--font-size-standard, 14px) * 0.85);
  color: #c9b896;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lf-free-roll-card .lf-frc-header .lf-frc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(139, 69, 19, 0.3);
  border: 1px solid rgba(139, 69, 19, 0.5);
  border-radius: 10px;
  font-size: calc(var(--font-size-standard, 14px) * 0.85);
  font-weight: 600;
  color: #d4c5a9;
}
.lf-free-roll-card .lf-frc-dice {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(139, 69, 19, 0.3);
  border-top: none;
}
.lf-free-roll-card .lf-frc-dice .lf-frc-die-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(139, 69, 19, 0.2);
  border: 1px solid rgba(139, 69, 19, 0.3);
  border-radius: 4px;
}
.lf-free-roll-card .lf-frc-dice .lf-frc-die-chip .lf-frc-die-type {
  font-size: calc(var(--font-size-standard, 14px) * 0.85);
  font-weight: 600;
  color: #2a2a1a;
  text-transform: uppercase;
}
.lf-free-roll-card .lf-frc-dice .lf-frc-die-chip .lf-frc-die-sep {
  color: rgba(0, 0, 0, 0.35);
  font-weight: 300;
  font-size: calc(var(--font-size-standard, 14px) * 0.8);
}
.lf-free-roll-card .lf-frc-dice .lf-frc-die-chip .lf-frc-die-val {
  font-weight: bold;
  color: #ffd700;
  font-size: calc(var(--font-size-standard, 14px) * 0.95);
}
.lf-free-roll-card .lf-frc-dice .lf-frc-die-chip .lf-frc-die-val .lf-dt-explode-icon {
  font-size: 8px;
  color: #ffcc00;
  margin-left: 2px;
  vertical-align: super;
  text-shadow: 0 0 4px rgba(255, 200, 0, 0.8);
}
.lf-free-roll-card .lf-frc-dice .lf-frc-die-chip.lf-frc-max {
  background: rgba(139, 90, 19, 0.35);
  border-color: rgba(200, 116, 42, 0.6);
}
.lf-free-roll-card .lf-frc-dice .lf-frc-die-chip.lf-frc-max .lf-frc-die-val {
  color: #ff9a40;
  text-shadow: 0 0 6px rgba(200, 116, 42, 0.6);
}
.lf-free-roll-card .lf-frc-dice .lf-frc-die-chip.lf-frc-min {
  background: rgba(139, 20, 20, 0.25);
  border-color: rgba(139, 34, 34, 0.5);
}
.lf-free-roll-card .lf-frc-dice .lf-frc-die-chip.lf-frc-min .lf-frc-die-val {
  color: #ff6b6b;
}
.lf-free-roll-card .lf-frc-total-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(40, 30, 20, 0.6) 0%, rgba(20, 15, 10, 0.8) 100%);
  border: 2px solid rgba(139, 69, 19, 0.5);
}
.lf-free-roll-card .lf-frc-total-bar .lf-frc-total-label {
  font-size: calc(var(--font-size-standard, 14px) * 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c9b896;
}
.lf-free-roll-card .lf-frc-total-bar .lf-frc-total-value {
  font-family: var(--font-primary, serif);
  font-size: calc(var(--font-size-standard, 14px) * 1.6);
  font-weight: bold;
  color: #e8d5a0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
