/* common disabled button */
button:disabled {
  cursor: not-allowed;
}

/* Common top bounce banner */
.top-banner {
  position: absolute;
  width: 100vw;
  height: auto;
  top: 0;
  right: 0;
  left: 0;
  margin: auto;
}

/***Tnc Page Screen***/
#tncPageScreen {
  display: block;
  visibility: visible;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-image: url("/assets/images/bgTwo.png");
  background-size: cover;
  background-position: bottom;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.tnc-content {
  width: 90%;
  position: absolute;
  bottom: 30dvh;
  left: 0;
  right: 0;
  margin: auto;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  padding: 17px 14px;
}

.tnc-content p {
  font-size: 0.7rem !important;
  font-family: "Poppins", sans-serif !important;
}

.tnc-content #checkbox {
  position: relative;
  width: 15.6px;
  height: 15.6px;
  min-width: 15.6px;
  border: 1px solid;
  border-radius: 5px;
  padding: 1px;
  margin-bottom: 20px;
}

#checkbox img {
  visibility: hidden;
  width: 12px;
  height: 12px;
  pointer-events: none;
  position: absolute;
  bottom: 30%;
  left: 22%;
}

.tnc-p {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tnc-p a {
  color: #37caff;
  font-weight: 600;
}

.tnc-p span {
  color: black;
  font-weight: 600;
}

.accept-button {
  position: absolute;
  bottom: 8dvh;
  right: 0;
  left: 0;
  margin: auto;
  width: max-content;
  background-color: #f6ba2b;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 38px;
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

/***landingPageScreen***/
#landingPageScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  /* background-image: url("https://cdn.makear.ai/bounce-keeper-league/assets/images/bgLanding.png"); */
  background-image: url("/assets/images/bgLanding.png");
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

/*Loading Bar container*/
.loading-bar-container {
  display: block;
  position: absolute;
  bottom: 8.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 45vw;
  max-width: 300px;
  height: 25px;
  background-color: transparent;
  border: 2px solid black;
  border-radius: 8px;
  z-index: 2;
  padding: 0;
  box-sizing: border-box;
}

.loading-bar-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: #f6ba2b;
  border-radius: 6px;
  transition: width 0.1s linear;
  animation: fillAnimation 1s linear forwards;
}

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

/***Play Game Button***/
.play-game-button {
  display: none;
  position: absolute;
  bottom: 8%;
  right: 0;
  left: 0;
  margin: auto;
  width: max-content;
  background-color: #f6ba2b;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 22px;
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

#landingPageScreen .landing-page-title {
  position: absolute;
  top: 20%;
  text-align: center;
  transform: translate(50%);
  right: 50%;
  color: white;
  -webkit-text-stroke: 0.5px #fca02f;
  font-family: "Mogra", sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  text-shadow: 0px 2px 3px black;
  width: 100%;
}

#landingPageScreen .doraemon-logo {
  position: absolute;
  top: 18%;
  width: 50%;
  height: auto;
  left: 0;
  right: 0;
  margin: auto;
}

#landingPageScreen .keeper-league-logo {
  position: absolute;
  top: 26%;
  width: 75%;
  height: auto;
  left: 0;
  right: 0;
  margin: auto;
}

#landingPageScreen .dora-left-img {
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 95px;
}

#landingPageScreen .dora-right-img {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 80px;
}

#landingPageScreen .license-img {
  position: absolute;
  bottom: 0;
  width: 100px;
  right: 0;
  left: 0;
  margin: auto;
}

/***packSelectionScreen***/
#packSelectionScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://cdn.makear.ai/bounce-keeper-league/assets/images/bg.png");
  background-size: cover;
  background-position: bottom center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.pick-your-pack-text {
  position: absolute;
  top: 25%;
  right: 50%;
  transform: translate(50%);
  color: white;
  font-size: 1.5rem;
  width: 80%;
  text-align: center;
  font-family: "Mogra", sans-serif;
  -webkit-text-stroke: 1px #a4cb43;
}

.carousel-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  top: 35%;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
}

