/* RushMU UI - page layouts. One section per page / feature. */

/* ================================================================== all pages: stage bar + Hall of Legends */
body.rm .content-stage-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 14px;
  padding: 8px 14px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-gold);
  font: 600 13px/1 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

body.rm .content-stage-bar__icon {
  display: none;
}

body.rm .content-stage-bar__stage {
  font-size: 17px;
  color: var(--rm-cream);
  letter-spacing: 0.08em;
}

body.rm .content-stage-bar__range,
body.rm .content-stage-bar__meta {
  font: 400 12.5px var(--rm-mono);
  letter-spacing: 0;
  color: var(--rm-tx-2);
  text-transform: none;
}

body.rm #hall-of-fame.big-panel {
  margin-bottom: 20px;
}

body.rm #hall-of-fame .big-panel-header {
  display: block;
  padding: 0;
  min-height: 0;
  background: var(--rm-bg-1);
}

body.rm #hall-of-fame .big-panel-header::before {
  display: none;
}

body.rm .hof-header-row {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rm-line-2);
  margin: 0;
}

body.rm .hof-title-right {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
}

body.rm .hof-title-right h2 {
  font: 700 24px/1 var(--rm-head);
  letter-spacing: 0.1em;
  color: var(--rm-cream);
  margin: 0;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
  animation: none;
}

body.rm .hof-title-right h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--rm-gold);
  margin-right: 12px;
  vertical-align: 3px;
}

body.rm .title-subtitle {
  font: 500 11px var(--rm-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

body.rm .hof-date-selector {
  display: flex;
  gap: 8px;
}

body.rm .hof-date-selector .select {
  padding: 6px 28px 6px 10px;
  font-size: 12.5px;
}

body.rm .champions-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--rm-line);
  margin: 0;
  padding: 0;
}

body.rm .hofwiners {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-content: center;
  align-items: center;
  background: var(--rm-bg-1);
  padding: 12px 18px;
  margin: 0;
  border: 0;
  min-height: 0;
  width: auto;
  text-align: left;
  transition: background 0.12s;
}

body.rm .hofwiners:hover {
  background: var(--rm-bg-2);
  transform: none;
  box-shadow: none;
}

body.rm .hofwiners img {
  grid-row: 1 / span 2;
  width: 35px;
  height: 40px;
  border: 1px solid var(--rm-line-3);
  margin: 0;
}

body.rm .hof-name {
  font: 600 18px/1.1 var(--rm-head);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0;
}

body.rm .hof-name a {
  color: var(--rm-cream);
}

body.rm .hof-wins {
  font: 400 12px var(--rm-mono);
  color: var(--rm-tx-3);
  margin: 2px 0 0;
}

body.rm .hofwiners:not(.nobody) .hof-wins {
  color: var(--rm-gold);
}

body.rm .hofwiners.nobody {
  opacity: 0.5;
}

@media (max-width: 760px) {
  body.rm .champions-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ================================================================== home */
.rm-home {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  grid-template-areas:
    'lead   slider'
    'lead   race'
    'news   news';
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  align-items: start;
}

.rm-home > .panel {
  margin: 0 !important;
}

.rm-home .home-new-server {
  grid-area: lead;
}

.rm-home .home-feature-slider {
  grid-area: slider;
}

.rm-home .home-reset-race-notice {
  grid-area: race;
}

.rm-home .home-news {
  grid-area: news;
}

@media (max-width: 1200px) {
  .rm-home {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'lead'
      'slider'
      'race'
      'news';
  }
}

/* ---- new server promo */
.home-new-server__tagline {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--rm-tx);
}

.home-new-server__tagline strong {
  color: var(--rm-gold);
  font-weight: 500;
}

/* the four stages as one ruled strip */
.home-new-server__stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rm-line-2);
  border: 1px solid var(--rm-line-2);
  margin: 0 0 12px;
}

.home-new-server__stage {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--rm-bg-1);
  border: 0;
  text-align: left;
}

.home-new-server__stage:first-child {
  background: var(--rm-gold-wash);
}

.home-new-server__stage-num {
  font: 600 12px/1 var(--rm-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.home-new-server__stage:first-child .home-new-server__stage-num {
  color: var(--rm-gold);
}

.home-new-server__stage-rr {
  font: 500 17px/1.1 var(--rm-mono);
  color: var(--rm-tx);
}

.home-new-server__stages-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 10px 14px;
  background: var(--rm-gold-wash);
  border: 1px solid var(--rm-gold-3);
  border-left: 3px solid var(--rm-gold);
  color: var(--rm-tx);
  font-size: 13.5px;
}

.home-new-server__stages-note i {
  color: var(--rm-gold);
  margin-top: 3px;
}

.home-new-server__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rm-line);
  border: 1px solid var(--rm-line);
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.home-new-server__grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  background: var(--rm-bg-1);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--rm-tx-2);
  border: 0;
}

.home-new-server__grid li i {
  flex: none;
  width: 16px;
  margin-top: 3px;
  text-align: center;
  color: var(--rm-gold-2);
  font-size: 13px;
}

.home-new-server__grid li strong {
  color: var(--rm-cream);
  font-weight: 500;
}

/* countdown */
.restart-countdown-section {
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  padding: 14px 16px;
  margin: 0;
}

.restart-countdown-section .countdown-header {
  font: 600 12px/1 var(--rm-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
  margin-bottom: 10px;
  text-align: left;
}

.restart-countdown-section .countdown-header i,
.restart-countdown-section .countdown-status i {
  display: none;
}

.restart-countdown-section .countdown-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.restart-countdown-section .countdown-status {
  font: 500 13px var(--rm-font);
  color: var(--rm-tx-2);
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.restart-countdown-section .countdown-display {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-left: auto;
}

.restart-countdown-section .time-unit {
  min-width: 70px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--rm-line-3);
  margin-left: -1px;
  background: var(--rm-bg-1);
}

.restart-countdown-section .time-value {
  font: 500 32px/1 var(--rm-mono);
  color: var(--rm-gold);
}

.restart-countdown-section .time-label {
  font: 600 10px/1 var(--rm-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.restart-countdown-section .time-separator {
  display: none;
}

/* ---- slider chrome (the slide mechanics stay in the legacy stylesheet + home-slider.js) */
.home-feature-slider .panel-content {
  padding: 0;
}

.home-feature-slider__frame,
.home-feature-slider__root,
.home-feature-slider__stage,
.home-feature-slider__viewport {
  border: 0;
  background: none;
  box-shadow: none;
}

.home-feature-slider__nav {
  background: rgba(12, 12, 14, 0.85);
  border: 1px solid var(--rm-line-3);
  color: var(--rm-tx);
  width: 34px;
  height: 34px;
}

.home-feature-slider__nav:hover {
  border-color: var(--rm-gold);
  color: var(--rm-gold);
}

.home-feature-slider__dots {
  gap: 4px;
  padding: 10px 0 12px;
  justify-content: center;
}

.home-feature-slider__dot {
  width: 22px;
  height: 4px;
  background: var(--rm-line-3);
  border: 0;
  padding: 0;
}

.home-feature-slider__dot.is-active,
.home-feature-slider__dot[aria-selected='true'] {
  background: var(--rm-gold);
}

/* ---- reset race card */
.home-reset-race-notice {
  background: var(--rm-bg-1);
}

.home-info-card {
  background: none;
  border: 0;
  box-shadow: none;
}

.home-info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.home-info-card-badge {
  font: 600 11px/1 var(--rm-head);
  letter-spacing: 0.16em;
  padding: 4px 8px;
  background: var(--rm-gold);
  color: #0e0f14;
}

.home-info-card-title {
  margin: 0;
  font-size: 19px;
}

.home-info-card-title i {
  display: none;
}

.home-info-card-body {
  color: var(--rm-tx-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.home-info-card-body strong {
  color: var(--rm-gold);
  font-weight: 500;
}

.home-info-card-tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--rm-line-3);
  font: 500 12px var(--rm-mono);
  color: var(--rm-cream);
}

.home-info-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rm-line-2);
  display: flex;
  gap: 8px;
  font: 600 14px var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- news */
.news-card {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rm-line-2);
  padding: 0 0 20px;
  margin: 0 0 20px;
  box-shadow: none;
}

.news-card:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.news-card-header {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 6px;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font: 400 12px var(--rm-mono);
  color: var(--rm-tx-3);
}

.news-card-meta i {
  margin-right: 6px;
  color: var(--rm-tx-3);
}

.news-card-title {
  font: 700 26px/1.12 var(--rm-head);
  letter-spacing: 0.04em;
  margin: 4px 0 10px;
  text-align: left;
}

.news-card-content,
.news-content-html {
  color: var(--rm-tx);
  font-size: 14px;
  line-height: 1.65;
}

.rm-new-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 7px;
  background: var(--rm-red);
  color: #170604;
  font: 600 11px/1.5 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .home-new-server__stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-new-server__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .restart-countdown-section .countdown-display {
    margin-left: 0;
  }
}

/* ---- home: legacy decorations switched off */
.home-new-server__grid li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.restart-countdown-section,
.home-info-card-header,
.home-info-card-body,
.home-info-card-footer {
  background-image: none;
  box-shadow: none;
}

.restart-countdown-section::before,
.restart-countdown-section::after,
.home-info-card::before,
.home-info-card::after {
  display: none;
}

.home-info-card-header {
  background: none;
  border: 0;
  padding: 0;
}

.home-info-card-body {
  background: none;
  padding: 0;
}

.home-info-card-footer {
  background: none;
  padding: 12px 0 0;
}

.restart-countdown-section {
  border-top: 1px solid var(--rm-line-2);
}

/* ================================================================== rankings */
.rm-race-tag {
  color: var(--rm-gold);
}

.rm-race-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--rm-gold);
  vertical-align: 2px;
}

/* ================================================================== forms that should not stretch over the whole screen */
.rm-narrow {
  max-width: 820px;
}

/* ================================================================== rules */
body.rm .rules-container {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 20px;
  align-items: start;
}

body.rm .rule-category {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  padding: 0;
  margin: 0;
}

body.rm .rule-category-title {
  margin: 0;
  padding: 11px 16px;
  background: var(--rm-bg-2);
  border-bottom: 1px solid var(--rm-line-2);
  font: 600 17px/1.1 var(--rm-head);
  letter-spacing: 0.1em;
  text-align: left;
  color: var(--rm-cream);
}

body.rm .rule-category-title::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--rm-gold);
  margin-right: 10px;
  vertical-align: 2px;
}

body.rm .rules-list {
  list-style: none;
  margin: 0;
  padding: 4px 16px 8px;
}

body.rm .rules-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  border: 0;
  border-bottom: 1px solid var(--rm-line);
  font-weight: 500;
  color: var(--rm-tx);
  background: none;
}

body.rm .rules-list li:last-child {
  border-bottom: 0;
}

body.rm .rules-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--rm-gold-2);
}

body.rm .rules-list li small {
  display: block;
  margin-top: 3px;
  font-weight: 400;
  color: var(--rm-tx-2);
}

/* ================================================================== downloads */
body.rm .platform-download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--rm-bg-2);
  background-image: none;
  border: 1px solid var(--rm-line-3);
  border-left: 3px solid var(--rm-gold);
  color: var(--rm-tx);
  box-shadow: none;
  transform: none;
}

body.rm .platform-download-btn::before {
  display: none;
}

body.rm .platform-download-btn:hover,
body.rm .platform-download-btn:focus-visible {
  background: var(--rm-bg-3);
  border-color: var(--rm-gold-2);
  border-left-color: var(--rm-gold);
  transform: none;
}

body.rm .platform-download-btn__icon {
  font-size: 30px;
  color: var(--rm-gold);
}

body.rm .platform-download-btn__eyebrow {
  display: block;
  font: 600 11px/1 var(--rm-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

body.rm .platform-download-btn__title {
  display: block;
  font: 700 26px/1.1 var(--rm-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

body.rm .platform-download-btn__meta {
  display: block;
  font: 400 12px var(--rm-mono);
  color: var(--rm-tx-2);
}

body.rm .platform-download-btn__action {
  margin-left: auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rm-line-3);
  background: none;
  color: var(--rm-tx-2);
}

body.rm .platform-download-btn:hover .platform-download-btn__action {
  border-color: var(--rm-gold);
  color: var(--rm-gold);
}

/* ================================================================== Hall of Legends: one slim row
   title | five champions | filters, all on one line */
body.rm #hall-of-fame .hallofFameTable {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 150px;
  gap: 0;
  align-items: stretch;
}

body.rm #hall-of-fame .hof-header-row {
  display: contents;
}

body.rm #hall-of-fame .hof-title-right {
  grid-column: 1;
  grid-row: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  border-right: 1px solid var(--rm-line-2);
}

body.rm #hall-of-fame .hof-title-right h2 {
  font-size: 20px;
}

body.rm #hall-of-fame .champions-row {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

body.rm #hall-of-fame .hof-date-selector {
  grid-column: 3;
  grid-row: 1;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-left: 1px solid var(--rm-line-2);
}

body.rm #hall-of-fame .hof-date-selector .select {
  width: 100%;
}

body.rm #hall-of-fame .hofwiners {
  padding: 8px 14px;
}

@media (max-width: 1100px) {
  body.rm #hall-of-fame .hallofFameTable {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  body.rm #hall-of-fame .hof-title-right {
    grid-column: 1;
    grid-row: 1;
    border-right: 0;
  }

  body.rm #hall-of-fame .hof-date-selector {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    border-left: 0;
  }

  body.rm #hall-of-fame .champions-row {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--rm-line-2);
  }
}

/* ================================================================== no decorative images: flat colours instead
   (item icons stay: they are the data) */
body.rm .ul-arrow li,
body.rm .news-card-content .news-bullet-list li,
body.rm .text-td1-arrow tr td:nth-child(1),
body.rm .text-td2-warning tr td:nth-child(2) {
  background-image: none;
}

body.rm .ul-arrow li,
body.rm .news-card-content .news-bullet-list li {
  position: relative;
  padding-left: 18px;
}

body.rm .ul-arrow li::before,
body.rm .news-card-content .news-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--rm-gold-2);
}

/* warehouse grids and the character inventory keep their in-game images (slot backgrounds, window art) */


/* ================================================================== market */
.rm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rm-chipbox {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: url('/assets/pointer.cur'), pointer;
}

.rm-chipbox input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: url('/assets/pointer.cur'), pointer;
  margin: 0;
}

.rm-chipbox span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rm-line-3);
  background: var(--rm-bg);
  font: 600 13px/1 var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-tx-2);
}

.rm-chipbox:hover span {
  border-color: var(--rm-gold-2);
  color: var(--rm-tx);
}

.rm-chipbox input:checked + span {
  background: var(--rm-gold);
  border-color: var(--rm-gold);
  color: #0e0f14;
}

.rm-chipbox input:focus-visible + span {
  outline: 2px solid var(--rm-gold);
  outline-offset: 2px;
}

.rm-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  margin: 0 0 18px;
}

.rm-filter-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rm-filter-col {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 0;
}

.rm-filter-col .form-label {
  margin-top: 6px;
}

.rm-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rm-filter-actions {
  display: flex;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--rm-line-2);
}

.rm-empty {
  padding: 48px 24px;
  border: 1px dashed var(--rm-line-3);
  background: var(--rm-bg-1);
  text-align: center;
}

.rm-empty__title {
  font: 700 24px/1.1 var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-cream);
  margin-bottom: 8px;
}

.rm-empty__text {
  max-width: 520px;
  margin: 0 auto 18px;
  color: var(--rm-tx-2);
}

@media (max-width: 900px) {
  .rm-filter-grid,
  .rm-filter-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* readable width for data tables on very wide screens */
body.rm .table-responsive {
  max-width: 1360px;
}

/* ================================================================== information: sections as a side list, content beside it */
.rm-docs {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rm-docs > .page-pills {
  position: sticky;
  top: calc(var(--rm-bar-h) + 16px);
  display: block;
  margin: 0;
  max-height: calc(100vh - var(--rm-bar-h) - 32px);
  overflow: auto;
}

.rm-docs > .page-pills .nav-pills {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  border-bottom: 0;
  border-left: 1px solid var(--rm-line-2);
}

.rm-docs > .page-pills .nav-pills .nav-link {
  padding: 10px 14px;
  margin: 0 0 0 -1px;
  border-bottom: 0;
  border-left: 2px solid transparent;
  text-align: left;
  font-size: 15px;
}

.rm-docs > .page-pills .nav-pills .nav-link:hover {
  border-left-color: var(--rm-line-3);
}

.rm-docs > .page-pills .nav-pills .nav-link.active {
  border-left-color: var(--rm-gold);
  background: var(--rm-gold-wash);
}

@media (max-width: 1000px) {
  .rm-docs {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-docs > .page-pills {
    position: static;
    max-height: none;
  }

  .rm-docs > .page-pills .nav-pills {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    border-bottom: 1px solid var(--rm-line-2);
  }

  .rm-docs > .page-pills .nav-pills .nav-link {
    border-left: 0;
    border-bottom: 2px solid transparent;
    margin: 0 0 -1px;
  }

  .rm-docs > .page-pills .nav-pills .nav-link.active {
    border-bottom-color: var(--rm-gold);
    background: none;
  }
}

/* ================================================================== warehouse */
.rm-wh-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 18px;
  border: 1px solid var(--rm-line-2);
  background: var(--rm-bg-1);
}

.rm-wh-toolbar__pick {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 12px 16px;
  min-width: 260px;
  border-right: 1px solid var(--rm-line-2);
  margin: 0;
}

.rm-wh-toolbar__hints {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  align-content: center;
  color: var(--rm-tx-2);
  font-size: 13px;
}

.rm-wh-toolbar__hints li {
  position: relative;
  padding-left: 14px;
}

.rm-wh-toolbar__hints li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--rm-gold-2);
}

.rm-wh-toolbar__hints b {
  color: var(--rm-cream);
  font-weight: 500;
}

body.rm .warehouse-vaults-wrapper {
  justify-content: flex-start;
  gap: 24px;
  padding-bottom: 8px;
}

body.rm .warehouse-vault-pane {
  border: 1px solid var(--rm-line-2);
  background: var(--rm-bg-1);
  padding: 0 0 12px;
}

body.rm .warehouse-vault-pane-title,
body.rm .warehouse-vault-pane > .warehouse-vault-pane-title {
  margin: 0 0 12px !important;
  padding: 9px 14px;
  background: var(--rm-bg-2);
  border-bottom: 1px solid var(--rm-line-2);
  font: 600 14px/1 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-cream) !important;
  text-align: left !important;
}

body.rm .warehouse-vault-pane-grid {
  padding: 0 12px;
}

/* collapsible rule lists */
body.rm .rm-details > summary {
  cursor: url('/assets/pointer.cur'), pointer;
  list-style: none;
}

body.rm .rm-details > summary::-webkit-details-marker {
  display: none;
}

body.rm .rm-details > summary::after {
  content: '+';
  margin-left: auto;
  font: 500 18px var(--rm-mono);
  color: var(--rm-tx-3);
}

body.rm .rm-details[open] > summary::after {
  content: '\2212';
  color: var(--rm-gold);
}

@media (max-width: 900px) {
  .rm-wh-toolbar {
    flex-direction: column;
  }

  .rm-wh-toolbar__pick {
    border-right: 0;
    border-bottom: 1px solid var(--rm-line-2);
  }
}

/* ================================================================== information pages */
/* item cards (ancient sets, box drops, item bags): three per row, tight icons */
.rm-docs #information-content .grid-row:has(> .grid-col-3) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.rm-docs #information-content .grid-row > .grid-col-3 {
  width: auto;
  max-width: none;
  padding: 0 !important;
  flex: none;
}

.rm-docs #information-content .market-item {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  box-shadow: none;
  transform: none;
}

.rm-docs #information-content .market-item:hover {
  border-color: var(--rm-line-3);
  transform: none;
  box-shadow: none;
}

.rm-docs #information-content .market-item-header {
  display: block;
  padding: 9px 12px;
  margin: 0;
  background: var(--rm-bg-2);
  border-bottom: 1px solid var(--rm-line-2);
}

.rm-docs #information-content .market-item-info {
  padding: 0;
}

.rm-docs #information-content .item-name {
  margin: 0;
  font: 600 15px/1.2 var(--rm-head);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-docs #information-content .market-item > .grid-row,
.rm-docs #information-content .grid-row:has(> .grid-col-6) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  margin: 0;
}

.rm-docs #information-content .grid-row > .grid-col-6 {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

.rm-docs #information-content .kundun-item-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  margin: 0;
  padding: 0;
}

.rm-docs #information-content .kundun-item-icon:hover {
  border-color: var(--rm-gold-2);
}

.rm-docs #information-content .kundun-item-icon img {
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
}

@media (max-width: 1000px) {
  #information-content .grid-row:has(> .grid-col-3) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #information-content .grid-row:has(> .grid-col-3) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* tables: no more label at the far left and value at the far right */
.rm-docs #information-content .table {
  max-width: none;
  width: 100%;
}

.rm-docs #information-content p,
.rm-docs #information-content .ul-basic,
.rm-docs #information-content .ol-basic {
  max-width: 86ch;
}

.rm-docs #information-content .ul-basic li,
.rm-docs #information-content .ol-basic li {
  margin: 0 0 6px;
}

.rm-docs #information-content .section-title {
  font-size: 22px;
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--rm-line-2);
}

.rm-docs #information-content .section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.rm-docs #information-content .mu-helper-video,
.rm-docs #information-content .video-container {
  max-width: 720px;
}

.rm-docs #information-content .vip-helper-quick-ref {
  background: var(--rm-bg-1) !important;
  border: 1px solid var(--rm-line-2) !important;
  border-left: 3px solid var(--rm-gold) !important;
  box-shadow: none !important;
}

.rm-docs #information-content .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0 0 16px;
}

.rm-docs #information-content .row > [class*='col-md'] {
  width: auto;
  max-width: none;
  padding: 0;
  flex: none;
}

@media (max-width: 900px) {
  #information-content .row {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.rm .market-grid > .rm-empty,
.rm-empty {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rm-empty__title {
  font-size: 30px;
}

.rm-empty__text {
  font-size: 15px;
}

.rm-tile__count {
  font-size: 20px;
}

/* ================================================================== leftovers found by the audit (gradients / shadows of the old sheets) */
body.rm .home-info-card-header,
body.rm .home-info-card,
body.rm .home-info-card-badge,
body.rm .home-feature-slider__dot,
body.rm .nav-link,
body.rm .nav-link.active {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.rm .home-info-card-header {
  background-color: transparent !important;
}

body.rm .rule-notice {
  background: var(--rm-gold-wash) !important;
  background-image: none !important;
  border: 1px solid var(--rm-gold-3) !important;
  border-left: 3px solid var(--rm-gold) !important;
  box-shadow: none !important;
  color: var(--rm-tx) !important;
}

body.rm #hall-of-fame .hof-date-selector {
  min-width: 0;
  box-sizing: border-box;
}

body.rm #hall-of-fame .hof-date-selector .select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* warehouse: the vaults on the left, the picker and hints in a column beside them */
body.rm #warehouse-storage.tab-content.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0 24px;
  align-items: start;
}

body.rm #warehouse-storage > #user-warehouse {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

body.rm #warehouse-storage > .rm-wh-toolbar {
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  margin: 0;
}

body.rm #warehouse-storage > .rm-wh-toolbar .rm-wh-toolbar__pick {
  min-width: 0;
  border-right: 0;
  border-bottom: 1px solid var(--rm-line-2);
}

body.rm #warehouse-storage > .rm-wh-toolbar .rm-wh-toolbar__hints {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
}

body.rm #warehouse-storage > #virtual-bank,
body.rm #warehouse-storage > .rm-details {
  grid-column: 1 / -1;
}

body.rm #warehouse-storage > .rm-details {
  margin-top: 8px;
}

@media (max-width: 1000px) {
  body.rm #warehouse-storage.tab-content.active {
    grid-template-columns: minmax(0, 1fr);
  }

  body.rm #warehouse-storage > .rm-wh-toolbar,
  body.rm #warehouse-storage > #user-warehouse {
    grid-column: 1;
  }

  body.rm #warehouse-storage > .rm-wh-toolbar {
    grid-row: 1;
    margin-bottom: 16px;
  }

  body.rm #warehouse-storage > #user-warehouse {
    grid-row: 2;
  }
}

/* selected-for-sale items are clearly marked */
body.rm .warehouse-item.selected-for-sale {
  outline: 2px solid var(--rm-gold);
  outline-offset: -2px;
  filter: brightness(1.25);
}

body.rm #sell-items-trigger {
  align-items: center;
  gap: 8px;
}

.rm-tile__full {
  font: 400 11px/1.2 var(--rm-mono);
  color: var(--rm-tx-3);
  overflow-wrap: anywhere;
}

/* warehouse: the whole block (vaults + side column) sits in the middle */
body.rm #warehouse-storage.tab-content.active {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================== information: key / value tables become spec tiles; rewards as compact tiles */
.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)),
.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) tbody {
  display: block;
  border: 0;
}

.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rm-line);
  border: 1px solid var(--rm-line);
}

.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) tr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 14px;
  background: var(--rm-bg-1) !important;
  border: 0;
}

.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) tr:hover {
  background: var(--rm-bg-2) !important;
}

.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) td {
  display: block;
  width: auto !important;
  padding: 0;
  border: 0;
  background: none !important;
}

.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) td:first-child {
  font: 600 11px/1.2 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) td:last-child {
  font-size: 15px;
  color: var(--rm-tx);
}

/* keyboard shortcuts: the key as a key cap */
.rm-docs #server-info-shortcuts .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) td:first-child {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  background: var(--rm-bg) !important;
  border: 1px solid var(--rm-line-3);
  border-bottom-width: 3px;
  font: 500 13px/1.3 var(--rm-mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--rm-cream);
}

.rm-docs #information-content .grid-row:has(> .grid-col-4) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  margin: 0;
}

.rm-docs #information-content .grid-row > .grid-col-4 {
  width: auto;
  max-width: none;
  padding: 0;
  flex: none;
}

.rm-docs #information-content .reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 8px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  text-align: left;
}

.rm-docs #information-content .reward-icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line);
}

.rm-docs #information-content .reward-icon img {
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
}

.rm-docs #information-content .reward-name {
  font: 600 13px/1.2 var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-docs #information-content .reward-quantity {
  font: 400 12px var(--rm-mono);
  color: var(--rm-tx-3);
}

/* ================================================================== mixes / sockets guide: one card per recipe */
.rm-mx__pick { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; }
.rm-mx__panel { display: none; }
.rm-mx__panel.is-on { display: block; }

.rm-mx__card {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-top: 2px solid var(--rm-gold);
}

/* cost / level / success in one strip */
.rm-mx__facts { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rm-line-2); }
.rm-mx__fact { display: flex; flex-direction: column; gap: 5px; padding: 14px 20px; border-right: 1px solid var(--rm-line-2); min-width: 0; }
.rm-mx__fact:last-child { border-right: 0; }
.rm-mx__fact--rate { flex: 1 1 auto; }
.rm-mx__k { font: 600 11px/1.2 var(--rm-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rm-tx-3); }
.rm-mx__v { font: 600 18px/1.2 var(--rm-mono); color: var(--rm-tx); }

.rm-mx__tiers { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.rm-mx__tier { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; min-width: 120px; flex: 1 1 120px; max-width: 220px; }
.rm-mx__tierv { font: 700 26px/1 var(--rm-mono); color: var(--rm-cream); }
.rm-mx__tiern { font: 600 12px/1 var(--rm-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rm-tx-3); }
.rm-mx__tier.is-bronze .rm-mx__tiern { color: #d99a52; }
.rm-mx__tier.is-gold .rm-mx__tiern { color: var(--rm-gold); }
.rm-mx__bar { grid-column: 1 / -1; display: block; height: 4px; margin-top: 7px; background: var(--rm-line); }
.rm-mx__bar b { display: block; height: 100%; background: var(--rm-ok); }
.rm-mx__tier.is-bronze .rm-mx__bar b { background: #d99a52; }
.rm-mx__tier.is-gold .rm-mx__bar b { background: var(--rm-gold); }

/* what goes in -> what comes out */
.rm-mx__recipe { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, auto); align-items: center; gap: 0 8px; padding: 18px 20px; }
.rm-mx__side .rm-mx__k { margin-bottom: 12px; }
.rm-mx__items { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.rm-mx__items--in .socket-mix-chip + .socket-mix-chip { position: relative; }
.rm-mx__items--in .socket-mix-chip + .socket-mix-chip::before { content: "+"; position: absolute; left: -15px; top: 18px; font: 600 16px/1 var(--rm-mono); color: var(--rm-tx-3); }
.rm-mx__to { align-self: center; justify-self: center; width: 0; height: 0; margin-top: 22px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid var(--rm-gold); }

.rm-mx .socket-mix-chip { width: 92px; text-align: center; }
.rm-mx .socket-mix-chip-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 auto; background: var(--rm-bg); border: 1px solid var(--rm-line-2); }
.rm-mx .socket-mix-chip-icon img { max-width: 52px; max-height: 52px; }
.rm-mx .socket-mix-chip-qty { position: absolute; right: 3px; bottom: 2px; font: 600 12px/1 var(--rm-mono); color: var(--rm-cream); text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.rm-mx .socket-mix-chip-label { margin-top: 7px; font-size: 12px; line-height: 1.25; color: var(--rm-tx-2); word-break: break-word; }

.rm-mx__note { margin: 0; padding: 0 20px 14px; font-size: 13px; line-height: 1.5; color: var(--rm-tx-2); }
.rm-mx__tali { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--rm-line-2); font-size: 13px; color: var(--rm-tx-3); }
.rm-mx__taliicon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; }
.rm-mx__taliicon img { max-width: 24px; max-height: 24px; }
.rm-docs #information-content .rm-mx__tali .rm-mx__taliicon { width: 26px; height: 26px; min-width: 0; padding: 0; border: 0; background: none; }
.rm-docs #information-content .rm-mx__tali .rm-mx__taliicon img { width: auto; height: auto; max-width: 24px; max-height: 24px; }
.rm-mx__more { padding: 14px 20px; border-top: 1px solid var(--rm-line-2); }
.rm-mx__more .rm-mx__k { margin-bottom: 8px; }
.rm-mx__list { margin: 0; padding: 0 20px 14px 38px; font-size: 13px; line-height: 1.55; color: var(--rm-tx-2); }
.rm-mx__more .rm-mx__list { padding: 0 0 0 18px; }
.rm-mx__list li + li { margin-top: 3px; }
.rm-mx__hint { margin: 10px 2px 0; font-size: 12px; color: var(--rm-tx-3); }
.rm-mx__intro { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--rm-tx-2); }

