/* =========================
   GLOBAL
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;

  background:
    radial-gradient(
      circle at top,
      #25396f,
      #0a1022 45%
    );

  transition:
    background 0.5s ease,
    color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.hidden {
  display: none;
}


/* =========================
   NAVIGATION
========================= */

.navbar {
  width: min(1100px, 92%);
  margin: auto;
  padding: 22px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.45rem;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #d5dcff;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 72vh;
  padding: 60px 20px;

  display: grid;
  place-items: center;

  text-align: center;
}

.hero-content {
  max-width: 760px;
}

.small-heading {
  margin-bottom: 10px;

  color: #7ee7ff;

  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h2 {
  margin-bottom: 18px;

  font-size: clamp(
    3rem,
    9vw,
    6.5rem
  );

  line-height: 1;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 30px;

  color: #cad3f5;

  font-size: 1.15rem;
  line-height: 1.7;
}


/* =========================
   MAIN BUTTONS
========================= */

.main-button,
.play-button {
  display: inline-block;

  padding: 14px 24px;

  border-radius: 12px;

  color: #061223;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  font-weight: bold;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.main-button:hover,
.play-button:hover {
  transform: translateY(-3px);

  box-shadow:
    0 12px 30px
    rgba(92, 242, 255, 0.15);
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
  margin-bottom: 38px;

  text-align: center;
}

.section-heading p {
  margin-bottom: 8px;

  color: #7ee7ff;
  font-weight: bold;
}

.section-heading h2 {
  font-size: 2.3rem;
}


/* =========================
   GAME LIBRARY
========================= */

.games-section {
  width: min(1100px, 92%);

  margin: auto;
  padding: 90px 0;
}

.games-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 24px;
}

.game-card {
  position: relative;
  overflow: hidden;

  padding: 30px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.07);

  box-shadow:
    0 18px 40px
    rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(10px);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-7px);
}

.game-icon {
  margin-bottom: 18px;
  font-size: 3rem;
}

.game-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.game-card p {
  min-height: 78px;

  margin-bottom: 22px;

  color: #cbd4f7;

  line-height: 1.6;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 22px;
}

.game-tags span {
  padding: 7px 10px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 999px;

  color: #bfcaff;

  background:
    rgba(255, 255, 255, 0.05);

  font-size: 0.78rem;
}

.play-button {
  width: 100%;
  text-align: center;
}


/* =========================
   FEATURED GAME
========================= */

.featured-card {
  border-color:
    rgba(92, 242, 255, 0.45);
}

.featured-card::before {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  top: -80px;
  right: -80px;

  border-radius: 50%;

  background:
    rgba(92, 242, 255, 0.13);

  filter: blur(5px);
}

.game-badge {
  position: absolute;

  top: 18px;
  right: 18px;

  padding: 7px 12px;

  border-radius: 999px;

  color: #07111f;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  font-size: 0.75rem;
  font-weight: bold;

  text-transform: uppercase;
}

.coming-soon {
  opacity: 0.78;
}

.game-card button {
  width: 100%;

  padding: 14px 24px;

  border-radius: 12px;

  color: #a9b3d7;

  background: #303950;

  cursor: not-allowed;
}


/* =========================
   ABOUT
========================= */

.about-section {
  padding: 100px 20px;

  background:
    rgba(0, 0, 0, 0.18);

  text-align: center;
}

.about-section div {
  max-width: 700px;
  margin: auto;
}

.about-section h2 {
  margin-bottom: 16px;

  font-size: 2.3rem;
}

.about-section p:last-child {
  color: #cbd4f7;
  line-height: 1.7;
}


/* =========================
   FOOTER
========================= */

footer {
  padding: 28px 20px;

  color: #aeb8dc;

  text-align: center;
}


/* =========================
   LOADING SCREEN
========================= */

.loading-screen {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  color: #ffffff;

  background:
    radial-gradient(
      circle at top,
      #203b75,
      #060b18 60%
    );

  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loading-screen.hide-loader {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  margin-bottom: 15px;

  font-size: 4.5rem;

  animation:
    loaderBounce
    1s
    infinite
    alternate;
}

.loading-screen h2 {
  margin-bottom: 22px;

  font-size: 2rem;
  letter-spacing: 2px;
}

.loading-screen p {
  margin-top: 14px;

  color: #bfcaf0;
}

.loading-bar {
  width: min(280px, 75%);
  height: 8px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.12);
}

.loading-progress {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #5cf2ff,
      #82ffb4
    );

  animation:
    loadingProgress
    1.6s
    ease
    forwards;
}

@keyframes loaderBounce {
  from {
    transform:
      translateY(0)
      rotate(-5deg);
  }

  to {
    transform:
      translateY(-14px)
      rotate(5deg);
  }
}

