
header {
  width: 100%;
  background-color: #2c2c3e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

h1 {
  margin: 0;
  font-size: 28px;
}

.music-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.menu {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.game-area {
  text-align: center;
}

.character-img {
  max-width: 300px;
  width: 80%;
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.choice-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 15px;
}

.choice-buttons button {
  font-size: 20px;
  padding: 12px 28px;
  border-radius: 50px; /* pill shape */
  background: linear-gradient(135deg, #ff4ec9, #ff66b2);
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255,105,180,0.6);
}

.choice-buttons button:hover {
  background-color: #555;
}


/* 🔥 New Info Section Styles (About + How to Play) */
.info-section {
  max-width: 800px;
  background-color: #2a2a3f;
  padding: 30px;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.info-section h2 {
  font-size: 26px;
  margin-bottom: 15px;
  border-bottom: 2px solid #4c4cff;
  padding-bottom: 5px;
}

.info-section p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Share Button Styling */
#share {
  margin: 30px auto;
  text-align: center;
}

#shareBtn {
  background-color: #ff5050;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#shareBtn:hover {
  background-color: #cc3b3b;
}

/* 🔥 Leaderboard Fixes */
.leaderboard ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;                  /* spacing between image & text */
  margin: 14px 0;             /* even spacing between rows */
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); /* subtle highlight */
}

.leaderboard-img-container {
  width: 65px;
  height: 65px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ensures all images fill evenly */
  border-radius: 8px;
}

/* Frames for top 3 */
.gold-frame { border: 3px solid gold; }
.silver-frame { border: 3px solid silver; }
.bronze-frame { border: 3px solid #cd7f32; }

/* Name + votes */
.leaderboard-name {
  font-weight: bold;
  margin: 0;
  font-size: 1rem;
}

.leaderboard li span {
  font-size: 0.85rem;
  color: #ff8c42;
}




/* Ultimate Title Styling */
.ultimate-title {
  background: linear-gradient(90deg, gold, orange);
  color: black;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 8px;
  font-style: italic;
  box-shadow: 0 0 10px gold;
  margin-top: 5px;
  display: inline-block;
}


/* Button sections layout */
.main-modes,
.daily-modes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
}

/* Daily button custom colors */
#dailyWaifuBtn {
  background-color: #ff69b4; /* hot pink */
  color: white;
}

#dailyHusbandoBtn {
  background-color: #87cefa; /* light sky blue */
  color: black;
}
.daily-menu{
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.choice-buttons button:hover,
.gold-frame:hover,
.silver-frame:hover,
.bronze-frame:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}
#dailyWaifuBtn:hover {
  background-color: #e0529c; /* slightly darker hot pink */
}

#dailyHusbandoBtn:hover {
  background-color: #5ca9dd; /* slightly darker sky blue */
}
.homepage-header {
  text-align: center;
  margin-top: 30px;   /* reduced from 50 */
  margin-bottom: 30px;
}

.smash-senpai-title {
  font-size: clamp(28px, 5vw, 48px); /* responsive instead of 90px */
  font-weight: 800;                 /* slightly lighter */
  color: #ff4da6;
  -webkit-text-stroke: 1.5px black; /* thinner stroke */
  text-shadow: 2px 2px 6px rgba(255, 0, 128, 0.6); /* softer glow */
  font-family: 'Pacifico', 'Dancing Script', cursive;
  letter-spacing: 1.5px; /* reduced spacing */
  line-height: 1.2;      /* tighter vertical spacing */
  margin: 10px 0;
}



.mascot {
  text-align: center;
  margin-top: 20px;
}


.mascot-text {
  font-family: 'Dancing Script', cursive;
  font-size: 24px;
  color: #ff66cc;
  text-shadow: 2px 2px 5px black;
  margin-top: 10px;
} 
#about {
  margin-bottom: 60px; /* adds extra spacing before next section */
}
#how-to-play {
  margin-bottom: 100px; /* adds extra spacing before next section */
  
}

/* ✨ Glowing Pill Buttons */
button {
  background: linear-gradient(135deg, #ff4ec9, #ff66b2);
  border: none;
  padding: 14px 32px;
  font-size: 18px;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
}

button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 105, 180, 1);
}

