/* Alurian theme: inner pages.
   The page templates (account, characters, guilds, bazaar, wiki...) come from
   the previous theme and are styled by style.css + basic.css through the
   variables below. Here they are recoloured from navy to stone, bronze and
   ember, and the page sits inside an Alurian panel. Page content stays on
   parchment in both day and night (night uses a dimmer parchment). */

:root, [data-time="day"] {
  --foreground: #2a1e12;
  --text-muted: #5b4631;
  --text-link: #87470f;
  --color-accent: #c08a43;
  --box-bg: #cdb68a;
  --box-border: #6b4d24;
  --box-content-bg: #f4ead6;
  --box-inner-bg: #e8d9b9;
  --box-inner-border: #b99c6c;
  --box-inner-shadow: 0 2px 6px rgba(45, 28, 10, .15);
  --box-header-from: #3a3f43;
  --box-header-via: #2a2f33;
  --box-header-to: #1c2023;
  --box-header-border: #0b0d0e;
  --box-header-text: #f0c987;
  --hover-bg: rgba(192, 138, 67, .18);
  --active-bg: rgba(192, 138, 67, .32);
  --btn-primary-from: #c4501f;
  --btn-primary-via: #a0360f;
  --btn-primary-to: #74230b;
  --btn-primary-active-from: #74230b;
  --btn-primary-active-bg-from: #d8662c;
  --btn-primary-active-bg-to: #a0360f;
  --btn-secondary-border: #4e3719;
  --btn-secondary-from: #8c6a3a;
  --btn-secondary-to: #5e4422;
  --btn-success-from: #5d8a3a;
  --btn-success-to: #34541f;
  --btn-success-hover-from: #6c9a47;
  --btn-success-hover-to: #3d6224;
  --btn-danger-from: #b53a2a;
  --btn-danger-to: #7b231a;
  --btn-warning-from: #a87436;
  --btn-warning-to: #6f4c1f;
  --calendar-day-bg: #e8d9b9;
  --calendar-day-text: #2a1e12;
  --calendar-other-month-bg: #d3c09a;
  --calendar-more-text: #5b4631;
  --gold-trim-light: #fbe2a6;
  --gold-trim: #c08a43;
  --gold-trim-dark: #5a3a17;
  --page-paper: #f4ead6;
  --page-edge: #b99c6c;
}
[data-time="night"] {
  --box-content-bg: #e6d8ba;
  --box-inner-bg: #d9c8a4;
  --page-paper: #e6d8ba;
  --page-edge: #8c6a3a;
}