@media (max-width: 760px) {
  .rm-mx__recipe { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
  .rm-mx__to { margin: 4px 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--rm-gold); border-bottom: 0; }
  .rm-mx__fact { padding: 12px 16px; flex: 1 1 40%; }
  .rm-mx__fact--rate { flex: 1 1 100%; border-top: 1px solid var(--rm-line-2); border-right: 0; }
  .rm-mx__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; }
  .rm-mx__tier { min-width: 0; max-width: none; }
  .rm-mx__tierv { font-size: 22px; }
  .rm-mx__items--in .socket-mix-chip + .socket-mix-chip::before { display: none; }
  .rm-mx__note, .rm-mx__tali { padding-left: 16px; padding-right: 16px; }
  .rm-mx__more { padding-left: 16px; padding-right: 16px; }
}

/* ================================================================== characters */
.rm-kick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 12px 16px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

.rm-kick__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  color: var(--rm-tx);
}

.rm-kick__state {
  font: 600 11px/1.2 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-kick.is-online .rm-kick__state {
  color: var(--rm-ok);
}

.rm-kick.is-locked .rm-kick__state {
  color: var(--rm-gold, #ff9a2e);
}

.rm-kick__help {
  flex-basis: 100%;
  color: var(--rm-tx-3);
}

.rm-kick__form {
  margin: 0;
}

.rm-chars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.rm-char {
  display: flex;
  flex-direction: column;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

.rm-char__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--rm-bg-2);
  border-bottom: 1px solid var(--rm-line-2);
}

.rm-char__name {
  margin: 0;
  font: 700 22px/1.1 var(--rm-head);
  letter-spacing: 0.06em;
  color: var(--rm-cream);
}

.rm-char__pk {
  font: 500 11px var(--rm-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rm-ok);
}

.rm-char__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--rm-line);
}

.rm-char__stats > div {
  padding: 10px 14px;
  background: var(--rm-bg-1);
}

.rm-char__stats dt {
  font: 600 10px/1.2 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-char__stats dd {
  margin: 3px 0 0;
  font: 500 20px/1.1 var(--rm-mono);
  color: var(--rm-tx);
}

.rm-char__stats dd.is-gold {
  color: var(--rm-gold);
}

.rm-char__foot {
  padding: 12px 16px;
  margin-top: auto;
}

.rm-classpoints__title {
  font-size: 18px;
  margin: 0 0 10px;
}

.rm-classpoints__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rm-line);
  border: 1px solid var(--rm-line);
}

.rm-classpoint {
  display: grid;
  gap: 4px;
  padding: 11px 14px;
  background: var(--rm-bg-1);
  font-size: 13px;
  color: var(--rm-tx-3);
}

.rm-classpoint b {
  font: 700 18px/1 var(--rm-head);
  letter-spacing: 0.08em;
  color: var(--rm-cream);
}

.rm-classpoint i {
  font: 500 13px var(--rm-mono);
  font-style: normal;
  color: var(--rm-tx);
}

.rm-classpoint em {
  font-style: normal;
  color: var(--rm-tx-3);
}

/* race card text colours (they came out black) */
body.rm .home-reset-race-notice,
body.rm .home-reset-race-notice .panel-content {
  background: var(--rm-bg-1) !important;
}

body.rm .home-info-card-title,
body.rm .home-info-card-title a {
  color: var(--rm-cream) !important;
}

body.rm .home-info-card-body,
body.rm .home-info-card-body p {
  color: var(--rm-tx-2) !important;
}

body.rm .home-info-card-footer a {
  color: var(--rm-gold) !important;
}

/* ================================================================== get reward items: categories on the left, the chosen item and its options on the right */
#reward-system-container {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0 20px;
  align-items: start;
}

#reward-system-container > :nth-child(2),
#reward-system-container > :nth-child(3) {
  grid-column: 1 / -1;
}

#reward-system-container > :nth-child(4) {
  grid-column: 1;
  grid-row: 4;
  width: 100%;
}

#reward-system-container > :nth-child(5) {
  grid-column: 1;
  grid-row: 5;
}

#reward-system-container > :nth-child(6) {
  grid-column: 2;
  grid-row: 4 / span 2;
  margin: 0;
}

#reward-system-container .category-btn {
  width: 100%;
}

@media (max-width: 1000px) {
  #reward-system-container {
    grid-template-columns: minmax(0, 1fr);
  }

  #reward-system-container > :nth-child(n+4) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ================================================================== vote */
.vote-container {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  grid-template-areas:
    'head  head'
    'sites rewards'
    'info  rewards';
  gap: 20px;
  align-items: start;
  max-width: none;
  margin: 0;
}

.vote-header {
  grid-area: head;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 0 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rm-line-2);
  text-align: left;
}

.vote-header h1 {
  margin: 0;
}

.vote-subtitle {
  margin: 0;
  color: var(--rm-tx-2);
}

.vote-sites-section {
  grid-area: sites;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  padding: 16px;
  text-align: left;
}

.vote-rewards-section {
  grid-area: rewards;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  padding: 16px;
  text-align: left;
}

.vote-info {
  grid-area: info;
}

.vote-container h2 {
  font-size: 20px;
  margin: 0 0 8px;
  text-align: left;
}

.vote-instructions {
  margin: 0 0 12px;
  color: var(--rm-tx-2);
  text-align: left;
}

.vote-container .alert {
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 8px !important;
}

.vote-sites-simple {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.vote-site-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  text-align: left;
}

.vote-site-item h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
  .vote-container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'sites' 'rewards' 'info';
  }
}

/* ================================================================== scrap warehouse: same calm layout as the warehouse */
#scrap-items {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

#scrap-items .alert {
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

#scrap-items h1 {
  margin: 0 0 6px;
}

#scrap-items .select {
  max-width: 280px;
}

#scrap-items .warehouse-vaults-wrapper {
  margin-top: 14px;
}

/* ================================================================== rankings: dense, readable lists */
.table-responsive:has(> .rm-leaderboard) {
  max-width: 1040px;
}

.table.rm-leaderboard th,
.table.rm-leaderboard td {
  padding: 5px 12px;
  font-size: 13px;
}

.table.rm-leaderboard th {
  font-size: 11px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.table.rm-leaderboard td:first-child {
  width: 56px;
  font: 500 13px var(--rm-mono);
  color: var(--rm-tx-3);
}

.table.rm-leaderboard.is-page-one tbody tr:nth-child(-n + 3) td:first-child {
  color: var(--rm-gold);
  font-weight: 600;
}

.table.rm-leaderboard td:nth-child(2) {
  text-align: left;
}

.table.rm-leaderboard td:nth-child(n + 3) {
  font-family: var(--rm-mono);
}

.table.rm-leaderboard td img {
  vertical-align: middle;
  margin-right: 6px;
}

/* ================================================================== character profile: facts on the left, tabs and the in-game inventory on the right */
.rm-profile {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.rm-profile__side {
  display: grid;
  gap: 16px;
}

.rm-profile__side .table {
  margin: 0;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

.rm-profile__side .table td {
  padding: 9px 14px;
  width: auto !important;
}

.rm-profile__side .table td:first-child {
  font: 600 11px/1.2 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
  white-space: nowrap;
}

.rm-profile__side .table td:last-child {
  text-align: right;
  color: var(--rm-tx);
}

.rm-profile__side h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.rm-profile__side .table-responsive {
  max-width: none;
}

.rm-profile__main {
  min-width: 0;
}

.rm-profile__main > .page-pills {
  justify-content: flex-start;
}

@media (max-width: 1000px) {
  .rm-profile {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* class points: a plain table again, no empty cells */
.rm-classpoints,
.rm-classpoints__grid {
  display: none;
}

/* ================================================================== market cards: name on the left, the item picture on the right in its own cell */
body.rm .market-grid .market-item {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  box-shadow: none;
}

body.rm .market-grid .market-item-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  background: none;
  border-bottom: 1px solid var(--rm-line-2);
}

body.rm .market-grid .market-item-header > .market-item-info {
  order: 1;
  padding: 12px 14px;
  min-width: 0;
}

body.rm .market-grid .market-item-header > :first-child:not(.market-item-info) {
  order: 2;
  display: grid;
  place-items: center;
  min-width: 104px;
  padding: 10px;
  background: var(--rm-bg);
  border-left: 1px solid var(--rm-line-2);
}

/* ================================================================== forum section: topics on the left, overview + recent topics beside them */
.forum-page > .big-panel-content:has(> .forum-section-seo-summary),
.forum-page > .big-panel-content:has(> .forum-seo-summary) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0 24px;
  align-items: start;
}

.forum-page > .big-panel-content:has(> .forum-section-seo-summary) > *,
.forum-page > .big-panel-content:has(> .forum-seo-summary) > * {
  grid-column: 1;
  min-width: 0;
}

.forum-page > .big-panel-content > .forum-section-seo-summary,
.forum-page > .big-panel-content > .forum-seo-summary {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin: 0;
  padding: 14px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  border-top: 2px solid var(--rm-gold);
}

.forum-section-seo-summary .forum-seo-summary-inner {
  display: grid;
  gap: 12px;
  text-align: left;
}

.forum-section-seo-summary h2 {
  font-size: 16px;
  margin: 0;
  text-align: left;
}

.forum-section-seo-summary .forum-seo-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rm-line);
  border: 1px solid var(--rm-line);
}

.forum-section-seo-summary .forum-seo-stat {
  min-width: 0;
  padding: 8px 6px;
  background: var(--rm-bg-1);
  border: 0;
  text-align: center;
}

.forum-section-seo-summary .forum-recent-topics {
  max-width: none;
  margin: 0;
}

.forum-thread-card,
.forum-topic-card,
.forum-section-card {
  background: var(--rm-bg) !important;
  background-image: none !important;
  border: 1px solid var(--rm-line-2) !important;
  border-left: 3px solid var(--rm-line-3) !important;
  box-shadow: none !important;
}

.forum-thread-card:hover {
  border-left-color: var(--rm-gold) !important;
  background: var(--rm-bg-2) !important;
}

@media (max-width: 1000px) {
  .forum-page > .big-panel-content:has(> .forum-section-seo-summary),
.forum-page > .big-panel-content:has(> .forum-seo-summary) {
    grid-template-columns: minmax(0, 1fr);
  }

  .forum-page > .big-panel-content > .forum-section-seo-summary,
.forum-page > .big-panel-content > .forum-seo-summary {
    grid-column: 1;
    grid-row: auto;
    margin-top: 20px;
  }
}

/* get reward: the categories stay put when an item is chosen; three buttons per row */
#reward-system-container {
  grid-template-rows: auto auto auto auto 1fr;
}

#reward-system-container > :nth-child(6) {
  grid-row: 4 / span 2;
}

#reward-system-container .reward-category-grid,
#reward-system-container .category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

#reward-system-container .category-btn {
  padding: 9px 6px;
  font-size: 13px;
}

body.rm #scrap-items > .rm-details {
  grid-column: 1 / -1;
  margin-top: 12px !important;
}

body.rm .rm-details .warehouse-video-guides-stack,
body.rm .rm-details .video-container {
  max-width: 760px;
}

/* ================================================================== rankings: a leaderboard, one grid row per player */
.table-responsive:has(> .rm-leaderboard) {
  max-width: 1100px;
}

.table.rm-leaderboard,
.table.rm-leaderboard thead,
.table.rm-leaderboard tbody {
  display: block;
  width: 100%;
}

.table.rm-leaderboard tr {
  display: grid;
  grid-template-columns: 64px minmax(200px, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  align-items: center;
  padding: 0 8px;
}

.table.rm-leaderboard th,
.table.rm-leaderboard td {
  display: block;
  width: auto !important;
  border: 0 !important;
}

.table.rm-leaderboard tbody tr {
  min-height: 44px;
  border-bottom: 1px solid var(--rm-line);
  border-left: 3px solid transparent;
}

.table.rm-leaderboard.is-page-one tbody tr:nth-child(1) { border-left-color: var(--rm-gold); }
.table.rm-leaderboard.is-page-one tbody tr:nth-child(2) { border-left-color: #c9ccd2; }
.table.rm-leaderboard.is-page-one tbody tr:nth-child(3) { border-left-color: #c8854a; }

.table.rm-leaderboard tbody tr:hover {
  background: var(--rm-bg-2) !important;
}

.table.rm-leaderboard td:first-child {
  font: 700 22px/1 var(--rm-head);
  width: auto;
  text-align: left;
}

.table.rm-leaderboard td:nth-child(n + 3),
.table.rm-leaderboard th:nth-child(n + 3) {
  text-align: right;
  padding-right: 12px;
}

.table.rm-leaderboard td:nth-child(2) {
  font-size: 15px;
}

.table.rm-leaderboard th:first-child,
.table.rm-leaderboard th:nth-child(2) {
  text-align: left;
}

@media (max-width: 640px) {
  .table.rm-leaderboard tr {
    grid-template-columns: 40px minmax(120px, 1fr);
    grid-auto-columns: 68px;
    padding: 0 4px;
  }
}


/* the character / warehouse art is the in-game art, untouched */

/* ================================================================== scrap shop */
.rm-shop__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.rm-shop__head h1 {
  margin: 0 0 4px;
}

.rm-shop__hint {
  margin: 0;
  max-width: 62ch;
  color: var(--rm-tx-2);
  font-size: 13.5px;
}

.rm-shop__hint b {
  color: var(--rm-cream);
  font-weight: 500;
}

.rm-shop__wallet {
  display: grid;
  gap: 4px;
  padding: 10px 18px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-gold);
  text-align: right;
}

.rm-shop__wallet strong {
  font: 500 26px/1 var(--rm-mono);
  color: var(--rm-gold);
}

.rm-shop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
  margin: 0 0 8px;
}

.rm-shop__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-areas:
    'img info'
    'btn btn';
  gap: 12px 14px;
  align-items: start;
  padding: 14px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

.rm-shop__item.is-off {
  opacity: 0.55;
}

.rm-shop__img {
  grid-area: img;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-shop__img img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.rm-shop__info {
  grid-area: info;
  min-width: 0;
}

.rm-shop__name {
  margin: 0 0 4px;
  font: 700 18px/1.15 var(--rm-head);
  letter-spacing: 0.06em;
  color: var(--rm-cream);
}

.rm-shop__qty {
  font: 400 12px var(--rm-mono);
  color: var(--rm-tx-3);
  margin-bottom: 8px;
}

.rm-shop__qty b {
  color: var(--rm-tx);
  font-weight: 500;
}

.rm-shop__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--rm-tx-3);
}

.rm-shop__price b {
  font: 500 20px/1 var(--rm-mono);
}

.rm-shop__price.is-ok b {
  color: var(--rm-ok);
}

.rm-shop__price.is-low b {
  color: var(--rm-red);
}

.rm-shop__price s {
  font: 400 13px var(--rm-mono);
  color: var(--rm-tx-3);
}

.rm-shop__price em {
  font: 600 11px var(--rm-mono);
  font-style: normal;
  color: #07150d;
  background: var(--rm-ok);
  padding: 1px 6px;
}

.rm-shop__item .shop-buy-button {
  grid-area: btn;
  width: 100%;
}

/* ================================================================== sell bank items: what to sell on the left, the prices beside it */
.rm-sellbank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.rm-sellbank__title {
  margin: 0 0 12px;
  font-size: 20px;
}

.rm-sellbank__title .rm-dim {
  margin-left: 8px;
  font: 400 12px var(--rm-mono);
  letter-spacing: 0;
  text-transform: none;
}

.rm-sellbank__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--rm-line);
  border: 1px solid var(--rm-line);
}

.rm-sellbank__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 92px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 0;
  background: var(--rm-bg-1);
}

.rm-sellbank__row:hover {
  background: var(--rm-bg-2);
}

.rm-sellbank__name {
  font: 600 14px/1.2 var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c, var(--rm-tx));
  overflow-wrap: anywhere;
}

.rm-sellbank__have {
  font: 400 12px var(--rm-mono);
  color: var(--rm-tx-3);
}

.rm-sellbank__row .form-input {
  padding: 6px 8px;
  text-align: right;
  font-family: var(--rm-mono);
}

.rm-sellbank__side {
  position: sticky;
  top: calc(var(--rm-bar-h) + 16px);
  padding: 16px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-top: 2px solid var(--rm-gold);
}

.rm-sellbank__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

.rm-sellbank__price {
  display: grid;
  gap: 4px;
  margin: 0;
}

.rm-sellbank__price .form-input {
  font-family: var(--rm-mono);
  text-align: right;
}

.rm-sellbank__side .btn {
  width: 100%;
}

@media (max-width: 1000px) {
  .rm-sellbank {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-sellbank__side {
    position: static;
  }
}

.rm-shop__item.is-off .rm-shop__price b {
  color: var(--rm-tx-3);
}

/* ruled grids without a gray "hole" when the last row is not full: the container has no fill, the cells draw the lines */
.rm-sellbank__list,
.rm-bank__grid,
.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) tbody,
.rm-classpoints__grid,
.home-new-server__grid {
  background: none !important;
  gap: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--rm-line) !important;
  border-left: 1px solid var(--rm-line) !important;
}

.rm-sellbank__row,
.rm-bank__grid > .rm-tile,
.rm-docs #information-content .table:is(.rm-kv, :not(:has(th)):not(:has(tr > :nth-child(3))):not(:has(tr > :only-child)):has(tr)) tr,
.rm-classpoint,
.home-new-server__grid li {
  border-right: 1px solid var(--rm-line);
  border-bottom: 1px solid var(--rm-line);
}

/* ================================================================== character: identity header, stat chips (no tables) */
.rm-cprofile {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-gold);
}

.rm-cprofile__id {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.rm-cprofile__name {
  margin: 0;
  font: 700 28px/1 var(--rm-head);
  letter-spacing: 0.06em;
  color: var(--rm-cream);
}

.rm-cprofile__class {
  font: 600 13px var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-2);
}

.rm-cprofile__vip {
  margin-left: auto;
  font: 500 12px var(--rm-mono);
}

.rm-cprofile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.rm-cprofile__stats > div {
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 7px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-cprofile__stats dt {
  font: 600 10px/1.2 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-cprofile__stats dd {
  margin: 0;
  font: 500 18px/1.1 var(--rm-mono);
  color: var(--rm-tx);
}

.rm-cprofile__stats dd.is-gold {
  color: var(--rm-gold);
}

.rm-cprofile__guild dd {
  font: 500 14px/1.2 var(--rm-font);
}

.rm-cprofile__chars {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.rm-charchip {
  display: grid;
  gap: 1px;
  padding: 6px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-3);
}

.rm-charchip b {
  font: 600 14px/1.2 var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-charchip i {
  font: 400 11px var(--rm-mono);
  font-style: normal;
  color: var(--rm-tx-3);
}

.rm-charchip:hover {
  border-color: var(--rm-gold);
}

/* in the side drawer: the tabs are the first thing, then the identity, then the tab content */
.rm-drawer .rm-profile,
.rm-drawer .rm-profile__main {
  display: contents;
}

.rm-drawer .rm-profile__side {
  order: 2;
}

.rm-drawer .big-panel-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rm-drawer .rm-profile__main > .page-pills {
  order: 1;
  margin: 0;
}

.rm-drawer .rm-profile__main > #information-content {
  order: 3;
}

.rm-drawer .rm-profile__main > .page-pills .nav-pills {
  margin: 0;
}

.forum-latest-above {
  margin: 0 0 12px;
}

.forum-latest-above .forum-seo-footer-latest-line {
  margin: 0;
  padding: 8px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-gold);
  font-size: 13px;
  color: var(--rm-tx-2);
}

.forum-seo-summary .forum-seo-summary-inner {
  display: grid;
  gap: 12px;
  text-align: left;
}

.forum-seo-summary .forum-seo-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rm-line);
  border: 1px solid var(--rm-line);
}

.forum-seo-summary .forum-seo-stat {
  padding: 8px 6px;
  background: var(--rm-bg-1);
  border: 0;
  text-align: center;
}

/* ================================================================== online players: one list, search + filters */
.rm-online-page__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.rm-online-page__head h1 {
  margin: 0;
}

.rm-online-page__count {
  font: 400 13px var(--rm-mono);
  color: var(--rm-tx-3);
}

.rm-online-page__count b {
  font-size: 18px;
  color: var(--rm-ok);
  font-weight: 500;
}

/* search box + map + class in one row (the global search form rule sets the heights) */
body.rm form.rm-online-filter:has(> input[name='search']) {
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 14px;
}

body.rm .rm-online-filter > select {
  min-width: 150px;
  padding: 0 10px;
  background: var(--rm-bg-1);
  color: var(--rm-tx);
  border: 1px solid var(--rm-line-2);
}

.rm-online-filter__shown {
  margin-left: auto;
  font: 400 13px var(--rm-mono);
  color: var(--rm-tx-3);
}

.rm-online-list-wrap {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

body.rm .rm-online-list td {
  padding: 8px 14px;
}

body.rm .rm-online-list .col-no {
  width: 48px;
}

body.rm .rm-online-list .col-num {
  width: 90px;
  font-family: var(--rm-mono);
  text-align: right !important;
}

body.rm .rm-online-list td.col-map,
body.rm .rm-online-list td.col-class {
  color: var(--rm-tx-2);
}

body.rm .rm-online-list td.is-gold {
  color: var(--rm-gold);
}

body.rm .rm-online-list .col-name a {
  font: 600 16px/1.2 var(--rm-head);
  letter-spacing: 0.04em;
}

/* the column titles sort the list */
body.rm .rm-online-list th button {
  all: unset;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

body.rm .rm-online-list th button:hover,
body.rm .rm-online-list th button.is-sorted {
  color: var(--rm-gold);
}

body.rm .rm-online-list th button.is-sorted::after {
  content: ' \25B2';
  font-size: 9px;
}

body.rm .rm-online-list th button.is-sorted.is-desc::after {
  content: ' \25BC';
}

body.rm .rm-online-list th.col-num {
  text-align: right !important;
}

/* class and map under the name: phones only */
.rm-online-list__sub {
  display: none;
  margin-top: 2px;
  font: 400 12px var(--rm-mono);
  color: var(--rm-tx-3);
}

.rm-online-list__none {
  margin: 0;
  border: 0;
}

/* .rm-empty sets display: flex, which would beat the hidden attribute */
.rm-online-list__none[hidden],
body.rm .rm-online-list[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .rm-online-filter__shown {
    flex-basis: 100%;
    margin-left: 0;
  }

  body.rm form.rm-online-filter:has(> input[name='search']) > input[name='search'] {
    flex: 1 1 100%;
    max-width: none !important;
  }

  body.rm .rm-online-filter > select {
    flex: 1 1 140px;
    min-width: 0;
  }

  body.rm .rm-online-list .col-no,
  body.rm .rm-online-list .col-class,
  body.rm .rm-online-list .col-map {
    display: none;
  }

  .rm-online-list__sub {
    display: block;
  }

  body.rm .rm-online-list td,
  body.rm .rm-online-list th {
    padding: 8px 8px;
  }

  body.rm .rm-online-list .col-num {
    width: auto;
  }
}

/* ================================================================== damage colours: three per row */
.rm-dmg__intro {
  max-width: 80ch;
  color: var(--rm-tx-2);
  margin: 0 0 12px;
}

.rm-dmg__note {
  max-width: 80ch;
  font-size: 13px;
}

.rm-dmg__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.rm-dmg {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-top: 3px solid var(--dc, var(--rm-line-3));
}

.rm-dmg__sample {
  font: 700 34px/1 var(--rm-mono);
  color: var(--dc, var(--rm-tx));
  letter-spacing: 0.04em;
}

.rm-dmg__label {
  font: 600 11px/1.2 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-dmg__title {
  margin: 4px 0 0;
  font-size: 16px;
}

.rm-dmg__text {
  margin: 0;
  font-size: 13px;
  color: var(--rm-tx-2);
}

.rm-dmg__foot {
  margin: 0;
  font-size: 12px;
  color: var(--rm-tx-3);
}

@media (max-width: 1000px) {
  .rm-dmg__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rm-dmg__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================================================================== custom jewels */
.rm-jw__h {
  margin: 22px 0 6px;
  font-size: 20px;
}

.rm-jw__h:first-child {
  margin-top: 0;
}

.rm-jw__p,
.rm-jw__note {
  margin: 0 0 12px;
  max-width: 80ch;
  color: var(--rm-tx-2);
  font-size: 13.5px;
}

.rm-jw__note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--rm-tx-3);
}

.rm-jw__obtain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rm-jw__pair {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  font-size: 13px;
}

.rm-jw__pair b {
  font-weight: 500;
  color: var(--rm-cream);
}

.rm-jw__pair span {
  color: var(--rm-gold-2);
}

.rm-jw__pair i {
  margin-left: auto;
  font-style: normal;
  color: var(--rm-tx);
}

.rm-jw__rates {
  display: grid;
  gap: 6px;
  max-width: 760px;
}

.rm-jw__rate {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(3, 110px);
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-jw__rate b {
  font: 600 14px var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-jw__rate span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 500 15px var(--rm-mono);
}

.rm-jw__rate span em {
  font: 600 10px var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--rm-tx-3);
}

.rm-jw__rate .is-gold {
  color: var(--rm-gold);
}

.rm-jw__rate .is-bronze {
  color: #d89a5b;
}

.rm-jw__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rm-jw__card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

.rm-jw__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-jw__icon img {
  max-width: 48px;
  max-height: 48px;
}

.rm-jw__body h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.rm-jw__desc {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--rm-tx);
}

.rm-jw__req {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--rm-tx-3);
}

@media (max-width: 1100px) {
  .rm-jw__obtain,
  .rm-jw__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .rm-jw__obtain,
  .rm-jw__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-jw__rate {
    grid-template-columns: repeat(3, 1fr);
  }

  .rm-jw__rate b {
    grid-column: 1 / -1;
  }
}

/* ================================================================== event pages: craft lists centered */
.rm-docs #information-content .grid-row:has(.fw-11px) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
  justify-content: center;
  gap: 12px;
}

.rm-docs #information-content .grid-row:has(.fw-11px) > [class*="grid-col"] {
  width: auto;
  padding: 0 !important;
}

.rm-docs #information-content .grid-row:has(.fw-11px) .text-center {
  background: var(--rm-bg) !important;
  border: 1px solid var(--rm-line-2) !important;
  padding: 12px !important;
}

/* ================================================================== useful keys */
.rm-keys {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
}

.rm-key {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

.rm-key__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rm-key kbd {
  display: inline-block;
  min-width: 30px;
  padding: 3px 9px;
  text-align: center;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-3);
  border-bottom-width: 3px;
  font: 500 13px/1.3 var(--rm-mono);
  color: var(--rm-cream);
}

.rm-key__what {
  font-size: 13.5px;
  color: var(--rm-tx);
}

/* ================================================================== rankings: the section buttons on the left, the list as wide as the page */
#content-container:has(> .rm-rankmenu),
#content-container > div:has(> .rm-rankmenu) {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
}

#content-container:has(> .rm-rankmenu) > *,
#content-container > div:has(> .rm-rankmenu) > * {
  grid-column: 2;
  min-width: 0;
}

.rm-rankmenu {
  grid-column: 1 !important;
  grid-row: 1 / span 30;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  border-bottom: 0 !important;
  border-left: 1px solid var(--rm-line-2);
  position: sticky;
  top: calc(var(--rm-bar-h) + 16px);
}

.rm-rankmenu .nav-link {
  padding: 10px 14px !important;
  margin: 0 0 0 -1px !important;
  border-bottom: 0 !important;
  border-left: 2px solid transparent !important;
  text-align: left;
}

.rm-rankmenu .nav-link.active {
  border-left-color: var(--rm-gold) !important;
  background: var(--rm-gold-wash);
}

.table-responsive:has(> .rm-leaderboard) {
  max-width: none;
}

@media (max-width: 900px) {
  #content-container:has(> .rm-rankmenu),
  #content-container > div:has(> .rm-rankmenu) {
    grid-template-columns: minmax(0, 1fr);
  }

  #content-container:has(> .rm-rankmenu) > *,
  #content-container > div:has(> .rm-rankmenu) > * {
    grid-column: 1;
  }

  .rm-rankmenu {
    grid-row: auto;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    border-left: 0;
    position: static;
  }
}

/* ================================================================== market cards: air between the lines */
body.rm .market-grid .market-item-info,
body.rm .market-grid .market-item-footer {
  padding: 14px 16px !important;
}

body.rm .market-grid .market-item-info > *,
body.rm .market-grid .market-item-footer > * {
  margin-bottom: 6px;
}

body.rm .market-grid .market-item-footer {
  border-top: 1px solid var(--rm-line-2);
  display: grid;
  gap: 8px;
}

/* ================================================================== character drawer: wide when the admin warehouse is open */
.rm-drawer--wide.is-xl {
  width: min(1200px, 100vw);
}

.rm-drawer .warehouse-vaults-wrapper {
  overflow: visible;
  flex-wrap: wrap;
}

.rm-drawer .warehouse-vault-pane-grid {
  overflow: visible;
}

