/* Lineage II interface (Daniel 1. 11. 2026, his screenshots of the client: "rework it after the Lineage II UI, font, UI and
   all"). Loaded after the other sheets: Giran's status window, the client's menu at the bottom right (l2-hud.js) and the NPC's
   window as the client's Dialogue window. The text's font is game.js uiFont (Tahoma like the client unless Options say pixel). */

/* the menu at the bottom right: the client's MenuWnd (l2-hud.js, 173 x 46 client px from interface.xdat, 1:1 like the StatusWnd
   card at the top left and as far from its corner, 1rem); the System button stays pressed while its window is open */
#l2MenuBar{position:absolute;right:1rem;bottom:1rem;width:calc(173*var(--wpx));height:calc(46*var(--wpx));pointer-events:auto}
#l2MenuBar .xd-btn.on{background-image:var(--d)}
/* the first starts' balloon over the menu bar (e9 15. 11. 2026: rounded, and cut under the System window): sharp as every hint, the
   client's ToolTip frame (L2UI_CH3.ToolTip, wnd/tooltip.png, as #tooltip in l2-hudrun.css) in whole client px, no shadow of our own;
   the speech balloon's tail (Balloon1) still points at the button. Hidden while the System window is open over it. */
.l2-balloon{position:absolute;z-index:30;box-sizing:border-box;max-width:min(26rem,calc(100% - 16px));padding:calc(3*var(--wpx)) calc(6*var(--wpx));
 border:calc(3*var(--wpx)) solid transparent;border-image:url(./assets/ui/wnd/tooltip.png) 3 fill/calc(3*var(--wpx)) stretch;image-rendering:pixelated;cursor:pointer}
