@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --desc-max-width: 1328px;
  --leaderboard-desc-item-height: 38px;
  --tournament-desc-shows-count: 2.5;
  --trnmt-win-desc-rank-size: 43px;

  /* Mobile */
  --tournament-mobile-height: 480px;
  --tournament-shows-count: 1.5;

  --leaderboard-item-height: 30px;
  --leaderboard-item-gap: 4px;
  --trnmt-leaderboard-rank-width: 26px;
  --trnmt-leaderboard-rank-height: 26px;
  --trnmt-win-rank-size: 33px;

  --zoom-mobile-content: 1.4;
}

body.ios {
  .trnmt-info-popup-container .trnmt-info-content p,
  .trnmt-info-popup-container .trnmt-info-header h4,
  .trnmt-info-popup-container .trnmt-info-btn,
  .trnmt-footer-info-text,
  .trnm-status-title,
  .trnm-status-timer > span,
  .trnmt-card-type > span,
  .trnmt-popup-content-title,
  .trnmt-popup-content-info > p,
  .trnmt-popup-content div,
  .trnmt-popup-content button,
  .trnmt-popup-content span,
  .tournament-card h5,
  .tournament-card span,
  .tournament-card b,
  .trnmt-popup-container b,
  .trnmt-prize-pts > div,
  .trnmt-prize-bottom,
  .trnmt-popup-info-content > ul * {
    /* Fix for iOS zoom issue */
    zoom: 1.0001;
  }
}

body.open-tournament-popup {
  overflow: hidden;
}

.gamescontainer #tournaments-list ul {
  height: unset;
  align-items: unset;
}

#tournaments-container {
  margin-top: 30px;
  position: relative;
}

#tournament-popup {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0px;
  z-index: 310;
  background: #22231e;
  background: rgba(41, 40, 37, 0.7);
  backdrop-filter: blur(1.3px);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;

  .trnmt-popup-content {
    display: flex;
    flex-direction: column;
    position: relative;
    .trnmt-popup-content-title {
      color: #fff;
      text-align: center;
      text-shadow: 0 4px 4px rgba(0, 0, 0, 0.4), 0 0 4.5px #ffbd00;
      font-family: "Open Sans";
      font-size: 26px;
      font-style: normal;
      font-weight: 800;
      letter-spacing: -1px;
      text-transform: uppercase;
    }
  }

  .trnmt-popup-win-img {
    position: absolute;
    top: -45px;
    transform: translateY(-50%);
    z-index: -1;
    > img {
      width: 100%;
    }
  }

  .trnmt-popup-content-info {
    color: #f1f2f7;
    font-size: 14px;
    font-weight: 300;
    margin-top: 18px;
    p {
      margin: 0px;
    }
  }
}

#tournament-widget > a {
  position: relative;
}

#widget-tournament-red-dot {
  position: absolute;
  top: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  background: red;
  right: 0px;
}

#tournament-popup:has(.trnmt-popup-info) {
  backdrop-filter: unset;
}

#tournament-popup.hideit {
  display: none;
}

#tournaments-list {
  overflow: auto;
}

#tournaments-list > ul {
  display: flex;
  gap: 8px;
  margin: 0;
  list-style: none;
  padding: 0px;
}

#tournaments-container > .gamecontainer-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.info-popup-loader-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-popup-loader-container.hideit {
  display: none;
}

.info-popup-loader {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 8px solid #3498db;
  width: 50px;
  height: 50px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.trnmt-green-button {
  transition: all 0.3s ease;
  border-radius: 100px;
  border: 1px solid #00ec83;
  background: linear-gradient(
    180deg,
    rgba(0, 236, 131, 0.54) 10%,
    rgba(32, 75, 42, 0.54) 106%
  );
  box-shadow: 0 0 12px 0 rgba(0, 236, 131, 0.8);
}

.trnmt-green-button:hover {
  background: linear-gradient(
    180deg,
    rgba(0, 236, 131, 0.54) 30%,
    rgba(32, 75, 42, 0.54) 106%
  );
  text-decoration: none;
}
.trnmt-green-button:active {
  background: linear-gradient(
    180deg,
    rgba(32, 75, 42, 0.54) 10%,
    rgba(0, 236, 131, 0.54) 106%
  );
  text-decoration: none;
}

.leaderboard-sticky-obs {
  position: relative;
  bottom: var(--leaderboard-item-height);
  /* Fixed gap issue */
  margin-top: -2px;
  margin-bottom: -2px;
}

.trnmt-gamelist-arrow {
  top: 70%;
  transform: translateY(-50%);
  position: absolute;
  border-radius: 26px;
  background: rgba(35, 35, 31, 0.7);
  box-shadow: 0 0.5px 1.2px 0 rgba(0, 0, 0, 0.8),
    0 0.2px 0.4px 0 rgba(217, 217, 217, 0.7) inset,
    0 0 1px 0 rgba(139, 137, 133, 0.3) inset;
  backdrop-filter: blur(0.5px);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    width: 7px;
    height: 7px;
  }
}

