@import url("https://fonts.googleapis.com/css2?family=Prata&family=Roboto:wght@300;400;500;700&family=PT+Serif+Caption:ital@0;1&display=swap");

/* Complete professional redesign with AAA game quality */

:root {
  /* Removed red accent, using only gold palette */
  --gold-primary: #d29b61;
  --gold-light: #e4d5b8;
  --dark-bg: #0a0a0a;
  --dark-card: #1a1612;
  --dark-overlay: rgba(26, 22, 18, 0.95);
  --border-gold: rgba(210, 155, 97, 0.3);
  --text-gold: #e4d5b8;
  --text-white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--dark-bg);
  font-family: "Roboto", sans-serif;
  /* Updated background with radial gradients for subtle golden glow effect */
    background-image: radial-gradient(circle at 20% 50%, rgba(210, 155, 97, 0.05) 0%, #0000000f 50%), radial-gradient(circle at 80% 80%, rgba(210, 155, 97, 0.03) 0%, transparent 50%);
  color: var(--text-gold);
  overflow-x: hidden;
}

/* Scroll glow styles removed */

/* Epic hero section with fantasy background */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Fixed hero background image path to correct location */
  background-image: url("../images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Removed red/orange gradient, using only dark overlay for readability */
.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.3) 50%, rgba(10, 10, 10, 0.7) 100%);
  z-index: 1;
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, var(--dark-bg) 100%);
  z-index: 1;
}

/* Centered hero content over the epic background */
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content-center {
  text-align: center;
  max-width: 900px;
}

/* Enhanced video styling with ornamental golden border */

/* Removed video section, content is now centered over background */

.hero-title {
  font-family: "Prata", serif;
  font-size: 96px;
  font-weight: normal;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 16px;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(210, 155, 97, 0.8), 0 0 80px rgba(210, 155, 97, 0.5), 0 8px 30px rgba(0, 0, 0, 0.9);
  animation: titleGlow 3s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  /* Added relative positioning for BETA badge */
  position: relative;
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 30px rgba(210, 155, 97, 0.5), 0 0 60px rgba(210, 155, 97, 0.3), 0 4px 20px rgba(0, 0, 0, 0.8);
  }
  50% {
    text-shadow: 0 0 40px rgba(210, 155, 97, 0.8), 0 0 80px rgba(210, 155, 97, 0.5), 0 4px 20px rgba(0, 0, 0, 0.8);
  }
}

.hero-title-chinese {
  font-family: "Prata", serif;
  font-size: 52px;
  letter-spacing: 12px;
  color: var(--gold-primary);
  opacity: 0.95;
  text-shadow: 0 0 30px rgba(210, 155, 97, 0.6), 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Added BETA badge styling */
.beta-badge {
  position: absolute;
  top: -20px;
  right: -120px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  padding: 8px 20px;
  border-radius: 8px;
  transform: rotate(15deg);
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.6), 0 0 40px rgba(255, 68, 68, 0.4);
  animation: betaPulse 2s ease-in-out infinite;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes betaPulse {
  0%,
  100% {
    transform: rotate(15deg) scale(1);
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.6), 0 0 40px rgba(255, 68, 68, 0.4);
  }
  50% {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 68, 68, 0.9), 0 0 60px rgba(255, 68, 68, 0.6);
  }
}