/* ================================================================== round 4: shell */
html {
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body.rm {
  overflow-x: clip;
}

/* the page behind a drawer or a window does not scroll */
body.rm.rm-drawer-open {
  overflow: visible;
}

html:has(.rm-drawer.is-open),
html:has(.micromodal-slide.is-open),
html:has(.modal.is-open) {
  overflow: hidden;
}

.micromodal-slide .modal__overlay,
.micromodal-slide .modal__container,
.micromodal-slide .modal__content {
  overscroll-behavior: contain;
}

/* bar stays on top while the page scrolls; drawers start right under it */
.rm-bar {
  position: sticky;
  top: 0;
}

.rm-drawer {
  top: var(--rm-bar-real, var(--rm-bar-h));
}

/* navigation: the main links on top, the less important pages as small grey text under them */
.rm-nav {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.rm-nav__main {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 34px;
}

.rm-nav__aux {
  display: flex;
  gap: 16px;
  padding: 0 13px;
  height: 16px;
  align-items: center;
}

.rm-nav__aux .rm-nav__sub {
  padding: 0;
  font: 400 11px/1 var(--rm-font);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--rm-tx-3);
  border: 0;
  background: none;
}

.rm-nav__aux .rm-nav__sub:hover,
.rm-nav__aux .rm-nav__sub.is-active {
  color: var(--rm-gold);
  background: none;
}

@media (max-width: 1480px) {
  .rm-nav {
    align-items: stretch;
  }

  .rm-nav__main {
    flex-direction: column;
    height: auto;
  }

  .rm-nav__aux {
    flex-wrap: wrap;
    gap: 6px 18px;
    height: auto;
    padding: 12px var(--rm-gutter);
    background: var(--rm-bg);
  }

  .rm-nav__aux .rm-nav__sub {
    font-size: 13px;
  }
}

/* panel headers: the square is centred on the capitals of the title */
body.rm .panel-header::before,
body.rm .big-panel-header::before {
  position: relative;
  top: 1px;
}

body.rm .panel-header,
body.rm .big-panel-header {
  line-height: 1;
  padding-top: 2px;
}

/* Hall of Legends: every champion fills the full height of the row, no grey strip under them */
body.rm #hall-of-fame .hofwiners {
  height: auto;
  min-height: 0;
  align-self: stretch;
  box-sizing: border-box;
}

body.rm #hall-of-fame .champions-row {
  align-items: stretch;
}

body.rm .champions-row .hofwiners:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 761px) {
  body.rm .champions-row .hofwiners:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* castle siege drawer */
.rm-castle__more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rm-line-2);
}

.rm-castle__more .castle-siege-modal-meta {
  display: none;
}

.rm-castle__more .castle-siege-modal-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
}

.rm-castle__more .castle-siege-modal-li {
  padding: 10px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-castle__more .castle-siege-modal-li-title {
  font: 600 15px var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-castle__more .castle-siege-modal-li-when {
  font: 400 13px var(--rm-mono);
  color: var(--rm-tx);
}

.rm-castle__more .castle-siege-modal-li-hint {
  font-size: 12px;
  color: var(--rm-tx-3);
}

.rm-castle__more .castle-siege-registration-countdown {
  padding: 10px 12px;
  background: var(--rm-gold-wash);
  border: 1px solid var(--rm-gold-3);
}

.rm-castle__more .castle-siege-registration-countdown__value {
  font: 600 22px var(--rm-mono);
  color: var(--rm-gold);
}

/* the events strip shows as many as fit */
.rm-nextup__item[hidden] {
  display: none;
}

/* ================================================================== round 4: phone top bar and status rail */
@media (max-width: 640px) {
  body.rm .rm-brand__logo {
    display: none;
  }

  body.rm .rm-brand__text {
    font-size: 22px;
  }

  body.rm .rm-bar__tools .rm-chip--bank,
  body.rm .rm-account__btn {
    height: 36px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  body.rm .rm-account__btn span.rm-account__name {
    display: inline-block;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    font: 600 15px/1 var(--rm-head);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body.rm .rm-rail__row,
  body.rm .rm-rail__row:first-child {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    align-items: center;
    gap: 6px 12px;
    padding: 8px 0;
    min-height: 0;
  }

  body.rm .rm-facts {
    overflow: visible;
    order: 1;
  }

  body.rm .rm-nextup {
    order: 2;
    flex: 1 1 100%;
  }

  body.rm .rm-nextup:empty {
    display: none;
  }

  body.rm .rm-nextup__item {
    padding: 3px 12px;
  }

  body.rm .rm-rail__tools {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 6px;
  }

  body.rm .rm-rail__tools > .rm-pop,
  body.rm .rm-rail__tools > .rm-chip {
    flex: 1 1 0;
    min-width: 0;
  }

  body.rm .rm-rail__tools > .rm-pop > .rm-chip,
  body.rm .rm-rail__tools > .rm-chip {
    width: 100%;
    justify-content: center;
  }

  body.rm .rm-rail .server-switcher-wrap {
    order: 9;
    flex: 1 1 100%;
  }

  body.rm .rm-rail .server-switcher-label {
    display: none;
  }

  body.rm .rm-rail .server-switcher-select {
    width: 100%;
    min-width: 0;
  }
}

/* ================================================================== round 4: tables (ledger), toolbars, search, status */
body.rm .table-responsive {
  width: 100%;
  max-width: none;
  overflow-x: auto;
}

body.rm table.text-center th {
  text-align: center;
}

body.rm .rm-ledger {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body.rm .rm-ledger th {
  text-align: left !important;
  padding: 10px 14px;
  font: 600 12px/1.2 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
  background: var(--rm-bg-2);
  border: 0;
  border-bottom: 1px solid var(--rm-line-2);
  white-space: nowrap;
}

body.rm .rm-ledger td {
  text-align: left !important;
  padding: 11px 14px;
  color: var(--rm-tx);
  border: 0;
  border-bottom: 1px solid var(--rm-line);
  vertical-align: middle;
  background: none;
}

body.rm .rm-ledger tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

body.rm .rm-ledger tbody tr:hover td {
  background: var(--rm-bg-2);
}

body.rm .rm-ledger td:first-child {
  color: var(--rm-tx-3);
  font-family: var(--rm-mono);
}

body.rm .rm-ledger td:has(> .btn) {
  white-space: nowrap;
}

body.rm .rm-ledger td > .btn {
  margin-right: 4px;
  vertical-align: middle;
}

.rm-when {
  font: 400 13px var(--rm-mono);
  color: var(--rm-tx-2);
  white-space: nowrap;
}

.rm-when b {
  font-weight: 500;
  color: var(--rm-tx);
  margin-right: 6px;
}

.rm-player-link,
.rm-cell-name {
  font: 600 15px/1.2 var(--rm-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-reward {
  color: var(--rm-tx);
  font-weight: 500;
}

.rm-qty {
  font: 500 13px var(--rm-mono);
  color: var(--rm-gold);
}

.rm-evtag,
.rm-status {
  display: inline-block;
  padding: 2px 9px;
  font: 600 12px/1.4 var(--rm-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-3);
  color: var(--rm-tx);
  white-space: nowrap;
}

.rm-evtag--pvm-top3-weekly { border-color: var(--rm-gold-3); color: var(--rm-gold); }
.rm-evtag--scramble,
.rm-evtag--trivia { border-color: #2f6a4a; color: var(--rm-ok); }
.rm-evtag--cc,
.rm-evtag--bc,
.rm-evtag--ds { border-color: var(--rm-gold-3); color: var(--rm-cream); }
.rm-evtag--account { border-color: #7a2a25; color: #ff8a80; }
.rm-evtag--character { border-color: var(--rm-line-3); color: var(--rm-cream); }

.rm-status--bad { border-color: #7a2a25; background: rgba(255, 77, 64, 0.1); color: #ff7a6e; }
.rm-status--warn { border-color: #7a4510; background: rgba(255, 154, 46, 0.1); color: #ffa94d; }
.rm-status--off { border-color: var(--rm-line-2); background: none; color: var(--rm-tx-3); }

/* the ban pages are red, the warning pages orange: the gold of the site is replaced inside them */
.rm-tone-ban {
  --rm-gold: #ff5a4d;
  --rm-gold-2: #d9453a;
  --rm-gold-3: #7a2a25;
  --rm-gold-wash: rgba(255, 90, 77, 0.08);
  --rm-cream: #ffd6d1;
}

.rm-tone-warn {
  --rm-gold: #ff9a2e;
  --rm-gold-2: #d17a1b;
  --rm-gold-3: #7a4510;
  --rm-gold-wash: rgba(255, 154, 46, 0.09);
  --rm-cream: #ffe2bd;
}

/* toolbar: the actions on the left, the search on the right, one row */
.rm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 16px;
}

.rm-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rm-toolbar > form {
  margin: 0 0 0 auto;
}

/* every search is the same: the box and its button in one row, same height */
body.rm form:has(> input[name='search']),
body.rm form:has(> input[name='q']) {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}

body.rm form:has(> input[name='search']) > input[name='search'],
body.rm form:has(> input[name='q']) > input[name='q'] {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 340px !important;
  height: 40px;
  box-sizing: border-box;
}

body.rm form:has(> input[name='search']) > select,
body.rm form:has(> input[name='search']) > .btn,
body.rm form:has(> input[name='q']) > .btn {
  height: 40px;
  box-sizing: border-box;
  flex: none;
}

body.rm form:has(> input[name='search']) > .btn,
body.rm form:has(> input[name='q']) > .btn {
  clip-path: none;
  padding: 0 18px;
}

/* the box and the button that follows it touch */
body.rm form > input[name='search'] + .btn-primary,
body.rm form > input[name='q'] + .btn-primary {
  margin-left: -8px;
}

body.rm form > input[name='search']:has(+ .btn-primary),
body.rm form > input[name='q']:has(+ .btn-primary) {
  border-right: 0;
}

/* buttons: delete is the primary button in red */
body.rm .btn-danger {
  background: var(--rm-red);
  border-color: var(--rm-red);
  color: #170604;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

body.rm .btn-danger:hover {
  background: #ff7a6e;
  border-color: #ff7a6e;
  color: #170604;
}

body.rm .btn-danger:active {
  background: #d63b30;
}

body.rm .btn-sm.btn-danger,
body.rm .btn-sm.btn-primary {
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* ranking filters (Devil Square / Chaos Castle / Blood Castle): white text, the chosen one has a gold line */
body.rm .rankings-filter-pills a {
  color: var(--rm-tx);
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  padding: 6px 14px;
  font: 500 13px var(--rm-font);
}

body.rm .rankings-filter-pills a:hover {
  color: #fff;
  border-color: var(--rm-line-3);
  background: var(--rm-bg-2);
}

body.rm .rankings-filter-pills a.active {
  color: #fff;
  background: var(--rm-gold-wash);
  border-color: var(--rm-gold);
  box-shadow: inset 0 -2px 0 var(--rm-gold);
}

body.rm .rankings-filter-label {
  color: var(--rm-tx-2);
}

/* two fields in one row inside a window (tier + months, tier + expiry) */
.rm-row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 12px;
}

@media (max-width: 560px) {
  .rm-row2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* admin transactions: the filters in one row of four */
body.rm .admin-transactions-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px 14px;
  align-items: end;
  margin: 0 0 18px;
}

body.rm .admin-transactions-filters .grid-row {
  display: contents;
}

body.rm .admin-transactions-filters [class*='grid-col'] {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}

body.rm .admin-transactions-filters .select,
body.rm .admin-transactions-filters .form-input {
  width: 100%;
  box-sizing: border-box;
}

body.rm .admin-transactions-filters__actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 1000px) {
  body.rm .admin-transactions-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* the page opened in the side drawer needs no title of its own */
#rm-drawer-side-body > h1 {
  display: none;
}

/* the ranking menu: a quiet trophy glow behind the links */
.rm-rankmenu {
  position: sticky;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(130% 55% at 0% 0%, rgba(191, 199, 219, 0.14), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 12px),
    var(--rm-bg-1);
  border: 1px solid var(--rm-line-2) !important;
  border-left: 2px solid var(--rm-gold) !important;
}

.rm-rankmenu::after {
  content: '\f091';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: -14px;
  bottom: -18px;
  font-size: 130px;
  line-height: 1;
  color: var(--rm-gold);
  opacity: 0.07;
  z-index: -1;
  pointer-events: none;
}

/* race badge: gold with dark text (it came out black on black) */
body.rm .home-info-card--race .home-info-card-badge,
body.rm .home-info-card-badge {
  min-width: 0;
  padding: 4px 9px;
  background: var(--rm-gold) !important;
  background-image: none !important;
  color: #0e0f14 !important;
  border: 0;
  box-shadow: none;
}

body.rm .home-info-card-badge i {
  margin-right: 4px;
}

/* ================================================================== round 4: market card, keys, search width, download */
body.rm .market-grid .market-item-info {
  padding: 10px 14px !important;
}

body.rm .market-grid .market-item-info > * {
  margin: 0;
}

body.rm .market-grid .market-item-body {
  padding: 8px 14px 10px;
}

body.rm .market-grid .price-section h5 {
  margin: 0 0 3px;
  padding: 0;
  font-size: 11px;
}

body.rm .market-grid .price-inline {
  padding: 0;
}

body.rm .market-grid .market-item-footer {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px !important;
  border-top: 1px solid var(--rm-line-2);
}

body.rm .market-grid .market-item-footer > * {
  margin: 0;
}

body.rm .market-grid .market-item-footer .seller-info {
  min-width: 0;
  flex: 1 1 auto;
}

body.rm .market-grid .market-item-footer .owner-actions,
body.rm .market-grid .market-item-footer > .d-flex {
  flex: none;
  flex-wrap: nowrap !important;
  gap: 6px;
}

/* useful keys: the keys on top, the text under them */
.rm-keys {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.rm-key {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
}

.rm-key__what {
  color: var(--rm-tx-2);
  font-size: 13px;
}

/* search button never takes the whole row */
body.rm form:has(> input[name='search']) > .btn,
body.rm form:has(> input[name='q']) > .btn {
  width: auto !important;
}

/* downloads: no card around the buttons */
.rm-dl .platform-downloads {
  margin-top: 6px;
}

/* ================================================================== round 4: socket system (no tables), mix chips */
.rm-sk__lead,
.rm-sk__p {
  margin: 0 0 14px;
  max-width: 90ch;
  color: var(--rm-tx-2);
  font-size: 13.5px;
}

.rm-sk__lead {
  padding: 12px 14px;
  background: var(--rm-bg);
  border-left: 3px solid var(--rm-gold);
  color: var(--rm-tx);
}

.rm-sk__h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 8px;
  font-size: 20px;
}

.rm-sk__grid {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.rm-sk__grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rm-sk__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rm-sk__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rm-sk__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rm-sk__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  min-width: 0;
}

.rm-sk__card--num {
  align-items: flex-start;
}

.rm-sk__num {
  font: 700 38px/1 var(--rm-head);
  color: var(--rm-gold);
}

.rm-sk__sub {
  font-size: 12.5px;
  color: var(--rm-tx-2);
}

.rm-sk__title {
  font: 600 17px/1.2 var(--rm-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-sk__val {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--rm-line);
  font: 500 13.5px var(--rm-mono);
  color: var(--rm-gold);
}

.rm-sk__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rm-sk__chain i {
  font-style: normal;
  color: var(--rm-tx-3);
}

.rm-sk__el {
  display: inline-block;
  padding: 2px 10px;
  background: var(--el, #66b2ff);
  color: var(--elt, #fff);
  font: 600 13px/1.5 var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rm-sk__el b {
  font-weight: 700;
  margin-left: 2px;
}

.rm-sk__note {
  padding: 12px 14px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-gold-2);
  font-size: 13.5px;
  color: var(--rm-tx);
}

.rm-sk__opts {
  display: grid;
  gap: 6px;
}

.rm-sk__opt {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

.rm-sk__optname {
  font-weight: 500;
  color: var(--rm-cream);
}

.rm-sk__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.rm-sk__step {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 8px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line);
  font: 500 13px var(--rm-mono);
  color: var(--rm-tx);
}

.rm-sk__step em {
  font: 600 10px var(--rm-head);
  letter-spacing: 0.14em;
  font-style: normal;
  color: var(--rm-tx-3);
}

@media (max-width: 1100px) {
  .rm-sk__grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rm-sk__grid--4,
  .rm-sk__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .rm-sk__grid--6,
  .rm-sk__grid--4,
  .rm-sk__grid--3,
  .rm-sk__grid--2 { grid-template-columns: minmax(0, 1fr); }
  .rm-sk__opt { grid-template-columns: minmax(0, 1fr); }
  .rm-sk__steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* mix chips: the picture and its name share one centre line */
.socket-mix-chip {
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.socket-mix-chip-icon {
  margin: 0 auto;
}

.socket-mix-chip-label {
  width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.3;
}

/* one look for every search: the box and its button are one row, same height, joined */
body.rm form:has(> input[type='text'] + .btn[type='submit']) {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}

body.rm form:has(> input[type='text'] + .btn[type='submit']) > input[type='text'] {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 340px !important;
  height: 40px;
  box-sizing: border-box;
  border-right: 0;
}

body.rm form:has(> input[type='text'] + .btn[type='submit']) > input[type='text'] + .btn {
  height: 40px;
  box-sizing: border-box;
  flex: none;
  width: auto !important;
  clip-path: none;
  padding: 0 18px;
  margin-left: -8px;
}

body.rm .admin-transactions-filters {
  max-width: none;
  width: 100%;
}

body.rm .admin-transactions-table th,
body.rm .admin-transactions-table td {
  text-align: left !important;
}

/* the information list gets the same quiet background effect as the ranking menu (a book instead of a trophy) */
.rm-docs > .page-pills {
  isolation: isolate;
  background:
    radial-gradient(130% 45% at 0% 0%, rgba(191, 199, 219, 0.12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 12px),
    var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 2px solid var(--rm-gold);
}

.rm-docs > .page-pills .nav-pills {
  border-left: 0;
}

.rm-docs > .page-pills::after {
  content: '\f02d';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  position: sticky;
  display: block;
  float: right;
  margin: -90px -10px 0 0;
  bottom: 0;
  font-size: 90px;
  line-height: 1;
  color: var(--rm-gold);
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
  text-align: right;
}

.rm-docs > .page-pills::after {
  display: none;
}

.rm-castle__more .castle-siege-modal-list {
  max-height: none;
  overflow: visible;
}

/* centred tables: the heads are centred as well, so rows and columns line up */
body.rm table.table.text-center:not(.rm-leaderboard):not(.rm-ledger) th,
body.rm table.table.text-center:not(.rm-leaderboard):not(.rm-ledger) td {
  text-align: center !important;
}

/* no icons in panel / card headers anywhere */
body.rm .panel-header i,
body.rm .big-panel-header i,
body.rm .card-header i,
body.rm .panel-title i {
  display: none !important;
}

/* ================================================================== vote sites: one row per site (name + cooldown, banner, button) */
.vote-sites-simple {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.vote-site-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
}

.vote-site-item h3 {
  font-size: 17px;
}

.vote-site-item h3 small {
  margin-left: 6px;
  font: 400 12px var(--rm-mono);
  letter-spacing: 0;
  color: var(--rm-tx-3);
}

.vote-site-wrapper {
  position: static;
}

.vote-link-simple {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
}

.vote-link-simple img {
  width: 96px;
  height: 44px;
  object-fit: contain;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  padding: 2px;
}

.vote-link-simple .vote-overlay {
  position: static;
  inset: auto;
  opacity: 1;
  display: block;
  background: var(--rm-gold);
  padding: 9px 16px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.vote-link-simple .vote-text {
  font: 700 14px/1 var(--rm-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0e0f14;
}

.vote-link-simple:hover .vote-overlay {
  background: #dfe4f0;
}

.vote-link-simple.voted .vote-overlay {
  background: var(--rm-bg-3);
  border: 1px solid var(--rm-line-3);
  clip-path: none;
}

.vote-link-simple.voted .vote-text {
  color: var(--rm-tx-2);
}

.vote-sites-simple {
  justify-items: stretch;
}

.vote-sites-simple .vote-site-item {
  width: auto;
  max-width: none;
  margin: 0;
}

.vote-site-wrapper {
  justify-self: end;
}

.vote-link-simple .vote-overlay,
.vote-link-simple .vote-text {
  background-image: none;
  box-shadow: none;
  text-shadow: none;
  transform: none;
}

.vote-link-simple .vote-text {
  display: block;
  padding: 0;
  border: 0;
  background-color: transparent;
}

/* active navigation link: a thin line close under the text */
.rm-nav__link.is-active {
  border-bottom-color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--rm-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* filter bars (search + selects + buttons): wrap inside the panel, equal heights */
body.rm form.rm-filterbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 8px 10px;
  max-width: 100%;
  margin-left: 0;
}

body.rm form.rm-filterbar > input[type='text'] {
  flex: 1 1 220px;
  min-width: 160px;
  max-width: 340px !important;
  height: 40px;
  border-right: 1px solid var(--rm-line-3);
}

body.rm form.rm-filterbar > select {
  flex: 0 1 auto;
  width: auto;
  min-width: 150px;
  max-width: 240px;
  height: 40px;
}

body.rm form.rm-filterbar > .btn {
  flex: none;
  height: 40px;
  margin-left: 0 !important;
  clip-path: none;
  padding: 0 18px;
  width: auto !important;
}

body.rm form.rm-filterbar > label {
  margin: 0;
}

.rm-toolbar > form:only-child {
  margin-left: 0;
}

@media (min-width: 900px) {
  body.rm .rm-toolbar > form.rm-filterbar {
    flex-wrap: nowrap !important;
    flex: 0 1 auto;
  }

  body.rm .rm-toolbar > form.rm-filterbar > input[type='text'] {
    flex: 1 1 260px;
    min-width: 220px;
  }
}

/* one side-menu look everywhere (ranking menu, admin menu = the information list): no glyph, same text size */
.rm-rankmenu::after {
  display: none;
}

.rm-rankmenu .nav-link {
  font-size: 15px;
}

/* drop calculator + monster finder: the same row, a field and its button */
body.rm form.rm-finder {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

body.rm form.rm-finder .form-group {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

body.rm form.rm-finder .form-input,
body.rm form.rm-finder .select2-container {
  width: 100% !important;
  max-width: none !important;
}

body.rm form.rm-finder .form-input,
body.rm form.rm-finder .select2-container .select2-selection--single {
  height: 42px;
  box-sizing: border-box;
}

body.rm form.rm-finder .rm-finder__btn {
  flex: none;
}

body.rm form.rm-finder .rm-finder__btn .btn {
  height: 42px;
  width: auto;
  padding: 0 22px;
  clip-path: none;
}

/* ================================================================== launch timer (above the Hall of Legends) */
body.rm .rm-launch.restart-countdown-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0 0 18px;
  padding: 12px 18px;
  background:
    radial-gradient(60% 140% at 100% 50%, rgba(191, 199, 219, 0.11), transparent 70%),
    var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-gold);
}

.rm-launch__label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rm-launch__eyebrow {
  font: 700 24px/1 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-launch__status {
  font: 400 12px/1 var(--rm-mono);
  letter-spacing: 0.06em;
  color: var(--rm-tx-3);
}

.rm-launch__status.launched {
  color: var(--rm-ok);
}

.rm-launch__clock {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.rm-launch__unit {
  position: relative;
  min-width: 78px;
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-3);
  border-top: 2px solid var(--rm-gold-2);
}

.rm-launch__unit--sec {
  border-top-color: var(--rm-gold);
}

.rm-launch__unit--sec::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rm-gold-wash);
  animation: rm-launch-tick 1s steps(1) infinite;
  pointer-events: none;
}

@keyframes rm-launch-tick {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

.rm-launch__num {
  font: 500 34px/1 var(--rm-mono);
  color: var(--rm-gold);
  letter-spacing: 0.02em;
}

.rm-launch__cap {
  font: 600 10px/1 var(--rm-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-launch__sep {
  align-self: flex-start;
  padding-top: 8px;
  font: 400 30px/1 var(--rm-mono);
  color: var(--rm-line-3);
}

@media (max-width: 560px) {
  body.rm .rm-launch.restart-countdown-section {
    justify-content: center;
  }

  .rm-launch__unit {
    min-width: 60px;
  }

  .rm-launch__num {
    font-size: 26px;
  }
}

/* home: the slider and the reset race card share one row */
.rm-home {
  grid-template-areas:
    'slider race'
    'news   news';
  grid-template-rows: auto auto;
  align-items: stretch;
}

.rm-home .home-reset-race-notice {
  display: flex;
  flex-direction: column;
}

.rm-home .home-reset-race-notice .panel-content,
.rm-home .home-reset-race-notice .home-info-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rm-home .home-info-card-footer {
  margin-top: auto;
}

@media (max-width: 1200px) {
  .rm-home {
    grid-template-areas:
      'slider'
      'race'
      'news';
  }
}

.rm-launch #countdown-status {
  font: 400 12px/1 var(--rm-mono);
  letter-spacing: 0.06em;
  color: var(--rm-tx-3);
}

.rm-launch #countdown-status.launched {
  color: var(--rm-ok);
}

.rm-launch #countdown-status i {
  display: none;
}

/* ================================================================== side menu = the information list (ranking menu, admin menu) */
#content-container:has(> .rm-sidemenu),
#content-container > div:has(> .rm-sidemenu) {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 0 28px;
  align-items: start;
}

#content-container:has(> .rm-sidemenu) > *,
#content-container > div:has(> .rm-sidemenu) > * {
  grid-column: 2;
  min-width: 0;
}

.rm-sidemenu {
  grid-column: 1 !important;
  grid-row: 1 / span 30;
  position: sticky;
  top: calc(var(--rm-bar-h) + 16px);
  display: block;
  margin: 0;
  max-height: calc(100vh - var(--rm-bar-h) - 32px);
  overflow: auto;
  isolation: isolate;
  background:
    radial-gradient(130% 45% at 0% 0%, rgba(191, 199, 219, 0.12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 12px),
    var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 2px solid var(--rm-gold);
}

.rm-sidemenu .nav-pills {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  border: 0;
}

.rm-sidemenu .nav-pills .nav-link {
  padding: 10px 14px;
  margin: 0 0 0 -1px;
  border: 0;
  border-left: 2px solid transparent;
  text-align: left;
  font-size: 15px;
}

.rm-sidemenu .nav-pills .nav-link:hover {
  border-left-color: var(--rm-line-3);
}

.rm-sidemenu .nav-pills .nav-link.active {
  border-left-color: var(--rm-gold);
  background: var(--rm-gold-wash);
}

@media (max-width: 1000px) {
  #content-container:has(> .rm-sidemenu),
  #content-container > div:has(> .rm-sidemenu) {
    grid-template-columns: minmax(0, 1fr);
  }

  #content-container:has(> .rm-sidemenu) > *,
  #content-container > div:has(> .rm-sidemenu) > *,
  .rm-sidemenu {
    grid-column: 1 !important;
  }

  .rm-sidemenu {
    grid-row: auto;
    position: static;
    max-height: none;
  }
}

.rm-sidemenu .nav-pills .nav-link,
.rm-sidemenu .nav-pills .nav-link.active {
  border-bottom: 0 !important;
}

.rm-sidemenu .nav-pills .nav-link.active {
  border-left: 2px solid var(--rm-gold) !important;
  background: var(--rm-gold-wash);
}

.table.rm-leaderboard td[colspan] {
  grid-column: 1 / -1;
  text-align: center !important;
  padding: 18px 0;
}

/* ================================================================== home slider: the picture fills the card, dots + timer line on top of it */
.rm-home .home-feature-slider {
  position: relative;
  min-height: 230px;
  display: flex;
  overflow: hidden;
}

.rm-home .home-feature-slider > .panel-content,
.rm-home .home-feature-slider__panel-content,
.home-feature-slider__frame,
.home-feature-slider__root,
.home-feature-slider__stage,
.home-feature-slider__viewport,
.home-feature-slider__track,
.home-feature-slider__slide,
.home-feature-slider__image-wrap {
  height: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.rm-home .home-feature-slider > .panel-content {
  flex: 1;
  width: 100%;
}

.home-feature-slider__image-wrap {
  aspect-ratio: auto;
  border: 0;
}

.home-feature-slider__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-feature-slider__stage {
  position: relative;
}

.home-feature-slider__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 52px;
  opacity: 0;
  transition: opacity 0.15s;
}

.home-feature-slider:hover .home-feature-slider__nav,
.home-feature-slider__nav:focus-visible {
  opacity: 1;
}

.home-feature-slider__nav--prev {
  left: 0;
}

.home-feature-slider__nav--next {
  right: 0;
}

.home-feature-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 3px;
  padding: 18px 14px 10px;
  justify-content: flex-start;
  background: linear-gradient(to top, rgba(12, 12, 14, 0.85), transparent);
}

body.rm .home-feature-slider__dot {
  position: relative;
  flex: 1 1 0;
  max-width: 64px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25) !important;
  overflow: hidden;
}

body.rm .home-feature-slider__dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rm-gold);
  transform-origin: left;
  animation: rm-slide-timer 6.5s linear forwards;
}

@keyframes rm-slide-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ================================================================== reset race card */
.rm-home .home-reset-race-notice {
  border-top: 3px solid var(--rm-gold);
}

.rm-home .home-reset-race-notice .panel-content {
  padding: 20px 22px;
  gap: 0;
}

.home-reset-race-notice .home-info-card-header {
  display: block;
  margin: 0 0 14px;
}

.home-reset-race-notice .home-info-card-badge {
  display: inline-block;
  margin-bottom: 10px;
}

.home-reset-race-notice .home-info-card-title {
  font-size: 30px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.home-reset-race-notice .home-info-card-body p {
  margin: 0 0 16px;
  font-size: 14px;
}

.rm-race-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rm-race-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-race-tile b {
  font: 500 20px/1 var(--rm-mono);
  color: var(--rm-gold);
}

.rm-race-tile span {
  font: 600 12px/1.2 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-tx-2);
}

.rm-race-cta {
  margin-top: auto;
  display: block;
  padding: 12px 16px;
  text-align: center;
  background: var(--rm-gold);
  color: #0e0f14 !important;
  font: 700 16px/1 var(--rm-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.rm-race-cta:hover {
  background: #dfe4f0;
}

/* ================================================================== launch timer: flip clock */
.rm-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rm-flip {
  position: relative;
  min-width: 66px;
  height: 58px;
  perspective: 360px;
  font: 500 38px/58px var(--rm-mono);
  color: var(--rm-gold);
  text-align: center;
}

.rm-flip__half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  background: var(--rm-bg-2);
  backface-visibility: hidden;
}

.rm-flip__half span {
  position: absolute;
  left: 0;
  right: 0;
  height: 200%;
  line-height: 58px;
  padding: 0 8px;
}

.rm-flip__top {
  top: 0;
  border-bottom: 1px solid #000;
  transform-origin: bottom;
}

.rm-flip__bottom {
  bottom: 0;
  background: #1d1d23;
  transform-origin: top;
}

.rm-flip__bottom span {
  top: -100%;
}

.rm-flip__flap-top,
.rm-flip__flap-bottom {
  z-index: 2;
}

.rm-flip__flap-bottom {
  transform: rotateX(90deg);
}

.rm-flip.is-flipping .rm-flip__flap-top {
  animation: rm-flip-top 0.28s ease-in forwards;
}

.rm-flip.is-flipping .rm-flip__flap-bottom {
  animation: rm-flip-bottom 0.28s 0.28s ease-out forwards;
}

@keyframes rm-flip-top {
  from { transform: rotateX(0); }
  to { transform: rotateX(-90deg); }
}

@keyframes rm-flip-bottom {
  from { transform: rotateX(90deg); }
  to { transform: rotateX(0); }
}

@media (max-width: 560px) {
  .rm-flip {
    min-width: 50px;
    height: 44px;
    font-size: 28px;
    line-height: 44px;
  }

  .rm-flip__half span {
    line-height: 44px;
  }
}

/* ================================================================== colours of the mobile app (cool grey cards, silver edges, red for a running event) */
.table.rm-leaderboard.is-page-one tbody tr:nth-child(1) {
  border-left-color: #ebc759;
}

/* top bar chips: the app's cards */
.rm-chip,
.rm-online,
.rm-icon-link,
.rm-account__btn {
  background: #282a32;
  border-color: #545761;
  color: #c7ccdb;
}

.rm-chip:hover,
.rm-online:hover,
.rm-icon-link:hover,
.rm-account__btn:hover,
.rm-pop.is-open > .rm-chip,
.rm-chip.is-on {
  background: #3a3e4e;
  border-color: #bfc7db;
  color: #edeef2;
}

/* events in the strip: grey card, the name dim, the clock in its own box (red while the event runs) */
.rm-nextup__item {
  gap: 4px;
  padding: 6px 16px;
  background: #282a32;
  border: 1px solid #545761;
  border-left-width: 1px;
  margin-right: -1px;
}

.rm-nextup__item b {
  color: #a1a6b5;
  letter-spacing: 0.1em;
}

.rm-nextup__item i {
  align-self: flex-start;
  padding: 1px 8px;
  background: #3a3e4e;
  color: #edeef2;
}

.rm-nextup__item.is-live b {
  color: #a1a6b5;
}

.rm-nextup__item.is-live i {
  background: #59211f;
  color: #ebaba6;
}

.rm-events .event-item.is-live,
.rm-pop__panel--events .rm-events .event-item.is-live {
  background: #3a1d1c;
}

.rm-events .event-item.is-live .event-timer,
.rm-events .event-item.is-live .started {
  color: #ebaba6;
}

.rm-badge--live {
  background: #59211f;
  border-color: #59211f;
  color: #ebaba6;
}

/* keys (hot keys / keyboard): the keys of the app keyboard */
.rm-key kbd {
  background: #3b3b45;
  border: 1px solid #666675;
  border-bottom-width: 3px;
  border-bottom-color: #26262e;
  color: #edeef2;
  font-weight: 500;
}

.rm-key {
  background: #1e1f26;
  border-color: #3a3c47;
}

/* events: one neutral edge for all (no orange / yellow / purple), red only while the event runs */
.rm-pop__panel--events .rm-events .event-item {
  border-bottom: 2px solid #545761;
}

.rm-pop__panel--events .rm-events .event-item.is-live {
  border-bottom-color: #a64038;
}

.rm-pop__panel--events .rm-events .event-item.is-live .event-name,
.rm-pop__panel--events .rm-events .event-item.is-live .started,
.rm-pop__panel--events .rm-events .event-item.is-live .countdown {
  color: #ebaba6;
}

.rm-pop__panel--events .rm-events .event-name {
  color: #a1a6b5;
}

/* useful keys: single keys in a tight grid, combinations in their own block at the end */
.rm-keys {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.rm-key__caps {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.rm-key kbd {
  white-space: nowrap;
}

.rm-key__plus {
  font: 600 15px/1 var(--rm-head);
  font-style: normal;
  color: var(--rm-tx-3);
}

.rm-keys__h {
  margin: 26px 0 10px;
  font-size: 18px;
}

.rm-keys--combo {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ================================================================== primary buttons: a clear blue with white text (the app palette was only a suggestion) */
:root {
  --rm-primary: #3f6fe0;
  --rm-primary-hi: #5b8cf5;
  --rm-primary-lo: #2f58b8;
}

body.rm .btn-primary,
body.rm .rm-race-cta,
body.rm .vote-link-simple .vote-overlay,
body.rm .home-info-card--race .home-info-card-badge,
body.rm .home-info-card-badge {
  background: var(--rm-primary) !important;
  border-color: var(--rm-primary) !important;
  color: #fff !important;
}

body.rm .btn-primary:hover,
body.rm .rm-race-cta:hover,
body.rm .vote-link-simple:hover .vote-overlay {
  background: var(--rm-primary-hi) !important;
  border-color: var(--rm-primary-hi) !important;
  color: #fff !important;
}

body.rm .btn-primary:active {
  background: var(--rm-primary-lo) !important;
}

body.rm .vote-link-simple .vote-text,
body.rm .rm-race-cta {
  color: #fff !important;
}

body.rm .vote-link-simple.voted .vote-overlay {
  background: var(--rm-bg-3) !important;
  border-color: var(--rm-line-3) !important;
}

body.rm .btn-primary[disabled],
body.rm .btn-primary.disabled {
  background: var(--rm-bg-3) !important;
  border-color: var(--rm-line-3) !important;
  color: var(--rm-tx-3) !important;
}

/* icons in buttons follow the text colour and are white on the filled buttons */
body.rm .btn-danger {
  background: #d63b30 !important;
  border-color: #d63b30 !important;
  color: #fff !important;
}

body.rm .btn-danger:hover {
  background: #ef5144 !important;
  border-color: #ef5144 !important;
  color: #fff !important;
}

body.rm .btn-danger:active {
  background: #b32f26 !important;
}

body.rm .btn i,
body.rm .btn .fas,
body.rm .btn .far,
body.rm .btn .fab {
  color: inherit !important;
  opacity: 1;
}

body.rm .btn-sm i {
  font-size: 13px;
}

/* ================================================================== item picker (admin add / edit item): clear what is chosen, clear what is under the pointer */
#admin-item-picker-modal .step {
  padding: 12px 14px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

#admin-item-picker-modal .step > .form-label,
#admin-item-picker-modal .form-row-item > .form-label {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--rm-tx);
}

#admin-item-picker-modal select,
#admin-item-picker-modal .form-input {
  height: 40px;
  border: 1px solid var(--rm-line-3);
  background-color: var(--rm-bg-2);
  transition: border-color 0.1s, background-color 0.1s;
}

#admin-item-picker-modal select:hover,
#admin-item-picker-modal .form-input:hover {
  border-color: var(--rm-primary-hi);
  background-color: var(--rm-bg-3);
}

#admin-item-picker-modal select:focus,
#admin-item-picker-modal .form-input:focus {
  border-color: var(--rm-primary);
  box-shadow: 0 0 0 2px rgba(63, 111, 224, 0.35);
}

#admin-item-picker-modal select.select-chosen,
#admin-item-picker-modal select:not([value='']):valid {
  border-color: var(--rm-line-3);
}

/* every checkbox is a tile: pointer over it = lighter, ticked = blue frame */
#admin-item-picker-modal #picker-exc-container label,
#admin-item-picker-modal #picker-luck-wrap,
#admin-item-picker-modal #picker-skill-wrap,
#admin-item-picker-modal #picker-raven-container label,
#admin-item-picker-modal #picker-jol-type-container label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  background: var(--rm-bg-2);
  border: 1px solid var(--rm-line-3);
  font: 500 14px/1.2 var(--rm-font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--rm-tx);
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
}

#admin-item-picker-modal #picker-luck-skill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#admin-item-picker-modal #picker-luck-wrap,
#admin-item-picker-modal #picker-skill-wrap {
  margin-left: 0;
}

#admin-item-picker-modal #picker-exc-container label:hover,
#admin-item-picker-modal #picker-luck-wrap:hover,
#admin-item-picker-modal #picker-skill-wrap:hover,
#admin-item-picker-modal #picker-raven-container label:hover,
#admin-item-picker-modal #picker-jol-type-container label:hover {
  background: var(--rm-bg-3);
  border-color: var(--rm-primary-hi);
  color: #fff;
}

#admin-item-picker-modal #picker-exc-container label:has(input:checked),
#admin-item-picker-modal #picker-luck-wrap:has(input:checked),
#admin-item-picker-modal #picker-skill-wrap:has(input:checked),
#admin-item-picker-modal #picker-raven-container label:has(input:checked),
#admin-item-picker-modal #picker-jol-type-container label:has(input:checked) {
  background: rgba(63, 111, 224, 0.18);
  border-color: var(--rm-primary);
  box-shadow: inset 3px 0 0 var(--rm-primary);
  color: #fff;
}

#admin-item-picker-modal input[type='checkbox'],
#admin-item-picker-modal input[type='radio'] {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--rm-primary);
}

/* the empty slots of the inventory / equipment while an item is being placed */
.admin-slot-drop:hover,
.admin-slot.empty-slot:hover,
.admin-warehouse-slot.admin-slot-drop:hover {
  outline: 2px solid var(--rm-primary-hi);
  outline-offset: -2px;
  background-color: rgba(63, 111, 224, 0.25);
}

/* ================================================================== notifications: dark card, a coloured bar and icon by meaning (green / red / amber / blue) */
body.rm #notification-container .notification {
  background: var(--rm-bg-2);
  border: 1px solid var(--rm-line-3);
  border-left-width: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  color: var(--rm-tx);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 40px 14px 16px;
}

body.rm #notification-container .notification.success { border-left-color: #5fd18b; }
body.rm #notification-container .notification.error { border-left-color: #ff4d40; }
body.rm #notification-container .notification.warning { border-left-color: #ffb02e; }
body.rm #notification-container .notification.info { border-left-color: #5b8cf5; }

body.rm #notification-container .notification.success .notification-icon { color: #5fd18b; }
body.rm #notification-container .notification.error .notification-icon { color: #ff6a5e; }
body.rm #notification-container .notification.warning .notification-icon { color: #ffb02e; }
body.rm #notification-container .notification.info .notification-icon { color: #5b8cf5; }

body.rm #notification-container .notification .notification-content {
  color: var(--rm-tx);
}

body.rm #notification-container .notification .notification-close {
  color: var(--rm-tx-2);
}

/* ================================================================== item cards (box drops, item bags, boss drops, sets): five per row, fewer on smaller screens */
.rm-docs #information-content .grid-row:has(> .grid-col-3),
#information-content .grid-row:has(> .grid-col-3) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.rm-docs #information-content .grid-row > .grid-col-3 .market-item-header {
  padding: 7px 10px;
}

.rm-docs #information-content .grid-row > .grid-col-3 .item-name {
  font-size: 14px;
}