@keyframes loadingProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}


/* =========================
   ANIMATED BACKGROUND
========================= */

.background-effects {
  position: fixed;

  inset: 0;

  z-index: -1;

  overflow: hidden;

  pointer-events: none;
}

.background-effects span {
  position: absolute;

  display: block;

  width: 90px;
  height: 90px;

  border:
    1px solid
    rgba(92, 242, 255, 0.16);

  border-radius: 22px;

  background:
    rgba(92, 242, 255, 0.035);

  animation:
    floatShape
    16s
    linear
    infinite;
}

.background-effects span:nth-child(1) {
  left: 8%;
  bottom: -120px;
}

.background-effects span:nth-child(2) {
  left: 24%;
  bottom: -160px;

  width: 55px;
  height: 55px;

  animation-delay: 3s;
  animation-duration: 12s;
}

.background-effects span:nth-child(3) {
  left: 45%;
  bottom: -130px;

  width: 120px;
  height: 120px;

  animation-delay: 6s;
}

.background-effects span:nth-child(4) {
  left: 63%;
  bottom: -170px;

  width: 70px;
  height: 70px;

  animation-delay: 1s;
  animation-duration: 14s;
}

.background-effects span:nth-child(5) {
  left: 78%;
  bottom: -140px;

  width: 105px;
  height: 105px;

  animation-delay: 8s;
}

.background-effects span:nth-child(6) {
  left: 91%;
  bottom: -110px;

  width: 45px;
  height: 45px;

  animation-delay: 4s;
  animation-duration: 11s;
}

@keyframes floatShape {
  0% {
    transform:
      translateY(0)
      rotate(0deg);

    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform:
      translateY(-120vh)
      rotate(420deg);

    opacity: 0;
  }
}


/* =========================
   PAGE ENTRANCE
========================= */

header,
main,
footer {
  animation:
    pageEntrance
    0.8s
    ease
    both;
}

main {
  animation-delay: 0.15s;
}

footer {
  animation-delay: 0.25s;
}

@keyframes pageEntrance {
  from {
    opacity: 0;

    transform:
      translateY(20px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}


/* =========================
   PLAYER DASHBOARD
========================= */

.dashboard-section {
  width: min(1100px, 92%);

  margin: auto;

  padding: 30px 0 90px;
}

.dashboard-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}

.profile-card,
.stat-card {
  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, 0.07);

  box-shadow:
    0 16px 35px
    rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(10px);
}

.profile-card {
  grid-column: span 3;

  display: flex;

  align-items: center;

  gap: 20px;

  padding: 24px;
}

.profile-avatar {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 72px;
  height: 72px;

  border-radius: 50%;

  color: #06101d;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  font-size: 2.2rem;
}

.profile-info {
  flex: 1;
}

.dashboard-label {
  margin-bottom: 5px;

  color: #73efff;

  font-weight: bold;
}

.profile-card h3 {
  margin-bottom: 6px;

  font-size: 1.6rem;
}

.stat-card {
  padding: 22px;

  text-align: center;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.stat-card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(92, 242, 255, 0.4);
}

.stat-card span {
  display: block;

  margin-bottom: 12px;

  font-size: 2.3rem;
}

.stat-card p {
  margin-bottom: 8px;

  color: #c5cff1;
}

.stat-card strong {
  font-size: 2rem;
}


/* =========================
   PROFILE EDIT BUTTON
========================= */

.edit-profile-button {
  padding: 11px 16px;

  border:
    1px solid
    rgba(255, 255, 255, 0.14);

  border-radius: 11px;

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.08);

  font-weight: bold;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.edit-profile-button:hover {
  transform:
    translateY(-2px);

  background:
    rgba(255, 255, 255, 0.14);
}


/* =========================
   COINS
========================= */

.coin-balance {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  margin-top: 12px;

  padding: 9px 14px;

  border:
    1px solid
    rgba(255, 215, 84, 0.28);

  border-radius: 999px;

  background:
    rgba(255, 215, 84, 0.08);
}

.coin-balance span {
  color: #ffd966;

  font-weight: bold;
}

.coin-balance strong {
  color: #ffffff;

  font-size: 1.1rem;
}


/* =========================
   PLAYER RANK
========================= */

.player-rank {
  display: flex;

  align-items: center;

  gap: 12px;

  width: fit-content;

  margin-top: 12px;

  padding: 9px 14px;

  border:
    1px solid
    rgba(92, 242, 255, 0.2);

  border-radius: 999px;

  background:
    rgba(92, 242, 255, 0.07);
}

