/* Layout: an Armory-style character screen over a dark scene, then the bot's screens, then ruled bands that answer search questions in plain text. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/open-sans-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/open-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/jost-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/jost-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: dark;
  --night: #170e09;
  --night-deep: #0e0906;
  --bar: #211510;
  --bone: #ffffff;
  --mist: #cacaca;
  --steel: #4a3a24;
  --gold: #f8b700;
  --gold-hot: #ffc933;
  --on-gold: #211510;
  --class-rogue: #fff468;
  --q-rare: #0081ff;
  --q-uncommon: #1eff00;
  --q-common: #ffffff;
  --q-empty: #4a4238;
  --chat: #0e1621;
  --bubble: #182533;
  --line: #2d3f52;
  --stripe: #1f2f40;
  --key: #2a3a4c;
  --key-hot: #3390ec;
  --tg-ink: #f2f6fa;
  --tg-muted: #8fa3b5;
  --tg-link: #71baf7;
  --toast: #33404f;
  --page: "Open Sans", Arial, Helvetica, sans-serif;
  --head: "Jost", "Futura", "Trebuchet MS", Arial, sans-serif;
  --tg: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--bone); font-family: var(--page); font-size: 1.0625rem; line-height: 1.6; }
.wrap { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.3125rem; line-height: 1.2; }
p { margin: 0; }
code { font-family: var(--tg); font-size: 0.86em; background: #2a1c12; border-radius: 4px; padding: 0.08em 0.36em; white-space: nowrap; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 6px; }
.bar-rule { background: var(--bar); border-bottom: 1px solid var(--steel); }
.mark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-size: 1.625rem; font-weight: 700; text-decoration: none; }
.mark img { display: block; mix-blend-mode: screen; }
.nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav a { font-family: var(--head); font-weight: 700; font-size: 0.9375rem; text-transform: uppercase; text-decoration: none; color: var(--gold); }
.nav a:hover { color: var(--gold-hot); }

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, rgba(23, 14, 9, .18) 68%, var(--night) 100%),
  linear-gradient(90deg, rgba(23, 14, 9, .88) 0%, rgba(23, 14, 9, .64) 36%, rgba(23, 14, 9, .10) 62%, rgba(23, 14, 9, .30) 100%),
  url("scene.jpg") center / cover no-repeat, var(--night); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(32px, 5vw, 56px); }
.hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.5; max-width: 30em; }
.cta { display: inline-block; background: var(--gold); color: var(--on-gold); font-family: var(--head); font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-transform: uppercase; text-decoration: none; padding: 15px 28px; border-radius: 3px; }
.cta:hover { background: var(--gold-hot); }
.status { color: var(--mist); font-size: 0.9375rem; line-height: 1.45; max-width: 27em; }

.armory { margin: 0; display: grid; gap: 14px; min-width: 0; }
.armory figcaption { color: var(--mist); font-size: 0.875rem; text-align: center; }
.armory-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--steel); }
.armory-name { font-family: var(--head); font-weight: 700; font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.1; color: var(--class-rogue); }
.armory-meta { display: grid; padding-left: 20px; border-left: 1px solid var(--steel); }
.armory-ilvl { color: var(--gold); font-size: 1.25rem; line-height: 1.2; text-transform: uppercase; }
.armory-sub { font-size: 0.75rem; line-height: 1.5; }
.armory-sub b { color: var(--gold); font-weight: 400; }
.armory-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) minmax(0, 1fr); grid-template-areas: "left render right" "weapons weapons weapons"; gap: 10px; align-items: center; }
.render { grid-area: render; display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .6)); }
.gear { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.gear-left { grid-area: left; }
.gear-right { grid-area: right; }
.gear-weapons { grid-area: weapons; display: flex; justify-content: center; gap: 28px; }
.gear-slot { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px; }
.gear-right .gear-slot, .gear-weapons .gear-slot:first-child { flex-direction: row-reverse; text-align: right; }
.gear-weapons .gear-slot:nth-child(2) .gear-text { display: none; }
.gear-icon { flex: none; width: 40px; height: 40px; border: 1px solid currentColor; background: #0b0806 url("items.jpg") calc(var(--c) * 100% / 3) calc(var(--r) * 100% / 3) / 400% 400% no-repeat; }
.gear-text { display: grid; min-width: 0; }
.gear-name { font-size: 0.8125rem; line-height: 1.25; overflow-wrap: anywhere; }
.gear-ilvl { color: var(--mist); font-size: 0.75rem; line-height: 1.35; }
.q-rare { color: var(--q-rare); }
.q-uncommon { color: var(--q-uncommon); }
.q-common { color: var(--q-common); }
.q-empty { color: var(--q-empty); }
.q-empty .gear-icon { filter: grayscale(1) brightness(.34); }

.screens { display: grid; gap: 14px; margin-top: 10px; }
.screen { margin: 0; width: 100%; max-width: 460px; display: grid; gap: 10px; background: var(--chat); border: 1px solid #2c4057; border-radius: 12px; padding: 12px; }
.screen figcaption { font-size: 14px; font-weight: 600; color: var(--tg-muted); }
.screen .chat { display: grid; gap: 6px; min-width: 0; }

.tg { font-family: var(--tg); font-size: 15px; line-height: 1.4; color: var(--tg-ink); }
.msg { background: var(--bubble); border-radius: 14px 14px 14px 4px; overflow: hidden; min-width: 0; }
.pic { aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #4b4426, #141a22 72%); }
.pic { position: relative; overflow: hidden; }
.pic img { position: absolute; inset: 2% 0; display: block; width: 100%; height: 96%; object-fit: contain; }
.blocks { display: grid; gap: 9px; padding: 10px 12px 11px; min-width: 0; }
.blocks p { margin: 0; }
.blocks ul { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
.t2 { font-size: 21px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.t3 { font-size: 16px; font-weight: 700; }
.sub { color: var(--tg-muted); font-size: 14px; }
.callout { font-weight: 600; }
.foot { color: var(--tg-muted); font-size: 12.5px; }
.tablewrap { overflow-x: auto; }
.tg table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tg th, .tg td { border: 1px solid var(--line); padding: 4px 7px; text-align: left; vertical-align: middle; }
.tg th { font-weight: 600; }
.tg tbody tr:nth-child(even) td { background: var(--stripe); }
.tg .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv td:first-child { color: var(--tg-muted); white-space: nowrap; width: 42%; }
.slot { color: var(--tg-muted); }
.keys { display: grid; gap: 3px; margin-top: 3px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.key { display: block; font-size: 14px; font-weight: 500; text-align: center; background: var(--key); color: var(--tg-ink); border-radius: 7px; padding: 9px 8px; overflow-wrap: anywhere; }
.key.hot { background: var(--key-hot); }
.key.off { color: #6d8094; }
.open { color: var(--tg-link); }

.band { border-top: 1px solid var(--steel); }
.band-in { display: grid; gap: clamp(22px, 3vw, 34px); padding-block: clamp(40px, 6vw, 68px); }
.answer { max-width: 40em; font-size: 1.1875rem; line-height: 1.58; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; padding-inline: clamp(16px, 2.6vw, 34px); border-left: 1px solid var(--steel); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.num-big { font-family: var(--head); color: var(--gold); font-size: clamp(2.75rem, 5vw, 3.75rem); font-weight: 700; line-height: 1; grid-row: span 2; }
.steps h3 { align-self: end; }
.steps p { color: var(--mist); font-size: 1.0625rem; line-height: 1.5; margin-top: 4px; }
.note { color: var(--mist); font-size: 1.0625rem; max-width: 42em; }

.out { justify-self: end; background: #2b5278; border-radius: 14px 14px 4px 14px; padding: 7px 12px; max-width: 86%; overflow-wrap: anywhere; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 12px; }
.split > div { display: grid; gap: 16px; align-content: start; min-width: 0; }
.split > div:first-child { padding-right: clamp(20px, 4vw, 52px); }
.split > div:last-child { padding-left: clamp(20px, 4vw, 52px); border-left: 1px solid var(--steel); }
.split h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.facts { margin: 0; padding-left: 1.1em; display: grid; gap: 7px; }
.facts li::marker { color: var(--gold); }

.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--steel); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 15px; font-size: clamp(1.1875rem, 2.2vw, 1.4375rem); font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.75rem; font-weight: 400; line-height: 1; flex: none; transition: transform .16s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; max-width: 42em; color: var(--mist); }

.legal { border-top: 1px solid var(--steel); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding-block: 22px 34px; color: var(--mist); font-size: 0.9375rem; line-height: 1.45; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .armory-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "render render" "left right" "weapons weapons"; }
  .render { justify-self: center; width: min(220px, 64vw); }
  .q-empty { display: none; }
  .gear-right .gear-slot { flex-direction: row; text-align: left; }
  .gear-weapons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gear-weapons .gear-slot:first-child { flex-direction: row; text-align: left; }
  .gear-weapons .gear-slot:nth-child(2) .gear-text { display: grid; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps li, .steps li:first-child { border-left: 0; padding-inline: 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .split > div:first-child { padding-right: 0; }
  .split > div:last-child { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}

.doc { display: grid; gap: 20px; padding-block: clamp(36px, 6vw, 64px); max-width: 860px; }
.doc > * { min-width: 0; }
.doc h1 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); line-height: 1.05; }
.doc h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-top: 18px; }
.doc .cta { font-size: 1.125rem; margin-top: 6px; }
.scroll { overflow-x: auto; }
.plain { width: 100%; border-collapse: collapse; font-size: 1.0625rem; line-height: 1.45; }
.plain th, .plain td { border-bottom: 1px solid var(--steel); padding: 10px 14px 10px 0; text-align: left; vertical-align: top; }
.plain th { font-weight: 700; }
.checked { color: var(--mist); font-size: 1rem; }
.morelink { font-size: 1.0625rem; }
.legal a { text-underline-offset: 3px; }
