/* Change for Main Layout Start */
.game-io-grid__column:is(.betting-history, .betting-players) .game-area-card__table :is(th, td) {
  padding: 5px !important;
}

.game-area-chips {
  max-height: 218px;
  overflow-y: auto;
}

.game-area-chips::-webkit-scrollbar {
  width: 5px;
}

.game-area-chips::-webkit-scrollbar-thumb {
  background-color: hsl(var(--base));
}

.game-area-chips::-webkit-scrollbar-track {
  background-color: hsl(var(--base-two));
}

@media screen and (max-width:1199px) {
  .game-area-actions>:not(:last-child) {
    margin-bottom: 15px !important;
  }

  .game-area-chips {
    display: none !important;
  }
}


.game__status {
  background: #ffffff1f;
  padding-inline: 40px !important;

  @media screen and (max-width: 1299px) {
    padding-inline: 10px !important;
  }

  @media screen and (max-width: 575px) {
    padding-inline: auto !important;
  }
}

.game-area-timer__value:has(span) {
  justify-content: flex-end !important;
}



/* Change for Main Layout End */



.game-io-main {
  height: 100%;
  background-size: cover;
  border-radius: 12px;
  border: 1px solid hsl(var(--border-color)/0.5);
  background-color: hsl(var(--gray-d-400)/0.5);
  backdrop-filter: blur(5px);
  position: relative;
}

/* Game layout Design Start */
.game-io-grid {
  --board-height: 530px;
  display: grid;
  gap: 18px;
  grid-template-rows: var(--board-height) 1fr;
  grid-template-columns: 400px 1fr 450px;

  @media screen and (max-width: 1799px) {
    --board-height: 510px;
  }

  @media screen and (max-width: 1699px) {
    --board-height: 525px;
    grid-template-columns: 400px 1fr 400px;
  }

  @media screen and (min-width: 1100px) and (max-width: 1599px) {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
  }

  @media screen and (max-width: 1099px) {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }


  @media screen and (max-width: 575px) {
    gap: 10px;
  }
}

.game-io-grid__column.betting-table .game-area-actions {
  border-top: none;
  padding-top: 0px;
  margin-bottom: 0;
}

@media screen and (min-width: 1600px) {
  .game-io-grid__column.betting-board {
    grid-row-start: 1 !important;
    grid-row: span 1 / span 1;
    grid-column-start: 2;
  }

  .game-io-grid__column.betting-history {
    grid-column-start: 2;
    grid-row-start: 2;
    grid-column: span 2/ span 2;
  }

  .game-io-grid__column.betting-players {
    grid-row-start: 1 !important;
    grid-row: span 2 / span 2;
    grid-column-start: 1;
  }

  .game-io-grid__column.betting-table {
    grid-row-start: 1 !important;
    grid-row: span 1 / span 1;
    grid-column-start: 3;
  }
}



@media screen and (min-width: 1200px) and (max-width: 1599px) {

  .game-io-grid__column.betting-players,
  .game-io-grid__column.betting-history {
    grid-row-start: 2;
  }
}



.game-io-grid__column.betting-history .game-area-card,
.game-io-grid__column.betting-players .game-area-card {
  max-height: 1215px;

  @media screen and (max-width: 1599px) {
    max-height: 500px;
  }

  @media screen and (max-width: 575px) {
    max-height: 400px;
  }
}


/* Game Layout Design End */

/* Game Board Design */

.game-io .game-io__header {
  --lean-over: 29deg;
  --shifted: -24px;

  background-color: hsl(var(--base));
  margin-inline: 40px;
  position: relative;
  width: fit-content;
  padding-inline: 10px;
  margin-inline: auto;
  z-index: 5;

  &::after,
  &::before {
    content: '';
    content: '';
    position: absolute;
    top: 0;
    left: var(--shifted);
    height: 100%;
    width: 42px;
    border-bottom-left-radius: 8px;
    background-color: hsl(var(--base));
    transform: skew(var(--lean-over), 0deg);
    z-index: -1;

    @media screen and (max-width:640px) {
      display: none;
    }
  }

  &::after {
    right: var(--shifted);
    left: auto;
    border-bottom-right-radius: 8px;
    transform: skew(calc(var(--lean-over) * -1), 0deg);
  }

  @media screen and (max-width:640px) {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border-radius: 12px 12px 0 0;
    width: 100%;
  }
}

