/* v0.818: full-row Wiki hover with centered text, plus a tighter, site-matched rules page. */
body > .wiki-nav-dropdown-v0602.wiki-nav-dropdown-v0603--floating .wiki-nav-group-v0602 a {
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 12px !important;
  text-align: center !important;
  border-radius: 9px !important;
  transform: none !important;
}

body > .wiki-nav-dropdown-v0602.wiki-nav-dropdown-v0603--floating .wiki-nav-group-v0602 a:hover,
body > .wiki-nav-dropdown-v0602.wiki-nav-dropdown-v0603--floating .wiki-nav-group-v0602 a:focus-visible {
  transform: translateY(-1px) !important;
  background: linear-gradient(100deg, rgba(112, 92, 246, .12), rgba(34, 199, 199, .07)) !important;
  border-color: rgba(132, 151, 220, .16) !important;
  outline: none;
}

html body .rules-page-shell {
  padding: 30px 0 64px;
}

html body .rules-page-shell .support-page-shell__container {
  width: min(1100px, calc(100% - 32px)) !important;
  max-width: 1100px !important;
  margin-inline: auto !important;
}

html body .rules-page-shell .rules-page-panel {
  display: grid !important;
  gap: 20px !important;
  padding: clamp(20px, 3.2vw, 36px) !important;
  border: 1px solid rgba(137, 153, 213, .17) !important;
  border-radius: 25px !important;
  background:
    radial-gradient(ellipse at 96% 0%, rgba(38, 148, 166, .10), transparent 32%),
    radial-gradient(ellipse at 0% 0%, rgba(105, 79, 198, .16), transparent 38%),
    linear-gradient(150deg, rgba(18, 23, 39, .98), rgba(9, 13, 24, .99)) !important;
  box-shadow: 0 20px 54px rgba(2, 5, 16, .24) !important;
}

html body .rules-page-shell .rules-page-head {
  gap: 12px !important;
  padding: 2px 0 8px;
}

html body .rules-page-shell .rules-page-kicker {
  display: inline-flex !important;
  justify-self: start !important;
  align-self: start !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 29px;
  padding: 6px 11px !important;
  border: 1px solid rgba(138, 124, 233, .22) !important;
  border-radius: 999px !important;
  background: linear-gradient(100deg, rgba(98, 82, 190, .21), rgba(48, 123, 145, .13)) !important;
  color: #c9c9ec !important;
  font-size: .68rem !important;
  font-weight: 750 !important;
  letter-spacing: .075em !important;
  line-height: 1.2;
}

html body .rules-page-shell .rules-page-head h1 {
  margin: 0 !important;
  color: #f2f4fc;
  font-size: clamp(1.9rem, 3.1vw, 2.55rem) !important;
  font-weight: 760;
  line-height: 1.12 !important;
  letter-spacing: -.04em;
}

html body .rules-page-shell .rules-page-head p {
  max-width: 74ch;
  margin: 0 !important;
  color: #aeb8cb !important;
  font-size: .95rem;
  line-height: 1.68 !important;
}

html body .rules-page-shell .rules-category-list {
  gap: 14px !important;
}

html body .rules-page-shell .rules-category-card {
  gap: 13px !important;
  padding: clamp(17px, 2.2vw, 24px) !important;
  border: 1px solid rgba(135, 151, 201, .14) !important;
  border-radius: 19px !important;
  background: linear-gradient(145deg, rgba(25, 31, 49, .82), rgba(13, 18, 31, .86)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

html body .rules-page-shell .rules-category-card h2 {
  margin: 0 !important;
  color: #edf0fa;
  font-size: clamp(1.15rem, 1.8vw, 1.48rem) !important;
  font-weight: 730;
  line-height: 1.35 !important;
  letter-spacing: -.025em;
}

html body .rules-page-shell .rules-category-desc,
html body .rules-page-shell .rules-rule-body,
html body .rules-page-shell .rules-subrule-body {
  max-width: 78ch;
  margin: 0 !important;
  color: #b2bdcf !important;
  font-size: .92rem;
  font-weight: 450;
  line-height: 1.72 !important;
}

html body .rules-page-shell .rules-rule-list {
  gap: 11px !important;
}

html body .rules-page-shell .rules-rule-item {
  gap: 5px !important;
  padding: 12px 0 0;
  border-top: 1px solid rgba(142, 157, 196, .11);
}

html body .rules-page-shell .rules-rule-title {
  color: #e7ebf6;
  font-size: .97rem !important;
  font-weight: 720 !important;
  line-height: 1.5 !important;
}

html body .rules-page-shell .rules-subrule-list {
  gap: 10px !important;
  margin-top: 3px;
  padding-left: 15px !important;
  border-left: 1px solid rgba(128, 112, 225, .3);
}

html body .rules-page-shell .rules-subrule-item {
  gap: 4px !important;
}

html body .rules-page-shell .rules-subrule-title {
  color: #d8dfef;
  font-size: .9rem;
  font-weight: 680;
  line-height: 1.55 !important;
}

@media (max-width: 640px) {
  html body .rules-page-shell {
    padding: 18px 0 44px;
  }

  html body .rules-page-shell .support-page-shell__container {
    width: calc(100% - 24px) !important;
  }

  html body .rules-page-shell .rules-page-panel {
    gap: 16px !important;
    padding: 17px !important;
    border-radius: 20px !important;
  }

  html body .rules-page-shell .rules-category-card {
    padding: 16px !important;
  }
}
