/* Ойкумена — HUD and shell. The world is canvas; everything chrome-like is DOM so
   it scales with the browser's own text size and stays tappable on a phone. */

/* steam-cyberpunk: soot and brass for the frame, neon for what is alive */
:root{
  --ink:#ece6d6; --ink-dim:#aaa294; --ink-faint:#776f62;
  --bg:#0a0b0d; --panel:#141210; --panel-2:#1d1914; --line:#4a3c26;
  --hp:#b5452f; --hp-2:#e2714f;
  --sta:#2f7d86; --sta-2:#4fe0ee;
  --xp:#8a6a2e; --xp-2:#e0b45a;
  --accent:#e0b45a; --danger:#e0553a;
  --neon:#4ff0ff; --neon-2:#ff4fd8;
  /* item qualities: white, green, blue, purple, orange */
  --t-common:#d8d2c0; --t-good:#62d26f; --t-rare:#4f9dff; --t-epic:#b77af5; --t-legend:#ff9a3c;
  --r:10px;
  --cell:34px;
  --safe-t:env(safe-area-inset-top,0px);
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-l:env(safe-area-inset-left,0px);
  --safe-r:env(safe-area-inset-right,0px);
  /* the screen's layers (B092), bottom up; every z-index of a layer is one of these, never a number. The world's GL
     canvas is at the bottom; its lines (the way, rings, hexes, outlines) are drawn there, under the overlay canvas,
     where every in-field label, bar and pop is painted (gl/fx.js draw2D, its own order). */
  --z-field:10;   /* the overlay canvas: names, bars over heads, pops, labels */
  --z-ring:15;    /* the ring of acts round what is chosen (on the field, under the HUD) */
  --z-hud:20;     /* the HUD: its own scale below (--zh-*) */
  --z-splat:21;   /* blood slapped on the screen itself (F098, splatview.js): over the HUD, never catching a touch */
  --z-rail:25;    /* a desktop's rail */
  --z-sheet:35;   /* a screen: a phone's whole page, a desktop's panel */
  --z-tabs:36;    /* a phone's tab bar, over its screen */
  --z-veil:40;    /* the adventure airship's veil */
  --z-login:45;   /* the newcomer's isle's «Увійти» */
  --z-title:50;
  --z-dialog:59;  /* the sign-in card */
  --z-call:60;    /* the calls (a band's call, death, toasts) and the cards that ask: the age, the language chip */
  --z-note:61;    /* «Без інтерфейсу»'s word */
  --z-show:70;    /* a box opened, the boot's veil */
  --z-stream:80;
  --z-drag:90;
  --z-tip:95;
  --z-book:120;   /* «Написати нам»'s toasts' floor: over everything a player could be complaining about */
  --z-book-toast:121; /* its undo, over the sheet */
  --z-modal:200;  /* the sound's question */
  --z-book-card:211; /* «Написати нам»'s card (F140): over every screen, card and modal it may be opened from */
  /* inside the HUD (one stacking context): the frame and the edges' glow lowest, the top left corner, the feed, a passing
     hint, the tag under the feet, the chosen one's card, the bars, the menus, the dock, the screen's edge bars, the 👁 */
  --zh-base:0;
  --zh-corner:1;
  --zh-feed:3;
  --zh-hint:5;
  --zh-tag:9;
  --zh-card:11;
  --zh-bar:12;
  --zh-menu:14;
  --zh-dock:15;
  --zh-menu-docked:16;
  --zh-edge:30;
  --zh-pop:40;
  /* inside the calls (one stacking context): a death's card, a return's, the toasts over them, a band's call, «Гра оновилась» on top */
  --zc-card:5;
  --zc-away:6;
  --zc-toast:14;
  --zc-bar:30;
  --zc-update:31;
}
@media (max-width:460px){ :root{ --cell:calc((100vw - 44px) / 10) } }