.game-io__header-link {
  --inline: 16px;
  color: hsl(var(--white));
  font-family: var(--heading-font);
  border-right: 1px solid hsl(var(--white));
  padding-right: var(--inline);
  margin-right: var(--inline);
  margin-block: 14px;

  &.active {
    color: hsl(var(--base-two));
  }


  @media screen and (width < 675px) {
    --inline: 8px;
    margin-block: 8px;
  }

  &:last-child {
    @media screen and (width < 575px) {
      border-right: 0;
      --inline: 0px;
    }
  }

}

.game-io__header__bottom .game-io__header-link {
  &:last-child {
    border-right: 0;
  }
}

@media screen and (width < 575px) {
  .game-io__header__top {
    border-bottom: 1px solid hsl(var(--white));
  }

  .game-io__header__bottom {
    flex-basis: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;

  }

}

.game-io-table {
  --store-shifted: 25px;
  --card-space: 10px;
  --result-height: 175px;
  --result-width: 120px;
  --right-space: calc(var(--result-width) + var(--card-space));
  --joker-height: 160px;
  --joker-width: 110px;
  position: relative;
  padding-top: 30px;
  padding-inline: 130px;

  @media screen and (max-width: 1799px) {
    padding-top: 0px;
  }



  @media screen and (max-width:1699px) {
    --card-space: 5px;
    --result-height: 170px;
    --result-width: 115px;
    --joker-height: 160px;
    --joker-width: 110px;
    padding-inline: 150px;
  }

  @media screen and (max-width:1440px) {
    --result-height: 150px;
    --result-width: 105px;
    --joker-height: 140px;
    --joker-width: 95px;
  }

  @media screen and (max-width:1199px) {
    --card-space: 10px;
    --result-height: 150px;
    --result-width: 100px;
    --joker-height: 140px;
    --joker-width: 85px;
    padding-inline: 130px;
  }

  @media screen and (max-width:768px) {
    padding-inline: 10px;
  }

  @media screen and (max-width:465px) {
    --card-space: 5px;
    --result-height: 150px;
    --result-width: 105px;
    --joker-height: 140px;
    --joker-width: 110px
  }

  @media screen and (max-width:424px) {
    --result-height: 120px;
    --result-width: 85px;
    --joker-height: 110px;
    --joker-width: 80px
  }

  @media screen and (max-width:375px) {
    --result-height: 110px;
    --result-width: 79px;
    --joker-height: 103px;
    --joker-width: 74px;
  }

  &.joker {
    --right-space: calc(var(--joker-width) + var(--card-space));

    .card-back {
      --result-height: var(--joker-height);
      --result-width: var(--joker-width);
    }
  }

  .stored-card {
    position: absolute;
    top: -5px;
    left: var(--store-shifted);

    @media screen and (max-width:1799px) {
      svg {
        top: -10px;
        width: 80px;
      }
    }

    @media screen and (max-width:768px) {
      --store-shifted: -79px;
      top: -95px;
      display: none;
    }
  }

  .fresh-card {
    left: auto;
    right: var(--store-shifted);
  }

  .card-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 550px;
    margin-inline: auto;
    gap: 15px;

    @media screen and (max-width:1699px) {
      gap: 10px;
    }

    @media screen and (max-width:424px) {
      gap: 5px;
    }
  }

  .card-preview__item {
    height: calc(var(--result-height) + (var(--card-space) * 2));
    width: calc(var(--result-width) + (var(--card-space) * 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(51, 65, 85, 0.50);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.50);
    backdrop-filter: blur(5px);
    flex-shrink: 0;


    @media screen and (max-width:424px) {
      .card-preview__item-text {
        font-size: 14px;
      }
    }


    .flip-card {
      height: calc(100% - (var(--card-space) * 2));
      width: calc(100% - (var(--card-space) * 2));
      position: absolute;
      inset: var(--card-space);
      display: none;



      .flip-card__inner {
        transform-style: preserve-3d;
        transform: rotateY(180deg);
        height: 100%;

        .card-thumb {
          width: 100%;
          height: 100%;
        }


        .preview-card {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }

    &.flip .flip-card {
      display: block;
    }

    &:has(.preview-card img) .flip-card {
      display: block;
    }

    &.show {
      z-index: 3;

      .card-preview__item-text {
        color: hsl(var(--success));
      }
    }

  }

  .card-preview__item.joker {
    height: calc(var(--joker-height) + (var(--card-space) * 2));
    width: calc(var(--joker-width) + (var(--card-space) * 2));
    border: 1px solid hsl(var(--base));
    background: rgba(37, 54, 95, 0.50);



  }
}

.game-io-super-table {
  text-align: center;
  margin-top: 17px;

  @media screen and (max-width: 1199px) and (min-width: 575px) {
    padding-bottom: 15px;
  }

  @media screen and (width < 575px) {
    padding-bottom: 12px;
  }
}

.game-io-super-table__item {
  flex: 1 auto;
}

.game-io-super-table__number {
  display: flex;
  align-content: center;
  justify-content: center;
  margin-block: 9px;
  gap: 5px;
}

.game-io-super-table__number-item {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.50);
  background: #162240;
  backdrop-filter: blur(5px);
  width: 60px;
  height: 70px;

  @media screen and (max-width: 575px) {
    width: clamp(2.625rem, -0.4861rem + 15.5556vw, 4.375rem);
    height: 50px;
    font-size: clamp(1.375rem, 0.0417rem + 6.6667vw, 2.125rem);
  }
}

.bet-table {
  height: 100%;
  padding: 24px 10px;
  border-radius: 12px;
  border: 1px solid hsl(var(--border-color)/0.5);
  background-color: hsl(var(--gray-d-400)/0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;

  @media screen and (max-width:1209px) {
    padding: 14px 20px;

  }

  @media screen and (max-width:768px) {
    padding: 10px 10px;

  }

  @media screen and (max-width:575px) {
    padding: 10px 8px;

  }

}

.game-io__bet-table {
  --board-color: #00AEEF;
  --board-bg: #04334D;


  .bet-table__item {
    display: flex;
    justify-content: space-between;
    border-radius: 250px;
    border: 1px solid var(--board-color);
    background: var(--board-bg);

    &:not(:last-child) {
      margin-bottom: 24px;

      @media screen and (max-width: 1199px) {
        margin-bottom: 15px;
      }
    }

  }

  .bet-table__title {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    &:first-child {
      border-top-left-radius: inherit;
      border-bottom-left-radius: inherit;
    }

    &:last-child {
      border-top-right-radius: inherit;
      border-bottom-right-radius: inherit;
    }
  }

  .bet-table__count {
    display: flex;
    width: 64px;
    height: 64px;
    padding: 4px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    font-family: var(--heading-font);
    position: relative;
    background-color: var(--board-color);
    color: hsl(var(--white));
    z-index: 1;

    &::after {
      content: '';
      position: absolute;
      inset: 4px;
      border: 1px solid var(--board-bg);
      z-index: -1;
    }

    @media screen and (max-width:1199px) {
      width: 50px;
      height: 50px;
      font-size: 30px;

      &::after {
        display: none;
      }
    }

    @media screen and (max-width:575px) {
      width: 45px;
      height: 45px;
      font-size: 25px;
    }
  }
}

.game-area-stake,
.game-area-stake__value {
  position: relative;
  z-index: 10 !important;
}

.bet-table__item.item-red {
  --board-color: #FF3B3B;
  --board-bg: #4B0404;
}

.game-io-actions {
  margin-top: 24px;

}

.game-io-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;

}


.game-io-slot {
  --card-width: 130px;
  --card-height: 200px;

  position: absolute;
  inset: 16px;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.50);
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(5px);
  z-index: 3;
  padding: 10px;

  &.has-slider {
    padding: 10px 40px;

  }

  &.io-info-overlay {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: unset;
    inset: 16px 16px;
  }


  @media screen and (max-width:991px) {
    --card-width: 100px;
    --card-height: 150px;
  }

  @media screen and (max-width:768px) {
    inset: 10px;
  }

  @media screen and (max-width:575px) {
    padding-top: 70px !important;

    &.has-slider {
      padding: 10px 25px;
    }

    ;
  }

  @media screen and (max-width:424px) {
    inset: 6px;
    padding-top: 85px !important;
  }



  .swiper-wrapper {
    width: var(--card-width);
  }


}

