/*
 * Zealot UI kit
 * A 2D component layer for the TibiaCom template. Legacy artwork remains in
 * place for the frame, while reusable controls use the Zealot colour system.
 */

:root {
  --zealot-night: #0d1410;
  --zealot-surface: #15221c;
  --zealot-surface-raised: #1e3329;
  --zealot-forest: #183a2e;
  --zealot-forest-light: #285a45;
  --zealot-forest-hover: #285a45;
  --zealot-gold: #c99a4b;
  --zealot-gold-light: #e7c47d;
  --zealot-parchment: #f2e4c8;
  --zealot-parchment-deep: #d7bf93;
  --zealot-ink: #3c2919;
  --zealot-ruby: #8e292d;
  --zealot-ruby-light: #bf4847;
  --zealot-ruby-hover: #ad3c3f;
  --zealot-success: #3f9360;
  --zealot-warning: #bd8129;
  --zealot-danger: #a9363c;
  --zealot-muted: #746754;
}

html {
  min-height: 100%;
  background: #06100d url(images/header/zealot-site-background.jpg) center top / cover fixed no-repeat;
}

/* index.php previously applied a repeating theme-box image directly on body.
 * It leaked below the content and made the end of long pages look unfinished. */
body {
  min-height: 100vh;
  height: auto !important;
  background-color: #06100d !important;
  background-image: url(images/header/zealot-site-background.jpg) !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* The original artwork is intentionally retained; this layer prevents the
 * surrounding page from falling back to a disconnected flat black surface. */
#ArtworkHelper {
  min-height: 100vh;
  height: auto;
  background-color: transparent;
}

/* The header mark is an alpha PNG, so the artwork belongs directly to the
 * night canvas rather than being trapped in the old rectangular banner. */
#LeftArtwork #TibiaLogoArtworkTop {
  top: -13px;
  left: -85px;
  width: 320px;
  height: 170px;
  object-position: center center;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.72));
}

*:focus-visible {
  outline: 2px solid var(--zealot-gold-light);
  outline-offset: 2px;
}

/* Reusable panel and card primitives for new PHP/Twig content. */
.zealot-panel,
.zealot-card {
  box-sizing: border-box;
  border: 1px solid #826843;
  background: var(--zealot-parchment);
  color: var(--zealot-ink);
  box-shadow: inset 0 0 0 1px #fff6df, 0 1px 2px rgba(0, 0, 0, 0.35);
}

.zealot-panel__title,
.zealot-card__title {
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px solid #0c1d16;
  background: var(--zealot-forest);
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 10pt;
  font-weight: bold;
  line-height: 16px;
  text-shadow: 1px 1px 1px #000;
}

.zealot-panel__body,
.zealot-card__body {
  padding: 10px;
}

.zealot-card {
  background: #ead8b6;
}

/* 2D buttons: used by the legacy BigButton markup and available as classes. */
.zealot-button,
.Content .BigButton,
#Themeboxes .BigButton {
  box-sizing: border-box;
  min-height: 28px;
  border: 1px solid #0c1d16;
  outline: 1px solid var(--zealot-gold);
  background: var(--zealot-forest) !important;
  box-shadow: inset 0 1px 0 rgba(255, 239, 191, 0.2), 0 1px 1px rgba(0, 0, 0, 0.45);
}

.zealot-button,
.zealot-button:link,
.zealot-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  line-height: 28px;
  text-decoration: none;
  text-shadow: 1px 1px 1px #000;
}

.zealot-button:hover,
.zealot-button:focus,
.Content .BigButton:hover,
#Themeboxes .BigButton:hover {
  background: var(--zealot-forest-hover) !important;
  color: #fff1c8;
}

.zealot-button--ruby {
  background: var(--zealot-ruby) !important;
  outline-color: #d18a78;
}

.zealot-button--ruby:hover,
.zealot-button--ruby:focus {
  background: var(--zealot-ruby-hover) !important;
}

.zealot-button--quiet {
  border-color: #826843;
  outline-color: transparent;
  background: transparent !important;
  color: #80561e;
  text-shadow: none;
}

.zealot-button--quiet:hover,
.zealot-button--quiet:focus {
  background: #ead8b6 !important;
  color: var(--zealot-ruby);
}

.Content .BigButtonOver,
#Themeboxes .BigButtonOver {
  background: rgba(40, 90, 69, 0.82) !important;
}

.Content .BigButtonText,
#Themeboxes .BigButtonText {
  color: var(--zealot-gold-light);
  font-weight: bold;
}

/* Section controls sit inside their caption: the caption always remains
 * visible while its panel body can be collapsed. */
.Content .CaptionInnerContainer > .TopButtonContainer {
  display: block !important;
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  z-index: 80;
}

.Content .CaptionInnerContainer > .TopButtonContainer .TopButton {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  overflow: hidden;
  z-index: 80;
}

.Content .TopButtonContainer .TopButton a {
  display: grid;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid #826843;
  border-radius: 2px;
  background: #10261d;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .45);
  color: var(--zealot-gold-light);
  font: 800 21px/24px Arial, sans-serif;
  text-decoration: none;
}

.Content .TopButtonContainer .TopButton a::after {
  position: relative;
  top: -2px;
  content: '⌃';
}

.Content .TopButtonContainer .TopButton a.is-collapsed::after {
  top: -3px;
  content: '⌄';
}
.Content .TopButtonContainer .TopButton img { display: none; }

.Content .TopButtonContainer .TopButton a:hover,
.Content .TopButtonContainer .TopButton a:focus-visible {
  border-color: #fff1c8;
  background: var(--zealot-forest-hover);
  color: #fff1c8;
}

/* Download artwork supplied for the official Zealot client. It remains a
 * large, obvious click target without overwhelming the client information. */
.Content .zealot-client-download {
  padding: 1.5rem;
  text-align: center;
}

.Content .zealot-client-download__art {
  display: block;
  width: min(168px, 72vw);
  height: min(168px, 72vw);
  margin: 12px auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.Content .zealot-client-download__title {
  font-size: 12pt;
}

.Content .zealot-client-download__platform {
  font-size: 10pt;
}

/* The account-login template keeps its two actions in a legacy table cell.
 * Reserve an explicit gutter on the right so the fixed-width buttons never
 * sit on top of the panel frame when the content column grows. */
.Content #LoginFormButtonCell {
  box-sizing: border-box;
  width: 156px !important;
  min-width: 156px;
  padding: 4px 12px 4px 5px !important;
  vertical-align: top;
}

.Content #LoginFormButtonCell .BigButton {
  margin-left: auto;
  margin-right: 0;
}

/* Zealot Market is the branded entry point for character transfers. It is
 * intentionally a marketplace surface, not a copy of the item shop. */
.zealot-exchange {
  box-sizing: border-box;
  border: 1px solid #826843;
  background: var(--zealot-parchment);
  box-shadow: inset 0 0 0 1px #fff6df, 0 2px 5px rgba(0, 0, 0, 0.35);
  color: var(--zealot-ink);
}

/* Persistent Market navigation: every market surface exposes the same quick
 * routes, so a buyer never has to return to the sidebar to manage an auction. */
.zealot-market-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid #b89047;
  background: #ddc595;
}

.zealot-market-nav a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #805d2f;
  background: #f8ecd1;
  color: #563617 !important;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  text-decoration: none;
}

.zealot-market-nav a:hover,
.zealot-market-nav a:focus,
.zealot-market-nav a.is-active {
  border-color: #0b2118;
  background: #174735;
  color: #fff0bc !important;
  text-shadow: 1px 1px 1px #07140e;
}

.zealot-exchange__hero {
  padding: 24px 26px 22px;
  border-bottom: 1px solid var(--zealot-gold);
  background:
    radial-gradient(circle at right 12% top 20%, rgba(201, 154, 75, 0.22), transparent 32%),
    linear-gradient(135deg, #10261d, var(--zealot-forest) 58%, #10261d);
  color: #fff1c8;
}

.zealot-exchange__eyebrow,
.zealot-exchange__card-kicker {
  display: block;
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 7.5pt;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zealot-exchange h1,
.zealot-exchange h2,
.zealot-exchange p {
  margin-top: 0;
}

.zealot-exchange h1 {
  margin-bottom: 6px;
  color: #fff1c8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23pt;
  line-height: 1.1;
  text-shadow: 1px 2px 1px #09140f;
}

.zealot-exchange__hero p {
  max-width: 570px;
  margin-bottom: 17px;
  color: #dfd0b3;
  font-size: 10pt;
  line-height: 1.5;
}

.zealot-exchange__hero-actions,
.zealot-exchange__card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zealot-exchange__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid #0b1c15;
  outline: 1px solid var(--zealot-gold);
  background: #214a39;
  color: var(--zealot-gold-light) !important;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 1px #000;
}

.zealot-exchange__button:hover,
.zealot-exchange__button:focus {
  background: var(--zealot-forest-hover);
  color: #fff1c8 !important;
}

.zealot-exchange__button--quiet {
  background: rgba(8, 20, 15, 0.52);
  outline-color: rgba(231, 196, 125, 0.65);
}

.zealot-exchange__summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  padding: 11px 20px;
  border-bottom: 1px solid #c9a978;
  background: var(--zealot-parchment-deep);
  color: #59401f;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
}