.carousel {
  position: relative;
  width: 260px;
  height: 200px;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  transform: translate(-50%, -50%) scale(0.7) rotate(-15deg);
  transition: all 0.35s ease;
}

.carousel-item.active {
  width: 200px;
  transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 99;
}

#leftItem {
  left: 20%;
}

#rightItem {
  left: 80%;
  transform: translate(-50%, -50%) scale(0.7) rotate(15deg);
}

.carousel-arrows {
  display: flex;
  gap: 100px;
  margin-top: 30px;
}

.carousel-arrow {
  background: none;
  border: none;
  cursor: pointer;
}

.left-arrow-img {
  width: 30px;
  pointer-events: none;
}

.right-arrow-img {
  width: 30px;
  pointer-events: none;
}

.pack-select-button {
  position: absolute;
  bottom: 8%;
  right: 0;
  left: 0;
  margin: auto;
  width: max-content;
  background-color: #f6ba2b;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 22px;
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

#parentalGuideScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  color: white;
  background: url("/assets/images/background2.png");
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

#parentalGuideScreen .doraemon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70px;
}

.parental-guide-box {
  position: absolute;
  inset: 0;
  margin: auto;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 335px;
  font-family: Arial, sans-serif;
}

.pg-heading {
  width: 102%;
  background: radial-gradient(
    56.15% 99.66% at 49.84% 0%,
    #ff0000 0%,
    #e67614 96.63%
  );
  color: white;
  font-size: 24px;
  font-family: "Mogra", sans-serif;
  font-weight: 400;
  text-align: center;
  padding: 6px 15px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(85% - 40px),
    calc(100% - 30px) 90%,
    30px 90%,
    0 calc(85% - 40px)
  );
  margin-bottom: -8px;
  position: relative;
  z-index: 2;
  border: 2px solid black;
}

.pg-points {
  background: white;
  padding: 30px 10px 50px 10px;
  border: 2px solid #333;
  border-radius: 0 0 30px 30px;
  position: relative;
  max-width: 285px;
}

.pg-points ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-points p {
  font-size: 12px;
  line-height: 1.2;
  color: #333;
  position: relative;
  margin-bottom: 4px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}
.pg-points p:nth-child(2) {
  margin-top: 10px;
}

.pg-points li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.pg-points li:last-child {
  margin-bottom: 0;
}

.parental-ok-button {
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  margin: auto;
  width: max-content;
  background-color: #f6ba2b;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 35px;
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

/***instructionScreen***/
#instructionScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  color: white;
  background: url("/assets/images/background2.png");
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

#instructionScreen .doraemon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70px;
}

.instructions-box {
  position: absolute;
  top: 180px;
  right: 50%;
  transform: translate(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 335px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.instructions-heading {
  width: 102%;
  background: radial-gradient(
    56.15% 99.66% at 49.84% 0%,
    #ff0000 0%,
    #e67614 96.63%
  );
  color: white;
  font-size: 24px;
  font-family: "Mogra", sans-serif;
  font-weight: 400;
  text-align: center;
  padding: 6px 15px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(85% - 40px),
    calc(100% - 30px) 90%,
    30px 90%,
    0 calc(85% - 40px)
  );
  margin-bottom: -8px;
  position: relative;
  z-index: 2;
  border: 2px solid black;
}

.instructions-points {
  background: white;
  padding: 20px 20px 50px 20px;
  border: 2px solid #333;
  border-radius: 0 0 30px 30px;
  position: relative;
  max-width: 285px;
}

.sub-heading-one {
  margin: 0px 0px 3px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: black;
}

.sub-heading-two {
  margin: 10px 0px 3px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: black;
}

.instructions-points ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.instructions-points li {
  font-size: 12px;
  line-height: 1.2;
  color: #333;
  padding-left: 15px;
  position: relative;
  margin-bottom: 4px;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

.instructions-points li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.instructions-points li:last-child {
  margin-bottom: 0;
}

.instruction-ok-button {
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  margin: auto;
  width: max-content;
  background-color: #f6ba2b;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 35px;
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

/***howToPlayScreen***/
#howToPlayScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://cdn.makear.ai/bounce-keeper-league/assets/images/bg.png");
  background-size: cover;
  background-position: bottom center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

#howToPlayScreen .capture-screen-content {
  position: absolute;
  bottom: 1dvh;
  right: 2dvw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#captureDisplay {
  width: 40vw;
  border-radius: 15px;
  max-width: 320px;
  height: 100%;
  max-height: 240px;
  border: 1px solid #ffffff;
  transform: scaleX(-1);
}

#howToPlayScreen .instructions-text-div {
  position: absolute;
  top: 25dvh;
  width: 100%;
  margin: auto;
  text-align: center;
  padding: 0 10%;
}

#howToPlayScreen .instructions-text {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  -webkit-text-stroke: 0.5px #71921d;
  font-family: "Mogra", sans-serif;
}

