#new_game_container {
  #board_show {
    overflow: hidden;
    position: relative;

    .board_controls {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;

      a {
        margin: 0;
      }
    }

    .prev_board, .next_board {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border: 1px solid #d8e0e8;
      border-radius: 8px;
      background: #f8fafc;
      color: #526171;
      font-size: 25px;

      &:hover {
        border-color: #9dc6df;
        background: #eaf4fb;
        color: #176b96;
      }
    }

    .random_board {
      background: url("/assets/shuffle-143f1d3b.png");
      background-size: cover;
      height: 38px;
      width: 38px;
      display: block;

      &:hover {
        background-position: 0 -38px;
      }

      &:active {
        background-position: 0 0;
      }
    }

    .board_filter {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;

      #select_game {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 38px;
        height: 38px;
        border: 1px solid #d8e0e8;
        border-radius: 8px;
        background: #f8fafc;
        color: #526171;
        font-size: 25px;
        cursor: pointer;
        text-align: center;

        &:hover {
          border-color: #9dc6df;
          background: #eaf4fb;
          color: #176b96;
        }
      }

      .open {
        border-color: #78bddd;
        background: #eaf6fc;
        color: #176b96;
      }

      #new_games_list_wrap {
        height: 40px;
        flex-grow: 1;
        min-width: 0;
        z-index: 2;
        padding: 0 6px;

        #new_games_list {
          box-sizing: border-box;
          width: 100%;
          max-height: 40px;
          border: 1px solid #d8e0e8;
          border-radius: 8px;
          background: #fff;

          .selected {
            .name {
              padding: 7px 10px;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }
          }
        }
      }
    }

    .desc {
      text-align: center;
      max-width: 680px;
      margin: 0 auto;
      padding: 8px 10px 12px;
      color: #647181;
      font-size: 14px;
      line-height: 1.45;
    }

    #play_area {
      margin-top: 5px;
      text-align: center;

      #game_board {
        background-color: #263442;
        border: 5px solid #263442;
        border-radius: 5px;
        box-shadow: 0 3px 10px rgba(25, 48, 68, 0.18);
        display: inline-block;
        position: relative;

        &:hover {
          .purchase_game {
            opacity: 1;
          }
        }

        .purchase_game {
          font-family: 'Acme';
          font-size: 6em;
          position: absolute;
          left: 0;
          right: 0;
          z-index: 1;
          opacity: 0.7;
          text-shadow: 0 5px 5px #000;

          .value {
            color: var(--token-text);
          }
        }

        .cell {
          border-radius: 0;
          height: 18px;
          width: 18px;

          .cell_desc {
            font-size: 9px;
            width: 18px;
            top: 5px;
          }
        }
      }
    }

    #outer_rack {
      text-align: center;
      margin-top: 10px;

      #rack {
        text-align: left;
        background: #333;
        display: inline-block;
        height: 18px;
        border: 2px solid #000;
        border-radius: 3px;
        padding: 2px;
        cursor: pointer;

        &:hover {
          border-color: lightcyan;
          box-shadow: 0 0 2px #000;

          .active_tile {
            background: lightcyan;
          }
        }

        .active_tile {
          height: 18px;
          width: 18px;
          margin: 0 1px;
          cursor: pointer;

          .letter_value {
            font-size: 18px;
            margin: 2px 0 0 1px;
          }

          .point_value {
            display: none;
          }
        }
      }
    }

    .game_count {
      display: inline-block;
      margin-top: 10px;
      border-radius: 999px;
      background: #eef3f7;
      color: #526171;
      font-family: 'Acme';
      font-size: 14px;
      padding: 5px 10px;
    }
  }
}

@media (max-width: 480px) {
  #new_game_container #board_show .board_filter {
    flex-wrap: wrap;
    row-gap: 6px;

    .board_controls {
      flex: 0 0 100%;
      order: 1;
    }

    #new_games_list_wrap {
      flex: 1 1 0;
      order: 2;
      padding: 0;
    }

    #select_game {
      order: 3;
      flex: none;
      margin-right: 0;
    }
  }

  #new_game_container #board_show #play_area {
    overflow-x: auto;

    #game_board .cell {
      box-sizing: border-box;
      width: 16px;
      height: 16px;

      .cell_desc {
        width: 100%;
        font-size: 8px;
        top: 4px;
      }
    }
  }
}
