:root {
  color-scheme: normal;
  --color-background: #050607;
  --color-container-bg: #0a0a0b;
  --color-root-text: white;
  font-family: Arial, Helvetica, sans-serif;
  min-width: 980px; /* min-width */
}

/* REMOVE */
/* .cookie-consent-container {display: none!important;} */
/* REMOVE */

body {
  background-color: var(--color-background);
  background-image: url('../images/bg-body.webp'); /* URL */
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: auto;
  color: var(--color-root-text);
  min-width: 980px; /* min-width */
}

header {
  flex: 0 0 auto;
}

.container-grid {
  --container : 980px;
  min-width: 980px; /* min-width */
}

.container-grid section {
  background-color: var(--color-container-bg);
  min-width: 980px; /* min-width */
}

.wrapper  {
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
}



/* Event Top Hundred */
#event-top-hundred {
  font-size: 24px;
  background-image: url('../images/bg-rankingblock.webp'); /* URL */
  background-position: top center;
  background-repeat: no-repeat;
  background-size: auto;
  padding-block-end: 2em;
  margin-block-end: 3em;

  /* U250924B start */
  display: flex;
  flex-direction: column;
  /* U250924B end */
}
#leaderboards {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}
#leaderboards .tab-navs {
  padding: 0.5em;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
#leaderboards .tab-navs button {
  padding: 0.25em;
  width: 30px;
  aspect-ratio: 1;
  background-color: #ffae00;
  font-size: 1rem;
  font-weight: bold;
  color: black;
  border-radius: 3px;
}
#leaderboards .tab-navs button[aria-selected=true] {
  background-color: white;
}
.ranking-page {
  width: min(100%, 560px);
  margin-inline: auto;
}
.user {
  list-style: none;
  display: grid;
  grid-template-columns: 6ch auto auto;
  grid-column: 1/-1;
  gap: 8px;
  margin-block: 16px;
}
.user *::after,
#current-user *::after {
  font-size: 0.5em;
  text-transform: uppercase;
  margin-inline-start: 2px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ordn";
}
.userPlacement {
  text-align: right;
  margin-inline-end: 0.5em;
  font-variant-numeric: tabular-nums;
}
.userPlacement::after {
  content: attr(data-rank); /* ordinals */
}
.userEXP {
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}
.user .userEXP {
  margin-inline-end: 1em;
}
.userEXP::after {
  content: 'exp';
}

/* Current User */
#current-user {
  background-image: url('../images/bg-myrank.webp'); /* URL */
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto;
  width: 316px;
  height: 154px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
}
#current-user ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  grid-column: 1/-1;
  font-size: 20px;
  gap: 8px;
}
#current-user .userID {
  order: 1;
  flex: 1 1 100%;
  text-align: center;
  font-size: 24px;
}
#current-user .userPlacement {
  order: 2;
  flex: 0 1 auto;
}
#current-user .userEXP {
  order: 2;
  flex: 0 1 auto;
  text-align: left;
}


/* Modes */
#modes-viewer .tab-navs {
  margin-inline: auto;
}
#modes-viewer .tab-navs button {
  width: 220px;
  height: 70px;
  background-image: url('../images/mode-tabs.webp'); /* URL */
  background-position: top center;
  background-repeat: no-repeat;
  background-size: auto;
  color: transparent;
  font-size: 0px;
}
#modes-viewer .tab-navs button:hover {
  background-position: center center;
}
#modes-viewer .tab-navs button[aria-selected=true] {
  background-position: bottom center;
}
#modes-viewer .tab-navs button::after {
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  background-image: url('../images/mode-tabs-labels.webp'); /* URL */
  background-repeat: no-repeat;
  background-size: 400% 200%;
}
#modes-viewer .tab-navs button[aria-selected=true]::after {
  background-position-y: bottom;
}
#modes-viewer .tab-navs button#modes-viewer-1::after {
  background-position-x: 33.3334%;
}
#modes-viewer .tab-navs button#modes-viewer-2::after {
  background-position-x: 66.6667%;
}
#modes-viewer .tab-navs button#modes-viewer-3::after {
  background-position-x: 100%;
}
#modes-viewer img {
  background-color: var(--color-container-bg);
  /* color: transparent; */
}


/* all carousels */
/* .carousel-filler {
  display: none;
}
.carousel-track,
.carousel-filler  {
  animation-duration: 0s!important;
  transition-duration: 0s!important;
} */
.carousel-dragger {
  pointer-events: none!important;
}


/* Weapons */
#weapons {
  position: relative;
  background-image: url('../images/bg-weaponsblock.webp'); /* URL */
  background-position: top center;
  background-repeat: no-repeat;
  background-size: auto;
}
#weapons-navs {
  position: absolute;
  inset-block-end: 40px;
}
#weapons-navs button {
  color: transparent;
  font-size: 0px;
  width: 101px;
  height: 55px;
  background-image: url('../images/weapons-navs.webp'); /* URL */
  background-repeat: no-repeat;
  background-position-y: top;
  background-size: 200% 200%;
  margin-inline: 4px;
}
#weapons-navs button:hover {
  background-position-y: bottom;
}
#weapons-navs button.carousel-next {
  background-position-x: 100%;
}

/* Banners */
#banners,
#banners-inner {
  position: relative;
}
#main-logo {
  position: absolute;
  inset-block-start: -50px;
  inset-inline-start: 20px;
}
#characters-viewer {
  position: absolute;
  pointer-events: none;
  inset: 0;
}
#characters-viewer summary {
  display: none;
}
#characters-viewer .tab-navs {
  position: absolute;
  inset-block-end: 16px;
  inset-inline-end: 148px;
  gap: 8px;
  z-index: 1;
  pointer-events: all;
}
#characters-viewer .tab-navs button {
  width: 60px;
  height: 29px;
  background-image: url('../images/character-navs.webp'); /* URL */
  background-position-y: top;
  background-repeat: no-repeat;
  background-size: auto;
  color: transparent;
  font-size: 0px;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
}
#characters-viewer .tab-navs button[aria-selected=true],
#characters-viewer .tab-navs button:hover {
  background-position-y: bottom;
}
#characters-viewer .tab-navs button#characters-viewer-1 {
  background-position-x: center;
}
#characters-viewer .tab-navs button#characters-viewer-2 {
  background-position-x: right;
}
#characters-viewer img {
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
}
#banners-dots,
#banners-autoplay {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  padding: 16px;
  z-index: 1;
  pointer-events: all!important;
}
#banners-dots button {
  width: 20px;
  height: 10px;
  border-radius: 3px;
  color: transparent;
  font-size: 0px;
  background-color: #ffae00;
  margin-inline-end: 8px;
}
#banners-dots button[aria-selected=true] {
  position: relative;
  background-color: white;
}
#banners:has(#banners-autoplay:not(:empty)) #banners-dots button[aria-selected=true] {
  width: 50px;
  transition: width 150ms ease-in-out
}
#banners:has(#banners-autoplay:not(:empty)) #banners-dots button[aria-selected=true]::after {
  position: absolute;
  content: '';
  display: block;
  background-color: #ffae00;
  width: 0;
  height: 100%;
  inset: 0;
  border-radius: 50vw;
  animation: carouselButtonGrow 5000ms linear forwards;
}
#banners-autoplay {
  inset-inline-start: 150px;
  inset-block-end: -4px;
  display: flex;
  gap: 8px;
  display: none;
}
#banners-autoplay button:hover {
  color: #ffae00 ;
}

@keyframes carouselButtonGrow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}