.application.dialog.lethalfantasy {
  color: var(--color-dark-1);

  input,
  select {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: var(--color-dark-6);
    color: var(--color-dark-2);
  }

  .apply-damage-dialog {
    .dialog-content {
      padding: 6px;
      font-size: calc(var(--font-size-standard) * 1);

      .header {
        text-align: center;
        padding: 4px;
        margin-bottom: 6px;
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
      }

      .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;

        .damage-value {
          color: var(--color-level-error);
          font-size: calc(var(--font-size-standard) * 1.2);
          font-weight: bold;
        }
      }

      .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;
      }

      .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;

          strong {
            color: var(--color-dark-1);
            font-size: calc(var(--font-size-standard) * 1.05);
          }
        }
      }
    }
  }
}

.lethalfantasy-roll-dialog {
  fieldset {
    padding: 4px;
  }
  .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;

  fieldset {
    padding: 4px;
  }
  .fieldset-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  select {
    margin-left: 0.5rem;
    min-width: 12rem;
    max-width: 12rem;
  }
  .field-section {
    display: flex;
    align-items: center;
    justify-content: left;
  }
  .field-name {
    width: 5rem;
    min-width: 5rem;
    max-width: 5em;
  }
}

.dialog-form {
  .form-footer {
    padding: 4px;
    gap: 4px;
    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;
  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;
  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);
  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;
  i {
    color: #c8941a;
    margin-right: 0.4rem;
  }
}

