/* Chaska leaderboard tokens ? Apostafut brand (colors only) */
.page,
#leaderboard-modal-wrapper {
  --brand-color: var(--primary-cta);
  --primary-gradient: linear-gradient(146.39deg, #000000 55%, var(--primary-cta) 125.56%);
  --primary-filter: var(--primary-cta-filter);
  --bet-mobile-card-header-title-bg-color: var(--tertiary-background);
  --font-s: var(--small-font);
}
#leaderboard-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

body.leaderboard-modal-open #load_screen,
body.leaderboard-modal-open .loader,
body.leaderboard-modal-open .spinner,
body.leaderboard-modal-open .loading-overlay,
body.leaderboard-modal-open .loader_wrapper,
body.leaderboard-modal-open .loaders {
  z-index: 1000000 !important;
}

#leaderboard-modal-wrapper .dg-popup-layout-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: none;
}

#leaderboard-modal-wrapper .dg-popup-container {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 85vh;
  max-height: 900px;
  background: var(--primary-gradient);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--brand-color);
  z-index: 4;
}

#leaderboard-modal-wrapper .rating-heading-section {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 10;
  background: var(--primary-gradient);
  padding: 30px 30px 30px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tournament-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.tournament-banner img {
  border-top-right-radius: 12px;
  width: inherit;
  border-top-left-radius: 12px;
  height: 100%;
  object-fit: cover;
}

.live-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: auto;
}

.live-master h2 {
  color: var(--brand-color);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  width: calc(100% - 3rem) !important;
  text-align: unset;
}

.price-pool p {
  font-size: var(--font-s);
}

.price-pool h1 {
  line-height: 1.2;
  font-weight: 700;
  font-size: 2rem;
}

.price-pool p,
.price-pool h1 {
  margin: 0;
  color: var(--brand-color);
}

.price-pool {
  margin-top: 8px;
}

.close-btn {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.leaderboard-close-btn .leaderboard-close-icon,
#leaderboard-modal-wrapper .leaderboard-close-icon {
  padding: 14px;
  filter: brightness(1.2) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}
/* Icon rules (Apostafut has no global .icon-style / .prev-icon) */
#leaderboard-modal-wrapper .icon-style {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

#leaderboard-modal-wrapper .prev-icon {
  background-image: url(/assets/images/2.0/prev-icon.svg);
}

#leaderboard-modal-wrapper .next-icon {
  background-image: url(/assets/images/2.0/next-icon.svg);
}



.rating-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.rating-info-card {
  background: rgb(38 38 38 / 70%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rating-info-card h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-details {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-details p {
  margin: 0;
  font-size: var(--font-s);
  font-weight: 500;
}

#leaderboard-modal-wrapper .rating-bottom-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  width: 100%;
}

#leaderboard-modal-wrapper .tab-bg {
  flex: 0 0 auto;
  width: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 8px;
}

#leaderboard-modal-wrapper .tabs-section {
  background: unset;
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 20px;
  width: fit-content;
  padding: 8px;
  border-radius: 8px;
}

#leaderboard-modal-wrapper .tabs {
  text-align: center;
  padding: 8px 60px;
  width: auto;
  background: var(--bet-mobile-card-header-title-bg-color);
  border-radius: 4px;
  cursor: pointer;
  color: rgba(204, 206, 204, 1);
  height: fit-content;
  border: 2px solid var(--brand-color);
}


#leaderboard-modal-wrapper .tabs.active {
  color: #ffffff;
  font-weight: 600;
  background: var(--brand-color);
}

#leaderboard-modal-wrapper .tabs.active h2 {
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  background: var(--brand-color);
}

#leaderboard-modal-wrapper .tabs h2 {
  margin: 0;
  font-size: 16px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--primary-color);
}

.tabs.active h2 {
  color: #052311;
}

/* Scrollable Content Area */
#leaderboard-modal-wrapper .tab-content {
  display: none;
  padding-top: 10px;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  /* Enable scroll for all tabs */
  overflow-x: hidden;
}