/* 🎀 Floating Smash Senpai Mascot */
.mascot img {
  max-width: 300px;
  width: 80%;
  height: auto;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
/* 🔥 Final body styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;

  /* Combined wallpaper + animated gradient */
  background: 
    linear-gradient(270deg, #1e1e2f, #302b63, #24243e),
    url("images/background1.png") no-repeat center center fixed;
  background-size: 600% 600%, cover;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%, center; }
  50% { background-position: 100% 50%, center; }
  100% { background-position: 0% 50%, center; }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* dark overlay */
  z-index: -1;
}
@media (max-width: 600px) {
  .smash-senpai-title {
    font-size: 50px;
    -webkit-text-stroke: 2px black;
  }
}
/* 🔥 Character Gallery Styles */
#galleryHeader {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  border-bottom: 2px solid #ff4ec9;
}

#galleryHeader h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

#galleryHeader button {
  background: linear-gradient(135deg, #4c4cff, #3737cc);
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

#galleryHeader button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #ff4ec9, #ff66b2);
  box-shadow: 0 0 10px rgba(255,105,180,0.8);
}

#characterGallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}
.gallery-card {
  width: 100px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.gallery-card:hover {
  transform: scale(1.2);
  border-color: #ff4ec9;
  box-shadow: 0 0 18px rgba(255, 78, 201, 0.8);
  cursor: pointer;
  position: relative;  /* 🔥 lifts card above others */
  z-index: 5;          /* ensures hover card is on top */
}


.gallery-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.gallery-card p {
  margin-top: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #f8f8f8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* 📱 Mobile Optimization for Character Gallery */
@media (max-width: 600px) {
  #galleryHeader h2 {
    font-size: 16px;
  }

  #galleryHeader button {
    padding: 6px 12px;
    font-size: 12px;
  }

  .gallery-card {
    width: 80px;
  }

  .gallery-card p {
    font-size: 10px;
  }
}
#galleryHeader h2 {
  margin-right: 15px;
}
#galleryHeader button {
  margin-left: 10px;
}

/* 🔎 Search Bar */
#searchInput {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  margin-left: 10px;
  flex: 1;
  max-width: 250px;
}

/* 🔥 Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #2a2a3f;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(255,105,180,0.8);
  position: relative;
}

.modal-content img {
  width: 100%;
  max-height: 60vh;   /* scale better for mobile */
  object-fit: contain; /* show whole image, no cropping */
  border-radius: 12px;
  margin-bottom: 15px;
}

.modal-content h3 {
  margin: 10px 0;
  font-size: 20px;
}

.modal-content p {
  margin: 5px 0;
  color: #ddd;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

.close-btn:hover {
  color: #ff4ec9;
}
/* 📱 Mobile-friendly modal */
/* 📱 Mobile-friendly modal scale down */
@media (max-width: 600px) {
  .modal-content {
    max-width: 90%;
    max-height: 80vh;
    padding: 12px;
    overflow-y: auto;
    transform: scale(0.95);
  }

  .modal-content img {
    max-height: 50vh;   /* bigger but still safe */
    object-fit: contain; /* keep entire image visible */
  }


  .close-btn {
    top: 8px;
    right: 8px;
    font-size: 24px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 5px 9px;
  }
}

@media (max-width: 768px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}
#user-stats {
  margin: 50px auto;
  max-width: 900px;
  padding: 20px;
  text-align: center;
}

#user-stats h2 {
  margin-bottom: 20px;
  font-size: 26px;
}

.stats-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(0,0,0,0.5);
  border-radius: 14px;
  padding: 15px 20px;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 26px;
}

.stat-card strong {
  font-size: 22px;
  display: block;
}

.stat-card p {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}
/* 🏆 Achievements */
#achievements {
  margin: 60px auto;
  max-width: 1200px;
  padding: 20px;
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.achievement-card {
  background: rgba(0,0,0,0.6);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.achievement-card.unlocked {
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}



.achievement-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.achievement-name {
  font-size: 11px;
  font-weight: bold;
}


.achievement-desc {
  font-size: 11px;
  line-height: 1.2;
}

.achievement-meta {
  font-size: 10px;
}
.achievements-modal {
  max-width: 900px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
}
.achievement-rarity {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.9;
}
.achievement-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
}

/* Extra glow based on rarity (optional but 🔥) */
.achievement-card.legendary:hover {
  box-shadow: 0 0 35px rgba(255, 80, 80, 0.45);
}

