/* Shared readable client typography. Czech accents extend the original L2 pixel grid. */
@font-face{font-family:'L2 Small CS';src:url('./assets/ui/l2font-cs.woff2') format('woff2');font-display:swap;font-weight:100 900}
:root{--l2font:'L2 Small CS','L2 Small',Tahoma,sans-serif;--sans:var(--l2font)}
body{font-family:var(--l2font)}
: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){font-family:var(--l2font)!important;font-size:26px!important;font-weight:400!important;line-height:1.12}
:is(.armory-body,.choice-inner,.vault-inner) .icon :is(b,small,span),.specialized .talent-rank{font-size:13px!important;line-height:1!important}
:is(.armory-body,.options-body,.results-inner,.vault-inner,.rules-inner) button{height:auto;min-height:34px;white-space:normal}
.armory-body :is(p,small),.rules-inner p{overflow-wrap:anywhere}
#menu .race-text b,#menu #classDesc,#menu .class-details :is(p,small){font:26px/1.05 var(--l2font)!important}
#menu .race-text :is(small,em,i){font:13px/1.3 var(--l2font)!important}
#menu .race-text small{display:none}
#menu .race-btn{min-height:86px}
.zone-progress{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;flex:0 1 auto;text-align:right}
#menu .tier-label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;border-left:0;padding:.4rem .2rem;gap:.25rem .5rem}
#menu .tier-label>em{grid-column:1/-1;margin:0;white-space:normal}
#menu .zone::before{opacity:.22}
#menu .zone-progress .zone-clear{font:13px/1.25 var(--l2font)!important;color:var(--muted);white-space:normal}
#menu .zone-head{gap:.5rem;align-items:flex-start}
#menu .zone-badge{box-shadow:none;background:rgba(12,11,9,.7);border-color:var(--line2);color:var(--beige);white-space:nowrap}
#menu .done-badge{color:var(--green)}
#menu .zone h3{font-family:var(--l2font);font-weight:400}
.specialized .tree>h3 .tree-head-row{display:flex;flex-direction:column;align-items:flex-start;flex-wrap:wrap}
.specialized .tree>h3 .tree-title b{white-space:normal}
/* the whole description of a specialization (30. 10. 2026: it was cut after three lines); the tab scrolls anyway */
.specialized .tree>h3 .tree-sub{font:26px/1.1 var(--l2font);display:block;-webkit-line-clamp:unset;overflow:visible}
.talent-trees.specialized{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(12rem,15rem)}
.specialized .tree>h3{display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:minmax(62px,auto) auto auto;align-items:start;gap:.45rem;min-height:0}
.specialized .tree>h3 .tree-title{display:contents}
.specialized .tree>h3 .tree-sub{grid-column:1/-1;min-height:0}
.specialized .tree>h3 .tree-head-row small{white-space:normal}
.specialized .tree>h3 .tree-spec-tag{grid-column:1/-1;justify-self:end;margin:0}
.journey-top-bar{flex-wrap:wrap}.journey-goal-compact{min-width:0}.journey-view-actions{flex-wrap:wrap}
.journey-steps,.journey-relics{align-items:stretch}.contract-head{gap:.4rem}.contract-reward{white-space:nowrap}
.expedition-copy>small{font:26px/1.12 var(--l2font)}.expedition-pips em{font:13px/1 var(--l2font)}
.expedition-tracker{max-width:min(28rem,calc(100vw - 1rem));width:auto;min-width:min(24rem,calc(100vw - 1rem))}
.expedition-direction{border-radius:0;background-color:transparent;border:0}
.dps-bar{flex-wrap:wrap;gap:.25rem}.dps-scope{flex-wrap:wrap}
.vault-side .panel-title,.odds-row,.feed-row{border-left:1px solid var(--line)}
.odds-row{grid-template-columns:minmax(9.5rem,auto) minmax(0,1fr) auto;gap:.7rem}
.rules-rewards>span{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:.3rem;padding:.35rem}
.rules-rewards>span>b{display:block;color:var(--gold);overflow-wrap:anywhere}
/* Moving is opt-in and uses client lock/unlock textures; normal skill controls remain clickable. */
.hud-layout-controls{position:absolute;right:.6rem;top:.5rem;width:max-content;display:flex;gap:3px;pointer-events:auto;z-index:9}
.hud-layout-controls button{display:block;width:24px;height:24px;min-height:0;padding:0;border:0;box-shadow:none;background:transparent center/contain no-repeat;image-rendering:pixelated;cursor:pointer}
.hud-layout-lock{background-image:url('./assets/ui/hud-lock.png')!important}.hud-layout-lock[aria-pressed=true]{background-image:url('./assets/ui/hud-unlock.png')!important}
.hud-layout-reset{background-image:url('./assets/ui/icon-reroll.png')!important}
.hud-grip{display:none;position:absolute;left:2px;top:2px;width:10px;height:22px;min-height:0;padding:0;border:0;border-radius:0;background:url('./assets/ui/bar-cap.png') center/100% 100%;cursor:grab;touch-action:none;pointer-events:auto;z-index:8;opacity:.85}
.hud-unlocked [data-hud-panel]{outline:1px dashed var(--bevel);outline-offset:3px}
.hud-unlocked .hud-grip{display:block}.hud-grip:active{cursor:grabbing}
.hud-positioned{position:fixed!important;right:auto!important;bottom:auto!important;transform:none!important;margin:0!important}
@media(max-width:1400px){.talent-trees.specialized{grid-template-columns:repeat(3,minmax(0,1fr))}.talent-trees.specialized>.talent-points{grid-column:1/-1}.journey-top-bar{display:flex;gap:.7rem}.journey-pages{flex-shrink:0}.journey-goal-compact{flex:1 1 23rem}}
@media(max-width:900px){.talent-trees.specialized{grid-template-columns:1fr}.specialized .tiers{gap:1rem}.journey-steps,.journey-relics{grid-template-columns:1fr}.zone-progress{max-width:55%}}
@media(max-width:1700px){
 #menu{--menu-top:7rem}
 #menu .topbar{height:auto;min-height:6.6rem;display:grid;grid-template-columns:1fr auto;grid-template-areas:'brand actions' 'tabs tabs';gap:.2rem .8rem;padding:.3rem 1rem;align-content:start}
 #menu .topbar>.brand{grid-area:brand}#menu .topbar>.brand>span:last-child{display:inline}
 #menu .topbar>.topright{grid-area:actions}
 #menu .topbar>.tabs{grid-area:tabs;max-width:100%;justify-content:center;gap:.25rem;flex-wrap:wrap}
 #menu .topbar .tabs button{padding:.25rem .5rem;font:26px/1.1 var(--l2font)}
 #menu .panel,#menu .hero-panel{top:var(--menu-top)}
}
@media(max-width:1150px){#menu{--menu-top:10rem}#menu .topbar{min-height:9.6rem}}
/* Menu zone list (30. 10. 2026, Daniel: the right panel was needlessly tall and cut texts off; "just those rectangles, a detail on click
   that slides down"). Every zone is one low rectangle across the panel, one under the other like The Ant Nest card: the name, what it
   is and the pieces of its set, with an arrow. The story, the monsters, the boss timeline and what opens a locked zone come out under
   it, one zone at a time. The 26 px rule above stays for names; only side notes use 13 px. */
#zoneList{container-type:inline-size}
#menu #zoneList .zone-tier{gap:.3rem;margin-bottom:.35rem}
#menu #zoneList .tier-label{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem .5rem;padding:.25rem .5rem}
#menu #zoneList .tier-label>em{margin-left:auto;text-wrap:balance}
#menu #zoneList .zone-row{display:grid;grid-template-columns:minmax(0,1fr);gap:.3rem}
#menu #zoneList .zone-row>.zone{width:auto;min-width:0;padding:0;display:block}
/* the map art only on the right: the names on its labels ran through the card's text */
#menu #zoneList .zone::before{filter:blur(1.5px);-webkit-mask-image:linear-gradient(90deg,transparent 38%,#000 92%);mask-image:linear-gradient(90deg,transparent 38%,#000 92%)}
#menu #zoneList .zone.locked::before{filter:blur(1.5px) grayscale(.42)}
#menu #zoneList .zone:has(button.zone-pick:hover)::before{opacity:1;transform:scale(1.03)}
#menu #zoneList .zone-head{display:flex;align-items:stretch}
#menu #zoneList .zone-pick{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0;padding:.4rem .3rem .4rem .65rem;border:0;border-radius:0;background:none;color:inherit;font:inherit;text-align:left;cursor:default}
#menu #zoneList button.zone-pick{cursor:pointer}
#menu #zoneList button.zone-pick:hover{background:#ffffff0d;filter:none}
#menu #zoneList .zone-name{display:block;min-width:0}
#menu #zoneList .zone-name h3{margin:0}
#menu #zoneList .zone-name .sub{margin-top:.1rem;font-size:13px;line-height:1.2}
#menu #zoneList .zone.locked .zone-name .sub{color:var(--muted)}
#menu #zoneList .zone-progress{flex:0 0 auto;max-width:none}
#menu #zoneList .zone-badge{padding:.12rem .45rem}
#menu #zoneList .zone-badge.locked-badge{color:var(--muted);border-color:#3a352d}
#menu #zoneList .zone-more{flex:0 0 2.4rem;display:grid;place-items:center;margin:0;padding:0;border:0;border-left:1px solid #ffffff14;border-radius:0;background:none;color:var(--beige)}
#menu #zoneList .zone-more:hover{background:#ffffff0d;filter:none}
#menu #zoneList .zone-more::before{content:'';width:.5rem;height:.5rem;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-.15rem) rotate(45deg);transition:transform .18s}
#menu #zoneList .zone.open .zone-more::before{transform:translateY(.15rem) rotate(-135deg)}
#menu #zoneList .zone>.asc{margin:0 .65rem .5rem;padding:.3rem .4rem}
#menu #zoneList .zone-detail{padding:0 .65rem .55rem;animation:zone-slide .18s ease-out}
@keyframes zone-slide{from{opacity:0;transform:translateY(-.4rem)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#menu #zoneList .zone-detail{animation:none}}
#menu #zoneList .zone-state{font:13px/1.25 var(--l2font);color:var(--muted)}
#menu #zoneList .zone-detail>p{display:block;overflow:visible;-webkit-line-clamp:unset;margin:.25rem 0 .35rem;font-size:13px!important;line-height:1.35!important}
#menu #zoneList .zone-detail .sub.lock-why{display:block;margin:0 0 .1rem;font-size:13px;line-height:1.25}
#menu #zoneList .zone-drops{margin-top:.4rem;gap:.3rem}
#menu #zoneList .zdrop .icon{width:36px;height:36px}
#menu #zoneList .gear-gap{margin:.35rem 0;padding:.25rem .5rem}
#menu #zoneList .gear-gap small,#menu #zoneList .mobs b,#menu #zoneList .boss-line .boss-who small{font-size:13px!important;line-height:1.3!important}
#menu #zoneList .boss-line .boss-who em{white-space:normal;overflow:visible;text-overflow:clip}
#menu #zoneList .asc-more{margin-top:.4rem}
@container (max-width:260px){
 #menu #zoneList .zone-pick{flex-wrap:wrap;justify-content:flex-start}
}
/* the target look: the hint wraps instead of ending in "…", the label stays on one line (30. 10. 2026) */
.journey-goal-compact{flex:2 1 24rem;flex-wrap:wrap}
.journey-goal-compact .goal-text{flex:1 1 12rem}
.journey-goal-compact .journey-view-actions{flex:1 1 100%;justify-content:flex-end}
.journey-goal-compact .goal-text .label{white-space:nowrap}
.journey-goal-compact .goal-text b{white-space:normal;overflow:visible;text-overflow:clip}
/* the four buttons under the character: a long name (Mammon's Vault) wraps instead of ending in a cut (30. 10. 2026) */
#menu .hero-buttons .framed b{white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none;line-height:1.05}
/* 30. 10. 2026, Daniel on the web build: "the texts and sizes are off, in the run and in the menu; the talents some lower, some
   higher, a line down the middle, the texts can go". The pixel font is sharp at 13 and 26 px (39 px for big titles); the texts below
   came out at sizes between (from rem, which follows the size of the window) and get one of them. */
/* Talents: the three trees share the rows of one grid (header, then each tier), so their tiers line up whatever the length of a
   spec's text. A talent is its icon and rank; its name, kind and effect are in the tooltip. No line down the middle of a tree, the
   tier lines are one short line, the masteries are equal boxes. */
.specialized .tiers::before{display:none}
.specialized .talent-text,.specialized .cap-tag{display:none}
.specialized .tier-row>.talent{padding:.1rem}
.specialized .tier-need span{white-space:nowrap}
.specialized .tier.mastery .tier-row>.talent,.specialized .tier.mastery .talent.capstone{padding:.55rem .25rem;justify-content:center;align-items:center}
@media (min-width:901px){
 /* the last row takes the free height (the grid fills the window and the points panel is tall), so the tiers keep their spacing */
 .talent-trees.specialized{grid-template-rows:auto repeat(5,auto) 1fr;row-gap:0}  /* (five tiers since talents v4) */
 .talent-trees.specialized>.tree{grid-row:span 7;display:grid;grid-template-rows:subgrid}
 .talent-trees.specialized>.tree>.tiers{display:contents}
 .talent-trees.specialized>.tree>.tiers>.tier{padding:.8rem .55rem 0}
 .talent-trees.specialized>.talent-points{margin-top:.85rem}
}
@media (min-width:1401px){.talent-trees.specialized>.talent-points{grid-column:4;grid-row:1/span 7;margin-top:0}}
/* HUD: the evade key says Space at 13 px, a key cap
   ("Mezerník" at 26 px ran far out of the slot) */
.slot-bar.dash .dash-icon .key{font:13px/1 var(--l2font);bottom:.2rem}
/* the cards of a level up are at least 300 px wide (in rem they were 266 px in a Full HD browser, narrow for the 26 px text); a stat
   row keeps its name whole (it shrank to nothing and went under its value, the dot alone on a line): when the name and the value do
   not fit side by side, the value goes to the next line on the right */
.cards{grid-template-columns:repeat(auto-fit,minmax(max(15rem,300px),max(20rem,340px)))}.choice-inner{max-width:max(68rem,1120px)}
.stat-block>.stat{flex-wrap:wrap;column-gap:.4rem;text-align:left}
.stat-block>.stat>span{min-width:auto;flex:0 1 auto}.stat-block>.stat::after{flex:1 0 .5rem}.stat-block>.stat>b{margin-left:auto}.stat-block>.stat>small{flex-basis:100%}
/* the damage of each skill after a run: one per line when two do not fit, so the names are whole */
#resultDps .dps-table:not(.party-table){grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr))}
/* the sizes (30. 10. 2026, Daniel: "some texts are insanely small"): readable text is 26 px, 13 px is left to the badges on icons and
   key caps (a rank, a key, a card number); big titles 39 px. The places where 26 px did not fit are laid out again below. */
#menu :is(#className,#classText,#heroRace,#collectionBonus,#talentHint,.hero-buttons .framed>small,#ascBest,#ascBest>small,#totalAdena,.facts small,.facts b,#skillPool .skill-item b,#racePassives li,.race-text>em,.race-text>i,#genderSeg .btn,.mode-head>b,#pace .btn,#control .btn,#runMode .btn,#pace .btn small,#sealLine,#modeLine,#mode .btn,#mode .btn small,#startSub,#coopButton small,.menu-footer .keys,#zoneList .zone-name .sub){font-size:26px!important;line-height:1.15!important}
#choiceEyebrow,.card>.kind,.grid-table>.head,#gearGap>span,.expedition-pips>em{font-size:26px!important;line-height:1.15!important}
.card>kbd,.cb-label kbd,#pauseModal .icon>b.rank,#pauseModal .icon>b.epic-plus{font-size:13px!important}
#choiceTitle,#resultTitle{font-size:39px!important}
#pauseModal .modal-inner>h2{font:39px/1.1 var(--l2font)}
/* the facts of a class one under another (label left, value right), the class skills in one column: three or two columns of 26 px did not fit */
#menu .facts{display:flex;flex-direction:column;gap:.2rem}#menu .facts>div{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem}
#menu #skillPool.skill-list{grid-template-columns:minmax(0,1fr)}
/* the meter wide enough for its four modes at 26 px in one row; All / Boss / 30 s on the row under them */
.dps{width:calc(var(--l2) * 17)}.dps-bar .dps-scope button{font:26px/1.15 var(--l2font);padding:.1rem .35rem}
.dps-bar>.dps-scope{flex:1 1 100%;flex-wrap:nowrap}.dps-bar>.dps-scope>button{flex:1 1 auto}
/* a tooltip is read like any text: 26 px (it followed rem, 13 px in a Full HD browser) */
#tooltip{font-size:26px;line-height:1.2;max-width:min(900px,calc(100vw - 1rem))}#tooltip :not(.icon, .icon *){font-size:inherit!important}
/* The quests (where the coffers are, 0/3) at the right under the counters and the damage meter under them, like WoW's quest tracker
   (manager 9. 11. 2026 after Daniel: "a kde má být chat v runu? neměl by být vlevo dole … nebo ty questy dát doprava ať to je jak ve
   wowku"): the bottom left corner is the chat's, as in the client (it was the quests' since 30. 10. 2026). run-chat.js measures where
   the counters end (--hud-stats) and how tall the quests are with their gap (--hud-quests); a panel moved by hand in the HUD
   (hud-positioned) stays where it was put and takes no room in the column. The meter ends above the loot feed's base, and while drops
   are shown it yields to them (manager 9. 11. 2026 after the 0.1.6.25 check: on a 1280 x 720 notebook three drops at once lay over
   the meter, the fifth over the quests): its end over the highest drop, fading there, back when they go (game.js lootShown: the
   newest first in the column-reverse feed, 7.2 s each). --loot-step is one drop with its gap as style.css and touch.css draw it
   (the client's icon or the two lines of text, whichever is taller); up to 760 px of height two drops at once (as on a phone on
   its side), and the feed never reaches over the quests (clipped at the column's top, the oldest drop first). */
.expedition-tracker:not(.hud-positioned){top:calc(var(--hud-stats,calc(var(--l2) * 9.6 + .9rem)) + .5rem);bottom:auto;left:auto;right:.7rem;box-sizing:border-box;width:calc(var(--l2) * 17 + 1rem + 2px);min-width:0;max-width:calc(100vw - 1.4rem)}
#hud{--col-top:calc(var(--hud-stats,calc(var(--l2) * 9.6 + .9rem)) + .5rem + var(--hud-quests,calc(var(--l2) * 3)));--loot-room:calc(100vh - var(--col-top) - var(--l2) * 5 - 1.5rem);--loot-icon:calc(max(32px,round(nearest,2.6rem,32px)) + 2px);--loot-pad:.6rem;--loot-gap:.3rem;--loot-lh:1.15;--loot-step:calc(max(var(--loot-icon),var(--l2) * 1.5 * var(--loot-lh)) + var(--loot-pad) + 2px + var(--loot-gap))}
#hud:is(:has(.expedition-tracker:is([hidden],.hud-positioned)),:not(:has(.expedition-tracker))){--col-top:calc(var(--hud-stats,calc(var(--l2) * 9.6 + .9rem)) + .5rem)}
@media (pointer:coarse){#hud{--loot-icon:26px;--loot-pad:.3rem;--loot-gap:.2rem}html[data-font="l2"] #hud{--loot-lh:calc(var(--l2k) * 1.25)}}  /* (touch.css: a smaller icon, thinner padding, lines as tall as the drawn text) */
.dps:not(.hud-positioned){--loot-n:0;--room:calc(var(--loot-room) - .5rem - var(--loot-n) * var(--loot-step));top:var(--col-top);box-sizing:border-box;max-height:max(0px,var(--room));overflow:hidden;-webkit-mask-image:linear-gradient(#000 calc(var(--room) - 1rem),#0000 var(--room));mask-image:linear-gradient(#000 calc(var(--room) - 1rem),#0000 var(--room));clip-path:inset(-1rem -1rem max(0px,calc(100% - max(0px,var(--room)))) -1rem)}
#hud:has(#lootFeed>.loot-entry:nth-child(1)) .dps:not(.hud-positioned){--loot-n:1}
#hud:has(#lootFeed>.loot-entry:nth-child(2)) .dps:not(.hud-positioned){--loot-n:2}
@media (min-height:761px){#hud:has(#lootFeed>.loot-entry:nth-child(3)) .dps:not(.hud-positioned){--loot-n:3}#hud:has(#lootFeed>.loot-entry:nth-child(4)) .dps:not(.hud-positioned){--loot-n:4}#hud:has(#lootFeed>.loot-entry:nth-child(5)) .dps:not(.hud-positioned){--loot-n:5}}
@media (pointer:coarse) and (min-height:761px){#hud:has(#lootFeed>.loot-entry:nth-child(4)) .dps:not(.hud-positioned){--loot-n:3}}  /* (a touch screen shows three, touch.css) */
@media (max-height:760px){.loot-feed .loot-entry:nth-child(n+3){display:none}}
@media (min-height:521px){#hud .loot-feed{flex-wrap:wrap;align-content:flex-start;column-gap:4rem;max-height:max(0px,var(--loot-room));clip-path:inset(max(0px,calc(100% - var(--loot-room))) -2rem -2rem -2rem)}#hud .loot-feed>.loot-entry{width:100%;flex-shrink:0}}  /* (a phone on its side has the feed lower, touch.css; a drop that does not fit whole under the quests wraps into a second column
   out of the clip, the oldest first, instead of being cut in half under the box) */
/* the bottom of the menu at 26 px: the boss arrival block as wide as its content, the line under "Enter" on up to two lines (the
   button grows with it), the side panels and the centre end above the footer whatever its height (game.js measures it) */
#menu .menu-footer .mode{width:auto;min-width:0;max-width:none}
#menu .mode-head{white-space:nowrap;gap:.6rem}#menu .mode .seg button{white-space:nowrap}
#menu .enter{height:auto;min-height:4.2rem;padding:.45rem 1rem}
#menu .enter small{white-space:normal;text-wrap:balance;overflow:visible;text-overflow:clip;line-height:1.15}
#menu :is(.hero-panel,.panel){bottom:calc(var(--menu-footer-h,8.4rem) + .6rem)}
/* the collection's bonus on one line, its whole text in the tooltip, and the second lines of the four buttons only where they fit:
   wrapped at 26 px they made a block that grew over the character in a smaller window (Daniel 30. 10. 2026, a trailer recorded
   in a window of about 1280 px). The best Ascension in the top bar only where it does not run into the tabs. */
#menu #collectionBonus{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:2299px){
 #menu .hero-buttons .framed>small,#menu #coopButton>small{display:none}
 /* the four buttons one row of names; the icons go where the names would break inside a word (Expedition/s) */
 #menu .hero-buttons .framed{min-height:0;padding:.3rem .45rem;grid-template-rows:auto}
 #menu .hero-buttons .framed::before{grid-row:1}
 #menu .start-wrap,#menu .enter small{overflow:hidden}
}
@media (max-width:1700px){
 #menu .hero-buttons .framed{grid-template-columns:minmax(0,1fr);text-align:center;justify-items:center}
 #menu .hero-buttons .framed::before{display:none}
 #menu .hero-buttons .framed>b{grid-column:1;text-align:center}
 /* the race line under the buttons repeats the Race panel: in a smaller window the character gets its room */
 #menu .hero-info .race-box{display:none}
 /* the line under Enter on one line (map, boss and his time are in the zone list too) */
 #menu .enter small{white-space:nowrap;text-overflow:ellipsis}
}
#menu #townCount{font:26px/1.15 var(--l2font)}
@media (max-width:2300px){.topbar .asc-best{display:none}}
/* a low window (a laptop, 1366 x 657): the centre keeps room for the character, so the race line under the buttons (the same as in
   the Race panel) goes and the collection bonus stays on one line (its whole text is in the tooltip) */
@media (max-height:760px) and (min-width:861px){#menu .hero-info .race-box{display:none}#menu #collectionBonus{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
/* Giran with the other players (town.js, 30. 10. 2026): the town's name, how many are here and the way to the menu at the top left,
   the chat at the bottom left like the client's; the names of the others over their heads come from party.js. 26 px throughout. */
.town-ui{position:fixed;inset:0;z-index:5;pointer-events:none}.town-ui>*{pointer-events:auto}
.town-head{position:absolute;left:1rem;top:1rem;display:flex;align-items:center;gap:.8rem;padding:.35rem .6rem .35rem .9rem;font:26px/1.15 var(--l2font);color:var(--bright)}
.town-head small{font:26px/1.15 var(--l2font);color:var(--green)}.town-ui.offline .town-head small{color:var(--muted)}
.town-head .btn{font:26px/1.15 var(--l2font);padding:.15rem .6rem}
.town-chat{position:absolute;left:1rem;bottom:1rem;width:min(600px,calc(100vw - 2rem));display:flex;flex-direction:column;gap:.35rem;padding:.45rem .55rem}
.town-log{height:min(250px,30vh);overflow-y:auto;font:26px/1.2 var(--l2font);color:#ece5d5;text-shadow:0 1px 2px #000;overflow-wrap:anywhere}
.town-line b{font-weight:400;color:var(--beige)}.town-line.mine b{color:var(--green)}.town-line.notice{color:var(--muted)}
#townInput{font:26px/1.2 var(--l2font);color:var(--bright);background:#000000a6;border:1px solid var(--line2);border-radius:0;padding:.2rem .45rem;min-width:0}
#townInput:focus{outline:1px solid var(--gold);outline-offset:0}
/* the menu's Co-op and Giran side by side */
.menu-footer .footer-side{justify-self:start;display:flex;gap:.6rem;align-items:stretch;min-width:0}.menu-footer .footer-side>.framed{flex:0 0 auto;min-width:0;width:auto;padding-inline:.9rem}.menu-footer .footer-side>.framed :is(b,small){white-space:nowrap}
/* the NPC the hero stands next to (F to talk), over the chat; his window like the client's NPC dialog */
.town-prompt{position:absolute;left:50%;bottom:7rem;transform:translateX(-50%);padding:.35rem .9rem;font:26px/1.15 var(--l2font);color:var(--bright);white-space:nowrap}
.npc-inner{max-width:min(640px,calc(100vw - 2rem))}.npc-inner>.eyebrow{font:26px/1.15 var(--l2font);color:var(--gold)}.npc-inner>h2{font:39px/1.1 var(--l2font);margin:.1rem 0 .4rem}
.npc-inner>p{font:26px/1.25 var(--l2font);color:var(--text);margin:0 0 .8rem}
.npc-options{display:flex;flex-direction:column;gap:.4rem;max-height:min(60vh,640px);overflow-y:auto}
.npc-option{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:.45rem .8rem}.npc-option b{font:26px/1.15 var(--l2font)}.npc-option small{font:26px/1.15 var(--l2font);color:var(--muted)}
.npc-mode{display:flex;gap:0;margin:.2rem 0}.npc-mode .btn{flex:1;font:26px/1.15 var(--l2font)}.btn[aria-disabled="true"]{opacity:.45;cursor:default;filter:none!important}.npc-mode-note{display:block;margin:0 0 .3rem;font:26px/1.2 var(--l2font);color:var(--muted)}
/* Giran's party (1. 11. 2026): my name in the head (a click edits it), the party under it, the player I target at the top in
   the middle like the client's target window (Invite, Block), and an invitation to answer in the middle of the screen */
.town-name{display:flex;gap:.4rem;align-items:center;max-width:12em}.town-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#townNameHint{color:var(--muted)}
.town-name-input{font:26px/1.15 var(--l2font);color:var(--bright);background:#000000a6;border:1px solid var(--gold);border-radius:0;padding:.1rem .4rem;width:9em}
.town-party{position:absolute;left:1rem;top:5.2rem;display:flex;align-items:center;gap:.7rem;padding:.3rem .6rem .3rem .9rem;font:26px/1.15 var(--l2font);color:var(--muted);max-width:calc(100vw - 2rem)}
.town-party b{font-weight:400;color:#9fd3ff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.town-party .btn{font:26px/1.15 var(--l2font);padding:.1rem .6rem;color:var(--bright)}
.town-target{position:absolute;left:50%;top:1rem;transform:translateX(-50%);display:grid;grid-template-columns:auto auto;gap:.15rem 1rem;align-items:center;padding:.4rem .8rem;font:26px/1.15 var(--l2font);color:var(--bright)}
.town-target b{font-weight:400;color:#ffd34d}.town-target small{font:26px/1.15 var(--l2font);color:var(--muted)}
.town-target-actions{grid-column:1/-1;display:flex;gap:.5rem}.town-target-actions .btn{font:26px/1.15 var(--l2font);padding:.15rem .7rem}
.town-ask{position:absolute;z-index:6;left:50%;top:24%;transform:translateX(-50%);padding:.7rem 1rem;text-align:center;font:26px/1.2 var(--l2font);color:var(--text);max-width:calc(100vw - 2rem)}
.town-ask p{margin:0 0 .6rem}.town-ask b{font-weight:400;color:var(--bright)}
.town-ask-actions{display:flex;gap:.6rem;justify-content:center}.town-ask-actions .btn{font:26px/1.15 var(--l2font);padding:.2rem 1rem}
.town-line b[data-id]{cursor:pointer}.town-line b[data-id]:hover{color:var(--gold)}
/* the guide (the About window, 1. 11. 2026) */
.about-inner{max-width:min(1100px,calc(100vw - 2rem))}
.about-inner>p{font:26px/1.25 var(--l2font);color:var(--text);margin:.2rem 0 .6rem}.about-inner>p.muted{color:var(--muted)}
.about-inner h3{font:26px/1.15 var(--l2font);color:var(--gold);margin:.7rem 0 .25rem}
/* The first start's window (Claude „emoji“, 2. 11. 2026, Daniel: „vypadá to strašně chaoticky“): like the client's Options window.
   Two sections under the client's headings (.label), in a row its label and one bar of short choices (the picked one pressed as in
   every .seg), the picked choice's few words in one muted line under it (game.js welcomeRender); its title in the frame's bar. */
.welcome-inner{max-width:min(880px,calc(100vw - 2rem))}
.welcome-inner .welcome-intro{font:26px/1.25 var(--l2font);color:var(--muted);text-align:center;margin:0 0 .2rem}
.welcome-inner .label{margin-top:.75rem;text-align:left}
.welcome-row{display:grid;grid-template-columns:8.5em minmax(0,1fr);gap:.15rem 1rem;align-items:center;margin:.35rem 0}
.welcome-row>h3{margin:0;font:26px/1.15 var(--l2font);color:var(--text);white-space:nowrap;text-align:left}
.welcome-seg{display:flex;min-width:0}
.welcome-seg .btn{flex:1 1 0;min-width:0;margin:0;font:26px/1.15 var(--l2font);padding:.3rem .5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.welcome-seg .btn small{display:none}
#welcomeModal .welcome-hint{grid-column:2;margin:0;font:26px/1.2 var(--l2font);color:var(--muted);text-align:left}#welcomeModal .welcome-hint:empty{display:none}
#welcomeName{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}
.welcome-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:1rem}.welcome-actions button{font:26px/1.15 var(--l2font);margin:0;min-height:2.2em;align-self:stretch}
@media (max-width:860px){.welcome-row{grid-template-columns:1fr}#welcomeModal .welcome-hint{grid-column:1}}
/* The welcome's buttons on a phone (rozlišení 7. 11. 2026, manažer): upright the towns were cut to "Gir…" and "Gl…" (Giran Harbor,
   Gludio and Gludin looked the same), at 360 px also "Ve městě s ostatn…" and "Pixel vyhla…" (in a narrow window with a mouse
   "Klikání jako v Line…" too). Under 861 px a choice's words go on two lines where one does not fit, never cut; under 701 px the
   six towns in two rows of three (in one row each had 50 px at 412 px) and the three fonts in two rows, two and one (in L2 Small
   "vyhlazený" alone is wider than a third of the row at 360 px), the rows' outer corners round as the bar's ends. */
@media (max-width:860px){.welcome-seg .btn{white-space:normal;text-overflow:clip;padding:.3rem .25rem}}
@media (max-width:700px){
 #welcomeTowns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr}
 #welcomeTowns>*{border-radius:0}#welcomeTowns>:first-child{border-top-left-radius:var(--r-btn)}#welcomeTowns>:nth-child(3){border-top-right-radius:var(--r-btn)}
 #welcomeTowns>:nth-child(3n+1):nth-last-child(-n+3){border-bottom-left-radius:var(--r-btn)}#welcomeTowns>:last-child{border-bottom-right-radius:var(--r-btn)}
 #welcomeModal [data-welcome="uiFont"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}
 #welcomeModal [data-welcome="uiFont"]>*{border-radius:0}#welcomeModal [data-welcome="uiFont"]>:first-child{border-top-left-radius:var(--r-btn)}#welcomeModal [data-welcome="uiFont"]>:nth-child(2){border-top-right-radius:var(--r-btn)}
 #welcomeModal [data-welcome="uiFont"]>:last-child{grid-column:1/-1;border-bottom-left-radius:var(--r-btn);border-bottom-right-radius:var(--r-btn)}
}
/* Enchant Skill in the Talents points panel (Claude „tester“, 1. 11. 2026): the kit's skill icons with their +level, compact
   instead of the 8.4rem talent cards; the Armory › Enchant exchange rows reuse the transmute rows */
.talent-points .skill-enchants{display:flex;flex-wrap:wrap;gap:.35rem}.talent-points .skill-enchants .talent{min-height:0;padding:.3rem;gap:0}
/* The menu's footer compact (Claude „emoji“, 2. 11. 2026, Daniel: "šíleně velké", Giran "zastrčený úplně vpravo, že si ho nikdo
   nevšimne"): the run options as rows of a label and its buttons (lines as tall as the drawn text, 26 px spaced them for twice
   its size), Enter as tall as them, Giran over Co-op as wide as the zone list; the keys line stays under all three. The panels
   above end over the footer (game.js measures it). */
@media (min-width:861px){
 #menu .menu-footer .mode{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;align-content:center;gap:.25rem .7rem;padding:.35rem .55rem}
 #menu .menu-footer .mode-head{width:auto}
 #menu .menu-footer .mode .seg button{padding:.25rem .45rem}
 #menu .menu-footer .mode .seal-line{grid-column:1/-1;padding:.25rem .45rem}
 #menu .menu-footer .mode .mode-line{grid-column:1/-1;padding:0 .1rem;width:0;min-width:100%}  /* wraps in the panel's width, never widens it */
 :where(html[data-font="l2"]) #menu .menu-footer :is(#mode .btn,#pace .btn,#control .btn,#runMode .btn,#sealLine){line-height:calc(var(--l2k) * 1.5em)!important}
 #menu .menu-footer #start{height:auto;min-height:0;padding:.25rem 1rem;gap:.1rem}
 #menu .menu-footer .footer-side{flex-direction:column;gap:.3rem}
 #menu .menu-footer :is(#townButton,#coopButton){flex:1 1 0;width:auto;max-width:none;min-height:0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:.7rem;padding:.2rem 1rem}
 #menu .menu-footer #townButton{order:-1}
 #menu .menu-footer #coopButton>small{display:inline}
}
/* The run's length and pace under 861 px (manažer 7. 11. 2026: the new players of the posts on 9. and 10. 11. play on their phones, and
   upright the menu hid them): the panel of the wide menu beside Giran's button, where the hidden Co-op button was, its two rows of
   buttons without their labels (the minutes say which is the length; Hunt's "relaxed" and the labels are in the tooltips), the minutes
   under the length's name only where they do not fit beside it (320 px, a wider font of the Options), Giran as tall as the panel and
   at most 40 % wide (with the pixel fonts it took the panel's room). The run's line and the seals' line stay in the wide menu (the
   Ascension window has the seals). A phone on its side under 861 px (360 px high) has the three in one row as the wide menu, the
   footer a row lower than Enter over Giran was. */
@media (max-width:860px){
 #menu .menu-footer{grid-template-columns:fit-content(40%) 1fr;column-gap:.6rem}
 #menu .menu-footer #start{grid-row:1;grid-column:1/-1;min-width:0}  /* (its line in one row would widen the columns) */
 #menu .menu-footer .footer-side{grid-row:2;grid-column:1;align-self:stretch}
 #menu .menu-footer .footer-side>#townButton{flex:1 1 auto;min-width:0}#menu .menu-footer .footer-side>#townButton :is(b,small){white-space:normal}  /* (narrower than its line: the line wraps) */
 #menu .menu-footer .mode{display:flex;grid-row:2;grid-column:2;justify-self:stretch;justify-content:center;gap:.3rem;padding:.3rem;min-width:min-content}
 #menu .menu-footer .mode :is(.mode-head,.mode-line,.seal-line){display:none}
 #menu .menu-footer .mode .seg button{padding:.3rem .2rem}
 #menu .menu-footer #mode .btn{white-space:normal}#menu .menu-footer #mode .btn small{display:inline-block;white-space:nowrap}
 #menu .menu-footer #pace .btn small{display:none}
}
@media (max-width:860px) and (max-height:520px){
 #menu .menu-footer{grid-template-columns:minmax(0,15rem) minmax(0,1fr) max-content}
 #menu .menu-footer :is(.mode,#start,.footer-side){grid-row:1}
 #menu .menu-footer .mode{grid-column:1}#menu .menu-footer #start{grid-column:2}#menu .menu-footer .footer-side{grid-column:3}
}
/* Giran's button like a zone row: the home town on the client's world map behind it (.work/town-art/town_art.py, the town drawn at
   70 % of the width, game.js sets the home town's), its name on the left over the dark end; the town's light before the count,
   green while the town answers and slowly glowing while someone is there (Daniel 2. 11. 2026: "zelená tečka"). */
#menu #townButton{--town-art:url(./assets/ui/towns/giran.webp);position:relative;overflow:hidden;isolation:isolate}
#menu #townButton::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(16,13,10,.94) 0%,rgba(16,13,10,.86) 42%,rgba(16,13,10,.3) 68%,rgba(16,13,10,.06) 100%),var(--town-art) right center/cover no-repeat}
#menu #townButton:hover:not(:disabled)::before{filter:brightness(1.2)}
#menu #townCount::before{content:'';display:none;width:calc(var(--l2text,12px) * .6);height:calc(var(--l2text,12px) * .6);margin:0 .5em .08em 0;border-radius:50%;vertical-align:middle;background:#6b6458;box-shadow:0 0 0 1px #000}
#menu #townButton:is(.town-live,.town-off) #townCount::before{display:inline-block}
#menu #townButton.town-live #townCount::before{background:var(--green);box-shadow:0 0 0 1px #000,0 0 5px #93d66f99}
#menu #townButton.town-people #townCount{color:var(--green)}
#menu #townButton.town-people #townCount::before{animation:town-light 2.4s ease-in-out infinite}
@keyframes town-light{50%{box-shadow:0 0 0 1px #000,0 0 10px 2px #93d66fcc}}
@media (prefers-reduced-motion:reduce){#menu #townButton.town-people #townCount::before{animation:none}}
/* The Class window's texts with the Lineage II font (Claude „emoji“, 2. 11. 2026, Daniel: „zvětšit ty texty o malinko“, 2K
   monitor): the professions (game.js classColumn, #classGrid) kept their rem sizes, which the font's size-adjust draws at 48 %, so
   at 2560 px the weapon line was 7.6 px and the role tag 6.8 px against the menu's 12.5 px. Now as the race list in the same panel:
   names and buttons 26 px, the small lines 24 px (the small-text floor in l2-ui.css). The rules for #classList and #raceList in
   interface.css and l2-ui.css aim at ids the page no longer has. */
:where(html[data-font="l2"]) #classGrid :is(.crumb,.crumbs b,.type-seg button,.pro-row b){font-size:26px;line-height:calc(var(--l2k) * 1.45em)}
:where(html[data-font="l2"]) #classGrid .pro-row :is(span>small,.role-tag){font-size:24px;line-height:calc(var(--l2k) * 1.45em)}
/* The Gatekeeper's tabs (Claude „emoji“, 2. 11. 2026, Daniel: „taby, ať má člověk města a ty arény a nemusí scrollovat úplně
   dolů“; game.js talkTo): the Armory's tabs of the client (L2UI_CH3 manor1_tab1 the open one, manor1_tab2 the other, l2-ui.css)
   over a line in their edge's colour, above the list, which scrolls under them. */
#npcModal .npc-tabs{display:flex;gap:0;margin:.15rem 0 .55rem;padding:0;border-bottom:1px solid #897c63;align-items:flex-end}
#npcModal .npc-tabs[hidden]{display:none}
#npcModal .npc-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;font:26px/1.2 var(--l2font)}
#npcModal .npc-tabs button.active{background-image:url(./assets/ui/l2tabs/manor1_tab1.png);color:var(--bright)}
#npcModal .npc-tabs button:hover:not(:disabled){box-shadow:none;filter:brightness(1.25);color:var(--bright)}
/* Achievements' count (Claude „emoji“, 2. 11. 2026, Daniel: „to kolo v achievementech je divné“): plain text as the client's
   windows count things, the done number big in gold and „of 42“ beside it over the gauge, no ring. And a window's lone sentence
   under its centred title in the middle too (Daniel: „víc vycentrované texty“; the locked Symbol Maker and Ascension). */
.armory-body .ach-count{display:flex;justify-content:center;align-items:baseline;gap:.45em;width:auto;height:auto;margin:.3rem 0 .8rem;border:0;border-radius:0;background:none;box-shadow:none}
#armoryBody .ach-count b{font:39px/1.1 var(--l2font);font-size:39px!important;color:var(--yellow)}  /* over the Armory's 26px!important (line 5, an id in its :is) */
.armory-body .ach-count small{margin:0;font:26px/1.1 var(--l2font);color:var(--muted)}
:where(html[data-font="l2"]) .armory-body .ach-count :is(b,small){line-height:calc(var(--l2k) * 1.2em)}
.modal-inner :is(#hennaBody,#ascensionBody)>p.hint:only-child{text-align:center}
/* The Quests tab (Claude „emoji“, 2. 11. 2026, Daniel: „hodně scuffed, divné pozice textu v boxech, různé velikosti boxů“):
   the top bar's three parts equally tall with their content in the middle, the target look's buttons beside its text (not on a
   line of their own at the bottom right), the quest cards' icon, text and reward on one middle line, the Relic Forge's lone
   sentence centred. */
.armory-body .journey-top-bar{align-items:stretch}
.armory-body .journey-pages{align-items:center}
.armory-body .journey-goal-compact{flex-wrap:nowrap;align-items:center}
.armory-body .journey-goal-compact .journey-view-actions{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:.4rem}
.armory-body .journey-wallet-pill{align-items:center}
.armory-body .contract-card{align-items:center}
.armory-body .journey-page>p.hint{text-align:center}
/* the welcome's Have an account? Log in on a new device (game.js welcomeLogin, Daniel 16. 11. 2026): one line under Play, the
   words and the game's button, square as the client's */
#welcomeModal .welcome-login{display:flex;justify-content:center;align-items:center;gap:.6rem;margin:.8rem 0 0;font:26px/1.15 var(--l2font);color:var(--muted)}
#welcomeModal .welcome-login[hidden]{display:none}
#welcomeModal .welcome-login span{white-space:nowrap}
#welcomeModal .welcome-login button{font:26px/1.15 var(--l2font);margin:0;min-height:2.2em;padding:0 1.2rem;border-radius:0;width:auto;flex:none;white-space:nowrap}
