/* Terraria class guides — the one stylesheet for every <class>-guide.html (and the editor's card previews).
   Tokens first, then the page chrome, then the stage markup written by build/render.js, then the "Before you start" notes.
   The class colour comes from the page (<style>:root{--class:…;--class-light:…}</style>, written by build/build.mjs from guides.js). */

/* ---------- tokens ---------- */
/* Four width ranges (CLAUDE.md "Screen sizes"): phone ≤599 · tablet 600–1099 · laptop 1100–1599 · desktop ≥1600.
   Laptop is the reference: the type tokens --tN are N px there (and on desktop); phones and tablets get one px more.
   Desktop keeps laptop sizes and centres the page in a --page-max column (the top bar lines up with it). */
:root{
  --bg:#0e0f11;--lift:#1f2329;--card:#171a1e;--stroke:#343a42;--mid:#454d57;--muted:#8a8380;--pale:#b3aeaa;--ink:#e4e0dc;
  --class:#ee6018;--class-light:#a24300;--orange:var(--class);--green:#a0ca92;--special:#f2c14e;--blue:#a8434f;--purple:#b995f5;--red:#e07a6c;--on-orange:#101010;
  --die-c:#3987e5;--die-u:#d95926;--die-r:#199e70;--die-v:#c98500;--die-l:#d55181;--fw-fish:#5aa6bd;--fw-crate:#c98500;--fw-junk:#6b6560;--fw-none:#3a3f47;--fw-foe:#a8434f;   /* the Fishing page's five dice and its bites' parts (2026-11-17): the dice a categorical order validated on the card (CVD ΔE ≥ 8.4) */
  --fav:#f2c14e;   /* the favorite mark's gold (render.js box, ".fav-mark"): 10.4 : 1 on a card */
  --press:color-mix(in srgb,var(--ink) 6%,transparent);   /* the press: a shade of the ink on the surface ("E · Soft", 2026-11-02) */
  /* the button family (2026-11-01, design.md "Buttons"): a filled key, its top edge lit, a soft line under it; pressed it sinks 1 px */
  --btn:var(--lift);--btn-hover:#2b3038;--btn-edge:inset 0 1px 0 rgb(255 255 255 / .07),0 1px 1.5px rgb(0 0 0 / .5);--btn-sunk:inset 0 1px 2px rgb(0 0 0 / .5);
  --d-fast:.12s;--d-open:.16s;--ease:cubic-bezier(.2,.7,.3,1);--d-lift:.2s;--ease-out:cubic-bezier(.16,1,.3,1);   /* motion (2026-10-12, Oleg: "fast and smooth, simple … preserve speed more"): presses, closing and arrows .12 s, opening .16 s, one easing; only opacity and transform move (the compositor's work, no layout) */
  --sans:'Sofia Sans','Geist',system-ui,sans-serif;--cond:'Sofia Sans Condensed','Geist',system-ui,sans-serif;   /* type (2026-11-01, Oleg picked "A · Printed guide" of three: design.md "Type"): Sofia Sans to read; Sofia Sans Condensed for labels, numbers, key caps and stage titles — it replaced Geist Mono's capitals (Oleg: "so it looks not ai": "Fonts and labels"). The sizes are fonts.css's size-adjust: every size here reads as large as in Geist, the condensed face a step larger */
  
  --glow:color-mix(in srgb,var(--orange) 25%,transparent);
  --t8:8px;--t9:9px;--t10:10px;--t11:11px;--t12:12px;--t13:13px;--t14:14px;--t15:15px;--t16:16px;
  --page-max:1400px;--gutter:24px;
  /* the stage rail at the left ("the rail"): its width per range; rail + page column are centred together on wide screens */
  --rail:216px;--col:calc(var(--rail) + var(--page-max));
  --fin-expert:#ee6018;--fin-master:#f2a93b;
  --rar-orange:#ee6018;--rar-purple:#c77dff;--rar-cyan:#5cc8ff;--rar-yellow:#f2c14e;   /* item rarity and the Expert / Master slot colours: the endgame screen used them (stage 29, removed in round 8) — kept, contrast-checked, for the new endgame design */
  /* text-safe variants (4.5 : 1 on the surface they sit on): the Utility colour as TEXT on a card — plain --blue is 2.98 : 1 there
     and stays for dots, bars and borders; the label grey on --lift — plain --muted is 4.24 : 1 there */
  --blue-text:#cc636d;--muted-lift:#918a87;
  /* ◇ "only here" in a comparison (Oleg, 2026-10-09, round 7: "not dark grey but other color that will not interfere with classes
     colors"): a rose, apart from the four class colours, green / red (better / worse) and the amber SET chip */
  --only:#f095c4;
}
@media (max-width:1099px){:root{--t8:9px;--t9:10px;--t10:11px;--t11:12px;--t12:13px;--t13:14px;--t14:15px;--t15:16px;--t16:17px}}
/* The light theme ("softer", 2026-10-03). Rules it keeps (additional-info/site-checks/contrast_check.py measures them):
   every text colour is 4.5 : 1 or more on each surface it sits on (--bg page, --card, --lift pressed chip);
   the grey of stat names and labels (--muted) is 7 : 1 on a card; no surface is pure white (the card is L* 96.7);
   a colour that is bright in the dark theme (class colour, rarity, status) has its own darker value here. */
[data-theme="light"]{
  --die-c:#2a78d6;--die-u:#eb6834;--die-r:#1baf7a;--die-v:#eda100;--die-l:#e87ba4;--fw-fish:#2f7f95;--fw-crate:#c98500;--fw-junk:#9a928c;--fw-none:#c5beb8;--fw-foe:#8b2635;   /* (light steps of the same order: under 3 : 1 on the card for three — each is named beside it, the relief rule) */
  --bg:#ede9e6;--lift:#e1dcd9;--card:#f8f5f2;--stroke:#c5beb8;--mid:#938c86;--muted:#57514d;--pale:#3f3b37;--ink:#1c1815;
  --orange:var(--class-light);--green:#3c7531;--special:#7a4f00;--blue:#8b2635;--purple:#6f42c1;--red:#a33a2f;--on-orange:#ffffff;
  --fav:#9a7200;   /* 4.04 : 1 on a card, 3.23 on a hovered tile (a mark needs 3 : 1); the light --special #7a4f00 reads brown */
  --btn-hover:#d6d0cc;--btn-edge:inset 0 1px 0 rgb(255 255 255 / .75),0 1px 1.5px rgb(60 40 20 / .22);--btn-sunk:inset 0 1px 2px rgb(60 40 20 / .25);
  --fin-expert:#b24a00;--fin-master:#8a5a00;
  --rar-orange:#b4430a;--rar-purple:#8744d0;--rar-cyan:#166e9e;--rar-yellow:#886100;
  --blue-text:var(--blue);--muted-lift:var(--muted);   /* the plain colours already pass here */
  --only:#a3277a;
}

/* ---------- base ---------- */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}   /* iPhones turned sideways must not blow the text up */
/* the browser's own parts follow the theme: without this the page scrollbar stays white beside the dark page (Windows, Linux) */
html[data-theme="dark"]{color-scheme:dark}html[data-theme="light"]{color-scheme:light}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:var(--t14);line-height:1.5;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;transition:background-color .25s ease,color .25s ease}
body[data-guide]{padding-top:48px}   /* the fixed top bar (a guide page only: the editor loads this file too) */
[data-theme="light"] .boss,[data-theme="light"] article{box-shadow:0 1px 2px rgba(40,30,20,.05)}
[data-theme="light"] :is(.boss,article)[data-pressed]{box-shadow:inset 0 0 0 999px var(--press),0 1px 2px rgba(40,30,20,.05)}   /* (pressed, the light shadow stays under the press shade: "The press" below) */
[data-theme="light"] .tip{box-shadow:0 8px 24px rgba(40,30,20,.18)}
a{color:var(--ink);text-decoration:none}a:hover{color:var(--orange)}
img{image-rendering:pixelated;image-rendering:crisp-edges}
button{font:inherit;color:inherit;cursor:pointer}
html{-webkit-tap-highlight-color:transparent}   /* no blue (Android) / grey (iPhone) rectangle on a tap — on a card, a row, anything: the press flash below is the site's own (Oleg, 2026-10-09, round 7). The property is inherited. */
a,button,.boss,.info{touch-action:manipulation}
.boss,.note-toggle{user-select:none;-webkit-user-select:none}
button:focus:not(:focus-visible),a:focus:not(:focus-visible){outline:none}
/* The keyboard's focus ring is the site's own — 2 px in the text colour — never the browser's (blue on a Mac; Oleg, 2026-10-08).
   Only on the guide pages ([data-guide]): the editor loads this file and keeps its own fields as they are.
   No ring at all where the focus already shows another way: the rail (its item of the page on screen is filled, and the focus
   is always on that one), the opened card's box (it holds the focus so that the keys are the cards'). */
[data-guide] :focus-visible{outline:1px solid var(--orange);outline-offset:2px}   /* 1 px (Oleg, 2026-10-10: 2 px "too bulky") */   /* the class colour (--orange = the guide's class colour, its darker value in the light theme), not white / black: Oleg, 2026-10-09, "black outline is too much contrast, as well as white for dark theme" */
[data-guide] .rail-item:focus-visible,[data-guide] .cardbox:focus-visible,[data-guide] .cardbox:focus{outline:none}
[hidden]{display:none!important}
::selection{background:var(--orange);color:var(--on-orange)}
nav,article,.boss,button{transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.label{font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.mono-xs{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
@keyframes mg-spin{0%{transform:rotate(0)}60%{transform:rotate(1080deg)}100%{transform:rotate(1080deg)}}
@keyframes mg-open{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes mg-fade{from{opacity:0}to{opacity:1}}   /* the opened card's sections: a fade in place, no slide (Oleg, 2026-10-20: "fade only") */
/* where Search landed: the card glows twice in the class colour. It also takes the keyboard focus (Enter opens it, the arrows
   go on from it), and while it glows its focus ring is not drawn: the white ring sat exactly on the glow, so the reader saw a
   white outline appear and no glow (Oleg, 2026-10-07). The ring shows once the glow is over, if the keyboard is in use. */
@keyframes mg-flash{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--orange) 80%,transparent),0 0 0 0 color-mix(in srgb,var(--orange) 0%,transparent)}
  35%{box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 70%,transparent),0 0 22px 6px color-mix(in srgb,var(--orange) 45%,transparent)}
  100%{box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 0%,transparent),0 0 22px 6px color-mix(in srgb,var(--orange) 0%,transparent)}}
[data-found]{animation:mg-flash 1.5s ease-out 2;border-color:var(--orange)!important}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card[data-found]:focus-visible,.card[data-found]:focus-visible{outline:none}
html[data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card[data-quiet]:focus-visible{outline:none}   /* (a card opened and closed with the mouse or a finger: no ring until a key is pressed — guide.js closeCard) */
/* stat rows are hidden until the Stats button is on */
[data-nostats] .row:not(.cardbox *):not(.eg-tip *),[data-nostats] .rows:not(.cardbox *){display:none!important}   /* (an opened card shows them: "the opened card") */
[data-nostats] article:has(>.vbody:only-child){align-content:center!important}
/* press feedback: a short press flash on anything clickable — finger, pen or mouse (guide.js sets data-pressed) */
/* The press (2026-11-02, Oleg: "without squeezing anything, changes background or etc is better, should be not bright, smooth and
   feel of a touch" → "E · Soft" of five in archive/previews/press-2026-11-02): the pressed thing takes a shade of the ink (--press,
   6 %) on its surface — an inset shadow under the content, following its corners, nothing moves — eased in over 90 ms and out over
   250 ms after the release. Until then it shrank to .97 and dimmed (scale + brightness, instant; the Safari note of 2026-10-10 was
   about a transform + filter transition — a shadow fade is a repaint of the one element, measured fine). The shade is a shadow so a
   thing keeps its own background; what carries a shadow of its own (the keys' edge, a risen tile's lift) lists it after the shade. */
a,button,summary,.boss,.alt,.result,.result-stage,article.card,[data-ct-ammo],[data-nav],[data-toggle]{transition:box-shadow .25s var(--ease-out),background-color .25s ease,border-color .25s ease,color .25s ease,opacity .25s ease}
[data-pressed]{box-shadow:inset 0 0 0 999px var(--press);transition-duration:.09s!important;transition-timing-function:ease-out!important}
/* (the two longhands, important: a thing keeps its own transition list — a tile's rise, a slot's frame — and the press comes in at 90 ms whatever
   rule wrote that list; the release follows the list's own box-shadow entry, .25s from the rule above. A thing whose own box-shadow rule
   out-ranks [data-pressed] — the light theme's shadow, a selected chip's ring — lists its shadow after the shade in its own pressed rule.) */
/* the opened card's section bars (Stacking, Notes, Craft, Get): a bar is a line of text as wide as the card, so its press is a band —
   its own box + 5 px around it (a spread shadow), inside the card's padding (Oleg, 2026-10-20: "i dont like it and want more stable
   smooth version" → "A · band" of three in archive/previews/press-2026-10-20; until 2026-11-02 the band was --lift and instant, now
   it is the press shade, eased like every press). Its full-width press area, ::before, is unchanged. */
.cardbox :is(.cstack-bar,.cnotes-bar,.ccraft-bar){border-radius:2px;transition:color var(--d-fast) var(--ease),background-color var(--d-fast) var(--ease),box-shadow .25s var(--ease-out)}
.cardbox :is(.cstack-bar,.cnotes-bar,.ccraft-bar)[data-pressed]{box-shadow:inset 0 0 0 999px var(--press),0 0 0 5px var(--press)}   /* (the band in the press shade since 2026-11-02; it was --lift) */
/* so the band stops 1 px short of the line under a bar as of the line over it, a bar has 6 px down to the next line as it has 6 px
   up to its own (Oleg, 2026-10-21: "this background have different paddings from top element and bottom element - line. I want
   all to be the same pattern"). That space was the row gap of the box holding the sections — 6 px in an accessory, 8 in armor and
   a variant, 9 in a weapon: the band stood 1, 3 or 4 px over the next section's line, 3 px over the "+N" row's. A section after a
   section, and the "+N" row after a variant, take back what is over 6 px; the boxes name their gap --rg for it. */
.cardbox :is(.cstack,.cnotes,.ccraft)+:is(.cstack,.cnotes,.ccraft),.cardbox .variant+.alts{margin-top:calc(6px - var(--rg))}
/* the frame under the last bar is not a line: there the band keeps 7 px, as at its sides — so an accessory card and a fanned card's
   framed way end 12 px under their last row, as they are 12 px in at the sides and as armor and weapons are (it was 10: 5 px under
   the band, 7 beside it). Oleg picked "7 px, like the sides" of three (as now / like the sides / 1 px like the lines), 2026-10-21. */
.cardbox :is(.card-acc,.card-small){padding-bottom:12px}   /* (a fanned card's framed way: its own rule, "fanned") */
/* mouse: hover shows what is clickable */
@media (hover:hover){
  .boss:hover{border-color:var(--mid)}
  .alt:hover{border-color:var(--pale)}
}

/* ---------- top bar ---------- */
.topnav{position:fixed;top:0;left:0;right:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--stroke);display:flex;align-items:center;gap:16px;padding:0 20px;height:48px;transition:background-color .25s ease,border-color .25s ease}
.home{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 9px 0 6px;font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;background:var(--btn);border:1px solid transparent;border-radius:8px;box-shadow:var(--btn-edge);color:var(--ink);white-space:nowrap;flex:0 0 auto}
.home svg{flex:0 0 auto;color:var(--ink)}
.class-label{font-family:var(--cond);font-size:var(--t12);text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
@media (hover:hover){.class-label:hover{color:var(--orange)}}   /* a link that looked like a label (critique 2026-11-02): under the mouse it takes the class colour, like the keys' icons */
.nav-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto;margin-left:auto}
.navbtn{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 9px;font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;background:var(--btn);border:1px solid transparent;border-radius:8px;box-shadow:var(--btn-edge);color:var(--ink);white-space:nowrap}
.navbtn svg,.rail-step svg,.jump-btn svg{color:var(--orange)}   /* the icon carries the class colour; the words stay ink */
@media (hover:hover){.home:hover,.navbtn:not([data-on]):not(:disabled):hover,.themebtn:not(:disabled):hover,.rail-step:not(:disabled):hover{background:var(--btn-hover);color:var(--ink)}}   /* (mouse only: after a tap a filled hover would stay on) */
.navbtn[data-on]{background:var(--orange);color:var(--on-orange)}
.navbtn[data-on] svg{color:currentColor}
.navbtn:disabled{opacity:.6;cursor:default}   /* Mark here on "Before you start": no stage to mark */
/* the theme switch without JavaScript (Oleg, 2026-11-05: "mark it unable to click (like greyed out maybe)"): disabled in the
   markup, live once guide.js runs; greyed only where no script runs, so a normal load shows no grey moment */
html:not([data-js]) .themebtn:disabled{opacity:.6;cursor:default}
/* Search, Mark here and the phones' stage picker need the script: without it they are not shown (Oleg, 2026-11-10: "Hide them") — they
   were drawn and did nothing. The long page and the rail's links are what works there. */
html:not([data-js]) :is([data-search-btn],.mark,.jump-btn){display:none}
/* pressed, a key sinks 1 px and its edge turns inward (with the press flash: guide.js data-pressed, at once) */
:is(.home,.navbtn,.themebtn,.rail-step,.jump-btn,.cardbox-close,html[data-js] .boss-more)[data-pressed]{box-shadow:inset 0 0 0 999px var(--press),var(--btn-edge)}   /* (the 1 px sink went with the squeeze, 2026-11-02: the shade over the key, its edge kept) */
.themebtn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:28px;padding:0;background:var(--btn);color:var(--orange);border:1px solid transparent;border-radius:8px;box-shadow:var(--btn-edge);margin-left:4px}
.themebtn .moon{display:none}
[data-theme="light"] .themebtn .sun{display:none}
[data-theme="light"] .themebtn .moon{display:block}
/* Mark here. Three states of the main button: no mark · on the marked stage (outlined in the class colour: all is well) · away from
   it (filled: the way back). The pair keeps ONE width in every state, so Search beside it never moves. */
.mark{display:inline-flex;align-items:center}
.mark-main[data-at],.mark-main[data-at]:hover{color:var(--orange);background:color-mix(in srgb,var(--orange) 12%,var(--card))}   /* (tinted from --card, not the key's --lift: on the light key the class colour fell to 3.8 : 1) */
.mark-alt [data-ic],[data-pill-act] [data-ic]{display:none}
.mark-alt[data-mode="move"] [data-ic="move"],.mark-alt[data-mode="clear"] [data-ic="clear"],[data-pill-act][data-mode="move"] [data-ic="move"],[data-pill-act][data-mode="clear"] [data-ic="clear"]{display:block}
@media (min-width:900px){
  .mark{width:146px}
  .mark-main{flex:1 1 auto;min-width:0;justify-content:center}
  /* the two halves are ONE key, joined by a 1 px line in the page colour (2026-11-01, Oleg: with rounded keys the old 1 px
     overlap made them "weirdly overlap") */
  .mark[data-split] .mark-main{border-radius:8px 0 0 8px}
  .mark-alt{flex:0 0 28px;width:28px;padding:0;justify-content:center;gap:0;border-radius:0 8px 8px 0;box-shadow:inset 1px 0 0 var(--bg),var(--btn-edge)}
  .mark-alt[data-mode="clear"],.mark-alt[data-mode="clear"] svg{color:var(--orange)}
  @media (hover:hover){.mark-alt[data-mode="clear"]:hover{background:var(--orange);color:var(--on-orange)}.mark-alt[data-mode="clear"]:hover svg{color:currentColor}}
  .mark-alt[data-mode="move"],.mark-alt[data-mode="move"]:hover{background:var(--orange);color:var(--on-orange);box-shadow:inset 1px 0 0 var(--bg)}
  .mark-alt[data-mode="move"] svg{color:currentColor}
  .mark-alt[data-mode="move"]:hover{filter:brightness(1.12)}
  .mark-alt:is([data-mode="clear"],[data-mode="move"])[data-pressed]{box-shadow:inset 0 0 0 999px var(--press),inset 1px 0 0 var(--bg),var(--btn-edge)}
  .mark-alt:hover{position:relative}
}
.back-pill{position:fixed;right:16px;bottom:18px;z-index:25;display:inline-flex;align-items:stretch;height:40px;background:var(--orange);color:var(--on-orange);border-radius:20px;box-shadow:0 8px 24px rgba(0,0,0,.35);overflow:hidden;animation:mg-open var(--d-open) var(--ease) both}
.back-pill button{display:inline-flex;align-items:center;gap:8px;padding:0 13px;background:none;border:0;color:inherit;font-family:var(--cond);font-size:var(--t12);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.back-pill button:first-child{padding-left:14px}.back-pill button:last-child{padding-right:15px}
.back-pill [data-pill-back]+[data-pill-act]{border-left:1px solid color-mix(in srgb,var(--on-orange) 35%,transparent)}
.back-pill button:active{background:color-mix(in srgb,var(--on-orange) 14%,transparent)}
@media (min-width:900px) and (max-width:1099px){.mark{width:158px}}   /* (type is 1 px larger under 1100 px) */
@media (min-width:900px){.back-pill{display:none!important}}
/* under 900 px: square icon buttons, no class label — the back pill stands in for the "Back to NN" label */
@media (max-width:899px){
  .navbtn-label,.class-label{display:none}
  .navbtn,.home{width:34px;padding:0;justify-content:center;gap:0}
  .mark-alt{display:none!important}
  .navbtn,.home,.themebtn{height:34px}.themebtn{width:34px}
}
/* wide screens: the bar's content lines up with rail + page column (centred together) instead of running to the screen edges */
.topnav{padding:0 max(20px,calc((100% - var(--col)) / 2 + var(--gutter))) 0 max(20px,calc((100% - var(--col)) / 2 + 16px))}

/* ---------- search ----------
   Names only (guide.js "search"). A row: picture · name (the matched letters in the class colour) · section · ALT when the card is only
   an alternative · a line under it (an armor set's pieces, "Mount · Pixie") · its stages. The page behind is dimmed, not blurred:
   a blurred backdrop is drawn again with every key. --vvh / --vvt = the visible part of a phone screen while its keyboard is up. */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.search-root{position:fixed;inset:0;z-index:30}
.search-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62)}
[data-theme="light"] .search-backdrop{background:rgba(28,24,21,.46)}
.search-panel{position:absolute;top:calc(var(--vvt,0px) + 60px);left:12px;right:12px;margin:0 auto;max-width:640px;box-sizing:border-box;max-height:calc(var(--vvh,100vh) - 80px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:var(--bg);border:1px solid var(--stroke);border-radius:12px;box-shadow:0 24px 64px rgba(0,0,0,.45);overflow:hidden;animation:mg-open var(--d-open) var(--ease) both}
.search-head{display:flex;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--stroke)}
.search-head>svg{flex:0 0 auto}
.search-input{flex:1 1 auto;width:100%;min-width:0;background:none;border:0;outline:none;font:inherit;font-size:var(--t16);color:var(--ink);padding:4px 0;text-overflow:ellipsis}
[data-guide] .search-input:focus-visible{outline:none}   /* no class-colour ring on the field you type in (Oleg, 2026-10-14: "too saturated because all others color are dark/light"): the caret shows where you are, and the line under the field turns a quiet grey while it has the focus */
.search-head:focus-within{border-bottom-color:var(--mid)}
.search-input::placeholder{color:var(--muted);opacity:1;text-overflow:ellipsis}   /* the browser's own grey is 2 : 1 on the light page in Safari, 4 : 1 in Chrome */
.search-esc{flex:0 0 auto;font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--pale);background:var(--btn);border:1px solid transparent;border-radius:6px;box-shadow:var(--btn-edge);padding:3px 7px}
@media (hover:hover){.search-esc:hover{background:var(--btn-hover);color:var(--ink)}}
.search-esc[data-pressed]{box-shadow:inset 0 0 0 999px var(--press),var(--btn-edge)}
.search-esc-word,.search-clear{display:none}   /* a touch screen has no Esc key: it reads "Close" and gets a clear button (below) */
.search-clear{flex:0 0 auto;width:34px;height:34px;align-items:center;justify-content:center;border:0;border-radius:50%;background:none;color:var(--muted)}
.search-results{overflow-y:auto;overscroll-behavior:contain;padding:6px}
.search-empty{padding:26px 16px;text-align:center;font-size:var(--t13);color:var(--muted);text-wrap:pretty}
.search-try{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;margin-top:14px}
.search-try-lab{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;margin-right:2px}
.search-try button{font:inherit;font-size:var(--t12);line-height:1;padding:6px 9px;border-radius:3px;border:1px solid var(--stroke);background:var(--card);color:var(--pale)}
.result{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:start;padding:8px 10px;border-radius:8px;cursor:pointer}
.result[data-sel]{background:var(--lift)}
.result-img{width:44px;height:44px;box-sizing:border-box;padding:3px;border:1px solid var(--stroke);border-radius:8px;background:var(--card) no-repeat center;background-origin:content-box;image-rendering:pixelated;image-rendering:crisp-edges}   /* a sprite at its own size, pixel-crisp */
.result-img[data-big]{background-size:contain;image-rendering:auto}   /* larger than the 36 px inside the box (boss art, a mount, a long weapon): scaled down, smoothly */
.result-body{display:grid;gap:5px;min-width:0}
.result-head{display:grid;gap:3px;min-width:0}
.result-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
.result-name{font-size:var(--t14);line-height:1.25;overflow-wrap:anywhere}   /* never cut: a long name wraps */
.result mark{background:none;color:var(--orange)}
.result-sec{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);white-space:nowrap}
.result-alt{font-family:var(--cond);font-size:var(--t10);line-height:1.5;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border:1px dashed var(--mid);border-radius:3px;padding:0 5px}
.result-sub{font-size:var(--t12);line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.result[data-sel] .result-sec,.result[data-sel] .result-alt,.result[data-sel] .result-sub{color:var(--muted-lift)}   /* the picked result sits on --lift */
.result-stages{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.result-stage{font-family:var(--cond);font-size:var(--t11);line-height:1;padding:5px 7px;border-radius:3px;border:1px solid var(--stroke);background:var(--card);color:var(--muted);white-space:nowrap;display:inline-flex;align-items:center;gap:5px;text-decoration:none;cursor:pointer}
.result-stage:hover{border-color:var(--ink)}
.result-stage[data-pref]{border-color:var(--mid);color:var(--ink)}
.result-stage[data-first]{border-color:var(--orange);background:var(--orange);color:var(--on-orange)}
.result-stage[data-alt]{border-style:dashed}   /* on that stage the card is an alternative of another card */
.result-stage[data-first][data-alt]{border-color:var(--bg)}
.result-go{color:var(--ink);border-color:var(--mid)}   /* opens another guide */
.result-stage[data-act]{outline:2px solid var(--ink);outline-offset:1px}   /* the stage Enter opens */
.result-group,.result-more{padding:10px 10px 4px;font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.result-group{margin-top:6px;border-top:1px solid var(--stroke)}
.result-group:first-child{margin-top:0;border-top:0;padding-top:6px}
.result-more{padding-bottom:8px}
.search-foot{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;padding:8px 14px;border-top:1px solid var(--stroke);font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
/* the key to the stage chips' three states (2026-11-02, the critique: "solid / dashed / bold — unexplained in the panel"): three
   small chips drawn like the results' (.result-stage: first = filled in the class colour, preferred = ink edge, alternative = dashed) */
.search-legend{display:inline-flex;flex-wrap:wrap;gap:5px;align-items:center;margin-left:auto}
.sl{font-family:var(--cond);font-size:var(--t10);line-height:1;padding:3px 6px;border-radius:3px;border:1px solid var(--stroke);background:var(--card);color:var(--muted);white-space:nowrap}
.sl[data-first]{border-color:var(--orange);background:var(--orange);color:var(--on-orange)}
.sl[data-pref]{border-color:var(--mid);color:var(--ink)}
.sl[data-alt]{border-style:dashed}
.search-keys{display:flex;flex-wrap:wrap;gap:6px 16px}
.search-keys>span{display:inline-flex;align-items:center;gap:5px}
.search-foot kbd{font:inherit;min-width:10px;padding:2px 5px;border:1px solid var(--stroke);border-radius:3px;background:var(--lift);color:var(--muted-lift);text-align:center}
.search-count{margin-left:auto}
article[tabindex="-1"]:focus{outline:none}   /* a card the search landed on takes the focus; its flash shows where it is */
@media (max-width:599px){.search-panel{top:calc(var(--vvt,0px) + 56px);left:8px;right:8px;max-height:calc(var(--vvh,100vh) - 68px);max-height:calc(var(--vvh,100dvh) - 68px)}}

/* ---------- stage picker: on phones a button in the top bar replaces the stage strip; it opens this list (guide.js builds it) ---------- */
.jump-btn{display:none}
.jump-root{position:fixed;inset:0;z-index:30}
.jump-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45);backdrop-filter:blur(2px)}
.jump-panel{position:absolute;top:56px;left:8px;right:8px;margin:0 auto;max-width:520px;max-height:calc(100vh - 68px);max-height:calc(100dvh - 68px);box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr);background:var(--bg);border:1px solid var(--stroke);border-radius:12px;box-shadow:0 24px 64px rgba(0,0,0,.45);overflow:hidden;animation:mg-open var(--d-open) var(--ease) both}
.jump-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 8px 16px;border-bottom:1px solid var(--stroke)}
.jump-list{overflow-y:auto;overscroll-behavior:contain;padding:4px 6px 8px}
.jump-group{display:flex;align-items:center;gap:10px;font-family:var(--cond);font-size:var(--t10);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);padding:12px 10px 6px}
.jump-group::after{content:'';flex:1 1 auto;height:1px;background:var(--stroke)}
.jump-group[data-hard]{color:var(--orange)}.jump-group[data-hard]::after{background:var(--orange)}
.jump-item{display:grid;grid-template-columns:22px 32px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 10px;box-sizing:border-box;background:none;border:1px solid transparent;border-radius:8px;text-align:left;color:var(--ink)}
.jump-item-num{font-family:var(--cond);font-size:var(--t12);color:var(--muted)}
.jump-item-pic{display:flex;align-items:center;justify-content:center;height:26px;color:var(--pale)}
.jump-item-pic img,.jump-item-pic canvas{max-width:32px;max-height:26px;image-rendering:auto}
.jump-item-name{font-size:var(--t14);line-height:1.25;min-width:0}
.jump-item-state{display:inline-flex;align-items:center;gap:5px;font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);white-space:nowrap}
.jump-item[data-past] .jump-item-name{color:var(--pale)}
.jump-item[data-past] .jump-item-num{opacity:.6}
.jump-item[data-current]{background:var(--lift);border-color:var(--stroke)}
.jump-item[data-current] .jump-item-num{color:var(--orange)}
.jump-item[data-here] .jump-item-state{color:var(--orange)}

/* ---------- header + main ---------- */
header#top{max-width:var(--page-max);margin:0 0 0 calc(max(0px,(100% - var(--col)) / 2) + var(--rail));padding:40px 24px 32px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
header#top>div{min-width:0}
.intro{display:grid;gap:14px}
.intro-kicker{font-family:var(--cond);font-size:var(--t12);text-transform:uppercase;letter-spacing:.06em;color:var(--pale);display:flex;align-items:center;gap:8px}
.intro-kicker::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--orange);display:inline-block}
header#top h1{margin:0;font-family:var(--cond);font-size:40px;font-weight:700;line-height:1.1;letter-spacing:0}
/* what the guide can do: a label over two or three lines of text, as many columns as fit at 250 px (four on a laptop, two on a
   tablet held upright, one on a phone) */
.intro-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:18px 28px}
.lw{display:inline-block;max-width:100%}   /* a long word of a card name that may break at its soft hyphen, but only where it does not fit a line by itself (render.js SOFT_WORD) */
.intro-item{display:grid;gap:5px;align-content:start;font-size:var(--t13);color:var(--pale);text-wrap:pretty}
/* the keyboard note: one line under the others, not on a touch-only screen */
.intro-keys{display:none;grid-column:1 / -1}
@media (hover:hover) and (pointer:fine){.intro-keys{display:grid}}
.keys{display:flex;flex-wrap:wrap;gap:6px 20px;align-items:center}
.keys>span{display:inline-flex;align-items:center;white-space:nowrap}
.keys kbd{font-family:var(--cond);font-size:var(--t11);line-height:1.5;min-width:10px;text-align:center;padding:0 5px;margin-right:3px;border:1px solid var(--stroke);border-radius:4px;color:var(--ink);background:var(--card)}
.keys kbd:last-of-type{margin-right:7px}
.intro-key{font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;color:var(--ink);display:flex;align-items:center;gap:6px}
.intro-key .intro-ear{width:13px;height:13px;flex:none;box-sizing:border-box;border:1px solid var(--mid);border-radius:2px 4px 2px 2px;background:linear-gradient(225deg,var(--orange) 36%,transparent 36%)}   /* the preferred mark on a card's corner, drawn small */
.intro-key .intro-fav{width:13px;height:13px;flex:none;box-sizing:border-box;border:1px solid var(--mid);border-radius:4px 2px 2px 2px;background:linear-gradient(135deg,var(--fav) 36%,transparent 36%)}   /* the favorite mark on a card's top left corner, drawn small */
.intro-key svg{flex:none;color:var(--pale)}   /* the icon of the top-bar button the line is about */
main{display:grid;gap:32px;padding-bottom:40px;margin-left:calc(max(0px,(100% - var(--col)) / 2) + var(--rail));align-content:start}
.phase{max-width:var(--page-max);width:100%;margin:0;padding:0 24px;box-sizing:border-box;display:grid;grid-template-columns:minmax(24px,1fr) auto minmax(24px,1fr);align-items:center;gap:16px}
.phase-line{height:1px;background:var(--stroke)}
.phase-label{font-family:var(--cond);font-size:var(--t11);letter-spacing:.14em;text-transform:uppercase;color:var(--pale);padding:4px 12px;border:1px solid var(--stroke);border-radius:3px;white-space:nowrap}
.phase[data-phase="hard"] .phase-line{background:var(--orange)}
.phase[data-phase="hard"] .phase-label{color:var(--orange);border-color:var(--orange)}

/* ---------- stage + boss card ---------- */
.stage{scroll-margin-top:48px;max-width:var(--page-max);width:100%;margin:0;padding:10px 24px 16px;box-sizing:border-box;display:grid;gap:14px;align-content:start;container-type:inline-size;container-name:stage}
.boss{position:relative;cursor:pointer;display:grid;grid-template-columns:200px minmax(0,.85fr) minmax(0,1.5fr);grid-template-rows:auto 1fr;grid-template-areas:'img head head' 'img summon stats';gap:16px 20px;padding:20px;border:1px solid var(--stroke);border-radius:10px;background:var(--card)}
.stage[data-here] .boss{border-color:var(--orange)}   /* the marked stage: its own 1 px border in the class colour, no ring, no haze under it (Oleg, 2026-10-20: "too glowy" — it was border + a 1 px ring + a 32 px glow) */
/* the stage number lives inside .boss-head (render.js) but is placed against .boss: the corner tab. .boss-head must therefore stay
   unpositioned and untransformed. On phones it is a chip in the head's flow instead (see the phone block). */
.stage-no{position:absolute;top:-1px;left:-1px;z-index:1;min-width:30px;padding:8px 12px 9px;border-radius:10px 0 10px 0;background:var(--orange);font-family:var(--cond);font-size:17px;font-weight:700;line-height:1;letter-spacing:.03em;text-align:center;color:var(--bg)}
.boss-img{grid-area:img;display:flex;align-items:center;justify-content:center;width:200px;height:170px;margin:auto}
.boss-img img{width:100%;height:100%;object-fit:contain}
.boss-img .multi{display:flex;gap:10px;align-items:flex-end;justify-content:center;height:100%;width:100%}
.boss-img .multi img{width:40px}
.boss-head{grid-area:head;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
.boss-kind{display:none}
.boss-head h2{margin:0;font-family:var(--cond);font-size:29px;font-weight:700;line-height:1.05;letter-spacing:0}
/* the tags sit beside the name: centred on the line box they look high, because most of a name is lowercase —
   2px down puts their middle on the middle of the lowercase letters (phones: the tags are in the number chip's line instead) */
.boss-tags{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center;position:relative;top:2px}
.boss-summon{grid-area:summon;display:grid;gap:8px;align-content:start;border-left:1px solid var(--stroke);padding-left:20px;min-width:0}
.summon-item{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center}
.summon-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center}
.summon-icon img{max-width:40px;max-height:44px}
.summon-icon .empty{width:36px;height:36px;border:1px dashed var(--stroke);border-radius:6px}
.summon-name{font-size:var(--t15)}
.summon-rows{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:5px 14px;font-size:var(--t12);line-height:1.45}
.summon-rows .k{color:var(--muted);white-space:nowrap}
.summon-rows .v{min-width:0;text-wrap:pretty}
.boss-stats{grid-area:stats;display:grid;gap:14px;align-content:start;border-left:1px solid var(--stroke);padding-left:20px;min-width:0}
.no-stats{font-size:var(--t12);color:var(--muted)}
.st-label{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
/* the creatures of a boss fight (render.js bossStats, mobRow — Oleg, 2026-11-02: "first is sprite, then HP, Defense, Highest damage
   attack (and can click and open all other attacks)"): one table, a row per creature; the boss's HP total above it when the boss
   has no row of its own; a row with more opens (data-mob-toggle) — without script every row is open */
.mob-total{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.mob-total img{width:14px;height:14px;align-self:center;image-rendering:pixelated}
.mob-total-n{font-size:24px;line-height:1.05;letter-spacing:-.015em;font-variant-numeric:tabular-nums;color:var(--ink)}
.mob-total-kv{display:inline-flex;gap:6px;font-size:var(--t12);margin-left:4px}
.mob-total-kv .k{color:var(--muted)}.mob-total-kv .v{color:var(--pale);font-variant-numeric:tabular-nums}
.mobs{display:grid;--mob-cols:44px minmax(0,1fr) 76px 60px 108px 14px;--mob-gap:12px}
.mob-hd,.mob-row{display:grid;grid-template-columns:var(--mob-cols);gap:0 var(--mob-gap);align-items:center}
.mob-hd{padding:6px 0 5px;font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);border-bottom:1px solid var(--stroke)}
.mob-hd span{display:flex;align-items:center;gap:4px;white-space:nowrap}
.mob-hd span:nth-child(n+3){justify-content:flex-end;flex-wrap:wrap}
.mob-hd i{font-style:normal}
.mob-hd img{width:12px;height:12px;image-rendering:pixelated}
.mob-hd .st-sub{flex-basis:100%;justify-content:flex-end;text-transform:none;letter-spacing:0}
.mob{border-bottom:1px solid var(--stroke)}
.mob-row{width:100%;padding:6px 0;margin:0;border:0;background:none;color:inherit;font:inherit;text-align:left;min-height:48px}
button.mob-row{cursor:pointer;border-radius:4px}
button.mob-row:focus-visible{outline:2px solid var(--focus,var(--blue));outline-offset:-2px}
button.mob-row[data-pressed]{box-shadow:inset 0 0 0 999px var(--press)}   /* pressed: the shade on the row's own box (48 px tall: no band past it, so it never crosses the lines between rows — Oleg, 2026-11-02: "row just grays out without squeeze") */
.mob-pic{display:flex;align-items:center;justify-content:center;width:44px;height:44px}
.mob-pic img{display:block;max-width:44px;max-height:44px;width:auto;height:auto;image-rendering:pixelated}
.mob-pic img.smooth{image-rendering:auto}
.mob-name{min-width:0;font-size:var(--t13);line-height:1.3;color:var(--ink);text-wrap:pretty}
.mob-boss .mob-name{font-weight:700}
.mob-note{grid-column:2/3;grid-row:2;font-size:var(--t11);line-height:1.3;color:var(--muted);text-wrap:pretty;margin-top:1px}
.mob-hp,.mob-ar,.mob-hit{font-family:var(--cond);font-size:var(--t14);font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink);text-align:right;white-space:nowrap;line-height:1.2}
.mob-x{font-size:var(--t11);font-weight:400;color:var(--muted);margin-right:3px}
.mob-hp:empty::before,.mob-ar:empty::before,.mob-hit:empty::before{content:'–';color:var(--muted);font-weight:400}   /* (--mid was 3.05 : 1 in the light theme — contrast_check, 2026-11-02) */
.mob-hit{display:grid;justify-items:end}
.mob-max{margin-left:1px;color:var(--muted)}   /* "60*": the highest of the attack's cases; the opened row lists them all (render.js topCell) */
.mob-hitk{font-size:var(--t10);font-weight:400;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);line-height:1.3;white-space:normal;text-align:right;text-wrap:balance}
.mob-more{display:flex;justify-content:center;color:var(--muted);transition:transform .18s ease-out}
.mob[data-open] .mob-more{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.mob-more{transition:none}}
.mob-body{display:grid;gap:7px;padding:2px 14px 10px 56px}
html[data-js] .mob:not([data-open]) .mob-body{display:none}
html:not([data-js]) .mob-more{display:none}
.mob-kvs{display:grid;gap:3px}
.mob-kv{display:flex;justify-content:space-between;gap:12px;font-size:var(--t12);line-height:1.45}
/* the value stands whole on one line, and never gives way — until it would take more than 60% of the row: then it breaks at its own
   spaces, its lines at the right. One row needs it, on phones: Golem's free head, "144 / 150 / 156 / 162 / 168 / 174" (215 px) — it left its
   key 46 px (a word a line, 226 px tall) and made the page 15 px wider than a 320 px screen (2026-11-10). No other value passes 44%. */
.mob-kv .k{color:var(--pale);min-width:0}.mob-kv .v{flex:0 0 auto;max-width:60%;font-variant-numeric:tabular-nums;color:var(--ink);text-align:right}
.mob-ph{display:grid;grid-template-columns:12px minmax(0,1fr);align-items:center;gap:2px 8px}
.mob-ph img{width:12px;height:12px;image-rendering:pixelated}
.mob-ph .phl{grid-column:2}
.mob-sep{padding:8px 0 3px}
.mob-subs{margin:4px -14px 0 -56px;border-top:1px solid var(--stroke)}   /* a pillar's enemies (render.js mobRow `sub`): rows in the table's own columns — the body's padding undone */
.mob-sub+.mob-sub{border-top:1px solid var(--stroke)}
.mob-sub .mob-row{min-height:44px;padding:5px 0}
.mob-sub .mob-name{font-size:var(--t12)}
.mob-sub .mob-body{padding-bottom:8px}
@container stage (max-width:519.98px){
  /* phones (2026-11-03, Oleg: "some icons are small (like HP and defense, Values are a little large), also some numbers and text too
     close to each other"): the numbers a size down (--t12; they were --t13) with the arrow's spaces 1.5 px tighter; the armor
     column 48 so "60 → 10" and "16 → 30" stand on one line (at 34 every range wrapped); the hit column 70 (76) holds its label's
     longest words, "Cannonball" and "Phantasmal" (69 px at .04em); the name keeps 92 px at 390 (the table is 338 wide:
     "Shadowflame" is 89). Under 364 px of stage (a 360 / 375 px phone, the table 308 / 323) the armor column goes back to 34 and its
     ranges wrap after the arrow, so the name keeps 78 / 93 — "Crossbower" (77), "Drakomire" (67), "Deerclops" (67 bold) stay whole */
  .mobs{--mob-cols:32px minmax(0,1fr) 56px 48px 70px 10px;--mob-gap:6px}
  .mob-hp,.mob-ar,.mob-hit{font-size:var(--t12);word-spacing:-1.5px}.mob-hitk{word-spacing:0;letter-spacing:.04em}
  .phl .ph-v{font-size:var(--t13)}   /* the phase line's values a size over the row's numbers, not three (--t15 is the laptop's) */
  .mob-ar{white-space:normal;line-height:1.15}   /* the widest ranges still wrap after the arrow: "1,000 →" / "0", "12 →" / "−30" (render.js writes no break before the arrow) */
  .mob-pic{width:32px;height:32px}.mob-pic img{max-width:32px;max-height:32px}
  .mob-name,.mob-hitk{hyphens:auto;overflow-wrap:anywhere}   /* a word wider than its column breaks with a hyphen ("Shadow-flame" in 76 px at 360) instead of running into the numbers; anywhere: the break without a dictionary */
  .mob-hd{padding:7px 0 6px}
  .mob-hd img,.mob-ph img,.mob-total img{width:16px;height:16px}   /* the icons alone name the columns here (the words are hidden): 12 px were specks on a 2 × screen; 16 is the buff and debuff icons' size */
  .mob-ph{grid-template-columns:16px minmax(0,1fr);align-items:start}.mob-ph img{margin-top:2px}   /* the shield on the phase line's first line, not floating between two */
  .mob-kv{gap:16px}
  .mob-note{grid-column:2/-1}
  .mob-body{padding-left:38px;padding-right:0}
  .mob-subs{margin-left:-38px;margin-right:0}
  .mob-hd .st-sub,.mob-hd i{display:none}
  .mob-x{display:block;margin:0;line-height:1.1}
}
@container stage (max-width:363.98px){
  .mobs{--mob-cols:30px minmax(0,1fr) 56px 34px 70px 10px}   /* (the sprite 30 here: "Crossbower" is 77 px and the name's column 78 at 360) */
  .mob-pic{width:30px;height:30px}.mob-pic img{max-width:30px;max-height:30px}
  .mob-body{padding-left:36px}.mob-subs{margin-left:-36px}
}
.immune{gap:6px}
.immune-list{display:flex;flex-wrap:wrap;gap:5px}
.debuff{display:inline-flex;align-items:center;gap:5px;padding:2px 7px;border:1px solid var(--stroke);border-radius:4px;font-size:var(--t11);line-height:16px;color:var(--pale);white-space:nowrap}
.debuff.has-icon{padding-left:3px}
.debuff img{width:16px;height:16px}
/* buff / debuff names in text ("On Fire!*" in the data): the game icon (32 px art shown at 16) + the name; the icon stays with the first word */
.fx-h{white-space:nowrap}
.fx img{width:16px;height:16px;vertical-align:-3px;margin-right:3px;image-rendering:pixelated}
.st-info{margin:0;padding-left:15px;display:grid;gap:3px;font-size:var(--t12);line-height:1.45;color:var(--pale)}
/* the Summon rows as chips (2026-11-02, the prototype's look A — Oleg: "for biome place a small image and a name of the ingame biome
   name, for 'When' we can place a clock"; render.js "summon chips"): a chip is its picture — the map's biome painting (40 × 22), the
   sun / moon, an item, a head or a group of heads, the marker — and its words in the key family, a second line in the text face under
   them; the chips of a row wrap in their column, a long one wraps inside itself on a narrow phone; "and" / "or" between them are small
   and muted. A chip has 10 px of air before its edge (Oleg: "spacing from text to borders is too tight"). */
.summon-rows{gap:8px 14px;align-items:start}
.summon-rows .k:has(+.v>.sline){padding-top:4px}
.sline{display:flex;flex-wrap:wrap;gap:5px 6px;align-items:center;min-width:0}
.sline .spot{flex:1 0 100%;color:var(--pale);text-wrap:pretty}
.sc{display:inline-flex;flex-wrap:wrap;align-items:center;gap:7px;min-height:26px;max-width:100%;box-sizing:border-box;padding:3px 10px 3px 4px;border:1px solid var(--stroke);border-radius:5px;background:var(--card);font-family:var(--cond);font-size:var(--t11);line-height:1.2;text-transform:uppercase;letter-spacing:.04em;color:var(--pale);white-space:nowrap}
.sc-main{display:inline-flex;align-items:center;gap:6px;max-width:100%;white-space:normal}
.sc-main .sc-w{min-width:0}
.sc-plain,.sc-chance{padding-left:10px}
.sc-chance{white-space:normal}
.sc-chance b{font-weight:700;color:var(--ink);letter-spacing:.02em}
.sc-sub{font-family:var(--sans);font-size:var(--t11);text-transform:none;letter-spacing:0;color:var(--muted);white-space:normal;flex:0 1 auto}
.sc .pa{width:40px;height:22px;border-radius:3px;object-fit:cover}
.sc .pi{height:16px;width:auto;image-rendering:pixelated}
.sc .pt{display:inline-flex;gap:2px;align-items:center}
.sc .pt-i{height:16px;width:auto}
.sc .ph{display:inline-flex;align-items:center}
.sc .ph-i{height:18px;width:auto;margin-right:-5px;image-rendering:pixelated}
.sc .ph-i:last-child{margin-right:0}
.sc .ph-no{position:relative;opacity:.6}
.sc .ph-no::after{content:'';position:absolute;inset:-2px;background:linear-gradient(135deg,transparent 45%,var(--red) 45%,var(--red) 55%,transparent 55%)}   /* struck through: "no town NPC near" */
.sc .sc-pin{color:var(--orange);flex:0 0 auto}
.op{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:0 1px}
/* the summon item as a card (render.js summonItem — Oleg: "craft tree should open like any other item card but with only craft tree
   option already unfolded"): the tile the row was, with CRAFT / SOURCE at its right; a press opens it in the dialog (guide.js openCard),
   where the bar says it and the word goes. Plain (no card) when the item is none of the game's: the Old Man's Curse, the Lunatic Cultist. */
.card-summon{display:block;padding:5px 10px 5px 5px}
.card-summon .summon-item{grid-template-columns:44px minmax(0,1fr) auto;gap:10px}
.card-summon .name{font-size:var(--t15);font-weight:400;line-height:1.25}
.sum-kind{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);white-space:nowrap}
html:not([data-js]) .sum-kind,html[data-nodialog] .sum-kind{display:none}
html[data-js][data-nostats]:not([data-nodialog]) [data-boss-summon] .card-summon{cursor:pointer}   /* (its hover, press, focus ring and quiet ring: the section tiles' rules, ":is(.sections,[data-boss-summon])" — on the board only, so in the dialog it is as still as any opened card; Oleg, 2026-11-02) */
.cardbox .card-summon{padding:10px 12px}
.cardbox .card-summon .vbody{display:grid;--rg:6px;gap:var(--rg)}
.cardbox .card-summon .sum-kind{display:none}
/* the armor's phases as one line (render.js phaseLines, under the boss's own row): "50 Phase 1 → 40 below 50% → 0 below 15%", the enraged values dimmer under it */
.phl{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 6px;font-size:var(--t12);line-height:1.4}
.phl .ph-v{font-size:var(--t15);color:var(--ink);font-variant-numeric:tabular-nums}
.phl .ph-k{color:var(--muted)}
.ph-arrow{color:var(--mid)}
.phl-dim{margin-top:-2px}
.phl-dim .ph-v{font-size:var(--t12);color:var(--pale)}

/* the boss card follows the width of the stage as well (a container query): under 860 px the boss and the summon side by side
   with the numbers below; under 520 px (phones) Oleg's row of 2026-10-02 — number chip + tags, the name, the boss at the right —
   with summon and numbers under it */
@container stage (max-width:859.98px){
  .boss{grid-template-columns:170px minmax(0,1fr);grid-template-areas:'img head' 'img summon' 'stats stats'}
  .boss-img{width:170px;height:150px}
  .boss-head h2{font-size:27px}
  .boss-stats{border-left:0;padding-left:0;border-top:1px solid var(--stroke);padding-top:16px}
}
@container stage (max-width:519.98px){
  .boss{grid-template-columns:minmax(0,1fr) 112px;grid-template-rows:auto;grid-template-areas:'head img' 'summon summon' 'stats stats' 'more more';align-items:center;gap:14px 12px;padding:14px 14px 16px 16px}
  .boss-img{width:112px;height:90px;margin:0}
  .boss-img .multi{gap:4px}
  .boss-img .multi img{width:auto;min-width:0;max-width:calc(25% + 6px);max-height:100%;flex:0 1 auto}
  .boss-head{gap:6px}
  .boss-tags{display:contents}   /* the tags flow in the same line as the number chip */
  .stage-no{position:static;min-width:0;padding:4px 7px;border-radius:4px;font-size:13px}
  .boss-head h2{order:1;flex:1 0 100%;margin-top:2px;font-size:24px}
  .boss-summon,.boss-stats{border-left:0;padding-left:0;border-top:1px solid var(--stroke);padding-top:12px}
}
/* ---------- the boss row ----------
   With script the boss card is ONE ROW — boss, stage number, name, tags, "Boss info" — and the stage's cards start right under
   it. A press on the row (or B) opens the full card: summon, HP, armor, hits, immunities. data-bossinfo on <html>: it is open
   for every stage and stays so until it is closed (guide.js setBoss, saved as 'guide:boss'). Without script, and in the
   editor, the card is always the full one and has no control. */
/* forced colours (Windows high contrast): the preferred / favorite corners and the hit bars are drawn with backgrounds, which the
   mode blanks — they keep their own colours (2026-11-02, the critique's "no forced-colors rules"); borders and text follow the mode */
@media (forced-colors:active){.pref-mark,.fav-mark,.dot{forced-color-adjust:none}}
.boss-more,.boss-peek{display:none}
html[data-js] .boss-more{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 10px 0 12px;background:var(--btn);border:1px solid transparent;border-radius:8px;box-shadow:var(--btn-edge);font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;color:var(--ink);white-space:nowrap}   /* (the key family's label: --t11 and .06em like Search and Mark here — critique 2026-11-02; it was --t10 / .08em) */
.boss-more svg{flex:0 0 auto;color:var(--orange);transition:transform var(--d-fast) var(--ease)}
.boss-more-close,html[data-bossinfo] .boss-more-open{display:none}
html[data-bossinfo] .boss-more-close{display:inline}
html[data-bossinfo] .boss-more svg{transform:rotate(180deg)}
@media (hover:hover){.boss:hover .boss-more,.boss-more:hover{background:var(--btn-hover);color:var(--ink)}}
html[data-js]:not([data-bossinfo]) .boss{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto;grid-template-areas:'img head peek more';align-items:center;gap:0 14px;padding:6px 12px 6px 10px}
/* the closed row's peek: the boss's HP beside the Boss info key, so the row says what it opens (render.js bossPeek; 2026-11-02) */
html[data-js]:not([data-bossinfo]) .boss-peek{display:inline-flex;grid-area:peek;align-items:baseline;gap:5px;margin-right:4px;font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.boss-peek b{font-weight:600;font-size:var(--t13);color:var(--pale)}   /* (600: the condensed face's lightest — only the name is bold, Oleg 2026-11-06: "name should be only bold because it is the main text on a card"; it was 700, --t14, --ink) */
html[data-js]:not([data-bossinfo]) .boss-img{width:54px;height:40px;margin:0}
html[data-js]:not([data-bossinfo]) .boss-img:has(.multi){width:auto;max-width:120px}
html[data-js]:not([data-bossinfo]) .boss-img .multi{gap:3px;width:auto}
html[data-js]:not([data-bossinfo]) .boss-img .multi img{width:auto;min-width:0;max-width:28px;max-height:100%;flex:0 1 auto}
html[data-js]:not([data-bossinfo]) .boss-summon,html[data-js]:not([data-bossinfo]) .boss-stats{display:none}
html[data-js]:not([data-bossinfo]) .boss-head{gap:6px 12px}
html[data-js]:not([data-bossinfo]) .boss-head h2{font-size:20px;order:0;flex:0 1 auto;margin:0}
html[data-js]:not([data-bossinfo]) .boss-tags{display:inline-flex}
html[data-js]:not([data-bossinfo]) .stage-no{position:static;min-width:0;padding:5px 8px;border-radius:5px;font-size:14px}
html[data-js]:not([data-bossinfo]) .boss-more{grid-area:more}
/* open: the control is "Close", in the top right corner (phones: a row of its own at the end, the corner is the boss's) */
html[data-js][data-bossinfo] .boss-more{position:absolute;top:14px;right:14px}
html[data-js][data-bossinfo] .boss-head{padding-right:96px}
html[data-js][data-bossinfo] .boss{cursor:auto}html[data-js][data-bossinfo] .boss-head,html[data-js][data-bossinfo] .boss-img{cursor:pointer}   /* (open: only the header, the picture and Close close it) */
@container stage (max-width:519.98px){
  html[data-js][data-bossinfo] .boss-more{position:relative;top:auto;right:auto;grid-area:more;justify-self:center}   /* (relative, not static: the phones' larger touch area of Close (::after) must hang on the button, not on the whole open card. top / right auto: the laptop's top:14px stayed and, relative, pushed Close 14 px DOWN — 3 px from the card's bottom line, Oleg 2026-10-13: "Close button is too close to the outline border") */
  html[data-js][data-bossinfo] .boss-head{padding-right:0}
  html[data-js]:not([data-bossinfo]) .boss{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:'img head more' 'img peek more';gap:4px 10px;padding:9px 8px}   /* phones: the peek on a line of its own under the name (the lines 6 / 4 px apart, the row 9 px in: Oleg 2026-11-06, "the HP, Boss name, tags, stage number all are too close to each other" — they were 4 / 2 and 6) */
  html[data-js]:not([data-bossinfo]) .boss-peek{margin-right:0}
  html[data-js]:not([data-bossinfo]) .boss-img{width:46px;height:40px}
  html[data-js]:not([data-bossinfo]) .boss-head{gap:6px 8px}
  html[data-js]:not([data-bossinfo]) .boss-tags{display:contents}   /* the tags flow one by one in the number chip's line, centred on it, as in the open card: the box with the laptop's 2 px drop put "Required" 2 px under the chip (Oleg 2026-11-06), and "Corruption worlds" took the box to a line of its own and left "03" alone */
  html[data-js]:not([data-bossinfo]) .boss-head h2{font-size:16px;flex:1 0 100%;order:1}
  html[data-js]:not([data-bossinfo]) .stage-no{padding:4px 6px;font-size:12px}   /* (20 px: as tall as the "Optional" tag beside it — Oleg, 2026-10-13; it was 18) */
  html[data-js]:not([data-bossinfo]) .boss-more{padding:0 8px 0 10px}   /* (the word stays: a bare chevron said nothing — critique 2026-11-02; it was a 30 px chevron) */
  html[data-js][data-bossinfo] .boss{grid-template-areas:'head img' 'stats stats' 'summon summon' 'more more'}   /* open, on a phone: the numbers and the hits first, the summon after — the hit bars land on the first screen (critique 2026-11-02) */
}

/* ---------- the pager: one page of the guide on screen (guide.js showPage) ----------
   With script (data-js on <html>, set by the page's head script) only the page that carries data-on is there: "Before you start"
   = header#top + #notes, or one stage. The others are display:none — not laid out, not drawn. The phase dividers belong to the
   long page. Without script nothing is hidden: the guide is one long page and the rail's links jump down it. A page appears at
   once (no fade since 2026-10-10). Print: every stage. */
html[data-js] .phase{display:none}
@media (min-width:900px){html[data-js] main{padding-bottom:0}}   /* a stage that fits the screen must not scroll by an empty margin (narrower: room for the back pill, "the rail") */
html[data-js] .stage:not([data-on]),html[data-js] #notes:not([data-on]),html[data-js] header#top:not([data-on]){display:none}
/* (no fade-in of a page since 2026-10-10: in Safari it made every step ~100 ms slower — one 100–160 ms frame — and the fade was not even seen) */
@media print{
  html[data-js] .stage:not([data-on]),html[data-js] #notes:not([data-on]),html[data-js] header#top:not([data-on]){display:grid}
  .rail,.topnav,.back-pill{display:none!important}
  main,header#top{margin-left:0}
}

/* ---------- the rail: every page of the guide, at the left ----------
   from 1240 px   216 px: number, boss, name; ‹ 13 / 29 › on top
   900–1239 px    64 px: number and boss in a row, no names (the name is the tooltip) — the 152 px go to the board, which
                  then has its three columns of two tiles from a 1024 px screen on
   600–899 px     58 px: number over boss (taller rows for a finger), no names
   under 600 px   a strip along the bottom: ‹ [numbers and bosses, scrolling sideways] ›
   The rows share the height there is (22–28 px) and the list scrolls when a screen is shorter than that; guide.js keeps the
   current page in view. Marks: current = filled · the marked stage = a dot in the class colour · before the mark = done (✓, dimmed).
   The boss pictures stand still here (guide.js draws each one into a canvas): only the boss of the stage on screen moves. */
.rail{position:fixed;z-index:15;top:48px;bottom:0;left:max(0px,calc((100% - var(--col)) / 2));width:var(--rail);box-sizing:border-box;display:grid;grid-template-columns:30px minmax(0,1fr) 30px;grid-template-rows:auto minmax(0,1fr);grid-template-areas:'prev count next' 'list list list';gap:0 6px;padding:10px 8px 0;background:var(--bg);border-right:1px solid var(--stroke)}
.rail-step{grid-area:prev;display:inline-flex;align-items:center;justify-content:center;width:30px;height:28px;padding:0;background:var(--btn);border:1px solid transparent;border-radius:8px;box-shadow:var(--btn-edge);color:var(--ink)}
.rail-step[data-step="1"]{grid-area:next}
.rail-step:disabled{opacity:.35;cursor:default}
.rail-count{grid-area:count;align-self:center;text-align:center;font-family:var(--cond);font-size:var(--t11);letter-spacing:.08em;color:var(--pale);white-space:nowrap}
html:not([data-js]) .rail-step,html:not([data-js]) .rail-count{visibility:hidden}   /* ‹ › need the script; the links do not */
.rail-list{grid-area:list;display:flex;flex-direction:column;margin:10px -8px 0;padding:4px 8px 12px;border-top:1px solid var(--stroke);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.rail-group{flex:0 0 auto;font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.1em;color:var(--muted);padding:9px 8px 4px}
.rail-group[data-hard]{color:var(--orange)}
.rail-item{position:relative;flex:1 1 26px;min-height:22px;max-height:28px;display:grid;grid-template-columns:16px 24px minmax(0,1fr) 10px;gap:6px;align-items:center;padding:0 8px;border-radius:6px;font-size:13px;line-height:1;color:var(--pale);transition:background-color .12s ease,color .12s ease,box-shadow .25s var(--ease-out)}
.rail-num{font-family:var(--cond);font-size:var(--t10);color:var(--muted)}
.rail-pic{display:flex;align-items:center;justify-content:center;height:20px;min-width:0}
.rail-pic img,.rail-pic canvas{max-width:24px;max-height:20px;image-rendering:auto}
.rail-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rail-state{display:flex;align-items:center;justify-content:center;font-family:var(--cond);font-size:10px;line-height:1;color:var(--muted)}
.rail-item:hover{color:var(--pale)}
.rail-item[data-past]{color:var(--muted)}
.rail-item[data-past] .rail-pic{opacity:.5}
.rail-item[data-past] .rail-state::before{content:'✓'}
.rail-item[data-here-nav] .rail-state::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--orange)}   /* (no halo: 2026-10-20) */
.rail-item[data-on],.rail-item[data-on]:hover{background:var(--ink);color:var(--bg)}   /* (the current stage, ink-inverted: a quieter --lift + 1 px class-colour edge was tried and reverted the same night, 2026-11-02 — Oleg: "i changed my mind for now") */
.rail-item[data-on] .rail-num,.rail-item[data-on] .rail-state{color:inherit}.rail-item[data-on] .rail-num{opacity:.7}
.rail-item[data-on] .rail-pic{opacity:1}
@media (hover:hover){
  .rail-item:not([data-on]):hover{background:var(--lift);color:var(--ink)}
}
@media (max-width:1239px){
  :root{--rail:64px}
  .rail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:'prev next' 'count count' 'list list';gap:5px 4px;padding:8px 4px 0}
  .rail-step{width:auto}
  .rail-count{font-size:var(--t10);letter-spacing:0}
  .rail-list{margin:5px -4px 0;padding:4px 4px 10px}
  .rail-group{height:1px;padding:0;margin:5px 6px;background:var(--stroke)}   /* (a line stands for the group's name here) */
  .rail-group span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .rail-group[data-hard]{background:var(--orange)}
  .rail-item{grid-template-columns:16px minmax(0,1fr);gap:4px;padding:0 6px}
  .rail-name{display:none}
  .rail-state{position:absolute;right:1px;top:1px}
  .rail-item[data-here-nav] .rail-state::before{width:5px;height:5px}
  .stage{padding-left:16px;padding-right:16px}
}
@media (max-width:899px){
  :root{--rail:58px}
  .rail{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr);grid-template-areas:'prev' 'count' 'next' 'list';gap:4px 0;padding:8px 6px 0;justify-items:center}
  .rail-step{width:34px;height:30px}
  .rail-count{font-size:var(--t10);letter-spacing:0;margin:0 -5px}
  .rail-list{margin:6px -6px 0;padding:4px 5px 10px;justify-self:stretch}
  .rail-group{height:1px;padding:0;margin:5px 8px;background:var(--stroke)}
  .rail-group[data-hard]{background:var(--orange)}
  .rail-item{flex:1 1 40px;min-height:34px;max-height:44px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;justify-items:center;align-content:center;gap:2px;padding:2px 0}
  .rail-name{display:none}
  .rail-state{position:absolute;right:3px;top:3px;font-size:10px}
  .rail-item[data-here-nav] .rail-state::before{width:7px;height:7px}
  .rail-pic img,.rail-pic canvas{max-width:30px}
}
@media (max-width:599px){
  :root{--rail:0px;--strip:52px}
  .rail{z-index:22;top:auto;left:0;right:0;width:auto;height:calc(var(--strip) + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:6px;padding:0 8px env(safe-area-inset-bottom,0px);border-right:0;border-top:1px solid var(--stroke)}
  .rail-step{flex:0 0 40px;height:40px;border-radius:6px}
  .rail-step[data-step="1"]{order:3}
  .rail-count{display:none}
  .rail-list{order:2;flex:1 1 auto;min-width:0;flex-direction:row;align-items:center;gap:5px;height:40px;margin:0;padding:0;border-top:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 12px),transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 12px),transparent)}
  .rail-list::-webkit-scrollbar{display:none}
  .rail-group{display:none}
  .rail-item{flex:0 0 auto;min-height:0;max-height:none;height:38px;min-width:46px;box-sizing:border-box;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:auto;grid-template-rows:auto;gap:6px;justify-content:center;padding:0 9px;border:1px solid var(--stroke);border-radius:8px;scroll-snap-align:center}
  .rail-item[data-on]{border-color:transparent}
  .rail-pic img,.rail-pic canvas{max-width:22px}
  .rail-pic{width:22px;height:22px}   /* (a fixed box: the strip's items keep their width while the pictures load — it was scrolled to the current stage by widths that then grew, and the last stages ended up out of sight) */
  .rail-item[data-nav="top"] .rail-num{display:none}
  .rail-num:empty{display:none}   /* (a page with no number — Fishing, Building & mining, Damage, Endgame — and "Before you start": with two fixed columns its picture sat in one beside an empty one and the 6 px gap, 3 px off centre; the item has a column for each part it shows now (grid-auto-flow) — 2026-11-09, Oleg: "on the bottom rail on phones the images for Fishing guide, Building and Damage is not centered") */
  .rail-state{right:2px;top:2px}
  .rail-item[data-past] .rail-state::before{content:none}   /* (a done stage is only dimmed here: no room for the tick) */
  /* the back pill is a bar docked on the strip (it floated over the last cards of a stage that ends at the screen's edge) */
  .back-pill{left:8px;right:8px;bottom:calc(var(--strip) + env(safe-area-inset-bottom,0px) + 6px);height:36px;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.3)}
  .back-pill button{flex:1 1 0;justify-content:center;min-width:0}
  main{padding-bottom:calc(var(--strip) + env(safe-area-inset-bottom,0px) + 60px)}   /* the last cards can be scrolled clear of the strip and the bar */
}
@media (min-width:600px) and (max-width:899px){html[data-js] main{padding-bottom:0}.back-pill:not([hidden])~main{padding-bottom:76px!important}}   /* … and of the back pill, while it is there */

/* ---------- the board: the sections of a stage ----------
   Markup (render.js stageSections): .sec-col-a = Armor + Accessories · .sec-col-w = Weapons · .sec-minis = ( .sec-col-h = Hook &
   Mount + Potions · .sec-col-e = Extra ). Every section is always open; its title is a heading.
   The layout follows the width of THE STAGE (a container query, not the screen: the rail takes a different share at each range,
   and the editor's preview is narrower than its window):
     three columns  Armor + Accessories | Weapons | Hook & Mount + Potions + Extra      (each column stacks by itself)
     two columns    Armor + Accessories | Weapons, and under them Hook & Mount + Potions | Extra
     one column     everything under each other, in markup order
   The columns are equal, and a section is in the same column with Stats on and off.
   Full cards (Stats on; also without script, in the editor and where there is no <dialog>): three from 860 px, two from 560.
   Compact cards (Stats off, "compact cards" below): three from 914 px — the first width at which two tiles fit side by side
   in every column —, two from 420.
   Each mode sets the same two things (.sections, .sec-minis), so a later one replaces an earlier one whole.
   A browser without container queries shows one column. */
.sections{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;align-content:start}
.sec-col,.sec-minis{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-content:start;min-width:0}
.section{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-content:start;min-width:0}   /* (minmax(0,…): a long legend wraps instead of widening the column) */
@container stage (min-width:560px){
  .sections{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sec-minis{display:contents}
  .sections>:only-child{grid-column:1 / -1}
}
@container stage (min-width:860px){
  .sections{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sec-minis{display:grid}
}
.sec-title{display:flex;align-items:center;justify-content:space-between;margin:0;border-bottom:1px solid var(--stroke);padding:0 0 7px;font-family:var(--cond);font-size:var(--t13);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--ink);text-align:left}
.sec-title-text{display:inline-flex;gap:6px 14px;align-items:center;flex-wrap:wrap}
.chevron{color:var(--muted)}
.chevron::before{content:'+'}
[data-open]>.note-toggle .chevron::before{content:'−'}
.legend{display:inline-flex;flex-wrap:wrap;gap:3px 10px;align-items:center;font-family:var(--cond);font-size:var(--t10);letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
.legend-item{display:inline-flex;gap:5px;align-items:center}
/* the Summoner's Weapons title: the stage's minion and sentry slots (render.js stageSections — Oleg, 2026-11-01: "3x minion | 1x
   sentry"); the legend's type, and unlike the legend it stays on a phone */
.slotcap{display:inline-flex;flex-wrap:wrap;gap:3px 6px;align-items:baseline;font-family:var(--cond);font-size:var(--t10);letter-spacing:.06em;color:var(--muted);text-transform:uppercase}
.slotcap b{font-weight:500;color:var(--pale)}
.slotcap i{font-style:normal}
/* the stage's default ammo under WEAPONS (render.js ammoLine — look A of archive/previews/weapon-extras-2026-11-05, Oleg 2026-11-05):
   a kind's label, then its ammo as picture + short name, read without a tooltip; a compact tile leaves those tags out */
.ammoline{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 12px;align-items:center;margin:0 0 12px}
.al-lab{font-family:var(--cond);font-size:var(--t10);line-height:16px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.al-list{display:flex;flex-wrap:wrap;gap:5px 12px;min-width:0}
.al-i{display:inline-flex;align-items:center;gap:5px;font-size:var(--t12);line-height:16px;color:var(--ink);white-space:nowrap}
.al-i img{width:16px;height:16px;object-fit:contain;image-rendering:pixelated}
@media (max-width:599px){.al-lab{font-size:var(--t11)}}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card :is(.tag.t-dflt,.tags.tags-dflt){display:none}
/* a weapon's mix on its tile (render.js aload, stages 10–28): its Best load, each ammo once with its count in the corner (as a minion
   mix counts its staffs). No tag says the mix's ammo (2026-11-17, content-model.js mixTags), so a full card shows the load too; the
   opened card does not — it is out of .sections, and its AMMO MIX says it all */
.aload{display:none}
.sections .card .aload{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 7px;max-width:100%;margin-right:4px}   /* (wraps in a narrow tile: four ammo are 109 px — 1024 px, 146 px tiles) */
.al-s{position:relative;display:inline-grid;place-items:center;width:22px;height:22px;box-sizing:border-box;border:1px solid var(--stroke);border-radius:3px}
.al-s img{width:16px;height:16px;object-fit:contain;image-rendering:pixelated}
.al-n{position:absolute;right:-5px;bottom:-4px;padding:0 2px;border-radius:3px;background:var(--card);font-family:var(--cond);font-weight:500;font-size:var(--t10);line-height:1.1;color:var(--ink)}
@media (max-width:599px){.al-n{font-size:var(--t11)}}
.dot{flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:var(--stroke)}
.c-green{--dot:var(--green);--dot-text:var(--green)}.c-purple{--dot:var(--purple);--dot-text:var(--purple)}.c-blue{--dot:var(--blue);--dot-text:var(--blue-text)}.c-orange{--dot:var(--orange);--dot-text:var(--orange)}
.dot.c-green,.dot.c-purple,.dot.c-blue,.dot.c-orange{background:var(--dot)}
/* a body that can fold (the "Before you start" notes): closed until its note carries data-open (guide.js); the editor preview opens every one */
.sec-body{min-width:0;transition:opacity .18s ease,transform .18s ease;transform-origin:top}
.section:not([data-open])>.sec-body,.note:not([data-open])>.sec-body{display:none}
.sec-body[data-closing]{opacity:0;transform:translateY(-4px)}
.sec-body[data-opening]{animation:mg-open var(--d-open) var(--ease) both}
/* the cards of a section: as many per row as fit the section's column at the card's least width (full cards) */
.body-armor,.body-weapons,.body-acc,.body-list{display:grid;gap:10px}
.body-armor{grid-template-columns:repeat(auto-fill,minmax(min(100%,236px),1fr))}
.body-weapons{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}
.body-acc{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr))}
.body-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:8px}

/* ---------- compact cards: Stats off ----------
   A card is its picture, its name and its tags (Oleg, 2026-10-05) so that a stage fits one screen; set pieces, alternatives,
   ? notes and stat rows are in the opened card ("the opened card": a press, or Enter). "+3" = three alternatives inside.
   Only with script and <dialog> — T below; anywhere else the cards stay full. */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card{position:relative;cursor:pointer;min-height:44px;box-sizing:border-box;padding:6px 10px;align-content:center}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .piece-names,html[data-js][data-nostats]:not([data-nodialog]) .sections .card .alts,html[data-js][data-nostats]:not([data-nodialog]) .sections .card .info{display:none}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .name,html[data-js][data-nostats]:not([data-nodialog]) .sections .card .name-sm{font-size:13px;line-height:1.18;overflow-wrap:break-word}   /* (never cut: the longest names take three lines in the narrowest tile) */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .pieces{display:flex}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .piece{width:24px;height:26px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .piece img{max-width:24px;max-height:24px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .armor-body{grid-template-columns:72px minmax(0,1fr);gap:8px;align-items:center}   /* (a 170 px tile leaves 72 px for the name: "Adamantite" is 69) */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .armor-info{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .armor-info .name{order:-1;flex:0 1 auto;min-width:0}   /* (the DEF tag beside the name where both fit one line) */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .w-img{width:32px;height:32px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .w-img img{max-width:32px;max-height:32px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card-weapon,html[data-js][data-nostats]:not([data-nodialog]) .sections .w-variant{grid-template-columns:32px minmax(0,1fr);gap:7px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card-weapon.has-alts{grid-template-columns:minmax(0,1fr);grid-template-rows:auto}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card-acc.has-alts,html[data-js][data-nostats]:not([data-nodialog]) .sections .card-small.has-alts,html[data-js][data-nostats]:not([data-nodialog]) .sections .card-armor.has-alts{grid-template-rows:auto}   /* (its ALT row is not shown: the card's content is centred like any other tile's when a tall neighbour stretches the row) */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .w-body{gap:4px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .s-img{width:28px;height:28px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .s-img img{max-width:28px;max-height:28px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .s-grid{grid-template-columns:28px minmax(0,1fr);gap:7px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card-acc,html[data-js][data-nostats]:not([data-nodialog]) .sections .card-small,html[data-js][data-nostats]:not([data-nodialog]) .sections .card-weapon,html[data-js][data-nostats]:not([data-nodialog]) .sections .card-armor{padding:6px 8px}
/* a tag that names an item (ammo, a robe, a staff: .tag.has-ic) is only its picture here — a Ranger weapon has up to fifteen and
   they made its tile taller than the screen; the name is the tooltip, and the opened card spells them out */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .tag.has-ic{width:22px;height:22px;padding:0;gap:0;justify-content:center}
/* a word tag beside them is as tall (2026-10-13, Oleg: "Ruby staff … the box background for Sapphire robe and the bg for a tag
   HEAD is differs … increase … the tags to match the height of image subtitles"): 22 px, the words centred (it was 19) */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .tags .tag:not(.has-ic){min-height:22px;display:inline-flex;align-items:center}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .tag.has-ic .tag-ic{width:16px;height:16px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .tag.has-ic .tag-t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .tags{gap:3px}
/* "+3" = three alternatives inside (render.js MORE): a small chip INSIDE the card's bottom right corner (Oleg, 2026-10-08:
   "it should be inside the cards, so the outline of focus will not look awkward"). It reaches 14 px into the content box
   from the right and 8 px from below, and only what stands in that corner has to keep clear of it — the END of the card's
   last line:
   · a name that is the last line ends in 14 px of room GLUED to its last word (::after = a word joiner with padding: no
     line break can come between the word and the room). Where the room does not fit, the last word goes to the next line
     with it — a name on one more line, never an empty line (the invisible inline-block spacer of 2026-10-06 could wrap by
     itself: the name got an empty second line, stood high, and its dot low);
   · tags that are the last line end in a 14 × 8 px flex item: beside the last tag it takes no room; on a line of its own
     (the last row of tags is full) it lifts the tags 11 px clear of the chip;
   · an armor tile's last line is its DEF chip and tags (the name stands before them): .armor-top is padded.
   A card is as tall as it was unless its last line really reaches the corner. A one-line name in a 44 px tile stands
   above the chip (0.7 px of its line box under the chip's edge, no ink), but is shortened like any last line.
   Tried before and dropped: on the picture's corner (over the sprite) · on the card's right edge, 5 px out with a gutter
   (2026-10-07: the focus ring went through the chip, and the gutter broke "Adamantite") · a reserved strip under the
   content (2026-10-08, measured: +7…11 px on every card with a count, 8–15 stages per guide no longer fitted 1280×720).
   Hidden on a full card: its ALT chips say it. A stack has none. */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card{--more-w:14px;--more-h:8px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .more{display:block;position:absolute;right:5px;bottom:3px;min-width:17px;box-sizing:border-box;text-align:center;font-family:var(--cond);font-size:9px;line-height:9px;color:var(--pale);background:var(--lift);border:1px solid var(--stroke);border-radius:4px;padding:0 2px;pointer-events:none}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.has-alts:not(.is-stack) .name::after,html[data-js][data-nostats]:not([data-nodialog]) .sections .card.has-alts:not(.is-stack) .name-sm::after{content:'\2060';padding-right:var(--more-w)}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.has-alts:not(.is-stack) .tags::after{content:'';flex:0 0 var(--more-w);height:var(--more-h)}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.has-alts [data-variant]:has(.tags) .name::after,html[data-js][data-nostats]:not([data-nodialog]) .sections .card.has-alts [data-variant]:has(.tags) .name-sm::after,html[data-js][data-nostats]:not([data-nodialog]) .sections .card-armor.has-alts .name::after{content:none}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card-armor.has-alts .armor-top{padding-right:15px}
/* a name whose LAST word is a soft-hyphen word (render.js: .lw-end; an inline-block, and a line may always break beside one —
   the glued room wrapped to a line of its own: "Band of Regeneration" stood high with an empty line under it, 2026-10-08):
   there the room is inside that word's own box */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.has-alts:not(.is-stack) .name:has(>.lw-end)::after,html[data-js][data-nostats]:not([data-nodialog]) .sections .card.has-alts:not(.is-stack) .name-sm:has(>.lw-end)::after{content:none}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.has-alts:not(.is-stack) .lw-end{box-sizing:border-box;padding-right:var(--more-w)}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.has-alts [data-variant]:has(.tags) .lw-end,html[data-js][data-nostats]:not([data-nodialog]) .sections .card-armor.has-alts .lw-end{padding-right:0}
/* The preferred mark (render.js MARK; ".pref-mark" under "cards") is 12 px on a tile: its legs end where the content begins (6 px
   padding over it, 8–10 px beside it: no point of the content is within 12 px of the corner along both), so no tile needs room for
   it. Until 2026-10-26 the class's fragment stood in this corner, and a name running into it gave the tile — then its whole
   section — 14 px of room over and under (guide.js prefRoom, gone with it). */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .pref-mark,html[data-js][data-nostats]:not([data-nodialog]) .sections .card .fav-mark{width:12px;height:12px}   /* (the favorite mark too, in the top left corner: 6 px padding over the picture, 10 px beside it) */
html[data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card:focus-visible{outline:1px solid var(--orange);outline-offset:-1px}   /* 1 px, on the card's own edge (Oleg, 2026-10-10: 2 px "too bulky") */   /* INSIDE the card's edge (Oleg, 2026-10-08): around it, the ring lay on the neighbouring tiles — they are 6 px apart — and on the preferred marks */
html[data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card{scroll-margin:60px 8px 20px}   /* (the arrow keys scroll a card into view: clear of the top bar; phones add the strip's height below) */
/* a tile showing one of its alternatives (guide.js showVariant, 2026-10-20): a dashed edge — "alternative", as the dashed stage chips of
   Search — and no preferred mark, which belongs to the main card (its room stays: nothing moves). On the board only: in the opened card
   the ALT chips say which, and its edge marks the card the others are compared with. */
html[data-js] .sections .card[data-shows-alt]{border-style:dashed;border-color:var(--mid)}
html[data-js] .sections .card[data-shows-alt]>.pref-mark{visibility:hidden}
/* the mouse on a tile with a Best with lights its whip / whip stack's tile (guide.js data-lit — look A, 2026-11-05): a 1 px edge in the class colour */
@media (hover:hover){html[data-js] .sections article.card[data-lit]{border-color:var(--orange)}}
/* the way back after a Best with jump (guide.js backTo — look A, 2026-11-05): "‹ BACK TO" + the card it came from, over the card it opened */
.cback{grid-column:1/-1;margin:0 0 6px}
.cback>button{display:inline-flex;align-items:center;gap:6px;min-height:28px;margin:0;padding:2px 0;background:none;border:0;font-family:var(--cond);font-size:var(--t11);letter-spacing:.06em;text-transform:uppercase;color:var(--pale);cursor:pointer}
.cback>button:focus-visible{outline:1px solid var(--orange);outline-offset:2px}
.cback .bw-w{text-transform:none;letter-spacing:0;color:inherit}
.cback-mix{display:inline-flex;align-items:center;gap:2px}
.cback .mr-i{--mr-s:22px}
@media (hover:hover){.cback>button:hover{color:var(--ink)}}
@media (pointer:coarse){.cback>button{min-height:40px}}
/* hover and touch (2026-11-01, Oleg: "animating while hovering and touching"; design.md "Motion"): with a mouse a tile rises 2 px AS ONE
   PIECE — its picture stays level with its name (Oleg, of a prototype where only the picture hopped: "the picture shifts from
   alignment") — a soft shadow under it, its frame tinted with the class colour; pressed (finger, pen or mouse) the frame lights at
   once. Only translate, box-shadow and colours move; the press flash stays instant (Safari: "Press flash"). */
@media (hover:hover){html[data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card{transition:translate var(--d-lift) var(--ease-out),box-shadow var(--d-lift) var(--ease-out),background-color .25s ease,border-color .25s ease,color .25s ease}
  html[data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card:hover{translate:0 -2px;box-shadow:inset 0 0 0 999px var(--press);border-color:color-mix(in srgb,var(--orange) 45%,var(--stroke))}
  html[data-theme="light"][data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card:hover{box-shadow:inset 0 0 0 999px var(--press),0 1px 2px rgba(40,30,20,.05)}}
@media (hover:hover) and (prefers-reduced-motion:reduce){html[data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card:hover{translate:none}}
/* the rise left a still mouse behind (2026-11-05, Oleg: "when the mouse is at lower of the card … the card start going up and down
   without the cursor moving" — Safari's engine): in its bottom 2 px the tile rose from under the mouse, the hover ended, it came down,
   and so on. A hovered tile keeps the 2 px it rose from as an invisible strip under its edge, so the hover ends where the tile rests
   (tools/site-checks/hover_check.py). */
@media (hover:hover) and (prefers-reduced-motion:no-preference){html[data-js][data-nostats]:not([data-nodialog]) [data-boss-summon] .card{position:relative}
  html[data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card:hover::after{content:'';position:absolute;left:-1px;right:-1px;bottom:-3px;height:2px}}
html[data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card[data-pressed]{border-color:color-mix(in srgb,var(--orange) 70%,var(--stroke))}
html[data-js][data-nostats]:not([data-nodialog]) .body-armor,html[data-js][data-nostats]:not([data-nodialog]) .body-weapons,html[data-js][data-nostats]:not([data-nodialog]) .body-acc,html[data-js][data-nostats]:not([data-nodialog]) .body-list{gap:6px}
html[data-js][data-nostats]:not([data-nodialog]) .body-armor{grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr))}
/* 144 px: the least width at which the longest single word of a name fits beside the picture ("Counterweight" 91 px in a small
   card, "Flamethrower" 85 px in a weapon card). Two of them and their gap = 294 px = a column of the three-column board at 914 px. */
html[data-js][data-nostats]:not([data-nodialog]) .body-acc,html[data-js][data-nostats]:not([data-nodialog]) .body-list,html[data-js][data-nostats]:not([data-nodialog]) .body-weapons{grid-template-columns:repeat(auto-fill,minmax(min(100%,144px),1fr))}
html[data-js][data-nostats]:not([data-nodialog]) .section{gap:5px}
html[data-js][data-nostats]:not([data-nodialog]) .sec-title{padding-bottom:5px}
html[data-js][data-nostats]:not([data-nodialog]) .sections,html[data-js][data-nostats]:not([data-nodialog]) .sec-col,html[data-js][data-nostats]:not([data-nodialog]) .sec-minis{gap:10px 16px}
@container stage (min-width:420px){
  html[data-js][data-nostats]:not([data-nodialog]) .sections{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-js][data-nostats]:not([data-nodialog]) .sec-minis{display:contents}
  html[data-js][data-nostats]:not([data-nodialog]) .sections>:only-child{grid-column:1 / -1}
}
@container stage (min-width:914px){
  html[data-js][data-nostats]:not([data-nodialog]) .sections{grid-template-columns:repeat(3,minmax(0,1fr))}
  html[data-js][data-nostats]:not([data-nodialog]) .sec-minis{display:grid}
}
/* a phone held upright: two cards per row in every section (one on the narrowest for armor and weapons); smaller pictures */
@container stage (max-width:419.98px){
  html[data-js][data-nostats]:not([data-nodialog]) .sections,html[data-js][data-nostats]:not([data-nodialog]) .sec-col,html[data-js][data-nostats]:not([data-nodialog]) .sec-minis{gap:10px}
  html[data-js][data-nostats]:not([data-nodialog]) .body-acc,html[data-js][data-nostats]:not([data-nodialog]) .body-list,html[data-js][data-nostats]:not([data-nodialog]) .body-armor,html[data-js][data-nostats]:not([data-nodialog]) .body-weapons{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-js][data-nostats]:not([data-nodialog]) .body-armor,html[data-js][data-nostats]:not([data-nodialog]) .body-weapons,html[data-js][data-nostats]:not([data-nodialog]) .body-acc,html[data-js][data-nostats]:not([data-nodialog]) .body-list{gap:4px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card{padding:5px 6px;min-height:42px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .pref-mark{width:10px;height:10px}   /* (5 px padding over the content, 6 px beside it: a 12 px corner would reach a name's first line) */
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .fav-mark{width:9px;height:9px}   /* (a square picture fills its 26 px box 6 px beside the corner and 5 px under it: a 10 px corner came within 0.7 px of it — Ruinous Staff, Desert Tiger Staff) */
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card{--more-w:15px;--more-h:9px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .more{right:4px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card-armor.has-alts .armor-top{padding-right:0}
  /* the name is the armor tile's last line now: it carries the "+N" room, as any other tile's name does */
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card-armor.has-alts .name::after{content:'\2060';padding-right:var(--more-w)}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card-armor.has-alts .name:has(>.lw-end)::after{content:none}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card-armor.has-alts .lw-end{padding-right:var(--more-w)}
  html[data-js][data-nostats]:not([data-nodialog]) :is(.sections,[data-boss-summon]) .card{scroll-margin-bottom:84px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .s-grid{grid-template-columns:24px minmax(0,1fr);gap:5px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .s-img{width:24px;height:24px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .s-img img{max-width:24px;max-height:24px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .name,html[data-js][data-nostats]:not([data-nodialog]) .sections .card .name-sm{font-size:12px}
  /* every armor tile one shape (2026-10-13, Oleg: "on Mix 2 there is a lot of space and name and total DEF are in row, make it
     consistent … position DEF value after some space after images of armor pieces and on the next row the armor card name"):
     the pictures and the DEF chip (+ its tag) on the first line, the name on its own line under them — until then the name and
     the chip shared a line only where both fitted (short names: "Mix 2"), so tiles side by side had two different shapes */
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .armor-body{grid-template-columns:auto minmax(0,1fr);gap:4px 8px;align-items:center}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .armor-info{display:contents}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .armor-top{grid-column:2;grid-row:1;justify-content:flex-start}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .armor-info .name{grid-column:1 / -1;grid-row:2;order:0}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .pieces{justify-self:start}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card-weapon:not(.has-alts),html[data-js][data-nostats]:not([data-nodialog]) .sections .w-variant{grid-template-columns:26px minmax(0,1fr);gap:2px 6px;align-items:center}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .w-img{width:26px;height:26px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .w-img img{max-width:26px;max-height:26px}
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .w-body{display:contents}                    /* picture + name in one line, the tags in a line of their own under them */
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .w-body .tags{grid-column:1 / -1}
}   /* (the section titles' legend of the dots showed on phones since 2026-11-02 — it was hidden here: "the coloured dots have no legend under 600 px"; it wraps under the title when it does not fit beside it) */
/* the narrowest two-column phones (a 320 px screen): the DEF chip (57 px) did not fit beside the pictures (54 px left) and ran 3 px
   past its column toward the preferred mark's corner — 4 px between them instead of 8 (2026-10-26, the dog-ear; until then the old
   mark's room moved such a tile's content down) */
@container stage (max-width:319.98px){
  html[data-js][data-nostats]:not([data-nodialog]) .sections .card .armor-body{column-gap:4px}
  .mobs{--mob-cols:26px minmax(0,1fr) 52px 30px 58px 10px;--mob-gap:4px}   /* the creature table (268 px): the numbers a size down again (12 px: "124,950" in 52, "216 → 270" in 58); the armor range wraps after its arrow here ("60 →" / "10") so the name keeps ~72 px ("Crossbower") */
  .mob-pic{width:26px;height:26px}.mob-pic img{max-width:26px;max-height:26px}
  .mob-hp,.mob-ar,.mob-hit{font-size:var(--t11)}
  .mob-body{padding-left:30px}
  .mob-subs{margin-left:-30px}
}
@container stage (max-width:299.98px){
  html[data-js][data-nostats]:not([data-nodialog]) .body-armor,html[data-js][data-nostats]:not([data-nodialog]) .body-weapons{grid-template-columns:minmax(0,1fr)}
}
.more{display:none}
.card-hole{min-width:0}   /* keeps the place of a card while it is in the dialog — and shows it there, dimmed (guide.js ghostOf, 2026-10-10) */
.card-hole>.card-ghost{box-sizing:border-box;height:100%;margin:0;box-shadow:inset 0 0 0 999px var(--press);pointer-events:none;animation:none!important}   /* (the stand-in wears the press shade — Oleg, 2026-11-02: "remove it, only press effect"; until then scale .97 + a brightness dip) */

/* ---------- the opened card: a compact card in full, in <dialog data-cardbox> (guide.js openCard) ----------
   The card is the card of the page, moved here and back. It shows everything, the stat rows too. The dialog has no box of its
   own (the card is the box); ? notes may reach beyond it. Taller than the screen: it scrolls inside. */
.cardbox{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-width:none;max-height:none;margin:auto;padding:0;border:0;background:none;color:inherit;overflow:visible}
.cardbox:not([open]){display:none}
.cardbox[open]{animation:mg-open var(--d-open) var(--ease) both}
.cardbox::backdrop{background:rgba(0,0,0,.55)}
html[data-modal]{overflow:hidden}   /* an opened card: the page under it stays where it is */
html[data-modal="gutter"]{scrollbar-gutter:stable}   /* (only when the page had a scrollbar: its room is kept, so nothing moves sideways; without one, no empty bar) */
.cardbox{overscroll-behavior:contain}
[data-theme="light"] .cardbox::backdrop{background:rgba(40,30,20,.4)}
.cardbox[data-tall]{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:12px 8px 0;margin:auto;width:min(456px,calc(100vw - 8px));overflow-y:auto;overscroll-behavior:contain}
.cardbox-slot{display:grid;min-width:0}
.cardbox-slot>.card{box-shadow:0 24px 64px rgba(0,0,0,.5)}
.cardbox-close{position:relative;display:flex;align-items:center;gap:8px;height:34px;margin:12px auto 0;padding:0 14px;background:var(--btn);border:1px solid transparent;border-radius:17px;box-shadow:var(--btn-edge);font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;color:var(--ink)}   /* (relative: painted over the card's shadow, as the sticky one under a tall card — static, it lay under it and was darker under a short card: Oleg, 2026-11-07 "armor … like white … weapon … much darker"; touch_check.py) */
.cardbox[data-tall] .cardbox-close{position:sticky;bottom:8px;margin-bottom:8px}
.cardbox-close kbd{font-family:var(--cond);font-size:var(--t10);padding:1px 5px;border:0;border-radius:4px;background:var(--bg);color:var(--muted)}
[data-guide] .cardbox-close:focus-visible{outline:none;border-color:var(--orange);color:var(--ink)}
/* what ← → and Enter do in the opened card, written where it happens (guide.js syncKeys sets data-keys): key caps at the end of
   a card's ALT row ("alts" = ← → walk its alternatives · "enter" = Enter goes into them) and in front of "Compared with"
   (← → walk the cards). Only where there is a keyboard. */
.cap-keys{display:none}
@media (hover:hover) and (pointer:fine){
  .cardbox-cap[data-keys="walk"] .cap-keys{display:inline-flex;gap:3px}
  .cap-keys kbd,.cardbox .card[data-keys]>.alts::after,.cardbox .card[data-keys] .sw::after{font-family:var(--cond);font-size:var(--t10);line-height:1.5;padding:0 5px;border:1px solid var(--stroke);border-radius:3px;color:var(--muted);letter-spacing:0;text-transform:none}
  .cardbox .card[data-keys]>.alts::after{margin-left:auto;white-space:pre}
  .cardbox .card[data-keys] .sw{padding-right:54px}.cardbox .card[data-keys] .sw::after{position:absolute;right:0;bottom:7px;white-space:pre}
  .cardbox .card[data-keys="alts"]>.alts::after,.cardbox .card[data-keys="alts"] .sw::after{content:'\2190  \2192'}
  .cardbox .card[data-keys="enter"]>.alts::after{content:'Enter'}
  .cardbox[data-set] .card[data-keys="alts"]>.alts::after{content:'\2190  \2192   Esc';border-color:var(--orange);color:var(--orange)}   /* inside a compared card's alternatives: the keys are here now */
  .cardbox[data-set] .card[data-keys="alts"]>.alts{border-top-color:var(--orange)}
}
@media (hover:hover){.cardbox-close:hover{background:var(--btn-hover);color:var(--ink)}}
@media (prefers-reduced-motion:reduce){.cardbox[open]{animation:none}}
/* An armor card opens with the stage's other armor cards (guide.js openCard, SET_OF): data-set, --n = how many. They stand side
   by side while a card keeps 236 px (the least width of a full armor card on the board), else under each other; the pressed one
   is first. Each wants 360 px (340 until 2026-10-11 — Oleg: a crafting row like "Platinum Bar · Furnace · or 24" fell to a second
   line where "Gold Bar" fitted; macOS's wider text needs the room), less when the screen is narrower. */
.cardbox[data-set]{width:min(calc(100vw - 24px),calc(var(--n,2) * var(--w,360px) + (var(--n,2) - 1) * 12px))}
.cardbox[data-set][data-tall]{width:min(calc(100vw - 8px),calc(var(--n,2) * var(--w,360px) + (var(--n,2) - 1) * 12px + 16px))}
.cardbox[data-set] .cardbox-slot{grid-template-columns:repeat(auto-fit,minmax(min(100%,236px),1fr));gap:12px;align-items:stretch}
.cardbox[data-set] .cardbox-slot>.card{box-shadow:0 16px 40px rgba(0,0,0,.45)}
.cardbox[data-set] .cardbox-slot>.card:not([data-base]){cursor:pointer}
/* the one the others are compared with (Oleg, 2026-10-09: in the light theme its dark 1 px edge was lost against the dimmed page, and
   white / black edges were too hard): a 2 px edge in the class colour (its border + 1 px inside it). No wash of the colour over the card: in the dark
   theme it made the card as light as the piece-name chips (--lift) and they vanished */
.cardbox-slot>.card[data-base],.cardbox[data-fanned] .card>.variant[data-base]{border-color:var(--orange)}
/* … in the colours of the marks it shows (Oleg, 2026-10-27: "if the selected card in comparison have Gold Mark and not the Preferred -
   all outline is gold, if Gold mark and Preferred mark then th half where where Gold mark is Gold and the other is the class color"):
   a favorite — gold; preferred too — the left half gold under the favorite mark, the right half the class colour under the
   preferred mark, meeting sharply in the middle (the border transparent over a split background image: an edge of two colours that
   keeps the round corners); else the class colour. A fanned alternative never shows the preferred mark. The background COLOUR stays
   the card's: the cards fade theirs, and from transparent the card went dark and see-through for a moment when another one became
   the one compared with (Oleg, 2026-10-27: "the Forbidden Armor card becomes darken and invisible and then comes back"). */
.cardbox-slot>.card[data-base]:is(:not(.has-alts):has(.fav-mark),:has(>[data-variant][data-on] .fav-mark)),.cardbox[data-fanned] .card>.variant[data-base]:has(.fav-mark){border-color:var(--fav)}
.cardbox-slot>.card[data-base][data-pref="1"]:is(:not(.has-alts):has(.fav-mark),:has(>[data-variant][data-on] .fav-mark)){border-color:transparent;
  background-image:linear-gradient(var(--card),var(--card)),linear-gradient(90deg,var(--fav) 50%,var(--orange) 50%);background-origin:padding-box,border-box;background-clip:padding-box,border-box}
.cardbox .cardbox-slot>.card[data-base],.cardbox[data-fanned] .card>.variant[data-base]{box-shadow:0 16px 40px rgba(0,0,0,.45)}   /* (1 px since 2026-10-11 — Oleg: "make outline on comparing item cards thinner"; it was the border + an inset 1 px) */
@media (hover:hover){.cardbox[data-set] .cardbox-slot>.card:not([data-base]):hover{border-color:var(--mid)}}
/* A hook card and the wings card open FANNED (Oleg, 2026-10-07; guide.js openCard, data-fanned on the dialog): every
   alternative of the card is a card of its own, side by side like an armor set, the one the tile showed first (data-lead).
   The article is only their grid there — it is still ONE node, moved into the dialog and back — and its ALT chips are not
   shown: a press on an alternative picks it. */
.cardbox[data-fanned]{--w:300px}
.cardbox[data-fanned] .cardbox-slot{display:block}
.cardbox[data-fanned] .cardbox-slot>.card{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,236px),1fr));grid-template-rows:auto;gap:12px;align-items:stretch;align-content:start;padding:0;border:0;border-radius:0;background:none;box-shadow:none;cursor:default}
.cardbox[data-fanned] .card>.variant{position:relative;display:grid;align-content:start;padding:10px 12px 12px;border:1px solid var(--stroke);border-radius:10px;background:var(--card);box-shadow:0 16px 40px rgba(0,0,0,.45);cursor:pointer}
.cardbox[data-fanned] .card>.variant[data-lead]{order:-1}
.cardbox[data-fanned] .card>.variant[data-base]{cursor:default}
.cardbox[data-fanned] .card>.alts,.cardbox[data-fanned] .card>.pref-mark{display:none}
@media (hover:hover){.cardbox[data-fanned] .card>.variant:not([data-base]):hover{border-color:var(--mid)}}
/* … and their stats are compared with the pressed one's (guide.js compare, "Marks+" since 2026-10-09):
   data-cmp="up" = better (green ▲), "down" = worse (red ▼), "only" = only this one has it (◇, neither good nor bad), "none" =
   a stat it lacks and that is not judged. A shape AND a colour, never the colour alone. The mark and the amount beside it
   (.cmp-d: "▲ 6%") carry the verdict; the value itself stays in the text colour. The DEF chip is coloured as a whole. */
.cardbox-cap{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 12px;width:fit-content;max-width:100%;box-sizing:border-box;margin:0 auto 10px;padding:6px 14px;background:var(--bg);border:1px solid var(--stroke);border-radius:16px;font-family:var(--cond);font-size:var(--t11);line-height:1.3;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);text-align:center}
.cardbox-cap b{font-weight:400;color:var(--ink)}
.cardbox[data-tall] .cardbox-cap{position:sticky;top:0;z-index:2;margin-bottom:8px;box-shadow:0 4px 12px rgba(0,0,0,.35)}   /* (stays in sight while the cards scroll under it: it names the armor the colours refer to) */
.cmp-key{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:2px 12px}
.cmp-up,.def[data-cmp="up"],[data-cmp="up"]>.cmp-d,[data-cmp="up"] .row-v .cmp-d{color:var(--green)}
.cmp-down,.def[data-cmp="down"],[data-cmp="down"]>.cmp-d,[data-cmp="down"] .row-v .cmp-d{color:var(--red)}
.cmp-only,.cmp-sum-c[data-cmp="only"]{color:var(--only)}   /* neutral: neither better nor worse — a rose of its own (round 7; it was grey): not a class colour (the class colour marks the one compared with), not green / red, not the amber of SET */
.def[data-cmp="up"]{border-color:var(--green)}.def[data-cmp="down"]{border-color:var(--red)}
/* the ▲ / ▼ / ◇: in the caption a generated shape; on a value an element guide.js puts right in FRONT of the number (the SET chip
   is beside the NAME since round 7) — so the numbers of a card keep their right edge */
.cmp-up::before,.cmp-down::before,.cmp-only::before,.cmp-ic{content:'';display:inline-block;width:0;height:0;margin-right:5px;border-left:3.5px solid transparent;border-right:3.5px solid transparent;vertical-align:1px}
.cmp-up::before{border-bottom:5px solid currentColor}
.cmp-down::before{border-top:5px solid currentColor}
[data-cmp="up"] .cmp-ic{border-bottom:5px solid var(--green)}
[data-cmp="down"] .cmp-ic{border-top:5px solid var(--red)}
.cmp-only::before,[data-cmp="only"] .cmp-ic{box-sizing:border-box;width:6px;height:6px;border:1.5px solid var(--only);transform:rotate(45deg);margin-right:7px;vertical-align:1px}
.cmp-d{font-family:var(--cond);font-size:var(--t10);letter-spacing:0;margin:0 7px 0 -1px;vertical-align:1px}
/* what the one compared with has and this one lacks: rows under the card's own, after a label */
.cmp-sep{break-inside:avoid;margin-top:7px;padding-top:5px;border-top:1px dashed var(--stroke);font-family:var(--cond);font-size:var(--t10);line-height:1.3;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.cmp-miss .row-v{color:var(--muted)}
/* the line on top of the rows: the score against the one compared with */
.row.cmp-sum{align-items:center;padding:2px 0 5px;margin-bottom:1px;border-bottom:1px solid var(--stroke);font-family:var(--cond);font-size:var(--t10);line-height:1.3;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.cmp-sum-base{grid-column:1/-1;color:var(--orange)}
.cmp-sum-v{display:inline-flex;gap:9px;justify-content:flex-end;white-space:nowrap}
.cmp-sum-c{font-size:var(--t11);letter-spacing:0}
.cmp-sum-c[data-cmp="up"]{color:var(--green)}.cmp-sum-c[data-cmp="down"]{color:var(--red)}
.cmp-sum-c .cmp-ic{margin-right:4px}
.cmp-sum-c[data-cmp="only"] .cmp-ic{margin-right:5px}
/* ---------- the notes of an opened card: a bar that unfolds in place (guide.js buildNotes; Oleg, 2026-10-09) ----------
   Only inside the dialog: there the ? is gone and this block stands under the stats (it spans the card's columns). data-notes
   on the dialog = open | closed for every card in it. */
.cnotes{display:none}
.cardbox .card .info{display:none}
.cardbox .cnotes{display:block;grid-column:1/-1;min-width:0;border-top:1px solid var(--stroke);padding-top:6px;font-size:var(--t12);line-height:1.45;text-align:left;cursor:auto}
.cnotes-bar{position:relative;display:flex;align-items:center;gap:7px;width:100%;margin:0;padding:1px 0;background:none;border:0;font-family:var(--cond);font-size:var(--t10);line-height:1.5;text-transform:uppercase;letter-spacing:.08em;color:var(--pale);text-align:left;cursor:pointer}
.cnotes-bar b{box-sizing:border-box;min-width:16px;padding:0 4px;border:1px solid var(--stroke);border-radius:8px;font-weight:400;letter-spacing:0;text-align:center;color:var(--ink)}
.cnotes-bar kbd{display:none;margin-left:auto;padding:0 5px;border:1px solid var(--stroke);border-radius:3px;font-family:var(--cond);font-size:var(--t10);letter-spacing:0;color:var(--muted)}
.cnotes-bar i{flex:0 0 auto;width:6px;height:6px;margin:0 3px 3px auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform var(--d-fast) var(--ease)}
.cnotes-bar[aria-expanded="true"] i{margin-bottom:-3px;transform:rotate(-135deg)}
.cnotes-body{margin-top:6px;min-width:0}   /* its first line 6 px under the bar, as every section's first row and every line: the pressed band stops 1 px short of it (it touched the text at 5 px) */
.cnotes-body>.tip-line:first-child{padding-top:0}
.cardbox[data-notes="closed"] .cnotes-body{display:none}
@media (hover:hover) and (pointer:fine){.cnotes-bar kbd{display:block}.cnotes-bar kbd+i{margin-left:0}.cnotes-bar:hover{color:var(--ink)}}
@media (pointer:coarse){.cnotes-bar::after{content:'';position:absolute;inset:-12px 0 -5px}}
.cnotes-bar::before{content:'';position:absolute;top:-6px;bottom:-3px;left:-12px;right:-12px}   /* the whole width of the card is the bar: a press in the card's side padding beside it (12–13 px each side) did nothing — Oleg, 2026-10-10 */
@media (prefers-reduced-motion:reduce){.cnotes-bar i{transition:none}}
/* ---------- stacking: what a stat does not stack with (2026-10-20, Oleg: "it feels like stacking is a separate thing from Notes"
   → Q1–Q19). A row that does not simply add up carries .skm after its name: the numbers of its lines, like footnotes ("C ·
   numbers" — render.js SKM, an empty span; data-n is written here). Its lines (.skl, numbered the same) stand in the ? popup and,
   in the opened card, under a STACKING bar of their own (.cstack, guide.js) — folded like Notes, S. A "Made from" line marks no
   row and has no number. With a mouse, a marked row and its lines light each other up (data-hot). */
.skm{display:inline;margin-left:1px;font-family:var(--cond);font-size:var(--t9);line-height:1;font-weight:400;color:var(--muted);vertical-align:5px;white-space:nowrap}   /* inline, not inline-block: no line break between the name's last letter and its number */
.skm::after{content:attr(data-n)}
.set.set-night{border-color:var(--mid);color:var(--pale)}   /* a row the werewolf form adds at night (Celestial Shell): the NIGHT chip, grey beside SET's amber */
.skl{display:block;margin:0 0 2px}
.skl-title{display:block;margin-bottom:2px;font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.cstack .skl-title{display:none}
.skl-line{display:grid;grid-template-columns:14px minmax(0,1fr);gap:0 7px;padding:7px 0;border-radius:4px}
.skl-line+.skl-line{border-top:1px solid var(--stroke)}
.skl-title+.skl-line{padding-top:3px}
.skl-no{justify-self:center;font-family:var(--cond);font-size:var(--t10);line-height:20px;color:var(--muted)}
.skl-main{min-width:0;font-size:var(--t12);line-height:1.5}
.skl-what{display:block;color:var(--ink)}
.skl-stats{display:block}
.skl-sk{color:var(--pale)}
.skl-sv{color:var(--ink);white-space:nowrap}
.skl-svs{display:block;white-space:normal}.skl-svs>span{display:block}   /* a value of several parts: a line each, as in the stat row (render.js skVal) */
.skl-dot{color:var(--muted)}
.skl-v{display:block;margin-top:3px;font-size:var(--t11);color:var(--muted)}
.skl-line[data-k="made"] .skl-v{margin-top:0}
.skl-main .ichips{margin-top:4px}
.skl-foot{display:block;margin-top:5px;font-size:var(--t11);line-height:1.4;color:var(--muted)}
.skl-main .stk-tbl{margin-top:5px}
.skl+.tip-line,.skl+.cmix,.cmix+.tip-line,.cmix+.fml{margin-top:2px;padding-top:9px;border-top:1px solid var(--stroke)}
.skl+.fml{margin-top:8px}
/* the STACKING bar: the Notes bar's look (.cnotes above), its own names — the checks count .cnotes as the notes */
.cstack{display:none}
.cardbox .cstack{display:block;grid-column:1/-1;min-width:0;border-top:1px solid var(--stroke);padding-top:6px;font-size:var(--t12);line-height:1.45;text-align:left;cursor:auto}
.cstack-bar{position:relative;display:flex;align-items:center;gap:7px;width:100%;margin:0;padding:1px 0;background:none;border:0;font-family:var(--cond);font-size:var(--t10);line-height:1.5;text-transform:uppercase;letter-spacing:.08em;color:var(--pale);text-align:left;cursor:pointer}
.cstack-bar b{box-sizing:border-box;min-width:16px;padding:0 4px;border:1px solid var(--stroke);border-radius:8px;font-weight:400;letter-spacing:0;text-align:center;color:var(--ink)}
.cstack-bar kbd{display:none;margin-left:auto;padding:0 5px;border:1px solid var(--stroke);border-radius:3px;font-family:var(--cond);font-size:var(--t10);letter-spacing:0;color:var(--muted)}
.cstack-bar i{flex:0 0 auto;width:6px;height:6px;margin:0 3px 3px auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform var(--d-fast) var(--ease)}
.cstack-bar[aria-expanded="true"] i{margin-bottom:-3px;transform:rotate(-135deg)}
@media (hover:hover) and (pointer:fine){.cstack-bar kbd{display:block}.cstack-bar kbd+i{margin-left:0}.cstack-bar:hover{color:var(--ink)}}
@media (pointer:coarse){.cstack-bar::after{content:'';position:absolute;inset:-12px 0 -5px}}
.cstack-bar::before{content:'';position:absolute;top:-6px;bottom:-3px;left:-12px;right:-12px}
@media (prefers-reduced-motion:reduce){.cstack-bar i{transition:none}}
.cstack-body{margin-top:3px;min-width:0}
.cardbox[data-stack="closed"] .cstack-body{display:none}
/* a lit row and a lit stacking line (the mouse: a row lights its lines, a line its rows): a band of --lift behind the text, 6 px
   wider each side, drawn by ::before so it can stop short of the lines. As the row's / line's own background it took in the line's
   own separator (the band wrapped its ends) and ran into the next one, line 1 had 3 px over its text and 7 under, and a row's text
   sat on the band's bottom edge (4 px over it, 0 under). Now (Oleg, 2026-10-21: "find any bugs with this kind of paddings problem and
   fix them"): a stacking line's band stops 1 px short of the separator over and under it, 6 px over and under its text — line 1 too,
   which reaches up to 1 px under the bar's count; a row's band is its text + 2 px over and under (rows stand 4 px apart). */
.cardbox .row[data-sk],.cardbox .cstack .skl-line{position:relative;z-index:0}
.cardbox .row[data-hot]::before,.cardbox .skl-line[data-hot]::before{content:'';position:absolute;z-index:-1;top:1px;bottom:1px;left:-6px;right:-6px;background:var(--lift);border-radius:4px}
.cardbox .row[data-hot]::before{top:2px;bottom:-2px;border-radius:2px}
.cardbox .skl-title+.skl-line[data-hot]::before{top:-3px}
/* the opened card's stat list is one plain column (flow-root: the multi-column box it was is a block formatting context too). Its
   content is at most ~414 px wide, under the 433 a second column needs, so the columns gave it nothing — and a band inside a
   multi-column box is laid out as column content: the 2 px a card's last row's band hangs under the list made Chromium's column
   2 px taller (the box jumped 1 px) and Safari put them in a new column beside the card — its column rule and the band's sliver
   as grey lines to the right of the box (Oleg, 2026-10-21, Celestial Cuffs' Star pickup range: "visual bugs of appearing
   different grey lines to the right of the box and in the background"). */
.cardbox .rows{columns:auto;display:flow-root}

/* ---------- cards ---------- */
.card{border:1px solid var(--stroke);border-radius:10px;background:var(--card);min-width:0}
.card:is([data-pref="1"],:has(.fav-mark)){position:relative}
/* the preferred mark (Oleg, 2026-10-26, picked "Dog-ear" of six looks, archive/previews/preferred-marks/; until then the class's
   Lunar fragment in this corner): a triangle in the guide's colour folded into the top right corner, inside the edge and rounded
   with it (the card's 10 px corner less the 1 px edge), its long side softened by a pixel. 16 px on a full card and in the opened
   card (12 px padding: clear of the name and the ?); 12 px on a tile (compact cards, above). Printed too — a background is not,
   unless asked. Static. */
.pref-mark{position:absolute;top:0;right:0;width:16px;height:16px;border-top-right-radius:9px;
  background:linear-gradient(225deg,var(--orange) calc(50% - .5px),transparent calc(50% + .5px));-webkit-print-color-adjust:exact;print-color-adjust:exact}
/* the favorite mark (Oleg, 2026-10-27, picked "Two corners" of five looks, archive/previews/favourite-ears/; until then the game's
   favorite slot behind the picture, "too bright and eye catching"): the preferred mark mirrored — a gold triangle (--fav) folded into
   the top LEFT corner, so a card can have both. render.js writes it in the picture box of the variant that is the favorite: the box
   is not positioned, so the corner is the card's (a fanned alternative's own, in the opened card), and a variant not shown hides it.
   Its sizes are the preferred mark's (compact cards, above), but 9 px on a phone. Printed too. Static. */
.fav-mark{position:absolute;top:0;left:0;width:16px;height:16px;border-top-left-radius:9px;
  background:linear-gradient(135deg,var(--fav) calc(50% - .5px),transparent calc(50% + .5px));-webkit-print-color-adjust:exact;print-color-adjust:exact}
.card-armor{padding:12px;display:grid;--rg:8px;gap:var(--rg);align-content:start}
.card-weapon{padding:12px;display:grid;grid-template-columns:44px minmax(0,1fr);--rg:9px;gap:var(--rg);align-items:center}
.card-weapon.has-alts{grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto;--rg:6px;gap:var(--rg)}
.w-variant{display:grid;grid-template-columns:44px minmax(0,1fr);--rg:9px;gap:var(--rg);align-items:center}
.card-acc,.card-small{padding:10px 12px;display:grid;--rg:6px;gap:var(--rg);align-content:start}
.card-acc.has-alts,.card-small.has-alts{grid-template-rows:1fr auto;align-content:normal}
.variant{display:grid;--rg:8px;gap:var(--rg);min-width:0}
.vbody{display:grid;--rg:6px;gap:var(--rg);align-content:start}
.variant:not([data-on]){display:none}
.name{font-size:var(--t14);font-weight:500;line-height:1.25;overflow-wrap:anywhere}
.name-sm{font-size:var(--t13);font-weight:500;line-height:1.2}
.armor-body{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;min-width:0}
.pieces{display:grid;gap:0;align-content:start}
.piece{width:44px;height:34px;display:flex;align-items:center;justify-content:center}
.piece img{max-width:34px;max-height:32px}
.armor-info{display:grid;gap:3px;align-content:start;min-width:0}
.armor-top{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.chips{display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-width:0}
.def{font-family:var(--cond);font-size:var(--t11);padding:2px 6px;border:1px solid var(--stroke);border-radius:3px;white-space:nowrap}
.piece-names{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:2px;min-width:0}
.piece-name{font-family:var(--sans);font-weight:500;font-size:var(--t11);padding:1px 6px;border-radius:3px;background:var(--lift);color:var(--pale);max-width:100%;overflow-wrap:anywhere}
/* Stat rows (render.js ROW): name left, value right. The rows of one card sit in one box; a card wide enough for two 200 px columns
   (the full-width Hook & Mount / Potions / Extra cards on tablets) lays them in columns with a hairline between. The space between
   rows is padding, not margin: Safari carries a margin over to the top of the next column and starts the columns at different heights. */
.rows{display:block;columns:200px;column-gap:33px;column-rule:1px solid var(--stroke);font-size:var(--t12);border-top:1px solid var(--stroke);padding-top:3px;min-width:0}
/* a short value (a number, a word) keeps its place at the right edge; the name takes all the space it leaves and wraps only then */
.row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:0 8px;font-size:var(--t12);min-width:0;break-inside:avoid;padding-top:4px}
.row-k{color:var(--muted);min-width:0;text-wrap:balance}
.row-v{text-align:right;min-width:0;white-space:nowrap}
/* a longer value (.row-w: a few words, a sentence) and a list (.row-multi: "a || b", one effect per line): the name LEFT, the
   value in the column RIGHT of it, every line ending at the right edge (Oleg, 2026-10-07: a card is read opened now, its rows
   need not be compact). The name takes its own width, at most 46% of the row, and wraps only then; the value has the rest.
   Until then a long value dropped to the line under its name and read from the left behind a dot, and a list was bulleted
   under its name (2026-10-04) — both gone, with the container-query clamp that drove them. */
.row-w{grid-template-columns:fit-content(46%) minmax(0,1fr);gap:0 12px}
.row-w>.row-k{min-width:auto}   /* (the name column may pass its 46% where the name's last word and its SET chip — glued together since round 7 — are wider: "Holy Protection SET" in a 480 px full card was cut by 6 px) */
.row-w .row-v{white-space:normal;overflow-wrap:anywhere}
.rt{display:inline-block;max-width:100%;text-align:right;vertical-align:top;text-wrap:balance}
.rl{display:grid;gap:5px;justify-items:end}   /* (more air between two effects than between the lines of one) */
.rv{display:block;text-wrap:balance}
.row-k .set{margin:0 0 0 6px;vertical-align:1px}   /* the set chip stands after the stat's NAME (round 7, Oleg: "better anchor to the left text after stat name"; before, a single value carried it in front) */
.row-sep{border-bottom:1px solid var(--stroke);padding-top:4px;break-inside:avoid}
.set{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.04em;padding:1px 4px;border:1px solid var(--special);border-radius:3px;color:var(--special);margin-right:6px}
.w-img{width:44px;height:48px;display:flex;align-items:center;justify-content:center}
.w-img img{max-width:44px;max-height:44px}
.w-body{display:grid;gap:6px;align-content:center;min-width:0}
.w-body[data-tags]{align-content:start}
.w-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.w-head .name{line-height:1.2;overflow-wrap:normal}
.s-grid{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:center}
.s-img{width:36px;height:36px;display:flex;align-items:center;justify-content:center}
.s-img img{max-width:34px;max-height:34px}
.s-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0}
.s-title{display:flex;align-items:center;gap:6px;min-width:0}
.tags{display:flex;flex-wrap:wrap;gap:4px;align-items:flex-start}
.tag{font-family:var(--cond);font-size:var(--t10);line-height:14px;text-transform:uppercase;letter-spacing:.03em;padding:2px 5px;white-space:nowrap;display:inline-block;border-radius:3px;border:1px solid var(--stroke);color:var(--pale);max-width:100%;box-sizing:border-box}
/* a tag longer than the weapon body (Chlorophyte Bullets on a narrow card) wraps instead of running into the border */
.w-body .tag{white-space:normal;line-height:13px}
.w-body .tags .tag{min-height:20px;display:inline-flex;align-items:center}   /* (a word tag as tall as a tag with a picture: 20 px — 2026-10-13) */
.tag-orange{border-color:var(--orange);color:var(--orange)}
.tag-green{border-color:var(--green);color:var(--green)}
.tag-blue{border-color:var(--blue);color:var(--blue-text)}
.tag-purple{border-color:var(--purple);color:var(--purple)}
.tag-review{border:1px dashed var(--orange);color:var(--orange)}
/* alt chips: the first chip is the card's main item — a thin ring in the class colour marks it */
.alts{display:flex;flex-wrap:wrap;align-items:center;gap:4px;border-top:1px solid var(--stroke);padding-top:8px}
.alts.alts-img{align-self:end;margin-top:2px}
.alts-label{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-right:2px}
.alt{width:26px;height:26px;padding:0;display:inline-flex;align-items:center;justify-content:center;background:var(--card);border:1px solid var(--stroke);border-radius:5px}
.alt img{max-width:20px;max-height:20px}
.alt-text{width:auto;height:auto;font-family:var(--cond);font-size:var(--t10);line-height:14px;text-transform:uppercase;letter-spacing:.04em;padding:2px 6px;white-space:nowrap;border-radius:3px;color:var(--pale)}
.alt[aria-pressed="true"]{border-color:var(--ink);background:var(--lift)}
.alt-text[aria-pressed="true"]{color:var(--ink)}
.alt[data-main]{border-color:var(--orange)!important}
/* a minion mix's and a whip stack's card (render.js mixRow / stackRow / switcher — look A of archive/previews/mix-cards-2026-11-04;
   Oleg, 2026-11-04: "i like the A but polish the design first … the sprites should be larger, especially for Whip stack … max number
   of whip stack whips is 4 … for minion mix it is 5 staffs at max"; until then outlined chips, "Minion mix N" and a MIX / STACK row).
   The tile: no title, no big picture — the row of pictures is the card. Its head is a size container and the pictures take their
   size from it: 5 staffs (--mr-s ≤ 30 px, 3 px apart) and 4 whips with their pluses (≤ 32 px) fit ONE line at every width (the
   narrowest row is 128 px, a 1024 px window; measured 320 → 1920). The count sits in the picture's corner, as the game draws a stack
   count; the mix's whip after a hairline — a picture, or "WHIP STACK N". Quiet: hairlines, no class-colour edges. */
.mixrow{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0}
.mr-g{display:inline-flex;flex-wrap:wrap;align-items:center;gap:3px var(--mr-gap,3px)}
.mr-i{position:relative;display:inline-grid;place-items:center;width:var(--mr-s,24px);height:var(--mr-s,24px);flex:none}
.mr-i img{max-width:calc(var(--mr-s,24px) - 2px);max-height:calc(var(--mr-s,24px) - 2px);image-rendering:pixelated}
.mr-n{position:absolute;right:-3px;bottom:-2px;padding:0 2px;border-radius:3px;background:var(--card);font-family:var(--cond);font-weight:500;font-size:var(--t10);line-height:1.1;color:var(--ink)}
.mr-plus,.mr-dot{font-family:var(--cond);font-size:var(--t11);line-height:1;color:var(--muted);font-style:normal;flex:none}
.mr-sep{width:1px;height:18px;background:var(--stroke);margin:0 3px;flex:none}
.mr-lab{font-family:var(--cond);font-size:var(--t10);line-height:1.5;letter-spacing:.06em;text-transform:uppercase;color:var(--pale);white-space:nowrap}
.mr-with{display:inline-flex;align-items:center;gap:0 4px;flex:none;white-space:nowrap}   /* (one unit: on the staffs' line where it fits, else whole on the next) */
.mr-line{flex:1 0 100%;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:0 8px}
.mr-use{margin-left:auto;font-style:normal;color:var(--muted)}   /* (a whip stack's use — LBS / HBS / General, at the label's right, on a line of its own where "WHIP STACK 15" + "GENERAL" do not fit a 128 px head; the opened card writes the full name as a tag: render.js stackRow — Oleg, 2026-11-05) */
.card.is-stack .mr-open{display:inline-block;margin:0 auto 0 0;color:var(--muted)}   /* ("WHIP STACK N" beside the whip's name: the opened card and a full card — Stats on, the long page; not the tile) */
.card.is-stack .w-head{flex-wrap:wrap}   /* (a narrow full card — two columns at 430–600 px, the dense columns from 1536 px: the label drops under the name instead of running past the card — Oleg's full run, 2026-11-05) */
.mr-inline{--mr-s:22px;align-self:center}   /* (a staff's Best with at the end of its tag line) */
.mr-inline .mr-sep{height:14px;margin:0 2px}
/* the tile */
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-stack .w-img,html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-stack .w-head>.name{display:none}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-stack .w-variant{grid-template-columns:minmax(0,1fr)}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-stack .w-head{display:block;container-type:inline-size;min-height:24px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-stack .w-head .mixrow{display:flex}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-mix .mixrow{--mr-s:min(30px,calc((100cqw - 12px) / 5))}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-mix .mr-with .mr-i{--mr-s:26px}
/* a Best with whip stack of up to three whips: their pictures joined with "+" (render.js mrStack — look A, 2026-11-05), 22 px everywhere */
.mr-ws{display:inline-flex;align-items:center;gap:0 3px}
.mr-ws .mr-i,html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-mix .mr-with .mr-ws .mr-i{--mr-s:22px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-stack:not(.is-mix) .mixrow{--mr-s:min(32px,calc((100cqw - 48px) / 4));--mr-gap:4px;gap:3px 6px}
html[data-js][data-nostats]:not([data-nodialog]) .sections .card .sw,html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-stack .mr-open,html[data-js][data-nostats]:not([data-nodialog]) .sections .card .mixtags{display:none}
@media (max-width:419px){html[data-js][data-nostats]:not([data-nodialog]) .sections .card.is-stack .w-body{display:grid}}
/* the opened card and a full card (Stats on, the long page — the tile's rules above win on the tile): the row hides; tabs with the
   names and counts, the chosen one underlined 1 px in the class colour. (Until 2026-11-05 these were `.cardbox` rules only, and the
   full card kept the row beside the name: its head ran past the card — Oleg's full run, board-summoner at 430–600 and 1536+) */
.card.is-stack .mixrow:not(.mr-inline){display:none}
.sw{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;gap:0 16px;min-width:0;box-shadow:inset 0 -1px 0 var(--stroke)}   /* (the hairline is an inset shadow, under the tabs' own bottom edges: a wrapped row of tabs then lies on nothing — minion_mix_check's `lies`) */
.sw-b{display:inline-flex;align-items:center;gap:7px;margin:0;padding:5px 0 7px;box-sizing:border-box;border:0;border-bottom:1px solid transparent;border-radius:0;background:none;color:var(--pale);font:inherit;font-size:var(--t12);line-height:16px;cursor:pointer;text-align:left}
.sw-b img{max-width:24px;max-height:24px;image-rendering:pixelated}
.sw-b:hover{color:var(--ink)}
.sw-b[aria-pressed="true"]{color:var(--ink);border-bottom-color:var(--orange)}
.sw-b:focus-visible{outline:1px solid var(--orange);outline-offset:-2px}
.sw-n{font-family:var(--cond);font-weight:500;font-size:var(--t11);color:var(--muted)}
.sw-b[aria-pressed="true"] .sw-n{color:var(--ink)}
@media (pointer:coarse){.sw-b{padding:9px 0 10px}}
/* a phone: the tabs are the pictures (with a mix's ×N) in one row — the card's title names the one shown, a tab's name is its label
   (look A of archive/previews/weapon-extras-2026-11-05, Oleg 2026-11-05; a five-staff mix took four rows) */
@media (max-width:599px){.sw{gap:0 12px}.sw-b{gap:3px}.sw-name{display:none}}
@media (max-width:599px){.mr-n{font-size:var(--t11)}}   /* (a count never under 11 px on a phone) */
/* ? notes */
.info{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid var(--mid);border-radius:50%;font-family:var(--cond);font-size:var(--t10);line-height:1;color:var(--pale);cursor:help;flex:0 0 auto;transition:border-color .15s,color .15s}
.info>span:first-child{transform:translateY(.5px)}
.info:hover,.info:focus,.info[data-open]{border-color:var(--dot-text,var(--dot,var(--orange)));color:var(--dot-text,var(--dot,var(--orange)));outline:none}
.tip{position:absolute;right:-6px;top:24px;z-index:6;width:260px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:10px 12px;background:var(--bg);border:1px solid var(--stroke);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.35);font-family:var(--sans);font-size:var(--t12);line-height:1.45;color:var(--ink);text-align:left;text-transform:none;letter-spacing:0;font-weight:400;display:block;visibility:hidden;opacity:0;transform:translateY(-4px);transition:opacity .15s ease,transform .15s ease;pointer-events:none}
.info:hover>.tip,.info:focus>.tip,.info[data-open]>.tip{visibility:visible;opacity:1;transform:translateX(var(--tip-dx,0px))}
.tip-arrow{position:absolute;right:8.5px;top:-5px;width:8px;height:8px;background:var(--bg);border-left:1px solid var(--stroke);border-top:1px solid var(--stroke);transform:translateX(calc(-1 * var(--tip-dx,0px))) rotate(45deg)}
.tip[data-tip-up]{top:auto;bottom:24px;transform:translate(var(--tip-dx,0px),4px)}
.info:hover>.tip[data-tip-up],.info:focus>.tip[data-tip-up],.info[data-open]>.tip[data-tip-up]{transform:translateX(var(--tip-dx,0px))}
.tip[data-tip-up] .tip-arrow{top:auto;bottom:-5px;border-left:0;border-top:0;border-right:1px solid var(--stroke);border-bottom:1px solid var(--stroke)}
.tip-title{display:block;font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:6px}
.tip-line{display:grid;grid-template-columns:6px minmax(0,1fr);gap:8px;align-items:start;padding:3px 0}
.tip-dot{width:6px;height:6px;border-radius:50%;background:var(--dot,var(--orange));margin-top:5px}
.tip-text{color:var(--pale)}
/* on touch screens only the tap toggle shows a note, so a second tap really closes it */
@media (hover:none){.info:focus:not([data-open])>.tip,.info:hover:not([data-open])>.tip{visibility:hidden!important;opacity:0!important}}
/* a popup taller than the screen scrolls inside (guide.js sets the height); taps inside an open popup keep it open */
.tip[data-tip-scroll]{overflow-y:auto;overscroll-behavior:contain;pointer-events:auto}
.info[data-open]>.tip{pointer-events:auto}

/* ---------- card notes: formulas, mode values, ammo mixes, the chance table and item chips (build/render.js INFO) ----------
   Same parts as the rest of the guide: an item chip is the boss card's "Immune to" chip with an item icon. */
.tip.tip-wide{width:300px}
.tip-text b,.fml-where b{font-weight:600;color:var(--ink)}
.mv{font-weight:600;color:var(--ink)}
.mode-alt{font-size:var(--t11);font-weight:400;color:var(--muted)}
.mode-n{white-space:nowrap}
.ichips{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.ichip{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:24px;box-sizing:border-box;padding:2px 7px 2px 3px;border:1px solid var(--stroke);border-radius:4px;background:var(--card);font-size:var(--t11);line-height:16px;color:var(--pale)}
.ichip>span{min-width:0}
.ichip img{width:18px;height:18px;object-fit:contain;flex:0 0 auto}
.ichip.is-text{padding-left:7px;border-style:dashed}
.ichip.is-text>span::first-letter{text-transform:uppercase}
.ichip b{font-family:var(--cond);font-weight:500;color:var(--ink)}
.ichip[data-here]{border-color:var(--orange);color:var(--ink)}
.ichip .here{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.04em;color:var(--orange);white-space:nowrap}
.stk-tbl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;margin-top:7px;align-items:center}
.stk-tbl .k{display:flex;align-items:center;gap:6px;min-width:0;font-size:var(--t12);line-height:1.3;color:var(--pale)}
.k-ic{display:inline-flex;gap:2px;flex:0 0 auto}
.k-ic img{width:18px;height:18px;object-fit:contain}
.stk-tbl .v{font-family:var(--cond);font-size:var(--t12);text-align:right;font-variant-numeric:tabular-nums;color:var(--ink)}
.stk-tbl .v.top{color:var(--green)}
.fml{display:block;margin:6px 0;padding:7px 10px 8px 11px;border-left:1px solid var(--dot,var(--orange));border-radius:0 6px 6px 0;background:var(--card)}   /* (1 px like every accent — it was the one 2 px edge; 1 px more padding keeps the text where it was, 2026-11-01) */
.fml-eq{display:block;font-size:var(--t13);line-height:1.5;color:var(--pale);font-variant-numeric:tabular-nums}
.fml-eq b{font-weight:600;color:var(--ink)}
.fml-eq i{font-style:normal;color:var(--ink)}
.fml-eq s{text-decoration:none;color:var(--dot-text,var(--dot,var(--orange)))}
.fml-eq .nw{white-space:nowrap}
/* a lone fraction (round 14, 2026-11-09 — Oleg: "change the Note to beautiful formula"; render.js fmlEq): the numerator over the denominator, a
   1 px rule between them in the dot's colour — an operator, tinted as × and + are — and the result beside it at the rule's height */
.fml-q{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.fml-frac{display:inline-grid;justify-items:center;text-align:center;line-height:1.35}
.fml-num,.fml-den{padding:1px 6px;white-space:nowrap}
.fml-den{border-top:1px solid var(--dot-text,var(--dot,var(--orange)))}
.fml-where{display:block;margin-top:4px;font-size:var(--t11);line-height:1.45;color:var(--muted)}
.fml-where>span{display:block;text-wrap:pretty}   /* (round 14: no word alone on a where line's last row — "Bag", "1") */
/* a weapon's AMMO MIX on its stage (render.js mixPart, from the mixes blocks — Oleg, 2026-10-25): in the ? popup after the stacking
   lines; in the opened card a part of its own over the STACKING bar, always shown (guide.js buildMix) — the bars' label, the stages
   with their bosses, then the row as a mixes block draws it where it is narrow (guide.css "mixes blocks") */
/* the "Minion mixes" note block's counts ("×2" after a staff's picture) */
.wcount{font-family:var(--cond);font-size:var(--t10);font-weight:500;line-height:1;color:var(--ink)}
/* a staff's own tags on this stage (render.js weaponBody — Oleg, 2026-11-01: "Foxparks with a tag (flame)" → "Opened card"): the
   tile shows only the chips; a whip stack's use the same way (2026-11-05: "Low Base Damage" — the tile says LBS in its label) */
.mixtags{display:flex}   /* (hidden on the tile: the compact rules above) */
/* a minion's Best with: a part of the ? popup, lifted into the opened card (render.js minionParts, guide.js buildMix) */
.bestwith{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-height:28px;margin:0;padding:2px 8px 2px 3px;box-sizing:border-box;border:1px solid var(--stroke);border-radius:4px;background:var(--card);color:var(--ink);font:inherit;text-align:left;cursor:pointer}   /* (a hairline; under the mouse the press shade, as the ammo tags — 2026-11-07; from 2026-11-04 until then --lift and the class colour, which stayed on after a tap on a phone) */
.bestwith:focus-visible{outline:1px solid var(--orange);outline-offset:2px}
.tip .bestwith{pointer-events:none}
.bw-w{display:inline-flex;align-items:center;gap:4px;font-size:var(--t11);line-height:16px;color:var(--pale)}
.bw-w img{max-width:22px;max-height:22px;image-rendering:pixelated}
.bw-plus{font-family:var(--cond);font-size:var(--t10);color:var(--orange)}
.bw-n{margin-left:4px;font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--ink)}
@media (pointer:coarse){.bestwith{min-height:32px}}
.cmix{display:block;min-width:0;container-type:inline-size;text-align:left}
.tip .cmix{margin:4px 0 8px}
.cardbox .cmix[data-mix]{grid-column:1/-1;border-top:1px solid var(--stroke);padding:6px 0 4px;cursor:auto}
/* its head, the line that says what the numbers are, then its mixes one under another (render.js mixPart — 2026-11-10, Oleg: "for a
   weapon to specify up to 3 ammo mixes, the best one … and then two other mixes for corruption and for crimson world"): Best in ink,
   the two worlds' paler under it. A row: its word, then a chip an ammo (.mx-slots, below). Where the part is narrow (the ? popup) the
   word stands over its chips. */
.cmix-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:6px}
.mx-cap{display:block;margin:-2px 0 10px;font-size:var(--t11);line-height:1.35;color:var(--muted)}
.am-sets{display:grid;row-gap:8px}
.am-set{display:grid;grid-template-columns:78px minmax(0,1fr);column-gap:12px;align-items:start;min-width:0}
.am-lab{padding-top:5px;font-family:var(--cond);font-size:var(--t10);line-height:1.5;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.am-set[data-set="best"] .am-lab{padding-top:6px;color:var(--pale)}
@container (max-width:339px){.am-set{grid-template-columns:minmax(0,1fr);row-gap:3px}.am-set .am-lab{padding-top:0}}
.cmix-title{font-family:var(--cond);font-size:var(--t10);line-height:1.5;text-transform:uppercase;letter-spacing:.08em;color:var(--pale)}
.cmix-text{font-size:var(--t12);color:var(--ink)}   /* (the page without script: a card's placeholder says the best mix in words — render.js mixPart) */
.tag.has-ic{display:inline-flex;align-items:center;gap:4px;padding-left:3px}
.tag-ic{width:14px;height:14px;object-fit:contain;flex:0 0 auto}
/* an armor's tag (Tank, Damage, Defense) is as tall as its DEF chip (Oleg, 2026-10-13: "these tags are smaller than the
   defense bg rectangle"): the chip's line height, 1.5 × its type size (20 → 22.5 / 24 px) */
.chips .tag{line-height:calc(var(--t11) * 1.5)}

/* ---------- "Before you start" notes ---------- */
.notes{max-width:var(--page-max);width:100%;margin:0;padding:0 24px;box-sizing:border-box;display:grid;gap:10px}
.notes-head{display:flex;align-items:center;gap:12px;font-family:var(--cond);font-size:var(--t11);letter-spacing:.14em;text-transform:uppercase;color:var(--pale)}
.notes-head span:first-child{white-space:nowrap}
.notes-line{flex:1 1 auto;height:1px;background:var(--stroke)}
.note{border:1px solid var(--stroke);border-radius:10px;background:var(--card);min-width:0}
.note-toggle{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px 18px;background:none;border:0;text-align:left;color:inherit}
.note-toggle:hover .chevron{color:var(--ink)}
.note-num{font-family:var(--cond);font-size:var(--t11);letter-spacing:.06em;color:var(--orange)}
.note-titles{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:14px;row-gap:2px;min-width:0}
.note-title{font-size:18px;line-height:1.25;letter-spacing:-.01em;color:var(--ink)}
.note-summary{font-size:var(--t13);color:var(--muted);text-wrap:pretty}
.note .chevron{font-family:var(--cond);font-size:var(--t14)}
.note-body{display:grid;gap:26px;padding:18px 18px 22px;border-top:1px solid var(--stroke)}
.half-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:22px;align-items:start}
.block{display:grid;gap:8px;min-width:0}
.block-head{display:grid;gap:2px}
.block-title{font-size:var(--t15);font-weight:500;letter-spacing:-.005em;color:var(--ink)}
.block-sub{font-size:var(--t12);color:var(--muted);text-wrap:pretty}
.block-note{margin:0;font-size:var(--t12);line-height:1.5;color:var(--muted);max-width:980px;text-wrap:pretty}
.notes b{font-weight:600;color:var(--ink)}
.chip{font-family:var(--cond);font-size:var(--t10);line-height:14px;padding:1px 5px;border:1px solid var(--stroke);border-radius:3px;color:var(--pale);white-space:nowrap;vertical-align:1px}
.icons{display:inline-flex;gap:2px;flex:0 0 auto}
.icons img{width:24px;height:24px;object-fit:contain}
.with-icons{display:flex;align-items:center;gap:8px}
.with-icons>span:last-child{min-width:0}
.cell-sub{display:block;font-size:var(--t11);line-height:1.35;color:var(--muted)}
.nowrap{white-space:nowrap}
.ntable{margin:0;display:grid;gap:10px;min-width:0}
.ntable-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--stroke);border-radius:8px;background:var(--card)}
.ntable[data-fit] .ntable-wrap{justify-self:start;max-width:100%}
.ntable table{width:100%;border-collapse:separate;border-spacing:0;font-size:var(--t13);line-height:1.4}
.ntable[data-fit] table{width:auto}
.ntable th{font-family:var(--cond);font-size:var(--t10);line-height:1.35;font-weight:400;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:9px 10px 7px;vertical-align:bottom;text-align:left;white-space:nowrap}
.ntable th .th-sub{display:block;text-transform:none;letter-spacing:0;font-size:var(--t10);color:var(--muted)}
.ntable td{padding:8px 10px;border-top:1px solid var(--stroke);text-align:left;vertical-align:middle}
.ntable .a-r{text-align:right}.ntable .a-c{text-align:center}
.ntable td.a-r,.ntable td.a-c{white-space:nowrap;font-variant-numeric:tabular-nums}
.ntable td.wide{min-width:var(--w,110px)}
.ntable .sticky{position:sticky;left:0;z-index:1;background:var(--card);box-shadow:inset -1px 0 0 var(--stroke)}
.ntable tbody td:first-child{white-space:nowrap;width:1%}
.ntable td[data-best]{color:var(--orange);font-weight:600;background:color-mix(in srgb,var(--orange) 12%,var(--card))}
.ntable tbody tr:hover td:not([data-best]){background:var(--lift)}
/* image column (b.img: the sprites of column 1's names) and tables wider than their box (render.js nTable, guide.js "notes tables").
   Oleg, 2026-10-24, after the preview archive/previews/tables-scroll: no chips — "a normal columns that can scroll sideways
   smoothly", the sprites and the names pinned, one Names button.
   data-compact = tightened: headers wrap, numbers tight, the name column --nt-name-w (at most ~40 %). Laptops and up get only
   that where every column then fits — the look they had before, kept pixel for pixel. data-scroll (with data-compact) = it scrolls
   sideways: below 1100 px whenever the table does not fit, above where the tightened table still does not. */
.ntable{position:relative}
.nt-sizer{position:absolute;left:0;right:0;top:0;height:0;visibility:hidden;pointer-events:none}
.ntable .nt-img{width:1%;white-space:nowrap;text-align:center;padding-right:6px}
.ntable td.nt-img .icons{position:relative;justify-content:center;vertical-align:middle}
.ntable td.nt-img:empty{padding:0 4px}
.ntable[data-compact] table{width:100%}
.ntable[data-compact] .ntable-wrap{justify-self:stretch}
.ntable[data-compact] .sticky{position:static;box-shadow:none}
.ntable[data-compact] td.wide{min-width:0}
.ntable[data-compact] th[data-c]{white-space:normal}
.ntable[data-compact] td.a-r,.ntable[data-compact] td.a-c{width:1%}   /* numbers stay tight; the room left goes to the text columns */
.ntable[data-compact] td.nt-name{width:var(--nt-name-w,auto);min-width:0;white-space:normal;box-shadow:inset -1px 0 0 var(--stroke)}
.ntable[data-compact] td.nt-img{padding-left:8px;padding-right:6px}
.ntable[data-compact] td.nt-img .icons{flex-direction:column;align-items:center;gap:3px}
/* scrolling: smooth, settling on a column's edge when it stops near one (no column cut in half behind the pinned ones). Pinned on
   the left, opaque over what goes under them: the image column, and column 1 while it shows (the names; in a table without
   pictures, its first column). Names one line, a pair of sprites side by side (stacked, they doubled the row height). */
.ntable[data-scroll] .ntable-wrap{overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-left:var(--nt-pin,0px);scrollbar-width:none}
.ntable[data-scroll] .ntable-wrap::-webkit-scrollbar{display:none}
.ntable[data-scroll] table{width:auto;min-width:100%}
.ntable[data-scroll] td.wide{min-width:var(--w,110px)}
.ntable[data-scroll] td.wide:not(.nt-name){min-width:min(var(--w,110px),var(--nt-room,9999px))}   /* no wider than the room beside the sprites (guide.js --nt-room): a long text wraps to it, so it can be read whole (Oleg, 2026-10-25) */
.ntable[data-scroll] th[data-c]{white-space:nowrap}   /* a header = its two lines at most (word by word, "packed · 10 def each" made the header row 6 lines tall); width is what scrolls */
.ntable[data-scroll] thead th.nt-snap:not(.nt-after){scroll-snap-align:start}   /* (guide.js: the columns that fit beside the sprites) */
.ntable[data-scroll] thead tr:last-child th:first-child{scroll-snap-align:start}   /* the start, names in: a swipe back always rests there (where even the first column is too wide for the names, every other snap point has them away) */
/* the columns from the one too wide for the names on (.nt-after) settle beside the sprites, where the names have slid away: a 1 px
   marker the names' width in from the column's start is their snap point (guide.js). The Names switch pauses snapping until the
   table is moved again. */
.nt-snapper{display:none}
.ntable[data-scroll] thead th.nt-after{position:relative;overflow:clip}   /* (clip: a marker past a narrow last column adds no empty scroll at the end; not hidden, which would make the cell a scroller and take the marker's snap point) */
.ntable[data-scroll] thead th.nt-after>.nt-snapper{display:block;position:absolute;top:0;left:var(--nt-pin1,0px);width:1px;height:1px;scroll-snap-align:start;pointer-events:none}
.ntable[data-nosnap] .ntable-wrap{scroll-snap-type:none}
.ntable[data-scroll] th[data-c="0"],.ntable[data-scroll] td[data-c="0"]{position:sticky;left:0;z-index:2;background:var(--card)}
.ntable[data-scroll]:not([data-names-off]) th[data-c="1"],.ntable[data-scroll]:not([data-names-off]) td[data-c="1"]{position:sticky;left:var(--nt-pin0,0px);z-index:2;background:var(--card)}
.ntable[data-scroll] td.nt-name{width:auto;white-space:nowrap;box-shadow:none}
.ntable[data-scroll][data-names-wrap] td.nt-name{white-space:normal;width:var(--nt-name-max);min-width:var(--nt-name-max);max-width:var(--nt-name-max)}   /* (guide.js: names over 55 % of the box) */
.ntable[data-scroll] tbody tr:hover td[data-c="0"],.ntable[data-scroll] tbody tr:hover td[data-c="1"]{background:var(--lift)}
.ntable[data-scroll] td.nt-img .icons[data-pair]{flex-direction:row;gap:2px}
.ntable[data-scroll][data-img] tbody td[data-c="0"]{cursor:pointer}   /* a tap on the sprites = the Names switch */
.ntable[data-names-off] [data-c="1"]{display:none}
/* names on, swiped to a column too wide to sit beside them: they slide away under the sprites as the table moves on (guide.js
   --nt-slide), the sprites stay */
.ntable[data-scroll][data-img]:not([data-names-off]) th[data-c="1"],.ntable[data-scroll][data-img]:not([data-names-off]) td[data-c="1"]{z-index:1;transform:translateX(calc(-1 * var(--nt-slide,0px)))}
/* scrolled: a 1 px line beside the pinned columns; columns left to the right: the right edge fades */
.ntable[data-scrolled][data-names-off] [data-c="0"],.ntable[data-scrolled][data-unpin] [data-c="0"],.ntable[data-scrolled]:not([data-names-off]):not([data-unpin]) [data-c="1"]{box-shadow:inset -1px 0 0 var(--stroke)}
.ntable[data-more] .ntable-wrap{-webkit-mask-image:linear-gradient(to left,transparent,#000 16px);mask-image:linear-gradient(to left,transparent,#000 16px)}   /* (16 px: guide.js NT_FADE keeps a column at rest clear of it) */
/* the box focused from the keyboard: its own 1 px edge in the class colour (the fade's mask clips an outline, so it never showed) */
[data-guide] .ntable[data-scroll] .ntable-wrap:focus-visible{outline:none;border-color:var(--orange)}
/* the Names switch (render.js: every image table, on its title line), where the table scrolls; pressed = the names show */
.ntable[data-scroll] .nt-head{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}
.ntable[data-scroll] .nt-head .block-sub{grid-column:1 / -1}
.nt-switch{display:none;align-items:center;height:28px;padding:0 10px;font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;background:none;border:1px solid var(--stroke);border-radius:3px;color:var(--pale);cursor:pointer}
.nt-switch:hover{border-color:var(--ink);color:var(--ink)}
.nt-switch[aria-pressed="true"]{background:var(--lift);border-color:var(--orange);color:var(--ink)}   /* an on / off switch: a 1 px edge */
.ntable[data-scroll][data-img] .nt-switch{display:inline-flex}
/* names hidden: their cells go, and a screen reader reads each name from the picture cell (.nt-sr: the pictures have no alt text).
   (Hidden names once stayed in the table 1 px wide and out of the flow, but their column kept a slot that took the width left
   over: an empty gap beside the pictures on wide phones — Oleg, 2026-10-24: "there is a gap, it is not flexible") */
.nt-sr{display:none}
.ntable[data-names-off] .nt-sr{display:block}
/* a mark on the sprites: a column-1 second line that is only a signed number ("matching +4" became "+4"), so the names are one
   line and the rows keep their height when the names show */
.nt-mark{position:absolute;right:-3px;bottom:-2px;padding:1px 2px;border-radius:2px;background:var(--card);font-family:var(--cond);font-size:var(--t10);line-height:1;color:var(--ink);pointer-events:none}
/* guide.js measuring pass (laptops: is the tightened table enough?): every cell on one line, at its natural width */
.ntable[data-measure] table{width:max-content!important}
.ntable[data-measure] [data-c]{display:table-cell!important;white-space:nowrap!important;min-width:0!important;width:auto!important}
.ntable[data-measure] th[data-c]{white-space:normal!important;width:1px!important}   /* a header may wrap: it adds only its longest word */
.ntable[data-measure="min"] td.nt-name{white-space:normal!important;width:1px!important}
.ntable[data-measure] td.nt-img .icons{flex-direction:column;align-items:center;gap:3px}
.picks{display:grid;gap:10px;min-width:0;container-type:inline-size}
.picks-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px}
/* no card is left alone on a row (data-n = how many picks): 4 go 2 × 2 where only 3 fit, 5 go 3 + 2 where 4 fit, and in two columns the odd card of 3 or 5 takes the whole row */
@container (min-width:710px) and (max-width:949.9px){.picks-grid[data-n="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (min-width:950px) and (max-width:1189.9px){.picks-grid[data-n="5"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (min-width:470px) and (max-width:709.9px){.picks-grid[data-n="3"]>.pick:last-child,.picks-grid[data-n="5"]>.pick:last-child{grid-column:1 / -1}}
.pick{display:grid;gap:6px;align-content:start;padding:12px 14px;border:1px solid var(--stroke);border-radius:8px;background:var(--bg);min-width:0}
.pick-label{font-family:var(--cond);font-size:var(--t12);text-transform:uppercase;letter-spacing:.06em;color:var(--pale)}
.pick-value{display:flex;align-items:center;gap:8px;font-size:var(--t16);line-height:1.25;color:var(--orange)}
.pick-value>span{min-width:0}
.pick-detail{font-size:var(--t12);line-height:1.45;color:var(--pale);text-wrap:pretty}
.pick-rows{display:grid;gap:3px;font-size:var(--t12);border-top:1px solid var(--stroke);padding-top:6px;margin-top:2px;min-width:0}
.pick-rows div{display:flex;justify-content:space-between;gap:8px;min-width:0}
.pick-rows .k{color:var(--muted);white-space:nowrap}.pick-rows .v{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink)}
/* picks with item icons (render.js nPicks, data-pairs) — "loadouts" (Oleg, 2026-11-11: preview "C", and "i dont like this dark
   background, seems off the other design like in fishing, mining, damage guides"): one card per goal on the note's own colour (a 1 px
   edge, no dark well), its heading as a board section's; a row = a loadout: every sprite at its own size in a slot, the names one under
   another, the detail under them. A goal of two loadouts shows them side by side with a 1 px line between; any other count, one under
   another. A loadout 230 px wide or more puts its slots beside the text. Three goals: one column, three from 760 px (the block's
   width); any other count: two columns from 620 px, where an odd last card takes the whole row */
.picks[data-pairs] .picks-grid{grid-template-columns:minmax(0,1fr)}
@container (min-width:620px){.picks[data-pairs] .picks-grid:not([data-n="3"]){grid-template-columns:repeat(2,minmax(0,1fr))}.picks[data-pairs] .picks-grid:not([data-n="3"])>.pick:last-child:nth-child(odd){grid-column:1 / -1}}
@container (min-width:760px){.picks[data-pairs] .picks-grid[data-n="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
.picks[data-pairs] .pick{gap:10px;padding:12px 12px 14px;background:none}
.picks[data-pairs] .pick-label{font-size:var(--t13);font-weight:700;color:var(--ink)}
.pick-loads{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
.load{container-type:inline-size;min-width:0}
.load+.load{margin-top:10px;border-top:1px solid var(--stroke);padding-top:10px}
.pick-loads[data-k="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.pick-loads[data-k="2"]>.load{padding-right:12px}
.pick-loads[data-k="2"]>.load+.load{margin-top:0;border-top:0;border-left:1px solid var(--stroke);padding:0 0 0 12px}
.load-in{display:grid;gap:6px;align-content:start;min-width:0}
.load-slots{display:flex;flex:none;gap:6px}
.load-slot{flex:0 0 46px;width:46px;height:46px;box-sizing:border-box;display:grid;place-items:center;border:1px solid var(--stroke);border-radius:6px}
.load-slot img{display:block;max-width:42px;max-height:42px}
.load-name{display:grid;min-width:0;font-size:var(--t14);line-height:1.3;color:var(--ink)}
@container (min-width:230px){.load-in{grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:3px;align-items:start}.load-slots{grid-row:1 / 3}.load-in[data-solo]>.load-name{grid-row:1 / 3;align-self:center}}
/* a thanks card at a section's end (render.js nThanks; Oleg picked "C — A card" of archive/previews/gem-thanks/, 2026-11-11): a thin
   edge on the note's own colour (no dark well), the pictures, the lead with its link underlined in the class colour, the sentence, a
   key-style button to the same address. Under 520 px of its own width: one column, the button as wide as the card and 40 px tall */
.thx{container-type:inline-size}
.thx-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px 18px;padding:14px 16px;border:1px solid var(--stroke);border-radius:8px}
.thx-pics{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;max-width:84px}   /* (seven 18 px pictures: four, then three centred under them; one picture: as wide as it is) */
.thx-pics img{display:block;width:auto;height:auto;max-width:32px;max-height:32px;image-rendering:pixelated}
.stage>.thx .thx-card{border-radius:10px;background:var(--card)}   /* (at the end of a page — Luck: a panel of the page, as its calculator is) */
.thx-text{display:grid;gap:2px;min-width:0}
.thx-text p{margin:0;text-wrap:pretty}
.thx-lead{font-size:var(--t15);font-weight:500;line-height:1.3;color:var(--ink)}
.thx-body{max-width:64ch;font-size:var(--t13);line-height:1.5;color:var(--pale)}
.thx-link{color:var(--ink);text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:1px;text-underline-offset:3px;white-space:nowrap}
.thx-btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px 0 10px;border-radius:8px;background:var(--btn);box-shadow:var(--btn-edge);color:var(--ink);font-family:var(--cond);font-size:var(--t12);font-weight:600;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;text-decoration:none;transition:background-color var(--d-fast) var(--ease)}
.thx-play{display:block;flex:none;width:18px;height:18px;color:var(--orange)}
.thx-tri{fill:var(--btn)}
.thx-ext{display:block;flex:none;width:10px;height:10px;color:var(--pale)}
.thx a:focus-visible{outline:1px solid var(--orange);outline-offset:2px;border-radius:3px}
.thx-btn:focus-visible{border-radius:8px}
.thx-btn:hover{color:var(--ink)}   /* (every link turns the class colour under the pointer — a:hover — and keeps it after a tap: the button's words stay) */
@media (hover:hover){.thx-link:hover{color:var(--orange)}.thx-btn:hover{background:var(--btn-hover)}}
@media (pointer:coarse){.thx-btn{height:40px}}
@container (max-width:519.98px){.thx-card{grid-template-columns:minmax(0,1fr);padding:12px}.thx-pics{justify-content:flex-start;max-width:none}.thx-btn{justify-content:center;height:40px}}
/* ---------- Mage "Gem staves & Robes": every gem pair (render.js nGemPairs, gems-math.js `html`, guide.js "every gem pair"; docs/notes/gems.md).
   Oleg picked "A — The grid" of three previews (archive/previews/gem-lab/, 2026-11-11): the 49 staff + robe pairs as a 7 × 7 grid, the
   stronger the brighter (nine shades of the class colour on the note's own colour — no dark well), beside it the pressed pair. The
   setup rows and the strip are the calculators' (.fk-row, .fk-b, .fc-tbox, .fc-strip, .fc-o); the slots are the Quick picks' (.load-slot).
   Its widths are the block's own (`.calc` is a container): the pair beside the grid from 860 px, the phone layout under 520 px.
   Without script the setup is not shown: the grid stands as a table for one enemy with 10 defense.
   The calculators' rules come later in this file: a rule here that changes one of their classes starts with `.gm ` */
.gm{gap:10px;--fc-on:color-mix(in srgb,var(--orange) 17%,var(--card));--fc-on-hover:color-mix(in srgb,var(--orange) 23%,var(--card))}
html:not([data-js]) .gm-setup{display:none}
.gm-setup .fk-row:first-child{border-top:0;padding-top:0}
.gm-target{display:grid;gap:8px;min-width:0}
.gm-def{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.gm .fc-tbox input{width:48px}
.gm .gm-pm{min-width:40px;padding:0 12px;font-size:17px;letter-spacing:0;color:var(--ink)}
.gm .gm-pm:first-child{border-left:0;border-right:1px solid var(--stroke)}
.gm-range{flex:1 1 160px;min-width:120px;max-width:280px;height:40px;margin:0;accent-color:var(--orange)}
.gm .gm-boss{min-width:48px;min-height:48px;padding:6px}
.gm-boss img{display:block;width:auto;height:auto;max-width:36px;max-height:32px}
.gm .gm-boss[aria-expanded="true"]{border-color:transparent;background:var(--fc-on)}
.gm-bn{font-family:var(--cond);font-size:var(--t13);color:var(--pale)}
.gm-vals{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
.gm-vals[hidden]{display:none}
.gm-vn{margin-right:4px;font-size:var(--t13);color:var(--ink)}
.gm-v{display:inline-flex;align-items:center;gap:6px;min-height:32px;margin:0;padding:0 9px;border:1px solid var(--stroke);border-radius:6px;background:none;color:var(--pale);font:inherit;font-size:var(--t12);cursor:pointer;transition:border-color var(--d-fast) var(--ease),background-color var(--d-fast) var(--ease)}
.gm-v b{font-family:var(--cond);font-size:var(--t13);font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.gm-v[aria-pressed="true"]{border-color:transparent;background:var(--fc-on);color:var(--ink)}
@media (pointer:coarse){.gm-v{min-height:40px}}
.gm .gm-word{min-width:44px;min-height:40px;padding:6px 12px;font-family:var(--cond);font-size:var(--t13);font-weight:600;color:var(--ink);white-space:nowrap}
.gm .gm-pic{grid-auto-flow:column;align-items:center;gap:8px}
.gm-pic img{display:block;max-height:24px}
.gm-two{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;padding-top:14px;border-top:1px solid var(--stroke);min-width:0}
@container (min-width:860px){.gm-two{grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:start}}
.gm-left{min-width:0}
.gm-grid{display:grid;grid-template-columns:104px repeat(7,54px);gap:3px;width:max-content;max-width:100%}
.gm-gh{display:grid;place-items:center;min-height:44px;min-width:0}
.gm-gh img{display:block;zoom:.75}
.gm-side{grid-auto-flow:column;justify-content:start;gap:6px;font-size:var(--t13);color:var(--ink)}
.gm-cell{--t:0;height:44px;min-width:0;margin:0;padding:0;border:1px solid color-mix(in srgb,var(--stroke) 55%,transparent);border-radius:6px;background:color-mix(in srgb,var(--orange) calc(var(--t) * 45%),var(--card));color:var(--ink);font-family:var(--cond);font-size:var(--t14);font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color var(--d-fast) var(--ease),border-color var(--d-fast) var(--ease)}
.gm-cell[data-h="1"]{--t:.08}.gm-cell[data-h="2"]{--t:.195}.gm-cell[data-h="3"]{--t:.31}.gm-cell[data-h="4"]{--t:.425}.gm-cell[data-h="5"]{--t:.54}.gm-cell[data-h="6"]{--t:.655}.gm-cell[data-h="7"]{--t:.77}.gm-cell[data-h="8"]{--t:.885}.gm-cell[data-h="9"]{--t:1}
.gm-cell[data-h="0"]{color:var(--muted);font-weight:400}   /* (left out of this view: not a homing pair, no blast) */
.gm-cell[data-best]{border-color:var(--orange)}
.gm-cell[aria-pressed="true"]{border-color:var(--ink)}
@media (hover:hover){.gm-cell:hover,.gm-v:hover{border-color:var(--mid)}.gm-cell[aria-pressed="true"]:hover{border-color:var(--ink)}}
.gm-cell:focus-visible,.gm-v:focus-visible{outline:1px solid var(--orange);outline-offset:2px}
.gm-range:focus-visible{outline:1px solid var(--orange);outline-offset:2px;border-radius:4px}
html:not([data-js]) .gm-cell{cursor:default}
.gm-detail{display:grid;gap:14px;align-content:start;min-width:0}
.gm-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 12px}
.gm-load{display:flex;align-items:center;gap:12px;min-width:0}
.gm .gm-big{margin-left:auto;font-family:var(--cond);font-size:30px;font-weight:700;line-height:1;color:var(--orange);font-variant-numeric:tabular-nums}
.gm .fc-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
.gm .fc-os{white-space:normal}
.gm .fc-o[data-none] b{font-weight:400;color:var(--muted)}
.gm-chart{min-width:0;max-width:520px}
html:not([data-js]) .gm-chart{max-width:360px}   /* (the build draws it 360 wide; with script it is drawn as wide as it stands, 1 unit = 1 px) */
.gm-chart svg{display:block;width:100%;height:auto;overflow:visible}
.gm-cg{stroke:color-mix(in srgb,var(--stroke) 55%,transparent);stroke-width:1}
.gm-cb{fill:none;stroke:var(--mid);stroke-width:1.5;stroke-dasharray:4 4}
.gm-cm{fill:none;stroke:var(--orange);stroke-width:2;stroke-linejoin:round}
.gm-cn{stroke:var(--pale);stroke-width:1}
.gm-cd{fill:var(--orange);stroke:var(--card);stroke-width:2}
.gm-bg{fill:var(--mid)}
.gm-bo{fill:var(--orange)}
.gm-chart text{font-family:var(--cond);font-size:var(--t11);fill:var(--muted);font-variant-numeric:tabular-nums}
.gm-chart text.gm-ct{font-size:var(--t10);letter-spacing:.08em;text-transform:uppercase}
.gm-chart text.gm-cv{font-size:var(--t12);font-weight:600;fill:var(--ink)}
.gm-key{display:flex;flex-wrap:wrap;gap:4px 16px;margin:6px 0 0;font-size:var(--t12);color:var(--pale)}
.gm-key i{display:inline-block;width:18px;height:0;margin-right:6px;vertical-align:middle;border-top:2px solid var(--orange)}
.gm-key i.gm-kb{border-top:1.5px dashed var(--mid)}
.gm-key i.gm-ks{width:10px;height:10px;border:0;border-radius:2px;background:var(--orange)}
.gm-key i.gm-kg{background:var(--mid)}
.gm-does{display:grid;gap:6px;margin:0;padding:0;list-style:none;font-size:var(--t13);line-height:1.45;color:var(--pale)}
.gm-does li{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;align-items:start}
.gm-does li>b{padding-top:1px;font-family:var(--cond);font-size:var(--t12);font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink)}
.gm-does li.gm-h{grid-template-columns:minmax(0,1fr);padding-left:10px;border-left:1px solid var(--stroke)}
.gm-does em{padding:0 5px;border:1px solid var(--stroke);border-radius:4px;font-family:var(--cond);font-size:var(--t11);font-style:normal;color:var(--pale);white-space:nowrap}
@container (max-width:519.98px){
  .gm .fk-row{grid-template-columns:minmax(0,1fr);gap:6px}
  .gm .fk-row.gm-inline{grid-template-columns:64px minmax(0,1fr);gap:6px 10px}
  .gm .fk-row.gm-show{grid-template-columns:minmax(0,1fr)}.gm-show .fk-rk{display:none}
  .gm .gm-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}   /* (the three views and Homing only, two a row: three a row let "Damage a second" run over its neighbour on a phone — Oleg, 2026-11-11) */
  .gm .gm-show .gm-word{min-width:0;padding:6px 8px;line-height:1.15;white-space:normal;text-align:center}
  .gm .fk-rk{grid-auto-flow:column;justify-content:start;gap:8px}
  .gm .gm-inline .fk-rk{grid-auto-flow:row}
  .gm-long{display:none}
  .gm .gm-word{padding:6px 9px}
  .gm .gm-bosses{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
  .gm .gm-boss{min-width:0}
  .gm-range{max-width:none}
  .gm-grid{grid-template-columns:32px repeat(7,minmax(0,1fr));gap:2px;width:100%}
  .gm-side>span{display:none}
  .gm-gh{min-height:40px}
  .gm-cell{height:40px;font-size:var(--t12)}
  .gm .gm-big{font-size:26px}
  .gm-does li{grid-template-columns:minmax(0,1fr);gap:1px}
}
@container (max-width:399.98px){.gm .fc-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:299.98px){.gm-cell{font-size:var(--t11);letter-spacing:-.01em}}
/* ---------- the calculators' shared parts (born 2026-10-28 as the "Defense & Damage Reduction" notes calculators; since 2026-11-09 the Damage
   page — source/damage.js, docs/notes/defense-calc.md — and the Fishing calculator use them): .calc (the frame's textures), the buttons
   (.calc-btn, Classic / Expert / Master, Reset), the result on top (.calc-sum: the bar, the HP taken), the small joined switches (.calc-sw —
   Where to fish's world switch), the Hit picker. The bars' widths are inline styles, like the endgame bars'. */
.calc{display:grid;min-width:0;container-type:inline-size;--calc-taken:color-mix(in srgb,var(--orange) 24%,var(--card))}
.calc+.calc{margin-top:22px}
.calc-btn{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 10px;box-sizing:border-box;border:1px solid var(--stroke);border-radius:3px;background:none;font-family:var(--cond);font-size:var(--t11);line-height:1;letter-spacing:.06em;text-transform:uppercase;color:var(--pale)}
.calc-btn:disabled{opacity:.6;cursor:default}   /* resting: as the resting Mark here button (2026-10-05), a disabled control kept at 3 : 1 so it still reads */
.calc-modes{display:inline-flex}
.calc-modes .calc-btn{border-radius:0;position:relative}
.calc-modes .calc-btn+.calc-btn{margin-left:-1px}
.calc-modes .calc-btn:first-child{border-radius:3px 0 0 3px}
.calc-modes .calc-btn:last-child{border-radius:0 3px 3px 0}
/* the chosen difficulty wears the calculator's wash, no class-colour edge (2026-11-09, Oleg: "strange outline and blink effect on changing
   difficulties" — the edge, and under the mouse the hover's grey edge over it until the mouse left, when the class colour jumped on; the
   Fishing calculator's chosen tiles lost their outline the same way, round 7: "change it to more smooth option, maybe bg highlight"). A press
   on it does nothing, so it answers no hover */
.calc-modes .calc-btn[aria-pressed="true"]{z-index:1;background:var(--fc-on,var(--lift));color:var(--ink)}
@media (hover:hover){.calc-modes .calc-btn[aria-pressed="true"]:hover{border-color:var(--stroke)}}
.calc-modes[data-locked] .calc-btn{opacity:.6;cursor:default}   /* a boss attack (Master Mode) is in Hit: the switch rests, and says why when pressed (.calc-say) */
.calc-say{flex:1 1 100%;text-align:right;font-family:var(--cond);font-size:var(--t11);letter-spacing:.04em;color:var(--ink)}
.calc-say:empty{display:none}
/* the result on top (Oleg, 2026-10-29: design C) — sticky under the top bar while its calculator is on screen */
.calc-sum{position:sticky;top:49px;z-index:3;display:grid;gap:7px;margin-top:8px;padding:10px 0 11px;background:var(--card);border-bottom:1px solid var(--stroke)}
.calc-sumline{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.calc-total{grid-column:2;font-size:var(--t12);color:var(--muted);white-space:nowrap}
/* the result bar: the steps differ by texture (dots, solid, stripes, cross), the class colour is the result's alone; every part a whole
   rectangle with its own 1 px edge, 2 px apart, the ends rounded (Oleg: "make sure all bar rectangle is visible" — an edge clipped by
   the bar's round corners showed as a shadow) */
.calc{--calc-before:radial-gradient(color-mix(in srgb,var(--pale) 55%,transparent) 1px,transparent 1.6px) 0 0/5px 5px,color-mix(in srgb,var(--mid) 22%,var(--card));--calc-defense:color-mix(in srgb,var(--mid) 55%,var(--card));--calc-dr:repeating-linear-gradient(135deg,color-mix(in srgb,var(--pale) 45%,transparent) 0 2px,transparent 2px 6px),color-mix(in srgb,var(--mid) 22%,var(--card));--calc-after:repeating-linear-gradient(45deg,color-mix(in srgb,var(--pale) 35%,transparent) 0 1.5px,transparent 1.5px 5px),repeating-linear-gradient(135deg,color-mix(in srgb,var(--pale) 35%,transparent) 0 1.5px,transparent 1.5px 5px),color-mix(in srgb,var(--mid) 22%,var(--card))}
.calc-bar{grid-column:1;display:flex;gap:2px;height:24px;min-width:0}
.calc-part{display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;justify-content:center;min-width:0;overflow:hidden;box-sizing:border-box;border:1px solid var(--stroke);border-radius:2px;transition:width var(--d-open) var(--ease)}
/* a part's amount only where it fits: beside a 0 px strut as tall as the part, a label wider than the part wraps to a second line, under
   the part's edge, out of sight (2026-11-07, Oleg: "on phones i had situation on the bar when the value is not fit on the bar" — "9 % of
   the bar" was 18 px on a phone's 200 px bar, a label 23–50 px; the legend names every amount; defense_calc_check.py "labels") */
.calc-part::before{content:'';height:100%}
.calc-part[data-first]{border-top-left-radius:6px;border-bottom-left-radius:6px}.calc-part[data-last]{border-top-right-radius:6px;border-bottom-right-radius:6px}
.calc-part i{font-style:normal;font-family:var(--cond);font-size:var(--t11);color:var(--ink);white-space:nowrap;padding:0 4px;text-shadow:0 0 2px var(--card)}
.calc-part[data-k="before"],.calc-legend [data-k="before"]::before{background:var(--calc-before)}
.calc-part[data-k="defense"],.calc-legend [data-k="defense"]::before{background:var(--calc-defense)}
.calc-part:is([data-k="dr"],[data-k="minus"]),.calc-legend :is([data-k="dr"],[data-k="minus"])::before{background:var(--calc-dr)}
.calc-part:is([data-k="after"],[data-k="half"]),.calc-legend :is([data-k="after"],[data-k="half"])::before{background:var(--calc-after)}
.calc-part[data-k="result"]{background:var(--calc-taken);border-color:var(--orange)}
@media (prefers-reduced-motion:reduce){.calc-part{transition:none}}
.calc-legend{display:flex;flex-wrap:wrap;gap:3px 14px;font-size:var(--t12);color:var(--pale);font-variant-numeric:tabular-nums}
.calc-legend>span{display:inline-flex;align-items:center;gap:6px}   /* (an item only — its name spans inside take no swatch, 2026-11-09) */
.calc-legend>span::before{content:'';width:12px;height:12px;box-sizing:border-box;border:1px solid var(--stroke);border-radius:3px}
.calc .calc-tv{font-family:var(--cond);font-size:22px;font-weight:500;color:var(--orange);font-variant-numeric:tabular-nums;vertical-align:-2px}   /* (.calc in front: .notes b set it to the text colour) */
.calc-join{display:inline-flex}
.calc-sw{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 7px 0 4px;box-sizing:border-box;border:1px solid var(--stroke);border-radius:6px;background:var(--bg);transition:border-color var(--d-fast) var(--ease),box-shadow .25s var(--ease-out)}
.calc-join .calc-sw{border-radius:0;position:relative}
.calc-join .calc-sw+.calc-sw{margin-left:-1px}
.calc-join .calc-sw:first-child{border-radius:6px 0 0 6px}
.calc-join .calc-sw:last-child{border-radius:0 6px 6px 0}
.calc-sw[aria-pressed="true"]{z-index:1;border-color:var(--orange)}
.calc-ib{flex:none;width:22px;height:22px;display:grid;place-items:center}
.calc-ib img{display:block;max-width:22px;max-height:22px;image-rendering:pixelated;opacity:.42;transition:opacity var(--d-fast) var(--ease)}
.calc-sw[aria-pressed="true"] img{opacity:1}
.calc-sv{min-width:2.2em;font-family:var(--cond);font-size:var(--t11);line-height:1;color:var(--muted);white-space:nowrap}
.calc-sw[aria-pressed="true"] .calc-sv{color:var(--ink)}
html:not([data-js]) .calc-sw{pointer-events:none}
/* the Hit picker's button beside Hit (render.js hitPicker; it was a <select> until 2026-11-07): what was picked, else "Boss attack" */
.calc-pick{display:none;align-items:center;gap:8px;flex:0 1 auto;width:260px;max-width:100%;min-width:0;height:32px;box-sizing:border-box;padding:0 10px 0 8px;overflow:hidden;border:1px solid var(--stroke);border-radius:6px;background:var(--bg);color:var(--pale);font-family:var(--cond);font-size:var(--t12);letter-spacing:.02em;cursor:pointer}
html[data-js] .calc-pick{display:inline-flex}   /* (it only fills the field: nothing to do without script) */
.calc-pick img{width:16px;height:16px;flex:0 0 auto}
.calc-pick-t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.calc-pick[data-picked] .calc-pick-t{color:var(--ink)}
.calc-pick-chev{flex:0 0 auto;color:var(--muted);transition:transform var(--d-fast) var(--ease)}
.calc-pick[aria-expanded="true"]{border-color:var(--mid);color:var(--ink)}
.calc-pick[aria-expanded="true"] .calc-pick-chev{transform:rotate(180deg)}
@media (hover:hover){.calc-pick:hover{border-color:var(--mid);color:var(--ink)}}
.calc-pick:focus-visible{outline:none;border-color:var(--orange)}

/* the Hit picker (2026-11-07 — Oleg picked look A of archive/previews/hits-picker-2026-11-07: "i like variant A, implement it"): a
   modal <dialog>; from 600 px up it hangs under its button (guide.js sets --pick-top / -left / -w / -h) with the boss list beside the
   boss's table; under 600 px it is the whole screen, the list first, a boss's table after a press. The table is Boss info's: a
   creature, its attacks, every number a button (the press shade under the mouse, as a tap — opened-card.md "Ammo tags are buttons") */
.hitpick{position:fixed;inset:auto;top:var(--pick-top,8vh);left:var(--pick-left,8px);width:var(--pick-w,720px);height:var(--pick-h,560px);max-width:none;max-height:none;margin:0;padding:0;box-sizing:border-box;border:1px solid var(--stroke);border-radius:10px;background:var(--card);color:var(--ink);box-shadow:0 18px 44px rgba(0,0,0,.45);overflow:hidden}
.hitpick[open]{display:grid;grid-template-rows:auto minmax(0,1fr);animation:mg-open var(--d-open) var(--ease) both}
.hitpick::backdrop{background:transparent}
.hitpick:focus{outline:none}
[data-theme="light"] .hitpick{box-shadow:0 14px 36px rgba(40,30,20,.22)}
.pick-hd{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 14px;border-bottom:1px solid var(--stroke)}
.pick-ti{display:grid;gap:1px;flex:1;min-width:0}
.pick-ti b{font-family:var(--cond);font-size:var(--t13);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
.pick-ti span{font-size:var(--t12);color:var(--muted)}
.pick-x{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid transparent;border-radius:15px;background:var(--btn);box-shadow:var(--btn-edge);color:var(--ink);font-family:var(--cond);font-size:var(--t11);letter-spacing:.06em;text-transform:uppercase}
.pick-x kbd{font-family:var(--cond);font-size:var(--t10);padding:1px 5px;border:0;border-radius:4px;background:var(--bg);color:var(--muted)}
.pick-x[data-pressed]{box-shadow:inset 0 0 0 999px var(--press),var(--btn-edge)}
@media (pointer:coarse){.pick-x{height:36px;padding:0 16px;border-radius:18px}.pick-x kbd{display:none}}   /* (a touch tablet: the phones' size, and no Esc key to name — it was 30 px there) */
@media (hover:hover){.pick-x:hover{background:var(--btn-hover)}}
.pick-a{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:0}
.pick-list,.pick-boss{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--mid) transparent}
.pick-list{border-right:1px solid var(--stroke);padding-bottom:8px}
.pick-back{display:none}
.pick-gl{padding:12px 14px 5px;font-family:var(--cond);font-size:var(--t10);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.pick-st{display:grid;grid-template-columns:22px 36px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-height:44px;box-sizing:border-box;padding:4px 12px 4px 10px;border:0;background:none;color:var(--pale);font:inherit;font-size:var(--t13);text-align:left;cursor:pointer}
.pick-no{font-family:var(--cond);font-size:var(--t11);color:var(--muted);text-align:right}
.pick-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick-top{font-family:var(--cond);font-size:var(--t12);color:var(--muted)}
.pick-st[aria-current="true"]{background:var(--lift);color:var(--ink)}
.pick-st[aria-current="true"] .pick-no{color:var(--orange)}
.pick-st[data-mark] .pick-nm::after{content:'';display:inline-block;width:6px;height:6px;margin-left:7px;border-radius:50%;background:var(--orange);vertical-align:2px}   /* (Mark here's stage) */
@media (hover:hover){.pick-st:hover{box-shadow:inset 0 0 0 999px var(--press);color:var(--ink)}}
.pick-pic{display:flex;align-items:center;justify-content:center;min-width:0}
.pick-pic img{display:block;max-width:100%;max-height:100%;image-rendering:pixelated}
.pick-pic img.smooth,.pick-sp img{image-rendering:auto}
.pick-sp{width:36px;height:30px}
.pick-tab{padding:0 14px 16px}
.pick-bh{display:flex;align-items:center;gap:12px;padding:14px 0 10px}
.pick-heads{display:flex;align-items:center;gap:4px;flex:0 0 auto}   /* (the stage's map icons, 1:1 — sharp: render.js stageHeads) */
.pick-heads img{display:block;image-rendering:pixelated}
.pick-bt{display:grid;gap:1px;min-width:0}
.pick-bt b{font-family:var(--cond);font-size:21px;font-weight:600;line-height:1.1;color:var(--ink);text-wrap:balance}
.pick-bt b .pick-no{margin-right:6px;font-size:inherit;color:var(--orange)}
.pick-bt span{font-size:var(--t12);color:var(--muted)}
.pick-sep{margin:12px 0 0;padding:0 0 4px;font-family:var(--cond);font-size:var(--t10);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.pick-cr{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:10px;padding:10px 0;border-top:1px solid var(--stroke)}
.pick-cr>.pick-pic{width:40px;height:36px;align-self:start}
.pick-crn{font-size:var(--t14);font-weight:500;line-height:36px;color:var(--ink)}
.pick-crn small{margin-left:6px;font-size:var(--t11);font-weight:400;color:var(--muted)}
.pick-ats{grid-column:2;display:grid;gap:6px}
.pick-at{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:38px}
.pick-an{flex:1 1 7em;min-width:0;font-size:var(--t13);color:var(--pale)}
.pick-vs{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;margin-left:auto}
.pick-v{display:inline-grid;align-content:center;justify-items:center;min-width:56px;min-height:38px;box-sizing:border-box;padding:3px 9px;border:1px solid var(--stroke);border-radius:6px;background:none;color:var(--ink);font:inherit;cursor:pointer}
.pick-c{font-family:var(--cond);font-size:var(--t10);line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.pick-n{font-family:var(--cond);font-size:var(--t16);font-weight:500;line-height:1.15}
.pick-v[aria-pressed="true"]{border-color:var(--orange)}
.pick-v[aria-pressed="true"] .pick-n{color:var(--orange)}
@media (hover:hover){.pick-v:hover{box-shadow:inset 0 0 0 999px var(--press);border-color:var(--mid)}}
:is(.pick-v,.pick-st,.pick-back):focus-visible{outline:1px solid var(--orange);outline-offset:-1px}
@media (max-width:599px){
  .hitpick{inset:0;width:100%;height:100%;border:0;border-radius:0;box-shadow:none}
  .hitpick[open]{animation-name:pick-up}
  .pick-hd{padding:12px 12px 12px 16px}
  .pick-x{height:36px;padding:0 16px;border-radius:18px}
  .pick-x kbd{display:none}
  .pick-a{grid-template-columns:minmax(0,1fr)}
  .pick-list{border-right:0}
  .pick-a[data-view="list"]>.pick-boss,.pick-a[data-view="boss"]>.pick-list{display:none}
  .pick-back{display:inline-flex;align-items:center;height:36px;margin:10px 0 0 12px;padding:0 12px 0 10px;border:1px solid var(--stroke);border-radius:6px;background:none;color:var(--pale);font-family:var(--cond);font-size:var(--t12);letter-spacing:.04em;text-transform:uppercase}
  .pick-st{min-height:52px}
  .pick-tab{padding:0 16px 24px}
  .pick-v{min-height:44px}
}
@keyframes pick-up{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (hover:hover){.calc-btn:not(:disabled):hover{border-color:var(--mid);color:var(--ink)}.calc-sw:hover{border-color:var(--mid)}.calc-sw[aria-pressed="true"]:hover{border-color:var(--orange)}}
.calc-sw:focus-visible,.calc-btn:focus-visible{outline:1px solid var(--orange);outline-offset:2px}
@media (pointer:coarse){.calc-btn,.calc-sw,.calc-pick{height:36px}.calc-pick{font-size:var(--t16)}}   /* (16 px: iOS Safari zooms into a form control with smaller text when it is tapped) */
/* print: no Hit picker and no message — after the screen rules, and with html in front, so it outweighs html[data-js] .calc-pick (reviews.md:
   "a print / no-script rule … needs the weight to win") */
@media print{html[data-js] :is(.calc-pick,.calc-say){display:none}}
.nlist{margin:0;padding-left:18px;display:grid;gap:6px;font-size:var(--t13);line-height:1.5;color:var(--pale);max-width:980px}
.nlist li{text-wrap:pretty}
.ntext{margin:0;font-size:var(--t13);line-height:1.55;color:var(--pale);max-width:980px;text-wrap:pretty}
/* mixes blocks (render.js nMixes — the Ranger's best ammo mixes; Oleg, 2026-10-25: "make it more grid structured", preview
   archive/previews/ranger-mixes "A2"). From 680 px of block every row is one grid — when · weapon · 4 slots · names — with the same
   columns in every block, and an alternative is a line of its own in them (its label before its smaller slots). Narrower: when and
   weapon on one line, the slots beside the names, an alternative's smaller slots beside its label over its names. The when cell is a
   grid of its own (picture · number · dash · picture · number), so every row's numbers line up */
.mixes{display:grid;gap:10px;min-width:0;container-type:inline-size}
.mixes .nt-head{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}
.mixes .nt-head .block-sub{grid-column:1 / -1}
.mx-when{display:grid;grid-template-columns:24px 16px 10px 24px 16px;column-gap:3px;align-items:center;white-space:nowrap}
.mx-when[data-text]{display:block;font-size:var(--t12);color:var(--pale)}
.mx-when img{width:24px;height:24px;object-fit:contain;image-rendering:auto}   /* the rail's stills: smoothed, as on the rail */
.mx-when b{font-family:var(--cond);font-weight:400;font-size:var(--t11);color:var(--pale)}
.mx-dash,.mx-after{font-family:var(--cond);font-size:var(--t11);color:var(--muted)}
.mx-dash{text-align:center}.mx-after{grid-column:1 / 4}
/* an ammo mix's chips (the opened card's AMMO MIX): a chip an ammo — its picture, its short name, ×N — so the number stands with its
   name (Oleg, 2026-11-10: "B · Chips" of archive/previews/ammo-mix-2026-11-10; until then a 28 px box with the number in its corner and
   the names in a line beside). A picture is never drawn larger than it is (scale-down), 16 px at most in its 20 px place. */
.mx-slots{display:flex;flex-wrap:wrap;gap:5px 6px;min-width:0}
.mx-slots i{font-style:normal;display:inline-flex;align-items:center;gap:5px;height:26px;box-sizing:border-box;padding:0 8px 0 3px;border:1px solid var(--stroke);border-radius:5px;background:var(--lift);white-space:nowrap}
.mx-slots img{flex:0 0 auto;width:20px;height:20px;box-sizing:border-box;padding:2px;object-fit:scale-down}
.am-name{font-size:var(--t12);line-height:1;color:var(--pale)}
.am-n{font-family:var(--cond);font-size:var(--t13);font-weight:600;line-height:1;font-variant-numeric:tabular-nums;color:var(--pale)}
.am-n>span{margin-right:1px;font-weight:400;color:var(--pale)}   /* (the ×: --muted on a chip's --lift is 4.24 : 1 in the dark theme) */
.am-set[data-set="best"] .mx-slots i{height:28px}
.am-set[data-set="best"] :is(.am-name,.am-n){color:var(--ink)}
/* the "Minion mixes" note block (render.js nMinionMixes, made from the stages' mixes): when · name · the staffs × N · their names ·
   slots — one line from 680 px of block, the staffs and names on lines of their own below that */
.mm-list{display:grid;border:1px solid var(--stroke);border-radius:8px;background:var(--bg);min-width:0}
.mm-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:6px;padding:10px 12px;min-width:0}
.mm-row+.mm-row{border-top:1px solid var(--stroke)}
.mm-name{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--pale)}
.mm-icons,.mm-names{grid-column:1 / -1}
.mm-icons{display:flex;flex-wrap:wrap;gap:3px}
.mm-icons i{display:inline-flex;align-items:center;gap:3px;height:28px;padding:0 6px 0 2px;box-sizing:border-box;border:1px solid var(--stroke);border-radius:4px;background:var(--lift)}
.mm-icons img{max-width:24px;max-height:24px;image-rendering:pixelated}
.mm-names{font-size:var(--t13);line-height:1.35;color:var(--ink);min-width:0}
.mm-slots{grid-column:3;grid-row:1;font-family:var(--cond);font-size:var(--t11);color:var(--muted);white-space:nowrap}
@container (min-width:680px){
  .mm-row{grid-template-columns:118px 104px 172px minmax(0,1fr) auto;column-gap:16px;padding:10px 16px}   /* (172 px: three staffs; more wrap — the names line up) */
  .mm-icons,.mm-names{grid-column:auto}.mm-slots{grid-column:auto;grid-row:auto}
}

/* ---------- the endgame page (round 9, the Mage guide; redesigned 2026-10-21 — markup source/endgame.js, behaviour guide.js "endgame") ----------
   A page of the pager after Moon Lord (section.stage#endgame, no data-stage). Head: kicker, title, the loadout tabs. A panel per
   loadout: one line of lede (the rest in its ?), the gear — a row per item: picture, name, reforge or first rows; Vanity On adds the
   dye and vanity columns — and under it the kit (the hotbar a list, the other rows pictures with the name in the popup). Beside
   both from a 720 px stage, sticky, the stats panel: the weapon line, the controls folded behind one line, a row per total — a thin
   quiet bar that opens to its colours and its sources. Each total once (the five big total cards went: Oleg, 2026-10-21, "it is too
   much on the first glance"). Every item is a slot with a popup ([data-info] > [data-tip], placed by guide.js placeTip like a ?
   note). A bar's segments carry their width as a style (flex-grow): data, not design. Without script and in print: every row
   open, the controls hidden, the three loadouts one under another. */
.eg{gap:22px;padding-bottom:40px}
.eg-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap}
.eg-kicker{display:flex;align-items:center;gap:7px;font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.08em;color:var(--orange)}
.eg-frag{height:14px;width:auto;image-rendering:pixelated}
.eg-title{margin:6px 0 0;font-family:var(--cond);font-size:29px;font-weight:700;line-height:1.05;letter-spacing:0;color:var(--ink)}
.eg-tabs{display:flex;gap:4px;padding:3px;border:1px solid var(--stroke);border-radius:12px;background:var(--card)}
.eg-tab{display:flex;align-items:center;gap:8px;min-height:38px;padding:6px 12px 6px 8px;border:0;border-radius:9px;background:none;color:var(--pale);font-size:var(--t13);white-space:nowrap}
.eg-tab img{width:22px;height:22px;object-fit:contain}
.eg-tab kbd{font-family:var(--cond);font-size:var(--t10);color:var(--muted);border:1px solid var(--stroke);border-radius:4px;padding:0 4px;line-height:1.4}
.eg-tab[aria-selected="true"]{background:var(--lift);color:var(--ink);box-shadow:inset 0 0 0 1px var(--orange)}
.eg-tab[aria-selected="true"][data-pressed]{box-shadow:inset 0 0 0 999px var(--press),inset 0 0 0 1px var(--orange)}
.eg-tab[aria-selected="true"] kbd{color:var(--pale)}
@media (hover:hover){.eg-tab:hover{color:var(--ink)}}
.eg-tab kbd{display:none}@media (hover:hover) and (pointer:fine){.eg-tab kbd{display:inline}}
html[data-js] .eg-panel:not([data-on]){display:none}
.eg-panel{display:grid;gap:16px;min-width:0}
html:not([data-js]) .eg-panel+.eg-panel{padding-top:22px;border-top:1px solid var(--stroke)}   /* (no script: the three loadouts one under another) */
html:not([data-js]) :is(.eg-tabs,.eg-ctl,.eg-sum,.eg-vtg){display:none}
@media print{html[data-js] .eg-panel:not([data-on]){display:grid}.eg-panel+.eg-panel{padding-top:22px;border-top:1px solid var(--stroke)}html :is(.eg-tabs,.eg-ctl,.eg-vtg,.eg-lede .info,.eg-sum>i){display:none}.eg-tip{display:none!important}}   /* (printed: the three loadouts one under another, every row open, the buffs' line as they are switched. `html`: .eg-ctl and .eg-vtg set their display further down) */
.eg-lede-row{display:flex;align-items:baseline;gap:8px 16px;flex-wrap:wrap}
.eg-lede{margin:0;color:var(--pale);font-size:var(--t13);text-wrap:pretty}   /* (one line on a laptop: 72ch broke it in two at 1440) */
.eg-lede .info{vertical-align:1px}
.eg-about{display:block}
.eg-shared{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border:1px solid var(--stroke);border-radius:999px;padding:2px 9px;white-space:nowrap}
.eg-label{font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.eg-h3{display:flex;align-items:baseline;gap:10px;margin:0;font-family:var(--cond);font-size:var(--t11);font-weight:400;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.eg-h3::after{content:'';flex:1;height:1px;background:var(--stroke);align-self:center}
.eg-h3-sub{text-transform:none;letter-spacing:0;font-family:var(--sans);color:var(--muted)}
/* the columns: the gear and the kit on the left, the stats panel beside them — in view while they scroll, never taller than the screen */
.eg-main{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;min-width:0}
@container stage (min-width:720px){
  .eg-main{grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start}
  .eg-gear{grid-column:1;grid-row:1}.eg-kit{grid-column:1;grid-row:2}
  .eg-ledger{grid-column:2;grid-row:1 / span 2;position:sticky;top:60px;max-height:calc(100vh - 76px);max-height:calc(100dvh - 76px);overflow-y:auto}   /* (no overscroll-behavior:contain: with it Chromium's wheel over the panel scrolled nothing at all, the page included, while the panel had nothing to scroll) */
}
@container stage (min-width:1100px){.eg-main{grid-template-columns:minmax(0,1fr) 360px}}
@media print{.eg-ledger{position:static!important;max-height:none!important;overflow:visible!important}}
/* the gear: a row per item; Vanity On — the game's dye · vanity · equip columns */
.eg-gear{display:grid;gap:14px;min-width:0;align-content:start}
.eg-sh{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
.eg-sh .eg-h3{flex:1 1 auto}
.eg-sh .eg-h3::after{min-width:24px}   /* (a phone: the toggle goes under the heading rather than squeeze its rule to a dash) */
.eg-vtg{display:flex;align-items:center;gap:8px}
.eg-grid{display:grid;gap:2px}
.eg-ghead,.eg-gr{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:center}
.eg-panel[data-van] :is(.eg-ghead,.eg-gr){grid-template-columns:34px 40px 44px minmax(0,1fr)}
.eg-panel[data-van] .eg-grid-eq .eg-gr{grid-template-columns:34px 44px minmax(0,1fr)}
.eg-panel:not([data-van]) :is(.eg-ghead,.eg-gr>.eg-d,.eg-gr>.eg-v){display:none}
.eg-ghead span{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);text-align:center}
.eg-gr{padding:3px 6px 3px 3px;border-radius:12px;transition:background-color .15s ease}
.eg-gr>.eg-d,.eg-gr>.eg-v{justify-self:center}
.eg-gn{display:grid;gap:2px;min-width:0}
.eg-gname{font-size:var(--t12);color:var(--ink);line-height:1.25}
.eg-gsub{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;font-size:var(--t11);color:var(--muted);line-height:1.35}
.eg-rfc{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.eg-rfc-menacing{color:var(--red)}.eg-rfc-lucky{color:var(--special)}
.eg-slotk{font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.04em;padding:0 5px;border:1px solid currentColor;border-radius:3px}
.eg-slotk.eg-x{color:var(--fin-expert)}.eg-slotk.eg-m{color:var(--fin-master)}
[data-theme="light"] .eg-slotk.eg-x{color:color-mix(in srgb,var(--fin-expert) 88%,#000)}   /* (10 px text on the light card: the token itself is 4.49 : 1 there) */
.eg-set{display:flex;align-items:baseline;gap:6px 10px;flex-wrap:wrap;padding:2px 6px 0 55px;font-size:var(--t11);color:var(--pale)}   /* (55 = the names' column: 3 + 44 + 8) */
.eg-gsep{height:1px;background:var(--stroke);margin:6px 0}
.eg-note{margin:4px 0 0;font-size:var(--t12);color:var(--muted);text-wrap:pretty}
/* a slot */
.eg-slot{--s:44px;position:relative;display:inline-grid;place-items:center;width:var(--s);height:var(--s);flex:none;padding:0;border:1px solid var(--stroke);border-radius:9px;background:var(--card);color:inherit;font:inherit;transition:border-color .15s ease,box-shadow .25s var(--ease-out)}
.eg-slot>img{max-width:68%;max-height:68%;object-fit:contain}
.eg-slot.eg-v{--s:40px}.eg-slot.eg-d{--s:30px;border-radius:50%}
.eg-slot.eg-d>img{max-width:62%;max-height:62%}
.eg-slot.eg-empty{border-style:dashed;background:none}
.eg-slot.eg-x{border-color:color-mix(in srgb,var(--fin-expert) 75%,var(--stroke))}
.eg-slot.eg-m{border-color:color-mix(in srgb,var(--fin-master) 75%,var(--stroke))}
@media (hover:hover){button.eg-slot:hover{border-color:var(--orange)}}
button.eg-slot:focus-visible,button.eg-slot[data-open]{border-color:var(--orange)}
button.eg-slot:hover,button.eg-slot:focus,button.eg-slot[data-open]{z-index:20}
.eg-n{position:absolute;top:2px;left:5px;font-family:var(--cond);font-size:var(--t10);color:var(--muted);line-height:1.2}
.eg-rf{position:absolute;top:4px;right:4px;width:7px;height:7px;border-radius:50%}
.eg-rf-menacing{background:var(--red)}.eg-rf-lucky{background:var(--special)}
/* an item's popup (like a ? note: hover, focus, a tap) */
.eg-tip{position:absolute;top:calc(100% + 8px);left:calc(50% - 130px);z-index:21;width:260px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:10px 12px;background:var(--bg);border:1px solid var(--stroke);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.35);text-align:left;font-size:var(--t12);line-height:1.45;color:var(--pale);display:none;transform:translateX(var(--tip-dx,0px));pointer-events:none;white-space:normal;cursor:default}   /* (display:none, not hidden: a hidden popup of a slot near the edge widened the page on phones) */
[data-theme="light"] .eg-tip{box-shadow:0 8px 24px rgba(40,30,20,.18)}
.eg-tip[data-tip-up]{top:auto;bottom:calc(100% + 8px)}
button.eg-slot:hover>.eg-tip{display:block}
@media (hover:none){button.eg-slot:hover:not([data-open]):not(:focus-visible)>.eg-tip{display:none}}   /* (as the ? notes: shown on hover unless the screen says it has no hover — WebKit can match neither hover:hover nor hover:none) */
button.eg-slot:focus-visible>.eg-tip,button.eg-slot[data-open]>.eg-tip{display:block;animation:eg-fade .12s ease-out}
@keyframes eg-fade{from{opacity:0}}   /* (opacity only: a moving popup would fight its --tip-dx shift) */
.eg-tip[data-tip-scroll]{overflow-y:auto;overscroll-behavior:contain;pointer-events:auto}
.eg-tn{display:block;font-size:var(--t13);font-weight:500;color:var(--ink);margin-bottom:4px}
.eg-rows{display:block;border-top:1px solid var(--stroke);padding-top:2px}
.eg-rows .row{font-size:var(--t12)}
.eg-tip b{font-weight:600;color:var(--ink)}
.eg-dim{color:var(--muted)}
.eg-tp{display:block;margin-top:6px;padding-top:6px;border-top:1px solid var(--stroke);color:var(--green)}
.eg-tnote{display:block;margin-top:6px;padding-top:6px;border-top:1px solid var(--stroke);color:var(--pale);text-wrap:pretty}
.eg-tk{display:block;margin-top:6px;font-family:var(--cond);font-size:var(--t10);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
/* the stats panel */
.eg-ledger{display:grid;gap:10px;min-width:0;align-content:start;padding:12px 14px 14px;border:1px solid var(--stroke);border-radius:12px;background:var(--card)}
.eg-wline{margin:0;font-size:var(--t12);line-height:1.5;color:var(--pale)}
.eg-wout b{font-size:var(--t14);font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.eg-wname{color:var(--ink)}
.eg-nw{white-space:nowrap}   /* (a number keeps its word: "9 / mana" broke at 1024) */
/* the controls, folded behind one line: "Buffs 14 of 14 · Boosters 0 · Last Prism" */
.eg-sum{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:32px;padding:4px 10px;border:1px solid var(--stroke);border-radius:8px;background:none;color:var(--muted);font-size:var(--t12);text-align:left}
.eg-sum b{font-weight:500;color:var(--pale)}
.eg-sum>i{flex:none;width:6px;height:6px;margin:0 2px 3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.eg-sum[aria-expanded="true"]>i{margin-bottom:-3px;transform:rotate(-135deg)}
@media (hover:hover){.eg-sum:hover{color:var(--ink)}}
html[data-js] .eg-sum[aria-expanded="false"]+.eg-ctl{display:none}
.eg-ctl{display:grid;gap:10px;padding:0 0 4px}
.eg-ctl-row{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.eg-ctl .eg-label{font-size:var(--t10)}
.eg-seg2{display:inline-flex;border:1px solid var(--stroke);border-radius:9px;overflow:hidden}
.eg-seg2 button{display:inline-flex;align-items:center;gap:2px;min-height:32px;padding:4px 11px;border:0;border-right:1px solid var(--stroke);background:none;color:var(--pale);font-size:var(--t12)}
.eg-seg2 button:last-child{border-right:0}
.eg-seg2 button[aria-pressed="true"]{background:var(--lift);color:var(--ink)}
.eg-seg2 button:focus-visible{outline-offset:-2px}   /* the ring inside the button, 1 px short of the frame and the divider: 2 px out, the frame's overflow:hidden cut it all off but a stripe on the divider (2026-10-21) */
.eg-seg2 button:first-child{border-radius:8px 0 0 8px}.eg-seg2 button:last-child{border-radius:0 8px 8px 0}   /* (the frame's inner corners: the ring follows them; the fill was clipped to them already) */
.eg-seg2 img{width:auto;height:12px;image-rendering:pixelated}
.eg-hint{font-size:var(--t11);color:var(--muted)}
.eg-buffs{display:flex;flex-wrap:wrap;gap:4px}
.eg-buff{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:2px 9px 2px 4px;border:1px solid var(--stroke);border-radius:999px;background:none;color:var(--pale);font-size:var(--t11)}
.eg-buff img{width:18px;height:18px;object-fit:contain}
.eg-buff[aria-pressed="false"]{border-style:dashed;color:var(--muted)}
.eg-buff[aria-pressed="false"] img{opacity:.35;filter:grayscale(1)}
.eg-buff[aria-pressed="false"] span{text-decoration:line-through}
@media (hover:hover){.eg-buff:hover,.eg-seg2 button:hover{color:var(--ink)}}
.eg-wpick{display:inline-flex;gap:4px;flex-wrap:wrap}
.eg-wpick button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid var(--stroke);border-radius:9px;background:none}
.eg-wpick button img{max-width:24px;max-height:24px;object-fit:contain}
.eg-wpick button[aria-pressed="true"]{border-color:var(--orange);background:var(--lift)}
@media (pointer:coarse){.eg-buff{min-height:34px}.eg-wpick button{width:36px;height:36px}}
/* a row per total: its name and number (a button: it opens), a thin quiet bar; opened — the bar's colours, the sources with their
   dots, past a cap the hatched part and the note. The cap line stays on the quiet bar. */
.eg-led{display:grid}
.eg-l{display:grid;gap:4px;min-width:0;padding:6px 0 7px;border-top:1px solid var(--stroke)}
.eg-l:first-child{border-top:0}
.eg-l[data-exp]{padding-bottom:10px}
.eg-l-top{position:relative;display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;padding:0 16px 0 0;border:0;border-radius:4px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.eg-l-top::after{content:'';position:absolute;right:3px;top:50%;width:5px;height:5px;margin-top:-4px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(-45deg)}
.eg-l[data-exp] .eg-l-top::after{margin-top:-5px;transform:rotate(45deg)}
html:not([data-js]) .eg-l-top{cursor:default}html:not([data-js]) .eg-l-top::after{display:none}
@media (pointer:coarse){.eg-l-top::before{content:'';position:absolute;inset:-6px 0 -15px}.eg-l .eg-bar{pointer-events:none}.eg-sum{min-height:36px}}   /* (a finger: the row's whole height — its padding and its quiet bar — is the target, 44 px; the button alone is 23. The bar lets the tap through: positioned after the button, it was drawn over its hit area — Chromium opened nothing on a tap on the bar) */
.eg-l-k{font-size:var(--t12);color:var(--pale)}
@media (hover:hover){.eg-l-top:hover .eg-l-k{color:var(--ink)}}
.eg-l-v{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;justify-content:flex-end;text-align:right}
.eg-l-v b{font-size:var(--t14);font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.eg-capnote{font-family:var(--cond);font-size:var(--t10);letter-spacing:.03em;color:var(--special)}
.eg-bar{position:relative;display:flex;gap:1px;height:8px;border-radius:4px;overflow:hidden;background:var(--lift)}
.eg-seg{display:block;flex:0 0 0;min-width:2px;transition:opacity .15s ease,background-color .15s ease}
.eg-cap{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--ink)}
.eg-over{position:absolute;top:0;bottom:0;right:0;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--bg) 72%,transparent) 0 3px,transparent 3px 7px)}
.eg-srcs{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:var(--t11);color:var(--muted)}
.eg-src{display:inline-flex;align-items:center;gap:5px}
.eg-src b{font-weight:500;color:var(--pale);font-variant-numeric:tabular-nums}
.eg-dot{width:7px;height:7px;border-radius:50%}
.eg-s-base{background:var(--mid)}.eg-s-perm{background:var(--muted)}.eg-s-armor{background:var(--orange)}.eg-s-acc{background:var(--rar-cyan)}
.eg-s-reforge{background:var(--special)}.eg-s-tool{background:var(--red)}.eg-s-buff{background:var(--green)}.eg-s-booster{background:var(--only)}
@media screen{
  html[data-js] .eg-l:not([data-exp]) .eg-bar{height:4px;border-radius:2px;gap:0}
  html[data-js] .eg-l:not([data-exp]) .eg-seg{background:color-mix(in srgb,var(--muted) 45%,var(--lift))}
  html[data-js] .eg-l:not([data-exp]) :is(.eg-srcs,.eg-capnote,.eg-over){display:none}
  /* lit: the item under the pointer (or the focus) — its share in the class colour on a quiet bar; in an opened row the rest fade */
  html[data-js] .eg-panel[data-dim] .eg-l:not([data-exp]) .eg-seg[data-hot]{background:var(--orange)}
}
.eg-panel[data-dim] .eg-l[data-exp] .eg-seg:not([data-hot]){opacity:.18}
.eg-panel[data-dim] .eg-gr[data-hot],.eg-panel[data-dim] .eg-ki[data-hot]{background:var(--lift)}
.eg-panel[data-dim] .eg-slot[data-hot],.eg-panel[data-dim] .eg-buff[data-hot]{border-color:var(--orange)}
/* the kit: the hotbar a list; the other rows pictures (on screen — printed, with their names) */
.eg-kit{display:grid;gap:16px;min-width:0}
.eg-kitsec{display:grid;gap:8px}
.eg-kitlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:2px 12px}
.eg-ki{display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px;align-items:center;padding:2px;border-radius:10px}
.eg-ki .eg-slot{--s:38px}
.eg-ki-num{grid-template-columns:12px 38px minmax(0,1fr)}
.eg-kno{font-family:var(--cond);font-size:var(--t11);color:var(--muted);text-align:right}
.eg-kn{display:grid;gap:1px;min-width:0}
.eg-kn .eg-gsub{display:block}
@media screen{
  .eg-kitpics .eg-kitlist{display:flex;flex-wrap:wrap;gap:6px}
  .eg-kitpics .eg-ki{display:block;padding:0}
  .eg-kitpics .eg-kn{display:none}
  .eg-kitpics .eg-ki .eg-slot{--s:44px}
}
.rail-group[data-end]{color:var(--orange)}
.jump-group[data-end]{color:var(--orange)}
@container stage (max-width:599px){
  .eg-title{font-size:23px}
  .eg-tabs{width:100%}.eg-tab{flex:1 1 0;min-width:0;justify-content:center;gap:6px;padding:6px 4px}.eg-tab kbd{display:none!important}.eg-tab img{width:18px;height:18px}
  .eg-set{padding-left:4px}
  .eg-kitlist{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container stage (min-width:600px) and (max-width:1099px){.eg-title{font-size:27px}}

/* ---------- tablets + phones (≤1099) ---------- */
@media (max-width:1099px){
  header#top h1{font-size:34px}
}
/* ---------- phones (≤599) ---------- */
@media (max-width:599px){
  .topnav{gap:8px;padding:0 12px}
  .nav-actions{gap:5px}
  .themebtn{margin-left:0}
  .jump-btn{position:relative;display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;height:34px;padding:0 8px;overflow:hidden;background:var(--btn);border:1px solid transparent;border-radius:8px;box-shadow:var(--btn-edge);font-family:var(--cond);font-size:var(--t11);text-transform:uppercase;letter-spacing:.06em;color:var(--ink)}
  .jump-num{flex:0 0 auto;color:var(--orange)}
  .jump-num:empty{display:none}   /* ("Before you start" has no number) */
  /* the stage name is never cut: 11 px caps without tracking fit every name on a 390 px phone; on narrower ones a long name takes two lines */
  .jump-name{flex:1 1 auto;min-width:0;overflow:hidden;text-align:left;font-size:11px;letter-spacing:0;line-height:1.12;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-wrap:balance}
  .jump-btn svg{flex:0 0 auto;color:var(--muted)}
  .jump-btn::after{content:'';position:absolute;left:0;bottom:0;height:2px;width:var(--jump-p,0%);background:var(--orange);transition:width .25s ease}   /* how far down the guide you are */
  header#top{padding:20px 16px 24px;gap:18px}
  header#top h1{font-size:29px}
  main{gap:24px}
  .phase{padding:0 16px}
  .stage{padding:10px 10px 16px;gap:10px}
  .notes{padding:0 12px}
  .note-toggle{padding:12px 14px;gap:12px}
  .note-body{padding:14px 12px 18px;gap:22px}
  .ntable tbody td:first-child:not(.nt-img){white-space:normal;width:auto;min-width:128px}
  /* notes tables on phones (Oleg, 2026-10-24): 12 px cells and tighter padding, so more columns sit side by side (headers stay
     11 px, the phone minimum); a pairing short ("Ruby + Sapphire": the sprites and the header say which is which) */
  .ntable table{font-size:var(--t11)}
  .ntable td{padding:6px}
  .ntable th{padding:8px 6px 6px}
  .ntable .cell-sub{font-size:var(--t10)}
  .ntable[data-compact] td.nt-img{padding-left:6px}
  .ntable[data-img] .nt-kind{display:none}
  /* a two-column text table (render.js data-stack): each row = its first cell as a heading over the second, full width */
  .ntable[data-stack] thead{display:none}
  .ntable[data-stack] table,.ntable[data-stack] tbody{display:block}
  .ntable[data-stack] table{font-size:var(--t12)}
  .ntable[data-stack] tr{display:block;padding:10px 12px}
  .ntable[data-stack] tr+tr{border-top:1px solid var(--stroke)}
  .ntable[data-stack] tbody td{display:block;border:0;padding:0;width:auto;white-space:normal;position:static;box-shadow:none}
  .ntable[data-stack] tbody td:first-child:not(.nt-img){min-width:0;margin-bottom:3px;font-weight:600;color:var(--ink)}
  /* no row highlight: it lit only the text blocks inside the row's padding, and a tap leaves it on (Oleg, 2026-10-24: "there is
     highliting while hovering on the text in hidden interactions on phones"); no columns to follow across here anyway */
  .ntable[data-stack] tbody tr:hover td{background:none}
}
@media (max-width:399px){.jump-btn svg{display:none}}   /* the chevron's room goes to the stage name */
/* ---------- touch screens: every control gets a finger-sized target (~40 px; small ones grow an invisible hit area) ---------- */
@media (pointer:coarse){
  .navbtn,.home,.themebtn{position:relative}
  .navbtn::after,.home::after,.themebtn::after{content:'';position:absolute;inset:-6px -3px}
  .rail-step{position:relative}.rail-step::after{content:'';position:absolute;inset:-6px -3px}
  .class-label{position:relative}.class-label::after{content:'';position:absolute;inset:-12px -6px}
  .cardbox-close kbd{display:none}   /* no Esc key on a touch screen */
  .cardbox-close{height:40px;padding:0 18px;border-radius:20px}
  .boss-more{position:relative}.boss-more::after{content:'';position:absolute;inset:-7px -4px}
  .info::after{content:'';position:absolute;inset:-11px}
  .alts{gap:6px}
  .alt{width:34px;height:34px;border-radius:6px;position:relative}.alt img{max-width:24px;max-height:24px}
  .alt::after{content:'';position:absolute;inset:-4px}   /* 40 px (inside the border 32 + 4 + 4): 3 px past each edge, so two chips' areas meet in the 6 px gap */
  .cardbox .tag[data-ct-ammo]{position:relative}.cardbox .tag[data-ct-ammo]::after{content:'';position:absolute;inset:-4px -3px}
  .cardbox .tags:has(>.tag[data-ct-ammo]){row-gap:6px}   /* an ammo tag in the opened card is 20 px tall, its area 26: wrapped lines 6 px apart, two areas meet in the middle of the gap (the inset counts from inside the 1 px border: −4 = 3 px out) (Oleg, 2026-11-07: the 20 px of the 40 px areas were "too far from each other"; touch_check.py) */
  .alt-text{width:auto;height:auto;padding:8px 10px}
  .nt-switch{height:36px;padding:0 12px}
  .result-stage{padding:9px 10px}
  .search-esc{padding:8px 11px}
  .search-esc-key,.search-keys{display:none}   /* (the footer stays for the chips' key and the count since 2026-11-02; only the key hints go — a touch screen has no keys) */
  .search-esc-word{display:inline}
  .search-clear:not([hidden]){display:inline-flex}
  .search-try button{padding:11px 12px}
}

/* ---------- crafting trees in the opened card (round 13; guide.js "crafting trees") ----------
   A CRAFT bar (SOURCE for an item nobody crafts) with the pictures of the bosses / events the item needs, a GET bar with the totals and
   ticks; both fold, one state each for the dialog (data-craft / data-get on it). The tree is design A of round 12, the totals design C's. */
.ccraft{display:none}
.cardbox .ccraft{display:block;grid-column:1/-1;min-width:0;border-top:1px solid var(--stroke);padding-top:6px;font-size:var(--t12);line-height:1.45;text-align:left;cursor:auto}
.ccraft-bar{position:relative;display:flex;align-items:center;gap:8px;width:100%;min-height:22px;margin:0;padding:1px 0;background:none;border:0;font-family:var(--cond);font-size:var(--t10);line-height:1.5;text-transform:uppercase;letter-spacing:.08em;color:var(--pale);text-align:left;cursor:pointer}
/* the dashed line over GET is an element of its own, 6 px over the bar as the block's top line is over CRAFT: as the bar's own top
   border it stood inside the bar's pressed band (Oleg, 2026-10-21: "the highlighting also goes to the dashed line above the GET, but
   it is a different element"). GET's press areas still reach over the line as far as before. */
.ccraft-sep{margin-top:6px;height:6px;border-top:1px dashed color-mix(in srgb,var(--stroke) 70%,transparent)}
.ccraft-w{flex:0 0 auto}
.ccraft-bar b{box-sizing:border-box;min-width:16px;padding:0 5px;border:1px solid var(--stroke);border-radius:8px;font-weight:400;letter-spacing:0;text-align:center;color:var(--ink)}
.ccraft-bar[data-all] b{border-color:var(--green);color:var(--green)}
.ccraft-bar kbd{display:none;margin-left:auto;padding:0 5px;border:1px solid var(--stroke);border-radius:3px;font-family:var(--cond);font-size:var(--t10);letter-spacing:0;color:var(--muted)}
.ccraft-bar i{flex:0 0 auto;width:6px;height:6px;margin:0 3px 3px auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform var(--d-fast) var(--ease)}
.ccraft-bar[aria-expanded="true"] i{margin-bottom:-3px;transform:rotate(-135deg)}
@media (hover:hover) and (pointer:fine){.ccraft-bar kbd{display:block}.ccraft-bar kbd+i{margin-left:0}.ccraft-bar:hover{color:var(--ink)}}
@media (pointer:coarse){.ccraft-bar::after{content:'';position:absolute;inset:-6px 0 -5px}}
.ccraft-bar::before{content:'';position:absolute;top:-4px;bottom:-3px;left:-12px;right:-12px}
.ccraft-get::before{top:-10px}
@media (pointer:coarse){.ccraft-get::after{top:-12px}}
@media (prefers-reduced-motion:reduce){.ccraft-bar i{transition:none}}
/* the needs: the bosses and events to beat, in the order of the game; "one of" = a group in a thin frame */
.ccraft-body{display:none;margin-top:6px;min-width:0}
.cardbox[data-craft="open"] [data-craft-body="tree"],.cardbox[data-get="open"] [data-craft-body="get"]{display:block}
/* coins: the game's coins, biggest first */
.ct-coins{display:inline-flex;align-items:center;gap:5px;font-family:var(--cond);font-size:var(--t11);color:var(--ink);white-space:nowrap;text-transform:none;letter-spacing:0}
.ct-coin{display:inline-flex;align-items:center;gap:1px}
.ct-ci{width:12px;height:12px;object-fit:contain;image-rendering:pixelated}
/* ---------- sizes (wide card); a narrow card (phone) tightens them below ---------- */
.cardbox .ct-wrap{container-type:inline-size;container-name:cttree;--ct-s:22px;--ct-h:26px;--ct-step:20px;--ct-x:11px;--ct-b:24px;--ct-line:var(--mid)}

/* ---------- key points ---------- */

/* ---------- the tree ---------- */
.cardbox .ct-tree,.cardbox .ct-kids{list-style:none;margin:0;padding:0}
.cardbox .ct-kids{padding-left:var(--ct-step)}
.cardbox .ct-set>.ct-li+.ct-li{margin-top:6px;padding-top:6px;border-top:1px dashed var(--stroke)}
.cardbox .ct-li{position:relative;min-width:0;display:flow-root}   /* (flow-root: the bottom margin of an opened "+N" panel stays inside its row's li — it collapsed through it in Safari, and the tree's lines stopped 5 px short: Oleg, 2026-10-11) */
/* connectors: └ from the parent's sprite to this row, │ on for the next sibling, ┬ from a row down to its first child. Each piece runs 1 px into the next (--ct-line is opaque): where two met on a half device pixel (a 150 % screen) the join was drawn paler, a seam (2026-10-23) */
.cardbox .ct-kids>.ct-li::before{content:"";position:absolute;left:calc(var(--ct-x) - var(--ct-step) - .5px);top:-1px;width:calc(var(--ct-step) - var(--ct-x) - 3px);height:calc(var(--ct-h) / 2 + 1px);border-left:1px solid var(--ct-line);border-bottom:1px solid var(--ct-line);border-bottom-left-radius:5px;pointer-events:none}
.cardbox .ct-kids>.ct-li:not(:last-child)::after{content:"";position:absolute;left:calc(var(--ct-x) - var(--ct-step) - .5px);top:0;bottom:-1px;border-left:1px solid var(--ct-line);pointer-events:none}
.cardbox .ct-has:not([data-folded])>.ct-row::after{content:"";position:absolute;left:calc(var(--ct-x) - .5px);top:calc(var(--ct-h) / 2 + var(--ct-s) / 2 + 1px);bottom:-1px;border-left:1px solid var(--ct-line);pointer-events:none}
.cardbox .ct-has:not([data-folded])>.ct-x{position:relative}
.cardbox .ct-has:not([data-folded])>.ct-x::before{content:"";position:absolute;left:calc(var(--ct-x) - .5px - var(--ct-s) - 6px);top:-4px;bottom:-6px;border-left:1px solid var(--ct-line)}   /* (bottom = the panel's 5 px bottom margin, .ct-x below, + the 1 px overlap: at -4px the │ stopped 1 px short of the first child under an opened "or N" / "+N": Oleg, 2026-10-23) */
.cardbox .ct-li[data-folded]>.ct-kids{display:none}

/* a row: [sprite qty name switch] ……… [source | station] [+N] [fold] — the right part wraps under when it does not fit */
.cardbox .ct-row{position:relative;display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;column-gap:8px;min-height:var(--ct-h);min-width:0}
.cardbox .ct-main{display:flex;align-items:center;gap:6px;min-width:0;min-height:var(--ct-h);flex:1 1 auto;max-width:100%}
.cardbox .ct-spr{width:var(--ct-s);height:var(--ct-s);object-fit:contain;image-rendering:pixelated;flex:0 0 auto}
.cardbox .ct-q{flex:0 0 auto;font-family:var(--cond);font-size:var(--t11);color:var(--pale);margin-right:-2px}
.cardbox .ct-nm{min-width:0;font-size:var(--t12);line-height:1.3;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cardbox .ct-root>.ct-row .ct-nm{font-weight:500}
.cardbox .ct-end{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:2px 6px;margin-left:auto;min-height:var(--ct-h);min-width:0;max-width:100%}
.cardbox .ct-has>.ct-row>.ct-end{max-width:calc(100% - var(--ct-x) - 3px)}   /* (wrapped under the name, it stays 2.5 px or more right of the │ from the row's picture: a long ammo row "‹ 500 · 50 × 20 · 3,000 › ⚒ or 1 ⌄" reached the left edge and "‹ 500" stood on the line at 320 and 360 px — Oleg, 2026-11-07; craft_check.js "overlaps") */

/* stations: small sprites, the name in the key points and in the title */
.cardbox .ct-st{width:22px;height:20px;object-fit:contain;image-rendering:pixelated;flex:0 0 auto;opacity:.92}
.cardbox .ct-mk{font-family:var(--cond);font-size:var(--t10);color:var(--muted);white-space:nowrap}

/* a leaf's source: picture · name · chance / count / coins · condition */
.cardbox .ct-src{display:inline-flex;align-items:center;flex-wrap:wrap;gap:0 5px;min-width:0;font-size:var(--t11);line-height:20px;color:var(--muted)}
.cardbox .ct-si{width:20px;height:20px;object-fit:contain;image-rendering:pixelated;flex:0 0 auto}
.cardbox .ct-si-boss{width:26px}
.cardbox .ct-sn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.cardbox .ct-p{font-family:var(--cond);font-weight:500;color:var(--ink)}
.cardbox .ct-ct{font-family:var(--cond);color:var(--pale)}
.cardbox .ct-src .ct-coins{font-size:var(--t11)}
.cardbox .ct-cd{font-family:var(--cond);font-size:var(--t10);line-height:16px;color:var(--pale);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.cardbox .ct-src .ct-cd::before{content:"· ";color:var(--muted)}
.cardbox .ct-src>.ct-si+.ct-cd::before{content:none}   /* no name before it (a pickaxe, a sickle): no dot */
.cardbox .ct-cd-st,.cardbox .ct-sc.ct-cd{padding:0 6px;border-radius:9px;background:var(--lift);color:var(--ink)}
.cardbox .ct-unk{font-family:var(--cond);color:var(--muted)}
/* what matters: rare, boss, event — the class colour, quietly */
.cardbox .ct-end>.ct-src{padding:1px 6px 1px 3px;border-radius:4px;background:color-mix(in srgb,var(--lift) 75%,transparent);color:var(--pale)}   /* every row's source in one box (round 15) */
.cardbox .ct-end>.ct-src .ct-sn{color:var(--ink)}
.cardbox .ct-end>.ct-src.ct-tool{padding:0;background:none}   /* a pickaxe / axe / sickle is a tool, like the station pictures: no box (Oleg, 2026-10-11: "Pickaxe … shouldnt have background like … anvils") */
.cardbox .ct-src.ct-rare .ct-p{color:var(--orange)}   /* rare (under 5 %, under 20 % for a single item): only its number is coloured */

/* buttons: choice switch, "any", "+N", fold */
.cardbox .ct-wrap button{font:inherit;margin:0;color:var(--pale);background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cardbox .ct-sw{display:inline-flex;flex:0 0 auto;padding:1px;border:1px solid var(--stroke);border-radius:6px;gap:1px}
.cardbox .ct-swb{display:grid;place-items:center;width:var(--ct-b);height:22px;padding:0;border-radius:4px!important}
.cardbox .ct-swi{width:18px;height:18px;object-fit:contain;image-rendering:pixelated;opacity:.55;transition:opacity .12s}
@media (hover:hover){.cardbox .ct-swb:hover .ct-swi{opacity:.85}}   /* (the tree's hovers are the mouse's only: after a tap a phone kept them on — "+N" closed again stayed lit, Oleg 2026-11-07) */
.cardbox .ct-swb[aria-pressed="true"]{background:color-mix(in srgb,var(--orange) 16%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--orange) 55%,transparent)}
.cardbox .ct-swb[aria-pressed="true"][data-pressed]{box-shadow:inset 0 0 0 999px var(--press),inset 0 0 0 1px color-mix(in srgb,var(--orange) 55%,transparent)}
.cardbox .ct-swb[aria-pressed="true"] .ct-swi{opacity:1}
.cardbox .ct-any,.cardbox .ct-more{display:inline-grid;place-items:center;flex:0 0 auto;min-height:22px;padding:0!important;font-family:var(--cond)!important;font-size:var(--t10)!important;line-height:1;white-space:nowrap}
.cardbox .ct-pl{display:inline-flex;align-items:center;gap:3px;height:20px;padding:0 6px;box-sizing:border-box;border:1px solid var(--stroke);border-radius:10px}
@media (hover:hover){.cardbox .ct-any:hover .ct-pl,.cardbox .ct-more:hover .ct-pl{color:var(--ink);background:var(--lift)}}
/* pressed, a pill button ("+N", "or N", "any N", ‹ ›) wears the press shade on its round pill, not on the button's square box around
   it — 32 px on a phone, where it showed as a grey rectangle (Oleg, 2026-11-07: "animation of standard android touch rectangle") */
.cardbox :is(.ct-any,.ct-more,.ct-amtb)[data-pressed]{box-shadow:none}
.cardbox .ct-pl{transition:box-shadow .25s var(--ease-out)}
.cardbox [data-pressed]>.ct-pl{box-shadow:inset 0 0 0 999px var(--press);transition-duration:.09s;transition-timing-function:ease-out}
.cardbox .ct-any[aria-expanded="true"] .ct-pl,.cardbox .ct-more[aria-expanded="true"] .ct-pl{color:var(--ink);background:var(--lift);border-color:var(--mid)}
.cardbox .ct-anyst{display:inline-flex}
.cardbox .ct-anyi{width:12px;height:12px;object-fit:contain;image-rendering:pixelated}
.cardbox .ct-anyi+.ct-anyi{margin-left:-4px}
.cardbox .ct-fold{display:grid;place-items:center;flex:0 0 auto;width:22px;height:22px;padding:0;border-radius:4px;margin-right:-4px}
@media (hover:hover){.cardbox .ct-fold:hover{background:var(--lift);color:var(--ink)}}
.cardbox .ct-fold i{width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-1px) rotate(45deg);transition:transform var(--d-fast) var(--ease)}
.cardbox .ct-fold[aria-expanded="false"] i{transform:rotate(-45deg)}
.cardbox .ct-li[data-folded]>.ct-row .ct-nm::after{content:" …";color:var(--muted)}
/* a weapon's ammo (Ranger, Oleg 2026-10-23: option C + D): the chips over the tree choose whose tree and GET list are shown (the ALT
   row's chips, without its line); the ammo trees / lists lie in one grid cell and the others are invisible, so a switch between ammo
   never changes the card's height — the weapon's own tree stands alone (guide.js "ammo"); its ammo tags are buttons while the card
   is open — the press shade under the mouse (below, after the ‹ › rules) */
.cardbox .ct-subj{border-top:0;padding-top:0;margin:0 0 10px}
.cardbox .ct-stack{display:grid}
.cardbox .ct-stack>.ct-one{grid-area:1/1;min-width:0}
.cardbox .ct-stack>.ct-one[data-off]{visibility:hidden}
.cardbox .tag[data-ct-ammo]{cursor:pointer}
.cardbox .mx-slots>i[data-ct-ammo]{cursor:pointer}   /* (AMMO MIX's slots of an ammo the card has a tag for open its tree too: guide.js buildCraft — look A, 2026-11-05) */
/* how many of an ammo: "‹ 600 · 7 × 150 · 3,000 ›" on its tree's root row (Oleg, 2026-10-23: B, then A — the buttons jump to the amount
   before / after and say it); the buttons wear the "+N" pill */
.cardbox .ct-amt{display:inline-flex;align-items:center;gap:4px}
.cardbox .ct-amtb{display:inline-grid;place-items:center;flex:0 0 auto;min-height:22px;padding:0!important;font-family:var(--cond)!important;font-size:var(--t11)!important;line-height:1}
.cardbox .ct-amtb .ct-pl{justify-content:center;min-width:calc(7.6ch + 12px);padding:0 6px}
/* … and every part of that row keeps one width whatever the amount — the pills ("‹ 5,100", "9,999 ›"), the middle ("999 × 10"),
   the number before the name ("9,999") — so a press never moves the buttons or wraps the row (Oleg, 2026-10-23: "i dont like the
   changing position of a button … whenever i hit more ammos"); a bought ammo's buttons stand on the name's line and its source,
   whose coins grow, on the line under it (as on a phone) */
.cardbox .ct-amt .ct-mk{display:inline-block;min-width:8.6ch;text-align:center}
.cardbox .ct-amtroot .ct-q{min-width:5ch;text-align:right}   /* (its ingredients' numbers too: on a phone "1,015 Wooden Arrow" wrapped) */
.cardbox .ct-amtroot.ct-leaf>.ct-row>.ct-amt{margin-left:auto}
.cardbox .ct-amtroot.ct-leaf>.ct-row>.ct-end{flex-basis:100%;justify-content:flex-start;min-height:0;margin:0 0 3px calc(var(--ct-s) + 5px)}   /* (top: −3 px put the source line 1 px into the 22 px buttons — Oleg, 2026-10-31; craft_check.js "overlaps") */
@media (hover:hover){.cardbox .ct-amtb:hover:not(:disabled) .ct-pl{color:var(--ink);background:var(--lift)}}
.cardbox .ct-amtb:disabled{cursor:default;color:var(--muted)}
@container cttree (max-width:380px){.cardbox .ct-amtb{min-height:32px;min-width:32px}}
/* the mouse on an ammo tag, an AMMO MIX slot or a Best with chip: the press shade, as a tap on a phone shows (Oleg, 2026-11-07: "make it
   unified … without highlithing because it is too heavy for eyes" — until then the 1 px class-colour edge; touch_check.py) */
@media (hover:hover) and (pointer:fine){.cardbox :is(.tag,.mx-slots>i)[data-ct-ammo]:hover,.bestwith:hover{box-shadow:inset 0 0 0 999px var(--press)}}

/* the fold-outs under a row: other sources, the kinds of a recipe group */
.cardbox .ct-x{display:flex;flex-wrap:wrap;align-items:center;gap:3px 12px;margin:1px 0 5px calc(var(--ct-s) + 6px);padding:4px 8px;border-radius:6px;background:color-mix(in srgb,var(--lift) 70%,transparent)}
.cardbox .ct-x[hidden]{display:none}
.cardbox .ct-x .ct-src{padding:0;background:none;color:var(--pale)}
.cardbox .ct-x .ct-sn{color:var(--ink)}
.cardbox .ct-kind{display:inline-flex;align-items:center;gap:4px;font-size:var(--t11);line-height:20px;color:var(--ink);white-space:nowrap}
.cardbox .ct-xm{font-family:var(--cond);font-size:var(--t10);color:var(--pale)}

/* ---------- narrow card (phone): tighter steps, 32 px touch targets, source under the name ---------- */
@container cttree (max-width:380px){
  .cardbox .ct-tree{--ct-s:20px;--ct-step:16px;--ct-x:10px;--ct-b:32px}
  .cardbox .ct-li{--ct-h:28px}
  .cardbox .ct-li:has(>.ct-row>.ct-main button),.cardbox .ct-craft:has(>.ct-row>.ct-end button){--ct-h:32px}
  .cardbox .ct-main{gap:5px}
  .cardbox .ct-swb{height:32px}
  .cardbox .ct-any,.cardbox .ct-more{min-height:32px;min-width:32px}
  .cardbox .ct-pl{height:24px;padding:0 8px;border-radius:12px}
  .cardbox .ct-fold{width:32px;height:32px;margin-right:-8px}
  .cardbox .ct-named>.ct-row>.ct-end{flex-basis:100%;justify-content:flex-start;min-height:0;margin:-5px 0 3px calc(var(--ct-s) + 5px)}
  .cardbox .ct-named.ct-root>.ct-row>.ct-end,.cardbox .ct-named:has(>.ct-row>.ct-main button)>.ct-row>.ct-end{margin-top:0}
  .cardbox .ct-sn{max-width:none}
  .cardbox .ct-amtroot>.ct-row>.ct-end{column-gap:4px}   /* (the ammo row "‹ 560 · 15 × 70 · 3,010 › ⚒ or 4 ⌄" is 302 px with 6 px gaps: kept clear of the tree's │, its fold fell to a line of its own at 360 px; 296 px fits — 2026-11-07) */
}
/* GET: the totals, grouped by where you go; a tick per line (kept per item) */
.cg-wrap{display:flex;flex-direction:column;min-width:0}
.cg-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 1px;font-family:var(--cond);font-size:var(--t10);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cg-h:first-child{margin-top:0}
.cg-h-hot{color:var(--orange)}
.cg-h-part{margin-top:10px;padding-top:6px;border-top:1px dashed var(--stroke);color:var(--ink)}
.cg-hn{text-transform:none;letter-spacing:0;font-family:inherit;font-size:var(--t11);color:var(--muted)}
.cg-ln{display:grid;grid-template-columns:24px 22px minmax(0,1fr) auto auto;align-items:center;column-gap:7px;min-height:28px;padding:1px 0}
.cg-ln+.cg-ln{border-top:1px solid color-mix(in srgb,var(--stroke) 45%,transparent)}
.cg-tk{position:relative;width:24px;height:24px;margin:0;padding:0;background:none;border:0;border-radius:4px;cursor:pointer;color:inherit}
.cg-tk::before{content:'';position:absolute;left:50%;top:50%;width:13px;height:13px;margin:-7px 0 0 -7px;border:1px solid var(--mid);border-radius:3px;background:var(--card);box-sizing:border-box}
.cg-tk[aria-pressed="true"]::before{background:var(--orange);border-color:var(--orange)}
.cg-tk[aria-pressed="true"]::after{content:'';position:absolute;left:50%;top:50%;width:3px;height:6px;margin:-5px 0 0 -2px;border-right:1.5px solid var(--on-orange);border-bottom:1.5px solid var(--on-orange);transform:rotate(45deg)}
.cg-ii{width:22px;height:22px;object-fit:contain;image-rendering:pixelated}
.cg-nm{display:flex;flex-direction:column;min-width:0}
.cg-n{font-size:var(--t12);line-height:1.3;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cg-w{display:flex;align-items:center;gap:4px;min-width:0;font-size:var(--t11);line-height:1.3;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cg-wi{width:16px;height:16px;object-fit:contain;image-rendering:pixelated;flex:0 0 auto}
.cg-q{font-family:var(--cond);font-size:var(--t11);color:var(--ink);text-align:right;white-space:nowrap}
.cg-p{font-family:var(--cond);font-size:var(--t11);color:var(--pale);text-align:right;white-space:nowrap;min-width:0}
.cg-p.cg-rare{color:var(--orange);font-weight:500}
.cg-done .cg-n{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--muted)}
.cg-done .cg-ii{opacity:.5}
.cg-clear{align-self:flex-end;margin:6px 0 0;padding:2px 8px;background:none;border:1px solid var(--stroke);border-radius:10px;font:inherit;font-family:var(--sans);font-weight:500;font-size:var(--t11);color:var(--pale);cursor:pointer}
.cg-clear:not(:disabled):hover{color:var(--ink);background:var(--lift)}
.cg-clear:disabled{color:var(--muted);border-color:color-mix(in srgb,var(--stroke) 55%,transparent);cursor:default}   /* nothing ticked yet: there, but off — it used to come with the first tick and the card grew under the finger (2026-10-20) */
@media (pointer:coarse){.cg-ln{grid-template-columns:32px 22px minmax(0,1fr) auto auto;min-height:34px}.cg-tk{width:32px;height:32px}.cg-clear{min-height:32px;padding:0 12px}}
/* the focus ring stays inside a control that sits in a frame or between lines, 1 px short of them: 2 px out, it was drawn over a picture
   switch's frame (.ct-sw) and, on a touch screen, over the lines between a GET list's lines (2026-10-21) */
.cardbox :is(.ct-swb,.cg-tk):focus-visible{outline-offset:-1px}

/* ---------- motion (2026-10-12, Oleg: "review the click animations … fast and smooth, simple, best design practices" → "preserve
   speed more", no stage-switch animation). Opening shows its content with the same short fade + 4 px drop as an opened card
   (mg-open, .16 s); closing is instant; only opacity / transform animate, once, on what just opened — guide.js sets data-opening
   for ~200 ms, so nothing replays when a stage is shown again or the page starts with Boss info open. The press flash stays
   instant (a transform + filter transition was what cost Safari its frame rate, 2026-10-10). */
.boss[data-opening] .boss-summon,.boss[data-opening] .boss-stats{animation:mg-open var(--d-open) var(--ease) both}
.cardbox[data-opening="notes"] .cnotes-body,.cardbox[data-opening="stack"] .cstack-body,.cardbox[data-opening="tree"] [data-craft-body="tree"],.cardbox[data-opening="get"] [data-craft-body="get"]{animation:mg-fade var(--d-open) var(--ease) both}
.cardbox .ct-x:not([hidden]){animation:mg-open var(--d-open) var(--ease) both}   /* the "+N / or N" ways: built hidden, shown by a press */
.cardbox .ct-x[data-kept]{animation:none}   /* one kept open over a redraw (a tick, a choice, ‹ ›: guide.js keepPress) is simply there — moving in again at every tick would flicker */
/* a closed card settles back into its place from the dimmed copy's look (scale .97, the press brightness) — the eye follows it home */
@keyframes mg-back{from{box-shadow:inset 0 0 0 999px var(--press)}}
[data-back]{animation:mg-back .25s var(--ease-out)}   /* (a closed card's shade fades like a release) */
/* a tick in GET: the box pops in */
@keyframes mg-pop{from{transform:scale(.55)}}
.cg-tk[data-pop]::before{animation:mg-pop var(--d-fast) var(--ease)}
/* ---------- the stage's background (look "B + D2" of archive/previews/stage-bg-2-2026-11-05 — Oleg, 2026-11-05: "implement B + D2" and
   "a button to switch the animation off (so it will stop all the bg animation and like a picture …)"). ONE fixed layer behind the stage
   page (guide-shell.html .bgfx): from the rail's right edge to the screen's right edge, from the screen's top (behind the top bar, which is
   see-through over it at a stage's top — below) to a phone's stage strip — the rail and the cards are opaque, so it shows only between them. The pictures are drawn once (source/backdrop.mjs →
   img/backdrop/); only transform and opacity move, each on a layer of its own: the GPU slides them, nothing is painted again
   (design.md "Scroll performance"). Shown on a stage page (html[data-biome], guide.js) in the dark theme, never without script;
   paused while a card is open and by the button beside the theme (html[data-still]: it stays as a picture); still with "reduce
   motion" (the rule at the end). Its colours: source/backdrop.mjs — each from a luminance against --bg, the brightest where the grey
   labels (--muted) still read 4.5 : 1 */
.bgfx{display:none;position:fixed;z-index:-1;right:0;bottom:0;height:100vh;left:calc(max(0px,(100% - var(--col)) / 2) + var(--rail));overflow:hidden;pointer-events:none;contain:strict}   /* (anchored at its bottom, as tall as the LARGEST screen — vh: a phone keeps it while its toolbars move — so it never resizes: it moves with the screen's bottom like the strip; its top at the screen's top, behind the see-through top bar (since 2026-11-07: the sky above the bar too; it stopped under the bar before). Stretched by top:48px + bottom it took the visible height, which a phone changes in one step, and the land jumped — Oleg, 2026-11-06: "the bottom of the background hard switches") */
@media (max-width:599px){.bgfx{left:0;bottom:calc(var(--strip) + env(safe-area-inset-bottom,0px));height:calc(100vh - var(--strip) - env(safe-area-inset-bottom,0px))}}
html[data-js][data-biome]:not([data-theme="light"]) .bgfx{display:block}
/* the top bar over it (Oleg, 2026-11-07: "make the backgrounds higher sky so it covers header … header becomes like transparent" → picked
   "Solid again, smoothly" and "Keep the solid keys"): see-through at a stage's top — the sky, its stars and the moon behind its keys —
   and solid again, fading in, once the page scrolls under it (guide.js data-scrolled), so nothing of the page shows through it */
html[data-js][data-biome]:not([data-theme="light"]):not([data-scrolled]) .topnav{background-color:transparent;border-bottom-color:transparent}
.bgfx>div{position:absolute;inset:0}
html[data-sky="0"] .bgfx-sky{display:none}   /* (underground — Queen Bee, Wall of Flesh, Plantera, Golem — and the Solar Eclipse: no stars) */
.bgfx i{position:absolute;display:block;will-change:transform}
html:is([data-modal],[data-still]) .bgfx *{animation-play-state:paused}   /* (a card open: nothing moves behind it; the button: a picture) */
/* the night sky: two star fields drifting left with the land, slower than its farthest mountains (the stars are farther still), each
   one tile per loop (no seam); a phone shows one */
.bgfx-sky .far{inset:0 -320px 0 0;background:url(img/backdrop/stars-far.svg?v=31e39683);animation:bg-sf 900s linear infinite}
.bgfx-sky .near{inset:0 -560px 0 0;background:url(img/backdrop/stars-near.svg?v=06f23896);animation:bg-sn 1000s linear infinite}
@keyframes bg-sf{to{transform:translate3d(-320px,0,0)}}
@keyframes bg-sn{to{transform:translate3d(-560px,0,0)}}
@media (max-width:599px){.bgfx-sky .far{display:none}}
/* a dozen of the game's four-point stars, each twinkling on its own pace */
.bgfx-sky .tw{width:9px;height:9px;background:url(img/backdrop/twinkle.svg?v=4050f768);opacity:.06;will-change:opacity;animation:bg-tw 6s ease-in-out infinite alternate}
@keyframes bg-tw{0%,40%{opacity:.06}100%{opacity:.7}}
.bgfx-sky .tw:nth-of-type(3){left:26.0%;top:66.9%;animation-duration:6.6s;animation-delay:-8.3s}
.bgfx-sky .tw:nth-of-type(4){left:8.5%;top:62.9%;animation-duration:5.3s;animation-delay:-0.5s}
.bgfx-sky .tw:nth-of-type(5){left:10.3%;top:71.9%;animation-duration:8.4s;animation-delay:-4.8s}
.bgfx-sky .tw:nth-of-type(6){left:45.6%;top:41.3%;animation-duration:6.5s;animation-delay:-7.0s}
.bgfx-sky .tw:nth-of-type(7){left:75.7%;top:32.3%;animation-duration:5.9s;animation-delay:-7.7s}
.bgfx-sky .tw:nth-of-type(8){left:37.3%;top:36.7%;animation-duration:4.0s;animation-delay:-6.7s}
.bgfx-sky .tw:nth-of-type(9){left:80.7%;top:28.1%;animation-duration:4.4s;animation-delay:-8.8s}
.bgfx-sky .tw:nth-of-type(10){left:15.2%;top:34.8%;animation-duration:5.8s;animation-delay:-1.0s}
.bgfx-sky .tw:nth-of-type(11){left:14.5%;top:46.5%;animation-duration:7.4s;animation-delay:-0.8s}
.bgfx-sky .tw:nth-of-type(12){left:59.7%;top:67.8%;animation-duration:4.8s;animation-delay:-5.3s}
.bgfx-sky .tw:nth-of-type(13){left:36.5%;top:24.9%;animation-duration:6.1s;animation-delay:-6.4s}
.bgfx-sky .tw:nth-of-type(14){left:32.5%;top:14.1%;animation-duration:7.9s;animation-delay:-5.6s}
/* a Fallen Star now and then — about every 17 s at random, now and then a second or (rarely) a third while one still falls, never near
   one in the air (guide.js "the Fallen Stars", source/sky-math.js; until 2026-11-07 each of two every 64 s, half a minute apart; three
   .fall now) — it lights up, its trail grows from the spot where it lit
   (never longer than the way it has come), it falls, then dims and draws its trail in (behind the cards). Before each fall guide.js
   picks its path at random inside the background's box — all of it on screen, from high up, its end over the land (the far mountains)
   — and writes it as the box of `.fall`: the star moves by its own box, top right to bottom left (translate −100 %, 100 %), so no
   keyframe holds a number that changes. Its head and trail only fade and scale; the trail's angle is the `rotate` property, beside the
   animated transform. (Until 2026-11-05 a whole streak popped in at once, in two fixed places — Oleg: "work better on fallen star (like
   it smoothly appear and dissappear", then "make it random location but at least all path is on screen … make sure it lands over like
   now over the horizon, also i want to see it starts falling from higher") */
.bgfx-sky .fall{left:40%;top:15%;width:320px;height:380px;--ang:-50deg;--tl:160px}
.bgfx-sky .fall i{opacity:0}
/* one fall a start (guide.js "the Fallen Stars" sets data-fall when MG.sky says: about every 17 s, now and then one while another falls —
   2026-11-07; until then each of two stars looped every 64 s, the fall its last 7 %: these are those 4.5 s as the whole run). Longhands:
   the shorthand would set them playing again over the pause rule above (same weight, later) */
.bgfx-sky .fall[data-fall],.bgfx-sky .fall[data-fall] i{animation-duration:4.5s;animation-timing-function:linear;animation-iteration-count:1}
.bgfx-sky .fall[data-fall]{animation-name:bg-fall}
.bgfx-sky .fall .trail{left:100%;top:-1px;width:var(--tl);height:2px;transform-origin:0 50%;rotate:var(--ang);background:linear-gradient(to right,#fff3cc,rgba(255,231,160,.4) 30%,rgba(255,231,160,0))}
.bgfx-sky .fall[data-fall] .trail{animation-name:bg-fall-trail}
.bgfx-sky .fall .head{left:calc(100% - 7px);top:-7px;width:14px;height:14px;background:url(img/backdrop/fallen.svg?v=ef52c67d)}
.bgfx-sky .fall[data-fall] .head{animation-name:bg-fall-head}
@keyframes bg-fall{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(-100%,100%,0)}}
@keyframes bg-fall-head{0%{opacity:0;transform:scale(.3)}4.29%{opacity:.6;transform:scale(.8)}10%{opacity:.9;transform:scale(1)}15.71%{opacity:1}77.14%{opacity:1;transform:scale(1)}88.57%{opacity:.55;transform:scale(.8)}100%{opacity:0;transform:scale(.5)}}
@keyframes bg-fall-trail{0%{opacity:0;transform:scaleX(0)}11.43%{opacity:.85}33.29%{transform:scaleX(1)}77.14%{opacity:.85;transform:scaleX(1)}100%{opacity:0;transform:scaleX(.3)}}   /* (full a third of the way down: the trail is a third of the path — guide.js) */
/* the horizon: far mountains, hills, the near line — each slower the farther it is (the tile is 1280 px); a glow behind them */
.bgfx-land .glow{left:0;right:0;bottom:0;height:460px;will-change:auto;background:linear-gradient(to top,var(--glow) 0,var(--glow) 38%,transparent)}
.bgfx-land :is(.far,.mid,.near){left:0;right:-1280px;bottom:0;background-repeat:repeat-x;background-position:left bottom}
.bgfx-land .far{height:300px;animation:bg-h 900s linear infinite}
.bgfx-land .mid{height:220px;animation:bg-h 520s linear infinite}
.bgfx-land .near{height:170px;animation:bg-h 300s linear infinite}
@keyframes bg-h{to{transform:translate3d(-1280px,0,0)}}
@media (max-width:1000px){.bgfx-land :is(.far,.mid,.near){background-position:-560px bottom}}   /* (all three alike, so the land keeps its look: the ocean's ship — x 792–900 of the tile — shows whole where a stage opens on a screen under 960 px of background too) */
/* each place (render.js PLACE): its glow and its three pictures; a stage's own glow after them (source/backdrop.mjs prints the colours) */
html[data-biome="forest"]{--glow:#181b23}
html[data-biome="snow"]{--glow:#181b21}
html[data-biome="jungle"]{--glow:#161d19}
html[data-biome="dungeon"]{--glow:#191a27}
html[data-biome="underworld"]{--glow:#261815}
html[data-biome="ocean"]{--glow:#141c26}
html[data-biome="hallow"]{--glow:#201922}
html[data-biome="corruption"]{--glow:#1d1927}
html[data-biome="crimson"]{--glow:#291619}
html[data-glow="orange"]{--glow:#211a13}
html[data-glow="pumpkin"]{--glow:#241912}
html[data-glow="violet"]{--glow:#1c1927}
html[data-glow="teal"]{--glow:#131d1d}
html[data-biome="forest"] .bgfx-land .far{background-image:url(img/backdrop/forest-far.svg?v=9b8494bf)}html[data-biome="forest"] .bgfx-land .mid{background-image:url(img/backdrop/forest-mid.svg?v=bfc6f1dd)}html[data-biome="forest"] .bgfx-land .near{background-image:url(img/backdrop/forest-near.svg?v=bbd36109)}
html[data-biome="snow"] .bgfx-land .far{background-image:url(img/backdrop/snow-far.svg?v=937197cd)}html[data-biome="snow"] .bgfx-land .mid{background-image:url(img/backdrop/snow-mid.svg?v=db9fdf1b)}html[data-biome="snow"] .bgfx-land .near{background-image:url(img/backdrop/snow-near.svg?v=b11fda32)}
html[data-biome="jungle"] .bgfx-land .far{background-image:url(img/backdrop/jungle-far.svg?v=b57eac3a)}html[data-biome="jungle"] .bgfx-land .mid{background-image:url(img/backdrop/jungle-mid.svg?v=2152e9f5)}html[data-biome="jungle"] .bgfx-land .near{background-image:url(img/backdrop/jungle-near.svg?v=805eb82e)}
html[data-biome="dungeon"] .bgfx-land .far{background-image:url(img/backdrop/dungeon-far.svg?v=0b28affb)}html[data-biome="dungeon"] .bgfx-land .mid{background-image:url(img/backdrop/dungeon-mid.svg?v=71083a7c)}html[data-biome="dungeon"] .bgfx-land .near{background-image:url(img/backdrop/dungeon-near.svg?v=b0dc2b3c)}
html[data-biome="underworld"] .bgfx-land .far{background-image:url(img/backdrop/underworld-far.svg?v=84894e76)}html[data-biome="underworld"] .bgfx-land .mid{background-image:url(img/backdrop/underworld-mid.svg?v=9e1570fd)}html[data-biome="underworld"] .bgfx-land .near{background-image:url(img/backdrop/underworld-near.svg?v=c125b0de)}
html[data-biome="ocean"] .bgfx-land .far{background-image:url(img/backdrop/ocean-far.svg?v=d21d3f1e)}html[data-biome="ocean"] .bgfx-land .mid{background-image:url(img/backdrop/ocean-mid.svg?v=f0559829)}html[data-biome="ocean"] .bgfx-land .near{background-image:url(img/backdrop/ocean-near.svg?v=14c53fd8)}
html[data-biome="hallow"] .bgfx-land .far{background-image:url(img/backdrop/hallow-far.svg?v=0a2a8cc7)}html[data-biome="hallow"] .bgfx-land .mid{background-image:url(img/backdrop/hallow-mid.svg?v=604a9a3d)}html[data-biome="hallow"] .bgfx-land .near{background-image:url(img/backdrop/hallow-near.svg?v=1db73fca)}
html[data-biome="corruption"] .bgfx-land .far{background-image:url(img/backdrop/corruption-far.svg?v=445b97c5)}html[data-biome="corruption"] .bgfx-land .mid{background-image:url(img/backdrop/corruption-mid.svg?v=b9f4a105)}html[data-biome="corruption"] .bgfx-land .near{background-image:url(img/backdrop/corruption-near.svg?v=2a18e3be)}
html[data-biome="crimson"] .bgfx-land .far{background-image:url(img/backdrop/crimson-far.svg?v=f29c73c0)}html[data-biome="crimson"] .bgfx-land .mid{background-image:url(img/backdrop/crimson-mid.svg?v=649cda70)}html[data-biome="crimson"] .bgfx-land .near{background-image:url(img/backdrop/crimson-near.svg?v=b6aa281b)}
/* the button beside the theme: pause / play the background (guide.js; the theme button's box). Nothing to pause in the light theme */
/* ---------- the moon (look A of archive/previews/topbar-2-2026-11-07 — Oleg, 2026-11-07: "implement A, the moon crossing, in day theme do
   nothing … work better on moons path and overall quality and integration", then "join together the background and the header and so the
   moon can be seen on the background … make the backgrounds higher sky so it covers header, and integrate the moon into bg directly and so
   header becomes like transparent"): the sky's own, behind the see-through top bar, from 1100 px. The game's moon (img/backdrop/moon.png,
   Moon_0 of the extraction: eight phases of 50 px, drawn at that size — each art pixel 2 × 2 px: sharp. It was drawn 25 px; Oleg,
   2026-11-07: "make the moon bigger, it is too small", and 50 is the one bigger size that stays sharp), the Pumpkin and Frost Moons on their stages (render.js PLACE → data-moon). Its path: the arm turns about a point --moon-r
   under midnight's place (guide.js "the moon": the arc over the bar's free middle, between the class link and the buttons), so the moon
   rises from under the bar at the left, stands 4 px under the screen's top at midnight (its foot 4 px above the stage's band), sets under the bar at the right — behind the stage
   below it — at an even pace, 8 minutes, and stays down 2; it turns back as much as the arm, so it stays upright and pixel-true. Its place
   by the clock (--moon-t): the same on every page and guide. Paused with the rest of the background; at midnight with "reduce motion". */
.bgfx-sky .skymoon-arm{display:none;left:var(--moon-x,50%);top:calc(29px + var(--moon-r,2200px));width:0;height:0;animation:sky-arc 600s linear infinite var(--moon-t,0s);transition:opacity .25s ease}
@media (min-width:1100px){.bgfx-sky .skymoon-arm{display:block}}
html[data-scrolled] .bgfx-sky .skymoon-arm{opacity:0}   /* scrolled, it goes as the bar turns solid and comes back at the top: drawn 50 px it is taller than the bar, and its foot showed under the solid bar at midnight, low in its night it stood among the stage's headings */
.bgfx-sky .skymoon{left:-25px;top:calc(-25px - var(--moon-r,2200px));width:50px;height:50px;background:url(img/backdrop/moon.png?v=fb08f413) 0 var(--moon-y,0px) / 50px 400px no-repeat;image-rendering:pixelated;animation:sky-upright 600s linear infinite var(--moon-t,0s)}
html[data-moon="pumpkin"] .bgfx-sky .skymoon{background-image:url(img/backdrop/moon-pumpkin.png?v=a4c65f33)}
html[data-moon="frost"] .bgfx-sky .skymoon{background-image:url(img/backdrop/moon-frost.png?v=518a0d6b)}
@keyframes sky-arc{0%{transform:rotate(calc(-1 * var(--moon-a,11deg)))}80%,100%{transform:rotate(var(--moon-a,11deg))}}
@keyframes sky-upright{0%{transform:rotate(var(--moon-a,11deg));opacity:0}4%,76%{opacity:1}80%,100%{transform:rotate(calc(-1 * var(--moon-a,11deg)));opacity:0}}   /* (it fades in as it rises and out as it sets, and is not there while down: its set place, under the see-through bar, showed its top third standing still for 2 minutes — Oleg, 2026-11-07: "after some time the moon just stopped, make it so it hides and then again rises and hides") */
.motionbtn .play,html[data-still] .motionbtn .pause{display:none}
html[data-still] .motionbtn .play{display:block}
:is(html:not([data-js]),[data-theme="light"]) .motionbtn{display:none}
/* (a phone under 360 px: the button took 40 px from the stage name in the top bar — "SKELETRON" no longer fitted its 52 px; a few pixels of
   gap and padding give the name 67 px back, the buttons keep their size and their touch area) */
@media (max-width:359px){.topnav{gap:6px;padding:0 10px}.nav-actions{gap:4px}.jump-btn{padding:0 6px}}

/* ---------- the Fishing page (2026-11-08; source/fishing.js, docs/notes/fishing.md) ----------
   Oleg picked "B · Gear, step by step" (archive/previews/fishing-2026-11-08/). The track is ONE list of cells in step order — a step's
   head, then its rows — so phones and tablets read it step by step; from a 820 px stage the same cells stand as a table: steps across,
   rows down, placed by their data-ftc / data-ftr (no wrapper per step: the cells are the guide's own cards, opened in the dialog). The bars'
   widths are inline styles — data, as the endgame bars' (CLAUDE.md "Code"). */
.fish{gap:18px}
.fish-head{display:grid;gap:4px}
.fish-sec{display:grid;gap:10px;min-width:0}
.fish-st{display:flex;align-items:baseline;gap:10px;margin:0;padding-bottom:6px;border-bottom:1px solid var(--stroke);font-family:var(--cond);font-size:var(--t13);font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--ink)}
.fish-st small{font-size:var(--t11);font-weight:400;letter-spacing:.06em;color:var(--muted)}
/* the track — phones and tablets: one step after another */
#fishing .fish-track{display:grid;grid-template-columns:minmax(0,1fr);gap:0;align-items:stretch;border:1px solid var(--stroke);border-radius:10px;background:color-mix(in srgb,var(--card) 55%,transparent);overflow:hidden}
.ft-corner,.ft-lab,.ft-cell.ft-empty{display:none}   /* (.ft-cell: its display:grid, written later, showed an empty row as a 14 px gap on phones) */
.ft-step{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;margin:0;padding:10px 12px 12px;border:0;border-top:1px solid var(--stroke);background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.ft-step[data-ftc="1"]{border-top:0}
.ft-no{font-family:var(--cond);font-size:var(--t11);letter-spacing:.08em;color:var(--muted)}
.ft-step[data-here] .ft-no{color:var(--pale)}   /* (on the marked step's tint --muted was 4.4 : 1 — the full run of 2026-11-09) */
.ft-name{display:flex;align-items:center;gap:8px;min-height:32px;font-family:var(--cond);font-size:17px;font-weight:700;line-height:1.1;color:var(--ink)}
.ft-pics{display:inline-flex;align-items:center;flex:0 0 auto}
.ft-pics img{display:block;width:auto;max-height:30px;image-rendering:pixelated}   /* (its height: the picture's own, written on it by the build — so its box is there before the picture is; its width follows) */
.ft-pics img:not([height]){height:auto}
.ft-pics-n img+img{margin-left:-6px}   /* (Eater of Worlds and Brain of Cthulhu: one boss or the other — the second overlaps the first) */
.ft-fp{display:flex;align-items:baseline;gap:5px;margin-top:auto;padding-top:4px;font-family:var(--cond);font-size:var(--t11);letter-spacing:.06em;text-transform:uppercase;color:var(--pale)}
.ft-fp b{font-size:22px;font-weight:700;letter-spacing:0;color:var(--ink)}
.ft-bar{display:block;align-self:stretch;height:3px;border-radius:2px;background:var(--lift);overflow:hidden}
.ft-bar i{display:block;height:100%;background:var(--mid)}
.ft-flag{position:absolute;top:8px;right:8px;display:none;align-items:center;gap:4px;padding:1px 6px 1px 5px;border:1px solid var(--orange);border-radius:5px;font-family:var(--cond);font-size:var(--t10);letter-spacing:.06em;text-transform:uppercase;color:var(--orange)}
.ft-step[data-here]{background:color-mix(in srgb,var(--orange) 7%,transparent)}
.ft-step[data-here]::before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:var(--orange)}
.ft-step[data-here] .ft-flag{display:inline-flex}
.ft-step[data-here] .ft-bar i{background:var(--orange)}
@media (hover:hover){.ft-step:not([data-here]):hover{background:color-mix(in srgb,var(--ink) 4%,transparent)}}
.ft-cell{display:grid;gap:5px;align-content:start;min-width:0;padding:4px 12px 10px}
.ft-rl{font-family:var(--cond);font-size:var(--t10);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.ft-cell[data-here]{background:color-mix(in srgb,var(--orange) 3%,transparent)}
/* the Angler's items for any quest (Oleg, round 2: "integrated in the end of the table maybe as a different small table"): the track's last row,
   on a faint band of its own, its tiles in their own grid — not under a step; on the table, as wide as the steps' tiles and in line with them */
.ft-any{display:grid;gap:5px;min-width:0;padding:8px 12px 12px;border-top:1px solid var(--stroke);background:color-mix(in srgb,var(--ink) 4%,transparent)}
.ft-anys{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:6px}
/* a tile's fishing power and line (render.js fishX): in the tile only — the opened card's rows say it */
.fish-x{display:flex;align-items:center;gap:6px;min-width:0}
.fish-sub{flex:1 1 auto;min-width:0;font-size:var(--t11);line-height:1.25;color:var(--muted)}
.fish-fp{flex:0 0 auto;margin-left:auto;padding:0 5px;border:1px solid var(--stroke);border-radius:5px;font-family:var(--cond);font-size:var(--t11);line-height:1.4;letter-spacing:.04em;color:var(--ink)}
.cardbox .fish-x{display:none}
/* in the track: the power beside the name, the line under it; no Mobility / class / Utility dot (every tile would carry the same one) */
#fishing .card .s-head{display:flex;flex-wrap:wrap;align-items:flex-start;gap:2px 6px}
#fishing .card .s-title{flex:1 1 0;min-width:0}
#fishing .card .fish-x{display:contents}
#fishing .card .fish-fp{order:1;margin-left:auto}
#fishing .card .fish-sub{order:2;flex:1 1 100%}
#fishing .card .s-title .dot{display:none}
html:not([data-nostats]) #fishing .card .fish-fp{display:none}   /* (full cards — no script, ?full: their rows say the power) */
#fishing .card .armor-info .fish-x{display:flex;flex:1 1 100%}
/* the track's armor tile (round 4 — Oleg: "work better on dimensions and size of Angler set item card, because now it overlaps with +N and
   the sprites, name, and a tag with Defense is all on the one side of the box"): no +N (render.js MG.fishTile: no alternatives); its pieces
   and its power on top, its name and its defense under them — each pair at the tile's two ends */
html[data-js][data-nostats]:not([data-nodialog]) #fishing .card .armor-body{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"p fp" "n def";align-items:center;gap:6px 8px}
html[data-js][data-nostats]:not([data-nodialog]) #fishing .card :is(.armor-info,.armor-top){display:contents}
html[data-js][data-nostats]:not([data-nodialog]) #fishing .card .armor-body .pieces{grid-area:p;align-self:center}
html[data-js][data-nostats]:not([data-nodialog]) #fishing .card .armor-body .fish-x{grid-area:fp;flex:none;align-self:start}
html[data-js][data-nostats]:not([data-nodialog]) #fishing .card .armor-body .name{grid-area:n;min-width:0}
html[data-js][data-nostats]:not([data-nodialog]) #fishing .card .armor-body .chips{grid-area:def;justify-self:end}
/* (round 10) a tile's alternatives (+N: the Fishing Bobber's seven) at its sprite's corner — at the tile's corner, as on the stages, it sat on the
   power chip of a one-line tile; round 11: on the table too, where the chip can now go under the name, into that corner (1100 px windows) */
html[data-js][data-nostats]:not([data-nodialog]) #fishing .sections .card .s-img{position:relative}
html[data-js][data-nostats]:not([data-nodialog]) #fishing .sections .card .more{right:-4px;bottom:-5px}
/* the track as a table: steps across, rows down — with compact tiles only (full cards, no script or ?full, keep the list: they need the
   width) and from a 952 px stage (narrower, a long word of a name ran out of its cell: name_break_scan, 920–1032 px windows; 940 until round 4,
   when Captain Armor's name beside its defense broke inside "Captain" at 1036–1044 px windows) */
@container stage (min-width:952px){
  html[data-nostats] #fishing .fish-track{--lab:96px;grid-template-columns:var(--lab) repeat(6,minmax(0,1fr))}
  /* (round 11, Oleg: "polish also for desktops and laptops") a name keeps its longest word beside the power chip, or the chip goes under it:
     with the title free to shrink to nothing, "Reinforced", "Nightcrawler", "Journeyman" … ran under their chips at 1100–1440 px windows */
  html[data-nostats] #fishing .fish-track .card .s-title{min-width:min-content}
  html[data-nostats] #fishing .fish-track[data-steps="5"]{grid-template-columns:var(--lab) repeat(5,minmax(0,1fr))}
  html[data-nostats] #fishing .fish-track[data-steps="7"]{grid-template-columns:var(--lab) repeat(7,minmax(0,1fr))}
  html[data-nostats] .ft-corner{display:block;padding:10px;grid-column:1;grid-row:1;font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--pale)}
  html[data-nostats] .ft-lab{display:block;grid-column:1;padding:10px;border-top:1px solid var(--stroke);font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--pale)}
  html[data-nostats] .ft-lab small{display:block;margin-top:2px;font-family:var(--sans);font-size:var(--t11);font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted)}
  html[data-nostats] .ft-alab{background:color-mix(in srgb,var(--ink) 4%,transparent)}
  /* (four across, two rows: a grid of its own, not the steps' columns — nothing in it belongs to a step) */
  html[data-nostats] .ft-any{grid-column:2 / -1;padding:8px;border-left:1px solid var(--stroke)}
  html[data-nostats] .ft-anys{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 8px}
  html[data-nostats] .ft-step,html[data-nostats] .ft-cell{border-top:0;border-left:1px solid var(--stroke)}
  html[data-nostats] .ft-cell,html[data-nostats] .ft-empty{display:grid;padding:8px;border-top:1px solid var(--stroke)}
  html[data-nostats] .ft-empty::after{content:'—';color:var(--muted);font-size:var(--t12);padding:4px 2px}   /* (--muted: --mid was 2.0–2.9 : 1, the full run of 2026-11-09 — as the board's empty cells, 2026-11-02) */
  html[data-nostats] .ft-rl{display:none}
  html[data-nostats] #fishing [data-ftc="1"]{grid-column:2}html[data-nostats] #fishing [data-ftc="2"]{grid-column:3}html[data-nostats] #fishing [data-ftc="3"]{grid-column:4}html[data-nostats] #fishing [data-ftc="4"]{grid-column:5}html[data-nostats] #fishing [data-ftc="5"]{grid-column:6}html[data-nostats] #fishing [data-ftc="6"]{grid-column:7}html[data-nostats] #fishing [data-ftc="7"]{grid-column:8}
  html[data-nostats] #fishing [data-ftr="0"]{grid-row:1}html[data-nostats] #fishing [data-ftr="1"]{grid-row:2}html[data-nostats] #fishing [data-ftr="2"]{grid-row:3}html[data-nostats] #fishing [data-ftr="3"]{grid-row:4}html[data-nostats] #fishing [data-ftr="4"]{grid-row:5}html[data-nostats] #fishing [data-ftr="5"]{grid-row:6}html[data-nostats] #fishing [data-ftr="6"]{grid-row:7}html[data-nostats] #fishing [data-ftr="7"]{grid-row:8}
}
/* ---------- the Building & mining page (2026-11-09; redesigned the same day — Oleg: "remove … Gear step by step section completely, and
   redesign the calculator so for: i chose all the setup i have, it shows what the ore i can and cannot mine, also the visual range of mining
   and … the speed of mining, because the pickaxe and drills are differ"; source/building.js, docs/notes/building.md): the Fishing calculator's
   strip and rows (.fc, .fk-*), then YOUR SETUP beside WHAT YOU CAN MINE and REACH, then PICKAXE OR DRILL */
.bm-strip{margin-top:14px}
.bm-strip .fc-o[data-over] .fc-m i{background:color-mix(in srgb,var(--orange) 62%,var(--card))}
.bm-strip .fc-os{color:var(--muted)}
/* Mining speed is the result on top (2026-11-11, Oleg: "remove the Mining speed from boxes and make it a stat like the main one like with
   Fishing Power in Fishing guide, and make it stick to the top"): its bar to +70% and its words at the left, the number at the right */
.bm-main{display:flex;align-items:center;gap:12px;min-width:0}
.bm-main .fc-m{flex:1 1 120px;max-width:420px;height:6px;border-radius:3px}
.bm-main .fc-os{color:var(--pale)}
.bm-res[data-over] .fc-m i{background:color-mix(in srgb,var(--orange) 62%,var(--card))}
.fc-strip.bm-strip{grid-template-columns:repeat(7,minmax(0,1fr))}
@container stage (max-width:1009.98px){.fc-strip.bm-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.bm-strip .fc-o[data-bo="grab"]{grid-column:span 2}}
/* the setup at the left; Pickaxe or drill, then What you can mine at the right; the Reach under the setup (2026-11-11, Oleg: "move the section
   Pickaxe or Drill from the last section, to make it before what you can mine"). The middle row is the one that gives (1fr): the setup and
   the list both span it, and a row of its own content would be stretched by them */
.bm-cols{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"setup" "speed" "ores" "reach";gap:22px}
@container stage (min-width:1100px){.bm-cols{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);grid-template-rows:auto 1fr auto;grid-template-areas:"setup speed" "setup ores" "reach ores";gap:22px 28px}}
.bm-setup{grid-area:setup}.bm-speed{grid-area:speed}.bm-ores{grid-area:ores}.bm-reach{grid-area:reach}
.bm-setup,.bm-ores,.bm-reach{display:grid;gap:0;align-content:start;min-width:0}
.bm .bm-sgrid{grid-template-columns:minmax(0,1fr)}
.bm .bm-side{padding-top:0}.bm .bm-key{flex-direction:row}
.bm-speed>.fold-c{padding-top:8px}
/* the tools: two groups of pickaxes and a row of drills, small buttons (a sprite and its power); a drill's edge dashed, as its line */
.bm-g{gap:5px}
.bm-g+.bm-g{margin-top:8px}
.bm .bm-gb{display:flex;flex-wrap:wrap}
/* the two groups of pickaxes one under the other, each the row's whole width — as a flex row of two wrapping groups WebKit laid them out
   again differently after a press (Before Hardmode 860 → 770 px, a second line: the page under it 132 px lower at 1100–1280 px windows) */
.bm .fk-row[data-bm-row="tool"] .fk-bs{display:grid;grid-template-columns:minmax(0,1fr)}
.bm .bm-g{min-width:0}
.fk-row:is([data-bm-row="tool"],[data-bm-row="drill"]) .fk-b{min-width:50px;min-height:58px;padding:6px 4px 4px}
.bm-drill{border-style:dashed}
.bm-drill[aria-pressed="true"]{border-style:solid}
.bm-pre{min-width:92px;justify-items:start;padding:8px 10px}
.bm-pre .fk-bc{font-family:var(--cond);font-size:var(--t13);font-weight:700;letter-spacing:.03em}
/* what you can mine: every tile in the order of the power it needs; "your pickaxe" between what it mines and what it does not */
.bm-oreh,.bm-ore{display:grid;grid-template-columns:42px minmax(0,1fr) 46px 58px 62px;align-items:center;gap:0 8px}
.bm-oreh{padding:8px 10px 4px;font-family:var(--cond);font-size:var(--t10);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.bm-oreh span{text-align:right}
.bm-ores{display:grid;gap:3px;margin:0;padding:0;list-style:none}
.bm-ore{min-height:36px;padding:5px 10px;border-radius:7px;font-size:var(--t13);color:var(--muted)}
.bm-ore[data-ok]{background:var(--fc-on);color:var(--ink)}
.bm-oi{display:inline-flex;align-items:center}
.bm-oi img{width:16px;height:16px;image-rendering:pixelated;opacity:.38}
.bm-oi img+img{margin-left:-4px}   /* (three tiles on one row — Ebonstone, Crimstone, Pearlstone — fit their 40 px: 16 + 12 + 12) */
.bm-ore[data-ok] .bm-oi img{opacity:1}
.bm-on{min-width:0;line-height:1.25;overflow-wrap:anywhere}
.bm-on small{display:block;font-size:var(--t11);color:var(--muted)}
.bm-op,.bm-oh,.bm-os{font-family:var(--cond);font-size:var(--t13);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.bm-op{color:var(--muted)}
.bm-ore[data-ok] .bm-op{color:var(--pale)}
.bm-os{font-size:15px;font-weight:600;color:var(--ink)}
.bm-line{display:flex;align-items:center;gap:8px;margin:5px 0;font-family:var(--cond);font-size:var(--t11);letter-spacing:.08em;text-transform:uppercase;color:var(--orange)}
.bm-line::before,.bm-line::after{content:'';flex:1 1 auto;height:1px;background:var(--orange)}
.bm-line::before{flex:0 0 10px}
.bm-line b{font-size:var(--t13);letter-spacing:.02em;color:var(--ink)}
.bm-rh{margin-top:18px}
/* the reach drawn in tiles */
.bk-legend{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-left:auto;font-size:var(--t11);color:var(--muted)}
.bk-lk{display:inline-block;width:10px;height:10px;margin-left:4px;border-radius:2px}
.bk-lb{background:color-mix(in srgb,var(--orange) 26%,transparent)}
.bk-lt{border:1px solid var(--orange)}
.bk-ld{border:1px dashed var(--pale)}
.bk-reach{min-width:0;padding-top:8px}
.bk-reach svg{display:block;width:100%;height:320px}   /* (a fixed height: the drawing's frame follows the reach, its box does not — on phones the chart under it moved 10–30 px a press) */
.bk-reach .rg{stroke:color-mix(in srgb,var(--stroke) 55%,transparent);stroke-width:1}
.bk-reach .rb{fill:color-mix(in srgb,var(--orange) 22%,transparent)}
.bk-reach .rt{fill:none;stroke:var(--orange);stroke-width:1.5}
.bk-reach .rd{fill:none;stroke:var(--pale);stroke-width:1.2;stroke-dasharray:4 3}
.bk-reach .rp{fill:var(--ink)}
/* pickaxe or drill: hits a second against mining speed — the setup's tool in the class colour, its pair in the text's grey, a drill dashed;
   where the setup stands a hairline and a dot; the words above, the table under */
.bm-speed{display:grid;gap:0;align-content:start;min-width:0}
.bm-side{display:grid;gap:10px;align-content:start;min-width:0}
.bm-key{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:var(--t12);color:var(--pale)}
.bm-k{display:inline-flex;align-items:center;gap:6px}
.bm-k i{display:inline-block;width:18px;border-top:2px solid var(--orange)}
.bm-k-pair i{border-top-color:var(--pale)}
.bm-k-drill i{border-top-style:dashed}
.bm-verdict{margin:0;max-width:72ch;font-size:var(--t13);line-height:1.55;color:var(--pale)}
.bm-verdict b{color:var(--ink);font-weight:600}
.bm-sgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start}
@container stage (min-width:1100px){.bm-sgrid{grid-template-columns:minmax(0,1fr) 280px;gap:28px}.bm-side{padding-top:16px}.bm-key{flex-direction:column}}
.bm-chart{position:relative;min-width:0;padding-top:16px;border-radius:8px;touch-action:pan-y}   /* (pan-y: a finger drawn along the chart reads it — guide.js calcChart; up and down still scrolls the page) */
.bm-chart:focus-visible{outline:1px solid var(--orange);outline-offset:4px}
.bm-ylab{position:absolute;left:0;top:0;font-family:var(--cond);font-size:var(--t11);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bc-svg{display:block;width:100%;height:auto;overflow:visible}
.bc-grid{stroke:color-mix(in srgb,var(--stroke) 70%,transparent);stroke-width:1}
.bc-tick{fill:var(--muted);font-family:var(--cond);font-size:11px;font-variant-numeric:tabular-nums}
.bc-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.bc-you{stroke:var(--orange)}
.bc-pair{stroke:var(--pale)}
.bc-drill{stroke-dasharray:6 4}
.bc-at{stroke:color-mix(in srgb,var(--orange) 45%,transparent);stroke-width:1}
.bc-dot{fill:var(--orange);stroke:var(--card);stroke-width:2}
.bc-hair{stroke:var(--mid);stroke-width:1;pointer-events:none}
.bm-tip{position:absolute;top:22px;z-index:2;display:grid;gap:3px;min-width:150px;padding:8px 10px;border:1px solid var(--stroke);border-radius:8px;background:var(--card);box-shadow:0 8px 24px rgba(0,0,0,.28);font-size:var(--t12);color:var(--pale);pointer-events:none}
.bm-tip[hidden]{display:none}
.bm-tip>b{font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bm-tr{display:flex;align-items:baseline;gap:6px;white-space:nowrap}
.bm-tr i{display:inline-block;align-self:center;width:14px;border-top:2px solid var(--orange)}
.bm-tr.bm-k-pair i{border-top-color:var(--pale)}
.bm-tr.bm-k-drill i{border-top-style:dashed}
.bm-tr strong{font-family:var(--cond);font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}
.bm-table summary{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid var(--stroke);border-radius:3px;font-family:var(--cond);font-size:var(--t11);letter-spacing:.06em;text-transform:uppercase;color:var(--pale);cursor:pointer;list-style:none}
.bm-table summary::-webkit-details-marker{display:none}
/* a summary is a button of the site's (2026-11-09, Oleg: "AS A TABLE … without any hover/tap animations as others buttons"): the press shade
   (guide.js PRESSABLE), the small buttons' hover (.calc-btn), the class-colour ring from the keyboard */
@media (hover:hover){.bm-table summary:hover{border-color:var(--mid);color:var(--ink)}}
.bm-table summary:focus-visible{outline:1px solid var(--orange);outline-offset:2px}
.bm-table[open] summary{color:var(--ink)}
@media (pointer:coarse){.bm-table summary{min-height:40px}}
.bm-table[open] summary{margin-bottom:8px}
.bm-table table{width:100%;border-collapse:collapse;font-size:var(--t12);font-variant-numeric:tabular-nums}
.bm-table th,.bm-table td{padding:4px 8px 4px 0;border-bottom:1px solid color-mix(in srgb,var(--stroke) 60%,transparent);text-align:right}
.bm-table th:first-child{text-align:left}
.bm-table thead th{font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.04em;color:var(--pale)}
.bm-table td{font-family:var(--cond);font-size:var(--t13);color:var(--ink)}
.bm-oreh span{white-space:nowrap}
.bm [data-bm-name]{min-height:1.25em}   /* (the chosen tool's name, under Pickaxe or under Drill: its line kept when it moves to the other row) */
/* phones: every row a grid of equal columns, as the Fishing kit's (its phone rules, later in this file, would set the two pickaxe groups side by
   side one button wide — these win by .bm) */
@container stage (max-width:599.98px){
  .bm-oreh,.bm-ore{grid-template-columns:40px minmax(0,1fr) 40px 46px 54px;gap:0 6px}
  .bm-ore{padding:5px 8px}
  .bm .bm-gb,.bm .fk-row[data-bm-row="drill"] .fk-bs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
  .bm .fk-row:is([data-bm-row="acc"],[data-bm-row="buff"],[data-bm-row="prefix"],[data-bm-row="armor"]) .fk-bs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .bm .fk-row[data-bm-row="food"] .fk-bs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  .bm .fk-b{min-width:0}
  .bm-pre{justify-items:center;padding-inline:4px}
  .bm-strip .fc-os{white-space:normal;min-height:2.4em}   /* (two lines kept: "gear gives +90%" wraps on a 360 px phone) */
  /* its names too: "Pickaxe reach" and "Hits a second" take two lines from 375 px down and set their numbers 18 px under their neighbours';
     the tiles fill their rows with no hole — the bug hunt of 2026-11-10, night */
  .bm-strip .fc-on{line-height:1.25;min-height:2.5em}
  .fc-strip.bm-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bm-strip .fc-o:is([data-bo="hits"],[data-bo="grab"]){grid-column:span 2}   /* (seven tiles: 2 + 1, 3, 1 + 2 — no hole) */
  .bk-reach svg{height:260px}
}
@container stage (max-width:359.98px){.bm .bm-gb,.bm .fk-row[data-bm-row="drill"] .fk-bs{grid-template-columns:repeat(5,minmax(0,1fr))}}
/* the calculator (round 3, 2026-11-08 — Oleg picked "B · Gear slots and world tiles", archive/previews/fishing-calc-2026-11-08/; round 4 — Oleg:
   "i dont like the black background for a picks … divide into 3 armor pieces … structure baits by fishing power"; source/fishing.js calcHtml):
   the result on top (round 7 took out the Defense calculators' bar), the odds strip under it, then YOUR KIT beside THE WORLD, a row per thing
   (its name at the left, its buttons). A button on the card's own colour — no dark well: its picture at .42 and a hairline edge when off; on,
   its picture at full strength on a soft wash of the class colour, no edge (round 7, Oleg: "i dont like the outline effect of chosen option,
   change it to more smooth option, maybe bg highlight"); the press is the site's soft shade (Oleg: "I dont like flashy Click effects on button") */
.fc{--fc-on:color-mix(in srgb,var(--orange) 17%,var(--card));--fc-on-hover:color-mix(in srgb,var(--orange) 23%,var(--card));gap:14px;padding:2px 16px 16px;border:1px solid var(--stroke);border-radius:10px;background:var(--card)}
.fc .calc-sum{margin-top:0}
/* the result (fishing-math resultHtml; round 7, Oleg: "i dont like the bar, like additional buffs with grey background feels strange and eye
   strain and the bar like too long, design a new way to show changes"): what the kit gives, then each thing of the world that changes it —
   the world tile's own picture, its word, its share signed (a gain green, a loss red: the opened card's comparison colours) — and the total
   at the end. No bar, no fills: words and numbers on the card, one line where they fit. */
.fc-res{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 16px;min-height:34px}
.fc-chg{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;min-width:0;margin:0;padding:0;list-style:none;font-size:var(--t13);line-height:1.2;color:var(--pale)}
.fc-c{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.fc-c img{flex:none;image-rendering:pixelated}
.fc-c img.fc-ci{width:30px;height:30px;margin:-3px -2px}   /* (the bestiary icons: 30 px, ~24 px of picture — the margins take up their empty rim) */
.fc-c img.fc-cb{max-width:24px;max-height:24px}   /* (the Chum Bucket, the water and honey buckets: their own size) */
.fc-c img.fc-cm{width:22px;height:22px;margin:1px 2px;border-radius:50%;box-shadow:0 0 0 1px color-mix(in srgb,var(--pale) 22%,transparent);image-rendering:auto}   /* (a moon's disc, as on its tile) */
.fc-c b{font-family:var(--cond);font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.fc-c[data-d="up"] b{color:var(--green)}
.fc-c[data-d="down"] b{color:var(--red)}
.fc-ck{padding-right:16px;border-right:1px solid var(--stroke)}   /* (the kit, apart from what the world does to it) */
.fc-c0{color:var(--muted)}
.fc-res .calc-total{grid-column:2}
/* the odds strip (round 9: eight tiles — Luck the last): eight across where the widest value fits (the luck range "411–523", 93 px), two rows
   of four under that, three across on phones with Luck in two cells; a value narrows only when its tile is too narrow for it (21cqi:
   "411–523" and "1 in 4500" fit) — the 320–360 px phones */
.fc-strip{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.fc-o{display:grid;gap:5px;align-content:start;min-width:0;padding:8px 10px 10px;border:1px solid var(--stroke);border-radius:8px;container-type:inline-size}
.fc-on{font-family:var(--cond);font-size:var(--t11);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.fc-o b{font-family:var(--cond);font-size:20px;font-size:min(20px,21cqi);font-weight:600;line-height:1.05;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.fc-m{display:block;height:4px;border-radius:2px;background:var(--lift);overflow:hidden}
.fc-m i{display:block;height:100%;border-radius:2px;background:var(--mid);transition:width .2s var(--ease-out),background-color .2s ease}   /* (it slides while its number counts: guide.js countTo, 200 ms — 2026-11-10) */
.fc-o[data-best] .fc-m i{background:color-mix(in srgb,var(--orange) 62%,var(--card))}
/* the Luck tile (round 9): the bites' level — green where luck lifts a share of them, red where it lowers it — its meter that share, the share in
   words under it (one line: "¾ of bites") */
.fc-o[data-d="up"] b{color:var(--green)}
.fc-o[data-d="down"] b{color:var(--red)}
.fc-os{font-size:var(--t12);line-height:1.2;color:var(--pale);white-space:nowrap}
@container stage (max-width:1009.98px){.fc-strip{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container stage (max-width:719.98px){.fc-o{padding:8px 7px 9px}.fc-on{letter-spacing:.03em}}
@container stage (max-width:599.98px){.fc-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.fc-o[data-fo="luck"]{grid-column:span 2}}
@container stage (max-width:599.98px){.fc-res{grid-template-columns:minmax(0,1fr)}.fc-res .calc-total{grid-column:1;grid-row:1}.fc-chg{gap:4px 12px}.fc-ck{padding-right:12px}}   /* (phones: the total first, the changes under it) */
.fc-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
@container stage (min-width:1100px){.fc-cols{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:28px}}   /* (side by side from an 1100 px section — 1366 px windows and up; narrower, the world under the kit, the eleven rods in one row) */
/* side by side (round 11): Rod and Bait six across — 6 + 5, not 7 + 4, 8 + 3 or 9 + 2 as the column's width fell; the six times of day two across, so
   "Rest of the day" and "Rest of the night" no longer break inside their names (three across they took three or four lines) */
@container stage (min-width:1100px){
  .fk-row:is([data-fk-row="rod"],[data-fk-row="bait"]) .fk-bs{display:grid;grid-template-columns:repeat(6,max-content)}
  .fc-world .fc-wrow .fk-bs.fc-3{grid-template-columns:repeat(2,minmax(0,1fr))}   /* (.fc-world: the three-across rule comes later in the file) */
}
/* side by side (round 12, Oleg: "yes, make it" — Your kit is ~300 px longer than The world): The world stays on screen while you scroll the kit —
   sticky under the result (the 49 px top bar + the result, 56 px or 72 px when its changes take two lines, + 10), never taller than the screen:
   on a short one it scrolls inside, as the endgame page's stats panel does; 4 px of room right and below for the tiles' focus rings */
@container stage (min-width:1100px){
  .fc-world{position:sticky;top:131px;align-self:start;max-height:calc(100vh - 143px);max-height:calc(100dvh - 143px);overflow-y:auto;scrollbar-width:thin;margin-right:-4px;padding:0 4px 4px 0}
}
@media print{.fc-world{position:static!important;max-height:none!important;overflow:visible!important}}
.fc-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:28px;padding-bottom:8px;border-bottom:1px solid var(--stroke)}
.fc-hn{font-family:var(--cond);font-size:var(--t12);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
.fc-h .calc-btn{margin-left:auto}
/* a strip's line of words: what its bars are (2026-11-11, Oleg: "what is the line under each box shows exactly?") */
.fc-cap{margin:-6px 0 0;font-size:var(--t11);line-height:1.35;color:var(--muted)}
/* ---------- sections that fold on phones (2026-11-11 — Oleg: "by default on PC all sections are open by default AND WITHOUT THE OPTION TO HIDE
   IT, and for mobile all that i mentioned is folded"; guide.js "sections that fold on phones", design.md) ----------
   The bar is a button that rests (disabled: a plain heading) but on a phone with script, where it folds its section: closed unless
   data-open. Keyed on the screen's width, as the script is (matchMedia) — a hidden page has no container to ask. */
.fold,.fold-c{min-width:0}
.fold-b{display:inline-flex;align-items:center;gap:8px;min-width:0;margin:0;padding:0;border:0;border-radius:4px;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-align:left}
.fold-b:disabled{color:inherit;-webkit-text-fill-color:currentColor;opacity:1;cursor:default}
.fold-chev{display:none;flex:none;color:var(--muted);transition:transform var(--d-fast) var(--ease)}
@media (max-width:599.98px){
  html[data-js] .fold>.fold-h>.fold-b{flex:1 1 auto;justify-content:space-between;min-height:40px;cursor:pointer}
  html[data-js] .fold>.fold-h .fold-chev{display:block}
  html[data-js] .fold[data-open]>.fold-h .fold-chev{transform:rotate(180deg)}
  html[data-js] .fold:not([data-open])>.fold-c,html[data-js] .fold:not([data-open])>.fold-h>.fold-x{display:none}
  html[data-js] .fold>.fold-h{padding-bottom:0}
  html[data-js] .fold[data-open]>.fold-h>.fold-x{flex:1 1 100%;margin:0 0 8px}
  .fold-b:focus-visible{outline:1px solid var(--orange);outline-offset:-1px}
}
@media print{.fold>.fold-c{display:block!important}.fold-chev{display:none!important}}
.fish-sec>.fold-c{display:grid;gap:10px}
/* a row: its name (and, for Rod and Bait, the one held) at the left, its buttons (the kit is the calculator's own since round 5: no
   "changed by you" — Reset rests until something moves) */
.fk-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:6px 12px;align-items:center;padding:10px 0;border-top:1px solid color-mix(in srgb,var(--stroke) 60%,transparent)}
.fc-h+.fk-row{border-top:0}
.fk-rk{display:grid;gap:3px;align-content:center;min-width:0}
.fk-rl{display:inline-flex;align-items:center;gap:6px;font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--pale)}
.fk-rn{font-size:var(--t11);line-height:1.25;color:var(--muted)}
.fk-bs{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.fk-b{display:grid;justify-items:center;align-content:center;gap:4px;min-width:56px;min-height:60px;margin:0;padding:7px 7px 5px;border:1px solid var(--stroke);border-radius:8px;background:none;color:var(--pale);font:inherit;cursor:pointer;transition:border-color var(--d-fast) var(--ease),background-color var(--d-fast) var(--ease),box-shadow .25s var(--ease-out)}
/* every sprite the same size, its longer side 30–34 px, in a 34 px box (fishing.js `spr`; round 7, Oleg: "some sprites are big or small, like
   i think tipsy is bigger then the other … all the equal size picture") — the power under it 4 px clear (round 6: "the "+X" … overlap the item sprite") */
.fk-bi{display:grid;place-items:center;height:34px;min-width:34px}
.fk-bi img{display:block;image-rendering:pixelated;opacity:.42;transition:opacity var(--d-fast) var(--ease)}
.fk-bi img.fk-sm{image-rendering:auto}
.fk-bc{font-size:var(--t11);line-height:1.15;white-space:nowrap}
.fk-bv{font-family:var(--cond);font-size:var(--t11);line-height:1.1;color:var(--muted);font-variant-numeric:tabular-nums}
.fk-bv:empty{display:none}
.fk-b[aria-pressed="true"]{border-color:transparent;background:var(--fc-on);color:var(--ink)}
.fk-b[aria-pressed="true"] img{opacity:1}
.fk-b[aria-pressed="true"] .fk-bv{color:var(--ink)}
@media (hover:hover){.fk-b:hover,.fc-t:hover{border-color:var(--mid)}.fk-b[aria-pressed="true"]:hover,.fc-t[aria-pressed="true"]:hover{border-color:transparent;background:var(--fc-on-hover)}}
.fk-b:focus-visible,.fc-t:focus-visible,.fw-cell:focus-visible{outline:1px solid var(--orange);outline-offset:2px}
.fk-armor{gap:12px}
.fk-g{display:grid;gap:3px;min-width:0}
.fk-gl{font-family:var(--cond);font-size:var(--t10);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.fk-gb{display:flex;gap:4px}
/* a seat and the Inner Tube together: what lets you be both (game-facts.md "sitting and floating") */
.fk-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:6px 0 0;padding:10px 12px;border:1px solid color-mix(in srgb,var(--orange) 60%,var(--stroke));border-radius:8px;font-size:var(--t12);line-height:1.4;color:var(--pale)}
.fk-note[hidden]{display:none}
.fk-note b{flex:1 1 100%;font-family:var(--cond);font-size:var(--t11);letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
.fk-ni{display:inline-flex;align-items:center;gap:6px;color:var(--ink)}
.fk-ni img{max-width:28px;max-height:26px;image-rendering:pixelated}
/* the kit's bait stat (round 15, Oleg: "make it like a stat not a plain text"): the kit's last row — Used up · the bait — its value written as the
   odds strip writes one, "of catches" beside it (round 16: no tag) */
.fc-baitrow:empty{display:none}
.fc-bstat{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;min-width:0}
.fc-bstat b{font-family:var(--cond);font-size:20px;font-weight:600;line-height:1.05;color:var(--ink);font-variant-numeric:tabular-nums}
.fc-bstat span{font-size:var(--t12);color:var(--muted)}
/* the world: tiles with the game's pictures (the bestiary's icons, the moon's phases, the Chum Bucket, the buckets) — hours, not multipliers */
.fc-world{display:grid;align-content:start;min-width:0}
.fc-wrow .fk-bs.fc-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.fc-wrow .fk-bs.fc-5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.fc-t{position:relative;display:flex;align-items:center;gap:8px;min-width:0;min-height:44px;margin:0;padding:5px 12px 5px 8px;border:1px solid var(--stroke);border-radius:8px;background:none;color:var(--pale);font:inherit;font-size:var(--t12);line-height:1.2;text-align:left;cursor:pointer;transition:border-color var(--d-fast) var(--ease),background-color var(--d-fast) var(--ease),box-shadow .25s var(--ease-out)}
.fc-t img{flex:none;image-rendering:pixelated;opacity:.42;transition:opacity var(--d-fast) var(--ease)}
.fc-t span{min-width:0}
.fc-t small{display:block;font-family:var(--cond);font-size:var(--t11);color:var(--muted)}
.fc-hr{white-space:nowrap}
.fc-t[aria-pressed="true"]{z-index:1;border-color:transparent;background:var(--fc-on);color:var(--ink)}
.fc-t[aria-pressed="true"] img{opacity:1}
.fc-t[aria-pressed="true"] small{color:var(--pale)}   /* (the hours on the wash: --muted fell to 3.9 : 1 there) */
.fc-moon{flex-direction:column;justify-content:center;gap:4px;padding:6px 2px;text-align:center}
.fc-moon img{border-radius:50%;box-shadow:0 0 0 1px color-mix(in srgb,var(--pale) 22%,transparent);image-rendering:auto}   /* (a hairline round the disc: the new moon is dark on a dark card) */
.fc-word{justify-content:center;gap:6px;padding:5px 10px}
/* round 8 (2026-11-09): a tile the world cannot take — a Blood Moon by day or on a New Moon (fishing-math `blocked`; its title says why) */
.fc-t[aria-disabled="true"]{opacity:.35;cursor:not-allowed}
@media (hover:hover){.fc-t[aria-disabled="true"]:hover{border-color:var(--stroke)}}
/* the Luck row: seven of one width (four across on phones); the odds strip's last tile says what it does */
.fc-wrow .fk-bs.fc-luck-row{display:grid;grid-template-columns:repeat(8,minmax(0,1fr))}   /* (eight since 2026-11-10: −0.4 … +1; four and four on phones) */
/* the Custom luck: its field on a line of its own under the tiles, the row's width (any value from −1.1 to +1.86 typed) */
.fc-luckf{grid-column:1 / -1;margin:4px 0 0;color:var(--pale)}
.fc-luckf input{width:72px}
.fc-luckf[data-on] .fc-tbox{border-color:transparent;background:var(--fc-on)}
.fc-luck-row .fc-word{padding:5px 2px;font-variant-numeric:tabular-nums}
.fc-pond{align-items:center;gap:6px 8px}
.fc-tiles{display:inline-flex;align-items:center;gap:8px;margin-left:4px;font-size:var(--t12);color:var(--muted)}
/* the tiles typed, then Min and Max (round 7, Oleg: "to the Pond button add Min action between MAX, and if i change water to honey it changes
   accordingly"): the one the pond is at washed like a picked tile. While you type, the box's edge turns grey — no class-colour ring: the
   site's ring sat on the field's right edge, cut by the box, a coloured bar beside the number (Oleg: "it is akward class color bar on the
   right"); the caret in the text's colour */
.fc-tbox{display:inline-flex;align-items:stretch;height:40px;border:1px solid var(--stroke);border-radius:8px;overflow:hidden;transition:border-color var(--d-fast) var(--ease)}
.fc-tbox:focus-within{border-color:var(--mid)}
.fc-tbox input{width:60px;margin:0;padding:0 6px;border:0;background:none;color:var(--ink);caret-color:var(--ink);font-family:var(--cond);font-size:16px;text-align:center;font-variant-numeric:tabular-nums;outline:none}
[data-guide] .fc-tbox input:focus-visible{outline:none}
.fc-mm{margin:0;padding:0 10px;border:0;border-left:1px solid var(--stroke);background:none;color:var(--muted);font-family:var(--cond);font-size:var(--t11);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;transition:background-color var(--d-fast) var(--ease),color var(--d-fast) var(--ease)}
.fc-mm[aria-pressed="true"]{background:var(--fc-on);color:var(--ink)}
.fc-mm:focus-visible{outline:1px solid var(--orange);outline-offset:-3px}   /* (inside: the box cuts what is outside it) */
@media (hover:hover){.fc-mm:hover{color:var(--ink)}}
@container stage (max-width:599.98px){.fk-row{grid-template-columns:minmax(0,1fr);gap:6px}.fc-wrow .fk-bs.fc-3{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-wrow .fk-bs.fc-luck-row{grid-template-columns:repeat(4,minmax(0,1fr))}.fc-moon span{font-size:var(--t11)}}
/* phones (round 10, Oleg: "polish fishing design for phones"): every row of the kit a grid of equal columns, as the world's rows are, so no
   button sits alone on a line (the Golden Fishing Rod, the Master Bait, the Legs, the Bobber did) — Rod and Bait six across (four under a
   360 px stage), the armor's Head, Body and Legs side by side with Angler over Captain, the accessories, potions and extras three, the seats four */
@container stage (max-width:599.98px){
  .fk-row:is([data-fk-row="rod"],[data-fk-row="bait"]) .fk-bs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
  .fk-row:is([data-fk-row="rod"],[data-fk-row="bait"]) .fk-b{padding-inline:4px}
  .fk-row:is([data-fk-row="acc"],[data-fk-row="potions"],[data-fk-row="extra"]) .fk-bs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .fk-row[data-fk-row="seat"] .fk-bs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  .fk-armor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .fk-gb{display:grid}
  .fk-bs .fk-b{min-width:0}
}
@container stage (max-width:359.98px){.fk-row:is([data-fk-row="rod"],[data-fk-row="bait"]) .fk-bs{grid-template-columns:repeat(4,minmax(0,1fr))}.fk-bc{white-space:normal;text-align:center}}   /* (320 px: "Gummy Worm" two lines) */
@media (pointer:coarse){.ft-step{min-height:44px}}
/* phones: the track one step at a time — a row of step tabs (its picture, its number) over it, the other steps' heads and cells out (guide.js
   ftShow marks them data-ft-off); a tile's name and power stand on the picture's line (flex-start set a one-line name 2 px high — Oleg,
   2026-11-11: "item sprites in progression table is not aligned with item name text") */
.ft-tabs{display:none}
@container stage (max-width:599.98px){
  html[data-js] .ft-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px}
  .ft-tab{display:grid;justify-items:center;align-content:center;gap:2px;min-width:0;min-height:52px;margin:0;padding:4px 2px;border:1px solid var(--stroke);border-radius:8px;background:none;color:var(--muted);font:inherit;cursor:pointer}
  .ft-tab .ft-pics{height:24px}.ft-tab .ft-pics img{max-height:22px;opacity:.5}
  .ft-tn{font-family:var(--cond);font-size:var(--t11);letter-spacing:.08em}
  .ft-tab[aria-selected="true"]{border-color:transparent;background:color-mix(in srgb,var(--orange) 17%,var(--card));color:var(--ink)}
  .ft-tab[aria-selected="true"] .ft-pics img{opacity:1}
  .ft-tab:focus-visible{outline:1px solid var(--orange);outline-offset:2px}
  html[data-js] #fishing .fish-track [data-ft-off]{display:none}
  html[data-js] #fishing .fish-track .ft-step:not([data-ft-off]){border-top:0}
  #fishing .fish-track .card .s-head{align-items:center}
}
/* "Where to fish" (round 3, 2026-11-08 — Oleg picked "A · Atlas", archive/previews/fishing-where-2026-11-08/, with B's Before Hardmode /
   Hardmode switch; source/fishing.js whereHtml; round 4 — no column heads, an X where no place is, cards of one width, a quieter Blood Moon):
   the map full width — the heights at its left, every place a button with its icon and its name in its biome's quiet tint (the one shown:
   the class colour's 1 px edge); the place's board under the map; "Anywhere" (Any water, Honey) a section of its own, Blood Moon in Any
   water's head. The world switch keeps one world's catches, shares and crates (data-fw-world on #fishing); without script both are written
   out. Narrower than the map (950 px since round 10: under a 1004 px section — 1100 px windows — it fits; 1024 px windows), it scrolls sideways inside its
   box with the row heads kept at its left. */
.fw-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 24px}
html:not([data-js]) .fw-world{display:none}
.fw-ws{padding:0 12px}
.fw-ws .calc-sv{min-width:0;font-size:var(--t12)}
.fw-mapbox{min-width:0;overflow-x:auto;border:1px solid var(--stroke);border-radius:10px;background:var(--card);scrollbar-width:thin}
.fw-map{display:grid;grid-template-columns:130px repeat(10,minmax(76px,1fr));grid-template-rows:repeat(5,minmax(64px,auto));gap:4px;min-width:950px;box-sizing:border-box;padding:10px}
.fw-map [data-fwc="1"]{grid-column:2}.fw-map [data-fwc="2"]{grid-column:3}.fw-map [data-fwc="3"]{grid-column:4}.fw-map [data-fwc="4"]{grid-column:5}.fw-map [data-fwc="5"]{grid-column:6}
.fw-map [data-fwc="6"]{grid-column:7}.fw-map [data-fwc="7"]{grid-column:8}.fw-map [data-fwc="8"]{grid-column:9}.fw-map [data-fwc="9"]{grid-column:10}.fw-map [data-fwc="10"]{grid-column:11}
.fw-map [data-fwr="1"]{grid-row:1}.fw-map [data-fwr="2"]{grid-row:2}.fw-map [data-fwr="3"]{grid-row:3}.fw-map [data-fwr="4"]{grid-row:4}.fw-map [data-fwr="5"]{grid-row:5}
.fw-map [data-fws="2"]{grid-row-end:span 2}.fw-map [data-fws="3"]{grid-row-end:span 3}
.fw-map [data-fwall]{grid-column:2 / -1}
.fw-hi,.fw-ci,.fw-bi{flex:none;image-rendering:pixelated}
.fw-rh{grid-column:1;position:sticky;left:0;z-index:2;display:flex;align-items:center;gap:8px;min-width:0;margin-left:-10px;padding-left:10px;background:var(--card);font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--pale)}
.fw-cell{--h:var(--mid);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:64px;margin:0;padding:6px 4px;border:1px solid color-mix(in srgb,var(--h) 30%,var(--stroke));border-radius:7px;background:color-mix(in srgb,var(--h) 12%,var(--card));color:var(--pale);font:inherit;font-family:var(--cond);font-size:var(--t12);line-height:1.15;text-align:center;cursor:pointer;transition:border-color var(--d-fast) var(--ease),box-shadow .25s var(--ease-out)}
.fw-cell[data-fwall]{flex-direction:row;gap:10px;font-size:var(--t13)}
/* (round 10) the row heads' column 130 px (was 122: "UNDERGROUND", 92 px in the phones' and tablets' type, ran 8 px into the first column);
   the map scrolls sideways under a 984 px stage (its 950 px against the box): a place across every column — the sky lakes, the
   Underworld's lava — shows its picture and name at its start, where the box opens; centred, they sat out of view and the place looked empty */
@container stage (max-width:989.98px){.fw-cell[data-fwall]{justify-content:flex-start;padding-left:16px}}
.fw-cn{display:block;max-width:100%}
.fw-cx{font-size:var(--t10);letter-spacing:.04em;color:var(--pale)}   /* (--pale: on a place's tint --muted was 3.9 : 1, the Hallow's "Hardmode" — the full run of 2026-11-09) */
.fw-cell[aria-pressed="true"]{border-color:var(--orange);background:color-mix(in srgb,var(--h) 22%,var(--card));color:var(--ink)}
/* a Hardmode place before Hardmode: its picture faint, its name read as the others' (2026-11-09 — the faint name was 2.6 : 1 light, 2.8 dark; Oleg
   picked "Fade the picture only": the faint picture and the "Hardmode" line still say "not yet") */
#fishing[data-fw-world="pre"] .fw-cell[data-fw-hmplace]:not([aria-pressed="true"]) .fw-ci{opacity:.5}
@media (hover:hover){.fw-cell:hover{background:color-mix(in srgb,var(--h) 18%,var(--card));color:var(--ink)}}
.fw-none{display:grid;place-items:center;border:1px dashed color-mix(in srgb,var(--stroke) 70%,transparent);border-radius:7px;color:var(--mid)}
[data-fwb="ocean"]{--h:#3b8fd6}[data-fwb="forest"]{--h:#6dbf4b}[data-fwb="desert"]{--h:#d9a441}[data-fwb="snow"]{--h:#9fcbe8}[data-fwb="jungle"]{--h:#4caf50}
[data-fwb="corruption"]{--h:#8f63c9}[data-fwb="crimson"]{--h:#c8443c}[data-fwb="hallow"]{--h:#e27cc9}[data-fwb="mushroom"]{--h:#5b7cf0}[data-fwb="dungeon"]{--h:#7a86a8}
[data-fwb="sky"]{--h:#7ec3ff}[data-fwb="lava"]{--h:#e8622c}[data-fwb="honey"]{--h:#e3b02f}[data-fwb="anywhere"]{--h:#3b8fd6}
/* a place's board, under the map: every catch card the same width, in every row (a grid of 200 px columns, not a row that stretches) */
#fishing[data-fw-js] .fw-place:not([data-on]){display:none}
.fw-board{display:grid;gap:12px;min-width:0}
.fw-place{display:grid;gap:6px;padding:12px 16px 8px;border:1px solid var(--stroke);border-radius:10px;background:var(--card);min-width:0}
.fw-bh{display:flex;align-items:center;gap:12px;padding-bottom:4px}
.fw-bi{width:60px;height:60px}
.fw-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0;font-family:var(--cond);font-size:22px;font-weight:700;line-height:1.1;color:var(--ink)}
.fw-name small{font-family:var(--sans);font-size:var(--t12);font-weight:400;color:var(--muted)}
#fishing .fw-tiers{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.fw-tier{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px;align-items:start;padding:8px 0;border-top:1px solid var(--stroke)}
.fw-tl{padding-top:9px;font-family:var(--cond);font-size:var(--t11);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.fw-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px;min-width:0}
#fishing .fw-chip{cursor:default}
@media (hover:hover){html[data-js][data-nostats]:not([data-nodialog]) #fishing .sections .fw-chip:hover{background:var(--card)}}
.fw-none-hm{display:none;margin:0;padding:10px 0 4px;border-top:1px solid var(--stroke);font-size:var(--t12);color:var(--muted)}
/* one world: the other world's catches, crates, shares and words leave; Blood Moon brings its catches and its enemies */
#fishing[data-fw-world="pre"] [data-fw-only="hm"],#fishing[data-fw-world="hm"] [data-fw-only="pre"]{display:none}
#fishing[data-fw-world="hm"] .fw-pre,#fishing:not([data-fw-world="hm"]) .fw-hm{display:none}
#fishing[data-fw-world] .fw-wn{display:none}
#fishing[data-fw-world="pre"] [data-fw-hmplace] .fw-none-hm{display:block}
/* Anywhere: Any water and Honey, always shown; Blood Moon is Any water's: its switch in its head, its two catches marked by the moon's
   icon, its enemies one line at its foot (round 4, Oleg: "make it more smoothly and minimalistic integrated") */
.fw-any{display:grid;gap:10px;padding:12px 16px 14px;border:1px solid var(--stroke);border-radius:10px;background:var(--card);min-width:0}
.fw-anyg{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
@container stage (min-width:900px){.fw-anyg{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}}
.fw-anyc{--h:var(--mid);display:grid;gap:8px;align-content:start;min-width:0;padding:10px 12px 12px;border:1px solid color-mix(in srgb,var(--h) 30%,var(--stroke));border-radius:8px;background:color-mix(in srgb,var(--h) 6%,var(--card))}
.fw-anyt{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;min-height:32px}
.fw-h5{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;font-family:var(--cond);font-size:var(--t13);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
.fw-h5 small{font-family:var(--sans);font-size:var(--t12);font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted)}
.fw-h5i{max-width:24px;max-height:24px;image-rendering:pixelated}
.fw-bmi{display:inline-block;margin-right:4px;vertical-align:-2px;image-rendering:pixelated}
.fw-foes{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin:0;padding-top:8px;border-top:1px solid color-mix(in srgb,var(--stroke) 60%,transparent);font-size:var(--t12);color:var(--pale)}
.fw-fl{display:inline-flex;align-items:center;font-family:var(--cond);font-size:var(--t11);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.fw-foe{display:inline-flex;align-items:center;gap:6px}
.fw-foe img{max-width:30px;max-height:24px;image-rendering:pixelated}
.fw-foe small{font-family:var(--cond);font-size:var(--t10);letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
@container stage (max-width:519.98px){.fw-tier{grid-template-columns:minmax(0,1fr);gap:4px}.fw-tl{padding-top:0}.fw-items{grid-template-columns:minmax(0,1fr)}.fw-bi{width:30px;height:30px}}
/* in the dialog: what a crate holds (sorted by chance), what a catch makes (the crafting tree's classes: .ct-*), else where it bites */
.fw-dbox{display:grid;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--stroke)}
.fw-d{display:grid;gap:10px}
.fw-dh{display:flex;align-items:baseline;gap:8px;font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--pale)}
.fw-dh small{font-family:var(--sans);font-size:var(--t11);font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted)}
.fw-dl{display:grid;margin:0;padding:0;list-style:none}
.fw-dl li{display:grid;grid-template-columns:22px minmax(0,1fr) auto 46px;align-items:center;gap:8px;min-height:26px;padding:2px 0;border-top:1px solid color-mix(in srgb,var(--stroke) 60%,transparent);font-size:var(--t12)}
.fw-dl li img{max-width:20px;max-height:20px;justify-self:center;image-rendering:pixelated}
.fw-ln{min-width:0;color:var(--ink)}
.fw-lc{font-family:var(--cond);font-size:var(--t12);color:var(--muted)}
.fw-lp{font-family:var(--cond);font-size:var(--t13);color:var(--ink);text-align:right}
.fw-dw li{grid-template-columns:minmax(0,1fr) auto 46px;padding:4px 0}
.fw-ln small{font-size:var(--t11);color:var(--muted)}
.fw-ln .fw-lf{display:block}
.fw-tree .ct-tree{display:grid;gap:8px}
.fw-me .ct-nm{font-weight:700}   /* (the catch itself, among the ingredients) */
/* Search found a catch (round 7, Oleg: "if the fish can be caught in several biomes or levels just smoothly highlight all the Biome boxes so
   i can choose any of the box"; guide.js fishFind): the line above the map names it; the places it bites in take a wash of the class colour,
   the rest of the map fades back; the catch itself carries the wash in every board — all of it eased in, until Clear */
/* it stays under the top bar while the map and the boards scroll (2026-11-11, Oleg: "make this message like sticky at the top with clear button") */
.fw-found{position:sticky;top:55px;z-index:4;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;padding:6px 6px 6px 10px;border:1px solid color-mix(in srgb,var(--orange) 45%,var(--stroke));border-radius:8px;background:var(--card);font-size:var(--t13);line-height:1.3;color:var(--ink)}
@media print{.fw-found{position:static}}
.fw-found[hidden]{display:none}
.fw-found img{flex:none;max-width:32px;max-height:32px;image-rendering:pixelated}
.fw-found span{flex:1 1 14em;min-width:0}
.fw-found:focus-visible,.fw-found[data-found]:focus-visible{outline:none}   /* (Search's landing: it flashes; no ring on top of that) */
#fishing[data-fw-finding] :is(.fw-cell,.fw-anyc[data-fw-hit],.fw-items>.card[data-fw-hit]){transition:border-color .45s var(--ease-out),background-color .45s var(--ease-out),opacity .45s var(--ease-out),box-shadow .25s var(--ease-out)}
#fishing[data-fw-finding] .fw-cell:not([data-fw-hit]){opacity:.4}   /* (every place the search did not light — none is chosen while it runs, 2026-11-11) */
#fishing .fw-cell[data-fw-hit]{border-color:color-mix(in srgb,var(--orange) 55%,var(--stroke));background:color-mix(in srgb,var(--orange) 18%,var(--card));color:var(--ink)}
#fishing .fw-cell[data-fw-hit][aria-pressed="true"]{border-color:var(--orange)}
#fishing .fw-anyc[data-fw-hit]{border-color:color-mix(in srgb,var(--orange) 55%,var(--stroke))}
#fishing .fw-items>.card[data-fw-hit]{border-color:color-mix(in srgb,var(--orange) 55%,var(--stroke));background:color-mix(in srgb,var(--orange) 12%,var(--card))}

/* Where to fish on a phone (2026-11-09 — Oleg: "where to fish biome table have a lot of akward interactions, overlaps and etc on phones and
   hardly usable in real user experience scenario"): the 950 px map scrolled sideways in a 370 px box behind a 130 px column of heights,
   "Underground Desert" was cut to "Undergrou", Sky lakes and Lava ran off its edge, and a tap's board appeared out of sight below. Folded
   here: each height a heading (its icon and name), its places under it three across in the map's order (data-fwr → order), a place its
   picture and its biome only (the heading says the height; "and caverns" where it reaches down through them), the empty cells gone; a tap
   brings its board into view and the board's Places goes back up (guide.js "Where to fish"). Tablets and wider keep the map. */
.fw-cb,.fw-sp,.fw-up{display:none}
/* tablets (a 600–989 px stage: the map scrolls sideways there, the heights pinned at its left) — a place says its biome only, as on a phone:
   "Underground", "Underground Corruption" … ran past their 76 px cells (642–960 px stages, Chromium and WebKit) */
@container stage (min-width:600px) and (max-width:989.98px){.fw-cell .fw-cn{display:none}.fw-cell .fw-cb{display:block}}
@container stage (max-width:599.98px){
  .fw-mapbox{overflow:visible;border:0;border-radius:0;background:none}
  .fw-map{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;gap:6px;min-width:0;padding:0}
  .fw-map>*{grid-column:auto!important;grid-row:auto!important}
  .fw-map>[data-fwr="1"]{order:1}.fw-map>[data-fwr="2"]{order:2}.fw-map>[data-fwr="3"]{order:3}.fw-map>[data-fwr="4"]{order:4}.fw-map>[data-fwr="5"]{order:5}
  .fw-map>.fw-rh{grid-column:1 / -1!important;position:static;margin:12px 0 0;padding:0;background:none}
  .fw-map>.fw-rh[data-fwr="1"]{margin-top:2px}
  .fw-map>.fw-none{display:none}
  .fw-cell,.fw-cell[data-fwall]{flex-direction:column;justify-content:center;gap:2px;min-height:64px;padding:6px 4px;font-size:var(--t12);text-align:center}
  .fw-map>.fw-cell[data-fwall]{grid-column:1 / -1!important;flex-direction:row;justify-content:flex-start;gap:10px;min-height:52px;padding-left:14px}   /* (Sky lakes, Lava: a bar across, as on the map) */
  .fw-cell .fw-cn{display:none}
  .fw-cell .fw-cb,.fw-cell .fw-sp{display:block}
  html[data-js] .fw-up{display:inline-flex;flex:none;margin-left:auto;align-self:flex-start}
}
/* ---------- the Damage page (2026-11-09 — Oleg: "redesign the defense and damage reduction into one big or two separate calculators on its own
   page like Fishing and Building guide pages, see the visual of calculators for fishing and building and create a new Damage section" → picked
   "One calculator"; source/damage.js, docs/notes/defense-calc.md): the old calculators' result on top (sticky: the bar and the HP taken), the
   strip (the hit's way through the steps — each meter what is left of the hit), YOUR SETUP beside THE HIT on the Fishing calculator's rows,
   DEFENSE OR DAMAGE REDUCTION? on the Building page's chart, HOW A HIT IS WORKED OUT */
.dm-strip{grid-template-columns:repeat(6,minmax(0,1fr))}   /* (six since 2026-11-11: Hits to kill you) */
.dm-strip .fc-os{color:var(--muted)}
.dm-strip .fc-m i{background:color-mix(in srgb,var(--orange) 62%,var(--card))}   /* (what is left of the hit: the result's colour, as on the bar) */
.dm-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
@container stage (min-width:1100px){.dm-cols{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px}}
.dm-side{display:grid;align-content:start;min-width:0}
.dm .calc-legend span{line-height:18px}   /* (whole-pixel lines, 21 px with the gap: a press keeps the pressed control still by scrolling what the legend grew — a fractional line left 1 px a time behind) */
.dm .fc-h .calc-modes{margin-left:auto}
.dm .fc-h .calc-say{margin-top:-2px}
.dm-field{margin-left:0;gap:10px}
.dm .fk-row[data-dm-row="hit"] .fk-bs{align-items:center;gap:8px}
.dm .calc-pick{width:250px;height:40px;border-radius:8px;background:none}
/* the armor set's two groups one under the other at every width — as wrapping flex groups WebKit laid them out again after a press (+85 px,
   everything under it lower: the Building page's pickaxe groups did the same, building.md "The page does not move under a press") */
.dm .fk-armor{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.dm .fk-armor .fk-gb{flex-wrap:wrap}
/* defense or damage reduction?: the Building page's chart — 10 more defense in the text's grey, 10% more damage reduction in the class colour */
.dm-vs{display:grid;gap:8px;min-width:0;margin-top:8px}
.dm-xlab{display:block;margin-top:-4px;text-align:right;font-family:var(--cond);font-size:var(--t11);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bc-dot-pair{fill:var(--pale)}
.dm .bm-table tr[data-you] td{color:var(--orange)}
/* how a hit is worked out: the steps in the game's order, two columns from a tablet's width up */
.dm-how{display:grid;gap:10px;min-width:0;margin-top:8px}
.dm-steps{display:grid;grid-template-columns:minmax(0,1fr);gap:0 28px;margin:0;padding:0;list-style:none;counter-reset:dm}
@container stage (min-width:900px){.dm-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
.dm-steps li{display:grid;grid-template-columns:20px minmax(0,1fr);align-content:start;gap:3px 8px;padding:10px 0;border-bottom:1px solid color-mix(in srgb,var(--stroke) 60%,transparent);counter-increment:dm}
.dm-steps li::before{content:counter(dm);grid-row:span 2;font-family:var(--cond);font-size:var(--t13);font-weight:600;line-height:1.35;color:var(--muted);font-variant-numeric:tabular-nums}
.dm-steps b{font-family:var(--cond);font-size:var(--t13);font-weight:700;letter-spacing:.02em;line-height:1.35;color:var(--ink)}
.dm-steps span{max-width:72ch;font-size:var(--t13);line-height:1.5;color:var(--pale)}
.dm-items table{max-width:900px;font-size:var(--t12);font-variant-numeric:normal}
.dm-items td{padding:5px 12px 5px 0;font-family:inherit;font-size:var(--t12);line-height:1.4;color:var(--pale);text-align:left;vertical-align:middle}
.dm-items td:first-child{white-space:nowrap;color:var(--ink)}
.dm-items td:nth-child(2){font-family:var(--cond);font-size:var(--t13);white-space:nowrap;color:var(--ink);font-variant-numeric:tabular-nums}
.dm-items .dm-ih th{padding:12px 0 4px;border-bottom:1px solid var(--stroke);font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-align:left;color:var(--pale)}
.dm-items tr:first-child th{padding-top:2px}
.dm-ii{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:8px;vertical-align:middle}
.dm-ii img{max-width:24px;max-height:24px;image-rendering:pixelated}
/* tablets: the strip's names may take two lines — their room kept, two lines exactly (2.5em of a 1.25 line; 2.5em of the 1.4 line had left
   a one-line name's number 6 px higher at 1024, 13 at 320), so the numbers sit on one line across */
.dm-strip .fc-on{line-height:1.25}
@container stage (max-width:1009.98px){.dm-strip .fc-on{min-height:2.5em}}
/* and their second lines: two lines' room under an 1100 px section — "armor & accessories" ran 7 px into the next tile on a 700 px tablet,
   "9999 +28 +7 −27, a quarter" 33 px (the bug hunt of 2026-11-10, night; until then only phones wrapped them) */
@container stage (max-width:1099.98px){.dm-strip .fc-os{white-space:normal;min-height:2.4em}}
/* how long you last (2026-11-11 — defense-calc.md): the range under the result (what the roll's least and most take), a word button (a hit
   every N s; Standing still — no picture), the Life field's row, and Warding or Menacing?: two tiles, the words under them */
.calc-tr{display:block;margin-top:1px;font-family:var(--cond);font-size:var(--t11);letter-spacing:.02em;text-align:right;color:var(--pale);font-variant-numeric:tabular-nums}
.calc-tr:empty{display:none}
.dm .dm-word{min-width:48px;min-height:40px;padding:6px 10px;gap:2px}
.dm .dm-word .fk-bc{font-family:var(--cond);font-size:var(--t13);font-weight:600;line-height:1.1;color:var(--ink);white-space:normal;text-align:center}
.dm-wmrow{border-top:0}
.dm-wmt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:4px}
.dm-wmt .fc-o b{font-size:20px}
.dm-wmt .fc-os{white-space:normal;color:var(--pale)}
.dm-wm .bm-verdict{margin-top:10px}
/* the legend's short names, a phone's (MG.dmgPage.SHORT) */
.calc-legend .lg-s{display:none}
/* phones: the strip three across (the last two halves of the row), every row of buttons a grid of four (three under 360 px), the Hit picker's
   button under the field, the armor set's two groups one under the other */
@container stage (max-width:599.98px){
  .dm-strip{grid-template-columns:repeat(3,minmax(0,1fr))}   /* (three across, two rows: six tiles since 2026-11-11) */
  .dm .fk-row[data-dm-row]:not([data-dm-row="def"]):not([data-dm-row="hit"]):not([data-dm-row="set"]) .fk-bs,.dm .fk-armor .fk-gb{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .dm .fk-b{min-width:0;padding-inline:3px}
  .dm .fk-row[data-dm-row="minus"]:not([data-dm-row="def"]):not([data-dm-row="hit"]):not([data-dm-row="set"]) .fk-bs,.dm .fk-row[data-dm-row="every"]:not([data-dm-row="def"]):not([data-dm-row="hit"]):not([data-dm-row="set"]) .fk-bs{grid-template-columns:repeat(5,minmax(0,1fr))}
  .dm .fk-row[data-dm-row="life"]:not([data-dm-row="def"]):not([data-dm-row="hit"]):not([data-dm-row="set"]) .fk-bs{display:flex}   /* (a field, as Defense: not the grid of four) */
  .dm .dm-word{padding-inline:3px}
  .dm-wmt{grid-template-columns:minmax(0,1fr)}   /* (Warding over Menacing: side by side "+18.7% damage" ran out of its tile at 320 px) */   /* (the five debuffs on one line: as specific as the rule of four above, after it) */
  .dm .calc-legend{gap:2px 12px;font-family:var(--cond)}
  .dm .calc-legend .lg-n{display:none}
  .dm .calc-legend .lg-s{display:inline}
  /* every item: a row is its picture and name with the number beside, and when it counts under them (a table's columns ran 92 px past a 320 px
     phone in WebKit) */
  .dm-items table,.dm-items tbody{display:block}
  .dm-items tr:not(.dm-ih){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;padding:6px 0;border-bottom:1px solid color-mix(in srgb,var(--stroke) 60%,transparent)}
  .dm-items .dm-ih{display:block}
  .dm-items .dm-ih th{display:block}
  .dm-items td{padding:0;border:0}
  .dm-items td:first-child{white-space:normal}
  .dm-items td:nth-child(3){grid-column:1 / -1;padding:2px 0 0 32px;color:var(--muted)}
  .dm-items td:nth-child(3):empty{display:none}
  .dm .fk-row[data-dm-row="hit"] .fk-bs{flex-wrap:wrap}
  .dm .calc-pick{flex:1 1 200px;width:auto}
}
@container stage (max-width:359.98px){.dm .fk-row[data-dm-row]:not([data-dm-row="def"]):not([data-dm-row="hit"]):not([data-dm-row="set"]) .fk-bs,.dm .fk-armor .fk-gb{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* (the five debuffs stay on one line down to a 320 px stage — a 360 px phone's is 328 — their captions are short) */
@container stage (min-width:320px) and (max-width:359.98px){.dm .fk-row[data-dm-row="minus"]:not([data-dm-row="def"]):not([data-dm-row="hit"]):not([data-dm-row="set"]) .fk-bs{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* ---------- the Luck page (2026-11-10 — Oleg: "design a guide page something similar to Fishing, Building and mining, Damage pages … the main
   Luck calculator, then how this Luck affects like Damage rolls, spawn rates, fishing … the graph will show how the luck decrease over time";
   source/luck.js, docs/notes/luck.md): the Fishing calculator's strip and rows (.fc, .fk-*), YOUR LUCK beside WHAT IT DOES TO A CHANCE, then
   LUCK OVER TIME on the Building page's chart and HOW LUCK WORKS on the Damage page's steps */
/* the luck is the result on top, with what stays beside it (2026-11-11, Oleg: "for Luck guide make the Luck stays the main value and sticky
   value"); the strip is the six things it does, three across under a 1010 px section */
.lk-res .calc-total[data-d="down"] .calc-tv{color:var(--red)}
.lk-st{gap:6px}
.fc-strip.lk-strip{grid-template-columns:repeat(6,minmax(0,1fr))}
@container stage (max-width:1009.98px){.fc-strip.lk-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
.lk-strip .fc-os{color:var(--muted)}
.lk-strip .fc-o[data-d="down"] .fc-m i{background:color-mix(in srgb,var(--red) 62%,var(--card))}
.lk-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
/* side by side from a 960 px section (1240 px windows and up; the other calculators from 1100): the line beside the switches is the page's point */
@container stage (min-width:960px){.lk-cols{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:28px}}
.lk-setup,.lk-out{display:grid;align-content:start;min-width:0}
/* a source of bad luck, chosen: the wash in the warning red, not the class colour */
.lk .lk-bad[aria-pressed="true"]{background:color-mix(in srgb,var(--red) 16%,var(--card))}
@media (hover:hover){.lk .lk-bad[aria-pressed="true"]:hover{background:color-mix(in srgb,var(--red) 22%,var(--card))}}
/* any chance: 1 in N typed, and what it is with your luck */
.lk-any{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;min-height:44px;padding:10px 0 4px}
.lk-field{margin-left:0;gap:8px;font-size:var(--t13);color:var(--pale)}
.lk-field input{width:78px}
.lk-anyv{font-size:var(--t13);line-height:1.3;color:var(--pale);font-variant-numeric:tabular-nums}
.lk-anyv b{font-family:var(--cond);font-size:20px;font-weight:600;line-height:1.05;color:var(--ink)}
/* the lists: a row is its things — each its own picture (in a 30 px place, so the names of one-thing rows stand in line) and its name, in one
   piece — then its note; its own chance, yours, the change. No stack of pictures in a column of their own (2026-11-10, Oleg: "the ice feather
   is highly overlap with rotten chunk, vertebra") */
.lk-lh,.lk-r{display:grid;grid-template-columns:minmax(0,1fr) 70px 70px 58px;align-items:center;gap:0 8px}   /* (58: "+125%" is 50 px at a tablet's type — in 46 it ran out of its row) */
.lk-lh{min-height:14px;padding:14px 0 5px;border-bottom:1px solid var(--stroke);font-family:var(--cond);font-size:var(--t10);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.lk-lh span{text-align:right;white-space:nowrap}
.lk-lh span:first-child{font-size:var(--t11);font-weight:700;text-align:left;color:var(--pale)}
.lk-list{display:grid;margin:0;padding:0;list-style:none}
.lk-r{min-height:40px;padding:5px 0;border-bottom:1px solid color-mix(in srgb,var(--stroke) 60%,transparent);font-size:var(--t13);color:var(--ink);break-inside:avoid}
.lk-rn{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;min-width:0;line-height:1.25}
.lk-it{display:inline-grid;grid-template-columns:30px auto;align-items:center;justify-items:center;gap:8px;white-space:nowrap}
.lk-it img{image-rendering:pixelated}
.lk-it img.fk-sm{image-rendering:auto}
.lk-dot{font-style:normal;color:var(--muted)}
.lk-rn small{flex:1 1 100%;padding-left:38px;font-size:var(--t11);color:var(--muted)}
.lk-rb,.lk-ry,.lk-rx{font-family:var(--cond);font-size:var(--t13);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.lk-rb{color:var(--muted)}
.lk-ry{font-size:15px;font-weight:600;color:var(--ink)}
.lk-rx{color:var(--muted)}
.lk-rx[data-d="up"]{color:var(--green)}
.lk-rx[data-d="down"]{color:var(--red)}
/* luck over time: the Building page's chart, at the top of the right column — a press on a switch beside it shows on the line; your luck in
   the class colour, what stays dashed in the text's grey; 0 and +1 a shade stronger. Its words under it keep three lines' room, so the
   lists below hold still from press to press */
.lk-time{display:grid;gap:0;min-width:0}
.lk-time>.fold-c{display:grid;gap:8px;padding-top:8px}
.lk-chance{display:grid;min-width:0;margin-top:20px}
.lk-how>.fold-c,.dm-how>.fold-c{display:grid;gap:10px;min-width:0}
.dm-vs>.fold-c{padding-top:8px}
.lk .lk-key{flex-direction:row;margin-left:auto;gap:4px 14px}
.lk-verdict{min-height:4.65em}
.lk-table{justify-self:start;max-width:100%}
.lk-table[open]{justify-self:stretch}
.lk-zero,.lk-one{stroke:color-mix(in srgb,var(--mid) 70%,transparent)}
.lk-one{stroke-dasharray:2 4}
.bm-tr.lk-k-src i{border-top-color:transparent}
/* rare spawns: the page's width, two columns from a tablet's width up (read down the first, then the second) */
.lk-spawns,.lk-badluck{display:grid;min-width:0;margin-top:22px}
.lk-sn{flex:1 1 240px;text-align:right}
.lk-two{display:grid;grid-template-columns:minmax(0,1fr)}
div.lk-two .lk-lh+.lk-lh{display:none}
@container stage (min-width:900px){
  .lk-two{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
  ol.lk-two{display:block;columns:2}
  div.lk-two .lk-lh+.lk-lh{display:grid}
}
.lk-how{margin-top:14px}
.lk-items td:nth-child(3){max-width:64ch}
/* under a 1200 px section the strip's second lines take two lines' room; phones: Luck now two cells wide, every row of buttons a grid of three */
@container stage (max-width:1199.98px){.lk-strip .fc-os{white-space:normal;min-height:2.4em}}   /* ("60% of rolls unlucky" is 113 px: a tile's line is 95 at 1280) */
@container stage (max-width:599.98px){
  .lk-chance{margin-top:22px}.lk-spawns,.lk-badluck,.lk-how{margin-top:8px}   /* (the folded bars one step apart, 63 px, as on the other three pages: they stood 61, 77 and 69) */
  .lk-strip .fc-on{line-height:1.25;min-height:2.5em}   /* ("Damage dealt", "Fishing power" take two lines from 375 px down: their numbers stood 18 px lower) */
  .lk .fk-row .fk-bs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .lk .fk-row:is([data-lk-row="gear"],[data-lk-row="coins"],[data-lk-row="also"]) .fk-bs{grid-template-columns:repeat(2,minmax(0,1fr))}   /* (four in two rows of two, not three and one) */
  .lk .fk-b{min-width:0;padding-inline:3px}
  .lk .fk-bc{white-space:normal;text-align:center}
  /* a row of a list in two lines: its things, then its own chance → yours and the change (three number columns left a name 110 px) */
  .lk-lh span:not(:first-child){display:none}
  .lk-r{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"n n n" "b y x";gap:2px 10px;padding:7px 0}
  .lk-r .lk-rn{grid-area:n}.lk-rb{grid-area:b;padding-left:38px;text-align:left}.lk-ry{grid-area:y}.lk-rx{grid-area:x;min-width:38px}
  .lk-rb::after{content:' \2192'}
  .lk-sn{flex-basis:100%;text-align:left}
  div.lk-two{display:none}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition-duration:0s!important;transition-delay:0s!important}
  [data-pressed]{transition-duration:0s!important}   /* (the press rule's .09 s is !important with a higher specificity than the * rule — since 2026-11-02 it eased in under reduced motion too; board_check runs with reduced motion and read a 0 px band, 2026-11-03) */   /* (none, not 1 ms: a 1 ms animation still draws its first frame — a closed card stood at 97 % for that frame; board_check "moved after closing", 2026-10-14) */
}

/* ---------- Fishing: the dice band, What you catch, an opened crate (2026-11-17 — the prototype archive/previews/fishing-odds-2026-11-17;
   docs/notes/fishing.md "The dice band", "What you catch", "Opening a crate"). Every chance a percentage; 1 px edges; the class colour only
   for what is at its best and for what a crate always gives ---------- */
.fc-band{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;align-items:start;padding:12px 0 2px}
@container stage (max-width:899.98px){.fc-band{grid-template-columns:minmax(0,1fr)}}
.fc-bh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:4px}
.fc-bl,.fw-bl{font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.fc-bs{font-size:var(--t12);color:var(--muted)}
.fc-chart{display:block;width:100%;height:auto;overflow:visible}
.fc-chart text{fill:var(--muted);font-family:var(--cond);font-size:11px;font-variant-numeric:tabular-nums}
.fc-chart .fc-cl{font-size:12px;font-weight:600;letter-spacing:.03em;fill:var(--pale)}
.fc-gl{stroke:var(--stroke);stroke-dasharray:2 4}
.fc-ax{stroke:var(--stroke)}
.fc-chart path{stroke-width:2;stroke-linejoin:round}
.fc-chart path[data-die="c"]{stroke:var(--die-c)}.fc-chart path[data-die="u"]{stroke:var(--die-u)}.fc-chart path[data-die="r"]{stroke:var(--die-r)}
.fc-chart path[data-die="v"]{stroke:var(--die-v)}.fc-chart path[data-die="l"]{stroke:var(--die-l)}
.fc-you{stroke:var(--ink);stroke-dasharray:3 3}
.fc-chart .fc-yt{fill:var(--ink);font-weight:600}
[data-fc-you]{transition:transform .2s var(--ease-out)}
@media (max-width:599px){.fc-chart text{font-size:18px}.fc-chart .fc-cl{display:none}}   /* (the chart is drawn at 560 wide: 18 is ~11 px on a phone; the table names the dice) */
.fc-wait{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--stroke);border-radius:8px;overflow:hidden}
.fc-wait>span{display:grid;align-content:start;gap:1px;min-width:0;padding:8px 10px;border-left:1px solid var(--stroke)}
.fc-wait>span:first-child{border-left:0}
.fc-wait b{font-family:var(--cond);font-size:22px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums;color:var(--ink)}
.fc-wait small{font-size:var(--t11);color:var(--muted)}
.fc-wait [data-best] b{color:var(--orange)}
.fc-wait>.fc-wm,.fc-wait>.fc-wl{grid-column:1/-1;border-left:0;border-top:1px solid var(--stroke)}
.fc-wait [data-best] ~ .fc-wm .fc-m i,.fc-wm .fc-m i{background:var(--mid)}
.fc-wl{font-size:var(--t12);color:var(--pale)}
.fc-dt{width:100%;margin-top:8px;border-collapse:collapse;font-size:var(--t13)}
.fc-dt th,.fc-dt td{padding:5px 6px;border-top:1px solid var(--stroke);vertical-align:middle}
.fc-dt tr:first-child>*{border-top:0}
.fc-dt th{text-align:left;font-weight:500;color:var(--ink);white-space:nowrap}
.fc-sw{display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:2px;background:var(--mid)}
.fc-dt [data-die="c"] .fc-sw{background:var(--die-c)}.fc-dt [data-die="u"] .fc-sw{background:var(--die-u)}.fc-dt [data-die="r"] .fc-sw{background:var(--die-r)}
.fc-dt [data-die="v"] .fc-sw{background:var(--die-v)}.fc-dt [data-die="l"] .fc-sw{background:var(--die-l)}.fc-dt [data-die="crate"] .fc-sw{background:var(--fw-crate)}.fc-dt [data-die="junk"] .fc-sw{background:var(--fw-junk)}
.fc-dv{text-align:right;font-family:var(--cond);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.fc-dm{width:64px}
.fc-dt tr[data-best] .fc-m i{background:color-mix(in srgb,var(--orange) 62%,var(--card))}
.fc-dn{text-align:right;font-size:var(--t12);color:var(--muted);white-space:nowrap}
@container stage (max-width:519.98px){.fc-dm{display:none}.fc-dn{white-space:normal}}

.fw-bites{display:grid;gap:7px;padding:2px 0 10px}
.fw-bt{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.fw-bfp{margin-left:auto;font-size:var(--t12);color:var(--muted)}
.fw-bfp b{margin:0 2px;font-family:var(--cond);font-size:16px;color:var(--orange)}
.fw-bar{display:flex;gap:2px;height:12px;border-radius:3px;overflow:hidden;background:var(--lift)}
.fw-bar i{display:block;height:100%;min-width:0;transition:flex-grow .2s var(--ease-out)}
.fw-bar [data-fwp="fish"],.fw-leg [data-fwl="fish"]::before{background:var(--fw-fish)}
.fw-bar [data-fwp="crate"],.fw-leg [data-fwl="crate"]::before{background:var(--fw-crate)}
.fw-bar [data-fwp="junk"],.fw-leg [data-fwl="junk"]::before{background:var(--fw-junk)}
.fw-bar [data-fwp="none"],.fw-leg [data-fwl="none"]::before{background:var(--fw-none)}
.fw-bar [data-fwp="foe"],.fw-leg [data-fwl="foe"]::before{background:var(--fw-foe)}
.fw-leg{display:flex;flex-wrap:wrap;gap:3px 16px;font-size:var(--t12);color:var(--pale)}
.fw-leg span::before{content:'';display:inline-block;width:9px;height:9px;margin-right:6px;border-radius:2px}
.fw-leg b{margin-left:3px;font-family:var(--cond);color:var(--ink)}
.fw-path{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.fw-pgs{display:contents}
.fw-pg{display:inline-flex;align-items:baseline;gap:5px;padding:2px 8px;border:1px solid var(--stroke);border-radius:5px;font-size:var(--t12);color:var(--pale)}
.fw-pg b{font-family:var(--cond);color:var(--ink)}
.fw-pa{font-size:var(--t11);color:var(--muted)}
.fw-tl b{display:block;margin-top:1px;font-size:var(--t12);font-weight:600;letter-spacing:0;text-transform:none;color:var(--pale)}
.fw-tb{order:3;flex:1 1 100%;height:3px;margin-top:3px;border-radius:2px;background:var(--lift);overflow:hidden}
.fw-tb i{display:block;width:0;height:100%;background:var(--fw-fish);transition:width .2s var(--ease-out)}
#fishing .card[data-ct] .fw-tb i{background:var(--fw-crate)}
#fishing .fish-fp[data-zero]{color:var(--muted)}
html:not([data-js]) .fw-tb{display:none}
.fw-cbox{display:grid;gap:6px;min-width:0}
.fw-csplit{display:flex;gap:2px;height:8px;margin-top:10px;border-radius:3px;overflow:hidden;background:var(--lift)}
.fw-csplit i{display:block;height:100%;min-width:0}
.fw-ct{display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:2px;vertical-align:baseline}
:is(.fw-csplit i,.fw-ct)[data-ct="wood"]{background:var(--die-c)}:is(.fw-csplit i,.fw-ct)[data-ct="iron"]{background:var(--die-u)}
:is(.fw-csplit i,.fw-ct)[data-ct="gold"]{background:var(--die-r)}:is(.fw-csplit i,.fw-ct)[data-ct="biome"]{background:var(--die-v)}

.fw-loot{gap:12px}
.fw-cnt{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:end;padding:10px 12px;border-radius:8px;background:var(--lift)}
.fw-ca{display:grid}
.fw-ca small{font-size:var(--t11);color:var(--muted-lift)}
.fw-ca b{font-family:var(--cond);font-size:30px;font-weight:700;line-height:1;color:var(--ink)}
.fw-hist{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;height:80px}
.fw-hb{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;text-align:center}
.fw-hb b{font-family:var(--cond);font-size:var(--t11);font-weight:600;color:var(--ink);white-space:nowrap}
.fw-hb i{display:block;align-self:end;min-height:2px;border-radius:2px 2px 0 0;background:var(--pale)}
.fw-hb small{font-family:var(--cond);font-size:var(--t11);color:var(--muted-lift);white-space:nowrap}
.fw-hb-top i{background:var(--orange)}
.fw-ls{display:grid;gap:6px;padding-top:10px;border-top:1px solid var(--stroke)}
.fw-ls[data-kind="always"] .fw-dh{color:var(--orange)}
.fw-ls .fw-dh small{margin-left:4px;font-family:var(--sans);font-size:var(--t12);font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted)}
.fw-lcols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:10px 24px}   /* (two groups side by side where they fit: an opened crate's card is ~440 px — one) */
.fw-ls[data-kind="always"] .fw-lcols{grid-template-columns:minmax(0,1fr)}
@media (max-width:599px){.fw-cnt{grid-template-columns:minmax(0,1fr)}}
.fw-lc{display:grid;gap:2px;align-content:start;min-width:0}
.fw-lch{margin-bottom:2px;font-family:var(--cond);font-size:var(--t11);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.fw-lr{display:grid;grid-template-columns:58px minmax(0,1fr) 52px 54px;grid-template-rows:auto auto;column-gap:8px;align-items:center;min-height:36px}
.fw-mss{grid-row:1/3;grid-column:1;display:flex;justify-content:center;align-items:center}
.fw-ms{width:24px;height:24px;object-fit:scale-down;image-rendering:pixelated}
.fw-mss-n{display:grid;grid-template-columns:repeat(4,13px);grid-auto-rows:15px;justify-content:start}   /* (four across, a little over each other: every one seen — Oleg: "if there is 4 ores … 4 ores sprites") */
.fw-mss-n .fw-ms{width:18px;height:18px}
.fw-msx{grid-column:1/-1;font-size:var(--t11);line-height:1;color:var(--muted)}
.fw-ln{grid-column:2;grid-row:1;min-width:0;overflow:hidden;font-size:var(--t13);text-overflow:ellipsis;white-space:nowrap}
.fw-ln small{display:block;overflow:hidden;font-size:var(--t11);color:var(--muted);text-overflow:ellipsis}
.fw-lp{grid-column:3;grid-row:1/3;text-align:right;font-family:var(--cond);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.fw-la{grid-column:4;grid-row:1/3;text-align:right;font-family:var(--cond);font-size:var(--t12);color:var(--muted);white-space:nowrap}
.fw-lb{grid-column:2;grid-row:2;height:3px;border-radius:2px;background:var(--lift);overflow:hidden}
.fw-lb i{display:block;height:100%;background:var(--pale)}
.fw-lr-pick{grid-template-columns:minmax(0,1fr) 52px;min-height:0}
.fw-lr-pick .fw-ln{grid-column:1}
.fw-lr-pick .fw-lp{grid-column:2}
.fw-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.fw-pick{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 8px;border:1px solid color-mix(in srgb,var(--orange) 45%,transparent);border-radius:6px;background:var(--lift);font-size:var(--t13)}
.fw-pick img{flex:0 0 auto;width:26px;height:26px;object-fit:scale-down;image-rendering:pixelated}
.fw-pick span{min-width:0;overflow:hidden;text-overflow:ellipsis}