.achievement-card.rare:hover {
  box-shadow: 0 0 30px rgba(120, 160, 255, 0.35);
}
.vs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.vs-card {
  width: 220px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.6);
  text-align: center;
  transition: transform 0.2s ease;
}

.vs-card img {
  width: 100%;
  border-radius: 10px;
}

.vs-card:hover {
  transform: scale(1.05);
}

.vs-card button {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #ff69b4;
  border: none;
  color: white;
  cursor: pointer;
}

.vs-text {
  font-size: 24px;
  font-weight: bold;
}

.btn.secondary {
  background: transparent;
  border: 1px solid white;
  margin-top: 20px;
}
.anime-name,
.vs-card span {
  font-size: 0.9rem;
  opacity: 0.75;
  font-style: italic;
  margin-top: 4px;
}


 

  .vs-card {
    width: 90%;
    max-width: 320px;
  }

  .vs-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .vs-text {
    font-size: 20px;
    margin: 10px 0;
  }

  

  h2 {
    text-align: center;
  }

#menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}
#menu button {
  flex: 0 0 auto;      /* 🔥 stop stretching */
  min-width: 140px;
}

@media (max-width: 600px) {
  #menu {
    gap: 10px;
    max-width: 340px;
  }

  #menu button {
    padding: 8px 18px;     /* ⬅ MUCH slimmer */
    font-size: 13.5px;
    border-radius: 999px;
  }

  /* Character Gallery centered */
  #menu button:nth-child(5) {
    padding: 9px 22px;
  }

  /* Daily buttons slightly bigger but NOT full width */
  #menu button:nth-last-child(2),
  #menu button:nth-last-child(1) {
    padding: 10px 26px;
    font-size: 14px;
  }
}
.vs-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
/* 👑 DAILY ULTIMATE BUTTONS */
.daily-btn {
  position: relative;
  font-size: 17px;
  padding: 14px 34px;
  letter-spacing: 0.6px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
  overflow: hidden;
  z-index: 1;
}

/* ✨ Animated glow ring */
.daily-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    gold,
    hotpink,
    violet,
    cyan,
    gold
  );
  background-size: 300% 300%;
  animation: dailyGlow 4s linear infinite;
  z-index: -1;
  filter: blur(6px);
}

/* Inner body */
.daily-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #1e1e2f;
  border-radius: inherit;
  z-index: -1;
}

/* 💖 Waifu Theme */
.daily-btn.waifu {
  color: #ff7ac8;
  box-shadow: 0 0 30px rgba(255, 105, 180, 0.9);
}

/* 💙 Husbando Theme */
.daily-btn.husbando {
  color: #7fd6ff;
  box-shadow: 0 0 30px rgba(120, 200, 255, 0.9);
}

/* Hover = POWER */
.daily-btn:hover {
  transform: scale(1.12);
}

/* 🔄 Glow animation */
@keyframes dailyGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (max-width: 600px) {
  .daily-btn {
    font-size: 14px;
    padding: 11px 22px;
  }
}
/* 🔒 Isolate Ad Layout */






.special-card.voted {
  opacity: 0.6;
  pointer-events: none;
}
.voted-msg {
  color: #7dff9c;
  font-size: 0.85rem;
  margin-top: 6px;
}
/* 🔥 SPECIAL MODE MENU BUTTON */
.menu-special-btn {
  background: linear-gradient(135deg, #ff4da6, #ff7a18);
  color: white;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 77, 166, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* hover glow */
.menu-special-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(255, 77, 166, 0.9);
}

/* subtle shine animation */
.menu-special-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.25);
  transform: rotate(25deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -30%; }
  100% { left: 130%; }
}
/* 💬 Discord Floating Button */
.discord-float {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Stays on right for mobile */
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(88, 101, 242, 0.6);
}

/* 🖥️ PC ONLY: MOVE TO LEFT */
@media (min-width: 1025px) {
  .discord-float {
    right: auto; /* Reset the right position */
    left: 20px;  /* Move to the left side */
  }
}

