/* The site is the camp: grass underfoot, a tree line along the top, and the game's own windows for everything you read.
   Night is the default and day follows the reader's light setting. --u is one art pixel of a window frame and --g one of
   the scenery, so every piece of pixel art draws at a whole-number scale. Frames, buttons and the heading font are from
   Franuka's RPG UI pack and the pixel type is Kenney Mini; scripts/export-site-art.py prepares them, and art/PROVENANCE.md
   says from where.

   A new page gets the whole skin from this one file, with the shared <header>, <main> and <footer> markup:
     <link rel="stylesheet" href="/style.css">
     <link rel="preload" href="/assets/fonts/kenney-mini.woff2" as="font" type="font/woff2" crossorigin>
     <script type="module" src="/menu.js"></script>   (or any module that imports site.js)
   Windows:  .sheet or .reading (a page's main window), .panel (a note), .stage (a showcase), .plaque (a wooden board).
   Titles:   h1.ribbon inside a window; add .free for a ribbon standing on the grass. h2.ribbon is a section's banner.
             A plain h2, h3 or h4 is a text heading.
   Controls: button and a.button (red), .quiet or .pick (blue; aria-pressed="true" is the chosen one), a.store, .textbutton.
   Type:     the tokens on :root, and the roles written out under "Type" below. Text is var(--sans) at var(--size-small),
             var(--size-body) or var(--size-sub), weight 400 or 600. Pixel type is class="px" (or "num" for a number):
             uppercase, at var(--size-label) or var(--size-title). Use a role; don't set a size, weight or color by hand.
   Layout:   one column (header, main and footer share its edges), --gutter from the screen's edge, --gap between blocks,
             and --inset from a window's outer edge to its text, the same in every kind of window.
   Sprites:  site.js animated(name, alt, box) for anything with an idle loop in the manifest (helpers.js ANIM), sprite() and
             scaled() for stills, .slot for a sprite in an item slot.
   Colors:   the custom properties on :root (--text, --muted, --link, --accent, --line, --well, --ink). Put text on a window,
             never straight on the grass. */
@font-face{font-family:"Kenney Mini";src:url(/assets/fonts/kenney-mini.woff2) format("woff2");font-display:swap}
:root{color-scheme:dark;--u:2px;--g:3px;--pixel:"Kenney Mini","Trebuchet MS","Verdana",system-ui,sans-serif;--sans:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
--size-small:.875rem;--size-body:1rem;--size-sub:1.125rem;--size-label:1rem;--size-title:2rem;--line-text:1.5;--line-pixel:1.125;
--gutter:8px;--gap:16px;--inset:calc(10*var(--u));
--ground:#23503d;--ground-art:url(/assets/scene/ground-night.png);--forest:url(/assets/scene/forest-night.png);--dirt:url(/assets/scene/dirt-night.png);
--sheet:url(/assets/ui/panel-night.png);--paper:url(/assets/ui/paper-night.png);--stage:url(/assets/ui/stage-night.png);--plaque:url(/assets/ui/plaque-night.png);--slot:url(/assets/ui/slot-night.png);
--sp-h:4px;--sp-1:8px;--sp-2:16px;--sp-3:24px;--sp-4:32px;
--text:#f5ffe8;--soft:var(--text);--muted:#b3b7d0;--link:#f0b541;--accent:#f0b541;--line:#3a3f5e;--well:#1c1f33;--good:#9fd5a8;--warn:#ffb4a6;--common:#dfe0e8;--uncommon:#9fd5a8;--rare:#9db8ff;--relic:#f0b541;--op:#ff5277;
--ink:#3d2936;--ink-soft:#633d4c;--ink-mid:#5a3a46;--cream:#fff3d6;--glow:1;
--gold:#f0b541;--gold-hi:#ffee83;--gold-lo:#cf752b;--danger:#e64539;--danger-hi:#ff8933;--danger-lo:#ad2f45;--xp:#9db8ff;--life-hi:#9fe07a;--life:#63ab3f;--life-lo:#3b7d4f;
--parchment:#f1e3c2;--parchment-ink:#3b2a1a;--assault:#ff8933;--guard:#4fa4b8;--focus:#cc2f7b;
--plum:#781d4f;--plum-deep:#6a1845;--navy:#2b2b45;--wood:#8f4d57;--wood-dark:#52333f;--stone-rim:#9d9387;--field:#f5ffe8;--field-shade:#d7d3bd;--black:#000;--focus-ring:#ffee83;
--watch-screen:#000;--watch-text:#fff;--watch-dim:#9b9ba1;--watch-bezel:#2b2b33;
--found-unshared:#38e1dc;--soulbound:#9aa3ad;--slot-fill:#686f99}
@media(prefers-color-scheme:light){:root:where(:not([data-theme=night])){color-scheme:light;
--ground:#63ab3f;--ground-art:url(/assets/scene/ground.png);--forest:url(/assets/scene/forest.png);--dirt:url(/assets/scene/dirt.png);
--sheet:url(/assets/ui/panel.png);--paper:url(/assets/ui/paper-rose.png);--stage:url(/assets/ui/stage.png);--plaque:url(/assets/ui/plaque.png);--slot:url(/assets/ui/slot.png);
--found-unshared:#00686e;--soulbound:#5a6470;--slot-fill:#d09c8e;
--text:#3d2936;--muted:#4f2f3c;--link:#5a1239;--ink-soft:#4f2f3c;--plum-deep:#5a1239;--accent:#8a2a3f;--line:#d09c8e;--well:#e3b6a6;--good:#1f5229;--warn:#8a2020;--common:#52333f;--uncommon:#1f5229;--rare:#2a4294;--relic:#8a4a0c;--op:#9c2a70;--glow:0;
--xp:#2a4294;--assault:#9c2f1c;--guard:#2a4294;--focus:#9c2a70}}:root:where([data-theme=day]){color-scheme:light;
--ground:#63ab3f;--ground-art:url(/assets/scene/ground.png);--forest:url(/assets/scene/forest.png);--dirt:url(/assets/scene/dirt.png);
--sheet:url(/assets/ui/panel.png);--paper:url(/assets/ui/paper-rose.png);--stage:url(/assets/ui/stage.png);--plaque:url(/assets/ui/plaque.png);--slot:url(/assets/ui/slot.png);
--found-unshared:#00686e;--soulbound:#5a6470;--slot-fill:#d09c8e;
--text:#3d2936;--muted:#4f2f3c;--link:#5a1239;--ink-soft:#4f2f3c;--plum-deep:#5a1239;--accent:#8a2a3f;--line:#d09c8e;--well:#e3b6a6;--good:#1f5229;--warn:#8a2020;--common:#52333f;--uncommon:#1f5229;--rare:#2a4294;--relic:#8a4a0c;--op:#9c2a70;--glow:0;
--xp:#2a4294;--assault:#9c2f1c;--guard:#2a4294;--focus:#9c2a70}
@media(min-width:481px){:root{--inset:calc(12*var(--u))}}
@media(min-width:1000px){:root{--u:3px;--g:4px}}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{position:relative;margin:0;background:var(--ground) var(--ground-art) center top/calc(96*var(--g)) auto;color:var(--text);font:400 var(--size-body)/1.5 var(--sans);image-rendering:pixelated;overflow-wrap:break-word}
/* The tree line. It sits behind the header on every page, so each page starts at the edge of the same forest. */
body::before{content:"";position:absolute;inset:0 0 auto;height:calc(38*var(--g));background:var(--forest) center bottom/calc(48*var(--g)) auto repeat-x;pointer-events:none}
a{color:var(--link);text-underline-offset:4px}
[hidden]{display:none!important}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px;box-shadow:0 0 0 7px var(--ink)}
.skip{position:absolute;left:-999px;top:8px;z-index:10;padding:8px 16px;background:var(--gold-hi);color:var(--ink);font-weight:600}.skip:focus{left:8px}

/* Type. Two families and nothing else: the pixel font for short labels, and one system sans for everything you read.
   The pixel font (--pixel) is always uppercase, never bold, and only at 16 or 32 px, whole multiples of its 8 px grid, on an
   18 or 36 px line: the wordmark, the menu, page titles, ribbon titles, buttons, short names and big numbers. Nothing longer
   than about four words, and no arrows (it has none).
   Text (--sans) is 14, 16 or 18 px at weight 400 or 600, on a line of 1.5. Section and card headings are text: 18 px at 600.

   The roles, and all there are. A page picks one of these and never sets a size, weight or color of its own:
     Title    pixel 32/36   h1, and a big number (.num inside .power, .counters, .ranks).
     Label    pixel 16/18   ribbons, buttons, the menu, a short name (.px), a chip (.chip).
     Heading  sans 18/27, 600   h2 (accent), h3 and h4 (text), .sub.
     Lead     sans 18/27, 400   .lead: a page's opening paragraph, once.
     Body     sans 16/24, 400   everything read. <b> and <strong> are the same size at 600.
     Small    sans 14/21, 400, muted   .small and .fine, and .eyebrow for a label over something.
   Colors for text: --text on any window, --muted for small print, --accent for an h2 and --link for a link (both gold at
   night), --ink on gold, --cream on a red button, --gold-hi on an ink chip. Each passes AA on the window it is used on.
   A button holds one family: pixel type, or for .textbutton the text family. */
h1,.ribbon,.book h2,.px,.num,button,.button,nav[aria-label=Main] a,.brand,.store,.chip,.hud-name,.fighter .name,.hero-id .class,.ranks dd,.level-badge,.shelf .count,.pips a,.tier .mile,.floater,.boss{font-family:var(--pixel);font-weight:400;font-synthesis:none;font-style:normal;font-size:var(--size-label);line-height:1.125;letter-spacing:0;text-transform:uppercase;-webkit-font-smoothing:none}
h1,h1.ribbon,.power .num,.counters .num,.ranks dd{font-size:var(--size-title)}
h2,h3,h4,.sub,.result,.closed,.week-name,.detail .name{font:600 var(--size-sub)/1.5 var(--sans);letter-spacing:0;text-transform:none}
h1,h2,h3,h4,.hud-name,.fighter .name{margin:0 0 8px;text-wrap:balance}
.sub,.result,.closed,.week-name{text-wrap:balance}p,li,figcaption{text-wrap:pretty}
h2{color:var(--accent);margin-top:32px}
h2::after{content:"";display:block;width:calc(48*var(--u));max-width:100%;height:calc(5*var(--u));margin-top:4px;background:url(/assets/ui/divider.png) 0 0/100% 100% no-repeat}
h3 small,h2 small{font:400 var(--size-small)/1.5 var(--sans);color:var(--muted)}
p{margin:0 0 16px}
b,strong,th{font-weight:600}
.lead{font-size:var(--size-sub)}
.small,.fine,.eyebrow{font-size:var(--size-small);color:var(--muted)}
.eyebrow{margin:0 0 4px;font-weight:400}
strong{color:var(--text)}

/* Windows. Each is a nine-slice frame whose middle is a flat fill, so text always sits on one plain color. */
.sheet,.reading,.tip-page{border:calc(7*var(--u)) solid transparent;border-image:var(--sheet) 11 fill/calc(11*var(--u));padding:calc(4*var(--u)) calc(var(--inset) - 7*var(--u)) calc(5*var(--u))}
.panel,.card,.tier,.check-line,.ranks div{border:calc(4*var(--u)) solid transparent;border-image:var(--paper) 9 fill/calc(9*var(--u));padding:calc(3*var(--u)) calc(4*var(--u))}
.stage,.boss-card,.week,.campfire{border:calc(8*var(--u)) solid transparent;border-image:var(--stage) 12 fill/calc(12*var(--u));padding:calc(2*var(--u)) calc(var(--inset) - 8*var(--u))}
.plaque{border-style:solid;border-color:transparent;border-width:calc(10*var(--u)) calc(8*var(--u)) calc(9*var(--u));border-image:var(--plaque) 11 10 10 9 fill/calc(11*var(--u)) calc(10*var(--u)) calc(10*var(--u)) calc(9*var(--u));padding:calc(1*var(--u)) calc(var(--inset) - 8*var(--u))}
/* A caption plate and a line of dialogue are notes too, set to the page's inset because they stand in the column themselves. */
.says{border:calc(4*var(--u)) solid transparent;border-image:var(--paper) 9 fill/calc(9*var(--u));padding:calc(3*var(--u)) calc(var(--inset) - 4*var(--u))}
/* 1.8.1 (owner: switch between the day and night looks): Theme sits beside Music and opens a row of three icon buttons in item slots,
   Day, Night and Auto (menu.js; theme.js applies a choice before the page paints). The icons are pixel masks in the text's color. */
:root{--icon-day:url(/assets/ui/theme-day.svg);--icon-night:url(/assets/ui/theme-night.svg);--icon-auto:url(/assets/ui/theme-auto.svg)}
header button.theme-toggle{position:relative;gap:var(--sp-1);min-width:44px;min-height:44px;margin:0;padding:0 var(--sp-1);border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));color:var(--text);text-shadow:none;white-space:nowrap}
header button.theme-toggle[aria-expanded=true]{border-image-source:url(/assets/ui/slot-gold.png);color:var(--ink)}
header button.theme-toggle:hover,header button.theme-toggle:focus-visible,.theme-pick:hover,.theme-pick:focus-visible{filter:brightness(1.08)}
header button.theme-toggle::before,.theme-pick::before{content:"";flex:none;width:32px;height:32px;background:currentColor;-webkit-mask:var(--icon-auto) center/32px 32px no-repeat;mask:var(--icon-auto) center/32px 32px no-repeat}
header button.theme-toggle[data-now=day]::before,.theme-pick.day::before{-webkit-mask-image:var(--icon-day);mask-image:var(--icon-day)}
header button.theme-toggle[data-now=night]::before,.theme-pick.night::before{-webkit-mask-image:var(--icon-night);mask-image:var(--icon-night)}
header>button.theme-toggle{flex:none;width:44px;padding:0;margin-left:calc(-1*var(--sp-1))}
header>button.theme-toggle .label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.theme-panel{display:flex;flex-basis:100%;flex-wrap:wrap;justify-content:flex-end;gap:var(--sp-1);padding:var(--sp-1) 0}
.theme-panel[hidden]{display:none}
.theme-pick{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:72px;min-height:64px;margin:0;padding:var(--sp-h) var(--sp-1);border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));color:var(--text);font:600 var(--size-small)/1.2 var(--sans);text-transform:none;text-shadow:none}
.theme-pick[aria-pressed=true]{border-image-source:url(/assets/ui/slot-gold.png);color:var(--ink)}
.theme-pick:active{padding:var(--sp-h) var(--sp-1)}
/* 1.8.1 (owner): which kind of watch a hero plays on, beside its name on Rankings and its class on the hero page: a small pixel watch
   face outlined in the text's color, round for Wear OS and square for Apple Watch, its name spoken (site.js watchMark). */
.watch-kind{display:inline-block;flex:none;width:16px;height:16px;image-rendering:pixelated;margin:0 0 0 var(--sp-1);vertical-align:-2px;background:currentColor;-webkit-mask:url(/assets/ui/watch-wear.svg) center/16px 16px no-repeat;mask:url(/assets/ui/watch-wear.svg) center/16px 16px no-repeat;opacity:.85}
.watch-kind.apple{-webkit-mask-image:url(/assets/ui/watch-apple.svg);mask-image:url(/assets/ui/watch-apple.svg)}
.panel>h2:first-child,.panel>.eyebrow+h2,.stage>h2:first-child{margin-top:0}
.sheet>:last-child,.reading>:last-child,.panel>:last-child,.card>:last-child,.stage>:last-child,.plaque>:last-child{margin-bottom:0}
@media(prefers-color-scheme:light){
 /* By day the windows are peach sheets, and everything inside one is the same rose (1.8, one inner color, as the night has one
    slate): the boards, the paper notes (paper-rose, the artist's paper in the stage's fill) and the wells. Small print, links and
    accents darken on the rose so they keep their contrast. */
 :where(:root:not([data-theme=night])) .stage,:where(:root:not([data-theme=night])) .boss-card,:where(:root:not([data-theme=night])) .week,:where(:root:not([data-theme=night])) .campfire,:where(:root:not([data-theme=night])) .plaque,:where(:root:not([data-theme=night])) header,:where(:root:not([data-theme=night])) footer,:where(:root:not([data-theme=night])) .panel,:where(:root:not([data-theme=night])) .card,:where(:root:not([data-theme=night])) .tier,:where(:root:not([data-theme=night])) .check-line,:where(:root:not([data-theme=night])) .ranks div,:where(:root:not([data-theme=night])) .says{--muted:var(--wood-dark);--accent:var(--plum-deep);--link:var(--plum-deep)}
}
 /* By day the windows are peach sheets, and everything inside one is the same rose (1.8, one inner color, as the night has one
    slate): the boards, the paper notes (paper-rose, the artist's paper in the stage's fill) and the wells. Small print, links and
    accents darken on the rose so they keep their contrast. */
 :where(:root[data-theme=day]) .stage,:where(:root[data-theme=day]) .boss-card,:where(:root[data-theme=day]) .week,:where(:root[data-theme=day]) .campfire,:where(:root[data-theme=day]) .plaque,:where(:root[data-theme=day]) header,:where(:root[data-theme=day]) footer,:where(:root[data-theme=day]) .panel,:where(:root[data-theme=day]) .card,:where(:root[data-theme=day]) .tier,:where(:root[data-theme=day]) .check-line,:where(:root[data-theme=day]) .ranks div,:where(:root[data-theme=day]) .says{--muted:var(--wood-dark);--accent:var(--plum-deep);--link:var(--plum-deep)}

@media(forced-colors:active){.sheet,.reading,.tip-page,.panel,.card,.tier,.stage,.boss-card,.week,.campfire,.plaque,.says,button,.button,.store{border-image:none;border:2px solid CanvasText}}

/* A title on a ribbon, laid over the top edge of its window. */
.ribbon{display:table;margin:calc(-13*var(--u)) auto calc(3*var(--u));max-width:100%;border-style:solid;border-color:transparent;border-width:calc(3*var(--u)) calc(11*var(--u)) calc(7*var(--u));border-image:url(/assets/ui/ribbon.png) 3 11 7 11 fill/calc(3*var(--u)) calc(11*var(--u)) calc(7*var(--u));padding:0 calc(2*var(--u));color:var(--ink);text-align:center}
h1.ribbon,h2.ribbon,.sheet>h2.ribbon{color:var(--ink)}
.ribbon::after{display:none}
.ribbon.free{margin:0 auto calc(4*var(--u))}
/* Text set to 200% on a phone (the browser's own size, which media queries read in em): a page's title ribbon steps down to the label
   size, as the camp's does, so it fits 320 points without scrolling sideways (QA WB-6). Inputs never run past their column.
   Text set to 200% on the page's own root, which a media query can't see, is marked by theme.js (data-large-text) before the first
   paint, and every page's title steps down the same way on a phone, as the camp's always has (the rule beside the camp's, below).
   Normal text is unchanged. */
@media(max-width:15em){h1.ribbon{font-size:var(--size-label)}}
input,textarea{max-width:100%}
.log-grid .place{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.reading>h1:not(.ribbon),.tip-page h1{color:var(--accent)}
.reading,.tip-page,main>.sheet{margin:calc(12*var(--u)) auto calc(10*var(--u))}
.reading{max-width:900px}.reading.wide{max-width:none}

/* Header: the camp's signboard. The menu is a game menu, with the cursor on the page you're on. */
header,main,footer{position:relative;max-width:1232px;margin:0 auto;padding:0 var(--gutter)}
header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 24px;margin-top:8px;border-style:solid;border-color:transparent;border-width:calc(10*var(--u)) calc(8*var(--u)) calc(9*var(--u));border-image:var(--plaque) 11 10 10 9 fill/calc(11*var(--u)) calc(10*var(--u)) calc(10*var(--u)) calc(9*var(--u));max-width:1216px;width:calc(100% - 2*var(--gutter));padding:0 calc(var(--inset) - 8*var(--u))}
/* The wordmark and the menu share one size and one line; the tagline is small text on the same baseline. */
.brand{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--text);text-decoration:none}
/* The icon is 24 art pixels drawn eight times over, so it stays sharp only at a quarter of its file: 48 px is two screen pixels
   to one art pixel, and three or four on a high-density screen. At 32 px its rows came out uneven. */
.brand img{width:58px;height:38px;image-rendering:pixelated}
/* 1.8: the tagline is the link's name for a screen reader and nothing on screen: the page under the header already says what this is. */
.brand span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
nav[aria-label=Main]{display:flex;flex-wrap:wrap;gap:0 16px}
nav[aria-label=Main] a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:0 2px;color:var(--text);text-decoration:none;white-space:nowrap;box-shadow:inset 0 -4px 0 transparent}
nav[aria-label=Main] a::before{content:"";flex:none;--ics:1;width:16px;height:16px;background:url(/assets/ui/icons16.png) calc(var(--icx,0)*var(--ics)*-1px) calc(var(--icy,0)*var(--ics)*-1px)/calc(128px*var(--ics)) calc(48px*var(--ics)) no-repeat}
nav[aria-label=Main] a[href="/play/"]::before{--icx:0;--icy:0}
nav[aria-label=Main] a[href="/leaderboard/"]::before{--icx:64;--icy:0}
nav[aria-label=Main] a[href="/field-guide/"]::before{--icx:112;--icy:16}
nav[aria-label=Main] a[href="/commons/"]::before{--icx:32;--icy:0}
nav[aria-label=Main] a[href="/workshop/"]::before{background:url(/assets/sprites/gnewton_icon.png) center/contain no-repeat}
nav[aria-label=Main] a:hover,nav[aria-label=Main] a:focus-visible{box-shadow:inset 0 -4px 0 var(--line)}
/* 1.8: The Commons and the Workshop are in every page's markup, holding their places unseen until menu.js hears they're on, so the
   bar never shifts once drawn. Switched off (or with no answer) they leave the menu. */
nav[aria-label=Main] a[data-switch][hidden]{display:inline-flex;visibility:hidden}
nav[aria-label=Main] a[aria-current=page]{color:var(--accent);box-shadow:inset 0 -4px 0 var(--accent)}
/* 1.7.3 (owner, "5 tabs"): at most five places, Play, Rankings, The Commons, Workshop and Field guide.
   1.8 (owner: the header had "a ton of empty space"): from 720 px the signboard is one row, the mark, a linked hero's errands, the
   five places in the middle, then Sound and Music as two small slots. A tablet shows the places as words and the mark alone; from
   1040 px each place gets its icon back and the wordmark stands beside the mark, spaced wider as the screen grows. */