.l2-balloon>*{image-rendering:auto}
.l2-balloon::after{content:'';position:absolute;left:calc(var(--tail-x,50%) - 7px - 3*var(--wpx));bottom:calc(-14px - 3*var(--wpx));width:14px;height:14px;background:url(./assets/ui/balloon-tail.png) 0 0/100% 100% no-repeat}
body:has(#l2SystemMenu:not([hidden])) .l2-balloon{visibility:hidden}
.l2-balloon>p{margin:0;font:26px/1.3 var(--l2font);color:#f2e6c4;text-shadow:0 1px 1px #000}
:where(html[data-font="l2"]) .l2-balloon>p{line-height:calc(var(--l2k) * 1.45em)}
:where(html:not([data-font="l2"])) .l2-balloon>p{font-size:13px;line-height:17px}
/* the System window's rows (SystemMenuWnd, l2-hud.js): the client's icon at its canvas's size and its text, the text lit under the
   mouse, the icon pressed; Menu gold as on the old bar */
.l2-sysrow{margin:0;padding:0;border:0;border-radius:0;outline:0;background:none;box-shadow:none;cursor:pointer;font:inherit;color:#dcdcdc;text-align:left;-webkit-tap-highlight-color:transparent}
.l2-sysrow[hidden]{display:none}
.l2-sysrow>i{background:var(--n) 0 0/var(--bs) no-repeat;image-rendering:pixelated}
.l2-sysrow:active>i{background-image:var(--d)}
.l2-sysrow>span{line-height:calc(12*var(--wpx));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l2-sysrow:hover>span{color:#fff}
.l2-sysrow.gold>span{color:var(--gold,#e9c46a)}
/* Party Matching's count (party-match.css) on its row: beside the text, the row keeps its place */
#l2SystemMenu #l2MenuParty[data-pm-n]{position:absolute}
#l2SystemMenu #l2MenuParty[data-pm-n]::after{top:calc(12*var(--wpx));right:calc(10*var(--wpx))}

/* Giran's head as the client's status window: the name first (a click edits it), under it the town and how many are here;
   the guide and the main menu moved into the System list */
#townUi .town-head{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:.05rem .6rem;padding:.4rem .9rem .5rem;min-width:240px}
#townUi .town-head>b{grid-row:2;grid-column:1;font-weight:400;color:#cfc4ac}
#townUi #townState{grid-row:2;grid-column:2}
#townUi #townName,#townUi #townNameInput{grid-row:1;grid-column:1/-1;justify-self:start}
#townUi #townName{padding:0;border:0;background:none;box-shadow:none;font:26px/1.15 var(--l2font);font-weight:700;color:#fff;max-width:14em}
#townUi #townName:hover{color:var(--gold)}
#townUi #townGuide,#townUi #townMenu{display:none}

/* the NPC's window as the client's Dialogue window: over the world without darkening it, at the left, the options as the
   client's wide bars; walking on closes it (game.js) */
#npcModal{background:none;backdrop-filter:none;pointer-events:none;justify-content:flex-start;align-items:center;padding:0 0 0 1.5rem}
#npcModal .npc-inner{pointer-events:auto;width:min(520px,calc(100vw - 2rem));margin:0;text-align:left;padding:1rem 1.1rem 1.1rem}
#npcModal .npc-inner>.eyebrow{margin:-1rem -1.1rem .6rem}
#npcModal .npc-inner>h2,#npcModal .npc-inner>p{text-align:left}
#npcModal .npc-option{flex-direction:row;justify-content:center;align-items:baseline;gap:.45em;text-align:center;padding:.35rem .8rem;background:linear-gradient(#36312a,#211e19);border:1px solid #5d5545;border-radius:0;box-shadow:inset 0 1px 0 #ffffff14}
#npcModal .npc-option:hover{background:linear-gradient(#4a4234,#2a261f);border-color:#8a7f66}
#npcModal .npc-option small::before{content:'· '}
/* the Gatekeeper's maps (game.js talkTo): under the name the grade, the set with your pieces of it and the final raid boss,
   then the set's pieces as icons like the menu's zone list (✓ owned, the rest dimmed) */
#npcModal .npc-map{flex-wrap:wrap;row-gap:.3rem;padding:.4rem .8rem .5rem}
#npcModal .npc-map>:is(.npc-map-info,.npc-map-drops){flex-basis:100%;display:flex;justify-content:center;align-items:center;gap:.5rem}
#npcModal .npc-map-info .grade-pill{min-width:0;height:auto;padding:.05rem .4rem;font-size:22px}
#npcModal .npc-map-info em{font-style:normal;color:var(--gold)}
#npcModal .npc-map-info small::before{content:''}
#npcModal .npc-map-info :is(em,small)~small::before{content:'· '}
#npcModal .npc-map-drops{gap:.35rem}
/* who looks for a party on the map (Party Matching, 11. 11. 2026): a link line as in the client's NPC dialogues, green with someone */
#npcModal .npc-map>.npc-map-party{flex-basis:100%;text-align:center;font-size:26px;color:#b09b79;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#npcModal .npc-map>.npc-map-party.busy{color:#8fd16a}
#npcModal .npc-map>.npc-map-party:hover{color:#f3e2b3}
#npcModal .npc-map>.npc-map-party[hidden]{display:none}
#npcModal .zdrop{position:relative;display:inline-flex;line-height:0}
#npcModal .zdrop .icon{width:32px;height:32px;border-color:#6e624d}
#npcModal .zdrop.need .icon{opacity:.5}
#npcModal .zdrop.own .icon{border-color:#68a84e}
#npcModal .zdrop>i{position:absolute;right:-4px;bottom:-4px;width:14px;height:14px;display:grid;place-items:center;border-radius:50%;border:1px solid #000;background:#4c8535;color:#fff;font:700 10px/1 var(--l2font);font-style:normal;-webkit-text-stroke:0}

/* the section headings as the client's windows draw them (Daniel 1. 11. evening on the Armory and Ascension windows: "it looks
   insanely vibe coded", "the left edges of the headings too"; docs/UI_STYLE.md has no lone left edges): plain text in the
   client's label gold over a 1 px line of its L2UI.SquareGray (63, 62, 63 at 80 %), no bar on the left, no gradient strip, no
   rounded box; a heading inside a row (the Quests' compact goal) without the line */
.label{padding:0 0 .3rem;background:none;border:0;border-bottom:1px solid #3f3e3fcc;border-radius:0;box-shadow:none;color:#b09b79}
.goal-text .label{border:0;padding:0}

/* the Armory's tabs as one strip of the client's window tabs (Daniel 1. 11. evening: "the tabs look like tablets next to each
   other, one bar at the top in the Lineage style"): L2UI_CH3.manor1_tab2 for the others and manor1_tab1 for the open one, its
   bottom open into the window, touching each other over one line in the tabs' own edge colour (137, 124, 99); the same strip
   on every tab (style.css made pills of them when the Forge or the Character tab is open) */
.armory-head .tabs,.armory.forge-open .armory-head .tabs{gap:0;padding:.5rem .9rem 0;border-bottom:1px solid #897c63;align-items:flex-end}
.armory-head .tabs button,.armory.forge-open .armory-head .tabs button{flex:0 0 auto;margin:0 0 -1px;padding:.32rem .9rem .26rem;min-width:calc(var(--l2text,13px) * 8.2);border:0;border-radius:0;background:url(./assets/ui/l2tabs/manor1_tab2.png) 0 0/100% 100% no-repeat;box-shadow:none;color:#b8ad96}
.armory-head .tabs button.active,.armory.forge-open .armory-head .tabs button.active{background:url(./assets/ui/l2tabs/manor1_tab1.png) 0 0/100% 100% no-repeat;color:var(--bright)}
.armory-head .tabs button:hover:not(:disabled){box-shadow:none;filter:brightness(1.25);color:var(--bright)}

/* the menu's class facts (HP, Starts with, Talents spent): label and value centred in their box, not on one baseline with the
   value's own top margin (Daniel 1. 11. evening: "the text shifted down, not in the middle"); one line height for both, over
   interface.css's 1.15 of 26 px (its :is() counts an id, hence the :not(#\#) lift) */
#menu .facts>div{align-items:center}
#menu .facts :is(small,b){margin:0}
:where(html[data-font="l2"]) #menu .facts :is(small,b):not(#\#):not(#\#){line-height:calc(var(--l2k) * 1.3em)!important}

/* the menu's pieces beside the hero open the inventory at their slot (game.js), where the row is lit a moment in the client's
   gold */
#menu .equip-col .icon{cursor:pointer}
#menu .equip-col .icon:hover{filter:brightness(1.2)}
.armory-body .slot-row.flash{animation:slot-flash 1.6s ease-out}
@keyframes slot-flash{0%,35%{box-shadow:inset 0 0 0 1px #b09b79,0 0 .6rem #b09b7988;background-color:#3a332699}100%{box-shadow:none}}

/* the Armory's equipment rows (Daniel 1. 11. evening with a screenshot: "badly done, the positions jumbled"): the item's icon
   at the top by its name; Wear and Look a column of labels with their buttons beside them, a second row of buttons under the
   first button, not under the label (game.js wraps them in .pick-list); with the Lineage II font smaller grade buttons */
.armory-body .slot-row{align-items:flex-start}
.armory-body :is(.wear-pick,.looks){display:grid;grid-template-columns:3.8rem minmax(0,1fr);align-items:start;column-gap:.4rem}
.armory-body :is(.wear-pick,.looks)>small{display:flex;align-items:center;min-width:0;height:36px}
.armory-body .looks>small{height:max(32px,round(nearest,2.4rem,32px))}
.armory-body .pick-list{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem}
:where(html[data-font="l2"]) .armory-body :is(.wear-pick,.looks){grid-template-columns:calc(var(--l2text) * 4.4) minmax(0,1fr)}
:where(html[data-font="l2"]) .armory-body .wear-pick .pin{min-height:calc(var(--l2text) * 2.2);min-width:calc(var(--l2text) * 2.4);padding:0 .3rem}
:where(html[data-font="l2"]) .armory-body .wear-pick>small{height:calc(var(--l2text) * 2.2)}

/* the chat as the client's: lower and less dark, the world shows through */
#townUi .town-chat{width:min(520px,calc(100vw - 2rem));background:#0000006b;border-color:#5d554599}
#townUi .town-log{height:min(190px,24vh)}

/* every text drawn like the names over the heads (scene.js labels: Tahoma with a dark outline under it, which also gives the
   canvas's crisp grey edges instead of the coloured ones); Daniel 1. 11. evening on the labels: "use this font for everything,
   it is the closest to the pixel one". The outline is painted first, so the letters keep their width; it takes the text's own
   alpha, so a text hidden by a transparent colour (the windows' Close under its icon) stays hidden */
html[data-font="l2"] body{-webkit-text-stroke:3px rgb(from currentColor 11 9 7 / alpha);paint-order:stroke fill}

/* the few texts the other sheets size in rem (the guide's title, the menu's ? and ♫, the forge's arrow) get px like the rest, so
   the Lineage II font's size-adjust (game.js uiFont, 26 px drawn as 0.72 rem) does not shrink them a second time: 36 px is 1 rem */
:where(html[data-font="l2"]) :is(#menu .icon-btn,.transmute-row .tm-arrow){font-size:36px}
:where(html[data-font="l2"]) .about-inner h2{font-size:72px}
/* the windows other sheets size in rem (the Symbol Maker's rows .85 to 1 rem, Daniel 1. 11. evening: "terribly small"), and the
   new windows to come: their text 26 px like interface.css's windows, which the font draws as 0.72 rem, not a rem size it would
   shrink a second time; window-specific rules (two classes and more, !important) keep their own size */
:where(html[data-font="l2"]) .modal-inner :is(p,small,span,b,em,button,label,li,h3,td,th):where(:not(.close,.noicon,.sigil)),:where(html[data-font="l2"]) .modal-inner>.eyebrow{font-size:26px;line-height:calc(var(--l2k) * 1.45em)}
/* the line spacing to the drawn size: the text keeps its 26 px in CSS, so the line heights the other sheets give it (1.05 to 1.25
   of 26 px, often !important) would space the 0.72 rem lines about twice apart on Full HD. --l2k is the drawn share of the CSS
   size (game.js uiFont), so calc(var(--l2k) * 1.5em) is 1.5 of what is drawn: the windows' text (interface.css's rule, the same
   selectors), the menu's race names, and everywhere the texts that wrap (paragraphs, list rows, small lines, the tooltip) over
   the other sheets' id rules (the :not(#\#) lift it); the tooltip as narrow as its smaller text */
:where(html[data-font="l2"]) :is(.armory-body,.options-body,.rules-inner,.results-inner,.update-inner,.journey-look-info,.journey-look-browser,.vault-body,.vault-inner,.choice-inner,#zoneList,#raceList,#classList) :is(p,small,span,b,em,button,label,li,h3,td,th){line-height:calc(var(--l2k) * 1.5em)}
:where(html[data-font="l2"]) #menu .race-text b{line-height:calc(var(--l2k) * 1.5em)!important}
:where(html[data-font="l2"]) :is(p,li,dd,small:not(.icon *),#tooltip,#tooltip *):not(#\#):not(#\#):not(#\#){line-height:calc(var(--l2k) * 1.45em)!important}
:where(html[data-font="l2"]) #tooltip{max-width:min(30rem,calc(100vw - 1rem))}

/* the small labels (rank badges, keys, small lines) with the Lineage II font: game.js uiFont draws 26 px as 0.72 rem, so the
   rules asking for 13 px or less get 24 px, drawn as 0.66 rem (the list is written by scripts/l2-ui-small-text.py below) */
/* small-text floor: begin (scripts/l2-ui-small-text.py) */
html[data-font="l2"] :is(.spec-option small,.dps-modes button,.journey-preview-controls .btn,.journey-view-actions .btn,#menu #collectionBonus,#menu .hero-buttons .framed small,#menu .race-box ul,#menu .gender-seg button,#menu .race-text :is(small,em,i),#menu .facts small,#menu .zone p,#menu .zone .sub,#menu .boss-line :is(b,span,small),#menu .boss-line.final small,#menu .asc-step small,#menu .enter small,#menu .mode>b,#menu #coopButton small,#menu .keys,#menu .hero-info #collectionBonus,.choice-timer,#menu .mode-head,.version-in-keys.update-entry,.version-tag.update-entry,.armory-body .icon .rank,.armory-body .talent-rank,.specialized .tier-need,:is(.armory-body,.choice-inner,.vault-inner) .icon :is(b,small,span),.specialized .talent-rank,#menu .zone-progress .zone-clear,.expedition-pips em,#menu #zoneList .zone-name .sub,#menu #zoneList .zone-state,#menu #zoneList .zone-detail>p,#menu #zoneList .zone-detail .sub.lock-why,#menu #zoneList .gear-gap small,#menu #zoneList .mobs b,#menu #zoneList .boss-line .boss-who small,.slot-bar.dash .dash-icon .key,.card>kbd,.cb-label kbd,#pauseModal .icon>b.rank,#pauseModal .icon>b.epic-plus,.armor-scroll .count){font-size:24px!important}
/* small-text floor: end */

/* Kosmetika (Claude emoji, 1. 11. 2026; game.js cosmeticsTab, journey-ui.js dragons): Daniel wanted no scrolling and quicker
   picking, so the looks are an inventory grid of the client's icons (32 px like the inventory, 64 px on a 4K screen) in dark
   slots of one tone (the rarity in the tooltip and the filter), worn in gold with a check, tried on in blue, locked dimmed; the filters are the game's
   toggle buttons; under the grid what is worn or tried on (with Buy & wear for a look of the Vault); the dragon collection one
   row a look. */
.armory-body .cos-side{display:flex;flex-direction:column}
.armory-body .cos-filter{display:flex;flex-wrap:wrap;gap:.25rem;width:auto;margin:.35rem 0 0}
.armory-body .cos-filter .btn{flex:0 1 auto;min-width:0;padding:.15rem .6rem}
.armory-body .cos-grid{--cos-cell:max(32px,round(nearest,2.2rem,32px));display:grid;grid-template-columns:repeat(auto-fill,minmax(calc(var(--cos-cell) + 8px),1fr));gap:4px;margin:.55rem 0 .25rem}
.armory-body .cos-cell{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;margin:0;padding:3px;font:inherit;color:inherit;cursor:pointer;background:rgba(0,0,0,.4);border:1px solid #000;border-radius:0;box-shadow:inset 0 0 0 1px #4a494a}
.armory-body .cos-cell .icon{width:var(--cos-cell);height:var(--cos-cell);margin:0;border:0;box-shadow:none}
.armory-body .cos-cell:hover{background:rgba(255,255,255,.07)}
.armory-body .cos-cell.worn{box-shadow:inset 0 0 0 2px var(--gold),0 0 .45rem rgba(233,196,106,.5)}
.armory-body .cos-cell.trying{box-shadow:inset 0 0 0 2px #4471b2,0 0 .45rem rgba(68,113,178,.6)}
.armory-body .cos-cell.locked .icon{filter:grayscale(.7) brightness(.55)}
.armory-body .cos-cell.worn::after{content:'✓';position:absolute;right:2px;bottom:0;font-size:22px;line-height:1;color:var(--gold);text-shadow:0 0 2px #000,0 0 2px #000}
.armory-body .cos-status{display:flex;flex-direction:column;gap:.35rem;margin:.55rem 0 .2rem;padding-top:.45rem;border-top:1px solid #3f3e3fcc}
.armory-body .cos-on{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.6rem;align-items:center}
.armory-body .cos-on .icon{width:32px;height:32px}
.armory-body .cos-on span{display:flex;flex-direction:column;min-width:0}
.armory-body .cos-on small{color:var(--muted)}
.armory-body .cos-on.trying small{color:#9cc0f0}
.armory-body .cos-buy{margin-left:.35rem;padding:.05rem .55rem}
.armory-body .dragon-label{text-transform:uppercase}
.armory-body .dragon-list{display:flex;flex-direction:column;gap:.35rem}
.armory-body .dragon-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.6rem;align-items:center;padding:.4rem .55rem;border:1px solid #000;border-radius:var(--r-win);background:var(--inset);box-shadow:inset 0 0 0 1px var(--bevel)}
.armory-body .dragon-row.owned{box-shadow:inset 0 0 0 1px var(--gold2)}
.armory-body .dragon-row .icon{width:32px;height:32px}
.armory-body .dragon-body{display:flex;flex-direction:column;min-width:0}
.armory-body .dragon-actions{display:flex;gap:.3rem}
.armory-body .dragon-actions .btn{padding:.1rem .55rem;white-space:nowrap}
/* a look's model turning above its tooltip (cosmetic-preview.js), on a dark round stage like the Armory's */
#tooltip .tip-model{width:min(13rem,60vw);aspect-ratio:1;margin:0 auto .45rem;border-radius:0;background:radial-gradient(circle at 50% 45%,#3a3328 0,#15120e 70%,#0b0a08 100%);box-shadow:inset 0 0 0 1px #4a494a}
#tooltip .tip-model canvas{display:block}
#tooltip .tip-model.tip-model-none{display:none}

/* The map list in one quiet tone (Claude emoji, 1. 11. 2026; Daniel: "strašně barevné ... ať to je v duchu Lineage, víc
   monotónní", and the grade said twice, a letter in a box next to "B-grade": game.js now writes only the words). The maps'
   lines, the sets and the piece counts in the windows' beige and grey, the grade boxes elsewhere without their rainbow. */
#menu .zone .sub{color:#b09b79}
#menu .tier-label>em{color:#cfc3a6}
#menu .zone-badge.farm-badge,#menu .zone-badge.done-badge{border-color:#6b5f4a;color:#d8ccb0;background:#16130fe6}
#menu .zone-badge.next-badge{border-color:#8c7647;color:#e6d9b8;background:#1f190ee6;box-shadow:none}
.grade-pill.grade-D,.grade-pill.grade-C,.grade-pill.grade-B,.grade-pill.grade-A,.grade-pill.grade-S,.grade-pill.grade-Epic{border-color:#6b5f4a;color:#e0d6bd;box-shadow:none}

/* Claude „město“: Mammon's Wares filters (a kind of look, the missing ones), 1. 11. 2026 */
#vaultSide .vault-filters{display:flex;flex-wrap:wrap;gap:.3rem;margin:.25rem 0 .6rem}#vaultSide .vault-filters .btn{min-width:0;padding:.2rem .6rem}

/* Claude „město“: Options like the client (Daniel 2. 11. 2026: "the whole settings in the browser is quite scuffed"): a toggle is
   the client's check box (check.png / check-on.png, as the seals' in endgame.css) instead of a phone switch; the sliders keep
   the CP gauge and the grey button in Firefox too (it only knows ::-moz-range-*, the window showed a bare white dot); the window
   is opaque enough that the menu behind does not read through without a backdrop blur; rows compact enough that the longest
   tab fits 1366 x 768 */
#optionsModal .options-inner{background:rgba(30,27,23,.95)}
#optionsModal .opt-row{min-height:2.15rem;padding:.12rem .6rem}
#optionsModal .switch{flex:none;width:1.5rem;height:1.5rem;padding:0;border:0;border-radius:0;background:url(./assets/ui/check.png) 0 0/100% 100% no-repeat;box-shadow:none;cursor:pointer}
#optionsModal .switch.on{background-image:url(./assets/ui/check-on.png)}
#optionsModal .switch i{display:none}
#optionsModal .switch:hover{filter:brightness(1.3)}
#optionsModal .switch:focus-visible{outline:1px solid #b09b79;outline-offset:2px}
.opt-control input[type=range]::-moz-range-track{height:.6rem;border:1px solid #000;border-radius:0;box-shadow:0 0 0 1px var(--line2);background:url(./assets/ui/gauge-cp-back.png) 0 0/100% 100%}
.opt-control input[type=range]::-moz-range-progress{height:.6rem;border-radius:0;background:url(./assets/ui/gauge-cp.png) 0 0/100% 100%}
.opt-control input[type=range]::-moz-range-thumb{width:1rem;height:1.5rem;border:1px solid;border-color:#c9bd9e #8c826b #6f6553 #9d917a;border-radius:0;background:url(./assets/ui/btn-grey.png) 0 0/100% 100% #3a352d;box-shadow:inset 0 0 0 1px #000a,0 .1rem .3rem #000c}
.opt-control input[type=range]:hover::-moz-range-thumb{background-image:url(./assets/ui/btn-grey-over.png);border-color:#efe3c2 #b9ab88 #9d917a #c9bd9e}

/* A player's menu on the right button in town (game.js townPlayerMenu, Claude "město" 2. 11. 2026): the client's tooltip look (black
   with a grey line inside a black edge), his name at the top, the rows highlighted in the client's TextSelect blue */
#townUi .town-player-menu{position:absolute;z-index:8;display:flex;flex-direction:column;font:26px var(--l2font);line-height:calc(var(--l2text,22px) * 1.35);min-width:calc(var(--cpx) * 110);padding:calc(var(--cpx) * 3);background:rgba(0,0,0,.97);border:max(1px,var(--cpx)) solid #525152;border-radius:0;box-shadow:0 0 0 1px #000,0 .4rem 1.2rem #000c}
#townUi .town-player-menu>b{padding:calc(var(--cpx) * 1) calc(var(--cpx) * 5) calc(var(--cpx) * 3);border-bottom:1px solid #525152;margin-bottom:calc(var(--cpx) * 2);font-weight:700;color:#fff;white-space:nowrap}
#townUi .town-player-menu>button{display:block;width:100%;min-height:0;padding:calc(var(--cpx) * 2) calc(var(--cpx) * 5);background:none;border:0;border-radius:0;box-shadow:none;text-align:left;color:#d8d2c2;font:inherit;white-space:nowrap;cursor:pointer}
#townUi .town-player-menu>button:hover:not(:disabled),#townUi .town-player-menu>button:focus-visible{background:rgba(68,113,178,.6);color:#fff;outline:0;filter:none}
#townUi .town-player-menu>button:disabled{color:#6f6a60;cursor:default}

/* The welcome's name is asked for (game.js needName, Claude "město" 2. 11. 2026): why under the field, the field in red when Play
   was pressed without it */
#welcomeModal .welcome-need{grid-column:2;margin:0;font:26px/1.2 var(--l2font);color:var(--muted);text-align:left}
#welcomeName.need{border-color:#c4553f;box-shadow:0 0 0 1px #c4553f99}
#welcomeName.need~.welcome-need{color:#ff8a6a}
@media (max-width:860px){#welcomeModal .welcome-need{grid-column:1}}

/* The party (Claude "město" 2. 11. 2026): the names in the town's party box answer a click (target) and the right button (his
   menu, mine Leave); the leader's Remove from party in the Co-op window's list */
#townUi .town-member{cursor:pointer}#townUi .town-member:hover{color:var(--gold)}
.coop-player:has(.coop-kick){grid-template-columns:auto auto 1fr auto auto}
.coop-player .coop-kick{min-height:0;padding:.15rem .5rem}

/* The name only (game.js nameAsk, Claude "město" 2. 11. 2026): a player who went through the welcome before the name was asked for
   gets this small window on the way to the town, not the whole setup again; field and texts as the welcome's */
.name-inner{max-width:min(600px,calc(100vw - 2rem))}
.name-inner .name-intro{font:26px/1.25 var(--l2font);color:var(--muted);text-align:center;margin:.2rem 0 .8rem}
#nameInput{font:26px/1.2 var(--l2font);color:var(--bright);background:#000000a6;border:1px solid var(--line2);border-radius:0;padding:.25rem .5rem;width:100%;box-sizing:border-box}
#nameInput.need{border-color:#c4553f;box-shadow:0 0 0 1px #c4553f99}
.name-inner .name-need{font:26px/1.2 var(--l2font);color:#ff8a6a;margin:.35rem 0 0;text-align:left}

/* The party as the client's PartyWnd (game.js townPartyBox, Claude "město" 2. 11. 2026): each of the others in the small window of
   the target window (SmallWindow_Back1-3_ex, target-frame.png as in l2-chat.css), the leader's crown (party_leadericon), the name
   white, the class grey and the CP, HP and MP bars (cpbar, hpbar, mpbar from L2UI_CH3); under them who picks the map and Leave */
#townUi .town-party{top:6.2rem;display:flex;flex-direction:column;align-items:flex-start;gap:calc(var(--cpx) * 2);padding:0;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;font:26px/1.2 var(--l2font);color:var(--muted)}
#townUi .town-party-list{display:flex;flex-direction:column;gap:calc(var(--cpx) * 2)}
:is(#townUi,#partyFrame) .town-member{display:flex;flex-direction:column;gap:calc(var(--cpx) * 1);box-sizing:border-box;width:calc(var(--cpx) * 156);padding:calc(var(--cpx) * 5) calc(var(--cpx) * 24) calc(var(--cpx) * 6) calc(var(--cpx) * 9);border:0 solid transparent;border-image:url(./assets/ui/target-frame.png) 30 16 4 16 fill/calc(var(--cpx) * 15) calc(var(--cpx) * 8) calc(var(--cpx) * 2) calc(var(--cpx) * 8) stretch;cursor:pointer}
:is(#townUi,#partyFrame) .town-member>b{color:#fff;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#townUi .town-member:hover>b{color:var(--gold)}
:is(#townUi,#partyFrame) .town-member.leader>b::before{content:'';display:inline-block;width:calc(var(--cpx) * 11);height:calc(var(--cpx) * 11);margin-right:calc(var(--cpx) * 3);vertical-align:-8%;background:url(./assets/ui/party-leader.png) 0 0/100% 100% no-repeat;image-rendering:pixelated}
:is(#townUi,#partyFrame) .town-member>small{color:#a89f8c;font-size:.85em;white-space:nowrap}
/* the party frame of a run: the class shortens with three dots, the state after it (the reconnect countdown) stays whole (session
   "emoji" 6. 11. 2026: "Elemental Summoner · znovu se připojuje 2:30" went past the frame) */
#partyFrame .party-member>small{display:flex;min-width:0}
#partyFrame .party-member>small>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
#partyFrame .party-member>small>span+span{flex:none;white-space:pre}
:is(#townUi,#partyFrame) .town-member-bars{display:flex;flex-direction:column;gap:max(1px,var(--cpx));margin-top:calc(var(--cpx) * 1)}
:is(#townUi,#partyFrame) .town-member-bars span{display:block;height:calc(var(--cpx) * 5);background:url(./assets/ui/party-hp.png) 0 0/100% 100% no-repeat}
:is(#townUi,#partyFrame) .town-member-bars .cp{background-image:url(./assets/ui/party-cp.png)}
:is(#townUi,#partyFrame) .town-member-bars .mp{background-image:url(./assets/ui/party-mp.png)}
#townUi .town-party-hint{margin:0;color:#a89f8c}
/* A GM's name (the town server took his key: town.js gm, game.js townGm; party.js GM_COLOR over the heads; Claude "město"
   2. 11. 2026) in the chat, the target window and the party window */
#townUi #townLog b.gm,#townUi #townTargetName.gm,#townUi .town-member>b.gm{color:#ffb43c}
#townUi #townLog b.gm[data-id]:hover{color:var(--gold)}
/* A shout of any town ("!words", town.js shouted; Claude "město" 3. 11. 2026): the whole line orange like Lineage II's shouts,
   the town in brackets before the name */
#townUi #townLog .town-line.shout{color:#ff7200}
/* The party in a run as the town's party window (coop-ui.js hud; Claude "město" 3. 11. 2026, Daniel: "leave it as it is in Giran,
   so the UI stays the same"): the same small windows, font and bars as #townUi .town-member above; the HP bar as the ally has it
   (party-hp over party-hp-back), CP and MP full as in town; his buffs under the bars; a downed, reconnecting or choosing ally as before */
#partyFrame{--cpx:calc(var(--l2text,22px) / 11)}
#partyFrame.party-frame{gap:calc(var(--cpx) * 2);width:auto;font:26px/1.2 var(--l2font);color:var(--muted)}
#partyFrame .town-member{cursor:default}
#partyFrame .town-member-bars .hp{background:url(./assets/ui/party-hp.png) 0 0/var(--hp,100%) 100% no-repeat,url(./assets/ui/party-hp-back.png) 0 0/100% 100% no-repeat}
#partyFrame .party-member.down{opacity:.75}#partyFrame .party-member.down>small{color:#ffe08a}#partyFrame .party-member.down .hp{filter:grayscale(1)}
#partyFrame .party-member.away{opacity:.6}#partyFrame .party-member.away>small{color:#ffd28a}
#partyFrame .party-member.picking>small{color:#ffe9a8}
#partyFrame .party-member .party-buffs{margin-top:calc(var(--cpx) * 1)}
/* An ally's buffs in the party window are PartyWnd's (system/interface.u, PartyWnd HandlePartySpelledList: StatusIconCtrl
   info.Size = 16, the compact window 10, 12 in a row; Daniel 8. 11. 2026 from a co-op run with a BD: "and why are those icons so
   big? :D"): 16 client px each instead of the default .icon (64 px on a large screen), the time left as a client px bar under
   each, its tip on a mouse over (a phone shows no tips in the HUD, game.js); coop.css .party-row .party-buff was the older party
   list and never reached this window (Claude "emoji", task H) */
#partyFrame .party-buffs{gap:calc(var(--cpx) * 3) calc(var(--cpx) * 1)}
#partyFrame .party-buff{box-sizing:border-box;width:calc(var(--cpx) * 16);height:calc(var(--cpx) * 16);position:relative;pointer-events:auto}
#partyFrame .party-buff .left{bottom:calc(var(--cpx) * -2);height:max(1px,var(--cpx))}
/* An ally's ping right in the row of his class (1a 21. 11. 2026 from Daniel 21:44, Fable K5): the font and size of that row, the
   window stays PartyWnd's 164 client px (l2-hudwnd.css); its tip is the client's tooltip (data-tip, game.js, a tap on a phone).
   Colours only the client's: good #DCDCDC, the windows' text (interface.xdat, TextBox of 13 windows, MainWnd, InventoryWnd, GMWnd);
   warn #FFFF00 and bad #FF0000, the colours of system/systemmsg-e.dat (the items got, the M. Atk. messages; docs/client-ui-assets.md) */
/* The row's right end as far from the frame as the name from its left (1a 22. 11. 2026, the ping on the back's arrow on a phone on
   its side): PartyWnd's PlayerName at x 8 (interface.xdat PartyStatusWnd0, 164 x 46; the client gives the class and ping no
   control, its NameCtrl runs to 158 over the back's right), the SmallWindow back (wnd/smallwnd.png, 52 x 46, l2-hudwnd.css's
   border-image 20 wpx on the right) has no line at its left, at its right the arrow from x 43 and the light line at x 45 of 52,
   9 and 7 wpx from the edge. The row ends at 164 - 10 hpx (.town-member's padding), so the ping (the row's last, in every row)
   keeps 9 wpx - 2 hpx more: its text ends 8 hpx before the arrow (7 client px at --hk 1, 6.5 at 1.25) */
#partyFrame .party-ping{flex:none;margin-left:auto;margin-right:calc(9*var(--wpx) - 2*var(--hpx));padding-left:calc(var(--hpx) * 4);white-space:nowrap;pointer-events:auto;cursor:default}
#partyFrame .party-ping.good{color:#dcdcdc}
#partyFrame .party-ping.warn{color:#ffff00}
#partyFrame .party-ping.bad{color:#ff0000}
/* the row over the allies (the connection's state, and the warning High ping, Lag spike) is a small window as each ally's (smallwnd,
   l2-hudwnd.css .town-member), no background, shadow or rounding of its own (coop.css .party-net), its text the windows' #DCDCDC,
   the warning's #FFFF00 */
#partyFrame .party-net{box-sizing:border-box;width:calc(164*var(--hpx));min-height:calc(30*var(--hpx));margin:0;
 padding:calc(8*var(--hpx)) calc(10*var(--hpx)) calc(8*var(--hpx)) calc(8*var(--hpx));display:flex;align-items:center;
 font:var(--hfont)/calc(14*var(--hpx)) var(--l2font);color:#dcdcdc;background:none;box-shadow:none;border-radius:0;border:0 solid transparent;
 border-image:url(assets/ui/wnd/smallwnd.png) 17 20 2 16 fill/calc(17*var(--wpx)) calc(20*var(--wpx)) calc(2*var(--wpx)) calc(16*var(--wpx)) stretch;
 image-rendering:pixelated;white-space:normal;overflow-wrap:anywhere}  /* (a long warning wraps to a second line, never cut) */
#partyFrame .party-net.warn{color:#ffff00}
/* Tabs do not move the window (Sigr, #bug-reports 5. 11. 2026: "Options modal: layout shift when you click through tabs", "same in character";
   Claude "město" 6. 11. 2026). Options: a fixed height instead of the height of the tab, the body scrolls inside (title and tab bar never shrink),
   so the window is not re-centred on every click. */
#optionsModal .options-inner{display:flex;flex-direction:column;height:min(54rem,100%)}
#optionsModal .options-inner>.titlebar,#optionsModal #optionsTabs{flex:none}
#optionsModal .options-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
#optionsModal .options-body>*{flex-shrink:0}/* the rows keep their own height, the body scrolls instead */
/* Armory: Enchant no longer widens the frame (style.css), its window now stands at the right edge of the same 104rem frame as the other tabs
   (--forge-gap = the space left and right of that frame on a wide screen); the hero and the dark background step aside by the same gap.
   Only above 860 px: a narrower window keeps the dark cover of style.css (the frame fills it there). */
@media (min-width:861px){.armory.forge-open{--forge-gap:max(0px,calc((100vw - 104rem) / 2));background:linear-gradient(90deg,transparent 0 calc(100% - var(--forge-gap) - min(50rem,52vw) - 8rem),rgba(0,0,0,.6) calc(100% - var(--forge-gap) - min(50rem,52vw) - 1.6rem))}}
@media (min-width:861px){#menu:has(~ #armoryModal.forge-open:not([hidden])) .hero-panel{left:calc(max(0px,calc((100vw - 104rem) / 2)) + 1.5rem);right:calc(max(0px,calc((100vw - 104rem) / 2)) + min(50rem,52vw) + 4rem)}}
/* Armory: every tab has the head and the body as two boxes like Character and Enchant, so the body starts at the same height on all of them
   (it used to be one window 10 px higher). */
.armory:not(.char-open):not(.forge-open) .armory-head{border-bottom:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel),0 .4rem 1.6rem #0009}
.armory:not(.char-open):not(.forge-open) .armory-body{margin-top:.6rem;border-top:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel),0 .4rem 1.6rem #0009}
/* Clarissa's map cards: the info line wraps whole items (a long boss name broke every item into a column, 12. 11. 2026) */
#npcModal .npc-map>.npc-map-info{flex-wrap:wrap;row-gap:.1rem;column-gap:.5rem}
#npcModal .npc-map-info>:is(em,small){white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
/* Party role bonus (role-bonus.js, Daniel 29. 11. 2026): its line under the party windows, in the town and in a run, and the
   town's line under it of who picks the map: a window like the members' above it (PartyStatusWnd's width, background and edge,
   which cover the world's titles behind), the text starting under their names and one size in the town and in a run (the HUD
   windows' --hfont). Each part of the bonus on a line of its own (role-ui.js roleFill; testers 30. 11. 2026). Its tip on a mouse
   over or a tap (game.js). The run result's line is a line of the results (role-line) */
:is(#townUi,#partyFrame) :is(.party-role,.town-party-hint){box-sizing:border-box;margin:0;width:calc(164*var(--hpx));max-width:100%;
 padding:calc(5*var(--hpx)) calc(10*var(--hpx)) calc(5*var(--hpx)) calc(8*var(--hpx));border:0 solid transparent;border-radius:0;
 border-image:url(assets/ui/wnd/smallwnd.png) 17 20 2 16 fill/calc(17*var(--wpx,1px)) calc(20*var(--wpx,1px)) calc(2*var(--wpx,1px)) calc(16*var(--wpx,1px)) stretch;
 image-rendering:pixelated;font-size:calc(var(--hfont) * .85);line-height:1.25;text-wrap:balance;text-shadow:max(1px,var(--cpx)) max(1px,var(--cpx)) 0 #000}
:is(#townUi,#partyFrame) .party-role{color:#dcdcdc;pointer-events:auto;cursor:default}
:is(#townUi,#partyFrame) .party-role>span{display:block;text-wrap:balance}
html[data-font="l2"] :is(#townUi,#partyFrame) :is(.party-role,.town-party-hint){line-height:calc(var(--l2k) * 1.5em)}
/* the lines of text of the run result (SP, Endless, role bonus; .sp-line is used nowhere else): by the font's metrics their
   text stood 1.3 to 1.7 px above the middle (testers 30. 11. 2026) */
#resultsModal .sp-line{padding-top:1px}
#resultRole>b{font-weight:400}
