/* witcherm.com: the game's own UI language - caps serif headings, parchment text on near-black,
   engraved rules with a diamond, corner brackets, the red of the logo's "III" for what matters. */

@font-face { font-family: Forum; src: url(../fonts/Forum-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(../fonts/AlegreyaSans-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(../fonts/AlegreyaSans-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url(../fonts/AlegreyaSans-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --bg-2: #12100d;
  --panel: rgba(18, 16, 13, .82);
  --text: #e8e0cc;
  --text-2: #b3a78f;
  --dim: #857d6e;
  --red: #b3261e;
  --red-hot: #d8382c;
  --red-glow: rgba(216, 56, 44, .35);
  --line: rgba(228, 217, 194, .16);
  --line-2: rgba(228, 217, 194, .32);
  --good: #8fbf6a;
  --serif: Forum, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .02em; line-height: 1.1; margin: 0; }
.h-sec { font-size: clamp(32px, 4vw, 48px); }
.sub { color: var(--text-2); font-size: 19px; max-width: 640px; margin: 12px 0 0; }
.eyebrow { font-family: var(--serif); letter-spacing: .32em; text-transform: uppercase; font-size: 13px; color: var(--text-2); }
.red { color: var(--red-hot); }

/* An engraved rule with a diamond in its middle (or at its start). */
.rule { height: 9px; position: relative; margin: 18px 0; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent) center / 100% 1px no-repeat; }
.rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(228, 217, 194, .6); background: var(--bg); }
.rule--left { background: linear-gradient(90deg, var(--line-2), transparent) center / 100% 1px no-repeat; max-width: 360px; }
.rule--left::after { left: 4px; }

/* Corner brackets, as the game frames its panels. */
.framed { position: relative; }
.framed::before, .framed::after { content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid rgba(228, 217, 194, .45); pointer-events: none; transition: border-color .25s; }
.framed::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.framed::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.framed:hover::before, .framed:hover::after { border-color: var(--red-hot); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font: 400 16px/1 var(--serif); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: #fff; background: linear-gradient(180deg, #c92f24, #8e231d); border: 1px solid #e0503f; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 10px 30px rgba(142, 35, 29, .35); cursor: pointer; transition: transform .15s, box-shadow .2s, filter .2s; }
.btn:hover { filter: brightness(1.12); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 12px 40px rgba(216, 56, 44, .5); transform: translateY(-1px); }
.btn--ghost { background: rgba(10, 9, 8, .55); border-color: var(--line-2); color: var(--text); box-shadow: none; backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--red-hot); box-shadow: 0 0 24px var(--red-glow); }
.btn svg { width: 18px; height: 18px; }

/* ---- header ---- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(8, 7, 6, .86); border-color: var(--line); backdrop-filter: blur(10px); }
.top__in { display: flex; align-items: center; gap: 28px; height: 72px; }
/* The wordmark: WITCHER and the mark - an M of two swords - a little taller than the caps. */
/* The wordmark (the logo rendered in Blender: tools/design/apply_brand3d.py). */
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; max-width: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 10px 14px; font: 400 14px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--text-2); transition: color .2s; }
.nav a:hover, .nav a.is-on { color: var(--text); }
.nav a.is-on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; background: var(--red-hot); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 10px var(--red-hot); }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: none; border: 0; color: var(--dim); font: 400 13px/1 var(--serif); letter-spacing: .14em; padding: 8px 10px; cursor: pointer; }
.lang button.is-on { color: var(--text); background: rgba(228, 217, 194, .08); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); width: 42px; height: 42px; cursor: pointer; }
@media (max-width: 920px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; background: rgba(8, 7, 6, .96); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; display: none; }
  .top.is-open .nav { display: flex; }
  .lang { margin-left: 0; }
}