.instructions-message {
  font-size: 1rem !important;
  font-family: "Poppins", sans-serif !important;
}

.main-head-container {
  position: absolute;
  top: 80dvh;
  left: 50%;
  transform: translateX(-50%);
  width: 90dvw;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.head-container {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4dvh;
  bottom: 10dvh;
  height: 20dvh;
  width: 100%;
  max-width: 300px;
}

.head-container img {
  width: 38dvh;
  max-width: 380px;
  height: auto;
  object-fit: contain;
}

#howToPlayScreen .turn-text {
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}

/***Game Screen***/
#game-container {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  max-height: calc(420px * 20 / 9); /* Maintain max aspect ratio */
  aspect-ratio: 9 / 20;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain; /* Ensures canvas maintains aspect ratio */
}

#gameCam {
  display: none;
  height: 100px;
  width: 85px;
  position: fixed;
  z-index: 99999999;
  right: 2dvh;
  bottom: 2dvh;
  border-radius: 8px;
  object-fit: cover;
  transform: scaleX(-1);
}

/* Mobile optimization for game container */
@media (max-width: 480px) {
  #game-container {
    max-width: 100%;
  }
}

/***Form Screen***/
#formScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-image:
    radial-gradient(
      88.8% 51.67% at 50% 51.67%,
      rgba(26, 26, 26, 0) 0%,
      rgba(11, 10, 9, 0.08) 46.37%,
      rgba(24, 24, 24, 0.85) 100%
    ),
    url("https://cdn.makear.ai/bounce-keeper-league/assets/images/bg.png");
  background-size: cover;
  background-position: bottom center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.form-container {
  position: absolute;
  top: 15%;
  right: 0;
  left: 0;
  margin: auto;
  max-height: 80%;
  min-height: fit-content;
  background-color: #ff8201;
  background-image: url("https://cdn.makear.ai/bounce-keeper-league/assets/images/formBg.png");
  background-position: center;
  background-size: cover;
  color: white;
  border-radius: 20px;
  max-width: 400px;
  width: 90vw;
  padding: 40px 20px 0px 20px;
}

.form-screen-logo {
  position: absolute;
  width: 125px;
  top: -35px;
  right: 0;
}

.form-container .doraKickImg {
  position: absolute;
  top: -60px;
  width: 115px;
  left: 0;
}

.score-text {
  text-align: center;
  font-size: 2rem;
  color: white;
  font-family: "Mogra", sans-serif;
}

#scoreNumber {
  font-weight: 700;
  font-size: 3rem;
  -webkit-text-stroke: 1px #71921d;
}

.form-text-small {
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

#user-form {
  text-align: left;
}

.form-field-text {
  font-size: 16px;
  display: block;
  font-family: "Poppins", sans-serif;
}

.note-text {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  margin: 0px 0px 10px;
}

.form-field-input {
  background-color: #fff;
  border: 1px solid #ffffff;
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  font-size: 16px;
  color: #5c5a5a;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.form-field-input::placeholder {
  color: #838181;
}

.form-field-input:focus {
  outline: none;
  color: #5c5a5a;
  background-color: #fff;
}

.form-field-container {
  margin-bottom: 10px;
}

.photo-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #ffffff;
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  color: white;
  transition: all 0.3s ease;
}

.photo-btn-row {
  display: flex;
  gap: 10px;
}

.photo-choice-btn {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: #eee;
}