@media(min-width:720px){
 header{gap:var(--sp-h) var(--sp-2)}
 nav[aria-label=Main]{flex:1 1 0;min-width:0;flex-wrap:nowrap;gap:0 12px;justify-content:center}
}
@media(min-width:720px) and (max-width:1039px){nav[aria-label=Main] a::before{display:none}}
@media(min-width:768px){nav[aria-label=Main]{gap:0 var(--sp-2)}}
@media(min-width:880px){nav[aria-label=Main]{gap:0 var(--sp-3)}}
@media(min-width:1100px){nav[aria-label=Main]{gap:0 var(--sp-4)}}
/* On a phone the header is one row, the wordmark and a Menu button (menu.js adds it), so it never takes a third of the first
   screen. Menu opens the places below it as a board of item slots, three to a row, each icon over its name, the page you're
   on in the gold slot, with Sound and Music in a small row of their own under the places; Menu again, Escape or a tap outside
   closes it. Without JavaScript the board is simply always open. */
.menu-toggle{display:none}
@media(max-width:719px){
 header{justify-content:space-between;gap:0 var(--sp-1)}
 .menu-toggle{display:inline-flex;gap:var(--sp-1);padding:0 var(--sp-1)}
 .menu-toggle .bars{display:block;width:14px;height:2px;background:currentColor;box-shadow:0 -5px currentColor,0 5px currentColor}
 /* 1.8: open, the button reads "Close" (menu.js) and its bars are a cross. */
 .menu-toggle[aria-expanded=true] .bars{width:10px;height:10px;background:linear-gradient(currentColor,currentColor) 0px 0px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 8px 0px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 2px 2px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 6px 2px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 4px 4px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 2px 6px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 6px 6px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 0px 8px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 8px 8px/2px 2px no-repeat;box-shadow:none}
 nav[aria-label=Main]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-1);width:100%;padding:var(--sp-1) 0 var(--sp-h)}
 nav[aria-label=Main] a{flex-direction:column;justify-content:center;gap:var(--sp-h);min-height:64px;padding:var(--sp-1) var(--sp-h);border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));box-shadow:none;text-align:center;white-space:normal;line-height:1.1}
 nav[aria-label=Main] a:hover,nav[aria-label=Main] a:focus-visible{box-shadow:none;filter:brightness(1.08)}
 nav[aria-label=Main] a[aria-current=page]{border-image-source:url(/assets/ui/slot-gold.png);color:var(--ink);box-shadow:none}
 nav[aria-label=Main] a::before{width:32px;height:32px;--ics:2}
 header.menu-ready nav[aria-label=Main]:not(.open){display:none}
}
@media(max-width:719px) and (scripting:enabled){header nav[aria-label=Main]:not(.open){display:none}}
/* Under 360 px a third of the board is narrower than "Workshop" inside its frame, so the board goes two across. */
@media(max-width:359px){nav[aria-label=Main]{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 1.8: an odd place out on the two-across board takes the whole row rather than leaving a hole beside it. */
@media(max-width:359px){nav[aria-label=Main] a:last-of-type:nth-of-type(odd){grid-column:1/-1}}
/* Sound is off until the player turns it on (sound.js). 1.8 (owner: the header had "a ton of empty space"): Sound and Music are
   two item slots, in the header's row from 720 px (an icon each; the words stay in the button for a screen reader and as its tooltip)
   and with their words in the phone Menu board's own row. Sound is a speaker drawn in the slot's ink, with its waves while sound is
   on and a small cross while it's off; Music is the note from the icon sheet and opens the music's row. A slot turns gold while its
   switch is on or its row is open. */
header button.music-toggle,header button.sound-toggle{position:relative;gap:var(--sp-1);min-width:44px;min-height:44px;margin:0;padding:0 var(--sp-1);border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));color:var(--text);text-shadow:none;white-space:nowrap}
header button.sound-toggle:active,header button.music-toggle:active{border-image-source:var(--slot)}
header button.sound-toggle[aria-pressed=true],header button.music-toggle[aria-expanded=true]{border-image-source:url(/assets/ui/slot-gold.png);color:var(--ink)}
header button.sound-toggle:hover,header button.sound-toggle:focus-visible,header button.music-toggle:hover,header button.music-toggle:focus-visible{filter:brightness(1.08)}
header button.sound-toggle::before{content:"";flex:none;width:32px;height:32px;background:linear-gradient(currentColor,currentColor) 4px 12px/8px 8px no-repeat,linear-gradient(currentColor,currentColor) 12px 8px/4px 16px no-repeat,linear-gradient(currentColor,currentColor) 16px 4px/4px 24px no-repeat,linear-gradient(currentColor,currentColor) 22px 13px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 26px 13px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 24px 15px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 22px 17px/2px 2px no-repeat,linear-gradient(currentColor,currentColor) 26px 17px/2px 2px no-repeat}
header button.sound-toggle[aria-pressed=true]::before{background:linear-gradient(currentColor,currentColor) 4px 12px/8px 8px no-repeat,linear-gradient(currentColor,currentColor) 12px 8px/4px 16px no-repeat,linear-gradient(currentColor,currentColor) 16px 4px/4px 24px no-repeat,linear-gradient(currentColor,currentColor) 22px 12px/2px 8px no-repeat,linear-gradient(currentColor,currentColor) 26px 8px/2px 16px no-repeat}
header button.music-toggle::before{content:"";flex:none;width:32px;height:32px;background:currentColor;-webkit-mask:url(/assets/ui/icons16.png) -224px 0/256px 96px no-repeat;mask:url(/assets/ui/icons16.png) -224px 0/256px 96px no-repeat;image-rendering:pixelated}
header>button.sound-toggle,header>button.music-toggle{flex:none;width:44px;padding:0}
header>button.sound-toggle .label,header>button.music-toggle .label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
header>button.music-toggle{margin-left:calc(-1*var(--sp-1))}
nav[aria-label=Main] .menu-row{display:none}
@media(max-width:719px){
 header>.sound-toggle{display:none}
 nav[aria-label=Main] .menu-row{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-1);margin-top:var(--sp-h);padding-top:var(--sp-1);border-top:calc(2*var(--u)) solid var(--line)}
 nav[aria-label=Main] .menu-row button{flex:1 1 0;max-width:180px;min-height:44px;margin:0}
}
/* 1.7.1: Music sits beside Sound and opens a row along the bottom of the header: the music's own switch ("Effects only" when off)
   and its volume (menu.js). On a phone it sits beside Sound under the Menu board's places, and the row opens under the board. */
.music-panel{display:flex;flex-basis:100%;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--sp-1) var(--sp-2);padding:var(--sp-1) 0}
.music-panel[hidden]{display:none}
.music-panel p{margin:0}
.music-panel label{display:inline-flex;align-items:center;gap:var(--sp-1);min-height:44px;font-size:var(--size-small);color:var(--muted);white-space:nowrap}
.music-panel input[type=range]{width:160px;max-width:55vw;min-height:44px;margin:0;accent-color:var(--gold)}
.music-panel input[type=range]:disabled{opacity:.5}
@media(max-width:719px){
 header>.music-toggle{display:none}
 .music-panel{justify-content:flex-start}
 header>.theme-toggle{display:none}
 nav[aria-label=Main] .menu-row button.theme-toggle{flex:0 0 52px;padding:0}
 nav[aria-label=Main] .menu-row .theme-toggle .label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .theme-panel{justify-content:center}
}
/* The narrowest phones keep the mark and drop the word beside it (still the link's name), so the header stays one row. */
@media(max-width:379px),(min-width:720px) and (max-width:1039px){.brand{font-size:0;gap:0}}
main{padding-bottom:8px}
footer{margin:calc(10*var(--u)) auto var(--sp-2);border-style:solid;border-color:transparent;border-width:calc(10*var(--u)) calc(8*var(--u)) calc(9*var(--u));border-image:var(--plaque) 11 10 10 9 fill/calc(11*var(--u)) calc(10*var(--u)) calc(10*var(--u)) calc(9*var(--u));max-width:1216px;width:calc(100% - 2*var(--gutter));padding:0 calc(var(--inset) - 8*var(--u))}
footer p{margin:0 0 var(--sp-1)}footer p:last-child{margin:0}
/* 1.8: the art, sound and music credits fold behind "Credits" at the footer's end. */
footer .credits{margin:0}footer .credits summary{display:inline-flex;align-items:center;min-height:44px;color:var(--link);cursor:url(/assets/ui/hand.png) 9 1,pointer}
footer .credits[open] summary{min-height:32px}footer .credits p{margin:0}
/* ---- web-design-pass: the footer (owner, 2026-11-29: "the footer is not properly organized/oriented either") ----
   Three tiers, centred in the plaque at every width, as the windows above it are: the site's links in one row (two by two on a
   phone), each a 44-point target; the line about the game; then a dotted rule with © Big Bwain and Credits side by side. Open, the
   credits take the whole width under them. Every page has the same footer (Tip's leaves out its own link). */
footer{text-align:center}
footer .links{display:flex;flex-wrap:wrap;justify-content:center;gap:0 var(--sp-4);margin:0}
footer .links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px}
footer>.small{max-width:44em;margin:0 auto var(--sp-1);text-wrap:balance}
footer .foot-end{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 var(--sp-3);padding-top:var(--sp-h);border-top:2px dotted var(--line)}
footer .foot-end>p{margin:0}
footer .credits[open]{flex-basis:100%}
footer .credits p{max-width:60em;margin:0 auto var(--sp-1)}
@media(max-width:479px){footer .links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--sp-2)}footer .links a:last-child:nth-child(odd){grid-column:1/-1}}
/* 1.8: a linked browser's errands, a chip beside the wordmark that opens The Commons' noticeboard (menu.js); a gold pip when one is
   ready to hand in. */
.errands-chip{display:inline-flex;align-items:center;gap:var(--sp-1);min-height:44px;padding:0 var(--sp-1);color:var(--text);text-decoration:none;white-space:nowrap}
.errands-chip .i16{flex:none}
.errands-chip .count{display:inline-flex;align-items:center;min-height:28px;padding:2px 8px 0;border:2px solid var(--gold);background:var(--ink);color:var(--gold-hi)}
.errands-chip.ready .count::after{content:"";width:6px;height:6px;margin-left:4px;background:var(--good);box-shadow:0 0 0 2px var(--navy)}
.errands-chip:hover .count,.errands-chip:focus-visible .count{filter:brightness(1.12)}
@media(max-width:719px){.errands-chip{margin-right:auto;padding:0}}
/* A phone keeps the header one row: the notebook and the count, the words in the link's name. */
@media(max-width:479px){.errands-chip .small{display:none}}
/* From 720 to 1239 px the one-row header has no room for the chip, so the count rides on The Commons' own place as a badge over
   the end of its name (menu.js adds both; only one shows). */
.tab-badge{display:none}
@media(min-width:720px) and (max-width:1239px){
 .errands-chip{display:none}
 nav[aria-label=Main] a{position:relative}
 .tab-badge{position:absolute;top:0;right:-12px;display:inline-flex;align-items:center;height:14px;padding:0 4px;background:var(--gold);color:var(--ink);line-height:14px}
 .tab-badge .label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .tab-badge.ready::after{content:"";width:4px;height:4px;margin-left:4px;background:var(--life-lo)}
}
/* Rows of links wrap whole links, with space between them and no " · " to strand at a line's end. */
.links{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-h) var(--sp-2)}

/* Buttons. The red one is the game's own; pressed is its pressed art, and a chosen one wears the yellow rim. */
button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-style:solid;border-color:transparent;border-width:calc(4*var(--u));border-image:url(/assets/ui/btn.png) 4 fill/calc(4*var(--u));padding:0 8px;background:none;color:var(--cream);text-decoration:none;text-shadow:0 2px 0 var(--plum);cursor:url(/assets/ui/hand.png) 9 1,pointer}
button:hover,.button:hover{filter:brightness(1.06)}
button:active,.button:active{border-image-source:url(/assets/ui/btn-down.png);padding-top:2px}
button:disabled{filter:grayscale(1) brightness(.8);cursor:default}
button.quiet,.tabs button,.filters button,.character button,.pick,.menu-toggle{border-width:calc(6*var(--u));border-image:url(/assets/ui/btn-stone.png) 6 fill/calc(6*var(--u));color:var(--field);text-shadow:0 2px 0 var(--navy)}
button.quiet:active,.tabs button:active,.filters button:active,.character button:active,.pick:active,.menu-toggle:active,.menu-toggle[aria-expanded=true]{border-image-source:url(/assets/ui/btn-stone-down.png);padding-top:0}
button.quiet:disabled,.tabs button:disabled,.filters button:disabled,.character button:disabled,.pick:disabled{border-image-source:url(/assets/ui/btn-stone-off.png);filter:none}
@media(min-width:1000px){button.quiet,.tabs button,.filters button,.character button,.pick,.menu-toggle{min-height:48px}}
.tabs button[aria-selected=true],.pick[aria-pressed=true],.pick[aria-checked=true]{border-width:calc(5*var(--u));border-image:url(/assets/ui/btn-blue-on.png) 5 fill/calc(5*var(--u));margin:calc(-1*var(--u));color:var(--navy);text-shadow:none}
/* Store buttons keep their gem ends whole: the art stretches sideways only, at four screen pixels to one. */
.badges{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.store{display:flex;align-items:center;justify-content:center;flex:1 1 160px;height:56px;border-style:solid;border-color:transparent;border-width:0 28px;border-image:url(/assets/ui/btn-gold.png) 0 7 fill/0 28px;color:var(--ink);text-align:center;text-decoration:none;white-space:nowrap;cursor:url(/assets/ui/hand.png) 9 1,pointer}
.store:hover{filter:brightness(1.08)}.store:active{border-image-source:url(/assets/ui/btn-gold-down.png)}
@media(min-width:481px){.store{max-width:240px}}

/* Forms */
/* 1.8: fields are game slots in the pixel frame, never a bright white web form: the slot's own frame, its fill as a color (so a select
   can draw its arrow on it), the window's ink and the reading font. A select drops the browser's own look for a drawn arrow. */
select,input[type=text],input[type=search],input[type=number],textarea{min-height:44px;margin:0;padding:var(--sp-1);border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3/calc(3*var(--u));border-radius:0;background:var(--slot-fill) padding-box;color:var(--text);font:inherit;box-shadow:none}
select{-webkit-appearance:none;appearance:none;padding-right:var(--sp-4);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 18px) 55%,calc(100% - 12px) 55%;background-size:6px 6px;background-repeat:no-repeat}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
/* QA WC-15: a box to type in is drawn like the dropdowns beside it (deploy #16), the stone frame with its cream words, in both themes
   and on every page, so no field is the brightest thing in its panel. */
input[type=text],input[type=search],input[type=number],textarea{min-height:48px;padding:0 var(--sp-1);border:calc(6*var(--u)) solid transparent;border-image:url(/assets/ui/btn-stone.png) 6 fill/calc(6*var(--u));background:none;color:var(--field);font:600 var(--size-body)/1.25 var(--sans);text-shadow:0 2px 0 var(--navy);caret-color:var(--field)}
textarea{padding:var(--sp-1)}
input:is([type=text],[type=search],[type=number]):disabled,textarea:disabled{border-image-source:url(/assets/ui/btn-stone-off.png)}
input:is([type=text],[type=search],[type=number])::placeholder,textarea::placeholder{color:var(--field);opacity:.7;text-shadow:none}
@media(forced-colors:active){input:is([type=text],[type=search],[type=number]),textarea{border:2px solid FieldText;border-image:none}}
label{display:inline-block;margin-right:8px}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:8px 8px;border-bottom:2px solid var(--line)}th{color:var(--muted);font-size:var(--size-small)}

/* Sprites. An animated one is a strip of frames shown one at a time. --w and --h are a frame's size in art pixels, --d the
   loop's length in milliseconds and --s the whole-number scale; the f-classes are frame counts. A sprite with one frame bobs. */
.sprite{flex:none}
.anim{flex:none;width:calc(var(--w,21)*var(--s,3)*1px);height:calc(var(--h,21)*var(--s,3)*1px);object-fit:cover;object-position:0 0;animation:idle calc(var(--d,1280)*1ms) steps(4,jump-none) infinite}
.anim.f2{animation-timing-function:steps(2,jump-none)}.anim.f5{animation-timing-function:steps(5,jump-none)}.anim.f6{animation-timing-function:steps(6,jump-none)}
.anim.still{animation:bob 1.4s steps(1) infinite}
.anim.frozen{animation:none}
.anim.flip{scale:-1 1}
/* The sprites written into the home page itself: the campfire (12 px, four frames) and the heroes (21 px, two frames). */
.anim.fire{--w:12;--h:12;--d:640}.camp-art .fire{--s:calc(var(--g-n) + 1)}.anim.hero{--w:21;--h:21;--d:1280}
@keyframes idle{to{object-position:100% 0}}
@keyframes bob{50%{translate:0 calc(var(--s,3)*-1px)}}
.shade{filter:brightness(0);opacity:.7}
.slot{display:grid;place-items:center;flex:none;width:calc(var(--slot-size,72)*1px);height:calc(var(--slot-size,72)*1px);border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));box-sizing:content-box}
.slot.gold{border-image-source:url(/assets/ui/slot-gold.png)}
.icon{display:inline-block;flex:none;width:calc(8*var(--u));height:calc(8*var(--u));background:0 0/100% 100% no-repeat;vertical-align:-2px}
/* The one 16 px icon sheet (art/ui/icons16.png and sheets.json): places, stances, coins, salvage, pages, trophies, health,
   danger and rarity. Always beside words, so each is decoration (aria-hidden) unless it stands alone with a label. */
.i16{--ics:1;display:inline-block;flex:none;width:calc(16px*var(--ics));height:calc(16px*var(--ics));background:url(/assets/ui/icons16.png) calc(var(--icx)*var(--ics)*-1px) calc(var(--icy)*var(--ics)*-1px)/calc(128px*var(--ics)) calc(48px*var(--ics)) no-repeat;vertical-align:-3px;image-rendering:pixelated}
.i16.x2{--ics:2;vertical-align:middle}
.i16.camp{--icx:0;--icy:0}.i16.bag{--icx:16;--icy:0}.i16.map{--icx:32;--icy:0}.i16.notebook{--icx:48;--icy:0}.i16.rankings{--icx:64;--icy:0}.i16.settings{--icx:80;--icy:0}.i16.close{--icx:96;--icy:0}.i16.sound{--icx:112;--icy:0}
.i16.alert{--icx:0;--icy:16}.i16.help{--icx:16;--icy:16}.i16.assault{--icx:32;--icy:16}.i16.guard{--icx:48;--icy:16}.i16.focus{--icx:64;--icy:16}.i16.coins{--icx:80;--icy:16}.i16.salvage{--icx:96;--icy:16}.i16.pages{--icx:112;--icy:16}
.i16.trophies{--icx:0;--icy:32}.i16.health{--icx:16;--icy:32}.i16.danger{--icx:32;--icy:32}.i16.common{--icx:48;--icy:32}.i16.uncommon{--icx:64;--icy:32}.i16.rare{--icx:80;--icy:32}.i16.relic{--icx:96;--icy:32}.i16.op{--icx:112;--icy:32}
.icon.assault{background-image:url(/assets/ui/icon-assault.png)}.icon.guard{background-image:url(/assets/ui/icon-guard.png)}.icon.focus{width:calc(7*var(--u));background-image:url(/assets/ui/icon-focus.png)}

/* Health bars: the game's frame around a bar that drains in steps. */
.hp{position:relative;height:calc(10*var(--u));border:calc(4*var(--u)) solid transparent;border-image:url(/assets/ui/hpbox.png) 4 fill/calc(4*var(--u));overflow:hidden}
.hp span{display:block;height:100%;background:linear-gradient(var(--life-hi) 0 34%,var(--life) 34% 78%,var(--life-lo) 78%);transform:scaleX(var(--hp,1));transform-origin:left center;transition:transform .5s steps(5)}
.hp.low span{background:linear-gradient(var(--danger-hi) 0 34%,var(--danger) 34% 78%,var(--danger-lo) 78%)}
.hp.big{height:calc(14*var(--u))}
.hp.big::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 2px),var(--ink) calc(10% - 2px) 10%);pointer-events:none}
.hp-text{margin:4px 0 0;color:var(--muted);font-size:var(--size-small)}
.meter{height:calc(6*var(--u));background:var(--well);box-shadow:inset 0 0 0 2px var(--ink)}
.meter span{display:block;height:100%;background:linear-gradient(var(--gold-hi) 0 40%,var(--gold) 40% 80%,var(--gold-lo) 80%);transform:scaleX(var(--v,0));transform-origin:left center}

/* Lists of cards: gear, foes, wares, trophies. */
.cards,.gear{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:16px;margin:0 0 16px;padding:0;list-style:none}
.card{display:flex;align-items:flex-start;gap:16px}
.card h3,.card h4{margin:0 0 2px}.card p{margin:2px 0}.card>div{min-width:0}
.boss{display:inline-block;padding:2px 8px 0;background:var(--ink);color:var(--gold-hi);vertical-align:middle}
.tell{color:var(--muted)}.counter{font-weight:600}
.rarity{font-weight:600}.rarity.common{color:var(--common)}.rarity.uncommon{color:var(--uncommon)}.rarity.rare{color:var(--rare)}.rarity.relic{color:var(--relic)}
.price{color:var(--accent);font-weight:600}
.how{padding-left:24px}.how li{margin:8px 0;color:var(--text)}
.tells{margin:4px 0;padding-left:16px}.tells li{color:var(--muted);font-size:var(--size-small)}
.trophy{display:flex;align-items:center;gap:8px;margin-top:8px}

/* Home: the camp. A ribbon says what the game is, the pitch sits under it, and the campsite shows what's out today. */
section.camp{display:grid;gap:var(--gap);margin:calc(10*var(--u)) 0 calc(12*var(--u))}
.camp h1{justify-self:center;margin:0}
/* The title hangs over the camp as a banner: centred, and a clear step narrower than the windows under it, so its tails
   never sit a pixel or two off their edges. */
.camp .ribbon{margin:0 auto;max-width:calc(100% - 2*var(--sp-2))}
/* guidlands.com: the site's name alone on the banner, centred over the camp at every width (owner, 2026-11-29: "remove "A fantasy RPG
   for your Watch", and just center the Guidlands banner"; the page's <title> still says what the game is). On a phone with large
   text the name steps down to the label size, as the front door's sign does, so it never runs past a 320-point screen. */