.player-rank span {
  color: #bfc9ed;

  font-size: 0.88rem;
}

.player-rank strong {
  color: #73efff;

  font-weight: 700;
}


/* =========================
   XP + LEVEL
========================= */

.level-info {
  max-width: 420px;

  margin-top: 14px;
}

.level-row {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 16px;

  margin-bottom: 8px;
}

.level-row strong {
  color: #72f1ff;
}

.level-row span {
  color: #c5cff1;

  font-size: 0.9rem;
}

.xp-bar {
  width: 100%;
  height: 10px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.1);
}

.xp-progress {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #5cf2ff,
      #82ffb4
    );

  transition:
    width 0.6s ease;
}


/* =========================
   PROFILE MODAL
========================= */

.profile-modal {
  position: fixed;

  inset: 0;

  z-index: 10000;

  display: grid;

  place-items: center;

  padding: 20px;

  background:
    rgba(3, 7, 17, 0.82);

  backdrop-filter: blur(9px);
}

.profile-modal.hidden {
  display: none;
}

.profile-modal-card {
  position: relative;

  width: min(460px, 100%);

  max-height: 90vh;

  overflow-y: auto;

  padding: 32px;

  border:
    1px solid
    rgba(255, 255, 255, 0.14);

  border-radius: 22px;

  background:
    radial-gradient(
      circle at top,
      #263f7e,
      #11182c
    );

  box-shadow:
    0 25px 70px
    rgba(0, 0, 0, 0.5);
}

.profile-modal-card h2 {
  margin-bottom: 22px;

  font-size: 1.9rem;
}

.profile-modal-card label,
.avatar-heading {
  display: block;

  margin-bottom: 9px;

  color: #c7d2f5;

  font-weight: bold;
}

#playerNameInput {
  width: 100%;

  padding: 13px 14px;

  margin-bottom: 22px;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  border-radius: 11px;

  outline: none;

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.08);
}

#playerNameInput:focus {
  border-color: #63efff;
}

.close-profile-button {
  position: absolute;

  top: 16px;
  right: 16px;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.09);

  cursor: pointer;
}

.save-profile-button {
  width: 100%;

  padding: 13px 18px;

  border-radius: 12px;

  color: #06101c;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  font-weight: bold;

  cursor: pointer;
}


/* =========================
   FREE AVATARS
========================= */

.avatar-options {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 10px;

  margin-bottom: 22px;
}

.avatar-option {
  height: 58px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 13px;

  background:
    rgba(255, 255, 255, 0.07);

  font-size: 1.8rem;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.avatar-option:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(92, 242, 255, 0.45);
}

.avatar-option.selected {
  border-color: #63efff;

  background:
    rgba(92, 242, 255, 0.16);

  box-shadow:
    0 0 18px
    rgba(92, 242, 255, 0.2);
}


/* =========================
   AVATAR SHOP
========================= */

.shop-heading {
  display: flex;

  align-items: flex-start;

  justify-content:
    space-between;

  gap: 14px;

  margin: 26px 0 14px;
}

.shop-heading .avatar-heading {
  margin-bottom: 4px;
}

.shop-heading div span {
  color: #aebbe4;

  font-size: 0.82rem;
}

.shop-heading > strong {
  flex: 0 0 auto;

  padding: 8px 12px;

  border:
    1px solid
    rgba(255, 215, 84, 0.3);

  border-radius: 999px;

  color: #ffd966;

  background:
    rgba(255, 215, 84, 0.08);
}

.avatar-shop {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 12px;
}

.shop-item {
  padding: 15px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.06);

  text-align: center;
}

.shop-avatar {
  margin-bottom: 8px;

  font-size: 2.4rem;
}

.shop-item h3 {
  margin-bottom: 5px;

  font-size: 0.95rem;
}

.shop-item p {
  margin-bottom: 12px;

  color: #ffd966;

  font-size: 0.82rem;
}

.buy-avatar-button {
  width: 100%;

  padding: 9px 10px;

  border-radius: 10px;

  color: #07101c;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  font-weight: bold;

  cursor: pointer;
}

.buy-avatar-button:disabled {
  color: #aeb7d6;

  background:
    rgba(255, 255, 255, 0.09);

  cursor: not-allowed;
}

.shop-item.owned {
  border-color:
    rgba(92, 242, 255, 0.4);
}

.shop-item.equipped {
  box-shadow:
    0 0 22px
    rgba(92, 242, 255, 0.2);
}

.shop-message {
  min-height: 22px;

  margin: 13px 0 5px;

  color: #7bf3ff;

  font-size: 0.88rem;

  text-align: center;
}


/* =========================
   ACHIEVEMENTS
========================= */

