/* Font Family ***********************************************************************/
@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel/Cinzel-Regular.eot');
  src: url('../fonts/cinzel/Cinzel-Regular.eot?#iefix') format('embedded-opentype'),
      url('../fonts/cinzel/Cinzel-Regular.woff2') format('woff2'),
      url('../fonts/cinzel/Cinzel-Regular.woff') format('woff'),
      url('../fonts/cinzel/Cinzel-Regular.ttf') format('truetype'),
      url('../fonts/cinzel/Cinzel-Regular.svg#Cinzel-Regular') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('../fonts/cinzel/Cinzel-Bold.eot');
  src: url('../fonts/cinzel/Cinzel-Bold.eot?#iefix') format('embedded-opentype'),
      url('../fonts/cinzel/Cinzel-Bold.woff2') format('woff2'),
      url('../fonts/cinzel/Cinzel-Bold.woff') format('woff'),
      url('../fonts/cinzel/Cinzel-Bold.ttf') format('truetype'),
      url('../fonts/cinzel/Cinzel-Bold.svg#Cinzel-Bold') format('svg');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --dark-ebony: #432400;
  --gold: #E8AB38;
  --puce: #8A5655; 
  --silver: #c0c0c0; 
  --white: #FFFFFF; 
}
body {
  font-family: 'Cinzel';
  font-weight: normal;
  background-color: var(--black);
}
.leaderboard-list .rank.gold { color: var(--gold); }
.leaderboard-list .rank.silver { color: var(--silver); }
.leaderboard-list .rank.bronze { color: var(--puce); }

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
*::before, *::after {
  box-sizing: border-box;
}
.common::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}
p {
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 15px;
}
p:last-child {
  margin-bottom: 0;
}
a {
  display: inline-block;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
  text-transform: capitalize;
  font-family: inherit;
}
span {
  display: inline-block;
}
img, video {
  max-width: 100%;
}

.mobile-container {
  max-width: 479px;
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 5px 0 5px;
  margin: 0 auto;
  text-align: center;
  background: url("../images/landing-bg.jpg") no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  position: relative;
}
/*** Header ********************/
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.header .back-btn {
  cursor: pointer;
  border-radius: 20px;
  border: none;
  background: none;
}
.header .back-btn img {
  max-width: 70%;
}
.logo-box img {
  max-width: 55%;
  width: 100%;
}
/* main-wrapper *****************/
.main-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100dvh;
  position: relative;
}
.top-part {
  display: flex;
  flex-direction: column;
  row-gap: 50px;
}
/*** Leaderboard Box ***/
.leaderboard-box-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: url("../images/leaderboard-table-bg.png") no-repeat;
  background-size: 100% 100%;
  padding: 50px 44px 0 44px;
  min-height: 525px;
}
.leaderboard-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  padding: 12px 12px;
  border-bottom: 2px solid var(--dark-ebony);
  margin-bottom: 6px;
}
.leaderboard-header span {
  font-size: 15px;
  color: var(--dark-ebony);
  text-align: left;
}
.leaderboard-header .ranks {
  width: 20%;
}
.leaderboard-header .u-names {
  width: 55%;
  text-align: left;
  padding-left: 4px;
}
.leaderboard-header .scroe {
  width: 25%;
}
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  padding-top: 13px;
}
.leaderboard-list::-webkit-scrollbar {
  display: none;
}
.leaderboard-list .list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 10px 18px 12px 18px;
  border-radius: 6px;
  position: relative;
}
.leaderboard-list .win-user {
  background: url("../images/win-user-bg.png") no-repeat;
  background-size: 100% 100%;
}
.leaderboard-list .win-user .rank.gold {
  position: relative;
}
.leaderboard-list .win-user.u-gold,
.leaderboard-list .win-user.u-silver,
.leaderboard-list .win-user.u-bronze {
  position: relative;
}
.leaderboard-list .win-user.u-gold:after {
  position: absolute;
  content: "";
  left: 5px;
  top: -14px;
  background: url("../images/gold-crown.png") no-repeat;
  background-size: 100% 100%;
  z-index: 99999;
  width: 47px;
  height: 28px;
  z-index: 10;
}
.leaderboard-list .win-user.u-silver:after {
  position: absolute;
  content: "";
  left: 5px;
  top: -14px;
  background: url("../images/silver-crown.png") no-repeat;
  background-size: 100% 100%;
  z-index: 99999;
  width: 47px;
  height: 28px;
  z-index: 10;
}
.leaderboard-list .win-user.u-bronze:after {
  position: absolute;
  content: "";
  left: 5px;
  top: -14px;
  background: url("../images/bronze-crown.png") no-repeat;
  background-size: 100% 100%;
  z-index: 99999;
  width: 47px;
  height: 28px;
  z-index: 10;
}
.leaderboard-list .s-user {
  background: url("../images/simple-user-bg.png") no-repeat;
  background-size: 100% 100%;
}
.leaderboard-list .u-name {
  color: var(--dark-ebony);
  line-height: 1.2;
}
.leaderboard-list .win-user .u-name {
  font-weight: bold;
  color: var(--dark-ebony);
  line-height: 1.2;
}
.leaderboard-list .rank {
  font-size: 26px;
  font-weight: bold;
  color: var(--dark-ebony);
  line-height: 1;
  min-width: 20px;
}
.leaderboard-list .score {
  font-size: 13px;
  color: var(--white);
  padding: 3px 8px 5px 16px;
  display: flex;
  gap: 5px;
  background: url("../images/point-counter.png") no-repeat;
  background-size: 100% 100%;
  position: relative;
  min-width: 72px;
}
.leaderboard-list .score img {
  max-width: 35%;
  width: 100%;
  position: absolute;
  left: -10px;
  top: -2px;
}
/* Fixed */
.me-user-main {
  position: fixed;
  bottom: 20px;
  /* width: 100%; */
  width: calc(100% - 100px);
  max-width: 420px;
}
.leaderboard-list .me-user {
  background: url("../images/me-user.png") no-repeat;
  background-size: 100% 100%;
}
.leaderboard-list .me-user .rank,
.leaderboard-list .me-user .u-name {
  color: var(--white);
}
/*** Empty State ***/
.empty-state {
  text-align: center;
  margin: 45px 0;
}
.empty-state p {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 5px;
}
.empty-state small {
  font-size: 14px;
  color: var(--white);
}