@media(max-width:719px){:root[data-large-text=on] .camp h1.ribbon{font-size:var(--size-label)}}
@media(max-width:719px){:root[data-large-text=on] h1.ribbon{font-size:var(--size-label)}}/* The front door's two controls (door-mode.js sets data-mode, data-door-can and data-door-home on <html> before the first paint).
   "Skip the map" is the first thing on the page while the camp is showing. "Show the map" is on The Commons' page (owner,
   2026-11-29: "the Show the Map button can be added under The Commons page. That way the homepage continues to look clean"),
   under its title, shown only while the front door is on and guidlands.com would open on the Play page for this browser.
   Neither shows otherwise, and a browser without the script never sees either. */
.door-skip,.door-show{display:none}
:root[data-mode=world] .door-skip{display:inline-flex;margin:var(--sp-1)}
:root[data-door-can=on][data-door-home=words] .door-show{display:flex;justify-content:center;margin:0 0 var(--sp-3)}
/* There it says "Explore Commons" (owner, 2026-11-29: "Keep one, except have it say: "Explore Commons""), and the page's own "Walk the
   map" door steps aside while it shows, so a browser that skipped the camp sees one way to the map; everyone else keeps the door. */
:root[data-door-can=on][data-door-home=words] .cmd-door#door-map{display:none}
.pitch .lead{margin-bottom:16px}
.campsite{display:grid;gap:var(--gap);min-width:0}
/* The camp's board, and a boss's card on the bosses page: what it is beside a state chip, its name and the catalog's line
   about it, the bar, one sentence about who has struck, and a hint row (the style it fights in, the stance it's weak to). */
.hud{display:grid;gap:var(--sp-h)}
.hud p,.hud .hud-name{margin:0}
/* The label and the chip share a baseline, and the chip's rim is a border, so its outer edge sits exactly on the window's inset. */
.hud-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--sp-1)}
.hud-head p{margin:0}
.chip{flex:none;margin:0;border:2px solid var(--gold);padding:2px 8px 0;background:var(--ink);color:var(--gold-hi)}
.hud .hp{margin:var(--sp-h) 0}
.hint{display:flex;flex-wrap:wrap;gap:var(--sp-h) var(--sp-3);margin:0;padding:0;list-style:none}
.hint li{white-space:nowrap}.hint .i16{margin-right:var(--sp-h)}
/* The camp itself, in a frame, with its caption on a plate along the bottom edge: one object, as a hero's camp is (.den).
   The caption has a line for the fire and one for the duels, each beside its icon. */
.scene{border:var(--u) solid var(--ink);background:var(--ink)}
.camp-art{position:relative;height:calc(76*var(--g));overflow:hidden;background:var(--ground) var(--ground-art) center top/calc(96*var(--g)) auto}
.caption{display:grid;gap:var(--sp-h);margin-top:var(--u);padding:var(--sp-1) calc(var(--inset) - var(--u));background:var(--well)}
.caption p{display:flex;align-items:flex-start;gap:var(--sp-1);margin:0}.caption .i16{margin-top:4px}
/* Gnewton has the camp's one line of dialogue: his portrait in an item slot, the line, and his name on its own line under it. */
.says{display:flex;align-items:flex-start;gap:var(--sp-2);margin:0}
.says .portrait{display:grid;place-items:center;flex:none;width:48px;height:48px;border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));box-sizing:content-box}
.says p{margin:0 0 var(--sp-h)}
.reading .says{margin:0 0 var(--sp-2)}
.says .who{margin:0;font-size:var(--size-small);color:var(--muted)}.says .who::before{content:"— "}
.camp-art>*{position:absolute;left:calc(var(--x)*var(--g));bottom:calc(var(--y)*var(--g));--s:var(--g-n)}
:root{--g-n:3}@media(min-width:1000px){:root{--g-n:4}}
.p{width:calc(var(--w)*var(--g));height:calc(var(--h)*var(--g));background:var(--i) 0 0/100% 100% no-repeat}
.p.tent{--w:44;--h:45;--i:url(/assets/scene/tent-night.png)}.p.tent2{--w:44;--h:45;--i:url(/assets/scene/tent-gold-night.png)}
.p.dirt{--w:48;--h:48;--i:var(--dirt)}.p.stump{--w:14;--h:11;--i:url(/assets/scene/stump-night.png)}.p.logs{--w:15;--h:15;--i:url(/assets/scene/logs-night.png)}
.p.bush{--w:26;--h:21;--i:url(/assets/scene/bush-night.png)}.p.rock{--w:16;--h:14;--i:url(/assets/scene/rock-night.png)}.p.pine{--w:38;--h:46;--i:url(/assets/scene/pine-night.png)}
.p.sign{--w:14;--h:15;--i:url(/assets/scene/sign-night.png)}.p.crate{--w:12;--h:15;--i:url(/assets/scene/crate-night.png)}.p.barrel{--w:12;--h:14;--i:url(/assets/scene/barrel-night.png)}
@media(prefers-color-scheme:light){
 :where(:root:not([data-theme=night])) .p.tent{--i:url(/assets/scene/tent.png)}:where(:root:not([data-theme=night])) .p.tent2{--i:url(/assets/scene/tent-gold.png)}:where(:root:not([data-theme=night])) .p.stump{--i:url(/assets/scene/stump.png)}:where(:root:not([data-theme=night])) .p.logs{--i:url(/assets/scene/logs.png)}
 :where(:root:not([data-theme=night])) .p.bush{--i:url(/assets/scene/bush.png)}:where(:root:not([data-theme=night])) .p.rock{--i:url(/assets/scene/rock.png)}:where(:root:not([data-theme=night])) .p.pine{--i:url(/assets/scene/pine.png)}:where(:root:not([data-theme=night])) .p.sign{--i:url(/assets/scene/sign.png)}:where(:root:not([data-theme=night])) .p.crate{--i:url(/assets/scene/crate.png)}:where(:root:not([data-theme=night])) .p.barrel{--i:url(/assets/scene/barrel.png)}
}
 :where(:root[data-theme=day]) .p.tent{--i:url(/assets/scene/tent.png)}:where(:root[data-theme=day]) .p.tent2{--i:url(/assets/scene/tent-gold.png)}:where(:root[data-theme=day]) .p.stump{--i:url(/assets/scene/stump.png)}:where(:root[data-theme=day]) .p.logs{--i:url(/assets/scene/logs.png)}
 :where(:root[data-theme=day]) .p.bush{--i:url(/assets/scene/bush.png)}:where(:root[data-theme=day]) .p.rock{--i:url(/assets/scene/rock.png)}:where(:root[data-theme=day]) .p.pine{--i:url(/assets/scene/pine.png)}:where(:root[data-theme=day]) .p.sign{--i:url(/assets/scene/sign.png)}:where(:root[data-theme=day]) .p.crate{--i:url(/assets/scene/crate.png)}:where(:root[data-theme=day]) .p.barrel{--i:url(/assets/scene/barrel.png)}

/* Firelight, only at night: three hard-edged amber rings close around the flame, so it stays pixel art and reads as light. (A
   wider, paler disc over the dark grass turned grey and read as a smudge.) */
.glow{width:calc(30*var(--g));height:calc(30*var(--g));border-radius:50%;background:radial-gradient(circle,rgb(255 190 80/.5) 0 36%,rgb(255 150 50/.3) 36% 66%,rgb(255 120 40/.14) 66% 100%);opacity:var(--glow);animation:flicker 1.2s steps(3) infinite}
@keyframes flicker{50%{scale:.94}}
/* Where everything stands, in art pixels from the left and from the ground. Phones see the middle of the camp, and so does the
   half-width column from 720 to 999 px, where the whole camp ran past its frame and cut off Gnewton and the boss (QA WC-10). */
.camp-art .pine{--x:-8;--y:24}.camp-art .tent{--x:20;--y:26}.camp-art .tent2{--x:-200;--y:0}.camp-art .crate{--x:-200;--y:0}.camp-art .barrel{--x:-200;--y:0}
.camp-art .dirt{--x:-8;--y:-6}.camp-art .glow{--x:1;--y:11}.camp-art .fire{--x:10;--y:14}.camp-art .stump{--x:-200;--y:0}.camp-art .logs{--x:26;--y:4}
.camp-art .h1{--x:40;--y:22}.camp-art .h2{--x:32;--y:4}.camp-art .h3{--x:50;--y:8}
.camp-art .bush{--x:96;--y:40}.camp-art .rock{--x:60;--y:-2}.camp-art .sign{--x:-200;--y:0}
.camp-art .lair{--x:66;--y:-12}.camp-art #camp-boss{--x:72;--y:4}.camp-art #gnewton{--x:2;--y:30}
.camp-art .seat{--s:var(--g-n)}.camp-art .s1{--x:-4;--y:16}.camp-art .s2{--x:16;--y:24}.camp-art .s3{--x:20;--y:2}.camp-art .s4{--x:-200;--y:0}.camp-art .s5{--x:-200;--y:0}
@media(min-width:560px) and (max-width:719px),(min-width:1000px){
 .camp-art{height:calc(84*var(--g))}
 .camp-art .pine{--x:-14;--y:30}.camp-art .tent{--x:22;--y:28}.camp-art .tent2{--x:62;--y:34}.camp-art .crate{--x:104;--y:44}.camp-art .barrel{--x:116;--y:46}
 .camp-art .dirt{--x:12;--y:-8}.camp-art .glow{--x:21;--y:9}.camp-art .fire{--x:30;--y:12}.camp-art .stump{--x:8;--y:6}.camp-art .logs{--x:50;--y:0}
 .camp-art .h1{--x:86;--y:28}.camp-art .h2{--x:74;--y:12}.camp-art .h3{--x:92;--y:4}
 .camp-art .bush{--x:150;--y:46}.camp-art .rock{--x:112;--y:0}.camp-art .sign{--x:128;--y:44}
 .camp-art .lair{--x:120;--y:-12}.camp-art #camp-boss{--x:128;--y:4}.camp-art #gnewton{--x:110;--y:34}
 .camp-art .s1{--x:10;--y:20}.camp-art .s2{--x:40;--y:22}.camp-art .s3{--x:44;--y:0}.camp-art .s4{--x:18;--y:-4}.camp-art .s5{--x:-2;--y:6}
 /* A column narrower than the whole camp (1000 to about 1150 px) slides the boss, its lair, Gnewton and the sign in from the right
    edge rather than cutting them off. */
 .camp-art #camp-boss{left:min(calc(128*var(--g)),calc(100% - 30*var(--g)))}.camp-art .lair{left:min(calc(120*var(--g)),calc(100% - 38*var(--g)))}
 .camp-art #gnewton{left:min(calc(110*var(--g)),calc(100% - 26*var(--g)))}.camp-art .sign{left:min(calc(128*var(--g)),calc(100% - 30*var(--g)))}
}
.camp-art #camp-boss{display:grid;justify-items:center}
#camp-boss.hit{animation:hit .4s steps(2,end)}
/* A boss that's down stops moving and loses its color. */
#camp-boss.down .anim{animation:none;filter:grayscale(1) brightness(.6)}
.paused *{animation-play-state:paused}
.margin span{font-weight:600;white-space:nowrap}
/* Gnewton beside the words he wrote: the lead wraps around him, so a phone keeps its full width for reading. */
.author{display:flex;align-items:center;justify-content:center;gap:var(--sp-2);max-width:48rem;margin:0 auto 16px}.author .lead{margin:0}.author .anim{--s:3;flex:none}
.margin span::before{content:"— "}
.book .margin{margin:8px 0 0;font-size:var(--size-small);color:var(--muted)}
/* From 720 px the title hangs over two columns, the pitch beside the camp, with the live strip under both; from 1000 px
   Gnewton's line moves up under the pitch. Both columns end on one line: the pitch's window and the camp's grass stretch. */
@media(min-width:720px){section.camp{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"title title" "pitch site" "live live" "says says";column-gap:var(--sp-3)}.camp h1{grid-area:title}.pitch{grid-area:pitch}.live-wrap{grid-area:live}.campsite{grid-area:site}.camp>.says{grid-area:says}}
@media(min-width:1000px){section.camp{grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"title title" "pitch site" "says site" "live live";grid-template-rows:auto auto 1fr;column-gap:var(--sp-4)}}

/* Home: the notice board, how to play, and the rest. */
.board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;margin:0 0 calc(14*var(--u));padding:0;list-style:none}
.board h3{margin:0 0 4px;color:var(--accent)}.board p{margin:0 0 8px}.board .plaque{display:flex;flex-direction:column}.board .more{margin-top:auto}
/* Onward links at the foot of a section: whole links that wrap, with space between them. */
.more{display:flex;flex-wrap:wrap;gap:var(--sp-h) var(--sp-2);margin-top:var(--sp-2)}
/* A tally: counts down the left in bold, what each one counts beside it, a dotted rule between rows. */
.tally{margin:0 0 8px;padding:0;list-style:none}
.tally li{display:flex;align-items:baseline;gap:var(--sp-1);padding:var(--sp-h) 0;border-bottom:2px dotted var(--line)}.tally li:last-child{border-bottom:0}
.tally b{flex:none;min-width:2.5em;text-align:right}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin:0 0 16px;padding:0;list-style:none}
.features>*{border:calc(4*var(--u)) solid transparent;border-image:var(--paper) 9 fill/calc(9*var(--u));padding:calc(3*var(--u)) calc(4*var(--u))}
.features h3,.features h2{margin:0 0 8px;color:var(--text)}.features h2::after{display:none}.features p{margin:0;color:var(--text)}
.steps{counter-reset:step}.steps>li{counter-increment:step}.steps h3::before{content:counter(step) ". ";color:var(--accent)}
.steps .art{display:flex;align-items:flex-end;gap:8px;height:64px;margin-bottom:8px;--s:3}
.steps .art .icon{width:48px;height:48px}.steps .art .icon.focus{width:42px}.steps .art .fire{--s:5}
/* ---- web-design-pass: How to play (owner, 2026-11-29: "the "How to Play" area is off centered and bottom oriented") ----
   Three cards of one height in one row once the section has room for three (40rem, so 200% text keeps one card a row until the
   screen is wide), one card a row before that: never two and a lonely third. Each card is centred on its own middle, read from the
   top: its pictures standing on one ground line in a 72-point strip, then the step and its line. "More about the game" sits
   centred under the three. The third step shows the camp's own stump, fire and log pile, so its picture is as full as the others. */
#quick-start{container-type:inline-size}
#quick-start .steps{grid-template-columns:minmax(0,1fr);gap:var(--sp-2)}
@container (min-width:40rem){#quick-start .steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
#quick-start .steps>li{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center}
#quick-start .steps .art{justify-content:center;align-items:flex-end;gap:var(--sp-1);height:72px;margin:0 0 var(--sp-1)}
/* The stump and the log pile are the camp scene's own, in their daylight colors by day and by night: on a card they stand on the
   card, not on night grass, and the night copies read as dark blobs there. */
#quick-start .steps .art .p{flex:none}
#quick-start .steps .art .p.stump{--i:url(/assets/scene/stump.png)}#quick-start .steps .art .p.logs{--i:url(/assets/scene/logs.png)}
/* The fire picture shares its class with "Around the fire" (.fire, a section's margins), which lifted it 30 points off the ground. */
#quick-start .steps .art .fire{margin:0}
#quick-start .steps h3{margin:0 0 var(--sp-h)}
#quick-start .steps p{max-width:28em}
#quick-start>.more{justify-content:center}
.release-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:24px 16px;margin:16px 0;padding:0;list-style:none}
.release-list li{display:flex;flex-direction:column;gap:8px}.release-list h3{margin:0 0 4px}.release-list p{margin:0;color:var(--text)}
.shot,figure img{image-rendering:auto;width:100%;max-width:230px;height:auto;aspect-ratio:1;object-fit:contain;border:4px solid var(--ink);border-radius:50%;background:var(--black);box-shadow:0 0 0 4px var(--stone-rim),0 6px 0 4px var(--ink)}
figure img{aspect-ratio:auto;border-radius:44px;max-width:220px}
.captures{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:24px;justify-items:center}
figure{margin:0;text-align:center}figcaption{padding-top:16px;font-size:var(--size-small);color:var(--muted)}
.shop-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;margin:16px 0;padding:0;list-style:none}
.shop-list li{border:calc(4*var(--u)) solid transparent;border-image:var(--paper) 9 fill/calc(9*var(--u));padding:calc(3*var(--u)) calc(4*var(--u))}
.shop-list .sprites{display:flex;gap:8px;margin-bottom:8px}.shop-list h3{margin:0 0 4px}.shop-list p{margin:0;color:var(--text)}
.creator-support{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:24px}
.creator-support>img{width:96px;height:96px}.creator-support h2{margin-top:0}
.creator-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:16px 0}
@media(max-width:600px){.creator-support{grid-template-columns:1fr}.creator-support>img{width:72px;height:72px}}