.trnmt-gamelist-arrow.right-arrow {
  right: -9px;
}

.trnmt-gamelist-arrow.left-arrow {
  left: -9px;
}

.trnmt-gamelist-arrow.left-arrow > img {
  transform: rotate(180deg);
}

.tournament-scroll-area {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.tournament-scroll-area::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

.tournament-scroll-area::-webkit-scrollbar {
  width: 7px;
}

.tournament-scroll-area::-webkit-scrollbar-track {
  border-radius: 42px;
  background: rgba(57, 57, 57, 0.4);
  box-shadow: 0 0 1.2px 0 rgba(192, 192, 192, 0.8) inset;
}

.tournament-scroll-area::-webkit-scrollbar-thumb {
  border-radius: 41.965px;
  background: rgba(39, 255, 85, 0.3);
  box-shadow: 0 -2px 15px 0 rgba(0, 0, 0, 0.6),
    0 0 1px 0 rgba(192, 192, 192, 0.25) inset,
    0 0 1px 0 rgba(110, 236, 137, 0.46) inset;
  border-radius: 10px;
}

.tournament-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(39, 255, 85, 0.4);
}

body.mobile-scale #tournaments-container > .gamecontainer-arrow > img,
body.mobile-scale .trnmt-popup-container,
body.mobile-scale .trnmt-popup-info,
body.mobile-scale .trnm-card-content,
body.mobile-scale .trnmt-info-popup-container {
  /* need for fix mobile issue with initial scale */
  zoom: var(--zoom-mobile-content);
}

.tournaments-title-count > h4 {
  color: #fff;
  font-family: Heebo;
  font-size: 17px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  text-align: left;
  position: relative;
}

body.mobile-scale .tournaments-title-count > h4 {
  /* need for fix mobile issue with initial scale */
  zoom: var(--zoom-mobile-content);
}

