@use "../atoms/colours";
@use "../atoms/numbers";
@use "../atoms/assets";
@use "sass:color";

.dsa41.sheet.actor.character {

  .sheet-header {
    position: relative;

    .attributes {
      display: flex;

      .attribute.rollable {
        width: 48px;
        height: 48px;
        position: relative;
        box-shadow: inset numbers.$dice-box-inset numbers.$dice-box-inset numbers.$dice-box-blur-radius colours.$dice-box-shadow;
        background: assets.$dice-box-background;
        margin-left: 2px;
        border: numbers.$dice-box-border-width inset colours.$dice-box-border-color;

        .die {
          stroke-width: 0.5;

          svg {
            position: absolute;
            left: -6px;
            top: -6px;
            bottom: -6px;
            right: -6px;

            path {
              fill: colours.$attribute-die-color;
            }
          }
        }

        .wert {
          font-weight: bold;
          position: absolute;
          left: -2px;
          width: 48px;
          top: -2px;
          font-size: smaller;
          line-height: 48px;
          vertical-align: middle;
          text-align: center;
          color: colours.$attribute-die-label-color;
        }

        .name {
          position: absolute;
          left: 0;
          right: 0;
          bottom: 0;
          line-height: 12px;
          vertical-align: middle;
          text-align: center;
          color: colours.$attribute-label-color;
          background-color: colours.$attribute-label-background-color;
        }
      }

      &.colorfulDice {

        &.Mut {

          .die svg path {
            fill: colours.$attribute-die-co-color;
          }

          .wert {
            color: colours.$attribute-die-co-text-color;
          }
        }

        .Klugheit {

          .die svg path {
            fill: colours.$attribute-die-sm-color;
          }

          .wert {
            color: colours.$attribute-die-sm-text-color;
          }
        }

        .Intuition {

          .die svg path {
            fill: colours.$attribute-die-in-color;
          }

          .wert {
            color: colours.$attribute-die-in-text-color;
          }
        }

        .Charisma {

          .die svg path {
            fill: colours.$attribute-die-ch-color;
          }

          .wert {
            color: colours.$attribute-die-ch-text-color;
          }
        }

        .Geschicklichkeit {

          .die svg path {
            fill: colours.$attribute-die-dx-color;
          }

          .wert {
            color: colours.$attribute-die-dx-text-color;
          }
        }

        .Fingerfertigkeit {

          .die svg path {
            fill: colours.$attribute-die-ag-color;
          }

          .wert {
            color: colours.$attribute-die-ag-text-color;
          }
        }

        .Konstitution {

          .die svg path {
            fill: colours.$attribute-die-bd-color;
          }

          .wert {
            color: colours.$attribute-die-bd-text-color;
          }
        }

        .Körperkraft {

          .die svg path {
            fill: colours.$attribute-die-st-color;
          }

          .wert {
            color: colours.$attribute-die-st-text-color;
          }
        }

      }

    }
  }
}