/* Practice: an arena with the hero on the left and the foe on the right, the stances under it, and what happened in words. */
.modes,.picks{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
/* On a phone a row of buttons that wraps fills its width, so the rows read as a set rather than a ragged edge. */
@media(max-width:479px){.tabs button,.picks button{flex:1 1 auto}}
.arena{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:8px;max-width:820px;margin:0 auto 8px}
#practice .tell,#practice .stances,#practice .say,#practice .rounds{max-width:820px;margin-left:auto;margin-right:auto}
/* Each fighter stands on its own patch of trodden dirt, as a boss does, with its name plate and health under its feet. */
.fighter{position:relative;min-width:0;text-align:center}
.fighter .pose{display:grid;place-items:end center;min-height:calc(32*var(--g));padding-bottom:calc(2*var(--g));background:var(--dirt) center bottom/calc(48*var(--g)) auto no-repeat}
.fighter .anim,.fighter .sprite{margin:0 auto;display:block}
.fighter .name{display:inline-block;padding:2px 8px 0;background:var(--ink);color:var(--gold-hi)}
/* What the foe is like, on a scrap of parchment: the description, labelled, so it reads as the game's note and not the page's. */
#practice .tell{padding:8px 16px;background:var(--parchment);color:var(--parchment-ink);box-shadow:inset 0 0 0 2px var(--ink)}
#practice .tell strong{color:var(--parchment-ink)}
/* At night the scrap is the dark well with a gold rule, the page's only light panel otherwise (QA S-13); by day it stays parchment. */
:is(#practice,.practice) .tell{background:var(--well);color:var(--text);box-shadow:inset 4px 0 0 var(--gold),inset 0 0 0 2px var(--ink)}:is(#practice,.practice) .tell strong{color:var(--text)}
@media(prefers-color-scheme:light){:where(:root:not([data-theme=night])) :is(#practice,.practice) .tell{background:var(--parchment);color:var(--parchment-ink);box-shadow:inset 0 0 0 2px var(--ink)}:where(:root:not([data-theme=night])) :is(#practice,.practice) .tell strong{color:var(--parchment-ink)}}
:where(:root[data-theme=day]) :is(#practice,.practice) .tell{background:var(--parchment);color:var(--parchment-ink);box-shadow:inset 0 0 0 2px var(--ink)}:where(:root[data-theme=day]) :is(#practice,.practice) .tell strong{color:var(--parchment-ink)}
.fighter .name{margin:8px 0 0}.fighter .meta{margin:0 0 8px;font-size:var(--size-small);color:var(--muted)}
.fighter .kit{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;margin:0 0 4px}.fighter .kit .piece{width:32px;height:32px}
/* 1.13.0 (C10.6): an eight-slot side's pieces, four to a row in the Gear screen's order, so both sides' rows line up. */
.fighter .kit.eight{display:grid;grid-template-columns:repeat(4,max-content);justify-content:center}
.fighter.hit .anim,.fighter.hit .sprite{animation:hit .4s steps(2,end)}.fighter.lit .anim,.fighter.lit .sprite{filter:drop-shadow(0 0 0 var(--gold-hi)) drop-shadow(0 0 6px var(--gold-hi))}
.fighter.down .anim,.fighter.down .sprite{animation:none;filter:grayscale(1) brightness(.6)}
.spark{position:absolute;top:10px;left:50%;width:56px;height:56px;margin-left:-28px;background:var(--gold-hi);-webkit-mask:url(/assets/sprites/fx_spark.png) center/contain no-repeat;mask:url(/assets/sprites/fx_spark.png) center/contain no-repeat;pointer-events:none;animation:spark .5s steps(4) forwards}
.floater{position:absolute;top:0;left:50%;translate:-50% 0;padding:0 4px;background:var(--ink);color:var(--gold-hi);pointer-events:none;animation:float .9s steps(6) forwards}
@keyframes hit{0%,100%{translate:0}50%{translate:-6px 0}}@keyframes spark{from{opacity:1;scale:.4}to{opacity:0;scale:1.3}}@keyframes float{from{opacity:1;translate:-50% 0}to{opacity:0;translate:-50% -30px}}
.stances{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:8px;margin:0 0 8px}
.stances button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}
.say{min-height:3.2em;margin:0 0 8px;padding:8px 16px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);color:var(--text);font-weight:600}
.rounds{margin:0 0 8px;padding-left:24px;color:var(--text)}
.note{margin:0 0 8px;font-size:var(--size-small);color:var(--muted)}
.round{min-height:1.6em;margin:8px 0;text-align:center;font-weight:600}
.result{text-align:center}
.replay-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.check-line.ok{box-shadow:inset 6px 0 0 var(--good)}.check-line.warn{box-shadow:inset 6px 0 0 var(--warn)}
.report tr.picked{box-shadow:inset 6px 0 0 var(--gold)}.report tr.picked th{padding-left:16px}
.floater.callout{color:var(--cream);background:var(--plum)}
.report th,.report td{padding:8px 8px 8px 0;border-bottom:2px solid var(--line);text-align:left;vertical-align:top}.report td span{display:block}.report thead th{color:var(--muted);font-size:var(--size-small)}.report th:first-child{width:4em}.report tbody a{display:inline-block;min-width:44px;min-height:44px}
.versus{align-self:center;justify-self:center;width:40px;height:40px}
/* The duel replay keeps its three columns: fighter, crossed swords, fighter. */
.stage.duel{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:8px;margin:16px 0 8px}

/* The wardrobe and a hero's camp: a small scene with a tent, a banner, the hero and their things. */
.den{position:relative;height:calc(52*var(--g));width:calc(96*var(--g));max-width:100%;margin:0 auto;overflow:hidden;background:var(--ground) var(--ground-art) 0 0/calc(96*var(--g)) auto;box-shadow:inset 0 0 0 calc(1*var(--u)) var(--ink);--s:var(--g-n)}
.den>*{position:absolute;left:calc(var(--x)*var(--g));bottom:calc(var(--y)*var(--g))}
.den .tent{--x:0;--y:4}.den .flag{--x:36;--y:12}.den .hero{--x:50;--y:3}.den .d1{--x:72;--y:2}.den .d2{--x:6;--y:0}.den .bush{--x:70;--y:30}
.den .title{left:0;right:0;bottom:0;margin:0;padding:1px 8px;background:var(--ink);color:var(--gold-hi);font-size:var(--size-small);font-weight:600;text-align:center}
.wardrobe{display:grid;gap:16px;margin:16px 0}.wardrobe .say:empty{display:none}.wardrobe>div:not(.plate)>:is(h3,p){text-align:center}
.wardrobe fieldset{margin:0 0 8px;padding:0;border:0;min-width:0}.wardrobe legend,.field label{padding:0;margin:0 0 4px;font-weight:600}
.field{display:grid;gap:2px;margin:0 0 8px}.field select{width:100%;max-width:420px}
@media(min-width:800px){.wardrobe{grid-template-columns:auto minmax(0,1fr);align-items:start}}
/* On a phone the six dropdowns stack under the preview (QA WB-17): the preview stays at the top of the screen while they scroll under
   it, on the panel's own colour, so each pick shows without scrolling back up. */
@media(max-width:799px) and (min-height:560px){.wardrobe>.plate{position:sticky;top:0;z-index:2;padding:8px 0;border:0 solid transparent;border-image:var(--sheet) 11 fill/0}}

/* Leaderboard: tabs, filters, rows, Player of the Week and the code search. */
.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 16px}
.filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:8px 0}.filters label{margin:0}
.character{display:flex;align-items:center;gap:16px;padding:8px 0;border-bottom:2px solid var(--line)}
.character a{font-weight:600}.character .who{display:flex;flex-direction:column;flex:1;min-width:0}.character .who span{color:var(--muted);font-size:var(--size-small)}
/* Rankings (1.7.3): five boards, each with the same row: place, the hero idling, name over details, and on the right the number it ranks by. On a phone
   the details run under the number; from 600 px they share a line. Compare is a mode: each hero row then ends in a slot to pick. */
#board .filters{min-height:48px;margin:0 0 8px}.filters .picks,.filters .sub{margin:0}.field-line{display:inline-flex;align-items:center;gap:8px}
#board{margin-bottom:16px}#more{margin-top:16px}#board-note{margin:16px 0 0}
/* 1.13.0 (owner, Nov 29: one centred column): More heroes, Find a hero and the page's small print centre under the board. */
.reading:not(.hg-page)>.lead,.reading>p.follow{text-align:center}button#more{display:block;margin-inline:auto}.find{text-align:center}.find h2::after{margin-inline:auto}.find form{justify-content:center}.find~p.small{text-align:center}
/* 1.12 (owner: "make the selections dropdowns instead of individual buttons"): every choice of board is a labelled select, side by
   side while they fit and one a row when they don't (a phone, or text at 200%), so the first hero is never far down the page. */
/* ---- Dropdowns: the site's one way to pick a view (owner, Nov 29: "organize these into much more simple and organized
   dropdowns", Rankings first, then the field guide and every page with too many buttons). dropdown.js builds them; static pages
   write the same markup:
     <div class="dropdowns" role="group" aria-label="…"><span class="dropdown"><label for="x">Board</label><select id="x">…</select></span>…</div>
   The label is pixel type, like a button. The select is a real select in the stone button frame, with a drawn pixel arrow, so the
   keyboard, screen readers and phones work as always; pressed or open it wears the pressed stone. Where the browser can style the
   open list (appearance: base-select), it's a paper panel in the window's colors, day and night, each choice at least 44 px tall.
   Side by side while they fit, centred, one a row on a phone or with big text. */
.dropdowns{display:flex;flex-wrap:wrap;justify-content:center;align-items:end;gap:var(--sp-1) var(--sp-2);margin:0 0 var(--sp-2)}
/* QA WC-16: a dropdown is as wide as its chosen words (field-sizing), at least 13rem, up to the row's width, so a long choice never
   runs under the arrow; on a phone each takes the row, as before. */
.dropdown{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp-h);flex:0 1 auto;min-width:min(13rem,100%);max-width:100%}
@media(max-width:479px){.dropdown{flex:1 1 100%}}
.dropdown>label{margin:0;padding-inline:calc(2*var(--u));color:var(--accent);font:400 var(--size-label)/1.125 var(--pixel);text-transform:uppercase;-webkit-font-smoothing:none;font-synthesis:none}
.dropdown select{grid-row:2;grid-column:1;width:100%;min-width:0;field-sizing:content;min-height:48px;margin:0;padding:0 calc(9*var(--u) + var(--sp-1)) 0 var(--sp-1);border:calc(6*var(--u)) solid transparent;border-image:url(/assets/ui/btn-stone.png) 6 fill/calc(6*var(--u));border-radius:0;background:none;color:var(--field);font:600 var(--size-body)/1.25 var(--sans);text-shadow:0 2px 0 var(--navy);text-overflow:ellipsis;cursor:url(/assets/ui/hand.png) 9 1,pointer}
.dropdown select:hover{filter:brightness(1.06)}
.dropdown select:active{border-image-source:url(/assets/ui/btn-stone-down.png)}
.dropdown select:disabled{border-image-source:url(/assets/ui/btn-stone-off.png);filter:none;cursor:default}
/* The arrow: a stepped pixel triangle in the button's cream with its navy shadow, over the select's right end (clicks go through). */
.dropdown::after{content:"";grid-row:2;grid-column:1;justify-self:end;align-self:center;width:calc(7*var(--u));height:calc(5*var(--u));position:relative;z-index:1;margin-right:calc(6*var(--u) + var(--sp-1));background:url(/assets/ui/select-arrow.svg) 0 0/100% 100% no-repeat;pointer-events:none}
.dropdown:has(select:disabled)::after{opacity:.5}
/* A picture beside the select (Rankings' boss) keeps the arrow at the select's end. */
.dropdown>.with-art{grid-row:2;grid-column:1}.dropdown>.with-art select{grid-row:auto;grid-column:auto}
/* Browsers that draw the open list themselves still get the window's colors where they allow it. */
.dropdown option{background-color:var(--well);color:var(--text);text-shadow:none;font-weight:400}
@supports (appearance:base-select){
 .dropdown select,.dropdown select::picker(select){appearance:base-select}
 .dropdown select::picker-icon{display:none}
 .dropdown select::picker(select){min-inline-size:anchor-size(self-inline);max-block-size:min(26rem,70vh);margin-block:var(--sp-h);padding:var(--sp-h) 0;overflow-y:auto;border:calc(4*var(--u)) solid transparent;border-image:var(--paper) 9 fill/calc(9*var(--u));background:none;color:var(--text);box-shadow:0 calc(2*var(--u)) 0 var(--ink)}
 .dropdown option{display:flex;align-items:center;gap:var(--sp-1);min-block-size:44px;padding:var(--sp-h) var(--sp-1);background:none;color:var(--text);font:400 var(--size-body)/1.25 var(--sans);text-shadow:none;cursor:url(/assets/ui/hand.png) 9 1,pointer}
 .dropdown option:hover,.dropdown option:focus-visible{background:var(--well);outline:none}
 .dropdown option:focus-visible{box-shadow:inset 0 0 0 2px var(--accent)}
 .dropdown option:checked{font-weight:600;color:var(--accent)}
 .dropdown option::checkmark{content:"";order:-1;flex:none;width:calc(3*var(--u));height:calc(3*var(--u));background:currentColor}
 .dropdown option:not(:checked)::checkmark{visibility:hidden}
}
.dropdown select:open{border-image-source:url(/assets/ui/btn-stone-down.png)}
.dropdown:has(select:open)::after{transform:scaleY(-1)}
@media(forced-colors:active){.dropdown select{border:2px solid ButtonText;border-image:none}.dropdown::after{forced-color-adjust:none;background:ButtonText;clip-path:polygon(0 0,100% 0,50% 100%)}}
/* ---- Dropdowns end ---- */
/* The chosen boss idles beside the Boss select, every boss at 2x (their art is 21 px or less) so their pixels match; animated() sets
   its own scale inline, so this one wins with !important. A board nobody stands on yet dims it. */
.with-art{display:flex;align-items:center;gap:8px;min-width:0}.with-art select{flex:1}
#pick-boss-art{flex:none;display:grid;place-items:center;width:44px;height:44px}#pick-boss-art .anim{--s:2!important}
#pick-boss-art.bare .anim{filter:grayscale(1) brightness(.7)}
/* Show moves: under a row's place, how far its hero moved since this browser last looked, an arrow and the number ("up 3" to a
   screen reader), or a small "new". Nothing for a hero in the same place, or on a first look. */
.standings .place{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.move{display:inline-flex;align-items:center;gap:2px;font:600 var(--size-small)/1 var(--sans);white-space:nowrap;text-transform:none;letter-spacing:normal}
.move.up{color:var(--good)}.move.down{color:var(--warn)}.move.new{color:var(--accent)}
.move.up::before,.move.down::before{content:"";width:8px;height:6px;background:currentColor;clip-path:polygon(50% 0,100% 100%,0 100%)}
.move.down::before{clip-path:polygon(0 0,100% 0,50% 100%)}
@media(max-width:599px){
 #board .filters{gap:8px}
}
/* The Bosses and Duels tabs carry what their old pages did, around the board: the world bosses above the boss boards, and the
   campfire, recent duels and practice rankings around the duel rankings. How it works folds away under its own name. */
#board h2{margin-top:24px}#out-title{margin-top:8px}#board .campfire{margin:8px 0}#duel-extras .triangle{margin-top:16px}
@media(min-width:800px){#board .feed{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}}
.more-about{margin:16px 0 0}.more-about summary{min-height:44px;padding:8px 0;box-sizing:border-box;font-weight:600;cursor:url(/assets/ui/hand.png) 9 1,pointer}.more-about[open] summary{margin-bottom:8px}
.standings .character{display:grid;grid-template-columns:32px 44px minmax(0,1fr) auto;grid-template-areas:"place art name score" "place art meta meta";align-items:center;gap:0 8px;min-height:84px}
.standings .who{display:contents}
/* A row with no line under its name (a hidden hero) centres the name on the row (owner, 2026-11-29: one number under the name). */
.standings .who>.name:only-child{grid-row:1/-1;align-self:center}
.standings .place{grid-area:place;text-align:right;color:var(--muted)}
.standings .anim{grid-area:art;justify-self:center}
.standings .name{grid-area:name;align-self:end;display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;min-width:0}.standings .name a{min-width:0;overflow-wrap:anywhere}
.standings .grade,.standings .unit,.standings .meta span{color:var(--muted);font-size:var(--size-small)}.standings .grade{white-space:nowrap}
.standings .meta{grid-area:meta;align-self:start;margin:0;font-size:var(--size-small)}
.standings .score{grid-area:score;display:grid;justify-items:end;text-align:right;white-space:nowrap}
/* The top three wear gold numbers, and a linked browser's own hero a gold edge. */
.standings .top .place,.standings .top .score .num{color:var(--accent)}
.standings .character.mine{box-shadow:inset 4px 0 0 var(--gold);padding-left:0}
.standings .blank{border-bottom-color:transparent}
/* A Compare slot: empty until picked, then gold with the order it was picked in. Only pick-two mode shows them. */
.standings .compare{display:none;grid-area:compare;place-items:center;width:44px;height:44px;min-height:0;border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));padding:0;color:var(--ink);text-shadow:none}
.standings .compare:active{padding:0}.standings .compare[aria-pressed=true]{border-image-source:url(/assets/ui/slot-gold.png)}
.standings.comparing .compare{display:grid}
.standings.comparing .character{grid-template-columns:32px 44px minmax(0,1fr) auto 44px;grid-template-areas:"place art name score compare" "place art meta meta compare"}
@media(min-width:600px){
 .standings .character{grid-template-columns:32px 44px minmax(0,1fr) auto;grid-template-areas:"place art name score" "place art meta score";gap:0 16px;min-height:66px}
 .standings.comparing .character{grid-template-columns:32px 44px minmax(0,1fr) auto 44px;grid-template-areas:"place art name score compare" "place art meta score compare"}
 .standings .meta{display:contents}.standings .meta span{grid-area:meta;align-self:start}
 .standings .score{min-width:64px}
}
.week{display:grid;gap:4px;margin:0 0 16px;--s:1}
.week h2{margin:0}.week h2::after{display:none}
.find form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.find label{margin:0}.find input{width:7em;text-transform:uppercase;letter-spacing:.12em}
.results{list-style:none;margin:0;padding:0}
.check{display:inline-flex;align-items:center;gap:8px;margin:0;min-height:44px}.check input{width:22px;height:22px;margin:0;accent-color:var(--danger)}.check.off{opacity:.6}
#compare-content,#profile{overflow-x:auto}
/* A wide table in a phone's width scrolls inside its own box, never the page. */
.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.reading table{overflow-wrap:normal;-webkit-hyphens:auto;hyphens:auto}
.copy-field{width:100%;max-width:520px;margin:8px 0 0}

/* Duels: the campfire, the feed, rankings and the triangle. */
.campfire{display:flex;align-items:center;gap:16px;margin:16px 0}
.campfire h2{margin:0;color:var(--muted);font-size:var(--size-small)}.campfire h2::after{display:none}.campfire p{margin:2px 0}
.feed{margin:0;padding:0;list-style:none}.feed li{display:flex;align-items:center;gap:16px;padding:8px 0;border-bottom:2px solid var(--line)}
.feed .pair{display:flex;flex:none;gap:2px;--s:2}.feed .who{display:flex;flex-direction:column;min-width:0}.feed .who span{color:var(--muted);font-size:var(--size-small)}.feed a{font-weight:600}
.panel+p.small{margin-top:var(--sp-2)}
.triangle ul{padding-left:24px}.triangle li{margin:8px 0;color:var(--text)}

/* World bosses: each boss out now on its own stage, how it works, and the roster. */
.boss-list{display:grid;gap:16px;margin:16px 0}
.boss-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 24px}
.boss-card .pose{display:grid;place-items:end center;align-self:stretch;min-width:calc(48*var(--g));min-height:calc(40*var(--g));background:var(--dirt) center bottom/calc(48*var(--g)) auto no-repeat;--s:var(--g-n)}
.boss-card .pose.down .anim{animation:none;filter:grayscale(1) brightness(.6)}
/* A felled boss wears a stamp over its patch of dirt. */
/* A felled boss says so on its chip, beside what it is, as on the home page's board. */
.boss-card h3{margin:0}.boss-card p{margin:4px 0}.boss-card .hud-head p{margin:0}.boss-card .hp{margin:8px 0}.boss-card .hint{margin:4px 0}
@media(max-width:560px){.boss-card{grid-template-columns:1fr}}
/* 1.13.0 (current boss contract CB6): the countdown to the next current boss, on a card and on Play's tile. Even digits, so the line
   doesn't shuffle each second; the time itself never breaks (no-break spaces), the words before it may. */
.boss-wait,.tile-line .wait-shown{color:var(--accent);font-variant-numeric:tabular-nums}.boss-wait button{margin-left:var(--sp-1)}
.roster-group h3{margin:24px 0 8px;color:var(--accent)}

/* Hero pages: a character sheet. Portrait and camp, then gear, numbers, badges, the shelf and the records. */
.sheet-top{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:8px}
.plate{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:8px;text-align:center}

/* A hero's name is theirs, so it's text, never pixel type (visual direction, Type); the class and level ride beside it as a badge. */
.hero-id .class{margin:0;color:var(--accent)}
/* Experience is XP blue, never gold (visual direction, Color roles). */
.hero-id .xp .meter span,.skill-row .meter span,#trade .meter span{background:linear-gradient(var(--watch-text) 0 20%,var(--xp) 20% 80%,var(--navy) 80%)}
.doll button .i16{position:absolute;right:2px;bottom:2px}
.stats-group{margin:16px 0 8px;font:400 var(--size-small)/1.5 var(--sans);color:var(--muted)}
.hero-id .xp{margin:8px 0 2px}.hero-id p{margin:0 0 4px}
.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:8px}.share p{margin:0}
.textbutton{display:inline;min-height:44px;border:0;border-image:none;padding:0 2px;background:none;color:var(--link);font:400 var(--size-body)/1.5 var(--sans);text-align:left;text-transform:none;text-shadow:none;text-decoration:underline;text-underline-offset:4px;-webkit-font-smoothing:auto}
@media(min-width:800px){.sheet-top{grid-template-columns:auto minmax(0,1fr);gap:24px;align-items:center}}
.doll{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px;padding:0;list-style:none}
.doll button,.shelf button{display:grid;place-items:center;min-height:0;border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));padding:4px;width:76px;height:76px;text-shadow:none;position:relative}
.doll button[aria-pressed=true],.shelf button[aria-pressed=true]{border-image-source:url(/assets/ui/slot-gold.png)}
.doll button:active,.shelf button:active{padding:4px}
/* 1.8.1 (D2): the worn gear beside the hero, each slot framed in its rarity's color and an empty one dim. A phone lines the three up
   under the camp; from 1000 px, where the camp is as tall as three slots, they stand in a column at its right. */
.stage-row{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%}
.worn{display:flex;justify-content:center;gap:8px;margin:0;padding:0;list-style:none}
.worn button{position:relative;display:grid;place-items:center;width:64px;height:64px;min-height:0;padding:4px;border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));text-shadow:none}
.worn button::after{content:"";position:absolute;inset:2px;box-shadow:inset 0 0 0 2px var(--frame,transparent);pointer-events:none}
.worn .r-common{--frame:var(--common)}.worn .r-uncommon{--frame:var(--uncommon)}.worn .r-rare{--frame:var(--rare)}.worn .r-relic{--frame:var(--relic)}
.worn .r-empty{opacity:.5}.worn .r-empty::after{box-shadow:none;outline:2px dashed var(--muted);outline-offset:-8px}
.worn button[aria-pressed=true]{border-image-source:url(/assets/ui/slot-gold.png)}
.worn button:active{padding:4px}
.worn-detail{width:100%;max-width:calc(96*var(--g));margin:0;text-align:left}
@media(min-width:1000px){.stage-row{flex-direction:row;justify-content:center;align-items:flex-start}.worn{flex-direction:column}}
/* 1.8.1: the display case under the gear, its slots in rows at every width. */
.case{display:grid;justify-items:center;gap:8px;width:100%}.case h2{margin:0}.case-row{flex-wrap:wrap}
@media(min-width:1000px){.worn.case-row{flex-direction:row}}
/* 1.12.0 (E6.5): eight slots, and every row in words: its icon, slot, piece, stats and the look it shows (the sheet's Gear part). */
.gear-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15em),1fr));gap:8px 16px;width:100%;margin:0 0 16px;padding:0;list-style:none;text-align:left}
.gear-rows li{display:flex;gap:8px;align-items:flex-start;min-width:0}.gear-rows p{margin:0;overflow-wrap:anywhere}.gear-rows .name{font-weight:600}
.detail{min-height:4.6em;margin:0 0 16px;padding:8px 16px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink)}
.detail p{margin:0 0 2px}
/* Every group shares one grid: two columns when there's room, so the stats, Battle and Trade line up down the page and four
   stats never split three and one. */
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:8px 24px;margin:0 0 16px}
.stats div{display:grid;grid-template-columns:7.5em 2.6em minmax(0,1fr);align-items:center;gap:8px}
.stats .meter{display:block}
.stats dt{color:var(--muted)}.stats dd{margin:0}.stats .num{text-align:right}
.power{margin:0 0 16px}.power .num{color:var(--accent)}
.badges-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,224px),1fr));gap:8px;margin:0 0 16px;padding:0;list-style:none}
.pic{display:grid;place-items:center;flex:none;min-width:var(--pic);min-height:var(--pic)}
.badges-row li{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 4px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);font-weight:600}
/* The trophy shelf: a place for every trophy, on wooden boards. One not yet earned is a dark outline. */
.shelf{display:grid;grid-template-columns:repeat(auto-fill,76px);gap:12px 8px;margin:0 0 4px;padding:8px 8px 16px;list-style:none;background:repeating-linear-gradient(transparent 0 76px,var(--wood) 76px 80px,var(--wood-dark) 80px 84px,transparent 84px 88px)}
.shelf button{border-image:none;border:0;width:76px;height:76px;background:none}
.shelf button[aria-pressed=true]{box-shadow:inset 0 0 0 3px var(--gold-hi);border-image:none}
.shelf .count{position:absolute;right:0;bottom:0;padding:0 4px;background:var(--ink);color:var(--gold-hi)}
.history{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px;padding:0;list-style:none}
.history li{display:grid;grid-template-rows:auto 1fr auto;justify-items:center;gap:2px;width:108px;padding:8px 4px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);font-size:var(--size-small);text-align:center;overflow-wrap:anywhere}
.history .fell{color:var(--good);font-weight:600}.history .away{color:var(--muted)}
.pips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px;padding:0;list-style:none}
.pips a{display:grid;place-items:center;width:44px;height:44px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);text-decoration:none}
.pips .won{color:var(--good)}.pips .lost{color:var(--warn)}.pips .draw{color:var(--muted)}
.counters{display:flex;flex-wrap:wrap;gap:8px 32px;margin:0 0 16px}.counters p{margin:0}.counters .num{display:block;color:var(--accent)}
/* 1.7.3 on the hero page: the name sparkle beside the name; a skill's mastery mark and rank beside its Master badge; the camp touches
   and the following Boss Pet in the den, with the best mark on its title plate; and the boss records' table. Icons that wear the teal
   edge or the Soulbound sparkle are marks.js canvases, one art pixel larger and pulled back by it, so they line up with plain ones. */
