/* Lineage II look after Daniel's reference screenshots (a later client: warm grey-brown translucent windows, centred window

   titles, grey-beige buttons and tabs, regular Tahoma). Textures from the Interlude client are in assets/ui/

   (scripts/l2-ui-assets.py): gauges, slots, close button, scroll bar, shortcut bar, ornaments, and the Btn1 button fills,

   recoloured to grey-brown for ordinary buttons; navy with a gold frame (the Interlude original) stays only for the main call

   to action, L2 blue (TextSelect) for selections. The client draws 1 px lines with square corners at 1:1; here everything is

   about 1.3x larger, so the corners are rounded a little and the lines stay CSS in the client's colours. */

:root{--win:rgba(38,34,29,.8);--win2:rgba(46,42,36,.9);--inset:rgba(8,7,6,.42);--strip:rgba(92,86,74,.5);--bevel:#5e574b;--line:#4a443b;--line2:#6b624f;

 --beige:#bda684;--beige2:#94866b;--beige3:#6b614a;--gold:#e9c46a;--gold2:#b59e63;--gold3:#786947;--navy:#18284a;--navy2:#101933;

 --select:rgba(68,113,178,.42);--select-line:#7f9cc8;--hover:rgba(68,113,178,.18);--glow:#adbed6;

 --text:#ddd7c8;--bright:#f4f0e4;--muted:#a59e8f;--dim:#7d776b;--yellow:#f2d27a;--orange:#f0a24e;--green:#93d66f;--red:#e0675a;--ink:#0b0a09;--paper:var(--text);

 --accent:#8de2f0;--common:#d8d2c2;--uncommon:#5fd36a;--rare:#4f9bff;--epic:#b56cff;--legendary:#ff9a3c;

 --r-win:0;--r-btn:0;--r-slot:0;--sans:Tahoma,Verdana,'Segoe UI',Arial,sans-serif;--serif:var(--l2font)}

/* Every size is in rem and one rem grows with the window: 16px at 1920x1080, 21px at 2560x1440, 32px at 4K (like Azeroth's UI scale), never under 14px; phones get 15px below. */

html{font-size:calc(clamp(14px,min(.833vw,1.481vh),36px) * var(--ui-scale,1))}/* --ui-scale: Options, Interface size */

/* The client's own interface font (SmallFont-e from L2Font-e.utx, 13 px cells, made into a web font by l2-ui-assets.py). It

   stays crisp only at whole multiples of 13 px, so --l2 is 26 px (2x) and 39 px (3x) on 4K; it has only ASCII, anything else

   falls back to Tahoma. */

@font-face{font-family:'L2 Small';src:url(./assets/ui/l2font.woff2) format('woff2');font-display:swap}

:root{--l2font:'L2 Small',Tahoma,Verdana,sans-serif;--l2:26px}@media (min-width:3000px) and (min-height:1650px){:root{--l2:39px}}

*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:var(--ink);color:var(--text);font-family:var(--sans);line-height:1.35}body{overflow:hidden}

button,select{font:inherit;color:inherit}button{cursor:pointer;transition:filter .15s,border-color .15s,background-color .15s,box-shadow .15s}:where(button):hover:not(:disabled){filter:brightness(1.15)}:where(button):disabled{opacity:.45}button:disabled{cursor:default}button:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}

#world,#effects,#vignette,#hurt{position:fixed;inset:0;width:100%;height:100%}#world canvas{display:block}#effects{pointer-events:none;z-index:2}#vignette{pointer-events:none;z-index:3;background:radial-gradient(ellipse at 50% 45%,transparent 35%,#0806048c 100%)}#hurt{pointer-events:none;z-index:9;box-shadow:inset 0 0 120px 50px #a8221a66;opacity:0;transition:opacity .18s}

h1,h2,h3{font-family:var(--sans);font-weight:400}.serif{font-family:var(--serif);font-weight:400}b{font-weight:400}

/* Window: warm grey-brown and translucent inside a black line with a lighter bevel, as in the reference windows. */

.win,.panel,.hero-info,.compact,.results-inner,.hp-card,.run-stats,#toast,.mode{background:var(--win);border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel),0 .4rem 1.6rem #0009;backdrop-filter:blur(2px)}

/* Window title: centred on a lighter grey-brown band with a beige line under it and the client's ornament (onscrmsg_pattern)

   on its top edge, like the titles of the reference windows. */

