/** Manrope Font **/
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");

/** #region Futura PT Font**/
@font-face {
  font-family: "Futura PT";
  src: url("/assets/fonts/FuturaCyrillicLight.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura PT";
  src: url("/assets/fonts/FuturaCyrillicBook.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura PT";
  src: url("/assets/fonts/FuturaCyrillicMedium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura PT";
  src: url("/assets/fonts/FuturaCyrillicDemi.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura PT";
  src: url("/assets/fonts/FuturaCyrillicBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura PT";
  src: url("/assets/fonts/FuturaCyrillicExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura PT";
  src: url("/assets/fonts/FuturaCyrillicHeavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* #endregion */

/** Screen Transition **/
#screenTransition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#transitionCookie {
  width: 100vw;
  height: auto;
  max-width: none;
  transform: scale(0);
  transform-origin: center center;
  opacity: 1;
  will-change: transform, opacity;
}

/** Landing Screen **/
#landingPageScreen {
  display: block;
  visibility: visible;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: radial-gradient(
    circle at center,
    #991010 0%,
    #650707 45%,
    #280101 100%
  );
  background-image: url("/assets/images/bgPage.png");
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.landing-df-logo {
  width: 50vw;
  position: absolute;
  top: 14dvh;
  right: 0;
  left: 0;
  margin: auto;
}

.landing-text {
  position: absolute;
  top: 30dvh;
  right: 0;
  left: 0;
  margin: auto;
  width: fit-content;
  text-align: center;
  font-family: "Futura PT", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(144.16deg, #ffd798 14.92%, #ffcf5d 63.41%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Gifs */
.cookie-gif {
  width: 100vw;
  height: auto;
  position: absolute;
  inset: 0;
  margin: auto;
  top: 80px;
}

.snake-left-gif {
  position: absolute;
  bottom: 10dvh;
  width: 80px;
  left: 0;
  display: block;
}

.snake-right-gif {
  position: absolute;
  top: 13dvh;
  width: 60px;
  right: 0;
  display: none;
}

#startGameBtn {
  text-transform: uppercase;
  position: absolute;
  bottom: 12dvh;
  right: 0;
  left: 0;
  margin: auto;
  width: 180px;
  cursor: pointer;
  background: #401919;
  padding: 12px;
  border: none;
  border-radius: 25px;
  color: #ffeab9;
  font-size: 16px;
  font-family: "Futura PT", sans-serif;
  font-weight: 600;
  transition: 0.2s;
}

#startGameBtn:active {
  transform: scale(0.96);
}

/* Cta Container */
.landing-cta-container {
  position: absolute;
  bottom: 4dvh;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.landing-cta-container button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.landing-cta-container img {
  width: 40px;
  height: auto;
  pointer-events: none;
}

.music-toggle-btn {
  position: relative;
}

.music-slash {
  position: absolute;
  width: 4px;
  height: 32px;
  background: red;
  border-radius: 4px;
  inset: 0;
  margin: auto;
  transform: rotate(-45deg);
  display: none;
  pointer-events: none;
}

/* Tnc Container */
.landing-tnc-container {
  position: absolute;
  bottom: 21dvh;
  left: 0;
  right: 0;
  width: 65%;
  margin: auto;
  font-family: "Manrope", sans-serif;
  color: #ffeab9;
  font-size: 9px;
  line-height: 1.4;
}

.landing-tnc-container label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

#tncCheckbox {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #fee2b1;
}

.landing-tnc-container a {
  color: #ffeab9;
  font-weight: 700;
  text-decoration: underline;
}

/** How to Play Screen **/
#howToPlayScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: #dd1f2680;
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.howToPlayCard {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 85%;
  height: fit-content;
  font-family: "Manrope", sans-serif;
  padding: 15px 15px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #87171a 38.74%, #551a18 111.93%);
  border: 1px solid #ffda7d;
  color: #ffeab9;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  transform: scale(0);
  transform-origin: center center;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Futura PT", sans-serif;
}

#howToPlayScreen.card-visible .howToPlayCard {
  transform: scale(1);
}

.howToPlayCard h2 {
  color: #ffeab9;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.howToPlayCard ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.howToPlayCard li {
  font-size: 14px;
  font-weight: 400;
}

#closeHowToPlayBtn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 4px solid #fcb547;
  background: #b26114;
  color: #ffeab9;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

#playNowBtn {
  text-transform: uppercase;
  position: absolute;
  bottom: 10dvh;
  right: 0;
  left: 0;
  margin: auto;
  width: 180px;
  cursor: pointer;
  background: #401919;
  padding: 12px;
  border: none;
  border-radius: 25px;
  color: #ffeab9;
  font-size: 16px;
  font-weight: 600;
  font-family: "Futura PT", sans-serif;
  transition: 0.2s;
}

/** Game Screen **/
#gamePageScreen {
  display: none;
  position: relative;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: #160000;
  overflow: hidden;
}

/** Game Container **/
#gameContainer {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  overflow: hidden;
  background: #220000;
  max-height: calc(420px * 20 / 9);
  margin: 0 auto;
  aspect-ratio: 9 / 20;
}

/** Canvas **/
#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    165deg,
    rgb(220, 31, 38) 0%,
    rgb(224, 31, 38) 25%,
    rgb(214, 30, 36) 50%,
    rgb(181, 29, 33) 75%,
    rgb(123, 20, 22) 100%
  );
  object-fit: contain;
  object-position: top;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/** GAME LIVE TUTORIAL **/
#gameTutorial {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.tutorial-content {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffeab9;
  font-family: "Futura PT", sans-serif;
  font-weight: 400;
}

.tutorial-arrow {
  width: 40px;
  height: auto;
  margin-bottom: 30px;
  transition: transform 100ms ease;
}

#tutorialText {
  font-size: 16px;
  font-family: "Futura PT", sans-serif;
  font-weight: 400;
}