.tournament-card {
  width: calc(calc(100vw - 15px) / var(--tournament-shows-count));
  min-height: 570px;
  height: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: flex;

  .trnm-card-img {
    position: absolute;
    height: 100%;
    width: 100%;
    img {
      width: 100%;
      height: 100%;
      aspect-ratio: 310 / 390;
    }
  }

  .trnm-card-top-bg {
    background: linear-gradient(
      183deg,
      rgba(0, 0, 0, 0.84) 39%,
      rgba(2, 11, 74, 0.58) 93%
    );
    filter: blur(2.75px);
    position: absolute;
    top: 0px;
    width: 100%;
    height: 35%;
  }

  .trnm-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    .trnmt-card-header {
      width: 100%;
    }

    .trnmt-win-table {
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
      margin-bottom: 18px;
    }

    .trnmt-win-item {
      width: 100%;
      border-radius: 10px;
      background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.6) 100%
      );
      padding: 2px 16px;
      box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
      backdrop-filter: blur(3px);
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
      gap: 4px;
      flex-direction: row;
      flex: 1 1 0;
      max-height: 110px;

      .trnmt-leaderboard-rank {
        > .trnmt-leaderboard-rank-bg {
          width: var(--trnmt-win-rank-size);
          height: var(--trnmt-win-rank-size);
        }
        > img {
          width: var(--trnmt-win-rank-size);
        }
        > span {
          font-size: 12px;
        }
      }

      .trnmt-win-rank {
        width: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .trnmt-win-prize-info {
        flex: 1;

        .trnmt-win-info-player {
          color: #fff;
          text-align: left;
          font-size: 12px;
          font-style: normal;
          font-weight: 600;
          line-height: normal;
        }

        hr {
          margin: 6px 0px;
          border-top: 1px solid rgba(255, 255, 255, 0.2);
        }
      }

      .trnmt-win-tie {
        display: inline-flex;
        padding: 4px 6px;
        justify-content: center;
        align-items: center;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.15);
        color: #cdcfd6;
        font-size: 10px;
        font-weight: 500;
        line-height: 1;
        margin-left: 4px;
      }

      .trnmt-win-player-prize {
        display: flex;
        justify-content: space-between;

        .trnmt-prize-coins {
          display: flex;
          gap: 9px;
        }

        .trnmt-prize-coin {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
        }

        .trnmt-prize-pts {
          text-align: left;
        }

        .trnmt-prize-bottom,
        .trnmt-prize-top {
          color: #fff;
          font-size: 10px;
          font-style: normal;
          font-weight: 500;
          line-height: normal;
        }
        .trnmt-prize-bottom {
          font-size: 9px;
        }
      }
    }

    .trnmt-win-item.win-item-1.trnmt-is-win {
      border-radius: 10px;
      background: linear-gradient(
        3deg,
        rgba(0, 0, 0, 0.8) -184%,
        rgba(21, 21, 21, 0.8) 28%,
        rgba(224, 157, 18, 0.8) 228%
      );
      box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.55),
        0 2px 4.7px 0 rgba(0, 0, 0, 0.8),
        0 1px 1.7px 0 rgba(217, 217, 217, 0.2) inset,
        0 0 4px 0 rgba(254, 218, 65, 0.7) inset;
      backdrop-filter: blur(0.75px);
    }

    .trnmt-win-item.win-item-2.trnmt-is-win {
      border-radius: 10px;
      background: linear-gradient(
        3deg,
        rgba(0, 0, 0, 0.76) -184%,
        rgba(21, 21, 21, 0.76) 28%,
        rgba(205, 207, 214, 0.75) 228%
      );
      box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.55),
        0 2px 4.7px 0 rgba(0, 0, 0, 0.8),
        0 1px 1.7px 0 rgba(217, 217, 217, 0.2) inset,
        0 0 4px 0 rgba(205, 207, 214, 0.7) inset;
      backdrop-filter: blur(0.75px);
    }

    .trnmt-win-item.win-item-3.trnmt-is-win {
      border-radius: 10px;
      background: linear-gradient(
        3deg,
        rgba(0, 0, 0, 0.76) -184%,
        rgba(21, 21, 21, 0.76) 28%,
        rgba(186, 113, 71, 0.76) 228%
      );
      box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.55),
        0 2px 4.7px 0 rgba(0, 0, 0, 0.8),
        0 1px 1.7px 0 rgba(186, 113, 71, 0.2) inset,
        0 0 4px 0 rgba(186, 113, 71, 0.7) inset;
      backdrop-filter: blur(0.75px);
    }

    .trnmt-card-body {
      flex: 1;
      padding-top: 17px;
      width: 100%;
      padding-left: 16px;
      padding-right: 16px;
      display: flex;
      flex-direction: column;
    }

    .trnmt-card-body:has(.trnm-preview-state) {
      padding-top: 40px;
    }

    .trnmt-leaderboard-container {
      height: calc(
        (var(--leaderboard-item-height) * 5) + (var(--leaderboard-item-gap) * 4)
      );
      overflow: auto;
      padding-right: 4px;
      overflow-x: hidden;
    }

    .trnmt-leaderboard-container.clip-leaderborad {
      clip-path: polygon(
        0% 0%,
        0% 100%,
        0 100%,
        0 83%,
        96% 83%,
        96% 100%,
        0 100%,
        0 100%,
        100% 100%,
        100% 0
      );
    }

    .fixed-current-player {
      height: var(--leaderboard-item-height);
      border-radius: 4px;
      background: linear-gradient(
        340deg,
        rgba(152, 152, 152, 0.6) -190%,
        rgba(21, 21, 21, 0.9) 75%,
        rgba(30, 30, 30, 0.9) 300%
      );
      box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.55),
        0 2px 4.7px 0 rgba(0, 0, 0, 0.8),
        0 1px 1.7px 0 rgba(217, 217, 217, 0.22) inset,
        0 0 4px 0 rgba(139, 137, 133, 0.32) inset;
      backdrop-filter: blur(0.75px);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0px 8px;
      margin-right: 12px;
      bottom: var(--leaderboard-item-height);
      position: relative;
      margin-bottom: -30px;
    }

    .fixed-current-player.hideit {
      opacity: 0;
      z-index: -1;
    }

    .trnmt-leaderboard-player {
      display: flex;
      align-items: center;
      gap: 8px;
      width: 50%;
    }

    .trnmt-leaderboard-pts,
    .trnmt-leaderboard-player-info {
      display: flex;
      flex-direction: column;
      align-items: self-start;
      font-style: normal;
      font-weight: 500;
      line-height: 1.2;

      .trnmt-leaderboard-pts-label,
      .trnmt-leaderboard-hash {
        color: rgba(205, 207, 214, 0.75);
        font-size: 9px;
      }
    }

    .trnmt-leaderboard-pts {
      flex: 4;
      align-items: flex-start;
    }

    .trnmt-leaderboard-pts-inner {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .trnmt-leaderboard-prize {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 40px;
      justify-content: flex-start;

      .trnmt-prize {
        display: flex;
        flex-direction: column;

        .trnmt-prize-label {
          display: flex;
          color: rgba(205, 207, 214, 0.75);
          font-size: 9px;
          height: 12px;
        }
      }
    }

    .trnmt-prize-value,
    .trnmt-leaderboard-pts-value,
    .trnmt-leaderboard-name {
      color: #cdcfd6;
      font-size: 10px;
      display: flex;
      gap: 4px;
      white-space: nowrap;
      > span {
        width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left;
      }
      .trnmt-win-tie {
        display: flex;
        padding: 0 6px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        font-size: 9px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.15);
        > span {
          line-height: 1;
        }
      }
    }

    .trnmt-leaderboard-list {
      list-style: none;
      padding: 0px;
      gap: var(--leaderboard-item-gap);
      display: flex;
      flex-direction: column;

      .leaderboard-current-player {
        /* position: sticky;
          bottom: 0px; */
        background: linear-gradient(
          340deg,
          rgba(152, 152, 152, 0.6) -190%,
          rgba(21, 21, 21, 0.9) 75%,
          rgba(30, 30, 30, 0.9) 300%
        );
        box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.55),
          0 2px 4.7px 0 rgba(0, 0, 0, 0.8),
          0 1px 1.7px 0 rgba(217, 217, 217, 0.2) inset,
          0 0 4px 0 rgba(139, 137, 133, 0.3) inset;
        backdrop-filter: blur(0.75px);
      }

      .leaderboard-current-player-hide {
        opacity: 0;
      }

      li {
        height: var(--leaderboard-item-height);
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.5);
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(2.6px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0px 8px;
      }

      .loadmore {
        height: 1px;
        background: transparent;
      }
    }

    .trnm-status-container {
      display: flex;
      align-items: center;
      justify-content: center;

      .trnm-status-frame {
        position: absolute;
        top: 0px;

        img {
          height: 28px;
        }
      }

      .trnm-status-data {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        position: relative;
        top: 6px;
      }

      .trnm-rules-icon {
        position: absolute;
        right: 0px;
        top: 12px;
        right: 16px;
        height: auto;
        display: flex;
        cursor: pointer;

        img {
          width: 16px;
          height: 16px;
        }
      }

      .trnm-rules-icon.ended {
        display: none;
      }

      .trnm-status-bg {
        position: absolute;
        top: -15px;
      }

      .trnm-status {
        display: flex;
        align-items: center;
        gap: 2px;
        img {
          width: 16px;
          height: 16px;
          position: relative;
          top: -1px;
        }

        span {
          text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
          font-size: 12px;
          font-style: normal;
          font-weight: 800;
          line-height: 120%;
          text-transform: uppercase;
        }

        .preview {
          color: #2ae3ff;
        }

        .live {
          color: #00ec83;
        }

        .ended {
          color: #ffbd00;
        }
      }

      .trnm-status-timer {
        color: #d9d9d9;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        font-variant: small-caps;
      }
    }

    .trnmt-active-info {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0px 16px;
      margin-top: 15px;
      opacity: 0;

      .trnmt-your-min-bet,
      .trnmt-player-count {
        color: #fff;
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
      }

      .trnmt-player-count > span {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
      }

      .trnmt-player-count img {
        width: 12px;
        height: 12px;
      }
    }

    .trnmt-rank {
      display: flex;
      margin-left: 4px;
      padding: 0px 4px;
      height: 18px;
      justify-content: center;
      align-items: center;
      gap: 4px;
      position: absolute;
      top: 12px;
      left: 12px;
      border-radius: 4px;
      background: rgba(110, 236, 137, 0.18);
      line-height: 1;

      span {
        color: #6eec89;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        position: relative;
        top: 0.5px;
      }

      .trnmt-rank-dir {
        display: flex;
      }
    }

    .trnmt-rank.rank-down {
      background: rgba(242, 38, 58, 0.18);

      span {
        color: #f2263a;
      }

      .trnmt-rank-dir {
        transform: rotate(180deg);
      }
    }

    .trnmt-active-info.active,
    .trnmt-active-info.live {
      opacity: 1;
    }

    .trnmt-card-line {
      margin-top: 16px;
      display: flex;
      justify-content: center;

      img {
        width: 85%;
      }
    }

    .trnmt-card-title {
      display: inline-block;
      align-items: center;
      justify-content: center;
      gap: 6px;

      .trnmt-info-icon {
        display: inline-block;
        position: relative;
        top: -1px;
        right: 4px;
      }

      .trnmt-info-icon > .info-btn {
        width: 16px;
        height: 16px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(35, 35, 31, 0.7);
        box-shadow: 0 1.85px 4.35px 0 rgba(0, 0, 0, 0.8),
          0 1px 2px 0 rgba(217, 217, 217, 0.7) inset,
          0 0 4px 0 rgba(139, 137, 133, 0.3) inset;
        backdrop-filter: blur(2px);
        border: none;
        position: relative;
        top: -1px;

        img {
          width: 4px;
          height: 9px;
        }
      }

      h5 {
        display: inline;
        color: #fff;
        text-align: center;
        text-shadow: 0 0 8px rgba(18, 57, 203, 0.92);
        filter: drop-shadow(0 0 8px rgba(18, 57, 203, 0.92));
        font-family: Heebo;
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: 145%;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        margin: 0px;
      }
    }

    .trnmt-card-type {
      color: #f1f2f7;
      text-align: center;
      font-family: Heebo;
      font-size: 14px;
      font-style: normal;
      font-weight: 200;
      line-height: normal;
    }

    .trnm-preview-state {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;

      .trnm-preview-state-prize-text {
        color: #6eec89;
        text-shadow: 0 4px 4px rgba(0, 0, 0, 0.65);
        font-family: Heebo;
        font-size: 15px;
        font-style: normal;
        font-weight: 900;
        line-height: 100%;
        letter-spacing: 0.6px;
        text-transform: uppercase;
      }

      .trnm-preview-state-prize-value {
        color: #6eec89;
        text-align: left;
        text-shadow: 0 4px 4px rgba(0, 0, 0, 0.65);
        font-family: Heebo;
        font-size: 36px;
        font-style: normal;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -2px;
        text-transform: uppercase;
      }
    }
  }

  .trnmt-card-footer {
    padding: 0px 16px 16px 16px;
  }

  .trnmt-game-list-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    position: relative;
    h5 {
      color: #f1f2f7;
      text-align: center;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 4px;
    }

    .trnmt-game-list {
      display: flex;
      align-items: flex-end;
      gap: 4px;
      overflow: auto;
      justify-content: flex-start;

      .trnmt-game {
        flex: 0 0 calc(100% / 4.5);
        height: auto;
        overflow: hidden;
        position: relative;
        .trnm-game-hover {
          position: absolute;
          inset: 0px;
          z-index: 2;
          display: none;
          .playbtn.playreal {
            font-size: 13px;
          }
        }

        img {
          width: 100%;
          height: auto;
        }

        img.tall {
          aspect-ratio: 60/67;
        }
      }

      .trnmt-game:hover {
        .trnm-game-hover {
          display: flex;
          align-items: center;
          justify-content: center;
        }
        img {
          -webkit-filter: blur(3px);
          filter: blur(3px);
        }
      }
    }

    .trnmt-game-list:not(:has(.trnmt-game:nth-child(5))) {
      justify-content: center;
    }

    .trnmt-game-list:has(.trnmt-game:nth-child(5)) {
      justify-content: flex-start;
    }
  }
}