.photo-text-container {
  display: none;
  gap: 5px;
  align-items: center;
  padding: 1px 0px;
}

#previewImg {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.cross-btn {
  margin-left: 5px;
  color: #840000;
  font-size: 18px;
}

.submit-button-container {
  width: 100%;
  display: flex;
  gap: 15px;
  margin: 15px 0;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
}

.submit-button {
  font-family: "Poppins", sans-serif;
  padding: 0px 20px;
  min-width: 125px;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1px 25px;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
  background-color: #f6ba2b;
}

.retry-button {
  font-family: "Poppins", sans-serif;
  padding: 0px 20px;
  min-width: 125px;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1px 25px;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
  background-color: #f6ba2b;
}

/*Avatar Selection Screen*/
#avatarSelectionScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: #ffffff;
  background-size: cover;
  background-position: bottom center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.score-container {
  position: absolute;
  right: 10px;
  top: 10px;
  text-align: center;
  width: fit-content;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  font-family: "Mogra", sans-serif;
}

.your-score-text {
  color: white;
  font-size: 20px;
  text-shadow: 0px 2px 3px black;
}

.your-score-number {
  width: 100%;
  color: white;
  font-size: 2.3rem;
  font-weight: 500;
  -webkit-text-stroke: 2.5px #31913b;
  letter-spacing: -2px;
  text-shadow: 0px 2px 3px black;
}

#avatarSelectionScreen .heading {
  font-family: "Mogra", sans-serif;
  color: white;
  position: absolute;
  top: 17%;
  right: 50%;
  transform: translate(50%);
  font-size: 2.5rem;
  width: 100%;
  text-align: center;
  -webkit-text-stroke: 3px #71921d;
  font-weight: 100;
  letter-spacing: -2px;
  text-shadow: 0px 2px 3px black;
}

.generate-button {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  margin: auto;
  width: max-content;
  background-color: #f6ba2b;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 22px;
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

#avatarSelectionScreen .avatars-container {
  position: absolute;
  top: 30%;
  align-items: center;
  display: grid;
  justify-content: center;
  grid-template-columns: 1fr 1fr 1fr;
  margin: auto;
  left: 0;
  right: 0;
  justify-items: center;
  row-gap: 2rem;
}

.avatar-image-block {
  padding: 10px 5px 5px;
}

.lockedAvatar {
  opacity: 0.5;
  pointer-events: none;
}

.unlockedAvatar {
  opacity: 1;
  pointer-events: auto;
}

.new-text {
  color: #86e027;
  font-size: 12px;
  text-align: center;
}

#avatarSelectionScreen .unlocked-text {
  text-align: center;
  font-size: 12px;
  color: #ff7e00;
}

#avatarSelectionScreen .points-text {
  font-size: 12px;
  text-align: center;
  color: black;
}

.avatar-image {
  width: 100px;
  height: auto;
  pointer-events: none;
}

.avatar-selected {
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.5) 22%,
    rgba(26, 26, 26, 0.3) 42%,
    rgba(26, 26, 26, 0) 100%
  );
  border-bottom-right-radius: 10%;
  border-bottom-left-radius: 10%;
  border-top-right-radius: 100%;
  border-top-left-radius: 100%;
}

/*User Card Screen*/
#userCardScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: url("https://cdn.makear.ai/bounce-keeper-league/assets/images/bg.png");
  background-size: cover;
  background-position: bottom center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.logo-text-main {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 100px;
}

#userCardScreen .card-heading {
  position: absolute;
  top: 11%;
  left: 0;
  right: 0;
  font-family: "Mogra", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  color: white;
  -webkit-text-stroke: 1px #71921d;
  margin: auto;
}

.generated-container {
  position: absolute;
  inset: 0;
  bottom: 0;
  margin: auto;
  width: 90%;
  max-width: 300px;
  min-width: 300px;
  height: min(60dvh, 400px);
  background: url("https://cdn.makear.ai/bounce-keeper-league/assets/images/cardBackgrounds/orangeBg.png");
  background-size: cover;
  background-position: center;
  border: 4px solid white;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
}

.card-top-text {
  position: absolute;
  top: 10px;
  text-align: center;
}

