/*
 * PixyMU classic layout, ported from the 2018 OpenMu.com style.css.
 * Pure CSS frame (no external frame graphics); header banners live in ../img/classic/banners/.
 * Layout widths match the original: 1026px page, 950x300 banner, 200px side boxes, 526px content.
 */

:root {
  --om-bg: #171c1b;
  --om-panel: #1d2322;
  --om-row: #252b2a;
  --om-row-edge: #39433f;
  --om-text: #fff;
  --om-muted: #a9b5b1;
  --om-link: #5b9f91;
  --om-link-hover: #8fd6c6;
  --om-level: #d15815;
  --om-resets: #dba012;
  --om-online: #96e100;
  --om-offline: #e0353b;
  --om-by: #ff3b3b;
}

/* ---------- Page ---------- */
/* One scrollbar: the browser's own, in the frame colours. The old theme's fake "glass" bar (#rz-scrollbar,
   js/main.js) is not built on this layout and stays hidden even if a cached main.js builds it. */
html { scrollbar-width: auto !important; scrollbar-color: #4b5659 #0c0f10; }
body::-webkit-scrollbar { display: block !important; width: 12px !important; height: 12px !important; background: #0c0f10; }
body::-webkit-scrollbar-thumb { background: #4b5659; border-radius: 6px; border: 2px solid #0c0f10; }
#rz-scrollbar { display: none !important; }

html, body.om-body {
  min-width: 1040px;
  margin: 0;
  padding: 0;
  background: var(--om-bg);
  color: var(--om-text);
  font: 11px/1.5 Verdana, Arial, Helvetica, sans-serif;
  cursor: url('../img/MU.cur'), auto;
}
.om-body a { color: var(--om-link); text-decoration: none; }
.om-body a:hover, .om-body a:focus { color: var(--om-link-hover); text-decoration: none; cursor: url('../img/MU2.cur'), pointer; }
.om-body a:focus-visible, .om-body button:focus-visible, .om-body input:focus-visible, .om-has-card:focus-visible {
  outline: 2px solid var(--om-link-hover); outline-offset: 2px;
}
.om-body img { border: 0; }
.om-clear { clear: both; }
.om-on { color: var(--om-online); font-weight: bold; }
.om-off { color: var(--om-offline); font-weight: bold; }
.om-big { font-size: 13px; }

#om-main {
  position: relative;
  margin: 0 auto;
  width: 1026px;
  background: linear-gradient(90deg, #0d100f 0, #222928 3%, #1a201f 50%, #222928 97%, #0d100f 100%);
}
.om-line {
  width: 1026px;
  height: 15px;
  background: linear-gradient(90deg, transparent, rgba(91, 159, 145, .55) 20%, #9fd3c7 50%, rgba(91, 159, 145, .55) 80%, transparent) center / 100% 1px no-repeat,
              linear-gradient(90deg, transparent, rgba(0, 0, 0, .6) 20%, rgba(0, 0, 0, .6) 80%, transparent) center 9px / 100% 1px no-repeat;
}

/* ---------- Header: banner + menu ---------- */
.om-banner {
  position: relative;
  width: 950px;
  height: 300px;
  margin: 0 auto;
  overflow: hidden;
  background: #0b0d0d;
  box-shadow: 0 0 0 1px #2e3735, 0 6px 18px rgba(0, 0, 0, .6);
}
.om-banner a { display: block; width: 100%; height: 100%; }
.om-banner img {
  position: absolute; inset: 0;
  width: 950px; height: 300px;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.om-banner img.is-active { opacity: 1; }
.om-banner-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%;
  font: bold 64px/1 Georgia, serif; letter-spacing: 6px; color: #e9d9a6;
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(91, 159, 145, .7);
}
.om-banner-fallback small { font-size: 18px; letter-spacing: 4px; color: #bcd; margin-top: 10px; }


.om-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin: 0 30px;
  padding: 2px 0;
  list-style: none;
}
.om-menu li {
  background: linear-gradient(180deg, #2c3433, #1c2221);
  border: 1px solid #0f1312;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.om-menu a {
  display: block;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: bold;
  color: var(--om-link);
  white-space: nowrap;
}
.om-menu li:hover, .om-menu li.is-active { box-shadow: inset 0 0 0 1px #4f8a7e, inset 0 -2px 0 var(--om-link); }
.om-menu li.is-active a { color: #fff; }

/* Discord button at the right end of the menu bar, level with the banner's right edge (Travix style) */
.om-menu { position: relative; }
.om-menu li.om-menu-discord {
  position: absolute; top: 50%; right: 8px; margin-top: -13px;
  background: none; border: 0; box-shadow: none;
}
.om-menu li.om-menu-discord:hover { background: none; box-shadow: none; }
.om-menu a.om-discord {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; box-sizing: border-box;
  border-radius: 7px; border: 1px solid rgba(121, 131, 245, .45);
  background: rgba(0, 0, 0, .45); color: #7983f5; line-height: 0;
  transition: color .2s, background-color .2s, border-color .2s;
}
.om-menu a.om-discord:hover, .om-menu a.om-discord:focus-visible { color: #fff; background: #5865f2; border-color: #5865f2; }
.om-menu a.om-discord:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.om-discord .px-discord-icon { display: block; flex: none; width: 16px; height: 16px; }
@media (max-width: 1040px) { .om-menu li.om-menu-discord { position: static; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .om-menu a.om-discord { transition: none; } }

/* ---------- Columns ---------- */
#om-content { margin: 10px 43px; width: 940px; }
.om-leftpanel { float: left; width: 200px; }
.om-rightpanel { float: right; width: 200px; }

/* Side boxes (200px): bevelled cap, title strip, rows, bottom cap. */
.om-box {
  margin: 0 0 10px;
  width: 200px;
  background: linear-gradient(90deg, #121615, #1f2625 8%, #1f2625 92%, #121615);
  border: 1px solid #0a0d0c;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(91, 159, 145, .12), 0 3px 10px rgba(0, 0, 0, .45);
  box-sizing: border-box;
}
.om-box-top { height: 6px; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, transparent, rgba(143, 214, 198, .55), transparent) top / 100% 1px no-repeat; }
.om-box-bottom { height: 10px; border-radius: 0 0 6px 6px; background: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent); }
.om-box-container { position: relative; padding: 0 9px; text-align: center; }
.om-box-container > b {
  display: block;
  margin: 0 -9px 8px;
  padding: 6px 4px 7px;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, #2f3a38, #1b2120);
  border-top: 1px solid #0a0d0c;
  border-bottom: 1px solid #3e6e65;
}
.om-box-container ul { margin: 0; padding: 0; list-style: none; text-align: left; }
.om-box-container li {
  position: relative;
  margin: 2px 0;
  padding: 2px;
  background: linear-gradient(180deg, var(--om-row), #1b201f);
  border: 1px solid #111514;
}
.om-box-container li a { font-weight: bold; }

.om-steps { line-height: 1.7; }
.om-steps .om-step { margin: 8px 0 4px; font-weight: bold; text-align: left; }
.om-status { margin-top: 10px; padding-top: 8px; border-top: 1px solid #2f3936; }

/* Ranking rows: "# Name | Level | G.Resets" (players) and "# Name | Points | Memb" (guilds).
   Widths measured in Edge (bold 10px Verdana): 16 + 66 + 32 + 50 + two separators = 176 of the 178px row. */
.om-ranking li span { display: inline-block; font-size: 10px; font-weight: bold; text-align: center; vertical-align: middle; }
.om-ranking .om-id { width: 16px; color: #fff; }
.om-ranking .om-name { width: 66px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.om-ranking .om-name a { border-bottom: 1px dashed; }
.om-ranking .om-lvl { width: 32px; font-weight: normal; color: var(--om-level); }
.om-ranking .om-res { width: 50px; font-weight: normal; color: var(--om-resets); }
/* The columns stay on one line. */
.om-ranking li:not(.om-empty) { white-space: nowrap; }
.om-ranking li.om-rank-head { background: none; border-color: transparent; color: var(--om-muted); }
.om-ranking li.om-rank-head span { color: var(--om-link); }
.om-ranking li.om-empty { padding: 6px; text-align: center; color: var(--om-muted); }
.om-more { display: block; margin-top: 6px; font-weight: bold; text-align: right; }

/* Player hover card (replaces the old overlib tooltip) */
.om-ranking .om-card {
  display: none;
  position: absolute;
  z-index: 50;
  left: calc(100% + 14px);
  top: -40px;
  width: 340px;
  padding: 0 0 6px;
  background: #0f1312;
  border: 1px solid #4f8a7e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .75);
  text-align: left;
  pointer-events: none;
}
.om-has-card { cursor: help; }
.om-has-card:hover .om-card, .om-has-card:focus-within .om-card, .om-has-card:focus .om-card, .om-has-card.is-open .om-card { display: block; }
.om-ranking .om-card span { display: block; text-align: left; font-weight: normal; width: auto; overflow: visible; white-space: normal; }
.om-ranking .om-card .om-card-title { padding: 5px 8px; font-size: 11px; color: #fff; text-align: center; background: linear-gradient(180deg, #2c3433, #1c2221); border-bottom: 1px solid #2f3936; }
.om-ranking .om-card .om-card-title b { color: #d2288c; }
.om-ranking .om-card .om-card-body { display: flex; gap: 10px; padding: 8px; }
.om-card img { flex: 0 0 120px; width: 120px; height: 134px; object-fit: cover; border: 1px solid #2f3936; }
.om-ranking .om-card .om-card-stats { flex: 1; }
.om-ranking .om-card .om-card-row { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; border-bottom: 1px dotted #26302d; color: #fff; font-size: 10px; }
.om-ranking .om-card .om-card-row span { display: inline; }
.om-ranking .om-card .om-card-row span:first-child { color: var(--om-muted); }

/* User options / login */
.om-login { margin: 0 0 8px; text-align: left; }
.om-login label { display: block; margin: 4px 0 1px; font-size: 10px; color: var(--om-muted); }
.om-login input, .om-login button {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 4px;
  padding: 4px 6px;
  font: 11px Verdana, Arial, sans-serif;
  color: #fff;
  border: 1px solid #000;
  background: #252b2a;
}
.om-login input {
  border-color: #000;
  background: #0f1312;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .05);
  caret-color: var(--om-link-hover);
}
/* style.css turns focused text/password borders light grey; keep the frame colours instead. */
.om-login input:focus {
  outline: 0;
  border-color: var(--om-link);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6), 0 0 0 2px rgba(91, 159, 145, .25);
}
.om-login button { margin-top: 4px; font-weight: bold; color: var(--om-link); cursor: pointer; }
.om-login button:hover { color: #fff; box-shadow: inset 0 0 0 1px #4f8a7e; }

/* Saved logins: Chrome/Edge/Firefox paint autofilled fields light blue/yellow with black text and
   their background can't be overridden, so cover it with a dark inset shadow and force the text colour. */
.om-login input:-webkit-autofill,
.om-login input:-webkit-autofill:hover,
.om-wrap .form-control:-webkit-autofill,
.om-wrap .form-control:-webkit-autofill:hover {
  -webkit-text-fill-color: #fff;
  caret-color: var(--om-link-hover);
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6), inset 0 0 0 1000px #0f1312;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6), inset 0 0 0 1000px #0f1312;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.om-login input:-webkit-autofill:focus,
.om-wrap .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: inset 0 0 0 1000px #0f1312, 0 0 0 2px rgba(91, 159, 145, .25);
  box-shadow: inset 0 0 0 1000px #0f1312, 0 0 0 2px rgba(91, 159, 145, .25);
}
.om-welcome { margin: 0 0 6px; }
.om-menu-box li a { display: block; padding: 1px 4px; }
.om-logout { color: #ff8a8a !important; }
.om-info-list li { display: flex; justify-content: space-between; gap: 6px; padding: 2px 5px; }
.om-info-list li span:first-child { color: var(--om-muted); }
.om-info-list li span:last-child { color: var(--om-resets); font-weight: bold; }

/* ---------- Centre content box (526px) ---------- */
.om-center {
  display: block;
  margin: 0 auto;
  width: 526px;
  color: var(--om-text);
  background: radial-gradient(ellipse at top, #1d2524, #141918 70%);
  border: 1px solid #0a0d0c;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(91, 159, 145, .12), 0 3px 10px rgba(0, 0, 0, .45);
  box-sizing: border-box;
}
.om-center-top { height: 10px; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, transparent, rgba(143, 214, 198, .55), transparent) top / 100% 1px no-repeat; }
.om-center-bottom { height: 12px; border-radius: 0 0 6px 6px; background: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent); }
/* flow-root: module clearfixes (Bootstrap .panel-body etc.) must not clear the side-panel floats. */
.om-wrap { display: flow-root; position: relative; padding: 0 10px 10px; min-height: 400px; font-size: 12px; }

/* Wide pages (WebShop, rankings, account, profiles, guides): no side panels, full 940px box. */
.om-is-wide .om-center { width: 940px; }
.om-is-wide .om-wrap { padding: 6px 16px 16px; }

/* ---------- [News] boxes (home) ---------- */
.om-news {
  margin: 0 auto 10px;
  border: 1px solid #0d1110;
  background: rgba(0, 0, 0, .18);
}
.om-news-head {
  margin: 0;
  padding: 4px 6px;
  font: bold 12px Verdana, Arial, sans-serif;
  color: #fff;
  background: linear-gradient(180deg, #2c3433, #1c2221);
}
.om-news-head a { color: #fff; }
.om-new {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  font-size: 9px;
  line-height: 13px;
  letter-spacing: 1px;
  vertical-align: 1px;
  color: #fff;
  background: linear-gradient(180deg, #ff4d4d, #b40f16);
  border: 1px solid #5c0005;
  animation: om-blink 1.4s steps(2, start) infinite;
}
@keyframes om-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .om-new { animation: none; } }
.om-news-by {
  margin: 1px 0 0;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--om-by);
  background: #202625;
}
.om-news-body { padding: 10px 12px; text-align: center; font-size: 12px; line-height: 1.6; }
.om-news-body img { max-width: 100%; height: auto; }
.om-news-body p { margin: 0 0 8px; }
.om-lead { font-size: 15px; font-weight: bold; color: #b9e7ff; }
.om-sign { color: #a6f0b5; font-weight: bold; }
.om-readmore { text-align: right; font-weight: bold; }
.om-btn {
  display: inline-block;
  margin: 2px;
  padding: 5px 14px;
  font-weight: bold;
  color: #fff !important;
  border: 1px solid #000;
  background: linear-gradient(180deg, #33605a, #1d3532);
}
.om-btn:hover { box-shadow: inset 0 0 0 1px var(--om-link-hover); }
.om-btn-block { display: block; margin: 2px 0; padding: 7px 6px; font-size: 12px; text-align: center; text-shadow: 0 1px 0 #000; }
.om-btn-gold { background: linear-gradient(180deg, #8a6418, #4a3208); }
.om-btn-gold:hover { box-shadow: inset 0 0 0 1px #ffd77a; }
.om-shop-list { margin: 8px auto; padding: 0; list-style: none; text-align: left; }
.om-shop-list li { margin: 2px 0; padding: 4px 8px; background: #202625; border: 1px solid #111514; }
.om-shop-list a { font-weight: bold; }
.om-warn { color: #ffcf6e; }
.om-info p { margin: 0 0 10px; }
.om-white { color: #fff; }
.om-green { color: #48d35c; }
.om-red { color: #ff4a4a; }

/* ---------- Footer ---------- */
#om-footer { padding: 6px 0 0; font-size: 11px; font-weight: bold; text-align: center; color: #cfd8d5; }
#om-footer p { margin: 2px 0; }
.om-footer-links a { margin: 0 4px; }
.om-footer-links a.om-footer-discord { color: #7983f5; white-space: nowrap; }
.om-footer-links a.om-footer-discord:hover { color: #a5acff; }
.om-footer-discord .px-discord-icon { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.om-clock { font-weight: normal; color: var(--om-muted); }
.om-clock time, .om-clock span { color: #fff; }
.om-legal { font-weight: normal; font-size: 10px; color: #7f8b88; }

/* ---------- Module pages inside the classic frame ---------- */
.om-wrap .page-title {
  margin: 0 0 12px;
  padding: 5px 8px;
  font: bold 13px Verdana, Arial, sans-serif;
  letter-spacing: 1px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, #2c3433, #1c2221);
  border: 1px solid #0d1110;
}
.om-wrap .page-title::before { content: '[ '; color: var(--om-link); }
.om-wrap .page-title::after { content: ' ]'; color: var(--om-link); }
.om-wrap .px-card { background: rgba(0, 0, 0, .28); border-color: #34403d; border-radius: 4px; color: #e3ebe9; padding: 14px; font-size: 12px; }
.om-wrap .px-card h2, .om-wrap .px-card h3 { font-family: Verdana, Arial, sans-serif; color: var(--om-resets); }
.om-wrap .px-card h2 { font-size: 15px; }
.om-wrap .px-card h3 { font-size: 13px; }
.om-wrap .px-card a, .om-wrap .px-table a { color: var(--om-link); }
.om-wrap .px-card a:hover, .om-wrap .px-table a:hover { color: var(--om-link-hover); }
.om-wrap .px-table { font-size: 12px; color: #e3ebe9; }
.om-wrap .px-table th { color: var(--om-link); }
.om-wrap .px-table td, .om-wrap .px-table th { padding: 7px 8px; border-bottom-color: #2a3432; }
.om-wrap .px-nav a { border-color: #34403d; color: var(--om-link); background: #1d2322; }
.om-wrap .px-nav a.active { background: #2d4a45; color: #fff; }
.om-wrap .px-button { border-color: #3f6d64 !important; background: #1f3532; color: #fff !important; }
.om-wrap .px-button:hover { background: #2d4a45; }
.om-wrap .px-download h3 { margin: 10px 0 4px; }
.om-wrap .px-download + .px-download { margin-top: 12px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .07); }
.om-wrap .px-muted { color: var(--om-muted); }
.om-wrap .px-form label { color: var(--om-muted); }
.om-wrap .px-form input:not([type=hidden]):not([type=checkbox]), .om-wrap .px-form select, .om-wrap .px-form textarea { background: #101413; border-color: #34403d; color: #fff; }
.om-wrap .px-bar { background: #0f1312; box-shadow: inset 0 0 0 1px #26302d; }
.om-wrap .px-bar span { background: var(--om-link); }
.om-wrap .panel { background: rgba(0, 0, 0, .2); border-color: #0d1110; border-radius: 0; box-shadow: none; }
.om-wrap .panel > .panel-heading {
  padding: 5px 8px;
  color: #fff;
  background: linear-gradient(180deg, #2c3433, #1c2221);
  border-color: #0d1110;
  border-bottom: 1px solid #3e6e65;
  border-radius: 0;
}
.om-wrap .panel > .panel-heading .panel-title { font: bold 12px Verdana, Arial, sans-serif; color: #fff; }
.om-wrap .panel > .panel-body { padding: 8px 10px; color: #e3ebe9; }
.om-wrap .table { margin-bottom: 0; color: #e3ebe9; }
.om-wrap .table > tbody > tr > th { color: var(--om-link); font-weight: bold; }
.om-wrap .table > thead > tr > th, .om-wrap .table > tbody > tr > td { border-color: #2a3432; }

/* Forms (login, register, lost password, account pages): one centred classic box, labels above dark inputs. */
.om-wrap .col-xs-8.col-xs-offset-2 { float: none; width: auto; max-width: 340px; margin: 18px auto 10px !important; padding: 0; }
.om-wrap .form-horizontal {
  padding: 16px 18px 4px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid #0d1110;
  box-shadow: inset 0 0 0 1px rgba(91, 159, 145, .12);
}
.om-wrap .form-horizontal .form-group { margin: 0 0 12px; }
.om-wrap .form-horizontal .control-label {
  float: none; display: block; width: auto;
  padding: 0 0 4px; text-align: left;
  font-size: 11px; font-weight: bold; color: var(--om-muted);
}
.om-wrap .form-horizontal [class*="col-sm-"] { float: none; width: auto; margin-left: 0; padding: 0; }
.om-wrap .form-control {
  height: auto;
  padding: 7px 9px;
  font: 12px Verdana, Arial, sans-serif;
  color: #fff;
  background: #0f1312;
  border: 1px solid #34403d;
  border-radius: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
}
.om-wrap .form-control:focus { border-color: var(--om-link); box-shadow: 0 0 0 2px rgba(91, 159, 145, .25); outline: 0; }
.om-wrap .help-block { margin: 6px 0 0; font-size: 11px; text-align: right; color: var(--om-muted); }
.om-wrap .form-horizontal .btn, .om-wrap .btn-primary {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 7px 10px;
  font: bold 12px Verdana, Arial, sans-serif;
  color: #fff;
  text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, #33605a, #1d3532);
  border: 1px solid #000;
  border-radius: 0;
}
.om-wrap .form-horizontal .btn:hover, .om-wrap .btn-primary:hover, .om-wrap .btn-primary:focus { color: #fff; background: linear-gradient(180deg, #3f7870, #24423e); box-shadow: inset 0 0 0 1px var(--om-link-hover); }
.om-wrap .alert { border-radius: 0 !important; font-size: 12px !important; }

/* Rules (shared with Terms of Service) */
.om-wrap .rules-text { padding: 4px 6px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font: 12px/1.65 Verdana, Arial, sans-serif; color: #e3ebe9; }
.om-wrap .rules-text h1 {
  margin: 0 0 12px; padding: 5px 8px;
  font: bold 13px Verdana, Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; text-align: center; text-shadow: none;
  background: linear-gradient(180deg, #2c3433, #1c2221);
  border: 1px solid #0d1110;
}
.om-wrap .rules-text h1::before { content: '[ '; color: var(--om-link); }
.om-wrap .rules-text h1::after { content: ' ]'; color: var(--om-link); }
.om-wrap .rules-text .section { border-left-color: #3e6e65 !important; background: rgba(0, 0, 0, .18); border-radius: 0; box-shadow: none; }
.om-wrap .rules-text h2 {
  margin: 14px 0 6px; padding: 4px 8px;
  font: bold 12px Verdana, Arial, sans-serif; color: var(--om-resets); text-shadow: none;
  background: linear-gradient(180deg, #2c3433, #1c2221);
  border-bottom: 1px solid #3e6e65;
}
.om-wrap .rules-text p, .om-wrap .rules-text .section li { font-size: 12px; color: #e3ebe9; }
.om-wrap .rules-text a { color: var(--om-link); }

/* Banned / Admins / Statistics */
.om-empty-big { margin: 14px 0; padding: 14px; text-align: center; font-weight: bold; color: var(--om-online); background: rgba(0, 0, 0, .25); border: 1px dashed #34403d; }
.om-muted { color: var(--om-muted); }
.om-sub { display: block; font-size: 10px; color: var(--om-muted); }
.om-banned-name { font-weight: bold; color: #ff6b6b; text-decoration: line-through; }
.om-role { display: inline-block; padding: 1px 6px; font-size: 10px; font-weight: bold; border: 1px solid; }
.om-role-admin { color: #ffcf6e; border-color: #8a6418; background: rgba(138, 100, 24, .25); }
.om-role-gm { color: #8fd6c6; border-color: #3e6e65; background: rgba(62, 110, 101, .25); }
.om-wrap .om-kv th { width: 42%; color: var(--om-muted); font-size: 11px; text-transform: none; letter-spacing: 0; }
.om-wrap .om-dist th { width: 38%; color: #fff; font-size: 11px; text-transform: none; letter-spacing: 0; }
.om-wrap .om-dist td { padding-top: 5px; padding-bottom: 5px; }
.om-dist-n, .om-dist-pct { width: 46px; text-align: right !important; white-space: nowrap; }
.om-dist-bar { width: 40%; }

/* ---------- WebShop: OpenMu-style MENU | content | USER PANEL + OFFERS ---------- */
.om-body .ps-shop { --ps-gold: var(--om-resets); --ps-muted: var(--om-muted); padding: 0; font: 12px/1.55 Verdana, Arial, sans-serif; color: #e3ebe9; }
.om-body .ps-shop a { color: var(--om-link); }
.om-body .ps-shop a:hover { color: var(--om-link-hover); }
.om-body .ps-header { display: block; margin: 0 0 12px; padding: 5px 8px; text-align: center; background: linear-gradient(180deg, #2c3433, #1c2221); border: 1px solid #0d1110; }
.om-body .ps-header h1 { margin: 0; font: bold 13px Verdana, Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.om-body .ps-header h1::before { content: '[ '; color: var(--om-link); }
.om-body .ps-header h1::after { content: ' ]'; color: var(--om-link); }
.om-body .ps-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr) 190px; gap: 12px; align-items: start; }
.om-body .ps-box {
  margin: 0 0 12px;
  background: linear-gradient(90deg, #121615, #1f2625 8%, #1f2625 92%, #121615);
  border: 1px solid #0a0d0c;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(91, 159, 145, .12), 0 3px 10px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.om-body .ps-box-title {
  margin: 0; padding: 7px 10px;
  font: bold 14px Verdana, Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, #2f3a38, #1b2120);
  border-bottom: 1px solid #3e6e65;
}
.om-body .ps-sidebar { display: block; }
.om-body .ps-sidebar nav { display: block; padding: 6px 6px 8px; background: none; border: 0; border-radius: 0; }
.om-body .ps-sidebar nav a {
  position: relative; display: block; padding: 4px 6px 4px 16px;
  font: bold 11px Verdana, Arial, sans-serif; text-transform: uppercase;
  color: var(--om-link); border: 0;
}
.om-body .ps-sidebar nav a::before { content: '\2022'; position: absolute; left: 5px; color: #7d8a87; }
.om-body .ps-sidebar nav a:hover { color: var(--om-link-hover); background: rgba(91, 159, 145, .08); }
.om-body .ps-sidebar nav a.active { color: #fff; background: rgba(91, 159, 145, .18); border-left: 0; padding-left: 16px; }
.om-body .ps-side-note { padding: 0 4px; font-size: 11px; line-height: 1.6; color: var(--om-muted); }
.om-body .ps-userpanel .ps-account { margin: 0 0 12px; padding: 0; border: 1px solid #0a0d0c; background: linear-gradient(90deg, #121615, #1f2625 8%, #1f2625 92%, #121615); }
.om-body .ps-account p { margin: 0; padding: 8px 10px; font-size: 11px; }
.om-body .ps-userinfo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; margin: 0; padding: 8px 10px; font-size: 11px; }
.om-body .ps-userinfo dt { font-weight: bold; color: var(--om-link); }
.om-body .ps-userinfo dd { margin: 0; text-align: right; font-weight: bold; color: #fff; overflow-wrap: anywhere; }
.om-body .ps-userinfo .ps-credits { color: var(--om-resets); }
.om-body .ps-shop .ps-status { color: var(--om-offline); font-weight: bold; font-size: 11px; }
.om-body .ps-shop .ps-status::before { background: var(--om-offline); }
.om-body .ps-shop .ps-status.is-online { color: var(--om-online); }
.om-body .ps-shop .ps-status.is-online::before { background: var(--om-online); }
.om-body .ps-panel-link {
  display: block; margin: 0 10px 10px; padding: 5px;
  font-weight: bold; text-align: center; color: #fff !important;
  background: linear-gradient(180deg, #33605a, #1d3532); border: 1px solid #000;
}
.om-body .ps-offers ul { margin: 0; padding: 6px 6px 8px; list-style: none; }
.om-body .ps-offers li a { display: block; padding: 4px 6px; font-size: 11px; font-weight: bold; text-decoration: underline; }
.om-body .ps-offers li small { display: block; font-weight: normal; color: var(--om-resets); text-decoration: none; }
.om-body .ps-new {
  display: inline-block; margin-right: 3px; padding: 0 3px;
  font-size: 8px; line-height: 12px; letter-spacing: 1px; vertical-align: 1px; text-decoration: none;
  color: #fff; background: linear-gradient(180deg, #ff4d4d, #b40f16); border: 1px solid #5c0005;
}

/* Content column */
.om-body .ps-main { min-width: 0; }
.om-body .ps-eyebrow { color: var(--om-link); font-size: 10px; letter-spacing: .12em; }
.om-body .ps-section-heading h2 { margin: 2px 0 0; font: bold 15px Verdana, Arial, sans-serif; color: var(--om-resets); }
.om-body .ps-section-heading > a { font-size: 11px; }
.om-body .ps-intro { font-size: 12px; margin: 0 0 12px; color: var(--om-muted); }
.om-body .ps-panel { padding: 12px; margin-bottom: 12px; background: rgba(0, 0, 0, .28); border: 1px solid #2a3432; border-radius: 4px; }
.om-body .ps-filters button { padding: 5px 8px; font-size: 11px; color: var(--om-link); background: #1d2322; border: 1px solid #34403d; border-radius: 0; }
.om-body .ps-filters button.active, .om-body .ps-filters button:hover { color: #fff; background: #2d4a45; border-color: #4f8a7e; }
.om-body .ps-filters .ps-filter-link { padding: 5px 8px; font-size: 11px; border-radius: 0; }
.om-body .ps-search input { padding: 7px 9px; font: 12px Verdana, Arial, sans-serif; color: #fff; background: #0f1312; border: 1px solid #34403d; border-radius: 0; }
.om-body .ps-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.om-body .ps-product { background: #151b1a; border: 1px solid #2a3432; border-radius: 4px; }
.om-body .ps-product:hover { transform: none; border-color: #4f8a7e; }
.om-body .ps-product-art { min-height: 150px; background: radial-gradient(ellipse at 50% 60%, #26302e 0, #161c1b 70%); border-bottom: 1px solid #2a3432; }
.om-body .ps-product-art img { height: 140px; padding: 8px; object-fit: scale-down; filter: drop-shadow(0 4px 6px #000); }
.om-body .ps-product-info { padding: 9px; }
.om-body .ps-product-info h3 { font: bold 12px Verdana, Arial, sans-serif; color: #fff; }
.om-body .ps-product-info p { font-size: 10px; color: var(--om-muted); margin-bottom: 8px; }
.om-body .ps-product-info > div { border-top-color: #2a3432; padding-top: 7px; }
.om-body .ps-product-info strong { font-size: 13px; color: var(--om-resets); }
.om-body .ps-primary { font: bold 12px Verdana, Arial, sans-serif; color: #fff; text-shadow: 0 1px 0 #000; background: linear-gradient(180deg, #33605a, #1d3532); border: 1px solid #000; border-radius: 0; padding: 8px 14px; }
.om-body .ps-primary:hover { background: linear-gradient(180deg, #3f7870, #24423e); }
.om-body .ps-builder { grid-template-columns: minmax(0, 1fr); }
.om-body .ps-credit-packs { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.om-body .ps-balance { font: bold 22px Verdana, Arial, sans-serif; color: var(--om-resets); padding: 8px 0; }
.om-body .ps-total { border-top-color: #3e6e65; }
.om-body .ps-total strong { font: bold 18px Verdana, Arial, sans-serif; color: var(--om-resets); }
.om-body .ps-preview-art img, .om-body .ps-review-item img { object-fit: scale-down; }
.om-body .ps-product-tag { color: #cfe9e3; background: rgba(15, 19, 18, .85); border-color: #3e6e65; border-radius: 0; }
.om-body .ps-product-arrow { color: var(--om-link); border-color: #3e6e65; }
.om-body .ps-filters .ps-filter-link { color: var(--om-resets); background: #2a2414; border-color: #6d5a2a; }
.om-body .ps-builder .px-form label, .om-body .ps-options-heading h3 { font-family: Verdana, Arial, sans-serif; color: var(--om-muted); }
.om-body .ps-options-heading button { color: var(--om-link); }

/* Warehouse: 8 x 15 grid of 32px cells at native icon size, row numbers on the right */
.om-body .ps-warehouse-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.om-body .ps-vault-panel { padding: 10px; }
.om-body .ps-vault-heading, .om-body .ps-vault-footer { font-size: 11px; color: var(--om-muted); }
.om-body .ps-vault-heading span:first-child { font-weight: bold; color: #fff; letter-spacing: 1px; }
.om-body .ps-vault-frame { display: flex; gap: 4px; }
.om-body .ps-vault {
  flex: 0 0 256px; width: 256px;
  border: 1px solid #5d6466;
  background-color: #23272a;
  background-image: linear-gradient(to right, #4b5254 1px, transparent 1px), linear-gradient(to bottom, #4b5254 1px, transparent 1px),
                    radial-gradient(circle at 50% 45%, #363c3e 0, #25292b 70%);
  background-size: 32px 32px, 32px 32px, 32px 32px;
  box-shadow: inset 0 0 0 1px #000, 0 2px 8px rgba(0, 0, 0, .6);
}
.om-body .ps-vault-item > img { object-fit: scale-down; filter: drop-shadow(0 1px 1px #000); }
.om-body .ps-vault-item:hover, .om-body .ps-vault-item:focus, .om-body .ps-vault-item.selected { background: rgba(91, 159, 145, .2); border-color: #5b9f91; }
.om-body .ps-vault-tooltip { border-color: #4f8a7e; font-size: 11px; padding: 10px; min-width: 220px; }
.om-body .ps-vault-rows {
  order: 2; display: grid; grid-template-rows: repeat(15, 1fr);
  width: 20px; margin: 0; padding: 0; list-style: none;
  font-size: 10px; color: #7d8a87;
}
.om-body .ps-vault-rows li { display: flex; align-items: center; justify-content: center; background: #1a1e1f; border: 1px solid #2c3234; margin-bottom: -1px; }

/* Builder: selected item card on top, checkboxes for Luck / Skill / Excellent options */
.om-body .ps-builder { display: flex; flex-direction: column; gap: 12px; }
/* Top card has a fixed height (icon, name, type, total), so ticking options never moves the page. */
.om-body .ps-builder-preview { order: -1; position: static; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0; }
.om-body .ps-builder-preview .ps-preview-art {
  display: flex; align-items: center; justify-content: center; height: 150px;
  background: radial-gradient(ellipse at 50% 55%, #2b3634 0, #141a19 72%); border: 1px solid #2a3432;
}
.om-body .ps-builder-preview .ps-preview-art img { max-width: 140px; max-height: 140px; object-fit: scale-down; filter: drop-shadow(0 4px 6px #000); }
.om-body .ps-preview-head h3 { min-height: 2.5em; margin: 2px 0 4px; font: bold 14px/1.25 Verdana, Arial, sans-serif; color: #fff; }
.om-body #ps-preview-name.ps-name-excellent { color: #5ddc6f; }
.om-body .ps-kind { display: inline-block; padding: 1px 7px; font-size: 10px; font-weight: bold; color: var(--om-muted); border: 1px solid #34403d; }
.om-body .ps-kind.is-excellent { color: #5ddc6f; border-color: rgba(90, 210, 110, .6); background: rgba(46, 160, 67, .15); }
.om-body .ps-preview-head .ps-total { margin-top: 8px; padding-top: 8px; }
.om-body .ps-preview-head .px-muted { font-size: 10px; margin: 4px 0 0; }
/* Growing option list and price breakdown sit below the checkboxes, next to the Review button. */
.om-body .ps-builder-summary { margin: 12px 0 4px; padding: 10px 12px; background: rgba(0, 0, 0, .25); border: 1px solid #2a3432; }
.om-body .ps-builder-summary .ps-tooltip-content span { display: block; font-size: 11px; text-align: left; }
.om-body .ps-builder-summary .ps-breakdown { margin: 8px 0 0; font-size: 11px; }
.om-body .ps-builder-summary .ps-total { margin-top: 6px; padding-top: 8px; }
.om-body .ps-toggles { display: flex; gap: 6px; margin: 12px 0 4px; }
.om-body .ps-builder .px-form label.ps-check {
  display: flex; align-items: center; gap: 8px; flex: 1;
  margin: 0; padding: 7px 9px;
  font: 12px Verdana, Arial, sans-serif; color: #e3ebe9;
  background: #101413; border: 1px solid #2a3432; cursor: pointer;
}
.om-body .ps-check input[type=checkbox] { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: #5b9f91; cursor: pointer; }
.om-body .ps-check span { flex: 1; }
.om-body .ps-check small { white-space: nowrap; font-size: 10px; color: var(--om-resets); }
.om-body .ps-builder .px-form label.ps-check:hover { border-color: #4f8a7e; }
.om-body .ps-builder .px-form label.ps-check:has(input:checked) { background: rgba(91, 159, 145, .14); border-color: #3e6e65; }
.om-body .ps-builder .px-form label.ps-check.is-disabled { opacity: .5; cursor: not-allowed; }
.om-body #ps-excellent-options { display: grid; gap: 4px; }
.om-body .ps-option-row { border: 0; padding: 0; }
.om-body .ps-options-heading { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.om-body .ps-options-heading h3 { flex: 1; margin: 0; font: bold 12px Verdana, Arial, sans-serif; }

/* Build an Item, classic MUCore flow: 1 category tiles -> 2 item cards -> 3 one item's options -> 4 review */
.om-body .ps-steps { display: flex; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; }
.om-body .ps-steps li {
  flex: 1; min-width: 0; padding: 5px 6px;
  font: bold 10px Verdana, Arial, sans-serif; letter-spacing: .3px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #66736f; background: #121615; border: 1px solid #252e2c;
}
.om-body .ps-steps li span {
  display: inline-block; width: 15px; height: 15px; margin-right: 5px; border-radius: 50%;
  line-height: 15px; text-align: center; color: #8b9794; background: #252e2c;
}
.om-body .ps-steps li.is-done { border-color: #2f4a45; }
.om-body .ps-steps li.is-done span { color: #cfe9e3; background: #2d4a45; }
.om-body .ps-steps li.is-current { color: #fff; background: #1d2a28; border-color: #4f8a7e; }
.om-body .ps-steps li.is-current span { color: #000; background: var(--om-resets); }
.om-body .ps-steps a { display: block; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.om-body .ps-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.om-body .ps-shop a.ps-cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 6px 9px;
  text-align: center; text-decoration: none; background: #151b1a; border: 1px solid #2a3432; border-radius: 4px;
}
.om-body .ps-shop a.ps-cat-tile:hover, .om-body .ps-shop a.ps-cat-tile:focus-visible { background: #1a2221; border-color: #4f8a7e; }
.om-body .ps-cat-art, .om-body .ps-item-art {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: radial-gradient(ellipse at 50% 60%, #26302e 0, #161c1b 70%);
}
.om-body .ps-cat-art { height: 100px; margin-bottom: 3px; }
.om-body .ps-cat-art img { max-width: 96px; max-height: 94px; object-fit: scale-down; filter: drop-shadow(0 3px 4px #000); }
.om-body .ps-cat-tile strong { font-size: 12px; color: #fff; }
.om-body .ps-cat-tile small { font-size: 10px; color: var(--om-muted); }
.om-body .ps-cat-nav { margin: 0 0 8px; padding: 6px 6px 2px; background: #121615; border: 1px solid #2a3432; }
.om-body .ps-cat-nav > * {
  display: inline-block; margin: 0 3px 4px 0; padding: 2px 7px;
  font: bold 11px Verdana, Arial, sans-serif; white-space: nowrap; text-decoration: none;
  background: #1a201f; border: 1px solid #2a3432;
}
.om-body .ps-cat-nav a:hover { border-color: #4f8a7e; }
.om-body .ps-cat-nav .active { color: #fff; background: #2d4a45; border-color: #4f8a7e; }
.om-body .ps-class-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 10px; font-size: 11px; color: var(--om-muted); }
.om-body .ps-class-filter > span { margin-right: 2px; font-weight: bold; }
.om-body .ps-class-filter button {
  padding: 3px 7px; font: bold 10px Verdana, Arial, sans-serif; cursor: pointer;
  color: var(--om-link); background: #1d2322; border: 1px solid #34403d;
}
.om-body .ps-class-filter button.active, .om-body .ps-class-filter button:hover { color: #fff; background: #2d4a45; border-color: #4f8a7e; }
.om-body .ps-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.om-body .ps-item-card {
  display: flex; flex-direction: column; align-items: center; padding: 8px 8px 10px;
  text-align: center; background: #151b1a; border: 1px solid #2a3432; border-radius: 4px;
}
.om-body .ps-item-card[hidden] { display: none; }
.om-body .ps-item-card:hover { border-color: #4f8a7e; }
.om-body .ps-item-card h3 {
  display: flex; align-items: center; justify-content: center; min-height: 2.6em; margin: 0 0 6px;
  font: bold 12px/1.3 Verdana, Arial, sans-serif; color: #fff;
}
.om-body .ps-item-art { height: 134px; }
.om-body .ps-item-art img { max-width: 124px; max-height: 128px; object-fit: scale-down; filter: drop-shadow(0 3px 4px #000); }
.om-body .ps-item-price { margin: 8px 0 0; font-size: 11px; color: var(--om-muted); }
.om-body .ps-item-price strong { font-size: 14px; color: var(--om-resets); }
.om-body .ps-item-full { margin: 1px 0 0; font-size: 10px; color: var(--om-muted); }
.om-body .ps-item-classes { flex: 1; margin: 6px 0 9px; font-size: 10px; line-height: 1.45; color: var(--om-muted); }
.om-body .ps-item-classes b { display: block; color: #cfe9e3; }
.om-body .ps-shop .ps-item-card a.ps-buy { display: block; width: 100%; padding: 6px 8px; text-align: center; text-decoration: none; color: #fff; }
.om-body .ps-preview-head .ps-eyebrow { display: block; }

/* Warehouse: centred grid, cell colour by item type (as in the game) */
.om-body .ps-warehouse-layout { grid-template-columns: auto; justify-content: center; }
.om-body .ps-vault .ps-vault-item.ps-vault-excellent { background: rgba(46, 160, 67, .24); box-shadow: inset 0 0 0 1px rgba(90, 210, 110, .45); }
.om-body .ps-vault .ps-vault-item.ps-vault-ancient { background: rgba(40, 110, 220, .26); box-shadow: inset 0 0 0 1px rgba(100, 160, 255, .5); }
.om-body .ps-vault .ps-vault-item.ps-vault-normal { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.om-body .ps-vault .ps-vault-item:hover, .om-body .ps-vault .ps-vault-item:focus { filter: brightness(1.3); border-color: #8fd6c6; }
.om-body .ps-vault-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 8px 0 0; font-size: 10px; color: var(--om-muted); }
.om-body .ps-key { display: inline-block; width: 11px; height: 11px; margin-left: 4px; vertical-align: -1px; }
.om-body .ps-key.ps-vault-excellent { background: rgba(46, 160, 67, .55); border: 1px solid rgba(90, 210, 110, .8); }
.om-body .ps-key.ps-vault-ancient { background: rgba(40, 110, 220, .55); border: 1px solid rgba(100, 160, 255, .9); }
.om-body .ps-item-name.ps-name-excellent { color: #5ddc6f; }
.om-body .ps-item-name.ps-name-ancient { color: #4aa3ff; }
.om-body .ps-admin-link { display: block; margin: -4px 10px 10px; text-align: center; font-size: 10px; font-weight: bold; color: var(--om-resets) !important; }

@media (max-width: 1040px) {
  .om-body .ps-layout { grid-template-columns: minmax(0, 1fr); }
  .om-body .ps-userpanel { order: -1; }
  .om-body .ps-warehouse-layout { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}

/* Rankings and My Account load in place (js/live-nav.js): dim the block while the next tab loads. */
.om-body .px-live { transition: opacity .12s; }
.om-body .px-live.px-live-loading { opacity: .55; pointer-events: none; }

/* ---------- Narrow screens: single column ---------- */
@media (max-width: 1040px) {
  html, body.om-body { min-width: 0; }
  #om-main { width: 100%; background: #1a201f; }
  .om-line { width: 100%; background-size: 100% 15px; }
  .om-banner { width: 100%; max-width: 950px; height: auto; aspect-ratio: 950 / 300; }
  .om-banner img { width: 100%; height: 100%; object-fit: cover; }
  .om-menu { margin: 0 8px; }
  #om-content { display: flex; flex-direction: column; gap: 10px; width: auto; margin: 10px 16px; }
  .om-center, .om-is-wide .om-center { order: 0; width: 100%; max-width: 100%; }
  .om-leftpanel { order: 1; }
  .om-rightpanel { order: 2; }
  .om-leftpanel, .om-rightpanel { float: none; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
  .om-box { width: 100%; margin: 0; }
  .om-ranking .om-name { width: calc(100% - 110px); }
  .om-ranking .om-card { left: 0; top: 100%; width: min(340px, 100%); }
}