/* ---- page shell: title bar + parchment sheet ------------------------------ */
.panel.page > header { min-height: 54px; }
.panel.page > header h1 {
  margin: 0; font: 700 22px/1.15 var(--title); letter-spacing: .08em; text-transform: uppercase;
  color: var(--title-c); text-shadow: var(--title-shadow); text-align: center; text-wrap: balance;
}
.page-body { padding: 22px 16px 18px; }
.page-body .myaac-legacy-content, .page-body .page-sheet {
  min-height: 360px; padding: 18px;
  background: var(--page-paper);
  border: 1px solid var(--page-edge); border-radius: 4px;
  box-shadow: inset 0 0 24px rgba(120, 80, 30, .12);
  color: #2a1e12; font-size: 15px; line-height: 1.5;
  overflow-x: auto;
}
.page-body .myaac-legacy-content a:not([class*="btn"]):not([class*="button"]) { color: #87470f; }
.page-body .myaac-legacy-content a:not([class*="btn"]):not([class*="button"]):hover { color: #b0561a; }
.page-body .myaac-legacy-content table { max-width: 100%; }

/* classic MyAAC tables (TableContainer / Table3 / CaptionContainer) */
.page-body .TableContainer { margin-bottom: 16px; }
.page-body .CaptionContainer, .page-body .Table3 .CaptionContainer,
.page-body .Text, .page-body .TableContainer .Text {
  background: linear-gradient(180deg, #3a3f43, #1c2023) !important;
  color: #f0c987 !important; font-family: var(--title); letter-spacing: .06em;
}
.page-body table.Table1, .page-body table.Table2, .page-body table.Table3, .page-body table.Table5 { border-color: #8c6a3a !important; }
.page-body tr[bgcolor], .page-body td[bgcolor] { color: #2a1e12; }

/* home news list */
.news-body { padding: 4px 0; }
.news-body .alurian-news + .alurian-news { border-top: 1px solid var(--rule); }
.alurian-news { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px; padding: 18px 20px; }
.alurian-news .date {
  display: grid; place-items: center; align-content: center; height: 74px; border-radius: 5px;
  background: linear-gradient(180deg, var(--tile-a), var(--tile-b));
  border: 1px solid var(--edge); box-shadow: inset 0 0 0 1px rgba(192, 138, 67, .35);
}
.alurian-news .date b { font: 800 28px/1 var(--title); color: var(--title-c); }
.alurian-news .date span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.alurian-news h3 { margin: 0 0 6px; font: 700 22px/1.2 var(--title); color: var(--text); text-wrap: balance; }
.alurian-news .content { color: var(--text-dim); max-width: 70ch; overflow-wrap: anywhere; }
.alurian-news .content img { height: auto; }
.alurian-news .content a { color: var(--link); }
.alurian-news .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--text-faint); }
.alurian-news .meta a { color: var(--link); }
.news-empty { margin: 0; padding: 18px 20px 20px; color: var(--text-dim); }

/* news tickers on the home page */
.alurian-tickers { padding: 12px 20px 4px; border-bottom: 1px solid var(--rule); }
.alurian-tickers h3 { margin: 0 0 6px; font: 700 15px var(--title); letter-spacing: .08em; text-transform: uppercase; color: var(--title-c); }
.alurian-tickers ul { list-style: none; margin: 0; padding: 0; }
.alurian-tickers li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 6px 0; color: var(--text-dim); font-size: 15px; }
.alurian-tickers li b { color: var(--title-c); font-variant-numeric: tabular-nums; }
.alurian-tickers li + li { border-top: 1px dashed var(--rule); }

/* shell additions for the live theme */
.strip .pill { text-decoration: none; }
.strip .pill-short { display: none; }
.status .big { text-decoration: none; color: inherit; }
.status .state.on { color: #4f8a3a; }
[data-time="night"] .status .state.on { color: #8fd17a; }
.status .state.on i { background: #6fcf74; }
.rank .empty { margin: 0; color: var(--text-dim); font-size: 15px; }
.rank .more { display: block; margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; text-align: right; }
.account-box .hello { margin: 0 0 12px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.account-box form .btn { width: 100%; }
.side.left .menu li a[style] { color: var(--text-dim) !important; }

@media (max-width: 860px) {
  .strip .pill-long { display: none; }
  .strip .pill-short { display: inline; }
  .alurian-news { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .alurian-news .date { height: 60px; }
  .page-body { padding: 18px 10px 12px; }
  .page-body .myaac-legacy-content { padding: 12px; }
}

/* core news boxes on the home page, drawn as Alurian panels */
.home-news { display: flex; flex-direction: column; gap: var(--gap); }
.home-news .news-section-box {
  position: relative; margin: 0;
  background-color: var(--panel);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .1));
  border: 1px solid var(--edge); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--panel-line), var(--shadow);
  transition: background-color .9s ease;
}
.home-news .content-title {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 8px 16px 12px;
  background-color: var(--panel-head);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .08));
  border-radius: var(--radius) var(--radius) 0 0;
}
.home-news .content-title::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -7px; height: 14px;
  background: var(--knot) repeat-x center / 48px 14px;
}
.home-news .content-title h2 {
  margin: 0; font: 700 18px/1.1 var(--title); letter-spacing: .1em; text-transform: uppercase;
  color: var(--title-c); text-shadow: var(--title-shadow);
}
.home-news .news-section-body { padding: 8px 0 4px; }
/* the body follows its box (parchment by day, dark stone by night) */
.news-section-box .news-section-body { background: transparent; }
.home-news .alurian-news + .alurian-news { border-top: 1px solid var(--rule); }
.home-news .alurian-tickers { border-bottom: 0; }
/* phones: the date tile sits beside the title and the post text takes the full width */
@media (max-width: 560px) {
  .alurian-news { row-gap: 12px; }
  .alurian-news > div:last-child { display: contents; }
  .alurian-news h3 { align-self: center; margin: 0; }
  .alurian-news .content, .alurian-news .meta { grid-column: 1 / -1; }
  .alurian-news .meta { margin-top: 0; }
}

/* downloads page */
.dl-page { display: grid; gap: 22px; }
.dl-intro { margin: 0; font-size: 17px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dl-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 26px 18px 20px; border-radius: 6px;
  background: linear-gradient(180deg, #fbf4e6, #ead9b6);
  border: 1px solid #b99c6c; box-shadow: 0 6px 14px rgba(45, 28, 10, .15);
}
.dl-card.main { border-color: #a0360f; box-shadow: 0 0 0 2px rgba(196, 80, 31, .35), 0 8px 18px rgba(45, 28, 10, .2); }
.dl-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: #fff8ec; background: linear-gradient(180deg, #c4501f, #8a2c0d); border: 1px solid #4a1806;
}
.dl-ico {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a3f43, #14181a); color: #f0c987;
  border: 2px solid #c08a43; box-shadow: 0 0 0 3px #4e3719;
}
.dl-ico svg { width: 32px; height: 32px; }
.dl-card h2 { margin: 6px 0 0; font: 700 19px/1.2 var(--title); letter-spacing: .04em; color: #4a2a0c; }
.dl-meta { margin: 0; font-size: 14px; font-weight: 700; color: #6c5639; }
.dl-desc { margin: 0 0 8px; font-size: 15px; color: #3d2c1a; flex: 1; }
.dl-card .btn { width: 100%; }
.dl-card .btn.is-disabled { cursor: default; opacity: .75; filter: saturate(.6); }
.page-body .dl-card .btn.stone { color: #2a1e12; background: linear-gradient(180deg, #f5ecd9, #cfb98e); border-color: #4e3719; }
.dl-steps { padding: 16px 18px; border: 1px dashed #b99c6c; border-radius: 6px; background: rgba(255, 250, 240, .5); }
.dl-steps h2 { margin: 0 0 8px; font: 700 18px var(--title); letter-spacing: .06em; text-transform: uppercase; color: #4a2a0c; }
.dl-steps ol { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 4px; }
.dl-note { margin: 0; font-size: 14px; color: #8a3a12; font-weight: 700; }
@media (max-width: 1000px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.page-body .dl-steps ol { list-style: decimal; }
.page-body .dl-steps li::marker { color: #a0360f; font-weight: 800; }

/* player outfits in the highscores and online lists */
.page-body .hs-who { display: inline-flex; align-items: center; gap: 6px; }
.page-body .hs-outfit {
  display: inline-block; flex: none; width: 80px; height: 80px;
  background: radial-gradient(ellipse 60% 18% at 62% 90%, rgba(60, 40, 15, .22), transparent 70%);
}
.page-body .hs-outfit img { display: block; width: 80px; height: 80px; image-rendering: pixelated; }
.page-body .hs-table td { vertical-align: middle; }
.page-body .online-player-outfit { width: 64px; height: 64px; image-rendering: pixelated; }

/* right column podium: each top player's outfit stands on the step */
.podium .podium-outfit { display: block; width: 64px; height: 64px; margin: 0 auto -4px; }
.podium .podium-outfit img { display: block; width: 64px; height: 64px; image-rendering: pixelated; }
.podium .p1 .podium-outfit { transform: scale(1.12); transform-origin: bottom center; }

/* bazaar item tooltip and tier badge (the legacy rule paints all text dark) */
.page-body .myaac-legacy-content .bazaar-item-tip,
.page-body .myaac-legacy-content .bazaar-item-tip div {
  color: #f1e3c2; font-size: 13px !important; line-height: 1.4;
}
.page-body .myaac-legacy-content .bazaar-item-tip { background: #2b1a0b; border-color: #9a7032; padding: 8px 11px; }
.page-body .myaac-legacy-content .bazaar-item-tip .bazaar-item-tip-name { color: #ffd98a; font-weight: 700; font-size: 14px !important; }
.page-body .myaac-legacy-content .bazaar-item-tip .bazaar-item-tip-mod { color: #8fd3ff; font-weight: 700; }
.page-body .myaac-legacy-content .bazaar-item-tip .bazaar-item-tip-loc { color: #c4ad80; font-size: 12px !important; }
.page-body .myaac-legacy-content .bazaar-item-tip-divider { border: 0; border-top: 1px solid rgba(255, 217, 138, .25); margin: 5px 0; }
.page-body .CVIcon { position: relative; }
.page-body .bazaar-tier-badge {
  /* the client's own orange tier badge, top right of the item as in game */
  position: absolute; top: 0; right: 0; width: 10px; height: 8px;
  image-rendering: pixelated; pointer-events: none; z-index: 1;
}

/* bazaar: outfits and mounts the character owns */
.page-body .bazaar-look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.page-body .bazaar-look {
  margin: 0; padding: 8px 6px 7px; display: grid; justify-items: center; gap: 4px; text-align: center;
  background: radial-gradient(ellipse 50% 14% at 60% 62%, rgba(60, 40, 15, .2), transparent 70%), #f6ead0;
  border: 1px solid #d8c299; border-radius: 6px;
}
.page-body .bazaar-look.full { border-color: #c08a2c; box-shadow: inset 0 0 0 1px rgba(192, 138, 44, .35); }
.page-body .bazaar-look img { width: 64px; height: 64px; image-rendering: pixelated; }
.page-body .myaac-legacy-content .bazaar-look figcaption, .page-body .myaac-legacy-content .bazaar-look b { font-size: 13px !important; line-height: 1.2; }
.page-body .myaac-legacy-content .bazaar-look .bazaar-look-addons { font-size: 12px !important; color: #7a5a2c; }
.page-body .myaac-legacy-content .bazaar-look.full .bazaar-look-addons { color: #a0360f; font-weight: 700; }
.page-body .bazaar-look figcaption { display: grid; gap: 1px; justify-items: center; }
/* extras: Loot/Seller Pouch, counts linked to the lists, mounts, magic wall skins */
.page-body .bazaar-look[hidden] { display: none; }
.page-body .bazaar-extras { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.page-body .bazaar-look .bazaar-look-cap { display: grid; gap: 1px; justify-items: center; }
.page-body .myaac-legacy-content a.bazaar-look { color: #3b1700; text-decoration: none; transition: border-color .15s, background-color .15s; }
.page-body .myaac-legacy-content a.bazaar-look:hover { border-color: #c08a2c; background-color: #fbf2de; }
.page-body a.bazaar-look:focus-visible { outline: 2px solid #a0360f; outline-offset: 2px; }
.page-body .bazaar-look.missing img { filter: grayscale(1); opacity: .35; }
.page-body .bazaar-look.missing { background: #f3e8d2; border-style: dashed; }
.page-body .myaac-legacy-content .bazaar-look.missing .bazaar-look-addons { color: #8a7458; }
.page-body .bazaar-look .bazaar-look-blank { display: block; width: 64px; height: 64px; }
/* mount pictures are cropped and big ones reach 4x4 tiles: fit them in the outfit box, feet down */
.page-body .bazaar-look img.bazaar-look-mount { width: 100%; height: 64px; object-fit: contain; object-position: 50% 100%; }
.page-body .bazaar-look-tools { margin: 0 0 10px; }
.page-body .bazaar-look-tools[hidden], .page-body .bazaar-look-more[hidden] { display: none; }
.page-body .bazaar-look-search { width: 100%; max-width: 320px; }
.page-body .bazaar-look-more { display: block; margin: 12px auto 0; }
.page-body .myaac-legacy-content .bazaar-look-empty { margin: 8px 0 0; text-align: center; color: #7a6040; text-indent: 0 !important; }
@media (prefers-reduced-motion: reduce) { .page-body .myaac-legacy-content a.bazaar-look { transition: none; } }

/* ── Wars pages (War System, Anti-Entrosa, Top Guilds, Top Fraggers) ── */
.page-body .wr { display: grid; gap: 14px; }
.page-body .wr-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid #d8c299; padding-bottom: 8px; }
.page-body .myaac-legacy-content .wr-tabs a {
  padding: 7px 14px; border-radius: 6px 6px 0 0; text-decoration: none; font-weight: 700;
  font-family: "Cinzel", Georgia, serif !important; font-size: 13px !important; letter-spacing: .04em; text-transform: uppercase;
  color: #6b4a1c !important; background: #efe0bf; border: 1px solid #d8c299; border-bottom: 0;
}
.page-body .myaac-legacy-content .wr-tabs a:hover { color: #a0360f !important; background: #f6ead0; }
.page-body .myaac-legacy-content .wr-tabs a[aria-current] { color: #fff7e6 !important; background: linear-gradient(#b5521b, #8a3410); border-color: #7a2c0c; }
.page-body .wr-period { display: flex; flex-wrap: wrap; gap: 6px; }
.page-body .myaac-legacy-content .wr-period a {
  padding: 4px 12px; border-radius: 999px; text-decoration: none; font-size: 13px !important; font-weight: 700;
  color: #6b4a1c !important; border: 1px solid #d8c299; background: #f8efdc;
}
.page-body .myaac-legacy-content .wr-period a[aria-current] { color: #fff !important; background: #6b4a1c; border-color: #6b4a1c; }
.page-body .myaac-legacy-content .wr-lead { margin: 0; color: #5a4326; max-width: 70ch; text-indent: 0 !important; }
.page-body .myaac-legacy-content .wr-h {
  margin: 6px 0 0; font-family: "Cinzel", Georgia, serif !important; font-size: 17px !important; color: #6b2a0c;
  display: flex; align-items: center; gap: 10px;
}
.page-body .wr-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #c9ab73, transparent); }
.page-body .myaac-legacy-content .wr-empty { margin: 0; padding: 14px; text-align: center; color: #7a6040; background: #f8efdc; border: 1px dashed #d8c299; border-radius: 8px; }

.page-body .wr-cards { display: grid; gap: 12px; }
.page-body .wr-card {
  padding: 14px; border-radius: 10px; display: grid; gap: 10px;
  background: radial-gradient(ellipse at 50% 0%, #fff6e2, #f2e3c3); border: 1px solid #cfb27a;
  box-shadow: 0 1px 0 #fffaf0 inset, 0 2px 6px rgba(70, 40, 10, .12);
}
.page-body .myaac-legacy-content .wr-city { justify-self: center; padding: 2px 12px; border-radius: 999px; font-size: 12px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff7e6; background: #6b4a1c; }
.page-body .wr-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.page-body .wr-vs > .wr-guild:last-child { justify-self: end; flex-direction: row-reverse; text-align: right; }
.page-body .myaac-legacy-content .wr-score { font-family: "Cinzel", Georgia, serif !important; font-size: 28px !important; color: #2a1e12; white-space: nowrap; line-height: 1; }
.page-body .myaac-legacy-content .wr-score span { font-size: 16px !important; color: #a0360f; margin: 0 4px; }
.page-body .wr-bar { position: relative; height: 8px; border-radius: 99px; background: #e4d2ad; overflow: hidden; }
.page-body .wr-bar span { position: absolute; top: 0; bottom: 0; }
.page-body .wr-bar .a { left: 0; background: linear-gradient(90deg, #8a3410, #c8581d); border-radius: 99px 0 0 99px; }
.page-body .wr-bar .b { right: 0; background: linear-gradient(270deg, #2f4a63, #4f7799); border-radius: 0 99px 99px 0; }
.page-body .wr-bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #f6ead0; }
.page-body .wr-meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.page-body .wr-meta > div { padding: 6px 8px; border-radius: 6px; background: rgba(255, 250, 238, .7); border: 1px solid #e2cfa6; }
.page-body .myaac-legacy-content .wr-meta dt { font-size: 11px !important; letter-spacing: .06em; text-transform: uppercase; color: #8a6a3c; }
.page-body .myaac-legacy-content .wr-meta dd { margin: 0; font-weight: 700; font-size: 14px !important; }

.page-body .wr-guild { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.page-body .wr-guild img { width: 32px; height: 32px; flex: none; border-radius: 4px; background: #e9d9b6; }
.page-body .myaac-legacy-content .wr-guild a, .page-body .myaac-legacy-content .wr-guild span { font-weight: 700; }
.page-body .myaac-legacy-content .wr-guild.gone span { color: #8a7a62; font-style: italic; }
.page-body .wr-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.page-body .myaac-legacy-content .wr-x { color: #a0360f; font-weight: 700; font-size: 13px !important; }

.page-body .wr-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.page-body .wr-list > li { padding: 10px 12px; border-radius: 8px; background: #f8efdc; border: 1px solid #e0cb9f; display: grid; gap: 6px; }
.page-body .myaac-legacy-content .wr-list small { color: #7a5a2c; font-size: 13px !important; }

.page-body .wr-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.page-body .myaac-legacy-content .wr-rules li { padding: 2px 9px; border-radius: 999px; font-size: 12px !important; font-weight: 700; border: 1px solid; }
.page-body .myaac-legacy-content .wr-rules li.on { color: #2f5a1f; background: #e3f0d3; border-color: #9cc27a; }
.page-body .myaac-legacy-content .wr-rules li.on::before { content: "\2713  "; }
.page-body .myaac-legacy-content .wr-rules li.off { color: #8a2a1a; background: #f7dfd6; border-color: #dda08e; text-decoration: line-through; }
.page-body .myaac-legacy-content .wr-rules li.flag { color: #2f4a63; background: #dfe9f2; border-color: #9fb8cf; }

.page-body .wr-scroll { overflow-x: auto; border-radius: 8px; border: 1px solid #d8c299; }
.page-body .wr-table { width: 100%; border-collapse: collapse; background: #fbf4e4; }
.page-body .myaac-legacy-content .wr-table th {
  padding: 8px 10px; text-align: left; font-size: 12px !important; letter-spacing: .06em; text-transform: uppercase;
  color: #fff3dc; background: linear-gradient(#6b4a1c, #563a14); white-space: nowrap;
}
.page-body .wr-table td { padding: 8px 10px; border-top: 1px solid #ead9b6; vertical-align: middle; }
.page-body .wr-table tbody tr:nth-child(even) td { background: #f5ead2; }
.page-body .wr-table .n { text-align: center; white-space: nowrap; }
.page-body .myaac-legacy-content .wr-table .d { white-space: nowrap; color: #6b5536; font-size: 14px !important; }
.page-body .myaac-legacy-content .wr-rank .pos { font-family: "Cinzel", Georgia, serif !important; font-weight: 800; font-size: 16px !important; color: #8a6a3c; }
.page-body .myaac-legacy-content .wr-rank .top1 .pos { color: #b8860b; font-size: 20px !important; }
.page-body .myaac-legacy-content .wr-rank .top2 .pos { color: #8d8d8d; font-size: 18px !important; }
.page-body .myaac-legacy-content .wr-rank .top3 .pos { color: #a0522d; font-size: 18px !important; }
.page-body .wr-rank .top1 td { background: #fbefc8 !important; }
.page-body .myaac-legacy-content .wr-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px !important; font-weight: 700; background: #ece0c5; color: #5a4326; }
.page-body .myaac-legacy-content .wr-tag.win { background: #f3dcae; color: #7a3d0a; border: 1px solid #d6a85c; }
.page-body .myaac-legacy-content .wr-tag.off { background: #eee6d8; color: #8a7a62; }

.page-body .wr-player { display: flex; align-items: center; gap: 6px; }
.page-body .wr-outfit { width: 64px; height: 64px; flex: none; background: radial-gradient(ellipse 60% 18% at 62% 90%, rgba(60, 40, 15, .22), transparent 70%); }
.page-body .wr-outfit img { width: 64px; height: 64px; image-rendering: pixelated; display: block; }
.page-body .wr-who { display: grid; gap: 1px; }
.page-body .myaac-legacy-content .wr-who small { color: #7a5a2c; font-size: 13px !important; }
.page-body .myaac-legacy-content .wr-guildname { font-size: 13px !important; font-weight: 700; }
@media (max-width: 640px) {
  .page-body .wr-vs { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .page-body .wr-vs > .wr-guild:last-child { justify-self: center; flex-direction: row; }
}

/* downloads: what Windows needs when the client will not open */
.dl-req { margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: #f8efdc; border: 1px solid #d8c299; }
.dl-req h2 { margin: 0 0 10px; font: 700 18px var(--title); letter-spacing: .06em; text-transform: uppercase; color: #4a2a0c; }
.dl-av ol { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 6px; }
.page-body .dl-av > p { margin: 0 0 10px; text-indent: 0; }
.dl-av .dl-hash { gap: 4px; }
.page-body .dl-av .dl-hash li { display: block; padding: 6px 10px; overflow-wrap: anywhere; font-size: 13px; }
.dl-av .dl-hash code { font-size: 12px; color: #4a2a0c; }
.dl-req ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.page-body .dl-req li { display: grid; justify-items: start; gap: 8px; padding: 10px 12px; border-radius: 8px; background: #fffaf0; border: 1px solid #e6d4ad; }
.page-body .dl-req li p { margin: 0; min-width: 0; text-indent: 0; }
.page-body .dl-req li .btn { flex: none; width: auto; min-width: 0; white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.page-body .wr-rank td:nth-child(2) { min-width: 0; width: 34%; }
.page-body .myaac-legacy-content .wr-who b, .page-body .myaac-legacy-content .wr-guild a { white-space: nowrap; }
.page-body .myaac-legacy-content .wr-who > * { text-indent: 0; }
.page-body .myaac-legacy-content .wr-rank th { padding: 8px 6px; font-size: 11px !important; letter-spacing: .02em; }
.page-body .wr-rank td { padding: 6px 7px; }

/* lists and paragraphs inside news posts */
.news-section-box .content ul { list-style: disc; margin: 6px 0; padding-left: 22px; display: grid; gap: 4px; }
.news-section-box .content ol { list-style: decimal; margin: 6px 0; padding-left: 22px; }
.news-section-box .content li::marker { color: var(--ember, #c8581d); }
.news-section-box .content p { margin: 0 0 8px; }

/* ---- Hazard System (wiki) ------------------------------------------------- */
.page-body .hz { display: grid; gap: 16px; }
.page-body .myaac-legacy-content .hz, .page-body .myaac-legacy-content .hz * { text-indent: 0 !important; }
.page-body .hz-icon { display: inline-block; width: 16.5px; height: 16.5px; flex: none; vertical-align: -3px; image-rendering: pixelated; }
.page-body .myaac-legacy-content .hz-h {
  margin: 10px 0 0; font-family: "Cinzel", Georgia, serif !important; font-size: 18px !important; color: #6b2a0c;
  display: flex; align-items: center; gap: 10px; text-wrap: balance;
}
.page-body .hz-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #c9ab73, transparent); }
.page-body .myaac-legacy-content .hz-lead { margin: 0; font-size: 16px !important; line-height: 1.6; color: #4a3620; max-width: 62ch; text-indent: 0 !important; }
.page-body .myaac-legacy-content .hz-sub,
.page-body .myaac-legacy-content .hz-note { margin: -6px 0 0; color: #6b5536; max-width: 70ch; text-indent: 0 !important; }
.page-body .myaac-legacy-content .hz-note { margin: 0; font-size: 13px !important; }

/* intro: the in-game name plate, drawn the way the client shows it */
.page-body .hz-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 18px; align-items: start; }
.page-body .hz-plate { margin: 0; display: grid; gap: 10px; }
.page-body .hz-plate-stage {
  position: relative; height: 150px; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(ellipse 34% 12% at 50% 86%, rgba(0, 0, 0, .45), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 32px),
    linear-gradient(160deg, #6b6f6c, #4a4e4c 55%, #3b3f3d);
  border: 1px solid #2a2f33; box-shadow: inset 0 0 30px rgba(0, 0, 0, .35), 0 3px 10px rgba(45, 28, 10, .25);
}
.page-body .hz-plate-stage > * { position: absolute; left: 50%; }
.page-body .myaac-legacy-content .hz-plate-name {
  top: 14px; transform: translateX(-50%); font: 700 13px/1 Verdana, Tahoma, sans-serif !important; color: #00c000;
  text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;
}
.page-body .hz-plate-bar { width: 54px; height: 6px; margin-left: -27px; border: 2px solid #000; box-sizing: border-box; }
.page-body .hz-plate-bar.hp { top: 31px; background: #00c000; }
.page-body .hz-plate-bar.mp { top: 38px; background: #0066ff; }
.page-body .hz-plate-status { top: 47px; margin-left: 17px; display: flex; align-items: center; gap: 3px; }
.page-body .hz-plate-status .hz-icon { width: 22px; height: 22px; }
.page-body .myaac-legacy-content .hz-plate-status b {
  font: 700 15px/1 Verdana, Tahoma, sans-serif !important; color: #fff;
  text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;
}
.page-body .hz-plate-char { bottom: 2px; width: 96px; height: 96px; margin-left: -60px; image-rendering: pixelated; }
.page-body .hz-plate figcaption { display: grid; gap: 2px; font-size: 13px; color: #5a4326; }
.page-body .myaac-legacy-content .hz-plate figcaption strong { font-family: "Cinzel", Georgia, serif !important; font-size: 14px !important; color: #6b2a0c; }

/* how it works: a sequence, so the steps keep their numbers */
.page-body .hz-how { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: start; }
.page-body .hz-steps { margin: 0; padding: 0; list-style: none; counter-reset: hz; display: grid; gap: 10px; }
.page-body .hz-steps li { counter-increment: hz; position: relative; padding: 2px 0 2px 46px; display: grid; gap: 2px; }
.page-body .hz-steps li::before {
  content: counter(hz); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 700 16px/1 "Cinzel", Georgia, serif; color: #fff3dc;
  background: radial-gradient(circle at 35% 30%, #d49a52, #8c5f2a 70%); border: 1px solid #5a3a17;
  box-shadow: 0 2px 4px rgba(45, 28, 10, .3);
}
.page-body .myaac-legacy-content .hz-steps strong { font-family: "Cinzel", Georgia, serif !important; font-size: 15px !important; color: #3d2610; }
.page-body .hz-steps span { color: #5a4326; max-width: 62ch; }
.page-body .hz-npc { margin: 0; padding: 10px; display: grid; justify-items: center; gap: 6px; text-align: center; border-radius: 10px; background: #f8efdc; border: 1px solid #e0cb9f; }
.page-body .hz-npc img { width: 96px; height: 96px; image-rendering: pixelated; }
.page-body .hz-npc figcaption { display: grid; gap: 2px; font-size: 13px; color: #5a4326; }
.page-body .myaac-legacy-content .hz-npc b { font-family: "Cinzel", Georgia, serif !important; color: #6b2a0c; }

/* level table */
.page-body .hz-scroll { overflow-x: auto; border-radius: 8px; border: 1px solid #d8c299; }
.page-body .hz-table { width: 100%; border-collapse: collapse; background: #fbf4e4; font-variant-numeric: tabular-nums; }
.page-body .myaac-legacy-content .hz-table thead th {
  padding: 7px 6px; text-align: center; font-size: 10.5px !important; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2;
  color: #fff3dc; background: linear-gradient(#6b4a1c, #563a14); vertical-align: bottom;
}
.page-body .hz-table td, .page-body .myaac-legacy-content .hz-table tbody th { padding: 6px 6px; border-top: 1px solid #ead9b6; text-align: center; white-space: nowrap; background: transparent; color: #3d2610; font-size: 14px !important; }
.page-body .hz-table tbody tr:nth-child(even) > * { background: #f5ead2; }
.page-body .hz-table tbody tr:hover > * { background: #f3dfb6; }
.page-body .myaac-legacy-content .hz-table .gain { color: #2f5a1f; font-weight: 700; }
.page-body .myaac-legacy-content .hz-table .price { color: #8a3410; font-weight: 700; }
.page-body .myaac-legacy-content .hz-price-note { margin: -8px 0 0; padding: 8px 12px; border-radius: 8px; background: #f7e3d4; border: 1px solid #e3b79c; color: #6b2a0c; font-size: 14px !important; max-width: none; }
.page-body .hz-lvl { display: inline-flex; align-items: center; gap: 4px; font: 700 15px/1 "Cinzel", Georgia, serif; color: #3d2610; }

/* primal pods */
.page-body .hz-pod { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: #f8efdc; border: 1px solid #e0cb9f; }
.page-body .hz-pod img { width: 56px; height: 56px; padding: 6px; box-sizing: border-box; image-rendering: pixelated; border-radius: 8px; background: linear-gradient(160deg, #6b6f6c, #3b3f3d); }
.page-body .myaac-legacy-content .hz-pod strong { font-family: "Cinzel", Georgia, serif !important; font-size: 15px !important; color: #6b2a0c; }
.page-body .myaac-legacy-content .hz-pod p { margin: 2px 0 0; color: #5a4326; max-width: 70ch; text-indent: 0 !important; }

/* roles */
.page-body .hz-roles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.page-body .hz-roles li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.page-body .hz-roles img { width: 64px; height: 64px; image-rendering: pixelated; background: radial-gradient(ellipse 60% 18% at 62% 90%, rgba(60, 40, 15, .22), transparent 70%); }
.page-body .hz-roles div { display: grid; gap: 2px; color: #5a4326; font-size: 14px; }
.page-body .myaac-legacy-content .hz-roles strong { font-family: "Cinzel", Georgia, serif !important; font-size: 15px !important; color: #3d2610; }
.page-body .hz-roles em { font-style: normal; color: #a0360f; }

/* bosses */
.page-body .hz-bosses { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.page-body .hz-boss {
  display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 16px; padding: 14px;
  border-radius: 10px; background: linear-gradient(180deg, #fbf4e4, #f4e6c8); border: 1px solid #dcc597;
  box-shadow: 0 2px 6px rgba(45, 28, 10, .1); scroll-margin-top: 16px;
}
.page-body .hz-boss:target { border-color: #a0360f; box-shadow: 0 0 0 2px rgba(160, 54, 15, .25), 0 2px 6px rgba(45, 28, 10, .1); }
.page-body .hz-boss-art {
  position: relative; height: 124px; border-radius: 10px; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 40% 12% at 55% 84%, rgba(0, 0, 0, .5), transparent 70%),
    radial-gradient(circle at 50% 40%, #5a5f5c, #2c3032 75%);
  border: 1px solid #1c2023; box-shadow: inset 0 0 18px rgba(0, 0, 0, .5);
}
.page-body .hz-boss-art > img { width: 96px; height: 96px; image-rendering: pixelated; margin: -8px 0 0 -8px; }
.page-body .hz-boss-num {
  position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px 2px 5px; border-radius: 999px; background: rgba(14, 16, 18, .82); border: 1px solid #5a3a17;
  font: 700 13px/1.2 Verdana, Tahoma, sans-serif; color: #fff;
}
.page-body .hz-boss-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.page-body .myaac-legacy-content .hz-boss h4 { margin: 0; font-family: "Cinzel", Georgia, serif !important; font-size: 20px !important; line-height: 1.15; color: #3d2610; text-wrap: balance; }
.page-body .hz-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.page-body .myaac-legacy-content .hz-chips li { padding: 2px 9px; border-radius: 999px; font-size: 12px !important; font-weight: 700; color: #5a4326; background: #ece0c5; border: 1px solid #d8c299; }
.page-body .myaac-legacy-content .hz-chips li:first-child { color: #1e4d16; background: #dcefcf; border-color: #94c47a; }
.page-body .hz-mech { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-width: 70ch; }
.page-body .hz-mech li { position: relative; padding-left: 16px; color: #4a3620; }
.page-body .hz-mech li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; transform: rotate(45deg); background: #b0561a; }
.page-body .hz-helpers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 8px; border-top: 1px dashed #d8c299; }
.page-body .myaac-legacy-content .hz-helpers > span { font-size: 11px !important; letter-spacing: .06em; text-transform: uppercase; color: #8a6a3c; }
.page-body .hz-helpers figure { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.page-body .hz-helpers img { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.page-body .myaac-legacy-content .hz-helpers figcaption { font-size: 13px !important; font-weight: 700; color: #5a4326; }

/* rules */
.page-body .hz-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-width: 74ch; }
.page-body .hz-rules li { position: relative; padding-left: 26px; color: #4a3620; }
.page-body .hz-rules li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 12px; height: 12px; border-radius: 3px; background: #c08a43; box-shadow: inset 0 -2px 0 #8c5f2a; }

@media (max-width: 720px) {
  .page-body .hz-intro, .page-body .hz-how { grid-template-columns: minmax(0, 1fr); }
  .page-body .hz-npc { grid-template-columns: 96px minmax(0, 1fr); text-align: left; justify-items: start; align-items: center; }
  .page-body .hz-roles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .page-body .hz-boss { grid-template-columns: minmax(0, 1fr); }
  .page-body .hz-boss-art { height: 110px; }
}

/* ---- War Anti-Entrosa guide (wiki) ----------------------------------------- */
/* Reuses the Hazard page blocks (.hz-*); only the pieces below are new. */
.page-body .ae-versus { margin: 0; display: grid; gap: 10px; }
.page-body .ae-versus-stage {
  position: relative; height: 150px; border-radius: 10px; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; justify-items: center; padding: 0 10px 4px;
  background:
    radial-gradient(ellipse 22% 10% at 27% 88%, rgba(0, 0, 0, .45), transparent 70%),
    radial-gradient(ellipse 22% 10% at 73% 88%, rgba(0, 0, 0, .45), transparent 70%),
    linear-gradient(90deg, rgba(150, 30, 20, .28), transparent 42%, transparent 58%, rgba(30, 60, 150, .28)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 32px),
    linear-gradient(160deg, #6b6f6c, #4a4e4c 55%, #3b3f3d);
  border: 1px solid #2a2f33; box-shadow: inset 0 0 30px rgba(0, 0, 0, .35), 0 3px 10px rgba(45, 28, 10, .25);
}
.page-body .ae-fighter { width: 128px; height: 128px; image-rendering: pixelated; margin-bottom: -6px; }
.page-body .ae-fighter.a { margin-right: -30px; margin-left: -20px; }
.page-body .ae-fighter.b { margin-left: -30px; margin-right: -20px; }
.page-body .myaac-legacy-content .ae-vs {
  align-self: center; font: 700 22px/1 "Cinzel", Georgia, serif !important; color: #ffe6b0;
  text-shadow: 0 0 6px rgba(255, 170, 60, .7), 1px 1px 0 #3a1a06;
}
.page-body .myaac-legacy-content .ae-side {
  position: absolute; top: 10px; font: 700 11px/1 Verdana, Tahoma, sans-serif !important; letter-spacing: .04em; text-transform: uppercase;
  text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;
}
.page-body .ae-side.a { left: 12px; color: #ff8a70; }
.page-body .ae-side.b { right: 12px; color: #8ab4ff; }
.page-body .myaac-legacy-content .ae-score {
  position: absolute; top: 30px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px;
  font: 700 14px/1.3 Verdana, Tahoma, sans-serif !important; color: #fff; background: rgba(14, 16, 18, .82); border: 1px solid #5a3a17;
}
.page-body .ae-score i { font-style: normal; color: #c9ab73; padding: 0 2px; }
.page-body .ae-versus figcaption { display: grid; gap: 2px; font-size: 13px; color: #5a4326; }
.page-body .myaac-legacy-content .ae-versus figcaption strong { font-family: "Cinzel", Georgia, serif !important; font-size: 14px !important; color: #6b2a0c; }

/* the challenge form, as a definition list */
.page-body .ae-form { margin: 0; display: grid; border-radius: 8px; border: 1px solid #d8c299; overflow: hidden; background: #fbf4e4; }
.page-body .ae-form > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.page-body .ae-form > div + div { border-top: 1px solid #ead9b6; }
.page-body .ae-form > div:nth-child(even) { background: #f5ead2; }
.page-body .myaac-legacy-content .ae-form dt {
  padding: 8px 12px; font-family: "Cinzel", Georgia, serif !important; font-size: 14px !important; font-weight: 700; color: #fff3dc;
  background: linear-gradient(#6b4a1c, #563a14);
}
.page-body .ae-form dd { margin: 0; padding: 8px 12px; color: #4a3620; max-width: 72ch; }

/* optional rules */
.page-body .ae-rules { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.page-body .ae-rules li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px;
  border-radius: 10px; background: linear-gradient(180deg, #fbf4e4, #f4e6c8); border: 1px solid #dcc597;
}
.page-body .ae-rule-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px;
  background: radial-gradient(circle at 50% 40%, #5a5f5c, #2c3032 75%); border: 1px solid #1c2023;
}
.page-body .ae-rule-icon img { width: 32px; height: 32px; image-rendering: pixelated; }
.page-body .ae-rules div { display: grid; gap: 2px; color: #5a4326; font-size: 14px; }
.page-body .myaac-legacy-content .ae-rules strong { font-family: "Cinzel", Georgia, serif !important; font-size: 15px !important; color: #3d2610; }

/* arena death */
.page-body .ae-death { display: grid; gap: 6px; padding: 12px 14px; border-radius: 10px; background: #f8efdc; border: 1px solid #e0cb9f; border-left: 4px solid #a0360f; }
.page-body .ae-death-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.page-body .myaac-legacy-content .ae-death strong { font-family: "Cinzel", Georgia, serif !important; font-size: 16px !important; color: #6b2a0c; }
.page-body .myaac-legacy-content .ae-death .hz-chips li:first-child { color: #5a4326; background: #ece0c5; border-color: #d8c299; }
.page-body .myaac-legacy-content .ae-death .hz-chips li:last-child { color: #8a3410; background: #f7e3d4; border-color: #e3b79c; }
.page-body .myaac-legacy-content .ae-death p { margin: 0; color: #5a4326; max-width: 74ch; text-indent: 0 !important; }

/* war kit */
.page-body .ae-kit { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.page-body .ae-kit > li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px;
  border-radius: 10px; background: linear-gradient(180deg, #fbf4e4, #f4e6c8); border: 1px solid #dcc597;
}
.page-body .ae-kit-who { margin: 0; display: grid; justify-items: center; gap: 2px; }
.page-body .ae-kit-who img { width: 88px; height: 88px; margin: -18px -12px -6px -16px; image-rendering: pixelated; }
.page-body .myaac-legacy-content .ae-kit-who figcaption { font-family: "Cinzel", Georgia, serif !important; font-size: 14px !important; font-weight: 700; color: #3d2610; }
.page-body .ae-kit-items { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.page-body .ae-kit-items li {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px;
  background: linear-gradient(160deg, #5d625f, #3b3f3d); border: 1px solid #22272a; box-shadow: inset 0 0 6px rgba(0, 0, 0, .45);
}
.page-body .ae-kit-items img { width: 32px; height: 32px; image-rendering: pixelated; }
.page-body .myaac-legacy-content .ae-kit-items b {
  position: absolute; right: 2px; bottom: 0; font: 700 10px/1 Verdana, Tahoma, sans-serif !important; color: #fff;
  text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;
}
.page-body .ae-kit-body { display: grid; gap: 4px; min-width: 0; }
.page-body .myaac-legacy-content .ae-kit-label { margin: 2px 0 0; font: 700 11px/1.2 Verdana, Tahoma, sans-serif !important; letter-spacing: .06em; text-transform: uppercase; color: #7a5a2e; text-indent: 0 !important; }
.page-body .ae-kit-items li.ae-kit-or { width: auto; padding: 0 4px; display: flex; align-items: center; gap: 2px; }
.page-body .myaac-legacy-content .ae-kit-or i { font: 700 12px/1 Verdana, sans-serif !important; color: #e8d7a8; font-style: normal; }
.page-body .ae-kit-items li.ae-kit-bp { background: linear-gradient(160deg, #8a6a3a, #5e4422); border-color: #3d2a12; }
.page-body .ae-kit-bags { display: grid; gap: 4px; }
.page-body .ae-kit-bag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.page-body .myaac-legacy-content .ae-kit-bag small { font: 11px/1.3 Verdana, Tahoma, sans-serif !important; color: #7a5a2e; font-style: italic; }
.page-body .myaac-legacy-content .ae-cities li:first-child { color: #5a4326; background: #ece0c5; border-color: #d8c299; }

@media (max-width: 720px) {
  .page-body .ae-rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .page-body .ae-form > div { grid-template-columns: minmax(0, 1fr); }
  .page-body .ae-kit > li { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .page-body .ae-kit-who { grid-template-columns: 64px auto; align-items: center; }
}

/* ---- Tier and Forge (wiki) -------------------------------------------------- */
/* Reuses the Hazard (.hz-*) and Anti-Entrosa (.ae-*) blocks; only the pieces below are new. */
.page-body .tf-show { margin: 0; display: grid; gap: 10px; }
.page-body .tf-show-stage {
  position: relative; height: 150px; border-radius: 10px; overflow: hidden;
  display: grid; justify-items: center; align-content: center; gap: 10px; padding: 8px 10px 0;
  background:
    radial-gradient(ellipse 30% 22% at 50% 38%, rgba(255, 170, 60, .18), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 32px),
    linear-gradient(160deg, #6b6f6c, #4a4e4c 55%, #3b3f3d);
  border: 1px solid #2a2f33; box-shadow: inset 0 0 30px rgba(0, 0, 0, .35), 0 3px 10px rgba(45, 28, 10, .25);
}
.page-body .tf-slot {
  position: relative; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 6px;
  background: linear-gradient(160deg, #5d625f, #3b3f3d); border: 1px solid #22272a; box-shadow: inset 0 0 8px rgba(0, 0, 0, .5);
}
.page-body .tf-slot img { width: 64px; height: 64px; image-rendering: pixelated; }
/* the client's tier badge: an orange square with the number, top right */
.page-body .myaac-legacy-content .tf-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 4px; box-sizing: border-box;
  display: grid; place-items: center; border-radius: 4px; background: linear-gradient(#f39a2e, #d06b10); border: 1px solid #5a2a06;
  font: 700 13px/1 Verdana, Tahoma, sans-serif !important; color: #fff; text-shadow: 1px 1px 0 #5a2a06;
}
.page-body .myaac-legacy-content .tf-look { margin: 0; display: grid; gap: 2px; text-align: center; text-indent: 0 !important; }
.page-body .myaac-legacy-content .tf-look span {
  font: 700 11px/1.3 Verdana, Tahoma, sans-serif !important; color: #00e000 !important;
  text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;
}
.page-body .tf-show figcaption { display: grid; gap: 2px; font-size: 13px; color: #5a4326; }
.page-body .myaac-legacy-content .tf-show figcaption strong { font-family: "Cinzel", Georgia, serif !important; font-size: 14px !important; color: #6b2a0c; }

/* item tiles (materials, conversions) */
.page-body .tf-tile {
  position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 6px;
  background: linear-gradient(160deg, #5d625f, #3b3f3d); border: 1px solid #22272a; box-shadow: inset 0 0 6px rgba(0, 0, 0, .45);
}
.page-body .tf-tile img { width: 32px; height: 32px; image-rendering: pixelated; }
.page-body .myaac-legacy-content .tf-tile b {
  position: absolute; right: 2px; bottom: 0; font: 700 10px/1 Verdana, Tahoma, sans-serif !important; color: #fff;
  text-shadow: 1px 0 0 #000, -1px 0 0 #000, 0 1px 0 #000, 0 -1px 0 #000;
}
.page-body .tf-forge .tf-mats { display: flex; gap: 4px; padding: 6px 0 2px; }
.page-body .hz-npc.tf-forge .tf-tile img { width: 32px; height: 32px; }

/* bonus cards: the item kind and its bonus */
.page-body .tf-slots em { font-style: normal; color: #a0360f; }
.page-body .tf-tier { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 4px; box-sizing: border-box; border-radius: 4px; background: linear-gradient(#f39a2e, #d06b10); border: 1px solid #5a2a06; font: 700 13px/1 Verdana, Tahoma, sans-serif; color: #fff; text-shadow: 1px 1px 0 #5a2a06; }
.page-body .tf-step { display: inline-flex; align-items: center; gap: 4px; font: 700 14px/1 "Cinzel", Georgia, serif; color: #3d2610; }
.page-body .tf-step i { font-style: normal; color: #a0360f; }
.page-body .myaac-legacy-content .hz-table .tf-none { color: #b8a27a; }
.page-body .tf-examples { display: inline-flex; gap: 4px; vertical-align: middle; }
.page-body .tf-examples img { width: 32px; height: 32px; image-rendering: pixelated; }
.page-body .myaac-legacy-content .tf-classes td:last-child { text-align: left; }
.page-body .tf-row-head { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #3d2610; }
.page-body .myaac-legacy-content .tf-transfer tbody th { text-align: left; }

/* rings and amulets: no tier */
.page-body .tf-rings { grid-template-columns: auto minmax(0, 1fr); }
.page-body .tf-ring-pair { display: flex; gap: 4px; padding: 6px; border-radius: 8px; background: linear-gradient(160deg, #6b6f6c, #3b3f3d); }
.page-body .tf-ring-pair img { width: 32px; height: 32px; padding: 0; image-rendering: pixelated; background: none; border-radius: 0; opacity: .75; filter: grayscale(.6); }
.page-body .myaac-legacy-content .tf-rings p { margin: 0; }
.page-body .myaac-legacy-content .tf-pvp .hz-chips li:last-child { color: #1e4d16; background: #dcefcf; border-color: #94c47a; }

/* conversions: from -> to */
.page-body .tf-convert { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.page-body .tf-convert li {
  display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 10px;
  background: linear-gradient(180deg, #fbf4e4, #f4e6c8); border: 1px solid #dcc597; color: #5a4326; font-size: 14px;
}
.page-body .tf-chain { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; }
.page-body .tf-chain i { font-style: normal; font-weight: 700; color: #a0360f; }
.page-body .myaac-legacy-content .tf-convert strong { font-family: "Cinzel", Georgia, serif !important; font-size: 15px !important; color: #3d2610; }
.page-body .tf-sources li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.page-body .myaac-legacy-content .tf-link { margin: -6px 0 0; text-indent: 0 !important; }
.page-body .myaac-legacy-content .tf-link a { font-weight: 700; color: #a0360f; }

@media (max-width: 720px) {
  .page-body .tf-convert { grid-template-columns: minmax(0, 1fr); }
  .page-body .hz-npc.tf-forge { grid-template-columns: auto minmax(0, 1fr); }
}

/* ---- Custom Items (wiki) ---- */
.page-body .ci-group { display: grid; gap: 16px; scroll-margin-top: 16px; }
.page-body .myaac-legacy-content .ci-nav a { color: inherit; text-decoration: none; }
.page-body .myaac-legacy-content .ci-table tbody th { text-align: left; }
.page-body .myaac-legacy-content .ci-table td.ci-cell { text-align: left; }
.page-body .ci-item { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.page-body .myaac-legacy-content .ci-name { font-size: 13px !important; font-weight: 700; line-height: 1.2; color: #3d2610; white-space: normal; max-width: 6.5em; }
.page-body .ci-el { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 "Cinzel", Georgia, serif; color: #3d2610; }
.page-body .ci-el::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--ci-el, #8a7a63); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.page-body .ci-el[data-el="ice"] { --ci-el: #4a9fd8; }
.page-body .ci-el[data-el="energy"] { --ci-el: #9a5bd6; }
.page-body .ci-el[data-el="fire"] { --ci-el: #e0531f; }
.page-body .ci-el[data-el="holy"] { --ci-el: #e3b42e; }
.page-body .ci-el[data-el="death"] { --ci-el: #5a3b6b; }
.page-body .ci-el[data-el="earth"] { --ci-el: #4f8f2f; }
/* Long stat lists (VIP gear bonuses, protections) wrap instead of widening the table. */
.page-body .myaac-legacy-content .ci-table td.ci-list { white-space: normal; min-width: 10em; text-align: left; line-height: 1.35; }
/* "How to get" (quest gear): a short link that may wrap, so the table keeps its width. */
.page-body .myaac-legacy-content .ci-table td.ci-how { white-space: normal; min-width: 0; text-align: left; line-height: 1.35; }
.page-body .myaac-legacy-content .ci-table td.ci-how a { font-weight: 700; color: #a0360f; }

@media (max-width: 720px) {
  .page-body .myaac-legacy-content .ci-name { max-width: 5.5em; font-size: 12px !important; }
}

/* Custom Items page only (.ci-page): summary, sticky two-level navigation with the
   vocation filter, VIP / quest parts, stat lists, and tables that turn into cards
   when the page column is narrow. Custom Quests and Loot Pouch share .ci-nav and
   .ci-group, so everything here stays under .ci-page. */
/* The sheet scrolls sideways for wide legacy tables; "clip" keeps that guard without
   making it a scroll container, so the navigation can stick to the window. */
.page-body .myaac-legacy-content:has(> .ci-page) { overflow-x: clip; }
.page-body .ci-page { container: ci / inline-size; gap: 18px; }
.page-body .ci-page [hidden] { display: none !important; }
.page-body .ci-page [data-el="ice"] { --ci-el: #4a9fd8; }
.page-body .ci-page [data-el="energy"] { --ci-el: #9a5bd6; }
.page-body .ci-page [data-el="fire"] { --ci-el: #e0531f; }
.page-body .ci-page [data-el="holy"] { --ci-el: #e3b42e; }
.page-body .ci-page [data-el="death"] { --ci-el: #5a3b6b; }
.page-body .ci-page [data-el="earth"] { --ci-el: #4f8f2f; }
.page-body .ci-page [data-el="manadrain"] { --ci-el: #2f4f9a; }
.page-body .ci-page [data-el="lifedrain"] { --ci-el: #8e1f2a; }
.page-body .myaac-legacy-content .ci-page a:focus-visible,
.page-body .ci-page button:focus-visible { outline: 2px solid #a0360f; outline-offset: 2px; border-radius: 4px; }

/* summary: the two parts with their counts, then the related pages */
.page-body .ci-glance {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden;
  border: 1px solid #d8c299; border-radius: 10px; background: linear-gradient(180deg, #fbf4e4, #f4e6c8);
}
.page-body .myaac-legacy-content a.ci-glance-part { display: grid; gap: 5px; align-content: start; padding: 12px 16px 14px; text-decoration: none; font-weight: 400; color: #4a3620 !important; transition: background-color .2s ease-out; }
.page-body .ci-glance-part + .ci-glance-part { border-left: 1px solid #d8c299; }
.page-body .myaac-legacy-content a.ci-glance-part:hover { background: #f3dfb6; color: #4a3620 !important; text-decoration: none; }
.page-body .myaac-legacy-content .ci-glance-part strong { font: 700 17px/1.2 "Cinzel", Georgia, serif !important; color: #6b2a0c; }
.page-body .myaac-legacy-content .ci-glance-count { font-size: 14px !important; font-variant-numeric: tabular-nums; }
.page-body .myaac-legacy-content .ci-tag {
  justify-self: start; align-self: center; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 12px !important; font-weight: 700; line-height: 1.4; color: #5a4326; background: #ece0c5; border: 1px solid #d8c299;
}
.page-body .myaac-legacy-content .ci-glance-part--vip .ci-tag { color: #5e4108; background: #f6e2a8; border-color: #d3a94a; }
.page-body .myaac-legacy-content .ci-glance-part--quests .ci-tag { color: #8a3410; background: #f7e3d4; border-color: #e3b79c; }
.page-body .myaac-legacy-content .ci-related { margin: -6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 14px !important; }
.page-body .myaac-legacy-content .ci-related span { font-size: 11px !important; letter-spacing: .06em; text-transform: uppercase; color: #8a6a3c; }
.page-body .myaac-legacy-content .ci-related a { color: #a0360f !important; }

/* navigation bar: part > family links, then the vocation filter */
.page-body .ci-bar {
  z-index: 5; display: grid; gap: 8px; padding: 10px 12px;
  border: 1px solid #d3b98a; border-radius: 10px; background: #efe1c1;
  box-shadow: 0 6px 14px -10px rgba(45, 28, 10, .55);
}
.page-body .ci-toc ul { margin: 0; padding: 0; list-style: none; }
.page-body .ci-toc > ul { display: grid; gap: 4px; }
.page-body .ci-toc-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); align-items: baseline; gap: 8px; }
.page-body .ci-toc-row > ul { display: flex; flex-wrap: wrap; gap: 2px; }
.page-body .myaac-legacy-content a.ci-toc-part,
.page-body .myaac-legacy-content .ci-filter-label { font: 700 12px/1.9 "Cinzel", Georgia, serif !important; letter-spacing: .06em; text-transform: uppercase; color: #6b2a0c !important; }
.page-body .myaac-legacy-content a.ci-toc-part:hover { color: #a0360f !important; }
.page-body .myaac-legacy-content a.ci-toc-part[aria-current] { color: #a0360f !important; text-decoration: underline; text-underline-offset: 4px; }
.page-body .myaac-legacy-content .ci-toc-row > ul a {
  display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 14px !important; font-weight: 700; line-height: 1.35;
  color: #5a4326 !important; transition: background-color .15s ease-out, color .15s ease-out;
}
.page-body .myaac-legacy-content .ci-toc-row > ul a:hover { color: #a0360f !important; background: #f8efdc; text-decoration: none; }
.page-body .myaac-legacy-content .ci-toc-row > ul a[aria-current] { color: #fff3dc !important; background: linear-gradient(#6b4a1c, #563a14); }
.page-body .ci-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; border-top: 1px dashed #d3b98a; }
.page-body .ci-seg { display: inline-flex; overflow: hidden; border: 1px solid #b99a63; border-radius: 8px; background: #fbf4e4; }
.page-body .ci-seg button {
  appearance: none; margin: 0; min-height: 32px; padding: 4px 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-left: 1px solid #d8c299; background: transparent; cursor: pointer;
  font: 700 13px/1.2 var(--body); color: #5a4326; transition: background-color .15s ease-out, color .15s ease-out;
}
.page-body .ci-seg button:first-child { border-left: 0; }
.page-body .ci-seg button:hover { background: #f3dfb6; }
.page-body .ci-seg button[aria-pressed="true"] { color: #fff7e6; background: linear-gradient(#b5521b, #8a3410); }
.page-body .ci-seg button[aria-pressed="true"] .ci-mono { background: rgba(40, 14, 4, .35); }
.page-body .ci-seg button:focus-visible { outline-offset: -3px; }
.page-body .myaac-legacy-content .ci-filter-status { margin-left: auto; font-size: 13px !important; color: #6b5536; font-variant-numeric: tabular-nums; }

/* vocation monogram (rows and filter buttons); element rows keep the colored dot */
.page-body .myaac-legacy-content .ci-mono {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; box-sizing: border-box; border-radius: 4px;
  font: 700 10px/1 "Cinzel", Georgia, serif !important; letter-spacing: .02em; color: #fbe2a6; background: linear-gradient(#6b4a1c, #563a14);
}
.page-body .ci-page .ci-el--voc::before { display: none; }

/* parts: a bronze band over each half of the page */
.page-body .ci-part { display: grid; gap: 16px; scroll-margin-top: 16px; }
.page-body .ci-part + .ci-part { margin-top: 22px; }
.page-body .ci-part-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 14px;
  border: 1px solid #3d2610; border-radius: 8px; background: linear-gradient(#6b4a1c, #563a14);
  box-shadow: inset 0 1px 0 rgba(255, 230, 180, .18), 0 2px 6px rgba(45, 28, 10, .18);
}
.page-body .myaac-legacy-content .ci-part-head h2 {
  margin: 0; font: 700 19px/1.15 "Cinzel", Georgia, serif !important; letter-spacing: .06em; text-transform: uppercase;
  color: #fbe2a6; text-shadow: 0 1px 0 #2a1a08; text-wrap: balance;
}
.page-body .myaac-legacy-content .ci-part-head .ci-tag { color: #fbe2a6; background: rgba(251, 226, 166, .12); border-color: rgba(251, 226, 166, .45); }
.page-body .myaac-legacy-content .ci-part--quests .ci-part-head .ci-tag { color: #ffd59a; background: rgba(240, 122, 36, .2); border-color: rgba(255, 177, 61, .55); }
.page-body .myaac-legacy-content .ci-part-intro { margin: -4px 0 0; color: #4a3620; max-width: 70ch; }
.page-body .ci-page .ci-part > .ci-group + .ci-group { margin-top: 14px; }
.page-body .myaac-legacy-content .ci-page .hz-h .ci-count {
  padding: 3px 8px; border-radius: 999px; white-space: nowrap; font: 700 11px/1 var(--body) !important; letter-spacing: .03em;
  color: #6b5536; background: #ece0c5; border: 1px solid #d8c299; font-variant-numeric: tabular-nums;
}

/* tables: several item columns stack the name under the tile; stats one per line */
.page-body .myaac-legacy-content .ci-table--multi td.ci-cell { text-align: center; }
.page-body .ci-table--multi .ci-item { flex-direction: column; gap: 4px; }
.page-body .myaac-legacy-content .ci-table--multi .ci-name { max-width: 7.5em; text-align: center; }
.page-body .ci-stats { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; }
.page-body .ci-stats li[data-el] { display: flex; align-items: center; gap: 6px; }
.page-body .ci-stats li[data-el]::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ci-el, #8a7a63); }
.page-body .ci-extra { display: grid; gap: 12px; padding-top: 4px; }
.page-body .myaac-legacy-content .ci-h4 { margin: 0; font-family: "Cinzel", Georgia, serif !important; font-size: 15px !important; color: #3d2610; text-wrap: balance; }

/* footer of a family: Store note (VIP) or quest status, plus the forge link */
.page-body .ci-foot { display: grid; gap: 6px; padding: 10px 14px; border-radius: 8px; background: #f7e3d4; border: 1px solid #e3b79c; }
.page-body .myaac-legacy-content .ci-foot p { margin: 0; max-width: 78ch; color: #6b2a0c; font-size: 14px !important; }
.page-body .myaac-legacy-content .ci-foot-link a { color: #a0360f !important; }
.page-body .ci-part--quests .ci-foot { background: #f6ecd0; border: 1px dashed #c9a34f; }
.page-body .myaac-legacy-content .ci-part--quests .ci-foot p { color: #5a4326; }

/* extras part (backpacks, Roleta items): olive tag, dense icon grids, cards */
.page-body .myaac-legacy-content .ci-glance-part--extras .ci-tag { color: #3f4a16; background: #e6ead0; border-color: #aab56e; }
.page-body .myaac-legacy-content .ci-part--extras .ci-part-head .ci-tag { color: #e4ecb8; background: rgba(170, 181, 110, .18); border-color: rgba(214, 224, 150, .5); }
/* Hunting Task Shop part (ammo slot trophies): teal tag */
.page-body .myaac-legacy-content .ci-glance-part--task .ci-tag { color: #12454a; background: #d4ebe8; border-color: #7fb3ad; }
.page-body .myaac-legacy-content .ci-part--task .ci-part-head .ci-tag { color: #c4f0ea; background: rgba(127, 179, 173, .18); border-color: rgba(170, 220, 212, .5); }
@media (max-width: 720px) {
  .page-body .ci-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-body .ci-glance-part:nth-child(3) { border-left: 0; }
  .page-body .ci-glance-part:nth-child(n+3) { border-top: 1px solid #d8c299; }
}
.page-body .ci-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.page-body .ci-grid li {
  display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 6px 4px 7px; text-align: center;
  border-radius: 8px; background: linear-gradient(180deg, #fbf4e4, #f4e6c8); border: 1px solid #dcc597;
}
.page-body .ci-gridblock--roleta .ci-grid li { background: linear-gradient(180deg, #fbf1d6, #f2dea6); border-color: #d3a94a; }
.page-body .ci-grid li.is-rare { border-color: #c27a1e; box-shadow: inset 0 0 0 1px #ecc06a; }
.page-body .myaac-legacy-content .ci-grid li.is-rare .tf-tile b { right: 3px; bottom: 2px; font-size: 12px !important; color: #ffd45e; }
.page-body .myaac-legacy-content .ci-grid-name { max-width: 100%; font-size: 12px !important; font-weight: 700; line-height: 1.2; color: #3d2610; hyphens: auto; }
.page-body .myaac-legacy-content .ci-page .ci-h4 .ci-count {
  margin-left: 4px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; vertical-align: 2px; font: 700 11px/1 var(--body) !important; letter-spacing: .03em;
  color: #6b5536; background: #ece0c5; border: 1px solid #d8c299; font-variant-numeric: tabular-nums;
}
.page-body .ci-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-body .ci-page .ci-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@container ci (max-width: 540px) {
  .page-body .ci-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; }
  .page-body .ci-grid li { padding: 5px 3px 6px; }
  .page-body .myaac-legacy-content .ci-grid-name { font-size: 11.5px !important; }
}

/* wide, tall windows: the navigation stays in view while reading */
@media (min-width: 861px) and (min-height: 680px) {
  /* the paper-colored band above hides the rows scrolling past the 8px gap */
  .page-body .ci-page .ci-bar { position: sticky; top: 8px; box-shadow: 0 -9px 0 0 var(--page-paper, #e6d8ba), 0 6px 14px -10px rgba(45, 28, 10, .55); }
  .page-body .ci-page .ci-part, .page-body .ci-page .ci-group { scroll-margin-top: calc(var(--ci-bar-h, 128px) + 24px); }
}

/* narrow page column (phones, small tablets): rows become cards, labels from the header */
@container ci (max-width: 540px) {
  .page-body .ci-glance { grid-template-columns: minmax(0, 1fr); }
  .page-body .ci-glance-part + .ci-glance-part { border-left: 0; border-top: 1px solid #d8c299; }
  .page-body .ci-toc-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page-body .ci-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
  .page-body .ci-seg button { padding: 4px 2px; font-size: 12.5px; }
  .page-body .ci-seg .ci-mono { display: none; }
  .page-body .myaac-legacy-content .ci-filter-status { margin-left: 0; }

  .page-body .ci-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .page-body .ci-table, .page-body .ci-table tbody { display: block; }
  .page-body .ci-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-top: 1px solid #ead9b6; }
  .page-body .ci-table tbody tr:first-child { border-top: 0; }
  .page-body .ci-table tbody tr:nth-child(even) { background: #f5ead2; }
  .page-body .myaac-legacy-content .ci-table tbody tr > * { padding: 0; border-top: 0; background: transparent; }
  .page-body .myaac-legacy-content .ci-table tbody th { flex: 0 0 auto; min-width: 6.5em; }
  .page-body .myaac-legacy-content .ci-table--multi tbody th { flex-basis: 100%; }
  .page-body .ci-table--multi tbody tr { align-items: flex-start; }
  .page-body .ci-table td.ci-cell { flex: 0 1 auto; }
  .page-body .myaac-legacy-content .ci-table--multi .ci-name { max-width: 6.5em; }
  .page-body .myaac-legacy-content .ci-table:not(.ci-table--multi) .ci-name { max-width: none; }
  .page-body .myaac-legacy-content .ci-table tbody td:not(.ci-cell) {
    flex: 1 1 100%; display: grid; grid-template-columns: minmax(6em, 38%) minmax(0, 1fr); gap: 10px; align-items: baseline;
    min-width: 0; text-align: left; white-space: normal;
  }
  .page-body .ci-table tbody td:not(.ci-cell)::before {
    content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a6a3c;
  }
  .page-body .myaac-legacy-content .ci-table tbody td:not(.ci-cell) + td:not(.ci-cell) { padding-top: 6px; border-top: 1px dashed #e3d1aa; }
}

/* ---- Loot and Seller Pouch (wiki) ---- */
/* Reuses the Hazard, Anti-Entrosa, Tier and Forge and Custom Items blocks; only the pieces below are new. */
.page-body .lp-chain { gap: 4px; padding: 0; }
.page-body .lp-chain .tf-slot { width: 64px; height: 64px; }
.page-body .myaac-legacy-content .lp-chain i { font-size: 18px !important; color: #f0c36a; text-shadow: 0 1px 0 #000; }
.page-body .myaac-legacy-content .lp-h { margin: 4px 0 -6px; font-family: "Cinzel", Georgia, serif !important; font-size: 15px !important; color: #3d2610; }
.page-body .lp-item .tf-slot img { width: 64px; height: 64px; }

/* ---- Rush WAR (wiki) ---------------------------------------------------------- */
/* Reuses the Hazard (.hz-*), Anti-Entrosa (.ae-*), Tier/Forge (.tf-*) and Loot Pouch (.lp-*) blocks. */
.page-body .rw-intro { display: grid; gap: 12px; align-content: start; }
.page-body .rw-rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-body .rw-rewards > li { gap: 8px; border-top: 3px solid #b8a27a; }
.page-body .rw-rewards > li.rw-winner { border-top-color: #c08a43; }
.page-body .rw-prizes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.page-body .tf-convert .rw-prizes li { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; font-weight: 700; color: #3d2610; }
.page-body .myaac-legacy-content .rw-note { margin: 0; font-size: 13px !important; color: #6b5536; text-indent: 0 !important; }
.page-body .rw-map { margin: 0; display: grid; gap: 6px; }
.page-body .rw-map a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #2a2f33; box-shadow: 0 3px 10px rgba(45, 28, 10, .25); cursor: zoom-in; }
.page-body .rw-map a img { display: block; width: 100%; height: auto; }
.page-body .rw-map figcaption { font-size: 13px; color: #6b5536; }
.page-body .rw-map-empty {
  min-height: 220px; border-radius: 10px; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 20px; text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 32px),
    linear-gradient(160deg, #6b6f6c, #4a4e4c 55%, #3b3f3d);
  border: 1px solid #2a2f33; box-shadow: inset 0 0 30px rgba(0, 0, 0, .35), 0 3px 10px rgba(45, 28, 10, .25);
  outline: 1px dashed rgba(255, 230, 176, .35); outline-offset: -10px;
}
.page-body .myaac-legacy-content .rw-map-empty strong { font-family: "Cinzel", Georgia, serif !important; font-size: 18px !important; color: #ffe6b0; text-shadow: 1px 1px 0 #3a1a06; }
.page-body .rw-map-empty span { font-size: 13px; color: #e2d3b2; }

@media (max-width: 720px) {
  .page-body .rw-rewards { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Roleta (wiki) ------------------------------------------------------------ */
/* Reuses the Hazard (.hz-*), Anti-Entrosa (.ae-*), Tier/Forge (.tf-*), Loot Pouch (.lp-*) and Rush WAR (.rw-*) blocks. */
.page-body .rl-stage { gap: 10px; }
/* Hero reel: 18 prize tiles twice in a row (the copy makes the loop seamless).
   The track moves right by 18 tiles per loop, stopping twice (9 tiles each:
   the 5th and the 14th item land in the frame), like the in-game middle tile.
   Its own clipped box: no page scroll at any width, fixed height, no shift. */
.page-body .rl-reel {
  --rl-tile: 44px; --rl-gap: 6px; --rl-pitch: calc(var(--rl-tile) + var(--rl-gap));
  position: relative; justify-self: center; width: 100%; max-width: 340px; height: 86px;
}
.page-body .rl-window {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.page-body .rl-window::before {
  content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 52px;
  background: rgba(0, 0, 0, .22); border-block: 1px solid rgba(255, 255, 255, .07);
}
.page-body .rl-track {
  position: absolute; top: 22px; left: calc(50% - var(--rl-tile) / 2 - var(--rl-pitch) * 4);
  display: flex; gap: var(--rl-gap); animation: rl-spin 7.6s infinite; will-change: transform;
}
.page-body .rl-track .tf-tile { width: var(--rl-tile); height: var(--rl-tile); box-sizing: border-box; }
.page-body .rl-frame {
  position: absolute; top: 18px; left: 50%; width: calc(var(--rl-tile) + 8px); height: calc(var(--rl-tile) + 8px);
  transform: translateX(-50%); box-sizing: border-box; border-radius: 8px; border: 2px solid #c08a43; pointer-events: none;
  box-shadow: 0 0 14px rgba(255, 170, 60, .45), inset 0 0 10px rgba(255, 170, 60, .2);
  animation: rl-glow 7.6s infinite;
}
.page-body .rl-frame::before,
.page-body .rl-frame::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 7px solid transparent;
}
.page-body .rl-frame::before { top: -16px; border-top-color: #f0c36a; }
.page-body .rl-frame::after { bottom: -16px; border-bottom-color: #f0c36a; }
@keyframes rl-spin {
  0% { transform: translateX(calc(var(--rl-pitch) * -18)); animation-timing-function: cubic-bezier(.2, .65, .3, 1); }
  34% { transform: translateX(calc(var(--rl-pitch) * -9)); }
  50% { transform: translateX(calc(var(--rl-pitch) * -9)); animation-timing-function: cubic-bezier(.2, .65, .3, 1); }
  84%, 100% { transform: translateX(0); }
}
@keyframes rl-glow {
  0%, 36%, 48%, 86%, 100% { box-shadow: 0 0 18px rgba(255, 190, 80, .75), inset 0 0 12px rgba(255, 190, 80, .35); }
  6%, 30%, 54%, 80% { box-shadow: 0 0 10px rgba(255, 170, 60, .3), inset 0 0 8px rgba(255, 170, 60, .12); }
}
@media (prefers-reduced-motion: reduce) {
  .page-body .rl-track, .page-body .rl-frame { animation: none; }
}
.page-body .rl-prizes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.page-body .tf-convert.rl-prizes li { display: flex; align-items: center; gap: 10px; border-top: 3px solid #b8a27a; }
.page-body .tf-convert.rl-prizes li.rl-rare { border-top-color: #c08a43; background: linear-gradient(180deg, #fdf3dc, #f6e1b4); }
.page-body .rl-prize-text { display: grid; gap: 2px; min-width: 0; }
.page-body .rl-prize-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #6b5536; }
.page-body .myaac-legacy-content .rl-prize-meta em {
  font-style: normal; padding: 1px 8px; border-radius: 999px; font-size: 11px !important; font-weight: 700;
  color: #6b2a0c; background: #f7e3d4; border: 1px solid #e3b79c;
}
.page-body .rl-empty { min-height: 140px; }
.page-body .rl-chests { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-bottom: 18px; }
.page-body .tf-convert.rl-chests li { align-items: flex-start; }
.page-body .myaac-legacy-content .rl-tokens { margin: 0; display: flex; align-items: center; gap: 10px; color: #5a4326; text-indent: 0 !important; }
.page-body .myaac-legacy-content .rl-tokens b { font-family: "Cinzel", Georgia, serif !important; color: #3d2610; }

/* ---- Boss Roulette (wiki) ---------------------------------------------------- */
/* Reuses the Roleta (.rl-*) page blocks. Hero: a 3x3 slot machine. The 3
   columns start together, scroll north to south (translateY grows) and stop
   one at a time (left 38%, middle 50%, right 62% of the loop), slowing down;
   then the middle row (the win line) glows. Each track is result, passing
   symbols, result: --br-shift (inline) = tiles travelled; the loop restart
   is seamless because the first and last 3 tiles are the same. */
.page-body .br-stage { height: 162px; gap: 8px; }
.page-body .br-machine {
  --br-tile: 34px; --br-gap: 4px; --br-pitch: calc(var(--br-tile) + var(--br-gap)); --br-pad: 6px;
  position: relative; display: flex; gap: 8px; padding: var(--br-pad) 12px; border-radius: 10px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 0 0 12px rgba(0, 0, 0, .35);
}
.page-body .br-col {
  position: relative; width: var(--br-tile); height: calc(var(--br-pitch) * 3 - var(--br-gap)); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), #000 32%, #000 68%, rgba(0, 0, 0, .5));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), #000 32%, #000 68%, rgba(0, 0, 0, .5));
}
.page-body .br-track { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; gap: var(--br-gap); will-change: transform; }
.page-body .br-track .tf-tile { width: var(--br-tile); height: var(--br-tile); box-sizing: border-box; }
.page-body .br-track-1 { animation: br-col-1 6s infinite; }
.page-body .br-track-2 { animation: br-col-2 6s infinite; }
.page-body .br-track-3 { animation: br-col-3 6s infinite; }
@keyframes br-col-1 {
  0% { transform: translateY(calc(var(--br-pitch) * var(--br-shift) * -1)); animation-timing-function: cubic-bezier(.3, .15, .25, 1); }
  38%, 100% { transform: translateY(0); }
}
@keyframes br-col-2 {
  0% { transform: translateY(calc(var(--br-pitch) * var(--br-shift) * -1)); animation-timing-function: cubic-bezier(.3, .15, .25, 1); }
  50%, 100% { transform: translateY(0); }
}
@keyframes br-col-3 {
  0% { transform: translateY(calc(var(--br-pitch) * var(--br-shift) * -1)); animation-timing-function: cubic-bezier(.3, .15, .25, 1); }
  62%, 100% { transform: translateY(0); }
}
.page-body .br-line {
  position: absolute; left: 6px; right: 6px; top: calc(var(--br-pad) + var(--br-pitch) - 4px); height: calc(var(--br-tile) + 8px);
  box-sizing: border-box; border-radius: 8px; border: 2px solid #c08a43; pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 170, 60, .3), inset 0 0 8px rgba(255, 170, 60, .12);
  animation: br-glow 6s infinite;
}
.page-body .br-line::before,
.page-body .br-line::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); border: 6px solid transparent; }
.page-body .br-line::before { left: -14px; border-left-color: #f0c36a; }
.page-body .br-line::after { right: -14px; border-right-color: #f0c36a; }
@keyframes br-glow {
  0%, 64%, 100% { box-shadow: 0 0 18px rgba(255, 190, 80, .8), inset 0 0 12px rgba(255, 190, 80, .4); border-color: #f0c36a; }
  6%, 60% { box-shadow: 0 0 8px rgba(255, 170, 60, .25), inset 0 0 6px rgba(255, 170, 60, .1); border-color: #c08a43; }
}
@media (prefers-reduced-motion: reduce) {
  .page-body .br-track, .page-body .br-line { animation: none; }
}
.page-body .myaac-legacy-content .br-odds { margin: 0 0 12px; }
.page-body .myaac-legacy-content .br-odds .br-odds-value {
  flex: none; min-width: 64px; height: 40px; display: grid; place-items: center; border-radius: 6px;
  font: 700 18px/1 "Cinzel", Georgia, serif !important; color: #6b2a0c; background: linear-gradient(180deg, #fdf3dc, #f6e1b4); border: 1px solid #c08a43;
}
.page-body .myaac-legacy-content .br-note { margin-top: 10px; font-size: 13px !important; }
.page-body .br-packs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.page-body .myaac-legacy-content .br-packs span {
  padding: 1px 8px; border-radius: 999px; font-size: 12px !important; font-weight: 700; color: #3d2610; background: #f3ead7; border: 1px solid #d9c49a;
}

/* ---- Saldo PIX (account/pix) ------------------------------------------------- */
.pix-page .pix-balance { font: 700 28px/1.2 "Cinzel", Georgia, serif; color: #2f6b1f; margin: 2px 0 8px; }
.pix-page .pix-muted { margin: 6px 0 0; font-size: 12px; color: #6b5132; }
.pix-page .pix-notice { margin-top: 10px; padding: 8px 10px; font-size: 12px; color: #5a3d12; background: #fbecc8; border: 1px solid #d9b46a; }
.pix-page .pix-notice-ok { margin-top: 0; color: #1e5a16; background: #e3f2d6; border-color: #9cc283; }
.pix-page .account-form-field select {
  height: 38px; padding: 0 10px; background: #f3ead7; border: 1px solid #a98c5a; border-radius: 6px;
  color: var(--foreground, #3d2314); font-size: 13px;
}
.pix-page .pix-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #6b5132; }
.pix-page .pix-check input { margin-top: 2px; }
.pix-page .pix-table-wrap { overflow-x: auto; }
.pix-page .pix-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pix-page .pix-table th { text-align: left; padding: 6px 8px; background: rgba(201,184,150,.55); color: #3d2e1f; white-space: nowrap; }
.pix-page .pix-table td { padding: 6px 8px; border-top: 1px solid rgba(80,50,20,.15); vertical-align: top; }
.pix-page .pix-table td:first-child { white-space: nowrap; }
.pix-page .pix-amount { white-space: nowrap; font-weight: 700; }
.pix-page .pix-in { color: #2f6b1f; }
.pix-page .pix-out { color: #8a2c0d; }
.pix-page .pix-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; border: 1px solid; }
.pix-page .pix-status-pending { color: #7a5200; background: #fbecc8; border-color: #d9b46a; }
.pix-page .pix-status-paid { color: #1e5a16; background: #e3f2d6; border-color: #9cc283; }
.pix-page .pix-status-refused { color: #7a1d0a; background: #f7e3d4; border-color: #e3b79c; }
.pix-page .pix-coins-line { font-size: 13px; color: #3d2e1f; }
.pix-page .pix-quote { margin: 4px 0 10px; font: 700 16px/1.35 "Cinzel", Georgia, serif; color: #3d2e1f; }
.pix-page .pix-quote b { color: #2f6b1f; }
.pix-page .pix-rate { margin: 0 0 8px; }
.pix-page .pix-confirm { margin-bottom: 12px; border-color: #d9b46a; background: #fbf3dc; }
.pix-page .pix-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 720px) {
  .pix-page .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
.page-body .myaac-legacy-content .rl-tokens.rl-pix { margin-bottom: 10px; }
.page-body .myaac-legacy-content .rl-tokens.rl-boss { margin-top: 10px; }

/* ---- Coin shop (/coins, account/purchases) ------------------------------------
   The keep's treasury counter: a dark stone band over the parchment sheet,
   stamped bronze coin piles that grow per pack, ember only for the pay action
   and the "Recomendado" marks. Markup: coinshop.html.twig, coinshop.receipt.html.twig,
   coinshop.svg.html.twig, account.purchases.html.twig. */
.page-body .page-sheet.cs-sheet { padding: 0; overflow: visible; }
.cs { container-type: inline-size; display: grid; gap: 24px; padding-bottom: 24px; color: #2a1e12; }
.cs > :not(.cs-hero) { margin-inline: 20px; }
.cs-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cs-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cs .num { font-variant-numeric: tabular-nums lining-nums; }
.cs a:not(.btn) { color: #87470f; font-weight: 700; }
.cs a:not(.btn):hover { color: #b0561a; }

/* hero: the night scene through dark stone, the hoard lit by the torch */
.cs-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(170px, 30cqi, 240px); gap: 10px 20px; align-items: center;
  padding: 28px 26px 26px; color: #ece6da; border-radius: 4px 4px 0 0;
  background:
    radial-gradient(ellipse 34% 62% at 86% 58%, rgba(240, 122, 36, .32), transparent 70%),
    linear-gradient(90deg, rgba(10, 12, 14, .95) 0, rgba(10, 12, 14, .84) 52%, rgba(10, 12, 14, .5) 100%),
    url("../images/layout/bg-night.jpg") 62% 42% / cover no-repeat;
  box-shadow: inset 0 -1px 0 rgba(192, 138, 67, .55);
}
.cs-hero::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -7px; height: 14px; background: var(--knot) repeat-x center / 48px 14px; }
.cs-hero h2 { margin: 0 0 8px; font: 800 clamp(24px, 4.4cqi, 34px)/1.1 var(--title); color: var(--bronze-4); text-shadow: 0 3px 0 rgba(0, 0, 0, .55); text-wrap: balance; }
.cs-hero p { margin: 0 0 16px; font-size: 17px; line-height: 1.5; color: #e9e1d2; max-width: 52ch; }
.cs-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cs-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; color: #ddd3c1; }
.cs-trust svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--bronze-3); }
.cs-hero .cs-balance { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(192, 138, 67, .32); font-size: 15px; color: #ece6da; }
.cs-hero .cs-balance a { color: var(--bronze-3); }
.cs-hero .cs-balance a:hover { color: var(--bronze-4); }
.cs-hero-art { position: relative; }
.cs-pile-hero { width: 100%; height: auto; transform: scale(1.18); transform-origin: 50% 70%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .6)); }
.cs-ticket-art .cs-pile-hero { width: 100%; max-width: 190px; transform: none; }

/* the four steps: a real sequence, so the numbers stay */
.cs-steps { list-style: none; padding: 0; margin-block: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cs-steps li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; font-size: 14px; font-weight: 700; line-height: 1.25; color: #4a3620; }
.cs-steps li span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 700 15px/1 var(--title); color: #fff3dc;
  background: radial-gradient(circle at 35% 30%, #d49a52, #8c5f2a 70%); border: 1px solid #5a3a17;
  box-shadow: 0 2px 4px rgba(45, 28, 10, .3);
}

/* block headings + currency switch */
.cs-form { display: grid; gap: 30px; min-width: 0; }
.cs-block { min-width: 0; }
.cs-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 14px; }
.cs-block-head h2, .cs-faq h2 { margin: 0; font: 700 19px/1.2 var(--title); letter-spacing: .06em; text-transform: uppercase; color: #4a2a0c; text-wrap: balance; }
.cs-cur { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: #e7d6b2; border: 1px solid #b99c6c; }
.cs-cur-label { margin: 0 6px 0 9px; font-size: 13px; font-weight: 700; color: #5b4631; }
.cs .cs-cur a { padding: 6px 13px; border-radius: 999px; font: 700 13px/1.2 var(--body); letter-spacing: .06em; color: #5b4631; text-decoration: none; transition: background .2s, color .2s; }
.cs .cs-cur a:hover { color: #2a1e12; background: rgba(255, 250, 238, .6); }
.cs .cs-cur a[aria-pressed="true"] {
  color: #1c1006; background: linear-gradient(180deg, var(--bronze-4), var(--bronze-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 5px rgba(45, 28, 10, .25);
}
.cs fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

/* coin piles */
.cs-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; padding-top: 10px; }
.cs-pack { position: relative; display: block; cursor: pointer; }
.cs-pack input { position: absolute; top: 12px; left: 12px; width: 1px; height: 1px; opacity: 0; }
.cs-pack-card {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; height: 100%;
  padding: 16px 10px 13px; text-align: center; border-radius: 8px;
  background: linear-gradient(180deg, #fbf4e3, #efe0bf); border: 1px solid #c9ab73;
  box-shadow: inset 0 1px 0 #fffaf0, 0 2px 6px rgba(70, 40, 10, .12);
  transition: border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .8, .2, 1), background .25s;
}
.cs-pack-card::before {
  content: ""; position: absolute; top: 10px; left: 10px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #b99c6c; background: #fffaf0; transition: border-color .2s, background .2s;
}
.cs-pack:hover .cs-pack-card { border-color: #a87436; transform: translateY(-2px); box-shadow: inset 0 1px 0 #fffaf0, 0 9px 18px rgba(70, 40, 10, .18); }
.cs-pack input:focus-visible + .cs-pack-card { outline: 2px solid #a0360f; outline-offset: 3px; }
.cs-pack input:checked + .cs-pack-card {
  border-color: #8c5f2a;
  background: radial-gradient(ellipse 85% 60% at 50% 20%, #fff8e6, #f3dfae 70%, #e9cf94);
  box-shadow: 0 0 0 2px #c08a43, inset 0 1px 0 #fffaf0, 0 12px 22px rgba(90, 50, 10, .26);
}
.cs-pack input:checked + .cs-pack-card::before { border-color: #8c5f2a; background: radial-gradient(circle, #a0360f 0 4px, #fffaf0 4.5px); }
.cs-pack.is-rec .cs-pack-card { border-color: #b5521b; }
.cs-pile { width: min(112px, 100%); height: auto; margin: 2px 0 4px; transform-origin: 50% 90%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.cs-pack input:checked + .cs-pack-card .cs-pile { transform: translateY(-3px) scale(1.06); }
.cs-ribbon {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 1;
  padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  font: 700 11.5px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #fff8ec;
  background: linear-gradient(180deg, #c4501f, #a0360f 55%, #74230b); border: 1px solid #3d1405;
  box-shadow: 0 3px 8px rgba(116, 35, 11, .35); text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.cs-pack-coins { font-size: 14px; font-weight: 700; color: #5b4631; }
.cs-pack-coins b { display: block; font: 800 27px/1.05 var(--title); color: #3d2610; }
.cs-pack-bonus { min-height: 21px; font-size: 13px; font-weight: 800; color: #2f6b1f; }
.cs-pack-bonus em { margin-left: 3px; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: 11.5px; background: #e3f0d3; border: 1px solid #9cc27a; }
.cs-pack-bonus.is-empty { visibility: hidden; }
.cs-pack-price { margin-top: 6px; font: 800 21px/1.1 var(--body); color: #2a1e12; }
.cs-pack-per, .cs-pack-approx { font-size: 12.5px; line-height: 1.35; color: #6c5639; }
.cs-fine { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #6c5639; max-width: 75ch; }

/* ways to pay */
.cs-methods { display: grid; gap: 8px; }
.cs-method {
  position: relative; display: grid; grid-template-columns: 20px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px; cursor: pointer;
  background: #fbf4e4; border: 1px solid #d8c299;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cs-method:hover { border-color: #a87436; }
.cs-method input {
  appearance: none; -webkit-appearance: none; display: block; width: 18px; height: 18px; margin: 0; border-radius: 50%;
  border: 2px solid #b99c6c; background: #fffaf0; cursor: inherit; transition: border-color .2s, background .2s;
}
.cs-method input:checked { border-color: #8c5f2a; background: radial-gradient(circle, #a0360f 0 4px, #fffaf0 4.5px); }
.cs-method input:focus-visible { outline: 2px solid #a0360f; outline-offset: 3px; }
.cs-method:has(input:checked) {
  border-color: #8c5f2a; background: linear-gradient(180deg, #fff8e6, #f4e3bb);
  box-shadow: 0 0 0 1px #c08a43, 0 6px 14px rgba(90, 50, 10, .15);
}
.cs-method-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #6b3d10;
  background: radial-gradient(circle at 35% 30%, #fbe2a6, #d8b06a); border: 1px solid #8c5f2a;
}
.cs-method-ico svg { width: 22px; height: 22px; }
.cs-method-text { min-width: 0; }
.cs-method-text b { display: block; font: 700 16px/1.25 var(--body); color: #2a1e12; }
.cs-method-text small { display: block; margin-top: 1px; font-size: 13.5px; line-height: 1.35; color: #5b4631; }
.cs-method-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cs-tag { padding: 2px 9px; border-radius: 999px; font: 700 11.5px/1.35 var(--body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.cs-tag[hidden] { display: none; }
.cs-tag-rec { color: #fff8ec; background: linear-gradient(180deg, #c4501f, #a0360f 55%, #74230b); border: 1px solid #3d1405; }
.cs-tag-soon { color: #5b4631; background: #ece0c5; border: 1px dashed #a88a5c; }
.cs-tag-brl { color: #2f4a63; background: #dfe9f2; border: 1px solid #9fb8cf; }
.cs-method.is-soon { background: rgba(251, 244, 228, .45); border-style: dashed; }
.cs-method.is-off { cursor: not-allowed; }
.cs-method.is-off:hover { border-color: #d8c299; }
.cs-method.is-off input, .cs-method.is-off .cs-method-ico, .cs-method.is-off .cs-method-text { opacity: .55; filter: saturate(.35); }

/* the order bar: dark stone like the main bar, follows the visitor down the form */
.cs-summary {
  position: sticky; bottom: 10px; z-index: 5;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 18px;
  padding: 14px 16px; border-radius: 10px; color: #ece6da;
  background: linear-gradient(180deg, #2c3338, #1a1f22); border: 1px solid #0b0d0e;
  box-shadow: inset 0 0 0 1px rgba(192, 138, 67, .4), 0 14px 28px rgba(20, 12, 4, .45);
}
.cs-sum-facts { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; }
.cs-sum-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #bdb4a4; }
.cs-sum-facts dd { margin: 0; font: 800 20px/1.2 var(--title); color: var(--bronze-4); white-space: nowrap; }
.cs .cs-pay { width: auto; min-width: 230px; padding: 15px 22px; font-size: 15px; }
.cs .cs-pay:disabled { cursor: not-allowed; opacity: .6; filter: saturate(.5); }
.cs .cs-pay.is-busy { cursor: progress; }
.cs-sum-hint { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.4; color: #bdb4a4; }
.cs .cs-sum-hint a { color: var(--bronze-3); }
.cs .cs-sum-hint a:hover { color: var(--bronze-4); }

.cs-alert, .cs-notice { padding: 11px 14px; border-radius: 8px; font-weight: 700; }
.cs-alert { color: #7a1d0a; background: #f7dfd6; border: 1px solid #dda08e; }
.cs-alert p { margin: 0; }
.cs-notice { margin-block: 0; color: #5a3d12; background: #fbecc8; border: 1px solid #d9b46a; }

/* FAQ */
.cs-faq h2 { margin-bottom: 6px; }
.cs-faq details { border-top: 1px solid #d8c299; }
.cs-faq details:last-of-type { border-bottom: 1px solid #d8c299; }
.cs-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px;
  cursor: pointer; list-style: none; font: 700 16px/1.3 var(--body); color: #3d2610;
}
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary:hover { color: #a0360f; }
.cs-faq summary svg { flex: none; width: 14px; height: 14px; color: #8c5f2a; transition: transform .25s; }
.cs-faq details[open] summary svg { transform: rotate(180deg); }
.cs-faq details p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: #4a3620; max-width: 68ch; }
.cs-contact { margin: 14px 0 0; font-weight: 700; color: #4a3620; }

/* order / receipt / PIX */
.cs-receipt { padding: 20px 0 4px; }
.cs-ticket {
  display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: start; padding: 20px;
  border-radius: 10px; background: radial-gradient(ellipse at 50% 0%, #fff6e2, #f2e3c3); border: 1px solid #cfb27a;
  box-shadow: inset 0 1px 0 #fffaf0, 0 4px 12px rgba(70, 40, 10, .14);
}
.cs-ticket-art {
  display: grid; place-items: center; min-height: 220px; padding: 18px; border-radius: 8px;
  background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(240, 122, 36, .3), transparent 70%), linear-gradient(180deg, #2c3338, #1a1f22);
  border: 1px solid #0b0d0e; box-shadow: inset 0 0 0 1px rgba(192, 138, 67, .4);
}
.cs-ticket-art:has(.cs-qr) { padding: 8px; background: #fff; border-color: #cfb27a; box-shadow: none; }
.cs-qr { width: 100%; max-width: 220px; height: auto; image-rendering: pixelated; }
.cs-ticket-copy { min-width: 0; }
.cs-ticket h2 { margin: 0 0 8px; font: 800 25px/1.15 var(--title); color: #3d2610; text-wrap: balance; }
.cs-receipt.is-paid h2 { color: #2f6b1f; }
.cs-receipt.is-failed h2, .cs-receipt.is-expired h2, .cs-receipt.is-refunded h2 { color: #8a2c0d; }
.cs-lead { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: #4a3620; max-width: 60ch; }
.cs-pix-steps { list-style: decimal; margin: 0 0 12px; padding-left: 22px; display: grid; gap: 3px; color: #4a3620; }
.cs-pix-steps li::marker { color: #a0360f; font-weight: 800; }
.cs-pix-label { display: block; font-size: 13px; font-weight: 800; color: #5b4631; }
.cs-pix-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.cs-pix-code {
  flex: 1 1 100%; min-width: 0; padding: 10px 12px; border-radius: 6px;
  font: 500 13.5px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #2a1e12;
  background: #fffaf0; border: 1px solid #a88a5c;
}
.cs-pix-code:focus { outline: none; border-color: #8c5f2a; box-shadow: 0 0 0 3px rgba(192, 138, 67, .25); }
.cs .cs-copy { width: auto; padding: 11px 16px; white-space: nowrap; }
.cs-pix-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; color: #5b4631; }
.cs-live { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #c08a43; box-shadow: 0 0 0 0 rgba(192, 138, 67, .6); animation: cs-pulse 1.8s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes cs-pulse { to { box-shadow: 0 0 0 9px rgba(192, 138, 67, 0); } }
.cs-ticket-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 14px 0; }
.cs-ticket-facts div { padding: 8px 10px; border-radius: 6px; background: rgba(255, 250, 238, .75); border: 1px solid #e2cfa6; }
.cs-ticket-facts dt { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a5a2c; }
.cs-ticket-facts dd { margin: 0; font-size: 15px; font-weight: 800; color: #2a1e12; overflow-wrap: anywhere; }
.cs-ticket-facts dd.cs-ref { font-size: 14px; letter-spacing: .03em; }
.cs-ticket-facts div:has(.cs-ref) { grid-column: 1 / -1; }
.cs-ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-ticket-actions .btn { width: auto; padding: 12px 18px; }
.cs .btn.stone { color: #2a1e12; background: linear-gradient(180deg, #f5ecd9, #cfb98e); border-color: #4e3719; }
.cs .btn.stone:hover { color: #87470f; }

@media (prefers-reduced-motion: reduce) {
  .cs-pack-card, .cs-pile, .cs-faq summary svg { transition: none; }
  .cs-pack:hover .cs-pack-card { transform: none; }
  .cs-live { animation: none; }
}

@container (max-width: 560px) {
  .cs > :not(.cs-hero) { margin-inline: 12px; }
  .cs-hero { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 22px; }
  .cs-hero-art { order: -1; width: 150px; justify-self: center; margin: -6px 0 -4px; }
  .cs-hero h2 { text-align: center; }
  .cs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .cs-pack-coins b { font-size: 24px; }
  .cs-method { grid-template-columns: 18px 36px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .cs-method-ico { width: 36px; height: 36px; }
  .cs-method-tags { grid-column: 3; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .cs-method-tags:not(:has(.cs-tag:not([hidden]))) { display: none; }
  .cs-summary { grid-template-columns: minmax(0, 1fr); gap: 8px; bottom: 6px; padding: 10px 12px; }
  .cs-sum-facts { flex-wrap: nowrap; justify-content: space-between; }
  .cs-sum-facts dt { font-size: 11px; }
  .cs-sum-facts dd { font-size: 17px; }
  .cs .cs-pay { padding: 13px 16px; }
  .cs-sum-hint { font-size: 12.5px; }
  .cs-sum-hint.is-pay { display: none; }
  .cs .cs-pay { width: 100%; min-width: 0; }
  .cs-ticket { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .cs-ticket-art { min-height: 0; }
  .cs-pix-row { flex-direction: column; }
}

/* account > Minhas compras (inside the legacy account sheet) */
.cs-history .cs-history-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid #d8c299; }
.cs-history .cs-history-table { width: 100%; border-collapse: collapse; background: #fbf4e4; }
.myaac-legacy-content .cs-history .cs-history-table th {
  padding: 8px 10px; text-align: left; white-space: nowrap;
  font-family: "Alegreya Sans", "Segoe UI", system-ui, sans-serif !important; font-size: 12.5px !important; letter-spacing: .06em; text-transform: uppercase;
  color: #fff3dc !important; background: linear-gradient(#6b4a1c, #563a14);
}
.cs-history .cs-history-table td { padding: 9px 10px; border-top: 1px solid #ead9b6; vertical-align: middle; }
.cs-history .cs-history-table td.num { white-space: nowrap; }
.cs-history .cs-history-table tbody tr:nth-child(even) td { background: #f5ead2; }
.myaac-legacy-content .cs-history .cs-history-table small { font-size: 13px !important; color: #2f6b1f; }
.myaac-legacy-content .cs-history .cs-status { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px !important; font-weight: 700; white-space: nowrap; border: 1px solid; }
.cs-history .cs-status-pending { color: #7a5200; background: #fbecc8; border-color: #d9b46a; }
.cs-history .cs-status-paid { color: #1e5a16; background: #e3f2d6; border-color: #9cc283; }
.cs-history .cs-status-failed, .cs-history .cs-status-expired { color: #5b4631; background: #eee6d8; border-color: #cbb994; }
.cs-history .cs-status-refunded { color: #7a1d0a; background: #f7e3d4; border-color: #e3b79c; }
.cs-history .cs-history-empty { margin: 0 0 4px; }
.cs-history .cs-history-cta { margin: 14px 0 0; }
@media (max-width: 640px) {
  .cs-history .cs-history-wrap { border: 0; }
  .cs-history .cs-history-table thead { display: none; }
  .cs-history .cs-history-table, .cs-history .cs-history-table tbody, .cs-history .cs-history-table tr, .cs-history .cs-history-table td { display: block; }
  .cs-history .cs-history-table tr { margin-bottom: 10px; border: 1px solid #d8c299; border-radius: 8px; overflow: hidden; }
  .cs-history .cs-history-table td { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #ead9b6; }
  .cs-history .cs-history-table td:first-child { border-top: 0; }
  .cs-history .cs-history-table td::before { content: attr(data-label); font-weight: 800; color: #7a5a2c; }
}

/* ---- Outfits (wiki, outfit-list) ---------------------------------------------- */
/* Reuses the Hazard (.hz-*), Tier/Forge (.tf-show), Rush WAR (.rw-*) and Custom Items
   (.ci-bar, .ci-seg, .ci-filter) blocks. Each card is a patch of the game floor with
   the outfit standing on it (2x, pixelated), then name, origin and who wears it. */
.page-body .myaac-legacy-content:has(> .of) { overflow-x: clip; }
.page-body .of { container: of / inline-size; }
.page-body .of [hidden] { display: none !important; }
.page-body .of-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-body .myaac-legacy-content .of a:focus-visible,
.page-body .of button:focus-visible,
.page-body .of input:focus-visible { outline: 2px solid #a0360f; outline-offset: 2px; border-radius: 4px; }
.page-body .of ::selection { background: #e9c27a; color: #2a1e12; }

/* hero: the most worn outfit right now, with its name the way the game draws it */
.page-body .of-hero-stage { height: 170px; gap: 2px; align-content: end; padding: 0 0 10px; }
.page-body .of-hero-stage .tf-look { position: relative; z-index: 1; margin-bottom: -18px !important; }
.page-body .of-hero-look { display: block; width: 128px; height: 128px; image-rendering: pixelated; transform: translateX(-32px); }
.page-body .myaac-legacy-content .of-hero figcaption a { color: #a0360f !important; }

/* filter bar: origin, then male/female, search and the count */
.page-body .of-bar { gap: 10px; }
.page-body .of-bar .of-filter { padding-top: 0; border-top: 0; }
.page-body .of-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; border-top: 1px dashed #d3b98a; }
.page-body .of-row .ci-filter { padding-top: 0; border-top: 0; }
.page-body .of-sym { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.page-body .of-search { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.page-body .myaac-legacy-content .of-search input {
  box-sizing: border-box; width: 210px; min-height: 32px; margin: 0; padding: 4px 10px;
  border: 1px solid #b99a63; border-radius: 8px; background: #fbf4e4; color: #2a1e12; caret-color: #a0360f;
  font-size: 14px !important; transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.page-body .of-search input::placeholder { color: #7d6646; opacity: 1; }
.page-body .of-search input:focus { border-color: #a0360f; box-shadow: 0 0 0 3px rgba(160, 54, 15, .15); outline: none; }

/* the gallery */
.page-body .of-grid {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); gap: 12px;
}
.page-body .of-card { --of-c: #b8a27a; --of-t: #6b5536; }
.page-body .of-card--store { --of-c: #c08a43; --of-t: #6b4a1c; }
.page-body .of-card--custom { --of-c: #a0360f; --of-t: #8a3410; }
.page-body .of-card--quest { --of-c: #7d8a35; --of-t: #4f5a1a; }
.page-body .of-card--free { --of-c: #4f8f2f; --of-t: #2f6a1e; }
.page-body .myaac-legacy-content .of-card {
  display: grid; grid-template-rows: auto 1fr; margin: 0; padding: 0; min-width: 0; overflow: hidden;
  border-radius: 10px; border: 1px solid #dcc597; box-shadow: inset 0 3px 0 var(--of-c);
  background: linear-gradient(180deg, #fbf4e4, #f4e6c8); scroll-margin-top: 24px;
}
/* arriving from a character page (#outfit-name): the card lights up once */
.page-body .myaac-legacy-content .of-card:target { border-color: #c08a43; box-shadow: 0 0 0 2px #c08a43, 0 10px 22px -10px rgba(120, 70, 15, .6); animation: of-found 2.4s cubic-bezier(.16, 1, .3, 1) 1; }
@keyframes of-found {
  0% { box-shadow: 0 0 0 7px rgba(240, 195, 106, .95), 0 0 34px 6px rgba(255, 170, 60, .7); }
  100% { box-shadow: 0 0 0 2px #c08a43, 0 10px 22px -10px rgba(120, 70, 15, .6); }
}
@media (prefers-reduced-motion: reduce) { .page-body .myaac-legacy-content .of-card:target { animation: none; } }

.page-body .of-stage {
  position: relative; height: 140px; display: grid; justify-items: center; align-items: end; overflow: hidden;
  background:
    radial-gradient(ellipse 24% 8% at 50% 90%, rgba(0, 0, 0, .5), transparent 72%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 64px),
    linear-gradient(160deg, #6b6f6c, #4a4e4c 55%, #3b3f3d);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .35);
}
/* the 64px frame keeps the body in its bottom-right tile: centre that tile */
.page-body .of-look { display: block; width: 128px; height: 128px; margin-bottom: 2px; image-rendering: pixelated; transform: translateX(-32px); }
.page-body .of-flip {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #8c6a3a; background: rgba(20, 22, 24, .72); color: #f0c36a; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.page-body .of-flip:hover { background: rgba(20, 22, 24, .92); border-color: #f0c36a; color: #ffe6b0; }
.page-body .of-flip .of-sym { width: 17px; height: 17px; }
.page-body .myaac-legacy-content .of-flip > span { display: grid; color: inherit; } /* the legacy span colour would hide the icon */
.page-body .of-flip[aria-pressed="true"] .of-flip-f,
.page-body .of-flip[aria-pressed="false"] .of-flip-m { display: none; }
.page-body .myaac-legacy-content .of-only {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px;
  border-radius: 999px; background: rgba(20, 22, 24, .72); border: 1px solid rgba(240, 195, 106, .35);
  font-size: 11.5px !important; font-weight: 700; line-height: 1.4; color: #f3e2bd;
}
.page-body .of-only .of-sym { width: 12px; height: 12px; color: #f0c36a; }

.page-body .of-text { display: grid; gap: 4px; align-content: start; padding: 10px 12px 12px; min-width: 0; }
.page-body .myaac-legacy-content .of-name {
  margin: 0; font-family: "Cinzel", Georgia, serif !important; font-size: 15px !important; font-weight: 700; line-height: 1.2;
  color: #3d2610; text-wrap: balance; overflow-wrap: anywhere;
}
.page-body .myaac-legacy-content .of-get {
  margin: 0; display: flex; align-items: baseline; gap: 6px; text-indent: 0 !important;
  font-size: 13px !important; font-weight: 700; line-height: 1.3; color: var(--of-t);
}
.page-body .of-get::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 1px; background: var(--of-c); transform: translateY(-1px) rotate(45deg); }
.page-body .of-who { display: grid; gap: 2px; margin-top: 4px; padding-top: 7px; border-top: 1px dashed #e0cb9f; }
.page-body .myaac-legacy-content .of-count { font-size: 12.5px !important; color: #6b5536; font-variant-numeric: tabular-nums; }
.page-body .myaac-legacy-content .of-who--none .of-count { color: #7a6446; font-style: italic; }
.page-body .of-names { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 10px; min-width: 0; }
.page-body .myaac-legacy-content .of-names li { font-size: 13px !important; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.page-body .myaac-legacy-content .of-names a { font-size: 13px !important; text-underline-offset: 3px; }
.page-body .of-names a.of-on::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; vertical-align: 1px;
  background: #3fae3f; box-shadow: 0 0 0 2px rgba(63, 174, 63, .2);
}
.page-body .myaac-legacy-content .of-names .of-more { color: #6b5536; font-size: 12.5px !important; }

/* nothing matches the search */
.page-body .of-empty { min-height: 180px; }
.page-body .myaac-legacy-content .of-clear {
  margin-top: 8px; min-height: 34px; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid #5a2a06; background: linear-gradient(#b5521b, #8a3410); color: #fff7e6;
  font: 700 14px/1.2 var(--body) !important; box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.page-body .myaac-legacy-content .of-clear:hover { background: linear-gradient(#c45d22, #983a12); }

/* wide, tall windows: the bar stays in view while browsing */
@media (min-width: 861px) and (min-height: 680px) {
  .page-body .of .of-bar { position: sticky; top: 8px; box-shadow: 0 -9px 0 0 var(--page-paper, #e6d8ba), 0 6px 14px -10px rgba(45, 28, 10, .55); }
  .page-body .myaac-legacy-content .of-card { scroll-margin-top: calc(var(--of-bar-h, 120px) + 24px); }
}

/* narrow page column (phones): two cards a row, the bar's controls full width */
@container of (max-width: 560px) {
  .page-body .of-bar .ci-seg { display: grid; width: 100%; }
  .page-body .of-filter .ci-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* the last row fills the bar (5 buttons: 3 + 2, 4 buttons: 3 + 1) */
  .page-body .of-filter .ci-seg button:last-child:nth-child(3n + 2) { grid-column: span 2; }
  .page-body .of-filter .ci-seg button:last-child:nth-child(3n + 1) { grid-column: span 3; }
  .page-body .of-sex .ci-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-body .of-bar .ci-seg button { padding: 4px; font-size: 13px; box-shadow: 0 -1px 0 #d8c299; }
  .page-body .of-row .ci-filter, .page-body .of-search { width: 100%; }
  .page-body .of-search { display: grid; gap: 4px; }
  .page-body .myaac-legacy-content .of-search input { width: 100%; }
  .page-body .myaac-legacy-content .of-row .ci-filter-status { margin-left: 0; }
  .page-body .of-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .page-body .of-stage { height: 112px; }
  .page-body .of-look { width: 96px; height: 96px; transform: translateX(-24px); }
  .page-body .of-text { padding: 8px 9px 10px; }
  .page-body .myaac-legacy-content .of-name { font-size: 14px !important; }
  .page-body .of-flip { top: 6px; right: 6px; width: 30px; height: 30px; }
}

/* ---- Mounts (wiki, mount-list) ------------------------------------------------ */
/* The Outfits page's bar and cards (.of-*). Mount pictures are cropped to the body
   (2x2 to 4x4 tiles) and come at 2x in width/height; the big ones are scaled down to
   fit the floor (object-fit keeps their shape), feet on the shadow. */
.page-body .of-card--box { --of-c: #8a5bb0; --of-t: #5a2f78; }
.page-body .of-card--task { --of-c: #2f7d6b; --of-t: #1f5a4c; }
.page-body .om-stage {
  background:
    radial-gradient(ellipse 30% 8% at 50% 90%, rgba(0, 0, 0, .5), transparent 72%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 64px),
    linear-gradient(160deg, #6b6f6c, #4a4e4c 55%, #3b3f3d);
}
.page-body .om-look,
.page-body .om-hero-look {
  display: block; max-width: calc(100% - 12px); max-height: 120px; margin-bottom: 10px;
  object-fit: contain; object-position: 50% 100%; image-rendering: pixelated;
}
.page-body .om-hero-stage .tf-look { margin-bottom: 0 !important; }
.page-body .om-hero-look { max-height: 116px; margin-bottom: 0; }
/* a Store mount that the mount chest can also give: a quiet second line */
.page-body .myaac-legacy-content .om-chest { margin: -2px 0 0 13px; font-size: 12px !important; line-height: 1.3; color: #7a6446; text-indent: 0 !important; }
/* a mount chest mount: the chest in the floor's corner, roulettes and tier under its name */
.page-body .om-box {
  position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; padding: 2px; image-rendering: pixelated;
  border-radius: 6px; background: rgba(20, 22, 24, .55); box-shadow: 0 0 0 1px rgba(240, 195, 106, .3);
}
.page-body .myaac-legacy-content .om-tier--rare { color: #6b3f8a; }
.page-body .myaac-legacy-content .om-tier--veryrare { color: #9a3412; font-weight: 700; }
/* the chest filter, next to the search (the legacy content forces select styles with !important) */
.page-body .myaac-legacy-content .om-pick select {
  box-sizing: border-box; max-width: 260px; min-height: 32px; margin: 0; padding: 4px 8px !important;
  border: 1px solid #b99a63 !important; border-radius: 8px !important; background: #fbf4e4 !important;
  color: #2a1e12 !important; font-size: 14px !important;
}
.page-body .myaac-legacy-content .om-pick select:focus-visible { border-color: #a0360f !important; box-shadow: 0 0 0 3px rgba(160, 54, 15, .15); outline: none; }
@container of (max-width: 560px) {
  .page-body .myaac-legacy-content .om-pick select { max-width: 100%; }
  .page-body .om-pick { flex-wrap: wrap; }
}
@container of (max-width: 560px) {
  .page-body .om-look { max-height: 92px; margin-bottom: 8px; }
}

/* character page: the outfit's name, linked to its card on the Outfits page */
.character-hero-outfit { font-size: 13px; color: #6b3b12; }
.character-hero-outfit a { font-weight: 700; color: #87470f; text-underline-offset: 3px; }
.character-hero-outfit a:hover { color: #b0561a; }

/* ---- Full map (wiki) ---------------------------------------------------------- */
/* Without JS the stage scrolls over the full-size image; .is-js (alurian.js) turns it into the pan / zoom viewer. */
.page-body .mp { display: grid; gap: 12px; }
.page-body .myaac-legacy-content .mp-lead { margin: 0; text-indent: 0; }
.page-body .mp-lead a { font-weight: 700; color: #87470f; text-underline-offset: 3px; }
.page-body .mp-viewer { display: grid; gap: 8px; min-width: 0; }
.page-body .mp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.page-body .mp-tools[hidden], .page-body .mp-hint[hidden] { display: none; }
.page-body .myaac-legacy-content .mp-btn {
  min-width: 40px; height: 36px; margin: 0; padding: 0 12px; border-radius: 8px; cursor: pointer;
  font: 700 18px/1 var(--body); color: #2a1e12; background: linear-gradient(180deg, #f5ecd9, #cfb98e);
  border: 1px solid #4e3719; box-shadow: 0 2px 0 #4e3719;
}
.page-body .myaac-legacy-content .mp-btn--fit { font-size: 14px; letter-spacing: .04em; }
.page-body .mp-btn:hover { background: linear-gradient(180deg, #fff6e2, #dcc69b); }
.page-body .mp-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #4e3719; }
.page-body .mp-btn:focus-visible { outline: 3px solid rgba(160, 54, 15, .45); outline-offset: 2px; }
.page-body .mp-coords { margin-left: auto; font: 700 14px var(--body); font-variant-numeric: tabular-nums; color: #4a2a0c; }
.page-body .mp-stage {
  position: relative; height: min(76vh, 860px); min-height: 320px; overflow: auto;
  border-radius: 10px; border: 1px solid #2a2f33; background: #0d0f10;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .45), 0 3px 10px rgba(45, 28, 10, .25);
}
.page-body .mp-stage .mp-img { display: block; max-width: none; height: auto; }
.page-body .mp-viewer.is-js .mp-stage { overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.page-body .mp-viewer.is-js .mp-stage.is-dragging { cursor: grabbing; }
.page-body .mp-viewer.is-js .mp-img { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.page-body .mp-viewer.is-pixel .mp-img { image-rendering: pixelated; }
.page-body .myaac-legacy-content .mp-hint { margin: 0; font-size: 13px !important; color: #6b5536; text-indent: 0; }
@media (max-width: 720px) {
  .page-body .mp-stage { height: 68vh; }
  .page-body .mp-coords { flex-basis: 100%; margin-left: 0; }
}

/* ---- Downloads: full automap ---- */
.dl-automap { display: grid; gap: 10px; padding: 16px 18px; border-radius: 10px; background: #f8efdc; border: 1px solid #d8c299; }
.dl-automap-head { display: flex; align-items: center; gap: 14px; }
.dl-automap-head .dl-ico { flex: none; width: 52px; height: 52px; }
.dl-automap-head .dl-ico svg { width: 26px; height: 26px; }
.dl-automap h2 { margin: 0; font: 700 18px var(--title); letter-spacing: .06em; text-transform: uppercase; color: #4a2a0c; }
.page-body .dl-automap p { margin: 0; text-indent: 0; }
.page-body .dl-automap ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; list-style: decimal; }
.page-body .dl-automap li::marker { color: #a0360f; font-weight: 800; }
.page-body .dl-automap code { padding: 1px 6px; border-radius: 4px; background: #fffaf0; border: 1px solid #e6d4ad; font-size: .92em; white-space: nowrap; }
.dl-automap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.page-body .dl-automap-actions .btn { width: auto; padding-left: 22px; padding-right: 22px; }
.dl-automap-actions a:not(.btn) { font-weight: 700; color: #87470f; text-underline-offset: 3px; }