/* mobile */
@media (min-width: 768px) {
  #gameContainer {
    height: 90vh;
    aspect-ratio: 9/16;
    border-radius: 22px;
  }

  #gameCanvas {
    border-radius: 22px;
  }
}

/* POWER UP POPUP */
#powerUpPopup {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.power-up-popup-card {
  width: calc(100% - 54px);
  max-width: 350px;
  padding: 34px 28px 36px;
  background: #fee2b1;
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
  font-family: "Futura PT", sans-serif;
}

.power-up-popup-card h2 {
  margin: 0 0 12px;
  color: #401919;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
}

.power-up-popup-card p {
  margin: 0 auto;
  max-width: 285px;
  color: #401919;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
}

.power-up-popup-card p strong {
  display: block;
  font-weight: 600;
}

#powerUpGotItBtn {
  display: block;
  width: 122px;
  height: 42px;
  margin: 20px auto 0;
  border: none;
  border-radius: 24px;
  background: #de0009;
  color: #fee2b1;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#powerUpGotItBtn:active {
  transform: scale(0.97);
}

/** Pause Screen **/
#pauseScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 100;
  background: #e01f2680;
  backdrop-filter: blur(3px);
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

#pauseScreen .df-logo {
  width: 120px;
  position: absolute;
  margin: auto;
  right: 0;
  left: 0;
  bottom: 10dvh;
}

.pause-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 50%;
  position: absolute;
  inset: 0;
  bottom: 50px;
  margin: auto;
  height: fit-content;
}

#restartBtn {
  background: #de0009;
  padding: 12px;
  border: none;
  border-radius: 25px;
  color: #ffeab9;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: "Futura PT", sans-serif;
}

#resumeBtn {
  background: #401919;
  border: none;
  padding: 12px;
  border-radius: 25px;
  color: #ffeab9;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: "Futura PT", sans-serif;
}

.pause-cta-container {
  position: absolute;
  bottom: 35dvh;
  right: 0;
  left: 0;
  margin: auto;
  width: fit-content;
  display: flex;
  gap: 10px;
}

#homeBtn,
#musicBtn,
#scoreHomeBtn {
  height: fit-content;
  display: flex;
  background: transparent;
  border: none;
}

#musicBtn {
  position: relative;
}

#homeBtn img,
#musicBtn img,
#scoreHomeBtn img {
  width: 45px;
  height: auto;
  pointer-events: none;
}

/** Game Over **/
#gameOverScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: radial-gradient(
    circle at center,
    #991010 0%,
    #650707 45%,
    #280101 100%
  );
  background-image: url("/assets/images/bgGameover.png");
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.game-over-heading {
  position: absolute;
  top: 20dvh;
  right: 0;
  left: 0;
  width: fit-content;
  text-align: center;
  margin: auto;
  text-transform: uppercase;
  font-size: 1.7rem;
  color: #fee2b1;
  font-family: "Futura PT", sans-serif;
  font-weight: 600;
}