/* 📱 SMALL MOBILE TWEAKS */
@media (max-width: 600px) {
  .discord-float {
    bottom: 16px;
    right: 16px;
    font-size: 13px;
    padding: 12px 16px;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap; /* Allows the ad to drop to a second line on small phones */
}


/* This forces the text to the center by pushing from the sides */
.text-safe-zone {
    width: 100%;             /* Stays full width like the leaderboard */
    box-sizing: border-box;  /* Ensures padding doesn't break the width */
    padding-left: 20%;       /* Massive gap on the left */
    padding-right: 20%;      /* Massive gap on the right (keeps it away from sidebar ad) */
    text-align: center;
    margin: 20px 0;
}

/* 📱 Mobile: Remove the massive gaps so it looks normal on phones */
@media screen and (max-width: 1024px) {
    .text-safe-zone {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* Squeezes the special mode description text away from the sidebar ads */
.special-mode-text {
    width: 100%;
    box-sizing: border-box;
    padding-left: 20%;
    padding-right: 20%;
    text-align: center;
    margin: 10px 0;
    line-height: 1.6;
}

/* Mobile Fix */
@media screen and (max-width: 1024px) {
    .special-mode-text {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* 🖥️ PC-ONLY ADJUSTMENTS */
@media screen and (min-width: 1025px) {
    /* 1. Push the Gallery away from the ad */
    #characterGallery {
        margin-right: 180px !important;
        width: auto !important; /* Prevents it from forcing full width */
    }

    /* 2. Move the Search/Header area to the left */
    .gallery-header-container, 
    #galleryHeader {
        padding-right: 180px !important;
        box-sizing: border-box !important;
    }

    /* 3. Move the 'Back to Menu' button specifically */
    .back-btn, 
    button[onclick="returnHome()"] {
        margin-right: 20px !important; /* Pulls it slightly away from the ad edge */
    }
}
.special-grid {
  display: flex;
  flex-direction: column; /* Stays 1-by-1 on mobile as requested */
  align-items: center;
  gap: 20px;
  padding: 10px;
}

/* 🖥️ PC OVERRIDE - Centered 2-column layout */
@media screen and (min-width: 1025px) {
  .special-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
    max-width: 900px; /* Increased slightly for better spacing */
    
    /* Center the grid horizontally */
    margin-left: auto !important;
    margin-right: auto !important;
    
    /* Ensure the top images aren't cut by adding top padding */
    padding-top: 20px !important;
    
    /* Space for your right-side ad without shifting the whole grid left */
    padding-right: 200px !important; 
    
    /* Clear any potential floating issues */
    clear: both;
  }

  .special-mode h2 {
    margin-top: 20px; /* Gives your title more space so it doesn't crowd images */
  }

  .special-card {
    width: 100% !important;
    /* Ensure cards don't overflow */
    overflow: hidden; 
  }
}
/* Scroll to Top Button - Left Side Fix */
#scrollTopBtn {
    display: none; 
    position: fixed;
    bottom: 90px; /* Raised it up so it doesn't block buttons below it */
    left: 30px;   /* Moved to the left side */
    z-index: 999;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe); /* Gave it a nice purple glow */
    color: white;
    cursor: pointer;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.2);
}

/* Mobile Adjustments */
@media screen and (max-width: 600px) {
    #scrollTopBtn {
        bottom: 85px; /* Keeps it clear of the Discord button on small screens */
        left: 20px;
        width: 50px;
        height: 50px;
    }
}


.element-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 600;
  color: white;
}