.name-sparkle{display:inline-grid;place-items:center;width:32px;height:32px;margin-left:8px;vertical-align:middle}
.mastery{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;white-space:nowrap}
.den .at-fireflies{--x:40;--y:30}.den .at-glow{--x:60;--y:28}.den .at-glint{--x:20;--y:0}.den .follower{--x:34;--y:0}
.den .title .mark{vertical-align:middle;margin-right:8px}
.plate .touches{max-width:calc(96*var(--g));margin:0}
.records{max-width:640px;margin:0 0 16px}.records th,.records td{vertical-align:middle}.records th+th,.records td+td{text-align:right}
.records a{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.bound-art{position:relative;display:inline-grid}/* Only the sparkle sits over the corner; the piece's own art stays in flow, so the box (and the slot) centre it (1.8.3 fix). */
.bound-art .bound-mark{position:absolute;top:0;right:0}
/* Words only a screen reader says, beside a picture of them ("Stone Warden (7)" is read "Stone Warden, Juice 7"). */
.spoken{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* The bestiary: an open book on wide screens, one page at a time on narrow ones. Its paper keeps its own colors day and night. */
.book-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));align-items:center;gap:8px;margin:16px 0}.book-nav button{white-space:nowrap;padding-inline:4px}
.book-nav .where{grid-column:1/-1;order:-1;text-align:center;font-weight:600}
@media(min-width:560px){.book-nav{display:flex;flex-wrap:wrap;justify-content:center}.book-nav .where{order:0;min-width:8em}}
/* 1.7.3 (owner, "5 tabs"): the field guide's parts, the bestiary, the armory and the chapters, each a banner of its own with a
   button to it under the guide's introduction, so the old Armory and Chapter pages are one tap away. */
.guide-parts{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-1);margin:var(--sp-2) 0}
#bestiary-part,#armory,#chapters,#more>section,.guide-parts,.guide-pick{scroll-margin-top:calc(var(--sp-4) + 13*var(--u))}
/* 1.8: below the open book's width each page is the site's own inner panel (slate by night, rose by day), with the monster's name as
   the page's heading; the book's paper and ink colors belong to the open book alone. */
.book .page{border:calc(4*var(--u)) solid transparent;border-image:var(--paper) 9 fill/calc(9*var(--u));padding:calc(3*var(--u)) calc(4*var(--u));background:none}
.book .left h2{font-size:var(--size-title);line-height:var(--line-pixel);margin-top:var(--sp-1)}
.book .page+.page{margin-top:8px}
.book h2{margin:0 0 2px}.book h2::after{display:none}.book p{margin:0 0 8px}
.book .pose{display:grid;place-items:center;min-height:150px}
.book .kind{font-weight:600;color:var(--muted)}
.book .facts{margin:0 0 8px;padding:0;list-style:none}.book .facts li{padding:4px 0;border-bottom:2px dotted var(--line)}
/* 1.13.0 (owner, Nov 29: "the text/labels that aren't even needed"): a creature's spread is a bestiary entry. The left page is its
   picture, name and route from the top, with Gnewton's note at the foot; the right page is labelled pieces (.entry-part: a pixel
   label, then what it says) in the order a player reads them, its numbers as .counters (a number over its name), its drops beside
   the 16 px icons, and its tell (.flavour) quiet at the foot. Both pages run down one centred column on a phone. */
.book .page{display:flex;flex-direction:column;gap:var(--sp-2)}.book .page>*{flex-shrink:0;margin:0}.book .left{gap:var(--sp-1)}.book .left h2{margin-top:0}
.book .left{align-items:center;text-align:center}.book .page-foot{display:grid;gap:var(--sp-1);margin-top:auto}.book .page-foot .trophy{justify-content:center;text-align:left}
.entry-part h3{margin:0 0 var(--sp-h);color:var(--accent)}.entry-part p{margin:0}
.beat{display:flex;align-items:center;gap:var(--sp-1)}.beat .px{font-size:var(--size-title);line-height:var(--line-pixel)}
.book .counters{gap:var(--sp-1) var(--sp-4);margin:0}.book .counters p{color:var(--muted)}
.drops,.tells-by{display:grid;gap:var(--sp-h);margin:0;padding:0;list-style:none}
.drops li{display:flex;align-items:center;gap:var(--sp-1)}
.tells-by .i16{margin-right:var(--sp-h)}.tells-by .px{margin-right:var(--sp-1);color:var(--muted)}
.book .trophy{margin:0}
.book .flavour{margin-top:auto;padding-top:var(--sp-1);border-top:2px dotted var(--line)}.book .flavour p{margin:0}
/* The Chapters part follows the guide's one centred column: a chapter's name, line and rule under its dropdown, and the small print. */
#more-tracks>section>:is(h2,p),#chapters>p.small{text-align:center}#more-tracks>section>h2::after{margin-inline:auto}#story-private{margin:var(--sp-1) 0 0}
/* A part's one quiet Refresh, at its foot, when only the newest live content didn't load (display.js refreshFor). */
.refresh-for{margin:0 0 var(--sp-1);text-align:center;font-size:var(--size-small)}
@media(max-width:1139px){.book .right{text-align:center}.book .right :is(.beat,.counters){justify-content:center}.book .right .drops{justify-content:center}.book .right .drops li{justify-content:center}}
/* The open book needs its 4x scale: at 3x a weekly boss's page runs past the paper, so narrower screens get one page at a time. */
@media(min-width:1140px){
 .book{position:relative;width:1024px;height:704px;margin:0 auto;--b:4px;color:var(--ink);--muted:var(--ink-soft);--accent:var(--plum);--link:var(--plum-deep);--text:var(--ink);--soft:var(--wood-dark);--line:var(--gold-lo);--good:#1f5229}
 .book .leaf{position:absolute;inset:0;background:url(/assets/ui/book.png) 0 0/calc(2048*var(--b)) calc(176*var(--b)) no-repeat}
 .book.turning .leaf{animation:turn .56s steps(7,jump-none) forwards}.book.turning.back .leaf{animation-direction:reverse}
 .book.turning .page>*{visibility:hidden}
 .book .page{position:absolute;top:calc(34*var(--b));width:calc(82*var(--b));height:calc(116*var(--b));border:0;border-image:none;padding:0;overflow:auto}
 .book .page+.page{margin:0}
 /* Each page keeps the same margins inside its paper: 6 art pixels at the outer edge and 4 by the spine. */
 .book .left{left:calc(30*var(--b));text-align:center}.book .right{left:calc(144*var(--b))}
 .book .pose{min-height:0}
 /* The pages stop above the paper's curled foot, so the note and the tell sitting at the foot stay on flat paper. */
 .book .page{top:calc(30*var(--b));height:calc(108*var(--b))}
 /* The book's art starts 17 of its pixels down (a turning leaf, 10): it tucks up to the dropdowns by those 10, with no empty gap. */
 .book{margin-top:calc(-10*var(--b))}
}
@keyframes turn{to{background-position:calc(-1792*var(--b)) 0}}

/* The season road: milestones down a dirt road, a reward at each. */
.track{position:relative;margin:16px 0;padding:0 0 0 72px;list-style:none;display:grid;gap:8px}
.track::before{content:"";position:absolute;left:28px;top:0;bottom:0;width:4px;background:repeating-linear-gradient(var(--muted) 0 8px,transparent 8px 16px)}
/* 1.8.1 (D4): a chapter's trail, a pip at each reward (gold for the pass's), and its rewards as a two-column grid of slots. */
.trail{display:flex;align-items:center;gap:8px;margin:16px 0 8px;color:var(--muted);font:var(--size-small)/1 var(--pixel)}
.trail .road{position:relative;flex:1;height:calc(6*var(--u));background:var(--well);box-shadow:inset 0 0 0 2px var(--ink)}
.trail .pip{position:absolute;top:50%;left:calc(8px + var(--at)*(100% - 16px));width:12px;height:12px;translate:-50% -50%;rotate:45deg;background:var(--common);box-shadow:0 0 0 2px var(--ink)}
.trail .pip.pass{background:var(--gold)}
.trail.walked .fill{position:absolute;inset:2px auto 2px 2px;width:calc((100% - 4px)*var(--v,0));background:linear-gradient(var(--gold-hi) 0 40%,var(--gold) 40% 80%,var(--gold-lo) 80%)}
.trail.walked .pip:not(.got){opacity:.55}
.next-reward{display:flex;align-items:center;gap:8px;margin:8px 0 0}
.felled-row{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;list-style:none}
.track.loot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0;padding:0}
.track.loot::before{content:none}
.loot-slot{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;min-height:112px;padding:12px 8px 8px;border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));color:var(--text);font:600 var(--size-small)/1.25 var(--sans);text-transform:none;text-shadow:none;text-align:center}
.loot-slot.pass{box-shadow:inset 0 0 0 2px var(--gold)}
.loot-slot .tag{position:absolute;top:4px;right:4px;margin:0;padding:1px 4px;background:var(--gold);color:var(--ink);font:var(--size-small)/1.2 var(--pixel);text-transform:uppercase}
.loot-slot[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}
.loot-slot:active{padding:12px 8px 8px}
.loot-slot .count{position:absolute;top:4px;left:4px;margin:0;padding:1px 4px}
.loot-slot .name{overflow-wrap:anywhere}
.loot-detail{grid-column:1/-1;margin:0}
@media(min-width:700px){.track.loot{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* 1.13.0: big text on a phone, one reward a row, so a long name (Lighthouse Pennant) wraps between words, never inside one. */
@media(max-width:699px){:root[data-large-text=on] .track.loot{grid-template-columns:minmax(0,1fr)}}
.tier{position:relative;display:flex;align-items:center;gap:16px}
.tier .mile{position:absolute;left:calc(-72px - 4*var(--u));top:50%;translate:0 -50%;display:grid;place-items:center;width:60px;height:40px;background:var(--ink);box-shadow:0 0 0 2px var(--gold);color:var(--gold-hi)}
.tier.pass{box-shadow:inset 6px 0 0 var(--gold)}
.tier h3{margin:0}.tier p{margin:2px 0}.tier .meta{color:var(--muted);font-size:var(--size-small)}

/* Skills: the trade card, a skill's row with its level badge and XP bar, the Master badge, and the collection log's grid. */
.trade-card .picks button{gap:8px;min-height:64px}.trade-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.trade-confirm .sub{width:100%;margin:0}
.skill-row{margin:0 0 16px}.skill-name{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 4px}
.level-badge,.master{display:inline-block;padding:2px 8px 0;background:var(--ink);color:var(--gold-hi)}.master{background:var(--gold);color:var(--ink)}
.log-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,136px),1fr));gap:8px;margin:8px 0 0;padding:0;list-style:none}
.log-grid li{display:grid;justify-items:center;align-content:start;grid-template-rows:32px;align-items:center;gap:4px;padding:8px 4px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);text-align:center;overflow-wrap:anywhere}
.log-grid li.found{box-shadow:inset 0 0 0 2px var(--gold)}.log-grid .name{font-weight:600}.log-grid .small{margin:0}
.results .mine{box-shadow:inset 6px 0 0 var(--gold);padding-left:16px}
/* A linked browser's Today bar: a wooden board of chips, each an icon and what waits, each a way there. Nothing for anyone else. */
.today{margin:calc(10*var(--u)) 0 0;border-style:solid;border-color:transparent;border-width:calc(10*var(--u)) calc(8*var(--u)) calc(9*var(--u));border-image:var(--plaque) 11 10 10 9 fill/calc(11*var(--u)) calc(10*var(--u)) calc(10*var(--u)) calc(9*var(--u));padding:0 calc(var(--inset) - 8*var(--u))}
.today-who{margin:0 0 8px;font-weight:600}
.today-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:8px;margin:0;padding:0;list-style:none}
.today-chips a{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 8px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);color:var(--text);text-decoration:none;font-weight:600}
.today-chips a:hover{box-shadow:inset 0 0 0 2px var(--gold)}
@media(prefers-color-scheme:light){:where(:root:not([data-theme=night])) .today{--muted:var(--wood-dark);--accent:var(--plum-deep);--link:var(--plum-deep)}}:where(:root[data-theme=day]) .today{--muted:var(--wood-dark);--accent:var(--plum-deep);--link:var(--plum-deep)}
/* A strike from the website: three stances, then what landed, in the card's own words. */
.strike-box{margin:8px 0 0;padding:8px 0 0;border-top:2px solid var(--line)}
.strike-box .stances{margin:8px 0}.strike-left{margin:0;font-weight:600}.strike-say{min-height:1.5em;margin:0 0 8px;font-weight:600}
.hud .strike-box{margin-top:8px}
/* A boss that falls while the page is open: its trophy, lifted, and the words. */
.felled-moment{grid-column:1/-1;display:flex;align-items:center;gap:16px;padding:8px 16px;background:var(--ink);color:var(--cream);box-shadow:0 0 0 2px var(--gold);animation:lift .6s steps(3) both}
.felled-moment .px{margin:0;color:var(--gold-hi)}.felled-moment p{margin:0}
.boss-card.hit .pose .anim{animation:hit .4s steps(2,end)}
@keyframes lift{from{translate:0 16px;opacity:0}to{translate:0 0;opacity:1}}
@media(prefers-reduced-motion:reduce){.anim,.anim.still,.glow,.fighter.hit .anim,.fighter.hit .sprite,.book.turning .leaf,.felled-moment,.boss-card.hit .pose .anim{animation:none}.hp span{transition:none}.spark,.floater{display:none}}
@media(max-width:480px){th,td{padding:8px 8px}.sheet,.reading,.tip-page{padding:calc(3*var(--u)) calc(var(--inset) - 7*var(--u)) calc(4*var(--u))}.stage.duel{gap:4px}.fighter .kit .piece{width:16px;height:16px}}
/* 1.7.0: sending skill stock to the watch (skillshare.js), on the Skills page and in The Commons' map bag. */
.send-list{list-style:none;margin:var(--sp-1) 0;padding:0;display:grid;gap:var(--sp-1)}
.send-list li{display:flex;align-items:center;gap:var(--sp-2);min-height:44px}
.send-list label{flex:1;min-width:0}.send-list label>span{display:grid}
.send-list select{min-width:64px;min-height:44px}
.send-list input[type=checkbox]{width:22px;height:22px;margin:0 var(--sp-1);accent-color:var(--danger)}
.send-status:empty{display:none}
/* 1.7.3: The Haggle House (haggle/stall.js), on its own page (/haggle/) and in The Commons' panel alike. Every row, price level, offer
   and the price line sits in a well with an ink rim, as the hero page's boxes do; prices are pixel numbers beside words in the text
   family; a thing's icon sits in an item slot with its teal edge or Soulbound sparkle (marks.js). The post form is a paper note. */
.hg-stall{display:grid;gap:var(--sp-2)}
.hg-stall>*{min-width:0}
.hg-stall h2,.hg-stall h3,.hg-stall h4{margin-top:0}
.hg-top:empty,.hg-tabs:empty{display:none}
.hg-top{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-2)}
.hg-link{margin:0;font-weight:600}
.hg-wallet{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:var(--sp-1);width:100%;margin:0;padding:0;list-style:none}
.hg-fee{width:100%;margin:0}
.hg-wallet li{display:flex;align-items:center;gap:var(--sp-1);min-height:40px;padding:var(--sp-h) var(--sp-1);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);font-weight:600}
.hg-stall .tabs{margin:0}
.hg-filter{justify-content:flex-start}
.hg-wait,.hg-count{margin:0 0 var(--sp-1);color:var(--muted);font-size:var(--size-small)}
.hg-strong,.hg-closed,.hg-ask,.hg-error{font-weight:600}
.hg-acts .hg-ask{flex:1 0 100%}
.hg-error:empty{display:none}
.hg-error{color:var(--warn)}
/* A list: each thing a row that opens its book, its numbers in a grid that keeps one column for each, row after row. */
.hg-rows,.hg-offers,.hg-newslist{display:grid;gap:var(--sp-1);margin:0;padding:0;list-style:none}
.hg-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--sp-1) var(--sp-2);padding:var(--sp-1);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);color:var(--text);text-decoration:none}
.hg-row:hover{box-shadow:inset 0 0 0 2px var(--gold)}
.hg-name{display:grid;min-width:0}.hg-name strong{overflow-wrap:anywhere}
.hg-nums{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-1);margin:0}
.hg-nums div{display:grid;align-content:start;gap:var(--sp-h)}
.hg-nums dt{font-size:var(--size-small);color:var(--muted)}.hg-nums dd{margin:0}
.hg-none{color:var(--muted);font-size:var(--size-small)}
.hg-row .hg-count{grid-column:1/-1;margin:0}
@media(min-width:720px){
 .hg-row{grid-template-columns:auto minmax(0,1fr) minmax(0,26em)}
 .hg-nums,.hg-row .hg-count{grid-column:auto}
}
/* On a phone each number sits beside its word, two to a line, so a row stays four lines tall. */
@media(max-width:479px){
 .hg-nums{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-h) var(--sp-1)}
 .hg-nums div{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--sp-1)}
}
.hg-more{display:flex;justify-content:center;margin-top:var(--sp-2)}
/* A thing: Back, its name in a slot, the going price, Buy and Sell, the book's two sides, the price line, and the hero's offers on it. */
.hg-back{justify-self:start;margin:0 0 var(--sp-2)}
.hg-id{display:flex;align-items:center;gap:var(--sp-2);margin:0 0 var(--sp-2)}
/* A screen's heading takes focus so a screen reader starts there; it isn't a control, so it shows no ring. */
.hg-stall [tabindex="-1"]:focus{outline:none;box-shadow:none}
.hg-id h2,.hg-id h3{margin:0 0 var(--sp-h);color:var(--text)}.hg-id h2::after{display:none}.hg-id p{margin:0}
.hg-going{margin:0 0 var(--sp-2)}.hg-going p{margin:0 0 var(--sp-h)}
.hg-price-now{font-weight:600}.hg-price-now .num{font-size:var(--size-title);color:var(--accent);vertical-align:-4px}
.hg-paused{margin:0 0 var(--sp-2);padding:var(--sp-1) var(--sp-2);background:var(--well);box-shadow:inset 6px 0 0 var(--warn),inset 0 0 0 2px var(--ink);font-weight:600}
.hg-acts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-2);margin:0 0 var(--sp-2)}
.hg-acts p{margin:0}
.hg-book{display:grid;gap:var(--sp-2);margin:0 0 var(--sp-2)}
@media(min-width:560px){.hg-book{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hg-side{min-width:0}.hg-side p{margin:0}
.hg-levels{background:var(--well);box-shadow:inset 0 0 0 2px var(--ink)}
.hg-levels th,.hg-levels td{padding:var(--sp-h) var(--sp-1);vertical-align:middle}
.hg-levels tr:last-child td{border-bottom:0}
.hg-levels td:last-child{text-align:right}
.hg-levels button{min-height:44px}
/* The 30-day price line: SVG made in the page, one column of four units a day, whole units only, so it stays pixel-crisp at any width. */
.hg-chart{margin:0 0 var(--sp-2);text-align:left}
.hg-plot{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--sp-1);padding:var(--sp-1);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink)}
.hg-plot svg{display:block;width:100%;height:calc(48*var(--u));min-height:96px}
/* The scale's two prices stand at the top and the foot of the price area, which is 35 of the line's 48 units. */
.hg-scale{display:grid;grid-template-rows:35fr 13fr;text-align:right}.hg-scale span{grid-row:1;align-self:start}.hg-scale span:last-child{align-self:end}
.hg-axis{display:flex;justify-content:space-between;gap:var(--sp-1);margin:var(--sp-h) 0 0;font-size:var(--size-small);color:var(--muted)}
.hg-chart figcaption{padding-top:var(--sp-1);text-align:left}
.hg-range{fill:var(--muted)}.hg-mid{fill:var(--accent)}.hg-vol{fill:var(--xp)}.hg-base{fill:var(--line)}
/* A hero's offers and news: icon, words, and Cancel at the end of the row. */
.hg-offer,.hg-newslist li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--sp-1) var(--sp-2);padding:var(--sp-1);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink)}
.hg-newslist li{grid-template-columns:auto minmax(0,1fr);font-weight:600}
.hg-offer div{display:grid;min-width:0}.hg-offer-name{font-weight:600}
@media(max-width:479px){.hg-offer{grid-template-columns:auto minmax(0,1fr)}.hg-offer button{grid-column:1/-1;justify-self:start}}
.hg-news,.hg-open{margin:0 0 var(--sp-2)}
/* Posting: a paper note with the price and its 5% steps, how many, what it comes to, and Post. */
.hg-form{display:grid;gap:var(--sp-1);margin:0 0 var(--sp-2)}
.hg-form>*{margin:0}
.hg-field{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1)}
.hg-field label{min-width:5.5em;margin:0;font-weight:600}
@media(max-width:479px){.hg-field label{flex:1 0 100%}.hg-stall .hg-field input[type=number]{width:5em}}
.hg-stall input[type=number]{width:7em;min-height:44px;margin:0}
.hg-nudge{min-width:44px}
.hg-steps{display:flex;flex-wrap:wrap;gap:var(--sp-h)}
.hg-steps .pick{min-width:44px;padding:0 var(--sp-1)}
.hg-preview{font-size:var(--size-sub);font-weight:600}
.hg-pct{color:var(--muted)}
.hg-said{margin:0;min-height:0}

/* 1.8 website lanes (2026-11-22): each lane adds its new rules inside its own block, just above its "add above" line, so the
   lanes merge without touching each other. Rules shared by several pages belong to web-core. */
/* ---- web-core: shared tokens, components, header and footer ---- */
/* 1.8: every page ends with one clear next step (owner, 2026-11-22): <p class="next-step"><a class="button big" href="…">Get the game</a></p>,
   centred under the page's last window, one big button, a short line above it if it needs one. The same rules as Play's own. */
.next-step{display:grid;justify-items:center;gap:var(--sp-1);margin:var(--sp-3) 0 var(--sp-1);text-align:center}
.next-step p{margin:0}
.next-step .button,.next-step .big{min-width:min(100%,280px);min-height:64px;padding:0 var(--sp-3)}
/* 1.8 (the phone walk): a link standing on its own, in the footer's row or a "→" row, is 44 px tall where fingers tap it. */
@media(max-width:719px),(pointer:coarse){.links a,.more a{display:inline-flex;align-items:center;min-width:44px;min-height:44px}}
/* 1.8 (the phone walk): the sizes are rems (14, 16, 18, 16 and 32 px at the usual root), so they grow together. On a phone a reader's
   own text size (Android's font scale, where the browser tells the page: env(preferred-text-scale)) scales the root up to 1.3
   times, pixel type included, and the browser's own boosting, which grew long paragraphs and left headings, buttons and labels
   behind, is off there. Wider screens keep the browser's own handling. */