/* Redesigned countdown timer with simpler, more elegant design */
.countdown-container {
  margin: 20px 0 30px 0;
  padding: 20px 30px;
  background: linear-gradient(135deg, rgba(210, 155, 97, 0.1), rgba(0, 0, 0, 0.8));
  border: 1px solid var(--gold-primary);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.countdown-title {
  font-family: "Prata", serif;
  font-size: 16px;
  color: var(--gold-light);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.countdown-value {
  font-family: "Prata", serif;
  font-size: 36px;
  font-weight: bold;
  color: var(--gold-light);
  line-height: 1;
  min-width: 60px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(210, 155, 97, 0.3);
}

.countdown-label {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  opacity: 0.8;
}

.countdown-separator {
  font-family: "Prata", serif;
  font-size: 30px;
  color: var(--gold-primary);
  font-weight: bold;
  opacity: 0.5;
  margin-top: -20px;
}

.hero-subtitle {
  font-family: "PT Serif Caption", serif;
  font-size: 22px;
  color: var(--gold-primary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 50px;
  /* Removed top margin to account for countdown */
  margin-top: 40px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 50px;
  background: rgba(10, 10, 10, 0.85);
  border: 2px solid var(--border-gold);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 60px rgba(210, 155, 97, 0.2);
}

.hero-stat {
  text-align: center;
}

.stat-value {
  font-family: "Prata", serif;
  font-size: 48px;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(210, 155, 97, 0.5);
}

.stat-label {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.stat-divider {
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--gold-primary), transparent);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-grid {
  display: grid;
  gap: 40px;
  padding: 80px 0;
}

/* Section Cards */
.section-card {
  background: var(--dark-card);
  border: 2px solid var(--border-gold);
  border-radius: 20px;
  padding: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Removed red gradient from section card hover effect */
.section-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--gold-primary), transparent, var(--gold-light));
  opacity: 0;
  border-radius: 20px;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.section-card:hover::before {
  opacity: 0.3;
}

.card-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.card-title {
  font-family: "Prata", serif;
  font-size: 42px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 8px;
  font-weight: normal;
  margin-bottom: 20px;
}

.title-ornament {
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  margin: 0 auto;
  position: relative;
}

.title-ornament::before,
.title-ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-primary);
}

.title-ornament::before {
  left: 0;
}

.title-ornament::after {
  right: 0;
}

/* Chat Section */
.chat-card {
  grid-column: 1 / -1;
}

.chat-tabs-nav {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.chat-tab-btn {
  padding: 15px 35px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-gold);
  border-radius: 12px;
  color: var(--text-gold);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.chat-tab-btn i {
  font-size: 18px;
}

.chat-tab-btn:hover {
  background: rgba(210, 155, 97, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.chat-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border-color: var(--gold-light);
  color: var(--dark-bg);
  box-shadow: 0 4px 20px rgba(210, 155, 97, 0.4);
}

.chat-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 30px;
  min-height: 500px;
}

.chat-tab-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-msg {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--gold-primary);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.chat-msg:hover {
  background: rgba(210, 155, 97, 0.05);
  transform: translateX(5px);
}

.chat-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 15px rgba(210, 155, 97, 0.3);
  flex-shrink: 0;
}

.chat-msg-content {
  flex: 1;
}

.chat-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.chat-author {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-light);
}

/* Removed red gradient from system tag, using only gold */
.system-tag {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  color: var(--dark-bg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chat-time {
  font-family: "PT Serif Caption", serif;
  font-size: 12px;
  color: rgba(228, 213, 184, 0.5);
}

.chat-msg-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-gold);
}

/* Classes Section */
.classes-grid {
  display: grid;
  /* Changed from 4 columns to 3 columns to accommodate 6 classes */
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.class-item {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  /* Added height for better character display */
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.class-new-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.6), 0 0 30px rgba(255, 68, 68, 0.4);
  z-index: 10;
  animation: newBadgePulse 2s ease-in-out infinite;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes newBadgePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.6), 0 0 30px rgba(255, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.9), 0 0 50px rgba(255, 68, 68, 0.6);
  }
}

.class-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 60px rgba(210, 155, 97, 0.5), 0 0 80px rgba(210, 155, 97, 0.3);
  z-index: 10;
}

/* Enhanced character image display with dramatic effects */
.class-img {
  width: 100%;
  height: 320px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  filter: drop-shadow(0 0 30px rgba(210, 155, 97, 0.5));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex: 1;
}

/* Added glowing aura effect behind characters */
.class-img::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(210, 155, 97, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
}

