@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap");

:root {
  --military-green: #2a3b2a;
  --military-green-light: #3d5a3d;
  --military-green-dark: #1a231a;
  --gold: #d4af37;
  --gold-light: #f4cf47;
  --gold-dark: #b4901f;
  --dark-bg: #0f150f;
}

body {
  font-family: "Exo 2", sans-serif;
  background-color: var(--dark-bg);
  color: #ffffff;
  overflow-x: hidden;
  cursor: crosshair;
}
body {
  transform-origin: top left;
  backface-visibility: hidden;
  will-change: transform;
  background-attachment: scroll;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Exo 2", sans-serif;
}

.camo-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: #1a231a;
  background-image: url("/main/img/camo-pattern.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

        .category-header {
      position: relative;
      margin-bottom: 2rem;
      padding-left: 1rem;
    }

    .category-title {
      display: inline-block;
      font-size: 2rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2px;
      background: linear-gradient(to right, var(--gold-light), var(--gold-dark));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      position: relative;
      padding: 0.5rem 1.5rem;
      margin: 0;
    }
.badge-stripe {
  position: relative; 
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: #1d2b18;
  padding: 6px 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
  z-index: 10;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(15, 21, 15, 0.5) 0%,
    rgba(15, 21, 15, 0.9) 100%
  );
  z-index: -1;
}

.radar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.radar {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
}

.radar-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(0deg);
  clip-path: polygon(50% 50%, 100% 45%, 100% 55%);
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0) 0%,
    rgba(212, 175, 55, 0.1) 100%
  );
  animation: radarSweep 6s linear infinite;
}

@keyframes radarSweep {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  animation: radarPulse 3s infinite ease-out;
}

