#move_errors {
  width: 100%;
  max-width: 1280px;
  position: fixed;
  bottom: 72px;
  z-index: 100;
  background: var(--move-errors);
  color: #fff;
  text-align: center;
  font-family: 'Acme';
  font-size: 20px;
  box-shadow: inset 0 0 0 1px black;

  #show_failed_words, #close_move_errors {
    position: absolute;
    right: 10px;
    font-size: 35px;
    color: white;
    top: 8px;
    cursor: pointer;

    &:active {
      color: #444;
    }
  }

  #close_move_errors {
    right: auto;
    left: 12px;
    top: 6px;
  }

  .failed_words {
    display: none;
  }

  .content {
    padding: 15px 50px;

    ul {
      display: inline-block;

      li {
        font-size: 20px;
      }
    }
  }

  .word_not_found {
    color: gold;
  }
}

#move_history {
  clear: both;
  position: relative;
  margin: 0;

  .move_desc {
    margin-bottom: 6px;
    padding: 7px 9px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: #fff;
    color: #34475a;
    line-height: 1.3;
    box-shadow: 0 1px 3px rgba(25, 48, 68, 0.04);

    &:last-child {
      margin-bottom: 0;
    }

    &:hover {
      border-color: #bdd1df;
      background: #fbfdff;
    }

    &.passed, &.swapped {
      color: #647181;
    }

    .move_summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 28px;
    }

    .move_meta {
      display: flex;
      align-items: center;
      min-width: 0;
    }

    .number {
      box-sizing: border-box;
      width: 24px;
      height: 24px;
      margin: 0 7px 0 0;
      border-radius: 999px;
      background: #e7eef4;
      color: #526171;
      font-size: 12px;
      line-height: 24px;
    }

    .created_at {
      top: 0;
      margin-right: 7px;
      color: #7b8793;
      font-size: 12px;
    }

    .username {
      margin: 0 7px 0 0;
      padding: 3px 7px;
      border: 1px solid transparent;
      border-left-width: 3px;
      border-radius: 6px;
      background-image: none;
      color: #263746;
      font-size: 15px;
      line-height: 18px;
    }

    .username.player_1 {
      border-color: #9ddcf8;
      border-left-color: var(--player-1);
      background: #e8f7fd;
    }

    .username.player_2 {
      border-color: #f0b4ae;
      border-left-color: var(--player-2);
      background: #fcecea;
    }

    .total_points {
      color: #263746;
      font-size: inherit;
    }

    .move_score_breakdown {
      display: flex;
      flex: none;
      align-items: center;
      gap: 5px;
    }

    .points_bar {
      display: inline-flex;
      float: none;
      overflow: hidden;
      padding: 0;
      border: 1px solid #d4dde5;
      border-radius: 7px;
      background: #eef2f5;
      box-shadow: 0 1px 2px rgba(25, 48, 68, 0.08);

      .point {
        box-sizing: border-box;
        float: none;
        width: auto;
        min-width: 30px;
        height: 28px;
        padding: 0 7px;
        border-right: 1px solid rgba(38, 55, 70, 0.12);
        color: #34475a;
        line-height: 28px;

        .value {
          margin: 0;
          font-size: 14px;
          line-height: inherit;
        }

        &.bp {
          background: #f2e4f5;
          color: #792a87;
        }

        &.tp {
          background: #eef2f5;
        }

        &.player_1 {
          background: #e8f7fd;
          color: #176b96;
        }

        &.player_2 {
          background: #fcecea;
          color: #a63329;
        }

        &:hover {
          color: inherit;
        }
      }
    }

    .move_icons {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      padding: 0;
      line-height: 1;
    }

    .move_detail {
      margin: 5px 0 0 31px;
      padding-top: 5px;
      border-top: 1px solid #edf1f4;
      color: #536271;
      font-size: 13px;
      line-height: 1.35;
    }

    .move_text {
      top: 0;
      line-height: inherit;
    }

    .words_made a.dict {
      font-size: inherit;
    }
  }

  .no_data {
    margin: 8px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  #move_history .move_desc {
    .move_summary {
      align-items: flex-start;
    }

    .move_meta {
      flex-wrap: wrap;
      row-gap: 3px;
    }

    .points_bar .point {
      min-width: 27px;
      padding: 0 5px;
    }

    .move_detail {
      margin-left: 0;
    }
  }
}

.move_desc {
  display: block;
  overflow: hidden;
  position: relative;
  color: #333;
  border-bottom: 1px solid var(--border);
  line-height: 17px;
  padding: 3px;
  font-size: 16px;
  font-family: 'Acme';

  .number {
    font-family: 'Acme';
    font-size: 14px;
    margin: 0 5px;
    width: 14px;
    text-align: center;
    height: auto;
    display: inline-block;
  }

  .username {
    font-family: 'Acme';
    font-size: 16px;
    position: relative;
    color: #333;
    padding: 4px 5px;
    margin-right: 5px;
    display: inline-block;
  }

  .created_at {
    color: #888;
    margin: 0 5px 0 0;
    display: inline-block;
    position: relative;
    top: 1px;
  }

  .move_text {
    position: relative;
    top: 1px;
    line-height: 16px;
  }

  .move_icons {
    float: right;
    padding: 0 5px;
  }

  .total_points {
    color: #000;
    font-family: 'Acme';
    font-size: 16px;
  }

  .total_difference {
    cursor: pointer;

    &:hover {
      color: #000;
      font-weight: bold;
    }
  }

  .icon16 {
    position: relative;
    top: 3px;
    margin-right: 3px;
  }

  .words_made {
    a.dict {
      font-size: 16px;
      text-decoration: underline;
      font-family: 'Acme';
      cursor: pointer;

      &:hover {
        color: dodgerblue;
      }
    }
  }

  .points_bar {
    float: right;

    .point {
      width: 28px;

      &:last-child {
        border: 0;
      }
    }
  }

  .bingo_move {
    a {
      color: crimson;
    }
  }
}