*{box-sizing:border-box}
html,body{height:100%;margin:0;overflow:hidden;background:var(--bg);color:var(--ink)}
body{
  font:500 14px/1.45 "Segoe UI",Roboto,system-ui,-apple-system,sans-serif;
  -webkit-text-size-adjust:100%;
  -webkit-tap-highlight-color:transparent;
  overscroll-behavior:none;
  touch-action:none;
  user-select:none; -webkit-user-select:none;
}
canvas#stage{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}
canvas#overlay{position:fixed;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:var(--z-field)}
/* the ring of acts round the person chosen (ring.js): placed at its point each frame, its icons a thumb's size */
.ring{position:fixed;left:0;top:0;width:0;height:0;z-index:var(--z-ring);pointer-events:none}
.ring .ract{position:absolute;width:40px;height:40px;margin:-20px 0 0 -20px;padding:0;border-radius:20px;pointer-events:auto;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:18px;line-height:1;
  background:#0b0d0ae6;border:1px solid var(--line);color:var(--ink);box-shadow:0 2px 8px #000a;touch-action:manipulation}
.ring .ract.primary{border-color:#7d7132}
.ring .ract.war{border-color:#a04838}
.ring .ract.warn{border-color:#8a8a8a}
.ring .ract.on{border-color:#f0d060;box-shadow:0 0 10px #f0d06066}
.ring .ract:disabled{opacity:.5}
/* a dear act tapped once: its cost in words, the next tap does it */
.ring .ract.asking{width:auto;padding:0 12px 0 10px;white-space:nowrap;border-color:#f0a060;background:#2a1a10f2}
.ring .rword{font:700 12px/1 system-ui,sans-serif;color:#f0c090}
/* a skill cooling: dimmed, its seconds over it; on a desktop the key that does it under it */
.ring .ract.cooling{opacity:.6}
.ring .rcd{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:800 14px/1 system-ui,sans-serif;color:#fff;text-shadow:0 0 4px #000,0 0 2px #000}
.ring .ract kbd{position:absolute;right:-3px;bottom:-3px;font:700 9px/1 system-ui,sans-serif;padding:1px 3px;border-radius:4px;background:#000c;color:#d8d0bc}
/* its two levels (B126): «✦ Чари ›» and «‹» back drawn dashed, the way between them; an act that cannot be done now
   grey, its tap saying why */
#ring .ract.nav{border-style:dashed;font-weight:800}
#ring .ract.dim{filter:grayscale(1);opacity:.6}
#ring .rmore{margin-left:-5px;font:800 15px/1 system-ui,sans-serif;font-style:normal}
/* the strip (B140, the 👁's «Дії цілі: панель»): the acts docked under the target's card (a hex held: where the card
   would stand), still on the screen — one block in the card's dress (B145): whose acts these are at its head, the
   buttons in a row (B155): round icons of 44 px, the main act's word beside it, all words up to three (ring.js
   labelled); «Чари» open, its spells a second row. The key a small badge on each one's corner (a desktop's) */
#ring.dock{position:static;width:auto;height:auto;display:grid;gap:4px;padding:3px 4px 4px;max-width:min(96vw,560px);box-sizing:border-box;
  background:#0b0d0ad8;border:1px solid var(--line);border-radius:8px;box-shadow:0 2px 8px #000a;pointer-events:auto;transform:none}
#ring.dock .rhint{padding:1px 3px 0;text-align:left;font:700 10px/1.2 system-ui,sans-serif;
  letter-spacing:.04em;text-transform:uppercase;color:var(--ink-faint)}
#ring.dock .rrow{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
#ring.dock .rrow+.rrow{padding-top:4px;border-top:1px dashed #ffffff3a}
#ring.dock .ract{position:relative;flex:0 1 auto;width:auto;min-width:0;height:44px;margin:0;padding:0 10px 0 5px;border-radius:22px;gap:5px;
  justify-content:flex-start;box-shadow:none}
#ring.dock .ract.rround{flex:0 0 44px;width:44px;padding:0;justify-content:center}
#ring.dock .ract.rround .rlab{display:none}
#ring.dock .ract kbd{right:1px;bottom:-2px;min-width:9px;text-align:center}
#ring.dock .ract .sic{width:30px;height:30px;font-size:18px;flex:none}
#ring.dock .ract.rround .sic{width:34px;height:34px}
#ring.dock .rlab{min-width:0;overflow:hidden;text-overflow:ellipsis;font:700 12px/1 system-ui,sans-serif;white-space:nowrap}
body.touch #ring.dock{max-width:none;min-width:0}
body.touch #ring.dock .rrow:not(:has(:nth-child(4))){flex-wrap:nowrap}
body.touch #ring.dock .rrow:has(:nth-child(6)){gap:3px}
body.touch #ring.dock .ract{height:44px;padding-right:8px}
body.touch #ring.dock .ract.rround{padding:0}
/* L17: in the target's own card the acts are its lower half — one frame under its head, no second header, no box of
   their own (ring.js dockHome 'card') */
.target>#ring.dock.incard{grid-column:1 / -1;min-width:0;max-width:none;margin:4px 0 0;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
/* the attack's button stays out of sight (F036): Space strikes on a desktop, the foe's ring «Удар» on a phone, the
   auto-attack keeps on; the bar's places are the quick actions' strip (F139, further down) */
.qbar>.act-hit{display:none!important}

/* the pilot (F036, B054): a slim line, shown only while the hero plays by itself (and in the last seconds before it
   does); a tap opens the autopilot's choices */
.pilot{position:absolute;left:50%;transform:translateX(-50%);top:calc(8px + var(--safe-t));z-index:var(--zh-bar);display:flex;align-items:center;gap:6px;
  padding:3px 10px;border-radius:999px;background:#0b0d0acc;border:1px solid #6fd38a66;max-width:min(60vw,320px);cursor:pointer;
  touch-action:manipulation;-webkit-user-select:none;user-select:none}
@media (hover:hover){.pilot:hover{filter:brightness(1.15)}}
.pilot .pdot{width:7px;height:7px;border-radius:50%;background:#e3c34a;flex:none}
.pilot.on .pdot{background:#6fd38a;box-shadow:0 0 6px #6fd38a}
.pilot .pt{display:flex;min-width:0}
.pilot b{font:600 11.5px/1.2 system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#cfe9d4}
.pilot small{display:none}

/* «Захист» and «Авто» (B054, F090): two round buttons side by side low on the right, phone and desktop alike; the stance
   wears its colour, «Авто» is lit gold while the hero plays alone; a ring fills round a button held (HOLD_MS in ui.js) */
.duo{display:flex;align-items:center;gap:12px;flex:none;position:relative}
.duob{--d:64px;position:relative;width:var(--d);height:var(--d);border-radius:50%;flex:none;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:2px;background:#12140fe0;border:3px solid #5a5446;color:#b8ae96;box-shadow:0 2px 8px #000a;
  touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media (hover:hover){.duob:hover{filter:brightness(1.15)}}
.duob .dico{font-size:calc(var(--d) * .32);line-height:1}
/* the word within the disc: ui.js fits a long one (fitline.js), smaller, then on two lines */
.duob .dword{max-width:calc(var(--d) - 10px);font:800 10px/1 system-ui,sans-serif;white-space:nowrap;overflow-wrap:anywhere;text-align:center;text-shadow:0 1px 2px #000}
.stanceb[data-stance="aggressive"]{background:#3a1d16e6;border-color:#ff9a80;color:#ffc6b8}
.stanceb[data-stance="defensive"]{background:#152838e6;border-color:#9fdcff;color:#d2efff}
.stanceb[data-stance="passive"]{background:#183020e6;border-color:#b8f0c4;color:#d8f8de}
/* «Авто» with nothing chosen shows 🤖 itself: its corner's badge would say it twice */
.autob[data-face="auto"] .dmark{display:none}
.autob.on{background:#3a2a1e;border-color:#f0d060;color:#f0d060;box-shadow:0 0 14px #f0d06073}
@media (prefers-reduced-motion:no-preference){.autob.on{animation:atkhum 2.2s ease-in-out infinite}@keyframes atkhum{50%{box-shadow:0 0 22px #f0d060b3}}}
.duob .hring{position:absolute;left:-7px;top:-7px;width:calc(100% + 14px);height:calc(100% + 14px);transform:rotate(-90deg);pointer-events:none;overflow:visible}
.duob .hring circle{fill:none;stroke:#f0d060;stroke-width:6;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;opacity:0}
.duob.holding .hring circle{opacity:1;animation:holdfill 450ms linear forwards}
@keyframes holdfill{to{stroke-dashoffset:0}}
body.touch .duob{--d:74px}
body.touch .duob .dword{font-size:10.5px}
body.touch .pilot{left:calc(8px + var(--safe-l));transform:none;top:var(--ctx-top)}
[hidden]{display:none!important}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input{font:inherit;color:inherit}
kbd{
  font:600 10px/1 ui-monospace,monospace;padding:2px 4px;border-radius:4px;
  background:#000a;border:1px solid var(--line);color:var(--ink-dim)
}

/* ---------------- boot / title ---------------- */
.boot{position:fixed;inset:0;display:grid;place-items:center;z-index:var(--z-show);padding:0 24px;text-align:center}
.title{
  position:fixed;inset:0;z-index:var(--z-title);display:grid;place-items:center;overflow-y:auto;
  padding:calc(20px + var(--safe-t)) 18px calc(20px + var(--safe-b));
  touch-action:pan-y
}
/* never wider than the screen: a long word of the game's name in another language breaks rather than pushing it out */
.title-inner{position:relative;max-width:560px;min-width:0;text-align:center}
.lore{margin:14px auto 20px;color:var(--ink-dim);font-size:clamp(12.5px,3.4vw,14.5px);line-height:1.6;max-width:520px}
.lore b{color:var(--accent);font-weight:700}
.title-form{display:grid;gap:10px;justify-items:center;max-width:380px;margin:0 auto}
.title-form .name,.newhero .name{
  width:100%;min-height:46px;padding:0 14px;border-radius:var(--r);
  background:#0d110bcc;border:1px solid var(--line);color:var(--ink);font-size:16px;text-align:center;
  user-select:text;-webkit-user-select:text
}
.title-form .name:focus,.newhero .name:focus{outline:none;border-color:var(--accent)}
.looks{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.look input{position:absolute;opacity:0;pointer-events:none}
.look .lookart{
  display:block;width:56px;height:72px;border-radius:12px;border:1px solid var(--line);
  background:var(--panel-2) center/contain no-repeat;cursor:pointer
}
.look input:checked + .lookart{border-color:var(--accent);background-color:#3b3516;box-shadow:0 0 0 2px #e0b45a44}
.look input:focus-visible + .lookart{outline:2px solid var(--accent);outline-offset:2px}
.lookhint{margin:0;color:var(--ink-faint);font-size:11.5px;line-height:1.5;text-align:center}
.mailbar{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-dim)}
.mailbar b{color:var(--ink);font-weight:600}
.link{background:none;border:0;color:var(--accent);text-decoration:underline;font-size:12.5px;padding:4px 6px;cursor:pointer}
.big.ghost{background:transparent}
.mailbox{display:grid;gap:8px;justify-items:center;width:100%}
.mailbox input{
  width:100%;min-height:44px;padding:0 12px;border-radius:var(--r);background:#0d110bcc;
  border:1px solid var(--line);font-size:16px;text-align:center;user-select:text;-webkit-user-select:text
}
.mailbox input:focus{outline:none;border-color:var(--accent)}
.mailbox input.code{letter-spacing:.4em;font-size:20px}
.mailsent{margin:0;font-size:12.5px;color:var(--ink-dim);text-align:center}
.mailrow{display:flex;gap:14px;justify-content:center}
.or{color:var(--ink-faint);font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.err{min-height:18px;color:var(--danger);font-size:12.5px}
.big{
  min-height:48px;padding:0 24px;border-radius:var(--r);width:100%;
  border:1px solid var(--line);background:var(--panel-2);font-weight:700;letter-spacing:.03em
}
@media (hover:hover){.big:hover{border-color:var(--accent);color:#fff}}
.big.primary,.wide.primary{background:linear-gradient(#5d5423,#3b3516);border-color:#7d7132;color:#fff}
.title .hint{margin:22px auto 0;max-width:540px;color:var(--ink-faint);font-size:11.5px;line-height:1.9}
.title .build{margin:6px auto 0;min-height:1em;color:var(--ink-faint);font-size:10.5px;letter-spacing:.04em}
/* the capital live behind the title (F078): the world through a vignette, the words on a card (comic.css) */
.title.world{background:radial-gradient(120% 95% at 50% 45%,#0a0b0d00 25%,#0a0b0d99 70%,#0a0b0de6 100%)}
.title .livetag{
  position:fixed;left:14px;bottom:calc(10px + var(--safe-b));margin:0;font-size:11px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink-dim);text-shadow:0 1px 2px #000;pointer-events:none
}
.title .livetag::before{content:'';display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#e0483a;
  vertical-align:1px;animation:livedot 1.6s ease-in-out infinite}
@keyframes livedot{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.title .livetag::before{animation:none}}

/* ---------------- HUD ---------------- */
.hud{position:fixed;inset:0;z-index:var(--z-hud);pointer-events:none}
/* the HUD's layers (B092), each named rather than left to its place in the page: the chosen one's card over the
   first steps' hint, the hint over the corners; the top right corner makes no layer of its own, so the 👁's card in it
   stacks on the HUD's scale (--zh-pop), over the cards, the feed and the buttons */
.hud>.lowveil,.hud>.fframe{z-index:var(--zh-base)}
.hud>.chatlog{z-index:var(--zh-feed)}
.hud>.firsthint,.hud>.banner{z-index:var(--zh-hint)}
.hud>.cards{z-index:var(--zh-card)}
.hud>.dock{z-index:var(--zh-bar)}
/* the toasts over a death's or a return's card (--zc-*) */
.calls>.hud-toasts{z-index:var(--zc-toast)}
/* below a quarter of life (fightframe.js FRAME.low) the screen's edge pulses red: on a phone the bar is a sliver in a corner */
.hud>.lowveil{position:fixed;inset:0;pointer-events:none;opacity:0;transition:opacity .35s;background:radial-gradient(ellipse at center,transparent 58%,#b8141499 100%)}
.lowveil.on{opacity:1;animation:lowpulse 1.1s ease-in-out infinite}
@keyframes lowpulse{50%{opacity:.4}}
@media (prefers-reduced-motion:reduce){.lowveil.on{animation:none}}
.hud>*{pointer-events:auto}

/* The corner columns take taps only on what they show. On a narrow phone the
   right one reaches under the menu row (at 360 px the minimap itself does),
   and the menu row sits on top where they meet. */
.hud-tl{position:absolute;top:calc(10px + var(--safe-t));left:calc(10px + var(--safe-l));display:grid;gap:8px;z-index:var(--zh-corner);pointer-events:none}
.hud-tl>*,.hud-tr>*{pointer-events:auto}
.vitals{display:flex;gap:9px;align-items:center}
.portrait{
  width:46px;height:46px;flex:0 0 46px;border-radius:12px;
  background:linear-gradient(#3a2c18,#15110b);border:1px solid #8a6a2e;
  box-shadow:inset 0 0 0 1px #00000080,0 0 10px #e0b45a22;
  display:grid;place-items:center;position:relative
}
.portrait span{font-weight:800;font-size:17px;color:var(--accent)}
.portrait::after{content:"рів";position:absolute;bottom:2px;right:4px;font-size:8px;color:var(--ink-faint)}
.bars{display:grid;gap:4px;width:min(42vw,240px)}
.bar{position:relative;height:16px;border-radius:7px;overflow:hidden;background:#000b;border:1px solid #5a4628}
.bar i{position:absolute;inset:0;width:50%;transition:width .14s linear;border-radius:7px}
.bar span{position:absolute;inset:0;display:grid;place-items:center;font:700 11px/1 ui-monospace,monospace;color:#fff;text-shadow:0 1px 2px #000}
.bar-hp i{background:linear-gradient(var(--hp-2),var(--hp))}
.bar-sta{height:15px}
/* where the hero stands: island › region, its level coloured by how it sits with the hero's */
.crumbs{font-size:11px;line-height:1.25;color:#d8ccb0;text-shadow:0 1px 2px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.crumbs i{font-style:normal;color:var(--ink-faint)}
/* the buffs and debuffs on the hero (F091: comic chips): paper in thick ink with an offset shadow, the icon and the time
   it has left; a debuff red; a new one pops in crooked */
.buffs{display:flex;flex-wrap:wrap;gap:6px;min-height:0;padding:1px 4px 3px 0}
.buffs:empty{display:none}
.buff{display:inline-flex;align-items:center;gap:4px;padding:2px 7px 2px 4px;border-radius:10px;background:#fbf1d6;
  border:2px solid #17110a;box-shadow:2px 2px 0 #17110a;font-size:14px;line-height:18px;color:#17110a;
  animation:buffIn .3s cubic-bezier(.3,1.7,.5,1)}
.buff b{font-weight:400}
.buff small{font:900 11px/1 "Segoe UI",Roboto,system-ui,sans-serif;color:#17110a}
.buff small:empty{display:none}
.buff.bad{background:#ff4f3a;color:#fff}
.buff.bad small{color:#fff}
@keyframes buffIn{from{opacity:0;transform:scale(.3) rotate(-14deg)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.buff{animation:none}}
/* F098: a bleeding's chip — dark blood with a drip hanging off its edge, slapped again by each new stack */
.buff.bleed{position:relative;background:#8e0a14;border-color:#0c0606;box-shadow:2px 2px 0 #0c0606}
.buff.bleed b{font:900 13px/18px "Segoe UI",Roboto,system-ui,sans-serif;color:#fff}
.buff.bleed::after{content:"";position:absolute;left:9px;bottom:-7px;width:5px;height:7px;border-radius:0 0 4px 4px;background:#8e0a14;border:2px solid #0c0606;border-top:0}
.buff.bleed.slap{animation:buffIn .3s cubic-bezier(.3,1.7,.5,1)}
/* B149: the reading card (statecard.js) — paper in ink over the HUD, the dial's or a state's; a finger's has its ✕ */
.stcard{position:fixed;left:0;top:0;z-index:var(--z-tip);width:max-content;max-width:min(340px,calc(100vw - 16px));
  max-height:calc(100dvh - 16px);overflow-y:auto;padding:10px 12px 12px;pointer-events:auto}
.stcard[hidden]{display:none}
.stcard .stx{display:none;position:absolute;right:6px;top:6px;width:32px;height:32px;border-radius:8px;border:2px solid var(--c-ink);
  background:var(--c-face);color:var(--c-ink);font:700 15px/1 var(--c-ui);cursor:pointer;box-shadow:var(--c-drop-s)}
.stcard.pinned .stx{display:block}
.stcard.pinned .nchead,.stcard.pinned .sthead{padding-right:38px}
.ncard .nchead,.sthead{display:flex;align-items:baseline;gap:7px;margin:0 0 6px;padding-bottom:6px;border-bottom:2px solid var(--c-ink)}
.ncard .nchead i,.sthead i{font-style:normal;font-size:20px}
.ncard .nchead b,.sthead b{font:400 19px/1.05 var(--c-display);letter-spacing:.02em}
.ncard .nchead span{margin-left:auto;font-size:12px;color:var(--c-ink-2)}
.ncard .nchead em{font:800 22px/1 ui-monospace,monospace;font-style:normal}
.ncg h4,.stgrp h4{margin:8px 0 3px;font:700 11px/1.2 var(--c-ui);letter-spacing:.06em;text-transform:uppercase;color:var(--c-ink-2)}
.ncg-bad h4,.stgrp-bad h4{color:var(--c-rust-ink)}
.ncrow,.strow{display:grid;grid-template-columns:20px 1fr auto;align-items:baseline;gap:6px;font-size:13px;line-height:1.35;opacity:.55}
.ncrow i,.strow i{font-style:normal;text-align:center}
.ncrow b,.strow b{font:800 13px/1.35 ui-monospace,monospace;text-align:right;white-space:nowrap}
.ncrow.mine,.strow{opacity:1}
.ncrow.mine span{font-weight:600}
.ncrow.mine{box-shadow:inset 3px 0 0 var(--c-pow);padding-left:3px;margin-left:-3px}
/* a state's card: its name and time, what it gives a line a number, its source small under */
.sthead em{margin-left:auto;font:800 15px/1 ui-monospace,monospace;font-style:normal}
.sthead em.on{font:600 12px/1 var(--c-ui);color:var(--c-ink-2)}
.sthead i .uix,.sthead i .sic{width:22px;height:22px;display:inline-block;vertical-align:middle}
.stc.bad .sthead b{color:var(--c-rust-ink)}
.strow{grid-template-columns:1fr auto;gap:10px}
.strow i{display:none}
.stfrom{margin:7px 0 0;font-size:12px;color:var(--c-ink-2)}
/* the chips answer a hover and a tap (their cards); the target's row under its bar, smaller */
#buffs .buff,.tstates .buff{pointer-events:auto;cursor:help}
.tstates{gap:4px;padding:3px 0 0}
.tstates .buff{font-size:12px;line-height:15px;padding:1px 5px 1px 3px;animation:none}
/* many states (B149): «+k» after the row's few, opening the list of them all, grouped */
#buffs .bmore{pointer-events:auto;min-width:34px;min-height:24px;padding:2px 8px;border-radius:10px;border:2px solid #17110a;
  background:var(--c-pow,#ffcf3a);color:#17110a;box-shadow:2px 2px 0 #17110a;font:900 13px/18px "Segoe UI",Roboto,system-ui,sans-serif;cursor:pointer}
body.touch #buffs .bmore{min-height:32px;min-width:40px}
.stback{position:fixed;inset:0;z-index:var(--z-call);display:grid;place-items:center;padding:16px;background:#0008}
.stback[hidden]{display:none}
.stsheet{width:min(440px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;padding:12px 14px 14px}
.stsheet .stx{display:block;position:absolute;right:8px;top:8px;width:36px;height:36px;border-radius:8px;border:2px solid var(--c-ink);
  background:var(--c-face);color:var(--c-ink);font:700 16px/1 var(--c-ui);cursor:pointer;box-shadow:var(--c-drop-s)}
.stlist .sthead{padding-right:44px}
.stlist .sthead em{margin-left:6px;font:800 15px/1 ui-monospace,monospace;font-style:normal;color:var(--c-ink-2)}
.stli{display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;padding:5px 0;border-bottom:1px dashed #1b130b33}
.stli i{font-style:normal;font-size:18px;text-align:center}
.stli i .uix,.stli i .sic{width:24px;height:24px;display:inline-block}
.stli span{font-size:13px;line-height:1.3}
.stli span small{color:var(--c-ink-2);font-size:12px}
.stli em{font:800 13px/1 ui-monospace,monospace;font-style:normal;white-space:nowrap}
.stli.bad b{color:var(--c-rust-ink)}
/* F098: blood slapped on the screen itself (splatview.js), over the field and the HUD, under a rail or a screen */
.screensplat{position:fixed;left:0;top:0;pointer-events:none;z-index:var(--z-splat)}
.crumbs .lv{display:inline-block;min-width:18px;padding:0 4px;border-radius:7px;font:700 10px/14px ui-monospace,monospace;text-align:center;color:#0b0d0a;text-shadow:none}
.lv.easy{background:#7d8a90}.lv.fair{background:#7fd18a}.lv.hard{background:#f0c050}.lv.deadly{background:#ff6b4f}
.bar-sta span{font-size:11px}
.bar-sta i{background:linear-gradient(var(--sta-2),var(--sta));box-shadow:0 0 8px #4fe0ee66}
.bar-food{height:15px;cursor:pointer}
.bar-food span{font-size:11px}
.bar-food i{background:linear-gradient(#c8a050,#e8c878)}
.bar-food.hungry{border-color:#b0603a}
.bar-food.hungry span{color:#ffd0a0}
.bar-xp{height:15px}
.bar-xp i{background:linear-gradient(var(--xp-2),var(--xp))}
.bar-xp span{font-size:11px}

.hud-tr{
  position:absolute;top:calc(10px + var(--safe-t));right:calc(10px + var(--safe-r));
  display:grid;justify-items:end;gap:6px;pointer-events:none
}
/* the place's plaque under the minimap, as wide as the map (F127, js/zonetag.js): its name on the first line, never
   clipped — shrunk by the script to a floor, then wrapped (.wrap) — and under it, small, the parts of its note that fit;
   a tap or a hover shows the whole */
.zone-tag{justify-self:end;width:var(--mm);box-sizing:border-box;text-align:center;background:#0b0d0ac4;border:1px solid var(--line);border-radius:var(--r);
  padding:2px 8px;line-height:1.25;cursor:default}
.zone-tag > b{display:block;font-size:12px;color:var(--accent);white-space:nowrap}
.zone-tag.wrap > b{white-space:normal;overflow-wrap:anywhere}
.zone-tag small{display:block;font-size:10px;color:var(--ink-faint);white-space:nowrap;overflow:hidden}
.zone-tag small:empty{display:none}
/* the minimap's size on the whole HUD, not its column alone: the auto card keeps clear of that column by it */
#hud{--mm:160px}
canvas#minimap{width:var(--mm);height:var(--mm);border-radius:50%;background:#16232acc;border:1px solid var(--line);display:block}
/* the link's dot and who is online (B088): low in the left corner, the feed's lowest line over it */
/* the line said over the head (B100): a speech balloon at the hero, its input, the characters left */
.saybubble{position:absolute;z-index:var(--zh-card);transform:translate(-50%,-100%);display:flex;align-items:center;gap:6px;
  background:#fbf1d6;border:2.5px solid #17110a;border-radius:14px;padding:5px 9px;box-shadow:3px 3px 0 #17110a;pointer-events:auto;
  width:min(320px,80vw)}
.saybubble::after{content:'';position:absolute;left:50%;bottom:-11px;margin-left:-8px;border:8px solid transparent;border-top-color:#17110a;border-bottom:0}
.saybubble input{flex:1;min-width:0;border:0;background:transparent;font:600 14px/1.3 system-ui,sans-serif;color:#17110a;outline:none}
.saybubble em{font:700 10px/1 ui-monospace,monospace;color:#7a6a4a;font-style:normal}
/* the chat's door (B096): the corner's round button */
.chatbtn{position:absolute;left:calc(10px + var(--safe-l));bottom:calc(10px + var(--safe-b));z-index:var(--zh-feed);width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;font-size:19px;background:#0b0d0ae0;border:1px solid var(--line);box-shadow:0 1px 4px #000a;pointer-events:auto;cursor:pointer}
@media (hover:hover){.chatbtn:hover{border-color:var(--accent)}}
.nettag{justify-self:end;display:flex;align-items:center;gap:5px;
  font-size:10px;color:var(--accent);cursor:pointer;min-height:14px;background:#0b0d0a99;padding:2px 6px;border-radius:8px}
.nettag:empty{padding:3px;gap:0}
/* the link's dot: green, yellow, red */
.nettag::before,.netdot{content:'';display:inline-block;width:9px;height:9px;border-radius:50%;background:#59c46a;box-shadow:0 0 6px #59c46a99}
.nettag[data-q="slow"]::before,.netdot[data-q="slow"]{background:#e3c34a;box-shadow:0 0 6px #e3c34a99}
.nettag[data-q="bad"]::before,.netdot[data-q="bad"]{background:#e0503a;box-shadow:0 0 6px #e0503a99}
@media (max-width:400px){
  #hud{--mm:128px}
}

/* what is chosen, low on the field (F090: where the 📜, 🏹 and 💬 stood): the target's card and the pointer's under it —
   on a desktop at the bottom's middle over the quick actions' strip (F139), clear of the feed on the left and the two
   buttons on the right */
.cards{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(62px + var(--safe-b));
  display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none}
/* a screen open narrows the field: the cards step up over the feed; the telescope's bar takes the bottom */
body.ingame.screened:not(.touch) .cards{bottom:calc(170px + var(--safe-b))}
body.scoping:not(.touch) .cards{bottom:calc(80px + var(--safe-b))}
/* a card is one block: its name, health and line on the left, its ✕ (and the pointer's button) on the right */
.target{
  position:relative;display:grid;grid-template-columns:minmax(0,max-content) max-content minmax(0,1fr) auto auto auto;column-gap:6px;align-items:center;
  min-width:min(46vw,210px);text-align:left;background:#0b0d0ad8;border:1px solid var(--line);
  border-radius:8px;padding:3px 4px 4px 9px;pointer-events:none
}
/* its head is one row (B155): the name, its danger's chip, ♥ or the leader's sign, ⓘ, ✕; under it the thin life across
   the card, the states on its right, then the line when there is one */
.target > b,.target > .tbar,.target > small{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.target > b{grid-column:1;grid-row:1}
.target > .tchip{grid-column:2;grid-row:1;justify-self:start;white-space:nowrap;
  padding:1px 7px;border-radius:9px;background:#0009;color:#eae5d2;font:700 10.5px/1.5 system-ui,sans-serif;border-left:7px solid var(--thr,#9a9)}
.target > small{grid-column:1 / -1}
.target > small:empty{display:none}
.target > .tlife{grid-column:1 / -1;grid-row:2;display:flex;align-items:center;gap:6px;min-width:0}
.tlife > .tbar{flex:1 1 70px;min-width:40px;pointer-events:auto;cursor:pointer}
.tlife > .tstates{flex:0 1 auto;flex-wrap:nowrap;padding:0;min-width:0;overflow:hidden}
.target > .tthr{grid-column:1 / -1}
/* the target's card in its ring's colour: red over a foe, green over a tree or a rock, gold over anyone or anything else */
.target.k-foe{background:#2c100bde;border-color:#d4553a;box-shadow:inset 0 0 0 1px #d4553a33}
.target.k-node{background:#0f2213de;border-color:#5fae6a;box-shadow:inset 0 0 0 1px #5fae6a33}
.target.k-other{background:#251d0ade;border-color:#c8a64a;box-shadow:inset 0 0 0 1px #c8a64a33}
/* the pointer's card: cool blue and dashed, like its ring — never mistaken for the target's; tapped, it is chosen as by a second tap */
.target.ptr{background:#0c1827e0;border:1px dashed #8fc4f0;pointer-events:auto;cursor:pointer}
.target.ptr b{font-size:11.5px}
/* its button on the same row, at its right: what choosing it does; the name keeps its share of the card however long
   the buttons' words are (a long language's), and they go on two rows instead */
.target.ptr{grid-template-columns:minmax(min(40%,8em),1fr) auto auto auto}
.target.ptr > .tbtns{grid-column:3;grid-row:1 / span 2;margin:0;flex-wrap:wrap;justify-content:flex-end}
/* … and the line under the name has a row of its own across the card, under the buttons however many rows they take */
.target.ptr > small{grid-column:1 / 4;grid-row:3}
.target.ptr > .ti{grid-column:2;grid-row:1 / span 2}
.target.ptr > .tx{grid-column:4;grid-row:1 / span 2}
.target.ptr > .tbar{grid-column:1}
/* "ℹ" on a beast's card: its panel */
.target .ti{grid-column:5;grid-row:1;width:28px;height:28px;padding:0;border-radius:50%;border:1px solid #8fa4b4;
  background:#16202a;color:#cfe3f2;font:700 14px/26px Georgia,serif;pointer-events:auto;cursor:pointer}
body.touch .target .ti{width:32px;height:32px;font-size:15px;line-height:30px}
.target.ptr small{color:#a8c4dc}
.target.ptr .tbar{height:4px}
.target.ptr .tbar i{background:linear-gradient(#f2a38c,#b4553e)}
/* ✕: the only thing that lets the target and the pointer go */
.target .tx{grid-column:6;grid-row:1;width:24px;height:24px;padding:0;border:0;background:transparent;
  color:var(--ink-faint);font-size:13px;line-height:24px;pointer-events:auto;cursor:pointer}
@media (hover:hover){.target .tx:hover{color:#ff9a7a}}
.target b{font-size:12px;display:block;line-height:1.25}
.target small{font-size:9.5px;color:var(--ink-faint);line-height:1.2}
/* what you can do to a hero or a body: the frame itself stays click-through, its buttons do not */
.tbtns{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-start;margin-top:3px;grid-column:1 / -1}
.tbtns:empty{display:none}
.tbtns button{pointer-events:auto;min-height:26px;padding:0 9px;border-radius:7px;border:1px solid var(--line);
  background:#1a1d16;font-weight:700;font-size:11.5px;white-space:nowrap}
.tbtns button.war{border-color:#a8442e;color:#ffb39e}
.tbtns button.primary{border-color:#7d7132;background:linear-gradient(#5d5423,#3b3516);color:#fff}
.tbtns button.on{border-color:#7d7132;color:#f0d060}
.target.bld .tbar i{background:linear-gradient(#e0b45a,#8a6a2e)}
.tbtns button.warn{border-color:#8a8a8a}
.tbtns button:disabled{opacity:.55}
.tbar{height:4px;border-radius:3px;background:#000;overflow:hidden;margin:2px 0 1px}
.tbar i{display:block;height:100%;background:linear-gradient(#e2714f,#9a3424)}

/* the block of what the hero does of itself: the stance and the autopilot side by side over the bar */

/* a building's ghost on the ground: may it stand there, and the buttons to turn, lay or give up */
.placebar{
  position:absolute;left:50%;transform:translateX(-50%);bottom:calc(150px + var(--safe-b));z-index:var(--zh-bar);
  display:flex;align-items:center;gap:6px;width:max-content;max-width:min(94vw,440px);
  background:#0b0d0ae6;border:1px solid var(--line);border-radius:10px;padding:5px 6px 5px 10px
}
body.touch .placebar{bottom:calc(226px + var(--safe-b))}
.placebar .pinfo{display:grid;min-width:0;flex:1}
.placebar b{font-size:12.5px;color:var(--accent);white-space:nowrap}
.placebar small{font-size:10.5px;color:#9fd08a;line-height:1.25}
.placebar small.bad{color:#ff9a86}
.placebar button{min-height:36px;min-width:38px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:#1a1d16;font-weight:700;font-size:13px}
.placebar button.primary{background:linear-gradient(#5d5423,#3b3516);border-color:#7d7132;color:#fff}
.placebar button:disabled{opacity:.45}

.firsthint{
  position:absolute;left:50%;transform:translateX(-50%);top:calc(84px + var(--safe-t));
  max-width:min(84vw,460px);text-align:center;font-size:12px;line-height:1.4;color:#f4ead2;
  background:#0b0d0acc;border:1px solid #4ff0ff55;border-radius:9px;padding:5px 10px;pointer-events:auto;cursor:pointer;
  box-shadow:0 0 12px #4ff0ff22
}
/* the hint lies over the field on its own layer and moves nothing (S01 A8): on a desktop top-centre, clear of the
   tracker's left column on either side */
body:not(.touch) #hud .firsthint:not(.fold){max-width:min(84vw,520px,calc(100vw - 2 * (var(--rail-w,0px) + 290px)))}
/* folded by a tap: a 💬 chip at the same spot, unfolded by a tap or the next line */
#hud .firsthint.fold{font-size:0;padding:0;width:auto;min-width:34px;height:34px;max-width:none;border-radius:17px;text-align:center}
#hud .firsthint.fold::before{content:'💬';position:static;display:block;font-size:17px;line-height:32px;width:auto;height:auto;clip-path:none;background:none}
#hud .firsthint.fold::after{display:none}
@media (max-width:1000px){ body.partied:not(.touch) .firsthint{top:calc(176px + var(--safe-t))} }
/* a screen open beside the field narrows it as a small window does: the line under the party's lock, not over it */
body.ingame.screened.partied:not(.touch) .firsthint{top:calc(176px + var(--safe-t))}

.banner{
  position:absolute;left:50%;top:24%;transform:translateX(-50%);text-align:center;pointer-events:none;
  display:grid;gap:4px;animation:bannerfade 3.2s ease forwards
}
.banner b{font-size:clamp(20px,4.4vw,30px);font-weight:800;color:#f4ead2;letter-spacing:.02em;
  text-shadow:0 2px 10px #000,0 0 2px #000}
.banner small{font-size:12.5px;color:#e8d8b0;text-shadow:0 1px 4px #000}
@keyframes bannerfade{0%{opacity:0;transform:translate(-50%,8px)}12%{opacity:1;transform:translate(-50%,0)}75%{opacity:1}100%{opacity:0}}

/* skills: ten trees of five attacks and three abilities; the chosen one's card on top */
.slots{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--ink-faint);margin:2px 2px 8px}
.slots b{color:#eae5d2;font-weight:600}
/* the skills sheet's picture of the fight's buttons: kept in sight while the ladder scrolls under it */
/* a narrow sheet (B144): the hint keeps a readable measure beside the wheel, the set's buttons wrap to a row of their
   own under them, never squeezing the hint into a column of letters */
.lohead{position:sticky;top:-12px;z-index:3;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px;
  margin:-12px -13px 6px;padding:10px 13px 8px;background:linear-gradient(#17130ffa,#120f0cf5);border-bottom:1px solid var(--line)}
.lohead p{margin:0;font-size:12px;line-height:1.35;max-width:220px;flex:1 1 9em;min-width:0;overflow-wrap:break-word}
.lohead .setbtns{flex:1 1 auto}
.loadout{--u:19px;position:relative;flex:none;width:calc(8.5 * var(--u));height:calc(8.5 * var(--u))}
/* on a phone the picture of the bar takes the room: its places are where a finger drops a skill */
@media (max-width:719px){ .loadout{--u:21px} .lohead p{font-size:11.5px} }
.lo{position:absolute;right:calc((var(--x) - var(--r)) * var(--u));bottom:calc((var(--y) - var(--r)) * var(--u));
  width:calc(2 * var(--r) * var(--u));height:calc(2 * var(--r) * var(--u));border-radius:50%;padding:0;
  display:grid;place-items:center;background:#14161ae6;border:2px solid var(--c);color:#eae5d2;touch-action:none;-webkit-touch-callout:none}
.lo.k-hit{z-index:2;background:#2a1f10f2;border-color:#5a4322;color:#e0b45a}
.lo.k-hit small{position:static;border:0;background:none;font-size:10.5px;line-height:1;margin-top:-6px}
/* a top in gold; a place the level has not given yet, dim with the level it comes at */
.lo.top{border-color:#c9a64a;box-shadow:0 0 10px #f0d06040}
.lo.shut{opacity:.3;border-style:dotted}
.lo i{font-style:normal;font-size:calc(var(--r) * var(--u) * .9);line-height:1}
.lo small{position:absolute;bottom:-3px;right:-3px;min-width:16px;padding:0 3px;border-radius:8px;background:#0b0d0a;border:1px solid var(--line);
  font:700 10.5px/14px ui-monospace,monospace;color:var(--ink-faint)}
.lo.empty{border-style:dashed;opacity:.75}
.lo.sel{box-shadow:0 0 0 2px #fff6}
/* a skill picked or dragged: the places it fits light up, the rest fade */
.loadout[class*="pick-"] .lo{opacity:.35}
.lo.can,.loadout.pick-bar .lo.k-bar:not(.shut){opacity:1;box-shadow:0 0 0 3px var(--accent),0 0 14px #e0b45a88}
.lo.hot{transform:scale(1.12);box-shadow:0 0 0 3px #7fd18a,0 0 18px #7fd18a}
.loghost{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:24px;background:#14161af2;border:2px solid var(--c)}
/* the book of magic: a tile a skill — tapped it is cast, held and dragged it goes onto the panel */
.tab-magic h4{margin:8px 2px 4px;font-size:13px;color:var(--ink-dim)}
.bkgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:6px;margin-bottom:10px}
.bk{position:relative;overflow:hidden;display:grid;justify-items:center;align-content:start;gap:2px;min-height:86px;padding:8px 4px 6px;
  border-radius:12px;border:1px solid #2a2d28;border-top:3px solid var(--c);background:#0c0e0c;color:#eae5d2;touch-action:pan-y;-webkit-touch-callout:none}
.bk i{font-style:normal;font-size:25px;line-height:1.1;color:var(--c)}
.bk b{font-size:11px;line-height:1.15;text-align:center;font-weight:700;overflow-wrap:anywhere;hyphens:auto}
.bk small{font-size:10.5px;line-height:1.2;color:var(--ink-faint);text-align:center}
.bk small.sp{color:#9fd0ff}
.bk.on{background:#17140c;border-color:#5a4628}
/* the place on the panel it stands in */
.bk u{position:absolute;top:4px;right:4px;min-width:17px;height:17px;padding:0 3px;border-radius:9px;background:var(--accent);color:#1a1408;
  font:800 10.5px/17px ui-monospace,monospace;text-decoration:none;text-align:center}
.bk.spell i{text-shadow:0 0 10px var(--c)}
.bk.sel{box-shadow:0 0 0 2px var(--accent)}
.bk.dry{opacity:.55}
/* C9: what the hero has but cannot use now stays, dimmed, with one word of what it lacks */
.bk[data-lack]:not([data-lack=""])::after{content:attr(data-lack);font-size:10px;line-height:1.1;color:#e0a070}
.canlack{display:block;color:#e0a070}
.canmore{margin:10px 0 4px;text-align:center}
.bk .cd{position:absolute;inset:0;background:#000000a6;transform-origin:50% 100%;transform:scaleY(0);pointer-events:none}
.bk.nope{animation:nope .28s ease-out}
.bookbtn{width:44px;height:44px;border-radius:12px;font-size:21px;display:grid;place-items:center;justify-self:end;
  background:linear-gradient(#1d1810e6,#0f0d0ae6);border:1px solid var(--line);box-shadow:inset 0 1px 0 #e0b45a22}
.cardbtns{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.cardbtns button{min-height:36px;padding:0 12px;border-radius:9px;border:1px solid var(--c,#888);background:#1a1d16;font-weight:700}
.trees{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px}
.tree{border:1px solid var(--line);border-top:3px solid var(--c,#888);border-radius:10px;padding:7px;background:#101310cc}
.tree header{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 2px 6px}
.tree header b{color:var(--c);font-size:13.5px}
.tree header small{color:var(--ink-faint);font-size:10.5px;text-align:right}
.srow{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:4px}
.srow+.srow{grid-template-columns:repeat(3,1fr)}
.stile{min-height:58px;border:1px solid #2a2d28;border-radius:8px;background:#0c0e0c;opacity:.55;padding:4px 3px;
  display:grid;justify-items:center;align-content:center;gap:1px;text-align:center;cursor:pointer}
.stile i{font-style:normal;font-size:17px;line-height:1.1;filter:grayscale(1)}
.stile b{font-size:9.5px;font-weight:600;color:#cfc8b4;line-height:1.15}
.stile small{font-size:8.5px;color:var(--ink-faint);line-height:1.1}
.stile.ok{opacity:1;border-color:color-mix(in srgb,var(--c) 45%,#2a2d28)}
.stile.ok i{filter:none}
.stile.on{background:color-mix(in srgb,var(--c) 22%,#0c0e0c);border-color:var(--c)}
.stile.on small{color:#f0e6c8}
.stile.sel{outline:2px solid #f0d060;outline-offset:1px}
.act-skill.locked .ico{opacity:.5}
/* a top on the bar, in gold */
.act-ult{border-color:#c9a64a;box-shadow:0 0 12px #f0d06040}

/* the HUD's cards that ask (B141): the update's and the ghost's, one stack in #calls, the update on top
   and the other under it, never across each other. Over the field: centred on what a desktop's or a tablet's panel
   leaves of it, never over the panel; on a phone the left column's slot under the bars; under a screen covering the
   field, above the tab bar. Its layer is its top card's: the update's over every call. */
#cardStack{position:absolute;z-index:var(--zc-card);top:calc(64px + var(--safe-t));left:calc(var(--rail-w) + (100vw - var(--rail-w) - var(--scr-w)) / 2);
  transform:translateX(-50%);width:min(calc(100vw - var(--rail-w) - var(--scr-w) - 32px),380px);
  display:flex;flex-direction:column;gap:8px;pointer-events:none}
#cardStack:has(>.updatecard){z-index:var(--zc-update)}
#cardStack>*{pointer-events:auto}
body.ingame.screened.scr-full:not(.touch) #cardStack{left:calc(var(--rail-w) + (100vw - var(--rail-w)) / 2);width:min(calc(100vw - var(--rail-w) - 32px),380px)}
body.touch #cardStack{top:var(--ctx-top);left:calc(8px + var(--safe-l));transform:none;width:min(var(--ctx-w),calc(100vw - var(--scr-w) - 16px - var(--safe-l)))}
body.touch.screened:not(.tablet) #cardStack,body.touch.screened.scr-full #cardStack{top:auto;bottom:calc(var(--tab-h) + 10px + var(--safe-b))}
/* a ghost walks the world, so its card keeps out of the middle of it */
.deathcard{
  position:relative;text-align:center;background:#0b0d12e0;border:1px solid #3e5a7a;
  border-radius:12px;padding:10px 12px 12px;box-shadow:0 10px 40px #000a
}
.deathcard b{display:block;font-size:16px;color:#9cc4ff;margin-bottom:4px}
.deathcard p{margin:0 0 8px;font-size:12.5px;line-height:1.4;color:var(--ink-faint)}
.dbtns{display:grid;gap:6px}
.dbtns button{min-height:38px;border-radius:9px;border:1px solid #3e5a7a;background:#141a22;font-weight:700;font-size:12.5px}
.dbtns button.primary{border-color:#9cc4ff;background:#1d2a3a}

/* «Поки тебе не було» (GD1, L22, js/awaycard.js): at a return, what the heroes got by themselves — a sheet over the whole
   page (a phone's) or the middle of it under a veil, the rail with its ⚑ left out; its head and button stand, the rows
   scroll between them; over a death's card, under the update's */
.awaymodal,.jmodal{position:absolute;z-index:var(--zc-away);top:0;bottom:0;right:0;left:var(--rail-w);display:grid;place-items:center;background:#05070ad9;
  padding:calc(24px + var(--safe-t)) calc(24px + var(--safe-r)) calc(24px + var(--safe-b)) calc(24px + var(--safe-l))}
.awaycard,.jcard{
  position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:min(640px,100%);max-height:100%;min-height:0;
  background:#0b0d12f5;border:1px solid #6a5a2e;border-radius:12px;box-shadow:0 10px 40px #000a;animation:awayIn .35s ease-out;outline:0
}
.awayhead{flex:none;display:flex;align-items:center;gap:8px;padding:12px 56px 4px 14px}
.awaybody{flex:1 1 auto;min-height:0;overflow:hidden auto;overscroll-behavior:contain;touch-action:pan-y;padding:4px 16px 8px}
.awayfoot{flex:none;padding:8px 14px 14px}
body.touch:not(.tablet) .awaymodal,body.touch:not(.tablet) .jmodal{left:0;padding:0}
body.touch:not(.tablet) .awaycard,body.touch:not(.tablet) .jcard{width:100%;height:100%;border-radius:0;padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l)}
.awaycard .awayt{font-size:16px;color:#f2c86a}
.awaycard .awayx,.jcard .awayx{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:8px;border:1px solid #3a3424;background:#14120c;font-size:13px}
.awayrow{padding:6px 0;border-top:1px solid #ffffff14}
.awayrow b{display:block;font-size:13px}
.awayrow b small{color:var(--ink-faint);font-weight:400}
.awayrow span{display:block;font-size:12.5px;line-height:1.45;color:#e8dfc6}
.awayrow i{display:block;font-size:12px;font-style:normal;margin-top:2px}
.awaycard .awayf{display:block;margin-top:4px;font-size:11.5px;color:var(--ink-faint)}
.awaycard .awaysoc{display:block;font-size:12.5px;line-height:1.45;color:#f2a0b0;margin-bottom:4px}
@keyframes awayIn{from{opacity:0;translate:0 -8px}to{opacity:1;translate:0 0}}
body.touch .awaycard,body.touch .jcard{animation:none}
/* «Журнал» (F149, journalui.js): the same sheet; its rows one height each (ROW_H), only those in sight in the page */
.jcard{height:min(760px,100%);width:min(760px,100%)}
.jtools{flex:none;display:grid;gap:6px;padding:2px 14px 6px}
.jq{width:100%;box-sizing:border-box;min-height:40px}
.jsum{flex:none;padding:2px 16px 6px;font-size:13px;line-height:1.35}
.jsum small{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jlist{flex:1 1 auto;min-height:60px;overflow:hidden auto;overscroll-behavior:contain;touch-action:pan-y;outline:0;margin:0 8px;border-top:2px dashed #6b533099}
.jpad{position:relative;min-height:100%}
.jrow{position:absolute;left:0;right:0;height:36px;display:grid;grid-template-columns:64px 24px minmax(0,1fr) auto;align-items:center;gap:6px;padding:0 6px;border:0;background:none;color:inherit;text-align:left;font:400 13px/1.2 var(--c-ui)}
.jrow .jt{font:500 11px/1 var(--c-ui);font-style:normal;font-variant-numeric:tabular-nums}
.jrow .jic{display:grid;place-items:center;font-size:15px}
.jrow .jic .sic{width:22px;height:22px}
.jrow span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jrow em{font:700 14px/1 var(--c-ui);font-style:normal;font-variant-numeric:tabular-nums}
.jdetail{flex:none;max-height:30%;overflow:hidden auto;margin:0 14px;padding:6px 10px}
.jdetail p{margin:0 0 2px;font-size:13px;line-height:1.35;user-select:text;-webkit-user-select:text}
.jnone{padding:14px;text-align:center}
.jfoot{display:flex;flex-wrap:wrap;gap:8px}
.jfoot>button{flex:1 1 auto}
/* a phone on its side: the filters one scrolled line beside the search, the arithmetic a short box */
@media (max-height:520px){
  .jcard .awayhead{padding-top:8px;padding-bottom:0}
  .jtools{grid-template-columns:minmax(0,1fr) 190px;padding-bottom:2px}
  .jcard .jchips{flex-wrap:nowrap;overflow:auto hidden;touch-action:pan-x;scrollbar-width:none;margin:0}
  .jcard .jchips>button{flex:none}
  .jq{align-self:start}
  .jsum small{display:none}
  .jdetail{max-height:64px}
  .jcard .awayfoot{padding:6px 14px 8px}
}
/* an open screen folds the card away (it would cover the screen's tabs and first rows); closed, the card is back unless shut */
body.screened .awaymodal{display:none}
.dbtns .wait{font-size:12px;color:var(--ink-faint);padding:6px}
/* the ghost's card waits under a screen that covers the field (a phone's, an upright iPad's — a phone's layout under
   900 px —, the map or a full screen on a tablet): back, unchanged, the moment it closes; beside a tablet's or a
   desktop's panel it stands on the field (B146) */
body.touch.screened:not(.tablet) .deathcard,body.screened.scr-full .deathcard{display:none}
/* «Гра оновилась» (js/updatecard.js): the stack's top card, until a choice */
.updatecard{position:relative;text-align:center}
/* never over a screen covering the field nor over the chat (B144): gone the moment one opens, the page's judge
   (account.js judgeUpdate, updateCall's `covered`/`chat`) holding it until they close */
body.touch.screened:not(.tablet) .updatecard,body.screened.scr-full .updatecard,body:has(#chatDock:not([hidden])) .updatecard{display:none}
.updatecard .updateb{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}
.updatecard .updateb .c-btn{flex:1 1 auto}
.dbtns button small{font-size:inherit}
body.ghost #stage{filter:grayscale(.8) brightness(.85) contrast(1.05)}

.notochip{justify-self:start;padding:3px 9px;border-radius:7px;font-size:11px;font-weight:800;letter-spacing:.06em;
  background:#0b0d0ad8;border:1px solid var(--line)}
.notochip.g{color:#cfcfcf;border-color:#8a8a8a}
.notochip.r{color:#ff7a66;border-color:#a8442e}
.notochip.j{color:#ffd27a;border-color:#8a6a2e}
.notochip.f{color:#bfe8ff;border-color:#4a8ab0}
.notochip.h{color:#c8d8e8;border-color:#6a7c90;border-style:dashed;pointer-events:auto;cursor:pointer;font-family:inherit}
.notochip.home{color:#f0d060;border-color:#a88a3a;display:flex;align-items:center;gap:6px;pointer-events:auto}
.notochip.home[hidden]{display:none}
.notochip.home button{font:inherit;color:inherit;background:rgba(240,208,96,.12);border:1px solid #a88a3a;border-radius:6px;padding:2px 7px;cursor:pointer}

/* the feed (F090): low on the left over the field, the newest line lowest, at most six (feed.js feedStates); only the
   lines take the pointer — a tap on one opens the chat — the field's taps pass between and around them */
.chatlog{
  position:absolute;left:calc(10px + var(--safe-l));bottom:calc(58px + var(--safe-b));
  width:min(36vw,400px);max-height:150px;overflow:hidden;display:flex;flex-direction:column;
  gap:2px;font-size:12px;pointer-events:none
}
.chatlog:not(.open){justify-content:flex-end}
.chatlog:not(.open) .cl{pointer-events:auto;cursor:pointer}
.chatlog:not(.open) .cl.gone{display:none}
/* a line's last moments: it fades out (feed.js FADE) */
.chatlog:not(.open) .cl.old{opacity:0;transition:opacity 1.5s linear}
.chatlog.open{max-height:40vh;overflow-y:auto;pointer-events:auto;background:#0b0d0ac8;border-radius:8px;padding:6px}
.cl{background:#0b0d0a70;padding:2px 7px;border-radius:6px;transition:opacity .3s;text-shadow:0 1px 2px #000,0 0 4px #000c;word-break:break-word}
/* a private line: violet, its ✉ in front */
.chatlog .cl.k-d{background:#2a1838b8;box-shadow:inset 2px 0 0 #c890ff;color:#f0e0ff}
.cl.k-d>i{font-size:11px;letter-spacing:0;color:#d6a0ff}
.cl .times{color:var(--accent);font-weight:700}
.cl b{color:#bfe6ff;font-weight:700}
.cl.sys,.cl.k-s{color:var(--accent);font-style:italic}
.cl>i{font-style:normal;font-size:9px;letter-spacing:.06em;color:var(--ink-faint);margin-right:5px;text-transform:uppercase}
.cl.k-d>i{color:#d6a0ff}
/* the four channels' colours (F089): Локація amber, Приватний violet (above), Груповий green, Гільдійський blue */
.cl.k-l>i{color:#f0c060}
.cl.k-g>i{color:#8fe0a8}
.cl.k-b>i{color:#8cc8ff}
.chatlog .cl.k-g{box-shadow:inset 2px 0 0 #6fcf8c}
.chatlog .cl.k-b{box-shadow:inset 2px 0 0 #6aaef0}
.ctabs button.ico{padding:0 9px}
.thhead .thwith{font-size:13px;color:#e8c8ff}
/* the two's days of talk in a row (J11): the head's line, the list's mark */
.thhead .thstreak{margin-left:auto;font-size:12px;color:#ffd08a;white-space:nowrap}
.thtx .thstreak{font-size:11px;font-weight:normal;color:#ffd08a}
.cl.bad{color:#ffb3a6}
.cl .who{cursor:pointer}
/* the chat: where to speak, what was said, what the feed shows */
.chatpanel{display:grid;gap:8px}
.ctabs{display:flex;gap:4px;flex-wrap:wrap}
.ctabs button{min-height:38px;padding:0 11px;border-radius:9px;border:1px solid var(--line);background:#14161a;color:var(--ink-dim);font-size:13px;position:relative}
.ctabs button.on{border-color:var(--accent);color:var(--accent)}
.ctabs button em{position:absolute;top:-3px;right:-3px;width:9px;height:9px;border-radius:50%;background:var(--accent)}
.csay{display:flex;gap:6px}
.csay input{flex:1;min-width:0;min-height:42px;border-radius:9px;padding:0 10px;background:#0b0d0ae6;border:1px solid var(--line);font-size:16px;user-select:text;-webkit-user-select:text}
.csay button{min-width:46px;min-height:42px;border-radius:9px}
.clist{max-height:42vh;min-height:90px;overflow-y:auto;display:grid;align-content:start;gap:2px;font-size:12.5px;background:#0b0d0a88;border-radius:8px;padding:6px}
.cpeople{display:flex;gap:4px;flex-wrap:wrap}
.cpeople button{min-height:36px;padding:0 10px;border-radius:9px;border:1px solid var(--line);background:#14161a;font-size:12.5px}
.cpeople button.on{border-color:#d6a0ff;color:#e8c8ff}
.cpeople button.add{border-style:dashed;color:var(--ink-dim)}
.cfilters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cfilters small{display:block;color:var(--ink-faint);margin-bottom:2px}
.cbox{display:flex;align-items:center;gap:7px;min-height:36px;font-size:13px}
.cbox input{width:20px;height:20px}
.cmembers{font-size:12px;color:var(--ink-dim)}
.cl.old{opacity:0}
/* a line in the made-up tongue (a guest's reading of the players' words): italic, faintly marked, a tap says why */
.cl.tg .tx{font-style:italic;color:var(--ink-dim);text-decoration:underline dotted #776f6288}
.cl.tg{cursor:help}
.cl.ph .tx{color:#d8e6c8}
/* a translation asked for: 🌐 blinks while it is on its way, steady once it came; a tap swaps the original in */
.cl .trg{margin-left:5px;font-size:11px;cursor:pointer;opacity:.85}
.cl .trg.wait{animation:trblink 1s ease-in-out infinite}
.admrep{padding:6px 0;border-bottom:1px solid var(--line)}
.admrep.done{opacity:.55}
.admrep ul{margin:4px 0 0;padding-left:18px;font-size:13px}
.admrep li.hot{color:#e0b45a}
@keyframes trblink{50%{opacity:.15}}
/* the game in another language (F061): a line of lore still in English blinks its 🌐 until its translation comes; the
   pill over the field says the interface is being translated, and when it is done, offers the reload */
.trw{animation:trblink 1s ease-in-out infinite}
#i18nChip{position:fixed;z-index:var(--z-call);left:50%;transform:translateX(-50%);top:calc(env(safe-area-inset-top,0px) + 54px);
  padding:3px 10px;border-radius:12px;border:1px solid #f0d06055;background:#14161ce6;color:#e8dcb8;font:12px/1.4 inherit;cursor:pointer}
#i18nChip[hidden]{display:none}
.ctabs button em.dim{background:var(--ink-faint);width:7px;height:7px}
/* the boards of threads (F059): a topic a card — hovered, pointed (the keys, a finger down), chosen (the one open last);
   unread in a badge, a muted one faded; an open thread's head with back, follow and mute */
.clist.thlist{gap:5px;align-content:start}
.thlist .thplace{font-size:11.5px;color:var(--ink-faint);padding:0 2px}
.thr{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;text-align:left;width:100%;min-height:48px;padding:6px 9px;border-radius:9px;border:1px solid var(--line);background:#14161acc;color:var(--ink);font-size:12.5px;cursor:pointer}
@media (hover:hover){.thr:hover{border-color:#8a7440}}
.thr.sel{border-color:#f0c040;box-shadow:0 0 0 1px #f0c04055}
.thr:focus-visible{outline:2.5px dashed #f0c040;outline-offset:3px}
.thr.on{background:color-mix(in srgb,#f0c040 10%,#14161a);border-color:#c9a040}
.thr.on.sel{border-color:#f0c040}
.thr .thtop{display:flex;gap:6px;align-items:flex-start;min-width:0}
.thr .thtx{flex:1;min-width:0;font-weight:500;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}
.thr.new .thtx{font-weight:700;color:#fff}
.thr.tg .thtx{font-style:italic;color:var(--ink-dim)}
.thr small{color:var(--ink-faint);font-size:11px;min-width:0;overflow-wrap:anywhere}
.thr .thun{flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--accent);color:#1a1208;font-style:normal;font-size:11px;font-weight:700;line-height:20px;text-align:center}
.thr .thwhere{color:#b8a8e8}
.thr.mu{opacity:.55}
/* read without opening (F094, markread.js): «✓ Усе прочитано» over a list, a row's ✓ on hover or focus, a swipe left */
.readall{min-height:36px;padding:0 12px;border-radius:9px;border:1px solid #3f7f9a;background:#122028;color:#bfeaff;font-weight:700;font-size:12.5px;cursor:pointer}
.thlist>.readall{display:block;margin:0 0 6px auto}
.mread{display:none;flex:none;place-items:center;width:30px;height:24px;margin-left:auto;border-radius:7px;border:1px solid #3f7f9a;background:#122028;color:#bfeaff;font-weight:800;font-size:13px;cursor:pointer}
@media (hover:hover){.mread:hover:not(.on):not(.sel){background:#1d3a48}}
.mread:focus-visible{outline:2.5px dashed var(--c-focus,#f0c040);outline-offset:3px}
@media (hover:hover){.thr.new:hover .mread,.pletter.unread:hover .mread{display:grid}}
.thr.new:focus-within .mread,.pletter.unread:focus-within .mread{display:grid}
/* a finger has no hover: its ✓ is always out on an unread row (beside the swipe), a 44 px target (comic.css's floor) */
body.touch .thr.new .mread,body.touch .pletter.unread .mread{display:grid}
.thr.new,.pletter.unread{touch-action:pan-y}
.swiping{transition:none;box-shadow:inset -4px 0 0 #3f7f9a}
.thr .trg{font-size:11px;opacity:.85}
.thr .trg.wait{animation:trblink 1s ease-in-out infinite}
.clist.ththread{align-content:start}
.thhead{display:flex;gap:5px;align-items:center;flex-wrap:wrap;position:sticky;top:-6px;z-index:1;background:#0b0d0af0;margin:-6px -6px 2px;padding:6px}
.thhead button{min-height:34px;padding:0 10px;border-radius:9px;border:1px solid var(--line);background:#14161a;font-size:12.5px;color:var(--ink-dim)}
@media (hover:hover){.thhead button:hover{border-color:var(--accent);color:var(--ink)}}
.thhead button:focus-visible{border-color:#f0c040;box-shadow:0 0 0 1px #f0c04055;outline:none}
.thhead .thback{margin-right:auto;color:var(--ink)}
.thhead .thfol.on{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,#14161a)}
.thtitle{display:grid;gap:1px;padding:3px 4px 6px;border-bottom:1px solid var(--line);margin-bottom:3px}
.thtitle b{font-size:13.5px;color:#fff;word-break:break-word}
.thtitle small{color:var(--ink-faint);font-size:11px}
.thtitle .thtl{display:flex;gap:6px;align-items:baseline}
.thtitle .trg{font-size:11px;cursor:pointer;flex:none}
.thlines{display:grid;gap:2px}
.cl .tm{margin-left:6px;color:var(--ink-faint);font-size:10.5px}
.cl>i.re{color:var(--ink-faint);margin-right:4px;font-style:normal}
.cl.go{cursor:pointer}
@media (hover:hover){.cl.go:hover:not(.on):not(.sel){background:#1a1d16cc}}
.thfull{font-size:12px;color:var(--ink-dim);padding:8px;border:1px dashed var(--line);border-radius:9px;text-align:center}
/* the phrase picker: sixteen in a 4×4 grid, each with its key, and a row of emoji */
.cpicker{display:grid;gap:6px;outline:none}
.cpicker:focus-visible{box-shadow:0 0 0 1px var(--accent);border-radius:9px}
.cphr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.cphr button{min-height:36px;padding:2px 4px;border-radius:8px;border:1px solid var(--line);background:#14161a;font-size:12px;line-height:1.15;position:relative}
.cphr kbd{position:absolute;top:1px;left:3px;font-size:8.5px;color:var(--ink-faint);font-family:inherit}
body.touch .cphr kbd{display:none}
.cemo{display:flex;flex-wrap:wrap;gap:2px}
.cemo button{min-width:34px;min-height:34px;padding:0;border:0;background:none;font-size:19px}
.csay .cpick{min-width:42px;padding:0;font-size:18px}
.csay .cguest{flex:1;min-height:38px;font-size:12px;color:var(--ink-dim);border-style:dashed}
/* the chat's dock: on a phone the lower part of the screen, the world alive above it; on a desktop a panel at the
   bottom left in place of the feed, its height dragged by its top edge */
.chatdock{position:absolute;z-index:var(--zh-dock);pointer-events:auto;display:flex;flex-direction:column;gap:4px;
  left:calc(8px + var(--safe-l));bottom:calc(8px + var(--safe-b));width:420px;height:var(--chat-h,320px);max-width:calc(100vw - 16px);
  padding:6px;border-radius:12px;background:#0b0d0ad0;border:1px solid var(--line);box-shadow:0 8px 30px #0008}
.chatdock .dgrip{position:absolute;top:-4px;left:30%;right:30%;height:9px;cursor:ns-resize}
.chatdock .dhead{display:flex;gap:4px;align-items:flex-start}
.chatdock .dstrip{flex:1;min-width:0}
.chatdock .dbtn{width:32px;height:32px;min-height:0;padding:0;border-radius:8px;font-size:15px;flex:none}
.chatdock .dbody{flex:1;min-height:0;display:flex}
.chatdock .chatpanel{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;gap:5px}
.chatdock .ctabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;flex:none}
.chatdock .ctabs button{min-height:32px;padding:0 8px;white-space:nowrap;flex:none}
.chatdock .cpeople{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.chatdock .cpeople button{min-height:30px;flex:none}
.chatdock .clist{flex:1;min-height:40px;max-height:none}
.chatdock .cpicker{flex:none;max-height:45%;overflow-y:auto}
.chatdock .csay input{min-height:38px}
.chatdock .csay button{min-height:38px}
body.docked:not(.touch) .chatlog{display:none}
body.touch .chatdock{left:0;right:0;bottom:0;width:auto;max-width:none;height:45vh;border-radius:14px 14px 0 0;
  background:#0b0d0aa8;padding:6px calc(8px + var(--safe-r)) calc(6px + var(--safe-b)) calc(8px + var(--safe-l));border-bottom:0}
body.touch .chatdock .dgrip{display:none}
body.docked .automenu{z-index:var(--zh-menu-docked)}
body.touch.docked .chatlog{visibility:hidden}
/* the party's strip at the top of the dock: every hero, the led one first */
.pstrip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px}
.pstrip .pframe{width:auto;min-width:0}
.pstrip .pframe.led{border-color:#6a5530}
.pself.on{background:#2d2410;border-color:var(--accent)}
.dstrip .pjobs,.cstrip .pjobs{margin-top:4px}
/* a guest's toast: its button confirms an address — on a phone too */
.toast.guest{display:flex;gap:8px;align-items:center;pointer-events:auto}
.toast.guest button{min-height:30px;padding:0 9px;border-radius:8px;font-size:12px;white-space:nowrap}
body.touch .hud-toasts:has(.guest){display:grid;bottom:calc(46vh + var(--safe-b));z-index:var(--zc-toast)}

.hud-toasts{
  position:absolute;left:50%;transform:translateX(-50%);
  bottom:calc(150px + var(--safe-b));width:min(92vw,420px);
  display:grid;gap:5px;justify-items:center;pointer-events:none
}
.toast{
  background:#0b0d0ae0;border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:8px;padding:6px 11px;font-size:12.5px;animation:toastIn .18s ease-out
}
.toast.bad{border-left-color:var(--danger)}
@keyframes toastIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

/* ---------------- dock: the signature over «Захист» and «Авто», low on the right (F090) ---------------- */
.dock{
  position:absolute;right:calc(16px + var(--safe-r));bottom:calc(14px + var(--safe-b));
  display:flex;flex-direction:column;gap:8px;align-items:flex-end
}
.goldtag{font:700 12px/1 ui-monospace,monospace;color:#f0d060;padding:0 6px}

.actions{display:flex;gap:8px;align-items:flex-end}
.act{
  position:relative;width:52px;height:52px;border-radius:50%;overflow:hidden;
  background:#161b0edd;border:1px solid var(--line);
  display:grid;place-items:center;font-size:10.5px;font-weight:700;text-align:center
}
.act span{position:relative;z-index:2;text-shadow:0 1px 2px #000}
.act kbd{position:absolute;bottom:3px;z-index:2;font-size:9px;padding:1px 3px}
.act .cd{position:absolute;inset:0;background:#000000b3;transform-origin:50% 100%;transform:scaleY(0);transition:transform .08s linear}
/* on a desktop the attack leads the bar (Space) */
.act-hit{order:-1;background:#2a1f10e6;border-color:#5a4322;font-size:10px}
/* a class skill: its glyph in the class colour, the name under it */
.act-skill{background:#14161add;border-color:var(--sk,#3a3a32);grid-template-rows:auto auto;align-content:center;gap:0}
.act-skill .ico{position:relative;z-index:2;font-size:19px;line-height:1.05;color:var(--sk,#eae5d2);text-shadow:0 0 8px #000}
.act-skill span{font-size:9.5px;line-height:1.05;max-width:46px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.act.locked{filter:grayscale(1) brightness(.55)}
/* a press that did not go off: a shake; short of steam, the steam bar flashes */
@keyframes nope{20%{transform:translateX(-4px)}40%{transform:translateX(4px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
.act.nope{animation:nope .28s ease-out}
/* an attack kept as the next blow: ringed in its class colour till the weapon's turn comes */
.act.next,.bk.next{box-shadow:0 0 0 2px var(--sk,#ffd27a),0 0 10px var(--sk,#ffd27a)}
@keyframes dry{50%{box-shadow:0 0 0 2px #ff6b4f,0 0 12px #ff6b4f}}
.bar.dry{animation:dry .45s ease-out 2}
.act.locked kbd{display:none}
.act.dry .ico{opacity:.45}
.act:active{filter:brightness(1.35)}

/* F139 (L18): the quick actions — the hero's bar a strip along the field's bottom, from beside the rail (a phone's: the
   💬) to left of «Захист» and «Авто» (the duo's 140 px, a phone's 160, and a gap); its buttons shrink to 34 px before
   the strip scrolls, never wrap up into the feed. Each button its medallion, its key (⇧1…), its mana, its rest as a
   sweep round the clock with the seconds; an empty place dashed. The strip is as wide as its buttons: the field takes
   the taps beside it */
.hud>.qbar{position:absolute;z-index:var(--zh-bar);left:calc(12px + var(--rail-w) + var(--safe-l));bottom:calc(10px + var(--safe-b));
  width:max-content;max-width:calc(100% - 12px - var(--rail-w) - 170px - var(--safe-l) - var(--safe-r));
  display:flex;flex-wrap:nowrap;align-items:flex-end;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x mandatory}
.qbar::-webkit-scrollbar{display:none}
.qbar>.act{flex:0 1 44px;min-width:34px;width:44px;height:44px;border-radius:10px;scroll-snap-align:start;cursor:pointer;touch-action:manipulation;
  -webkit-user-select:none;user-select:none}
.qbar>.act span{display:none}
.qbar .act-skill .ico .sic{width:28px;height:28px;font-size:18px}
.qbar .act kbd{left:3px;top:2px;bottom:auto;font-size:8.5px;padding:0 2px;line-height:1.2}
.qbar .act .cost{position:absolute;right:3px;bottom:2px;font:800 9px/1 system-ui,sans-serif;font-style:normal;color:#9fd6ff;text-shadow:0 1px 2px #000}
.qbar .act .cost:empty{display:none}
/* the rest and the potions' wait: a dark sweep round the clock from noon, the seconds over it (ui.js sweep) */
.qbar .act .cd,.beltq .bq .cd{inset:0;z-index:3;transform:none;transition:none;display:grid;place-items:center;font:800 13px/1 system-ui,sans-serif;font-style:normal;
  color:#fff;text-shadow:0 1px 3px #000;pointer-events:none;background:conic-gradient(#000000b8 calc(var(--p,0) * 1turn),transparent 0)}
/* the strip's seconds small in the corner: the icon reads under the sweep */
.qbar .act .cd{place-items:start end;padding:3px 4px;font-size:10.5px;box-sizing:border-box}
/* more of the strip past an edge (ui.js, quick.js stripMore): a chevron stuck there on a fade */
.hud>.qbar.more-r::after,.hud>.qbar.more-l::before{position:sticky;z-index:4;flex:none;width:18px;height:44px;display:grid;place-items:center;pointer-events:none;
  font:800 20px/1 system-ui,sans-serif;color:#fff;text-shadow:0 1px 3px #000,0 0 2px #000}
.hud>.qbar.more-r::after{content:'›';right:0;margin-left:-24px;background:linear-gradient(90deg,transparent,#0b0d0acc)}
.hud>.qbar.more-l::before{content:'‹';left:0;margin-right:-24px;background:linear-gradient(270deg,transparent,#0b0d0acc)}
.qbar .act.locked{filter:none;border-style:dashed;background:#0b0d0a8c}
.qbar .act.locked .ico{opacity:.6}
.qbar .act.dry .cost{color:#ff8a70}
@media (hover:hover){.qbar>.act:hover,.beltq .bq:hover{filter:brightness(1.18)}}
/* a desktop's chat docked low on the left: the strip starts past it */
body.docked:not(.touch) .hud>.qbar{left:calc(20px + var(--rail-w) + 420px + var(--safe-l));
  max-width:calc(100% - 20px - var(--rail-w) - 420px - 170px - var(--safe-l) - var(--safe-r))}
body.scoping .hud>.qbar,body.scoping .beltq{visibility:hidden}

/* F139: the belt pouch — its slots a column over «Авто» (the dock's flow: the signature over it, the duo under it), F1
   lowest; a round slot of 44 px, its thing's picture, the count, its key, the potions' wait; an empty one dashed, a
   thing dragged from the bag dropped there (invui.js targetAt) */
.beltq{display:flex;flex-direction:column;gap:6px;align-self:flex-end;margin-right:10px}
.beltq .bq{position:relative;width:44px;height:44px;padding:0;border-radius:50%;overflow:hidden;display:grid;place-items:center;flex:none;
  background:#12140fe0;border:2px solid #5a5446;color:#eae5d2;box-shadow:0 2px 6px #000a;cursor:pointer;touch-action:manipulation;
  -webkit-user-select:none;user-select:none}
.beltq .bq .ico{font-size:21px;line-height:1}
.beltq .bq .ico .iic{width:30px;height:30px}
.beltq .bq .bqn{position:absolute;right:6px;bottom:4px;font:800 10px/1 system-ui,sans-serif;font-style:normal;text-shadow:0 1px 2px #000,0 0 3px #000}
.beltq .bq kbd{position:absolute;top:3px;left:50%;transform:translateX(-50%);font-size:8px;padding:0 2px;line-height:1.15}
.beltq .bq.empty{border-style:dashed;background:#0b0d0a80;box-shadow:none}
.beltq .bq.cool .ico{opacity:.5}
.beltq .bq.nope{animation:nope .28s ease-out}
.beltq .bq .cellhl{border-radius:50%}

.stick{
  position:absolute;left:calc(18px + var(--safe-l));bottom:calc(22px + var(--safe-b));
  width:120px;height:120px;border-radius:50%;background:#0f130955;border:2px solid #f4ead244;box-shadow:0 0 18px #0006 inset;
  display:none;place-items:center;touch-action:none
}
.stick i{width:46px;height:46px;border-radius:50%;background:#f4ead2aa;border:1px solid #fff8;box-shadow:0 2px 8px #0008;transform:translate(0,0);pointer-events:none}
/* only a picture: the canvas under it owns the touch, or a thumb that lands
   on the drawn stick never reaches the code that makes it move */
.hud>.stick{pointer-events:none}

/* ---------------- the phone ----------------
   Two thin bars on top (life, steam) and under them one slot for the foe's
   banner, the ghost's card or a first hint. Nothing else up there: every menu
   lives behind the bag. A finger dragged on the field is a stick, its ring drawn where it landed (B083);
   the feed (chat and events) runs low on the left and fades, the chat icon in
   its corner. The right thumb: the main attack in the corner, the second
   attack, four skills and the ultimate on two arcs round it; over them the bag
   and the belt's places; the autopilot's «А» a tile of its own under the book of magic. */
/* the left column ends clear of the ⚙'s hit area (34 px over the minimap's corner, 44 px round it): its 8 px, the
   map's 124 and its 8 px, the ⚙'s 10 px out and its area's 5, and a gap — a tap meant for the ⚙ never lands on the
   buffs (B141, touchtargets.test.js) */
body.touch{--ctx-top:calc(74px + var(--safe-t));--ctx-w:min(calc(100vw - 158px - var(--safe-l) - var(--safe-r)),440px);--dock-h:128px}
body.touch .stick{display:none}
.stick.on,body.touch .stick.on{display:grid}
/* top left: the portrait with the level, life and steam with their numbers; the minimap keeps the right */
/* below the frame's steam and the branch's counter along the top edge (10 px and 8): a buff's chip is never cut by them */
body.touch .hud-tl{top:calc(20px + var(--safe-t));left:calc(8px + var(--safe-l));width:var(--ctx-w)}
body.touch .bar-xp,body.touch .partybar{display:none}
body.touch .portrait{width:42px;height:42px;flex:none}
body.touch .vitals{display:flex;gap:7px;align-items:center;min-height:30px;margin-bottom:26px}
body.touch .bars{flex:1;width:auto;gap:3px}
body.touch .bar{height:17px}
body.touch .bar span{font-size:12px}
body.touch .bar-sta{height:14px}
body.touch .bar-sta span{font-size:11px}
body.touch .bar-food{height:14px}
body.touch .bar-food span{font-size:11px}
/* the minimap in the corner under the bars; a tap opens the island's big map */
/* where the hero stands, one place for it on a phone too (the top left is the hero's own: its buffs) */
body.touch .zone-tag{padding:2px 6px}
body.touch .zone-tag > b{font-size:11.5px}
body.touch .zone-tag small{font-size:9.5px}
body.touch #hud{--mm:124px}
body.touch canvas#minimap{cursor:pointer}
body.touch .hud-tr{top:calc(6px + var(--safe-t));right:calc(8px + var(--safe-r))}
body.touch .notochip{position:fixed;top:calc(var(--ctx-top) + 100px);right:calc(8px + var(--safe-r));font-size:11px}
body.touch .notochip.h{top:calc(var(--ctx-top) + 126px)}
body.touch .notochip.home{top:calc(var(--ctx-top) + 152px)}

/* the slot under the bars: the foe, else the ghost, else a hint; never two at once */
/* on a phone right over «Захист» and «Авто», the feed beside them low on the left (F090) */
body.touch .cards{left:auto;right:calc(8px + var(--beltq-w) + var(--safe-r));transform:none;bottom:calc(114px + var(--safe-b));
  width:min(300px,calc(100vw - 16px - var(--beltq-w) - var(--safe-l) - var(--safe-r)));align-items:stretch}
body.touch .target{min-width:0;padding:3px 2px 4px 9px}
body.touch .target .tx{width:32px;height:32px;font-size:15px;line-height:32px}
/* … 44 px apart, centre to centre: no hit area over a neighbour's */
body.touch .target:not(.ptr) .ti,body.touch .target:not(.ptr) .tx{margin-left:6px}
body.touch .target b{font-size:13px}
body.touch .target small{font-size:10.5px}
body.touch .tbtns{flex-wrap:wrap}
body.touch .tbtns button{min-height:44px;font-size:12.5px;padding:0 10px}
body.touch.targeting .firsthint,body.touch.ghost .firsthint{display:none}
body.touch .firsthint{top:var(--ctx-top);left:calc(8px + var(--safe-l));transform:none;width:var(--ctx-w);text-align:left;font-size:12.5px;pointer-events:auto}
/* the auto card opens across the left column on a phone: the first steps' hint steps aside while it is open (B109) */
body.touch #hud:has(#autoMenu:not([hidden])) .firsthint{visibility:hidden}
body.touch .deathcard{padding:9px 11px 11px}
body.touch .deathcard b{font-size:15px}
body.touch .placebar{top:var(--ctx-top);bottom:auto;left:calc(8px + var(--safe-l));transform:none;width:var(--ctx-w);flex-wrap:wrap}
/* on a phone the card is narrow: the name and the word take the top row whole, the buttons the row under it */
body.touch .placebar .pinfo{flex:1 0 100%}
body.touch .placebar b{white-space:normal}
body.touch .placebar #placeOk{flex:1}
body.touch .placebar button{min-height:44px}
body.touch .banner{top:28%}

/* the right thumb */
body.touch .dock{left:auto;right:calc(8px + var(--safe-r));bottom:calc(8px + var(--safe-b));transform:none;flex-direction:column;align-items:flex-end;gap:10px}
/* F139 on a finger's page: the strip low between the 💬 and the two buttons (160 px and a gap), in the thumb's reach,
   scrolled sideways past what fits; the pouch's column centred over «Авто» (74 px) */
body.touch .hud>.qbar{left:calc(56px + var(--safe-l));bottom:calc(8px + var(--safe-b));max-width:calc(100% - 56px - 178px - var(--safe-l) - var(--safe-r))}
body.touch .qbar>.act{flex:none;width:44px;min-width:44px}
body.touch .qbar .act kbd{display:none}
body.touch .beltq{margin-right:15px}
/* the pouch shown: the target's card keeps to the left of its column (the column's 44 px, its 15 px and a gap) */
body.touch:not(.hud-no-quick):has(#beltQ:not([hidden])){--beltq-w:65px}
/* the signature on a phone: the row of dots too, over «Авто» and the stance (the attack's button that wore it is gone) */
body.touch .sigbar{align-self:center}
/* a phone's auto card: a sheet from the bottom, over «Авто» and the stance (a finger lifted off «Авто» held must not
   land on the card's own buttons), the screen's width (a tablet's at most 560 px, centred), up to 85% of the height */
body.touch .automenu{left:calc(8px + var(--safe-l));right:calc(8px + var(--safe-r));top:auto;bottom:calc(var(--dock-h) + var(--safe-b));transform:none;
  width:auto;max-width:560px;margin:0 auto;max-height:min(85%,calc(100% - var(--dock-h) - 8px - var(--safe-t) - var(--safe-b)))}

/* the left thumb: the feed low on the left, beside the two buttons (F090: no chat icon; the target's card over them) */
body.touch .chatlog{left:calc(8px + var(--safe-l));bottom:calc(56px + var(--safe-b));width:min(360px,calc(100vw - 196px - var(--safe-l) - var(--safe-r)));max-height:108px;font-size:11.5px;gap:1px}
body.touch .chatlog .cl{padding:1px 6px;line-height:1.3}
body.touch .chatlog.open{max-height:40vh}
/* a card over the buttons (a target or a pointer chosen) reaches over the feed's upper lines: the feed keeps its newest
   lines under the card's bottom edge (the cards' 114 px less the feed's 56 and a gap) */
body.touch.targeting .chatlog:not(.open){max-height:52px}
body.touch .hud-toasts{display:none}

/* a phone on its side: the same corners, a wider feed */
@media (orientation:landscape) and (max-height:520px){
  body.touch{--ctx-w:min(46vw,420px);--dock-h:128px}
  body.touch .automenu{right:calc(190px + var(--safe-r));bottom:calc(8px + var(--safe-b));max-height:calc(100% - 16px - var(--safe-t) - var(--safe-b))}
  /* the feed and the card share the HUD's box beside the rail (B152), in its percent, not the window's: the feed a
     third and a bit, the card the rest left of the two buttons */
  body.touch .chatlog,body.touch.targeting .chatlog:not(.open){width:min(36%,360px);max-height:34vh}
  /* on its side the cards stand left of the two buttons, between them and the feed */
  body.touch .cards{right:calc(190px + var(--safe-r));bottom:calc(60px + var(--safe-b));width:min(300px,calc(64% - 220px))}
  /* F139: no room over «Авто» under the minimap — the pouch a row left of the two buttons, the strip left of it, the
     card over both */
  body.touch .beltq{position:absolute;right:calc(100% + 10px);bottom:0;flex-direction:row;margin:0}
  body.touch .hud>.qbar{max-width:calc(100% - 56px - 188px - var(--bq-n) * 50px - var(--safe-l) - var(--safe-r))}
}

/* what a thumb taps is 40 px tall at least: the ways back, the folds, the auto-sell's line, the auction's chips */
body.touch .link,body.touch .autosell .autohead,body.touch .aucchips .chip{min-height:44px}
body.touch .link{display:inline-flex;align-items:center;justify-content:center}
/* (a fold keeps its own triangle: padding, not a flex box, makes it tall) */
body.touch summary,body.touch details.how summary,body.touch .maphow summary{padding-top:11px;padding-bottom:11px}
body.touch .autosell .chip{min-height:34px;padding:0 12px;display:inline-flex;align-items:center}

/* ---------------- what screens and pages hold ---------------- */
/* what only a keyboard or only a thumb has */
body.touch .desk{display:none}
body:not(.touch) .mob{display:none}
body.touch .tree.shut .srow{display:none}
body.touch .tree header{cursor:pointer;margin-bottom:0}
body.touch .tree:not(.shut) header{margin-bottom:6px}
body.touch .tree.shut header small::after{content:" · ▸"}
body.touch .lore:not(.open){display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}

.rows{display:grid;gap:8px}
.row{display:flex;align-items:center;gap:10px;padding:8px 10px;background:var(--panel-2);border:1px solid var(--line);border-radius:9px}
.row .k{flex:1;color:var(--ink-dim);font-size:12.5px}
.row .v{font-weight:700;font-variant-numeric:tabular-nums}
.row button{min-width:34px;min-height:32px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:#0f1309;font-weight:700}
@media (hover:hover){.row button:hover:not(:disabled){border-color:var(--accent)}}
.row button:disabled{opacity:.3;cursor:default}
.muted{color:var(--ink-faint);font-size:12px}
.sect{margin:14px 0 6px;font-size:13px;font-weight:700;color:var(--ink-dim)}
.sect:first-child{margin-top:0}
.wide{width:100%;min-height:42px;border-radius:10px;border:1px solid var(--line);background:var(--panel-2);font-weight:700;margin-top:8px}
@media (hover:hover){.wide:hover{border-color:var(--accent)}}
@media (hover:hover){.wide.danger:hover{border-color:var(--danger);color:var(--danger)}}
.t-common{color:var(--t-common)} .t-good{color:var(--t-good)} .t-rare{color:var(--t-rare)}
.t-epic{color:var(--t-epic)} .t-legend{color:var(--t-legend)} .t-magic{color:var(--t-good)}
/* the veil of cloud over the adventure airship's long way (gl/voyage.js) */
.voyveil{position:fixed;inset:0;z-index:var(--z-veil);pointer-events:none;background:radial-gradient(ellipse at 50% 45%,#ffffff 0%,#e8eef4 45%,#b9c8d6 100%)}
.row.keystat .k{color:#f0d060}
.bigmap{display:block;border-radius:10px;border:1px solid var(--line);background:#0d1418;margin:0 auto}
/* the big map (a page, the whole window): the map fills what its tabs leave */
.sbody.s-world.tab-map{display:flex;flex-direction:column;gap:6px;overflow:hidden;background:#0d1418;
  padding:8px calc(8px + var(--safe-r)) calc(8px + var(--safe-b)) calc(8px + var(--safe-l))}
.sbody.s-world.tab-map .wtabs{margin:0}
.mapbox{flex:1;min-height:0;position:relative}
.mapbox .bigmap{position:absolute;inset:0;border-radius:8px}
.mapbox .bigmap{touch-action:none;cursor:grab}
.mapbox .bigmap:active{cursor:grabbing}
/* the one map's zoom (F127): + − ⌖ down its right edge, a thumb's 44 px on a phone */
.mapzoom{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:6px}
.mapzoom button{width:36px;height:36px;padding:0;border-radius:10px;border:1px solid #ffe08a;background:rgba(20,16,8,.82);color:#ffe9a8;font:800 20px/1 system-ui,sans-serif}
body.touch .mapzoom button{width:44px;height:44px;font-size:22px}
@media (hover:hover){.mapzoom button:hover{border-color:#fff3c0;color:#fff}}
/* a place's card on the map and the far walk's strip (F143, trekui.js): by the tap, inside the map's box */
.mapcard{position:absolute;z-index:3;padding:10px 34px 10px 12px;border-radius:12px;border:1px solid #ffe08a;
  background:rgba(20,16,8,.92);color:#f3e6c4;font-size:13px;line-height:1.35;box-shadow:0 6px 18px rgba(0,0,0,.5)}
.mapcard .mctitle{display:block;font-size:15px;color:#ffe9a8;margin-bottom:4px;overflow-wrap:anywhere}
.mapcard .mcdanger,.mapcard .mcway{margin:2px 0}
.mapcard .mcway{color:#d9c9a0}
.mapcard .mcwarn{margin:6px 0;color:#ffb38a}
.mapcard .mcbtns{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px}
.mapcard .mcgo{min-height:40px;padding:0 14px;font-weight:800}
.mapcard .mcshut{position:absolute;right:6px;top:6px}
.maptrek{position:absolute;z-index:2;left:50%;bottom:10px;transform:translateX(-50%);max-width:calc(100% - 20px);display:flex;
  gap:8px;align-items:center;padding:6px 6px 6px 12px;border-radius:999px;border:1px solid #ffe08a;background:rgba(20,16,8,.88);
  color:#ffe9a8;font:700 13px/1.2 system-ui,sans-serif}
.maptrek span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.touch .maptrek button,body.touch .mapcard .mcbtns button{min-height:44px}
.maphow{font-size:12px;color:var(--ink-dim)}
.maphow summary{cursor:pointer;text-align:center;padding:2px}
.maphow p{margin:4px 2px 0;max-height:24vh;overflow-y:auto}
/* the townspeople's legend (F144): each trade's pin and its word, wrapping; the «🛎» toggle dim while they are hidden */
.maplegend{font-size:12px;color:var(--ink-dim)}
.maplegend summary{cursor:pointer;text-align:center;padding:2px}
.maplegend p{margin:4px 2px 0}
.maplegend .mlgs{display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:center}
.maplegend .mlg{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.mapzoom .mapfolk{font-size:17px}
.mapzoom .mapfolk[aria-pressed="false"]{opacity:.45;border-color:var(--line)}

/* ---------------- the bag ---------------- */
.invbody{padding-left:10px;padding-right:10px}
.invwrap{position:relative;display:grid;justify-items:center;gap:2px}
.invwrap .sect{justify-self:stretch}
.bag,.doll{position:relative}
.bag{
  /* the slots are the content, the frame sits outside them: an item in the last slot stays inside it */
  box-sizing:content-box;
  background-color:#0d110b;border:1px solid var(--line);border-radius:4px;
  background-image:
    linear-gradient(to right,#2e352266 1px,transparent 1px),
    linear-gradient(to bottom,#2e352266 1px,transparent 1px);
  background-size:var(--cell) var(--cell)
}
.eqslot{
  position:absolute;border:1px solid var(--line);border-radius:6px;background:#0d110bcc;
  display:grid;place-items:center
}
.eqslot .ph{font-size:calc(var(--cell) * .55);opacity:.22}
.eqslot.ok{border-color:#7fe08a;box-shadow:inset 0 0 0 1px #7fe08a}
.eqslot.bad{border-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger)}
.it{
  position:absolute;display:grid;place-items:center;border-radius:4px;overflow:hidden;
  background:#1b2316e6;border:1px solid #3a3a32;cursor:grab;touch-action:none
}
.it img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.it .emo{font-size:calc(var(--cell) * .6);pointer-events:none}
/* a shard: its kind's emoji broken in two, glowing in its quality's colour */
.shardi{display:inline-grid;place-items:center;line-height:1;pointer-events:none}
/* an essence: a drop that glows in its colour */
.essi{filter:drop-shadow(0 0 2px var(--sc)) drop-shadow(0 0 1px var(--sc)) saturate(1.2)}
.shardi>.emo{grid-area:1/1;filter:drop-shadow(0 0 1.5px var(--sc)) drop-shadow(0 0 1px var(--sc))}
.shardi>.emo:first-child{clip-path:polygon(0 0,100% 0,100% 34%,62% 46%,38% 58%,0 66%);transform:translate(-8%,-8%) rotate(-9deg)}
.shardi>.emo:last-child{clip-path:polygon(0 66%,38% 58%,62% 46%,100% 34%,100% 100%,0 100%);transform:translate(8%,8%) rotate(8deg)}
.it.tier1{border-color:#3f7a46;background:#13261ae6}
.it.tier2{border-color:#3d5f90;background:#14223ae6}
.it.tier3{border-color:#6a4a92;background:#22163ae6}
.it.tier4{border-color:#a8622a;background:#331d0ce6}
.it.unusable{background:#4a1612e6!important}
.it.lifted{opacity:.3}
/* better than what is worn there */
.it .up{position:absolute;right:2px;top:0;font:900 calc(var(--cell) * .3)/1 system-ui,sans-serif;font-style:normal;color:#7fe08a;text-shadow:0 1px 2px #000,0 0 4px #000;pointer-events:none}
/* the item whose card is open: framed in gold and breathing, as the target is ringed in the world */
.it.sel{z-index:2;border-color:#f0d060;box-shadow:0 0 0 2px #f0d060,0 0 12px #f0d060a0;animation:itsel 1.1s ease-in-out infinite alternate}
@keyframes itsel{to{box-shadow:0 0 0 2px #f0d060,0 0 4px #f0d06040}}
@media (prefers-reduced-motion:reduce){.it.sel{animation:none}}
.it .qty{position:absolute;right:2px;bottom:1px;font:800 10px/1 ui-monospace,monospace;color:#fff;text-shadow:0 1px 2px #000}
/* the item's level in the corner of its slot */
.it .ilvl{position:absolute;left:2px;top:1px;font:700 8.5px/1 ui-monospace,monospace;font-style:normal;color:#e8dcc0b0;text-shadow:0 1px 2px #000;pointer-events:none}
/* the bag on a phone: equipment two rows of five, the bag one run of slots, the belt, the rest folded;
   on its side, equipment and belt on the left, the bag on the right */
.invwrap.phone{display:flex;flex-direction:column;align-items:stretch;gap:2px}
/* one column no wider than the sheet: a head wider than a 320 px page wraps rather than widening it past the edge */
.invwrap.phone .invcol{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;justify-items:center;gap:2px;align-content:start}
.invwrap.phone .sect{justify-self:stretch;margin:10px 0 4px}
.invwrap.phone.sideways{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:0 14px}
.invwrap.phone.sideways .invleft{position:sticky;top:0}
.invwrap.phone.sideways>.itemcard{grid-column:1 / -1}
.eqgrid{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px;justify-content:center}
.eqgrid .eqslot{position:relative}
/* the accessories' row under the doll (F141): the open slots, the next one locked with its star */
.accbox{margin-top:6px}
.acchead small{opacity:.7;font-weight:400}
.accrow{justify-content:flex-start}
.accslot.locked{position:relative;border:1px dashed var(--line);border-radius:6px;display:grid;place-items:center;align-content:center;
  opacity:.55;background:#0d110b66}
.accslot.locked .lk{font-size:calc(var(--cell) * .34);line-height:1}
.accslot.locked small{font-size:11px;color:#f0d060}
/* the hero itself among its slots (F069, gl/mirror.js): a soft light behind it, never in the way of a drop */
.mirrorbox{pointer-events:none;border-radius:8px;overflow:hidden;
  background:radial-gradient(ellipse 60% 55% at 50% 52%,#f0d0601f,#f0d06008 60%,transparent 75%)}
.mirror{display:block;width:100%;height:100%}
.eqgrid.mir{display:grid;gap:6px;width:100%;max-width:440px;justify-content:center}
.eqgrid.mir .mirrorbox{margin:0 4px}
.baghead{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.baghead .purse{margin-left:auto;color:#f0d060;font-weight:700}
.baghead>span:first-child+.sortbtn{margin-left:auto}
.sortbtn{min-height:36px;padding:0 12px;border-radius:9px;border:1px solid var(--line);background:#1a1d16;color:var(--ink-dim);font-weight:700;font-size:12.5px}
.bag.run{background-image:none;background-color:#0b0e09}
.slotcell{position:absolute;box-sizing:border-box;border:1px solid #2e352266;background:#10150d}
.pouchhead{color:#d8a070}
.bag.run[data-c="pouch"]{border-color:#9a6a3a;box-shadow:0 0 6px #9a6a3a55}
.fold{justify-self:stretch;margin-top:8px}
.fold summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--ink-dim);padding:8px 2px}
.fold summary small{font-weight:400;color:var(--ink-faint);font-size:11.5px}
.fold .bag{margin:0 auto}
body.touch .it .qty{font-size:max(11px,calc(var(--cell) * .27))}
.autosell{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:8px 0 2px;font-size:11.5px;color:var(--ink-faint)}
.autosell .autohead{align-self:center;background:none;border:0;color:var(--ink-dim);font-size:12.5px;padding:4px 8px;cursor:pointer}
.autosell .autochips{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}
.autosell small{text-align:center}
.sect small,.wide small{font-weight:400;color:var(--ink-faint);font-size:11.5px}
.autosell .chip{border:1px solid var(--c);border-radius:999px;padding:3px 9px;color:var(--c);background:#0b0d0a;font-size:11px;opacity:.55}
.autosell .chip.on{opacity:1;background:color-mix(in srgb, var(--c) 22%, #0b0d0a);box-shadow:0 0 8px color-mix(in srgb, var(--c) 40%, transparent)}
.cellhl{position:absolute;pointer-events:none;border:2px solid #7fe08a;border-radius:4px;background:#7fe08a22;z-index:3}
/* the row of places (F086): four for bags, the невипадайка in gold under its padlock, the belt pouch's;
   wrapped inside its column (B144): a row longer than a phone (eight places at 44 px) never runs past either edge */
.bagbar{display:flex;flex-wrap:wrap;gap:4px;justify-content:safe center;max-width:100%;min-width:0;margin:6px 0 4px}
.bagbar>.bagslot{flex:none}
.bagslot{position:relative;border:1px solid var(--line);border-radius:5px;background:#0d110b;display:grid;place-items:center}
.bagslot .ph{font-size:calc(var(--cell) * .5);opacity:.22}
.bagslot.pouchslot{border-color:#9a6a3a;box-shadow:inset 0 0 0 1px #9a6a3a40}
/* a place: hovered, pointed (its bag's card open), chosen (a bag hangs in it) */
@media (hover:hover){.bagslot:hover{border-color:var(--accent)}}
.bagslot:has(.it.sel){border-color:#f0d060}
.bagslot.on{background:#141a10}
.bagslot.ok{border-color:#7fe08a;box-shadow:inset 0 0 0 1px #7fe08a}
.bagslot.bad{border-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger)}
.bagslot.keepslot{border-color:#a8873a;box-shadow:inset 0 0 0 1px #a8873a40,0 0 6px #a8873a33;margin:0 6px}
.bagslot.keepslot.on{background:#1d1a10}
.bagslot .lock{position:absolute;right:-5px;top:-7px;font-size:calc(var(--cell) * .34);font-style:normal;line-height:1;filter:drop-shadow(0 1px 1px #000);pointer-events:none;z-index:3}
.itemcard .kept{color:#d8b860}
/* the Скриня (F146): its own section in Герой › Скриня and beside a chest */
.chestsec{justify-self:stretch;display:grid;justify-items:center;gap:4px;margin-top:10px;padding:6px 6px 8px;border:1px solid #5a4a2a;border-radius:8px;background:#100e08}
.chestsec.at{border-color:#a8873a;box-shadow:0 0 8px #a8873a33}
.chestsec .chesthead{justify-self:stretch;margin:2px 0;color:#e8cc80}
/* Торба's line to the chest: hovered (.wide's), pointed by a key, pressed */
.chestlink{justify-self:stretch;margin-top:10px;text-align:left;color:#e8cc80}
.chestlink:focus-visible{border-color:#f0d060;box-shadow:0 0 0 1px #f0d06055;outline:none}
.chestlink:active{background:#1d1a10}
.chestup{justify-self:stretch;margin-top:4px}
.chestup:focus-visible{border-color:#f0d060;box-shadow:0 0 0 1px #f0d06055;outline:none}
.chestup:active{background:#1d1a10}
.chestsec .chesthint{margin:0 4px;font-size:11.5px;color:var(--ink-faint);text-align:center;max-width:44ch}
/* the chest's step of its line by its painted picture (F116), before its name: the head, Торба's line, the next step */
:is(.chesthead,.chestlink,.chestup) .bic{width:30px;height:30px;margin:-4px 6px -4px 0}
.chestsec .chestgrid{max-width:100%}
.chesttab{display:grid;gap:4px;justify-self:stretch}
.slipgrid{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;justify-self:center;max-width:100%}
/* the next row, locked: eight empty cells and what opens it over them */
.chestnext{position:relative;display:grid;place-items:center;max-width:100%;padding:2px 6px;border:2px dashed #7d6a3a;border-radius:8px;background:none;color:inherit;cursor:pointer}
.chestnext .chcells{position:absolute;inset:0;display:grid;grid-template-columns:repeat(8,1fr);opacity:.35;pointer-events:none}
.chestnext .chcells i{border-right:1px dashed #7d6a3a}
.chestnext .chcells i:last-child{border-right:0}
.chestnext .chword{position:relative;padding:1px 6px;border-radius:6px;font-weight:600;text-align:center}
.chrows{justify-self:stretch;margin-top:6px}
.chrow small{display:block}
@media (hover:hover){.fold summary:hover{color:var(--ink)}}
.fold summary:focus-visible{outline:2px solid #f0d060;outline-offset:2px}
.fold[open]>summary{color:#f0d060}
/* a thing in a bag: hovered here, pointed (its card open) .sel, chosen while carried .lifted */
@media (hover:hover){.it:hover{border-color:#e8dcc0;filter:brightness(1.12)}}
.voidcell{position:absolute;display:block;background:#06080a;pointer-events:none}
.it .bsize{position:absolute;left:2px;top:1px;font:700 10.5px/1 ui-monospace,monospace;font-style:normal;color:#f0d060d0;text-shadow:0 1px 2px #000;pointer-events:none}
.beltrow{display:flex;gap:4px}
.brow .bline{color:var(--accent);font-size:12px;margin-top:2px}
.beltcell{position:relative;border:1px solid var(--line);border-radius:5px;background:#0d110b}
.beltcell>i{position:absolute;left:3px;top:1px;font:700 10.5px/1 ui-monospace,monospace;color:var(--ink-faint);font-style:normal}
.beltcell.ok{border-color:#7fe08a}
/* a merchant's wares (B127): its goods cards (comic.css «the counters' goods») the whole width, the bag's drop to sell */
.shop{width:100%}
.dragghost{position:fixed;left:0;top:0;z-index:var(--z-drag);pointer-events:none;opacity:.9;filter:drop-shadow(0 6px 10px #000)}
.dragghost .it{position:relative}

/* ---------------- shared by the recipe book, building and stalls ---------------- */
.chint{font-size:11.5px;color:var(--ink-faint);text-align:center;margin:6px 0 0;max-width:420px}
/* the first step with no workbench yet: said plainly, above everything */
.chint.start{color:#f0d060;font-size:12.5px;margin:2px 0 6px}

/* item card and tooltip share one look */
.card{width:100%;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}
/* the open item's card keeps to the sheet's foot, in sight however far the bag is scrolled */
.itemcard{position:sticky;bottom:0;z-index:4;width:100%}
.itemcard .card{position:relative;box-shadow:0 -8px 20px #000c}
.itemcard .tthead{padding-right:40px}
/* a mouse's card by its thing (invui.js placeBy), 320 px; a lot's and a stall thing's at the sheet's foot as wide */
.itemcard.by{position:absolute;bottom:auto;z-index:6;width:320px}
.itemcard.by .card{margin-top:0}
body:not(.touch) .itemcard.warecard .card{max-width:320px;margin-left:auto;margin-right:auto}
/* its ✕ in the top right corner (cardshut.js): 36 px under a mouse, 44 under a finger */
.itemcard .card>.x{position:absolute;top:6px;right:6px;min-width:36px;min-height:36px;padding:0}
body.touch .itemcard .card>.x{min-width:44px;min-height:44px}
/* one row of buttons (B150): the main act in words, the rest 38 px squares named in their tooltip (44 under a finger),
   the dangerous one last, pushed right, its words shown while it asks again */
.cardbtns{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px}
.cardbtns .wide{flex:0 1 auto;min-width:0}
.cardbtns .sq{flex:none;display:inline-grid;place-items:center;width:38px;min-height:38px;padding:0;font-size:17px;line-height:1}
body.touch .cardbtns .sq{width:44px;min-height:44px}
.cardbtns .danger{margin-left:auto}
.cardbtns .danger.armed{width:auto;padding:0 12px;font-size:13.5px}
/* a thing's words (the card's and the tooltip's, B150): a head row — its picture, its name in two lines at most, what it
   is, its chips — a thin durability line, the numbers in two columns, its joke one line */
.tt{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;font-size:12.5px;text-align:left}
.tt>*,.ttstats>*{min-width:0}
/* a fold's summary in the card stays a line, not a 44 px touch row: the card's buttons are the thumb's targets */
body.touch .tt details>summary{padding-top:4px;padding-bottom:4px}
.tthead{display:flex;align-items:center;gap:10px;min-width:0}
.ttname{flex:1;display:grid;gap:1px;min-width:0}
.ttname>b{font-size:14px;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tt small{color:var(--ink-faint);font-size:11px}
.ttchips{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.ttchips .c-chip{padding:1px 7px 0;font-size:11.5px;white-space:normal}
.ttstats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1px 12px}
.ttstats i{margin-left:3px;font-style:normal;font-size:11px;font-weight:700}
.ttstats i.up{color:#7fe08a}
.ttstats i.down{color:#d88a7a}
.tt .aff{color:#8fb8ff}
.tt .req.bad{font-weight:700}
.tt .price{color:#f0d060}
.tt details>summary{list-style:none;cursor:pointer}
.tt details>summary::-webkit-details-marker{display:none}
.durf>summary{display:flex;align-items:center;gap:8px}
.durf .dur{flex:1;height:4px;border:1px solid #1b130b;border-radius:3px}
.durf>summary>b{font-size:11.5px;font-weight:700}
.tt details.flav>summary{color:var(--ink-faint);font-style:italic;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt details.flav[open]>summary{white-space:normal}
.ttmore>summary{font-size:11.5px;color:var(--ink-faint)}
.tip{
  position:fixed;left:0;top:0;z-index:var(--z-tip);pointer-events:none;max-width:280px;
  background:#0b0d0af2;border:1px solid #4a4a3a;border-radius:8px;padding:8px 11px;box-shadow:0 8px 24px #000c
}

/* the building sheet: what can be built, what each takes and does */
.buildsheet{display:grid;gap:8px}
.blist{display:grid;gap:6px}
.brow{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:7px 8px;border:1px solid #3a3a32;border-radius:8px;background:#15130fcc}
.bico{font-size:26px;width:36px;text-align:center}
.btext b{font-size:13px}
.btext small{font-size:10.5px;color:var(--ink-faint)}
.btext p{margin:2px 0 4px;font-size:11.5px;color:var(--ink-dim);line-height:1.35}
.bparts{display:flex;flex-wrap:wrap;gap:8px}
.bneed{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:#ff9a86}
.bneed.ok{color:#9fd08a}
.bneed img{width:18px;height:18px;object-fit:contain}
.bneed .emo{font-size:14px}
.bneed i{font-style:normal;font-weight:700}
.brow button{min-height:36px;padding:0 12px;border-radius:8px;border:1px solid #7d7132;background:linear-gradient(#5d5423,#3b3516);color:#fff;font-weight:700;font-size:12px}
.bsites{margin:0;padding:0;list-style:none;font-size:12px;color:var(--ink-dim)}
.bsites li{display:flex;align-items:center;gap:6px;min-height:30px}
.bsites .bic{width:28px;height:28px}
@media (max-width:460px){ .brow{grid-template-columns:auto 1fr} .brow button{grid-column:1 / -1} }
/* a kind's painted picture (F116), as big as a bag's cell (F114): 64 px, 72 on a phone; the row's words beside it */
.bpic{display:grid;place-items:center;width:64px;height:64px;align-self:start}
.bpic .bic{width:100%;height:100%}
.bpic .emo{font-size:34px}
body.touch .bpic{width:72px;height:72px}
/* a building named in a line (a home's next steps, what a base's rank opens): its small picture before its name */
.bstep{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;vertical-align:middle}
.bstep .bic{width:24px;height:24px}

/* the workshop's two tabs: the crafting grid, building */
/* a page's own strip of views: wrapped, never past the panel's edges (the admin's six in a 560 px panel) */
.wtabs{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 0 8px}
.wtabs button{min-height:34px;padding:0 14px;border-radius:9px;border:1px solid var(--line);background:#1a1d16;font-weight:700;font-size:12.5px;color:var(--ink-dim)}
.wtabs button.on{border-color:#7d7132;background:linear-gradient(#5d5423,#3b3516);color:#fff}

/* the party: a frame for each hero not led, under one's own, as in a raid UI */
.partybar{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start;max-width:min(92vw,340px)}
.pframe{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;align-items:center;gap:4px;width:min(62vw,230px);padding:3px;
  border-radius:10px;background:#0b0d0acc;border:1px solid var(--line)}
.pframe.empty{display:block;width:auto;min-height:34px;padding:0 12px;color:var(--ink-dim);font-size:12px;font-weight:700}
.pframe.dead{border-color:#6a2a20}
.pframe.away{opacity:.7}
.pjob,.pswap{width:30px;height:30px;min-height:0;padding:0;border-radius:8px;border:1px solid #3a3a32;background:#15130f;font-size:15px;line-height:1}
.pswap{color:var(--accent);font-weight:700}
.pinfo{display:grid;gap:2px;min-width:0;min-height:0;padding:1px 3px;text-align:left;background:none;border:0;color:var(--ink)}
.pinfo b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pinfo b small{color:var(--ink-faint);font-weight:400}
.php{position:relative;display:block;height:5px;border-radius:3px;background:#000;overflow:hidden}
.php em{position:relative;display:block;height:100%;background:linear-gradient(var(--hp-2),var(--hp))}
/* the led hero's life still coming (B091), behind its fill */
.php s{position:absolute;left:0;top:0;bottom:0;background:#cdf3b4;opacity:.75}
.psay{font-size:9.5px;color:var(--ink-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the hero's sleep clock under its frame (F048): «до сну 5 год» or asleep, and the other's hunger */
.pwatch{grid-column:1/-1;display:flex;align-items:center;gap:6px;padding:0 3px 1px 34px;min-width:0}
.pwleft{font-size:9.5px;color:#c9b98a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pframe.asleep{border-color:#3a4a6a}
.pframe.asleep .pwleft{color:#a8c0f0}
.ptext .pwleft{display:block;font-size:10.5px}
/* a home's card (F048): what would give more hours of AFK */
.bnote{flex-basis:100%;font-size:10.5px;color:var(--ink-faint);line-height:1.3}
/* a building's durability under a siege on Полинь (F121, web/js/siegeui.js) */
.hpbar{flex-basis:100%;height:6px;border-radius:3px;background:rgba(0,0,0,.35);overflow:hidden}
.hpbar>i{display:block;height:100%;background:#c8553d}
/* a site's card (S07 §4.5, siteui.js): the checklist's rows — material, bar, n/need, what is missing — and the clock */
.sitecard{flex-basis:100%;display:flex;flex-direction:column;gap:2px;font-size:11.5px;margin:2px 0 4px}
.sitecard .srow{display:grid;grid-template-columns:minmax(0,1.4fr) auto auto minmax(0,1.3fr);gap:6px;align-items:baseline}
.sitecard .srow.ok{color:var(--ink-faint)}
.sitecard .sbar{letter-spacing:-1px;color:#f0d060}
.sitecard .sclock{font-weight:600}
/* the speed-up sheet «⏩ Прискорити» opens on the card (B134, siteui.js hurryHtml): a chip a slip, 💎, the notes */
.hurrysheet{flex-basis:100%;display:flex;flex-wrap:wrap;gap:5px;margin:2px 0 4px}
.hurrysheet button small{opacity:.75;margin-left:3px}
.psplit{width:34px;height:34px;min-height:0;padding:0;border-radius:9px;border:1px solid var(--line);background:#0b0d0acc;font-size:16px;color:var(--accent)}
.pjobs{flex-basis:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:min(62vw,230px);padding:6px;
  border-radius:10px;background:#0b0d0af2;border:1px solid var(--line)}
.pjobs button{min-height:30px;padding:0 6px;border-radius:7px;border:1px solid #3a3a32;background:#15130f;font-size:11.5px;text-align:left;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pjobs button.on{border-color:#7d7132;color:#f0d060}
/* in the «Загін» sheet, under the hero's row: the whole width, a thumb's height */
.pjobs.inrow{width:auto;margin:4px 0 6px 32px;grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
body.touch .pjobs.inrow button{min-height:40px}

/* the party sheet: the places, the bench, a new hero */
.partysheet .prow{display:flex;align-items:center;gap:8px;margin-top:6px;padding:6px 8px;border:1px solid #3a3a32;border-radius:9px;background:#15130fcc}
.partysheet .prow.me{border-color:#7d7132}
.partysheet .pplace{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#2a2410;color:#f0d060;font-weight:700;font-size:12px}
.partysheet .ptext{flex:1;display:grid;min-width:0}
/* a hero's line under its name, on as many lines as its words take (a long language's never cut) */
.partysheet .ptext small{color:var(--ink-faint);font-size:11px;overflow-wrap:anywhere}
.partysheet .prow button{flex:none;min-height:32px;padding:0 10px;border-radius:8px;font-size:12px}
.partysheet .newhero{display:grid;gap:8px;margin-top:10px}
.partysheet .newhero select{min-height:36px;border-radius:9px;background:#15130f;color:var(--ink);border:1px solid var(--line);padding:0 8px}
.partysheet > .wide{margin-top:10px}
/* Загін › Герої: the base in a row, a tap to База */
.partysheet .pbase{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}
@media (hover:hover){.partysheet .pbase:hover{border-color:#7d7132}}
.partysheet .pbase>b{flex:none;color:var(--accent)}

/* two screens: a whole game in each half, the one in use outlined */
body.shell{margin:0;background:#050605;overflow:hidden}
.panes{display:flex;gap:2px;height:100vh;height:100dvh;background:#050605}
.panes iframe{flex:1;min-width:0;height:100%;border:0;outline:2px solid transparent;outline-offset:-2px}
.panes iframe.on{outline-color:#7d7132}

/* the autopilot's card (F074, B077, B128): the head with ✕ and the confirm row stay put, the middle scrolls between
   them. On a desktop it stands left of the top-right column (the minimap, the place's tag, the link's line), over
   «Авто», as tall as its content up to the HUD's height less «Авто»'s row — a % of the HUD's own box; on a phone a
   sheet from the bottom (below) */
.automenu{
  position:absolute;right:calc(26px + var(--mm) + var(--safe-r));bottom:calc(100px + var(--safe-b));z-index:var(--zh-menu);
  display:flex;flex-direction:column;width:min(calc(100vw - 52px - var(--mm) - var(--safe-l) - var(--safe-r)),380px);padding:0;border-radius:12px;overflow:hidden;
  max-height:calc(100% - 110px - var(--safe-b) - var(--safe-t));
  background:#0b0d0af2;border:1px solid var(--line);box-shadow:0 8px 30px #000a
}
/* a tab's sections: each a row of the card's grid, never run into the line before it */
.automenu .apanel{display:grid;grid-auto-rows:max-content;gap:inherit;min-width:0}
/* a scrolling grid's rows sized to their content (B109): with its height set by the card, auto rows would shrink to
   their items' min-height and a longer line (a translation) would run over the next row */
.automenu .abody{flex:1 1 auto;min-height:0;display:grid;grid-auto-rows:max-content;align-content:start;gap:4px;padding:4px 8px 6px;overflow-y:auto;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.automenu .abody > b{font-size:12px;color:var(--accent);padding:0 4px 2px}
.automenu .afoot{flex:none;display:flex;gap:6px;padding:6px 8px 8px;border-top:1px solid var(--line);background:#0b0d0a}
.automenu .afoot:empty{display:none}
.automenu .afoot button{display:block;min-height:40px;text-align:center;font-weight:700}
.automenu .afoot .go{flex:1;min-width:0}
.automenu .afoot .ano,.automenu .afoot .stop{flex:none;padding:6px 12px}
.automenu button{display:grid;grid-template-columns:28px 1fr;align-items:center;column-gap:8px;text-align:left;padding:6px 8px;border-radius:9px;border:1px solid #3a3a32;background:#15130f}
/* the icon at the name's line, however many lines the words under it take */
.automenu .jico{grid-row:span 2;align-self:start;font-size:20px;line-height:1.1;text-align:center}
.automenu .jname{font-weight:700;font-size:13px}
.automenu button small{font-size:10.5px;color:var(--ink-faint);line-height:1.25}
.automenu button.cur{border-color:#5d5423}
.automenu button.on{border-color:#7d7132;background:linear-gradient(#3b3516,#24200f);color:#fff}
.automenu button.stop{display:block;text-align:center;font-weight:700;color:#ffb39e;border-color:#6a3426}
.automenu .jnote{font-size:10.5px;color:var(--ink-faint);padding:2px 4px 0;line-height:1.3}
/* the loadout (F048): six sockets, Захищатись first; ▲ ▼ ✕ a thumb wide */
.lslots{display:grid;gap:4px}
.lslot{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;column-gap:8px;min-height:44px;padding:4px 6px 4px 8px;
  border-radius:9px;border:1px solid #3a3a32;background:#15130f}
.lslot.now{border-color:#7d7132}
.lslot .lname{display:grid;min-width:0}
.lslot .lname b{font-size:13px}
.lslot .lname small{font-size:10.5px;color:var(--ink-faint);line-height:1.25}
.lslot .lfix{font-size:10px;color:var(--ink-faint)}
.lmoves{display:flex;gap:3px}
.automenu .lmove{display:grid;place-items:center;width:34px;height:34px;min-height:0;padding:0;font-size:13px}
.automenu .lmove:disabled{opacity:.3}
.automenu .lmove.lout{color:#ffb39e}
.automenu .lslot.ladd{grid-template-columns:28px 1fr;border-style:dashed;color:var(--ink-dim)}
.lslot.locked{opacity:.55;border-style:dashed;grid-template-columns:28px minmax(0,1fr)}
.lpick{display:grid;gap:4px;padding:6px;border-radius:10px;border:1px solid #5d5423;background:#100f0b}
body.touch .automenu .lmove{width:40px;height:40px}
/* Авто's three tabs and the Бій tab's patterns (S02 §4.6, patternui.js): a row [тригер ▾] [N −/+] → [реакція ▾] ✕ */
.automenu .atabs>button{display:inline-flex;grid-template-columns:none;min-height:40px;font-size:13px}
body.touch .automenu .atabs>button{min-height:44px}
.pats{display:grid;gap:4px}
.prow{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:4px 6px;border-radius:9px;border:1px solid #3a3a32;background:#15130f}
.prow.locked{opacity:.5;border-style:dashed}
.prow.dim .psel:last-of-type{opacity:.6}
.prow.instinct{border-style:dotted;color:var(--ink-faint);background:none}
.automenu .prow .psel{display:block;flex:1 1 auto;min-width:0;min-height:36px;padding:4px 8px;text-align:left;font-size:12.5px}
.prow .pnum{display:inline-flex;align-items:center;gap:2px}
.prow .pnum b{min-width:36px;text-align:center;font-size:12.5px}
.prow .parrow{color:var(--ink-faint)}
.ppick{display:grid;gap:4px;padding:6px;border-radius:10px;border:1px solid #5d5423;background:#100f0b;max-height:46vh;overflow-y:auto}
.ppick .pgroup{font-size:10.5px;color:var(--ink-faint);padding:4px 2px 0;text-transform:uppercase;letter-spacing:.04em}
.automenu .ppick button{grid-template-columns:1fr}
.automenu .ppick button.dim{opacity:.6}
.ppresets{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px}
.automenu .ppresets button{grid-template-columns:1fr}
.reds .redrow small{display:block;font-size:10.5px;color:var(--ink-faint)}
/* a phone: the picker a sheet from the bottom of the screen, over the field */
body.touch .ppick{position:fixed;left:8px;right:8px;bottom:8px;z-index:40;max-height:60vh;box-shadow:0 -6px 24px #000a}
.awayrow .awaydied{display:block;font-size:12px;color:#ffb39e;margin-top:2px}

/* stalls: one's own, and someone's being looked at */
.stallsheet{display:grid;gap:8px}
.stitle{display:grid;gap:4px;font-size:12px;color:var(--ink-dim)}
.stitle input{min-height:36px;border-radius:8px;border:1px solid var(--line);background:#0d110b;padding:0 10px;font-size:14px;user-select:text;-webkit-user-select:text}
.slist{display:grid;gap:5px}
.lot{display:flex;align-items:center;gap:6px;padding:5px 6px;border:1px solid #3a3a32;border-radius:8px;background:#15130fcc}
.lot.on{border-color:#7d7132;background:#2a2410cc}
.spick{display:flex;align-items:center;gap:8px;flex:1;min-width:0;text-align:left;min-height:34px}
.sico{width:30px;height:30px;display:grid;place-items:center;flex:none}
.sico img{width:100%;height:100%;object-fit:contain}
.sico .emo{font-size:20px}
.sname{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lot:not(.on) .sname{color:var(--ink-dim)}
.lot .ssug{margin-left:auto;color:var(--ink-faint);font-size:12px;white-space:nowrap}
.slist .lot.on .sname, .stallsheet .lot:not([data-uid]) .sname{color:var(--ink)}
.lot input{width:66px;min-height:32px;border-radius:7px;border:1px solid var(--line);background:#0d110b;padding:0 6px;font-size:13px;text-align:right;user-select:text;-webkit-user-select:text}
.lot input.sqty{width:54px}
.scoin{font-size:11px;color:var(--ink-faint)}
.sprice{font-size:12px;color:#f0d060;white-space:nowrap}
/* a sum typed as gold and silver (web/js/coins.js moneyFields, S09 §4.1) */
.moneyin{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.moneyin label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.moneyin .c-input{min-height:36px;width:5em;padding:0 6px}
.moneyin .ms{width:4.2em}
.moneysum{flex-basis:100%;font-size:11px;color:var(--ink-faint)}
/* the diamonds beside the purse (web/js/coins.js diaChip, S09 §4.2): cyan, a padlock at the day's cap */
.diachip{color:#6fe6f2;white-space:nowrap}.diachip small{opacity:.75}.diachip.shut{color:#8fb7bb}
.ingchip{color:#b79cff;white-space:nowrap}.ingchip small{opacity:.75}.ingchip.neg{color:#ff8a7a}
.sbuy{min-height:34px;padding:0 10px;border-radius:8px;border:1px solid #7d7132;background:linear-gradient(#5d5423,#3b3516);color:#fff;font-weight:700;font-size:12px;white-space:nowrap}
.sbuy.dear{opacity:.5}
.ssales{margin:0;padding-left:18px;font-size:12px;color:var(--ink-dim)}
@media (max-width:460px){ .lot{flex-wrap:wrap} .spick{flex-basis:100%} }
/* the stall's «Послуги» page (GD7 §6): lines that wrap, the forms of a new line, a repair's things to pick */
.stpages{margin:0}
.sname.svl{white-space:normal;line-height:1.3}
.sname.svl small{color:var(--ink-faint)}
.svadd{flex-wrap:wrap}
.svadd select{flex:1 1 120px;min-height:34px;border-radius:7px;border:1px solid var(--line);background:#0d110b;color:var(--ink);padding:0 6px;font-size:13px}
.svpicks{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%}
.stallsheet :is(.jno,.mno,.ldel){min-height:34px;min-width:34px;border-radius:8px;border:1px solid var(--line);background:#1a1d16;color:var(--ink-dim)}
.svcrafter{display:grid;gap:5px}
.svboard{display:grid;gap:10px}

/* the recipe book: what can be made, what in part, what not yet */
.crow{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:7px 8px;border:1px solid #3a3a32;border-radius:8px;background:#15130fcc}
.crow.ready{border-color:#5d5423}
.crow.none{opacity:.55}
.crow .cwhy{display:block;margin-top:2px;font-size:10.5px;color:#ff9a86}
.bneed.half{color:#f0c060}
.cmake{display:grid;gap:4px}
.cmake button{min-height:32px;padding:0 10px;border-radius:8px;border:1px solid #7d7132;background:#1a1d16;color:#fff;font-weight:700;font-size:12px;white-space:nowrap}
.cmake button.primary{background:linear-gradient(#5d5423,#3b3516)}
/* a recipe is one row even on a phone: its buttons stacked at the right */
@media (max-width:460px){ .crow{gap:8px;padding:6px 7px} .cmake button{padding:0 8px} }
body.touch .cmake button{min-height:44px}
/* a narrow screen: a recipe's buttons in one row under its name, not a column of two or three beside it */
@media (max-width:560px){ .crow{grid-template-columns:auto minmax(0,1fr)} .crow .cmake{grid-column:2;display:flex;flex-wrap:wrap;gap:6px} .crow .cmake button{flex:1 1 auto} }
.craftbook .chint{text-align:left;max-width:none}

.beltcell.shut{opacity:.32;background:repeating-linear-gradient(45deg,#0000 0 6px,#ffffff10 6px 12px)}

/* a tree's signature by the attack button: pips, or a bar for heat and faith */
.sigbar{display:flex;gap:3px;align-items:center;justify-content:flex-end;min-height:10px;font:700 11px/1 ui-monospace,monospace;color:var(--c,#e0b45a);text-shadow:0 1px 2px #000}
.sigbar i{width:8px;height:8px;border-radius:50%;background:#000a;border:1px solid var(--c,#e0b45a)}
.sigbar i.f{background:var(--c,#e0b45a);box-shadow:0 0 6px var(--c,#e0b45a)}
.sigbar .gauge{width:70px;height:6px;border-radius:3px;background:#000a;overflow:hidden}
.sigbar .gauge b{display:block;height:100%;background:var(--c,#e0b45a)}
.tstk{margin-left:6px;font-size:11px;color:var(--accent)}

/* opening a box: it shakes, bursts, and what was inside comes out one at a time */
.gacha{position:fixed;inset:0;z-index:var(--z-show);display:grid;place-items:center;background:#000b;backdrop-filter:blur(3px);padding:16px}
.gbox{font-size:86px;line-height:1.15;margin:6px 0;filter:drop-shadow(0 0 18px var(--gc));animation:gshake .6s ease-in-out 2,gburst .35s ease-in 1.2s forwards}
@keyframes gshake{0%,100%{transform:rotate(0)}20%{transform:rotate(-12deg) scale(1.05)}40%{transform:rotate(10deg)}60%{transform:rotate(-8deg) scale(1.1)}80%{transform:rotate(6deg)}}
@keyframes gburst{to{transform:scale(1.7);opacity:0;font-size:0;margin:0}}
.gitems{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:6px;margin:6px 0 12px}
.gitem{display:grid;justify-items:center;align-content:start;gap:2px;padding:8px 4px;opacity:0;transform:scale(.5);animation:gpop .35s cubic-bezier(.3,1.6,.6,1) var(--d) forwards}
@keyframes gpop{to{opacity:1;transform:none}}
.gacha.done .gbox:not(.gboxes){animation:none;display:none}
.gboxes{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;font-size:40px;animation:gshake .6s ease-in-out 2}
.gboxes span{position:relative;filter:drop-shadow(0 0 10px var(--ic))}
.gacha.done .gitem{animation:none;opacity:1;transform:none}
.gbtns{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}

.phint{margin:8px 0 2px;font-size:11px;color:var(--ink-faint);text-align:center}
/* the forge: the two kinds of parts with their counts a quality, the four qualities, a thing a row with its cost */
.forge{display:flex;flex-direction:column;gap:8px;padding-bottom:12px}
.fhead{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.fess{font:700 13px/1 ui-monospace,monospace;color:var(--c)}
.ftm{min-height:40px;padding:0 10px;border:1px solid var(--c);border-radius:8px;background:var(--panel-2);color:var(--c);font-size:12.5px;font-weight:700;cursor:pointer}
.ftiers{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.ftier{min-height:34px;padding:0 4px;border:1px solid #3a3226;border-radius:8px;background:var(--panel-2);color:var(--c);font-size:12px;font-weight:700;cursor:pointer}
.ftier.on{border-color:var(--c);box-shadow:0 0 0 1px var(--c) inset}
.frows{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:5px}
.frow{display:grid;grid-template-columns:30px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:6px;padding:6px 8px;border:1px solid #3a3226;border-radius:9px;background:var(--panel-2);color:var(--ink);text-align:left}
.frow .fico{grid-row:1/3;font-size:20px;text-align:center}
.frow b{font-size:12.5px;line-height:1.15}
.frow small{font-size:10.5px;color:var(--ink-faint)}
.frow.ok{border-color:#7d6a3a;cursor:pointer}
@media (hover:hover){.frow.ok:hover{border-color:var(--accent)}}
.frow.ok small{color:#e0c27a}
.frow[disabled]{opacity:.6;cursor:default}
.frow.locked{opacity:.4}

/* the auction: three pages; a lot a row */
.auc{display:flex;flex-direction:column;gap:6px;padding-bottom:12px}
.aucp{margin-bottom:2px}
.aucwhere{font-size:11.5px;color:var(--ink-faint);line-height:1.4}
.alot,.asell{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--line);border-radius:9px;background:var(--panel-2);color:var(--ink);text-align:left}
.asell{cursor:pointer;width:100%}
.asell.on,.alot.on{border-color:var(--accent)}
.aico{font-size:22px;text-align:center}
.atext{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:12.5px}
.atext small{font-size:10.5px;color:var(--ink-faint);line-height:1.35}
.atext small b.ok,.atext b.ok{color:#7fd18a}
.abtns{display:flex;flex-direction:column;gap:4px}
.abtns button{min-height:30px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:11.5px;font-weight:700;white-space:nowrap}
.abtns button.primary{border-color:#7d6a3a;color:#f0d060}
.abtns button[disabled]{opacity:.45}
.acard{grid-column:1/-1}
.sellcard{padding:8px 10px;border:1px solid var(--accent);border-radius:10px;background:#18140e;font-size:12.5px;line-height:1.45;color:var(--ink-dim)}
.sellcard p{margin:8px 0 4px}
/* the auction's buying page: chips of kinds, a lot a line, its price at the end; a tap opens it */
.aucchips{display:flex;flex-wrap:wrap;gap:5px;margin:2px 0 4px}
.aucchips .chip{min-height:30px;padding:0 10px;border-radius:15px;border:1px solid var(--line);background:var(--panel-2);color:var(--ink-dim);font-size:12px}
.aucchips .chip.on{border-color:var(--accent);color:var(--accent)}
.aprice{font:700 13px ui-monospace,monospace;color:#f0d060;white-space:nowrap}
.alot{cursor:pointer}
.alot .acard{grid-column:1/-1;font-size:12.5px;line-height:1.45;color:var(--ink-dim)}
.alot .acard p{margin:4px 0 6px}
.alot .acard .abtns{flex-direction:row}
.alot .acard .abtns button{flex:1;min-height:38px;font-size:12.5px}
.sellcard .wide small{display:block;font-size:11px}
/* rules behind «Як це працює»: one line up front, the rest for whoever asks */
details.how{margin:4px 0 10px;font-size:12.5px;color:var(--ink-dim)}
details.how summary{cursor:pointer;color:var(--ink-dim);padding:4px 0;list-style:none;text-decoration:underline dotted;text-underline-offset:3px}
details.how summary::-webkit-details-marker{display:none}
details.how p{margin:6px 0;line-height:1.5}
.sellcard .sellname{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:13px}

/* the telescope: a bar at the foot of the screen, the fight's buttons out of the way */
.scopebar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(14px + var(--safe-b, 0px));z-index:var(--zh-edge);
  display:flex;align-items:center;gap:12px;width:min(calc(100vw - 32px), 480px);padding:8px 8px 8px 14px;border-radius:12px;box-sizing:border-box;
  background:#0c1827e8;border:1px solid #9ad8ff;color:#dbeefc;pointer-events:auto}
.scopebar span{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.scopebar b{font-size:13px}
.scopebar small{font-size:11px;color:#9fb8cc}
.scopebar small i{font-style:normal}
.scopebar button{flex:none;min-height:40px;padding:0 14px;border-radius:9px;border:1px solid #9ad8ff;background:#16304a;color:#e8f6ff;font-weight:700}
body.scoping .dock,body.scoping .sigbar,body.scoping #btnAuto{visibility:hidden}
/* while looking, the bar at the foot is the only thing there: the feed and the chat's icon step aside */
body.touch.scoping .chatlog{visibility:hidden}


/* the book's peaceful acts, outside the sets: a tap uses one */
.bkpeace{margin:-2px 0 6px;font-size:12px}
/* the hero's numbers: a table of label and value, a thin line between — a box each would run to screens */
/* a name at most half the row (it wraps past that), its value the rest, wrapping too: neither drawn over the other */
.kv{display:grid;grid-template-columns:fit-content(50%) minmax(0,1fr);margin:0;border:1px solid var(--line);border-radius:9px;background:var(--panel-2);overflow:hidden}
.kv dt,.kv dd{margin:0;padding:7px 10px;border-top:1px solid #ffffff0d;font-size:12.5px}
.kv dt{color:var(--ink-dim)}
.kv dd{font-weight:700;font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.kv dt:first-of-type,.kv dt:first-of-type+dd{border-top:0}
.herohead small{display:inline-block}
.sect small{margin-left:6px;font-weight:400;color:var(--ink-faint)}
.seal{display:inline-flex;align-items:center;padding:2px 9px;border:2px solid #17110a;border-radius:10px;box-shadow:2px 2px 0 #17110a;
  font:800 12px/18px "Segoe UI",Roboto,system-ui,sans-serif;color:#17110a;transform:rotate(-1.5deg)}
.seal.s-m{background:#f0c050}
.seal.s-gm{background:#c58cff;transform:rotate(1.5deg)}
/* the start on the title: templates and the points into stats and skills */
.tpls{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:4px 0 8px}
.tpls .tpl{min-height:40px;padding:0 12px;font-size:13px;border-radius:20px;border:1px solid var(--line);background:#14161a;color:var(--ink)}
.tpls .tpl.on{border-color:var(--accent);color:var(--accent);background:#221c10}
.rows.starts{text-align:left}
/* the start's steps: the heading a line, the story aside; one scroll — the page's — and the step's foot
   (the free points, its button, the way back) stuck to the bottom, on the title and in the party sheet alike */
.title.stepping .title-inner>h1{font-size:clamp(30px,9vw,48px)}
.title.stepping .lore,body.touch .title.stepping .lore:not(.open){display:none}
.startfoot{position:sticky;bottom:0;z-index:2;display:grid;gap:4px;justify-items:center;width:100%;margin-top:6px;
  padding:12px 0 calc(4px + var(--safe-b));background:linear-gradient(#0a0b0d00,#0a0b0de8 24%,#0a0b0d)}
.startfoot .big{width:100%}
.startfoot .lookhint{margin:0}
.newhero .startfoot{background:linear-gradient(#100e0b00,#100e0be8 24%,#100e0b)}
.rows.starts .pm{display:flex;align-items:center;gap:8px}
.rows.starts .pm b{min-width:22px;text-align:center}
.rows.starts .pm button{min-width:38px;min-height:38px;font-size:18px;padding:0}

/* the craft queue (B003): its progress and stop atop the book; a recipe's craft and its value */
.craftbook .cqueue{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;margin:0 0 8px;border-radius:8px;background:#1f2a1c;border:1px solid #4a6a3a}
.craftbook .cqueue button{min-height:36px}
.craftbook .cskill{color:#c8b88a}


/* the band leader's sign on its target beast (☠ ✖ ◆): beside «ℹ», lit when it bears one */
.target .ti.tsign{grid-column:4;border-color:#3f7f9a;background:#0d1c24;color:#cfefff;font:800 14px/26px system-ui,sans-serif}
.target .ti.tsign:not(.on){opacity:.55}
.target .ti.tsign:disabled{cursor:default}
/* ♥ on another player's hero (L17): beside ⓘ where a beast's sign stands, filled once liked today */
.target .ti.tlike{grid-column:4;color:#e2412f}
.target .ti.tlike.on{background:#e2412f;color:#fff}
/* a player's profile (L17, profui.js): its name and title, the facts, the gear shown, the likes */
.prof .phead b{display:block;font-size:17px}
.prof .phead small{display:block;opacity:.75}
.prof .pfacts{list-style:none;margin:8px 0;padding:0;display:grid;gap:3px}
.prof .pfacts b{display:inline-block;min-width:6.5em;opacity:.7;font-weight:600}
.prof .pgears{list-style:none;margin:4px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:4px}
.prof .pgear{display:flex;align-items:center;gap:6px;min-width:0}
.prof .pgear i{flex:none;width:32px;height:32px;display:grid;place-items:center}
.prof .pgear span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prof .plikes b{font-size:18px;color:#e2412f;margin-right:6px}
.prof .plike{min-height:44px;margin:4px 0}
.prof .plike.on{background:#e2412f;color:#fff}

/* the band (bandui.js; S04: up to five): a frame for each other member under the Загін's — on a phone too */
.bandbar{display:flex;flex-direction:column;gap:4px;max-width:min(92vw,300px)}
.bframe{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:4px;width:min(62vw,220px);min-height:0;padding:3px 4px;
  border-radius:9px;background:#0b0d0acc;border:1px solid #2f5b6c;text-align:left;color:var(--ink)}
.bframe.dead{border-color:#6a2a20}
.bframe.away{opacity:.72}
/* the ready check's answers: green who is ready, red who is not */
.bframe.rdy-yes{border-color:#5fae6a;box-shadow:0 0 0 1px #5fae6a66}
.bframe.rdy-no{border-color:#c0503a;box-shadow:0 0 0 1px #c0503a66}
.brole{font-size:15px;line-height:1;text-align:center}
.binfo{display:grid;gap:2px;min-width:0}
.binfo b{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#bfeaff}
.binfo b small{color:var(--ink-faint);font-weight:400}
.bsta{display:block;height:3px;border-radius:2px;background:#000;overflow:hidden}
.bsta em{display:block;height:100%;background:linear-gradient(var(--sta-2),var(--sta))}
.bdir{font-size:13px;color:#6ad1ff;line-height:1;display:inline-block}
body.touch .bandbar{gap:3px}
body.touch .bframe{width:min(44vw,180px);padding:2px 4px;grid-template-columns:20px minmax(0,1fr) 16px}
body.touch .bframe .psay{display:none}
/* an AI mate (S04): stamped «ШІ» with its guild; a band of five on a phone: rows of role · name · life */
.bframe.ai{border-style:dashed}
.bframe .bai{font-size:9.5px;font-weight:800;color:#ffd77a;letter-spacing:.02em}
body.touch .bandbar.many .bframe .bsta{display:none}
body.touch .bandbar.many .bframe{padding:1px 4px}

/* an invitation to a band, the leader's «Готові?»: a card at the top with ✓ and ✗ */
.bandcall{position:fixed;left:50%;top:calc(64px + var(--safe-t));transform:translateX(-50%);z-index:var(--zc-bar);display:flex;flex-wrap:wrap;gap:8px;
  align-items:center;justify-content:center;max-width:min(92vw,460px);padding:8px 12px;border-radius:12px;background:#0b1418f2;
  border:1px solid #3f7f9a;box-shadow:0 6px 24px #0008;font-size:13px}
.bandcall button{min-height:36px;padding:0 14px;border-radius:9px}
body.touch .bandcall button{min-height:44px}
/* the band's sheet: one's own role lit, the invitation's field and its button on one row */
.bandsheet .prow button.on{border-color:#3f7f9a;color:#bfeaff}
.bandsheet .cmake{display:flex;gap:6px;flex-wrap:wrap}
.bandsheet .cmake input{flex:1;min-width:120px}
/* the mail: a letter a row, the unread lit; the letter's text kept as written; the form's fields on rows */
.postsheet .pletter{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}
@media (hover:hover){.postsheet .pletter:hover{border-color:#7d7132}}
.postsheet .pletter b{font-weight:500}
.postsheet .pletter.unread{border-color:#3f7f9a}
.postsheet .pletter.unread b{font-weight:800;color:#bfeaff}
.postsheet .phead{display:flex;gap:6px;align-items:stretch;flex-wrap:wrap}
.postsheet .phead .wide{flex:1 1 60%}
.postsheet .phead .readall{margin-top:8px;min-height:42px}
body.touch .postsheet .phead .readall{min-height:44px}
.postsheet .pletter .ptext{flex:1;min-width:0}
.postsheet .ptextbody{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;line-height:1.45}
.postsheet .cmake{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.postsheet .cmake input,.postsheet .cmake select{flex:1;min-width:120px;min-height:34px;box-sizing:border-box;padding:6px 8px;border-radius:8px;
  border:1px solid #3a3a32;background:#0f0d0a;color:inherit;font:inherit}
.postsheet .cmake input::placeholder,.postsheet textarea::placeholder{color:var(--ink-faint)}
.postsheet textarea{width:100%;box-sizing:border-box;margin-top:6px;resize:vertical;font:inherit;padding:6px 8px;border-radius:8px;
  border:1px solid #3a3a32;background:#0f0d0a;color:inherit}
/* the arena: its card under the band's (a wait with its clock, or the bout and the score with «Покинути арену») */
.arenabar{top:calc(112px + var(--safe-t));border-color:#9a6a3f;background:#18110bf2}
.arenabar button{background:linear-gradient(#3b2a18,#24180d);border:1px solid #9a6a3f;color:#f3d6b0;font-weight:700;padding:0 14px}
/* a guild war's bout (warboard.js): the scoreboard at the top — the two guilds' points with the three banners between
   them, kills and the clock under; the summary a card in the middle when it is over */
.warboard{position:fixed;left:50%;top:calc(64px + var(--safe-t));transform:translateX(-50%);z-index:var(--zc-bar);display:flex;flex-direction:column;
  gap:4px;align-items:stretch;width:min(92vw,440px);box-sizing:border-box;padding:8px 12px;border-radius:12px;background:#120d10f2;
  border:1px solid #9a3f4f;box-shadow:0 6px 24px #0008;font-size:13px}
.warboard .wbrow{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.warboard .wbrow.small{font-size:12px;color:var(--ink-faint);gap:8px}
.warboard .wbtag.mine{color:#9fe0ff}
.warboard .wbtag.foe{color:#ff9f9f}
.warboard .wbpts{font-size:22px;font-weight:800;min-width:2ch;text-align:center;font-variant-numeric:tabular-nums}
.warboard .wbflags{display:flex;gap:6px}
.warboard .wpip{position:relative;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;font-style:normal;font-size:15px;
  border:2px solid #5a5a5a;background:#1e1e1e;color:#bdbdbd}
.warboard .wpip.mine{border-color:#3fb0e0;background:#0f2a38;color:#bfeaff}
.warboard .wpip.foe{border-color:#e04f5f;background:#38101a;color:#ffc4c4}
.warboard .wpip::after{content:'';position:absolute;left:3px;bottom:-6px;height:3px;width:calc((100% - 6px) * var(--lean) / 100);border-radius:2px;background:#888}
.warboard .wpip[data-lean="m"]::after{background:#3fb0e0}
.warboard .wpip[data-lean="f"]::after{background:#e04f5f}
.warboard .wbdown{color:#ffcf7a;font-weight:700}
.warboard button{min-height:30px;padding:0 12px;border-radius:9px;background:linear-gradient(#3b1820,#240d12);border:1px solid #9a3f4f;color:#f3c0c8;font-weight:700}
body.touch .warboard button{min-height:44px}
.warsum{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:var(--zc-bar);width:min(92vw,480px);max-height:80vh;overflow-y:auto;
  box-sizing:border-box;padding:14px 16px;border-radius:14px;background:#120d10f7;border:1px solid #9a3f4f;box-shadow:0 10px 40px #000a}
.warsum h3{margin:0 0 4px;font-size:18px}
.warsum .wsc{margin:0 0 6px;font-size:15px;font-weight:700}
.warsum .wsum{width:100%;border-collapse:collapse;font-size:13px}
.warsum .wsum th,.warsum .wsum td{padding:3px 4px;text-align:right}
.warsum .wsum th:first-child,.warsum .wsum td:first-child{text-align:left}
.warsum .wshare{display:inline-block;min-width:48px;padding:0 4px;border-radius:4px;background:linear-gradient(90deg,#3fb0e055 var(--w),transparent var(--w))}
.warsum .c-btn{width:100%;margin-top:10px;min-height:40px}
body.touch .warsum .c-btn{min-height:44px}
body.touch.screened .warboard{top:calc(8px + var(--safe-t))}

/* the admin's sheet (admin.js, F038): a list of models beside a view of its own, its controls under it */
.adm .wtabs{margin-bottom:8px}
.admgrid{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:10px;min-height:0}
.admside{display:flex;flex-direction:column;gap:6px;min-height:0}
.admq{width:100%;padding:6px 8px;border-radius:8px;border:1px solid var(--line);background:#0b0d0a;color:var(--ink)}
.admlist{max-height:52vh;overflow-y:auto;font-size:12px}
.admlist summary{cursor:pointer;padding:3px 0;color:var(--ink-dim)}
.admitem{display:block;width:100%;text-align:left;padding:3px 6px;border-radius:6px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){.admitem:hover:not(.on):not(.sel){background:#ffffff14}}
.admitem.on{background:#f0d06033;color:#f0d060}
.admitem i{font-style:normal;color:#f0d060}
.admmain{display:flex;flex-direction:column;gap:8px;min-width:0}
.admview{width:100%;height:280px;border-radius:10px;border:1px solid var(--line);touch-action:none}
.admview.big{height:min(52vh,420px)}
.adminfo{font-size:12.5px}
.admclips{display:flex;flex-wrap:wrap;gap:4px;font-size:11px}
.admclips button,.admctl>button,.admrow button{padding:4px 10px;border-radius:8px;border:1px solid var(--line);background:#14161a}
.admctl{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px}
.admctl>.primary{border-color:#7d7132;color:#f0d060}
.admout{max-height:30vh;overflow:auto;font-size:11px;background:#0b0d0a;padding:8px;border-radius:8px}
.admtoys{display:flex;flex-direction:column;gap:10px}
.admmap{width:min(100%,520px);aspect-ratio:1;border-radius:10px;border:1px solid var(--line);cursor:crosshair}
.admrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px}
.admrow input[type=number]{width:90px;padding:4px 6px;border-radius:6px;border:1px solid var(--line);background:#0b0d0a;color:var(--ink)}
.admrow select{padding:4px 6px;border-radius:6px;background:#0b0d0a;color:var(--ink);border:1px solid var(--line)}
/* F108: the tools — the catalogue's tiles, the instant buildings, the ratios, Інше's own row of tabs */
.adm .wtabs.admsub{margin-top:-2px}
.adm .wtabs.admsub button{min-height:30px;padding:0 10px;font-size:11.5px}
.admcathead{font-size:12.5px}
.admtiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px;max-height:min(52vh,460px);overflow-y:auto;align-content:start}
.admtile{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px;border-radius:8px;border:1px solid var(--line);background:#12140f;font-size:10.5px;min-width:0}
@media (hover:hover){.admtile:hover{border-color:#7d7132}}
.admtile.on{border-color:#f0d060;background:#f0d06022}
.admtile.bad{opacity:.5}
.admtile img{width:100%;aspect-ratio:1;object-fit:contain;background:radial-gradient(#2a3040,#161a22);border-radius:6px}
.admtile img:not([src]){visibility:hidden}
.admtile span{width:100%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admtile i{position:absolute;top:6px;right:6px;font-style:normal;font-size:10px;color:#f0d060;background:#000a;padding:0 4px;border-radius:4px}
.admpick code,.admpane code{font-size:11px;color:#d8ccb0}
.admbuild{display:flex;flex-direction:column;gap:8px}
.admbl{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px}
.admbrow{display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:8px;border:1px solid var(--line);background:#12140f;font-size:12.5px}
.admbrow .admbname{flex:1;min-width:0;text-align:left;cursor:pointer}
.admbrow button,.admbmine button,.admpane button{padding:4px 10px;border-radius:8px;border:1px solid var(--line);background:#14161a;min-height:32px}
.admbmine{margin:0;padding-left:18px;font-size:12.5px;display:grid;gap:4px}
.admpane{display:flex;flex-direction:column;gap:8px}
.admpane .admtab{width:100%;border-collapse:collapse;font-size:13px}
.admpane .admtab td,.admpane .admtab th{padding:4px 6px;border-bottom:1px solid var(--line);text-align:left}
.placebar .psize{display:flex;gap:4px}
body.touch .placebar .psize{flex:1 0 100%}
body.touch .placebar .psize button{flex:1}
@media (max-width:700px){.admgrid{grid-template-columns:1fr}.admlist{max-height:24vh}.admtiles{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));max-height:40vh}}


/* the screen's edges (B039): the steam along the top, the experience along the bottom; the vitals keep the level and
   the satiety — life shows over the hero in the world */
.vitals .bar-hp,.vitals .bar-sta,.vitals .bar-xp{display:none}
/* inside the HUD's box (B092): beside a desktop's rail, above a phone's tab bar, not behind either */
.edgebar{position:absolute;left:var(--rail-w);right:0;height:5px;z-index:var(--zh-edge);pointer-events:none;background:#0009}
.edgebar i{display:block;height:100%;width:0;transition:width .25s}
.edge-top{top:var(--safe-t);transition:opacity .4s}
/* at rest (the steam full, the counter empty) a strip is not drawn: it shows only while it says something */
.edge-top.rest{opacity:0}
.edge-sig{top:calc(var(--safe-t) + 5px);background:#0008;transition:top .3s}
.edge-top.rest~.edge-sig{top:var(--safe-t)}
.edge-sig i{background:var(--c,#e0b45a);box-shadow:0 0 6px var(--c,#e0b45a)}
.edge-top i{background:linear-gradient(90deg,var(--sta-2),var(--sta));box-shadow:0 0 6px #4fe0ee88}
.edge-bottom{bottom:var(--safe-b)}
.edge-bottom i{background:linear-gradient(90deg,var(--xp-2),var(--xp))}
/* a screen's life running low: its header's bar pulses red */
@keyframes sidelow{50%{background:#b81414cc;box-shadow:0 0 24px #ff2a1a}}

/* steam too short for a spell: its edge flashes */
.edgebar.dry{animation:edgedry .5s ease-out}
@keyframes edgedry{30%{background:#e05a3acc;height:7px}}

/* F085: in a fight the screen is framed by the hero's own bars — life up the side edges (one value, from the foot),
   steam along the top from the middle out. Inside the HUD's box (beside the rail and an open panel, over a phone's tab
   bar), never taking a tap. The values are eased in fightframe.js; the frame slides in fast and leaves slower. */
.hud>.fframe{position:absolute;inset:0;pointer-events:none;--ff-w:10px;--ff-l:calc(var(--rail-w) + var(--safe-l))}
body.touch .hud>.fframe{--ff-w:8px}
.fframe>div{position:absolute;background:#000a;opacity:0;transition:transform .45s ease-in,opacity .45s ease-in}
.fframe.on>div{opacity:1;transform:none;transition:transform .25s ease-out,opacity .25s ease-out}
.fframe i{position:absolute;inset:0}
.ff-side{top:calc(var(--safe-t) + var(--ff-w));bottom:calc(var(--safe-b) + 5px);width:var(--ff-w);box-shadow:0 0 8px #000c}
.ff-l{left:var(--ff-l);transform:translateX(-150%)}
.ff-r{right:var(--safe-r);transform:translateX(150%)}
.ff-side i{transform-origin:50% 100%}
.ff-side .ff-fill{transform:scaleY(var(--ff-hp,1));background:linear-gradient(0deg,#c22a1f,#ff5d48);box-shadow:0 0 6px #ff3a2a88}
.ff-side .ff-trail{transform:scaleY(var(--ff-trail,1));background:#7c1d14}
/* the life still coming (B091): a pale green piece from the red up to where the heal will bring it, breathing */
.ff-side .ff-heal{transform:scaleY(var(--ff-heal,0));background:linear-gradient(0deg,#6fe05a,#d8ffc4);box-shadow:0 0 6px #8ef07a88;animation:ffheal 1.4s ease-in-out infinite}
@keyframes ffheal{50%{opacity:.7}}
.ff-top{top:var(--safe-t);left:var(--ff-l);right:var(--safe-r);height:var(--ff-w);transform:translateY(-150%)}
.ff-top .ff-fill{transform:scaleX(var(--ff-sta,1));background:linear-gradient(90deg,#3a7fe6,#6fc4ff 50%,#3a7fe6);box-shadow:0 0 6px #4fa8ff88}
.fframe.low .ff-side .ff-fill{animation:fflow .9s ease-in-out infinite}
@keyframes fflow{50%{filter:brightness(1.7);box-shadow:0 0 14px #ff2a1a}}
@media (prefers-reduced-motion:reduce){.fframe.low .ff-side .ff-fill,.ff-side .ff-heal{animation:none}.fframe>div{transition:opacity .25s}}
.ff-top.dry{animation:edgedry .5s ease-out}
/* the frame's top is the steam while it shows: the edge's own strip steps aside, the branch's counter under the frame */
.hud.framed>.edge-top{opacity:0}
.hud.framed>.edge-sig{top:calc(var(--safe-t) + 6px)}


/* the book's sets (F042): the tabs, the set's buttons, a skill's ▶ */
.setstabs{margin-bottom:6px}
.setbtns{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.setbtns button{padding:5px 10px;border-radius:8px;border:1px solid var(--line);background:#14161a;font-size:12px}
.setbtns button.primary{border-color:#7d7132;color:#f0d060}
/* F120: an ability that cannot go now (asleep, locked, its thing not in hand) dimmed; a tap says why */
.bk:is(.s-asleep,.s-locked,.s-hand){opacity:.6}

/* the first-run question (F040): before any sound */
.askaudio{position:fixed;inset:0;z-index:var(--z-modal);display:flex;align-items:center;justify-content:center;background:#0008;padding:16px}
/* the install (F097, pwa.js): the gentle card once after the isle, over the field's bottom, not in the way; the iOS steps */
.pwanudge{position:fixed;left:50%;bottom:calc(96px + var(--safe-b));transform:translateX(-50%);z-index:var(--z-call);width:min(360px,calc(100vw - 24px))}
.audioset{display:flex;flex-direction:column;gap:8px}
.audioset .arow{display:flex;align-items:center;gap:8px;font-size:14px}
.audioset input[type=range]{flex:1}
.adminv .admtab{width:100%;border-collapse:collapse;font-size:13px}
.adminv .admtab td,.adminv .admtab th{padding:4px 6px;border-bottom:1px solid var(--line);text-align:left}
/* friends (B047) */
.friends{display:flex;flex-direction:column;gap:8px}
.frlink{display:flex;gap:6px}
.frlink input{flex:1;min-width:0;font-size:13px}
.frrow{display:flex;align-items:center;gap:8px;padding:4px 0;border-bottom:1px solid var(--line)}
.frrow button{margin-left:auto}
.frrow .dot{width:8px;height:8px;border-radius:50%;background:#555}
.frrow{flex-wrap:wrap}.frrow .frtithe{font-size:12px;color:#b79cff}
.frrow .dot.on{background:#6c6}
.frrow .frat{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.frwhere{display:flex;flex-direction:column;gap:6px}
.frpick{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
.frpick button{display:flex;flex-direction:column;align-items:center;gap:4px;flex:0 0 auto;width:96px;padding:5px}
.frpick button.on{border-color:var(--accent);color:var(--accent)}
.frpick button b{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.frpick .mkimg{width:84px}
.frpick .frcap{display:flex;align-items:center;justify-content:center;width:84px;aspect-ratio:192 / 120;font-size:26px}
/* the base (F044): a row of the build sheet the base's rank does not open yet, the base sheet, the party's locked place */
.brow.locked{opacity:.62}
.brow .block{color:#e0b060;font-size:12px;margin-top:4px}
.basesheet .bhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:15px}
.basesheet .brank{padding:2px 8px;border-radius:8px;background:#2a2410;color:#f0d060;font-weight:700;font-size:12px}
.basesheet .bhead input{flex:1;min-width:120px;min-height:34px}
.basesheet .bhead button{min-height:34px;min-width:34px;border-radius:8px}
.basesheet .bnext{margin:8px 0;font-size:13px}
.basesheet .bnext .ok{color:#9ad870}
.basesheet .bnext .no{color:#e08a6a}
.basesheet .prow{display:flex;align-items:center;gap:8px;margin-top:6px;padding:6px 8px;border:1px solid #3a3a32;border-radius:9px;background:#15130fcc}
.basesheet .ptext{flex:1;display:grid;min-width:0}
.basesheet .ptext small{color:var(--ink-faint);font-size:11px}
.basesheet select{min-height:36px;max-width:55%;border-radius:9px;background:#15130f;color:var(--ink);border:1px solid var(--line);padding:0 8px}
/* its buildings by their painted pictures (F116): a station's beside its row, what stands a tile each, its name under it */
.basesheet .bspic{flex:none;width:48px;height:48px;display:grid;place-items:center}
.basesheet .bspic .bic{width:100%;height:100%}
.basesheet .bspic .emo{font-size:28px}
.basesheet .bkinds{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px 6px;margin:4px 0 8px}
.basesheet .bkind{display:grid;justify-items:center;align-content:start;gap:3px;text-align:center}
.basesheet .bkind .bic{width:64px;height:64px}
.basesheet .bkind .emo{font-size:34px;line-height:64px}
.basesheet .bkind small{font-size:12px;line-height:1.2;color:var(--ink-dim);overflow-wrap:anywhere}
/* the settlement and the management mode (S06, F125: settleui.js): a row a tap, its card beneath */
.basesheet .settle .prow,.basesheet .manage .prow{flex-wrap:wrap}
.basesheet .settle .prow button,.basesheet .mcard button{min-height:36px;border-radius:9px}
/* a resident's job, swap and корчма on a line of their own under its name: the select never shares the text's line,
   so at 402 and in a narrow panel it cannot lie over it (B146) */
.basesheet .settle .prow .pacts{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.basesheet .settle .pacts select{flex:1 1 160px;min-width:0;max-width:100%}
.basesheet .settle .pacts button{flex:0 1 auto;min-width:0;white-space:normal}
.basesheet .mrow{width:100%;text-align:left;color:inherit;font:inherit;cursor:pointer}
.basesheet .mrow.on{border-color:#f0d060}
.basesheet .mcard{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0 0 56px}
.basesheet .mcard .bnote,.basesheet .mcard .hurrysheet{flex-basis:100%}
.basesheet .sbar{font-size:11px;letter-spacing:-1px;color:#d8b84a}
.basesheet .manage>.wide,.basesheet .settle>.wide{margin-top:10px}
body.touch .basesheet .bkind .bic{width:72px;height:72px}
.bnext .bstep{margin-right:6px}
.pframe.locked{display:block;width:auto;min-height:34px;padding:0 12px;color:var(--ink-faint);font-size:12px;font-weight:700;border-style:dashed}
.partysheet .prow.locked{opacity:.7;border-style:dashed}
/* the age question and its note (F045): over everything, the title too */
.agecard{position:fixed;inset:0;z-index:var(--z-call);display:grid;place-items:center;background:#05060499;padding:16px}
/* the waiting card (F045 v2.2): a hero on a bench by an hourglass whose sand runs, turned over and again */
.waitbox{gap:8px}
.waiter{position:relative;height:150px;margin:0 auto;width:200px}
.waiter .lookart{position:absolute;left:38px;bottom:16px;width:96px;height:124px;background:center/contain no-repeat;animation:waitbob 2.6s ease-in-out infinite}
.waiter .bench{position:absolute;left:18px;right:46px;bottom:8px;height:14px;border-radius:4px;background:linear-gradient(#7a5530,#4a3218);box-shadow:0 6px 0 -2px #2a1c0e}
.waiter .glass{position:absolute;right:12px;bottom:10px;width:30px;height:46px;animation:waitflip 6s ease-in-out infinite;
  background:linear-gradient(135deg,transparent 46%,#e0b45a55 47%,#e0b45a55 53%,transparent 54%),linear-gradient(225deg,transparent 46%,#e0b45a55 47%,#e0b45a55 53%,transparent 54%);
  border-top:3px solid #8a6a1e;border-bottom:3px solid #8a6a1e}
.waiter .glass i{position:absolute;left:7px;right:7px;background:#e0b45a;border-radius:2px}
.waiter .glass i:first-child{top:4px;height:12px;animation:sandtop 6s linear infinite}
.waiter .glass i:last-child{bottom:4px;height:2px;animation:sandbot 6s linear infinite}
@keyframes waitbob{50%{transform:translateY(-3px) rotate(-1.5deg)}}
@keyframes waitflip{0%,88%{transform:rotate(0)}100%{transform:rotate(180deg)}}
@keyframes sandtop{0%{height:14px}85%,100%{height:0}}
@keyframes sandbot{0%{height:1px}85%,100%{height:14px}}
.wform{display:grid;gap:6px}

/* ---------------- screens (F055, F062, screens.js) ----------------
   Світ is the field; a screen is over it — on a phone the whole page over the field, the tab bar of four at the foot
   always (the field, its canvases and HUD, end above it), on a desktop a panel on the right with the rail of the four
   at the left and the field alive between them (the canvases and the HUD narrow to it, the hero kept in its middle).
   The call layer is over everything a choice can hide under. */
:root{--rail-w:0px;--scr-w:0px;--pan-w:0px;--tab-h:58px;--beltq-w:0px;--bq-n:0}
/* F063: one panel for every screen and page — 40% of the window, never under 560 px, never so wide that less than a
   strip of the field (240 px) is left beside the rail; a tab switched never moves its edge. --pan-w is the panel's own,
   kept while it slides out; --scr-w is what the field gives up, and only while a screen is open. */
body.ingame:not(.touch){--rail-w:68px;--pan-w:min(max(560px,40vw),calc(100vw - var(--rail-w) - 240px))}
body.ingame.screened:not(.touch){--scr-w:var(--pan-w)}
/* the map: the whole window beside the rail, the field's HUD and the dock out of sight under it */
body.ingame.screened.scr-full:not(.touch){--scr-w:calc(100vw - var(--rail-w))}
body.ingame.screened.scr-full:not(.touch) .hud,body.ingame.screened.scr-full:not(.touch) .chatdock{visibility:hidden}
body.ingame:not(.touch) canvas#stage,body.ingame:not(.touch) canvas#overlay{width:calc(100vw - var(--scr-w))}
body.ingame:not(.touch) .hud{right:var(--scr-w)}
body.touch.ingame canvas#stage,body.touch.ingame canvas#overlay{height:calc(100% - var(--tab-h) - var(--safe-b))}
body.touch.ingame .hud{bottom:var(--tab-h)}
/* the HUD's own fixed parts, the window's and not the HUD's, lifted by the tab bar too */
body.touch.ingame .scopebar{bottom:calc(14px + var(--safe-b) + var(--tab-h))}
body.ingame:not(.touch) .hud-tl{left:calc(10px + var(--rail-w) + var(--safe-l))}
/* the feed beside the rail */
body.ingame:not(.touch) .chatlog{left:calc(12px + var(--rail-w) + var(--safe-l))}
body.ingame:not(.touch) .nettag{left:calc(12px + var(--rail-w) + var(--safe-l))}
body.ingame:not(.touch) .chatdock{left:calc(8px + var(--rail-w) + var(--safe-l));max-width:calc(100vw - var(--rail-w) - var(--scr-w) - 16px)}

.rail{display:none;position:fixed;left:0;top:0;bottom:0;width:var(--rail-w);z-index:var(--z-rail);flex-direction:column;align-items:center;gap:6px;
  padding:calc(10px + var(--safe-t)) 0 calc(10px + var(--safe-b));background:#0d0c0ae8;border-right:1px solid var(--line)}
body.ingame:not(.touch) .rail{display:flex}
.ritem{position:relative;width:62px;min-height:50px;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  border:1px solid transparent;color:var(--ink-faint)}
.ritem b{font-size:19px;line-height:1;filter:grayscale(.5)}
.ritem span{font-size:9px;line-height:1.1;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){.ritem:hover{border-color:var(--line);color:var(--ink)}}
@media (hover:hover){.ritem:hover b{filter:none}}
.ritem.on{border-color:var(--accent);background:#1d1810;color:var(--accent)}
.ritem.on b{filter:none}
.ritem em,.titem em,.seg em{position:absolute;top:3px;right:5px;width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px #0d0c0a}

.screen{position:fixed;z-index:var(--z-sheet);display:flex;flex-direction:column;background:linear-gradient(#17130f,#100e0b);color:var(--ink)}
body.touch .screen{inset:0;bottom:calc(var(--tab-h) + var(--safe-b))}
body:not(.touch) .screen{top:0;bottom:0;right:0;width:var(--pan-w);border-left:1px solid #6a5430;box-shadow:-12px 0 40px #0008}
body:not(.touch) .screen[data-size="full"]{width:calc(100vw - var(--rail-w))}
/* a tablet (layout.js, IOS3; docs/comic-ui.md «Tablets»): the phone's tab bar and on-field controls, a screen the
   desktop's panel on the right above the tab bar, the field alive and narrowed beside it; the map still the whole page */
body.touch.tablet.ingame{--pan-w:min(max(440px,44vw),calc(100vw - 320px))}
body.touch.tablet.ingame.screened:not(.scr-full){--scr-w:var(--pan-w)}
body.touch.tablet.ingame canvas#stage,body.touch.tablet.ingame canvas#overlay{width:calc(100vw - var(--scr-w))}
body.touch.tablet.ingame .hud{right:var(--scr-w)}
body.touch.tablet .screen:not([data-size="full"]){left:auto;right:0;width:var(--pan-w);border-left:1px solid #6a5430;box-shadow:-12px 0 40px #0008}
body.touch.tablet .screen.sin:not([data-size="full"]){animation-name:panIn}
body.touch.tablet .screen.sout:not([data-size="full"]){animation-name:panOut}
/* what pops over the field or a bag — the chosen one's and the pointer's cards, the ring's icons, a thing's card —
   comes in with a short fade and scale (the individual `scale`, so a card's own transform stays its own) */
.cards>.target{animation:popIn .14s ease-out}
.ring.rpop .ract{animation:popIn .14s ease-out}
.itemcard .card.pop{animation:popIn .14s ease-out;transform-origin:50% 100%}
@keyframes popIn{from{opacity:0;scale:.92}to{opacity:1;scale:1}}
@media (prefers-reduced-motion:reduce){.cards>.target,.ring.rpop .ract,.itemcard .card.pop{animation:none}}
/* the frame comes and goes (screens.js frameIn, frameOut): a desktop's panel slides in from the right and fades, a
   phone's screen rises; going, the reverse, quicker, then hidden. Only transform and opacity move (the individual
   `translate`, so nothing of the frame's own transform is overridden); a move between screens or sub-tabs leaves the
   frame still and fades the body's new content in. */
body:not(.touch) .screen.sin{animation:panIn .2s cubic-bezier(.2,.7,.3,1) both}
body:not(.touch) .screen.sout{animation:panOut .15s ease-in both}
body.touch .screen.sin{animation:riseIn .2s cubic-bezier(.2,.7,.3,1) both}
body.touch .screen.sout{animation:riseOut .15s ease-in both}
.screen.sout{pointer-events:none}
@keyframes panIn{from{opacity:0;translate:48px 0}to{opacity:1;translate:0 0}}
@keyframes panOut{from{opacity:1;translate:0 0}to{opacity:0;translate:48px 0}}
@keyframes riseIn{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
@keyframes riseOut{from{opacity:1;translate:0 0}to{opacity:0;translate:0 24px}}
.sbody.sswap{animation:swapIn .12s ease-out}
@keyframes swapIn{from{opacity:.25}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.screen.sin,.screen.sout,.sbody.sswap{animation:none}}
.shead{flex:none;padding:calc(8px + var(--safe-t)) calc(12px + var(--safe-r)) 8px calc(12px + var(--safe-l));display:grid;gap:7px;
  border-bottom:1px solid var(--line);background:linear-gradient(#1b1712,#151310)}
body:not(.touch) .shead{padding-left:12px}
.srow{display:flex;align-items:center;gap:9px;min-width:0}
/* one line; a long one is fitted (screens.js, fitline.js): smaller, then on two lines */
.srow h2{margin:0;flex:1;min-width:0;font-size:16px;letter-spacing:.04em;color:var(--accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:keep-all;hyphens:none}
.sback,.sgear{width:40px;height:40px;flex:none;border-radius:10px;border:1px solid var(--line);font-size:17px;color:var(--ink-dim)}
@media (hover:hover){.sback:hover,.sgear:hover{border-color:var(--accent);color:var(--ink)}}
/* the chat's 💬 in the head only where the screen covers the field and the field's own 💬 (chatdoor.js, B141): a phone,
   a split, the map; beside a desktop's or a tablet's panel the field's is in sight */
.srow .schat{display:none}
body.touch:not(.tablet) .srow .schat,body.scr-full .srow .schat{display:grid;place-items:center}
.spill{flex:none;display:flex;align-items:center;gap:5px;max-width:38%;font:600 11px/1.2 system-ui,sans-serif;color:#cfe9d4;
  border:1px solid #6fd38a66;border-radius:999px;padding:3px 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spill::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:#6fd38a;box-shadow:0 0 6px #6fd38a}
/* the bars' row keeps its height whatever shows (S12 L13): «⚔ Бій» stands over its right end, the bars give way in
   width (--sfw, the tag's own width, screens.js), never in height */
.svit{position:relative;display:flex;align-items:center;gap:5px;min-height:6px}
.svit.fighting{padding-inline-end:calc(var(--sfw,72px) + 6px)}
.svit i{position:relative;height:5px;border-radius:3px;background:#000;overflow:hidden;flex:1}
.svit i.ss{flex:.7}
.svit b{position:absolute;left:0;top:0;bottom:0;width:0;transition:width .2s}
.svit .sl b{background:linear-gradient(90deg,var(--hp),var(--hp-2))}
.svit .ss b{background:linear-gradient(90deg,var(--sta),var(--sta-2))}
.svit .sl.low{animation:sidelow .7s ease-in-out infinite}
.sfight{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1;flex:none;min-height:26px;padding:0 10px;border-radius:999px;border:1px solid #c0503a;background:#3a1610;color:#ffb8a8;font-weight:800;font-size:12px;
  animation:fightpulse 1s ease-in-out infinite}
@keyframes fightpulse{50%{box-shadow:0 0 12px #ff5a3a}}
@media (prefers-reduced-motion:reduce){.sfight,.svit .sl.low{animation:none}}
/* the sub-tabs share the width, none cut short: six (Дії's) on a narrow phone scroll sideways rather than end in «…» */
.seg{flex:none;display:flex;gap:4px;padding:8px calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l));overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
body.touch .seg{gap:2px}
body.touch .seg button{padding:0 7px;font-size:12.5px}
.seg button{position:relative;flex:1 0 auto;min-height:40px;border-radius:9px;border:1px solid transparent;color:var(--ink-dim);font-size:13px;font-weight:600;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seg button.on{color:var(--ink);background:var(--panel-2);border-color:var(--line)}
@media (hover:hover){.seg button:hover:not(.on){border-color:#3a3024}}
.sbody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;
  padding:12px calc(13px + var(--safe-r)) 18px calc(13px + var(--safe-l))}
.tabbar{display:none}
body.touch.ingame .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:var(--z-tabs);height:calc(var(--tab-h) + var(--safe-b));
  padding:3px calc(4px + var(--safe-r)) var(--safe-b) calc(4px + var(--safe-l));background:#100f0d;border-top:1px solid var(--line)}
.titem{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10.5px;color:var(--ink-faint)}
.titem b{font-size:20px;line-height:1;filter:grayscale(.6)}
.titem.on{color:var(--accent)}
.titem.on b{filter:none}
.titem em{right:calc(50% - 20px)}
/* a phone on its side (B152): no tab bar under a 400 px page — the desktop's rail at the left, narrower, past the notch,
   ⚑ at its foot. The HUD's box starts beside it (--hud-l), so inside the HUD the rail and the left inset are already
   paid (both 0 there); the field's canvases run under the rail as on a desktop. A screen is the page beside the rail,
   not a panel: a panel at 932 px leaves the field a 400 px sliver and the bag's two columns no room */
@media (orientation:landscape) and (max-height:520px){
  body.touch{--tab-h:0px}
  body.touch.ingame{--rail-w:calc(58px + var(--safe-l));--hud-l:var(--rail-w)}
  body.touch.ingame.hud-bare{--rail-w:0px}
  body.touch.ingame .tabbar{display:none}
  body.touch.ingame .rail{display:flex;gap:4px;padding-left:var(--safe-l)}
  body.touch .ritem{width:52px;min-height:46px}
  /* the hero's name and «Написати» do not fit 52 px: their icons alone, named by aria-label and title */
  body.touch .ritem.hchip .hnm,body.touch .ritem.rfb span{display:none}
  body.touch .ritem.rfb b{font-size:22px}
  body.touch.ingame .hud{left:var(--hud-l);--rail-w:0px;--safe-l:0px}
  body.touch .screen{left:var(--rail-w)}
  body.touch .shead{padding-top:calc(4px + var(--safe-t));padding-bottom:5px;gap:4px;padding-left:12px}
  body.touch .sback,body.touch .sgear{width:36px;height:36px}
}

/* the calls: over every screen and page; on a phone with a screen open, above its tab bar */
.calls{position:fixed;inset:0;z-index:var(--z-call);pointer-events:none}
.calls>*{pointer-events:auto}
.calls>.hud-toasts{pointer-events:none}
body.touch.screened .bandcall{top:auto;bottom:calc(var(--tab-h) + 10px + var(--safe-b))}
body.touch.screened .arenabar{bottom:calc(var(--tab-h) + 66px + var(--safe-b))}
body.touch.screened .hud-toasts{display:grid;bottom:calc(var(--tab-h) + 14px + var(--safe-b))}

/* Налаштування: the groups' buttons in a grid as wide as the page allows */
.setgrid{display:grid;gap:6px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.setgrid .wide{margin-top:0}

/* Спілка › Чат: the panel fills the screen, its lines grow, the input at the foot by the thumb */
.sbody.tab-chat{display:flex;flex-direction:column;overflow:hidden;padding-bottom:10px}
.sbody.tab-chat .chatpanel{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}
.sbody.tab-chat .ctabs{flex:none}
.sbody.tab-chat .clist{flex:1;min-height:80px;max-height:none}
.sbody.tab-chat .cpicker{flex:none;max-height:40%;overflow-y:auto}
/* (F089: the four channels and two icons wrap to a second row rather than hide the band's tab off the edge) */
body.touch .sbody.tab-chat .ctabs{flex-wrap:wrap}
body.touch .sbody.tab-chat .ctabs button{flex:none;white-space:nowrap}
.postsheet .cmake .wide{flex:1;margin-top:0}
/* Торба in a screen: the sheet's own side padding, which the phone's cells are measured by (invui.js phoneCells) */
.sbody.invbody{padding-left:calc(10px + var(--safe-l));padding-right:calc(10px + var(--safe-r))}
/* the rail's ⚙: its name in its title, the word too long for the rail */
/* the hero chip (F062): the hero led, its level the big part, its name under it cut short */
.hchip{min-width:0}
.hchip .hlv{min-width:28px;height:24px;padding:0 5px;border-radius:12px;display:grid;place-items:center;border:1.5px solid currentColor;
  font:800 14px/1 system-ui,sans-serif;filter:none}
.titem.hchip .hlv{font-size:15px;height:25px}
.hchip .hnm{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 3px}
.hchip.on .hlv{background:#2a2410}
/* Герой › Загін (F062): the party's places over the led hero's bag — on a phone and in a desktop's panel narrower
   than 700 px one scroll, slots then the bag; in a broader panel side by side, the bag at its own width. The panel's
   body is the container measured (F063: one panel width, so its content reflows by that width, not the window's). */
.sbody{container-type:inline-size}
.landing{display:grid;gap:14px}
@container (min-width:700px){ body:not(.touch) .landing{grid-template-columns:minmax(0,1fr) auto;align-items:start} }
.landing>*{min-width:0}
/* a phone: the places, the bag, then the bench, a new hero, the base — the party sheet's parts laid round the bag */
body.touch .landing{display:flex;flex-direction:column;gap:0}
body.touch .landing .lslots,body.touch .landing .partysheet{display:contents}
body.touch .landing .lbag{order:1;margin-top:14px}
body.touch .landing .partysheet>:not(.pplaces){order:2}
@container (max-width:699.98px){
  .landing{display:flex;flex-direction:column;gap:0}
  .landing .lslots,.landing .partysheet{display:contents}
  .landing .lbag{order:1;margin-top:14px}
  .landing .partysheet>:not(.pplaces){order:2}
}
.pslots{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.pslots b{font-size:17px;color:var(--accent);margin-left:4px}
.pslots small{color:var(--ink-faint)}

/* ---------------- quests and talk (F057, questui.js) ----------------
   Every choosable thing three ways: hovered (:hover), pointed (.sel — a first tap, the arrows), chosen (.on). */
/* the tracker (F070): in the left column under the buffs (B088), the quests followed, the pointer's gold; its head folds
   it. Only its buttons take a tap: the field's taps pass between them; a quest the feed would cover is left out
   (hudfit.js) */
.qtracker{display:grid;gap:4px;width:min(250px,46vw);justify-items:stretch;justify-self:start;pointer-events:none}
.qtracker button{pointer-events:auto}
.qtk-q.cut{visibility:hidden}
/* the slot's cards push it past the 💬 or the tab bar (hudfit.js trackerPlace): out of sight while they are up */
.qtracker.squeezed{visibility:hidden}
/* the head's row from the left: the head, then the town portal's pill (F090) */
.qtk-top{justify-self:start;display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px;white-space:nowrap}
.qtk-home{display:flex;align-items:center;gap:4px;min-height:28px;padding:2px 9px;border-radius:999px;background:#0b0d0ab8;
  border:1px solid #4a6a94;color:#cfe2ff;font-size:12px;touch-action:manipulation}
.qtk-home i{font-style:normal;font-weight:800;color:#9cc4ff;font-variant-numeric:tabular-nums}
@media (hover:hover){.qtk-home:hover{border-color:#9cc4ff}}
.qtk-head{display:flex;align-items:center;gap:6px;min-height:28px;padding:2px 10px;border-radius:999px;
  background:#0b0d0acc;border:1px solid #f0c04066;color:#f4e6c0;font-size:12px;font-weight:800;touch-action:manipulation}
.qtk-head i{font-style:normal;min-width:16px;padding:0 4px;border-radius:8px;background:#2a2410;color:#ffd860;font-size:11px}
.qtk-head em{font-style:normal;color:var(--ink-faint)}
.qtk-q{display:grid;gap:1px;text-align:left;padding:5px 9px 6px;border-radius:10px;background:#0b0d0ab8;border:1px solid var(--line);
  color:var(--ink);font-size:11.5px;line-height:1.3;touch-action:manipulation;text-shadow:0 1px 2px #000}
.qtk-q b{display:flex;justify-content:space-between;gap:6px;font-size:12.5px;color:#f4e6c0}
.qtk-q b small{flex:none;font-weight:700;color:#ffd860;font-variant-numeric:tabular-nums}
.qtk-q span{color:var(--ink-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.qtk-q span.ok{color:#9fd08a}
.qtk-q.ptr{border-color:#f0c040;box-shadow:0 0 0 1px #f0c04055 inset}
.qtk-q.ptr b{color:#ffd860}
@media (hover:hover){.qtk-q:hover,.qtk-head:hover{border-color:#f0c040}}
.qtk-q:focus-visible,.qtk-head:focus-visible{outline:2px solid #f0c040;outline-offset:1px}
/* the first week's bar «Друга людина в загоні» (S01 §4.5): five ticks, and the line's next quest — the one gold «!» */
.qtk-week,.qweek{display:grid;gap:3px}
.qweek-bar{display:flex;align-items:center;gap:3px;flex-wrap:wrap;padding:3px 9px;border-radius:999px;background:#0b0d0ab8;
  border:1px solid #f0c04055;color:#f4e6c0;font-size:11.5px;font-weight:700;text-shadow:0 1px 2px #000}
.qweek-bar em{font-style:normal;color:#ffd860;margin-right:2px}
.qweek-bar i{font-style:normal;min-width:15px;text-align:center;border-radius:6px;background:#1c1a12;color:var(--ink-faint)}
.qweek-bar i.ok{background:#2a3a1c;color:#9fd08a}
.qtk-line{border-color:#f0c040}
.qtk-line b{color:#ffd860}
.qline-next{display:grid;gap:2px;text-align:left;min-height:42px;padding:6px 12px;border-radius:10px;border:1px solid #f0c040;
  background:#1c1708;color:#f4e6c0;touch-action:manipulation}
.qline-next span{color:var(--ink-dim);font-size:12px}
@media (hover:hover){.qline-next:hover:not(.on):not(.sel){background:#2a2410}}
/* a tracked quest's «🤖» (S01-T9): its acts on the autopilot, a thumb's size beside the row */
.qtk-row{display:flex;gap:4px;align-items:stretch}
.qtk-row .qtk-q{flex:1;min-width:0}
.qtk-auto{flex:none;min-width:36px;border-radius:10px;background:#0b0d0ab8;border:1px solid #f0c04066;font-size:16px;touch-action:manipulation}
.qtk-row:has(.qtk-q.cut) .qtk-auto{visibility:hidden}
@media (hover:hover){.qtk-auto:hover{border-color:#f0c040}}
/* a phone's column is narrow and the hero stands mid-screen: the panel keeps left of the middle, a quest its name and
   its first step only */
body.touch .qtracker{width:min(150px,38vw)}
body.touch .qtk-q{padding:4px 7px 5px;font-size:11px}
body.touch .qtk-q b{font-size:11.5px}
body.touch .qtk-q span + span{display:none}
body.touch.ghost .qtracker{display:none}

/* Справи (F070): a row a quest — its name and one line, a 📌 to follow it — and a quest's page */
.journal{display:flex;flex-direction:column;gap:6px}
.journal > p{margin:0 0 4px}
/* the town portal's scroll (F090): over the lists, the scrolls' count; none left, dimmed (a tap says so) */
.qhome{align-self:flex-start;min-height:42px;padding:0 14px;border-radius:10px;border:1px solid #4a6a94;background:#141c28;color:#cfe2ff;
  font-weight:700;font-size:13.5px;touch-action:manipulation}
@media (hover:hover){.qhome:hover{border-color:#9cc4ff}}
.qhome.empty,.qtk-home.empty{opacity:.55}
.qrow{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);overflow:hidden}
.qrow .qopen{flex:1;min-width:0;display:grid;gap:2px;min-height:48px;padding:7px 10px;text-align:left;background:none;border:0;color:var(--ink);touch-action:manipulation}
.qrow .qopen b{font-size:13.5px}
.qrow .qopen small{font-size:11.5px;color:var(--ink-dim);overflow-wrap:anywhere}
.qrow .qpin{flex:none;width:48px;border:0;border-left:1px solid var(--line);background:none;font-size:17px;filter:grayscale(1);opacity:.5;touch-action:manipulation}
.qrow .qpin.on{filter:none;opacity:1;background:#2a2410}
@media (hover:hover){.qrow:hover{border-color:#8a7440}}
.qrow.on{border-color:#f0c04088}
.qrow.ptr{border-color:#f0c040;background:color-mix(in srgb,#f0c040 10%,var(--panel-2))}
/* Світ's Бестіарій and Кодекс (S10 wave 1): a head, rows of a kind or a place — its mark, name, count, a small line under */
.wbook{display:flex;flex-direction:column;gap:8px}
.wbook .whead{margin:0;text-align:center;line-height:1.5}
.wbook :is(.wempty,.wnote){margin:6px 0;text-align:center;color:var(--ink-dim);font-style:italic}
.wlist{display:grid;gap:6px}
.wbook .wrow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"i b n" "i s s";align-items:center;column-gap:10px;row-gap:2px;
  min-height:48px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}
.wbook .wrow>i{grid-area:i;font-style:normal;font-size:20px}
.wbook .wrow>b{grid-area:b;font-size:13.5px;overflow-wrap:anywhere}
.wbook .wrow>span{grid-area:n;font-size:12.5px;color:var(--ink-dim);text-align:right}
.wbook .wrow>small{grid-area:s;font-size:11.5px;color:var(--ink-dim)}
/* C9: the catalogue of things — an unknown thing a silhouette, a seen one its look without its card */
.catbook .citem.unk>i{filter:brightness(0) opacity(.55)}
.catbook .citem.unk>b{color:var(--ink-dim)}
.catbook .citem.seen>i{filter:saturate(.4)}
.catbook .cchips{display:flex;flex-wrap:wrap;gap:4px}
.catbook .cchips small{color:var(--ink-faint)}
.catbook #catq{width:100%}
/* the bestiary as study (J9): a kind's page folds out of its row — the ring of study round its mark, then its chunks */
.wkind>summary{list-style:none;cursor:pointer;touch-action:manipulation}
.wkind>summary::-webkit-details-marker{display:none}
.wkind[open]>summary{border-color:var(--accent)}
.wkind.full>summary{border-color:#e0b45a88}
.wring{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  background:radial-gradient(closest-side,var(--panel-2) 76%,transparent 78%),conic-gradient(var(--accent) calc(var(--p) * 1%),var(--line) 0)}
.wchunks{list-style:none;margin:4px 0 2px;padding:0 4px;display:grid;gap:5px;font-size:12.5px;line-height:1.45}
.wchunks li{padding:5px 8px;border-left:3px solid var(--accent);background:var(--panel-2);border-radius:0 8px 8px 0;overflow-wrap:anywhere}
.wchunks li b{color:var(--accent);margin-right:4px}
.wchunks li.off{border-left-color:var(--line);color:var(--ink-dim)}
.wchunks li.off b{color:var(--ink-dim)}
/* ART9: the kinds' painted portraits (beastart.js), round in the list, a print on the page; an unknown kind its dark shape
   with «?», one studied in part a paler portrait */
.wring:has(.bsk){width:52px;height:52px}
.bsk{position:relative;display:block;width:44px;height:44px;border-radius:50%;background:#f1e3bf url(../assets/beasts/portrait-96.webp) no-repeat;background-size:700% auto}
.bsk.part,.bleaf.part img{filter:saturate(.35) sepia(.25) contrast(.85) brightness(1.08)}
.bsk.unk{background-image:url(../assets/beasts/shape-192.webp)}
.wring:has(.bsk.unk){position:relative}
.wring:has(.bsk.unk)::after{content:'?';position:absolute;inset:0;display:grid;place-items:center;font:700 20px/1 Georgia,serif;color:#f1e3bf;text-shadow:0 0 3px #1b130b,0 0 1px #1b130b}
.bleaf{position:relative;width:min(320px,86%);aspect-ratio:1;margin:12px auto 14px;overflow:hidden;border:3px solid #1b130b;border-radius:12px;background:#f1e3bf;box-shadow:4px 4px 0 #1b130b}
.bleaf img,.bleaf .bshape{display:block;width:100%;height:100%;object-fit:cover}
.bleaf .bshape{background:url(../assets/beasts/shape-192.webp) no-repeat;background-size:700% auto}
.bleaf>b{position:absolute;inset:0;display:grid;place-items:center;font:700 72px/1 Georgia,serif;color:#f1e3bf;text-shadow:0 0 8px #1b130b,0 0 2px #1b130b}
.qrow.ready .qopen small{color:#ffd860}
.qrow.k-later{opacity:.6}
.qrow .qopen:focus-visible,.qrow .qpin:focus-visible{outline:2px solid #f0c040;outline-offset:-2px}
.qtitles{margin:0 0 6px;font-size:13px}
.qpage{display:flex;flex-direction:column;gap:8px}
.qpage p{margin:0}
.qpage .qkind{font-size:12px;color:var(--ink-dim)}
.qpage .qgiver{font-size:13px}
.qpage .tline{font-size:14px;line-height:1.5;color:#f4ead2;font-style:italic}
.qpage .tline::before{content:"«"}
.qpage .tline::after{content:"»"}
.qpage .sect{margin-top:4px}
.qpage .qreward,.qpage .qwhere{font-size:13px}
.qpage .qways{margin-top:6px}
.qways button.on{border-color:#f0c040;background:#2a2410;color:#ffd860}
.qways button.warn{border-color:var(--danger);color:#ffb39f}
.qways button.sure{background:#3a1410}
.qsteps{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.qsteps li{display:grid;grid-template-columns:1fr auto;gap:3px 8px;font-size:12.5px;line-height:1.35}
.qsteps li em{grid-column:1 / -1;font-style:normal;font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-faint)}
.qsteps li.ok span{color:#9fd08a}
.qsteps .qbar{grid-column:1;height:4px;border-radius:2px;background:#0b0d0a;overflow:hidden}
.qsteps .qbar b{display:block;height:100%;background:#f0c040}
.qsteps li.ok .qbar b{background:#6fd38a}
.qsteps small{grid-column:2;grid-row:2 / span 2;align-self:end;font-variant-numeric:tabular-nums;color:var(--ink-dim)}
.qways{display:flex;flex-wrap:wrap;gap:6px}
.qways button{min-height:38px;padding:0 11px;border-radius:9px;border:1px solid var(--line);background:#0f1309;font-weight:700;font-size:12.5px}
@media (hover:hover){.qways button:hover{border-color:var(--accent)}}
.qways button:focus-visible{outline:2px solid #f0c040;outline-offset:1px}

/* F066: the book of marks (Дії › Мітки) — a card a mark, its picture beside its name; the form to make one */
.mkbook{display:flex;flex-direction:column;gap:10px}
.mkhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.mkstat{font-size:12.5px;color:var(--ink-dim);font-variant-numeric:tabular-nums}
.mkbook button{min-height:38px;padding:0 12px;border-radius:9px;border:1px solid var(--line);background:#0f1309;font-weight:700}
@media (hover:hover){.mkbook button:hover:not(:disabled){border-color:var(--accent)}}
.mkbook button:focus-visible{outline:2px solid #f0c040;outline-offset:1px}
.mkbook button:disabled{opacity:.45;cursor:default}
.mkbook button.primary{border-color:#7d7132;background:linear-gradient(#5d5423,#3b3516);color:#fff}
.mkbook button.warn{border-color:var(--danger);color:#ffb39f}
.mkform{display:flex;flex-direction:column;gap:7px;padding:10px;background:var(--panel-2);border:1px solid #7d7132;border-radius:var(--r)}
.mkform label{font-size:12px;color:var(--ink-dim)}
.mkform p{margin:0;font-size:12px}
.mkbook input[type=text]{width:100%;min-height:40px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:#0b0d08;color:var(--ink);font:inherit;user-select:text;-webkit-user-select:text}
.mkbook input[type=text]:focus{outline:none;border-color:var(--accent)}
.mkfull{color:var(--accent)}
/* F072: Повернення not learned yet (or ІНТ short): the book still makes marks; the line says where the spell is taught */
.mklock{margin:0;padding:8px 10px;font-size:12.5px;color:var(--accent);background:var(--panel-2);border:1px dashed #7d7132;border-radius:var(--r)}
.mkpick{display:flex;flex-wrap:wrap;gap:6px}
.mkpick button.on{border-color:var(--accent);background:#2a2410}
.mklist{display:flex;flex-direction:column;gap:8px}
.mkcard{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 10px;padding:8px;background:var(--panel-2);border:1px solid var(--line);border-radius:var(--r)}
.mkimg{width:128px;aspect-ratio:192 / 120;border-radius:7px;background:#000 center / cover no-repeat;border:1px solid #000}
.mkimg.ph{display:flex;align-items:center;justify-content:center;font-size:22px;
  background:linear-gradient(hsl(var(--h) 45% 62%) 0 45%, hsl(calc(var(--h) + 40) 30% 32%) 45% 100%)}
.mkbody{min-width:0;display:flex;flex-direction:column;gap:2px}
.mkcard > .mkbtns,.mkcard > .mkren,.mkcard > .mkask{grid-column:1 / -1}
.mkname{overflow-wrap:anywhere}
.mkwhere{font-size:12px}
.mkbtns{display:flex;flex-wrap:wrap;gap:6px}
.mkcard > .mkbtns{flex-wrap:nowrap}
/* the archive under the book (S10 §4.3): past the places, greyed until a place frees */
.mkold{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.mkcard.old{grid-template-columns:minmax(0,1fr);opacity:.6}
.mkbtns .mkgo{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px}
.mkbtns button[data-op=aim],.mkbtns button[data-op=ren],.mkbtns button[data-op=del]{flex:none;min-width:40px;padding:0 8px}
.mkbtns button[data-op=aim].on{border-color:var(--accent);background:#2a2410}
.mkren,.mkask{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.mkask span{flex-basis:100%;font-size:12.5px}

/* F074: the two big buttons — a corner mark names each one's long press (the eye-slash hides, the robot plays);
   «Захист» greyed violet while the hero is hidden */
.duob .dmark{position:absolute;right:-4px;top:-4px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
  background:#0b0d0af0;border:1px solid #5a5446;font-size:12px;font-style:normal;line-height:1;pointer-events:none}
.duob .dmark svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.stanceb.hid{background:#26232ee6;border-color:#a99ccf;color:#ddd4f6;opacity:.92}
.stanceb.hid .dmark{border-color:#a99ccf}
.autob.on .dmark{border-color:#f0d060}
/* F074: the autopilot's settings — a head with ✕, the sets two abreast, the Режим in a row; in Дії › Чари the same
   card standing in the page */
.automenu .ahead{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 6px 2px 12px}
.automenu .ahead b{font-size:13px;color:var(--accent)}
.automenu .ax{display:grid;place-items:center;width:36px;height:36px;padding:0;font-size:15px}
.automenu .asets{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px}
/* a set's tile as tall as its words: the name and the icons (or «лише атака зброєю») wrap, never cut */
.automenu .asets>button{min-width:0;height:auto;align-content:start}
.automenu .asets small{white-space:normal;overflow-wrap:anywhere}
.automenu .alink,.automenu button.go{display:block;text-align:center;font-weight:700}
.automenu button.go{color:#f0d060;border-color:#7d7132}
.automenu .jmodes{display:flex;flex-wrap:wrap;gap:4px}
.automenu .jmodes button{display:block;flex:1;text-align:center;min-height:36px;white-space:nowrap}
.automenu.inbook,body.touch .automenu.inbook{position:static;left:auto;right:auto;top:auto;bottom:auto;transform:none;width:auto;max-width:560px;
  max-height:none;overflow:visible;z-index:auto;box-shadow:none;margin-top:6px;padding:8px;gap:6px}
.automenu.inbook .abody{overflow:visible;padding:0}
.automenu.inbook .afoot{border-top:0;padding:0;background:none}
/* F074, S02-T11: what the autopilot is at, a strip pinned to the screen, never to the hero — a desktop's at the bottom's
   middle (the target's cards step up over it), a phone's at the top of the left column under the bars, where the
   pilot's countdown stood (hudfit.js pushes Справи under it). One line of ~40 letters, an ellipsis past that */
.autotag{position:absolute;left:50%;bottom:calc(62px + var(--safe-b));transform:translateX(-50%);z-index:var(--zh-tag);
  max-width:min(calc(40ch + 24px),78vw);padding:3px 10px;border-radius:999px;
  background:#0b0d0ad9;border:1px solid #f0d06088;color:#f6e7b0;font:700 12px/1.25 system-ui,sans-serif;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 8px #0008;pointer-events:auto;touch-action:manipulation}
@media (hover:hover){.autotag:hover{border-color:#f0d060;color:#fff}}
body.autoplay:not(.touch):not(.screened):not(.scoping) .cards{bottom:calc(92px + var(--safe-b))}
/* a phone's: a row of its own kept under the buffs whether it shows or not (.vitals' margin), so nothing moves for it;
   --tag-top the buffs' own bottom when they wrap (hudfit.js) */
body.touch .autotag{left:calc(8px + var(--safe-l));top:var(--tag-top,calc(52px + var(--safe-t)));bottom:auto;transform:none;height:26px;box-sizing:border-box;max-width:var(--ctx-w);font-size:12.5px;padding:3px 11px}
/* F074: ⚙ over the minimap's corner */
.mmwrap{position:relative;justify-self:end}
.mapgear{position:absolute;left:-6px;top:-6px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:17px;
  background:#0b0d0ae6;border:1px solid var(--line);color:var(--ink-dim);box-shadow:0 1px 4px #000a}
@media (hover:hover){.mapgear:hover{border-color:var(--accent);color:var(--ink)}}
/* on a finger's HUD the minimap's corner is 6 px under the page's top and 8 px in from its right (.hud-tr): the two
   buttons stand 2 px inside it, their hit areas (comic.css) may run past the edge */
body.touch .mapgear{width:34px;height:34px;left:-10px;top:-4px}
/* the 👁 over the minimap's top-right corner, the ⚙'s twin on the left */
.mapeye{left:auto;right:-6px;font-size:15px}
body.touch .mapeye{left:auto;right:-6px}
/* the day's dial over the minimap's bottom-left, the hand light's 🔥 beside it (F126, nightui.js) */
.daydial{top:auto;bottom:-6px;font-size:15px}
body.touch .daydial{top:auto;bottom:-6px}
.lightchip{top:auto;bottom:-6px;left:30px;font-size:15px;border-color:#ffb066}
body.touch .lightchip{top:auto;bottom:-6px;left:28px}
.lightchip.off{filter:grayscale(1);opacity:.6}

/* the newcomer's isle (F077, web/js/onboard.js): what its step has not opened is hidden; a part newly opened pops in
   and its glow pulses for two seconds; the keeper's line over the field is the hint's place (a balloon: comic.css) */
.oblock{display:none!important}
@media (prefers-reduced-motion:no-preference){
  .obnew{animation:obpop .42s cubic-bezier(.2,1.4,.4,1),obglow 2.1s ease-in-out}
  @keyframes obpop{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
  @keyframes obglow{0%,100%{box-shadow:none;filter:none}25%,75%{box-shadow:0 0 0 2px #f0d060,0 0 22px #f0d060cc;filter:brightness(1.25)}50%{box-shadow:0 0 0 1px #f0d06088,0 0 8px #f0d06055;filter:none}}
}

/* ============ the stream's onlooker (F081, js/stream.js): no controls, a caption layer for OBS at 1920×1080 ============ */
body.watching #hud, body.watching #ring, body.watching #rail, body.watching #screen, body.watching #tabBar,
body.watching #calls, body.watching #tip, body.watching #title{display:none!important}
.streamhud{position:fixed;inset:0;pointer-events:none;z-index:var(--z-stream);font-family:Georgia,serif;color:var(--ink);text-shadow:0 2px 6px #000,0 0 2px #000}
.sh-card{position:absolute;left:clamp(16px,2.5vw,48px);top:clamp(16px,2.5vw,44px);padding:12px 20px;border-radius:10px;
  background:#0b0d0ab8;border:1px solid #c8a05066;box-shadow:0 4px 18px #0008;max-width:min(60vw,720px)}
.sh-name{font-size:clamp(18px,2.2vw,40px);font-weight:700;color:#f0d890;letter-spacing:.02em}
.sh-ttl{display:block;font-size:.7em;font-style:italic;font-weight:600;opacity:.72;letter-spacing:0}
.sh-goal{margin-top:4px;font-size:clamp(14px,1.45vw,28px);color:var(--ink)}
.sh-goal:empty{display:none}
.sh-cap{position:absolute;left:50%;bottom:clamp(24px,7vh,96px);transform:translate(-50%,12px);max-width:min(86vw,1400px);
  padding:14px 28px;border-radius:12px;background:#0b0d0ad0;border:1px solid #c8a05055;font-size:clamp(18px,2vw,40px);
  line-height:1.35;text-align:center;opacity:0;transition:opacity .5s,transform .5s}
.sh-cap.on{opacity:1;transform:translate(-50%,0)}
.sh-off{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:18px 30px;border-radius:12px;
  background:#0b0d0ae6;border:1px solid var(--line);font-size:clamp(16px,1.6vw,30px);color:var(--ink-dim);text-align:center}

/* «Увійти» while nobody is signed in (F083): a small corner button over the isle and any guest's screen */
.islelogin{position:fixed;z-index:var(--z-login);top:calc(env(safe-area-inset-top,0px) + 8px);left:calc(50% + var(--rail-w) / 2);transform:translateX(-50%)}
body.screened .islelogin{display:none}
.mailcard{position:fixed;inset:0;z-index:var(--z-dialog);display:grid;place-items:center;background:#05060499;padding:16px}
.mailcard .agebox{text-align:left}
.mailcard .agebox > b{text-align:center}
.mailcard .mailbox{justify-items:stretch}
/* a friend's link (F083): only the name, over the friend's mark live */
.title.ref .lore,body.touch .title.ref .lore:not(.open),.title.ref .hint{display:none}


/* F091: a layer of the screen the 👁 hides (a body class each, hud.js bodyClasses) */
body.hud-no-quests #qTracker,body.hud-no-party #partyBar,body.hud-no-party #bandBar,body.hud-no-buffs #buffs,
body.hud-no-feed #chatlog,body.hud-no-feed #chatBtn,body.hud-no-place .zone-tag,body.hud-no-net #netTag,body.hud-no-duo #duo,
body.hud-no-quick #quickBar,body.hud-no-quick #beltQ{display:none!important}
/* the minimap gone, its ⚙ and 👁 stay in a row where it was */
body.hud-no-map canvas#minimap{display:none}
body.hud-no-map .mmwrap{width:var(--mm);height:30px}

/* F091: «Без інтерфейсу» — the field alone: the 👁 to come back and, on a phone, the two buttons; nothing drawn over the
   world (the names, the bars, the numbers: the overlay's canvas), no bars at the edges, no rail or tab bar */
body.hud-bare #hud>:not(.hud-tr):not(.dock),body.hud-bare .hud-tr>:not(.mmwrap):not(.hudmenu),body.hud-bare .mmwrap>:not(.mapeye),
body.hud-bare .dock>:not(.duo),body.hud-bare:not(.touch) .dock,body.hud-bare .rail,body.hud-bare .tabbar,body.hud-bare #ring,
body.hud-bare .hud-toasts{display:none!important}
body.hud-bare canvas#overlay{visibility:hidden}
/* a phone's field takes the tab bar's place too (hud.js asks the world to fit it) */
body.touch.hud-bare{--tab-h:0px}
body.hud-bare .mmwrap{width:var(--mm);height:30px}
body.hud-bare .mapeye{opacity:.55}
body.hud-bare .mapeye[aria-expanded="true"]{opacity:1}
@media (hover:hover){body.hud-bare .mapeye:hover{opacity:1}}
/* the word that it went or came back: a comic caption for a moment, top middle */
.barenote{position:fixed;z-index:var(--z-note);left:50%;top:calc(var(--safe-t) + 18px);transform:translateX(-50%) rotate(-2deg) scale(.6);opacity:0;
  pointer-events:none;padding:8px 16px;background:#ffd23f;color:#17110a;border:3px solid #17110a;border-radius:10px;box-shadow:4px 4px 0 #17110a;
  font:900 14px/1.2 "Segoe UI",Roboto,system-ui,sans-serif;white-space:nowrap;transition:opacity .2s,transform .25s cubic-bezier(.3,1.7,.5,1)}
.barenote.on{opacity:1;transform:translateX(-50%) rotate(-2deg) scale(1)}

/* B101: the autopilot playing untouched (calm.js): the hand's controls fade out slowly and come back at once; the
   tracker keeps its head. Children are switched off too: a parent's pointer-events:none does not reach a child's auto */
#cards,#ring,#sayBubble,.qtk-q{transition:opacity .2s}
body.auto-calm :is(#cards,#ring,#sayBubble,.qtk-q){opacity:0;transition:opacity .6s}
body.auto-calm :is(#cards,#ring,#sayBubble,.qtk-q),body.auto-calm :is(#cards,#ring,#sayBubble,.qtk-q) *{pointer-events:none!important}
@media (prefers-reduced-motion:reduce){#cards,#ring,#sayBubble,.qtk-q{transition:none!important}}

/* Спілка › Треди (F089): filters as chips; a row a card (.thr, F059's) with its kind's badge in the comic look of F091
   — paper in thick ink, an offset shadow, a colour a kind; a thread's posts as speech balloons, one's own to the right */
.tredy .tfilters{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0 6px}
.tredy .tfilters button{min-height:36px;padding:0 12px;border-radius:18px;border:2px solid #17110a;background:#2a2620;color:var(--ink-dim);font-size:12.5px;font-weight:700}
.tredy .tfilters button.on{background:#fbf1d6;color:#17110a;box-shadow:2px 2px 0 #17110a}
@media (hover:hover){.tredy .tfilters button:hover{color:var(--ink)}}
@media (hover:hover){.tredy .tfilters button.on:hover{color:#17110a}}
.tredy .tlist{display:grid;gap:6px}
.tkind{flex:none;display:inline-flex;align-items:center;gap:3px;padding:1px 7px;border-radius:9px;border:2px solid #17110a;box-shadow:2px 2px 0 #17110a;
  background:#fbf1d6;color:#17110a;font:800 10.5px/16px "Segoe UI",Roboto,system-ui,sans-serif;white-space:nowrap;transform:rotate(-2deg)}
.tkind.k-letter{background:#f6d27a}
.tkind.k-note{background:#ff8a5c}
.tkind.k-world{background:#9fd8ff}
.tkind.k-guild{background:#b8f0a8}
.tkind.k-band{background:#bfe6ff}
.trow.pin{border-color:#c98a4a;background:color-mix(in srgb,#ff8a5c 8%,#14161a)}
.trow.k-letter.new{border-color:#c9a040}
.tthread .ttitle{display:grid;grid-template-columns:auto 1fr;gap:4px 8px;align-items:center;padding:4px 2px 8px;border-bottom:1px solid var(--line)}
.tthread .ttitle b{font-size:15px;color:#fff;word-break:break-word}
.tthread .ttitle small{grid-column:1/-1;color:var(--ink-faint);font-size:11.5px}
.tthread .thhead{position:static;margin:0 0 6px;padding:0;background:none;justify-content:flex-end}
.tthread .thhead button.on{border-color:var(--accent);color:var(--accent)}
.tposts{display:grid;gap:8px;padding:8px 2px;max-height:min(56vh,520px);overflow-y:auto}
.tpost{max-width:88%;justify-self:start;padding:6px 10px 8px;border-radius:12px 12px 12px 3px;border:2px solid #17110a;box-shadow:2px 2px 0 #17110a;
  background:#fbf1d6;color:#17110a}
.tpost.me{justify-self:end;border-radius:12px 12px 3px 12px;background:#e3f2ff}
.tpost.sys{max-width:100%;justify-self:stretch;background:#ffe4d6}
.tpost.tg p{font-style:italic;opacity:.75;cursor:help}
.tpost .tpw{display:flex;gap:8px;align-items:baseline}
.tpost .tpw b{font-size:12.5px;color:#3a2a12;font-weight:800}
.tpost .tpw small{color:#6b5a3e;font-size:10.5px;margin-left:auto}
.tpost p{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4;font-size:13.5px}
.tpost .chint{color:#5a4a2e}
.tpost .cmake{margin-top:6px}
.tsay textarea{flex:1;min-width:0;min-height:46px;max-height:30vh;border-radius:9px;padding:8px 10px;background:#0b0d0ae6;border:1px solid var(--line);
  color:var(--ink);font:inherit;font-size:16px;resize:vertical;user-select:text;-webkit-user-select:text}
.tnew textarea{width:100%;box-sizing:border-box}

.tredy .phead .wide{flex:1 1 40%}

/* the icons (F099, icons.js, web/icons.svg): an emoji's place and size, the text's colour; ores and runes keep theirs */
.ic{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.22em;flex:none;pointer-events:none;overflow:visible}
.ic.t-cu{color:#d9843f}.ic.t-ag{color:#c4cfd8}.ic.t-au{color:#e6bd3a}.ic.t-m{color:#6aa8e8}
/* an icon leading a title of a spread row stays by its words (the row's last part pushed right instead) */
.qtk-q b{justify-content:flex-start}.qtk-q b small{margin-left:auto}
/* «Крамниця» (web/js/shopui.js, S09 §4.3): the wallets over its rows, each row a goods card (B127, comic.css «the
   counters' goods»): two in a row on a phone, three or four on a desktop, the buy button at the card's foot */
.store .shopwallet{margin:4px 2px 2px;font-weight:600}
.store .shopwallet small{font-weight:400;opacity:.8}
/* the till (web/js/payui.js, S09 §4.12): the bank awaited under a row, the spend's ask, «Чесні гроші», the red wallet */
.store .paywait{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;opacity:.9}
.store .payask{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.store .honest{border-color:#7a5fd0}.store .honest a{color:#b79cff}
.store .shopneg{color:#ff8a7a}
/* the admin's money tab (web/js/econui.js): its wide table scrolls, never the sheet */
.econmoney>table{display:block;overflow-x:auto;max-width:100%}
.store .shoprow .shopwhat{font-style:italic}
.store .shoprow.soon{opacity:.85}
.store .shoprow .shopask{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;align-items:center}
.store .shoprow .shopask p{flex-basis:100%;margin:0}
/* the silver coin (⚪, an ore's icon tinted silver) dark enough to read on the comic sheet's paper */
.screen.c-sheet .ic.t-ag{color:#7b8896}
/* the admin's «Економіка» (web/js/econui.js, S09 §4.6): rust when the net ran over the rule two weeks */
.adminv.econ .econsum tr[data-day]{cursor:pointer}
.adminv.econ .econsum tr.on{background:rgba(240,208,96,.18)}
.adminv.econ .econsum tr.over td:nth-child(5){color:#d9643a;font-weight:700}
.adminv.econ.rust{box-shadow:inset 4px 0 0 #b4532a}
.adminv.econ .econbad{color:#d9643a}
.adminv.econ .econcols{display:flex;flex-wrap:wrap;gap:8px}
.adminv.econ .econcols .admtab{flex:1 1 180px}

/* a thing's painted icon (F114, itemicons.js): one square cell of the atlas, sized by its place; the quality is the
   frame round it (the bag's .it.tierN, a .qf.tierN wrapper elsewhere), never in the icon */
.iic{display:inline-block;width:1.6em;height:1.6em;vertical-align:middle;flex:none;font-style:normal;pointer-events:none;
  background:var(--iat) 0 0/calc(var(--iac) * 100%) calc(var(--iar) * 100%) no-repeat}
.iic.s{background-image:var(--iat-s)}
.it .iic{width:88%;height:88%}
.eqslot .ph .iic,.bagslot .ph .iic{width:1.5em;height:1.5em}
.qf{display:inline-grid;place-items:center;border:2px solid var(--qf,transparent);border-radius:7px;box-sizing:border-box}
.qf.tier0{--qf:var(--t-common)} .qf.tier1{--qf:var(--t-good)} .qf.tier2{--qf:var(--t-rare)} .qf.tier3{--qf:var(--t-epic)} .qf.tier4{--qf:var(--t-legend)}
.ttpic{flex:none;width:56px;height:56px}
/* the interface's painted art (ART1, itemicons.js uiIcon, uiart.js its keys): a cell of web/assets/ui/ (or a currency of
   the things' atlas), 1.4em square inline where its place does not size it */
.uic{display:inline-block;vertical-align:middle;flex:none;font-style:normal;pointer-events:none;
  background:var(--uat) 0 0/calc(var(--uac) * 100%) calc(var(--uar) * 100%) no-repeat}
.uic.s{background-image:var(--uat-s)}
.uix,.iic.uix{width:1.4em;height:1.4em}
.uix.cur{width:1.25em;height:1.25em;margin:-.15em .05em 0}
.goods .ware-pic .shopico>.uix{width:88px;height:88px}
.buff b .uix{width:22px;height:22px;display:block}
#hideChip .uix{width:1.3em;height:1.3em;margin:-.2em .25em 0 0}
.abstates{display:flex;flex-wrap:wrap;gap:4px}
.abstates .c-chip .uix{width:20px;height:20px;margin:-3px 4px -3px -2px}
.bannerart{display:grid;place-items:center}
.bannerart:empty{display:none}
.bannerart .uix{width:clamp(72px,14vw,104px);height:clamp(72px,14vw,104px);border-radius:12px;box-shadow:0 4px 18px rgba(0,0,0,.6)}
.qrow .qopen .uix,.qpage .qkind .uix,.tquest .uix{width:1.5em;height:1.5em;margin:-.25em .2em 0 0}
.gart{flex:none;display:inline-grid;place-items:center;width:56px;height:56px}
.gart .uix{width:100%;height:100%}
.crestpick{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin:6px 0}
.crestpick label{display:grid;place-items:center;aspect-ratio:1;border-radius:8px;border:2px solid transparent;cursor:pointer;padding:2px}
.crestpick input{position:absolute;opacity:0;pointer-events:none}
.crestpick label:has(input:checked){border-color:var(--c-pow,#f0c040);background:rgba(240,192,64,.15)}
@media (hover:hover){.crestpick label:hover{border-color:rgba(240,192,64,.5)}}
.crestpick .uix{width:100%;height:100%}
body.touch .crestpick{grid-template-columns:repeat(4,1fr)}

.ttpic .iic{width:48px;height:48px}
.aico .qf,.sico .qf,.sico:has(.qf){width:40px;height:40px}
.aico .iic,.sico .iic{width:34px;height:34px}
.bico .iic{width:36px;height:36px}
.fico .iic{width:38px;height:38px}
.bneed .iic{width:20px;height:20px}
.c-row .k .iic{width:30px;height:30px}
.gbox .iic{width:1.1em;height:1.1em}
.gboxes .iic{width:56px;height:56px}
.gitem .gi .iic{width:52px;height:52px}
/* a building's painted icon (F116, itemicons.js buildIcon): one square cell of the buildings' atlas, sized by its place */
.bic{display:inline-block;width:1.6em;height:1.6em;vertical-align:middle;flex:none;font-style:normal;pointer-events:none;
  background:var(--bat) 0 0/calc(var(--bac) * 100%) calc(var(--bar) * 100%) no-repeat}
.bic.s{background-image:var(--bat-s)}
/* a skill's or an ability's painted medallion (F115, skillicons.js): one round cell of the atlas, sized by its place; its
   kind is the ring round it, never in the art — a вміння brass, an active bold ink, a passive dashed grey, a toggle a ring
   with its pip (lit on, dark off); a sleeper or a locked one grey; a key with no art keeps its emoji on a dark disc */
.sic{position:relative;display:inline-block;width:1.6em;height:1.6em;border-radius:50%;vertical-align:middle;flex:none;font-style:normal;
  pointer-events:none;box-sizing:border-box;background:var(--sat) 0 0/calc(var(--sac) * 100%) calc(var(--sar) * 100%) no-repeat}
.sic.s{background-image:var(--sat-s)}
.sic.noart{display:inline-grid;place-items:center;background:radial-gradient(#3a3226,#1b150e)}
.sic.noart>b{font:400 calc(1em * .95)/1 system-ui,sans-serif;color:#f3e6c4}
.sic.r-skill{box-shadow:0 0 0 2px #d2a44a,0 0 0 3.5px #4a3210}
.sic.r-active{box-shadow:0 0 0 2.5px #17110a,0 0 0 3.5px #f3e6c455}
.sic.r-passive{outline:2px dashed #a59f92;outline-offset:1px}
.sic.r-toggle{box-shadow:0 0 0 2px #17110a,0 0 0 3px #f3e6c455}
.sic.r-toggle::after{content:'';position:absolute;right:-3px;bottom:-3px;width:34%;height:34%;min-width:7px;min-height:7px;border-radius:50%;
  background:#5d584e;border:2px solid #17110a;box-sizing:border-box}
.sic.r-toggle.on::after{background:#86e05c;box-shadow:0 0 6px #86e05c}
.sic.zz{filter:grayscale(1) brightness(.78);opacity:.8}
.act-skill .ico .sic{width:30px;height:30px;font-size:19px}
.lo .sic{width:calc(var(--r) * var(--u) * 1.6);height:calc(var(--r) * var(--u) * 1.6)}
.bk .sic{width:36px;height:36px;margin-bottom:3px;font-size:22px}
.abrow .abic .sic{width:32px;height:32px;font-size:20px}
.lrung i .sic{width:28px;height:28px;font-size:17px}
.c-row .k .sic,.nextrow .k i .sic{width:28px;height:28px;margin-right:6px;font-size:17px}
.c-card>b .sic{width:44px;height:44px;margin-right:6px;font-size:26px}
.buff b .sic{width:18px;height:18px;font-size:12px}
.buff b .sic.r-toggle::after{min-width:6px;min-height:6px;border-width:1.5px}
.toast .sic{width:24px;height:24px;margin-right:4px;font-size:15px}
.sect .sic{width:22px;height:22px;margin-right:4px;font-size:13px}
.ring .ract .sic{width:34px;height:34px;font-size:20px}
.ring .ract.asking .sic{width:26px;height:26px;margin-right:4px}
.rows.starts .k .sic{width:26px;height:26px;margin-right:6px;font-size:16px}
/* a finger held on a thing in the bag: its name over it */
.itname{position:fixed;z-index:var(--z-tip);transform:translate(-50%,calc(-100% - 6px));max-width:70vw;padding:4px 9px;border-radius:7px;
  background:#1b130bf0;color:#fff5dc;font:700 13px/1.25 system-ui,sans-serif;text-align:center;pointer-events:none;box-shadow:0 2px 6px #0008}
/* S18 §4.12: Герой › Вміння and Здібності — the list and the card (beside it on a desktop, a sheet from the bottom on a
   phone), the ability's state ✓ ✋ 💤 🔒, a skill's ladder; the bar's sleepers grey with 💤, the ✋ ones marked. */
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,44%);gap:12px;align-items:start}
.splitcard{position:sticky;top:0;max-height:calc(100vh - 140px);overflow:auto}
body.touch .split{display:block}
body.touch .splitcard{display:none}
/* (sticky to the bottom of the screen's scrolling body, not fixed: a screen's body may be transformed, and a fixed sheet
   would cover the screen's own tabs) */
body.touch .splitcard.open{display:block;position:sticky;z-index:6;top:auto;bottom:0;max-height:62vh;overflow:auto;padding:10px 0 4px;
  background:linear-gradient(#0000,#0009 14px);overscroll-behavior:contain}
.splitcard .x{position:absolute;top:8px;right:8px;min-width:44px;min-height:44px}
.splithint{margin:2px 2px 6px}
.split button.c-row{width:100%;text-align:left;font:inherit;cursor:pointer}
.split button.c-row.sel{box-shadow:inset 6px 0 0 var(--c-pow)}
.abrow .abic{flex:none;width:36px;font-style:normal;font-size:20px;text-align:center}
.abrow .k small{display:block;margin-top:2px}
.abrow .v{flex-direction:row;align-items:center;gap:6px}
.ablet{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 4px;border:2px solid var(--c-ink);border-radius:6px;
  font:700 12px/1 var(--c-ui);text-decoration:none;background:var(--c-paper-lo)}
.abmark{font-size:16px}
.abrow.s-locked{opacity:.62}
.abrow.s-locked .abic,.abrow.s-asleep .abic{filter:grayscale(1)}
.abrow.s-asleep .k small{color:var(--c-rust-ink)}
.abmore summary{cursor:pointer;margin:6px 4px;font:600 13.5px/1.3 var(--c-ui);color:var(--c-ink-2)}
.abfilter{margin:0 0 4px}
.abcard{padding-right:56px}
.abcard .abtop{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.abcard .abtop .abmark{margin-left:auto;font:600 13px/1.2 var(--c-ui)}
.abcard.s-asleep>b,.abcard.s-locked>b{filter:grayscale(.7)}
.abcard h5{margin:6px 0 0;font:700 13px/1.2 var(--c-ui);letter-spacing:.04em;text-transform:uppercase;color:var(--c-ink-2)}
.abreq{margin:0;padding:0;list-style:none;display:grid;gap:3px;font:500 14px/1.3 var(--c-ui)}
.abreq li.ok{color:var(--c-worm-ink)}
.abreq li.bad{color:var(--c-rust-ink);font-weight:600}
.abpow{font-variant-numeric:tabular-nums}
/* «Що робить» (B125): the numbers as a ledger on the card, no frame of its own */
.abdoes{margin:0;font-size:13.5px}
.abdoes dd{font-weight:600}
.abplace{align-self:center}
/* (its own class: style.css .cardbtns button, an item card's, would paint a bare .c-btn dark) */
.abbtns{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px}
.abbtns .c-btn{min-height:44px}
.abcard .abtop{padding-right:48px}
.skcard .skval{font:500 15px/1.3 var(--c-ui)}
.lrungs{display:grid;gap:6px}
.lrung{display:grid;grid-template-columns:34px 32px minmax(0,1fr);align-items:center;gap:6px;min-height:44px;padding:4px 8px;text-align:left;
  font:500 14px/1.25 var(--c-ui);color:var(--c-ink);background:var(--c-paper-hi);border:2px solid var(--c-ink);border-radius:8px;cursor:pointer}
.lrung b{font:700 13px/1 var(--c-ui);text-align:center}
.lrung i{font-style:normal;font-size:18px;text-align:center}
.lrung span{display:grid;min-width:0}
.lrung small{font-size:12.5px;color:var(--c-ink-2)}
.split .lrung.l-lit{background:var(--c-worm-hi)}
.split .lrung.l-half{background:linear-gradient(90deg,var(--c-worm-hi) 0 50%,var(--c-paper-hi) 50%)}
.split .lrung.l-dark{opacity:.6}
.lrung.l-dark i{filter:grayscale(1)}
.statbtns{display:flex;gap:8px;flex-wrap:wrap}
.statbtns .c-btn{flex:1 1 140px}
.cpick{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 8px}
.cpick small{flex:1;color:var(--ink-faint)}
.act.asleep .ico,.act.nohand .ico{filter:grayscale(1);opacity:.55}
.act[data-mark]::after,.lo[data-mark]::after{content:attr(data-mark);position:absolute;top:-3px;right:-3px;z-index:3;font-size:13px;line-height:1}
.lo.asleep i{filter:grayscale(1);opacity:.6}
/* S18 §4.6: a toggle's switch on its row and card (a thumb's 44 px), its chip in the buff row with a thin ring */
.abtog{min-width:44px;min-height:44px;justify-content:center}
.abrow[role="button"]{cursor:pointer}
.abrow[role="button"]:focus-visible{outline:3px solid var(--c-pow);outline-offset:-3px}
#buffs .buff.tog{pointer-events:auto;cursor:pointer;box-shadow:0 0 0 1.5px #ffd27a}
/* S18 §4.7: an active's habit on its card, Чари's «Звички» */
.abhabit{display:flex;align-items:center;justify-content:space-between;gap:8px}
.habits .habrow .k small{display:block;margin-top:2px}
/* F140 (S15 §4.1, F131 before it): «Написати нам» — a capital's form on paper; a bottom sheet on a phone, a 440-px
   card under the top right on a desktop; three kinds, the shot, the words, «Надіслати»; the stamp lands on send */
.fbsheet{position:fixed;z-index:var(--z-book-card);left:0;right:0;bottom:0;max-height:60vh;display:flex;justify-content:center;padding:0 8px calc(8px + var(--safe-b,0px));pointer-events:none}
.fbpaper{position:relative;pointer-events:auto;width:100%;max-width:520px;background:#efe4c8;color:#2a2116;border:2px solid #2a2116;border-radius:12px 12px 6px 6px;box-shadow:0 -6px 24px rgba(0,0,0,.55);padding:12px 12px 14px;display:flex;flex-direction:column;gap:9px;overflow:auto}
body:not(.touch) .fbsheet{top:calc(64px + var(--safe-t));bottom:auto;left:auto;right:12px;width:420px;max-height:none;padding:0}
body:not(.touch) .fbpaper{border-radius:8px}
.fbhead{display:flex;align-items:baseline;gap:8px}
.fbhead b{font:800 18px/1.1 'Underdog',system-ui,sans-serif;letter-spacing:.5px}
.fbhead .muted{color:#6b5a40;font-size:12px;flex:1}
.fbx{background:none;border:0;font-size:20px;color:#2a2116;min-width:44px;min-height:44px;cursor:pointer}
.fbshot{position:relative;align-self:flex-start}
.fbshot img{display:block;max-height:110px;max-width:100%;border:2px solid #2a2116;border-radius:4px;transform:rotate(-1.5deg)}
.fbdrop{position:absolute;top:-10px;right:-10px;width:32px;height:32px;border-radius:50%;border:2px solid #2a2116;background:#efe4c8;color:#2a2116;cursor:pointer}
.fbline{font:16px system-ui,sans-serif;padding:10px;border:2px dashed #6b5a40;border-radius:6px;background:#fbf5e4;color:#2a2116;min-height:44px}
.fbarea{align-self:flex-start;background:#2a2116;color:#efe4c8;border:0;border-radius:999px;padding:8px 14px;min-height:36px;font-weight:600;cursor:pointer}
.fbkinds{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.fbkinds button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 4px;min-height:58px;border:2px solid #2a2116;border-radius:8px;background:#fbf5e4;color:#2a2116;font-weight:700;font-size:12.5px;line-height:1.15;text-align:center;cursor:pointer}
.fbkinds button span{font-size:22px;line-height:1}
.fbkinds button.on{background:#e0b45a;box-shadow:2px 2px 0 #2a2116;transform:rotate(-1deg)}
@media (hover:hover){.fbkinds button:hover:not(.on):not(.sel){background:#f3dca6}}
.fbstamp{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%) rotate(-12deg) scale(2.2);opacity:0;pointer-events:none;border:4px double #b5452f;color:#b5452f;padding:6px 12px;font:800 20px/1 'Underdog',system-ui,sans-serif;letter-spacing:1px;white-space:nowrap}
.fbsheet.stamped .fbstamp{opacity:.9;transform:translate(-50%,-50%) rotate(-12deg) scale(1);transition:transform .18s ease-out,opacity .18s}
.fbtoast{position:fixed;z-index:var(--z-book-toast);left:50%;bottom:calc(96px + var(--safe-b,0px));transform:translateX(-50%);max-width:min(92vw,460px);background:#2a2116;color:#efe4c8;border:2px solid #e0b45a;border-radius:10px;padding:10px 14px;font-weight:600;box-shadow:0 4px 16px rgba(0,0,0,.5)}
.fbtoast.act{cursor:pointer}
/* a finger's open screen: over the tab bar, clear of the screen's head and its 💬 at every width */
body.touch.screened .fbtoast{bottom:calc(var(--tab-h) + 14px + var(--safe-b));max-width:calc(100vw - 24px)}
@media (hover:hover){.fbtoast.act:hover:not(.on):not(.sel){background:#3a2e1e}}
.fbrow{border-color:var(--accent)!important}
.fbcard .fbpaper{max-width:440px}
body:not(.touch) .fbsheet.fbcard{width:440px}
.fbqrow{display:flex;gap:12px;align-items:flex-start}
.fbqrow textarea.fbline{resize:none;font-size:15px;line-height:1.35}
.fbmine{align-self:center;background:none;border:0;color:#6b5a40;font-weight:700;text-decoration:underline;min-height:36px;cursor:pointer}
@media (hover:hover){.fbmine:hover{color:#2a2116}}
/* F140: ⚑ at the foot of a desktop's rail, under the four */
.ritem.rfb{margin-top:auto}
/* … and in a screen's header beside ⚙ — on a tablet and a desktop; a phone's way is the long press on Спілка */
body.touch:not(.tablet) .srow .sfb{display:none}
/* Спілка › Звернення: the first row the card, the threads as Треди's rows with a thumbnail and the state */
.fbtalk .fbnew{display:flex;flex-direction:column;align-items:center;gap:2px;margin-bottom:10px}
.fbtalk .fbnew small{font-weight:500;opacity:.75}
.fbrowt{display:flex;gap:10px;align-items:center;text-align:left}
.fbrowt .fbrowb{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fbthumb{flex:none;width:64px;height:40px;object-fit:cover;border:2px solid currentColor;border-radius:4px;transform:rotate(-1.5deg)}
.fbthumb.none{display:grid;place-items:center;font-size:20px;opacity:.7}
.fbst{font-weight:700}
.fbst.fst-answered{color:#e0b45a}
.fbst.fst-closed{opacity:.6}
.fbpost .fbpic{display:block;max-width:min(100%,320px);max-height:220px;margin-top:6px;border:2px solid currentColor;border-radius:4px}
.fbpost.team{border-left:3px solid #e0b45a}
.fbsay{display:flex;gap:6px;align-items:flex-end}
.fbsay textarea{flex:1;min-width:0}
.fbpick{display:grid;place-items:center;min-width:44px;min-height:44px;font-size:20px;cursor:pointer}
.fbpicked{position:relative;align-self:flex-start;margin-top:6px}
.fbpicked img{display:block;max-height:90px;max-width:160px;border:2px solid currentColor;border-radius:4px}
.fbqrow .fbshot{flex:none;margin:4px 0 0 2px}
.fbqrow .fbshot img{max-height:96px;max-width:120px}
.fbqrow .fbline{flex:1;min-width:0}
.fbsend{align-self:stretch;min-height:48px;border:2px solid #2a2116;border-radius:8px;background:#e0b45a;color:#2a2116;font:800 17px/1 'Underdog',system-ui,sans-serif;letter-spacing:.5px;cursor:pointer}
.fbsend:disabled{opacity:.45;cursor:default}
@media (hover:hover){.fbsend:hover:not(:disabled):not(.on):not(.sel){background:#f0c870}}
.fbrow small{opacity:.6;margin-left:6px}
.pushk{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 2px;cursor:pointer}
.pushk input{width:20px;height:20px}

/* F124: one rule for moving things — marks, the bulk head, the filter, the «↶» toast, the quantity sheet, the Склад's rows */
.it .mvpin,.it .mvjunk{position:absolute;left:1px;bottom:0;font-style:normal;font-size:max(10px,calc(var(--cell) * .24));line-height:1;pointer-events:none;filter:drop-shadow(0 1px 1px #000)}
.it .mvjunk{opacity:.75;filter:grayscale(1) drop-shadow(0 1px 1px #000)}
/* a thing to open (B150, itemcard.js openable): a dashed gold rim inside its frame and a gift badge in its top right
   corner, in the bag, a chest, the Склад, the post and the trade's tray — apart from bags one hangs and from materials */
:is(.it,.tcell).openable::after{content:'';position:absolute;inset:3px;border:2px dashed #e7bf5f;border-radius:5px;pointer-events:none}
.openmark{position:absolute;right:1px;top:1px;z-index:1;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;
  background:#e7bf5f;border:1.5px solid #1b130b;font-style:normal;font-size:10px;line-height:1;pointer-events:none}
body.touch .openmark{width:19px;height:19px;font-size:12px}
/* the bag's two sections (B150 K14): a head that folds, the boxes' «Відкрити все» at its right */
.bagsect{justify-self:stretch;display:grid;justify-items:center;gap:2px}
.secthead{display:flex;align-items:center;gap:8px;justify-self:stretch}
.sectfold{flex:1;display:flex;align-items:center;gap:6px;min-height:36px;padding:0;background:none;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
.sectfold>i{margin-left:auto;font-style:normal}
body.touch .sectfold{min-height:44px}
/* a speed-up slip (B157): its painted document, how long at the foot, a small ⏩ mark in its corner — the cell's, the card's, a site's chip */
.slipmk{position:absolute;right:1px;top:1px;width:14px;height:14px;display:grid;place-items:center;border-radius:50%;background:#2f7d86;color:#fff;font:900 13px/10px system-ui,sans-serif;font-style:normal;box-shadow:0 0 0 1.5px #1b130b;pointer-events:none}
.ttpic,.slippic{position:relative}
.slippic{display:inline-block;width:26px;height:26px;vertical-align:middle;margin:-2px 2px -2px 0}
.slippic .iic{width:100%;height:100%}
.slippic .slipmk{width:11px;height:11px;font:900 10px/8px system-ui,sans-serif}
.it .slipdur{position:absolute;left:3px;bottom:2px;font:800 max(10px,calc(var(--cell) * .22))/1 ui-monospace,monospace;color:#7fc4cc;text-shadow:0 1px 2px #000;white-space:nowrap;pointer-events:none}
.it.dim{opacity:.28}
.it:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.mvhead{position:sticky;top:0;z-index:3;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 0;background:var(--panel)}
.mvhead .mvbulk{min-height:44px}
.mvhead .mvbulk:disabled{opacity:.45}
.mvhead .mvwhy{color:var(--ink-faint);font-size:11px}
.mvfilter{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
.mvfilter .c-chip{min-height:36px}
.mvfilter .c-chip.on{border-color:var(--accent);color:var(--accent)}
.undotoast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:var(--z-call);display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);padding:8px 8px 8px 14px;border-radius:12px;border:1px solid var(--line);background:var(--panel-2);color:var(--ink);box-shadow:0 6px 24px #000a}
.undotoast button{min-width:44px;min-height:44px;font-size:20px}
.qback{position:fixed;inset:0;z-index:var(--z-show);display:flex;align-items:flex-end;justify-content:center;background:#0008}
.qsheet{width:min(460px,100vw);padding:14px 16px calc(14px + env(safe-area-inset-bottom,0px));border-radius:16px 16px 0 0;border:1px solid var(--line);background:var(--panel);color:var(--ink);display:flex;flex-direction:column;gap:10px}
.qsheet .qhead{font-weight:700}
.qsheet .qrow{display:flex;align-items:center;justify-content:center;gap:12px}
.qsheet .qstep{min-width:56px;min-height:48px;font-size:22px;border-radius:10px;border:1px solid var(--line);background:var(--panel-2);color:var(--ink);touch-action:none}
.qsheet .qnum{width:7.5em;min-height:48px;text-align:center;font:800 22px/1 ui-monospace,monospace;border-radius:10px;border:1px solid var(--line);background:#0c0b09;color:var(--ink)}
.qsheet .qchips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.qsheet .qchip{min-height:44px;min-width:44px}
.qsheet .qchip:disabled{opacity:.4}
.qsheet .qok{min-height:48px}
.storepane .storehead{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.storepane .storetools{display:flex;gap:6px;margin:6px 0}
.storepane .storeq{flex:1;min-height:44px;padding:0 10px;border-radius:9px;border:1px solid var(--line);background:#0c0b09;color:var(--ink)}
.storerows{list-style:none;margin:0;padding:0}
.storerows .storegrp{margin:10px 0 4px;color:var(--ink-dim);font-size:12px;font-weight:700}
.storerow{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:4px 8px;border:0;border-bottom:1px solid #2a241a;background:none;color:var(--ink);text-align:left}
.storerow .storeic{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center}
.storerow .storename{flex:1}
.storerow .storen{font:800 13px/1 ui-monospace,monospace}
/* «👁 Огляд» (F119 §7, js/survey.js): the hero's portrait top left, the zones' chips along the foot, ⚠ and ✕ under
   the right thumb; the telescope's bar and the fight's buttons stay away (body.scoping) */
.mapbox .svopen{position:absolute;right:10px;bottom:10px;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid #ffe08a;
  background:#2a2210e8;color:#ffe08a;font-weight:800;font-size:15px}
.mapbox .svopen:disabled{border-color:var(--line);color:var(--ink-faint);background:#141210d8}
.survey{position:fixed;inset:0;pointer-events:none;z-index:var(--z-veil)}
.survey[hidden]{display:none}
.survey .svme{position:absolute;left:calc(12px + var(--safe-l,0px));top:calc(12px + var(--safe-t));display:flex;flex-direction:column;gap:4px;
  min-width:150px;max-width:min(60vw,260px);padding:8px 12px;border-radius:12px;border:1px solid #9ad8ff;background:#0c1827e8;color:#dbeefc;
  text-align:left;pointer-events:auto}
.survey .svme b{font-size:13px}
.survey .svhp{display:block;height:6px;border-radius:3px;background:#3a1a14;overflow:hidden}
.survey .svhp s{display:block;height:100%;background:linear-gradient(90deg,var(--hp),var(--hp-2));text-decoration:none}
.survey .svauto{font-size:11px;color:#9fb8cc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.survey .svchips{position:absolute;left:12px;right:200px;bottom:calc(14px + var(--safe-b));display:flex;gap:8px;overflow-x:auto;pointer-events:auto;
  scrollbar-width:none}
.survey .svchips button{flex:none;min-height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:#141210e0;color:var(--ink);font-weight:700}
.survey .svchips button.on{border-color:#ffe08a;color:#ffe08a}
.survey .svchips small{color:var(--ink-faint);font-size:10px}
.survey .svacts{position:absolute;right:12px;bottom:calc(14px + var(--safe-b));display:flex;gap:8px;pointer-events:auto}
.survey .svacts button{min-height:48px;padding:0 14px;border-radius:12px;border:1px solid #9ad8ff;background:#16304a;color:#e8f6ff;font-weight:800}
.survey .svacts button.primary{border-color:#ffe08a;background:#2a2210;color:#ffe08a}
@media (max-width:640px){
  .survey .svchips{right:12px;bottom:calc(72px + var(--safe-b))}
}
/* a place's danger for this hero (F127, js/threat.js): five small skulls filled by the step, a half one half lit, the
   word beside them, all in the step's colour from calm green through brass to rust */
.dngr{color:var(--thr);white-space:nowrap}
.dngr .sk i{font-style:normal;opacity:.28}
.dngr .sk i.on{opacity:1}
.dngr .sk i.half{opacity:1;color:transparent;background:linear-gradient(90deg,var(--thr) 50%,color-mix(in srgb,var(--thr) 28%,transparent) 50%);
  -webkit-background-clip:text;background-clip:text}
.dngr b{font-weight:700;color:var(--thr)}

/* the hand-to-hand trade (S11 K4, tradeui.js): a desktop's wide panel in the middle, a phone's whole sheet from the
   bottom; «Ти даєш | Ярема дає» side by side, the bag under them; the other's changed lines rust for 3 s */
#tradeAsk{top:calc(112px + var(--safe-t))}
/* a body's list thing by thing (S11 §4.4, bodyui.js) */
#bodyList{top:calc(112px + var(--safe-t));flex-direction:column;flex-wrap:nowrap;max-height:min(60vh,420px);width:min(360px,calc(100vw - 32px))}
.bodylist{display:flex;flex-direction:column;gap:8px;min-width:0}
.bodylist .bhead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.bodylist .bx{min-height:32px;padding:0 10px}
.bodylist .brows{list-style:none;margin:0;padding:0;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.bodylist .brow{display:flex;align-items:center;gap:8px}
.bodylist .bname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#trade{position:fixed;inset:0;z-index:var(--z-call);display:flex;align-items:center;justify-content:center;pointer-events:none}
#trade[hidden]{display:none}
.tradewin{pointer-events:auto;position:relative;width:min(720px,94vw);max-height:88vh;overflow:auto;padding:12px 14px;border-radius:14px;
  background:#0b1418f5;border:1px solid #3f7f9a;box-shadow:0 10px 40px #000a;font-size:13px}
.tradewin .thead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.tradewin .tx{min-width:40px;min-height:40px;border-radius:9px}
.tradewin .tchg{color:var(--c-rust);font-weight:700;margin:2px 0 6px}
.tradewin .tsides{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tradewin .tside{padding:8px;border-radius:10px;border:1px solid #2c4a57}
.tradewin .tside.ticked{border-color:#62f27f;box-shadow:inset 0 0 0 1px #62f27f55}
.tradewin .tside.rustgold .tgold{color:var(--c-rust)}
.tradewin h4{margin:0 0 6px;font-size:13px}
.tradewin .tgrid{display:grid;grid-template-columns:repeat(4,52px);gap:6px}
.tradewin .tbag .tgrid{grid-template-columns:repeat(auto-fill,52px)}
.tradewin .tcell{position:relative;width:52px;height:52px;padding:0;border-radius:8px;display:flex;align-items:center;justify-content:center}
.tradewin .tcell.tnone{border:1px dashed #2c4a57}
.tradewin .tcell.rust{outline:3px solid var(--c-rust);animation:trust .5s ease-in-out 6 alternate}
.tradewin .tq{position:absolute;right:3px;bottom:1px;font-size:11px;text-shadow:0 1px 2px #000}
.tradewin .tgold{margin-top:8px}
.tradewin .tfoot{display:flex;justify-content:center;margin:10px 0}
.tradewin .tok{min-height:44px;padding:0 22px}
.tradewin .tok.on{background:#1d3b25;color:#62f27f}
.tradewin .tbag{border-top:1px solid #2c4a57;padding-top:8px}
.tradewin .tstamp{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%) rotate(-8deg);font-size:34px;z-index:1;animation:tstamp .3s ease-out}
/* the merchant's trade window (F142): his till in the head, the sums, the top-up, the bag and his shelf */
.npcwin .thead b{flex:1}
.npcwin .tpurse{padding:3px 8px;border-radius:8px;background:#16313a;color:#cfe7ee;white-space:nowrap}
.npcwin .tpurse.dry{background:#3a1d16;color:var(--c-rust);font-weight:700}
.npcwin .tsum{margin-top:8px;font-weight:700}
.npcwin .thint{margin:8px 0 0;text-align:center}
.npcwin .thint.bad{color:var(--c-rust);font-weight:700}
.npcwin .tfoot{gap:8px;flex-wrap:wrap}
.npcwin .tcell.no{outline:2px dashed var(--c-rust);opacity:.7}
.npcwin .tcell .tno{position:absolute;left:3px;top:1px;font-style:normal;color:var(--c-rust);font-weight:700}
.npcwin .tcell.cant{opacity:.45}
.npcwin .tcell.dear .tprice{color:var(--c-rust)}
.npcwin .tcell.tcoin{width:auto;min-width:52px;padding:0 6px;font-weight:700;border:1px solid #c9a227;background:#2b2410}
.npcwin .tside .tgrid{grid-template-columns:repeat(4,minmax(52px,auto))}
.npcwin .tprice{position:absolute;left:0;right:0;bottom:-15px;font-size:10px;text-align:center;white-space:nowrap}
.npcwin .tshelf{border-top:1px solid #2c4a57;padding-top:8px;margin-top:8px}
.npcwin .tshelf .tgrid{grid-template-columns:repeat(auto-fill,52px);row-gap:20px;padding-bottom:16px;margin-top:6px}
.npcwin .tshelf .c-subtabs{border-bottom-color:#2c4a57}
.npcwin .tcell .tleft{position:absolute;left:3px;top:1px;font-style:normal;font-size:10px;color:#cfe7ee;text-shadow:0 1px 2px #000}
.npcwin .tcell.out{filter:grayscale(1);opacity:.5}
.npcwin .tcell.out .tprice{color:#8fb3c0}
.npcwin .tshelf .c-subtabs>*{color:#8fb3c0}
.npcwin .tshelf .c-subtabs>.on{color:#f3d36b;border-bottom-color:currentColor}
@keyframes trust{from{outline-color:var(--c-rust)}to{outline-color:transparent}}
@keyframes tstamp{from{transform:translate(-50%,-50%) rotate(-8deg) scale(2.2);opacity:0}to{transform:translate(-50%,-50%) rotate(-8deg) scale(1);opacity:1}}
@media (max-width:700px){
  #trade{align-items:flex-end}
  .tradewin{width:100vw;max-height:calc(100vh - var(--safe-t) - 8px);border-radius:14px 14px 0 0;padding-bottom:calc(12px + var(--safe-b))}
  .tradewin .tsides{gap:6px}
  .tradewin .tgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .tradewin .tcell{width:auto;aspect-ratio:1;height:auto;min-height:44px}
  .tradewin .tbag .tgrid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .npcwin .tshelf .tgrid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .npcwin .tside .tgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .npcwin .tcell.tcoin{grid-column:span 2;aspect-ratio:auto}
}