/* ---- the cinematic hero ---- */
.hero { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__art { position: absolute; inset: 0; z-index: -3; }
.hero__art i { position: absolute; inset: -2%; background: center / cover no-repeat; opacity: 0; transition: opacity 2.5s ease-in-out; will-change: transform, opacity; }
.hero__art i.on { opacity: 1; animation: drift 14s linear forwards; }
/* The art's corner with the game's logo goes past the edge: bottom right by default, bottom left ("l"). */
.hero__art i { inset: -2% -24% -28% -2%; }
.hero__art i.logo-l { inset: -2% -2% -28% -24%; }
.hero__art i.on.alt { animation-name: drift-alt; }
@keyframes drift { from { transform: scale(1.03) translate(1.2%, .6%); } to { transform: scale(1.12) translate(-1.2%, -.6%); } }
@keyframes drift-alt { from { transform: scale(1.03) translate(-1.2%, -.4%); } to { transform: scale(1.12) translate(1.2%, .4%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.55) 38%, rgba(5,5,5,.05) 70%, rgba(5,5,5,.35) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(11,10,9,.6) 22%, transparent 50%),
  linear-gradient(180deg, rgba(5,5,5,.7), transparent 22%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__in { position: relative; padding-top: 140px; padding-bottom: clamp(80px, 14vh, 150px); width: 100%; }
.live { display: inline-flex; align-items: center; gap: 10px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.live.is-live i { background: var(--good); box-shadow: 0 0 0 0 rgba(143, 191, 106, .6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(143, 191, 106, 0); } }
.hero__title { font-size: clamp(64px, 11vw, 150px); line-height: .9; margin: 22px 0 0; text-shadow: 0 4px 40px rgba(0,0,0,.7); }
.hero__title { line-height: 0; }
.hero__title img { width: min(760px, 86vw); height: auto; filter: drop-shadow(0 8px 40px rgba(0,0,0,.75)); }
.hero__tag { font-family: var(--serif); letter-spacing: .42em; font-size: clamp(13px, 1.4vw, 17px); color: var(--text-2); margin-top: 14px; }
.hero__lead { font-size: clamp(18px, 1.6vw, 22px); color: #ddd3bc; max-width: 560px; margin: 26px 0 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 1px; height: 54px; background: linear-gradient(var(--line-2), transparent); }
.hero__scroll::after { content: ""; position: absolute; left: -3px; top: 0; width: 7px; height: 7px; transform: rotate(45deg); background: var(--red-hot); animation: fall 2.2s ease-in infinite; }
@keyframes fall { from { top: 0; opacity: 1; } to { top: 48px; opacity: 0; } }
.page-hero { position: relative; padding: 150px 0 60px; overflow: hidden; isolation: isolate; }
.page-hero .hero__art { opacity: .55; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, var(--bg), rgba(11,10,9,.55) 60%, rgba(11,10,9,.85)); }
.page-hero h1 { font-size: clamp(44px, 6vw, 76px); }

/* ---- sections ---- */
.sec { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.sec--dark { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- servers ---- */
.srv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.srv { display: grid; grid-template-columns: 56px 1fr auto 150px auto; align-items: center; gap: 22px; padding: 18px 22px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .2s; }
.srv:hover { border-color: rgba(216, 56, 44, .55); background: rgba(26, 20, 16, .9); transform: translateX(4px); }
.srv.is-off { opacity: .5; }
.srv__n { font: 400 26px/1 var(--serif); color: var(--dim); }
.srv__name { font: 400 22px/1.2 var(--serif); letter-spacing: .02em; }
.srv__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; color: var(--dim); font-size: 15px; }
.srv__meta span + span::before { content: "◆"; font-size: 7px; vertical-align: middle; margin-right: 10px; color: var(--red); }
.addr { background: none; border: 1px dashed var(--line-2); color: var(--text-2); font: 400 14px/1 var(--mono); padding: 6px 10px; cursor: pointer; }
.addr:hover { color: var(--text); border-color: var(--red-hot); }
.addr.is-copied { color: var(--good); border-color: var(--good); }
.chip { display: inline-block; padding: 5px 10px; font: 400 12px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.chip--red { border-color: rgba(216, 56, 44, .6); color: #f0a296; }
.players b { font: 400 24px/1 var(--serif); }
.players span { color: var(--dim); font-size: 14px; margin-left: 6px; }
.meter { height: 3px; background: rgba(228, 217, 194, .1); margin-top: 8px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-hot)); box-shadow: 0 0 10px var(--red-glow); }
@media (max-width: 860px) {
  .srv { grid-template-columns: 40px 1fr; gap: 10px 14px; }
  .srv > :nth-child(n+3) { grid-column: 2; }
}
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.search { flex: 1 1 260px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); color: var(--text); font: 400 17px var(--sans); padding: 13px 16px; outline: none; }
.search:focus { border-color: var(--red-hot); box-shadow: 0 0 0 3px rgba(216, 56, 44, .15); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { background: none; border: 1px solid var(--line); color: var(--text-2); font: 400 13px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
.filters button.is-on { border-color: var(--red-hot); color: var(--text); background: rgba(216, 56, 44, .12); }
.empty { padding: 50px 30px; text-align: center; border: 1px dashed var(--line-2); color: var(--text-2); }
.empty h3 { font-size: 26px; color: var(--text); margin-bottom: 8px; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 26px; }
.stats b { display: block; font: 400 44px/1 var(--serif); }
.stats span { color: var(--dim); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; font-family: var(--serif); }

/* ---- features ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid var(--line); background: #000; isolation: isolate; }
.card__img { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s; filter: saturate(.8) brightness(.7); }
.card:hover .card__img { transform: scale(1.07); filter: saturate(1) brightness(.85); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,5,5,.96) 10%, rgba(5,5,5,.35) 60%, transparent); }
.card__body { padding: 26px; }
.card__n { position: absolute; top: 18px; left: 22px; font: 400 15px/1 var(--serif); letter-spacing: .2em; color: var(--red-hot); }
.card h3 { font-size: 27px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-2); font-size: 16.5px; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px 28px 32px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; display: block; transition: transform .2s, border-color .2s; }
.step:hover { transform: translateY(-4px); border-color: rgba(216, 56, 44, .5); }
.step__n { font: 400 54px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--line-2); }
.step:hover .step__n { -webkit-text-stroke-color: var(--red-hot); }
.step h3 { font-size: 26px; margin: 14px 0 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 16.5px; }
.step__go { display: inline-block; margin-top: 18px; font: 400 13px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--red-hot); }

/* ---- split with code ---- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.code { margin: 0; padding: 24px 26px; background: #070606; border: 1px solid var(--line); font: 400 14.5px/1.7 var(--mono); color: #d8cfba; overflow-x: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.code .c { color: #6f685b; } .code .k { color: #e07a62; } .code .s { color: #b9c98a; } .code .f { color: #e3bf75; } .code .n { color: #9fb7d0; }
.code-wrap { position: relative; }
.code-wrap .eyebrow { position: absolute; top: -12px; left: 20px; background: var(--bg-2); padding: 0 10px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--red-hot); }
.ticks b { color: var(--text); font-weight: 500; }

/* ---- faq ---- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 400 22px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border: solid var(--text-2); border-width: 0 1px 1px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--red-hot); }
.faq details p { margin: 0 0 22px; color: var(--text-2); }

/* ---- call to action band ---- */
.band { position: relative; padding: 110px 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__img { position: absolute; inset: 0; z-index: -2; background: center 30% / cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,5,5,.94), rgba(5,5,5,.6) 60%, rgba(5,5,5,.85)); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* ---- download ---- */
.dl { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }
.dl__card { padding: 34px; background: var(--panel); border: 1px solid var(--line); }
.dl__card h2 { font-size: 34px; }
.dl__card .btn { margin-top: 24px; }
.dl__meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--dim); font-size: 15px; margin-top: 14px; }
.req { width: 100%; border-collapse: collapse; margin-top: 10px; }
.req td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req td:first-child { color: var(--dim); width: 40%; font-family: var(--serif); letter-spacing: .08em; }

/* ---- docs ---- */
.docs { display: grid; grid-template-columns: 270px 1fr; gap: 48px; align-items: start; padding-top: 30px; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .toc { position: static !important; max-height: none !important; } }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 8px; font-size: 15px; }
.toc input { width: 100%; margin-bottom: 14px; }
.toc a { display: block; padding: 5px 0 5px 12px; text-decoration: none; color: var(--text-2); border-left: 1px solid var(--line); }
.toc a.l2 { font-family: var(--serif); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-top: 14px; font-size: 13px; }
.toc a.l3 { padding-left: 22px; }
.toc a:hover, .toc a.is-on { color: var(--text); border-left-color: var(--red-hot); }
.md { min-width: 0; }
.md h1 { font-size: 48px; margin-bottom: 18px; }
.md h2 { font-size: 34px; margin: 64px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.md h3 { font-size: 24px; margin: 40px 0 10px; color: #f0e7d3; }
.md h2, .md h3 { scroll-margin-top: 90px; }
.md p, .md li { color: #d6ccb6; }
.md a { color: #f0a296; }
.md code { font: 400 .86em var(--mono); background: rgba(228, 217, 194, .07); padding: 2px 6px; border: 1px solid var(--line); }
.md pre { background: #070606; border: 1px solid var(--line); padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.65; }
.md pre code { background: none; border: 0; padding: 0; font-size: 14px; line-height: 1.65; }
.md table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 18px 0; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.md th { font-family: var(--serif); font-weight: 400; letter-spacing: .06em; background: rgba(228, 217, 194, .04); }
.md blockquote { margin: 18px 0; padding: 4px 20px; border-left: 2px solid var(--red-hot); color: var(--text-2); background: rgba(216, 56, 44, .05); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 54px 0 40px; background: #080706; color: var(--dim); font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
@media (max-width: 800px) { .foot__in { grid-template-columns: 1fr 1fr; } }
.foot h4 { font: 400 13px/1 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); margin: 0 0 14px; }
.foot a { display: block; text-decoration: none; padding: 4px 0; color: var(--dim); }
.foot a:hover { color: var(--text); }
.foot__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); opacity: 0; background: #1a1612; border: 1px solid var(--line-2); padding: 12px 20px; font-size: 15px; transition: .3s; z-index: 80; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- wiki ---- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 10px 0 26px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-2); font: 400 15px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; padding: 16px 18px; cursor: pointer; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button.is-on { color: var(--text); border-bottom-color: var(--red-hot); }
.tab { padding-bottom: 80px; }
.tab__lead { margin: 0 0 22px; max-width: 900px; }
.tab__lead code, .sub code { font: 400 .86em var(--mono); background: rgba(228, 217, 194, .07); padding: 2px 6px; border: 1px solid var(--line); }
.select { background: rgba(0,0,0,.35); border: 1px solid var(--line-2); color: var(--text); font: 400 16px var(--sans); padding: 12px 14px; outline: none; }
.select:focus { border-color: var(--red-hot); }
.select option { background: #15130f; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 16px; cursor: pointer; }
.check input { accent-color: var(--red-hot); width: 16px; height: 16px; }
.count { color: var(--dim); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--serif); margin: 0 0 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font: 400 13px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); padding: 14px 16px; background: rgba(228, 217, 194, .04); border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.table td { padding: 9px 16px; border-bottom: 1px solid rgba(228, 217, 194, .07); vertical-align: middle; }
.table tr:hover td { background: rgba(216, 56, 44, .05); }
.table .dim { color: var(--dim); }
.table .num { font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.table .strong { color: var(--text); text-transform: capitalize; }
.copy { background: none; border: 0; padding: 0; color: #f0e7d3; font: 400 14.5px/1.4 var(--mono); cursor: pointer; text-align: left; word-break: break-all; }
.copy:hover { color: #f0a296; text-decoration: underline dotted; }

/* ---- the API reference ---- */
.api { min-width: 0; padding-bottom: 80px; }
.api__cat > h2 { font-size: 32px; margin: 50px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.api__cat:first-child > h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.fn { padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; scroll-margin-top: 90px; }
.fn:target { border-color: rgba(216, 56, 44, .7); box-shadow: 0 0 0 1px rgba(216, 56, 44, .3); }
.fn.is-soon { opacity: .6; }
.fn__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fn__sig { font: 500 16.5px/1.4 var(--mono); color: #f0e7d3; text-decoration: none; margin-right: auto; word-break: break-word; }
.fn__sig:hover { color: #f0a296; }
.fn__sum { margin: 10px 0 0; color: #d6ccb6; }
.fn__params { width: 100%; border-collapse: collapse; margin: 14px 0 0; font-size: 15.5px; }
.fn__params td { padding: 7px 10px 7px 0; border-top: 1px solid rgba(228, 217, 194, .07); vertical-align: top; color: var(--text-2); }
.fn__p { font-family: var(--mono); color: #f0e7d3 !important; white-space: nowrap; width: 1%; }
.fn__t { font-family: var(--mono); font-size: 13.5px; color: #9fb7d0 !important; white-space: nowrap; width: 1%; }
.fn__ret { margin: 10px 0 0; font-family: var(--mono); font-size: 14.5px; color: var(--text-2); }
.fn__notes { margin: 12px 0 0; white-space: pre-line; color: var(--text-2); font-size: 16px; padding-left: 14px; border-left: 2px solid rgba(216, 56, 44, .5); }
.fn .code { margin-top: 14px; padding: 14px 18px; font-size: 13.5px; box-shadow: none; }
.fn .code code.hljs { background: none; padding: 0; }
.side-switch { margin-bottom: 10px; }
.side-switch button { flex: 1; }
.table td.pin { width: 1%; padding: 6px 10px; }
.table td.pin img { width: 34px; height: 34px; max-width: none; object-fit: contain; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }

.table td.game-name { color: #e8e0cc; }
.character-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.character-preview { margin: 0 0 22px; max-width: 300px; color: var(--text-2); }
.character-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.character-preview img[hidden] { display: none; }
.character-preview figcaption { margin-top: 8px; font-size: 14px; }
.character-3d { max-width: 640px; margin: 0 0 22px; border: 1px solid var(--line); background: #0e0d0b; }
.character-3d canvas { display: block; width: 100%; height: 480px; cursor: grab; touch-action: none; }
.character-3d canvas:active { cursor: grabbing; }
.character-3d p { margin: 8px 12px; color: var(--text-2); font-size: 13px; }
.character-editor label { display: grid; gap: 8px; min-width: 0; }
.character-editor select { width: 100%; }
.character-result { display: block; box-sizing: border-box; width: 100%; margin-top: 8px; padding: 14px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); font: 14px/1.5 var(--mono); resize: vertical; }