.io-info-overlay h2 {
  font-size: clamp(1.25rem, 0.9375rem + 1.5625vw, 2.5rem);
}

.game-io-slot__inner {
  position: relative;
}

.game-io-slot__title {
  text-align: center;
  margin-block: 53px 24px;

  @media screen and (max-width: 465px) {
    margin-block: 27px 10px;
  }
}

.game-io-slot__card-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  text-align: center;
}

.game-io-slot__card-preview {
  width: var(--card-width);
  height: var(--card-height);
  border-radius: 12px;
  border: 1px solid #CCCCCC;
  background: hsl(var(--white));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;

  @media screen and (max-width: 465px) {
    width: 100px;
    height: auto;
  }
}

.io-AboveBelow {
  @media screen and (max-width: 575px) {
    padding-top: 90px !important;
  }

  .game-io-slot__card-preview {
    @media screen and (max-width: 465px) {
      width: 80px;
      height: 120px;
    }
  }

  .game-io-slot__card-list {
    @media screen and (max-width: 465px) {
      gap: 10px;
    }
  }

  .game-io-slot__actions {
    @media screen and (max-width: 465px) {
      margin-top: 40px;
    }
  }
}

.game-io-slot__card-value {
  color: hsl(var(--black));

  &.face-card {
    font-size: clamp(3rem, 0.3009rem + 5.3704vw, 5rem);
  }
}

