.rules-wrap { display: flex; justify-content: center; padding: 40px 0 20px; }

.rules-page {
  width: 100%;
  max-width: 900px;
  min-height: calc(100vh - 72px);
  padding: 0;
  box-sizing: border-box;
  color: #e5e5ea;
  font-family: ProximaAlt, MainFont, sans-serif;
}

.rules-toc {
  max-width: 900px; margin: 0 auto; padding: 13px 14px;
  box-sizing: border-box;
  background: #202022; border: 2px solid #242428;
  box-shadow: inset 0 3px 0 #ffffff33, inset 0 -3px 0 #00000055;
}
.rules-toc-head {
  margin-bottom: 9px; color: #a6a6ad;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1px;
}
.rules-toc-link {
  display: flex; align-items: center; gap: 13px;
  padding: 10px 12px; margin-bottom: 7px;
  background: #1b1b1d; border: 2px solid #242428;
  box-shadow: inset 0 2px 0 #ffffff26, inset 0 -2px 0 #00000055;
  color: #e5e5ea; text-decoration: none;
  transition: background .15s cubic-bezier(.4,0,.2,1), border-color .15s cubic-bezier(.4,0,.2,1);
}
.rules-toc-link:last-child { margin-bottom: 0; }
.rules-toc-link:hover { background: #262423; border-color: #2b2b2b; color: #fff; }
.rules-toc-num {
  flex: 0 0 36px; width: 36px; height: 36px;
  display: grid; place-items: center;
  background: #202022; border: 2px solid #242428;
  box-shadow: inset 0 3px 0 #ffffff33, inset 0 -3px 0 #00000055;
  color: #a78bfa; font-family: var(--font); font-size: 16px; font-weight: 550;
}
.rules-toc-name { color: #fff; font-family: var(--font); font-size: 14.5px; font-weight: 550; }
.rules-toc-arrow { margin-left: auto; color: #a78bfa; font-size: 22px; line-height: 1; }

.rules-section { max-width: 900px; margin: 30px auto 0; }
.rules-section-head {
  display: flex; align-items: center; gap: 13px;
  margin-bottom: 13px;
}
.rules-section-num {
  flex: 0 0 42px; width: 42px; height: 42px;
  display: grid; place-items: center;
  background: #202022; border: 2px solid #242428;
  box-shadow: inset 0 3px 0 #ffffff33, inset 0 -3px 0 #00000055;
  color: #a78bfa; font-family: var(--font); font-size: 18px; font-weight: 550;
}
.rules-section-title {
  margin: 0; color: #fff;
  font-family: var(--font); font-size: 17.5px; font-weight: 550; letter-spacing: .3px;
}

.rules-item {
  margin-bottom: 8px; padding: 11px 14px;
  box-sizing: border-box;
  background: #202022; border: 2px solid #242428;
  box-shadow: inset 0 2px 0 #ffffff26, inset 0 -2px 0 #00000055;
}
.rules-item:last-child { margin-bottom: 0; }
.rules-item-title { color: #fff; font-size: 14px; font-weight: 550; }
.rules-item-text { margin: 6px 0 0; color: #bcbcc2; font-size: 13px; font-weight: 450; line-height: 1.45; }
.rules-item-note {
  margin-top: 8px; padding: 8px 12px;
  border-left: 3px solid #a78bfa; background: #1b1b1d;
  color: #a6a6ad; font-size: 12px; line-height: 1.45;
}
.rules-item-penalties {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-top: 9px;
}
.rules-penalties-label { color: #a6a6ad; font-size: 11.5px; font-weight: 550; letter-spacing: .5px; }
.rules-penalty {
  display: inline-flex; align-items: center;
  min-height: 27px; padding: 4px 12px;
  background: #141416; border: 2px solid #262423;
  box-shadow: inset 0 -3px 0 #0c0c0d, inset 0 3px 0 #1f1f22;
  color: #e5e5ea; font-size: 10.5px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase;
  font-family: "ProximaAlt", var(--font);
  user-select: none;
}

.rules-footnotes { max-width: 900px; margin: 30px auto 0; }
.rules-note {
  margin-bottom: 8px; padding: 11px 14px;
  background: #202022; border: 2px solid #242428;
  box-shadow: inset 0 2px 0 #ffffff26, inset 0 -2px 0 #00000055;
  color: #bcbcc2; font-size: 13px; line-height: 1.45;
}
.rules-note b { color: #fff; font-weight: 550; }
.rules-links { display: flex; gap: 10px; margin-top: 13px; flex-wrap: wrap; }
.rules-link {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 0 15px;
  background: #202022; border: 2px solid #242428;
  box-shadow: inset 0 3px 0 #ffffff33, inset 0 -3px 0 #00000055;
  color: #e5e5ea; font-size: 13px; text-decoration: none;
  transition: background .2s cubic-bezier(.4,0,.2,1);
}
.rules-link:hover { background: #262629; color: #fff; }

@media (max-width: 900px) {
  .rules-wrap { padding: 24px 0 10px; }
  .rules-title { font-size: 26px; }
}
@media (max-width: 640px) {
  .rules-toc-link { gap: 10px; padding: 9px 10px; }
  .rules-toc-num { flex-basis: 32px; width: 32px; height: 32px; font-size: 15px; }
  .rules-section-head { align-items: flex-start; }
  .rules-section-num { flex-basis: 38px; width: 38px; height: 38px; font-size: 16px; }
  .rules-item { padding: 10px 12px; }
}

.nav-more-btn-active{color:var(--accent)}
.nav-more-btn-active{color:var(--accent)!important}
.nav-more-btn-active .account-icon-small,.nav-more-btn-active span.account-icon-small{background-color:var(--accent)!important}
