/* CSS THEME COLORS */
:root {
  --theme-primary: #00ffc8;
  --theme-secondary: #007d78;
  --theme-highlight: #00e0cf;
  --theme-border: #00ffc8;
  --theme-bg-dark: #0e0e0e;
  --theme-bg-light: #1a1a1a;
  --theme-accent: #75eaff;
  --theme-placeholder: #00ffe055;
  --theme-primary-shadow: #44f6ff44;
  --theme-paragraph: #9fffea;
  --theme-questcard-background: #00ffc809;
  --theme-questcard-border: #00ffc87f;
  --theme-warning: #ff6e6ea1;
  --theme-gradient-primary: #00ffc87f;
  --theme-gradient-secondary: #00f2ff51;
  --theme-sub-title: #a1e3ff;
  --theme-main-headers: #a1e3ff;
  --theme-header: #299896d2;
}

body.theme-red {
  --theme-primary: #ff4c4c;
  --theme-secondary: #ff9245;
  --theme-highlight: #ff7a7a;
  --theme-border: #ff7878;
  --theme-bg-dark: #0e0e0e;
  --theme-bg-light: #1a1a1a;
  --theme-placeholder: #ff7b7b6d;
  --theme-primary-shadow: #ff444444;
  --theme-headers: #ff6464;
  --theme-paragraph: #ff9f9f;
  --theme-purchase: #ffdada;
  --theme-questcard-background: #ffa1a112;
  --theme-questcard-border: #e08181a1;
  --theme-warning: #fffb84;
  --theme-gradient-primary: #ff4c4c80;
  --theme-gradient-secondary: #ff78783e;
  --theme-sub-title: #ffc1c1;
  --theme-main-headers: #ffecec;
  --theme-header: #332525;
}

body.theme-green {
  --theme-primary: #00ff99;
  --theme-secondary: #95ff00;
  --theme-highlight: #66ffcc;
  --theme-border: #00ff99;
  --theme-bg-dark: #020c008d;
  --theme-bg-light: #1a1a1a;
  --theme-placeholder: #51ff914f;
  --theme-primary-shadow: #44ff6044;
  --theme-headers: #c0ffc0;
  --theme-paragraph: #ccff9f;
  --theme-purchase: #daffdb;
  --theme-questcard-background: #8eee7d0f;
  --theme-questcard-border: #81e08fa1;
  --theme-warning: #ff2323;
  --theme-gradient-primary: #00ff994d;
  --theme-gradient-secondary: #66ffcc52;
  --theme-sub-title: #d6ffd0;
  --theme-main-headers: #e6ffe4;
  --theme-header: #3b5243d3;
}

@keyframes neon-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
body.theme-yellow {
  --theme-primary: #f2ff00;
  --theme-secondary: #ffb700;
  --theme-highlight: #fff8a8;
  --theme-border: #c8bb00;
  --theme-bg-dark: #0e0e0e;
  --theme-bg-light: #1a1a1a;
  --theme-placeholder: #fbff894c;
  --theme-primary-shadow: #fff34444;
  --theme-headers: #ffefb0;
  --theme-paragraph: #ffe99f;
  --theme-purchase: #fff1da;
  --theme-questcard-background: #ecee7d13;
  --theme-questcard-border: #d0e081a1;
  --theme-warning: #ff0000;
  --theme-gradient-primary: #e5ff004d;
  --theme-gradient-secondary: #d1ff6652;
  --theme-sub-title: #fffdb6;
  --theme-main-headers: #fff8e4;
  --theme-header: #6e6f52c5;
}

body.theme-purple {
  --theme-primary: #400084;
  --theme-secondary: #8500cc;
  --theme-highlight: #bd99ff;
  --theme-border: #db98ff;
  --theme-bg-dark: #0e0e0e;
  --theme-bg-light: #1a1a1a;
  --theme-placeholder: #d272ff6f;
  --theme-primary-shadow: #c444ff44;
  --theme-headers: #ce74ff;
  --theme-paragraph: #d19fff;
  --theme-purchase: #f3daff;
  --theme-questcard-background: #c37dee19;
  --theme-questcard-border: #dd81e0a1;
  --theme-warning: #fffb84;
  --theme-gradient-primary: #8400ff82;
  --theme-gradient-secondary: #cf66ff6e;
  --theme-sub-title: #dbb6ff;
  --theme-main-headers: #f3daff;
  --theme-header: #5e526fc5;
}