.rm-docs #information-content .grid-row > .grid-col-3 .market-item > .grid-row {
  padding: 8px;
  gap: 4px;
  justify-content: flex-start;
}

.rm-docs #information-content .grid-row > .grid-col-3 .kundun-item-icon img {
  max-width: 40px;
  max-height: 40px;
}

@media (max-width: 1000px) {
  .rm-docs #information-content .grid-row:has(> .grid-col-3),
  #information-content .grid-row:has(> .grid-col-3) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .rm-docs #information-content .grid-row:has(> .grid-col-3),
  #information-content .grid-row:has(> .grid-col-3) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rm-docs #information-content .grid-row:has(> .grid-col-3),
  #information-content .grid-row:has(> .grid-col-3) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .rm-docs #information-content .grid-row:has(> .grid-col-3),
  #information-content .grid-row:has(> .grid-col-3) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================================================================== bidding: two auctions per row, the bid is a box with its button */
body.rm .bidding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.rm .bidding-grid .bidding-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

body.rm .bidding-card > .panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.rm .bidding-item-row {
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
}

body.rm .bidding-item-image .item-icon {
  width: 72px;
  height: 72px;
  background-color: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

body.rm .bidding-item-details p {
  margin: 0 0 4px;
  font-size: 13.5px;
}

body.rm .bidding-form {
  margin-top: auto !important;
  padding-top: 14px;
  border-top: 1px solid var(--rm-line);
}

.rm-bidrow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 6px;
}

.rm-bidrow .bid-amount-input {
  flex: 1 1 auto;
  max-width: none;
  height: 40px;
  box-sizing: border-box;
  border-right: 0;
}

.rm-bidrow .place-bid-btn {
  flex: none;
  height: 40px;
  padding: 0 22px;
  clip-path: none;
}

@media (max-width: 900px) {
  body.rm .bidding-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* post list */
.rm-playercell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.rm-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: var(--rm-line-3);
}

.rm-dot.is-on {
  background: var(--rm-ok);
}

.rm-msg {
  color: var(--rm-tx);
  overflow-wrap: anywhere;
}

/* ================================================================== account forms: two cards in a row, one-row fields */
.rm-twocol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.rm-twocol > .panel {
  margin: 0;
}

.rm-twocol--auth {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
}

.rm-hint {
  margin: 0 0 14px;
  color: var(--rm-tx-2);
  font-size: 13.5px;
  max-width: 70ch;
}

/* a box or a file picker with its button: one row, joined */
body.rm form:has(> input[type='email'] + .btn[type='submit']),
body.rm form:has(> input[type='file'] + .btn[type='submit']) {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
}

body.rm form:has(> input[type='email'] + .btn[type='submit']) > input,
body.rm form:has(> input[type='file'] + .btn[type='submit']) > input {
  flex: 1 1 220px;
  min-width: 0;
  max-width: none !important;
  height: 40px;
  box-sizing: border-box;
  border-right: 0;
}

body.rm form:has(> input[type='email'] + .btn[type='submit']) > .btn,
body.rm form:has(> input[type='file'] + .btn[type='submit']) > .btn {
  height: 40px;
  box-sizing: border-box;
  flex: none;
  width: auto !important;
  clip-path: none;
  padding: 0 18px;
  margin-left: -8px;
}

body.rm form:has(> input[type='file'] + .btn[type='submit']) > input[type='file'] {
  padding: 7px 10px;
  font-size: 13px;
}

.rm-avatarrow {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rm-avatarrow > form {
  flex: 1 1 auto;
  min-width: 0;
}

.rm-avatarrow .display-name-avatar-preview {
  flex: none;
  margin: 0;
}

/* change class / rename: the fields in one row, the button under them with room below */
.rm-formrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.rm-formrow > * {
  margin: 0 !important;
}

.rm-formbtn {
  margin: 0 0 22px;
  min-width: 220px;
}

@media (max-width: 700px) {
  .rm-formrow {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* register: the side card */
.rm-steps {
  list-style: none;
  counter-reset: rmstep;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rm-steps li {
  counter-increment: rmstep;
  position: relative;
  padding: 0 0 0 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 34px;
}

.rm-steps li::before {
  content: counter(rmstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-3);
  font: 600 16px var(--rm-head);
  color: var(--rm-gold);
}

.rm-steps li b {
  font: 600 16px/1.2 var(--rm-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-steps li span {
  font-size: 13px;
  color: var(--rm-tx-2);
}

.rm-authside__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rm-authside__facts div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-authside__facts b {
  font: 700 20px/1 var(--rm-head);
  letter-spacing: 0.05em;
  color: var(--rm-gold);
}

.rm-authside__facts span {
  font-size: 11.5px;
  color: var(--rm-tx-3);
}

@media (max-width: 1000px) {
  .rm-twocol,
  .rm-twocol--auth {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================================================================== rules: a menu of the groups, the rules numbered */
.rm-rules {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rm-rules .rm-rules__menu {
  grid-column: 1;
  grid-row: 1;
}

.rm-rules__body {
  min-width: 0;
}

.rm-rules__body .rule-notice {
  margin: 0 0 20px;
}

body.rm .rm-rules .rules-container {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body.rm .rm-rules .rule-category {
  scroll-margin-top: calc(var(--rm-bar-h) + 16px);
}

body.rm .rm-rules .rules-list {
  counter-reset: rmrule;
}

body.rm .rm-rules .rules-list li {
  counter-increment: rmrule;
  padding-left: 52px;
}

body.rm .rm-rules .rules-list li::before {
  content: counter(rmrule, decimal-leading-zero);
  width: auto;
  height: auto;
  background: none;
  top: 14px;
  left: 14px;
  font: 600 15px/1 var(--rm-mono);
  color: var(--rm-gold-2);
}

body.rm .rm-rules .rules-list li small {
  font-size: 13px;
}

@media (max-width: 1000px) {
  .rm-rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-rules .rm-rules__menu {
    position: static;
    max-height: none;
  }
}

/* confirm windows (every "Are you sure ..." window): a clear blue Yes, a plain No */
body.rm .notiflix-confirm-content,
body.rm .notiflix-confirm-wrap .notiflix-confirm-content {
  background-color: var(--rm-bg-1) !important;
  border: 1px solid var(--rm-line-3) !important;
  border-top: 3px solid var(--rm-primary) !important;
}

body.rm .nx-confirm-button-ok,
body.rm .notiflix-confirm-buttons .nx-confirm-button-ok {
  background: var(--rm-primary) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
}

body.rm .nx-confirm-button-ok:hover {
  background: var(--rm-primary-hi) !important;
  color: #fff !important;
}

body.rm .nx-confirm-button-cancel {
  background: var(--rm-bg-3) !important;
  color: var(--rm-tx) !important;
  border: 1px solid var(--rm-line-3) !important;
}

body.rm .nx-confirm-button-cancel:hover {
  background: var(--rm-line-2) !important;
  border-color: var(--rm-tx-3) !important;
  color: #fff !important;
}

/* ================================================================== single items (swords, axes, ...): a small tile, picture left and name right */
.rm-docs #information-content .grid-row:has(> .grid-col-3 > .market-item > .text-center > .kundun-item-icon) {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 8px;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas: 'icon name';
  align-items: stretch;
  min-height: 64px;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) > .market-item-header {
  grid-area: name;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: none;
  border: 0;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) .item-name {
  font-size: 15px;
  letter-spacing: 0.06em;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) > .text-center {
  grid-area: icon;
  padding: 0;
  margin: 0;
  background: var(--rm-bg);
  border-right: 1px solid var(--rm-line-2);
  display: grid;
  place-items: center;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) .kundun-item-icon {
  width: 100%;
  height: 100%;
  min-height: 62px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #2c2e38 0%, #1b1c22 75%);
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) .kundun-item-icon img {
  max-width: 46px;
  max-height: 52px;
  filter: brightness(1.35) contrast(1.05);
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon):hover {
  border-color: var(--rm-primary-hi);
}

/* top bar: Bank and the account button are the same size */
body.rm .rm-bar__tools .rm-chip--bank,
body.rm .rm-bar__tools .rm-account__btn {
  height: 32px;
  padding: 0 12px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 15px/1 var(--rm-head);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.rm .rm-bar__tools .rm-chip--bank i {
  font-size: 13px;
}

@media (max-width: 640px) {
  body.rm .rm-bar__tools .rm-chip--bank,
  body.rm .rm-bar__tools .rm-account__btn {
    height: 36px;
  }
}

/* single item tiles: the picture fills its whole box, no background behind it */
.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) > .text-center {
  background: none;
  padding: 0 !important;
  width: 64px;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) .kundun-item-icon {
  background: none !important;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 64px;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) .kundun-item-icon img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  padding: 3px;
  box-sizing: border-box;
  filter: none;
}

/* single item tiles: the picture at its own size (not stretched), centred, only shrunk when it is bigger than the box */
.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) .kundun-item-icon {
  display: grid;
  place-items: center;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) .kundun-item-icon img {
  width: auto;
  height: auto;
  max-width: 56px;
  max-height: 56px;
  padding: 0;
  object-fit: contain;
}

/* single item tiles: the whole tile is the hover target of the item tooltip, not only the picture */
.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) {
  position: relative;
  cursor: help;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) > .text-center,
.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) .kundun-item-icon {
  position: static;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon) .kundun-item-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.rm-docs #information-content .market-item:has(> .text-center > .kundun-item-icon):hover {
  background: var(--rm-bg-2);
}

/* ================================================================== forum topic / private conversation: content on the left, the reply box on the right */
body.rm .forum-topic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px 14px;
}

body.rm .forum-topic-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* breadcrumb: Forum / Section / Title on ONE line, the title is just its last crumb */
body.rm .forum-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 8px;
  font: 600 15px/1.3 var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

body.rm .forum-breadcrumb a {
  color: var(--rm-tx-2);
}

body.rm .forum-breadcrumb a:hover {
  color: var(--rm-gold);
}

body.rm .forum-crumb-sep {
  color: var(--rm-line-3);
}

body.rm .forum-breadcrumb h1.forum-crumb-title {
  display: inline;
  margin: 0;
  padding: 0;
  font: 700 15px/1.3 var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-cream);
  overflow-wrap: anywhere;
}

body.rm .forum-topic-thread-search-row {
  margin: 0;
}

body.rm .forum-topic-thread-search {
  height: 36px;
  max-width: 420px;
  width: 100%;
}

body.rm .forum-topic-thread-search-hint {
  display: none;
}

body.rm .forum-topic-header-main > p {
  margin: 8px 0 0;
  font: 600 12px/1.3 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

/* the grid: opening message + replies | reply box (sticky) */
body.rm .big-panel-content.forum-topic-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  grid-template-areas:
    'op      composer'
    'replies composer'
    'nav     composer';
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
  min-height: 0;
  padding: 18px;
}

body.rm .forum-topic-op-column {
  grid-area: op;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

body.rm .forum-topic-op-column .forum-post-op-wrap {
  margin: 0;
  padding: 0;
  border: 0;
}

body.rm .forum-topic-scroll {
  grid-area: replies;
  min-width: 0;
  min-height: 0;
}

body.rm .forum-topic-chunk-nav {
  grid-area: nav;
}

body.rm .forum-topic-composer.forum-topic-composer-below-op,
body.rm .forum-topic-composer-muted.forum-topic-composer-below-op {
  grid-area: composer;
  position: sticky;
  top: calc(var(--rm-bar-h) + 16px);
  margin: 0;
  padding: 16px;
  max-height: calc(100vh - var(--rm-bar-h) - 32px);
  overflow: auto;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-top: 3px solid var(--rm-primary);
  box-shadow: none;
  z-index: 3;
}

body.rm .forum-topic-composer-title {
  margin: 0 0 12px;
  font-size: 20px;
}

body.rm .forum-topic-page .forum-reply-no-scroll-pref,
body.rm .forum-topic-page .forum-reply-composer-sticky-pref {
  display: none;
}

/* message cards */
body.rm .forum-post {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-line-3);
  margin: 0 0 12px;
}

body.rm .forum-post.forum-post--reply {
  border-left-color: var(--rm-primary);
}

body.rm .forum-post-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
}

body.rm .forum-post-aside,
body.rm .forum-post-aside--compact {
  flex: 0 0 auto;
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
}

body.rm .forum-post-aside .forum-avatar-wrap {
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid var(--rm-line-3);
}

body.rm .forum-post-aside .forum-aside-name {
  display: none;
}

body.rm .forum-post-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

body.rm .forum-post-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--rm-line);
}

body.rm .forum-post-dateline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
}

body.rm .forum-post-dateline strong,
body.rm .forum-private-post-author {
  font: 600 15px/1 var(--rm-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

body.rm .forum-post-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--rm-tx);
  overflow-wrap: anywhere;
}

body.rm .forum-post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.rm .forum-post-actions button {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  color: var(--rm-tx-2);
}

body.rm .forum-post-actions button:hover {
  border-color: var(--rm-primary-hi);
  color: #fff;
}

body.rm .forum-post-actions .btn-remove:hover {
  border-color: var(--rm-red);
  color: var(--rm-red);
}

/* load older: one wide quiet button */
body.rm .forum-load-older-wrap {
  align-items: stretch;
  padding: 4px 0 18px;
}

body.rm .forum-load-older-btn {
  width: 100%;
  height: 40px;
  background: var(--rm-bg-1);
  border: 1px dashed var(--rm-line-3);
  color: var(--rm-tx-2);
  font: 600 14px var(--rm-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.rm .forum-load-older-btn:hover {
  border-color: var(--rm-primary-hi);
  color: #fff;
}

@media (max-width: 1100px) {
  body.rm .big-panel-content.forum-topic-chat-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'op'
      'composer'
      'replies'
      'nav';
  }

  body.rm .forum-topic-composer.forum-topic-composer-below-op,
  body.rm .forum-topic-composer-muted.forum-topic-composer-below-op {
    position: static;
    max-height: none;
    margin: 0 0 16px;
  }
}

body.rm #content-container .forum-breadcrumb h1.forum-crumb-title {
  display: inline;
  margin: 0;
  padding: 0;
  font: 700 15px/1.3 var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

body.rm .forum-post-row--compact .forum-post-aside--compact,
body.rm .forum-post-row--compact .forum-post-main {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
}

body.rm .forum-post-row--compact .forum-avatar-wrap,
body.rm .forum-post-row--compact .forum-avatar-pop-btn {
  width: 44px;
  height: 44px;
}

/* forum topics: the author's name sits under the small avatar (private chats show it in the card header instead) */
body.rm .forum-topic-page:not(.forum-private-thread-page) .forum-post-aside {
  width: 72px;
  text-align: center;
}

body.rm .forum-topic-page:not(.forum-private-thread-page) .forum-post-aside .forum-aside-name {
  display: block;
  margin-top: 6px;
  font: 600 13px/1.2 var(--rm-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rm-cream);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.rm .forum-topic-page:not(.forum-private-thread-page) .forum-post-aside .forum-avatar-pop-btn {
  margin: 0 auto;
  display: block;
}

/* message card: the author column is a tinted strip with a divider, then the content */
body.rm .forum-post-row {
  padding: 0;
  gap: 0;
  align-items: stretch;
}

body.rm .forum-post-row .forum-post-aside,
body.rm .forum-post-row--compact .forum-post-aside--compact {
  flex: 0 0 88px;
  width: 88px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--rm-bg);
  border: 0;
  border-right: 1px solid var(--rm-line-2);
}

body.rm .forum-post-row .forum-post-main,
body.rm .forum-post-row--compact .forum-post-main {
  padding: 12px 16px;
}

body.rm .forum-private-thread-page .forum-post-row .forum-post-aside,
body.rm .forum-private-thread-page .forum-post-row--compact .forum-post-aside--compact {
  flex-basis: 68px;
  width: 68px;
}

/* the avatar when the player has no picture: a clean square with the first letter */
body.rm .forum-avatar-wrap {
  border-radius: 0;
  overflow: hidden;
}

body.rm .forum-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2c2e38, #1d1e25);
  color: var(--rm-cream);
  font: 700 20px/1 var(--rm-head);
}

body.rm .forum-post-aside .forum-post-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

body.rm .forum-post-aside .forum-avatar-wrap {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--rm-line-3) !important;
  box-sizing: border-box;
  overflow: hidden;
}

body.rm .forum-post-aside .forum-avatar-wrap .forum-avatar-placeholder,
body.rm .forum-post-aside .forum-avatar-wrap .forum-avatar-img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  display: grid;
}

body.rm .forum-post-aside .forum-avatar-wrap .forum-avatar-img {
  display: block;
  object-fit: cover;
}

body.rm .forum-post-aside .forum-avatar-pop-btn {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

/* ================================================================== reply box: roomier, and it can open in a big window */
/* desktop only: below 1101px the topic is one column (the @media (max-width: 1100px) rule above); without this media
   query this rule won on phones too and squeezed the messages into a 0 px column */
@media (min-width: 1101px) {
  body.rm .big-panel-content.forum-topic-chat-layout {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
  }
}

body.rm .forum-topic-composer .EasyMDEContainer .CodeMirror {
  min-height: 190px !important;
}

body.rm .forum-topic-composer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rm-composer-expand {
  height: 28px;
  padding: 0 14px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-3);
  color: var(--rm-tx-2);
  font: 600 13px/1 var(--rm-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: url('/assets/pointer.cur'), pointer;
}

.rm-composer-expand:hover {
  border-color: var(--rm-primary-hi);
  color: #fff;
}

.rm-composer-backdrop {
  display: none;
}

body.rm-composer-open .rm-composer-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.72);
}

body.rm-composer-open {
  overflow: hidden;
}

body.rm .forum-topic-composer.is-expanded {
  position: fixed !important;
  top: 6vh !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: min(1100px, 92vw);
  max-height: 88vh !important;
  z-index: 1200 !important;
  margin: 0 !important;
  padding: 22px 26px !important;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

body.rm .forum-topic-composer.is-expanded .EasyMDEContainer .CodeMirror {
  height: calc(88vh - 280px) !important;
  min-height: 300px !important;
  font-size: 16px;
}

body.rm .forum-topic-composer.is-expanded .forum-topic-composer-title {
  font-size: 24px;
}

/* long names: the name under the avatar is cut with an ellipsis (the full name is in the tooltip) */
body.rm .forum-post-aside .forum-aside-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* the "search in this topic / conversation" box: short */
body.rm .forum-topic-thread-search-row {
  max-width: 280px;
  width: 280px;
}

body.rm .forum-topic-page .forum-topic-thread-search {
  width: 100% !important;
  max-width: 280px !important;
  height: 34px;
}

/* bans / warnings in the side drawer: the drawer has the title, the panel does not repeat it */
.rm-drawer .rm-tone-ban > .panel-header,
.rm-drawer .rm-tone-warn > .panel-header {
  display: none;
}

.rm-drawer .rm-tone-ban,
.rm-drawer .rm-tone-warn {
  border-width: 0;
  background: none;
}

.rm-drawer .rm-tone-ban > .panel-content,
.rm-drawer .rm-tone-warn > .panel-content {
  padding: 0;
}

.rm-drawer .rm-ledger td {
  vertical-align: top;
}

.rm-drawer .reason-tooltip {
  display: inline-block;
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ================================================================== vault workspace: one board with the vaults, cards on the right */
body.rm #warehouse-storage.tab-content.active {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0 20px;
}

body.rm #sell-items-trigger {
  display: none !important;
}