/***  MODAL Css ********/
.modal-overlay {
  position: fixed;
  max-width: 479px;
  margin: 0 auto;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: 0.3s ease;
  background: rgb(0 0 0 / 7%);  
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  position: relative;
  width: 96%;
  max-width: 479px;
  color: var(--dark-ebony);
  padding: 34px 40px;
  text-align: center;
  background: url("../images/modal-bg.png") no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.go-btn-bx {
  position: absolute;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

.go-btn-bx.top-right {
  top: 0px;
  right: 6px;
  width: 65px;
  height: 65px;
}
.go-btn-bx.btm-left {
  bottom: -2px;
  left: 6px;
  width: 65px;
  height: 65px;
}
.go-btn-bx.btm-right {
  bottom: 0px;
  right: 6px;
  width: 65px;
  height: 65px;
}
.modal-header img {
  max-width: 180px;
  margin: 25px 0 15px 0;
}
.modal-box h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.modal-box p {
  font-size: 14px;
  color: var(--dark-ebony);
  max-width: 280px;
  margin: 0 auto;
  margin-bottom: 20px !important;
}
.modal-input {
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  border: 1px solid var(--dark-ebony);
  margin-bottom: 15px;
  background: transparent;
  max-width: 240px;
  margin: 0 auto;
  /* margin-bottom: 55px; */
    margin-bottom: 12px;
}
.modal-input:focus {
  border: 1px solid var(--dark-ebony);
  outline: none;
  box-shadow: none;
}
.modal-input:focus-visible {
  outline: none;
}
/* only for model by pp */
/* ===== STACK BUTTON BELOW INPUT ===== */

.modal-form-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Submit Button Styling Only */
.modal-submit-btn {
  padding: 17px 46px;
  font-family: 'Cinzel';
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
  border: 2px solid var(--dark-ebony);
  /* background: linear-gradient(180deg, #f6c76a, #d89025); */
  background: url("../images/submit-btn.png") no-repeat;
  background-size: 100% 100%;
  color: #432400;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.2s ease;
}

/* Hover Effect */
.modal-submit-btn:hover {
  background: linear-gradient(180deg, #ffd27d, #e19b30);
}

/* Press Effect */
.modal-submit-btn:active {
  transform: scale(0.95);
}

.username-container{
    background: url("../images/Username_Background.png") no-repeat;
    background-size: 100% 100%;
}
/* only for model by pp */

/* Disable scroll */
body.modal-open {
  overflow: hidden;
}

@media screen and (max-width: 575px) {
  .top-part {
    row-gap: 20px;
  }
}

@media screen and (max-width: 479px) {
  .mobile-container {
    gap: 10px;
    padding: 10px 5px 0 5px;
  }
  .header .back-btn img {
    max-width: 60%;
  }
  .top-part {
    row-gap: 10px;
  }
  .logo-box img {
    max-width: 48%;
  }
  .leaderboard-ttl-bx img {
    max-width: 60%;
  }
  .me-user-main {
    width: calc(100% - 60px);
  }
  .modal-box p {
    font-size: 13px;
  }
}

@media screen and (max-width: 390px) {
  .header .back-btn img {
    max-width: 55%;
  }
  .leaderboard-ttl-bx img {
    max-width: 55%;
  }
  .leaderboard-box-main {
    padding: 40px 40px 0 40px;
  }
}

@media screen and (max-width: 320px) {
  .mobile-container {
    gap: 0;
    padding: 5px 5px 0 5px;
  }
  .logo-box img {
    max-width: 46%;
  }
  .top-part {
    row-gap: 0;
  }
  .leaderboard-box-main {
    padding: 30px 30px 0 30px;
  }
  .leaderboard-header span {
    font-size: 14px;
  }
  .leaderboard-list {
    max-height: 230px;
    padding-top: 7px;
    gap: 5px;
  }
  .leaderboard-list .list-item {
    font-size: 13px;
    padding: 10px 12px 12px 12px;
  }
  .leaderboard-list .rank {
    font-size: 23px;
  }
  .leaderboard-list .win-user.u-gold:after,
  .leaderboard-list .win-user.u-silver:after,
  .leaderboard-list .win-user.u-bronze:after {
    left: 3px;
    top: -8px;
    width: 40px;
    height: 24px;
  }
  .modal-box h2 {
    font-size: 16px;
  }
  .modal-header img {
    max-width: 160px;
    margin: 25px 0 15px 0;
  }
  .modal-input {
    max-width: 200px;
    margin-bottom: 45px;
  }
}