@import 'press-plus/common/style/gp-match/palette.scss';
@import 'press-plus/common/style/gp-match/mixin.scss';



.press-progress {
  width: 7.1rem;
  margin: .2rem auto 0;
  padding: 0 0;
  overflow-x: auto;

  &__main {
    min-width: 7.1rem;
    display: inline-flex;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  
  &__item {
    width: 1.96rem;
    height: 1rem;
    padding-top: .12rem;
    margin-left: -.18rem;
    padding-left: .18rem;
    color: #c7cfd9;
    font-size: $font-m;
    line-height: .4rem;
    background: rgba(178, 164, 198, .2);
    text-align: center;
    position: relative;
    flex: 1;
    box-sizing: border-box;
    clip-path: polygon(
      0 0,
      calc(100% - .2rem) 0,
      100% 50%,
      calc(100% - .2rem) 100%,
      0 100%,
      .2rem 50%
    );

    &--active {
      color: $color-main;
      background: #7040f5 url('https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/peace.png') center .12rem no-repeat;
      background-size: 2.2rem .55rem;
      box-shadow: inset 0px 0px 40px rgba(150, 181, 225, .2);
      position: relative;
  
      &::after {
        box-shadow: inset 0px 0px 40px rgba(150, 181, 225, .2);
        background: #7040f5;
        height: 1.16rem;
        top: -.08rem;
        right: .02rem;
      }
  
      &::before {
        box-shadow: inset 0px 0px 40px rgba(150, 181, 225, .2);
        background: #7040f5;
      }
  
      .press-progress__name {
        color: $color-white;
        font-weight: 600;
      }
  
      .press-progress__time {
        color: rgba(255, 255, 255, .75);
      }
    }
  
    &:first-child {
      color: rgba(33, 33, 36, .75);
      position: relative;
      clip-path: polygon(
        0 0,
        calc(100% - .2rem) 0,
        100% 50%,
        calc(100% - .2rem) 100%,
        0 100%
      );

      .press-progress__name {
        width: calc(100% - .16rem);
      }
  
      .press-progress__time {
        width: calc(100% - .16rem);
      }
  
      &.press-progress__item--active {
        box-shadow: inset 0px 0px 40px rgba(150, 181, 225, .2);
        position: relative;
      }
    }
    
    &:last-child {
      color: rgba(33, 33, 36, .75);
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 100%,
        .2rem 50%
      );

      .press-progress__name {
        width: calc(100% - .16rem);
      }
  
      .press-progress__time {
        width: calc(100% - .16rem);
      }
  
      &.press-progress__item--active {
        position: relative;
      }
    }
  }

  &__name {
    color: rgba(33, 33, 36, .75);
    width: 100%;
    font-size: $font-s;
  }

  &__time {
    font-size: $font-xs;
    width: 100%;
    color: rgba(33, 33, 36, .55);
    display: block;
  }
}