.achievements-section {
  width: min(1100px, 92%);

  margin: auto;

  padding: 20px 0 90px;
}

.achievements-summary {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  max-width: 650px;

  margin: 0 auto 24px;

  padding: 18px 22px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.07);
}

.achievements-summary span {
  color: #cbd5f5;
}

.achievements-summary strong {
  color: #70f0ff;

  font-size: 1.25rem;
}

.achievements-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}

.achievement-card {
  position: relative;

  overflow: hidden;

  padding: 24px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, 0.07);

  box-shadow:
    0 16px 35px
    rgba(0, 0, 0, 0.22);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.achievement-card.unlocked {
  border-color:
    rgba(92, 242, 255, 0.42);
}

.achievement-card.unlocked:hover {
  transform:
    translateY(-5px);
}

.achievement-card.locked {
  opacity: 0.48;

  filter: grayscale(0.85);
}

.achievement-icon {
  display: grid;

  place-items: center;

  width: 64px;
  height: 64px;

  margin-bottom: 17px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.09);

  font-size: 2rem;
}

.achievement-card.unlocked
.achievement-icon {
  color: #06101d;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  box-shadow:
    0 0 24px
    rgba(92, 242, 255, 0.2);
}

.achievement-card h3 {
  margin-bottom: 9px;
}

.achievement-card p {
  min-height: 48px;

  margin-bottom: 16px;

  color: #c5cff1;

  line-height: 1.5;
}

.achievement-status {
  display: inline-block;

  padding: 7px 11px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 999px;

  color: #bfc9ed;

  background:
    rgba(255, 255, 255, 0.06);

  font-size: 0.78rem;

  font-weight: bold;
}

.achievement-card.unlocked
.achievement-status {
  color: #07111f;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );
}


/* =========================
   ACHIEVEMENT TOAST
========================= */

.achievement-toast {
  position: fixed;

  right: 24px;
  bottom: 24px;

  z-index: 15000;

  display: flex;

  align-items: center;

  gap: 14px;

  width:
    min(
      380px,
      calc(100% - 32px)
    );

  padding: 17px;

  border:
    1px solid
    rgba(92, 242, 255, 0.45);

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(31, 52, 102, 0.97),
      rgba(12, 20, 41, 0.97)
    );

  box-shadow:
    0 22px 55px
      rgba(0, 0, 0, 0.45),
    0 0 30px
      rgba(92, 242, 255, 0.14);

  animation:
    achievementEntrance
    0.45s
    ease;
}

.achievement-toast.hidden {
  display: none;
}

.toast-icon {
  display: grid;

  place-items: center;

  flex: 0 0 auto;

  width: 56px;
  height: 56px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  font-size: 1.8rem;
}

.achievement-toast span {
  display: block;

  margin-bottom: 5px;

  color: #6ff0ff;

  font-size: 0.78rem;

  font-weight: bold;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.achievement-toast strong {
  font-size: 1.05rem;
}

@keyframes achievementEntrance {
  from {
    opacity: 0;

    transform:
      translateX(30px);
  }

  to {
    opacity: 1;

    transform:
      translateX(0);
  }
}


/* =========================
   DAILY REWARD
========================= */

.daily-reward-section {
  width: min(1100px, 92%);

  margin: auto;

  padding: 20px 0 90px;
}

.daily-reward-card {
  display: flex;

  align-items: center;

  gap: 28px;

  max-width: 720px;

  margin: auto;

  padding: 28px;

  border:
    1px solid
    rgba(255, 215, 84, 0.25);

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 215, 84, 0.08),
      rgba(255, 255, 255, 0.05)
    );

  box-shadow:
    0 20px 50px
    rgba(0, 0, 0, 0.28);
}

.daily-reward-icon {
  display: grid;

  place-items: center;

  flex: 0 0 auto;

  width: 100px;
  height: 100px;

  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #ffd75c,
      #ff9f43
    );

  font-size: 3.5rem;

  animation:
    rewardFloat
    2s
    ease-in-out
    infinite;
}

.daily-reward-content {
  flex: 1;
}

.daily-reward-content h3 {
  margin-bottom: 8px;

  font-size: 1.7rem;
}

.daily-reward-content > p {
  color: #c5cff1;
}

.daily-reward-amount {
  display: inline-block;

  margin: 16px 0;

  padding: 9px 14px;

  border-radius: 999px;

  color: #ffd966;

  background:
    rgba(255, 215, 84, 0.1);

  font-weight: bold;
}

#claimDailyReward {
  display: block;

  padding: 13px 22px;

  border-radius: 12px;

  color: #07101d;

  background:
    linear-gradient(
      135deg,
      #ffd75c,
      #ffb347
    );

  font-weight: bold;

  cursor: pointer;
}