.trnmt-leaderboard-rank {
  color: #fff;
  text-shadow: 0 1px 2.3px rgba(0, 0, 0, 0.8);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  width: var(--trnmt-leaderboard-rank-width);
  height: var(--trnmt-leaderboard-rank-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  .trnmt-leaderboard-rank-bg {
    filter: blur(10px);
    width: calc(var(--trnmt-leaderboard-rank-width) - 4px);
    height: calc(var(--trnmt-leaderboard-rank-height) - 4px);
    position: absolute;
  }

  .trnmt-leaderboard-rank-bg-1 {
    background: rgba(254, 218, 65, 0.4);
  }

  .trnmt-leaderboard-rank-bg-2 {
    background: rgba(139, 143, 145, 0.8);
  }

  .trnmt-leaderboard-rank-bg-3 {
    background: rgba(169, 95, 47, 0.7);
  }

  img {
    position: absolute;
    z-index: 1;
  }

  span {
    z-index: 2;
  }
}

.trnmt-popup-info {
  padding: 24px;
  border-radius: 20px;
  background: rgba(41, 36, 36, 0.5);
  box-shadow: 0 0 20px 0 rgba(110, 236, 137, 0.3);
  backdrop-filter: blur(5px);
  width: 100%;

  .trnmt-popup-info-title {
    color: #fff;
    text-align: center;
    text-shadow: 0 0 3px rgba(18, 57, 203, 0.92);
    filter: drop-shadow(0 0 3px rgba(18, 57, 203, 0.92));
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 28px;
  }

  .trnmt-popup-info-content {
    display: flex;
    height: 405px;
    flex-direction: column;
    overflow: auto;
    gap: 9px;
    text-align: left;
    padding-right: 5px;
    color: #dfdfdf;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
  }

  .trnmt-popup-info-content > ul {
    padding-left: 10px;
  }

  .trnmt-popup-info-content a {
    color: #fff;
    text-decoration: underline;
  }

  .trnmt-popup-info-content a:hover {
    opacity: 0.8;
  }

  .trnmt-popup-info-close {
    cursor: pointer;
    background: #cc2228;
    border: 1px solid rgba(255, 255, 255, 0.41);
    height: 24px;
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2c4f38;
    margin: 0;
    position: fixed;
    top: -5px;
    right: -5px;
    border-radius: 50px;
    box-shadow: 0 0 5px rgb(220, 77, 82, 1), 0 0 10px rgba(220, 77, 82, 0.6),
      0 0 15px rgba(220, 77, 82, 0.5);
    > img {
      height: 11px;
      width: 11px;
    }
  }
  .trnmt-popup-info-close:hover {
    opacity: 0.8;
  }

  .trnmt-popup-info-content {
    font-size: 12px;
  }
}

.trnmt-popup-container {
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25),
    0 4px 48px 0 rgba(218, 166, 54, 0.25);
  backdrop-filter: blur(2px);
  width: 100%;
  max-width: 368px;

  .trnmt-leaderboard-rank-bg {
    background: transparent;
  }

  .trnmt-popup-content-place {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #f1f2f7;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;

    .trnmt-leaderboard-rank:not(:has(> .trnmt-leaderboard-rank-bg)) {
      font-size: 18px;
    }
  }

  .trnmt-popup-content-line {
    display: flex;
    margin: 4px 0px;
    min-height: 50px;
    > img {
      width: 100%;
    }
  }

  .trnmt-popup-win-prize {
    display: flex;
    flex-direction: column;
    gap: 5px;
    .trnmt-popup-prize-list {
      display: flex;
      align-items: stretch;
      gap: 4px;

      .trnmt-popup-win-item {
        border-radius: 10px;
        background: rgba(53, 53, 62, 0.67);
        box-shadow: 0 0 4.6px 0 #000 inset;
        display: flex;
        padding: 16px 8px 16px 8px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        flex: 1 0 0;
        justify-content: flex-end;
        font-size: 14px;
        font-style: normal;
        font-weight: 800;
      }
      .trnmt-popup-win-item-fs > div {
        width: 53px;
        height: 45px;
        > img {
          aspect-ratio: 53 / 45;
          width: 100%;
          height: auto;
        }
      }
    }

    .trnmt-popup-prize-list:has(.trnmt-popup-win-item:nth-child(3):last-child)
      .trnmt-popup-win-item:nth-child(2) {
      flex: 2 0 0;
    }
  }

  #tournament-claim {
    margin-top: 24px;
  }

  .trnmt-popup-btn {
    > button {
      display: flex;
      height: 40px;
      padding: 16px 40px;
      justify-content: center;
      align-items: center;
      align-self: stretch;
      width: 100%;

      color: #fff;
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }
  }
}

