/* 原创绩效徽章资源层：图形负责等级识别，文字与分数保持为可编辑 HTML。 */

@media screen {
  .level-badge,
  .final-grade-badge {
    min-height: 42px;
    gap: 6px;
    padding: 3px 10px 3px 4px;
  }

  .level-emblem {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    isolation: isolate;
  }

  .level-emblem img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
  }

  .level-emblem-code {
    position: relative;
    z-index: 1;
    display: grid;
    width: 45%;
    height: 45%;
    place-items: center;
    color: #302653;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .level-badge.is-empty,
  .final-grade-badge.is-waiting {
    min-height: 36px;
    padding: 5px 11px 5px 5px;
  }

  .id-result-stack .level-badge,
  .id-result-stack .final-grade-badge {
    min-height: 44px;
  }

  .id-result-stack .level-emblem {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .id-final-result .level-emblem-code {
    color: #33235f;
  }

  .role-table .level-emblem {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .role-table .level-badge,
  .role-table .final-grade-badge {
    min-height: 38px;
  }

  .level-choice {
    min-height: 184px;
  }

  .level-choice > .level-emblem {
    width: 58px;
    height: 58px;
    margin: 0 0 9px -4px;
    flex-basis: 58px;
  }

  .level-choice > .level-emblem .level-emblem-code {
    font-size: 15px;
  }

  .level-choice.is-selected > .level-emblem {
    filter: drop-shadow(0 7px 10px rgba(32, 19, 95, 0.22));
  }

  .level-choice.is-selected > .level-emblem .level-emblem-code {
    color: #302653;
  }

  @media (max-width: 620px) {
    .level-choice {
      min-height: 112px;
      grid-template-columns: 58px minmax(0, 1fr) auto;
      align-items: center;
      column-gap: 10px;
    }

    .level-choice > .level-emblem {
      grid-row: 1 / 3;
      margin: 0;
    }

    .level-choice p {
      grid-column: 2 / -1;
    }
  }
}
