body, .rules-group, .rule-section, .group-header, .back-btn {
  font-family: var(--minecraft-font, 'Poppins', sans-serif);
}

.rules-banner {
  display: block;
  margin: 80px auto 50px;
  width: 90%;
  max-width: 850px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rules-banner:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.rules-group {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 14px;
  padding: 25px 30px;
  margin: 35px auto;
  max-width: 850px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rules-group:hover {
  transform: scale(1.01);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.rules-group.danger {
  border-color: rgba(255, 150, 150, 0.4);
  box-shadow: 0 0 20px rgba(255, 150, 150, 0.2);
}

.group-header {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(0, 255, 255, 0.12);
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  margin-bottom: 18px;
  border-left: 4px solid rgba(0, 255, 255, 0.6);
}

.rules-group.danger .group-header {
  background: rgba(255, 150, 150, 0.12);
  color: #ff9999;
  text-shadow: 0 0 10px #ff9999;
  border-left: 4px solid rgba(255, 150, 150, 0.6);
}

.rule-section {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #fff;
  text-align: left;
}

.rule-section ol {
  counter-reset: main-counter;
  list-style: none;
  padding-left: 0;
}

.rule-section ol > li {
  counter-increment: main-counter;
  margin-bottom: 14px;
  font-weight: 600;
  color: #00ffff;
}

.rules-group.danger .rule-section ol > li {
  color: #ff9999;
}

.rule-section ol > li::before {
  content: counter(main-counter) ". ";
  font-weight: bold;
}

.rule-section ol li ul {
  list-style: none;
  padding-left: 28px;
  margin-top: 6px;
}

.rule-section ol li ul li {
  position: relative;
  color: #ccc;
  margin-bottom: 6px;
  font-weight: 400;
  line-height: 1.7;
}

.rule-section ol li ul li::before {
  content: "•";
  position: absolute;
  left: -14px;
  color: #00ffff;
}

.rules-group.danger .rule-section ol li ul li::before {
  color: #ff9999;
}

#snow-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* không chặn click vào nội dung */
  z-index: 9999;
}