body {
	      font-family: 'Turret Road', sans-serif;
        background-image: url('/img/bg_futuristic.webp');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        background-repeat: no-repeat;
        font-size: clamp(1rem, 2vw + 0.5rem, 2rem);
        word-wrap: break-word;       /* older fallback */
        overflow-wrap: break-word;   /* modern spec */
        word-break: break-word;      /* force-break behavior */
        min-width: 400px;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    h1, h2, h3 {
      /* color: #ffa1a1; */
      font-size: clamp(1rem, 2vw + 0.5rem, 2rem);
      font-family: 'Exo 2', sans-serif;
      /* font-family: 'Varela', sans-serif; */
      
      font-weight: 600;
    }

    /* Add text outline for better readability on any background */
    h2, h3 {
      text-shadow: 
        -0.75px -0.75px 0 var(--theme-paragraph),
        0.75px -0.75px 0 var(--theme-paragraph),
        -0.75px 0.75px 0 var(--theme-paragraph),
        0.75px 0.75px 0 var(--theme-paragraph),
        -0.75px 0 0 var(--theme-paragraph),
        0.75px 0 0 var(--theme-paragraph),
        0 -0.75px 0 var(--theme-paragraph),
        0 0.75px 0 var(--theme-paragraph),
        0 0 8px rgba(0, 0, 0, 0.8);
    }

    .blink {
  animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

    .annual-glow {
       /* font-family: 'Pirata One', cursive; */
        color: #a1e3ff;
        font-size: clamp(1rem, 2vw + 0.5rem, 2rem);
        /* font-family: 'Exo 2', sans-serif; */
        font-family: 'Varela', sans-serif;
        font-weight: 600;
    }

    /* Optional: Style the blinking cursor */
    .typed-cursor {
      color: #00ffff00; /* Set to your preferred cursor color */
    }

    .fixed-text {
      text-align: center;
      margin-bottom: auto;
      margin-top: auto;
      display: flex;
      flex-direction: column;
      height: 100%;
      margin-top: auto;
      margin-bottom: 40px;
    }

    body {
      /* background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%); */
      /* color: #e0e0e0; */
      font-weight: bold;
      /* font-family: 'Poppins', sans-serif; */
    }

    .responsive-img {
      width: clamp(150px, 7vw, 500px);
      height: auto;
    }

    .hero {
      height: 90vh;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #ffffff;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.6);
    }

    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 700px;
      padding: 0 20px;
    }

    .hero h1 {
      font-size: 3rem;
      font-weight: 800;
      text-shadow: 0 0 10px #00ffe7;
    }

    .hero p {
      font-size: 1.2rem;
      margin-top: 16px;
    }

    .btn {
      background: #00ffe7;
      color: #000;
      padding: 12px 24px;
      margin-top: 24px;
      border: none;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.3s;
    }

    .btn:hover {
      background: #00c2b8;
    }


    .hero-banner {
      height: 60vh; /* was 100vh */
      padding: 4rem 2rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-size: cover;
      background-position: center;
    }


    .hero-slide {
  inset: 0;
  background-position: bottom;   /* 👈 this is the fix */
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 4s ease-in-out;
}


.icon-large {
  width: 100px;
  height: 100px; /*  Keeps aspect ratio */
  max-height: 100%;
  min-width: 40%;
}

.no-mouse-on-hover {
  cursor: default;
}

.neon-logo {
  filter: drop-shadow(0 0 1px #00ffc8aa)
          drop-shadow(0 0 1px #00ffc8ab)
          drop-shadow(0 0 2px #00ffc8aa)
          drop-shadow(0 0 40px #1e8fffaa);
  transition: transform 0.3s ease;
}

/* Optional: Hover effect */
.neon-logo:hover {
  transform: scale(1.05);
}
    
    .btn {
      background: #ffd700;
      color: #000;
      padding: 14px 28px;
      border-radius: 50px;
      font-weight: bold;
      text-decoration: none;
      transition: 0.3s;
    }
    .btn:hover {
      background: #ffeb7f;
    }
    .section {
      padding: 80px 20px;
      max-width: 1200px;
      margin: auto;
    }
    .section h2 {
      font-size: 2.5rem;
      margin-bottom: 30px;
      text-align: center;
    }
    .features {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px;
    }
    .feature {
      background-color: #fff7e1;
      border-radius: 16px;
      padding: 30px;
      width: 300px;
      text-align: center;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      /* border: 2px solid #e0c381; */
    }
    .feature img {
      width: 60px;
      margin-bottom: 20px;
    }
    .feature h3 {
      margin-bottom: 15px;
      color: #3a270e;
    }
    .feature p {
      color: #4a3b1c;
    }
    .promo {
      display: flex;
      align-items: center;
      gap: 40px;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 40px;
    }
    .promo img {
      max-width: 350px;
      border-radius: 20px;
    }
    footer {
      text-align: center;
      padding: 40px 20px;
      /* background-color: #1c6186; */
      background-color: var(--theme--placeholder);
      font-size: 1.3rem;
      color: #adc7c5;
    }
    /* Fade-in animation setup */
    .fade-in {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }


    #matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  /* width: 100vw; */
  /* height: 100vh; */
  pointer-events: none;
  opacity: 0.4;
}

    

.container {
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 45vh;
}

.sub-title {
  margin: 0 0 8px;
  flex-shrink: 0;
  /* color: #0ff; */
  /* color: var(--theme-paragraph); */
}

.description {
  flex-grow: 5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0;
}

/* -----------------------------
  📱 Small Tabs / Narrow Screens
  ----------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 12px;
    min-height: 45vh;
  }

  .sub-title {
    font-size: larger;
    text-align: center;
  }

  .description {
    font-size: 0.95rem;
    text-align: center;
  }

  #bitquest-alarm-container {
    max-width: 1000%;
  }
}

/* -----------------------------
  💻 Default / Larger Screens
  ----------------------------- */
@media (min-width: 769px) {
  .container {
    padding: 24px;
    min-height: 45vh;
  }

  .sub-title {
    font-size: 0%;
    text-align: center;
  }

  .description {
    font-size: 1.05rem;
    text-align: center;
  }
}



    .bitquest-overview {
  /* background: url('/img/back.jpg') no-repeat center center fixed; */
  /* background-size: cover; */
  padding: 80px 20px;
  color: #2e1c04;
  font-family: 'Poppins', sans-serif;
}

.overview-container {
  backdrop-filter: blur(4px) brightness(0.9);
	font-family: 'Turret Road', sans-serif;
  max-width: 1100px;
  margin: auto;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  color: #00ffc84e;
  /* background: url('/img/ui-grid.webp'); */
  padding: 60px;
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.03);
  z-index: 2;
  
}

.overview-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background-size: 300% 300%;
  animation: borderFlow 5s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  z-index: -1;
}

/* Keep text/content above the glow */
.overview-container > * {
  position: relative;
  z-index: 1;
}

.overview-container h2 {
  font-size: 2.2rem;
  color: var(--theme-main-headers);
  /* text-shadow: 0 0 50px var(--theme-headers); */
}

.overview-container p {
  font-size: 1.1rem;
  /* color: #9fffea; */
  color: var(--theme-paragraph);
  
  text-shadow: 0 0 4px rgba(0, 255, 200, 0.2);
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.quest-card {
  position: relative;
  background: rgba(10, 20, 40, 0.9);
  border-radius: 16px;
  padding: 30px;
  width: 300px;
  text-align: center;
  /* color: #00ffc8; */
  color: var(--theme-border);
  backdrop-filter: blur(5px); /* Adjust blur as needed */
  -webkit-backdrop-filter: blur(5px);
  /* border: 1px solid rgba(0, 255, 200, 0.2); */
  box-shadow:
    0 0 10px rgba(0, 255, 200, 0.1),
    inset 0 0 10px rgba(0, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Neon animated edge */
.quest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  filter: blur(20px);
  border-radius: 16px;
  padding: 2px;
  /* background: linear-gradient(135deg, #00ffc8, #1e90ff, #00ffc8);   */
  /* background: linear-gradient(90deg, var(--theme-secondary), var(--theme--placeholder), var(--theme-primary)); */
  background: inherit; /* fallback for browsers without backdrop-filter */
  opacity: 0.85; /* adjust for effect strength */

  background-size: 300% 300%;
  animation: questGlow 8s ease infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  z-index: 0;
  pointer-events: none;
}

/* Keep text above glow */
.quest-card > * {
  position: relative;
  z-index: 1;
}

.quest-card:hover {
  transform: translateY(-8px);
  box-shadow:
    /* 0 0 20px #00ffc8, */
    0 0 20px var(--theme-border),
    inset 0 0 15px rgba(0, 255, 255, 0.1);
}

@keyframes questGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bitquest-overview h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  /* color: #1c6186; */
  /* color: var(--theme-primary); */
}

.bitquest-overview p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: center;
}

.highlight {
  color: #d4a645;
  font-weight: bold;
        text-shadow:
        -1px -1px 0 #5a4525,
        1px -1px 0 #5a4525,
        -1px  1px 0 #5a4525,
        2px 2px 0 #5a4525;
}

.quest-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  margin-bottom: 60px;
}

.quest-card {
  /* background-color: #7dacee96;
  border: 2px solid #819fe0a1; */

  background-color: var(--theme-questcard-background);
  border: 2px solid var(--theme-questcard-border);

  border-radius: 16px;
  width: 300px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.quest-card:hover {
  transform: translateY(-8px);
}

.quest-card img {
  width: 60px;
  margin-bottom: 20px;
}

.rewards {
  text-align: center;
}

.reward-diagram {
	width: 100%;
	max-width: 600px;
	border-radius: 12px;
	/* border: 3px solid #81e0dd; */
	margin-top: 30px;
  animation: questGlow 8s ease infinite;

}

.hero {
    /* background: url('/img/banner1.jpg') no-repeat center center/cover; */
    padding: 140px 20px 100px;
    text-align: left;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: opacity 4s ease-in-out;  /* for fade */
}
  
.hero[data-fading] {
    opacity: 0.1; /* dim slightly while the image swaps */
}

.hero-bg {
    position: absolute;
    inset: 0;
}

/* GLITCH STYLE */
.glitch-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.glitch {
  text-shadow:
    /* 0 0 5px #00ffc8,
    0 0 1px #00ffc8,
    0 0 2px #00ffc8,
    0 0 4px #1e90ff; */
    /* 0 0 5px #ff2600,
    0 0 1px #ff2600,
    0 0 2px #ff2600,
    0 0 4px #ff6161; */
    0 0 5px var(--theme-primary),
    0 0 1px var(--theme-primary),
    0 0 2px var(--theme-primary),
    0 0 4px var(--theme-primary);
  position: relative;
  /* font-size: 78px; */
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  /* line-height: 1.2; */
  color: #fff;
  letter-spacing: 5px;
  z-index: 1;
}

.glitch:before {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: -2px;
  width: 100%;
  color: #fff;
  opacity: 0.5;
  overflow: hidden;
  /* clip: rect(0, 900px, 0, 0); */
  animation: noise-before 3s infinite linear alternate-reverse;
}

.glitch:after {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 2px;
  width: 100%;
  color: #ff7a7a;
  color: var(--theme-paragraph);
  opacity: 0.5;
  overflow: hidden;
  /* clip: rect(0, 900px, 0, 0); */
  animation: noise-after 2s infinite linear alternate-reverse;
}

@keyframes noise-before {
  0% {
     clip: rect(61px, 9999px, 52px, 0);
  }

  5% {
     clip: rect(33px, 9999px, 144px, 0);
  }

  10% {
     clip: rect(121px, 9999px, 115px, 0);
  }

  15% {
     clip: rect(144px, 9999px, 162px, 0);
  }

  20% {
     clip: rect(62px, 9999px, 180px, 0);
  }

  25% {
     clip: rect(34px, 9999px, 42px, 0);
  }

  30% {
     clip: rect(147px, 9999px, 179px, 0);
  }

  35% {
     clip: rect(99px, 9999px, 63px, 0);
  }

  40% {
     clip: rect(188px, 9999px, 122px, 0);
  }

  45% {
     clip: rect(154px, 9999px, 14px, 0);
  }

  50% {
     clip: rect(63px, 9999px, 37px, 0);
  }

  55% {
     clip: rect(161px, 9999px, 147px, 0);
  }

  60% {
     clip: rect(109px, 9999px, 175px, 0);
  }

  65% {
     clip: rect(157px, 9999px, 88px, 0);
  }

  70% {
     clip: rect(173px, 9999px, 131px, 0);
  }

  75% {
     clip: rect(62px, 9999px, 70px, 0);
  }

  80% {
     clip: rect(24px, 9999px, 153px, 0);
  }

  85% {
     clip: rect(138px, 9999px, 40px, 0);
  }

  90% {
     clip: rect(79px, 9999px, 136px, 0);
  }

  95% {
     clip: rect(25px, 9999px, 34px, 0);
  }

  100% {
     clip: rect(173px, 9999px, 166px, 0);
  }
}

@keyframes noise-after {
  0% {
     clip: rect(26px, 9999px, 33px, 0);
  }

  5% {
     clip: rect(140px, 9999px, 198px, 0);
  }

  10% {
     clip: rect(184px, 9999px, 89px, 0);
  }

  15% {
     clip: rect(121px, 9999px, 6px, 0);
  }

  20% {
     clip: rect(181px, 9999px, 99px, 0);
  }

  25% {
     clip: rect(154px, 9999px, 133px, 0);
  }

  30% {
     clip: rect(134px, 9999px, 169px, 0);
  }

  35% {
     clip: rect(26px, 9999px, 187px, 0);
  }

  40% {
     clip: rect(147px, 9999px, 137px, 0);
  }

  45% {
     clip: rect(31px, 9999px, 52px, 0);
  }

  50% {
     clip: rect(191px, 9999px, 109px, 0);
  }

  55% {
     clip: rect(74px, 9999px, 54px, 0);
  }

  60% {
     clip: rect(145px, 9999px, 75px, 0);
  }

  65% {
     clip: rect(153px, 9999px, 198px, 0);
  }

  70% {
     clip: rect(99px, 9999px, 136px, 0);
  }

  75% {
     clip: rect(118px, 9999px, 192px, 0);
  }

  80% {
     clip: rect(1px, 9999px, 83px, 0);
  }

  85% {
     clip: rect(145px, 9999px, 98px, 0);
  }

  90% {
     clip: rect(121px, 9999px, 154px, 0);
  }

  95% {
     clip: rect(156px, 9999px, 44px, 0);
  }

  100% {
     clip: rect(67px, 9999px, 122px, 0);
  }
}


.hero-banner {
  position: relative;
  z-index: 1;
}

.hero-banner::before,
.hero-banner::after {
  position: absolute;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, #00ffc8, #1e90ff, #00ffc8);
  box-shadow: 0 0 12px #00ffc8;
  z-index: 2;
}

.hero-banner::before {
  top: 0;
}

.hero-banner::after {
  bottom: 0;
}



.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 4s ease-in-out;
}

.hero-slide.show {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}


.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}


