* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cinzel', serif;
  background-color: #000;
  color: #f2f2f2;
  scroll-behavior: smooth;
  transition: background 1s ease;
}

header {
  background: url('../images/bg.jpg') no-repeat center center/cover;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.logo {
  font-size: 2rem;
  color: #f9c80e;
  text-shadow: 0 0 10px #f9c80e;
}
.logo span {
  color: #fff;
}

.logo a {
  color: #f9c80e;
  text-decoration: none;
  font-size: 2rem;
  text-shadow: 0 0 10px #f9c80e;
}

.logo a span {
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}
.nav-links li a:hover {
  color: #f9c80e;
}

nav, .hero {
  position: relative;
  z-index: 10;
}

.hero {
  text-align: center;
  margin: auto;
  padding: 0 20px;
}
.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 0 0 10px #f9c80e;
}
.hero p {
  margin-top: 15px;
  font-size: 1.3rem;
}
.cta {
  margin-top: 30px;
  display: inline-block;
  padding: 14px 34px;
  font-size: 1.1rem;
  background: #f9c80e;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}
.cta:hover {
  background: #d1a600;
  transform: scale(1.05);
}

section {
  padding: 80px 30px;
  text-align: center;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #f9c80e;
  text-shadow: 0 0 8px #f9c80e;
}
p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.feature {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #333;
  backdrop-filter: blur(4px);
}
.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #f2f2f2;
}
.feature p {
  font-size: 1;
}

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.fade-section.active {
  opacity: 1;
  transform: translateY(0);
}

/* SERVER FEATURES - full viewport height, centered content */
#server-features {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

#server-features.active {
  opacity: 1;
  transform: translateY(0);
}

#server-features h2 {
  text-align: center;
  color: #f9c80e;
  margin-bottom: 40px;
  text-shadow: 0 0 8px #f9c80e;
  font-size: 2.5rem;
}

#about,
#features {
  height: 50vh;
  box-sizing: border-box;
  padding: 20px;
  color: #f2f2f2;
}

#about {
  background-color: #181818;
}

#features {
  background-color: #101010;
}

.feature h3 {
  color: #f9c80e;
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-shadow: 0 0 6px #f9c80e;
}

.features-columns {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-group {
  flex: 1 1 250px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 25px;
  border-radius: 12px;
  border: 1px solid #333;
  backdrop-filter: blur(4px);
}

.feature-group h3 {
  color: #f9c80e;
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-shadow: 0 0 6px #f9c80e;
}

.feature-group ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.5;
}

.feature-group ul li {
  margin-bottom: 8px;
}

#particles-main,
#particles-dl {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0; /* background layer */
}

#particles-rank {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0; /* stays at the back */
  pointer-events: none;
}

#showcase {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: #0a0a0a; /* fallback if no JS for data-bg */
  color: #f2f2f2;
}

.character-container {
  max-width: 500px;
  margin: 0 auto;
}

.character-profile {
  transition: opacity 0.6s ease-in-out;
}

.character-profile img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px #f9c80e);
  border-radius: 10px;
}

.character-profile h3 {
  color: #f9c80e;
  margin-bottom: 10px;
}

.character-profile p {
  font-size: 1rem;
  color: #ccc;
}

.character-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.character-controls button {
  background: #f9c80e;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.character-controls button:hover {
  background: #d1a600;
}

.character-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
  margin: 40px 0;
}

.char {
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.char img {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 0 10px #f9c80e);
}

.char.main img {
  max-width: 300px;
}

.char.main h3 {
  color: #f9c80e;
  margin-top: 10px;
}

.char.main p {
  color: #ccc;
  font-size: 1rem;
  margin-top: 5px;
}

.faded {
  opacity: 0.4;
  transform: scale(0.85);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 0 20px;
}

.stats-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-info:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(249, 200, 14, 0.4);
}

.stats-info h3 {
  color: #f9c80e;
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-shadow: 0 0 6px #f9c80e;
}

.stats-info p {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
  /*text-shadow: 0 0 8px #f9310e;*/
  margin: 0;
}

footer {
  text-align: center;
  
  color: #aaa;
  padding: 20px 10px;
  background-color: #111;
  line-height: 1.6; 
  margin: 0 auto;
}

footer h3 {
  margin: 5px 0;
  font-size: 1rem;
  max-width: 100%;
}

footer p {
  margin: 5px 0;
  font-size: 0.7rem;
  max-width: 100%;
}

/* Modal Background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

/* Modal Content */
.modal-content {
  background-color: #1a1a1a;
  color: #f2f2f2;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 20px #f9c80e44;
  position: relative;
}

/* Close Button */
.modal .close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f2f2f2;
}

/* Input Fields */
.modal-content input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fff;
}

/* Submit Button */
.modal-content button {
  padding: 12px 20px;
  background-color: #f9c80e;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.modal-content button:hover {
  background-color: #d1a600;
}

/* RANKING SECTION */
.ranking-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.rank-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #f9c80e33;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  padding: 20px 30px;
  text-align: center;
  color: #f2f2f2;
  font-family: 'Cinzel', serif;
  text-shadow: 0 0 4px #000;
  box-shadow: 0 0 20px rgba(249, 200, 14, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.rank-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(249, 200, 14, 0.4);
}

.rank-title {
  font-size: 1.8rem;
  color: #f9c80e;
  text-shadow: 0 0 10px #f9c80e;
  margin-bottom: 10px;
}

.rank-name {
  font-size: 1.2rem;
  font-weight: bold;
}

.rank-points {
  font-size: 1rem;
  color: #ccc;
  margin-top: 5px;
}

/* Top 1: Large, Glowing */
.top1 {
  background: linear-gradient(145deg, #222, #111);
  border: 2px solid #f9c80e;
  box-shadow: 0 0 30px #f9c80e77;
  width: 400px;
}

/* Top 2 & 3: Medium cards */
.top2-3 {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.top2, .top3 {
  width: 250px;
  background: linear-gradient(145deg, #1a1a1a, #101010);
}

/* Rank List Styles */
.rank-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 10px rgba(249, 200, 14, 0.1);
}

.rank-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #222;
  font-family: 'Cinzel', serif;
  color: #f2f2f2;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s;
}

.rank-list li:hover {
  background: rgba(249, 200, 14, 0.05);
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-num {
  color: #f9c80e;
  font-weight: bold;
  width: 50px;
}

.rank-user {
  flex: 1;
  text-align: left;
}

.rank-score {
  color: #ccc;
  width: 100px;
  text-align: right;
}

.ranking-more {
  text-align: center;
}

.more-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #f9c80e;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 0 10px #f9c80e88;
  transition: background 0.3s, transform 0.3s;
  font-family: 'Cinzel', serif;
}

.more-btn:hover {
  background-color: #d1a600;
  transform: scale(1.05);
}