#leaderboard-modal-wrapper .tab-content.active,
#leaderboard-modal-wrapper .tab-content.tab-visible {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

#leaderboard-modal-wrapper .tab-content.active .leaderboard,
#leaderboard-modal-wrapper .tab-content.tab-visible .leaderboard,
#leaderboard-modal-wrapper .tab-content.active .dg-terms,
#leaderboard-modal-wrapper .tab-content.tab-visible .dg-terms,
#leaderboard-modal-wrapper .tab-content.active:not(.games-tab-content) .dg-grid-wrapper,
#leaderboard-modal-wrapper .tab-content.tab-visible:not(.games-tab-content) .dg-grid-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/*  Scrollbar for Modal Content */
#leaderboard-modal-wrapper .tab-content::-webkit-scrollbar,
#leaderboard-modal-wrapper .tab-content .leaderboard::-webkit-scrollbar,
#leaderboard-modal-wrapper .tab-content .dg-terms::-webkit-scrollbar,
#leaderboard-modal-wrapper .tab-content .dg-grid-wrapper::-webkit-scrollbar {
  width: 6px;
}

#leaderboard-modal-wrapper .tab-content::-webkit-scrollbar-track,
#leaderboard-modal-wrapper .tab-content .leaderboard::-webkit-scrollbar-track,
#leaderboard-modal-wrapper .tab-content .dg-terms::-webkit-scrollbar-track,
#leaderboard-modal-wrapper .tab-content .dg-grid-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

#leaderboard-modal-wrapper .tab-content::-webkit-scrollbar-thumb,
#leaderboard-modal-wrapper .tab-content .leaderboard::-webkit-scrollbar-thumb,
#leaderboard-modal-wrapper .tab-content .dg-terms::-webkit-scrollbar-thumb,
#leaderboard-modal-wrapper .tab-content .dg-grid-wrapper::-webkit-scrollbar-thumb {
  background: rgba(88, 218, 102, 0.5);
  border-radius: 3px;
}

.leaderboard-points,
.leaderboard-prize {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-weight: 600;
}

.leaderboard {
  margin: 0 16px 0 16px;
  height: auto;
}

.empty-rating-message {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.empty-rating-message p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.leaderboard p {
  font-size: 14px;
  margin: 0;

}

.player-rank p {
  width: 3.2rem;
  text-align: center;
  margin: 0;
}

.leaderboard-id p {
  margin-right: 20px;
}

.table-column-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 0px 16px;
  margin: 8px 16px;
}

.table-column-name p {
  margin: 0;
}

.columns-name-points {
  width: 30%;
}

.columns-name-participants {
  width: 30%;
}

.player-points,
.player-prize {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Align content to the right */
  gap: 4px;
}

.player-points {
  width: 30%;
  justify-content: flex-start !important;
}

.player-prize {
  width: 10%;
}

.player-points p,
.player-prize p {
  text-align: right;
  /* Ensure text is right-aligned */
  white-space: nowrap;
  /* Prevent wrapping */
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--primary-color);
}

.player-id p {
  color: var(--primary-color);

}

.player-id {
  width: 30%;
}

.row-gold {
  display: flex;
  justify-content: space-between;
  background: linear-gradient(96.23deg,
      rgba(229, 188, 104, 0.71) 1.16%,
      rgba(12, 10, 10, 0) 98.84%);
  border: 1px solid #dcaf37;
  padding: 8px 16px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 10px;
  align-items: center;
}

.row-silver {
  display: flex;
  justify-content: space-between;
  background: linear-gradient(96.23deg,
      rgba(135, 143, 137, 0.71) 1.16%,
      rgba(12, 10, 10, 0) 98.84%);
  border: 1px solid #dcaf37;
  padding: 8px 16px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 10px;
  align-items: center;
}