/* Section Stamps */
.section-stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  opacity: 0.3;
  transform: rotate(-10deg);
  pointer-events: none;
}
.section-wrapper {
  position: relative;
}



/* Custom Alert */
/* .custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 24, 4, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
} */
  
.alert-content {
    background-color: #e1fffc;
    border: 3px solid #81dae0;
    padding: 30px 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
}
  
.alert-content p {
    color: #3a270e;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
  
.alert-content button {
    background-color: #1c6186;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
}

/* CUSTOM ALERT */
.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 420px;
  min-width: 260px;
  background: #0a0a0a;
  border: 2px solid var(--theme-border);
  border-radius: 16px;
  z-index: 9999;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  animation: alertIn 0.5s ease-out;
  animation-fill-mode: forwards; /* <-- Add this line */
}
.alert-inner {
  position: relative;
  padding: 25px;
  /* font-family: 'Turret Road', 'Exo 2', monospace; */
  text-align: center;
  color: var(--theme-warning);
  z-index: 2;
}

.alert-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: glitch-pulse 1.8s infinite ease-in-out;
}

/* .alert-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}

.alert-text.glitch::before,
.alert-text.glitch::after {
  content: attr(data-glitch);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  color: var(--theme-warning);
  clip: rect(0, 0, 0, 0);
}

.alert-text.glitch::before {
  animation: glitchTop 2s infinite linear alternate-reverse;
  text-shadow: -2px -2px 0 #00f6ff;
}

.alert-text.glitch::after {
  animation: glitchBottom 2s infinite linear alternate-reverse;
  text-shadow: 2px 2px 0 #00aaff;
} */