#claimDailyReward:disabled {
  opacity: 0.45;

  cursor: not-allowed;
}

#dailyRewardTimer {
  margin-top: 12px;

  color: #9faed8;

  font-size: 0.86rem;
}

@keyframes rewardFloat {
  50% {
    transform:
      translateY(-8px)
      rotate(4deg);
  }
}


/* =========================
   RANK UP POPUP
========================= */

.rank-up-modal {
  position: fixed;

  inset: 0;

  z-index: 20000;

  display: grid;

  place-items: center;

  padding: 20px;

  background:
    rgba(3, 7, 16, 0.84);

  backdrop-filter: blur(10px);
}

.rank-up-modal.hidden {
  display: none;
}

.rank-up-card {
  width: min(430px, 100%);

  padding: 36px;

  border:
    1px solid
    rgba(92, 242, 255, 0.38);

  border-radius: 24px;

  background:
    radial-gradient(
      circle at top,
      #294787,
      #10172d 65%
    );

  box-shadow:
    0 30px 80px
      rgba(0, 0, 0, 0.55),
    0 0 40px
      rgba(92, 242, 255, 0.16);

  text-align: center;

  animation:
    rankUpEntrance
    0.45s
    ease;
}

.rank-up-icon {
  display: grid;

  place-items: center;

  width: 90px;
  height: 90px;

  margin: 0 auto 18px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  font-size: 3rem;

  animation:
    rankIconPulse
    1.4s
    ease-in-out
    infinite;
}

.rank-up-label {
  margin-bottom: 7px;

  color: #70f0ff;

  font-weight: bold;

  text-transform: uppercase;

  letter-spacing: 2px;
}

.rank-up-card h2 {
  margin-bottom: 10px;

  font-size: 2.5rem;
}

.rank-up-card
> p:not(.rank-up-label) {
  color: #c5cff1;
}

.rank-reward {
  margin: 22px 0;

  padding: 12px 16px;

  border:
    1px solid
    rgba(255, 215, 84, 0.3);

  border-radius: 999px;

  color: #ffd966;

  background:
    rgba(255, 215, 84, 0.08);

  font-weight: bold;
}

#rankUpCloseButton {
  width: 100%;

  padding: 13px 20px;

  border-radius: 12px;

  color: #06101d;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  font-weight: bold;

  cursor: pointer;
}

@keyframes rankUpEntrance {
  from {
    opacity: 0;

    transform:
      scale(0.8)
      translateY(25px);
  }

  to {
    opacity: 1;

    transform:
      scale(1)
      translateY(0);
  }
}

@keyframes rankIconPulse {
  50% {
    transform:
      scale(1.08);

    box-shadow:
      0 0 28px
      rgba(92, 242, 255, 0.32);
  }
}


/* =========================
   THEME SHOP
========================= */

.theme-shop-section {
  width: min(1100px, 92%);

  margin: auto;

  padding: 20px 0 90px;
}

.theme-shop-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}

.theme-card {
  padding: 24px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.07);

  box-shadow:
    0 18px 40px
    rgba(0, 0, 0, 0.22);

  text-align: center;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-card:hover {
  transform:
    translateY(-6px);
}

.theme-card.owned {
  border-color:
    rgba(92, 242, 255, 0.4);
}

.theme-card.equipped {
  border-color: #5cf2ff;

  box-shadow:
    0 18px 40px
      rgba(0, 0, 0, 0.28),
    0 0 25px
      rgba(92, 242, 255, 0.18);
}

.theme-preview {
  height: 130px;

  margin-bottom: 18px;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius: 15px;
}

.default-theme {
  background:
    radial-gradient(
      circle at top,
      #25396f,
      #0a1022 65%
    );
}

.galaxy-theme {
  background:
    radial-gradient(
      circle at 30% 30%,
      #7738c8,
      transparent 35%
    ),
    radial-gradient(
      circle at 70% 70%,
      #243aa8,
      transparent 35%
    ),
    #09051a;
}

.lava-theme {
  background:
    radial-gradient(
      circle at 30% 30%,
      #ff7b00,
      transparent 30%
    ),
    radial-gradient(
      circle at 70% 70%,
      #ff2a00,
      transparent 35%
    ),
    #170505;
}

.theme-card h3 {
  margin-bottom: 7px;

  font-size: 1.2rem;
}

.theme-card p {
  margin-bottom: 15px;

  color: #bfc9ed;
}

.theme-price {
  display: inline-block;

  margin-bottom: 14px;

  padding: 7px 11px;

  border-radius: 999px;

  color: #ffd966;

  background:
    rgba(255, 215, 84, 0.08);

  font-size: 0.85rem;

  font-weight: bold;
}

