html:has(body.promo-theme) {
  scrollbar-gutter: stable;
  scrollbar-color: #a97b50 #201914;
  background: #191511;
}

.promo-theme {
  --bg: #191511;
  --deep: #201914;
  --ink: #f2e6d3;
  --muted: #dfcdb4;
  --gold: #d9b57a;
  --gold-light: #efcf96;
  --line: #6d5940;
  --paper: #f2ecdf;
  --paper-ink: #2a241e;
  --paper-copy: #574b3e;
  --paper-line: #d9ceba;
  --paper-accent: #674217;
  --promo-width: 1168px;
  --frame-edge: #90704c;
}

.promo-theme .site-header {
  height: auto;
  background: #211b17;
  border-color: #584733;
}

.promo-theme .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: min(var(--promo-width), calc(100% - 48px));
  min-height: 76px;
  padding: 0;
  gap: clamp(16px, 3vw, 36px);
}

.promo-theme .header-brand-group .brand { width: clamp(126px, 18vw, 178px); }
.promo-theme .header-nav { justify-self: end; margin: 0; gap: clamp(14px, 2.2vw, 32px); }
.promo-theme .header-nav a { display: flex; font: 700 var(--site-control-size)/1.2 var(--body); }
.promo-theme .header-nav a[aria-current]::after { height: 1px; background: var(--gold-light); }

.promo-theme .button {
  gap: 14px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--gold-light);
  border-radius: 5px;
  background: var(--gold);
  color: var(--paper-ink);
  font: 650 17px/1.2 var(--section);
  letter-spacing: .025em;
  transition: background-color .18s ease;
}

.promo-theme .button::before { content: none; }
.promo-theme .button svg { width: 19px; height: 19px; }
.promo-theme .button:hover { background: var(--gold-light); color: var(--paper-ink); transform: none; }
.promo-theme .site-header .button.small { min-height: 42px; font-size: 15px; white-space: nowrap; }

.promo-theme .site-footer { background: #211b17; border-color: #584733; }

.selector-launch .launch-steps li { position: relative; }
.promo-detail { isolation: isolate; }
.promo-detail::after { content: none; }
.promo-detail::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, #1915115c, #191511b0), url("../img/bg.jpg") center / cover no-repeat;
}

.promo-document-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.promo-detail .guide-layout {
  width: min(var(--promo-width), calc(100% - 48px));
  position: relative;
  margin: 24px auto clamp(36px, 6vw, 76px);
  padding: 0;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--frame-edge);
  border-radius: 12px;
  background: var(--paper);
}