.custom-alert button {
  background: transparent;
  /* border: 2px solid #00ffe0; */
  border: 2px solid var(--theme-border);
  /* color: #00ffe0; */
  color: var(--theme-primary);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.custom-alert button:hover {
  background: #00ffe011;
  box-shadow: 0 0 8px #00ffe0;
}

@keyframes alertIn {
  0% { opacity: 0; transform: translate(-50%, -20%); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 0, 0); }
  10% { clip: rect(0, 9999px, 15px, 0); }
  20% { clip: rect(0, 9999px, 0, 0); }
  30% { clip: rect(5px, 9999px, 20px, 0); }
  100% { clip: rect(0, 9999px, 0, 0); }
}

@keyframes glitchBottom {
  0% { clip: rect(0, 9999px, 0, 0); }
  10% { clip: rect(25px, 9999px, 40px, 0); }
  20% { clip: rect(0, 9999px, 0, 0); }
  30% { clip: rect(35px, 9999px, 50px, 0); }
  100% { clip: rect(0, 9999px, 0, 0); }
}

@keyframes glitch-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes flicker {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}


.alert-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.alert-buttons button {
  background: transparent;
  border: 2px solid var(--theme-border);
  color: var(--theme-primary);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.alert-buttons .yes-btn:hover {
  background: #00ffe022;
  box-shadow: 0 0 10px #00ffe0;
}

.alert-buttons .cancel-btn {
  border-color: var(--theme-warning);
  color: var(--theme-warning);
}

.alert-buttons .cancel-btn:hover {
  background: #ff006622;
  box-shadow: 0 0 10px var(--theme-warning);
}

.locked-container {
  width: 20vh;
  max-width: 800px;     /* or any fixed width */
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.locked-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  transform-origin: top left;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.2vw; /* responsive text */
  padding: 20px;
  box-sizing: border-box;
}


/* FIX LONG WORDS */
.fix-long-word {
  word-wrap: break-word;       /* older fallback */
  overflow-wrap: break-word;   /* modern spec */
  word-break: break-word;      /* force-break behavior */
}


/* FIXING RATIO */
.fixed-ratio {
  height: auto;
  object-fit: cover;   /* Or `contain` if you want padding instead of cropping */
}





@media (max-width: 768px) {
  .quest-types {
    flex-direction: column;
    align-items: center;
  }

  .quest-card {
    width: 150px;
    height: auto;
  }

  .quest-card h3.title {
    font-size: 1.1rem;
  }

  .quest-card p {
    font-size: 0.85rem;
    justify-content: space-between;
  }
}






.bitquest-label {
  /* color: #00ffe0; */
  color: var(--theme-headers);
  font-family: 'Turret Road', 'Exo 2', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* 💠 Input Field Styling */
.bitquest-input {
  background: #0a0a0a;
  /* color: #ffffff; */
  color: #ffffff;
  border: 2px solid var(--theme-inputborder) #00ffe099;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Exo 2', monospace;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 8px var(--theme-primary);
  /* box-shadow: 0 0 15px var(--theme--placeholder); */
}

.bitquest-input::placeholder {
  color: var(--theme-placeholder);
  /* color: #00ffe055; */
  font-style: italic;
}

/* ✨ Glow effect on focus */
.bitquest-input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 8px var(--theme-primary), 0 0 20px var(--theme-placeholder);
}

/* 📱 Optional: Smaller screen tweaks */
@media (max-width: 600px) {
  .bitquest-input {
    font-size: 0.95rem;
    padding: 10px 14px;
  }

  .bitquest-label {
    font-size: 0.85rem;
  }
}


.input-center-container {
  justify-content: center; /* center horizontally */
  align-items: center;     /* center vertically */
}


.bitquest-input.number-input {
  appearance: textfield; /* hide up/down arrows on Chrome/Safari */
}

/* Remove spinner arrows in Firefox */
.bitquest-input.number-input::-webkit-outer-spin-button,
.bitquest-input.number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* LOADER ANIMATION */
/* .bitquest-loader {
  width: 36px;
  height: 36px;
  border-top: 4px solid var(--theme-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 8px var(--theme--placeholder);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} */


.bitquest-loader {
  border: 6px solid #222;
  border-top: 6px solid var(--theme-primary, #00ffc8);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* NAVIGATION PANEL */
/* THEME-AWARE NAVIGATION PANEL */
.nav-dropdown-wrapper {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
}

.nav-toggle {
  background: transparent;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.nav-toggle:hover {
  transform: scale(1.15);
}

.nav-dropdown {
  opacity: 0;
}

.nav-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  width: 320px;
  padding: 18px;
  border-radius: 14px;
  /* background: radial-gradient(circle at top, #0e0e0e 60%, #121212); */
  box-shadow: 0 0 20px var(--theme-primary), 0 0 40px var(--theme-bg-dark);
  transform: translateY(-20px) scale(0.95);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.4s ease;
  z-index: 998;
}
.nav-dropdown.show {
  opacity: 1;
  background-color: #000000cb;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-section a {
  display: block;
  padding: 10px 0;
  color: var(--theme-primary);
  font-size: 1.35rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nav-section a i {
  margin-right: 8px;
}

.nav-section a.selected {
  background-color: var(--theme-placeholder);
  border-radius: 5px;
  padding-left: 10px;
  /* border-left: 3px solid var(--theme-secondary); */
  color: #ffffff;
  /* box-shadow: inset 3px 0 6px var(--theme-primary-shadow); */
}

.nav-section a:hover {
  background: var(--theme-placeholder);
  padding-left: 8px;
}

/* Nav Glow Frame */
.nav-glow-frame {
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  /* background: linear-gradient(145deg, #101010, #1a1a1a); */
  box-shadow: inset 0 0 15px var(--theme-primary-shadow);
}





  /* border: 2px solid var() #; */
/* 
body.theme-red {
  --theme-primary: #ff4c4c;
  --theme-secondary: #cc0000;
  --theme-highlight: #ff7a7a;
  --theme-border: #ff4c4c;
  --theme-placeholder: #ff000055;
  --theme-primary-shadow: #e0000044;
  --theme-headers: #ff7a7a;
}

body.theme-green {
  --theme-primary: #00ff99;
  --theme-secondary: #00cc77;
  --theme-highlight: #66ffcc;
  --theme-border: #00ff99;
  --theme-placeholder: #1eff0055;
  --theme-primary-shadow: #1ae00044;
}

body.theme-yellow {
  --theme-primary: #ffee00;
  --theme-secondary: #ccbb00;
  --theme-highlight: #fff799;
  --theme-border: #ffee00;
  --theme-placeholder: #fff70055;
  --theme-primary-shadow: #e0d80044;
}

body.theme-purple {
  --theme-primary: #be63ff;
  --theme-secondary: #ff63d3;
  --theme-highlight: #bd99ff;
  --theme-border: #9d00ff;
  --theme-placeholder: #c99aff8a;
  --theme-primary-shadow: #9900e044;
}
 */

.bitquest-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 22px;
  width: 30px;
  gap: 6px;
}
.bitquest-bars span {
  height: 4px;
  width: 100%;
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--theme-secondary), var(--theme-primary));
  box-shadow: 0 0 8px var(--theme-primary), 0 0 12px var(--theme-secondary);

  background: linear-gradient(90deg, var(--theme-secondary), var(--theme-primary));
  box-shadow: 0 0 8px var(--theme-primary), 0 0 12px var(--theme-secondary);
  animation: flicker 1.8s infinite alternate;
}
.bitquest-bars span:nth-child(2) { animation-delay: 0.2s; }
.bitquest-bars span:nth-child(3) { animation-delay: 0.4s; }

@keyframes flicker {
  0% { opacity: 0.8; box-shadow: 0 0 5px var(--theme-primary); }
  50% { opacity: 1; box-shadow: 0 0 12px var(--theme-primary); }
  100% { opacity: 0.9; box-shadow: 0 0 6px var(--theme-secondary); }
}

.user-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0e0e0e, #101010);
  box-shadow: 0 0 12px #00c2b860;
}
.user-highlight img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px var(--theme-primary);
}
.user-highlight.animated {
  animation: pulse-glow 2.5s infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 10px var(--theme-placeholder); }
  50% { box-shadow: 0 0 20px var(--theme-bg-dark); }
}