@media(max-width:719px){html{--text-scale:clamp(1,env(preferred-text-scale,1),1.3);font-size:calc(100%*var(--text-scale));text-size-adjust:none}}
/* web-core: add above this line */
/* - */
/* - */
/* - */
/* ---- web-home: Play, the home page ---- */
/* The gate: the pitch is a window that fills its column, with its words centred in it; the camp's grass grows to match. */
.pitch{display:flex;flex-direction:column;justify-content:center}
.pitch .badges{margin-bottom:var(--sp-2)}
.campsite,.scene{display:flex;flex-direction:column}.scene,.camp-art{flex:1 0 auto}
/* The live strip: one wooden board of tiles, each a picture, a small label, a name and a line, and each a whole link. A column on
   a phone with a dotted rule between tiles. A tile that has nothing to say is not there. QA WB-5 (five tiles since the Big Weigh-In
   joined: about 100 px of words each on a desk, and off the edge with large text): the strip wraps by its own width in rem, so large
   text gets fewer columns. Two a row from 36rem, three from 54rem (two when exactly four tiles show, so never three and a lonely
   one), a dotted rule between tiles in a row and over every row after the first. */
.live{display:grid;padding-top:0;padding-bottom:0}
.tile{display:flex;align-items:center;gap:var(--sp-2);min-width:0;padding:var(--sp-1) 0;color:var(--text);text-decoration:none}
.tile+.tile{border-top:2px dotted var(--line)}
.tile-art{display:grid;place-items:center;flex:none;width:66px;height:66px}
.tile-text{display:grid;gap:2px;flex:1;min-width:0}
.tile p{margin:0}.tile-line:empty{display:none}
.tile-name{color:var(--accent)}
.tile:hover .tile-name,.tile:focus-visible .tile-name{text-decoration:underline;text-underline-offset:4px}
.tile .hp,.tile .meter{max-width:280px;margin:2px 0}
@container live (min-width:36rem){
  .live{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--sp-3)}
  .tile+.tile{border-top:0}.tile{border-left:2px dotted var(--line);padding-left:var(--sp-3)}
  .tile:nth-child(2n+1 of :not([hidden])){border-left:0;padding-left:0}
  .tile:nth-child(n+3 of :not([hidden])){border-top:2px dotted var(--line)}
}
/* QA WC-8: side by side, each tile's words start at the top, so the titles in a row line up whatever the picture's height; and on
   three columns (six half-columns) a last row of two shares the width and a last tile alone takes all of it, so no cell sits empty. */
@container live (min-width:36rem){.tile{align-items:flex-start}.live>.tile:nth-last-child(1 of :not([hidden])):nth-child(odd of :not([hidden])){grid-column:1/-1}}
@container live (min-width:54rem){
  .live:not(:has(>.tile:nth-child(4 of :not([hidden])):nth-last-child(1 of :not([hidden])))){grid-template-columns:repeat(6,minmax(0,1fr))}
  .live:not(:has(>.tile:nth-child(4 of :not([hidden])):nth-last-child(1 of :not([hidden]))))>.tile{grid-column:span 2}
  .live:not(:has(>.tile:nth-child(4 of :not([hidden])):nth-last-child(1 of :not([hidden]))))>.tile:nth-last-child(1 of :not([hidden])):nth-child(3n+2 of :not([hidden])),
  .live:not(:has(>.tile:nth-child(4 of :not([hidden])):nth-last-child(1 of :not([hidden]))))>.tile:nth-last-child(2 of :not([hidden])):nth-child(3n+1 of :not([hidden])){grid-column:span 3}
  .live:not(:has(>.tile:nth-child(4 of :not([hidden])):nth-last-child(1 of :not([hidden]))))>.tile:nth-last-child(1 of :not([hidden])):nth-child(3n+1 of :not([hidden])){grid-column:1/-1}
  .live:not(:has(>.tile:nth-child(4 of :not([hidden])):nth-last-child(1 of :not([hidden]))))>.tile{border-top:0;border-left:2px dotted var(--line);padding-left:var(--sp-3)}
  .live:not(:has(>.tile:nth-child(4 of :not([hidden])):nth-last-child(1 of :not([hidden]))))>.tile:nth-child(3n+1 of :not([hidden])){border-left:0;padding-left:0}
  .live:not(:has(>.tile:nth-child(4 of :not([hidden])):nth-last-child(1 of :not([hidden]))))>.tile:nth-child(n+4 of :not([hidden])){border-top:2px dotted var(--line)}
}
/* Between a phone and a desk each tile is a small card: the picture over its words, centred. */
@media(min-width:720px) and (max-width:999px){.tile{flex-direction:column;align-items:center;gap:var(--sp-h);text-align:center}.tile-text{justify-items:center;flex:none;width:100%}.tile .hp,.tile .meter{width:100%;max-width:200px}}
@media(prefers-color-scheme:light){:where(:root:not([data-theme=night])) .live{--line:var(--wood)}}:where(:root[data-theme=day]) .live{--line:var(--wood)}
.live-wrap{display:grid;gap:var(--gap);min-width:0;container:live/inline-size}#camp-strike{margin:0}
/* Try a fight: the picks are picture chips in two sets, heroes then places, on one row wherever seven fit. Before the fight is
   built its place is held by blank chips and an empty arena, so nothing jumps when it arrives. */
.chips{display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-3);max-width:820px;margin:0 auto var(--sp-1)}
.chip-set{display:flex;gap:var(--sp-1)}
.pick.token{flex:none;min-width:56px;padding:0}.pick.token>*{pointer-events:none}
.chips>i{width:56px;height:44px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);opacity:.6}
.chips>i:nth-child(3){margin-right:var(--sp-2)}
.practice .note{max-width:820px;margin-left:auto;margin-right:auto}
/* 1.9.0 polish: the line above the practice fight starts at the same left edge as the picks and the arena under it. */
#play>.lead-in{max-width:820px;margin-left:auto;margin-right:auto}
/* Two fighters share their rows, so sprites, name plates and bars line up however the names wrap. */
.practice .arena,.duel-day .arena{grid-template-columns:repeat(2,minmax(min-content,1fr));grid-template-rows:repeat(5,auto);align-items:start}
.practice .fighter,.duel-day .fighter{display:grid;grid-template-rows:subgrid;grid-row:span 5;justify-items:center}
.practice .fighter>.hp,.duel-day .fighter>.hp{justify-self:stretch}
/* A name plate never breaks inside a word: its column is at least its longest word wide, and when two such columns don't fit
   (duelstage.js settle) the fighters stand one over the other. */
.practice .fighter .name,.duel-day .fighter .name{overflow-wrap:normal;hyphens:none;align-self:start}
.practice .arena.stacked,.duel-day .arena.stacked{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(10,auto)}
.practice .fighter .pose,.duel-day .fighter .pose{justify-self:stretch;align-self:end}
.practice>.say:empty{visibility:hidden}
/* Around the fire: the duel of the day on its stage, and beside it the newest heroes and the world's tally on wooden boards. */
.fire{margin:calc(12*var(--u)) 0 calc(10*var(--u))}
.fire-grid,.fire-side{display:grid;gap:var(--gap);align-content:start}
.fire-side:not(:has(>:not([hidden]))){display:none}
@media(min-width:860px){.fire-grid:has(.fire-side>:not([hidden])){grid-template-columns:minmax(0,7fr) minmax(0,5fr)}}
.fire h3{margin:0 0 var(--sp-h)}.fire .plaque h3{color:var(--accent)}
.duel-day .arena{margin-top:var(--sp-2)}.duel-day .round{margin:var(--sp-h) 0}.duel-day .result{min-height:1.5em;margin:0}
.duel-day .more{justify-content:center;align-items:center;gap:var(--sp-1) var(--sp-3)}
.new-heroes{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:0 var(--sp-2);margin:0;padding:0;list-style:none}
.new-heroes a{display:flex;align-items:center;gap:var(--sp-1);min-height:52px;color:var(--text);text-decoration:none}
.new-heroes a>span{display:grid;min-width:0}.new-heroes .px{color:var(--accent)}
.new-heroes a:hover .px,.new-heroes a:focus-visible .px{text-decoration:underline;text-underline-offset:4px}
.chapter-now{margin:var(--sp-1) 0 0}
/* Get the game: the game on three wrists, then the page's one next step. A round face is a square capture behind a dark rim, wide
   enough to cover the lines the watch itself cut at its edge. */
.faces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;justify-items:center;gap:var(--sp-1) var(--sp-2);max-width:760px;margin:var(--sp-2) auto;padding:0;list-style:none}
.faces li{display:grid;grid-row:span 2;grid-template-rows:subgrid;justify-items:center;gap:var(--sp-1);width:100%;min-width:0;text-align:center}
.faces .face{align-self:end}.faces li>.small{align-self:start}
.face{position:relative;display:block;width:100%;max-width:200px;aspect-ratio:1;border:4px solid var(--ink);border-radius:50%;overflow:hidden;background:var(--black);box-shadow:0 0 0 4px var(--stone-rim),0 6px 0 4px var(--ink)}
.face img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:auto}
.face::after{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle closest-side,transparent 86%,var(--black) 91%);pointer-events:none}
.face.tall{max-width:164px;aspect-ratio:422/514;border-radius:22%/18%}.face.tall::after{display:none}
/* On a phone the three stay in one row in the desk's order (Wear, Apple, Wear), smaller, and the captions wrap between words (QA WC-9). */
@media(max-width:479px){.faces{column-gap:var(--sp-1)}.face{border-width:3px;box-shadow:0 0 0 3px var(--stone-rim),0 4px 0 3px var(--ink)}.face.tall{max-width:82%}}
.get>.lead-in{text-align:center;text-wrap:balance}
/* Play's step holds a button with a line or a link under it, so here it is always a centred column, whatever a later block makes
   of the shared class. */
.get .next-step{display:grid;justify-items:center;justify-content:normal}
.next-step .badges{justify-content:center;width:100%;max-width:520px;margin:0}.next-step .more{justify-content:center}
.small-print{max-width:640px;margin:var(--sp-3) auto 0;padding-top:var(--sp-2);border-top:2px dotted var(--line);text-align:center}
.small-print h3{margin:0 0 var(--sp-h)}.small-print p{margin:0 0 var(--sp-1)}
/* web-home: add above this line */
/* - */
/* - */
/* - */
/* ---- web-rankings: Rankings, hero pages and duel replays ---- */
/* Rankings. Player of the week is a race on the Heroes tab: five lanes, each hero standing as far along its track as its week, the
   leader at the flag, and one line about whoever is chasing. A phone gives each lane two lines; from 600 px it is one. */
.race-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 16px}
.race-gap{margin:0;font-weight:600}
.lanes{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.lane{display:grid;grid-template-columns:20px minmax(0,1fr) auto;grid-template-areas:"place name name" "place track line";align-items:center;gap:0 8px}
.lane .place{grid-area:place;align-self:center;text-align:right;color:var(--muted)}
.lane.ahead .place{color:var(--accent)}
.lane-name{grid-area:name;min-width:0;overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.lane-line{grid-area:line;color:var(--muted);font-size:var(--size-small);white-space:nowrap}.lane-line span{display:none}
.lane-track{grid-area:track;position:relative;display:block;overflow:hidden;height:calc(21px*var(--s) + 8px);background:linear-gradient(var(--line),var(--line)) 0 100%/100% 4px no-repeat}
.lane-track::after{content:"";position:absolute;right:0;bottom:0;width:12px;height:100%;background:conic-gradient(var(--ink) 25%,var(--field) 0 50%,var(--ink) 0 75%,var(--field) 0) 0 0/8px 8px;box-shadow:inset 2px 0 0 var(--ink)}
.lane-runner{position:absolute;bottom:4px;left:calc(var(--at,0)*(100% - 12px - 21px*var(--s)));display:block}
.lane-runner::before{content:"";position:absolute;right:50%;bottom:-4px;width:100vw;height:4px;background:var(--gold)}
.lane.mine .lane-name{box-shadow:inset 0 -2px 0 var(--gold)}
@media(min-width:600px){
 .week{--s:2}
 .lane{grid-template-columns:20px minmax(0,13em) minmax(0,1fr) auto;grid-template-areas:"place name track line";align-items:center;gap:0 12px}
 .lane-line{min-width:11em;text-align:right}.lane-line span{display:inline}
}
/* A board's controls are one row: its filters, what it has to say, then what it can do (Compare, Train skills, Refresh). On a phone
   the status takes a line of its own under them, kept even when empty so the rows below never jump. */
#status{flex:1 1 12em;min-width:0;margin:0}
/* 1.9.0 polish: an empty Rankings board says so beside the camp noticeboard (assets/sprites/noticeboard.png, 16 px at 3x),
   so an empty state reads as part of the camp rather than a line of system text. */
.vacant{--vacant-art:url(/assets/sprites/noticeboard.png);--vacant-size:48px;display:flex;align-items:center;gap:var(--sp-2);flex-basis:100%;min-height:64px}
.vacant::before{content:"";flex:none;width:56px;height:var(--vacant-size);background:var(--vacant-art) 50% 50%/var(--vacant-size) var(--vacant-size) no-repeat;image-rendering:pixelated}
/* Other empty places, each with the drive art the game already uses, at a whole-number scale: crossed swords (20 px at 2x) for a
   duel list, the empty chest (18 px at 3x) for an empty map bag, the empty platter (16 px at 3x) for an empty Haggle House shelf. */
.vacant.v-duel{--vacant-art:url(/assets/sprites/duel.png);--vacant-size:40px}
.vacant.v-chest{--vacant-art:url(/assets/sprites/juice_chest_empty.png);--vacant-size:54px}
.vacant.v-platter{--vacant-art:url(/assets/sprites/empty_platter.png)}
/* The Skills page before a watch is linked: what the trades handle (a trout, chowder, copper ore, an iron bar; 16 px at 3x) under its
   heading, so it opens on the game. */
.trade-row{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin:0 0 var(--sp-2)}
/* 1.13.0 (owner, Nov 29: one centred column): Skills' link panel centres over its centred button, and the links under it centre too. */
.link-first{text-align:center}.link-first h2::after{margin-inline:auto}.link-first .trade-row{justify-content:center}#skills-more{justify-content:center}#skills-more~p.small{text-align:center}.trade-row img{display:block;width:48px;height:48px;image-rendering:pixelated}
/* 1.9.0 game feel: a hero or monster inside something you can press hops up one of its own art pixels while the pointer is on it
   (--s is its scale, so the hop is exactly one pixel of the sprite), in one step with no easing, as sprites move in the game. Only for
   a pointer that can hover, and never with reduced motion. A felled or frozen sprite stays put. */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 :is(a,button,.character,.felled-row li):hover .anim:not(.frozen),.tile:hover .tile-art .anim:not(.frozen){translate:0 calc(-1px*var(--s,3))}
 .down .anim,.fighter.down .anim{translate:none}
}
.filters-end{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}
@media(max-width:599px){#status{order:1;flex-basis:100%;min-height:1.5em;font-size:var(--size-small)}}
.compare-box{margin:0 0 8px}.compare-head{display:flex;align-items:center;justify-content:space-between;gap:8px 16px}.compare-head h2{margin:0}
/* On a phone each detail's name stands over the two heroes' values, which share the width in halves, so nothing scrolls sideways and
   no word is cut in two. */
@media(max-width:599px){#compare-content table,#compare-content tbody{display:block}#compare-content tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 8px;border-bottom:2px solid var(--line)}#compare-content th,#compare-content td{border:0;padding:0 0 8px}#compare-content tr>th:first-child{grid-column:1/-1;padding:8px 0 0;color:var(--muted);font-size:var(--size-small);font-weight:400}}
#compare-say{margin:8px 0 0;font-weight:600}#compare-say:empty{display:none}#compare-content:not(:empty){margin-top:8px}
/* On a phone a row's number stands beside the name and its unit under it, beside the first line of details, so "67" is never
   without its "XP" and the number never floats above the name. */
@media(max-width:599px){
 .standings .character{grid-template-areas:"place art name score" "place art meta unit"}
 .standings.comparing .character{grid-template-areas:"place art name score compare" "place art meta unit compare"}
 .standings .score{display:contents}.standings .score .num{grid-area:score;align-self:end;text-align:right}.standings .score .unit{grid-area:unit;align-self:start;text-align:right}
}
/* The class filter says what it is ("All classes"), so its label is for screen readers alone, at every width. */
.field-line label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* The next bosses: two outlines side by side, each with the one word that tells them apart. */
.coming{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0 0 16px;padding:0;list-style:none}
.coming li{display:grid;justify-items:center;gap:4px;color:var(--muted);font-size:var(--size-small)}
.coming .shade{filter:brightness(0) invert(var(--glow));opacity:.3}
.coming .mystery{display:grid;place-items:center;width:64px;height:64px;color:var(--muted)}
/* A folded note's name is a full-size thing to tap. */
#board .more-about summary{padding:12px 0}#board .more-about[open] summary{margin-bottom:0}
/* Duelists yet to win stand after a divider, and a skill board with room at the top says so. */
.standings .divider{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--muted);font-size:var(--size-small)}
.standings .divider::after{content:"";flex:1;height:calc(5*var(--u));background:url(/assets/ui/divider.png) 0 0/calc(48*var(--u)) 100% no-repeat}
.few{margin:16px 0 0;font-weight:600}
/* The camp regulars: each stands in a slot, with a name and what they are. */
.regulars{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:8px 16px;margin:0 0 16px;padding:0;list-style:none}
.regulars li{display:flex;align-items:center;gap:8px}.regulars div{display:grid;min-width:0}.regulars .small{margin:0}
.regulars .pic{border:calc(2*var(--u)) solid transparent;border-image:var(--slot) 3 fill/calc(3*var(--u));padding:2px}
/* Today's hardest hitters are named beside a world boss's bar, in order and nothing more: from 800 px in a column of their own, under
   the card's words before that. */
.hitters{grid-column:1/-1;border-top:2px solid var(--line);padding-top:8px}
.hitters ol{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.hitters li{display:grid;grid-template-columns:16px 21px minmax(0,1fr);align-items:center;gap:0 8px;min-height:32px}
.hitters .place{text-align:right;color:var(--muted)}.hitters li:first-child .place{color:var(--accent)}
.hitters a{overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:800px){
 .boss-card:has(.hitters:not([hidden])){grid-template-columns:auto minmax(0,1fr) minmax(200px,260px)}
 .boss-card .hitters{grid-column:auto;align-self:stretch;border-top:0;border-left:2px solid var(--line);padding:0 0 0 16px}
}
/* Hero pages. The name stands on a wooden plaque over the camp, where the hero idles two sizes up from the scenery; what the page
   can do (share, compare) sits beside it. */
.plate>h1{margin:0;min-width:min(100%,calc(60*var(--g)));max-width:100%;font-size:var(--size-label);color:var(--text);text-align:center;overflow-wrap:anywhere}
#plate{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:8px;width:100%}
#plate .den .hero{--s:calc(var(--g-n) + 2);--x:38;--y:2}#plate .den:has(.title) .hero{--y:7}#plate .den:has(.title) .follower{--y:6}#plate .den .flag{--x:28}#plate .den .d1{--x:78}#plate .den .follower{--x:22}
.hero-code{display:inline-block;margin:8px 0;padding:2px 8px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);font-size:var(--size-small);font-weight:600}
.hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
/* The ranks, one row: the best one big on its own card, the rest as chips. A new hero's next goal stands there instead. */
.rank-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 16px}
.rank-best{display:flex;align-items:center;gap:8px 16px;min-height:64px;padding:4px 16px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);color:var(--text);text-decoration:none}
.rank-best .num{font-size:var(--size-title);color:var(--accent)}.rank-what{font-weight:600}
.rank-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(184px,1fr));flex:1 1 280px;gap:8px;margin:0;padding:0;list-style:none}.rank-chips li{display:grid}
@media(max-width:599px){.rank-best{flex:1 1 100%}.rank-chips{grid-template-columns:repeat(2,minmax(0,1fr))}.rank-chips li:last-child:nth-child(odd){grid-column:1/-1}}
.rank-chips a{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 8px;background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);color:var(--text);font-size:var(--size-small);text-decoration:none}
.rank-chips a:hover,.rank-best:hover{box-shadow:inset 0 0 0 2px var(--gold)}.rank-chips .num{color:var(--accent)}
/* Large text: a chip's words wrap inside it rather than pushing the page sideways (QA S-8). */
.rank-chips a{flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}.rank-chips a>*{min-width:0}
.rank-row.goal{flex-wrap:nowrap;align-items:center}.rank-row.goal p{margin:0}
/* "Since you last looked": what moved since this visitor's last visit, on a board of its own, and a glow where each gain lives. */
.since-board{margin:8px 0 0;border:calc(8*var(--u)) solid transparent;border-image:var(--stage) 12 fill/calc(12*var(--u));padding:calc(1*var(--u)) calc(var(--inset) - 8*var(--u))}
.since-board h2{margin:0 0 4px}.since-board h2::after{display:none}
.since-board ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.since-board li{display:flex;align-items:center;gap:8px;min-height:36px;padding:2px 8px;background:var(--ink);color:var(--gold-hi);box-shadow:0 0 0 2px var(--gold);font-weight:600}
.since-board li.down{color:var(--cream);box-shadow:0 0 0 2px var(--ink-soft);font-weight:400}
.fresh{animation:fresh 1.6s steps(8) 3}
@keyframes fresh{50%{filter:drop-shadow(0 0 6px var(--gold-hi)) brightness(1.15)}}
@media(prefers-color-scheme:light){:where(:root:not([data-theme=night])) .since-board{--muted:var(--wood-dark)}}:where(:root[data-theme=day]) .since-board{--muted:var(--wood-dark)}
@media(prefers-reduced-motion:reduce){.fresh{animation:none;box-shadow:0 2px 0 var(--gold)}}
/* The trophy shelf: one not earned yet is a faint outline with a question mark, never a black shape. A route boss still to beat
   is the same faint outline on its badge. */
.shelf .faint,#routes .shade{filter:brightness(0) invert(var(--glow));opacity:.22}
.shelf .mystery{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted)}
/* "Still to do" and the way onward. */
.todo{margin:0;padding-left:24px}.todo li{margin:4px 0;color:var(--text)}
.onward{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px;margin:24px 0 0}
/* Duel replays. Each fighter keeps a lane over its head for a technique's callout, so the callout stays inside the stage, on one
   line, over the hero who used it and clear of the damage number below. On a phone, where a fighter's column is narrower than
   "RUNE BURST!", the left hero's callout starts at its edge and the right hero's ends at its edge, so a long one runs toward the
   middle, never out of the frame. The title is one label-size line under the ribbon. */