.class-item:hover .class-img::before {
  opacity: 1;
}

.class-item:hover .class-img {
  transform: scale(1.15) translateY(-10px);
  filter: drop-shadow(0 0 50px rgba(210, 155, 97, 0.8)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}

/* Added floating animation for characters */
@keyframes floatCharacter {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.class-item:hover .class-img {
  animation: floatCharacter 3s ease-in-out infinite;
}

.class-info {
  padding: 25px;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7));
  border-top: 1px solid var(--border-gold);
  position: relative;
  z-index: 2;
}

/* Enhanced class name with glow effect */
.class-name {
  font-family: "Prata", serif;
  font-size: 28px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  font-weight: normal;
  text-shadow: 0 0 20px rgba(210, 155, 97, 0.5);
  transition: all 0.3s ease;
}

.class-item:hover .class-name {
  color: var(--gold-primary);
  text-shadow: 0 0 30px rgba(210, 155, 97, 0.8), 0 0 50px rgba(210, 155, 97, 0.5);
  transform: scale(1.05);
}

.class-desc {
  font-size: 13px;
  color: var(--gold-primary);
  margin-bottom: 15px;
  font-style: italic;
  opacity: 0.9;
}

.class-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

/* Enhanced count number with pulsing effect */
.count-num {
  font-family: "Prata", serif;
  font-size: 32px;
  color: var(--gold-primary);
  font-weight: bold;
  text-shadow: 0 0 15px rgba(210, 155, 97, 0.4);
  transition: all 0.3s ease;
}

.class-item:hover .count-num {
  color: var(--gold-light);
  text-shadow: 0 0 25px rgba(210, 155, 97, 0.8);
  transform: scale(1.1);
}

.count-label {
  font-size: 13px;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Removed class-hover-overlay styles as requested */

/* Added particle effects container for extra visual flair */
.class-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(210, 155, 97, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.class-item:hover::after {
  opacity: 1;
  animation: rotateGradient 8s linear infinite;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Players Section */
.players-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.page-num {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-gold);
  border-radius: 10px;
  color: var(--text-gold);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-num:hover {
  background: rgba(210, 155, 97, 0.2);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.page-num.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border-color: var(--gold-light);
  color: var(--dark-bg);
  box-shadow: 0 4px 20px rgba(210, 155, 97, 0.5);
}

.players-list {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
}

.player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.player-row:hover {
  background: rgba(210, 155, 97, 0.05);
  border-color: var(--gold-primary);
  transform: translateX(5px);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 12px rgba(210, 155, 97, 0.3);
}

.player-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.player-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-light);
}

.player-level {
  font-size: 13px;
  color: var(--gold-primary);
}

.player-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.status-indicator.online {
  background: #4ade80;
  box-shadow: 0 0 15px #4ade80;
}

.status-indicator.offline {
  background: #6b7280;
  box-shadow: none;
}

.status-text {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-row.online .status-text {
  color: #4ade80;
}

.player-row.offline {
  opacity: 0.6;
}

.player-row.offline .status-text {
  color: #6b7280;
}

/* Media Section */
.media-card {
  grid-column: 1 / -1;
}

/* Horizontal auto-scrolling wallpaper carousel */
.wallpapers-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.wallpapers-carousel {
  display: flex;
  gap: 30px;
  animation: scrollCarousel 60s linear infinite;
  will-change: transform;
}

.wallpapers-carousel:hover {
  animation-play-state: paused;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.wallpaper-card {
  position: relative;
  min-width: 420px;
  height: 280px;
  flex-shrink: 0;
  border: 2px solid var(--border-gold);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeInCard 0.8s ease-out backwards;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wallpaper-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--gold-primary), transparent 30%);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: rotateGradient 4s linear infinite;
  z-index: 1;
}

.wallpaper-card:hover::before {
  opacity: 0.3;
}

.wallpaper-card:hover {
  transform: translateY(-15px) scale(1.05) rotateY(5deg);
  border-color: var(--gold-primary);
  box-shadow: 0 25px 70px rgba(210, 155, 97, 0.7), 0 0 100px rgba(210, 155, 97, 0.5), inset 0 0 80px
    rgba(210, 155, 97, 0.15);
  z-index: 100;
}

.wallpaper-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  position: relative;
  z-index: 2;
}