.card-top-text p:nth-child(1) {
  font-size: 1.5rem;
  text-align: center;
  font-weight: 900;
  font-family: "Poppins", sans-serif;
  color: white;
}

.card-top-text p:nth-child(2) {
  font-size: 10px;
  font-weight: normal;
  font-style: italic;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.5px;
  margin-top: -5px;
  color: white;
}

.card-dora {
  width: 90px;
  position: absolute;
  left: 18px;
  bottom: 5px;
}

.card-content {
  display: flex;
  width: 85%;
  height: 85%;
  gap: 5px;
}

#userNameText {
  width: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 10%;
  transform: rotate(-90deg);
  font-size: clamp(1.8rem, 4vw, 2rem);
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  -webkit-text-stroke: 2px green;
  letter-spacing: -2px;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  justify-content: center;
  position: relative;
  top: -3.5rem;
}

.avatar-wrapper {
  flex: 1;
  display: flex;
  align-items: start;
  justify-content: center;
  padding-bottom: 10px;
}

#userCardScreen .logo-text {
  position: absolute;
  bottom: 4px;
  right: 18px;
  width: 80px;
  z-index: 2;
}

#userCardScreen .avatar-preview {
  display: none;
  max-height: 95%;
  width: auto;
  border-radius: 5px;
  border: 4px solid white;
  object-fit: contain;
  max-width: 100%;
}

#userCardScreen .avatar-skeleton {
  display: none;
  width: 100%;
  height: 95%;
  max-height: 100%;
  border: 4px solid white;
  /* shimmer effect*/
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 37%, #e0e0e0 63%);
  background-size: 400% 100%;
  animation: shimmer 3s infinite;

  justify-content: center;
  align-items: center;

  /* Loading text */
  color: #9a9a9a;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

/* Skeleton shimmer animation */
@keyframes skeleton-loading {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.download-share-container {
  position: absolute;
  bottom: 12%;
  right: 0;
  left: 0;
  margin: auto;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.download-button {
  width: max-content;
  background-color: #f6ba2b;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

.share-button {
  width: max-content;
  background-color: #f6ba2b;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 38px;
  font-size: 1rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

.leaderboard-button {
  position: absolute;
  bottom: 4%;
  right: 0;
  left: 0;
  margin: auto;
  width: max-content;
  background-color: #ffffff;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 30px;
  font-size: 1rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

@media screen and (max-width: 333px) {
  #userCardScreen .heading {
    font-size: 1.2rem;
  }

  .download-btn-img {
    width: 8rem;
  }

  .share-btn-img {
    width: 8rem;
  }

  .leaderboard-btn-img {
    width: 10rem;
  }
}

/*leaderboard Screen*/
#leaderboardScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: url("https://cdn.makear.ai/bounce-keeper-league/assets/images/bg.png");
  background-size: cover;
  background-position: bottom center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.leaderboard-table {
  color: white;
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0px;
  margin: auto;
  text-align: center;
}

.play-again-button {
  position: absolute;
  width: 200px;
  bottom: 3%;
  right: 0;
  left: 0;
  margin: auto;
  min-width: 150px;
  background-color: #ff8b00;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}

.leaderboard-box {
  position: absolute;
  top: 0;
  bottom: 8%;
  right: 0;
  left: 0;
  margin: auto;
  border-radius: 20px;
  width: 85%;
  height: max-content;
  max-height: 80dvh;
  background-position: center;
  background-size: cover;
}

.leaderboard-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 5.5rem 0.5rem 4.5rem;
  background: url("https://cdn.makear.ai/bounce-keeper-league/assets/images/cardBackgrounds/orangeBg.png");
  border-radius: 20px;
  width: 100%;
  height: max-content;
  max-height: 72dvh;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

#leaderboardScreen .logo-text {
  position: absolute;
  top: -2.5rem;
  right: 0;
  left: 0;
  margin: auto;
  width: 9rem;
}

#leaderboardScreen .leaderboard-cross-btn {
  font-family: "Mogra", sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  position: absolute;
  top: 10px;
  left: 15px;
  background: transparent;
  border: none;
  color: white;
  -webkit-text-stroke: 0.5px black;
}

#leaderboardScreen .heading {
  position: absolute;
  top: 0;
  font-family: "Mogra", sans-serif;
  color: white;
  position: absolute;
  top: 2.5rem;
  right: 0;
  left: 0;
  margin: auto;
  font-size: 2.5rem;
  width: 100%;
  text-align: center;
  -webkit-text-stroke: 2px #71921d;
  font-weight: bold;
  letter-spacing: -2px;
}

.leaderboard-play-btn {
  text-decoration: none;
  color: #000;
}

#leaderboardTableBody {
  display: none;
  overflow: auto;
  flex: 1;
  z-index: 999;
  animation: fadeIn 0.3s ease-in;
}

.leaderboard-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  transition: 0.2s;
  background: #eb1b2b;
  position: relative;
  top: 0%;
  padding-bottom: 0;
  color: #fff;
  border-radius: 12px 12px 0 0;
  padding: 0.3rem 0 0.6rem;
  margin-bottom: -5px;
  font-size: 14px;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 7px;
  border: 1px solid transparent;
  background: #fff;
  color: #000;
  transition: 0.2s;
}