.zealot-exchange__summary strong {
  color: #614117;
  font-size: 15pt;
  line-height: 1;
}

.zealot-exchange__summary-rule {
  margin-left: auto;
  color: #695943;
}

.zealot-exchange__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.zealot-exchange__card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #b18c56;
  background: #fff4dc;
  box-shadow: inset 0 0 0 1px #fffaf0;
}

.zealot-exchange__card h2 {
  margin: 5px 0 7px;
  color: #4c2f16;
  font-size: 11pt;
}

.zealot-exchange__card p {
  margin-bottom: 13px;
  color: #5e4930;
  font-size: 8.5pt;
  line-height: 1.5;
}

.zealot-exchange__card > a,
.zealot-exchange__card-links a {
  color: #68431b;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
}

.zealot-exchange__card > a:hover,
.zealot-exchange__card > a:focus,
.zealot-exchange__card-links a:hover,
.zealot-exchange__card-links a:focus {
  color: var(--zealot-ruby);
}

.zealot-exchange__notice {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #c9a978;
  background: #ead8b6;
  color: #604522;
  font-size: 8.5pt;
  line-height: 1.45;
}

/* Live character listings: the marketplace uses real player and auction data
 * but presents it as a scan-friendly card catalogue. */
.zealot-market-listings {
  border: 1px solid #826843;
  background: var(--zealot-parchment);
  box-shadow: inset 0 0 0 1px #fff6df, 0 2px 5px rgba(0, 0, 0, 0.35);
  color: var(--zealot-ink);
}

.zealot-market-listings__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--zealot-gold);
  background: linear-gradient(135deg, #10261d, var(--zealot-forest) 62%, #10261d);
  color: #fff1c8;
}

.zealot-market-listings__eyebrow,
.zealot-market-card__eyebrow {
  display: block;
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 7pt;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zealot-market-listings h1 {
  margin: 3px 0 4px;
  color: #fff1c8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20pt;
  line-height: 1.1;
  text-shadow: 1px 2px 1px #09140f;
}

.zealot-market-listings__header p {
  margin: 0;
  color: #dfd0b3;
  font-size: 8.5pt;
}

.zealot-market-listings__sell,
.zealot-market-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 29px;
  padding: 0 12px;
  border: 1px solid #0b1c15;
  outline: 1px solid var(--zealot-gold);
  background: #214a39;
  color: var(--zealot-gold-light) !important;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 1px #000;
  white-space: nowrap;
}

.zealot-market-listings__sell:hover,
.zealot-market-listings__sell:focus,
.zealot-market-empty a:hover,
.zealot-market-empty a:focus {
  background: var(--zealot-forest-hover);
  color: #fff1c8 !important;
}

.zealot-market-filters {
  display: grid;
  grid-template-columns: minmax(135px, 1.35fr) repeat(2, minmax(100px, 1fr)) minmax(130px, 1.2fr) auto;
  gap: 10px;
  align-items: end;
  padding: 13px 16px;
  border-bottom: 1px solid #c9a978;
  background: var(--zealot-parchment-deep);
}

.zealot-market-filters label {
  display: block;
  min-width: 0;
}

.zealot-market-filters label span {
  display: block;
  margin-bottom: 3px;
  color: #604522;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7pt;
  font-weight: bold;
}