.element-badge.fire { background: #ff4d4d; }
.element-badge.ice { background: #66ccff; }
.element-badge.wind { background: #66ffcc; }
.element-badge.lightning { background: #cc66ff; }
.element-badge.quantum { background: #9966ff; }
.element-badge.imaginary { background: #ffcc66; }
.element-badge.physical { background: #aaaaaa; }
@media (max-width: 768px) {

  header {
    padding: 10px 15px;
  }

  header h1 {
    font-size: 16px;   /* smaller top title */
  }

  .homepage-header {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .smash-senpai-title {
    font-size: 20px;        /* actual small size */
    -webkit-text-stroke: 0.8px black;
    text-shadow: 1px 1px 3px rgba(255, 0, 128, 0.5);
    line-height: 1.15;
    letter-spacing: 0;
    margin: 6px 0;
  }
}
/* 🇰🇷 Korean */
html[lang="ko"] body {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

/* 🇯🇵 Japanese */
html[lang="ja"] body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

/* 🇨🇳 Chinese */
html[lang="zh-CN"] body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* 🇺🇸 English */
html[lang="en"] body {
  font-family: "Poppins", sans-serif;
}
.lang-switcher {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
}

.lang-switcher select {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.lang-switcher select option {
  background: #1b1f3b; /* Match your site theme */
  color: white;
}
@media screen and (max-width: 600px) {
  .menu {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to wrap instead of stacking too high */
    justify-content: center;
    gap: 5px; /* Reduces space between buttons */
    padding: 4px; /* Shrinks the overall container size */
  }

  .menu button {
    font-size: 10px; /* Makes button text smaller */
    padding: 4px 8px; /* Reduces button height and width */
    margin: 3px;
  }
  .ad-header-container {
    margin-bottom: 10px; /* Adds a small gap so it doesn't touch the menu */
  }
}
.leaderboards {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}
#faq {
  max-width: 800px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

#faq h2 {
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

#faq h3 {
  font-size: 14px;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 600;
}

#faq p {
  font-size: 13px;
  margin: 0 0 10px 0;
  opacity: 0.85;
}
/* FAQ Section */
#faq {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 15px;
}

#faq h2 {
  font-size: 20px;
  margin-bottom: 15px;
  text-align: center;
}

#faq details {
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 0;
}

#faq summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "＋";
  float: right;
  font-size: 12px;
  opacity: 0.6;
}

#faq details[open] summary::after {
  content: "－";
}

#faq p {
  font-size: 13px;
  margin-top: 6px;
  opacity: 0.85;
  line-height: 1.5;
}

/* Mobile extra compact */
@media (max-width: 600px) {
  #faq h2 {
    font-size: 18px;
  }

  #faq summary {
    font-size: 13px;
  }

  #faq p {
    font-size: 12px;
  }
}
.battle-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 30px auto;
}

.battle-side {
  width: 45%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.battle-side:hover {
  transform: translateY(-8px);
}

.battle-side.winning {
  box-shadow: 0 0 20px rgba(255, 0, 150, 0.6);
  border-radius: 12px;
  animation: pulseGlow 2s infinite alternate;
}

.battle-img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
}

.vote-btn {
  padding: 10px 30px;
  border-radius: 25px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin: 10px 0;
}

.vote-btn.pink {
  background: linear-gradient(45deg, #ff4fa3, #ff8bd4);
}

.vote-btn.blue {
  background: linear-gradient(45deg, #4f9fff, #89c6ff);
}

.vote-btn:disabled {
  opacity: 0.5;
  filter: grayscale(60%);
  cursor: not-allowed;
  transform: scale(0.95);
}

.tug-center-text {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  color: white;
  pointer-events: none;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 10px rgba(255,0,150,0.4); }
  to   { box-shadow: 0 0 25px rgba(255,0,150,0.9); }
}

.leaderboard-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

#globalBoard ul {
  list-style: none;
  padding: 0;
}

#globalBoard li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* ========================= */
/* 🔥 NEON TUG OF WAR BAR   */
/* ========================= */

.tug-arena {
  position: relative;
  margin: 40px auto;
  width: 100%;
  max-width: 1000px;
  height: 40px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 40px rgba(255,255,255,0.05);
}

.tug-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,46,154,0.08) 0%,
    transparent 50%,
    rgba(46,139,255,0.08) 100%
  );
  pointer-events: none;
}

.tug-fill {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  transition: width 0.8s cubic-bezier(.4,2,.6,1);
}

.tug-a {
  left: 0;
  background: linear-gradient(to right, #ff2e9a, #ff77c8);
  box-shadow: 0 0 20px #ff2e9a;
}

.tug-b {
  right: 0;
  background: linear-gradient(to left, #2e8bff, #77c5ff);
  box-shadow: 0 0 20px #2e8bff;
}

.tug-divider {
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: white;
  box-shadow: 0 0 15px white, 0 0 30px white;
  transform: translateX(-50%);
  transition: left 0.7s cubic-bezier(.22,1,.36,1);
}

.winning-glow {
  box-shadow:
    0 0 25px currentColor,
    0 0 45px currentColor,
    0 0 65px currentColor;
}

body.tournament-mode {
  background: 
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(0,0,0,0.8), transparent 70%),
    linear-gradient(180deg, #0a0f1c 0%, #05070d 100%);
  min-height: 100vh;
  background-attachment: fixed;
  color: white;
}

@keyframes subtlePulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.05); }
  100% { filter: brightness(1); }
}