.wallpaper-card:hover .wallpaper-image {
  transform: scale(1.1);
}

.wallpaper-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: radial-gradient(ellipse at bottom, rgba(210, 155, 97, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 3;
  pointer-events: none;
  animation: pulseGlow 3s ease-in-out infinite;
}

.wallpaper-card:hover .wallpaper-glow {
  opacity: 1;
}

.wallpaper-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallpaper-card:hover .wallpaper-info {
  transform: translateY(0);
}

.wallpaper-number {
  font-family: "Prata", serif;
  font-size: 32px;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(210, 155, 97, 0.8);
  font-weight: bold;
  letter-spacing: 2px;
}

.wallpaper-actions-inline {
  display: flex;
  gap: 12px;
}

.wallpaper-action-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border: none;
  border-radius: 12px;
  color: var(--dark-bg);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(210, 155, 97, 0.4);
}

.wallpaper-action-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 25px rgba(210, 155, 97, 0.8);
}

.wallpaper-action-btn i {
  pointer-events: none;
}

/* Lightbox modal for fullscreen wallpaper viewing */
.wallpaper-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.wallpaper-lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: lightboxZoom 0.4s ease;
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border: 3px solid var(--gold-primary);
  border-radius: 12px;
  box-shadow: 0 0 100px rgba(210, 155, 97, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border: none;
  border-radius: 50%;
  color: var(--dark-bg);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 30px rgba(210, 155, 97, 0.8);
}

/* Open World Map section styles */
.map-card {
  grid-column: 1 / -1;
}

.map-showcase {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.map-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 10px 50px rgba(210, 155, 97, 0.3);
  transition: all 0.5s ease;
}

.map-container:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 80px rgba(210, 155, 97, 0.6), 0 0 100px rgba(210, 155, 97, 0.4);
  border-color: var(--gold-light);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.map-container:hover .map-image {
  transform: scale(1.05);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.map-container:hover .map-overlay {
  opacity: 1;
}

.map-info {
  text-align: center;
  padding: 40px;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.map-container:hover .map-info {
  transform: translateY(0);
}

.map-info i {
  font-size: 64px;
  color: var(--gold-primary);
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(210, 155, 97, 0.8);
  animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.map-info h3 {
  font-family: "Prata", serif;
  font-size: 36px;
  color: var(--gold-light);
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(210, 155, 97, 0.6);
}

.map-info p {
  font-size: 18px;
  color: var(--text-gold);
  line-height: 1.6;
}

.map-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.map-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.map-feature:hover {
  background: rgba(210, 155, 97, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(210, 155, 97, 0.3);
}

.map-feature i {
  font-size: 42px;
  color: var(--gold-primary);
  transition: all 0.4s ease;
}

.map-feature:hover i {
  color: var(--gold-light);
  transform: scale(1.2) rotate(5deg);
  text-shadow: 0 0 20px rgba(210, 155, 97, 0.8);
}

.map-feature span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-gold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Top Players Leaderboard styles */
.leaderboard-card {
  grid-column: 1 / -1;
}

.card-subtitle {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 10px;
  opacity: 0.8;
}

.leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
}

.leaderboard-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 25px 30px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.leaderboard-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-light));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.leaderboard-row:hover::before {
  opacity: 1;
}

.leaderboard-row:hover {
  transform: translateX(10px) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 15px 50px rgba(210, 155, 97, 0.4);
}

/* Special styling for top 3 ranks */
.leaderboard-row.rank-1 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.4));
  border-color: #ffd700;
}

.leaderboard-row.rank-2 {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(0, 0, 0, 0.4));
  border-color: #c0c0c0;
}