.titlebar,.panel>.panel-title,.compact>.eyebrow,.results-inner>.eyebrow,.armory-head>h2{display:flex;align-items:center;justify-content:center;gap:.6rem;min-height:2.5rem;padding:.55rem 1rem .25rem;

 font:400 1.08rem/1.2 var(--sans);letter-spacing:.04em;color:#efe8d6;text-transform:none;text-align:center;text-shadow:0 1px 2px #000;

 background:url(./assets/ui/ornament.png) center top/7.5rem auto no-repeat,linear-gradient(#5b5447,#2a2621);border-bottom:1px solid #8c826b;border-radius:0;box-shadow:inset 0 1px 0 #ffffff1c}

/* Buttons: the client's Btn1 fills recoloured to grey-brown in a beige frame (normal, hover, pressed); the navy original with

   its gold frame only on the main call to action (.enter, .primary). */

:where(.btn,.framed,.primary,.secondary,.icon-btn,.enter,.close-big){position:relative;color:var(--bright);border:1px solid;border-color:#c9bd9e #8c826b #6f6553 #9d917a;border-radius:var(--r-btn);

 background:url(./assets/ui/btn-grey.png) 0 0/100% 100% #3a352d;box-shadow:inset 0 0 0 1px #000a,0 .12rem .35rem #000a;text-shadow:0 1px 1px #000}

:where(.btn,.framed,.primary,.secondary,.icon-btn,.enter,.close-big):hover:not(:disabled){filter:none;background-image:url(./assets/ui/btn-grey-over.png);border-color:#efe3c2 #b9ab88 #9d917a #c9bd9e}

:where(.btn,.framed,.primary,.secondary,.icon-btn,.enter,.close-big):active:not(:disabled),.btn.on{background-image:url(./assets/ui/btn-grey-down.png)}

:where(.btn,.framed,.primary,.secondary,.icon-btn,.enter,.close-big):disabled{opacity:.75;background-image:url(./assets/ui/btn-off.png);background-color:#1e1c19;border-color:#7d776b #5a554b #4a453d #5a554b;color:#8f8b82}

:where(.primary,.enter){border-width:.1rem;border-color:#f1e6c6 #d9b45e #a8946a #e9c46a;background:url(./assets/ui/btn.png) 0 0/100% 100% var(--navy2)}

:where(.primary,.enter):hover:not(:disabled){background-image:url(./assets/ui/btn-over.png);border-color:#fffbe8 #ffd36b #c6b694 #ffd36b}:where(.primary,.enter):active:not(:disabled){background-image:url(./assets/ui/btn-down.png)}

.icon-btn{width:2.3rem;height:2.3rem;padding:0;font:1rem var(--sans)}#soundMark{position:absolute;right:.15rem;top:0;font:.75rem var(--sans);color:var(--orange)}

.adena-icon{display:inline-block;width:1.15em;height:.86em;background:url(./assets/ui/adena.png) center/contain no-repeat;margin-right:.35em;vertical-align:-.1em}

.framed{padding:.55rem 1.1rem;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15rem}.framed b{font:1.15rem/1.25 var(--sans);color:var(--bright)}.framed small{font-size:.88rem;color:#d2c8b2}.framed.small{padding:.45rem .95rem;font-size:.92rem}

/* Tabs (Armory and the menu bar, one style): the client's tabs, lighter grey with a dim beige edge; the open one dark with a

   bright beige edge; hover a blue glow (skill_tab2_over). */

.tab-row button,.topbar .tabs button{padding:.42rem 1.05rem .38rem;border:1px solid var(--beige3);border-radius:0;background:rgba(86,80,70,.62);color:#cfc6b2;font:.98rem var(--sans);box-shadow:inset 0 1px 0 #ffffff14;white-space:nowrap;text-shadow:0 1px 2px #000}

:is(.tab-row button,.topbar .tabs button):hover:not(:disabled){filter:none;color:var(--bright);box-shadow:inset 0 1px 0 #ffffff14,inset 0 0 .7rem rgba(68,113,178,.6)}

.topbar .tabs button{border-radius:0;border-color:#8c826b}

/* Section header inside a window (the client's lighter header strips: Combat, Basic, Current Skill). */

.label{display:block;font:.88rem/1.2 var(--sans);letter-spacing:.06em;color:#e0d7c2;margin:1rem 0 .55rem;padding:.32rem .65rem;background:linear-gradient(90deg,var(--strip),transparent 85%);border-left:2px solid var(--beige2);border-radius:0}

.eyebrow{font:.92rem var(--sans);letter-spacing:.16em;color:var(--yellow);text-transform:uppercase}

/* Item and skill slot (inventory_outline: light top-left, dark bottom-right, black outside; iconbox fill); hover inventory_outline_over. */

.icon{width:max(32px,round(nearest,2.6rem,32px));height:max(32px,round(nearest,2.6rem,32px));border:1px solid;border-color:#7b797b #4a494a #4a494a #7b797b;border-radius:var(--r-slot);box-shadow:0 0 0 1px #000;background:rgba(19,18,19,.8) center/cover no-repeat;background-clip:padding-box;position:relative;display:inline-block;flex-shrink:0}

.icon[data-tip]:hover,button:hover>.icon{border-color:var(--glow);box-shadow:0 0 0 1px #000,0 0 .45rem #adbed699}

.icon.empty{opacity:.45}.icon .rank{position:absolute;right:.15rem;bottom:0;font:700 .88rem/1.2 var(--sans);color:#fff;text-shadow:0 0 2px #000,0 0 3px #000,0 0 3px #000}.noicon{display:grid;place-items:center;font:1.2rem var(--sans);color:var(--beige2)}.icon .noicon{width:100%;height:100%}

/* Gauges (PlayerStatusWnd ps_hpbar, ps_expbar, ps_cpbar and their backs), the value written on the bar as in the client. */

.bar,.progress{position:relative;height:.85rem;margin-top:.3rem;border:1px solid #000;border-radius:0;background:url(./assets/ui/gauge-hp-back.png) 0 0/100% 100%;box-shadow:0 0 0 1px #3c3a36;overflow:hidden}

.bar i,.progress i{display:block;height:100%;width:100%;background:url(./assets/ui/gauge-hp.png) 0 0/100% 100%;transition:width .12s}

.bar.xp{background-image:url(./assets/ui/gauge-exp-back.png)}.bar.xp i{background-image:url(./assets/ui/gauge-exp.png);width:0}

.progress{background-image:url(./assets/ui/gauge-cp-back.png)}.progress i{background-image:url(./assets/ui/gauge-cp.png);width:0}

.bar>span{position:absolute;inset:0;display:grid;place-items:center;font:.9rem/1 var(--sans);color:#fff;text-shadow:0 0 2px #000,0 0 2px #000,0 0 3px #000;white-space:nowrap}

/* Scroll bars: ScrollBarBack track, SliderBarTop/Center/Bottom thumb, ScrollBarUp/DownBtn arrows. */

::-webkit-scrollbar{width:.8rem;height:.8rem}::-webkit-scrollbar-track{background:url(./assets/ui/scroll-track.png) 0 0/100% auto repeat-y #0c0c0c;border-radius:0}

::-webkit-scrollbar-thumb{border-style:solid;border-width:.38rem 0;border-image:url(./assets/ui/scroll-thumb.png) 8 0 fill/.38rem 0 stretch}::-webkit-scrollbar-thumb:hover{filter:brightness(1.3)}

::-webkit-scrollbar-button:single-button:vertical{display:block;height:.8rem;background:center/100% 100% no-repeat}::-webkit-scrollbar-button:single-button:vertical:decrement{background-image:url(./assets/ui/scroll-up.png)}::-webkit-scrollbar-button:single-button:vertical:increment{background-image:url(./assets/ui/scroll-down.png)}::-webkit-scrollbar-corner{background:transparent}



/* ---- menu ---- */

#menu{position:absolute;inset:0;z-index:4}

/* Equal side columns keep the navigation centred even when the right-hand status grows. */

.topbar{position:absolute;top:0;left:0;right:0;height:4rem;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:1rem;padding:0 1.5rem;background:linear-gradient(#000000d0,#00000000);z-index:2}

.topbar>.brand{min-width:0}.topbar>.brand>span:last-child{overflow:hidden;text-overflow:ellipsis}

.topbar>.tabs{max-width:calc(100vw - 36rem);flex-wrap:wrap;justify-content:center}

.topbar>.topright{justify-self:end}

.brand{display:flex;align-items:center;gap:.6rem;font:1.25rem var(--serif);letter-spacing:.16em;white-space:nowrap;color:var(--bright);text-shadow:0 2px 8px #000,0 0 3px #000}.brand b{font-weight:400;color:var(--yellow)}

.sigil{width:2.7rem;height:2.7rem;flex-shrink:0;background:url(./assets/ui/deco.png) center/contain no-repeat;font-size:0;color:transparent;filter:drop-shadow(0 1px 3px #000)}

.tabs{display:flex;gap:.4rem}

.topright{display:flex;align-items:center;gap:.6rem}.topright .adena{font:700 1.05rem var(--sans);color:var(--yellow);margin-right:.4rem;white-space:nowrap;text-shadow:0 1px 3px #000,0 0 2px #000}

/* Menu windows: the title bar stays on top while the content scrolls under it. */

.panel{position:absolute;top:4.6rem;bottom:8.4rem;padding:0 1.3rem 1.1rem;overflow-y:auto}.panel>.panel-title{position:sticky;top:0;z-index:2;margin:0 -1.3rem 1rem}

#menu{--side:min(32rem,28vw)}.class-panel{left:1.5rem;width:var(--side)}.zone-panel{right:1.5rem;width:var(--side)}

.hero-panel{position:absolute;left:calc(var(--side) + 2.5rem);right:calc(var(--side) + 2.5rem);top:4.6rem;bottom:8.4rem;display:flex;flex-direction:column;pointer-events:none}

.hero-panel>*{pointer-events:auto}.hero-stage{flex:1;min-height:12rem;display:grid;grid-template-columns:3.6rem 1fr 3.6rem;align-items:center;pointer-events:none}#stage{height:100%}

.equip-col{display:flex;flex-direction:column;gap:.7rem;pointer-events:auto}.equip-col .icon{width:max(32px,round(nearest,3.2rem,32px));height:max(32px,round(nearest,3.2rem,32px));box-shadow:0 0 0 1px #000,0 .25rem .8rem #000c}

.hero-info{padding:.75rem 1.2rem .9rem}

.hero-head{text-align:center}.hero-head h2{font:700 2rem var(--sans);margin:0;color:var(--bright);letter-spacing:.02em}.hero-head p{margin:.15rem 0 0;color:var(--accent);font-size:1.05rem}.hero-head h2,.hero-head p{text-shadow:0 0 3px #000,0 2px 6px #000,0 0 14px #000}

/* Selectable tiles (the class now; race and gender use the same .tile, .portrait and .seg later): an icon or portrait in a

   slot frame over its name, the L2 blue selection (TextSelect) when picked. */

.class-grid,.tile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}

.class-btn,.tile{border:1px solid var(--line);border-radius:0;background:var(--inset);padding:.55rem .25rem .45rem;display:flex;flex-direction:column;align-items:center;gap:.4rem;font-size:.92rem;line-height:1.15;color:var(--muted);box-shadow:inset 0 1px 0 #ffffff0d}

:is(.class-btn,.tile):hover:not(:disabled){filter:none;background:var(--hover);color:var(--text)}:is(.class-btn,.tile) .icon{width:max(32px,round(nearest,3.6rem,32px));height:max(32px,round(nearest,3.6rem,32px))}

:is(.class-btn,.tile).selected{border-color:var(--select-line);background:linear-gradient(var(--select),rgba(68,113,178,.2));color:var(--bright);box-shadow:inset 0 0 0 1px #00000080,0 0 .6rem rgba(68,113,178,.4)}

:is(.class-btn,.tile).selected .icon{border-color:var(--gold) #9c864a #9c864a var(--gold);box-shadow:0 0 0 1px #000,0 0 .7rem #e9c46a66}.tile.locked{opacity:.5}

.icon.portrait{width:max(32px,round(nearest,5rem,32px));height:max(32px,round(nearest,5rem,32px))}.seg{display:flex}.seg>*{flex:1;border-radius:0}.seg>:first-child{border-radius:var(--r-btn) 0 0 var(--r-btn)}.seg>:last-child{border-radius:0 var(--r-btn) var(--r-btn) 0}.seg>.selected{background-image:url(./assets/ui/btn-down.png)}

.class-name{font:1.6rem var(--sans);margin:1rem 0 .35rem;color:var(--accent);text-shadow:0 1px 2px #000}.class-text{font-size:1.02rem;line-height:1.5;color:var(--text);margin:0 0 .9rem}

/* Race first, then the race's professions (game.js classColumn): race rows with a portrait rendered from the converted body,

   a breadcrumb back to the races, the Fighter / Mystic switch and the professions grouped by their first class. */

.race-list{display:flex;flex-direction:column;gap:.5rem}

.race-row{display:grid;grid-template-columns:auto 1fr;gap:.9rem;align-items:center;border:1px solid var(--line);border-radius:0;background:var(--inset);padding:.45rem .7rem .45rem .45rem;text-align:left;width:100%;color:var(--muted)}

.race-row:hover{filter:none;background:var(--hover);color:var(--text)}

.race-row.selected{border-color:var(--select-line);background:linear-gradient(var(--select),rgba(68,113,178,.12));color:var(--text);box-shadow:inset 0 0 0 1px #00000080,0 0 .6rem rgba(68,113,178,.35)}

.race-portrait{width:6rem;height:6rem;border-radius:0;border:1px solid #000;background:radial-gradient(circle at 50% 35%,#4a4336,#16130f 75%);box-shadow:0 0 0 1px var(--line);object-fit:cover}

.race-row.selected .race-portrait{box-shadow:0 0 0 1px var(--gold),0 0 .7rem #e9c46a55}

.race-text{display:flex;flex-direction:column;gap:.2rem;min-width:0}.race-text b{font:1.3rem var(--sans);color:var(--bright)}.race-text small{font-size:.95rem;line-height:1.3;color:var(--text)}

.race-text em{font-style:normal;font-size:.9rem;color:#9fd18b}.race-text i{font-style:normal;font-size:.9rem;color:var(--accent)}

.crumbs{display:flex;align-items:center;gap:.6rem;margin-bottom:.7rem}.crumbs b{font:1.4rem var(--sans);color:var(--bright)}

.crumb{border:1px solid var(--line);border-radius:var(--r-btn);background:var(--inset);padding:.35rem .7rem;color:var(--text);font-size:1rem}.crumb:hover{filter:none;background:var(--hover)}

.crumb-portrait{width:3rem;height:3rem;border-radius:0;border:1px solid #000;background:radial-gradient(circle at 50% 35%,#4a4336,#16130f 75%);object-fit:cover}

.type-seg{margin-bottom:.4rem}.type-seg button{padding:.4rem .5rem;font-size:1rem}.type-one{display:block;margin:.2rem 0 .1rem}

.pro-group{display:flex;flex-direction:column;gap:.4rem;margin-top:.5rem}.pro-group>.label{margin:.4rem 0 .05rem}

.pro-row{display:flex;align-items:center;gap:.8rem;padding:.4rem .7rem .4rem .45rem;color:var(--muted)}.pro-row>span{display:flex;flex-direction:column;gap:.1rem;min-width:0}

.pro-row b{font:1.15rem var(--sans);color:var(--bright)}.pro-row small{font-size:.92rem;color:var(--orange)}

.gender-seg{display:inline-flex;margin-top:.45rem;pointer-events:auto}.gender-seg button{padding:.3rem 1.1rem;font-size:.98rem;min-width:6rem}

@media (max-width:860px){.race-portrait{width:4.5rem;height:4.5rem}.race-text b{font-size:1.15rem}}

.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}.facts div{border:1px solid var(--line);border-radius:0;background:var(--inset);padding:.45rem .7rem}.facts small{display:block;font-size:.88rem;letter-spacing:.06em;color:var(--muted)}.facts b{display:block;font:1.2rem/1.25 var(--sans);margin-top:.15rem;color:var(--bright)}

.icon-row{display:flex;flex-wrap:wrap;gap:.4rem}

.equipment{display:flex;justify-content:center;gap:.5rem;flex-wrap:wrap}.equipment .icon{width:max(32px,round(nearest,2.8rem,32px));height:max(32px,round(nearest,2.8rem,32px))}

.hero-info .progress{height:.7rem}

.bonus-text{color:var(--green);font-size:.96rem;line-height:1.45;margin:.5rem 0 0;min-height:1.45em}

.hero-buttons{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.8rem}.hero-buttons .framed b{font-size:1.3rem}.hero-buttons .framed small{font-size:.88rem}

.race-box{margin-top:.85rem;border-top:1px solid var(--line2);padding-top:.6rem}.race-box h3{font:1.2rem var(--sans);margin:0 0 .3rem;color:var(--yellow)}.race-box ul{margin:0;padding-left:1.2rem;color:var(--text);font-size:1.02rem;line-height:1.5}

/* Selectable list rows (zones, drop tables): inset boxes, L2 blue selection. */

.zone-list{display:flex;flex-direction:column;gap:.45rem}.zone,.row-btn{border:1px solid var(--line);border-radius:0;background:var(--inset);padding:.6rem .9rem;text-align:left;width:100%}

/* zones by tier (game.js renderMenu): a tier's zones side by side, the selected one across the whole row */

.zone-tier{display:flex;flex-direction:column;gap:.25rem}.tier-label{font:.78rem/1 var(--sans);letter-spacing:.06em;color:var(--muted);margin:.2rem 0 0 .15rem}.zone-row{display:flex;flex-wrap:wrap;gap:.45rem}.zone-row>.zone{flex:1 1 0;min-width:9rem;width:auto}.zone-row>.zone.selected{flex-basis:100%}

:is(button.zone,.row-btn):hover:not(:disabled){filter:none;background:var(--hover)}.zone h3{font:1.15rem var(--sans);margin:0;color:var(--bright)}.zone .sub{color:var(--orange);font-size:.9rem;margin-top:.15rem}.zone.locked{opacity:.55}.zone.locked .sub{color:var(--muted)}

:is(.zone,.row-btn).selected{border-color:var(--select-line);background:linear-gradient(var(--select),rgba(68,113,178,.1) 4rem,var(--inset));box-shadow:inset 0 0 0 1px #00000080}.zone.selected h3{color:var(--yellow);font-size:1.4rem}

.zone p{font-size:.96rem;line-height:1.45;color:var(--text);margin:.5rem 0}.zone .mobs{font-size:.88rem;color:var(--muted);line-height:1.45}.timeline{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.65rem}

.timeline{flex-direction:column;gap:.25rem}.boss-line{display:grid;grid-template-columns:3.4rem 1fr auto;gap:.6rem;align-items:baseline;padding:.28rem .55rem;border:1px solid #2c2a27;border-radius:0;background:#00000070}.boss-line b{color:var(--yellow);font-size:.95rem}.boss-line span{color:var(--bright);font-size:.95rem}.boss-line small{color:var(--muted);font-size:.88rem;white-space:nowrap}.boss-line.final{border-color:#6b4520}.boss-line.final :is(b,small){color:var(--orange)}

/* Skills as rows (class panel, Character tab): icon and name, in the Character tab also what the skill does. */

.skill-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}.skill-list.wide{grid-template-columns:repeat(auto-fill,minmax(min(100%,24rem),1fr));gap:.45rem}

.skill-item{display:flex;align-items:center;gap:.6rem;min-width:0;padding:.3rem .45rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}.skill-item:hover{background:var(--hover);border-color:var(--select-line)}.skill-item>span{min-width:0}

.skill-item .icon{width:max(32px,round(nearest,2.5rem,32px));height:max(32px,round(nearest,2.5rem,32px))}.skill-list.wide .skill-item{padding:.45rem .6rem}.skill-list.wide .skill-item .icon{width:max(32px,round(nearest,3.4rem,32px));height:max(32px,round(nearest,3.4rem,32px))}.skill-item b{display:block;font-size:.95rem;line-height:1.2;font-weight:400;color:var(--bright)}.skill-item small{display:block;margin-top:.1rem;font-size:.88rem;line-height:1.35;color:var(--muted)}

/* Footer like Azeroth's: run options, a centred Enter button and co-op side by side, the key help under them. */

.menu-footer{position:absolute;left:1.5rem;right:1.5rem;bottom:.5rem;display:grid;grid-template-columns:1fr minmax(0,38rem) 1fr;column-gap:1.25rem;row-gap:.4rem;align-items:center}.menu-footer .mode{justify-self:end;width:min(17rem,100%)}#coopButton{justify-self:start;width:min(15rem,100%)}

/* Run length: two joined buttons in a small window, the chosen one pressed. */

.mode{display:flex;flex-direction:column;align-items:center;gap:.35rem;padding:.5rem .7rem .6rem;color:var(--text)}.mode>b{font-size:1rem}.mode .seg{width:100%}.mode .seg button{padding:.35rem .4rem;font-size:.95rem;white-space:nowrap}.mode .seg small{font-size:.88rem;color:#cfc6b2}

.seg>.selected{border-color:#efe3c2 #b9ab88 #9d917a #c9bd9e;box-shadow:inset 0 0 0 1px #000a,inset 0 0 .6rem rgba(68,113,178,.55)}

.enter{height:5.4rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;padding:0 1rem;min-width:0;border-width:.13rem;border-color:#f1e6c6 #d9b45e #a8946a #e9c46a;box-shadow:inset 0 0 0 1px #000,inset 0 0 2.2rem #4a7cc044,0 0 1.4rem #e9c46a38,0 .2rem .6rem #000c}

.enter b{font:2.2rem/1.4 var(--serif);color:#fff6dc;letter-spacing:.03em;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 3px #000,0 0 12px #9cc4ff55}.enter small{font-size:.98rem;color:#d7dfee;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.enter:hover:not(:disabled){background-image:url(./assets/ui/btn-over.png);filter:brightness(1.12)}

.keys{grid-column:1/-1;text-align:center;font-size:.92rem;color:var(--text);margin:0 auto;padding:.2rem .9rem;background:#000000a8;border-radius:0;text-shadow:0 1px 2px #000}



/* ---- HUD ---- */

#hud{position:fixed;inset:0;z-index:5;pointer-events:none}#hud :is(button,select){pointer-events:auto}

/* Status window like the client's PlayerStatusWnd: level and class on top, the HP and EXP gauges with their values. */

/* ---- run HUD: small and light, in the client's own font (L2 Small at 2x, 3x on 4K, so its pixels stay whole) ---- */

.hud-box{font:var(--l2)/1 var(--l2font);text-shadow:1px 1px 0 #000,0 0 3px #000}

/* Status window as the client's (Daniel's reference): navy handle, level in a small dark box and the name, HP and EXP gauges

   with the label inside at the left and the values on them; the run's jewels, augment and herbs as icon rows to its right. */

.status-row{position:absolute;left:1rem;top:1rem;display:flex;align-items:flex-start;gap:.5rem}

.hp-card,.run-stats,.timer-card{background:url(./assets/ui/bar-cap.png) 0 0/.6rem 100% no-repeat,rgba(30,27,23,.62)}

/* A whole window, off the screen edge: the gauges sit inside it with margins all round, each with its dark rim and rounded

   ends, the label at the gauge's left and the value centred on it. */

.hp-card{width:calc(var(--l2) * 12);padding:.4rem .7rem .6rem 1.15rem}.hp-top{display:flex;align-items:center;gap:.45rem;margin-bottom:.25rem;color:var(--bright)}

.lv{min-width:calc(var(--l2) * 1.4);padding:.1rem .3rem 0;text-align:center;border:1px solid #5a5856;border-radius:0;background:#0b1424c0;color:#cdd3dc;font:inherit;box-shadow:inset 0 0 0 1px #000}

.hp-card .bar{height:var(--l2);margin:.3rem 0 0;border-radius:0;box-shadow:0 0 0 1px #5a5650,inset 0 1px 2px #0008}.hp-card .bar>span{font:inherit;letter-spacing:.04em}

.bar>em{position:absolute;z-index:1;left:.45rem;top:0;bottom:0;display:flex;align-items:center;font:inherit;font-style:normal;letter-spacing:.08em;color:#fff;text-shadow:1px 1px 0 #000}

/* Herbs (the run's buffs) as small icons right of the status window, as the client's buff rows; nothing when there are none. */

.buff-rows{display:flex;flex-direction:column;gap:.25rem;padding-top:.2rem}.buff-rows:has(.buff-bar:empty){display:none}

.buff-rows .icon{width:max(32px,round(nearest,calc(var(--l2) * 1.3),32px));height:max(32px,round(nearest,calc(var(--l2) * 1.3),32px))}

.timer-card{position:absolute;top:.6rem;left:50%;transform:translateX(-50%);padding:.25rem 1rem .35rem 1.4rem;text-align:center;border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel),0 .3rem 1rem #0007;white-space:nowrap}.timer-card>span{display:block;letter-spacing:.1em;color:var(--yellow)}.timer-card strong{display:block;margin:.1rem 0;font:calc(var(--l2) * 1.5)/1 var(--l2font);letter-spacing:.06em;color:var(--bright)}.timer-card small{font:inherit;color:var(--text)}

/* Radar (RadarWnd) top right, the counters under it. */

.radar-box{position:absolute;right:.6rem;top:.5rem;width:calc(var(--l2) * 8);aspect-ratio:1;background:url(./assets/ui/radar.png) center/100% 100% no-repeat;filter:drop-shadow(0 .2rem .4rem #000a)}.radar-box canvas{display:block;width:100%;height:100%}

.run-stats{position:absolute;right:.7rem;top:calc(var(--l2) * 8 + .9rem);display:flex;gap:.8rem;align-items:center;padding:.2rem .3rem .2rem 1.1rem;color:var(--yellow)}.run-stats b{color:var(--bright)}.run-stats b.short{color:var(--muted)}.run-stats small{font:inherit;color:var(--muted)}.run-stats .icon-btn{width:calc(var(--l2) * 1.25);height:calc(var(--l2) * 1.25);font:inherit}

/* Under the timer: slim rows for the raid bosses up (and guardians or elites in a fight), then the target window when an

   enemy is picked with a click. */

.top-stack{position:absolute;top:calc(var(--l2) * 4.2 + 1.3rem);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.35rem;pointer-events:none}

/* A slim row: name and level in the client font, the HP percent at the right, a thin long gauge under; no panel. */

.boss-rows{display:flex;flex-direction:column;gap:.3rem}.boss-rows:empty{display:none}

/* A run the server turned down, all through the endless fight after its win (game.js hud, run-flow.js endNote; 7. 11. 2026): the
   timer's look, red words. */

.lost-note{max-width:min(34rem,90vw);padding:.3rem .9rem .35rem 1.1rem;background:url(./assets/ui/bar-cap.png) 0 0/.6rem 100% no-repeat,rgba(30,27,23,.62);border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel),0 .3rem 1rem #0007;color:var(--red);line-height:1.2;text-align:center;white-space:normal}.lost-note:empty{display:none}
:where(html[data-font="l2"]) .lost-note{line-height:calc(var(--l2k) * 1.45em)}

.boss-slim{display:grid;grid-template-columns:1fr auto;width:min(calc(var(--l2) * 17),60vw);color:#ffd2b4}.boss-slim span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.boss-slim small{font:inherit;color:#c9bfae}.boss-slim b{color:var(--bright)}

.boss-slim .bar{grid-column:1/-1;height:calc(var(--l2) * .25);margin-top:.15rem;border-radius:0;box-shadow:0 0 0 1px #000c}.boss-slim.guardian{color:#ffd29a}.boss-slim.elite{color:#f1dfa4}

/* Target window (the client's TargetWnd, compact like its "Ant Patrol" box): navy handle, name, X, a small red gauge. */

.target-win{min-width:calc(var(--l2) * 8);max-width:min(calc(var(--l2) * 14),70vw);padding:.2rem .35rem .35rem .95rem;background:url(./assets/ui/bar-cap.png) 0 0/.55rem 100% no-repeat,rgba(30,27,23,.62);border:1px solid #000;border-radius:0;box-shadow:inset 0 0 0 1px var(--bevel);pointer-events:auto}

.target-top{display:flex;align-items:center;gap:.4rem}.target-top b{flex:1;min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f2e9d6}.target-win[data-kind=boss] b{color:#ffc9a8}.target-win[data-kind=guardian] b{color:#ffd29a}

.target-win .x,.status-win .x{flex:none;width:calc(var(--l2) * .7);height:calc(var(--l2) * .7);padding:0;border:0;background:url(./assets/ui/close.png) center/contain no-repeat;cursor:pointer}.target-win .x:hover,.status-win .x:hover{filter:none;background-image:url(./assets/ui/close-over.png)}

.target-win .bar{height:calc(var(--l2) * .22);margin-top:.15rem;border-radius:0}

/* Damage meter (T): total DPS and each skill's share, right under the counters. */

.dps{position:absolute;right:.7rem;top:calc(var(--l2) * 10.3 + 1rem);width:calc(var(--l2) * 15);padding:.35rem .5rem .45rem;background:rgba(20,18,15,.55);border:1px solid #0009;border-radius:var(--r-win)}

/* Header: what it shows (a small select) and the scope, All or the current raid boss (a Party scope comes with co-op). */

.dps-bar{display:flex;gap:.3rem;align-items:center;margin-bottom:.35rem}.dps-bar select{flex:1;min-width:0;padding:.1rem .25rem;font:inherit;color:var(--text);background:#000000a0;border:1px solid var(--line2);border-radius:0;text-shadow:none}

.dps-scope{display:flex}.dps-scope button{padding:.05rem .4rem;font:inherit;color:var(--muted);background:#00000080;border:1px solid var(--line2);text-shadow:inherit}.dps-scope button:first-child{border-radius:0}.dps-scope button:last-child{border-radius:0;border-left:0}.dps-scope button.on{color:var(--bright);background:rgba(68,113,178,.45);border-color:var(--select-line)}

.dps-none{margin:.2rem 0 0;color:var(--dim)}.src-dot{display:block;width:calc(var(--l2) * 1.05);height:calc(var(--l2) * .3);border-radius:0;background:linear-gradient(90deg,#7a5f2b,#c9a14e)}

.dps-head{display:flex;align-items:baseline;gap:.35rem;margin-bottom:.25rem;color:var(--muted)}.dps-head b{color:var(--yellow)}.dps-head small{margin-left:auto;font:inherit;color:var(--dim)}

.dps-row{display:grid;grid-template-columns:auto 1fr auto;gap:.4rem;align-items:center;margin-top:.15rem}.dps-row .icon{width:max(32px,round(nearest,calc(var(--l2) * 1.05),32px));height:max(32px,round(nearest,calc(var(--l2) * 1.05),32px))}.dps-row span{position:relative;min-width:0}.dps-row span b{position:relative;z-index:1;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}

.dps-row span i{position:absolute;left:0;bottom:-.1rem;height:3px;background:linear-gradient(90deg,#c9a14e,#7a5f2b);border-radius:0}.dps-row>small{font:inherit;color:var(--bright)}

#resultDps .dps-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem 1rem;margin-bottom:1rem;text-align:left}#resultDps .dps-row{font-size:.95rem;margin:0}#resultDps .dps-row .icon{width:max(32px,round(nearest,2rem,32px));height:max(32px,round(nearest,2rem,32px))}#resultDps .dps-row span i{bottom:-.15rem}

/* On-screen messages: big text over the client's message ornament (onscrmsg_pattern01). */

.banner{position:absolute;top:24%;left:50%;transform:translateX(-50%);font:2.4rem var(--serif);color:#fbe7b5;text-shadow:0 0 4px #000,0 0 16px #000,0 2px 4px #000;opacity:0;transition:opacity .3s;white-space:nowrap;text-align:center}.banner.visible{opacity:1}.banner small{display:block;font:1.08rem var(--sans);color:var(--text);margin-top:.3rem}

.banner::after{content:'';display:block;width:min(22rem,70vw);height:1.4rem;margin:.35rem auto 0;background:url(./assets/ui/ornament.png) center/contain no-repeat;filter:drop-shadow(0 1px 2px #000)}

/* Shortcut bars (ShortcutWnd): dark bar with the navy handle at the left, slots in it. */

.bottom-bars{position:absolute;bottom:.8rem;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.35rem}.skill-row{display:flex;gap:.35rem;align-items:stretch}

.slot-bar{display:flex;gap:.22rem;padding:.25rem .3rem .25rem .95rem;background:url(./assets/ui/bar-cap.png) 0 0/.6rem 100% no-repeat,rgba(16,16,16,.72);border:1px solid #000;border-radius:0;box-shadow:inset 0 0 0 1px #313031,0 .2rem .7rem #0008}

.slot-bar .icon{width:max(32px,round(nearest,calc(var(--l2) * 2),32px));height:max(32px,round(nearest,calc(var(--l2) * 2),32px))}.slot-bar.jewels .icon{width:max(32px,round(nearest,calc(var(--l2) * 1.5),32px));height:max(32px,round(nearest,calc(var(--l2) * 1.5),32px))}.slot-bar.jewels .icon .rank{font:inherit;font-size:calc(var(--l2) * .55)}.slot-bar .cd,.buff-bar .cd{position:absolute;inset:0;border-radius:inherit;background:#000b;transform-origin:bottom;transform:scaleY(0);pointer-events:none}

.slot-bar .icon,.buff-bar .icon{pointer-events:auto}

/* Herbs without their own client icon borrow one; a hue shift tells them apart (power red, speed green, casting blue). */

.icon.herb-power{filter:hue-rotate(-110deg) saturate(1.4)}.icon.herb-speed{filter:hue-rotate(10deg)}.icon.herb-haste{filter:hue-rotate(120deg)}

.buff-bar{display:flex;gap:.2rem;min-height:calc(var(--l2) * 1.3)}

#joystick{position:absolute;bottom:40px;left:30px;width:120px;height:120px;border-radius:50%;border:1px solid #bda68455;background:#0000004d;pointer-events:auto;touch-action:none;display:none}#stick{position:absolute;left:37px;top:37px;width:46px;height:46px;border-radius:50%;background:url(./assets/ui/btn.png) 0 0/100% 100%;border:2px solid var(--gold2);pointer-events:none}

#toast{position:fixed;z-index:20;left:50%;top:auto;bottom:10.5rem;transform:translate(-50%,-10px);padding:.7rem 1.3rem;color:var(--bright);pointer-events:none;opacity:0;font-size:1.05rem;transition:opacity .25s,transform .25s;text-align:center;width:max-content;max-width:90vw;text-shadow:0 1px 2px #000}#toast.visible{opacity:1;transform:translate(-50%,0)}



/* ---- modals ---- */

/* Content taller than the window starts at the top and scrolls (centring with align-items would cut its top off). */

.modal{position:fixed;inset:0;z-index:15;display:flex;align-items:flex-start;justify-content:center;background:#00000080;backdrop-filter:blur(3px);padding:1.25rem;overflow-y:auto}

.modal-inner{text-align:center;max-width:62rem;width:100%;padding:2.1rem 1.9rem;position:relative;margin:auto}.modal h2{font:2.5rem/1.15 var(--serif);margin:.7rem 0 1.1rem;color:#f7edd3;text-shadow:0 2px 6px #000}.modal p{color:var(--text);font-size:1.03rem;line-height:1.6;margin:0 0 1.25rem}

/* Dialog windows: the eyebrow becomes the window's title bar. */

.compact{max-width:36rem}.compact,.results-inner{padding:0 1.9rem 1.7rem}.compact>.eyebrow,.results-inner>.eyebrow{margin:0 -1.9rem}

.primary{width:100%;padding:.8rem;font:1.2rem var(--sans);letter-spacing:.03em;box-shadow:inset 0 0 0 1px #000,inset 0 0 1.6rem #4a7cc044,0 0 1rem #e9c46a2a,0 .12rem .35rem #000c}.secondary{width:100%;padding:.7rem;margin-top:.6rem;font-size:1rem}

.muted{display:block;font-size:.9rem;color:var(--muted);margin-top:.85rem}

/* Close button of a window (FrameCloseBtn, frameclosebtn_over, FrameCloseOnBtn), sits in the title bar. */

.close{position:absolute;z-index:3;top:.3rem;right:.45rem;width:1.7rem;height:1.7rem;padding:0;border:0;font-size:0;color:transparent;background:url(./assets/ui/close.png) center/contain no-repeat}.close:hover:not(:disabled){filter:none;background-image:url(./assets/ui/close-over.png)}.close:active{background-image:url(./assets/ui/close-down.png)}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,20rem));justify-content:center;gap:1.1rem;margin:1.1rem 0}.choice-inner{max-width:68rem}

/* Choice cards: small windows in the augment window's ornate frame (refinewnd_back_Pattern), the rarity as glow and colour. */

.card{--r:var(--common);position:relative;text-align:left;min-height:19rem;padding:1.1rem;border:1px solid #000;border-radius:var(--r-win);background:linear-gradient(170deg,color-mix(in srgb,var(--r) 12%,#24221f),#121110 70%);box-shadow:inset 0 0 0 1px var(--bevel),0 0 1.3rem color-mix(in srgb,var(--r) 22%,transparent),0 .4rem 1.4rem #000a;display:flex;flex-direction:column;gap:.5rem;transition:transform .15s,box-shadow .15s}

.card:hover:not(:disabled){filter:none;transform:translateY(-.3rem);box-shadow:inset 0 0 0 1px var(--glow),0 0 1.8rem color-mix(in srgb,var(--r) 40%,transparent),0 .4rem 1.4rem #000a}

.card::after{content:'';position:absolute;inset:.3rem;border:1.5rem solid transparent;border-image:url(./assets/ui/frame-ornate.png) 36/1.5rem;pointer-events:none;opacity:.7}

.card .head{display:flex;gap:.75rem;align-items:center}.card .icon{width:max(32px,round(nearest,3.4rem,32px));height:max(32px,round(nearest,3.4rem,32px));flex-shrink:0}.card .kind{font-size:.88rem;letter-spacing:.08em;color:var(--r);text-transform:uppercase}.card h3{font:1.32rem/1.25 var(--sans);margin:.1rem 0 0;color:var(--bright)}.card .rarity{font-size:.88rem;color:var(--r)}

.card .lines{font-size:1rem;line-height:1.45;color:var(--text);margin:0}.card .lines b{color:var(--green);font-weight:400}.card .flavor{font-size:.88rem;line-height:1.4;color:var(--muted);margin-top:auto}.card kbd{position:absolute;z-index:1;top:.6rem;right:.75rem;border:1px solid var(--line2);border-radius:0;background:#000000b0;padding:.05rem .45rem;font:700 .88rem var(--sans);color:var(--bright)}

.choice-actions{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap}.choice-actions button{min-width:11rem}

.pause-build{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.1rem}.pause-build .icon{width:max(32px,round(nearest,3rem,32px));height:max(32px,round(nearest,3rem,32px))}.pause-build .icon-row{justify-content:center}

.results-inner{max-width:46rem}.result-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin:1.1rem 0}.result-stats div{border:1px solid var(--line);border-radius:0;background:var(--inset);padding:.55rem .25rem}.result-stats b{display:block;font:700 1.55rem/1.2 var(--sans);color:var(--yellow)}.result-stats span{display:block;font-size:.88rem;letter-spacing:.06em;margin-top:.2rem;color:var(--muted)}
/* The line under the results' title when the server turned the run down (game.js markLost; 7. 11. 2026: it went by as a small grey
   line): a box like a new drop's (.loot.new), red. On Keep fighting what the endless fight brings (run-flow.js keepNote), under its words. */
#resultDesc.run-lost{margin:.7rem 0 0;padding:.5rem .8rem;border:1px solid #6e3a33;border-radius:0;background:var(--inset);box-shadow:inset 3px 0 0 var(--red);color:var(--red)}
#keepNote{display:block;margin-top:.2rem;color:var(--beige)}#keepNote:empty{display:none}

.loot{display:flex;align-items:center;gap:.75rem;text-align:left;padding:.5rem .75rem;border:1px solid var(--line);border-radius:0;background:var(--inset);margin-bottom:.45rem}.loot b{font:1.04rem var(--sans);color:var(--bright)}.loot small{display:block;color:var(--muted);font-size:.88rem}.loot.new{border-color:#5d8a45;box-shadow:inset 3px 0 0 #7fbf5a}

/* Tooltip (tooltip1-9): black with a grey line inside a black edge. */

#tooltip{position:fixed;z-index:40;max-width:24rem;padding:.6rem .8rem;background:rgba(0,0,0,.96);border:1px solid #525152;border-radius:0;font-size:.95rem;line-height:1.45;color:var(--text);pointer-events:none;box-shadow:0 0 0 1px #000,0 .5rem 1.6rem #000c}#tooltip>b{display:block;font:1.08rem var(--sans);color:var(--bright);margin-bottom:.25rem}#tooltip i{display:block;color:var(--muted);font-style:normal;margin-top:.35rem;font-size:.88rem}



/* ---- armory ---- */

.armory{padding:0;align-items:stretch}.armory-inner{width:100%;max-width:104rem;margin:auto;height:100%;display:flex;flex-direction:column;padding:1.2rem 1.6rem}

/* The Armory is one big window: title bar with the close button, the client's tabs under it (normal_tab: lighter grey with a

   dim beige edge; normal_tab_on: dark like the body with a bright beige edge; hover: skill_tab2_over blue glow), then the body. */

.armory-head{position:relative;display:grid;grid-template-columns:1fr;align-items:center;background:var(--win);border:1px solid #000;border-bottom:0;border-radius:var(--r-win) var(--r-win) 0 0;box-shadow:inset 1px 1px 0 var(--bevel),inset -1px 0 0 var(--bevel);backdrop-filter:blur(2px)}

.armory-head>h2{margin:0;padding:.6rem 3rem .3rem;font:1.15rem/1.2 var(--sans)}.armory-head>p{display:none}

.armory-head .close{top:.4rem}

.armory-head .tabs{flex-wrap:wrap;gap:.25rem;padding:.65rem .9rem 0;border-bottom:1px solid var(--beige2)}

.armory-head .tabs button{padding:.42rem 1.05rem .38rem;margin-bottom:-1px;border:1px solid var(--beige3);border-bottom-color:var(--beige2);border-radius:0;background:rgba(86,80,70,.62);color:#cfc6b2;font:.98rem var(--sans);box-shadow:inset 0 1px 0 #ffffff14;white-space:nowrap;text-shadow:0 1px 2px #000}

.armory-head .tabs button:hover:not(:disabled){filter:none;color:var(--bright);box-shadow:inset 0 1px 0 #ffffff14,inset 0 0 .7rem rgba(68,113,178,.6)}

.armory-head .tabs button.active{background:rgba(38,34,29,.85);border-color:var(--beige);border-bottom-color:transparent;color:var(--bright);box-shadow:inset 0 1px 0 #f1dfb840}

.armory-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:1.3rem 1.5rem;background:var(--win);border:1px solid #000;border-top:0;border-radius:0 0 var(--r-win) var(--r-win);box-shadow:inset 1px -1px 0 var(--bevel),inset -1px 0 0 var(--bevel),0 .4rem 1.6rem #0009;backdrop-filter:blur(2px)}

.armory-body .panel-title{font:1.12rem var(--sans);color:var(--bright);text-align:left;margin:0 0 .8rem;padding:.4rem .8rem;background:linear-gradient(90deg,var(--strip),transparent 90%);border-left:2px solid var(--beige);border-radius:0}.armory-body .panel-title.small{font-size:1.02rem;margin:.9rem 0 .6rem}.panel-title small{margin-left:.8rem;font-size:.92rem;color:var(--muted)}

.hint{font-size:.92rem;line-height:1.45;color:var(--muted);margin:.8rem 0 0}

/* Windows inside the Armory (character sides, talent points, achievement summary) get the same centred window title. */

.armory-body :is(.char-side,.talent-points,.ach-summary)>.panel-title{display:flex;justify-content:center;align-items:center;min-height:2.5rem;padding:.55rem 1rem .25rem;font:1.08rem/1.2 var(--sans);color:#efe8d6;text-align:center;letter-spacing:.04em;border:0;border-bottom:1px solid #8c826b;border-radius:0;background:url(./assets/ui/ornament.png) center top/7.5rem auto no-repeat,linear-gradient(#5b5447,#2a2621);box-shadow:inset 0 1px 0 #ffffff1c;text-shadow:0 1px 2px #000}

.armory-body :is(.talent-points,.ach-summary)>.panel-title{margin:-.75rem -1rem .6rem}

.two-col{display:grid;grid-template-columns:minmax(0,26rem) minmax(0,1fr);gap:1.6rem}.slot-list{display:flex;flex-direction:column;gap:.45rem}.slot-row{display:flex;gap:.9rem;align-items:center;border:1px solid var(--line);border-radius:0;background:var(--inset);padding:.6rem .75rem}.slot-row>.icon{width:max(32px,round(nearest,3.6rem,32px));height:max(32px,round(nearest,3.6rem,32px))}.slot-row small{display:block;font-size:.88rem;letter-spacing:.06em;color:var(--muted)}.slot-row b{font-size:1.08rem;color:var(--bright)}.slot-row.empty b{color:var(--muted)}

/* Character: equipment on the left, bonuses and skills on the right, the hero big in the middle (the menu's 3D stage shows

   through, see the :has() rules below), as Azeroth's Armory. */

.armory.char-open{background:rgba(0,0,0,.28);backdrop-filter:none}

.armory.char-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.char-open .armory-body{display:grid;grid-template-columns:minmax(0,27rem) 1fr minmax(0,27rem);gap:1.2rem;margin-top:.6rem;padding:0;background:none;border:0;box-shadow:none;backdrop-filter:none;overflow:hidden}

.char-side{min-height:0;overflow-y:auto;padding:0 1.1rem 1.1rem;background:var(--win);border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel),0 .4rem 1.6rem #0009;backdrop-filter:blur(2px)}

.char-side>.panel-title{position:sticky;top:0;z-index:2;margin:0 -1.1rem 1rem}.char-mid{display:flex;align-items:flex-end;justify-content:center;pointer-events:none}.char-mid .hint{padding:.35rem .9rem;border-radius:0;background:#00000080;color:var(--text);text-shadow:0 1px 2px #000}

.char-side .skill-list{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Collection like an inventory: a row per grade, each piece in a slot with its name, dim until it drops; the grade in the corner. */

.grid-table{display:grid;gap:.5rem;align-items:stretch}.grid-table .head{align-self:end;font-size:.88rem;letter-spacing:.06em;color:var(--muted);text-align:center}.grade-label{align-self:center;padding:.3rem .7rem;border-left:2px solid var(--beige)}.grade-label b{display:block;font:1.15rem var(--sans);color:var(--bright)}.grade-label small{color:var(--muted);font-size:.9rem}

.coll-cell{position:relative;display:flex;flex-direction:column;align-items:center;gap:.45rem;padding:.75rem .35rem .6rem;border:1px solid var(--line);border-radius:0;background:var(--inset);text-align:center}.coll-cell .icon{width:max(32px,round(nearest,4.4rem,32px));height:max(32px,round(nearest,4.4rem,32px))}.coll-cell small{font-size:.88rem;line-height:1.25;color:var(--dim)}.coll-cell.own small{color:var(--bright)}.coll-cell.none{opacity:.4}

.grade-badge{position:absolute;left:.35rem;top:.3rem;min-width:1.4rem;padding:0 .25rem;border:1px solid var(--line2);border-radius:0;background:#000000b0;font-size:.88rem;color:var(--yellow)}

/* Drops: the zones as a row on top (grade, raid bosses, pieces collected), then each raid boss with its drops beside it. */

.drop-zones{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.45rem;margin-bottom:1rem}.drop-zone{border:1px solid var(--line);border-radius:0;background:var(--inset);padding:.6rem .85rem;text-align:left}.drop-zone:hover:not(:disabled){filter:none;background:var(--hover)}.drop-zone.selected{border-color:var(--select-line);background:linear-gradient(var(--select),rgba(68,113,178,.15));box-shadow:inset 0 0 0 1px #00000080}.drop-zone b{display:block;font:1.1rem var(--sans);color:var(--bright)}.drop-zone small{color:var(--muted);font-size:.9rem}

.boss-row{display:grid;grid-template-columns:minmax(14rem,24rem) 1fr;gap:1rem;align-items:center;border:1px solid var(--line);border-radius:0;background:var(--inset);padding:.7rem 1rem;margin-bottom:.45rem}.boss-row b{font:1.12rem var(--sans);color:var(--bright)}.boss-row small{display:block;color:var(--muted);font-size:.9rem}.boss-row .drops{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem}.boss-row .drop{display:flex;gap:.65rem;align-items:center;text-align:left;min-width:15rem}.boss-row .drop b{font-size:1rem}.boss-row .drop .ok{color:var(--green)}

.ach-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:.4rem;margin-bottom:.5rem}.ach-grid .loot{margin:0}

.codex-row{margin-bottom:1.1rem}.codex-row h3 small{margin-left:.8rem;font-weight:400;font-size:.92rem;color:var(--muted)}

.codex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,11rem),1fr));gap:.4rem}.codex-item{display:flex;align-items:center;gap:.55rem;min-width:0;padding:.35rem .5rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}.codex-item:hover{background:var(--hover);border-color:var(--select-line)}.codex-item .icon{width:max(32px,round(nearest,2.9rem,32px));height:max(32px,round(nearest,2.9rem,32px))}.codex-item small{font-size:.88rem;line-height:1.25}.codex-item.unseen small{color:var(--dim)}

.dim{filter:grayscale(1) brightness(.35)}



/* ---- responsive ---- */

@media (max-width:1100px){.class-grid{grid-template-columns:repeat(3,1fr)}.tabs button{padding:.3rem .6rem;font-size:.95rem}.brand>span:last-child{display:none}.menu-footer{grid-template-columns:11rem minmax(0,1fr) 11rem}.hp-card{width:15rem}.timer-card{white-space:normal;width:min(40vw,30rem)}}

@media (max-width:860px){html{font-size:16px}body:not(.in-game){overflow-y:auto}#menu{position:relative;min-height:100%;padding:4.8rem .9rem 1.5rem;display:flex;flex-direction:column;gap:.9rem}.panel{position:static;width:auto!important;max-height:none}.hero-panel{position:static;order:-1}.hero-stage{min-height:21rem}.topbar{position:fixed;display:flex;justify-content:space-between;padding:0 .8rem;background:rgba(12,12,11,.95);backdrop-filter:blur(6px);border-bottom:1px solid #000;box-shadow:0 1px 0 var(--bevel)}.topbar .tabs{display:none}.brand>span:last-child{display:inline}

 .menu-footer{position:sticky;bottom:0;height:auto;grid-template-columns:1fr;gap:.6rem;z-index:3;background:linear-gradient(#0b0a0900,#0b0a09f2 30%);padding:1.1rem .9rem .5rem;margin:0 -.9rem}#coopButton{display:none}.enter{height:auto;min-height:4.2rem;padding:.55rem .9rem}.enter b{font-size:1.6rem}.enter b,.enter small{white-space:normal;text-align:center}.keys{display:none}

 .cards{grid-template-columns:1fr}.card{min-height:0}.choice-actions button{min-width:0;flex:1 1 30%}

 .hp-card{width:14rem;left:.75rem;top:.75rem}.timer-card{width:min(36vw,30rem)}.timer-card strong{font-size:2rem}.run-stats{top:7.4rem;right:.75rem;font-size:1.05rem}#bossbar{top:10.9rem;width:min(38rem,70vw)}.banner{font-size:1.9rem;white-space:normal;width:90vw}.slot-bar .icon{width:max(32px,round(nearest,2.7rem,32px));height:max(32px,round(nearest,2.7rem,32px))}

 .two-col{grid-template-columns:1fr}.armory-inner{padding:.9rem .75rem}.armory-head .tabs button{padding:.35rem .7rem .3rem;font-size:.92rem}.close{width:2rem;height:2rem;top:.15rem}.armory-body{padding:.9rem}

 /* Collection on a narrow screen: the grade over its six pieces in rows of three, the slot name is in the tooltip. */

 .grid-table{grid-template-columns:repeat(3,minmax(0,1fr))!important}.grid-table>.head,.grid-table>div:empty{display:none}.grade-label{grid-column:1/-1;margin-top:.4rem}}

/* Too narrow for the timer between the HP card and the counters: it moves under them, the counters and buffs under it. */

@media (max-width:740px){.timer-card{top:7.3rem;white-space:normal;width:90vw}.timer-card strong{font-size:1.7rem;margin:0}.timer-card small{font-size:.88rem}.run-stats{top:12.8rem;gap:.75rem}#bossbar{top:16.2rem;width:84vw;font-size:1rem}.buff-bar{top:12.8rem;left:.75rem}.bottom-bars{left:auto;right:.5rem;transform:none;align-items:flex-end;bottom:.75rem}.slot-bar{flex-wrap:wrap;justify-content:flex-end;max-width:62vw}.slot-bar.skills{max-width:calc(100vw - 13.5rem)}#toast{bottom:12.5rem}}

@media (max-width:480px){.brand>span:last-child{display:none}.hp-card{width:auto;right:.75rem;padding:.45rem .6rem .55rem 1.15rem}.timer-card{top:7.1rem}.run-stats{top:12.8rem}#bossbar{top:16.2rem}.buff-bar{top:12.8rem}.slot-bar .icon{width:max(32px,round(nearest,2.3rem,32px));height:max(32px,round(nearest,2.3rem,32px))}.slot-bar.jewels .icon{width:max(32px,round(nearest,1.9rem,32px));height:max(32px,round(nearest,1.9rem,32px))}#joystick{bottom:24px;left:16px;width:110px;height:110px}#stick{left:32px;top:32px}.banner{font-size:1.5rem;white-space:normal;width:90vw}}

@media (max-height:780px) and (min-width:861px){.panel>.panel-title{min-height:2rem;margin-bottom:.6rem}.class-btn .icon{width:max(32px,round(nearest,3.3rem,32px));height:max(32px,round(nearest,3.3rem,32px))}.class-name{font-size:1.5rem;margin:.6rem 0 .25rem}.class-text{font-size:1rem;line-height:1.4}.facts b{font-size:1.1rem}.zone p{font-size:.92rem;margin:.4rem 0}.zone .mobs{display:none}.label{margin:.6rem 0 .4rem}}

/* the joystick only on a touch screen, a narrow window with a mouse has none (it lay over the party's rows; party of 6, 2. 12. 2026) */
@media (pointer:coarse){#joystick{display:block}body.in-game{touch-action:none}}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* talents, achievements, rewards */

.facts b.free{color:var(--green)}

/* Talents as in Azeroth: three trees and the points panel as a fourth column, all as tall as the window. A tree lists its

   tiers from the top (two talents per row, a lone talent centred at the same width); more tiers or talents only make the

   trees longer and the window scrolls. */

.armory-body:has(.talent-trees){display:flex;flex-direction:column}.talent-trees{flex:1 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(17rem,21rem);gap:1.1rem}

.spec-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;flex-shrink:0}.spec-option{display:flex;align-items:flex-start;gap:.65rem;padding:1rem;text-align:left;border:1px solid var(--line2);border-radius:0;background:var(--inset);color:var(--text)}.spec-option.active{border-color:var(--gold);background:linear-gradient(125deg,#51412480,var(--inset))}.spec-option>span{min-width:0;flex:1}.spec-option>.icon{flex:0 0 3rem;width:3rem;height:3rem}.spec-option b,.spec-option small{display:block}.spec-option b{font:var(--l2)/1.1 var(--l2font);color:var(--bright)}.spec-option small{margin-top:.35rem;font:13px/1.35 var(--l2font)}.spec-option em{font-size:.8rem;color:var(--gold);font-style:normal;white-space:nowrap}.spec-identity{display:flex;flex-direction:column;gap:.4rem;padding:.8rem 0 1rem;color:var(--muted)}.spec-identity b{color:var(--gold)}.talent-trees.specialized{grid-template-columns:minmax(0,1fr) minmax(17rem,21rem)}.specialized .tier-row{grid-template-columns:repeat(3,minmax(0,1fr))}.spec-hint{margin:.8rem 0 0}

.journey-page{display:flex;flex-direction:column;gap:1rem}.journey-page h2{font:var(--l2)/1.2 var(--l2font);color:var(--bright);margin:.4rem 0}.journey-intro{display:flex;gap:2rem;justify-content:space-between}.journey-intro>div:first-child{max-width:55rem}.journey-wallet{display:flex;flex-direction:column;justify-content:center;min-width:15rem;text-align:right;color:var(--gold)}.journey-wallet b{font:39px/1 var(--l2font)}.journey-wallet small{color:var(--muted);margin-top:.4rem}.journey-goal{display:flex;flex-direction:column;gap:.6rem;border-block:1px solid var(--line2);padding:1rem 0}.journey-goal>div{display:flex;gap:.6rem;flex-wrap:wrap}.journey-goal select{flex:1;min-width:15rem}.journey-contracts,.relic-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.journey-contracts>div,.relic-card{padding:1rem;border:1px solid var(--line2);border-radius:0;background:var(--inset)}.journey-contracts p,.relic-card p{color:var(--muted);line-height:1.45}.relic-card{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.relic-card.worn{border-color:var(--gold);box-shadow:inset 0 2px 0 var(--gold)}.relic-card h3{font:var(--l2)/1.2 var(--l2font);color:var(--bright);margin:.2rem 0}.relic-recipe{display:flex;flex-direction:column;gap:.4rem;width:100%;font-size:.9rem}.relic-recipe>span{display:flex;justify-content:space-between;gap:.6rem}.relic-actions{display:flex;gap:.5rem;margin-top:auto}.journey-looks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.journey-looks article{display:flex;align-items:center;gap:.8rem;padding:.8rem;border:1px solid var(--line2);border-radius:0;background:var(--inset)}.journey-looks article>div{flex:1;min-width:0}.journey-looks small{display:block;margin-top:.4rem;line-height:1.4}.journey-result{padding:.8rem 1rem;border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel);background:var(--win);font-family:var(--l2font)}.journey-result>b{color:var(--gold)}.hero-buttons .vault-entry,.hero-buttons .journey-entry{grid-column:auto}.topbar .adena-icon{background-image:url('./assets/icons/etc_ancient_adena_i00.png')}/* Expedition HUD uses the same client frame, icon slot, font and gauges as the rest of the HUD. */

.expedition-tracker{position:absolute;top:calc(var(--l2) * 4.2 + 1.15rem);left:1rem;min-width:calc(var(--l2) * 12);max-width:min(calc(var(--l2) * 17.5),calc(100vw - 2rem));padding:.45rem .75rem .55rem 1.15rem;display:flex;align-items:center;gap:.75rem;pointer-events:none;font:var(--l2)/1.1 var(--l2font);color:var(--text);background:url(./assets/ui/bar-cap.png) 0 0/.6rem 100% no-repeat,rgba(30,27,23,.76);border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel),0 .25rem .8rem #0009;transition:box-shadow .2s,border-color .2s}.expedition-tracker.active{background:url(./assets/ui/bar-cap.png) 0 0/.6rem 100% no-repeat,radial-gradient(ellipse at 25% 50%,rgba(233,196,106,.16),transparent 70%),rgba(32,27,20,.86);box-shadow:inset 0 0 0 1px #b89850,0 0 .9rem #e9c46a33,0 .3rem .9rem #000b}.expedition-copy{min-width:0;flex:1}.expedition-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.expedition-head>b{display:block;font:inherit;color:var(--bright);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.expedition-tracker.active .expedition-head>b{color:#f5dfa2}.expedition-pips{display:inline-flex;align-items:center;gap:.28rem;flex-shrink:0}.expedition-pips i{width:.52rem;height:.52rem;transform:rotate(45deg);border:1px solid #6e6554;background:#14120f;box-shadow:0 0 0 1px #000}.expedition-pips i.done{background:linear-gradient(135deg,#a8e884,#5d8a45);border-color:#d2f7ba;box-shadow:0 0 5px #7fbf5a88}.expedition-pips i.now{background:var(--gold);border-color:#fff5d6;box-shadow:0 0 8px var(--gold)}.expedition-pips i.missed{opacity:.35}.expedition-pips em{margin-left:.2rem;font:calc(var(--l2) * .62)/1 var(--l2font);font-style:normal;color:var(--yellow)}.expedition-copy>small{display:block;margin-top:.28rem;font:calc(var(--l2) * .68)/1.25 var(--l2font);color:#e6dcc6}.expedition-slot{position:relative;width:48px;height:48px;flex:0 0 48px;border:1px solid;border-color:#8c826b #4a453b #4a453b #8c826b;border-radius:var(--r-slot);box-shadow:0 0 0 1px #000,inset 0 0 .4rem #000a;background:#131213 url('./assets/icons/etc_box_of_adventure_1_i00.png') center/100% 100% no-repeat;image-rendering:pixelated}.expedition-tracker.active .expedition-slot{border-color:var(--gold) #8c7238 #8c7238 var(--gold);box-shadow:0 0 0 1px #000,0 0 .65rem #e9c46a55}.expedition-direction{position:absolute;right:-7px;bottom:-7px;width:28px;height:28px;border-radius:50%;background:rgba(12,11,9,.85) url('./assets/ui/radar-arrow.png') center/80% 80% no-repeat;border:1px solid #8c7647;filter:drop-shadow(0 1px 3px #000);transform-origin:center}.expedition-hold{height:.38rem;margin-top:.38rem;border-radius:0;box-shadow:0 0 0 1px #000c}.expedition-hold>i{width:0;transition:width .2s}

@media(min-width:3000px) and (min-height:1650px){.expedition-copy>small{font-size:26px}.expedition-slot{width:64px;height:64px;flex-basis:64px}}



@media(max-width:1000px){.journey-intro{flex-direction:column;gap:.5rem}.journey-wallet{text-align:left}.journey-contracts,.relic-cards{grid-template-columns:1fr}.journey-looks{grid-template-columns:1fr}.expedition-tracker{max-width:min(26rem,calc(100vw - 2rem))}}

@media(max-width:1100px){.spec-option{padding:.7rem}.spec-option>.icon{display:none}.spec-option em{display:none}.specialized .tier-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.spec-options{grid-template-columns:1fr}.talent-trees.specialized{grid-template-columns:1fr}.specialized .tier-row{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tree{display:flex;flex-direction:column;border:1px solid #000;border-radius:var(--r-win);background:radial-gradient(ellipse at 50% 0,rgba(68,113,178,.14),var(--inset) 70%);box-shadow:inset 0 0 0 1px var(--bevel);padding:.75rem .85rem .9rem}

.tree>h3{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 .6rem;padding:.4rem .7rem;font:1.15rem var(--sans);color:var(--bright);background:linear-gradient(90deg,var(--strip),transparent);border-left:2px solid var(--beige);border-radius:0;text-shadow:0 1px 2px #000}.tree>h3 small{font-size:.92rem;color:var(--muted)}

.tiers{display:flex;flex-direction:column;gap:1.3rem;padding:.3rem 0 .2rem}

/* An open tier starts with a plain line, a closed one with a muted chip saying what it needs. */

.tier-need{display:flex;align-items:center;gap:.6rem;margin-bottom:.55rem;font-size:.9rem;color:var(--muted)}.tier-need::before,.tier-need::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--line2))}.tier-need::after{background:linear-gradient(270deg,transparent,var(--line2))}

.tier-need span{padding:.1rem .6rem;border:1px solid var(--line);border-radius:0;background:#00000059}

.tier-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.tier-row>:only-child{grid-column:1/-1;justify-self:center;width:calc(50% - .28rem)}

.talent{display:flex;flex-direction:column;align-items:center;gap:.45rem;min-width:0;min-height:8.4rem;text-align:center;padding:.7rem .5rem .6rem;border:1px solid var(--line);border-radius:0;background:var(--inset);cursor:pointer}

.talent:not(.locked):hover{filter:none;background:var(--hover);border-color:var(--select-line)}.talent.locked:hover{filter:none}.talent-icon{position:relative;flex-shrink:0}.talent .icon{width:max(32px,round(nearest,3.6rem,32px));height:max(32px,round(nearest,3.6rem,32px))}

.talent-text{min-width:0}.talent-text b{display:block;font:1rem/1.25 var(--sans);color:var(--bright)}.talent-text small{display:block;margin-top:.15rem;font-size:.9rem;line-height:1.3;color:var(--green)}

.talent.locked{cursor:default}.talent.locked .talent-text b{color:var(--muted)}.talent.locked .talent-text small{color:var(--dim)}

/* The points panel: how many points wait (big, green when there are some), SP towards the next one, reset, how it works. */

.talent-points{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 1rem 1rem;border:1px solid #000;border-radius:var(--r-win);background:var(--inset);box-shadow:inset 0 0 0 1px var(--bevel)}.talent-points>.panel-title{margin:0 0 .3rem}.talent-points p{margin:0;font-size:.95rem;color:var(--text)}

.big-number{display:flex;align-items:baseline;gap:.6rem}.big-number b{font:700 3rem/1 var(--sans);color:var(--muted)}.big-number.free b{color:var(--green)}.big-number small{font-size:1.05rem;color:var(--text)}.talent-points .btn{align-self:flex-start;padding:.45rem 1rem;margin:.4rem 0}

.talent.ready{border-color:#5d8a45;box-shadow:inset 0 3px 0 #7fbf5a}.talent.ready .icon{border-color:var(--green);box-shadow:0 0 0 1px #000,0 0 .75rem #93d66f99}

.talent.maxed{border-color:var(--gold3);box-shadow:inset 0 3px 0 var(--gold)}.talent.maxed .icon{border-color:var(--gold);box-shadow:0 0 0 1px #000,0 0 .75rem #e9c46a99}

.talent-rank{position:absolute;right:-.4rem;bottom:-.4rem;background:#000e;border:1px solid var(--line2);border-radius:0;font:700 .88rem/1.2 var(--sans);color:#fff;padding:.05rem .32rem}

/* Achievements: summary with the active rewards on the left, rows with a client icon, the goal, progress and reward. */

.ach-layout{display:grid;grid-template-columns:minmax(16rem,22rem) minmax(0,1fr);gap:1.4rem;align-items:start}

.ach-summary{position:sticky;top:0;padding:.75rem 1rem 1rem;border:1px solid #000;border-radius:var(--r-win);background:var(--inset);box-shadow:inset 0 0 0 1px var(--bevel)}.ach-summary>.panel-title{margin:0 0 .6rem}

.ach-count{display:grid;place-items:center;width:9rem;height:9rem;margin:.6rem auto 1rem;border:2px solid var(--beige2);border-radius:50%;background:radial-gradient(circle,#3b352c,#14120f 70%);box-shadow:0 0 0 1px #000,0 0 1.2rem #e9c46a33,inset 0 0 1.2rem #000}.ach-count b{font:700 2.8rem/1 var(--sans);color:var(--yellow)}.ach-count small{margin-top:-1.6rem;color:var(--muted);font-size:.95rem}

.ach-main>.panel-title:first-child{margin-top:0}

.ach-search{display:block;width:100%;box-sizing:border-box;margin:0 0 .6rem;padding:.35rem .6rem;font:inherit;color:var(--text);background:#000000a0;border:1px solid var(--line2);border-radius:0;outline:none}.ach-search:focus{border-color:var(--yellow)}.ach-row[hidden],.ach-list[hidden],.ach-main .panel-title[hidden]{display:none}

.ach-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,30rem),1fr));gap:.45rem}.ach-row{display:grid;grid-template-columns:auto 1fr auto;gap:.85rem;align-items:center;border:1px solid var(--line);border-radius:0;background:var(--inset);padding:.5rem .85rem}

.ach-row .icon{width:max(32px,round(nearest,3rem,32px));height:max(32px,round(nearest,3rem,32px))}.ach-row:not(.done) .icon{filter:grayscale(.7) brightness(.75)}.ach-row.done{border-color:var(--beige3);background:linear-gradient(90deg,rgba(233,196,106,.1),var(--inset) 60%)}.ach-row b{font-size:1.05rem;color:var(--bright)}.ach-row small{display:block;color:var(--muted);font-size:.9rem}.ach-row .reward{color:var(--green);font-size:.92rem;text-align:right;max-width:13rem}

.ach-prog{display:grid;grid-template-columns:1fr auto;gap:.6rem;align-items:center;margin-top:.3rem}.ach-prog .progress{margin:0;height:.6rem}.ach-prog small{white-space:nowrap}

.sp-line{margin:.25rem 0 .6rem;font-size:1.05rem}.sp-line b{color:var(--yellow);font:700 1.3rem var(--sans)}.ok{color:var(--green)}.bad{color:var(--red)}

@media (max-width:1300px) and (min-width:861px){.talent-trees{grid-template-columns:repeat(3,minmax(0,1fr))}.talent-points{grid-column:1/-1}}

@media (max-width:860px){.talent-trees{grid-template-columns:1fr}.ach-layout{grid-template-columns:1fr}.ach-summary{position:static}.ach-row{grid-template-columns:auto 1fr}.ach-row .reward{grid-column:2;text-align:left;max-width:none}}

/* choice cards: big icon in a rarity frame, rank pips, what changes */

.card{align-items:center;text-align:center;gap:.4rem;padding:1.4rem 1.2rem 1.1rem;overflow:hidden}

.card::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0,color-mix(in srgb,var(--r) 22%,transparent),transparent 62%);pointer-events:none}

.card-rarity{position:absolute;z-index:1;bottom:1.9rem;left:0;right:0;text-align:center;font:.9rem var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--r);text-shadow:0 1px 2px #000;pointer-events:none}.card{padding-bottom:3.4rem}

.card-icon{position:relative;margin:.6rem auto .15rem;padding:.3rem;border:1px solid var(--r);border-radius:0;background:radial-gradient(circle,color-mix(in srgb,var(--r) 30%,#000) 0,#0b0a09 70%);box-shadow:0 0 1.4rem color-mix(in srgb,var(--r) 45%,transparent),inset 0 0 .7rem #000}

.icon.big{width:max(32px,round(nearest,4.6rem,32px));height:max(32px,round(nearest,4.6rem,32px))}.card .kind{margin-top:.1rem}.card .lines{text-align:left;width:100%}.card .flavor{text-align:left;width:100%}

.pips{display:flex;gap:.3rem;justify-content:center}.pips i{width:.62rem;height:.62rem;transform:rotate(45deg);border:1px solid var(--gold3);background:#0b0a09}.pips i.on{background:var(--gold2);border-color:var(--gold)}.pips i.new{background:var(--r);border-color:#fff;box-shadow:0 0 8px var(--r);animation:pip 1s ease-in-out infinite alternate}

@keyframes pip{to{box-shadow:0 0 2px var(--r)}}

/* Skill Enchant (past rank VIII): the level after the lit pips in the card's colour, and a gold +N on the skill's icon */

.pips .plus{font:700 .8rem/.62rem var(--sans);color:var(--r);text-shadow:0 0 6px var(--r);margin-left:.15rem}.icon .rank.enchant{color:var(--gold)}

.card .dot{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;background:var(--c);margin-right:.4rem;box-shadow:0 0 6px var(--c)}.card .skill{color:#c9a2ff;font-weight:400}.card .broken,#tooltip .broken{color:var(--legendary)}.card .skill,#tooltip .skill{color:#c9a2ff}.l2tag{color:var(--dim);font-size:.88em}.glow-line{color:#9fd8ff}.replaces{color:var(--muted);font-size:.9rem}

.icon.flying{border:1px solid #fff;box-shadow:0 0 22px #fff8}

@keyframes slotflash{0%{box-shadow:0 0 0 2px #fff,0 0 26px #ffe9a8}100%{box-shadow:0 0 0 1px #000}}.icon.flash{animation:slotflash .7s ease-out}

.jewel-row{display:flex;gap:.5rem}.slot-bar.augment .icon.glow1{box-shadow:0 0 0 1px #5ea8ff,0 0 10px #5ea8ff}.slot-bar.augment .icon.glow2{box-shadow:0 0 0 1px #5ea8ff,0 0 14px #9fd8ff}.slot-bar.augment .icon.glow3{box-shadow:0 0 0 1px #b77bff,0 0 16px #b77bff}.slot-bar.augment .icon.glow4{box-shadow:0 0 0 1px #ff9a3c,0 0 18px #ffb36b}

/* forge (enchanting) and appearances */

/* Forge: the Armory's title bar and tabs stay across the top, the forge window stands on the right, the hero big on the left. */

.armory.forge-open{background:linear-gradient(90deg,transparent 0 calc(100% - min(50rem,52vw) - 8rem),rgba(0,0,0,.6) calc(100% - min(50rem,52vw) - 1.6rem));backdrop-filter:none}

.armory.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.forge-open .armory-head .tabs{border-bottom:0;padding-bottom:.55rem}.armory.forge-open .armory-head .tabs button{border-radius:var(--r-btn);border-bottom-color:var(--beige3);margin:0}.armory.forge-open .armory-head .tabs button.active{border-color:var(--beige);background:rgba(0,0,0,.35)}

.armory.forge-open .armory-body{width:min(50rem,52vw);margin:.6rem 0 0 auto;border-top:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel),0 .4rem 1.6rem #0009}

/* With the Forge open the menu behind steps aside: the hero stands big in the free left part (the world frames them into #stage), so the weapon's enchant glow is easy to see. */

@media (min-width:861px){#menu:has(~ #armoryModal.forge-open:not([hidden])) .hero-panel{left:1.5rem;right:calc(min(50rem,52vw) + 4rem);top:6.5rem;bottom:1rem}#menu:has(~ #armoryModal.forge-open:not([hidden])) :is(.hero-head,.hero-info){display:none}#menu:has(~ #armoryModal:is(.forge-open,.char-open):not([hidden])) :is(.class-panel,.zone-panel,.menu-footer,.equip-col,.topbar){visibility:hidden}

 #menu:has(~ #armoryModal.char-open:not([hidden])) .hero-panel{left:calc(50% - min(21rem,50vw - 31rem));right:calc(50% - min(21rem,50vw - 31rem));top:8.6rem;bottom:3.4rem}#menu:has(~ #armoryModal.char-open:not([hidden])) .hero-info{display:none}}

@media (max-width:860px){.armory.char-open{background:rgba(0,0,0,.85)}.armory.char-open .armory-body{display:block;overflow-y:auto}.char-side{margin-bottom:.8rem}.char-mid{display:none}}

/* The weapon box in the augment window's ornate frame (refinewnd_back_Pattern), like the client's refine window. */

.forge-weapon{position:relative;display:flex;gap:1.25rem;align-items:center;border:1px solid var(--line);border-radius:var(--r-win);background:radial-gradient(ellipse at 15% 50%,rgba(68,113,178,.16),var(--inset) 60%);padding:1.3rem 1.4rem;margin-bottom:.9rem}.forge-weapon::after{content:'';position:absolute;inset:.25rem;border:1.5rem solid transparent;border-image:url(./assets/ui/frame-ornate.png) 36/1.5rem;pointer-events:none;opacity:.6}.forge-weapon h3{font:1.5rem var(--sans);margin:0 0 .25rem;color:var(--bright);text-shadow:0 1px 2px #000}.enchant-name.blue{color:#a9d4ff;text-shadow:0 0 .7rem #3d8bff99,0 1px 2px #000}.enchant-name.red{color:#ffab9a;text-shadow:0 0 .7rem #ff3b2499,0 1px 2px #000}

.weapon-big{position:relative;flex-shrink:0;padding:.4rem;border:1px solid var(--gold2);border-radius:0;background:radial-gradient(circle,#1d2a44,#0b0a09 70%)}.enchant-level{position:absolute;right:-.7rem;bottom:-.7rem;font:700 1.5rem var(--sans);color:#fff;text-shadow:0 0 6px #000,0 0 3px #000}.enchant-level.blue{color:#9fd0ff;text-shadow:0 0 10px #3d8bff,0 0 3px #000}.enchant-level.red{color:#ff9a8a;text-shadow:0 0 10px #ff3b24,0 0 3px #000}

.glow-scale small{display:block;color:var(--muted);font-size:.88rem;margin-bottom:.3rem}.glow-scale div{display:flex;flex-wrap:wrap;gap:.2rem}.glow-scale i{width:1.15rem;height:.85rem;border:1px solid #000;border-radius:0;opacity:.55;filter:brightness(2.4)}.glow-scale i.done{opacity:.85}.glow-scale i.here{opacity:1;outline:2px solid #fff}

.forge-result{min-height:1.4em;margin:.7rem 0 0!important;font-size:1.05rem;text-align:center}.small-print{font-size:.9rem;color:var(--muted);margin-top:.75rem}

/* Scrolls as slots to pick from (count in the corner, grade and blessed under it), the chosen one in L2 blue. */

.scroll-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(6.4rem,1fr));gap:.45rem}
/* Drops the server has not confirmed yet (Robin): a block of their own with the same gap below as the other sections (.coll-counts, .panel-title). */
.pending-drops{margin-bottom:.8rem}

.scroll-slot{position:relative;display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.5rem .3rem .4rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}.scroll-slot:hover:not(:disabled){filter:none;background:var(--hover)}

.scroll-slot.selected{border-color:var(--select-line);background:linear-gradient(var(--select),rgba(68,113,178,.12));box-shadow:inset 0 0 0 1px #00000080}.scroll-slot .icon{width:max(32px,round(nearest,3.2rem,32px));height:max(32px,round(nearest,3.2rem,32px))}.scroll-slot small{font-size:.88rem;color:var(--text);white-space:nowrap}

.scroll-slot .count{position:absolute;right:.35rem;top:.3rem;font:.88rem var(--sans);color:#fff;text-shadow:0 0 2px #000,0 0 3px #000}

/* Per-weapon enchant: the one-time question of a migrated save (which weapon had the class-wide level), the enchant of each

   weapon on its Wear button, and the transmutation of plain scrolls into blessed ones (warehouse slots, ratio, two buttons). */

.enchant-ask{margin-bottom:.9rem;padding:.75rem .9rem;border:1px solid var(--gold3);border-radius:var(--r-win);background:#00000059;box-shadow:inset 0 0 0 1px #00000080}.enchant-ask>b{display:block;color:var(--gold);font-size:1.02rem}.enchant-ask>small{display:block;color:var(--muted);font-size:.9rem;margin:.2rem 0 .6rem}.enchant-ask .scroll-pick{grid-template-columns:repeat(auto-fill,minmax(5.6rem,1fr))}

.wear-pick .pin em{font-style:normal;font-size:.82rem;color:#9fd0ff;margin-left:.2rem}

.transmute-list{display:flex;flex-direction:column;gap:.35rem}.transmute-row{display:grid;grid-template-columns:auto auto auto 1fr auto auto;gap:.6rem;align-items:center;padding:.35rem .6rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}.transmute-row.short{opacity:.75}

.tm-slot{display:inline-flex;align-items:flex-end;gap:.2rem;line-height:0}.tm-slot .icon{width:max(32px,round(nearest,2.4rem,32px));height:max(32px,round(nearest,2.4rem,32px))}.tm-slot>b{font:.88rem/1.1 var(--sans);color:var(--bright)}.tm-arrow{font:1rem var(--sans);font-style:normal;color:var(--muted)}

.tm-name b{display:block;font-size:.95rem;color:var(--bright);line-height:1.25}.tm-name small{display:block;font-size:.85rem;color:var(--muted)}.transmute-row .btn{padding:.35rem .8rem;white-space:nowrap}

@media (max-width:860px){.transmute-row{grid-template-columns:auto auto auto 1fr}.transmute-row .tm-name{grid-column:1/-1;order:-1}}

/* Success chance big, the scroll and its risk, one Enchant button (the reference's enchant window). */

.enchant-box{display:grid;grid-template-columns:auto 1fr minmax(12rem,auto);gap:1.2rem;align-items:center;margin-top:1rem;padding:.9rem 1.1rem;border:1px solid var(--line2);border-radius:var(--r-win);background:var(--inset)}

.success{text-align:center;cursor:help}.success small{display:block;font-size:.95rem;color:var(--muted)}.success b{font:700 2.6rem/1 var(--sans);color:var(--yellow);text-shadow:0 1px 3px #000}

.enchant-info b{display:block;font-size:1.08rem;color:var(--bright)}.enchant-info small{display:block;font-size:.92rem;color:var(--muted);margin-top:.15rem}.enchant-box .primary{width:auto;padding:.75rem 1.4rem}

.looks{display:flex;gap:.3rem;margin-top:.4rem;flex-wrap:wrap}.look{padding:0;border:0;background:none}.look .icon{width:max(32px,round(nearest,2.4rem,32px));height:max(32px,round(nearest,2.4rem,32px));opacity:.7}.look.active .icon{opacity:1;border-color:var(--gold);box-shadow:0 0 0 1px #000,0 0 .5rem #e9c46a88}

@media (max-width:860px){.armory.forge-open{background:rgba(0,0,0,.85)}.armory.forge-open .armory-inner{max-width:none}.armory.forge-open .armory-body{width:auto;margin-left:0}}

.test-tag{position:fixed;left:.6rem;bottom:.5rem;z-index:60;padding:.1rem .6rem;border:1px solid var(--line2);border-radius:0;background:rgba(0,0,0,.75);color:var(--yellow);font-size:.8rem;letter-spacing:.14em;pointer-events:none}

/* Evade on the space bar: the client icon with its key under it; the kills counter is a word, not a glyph. */

.dash-icon .key{position:absolute;left:0;right:0;bottom:.05rem;text-align:center;font:.88rem var(--sans);color:#fff;text-shadow:0 0 2px #000,0 0 3px #000,0 0 3px #000}/* An on-screen message waits while a window is open (the boss loot choice must not have "has fallen!" over it). */

body:has(.modal:not([hidden])) .banner{opacity:0}

.about-inner p{text-align:left}.about-inner h2{font-size:2rem}

@media (max-width:860px){.armory-head .tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.armory-head .tabs::-webkit-scrollbar{display:none}.armory-head .tabs button{flex:none}.enchant-box{grid-template-columns:auto 1fr}.enchant-box .primary{grid-column:1/-1;width:100%}.boss-row{grid-template-columns:1fr}.boss-row .drop{min-width:0}}

/* Loading screen: the 3D world stays dark until the map and the models are loaded, then fades in. */

#world{opacity:0;transition:opacity .9s ease}body.world-ready #world{opacity:1}

/* #loading: loading.css (the key art loading screen, 1. 11. 2026) */

/* Short interface text in the client's own font (window titles, tabs, buttons, section headers, tooltip names), at --l2 so

   the bitmap pixels stay whole; descriptions and other long text stay in Tahoma. */

.titlebar,.panel>.panel-title,.compact>.eyebrow,.results-inner>.eyebrow,.armory-head>h2,.armory-body .panel-title,.armory-body :is(.char-side,.talent-points,.ach-summary)>.panel-title,.tab-row button,.topbar .tabs button,.armory-head .tabs button,.btn,.framed b,.primary,.secondary,.label,.tree>h3,#tooltip>b,.zone h3,#toast{font-family:var(--l2font);font-size:var(--l2);font-weight:400;letter-spacing:.02em}

/* Keep centred tabs and both side blocks inside the bar on smaller desktop windows. */

@media (min-width:861px) and (max-width:1799px){.topbar .tabs button{font-size:clamp(18px,calc(1.54vw - 1.7px),26px);line-height:1;padding:.1rem .6rem}.topbar>.topright{justify-content:flex-end;flex-wrap:wrap;row-gap:.2rem;max-width:100%}.topbar .asc-best{flex-basis:100%;justify-content:flex-end;margin-right:0}}

.label{letter-spacing:.04em}

@media (max-width:860px){.status-row{left:.4rem;top:.4rem;flex-direction:column;gap:.2rem}.hp-card{width:min(calc(var(--l2) * 10),58vw)}.radar-box{width:calc(var(--l2) * 5.5)}.run-stats{top:calc(var(--l2) * 5.5 + .7rem)}.dps{display:none}}

/* Phones: 26 px is too big for the run HUD, 16 px (a little soft, a phone's high pixel density hides it). */

@media (max-width:740px){:root{--l2:16px}.timer-card{top:9.2rem;width:auto}.top-stack{top:14.6rem}.run-stats{gap:.5rem}}

/* Cosmetics in the Character tab (right column, under the skills): the worn ones (game.js wornSummary); empty, it takes no

   space. The hero on the stage turns with a drag. */

.char-cosmetics:empty{display:none}

/* Cosmetics tab (game.js cosmeticsTab, the Character tab's three columns): per slot a list of tiles, icon, name, state and

   for a locked one the achievement's goal in plain words with its progress; worn framed in gold, tried on in blue, locked

   greyed. Character tab: the worn ones as chips and the way to the tab. */

.cos-list{display:flex;flex-direction:column;gap:.4rem}

.cos-tile{display:grid;grid-template-columns:auto 1fr;gap:.75rem;align-items:center;width:100%;padding:.45rem .7rem;text-align:left;color:inherit;font:inherit;line-height:0;cursor:pointer;border:1px solid var(--line);border-radius:0;background:var(--inset)}

.cos-tile:hover{background:var(--hover);border-color:var(--select-line)}

.cos-tile .icon{width:max(32px,round(nearest,3rem,32px));height:max(32px,round(nearest,3rem,32px))}

.cos-text{min-width:0;display:flex;flex-direction:column;gap:.12rem;line-height:1.3}.cos-text b{font-size:1.02rem;color:var(--bright)}.cos-text small{font-size:.88rem;color:var(--muted)}

.cos-state{color:var(--beige2)!important}.cos-req{color:var(--text)!important}.cos-ach{color:var(--beige2);white-space:nowrap}

.cos-prog{display:grid;grid-template-columns:1fr auto;gap:.6rem;align-items:center;margin-top:.15rem}.cos-prog .progress{margin:0;height:.55rem}.cos-prog small{white-space:nowrap}

.cos-tile.worn{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold2);background:linear-gradient(90deg,rgba(233,196,106,.14),var(--inset) 70%)}.cos-tile.worn .cos-state{color:var(--gold)!important}

.cos-tile.locked b{color:var(--muted)}.cos-tile.trying{border-color:#4471b2;box-shadow:inset 0 0 0 1px #4471b2;background:linear-gradient(90deg,rgba(68,113,178,.22),var(--inset) 70%)}.cos-tile.trying .cos-state{color:#9cc0f0!important}

.worn-list{display:flex;flex-wrap:wrap;gap:.4rem .9rem;margin-bottom:.6rem}.worn-chip{display:flex;align-items:center;gap:.45rem;line-height:0}.worn-chip .icon{width:32px;height:32px}.worn-chip small{line-height:1.2;color:var(--gold)}

.cosmetic-chip{display:flex;align-items:center;justify-content:flex-end;gap:.4rem;margin-top:.3rem;line-height:0}.cosmetic-chip .icon{width:32px;height:32px}.ach-row .cosmetic-chip small,.loot .cosmetic-chip small{display:inline;line-height:1.2;color:var(--gold)}.loot .cosmetic-chip{justify-content:flex-start}

.armory.char-open .armory-body,.armory.forge-open{cursor:default}

/* Client icons (32 px) stay the client's own pixels: every icon box is a whole multiple of 32 px (content box, the frame

   outside it) drawn nearest-neighbour, so they are crisp and never repainted. */

.icon{box-sizing:content-box;image-rendering:pixelated;background-size:100% 100%}

/* Frames around an icon hug it and centre it (an inline icon would sit on a text baseline with a gap under it). */

.card-icon,.talent-icon,.weapon-big,.look,.slot-row,.scroll-slot,.coll-cell,.codex-item{line-height:0}.card-icon,.talent-icon,.weapon-big,.look{display:flex;align-items:center;justify-content:center}

:is(.slot-row,.scroll-slot,.coll-cell,.codex-item,.talent) :is(small,b,span,div){line-height:1.3}

/* Card stat block: a row per stat, label left and value right on a faint leader line; a small mark per kind of stat. On an

   upgrade only what goes up is lit (the new value in the rarity's colour with an up mark), what the rank adds says "new". */

.card .lines{text-align:center;color:var(--text);margin:.1rem 0 0}

.stat-block{width:100%;display:flex;flex-direction:column;gap:.18rem;margin:.35rem 0 .1rem;padding:.45rem .6rem;border:1px solid #ffffff12;border-radius:0;background:#00000059}

.stat{display:flex;align-items:baseline;gap:.5rem;font-size:1rem;line-height:1.35;color:var(--muted)}.stat span{min-width:0}

.stat::after{content:'';order:1;flex:1 0 .6rem;border-bottom:1px dotted #ffffff1f;transform:translateY(-.25em)}.stat b{order:2;flex:none;font-weight:400;color:var(--bright);white-space:nowrap}

.stat span::before{content:'';display:inline-block;width:.42rem;height:.42rem;margin-right:.4rem;border-radius:0;background:var(--mk,#8c826b);transform:translateY(-.1em)}.stat .dot{margin-right:.4rem}

.stat[data-type=dmg]{--mk:#d0574a}.stat[data-type=reach]{--mk:#5d8fd0}.stat[data-type=time]{--mk:#8c8a84}.stat[data-type=ctrl]{--mk:#a77ad8}.stat[data-type=gain]{--mk:#d9b45e}

.stat.same b{color:var(--text)}.stat.change s{text-decoration:none;color:var(--dim)}.stat.change em{font-style:normal;color:color-mix(in srgb,var(--r) 55%,#fff);text-shadow:0 0 .6rem color-mix(in srgb,var(--r) 70%,transparent)}.stat.change em::after{content:'';display:inline-block;margin-left:.3em;border:.28em solid transparent;border-bottom:.38em solid currentColor;border-top:0;transform:translateY(-.1em)}

.stat.added b{color:color-mix(in srgb,var(--r) 55%,#fff)}.stat.added span::after{content:'new';margin-left:.2rem;padding:0 .3rem;border-radius:0;font-size:.78em;color:#0b0a09;background:color-mix(in srgb,var(--r) 70%,#fff)}
/* a Skill power row "(no change)" stays quiet, the card adds nothing to it (F03, tester 14. 11. 2026) */
.stat.quiet span,.stat.quiet b{color:var(--dim);font-weight:normal}

.stat.bonus b{color:var(--green)}.stat.skill b{color:#c9a2ff}.stat.broken b{color:var(--legendary)}.stat .dot{display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:var(--c);box-shadow:0 0 5px var(--c)}.stat:has(.dot) span::before{display:none}

.card .notes{width:100%;margin:.15rem 0 0;font-size:.95rem;line-height:1.4;text-align:left;color:#b6d8a4}

/* Reroll, Banish, Skip: the client icon at 32 px (or 64 on big screens), the name with its key, what is left. */

.choice-actions button,.choice-actions button.framed{display:flex;flex-direction:row;align-items:center;gap:.6rem;padding:.35rem .9rem .35rem .4rem;min-width:12rem;text-align:left}.choice-actions .icon{width:max(32px,round(nearest,2.2rem,32px));height:max(32px,round(nearest,2.2rem,32px))}

.cb-label{flex:1}.cb-label kbd{padding:0 .3rem;border:1px solid var(--line2);border-radius:0;background:#00000080;font:inherit;font-size:.85em}.cb-count{color:var(--yellow);font-weight:400}

/* Skill and evade reuse: a clockwise sweep like the client's, run by CSS (game.js sweep() restarts it), paused with the game. */

@property --cd{syntax:'<number>';inherits:false;initial-value:0}

.slot-bar.skills .cd,#dashCd,#augCd{transform:none;--cd:0;background:conic-gradient(#000000b8 calc(var(--cd) * 360deg),transparent 0)}

.slot-bar.skills .cd.sweep,#dashCd.sweep,#augCd.sweep{animation-name:cdsweep;animation-timing-function:linear;animation-fill-mode:forwards}

/* A Life Stone's Active skill (augment.js): a slot next to Evade, F or a click; a card's augment rows say what each line does. */

.slot-bar.dash{display:flex;gap:.2rem}.aug-active{cursor:pointer;border-color:#b77bff #6d4f99 #6d4f99 #b77bff}.aug-active.ready{box-shadow:0 0 0 1px #000,0 0 .6rem #b77bff88}

.stat.aug-line{flex-wrap:wrap}.stat.aug-line small{flex-basis:100%;order:3;padding-left:.9rem;text-align:left;color:var(--dim);font-size:.85em;line-height:1.2}

.aug-ico{display:inline-block;width:1.1rem;height:1.1rem;margin-right:.35rem;vertical-align:-.2rem;background:center/cover no-repeat;image-rendering:pixelated;border:1px solid #000}.stat.skill:has(.aug-ico) span::before{display:none}

.card .aug-text{color:#d6c4f2}#tooltip .aug-what{color:var(--dim)}

@keyframes cdsweep{from{--cd:1}to{--cd:0}}

body.sim-paused .cd.sweep{animation-play-state:paused}

/* Options window (settings.js): a window with a tab per section, a row per option; switches, sliders and choices in the

   client's colours. Over the pause window too. */

#optionsModal{z-index:25}.options-inner{max-width:50rem;padding:0 1.6rem 1.4rem;text-align:left;background:var(--win);border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel),0 .4rem 1.6rem #0009}

.options-inner>.titlebar{margin:0 -1.6rem}#optionsTabs{flex-wrap:wrap;gap:.25rem;padding:.7rem 0 0;border-bottom:1px solid var(--beige2)}

#optionsTabs button{padding:.42rem 1rem .38rem;margin-bottom:-1px;border:1px solid var(--beige3);border-bottom-color:var(--beige2);border-radius:0;background:rgba(86,80,70,.62);color:#cfc6b2;font:var(--l2) var(--l2font);text-shadow:0 1px 2px #000}

#optionsTabs button.active{background:rgba(38,34,29,.85);border-color:var(--beige);border-bottom-color:transparent;color:var(--bright)}#optionsTabs button:hover{filter:none;color:var(--bright)}

.options-body{display:flex;flex-direction:column;gap:.15rem;padding-top:.8rem}

.opt-row{display:grid;grid-template-columns:1fr minmax(0,24rem);gap:1rem;align-items:center;min-height:2.6rem;padding:.25rem .6rem;border-radius:0}.opt-row:nth-child(odd){background:#00000038}.opt-row>span{color:var(--text)}

.opt-changed{margin-left:.4rem;color:var(--yellow);font-size:.85em}.opt-control{display:flex;align-items:center;gap:.7rem;justify-content:flex-end}

.opt-value{min-width:3.6rem;text-align:right;color:var(--bright);font-weight:400}

/* Sliders: the client's CP gauge (filled part) on its empty back, the thumb a small grey client button. Choices: the .seg

   buttons of the menu's run length (the picked one pressed with the blue glow). */

.opt-control input[type=range]{flex:1;min-width:0;height:1.7rem;margin:0;-webkit-appearance:none;appearance:none;background:none;cursor:pointer}

.opt-control input[type=range]::-webkit-slider-runnable-track{height:.6rem;border:1px solid #000;border-radius:0;box-shadow:0 0 0 1px var(--line2);

 background:url(./assets/ui/gauge-cp.png) 0 0/var(--fill,0%) 100% no-repeat,url(./assets/ui/gauge-cp-back.png) 0 0/100% 100%}

.opt-control input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:1rem;height:1.5rem;margin-top:-.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::-webkit-slider-thumb{background-image:url(./assets/ui/btn-grey-over.png);border-color:#efe3c2 #b9ab88 #9d917a #c9bd9e}

.opt-seg{flex:1;min-width:0}.opt-seg .btn{min-width:0;padding:.34rem .45rem .3rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.switch{position:relative;width:3.2rem;height:1.6rem;padding:0;border:1px solid var(--line2);border-radius:0;background:#000000a0}.switch i{position:absolute;left:.18rem;top:.16rem;width:1.15rem;height:1.15rem;border-radius:50%;background:#8c8a84;transition:left .15s,background .15s}

.switch.on{background:rgba(68,113,178,.55);border-color:var(--select-line)}.switch.on i{left:1.85rem;background:#f2e9d6}

.opt-foot{display:flex;justify-content:flex-end;margin-top:.8rem}.opt-foot .btn{padding:.4rem 1rem}

/* The menu's Options button: the client's gear, 16 px drawn at 32. */

.opt-icon{display:block;width:32px;height:32px;margin:auto;background:url(./assets/ui/icon-options.png) center/100% 100% no-repeat;image-rendering:pixelated}

.fps{position:fixed;right:.6rem;bottom:.5rem;z-index:60;padding:.1rem .5rem;border:1px solid var(--line2);border-radius:0;background:#000000b0;color:var(--green);font:var(--l2) var(--l2font);pointer-events:none}



/* Key labels and ranks on the shortcut bars in the client's own font, at whole multiples of its 13 px cell so it stays crisp:

   the full HUD size on skill and evade slots, the 1x cell on the smaller jewel slots. */

.slot-bar .icon .rank,.dash-icon .key{font:var(--l2)/1 var(--l2font);font-weight:400;letter-spacing:0;text-shadow:1px 1px 0 #000,-1px 0 0 #000,0 -1px 0 #000,0 0 3px #000}

.slot-bar.jewels .icon .rank{font-size:calc(var(--l2) / 2)}

.dash-icon .key{bottom:.1rem}

/* Raid boss, guardian and elite rows under the timer: white names, red HP bars (Daniel: as over the monsters). */

.boss-slim,.boss-slim.guardian,.boss-slim.elite{color:#fff}.boss-slim .bar i{background:linear-gradient(#e0473f,#a8221c)}

/* Gear (gear.js): properties and sets in tooltips, the Character tab's worn piece, pin (Wear) and sets, the Enchant tab's Special

   Ability, the Under-geared line on the zone and under the timer. Client icons stay at whole multiples of 32 px. */

#tooltip .gear-prop{color:#c8e3ff}#tooltip .gear-prop b{color:#8fc1ff;font-weight:700}

#tooltip .set-name{display:block;margin-top:.35rem;color:var(--yellow);font-weight:700}#tooltip .set-name b{color:var(--bright)}

#tooltip .set-pieces i{display:inline-block;margin:0 .35rem .1rem 0;font-style:normal;font-size:.85rem}#tooltip .set-pieces .worn{color:var(--green)}#tooltip .set-pieces .own{color:var(--text)}#tooltip .set-pieces .miss{color:var(--dim)}.set-missing{color:#d9a066;font-size:.85rem}

#tooltip .set-tier{display:block;color:var(--dim);font-size:.9rem}#tooltip .set-tier.on{color:var(--yellow)}#tooltip .set-tier em{display:block;font-style:normal;color:#8fc1ff;font-size:.85rem}

#tooltip .l2-text{display:block;color:var(--dim);font-size:.82rem;font-style:italic}#tooltip .ok{color:var(--green)}#tooltip .bad{color:var(--red)}#tooltip .muted{display:inline;margin:0}

.slot-row .slot-prop{display:flex;align-items:center;gap:.35rem;margin-top:.2rem;font-size:.92rem;color:#a9cdf5}.slot-row .slot-prop .icon{width:32px;height:32px}

.wear-pick,.looks{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem;margin-top:.35rem}.wear-pick>small,.looks>small{width:2.6rem;font-size:.8rem;letter-spacing:.06em;color:var(--dim)}

.wear-pick .pin{min-width:2.1rem;height:1.9rem;padding:0 .45rem;border:1px solid var(--line2);border-radius:var(--r-btn);background:var(--inset);font:.88rem var(--sans);color:var(--muted)}

.wear-pick .pin b{font-size:.95rem;color:inherit}.wear-pick .pin.on{border-color:var(--gold);color:var(--bright);background:linear-gradient(var(--select),var(--inset));box-shadow:0 0 .35rem #e9c46a55}

.wear-pick .pinned{font:.8rem var(--sans);font-style:normal;color:var(--gold);letter-spacing:.04em}

.set-box{margin:.5rem 0;padding:.55rem .7rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}.set-box.active{border-color:var(--gold3);box-shadow:inset 0 2px 0 #e9c46a55}

.set-head b{display:block;font:1.05rem var(--sans);color:var(--yellow)}.set-head small{color:var(--muted);font-size:.85rem}

.set-pieces{display:flex;flex-wrap:wrap;gap:.3rem;margin:.45rem 0}.set-piece{position:relative}.set-piece .icon{width:32px;height:32px}.set-piece.miss .icon{opacity:.28;filter:grayscale(1)}.set-piece.own .icon{opacity:.75}

.set-piece.worn .icon{border-color:var(--gold) #9c864a #9c864a var(--gold)}.set-piece b{position:absolute;right:-.2rem;bottom:-.25rem;font:.72rem var(--sans);color:var(--bright);text-shadow:0 0 2px #000}

.set-tier{display:flex;gap:.5rem;align-items:baseline;margin:.18rem 0;color:var(--dim);font-size:.9rem}.set-tier>b{flex:none;width:1.4rem;height:1.4rem;display:grid;place-items:center;border:1px solid var(--line2);border-radius:50%;font-size:.8rem}

.set-tier.on{color:var(--text)}.set-tier.on>b{border-color:var(--gold);color:var(--ink);background:var(--gold)}.set-tier em{display:block;font-style:normal;font-size:.82rem;color:#8fc1ff}

.set-box .l2-text,.sa-card .l2-text{margin:.3rem 0 0;font-size:.8rem;font-style:italic;color:var(--dim)}.set-none{margin-top:.3rem}

.sa-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.5rem;margin-bottom:.9rem}

.sa-card{display:flex;gap:.7rem;align-items:flex-start;text-align:left;padding:.6rem .75rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}

.sa-card b{display:block;font:1.02rem var(--sans);color:var(--bright)}.sa-card small{display:block;color:var(--muted);font-size:.88rem}.sa-card .state{margin-top:.25rem;color:var(--dim)}

.sa-card.on{border-color:var(--gold);background:linear-gradient(var(--select),var(--inset));box-shadow:inset 0 0 0 1px #00000080}.sa-card.on .state{color:var(--gold)}.sa-card.off{opacity:.65}.sa-note{margin:0 0 .8rem}

/* recommended gear (no debuff any more): a plain line, warm beige when the gear is below the zone's grade, muted when it fits */

.gear-gap{display:flex;gap:.55rem;align-items:center;margin:.45rem 0;padding:.35rem .55rem;border:1px solid var(--line);border-radius:0;background:var(--inset);text-align:left}

.gear-gap small{display:block;font-size:.84rem;color:var(--beige)}

.gear-gap.fits small{color:var(--muted)}

.gear-gap.hud{margin:.25rem auto 0;padding:.1rem .45rem;width:max-content;max-width:none;pointer-events:auto;border-color:transparent;background:none;font:calc(var(--l2) / 2)/1.2 var(--l2font)}.gear-gap.hud span{color:var(--beige2)}

.gear-sub{display:flex!important;align-items:center;gap:.3rem;margin-top:.15rem;color:#a9cdf5!important}.gear-sub .icon{width:32px;height:32px}.gear-sub .set-ref{color:var(--yellow)}

/* Status window (game.js renderStatus): the run's stats now, a row's sources on hover */

.stat-btn{padding:.05rem .4rem;font:inherit;color:var(--text);background:#00000080;border:1px solid var(--line2);border-radius:0;text-shadow:inherit;cursor:pointer}.stat-btn:hover,.stat-btn.on{color:var(--bright);border-color:var(--yellow)}

.status-win{position:absolute;left:calc(var(--l2) * 18 + 1.5rem);top:1rem;width:calc(var(--l2) * 14);max-height:calc(100vh - var(--l2) * 9);overflow:auto;padding:.25rem .5rem .45rem 1rem;background:url(./assets/ui/bar-cap.png) 0 0/.55rem 100% no-repeat,rgba(30,27,23,.8);border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel);pointer-events:auto}

.status-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.2rem;color:var(--yellow);cursor:move;user-select:none;touch-action:none}

.status-win h4{margin:.35rem 0 .1rem;font:inherit;color:var(--yellow)}

.st-line{display:flex;justify-content:space-between;gap:.6rem;line-height:1.2;color:var(--muted)}.st-line b{font-weight:normal;color:var(--bright)}.st-line small{font:inherit;color:var(--dim)}



/* Mammon's Vault (vault-ui.js): the Armory's window with the Merchant's chamber in 3D on the left (its own canvas) and the

   coffers, wares and collection on the right; rarity colours are the run cards' (--rc). */

.hero-buttons .vault-entry{grid-column:1/-1}.hero-buttons .vault-entry b{color:#f3d58a}

.topright .adena{cursor:pointer}

.vault-modal{padding:1rem;align-items:stretch}

.vault-win{display:flex;flex-direction:column;width:min(96rem,100%);height:min(56rem,calc(100vh - 2rem));margin:auto}

.vault-head{grid-template-columns:auto 1fr auto;padding-right:3rem}.vault-head>h2{padding:.6rem 1.2rem .3rem}.vault-head .tabs{grid-column:1/-1;grid-row:2}

.vault-purse{display:flex;gap:1.2rem;justify-self:end;font:700 1.05rem var(--sans);color:var(--yellow);white-space:nowrap;text-shadow:0 1px 3px #000}.vault-purse span{display:flex;align-items:center}

.vault-coin{display:inline-block;width:1.4em;height:1.4em;margin-right:.3em;background:center/contain no-repeat;image-rendering:pixelated;vertical-align:-.35em}

.vault-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(23rem,1fr);background:var(--win);border:1px solid #000;border-top:0;border-radius:0 0 var(--r-win) var(--r-win);box-shadow:inset 1px -1px 0 var(--bevel),inset -1px 0 0 var(--bevel),0 .4rem 1.6rem #0009}

.vault-stage{position:relative;min-height:0;overflow:hidden;border-right:1px solid #000;box-shadow:1px 0 0 var(--bevel);background:radial-gradient(circle at 55% 60%,#2a2016,#0c0907 70%)}

.vault-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}

.vault-flat{position:absolute;inset:0;display:grid;place-items:center}

.vault-say{position:absolute;left:1rem;right:1rem;top:.8rem;margin:0!important;padding:.5rem .8rem;font-size:1rem!important;line-height:1.4;color:var(--text);background:#000000a8;border:1px solid #00000080;border-radius:0;text-shadow:0 1px 2px #000}.vault-say b{color:var(--yellow);font-weight:400}

.vault-buy{position:absolute;left:1rem;right:1rem;bottom:1rem;display:grid;grid-template-columns:1fr 1fr 1fr;gap:.8rem}

.vault-buy .primary{display:flex;flex-direction:column;gap:.15rem;padding:.7rem}.vault-buy .primary b{font:1.25rem var(--sans);color:var(--bright)}.vault-buy .primary small{font-size:.9rem;color:#e8dcc0}

.vault-buy .primary.gilded{border-color:#e2b65a;box-shadow:inset 0 0 0 1px #000,0 0 .8rem #e2b65a55}.vault-buy .primary.gilded b{color:#f3d58e}

.ware .buys{display:flex;gap:.3rem;flex-wrap:wrap;justify-content:flex-end}

.vault-side{min-height:0;overflow-y:auto;padding:1.1rem 1.3rem;text-align:left}

.vault-side .panel-title{font:1.12rem var(--sans);color:var(--bright);margin:0 0 .8rem;padding:.4rem .8rem;background:linear-gradient(90deg,var(--strip),transparent 90%);border-left:2px solid var(--beige);border-radius:0}

.odds{display:flex;flex-direction:column;gap:.3rem}

.odds-row{display:grid;grid-template-columns:7rem 1fr auto;gap:.6rem;align-items:center;padding:.4rem .7rem;border:1px solid var(--line);border-left:3px solid var(--rc);border-radius:0;background:var(--inset)}.odds-row b{color:var(--rc)}.odds-row span{font-size:.92rem;color:var(--text)}.odds-row em{font:700 1.02rem var(--sans);font-style:normal;color:var(--bright)}

.pity{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:.7rem 0}.pity div{padding:.45rem .7rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}.pity small{display:block;font-size:.85rem;color:var(--muted)}.pity b{color:var(--bright);font-size:.98rem}

.vault-side .hint{font-size:.9rem;line-height:1.5;color:var(--muted);margin:.4rem 0}

.vault-feed{display:flex;flex-direction:column;gap:.3rem}

.feed-row{display:grid;grid-template-columns:auto 1fr;gap:.1rem .6rem;align-items:center;padding:.35rem .6rem;border:1px solid var(--line);border-left:3px solid var(--rc);border-radius:0;background:var(--inset);font-size:.92rem}.feed-row>b{color:var(--yellow);font-weight:400}.feed-row em{font-style:normal;color:var(--rc)}.feed-row small{color:var(--muted)}

.feed-chips{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.25rem}.feed-chips:empty{display:none}.feed-chip .icon{width:32px;height:32px;border-color:var(--rc)}

.vault-feed.in-coop{margin-top:.8rem;text-align:left}

.ware-list{display:flex;flex-direction:column;gap:.3rem}

.ware{display:grid;grid-template-columns:auto 1fr auto;gap:.6rem;align-items:center;padding:.3rem .5rem;border:1px solid var(--line);border-radius:0;background:var(--inset)}.ware b{display:block;color:var(--bright)}.ware small{color:var(--muted);font-size:.85rem}.ware em{font-style:normal;color:var(--green);font-size:.9rem;padding-right:.4rem}.ware.owned{opacity:.7}.ware .btn{display:flex;align-items:center;padding:.3rem .7rem;white-space:nowrap}

.coll-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;margin-bottom:.8rem}.coll-counts div{text-align:center;padding:.4rem;border:1px solid var(--line);border-top:3px solid var(--rc);border-radius:0;background:var(--inset)}.coll-counts b{display:block;font:700 1.15rem var(--sans);color:var(--bright)}.coll-counts small{color:var(--rc)}

.coll-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(6.4rem,1fr));gap:.4rem}

.coll-look{position:relative;display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.45rem .25rem;border:1px solid var(--line);border-bottom:2px solid var(--rc);border-radius:0;background:var(--inset);font-size:.82rem;line-height:1.15;color:var(--muted)}.coll-look.own{color:var(--text)}.coll-look.worn{box-shadow:inset 0 0 0 1px var(--rc),0 0 .6rem color-mix(in srgb,var(--rc) 45%,transparent)}.coll-look i{position:absolute;top:.15rem;right:.25rem;font-style:normal;font-size:.75rem;color:var(--green)}.coll-look:disabled{opacity:1}

/* the reveal over the chamber: one card, or ten that come up one by one with the best one framed in its rarity */

.vault-reveal{position:absolute;inset:3.6rem 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;cursor:pointer;background:radial-gradient(circle at 50% 55%,#00000000 30%,#000000a0)}

.vault-reveal.opening{background:none}

.vault-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:.35rem;min-width:15rem;max-width:22rem;padding:1rem 1.3rem;text-align:center;background:linear-gradient(#26211bf2,#120f0cf2);border:1px solid var(--rc);border-radius:0;box-shadow:inset 0 0 0 1px #000,0 0 1.4rem color-mix(in srgb,var(--rc) 55%,transparent),0 .6rem 1.6rem #000c;animation:vault-pop .45s cubic-bezier(.2,1.4,.4,1) both}

.vault-card .vc-rarity{font:.85rem var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--rc)}.vault-card b{font:1.3rem var(--sans);color:var(--bright)}.vault-card small{color:var(--muted)}.vault-card.new small{color:var(--green)}.vault-card .btn{margin-top:.3rem;padding:.35rem .9rem}

.vault-card.r-legendary{animation:vault-pop .55s cubic-bezier(.2,1.4,.4,1) both,vault-shine 1.6s ease-in-out .5s infinite alternate}.vault-card.r-epic{animation:vault-pop .5s cubic-bezier(.2,1.4,.4,1) both,vault-shine 2s ease-in-out .5s infinite alternate}

.vault-skip{color:var(--muted);text-shadow:0 1px 2px #000}

.vault-ten{display:grid;grid-template-columns:repeat(5,minmax(0,8.6rem));gap:.5rem}

.vault-ten .slot{opacity:0;animation:vault-in .3s ease-out var(--d) both}.vault-reveal.instant .vault-ten .slot{animation:none;opacity:1}

.vault-ten .vault-card{min-width:0;padding:.55rem .35rem;gap:.2rem;animation:none;box-shadow:inset 0 0 0 1px #000,0 0 .5rem color-mix(in srgb,var(--rc) 35%,transparent)}.vault-ten .vault-card b{font-size:.9rem;line-height:1.2}.vault-ten .vault-card small{font-size:.75rem}.vault-ten .vault-card .vc-rarity{font-size:.7rem;letter-spacing:.08em}

.vault-ten .slot.best .vault-card{transform:translateY(-.3rem);box-shadow:inset 0 0 0 1px #000,0 0 1.2rem var(--rc),0 0 2.6rem color-mix(in srgb,var(--rc) 50%,transparent)}

.vault-best:empty{display:none}.vault-best .vault-card{min-width:17rem}

.vault-reveal.one .vault-card{min-width:19rem;padding:1.3rem 1.6rem}.vault-reveal.one .vault-card b{font-size:1.5rem}.vault-reveal.one .icon.big{width:96px;height:96px}

@keyframes vault-pop{from{opacity:0;transform:translateY(1.6rem) scale(.7)}to{opacity:1;transform:none}}

@keyframes vault-in{from{opacity:0;transform:translateY(1rem) scale(.85)}to{opacity:1;transform:none}}

@keyframes vault-shine{from{box-shadow:inset 0 0 0 1px #000,0 0 1rem color-mix(in srgb,var(--rc) 45%,transparent),0 .6rem 1.6rem #000c}to{box-shadow:inset 0 0 0 1px #000,0 0 2.4rem var(--rc),0 .6rem 1.6rem #000c}}

/* a party member's epic or legendary look, on everybody's screen for a few seconds */

.vault-announce{position:fixed;z-index:30;top:4.6rem;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:.8rem;padding:.6rem 1.2rem .6rem .7rem;background:linear-gradient(#26211bf2,#120f0cf2);border:1px solid var(--rc);border-radius:0;box-shadow:inset 0 0 0 1px #000,0 0 1.6rem color-mix(in srgb,var(--rc) 55%,transparent);pointer-events:none}

.vault-announce.show{animation:vault-pop .5s cubic-bezier(.2,1.4,.4,1) both}.vault-announce small{display:block;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--rc)}.vault-announce b{font:1.15rem var(--sans);color:var(--bright)}

/* Armory · Cosmetics: the Vault's looks carry their rarity colour; a weapon look that does not fit the class is greyed */

.cos-tile .vault-name{color:var(--rc)}.cos-tile.unfit{opacity:.55}.vault-link{width:100%;margin-bottom:.4rem;padding:.4rem}

@media (max-width:860px){.vault-modal{padding:0}.vault-win{height:auto;min-height:100%}.vault-body{grid-template-columns:1fr}.vault-stage{height:24rem;border-right:0}.vault-ten{grid-template-columns:repeat(5,minmax(0,1fr))}.vault-ten .vault-card small{display:none}}

/* Talents v2 (27. 10. 2026): the Mastery tier (one per tree), capstones as big gold-framed cards like the client's skill

   enchant window, procs in blue, the unlock notice, and in the run the talent slots next to the skill bar (gold corner on a

   capstone's skill and on a kit skill a capstone transformed). */

.gold{color:var(--gold)}#tooltip .muted{display:inline;margin:0;font-size:inherit}

.tier.mastery .tier-need span{border-color:var(--gold3);color:var(--gold);background:#2a220f99}.tier.mastery .tier-need::before{background:linear-gradient(90deg,transparent,var(--gold3))}.tier.mastery .tier-need::after{background:linear-gradient(270deg,transparent,var(--gold3))}

.talent.capstone{grid-column:1/-1;position:relative;flex-direction:row;justify-content:flex-start;gap:.9rem;min-height:6.6rem;text-align:left;padding:1.35rem .9rem .8rem;border:1px solid var(--gold3);background:radial-gradient(ellipse at 18% 55%,#e9c46a26,transparent 60%),linear-gradient(#2c261a,#14110c);box-shadow:inset 0 0 0 1px #000,inset 0 0 1.2rem #e9c46a1a}

.talent.capstone .icon{width:max(32px,round(nearest,4.4rem,32px));height:max(32px,round(nearest,4.4rem,32px));border-color:var(--gold) #9c864a #9c864a var(--gold);box-shadow:0 0 0 1px #000,0 0 .9rem #e9c46a55}

.talent.capstone.ready{border-color:var(--gold);box-shadow:inset 0 3px 0 var(--gold),0 0 1rem #e9c46a44}.talent.capstone.maxed{box-shadow:inset 0 0 0 1px var(--gold),0 0 1.1rem #e9c46a66}

.cap-tag{position:absolute;top:.4rem;left:.9rem;font:700 .72rem/1 var(--sans);letter-spacing:.12em;color:var(--gold);text-shadow:0 1px 2px #000}

.talent.capstone .talent-text b{color:#f3dfa6;font-size:1.08rem}.talent.capstone .talent-text small{color:var(--gold2)}

.talent.taken{opacity:.5}.talent.taken .talent-text small{color:var(--muted)}.talent.proc:not(.locked) .talent-text small{color:#9fc6e8}

.cap-notice{display:flex;gap:.7rem;align-items:center;padding:.6rem .7rem;border:1px solid var(--gold3);border-radius:0;background:linear-gradient(#3a301c,#1b160d);box-shadow:0 0 1rem #e9c46a33;animation:capin .4s ease-out}.cap-notice b{display:block;color:#f3dfa6;line-height:1.3}.cap-notice small{display:block;color:var(--text);line-height:1.35}

.talent-points .cap-refund{padding:.45rem .6rem;border:1px solid var(--line2);border-radius:0;background:#00000059;color:var(--gold)}.mastery-line small,.mastery-line i{color:var(--muted);font-style:normal}

.slot-bar.talents{padding-left:.3rem;background:linear-gradient(#2e2616cc,#12100bcc);box-shadow:inset 0 0 0 1px var(--gold3),0 .2rem .7rem #0008}

.slot-bar .icon.capstone{border-color:var(--gold) #9c864a #9c864a var(--gold)}.slot-bar .icon:is(.capstone,.transformed)::after{content:'';position:absolute;top:0;right:0;border-style:solid;border-width:0 .6rem .6rem 0;border-color:transparent var(--gold) transparent transparent;pointer-events:none}

.skill-item.capstone b{color:#f3dfa6}.skill-item.capstone small{display:block}

@keyframes capin{from{opacity:0;transform:translateY(-.3rem)}to{opacity:1;transform:none}}

.cap-notice.floating{position:fixed;left:50%;bottom:2.4rem;z-index:30;width:min(36rem,90vw);padding:.8rem 1rem;transform:translateX(-50%);animation:capfloat .45s ease-out;pointer-events:none}.cap-notice.floating .icon{width:max(32px,round(nearest,3.2rem,32px));height:max(32px,round(nearest,3.2rem,32px))}

@keyframes capfloat{from{opacity:0;transform:translate(-50%,.6rem)}to{opacity:1;transform:translate(-50%,0)}}

/* the choice window's "Now" row (game.js renderChoice): the jewels and the Life Stone the hero wears, with their tooltips */

.choice-build{display:flex;align-items:center;justify-content:center;gap:.6rem;margin:.6rem 0 .2rem;font:var(--l2)/1 var(--l2font);color:var(--muted)}.choice-build .slot-bar{display:flex;gap:.2rem}.choice-build .augment.replaced .icon{outline:2px solid #c46a5a;outline-offset:1px}

/* in-run loot feed (game.js lootShown): the newest piece on top, gear framed in gold */

.loot-feed{position:absolute;right:.7rem;bottom:calc(var(--l2) * 5 + 1.5rem);display:flex;flex-direction:column-reverse;gap:.3rem;width:calc(var(--l2) * 13);pointer-events:none;font:calc(var(--l2) * .75)/1.15 var(--l2font);text-shadow:1px 1px 0 #000}

.loot-entry{display:flex;align-items:center;gap:.5rem;padding:.3rem .5rem .3rem .4rem;background:rgba(20,18,15,.82);border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel);animation:lootin .25s ease-out;transition:opacity .6s}

.loot-entry.gear{box-shadow:inset 0 0 0 1px var(--yellow),0 0 .6rem #c9a14e66}.loot-entry b{display:block;color:var(--bright);font-weight:normal}.loot-entry small{color:var(--muted);font:inherit}.loot-entry small b{display:inline;color:var(--green)}

.loot-entry.gone{opacity:0}

@keyframes lootin{from{transform:translateX(1.5rem);opacity:0}to{transform:none;opacity:1}}

.exit-icon{display:block;width:60%;height:60%;margin:auto;background:url(./assets/ui/close.png) center/contain no-repeat}

/* Ascension (game.js ascensionBlock, dist/ascension.js): the stepper under the selected zone's timeline, the class's crest under its

   name, the account's best in the top bar, the HUD badge under the timer and the results line */

.asc{margin-top:.65rem;padding:.5rem .6rem;border:1px solid var(--line);border-radius:0;background:#00000070}.asc.on{border-color:#7a3a28;background:linear-gradient(#5a1d1236,#00000070 3rem)}

.asc-step{display:flex;align-items:center;gap:.5rem}.asc-step .btn{width:2rem;height:2rem;padding:0;font:700 1.1rem/1 var(--sans)}.asc-step>b{min-width:8.5rem;text-align:center;font:700 1.12rem var(--sans);color:var(--bright)}.asc.on .asc-step>b{color:#ff9a7a;text-shadow:0 0 8px #ff3b2477}

.asc-step small{margin-left:auto;color:var(--muted);font-size:.88rem}.asc-line{display:block;margin:.45rem 0 .2rem;color:var(--text);font-size:.9rem;line-height:1.4}

.asc-drops{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .8rem}.asc-drops>small{color:var(--muted);font-size:.88rem}.asc-loot{display:inline-flex;align-items:center;gap:.35rem;line-height:0}.asc-loot .icon{width:32px;height:32px}.asc-loot em{font:.92rem/1.2 var(--sans);font-style:normal;color:var(--yellow)}

.asc-focus{display:block;margin-top:.35rem;color:var(--muted);font-size:.88rem;line-height:1.4}.asc-focus b{color:var(--text);font-weight:normal}

.asc-loot.infinity em{color:#ffd7a0;text-shadow:0 0 6px #ffb04466}.asc-loot.infinity .icon{border-color:#ffe2a0 #b08a3a #8a6a2a #f0c870;box-shadow:0 0 0 1px #000,0 0 .6rem #ffcf6a88}

.asc-hint{margin-top:.65rem;padding:.45rem .6rem;border:1px dashed var(--gold3);border-radius:0;background:#00000059}.asc-hint b{display:block;color:var(--gold);font-size:.98rem}.asc-hint small{color:var(--muted);font-size:.88rem;line-height:1.4}

.asc-crest{display:inline-flex;align-items:center;gap:.35rem;margin-left:.7rem;vertical-align:middle;font-style:normal;color:#b09b79}

.asc-crest i,.asc-opened>i{display:inline-block;width:1.15em;height:1.15em;flex-shrink:0;border:1px solid #000;background:url(./assets/icons/skill1323.png) center/cover no-repeat}

.asc-best{display:inline-flex;align-items:baseline;gap:.35rem;margin-right:.5rem;font:700 .98rem var(--sans);color:#b09b79;white-space:nowrap;text-shadow:0 1px 3px #000,0 0 2px #000}.asc-best small{font:.82rem var(--sans);color:var(--muted);text-transform:uppercase;letter-spacing:.08em}

.asc-badge{margin-top:.15rem;font:calc(var(--l2) * .75)/1.1 var(--l2font);color:#b09b79;letter-spacing:.06em;text-shadow:1px 1px 0 #000}

.asc-opened{display:flex;align-items:center;gap:.75rem;margin:.1rem 0 .6rem;padding:.55rem .8rem;border:1px solid #000;border-radius:0;background:var(--inset);box-shadow:inset 0 0 0 1px var(--line)}.asc-opened>i{width:2.2rem;height:2.2rem}.asc-opened b{font:700 1.08rem var(--sans);color:#b09b79}.asc-opened small{display:block;color:var(--muted);font-size:.9rem}

@media (max-width:740px){.asc-best small{display:none}.asc-crest{margin:.3rem 0 0;display:flex;width:max-content;margin-inline:auto}}

/* Enchant past +16 (Crystal Scrolls, game.js forge tab): the crimson name, the crystal scroll slot (the client draws it with the

   plain scroll icon, so it gets a red-gold frame), the ward box, the glow swatches past +16 */

.enchant-name.crimson{color:#ffcfb8;text-shadow:0 0 .6rem #ff3b24,0 0 1.4rem #b00010,0 1px 2px #000}

.scroll-slot.crystal .icon{border-color:#ffcf9a #a4472a #7a2a18 #ffb070;box-shadow:0 0 0 1px #000,0 0 .7rem #ff5a2a99}.scroll-slot.crystal small{color:#ffb08a}

.ward-box{display:flex;align-items:center;gap:.6rem;margin:.55rem 0 0;padding:.45rem .7rem;border:1px solid var(--line);border-radius:0;background:var(--inset);cursor:pointer;line-height:0}.ward-box input{width:1.1rem;height:1.1rem;accent-color:#c9a14e}.ward-box b{display:block;font:1rem/1.25 var(--sans);color:var(--bright)}.ward-box small{display:block;font-size:.88rem;line-height:1.3;color:var(--muted)}.ward-box.short{opacity:.6;cursor:default}.ward-box:has(input:checked){border-color:var(--gold3);box-shadow:inset 3px 0 0 var(--gold)}

.glow-scale i.over{border-color:#ffcf9a55;filter:brightness(1.7) saturate(1.3)}

/* Epic jewels (game.js epicIcon, jewelsPanel, epicCodex): the red-gold frame and +N, the Jewels row of Armory › Character, the Codex */

.icon.epic-jewel{position:relative;border-color:#ffd68a #9a3b22 #7a2a18 #ffb070!important;box-shadow:0 0 0 1px #000,0 0 .55rem #ff6a2a99,inset 0 0 .4rem #ff8a3a55}.icon.epic-jewel .epic-plus{position:absolute;right:1px;bottom:0;font:700 .72rem/1 var(--sans);color:#ffe2b0;text-shadow:0 0 3px #000,0 0 2px #000}

.slot-bar.jewels .icon.epic-jewel .epic-plus{font:calc(var(--l2) * .5)/1 var(--l2font)}

.jewel-slots{display:flex;gap:.35rem;margin:.4rem 0 .5rem;line-height:0}.jewel-slots .icon{width:max(32px,round(nearest,2.4rem,32px));height:max(32px,round(nearest,2.4rem,32px))}

.epic-list{display:flex;flex-direction:column;gap:.3rem;margin-bottom:.6rem}.epic-pick{display:flex;align-items:center;gap:.55rem;padding:.3rem .5rem;border:1px solid var(--line);border-radius:0;background:var(--inset);text-align:left;line-height:0}.epic-pick b{display:block;font:.98rem/1.25 var(--sans);color:var(--bright)}.epic-pick small{display:block;font-size:.85rem;line-height:1.3;color:var(--muted)}.epic-pick.on{border-color:#8a4a2c;box-shadow:inset 3px 0 0 #ff8a4a}.epic-pick.on small{color:#ffb08a}

.epic-codex{display:grid;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr));gap:.4rem;margin-bottom:.8rem}.epic-row{display:flex;gap:.6rem;align-items:flex-start;padding:.45rem .6rem;border:1px solid var(--line);border-radius:0;background:var(--inset);line-height:0}.epic-row b{display:block;font:1rem/1.25 var(--sans);color:#ffcf9a}.epic-row small{display:block;font-size:.85rem;line-height:1.35;color:var(--muted)}.epic-row small.gold{color:var(--gold)}.epic-row.unseen b{color:var(--text)}

.loot.epic-loot{border-color:#8a4a2c;box-shadow:inset 3px 0 0 #ff8a4a}



/* Keep the centered navigation clear of the side controls on laptop displays. */

@media(min-width:861px) and (max-width:1700px){.topbar .asc-best{display:none}}

@media(min-width:861px) and (max-width:1400px){.topbar>.brand>span:last-child{display:none}.topbar>.tabs button{font-size:.9rem;padding:.45rem}.topbar{gap:.5rem;padding:0 .8rem}.topbar>.topright{gap:.3rem}}

@media(min-width:861px) and (max-width:1200px){.topbar>.topright .icon-btn{width:1.7rem;height:1.7rem}.topbar>.topright .icon-btn>i{width:1.4rem;height:1.4rem;background-size:contain}.topbar>.tabs{gap:.2rem}.topbar>.tabs button{font-size:.85rem;padding:.4rem .3rem}}

.talent-trees.specialized>.talent-points{grid-column:auto;align-self:start}





/* Keep the new progression windows in the same client style, too. */

.journey-page{font:.98rem/1.5 var(--sans)}.journey-page :is(p,small,.relic-recipe){font:.94rem/1.5 var(--sans)}.journey-page select{font:.96rem/1.4 var(--sans)}.journey-goal>b,.journey-contracts>div>b,.journey-looks article b,.spec-identity{font:var(--l2)/1.2 var(--l2font)}

.journey-contracts>div,.relic-card,.journey-looks article{border:1px solid #000;border-radius:var(--r-win);box-shadow:inset 0 0 0 1px var(--bevel)}.relic-card.worn{border-color:var(--beige);box-shadow:inset 0 0 0 1px var(--bevel)}

@media(min-width:3000px) and (min-height:1650px){.journey-page :is(p,small,.relic-recipe,select),.spec-option small{font-size:26px}}



.spec-option em{font:600 .92rem/1.35 var(--sans)}.journey-goal select{background:var(--inset);color:var(--text);color-scheme:dark;border:1px solid;border-color:#7b797b #4a494a #4a494a #7b797b;border-radius:var(--r-btn);padding:.35rem .55rem;font:var(--l2)/1.2 var(--l2font)}.journey-goal option{background:#201d18;color:var(--text)}



/* In-game item gallery and inspection; no OS dropdowns (docs/UI_STYLE.md). */

.dps-modes{flex:1;min-width:0}.dps-modes button{flex:1;font:13px/1.4 var(--l2font);padding:.2rem .3rem}.dps-bar{flex-wrap:wrap}.dps-scope button{white-space:nowrap}

.journey-pinned{align-items:center;gap:.8rem}.journey-pinned>b{font:var(--l2)/1.25 var(--l2font)}.journey-view-actions,.relic-actions{display:flex;gap:.45rem;flex-wrap:wrap}.journey-looks .journey-view-actions{flex:0 0 auto}.journey-back{align-self:flex-start}

.armory.journey-view .armory-body{grid-template-columns:minmax(15rem,23rem) minmax(0,1fr) minmax(18rem,26rem)}.journey-look-info,.journey-look-browser{font:.96rem/1.5 var(--sans)}.journey-look-info p{line-height:1.5}.journey-look-info small.gold{display:inline-block;margin:.3rem 0;font:1rem/1.35 var(--sans);color:var(--gold)}.journey-look-browser{display:flex;flex-direction:column}.journey-look-browser>.panel-title{flex-shrink:0}.journey-look-categories{display:flex;flex-wrap:wrap;gap:.3rem;padding-bottom:.7rem;flex-shrink:0}.journey-look-categories .btn{font:.9rem/1.3 var(--sans);padding:.35rem .55rem}.journey-look-list{min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:.45rem}.journey-look-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:.65rem;align-items:center;padding:.5rem .6rem;background:var(--inset);border:1px solid #000;box-shadow:inset 0 0 0 1px var(--bevel);border-radius:var(--r-win)}.journey-look-row.selected{border-color:var(--beige);background:#35455480}.journey-look-row>.icon{width:44px;height:44px}.journey-look-row b{display:block;font:.98rem/1.3 var(--sans);color:var(--bright)}.journey-look-row small{display:block;font:.88rem/1.3 var(--sans);color:var(--muted);margin-top:.2rem}.journey-look-row .btn{font:.92rem/1.3 var(--sans);padding:.38rem .7rem}

.journey-item-title{display:flex;align-items:center;gap:1rem;margin:1.2rem 0}.journey-item-title h2{font:var(--l2)/1.2 var(--l2font);margin:0;overflow-wrap:anywhere}.journey-item-title>.icon{width:64px;height:64px;flex-shrink:0}.journey-item-title p{margin:.4rem 0 0}.journey-look-info ul,.journey-relic-detail ul{padding-left:1.4rem;line-height:1.7}.journey-preview-stage{position:relative;min-height:24rem}.journey-preview-controls{display:flex;gap:.35rem;margin-bottom:.6rem;pointer-events:auto}.journey-preview-controls .btn{font:13px/1.35 var(--l2font);padding:.4rem .6rem}.journey-relic-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.journey-relic-columns>section{padding:1rem}.journey-relic-columns li{margin:.45rem 0}.relic-ranks{align-self:flex-start;flex-wrap:wrap}.relic-ranks .btn{padding:.5rem .8rem}

.ware-actions{display:flex;flex-direction:row;gap:.45rem;align-items:center}.ware-actions .buys{justify-content:flex-end}.coll-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.3rem;margin-top:auto}.coll-actions .btn{font:.88rem/1.3 var(--sans);padding:.32rem .55rem}

@media(max-width:1100px){.armory.journey-view .armory-body{grid-template-columns:minmax(12rem,18rem) minmax(0,1fr) minmax(14rem,20rem)}.journey-view-actions .btn{font-size:13px}.journey-relic-columns{grid-template-columns:1fr}}

@media(max-width:860px){.armory.journey-view{background:rgba(0,0,0,.3)}.armory.journey-view .armory-body{display:flex;flex-direction:column;overflow:auto}.armory.journey-view .journey-preview-stage{display:flex;order:-1;min-height:24rem;flex-shrink:0}.journey-look-browser{min-height:24rem;flex-shrink:0}.journey-look-info{flex-shrink:0}.journey-look-row{grid-template-columns:32px minmax(0,1fr) auto}}



#menu:has(~ #armoryModal.journey-view:not([hidden])) .hero-head{visibility:hidden}

.relic-ranks{display:flex;gap:.25rem;width:auto}.relic-ranks>.btn{min-width:8rem;width:auto;flex:0 0 auto;white-space:nowrap;border-radius:var(--r-btn)}



/* Character selection layout 0.4.5: keep the paper doll central and the controls compact. */

#menu{--menu-label:26px}

#menu .hero-info{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"collection bonus" "progress progress" "actions actions" "race race";gap:.4rem .8rem;padding:.6rem .7rem;flex:none}

#menu #collectionLabel{grid-area:collection;margin:0;padding:0;min-height:0;background:none;border:0;box-shadow:none;font:var(--menu-label)/1.3 var(--l2font);white-space:nowrap;color:var(--bright)}

#menu .hero-info>.progress{grid-area:progress;height:6px;margin:0}

#menu #collectionBonus{grid-area:bonus;margin:0;min-height:0;font:13px/1.3 var(--sans);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#menu .hero-buttons{grid-area:actions;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem;margin:0}

#menu .hero-buttons .framed{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;column-gap:.5rem;row-gap:.15rem;align-content:center;align-items:center;grid-column:auto;min-width:0;min-height:3.6rem;padding:.4rem .5rem;text-align:left}

#menu .hero-buttons .framed::before{content:"";grid-column:1;grid-row:1/3;width:32px;height:32px;border:1px solid var(--line2);border-radius:var(--r-slot);background:var(--inset) center/contain no-repeat;box-shadow:0 0 0 1px #000}

#menu .hero-buttons [data-armory="character"]::before{background-image:url(./assets/icons/armor_helmet_i00.png)}

#menu .hero-buttons [data-armory="talents"]::before{background-image:url(./assets/icons/skill0231.png)}

#menu #vaultButton::before{background-image:url(./assets/icons/etc_treasure_box_i00.png)}

#menu #journeyButton::before{background-image:url(./assets/icons/etc_box_of_adventure_1_i00.png)}

#menu .hero-buttons .framed b{grid-column:2;font:var(--menu-label)/1.2 var(--l2font);white-space:nowrap}

#menu .hero-buttons .framed small{grid-column:2;display:block;margin:0;font:12px/1.25 var(--sans);color:var(--muted)}

#menu .race-box{grid-area:race;display:flex;align-items:baseline;justify-content:center;gap:.6rem;flex-wrap:wrap;margin:.1rem 0 0;padding:.35rem 0 0;border-top:1px solid var(--line)}

#menu .race-box h3{margin:0;font:var(--menu-label)/1.2 var(--l2font);color:var(--beige)}

#menu .race-box ul{display:flex;flex-wrap:wrap;justify-content:center;gap:.2rem .8rem;margin:0;padding:0;list-style:none;font:13px/1.3 var(--sans);color:var(--muted)}

@media(min-width:861px){

 #menu{--side:min(25rem,23vw)}

 #menu .topbar{height:3.8rem;padding-inline:1rem;gap:.65rem}

 #menu .topbar .tabs button{font:var(--menu-label)/1.2 var(--l2font);padding:.35rem .6rem}

 #menu .brand{font-size:1.1rem;letter-spacing:.12em}

 #menu .panel{top:4.2rem;bottom:7rem;padding:0 .8rem .8rem;font-size:.92rem}

 #menu .class-panel{left:1rem}#menu .zone-panel{right:1rem}

 #menu .panel>.panel-title{margin:0 -.8rem .65rem;min-height:2.5rem;padding:.4rem .6rem .25rem}

 #menu .hero-panel{left:calc(var(--side) + 1.9rem);right:calc(var(--side) + 1.9rem);top:4.4rem;bottom:7rem;gap:.5rem}

 #menu .hero-stage{min-height:0;grid-template-columns:4.2rem minmax(0,1fr) 4.2rem}

 #menu .equip-col{gap:.65rem}#menu .equip-col .icon{width:64px;height:64px}

 #menu .hero-head h2{font:var(--l2)/1.15 var(--l2font);letter-spacing:.02em}

 #menu .hero-head p{font-size:max(13px,.9rem);margin-top:.15rem}

 #menu .gender-seg{margin-top:.35rem}#menu .gender-seg button{min-width:5rem;padding:.25rem .75rem;font-size:13px}

 #menu .race-list{gap:.35rem}#menu .race-row{gap:.6rem;padding:.4rem .5rem}

 #menu .race-portrait{width:3.8rem;height:3.8rem}

 #menu .race-text b{font-size:1.08rem}#menu .race-text :is(small,em,i){font-size:13px;line-height:1.25}

 #menu .class-name{font-size:1.3rem;margin:.7rem 0 .3rem}#menu .class-text{font-size:max(13px,.9rem);line-height:1.4;margin-bottom:.65rem}

 #menu .facts{gap:.3rem}#menu .facts div{padding:.35rem .4rem}#menu .facts small{font:13px/1.2 var(--l2font);letter-spacing:0}#menu .facts b{font-size:1rem}

 #menu .zone{padding:.45rem .6rem}#menu .zone h3{font-size:var(--menu-label);line-height:1.3}#menu .zone.selected h3{font-size:var(--l2)}

 #menu .zone p{font-size:13px;line-height:1.35;margin:.4rem 0}#menu .zone .sub{font-size:13px}

 #menu .zone.selected>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

 #menu .zone-row{gap:.3rem}#menu .zone-row>.zone{min-width:7rem}

 #menu .boss-line{grid-template-columns:2.9rem minmax(0,1fr) auto;gap:.3rem;padding:.25rem .35rem}

 #menu .boss-line :is(b,span,small){font-size:13px}

 #menu .boss-line.final{grid-template-columns:2.9rem minmax(0,1fr);row-gap:.1rem}#menu .boss-line.final b{grid-row:1/3;align-self:center}#menu .boss-line.final small{grid-column:2;white-space:normal;font-size:12px}

 #menu .asc-step{display:grid;grid-template-columns:2rem minmax(0,1fr) 2rem;gap:.3rem}#menu .asc-step>b{min-width:0;font-size:max(13px,1rem)}#menu .asc-step .btn{width:2rem;min-width:2rem}#menu .asc-step small{grid-column:1/-1;margin:0;text-align:center;white-space:normal;font-size:12px}

 /* the bottom row under the three columns above it, edge to edge: the boss arrival box under the classes, Enter under the
    centre, Co-op and Giran under the zones (Daniel 1. 11. 2026: "the edges the same"); a column grows past its panel only
    when its content does not fit (a small window) */
 #menu .menu-footer{left:1rem;right:1rem;bottom:.4rem;grid-template-columns:minmax(var(--side),max-content) minmax(0,1fr) minmax(var(--side),max-content);gap:.3rem .9rem;align-items:stretch}
 #menu .menu-footer :is(.mode,.footer-side){justify-self:stretch}#menu .menu-footer .mode{align-content:center}#menu .menu-footer .footer-side>.framed{flex:1 1 auto}#menu .menu-footer #coopButton{max-width:none}

 #menu .enter{height:4.2rem}#menu .enter b{font:var(--l2)/1.25 var(--l2font)}#menu .enter small{font-size:13px}

 #menu .menu-footer .mode{padding:.3rem .5rem;gap:.2rem;max-width:15rem}#menu .mode>b{font-size:13px}

 #menu #coopButton{max-width:13rem;min-height:4.2rem;padding:.35rem .6rem}#menu #coopButton b{font:var(--menu-label)/1.2 var(--l2font)}#menu #coopButton small{font-size:12px}

 #menu .keys{font-size:12px;line-height:1.3;padding:.2rem .5rem}

}

@media(min-width:861px) and (max-width:1280px){#menu .hero-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}#menu .hero-buttons .framed{min-height:3.4rem}#menu .hero-info{gap:.3rem .5rem}#menu .hero-info #collectionBonus{font-size:12px}}

@media(min-width:861px) and (max-height:740px){#menu .hero-info{padding:.45rem .55rem;gap:.25rem .5rem}#menu .hero-buttons .framed{grid-template-rows:1fr;min-height:40px;padding:.25rem .5rem}#menu .hero-buttons .framed::before{grid-row:1}#menu .hero-buttons .framed b{grid-row:1}#menu .hero-buttons .framed small{display:none}}

@media(min-width:2000px) and (min-height:1100px){#menu{--menu-label:26px}#menu .hero-buttons .framed small,#menu #collectionBonus,#menu .race-box ul{font-size:14px}}

@media(min-width:3000px) and (min-height:1650px){#menu{--menu-label:26px}#menu .hero-buttons .framed{grid-template-columns:64px minmax(0,1fr)}#menu .hero-buttons .framed::before,#menu .equip-col .icon{width:64px;height:64px}#menu .hero-stage{grid-template-columns:4rem minmax(0,1fr) 4rem}#menu .hero-buttons .framed small,#menu #collectionBonus,#menu .race-box ul{font-size:20px}}

@media(max-width:860px){#menu .hero-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}#menu .hero-info{gap:.4rem}.hero-info .hero-buttons .framed{min-height:3.8rem}}



/* Festival collection: all five cosmetic rarity counts share the existing panel. */

.vault-modal .coll-counts{grid-template-columns:repeat(5,minmax(0,1fr))}



.choice-timer{font-family:var(--l2font);font-size:13px;color:#d8cda9;margin:4px 0 8px;text-align:center}



/* Chronicle uses the existing L2 windows, icon slots and client CP gauge. */

.journey-top-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem;padding:.65rem .85rem;margin-bottom:1rem;border:1px solid var(--line2);border-radius:var(--r-win);background:linear-gradient(180deg,rgba(32,27,20,.9),rgba(16,14,10,.92));box-shadow:inset 0 0 0 1px var(--bevel),0 4px 12px #0009}.journey-pages{display:flex;gap:.45rem}.journey-pages .btn{font:var(--l2)/1.15 var(--l2font);padding:.5rem 1.25rem}.journey-goal-compact{display:flex;align-items:center;gap:.75rem;flex:1;min-width:18rem;padding:.4rem .8rem;border:1px solid #3f3728;border-radius:0;background:var(--inset)}.journey-goal-compact>.icon{width:48px;height:48px;flex-shrink:0}.journey-goal-compact .goal-text{flex:1;min-width:0}.journey-goal-compact .goal-text .label{margin:0;font:calc(var(--l2) * .78)/1 var(--l2font);color:var(--muted)}.journey-goal-compact .goal-text b{display:block;font:var(--l2)/1.15 var(--l2font);color:var(--gold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.journey-wallet-pill{display:flex;align-items:center;gap:.65rem;padding:.45rem .85rem;border:1px solid var(--gold3);border-radius:0;background:#1e170ccc}.journey-wallet-pill .vault-coin{width:32px;height:32px}.journey-wallet-pill b{display:block;font:var(--l2)/1.1 var(--l2font);color:var(--gold)}.journey-wallet-pill small{display:block;font:calc(var(--l2) * .78)/1.1 var(--l2font);color:var(--muted)}

.contract-card{display:flex;align-items:flex-start;gap:.85rem;padding:.85rem 1rem;background:linear-gradient(180deg,rgba(28,24,18,.88),rgba(15,13,10,.92))}.contract-card>.icon.big{width:64px;height:64px;flex-shrink:0}.contract-body{flex:1;min-width:0}.contract-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem;margin-bottom:.35rem}.contract-head b{font:var(--l2)/1.1 var(--l2font);color:var(--bright)}.contract-reward{display:inline-flex;align-items:center;gap:.25rem;padding:.18rem .55rem;border:1px solid var(--gold3);border-radius:0;background:#221b0ecc;font:calc(var(--l2) * .85)/1.1 var(--l2font);color:var(--gold)}.contract-body p{margin:0;font:.95rem/1.42 var(--sans);color:var(--text)}.relic-head{display:flex;align-items:center;gap:.85rem}.relic-head>.icon.big{width:64px;height:64px;flex-shrink:0}.relic-head h3{margin:0 0 .25rem;font:var(--l2)/1.1 var(--l2font)}.relic-badge{display:inline-block;padding:.16rem .55rem;border:1px solid #554a36;border-radius:0;background:#17130d;font:calc(var(--l2) * .82)/1.1 var(--l2font);color:var(--beige)}.relic-badge.on{border-color:var(--gold);color:var(--gold);background:#2b210fcc}.relic-desc{margin:.5rem 0;font:.95rem/1.45 var(--sans);color:var(--text)}.relic-recipe span.ok b{color:var(--green)}.relic-foot{margin-top:auto;display:flex;flex-direction:column;gap:.5rem}.relic-req{display:block;font:calc(var(--l2) * .82)/1.15 var(--l2font);color:var(--muted)}.relic-req.ok{color:var(--gold)}.journey-looks article{align-items:center;padding:.8rem .95rem}.journey-looks article>.icon.big{width:64px;height:64px;flex-shrink:0}.dragon-body{flex:1;min-width:0}.dragon-body b{display:block;font:var(--l2)/1.1 var(--l2font);color:var(--bright)}.dragon-body small{display:block;margin:.2rem 0;font:.92rem/1.38 var(--sans);color:var(--text)}.dragon-status{display:inline-flex;align-items:center;gap:.3rem;font:calc(var(--l2) * .85)/1.1 var(--l2font)}.dragon-status.gold{color:var(--gold)}.chronicle-zones{display:grid;grid-template-columns:repeat(auto-fill,minmax(13.5rem,1fr));gap:.5rem;margin-bottom:1.1rem}.chronicle-zones .btn{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:.45rem;min-height:3.4rem;font:var(--l2)/1.1 var(--l2font);padding:.55rem .8rem;text-align:left;background:#14110d}.chronicle-zones .btn::before,.drop-zone::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,13,10,.86) 0%,rgba(16,13,10,.35) 100%),var(--zone-bg) right center/cover no-repeat;opacity:.85;pointer-events:none;z-index:0}.chronicle-zones .btn.on{border-color:var(--gold);box-shadow:inset 0 0 0 1px #e9c46a66,0 0 10px #e9c46a33}.chronicle-zones .btn>*,.drop-zone>*{position:relative;z-index:1}.chronicle-zones .btn em{font:calc(var(--l2) * .85)/1 var(--l2font);font-style:normal;color:var(--beige)}.chronicle-zones .btn.partial em{color:var(--gold)}.chronicle-zones .btn.complete em{color:var(--green)}

.chronicle-seals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}

.chronicle-seal{display:flex;align-items:flex-start;gap:.9rem;padding:.95rem 1.05rem;min-width:0;border:1px solid var(--line2);background:linear-gradient(180deg,rgba(28,24,18,.88),rgba(14,12,9,.92))}.chronicle-seal.done{border-color:#5b7a44;box-shadow:inset 0 0 0 1px #7fbf5a44}.chronicle-seal>.icon.big{width:64px;height:64px;flex-shrink:0}.seal-body{flex:1;min-width:0}.seal-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.seal-head b{font:var(--l2)/1.1 var(--l2font);color:var(--bright)}.seal-badge{padding:.2rem .6rem;border:1px solid var(--gold3);border-radius:0;background:#241c0ecc;font:calc(var(--l2) * .85)/1.1 var(--l2font);color:var(--gold);white-space:nowrap}.seal-badge.done{border-color:#5b8242;background:#192812cc;color:#a8e884}

.chronicle-seal>div{flex:1;min-width:0}.chronicle-seal p{margin:.35rem 0;color:var(--muted)}

.chronicle-seal small,.chronicle-target small,.chronicle-recap>small{display:block;font:.95rem/1.45 var(--sans);color:var(--beige);margin-top:.2rem}

.chronicle-gauge{height:8px;margin:.55rem 0;width:100%;max-width:34rem}

.chronicle-target{display:flex;align-items:center;gap:.7rem;margin:.8rem 0}.chronicle-target>div{flex:1;min-width:0}

.chronicle-records{display:grid;grid-template-columns:repeat(auto-fill,minmax(18rem,1fr));gap:.55rem;padding:0;border:0;background:none}.record-card{display:grid;grid-template-columns:1fr auto;gap:.25rem .6rem;align-items:center;padding:.7rem .9rem;border:1px solid var(--line2);border-radius:var(--r-win);background:var(--inset);box-shadow:inset 0 0 0 1px var(--bevel)}.record-card b{font:var(--l2)/1.1 var(--l2font);color:var(--bright)}.record-card .record-tier{font:calc(var(--l2) * .85)/1.1 var(--l2font);color:var(--gold);text-align:right}.record-card .record-rules{font:calc(var(--l2) * .8)/1.15 var(--l2font);color:var(--muted)}.record-card .record-time{font:var(--l2)/1.1 var(--l2font);color:#a8e884;text-align:right}

.chronicle-records>.record-card{display:grid;padding:.65rem .85rem}

.chronicle-recap{font:1rem/1.5 var(--sans);padding:1rem 1.25rem}.chronicle-recap>b{font:var(--l2)/1.2 var(--l2font);color:var(--gold)}.chronicle-recap>p{margin:.55rem 0;font:.98rem/1.45 var(--sans)}

.chronicle-recap>button{font:.98rem/1.35 var(--sans);padding:.48rem 1.25rem;margin-top:.35rem}.chronicle-earned{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;margin:.85rem 0}

.chronicle-earned>div{display:flex;align-items:center;gap:.65rem;text-align:left;padding:.4rem .75rem;border:1px solid var(--line2);border-radius:0;background:var(--inset)}.chronicle-earned b{display:block;font:1rem/1.3 var(--sans);color:var(--bright)}.chronicle-earned small{display:block;font:.9rem/1.35 var(--sans);color:var(--gold)}

.chronicle-best{color:var(--gold)}

@media(max-width:800px){.chronicle-seals{grid-template-columns:1fr}}



/* Native L2 run-rules window and nonblocking Hunt choices. */

#menu .mode-head{display:flex;align-items:center;justify-content:space-between;gap:.4rem;width:100%;font:13px/1 var(--l2font)}

#menu #pace .btn small{margin-left:.3rem}#menu .mode .mode-line{display:block;width:100%;font:12px/1.25 var(--l2font);color:var(--muted);white-space:normal}#menu .mode .seal-line{width:100%;padding:.3rem .45rem;font-family:var(--l2font);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.rules-inner{max-width:44rem}.rules-inner :is(p,small,button){font:.96rem/1.5 var(--sans)}

.rules-inner h2,.rules-inner h3{font:26px/1.2 var(--l2font)}.rules-styles{display:flex;gap:.5rem;margin:1rem 0}.rules-styles>*{flex:1}

.rules-rewards{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;text-align:left;padding:.6rem;background:var(--inset);border:1px solid var(--line2)}

.rules-rewards span{display:flex;justify-content:space-between;gap:.5rem;font:.96rem/1.4 var(--sans)}

.rules-modifiers{display:grid;gap:.5rem;margin-bottom:1rem}.rules-modifiers button{text-align:left}.rules-modifiers small{display:block;color:var(--muted)}

/* Hunt's cards (Daniel 1. 11. 2026 late evening: "why is it bottom right ... it should be in the middle and bigger"): a wide
   window in the middle, the cards in their usual type, where the hero is not (game.js placeHuntChoice): at the top under the
   run's timer and the raid bosses' bars when the camera keeps the hero under the middle of the screen (the third-person and the
   tilted view), above the skill bar when it keeps him high (the view from above); it stops short of him (--hunt-room), on a
   small screen it may reach the top of a tall hero rather than scroll. The fight
   goes on behind it, nothing is dimmed or blurred. The countdown's line beside the title stands for the line under the cards. */
#choiceModal.hunt-choice{inset:var(--hunt-top,7.5rem) 0 auto;margin:0 auto;width:min(60rem,calc(100vw - 2rem));padding:0;background:transparent;backdrop-filter:none;pointer-events:none;overflow:visible}

.hunt-choice .choice-inner{pointer-events:auto;display:grid;grid-template-columns:auto auto 1fr;align-items:baseline;column-gap:.7rem;padding:.55rem .8rem .6rem;margin:0;max-width:none;max-height:max(min(45vh,22rem),var(--hunt-room,40vh));overflow-y:auto;text-align:left;box-sizing:border-box;background:var(--win);border:1px solid #000;box-shadow:inset 0 0 0 1px var(--bevel)}

.hunt-choice .choice-inner>*{grid-column:1/-1}.hunt-choice .choice-inner>:is(.eyebrow,h2,.choice-timer){grid-column:auto;margin:0}.hunt-choice h2{font-size:1.75rem}.hunt-choice .choice-timer{justify-self:end;text-align:right}

.hunt-choice .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:.5rem 0}

.hunt-choice .card{min-height:0;padding:.55rem .7rem .6rem;gap:.25rem}.hunt-choice .card .head{gap:.4rem}.hunt-choice .card .flavor,.hunt-choice .card .kind,.hunt-choice #choiceBuild,.hunt-choice small.muted{display:none}

.hunt-choice .card::after{border-width:.5rem}.hunt-choice .choice-actions{gap:.5rem;position:sticky;bottom:-.6rem;z-index:2;background:var(--win)}.hunt-choice .choice-actions button{min-width:0}

.hunt-choice .card-icon{margin:.15rem auto .1rem;padding:.2rem}.hunt-choice .card .icon{width:max(32px,round(nearest,2.8rem,16px));height:max(32px,round(nearest,2.8rem,16px))}

.hunt-choice .card .lines{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}

.hunt-choice .card-rarity{position:static;order:999}

.hunt-choice .stat-block{margin:.15rem 0 0;gap:.12rem;padding:.35rem .55rem}

.hunt-choice .choice-actions .icon{display:none}

#choiceModal.hunt-choice.hunt-low{inset:auto 0 var(--hunt-bottom,6rem)}

@media (max-height:820px){.hunt-choice .card .lines{display:none}.hunt-choice .card{padding:.4rem .6rem .45rem}}

.chronicle-records>div{flex-wrap:wrap}



/* The existing version label is now a small native L2 update action. */

.version-in-keys.update-entry,.version-tag.update-entry{font:13px/1.2 var(--l2font);padding:.05rem .4rem;min-height:0;vertical-align:baseline;color:var(--text);white-space:nowrap}
/* in the menu's key line the version is one more item of the line, in its font, not a small framed button (Daniel
   1. 11. 2026: it looked out of place); a link's hover, gold while an update waits */
#menu .keys .version-in-keys.update-entry{font:inherit;line-height:inherit;padding:0;margin:0;min-height:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--beige);vertical-align:baseline;cursor:pointer}
#menu .keys .version-in-keys.update-entry:hover{background:none;color:var(--bright);text-decoration:underline}
#menu .keys .version-in-keys.update-entry.update-available{background:none;color:var(--gold);text-decoration:underline}
#menu .keys .keys-item{white-space:nowrap}

.update-entry.update-available{color:var(--gold);background-image:url('./assets/ui/btn-grey-down.png')}

.update-inner :is(h2,h3){font:26px/1.2 var(--l2font)}.update-inner :is(p,button,small){font:.98rem/1.5 var(--sans)}





/* Readable native typography: primary text uses 26px L2 cells throughout the

   content windows. 13px is reserved for icon ranks and compact menu captions. */

:root{--sans:Tahoma,Verdana,'Segoe UI',Arial,sans-serif;--serif:'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif}

body{font-family:var(--sans)}

:is(.armory-body,.rules-inner,.update-inner,.vault-modal,.results-inner,.options-inner,.about-inner,.choice-inner) :is(h2,h3){font-family:var(--l2font);line-height:1.2}

:is(.armory-body,.rules-inner,.update-inner,.vault-modal,.results-inner,.options-inner,.about-inner,.choice-inner) :is(p,li,dt,dd,input){font-family:var(--sans);letter-spacing:0}

:is(.armory-body,.rules-inner,.update-inner,.vault-modal,.results-inner,.options-inner,.about-inner,.choice-inner) :is(.close,.noicon){font-size:0!important}

.armory-body .icon .rank,.armory-body .talent-rank{font-size:13px!important;line-height:1!important}

.armory-body .talent{height:auto;min-height:4.8rem}.armory-body .talent small{white-space:normal}

#menu .hero-buttons .framed small,#menu #collectionBonus,#menu .race-box ul{font:.86rem/1.35 var(--sans)}

#menu .hero-info{flex-shrink:0}

#menu .hero-buttons .framed small,#menu #collectionBonus,#menu .race-box ul{font:.86rem/1.35 var(--sans)}

#resultDps .dps-table.party-table{grid-template-columns:1fr}#resultDps .dps-row{grid-template-columns:auto minmax(7rem,1fr) auto}#resultDps .dps-row>small{white-space:nowrap}

#menu .mode-head{font:13px/1.2 var(--l2font)}#menu .mode{min-width:15rem;max-width:18rem}

#tooltip{font-family:var(--l2font);max-width:min(34rem,calc(100vw - 2rem))}

#tooltip{max-width:min(48rem,calc(100vw - 2rem))}

body.coop-run #choiceModal .modal-inner{transform:none;width:min(68rem,calc(100vw - 2rem));max-height:calc(100vh - 7rem);overflow-y:auto}

.hunt-choice .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.hunt-choice .card .lines{-webkit-line-clamp:2}.status-win{max-height:calc(100vh - var(--l2) * 4.5 - 11.5rem)}.vault-reveal{inset:3.2rem .8rem 5.4rem;overflow-y:auto;padding:.4rem 0}.rules-inner{max-height:calc(100vh - 2rem);overflow-y:auto}@media(max-height:820px){#choiceModal:not(.hunt-choice) .choice-inner{padding:.8rem 1.1rem;max-height:calc(100vh - 1.5rem);overflow-y:auto}#choiceModal:not(.hunt-choice) .cards{margin:.55rem 0;gap:.75rem}#choiceModal:not(.hunt-choice) .card{padding:.65rem .75rem 2.1rem;min-height:0}#choiceModal:not(.hunt-choice) .card-rarity{bottom:.65rem}#choiceModal:not(.hunt-choice) .card-icon{margin:.2rem 0;padding:.2rem}.vault-reveal.ten{justify-content:flex-start}.vault-ten .vault-card{padding:.35rem .25rem;gap:.1rem}.vault-best .vault-card{padding:.55rem .9rem}}

.journey-look-row{grid-template-columns:52px minmax(0,1fr) auto;cursor:pointer}.journey-look-row>.icon{width:52px;height:52px}.journey-look-row b{font:var(--l2)/1.1 var(--l2font);color:var(--bright)}.journey-look-row .btn{padding:.42rem .75rem;font:calc(var(--l2) * .85)/1.1 var(--l2font)}.journey-look-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.6rem}.journey-look-wallet{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .75rem;border:1px solid var(--gold3);border-radius:0;background:#1d170ecc;color:var(--gold);font:var(--l2)/1.1 var(--l2font)}.journey-buy-box{display:flex;flex-direction:column;gap:.5rem;margin:.85rem 0 1.1rem}.journey-buy-box .primary{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:.7rem .95rem;text-align:center}.journey-buy-box .primary b{font:var(--l2)/1.1 var(--l2font);color:var(--bright)}.journey-buy-box .primary small{display:inline-flex;align-items:center;gap:.3rem;font:calc(var(--l2) * .85)/1.1 var(--l2font);color:var(--gold)}.look-row-actions{display:flex;align-items:center;gap:.35rem}.look-row-actions .buy-inline{display:inline-flex;align-items:center;gap:.25rem;border-color:var(--gold3);color:var(--gold)}.cos-buy-btn{display:inline-block;padding:.16rem .55rem;border:1px solid var(--gold);border-radius:0;background:#29200ecc;color:var(--gold);font:calc(var(--l2) * .82)/1 var(--l2font);cursor:pointer}.cos-buy-btn:hover{background:#3d2f14}

@media(max-width:1100px){.journey-steps,.journey-relics{grid-template-columns:1fr}.journey-look-info,.journey-look-browser{overflow:auto}}



/* Update copy and actions share a readable, compact L2 window in every state. */

.update-inner{width:min(44rem,calc(100vw - 2rem));max-width:none;padding:0 1.4rem 1.4rem}

.update-inner>.eyebrow{margin:0 -1.4rem;padding:.55rem 1rem .45rem;min-height:3rem;white-space:normal}

.update-inner #updateText{margin:1.2rem 0 1rem;text-align:left}

.update-inner .update-detail{margin:.6rem 0 1rem!important;text-align:left;overflow-wrap:anywhere}

.update-inner .update-bar{max-width:none;margin:1rem 0}

.update-inner .update-buttons{max-width:none;gap:.8rem;align-items:stretch;margin:0}

.update-inner .update-buttons button{width:auto;min-height:54px;margin:0;padding:.45rem .8rem;flex:1;box-sizing:border-box}

/* Choice widths follow their labels, so Damage and From 1 s remain complete. */

.options-inner .opt-seg{flex-wrap:wrap;gap:.15rem}

.options-inner .opt-seg .btn{flex:1 1 auto;width:auto;white-space:nowrap;overflow:visible;text-overflow:clip}

@media(max-width:700px){.options-inner .opt-row{grid-template-columns:1fr;gap:.3rem}.options-inner .opt-control{width:100%}}



/* The three specializations share the full card width for their explanations. */

.armory-body .spec-option{display:grid;grid-template-columns:3rem minmax(0,1fr);gap:.35rem .65rem;align-content:start}

.armory-body .spec-option>span{display:contents}

.armory-body .spec-option>.icon{display:block;grid-column:1;grid-row:1/3;width:3rem;height:3rem}

.armory-body .spec-option b,.armory-body .spec-option .gold{grid-column:2}.armory-body .spec-option .gold{font:.92rem/1.3 var(--sans);margin-top:.15rem}

.armory-body .spec-option small:not(.gold){grid-column:1/-1;margin:.35rem 0 0;font:.94rem/1.45 var(--sans);color:var(--text)}

.armory-body .spec-option em{display:block;grid-column:1/-1;text-align:right;margin-top:.25rem;font:600 .9rem/1.3 var(--sans)}


.armory-body .wear-pick>small,.armory-body .looks>small{width:auto;min-width:3.8rem;flex-shrink:0;letter-spacing:0}
.armory-body .wear-pick .pin{height:auto;min-height:36px;padding:.1rem .4rem}
/* Centered WoW-style talent tree spine, connectors and balanced Mastery row. */
.talent-trees.specialized{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(15rem,18.5rem);gap:.85rem;align-items:stretch}.spec-identity,.armory-body .spec-options,.armory-body .spec-hint{display:none!important}
.specialized .tree{position:relative;overflow:hidden;padding:0;border:1px solid #4a4031;background:#110f0c;box-shadow:inset 0 0 2.8rem #000e,inset 0 0 0 1px var(--bevel),0 6px 16px #000b;transition:border-color .2s,box-shadow .2s,opacity .2s}
.specialized .tree::before{content:'';position:absolute;inset:2.6rem 0 0;background:var(--tree-art) 50% 30%/78% auto no-repeat,url(./assets/fx/tex/flame_a00.webp) 50% 55%/135% 135% no-repeat,radial-gradient(ellipse at 50% 28%,var(--tree-glow,rgba(218,116,48,.36)),transparent 70%);filter:blur(8px) saturate(1.45) contrast(1.1);opacity:.55;pointer-events:none;z-index:0}
.specialized .tree.tree-1::before{background-image:var(--tree-art),url(./assets/fx/tex/anghel_fog.webp),radial-gradient(ellipse at 50% 28%,rgba(72,136,224,.38),transparent 70%)}
.specialized .tree.tree-2::before{background-image:var(--tree-art),url(./assets/fx/tex/eva_effect_map38.webp),radial-gradient(ellipse at 50% 28%,rgba(86,178,104,.34),transparent 70%)}
.specialized .tree::after{content:'';position:absolute;inset:2.6rem 0 0;background:radial-gradient(ellipse at 50% 45%,transparent 28%,rgba(10,9,7,.86) 92%),linear-gradient(180deg,rgba(8,7,5,.55),transparent 18%,transparent 82%,rgba(8,7,5,.78));pointer-events:none;z-index:0}
.specialized .tree.active-spec{border-color:var(--gold);box-shadow:inset 0 0 2.4rem #000d,inset 0 0 0 1px #e9c46a77,0 0 1.1rem #e9c46a33,0 6px 16px #000c}
.specialized .tree.inactive-spec{opacity:.86}.specialized .tree.inactive-spec:hover{opacity:1;border-color:#7c683c}
.specialized .tree>h3{position:relative;z-index:2;display:flex;align-items:center;gap:.55rem;margin:0;padding:.45rem .65rem;border:0;border-bottom:1px solid #4a4031;border-radius:0;background:linear-gradient(180deg,#2b251d,#16130f);cursor:pointer;box-shadow:0 2px 8px #000a}
.specialized .tree.active-spec>h3{border-bottom-color:#8c7238;background:linear-gradient(180deg,#382d1b,#19140c)}
.specialized .tree>h3>.icon{width:44px;height:44px;flex:0 0 44px;align-self:flex-start;margin-top:.1rem}
.specialized .tree>h3 .tree-title{display:flex;flex-direction:column;gap:.22rem;min-width:0;flex:1}.specialized .tree>h3 .tree-head-row{display:flex;align-items:baseline;gap:.45rem;min-width:0}.specialized .tree>h3 .tree-title b{font:var(--l2)/1.05 var(--l2font);color:var(--bright);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.specialized .tree>h3 .tree-title small{font:calc(var(--l2) * .85)/1 var(--l2font);color:var(--gold);white-space:nowrap}.specialized .tree>h3 .tree-sub{font:normal .9rem/1.35 var(--sans);color:#d8d0be;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.specialized .tree>h3 .tree-spec-tag{font:calc(var(--l2) * .85)/1 var(--l2font);font-style:normal;padding:.26rem .6rem;border-radius:0;border:1px solid #574d3c;background:#0d0b09b0;color:var(--muted);white-space:nowrap}
.specialized .tree.active-spec>h3 .tree-spec-tag{border-color:var(--gold);color:var(--gold);background:#29200ecc}
.specialized .tiers{position:relative;z-index:1;gap:.85rem;padding:.75rem .55rem .9rem;flex:1;justify-content:space-between}
.specialized .tiers::before{content:'';position:absolute;left:50%;top:2rem;bottom:2.8rem;width:4px;transform:translateX(-50%);background:linear-gradient(180deg,#a88948,#4a3f2d 55%,#b8954c);border-inline:1px solid #000;box-shadow:0 0 8px #000d;pointer-events:none;z-index:0}
.specialized .tier{position:relative;z-index:1}
.specialized .tier-need{position:relative;z-index:2;margin-bottom:.4rem;font-size:12px}
.specialized .tier-need span{position:relative;padding:.18rem .7rem;border:1px solid #4f4637;background:rgba(18,15,11,.94);box-shadow:0 2px 5px #000b;color:var(--muted);font:calc(var(--l2) * .82)/1.1 var(--l2font)}
.specialized .tier-need.open span{border-color:#8c7440;color:#efe3c4}
.specialized .tier-need.open span{border-color:#7c683c;color:#e6dac0}
.specialized .tier.mastery .tier-need span{border-color:var(--gold);color:var(--gold);background:linear-gradient(180deg,#332814,#181209);box-shadow:0 0 .8rem #e9c46a33,0 2px 6px #000c}
.specialized .tier-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:.65rem .35rem;position:relative;z-index:1}
.specialized .tier-row>.talent{flex:0 1 calc((100% - .7rem) / 3);max-width:calc((100% - .7rem) / 3);position:relative;justify-content:flex-start;padding:.25rem .15rem;min-height:0;background:none;border:0;box-shadow:none;gap:.3rem}
.specialized .tier-row>.talent:hover{background:none;border:0}
.specialized .talent .icon{width:54px;height:54px;border:2px solid #5a5040;border-radius:0;box-shadow:0 0 0 1px #000,0 4px 10px #000d;transition:transform .12s,border-color .15s,box-shadow .15s}
.specialized .talent:not(.locked):hover .icon{transform:scale(1.07);border-color:#e9c46a;box-shadow:0 0 0 1px #000,0 0 .8rem #e9c46a88}
.specialized .talent-text small{display:none}
.specialized .talent-text b{font:calc(var(--l2) * .85)/1.12 var(--l2font);color:#e8dec7;text-shadow:0 1px 3px #000,0 0 5px #000;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.specialized .talent.locked .talent-text b{color:#8e8677}
.specialized .talent-rank{right:-6px;bottom:-6px;padding:.12rem .35rem;border:1px solid #5a5243;border-radius:0;background:#090807f2;font:calc(var(--l2) * .78)/1 var(--l2font)!important;box-shadow:0 1px 4px #000}
/* compact WoW node overrides */
.specialized .tier:first-child .tier-row>.talent:nth-child(2) .icon{border-color:#b8964c;box-shadow:0 0 0 1px #000,0 0 .65rem #e9c46a44,0 4px 10px #000d}
.specialized .tier-row>.talent:nth-child(4){margin-top:.35rem}
.specialized .tier-row>.talent:nth-child(4)::before{content:'▼';position:absolute;top:-.85rem;left:50%;transform:translateX(-50%);font-size:11px;line-height:1;color:#9e844a;text-shadow:0 1px 3px #000;pointer-events:none}
/* connector arrow styled above */
.specialized .tier.open .tier-row>.talent:nth-child(4)::before{color:var(--gold)}
.specialized .talent.ready .icon{border-color:#74b852;box-shadow:0 0 0 1px #000,0 0 .7rem #7fbf5a88,0 4px 10px #000d}
.specialized .talent.partial .icon,.specialized .talent.maxed .icon{border-color:var(--gold);box-shadow:0 0 0 1px #000,0 0 .85rem #e9c46a88,0 4px 10px #000d}
.specialized .talent.partial .talent-text b,.specialized .talent.maxed .talent-text b{color:#ffe8a3}
.specialized .talent.partial .icon{border-color:#d8b25c;box-shadow:0 0 0 1px #000,0 0 .65rem #e9c46a66}
.specialized .talent.partial .talent-rank,.specialized .talent.maxed .talent-rank{border-color:var(--gold3);color:var(--gold)}
.specialized .talent.ready .talent-rank{border-color:#5d8a45;color:#a8e884}
.specialized .tier.mastery .tier-row{align-items:stretch}.specialized .tier.mastery .tier-row>.talent{flex:0 1 calc((100% - .7rem) / 2);max-width:calc((100% - .7rem) / 2);min-height:0;padding:1.2rem .25rem .45rem;border:1px solid #6b5a35;border-radius:0;background:linear-gradient(180deg,rgba(34,28,19,.86),rgba(16,13,9,.92));box-shadow:inset 0 0 0 1px #000,0 4px 10px #000c}.specialized .tier.mastery .tier-row>.talent .icon{width:60px;height:60px}
.specialized .tier.mastery .tier-row>.talent:nth-child(1):nth-last-child(3),.specialized .tier.mastery .tier-row>.talent:nth-child(2):nth-last-child(2),.specialized .tier.mastery .tier-row>.talent:nth-child(3):nth-last-child(1){flex:0 1 calc((100% - .7rem) / 3);max-width:calc((100% - .7rem) / 3)}
.specialized .tier.mastery .talent.capstone{grid-column:auto;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:.3rem;padding:1.1rem .25rem .35rem;border:1px solid #9c7f3e;border-radius:0;background:radial-gradient(ellipse at 50% 35%,#e9c46a33,rgba(24,19,12,.85) 72%);box-shadow:inset 0 0 0 1px #000,0 0 .9rem #e9c46a33,0 4px 10px #000c}
.specialized .tier.mastery .talent.capstone .icon{width:64px;height:64px;border-color:var(--gold);box-shadow:0 0 0 1px #000,0 0 .9rem #e9c46a77}
.specialized .tier.mastery .talent.capstone .cap-tag{left:50%;top:.2rem;transform:translateX(-50%);padding:.1rem .45rem;font:calc(var(--l2) * .72)/1 var(--l2font);border:1px solid #8c7238;border-radius:0;background:#17120ae6;white-space:nowrap}
/* mastery 3-col handled above */
/* capstone styled above */
/* Guided Zone Campaign panel with Grade crests, Next Goal badges, drop icons and boss loot previews. */
#menu .zone-tier{gap:.42rem;margin-bottom:.45rem}
#menu .tier-label{display:flex;align-items:center;gap:.5rem;padding:.34rem .6rem;margin:.25rem 0 0;border-left:3px solid var(--gold);background:linear-gradient(90deg,rgba(233,196,106,.18),transparent 88%);font:var(--l2)/1.1 var(--l2font);color:var(--beige)}
#menu .tier-label>span{font:var(--l2)/1.1 var(--l2font);color:var(--bright);text-shadow:0 1px 2px #000}
#menu .tier-label>em{margin-left:auto;font:calc(var(--l2) * .88)/1.1 var(--l2font);font-style:normal;color:var(--gold);text-shadow:0 1px 2px #000}
.grade-pill{display:inline-flex;align-items:center;justify-content:center;min-width:2.1rem;height:1.65rem;padding:0 .48rem;border:1px solid #8c7647;border-radius:0;background:#14110c;font:var(--l2)/1 var(--l2font);color:var(--gold);box-shadow:0 1px 4px #000;text-shadow:0 1px 2px #000}
.grade-pill.grade-D{border-color:#6892c4;color:#9fc8ff}.grade-pill.grade-C{border-color:#66a86e;color:#9fe8a8}.grade-pill.grade-B{border-color:#c46a5a;color:#ffaba0}.grade-pill.grade-A{border-color:#9e78cc;color:#d6b8ff}.grade-pill.grade-S,.grade-pill.grade-Epic{border-color:var(--gold);color:#ffe49c;box-shadow:0 0 6px #e9c46a55}
#menu .zone{position:relative;overflow:hidden;padding:.68rem .78rem;border:1px solid #4a4234;background:#14110d;box-shadow:inset 0 1px 0 #ffffff14,0 3px 8px #000b}#menu .zone>*{position:relative;z-index:1}#menu .zone h3{font:var(--l2)/1.1 var(--l2font);text-shadow:0 1px 3px #000,0 0 6px #000}#menu .zone.selected h3{font:calc(var(--l2) * 1.18)/1.1 var(--l2font);color:var(--yellow)}#menu .zone .sub{font:calc(var(--l2) * .88)/1.15 var(--l2font);color:var(--orange);text-shadow:0 1px 3px #000}#menu .zone p{font:.94rem/1.42 var(--sans);color:#ece5d5;text-shadow:0 1px 3px #000;margin:.48rem 0}.drop-zone{position:relative;overflow:hidden;background:#14110d}.drop-zone b{font:var(--l2)/1.1 var(--l2font)}
#menu .zone::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,13,10,.86) 0%,rgba(16,13,10,.42) 48%,rgba(16,13,10,.15) 100%),var(--zone-bg) right center/cover no-repeat;opacity:.92;pointer-events:none;z-index:0;transition:opacity .2s,transform .25s}#menu button.zone:hover::before{opacity:1;transform:scale(1.03)}#menu .zone.locked{opacity:.8}#menu .zone.locked::before{opacity:.52;filter:grayscale(.42)}
#menu .zone.recommended:not(.selected){border-color:#8c7238;box-shadow:inset 0 0 0 1px #e9c46a33,0 2px 8px #000a}
#menu .zone.selected{border-color:#6898d8;background:#131210;box-shadow:inset 0 0 0 1px #7ab0f566,0 5px 14px #000d}#menu .zone.selected::before{inset:0 0 auto;height:12rem;background:linear-gradient(180deg,rgba(19,22,28,.22) 0%,rgba(19,18,16,.65) 68%,#131210 100%),linear-gradient(90deg,rgba(18,22,29,.82) 0%,rgba(18,22,29,.28) 55%,rgba(18,22,29,.12) 100%),var(--zone-bg) right 25%/cover no-repeat;opacity:.96}
#menu .zone-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.4rem;position:relative;z-index:1}
#menu .zone-badge{flex-shrink:0;padding:.24rem .62rem;border-radius:0;border:1px solid #5a503f;background:#0e0c0ae6;font:calc(var(--l2) * .88)/1 var(--l2font);white-space:nowrap;text-shadow:0 1px 2px #000;box-shadow:0 2px 5px #000a}
#menu .zone-badge.next-badge{border-color:var(--gold);color:#ffe59e;background:linear-gradient(180deg,#3b2e14,#1c1508);box-shadow:0 0 8px #e9c46a44}
#menu .zone-badge.farm-badge{border-color:#5d8a45;color:#b2eb94;background:#142010d9}
#menu .zone-badge.done-badge{border-color:#8c7647;color:var(--gold);background:#1f190ed9}
#menu .zone-badge.locked-badge{border-color:#3a352d;color:var(--muted)}
#menu .zone-drops{display:flex;flex-wrap:wrap;gap:.36rem;margin-top:.5rem;position:relative;z-index:1}
#menu .zdrop{position:relative;display:inline-flex;line-height:0}
#menu .zdrop .icon{width:40px;height:40px;border-color:#6e624d;box-shadow:0 0 0 1px #000,0 2px 6px #000c}#menu .zone.selected>.zone-drops .zdrop .icon{width:44px;height:44px}
#menu .zdrop.own .icon{border-color:#68a84e;box-shadow:0 0 0 1px #000,0 0 6px #7fbf5a66}
#menu .zdrop>i{position:absolute;right:-4px;bottom:-4px;width:16px;height:16px;display:grid;place-items:center;border-radius:50%;border:1px solid #000;background:#4c8535;color:#fff;font:700 11px/1 sans-serif;font-style:normal;box-shadow:0 1px 3px #000}
#menu .zone .mobs{margin:.45rem 0;padding:.38rem .55rem;border:1px solid #332e25;border-radius:0;background:#0b0a08c4;font:.88rem/1.38 var(--sans);color:var(--text)}
#menu .zone .mobs b{color:var(--beige);font-weight:400}
#menu .boss-line{display:grid;grid-template-columns:3.5rem minmax(0,1fr) auto;align-items:center;gap:.5rem;padding:.38rem .55rem;border:1px solid #3a342b;border-radius:0;background:linear-gradient(90deg,#16130ff0,#0d0b09d9)}#menu .boss-line>b{font:var(--l2)/1 var(--l2font);color:var(--yellow);text-shadow:0 1px 2px #000}
#menu .boss-line .boss-who{display:flex;flex-direction:column;min-width:0}
#menu .boss-line .boss-who em{font:var(--l2)/1.1 var(--l2font);font-style:normal;color:var(--bright);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px #000}
#menu .boss-line .boss-who small{font:calc(var(--l2) * .8)/1.1 var(--l2font);color:var(--beige)}
#menu .boss-line .zone-drops{margin:0;gap:.2rem}
#menu .boss-line .zdrop .icon{width:36px;height:36px}
#menu .boss-line.final{grid-template-columns:3.5rem minmax(0,1fr) auto;border-color:#8c5d28;background:linear-gradient(90deg,rgba(140,82,32,.32),rgba(18,14,10,.92))}
#menu .boss-line.final b{grid-row:auto}
#menu .boss-line.final .boss-who em{color:#ffd996}
/* The Account tab of the Options window (account-options.js, task 10c): its text and buttons are option rows, a form is its fields and two buttons */
.acct-form{display:grid;gap:.5rem;padding:.3rem .6rem}
.acct-form>p{margin:.1rem 0 .3rem;color:var(--text)}
.acct-field{display:grid;grid-template-columns:minmax(0,12rem) minmax(0,1fr);align-items:center;gap:.8rem}
.acct-field>span{color:var(--text)}
.acct-field input{min-width:0;width:100%;box-sizing:border-box;font:inherit;color:var(--bright);background:#000000a6;border:1px solid var(--line2);border-radius:0;padding:.25rem .5rem}
.acct-field input:focus{outline:0;border-color:var(--gold)}
.acct-error{margin:0;color:#ff7d6b}.acct-error:empty{display:none}.acct>.opt-row+.acct-error{margin:.3rem .6rem 0}
.acct-done{margin:.4rem .6rem 0;color:var(--yellow)}
.acct-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:.3rem}.acct-actions .btn,.acct .opt-control .btn{padding:.34rem 1rem .3rem;white-space:nowrap}
@media(max-width:700px){.acct-field{grid-template-columns:1fr;gap:.2rem}}
/* the buttons of the actions that need the server, while there is none (game.js lockButtons; the reason is their title) */
.acct-locked{opacity:.45;cursor:not-allowed}
/* The shield that comes with the weapon (4. 11. 2026): a note under its row, its Collection cell (the label names the column on a phone, where the heads are hidden), the drop cards dimmed with the weapon */
.slot-row .slot-prop.shield-note{color:var(--dim)}
.coll-cell small.with{color:var(--dim);font-size:.8rem}.coll-cell.own small.with{color:var(--muted)}.coll-cell .with>span{display:none}
@media (max-width:860px){.coll-cell .with>span{display:inline}}
/* A hint under a raid boss's arrival (game.js banner's fourth argument, wardHint: Pagan Temple's offerings, tester 9. 11. 2026): the
   banner's own serif, smaller than its title and far bigger than its small line, so it reads at once on every screen */
.banner .banner-hint{display:block;font:normal .6em var(--serif);color:#fbe7b5;margin:.45rem auto 0;white-space:normal;max-width:min(40rem,90vw)}
/* the level-up cards: a click that slides over them selects no text (Daniel 11. 11. 2026: "ono se to zmodrá") */
#choiceModal{-webkit-user-select:none;user-select:none}
/* a full kit's forget choice (core.js forget, skills of other classes): up to seven of the hero's own skills as short cards (icon, name,
   rank) in four columns, so that all of them and the Keep button fit on every screen */
#choiceModal.forget-choice .cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin:.6rem 0}
#choiceModal.forget-choice .card{min-height:0;padding:.6rem .6rem .7rem}#choiceModal.forget-choice .card-rarity{display:none}
@media (pointer:coarse){#choiceModal.forget-choice .cards{gap:.35rem}}
@media (pointer:coarse) and (orientation:portrait){#choiceModal.forget-choice .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* a phone on its side: touch.css's three columns stay for three cards; one or two cards (a subclass offer of fewer teachers) sit in
   the middle as on a computer, each a third of the width less touch.css's two .4rem gaps (auto-fit with a fixed third broke the usual
   three cards into two rows on a Pixel 7 landscape); the forget choice and Hunt's keep theirs */
@media (pointer:coarse) and (orientation:landscape){#choiceModal#choiceModal:not(.forget-choice,.hunt-choice) .cards:has(>:only-child){grid-template-columns:calc((100% - .8rem) / 3);justify-content:center}
#choiceModal#choiceModal:not(.forget-choice,.hunt-choice) .cards:has(>:nth-child(2):last-child){grid-template-columns:repeat(2,calc((100% - .8rem) / 3));justify-content:center}}
/* (Daniel 3. 12. 2026 14:0x over the subclass's skill choice, four cards on 2560 x 1440: "takhle ta subclass toje divne že se to tak
   objevuje dole ne? na 2k monitoru") a choice of four or more cards (a subclass's three teachers bring one to three skills each,
   core.js offerBorrow) is one row as wide as its cards and at most the screen: interface.css's columns of 300 to 340 px in at most
   1120 px held three and the fourth went under them, below the screen's bottom; coop.css and touch.css on its side held three too.
   A phone upright and a window under 861 px keep their one column: four cards in two columns on a Pixel 7 upright wrapped every stat's
   value under its name and the cards no longer fitted (757 px high in one column, 927 in two, measured 3. 12.). */
@media (min-width:861px) and (not (pointer:coarse)),(pointer:coarse) and (orientation:landscape){
 #choiceModal#choiceModal:not(.forget-choice,.hunt-choice) .cards:has(>:nth-child(4)){grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,max(20rem,340px));justify-content:center}
 #choiceModal#choiceModal:not(.forget-choice,.hunt-choice) .choice-inner:has(>.cards>:nth-child(4)){width:fit-content;max-width:calc(100vw - 2rem)}
}
#choiceModal #choiceTitle>span{font-size:inherit!important;line-height:inherit!important}
/* in a run the mouse marks nothing of the HUD and its panels (Tryskell 14. 11. 2026: the timer, Kills and the quests stayed blue
   to the run's end), as a phone has it (touch.css); the fields one types into keep it, .clw-words and the clan chat's fields
   say user-select:text themselves */
body.in-game:not(.in-town){-webkit-user-select:none;user-select:none}
body.in-game:not(.in-town) :is(input,textarea){-webkit-user-select:text;user-select:text}
/* and no text cursor over it: the HUD's parts that take the mouse for a tooltip (the "Gear S · zone S" line under the timer)
   showed the I-beam (Tryskell 14. 11. 2026). The arrow is inherited by all of the run, what says its own cursor (buttons,
   the Status window's grip) keeps it, the fields one types into get the browser's own back (zero specificity) */
body.in-game:not(.in-town){cursor:default}
:where(body.in-game:not(.in-town)) :where(input,textarea,.clw-words){cursor:auto}
/* Mammon's Vault on a phone or a narrow window (14. 11. 2026): the three buy buttons wrap and grow over the opened coffer's card
   (the reveal stops 5.4rem above the bottom, that is room for them on a computer only). While the reveal is up they do nothing
   (vault-ui.js buy: busy), so they step out until it is closed and the card, Owned and Click to continue stay readable.
   The reveal takes the space they leave, and auto margins centre its content only while it fits: justify-content:center cut off
   the top of a tall result (the gilded card, the first row of ten) where scrolling could not reach it, and it has to give way
   to flex-start here, because overflowing auto margins drop to 0 and justify-content applies again. */
@media (max-width:860px),(pointer:coarse){.vault-reveal{bottom:.8rem;justify-content:flex-start}.vault-reveal>:first-child{margin-top:auto}.vault-reveal>:last-child{margin-bottom:auto}.vault-reveal:not([hidden])~.vault-buy{visibility:hidden}}
/* UI port step 6, the Vault's texts in their middle (e9 14. 11. 2026 23:4x, measured by rozlišení): a coffer button's title and
   price sat at its top with up to 83 px of nothing under them, so the column goes to the button's middle; where text-box is
   (Chromium 133+, Electron 44) the column runs from the title's capitals to the last line's baseline, a háček or a p's tail outside
   it. The tabs' text sat 1 to 2 px under their middle (.32rem over it, .26rem under): the same height, the capitals in its middle. */
#vaultModal .vault-buy .primary{justify-content:center}
@supports (text-box:trim-both cap alphabetic){
 #vaultModal .vault-buy .primary>:first-child{text-box:trim-start cap alphabetic}#vaultModal .vault-buy .primary>:last-child{text-box:trim-end cap alphabetic}
 #vaultModal .vault-head .tabs button{text-box:trim-both cap alphabetic;padding-top:calc((.58rem + 1lh - 1cap) / 2);padding-bottom:calc((.58rem + 1lh - 1cap) / 2)}
 @media (max-width:860px){#vaultModal .vault-head .tabs button{padding-top:calc((.65rem + 1lh - 1cap) / 2);padding-bottom:calc((.65rem + 1lh - 1cap) / 2)}}
}