.trnmt-popup-container.win-state {
  border: 1px solid #d4a645;
  background: linear-gradient(
    180deg,
    rgba(24, 20, 35, 0.9) 72%,
    rgba(121, 94, 35, 0.9) 138%
  );
}

.trnmt-popup-container.not-win-state {
  border: 1px solid #d4a645;
  background: linear-gradient(0deg, #181423 0%, #181423 100%);

  .trnmt-popup-content-title {
    line-height: 1;
    margin-bottom: 12px;
  }
}

#tournament-popup .trnmt-popup-container.canceled-state {
  border: 1px solid rgba(255, 85, 91, 0.5);
  background: linear-gradient(
    180deg,
    rgba(24, 20, 35, 0.8) 72%,
    rgba(12, 76, 86, 0.8) 138%
  );
  box-shadow: 0 4px 28px 0 rgba(218, 166, 54, 0.25);

  .trnmt-popup-content-title {
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.4), 0 0 4px #cc2228;
    font-size: 22px;
  }
}

@media (min-width: 992px) {
  #tournaments-container {
    margin-left: 0px;
  }

  #tournaments-container {
    .trnm-status-frame > img {
      height: 34px;
    }

    .tournaments-title-count > h4 {
      font-size: 32px;
    }

    .trnm-status-timer,
    .trnm-status-title {
      font-size: 16px;
    }

    .trnmt-card-title > h5 {
      font-size: 22px;
    }

    .trnmt-card-title .trnmt-info-icon {
      top: -2px;
    }

    .trnmt-card-type {
      font-size: 18px;
    }

    .trnm-preview-state-prize-value {
      font-size: 46px;
    }

    .trnm-preview-state-prize-text {
      font-size: 20px;
    }

    .trnm-rules-icon > img {
      width: 21px;
      height: 21px;
    }

    .trnmt-your-min-bet,
    .trnmt-player-count {
      font-size: 16px;
    }

    .trnmt-player-count img {
      width: 16px;
      height: 16px;
    }

    .trnmt-rank {
      padding: 4px 6px;
      height: 22px;
    }

    .trnmt-rank > span {
      font-size: 16px;
    }

    .trnmt-leaderboard-list > li {
      height: var(--leaderboard-desc-item-height);
    }

    .trnmt-leaderboard-list > li.loadmore {
      height: 1px;
    }

    .trnmt-leaderboard-container {
      height: calc(
        (var(--leaderboard-desc-item-height) * 5) +
          (var(--leaderboard-item-gap) * 4)
      );
    }

    .fixed-current-player {
      height: var(--leaderboard-desc-item-height);
      bottom: var(--leaderboard-desc-item-height);
    }

    .leaderboard-sticky-obs {
      bottom: var(--leaderboard-desc-item-height);
    }

    .trnmt-prize-value,
    .trnmt-leaderboard-pts-value,
    .trnmt-leaderboard-name {
      font-size: 12px;
    }

    .trnmt-leaderboard-pts-label,
    .trnmt-leaderboard-hash {
      font-size: 10px;
    }

    .trnmt-game {
      img.tall {
        aspect-ratio: 82/91;
      }
    }

    .tournament-card {
      width: calc(calc(100vw - 76px) / var(--tournament-desc-shows-count));
    }

    .trnmt-game-list-container > h5 {
      font-size: 16px;
    }

    .trnmt-win-info-player {
      font-size: 14px;
    }

    .trnmt-prize-top {
      font-size: 12px;
    }
    .trnmt-prize-bottom {
      font-size: 10px;
    }

    .trnmt-win-rank {
      width: 54px;
    }

    .trnmt-win-table {
      .trnmt-leaderboard-rank {
        > .trnmt-leaderboard-rank-bg {
          width: var(--trnmt-win-desc-rank-size);
          height: var(--trnmt-win-desc-rank-size);
        }
        > img {
          width: var(--trnmt-win-desc-rank-size);
        }
        > span {
          font-size: 16px;
        }
      }
    }

    #tournaments-list > ul {
      gap: 13px;
    }
  }

  #tournament-popup {
    .trnmt-popup-info {
      max-width: 368px;
      background: rgba(41, 36, 36, 0.97);
      box-shadow: 0 0 43px 0 rgba(110, 236, 137, 0.23);

      .trnmt-popup-info-content > ul {
        padding-left: 20px;
      }

      .trnmt-popup-info-close {
        height: 26px;
        width: 26px;
        > img {
          height: 12px;
          width: 12px;
        }
      }
    }

    .trnmt-popup-win-img {
      top: -35px;
    }

    .trnmt-popup-info-title {
      font-size: 20px;
      h4 {
        font-weight: bold;
      }
    }

    .trnmt-popup-container {
      padding: 24px;
    }
    .trnmt-popup-content {
      .trnmt-popup-content-title {
        font-size: 30px;
      }
    }

    .trnmt-popup-content-place {
      font-size: 20px;
    }

    .trnmt-popup-container.canceled-state .trnmt-popup-content-title {
      font-size: 26px;
    }

    .trnmt-popup-content-info {
      font-size: 16px;
    }
  }

  .trnmt-gamelist-arrow {
    top: 62%;
    width: 24px;
    height: 24px;
    img {
      width: 14px;
      height: 12px;
    }
  }
}