.promo-detail .guide-rail {
  position: relative;
  top: auto;
  margin: 0;
  border-inline-end: 1px solid var(--frame-edge);
  border-radius: 11px 0 0 11px;
  background:
    linear-gradient(115deg, #211b17eb 3%, #311f18ae),
    url("../img/cdn/30390915128bc6b834e1b80678f0df.png") center / 100% auto repeat-y,
    #2d211b;
}

.promo-detail .guide-navigation {
  position: sticky;
  top: 16px;
  padding: 13px 10px 10px;
  border: 0;
  background: none;
}

.promo-detail .rail-title {
  padding: 2px 0 10px;
  margin: 0 7px 4px;
  border-bottom: 1px solid #b6955a55;
  font: 650 22px/1.22 var(--section);
}

.promo-detail .guide-navigation nav { gap: 1px; }
.promo-detail .guide-navigation nav a {
  gap: 8px;
  padding: 7px 6px;
  min-height: 44px;
  border-bottom: 1px solid #b6955a24;
  font-size: var(--site-control-size);
  line-height: 1.25;
}

.promo-detail .guide-navigation nav a:is(:hover,[aria-current]) {
  background: linear-gradient(90deg, #8d5d315b, #69411f10 91%);
}
.promo-detail .guide-navigation nav a[aria-current]::after { color: var(--gold); font-size: 19px; }
.promo-detail .rail-number { font-size: var(--site-meta-size); }

.promo-detail .guide-content {
  --ink: var(--paper-ink);
  --muted: var(--paper-copy);
  --line: var(--paper-line);
  --guide-focus: #80521f;

  padding: 0 clamp(18px, 2.7vw, 37px);
  border-radius: 0 11px 11px 0;
  background: var(--paper);
  color: var(--ink);
}

.promo-detail .chapter {
  padding: clamp(28px, 4vw, 49px) 0;
  border-color: var(--paper-line);
  scroll-margin-top: 24px;
}

.promo-detail .section-heading { gap: 16px; margin-bottom: 23px; }
.promo-detail .section-heading h2 { max-width: none; color: var(--paper-ink); }
.promo-detail .section-heading > span { min-width: 0; background: linear-gradient(90deg, #b69b75, #d9ceba60); }
.promo-detail .statement { margin-bottom: 16px; }
.promo-detail .guide-content :focus-visible { outline-color: var(--guide-focus); }

.promo-detail .intro-composition { align-items: start; gap: clamp(18px, 3vw, 35px); }
.promo-detail .world-figure img { width: 100%; height: auto; border-radius: 8px; }
.promo-detail .world-figure figcaption { margin-top: 8px; font-size: var(--site-meta-size); }
.promo-detail .preview-note { color: var(--paper-copy); }

.promo-detail .feature-layout { column-gap: clamp(18px, 2.6vw, 34px); }
.promo-detail .feature-points li { border-color: var(--paper-line); }
.promo-detail .feature-points li::before { background: #9b6b33; }
.promo-detail :is(.mobile-controls dt, .mobile-access h4, .starter-grants h4) { color: var(--paper-accent); }

.promo-detail .table-wrap {
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  background: #f8f3e8;
  color: var(--paper-ink);
}
.promo-detail .biology-table :is(th, td) { border-bottom-color: var(--paper-line); }
.promo-detail .biology-table thead { background: #e9dbc1; color: var(--paper-accent); }
.promo-detail .biology-table tbody tr:nth-child(even) { background: #f0e7d2; }
.promo-detail .biology-table tbody th { color: var(--paper-accent); }
.promo-detail .biology-table tbody td:last-child { color: #3b582b; }
.promo-detail .horse-table tbody th { background: #f8f3e8; }
.promo-detail .horse-table tbody tr:nth-child(even) th { background: #f0e7d2; }
.promo-detail .horse-table thead th:first-child,
.promo-detail .horse-table tfoot :is(th, td) { background: #e9dbc1; color: var(--paper-accent); border-color: var(--paper-line); }

.promo-detail .starter-grants .grant-art {
  background: #f8f3e8;
  border-color: var(--paper-line);
}
.promo-detail .starter-inventory li {
  background: #f8f3e8;
  border-color: var(--paper-line);
}
.promo-detail .starter-inventory li:hover { background: #eee2ca; }
.promo-detail .starter-inventory .item-qty { color: var(--paper-accent); }

.promo-detail .dungeon-card {
  --ink: #f2e6d3;
  --muted: #dfcdb4;
  --guide-focus: var(--gold-light);
}

.promo-detail .gift-pair { gap: 14px; margin-block: 26px; }
.promo-detail .reward {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 19px 18px;
  min-height: 0;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: #f8f3e8;
  box-shadow: none;
}
.promo-detail .reward-art {
  width: 56px;
  height: 56px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  background: #efe5d1;
}
.promo-detail .reward-art img { width: 38px; height: 38px; filter: none; transition: none; }
.promo-detail .reward-art .reward-system-icon { filter: brightness(.35); }
.promo-detail .reward:hover .reward-art img { transform: none; }
.promo-detail .reward h4 { margin: 0 0 5px; color: var(--paper-ink); font-size: 1.55rem; }
.promo-detail .reward p { color: var(--paper-copy); font-size: var(--site-copy-size); line-height: 1.48; }
.promo-detail .reward a, .promo-detail .feature-wiki-link { color: var(--paper-accent); }
.promo-detail .reward a { margin-top: 4px; gap: 8px; }
.promo-detail .reward a svg, .promo-detail .feature-wiki-link svg { width: 17px; height: 17px; }
.promo-detail .feature-wiki-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-block-start: 14px;
  font-weight: 700;
  text-underline-offset: .23em;
}

.promo-detail .character-showcase {
  overflow: hidden;
  outline: 0;
  margin-inline: 0;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  background: #f8f3e8;
}
.promo-detail .character-showcase::before, .promo-detail .character-showcase::after { content: none; }
.promo-detail .character-visual {
  min-height: 505px;
  background: linear-gradient(180deg, #1c181228, #1c181278),
    url("../img/tanitim-premium/character-courtyard.jpg") 54% center / cover #282019;
}
.promo-detail .character-showcase .character-stage { background: none; border-color: var(--paper-line); }
.promo-detail .character-showcase .character-panel { min-height: 0; padding: clamp(17px, 2.5vw, 29px); }
.promo-detail .character-showcase .character-panel :is(h3, h4, .character-paths),
.promo-detail .character-option > span { text-align: start; }
.promo-detail .character-showcase .character-panel h3 { color: var(--paper-ink); margin-bottom: 3px; }
.promo-detail .character-showcase .character-paths { color: var(--paper-accent); margin-bottom: 11px; }
.promo-detail .character-showcase .character-panel h4 { min-height: 0; color: var(--paper-ink); }
.promo-detail .character-showcase .character-description { min-height: 0; font-size: var(--site-copy-size); line-height: 1.56; }
.promo-detail .character-option { margin-top: 17px; }
.promo-detail .character-option > span { color: var(--paper-accent); font-size: var(--site-control-size); }
.promo-detail .character-option button {
  height: auto;
  min-height: 44px;
  padding: 7px 5px;
  white-space: normal;
  border: 1px solid #ab916c;
  border-radius: 5px;
  color: var(--paper-ink);
  background: transparent;
}
.promo-detail .character-option button::before { content: none; }
.promo-detail .character-option button:hover { background: #efe5d1; }
.promo-detail .character-option button[aria-pressed="true"] { background: #e4c896; border-color: #966e3c; box-shadow: none; }
.promo-detail .character-showcase .character-school-description { min-height: 0; margin: 12px 0 20px; }
.promo-detail .character-register { align-self: flex-start; width: auto; }
.promo-detail .character-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #cfab76;
  border-radius: 50%;
  background: #211b17;
  filter: none;
}
.promo-detail .character-arrow svg { width: 29px; height: 36px; }
.promo-detail .character-arrow :is(.arrow-frame, .arrow-detail, .arrow-inset) { display: none; }
.promo-detail .character-arrow:hover { background: #503822; }
.promo-detail .character-visual :focus-visible { outline-color: var(--gold-light); outline-offset: 2px; }
.promo-detail .character-visual:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -4px; }
.promo-detail .character-render-status { bottom: 4px; color: var(--gold-light); }

@media (max-width: 740px) {
  .promo-detail .character-visual { min-height: clamp(295px, 89vw, 430px); }
}

@media (min-width: 1080px) {
  .promo-detail .intro-composition { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .promo-detail .feature-with-guide { grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); }
  .promo-detail .feature-with-guide .panel-figure { margin: 0; justify-self: center; }
}

@media (max-width: 900px) {
  .promo-detail .guide-layout { display: block; }
  .promo-detail .guide-rail { position: sticky; top: 0; border: 0; border-block-end: 1px solid var(--frame-edge); border-radius: 11px 11px 0 0; background: #211b17; }
  .promo-detail .guide-toggle { border-radius: 11px 11px 0 0; background: #2a211a; min-height: 55px; padding: 12px 16px; }
  .promo-detail .guide-navigation { position: static; }
  .promo-detail .chapter { scroll-margin-top: 72px; }
}

@media (max-width: 740px) {
  .promo-theme .header-inner {
    grid-template-columns: 1fr auto;
    width: calc(100% - 32px);
    gap: 3px 12px;
    padding-top: 8px;
  }
  .promo-theme .header-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    gap: 8px;
  }
  .promo-theme .header-nav a { min-height: 43px; font-size: 14px; }
  .promo-theme .site-header .button.small { grid-row: 1; grid-column: 2; justify-self: end; font-size: 14px; }
  .promo-theme .header-brand-group { grid-row: 1; grid-column: 1; justify-self: start; }

  .promo-detail .guide-layout { width: calc(100% - 32px); margin-top: 16px; }
}

@media (max-width: 600px) {
  .promo-detail .guide-content { padding-inline: 14px; }
  .promo-detail .section-heading { gap: 8px; }
}