.zealot-market-filters select,
.zealot-market-filters input {
  box-sizing: border-box;
  width: 100%;
  height: 27px;
  padding: 3px 6px;
  border: 1px solid #9a7b4d;
  background: #fff7e6;
  color: var(--zealot-ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
}

.zealot-market-filters button {
  box-sizing: border-box;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid #0b1c15;
  outline: 1px solid var(--zealot-gold);
  background: var(--zealot-forest);
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
  cursor: pointer;
}

.zealot-market-filters__reset {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #8b6c3d;
  color: #65431e;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  text-decoration: none;
}

.zealot-market-filters__reset:hover,
.zealot-market-filters__reset:focus {
  background: #f8eed8;
  color: #244631;
}

.zealot-market-activity {
  margin: 14px 16px 16px;
  border: 1px solid #a98446;
  background: #f9edcf;
  box-shadow: 0 2px 4px rgb(0 0 0 / 22%);
  color: #59391b;
}

.zealot-market-activity__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid #bc9148;
  background: linear-gradient(135deg, #10291e, #174735);
  color: #fff0c0;
}

.zealot-market-activity__header h1,
.zealot-market-activity__header p { margin: 0; }
.zealot-market-activity__header h1 { font-size: 17pt; }
.zealot-market-activity__header p { margin-top: 4px; color: #dfd0b3; font-size: 8.5pt; }

.zealot-market-activity__table {
  width: 100%;
  border-collapse: collapse;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8.5pt;
}

.zealot-market-activity__table th,
.zealot-market-activity__table td {
  padding: 10px 11px;
  border-bottom: 1px solid #ddcaa0;
  text-align: left;
  vertical-align: middle;
}

.zealot-market-activity__table th {
  background: #e0c99a;
  color: #63431d;
  font-weight: bold;
}

.zealot-market-activity__table tbody tr:nth-child(even) { background: #f1dfbb; }
.zealot-market-activity__table tbody tr:last-child td { border-bottom: 0; }
.zealot-market-activity__table .is-action { width: 264px; text-align: center; }

.zealot-market-activity__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.zealot-market-activity__actions form { margin: 0; }

.zealot-market-activity__action {
  display: inline-flex;
  min-width: 116px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #0b1c15;
  outline: 1px solid #c99c43;
  background: #174735;
  color: #ffe5a0 !important;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 1px #07140e;
}

.zealot-market-activity__action:hover,
.zealot-market-activity__action:focus { background: #246047; color: #fff7da !important; }

.zealot-market-activity__hide {
  min-width: 104px;
  min-height: 30px;
  border: 1px solid #6d4c27;
  outline: 1px solid #c99c43;
  background: #ead8b6;
  color: #67431f;
  cursor: pointer;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
}

.zealot-market-activity__hide:hover,
.zealot-market-activity__hide:focus {
  background: #f7ebcf;
  color: #2d5a3e;
}

.zealot-market-activity__status { font-weight: bold; }
.zealot-market-activity__status--live { color: #1c6b3f; }
.zealot-market-activity__status--sold { color: #705018; }
.zealot-market-activity__status--closed { color: #86403a; }

.zealot-market-filters button:hover,
.zealot-market-filters button:focus {
  background: var(--zealot-forest-hover);
  color: #fff1c8;
}

.zealot-market-card {
  margin: 13px 16px;
  border: 1px solid #aa8756;
  background: #fff4dc;
  box-shadow: inset 0 0 0 1px #fffaf0, 0 1px 3px rgba(45, 28, 12, 0.2);
}

.zealot-market-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid #b18c56;
  background: linear-gradient(90deg, #10261d, var(--zealot-forest), #10261d);
}

.zealot-market-card__header h2 {
  margin: 2px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15pt;
  line-height: 1.05;
}

.zealot-market-card__header h2 a {
  color: #fff1c8;
  text-decoration: none;
  text-shadow: 1px 1px 1px #000;
}

.zealot-market-card__header h2 a:hover,
.zealot-market-card__header h2 a:focus {
  color: var(--zealot-gold-light);
  text-decoration: underline;
}

.zealot-market-card__timer {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(231, 196, 125, 0.64);
  background: rgba(8, 20, 15, 0.58);
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 7.5pt;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
}

.zealot-market-card__body {
  display: grid;
  grid-template-columns: 94px minmax(185px, 1fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px;
}

.zealot-market-card__outfit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  border: 1px solid #b18c56;
  background: linear-gradient(180deg, #e1cfae, #f9ecd4);
  color: #5a3b18;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7.5pt;
}

.zealot-market-card__outfit img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}

.zealot-market-card__outfit strong {
  margin-top: 3px;
}

.zealot-market-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 13px;
  margin: 0;
}

.zealot-market-card__details div {
  min-width: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #dec8a4;
}

.zealot-market-card__details dt {
  margin-bottom: 2px;
  color: #806344;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7pt;
}

.zealot-market-card__details dd {
  margin: 0;
  overflow: hidden;
  color: #432c18;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zealot-market-card__equipment {
  display: grid;
  grid-template-columns: repeat(5, 38px);
  justify-content: end;
  gap: 5px;
}

.zealot-market-card__equipment > span {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  border: 1px solid #94754c;
  background: #1b2b22;
  box-shadow: inset 0 0 0 1px #516553;
}

.zealot-market-card__equipment img {
  max-width: 32px;
  max-height: 32px;
  image-rendering: pixelated;
}

.zealot-market-card__empty-slot:empty::after {
  content: '—';
  color: #8e9a8b;
  font-family: Georgia, serif;
  font-size: 14pt;
}

.zealot-market-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid #c9a978;
  background: #ead8b6;
}

.zealot-market-card__footer > div > span {
  display: block;
  color: #755b3d;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7pt;
}

.zealot-market-card__footer strong {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #563614;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11pt;
}

.zealot-market-card__footer strong img {
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
}

.zealot-market-card__footer a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #0b1c15;
  outline: 1px solid var(--zealot-gold);
  background: var(--zealot-forest);
  color: var(--zealot-gold-light) !important;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 1px #000;
}

.zealot-market-card__footer a:hover,
.zealot-market-card__footer a:focus {
  background: var(--zealot-forest-hover);
  color: #fff1c8 !important;
}

.zealot-market-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 16px;
  padding: 28px 16px;
  border: 1px dashed #a78351;
  background: #fff4dc;
  color: #604522;
  text-align: center;
}

.zealot-market-empty strong {
  font-size: 11pt;
}

.zealot-market-empty span {
  font-size: 8.5pt;
}

.zealot-market-feedback {
  margin: 12px 16px 0;
  padding: 9px 11px;
  border: 1px solid;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  line-height: 1.45;
}

.zealot-market-feedback--success {
  border-color: #4e8a62;
  background: #e1f0df;
  color: #214d2e;
}

.zealot-market-feedback--error {
  border-color: #a64c45;
  background: #f5ded4;
  color: #6e211d;
}

.zealot-market-feedback a {
  color: inherit;
  font-weight: bold;
}

.zealot-market-sell {
  border: 1px solid #826843;
  background: var(--zealot-parchment);
  box-shadow: inset 0 0 0 1px #fff6df, 0 2px 5px rgba(0, 0, 0, 0.35);
  color: var(--zealot-ink);
}

.zealot-market-sell__header {
  padding: 19px 21px;
  border-bottom: 1px solid var(--zealot-gold);
  background: linear-gradient(135deg, #10261d, var(--zealot-forest) 62%, #10261d);
  color: #fff1c8;
}

.zealot-market-sell__header > span {
  display: block;
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 7pt;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zealot-market-sell h1 {
  margin: 4px 0 6px;
  color: #fff1c8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20pt;
  line-height: 1.1;
  text-shadow: 1px 2px 1px #09140f;
}

.zealot-market-sell__header p {
  max-width: 620px;
  margin: 0;
  color: #dfd0b3;
  font-size: 8.5pt;
  line-height: 1.5;
}

.zealot-market-sell__balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #c9a978;
  background: var(--zealot-parchment-deep);
  color: #604522;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
}

.zealot-market-sell__balance strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #563614;
  font-size: 12pt;
}

.zealot-market-sell__balance img {
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
}

.zealot-market-sell__form {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(145px, 1fr) minmax(130px, 1fr);
  gap: 14px;
  padding: 18px 16px;
}

.zealot-market-sell__form label span {
  display: block;
  margin-bottom: 4px;
  color: #604522;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7.5pt;
  font-weight: bold;
}

.zealot-market-sell__form select,
.zealot-market-sell__form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 29px;
  padding: 4px 6px;
  border: 1px solid #9a7b4d;
  background: #fff7e6;
  color: var(--zealot-ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
}

.zealot-market-sell__rules {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 14px;
  padding: 10px 12px;
  border: 1px solid #c9a978;
  background: #fff4dc;
  color: #624c2d;
  font-size: 8pt;
  line-height: 1.4;
}

.zealot-market-sell__rules strong {
  grid-column: 1 / -1;
  color: #4f3116;
}

.zealot-market-sell__form button {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid #0b1c15;
  outline: 1px solid var(--zealot-gold);
  background: var(--zealot-forest);
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
  cursor: pointer;
}

.zealot-market-sell__form button:hover,
.zealot-market-sell__form button:focus {
  background: var(--zealot-forest-hover);
  color: #fff1c8;
}

/* Fields and selects share a single parchment treatment. */
.zealot-field,
.Content input[type='text'],
.Content input[type='password'],
.Content input[type='email'],
.Content input[type='number'],
.Content select,
.Content textarea,
.searchchar_input {
  box-sizing: border-box;
  min-height: 24px;
  padding: 3px 6px;
  border: 1px solid #9a7b4d;
  border-radius: 0;
  background: #fff7e6;
  color: var(--zealot-ink);
  font-family: Verdana, Arial, sans-serif;
}

.zealot-field:focus,
.Content input[type='text']:focus,
.Content input[type='password']:focus,
.Content input[type='email']:focus,
.Content input[type='number']:focus,
.Content select:focus,
.Content textarea:focus,
.searchchar_input:focus {
  outline: 1px solid var(--zealot-gold);
  border-color: var(--zealot-forest-hover);
  box-shadow: 0 0 0 2px rgba(201, 154, 75, 0.22);
}

/* Alerts use colour plus a label-friendly border, never colour alone. */
.zealot-alert,
.SmallBox .Message,
.SmallBox .ErrorMessage {
  box-sizing: border-box;
  border: 1px solid #9a7b4d;
  border-left: 4px solid var(--zealot-warning);
  background: #ead8b6;
  color: var(--zealot-ink);
}

.zealot-alert--success {
  border-left-color: var(--zealot-success);
}

.zealot-alert--warning {
  border-left-color: var(--zealot-warning);
}

.zealot-alert--danger,
.SmallBox .ErrorMessage {
  border-left-color: var(--zealot-danger);
  color: #7b2228;
}

/* Shared 2D table appearance for account, rankings, houses and store history. */
.zealot-table,
.TableContainer .TableContent {
  border-collapse: collapse;
}

.zealot-table th,
.TableContainer .TableContent th {
  border: 1px solid #0c1d16;
  background: var(--zealot-forest);
  color: var(--zealot-gold-light);
  text-shadow: 1px 1px 1px #000;
}

.zealot-table td,
.TableContainer .TableContent td {
  border-color: #e9d8b8;
}

.zealot-table tbody tr:nth-child(odd) td {
  background: #f1e2c5;
}

.zealot-table tbody tr:nth-child(even) td {
  background: #dfca9f;
}

.zealot-table tbody tr:hover td,
.moduleRowOver {
  background: #ead5ae !important;
}

/* Small utility labels for future store/account components. */
.zealot-badge {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid currentColor;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7pt;
  font-weight: bold;
  line-height: 12px;
}

.zealot-badge--success { color: var(--zealot-success); }
.zealot-badge--warning { color: var(--zealot-warning); }
.zealot-badge--danger { color: var(--zealot-danger); }
.zealot-badge--gold { color: #9b6c25; }

.zealot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #826843;
  background: var(--zealot-surface-raised);
  color: var(--zealot-gold-light);
}

/* The old template renders form calls-to-action with image backgrounds. Keep
 * its sizing hooks, but make the controls share the Zealot green/gold system. */
#Loginbox #LoginButton,
.MediumButtonBackground {
  box-sizing: border-box;
  height: 32px;
  border: 1px solid #0c1d16;
  outline: 1px solid var(--zealot-gold);
  background: var(--zealot-forest) !important;
  box-shadow: inset 0 1px 0 rgba(255, 239, 191, 0.2), 0 1px 1px rgba(0, 0, 0, 0.45);
}

#Loginbox #LoginButton:hover,
#Loginbox #LoginButton:focus-within,
.MediumButtonBackground:hover,
.MediumButtonBackground:focus-within {
  background: var(--zealot-forest-hover) !important;
}

#Loginbox #LoginButton .Button,
.MediumButtonOver {
  background-image: none !important;
}

#Loginbox #LoginButton #ButtonText {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-image: none !important;
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  min-width: 0;
  padding: 0 10px;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
}

#Loginbox #LoginButton #ButtonText::after {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  content: attr(data-zealot-label);
}

.zealot-medium-button--download::after,
.zealot-medium-button--account::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 10px;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
}

.zealot-medium-button--download::after {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  content: attr(data-zealot-label);
}

.zealot-medium-button--account::after {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  content: attr(data-zealot-label);
}

.MediumButtonText {
  opacity: 0;
  cursor: pointer;
}

/* Page controls can be longer in Spanish and Portuguese. Keep their label
 * inside the original illustrated hit area instead of letting it cross the
 * gold frame. */
.BigButton,
.MediumButtonBackground {
  overflow: hidden;
}