/* the board: both halves of the vault in one panel, a divider between them */
body.rm #warehouse-storage .warehouse-vaults-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(191, 199, 219, 0.07), transparent 70%),
    var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

body.rm #warehouse-storage .warehouse-vault-pane {
  flex: 0 1 auto;
  border: 0;
  background: none;
  padding: 0 0 16px;
}

body.rm #warehouse-storage .warehouse-vault-pane + .warehouse-vault-pane {
  border-left: 1px solid var(--rm-line-2);
}

body.rm #warehouse-storage .warehouse-vault-pane-title {
  margin: 0 0 14px !important;
  padding: 11px 16px;
  background: none;
  text-align: center !important;
  border-bottom: 1px solid var(--rm-line);
}

body.rm #warehouse-storage .warehouse-vault-pane-grid {
  padding: 0 18px;
  display: flex;
  justify-content: center;
}

/* cards */
.rm-vside {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--rm-bar-h) + 16px);
  border: 0 !important;
  background: none !important;
}

.rm-vcard {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  padding: 0 0 14px;
}

.rm-vcard__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 11px 16px;
  background: var(--rm-bg-2);
  border-bottom: 1px solid var(--rm-line-2);
  font: 600 15px/1 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-cream);
}

.rm-vcard > :not(.rm-vcard__title) {
  margin-left: 14px;
  margin-right: 14px;
}

.rm-vcard__count {
  font: 500 13px var(--rm-mono);
  letter-spacing: 0;
  color: var(--rm-tx-2);
}

.rm-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.rm-seg__btn {
  height: 34px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-3);
  color: var(--rm-tx-2);
  font: 600 14px var(--rm-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: url('/assets/pointer.cur'), pointer;
}

.rm-seg__btn:hover {
  border-color: var(--rm-primary-hi);
  color: #fff;
}

.rm-seg__btn.is-on {
  background: var(--rm-primary);
  border-color: var(--rm-primary);
  color: #fff;
}

.rm-vcard__link {
  display: flex;
  justify-content: space-between;
  width: calc(100% - 28px);
  margin-top: 10px;
  padding: 8px 12px;
  background: none;
  border: 1px dashed var(--rm-line-3);
  color: var(--rm-tx-2);
  font: 600 13px var(--rm-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: url('/assets/pointer.cur'), pointer;
}

.rm-vcard__link:hover {
  color: #fff;
  border-color: var(--rm-primary-hi);
}

.rm-sel__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}

.rm-sel__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  font-size: 13px;
}

.rm-sel__empty {
  color: var(--rm-tx-3);
  border-style: dashed !important;
  background: none !important;
}

.rm-sel__img {
  flex: none;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.rm-sel__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rm-sel__btn {
  width: calc(100% - 28px);
  margin-top: 12px;
  height: 42px;
  clip-path: none;
}

details.rm-vcard > summary {
  cursor: url('/assets/pointer.cur'), pointer;
  list-style: none;
  margin-bottom: 0;
}

details.rm-vcard[open] > summary {
  margin-bottom: 12px;
}

details.rm-vcard > summary::-webkit-details-marker {
  display: none;
}

details.rm-vcard > summary::after {
  content: '+';
  font: 500 18px var(--rm-mono);
  color: var(--rm-tx-3);
}

details.rm-vcard[open] > summary::after {
  content: '\2212';
}

.rm-vside .rm-wh-toolbar__hints {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0;
}

@media (max-width: 1000px) {
  body.rm #warehouse-storage.tab-content.active {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-vside {
    position: static;
  }

  body.rm #warehouse-storage .warehouse-vault-pane + .warehouse-vault-pane {
    border-left: 0;
    border-top: 1px solid var(--rm-line-2);
  }
}

/* vault picker: Main + numbers, five to a row */
.rm-seg {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rm-seg .rm-seg__btn:first-child {
  grid-column: span 2;
}

/* item pictures: the picture itself has no background and no frame; the cell around it (market / bidding card) keeps its tile */
body.rm .item-icon {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0;
}

/* the cards column is as tall as the whole workspace, so while it sticks it never runs over the rules block below the board */
body.rm #warehouse-storage > .rm-vside {
  grid-column: 2;
  grid-row: 1 / span 10;
}

body.rm #warehouse-storage > #virtual-bank,
body.rm #warehouse-storage > .rm-details {
  grid-column: 1;
}

@media (max-width: 1000px) {
  body.rm #warehouse-storage > .rm-vside {
    grid-column: 1;
    grid-row: 1;
  }

  body.rm #warehouse-storage > #user-warehouse {
    grid-row: 2;
  }
}

/* ================================================================== scrap warehouse: the same workspace (board left, cards right) */
body.rm #scrap-items.tab-content.active {
  display: block !important;
  max-width: none;
  margin: 0;
}

.rm-vwork {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0 20px;
  align-items: start;
}

.rm-vwork__board {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.rm-vwork > .rm-vside {
  grid-column: 2;
  grid-row: 1 / span 10;
}

.rm-vwork__rules {
  grid-column: 1;
  min-width: 0;
}

.rm-hidden-buttons {
  display: none !important;
}

body.rm #scrap-items .warehouse-vaults-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(191, 199, 219, 0.07), transparent 70%),
    var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

body.rm #scrap-items .warehouse-vault-pane {
  flex: 0 1 auto;
  border: 0;
  background: none;
  padding: 0 0 16px;
}

body.rm #scrap-items .warehouse-vault-pane + .warehouse-vault-pane {
  border-left: 1px solid var(--rm-line-2);
}

body.rm #scrap-items .warehouse-vault-pane-title {
  margin: 0 0 14px !important;
  padding: 11px 16px;
  background: none;
  text-align: center !important;
  border-bottom: 1px solid var(--rm-line);
}

body.rm #scrap-items .warehouse-vault-pane-grid {
  padding: 0 18px;
  display: flex;
  justify-content: center;
}

.rm-scrapstat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.rm-scrapstat div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-scrapstat b {
  font: 600 22px/1 var(--rm-mono);
  color: var(--rm-gold);
}

.rm-scrapstat span {
  font: 600 11px/1.2 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-sel__btn--all b {
  margin-left: 4px;
  color: var(--rm-gold);
}

.rm-scrap__clear[hidden] {
  display: none;
}

@media (max-width: 1000px) {
  .rm-vwork {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-vwork > .rm-vside {
    grid-column: 1;
    grid-row: 1;
  }

  .rm-vwork__board {
    grid-row: 2;
  }

  .rm-vwork__rules {
    grid-row: 3;
  }

  .rm-vside {
    position: static;
  }
}

/* scrap: board starts level with the cards, and the rules block gets air below the board */
body.rm #scrap-items .warehouse-vaults-wrapper {
  margin-top: 0;
}

body.rm #scrap-items .rm-vwork__rules {
  margin-top: 16px;
}

body.rm #scrap-items .rm-vwork__rules > .scrap-rules {
  margin-top: 0 !important;
}

/* ================================================================== vault workspaces on a phone: pick vault, see selection, then the board; help last */
@media (max-width: 1000px) {
  body.rm #warehouse-storage .rm-vside,
  body.rm .rm-vwork > .rm-vside {
    display: contents !important;
  }

  body.rm #warehouse-storage.tab-content.active,
  body.rm .rm-vwork {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.rm #warehouse-storage .rm-vside > .rm-vcard:nth-child(1),
  body.rm .rm-vwork > .rm-vside > .rm-vcard:nth-child(1) { order: 1; }
  body.rm #warehouse-storage .rm-vside > .rm-vcard:nth-child(2),
  body.rm .rm-vwork > .rm-vside > .rm-vcard:nth-child(2) { order: 2; }
  body.rm #warehouse-storage #user-warehouse,
  body.rm .rm-vwork__board { order: 3; grid-row: auto; }
  body.rm #warehouse-storage .rm-vside > .rm-vcard--help,
  body.rm .rm-vwork > .rm-vside > .rm-vcard--help { order: 4; }
  body.rm .rm-vwork__rules { order: 5; grid-row: auto; margin-top: 0; }

  .rm-vcard .rm-sel__btn {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
    box-sizing: border-box;
  }
}

@media (max-width: 1000px) {
  body.rm #warehouse-storage.tab-content.active > :not(.rm-vside):not(#user-warehouse) {
    order: 5;
    grid-row: auto;
  }
}

/* sell bank items: same card look as the vault pages, no sticky (the card is taller than the screen), air before the rules */
.rm-sellbank {
  margin-bottom: 20px;
}

.rm-sellbank__side {
  position: static;
  padding: 0 0 16px;
  border: 1px solid var(--rm-line-2);
  border-top: 1px solid var(--rm-line-2);
}

.rm-sellbank__side .rm-sellbank__title {
  margin: 0 0 14px;
  padding: 12px 16px;
  font-size: 15px;
  background: var(--rm-bg-2);
  border-bottom: 1px solid var(--rm-line-2);
}

.rm-sellbank__side .rm-sellbank__prices,
.rm-sellbank__side .btn {
  margin-left: 16px;
  margin-right: 16px;
}

.rm-sellbank__side .btn {
  width: calc(100% - 32px);
}

.rm-sellbank + .rm-details {
  margin-top: 0 !important;
}

/* sell bank items: items on top, the prices below in a wide grid (no tall side column) */
.rm-sellbank {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.rm-sellbank__side .rm-sellbank__prices {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.rm-sellbank__side .btn {
  width: 320px;
  max-width: calc(100% - 32px);
}

/* sell bank items: "what to sell" is a card too */
.rm-sellbank__items {
  padding: 0 0 16px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
}

.rm-sellbank__items .rm-sellbank__title {
  margin: 0 0 14px;
  padding: 12px 16px;
  font-size: 15px;
  background: var(--rm-bg-2);
  border-bottom: 1px solid var(--rm-line-2);
}

.rm-sellbank__items .rm-sellbank__list {
  margin: 0 16px;
}

/* account menu: private messages is a full-width row, the unread count a small red pill at the right */
.rm-account__links a.rm-account__pm {
  grid-column: 1 / -1;
}

.rm-account__links a.rm-account__pm > span:first-child {
  white-space: nowrap;
}

.rm-account__links a.rm-account__pm .rm-badge {
  flex: none;
  min-width: 22px;
  padding: 0 7px;
  font: 600 12px/20px var(--rm-mono);
  color: #fff;
  background: var(--rm-red);
  border-color: var(--rm-red);
}

/* market card (buyer view): seller details on top, the two buttons below sharing the width */
body.rm .market-grid .market-item-footer:has(> .d-flex) {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

body.rm .market-grid .market-item-footer:has(> .d-flex) > .d-flex {
  flex: none;
  width: 100%;
}

body.rm .market-grid .market-item-footer:has(> .d-flex) > .d-flex > .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
}

/* market: the cards sit in a wrapper inside the grid, so the wrapper must not be the single grid cell */
body.rm .market-grid > #market-table {
  display: contents;
}

/* market card: the owner's Edit price / Remove sit in the same row as the buyer's Buy / Private message */
body.rm .market-grid .market-item-footer:has(> .owner-actions) {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

body.rm .market-grid .market-item-footer > .owner-actions {
  flex: none;
  width: 100%;
  flex-wrap: nowrap;
  gap: 6px;
}

body.rm .market-grid .market-item-footer > .owner-actions > .btn {
  flex: 1 1 0;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
  color: inherit;
}

body.rm .market-grid .market-item-footer > .owner-actions > .btn-edit {
  color: #fff;
}

body.rm .market-grid .market-item-footer > .owner-actions > .btn-remove {
  color: var(--rm-tx-2);
}

/* market card: seller info as label / value rows */
body.rm .market-grid .seller-info {
  display: grid;
  gap: 0;
}

body.rm .market-grid .rm-seller__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rm-line);
}

body.rm .market-grid .rm-seller__row:last-child {
  border-bottom: 0;
}

body.rm .market-grid .rm-seller__k {
  font: 600 11px/1.2 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

body.rm .market-grid .rm-seller__v {
  font: 500 13px/1.2 var(--rm-mono);
  color: var(--rm-tx);
  text-align: right;
}

body.rm .market-grid .rm-seller__v a {
  color: var(--rm-gold);
}

body.rm .market-grid .market-expiry--soon .rm-seller__v {
  color: var(--rm-red);
}

body.rm .market-grid .market-expiry--expired .rm-seller__v {
  color: var(--rm-tx-3);
}

/* sold / purchased: the seller info is the only thing in the footer, so it fills the whole width */
body.rm .market-grid .market-item-footer > .seller-info:only-child {
  width: 100%;
  flex: 1 1 100%;
}

/* sell items to market window: selected items on the left, prices in a wrapping grid; one column on a phone */
#market-modal .modal__content > .grid-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

#market-modal .modal__content > .grid-row > [class*="grid-col-"] {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0 !important;
}

#market-modal .prices-container {
  border: 0;
  padding: 0;
  background: none;
}

#market-modal .prices-container > .grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
}

#market-modal .prices-container .grid-col-3 {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

#market-modal .prices-container .form-input {
  width: 100%;
  font-family: var(--rm-mono);
  text-align: right;
}

@media (max-width: 760px) {
  #market-modal .modal__content > .grid-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #market-modal .prices-container > .grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #market-modal .modal__footer {
    position: sticky;
    bottom: 0;
  }
}

/* virtual bank: a banner that is hard to miss while something is waiting there */
.rm-vbank-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: rgba(224, 166, 60, 0.1);
  border: 1px solid #e0a63c;
  border-left-width: 4px;
}

.rm-vbank-alert__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rm-vbank-alert__text strong {
  font: 600 16px/1.2 var(--rm-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0a63c;
}

.rm-vbank-alert__text span {
  font-size: 13px;
  color: var(--rm-tx-2);
}

.rm-vbank-alert .btn {
  flex: none;
}

@keyframes rm-vbank-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 166, 60, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(224, 166, 60, 0); }
}

.rm-vbank-pulse,
.rm-vbank-alert {
  animation: rm-vbank-glow 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .rm-vbank-pulse,
  .rm-vbank-alert {
    animation: none;
  }
}

@media (max-width: 640px) {
  .rm-vbank-alert {
    flex-direction: column;
    align-items: stretch;
  }
}

.warehouse-locked-hint {
  cursor: help;
}

/* virtual bank: one entry point, the banner button (the old header button and the vault-card link stay in the page only for the script) */
#virtual-bank-trigger,
.rm-vcard .rm-vcard__link[onclick*="virtual-bank-trigger"] {
  display: none !important;
}

/* while the virtual bank itself is open the banner has nothing left to offer */
body:has(#virtual-bank:not([style*="display: none"])) .rm-vbank-alert {
  display: none;
}

/* finder forms: the field and its button share one baseline (no stray gap under the input pushing the button down) */
body.rm form.rm-finder {
  align-items: flex-end;
}

body.rm form.rm-finder .form-group {
  display: flex;
  flex-direction: column;
}

body.rm form.rm-finder .form-input,
body.rm form.rm-finder .select2-container {
  display: block;
}

body.rm form.rm-finder .rm-finder__btn,
body.rm form.rm-finder .rm-finder__btn .btn {
  display: flex;
  margin: 0;
}

body.rm form.rm-finder .form-group > .form-input,
body.rm form.rm-finder .form-group > .form-label + .form-input {
  margin-bottom: 0;
}

/* item tooltips (the in-game style box): no outer frame and no arrow, only the dark item box itself */
body.rm .tippy-box:has(#mainOverLib) {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.rm .tippy-box:has(#mainOverLib) > .tippy-arrow {
  display: none;
}

body.rm .tippy-box:has(#mainOverLib) > .tippy-content {
  padding: 0;
}

body.rm .tippy-box #mainOverLib {
  background: transparent !important;
  opacity: 1 !important;
  filter: none !important;
}

body.rm .tippy-box #mainOverLib > tbody > tr > td {
  padding: 0;
}

/* market cards stand still on hover: no lift, no shadow, no animation */
body.rm .market-item,
body.rm .market-item:hover {
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
}

/* item tooltip: a thin light edge so the dark box does not melt into the page */
body.rm .tippy-box #mainOverLib > tbody > tr > td > table {
  outline: 1px solid var(--rm-line-3);
}

/* seller rows use the whole width of the card (also on a phone) */
body.rm .market-grid .market-item-footer > .seller-info {
  width: 100%;
  flex: 1 1 100%;
}

/* register side card: three even rows instead of three narrow boxes */
.rm-authside__facts {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--rm-line-2);
}

.rm-authside__facts div {
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  background: var(--rm-bg);
  border: 0;
  border-bottom: 1px solid var(--rm-line-2);
}

.rm-authside__facts div:last-child {
  border-bottom: 0;
}

.rm-authside__facts b {
  font-size: 17px;
  white-space: nowrap;
}

.rm-authside__facts span {
  text-align: right;
  font-size: 12.5px;
}

/* top bar, guest: Register next to Sign in, in the primary blue */
body.rm .rm-bar__tools a.rm-account__register {
  background: var(--rm-primary);
  border-color: var(--rm-primary);
  color: #fff;
  text-decoration: none;
}

body.rm .rm-bar__tools a.rm-account__register i {
  color: #fff;
}

body.rm .rm-bar__tools a.rm-account__register:hover {
  background: var(--rm-primary-hi);
  border-color: var(--rm-primary-hi);
  color: #fff;
}

/* ================================================================== home news: banner cards, newest one featured */
.rm-news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rm-news__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-news__card.is-featured {
  grid-column: 1 / -1;
}

.rm-news__media {
  position: relative;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  background: var(--rm-bg-2);
  border-bottom: 1px solid var(--rm-line-2);
}

.rm-news__shot {
  display: block;
  width: 100%;
  height: 100%;
}

.rm-news__shot:not(.is-cover) {
  display: none;
}

.rm-news__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rm-news__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  font: 600 11px/1 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 9, 12, 0.78);
  border: 1px solid var(--rm-line-3);
  pointer-events: none;
}

.rm-news__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
}

.rm-news__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--rm-mono);
  color: var(--rm-tx-3);
}

.rm-news__dot {
  width: 3px;
  height: 3px;
  background: var(--rm-tx-3);
}

.rm-news__title {
  margin: 0;
  font: 700 22px/1.2 var(--rm-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rm-tx);
}

.rm-news__card.is-featured .rm-news__title {
  font-size: 30px;
}

.rm-news__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--rm-tx-2);
}

.rm-news__text p {
  margin: 0 0 8px;
}

.rm-news__text p:last-child {
  margin-bottom: 0;
}

.rm-news__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.rm-news__list li {
  position: relative;
  margin: 0;
  padding: 8px 10px 8px 24px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--rm-tx);
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line);
}

.rm-news__list li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--rm-primary, #3f6fe0);
}

/* the featured card: picture on the left, text on the right */
@media (min-width: 900px) {
  .rm-news__card.is-featured.has-media {
    flex-direction: row;
  }

  .rm-news__card.is-featured .rm-news__media {
    flex: 0 0 56%;
    aspect-ratio: auto;
    min-height: 280px;
    border-bottom: 0;
    border-right: 1px solid var(--rm-line-2);
  }

  .rm-news__card.is-featured .rm-news__body {
    flex: 1 1 auto;
    justify-content: center;
    padding: 24px 26px;
  }
}

@media (max-width: 760px) {
  .rm-news {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-news__card.is-featured .rm-news__title {
    font-size: 24px;
  }
}

.rm-news__meta .rm-new-tag {
  margin: 0;
  padding: 3px 7px;
  line-height: 1;
}

/* news photo slider: scroll-snap track (swipe works by itself), arrows and dots on top */
.rm-news__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rm-news__track::-webkit-scrollbar {
  display: none;
}

.rm-news__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}

.rm-news__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rm-news__nav {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(8, 9, 12, 0.6);
  border: 1px solid var(--rm-line-3);
  cursor: url('/assets/pointer.cur'), pointer;
  opacity: 0;
}

.rm-news__nav.is-prev { left: 10px; }
.rm-news__nav.is-next { right: 10px; }

.rm-news__nav::before {
  content: '';
  width: 9px;
  height: 9px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translateX(2px) rotate(45deg);
}

.rm-news__nav.is-next::before {
  transform: translateX(-2px) rotate(-135deg);
}

.rm-news__media:hover .rm-news__nav,
.rm-news__nav:focus-visible {
  opacity: 1;
}

.rm-news__nav:hover {
  background: rgba(8, 9, 12, 0.85);
}

.rm-news__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.rm-news__dot {
  width: 22px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  pointer-events: auto;
  cursor: url('/assets/pointer.cur'), pointer;
}

.rm-news__dot.is-on {
  background: #fff;
}

/* on a touch screen there is no hover, so the arrows stay visible */
@media (hover: none) {
  .rm-news__nav {
    opacity: 1;
  }
}

/* Top 10 drawer: the ranking picker looks like the other fields */
#rm-drawer-top10 #top-selector {
  width: 100%;
  height: 40px;
  margin: 0 0 12px;
  padding: 0 34px 0 12px !important;
  font-size: 14px;
}

/* bans / warnings: the search bar sits above the panel, the empty state is calm and flat */
form.rm-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

form.rm-searchbar > input[type='text'] {
  flex: 0 1 340px;
  min-width: 0;
}

.rm-empty--flat {
  padding: 40px 24px;
  border: 0;
  background: none;
}

.rm-empty--flat .rm-empty__text {
  margin-bottom: 0;
}

/* a confirm or any other modal window is open: the page behind it does not scroll */
html:has(#NotiflixConfirmWrap),
html:has(#NotiflixConfirmWrap) body,
html:has(.micromodal-slide.is-open),
html:has(.micromodal-slide.is-open) body {
  overflow: hidden !important;
}

/* scraped items: the card ends right under the return cost (no empty line before the footer) */
#scraped-items .market-grid .market-item {
  gap: 0;
}

#scraped-items .market-grid .market-item-body {
  padding-bottom: 2px;
}

#scraped-items .market-grid .market-item-footer {
  padding-top: 6px !important;
}

#scraped-items .rm-shop__hint {
  max-width: 78ch;
}

/* scraped items: date filter (a picked day or N days ago) */
.rm-datefilter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0 14px;
}

.rm-datefilter__label {
  font: 600 12px/1 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-datefilter .form-input {
  width: 170px;
  height: 36px;
  padding: 0 10px;
  color-scheme: dark;
}

.rm-datefilter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rm-datefilter__chip {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font: 600 14px/1 var(--rm-mono);
  color: var(--rm-tx-2);
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-3);
  cursor: url('/assets/pointer.cur'), pointer;
}