.theme-button {
  width: 100%;

  padding: 11px 14px;

  border-radius: 11px;

  color: #06101d;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  font-weight: bold;

  cursor: pointer;
}

.theme-button:disabled {
  color: #aeb7d6;

  background:
    rgba(255, 255, 255, 0.08);

  cursor: not-allowed;
}

.theme-shop-message {
  min-height: 22px;

  margin-top: 16px;

  color: #7bf3ff;

  text-align: center;
}


/* =========================
   GALAXY THEME
========================= */

body.theme-galaxy {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(144, 76, 255, 0.24),
      transparent 32%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(66, 95, 255, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at top,
      #24104a,
      #070613 58%
    );
}

body.theme-galaxy
.main-button,
body.theme-galaxy
.play-button,
body.theme-galaxy
.save-profile-button,
body.theme-galaxy
.buy-avatar-button,
body.theme-galaxy
.theme-button,
body.theme-galaxy
#rankUpCloseButton {
  background:
    linear-gradient(
      135deg,
      #b46cff,
      #58d8ff
    );
}

body.theme-galaxy
.small-heading,
body.theme-galaxy
.section-heading p,
body.theme-galaxy
.dashboard-label,
body.theme-galaxy
.player-rank strong {
  color: #c58cff;
}


/* =========================
   LAVA THEME
========================= */

body.theme-lava {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 95, 31, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 75% 30%,
      rgba(255, 0, 0, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at top,
      #421509,
      #100303 58%
    );
}

body.theme-lava
.main-button,
body.theme-lava
.play-button,
body.theme-lava
.save-profile-button,
body.theme-lava
.buy-avatar-button,
body.theme-lava
.theme-button,
body.theme-lava
#rankUpCloseButton {
  background:
    linear-gradient(
      135deg,
      #ffb347,
      #ff5a36
    );
}

body.theme-lava
.small-heading,
body.theme-lava
.section-heading p,
body.theme-lava
.dashboard-label,
body.theme-lava
.player-rank strong {
  color: #ff9d66;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {
  .games-grid,
  .theme-shop-grid {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .game-card p {
    min-height: auto;
  }
}

@media (max-width: 750px) {
  .dashboard-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .profile-card {
    grid-column: span 2;
  }
}

@media (max-width: 650px) {
  .profile-card {
    flex-wrap: wrap;
  }

  .edit-profile-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .daily-reward-card {
    flex-direction: column;

    text-align: center;
  }

  #claimDailyReward {
    margin: auto;
  }
}

@media (max-width: 520px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .achievement-toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-column: span 1;

    align-items: flex-start;
  }

  .avatar-shop {
    grid-template-columns: 1fr;
  }
}
/* =========================
   DAILY MISSIONS
========================= */

.daily-missions-section {
  width: min(1100px, 92%);
  margin: auto;
  padding: 20px 0 90px;
}

.missions-summary {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 20px 22px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(10px);
}

.missions-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
  margin-bottom: 8px;
}

.missions-summary span {
  color: #cbd5f5;
  font-weight: bold;
}

.missions-summary strong {
  color: #70f0ff;
  font-size: 1.15rem;
}

.missions-summary p {
  color: #aebbe4;
  line-height: 1.5;
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mission-card {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  min-height: 390px;
  padding: 24px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(10px);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mission-card::before {
  content: "";

  position: absolute;

  width: 150px;
  height: 150px;

  top: -80px;
  right: -80px;

  border-radius: 50%;

  background: rgba(92, 242, 255, 0.08);

  filter: blur(8px);
}

.mission-card:hover {
  transform: translateY(-6px);

  border-color: rgba(92, 242, 255, 0.35);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(92, 242, 255, 0.08);
}

.mission-top {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 20px;
}

.mission-icon {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 58px;
  height: 58px;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(92, 242, 255, 0.18),
      rgba(130, 255, 180, 0.12)
    );

  border:
    1px solid
    rgba(92, 242, 255, 0.22);

  font-size: 2rem;
}

.mission-label {
  display: block;

  margin-bottom: 4px;

  color: #73efff;

  font-size: 0.78rem;
  font-weight: bold;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.mission-card h3 {
  font-size: 1.25rem;
}

.mission-description {
  min-height: 48px;

  margin-bottom: 22px;

  color: #c5cff1;

  line-height: 1.55;
}

.mission-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 9px;
}

.mission-progress-info span {
  color: #aebbe4;

  font-size: 0.9rem;
}

.mission-progress-info strong {
  color: #ffffff;

  font-size: 0.95rem;
}

.mission-progress-bar {
  width: 100%;
  height: 10px;

  overflow: hidden;

  margin-bottom: 20px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.1);
}