.BigButton .BigButtonText {
  box-sizing: border-box;
  max-width: 100%;
  padding: 0 9px;
  font-size: clamp(10px, 0.8vw, 13px);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The quick-action strip is a component rather than a news headline, so it
 * uses the same forest surface as the rest of the Zealot navigation. */
.Content .zealot-status-bar {
  background-image: none !important;
  background-color: var(--zealot-forest) !important;
}

.Content .zealot-status-shell {
  /* The legacy box flow collapses its first margin. A relative offset keeps
   * this strip level with the Account card without moving either sidebar. */
  top: 8px;
  margin: 23px 5px 18px;
  border: 1px solid #426755;
  background: #10261d;
  box-shadow: inset 0 0 0 1px rgba(231, 196, 125, 0.16), 0 2px 5px rgba(0, 0, 0, 0.46);
}

.Content .zealot-status-shell > .Corner-tl,
.Content .zealot-status-shell > .Corner-tr,
.Content .zealot-status-shell > .CornerWrapper-b {
  display: none;
}

.Content .zealot-status-shell > .Border_1 {
  height: 1px;
  background: rgba(231, 196, 125, 0.42) !important;
}

.Content .zealot-status-shell .zealot-status-bar {
  height: 34px !important;
  background: linear-gradient(90deg, #10261d, var(--zealot-forest), #10261d) !important;
}

.Content .zealot-status-shell #statusbar {
  background: var(--zealot-surface-raised) !important;
  border-top: 1px solid rgba(231, 196, 125, 0.3);
}

/* Shared content shells retain their title artwork, but their old steel rails
 * are replaced by the same forest-and-gold frame used by the side modules. */
.Content .Box:not(.zealot-status-shell) {
  border: 1px solid #426755;
  background: #10261d;
  box-shadow: inset 0 0 0 1px rgba(231, 196, 125, 0.16), 0 2px 5px rgba(0, 0, 0, 0.46);
}

.Content .Box:not(.zealot-status-shell) > .Corner-tl,
.Content .Box:not(.zealot-status-shell) > .Corner-tr,
.Content .Box:not(.zealot-status-shell) > .CornerWrapper-b {
  display: none;
}

.Content .Box:not(.zealot-status-shell) > .Border_1 {
  height: 1px;
  background: rgba(231, 196, 125, 0.42) !important;
}

.Content .Box:not(.zealot-status-shell) > .Border_2 {
  margin: 6px;
  background: #826843;
}

.Content .Box:not(.zealot-status-shell) > .Border_3 {
  margin: 1px;
  border: 1px solid rgba(255, 246, 223, 0.72);
}

.zealot-status-bar .InfoBar a,
.zealot-status-bar .InfoBar a:link,
.zealot-status-bar .InfoBar a:visited,
.zealot-status-bar .InfoBar a:focus {
  color: var(--zealot-gold-light);
}

.zealot-status-bar .InfoBar a:hover,
.zealot-status-bar .InfoBar a:active {
  color: #fff1c8 !important;
}

/* Quick actions use small line icons that share the green/gold UI language.
 * The old large raster symbols and blue scroll control pulled focus away from
 * the navigation and did not align with their labels. */
.Content .zealot-status-shell .InfoBar {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  position: relative;
  top: 0;
}

.zealot-quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.zealot-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(231, 196, 125, 0.32);
}

.Content .zealot-status-shell .zealot-language-option {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 24px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #d5c3af !important;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7pt !important;
  font-weight: bold;
  line-height: 1;
  text-decoration: none !important;
}

.Content .zealot-status-shell .zealot-language-option:hover,
.Content .zealot-status-shell .zealot-language-option:focus-visible,
.Content .zealot-status-shell .zealot-language-option.is-active {
  border-color: rgba(231, 196, 125, 0.68);
  background: rgba(40, 90, 69, 0.78);
  color: #fff1c8 !important;
}

.zealot-language-option__flags {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.zealot-language-option__flags > span {
  font-size: 13px;
  line-height: 1;
}

.Content .zealot-status-shell .zealot-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--zealot-gold-light) !important;
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt !important;
  font-weight: bold;
  line-height: 1;
  text-decoration: none !important;
  text-shadow: 1px 1px 1px #000;
}

.Content .zealot-status-shell .zealot-quick-action:hover,
.Content .zealot-status-shell .zealot-quick-action:focus-visible {
  border-color: rgba(231, 196, 125, 0.48);
  background: rgba(40, 90, 69, 0.7);
  color: #fff1c8 !important;
  text-decoration: none !important;
}

.zealot-quick-action__icon,
.zealot-status-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.zealot-status-spacer {
  flex: 1 1 auto;
}

.zealot-status-toggle-wrap {
  display: flex;
  align-items: center;
  position: absolute;
  right: 10px;
}

.Content .zealot-status-shell .zealot-status-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #826843;
  border-radius: 2px;
  background: #10261d;
  color: var(--zealot-gold-light) !important;
  text-decoration: none !important;
}

.Content .zealot-status-shell .zealot-status-toggle:hover,
.Content .zealot-status-shell .zealot-status-toggle:focus-visible {
  border-color: var(--zealot-gold-light);
  background: var(--zealot-forest-hover);
  color: #fff1c8 !important;
}

/* A compact fixed scroll control replaces the isolated blue/yellow bitmap
 * and remains legible over every page background. */
.scrollToTop {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50000;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--zealot-gold);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--zealot-forest-light), var(--zealot-forest));
  box-shadow: inset 0 1px 0 rgba(255, 239, 191, 0.22), 0 3px 7px rgba(0, 0, 0, 0.55);
  color: var(--zealot-gold-light);
  cursor: pointer;
}

.scrollToTop:hover,
.scrollToTop:focus-visible {
  border-color: #fff1c8;
  background: var(--zealot-forest-hover);
  color: #fff1c8;
}

.scrollToTop svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

/* FAQ: native buttons make every question keyboard-accessible while preserving
 * the compact, game-like information density of the original page. */
.faq-panel {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #826843;
  background: var(--zealot-parchment);
  color: var(--zealot-ink);
  box-shadow: inset 0 0 0 1px #fff6df, 0 2px 4px rgba(0, 0, 0, 0.3);
}

.faq-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #0c1d16;
  background: var(--zealot-forest);
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 10pt;
  text-shadow: 1px 1px 1px #000;
}

.faq-toggle-all {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--zealot-gold-light);
  cursor: pointer;
  font: inherit;
  font-size: 8pt;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-toggle-all:hover,
.faq-toggle-all:focus-visible {
  color: #fff1c8;
}

.faq-intro {
  padding: 10px 12px;
  border-bottom: 1px solid #b99a69;
  background: var(--zealot-parchment-deep);
  color: var(--zealot-ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt;
  line-height: 1.5;
}

.faq-item {
  border-bottom: 1px solid #c9a978;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  background: #f4e3c5;
  color: var(--zealot-ink);
  cursor: pointer;
  font-family: Verdana, Arial, sans-serif;
  font-size: 9.5pt;
  font-weight: bold;
  line-height: 1.35;
  text-align: left;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: #ead5ae;
}

.faq-question[aria-expanded='true'] {
  background: #e2c99e;
  color: #352416;
}

.faq-marker {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #0c1d16;
  background: var(--zealot-forest);
  color: var(--zealot-gold-light);
  font-size: 15px;
  font-weight: normal;
  line-height: 1;
  text-shadow: 1px 1px 1px #000;
}

.faq-question[aria-expanded='true'] .faq-marker {
  background: var(--zealot-ruby);
  color: #fff1c8;
}

/* Character page accordions use the same compact marker language as FAQ.
 * The legacy implementation swaps blue circle GIFs through CollapseTable();
 * these rules intentionally override that image while preserving its existing
 * expand/collapse behaviour and class changes. */
.character-accordion-marker.CircleSymbolMinus,
.character-accordion-marker.CircleSymbolPlus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px !important;
  height: 20px !important;
  border: 1px solid #0c1d16;
  background: var(--zealot-forest) !important;
  background-image: none !important;
  color: var(--zealot-gold-light);
  cursor: pointer;
  font-family: Verdana, Arial, sans-serif;
  font-size: 15px;
  font-weight: normal;
  line-height: 1;
  text-shadow: 1px 1px 1px #000;
}

.character-accordion-marker.CircleSymbolMinus::after {
  content: '+';
}

.character-accordion-marker.CircleSymbolPlus {
  background: var(--zealot-ruby) !important;
  color: #fff1c8;
}

.character-accordion-marker.CircleSymbolPlus::after {
  content: '\2212';
}

.character-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
  padding: 1px 7px 1px 6px;
  border: 1px solid #92733f;
  border-radius: 9px;
  background: #eee0c2;
  color: #49321c;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.character-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 5px currentColor;
}

.character-status--online {
  border-color: #4b8657;
  background: #d9ead2;
  color: #1b6a39;
}

.character-status--online i {
  background: #35a85b;
}

.character-status--offline {
  border-color: #9a7653;
  background: #e8d9c1;
  color: #765237;
}

.character-status--offline i {
  background: #98735a;
}

/* Character Details: give the live outfit the same framed presentation used
 * by the Zealot Market without changing the original character data. */
.character-details-outfit-cell {
  padding: 6px !important;
}

.character-details-outfit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 112px;
  overflow: hidden;
  border: 1px solid #b18c56;
  background: linear-gradient(180deg, #e1cfae, #f9ecd4);
  box-shadow: inset 0 0 0 2px rgba(255, 248, 226, .48);
}

.character-details-outfit__sprite {
  display: block;
  width: 80px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  transform: scale(1.1);
}

/* Compact, readable health and mana bars for the character sheet. */
.character-vitals tr {
  background: transparent !important;
}

.character-vitals tr,
.character-experience tr {
  height: 52px;
}

.character-vitals__label {
  color: #72502d;
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt;
  letter-spacing: .02em;
  text-align: center !important;
  vertical-align: middle;
}

.character-vitals__value {
  color: #4d2b13;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: 700;
  padding: 7px 18px !important;
  vertical-align: middle;
}

.character-vitals__value > span {
  display: block;
  margin-bottom: 3px;
}

.character-vitals__value small {
  color: #836143;
  font-size: 7pt;
}

.character-vitals__bar {
  height: 11px;
  margin: 0 8px 3px;
  overflow: hidden;
  border: 1px solid #6d4a27;
  border-radius: 7px;
  background: #1a2f28;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .56), 0 1px 0 rgba(255, 248, 224, .66);
}

.character-vitals__bar .progress-bar {
  min-width: 2px;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
}

