/* ==========================================================================
   Tema Mystic — layout clássico (3 colunas) com molduras azul-marinho/dourado.
   O conteúdo das páginas continua no pergaminho do tibiacom (.BoxContent).
   ========================================================================== */
:root {
  --mx-navy-900: #07101f;
  --mx-navy-800: #0c1a31;
  --mx-navy-700: #12274a;
  --mx-navy-600: #1a3764;
  --mx-navy-500: #234a85;
  --mx-gold-300: #f7e3a3;
  --mx-gold-400: #e9c46a;
  --mx-gold-500: #c99a3b;
  --mx-gold-700: #7a5a1e;
  --mx-parch: #f1e2c2;
  --mx-ink: #3b2a12;
  --mx-green: #2f8a3a;
  --mx-bronze: #8a6a45;
  --mx-radius: 6px;
  --mx-frame: 0 0 0 1px var(--mx-gold-700), 0 0 0 3px var(--mx-navy-900), 0 0 0 4px var(--mx-gold-500), 0 10px 30px rgba(0, 0, 0, .55);
}

body.mx {
  margin: 0;
  min-height: 100vh;
  background: var(--mx-navy-900) !important;
  color: var(--mx-ink);
  font-family: Verdana, Arial, sans-serif;
  overflow-x: hidden;
}

.mx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center top;
}
.mx-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(7, 16, 31, .15) 0%, rgba(7, 16, 31, .75) 55%, rgba(7, 16, 31, .95) 100%),
    linear-gradient(180deg, rgba(7, 16, 31, 0) 0%, rgba(7, 16, 31, .85) 70%);
}

/* ---------- topo / logo ---------- */
.mx-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 230px;
}
.mx-logo img {
  max-height: 225px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .8));
  transition: transform .25s ease;
}
.mx-logo:hover img { transform: scale(1.03); }
.mx-burger { display: none; }

/* ---------- grade ---------- */
.mx-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 220px;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 16px;
  align-items: start;
}
.mx-left, .mx-right { display: flex; flex-direction: column; gap: 16px; }
.mx-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* ---------- títulos em faixa (ribbon) ---------- */
.mx-card-title, .mx-panel-title, .mx-nav-group > summary {
  position: relative;
  margin: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mx-gold-300);
  text-shadow: 0 1px 0 #000, 0 0 8px rgba(233, 196, 106, .25);
  background: linear-gradient(180deg, var(--mx-navy-500) 0%, var(--mx-navy-700) 55%, var(--mx-navy-800) 100%);
  border: 1px solid var(--mx-gold-500);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 0 0 2px var(--mx-navy-900), 0 0 0 3px var(--mx-gold-700);
  text-align: center;
}
.mx-card-title::before, .mx-card-title::after,
.mx-panel-title::before, .mx-panel-title::after,
.mx-nav-group > summary::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--mx-gold-400);
  border: 1px solid var(--mx-gold-700);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 6px rgba(233, 196, 106, .6);
}
.mx-card-title::before, .mx-panel-title::before, .mx-nav-group > summary::before { left: -6px; }
.mx-card-title::after, .mx-panel-title::after { right: -6px; }