.trnmt-info-header {
  margin-bottom: 18px;

  h4 {
    font-family: Heebo;
    font-weight: 700;
    font-size: 22px;
    text-shadow: 0 0 2px #00e8e7;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: #a8ffff;
    margin: 0;
  }
}

.trnmt-info-popup-container {
  position: relative;
  font-family: Heebo;
  width: 343px;
  padding: 40px 16px 32px;
  border-radius: 20px;
  background: rgba(31, 30, 38, 0.85);

  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.86) inset,
    0 4px 48px 0 rgba(218, 166, 54, 0.25);
  backdrop-filter: blur(2px);

  &::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 140px;
    height: 380px;
    transform: rotate(-0.173deg);
    flex-shrink: 0;
    border-radius: 380px;
    opacity: 0.74;
    background: rgba(107, 50, 136, 0.82);

    filter: blur(67px);
    z-index: -1;
  }

  &::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: 121px;
    height: 405px;
    transform: rotate(-0.173deg);
    flex-shrink: 0;
    border-radius: 405px;
    opacity: 0.74;
    background: rgba(25, 25, 117, 0.79);

    filter: blur(47px);
    z-index: -1;
  }

  .trnmt-text-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    p {
      text-shadow: 0 0 7.6px rgba(18, 57, 203, 0.92);
      -webkit-text-stroke-width: 0.5px;
      -webkit-text-stroke-color: #aaf1ff;
    }
  }

  .trnmt-info-rules-content {
    display: flex;
    align-items: center;
  }

  #trnmt-info-cup {
    .trnmt-text-info {
      align-items: flex-start;
      p:first-child {
        margin: 0;
        font-size: 24px;
        line-height: 24px;
        font-weight: 900;
      }
      p:last-child {
        margin: 0;
        font-size: 12px;
        line-height: 17.64px;
        font-weight: 700;
      }
    }
  }

  #trnmt-info-rules {
    justify-content: flex-end;

    .trnmt-text-info {
      align-items: flex-end;

      p {
        margin: 0;
        font-size: clamp(20px, 2.3vw, 23px);
        line-height: 33px;
        font-weight: 900;
      }

      p:first-child {
        line-height: 17px;
      }
    }
  }

  #trnmt-info-coins {
    margin-top: -10px;
    .trnmt-text-info {
      align-items: flex-start;
      p:first-child {
        margin: 0;
        font-size: 12px;
        line-height: 14px;
        font-weight: 700;
      }
      p:last-child {
        margin: 0;
        font-size: 24px;
        line-height: 27px;
        font-weight: 900;
      }
    }
  }
}

