/* The menu's one top bar (Claude „emoji“, 2. 11. 2026; Daniel: „nahoře i dole … zduplikované věci zbytečně“, „ať to vypadá jak
   Lineage 2 Interlude UI, nebo ať to matchuje k tomu, co máme“). Every window of the menu is here once: the Armory's tabs and Quests
   (index.html #menuTabs, game.js armory), Ascension (ascension-ui.js puts its button here) and Mammon's Vault; the block of buttons
   under the hero is gone. The strip is the client's main menu like Giran's (l2-ui.css .l2-menubar: MainWnd's dark strip and its
   buttons from assets/ui/l2menu, the same button for the same window there and here), the windows without a client button have an
   inventory icon. Over 1700 px the label is under the icon, in the two-row bar of interface.css beside it, on phones the strip
   scrolls sideways (the block under the hero used to be the way there). Loaded last, the ids outweigh the older tab rules. */
#menu{--nav-icon:32px}
@media(min-width:2000px) and (min-height:1300px){#menu{--nav-icon:40px}}  /* 2560 x 1440 full screen, where the label is 15 px */
@media(min-width:3000px) and (min-height:1650px){#menu{--nav-icon:64px}}  /* 4K, as the menu's other icons */
#menu .topbar>#menuTabs{display:flex;flex-wrap:nowrap;align-items:flex-start;justify-content:center;gap:2px;width:max-content;max-width:100%;margin:0;padding:3px 5px 2px;background:#0d0c0bd9 url(./assets/ui/l2menu/mainwndBack.png) center/100% 100% no-repeat;border:1px solid #6d6553;border-radius:0;box-shadow:0 0 0 1px #000c,0 3px 10px #000b}
#menu #menuTabs>button{display:flex;flex:none;flex-direction:column;align-items:center;gap:1px;min-width:calc(var(--nav-icon) + 10px);height:auto;padding:0 5px;margin:0;border:0;border-radius:0;background:none;box-shadow:none;font:26px/1.15 var(--l2font);color:#dcd3c0;text-shadow:0 1px 1px #000;white-space:nowrap;letter-spacing:0}
/* the line of the drawn Tahoma (game.js uiFont), else the bar grows into the hero's name; the pixel fonts at their own 13 px */
:where(html[data-font="l2"]) #menu #menuTabs>button{line-height:calc(var(--l2k) * 1.3em)}
:where(html:not([data-font="l2"])) #menu #menuTabs>button{font-size:13px;line-height:15px}
#menu #menuTabs>button::before{content:'';display:block;flex:none;width:var(--nav-icon);height:var(--nav-icon);background:var(--icon) center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px #000}
#menu #menuTabs>button:hover:not(:disabled){filter:none;color:#fff;box-shadow:none;background:none}
#menu #menuTabs>button:hover::before{filter:brightness(1.18)}
#menu #menuTabs>button:active::before{background-image:var(--icon-down,var(--icon));filter:brightness(1.12)}
#menu #menuTabs>[data-armory="character"]{--icon:url(./assets/ui/l2menu/MainStatus_large.png);--icon-down:url(./assets/ui/l2menu/MainStatus_large_click.png)}
#menu #menuTabs>[data-armory="collection"]{--icon:url(./assets/ui/l2menu/MainInventory_large.png);--icon-down:url(./assets/ui/l2menu/MainInventory_large_click.png)}
#menu #menuTabs>[data-armory="drops"]{--icon:url(./assets/icons/weapon_forgotten_blade_i00.png)}
#menu #menuTabs>[data-armory="codex"]{--icon:url(./assets/icons/accessory_necklace_of_valakas_i00.png)}
#menu #menuTabs>[data-armory="talents"]{--icon:url(./assets/ui/l2menu/MainSkill_large.png);--icon-down:url(./assets/ui/l2menu/MainSkill_large_click.png)}
#menu #menuTabs>[data-armory="forge"]{--icon:url(./assets/icons/etc_scroll_of_enchant_weapon_i04.png)}
#menu #menuTabs>[data-armory="achievements"]{--icon:url(./assets/icons/accessory_crown_i00.png)}
#menu #menuTabs>[data-armory="cosmetics"]{--icon:url(./assets/icons/etc_party_mask_i00.png)}
#menu #menuTabs>[data-armory="journey"]{--icon:url(./assets/ui/l2menu/MainQuest_large.png);--icon-down:url(./assets/ui/l2menu/MainQuest_large_click.png)}
#menu #menuTabs>#ascensionButton{--icon:url(./assets/icons/skill1323.png)}
#menu #menuTabs>#vaultButton{--icon:url(./assets/icons/etc_treasure_box_i00.png)}
/* over 1700 px every button as wide as the widest label, the icons at even steps as in the client's menu (Daniel 2. 11. 2026:
   „stejný spacing mezi těma ikonama“) */
@media(min-width:1701px){#menu .topbar>#menuTabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}}
/* the block under the hero keeps the collection, its gauge and the gear bonuses */
#menu .hero-info{grid-template-areas:"collection bonus" "progress progress" "race race"}
@media(min-width:861px) and (max-width:1700px){
 #menu .topbar>#menuTabs{justify-self:center;flex-wrap:wrap;padding:3px 5px}
 #menu #menuTabs>button{flex-direction:row;gap:5px;padding:0 6px 0 0}
}
@media(max-width:860px){
 #menu .topbar{flex-wrap:wrap;row-gap:.3rem;padding-bottom:.35rem}
 #menu .topbar>#menuTabs{display:flex;order:3;flex:1 0 100%;width:auto;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
 /* (+ .65rem: the bar's row gap and bottom padding above, and 3 px of air; without them the fixed bar ended 10.8 px into the hero's
    panel and hid half of the class name on every phone upright, „město“ 5. 11. 2026) */
 #menu{padding-top:calc(4.8rem + var(--nav-icon) + 34px + .65rem + 3px)}
}
/* Discord and the download beside the logo (menu-links.js; Daniel 3. 11. 2026: "ikony velké do menu … ať to má ten Lineage
   interface"): buttons of the top bar on their own MainWnd strip, the icon over its name; the version at the bottom left ("ať je
   tam, že to je beta … i jako číselný popis") on the line of the keys */
#menu .menu-links{display:flex;align-items:flex-start;gap:2px;margin-left:1rem;padding:3px 5px 2px;background:#0d0c0bd9 url(./assets/ui/l2menu/mainwndBack.png) center/100% 100% no-repeat;border:1px solid #6d6553;border-radius:0;box-shadow:0 0 0 1px #000c,0 3px 10px #000b;letter-spacing:0}
#menu .menu-link{display:flex;flex:none;flex-direction:column;align-items:center;gap:1px;min-width:calc(var(--nav-icon) + 10px);padding:0 5px;font:26px/1.15 var(--l2font);color:#dcd3c0;text-shadow:0 1px 1px #000;white-space:nowrap;text-decoration:none}
:where(html[data-font="l2"]) #menu .menu-link{line-height:calc(var(--l2k) * 1.3em)}
:where(html:not([data-font="l2"])) #menu .menu-link{font-size:13px;line-height:15px}
#menu .menu-link>i{display:block;width:var(--nav-icon);height:var(--nav-icon);background:var(--icon) center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px #000}
#menu .menu-link:hover{color:#fff}#menu .menu-link:hover>i{filter:brightness(1.18)}
#menu .menu-version{position:absolute;left:1.5rem;bottom:.45rem;z-index:2;font:26px/1.2 var(--l2font);color:#e9c46a;letter-spacing:.03em;text-shadow:0 1px 2px #000;pointer-events:none;white-space:nowrap}
:where(html:not([data-font="l2"])) #menu .menu-version{font-size:13px}
/* on a phone the links open the bar's strip, parted from the windows by a line (menu-links.js moves them there) */
#menu #menuTabs>.menu-links{flex:none;margin:0 3px 0 0;padding:0 3px 0 0;background:none;border:0;border-right:1px solid #6d6553;border-radius:0;box-shadow:none}
/* Ko-fi under a run's results (menu-links.js resultsKofi, 6. 11. 2026: "malé a nevtíravé … ve stylu výsledků"): the client's grey
   button the results' View Chronicle has (.btn), only as wide as its words, the menu's cup in front of them. It shares the last line
   with the save's note (#saveStatus, before a block line of its own, style.css .muted): on a line of its own it made the results 41 to
   50 px taller and they began to scroll on 1536x730, 1366x657, 1280x650 and a win on 1920x937; on the note's line they scroll nowhere
   they did not before (.work/kofi-results-2026-11-06/radek2.py). A long note or a narrow window (a phone) puts it under the note; an
   empty note (a training, a report turned down) is left out, so it stays in the middle */
#resultsModal #saveStatus{display:inline-block;vertical-align:middle;margin:.7rem .45rem 0}
#resultsModal #saveStatus:empty{display:none}
#resultsModal .result-kofi{display:inline-flex;align-items:center;gap:.45rem;padding:.15rem .8rem;text-decoration:none}
#resultsModal .result-kofi>i{flex:none;width:1.5rem;height:1.5rem;background:url(./assets/ui/links/kofi.png) center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px #000}
#resultsModal .result-kofi:hover>i{filter:brightness(1.18)}
/* for a finger (touch.css's pointer:coarse) the taller button: with .15rem it was 27 px high on a phone on its side */
@media (pointer:coarse){#resultsModal .result-kofi{padding:.25rem .8rem}}
/* Share before Ko-fi (menu-links.js resultsShare, 7. 11. 2026): the same button with its words only, as high as Ko-fi by an empty
   strut as tall as the cup; "Copied" for two seconds in green. The two are one box on the note's line (.result-links, Ko-fi's place
   and spacing before): a long note or a narrow window puts the box under the note as it put Ko-fi, never Share beside the note and
   Ko-fi a line lower (that made the results 10 px taller on 1920x937 in English and 14 px on a Pixel 7); a window narrower than
   the box wraps them inside it */
#resultsModal .result-links{display:inline-flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.4rem .9rem;vertical-align:middle;margin:.7rem .45rem 0}
#resultsModal .result-share{display:inline-flex;align-items:center;padding:.15rem .8rem;text-decoration:none}
#resultsModal .result-share::before{content:'';flex:none;width:0;height:1.5rem}
#resultsModal .result-share.done{color:var(--green)}
#resultsModal .result-share.failed{color:var(--red)}
@media (pointer:coarse){#resultsModal .result-share{padding:.25rem .8rem}}
/* The Discord's invite under the first run's results (menu-links.js resultsDiscord, 11. 11. 2026): Ko-fi's button with the menu's
   Discord icon, first on the line of the links, and one sentence over that line */
#resultsModal .result-discord{display:inline-flex;align-items:center;gap:.45rem;padding:.15rem .8rem;text-decoration:none}
#resultsModal .result-discord>i{flex:none;width:1.5rem;height:1.5rem;background:url(./assets/ui/links/discord.png) center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px #000}
#resultsModal .result-discord:hover>i{filter:brightness(1.18)}
#resultsModal .result-discord-note{margin:.8rem 0 0;color:#cfc4ac}
#resultsModal .result-discord[hidden],#resultsModal .result-discord-note[hidden]{display:none}
@media (pointer:coarse){#resultsModal .result-discord{padding:.25rem .8rem}}