.mission-progress-fill {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #5cf2ff,
      #82ffb4
    );

  transition: width 0.5s ease;
}

.mission-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-top: auto;
  margin-bottom: 16px;

  padding: 12px 14px;

  border:
    1px solid
    rgba(255, 215, 84, 0.2);

  border-radius: 13px;

  background:
    rgba(255, 215, 84, 0.06);
}

.mission-reward span {
  color: #bfc9ed;

  font-size: 0.85rem;
}

.mission-reward strong {
  color: #ffd966;

  font-size: 0.9rem;
}

.mission-claim-button {
  width: 100%;

  padding: 12px 14px;

  border-radius: 11px;

  color: #aeb7d6;

  background: rgba(255, 255, 255, 0.08);

  font-weight: bold;

  cursor: not-allowed;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

/* Mission ready to claim */

.mission-card.ready {
  border-color:
    rgba(92, 242, 255, 0.5);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.25),
    0 0 28px rgba(92, 242, 255, 0.12);
}

.mission-card.ready
.mission-claim-button {
  color: #06101d;

  background:
    linear-gradient(
      135deg,
      #5cf2ff,
      #82ffb4
    );

  cursor: pointer;
}

.mission-card.ready
.mission-claim-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 24px
    rgba(92, 242, 255, 0.16);
}

/* Mission already claimed */

.mission-card.completed {
  border-color:
    rgba(130, 255, 180, 0.35);

  opacity: 0.86;
}

.mission-card.completed
.mission-progress-fill {
  width: 100%;

  background:
    linear-gradient(
      90deg,
      #82ffb4,
      #5cf2ff
    );
}

.mission-card.completed
.mission-claim-button {
  color: #82ffb4;

  background:
    rgba(130, 255, 180, 0.08);

  cursor: default;
}

.daily-mission-message {
  min-height: 24px;

  margin-top: 18px;

  color: #7bf3ff;

  text-align: center;

  font-weight: bold;
}

/* =========================
   DAILY MISSIONS
========================= */

.daily-missions-section {
  width: min(1100px, 92%);
  margin: auto;
  padding: 20px 0 90px;
}


/* =========================
   MISSION SUMMARY
========================= */

.daily-missions-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  max-width: 760px;
  margin: 0 auto 28px;
  padding: 20px 22px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.07);

  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(10px);
}

.daily-missions-summary > div {
  min-width: 0;
}

.daily-missions-summary > div > strong {
  display: block;
  margin-bottom: 7px;

  color: #ffffff;
}

.daily-missions-summary p {
  color: #aebbe4;
  line-height: 1.5;
}

#dailyMissionCount {
  flex: 0 0 auto;

  color: #70f0ff;
  font-size: 1.15rem;
}


/* =========================
   MISSION GRID
========================= */

.daily-missions-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}


/* =========================
   MISSION CARD
========================= */

.mission-card {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 350px;

  padding: 22px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.07);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(10px);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mission-card::before {
  content: "";

  position: absolute;

  width: 150px;
  height: 150px;

  top: -85px;
  right: -85px;

  border-radius: 50%;

  background:
    rgba(92, 242, 255, 0.08);

  filter: blur(8px);

  pointer-events: none;
}

.mission-card:hover {
  transform: translateY(-6px);

  border-color:
    rgba(92, 242, 255, 0.35);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(92, 242, 255, 0.08);
}


/* =========================
   MISSION HEADER
========================= */

.mission-header {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;

  gap: 14px;

  margin-bottom: 20px;
}

.mission-header > div:last-child {
  min-width: 0;
}

.mission-icon {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 58px;
  height: 58px;

  border-radius: 16px;

  border:
    1px solid
    rgba(92, 242, 255, 0.22);

  background:
    linear-gradient(
      135deg,
      rgba(92, 242, 255, 0.18),
      rgba(130, 255, 180, 0.12)
    );

  font-size: 1.8rem;
}

.mission-header span {
  display: block;

  margin-bottom: 4px;

  color: #73efff;

  font-size: 0.75rem;
  font-weight: bold;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.mission-header h3 {
  font-size: 1.18rem;
  line-height: 1.2;
}


/* =========================
   DESCRIPTION
========================= */

.mission-card > p {
  min-height: 48px;

  margin-bottom: 22px;

  color: #c5cff1;

  line-height: 1.55;
}


/* =========================
   PROGRESS
========================= */

.mission-progress-info {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 9px;
}

.mission-progress-info span {
  color: #aebbe4;

  font-size: 0.9rem;
}

.mission-progress-info strong {
  color: #ffffff;

  font-size: 0.9rem;
}


/* Outer bar */

.mission-progress-track {
  width: 100%;
  height: 10px;

  overflow: hidden;

  margin-bottom: 22px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.1);
}


