.rules-page .bg,
.rules-page .bg-overlay { position: fixed; }

.rules-hero {
    width: min(1080px, calc(100% - 64px));
    margin: 0 auto;
    padding: 80px 0 22px;
}
.rules-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); }
.rules-hero h1 span { color: var(--accent); }
.rules-hero p { max-width: 760px; color: var(--muted); line-height: 1.75; }

.rules-wrap {
    width: min(1080px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    gap: 16px;
}
.rule-section {
    padding: 28px 30px;
    border-radius: 17px;
    border: 1px solid var(--border);
    background: rgba(8, 13, 10, .82);
    box-shadow: 0 18px 60px rgba(0,0,0,.15);
}
.rule-section h2 { margin: 0 0 14px; color: var(--accent); font-size: 20px; }
.rule-section ol { margin: 0; padding-left: 22px; color: #c1cac4; }
.rule-section li { margin: 9px 0; line-height: 1.7; }
.rules-note { color: #8e9992; font-size: 12px; margin: 18px 0 0; }

@media (max-width: 820px) {
    .rules-hero, .rules-wrap { width: min(100% - 36px, 1080px); }
    .rules-hero { padding-top: 55px; }
}

/* SpillMC official logo */
.brand-logo {
    width: 68px;
    height: 40px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
    box-shadow: 0 0 24px rgba(154, 50, 255, .24);
}
.footer-logo .brand-logo {
    width: 74px;
    height: 44px;
}


/* SpillMC v9 — navbar/footer brand icon: real SpillMC logo, never the letter S */
.brand-mark.brand-mark-logo {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  flex: 0 0 48px !important;
  display: inline-block !important;
  padding: 0 !important;
  border-radius: 12px !important;
  background-image: url('../img/brand-icon.png?v=9') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 0 24px rgba(3, 231, 117, .20) !important;
}