.rm-datefilter__chip:hover {
  color: var(--rm-tx);
  border-color: var(--rm-primary, #3f6fe0);
}

.rm-datefilter__chip.is-on {
  color: #fff;
  background: var(--rm-primary, #3f6fe0);
  border-color: var(--rm-primary, #3f6fe0);
}

.rm-datefilter__clear {
  height: 36px;
  padding: 0 12px;
  font: 600 12px/1 var(--rm-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rm-tx);
  background: none;
  border: 1px solid var(--rm-line-3);
  cursor: url('/assets/pointer.cur'), pointer;
}

.rm-datefilter__clear[hidden] {
  display: none;
}

#scraped-search-clear[hidden],
.pagination-wrapper[hidden] {
  display: none !important;
}

/* top bar: EXP on the first line, the stage under it */
.rm-facts .rm-facts__exp {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: baseline;
  column-gap: 7px;
  row-gap: 4px;
}

.rm-facts .rm-facts__exp dd {
  font-size: 14px;
}

.rm-facts .rm-facts__sub {
  grid-column: 1 / -1;
  font: 500 11px/1 var(--rm-mono);
  color: var(--rm-gold);
}

/* ================================================================== reset stage tables (Information): grouped header, account colours, the current band marked */
.rm-stagetable {
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
  border-collapse: collapse;
  border: 1px solid var(--rm-line-2);
  background: var(--rm-bg);
  font-variant-numeric: tabular-nums;
}

.rm-stagetable th,
.rm-stagetable td {
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--rm-line);
  background: transparent;
  text-align: right;
  white-space: nowrap;
}

.rm-stagetable thead th {
  font: 600 11px/1 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
  background: var(--rm-bg-1);
}

.rm-stagetable .rm-stagetable__group th {
  padding-top: 12px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.rm-stagetable .rm-stagetable__grp {
  text-align: center;
  color: var(--rm-tx-2);
  font-size: 12px;
  border-left: 1px solid var(--rm-line-2);
  border-bottom: 1px solid var(--rm-line-3);
}

.rm-stagetable .rm-stagetable__sub th {
  padding-top: 8px;
  padding-bottom: 10px;
  font-size: 10.5px;
  border-bottom: 1px solid var(--rm-line-3);
}

.rm-stagetable .rm-stagetable__rr {
  text-align: left;
  color: var(--rm-tx);
  font-weight: 500;
}

.rm-stagetable thead .rm-stagetable__rr,
.rm-stagetable thead .rm-stagetable__lvl {
  vertical-align: bottom;
  border-bottom: 1px solid var(--rm-line-3);
}

.rm-stagetable .rm-stagetable__lvl {
  border-left: 1px solid var(--rm-line-2);
  border-right: 1px solid var(--rm-line-2);
  text-align: center;
  color: var(--rm-tx);
}

.rm-stagetable tbody td:nth-child(2) {
  border-left: 1px solid var(--rm-line-2);
}

.rm-stagetable .is-normal { color: var(--rm-tx); }
.rm-stagetable .is-bronze { color: #d99a52; }
.rm-stagetable .is-gold { color: #f0c648; }
.rm-stagetable thead .is-normal { color: var(--rm-tx-2); }

.rm-stagetable tbody tr:last-child td {
  border-bottom: 0;
}

.rm-stagetable tbody tr:hover td {
  background: var(--rm-bg-2);
}

.rm-stagetable tbody tr.is-current td {
  background: rgba(63, 111, 224, 0.12);
}

.rm-stagetable tbody tr.is-current td:first-child {
  box-shadow: inset 3px 0 0 var(--rm-primary, #3f6fe0);
}

.rm-stagetable__unit {
  font-size: 11px;
  color: var(--rm-tx-3);
  letter-spacing: 0.08em;
}

.rm-stagetable__now {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 6px;
  font: 700 9.5px/1 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rm-primary, #3f6fe0);
}

.rm-stagetable__x {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 1px;
}

.rm-stagetable .reset-stage-exp__suffix {
  color: inherit;
  opacity: 0.72;
}

.rm-stagetable .reset-table-trend {
  margin-left: 5px;
  font-size: 10px;
}

body.rm .table-responsive:has(> .rm-stagetable) {
  max-width: none;
}

/* top bar: EXP, stage and drop as one segmented bar (same family as the Events / Top 10 chips) */
.rm-facts.rm-facts--bar {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  height: 32px;
  padding: 0;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-3);
}

.rm-facts--bar .rm-segfact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  white-space: nowrap;
  border-left: 1px solid var(--rm-line-2);
}

.rm-facts--bar .rm-segfact:first-child {
  border-left: 0;
}

.rm-facts--bar dt {
  font: 600 10.5px/1 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-facts--bar dd {
  margin: 0;
  font: 500 15px/1 var(--rm-mono);
  color: var(--rm-tx);
}

.rm-facts--bar .rm-segfact--exp dd {
  color: var(--rm-gold);
  font-weight: 600;
}

.rm-facts--bar .rm-segfact__rr {
  margin-left: 6px;
  font-size: 12px;
  color: var(--rm-tx-2);
}

/* stage tables: headers line up with their numbers, and the table does not stretch over the whole page */
body.rm .rm-stagetable {
  max-width: 1040px;
}

body.rm .rm-stagetable thead th {
  text-align: right;
}

body.rm .rm-stagetable thead .rm-stagetable__grp,
body.rm .rm-stagetable thead .rm-stagetable__lvl {
  text-align: center;
}

body.rm .rm-stagetable thead .rm-stagetable__rr {
  text-align: left;
}

.rm-docs #information-content table.rm-stagetable,
.rm-docs #information-content .table-responsive:has(> .rm-stagetable) {
  max-width: 1040px;
}

/* the events strip is filled by the server, so it must show only what fits on one row on the first paint too:
   what does not fit wraps to a second row that is clipped (the script then hides the cut ones) */
@media (min-width: 641px) {
  .rm-nextup {
    flex-wrap: wrap;
    align-content: flex-start;
    contain: size;
    min-height: 49px;
  }
}

/* stage tables: the whole width of the panel */
body.rm .rm-stagetable,
.rm-docs #information-content table.rm-stagetable,
.rm-docs #information-content .table-responsive:has(> .rm-stagetable) {
  max-width: none;
  width: 100%;
}

/* the current-stage bar is on every stage tab now: a little air above it, flush with the table */
#reset-stage .content-stage-bar {
  margin-top: 14px;
}

/* the tools block of the rail (events, server, top 10, castle siege) arrives in the last piece of the top bar: keep its final width
   from the start so the events strip next to it does not jump when the rest of the buttons appear */
@media (min-width: 1200px) {
  .rm-rail__tools {
    min-width: 538px;
    justify-content: flex-start;
  }
}

/* top bar icons: a fixed box, so the buttons keep their width when the icon font arrives */
.rm-bar i.fas,
.rm-bar i.fab,
.rm-bar i.far {
  display: inline-block;
  width: 1.2em;
  text-align: center;
}

/* ---- Reset Levels Information: facts at a glance + single-row stage ---- */
body.rm .rm-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
body.rm .rm-glance__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line);
}
body.rm .rm-glance__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}
body.rm .rm-glance__value {
  font-family: var(--rm-head);
  font-size: 22px;
  line-height: 1.1;
  color: var(--rm-cream);
}
body.rm .rm-stageplain { margin-top: 4px; }
body.rm .rm-stageplain__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 14px;
}
body.rm .rm-stageplain__lvl span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}
body.rm .rm-stageplain__lvl strong {
  font-family: var(--rm-head);
  font-size: 28px;
  font-weight: 600;
  color: var(--rm-cream);
}
body.rm .rm-stageplain__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
body.rm .rm-stageplain__card {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line);
  border-top: 3px solid var(--rm-line-3);
  padding: 12px 14px;
}
body.rm .rm-stageplain__card.is-bronze { border-top-color: #d99a52; }
body.rm .rm-stageplain__card.is-gold { border-top-color: #f0c648; }
body.rm .rm-stageplain__tier {
  font-family: var(--rm-head);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rm-tx-2);
  margin-bottom: 8px;
}
body.rm .rm-stageplain__card.is-bronze .rm-stageplain__tier { color: #d99a52; }
body.rm .rm-stageplain__card.is-gold .rm-stageplain__tier { color: #f0c648; }
body.rm .rm-stageplain__row {
  gap: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-top: 1px solid var(--rm-line);
  font-size: 13px;
  color: var(--rm-tx-2);
}
body.rm .rm-stageplain__row strong {
  font-family: var(--rm-mono);
  font-size: 14px;
  color: var(--rm-tx);
}
@media (max-width: 640px) {
  body.rm .rm-stageplain__grid { grid-template-columns: 1fr; }
}

/* ---- VIP (credit services) ---- */
body.rm .rm-vip__tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
body.rm .rm-vtier {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line);
  border-top: 3px solid var(--rm-line-3);
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.rm .rm-vtier--bronze { border-top-color: #d99a52; }
body.rm .rm-vtier--gold { border-top-color: #f0c648; }
body.rm .rm-vtier__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
body.rm .rm-vtier__name {
  font-family: var(--rm-head);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rm-cream);
}
body.rm .rm-vtier--bronze .rm-vtier__name i { color: #d99a52; }
body.rm .rm-vtier--gold .rm-vtier__name i { color: #f0c648; }
body.rm .rm-vtier__exp {
  text-align: right;
  font-family: var(--rm-head);
  font-size: 34px;
  line-height: 1;
  color: var(--rm-cream);
}
body.rm .rm-vtier__exp small {
  display: block;
  font-family: var(--rm-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}
body.rm .rm-vtier__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rm-line);
  border: 1px solid var(--rm-line);
}
body.rm .rm-vtier__chip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: var(--rm-bg-2);
  font-size: 13px;
  color: var(--rm-tx-2);
}
body.rm .rm-vtier__chip strong { color: var(--rm-tx); font-weight: 600; text-align: right; }
body.rm .rm-pkgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
body.rm .rm-pkg { position: relative; display: block; cursor: pointer; }
body.rm .rm-pkg input { position: absolute; opacity: 0; pointer-events: none; }
body.rm .rm-pkg__box {
  display: block;
  padding: 9px 10px;
  text-align: center;
  background: var(--rm-bg-2);
  border: 1px solid var(--rm-line-2);
  transition: border-color .12s, background .12s;
}
body.rm .rm-pkg__box b { display: block; font-family: var(--rm-head); font-size: 20px; color: var(--rm-cream); }
body.rm .rm-pkg__box span { font-size: 12px; color: var(--rm-tx-3); }
body.rm .rm-pkg:hover .rm-pkg__box { border-color: var(--rm-line-3); }
body.rm .rm-pkg input:checked + .rm-pkg__box { border-color: var(--rm-gold); background: var(--rm-gold-wash); }
body.rm .rm-pkg input:focus-visible + .rm-pkg__box { outline: 2px solid var(--rm-gold); outline-offset: 2px; }
body.rm .rm-vtier__credits {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--rm-tx-3);
}
body.rm .rm-vtier__gift summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--rm-tx-2);
  padding: 4px 0;
}
body.rm .rm-vtier__gift[open] summary { margin-bottom: 10px; }
body.rm .rm-vip__compare h2 {
  font-family: var(--rm-head);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: var(--rm-cream);
}
body.rm .rm-vcmp { margin-bottom: 14px; border: 1px solid var(--rm-line); background: var(--rm-bg-1); }
body.rm .rm-vcmp > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-family: var(--rm-head);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.rm .rm-vcmp > summary::-webkit-details-marker { display: none; }
body.rm .rm-vcmp > summary::after { content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px; color: var(--rm-tx-3); transition: transform .15s; }
body.rm .rm-vcmp[open] > summary::after { transform: rotate(180deg); }
body.rm .rm-vcmp__note { padding: 0 16px 10px; font-size: 13px; color: var(--rm-tx-3); }
body.rm .rm-vcmp table { width: 100%; border-collapse: collapse; }
body.rm .rm-vcmp th, body.rm .rm-vcmp td { padding: 9px 16px; border-top: 1px solid var(--rm-line); text-align: center; font-size: 14px; }
body.rm .rm-vcmp th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rm-tx-3); font-weight: 600; }
body.rm .rm-vcmp th:first-child, body.rm .rm-vcmp td:first-child { text-align: left; width: 40%; color: var(--rm-tx-2); }
body.rm .rm-vcmp th.is-bronze, body.rm .rm-vcmp td.is-bronze { color: #d99a52; }
body.rm .rm-vcmp th.is-gold, body.rm .rm-vcmp td.is-gold { color: #f0c648; }
body.rm .rm-vcmp td.is-all { text-align: center; color: var(--rm-tx); }
body.rm .rm-vcmp td small { display: block; color: var(--rm-tx-3); font-size: 12px; margin-top: 2px; }
body.rm .rm-vcmp tbody tr:hover td { background: var(--rm-bg-2); }
@media (max-width: 900px) {
  body.rm .rm-vip__tiers { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body.rm .rm-vcmp th, body.rm .rm-vcmp td { padding: 8px 8px; font-size: 13px; }
  body.rm .rm-vcmp th:first-child, body.rm .rm-vcmp td:first-child { width: 34%; }
  body.rm .rm-vtier__chips { grid-template-columns: 1fr; }
}

/* ---- Admin: stages + VIP editors ---- */
body.rm .rm-adm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
body.rm .rm-adm-bar .rm-adm-msg { margin-left: auto; font-size: 13px; color: var(--rm-tx-3); }
body.rm .rm-adm-msg.is-ok { color: var(--rm-ok); }
body.rm .rm-adm-msg.is-err { color: var(--rm-red); }
body.rm .rm-adm-card { border: 1px solid var(--rm-line); background: var(--rm-bg-1); margin-bottom: 14px; }
body.rm .rm-adm-card__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rm-line); background: var(--rm-bg-2); }
body.rm .rm-adm-card__head .form-input { width: auto; min-width: 0; }
body.rm .rm-adm-card__body { padding: 12px 14px; overflow-x: auto; }
body.rm .rm-adm-card__head .rm-adm-grow { flex: 1 1 200px; }
body.rm .rm-adm-table { width: 100%; border-collapse: collapse; }
body.rm .rm-adm-table th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-tx-3); padding: 4px 4px; text-align: left; white-space: nowrap; }
body.rm .rm-adm-table td { padding: 3px 3px; }
body.rm .rm-adm-table .form-input { width: 100%; min-width: 64px; padding: 6px 8px; font-size: 13px; }
body.rm .rm-adm-table .form-input.is-wide { min-width: 220px; }
body.rm .rm-adm-x { background: none; border: 0; color: var(--rm-tx-3); cursor: pointer; font-size: 15px; padding: 4px 8px; }
body.rm .rm-adm-x:hover { color: var(--rm-red); }
body.rm .rm-adm-hint { font-size: 12px; color: var(--rm-tx-3); margin: 6px 0 0; }
body.rm .rm-adm-auto { font-size: 12px; color: var(--rm-tx-3); font-style: italic; }

/* ---- credits services: page tabs + one balance for all pages ---- */
body.rm .rm-credits-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
body.rm .rm-credits-head .nav-pills { margin: 0; }
body.rm .rm-credits-head .rm-shop__wallet { padding: 8px 16px; }
body.rm .rm-credits-head .rm-shop__wallet strong { font-size: 22px; }
@media (max-width: 640px) {
  body.rm .rm-credits-head .rm-shop__wallet { width: 100%; text-align: left; }
}

/* ---- Buy Credits ---- */
body.rm .rm-donate {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
body.rm .rm-donate__main,
body.rm .rm-donate__side {
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line);
  padding: 18px 20px 20px;
}
body.rm .rm-donate__title {
  font-family: var(--rm-head);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rm-cream);
  margin: 0 0 14px;
}
body.rm .rm-donate__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
body.rm .rm-dtile { position: relative; display: block; cursor: pointer; }
body.rm .rm-dtile input { position: absolute; opacity: 0; pointer-events: none; }
body.rm .rm-dtile__box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 22px 10px 14px;
  background: var(--rm-bg-2);
  border: 1px solid var(--rm-line-2);
  text-align: center;
  transition: border-color .12s, background .12s;
}
body.rm .rm-dtile:hover .rm-dtile__box { border-color: var(--rm-line-3); }
body.rm .rm-dtile input:checked + .rm-dtile__box { border-color: var(--rm-gold); background: var(--rm-gold-wash); }
body.rm .rm-dtile input:focus-visible + .rm-dtile__box { outline: 2px solid var(--rm-gold); outline-offset: 2px; }
body.rm .rm-dtile input:disabled + .rm-dtile__box { opacity: .45; cursor: not-allowed; }
body.rm .rm-dtile__credits { font-family: var(--rm-head); font-size: 40px; line-height: 1; font-weight: 600; color: var(--rm-cream); }
body.rm .rm-dtile__unit { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rm-tx-3); margin-bottom: 8px; }
body.rm .rm-dtile__price { font: 500 18px var(--rm-mono); color: var(--rm-gold); }
body.rm .rm-dtile__per { font-size: 12px; color: var(--rm-tx-3); min-height: 16px; }
body.rm .rm-dtile__off {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 3px 6px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--rm-ok-wash);
  color: var(--rm-ok);
  border-bottom: 1px solid var(--rm-ok);
}
body.rm .rm-donate__select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.rm .rm-donate__go { padding-top: 12px; padding-bottom: 12px; }
body.rm .rm-donate__fine { margin: 10px 0 0; font-size: 12.5px; color: var(--rm-tx-3); }
body.rm .rm-dsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.rm .rm-dsteps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: var(--rm-tx-2); }
body.rm .rm-dsteps li b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--rm-bg-3);
  border: 1px solid var(--rm-line-3);
  font-family: var(--rm-head);
  font-size: 16px;
  color: var(--rm-cream);
}
body.rm .rm-dsteps li strong { color: var(--rm-tx); font-weight: 600; }
body.rm .rm-terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.rm .rm-terms li {
  padding: 8px 12px;
  background: var(--rm-bg-2);
  border-left: 3px solid var(--rm-red);
  font-size: 13px;
  color: var(--rm-tx-2);
}
body.rm .rm-terms li strong { color: var(--rm-tx); }
body.rm .rm-terms a { color: var(--rm-gold); text-decoration: underline; }
@media (max-width: 900px) {
  body.rm .rm-donate { grid-template-columns: 1fr; }
}

/* ---- Buy Credits: card window (embedded Stripe checkout) ---- */
body.rm .rm-paymodal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; }
body.rm .rm-paymodal[hidden] { display: none; }
body.rm .rm-paymodal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
body.rm .rm-paymodal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-top: 3px solid var(--rm-gold);
}
body.rm .rm-paymodal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rm-line);
  background: var(--rm-bg-2);
}
body.rm .rm-paymodal__head h3 {
  margin: 0;
  font-family: var(--rm-head);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rm-cream);
}
body.rm .rm-paymodal__x { background: none; border: 0; color: var(--rm-tx-2); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
body.rm .rm-paymodal__x:hover { color: var(--rm-cream); }
body.rm .rm-paymodal__body { padding: 12px; overflow-y: auto; background: #fff; min-height: 220px; }
body.rm .rm-payresult { padding: 28px 16px; text-align: center; background: var(--rm-bg-1); color: var(--rm-tx); margin: -12px; }
body.rm .rm-payresult h4 { font-family: var(--rm-head); font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; margin: 10px 0 8px; color: var(--rm-cream); }
body.rm .rm-payresult p { color: var(--rm-tx-2); margin: 0 0 18px; }
body.rm .rm-payresult__ok { font-size: 54px; color: var(--rm-ok); }
body.rm .rm-payresult__spin { font-size: 40px; color: var(--rm-gold); }
/* the confirming / result screens are dark: no white strip under them */
body.rm .rm-paymodal__body:has(> .rm-payresult:not([hidden])) { background: var(--rm-bg-1); min-height: 0; padding: 0; }
body.rm .rm-paymodal__body:has(> .rm-payresult:not([hidden])) .rm-payresult { margin: 0; }

/* crossed-out regular price on a discounted package */
body.rm .rm-dtile__was { font: 400 13px var(--rm-mono); color: var(--rm-tx-3); }
body.rm .rm-dtile__box { padding-bottom: 18px; }

/* admin menu: three groups */
body.rm .rm-sidemenu .rm-sidemenu__group {
  list-style: none;
  margin: 0;
  padding: 14px 14px 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
  border-top: 1px solid var(--rm-line-2);
}
body.rm .rm-sidemenu .nav-pills > .rm-sidemenu__group:first-child { border-top: 0; padding-top: 10px; }

/* admin Stripe page: mode and keys */
body.rm .rm-modebadge { font: 600 12px var(--rm-head); letter-spacing: 0.1em; padding: 3px 10px; border: 1px solid var(--rm-line-3); }
body.rm .rm-modebadge--test { color: #f0c648; border-color: #f0c648; background: rgba(240, 198, 72, 0.08); }
body.rm .rm-modebadge--live { color: var(--rm-ok); border-color: var(--rm-ok); background: var(--rm-ok-wash); }
body.rm .rm-modepick { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 14px; }
body.rm .rm-modepick label { cursor: pointer; }
body.rm .rm-keygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.rm .rm-keyset { border: 1px solid var(--rm-line); padding: 10px 14px 14px; margin: 0; min-width: 0; }
body.rm .rm-keyset legend { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rm-tx-2); padding: 0 6px; width: auto; }
body.rm .rm-keyset label { display: block; margin-top: 10px; font-size: 13px; color: var(--rm-tx-2); }
body.rm .rm-keyset label small { color: var(--rm-tx-3); margin-left: 6px; }
body.rm .rm-keyset .form-input { width: 100%; margin-top: 4px; font-family: var(--rm-mono); font-size: 12.5px; }
@media (max-width: 900px) { body.rm .rm-keygrid { grid-template-columns: 1fr; } }

body.rm .rm-sitefield { display: block; max-width: 420px; margin-bottom: 14px; font-size: 13px; color: var(--rm-tx-2); }
body.rm .rm-sitefield .form-input { width: 100%; margin: 4px 0; font-family: var(--rm-mono); }
body.rm .rm-sitefield small { display: block; color: var(--rm-tx-3); }

/* ---- open auctions (bidding) ---- */
body.rm .bidding-grid .rm-auc { width: 100%; max-width: 760px; }
body.rm .rm-auc .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.rm .rm-auc__ot { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; color: var(--rm-red); border: 1px solid var(--rm-red); background: var(--rm-red-wash); }
body.rm .rm-auc__ot[hidden] { display: none; }
body.rm .rm-auc__head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
body.rm .rm-auc__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.rm .rm-auc__name strong { font-size: 17px; }
body.rm .rm-auc__cur { font-size: 13px; color: var(--rm-tx-3); }
body.rm .rm-auc__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
body.rm .rm-auc__tile { background: var(--rm-bg-2); border: 1px solid var(--rm-line); padding: 8px 12px; }
body.rm .rm-auc__tile span { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-tx-3); }
body.rm .rm-auc__tile b { display: block; font: 500 20px var(--rm-mono); color: var(--rm-cream); }
body.rm .rm-auc__tile b.is-soon { color: var(--rm-red); }
body.rm .rm-auc__status { min-height: 22px; font-size: 14px; margin-bottom: 4px; }
body.rm .rm-auc__status[data-mine="leading"] { color: var(--rm-ok); }
body.rm .rm-auc__status[data-mine="outbid"] { color: var(--rm-red); }
body.rm .rm-auc__q { padding: 4px 10px; }
body.rm .rm-auc__cancel[hidden] { display: none; }
body.rm .rm-auc__feed { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--rm-line); }
body.rm .rm-auc__feed:empty { display: none; }
body.rm .rm-auc__feed li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rm-line); font-size: 13px; color: var(--rm-tx-2); }
body.rm .rm-auc__feed li em { font-style: normal; color: var(--rm-tx-3); }
@media (max-width: 560px) { body.rm .rm-auc__tiles { grid-template-columns: 1fr; } }
body.rm .rm-bidset { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 18px; align-items: end; }
body.rm .rm-bidset label { display: block; margin: 0; font-size: 13px; color: var(--rm-tx-2); text-transform: none; letter-spacing: 0; font-family: var(--rm-font); }
body.rm .rm-bidset .form-input { width: 100%; margin-top: 4px; }

/* admin bidding: settings two per row, history kinds */
body.rm .rm-bidset { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
body.rm .rm-bidset .rm-bidset__full { grid-column: 1 / -1; }
@media (max-width: 640px) { body.rm .rm-bidset { grid-template-columns: 1fr; } }
body.rm .rm-kind { display: inline-block; padding: 2px 8px; font-size: 12px; border: 1px solid var(--rm-line-3); color: var(--rm-tx-2); white-space: nowrap; }
body.rm .rm-kind--bid { color: var(--rm-gold); border-color: var(--rm-gold-3); }
body.rm .rm-kind--back { color: var(--rm-ok); border-color: var(--rm-ok); }
body.rm .rm-kind--fee { color: #d99a52; border-color: #d99a52; }
body.rm .rm-kind--won { color: #f0c648; border-color: #f0c648; background: rgba(240,198,72,0.08); }

/* ---- bidding: one tidy bid row, scrolling feed, details window ---- */
body.rm .rm-auc .rm-bidrow { display: flex; align-items: stretch; gap: 0; margin-top: 6px; }
body.rm .rm-auc .rm-bidrow .form-input,
body.rm .rm-auc .rm-bidrow .btn {
  height: 44px;
  box-sizing: border-box;
  margin: 0;
  border-radius: 0;
  clip-path: none;
  line-height: 1;
}
body.rm .rm-auc .rm-bidrow .bid-amount-input { flex: 1 1 auto; min-width: 0; max-width: none; border-right: 0; }
body.rm .rm-auc .rm-bidrow .btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
body.rm .rm-auc .rm-auc__q {
  padding: 0 14px;
  background: var(--rm-bg-2);
  border: 1px solid var(--rm-line-2);
  border-left: 0;
  color: var(--rm-tx);
}
body.rm .rm-auc .rm-auc__q:hover { background: var(--rm-bg-3); }
body.rm .rm-auc .rm-auc__go {
  padding: 0 22px;
  background: var(--rm-gold-wash);
  border: 1px solid var(--rm-gold-3);
  border-left: 0;
  color: var(--rm-gold);
  font-family: var(--rm-head);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.rm .rm-auc .rm-auc__go:hover { background: rgba(191, 199, 219, 0.18); }
body.rm .rm-auc .rm-auc__go:disabled { opacity: 0.5; cursor: not-allowed; }

body.rm .rm-auc__feedbox { margin-top: 14px; border-top: 1px solid var(--rm-line); padding-top: 8px; }
body.rm .rm-auc__feedbox[hidden] { display: none; }
body.rm .rm-auc__feedhead { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-tx-3); margin-bottom: 4px; }
body.rm .rm-auc__feedbox .rm-auc__feed { margin: 0; border-top: 0; max-height: 190px; overflow-y: auto; }
body.rm .rm-auc__more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  background: none;
  border: 1px dashed var(--rm-line-3);
  color: var(--rm-tx-2);
  font-size: 13px;
  cursor: pointer;
}
body.rm .rm-auc__more[hidden] { display: none; }
body.rm .rm-auc__more:hover { color: var(--rm-cream); border-color: var(--rm-gold-3); }
body.rm .rm-auc__sub { font-family: var(--rm-head); font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; margin: 14px 0 8px; color: var(--rm-cream); }
body.rm .rm-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
body.rm .rm-pager[hidden] { display: none; }
body.rm .rm-pager__info { font-size: 13px; color: var(--rm-tx-2); }
body.rm .rm-pager__btn { padding: 6px 14px; background: var(--rm-bg-2); border: 1px solid var(--rm-line-2); color: var(--rm-tx); cursor: pointer; }
body.rm .rm-pager__btn:disabled { opacity: 0.4; cursor: not-allowed; }
body.rm .rm-pastbtn { margin-top: 4px; }

/* ---- bidding: intro banner (dismissible) and the rules page ---- */
body.rm .rm-bidintro {
  position: relative;
  margin: 0 0 18px;
  padding: 16px 48px 14px 20px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-gold);
}
body.rm .rm-bidintro[hidden] { display: none; }
body.rm .rm-bidintro__title { font-family: var(--rm-head); font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rm-cream); margin-bottom: 8px; }
body.rm .rm-bidintro__title i { color: var(--rm-gold); margin-right: 6px; }
body.rm .rm-bidintro__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
body.rm .rm-bidintro__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--rm-tx-2); }
body.rm .rm-bidintro__list li i { flex: none; width: 18px; margin-top: 3px; text-align: center; color: var(--rm-gold); }
body.rm .rm-bidintro__list b { color: var(--rm-tx); font-weight: 600; }
body.rm .rm-bidintro__link { font-size: 13px; color: var(--rm-gold); text-decoration: underline; }
body.rm .rm-bidintro__x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--rm-tx-3); font-size: 26px; line-height: 1; cursor: pointer; }
body.rm .rm-bidintro__x:hover { color: var(--rm-cream); }
@media (max-width: 700px) { body.rm .rm-bidintro__list { grid-template-columns: 1fr; } }

/* the bidding rules page (its own class: .rm-rules is the Server Rules page with the menu on the left) */
body.rm .rm-bidrules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
body.rm .rm-rules__box { background: var(--rm-bg-1); border: 1px solid var(--rm-line); padding: 14px 18px 12px; }
body.rm .rm-rules__box h2 { font-family: var(--rm-head); font-size: 20px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rm-cream); margin: 0 0 8px; }
body.rm .rm-rules__box ul { list-style: none; margin: 0; padding: 0; }
body.rm .rm-rules__box ul li { position: relative; padding: 4px 0 4px 18px; font-size: 14px; color: var(--rm-tx-2); }
body.rm .rm-rules__box ul li::before { content: "-"; position: absolute; left: 2px; color: var(--rm-gold); }
body.rm .rm-rules__box b { color: var(--rm-tx); font-weight: 600; }
body.rm .rm-rules__faq { grid-column: 1 / -1; }
body.rm .rm-rules__faq details { border-top: 1px solid var(--rm-line); padding: 8px 0; }
body.rm .rm-rules__faq summary { cursor: pointer; font-size: 14.5px; color: var(--rm-tx); }
body.rm .rm-rules__faq p { margin: 6px 0 2px; font-size: 13.5px; color: var(--rm-tx-2); }
@media (max-width: 800px) { body.rm .rm-bidrules { grid-template-columns: 1fr; } }

/* details window: no light strip on top; rules example as a timeline */
body.rm .modal__container.rm-pastmodal { border-top: 0; }
body.rm .rm-flow { list-style: none; margin: 4px 0 0; padding: 0 0 0 4px; position: relative; }
body.rm .rm-flow::before { content: ""; position: absolute; left: 16px; top: 14px; bottom: 14px; width: 2px; background: var(--rm-line-2); }
body.rm .rm-flow li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 0 0 14px; font-size: 14px; color: var(--rm-tx-2); }
body.rm .rm-flow li:last-child { padding-bottom: 0; }
body.rm .rm-flow li div { padding-top: 4px; }
body.rm .rm-flow__dot { position: relative; z-index: 1; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--rm-bg-3); border: 2px solid var(--rm-gold-3); color: var(--rm-cream); font: 600 13px var(--rm-head); margin-left: 3px; }
body.rm .rm-flow__dot--end { background: var(--rm-ok-wash); border-color: var(--rm-ok); color: var(--rm-ok); }

/* rules: the four cards share one height */
body.rm .rm-bidrules { display: flex; flex-direction: column; gap: 14px; }
body.rm .rm-bidrules .rm-rules__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
@media (max-width: 800px) { body.rm .rm-bidrules .rm-rules__cards { grid-template-columns: 1fr; grid-auto-rows: auto; } }
body.rm .rm-pastbtn .rm-pastbtn__spin { margin-right: 8px; }
/* rules: every block takes the full width (the older grid rule aligned the children to the start) */
body.rm .rm-bidrules { display: flex; flex-direction: column; align-items: stretch; grid-template-columns: none; }
body.rm .rm-bidrules > .rm-rules__cards,
body.rm .rm-bidrules > .rm-rules__faq { width: 100%; max-width: none; box-sizing: border-box; }
/* admin bidding settings: three inputs per row */
body.rm .rm-bidset { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1080px; }
@media (max-width: 900px) { body.rm .rm-bidset { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.rm .rm-bidset { grid-template-columns: 1fr; } }
/* active bidding: the cards fill their columns (no 760px cap) and keep their own height */
body.rm .bidding-grid { align-items: start; }
body.rm .bidding-grid .rm-auc { width: 100%; max-width: none; }

/* ---- admin: game settings grid and the admins permission rows ---- */
body.rm .rm-gsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; }
body.rm .rm-gsgrid__item { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12.5px; color: var(--rm-tx-2); }
body.rm .rm-gsgrid__item input[type="checkbox"] { width: 20px; height: 20px; }
body.rm .rm-permrow { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 6px 0; border-top: 1px solid var(--rm-line); align-items: baseline; }
body.rm .rm-permrow__name { flex: 0 0 240px; font-size: 14px; color: var(--rm-tx); }
body.rm .rm-permrow__acts { display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1 1 300px; }
body.rm .rm-permrow__acts label { margin: 0; font-size: 13px; color: var(--rm-tx-2); cursor: pointer; }
@media (max-width: 700px) { body.rm .rm-permrow__name { flex-basis: 100%; } }

/* ---- admin: Scrap Shop item cards ---- */
body.rm .rm-ssfilter { display: inline-flex; gap: 6px; }
body.rm .rm-ssgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
body.rm .rm-ssitem { border: 1px solid var(--rm-line); background: var(--rm-bg-2); display: flex; flex-direction: column; }
body.rm .rm-ssitem[hidden] { display: none; }
body.rm .rm-ssitem.is-hidden { opacity: 0.55; }
body.rm .rm-ssitem__top { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--rm-line); }
body.rm .rm-ssitem__top img { width: 40px; height: 40px; object-fit: contain; flex: none; }
body.rm .rm-ssitem__top strong { flex: 1; min-width: 0; font-size: 13.5px; color: var(--rm-cream); line-height: 1.2; }
body.rm .rm-ssitem__body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 10px; }
body.rm .rm-ssitem__body .rm-sw { grid-column: 1 / -1; }
body.rm .rm-ssitem__f { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 11.5px; color: var(--rm-tx-3); }
body.rm .rm-ssitem__f:last-child { grid-column: 1 / -1; }
body.rm .rm-sw { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; font-size: 13px; color: var(--rm-tx-2); }
body.rm .rm-sw input { width: 16px; height: 16px; accent-color: var(--rm-gold); }
body.rm .rm-gsgrid__item--wide { grid-column: 1 / -1; }

/* ---- admin: servers ---- */
body.rm .rm-srv__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rm-tx-3); flex: none; }
body.rm .rm-srv__dot.is-on { background: var(--rm-ok); box-shadow: 0 0 6px var(--rm-ok); }
body.rm .rm-srv__dot.is-off { background: var(--rm-red); }

/* ---- admin: Settings menu (grouped, on the left) ---- */
body.rm .rm-set { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
body.rm .rm-setnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
body.rm .rm-setnav__group { margin: 14px 0 4px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rm-tx-3); }
body.rm .rm-setnav__group:first-child { margin-top: 0; }
body.rm .rm-setnav__item { text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 7px 10px; font-size: 14px; color: var(--rm-tx-2); cursor: pointer; }
body.rm .rm-setnav__item:hover { background: var(--rm-bg-2); color: var(--rm-tx); }
body.rm .rm-setnav__item.is-active { border-left-color: var(--rm-gold); background: var(--rm-bg-2); color: var(--rm-cream); }
body.rm .rm-set__body { min-width: 0; }
@media (max-width: 860px) {
  body.rm .rm-set { grid-template-columns: 1fr; }
  body.rm .rm-setnav { position: static; }
}

