html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #0a0a0f;
  color: #fff;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* HEADER */
.header {
  background: #000814;
  border-bottom: 1px solid #222;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
    height: 50px;   /* adjust size */
    width: auto;
    display: block;
}

.header .logo {
    display: flex;
    align-items: center;
}


.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.coins {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
}

.quiz-link {
  text-decoration: none;
  background: #007bff;
  border: 1px solid #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.quiz-link:hover {
  background: #3399ff;
  transform: scale(1.05);
}

/* HERO */
.hero {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(10, 10, 10, 0.8)),
              url("/static/images/tamilcinema.webp") center/cover no-repeat;
}

.hero h1 {
  font-size: 2.5rem;
  color: #ffcc00;
  margin-bottom: 10px;
}

.hero p {
  color: #ddd;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.scroll-btn {
  background: #ff0033;
  color: white;
  padding: 12px 32px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 15px rgba(255, 0, 51, 0.5);
}

/* BATTLE ZONE */
.battle-zone {
  text-align: center;
  padding: 30px 20px;
}

.battle-zone h2 {
  font-size: 1.8rem;
  color: #ffcc00;
  margin-bottom: 40px;
  text-shadow: 0 0 12px rgba(255, 204, 51, 0.10);
}

.battle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.battle-card {
  position: relative;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.battle-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.battle-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  padding-bottom: 20px;
}

.battle-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.battle-text small {
  display: block;
  color: #ffcc00;
  font-size: 0.9rem;
}

.locked {
  filter: grayscale(0.6);
  opacity: 0.85;
}

/* LEADERBOARD */
.leaderboard {
  background: #101010;
  padding: 60px 20px;
  text-align: center;
}

.leaderboard h2 {
  color: #ffcc00;
  text-shadow: 0 0 12px rgba(255, 204, 51, 0.25);
  font-size: 1.7rem;
  margin-bottom: 25px;
}

table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 15px 10px;
  text-align: center;
}

th {
  background: #2a2a2a;
}

tr.gold td { color: #ffd700; }
tr.silver td { color: #c0c0c0; }
tr.bronze td { color: #cd7f32; }

.view-btn {
  margin-top: 20px;
  background: #ffb347;
  border: none;
  padding: 10px 25px;
  color: black;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s ease;
}

.view-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* FOOTER */
.footer {
  background: #0a0a0f;
  padding: 25px 10px;
  text-align: center;
  color: #fff;
  margin-top: 15px;
}

.footer-copy {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cd7f32;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.footer-links a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding: 30px 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .header {
    padding: 15px 25px;
  }
  .logo img {
    height: 38px;
  }
  .battle-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .battle-card {
    height: 180px;
  }

  .coins {
    font-size: 0.9rem;
    padding: 6px 14px;
  }

  .quiz-link {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .footer-links {
    gap: 15px;
  }
  .footer-links a {
    font-size: 13px;
  }
  .footer-copy {
    font-size: 12px;
  }
}
