/* ===================================================================
 * Zyro's Skinrave Leaderboard - Main Stylesheet
 * Modified for green theme with transparent leaderboard
 * ================================================================ */

/* ===================================================================
 * # base style overrides
 * ================================================================ */
html {
  font-size: 10px;
}

@media only screen and (max-width:400px) {
  html {
    font-size: 9.411764705882353px;
  }
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  background: #111111;
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem;
  font-style: normal;
  font-weight: normal;
  line-height: 1.765;
  color: #757575;
  margin: 0;
  padding: 0;
}

/* Links - GREEN THEME */
a {
  color: #22c55e;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

a:hover,
a:focus,
a:active {
  color: #16a34a;
}

a:hover,
a:active {
  outline: 0;
}

/* ===================================================================
 * # typography
 * ================================================================ */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Cinzel', serif;
  color: #ffffff;
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  margin-top: 6rem;
  margin-bottom: 1.8rem;
}

@media only screen and (max-width:600px) {
  h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
    margin-top: 5.1rem;
  }
}

h1, .h1 {
  font-size: 3.6rem;
  line-height: 1.25;
  letter-spacing: -.1rem;
}

@media only screen and (max-width:600px) {
  h1, .h1 {
    font-size: 3.3rem;
    letter-spacing: -.07rem;
  }
}

h2, .h2 {
  font-size: 3rem;
  line-height: 1.3;
}

/* ===================================================================
 * # preloader - GREEN THEME
 * ================================================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #050505;
  z-index: 800;
  height: 100%;
  width: 100%;
  display: table;
}

.no-js #preloader,
.oldie #preloader {
  display: none;
}

#loader {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

.line-scale-pulse-out > div {
  background-color: #22c55e;
  width: 4px;
  height: 35px;
  border-radius: 2px;
  margin: 2px;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  display: inline-block;
  -webkit-animation: line-scale-pulse-out 0.9s -0.6s infinite cubic-bezier(0.85, 0.25, 0.37, 0.85);
  animation: line-scale-pulse-out 0.9s -0.6s infinite cubic-bezier(0.85, 0.25, 0.37, 0.85);
}

.line-scale-pulse-out > div:nth-child(2),
.line-scale-pulse-out > div:nth-child(4) {
  -webkit-animation-delay: -0.4s !important;
  animation-delay: -0.4s !important;
}

.line-scale-pulse-out > div:nth-child(1),
.line-scale-pulse-out > div:nth-child(5) {
  -webkit-animation-delay: -0.2s !important;
  animation-delay: -0.2s !important;
}

@-webkit-keyframes line-scale-pulse-out {
  0% {
    -webkit-transform: scaley(1);
    transform: scaley(1);
  }
  50% {
    -webkit-transform: scaley(0.4);
    transform: scaley(0.4);
  }
  100% {
    -webkit-transform: scaley(1);
    transform: scaley(1);
  }
}

@keyframes line-scale-pulse-out {
  0% {
    -webkit-transform: scaley(1);
    transform: scaley(1);
  }
  50% {
    -webkit-transform: scaley(0.4);
    transform: scaley(0.4);
  }
  100% {
    -webkit-transform: scaley(1);
    transform: scaley(1);
  }
}

/* ===================================================================
 * # pace.js styles - GREEN THEME
 * ================================================================ */
.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace-inactive {
  display: none;
}

.pace .pace-progress {
  background: #22c55e;
  position: fixed;
  z-index: 900;
  top: 0;
  right: 100%;
  width: 100%;
  height: 4px;
}

/* ===================================================================
 * # particles background
 * ================================================================ */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ===================================================================
 * # navigation
 * ================================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 1.5rem 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

nav li {
  display: inline-block;
}