@keyframes radarPulse {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

.radar-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(212, 175, 55, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.radar-target {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  animation: targetPulse 2s infinite ease-in-out;
}

@keyframes targetPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

.card {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(5px);
  background: rgba(42, 59, 42, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.card {
  border-top: 3px solid var(--gold);
}

.logo-container {
  height: 90px;
  width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(42, 59, 42, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.social-icon {
  transition: all 0.3s ease;
  background: rgba(42, 59, 42, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(212, 175, 55, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.social-icon svg {
  filter: drop-shadow(0 0 3px currentColor);
}

.glow-text {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.profile-container {
  background: rgba(42, 59, 42, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-item {
  position: relative;
  padding-left: 25px;
}

.feature-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.neon-border {
  position: relative;
  overflow: hidden;
}

.neon-border::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.2),
    transparent
  );
  transition: 0.5s;
}

.neon-border:hover::after {
  left: 100%;
}

.footer {
  background: rgba(26, 35, 26, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.profile-image {
  position: relative;
}

.profile-image::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--gold), var(--military-green-light));
  z-index: -1;
  animation: rotate 10s linear infinite;
}

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

.bullet-hole {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.gold-gradient {
  background: linear-gradient(
    to right,
    var(--gold-dark),
    var(--gold),
    var(--gold-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-crack {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgba(42, 59, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold);
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  position: relative;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(15, 21, 15, 0.5);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  color: var(--gold);
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 21, 15, 0.5);
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(212, 175, 55, 0.2);
}

.register-btn {
  background: linear-gradient(to right, var(--gold-dark), var(--gold));
  color: var(--military-green-dark);
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.register-btn:hover {
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

@keyframes screenShake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(2px, -2px);
  }
  50% {
    transform: translate(-2px, 2px);
  }
  75% {
    transform: translate(1px, -1px);
  }
}

.screen-shake {
  animation: screenShake 0.3s infinite;
}

@keyframes impactFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.theme-filter-gold {
  filter: sepia(100%) hue-rotate(10deg) saturate(300%) brightness(90%);
  mix-blend-mode: color-dodge;
}

.theme-filter-green {
  filter: sepia(50%) hue-rotate(80deg) saturate(120%) brightness(70%);
  mix-blend-mode: screen;
}

.theme-filter-military {
  filter: sepia(80%) hue-rotate(60deg) saturate(80%) brightness(60%)
    contrast(120%);
  mix-blend-mode: multiply;
}

.image-container-gold {
  background-color: rgba(212, 175, 55, 0.2);
  overflow: hidden;
  border-radius: 8px;
}

.image-container-green {
  background-color: var(--military-green);
  overflow: hidden;
  border-radius: 8px;
}

.jet-shadow {
  position: fixed;
  top: 10%;
  left: 100%;
  width: 1000px;
  height: 1000px;
  background: url("/main/img/jet-shadow.png") no-repeat center / contain;
  opacity: 0.4;
  z-index: 9999;
  animation: flyOver 2s linear forwards;
  pointer-events: none;
  transform: rotate(-90deg);
  transform-origin: center center;
}

@keyframes flyOver {
  from {
    left: 100%;
  }
  to {
    left: -850px;
  }
}

.leaderboard-row {
  display: grid !important;
  grid-template-columns: 60px 56px minmax(0,1fr) 160px 140px;
  gap: 16px;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: background .2s ease, box-shadow .2s ease;
  position: relative;
}

.leaderboard-row:not(.header-row):hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.18);
}

.header-row {
  top: 0;
  z-index: 2;
  border-bottom: 2px solid var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-row .rank,
.header-row .player-name,
.header-row .wager,
.header-row .prize { color: var(--gold-light); }

.header-row .profile-pic { background: transparent; border: none; box-shadow: none; }

.wager, .prize {
  text-align: right;
  font-weight: 700;
}

.profile-pic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--military-green-dark);
  margin-right: 0;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  overflow: hidden;
}

.profile-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.player-info { min-width: 0; }
.player-name { font-size: 1rem; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.prize { color: var(--gold-light); }

.leaderboard-table {
  width: 100%;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
}

.leaderboard-table::-webkit-scrollbar { width: 8px; height: 8px; }
.leaderboard-table::-webkit-scrollbar-track { background: var(--military-green-dark); }
.leaderboard-table::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.leaderboard-table::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

@media (max-width: 768px) {
  .leaderboard-table { overflow-x: auto; }
  .leaderboard-row { grid-template-columns: 60px 56px minmax(220px,1fr) 160px 140px; min-width: 736px; }
}

.navbar {
  position: relative;
  max-width: 1500px;
  height: 50px;
  margin: 0 auto;
  background: var(--military-green-dark);
  border-bottom: 2px solid var(--gold);
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.nav-menu { display: flex; gap: 1rem; list-style: none; }
.nav-item { color: #fff; text-decoration: none; font-weight: 400; padding: .5rem 1rem; transition: color .3s ease; }
.nav-item:hover { color: var(--gold); }

.main-content { padding: 2rem 1rem; min-height: 90vh; }

.leaderboard-header { text-align: center; margin-bottom: 3rem; }
.leaderboard-title {
  font-size: 2.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  background: linear-gradient(45deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem; text-shadow: 0 0 30px rgba(212,175,55,.3);
}

.countdown-container { padding: 1rem; margin: 1.5rem auto; max-width: 500px; position: relative; overflow: hidden; }
.countdown-label { font-size: 1.2rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; font-weight: 600; }
.countdown-timer { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.countdown-item { text-align: center; background: rgba(212,175,55,.1); border-radius: 8px; padding: .8rem; min-width: 70px; border: 1px solid var(--gold-dark); }
.countdown-number { font-size: 1.6rem; font-weight: 700; color: var(--gold-light); display: block; font-family: "Rajdhani", sans-serif; }
.countdown-text { font-size: .8rem; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-top: .5rem; }

.leaderboard-container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--military-green-dark), var(--military-green));
  border: 2px solid var(--gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}

.leaderboard-logo { text-align: center; padding: 1.5rem; }
.logo-icon { border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.logo-icon img { max-width: 80%; max-height: 80%; object-fit: contain; }

.rank { font-size: 1.2rem; font-weight: 700; color: var(--gold); text-align: center; font-family: "Rajdhani", sans-serif; }
.rank.first { color: var(--gold-light); }
.rank.second { color: #c0c0c0; }
.rank.third { color: #cd7f32; }

.score { font-size: 1.2rem; font-weight: 700; color: var(--gold); font-family: "Rajdhani", sans-serif; }

@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .leaderboard-title { font-size: 2rem; }
  .countdown-timer { gap: 1rem; }
}
@keyframes dropIn   { from{opacity:0; transform:translateY(-16px)} to{opacity:1; transform:none} }
@keyframes fadeUp   { from{opacity:0; transform:translateY(14px)}  to{opacity:1; transform:none} }
@keyframes popIn    { 0%{opacity:0; transform:scale(.85)} 60%{opacity:1; transform:scale(1.05)} 100%{transform:scale(1)} }
@keyframes rowIn    { from{opacity:0; transform:translateY(10px)}  to{opacity:1; transform:none} }
@keyframes flipIn   { 0%{opacity:0; transform:rotateX(-70deg)} 60%{opacity:1; transform:rotateX(10deg)} 100%{transform:none} }

body.page-enter .navbar               { animation: dropIn .6s ease-out both; }
body.page-enter .leaderboard-container{ animation: fadeUp .7s .10s ease-out both; }
body.page-enter .leaderboard-logo     { animation: fadeUp .6s .15s ease-out both; }
body.page-enter .logo-icon            { animation: popIn  .55s .35s ease-out both; }
body.page-enter .header-row           { animation: fadeUp .5s  .25s ease-out both; }

body.page-enter .countdown-item:nth-child(1){ animation: flipIn .5s .15s both; }
body.page-enter .countdown-item:nth-child(2){ animation: flipIn .5s .22s both; }
body.page-enter .countdown-item:nth-child(3){ animation: flipIn .5s .29s both; }
body.page-enter .countdown-item:nth-child(4){ animation: flipIn .5s .36s both; }

.leaderboard-row { will-change: transform, opacity; }
body.page-enter .leaderboard-row:not(.header-row) {
  opacity: 0;
  animation: rowIn .45s ease-out forwards;
  animation-delay: calc(.30s + (var(--i, 0) * 60ms));
}

body.page-enter .leaderboard-row:not(.header-row) .profile-pic { animation: popIn .4s ease-out both; animation-delay: calc(.30s + (var(--i,0)*60ms)); }
body.page-enter .leaderboard-row:not(.header-row) .wager,
body.page-enter .leaderboard-row:not(.header-row) .prize       { animation: fadeUp .4s ease-out both; animation-delay: calc(.36s + (var(--i,0)*60ms)); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

body.home-enter .navbar               { animation: dropIn .6s ease-out both; }
body.home-enter .profile-container   { animation: fadeUp .7s ease-out both; }
body.home-enter .profile-image       { animation: popIn  .55s .15s ease-out both; }
body.home-enter .welcome-text        { animation: fadeUp .6s .12s ease-out both; }
body.home-enter .gold-gradient       { animation: fadeUp .6s .2s  ease-out both; }

body.home-enter .social-icon:nth-child(1){ animation: popIn .4s .10s both; }
body.home-enter .social-icon:nth-child(2){ animation: popIn .4s .16s both; }
body.home-enter .social-icon:nth-child(3){ animation: popIn .4s .22s both; }
body.home-enter .social-icon:nth-child(4){ animation: popIn .4s .28s both; }
body.home-enter .social-icon:nth-child(5){ animation: popIn .4s .34s both; }

.reveal-ready .category-title { opacity:0; transform:translateY(12px); }
.revealed .category-title     { animation: fadeUp .55s ease-out both; }

.card { opacity: 0; transform: translateY(14px); will-change: transform, opacity; }
.card.revealed {
  animation: rowIn .45s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}



@keyframes sweep{ to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card { opacity: 1 !important; transform: none !important; }
}
body.modal-open .jet-shadow,
body.modal-open .radar,
body.modal-open .radar-beam {
  animation: none !important;
  transform: none !important;
}
body.modal-open.screen-shake {
  animation: none !important;
  transform: none !important;
}
body.modal-open {
  will-change: auto !important;
}

body.modal-open #glass-cracks-container,
body.modal-open .glass-crack,
body.modal-open .bullet-hole {
  display: none !important;
}