.gameOverContent {
  position: absolute;
  inset: 0;
  bottom: 40px;
  height: fit-content;
  margin: auto;
  width: 85%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Futura PT", sans-serif;
  text-align: center;
}

.gameOverContent h2 {
  font-weight: 500;
  font-size: 32px;
  color: #fee2b1;
}

.gameOverContent p {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(
    180deg,
    #fedfa5 20.19%,
    #ffd471 53.37%,
    #ffc84b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}

.score-btn-div {
  position: absolute;
  bottom: 20dvh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  right: 0;
  left: 0;
  width: fit-content;
  margin: auto;
}

.try-again-btn {
  width: 250px;
  padding: 15px;
  cursor: pointer;
  background: #de0009;
  border: none;
  border-radius: 25px;
  color: #fee2b1;
  font-size: 16px;
  font-family: "Futura PT", sans-serif;
  font-weight: 500;
  transition: 0.2s;
}

.submit-your-score-btn {
  width: 250px;
  padding: 15px;
  cursor: pointer;
  background: #401919;
  border: none;
  border-radius: 25px;
  color: #fee2b1;
  font-size: 16px;
  font-family: "Futura PT", sans-serif;
  font-weight: 500;
  transition: 0.2s;
}

.score-cta-container {
  position: absolute;
  bottom: 6dvh;
  right: 0;
  left: 0;
  margin: auto;
  width: fit-content;
  display: flex;
  gap: 10px;
}

#gameOverMusicBtn {
  height: fit-content;
  display: flex;
  background: transparent;
  border: none;
  position: relative;
}

#gameOverMusicBtn img {
  width: 45px;
  height: auto;
  pointer-events: none;
}

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

.form-df-logo {
  position: absolute;
  width: 130px;
  top: 19dvh;
  left: 0;
  right: 0;
  margin: auto;
}

.form-description {
  position: absolute;
  top: 35dvh;
  left: 0;
  right: 0;
  width: 95%;
  margin: auto;
  text-align: center;
  color: #ffeab9;
  font-size: 14px;
  font-family: "Futura PT", sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
}

.score-form {
  position: absolute;
  top: 42dvh;
  left: 0;
  right: 0;
  width: 90%;
  max-width: 360px;
  margin: auto;
  font-family: "Manrope", sans-serif;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.form-field label {
  color: #ffeab9;
  font-size: 14px;
  font-family: "Futura PT", sans-serif;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-field input {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 0 22px;
  border: none;
  border-radius: 2px;
  background: #ffe2ad;
  color: #401919;
  font-family: "Futura PT", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  outline: none;
}

.form-field input::placeholder {
  color: #6c3a2d;
  opacity: 1;
  font-size: 12px;
}

.form-field input:focus {
  outline: 2px solid #ffda7d;
  outline-offset: -2px;
}

#confirmFormBtn {
  width: 100%;
  padding: 14px;
  margin-top: 20dvh;
  border: none;
  border-radius: 30px;
  background: #401919;
  color: #ffeab9;
  font-family: "Futura PT", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#confirmFormBtn:active {
  transform: scale(0.97);
}

/** Thank You Screen **/
#thankYouScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background-image: url("/assets/images/bgPage.png");
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.share-score-text {
  position: absolute;
  top: 15dvh;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  color: #ffeab9;
  font-size: 12px;
  font-family: "Futura PT", sans-serif;
  font-weight: 500;
}

.offer-voucher {
  position: absolute;
  top: 19dvh;
  left: 0;
  right: 0;
  width: 160px;
  margin: auto;
}

.thank-you-content {
  position: absolute;
  top: 46dvh;
  left: 0;
  right: 0;
  width: 90%;
  margin: auto;
  text-align: center;
  color: #ffeab9;
  font-family: "Manrope", sans-serif;
}

.thank-you-content h1 {
  margin: 0 0 6px;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 600;
  font-family: "Futura PT", sans-serif;
  background: linear-gradient(
    180deg,
    #fee2b1 38.94%,
    #ffd472 69.47%,
    #ffcb55 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.thank-you-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-family: "Futura PT", sans-serif;
  font-weight: 400;
}

.thank-you-content strong {
  font-weight: 600;
}

.thankyou-cookie {
  position: absolute;
  width: 230px;
  bottom: 18dvh;
  left: 0;
  right: 0;
  margin: auto;
}

#thankYouLeaderboardBtn {
  position: absolute;
  bottom: 5dvh;
  left: 0;
  right: 0;
  width: 215px;
  height: 52px;
  margin: auto;
  border: none;
  border-radius: 30px;
  background: #401919;
  color: #ffeab9;
  font-size: 14px;
  font-family: "Futura PT", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#thankYouLeaderboardBtn:active {
  transform: scale(0.97);
}

/** Leaderboard Screen **/
#leaderboardScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background-image: url("/assets/images/bgPage.png");
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.leaderboard-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: "Futura PT", sans-serif;
}