.lethalfantasy,
.fvtt-lethal-fantasy,
.message.lethalfantasy,
.message.fvtt-lethal-fantasy {
  &.dice-roll {
  flex-direction: column;
  overflow: hidden;

  .dice-total,
  .dice-formula {
    padding-top: 4px;
  }
  .dice-total {
    margin-bottom: 4px;
  }
  .message-header {
    font-family: var(--font-primary);
  }

  // Chat header with character info
  .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;

    .character-info {
      display: flex;
      align-items: center;
      gap: 8px;

      .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);

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border: 0;
        }
      }

      .character-details {
        flex-grow: 1;

        .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;
        }

        .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;

          i {
            font-size: calc(var(--font-size-standard) * 1);
          }
        }
      }
    }
  }

  // Roll details and modifiers
  .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;

    .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);

      i {
        opacity: 0.7;
      }

      &.weapon-name {
        font-weight: 500;
        color: #3a3a2a;
      }

      &.other-result {
        flex-basis: 100%;
        font-style: italic;
        color: #e0d5c0;
      }
    }

    .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;

      &.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);

        i {
          color: #98fb98;
          animation: sparkle 2s ease-in-out infinite;
        }
      }

      &.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);

        i {
          color: #ff5252;
        }
      }

      &.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);
      }

      &.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;
      }
    }
  }

  // Formula section
  .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);

    .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);

      i {
        color: #d4af37;
        font-size: calc(var(--font-size-standard) * 1);
      }

      .formula-text {
        font-family: var(--font-primary);
        font-size: calc(var(--font-size-standard) * 0.95);
        font-weight: 500;
        color: #3a3a2a;
      }
    }

    .dice-breakdown {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;

      .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);

        .dice-type {
          font-weight: 600;
          color: #2a2a1a;
          font-size: calc(var(--font-size-standard) * 0.85);
        }

        .dice-separator {
          color: rgba(255, 255, 255, 0.4);
          font-weight: 300;
        }

        .dice-value {
          font-weight: bold;
          color: #ffd700;
          font-size: calc(var(--font-size-standard) * 0.95);
        }
      }
    }
  }

  // Result section
  .result-section {
    margin: 0 6px 6px 6px;

    .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;

      .result-label {
        font-size: calc(var(--font-size-standard) * 0.9);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #c9b896;
        margin: 0;
      }

      .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);

        &.success {
          color: #90ee90;
          text-shadow: 0 0 10px rgba(34, 139, 34, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.8);
        }

        &.failure {
          color: #ff6b6b;
          text-shadow: 0 0 10px rgba(139, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.8);
        }
      }
    }

    .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;

      .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;

        i {
          color: #da70d6;
          font-size: calc(var(--font-size-standard) * 1.2);
        }

        .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);
        }

        .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);
        }
      }

      .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;

        i {
          color: #ff69b4;
          margin-top: 2px;
          flex-shrink: 0;
        }

        span {
          flex-grow: 1;
        }
      }
    }
  }

  .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;

    &.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 rgba(34, 139, 34, 1);

      i {
        font-size: calc(var(--font-size-standard) * 1.3);
      }
    }

    &.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 rgba(139, 0, 0, 1);

      i {
        font-size: calc(var(--font-size-standard) * 1.3);
      }

      .resource-lost {
        font-size: calc(var(--font-size-standard) * 0.85);
        opacity: 0.9;
      }
    }
  }

  .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);

    i {
      color: #dc143c;
      font-size: calc(var(--font-size-standard) * 1.1);
      filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }

    strong {
      color: #8b0000;
      font-weight: 700;
    }
  }

  .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;

    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);
    }
  }

  img {
    border: 0px;
  }

  .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;

    .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);
    }

    .damage-buttons-grid {
      display: grid;
      grid-template-columns: 1fr;
      max-width: 280px;
      margin: 0 auto;
      gap: 8px;

      .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;

        &::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;
        }

        &:hover::before {
          left: 100%;
        }

        i {
          font-size: calc(var(--font-size-standard) * 1.1);
          filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
        }

        &: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;
        }

        &: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);
        }
      }
    }
  }

  .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;

    &.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);
    }

    .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);

      i {
        font-size: calc(var(--font-size-standard) * 1.2);
      }
    }

    ul {
      padding: 0;
      margin: 0;
    }

    .li-apply-wounds {
      list-style: none;
      margin: 0;
      padding: 0;
      display: none;

      > 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;
      }

      .combatants-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;

        .apply-wounds-btn,
        .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;

          &::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;
          }

          &:hover::after {
            width: 200%;
            height: 200%;
          }

          &: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;
          }

          &: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);
          }
        }
      }
    }
  }

  // Style pour la section attack-targets (identique à damage-result)
  .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;

    ul {
      padding: 0;
      margin: 0;
    }

    .li-select-target {
      list-style: none;
      margin: 0;
      padding: 0;

      > 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;
      }

      .combatants-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        justify-items: center;
      }
    }
  }

  .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);

  .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);

    .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;
    }

    .damage-info {
      flex: 1;

      .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);
      }

      .damage-subtitle {
        font-size: calc(var(--font-size-standard) * 0.85);
        color: #5a3a3a;
        font-style: italic;
      }
    }
  }

  .damage-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    .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;

      .damage-label {
        font-weight: 600;
        color: #3a2a2a;
      }

      .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);
      }

      .damage-raw {
        font-size: calc(var(--font-size-standard) * 0.85);
        color: #6a4a4a;
        margin-left: 6px;
        font-style: italic;
      }
    }

    .damage-reduction,
    .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;

      i {
        color: #8b4513;
        font-size: calc(var(--font-size-standard) * 0.9);
      }

      strong {
        font-weight: 700;
        color: #2a1a1a;
      }
    }

    .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);

  &.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);
  }

  &.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);
  }

  .progression-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;

    .progression-success & {
      border-bottom: 1px solid rgba(34, 139, 34, 0.2);
    }

    .progression-failure & {
      border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    }

    .progression-icon {
      font-size: 1.5rem;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

      .progression-success & {
        color: #228b22;
        animation: pulse-success 2s ease-in-out infinite;
      }

      .progression-failure & {
        color: #ff8c00;
        animation: rotate-slow 3s linear infinite;
      }
    }

    .progression-info {
      flex: 1;

      .actor-name {
        font-size: calc(var(--font-size-standard) * 1.0);
        font-weight: bold;
        color: #2a1a1a;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
        line-height: 1.2;
      }

      .progression-subtitle {
        font-size: calc(var(--font-size-standard) * 0.8);
        font-style: italic;
        line-height: 1.2;
        margin-top: 0.1rem;

        .progression-success & {
          color: #2d5a2d;
        }

        .progression-failure & {
          color: #8b6914;
        }
      }
    }
  }

  .progression-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;

    .progression-weapon,
    .progression-roll,
    .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;

      i {
        font-size: calc(var(--font-size-standard) * 0.85);
      }

      strong {
        font-weight: 700;
        color: #2a1a1a;
      }
    }

    .progression-weapon {
      border-left: 3px solid #8b4513;

      i {
        color: #8b4513;
      }
    }

    .progression-roll {
      .progression-success & {
        border-left: 3px solid #228b22;
      }

      .progression-failure & {
        border-left: 3px solid #ff8c00;
      }

      .roll-label {
        font-weight: 600;
      }

      .roll-value {
        font-size: calc(var(--font-size-standard) * 1.1);
        font-weight: bold;

        .progression-success & {
          color: #228b22;
        }

        .progression-failure & {
          color: #ff8c00;
        }
      }

      i {
        .progression-success & {
          color: #228b22;
        }

        .progression-failure & {
          color: #ff8c00;
        }
      }
    }

    .progression-count {
      border-left: 3px solid #4a6fa5;

      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;

  &.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);
  }

  &.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);
  }

  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;

    i {
      margin-right: 8px;
    }
  }

  .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;

    .combat-side {
      flex: 1;
      padding: 8px;
      border-radius: 6px;
      display: flex;
      flex-direction: column;
      gap: 4px;

      &.winner {
        background: rgba(0, 255, 0, 0.1);
        border: 2px solid rgba(0, 255, 0, 0.4);
      }

      &.loser {
        background: rgba(255, 0, 0, 0.1);
        border: 2px solid rgba(255, 0, 0, 0.3);
      }

      .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;
      }

      .side-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
      }

      .side-name {
        font-size: calc(var(--font-size-standard) * 1);
        color: #fff;
        font-weight: 700;
      }

      .side-roll {
        font-size: calc(var(--font-size-standard) * 1.5);
        color: #f4d03f;
        font-weight: 700;
      }
    }

    .combat-vs {
      font-size: calc(var(--font-size-standard) * 1.2);
      color: #f4d03f;
      font-weight: 700;
      padding: 4px 0;
      text-align: center;
    }
  }

  .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;

    i {
      margin-right: 8px;
    }

    strong {
      color: #f4d03f;
      font-weight: 700;
    }
  }

  .attack-result-damage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;

    &.single-btn {
      grid-template-columns: 1fr;
      max-width: 280px;
      margin: 0 auto;
    }

    &.spell-damage {
      grid-template-columns: 1fr;
      width: 100%;
    }

    .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;

      &::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;
      }

      &:hover::before {
        left: 100%;
      }

      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;
      }

      &: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;
      }

      &: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);
      }
    }
  }
}