body.tournament-mode #globalBoard,
body.tournament-mode #aboutSection,
body.tournament-mode #leaderboardSection {
  display: none !important;
}

.bracket-match.completed {
  opacity: 0.7;
}

.bracket-player.winner {
  background: linear-gradient(90deg,#ff4d6d,#ff99ac);
  font-weight: bold;
  color: white;
}

.tug-percent {
  position: absolute;
  top: 8px;
  font-weight: bold;
  color: white;
}

.tug-a .tug-percent { left: 15px; }
.tug-b .tug-percent { right: 15px; }

.tug-total {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.8;
}

.battle-timer {
  text-align: center;
  margin-top: 10px;
  opacity: 0.9;
}

.winner-text {
  text-align: center;
  margin-top: 25px;
  font-size: 22px;
  color: gold;
}

.vote-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  padding: 10px 25px;
  border-radius: 20px;
  box-shadow: 0 0 20px #ff2e9a;
  animation: fadeInOut 1.5s forwards;
  z-index: 1000;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%,20px); }
  20% { opacity: 1; transform: translate(-50%,0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

.vote-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 15px white, 0 0 30px white;
  animation: sparkMove 0.6s ease-out forwards;
}

@keyframes sparkMove {
  0% { transform: translateY(-10px) scale(0.5); opacity: 1; }
  100% { transform: translateY(-30px) scale(1.2); opacity: 0; }
}

.winner-wrapper {
  text-align: center;
  animation: winnerReveal 0.8s ease forwards;
}

.winner-img {
  width: 250px;
  border-radius: 20px;
  animation: winnerZoom 0.8s ease forwards;
}

@keyframes winnerZoom {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.winner-name {
  font-size: 28px;
  margin-top: 15px;
  animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
  from { text-shadow: 0 0 10px gold; }
  to { text-shadow: 0 0 25px gold, 0 0 40px gold; }
}

.tournament-bottom-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.history-wrapper {
  text-align: center;
}

.history-card {
  background: rgba(0,0,0,0.6);
  padding: 15px;
  margin: 12px auto;
  max-width: 500px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.history-battle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.history-side {
  text-align: center;
}

.history-img {
  width: 80px;
  border-radius: 10px;
}

.history-vs {
  font-weight: bold;
  font-size: 18px;
}

.history-winner {
  margin-top: 10px;
  color: gold;
  font-weight: bold;
}

.history-round {
  opacity: 0.7;
  font-size: 14px;
}

@media (max-width: 768px) {
  .tournament-bottom-buttons .btn {
    padding: 10px 18px;
    font-size: 14px;
    width: auto;
    min-width: 140px;
  }
}
.floating-games {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}
#moreGamesBtn {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  animation: floatPulse 2s infinite;
  transition: 0.3s ease;
}

#moreGamesBtn:hover {
  transform: scale(1.1);
}

/* Dropdown */
.games-dropdown {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.games-dropdown a {
  background: #111;
  color: white;
  padding: 10px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: 0.3s ease;
}

.games-dropdown a:hover {
  transform: scale(1.05);
}

/* Pulse Animation */
@keyframes floatPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* 📱 Mobile Adjustments */
@media (max-width: 700px) {

  .floating-games {
    right: auto;
    left: 12px;
    bottom: 18px;
  }

  #moreGamesBtn {
    padding: 7px 10px;      /* smaller padding */
    font-size: 12px;        /* smaller text */
    border-radius: 18px;    /* less pill-like */
    white-space: nowrap;    /* prevent weird wrapping */
  }

  .games-dropdown a {
    font-size: 12px;
    padding: 7px 10px;
  }
}
header h1 .mobile-break {
  display: inline;
}

/* Mobile = break into new line */
@media (max-width: 768px) {

  header h1 .mobile-break {
    display: block;
  }

  header h1 {
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
  }

}
#anime-ranking{
  max-width:800px;
  margin:50px auto;
  padding:25px 20px;
  font-size:14px;
  line-height:1.6;
  opacity:0.9;
  border-top:1px solid #222;
}

#anime-ranking h2{
  text-align:center;
  margin-bottom:15px;
  font-size:20px;
}

#anime-ranking p{
  margin-bottom:12px;
}

.ranking-keywords{
  font-size:12px;
  color:#aaa;
  text-align:center;

}