.leaderboard-content h1 {
  margin: 0;
  position: absolute;
  top: 12dvh;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  background: linear-gradient(180deg, #fee2b1 38.94%, #ffcf63 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.leaderboard-description {
  position: absolute;
  top: 19dvh;
  left: 0;
  right: 0;
  width: 90%;
  margin: auto;
  text-align: center;
  color: #ffeab9;
  font-size: 13px;
  font-weight: 400;
}

.leaderboard-table {
  position: absolute;
  top: 24dvh;
  left: 0;
  right: 0;
  width: 90%;
  max-width: 360px;
  margin: auto;
}

.leaderboard-header,
.leaderboard-row {
  display: grid;
  grid-template-columns: 54px 1fr 120px;
  align-items: center;
}

.leaderboard-header {
  height: 36px;
  color: #ffeab9;
  font-size: 13px;
  font-weight: 600;

  grid-template-columns: 54px 1fr 120px;

  column-gap: 2px;
}

.leaderboard-header > div {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 14px;
}

.leaderboard-header > div:nth-child(1) {
  background: #d67200;
}

.leaderboard-header > div:nth-child(2) {
  background: #851719;
}

.leaderboard-header > div:nth-child(3) {
  background: #551a18;
}

.leaderboard-header > div {
  padding-left: 14px;
}

.leaderboard-header > div:last-child {
  padding-left: 14px;
}

.leaderboard-row {
  height: 36px;
  background: #ffe2ad;
  border-bottom: 1px solid #de1f26;
  color: #4b1717;
  font-size: 14px;
  column-gap: 2px;
}

.leaderboard-row > div {
  padding-left: 14px;
}

.leaderboard-row > div:first-child {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 14px;
}

.leaderboard-row > div:nth-child(2),
.leaderboard-row > div:nth-child(3) {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 14px;
}

.leaderboard-position {
  font-size: 18px;
  font-weight: 700;
}

.leaderboard-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
}

.leaderboard-score {
  font-weight: 600;
}

.leaderboard-crown {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Rank 1 */
.leaderboard-row:nth-child(1) > div:first-child {
  background: linear-gradient(
    270deg,
    #fee2b1 7.02%,
    #eea810 49.04%,
    rgba(255, 249, 81, 0.895) 63.79%,
    #eea810 78.54%
  );
}

/* Rank 2 */
.leaderboard-row:nth-child(2) > div:first-child {
  background: linear-gradient(
    270deg,
    #fee2b1 13.16%,
    #c5a68a 52.4%,
    #ffe2bf 61.59%,
    #d9d9d9 79.96%
  );
}

/* Rank 3 */
.leaderboard-row:nth-child(3) > div:first-child {
  background: linear-gradient(
    270deg,
    #fee2b1 9.65%,
    #ac7934 50.48%,
    #c99f55 60.04%,
    #996015 79.15%
  );
}

/* Rank 4 onwards */
.leaderboard-row:nth-child(n + 4) > div:first-child {
  background: linear-gradient(
    270deg,
    #fee2b1 11.4%,
    #e92929 51.44%,
    #dc1f27 79.55%
  );
}

#shareLeaderboardBtn {
  position: absolute;
  bottom: 5dvh;
  left: 0;
  right: 0;
  width: 155px;
  padding: 14px;
  margin: auto;
  border: none;
  border-radius: 30px;
  background: #401919;
  color: #ffeab9;
  font-family: "Futura PT", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#shareLeaderboardBtn:active {
  transform: scale(0.97);
}

.share-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  pointer-events: none;
}

/** Image Upload Screen **/
#imageUploadScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background-image: url("/assets/images/bgPage.png");
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.image-upload-df-logo {
  position: absolute;
  width: 130px;
  top: 11dvh;
  left: 0;
  right: 0;
  margin: auto;
}