.trnmt-info-rules-content {
  display: flex;

  img {
    width: 110px;
    height: 110px;
  }
}

.trnmt-info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 311px;
  height: 48px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.11);
  font-family: Heebo;
  font-size: 16px;
  font-weight: 900;
  border-radius: 100px;
  border: 1px solid #6e7aec;
  background: linear-gradient(
    187deg,
    rgba(104, 116, 240, 0.54) -29.31%,
    rgba(40, 53, 175, 0.54) 106.34%
  );
  box-shadow: 0 0 17px 0 rgba(97, 140, 255, 0.74);

  margin-top: 18px;
  cursor: pointer;

  &:hover {
    background: linear-gradient(
      181deg,
      rgba(81, 96, 196, 0.9) -32.94%,
      rgba(33, 49, 162, 0.9) 93.69%
    );
    box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.53) inset;
  }
}

.trnmt-footer-info-text {
  color: #cdcfd6;
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  margin: 16px 0 0 0;
}

@media (min-width: 1080px) {
  :root {
    --leaderboard-desc-item-height: 45px;
  }
}

@media (min-width: 1263px) {
  #tournaments-container {
    .tournament-card {
      width: calc(var(--desc-max-width) / var(--tournament-desc-shows-count));
      aspect-ratio: 449 / 466;
    }
  }
}