.row-bronze {
  display: flex;
  justify-content: space-between;
  background: linear-gradient(96.23deg,
      rgba(156, 117, 113, 0.71) 1.16%,
      rgba(12, 10, 10, 0) 98.84%);
  border: 1px solid #dcaf37;
  padding: 8px 16px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 10px;
  align-items: center;
}

.row-player {
  display: flex;
  justify-content: space-between;
  background-color: #06180a;
  border: 1px solid var(--brand-color);
  padding: 8px 16px;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 10px;
  align-items: center;
}

.table-column-prize {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 10%;
  gap: 4px;
}

.prize-tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.prize-question-icon {
  display: block;
  filter: var(--primary-filter);
}

.prize-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1a2e;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 312px;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prize-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 8px;
  border: 6px solid transparent;
  border-bottom-color: #1a1a2e;
}

.prize-tooltip-container:hover .prize-tooltip {
  opacity: 1;
  visibility: visible;
}

.prize-tooltip img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.prize-tooltip p {
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 !important;
  font-weight: 400;
}

.column-name {
  width: 25%;
}

.player-rank {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 30%;
  flex-shrink: 0;
}

.columns-name-rank {
  width: 30%;
  flex-shrink: 0;
}

.columns-name-rank p,
.columns-name-participants p,
.columns-name-points p {
  text-align: left;
}

.row .rank {
  width: 30px;
  font-weight: bold;
}

.my-rank-btn-section {
  margin: auto 16px 16px 16px;
  align-items: center;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  position: relative;
  z-index: 10;
  order: 999;
}

.my-rank-btn {
  background-color: var(--brand-color);
  padding: 10px 106px;
  color: #ffffff;
  border: none;
  border-radius: 40px;
  z-index: 3;
}

.my-rank-btn:hover {
  transition: all 0.3s;
  border: none;
  outline: none;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(88, 218, 102, 0.8);
}

.bottom-fade {
  width: 100%;
  height: 120px;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  pointer-events: none;
  display: none;
}

.my-rank-btn h2 {
  margin: 0;
  font-size: 14px;
}

/* User rank highlight animation */
.user-rank-highlight {
  animation: rankFlash 0.6s ease-in-out 3;
  box-shadow: 0 0 20px rgba(220, 175, 55, 0.8) !important;
}

.row-player p {
  color: #ffffff !important;
}

@keyframes rankFlash {

  0%,
  100% {
    background-color: inherit;
    border-color: var(--brand-color);
  }

  50% {
    background-color: rgba(220, 175, 55, 0.2);
    border-color: #ffd77b;
  }
}

/* Terms */
.dg-terms {
  border-radius: 16px;
  margin: 0 16px;
}

/* Ensure Terms scrolls when inside active tab */
#leaderboard-modal-wrapper .tab-content.active .dg-terms {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.terms-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  color: #fff;
  gap: 4px;
}

.terms-info-description {
  border-bottom: 1px solid rgb(255, 255, 255, 0.4);
}

.terms-info h2 {
  margin: 0;
  font-size: 14px;
  color: var(--primary-color);
}

.terms-info p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--primary-color);
}

/* Games Grid */
.dg-grid-container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.dg-grid-container .gameImageBox {
  display: block;
  width: 15.4%;
  position: relative;
  margin-bottom: 1.5%;
  margin-right: 1.5%;
}

.dg-grid-container .gameImageBox:nth-child(6n) {
  margin-right: 0;
}

.dg-grid-container .gameImageBox img {
  width: 100%;
  aspect-ratio: 2/1.7;
  border-radius: 6px;
}

.dg-grid-container .gameImageBox .hoverWrap {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(5px);
  background-color: rgba(255, 255, 255, 0.8);
  background-color: rgb(18 18 18 / 23%);
  background-position: center;
  z-index: 5;
  border-radius: 6px;
  cursor: pointer;
  pointer-events: auto;
}

.dg-grid-container .gameImageBox:hover .hoverWrap {
  display: block;
  pointer-events: auto;
}