.stage.duel{grid-template-rows:repeat(6,auto);align-items:start}.stage.duel .versus{grid-row:1;align-self:end}
.stage.duel .fighter{display:grid;grid-row:1/-1;grid-template-rows:subgrid;align-items:start;justify-items:center;padding-top:24px}
.stage.duel .fighter .hp{width:100%}.stage.duel .fighter .name{margin:8px 0 0}.stage.duel .fighter p{max-width:100%}
.stage.duel .floater{top:52px}
.stage.duel .floater.callout{top:2px;white-space:nowrap;animation-name:call}
@media(max-width:480px){.stage.duel .floater.callout{left:0;translate:none}.stage.duel .fighter[data-side="1"] .floater.callout{left:auto;right:0}}
@keyframes call{from{opacity:1}80%{opacity:1}to{opacity:0}}
.stage.duel .spark{top:34px}
.fighter .kit .piece{cursor:help}
.report strong a{color:var(--text)}
.duel-title{margin:0 0 8px;color:var(--accent);text-align:center;text-wrap:balance}
/* What a finger taps is 44 px tall. A hero's name in a row, a lane or a list keeps its line and gains the room above and below it;
   the way onward and a boss's record are full-height links. */
.standings .name a,.lane-name,.hitters a,#board .feed a,#latest a,#find-results a{padding:12px 0;margin:-12px 0}.standings .name a,.lane-name a{display:inline-block;min-width:44px}
.onward a,.records a,.few a,#todo a,#boss-box .small a{display:inline-flex;align-items:center;min-height:44px}
/* web-rankings: add above this line */
/* - */
/* - */
/* - */
/* ---- web-commons: The Commons, the Haggle House and the Wishing Well ---- */
/* The Wishing Well's page (/well/): the goal drawn large, the finds, the odds. The toss and the table are The Commons' own parts. */
.wl-goal{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--sp-2) var(--sp-3);align-items:center;margin:0 0 var(--sp-3);padding:var(--sp-2);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink)}
.wl-art{width:96px;height:160px;image-rendering:pixelated}
.wl-art.plain{height:96px;object-fit:cover;object-position:50% 100%}
.wl-words h2{margin:0 0 var(--sp-1);color:var(--accent)}.wl-words h2::after{display:none}
.wl-meter{height:calc(9*var(--u));margin:0 0 var(--sp-h)}
.wl-count{margin:0 0 var(--sp-1);font-weight:600}.wl-count .num{color:var(--accent)}
.wl-line{display:flex;align-items:center;gap:var(--sp-1);margin:0 0 var(--sp-h)}.wl-line .sprite,.wl-line canvas{flex:none}
.wl-done{margin:0 0 var(--sp-2)}.wl-done h3{margin:0 0 var(--sp-h);color:var(--muted);font-size:var(--size-label)}
.wl-done ul{display:flex;flex-wrap:wrap;gap:var(--sp-h) var(--sp-2);margin:0;padding:0;list-style:none}
.wl-done li{display:flex;align-items:center;gap:var(--sp-h);font-weight:600}
.wl-door{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-1) var(--sp-2);margin:0 0 var(--sp-3)}
.wl-door p{flex:1 1 14em;margin:0;font-weight:600}
.wl-toss h2,.wl-finds h2,.wl-odds h2{margin:0 0 var(--sp-1)}
.wl-toss{margin:0 0 var(--sp-3)}
.wl-findlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:var(--sp-1);margin:0 0 var(--sp-3);padding:0;list-style:none}
.wl-findlist li{display:flex;align-items:center;gap:var(--sp-1);padding:var(--sp-1);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink)}
.wl-find{display:grid;min-width:0}
.wl-odds table{width:100%;margin:0 0 var(--sp-1)}
.wl-odds td.num{text-align:right}.wl-odds thead th:not(:first-child){text-align:right}
.wl-closed{font-weight:600}
@media(max-width:480px){.wl-goal{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}.wl-line{justify-content:center;text-align:left}}
/* The Haggle House (1.8): the price board's cards, a price with its coin, one row of filter chips, and Back beside a thing's name. */
.hg-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:var(--sp-1);margin:0 0 var(--sp-2);padding:0;list-style:none}
.hg-card{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--sp-1);height:100%;padding:var(--sp-1);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);color:var(--text);text-decoration:none}
.hg-card:hover{box-shadow:inset 0 0 0 2px var(--gold)}
.hg-card .hg-name{display:grid;gap:2px;min-width:0}
.hg-under{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--sp-1);color:var(--muted)}
.hg-coins{display:inline-flex;align-items:center;gap:var(--sp-h);white-space:nowrap}
.hg-coins .num{color:var(--accent)}
.hg-card .hg-coinword{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hg-prices h2,.hg-prices h3,.hg-prices h4,.hg-strip h2,.hg-strip h3,.hg-strip h4{margin:0 0 var(--sp-h)}
.hg-prices>.small{margin:0 0 var(--sp-1)}
.hg-strip .hg-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr))}
.hg-id .hg-back{align-self:flex-start;margin:0}
.hg-price-now{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-h) var(--sp-1)}
.hg-price-now .hg-coins .num{font-size:var(--size-title)}
.hg-price-now .hg-coinword{font-weight:600}
/* 1.13.0 (owner, Nov 29: dropdowns, not rows of buttons): what to look at is one View dropdown, on the left edge with the Show filter. */
.hg-stall .hg-tabs{justify-content:flex-start;margin:0 0 var(--sp-1)}
@media(max-width:480px){.hg-id{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}.hg-id .hg-back{grid-column:1/-1;justify-self:start}}
/* A thing's page leads with the thing (a shared link opens on it): the page's intro steps aside and the way to link moves below it. */
.hg-page:has(.hg-on-thing)>.lead{display:none}
.hg-stall.hg-on-thing .hg-top{order:3}
/* web-commons: add above this line */
/* - */
/* - */
/* - */
/* ---- web-guide: the field guide, Workshop, Support, Privacy, Tip, skills and 404 ---- */
/* The field guide shows one part at a time (guideparts.js marks it .open). Without a script, the part an address names shows too.
   1.8.0: the guide's More part is named by its class as well, because Rankings' "More heroes" button is #more too and this rule hid it. */
#bestiary-part:not(.open):not(:target),:is(#armory,#chapters,#more.more-part):not(.open):not(:target){display:none}
.guide-parts{display:grid;grid-template-columns:repeat(4,minmax(0,max-content));justify-content:center}
@media(max-width:479px){.guide-parts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.guide-parts .pick[aria-current]{border-width:calc(5*var(--u));border-image:url(/assets/ui/btn-blue-on.png) 5 fill/calc(5*var(--u));margin:calc(-1*var(--u));color:var(--navy);text-shadow:none}
/* Your field guide: what the linked hero hasn't met is a silhouette. */
@media(max-width:1139px){@media(prefers-color-scheme:dark){:where(:root:not([data-theme=day])) .book{--silhouette:brightness(0) invert(.8) opacity(.3)}}:where(:root[data-theme=night]) .book{--silhouette:brightness(0) invert(.8) opacity(.3)}}
.pose.unseen>*,.trophy.unseen img,.trophy-row .unseen .pic{filter:var(--silhouette,brightness(0) opacity(.55))}
.seen{margin:0 0 var(--sp-2);text-align:center;text-wrap:balance}
/* 1.8.3: home's New on the trail, the newest monsters and gear from the live packs, as pictures. */
.fresh{margin-top:var(--sp-3)}
.camp>.fresh{grid-column:1/-1}
.fresh-notice{margin:0 0 var(--sp-2)}
/* QA WC-5: sized in rem with a cap, so at 200% text on a phone the cards drop to fewer a row instead of running past the edge. */
.fresh-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,6rem),1fr));gap:var(--sp-1);margin:0 0 var(--sp-2);padding:0;list-style:none}
.fresh-list>li{min-width:0}
.fresh-tile{display:grid;justify-items:center;align-content:start;gap:var(--sp-h);height:100%;padding:var(--sp-1);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);color:var(--text);text-align:center;text-decoration:none}
.fresh-tile canvas{image-rendering:pixelated}
.fresh-name{overflow-wrap:anywhere}
.fresh-tile:hover .fresh-name,.fresh-tile:focus-visible .fresh-name{text-decoration:underline;text-underline-offset:4px}
/* 1.8.3: gear a live pack brought, marked New in the armory. */
.new-tag{display:inline-block;padding:1px 4px;background:var(--gold);color:var(--ink);font:var(--size-small)/1.2 var(--pixel);text-transform:uppercase;vertical-align:middle;white-space:nowrap}
.seen-tag{margin:0 0 var(--sp-1);font-size:var(--size-small);color:var(--muted)}.seen-tag.met{color:var(--good);font-weight:600}
.trophy-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:var(--sp-1);margin:var(--sp-1) 0 0;padding:0;list-style:none}
.trophy-row li{display:grid;justify-items:center;gap:2px;text-align:center}.trophy-row .small{line-height:1.25}
.my-shelf{margin:0 0 var(--sp-2)}
/* By day the open book gets a dark pixel edge, so its orange cover doesn't melt into the peach window. */
@media(min-width:1140px) and (prefers-color-scheme:light){:where(:root:not([data-theme=night])) .book .leaf{filter:drop-shadow(4px 0 0 var(--ink)) drop-shadow(-4px 0 0 var(--ink)) drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 -4px 0 var(--ink)) drop-shadow(0 8px 0 rgba(61,41,54,.35))}}@media(min-width:1140px){:where(:root[data-theme=day]) .book .leaf{filter:drop-shadow(4px 0 0 var(--ink)) drop-shadow(-4px 0 0 var(--ink)) drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 -4px 0 var(--ink)) drop-shadow(0 8px 0 rgba(61,41,54,.35))}}
/* The armory: two dropdowns (Slot, Rarity), then compact cards whose flavor and drop sources fold away. */
#armory [hidden]{display:none}
#slots h2{margin-top:var(--sp-3)}#slots section:first-child h2{margin-top:var(--sp-1)}
/* 1.13.0: the Armory's headings and Supplies' line sit on the guide's centred column, under its centred dropdowns. */
:is(#slots,#camp) h2,#camp>p,#camp-groups h3{text-align:center}:is(#slots,#camp) h2::after{margin-inline:auto}
#slots .card{align-items:center}#slots .card .meta{margin:0}
.drops summary{min-height:44px;display:inline-flex;align-items:center;color:var(--link);font-size:var(--size-small);cursor:url(/assets/ui/hand.png) 9 1,pointer}
.drops p{margin:2px 0}
/* More about the game: its sheets one after another, like the rest of the page. */
.more-part>.sheet{margin:calc(12*var(--u)) auto calc(10*var(--u))}
/* Support: a jump line to the parts further down, then each answer folded under its question (folds.js opens the one an address
   names). Privacy's jump list is the same .toc, numbered, since its sections stay open. */
.toc.jumps{display:flex;flex-wrap:wrap;gap:var(--sp-h) var(--sp-3);padding:var(--sp-1) 0}
.toc{margin:var(--sp-2) 0;padding:var(--sp-2) 0 var(--sp-1);border-block:2px dotted var(--line)}.toc h2{margin-top:0}
/* A long page's way back to its list after each part (QA S-15: privacy is about 32,000 px on a phone). */
.toc-back{margin:var(--sp-1) 0 0;font-size:var(--size-small)}.toc-back a{display:inline-flex;align-items:center;min-height:44px}
.toc ol{columns:2 240px;column-gap:var(--sp-4);margin:0;padding-left:1.6em}.toc li{break-inside:avoid;padding:var(--sp-h) 0}
.qa{border-bottom:2px dotted var(--line)}
.qa>summary{display:flex;align-items:center;gap:var(--sp-1);min-height:48px;padding:var(--sp-1) 0;list-style:none;cursor:url(/assets/ui/hand.png) 9 1,pointer}
.qa>summary::-webkit-details-marker{display:none}
.qa>summary::before{content:"";flex:none;width:0;height:0;border-block:6px solid transparent;border-left:8px solid var(--accent)}
.qa[open]>summary::before{transform:rotate(90deg)}
.qa>summary :is(h2,h3){margin:0;color:var(--text)}.qa>summary h2::after{display:none}
.qa>summary:hover :is(h2,h3){text-decoration:underline;text-underline-offset:4px}
.qa[open]{padding-bottom:var(--sp-1)}.qa>:not(summary):first-of-type{margin-top:0}
#shop>p:first-of-type,#terms>h2{margin-bottom:var(--sp-1)}
/* Tip: the shared ribbon title, the icon beside the words, then the tip and the way back as two real buttons. */
/* 1.8.1 (plan item 15): the notes page, a board of pinned notes, one per update, newest first. */
.notes{max-width:760px}.notes-board{display:grid;gap:var(--sp-2);margin:var(--sp-2) 0}
.note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--sp-2);align-items:start}
.note h2{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 4px}.note ul{margin:0;padding-left:1.2em}.note li{margin:0 0 4px}
.tip{max-width:760px}.tip-body{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:var(--sp-3)}.tip-body>img{width:100px;height:100px}
@media(max-width:479px){.tip-body{grid-template-columns:minmax(0,1fr)}.tip-body>img{width:72px;height:72px}}
.tip .next-step{display:grid;justify-items:center;justify-content:normal;margin:var(--sp-2) 0 var(--sp-3)}.tip .next-step .pick{min-height:44px;min-width:min(100%,200px)}
.tip .links{display:flex;flex-wrap:wrap;gap:var(--sp-h) var(--sp-2)}
.reading>.next-step:last-child{margin-top:var(--sp-3)}
/* Workshop: the gallery first (Gnewton's house items while players' shelf is empty), then a short way in to make your own. */
.workshop .link-means{margin:var(--sp-1) 0 var(--sp-2)}.workshop #link-box+p.small{margin-top:var(--sp-2)}
.workshop .house{margin-top:var(--sp-2)}
/* Tap targets on a phone (mobile walk, 2026-11-22): jump links stand 44 px tall like the buttons beside them. */
.toc a{display:inline-flex;align-items:center;min-width:44px;min-height:44px}.toc li{padding:0}
/* The field guide, tidied (owner, Nov 29: "not centered or positioned/designed well"): the author's line centred beside Gnewton, the
   Section dropdown under it, and in More about the game every card row centred, captions centred under their pictures, cards of a
   row the same height, and short how-tos three to a row with the two longer ones sharing the row below. */
.guide-pick{margin:var(--sp-2) 0 0}
#marks{margin:0 0 var(--sp-1)}
/* With big text (the root at 24 px or more, guideparts.js marks it as door-mode.js does) the guide's title takes the label size, so
   "GNEWTON'S" stays on a phone's screen (it is 64 px at 200%). */