.character-vitals__bar--health .progress-bar {
  background: linear-gradient(90deg, #a92833, #df3e49 55%, #f26b67) !important;
}

.character-vitals__bar--mana .progress-bar {
  background: linear-gradient(90deg, #174f99, #248be5 55%, #63b6ff) !important;
}

/* The experience area follows the same two-column rhythm, with a distinct
 * gold-to-green progression that makes it readable at a glance. */
.character-experience tr {
  background: transparent !important;
}

.character-experience__label {
  color: #72502d;
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt;
  letter-spacing: .02em;
  text-align: center !important;
  vertical-align: middle;
}

.character-experience__value {
  color: #4d2b13;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
  font-weight: 700;
  padding: 7px 18px !important;
  vertical-align: middle;
}

.character-experience__value > span {
  display: block;
  margin-bottom: 3px;
  text-align: center;
}

.character-experience__value small {
  color: #836143;
  font-size: 7pt;
}

.character-experience__bar {
  height: 11px;
  margin: 0 8px 3px;
  overflow: hidden;
  border: 1px solid #6d4a27;
  border-radius: 7px;
  background: #1a2f28;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .56), 0 1px 0 rgba(255, 248, 224, .66);
}

.character-experience__bar .progress-bar {
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #93701f, #d1a946 55%, #91b35b) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
}

.zealot-highscores-outfit {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
}

/* Account management reuses the real Zealot client artwork instead of the
 * old Windows-only download GIF, while keeping a compact call to action. */
.Content .account-download-client {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 14px;
  padding: 4px 8px;
}

.Content .account-download-client__art {
  display: inline-flex;
  flex: 0 0 74px;
  flex-direction: column;
  align-items: center;
  color: #76521d;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7pt;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.Content .account-download-client__art img {
  display: block;
  width: 64px;
  height: 54px;
  object-fit: contain;
  object-position: center;
}

.Content .account-download-client__art:hover,
.Content .account-download-client__art:focus-visible {
  color: #b27b26;
  text-decoration: underline;
}

.Content .account-download-client__copy {
  flex: 1;
  color: #5a3416;
}

.Content .account-character-status {
  min-width: 116px;
  text-align: center;
  vertical-align: middle;
}

.Content .account-character-status > img {
  margin-right: 5px;
  vertical-align: middle;
}

/* Quest completion is no longer a lone pixel-art X. The result is centered
 * in its column and remains understandable without relying on colour. */
.character-quest-status-cell {
  width: 10%;
  min-width: 116px;
  text-align: center;
  vertical-align: middle;
}

.character-quest-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 88px;
  padding: 3px 7px;
  border: 1px solid #92733f;
  border-radius: 9px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 7pt;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.character-quest-status i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

.character-quest-status--complete {
  border-color: #4c8657;
  background: #d9ead2;
  color: #1b6a39;
}

.character-quest-status--complete i {
  background: #35a85b;
  color: #f4ffe8;
}

.character-quest-status--incomplete {
  border-color: #9a7653;
  background: #e8d9c1;
  color: #765237;
}

.character-quest-status--incomplete i {
  background: #9d493e;
  color: #fff0df;
}

.faq-answer {
  padding: 12px 14px 14px 42px;
  border-top: 1px dotted #9a7b4d;
  background: #fff7e6;
  color: var(--zealot-ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt;
  line-height: 1.55;
}

.faq-answer[hidden] {
  display: none !important;
}

.faq-answer--empty {
  padding-left: 14px;
}

.faq-answer a {
  color: #80561e;
  font-weight: bold;
}

.faq-answer a:hover,
.faq-answer a:focus {
  color: var(--zealot-ruby);
}

.faq-actions {
  padding: 7px 12px 9px 42px;
  border-top: 1px solid #c9a978;
  background: var(--zealot-parchment-deep);
  font-family: Verdana, Arial, sans-serif;
  font-size: 8pt;
}

.faq-actions a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 2px 10px 2px 0;
  white-space: nowrap;
}

.faq-actions img {
  max-width: 14px;
  max-height: 14px;
}

.faq-editor {
  margin-bottom: 14px;
}

.faq-editor__field {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  color: var(--zealot-ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
}

.faq-editor__field .zealot-field {
  width: min(100%, 680px);
}

.faq-editor__field textarea.zealot-field {
  resize: vertical;
}

.faq-editor__actions {
  display: flex;
  justify-content: flex-end;
}

.faq-editor__actions .zealot-button {
  cursor: pointer;
}

/* Persistent navigation: preserve the illustrated menu, but give its active
 * and hover states a single Zealot hierarchy instead of mixed legacy colours. */
#MenuColumn #Menu .MenuButton .Button {
  background-image: none !important;
  background-color: rgba(24, 58, 46, 0.48);
  box-shadow: inset 0 0 0 1px rgba(231, 196, 125, 0.18);
}

#MenuColumn #Menu .MenuButton {
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #0b1c15;
  background: linear-gradient(90deg, #10261d 0, #1d3e30 50%, #10261d 100%) !important;
  box-shadow: inset 0 0 0 1px #496553, inset 0 1px 0 rgba(231, 196, 125, 0.2), 0 1px 1px rgba(0, 0, 0, 0.65);
}

#MenuColumn #Menu .MenuButton::before {
  position: absolute;
  inset: 3px;
  z-index: 1;
  border-top: 1px solid rgba(231, 196, 125, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.7);
  content: '';
  pointer-events: none;
}

#MenuColumn #Menu .MenuButton .Icon,
#MenuColumn #Menu .MenuButton .Label,
#MenuColumn #Menu .MenuButton .Extend,
#MenuColumn #Menu .MenuButton .Lights {
  z-index: 2;
}

/* Category names are real text so the navigation shares the Market's
 * editorial typeface while retaining the original illustrated icons. */
#MenuColumn #Menu .MenuButton .Label.zealot-menu-category-label {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  top: 0;
  left: 42px;
  width: 116px;
  height: 32px;
  min-width: 0;
  padding: 0 9px 0 2px;
  background: none !important;
  color: #fff1c8;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  text-shadow: 1px 2px 1px #09140f, 0 0 3px rgba(0, 0, 0, .8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#MenuColumn #Menu .MenuButton:hover .Button {
  background-color: rgba(40, 90, 69, 0.65);
}

#MenuColumn #Menu .Submenu {
  border-right: 1px solid #426755;
  border-left: 1px solid #426755;
  background: linear-gradient(90deg, #10261d, var(--zealot-forest), #10261d);
  box-shadow: inset 0 0 0 1px rgba(231, 196, 125, 0.1);
}

#MenuColumn #MenuTop,
#MenuColumn #MenuBottom {
  box-sizing: border-box;
  border-right: 1px solid #426755;
  border-left: 1px solid #426755;
  background: linear-gradient(90deg, #10261d, var(--zealot-forest), #10261d) !important;
}

#MenuColumn #MenuTop {
  border-top: 1px solid var(--zealot-gold);
  box-shadow: inset 0 1px 0 rgba(231, 196, 125, 0.18);
}

#MenuColumn #MenuBottom {
  border-bottom: 1px solid var(--zealot-gold);
  box-shadow: inset 0 -1px 0 rgba(231, 196, 125, 0.18);
}

#MenuColumn #Menu .LeftChain,
#MenuColumn #Menu .RightChain {
  width: 5px;
  background: linear-gradient(90deg, #0b1c15, #426755, #0b1c15) !important;
}

#MenuColumn #Menu .Submenuitem {
  transition: background-color 120ms ease;
}

#MenuColumn #Menu .Submenuitem.zealot-menu-current {
  background-color: #234b3b;
  box-shadow: inset 3px 0 0 var(--zealot-gold);
}

#MenuColumn #Menu .Submenuitem.zealot-menu-current .SubmenuitemLabel {
  color: var(--zealot-gold-light) !important;
}

#MenuColumn #Menu .Submenuitem:hover .SubmenuitemLabel {
  color: #fff1c8 !important;
}

#MenuColumn #Menu .SubmenuitemLabel {
  box-sizing: border-box;
  display: block;
  min-width: 0;
  padding-right: 8px;
  color: #eadbbd !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.01em;
  line-height: 18px;
  overflow: hidden;
  text-shadow: 1px 1px 1px #09140f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sidebar calls-to-action share one green/gold treatment regardless of which
 * legacy box emitted them. */
#Themeboxes .ThemeboxButton,
#Themeboxes .discord_button,
#Themeboxes .donate_button,
#Themeboxes .rank_button,
#Themeboxes .searchchar_button {
  box-sizing: border-box;
  border: 1px solid #0c1d16 !important;
  outline: 1px solid var(--zealot-gold);
  background: var(--zealot-forest) !important;
  color: var(--zealot-gold-light) !important;
  box-shadow: inset 0 1px 0 rgba(255, 239, 191, 0.2), 0 1px 1px rgba(0, 0, 0, 0.45);
  font-family: Verdana, Arial, sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
}

#Themeboxes .ThemeboxButton {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#Themeboxes .ThemeboxButton .BigButtonOver,
#Themeboxes .ThemeboxButton .ButtonText {
  background-image: none !important;
}

#Themeboxes .ThemeboxButton::after {
  content: attr(data-zealot-label);
  color: var(--zealot-gold-light);
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
}