.dg-grid-container .gameImageBox .gameImageBox_middle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dg-grid-container .gameImageBox .gameImageBox_middle .playNow-icon {
  display: block;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background-size: contain;
  filter: var(--primary-cta-filter);
}

#leaderboard-modal-wrapper .table-column-name p {
  color: var(--primary-color);
  font-size: var(--font-s);
}

#leaderboard-modal-wrapper .live-master img {
  filter: var(--primary-filter);
  width: 3rem !important;
}

#leaderboard-modal-wrapper .rating-pagination button,
#leaderboard-modal-wrapper .games-pagination button {
  background: none;
  border: none;
  outline: none;
  padding: .5rem 1rem;
  border-radius: .4rem;
  margin-left: 1rem;
  border: 1px solid var(--brand-color);
}

#leaderboard-modal-wrapper .rating-pagination button .icon-style,
#leaderboard-modal-wrapper .games-pagination button .icon-style {
  display: inline-block;
  box-sizing: border-box;
  padding: 0;
  width: 18px;
  height: 18px;
  background-size: contain;
}

#leaderboard-modal-wrapper .rating-pagination,
#leaderboard-modal-wrapper .games-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 8px;
  min-height: 40px;
}

.games-content-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  scrollbar-width: thin;
  scrollbar-color: rgba(88, 218, 102, 0.5) rgba(0, 0, 0, 0.1);
  margin: 0 16px;
}

.games-content-wrapper::-webkit-scrollbar {
  width: 6px;
}

.games-content-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.games-content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(88, 218, 102, 0.5);
  border-radius: 3px;
}

.games-pagination {
  flex: 0 0 auto;
  height: auto;
}

.rating-pagination {
  margin-bottom: 0;
}

.games-tab-content {
  overflow: hidden !important;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

#leaderboard-modal-wrapper .games-tab-content.tab-visible .games-content-wrapper,
#leaderboard-modal-wrapper .games-tab-content.active .games-content-wrapper {
  flex: 1 1 auto;
  min-height: 0;
}

#leaderboard-modal-wrapper .tab-content.tab-visible .table-column-name,
#leaderboard-modal-wrapper .tab-content.tab-visible .rating-pagination,
#leaderboard-modal-wrapper .tab-content.tab-visible .games-pagination {
  flex: 0 0 auto;
}

#leaderboard-modal-wrapper .player-rank img {
  width: 3.2rem;
  height: auto;
  max-height: 1.5rem;
  object-fit: contain;
  display: block;
}

.leaderboard-close-icon {
  background-image: url(/assets/images/2.0/leaderboard-close-icon.svg);
}

/* Desktop: stable tab/pagination size at any browser zoom */
@media (min-width: 1081px) {
  #leaderboard-modal-wrapper .tabs {
    padding: 8px 60px;
    border-width: 1px;
  }

  #leaderboard-modal-wrapper .tabs h2 {
    font-size: 14px;
    line-height: 1.2;
  }

  #leaderboard-modal-wrapper .tabs.active h2 {
    font-size: 14px;
    line-height: 1.2;
  }

  #leaderboard-modal-wrapper .rating-pagination button,
  #leaderboard-modal-wrapper .games-pagination button {
    padding: 6px 12px;
    margin-left: 8px;
  }

  #leaderboard-modal-wrapper .rating-heading-section {
    padding: 20px 24px 16px 32px;
  }

  #leaderboard-modal-wrapper .live-master h2 {
    font-size: 22px;
  }

  #leaderboard-modal-wrapper .price-pool h1 {
    font-size: 28px;
  }
}