/* ---- admin: Votes ---- */
body.rm .rm-vt-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rm-line); }
body.rm .rm-vt-pages { display: flex; gap: 6px; }
body.rm .rm-vt-page, body.rm .rm-vt-sub { background: none; border: 1px solid var(--rm-line); padding: 7px 16px; color: var(--rm-tx-2); cursor: pointer; font-size: 14px; }
body.rm .rm-vt-page.is-on, body.rm .rm-vt-sub.is-on { border-color: var(--rm-gold); color: var(--rm-cream); background: var(--rm-bg-2); }
body.rm .rm-vt-save { display: flex; gap: 12px; align-items: center; }
body.rm .rm-vt-dirty { font-size: 12.5px; color: var(--rm-gold); }
body.rm .rm-vt-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
body.rm .rm-vt-list { display: flex; flex-direction: column; gap: 6px; }
body.rm .rm-vt-set { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--rm-bg-1); border: 1px solid var(--rm-line); border-left: 3px solid transparent; padding: 9px 12px; cursor: pointer; color: var(--rm-tx-2); }
body.rm .rm-vt-set b { color: var(--rm-tx); font-weight: 600; }
body.rm .rm-vt-set small { color: var(--rm-tx-3); }
body.rm .rm-vt-set.is-cur { border-left-color: var(--rm-gold); background: var(--rm-bg-2); }
body.rm .rm-vt-badge { display: inline-block; font-size: 10.5px; letter-spacing: 0.08em; padding: 1px 7px; border: 1px solid var(--rm-ok); color: var(--rm-ok); }
body.rm .rm-vt-new { background: none; border: 1px dashed var(--rm-line-2); color: var(--rm-tx-2); padding: 9px 12px; cursor: pointer; text-align: left; font-size: 13px; }
body.rm .rm-vt-new:hover { color: var(--rm-cream); border-color: var(--rm-gold); }
body.rm .rm-vt-edit { min-width: 0; }
body.rm .rm-vt-subs { display: flex; gap: 6px; margin: 4px 0 12px; }
body.rm .rm-vt-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 12px; }
body.rm .rm-vt-scale { font-size: 13px; color: var(--rm-tx-2); display: inline-flex; gap: 6px; align-items: center; }
body.rm .rm-vt-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
body.rm .rm-vt-tier { border: 1px solid var(--rm-line); background: var(--rm-bg-1); }
body.rm .rm-vt-tier.is-dup { border-color: var(--rm-red); }
body.rm .rm-vt-tier__head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--rm-bg-2); border-bottom: 1px solid var(--rm-line); color: var(--rm-cream); }
body.rm .rm-vt-tier__head .form-input { font-size: 17px; font-weight: 600; text-align: center; }
body.rm .rm-vt-tier__btns { margin-left: auto; display: inline-flex; gap: 4px; }
body.rm .rm-vt-tier__body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
body.rm .rm-vt-reward { display: flex; gap: 6px; align-items: center; }
body.rm .rm-vt-reward select { flex: 1; min-width: 0; }
body.rm .rm-vt-addr { align-self: flex-start; background: none; border: 0; color: var(--rm-gold); cursor: pointer; font-size: 13px; padding: 2px 0; }
body.rm .rm-vt-warn { padding: 4px 10px; font-size: 12px; color: var(--rm-red); }
body.rm .rm-vt-pool { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--rm-line); }
body.rm .rm-vt-pool:first-child { border-top: 0; }
body.rm .rm-vt-pool select { flex: 1 1 200px; min-width: 0; }
body.rm .rm-vt-chance { position: relative; flex: 0 0 150px; height: 22px; background: var(--rm-bg-2); border: 1px solid var(--rm-line); }
body.rm .rm-vt-chance i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rm-gold); opacity: 0.35; }
body.rm .rm-vt-chance b { position: relative; display: block; text-align: center; font-size: 12px; line-height: 20px; color: var(--rm-tx); font-weight: 500; }
body.rm .rm-vt-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
@media (max-width: 860px) { body.rm .rm-vt-layout { grid-template-columns: 1fr; } }

/* the long lists of the Votes page scroll inside their own box */
body.rm .rm-vt-tiers { max-height: 70vh; overflow-y: auto; padding-right: 6px; }
body.rm .rm-vt-poolbox { max-height: 60vh; overflow-y: auto; padding-right: 6px; }
body.rm .rm-vt-tiers::-webkit-scrollbar, body.rm .rm-vt-poolbox::-webkit-scrollbar { width: 8px; }
body.rm .rm-vt-tiers::-webkit-scrollbar-thumb, body.rm .rm-vt-poolbox::-webkit-scrollbar-thumb { background: var(--rm-line-2); }

/* ---- admin: log ---- */
body.rm .rm-logtable td { vertical-align: top; padding: 6px 8px; font-size: 13px; }
body.rm .rm-logtable__target { max-width: 280px; word-break: break-word; }
body.rm .rm-logtable pre { max-width: 520px; max-height: 220px; overflow: auto; margin: 4px 0 0; padding: 8px; background: var(--rm-bg-2); border: 1px solid var(--rm-line); font-size: 12px; white-space: pre-wrap; }
body.rm .rm-logtable details summary { cursor: pointer; color: var(--rm-gold); }
body.rm .rm-logstatus { display: inline-block; padding: 1px 8px; font-size: 11.5px; border: 1px solid var(--rm-line-2); }
body.rm .rm-logstatus.is-ok { color: var(--rm-ok); border-color: var(--rm-ok); }
body.rm .rm-logstatus.is-denied { color: var(--rm-gold); border-color: var(--rm-gold); }
body.rm .rm-logstatus.is-err { color: var(--rm-red); border-color: var(--rm-red); }
body.rm .rm-logfilters { align-items: center; }

body.rm .rm-vt-h { font-family: var(--rm-head); font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rm-cream); margin: 6px 0 8px; }

/* EXP Boost Maps: a wide card, the maps as tiles */
body.rm .exp-boost-card { max-width: none; margin: 0; background: var(--rm-bg-2); border: 1px solid var(--rm-line-2); border-radius: 0; box-shadow: none; }
body.rm .exp-boost-card-header { display: flex; align-items: center; gap: 24px; padding: 22px 26px; background: var(--rm-gold-wash); border-bottom: 1px solid var(--rm-line-2); }
body.rm .exp-boost-intro-badge { flex: 0 0 auto; min-width: 120px; padding: 14px 18px; border-radius: 0; background: var(--rm-bg); border: 1px solid var(--rm-gold); color: var(--rm-gold); font-family: var(--rm-head); font-size: 40px; line-height: 1; text-align: center; box-shadow: none; }
body.rm .exp-boost-intro-badge span { display: block; margin-top: 4px; font-size: 14px; letter-spacing: 0.18em; color: var(--rm-cream); }
body.rm .exp-boost-card-title { margin: 0 0 6px; font-family: var(--rm-head); font-size: 24px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rm-cream); }
body.rm .exp-boost-lead { margin: 0; font-size: 15px; color: var(--rm-tx-2); }
body.rm .exp-boost-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 22px 26px; }
body.rm .exp-boost-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--rm-bg); border: 1px solid var(--rm-line); border-left: 3px solid var(--rm-gold); }
body.rm .exp-boost-tile-name { font-family: var(--rm-head); font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rm-cream); }
body.rm .exp-boost-tile-range { font-family: var(--rm-mono); font-size: 14px; color: var(--rm-gold); }
body.rm .exp-boost-card-footer { padding: 14px 26px; font-size: 14px; color: var(--rm-tx-3); background: transparent; border-top: 1px solid var(--rm-line); }
@media (max-width: 900px) { body.rm .exp-boost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.rm .exp-boost-card-header { flex-direction: column; align-items: flex-start; } body.rm .exp-boost-grid { grid-template-columns: 1fr; padding: 16px; } }

/* Settings menu: the pages of the family (Votes, Jewel Bank items, Scrap Shop) are links in the same menu */
body.rm a.rm-setnav__item { display: block; text-decoration: none; }
body.rm .rm-set--page { margin-top: 0; padding: 16px; }
body.rm .rm-set--page > .rm-set__body > .panel-content,
body.rm #center .rm-set--page > .rm-set__body > .panel-content { padding: 0; }

/* Bank drawer: the tabs of the game window, then the tiles of the open tab */
body.rm .rm-bank__tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 8px; }
body.rm .rm-bank__tab { cursor: url('/assets/pointer.cur'), pointer; }
body.rm .rm-bank__tab.is-on { border-color: var(--rm-gold); color: var(--rm-gold); }
body.rm .rm-bank__pane[hidden] { display: none; }

/* Bank > Send: the fee and what the sender needs */
body.rm .rm-sendinfo { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--rm-line-2); background: var(--rm-bg-2); display: grid; gap: 8px; }
body.rm .rm-sendinfo__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
body.rm .rm-sendinfo__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-tx-3); min-width: 150px; }
body.rm .rm-sendinfo__chip { display: inline-block; margin: 0 6px 4px 0; padding: 2px 8px; border: 1px solid var(--rm-line-3); color: var(--rm-cream); font-size: 13px; }
body.rm .rm-sendinfo__warn { color: var(--rm-red); font-size: 13px; }
body.rm .rm-sendinfo__ok { color: var(--rm-ok); font-size: 13px; }

/* News: big cards with a short text and a View button; the whole news opens in a window */
body.rm .rm-news { gap: 22px; }
body.rm .rm-news__media { aspect-ratio: 16 / 9; }
body.rm .rm-news__body { padding: 20px 22px 22px; gap: 12px; }
body.rm .rm-news__title { font-size: 26px; }
body.rm .rm-news__card.is-featured .rm-news__title { font-size: 36px; }
body.rm .rm-news__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rm-tx-2); }
body.rm .rm-news__card.is-featured .rm-news__excerpt { font-size: 16px; }
body.rm .rm-news__actions { margin-top: 6px; }
@media (min-width: 900px) {
  body.rm .rm-news__card.is-featured .rm-news__media { min-height: 360px; flex-basis: 58%; }
  body.rm .rm-news__card.is-featured .rm-news__body { padding: 30px 32px; }
}
/* phone / tablet: the card is a column, so the picture keeps its own shape (the news pictures are 12:5; 16:9 cut the sides off) and the type is smaller */
@media (max-width: 899px) {
  body.rm .rm-news__media { aspect-ratio: 12 / 5; }
}
@media (max-width: 760px) {
  body.rm .rm-news { gap: 16px; }
  body.rm .rm-news__body { padding: 16px 16px 18px; gap: 10px; }
  body.rm .rm-news__title { font-size: 21px; }
  body.rm .rm-news__card.is-featured .rm-news__title { font-size: 24px; }
  body.rm .rm-news__excerpt,
  body.rm .rm-news__card.is-featured .rm-news__excerpt { font-size: 14px; line-height: 1.55; }
}
html.rm-newsmodal-open { overflow: hidden; }
body.rm .rm-newsmodal[hidden] { display: none; }
body.rm .rm-newsmodal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; }
body.rm .rm-newsmodal__overlay { position: absolute; inset: 0; background: rgba(5, 6, 9, 0.82); }
body.rm .rm-newsmodal__panel { position: relative; width: min(920px, 100%); max-height: 100%; overflow-y: auto; background: var(--rm-bg); border: 1px solid var(--rm-gold-2, var(--rm-line-3)); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
body.rm .rm-newsmodal__close { position: sticky; top: 0; float: right; z-index: 2; width: 44px; height: 44px; margin: 0; border: 0; border-left: 1px solid var(--rm-line-2); border-bottom: 1px solid var(--rm-line-2); background: var(--rm-bg-2); color: var(--rm-cream); font-size: 26px; line-height: 1; cursor: url('/assets/pointer.cur'), pointer; }
body.rm .rm-newsmodal__close:hover { color: var(--rm-gold); }
body.rm .rm-newsmodal__body { padding: 28px 32px 34px; display: grid; gap: 16px; }
body.rm .rm-newsmodal__meta { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--rm-mono); color: var(--rm-tx-3); }
body.rm .rm-newsmodal__title { margin: 0; font: 700 34px/1.15 var(--rm-head); letter-spacing: 0.04em; text-transform: uppercase; color: var(--rm-cream); }
body.rm .rm-newsmodal__gallery { display: grid; gap: 10px; }
body.rm .rm-newsmodal__gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--rm-line-2); }
body.rm .rm-newsmodal .rm-news__text { font-size: 16px; line-height: 1.75; }
@media (max-width: 640px) {
  body.rm .rm-newsmodal { padding: 0; }
  body.rm .rm-newsmodal__panel { min-height: 100%; border: 0; }
  body.rm .rm-newsmodal__body { padding: 20px 18px 28px; }
  body.rm .rm-newsmodal__title { font-size: 26px; }
}

/* the pictures of the news window are a slider (the whole picture is shown) */
body.rm .rm-newsmodal__slider { aspect-ratio: 16 / 9; border: 1px solid var(--rm-line-2); background: #000; }
body.rm .rm-newsmodal__slider .rm-news__slide img { object-fit: contain; }

/* Privacy policy: readable text blocks */
body.rm .rm-legal { max-width: 860px; display: grid; gap: 12px; color: var(--rm-tx-2); font-size: 15px; line-height: 1.7; }
body.rm .rm-legal p { margin: 0; }
body.rm .rm-legal__updated { font: 500 12px/1 var(--rm-mono); color: var(--rm-tx-3); letter-spacing: 0.06em; text-transform: uppercase; }
body.rm .rm-legal h3 { margin: 14px 0 0; font: 700 20px/1.2 var(--rm-head); letter-spacing: 0.05em; text-transform: uppercase; color: var(--rm-cream); }
body.rm .rm-legal ul { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; }
body.rm .rm-legal li b { color: var(--rm-tx); font-weight: 600; }
body.rm .rm-legal a { color: var(--rm-gold); }
/* Register: the agree line */
body.rm .rm-agree { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 12px; font-size: 14px; line-height: 1.5; color: var(--rm-tx-2); cursor: pointer; }
body.rm .rm-agree input { margin-top: 3px; flex: 0 0 auto; }
body.rm .rm-agree a { color: var(--rm-gold); }

/* ================================================================== mobile menus: a bar that stays under the top bar, the list opens in its own window */
@media (min-width: 1001px) {
  body.rm .rm-mnav__toggle { display: none; }
}
@media (max-width: 1000px) {
  body.rm #content-container:has(> .rm-sidemenu),
  body.rm #content-container > div:has(> .rm-sidemenu),
  body.rm .rm-docs,
  body.rm .rm-rules,
  body.rm .rm-set { display: block; }
  body.rm .rm-mnav {
    position: sticky;
    top: var(--rm-bar-h);
    z-index: 60;
    display: block;
    max-height: none;
    overflow: visible;
    margin: 0 0 14px;
    padding: 0;
    background: var(--rm-bg);
    border: 1px solid var(--rm-line-2);
    border-left: 2px solid var(--rm-gold);
  }
  body.rm .rm-mnav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    background: none;
    border: 0;
    color: var(--rm-cream);
    font: 600 15px/1.2 var(--rm-head);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
  }
  body.rm .rm-mnav__toggle i { font-size: 11px; color: var(--rm-gold); transition: transform 0.15s; }
  body.rm .rm-mnav.is-open .rm-mnav__toggle i { transform: rotate(180deg); }
  body.rm .rm-mnav:not(.is-open) > .rm-mnav__list { display: none; }
  body.rm .rm-mnav.is-open > .rm-mnav__list {
    position: absolute;
    left: -2px;
    right: -1px;
    top: 100%;
    z-index: 61;
    max-height: min(60vh, calc(100vh - var(--rm-bar-h) - 90px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--rm-bg-1);
    border: 1px solid var(--rm-line-2);
    border-top-color: var(--rm-gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  }
  /* inside the window every menu is a plain column list */
  body.rm .rm-mnav .nav-pills,
  body.rm .rm-mnav .rm-setnav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; margin: 0; border: 0; position: static; }
  body.rm .rm-mnav .nav-item { width: 100%; }
  body.rm .rm-mnav .nav-link,
  body.rm .rm-mnav .rm-setnav__item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 14px !important;   /* the old phone styles shrink every nav link to 8-10px with !important */
    border: 0;
    border-left: 2px solid transparent;
    border-bottom: 0;
    text-align: left;
    font-size: 15px !important;
    line-height: 1.2;
    background: none;
  }
  body.rm .rm-mnav .nav-link.active,
  body.rm .rm-mnav .rm-setnav__item.is-active {
    border-left-color: var(--rm-gold);
    background: var(--rm-gold-wash);
    color: var(--rm-cream);
  }
}

/* admin Settings pages have two menus: the admin bar stays under the top bar, the Settings bar stays under the admin bar */
@media (max-width: 1000px) {
  body.rm .rm-sidemenu ~ .panel .rm-set > .rm-setnav.rm-mnav { top: calc(var(--rm-bar-h) + 49px); z-index: 59; }
}

/* ================================================================== the menu of the burger (phones, tablets and narrow windows): big rows, the sections as chips, "More" as tiles */
@media (max-width: 1480px) {
  body.rm .rm-nav {
    padding: 0;
    border-top: 1px solid var(--rm-line-2);
    border-bottom: 2px solid var(--rm-gold);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
    max-height: calc(100vh - var(--rm-bar-h) - 8px);
  }
  body.rm .rm-nav__main { gap: 0; }
  body.rm .rm-nav__item { border-bottom: 1px solid var(--rm-line); }
  body.rm .rm-nav__link {
    justify-content: space-between;
    min-height: 54px;
    padding: 0 var(--rm-gutter);
    border: 0 !important;
    text-decoration: none !important;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: var(--rm-cream);
  }
  body.rm .rm-nav__link::after { content: '\203A'; font: 400 24px/1 var(--rm-font); color: var(--rm-tx-3); }
  body.rm .rm-nav__link.is-active { color: var(--rm-gold); background: var(--rm-gold-wash); box-shadow: inset 3px 0 0 var(--rm-gold); }
  body.rm .rm-nav__link.is-active::after { color: var(--rm-gold); }
  body.rm .rm-nav__item.has-subs { background: var(--rm-bg); }
  body.rm .rm-nav__subs { padding: 2px var(--rm-gutter) 14px; gap: 8px; border: 0; background: none; }
  body.rm .rm-nav__sublink {
    padding: 9px 13px;
    border: 1px solid var(--rm-line-2);
    background: var(--rm-bg-1);
    font: 600 13px/1.2 var(--rm-head);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rm-tx);
  }
  body.rm .rm-nav__aux {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 16px var(--rm-gutter) 18px;
    background: var(--rm-bg);
  }
  body.rm .rm-nav__aux::before {
    content: 'More';
    grid-column: 1 / -1;
    font: 600 12px/1 var(--rm-head);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rm-tx-3);
  }
  body.rm .rm-nav__aux .rm-nav__sub {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--rm-line-2) !important;
    background: var(--rm-bg-1);
    font: 600 14px/1.2 var(--rm-head);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rm-tx);
  }
  body.rm .rm-nav__aux .rm-nav__sub.is-active { border-color: var(--rm-gold) !important; color: var(--rm-gold); background: var(--rm-gold-wash); }
}

/* ================================================================== desktop: the side menus draw a blue line under the entry on hover */
@media (min-width: 1001px) and (hover: hover) {
  body.rm .rm-sidemenu .nav-pills .nav-link,
  body.rm .rm-docs > .page-pills .nav-pills .nav-link,
  body.rm .rm-setnav__item {
    position: relative;
  }
  body.rm .rm-sidemenu .nav-pills .nav-link::after,
  body.rm .rm-docs > .page-pills .nav-pills .nav-link::after,
  body.rm .rm-setnav__item::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    background: var(--rm-primary-hi, #5b8cf5);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
    pointer-events: none;
  }
  body.rm .rm-setnav__item::after { left: 10px; right: 10px; bottom: 3px; }
  body.rm .rm-sidemenu .nav-pills .nav-link:hover::after,
  body.rm .rm-docs > .page-pills .nav-pills .nav-link:hover::after,
  body.rm .rm-setnav__item:hover::after,
  body.rm .rm-sidemenu .nav-pills .nav-link:focus-visible::after,
  body.rm .rm-setnav__item:focus-visible::after {
    transform: scaleX(1);
  }
}

/* ================================================================== tables fit the panel: edge to edge, a header band, rows with room and a hover bar */
body.rm :is(.big-panel-content, .panel-content) > .table-responsive:has(> :is(.rm-leaderboard, .rm-ledger)),
body.rm :is(.big-panel-content, .panel-content) > div:not([class]) > .table-responsive:has(> :is(.rm-leaderboard, .rm-ledger)) {
  width: auto;
  max-width: none;
  margin-left: -16px;
  margin-right: -16px;
  border-top: 1px solid var(--rm-line-2);
}