#Themeboxes .ThemeboxButton:hover,
#Themeboxes .ThemeboxButton:focus,
#Themeboxes .discord_button:hover,
#Themeboxes .discord_button:focus,
#Themeboxes .donate_button:hover,
#Themeboxes .donate_button:focus,
#Themeboxes .rank_button:hover,
#Themeboxes .rank_button:focus,
#Themeboxes .searchchar_button:hover,
#Themeboxes .searchchar_button:focus {
  background: var(--zealot-forest-hover) !important;
  color: #fff1c8 !important;
}

/* Standard frame for the dynamic sidebar modules. Their sprites, item art and
 * existing Verdana lettering stay intact; only the surrounding chrome changes. */
#Themeboxes .rank,
#Themeboxes .discord,
#Themeboxes .serversave,
#Themeboxes .donate,
#Themeboxes .searchchar,
#Themeboxes .rashid {
  box-sizing: border-box;
  background: #101a15;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.42);
}

#Themeboxes .rank_header,
#Themeboxes .discord_header,
#Themeboxes .serversave_header,
#Themeboxes .donate_header,
#Themeboxes .searchchar_header,
#Themeboxes .rashid_header {
  box-sizing: border-box;
  width: 180px;
  border: 1px solid #0b1c15;
  border-bottom-color: var(--zealot-gold);
  background: linear-gradient(90deg, #10261d, var(--zealot-forest), #10261d) !important;
  box-shadow: inset 0 1px 0 rgba(231, 196, 125, 0.2), inset 0 0 0 1px #426755;
  color: #fff1c8 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 0.01em;
  line-height: 45px !important;
  text-shadow: 1px 2px 1px #09140f, 0 0 3px rgba(0, 0, 0, .8);
}

/* Central page and panel captions use the same Zealot Market hierarchy. */
.Content .TitleText,
.Content .TableContainer .CaptionContainer .Text {
  color: #fff1c8 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  letter-spacing: 0.01em;
  text-shadow: 1px 2px 1px #09140f, 0 0 3px rgba(0, 0, 0, .8);
}

#Themeboxes .rank_content,
#Themeboxes .discord_content,
#Themeboxes .serversave_content,
#Themeboxes .donate_content,
#Themeboxes .searchchar_content,
#Themeboxes .rashid_content {
  box-sizing: border-box;
  width: 180px;
  border-right: 1px solid #426755;
  border-left: 1px solid #426755;
  background: linear-gradient(90deg, #0d1712, #15221c, #0d1712) !important;
  color: #dfd0b3;
}

#Themeboxes .rank_bottom,
#Themeboxes .discord_bottom,
#Themeboxes .serversave_bottom,
#Themeboxes .donate_bottom,
#Themeboxes .searchchar_bottom,
#Themeboxes .rashid_bottom {
  box-sizing: border-box;
  width: 180px;
  height: 12px;
  margin-top: 0;
  border-right: 1px solid #426755;
  border-bottom: 1px solid var(--zealot-gold);
  border-left: 1px solid #426755;
  background: linear-gradient(90deg, #10261d, var(--zealot-forest), #10261d) !important;
  box-shadow: inset 0 -1px 0 rgba(231, 196, 125, 0.16);
}

#Themeboxes .rank_text,
#Themeboxes .rank_text a,
#Themeboxes .donate_text,
#Themeboxes .searchchar_text,
#Themeboxes .serversave_text,
#Themeboxes .rashid_text {
  color: #dfd0b3 !important;
}

#Themeboxes .rank_text a:hover,
#Themeboxes .rank_text a:focus {
  color: var(--zealot-gold-light) !important;
}

#Themeboxes .serversave_countdown {
  border-color: var(--zealot-gold);
  border-radius: 0;
  background: #0b1510;
  color: var(--zealot-gold-light);
  text-shadow: 1px 1px 1px #000;
}

/* Localized Server Save labels are naturally longer than the English ones.
 * Keep each element in its own flow row: the legacy grid placed the label and
 * timer in the same implicit cell, which caused the overlap in PT/ES. */
#Themeboxes .serversave {
  height: auto;
  min-height: 0;
}

#Themeboxes .serversave_header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-height: 56px;
  padding: 5px 10px;
  font-size: 17px;
  line-height: 1.08 !important;
  overflow: hidden;
  text-align: center;
  text-wrap: balance;
}

#Themeboxes .serversave_content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  height: auto;
  min-height: 94px;
  padding: 9px 10px 10px;
  gap: 8px;
}

#Themeboxes .serversave_text {
  flex: 0 0 auto;
  font-size: 11px !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#Themeboxes .serversave_text small {
  display: block;
  font-size: inherit;
}

#Themeboxes .serversave_countdown {
  flex: 0 0 auto;
  min-height: 38px;
  box-sizing: border-box;
  padding: 5px 2px;
  font-size: 21px !important;
  line-height: 26px;
  white-space: nowrap;
}

/* The translated payment and character-search titles are wider than their
 * English counterparts. These two boxes used an inherited one-line header,
 * which put the second line on top of the panel below. Let their header grow
 * independently and keep the form/artwork in a separate content flow. */
#Themeboxes .donate,
#Themeboxes .searchchar {
  height: auto !important;
  min-height: 0;
}

#Themeboxes .donate_header,
#Themeboxes .searchchar_header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  height: auto !important;
  padding: 7px 10px;
  font-size: 17px;
  line-height: 1.08 !important;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
}

#Themeboxes .donate_content {
  min-height: 125px;
}

#Themeboxes .searchchar_content {
  display: flex;
  min-height: 80px;
  height: auto !important;
  padding: 9px 10px 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#Themeboxes .searchchar_input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}

#Themeboxes .searchchar_button {
  flex: 0 0 30px;
  margin-top: 0;
}

/* Compact account and download calls-to-action keep their labels, but lose the
 * chain/stone wrapper so they belong to the same navigation system. */
#Loginbox,
.SmallMenuBox#DownloadBox {
  box-sizing: border-box;
  left: 0;
  width: 180px;
  padding: 6px;
  border: 1px solid #0b1c15;
  background: linear-gradient(90deg, #10261d, var(--zealot-forest), #10261d);
  box-shadow: inset 0 0 0 1px #426755, inset 0 1px 0 rgba(231, 196, 125, 0.2), 0 2px 4px rgba(0, 0, 0, 0.5);
}

#Loginbox {
  margin-bottom: 20px;
}

.SmallMenuBox#DownloadBox {
  top: 4px;
  margin-bottom: 24px;
}

#Loginbox #LoginTop,
#Loginbox #LoginBottom,
#Loginbox .LoginBorder,
.SmallMenuBox#DownloadBox .SmallBoxTop,
.SmallMenuBox#DownloadBox .SmallBoxBorder,
.SmallMenuBox#DownloadBox .SmallBoxBottom {
  display: none;
}

#Loginbox #LoginButtonContainer,
.SmallMenuBox#DownloadBox .SmallBoxButtonContainer {
  box-sizing: border-box;
  position: relative;
  left: 0;
  width: 100%;
  height: 32px;
  background-image: none !important;
}

#Loginbox #LoginButtonContainer {
  left: -5px;
}

#Loginbox #LoginButton,
#PlayNowContainer {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
}

#Loginbox #LoginButton .Button,
.SmallMenuBox#DownloadBox .MediumButtonBackground,
.SmallMenuBox#DownloadBox .MediumButtonOver,
.SmallMenuBox#DownloadBox .MediumButtonText {
  width: 100%;
  height: 32px;
}

#Loginbox .Loginstatus {
  box-sizing: border-box;
  left: 0;
  width: 100%;
  height: 25px;
  margin-top: 6px;
  background-image: none !important;
}

#Loginbox #LoginstatusText_2 {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 25px;
  background-image: none !important;
  border-top: 1px solid rgba(231, 196, 125, 0.22);
  color: var(--zealot-gold-light);
  cursor: pointer;
  font-family: Verdana, Arial, sans-serif;
  min-width: 0;
  padding: 0 8px;
  font-size: 10px;
  font-weight: bold;
  text-shadow: 1px 1px 1px #000;
}

#Loginbox #LoginstatusText_2::after {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  content: attr(data-zealot-label);
}

#Loginbox #LoginstatusText_2_1,
#Loginbox #LoginstatusText_2_2 {
  display: none !important;
}

/* Daily Boost is a true sidebar module too, so it receives the shared frame
 * while the creature and boss sprites remain unchanged. */
#DailyHighlights {
  border-color: #426755;
  padding: 4px 4px 6px;
  background: linear-gradient(90deg, #0d1712, #15221c, #0d1712);
  box-shadow: inset 0 0 0 1px #0b1c15, 0 2px 5px rgba(0, 0, 0, 0.42);
}

/* Daily Boost sits above the dynamic modules. Reserve its real rendered
 * height plus a visual gap so longer boost labels cannot overlap Highscores. */
#Themeboxes {
  margin-top: 72px;
}

.DailyHighlightsTitle {
  margin: -4px -4px 6px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--zealot-gold);
  background: linear-gradient(90deg, #10261d, var(--zealot-forest), #10261d);
  color: var(--zealot-gold-light);
  text-shadow: 1px 1px 1px #000;
}

.DailyBoostStage {
  color: #dfd0b3;
}