:root[data-large-text=on] .reading:has(.guide-parts)>h1.ribbon{font-size:var(--size-label)}
.more-part :is(.release-list,.shop-list,.captures){display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch}
.more-part .release-list>li{flex:1 1 11rem;max-width:15rem;align-items:center;text-align:center}
.more-part .release-list .shot{max-width:180px}
.more-part .shop-list>li{flex:1 1 13rem;max-width:17rem;display:flex;flex-direction:column;align-items:center;text-align:center}
.more-part .shop-list .sprites{align-items:flex-end;justify-content:center;min-height:48px}
.more-part .captures{align-items:flex-end;gap:var(--sp-3)}.more-part .captures figure{flex:0 1 14rem}
.more-part .features>*{display:flex;flex-direction:column;align-items:center;text-align:center}
.more-part .features h3,.more-part .release-list h3,.more-part .shop-list h3{text-wrap:balance}
.more-part .features p{max-width:34rem}
.more-part>.sheet>p{max-width:48rem;margin-inline:auto;text-align:center;text-wrap:balance}
#bestiary-part>[role=status],:is(#armory,#chapters)>:is(.lead,[role=status]){text-align:center;text-wrap:balance}
@media(min-width:640px){#made-for-a-watch .features{grid-template-columns:repeat(2,minmax(0,1fr))}#made-for-a-watch .features>.wide{grid-column:span 2}}
@media(min-width:960px){#made-for-a-watch .features{grid-template-columns:repeat(6,minmax(0,1fr))}#made-for-a-watch .features>*{grid-column:span 2}#made-for-a-watch .features>.wide{grid-column:span 3}
 #made-for-a-watch .features:not(:has(#trade-school:not([hidden])))>.wide{grid-column:1/-1}}
/* web-guide: add above this line */
/* - */
/* - */
/* ---- 1.8.0 on the website: Details Hidden, Power and Overall, the Fitness tab and the prizes a hero wears ---- */
/* A hero in the prizes it wears (site.js dressed()): the hero and each prize's overlay share one box, frame for frame. */
.dressed{display:inline-grid;flex:none}
.dressed>.anim.anim{grid-area:1/1}
.standings .dressed{grid-area:art;justify-self:center}
/* Last week's winners, above the Fitness boards: each hero in the prize it won, by its number. */
.winners{margin:0 0 var(--sp-2)}
.winners h2{margin:0 0 var(--sp-h)}.winners h2::after{display:none}
.winners ul{display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-3);margin:0;padding:0;list-style:none}
.winners li{position:relative;display:flex;align-items:center;gap:var(--sp-1);min-height:44px}
.winner-text{display:grid}.winner-text a{font-weight:600}
/* The whole row is the link: the hero, its name and its prize, 44 px tall for a finger. */
.winner-text a::after{content:"";position:absolute;inset:0}
#fit-race-title{display:flex;align-items:center;gap:var(--sp-1)}
#fit-race{margin-top:var(--sp-1)}
/* A hero's page: Power and Overall under its class, the line for a hero that keeps its numbers private, and the Fitness panel. */
.ratings{display:flex;flex-wrap:wrap;gap:var(--sp-h) var(--sp-2);margin:0}
.ratings span{display:inline-flex;align-items:baseline;gap:var(--sp-h)}
.hidden-note{margin:0}
.fit-levels dt{display:flex;align-items:center;gap:var(--sp-1)}
/* The second phone walk: pixel type at Android's text size on a browser that doesn't say what it is (menu.js measures it from
   .text-probe: a long hidden paragraph the browser enlarges, and a sliver that has width only where env(preferred-text-scale) is known).
   There every size grows by the measured amount, as it does where the browser says, and the browser's own enlarging of long
   paragraphs is stopped (it leaves a block alone once anything around it has a height limit, however large). */
.text-probe{height:0;overflow:hidden;visibility:hidden}
.text-probe>div{float:left;width:100%}
.text-probe>i{display:block;width:calc(1px*env(preferred-text-scale,0))}
@media(max-width:719px){
 html.own-scale{--text-scale:clamp(1,var(--own-scale,1),1.3)}
 html.own-scale body>*{max-height:9999999px}
}
/* The website bug hunt, on a phone. A race lane stacks under 400 px (name, the track full width, the score), where the track had
   shrunk to a sliver beside its score. The status line under the picks takes no room while it has nothing to say (it kept an empty
   band above the first row). A hero's name on a Wishing Well find or in its givers is the whole card or row to a finger. */
@media(max-width:399px){
 .lane{grid-template-columns:20px minmax(0,1fr);grid-template-areas:"place name" "place track" "place line"}
 .lane .lane-line{justify-self:start}
}
@media(max-width:599px){#status:empty{min-height:0;margin-top:calc(var(--sp-1)*-1)}}
@media(max-width:719px),(pointer:coarse){
 .wl-findlist li,.wl-done li{position:relative;min-height:44px}
 .wl-find a::after,.wl-done li a::after{content:"";position:absolute;inset:0}
}
/* A racer that keeps its numbers private still shows ??? on a phone (the lane hides its second figure there, and hid this with it). */
.lane-line .hidden-number,.lane-line .hidden-number span{display:inline}
/* A row's line breaks between its parts, never inside one (the all-on phone walk: "17,333 / Hero XP, Power / 221"). */
.standings .meta .pair{display:inline-block}
/* Compare on a phone: the table's empty corner takes no row. */
@media(max-width:599px){#compare-content tr>th:first-child:empty{display:none}}
/* A hero's page: what Overall is, once, under Power and Overall. */
.overall-line,.power-parts{margin:0;color:var(--muted)}
.power-about{display:grid;gap:2px;margin:0;color:var(--muted)}
/* 1.8.3: Notes from camp, which update each watch has (STORE_LINE), as an inset note under the lead. */
.store-line{display:inline-block;max-width:100%;margin:0 0 var(--sp-2);padding:var(--sp-h) var(--sp-1);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink);color:var(--text);font-weight:600;overflow-wrap:anywhere}
/* web-fitness: add above this line */
/* ---- 1.8.0, Chapter 4 on the website: the field guide's chapter card, Gnewton's first letter and the pass's line ---- */
.chapter-card{display:block;width:100%;max-width:var(--card,100%);height:auto;margin:0 0 var(--sp-2);image-rendering:pixelated}
.chapter-letter{margin:0 0 var(--sp-2)}
.chapter-pass{margin:0 0 var(--sp-1);font-weight:600}
/* web-ch4: add above this line */
/* - */
/* - */
/* - */
/* 1.9.1: Rare sightings on a hero page. A live pack's monster has no gilded still of its own, so its picture takes a gold tint. */
.sprite.gilded{filter:sepia(1) saturate(2.4) hue-rotate(-12deg) brightness(1.08)}
/* Route Juice: a route's whole name on one line, then its Juice and a bar out of 5, like the stats above it. */
.stats.juice div{grid-template-columns:9.5em 2.6em minmax(0,1fr)}
/* Notes from camp, Wanted: each favourite beside its live pack picture (camp-notes.js), a 48 px slot that goes when there's no art. */
.note.wanted h3{margin:var(--sp-2) 0 4px}.note.wanted p{margin:0 0 8px}
/* On a phone a note drops its own frame inside the sheet, so its words get the sheet's width (QA S-17); a rule keeps notes apart. */
@media(max-width:479px){.note.panel{border:0;border-image:none;padding:var(--sp-1) 0 var(--sp-2);border-bottom:2px solid var(--line)}}
.note .wanted-list{list-style:none;padding-left:0}.wanted-list li{display:flex;align-items:center;gap:8px}.wanted-list .pack-pic{flex:none;display:inline-block;width:48px;height:48px}
/* Rankings: the board's heading, there for screen readers' heading jumps, never drawn (leaderboard.js paint). */
#board>.board-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* guidlands.com, deploy D: the front door, the owner's design A, "the hung board" (docs/design/front-door/README.md). Only on the page
   the Worker sends while FRONT_DOOR is on (door-page.js), and only while its camp face shows: the camp fills the screen, the welcome
   sign is the site's plaque hung on two ropes, the guest buttons sit on a bar at the bottom (under the sign on a desk), and four tags
   name the things. The Play page underneath is hidden until "Skip the map".
   The stage's backdrop is the camp's own grass (QA P-1), so the first frame, before the map is drawn, already looks like the camp at
   every width: the plain grass tiles' colour by day (#647645), and at night that grass under render.js's wash (NIGHT.wash,
   rgba(14,16,44,.62)), #2f3735. */
#door{display:none;--door-grass:#2f3735;--door-tag:rgba(28,31,51,.92);--door-title:#ffee83;--door-sub:var(--gold)}
:root[data-mode=world],:root[data-mode=world] body{height:100%;overflow:hidden}
:root[data-mode=world] body{background:var(--ground)}
:root[data-mode=world] body::before{content:none}
:root[data-mode=world] body>header,:root[data-mode=world] main,:root[data-mode=world] body>footer,:root[data-mode=world] body>.skip{display:none}
:root[data-mode=world] #door{display:block}
:root:where([data-theme=day]) #door{--door-grass:#647645;--door-tag:rgba(61,41,54,.92);--door-title:var(--ink);--door-sub:var(--plum)}
:root:where([data-theme=day]) .door-theme i{-webkit-mask-image:var(--icon-day);mask-image:var(--icon-day)}
@media(prefers-color-scheme:light){:root:where(:not([data-theme=night])) #door{--door-grass:#647645;--door-tag:rgba(61,41,54,.92);--door-title:var(--ink);--door-sub:var(--plum)}
:root:where(:not([data-theme=night])) .door-theme i{-webkit-mask-image:var(--icon-day);mask-image:var(--icon-day)}}
/* The bar over the camp: Skip the map first in the tab order, then the theme and Menu. Owner, 2026-11-29 ("the menu/skip the map
   are kind of hard to see"): each is the site's blue stone button, the frame "I have a watch code" wears, light words on it by day
   and by night with a dark rim under it, so it stands off the map. Menu has its three bars, and from 600 points the theme shows the
   look's name beside the moon or the sun (on a phone its name is spoken, and there isn't room for the word). */
:root[data-mode=world] .door-skip{position:fixed;z-index:6;top:8px;left:8px;margin:0}
:root[data-mode=world] .door-skip,.door-tools button{gap:8px;min-width:48px;min-height:48px;padding:0 4px;border-width:calc(6*var(--u));border-image:url(/assets/ui/btn-stone.png) 6 fill/calc(6*var(--u));color:var(--field);text-shadow:0 2px 0 var(--navy);filter:drop-shadow(0 2px 0 var(--ink))}
:root[data-mode=world] .door-skip:active,.door-tools button:active{border-image-source:url(/assets/ui/btn-stone-down.png);padding-top:0}
.door-tools{position:fixed;z-index:6;top:8px;right:8px;display:flex;gap:8px}
.door-theme i,.door-tools .bars{flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--icon-night) center/16px no-repeat;mask:var(--icon-night) center/16px no-repeat}
.door-tools .bars{-webkit-mask:none;mask:none;width:14px;height:2px;box-shadow:0 -5px currentColor,0 5px currentColor}
.door-word{display:none}.door-word::after{content:"Night"}
@media(min-width:600px){.door-word{display:inline}}
:root:where([data-theme=day]) .door-word::after{content:"Day"}
@media(prefers-color-scheme:light){:root:where(:not([data-theme=night])) .door-word::after{content:"Day"}}
/* The camp: two canvases filling the screen, the door's own (from the snapshot) over The Commons' (once a hero walks in). */
.door-cm{display:block;margin:0}
.door .door-stage{position:fixed;inset:0;width:auto;height:auto;margin:0;padding:0;border:0;border-image:none;background:var(--door-grass);touch-action:manipulation}
.door-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;image-rendering:pixelated}
.door-stage .door-map{cursor:url(/assets/ui/hand.png) 9 1,pointer}
:root:not([data-door-in=on]) .door-stage #map{visibility:hidden}
:root[data-door-in=on] .door-stage .door-map,:root[data-door-in=on] .door-things{display:none}
.door-cm:not(.playing) .cm-list,.door-cm:not(.playing) #cm-keys{display:none}
.door-cm.playing .cm-hud{top:60px}
@media(min-width:1100px){.door-cm.playing .cm-list{position:fixed;z-index:4;top:64px;right:8px;bottom:8px;width:320px;overflow:auto}}
/* The tags: a name plate in the pixel font with a gold chevron at the thing; each is a 44-point button, in the tab order after the sign. */
.door-things{position:fixed;inset:0;z-index:2;pointer-events:none;visibility:hidden}
.door-things.ready{visibility:visible}
.door-tag{position:absolute;pointer-events:auto;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center;min-height:44px;padding:0;border:0;border-image:none;background:none;color:#fff3d6;text-shadow:none;white-space:nowrap}
.door-tag span{display:block;transform:translateX(var(--dx,0px));padding:8px 12px 4px;background:var(--door-tag);box-shadow:0 0 0 2px var(--ink)}
.door-tag::after{content:"";width:12px;height:10px;margin-top:2px;background:linear-gradient(#ffee83,#ffee83) 3px 0/6px 2px no-repeat,linear-gradient(#ffee83,#ffee83) 5px 2px/2px 4px no-repeat,linear-gradient(var(--ink),var(--ink)) 0 0/12px 6px no-repeat;clip-path:polygon(0 0,100% 0,50% 100%)}
.door-tag[data-thing="door.post"]{transform:translate(0,-50%);flex-direction:row-reverse}
.door-tag[data-thing="door.post"]::after{margin:0 2px 0 0;width:8px;height:12px;background:#ffee83;clip-path:polygon(100% 0,0 50%,100% 100%)}
.door-tag:hover span,.door-tag:focus-visible span{box-shadow:0 0 0 2px var(--ink),0 0 0 4px #ffee83}
.door-tag.folded{display:none}
.door-things.folded .door-tag.folded{display:flex}
@media(max-width:360px){.door-tag[data-thing="door.arena"]{--dx:-34px}.door-tag[data-thing="door.dummy"]{--dx:34px}}
/* The welcome sign: the header's own plaque, hung from the top edge by two ropes. */
.door-col{display:contents}
.door-board{position:fixed;z-index:3;top:60px;left:8px;right:8px;margin:0 auto;max-width:640px;border-style:solid;border-color:transparent;border-width:calc(10*var(--u)) calc(8*var(--u)) calc(9*var(--u));
  border-image:var(--plaque) 11 10 10 9 fill/calc(11*var(--u)) calc(10*var(--u)) calc(10*var(--u)) calc(9*var(--u));padding:0 8px;color:var(--text);text-align:center}
.door-board::before,.door-board::after{content:"";position:absolute;z-index:-1;top:-80px;width:6px;height:72px;background:repeating-linear-gradient(#a8744a 0 6px,#6b4430 6px 10px);box-shadow:0 0 0 2px var(--ink)}
.door-board::before{left:18%}.door-board::after{right:18%}
/* The name alone heads the sign (owner, 2026-11-29: "Remove it there too", the line under it), with the space that line held. */
.door-board h1{margin:4px 0 12px;font-size:var(--size-title);overflow-wrap:normal;color:var(--door-title);text-shadow:0 3px 0 var(--ink)}
/* Large text with the camp chosen (QA S-2): the sign scrolls inside itself above the guest bar, and Skip the map wraps rather than
   running under the theme button. */
:root[data-large-text=on] .door-board{max-height:calc(100dvh - 216px);overflow-y:auto;overscroll-behavior:contain}
:root[data-large-text=on] .door-board h1{font-size:var(--size-label)}
:root[data-large-text=on][data-mode=world] .door-skip{max-width:calc(100vw - 200px);white-space:normal;text-align:left}
.door-board p{max-width:34em;margin:0 auto 8px;line-height:1.4}
.door-board .badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:4px 0 8px}
.door-board .small{display:block;margin-bottom:4px;font-size:var(--size-small);color:var(--muted)}
/* The guest bar: where The Commons keeps its own buttons. The class picker opens in it. */
.door-guest{position:fixed;z-index:3;left:8px;right:8px;bottom:8px;margin:0 auto;max-width:520px;border:calc(7*var(--u)) solid transparent;border-image:var(--sheet) 11 fill/calc(11*var(--u));padding:2px 4px;color:var(--text)}
.door-ways{display:grid;gap:8px;margin:0}
.door-ways button{width:100%}
.door-guest #intro-text:empty,.door-guest #intro-status:empty{display:none}
.door-guest #intro-text,.door-guest #intro-status{margin:4px 0;text-align:center}
.door-guest #intro-pick h3{margin:4px 0}
@media(min-width:600px){.door-ways{grid-template-columns:1.25fr 1fr}}
@media(max-width:360px){.door-board .store{flex-basis:120px;border-width:0 16px;border-image-width:0 16px;font-size:var(--size-small)}}
@media(max-height:700px) and (max-width:999px){.door-board{top:56px}.door-board p{font-size:var(--size-small);line-height:1.35;margin-bottom:4px}.door-board .badges{margin:2px 0 4px}}
/* A short phone (QA WB-1): the two store buttons share a row, and when the room under the sign still can't hold every tag, door.js
   stands the sign shorter (.door-short, its max-height) and its words scroll inside it, as they do with large text. */
@media(max-height:760px) and (max-width:999px) and (orientation:portrait){.door-board .badges{flex-wrap:nowrap}.door-board .store{flex-basis:0;min-width:0;border-width:0 16px;border-image-width:0 16px;font-size:var(--size-small)}.door-board h1{margin:2px 0 4px}}
.door-board.door-short{overflow-y:auto;overscroll-behavior:contain}
.door-board.door-stores-first{display:flex;flex-direction:column}.door-stores-first h1{order:-2}.door-stores-first .badges{order:-1}
/* A phone on its side (QA WB-1: the board covered all four tags at 844 x 390): the sign with the guest buttons under it stands in a
   column at the left, 42% of the width and 400 points at most (door.js SIDE), its words scrolling inside it, and the camp's things
   stand in the room to its right. */
@media(max-width:999px) and (max-height:499px) and (orientation:landscape){
  .door-col{position:fixed;z-index:3;top:56px;bottom:8px;left:8px;width:min(400px,42vw);display:flex;flex-direction:column;gap:8px}
  .door-board,.door-guest{position:relative;inset:auto;margin:0;max-width:none}
  .door-board{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .door-board .badges{flex-wrap:nowrap}.door-board .store{flex-basis:0;min-width:0;border-width:0 16px;border-image-width:0 16px;font-size:var(--size-small)}
  .door-guest{flex:none}
  .door-ways{grid-template-columns:none}
}
/* A desk: the sign hangs with the guest buttons under it, and the camp's things stand clear to its right. Owner, 2026-11-29 ("The
   positioning of things are off centered"): the sign hangs at the left edge of the site's own column (1216 points at most, centred,
   as every other page's header and footer), and door.js anchor() stands the things in the middle of the room beside it, so on a wide
   screen the whole picture is centred instead of the sign holding the left edge. */
@media(min-width:1000px){
  .door-col{position:fixed;z-index:3;top:64px;left:max(24px,calc((100% - 1216px)/2));width:560px;display:flex;flex-direction:column;gap:16px}
  .door-board,.door-guest{position:relative;inset:auto;margin:0;max-width:none}
  .door-board{padding:0 16px}
}
/* The places list (the fingerpost and the Menu) and the board's two tiles, in The Commons' panel. */
.door-places{display:grid;gap:8px;margin:0 0 var(--sp-2);padding:0;list-style:none}
.door-places a{width:100%}
.door-live{display:grid;gap:8px}
.door-boss{display:grid;gap:4px}.door-boss>p{margin:0}
.cm-sheet #fire>h2,.cm-sheet #fire .fire-side{display:none}
.cm-sheet #fire{margin:0}
/* Today's duel on the front door (QA WC-12): one column, the duel card and what's under it centred in the wide sheet, so its right
   half isn't empty. */
.cm-sheet #fire .fire-grid{grid-template-columns:minmax(0,1fr)}
.cm-sheet #fire .duel-day{width:min(100%,640px);justify-self:center}
.cm-sheet[data-panel=door-duel] #sheet-body>:is(p,.cm-row){text-align:center;justify-content:center}
/* The 8-second rule's line, at the top of the Play page. */
.door-late{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:var(--sp-2) 0 0;text-align:center}
.door-late p{margin:0}
:root[data-door-late=on] .door-show{display:none}
@media(forced-colors:active){.door-board,.door-guest,.door-tag span{border:2px solid CanvasText;border-image:none}}
/* 1.12.0 (Vault contract V10): the Vault, in The Commons' panel and on the hero's own page. Labeled fields that wrap, rows that wrap at
   200% and at 390 px, and every state in words. */
.vault-tabs,.vault-filters,.vault-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:8px 0}
.vault-field{display:grid;gap:4px}.vault-field input,.vault-field select{min-width:0;max-width:100%}
.vault-check{display:flex;gap:8px;align-items:center;min-height:48px}.vault-check input{width:24px;height:24px;flex:none}
.vault-list{display:grid;gap:8px;margin:8px 0;padding:0;list-style:none}
/* QA RD-11: a row's checkbox, icon and name stay on one line at any text size (the name wraps); its count and notes go under them. */
.vault-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:center}.vault-row>input[type=checkbox]{width:24px;height:24px}.vault-row>:nth-child(n+3){grid-column:1/-1}
.vault-row label{display:flex;gap:8px;align-items:center;min-width:0;overflow-wrap:anywhere}.vault-row label>span{min-width:0}.vault-range{flex-basis:100%;margin:0}.vault-row .vault-field input{width:6em}
.vault-moves ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.vault-move p{margin:0}
/* ---- Hero sheet (lane gl/web-profile; owner, Nov 29: "more visually appealing and professional looking like the WOW character
   detail screens"), in the game's own windows. The name on its plaque over the hero at camp; the worn gear either side of the hero
   (eight: four a side; three: a row under it; a phone: rows under it), each slot opening its piece below; level, Hero XP, Power and
   the stats in a paper panel beside it from 900 px; the ranks; then one part at a time (sheettabs.js): stone tabs on a wide screen,
   the themed dropdown on a phone or with big text (the tabs' width is in em, so 200% text gets the dropdown too). */
.reading.hero-sheet{max-width:1180px}
.hero-sheet .sheet-top{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp-2);margin-bottom:var(--sp-2)}
.hero-sheet .sheet-name{display:grid;justify-items:center;gap:var(--sp-h);text-align:center}
.hero-sheet .sheet-name .eyebrow{margin:0}.hero-sheet .sheet-name h1{margin:0;max-width:100%}
/* QA RD-13: a long one-word part of a name ("Mudwader") at 200% text on a phone: the plaque takes the label size, as a ribbon does
   there, and as a last resort the word breaks, so the board never runs past the sheet. */
.hero-sheet .sheet-name{min-width:0}.hero-sheet .sheet-name h1{overflow-wrap:anywhere;min-width:0}
@media(max-width:15em){.hero-sheet .sheet-name h1{font-size:var(--size-label)}}
@media(max-width:719px){:root[data-large-text=on] .hero-sheet .sheet-name h1{font-size:var(--size-label)}}
.hero-sheet .plate{align-content:start}
.hero-sheet .stage-row{display:grid;grid-template-areas:"den" "a" "b";justify-items:center;align-items:center;gap:var(--sp-1);width:100%}
.hero-sheet #plate{grid-area:den;max-width:100%}.hero-sheet #gear{grid-area:a}.hero-sheet #gear-more{grid-area:b}
.hero-sheet .stage-row .worn{flex-direction:row;flex-wrap:wrap}
.hero-sheet .gear-hint{margin:0;text-align:center}
@media(min-width:560px){
 .hero-sheet .stage-row.sides{grid-template-areas:"a den b";grid-template-columns:auto minmax(0,auto) auto;justify-content:center;column-gap:var(--sp-2)}
 .hero-sheet .stage-row.sides .worn{flex-direction:column;flex-wrap:nowrap}
}
@media(max-width:359px){.hero-sheet .worn button{width:56px;height:56px}}
.hero-sheet .worn-detail{min-height:0}
.hero-sheet .hero-id{display:grid;align-content:start;gap:var(--sp-h)}
.hero-sheet .hero-id>p,.hero-sheet .hero-id>div{margin:0}
.hero-sheet .hero-id .class{font-size:var(--size-sub)}
.hero-sheet .hero-id .xp{margin:var(--sp-h) 0}
.hero-sheet .hero-id .hero-code{justify-self:start}
/* "Updated today" stays with who the hero is, under the hero code, in the small type of the lines around it (the site-wide #status rule
   moves it to the end on a phone, which put it under Report name). */
.hero-sheet .hero-id #status{order:0;flex-basis:auto;min-height:0;margin:0;font-size:var(--size-small)}
.hero-sheet .sheet-stats{margin-top:var(--sp-2);border:calc(4*var(--u)) solid transparent;border-image:var(--paper) 9 fill/calc(9*var(--u));padding:calc(3*var(--u)) calc(4*var(--u))}
.hero-sheet .sheet-stats h2{margin-top:0}
.hero-sheet .sheet-stats .stats{grid-template-columns:minmax(0,1fr);gap:var(--sp-1);margin-bottom:var(--sp-1)}
/* With big text on a phone the name column gives way first, so the number and a stub of its bar always fit inside the panel. */
.hero-sheet .sheet-stats .stats div{grid-template-columns:minmax(min-content,7.5em) minmax(min-content,2.6em) minmax(1.5rem,1fr)}
@supports (grid-template-columns:subgrid){
 .hero-sheet .sheet-stats .stats{grid-template-columns:minmax(min-content,7.5em) minmax(min-content,2.6em) minmax(1.5rem,1fr);column-gap:var(--sp-1)}
 .hero-sheet .sheet-stats .stats div{grid-column:1/-1;grid-template-columns:subgrid}
}
/* Only when the panel is too narrow for its longest name, its number and a stub of its bar on one line (320 px with the browser's text
   at 200%): each name sits on its own line, with its number and bar under it, so nothing runs past the panel. Under 900 px only: from
   there the panel's column is as wide as the panel needs, and a size container would stop it sizing that column. */
@media(max-width:899px){.hero-sheet .sheet-stats{container-type:inline-size}}
/* QA WC-18: and on a phone's narrow panel too (320 px), where the bars had shrunk to a stub: each name over its number and a full-width bar. */
@container (max-width:17em){
 .hero-sheet .sheet-stats .stats,.hero-sheet .sheet-stats .stats div{grid-template-columns:minmax(min-content,2.6em) minmax(1.5rem,1fr);row-gap:0}
 .hero-sheet .sheet-stats .stats dt{grid-column:1/-1}
}
.hero-sheet .sheet-stats .stats-group{margin:var(--sp-1) 0}
.hero-sheet .sheet-stats .bar-key{margin:var(--sp-1) 0 0;color:var(--muted)}
.hero-sheet .sheet-stats .power .num{font-size:var(--size-title);line-height:1}
/* From 900 px: the hero and its gear at the left with the stats under them; who the hero is and its ranks at the right. */
.hero-sheet .sheet-top>#ranks-box h2{margin-top:var(--sp-2)}
/* 700 to 899 px: the hero, then who it is, then the stats and the ranks side by side. */
@media(min-width:700px) and (max-width:899px){
 .hero-sheet .sheet-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"name name" "doll doll" "id id" "stats ranks";align-items:start;column-gap:var(--sp-3)}
 .hero-sheet .sheet-name{grid-area:name}.hero-sheet .plate{grid-area:doll}.hero-sheet .hero-id{grid-area:id}.hero-sheet .sheet-stats{grid-area:stats}
 .hero-sheet .sheet-top>#ranks-box{grid-area:ranks;margin-top:var(--sp-2)}.hero-sheet .sheet-top>#ranks-box h2{margin-top:0}
}
@media(min-width:900px){
 .hero-sheet .sheet-top{grid-template-columns:auto minmax(18rem,1fr);grid-template-areas:"name name" "doll id" "stats ranks";align-items:start;column-gap:var(--sp-4)}
 .hero-sheet .sheet-name{grid-area:name}.hero-sheet .plate{grid-area:doll}.hero-sheet .hero-id{grid-area:id}.hero-sheet .sheet-stats{grid-area:stats;margin-top:0}
 .hero-sheet .sheet-top>#ranks-box{grid-area:ranks}.hero-sheet .sheet-top>#ranks-box h2{margin-top:0}
}
.sheet-nav{margin:var(--sp-4) 0 0;padding-top:var(--sp-2);border-top:2px solid var(--line)}
.sheet-nav .sheet-pick{justify-content:center;margin:0}
.sheet-part{outline-offset:4px}
.sheet-part>section:first-child>h2,.sheet-part>div:first-child>h2{margin-top:var(--sp-3)}
.gear-rows li{padding:var(--sp-1);background:var(--well);box-shadow:inset 0 0 0 2px var(--ink)}
.hero-sheet .case{justify-items:start}.hero-sheet .case h2{margin-top:var(--sp-3)}
.gear-rows .name+p{font-size:var(--size-small)}
/* The ranks beside the stats: the best rank across the top, the rest two a row under it. */
.hero-sheet .sheet-top .rank-row{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp-1)}
.hero-sheet .sheet-top .rank-row.goal{display:flex}
.hero-sheet .sheet-top .rank-chips{grid-template-columns:repeat(auto-fill,minmax(min(100%,10.5rem),1fr))}
.hero-sheet .sheet-top .rank-chips li:last-child:nth-child(odd){grid-column:auto}
.hero-sheet>#todo-box{margin-top:var(--sp-4)}
/* A mouse resting on a slot: its piece in a tooltip beside it (fixed, so nothing on the page moves). */
.slot-tip{position:fixed;z-index:20;width:max-content;max-width:min(18rem,calc(100vw - 16px));margin:0;pointer-events:none;box-shadow:inset 0 0 0 2px var(--accent),0 calc(2*var(--u)) 0 var(--ink)}
/* ---- Hero sheet end ---- */
/* ---- Firsts (1.13.0, docs/plans/1.13.0-firsts-contract.md F7): Rankings' record book. A row is the board's row with the mark where
   the place number stands (a level, a skill's icon over its level, a boss's picture), the hero idling, then who holds it or the
   state's words, and the mark's name under it. No score column and no moves: a first never moves. ---- */
.standings.firsts .character.first{grid-template-columns:48px 44px minmax(0,1fr);grid-template-areas:"mark art name" "mark art meta";min-height:66px}
.first-mark{grid-area:mark;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;color:var(--accent);text-align:center}
.first-mark .num{line-height:1}.first-mark .sprite{display:block}
.first-nobody{grid-area:art;width:44px;height:44px}
.standings .first .state{color:var(--muted);overflow-wrap:break-word;min-width:0}
/* ---- Firsts end ---- */