.leaderboard-row.rank-3 {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(0, 0, 0, 0.4));
  border-color: #cd7f32;
}

.rank-badge {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid var(--border-gold);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.4s ease;
  position: relative;
}

.rank-badge::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  animation: rotateBadge 3s linear infinite;
  z-index: -1;
}

.leaderboard-row:hover .rank-badge::after {
  opacity: 0.5;
}

@keyframes rotateBadge {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rank-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.rank-badge.silver {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  border-color: #c0c0c0;
  box-shadow: 0 0 30px rgba(192, 192, 192, 0.6);
}

.rank-badge.bronze {
  background: linear-gradient(135deg, #cd7f32, #e8a87c);
  border-color: #cd7f32;
  box-shadow: 0 0 30px rgba(205, 127, 50, 0.6);
}

.rank-badge i {
  font-size: 32px;
  color: var(--dark-bg);
}

.rank-number {
  font-family: "Prata", serif;
  font-size: 32px;
  font-weight: bold;
  color: var(--gold-light);
}

.leaderboard-row:hover .rank-badge {
  transform: scale(1.15) rotate(10deg);
}

.player-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.leaderboard-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(210, 155, 97, 0.4);
  transition: all 0.4s ease;
}

.leaderboard-row:hover .leaderboard-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(210, 155, 97, 0.8);
}

.player-info-leader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-name-leader {
  font-family: "Prata", serif;
  font-size: 24px;
  color: var(--gold-light);
  font-weight: 600;
  text-shadow: 0 0 15px rgba(210, 155, 97, 0.4);
}

.player-level-leader {
  font-size: 15px;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.playtime-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.playtime-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Prata", serif;
}

.playtime-value .hours,
.playtime-value .minutes {
  font-size: 36px;
  font-weight: bold;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(210, 155, 97, 0.5);
}

.playtime-value .time-unit {
  font-size: 18px;
  color: var(--gold-primary);
  font-weight: 600;
}

.playtime-label {
  font-size: 13px;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.rank-decoration {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(210, 155, 97, 0.2), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.6s ease;
}

.leaderboard-row:hover .rank-decoration {
  opacity: 1;
  right: -30px;
}

/* Responsive Design */
@media screen and (max-width: 1400px) {
  .hero-title {
    font-size: 72px;
    letter-spacing: 12px;
  }

  .hero-title-chinese {
    font-size: 42px;
    letter-spacing: 10px;
  }

  .classes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wallpaper-card {
    min-width: 360px;
    height: 240px;
  }

  .map-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .home-hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 48px;
    letter-spacing: 8px;
  }

  .hero-title-chinese {
    font-size: 32px;
    letter-spacing: 6px;
  }

  .beta-badge {
    right: -60px;
    font-size: 14px;
    padding: 6px 14px;
  }

  .countdown-container {
    padding: 20px 15px;
  }

  .countdown-title {
    font-size: 14px;
  }

  .countdown-timer {
    gap: 12px;
  }

  .countdown-item {
    gap: 4px;
  }

  .countdown-value {
    font-size: 28px;
    min-width: 50px;
  }

  .countdown-separator {
    font-size: 24px;
    margin-top: -15px;
  }

  .hero-subtitle {
    font-size: 16px;
    letter-spacing: 3px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 25px;
    padding: 35px 30px;
  }

  .stat-divider {
    width: 80px;
    height: 2px;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .wallpaper-card {
    min-width: 300px;
    height: 200px;
  }

  .section-card {
    padding: 30px 20px;
  }

  .card-title {
    font-size: 32px;
  }

  .chat-tabs-nav {
    flex-wrap: wrap;
  }

  .chat-tab-btn {
    padding: 12px 20px;
    font-size: 12px;
  }

  .map-features {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .player-profile {
    flex-direction: column;
  }

  .playtime-display {
    align-items: center;
  }

  .rank-decoration {
    display: none;
  }
}