.left {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 70%;
  border-right: 1px solid #b4b4b4;
}

.rank-header {
  width: 1.4rem;
  height: auto;
  margin-right: 0.7rem;
  margin-left: 0.6rem;
  color: #fff;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.rank-icon {
  width: 1.4rem;
  height: auto;
  margin-left: 0.8rem;
  margin-right: 0.4rem;
}

.rank-number {
  background: #0000001c;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
  color: #00000073;
  margin-left: 0.8rem;
  margin-right: 0.3rem;
}

.name-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 2.4rem;
  overflow: hidden;
  border-left: 1px solid #b4b4b4;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.avatar {
  width: 2.4rem;
  height: 2.4rem;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-left: 1px solid #b4b4b4;
}

.name {
  font-weight: 500;
  font-size: 14px;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: "Poppins", sans-serif;
}

.right {
  font-weight: 600;
  font-size: 14px;
  width: 30%;
  text-align: center;
}

.score-header {
  color: #fff;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.score {
  color: #000;
  font-family: "Poppins", sans-serif;
}

.leaderboard-item.current-user {
  background-color: #f7f117;
}

/* Skeleton loader for leaderboard*/
#leaderboardSkeleton {
  display: flex;
  flex-direction: column;
}

.leaderboard-item.skeleton {
  background: #e6e6e6;
  pointer-events: none;
}

.skeleton-rank,
.skeleton-avatar,
.skeleton-text,
.skeleton-score {
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 37%, #e0e0e0 63%);
  background-size: 400% 100%;
  animation: shimmer 2s infinite;
}

.skeleton-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin-left: 0.8rem;
}

.skeleton-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 4px;
}

.skeleton-text {
  width: 110px;
  height: 14px;
  border-radius: 4px;
}

.skeleton-score {
  width: 50px;
  height: 14px;
  border-radius: 4px;
  margin: auto;
}

#leaderboardScreen .doraemon-lb-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 85px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*** Closing Page ***/
#closingPage {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: url("/assets/images/closingBg.png");
  background-size: cover;
  background-position: bottom center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

#closingPage .closing-title {
  width: 60%;
  position: absolute;
  top: 17%;
  left: 0;
  right: 0;
  margin: auto;
}

#closingPage .closing-packs {
  position: absolute;
  width: 100%;
  bottom: 15%;
  right: 0;
  left: 0;
  margin: auto;
}

#closingPage .dora-left-img {
  position: absolute;
  bottom: 1px;
  left: 1px;
  width: 95px;
}

#closingPage .dora-right-img {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 80px;
}

#closingPage .visit-our-site-btn {
  position: absolute;
  bottom: 10%;
  right: 0;
  left: 0;
  margin: auto;
  width: max-content;
  background-color: #f6ba2b;
  border: 2px solid black;
  font-family: "Poppins", sans-serif;
  padding: 2px 22px;
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  border-radius: 50px;
  box-shadow: 0px 4px 4.8px 0px #0000008c;
}