.user-info h3 {
  /* color: #00e0cf; */
  color: var(--theme-primary);
  margin: 0;
  font: 700 1.2rem 'Turret Road', cursive;
}
.user-info .user-tagline {
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--theme-primary);
  /* color: #ccc; */
}

/* .user-info p {
  color: #00e0cf;
  margin-top: 8px; 
  font-size: 0.9rem; 
  color: var(--theme-border, #00ffc8); 
  text-shadow: 0 0 6px var(--theme-border, #00ffc8);
  font: 700 1.2rem 'Turret Road', cursive;
} */

.user-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-inline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 5px var(--theme-primary-shadow);
}
.user-inline span {
  font-weight: 600;
  /* color: #00e0cf; */
  color: var(--theme-highlight);
}

.user-panel img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 6px;
  box-shadow: 0 0 6px var(--theme-primary-shadow);
  /* box-shadow: var(--theme-highlight); */
}
.user-panel span {
  font-weight: 600;
  /* color: #00e0cf; */
  margin-bottom: 8px;
  box-shadow: 0 0 6px var(--theme-primary-shadow);
  /* box-shadow: var(--theme-highlight); */
}


.hidden { display: none; }

.input-wrapper {
  position: relative;
  display: inline-block;
}

.lock-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-primary-shadow);
  
  pointer-events: none;
}