.DailyBoostType {
  color: #bcae92;
}

/* Missing assets are deliberately obvious and neutral. A generic demon or
 * dragon in this slot makes the Daily Boost information factually wrong. */
.DailyBoostSprite--missing {
  background-color: #18251e;
  background-image: none;
  border: 1px dashed rgba(231, 196, 125, 0.52);
  box-sizing: border-box;
}

.DailyBoostSpritePlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 9px;
  border: 1px solid rgba(231, 196, 125, 0.56);
  border-radius: 50%;
  color: var(--zealot-gold-light);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  text-shadow: 1px 1px 1px #000;
}

#RightArtwork #PlayersOnline {
  border-color: var(--zealot-gold);
  background: var(--zealot-forest);
  color: var(--zealot-gold-light);
}

/* Generic information frames, including the gallery hint, no longer expose
 * the old metallic rail artwork. */
.Content .SmallBox .Message {
  border: 1px solid #826843;
  background: var(--zealot-parchment);
  color: var(--zealot-ink);
  box-shadow: inset 0 0 0 1px #fff6df;
}

.Content .SmallBox .BoxFrameHorizontal {
  height: 5px;
  background: var(--zealot-forest) !important;
}

.Content .SmallBox .BoxFrameVerticalLeft,
.Content .SmallBox .BoxFrameVerticalRight {
  width: 2px;
  background: var(--zealot-forest) !important;
}

.Content .SmallBox .BoxFrameEdgeLeftTop,
.Content .SmallBox .BoxFrameEdgeRightTop,
.Content .SmallBox .BoxFrameEdgeLeftBottom,
.Content .SmallBox .BoxFrameEdgeRightBottom {
  background: var(--zealot-gold) !important;
}

.zealot-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.zealot-gallery-card {
  box-sizing: border-box;
  width: 170px;
  margin: 0;
  border: 1px solid #826843;
  background: var(--zealot-parchment);
  box-shadow: inset 0 0 0 1px #fff6df, 0 2px 4px rgba(0, 0, 0, 0.32);
  color: var(--zealot-ink);
  text-align: center;
}

.zealot-gallery-card__image {
  display: block;
  margin: 7px;
  border: 2px solid var(--zealot-forest);
  background: #0b1510;
  line-height: 0;
}

.zealot-gallery-card__image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.zealot-gallery-card__caption {
  margin: 7px 8px 9px;
  color: var(--zealot-ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 9pt;
  font-weight: bold;
}

.zealot-gallery-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  justify-content: center;
  padding: 7px;
  border-top: 1px solid #c9a978;
  background: var(--zealot-parchment-deep);
  font-size: 8pt;
}

.zealot-gallery-card__actions a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* The old footer was transparent, exposing a disconnected texture underneath.
 * A defined surface makes it the closing element of the content column. */
#Footer {
  box-sizing: border-box;
  width: calc(100% - 10px);
  margin: 22px 5px 20px;
  padding: 13px 18px;
  border: 1px solid #526251;
  border-top-color: var(--zealot-gold);
  background: linear-gradient(180deg, rgba(30, 51, 41, 0.97), rgba(13, 20, 16, 0.97));
  box-shadow: inset 0 0 0 1px rgba(231, 196, 125, 0.12), 0 2px 5px rgba(0, 0, 0, 0.35);
  color: #e5dbc7;
  line-height: 1.45;
}

#Footer a,
#Footer a:link,
#Footer a:visited {
  color: var(--zealot-gold-light);
}

#Footer a:hover,
#Footer a:focus {
  color: #fff1c8;
}

/* On the original fixed-width frame, columns are positioned absolutely. The
 * small-screen rules turn that same markup into a readable one-column flow. */
@media (max-width: 1050px) {
  #ArtworkHelper,
  #Bodycontainer {
    min-width: 0;
  }

  #Bodycontainer {
    box-sizing: border-box;
    display: block;
    max-width: 900px;
    padding: 0 14px;
  }

  #ContentRow {
    top: 155px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
  }

  #MenuColumn,
  #ThemeboxesColumn {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    flex: 0 0 180px;
    margin: 0;
  }

  #ContentColumn {
    flex: 1 1 460px;
    min-width: 0;
    margin: 0;
  }

  #RightArtwork {
    position: static;
    width: 180px;
  }

  #DailyHighlights {
    position: static;
    margin: 0 auto 18px;
  }

  #Themeboxes {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .Content .zealot-status-shell .InfoBar {
    height: auto;
    min-height: 34px;
    padding: 4px 36px 4px 6px;
  }

  .zealot-quick-actions {
    gap: 6px;
    flex-wrap: wrap;
  }

  .zealot-language-switcher {
    margin-left: 0;
    padding-left: 6px;
  }

  .zealot-language-option__label {
    display: none;
  }

  #ArtworkHelper {
    background-position: top center !important;
  }

  #Bodycontainer {
    padding: 0 10px;
  }

  #ContentRow {
    top: 155px;
    display: block;
  }

  #MenuColumn,
  #ThemeboxesColumn {
    width: 180px;
    margin-right: auto;
    margin-left: auto;
  }

  #ContentColumn {
    width: 100%;
    margin-top: 22px;
  }

  #ThemeboxesColumn {
    margin-top: 22px;
  }

  .Content .Box {
    margin-right: 0;
    margin-left: 0;
  }

  .Content .BoxContent {
    min-height: 0;
  }

  .faq-toolbar {
    align-items: flex-start;
  }

  .faq-question {
    min-height: 40px;
    padding: 8px 10px;
  }

  .faq-answer,
  .faq-actions {
    padding-left: 38px;
  }

  .Content #News .NewsHeadlineBackground,
  .Content #NewsArchive .NewsHeadlineBackground,
  .Content #FeaturedArticle .NewsHeadlineBackground {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: auto;
    min-height: 28px;
    padding: 4px 7px 4px 50px;
  }

  .Content #News .NewsHeadlineDate,
  .Content #NewsArchive .NewsHeadlineDate,
  .Content #FeaturedArticle .NewsHeadlineDate,
  .Content #News .NewsHeadlineText,
  .Content #NewsArchive .NewsHeadlineText,
  .Content #FeaturedArticle .NewsHeadlineText {
    position: static;
    top: auto;
    left: auto;
  }

  .Content #News .NewsHeadlineDate,
  .Content #NewsArchive .NewsHeadlineDate,
  .Content #FeaturedArticle .NewsHeadlineDate {
    flex: 0 0 auto;
    width: auto;
    margin-right: 6px;
  }

  .Content #News .NewsHeadlineText,
  .Content #NewsArchive .NewsHeadlineText,
  .Content #FeaturedArticle .NewsHeadlineText {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .TableContainer,
  .TableContentContainer {
    max-width: 100%;
    overflow-x: auto;
  }

  .zealot-exchange__hero {
    padding: 19px 16px;
  }

  .zealot-exchange h1 {
    font-size: 19pt;
  }

  .zealot-exchange__summary-rule {
    flex-basis: 100%;
    margin-left: 0;
  }

  .zealot-exchange__grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .zealot-market-nav { gap: 5px; }
  .zealot-market-nav a { flex: 1 1 auto; padding: 0 8px; }
  .zealot-market-activity { margin: 12px 8px; overflow-x: auto; }
  .zealot-market-activity__table { min-width: 620px; }

  .zealot-market-listings__header,
  .zealot-market-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .zealot-market-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zealot-market-filters button {
    grid-column: span 2;
  }

  .zealot-market-card__body {
    grid-template-columns: 82px 1fr;
  }

  .zealot-market-card__equipment {
    grid-column: span 2;
    justify-content: start;
  }
}

/* Zealot Market character detail */
.zealot-market-detail {
  margin: 13px 16px;
  border: 1px solid #a7843c;
  background: #f4e6ca;
  box-shadow: 0 0 0 3px #173f32, 0 4px 12px rgb(0 0 0 / 38%);
  color: #4b2a10;
}

.zealot-market-detail__back {
  display: inline-block;
  margin: 13px 15px 0;
  color: #14533e;
  font-weight: 700;
}

.zealot-market-detail__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 15px 0;
  padding: 18px 20px;
  border: 1px solid #b78b32;
  background: linear-gradient(135deg, #0a2119, #194d3b);
  color: #f6d276;
}

