@use "./_colours";
@use "./_numbers";
@use "./_assets";
@use "sass:color";

.dsa41.sheet.actor.character {

  .sheet-header {
    position: relative;

    .attributes {
      position: absolute;
      top: 8px;
      right: 4px;
      height: 48px;
      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: 4px;
            top: 4px;
            bottom: 4px;
            right: 4px;
          }

          .border {
            fill: rgba(0, 0, 0, 0);
            stroke: colours.$attribute-die-border-color;
          }

          .center {
            fill: colours.$attribute-die-color;
            stroke: colours.$attribute-die-border-color;
          }

          .topleft {
            fill: color.adjust(colours.$attribute-die-color, $lightness: numbers.$lighter_factor);
            stroke: colours.$attribute-die-border-color;
          }

          .bottomleft {
            fill: color.adjust(colours.$attribute-die-color, $lightness: numbers.$lightest_factor);
            stroke: colours.$attribute-die-border-color;
          }

          .topright {
            fill: color.adjust(colours.$attribute-die-color, $lightness: numbers.$darken_factor);
            stroke: colours.$attribute-die-border-color;
          }

          .bottomright, .bottom {
            fill: color.adjust(colours.$attribute-die-color, $lightness: numbers.$darkest_factor);
            stroke: colours.$attribute-die-border-color;
          }
        }

        .wert {
          font-weight: bold;
          position: absolute;
          left: 0;
          width: 48px;
          top: 0;
          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;
        }
      }
    }
  }
}