/* TOS */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* DIVIDER */
.bitquest-divider {
  border: none;
  height: 2px;
  width: 100%;
  /* background: linear-gradient(to right, #00ffff44, #00ffffaa, #00ffff44); */
  background: linear-gradient(to right, var(--theme-placeholder), var(--theme-primary), var(--theme--placeholder));
  box-shadow: 0 0 8px var(--theme-paragraph);
  margin: 20px 0;
}

/* CARD GLOW STRIP */
.card-glow-strip {
  top: 1rem;
  align-items: center;
  margin: 0 auto;
  display: block;
  width: 95%;
  height: 8px;
  background: var(--theme-gradient);
  box-shadow: 0 0 8px var(--theme-primary-shadow);
  opacity: 0.85;
  border-radius: 1000px;
}

/* SHIMMER STRIP EFFECT */
.shimmer-glow-strip {
  position: absolute;
  top: -0.1rem;
  left: 0;
  height: 8px;
  width: 100%;
  overflow: hidden;
  background: var(--theme-gradient);
  border-radius: 1000px;
  opacity: 0.8;
}

.shimmer-glow-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  height: 40px;
  width: 40%;
  background: linear-gradient(
    to right,
    transparent,
    var(--theme-primary),
    transparent
  );
  animation: shimmerMove 2s linear infinite;
  filter: blur(2px);
  opacity: 0.5;
  border-radius: inherit;
}