/* Mobile Responsiveness */
@media (max-width: 1080px) {
  #leaderboard-modal-wrapper .rating-bottom-section {
    padding: 0 1rem 1rem;
  }

  .row-gold {
    padding: 4px 10px;
  }

  .leaderboard p {
    font-size: 12px;
  }

  .games-content-wrapper {
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .games-tab-content {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  body.modal-open-mobile header,
  body.modal-open-mobile .top-header {
    display: none !important;
  }

  #leaderboard-modal-wrapper .dg-popup-layout-container {
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
  }

  #leaderboard-modal-wrapper .dg-popup-container {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    margin: 0;
    bottom: 0;
    position: absolute;
    top: 0;
    gap: 8px;
    border: 0;
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  #leaderboard-modal-wrapper .rating-heading-section {
    padding: 24px;
    justify-content: center;
    align-items: center;
  }

  /* Banner adjustments */
  #leaderboard-modal-wrapper .tournament-banner img {
    border-radius: unset;
    height: -webkit-fill-available;
    width: 100%;
    object-fit: cover;
  }

  #leaderboard-modal-wrapper .live-master h2 {
    font-size: 20px;
  }

  #leaderboard-modal-wrapper .live-master img {
    width: 25%;
  }

  #leaderboard-modal-wrapper .price-pool h1 {
    font-size: 16px;
  }

  #leaderboard-modal-wrapper .price-pool {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Info Cards (Participants, Prizes, Time) */
  #leaderboard-modal-wrapper .rating-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
  }

  #leaderboard-modal-wrapper .rating-info-card {
    width: 100%;
    height: auto;
    padding: 8px 16px;
    gap: 8px;
    width: max-content;
  }

  #leaderboard-modal-wrapper .rating-info-card h2 {
    font-size: 12px;
    font-weight: 400;
  }

  #leaderboard-modal-wrapper .close-btn {
    right: 24px;
    top: 24px;
  }

  #leaderboard-modal-wrapper .tab-bg {
    width: 100%;
    margin-top: 0;
  }

  #leaderboard-modal-wrapper .tabs-section {
    border-radius: 0;
    align-items: center;
    justify-content: space-evenly;
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 10px 0;
    box-sizing: border-box;
    min-width: 0;
  }

  #leaderboard-modal-wrapper .tabs {
    width: fit-content;
    align-items: center;
    justify-content: center;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    padding: 5px 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
  }

  #leaderboard-modal-wrapper .tabs h2 {
    font-size: 14px;
  }

  #leaderboard-modal-wrapper .leaderboard {
    height: calc(100vh - 398px);
    overflow-y: auto;
    margin: 0 4px;
  }

  #leaderboard-modal-wrapper .table-column-name {
    padding: 0;
    margin: 0 4px 15px;
  }

  #leaderboard-modal-wrapper .table-column-name p {
    font-size: 12px;
  }

  #leaderboard-modal-wrapper .my-rank-btn-section {
    padding: 0;
    margin: 2rem 0 0 0;
  }

  #leaderboard-modal-wrapper .my-rank-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Terms */
  #leaderboard-modal-wrapper .dg-terms {
    margin: 16px 16px;
    height: 434px;
  }

  .rating-pagination {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 767px) {
  .columns-name-rank {
    width: 16%;
  }

  .columns-name-participants {
    width: 29%;
  }

  .columns-name-points {
    width: 37%;
  }

  .table-column-prize {
    width: 18%;
  }

  .player-rank {
    width: 16%;
  }

  .player-id {
    width: 29%;
  }

  .player-points {
    width: 32%;
  }

  .player-prize {
    width: 23%;
  }

  .dg-grid-container .gameImageBox {
    width: 32%;
    margin-bottom: 2%;
    margin-right: 2%;
  }

  .dg-grid-container .gameImageBox:nth-child(3n) {
    margin-right: 0;
  }
}

@media only screen and (max-width: 359px) {
  #rating-content {
    overflow: auto !important;
    padding-bottom: 1rem;
  }

  .table-column-name {
    width: calc(100% + 10rem);
  }

  #leaderboard-modal-wrapper .leaderboard {
    width: calc(100% + 10rem);
  }
}

@media only screen and (min-width: 360px) and (max-width: 390px) {
  .columns-name-rank {
    width: 12%;
  }

  .columns-name-participants {
    width: 33%;
  }

  .player-rank {
    width: 12%;
  }

  .player-id {
    width: 33%;
  }
}