.image-upload-heading {
  position: absolute;
  top: 25dvh;
  left: 0;
  right: 0;
  width: 90%;
  margin: auto;
  text-align: center;
  color: #ffeab9;
  font-family: "Futura PT", sans-serif;
}

.image-upload-heading h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
}

.image-upload-heading p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

.rupee {
  font-family: "Manrope", sans-serif !important;
}

.image-upload-heading strong {
  font-weight: 600;
}

.image-upload-box {
  position: absolute;
  top: 44dvh;
  left: 0;
  right: 0;
  width: 90%;
  height: 245px;
  max-width: 360px;
  margin: auto;
  background: #ed1c24;
  border: 1px dashed #ffeab9;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffeab9;
  font-family: "Futura PT", sans-serif;
}

#uploadedImagePreview {
  position: absolute;
  bottom: 6%;
  left: 0;
  right: 0;
  width: 90%;
  margin: auto;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffeab9;
  font-family: "Futura PT", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.uploaded-image-thumb {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #f4bf60;
  background: #401919;
  flex-shrink: 0;
}

#uploadedImagePreviewImg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

#uploadedImagePreview span {
  color: #ffeab9;
}

.upload-icon {
  width: 42px;
  height: 42px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffeab9;
  color: #ff2029;
  font-size: 25px;
}

#uploadImageBtn {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: #f4bf60;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.upload-format {
  margin: 2px 0 0;
  font-size: 11px;
}

.upload-or {
  margin: 18px 0 10px;
  font-size: 12px;
}

#openCameraBtn {
  width: 120px;
  height: 30px;
  border: none;
  border-radius: 5px;
  background: #401919;
  color: #ffeab9;
  font-family: "Futura PT", sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

#confirmImageBtn {
  position: absolute;
  bottom: 7dvh;
  left: 0;
  right: 0;
  width: 170px;
  height: 52px;
  margin: auto;
  border: none;
  border-radius: 30px;
  background: #401919;
  color: #ffeab9;
  font-family: "Futura PT", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

#confirmImageBtn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

#confirmImageBtn:not(:disabled):active {
  transform: scale(0.97);
}

/** Score Card Screen **/
#scoreCardScreen {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: linear-gradient(180deg, #551a18 44.13%, #e01f26 100%);
  background-size: cover;
  background-position: center;
  transition:
    visibility 400ms ease-in-out,
    opacity 400ms ease-in-out;
}

.score-card-container {
  width: 75vw;
  height: fit-content;
  position: absolute;
  inset: 0;
  bottom: 25px;
  margin: auto;
  font-family: "Futura PT", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-card-img {
  width: 90%;
}

#scoreCardUserName {
  position: absolute;
  right: 0;
  left: 0;
  margin: auto;
  top: 15%;
  width: fit-content;
  text-align: center;
  font-weight: 600;
  color: #ffdfaa;
  text-transform: uppercase;
}

#scoreCardUserScore {
  position: absolute;
  right: 0;
  left: 0;
  margin: auto;
  top: 21%;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0px;
}

#scoreCardUserScore span {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #401919;
  border-radius: 12px;
  color: #ffcf5d;
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom-left-radius: 20px;
  border: 2px solid #f4bf60;
}

.score-card-text {
  position: absolute;
  right: 0;
  left: 0;
  margin: auto;
  top: 33%;
  width: fit-content;
  text-align: center;
  text-transform: uppercase;
  color: #ffcf5d;
  font-weight: 600;
}

#scoreCardUserImageContainer {
  position: absolute;
  bottom: 11%;
  right: 0;
  left: 0;
  margin: auto;
  width: 195px;
  height: 195px;
  border: 1px solid #401919;
  box-shadow: 0px 4px 4px 0px #00000040 inset;
  border-radius: 5px;
  overflow: hidden;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.card-df-pack {
  position: absolute;
  width: 80px;
  right: 5%;
  bottom: 7%;
}

.score-card-cta-container {
  position: absolute;
  bottom: 4dvh;
  left: 0;
  right: 0;
  margin: auto;
  width: 80%;
  justify-content: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.score-card-cta-container button {
  padding: 16px 24px;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 30px;
  background: #401919;
  color: #ffeab9;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-family: "Futura PT", sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.score-card-cta-container button:active {
  transform: scale(0.97);
}

.score-card-cta-container img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
}