@keyframes shimmerMove {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

.margin-middle {
  margin-left: 10%; 
  margin-right: 10%;
  color: var(--theme-paragraph);
}
/* ANIMATED NEON TOP STRIP */
.neon-glow-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  min-width: 400px;
  border-radius: 1000px;
  /* background: linear-gradient(270deg, var(--theme-primary), #ff00f7, #00c2ff, var(--theme-primary)); */
  background: linear-gradient(90deg, var(--theme-primary), var(--theme-secondary), var(--theme-border));
  background-size: 600% 600%;
  animation: neonGradientFlow 3s ease infinite;
  box-shadow: 0 0 10px var(--theme-primary), 0 0 20px #ff00f777;
  opacity: 0.9;
  z-index: 2;
}

@keyframes neonGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}


/* === Theme-Adaptive BitQuest Overview Styling === */

.bitquest-overview {
  /* background: var(--theme-bg, #0e0e0e); */
  color: var(--theme-text, #ffffff);

  /* border-top: 2px solid var(--theme-border, #00ffc8); */
}

.overview-container {
  /* background: var(--theme-container-bg, rgba(0, 0, 0, 0.6)); */
  box-shadow: 0 0 20px var(--theme-primary, #00ffc8);
  border: 2px solid var(--theme-border, #00ffc8); 

  border-radius: 12px;
  padding: 2rem;
}


/* THEME-AWARE CHECKBOX STYLING */
input[type="checkbox"]#toggleCanvasCheckbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--theme-primary);
  border-radius: 4px;
  background: #000;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
  margin-top: -2px;
}

input[type="checkbox"]#toggleCanvasCheckbox:checked {
  background-color: var(--theme-primary);
  box-shadow: 0 0 6px var(--theme-primary-shadow);
}

input[type="checkbox"]#toggleCanvasCheckbox:checked::after {
  content: "✔";
  color: #000;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
}

input[type="checkbox"]#registerMatrixToggle {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--theme-primary);
  border-radius: 4px;
  background: #000;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
  margin-top: -2px;
}

input[type="checkbox"]#registerMatrixToggle:checked {
  background-color: var(--theme-primary);
  box-shadow: 0 0 6px var(--theme-primary-shadow);
}

input[type="checkbox"]#registerMatrixToggle:checked::after {
  content: "✔";
  color: #000;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
}

.bitquest-input-row label {
  display: flex;
  align-items: center;
  color: var(--theme-paragraph);
  font-weight: 500;
  gap: 8px;
  user-select: none;
}


.overview-container p {
  font-size: 1.1rem;
  /* color: #9fffea; */
  color: var(--theme-paragraph);
}

h1, h2, h3 {
  color: var(--theme-primary);
}

label {
  color: var(--theme-paragraph);

}


/* --- Preferences Modal Color Dropdown Styles --- */
.color-dropdown {
  position: relative;
  width: 100%;
  max-width: 220px;
  cursor: pointer;
}
.color-preview {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 8px #0006;
  display: inline-block;
  vertical-align: middle;
  transition: box-shadow 0.2s;
}
.color-preview:hover {
  box-shadow: 0 0 0 3px #00ffc8;
}
.color-options {
  position: absolute;
  top: 44px;
  left: 0;
  display: flex;
  gap: 10px;
  background: #222;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 12px #000a;
  z-index: 10002;
}
.color-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.color-circle:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #00ffc8;
}