.zealot-market-detail__header > div:first-child > span,
.zealot-market-detail__purchase > span {
  color: #e7c770;
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.zealot-market-detail h1,
.zealot-market-detail h2,
.zealot-market-detail p { margin: 0; }

.zealot-market-detail h1 {
  margin-top: 3px;
  color: #fff1c5;
  font-size: 22pt;
}

.zealot-market-detail__header p { color: #d9cda8; }

.zealot-market-detail__timer {
  min-width: 128px;
  align-self: center;
  padding: 9px 12px;
  border: 1px solid #c79d44;
  text-align: center;
}

.zealot-market-detail__timer small,
.zealot-market-detail__purchase small {
  display: block;
  color: #d8caab;
}

.zealot-market-detail__timer strong { display: block; color: #fff0b4; font-size: 13pt; }

.zealot-market-detail__main {
  display: grid;
  grid-template-columns: 120px minmax(230px, 1fr) minmax(170px, .8fr);
  gap: 15px;
  align-items: center;
  padding: 16px;
}

.zealot-market-detail__outfit {
  min-height: 125px;
  display: grid;
  place-items: center;
  border: 1px solid #af8a4b;
  background: #ede0c5;
  text-align: center;
}

.zealot-market-detail__outfit img { image-rendering: pixelated; transform: scale(1.2); }
.zealot-market-detail__outfit span { font-size: 8pt; color: #72522f; }

.zealot-market-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 15px;
  margin: 0;
}

.zealot-market-detail__facts div,
.zealot-market-detail__skills div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #d3bd90;
}

.zealot-market-detail__facts dt,
.zealot-market-detail__skills span { color: #795735; font-weight: 700; }
.zealot-market-detail__facts dd { margin: 0; font-weight: 700; }

.zealot-market-detail__equipment {
  display: grid;
  grid-template-columns: repeat(5, 46px);
  gap: 6px;
  justify-content: center;
}

.zealot-market-detail__equipment span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #8e6c33;
  background: #173f32;
}

.zealot-market-detail__equipment span img { max-width: 32px; max-height: 32px; }
.zealot-market-detail__equipment .is-empty { color: #9a895f; }

.zealot-market-inventory {
  margin: 0 15px;
  border: 1px solid #b4862f;
  background: #f3e5c8;
}

.zealot-market-inventory > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #b4862f;
  background: #123c2f;
  color: #f7e5b5;
}

.zealot-market-inventory > header span {
  color: #e7c770;
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.zealot-market-inventory h2 { margin: 2px 0 0; font-size: 14pt; }
.zealot-market-inventory > header small { color: #d8caab; text-align: right; }
.zealot-market-inventory__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zealot-market-inventory details + details { border-left: 1px solid #d2b77f; }
.zealot-market-inventory summary { padding: 10px 13px; cursor: pointer; color: #5e3e20; font-weight: 800; }
.zealot-market-inventory ul { margin: 0; padding: 0 13px 12px 28px; list-style: none; }
.zealot-market-inventory li { margin: 3px 0; }
.zealot-market-inventory li ul { padding: 2px 0 0 18px; }
.zealot-market-inventory__item { display: inline-flex; align-items: center; gap: 5px; color: #5e3e20; font-size: 9pt; }
.zealot-market-inventory__item img { width: 28px; height: 28px; image-rendering: pixelated; }
.zealot-market-inventory__empty { margin: 0; padding: 0 13px 12px; color: #806b4b; font-size: 9pt; }

.zealot-market-detail__bottom {
  display: grid;
  grid-template-columns: 1fr minmax(250px, .85fr);
  gap: 15px;
  padding: 15px;
  border-top: 1px solid #b5893b;
  background: #e5d2aa;
}

.zealot-market-detail__skills h2 { font-size: 14pt; }
.zealot-market-detail__skills { padding: 4px 8px; }

.zealot-market-detail__purchase {
  padding: 14px;
  border: 1px solid #b4862f;
  background: #123c2f;
  color: #f7e5b5;
}

.zealot-market-detail__purchase > strong {
  display: block;
  margin: 3px 0 8px;
  color: #ffd777;
  font-size: 19pt;
}

.zealot-market-detail__purchase strong img { width: 17px; vertical-align: middle; }
.zealot-market-detail__purchase form { margin-top: 12px; }
.zealot-market-detail__purchase label { display: block; margin-bottom: 4px; font-weight: 700; }
.zealot-market-detail__purchase input { width: calc(100% - 18px); margin-bottom: 8px; }
.zealot-market-detail__purchase button,
.zealot-market-detail__purchase a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c79d44;
  background: #174735;
  color: #ffe49b;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.zealot-market-detail__purchase button:hover,
.zealot-market-detail__purchase a:hover { background: #205b43; }

@media (max-width: 750px) {
  .zealot-market-detail__header,
  .zealot-market-detail__main,
  .zealot-market-detail__bottom { display: block; }
  .zealot-market-detail__timer,
  .zealot-market-detail__facts,
  .zealot-market-detail__equipment,
  .zealot-market-detail__skills,
  .zealot-market-detail__purchase { margin-top: 13px; }
  .zealot-market-detail__equipment { grid-template-columns: repeat(5, 44px); }
  .zealot-market-inventory { margin: 0 10px; }
}

/* Marketplace-specific small-screen polish.  The legacy site is table-first,
 * while the Market is frequently used on a phone; these rules keep every
 * action and listing readable without horizontal page overflow. */
@media (max-width: 720px) {
  .zealot-market-nav {
    gap: 6px;
    padding: 8px;
  }

  .zealot-market-nav a {
    flex: 1 1 112px;
    min-height: 36px;
    padding: 0 9px;
  }

  .zealot-market-listings__header,
  .zealot-market-sell__header,
  .zealot-market-activity__header {
    padding: 16px;
  }

  .zealot-market-listings h1,
  .zealot-market-sell h1 {
    font-size: 18pt;
  }

  .zealot-market-listings__sell,
  .zealot-market-activity__action,
  .zealot-market-filters button,
  .zealot-market-sell__form button {
    min-height: 36px;
  }

  .zealot-market-listings__header > div,
  .zealot-market-activity__header > div {
    min-width: 0;
  }

  .zealot-market-filters,
  .zealot-market-sell__form {
    gap: 10px;
    padding: 12px;
  }

  .zealot-market-filters select,
  .zealot-market-filters input,
  .zealot-market-sell__form select,
  .zealot-market-sell__form input,
  .zealot-market-detail__purchase input {
    min-height: 36px;
    font-size: 16px;
  }

  .zealot-market-card {
    margin: 10px;
  }

  .zealot-market-card__body {
    gap: 10px;
    padding: 11px;
  }

  .zealot-market-card__footer a {
    min-height: 34px;
  }

  .zealot-market-detail {
    margin: 10px;
  }

  .zealot-market-detail__back {
    margin: 12px 12px 0;
  }

  .zealot-market-detail__header,
  .zealot-market-detail__main,
  .zealot-market-detail__bottom {
    margin-right: 10px;
    margin-left: 10px;
    padding: 13px;
  }

  .zealot-market-detail__main,
  .zealot-market-detail__bottom {
    margin: 0;
  }
}

@media (max-width: 500px) {
  .zealot-market-listings__header,
  .zealot-market-activity__header,
  .zealot-market-card__header,
  .zealot-market-card__footer,
  .zealot-market-sell__balance {
    align-items: stretch;
    flex-direction: column;
  }

  .zealot-market-listings__sell,
  .zealot-market-activity__header > .zealot-market-activity__action,
  .zealot-market-card__footer a {
    width: 100%;
    justify-content: center;
  }

  .zealot-market-filters,
  .zealot-market-sell__form {
    grid-template-columns: 1fr;
  }

  .zealot-market-filters button,
  .zealot-market-sell__rules,
  .zealot-market-sell__form button {
    grid-column: auto;
  }

  .zealot-market-filters__reset {
    min-height: 36px;
  }

  .zealot-market-card__body {
    grid-template-columns: 1fr;
  }

  .zealot-market-card__outfit {
    flex-direction: row;
    min-height: 76px;
    gap: 10px;
  }

  .zealot-market-card__details {
    grid-template-columns: 1fr;
  }

  .zealot-market-card__equipment {
    grid-column: auto;
    grid-template-columns: repeat(3, 36px);
  }

  .zealot-market-card__equipment > span {
    width: 36px;
    height: 36px;
  }

  .zealot-market-detail__equipment { grid-template-columns: repeat(3, 44px); }
  .zealot-market-inventory > header,
  .zealot-market-inventory__groups { display: block; }
  .zealot-market-inventory > header small { display: block; margin-top: 5px; text-align: left; }
  .zealot-market-inventory details + details { border-top: 1px solid #d2b77f; border-left: 0; }

  .zealot-market-sell__rules {
    grid-template-columns: 1fr;
  }

  .zealot-market-activity {
    margin: 10px 0;
    overflow: hidden;
  }

  .zealot-market-activity__table,
  .zealot-market-activity__table tbody,
  .zealot-market-activity__table tr,
  .zealot-market-activity__table td {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  .zealot-market-activity__table thead {
    display: none;
  }

  .zealot-market-activity__table tbody tr {
    padding: 6px 0;
    border-bottom: 1px solid #b68c4b;
  }

  .zealot-market-activity__table tbody tr:last-child {
    border-bottom: 0;
  }

  .zealot-market-activity__table td {
    display: grid;
    grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr);
    gap: 10px;
    padding: 8px 11px;
    border: 0;
  }

  .zealot-market-activity__table td::before {
    content: attr(data-label);
    color: #795735;
    font-size: 7.5pt;
    font-weight: bold;
  }

  .zealot-market-activity__table .is-action {
    align-items: center;
  }

  .zealot-market-activity__actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .zealot-market-activity__action,
  .zealot-market-activity__hide {
    flex: 1 1 126px;
    min-height: 36px;
  }

  .zealot-market-detail h1 {
    font-size: 18pt;
  }

  .zealot-market-detail__facts {
    grid-template-columns: 1fr;
  }

  .zealot-market-detail__equipment {
    grid-template-columns: repeat(3, 42px);
    justify-content: start;
  }
}