/* Moving progress */

.mission-progress-bar {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #5cf2ff,
      #82ffb4
    );

  transition:
    width 0.5s ease;
}


/* =========================
   MISSION REWARD
========================= */

.mission-reward {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-top: auto;
  margin-bottom: 15px;

  padding: 11px 13px;

  border:
    1px solid
    rgba(255, 215, 84, 0.2);

  border-radius: 13px;

  background:
    rgba(255, 215, 84, 0.06);
}

.mission-reward span {
  color: #bfc9ed;

  font-size: 0.82rem;
}

.mission-reward strong {
  color: #ffd966;

  font-size: 0.86rem;

  white-space: nowrap;
}


/* =========================
   MISSION BUTTON
========================= */

.mission-claim-button {
  width: 100%;

  padding: 12px 14px;

  border-radius: 11px;

  color: #aeb7d6;

  background:
    rgba(255, 255, 255, 0.08);

  font-weight: bold;

  cursor: not-allowed;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


/* =========================
   READY TO CLAIM
========================= */

.mission-card.ready {
  border-color:
    rgba(92, 242, 255, 0.55);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.25),
    0 0 28px rgba(92, 242, 255, 0.12);
}

.mission-card.ready
.mission-claim-button {
  color: #06101d;

  background:
    linear-gradient(
      135deg,
      #b46cff,
      #58d8ff
    );

  cursor: pointer;
}

.mission-card.ready
.mission-claim-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 25px
    rgba(92, 242, 255, 0.18);
}


/* =========================
   COMPLETED
========================= */

.mission-card.completed {
  border-color:
    rgba(130, 255, 180, 0.35);
}

.mission-card.completed
.mission-progress-bar {
  width: 100%;

  background:
    linear-gradient(
      90deg,
      #82ffb4,
      #5cf2ff
    );
}

.mission-card.completed
.mission-claim-button {
  color: #82ffb4;

  background:
    rgba(130, 255, 180, 0.08);

  cursor: default;
}


/* =========================
   MESSAGE
========================= */

.daily-mission-message {
  min-height: 24px;

  margin-top: 18px;

  color: #7bf3ff;

  text-align: center;

  font-weight: bold;
}


/* =========================
   GALAXY THEME
========================= */

body.theme-galaxy
.mission-progress-bar {
  background:
    linear-gradient(
      90deg,
      #b46cff,
      #58d8ff
    );
}

body.theme-galaxy
.mission-header span,
body.theme-galaxy
#dailyMissionCount,
body.theme-galaxy
.daily-mission-message {
  color: #c58cff;
}

body.theme-galaxy
.mission-card.ready
.mission-claim-button {
  background:
    linear-gradient(
      135deg,
      #b46cff,
      #58d8ff
    );
}


/* =========================
   LAVA THEME
========================= */

body.theme-lava
.mission-progress-bar {
  background:
    linear-gradient(
      90deg,
      #ffb347,
      #ff5a36
    );
}

body.theme-lava
.mission-header span,
body.theme-lava
#dailyMissionCount,
body.theme-lava
.daily-mission-message {
  color: #ff9d66;
}

body.theme-lava
.mission-card.ready
.mission-claim-button {
  background:
    linear-gradient(
      135deg,
      #ffb347,
      #ff5a36
    );
}


/* =========================
   TABLET
========================= */

@media (max-width: 850px) {

  .daily-missions-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 620px) {

  .daily-missions-grid {
    grid-template-columns: 1fr;
  }

  .daily-missions-summary {
    align-items: flex-start;
  }

  .mission-card {
    min-height: auto;
  }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

  .daily-missions-summary {
    flex-direction: column;
  }

  .mission-card {
    padding: 20px;
  }

  .mission-reward {
    align-items: flex-start;
    flex-direction: column;
  }

}

.mission-card[data-mission="ticTacToeFighter"]
.mission-icon {
  width: 64px;
  height: 58px;
  font-size: 1.65rem;
  letter-spacing: -7px;
  padding-right: 6px;
}

.mission-card[data-mission="ticTacToeFighter"]
.mission-top {
  gap: 18px;
}

.mission-card[data-mission="ticTacToeFighter"]
.mission-top > div:last-child {
  min-width: 0;
}

.mission-card[data-mission="ticTacToeFighter"]
.mission-label {
  white-space: nowrap;
}

.mission-card[data-mission="ticTacToeFighter"]
h3 {
  line-height: 1.2;
}