.wiki-content > .ad-placement:not([hidden]) { width: 100%; margin-top: 26px; }

/* Dedicated asset path prevents old wiki layouts from sharing a browser cache entry. */
.wiki-page { padding: 0 0 88px; }
.wiki-page [hidden] { display: none !important; }
.wiki-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wiki-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wiki-page svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wiki-top-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.wiki-top-nav a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: .9rem; }
.wiki-top-nav a:hover, .wiki-top-nav a[aria-current="page"] { color: var(--gold-light); background: var(--surface); }
.wiki-shell { max-width: 1536px; padding: 0 36px; margin: 0 auto; display: grid; grid-template-columns: 246px minmax(0, 790px) 160px; gap: clamp(28px, 3vw, 52px); align-items: start; justify-content: center; }
.wiki-sidebar { position: sticky; top: var(--header-h); height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column; padding: 30px 18px 20px 0; border-right: 1px solid var(--border); min-width: 0; }
.wiki-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.wiki-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-size: 1.14rem; font-weight: 700; }
.wiki-wordmark svg { color: var(--gold-light); width: 22px; height: 22px; }
.wiki-search-wrap { position: relative; display: flex; align-items: center; margin-bottom: 22px; }
.wiki-search-wrap > svg { position: absolute; left: 11px; color: var(--muted); pointer-events: none; width: 16px; height: 16px; }
.wiki-search-wrap input { width: 100%; min-width: 0; height: 42px; padding: 10px 29px 10px 36px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .82rem; caret-color: var(--gold); }
.wiki-search-wrap input::placeholder { color: var(--muted); opacity: 1; }
.wiki-search-wrap kbd { position: absolute; right: 12px; font-size: .75rem; color: var(--muted); pointer-events: none; }
.wiki-search-wrap:focus-within kbd { display: none; }
.wiki-nav { flex: 1; overflow-y: auto; padding-right: 9px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.wiki-nav-group + .wiki-nav-group { margin-top: 23px; }
.wiki-nav-group > p { margin: 0 0 7px 10px; color: var(--text); font-size: .75rem; font-weight: 650; }
.wiki-nav-group a { display: block; padding: 8px 10px; margin: 1px 0; border-radius: 6px; color: var(--muted); font-size: .83rem; line-height: 1.35; transition: background .15s, color .15s; }
.wiki-nav-group a:hover { background: var(--surface); color: var(--text); }
.wiki-nav-group a[aria-current="page"] { color: var(--gold-light); background: rgba(245,184,46,.095); font-weight: 600; }
.wiki-sidebar-help { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding: 17px 6px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; }
.wiki-sidebar-help:hover { color: var(--gold-light); }
.wiki-content { min-width: 0; padding-top: 32px; }
.wiki-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; min-height: 30px; }
.wiki-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; font-size: .76rem; color: var(--muted); }
.wiki-copy { display: inline-flex; align-items: center; gap: 7px; flex: none; border: 0; background: transparent; padding: 6px 0 6px 8px; color: var(--muted); font: inherit; font-size: .73rem; cursor: pointer; }
.wiki-copy:hover { color: var(--gold-light); }
.wiki-copy svg { width: 14px; height: 14px; }
.wiki-section { min-width: 0; scroll-margin-top: calc(var(--header-h) + 28px); padding-bottom: 30px; }
.wiki-section + .wiki-section { border-top: 1px solid var(--border); padding-top: 48px; }
.wiki-page[data-ready] .wiki-section { border: 0; padding-top: 0; }
.wiki-topic-head { margin-bottom: 36px; }
.wiki-topic-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.wiki-topic-head h2:focus { outline: none; }
.wiki-section .wiki-lead { margin: 17px 0 18px; color: var(--muted); font-size: 1.1rem; line-height: 1.65; max-width: 62ch; }
.wiki-section .wiki-audience { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.wiki-audience svg { width: 14px; height: 14px; color: var(--gold-light); }
.wiki-section h3 { margin: 38px 0 13px; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; letter-spacing: -.018em; scroll-margin-top: calc(var(--header-h) + 28px); }
.wiki-section h3 .wiki-anchor { margin-left: .45em; text-decoration: none; color: var(--muted); opacity: 0; transition: opacity .15s; }
.wiki-section h3 .wiki-anchor::before { content: '#'; }
.wiki-section h3:hover .wiki-anchor, .wiki-section h3 .wiki-anchor:focus-visible { opacity: .8; }
@media (hover: none) { .wiki-section h3 .wiki-anchor { opacity: .45; } }
.wiki-section p { margin: 0 0 17px; max-width: 72ch; color: var(--muted); font-size: .95rem; line-height: 1.85; }
.wiki-section strong { color: var(--text); font-weight: 600; }
.wiki-section a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,217,120,.4); }
.wiki-section a:hover { text-decoration-color: currentColor; }
.wiki-section code { padding: .14em .4em; border-radius: 4px; background: var(--surface-2); color: var(--gold-light); font-size: .88em; overflow-wrap: anywhere; }
.wiki-note { margin: 26px 0; padding: 19px 21px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: .87rem; line-height: 1.75; }
.wiki-note > strong { display: block; margin-bottom: 5px; color: var(--gold-light); font-size: .85rem; }
.wiki-note.wiki-video { max-width: 75ch; border-left: 5px solid var(--gold-light); }
.wiki-note.wiki-video a { color: var(--gold-light); }
.wiki-steps { list-style: none; counter-reset: wiki-step; margin: 19px 0 28px; padding: 0; }
.wiki-steps li { counter-increment: wiki-step; position: relative; min-height: 34px; padding: 0 0 20px 44px; color: var(--muted); font-size: .93rem; line-height: 1.75; }
.wiki-steps li:last-child { padding-bottom: 0; }
.wiki-steps li::before { content: counter(wiki-step); position: absolute; top: 0; left: 0; width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--gold-light); font-size: .76rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.wiki-paths { list-style: none; padding: 0; margin: 18px 0 28px; }
.wiki-paths li { border-bottom: 1px solid var(--border); }
.wiki-paths li:first-child { border-top: 1px solid var(--border); }
.wiki-section .wiki-paths a { display: grid; grid-template-columns: minmax(0,1fr) 18px; gap: 5px 20px; padding: 18px 4px; color: var(--text); text-decoration: none; }
.wiki-paths a > strong { font-size: .95rem; }
.wiki-paths a > span { grid-column: 1; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.wiki-paths svg { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); }
.wiki-paths a:hover strong, .wiki-paths a:hover svg { color: var(--gold-light); }
.wiki-table-wrap { max-width: 100%; overflow-x: auto; margin: 22px 0 30px; border: 1px solid var(--border); border-radius: 10px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.wiki-table { width: 100%; border-collapse: collapse; text-align: left; }
.wiki-table th, .wiki-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.7; }
.wiki-table th { background: var(--surface); color: var(--text); font-size: .77rem; font-weight: 650; }
.wiki-table td { color: var(--muted); font-size: .84rem; }
.wiki-table td:first-child { color: var(--text); min-width: 145px; }
.wiki-table td code { display: inline-block; margin: 2px 1px; }
.wiki-table tr:last-child td { border-bottom: 0; }
.wiki-outline { position: sticky; top: calc(var(--header-h) + 36px); margin-top: 105px; min-width: 0; }
.wiki-outline > p { font-size: .75rem; font-weight: 650; color: var(--text); margin-bottom: 13px; }
.wiki-outline nav { display: grid; gap: 12px; }
.wiki-outline nav a { color: var(--muted); font-size: .75rem; line-height: 1.65; }
.wiki-outline nav a:hover, .wiki-outline nav a[aria-current="location"] { color: var(--gold-light); }
.wiki-outline-help { display: block; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; }
.wiki-pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 20px; }
.wiki-pager a { display: grid; gap: 7px; color: var(--text); max-width: 47%; font-size: .9rem; }
.wiki-pager a:last-child { text-align: right; margin-left: auto; }
.wiki-pager small { color: var(--muted); font-size: .72rem; }
.wiki-pager a:hover { color: var(--gold-light); }
.wiki-search-results { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.wiki-results-count { color: var(--muted); font-size: .76rem; margin: 0 8px 13px; }
.wiki-search-result { display: block; padding: 12px 9px; border-radius: 7px; border-bottom: 1px solid var(--border); }
.wiki-search-result:hover { background: var(--surface); }
.wiki-search-result strong { display: block; color: var(--text); font-size: .85rem; margin-bottom: 5px; }
.wiki-search-result span { display: block; color: var(--muted); font-size: .74rem; line-height: 1.65; overflow-wrap: anywhere; }
.wiki-empty-search { padding: 0 8px; color: var(--muted); font-size: .83rem; line-height: 1.7; }
.wiki-fix { border-bottom: 1px solid var(--border); }
.wiki-fix:first-of-type { border-top: 1px solid var(--border); }
.wiki-fix summary { cursor: pointer; padding: 19px 12px 19px 2px; color: var(--text); font-size: .94rem; font-weight: 550; line-height: 1.6; }
.wiki-fix > div { padding: 0 18px 21px; color: var(--muted); font-size: .9rem; line-height: 1.85; }
.wiki-fix[open] summary { color: var(--gold-light); }
.wiki-demo { margin: 28px 0 34px; min-width: 0; }
.wiki-demo figcaption { margin: 0 0 10px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.wiki-demo-mount { overflow: hidden; background: var(--dc-bg, #313338); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.wiki-demo-mount:empty { display: none; }
.wiki-demo-title { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 12px 18px; background: var(--dc-header, #2b2d31); border-bottom: 1px solid rgba(0,0,0,.2); color: #f2f3f5; font-size: .82rem; font-weight: 600; }
.wiki-demo-hash { color: #b5bac1; font-size: 1.2rem; font-weight: 400; }
.wiki-demo-title small { margin-left: auto; color: #c8cbd0; font-size: .67rem; font-weight: 400; }
.wiki-demo-scene { padding: 22px 20px; min-height: 226px; display: grid; align-content: start; gap: 19px; overflow: hidden; }
.wiki-demo-message { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; }
.wiki-demo-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #7262a0; color: #fff; font-size: .82rem; font-weight: 600; }
.wiki-demo-avatar.staff { background: #427571; }
.wiki-demo-avatar img { width: 34px; height: 34px; border-radius: 50%; }
.wiki-demo-author { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 5px; color: #f2f3f5; font-size: .82rem; font-weight: 600; }
.wiki-demo-author.bot { color: #ffda87; }
.wiki-demo-author small { padding: 1px 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: .53rem; }
.wiki-section .wiki-demo-message p { color: #e0e1e5; font-size: .83rem; line-height: 1.65; margin: 0; }
.wiki-demo-file { display: flex; align-items: center; gap: 12px; background: #2b2d31; padding: 13px 15px; border-radius: 7px; margin-top: 12px; }
.wiki-demo-file strong { color: #e4d3ac; font-size: .8rem; }
.wiki-demo-file small { display: block; color: #c1c5cb; font-size: .7rem; margin-top: 4px; }
.wiki-demo-ui { border-radius: 8px; background: #25262a; padding: 17px; }
.wiki-demo-ui-title { color: #ffda87; font-size: .85rem; margin-bottom: 15px; font-weight: 600; }
.wiki-demo-field { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 10px 0; font-size: .78rem; line-height: 1.6; border-bottom: 1px solid rgba(255,255,255,.08); color: #c7c9d0; }
.wiki-demo-field:last-child { border: 0; padding-bottom: 0; }
.wiki-demo-field strong { color: #f0f0f3; font-size: .78rem; text-align: right; max-width: 64%; }
.wiki-demo-state { padding: 10px 13px; border-radius: 5px; color: #b8e2c8; background: rgba(65,153,96,.12); font-size: .77rem; line-height: 1.6; }
.wiki-demo-controls { padding: 15px 18px; background: #292b2f; border-top: 1px solid rgba(0,0,0,.2); }
.wiki-section .wiki-demo-caption { margin: 0 0 13px; min-height: 36px; max-width: none; color: #c9cbd1; font-size: .77rem; line-height: 1.6; }
.wiki-demo-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wiki-demo-progress { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; color: #c4c6ce; font-variant-numeric: tabular-nums; }
.wiki-demo-dots { display: flex; gap: 4px; margin-right: 7px; }
.wiki-demo-dots i { width: 5px; height: 5px; border-radius: 99px; background: #737781; }
.wiki-demo-dots i.on { background: #ffda87; }
.wiki-demo-action { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 5px; background: #f3c469; color: #231a0a; font: inherit; font-weight: 650; font-size: .74rem; cursor: pointer; }
.wiki-demo-action:hover { background: #ffda87; }
.wiki-demo-action svg { width: 14px; height: 14px; }
[data-wiki-demo="lootlabs"] .wiki-demo-scene { background: #f1edff; min-height: 410px; }
.wiki-loot { position: relative; overflow: hidden; width: 100%; color: #252438; border-radius: 10px; background: #fff; font-size: .8rem; }
.wiki-loot strong { color: inherit; }
.wiki-loot-brand { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid #ece9f5; }
.wiki-loot-brand img { border-radius: 50%; }
.wiki-loot-brand strong, .wiki-loot-brand small { display: block; }
.wiki-loot-brand small { margin-top: 3px; color: #696777; font-size: .75rem; }
.wiki-loot-alternative { display: grid; gap: 5px; padding: 18px 16px; background: #f8f7fc; text-align: center; }
.wiki-loot-alternative strong { font-size: 1rem; }
.wiki-loot-alternative small { color: #696777; }
.wiki-loot-tasks { padding: 16px; }
.wiki-loot-heading { margin-bottom: 10px; font-weight: 550; }
.wiki-loot-task { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 12px; margin-bottom: 7px; border: 1px solid #e4e3ea; border-radius: 8px; background: #f6f6f9; }
.wiki-loot-task strong { display: block; font-size: .72rem; line-height: 1.5; }
.wiki-loot-task small { display: block; margin-top: 3px; color: #696777; font-size: .69rem; line-height: 1.5; }
.wiki-loot-task svg { color: #696777; width: 22px; height: 22px; }
.wiki-loot-task.is-complete { border-color: #c8ecd9; background: #f3fcf7; }
.wiki-loot-task.is-complete svg { color: #fff; background: #07835c; border-radius: 50%; padding: 3px; }
.wiki-loot-reward { padding: 13px; margin-top: 12px; border-radius: 6px; background: #efedf4; color: #6d687b; font-size: .76rem; font-weight: 750; letter-spacing: .06em; text-align: center; }
.wiki-loot-reward.is-ready { background: #5140e9; color: #fff; }
.wiki-loot-success { margin-top: 10px; color: #087653; font-size: .64rem; font-weight: 700; text-align: center; letter-spacing: .06em; }
.wiki-loot-timer { padding: 10px 0; color: #5140b7; font-size: .75rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.wiki-loot-overlay { position: absolute; inset: 0; display: grid; align-items: center; padding: 22px; background: #0009; }
.wiki-loot-prompt { display: grid; gap: 14px; padding: 24px 20px; border-radius: 14px; background: #1c1a32; color: #fff; text-align: center; }
.wiki-loot-prompt strong { font-size: 1rem; }
.wiki-loot-prompt span { color: #c6c2dc; font-size: .8rem; line-height: 1.6; }
.wiki-loot-retry { padding: 13px; border-radius: 7px; background: #3865e9; color: #fff; font-size: .8rem; font-weight: 650; }
.wiki-loot-finished { display: grid; justify-items: center; gap: 16px; padding: 40px 22px; text-align: center; }
.wiki-loot-finished svg { width: 40px; height: 40px; padding: 8px; background: #07835c; color: #fff; border-radius: 50%; }
.wiki-loot-finished strong { font-size: 1.15rem; }
.wiki-loot-finished span { max-width: 40ch; font-size: .82rem; line-height: 1.7; color: #696777; }
.wiki-page[data-ready]:has(#premium-lootlabs:not([hidden])) .wiki-shell { grid-template-columns: 220px minmax(0, 1050px); }
.wiki-page[data-ready]:has(#premium-lootlabs:not([hidden])) .wiki-outline { display: none; }
#premium-lootlabs .wiki-topic-head { margin-bottom: 24px; }
#premium-lootlabs .wiki-lead { max-width: 65ch; }
#premium-lootlabs .wiki-loot-essential { display: grid; gap: 10px; max-width: 75ch; margin-bottom: 24px; padding: 20px 22px; border: 1px solid #c95656; border-left: 5px solid #ef7777; border-radius: 10px; background: #ef777712; line-height: 1.8; }
#premium-lootlabs .wiki-loot-warning { display: block; color: #ff9a9a; font-size: clamp(1.25rem, 3vw, 1.8rem); font-weight: 850; line-height: 1.2; }
#premium-lootlabs .wiki-loot-wait { display: block; color: var(--text); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 750; line-height: 1.55; }
#premium-lootlabs strong { font-weight: 750; }
#premium-lootlabs[data-demo-ready] .wiki-loot-fallback { display: none; }
[data-wiki-demo="lootlabs"] .wiki-demo-mount { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr); align-items: start; gap: 24px; overflow: visible; background: none; border: 0; border-radius: 0; }
.wiki-loot-player { overflow: hidden; min-width: 0; border: 0; border-radius: 14px; background: #17140f; box-shadow: 0 10px 32px #0004; }
.wiki-loot-player .wiki-demo-title { background: transparent; border: 0; padding: 15px 18px; color: var(--text); }
.wiki-loot-player .wiki-demo-scene { min-height: 484px; padding: 0 12px 12px; background: transparent; align-content: stretch; overflow: visible; }
.wiki-loot-player .wiki-loot { min-height: 472px; align-self: start; }
.wiki-loot-player .wiki-demo-controls { display: grid; gap: 16px; min-height: 0; padding: 18px; background: transparent; border: 0; }
.wiki-section .wiki-loot-player .wiki-demo-caption { min-height: 76px; margin: 0; font-size: .82rem; color: var(--text); }
.wiki-loot-player .wiki-demo-title small { font-size: .65rem; }
.wiki-loot-player .wiki-demo-actions { flex-wrap: wrap; }
.wiki-loot-playback { display: flex; gap: 10px; align-items: center; }
.wiki-loot-replay { padding: 8px; min-height: 36px; border: 0; background: transparent; color: #eee7d9; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: .75rem; cursor: pointer; }
.wiki-loot-replay:hover { color: var(--gold-light); }
.wiki-loot-rail { height: 2px; margin: 0 18px; background: #ffffff0d; overflow: hidden; }
.wiki-loot-rail span { display: block; height: 100%; background: #ac9366; transform: scaleX(0); transform-origin: left; }
.wiki-loot-timeline { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.wiki-loot-step { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 13px 10px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.wiki-loot-step-number { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border: 1px solid var(--border-strong); border-radius: 50%; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wiki-loot-step-copy { display: grid; gap: 5px; }
#premium-lootlabs .wiki-loot-step strong { font-size: .87rem; line-height: 1.5; color: inherit; }
.wiki-loot-step-copy > span { font-size: .77rem; line-height: 1.6; }
.wiki-loot-step:hover { background: var(--surface); color: var(--text); }
.wiki-loot-step[aria-current="step"] { color: var(--text); border-color: var(--border-strong); background: #f5b82e12; }
.wiki-loot-step[aria-current="step"] .wiki-loot-step-number { background: #f3c469; color: #231a0a; border-color: #f3c469; }
.wiki-loot-step.is-past .wiki-loot-step-number { color: var(--gold-light); }
.wiki-loot-mission { display: grid; justify-items: center; align-content: center; gap: 20px; min-height: 310px; padding: 25px; text-align: center; background: #f8f7fc; }
.wiki-loot-mission small { color: #696777; font-size: .75rem; }
.wiki-loot-mission strong { font-size: 1.25rem; }
.wiki-loot-mission .wiki-loot-seconds { font-size: 2rem; font-weight: 750; color: #5140b7; font-variant-numeric: tabular-nums; }
.wiki-loot-mission > span:last-child { font-size: .82rem; line-height: 1.7; }
.wiki-loot-task, .wiki-loot-reward { position: relative; }
@media (max-width: 700px) {
  [data-wiki-demo="lootlabs"] .wiki-demo-mount { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wiki-loot-player .wiki-demo-scene { padding: 0 10px 10px; }
  .wiki-loot-player .wiki-demo-controls { padding: 16px; }
  .wiki-section .wiki-loot-player .wiki-demo-caption { min-height: 140px; }
  .wiki-loot-player .wiki-demo-action { max-width: none; }
  .wiki-loot-timeline { gap: 0; }
}
.wiki-mobile-bar, .wiki-close { display: none; }
.wiki-page :focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 4px; }
.wiki-page ::selection { background: rgba(245,184,46,.28); color: var(--text); }

/* ── Motion ──────────────────────────────────────────────────────────────
   One vocabulary for the whole wiki: quick colour feedback on hover, eased
   entrances for new content, and demo loops that only run while their demo
   is on screen and playing. Everything collapses under reduced motion at the
   end of this file; scripted animations check the same preference. */
.wiki-page {
  --wk-ease-out: cubic-bezier(.16, 1, .3, 1);
  --wk-ease-in: cubic-bezier(.5, 0, .75, 0);
  --wk-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --wk-fast: .16s;
  --wk-base: .28s;
  --wk-slow: .48s;
  interpolate-size: allow-keywords;
}
@keyframes wk-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes wk-fade { from { opacity: 0; } }
@keyframes wk-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes wk-bounce { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Hover and state feedback */
.wiki-top-nav a, .wiki-sidebar-help, .wiki-copy, .wiki-outline nav a, .wiki-paths a strong, .wiki-search-result, .wiki-loot-replay { transition: color var(--wk-fast), background var(--wk-fast); }
.wiki-section a { transition: text-decoration-color var(--wk-fast); }
.wiki-paths svg { transition: transform var(--wk-base) var(--wk-ease-out), color var(--wk-fast); }
.wiki-paths a:hover svg { transform: translateX(4px); }
.wiki-sidebar-help svg { transition: transform var(--wk-base) var(--wk-ease-out); }
.wiki-sidebar-help:hover svg { transform: translateX(3px); }
.wiki-pager a { transition: color var(--wk-fast), transform var(--wk-base) var(--wk-ease-out); }
.wiki-pager a[data-wiki-prev]:hover { transform: translateX(-3px); }
.wiki-pager a[data-wiki-next]:hover { transform: translateX(3px); }
.wiki-copy.is-copied { color: var(--gold-light); }
.wiki-copy.is-copied svg { animation: wk-pop .45s var(--wk-ease-spring); }

/* Guide changes: the opened guide rises in, block after block (index set by script). */
.wiki-section.is-entering > * { animation: wk-rise var(--wk-slow) var(--wk-ease-out) both; animation-delay: calc(var(--wk-i, 0) * 40ms); }

/* Sidebar: one highlight slides to the current guide. */
.wiki-nav { position: relative; }
.wiki-nav-group a { position: relative; z-index: 1; }
.wiki-nav[data-indicator] .wiki-nav-group a[aria-current="page"] { background: transparent; }
.wiki-nav-indicator { position: absolute; top: 0; left: 0; z-index: 0; border-radius: 6px; background: rgba(245,184,46,.095); opacity: 0; pointer-events: none; transition: transform var(--wk-slow) var(--wk-ease-out), height var(--wk-slow) var(--wk-ease-out), width var(--wk-base) var(--wk-ease-out), opacity var(--wk-base); }
.wiki-nav-indicator::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--gold); }

/* "In this guide": a marker follows the section being read. */
.wiki-outline nav { position: relative; padding-left: 14px; border-left: 1px solid var(--border); }
.wiki-outline-marker { position: absolute; top: 0; left: -15px; width: 2px !important; border-radius: 2px; background: var(--gold); opacity: 0; pointer-events: none; transition: transform var(--wk-slow) var(--wk-ease-out), height var(--wk-slow) var(--wk-ease-out), opacity var(--wk-base); }
.wiki-nav-indicator.is-instant, .wiki-outline-marker.is-instant { transition: none; }

/* Landing on a heading from a link briefly marks it. */
.wiki-section h3.wiki-flash { border-radius: 6px; animation: wk-flash 1.6s var(--wk-ease-out); }
@keyframes wk-flash { 0%, 30% { background: rgba(245,184,46,.14); box-shadow: 0 0 0 8px rgba(245,184,46,.14); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }

/* Troubleshooting: answers slide open, the chevron turns. */
.wiki-fix summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; transition: color var(--wk-fast); }
.wiki-fix summary::-webkit-details-marker { display: none; }
.wiki-fix summary::after { content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform var(--wk-base) var(--wk-ease-out), border-color var(--wk-fast); }
.wiki-fix[open] summary::after { transform: translateY(2px) rotate(-135deg); border-color: var(--gold-light); }
@supports selector(::details-content) {
  .wiki-fix::details-content { block-size: 0; overflow: clip; transition: block-size var(--wk-base) var(--wk-ease-out), content-visibility var(--wk-base) allow-discrete; }
  .wiki-fix[open]::details-content { block-size: auto; }
}

/* Reading progress for the open guide, where scroll-driven animation exists. */
@supports (animation-timeline: scroll()) {
  .wiki-page[data-ready]::before { content: ''; position: fixed; z-index: 40; top: var(--header-h); left: 0; right: 0; height: 2px; background: var(--gold-gradient); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; animation: wk-progress linear both; animation-timeline: scroll(root block); }
  @keyframes wk-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Guided demos: progress dots stretch, Krown types before it answers, buttons respond to presses. */
.wiki-demo-dots i { transition: width var(--wk-base) var(--wk-ease-out), background var(--wk-base); }
.wiki-demo-dots i.is-current { width: 15px; }
.wiki-demo-action { transition: background var(--wk-fast), transform var(--wk-fast) ease-out; }
.wiki-demo-action svg { transition: transform var(--wk-base) var(--wk-ease-out); }
.wiki-demo-action:hover svg { transform: translateX(3px); }
.wiki-demo-action:active { transform: scale(.97); }
.wiki-demo-typing-dots { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.wiki-demo-typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b5bac1; animation: wk-bounce 1s ease-in-out infinite; }
.wiki-demo-typing-dots i:nth-child(2) { animation-delay: .15s; }
.wiki-demo-typing-dots i:nth-child(3) { animation-delay: .3s; }

/* LootLabs player. Screens cross-fade in one grid cell; loops follow --wk-frame (set by script). */
.wiki-loot-player .wiki-demo-scene > * { grid-area: 1 / 1; min-width: 0; }
.wiki-loot-frame { display: grid; }
.wiki-loot-frame.is-leaving { pointer-events: none; }
.wiki-loot-step-number { position: relative; transition: background var(--wk-base), color var(--wk-base), border-color var(--wk-base); }
.wiki-loot-step[aria-current="step"] .wiki-loot-step-number::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(var(--gold-light) calc(var(--wk-p, 0) * 1turn), rgba(255,255,255,.08) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); }
.wiki-loot-pointer { position: absolute; width: 28px; height: 28px; pointer-events: none; }
.wiki-loot-task .wiki-loot-pointer { right: 20px; bottom: 0; }
.wiki-loot-reward .wiki-loot-pointer { right: 24%; bottom: -14px; }
.wiki-page .wiki-loot-pointer svg { width: 28px; height: 28px; fill: #fff; color: #252438; filter: drop-shadow(0 2px 3px #0003); animation: wk-pointer var(--wk-frame, 6.5s) var(--wk-ease-out) infinite; }
.wiki-loot-pointer::before { content: ''; position: absolute; left: -9px; top: -11px; width: 30px; height: 30px; border: 2px solid #5140e9; border-radius: 50%; opacity: 0; animation: wk-click var(--wk-frame, 6.5s) ease-out infinite; }
@keyframes wk-pointer { 0%, 8% { opacity: 0; transform: translate(26px, 30px); } 14% { opacity: 1; } 32% { transform: none; } 36% { transform: scale(.82); } 41%, 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes wk-click { 0%, 35% { opacity: 0; transform: scale(.3); } 37% { opacity: .9; } 56%, 100% { opacity: 0; transform: scale(1.7); } }
.wiki-loot-task:has(.wiki-loot-pointer) { animation: wk-task-press var(--wk-frame, 6.5s) ease-out infinite; }
@keyframes wk-task-press { 0%, 34%, 70%, 100% { border-color: #e4e3ea; } 38%, 55% { border-color: #5140e9; } }
.wiki-loot-overlay { animation: wk-fade .32s ease-out .1s both; }
.wiki-loot-prompt { animation: wk-prompt .55s var(--wk-ease-spring) .18s both; }
@keyframes wk-prompt { from { opacity: 0; transform: translateY(12px) scale(.94); } }
.wiki-loot-task.is-new { animation: wk-task-done .8s var(--wk-ease-out) .25s both; }
.wiki-loot-task.is-new svg { animation: wk-check-pop .55s var(--wk-ease-spring) .32s both; }
@keyframes wk-task-done { from { border-color: #e4e3ea; background: #f6f6f9; } }
@keyframes wk-check-pop { from { opacity: 0; transform: scale(0) rotate(-35deg); } }
.wiki-loot-timer-bar { height: 4px; margin: 0 4px 6px; overflow: hidden; border-radius: 99px; background: #e7e3fb; }
.wiki-loot-timer-bar::after { content: ''; display: block; height: 100%; border-radius: inherit; background: #5140e9; transform-origin: 0 50%; animation: wk-deplete var(--wk-frame, 6.5s) linear both; }
@keyframes wk-deplete { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.wiki-loot-reward.is-ready { background-color: #5140e9; background-image: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.38) 50%, transparent 60%); background-size: 250% 100%; background-repeat: no-repeat; background-position: 150% 0; animation: wk-unlock .6s var(--wk-ease-out) .2s both, wk-shine 1.2s ease-in-out .75s both; }
.wiki-loot-reward.is-ready::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: wk-glow var(--wk-frame, 6.5s) ease-out infinite; }
@keyframes wk-unlock { from { background-color: #efedf4; color: #6d687b; } }
@keyframes wk-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes wk-glow { 0%, 36%, 100% { box-shadow: 0 0 0 0 rgba(81,64,233,.45); } 60% { box-shadow: 0 0 0 10px rgba(81,64,233,0); } }
.wiki-loot-success { animation: wk-rise .5s var(--wk-ease-out) .9s both; }
.wiki-loot-loading { display: inline-flex; gap: 6px; }
.wiki-loot-loading i { width: 7px; height: 7px; border-radius: 50%; background: #5140b7; animation: wk-bounce 1.1s ease-in-out infinite; }
.wiki-loot-loading i:nth-child(2) { animation-delay: .15s; }
.wiki-loot-loading i:nth-child(3) { animation-delay: .3s; }
.wiki-loot-finished svg { animation: wk-check-pop .6s var(--wk-ease-spring) .1s both, wk-draw .45s ease-out .4s both, wk-burst 1s ease-out .35s both; }
.wiki-loot-finished strong { animation: wk-rise .5s var(--wk-ease-out) .35s both; }
.wiki-loot-finished span { animation: wk-rise .5s var(--wk-ease-out) .45s both; }
@keyframes wk-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes wk-burst { from { box-shadow: 0 0 0 0 rgba(7,131,92,.5); } to { box-shadow: 0 0 0 18px rgba(7,131,92,0); } }
/* Paused or off-screen: the timed loops freeze; one-shot entrances still finish. */
.wiki-loot-player[data-playing="false"] .wiki-loot-pointer svg,
.wiki-loot-player[data-playing="false"] .wiki-loot-pointer::before,
.wiki-loot-player[data-playing="false"] .wiki-loot-task:has(.wiki-loot-pointer),
.wiki-loot-player[data-playing="false"] .wiki-loot-timer-bar::after,
.wiki-loot-player[data-playing="false"] .wiki-loot-reward.is-ready::after { animation-play-state: paused; }
@media (max-width: 1230px) {
  .wiki-shell { grid-template-columns: 226px minmax(0, 790px); gap: 38px; padding: 0 28px; }
  .wiki-outline { display: none; }
}
@media (max-width: 900px) {
  .wiki-shell { display: block; padding: 0 30px; max-width: 850px; }
  .wiki-page[data-ready] .wiki-sidebar { position: fixed; z-index: 120; top: 0; left: 0; width: min(340px, 88vw); height: 100dvh; background: var(--bg); padding: 24px 20px; border-right: 1px solid var(--border-strong); transform: translateX(-100%); visibility: hidden; transition: transform .22s var(--wk-ease-in), visibility 0s .22s, box-shadow .22s; }
  .wiki-page:not([data-ready]) .wiki-sidebar { position: static; height: auto; border: 0; padding-bottom: 25px; }
  .wiki-page:not([data-ready]) .wiki-nav { columns: 2; }
  .wiki-page:not([data-ready]) .wiki-nav-group { break-inside: avoid; }
  .wiki-nav-group a { min-height: 42px; display: flex; align-items: center; }
  /* The drawer opens slowly with a soft landing and closes quickly. */
  .wiki-menu-open .wiki-page .wiki-sidebar { transform: none; visibility: visible; box-shadow: 30px 0 80px rgba(0,0,0,.55); transition: transform .42s var(--wk-ease-out), visibility 0s, box-shadow .42s; }
  .wiki-menu-open .wiki-page .wiki-nav-group, .wiki-menu-open .wiki-page .wiki-search-wrap { animation: wk-slide .5s var(--wk-ease-out) both; animation-delay: calc(90ms + var(--wk-i, 0) * 35ms); }
  .wiki-menu-open .wiki-page .wiki-nav-indicator { animation: wk-fade .3s ease-out .45s both; }
  @keyframes wk-slide { from { opacity: 0; transform: translateX(-14px); } }
  body.wiki-menu-open { overflow: hidden; }
  .wiki-page .wiki-mobile-bar { position: sticky; top: var(--header-h); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 30px; border-bottom: 1px solid var(--border); background: var(--bg); }
  .wiki-mobile-bar > button { display: flex; align-items: center; gap: 9px; padding: 4px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: .8rem; cursor: pointer; }
  .wiki-mobile-bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .73rem; color: var(--muted); }
  .wiki-close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 7px; background: var(--surface); color: var(--text); cursor: pointer; }
  .wiki-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.65); opacity: 0; visibility: hidden; transition: opacity .22s ease-in, visibility 0s .22s; }
  .wiki-menu-open .wiki-scrim { opacity: 1; visibility: visible; transition: opacity .34s ease-out, visibility 0s; }
  .wiki-content { padding-top: 24px; }
  .wiki-toolbar { margin-bottom: 28px; }
  .wiki-section h3 { scroll-margin-top: calc(var(--header-h) + 78px); }
}
@media (max-width: 600px) {
  .wiki-site .site-header .wrap { gap: 10px; }
  .wiki-site .brand { font-size: 1.05rem; gap: 7px; }
  .wiki-site .brand img { width: 30px; height: 30px; }
  .wiki-site .nav-actions { gap: 6px; }
  .wiki-site .nav-actions > .btn { padding-inline: 10px; font-size: .8rem; }
  .wiki-top-nav a:not([aria-current="page"]) { display: none; }
  .wiki-top-nav a { padding: 8px; font-size: .8rem; }
  .wiki-shell { padding: 0 20px; }
  .wiki-page .wiki-mobile-bar { padding-inline: 20px; }
  .wiki-topic-head h2 { font-size: 2.1rem; }
  .wiki-section .wiki-lead { font-size: 1rem; }
  .wiki-copy span { display: none; }
  .wiki-topic-head { margin-bottom: 28px; }
  .wiki-section p { font-size: .91rem; }
  .wiki-demo-scene { padding: 18px 14px; min-height: 246px; }
  .wiki-demo-controls { padding: 14px; }
  .wiki-demo-message { grid-template-columns: 28px minmax(0,1fr); gap: 9px; }
  .wiki-demo-avatar, .wiki-demo-avatar img { width: 28px; height: 28px; }
  .wiki-demo-title { padding-inline: 14px; }
  .wiki-demo-title small, .wiki-demo-dots { display: none; }
  .wiki-demo-action { max-width: 77%; text-align: left; }
  .wiki-demo-ui { padding: 13px; }
  .wiki-table th, .wiki-table td { padding: 12px; }
  .wiki-note { padding: 16px; }
  .wiki-section h3 { margin-top: 30px; }
  .wiki-page { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiki-page, .wiki-page::before, .wiki-page *, .wiki-page *::before, .wiki-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (max-width: 420px) {
  .wiki-site .wiki-top-nav { display: none; }
}

/* Icônes Krown devant chaque guide du menu */
.wiki-nav-group a:has(.wiki-ico) { display: flex; align-items: center; gap: 10px; }
.wiki-nav-group a:has(.wiki-ico) > span:not([hidden]) { min-width: 0; }
.wiki-ico { flex: none; width: 20px; height: 20px; opacity: .7; transition: opacity .15s; }
.wiki-nav-group a:hover .wiki-ico, .wiki-nav-group a[aria-current="page"] .wiki-ico { opacity: 1; }
