:root {
  --bg: #0b0f14;
  --card: #1a1f26;
  --text: #e6e6e6;
  --muted: #9aa3ad;

  --gold: linear-gradient(135deg, #f5c46b, #b8860b);
  --silver: linear-gradient(135deg, #d9d9d9, #8c8c8c);
  --bronze: linear-gradient(135deg, #d18b5f, #7a3e1d);
  --light-color: #fff;

  --gold-1: #f5c46a;
  --gold-2: #c48a2c;
  --gold-3: #8a5a12;
  --dark: #0b0f14;
}

@font-face {
  font-family: 'Horizon Oblique';
  src: url('../fonts/horizondrift-oblique.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Horizon Drift';
  src: url('../fonts/horizondrift-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  transition: 180ms ease;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Horizon Oblique", sans-serif;
  margin: 0;
}

p {
  margin: 0;
}

.main {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--text-dark);
  background-color: var(--bg-center);
}

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #B7E8CC;
  background: radial-gradient(circle, rgb(174, 255, 211) 0%, rgb(0, 8, 3) 79%);
  background-image: url(../img/backgroundMobile.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: contrast(1.05) saturate(1.05);
  z-index: 0;
}

.main::after {
  content: "";
  height: 500px;
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(252, 0, 0, 0.02) 1px, transparent 1px);
  background-image: url(../img/flares.webp);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 0) 100%);
}

.hw {
  font-family: "Horizon Oblique", sans-serif;
  font-size: 1.4em;
  padding-bottom: .5em;
}

.title {
  font-size: 2.5em;
  text-align: center;
  line-height: 30px;
  padding-bottom: .5em;
}

.ranking-title {
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 2px;
  font-weight: 600;
}

.smoke {
  min-height: 100vh;
  width: 100vw;
  height: 100%;
  position: absolute;
}

.smoke::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../img/smoke.webp);
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: .7;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 999;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  padding-bottom: 0px;
  display: flex;
  color: var(--light-color);
  flex-direction: column;
  align-items: center;
}


/* ===================
=================== */

.tabs {
  display: flex;
  width: 100%;
  max-width: 600px;
  height: 30px;
  border: 2px solid #628D00;
  background: #1c290f;
  position: relative;
  margin-top: 1.3em;
}

.tabs p {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;

  font-style: italic;
  font-size: .8em;

  color: #7b8f6a;
  position: relative;
  z-index: 1;
}

.tabs p.active {
  color: #ffffff;
}

.tabs p.active::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(135deg,
      #628D00,
      #5a8f00);

  clip-path: polygon(0 0,
      88% 0,
      94% 50%,
      100% 100%,
      0 100%);
  z-index: -1;
}


/* ===================
=================== */

#ranking-list {
  width: 100%;
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rank-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: -15px;
  max-width: 400px;
}

@media screen and (max-width: 768px) {
  .rank-item.gold {
    margin-top: 0px;
  }

}

.pilot {
  position: relative;
  width: 100%;
}

.pilot img {
  width: 100%;
}

.position {
  display: none;
  position: absolute;
  left: 2.2em;
  top: 10px;
  color: #ffffff9c;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.rank-item:not(.gold):not(.silver):not(.bronze) .position {
  display: block;
}

.info {
  display: flex;
  justify-content: space-between;
  font-style: italic;
  position: absolute;
  right: 27px;
  top: 45%;
  width: calc(100% - 176px);
}

.orders-cont {
  display: flex;
  flex-direction: column;
}

.is-weekly>div.rank-item.gold>div>div>div {
  display: flex !important;
}

small {
  font-size: 14px;
  opacity: .8;
}

@media screen and (min-width: 430px) {
  .position {
    left: 2.4em;
  }

  .info {
    width: calc(100% - 200px);
  }
}


@media screen and (min-width: 768px) {
  #ranking-list {
    width: 100%;
    max-width: 900px;
    margin-top: 2em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, auto);
    grid-auto-flow: column;
    justify-items: center;
  }
}


@media (max-width: 768px) {
  #ranking-list {
    max-height: 420px;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  #ranking-list.expanded {
    max-height: 2000px;
  }

  .toggle-btn {
    margin-top: 1.5em;
    background: none;
    border: none;
    color: #628D00;
    border: solid 2px #628D00;
    padding: .5em 2em;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 600;
    cursor: pointer;
  }
}

@media (min-width: 769px) {
  .toggle-btn {
    display: none;
  }
}

#ranking-list.is-weekly .rank-item {
  background-color: #07260782;
  width: 100%;
  margin-top: 0px;
  margin-bottom: 5px;
  /* height: 80px; */
}