.game-io-slot__card-ratio {
  text-align: center;
}

.game-io-suits__card-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  text-align: center;

  @media screen and (max-width:1399px) {
    gap: 25px;
  }

  @media screen and (max-width:768px) {
    gap: 10px;
  }
}

.io-colors .game-io-slot__card-preview {
  &::before {
    --size: 56px;
    content: '';
    position: absolute;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: #DA4434;
  }

  &.black::before {
    background: #000;

  }
}

.slider-next,
.slider-prev {
  --swipe: -40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  font-size: 30px;
  color: hsl(var(--white));

  &.swiper-button-disabled {
    opacity: 0.5;
    pointer-events: none;
  }

  @media screen and (max-width: 575px) {
    --swipe: -26px;
    width: 20px;
    height: 20px;
    font-size: 18px;
  }
}

.slider-next {
  right: var(--swipe);

  &.swiper-button-disabled+.swiper-button-disabled,
  &.swiper-button-disabled:has(+.swiper-button-disabled) {
    display: none;
  }


}

.slider-container .swiper-wrapper .swiper-slide:first-child {
  margin-left: auto;
}

.slider-prev {
  left: var(--swipe);
}

.game-io-slot__actions {
  --icon-color: hsl(var(--white));

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;

  @media screen and (max-width: 465px) {
    margin-top: 12px;
  }


}

.game-io-slot__btn .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--icon-color);
  transition: all .3s;

  svg {
    transition: all .3s;
    stroke: var(--icon-color);
  }

  @media screen and (width < 768px) {
    width: 40px;
    height: 40px;

    svg {
      width: 25px;
    }
  }
}

.game-io-slot__btn .text {
  color: hsl(var(--body-color));
  margin-top: 3px;

}

.game-io-slot__btn:hover {
  --icon-color: hsl(var(--base))
}

.game-io-slot__btn.clear:hover {
  --icon-color: hsl(var(--danger))
}


.game-io__top {
  padding: 16px 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid hsl(var(--border-color)/0.5);
  margin-bottom: 32px;

  @media screen and (max-width: 1199px) {
    padding-inline: 5px;
  }

  @media screen and (max-width: 767px) {
    padding: 16px;
  }

  @media screen and (max-width: 575px) {
    padding: 12px;
    row-gap: 5px;
  }
}



.card-back {
  --animation-time: 0.6s;
  position: absolute;
  perspective: 500px;
  right: var(--result-right);
  top: var(--result-top);
  height: var(--result-height);
  width: var(--result-width);
  z-index: 2;
  display: none;
}

.card-back.animate {
  display: block;
  animation: card-animation var(--animation-time) ease forwards;

  .card-back__inner {
    height: inherit;
    animation: flip-card;
    animation-duration: 0.5s;
    animation-delay: var(--animation-time);
    animation-fill-mode: forwards;
  }
}


.card-back.animate {
  .card-back__inner {
    height: inherit;
    animation: flip-card;
    animation-duration: 0.5s;
    animation-delay: var(--animation-time);
    animation-fill-mode: forwards;
  }
}


.card-back.animate {
  .card-back__inner {
    height: inherit;
    animation: flip-card;
    animation-duration: 0.5s;
    animation-delay: var(--animation-time);
    animation-fill-mode: forwards;
  }
}


.card-back.flip {
  animation: card-animation-backwards var(--animation-time) ease forwards;
  animation-duration: 0.6s;
  animation-delay: 0.5s;

  .card-back__inner {
    animation: flip-card-reverse;
    animation-duration: 0.5s;
    animation-delay: 0s;
    height: inherit;
    animation-fill-mode: forwards;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
  }

  .card-back__inner {
    height: inherit;
    animation: flip-card;
    animation-duration: 0.5s;
    animation-delay: var(--animation-time);
    animation-fill-mode: forwards;
  }
}



.card-back.flip {
  animation: card-animation-backwards var(--animation-time) ease forwards;
  animation-duration: 0.6s;
  animation-delay: 0.5s;

  .card-back__inner {
    animation: flip-card-reverse;
    animation-duration: 0.5s;
    animation-delay: 0s;
    height: inherit;
    animation-fill-mode: forwards;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
  }
}