/* ---------- cards laterais ---------- */
.mx-card {
  background: linear-gradient(180deg, #f6ead0 0%, var(--mx-parch) 100%);
  border-radius: var(--mx-radius);
  box-shadow: var(--mx-frame);
}
.mx-card-title { font-size: 12.5px; padding: 8px 10px; border-radius: var(--mx-radius) var(--mx-radius) 0 0; }
.mx-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; text-align: center; }
.mx-muted { margin: 0; color: #6b5636; font-size: 11px; line-height: 1.45; }

/* ---------- botões ---------- */
.mx-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 4px;
  font: 700 11.5px/1 'Open Sans', Verdana, sans-serif;
  letter-spacing: .03em;
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  border: 1px solid rgba(0, 0, 0, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 4px rgba(0, 0, 0, .35);
  transition: filter .15s ease, transform .15s ease;
  cursor: pointer;
}
.mx-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.mx-btn:active { transform: translateY(0); }
.mx-btn svg { width: 16px; height: 16px; }
.mx-btn-blue { background: linear-gradient(180deg, #3a73c9, #1d4790); }
.mx-btn-bronze { background: linear-gradient(180deg, #a5835a, #6d5133); }
.mx-btn-green { background: linear-gradient(180deg, #44a84f, #22702b); }
.mx-btn-gold { background: linear-gradient(180deg, #e2b75a, #a87a24); color: #2b1c05 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.mx-download { padding: 11px; font-size: 13px; box-shadow: var(--mx-frame); }

/* ---------- menu lateral ---------- */
.mx-nav { display: flex; flex-direction: column; gap: 9px; }
.mx-nav-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 26px 8px 12px;
  font-size: 12.5px;
  border-radius: 4px;
  user-select: none;
  transition: filter .15s ease;
}
.mx-nav-group > summary::-webkit-details-marker { display: none; }
.mx-nav-group > summary:hover { filter: brightness(1.2); }
.mx-nav-group > summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--mx-gold-400);
  border-bottom: 2px solid var(--mx-gold-400);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.mx-nav-group[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.mx-nav-items {
  margin: 4px 6px 0;
  padding: 4px 0;
  background: rgba(7, 16, 31, .88);
  border: 1px solid var(--mx-gold-700);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.mx-nav-items a {
  display: block;
  padding: 6px 12px 6px 22px;
  position: relative;
  color: #d9d2c2;
  font: 600 11.5px 'Open Sans', Verdana, sans-serif;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.mx-nav-items a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--mx-gold-500);
  transform: translateY(-50%) rotate(45deg);
}
.mx-nav-items a:hover { background: rgba(35, 74, 133, .55); color: var(--mx-gold-300); }
.mx-nav-items a.active { background: linear-gradient(90deg, rgba(233, 196, 106, .25), transparent); color: var(--mx-gold-300); }

/* ---------- barra superior ---------- */
.mx-topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 9px 16px;
  border-radius: var(--mx-radius);
  background: linear-gradient(180deg, var(--mx-navy-600), var(--mx-navy-800));
  box-shadow: var(--mx-frame);
  font: 600 12px 'Open Sans', Verdana, sans-serif;
}
.mx-topbar a { display: inline-flex; align-items: center; gap: 6px; color: #e9e3d3; text-decoration: none; transition: color .15s ease; }
.mx-topbar a:hover { color: var(--mx-gold-300); }
.mx-topbar svg { width: 16px; height: 16px; fill: currentColor; }
.mx-sep { flex: 1; }
.mx-online b { color: #7ee08a; }
.mx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc5a; box-shadow: 0 0 0 3px rgba(61, 220, 90, .2); animation: mx-pulse 2s infinite; }
@keyframes mx-pulse { 50% { box-shadow: 0 0 0 6px rgba(61, 220, 90, 0); } }
.mx-flags { display: inline-flex; gap: 5px; }
.mx-flags img { width: 22px; height: 22px; border-radius: 50%; display: block; transition: transform .15s ease; }
.mx-flags a:hover img { transform: scale(1.15); }

/* ---------- busca ---------- */
.mx-search { display: flex; margin: 0; }
.mx-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid var(--mx-gold-700);
  border-right: 0;
  border-radius: var(--mx-radius) 0 0 var(--mx-radius);
  background: rgba(7, 16, 31, .85);
  color: #f1ead8;
  font: 13px 'Open Sans', Verdana, sans-serif;
  outline: none;
}
.mx-search input::placeholder { color: #8f8a7c; }
.mx-search input:focus { border-color: var(--mx-gold-400); box-shadow: 0 0 0 2px rgba(233, 196, 106, .25); }
.mx-search button {
  width: 44px;
  border: 1px solid var(--mx-gold-700);
  border-radius: 0 var(--mx-radius) var(--mx-radius) 0;
  background: linear-gradient(180deg, #e2b75a, #a87a24);
  color: #2b1c05;
  cursor: pointer;
}
.mx-search button svg { width: 18px; height: 18px; }

/* ---------- painel principal ---------- */
.mx-panel {
  background: var(--mx-parch);
  border-radius: var(--mx-radius);
  box-shadow: var(--mx-frame);
}
.mx-panel-title { font-size: 16px; padding: 10px 18px; text-align: left; border-radius: var(--mx-radius) var(--mx-radius) 0 0; }
.mx-panel-title::before { left: 10px; }
.mx-panel-title::after { display: none; }
.mx-panel-title span { padding-left: 14px; }
.mx-panel-body { padding: 10px; }
.mx-panel-body > .BoxContent {
  font-size: 12px;
  padding: 12px !important;
  min-height: 120px;
  border: 1px solid #b89a6a;
  border-radius: 4px;
  background-size: auto;
  overflow-x: auto;
  color: #3b2a12;
}

/* ---------- news ticker (usa a estrutura .Box antiga) ---------- */
.mx-main #NewsTicker.Box {
  margin: 0;
  font-size: 12px;
  border: 0;
  background: var(--mx-parch);
  border-radius: var(--mx-radius);
  box-shadow: var(--mx-frame);
  overflow: hidden;
}
.mx-main #NewsTicker > .Corner-tl, .mx-main #NewsTicker > .Corner-tr, .mx-main #NewsTicker > .Border_1,
.mx-main #NewsTicker > .CornerWrapper-b, .mx-main #NewsTicker > #ContentBoxHeadline { display: none !important; }
.mx-main #NewsTicker > .BorderTitleText {
  display: block !important;
  height: auto !important;
  background: linear-gradient(180deg, var(--mx-navy-500) 0%, var(--mx-navy-700) 55%, var(--mx-navy-800) 100%) !important;
  border-bottom: 1px solid var(--mx-gold-500);
  padding: 9px 18px 9px 32px;
  font: 700 15px 'Cinzel', Georgia, serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mx-gold-300);
  text-shadow: 0 1px 0 #000;
}
.mx-main #NewsTicker > .BorderTitleText::before { content: "News Ticker"; }
.mx-main #NewsTicker .Border_2, .mx-main #NewsTicker .Border_3 { background: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
.mx-main #NewsTicker .BoxContent { background: none !important; padding: 4px 8px !important; min-height: 0 !important; }
.mx-main #NewsTicker .Row { border-bottom: 1px solid rgba(122, 90, 30, .2); }
.mx-main #NewsTicker .Row:last-child { border-bottom: 0; }
.mx-main #NewsTicker .Odd, .mx-main #NewsTicker .Even { background: transparent !important; }
.mx-main #NewsTicker .Row:hover { background: rgba(201, 154, 59, .12); }

/* ---------- widgets da direita ---------- */
.mx-status-line { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; }
.mx-status-line span { color: #6b5636; }
.mx-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 2px 0 4px; text-align: left; font-size: 11.5px; }
.mx-kv dt { color: #6b5636; }
.mx-kv dd { margin: 0; font-weight: 700; text-align: right; }

.mx-rank { gap: 4px; text-align: left; }
.mx-rank-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 4px;
  text-decoration: none !important;
  color: inherit !important;
  transition: background .15s ease;
}
.mx-rank-row:hover { background: rgba(201, 154, 59, .18); }
.mx-rank-pos {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 10px 'Open Sans', sans-serif;
  color: #fff;
  background: #6d5133;
  border: 1px solid rgba(0, 0, 0, .4);
}
.mx-pos-1 { background: linear-gradient(180deg, #f2cf63, #b0861d); color: #3a2600; }
.mx-pos-2 { background: linear-gradient(180deg, #e3e6ea, #9aa1a8); color: #2b2f33; }
.mx-pos-3 { background: linear-gradient(180deg, #dc9a5e, #95582a); }
.mx-rank-outfit { flex: none; width: 46px; height: 46px; object-fit: none; object-position: right bottom; margin: -6px 0 -4px; }
.mx-rank-info { display: flex; flex-direction: column; min-width: 0; }
.mx-rank-info b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #2b1d0b; }
.mx-rank-info small { font-size: 10px; color: #6b5636; }
.mx-rank-info { flex: 1; }
.mx-rank-reset { color: #1d7a1d; font-weight: bold; }
.mx-rank-bar { display: block; height: 5px; margin-top: 2px; border: 1px solid #141a1e; background: #22272c; overflow: hidden; }
.mx-rank-bar span { display: block; height: 100%; background: #c00000; box-shadow: inset 0 -1px #ba0000; }
.mx-link-more { display: block; margin-top: 4px; text-align: right; font-size: 11px; font-weight: 700; color: var(--mx-navy-500) !important; }

.mx-icon-round {
  width: 58px;
  height: 58px;
  margin: 2px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f9e1a0, #c99a3b 60%, #7a5a1e);
  box-shadow: 0 0 0 2px var(--mx-navy-800), 0 0 0 3px var(--mx-gold-500), 0 4px 10px rgba(0, 0, 0, .4);
  color: var(--mx-navy-800);
  overflow: hidden;
}
.mx-icon-round svg { width: 30px; height: 30px; }
.mx-icon-round img { width: 100%; height: 100%; object-fit: cover; }
.mx-icon-wpp { background: radial-gradient(circle at 35% 30%, #8ff0a4, #25a244 60%, #12592a); color: #fff; }
.mx-castle-owner { margin: 0; font-weight: 700; font-size: 12px; }

/* ---------- rodapé ---------- */
.mx-footer {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: #b9b2a0;
  background: rgba(7, 16, 31, .75);
  border: 1px solid var(--mx-gold-700);
  border-radius: var(--mx-radius);
}
.mx-footer a { color: var(--mx-gold-400) !important; }

#mx-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--mx-navy-500), var(--mx-navy-800));
  border: 1px solid var(--mx-gold-500);
  color: var(--mx-gold-300) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  z-index: 200;
}

.mx-hidden-lang { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* elementos do tibiacom que não existem mais neste layout */
body.mx #MobileMenu, body.mx #BackToTopButton { display: none !important; }

/* ---------- telas menores ---------- */
@media (max-width: 1100px) {
  .mx-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .mx-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

@media (max-width: 760px) {
  .mx-hero { height: 120px; }
  .mx-logo img { max-height: 110px; }
  .mx-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: absolute;
    left: 16px;
    top: 36px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--mx-gold-500);
    background: linear-gradient(180deg, var(--mx-navy-600), var(--mx-navy-800));
    cursor: pointer;
  }
  .mx-burger span { display: block; height: 2px; background: var(--mx-gold-300); border-radius: 2px; }
  .mx-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mx-left { display: none; }
  body.mx-nav-open .mx-left { display: flex; }
  .mx-right { grid-template-columns: minmax(0, 1fr); }
  .mx-topbar { justify-content: center; }
  .mx-sep { display: none; }
  .mx-panel-body { padding: 6px; }
  .mx-panel-body > .BoxContent { padding: 8px !important; }
}

/* ticker: só o texto curto; o "+" abre o texto completo (TickerAction do tibiacom) */
.mx-main #NewsTicker .Row { position: relative; cursor: pointer; padding: 6px 28px 6px 30px; min-height: 18px; }
.mx-main #NewsTicker .NewsTickerIcon { position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; background-size: contain; }
.mx-main #NewsTicker .NewsTickerExtend { position: absolute; right: 8px; top: 8px; width: 12px; height: 12px; }
.mx-main #NewsTicker .NewsTickerText { font-size: 11.5px; line-height: 1.4; }
.mx-main #NewsTicker .NewsTickerDate { color: #7a5a1e; font-weight: 700; margin-right: 6px; }
.mx-main #NewsTicker .NewsTickerTime { display: none; }
.mx-main #NewsTicker .NewsTickerTextContainer { display: inline; }
.mx-main #NewsTicker .NewsTickerShortText, .mx-main #NewsTicker .NewsTickerShortText p { display: inline; margin: 0; }
.mx-main #NewsTicker .NewsTickerFullText { display: none; }
.mx-main #NewsTicker .NewsTickerFullText p { margin: 4px 0 0; }
.mx-main #NewsTicker .NewsTickerText, .mx-main #NewsTicker .NewsTickerTextContainer { white-space: normal !important; width: auto !important; max-width: 100%; }
.mx-main #NewsTicker .Row, .mx-main #NewsTicker .Odd, .mx-main #NewsTicker .Even { width: auto !important; height: auto !important; }

/* ==========================================================================
   Componentes das páginas (markup antigo do tibiacom), estilo novo
   ========================================================================== */
.mx-panel-body > .BoxContent {
  background: linear-gradient(180deg, #f7ecd4, #efdfbd) !important;
  font-family: 'Open Sans', Verdana, sans-serif;
}
.mx-main .BoxContent h1, .mx-main .BoxContent h2 {
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: .04em;
}

/* caixa com título */
.mx-main .TableContainer {
  border: 0 !important;
  margin: 6px 0 14px;
  border-radius: var(--mx-radius);
  background: #fbf3e2;
  box-shadow: 0 0 0 1px #c8a86e, 0 3px 10px rgba(59, 42, 18, .18);
  overflow: hidden;
  font-size: 12px;
}
.mx-main .TableContainer .CaptionContainer {
  background: linear-gradient(180deg, var(--mx-navy-500), var(--mx-navy-700) 60%, var(--mx-navy-800)) !important;
  border-bottom: 2px solid var(--mx-gold-500);
  height: auto !important;
}
.mx-main .CaptionContainer .CaptionInnerContainer { position: static !important; height: auto !important; padding: 0 !important; background: none !important; }
.mx-main .CaptionContainer span[class^="Caption"] { display: none !important; }
.mx-main .TableContainer .CaptionContainer .Text,
.mx-main .TableContainer .Text {
  position: static !important;
  height: auto !important;
  padding: 8px 14px !important;
  font: 700 13px 'Cinzel', Georgia, serif !important;
  letter-spacing: .08em;
  color: var(--mx-gold-300) !important;
  text-shadow: 0 1px 0 #000;
  background: none !important;
  text-transform: uppercase;
}
.mx-main .TableContainer table.Table1, .mx-main .TableContainer table.Table2, .mx-main .TableContainer table.Table3,
.mx-main .TableContainer table.Table4, .mx-main .TableContainer table.Table5 {
  width: 100%;
  border: 0 !important;
  background: none !important;
}
.mx-main .InnerTableContainer { padding: 8px !important; background: none !important; border: 0 !important; }
.mx-main .TableContentContainer { border: 0 !important; background: none !important; }
.mx-main .TableContent { border: 0 !important; border-collapse: separate; border-spacing: 0; border-radius: 4px; overflow: hidden; background: #fffaf0; box-shadow: 0 0 0 1px #e2cfa6; }
.mx-main .TableContent td, .mx-main .TableContent th { padding: 6px 9px !important; border: 0 !important; border-bottom: 1px solid #ecdcbc !important; font-size: 12px; }
.mx-main .TableContent tr:last-child > td { border-bottom: 0 !important; }
.mx-main .TableContent tr.LabelH td, .mx-main .TableContent .LabelH, .mx-main .TableContent th {
  background: linear-gradient(180deg, #e9d3a6, #d9bd87) !important;
  color: #3b2a12 !important;
  font-weight: 700;
}
.mx-main .TableContent tr:hover > td { background-color: rgba(201, 154, 59, .10); }
.mx-main .LabelV, .mx-main td.LabelV { font-weight: 700; color: #5a3d14; white-space: nowrap; width: 1%; }
.mx-main .Odd { background-color: #fffaf0; }
.mx-main .Even { background-color: #f6ead0; }

/* campos */
.mx-main .BoxContent input[type=text], .mx-main .BoxContent input[type=password], .mx-main .BoxContent input[type=email],
.mx-main .BoxContent input[type=number], .mx-main .BoxContent input[type=search], .mx-main .BoxContent select, .mx-main .BoxContent textarea {
  box-sizing: border-box;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #c8a86e;
  border-radius: 4px;
  background: #fffdf8;
  color: #2b1d0b;
  font: 12.5px 'Open Sans', Verdana, sans-serif;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mx-main .BoxContent input:focus, .mx-main .BoxContent select:focus, .mx-main .BoxContent textarea:focus {
  border-color: var(--mx-navy-500);
  box-shadow: 0 0 0 3px rgba(35, 74, 133, .18);
}
.mx-main .BoxContent input[type=checkbox], .mx-main .BoxContent input[type=radio] { accent-color: var(--mx-navy-500); width: 15px; height: 15px; vertical-align: middle; }

/* botões grandes (texto real) */
.mx-main .BigButton {
  display: inline-block;
  width: auto !important;
  height: auto !important;
  margin: 3px 0;
  background: none !important;
}
.mx-main .BigButton > div { position: static !important; width: auto !important; height: auto !important; }
.mx-main .BigButtonOver { display: none !important; }
.mx-main .BigButtonText, .mx-main .BoxContent input[type=submit]:not(.mx-keep), .mx-main .BoxContent button:not(.mx-keep):not([class*="swal"]) {
  position: static !important;
  display: inline-block;
  min-width: 128px;
  width: auto !important;
  height: auto !important;
  padding: 8px 16px !important;
  border: 1px solid rgba(0, 0, 0, .55) !important;
  border-radius: 4px;
  background: linear-gradient(180deg, #3a73c9, #1d4790) !important;
  color: #fff !important;
  font: 700 12px/1.2 'Open Sans', Verdana, sans-serif !important;
  letter-spacing: .03em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 4px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.mx-main .BigButtonText:hover, .mx-main .BoxContent input[type=submit]:hover, .mx-main .BoxContent button:hover { filter: brightness(1.15); transform: translateY(-1px); }
.mx-main .BigButton[style*="green"] .BigButtonText { background: linear-gradient(180deg, #44a84f, #22702b) !important; }
.mx-main .BigButton[style*="red"] .BigButtonText { background: linear-gradient(180deg, #d0533f, #8f2416) !important; }

/* botões que eram imagem (input type=image): o rótulo vem do alt (mystic.js) */
.mx-main .mx-imgbtn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  width: auto !important;
  height: 36px !important;
  padding: 0 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e2b75a, #a87a24) !important;
  border: 1px solid rgba(0, 0, 0, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(0, 0, 0, .3);
  transition: filter .15s ease, transform .15s ease;
}
.mx-main .mx-imgbtn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.mx-main .mx-imgbtn::after { content: attr(data-label); font: 700 12.5px 'Open Sans', Verdana, sans-serif; color: #2b1c05; pointer-events: none; }
.mx-main .mx-imgbtn > div[class$="Over"] { display: none !important; }
.mx-main .mx-imgbtn input[type=image] { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; cursor: pointer; margin: 0; }
.mx-main .mx-imgbtn-green { background: linear-gradient(180deg, #44a84f, #22702b) !important; }
.mx-main .mx-imgbtn-green::after { color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .6); }

/* links e textos */
.mx-main .BoxContent a { color: #1d4790; }
.mx-main .BoxContent a:hover { color: #a0701b; }
.mx-main .red, .mx-main .BoxContent .red { color: #b3261e !important; }
.mx-main .SmallBox, .mx-main .MessageContainer { border-radius: 4px; }
.mx-main .ErrorMessage, .mx-main .SmallBox .ErrorMessage { background: #fdecea !important; border: 1px solid #e6a49c; border-radius: 4px; color: #8f1d14; }

/* ---------- página de login ---------- */
.mx-auth { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; padding: 6px; }
.mx-auth-card {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--mx-radius);
  background: #fffaf0;
  box-shadow: 0 0 0 1px #c8a86e, 0 4px 14px rgba(59, 42, 18, .18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Open Sans', Verdana, sans-serif;
}
.mx-auth-new { background: linear-gradient(180deg, var(--mx-navy-600), var(--mx-navy-800)); box-shadow: 0 0 0 1px var(--mx-gold-500), 0 4px 14px rgba(0, 0, 0, .35); color: #e9e3d3; }
.mx-auth-title { margin: 0; font: 700 17px 'Cinzel', Georgia, serif; letter-spacing: .05em; color: var(--mx-navy-700); }
.mx-auth-new .mx-auth-title { color: var(--mx-gold-300); }
.mx-auth-sub { margin: -4px 0 4px; color: #6b5636; font-size: 12px; }
.mx-field { display: flex; flex-direction: column; gap: 5px; }
.mx-field span { font-size: 11.5px; font-weight: 700; color: #5a3d14; text-transform: uppercase; letter-spacing: .04em; }
.mx-main .mx-field input { width: 100%; padding: 10px 12px !important; font-size: 13.5px !important; }
.mx-field-error input { border-color: #c0392b !important; }
.mx-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.mx-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.mx-main .mx-auth-submit { width: 100%; min-width: 0; padding: 12px !important; font-size: 13.5px !important; margin-top: 4px; }
.mx-auth-perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; flex: 1; }
.mx-auth-perks li { position: relative; padding-left: 20px; }
.mx-auth-perks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 8px; height: 8px; background: var(--mx-gold-400); transform: rotate(45deg); box-shadow: 0 0 6px rgba(233, 196, 106, .6); }
.mx-main .mx-auth-link { text-align: center; color: var(--mx-gold-300) !important; font-size: 12px; font-weight: 700; }
@media (max-width: 760px) { .mx-auth { grid-template-columns: 1fr; } }
/* zebra mais clara no lugar dos bgcolor antigos (#D4C0A1 / #F1E0C6) */
.mx-main .TableContent > tbody > tr:nth-child(odd) > td { background-color: #fffaf0 !important; }
.mx-main .TableContent > tbody > tr:nth-child(even) > td { background-color: #f5e8cc !important; }
.mx-main .TableContent > tbody > tr.LabelH > td, .mx-main .TableContent > tbody > tr > td.LabelH { background: linear-gradient(180deg, #e9d3a6, #d9bd87) !important; }
.mx-main .TableContent > tbody > tr:hover > td { background-color: #f0dfb8 !important; }
/* shop: categorias */
.mx-main .divCategories, .mx-main .divCategoriesActive {
  border-radius: 6px !important;
  border: 1px solid #c8a86e !important;
  background: linear-gradient(180deg, #fffaf0, #f0dfb8) !important;
  box-shadow: 0 2px 6px rgba(59, 42, 18, .15);
  font: 700 12px 'Open Sans', Verdana, sans-serif !important;
  color: #3b2a12 !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mx-main .divCategories:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(59, 42, 18, .25); }
.mx-main .divCategoriesActive { background: linear-gradient(180deg, var(--mx-navy-500), var(--mx-navy-800)) !important; color: var(--mx-gold-300) !important; border-color: var(--mx-gold-500) !important; }

/* faixas de título antigas (imagem title-background-*.gif verde) nas notícias/caixas */
.mx-main td[style*="title-background"], .mx-main div[style*="title-background"], .mx-main th[style*="title-background"] {
  background: linear-gradient(180deg, var(--mx-navy-500), var(--mx-navy-700) 60%, var(--mx-navy-800)) !important;
  border-bottom: 2px solid var(--mx-gold-500) !important;
  color: var(--mx-gold-300) !important;
  font-family: 'Cinzel', Georgia, serif !important;
  letter-spacing: .08em;
  text-shadow: 0 1px 0 #000 !important;
}
.mx-main td[style*="title-background"] *, .mx-main div[style*="title-background"] * { color: var(--mx-gold-300) !important; }
.mx-main table[style*="#350404"] { border-color: var(--mx-gold-700) !important; background-color: #f6ead0 !important; border-radius: 6px; overflow: hidden; }
.mx-main td[style*="#350404"] { border-color: #c8a86e !important; background: linear-gradient(180deg, #fffaf0, #f0dfb8) !important; box-shadow: 0 2px 8px rgba(59, 42, 18, .18) !important; transition: transform .15s ease; }
.mx-main td[style*="#350404"]:hover { transform: translateY(-2px); }

/* ---------- logo em texto ---------- */
.mx-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .9;
  text-decoration: none !important;
  user-select: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .85));
  transition: transform .25s ease;
}
.mx-logo-text:hover { transform: scale(1.03); }
.mx-logo-main, .mx-logo-sub b {
  position: relative;
  font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  font-weight: 900;
  background: linear-gradient(180deg, #fff6cf 0%, #f7d774 28%, #d9a531 52%, #a8711a 64%, #f2cf6a 80%, #fff1b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px #3a2406;
}
.mx-logo-main { font-size: 108px; letter-spacing: .06em; }
/* reflexo que passa pelas letras */
.mx-logo-main::after, .mx-logo-sub b::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%);
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
  animation: mx-shine 5s ease-in-out infinite;
}
@keyframes mx-shine { 0%, 55% { background-position: 150% 0; } 85%, 100% { background-position: -50% 0; } }
.mx-logo-sub { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.mx-logo-sub b { font-size: 56px; letter-spacing: .3em; padding-left: .3em; }
.mx-logo-sub i {
  display: block;
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e9c46a);
  position: relative;
}
.mx-logo-sub i:last-child { background: linear-gradient(270deg, transparent, #e9c46a); }
.mx-logo-sub i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #f7d774;
  border: 1px solid #3a2406;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(247, 215, 116, .8);
}
.mx-logo-sub i:first-child::after { right: -4px; }
.mx-logo-sub i:last-child::after { left: -4px; }
@media (max-width: 760px) {
  .mx-logo-main { font-size: 54px; }
  .mx-logo-sub b { font-size: 28px; }
  .mx-logo-sub i { width: 44px; }
  .mx-logo-sub { gap: 8px; }
}

/* ==========================================================================
   v2 — mais próximo do Rubinot: faixas com pontas recortadas, cards bege
   emoldurados em dourado, ticker em linhas, webshop na direita
   ========================================================================== */
:root {
  --mx-ribbon-shape: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  --mx-tan: #e9d2a6;
  --mx-tan-dark: #d8bd8c;
  --mx-frame-gold: #b8862f;
}

/* faixa: fundo azul + contorno dourado desenhados nas pseudo-camadas */
.mx-ribbon {
  position: relative;
  isolation: isolate;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.mx-ribbon::before, .mx-ribbon::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
  width: auto !important; height: auto !important;
  transform: none !important;
  border: 0 !important;
  box-shadow: none !important;
  clip-path: var(--mx-ribbon-shape);
}
.mx-ribbon::before {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 170, 240, .35), transparent 70%),
    linear-gradient(180deg, #2a5596 0%, #173566 50%, #0d2148 100%) !important;
}
.mx-ribbon::after {
  z-index: -2;
  top: -2px !important; right: -3px !important; bottom: -2px !important; left: -3px !important;
  background: linear-gradient(180deg, #f6dc8e, #b8862f 45%, #7a5216 100%) !important;
}

/* títulos dos cards: faixa larga que passa por cima da moldura */
.mx-card { background: none !important; box-shadow: none !important; border-radius: 0; }
.mx-card-title.mx-ribbon {
  margin: 0 -4px;
  padding: 9px 22px !important;
  font-size: 13px;
  z-index: 2;
  text-align: center;
}
.mx-card-body {
  position: relative;
  margin: -6px 8px 0;
  padding: 16px 12px 12px !important;
  background: linear-gradient(180deg, #edd8b0, var(--mx-tan)) !important;
  border: 3px solid var(--mx-frame-gold);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 0 0 1px #f8e6bf, 0 0 0 1px #4a3210, 0 6px 14px rgba(0, 0, 0, .45);
}

/* menu: faixas largas com seta */
.mx-nav { gap: 7px; }
.mx-nav-group > summary.mx-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 30px !important;
  font-size: 13px;
}
.mx-nav-group > summary .mx-chev {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--mx-gold-300);
  border-bottom: 2px solid var(--mx-gold-300);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.mx-nav-group[open] > summary .mx-chev { transform: translateY(-30%) rotate(-135deg); }
.mx-nav-items {
  margin: -2px 12px 2px;
  padding: 6px 0;
  background: linear-gradient(180deg, #edd8b0, var(--mx-tan));
  border: 2px solid var(--mx-frame-gold);
  border-top: 0;
  box-shadow: inset 0 0 0 1px #f8e6bf;
}
.mx-nav-items a { color: #3b2a12; font-weight: 700; }
.mx-nav-items a::before { background: var(--mx-frame-gold); }
.mx-nav-items a:hover { background: rgba(184, 134, 47, .2); color: #1d4790; }
.mx-nav-items a.active { background: linear-gradient(90deg, rgba(29, 71, 144, .18), transparent); color: #1d4790; }

/* botão download estilo "verde liso" */
.mx-download { border-radius: 2px; box-shadow: 0 0 0 1px #0f3d14, inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px rgba(0, 0, 0, .4); }

/* barra superior: itens à direita, separadores */
.mx-topbar.mx-ribbon-bar {
  justify-content: flex-end;
  padding: 11px 26px;
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 170, 240, .3), transparent 70%),
    linear-gradient(180deg, #2a5596, #10264f) !important;
  box-shadow: 0 0 0 2px #7a5216, 0 0 0 3px #f0d17d, 0 0 0 4px #4a3210, 0 8px 18px rgba(0, 0, 0, .5);
}
.mx-vsep { display: inline-block; width: 1px; height: 18px; background: rgba(233, 196, 106, .45); }
.mx-flags img { border-radius: 3px; width: 26px; height: 18px; object-fit: cover; }

/* painel central e ticker: faixa + moldura bege */
.mx-panel, .mx-main #NewsTicker.mx-ticker { background: none !important; box-shadow: none !important; }
.mx-panel-title.mx-ribbon {
  margin: 0 -6px;
  padding: 10px 28px !important;
  font-size: 15px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 2;
}
.mx-panel-title span { padding-left: 0; }
.mx-title-icon { width: 18px; height: 18px; color: var(--mx-gold-300); flex: none; }
.mx-panel-body {
  margin: -6px 6px 0;
  padding: 18px 14px 14px !important;
  background: linear-gradient(180deg, #ecd6ad, var(--mx-tan));
  border: 3px solid var(--mx-frame-gold);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 0 0 1px #f8e6bf, 0 0 0 1px #4a3210, 0 8px 18px rgba(0, 0, 0, .45);
}
.mx-panel-body > .BoxContent {
  background: #d9c4a0 !important;
  border: 1px solid #c4a777 !important;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ticker em linhas */
.mx-ticker .mx-panel-body { padding: 12px 10px 10px !important; }
.mx-ticker-list { border: 1px solid #c4a777; border-radius: 4px; overflow: hidden; }
.mx-ticker-row {
  display: grid;
  grid-template-columns: 18px 92px minmax(0, 1fr) 14px;
  align-items: start;
  gap: 10px;
  padding: 7px 12px;
  font: 11.5px/1.5 'Open Sans', Verdana, sans-serif;
  color: #3b2a12;
  cursor: pointer;
  background: #f3e3c3;
  border-bottom: 1px solid #dcc59a;
  transition: background .15s ease;
}
.mx-ticker-row:nth-child(even) { background: #ecd8b2; }
.mx-ticker-row:last-child { border-bottom: 0; }
.mx-ticker-row:hover { background: #f8ecd2; }
.mx-ticker-icon { width: 16px; height: 16px; margin-top: 2px; }
.mx-ticker-date { color: #6b5636; font-size: 11px; white-space: nowrap; }
.mx-ticker-short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-ticker-short[style*="table"] { display: block !important; }
.mx-ticker-full p { margin: 0 0 4px; }
.mx-ticker-chev { width: 7px; height: 7px; margin-top: 6px; border-right: 2px solid #6b5636; border-bottom: 2px solid #6b5636; transform: rotate(-45deg); background: none !important; }

/* webshop */
.mx-shop-title {
  text-align: center;
  font: 700 14px 'Cinzel', Georgia, serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mx-gold-400);
  text-shadow: 0 1px 0 #000, 0 0 10px rgba(233, 196, 106, .4);
  margin-bottom: 8px;
}
.mx-shop-banner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 26px 14px 14px;
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 200, 90, .35), transparent 65%),
    linear-gradient(160deg, #3b2a5c, #141c38 70%);
  box-shadow: 0 0 0 1px #4a3210, 0 0 0 3px var(--mx-frame-gold), 0 8px 18px rgba(0, 0, 0, .5);
  text-align: center;
}
.mx-shop-tag { font: italic 700 18px 'Cinzel', Georgia, serif; color: #f7d774; text-shadow: 0 2px 6px #000; }
.mx-btn-orange { background: linear-gradient(180deg, #ff9a2e, #d9600c); border-color: #7a3305; font-size: 13px; padding: 11px 10px; letter-spacing: .06em; text-transform: uppercase; }
.mx-shop-link { color: #e9e3d3 !important; font-size: 11px; font-weight: 700; text-decoration: none !important; }
.mx-shop-link:hover { color: var(--mx-gold-300) !important; }

/* ícones redondos estilo "Discord/Wiki" */
.mx-icon-round { position: relative; width: 52px; height: 52px; }
.mx-icon-status { background: radial-gradient(circle at 35% 30%, #7fa6e8, #2f5ba8 60%, #142e63); color: #fff; }
.mx-dot-badge { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border: 2px solid #142e63; }
.mx-card-body .mx-btn { border-radius: 3px; }

@media (max-width: 760px) {
  .mx-topbar.mx-ribbon-bar { justify-content: center; padding: 10px 14px; }
  .mx-vsep { display: none; }
  .mx-ticker-row { grid-template-columns: 16px 74px minmax(0, 1fr) 10px; gap: 6px; padding: 7px 8px; }
}

/* ---------- logo "BAIAK GO" (letras estilo fantasia, amarelo→laranja, contorno grosso) ---------- */
.mx-logo-rubi { position: relative; display: inline-block; text-decoration: none !important; user-select: none; transition: transform .25s ease; }
.mx-logo-rubi:hover { transform: scale(1.04) rotate(-1deg); }
/* o próprio texto é o contorno preto grosso + sombra */
.mx-logo-word {
  position: relative;
  display: inline-block;
  padding: 0 .08em;
  font: 400 128px/1 'Metal Mania', 'New Rocker', Georgia, serif;
  letter-spacing: .02em;
  color: #0b0b0d;
  -webkit-text-stroke: 18px #0b0b0d;
  text-shadow: 0 8px 0 #0b0b0d, 0 14px 24px rgba(0, 0, 0, .8), 0 0 40px rgba(60, 140, 255, .35);
}
/* preenchimento amarelo→laranja por cima */
.mx-logo-word::before, .mx-logo-word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding: inherit;
  -webkit-text-stroke: 0;
  text-shadow: none;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mx-logo-word::before { background-image: linear-gradient(180deg, #fff59a 0%, #ffd83d 30%, #ffb21f 58%, #ff8a1c 80%, #ff6a1a 100%); }
/* reflexo passando */
.mx-logo-word::after {
  background-image: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .9) 50%, transparent 58%);
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: mx-shine 5s ease-in-out infinite;
}
@media (max-width: 760px) {
  .mx-logo-word { font-size: 62px; -webkit-text-stroke: 10px #0b0b0d; text-shadow: 0 5px 0 #0b0b0d, 0 8px 14px rgba(0, 0, 0, .8); }
}

/* página de personagem: células mais compactas (tabela de skills com 10 colunas) e blocos centralizados */
.mx-main #characters .InnerTableContainer { padding: 6px !important; }
.mx-main #characters .TableContent td, .mx-main #characters .TableContent th { padding: 5px 6px !important; }
.mx-main #characters .TableContainer { max-width: 100%; }
.mx-main #characters table { max-width: 100%; }
.mx-main #characters .Table3 { table-layout: auto; }
.mx-main #characters .progress { max-width: 100%; }
.mx-main #characters td[align="center"], .mx-main #characters .TableContent td[style*="text-align: center"] { text-align: center; }

/* balão de ajuda/tooltip (HelperDiv do tibiacom) no tema escuro */
#HelperDivContainer {
  background: linear-gradient(180deg, #16294d, #0b1730) !important;
  border: 1px solid var(--mx-gold-500) !important;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 10px 26px rgba(0, 0, 0, .65) !important;
  padding: 8px !important;
  color: #e9e3d3 !important;
  font: 12px/1.45 'Open Sans', Verdana, sans-serif !important;
  width: auto !important;
  max-width: 340px;
  min-width: 180px;
}
#HelperDivContainer .Ornament, #HelperDivContainer > br { display: none !important; }
#HelperDivContainer .HelperDivArrow { display: none !important; }
#HelperDivHeadline { font: 700 13px 'Cinzel', Georgia, serif !important; color: var(--mx-gold-300) !important; margin-bottom: 4px; }
#HelperDivHeadline:empty { display: none; }
#HelperDivText { color: #e9e3d3 !important; }
#HelperDivText a { color: var(--mx-gold-400) !important; }

/* criar conta: escolha de vocação em cards */
.mx-voc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 4px 0; }
.mx-voc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 6px 10px;
  border-radius: 6px;
  border: 2px solid #c8a86e;
  background: linear-gradient(180deg, #fffaf0, #f0dfb8);
  box-shadow: 0 2px 6px rgba(59, 42, 18, .15);
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mx-voc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(59, 42, 18, .25); }
.mx-voc-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.mx-voc-img { display: flex; align-items: flex-end; justify-content: center; height: 84px; width: 100%; }
.mx-voc-img img { width: 84px; height: 84px; object-fit: contain; image-rendering: pixelated; transform: translate(-12px, -2px); }
.mx-voc-name { font: 700 12px 'Open Sans', Verdana, sans-serif; color: #3b2a12; line-height: 1.2; }
.mx-voc-card:has(input:checked) {
  border-color: var(--mx-gold-500);
  background: linear-gradient(180deg, #2a5596, #10264f);
  box-shadow: 0 0 0 2px #f0d17d, 0 8px 18px rgba(0, 0, 0, .35);
}
.mx-voc-card:has(input:checked) .mx-voc-name { color: var(--mx-gold-300); }
.mx-voc-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mx-gold-400);
  color: #2b1c05;
  font: 700 12px sans-serif;
}
@media (max-width: 760px) { .mx-voc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- página de downloads ---------- */
.mx-dl { display: flex; flex-direction: column; gap: 16px; font-family: 'Open Sans', Verdana, sans-serif; }
.mx-dl-intro { margin: 0; font-size: 13px; color: #3b2a12; text-align: center; }
.mx-dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mx-dl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0, #f3e3c3);
  box-shadow: 0 0 0 1px #c8a86e, 0 4px 12px rgba(59, 42, 18, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.mx-dl-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #b8862f, 0 10px 20px rgba(59, 42, 18, .25); }
.mx-dl-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #4a3518; flex: 1; }
.mx-dl-featured {
  grid-row: span 2;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 190, 80, .28), transparent 60%),
    linear-gradient(180deg, #2a5596, #10264f);
  box-shadow: 0 0 0 2px var(--mx-gold-500), 0 0 0 3px #4a3210, 0 10px 24px rgba(0, 0, 0, .4);
  color: #e9e3d3;
}
.mx-dl-featured p { color: #d9d2c2; font-size: 13px; }
.mx-dl-featured h3 { color: var(--mx-gold-300) !important; font-size: 18px !important; }
.mx-dl-head { display: flex; align-items: center; gap: 12px; }
.mx-dl-head h3 { margin: 2px 0 0; font: 700 14.5px 'Cinzel', Georgia, serif !important; color: #1d3a6e !important; letter-spacing: .03em; }
.mx-dl-os {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0 0 2px #10264f, 0 0 0 3px var(--mx-gold-500);
}
.mx-dl-os svg { width: 24px; height: 24px; }
.mx-os-windows { background: radial-gradient(circle at 35% 30%, #7fb6ff, #2a6fd6 60%, #13407f); }
.mx-os-android { background: radial-gradient(circle at 35% 30%, #a6f09a, #3fa34d 60%, #1d5a26); }
.mx-os-map { background: radial-gradient(circle at 35% 30%, #f9e1a0, #c99a3b 60%, #7a5a1e); color: #2b1c05; }
.mx-dl-featured .mx-dl-os { width: 56px; height: 56px; }
.mx-dl-featured .mx-dl-os svg { width: 30px; height: 30px; }
.mx-dl-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2b1c05;
  background: linear-gradient(180deg, #f7d774, #c99a3b);
}
.mx-dl-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.mx-dl-meta span { padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; background: rgba(59, 42, 18, .08); color: #5a3d14; }
.mx-dl-featured .mx-dl-meta span { background: rgba(255, 255, 255, .12); color: #f1ead8; }
.mx-dl-btn { padding: 11px 12px !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: .05em; }
.mx-dl-featured .mx-dl-btn { padding: 14px !important; font-size: 14px !important; }

.mx-dl-h { margin: 0 0 10px; font: 700 15px 'Cinzel', Georgia, serif !important; color: #1d3a6e !important; letter-spacing: .04em; }
.mx-dl-steps, .mx-dl-video {
  padding: 16px 18px;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 0 0 1px #c8a86e, 0 4px 12px rgba(59, 42, 18, .15);
}
.mx-dl-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: mxstep; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mx-dl-steps li { counter-increment: mxstep; position: relative; padding: 42px 12px 12px; border-radius: 6px; background: #f3e3c3; font-size: 12.5px; line-height: 1.5; text-align: center; }
.mx-dl-steps li::before {
  content: counter(mxstep);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 700 13px 'Open Sans', sans-serif;
  color: #2b1c05;
  background: linear-gradient(180deg, #f7d774, #c99a3b);
  box-shadow: 0 0 0 2px #fffaf0, 0 0 0 3px #b8862f;
}
.mx-dl-wide-body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: center; }
.mx-dl-wide-side { display: flex; flex-direction: column; gap: 10px; }
.mx-dl-howto { margin: 8px 0 0; padding-left: 20px; font-size: 12.5px; line-height: 1.7; color: #4a3518; }
.mx-dl-howto code { padding: 1px 6px; border-radius: 3px; background: #1a2a48; color: #f7d774; font-size: 11.5px; }
.mx-dl-video p { margin: 0 0 10px; font-size: 12.5px; }
.mx-dl-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #4a3210; }
.mx-dl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 900px) {
  .mx-dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-dl-featured { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .mx-dl-grid, .mx-dl-steps ol, .mx-dl-wide-body { grid-template-columns: minmax(0, 1fr); }
}
/* destaque ocupa a linha inteira: texto à esquerda, botão à direita */
.mx-dl-featured {
  grid-row: auto;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  grid-template-areas: "head side" "desc side";
  column-gap: 20px;
  row-gap: 8px;
  align-items: center;
  padding: 20px 22px;
}
.mx-dl-featured .mx-dl-head { grid-area: head; }
.mx-dl-featured > p { grid-area: desc; }
.mx-dl-featured .mx-dl-meta { grid-area: side; align-self: start; justify-content: center; }
.mx-dl-featured .mx-dl-btn { grid-area: side; align-self: end; }
@media (max-width: 600px) {
  .mx-dl-featured { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "desc" "meta" "btn"; }
  .mx-dl-featured .mx-dl-meta { grid-area: meta; justify-content: flex-start; }
  .mx-dl-featured .mx-dl-btn { grid-area: btn; }
}
.mx-dl-featured .mx-dl-head h3 { color: var(--mx-gold-300) !important; font-size: 18px !important; }

/* logo no mesmo tamanho/proporção da logo do Rubinot (~300px de largura, topo ~175px) */
.mx-hero { height: 175px !important; }
.mx-logo-word {
  font-size: 76px !important;
  letter-spacing: .01em !important;
  padding: 0 .04em !important;
  -webkit-text-stroke: 12px #0b0b0d !important;
  text-shadow: 0 5px 0 #0b0b0d, 0 10px 18px rgba(0, 0, 0, .8), 0 0 30px rgba(60, 140, 255, .3) !important;
}
.mx-logo-word::before {
  background-image: linear-gradient(180deg, #ffe95c 0%, #ffcf2e 35%, #ffa51f 65%, #ff7f1a 100%) !important;
  -webkit-text-stroke: 2.5px #ffb21f !important;
}
@media (max-width: 760px) {
  .mx-hero { height: 120px !important; }
  .mx-logo-word { font-size: 56px !important; -webkit-text-stroke: 9px #0b0b0d !important; }
  .mx-logo-word::before { -webkit-text-stroke: 2px #ffb21f !important; }
}

/* ---------- logo brasão: escudo + espada no lugar do "I" + letras ---------- */
.mx-crest { position: relative; display: block; width: 300px; height: 190px; text-decoration: none !important; user-select: none; transform: scale(var(--mx-crest-scale, .92)); transform-origin: center; transition: transform .25s ease; }
.mx-crest:hover { transform: scale(calc(var(--mx-crest-scale, .92) * 1.04)); }
.mx-crest-shield { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.mx-crest-sword { position: absolute; left: 50%; top: 2px; width: 32px; height: 186px; transform: translateX(-50%); overflow: visible; z-index: 3; }
.mx-crest-row { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 28px; z-index: 2; }
.mx-crest-r1 { top: 52px; }
.mx-crest-r2 { top: 116px; gap: 26px; }
.mx-crest-row b {
  position: relative;
  display: inline-block;
  font: 400 78px/1 'Metal Mania', 'New Rocker', Georgia, serif;
  letter-spacing: .01em;
  color: #0b0b0d;
  -webkit-text-stroke: 12px #0b0b0d;
  text-shadow: 0 5px 0 #0b0b0d, 0 10px 16px rgba(0, 0, 0, .6);
}
.mx-crest-r2 b { font-size: 52px; -webkit-text-stroke: 10px #0b0b0d; }
.mx-crest-row b::before {
  content: attr(data-t);
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 2.5px #ffb21f;
  background: linear-gradient(180deg, #ffe95c 0%, #ffcf2e 35%, #ffa51f 65%, #ff7f1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.mx-hero { height: 200px !important; }
@media (max-width: 760px) {
  .mx-hero { height: 150px !important; }
  .mx-crest { --mx-crest-scale: .7; }
}

/* logo do topo = mesma letra/cor do título "✦ WEBSHOP ✦", grande e centralizada */
.mx-hero { height: 175px !important; justify-content: center; }
.mx-logo-rubi { display: block; margin: 0 auto; text-align: center; }
.mx-logo-rubi:hover { transform: scale(1.03); }
.mx-logo-shop {
  display: inline-block;
  font: 700 64px/1 'Cinzel', Georgia, serif;
  letter-spacing: .14em;
  padding-left: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--mx-gold-400);
  text-shadow: 0 3px 0 #000, 0 0 28px rgba(233, 196, 106, .45), 0 8px 18px rgba(0, 0, 0, .8);
}
@media (max-width: 760px) {
  .mx-hero { height: 110px !important; }
  .mx-logo-shop { font-size: 21px; letter-spacing: .06em; padding-left: .06em; }
}

/* fundo do site azul-marinho com brilho atrás da logo (sem a imagem de fundo) */
body.mx { background: radial-gradient(ellipse at 50% 0%, #1d3d72 0%, #0c1a31 45%, #050b16 100%) fixed !important; }
.mx-bg { display: none !important; }

/* ---------- Castle War: card do site com 3 vencedores + contagem ---------- */
.mx-castlebox { gap: 6px !important; text-align: left; }
.mx-cw-winners { display: flex; flex-direction: column; gap: 6px; }
.mx-cw-slot, .mx-cw-countdown {
  display: flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 5px 8px; box-sizing: border-box;
  background: linear-gradient(180deg, var(--mx-navy-600), var(--mx-navy-800));
  border: 1px solid var(--mx-gold-500);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px var(--mx-navy-900);
  color: var(--mx-gold-300) !important; text-decoration: none !important;
  font: 700 12px/14px Verdana, Arial, sans-serif;
  text-shadow: 1px 1px 1px #000;
  transition: border-color .15s, filter .15s;
}
a.mx-cw-slot:hover, .mx-cw-countdown:hover { border-color: var(--mx-gold-400); filter: brightness(1.15); }
.mx-cw-logo {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  background: var(--mx-navy-900); border: 1px solid var(--mx-gold-500);
}
.mx-cw-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.mx-cw-mode { color: var(--mx-gold-400); font: 700 8.5px/11px Verdana, Arial, sans-serif; letter-spacing: .3px; white-space: nowrap; }
.mx-cw-mode em { font-style: normal; color: #8fe08a; }
.mx-cw-name { color: #fff; max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mx-cw-empty .mx-cw-name { color: #9fb0c8; font-weight: 400; font-style: italic; }
.mx-cw-empty .mx-cw-logo { opacity: .5; }
.mx-cw-countdown {
  flex-direction: column; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #e2b75a, #a87a24);
  border-color: var(--mx-gold-700);
  color: #2b1c05 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mx-cw-cd-title { font: 700 9.5px/11px Verdana, Arial, sans-serif; }
.mx-cw-cd-time { font: 700 13px/15px Verdana, Arial, sans-serif; }