#ranking-list.is-weekly .pilot {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#ranking-list.is-weekly .position {
  display: flex;
  width: 50px;
  position: relative;
  background-color: #2d2d2d;
  align-items: center;
  justify-content: center;
  left: auto;
  top: auto;
  color: #ffffff9c;
  font-size: 1em;
  font-weight: 700;
  padding: 0px;
  border-radius: 0;
}

#ranking-list.is-weekly .position b {
  display: none;
}

#ranking-list.is-weekly .pilot img {
  width: 58px;
}

#ranking-list.is-weekly .info {
  display: flex;
  justify-content: space-between;
  font-style: italic;
  position: relative;
  right: 0px;
  top: 40%;
  width: 70%;
}

#ranking-list.is-weekly .orders-cont {
  min-width: 90px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ranking-list.is-weekly .orders-cont small {
  display: none;
}

#ranking-list.is-weekly .orders i {
  display: none;
}

#ranking-list.is-weekly .name {
  display: flex;
  align-items: center;
}

.tabs p[data-tab='weekly'].active::before {
  clip-path: polygon(0 100%, 13% 0%, 100% 0%, 100% 100%, 0 100%) !important;
}

#ranking-list.is-weekly .rank-item.gold .pilot .position {
  background: linear-gradient(to right, #b1801e, #c48b21, #a87913, #b9831e, #c5820d);
}

#ranking-list.is-weekly .rank-item.silver .pilot .position {
  background: linear-gradient(to right, #585858, #6e6e6e, #444444, #575757, #494949);
}

#ranking-list.is-weekly .rank-item.bronze .pilot .position {
  background: linear-gradient(to right, #702929, #5c2222, #682121, #642020, #752727);
}

#ranking-list.is-weekly .rank-item:nth-child(odd) {
  background: #2d440442;
}

#ranking-list.is-weekly .rank-item:nth-child(even) {
  background: #2d4404be;
}

.week-badge {
  display: none;
}

.week-badge.active {
  display: inline-flex;
}

.week-badge {
  align-items: center;
  background: linear-gradient(180deg,
      #2f4b0f 0%,
      #1c2f08 50%,
      #2f4b0f 100%);
  padding: 6px 14px;
  border-radius: 4px;
  font-style: italic;
  font-weight: 700;
  color: #e6f2c6;
  text-transform: uppercase;
  letter-spacing: 1px;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin-top: 2em;
}

.week-text {
  font-size: 14px;
  white-space: nowrap;
}

.week-badge .arrow {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.week-badge .arrow.left {
  border-right: 8px solid #6fa600;
}

.week-badge .arrow.right {
  border-left: 8px solid #6fa600;
}

/* 
===============
=============== */
.awards {
  width: 100%;
  text-align: center;
  margin-top: 2em;
  padding-bottom: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #0b0f14;
  color: var(--light-color);
  z-index: 3;
  position: relative;
}

.awards::before {
  content: '';
  display: block;
  position: absolute;
  width: 100vw;
  height: 400px;
  background: #F5C46A;
  background: linear-gradient(180deg, rgba(245, 196, 106, 0) 0%, rgba(11, 15, 20, 1) 65%);
  top: -400px;
}

.awards h1 {
  font-size: 2.5em;
  margin: 0;
}

.vip {
  color: #a07120;
}

.location {
  font-size: 2.3em;
  color: #D99B31;
}

.leader {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.pilot .orders {
  display: none;
}

.prizes {
  text-transform: uppercase;
  font-style: italic;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 4px;
  margin-bottom: 2em;
}

.awards span {
  background-color: #2d2d2d;
  padding: .5em 2em;
}

.awards img {
  width: 100%;
  max-width: 700px;
  margin: 1em 0;
}

.awards p {
  line-height: 15px;
}

.places-container {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.places {
  margin-top: 1em;
  font-size: 13px;
  text-align: center;
  border-radius: 5px;
  padding: .8em 1em !important;
}

.place-gold {
  background: linear-gradient(135deg, #b9944e, #a87921);
}

.place-silver {
  background: linear-gradient(135deg, #5f5f5f, #2f2f2f);

}

.luck {
  text-transform: uppercase;
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 3px;
  font-style: italic;
  margin-top: 2em;
}

@media screen and (min-width: 768px) {
  .places-container {
    width: 100%;
  }

  .place-gold {
    width: 90%;
    max-width: 500px;
  }

  .place-silver {
    width: 70%;
    max-width: 400px;
  }

  .awards {
    margin-top: 4em;
  }

  .awards h1 {
    font-size: 3em;
    margin: 0;
  }

  .location {
    font-size: 2.8em;
  }

  .prizes {
    display: none;
  }

  .awards::before {
    height: 200px;
    top: -200px;
  }
}

.btn-weekly-winners {
  margin-top: 3em;
  background: none;
  border: none;
  color: #628D00;
  border: solid 2px #628D00;
  padding: .5em 2em;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .btn-weekly-winners {
    font-size: .88em;
  }
}