/* the rankings (a grid row per player) */
body.rm .table.rm-leaderboard tr { padding: 0 16px 0 13px; }
body.rm .table.rm-leaderboard thead tr {
  min-height: 38px;
  padding-left: 16px;
  background: var(--rm-bg-2);
  border-bottom: 1px solid var(--rm-line-2);
}
body.rm .table.rm-leaderboard tbody tr { min-height: 52px; transition: background 0.12s; }
body.rm .table.rm-leaderboard tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.018); }
body.rm .table.rm-leaderboard tbody tr:hover:not(:nth-child(-n + 3)) { box-shadow: inset 3px 0 0 var(--rm-primary-hi, #5b8cf5); }
body.rm .table.rm-leaderboard.is-page-one tbody tr:hover { box-shadow: none; }
body.rm .table.rm-leaderboard td:nth-child(n + 3) { font-family: var(--rm-mono); font-size: 14px; color: var(--rm-cream); }

/* the other tables (bans, warnings, rewards ...) */
body.rm .rm-ledger th:first-child,
body.rm .rm-ledger td:first-child { padding-left: 16px; }
body.rm .rm-ledger th:last-child,
body.rm .rm-ledger td:last-child { padding-right: 16px; }
body.rm .rm-ledger td { padding-top: 13px; padding-bottom: 13px; }
body.rm .rm-ledger tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--rm-primary-hi, #5b8cf5); }

@media (max-width: 640px) {
  body.rm .table.rm-leaderboard tr {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-auto-columns: 48px;
    padding: 0 10px 0 9px;
  }
  body.rm .table.rm-leaderboard thead tr { padding-left: 12px; }
  body.rm .table.rm-leaderboard th { font-size: 10px; letter-spacing: 0.06em; line-height: 1.15; white-space: normal; }
  body.rm .table.rm-leaderboard td:first-child { font-size: 17px; }
  body.rm .table.rm-leaderboard td:nth-child(2) { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.rm .table.rm-leaderboard td:nth-child(n + 3),
  body.rm .table.rm-leaderboard th:nth-child(n + 3) { padding-right: 0; }
  body.rm .table.rm-leaderboard td:nth-child(n + 3) { font-size: 13px; }
}

/* "No records found" is not a row: no hover, no stripe, no medal bar */
body.rm .table.rm-leaderboard tbody tr:has(> td[colspan]),
body.rm .table.rm-leaderboard.is-page-one tbody tr:has(> td[colspan]) {
  border-left-color: transparent !important;
  box-shadow: none !important;
  background: none !important;
}
body.rm .table.rm-leaderboard tbody tr:has(> td[colspan]):hover {
  background: none !important;
  box-shadow: none !important;
}
body.rm .rm-ledger tbody tr:has(> td[colspan]) td,
body.rm .rm-ledger tbody tr:has(> td[colspan]):hover td {
  background: none !important;
  box-shadow: none !important;
}

/* Settings > Get Item > Boxes: the five boxes in one row, each with its tick and its base price */
body.rm .gs-boxrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
body.rm .gs-boxcell { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--rm-bg); border: 1px solid var(--rm-line-2); }
body.rm .gs-boxcell__head { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font: 600 15px/1 var(--rm-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-cream); }
body.rm .gs-boxcell:has(input[type="checkbox"]:checked) { border-color: var(--rm-primary, #3f6fe0); }
body.rm .gs-boxcell .form-input { width: 100%; }
@media (max-width: 900px) { body.rm .gs-boxrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.rm .gs-boxrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.rm .gs-boxrow--sections { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { body.rm .gs-boxrow--sections { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { body.rm .gs-boxrow--sections { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.rm .gs-boxrow--sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Settings menu: every entry on its own line, a link and a button look the same, and the menu does not move when the page changes */
body.rm .rm-setnav__item { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.3; text-align: left; margin: 0; }
html:has(.rm-set) { scrollbar-gutter: stable; }

/* ---- warehouse upgrade windows (remove / add excellent option, Raven upgrade): a fixed width so the window never changes size ---- */
body.rm .rm-um-modal .modal__container { width: min(540px, 94vw); max-width: 94vw; }
body.rm .rm-um { display: flex; flex-direction: column; gap: 14px; }
body.rm .rm-um__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
body.rm .rm-um__pic { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; background: var(--rm-bg-1, rgba(255,255,255,0.04)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.12)); }
body.rm .rm-um__pic img { width: 64px; height: 64px; object-fit: contain; }
body.rm .rm-um__name { font: 600 16px/1.3 var(--rm-head, inherit); letter-spacing: 0.04em; color: var(--rm-cream, #f1e9d6); }
body.rm .rm-um__stats { font-size: 13px; color: var(--rm-tx-3, #9aa3b2); display: grid; gap: 2px; }
body.rm .rm-um__stats strong { color: var(--rm-tx, #e8e8ee); }
body.rm .rm-um__stats strong.is-up { color: var(--rm-ok, #5fd47b); }
body.rm .rm-um__from-to { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
body.rm .rm-um__to { align-self: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-um__item--new .rm-um__pic { border-color: var(--rm-ok, #5fd47b); }
body.rm .rm-um__block { padding: 12px 14px; background: var(--rm-bg-1, rgba(255,255,255,0.04)); border: 1px solid var(--rm-line, rgba(255,255,255,0.08)); }
body.rm .rm-um__h { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-um__row { display: flex; align-items: baseline; justify-content: space-between; }
body.rm .rm-um__row .rm-um__h { margin-bottom: 6px; }
body.rm .rm-um__big { font: 500 22px/1 var(--rm-mono, monospace); color: var(--rm-gold, #e2b84a); }
body.rm .rm-um__bar { height: 8px; background: rgba(255,255,255,0.08); }
body.rm .rm-um__bar span { display: block; height: 100%; background: var(--rm-gold, #e2b84a); }
body.rm .rm-um__note { margin: 8px 0 0; font-size: 12px; color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-um__warn { margin: 0; font-size: 13px; color: var(--rm-gold, #e2b84a); }
body.rm .rm-um__opts { display: grid; gap: 6px; }
body.rm .rm-um-opt { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; cursor: pointer; background: var(--rm-bg, rgba(0,0,0,0.2)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.12)); }
body.rm .rm-um-opt:hover { border-color: var(--rm-primary-hi, #5b8cf5); }
body.rm .rm-um-opt input { position: absolute; opacity: 0; pointer-events: none; }
body.rm .rm-um-opt__dot { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rm-tx-3, #9aa3b2); }
body.rm .rm-um-opt__text { font-size: 14px; color: var(--rm-tx, #e8e8ee); }
body.rm .rm-um-opt:has(input:checked) { border-color: var(--rm-primary-hi, #5b8cf5); background: rgba(91,140,245,0.10); }
body.rm .rm-um-opt:has(input:checked) .rm-um-opt__dot { border-color: var(--rm-primary-hi, #5b8cf5); background: var(--rm-primary-hi, #5b8cf5); box-shadow: inset 0 0 0 2px var(--rm-bg, #0e0e12); }
body.rm .rm-um-opt:has(input:focus-visible) { outline: 2px solid var(--rm-primary-hi, #5b8cf5); outline-offset: 2px; }
body.rm .rm-um__costs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
body.rm .rm-um-cost { display: grid; gap: 2px; padding: 10px 12px; text-align: center; background: var(--rm-bg, rgba(0,0,0,0.2)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.12)); }
body.rm .rm-um-cost__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-um-cost strong { font: 500 20px/1.1 var(--rm-mono, monospace); color: var(--rm-tx, #e8e8ee); }
body.rm .rm-um-cost__have { font-size: 12px; color: var(--rm-ok, #5fd47b); }
body.rm .rm-um-cost.is-short { border-color: var(--rm-red, #e5484d); }
body.rm .rm-um-cost.is-short .rm-um-cost__have { color: var(--rm-red, #e5484d); }
@media (max-width: 480px) { body.rm .rm-um__from-to { grid-template-columns: 1fr; } body.rm .rm-um__to { justify-self: center; } }

/* Bank: the currencies in two rows (Zen wide with Credits, then Scrap, Master Reset Points and WCoinC) */
body.rm .rm-drawer #bank-currencies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.rm .rm-drawer #bank-currencies > .rm-tile:first-child { grid-column: span 2; }

/* ---- Bank: the Zen window (Withdraw / Deposit / Send) ---- */
body.rm #bank-item-modal.is-zen .bank-title-count { display: none; }
body.rm .rm-zen { display: flex; flex-direction: column; gap: 14px; }
body.rm .rm-zen__bal { display: grid; gap: 2px; padding: 12px 16px; background: var(--rm-bg-1, rgba(255,255,255,0.04)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.12)); border-left: 3px solid var(--rm-gold, #e2b84a); }
body.rm .rm-zen__bal-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-zen__bal strong { font: 500 26px/1.1 var(--rm-mono, monospace); color: var(--rm-ok, #5fd47b); }
body.rm .rm-zen__bal small { font-size: 12px; color: var(--rm-tx-3, #9aa3b2); word-break: break-all; }
body.rm .rm-zen .rm-zen__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 0; }
body.rm .rm-zen .rm-zen__tabs .rm-seg__btn { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 8px; text-align: center; text-decoration: none; cursor: pointer; }
body.rm .rm-seg__btn.active { background: var(--rm-bg-2, rgba(255,255,255,0.08)); color: var(--rm-cream, #f1e9d6); box-shadow: inset 0 -2px 0 var(--rm-gold, #e2b84a); }
body.rm .rm-zen__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
body.rm .rm-zen__field { min-width: 0; display: grid; gap: 6px; }
body.rm .rm-zen__label { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-zen__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
body.rm .rm-zen__chip { padding: 5px 11px; font: 600 13px/1 var(--rm-mono, monospace); color: var(--rm-tx-2, #c9ccd6); background: var(--rm-bg, rgba(0,0,0,0.25)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.14)); cursor: pointer; }
body.rm .rm-zen__chip:hover { border-color: var(--rm-primary-hi, #5b8cf5); color: var(--rm-tx, #fff); }
body.rm .rm-zen__note { margin: 0; padding-top: 12px; font-size: 13px; color: var(--rm-tx-3, #9aa3b2); border-top: 1px solid var(--rm-line, rgba(255,255,255,0.08)); }
@media (max-width: 560px) { body.rm .rm-zen__grid { grid-template-columns: 1fr; } }
body.rm .rm-zen .rm-zen__tabs .rm-seg__btn:first-child { grid-column: auto; }

/* ---- Bank: the window of an item (Send first, then how to use it in the game) ---- */
body.rm .rm-zen__tabs--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.rm .rm-itemcard { display: flex !important; align-items: center; gap: 14px; margin-bottom: 14px; }
body.rm .rm-itemcard__pic { flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--rm-bg, rgba(0,0,0,0.25)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.12)); }
body.rm .rm-itemcard__pic img { width: 40px; height: 40px; object-fit: contain; }
body.rm .rm-itemcard__txt { display: grid; gap: 2px; }
body.rm .rm-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; color: var(--rm-tx-2, #c9ccd6); }
body.rm .rm-steps kbd { padding: 1px 7px; font: 600 12px/1.4 var(--rm-mono, monospace); background: var(--rm-bg, rgba(0,0,0,0.3)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.18)); color: var(--rm-tx, #fff); }
body.rm .rm-zen__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 0; margin-bottom: 14px; }
body.rm .rm-zen__tabs .rm-seg__btn { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 8px; text-align: center; text-decoration: none; cursor: pointer; }
body.rm .rm-zen__tabs .rm-seg__btn:first-child { grid-column: auto; }
body.rm .rm-zen__tabs--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.rm #bank-zen-container .rm-zen__tabs { margin-bottom: 0; }

/* Bank: the In-Game Bank steps (a numbered card each, keys inline) */
body.rm .rm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.rm .rm-steps li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; background: var(--rm-bg-1, rgba(255,255,255,0.04)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.12)); }
body.rm .rm-steps__n { flex: 0 0 28px; height: 28px; display: flex; align-items: center; justify-content: center; font: 600 14px/1 var(--rm-mono, monospace); color: var(--rm-gold, #e2b84a); border: 1px solid var(--rm-gold, #e2b84a); }
body.rm .rm-steps li > div { min-width: 0; }
body.rm .rm-steps b { display: block; font: 600 13px/1.2 var(--rm-head, inherit); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-cream, #f1e9d6); }
body.rm .rm-steps p { margin: 5px 0 0; font-size: 14px; line-height: 1.6; color: var(--rm-tx-2, #c9ccd6); }
body.rm .rm-steps kbd { display: inline-block !important; width: auto !important; min-width: 0; padding: 1px 8px; margin: 0 1px; font: 600 12px/1.5 var(--rm-mono, monospace); color: var(--rm-tx, #fff); background: var(--rm-bg, rgba(0,0,0,0.35)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.22)); border-bottom-width: 2px; white-space: nowrap; }
body.rm .rm-steps li { flex-direction: row !important; counter-increment: none; }
body.rm .rm-steps li::before, body.rm .rm-steps li::after { content: none !important; display: none !important; }
body.rm .rm-steps__n { width: 28px; min-width: 28px; }

/* A window is open: the top bar (menu, profile) stays where it is. The page behind is locked on the html element only, so the sticky bar is not
   carried away with a scrolled page, and the dark layer of the window starts under the bar. */
html:has(.micromodal-slide.is-open) body,
html:has(#NotiflixConfirmWrap) body {
  overflow: visible !important;
}
body.rm .micromodal-slide .modal__overlay {
  top: var(--rm-bar-h, 0px);
}
/* ... but nothing in the bar can be clicked while a window is open: a clear layer sits on top of it */
html:has(.micromodal-slide.is-open) .rm-bar::after,
html:has(#NotiflixConfirmWrap) .rm-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1000;
  cursor: default;
}

/* ---- Sell to the market window (warehouse): selected items on the left, the price on the right ---- */
body.rm #market-modal .modal__container { width: min(820px, 94vw); max-width: 94vw; }
body.rm .rm-sell { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
body.rm .rm-sell__col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
body.rm .rm-sell__h { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-sell__items { max-height: 340px; overflow-y: auto; }
body.rm .rm-sell__ask { display: grid; gap: 4px; padding: 12px 14px; background: var(--rm-bg-1, rgba(255,255,255,0.04)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.12)); border-left: 3px solid var(--rm-gold, #e2b84a); }
body.rm .rm-sell__ask-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-sell__ask strong { font: 500 18px/1.3 var(--rm-mono, monospace); color: var(--rm-gold, #e2b84a); word-break: break-word; }
body.rm .rm-sell__ask strong.rm-sell__ask-none { font: 400 14px/1.4 var(--rm-sans, inherit); color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-sell__prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 0; background: none; border: 0; }
body.rm .rm-price { display: grid; gap: 4px; margin: 0; padding: 8px 10px; background: var(--rm-bg, rgba(0,0,0,0.25)); border: 1px solid var(--rm-line-2, rgba(255,255,255,0.12)); }
body.rm .rm-price[hidden] { display: none; }
body.rm .rm-price__label { font-size: 12px; color: var(--rm-tx-3, #9aa3b2); }
body.rm .rm-price .form-input { width: 100%; }
body.rm .rm-price.is-set { border-color: var(--rm-gold, #e2b84a); background: rgba(226,184,74,0.07); }
body.rm .rm-price.is-set .rm-price__label { color: var(--rm-gold, #e2b84a); }
@media (max-width: 700px) { body.rm .rm-sell { grid-template-columns: 1fr; } body.rm .rm-sell__items { max-height: 200px; } }
@media (max-width: 700px) { body.rm .rm-sell__prices, body.rm .rm-sell__items { max-height: none; overflow: visible; } }
body.rm #edit-modal .modal__container { width: min(820px, 94vw); max-width: 94vw; }

/* sell / edit windows: Zen on top, then the tabs of the Bank */
body.rm .rm-ptabs { display: flex; flex-direction: column; gap: 10px; }
body.rm .rm-ptabs .rm-bank__tabs { margin: 0; }
body.rm .rm-price--zen { max-width: 100%; }
body.rm .rm-ptabs .rm-ppane[hidden] { display: none; }
body.rm .rm-ptabs .rm-bank__tab.has-set::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; background: var(--rm-gold, #e2b84a); vertical-align: middle; }
body.rm .rm-sell__prices { max-height: 260px; }
/* the tabs of the price boxes lie on top of each other: the window is as high as the biggest tab, so it never changes height when a tab is switched */
body.rm .rm-ppanes { display: grid; }
body.rm .rm-ppanes > .rm-ppane { grid-area: 1 / 1; max-height: none; overflow: visible; align-content: start; }
body.rm .rm-ptabs .rm-ppanes > .rm-ppane[hidden] { display: grid; visibility: hidden; pointer-events: none; }
/* sell / edit windows: the selected item rows are plain (no hover colour, no pointer) */
body.rm .rm-sell .selected-items-container:hover { border-color: var(--border-color); }
body.rm .rm-sell .selected-item-display { cursor: default; transition: none; }
body.rm .rm-sell .selected-item-display:hover { border-color: var(--border-color); background-color: var(--bg-secondary); }

/* ---- auctions started by players ---- */
body.rm .rm-auc-rules { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--rm-tx-2, #c9ccd6); }
body.rm .rm-auc__mine { padding: 10px 12px; border: 1px solid var(--rm-line-2, rgba(255,255,255,0.12)); border-left: 3px solid var(--rm-gold, #e2b84a); background: var(--rm-bg-1, rgba(255,255,255,0.04)); }

/* Combo System: the green of the "Press A" prompt of the game client (0.28 / 0.72 / 0.38) */
.rm-docs .nav-pills.nav-pills-minimal .nav-link[data-tab="combo-system"] { color: #47b760; }
.rm-docs .nav-pills.nav-pills-minimal .nav-link[data-tab="combo-system"].active { color: #47b760; text-shadow: 0 0 10px rgba(71, 183, 96, 0.45); }
.rm-combo-name { color: #47b760; }

/* Event rewards: one small box per level, the items that can drop (no groups, no rates) */
.rm-evrw { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 14px 0; }
.rm-evrw__box { background: var(--rm-bg-1, #1b1b22); border: 1px solid var(--rm-line-2, rgba(255, 255, 255, 0.12)); border-top: 2px solid var(--rm-gold, #c9a227); padding: 10px 12px 12px; min-width: 0; }
.rm-evrw__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rm-tx-2, #c9ccd6); text-align: center; }
.rm-evrw__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rm-evrw__item { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 84px; text-align: center; text-decoration: none; color: var(--rm-tx-2, #c9ccd6); }
.rm-evrw__ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--rm-line-2, rgba(255, 255, 255, 0.12)); }
.rm-evrw__ico img { max-width: 44px; max-height: 44px; }
.rm-evrw__ico--text { font-size: 18px; font-weight: 700; color: var(--rm-gold, #c9a227); }
.rm-evrw__name { font-size: 11px; line-height: 1.25; }
.rm-evrw__none { margin: 0; text-align: center; font-size: 12px; color: var(--rm-tx-3, #8b8fa0); }
a.rm-evrw__item:hover .rm-evrw__ico { border-color: var(--rm-gold, #c9a227); }
/* Event rewards as panels side by side: a small tile (picture + name) per item; levels with the same rewards share a panel */
.rm-evrw--panels { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: start; }
.rm-evrw__list { display: grid; gap: 6px; }
.rm-evrw__tile { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 3px 10px 3px 3px; background: var(--rm-bg, #0c0c0e); border: 1px solid var(--rm-line-2, rgba(255, 255, 255, 0.12)); text-decoration: none; color: var(--rm-tx, #e4e5ea); }
.rm-evrw__tile:hover { border-color: var(--rm-gold-2, #8c94b3); }
.rm-evrw__tico { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: rgba(0, 0, 0, 0.3); }
.rm-evrw__tico img { max-width: 30px; max-height: 30px; }
.rm-evrw__tname { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; min-width: 0; }

/* ================================================================== guild page: header, alliance / hostility cards, position badges */
.rm-ghead {
  display: flex;
  gap: 18px;
  padding: 16px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-gold);
}

.rm-ghead__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
}

.rm-ghead__body {
  display: grid;
  gap: 12px;
  min-width: 0;
  flex: 1;
  align-content: start;
}

.rm-ghead__id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.rm-ghead__name {
  margin: 0;
  font: 700 30px/1 var(--rm-head);
  letter-spacing: 0.06em;
  color: var(--rm-cream);
  overflow-wrap: anywhere;
}

.rm-gtag {
  padding: 3px 8px;
  font: 600 11px/1.2 var(--rm-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--rm-line-3);
  color: var(--rm-tx-2);
}

.rm-gtag--castle { color: var(--rm-gold); border-color: var(--rm-gold-3); background: var(--rm-gold-wash); }
.rm-gtag--ally { color: var(--rm-ok); border-color: rgba(95, 209, 139, 0.4); background: var(--rm-ok-wash); }
.rm-gtag--rival { color: var(--rm-red); border-color: rgba(255, 77, 64, 0.45); background: var(--rm-red-wash); }

.rm-ghead .rm-cprofile__stats dd.rm-gtxt { font: 500 14px/1.3 var(--rm-font); overflow-wrap: anywhere; }
.rm-ghead .rm-cprofile__stats dd.is-ok { color: var(--rm-ok); }

.rm-gnotice {
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--rm-tx-2);
  background: var(--rm-bg);
  border-left: 2px solid var(--rm-line-3);
  overflow-wrap: anywhere;
}

.rm-grel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.rm-grel__box {
  padding: 12px 14px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-top: 2px solid var(--rm-line-3);
  min-width: 0;
}

.rm-grel__box--ally { border-top-color: var(--rm-ok); }
.rm-grel__box--rival { border-top-color: var(--rm-red); }

.rm-grel__title {
  margin: 0 0 10px;
  font: 600 13px/1 var(--rm-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rm-tx-2);
}

.rm-grel__title span {
  margin-left: 8px;
  font: 500 12px var(--rm-mono);
  letter-spacing: 0;
  color: var(--rm-tx-3);
}

.rm-grel__none { margin: 0; font-size: 13px; color: var(--rm-tx-3); }

.rm-gcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-gcard {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  background: var(--rm-bg);
  border: 1px solid var(--rm-line-2);
  min-width: 0;
}

.rm-gcard.is-self { border-color: var(--rm-gold-3); background: var(--rm-gold-wash); }

.rm-gcard__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 15px/1.2 var(--rm-font);
  overflow-wrap: anywhere;
}

.rm-gcard i {
  font: normal 11px/1.3 var(--rm-font);
  color: var(--rm-tx-3);
}

.rm-gpos {
  display: inline-block;
  min-width: 108px;
  padding: 2px 8px;
  font: 600 11px/1.4 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--rm-line-2);
  color: var(--rm-tx-3);
}

.rm-gpos--master { color: var(--rm-gold); border-color: var(--rm-gold-3); background: var(--rm-gold-wash); }
.rm-gpos--assistant { color: var(--rm-cream); border-color: var(--rm-line-3); }
.rm-gpos--battle { color: var(--rm-tx-2); border-color: var(--rm-line-3); }

@media (max-width: 760px) {
  .rm-ghead { flex-direction: column; }
  .rm-ghead__logo { width: 100%; height: 140px; }
  .rm-grel { grid-template-columns: 1fr; }
}

/* Information: what a /reset clears */
.rm-resetperks { margin-bottom: 16px; }
.rm-resetperks__title {
  font-family: var(--rm-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rm-tx-3); margin-bottom: 8px;
}
.rm-resetperks__title code { color: var(--rm-gold); background: none; padding: 0; }
.rm-resetperks__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rm-resetperk {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: help;
  background: linear-gradient(135deg, var(--rm-ok-wash), var(--rm-bg-1) 70%);
  border: 1px solid var(--rm-line-2); border-left: 3px solid var(--rm-ok); border-radius: 6px;
  transition: border-color .15s, transform .15s;
}
.rm-resetperk:hover { border-color: var(--rm-ok); transform: translateY(-1px); }
.rm-resetperk__icon {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--rm-ok-wash); color: var(--rm-ok); font-size: 17px;
}
.rm-resetperk__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rm-resetperk__body b { color: var(--rm-cream); font-weight: 600; }
.rm-resetperk__body small { color: var(--rm-tx-3); }
.rm-resetperk__yes {
  flex: none; padding: 2px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .06em;
  color: var(--rm-ok); border: 1px solid var(--rm-ok); background: var(--rm-ok-wash);
}
@media (max-width: 760px) {
  .rm-resetperks__cards { grid-template-columns: 1fr; }
}

/* ================================================================== marriage guide: recipe cards */
.rm-mar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.rm-mar__card { padding: 14px; background: var(--rm-bg-1); border: 1px solid var(--rm-line-2); border-left: 3px solid var(--rm-gold); }
.rm-mar__title { margin: 0 0 2px; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.rm-mar__note { margin: 0 0 10px; font-size: 12px; color: var(--rm-tx-2, #9a9ca6); }
.rm-mar__parts { display: grid; gap: 6px; }
.rm-mar__arrow { margin: 8px 0; text-align: center; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-gold, #c9a227); }
.rm-mar__item { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; background: var(--rm-bg); border: 1px solid var(--rm-line-2); }
.rm-mar__ico { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(0, 0, 0, 0.3); }
.rm-mar__ico img { max-width: 40px; max-height: 40px; }
.rm-mar__txt { display: grid; min-width: 0; line-height: 1.25; }
.rm-mar__txt b { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.rm-mar__txt small { font-size: 11px; color: var(--rm-tx-2, #9a9ca6); }

/* Guild page: Overview / Guild Warehouse Logs tabs (src/Views/guild/index.php, warehouse-logs.php) */
body.rm .rm-gtabs > .rm-bank__tabs { margin: 18px 0 14px; }
body.rm .rm-gtabs > [data-gpane][hidden] { display: none; }
body.rm .rm-gwlog__wrap { overflow-x: auto; }
body.rm .rm-gwlog__table { min-width: 620px; }
body.rm .rm-gwlog__table td { vertical-align: middle; }
body.rm .rm-gwlog__time { white-space: nowrap; font-family: var(--rm-mono, monospace); font-size: 12px; }
body.rm .rm-gwlog__muted { color: var(--rm-tx-2, #9a9ca6); }
body.rm .rm-gwlog__action { font-weight: 600; white-space: nowrap; }
body.rm .rm-gwlog__action.is-in { color: var(--rm-ok, #6fcf73); }
body.rm .rm-gwlog__action.is-out { color: var(--rm-red, #e06666); }
body.rm .rm-gwlog__action + small { display: block; font-size: 11px; }
body.rm .rm-gwlog__item { display: inline-flex; align-items: center; gap: 8px; cursor: help; }
body.rm .rm-gwlog__item img { width: 32px; height: 32px; object-fit: contain; }
body.rm .rm-gwlog__item b { color: var(--rm-gold); font-weight: 600; }
body.rm .rm-gwlog__zen { color: var(--rm-gold); }
body.rm .rm-gwlog__pages { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }

/* guild warehouse log filters: type bar / item search with its buttons / dates */
body.rm .rm-gwlog .rm-grel__title { margin-bottom: 12px; }
body.rm .rm-gwlog__seg { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 12px; border: 1px solid var(--rm-line-3); }
body.rm .rm-gwlog__seg a { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 10px; text-align: center;
    font: 600 13px/1.1 var(--rm-head); letter-spacing: 0.09em; text-transform: uppercase; color: var(--rm-tx-2); text-decoration: none;
    background: var(--rm-bg-2); transition: color 0.12s, background 0.12s; }
body.rm .rm-gwlog__seg a + a { border-left: 1px solid var(--rm-line-3); }
body.rm .rm-gwlog__seg a:hover { color: var(--rm-gold); }
body.rm .rm-gwlog__seg a.is-on { color: var(--rm-gold); background: var(--rm-bg-3); box-shadow: inset 0 -2px 0 var(--rm-gold); }
body.rm .rm-gwlog__search { display: grid; gap: 10px; margin: 0 0 14px; }
body.rm .rm-gwlog__find { display: flex; align-items: stretch; }
body.rm .rm-gwlog__find .form-input { flex: 1 1 auto; min-width: 0; margin: 0; border-right: 0; }
body.rm .rm-gwlog__find .btn { flex: 0 0 auto; margin: 0; clip-path: none; }
body.rm .rm-gwlog__find .btn + .btn { border-left: 0; }
body.rm .rm-gwlog__find .btn.disabled { pointer-events: none; }
body.rm .rm-gwlog__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.rm .rm-gwlog__dates label { display: flex; align-items: center; gap: 10px; margin: 0; }
body.rm .rm-gwlog__dates label span { flex: 0 0 auto; min-width: 42px; font: 600 12px/1 var(--rm-head); letter-spacing: 0.09em; text-transform: uppercase; color: var(--rm-tx-2); }
body.rm .rm-gwlog__dates .form-input { flex: 1 1 auto; min-width: 0; margin: 0; }
@media (max-width: 560px) {
    body.rm .rm-gwlog__seg { grid-template-columns: repeat(2, 1fr); }
    body.rm .rm-gwlog__seg a:nth-child(3) { border-left: 0; }
    body.rm .rm-gwlog__seg a:nth-child(n+3) { border-top: 1px solid var(--rm-line-3); }
    body.rm .rm-gwlog__dates { grid-template-columns: 1fr; }
}
body.rm .rm-gwlog-host.is-loading { opacity: 0.55; pointer-events: none; transition: opacity 0.12s; }

/* Planned maintenance banner (widgets/maintenance-notice.php): gold edge before the start, red while it runs */
.rm-mnotice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-gold);
}
.rm-mnotice.is-live { border-left-color: var(--rm-red); background: linear-gradient(90deg, var(--rm-red-wash), transparent 60%), var(--rm-bg-1); }
.rm-mnotice__icon { font-size: 20px; color: var(--rm-gold); padding-top: 2px; }
.rm-mnotice.is-live .rm-mnotice__icon { color: var(--rm-red); }
.rm-mnotice__main { flex: 1; min-width: 0; }
.rm-mnotice__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.rm-mnotice__title { font: 700 18px/1.1 var(--rm-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-cream); }
.rm-mnotice__state { font: 400 12px/1 var(--rm-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--rm-tx-3); }
.rm-mnotice__clock { font: 700 16px/1 var(--rm-mono); color: var(--rm-gold); }
.rm-mnotice.is-live .rm-mnotice__clock, .rm-mnotice.is-live .rm-mnotice__state { color: var(--rm-red); }
.rm-mnotice__when { margin-top: 4px; font: 400 12px/1.4 var(--rm-mono); color: var(--rm-tx-2); }
.rm-mnotice__dot { margin: 0 4px; color: var(--rm-tx-3); }
.rm-mnotice__text { margin: 8px 0 0; color: var(--rm-tx); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.rm-mnotice__more { align-self: center; white-space: nowrap; }
.rm-mnotice__modal-when { margin: 0 0 10px; font: 400 12px/1.4 var(--rm-mono); color: var(--rm-tx-2); }
.rm-mnotice__modal-text { color: var(--rm-tx); line-height: 1.6; max-height: 60vh; overflow-y: auto; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .rm-mnotice { flex-wrap: wrap; }
  .rm-mnotice__more { margin-left: 34px; }
}

/* "Update your game" banner (widgets/update-notice.php): green edge, the three Launcher steps as chips */
.rm-unotice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(95, 209, 139, 0.08), transparent 60%), var(--rm-bg-1);
  border: 1px solid var(--rm-line-2);
  border-left: 3px solid var(--rm-ok);
}
.rm-unotice__icon { font-size: 20px; color: var(--rm-ok); padding-top: 2px; }
.rm-unotice__main { flex: 1; min-width: 0; }
.rm-unotice__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.rm-unotice__title { font: 700 18px/1.1 var(--rm-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rm-cream); }
.rm-unotice__badge { padding: 3px 8px; font: 600 11px/1 var(--rm-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-bg); background: var(--rm-ok); }
.rm-unotice__when { font: 400 12px/1 var(--rm-mono); color: var(--rm-tx-3); }
.rm-unotice__lead { margin: 8px 0 6px; color: var(--rm-tx); font-size: 14px; }
.rm-unotice__steps { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.rm-unotice__steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; font-size: 13px; color: var(--rm-tx); background: var(--rm-bg-2); border: 1px solid var(--rm-line-2); }
.rm-unotice__n { display: inline-grid; flex: none; font-style: normal; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; font: 700 12px/1 var(--rm-mono); color: var(--rm-bg); background: var(--rm-ok); }
.rm-unotice__steps li.is-or .rm-unotice__n { color: var(--rm-ok); background: none; border: 1px solid var(--rm-ok); text-transform: uppercase; font-size: 10px; }
.rm-unotice__steps b, .rm-unotice__lead b { color: var(--rm-cream); }
.rm-unotice__text { margin: 10px 0 0; color: var(--rm-tx-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rm-unotice__side { display: flex; align-items: center; gap: 8px; align-self: center; }
.rm-unotice__close { all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; color: var(--rm-tx-3); border: 1px solid var(--rm-line-2); }
.rm-unotice__close:hover { color: var(--rm-cream); border-color: var(--rm-line-3); }
.rm-unotice__more-phone { display: none; margin-top: 10px; }
@media (max-width: 640px) {
  .rm-unotice { flex-wrap: wrap; position: relative; padding-right: 48px; }
  .rm-unotice__side { position: absolute; top: 10px; right: 10px; align-self: auto; }
  .rm-unotice__side .rm-chip { display: none; }
  .rm-unotice__more-phone { display: inline-flex; }
  .rm-unotice__steps li { flex: 1 1 100%; }
}

/* News window: the picture first, edge to edge (news pictures are 1200 x 500), then one strip with title + date + author */
body.rm .rm-newsmodal__hero { margin: -28px -32px 0; aspect-ratio: 12 / 5; border: 0; border-bottom: 1px solid var(--rm-line-2); }
body.rm .rm-newsmodal__hero .rm-news__slide img { object-fit: cover; }
body.rm .rm-newsmodal__head { display: grid; gap: 8px; padding: 14px 18px; background: var(--rm-bg-1); border: 1px solid var(--rm-line-2); border-left: 3px solid var(--rm-red); }
body.rm .rm-newsmodal__head.has-hero { margin: -16px -32px 0; border-width: 0 0 1px 3px; padding: 16px 32px 16px 29px; }
body.rm .rm-newsmodal__head .rm-newsmodal__title { font-size: 30px; }
body.rm .rm-newsmodal__head .rm-newsmodal__meta i { margin-right: 4px; color: var(--rm-tx-3); }
@media (max-width: 640px) {
  body.rm .rm-newsmodal__hero { margin: -20px -18px 0; }
  body.rm .rm-newsmodal__head.has-hero { margin: -16px -18px 0; padding: 14px 18px 14px 15px; }
  body.rm .rm-newsmodal__head .rm-newsmodal__title { font-size: 24px; }
}
/* the close button lies over the top right corner (no float: the picture keeps the whole width) */
body.rm .rm-newsmodal__close { float: none; display: block; margin: 0 0 -44px auto; }
body.rm .rm-newsmodal__body > :first-child:not(.rm-newsmodal__hero) { margin-right: 40px; }

/* Phones: the players online in the status rail, where the events strip is on a computer (base_layout.php $rmIsPhone) */
.rm-rail-online { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; min-height: 40px; padding: 0 14px; background: var(--rm-bg-1); border: 1px solid var(--rm-line-2); border-left: 3px solid var(--rm-ok); color: var(--rm-tx-2); font: 500 14px/1 var(--rm-mono); letter-spacing: 0.04em; text-decoration: none; }
.rm-rail-online b { font: 700 20px/1 var(--rm-head); color: var(--rm-ok); }
.rm-rail-online__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rm-ok); box-shadow: 0 0 0 3px rgba(95, 209, 139, 0.18); }
.rm-rail-online:hover { color: var(--rm-cream); }
.rm-rail-online.is-high b, .rm-rail-online.is-critical b { color: var(--rm-red); }

/* ================================================================== information pages on tablets and phones
   The old style.css gives .grid-col-3 / -4 / -6 "flex: 0 0 50% !important; max-width: 50% !important" below 768px (and 100% below
   480px) for its flex rows. On the information pages these rows are CSS grids (or wrap rows with their own gaps), so the column
   count is already set by the row: the old rule made every card half as wide as its cell (narrow cards with wide gaps on a tablet). */
.rm-docs #information-content .grid-row > .grid-col-3,
.rm-docs #information-content .grid-row > .grid-col-4,
.rm-docs #information-content .grid-row > .grid-col-6,
#information-content .grid-row:has(> .grid-col-3) > .grid-col-3 {
  flex: none !important;
  max-width: none !important;
}

/* News tags + one news on its own page (/news/<id>-<slug>), 2026-11-23 */
.rm-news-tag {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid currentColor;
  font: 600 11px/1 var(--rm-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a7b0c8;
  white-space: nowrap;
}
.rm-news-tag--update { color: #ff4d40; }
.rm-news-tag--fixes { color: #3fb96a; }
.rm-news-tag--event { color: #ffb03b; }
.rm-news-tag--feature { color: #5b8cff; }
.rm-news-tag--maintenance { color: #a7b0c8; }
.rm-news__titlelink { color: inherit; text-decoration: none; }
.rm-news__titlelink:hover { color: var(--rm-red); }
.rm-newsmodal__meta a { color: var(--rm-tx-2, #a7b0c8); text-decoration: none; }
.rm-newsmodal__meta a:hover { color: var(--rm-red); }
/* the news page itself: back link, then one card (picture 12:5 full width, head strip, text) */
body.rm .rm-newspage { grid-column: 1 / -1; width: 100%; margin: 14px 0 0; }	/* .rm-home is a 2-column grid on wide screens: use both */
body.rm .rm-newspage__back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 14px/1 var(--rm-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-tx-3); text-decoration: none; }
body.rm .rm-newspage__back:hover { color: var(--rm-red); }
body.rm .rm-newspage__card { background: var(--rm-bg-1); border: 1px solid var(--rm-line-2); overflow: hidden; }
body.rm .rm-newspage__hero { margin: 0; aspect-ratio: 12 / 5; min-height: 0; background: #000; border: 0; border-bottom: 1px solid var(--rm-line-2); }
body.rm .rm-newspage__hero .rm-news__slide img { width: 100%; height: 100%; object-fit: cover; }
body.rm .rm-newspage__head { display: grid; gap: 10px; padding: 20px 28px 18px 25px; border-left: 3px solid var(--rm-red); border-bottom: 1px solid var(--rm-line-2); }
body.rm .rm-newspage__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 500 13px/1 var(--rm-mono); letter-spacing: 0.04em; color: var(--rm-tx-3); }
body.rm .rm-newspage__meta i { margin-right: 5px; }
body.rm .rm-newspage__title { margin: 0; font: 700 32px/1.15 var(--rm-head); letter-spacing: 0.04em; text-transform: uppercase; color: var(--rm-cream); }
body.rm .rm-newspage__body { padding: 22px 28px 28px; }
body.rm .rm-newspage__body .rm-news__text { font-size: 16px; line-height: 1.75; }
body.rm .rm-newspage__body ul { padding-left: 22px; }
body.rm .rm-newspage__body li + li { margin-top: 6px; }
@media (max-width: 640px) {
  body.rm .rm-newspage { margin-top: 8px; }
  body.rm .rm-newspage__head { padding: 16px 16px 14px 13px; }
  body.rm .rm-newspage__title { font-size: 24px; }
  body.rm .rm-newspage__body { padding: 16px 16px 22px; }
}

/* Account menu bar on every account page (layouts/widgets/user-nav.php, 2026-11-29) */
body.rm .rm-usernav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 8px; background: var(--rm-bg-1, #17171c); border: 1px solid var(--rm-line, #2a2b33); }
body.rm .rm-usernav__link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--rm-line-2, #3a3c47); background: var(--rm-bg-2, #1e1f26);
  color: var(--rm-tx-2, #a1a6b5); text-decoration: none; font: 600 14px/1 var(--rm-head, 'Barlow Condensed', Arial, sans-serif); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
body.rm .rm-usernav__link:hover { color: var(--rm-tx, #e4e5ea); border-color: var(--rm-line-3, #545761); }
body.rm .rm-usernav__link.is-active { color: #ffd14d; border-color: #ffd14d; background: rgba(255, 209, 77, .08); }
@media (max-width: 640px) {
  body.rm .rm-usernav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  body.rm .rm-usernav__link { padding: 8px 10px; font-size: 13px; }
}
