/* The wiki page (/wiki). Same palette as the store; Inter for reading, Minecraft fonts for headings and tooltips. */
.wk {
    --read: 'Inter', system-ui, sans-serif; --link: #7BE8AE; --line2: rgba(255, 255, 255, .1);
    display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; scroll-margin-top: 12px;
    font: 500 15px/1.6 var(--read); color: #D9CDE2; -webkit-font-smoothing: antialiased;
}
.wk:has(.wk-toc:not([hidden])) { grid-template-columns: 236px minmax(0, 1fr) 190px; }
.wk a { color: var(--link); }
.wk a:hover { text-decoration: underline; }
.wk :is(a, button, input, select):focus-visible { outline: 2px solid var(--main-l); outline-offset: 2px; border-radius: 4px; }
.wk b { color: var(--white); font-weight: 700; }
.wk small { color: #A995B6; font-size: 12px; }

/* side */
.wk-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px 14px; border-radius: 16px; background: var(--panel); scrollbar-width: thin; scrollbar-color: #4b3160 transparent; }
.wk .wk-brand { display: flex; align-items: center; gap: 10px; margin: 0 4px 14px; font: 400 20px/24px var(--title-font); color: var(--white); text-transform: uppercase; text-decoration: none; text-shadow: 2px 2px 0 rgba(0, 0, 0, .3); }
.wk-brand i { font-size: 18px; color: var(--gold); }
.wk-brand span, .wk-hero h1 span { color: var(--main-l); }
.wk-find { display: flex; border: 2px solid var(--line2); border-radius: 10px; background: #1A0D21; overflow: hidden; }
.wk-find:focus-within { border-color: var(--main); }
.wk-find input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--white); font: 500 14px/1 var(--read); outline: 0 !important; -webkit-appearance: none; appearance: none; }
.wk-find input::placeholder, .wk-filter input::placeholder { color: #A893B5; }
.wk-find button { width: 42px; color: #CDB7DA; }
.wk-find button:hover { color: var(--white); }
.wk-menu { display: none; }
.wk-nav { margin-top: 8px; }
.wk-nav p { margin: 16px 10px 4px; font: 700 11px/16px var(--read); letter-spacing: .06em; text-transform: uppercase; color: #A08BAE; }
.wk .wk-nav a { display: block; padding: 6px 10px; border-radius: 8px; border-left: 3px solid transparent; color: #CFC0DA; font-size: 14px; line-height: 20px; text-decoration: none; }
.wk .wk-nav a:hover { background: var(--panel-2); color: var(--white); }
.wk .wk-nav a.is-on { background: var(--panel-3); border-left-color: var(--main); color: var(--white); font-weight: 600; }

/* on this page */
.wk-toc { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 14px 16px; border-radius: 12px; background: var(--panel); font-size: 13px; line-height: 18px; }
.wk-toc p { margin-bottom: 8px; font-weight: 700; color: var(--white); }
.wk .wk-toc a { display: block; padding: 4px 0; color: #BFAECB; }
.wk .wk-toc a:hover { color: var(--white); text-decoration: none; }

/* main */
.wk-main { min-width: 0; min-height: 60vh; }
#wk-view { outline: 0; }
#wk-view h2, #wk-view .wk-box { scroll-margin-top: 16px; }
.wk-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 13px; color: #A995B6; }
.wk-crumbs:empty { display: none; }
.wk-crumbs > * + *::before { content: "›"; margin-right: 6px; color: #8b779a; }
.wk-hd { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line2); }
.wk-kick { font: 700 12px/16px var(--read); letter-spacing: .04em; color: #A995B6; }
.wk-hd h1 { display: flex; align-items: center; gap: 12px; margin-top: 4px; font: 400 34px/40px var(--title-font); color: var(--white); text-transform: uppercase; text-shadow: 3px 3px 0 rgba(0, 0, 0, .3); text-wrap: balance; }
.wk-sum { margin-top: 6px; font-size: 16px; color: #C9B9D5; }
.wk-body { max-width: 860px; }
.wk .wk-body h2 { display: flex; align-items: center; gap: 8px; margin: 30px 0 10px; font: 400 20px/26px var(--title-font); color: var(--white); text-transform: uppercase; }
.wk .wk-body h3 { margin: 18px 0 4px; font: 700 16px/22px var(--read); color: var(--white); }
.wk-body > :first-child { margin-top: 0 !important; }
.wk-body :is(p, ul, ol) { margin: 10px 0; }
.wk-body :is(ul, ol) { padding-left: 22px; }
.wk-body ul { list-style: disc; }
.wk-body ol { list-style: decimal; }
.wk-body li { margin: 5px 0; }
.wk-body li::marker { color: var(--main-l); }
.wk code { padding: 2px 6px; border-radius: 6px; background: #160A1D; border: 1px solid var(--line2); color: #F3D48A; font: 600 13px/18px ui-monospace, Consolas, monospace; white-space: nowrap; }
.wk code.wk-ip { color: #7BE8AE; }
.wk-note, .wk-next, .wk-foot { font-size: 14px; color: #A995B6; }
.wk-next { margin-top: 24px !important; padding: 12px 16px; border-radius: 10px; background: var(--panel); color: #D9CDE2; }
.wk-none, .wk-load { padding: 28px; border-radius: 12px; background: var(--panel); text-align: center; }
.wk .c6 { color: #FFAA00; } .wk .ca { color: #55FF55; } .wk .cd { color: #FF7BFF; }

/* icons and links */
.wk-i { display: inline-block; flex-shrink: 0; width: 22px; height: 22px; margin: -4px 6px -4px 0; vertical-align: middle; background-repeat: no-repeat; background-size: calc(32 * 22px) auto; background-position: calc(var(--x) * -22px) calc(var(--y) * -22px); image-rendering: pixelated; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .4)); }
.wk-i.is-big { width: 44px; height: 44px; margin: 0; background-size: calc(32 * 44px) auto; background-position: calc(var(--x) * -44px) calc(var(--y) * -44px); }
.wk :is(.wk-it, .wk-ml) { white-space: normal; text-decoration: none; }
.wk :is(.wk-it, .wk-ml):hover { text-decoration: underline; }
.wk .r-COMMON { color: #F2EAF7; } .wk .r-UNCOMMON { color: #55FF55; } .wk .r-RARE { color: #8C97FF; } .wk .r-EPIC { color: #D277E3; } .wk .r-LEGENDARY { color: #FFB52E; } .wk .r-MYTHIC { color: #FF7BFF; }
.wk .r-DIVINE { color: #55FFFF; } .wk .r-GODLY { color: #3FD0D0; } .wk .r-SUPREME, .wk .r-SPECIAL { color: #FF6B6B; } .wk .r-MASTER { color: #F06262; } .wk .r-HOLY { color: #FF8BE8; }
.wk .wk-ml { color: #FFC9A8; }
.wk-cur { white-space: nowrap; font-weight: 600; color: #E7DCEE; }
.wk-cur.coins { color: #FFC34D; } .wk-cur.gems { color: #5BF08B; } .wk-cur.souls { color: #FF8BFF; }
.wk-c { display: inline-block; margin-right: 14px; white-space: nowrap; }
.wk-c.is-any { white-space: normal; }
.wk-c .wk-it { white-space: nowrap; }
.wk-boss { padding: 1px 6px; border-radius: 5px; background: rgba(255, 90, 90, .16); color: #FF8A8A; font: 700 11px/16px var(--read); }

/* tables */
.wk-scroll { margin: 12px 0; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); scrollbar-width: thin; scrollbar-color: #4b3160 transparent; }
.wk-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.wk-body > .wk-table { margin: 12px 0; border-radius: 12px; background: var(--panel); overflow: hidden; }
.wk-table th { padding: 10px 14px; background: var(--panel-3); text-align: left; font-weight: 700; color: var(--white); white-space: nowrap; }
.wk-table td { padding: 9px 14px; border-top: 1px solid rgba(255, 255, 255, .06); vertical-align: top; font-variant-numeric: tabular-nums; }
.wk-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.wk-table td:first-child { min-width: 130px; }
.wk-it, .wk-ml { display: inline-block; }
.wk-items td:first-child { min-width: 190px; }
.wk-scroll:has(.wk-narrow) { max-width: 560px; }
.wk-narrow:not(.wk-scroll *) { max-width: 560px; }
.wk-stats { margin-top: 2px; font-size: 13px; line-height: 18px; }
.wk-pets td:nth-child(2), .wk-pets td:nth-child(3) { min-width: 210px; }

/* home */
.wk-hero { padding: 34px 36px; border-radius: 16px; background: radial-gradient(700px 300px at 100% 0, rgba(200, 76, 213, .28), transparent 70%), var(--panel); border-top: 3px solid var(--main); }
.wk-hero h1 { font: 400 46px/50px var(--title-font); color: var(--white); text-transform: uppercase; text-shadow: 3px 3px 0 rgba(0, 0, 0, .3); }
.wk-hero > p { margin: 8px 0 18px; font-size: 16px; }
.wk-find--big { max-width: 620px; }
.wk-find--big input { height: 48px; padding: 0 16px; font-size: 16px; }
.wk-find--big button { width: auto; padding: 0 22px; background: var(--main) !important; color: var(--white) !important; font: 700 15px/1 var(--read) !important; }
.wk-hero .wk-try { margin: 12px 0 0; font-size: 14px; color: #A995B6; }
.wk-try a { margin-left: 12px; }
.wk-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; }
.wk .wk-chips a, .wk .wk-btn, .wk .wk-pages a { display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line2); color: var(--white); font-weight: 600; text-decoration: none; }
.wk .wk-chips a:hover, .wk .wk-btn:hover, .wk .wk-pages a:hover { background: var(--panel-3); }
.wk .wk-chips a.is-main { background: var(--emerald-d); border-color: var(--emerald); }
.wk .wk-h { margin: 0 0 14px; font: 400 24px/30px var(--title-font); color: var(--white); text-transform: uppercase; }
.wk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin-bottom: 34px; }
.wk-card { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line2); }
.wk-card h3 { display: flex; align-items: center; gap: 4px; font: 700 17px/24px var(--read); color: var(--white); }
.wk-card p { margin: 6px 0 12px; font-size: 14px; line-height: 21px; color: #C0AFCC; }
.wk-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.wk-look { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
.wk .wk-look a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line2); text-decoration: none; transition: background .12s, transform .12s; }
.wk .wk-look a:hover { background: var(--panel-2); transform: translateY(-2px); }
.wk-look b { margin-top: 6px; font-size: 15px; line-height: 20px; }
.wk-look--shops { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wk-foot { padding-top: 16px; border-top: 1px solid var(--line2); }

/* look-up pages */
.wk-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.wk-filter :is(input, select) { height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line2); background: #1A0D21; color: var(--white); font: 500 14px/1 var(--read); }
.wk-filter input { flex: 1 1 220px; min-width: 0; -webkit-appearance: none; appearance: none; }
.wk-filter select option { background: #1A0D21; }
.wk-count { font-size: 13px; color: #A995B6; }
.wk-pages { display: flex; gap: 10px; margin-top: 14px; }
.wk-item { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 8px; }
.wk-tip { max-width: 100%; box-sizing: border-box; padding: 12px 14px; background: #12061A; border: 2px solid #3A1462; outline: 2px solid #0b0310; border-radius: 4px; font: 400 13px/21px 'Minecraftia', 'Inter', sans-serif; -webkit-font-smoothing: none; color: #AAA; text-shadow: 1px 1px 0 rgba(0, 0, 0, .5); overflow-x: auto; }
.wk-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; padding: 14px 18px; border-radius: 12px; background: var(--panel); }
.wk-facts dt { color: #A995B6; }
.wk-facts dd { margin: 0; color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-facts--row { display: inline-grid; margin-bottom: 4px; }
.wk-boxline { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.wk-res { list-style: none; margin: 0; padding: 0; }
.wk-res li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.wk .wk-res a { font-size: 16px; text-decoration: none; }
.wk-res p { margin: 2px 0 0; font-size: 14px; color: #B8A6C5; overflow-wrap: anywhere; }

@media (max-width: 1180px) {
    .wk, .wk:has(.wk-toc:not([hidden])) { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
    .wk .wk-toc { display: none; }
}
@media (max-width: 860px) {
    .wk, .wk:has(.wk-toc:not([hidden])) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .wk-side { position: static; max-height: none; padding: 14px; }
    .wk-menu { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px !important; padding: 10px 12px !important; border-radius: 10px; background: var(--panel-2) !important; font: 600 14px/20px var(--read) !important; color: var(--white) !important; }
    .wk-nav { display: none; columns: 2; column-gap: 12px; }
    .wk.is-open .wk-nav { display: block; }
    .wk-nav p { break-after: avoid; }
    .wk .wk-nav a { break-inside: avoid; }
    .wk-hero { padding: 24px 20px; }
    .wk-hero h1 { font-size: 34px; line-height: 38px; }
    .wk-hd h1 { font-size: 27px; line-height: 32px; }
    .wk-try a { margin: 0 12px 0 0; display: inline-block; }
    .wk-find input, .wk-filter :is(input, select) { font-size: 16px; }
    .wk-filter select { flex: 1 1 130px; }
}
@media (prefers-reduced-motion: reduce) { .wk .wk-look a { transition: none; } .wk .wk-look a:hover { transform: none; } }