.card-thumb,
.preview-card {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  height: var(--result-height);
  width: var(--result-width);

  img {
    height: var(--result-height);
    width: var(--result-width);
    max-width: unset
  }
}

.card-thumb {
  height: inherit;
  backface-visibility: hidden;
  position: absolute;
  inset: 0;

}

.game-area-dealing__info {
  max-width: 142px;
  width: 100%;
  position: relative;
  z-index: 10;
  
  @media screen and (max-width: 575px) {
    max-width: 100px;
    order: 3;
  }
}

.game-area-dealing-no:has(.d-none) {
  display: none;
}

.game-area-dealing-no__value {
  color: hsl(var(--white));
  text-align: right;

}

.game-area-dealing-no__value:has(svg) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 10;
}

.game-area-dealing-no__value svg {
  --size: 0.8em;
  width: var(--size);
  height: var(--size);
}

@media screen and (max-width: 575px) {
  .game-area-dealing-no__value {
    font-size: clamp(1.5rem, 1.2615rem + 1.1923vw, 2rem);
  }
}

.game-area-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid hsl(var(--border-color));
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-area-btns {
  margin-top: auto;
}



@media screen and (max-width: 575px) {
  .game-area-actions {
    margin-top: 16px;
  }


}

/* Style the back side */
.preview-card {
  transform: rotateY(180deg);
}


@keyframes flip-card {
  0% {
    transform-style: preserve-3d;
    transform: rotateY(0);
  }

  100% {
    transform-style: preserve-3d;
    transform: rotateY(180deg);
  }
}

@keyframes flip-card-reverse {
  0% {
    transform-style: preserve-3d;
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(0);
    transform-style: preserve-3d;
  }
}

@keyframes card-animation {
  0% {
    right: 31px;
    top: 54px;
    height: 55px;
    transform: rotate(118deg);
  }

  30% {
    right: 80px;
    top: 4px;
    height: 130px;
    transform: rotate(0deg) skew(-19deg, 1deg);
  }

  100% {
    right: var(--result-right);
    top: var(--result-top);
    height: var(--result-height);
    transform: rotate(0deg) skew(0deg);
  }
}

.game-area-card__table {
  min-width: max-content;
}


@keyframes card-animation-backwards {

  0% {
    left: calc(100% - var(--result-right) - var(--card-width));
    top: var(--result-top);
    height: var(--result-height);
    transform: rotate(0deg) skew(0deg);
  }

  100% {
    top: 52px;
    left: calc(var(--shifted) + 3px);
    height: 87px;
    transform: rotate(0deg) skew(0deg);
  }
}

/* baccarat game css */
.game-rc-grid:has(.baccarat-game) {
  --rc-height: 615px;
}

@keyframes pulsate {

  100% {

    text-shadow:
      0 0 4px var(--text-color),
      0 0 11px var(--text-color),
      0 0 19px var(--text-color),
      0 0 40px #bc13fe,
      0 0 80px #bc13fe,
      0 0 90px #bc13fe,
      0 0 100px #bc13fe,
      0 0 150px #bc13fe;

  }

  0% {

    text-shadow:
      0 0 2px var(--text-color),
      0 0 4px var(--text-color),
      0 0 6px var(--text-color),
      0 0 10px #bc13fe,
      0 0 45px #bc13fe,
      0 0 55px #bc13fe,
      0 0 70px #bc13fe,
      0 0 80px #bc13fe;

  }
}

.card-preview__item.flip .flip-card__inner {
  animation: flip-card-reverse 1s ease-in-out forwards;
}


.card-preview__item.flip .flip-card {
  --end-top-adjust: 5px;
  --end-left-adjust: 36px;
  --end-width: 58px;
  --end-height: 90px;
  animation: back-to-slot 1s ease-in-out forwards;
  animation-delay: 1s;

  @media screen and (max-width: 1799px) {
    --end-top-adjust: 14px;
    --end-left-adjust: 35px;
    --end-width: 46px;
    --end-height: 74px;
  }

  @media screen and (max-width: 768px) {
    --end-top-adjust: 0px;
    --end-left-adjust: 10px;
    --end-width: 0px;
    --end-height: 0px;
  }

}

@keyframes back-to-slot {
  5% {
    transform: skew(10deg) translateY(-10px);
  }

  100% {
    transform: skew(0deg) translateY(0px);
    left: calc(var(--left) + var(--end-left-adjust));
    top: calc(var(--top) + var(--end-top-adjust));
    width: var(--end-width);
    height: var(--end-height, auto);
  }
}