.style-dropdown {
  position: relative;
  width: 100%;
  max-width: 220px;
  cursor: pointer;
  z-index: 10002;
  position: absolute;
}



    .style-options {
      display: none;
      grid-template-columns: repeat(5, 1fr); /* or 4 for 4 per row */
      gap: 12px;
      padding: 10px 12px;
      border-radius: 12px;
      background: #222;
      box-shadow: 0 2px 12px #000a;
      margin-top: 8px;
      position: absolute;
      z-index: 10002;
      min-width: 260px;
      max-width: 420px;
    }

    .style-option {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px 0;
    }

    .style-option img {
      height: 35px;
      width: 35px;
      object-fit: cover;
      border-radius: 8px;
      box-shadow: 0 0 6px #0006;
      background: #181c24;
      transition: transform 0.18s, box-shadow 0.18s;
      display: block;
    }

    .style-option img:hover {
      transform: scale(1.08);
      box-shadow: 0 0 12px var(--theme-primary, #00ffc8);
    }



.light-animate-bottom {
  position: relative;
  overflow: hidden;
}

.light-animate-bottom::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 30%;
  height: 6px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--theme-primary) 40%,
    var(--theme-primary) 50%,
    var(--theme-primary) 60%,
    transparent 100%
  );
  filter: blur(2.5px) brightness(2.5);
  border-radius: 0 0 12px 12px;
  /* animation: light-shine-move 4s alternate infinite; */
  animation: light-shine-move 4s cubic-bezier(0.5, 0, 0.5, 1) alternate infinite;
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
  box-shadow:
    0 0 16px 4px var(--theme-secondary),
    0 0 32px 8px var(--theme-placeholder);
}

@keyframes light-shine-move {
  0% { left: -40%; }
  100% { left: 110%; }
}

.light-bottom-border::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(
    90deg,
    var(--theme-primary),
    var(--theme-secondary),
    var(--theme-border),
    var(--theme-secondary),
    var(--theme-primary)
  );
  filter: blur(1.5px) brightness(1.3);
  pointer-events: none;
  z-index: 2;
}


/* Leaderboard Card Styles */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 0 0;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,255,200,0.06);
  border: 1px solid var(--theme-border, #00ffc8);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.08rem;
  transition: background 0.2s;
}

.leaderboard-entry.current-user {
  background: rgba(0,255,200,0.18);
  border: 2px solid var(--theme-primary, #00ffc8);
  box-shadow: 0 0 10px var(--theme-primary, #00ffc8);
}

.leaderboard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-primary, #00ffc8);
  box-shadow: 0 0 6px var(--theme-primary, #00ffc8);
}

.leaderboard-username {
  flex: 1;
  font-weight: 600;
  color: var(--theme-primary, #00ffc8);
}

.leaderboard-score {
  font-family: 'Orbitron', monospace;
  color: var(--theme-secondary, #007d78);
  font-size: 1rem;
  margin-left: 8px;
}

.rank {
  font-weight: bold;
  color: var(--theme-highlight, #00e0cf);
  margin-right: 8px;
  font-size: 1.1rem;
}

.your-rank {
  margin-top: 1rem;
  color: var(--theme-paragraph, #9fffea);
  font-size: 1.1rem;
}

.your-rank-number {
  color: var(--theme-primary, #00ffc8);
  font-weight: bold;
}

.glitch-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.glitch {
  text-align: center;
  margin: 0 auto;
}

#page-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  background: #0a0a0a;
  transition: opacity 0.4s;
}

#preferences-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  background: #0a0a0a;
  transition: opacity 0.4s;
}

#preferences-loader {
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 2rem;
  z-index: 9999;
}

.beveled-corner {
  clip-path: polygon(
    18px 0%, calc(100% - 18px) 0%, 100% 18px, 100% calc(100% - 18px),
    calc(100% - 18px) 100%, 18px 100%, 0% calc(100% - 18px), 0% 18px
  );
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #23243a 60%, #181c24 100%);
  z-index: 2;
  /* Stronger neon glow */
  box-shadow:
    0 0 0 4px var(--theme-primary, #00ffc8),
    0 0 24px 6px var(--theme-primary, #00ffc8),
    0 0 64px 16px var(--theme-primary, #00ffc8),
    0 0 128px 32px var(--theme-primary, #00ffc8),
    0 0 32px 8px rgba(0,255,200,0.25);
  transition: box-shadow 0.3s;
}

/* Neon border using a pseudo-element */
.beveled-corner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  clip-path: inherit;
  box-sizing: border-box;
}
.beveled-corner nav a {
  text-shadow: 0 0 6px #00ffc844;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.beveled-corner nav a:hover {
  color: #fff;
}
.beveled-corner span,
.beveled-corner strong {
  color: #fff;
}
.vertical-divider {
  width: 2px;
  height: 48px;
  margin: 0 14px;
  background: linear-gradient(
    to bottom,
    rgba(0,255,200,0) 0%,
    var(--theme-primary) 40%,
    var(--theme-primary) 60%,
    rgba(0,255,200,0) 100%
  );
  border-radius: 2px;
}
