/* === Rules Section === */
.rules-section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  background: linear-gradient(to bottom, #0f0f0f, #1a1a1a);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.15);
  animation: fadeInGlow 1.5s ease-in-out;
}

.rules-section h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: #facc15;
  text-shadow: 0 0 15px #facc15, 0 0 25px #f59e0b;
  text-transform: uppercase;
  animation: glowPulse 2s infinite;
}

/* === Toggle Buttons === */
.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.rule-tab {
  background: linear-gradient(45deg, #facc15, #f59e0b);
  color: #1f1f1f;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(250, 204, 21, 0.3);
  font-size: 1.05rem;
}

.rule-tab:hover {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  transform: scale(1.07);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.rule-tab.active {
  background: linear-gradient(45deg, #f59e0b, #eab308);
  color: white;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

/* === Rule Content === */
.rule-content {
  display: none;
  animation: fadeSlide 0.8s ease-in-out forwards;
}

.rule-content.show {
  display: block;
}

/* === Rule Boxes === */
.rule-box {
  background: radial-gradient(circle at top left, #1a1a1a, #111);
  border-left: 6px solid #facc15;
  border-radius: 14px;
  padding: 1.8rem;
  margin: 1.5rem auto;
  max-width: 800px;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.3);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(2px);
}

.rule-box:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.rule-box h3 {
  color: #f59e0b;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px #000;
}

.rule-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.rule-box li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: #eaeaea;
}

.rule-box li::before {
  content: "■ ";
  color: #facc15;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* === Footer === */
.rule-footer {
  text-align: center;
  font-style: italic;
  color: #ccc;
  margin-top: 2rem;
  font-size: 0.95rem;
  padding: 1rem;
  border-top: 1px solid #333;
  animation: fadeIn 2s ease-in-out;
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 10px #facc15, 0 0 20px #f59e0b; }
  50% { text-shadow: 0 0 20px #facc15, 0 0 30px #f59e0b; }
  100% { text-shadow: 0 0 10px #facc15, 0 0 20px #f59e0b; }
}

@keyframes fadeInGlow {
  from { opacity: 0; box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  to { opacity: 1; box-shadow: 0 0 25px rgba(255, 204, 0, 0.15); }
}

/* === Responsive === */
@media (max-width: 768px) {
  .rules-section h2 {
    font-size: 2.2rem;
  }

  .rule-box h3 {
    font-size: 1.5rem;
  }

  .rule-tab {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .rule-footer {
    font-size: 0.85rem;
  }
}