@media (min-width: 1440px) {
  #tournaments-container {
    .tournament-card {
      width: calc(var(--desc-max-width) / var(--tournament-desc-shows-count));
      aspect-ratio: 449 / 500;
    }
  }
}

@media (min-width: 992px) and (max-aspect-ratio: 3/4) {
  #tournaments-container {
    .tournament-card {
      aspect-ratio: 3 / 4;
    }
  }
}

@media (max-width: 991px) {
  #tournaments-container {
    > .gamecontainer-arrow {
      display: flex;
      top: 20px;
      box-shadow: unset;
      background: unset;
      backdrop-filter: unset;
      height: auto;
      width: auto;
    }

    > .gamecontainer-arrow > img {
      width: 14px;
      height: 14px;
    }

    > .gamecontainer-arrow.hideit {
      display: none;
    }

    > .gamecontainer-arrow.left-arrow {
      right: 26px;
      left: unset;
    }

    > .gamecontainer-arrow.right-arrow {
      right: 8px;
    }

    .playbtn.playreal {
      font-size: 8px;
      width: 90%;
      padding: 0px;
    }
  }

  .trnmt-popup-info-title > h4 {
    zoom: var(--zoom-mobile-content);
    font-weight: bold;
  }

  .trnmt-popup-info-content {
    zoom: var(--zoom-mobile-content);
  }

  .ios #offersbars:has(> :nth-child(5)):has(> #tournament-widget) {
    justify-content: flex-start;
  }

  body.ios .fixed-current-player {
    width: calc(100% - 4px);
  }

  #tournament-widget .lobofferimg > img {
    object-fit: contain;
    position: relative;
    top: 6px;
  }
}