nav a {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .2rem;
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 2rem;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #22c55e;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===================================================================
 * # social icons
 * ================================================================ */
.social-icons {
  position: fixed;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 100;
}

.social-icons a {
  width: 50px;
  height: 50px;
  background: rgba(10, 10, 10, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-twitter:hover {
  background: black;
  border-color: white;
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(29, 161, 242, 0.4);
}

.social-kick:hover {
  background: #53FC18;
  border-color: #53FC18;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(83, 252, 24, 0.4);
}

.social-discord:hover {
  background: #5865F2;
  border-color: #5865F2;
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

@media only screen and (max-width: 1000px) {
  .social-icons {
    right: 2rem;
  }
}

@media only screen and (max-width: 768px) {
  .social-icons {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 1.2rem;
    z-index: 999;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 3rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
  }

  .social-icons a {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 1.6rem;
    backdrop-filter: blur(6px);
  }
}

/* ===================================================================
 * # hero section
 * ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12rem 4rem 8rem;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: 6rem;
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
  animation: fadeInUp 1s ease-out;
}


.hero .subtitle {
  font-size: 1.9rem;             
  font-weight: 400;               
  color: rgba(255, 255, 255, 0.78);
  max-width: 720px;              
  margin: 0 auto 4rem;       
  line-height: 1.6;               
  letter-spacing: 0.3px;          
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .referral-code {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: 0.4rem;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  padding: 1.2rem 3rem;
  border-radius: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0px 20px rgba(34, 197, 94, 0.5);
  transition: all 0.3s ease;
  animation: fadeInUp 1.4s ease-out;
  position: relative;
  overflow: hidden;
}

.hero .referral-code::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero .referral-code:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(34, 197, 94, 0.6);
}

.hero .referral-code:hover::before {
  left: 100%;
}

@media only screen and (max-width: 1000px) {
  .hero h1 {
    font-size: 4.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.8rem;
  }
  
  .hero .referral-code {
    font-size: 2.8rem;
    padding: 1.8rem 4rem;
  }
}

@media only screen and (max-width: 768px) {
  .hero {
    padding: 10rem 2rem 8rem;
  }
}

@media only screen and (max-width: 600px) {
  .hero {
    padding: 10rem 2rem 6rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.6rem;
  }
  
  .hero .referral-code {
    font-size: 2.2rem;
    padding: 1.5rem 3rem;
    letter-spacing: 0.3rem;
  }
}

/* ===================================================================
 * # leaderboard section
 * ================================================================ */
#countdown span {
  display: inline-block;
  min-width: 60px;
  background: rgba(34, 197, 94, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 0.8rem;
  margin: 0 0.5rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

#timer-ended {
  animation: pulse 2s infinite;
}

@media only screen and (max-width: 600px) {
  #countdown {
    font-size: 2.5rem;
  }
  
  #countdown span {
    min-width: 45px;
    padding: 0.8rem 1rem;
    margin: 0 0.2rem;
  }
}

.leaderboard-section {
  min-height: 100vh;
  padding: 10rem 4rem 8rem;
  position: relative;
  z-index: 10;
}

.leaderboard-section h2 {
  text-align: center;
  font-size: 5rem;
  color: #ffffff;
  margin-bottom: 5rem;
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.leaderboard-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  gap: 2rem;
  padding: 2rem 3rem;
  background: rgba(34, 197, 94, 0.1);
  border-bottom: 2px solid rgba(34, 197, 94, 0.3);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: #22c55e;
}

#leaderboard-body {
  padding: 2rem 3rem;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.leaderboard-item:hover {
  background: rgba(34, 197, 94, 0.05);
  transform: translateX(10px);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.rank-badge {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-badge.top-3 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.rank-badge.first {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 193, 7, 0.5));
  border: 2px solid rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.2);
  font-size: 2.2rem;
  font-weight: 700;
}

.rank-badge.second {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.5), rgba(169, 169, 169, 0.5));
  border: 2px solid rgba(192, 192, 192, 0.8);
  box-shadow: 0 0 30px rgba(192, 192, 192, 0.5), inset 0 0 20px rgba(192, 192, 192, 0.2);
  font-size: 2rem;
  font-weight: 700;
}

.rank-badge.third {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.5), rgba(184, 115, 51, 0.5));
  border: 2px solid rgba(205, 127, 50, 0.8);
  box-shadow: 0 0 30px rgba(205, 127, 50, 0.5), inset 0 0 20px rgba(205, 127, 50, 0.2);
  font-size: 2rem;
  font-weight: 700;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.user-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.5);
  object-fit: cover;
  transition: all 0.3s ease;
}

.leaderboard-item:hover .user-avatar {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
  transform: scale(1.1);
}

.username {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  color: #ffffff;
}

.user-info > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.user-tier {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 600;
  letter-spacing: 0.05rem;
}

.wagered {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #22c55e;
  text-align: right;
}

.loading {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@media only screen and (max-width: 1000px) {
  .leaderboard-section h2 {
    font-size: 4rem;
  }
  
  .leaderboard-header,
  .leaderboard-item {
    grid-template-columns: 100px 1fr 150px;
    gap: 1.5rem;
  }
  
  .leaderboard-container {
    margin: 0 2rem;
  }
  
  #leaderboard-body {
    padding: 1.5rem 2rem;
  }
}

@media only screen and (max-width: 768px) {
  .leaderboard-section {
    padding-bottom: 12rem;
  }
}

@media only screen and (max-width: 600px) {
  .leaderboard-section {
    padding: 8rem 2rem 6rem;
  }
  
  .leaderboard-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
  }
  
  .leaderboard-container {
    margin: 0;
    border-radius: 1rem;
  }
  
  .leaderboard-header {
    grid-template-columns: 70px 1fr 100px;
    gap: 1rem;
    padding: 1.5rem 1.5rem;
    font-size: 1.2rem;
  }
  
  .leaderboard-item {
    grid-template-columns: 70px 1fr 100px;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  
  #leaderboard-body {
    padding: 1rem 1.5rem;
  }
  
  .rank-badge {
    font-size: 1.4rem;
    padding: 0.8rem;
  }
  
  .rank-badge.first {
    font-size: 1.8rem;
  }
  
  .rank-badge.second,
  .rank-badge.third {
    font-size: 1.6rem;
  }
  
  .user-avatar {
    width: 4rem;
    height: 4rem;
  }
  
  .user-info {
    gap: 1rem;
  }
  
  .username {
    font-size: 1.5rem;
  }
  
  .wagered {
    font-size: 1.6rem;
  }
}

@media only screen and (max-width: 400px) {
  .leaderboard-header,
  .leaderboard-item {
    grid-template-columns: 60px 1fr 90px;
    gap: 0.8rem;
  }
  
  .user-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .username {
    font-size: 1.4rem;
  }
}

/* ===================================================================
 * # REWARD BADGE
 * ================================================================ */
.reward-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
  animation: gemGlow 2s ease-in-out infinite;
}

@keyframes gemGlow {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.8);
  }
}

.leaderboard-item:nth-child(1) .reward-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  animation: gemGlow 1.5s ease-in-out infinite;
}

.leaderboard-item:nth-child(2) .reward-badge {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.leaderboard-item:nth-child(3) .reward-badge {
  background: linear-gradient(135deg, #cd7f32 0%, #e8a562 100%);
}

.leaderboard-item:nth-child(4) .reward-badge,
.leaderboard-item:nth-child(5) .reward-badge {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

@media only screen and (max-width: 600px) {
  .reward-badge {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ===================================================================
 * # animations
 * ================================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===================================================================
 * # scroll animations
 * ================================================================ */
html {
  scroll-behavior: smooth;
}