/* ProjectIdle — aged brass, charcoal metal and antique gold. Loaded after the system styles.
   Geometry of item grids stays in art pixels (CELL = 18); generated decoration never intercepts input.
   Source: tools/art/src/imperial, build: tools/art/gen_imperial_ui.py. */
:root {
  --bg0: #0d0c0a; --bg1: #181613; --bg2: #211f1c; --bg3: #302e2a;
  --edge: #060504; --bronze: #756344; --bronze-l: #b9a275; --bronze-d: #39362a;
  --gold: #dfc48b; --gold-d: #9e8050; --text: #e6e3d6; --dim: #aba99a;
  --green: #8dc69c; --red: #d76558; --blue: #689ecb; --ink: #060504;
  /* metal_even = seamless (metal.webp is lighter at the top: every 192 px a seam in tall windows, Nutzer 03.11.2026) */
  --metal: url('../assets/ui/imperial/metal_even.webp');
  --imperial-frame: url('../assets/ui/imperial/frame.webp');
  --inset: inset 0 0 0 1px #3d3935, inset 0 1px 0 1px #0d0c0a;
  --panel-shadow: 0 0 0 1px #080706, inset 0 0 0 1px #8d7951, inset 0 0 0 2px #0c0b09, 0 3px 9px #0009;
}

/* All windows, dialogs and tooltips share the same crafted frame. The border image
   is painted outside their box: inventories retain their exact drag/drop coordinates. */
#ui .win, #ui .tooltip, #ui .frame:not(.glass) {
  background-color: var(--bg1);
  background-image: linear-gradient(110deg, #0e0c0ab8, #19171382 50%, #0d0b0ae6), var(--metal);
  background-size: auto, 192px 192px;
  box-shadow: var(--panel-shadow);
}
#ui .win::after {
  content: ''; position: absolute; inset: -2px; border: 8px solid transparent;
  border-image: var(--imperial-frame) 43 / 8px / 0 stretch;
  pointer-events: none; z-index: 3;
}
#ui .win-title {
  height: 18px; padding: 0 20px; margin: 1px 1px 0;
  background: linear-gradient(90deg, #191713, #37332e 50%, #191713);
  box-shadow: inset 0 1px 0 #c4ac7155, inset 0 -1px 0 #74613f, 0 1px 0 #000;
  color: #efdfb7; font-size: 8px; letter-spacing: .4px; text-shadow: 0 1px 1px #000;
}
#ui .win-close { top: 3px; right: 3px; width: 12px; height: 12px; opacity: .9; }
#ui .win-close:hover { background-color: #652b22; }
#ui .win-body { scrollbar-gutter: auto; }
#ui > .win { display: flex; flex-direction: column; max-height: calc(100% - 8px); }
#ui > .win > .win-title { flex: none; }
#ui > .win > .win-body { min-height: 0; overflow-y: auto; overflow-x: hidden; }
#ui .frame.glass {
  background: linear-gradient(110deg, #14120eed, #171512d9);
  box-shadow: 0 0 0 1px #060504, inset 0 0 0 1px #85734d, inset 0 0 0 2px #0e0c0a, 0 2px 6px #0008;
}
#ui .tooltip { padding: 6px 7px; line-height: 1.35; }
#ui .tooltip .tt-name { color: #ead4a4; }
#ui .tooltip .tt-head, #ui .tooltip .tt-sep { border-color: #4c4938; }
#ui .dlg-back { background: #060504ae; }
#ui .ctx-menu, #ui .sel-list {
  background: #191713; box-shadow: var(--panel-shadow);
}
#ui .ctx-item:hover, #ui .sel-opt:hover { background: #403c37; color: #fff1cc; }

/* Quiet secondary controls; lacquer-red primary actions. Gold denotes selection. */
#ui .btn {
  background: linear-gradient(#383430, #25231f 52%, #1b1915);
  box-shadow: 0 0 0 1px #060504, inset 0 0 0 1px #756747, inset 0 2px 0 #b7a06a22;
  color: #e4ddc9; text-shadow: 0 1px 0 #000;
}
#ui .btn:hover { background: linear-gradient(#4b453c, #342f29); color: #fff2ce; box-shadow: 0 0 0 1px #060504, inset 0 0 0 1px #c1a66d; }
#ui .btn:active { background: #1d1a17; }
#ui .btn.primary, #ui .btn.big {
  background: linear-gradient(#6f3028, #4e1c18 55%, #32130f);
  color: #f6e7c7; box-shadow: 0 0 0 1px #060605, inset 0 0 0 1px #ab8955, inset 0 2px 0 #edba7c33, inset 0 -2px 0 #160906;
}
#ui .btn.primary:hover, #ui .btn.big:hover { background: linear-gradient(#8b3e2f, #60241c 55%, #431710); }
#ui .btn.danger { color: #efaaa0; background: linear-gradient(#3c211e, #221412); box-shadow: 0 0 0 1px #060504, inset 0 0 0 1px #76453b; }
#ui .btn.on { color: #e2d5c3; background: linear-gradient(#494135, #2c261d); box-shadow: inset 0 0 0 1px #9b8c77; }
#ui .btn:disabled { opacity: .6; }
#ui :is(button, .btn, .sel):focus-visible { outline: 1px solid #ead49b; outline-offset: 1px; }
#ui :is(input[type=text], input:not([type]), input[type=password], input[type=number], textarea, .sel) {
  color: #ede6d5; background-color: #100e0c; box-shadow: inset 0 0 0 1px #514c45, inset 0 2px 0 #060504;
}
/* a focused text field: its own frame turns gold, nothing outside it (user 03.11.2026: an outline 2 px outside the field
   was far too big, stood over buttons next to it and was cut off by rows and windows - chat, messenger, login) */
#ui :is(input, textarea):focus-visible { outline: none; }
#ui :is(input[type=text], input:not([type]), input[type=password], input[type=number], textarea):focus {
  box-shadow: inset 0 0 0 1px #e2c27a, inset 0 2px 0 #060504, inset 0 0 4px rgba(242, 196, 90, .28);
}
#ui :is(input, textarea)::placeholder { color: #9a9692; }
#ui .tabs { gap: 2px; }
#ui .tab {
  color: #aaa997; background: linear-gradient(#25221f, #181613);
  box-shadow: inset 0 0 0 1px #47423a;
}
#ui .tab:hover { color: #ecdbb2; background: #312d28; }
#ui .tab.on {
  color: #f0deb4; background: linear-gradient(#4b4930, #322d27);
  box-shadow: inset 0 0 0 1px #a08c58, inset 0 -2px 0 #c4a469;
}
#ui .section, #ui .cw-sec { color: #d6c39a; border-color: #57543c; }
#ui .sep { background: linear-gradient(90deg, #3c3732, #8e7a4b, #3c3732); box-shadow: 0 1px 0 #060504; }
#ui ::-webkit-scrollbar-track { background: #12100d; }
#ui ::-webkit-scrollbar-thumb { background: #8f7c51; }

/* Recessed item sockets, jewel-like meters and a compact command deck. */
#ui .slot {
  background: #100e0c url('../assets/ui/imperial/slot.webp') center / cover;
  box-shadow: inset 0 0 0 1px #4d4d38, inset 1px 1px 0 1px #050403;
}
#ui .slot:hover { box-shadow: inset 0 0 0 1px #c4a46b, inset 0 0 0 2px #3a3b29; }
#ui .bar { background: #090806; box-shadow: 0 0 0 1px #403b35, inset 0 1px 1px #000; }
#ui .bar.hp > i { background: linear-gradient(#dc8b78 0, #a63b31 25%, #82231e 70%, #491814); }
#ui .bar.sp > i { background: linear-gradient(#9fcddd 0, #397eab 25%, #24577f 70%, #142c46); }
#ui .bar.exp > i { background: linear-gradient(#f1d59c, #ab8546 50%, #6f542b); }
/* the potion still healing (game.css .pq): the fill a shade lighter */
#ui .bar.hp > .pq { background: linear-gradient(#f6cabc 0, #dc8a7a 25%, #c06456 70%, #803a30); }
#ui .bar.sp > .pq { background: linear-gradient(#dcf2fa 0, #8ac4e2 25%, #609cc2 70%, #365e80); }
#ui #pframe .portrait, #ui .cw-face, #ui .cc-face, #ui .cs-face {
  background: #1b1815; box-shadow: inset 0 0 0 1px #c0a36a, 0 0 0 1px #060504;
}
#ui #pframe .plv, #ui .cw-lv { background: #2d2924; color: #f3ddab; }
#ui #pframe .pname, #ui #target .tname { color: #f1e4c7; }
#ui #actionbar { background: linear-gradient(#2a2723f5, #14120ffc); box-shadow: var(--panel-shadow); }
#ui #menubar { background: linear-gradient(#2a2723f5, #14120ffc); }
#ui .mbtn-i { background: linear-gradient(#39342f, #201d1a); box-shadow: inset 0 0 0 1px #84704a, inset 0 2px 0 #c8b27a22; }
#ui .mbtn-i:hover, #ui .mbtn-i.on { background: linear-gradient(#4e463c, #2e2923); box-shadow: inset 0 0 0 1px #cfb57a; }
/* the chat's background and frame on a layer of their own: the options window sets how much it covers (--chat-a, ui.js
   showChatLook, user 11.11.2026), the lines stay. #chat is a stacking context (z-index on the PC, transform on a phone). */
#ui #chat.frame.glass { background: none; box-shadow: none; }
#ui #chat::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--chat-a, 1);
  background: linear-gradient(110deg, #14120eed, #171512d9);
  box-shadow: 0 0 0 1px #060504, inset 0 0 0 1px #85734d, inset 0 0 0 2px #0e0c0a, 0 2px 6px #0008; }
#ui #chat:not(.idle)::before { background: linear-gradient(#191613e8, #110f0df5); }
#ui #chat.thin .log { text-shadow: var(--ol), 0 0 2px var(--ink); }
#ui #chat .ctab { color: #b9b5a2; background: #100e0c80; }
#ui #chat .ctab.on { color: #e8d4a7; background: #35302a; box-shadow: inset 0 -1px 0 #b49b63; }
#ui #quest-tracker .qt-head { background: linear-gradient(90deg, #37322d, #1d1a17); color: #dfc798; }
#ui #quest-tracker .qt-entry { border-color: #49433a; }
#ui #wallet { background: #1a1714eb; }
#ui #minimap { box-shadow: var(--panel-shadow); }

/* Equipment and character: dark fitted sockets, readable grouped statistics. */
#ui .equip-panel { background: none; box-shadow: none; }
#ui .equip-panel.cost::after { display: none; }
/* The sockets (user 12.11.2026 "mach die equipment slots schöner"): a brass frame lit from the top left, gold corner caps,
   a sunken well (shadow under the upper edge, dark towards the rim, a warm light in the middle where the item lies). An
   empty socket is darker and shows its piece in warm grey (a flat silhouette made rings and belt shapeless blobs). A worn
   rare piece tints frame, caps and well in its colour (kept faint like the rim of its icon, rarity.css). Hover = the whole
   frame in gold on ::before, under the icon. --fl / --fd frame light / dark, --fc caps, --fg glow of the well. Static. */
#ui .eq-slot {
  --fl: #9e8659; --fd: #4b4030; --fc: #cfb47a; --fg: #0000;
  background: radial-gradient(closest-side, #5a4a3161, #5a4a3100), #0c0b09 url('../assets/ui/imperial/slot.webp') center / cover;
  box-shadow: 0 0 0 1px #050403, inset 1px 1px 0 var(--fl), inset -1px -1px 0 var(--fd), inset 2px 2px 0 #000000b3,
    inset -2px -2px 0 #e3c88f12, inset 0 0 5px 1px var(--fg), inset 0 0 5px 2px #000000a6;
}
#ui .eq-slot::before { content: ''; position: absolute; inset: 0; pointer-events: none; --c: linear-gradient(var(--fc), var(--fc));
  background: var(--c) 0 0 / 2px 1px, var(--c) 0 0 / 1px 2px, var(--c) 100% 0 / 2px 1px, var(--c) 100% 0 / 1px 2px,
    var(--c) 0 100% / 2px 1px, var(--c) 0 100% / 1px 2px, var(--c) 100% 100% / 2px 1px, var(--c) 100% 100% / 1px 2px;
  background-repeat: no-repeat; }
#ui .eq-slot:hover::before { box-shadow: inset 0 0 0 1px #f0d898, inset 0 0 4px 1px #f2c45a38; }
#ui .eq-slot:has(> img.ph) { background-image: radial-gradient(closest-side, #4a3d2a33, #4a3d2a00), url('../assets/ui/imperial/slot.webp'); }
/* the placeholder 12 art px wide (user 13.11.2026: a little smaller, a small gap to the frame): 2 px to each side, so it stays
   inside the frame's line and the well's shadow even where the picture fills its 32 px; smooth, 32 -> 12 is no whole step */
#ui .eq-slot img.ph { width: 12px; image-rendering: auto; filter: grayscale(1) sepia(.6) brightness(1.4); opacity: .26; }
#ui .eq-slot:hover img.ph { opacity: .4; }
#ui .eq-slot:has(> img.rar1) { --fl: #7aa2cc; --fd: #2c4560; --fc: #b4d8ff; --fg: #4fa8ff33; }
#ui .eq-slot:has(> img.rar2) { --fl: #a88bc6; --fd: #45315c; --fc: #e0bdff; --fg: #c46bff38; }
#ui .eq-slot:has(> img.rar3) { --fl: #d9b45a; --fd: #6e5320; --fc: #ffe9a8; --fg: #ffcd4f4d; }
/* The two actions beside the boots sit on raised brass keys. Keep the hit boxes fixed when pressing them. */
#ui #inventory :is(.ds-open, .sb-open) {
  --brass-top: #986d43; --brass-base: #5e3d25;
  border-radius: 3px;
  background: linear-gradient(155deg, var(--brass-top), var(--brass-base) 72%, #48301f);
  box-shadow: 0 1px 1px #080503, inset 0 0 0 1px #9f774a,
    inset 1px 1px 0 1px #dfbd82, inset -1px -1px 0 1px #573b25;
}
@media (hover: hover) {
  #ui #inventory :is(.ds-open, .sb-open):hover { --brass-top: #ac8153; --brass-base: #705033; }
}
#ui #inventory :is(.ds-open, .sb-open):focus-visible { outline: 1px solid #f4d79c; outline-offset: 1px; }
#ui #inventory :is(.ds-open, .sb-open):active {
  --brass-top: #705034; --brass-base: #543822;
  box-shadow: inset 0 0 0 1px #a38156, inset 1px 1px 1px 1px #44301f;
}
#ui #inventory :is(.ds-open, .sb-open):active img { translate: 0 1px; }
html.touch #ui #inventory .inv-pages > :is(.ds-open, .sb-open) img { width: 58%; height: 58%; object-fit: contain; }
/* PC: equipment above the backpack; item coordinates and the five-column grid stay intact.
   Phone: side by side (touch.css) - a phone held sideways is wide, not tall (user 30.10.2026). */
html:not(.touch) #ui #inventory { width: 108px !important; }
html:not(.touch) #ui #inventory > .win-body { display: block; overflow-y: auto; }
html:not(.touch) #ui #inventory .equip-panel { margin-top: 5px; }
html:not(.touch) #ui #inventory .inv-gs { margin: 5px 0; }
#ui #character > .win-body > .tabs .tab { flex: 1 1 auto; padding: 0 3px; }
#ui #quest-tracker .qt-head { padding: 0 3px; }
#ui #character :is(.cw-v, .cw-d, .cw-tile, .cw-sk, .cw-book, .cw-note),
#ui #bonus-board .bb-row { background: #14120ebd; box-shadow: inset 0 0 0 1px #433e37; }
#ui #character .cw-tile { background: linear-gradient(115deg, #302b26b8, #14120ec9); }
#ui #character .cw-sec { background: linear-gradient(90deg, #302b2488, transparent); }
#ui #character .cw-sk:hover, #ui #bonus-board .bb-row:hover { background: #332e26; box-shadow: inset 0 0 0 1px #998453; }
/* Side tabs (gen_side_tab.py, Nutzer 30.10.2026: the old ▸ boxes did not look clean): they come out from under the
   window frame, cut corners like the quick bar, a game icon instead of an arrow; gold while their board is open.
   Left of a window the frame is mirrored, the icon is not. The brass rail of the frame lies just outside the window
   box (0.1-1.6 px, the rest of frame.webp's band is clear): the root of a tab ends 0.5 px out, under the rail - it
   reached 2 px into the window before (Nutzer: "geht leicht über die Kante"). */
#ui .side-tab { position: absolute; top: 42px; width: 21px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
#ui .side-tab::before { content: ''; position: absolute; inset: 0; border: 4px solid transparent; border-image: url('../assets/ui/imperial/side_tab.png') 8 fill / 4px stretch; }
#ui .side-tab.left::before { transform: scaleX(-1); }
#ui .side-tab.on::before { border-image-source: url('../assets/ui/imperial/side_tab_on.png'); }
#ui .side-tab .st-ic { position: absolute; top: 3px; right: 2px; width: 16px; height: 16px; background: center / 16px 16px no-repeat; opacity: .85; filter: saturate(.75); pointer-events: none; }
#ui .side-tab.left .st-ic { right: auto; left: 2px; }
/* blinks while it holds new drops (special inventory), never while the mouse is on it */
#ui .side-tab.new::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 4px solid transparent; border-image: url('../assets/ui/imperial/side_tab_on.png') 8 fill / 4px stretch;
  animation: glow-in 1.2s ease-in-out infinite; }
#ui .side-tab.new.left::after { transform: scaleX(-1); }
#ui .side-tab.new .st-ic { z-index: 1; }
#ui .side-tab:is(:hover, :focus-visible)::after { display: none; }
#ui .side-tab:is(:hover, :focus-visible) { outline: none; }
#ui .side-tab:is(:hover, :focus-visible)::before { filter: brightness(1.35); animation: none; }
#ui .side-tab:is(:hover, :focus-visible, .on) .st-ic { opacity: 1; filter: none; }
#ui .side-tab:active .st-ic { margin-top: 1px; }
#ui :is(#bonus-handle, #combat-handle) { right: -21.5px; }
#ui #combat-handle { top: 66px; }
#ui :is(#special-handle, #supply-handle, .tools-handle, .tal-handle) { left: -21.5px; }
#ui :is(#special-handle, #supply-handle) { translate: var(--pouch-grip-shift, 0px) 0; }
/* in the own inventory under the Sonderinventar, in the one of a watched player alone at the top; the Talismantafel under it */
#ui #inventory .tools-handle, #ui .tal-handle { top: 66px; }
#ui #inventory .tal-handle { top: 90px; }
#ui #supply-handle { top: 114px; }
#ui #supply-handle .st-ic { background-image: url('../assets/icon/item/27003.png'); }
#ui #bonus-handle .st-ic { background-image: url('../assets/icon/item/71085.png'); }
#ui #combat-handle .st-ic { background-image: url('../assets/icon/item/13000.png'); }
#ui #special-handle .st-ic { background-image: url('../assets/ui/klassik/special.webp'); }
#ui .tools-handle .st-ic { background-image: url('../assets/ui/klassik/tools.webp'); }
#ui .tal-handle .st-ic { background-image: url('../assets/ui/klassik/talisman.webp'); }
#ui #combat-board { width: 166px; }
#ui #combat-board .cw-ext { display: flex; flex-direction: column; gap: 0; }
#ui #combat-board .cw-tile { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 7px; padding: 5px 0; background: none; box-shadow: none; border-bottom: 1px solid #b49b622a; }
#ui #combat-board .cw-tile .k { white-space: normal; font-size: 7px; line-height: 9px; }
#ui #combat-board .cw-tile .v { flex: none; }
html.touch #ui #combat-board .cw-tile { padding: 3px 0; }
#ui :is(#bonus-board, #combat-board) .win-close { border: 0; padding: 0; }
/* touch: a finger wide outside the frame, as high; the icon in the middle of the part you see */
html.touch #ui .side-tab { width: calc(var(--finger) + 2px); height: var(--finger); }
html.touch #ui .side-tab .st-ic { --ic: 20px; width: var(--ic); height: var(--ic); background-size: var(--ic) var(--ic); top: calc((var(--finger) - var(--ic)) / 2); right: calc((var(--finger) - var(--ic)) / 2); }
html.touch #ui .side-tab.left .st-ic { right: auto; left: calc((var(--finger) - var(--ic)) / 2); }
html.touch #ui :is(#bonus-handle, #combat-handle) { right: calc(-2.5px - var(--finger)); }
html.touch #ui #combat-handle { top: calc(44px + var(--finger)); }
html.touch #ui :is(#special-handle, #supply-handle, .tools-handle, .tal-handle) { left: calc(-2.5px - var(--finger)); }
html.touch #ui #inventory .tools-handle, html.touch #ui .tal-handle { top: calc(44px + var(--finger)); }
html.touch #ui #inventory .tal-handle { top: calc(46px + 2 * var(--finger)); }
html.touch #ui #supply-handle { top: calc(48px + 3 * var(--finger)); }

/* The individual systems use the same quiet inset surfaces, with their own art retained. */
#ui #auction :is(.ah-cats, .ah-table, .ah-detail, .ah-sellbox),
#ui #ranking :is(.rk-cats, .rk-table, .rk-reset),
#ui #wiki :is(.wk-side, .wk-list, .wk-detail),
#ui #hunt :is(.hunt-box, .hunt-card),
#ui #guild-win :is(.g-card, .guild-box) {
  background-color: #171411; box-shadow: inset 0 0 0 1px #47413a;
}
#ui #auction .ah-cat.picked, #ui #ranking .rk-cat.picked { color: #ead2a0; background: linear-gradient(90deg, #50463a, #2b2722); box-shadow: inset 2px 0 0 #c2a36a; }
#ui #auction .ah-head, #ui #ranking .rk-head { color: #e7d3a7; }
#ui #ranking .rk-head { background: #3a352e; }
#ui #ranking .rk-job { background: #211e19; box-shadow: inset 0 0 0 1px #4d463d; }
#ui #ranking .rk-job.picked { background: #443c32; box-shadow: inset 0 0 0 1px #b19a60; }
#ui #auction .ah-row:hover, #ui #ranking .rk-row:hover { background-color: #413a31; }
#ui :is(#camp, #pets, #guild-win, #isle, #wheel, #daily, #refine, #switcher, #trash, #safebox, #friends-win, #codes, #referral, #titles, #arena, #team, #inspect, #wb-win, #ev-win) > .win-body {
  background: linear-gradient(135deg, #24201c22, transparent 55%);
}
#ui .qt-entry.full { background: #1b18148c; box-shadow: inset 0 0 0 1px #484239; }

/* Entry screens: stronger hierarchy, less flashing chrome, generous form controls. */
#ui .menu .login-card { padding: 5px; }
#ui .menu .login-card .win-body { padding: 9px 8px 8px; }
#ui .menu .login-card .tabs { margin: 2px 2px 0; }
#ui .menu .login-card .tab { height: 20px; line-height: 20px; font-size: 9px; }
#ui .menu .login-card input { height: 19px !important; padding: 2px 5px !important; }
#ui .menu .login-card .field { gap: 3px; margin-bottom: 8px; }
#ui .menu .login-card .btn.wide { height: 22px; font-size: 10px; }
#ui .menu .login-card .field label { color: #ccb98e; }
#ui .menu .frame-run { display: none; }
#ui .menu .feature { background: #1b1814d9; box-shadow: inset 0 0 0 1px #686043; }
#ui .menu .feature img { animation: none; }
#ui .menu .social, #ui .menu .mini { background: linear-gradient(#312d27, #1a1714); box-shadow: inset 0 0 0 1px #6e6243; }
#ui .menu .topbar { background: #171411ed; box-shadow: 0 1px 0 #ab925b, 0 2px 0 #060504; }
#ui .menu .char-card { background: linear-gradient(110deg, #302b26f2, #181612f5); box-shadow: inset 0 0 0 1px #7f704b, 0 2px 5px #0008; }
#ui .menu .char-card.picked { background: linear-gradient(110deg, #49472df5, #2b2621f5); box-shadow: inset 0 0 0 1px #d1b477, 0 2px 7px #000a; animation: none; }
#ui .menu .cs-head { background: linear-gradient(100deg, #433c32, #26221e); }
#ui .menu .cs-off { background: #17140fbb; }
#ui .menu .step-n { background: #453d33; }
#ui .menu .class-card, #ui .menu .empire-card { background-color: #1a1713b8; }
#ui .menu .class-card.sel, #ui .menu .empire-card.sel { background-color: #6253402e; }
/* no box behind the loading HUD: its hard top edge cut the artwork off (user 30.10.2026); the soft shade of loading.css carries it */
#loading .load-tip { color: #d2c8ac; }

/* Touch layout is independent: no desktop positions are changed. 44 CSS px targets
   use both UI scales, so 125% display scaling and phone DPR do not shrink them. */
html.touch #ui { --finger: calc(44px / (var(--px) * var(--wz))); }
html.touch #ui > .win { max-width: calc((100% - 12px) / var(--wz)); }
html.touch #ui .win-title { height: max(22px, var(--finger)); padding-right: calc(var(--finger) + 6px); padding-left: 6px; justify-content: flex-start; }
html.touch #ui .win-close { top: 0; right: 0; width: var(--finger); height: var(--finger); background-size: 12px; }
html.touch #ui .win-close::after { inset: 0; }
html.touch #ui .win .btn:not(.sort-btn), html.touch #ui .win .tab {
  min-height: var(--finger); height: auto; white-space: normal; line-height: 1.15;
  display: inline-flex; align-items: center; justify-content: center;
}
html.touch #ui .win .tabs { flex-wrap: wrap; row-gap: 3px; }
html.touch #ui .win .tab { min-width: var(--finger); padding: 2px 3px; }
html.touch #ui .win .btn.square { min-width: var(--finger); }
html.touch #ui .win .tabs > .btn.sort-btn { width: var(--finger); height: var(--finger); margin: 0; }
html.touch #ui .win .sel { min-height: var(--finger); }
html.touch #ui .win .sel::after { top: 50%; margin-top: -1px; }
html.touch #ui .win .sel-opt { min-height: var(--finger); height: auto; display: flex; align-items: center; }
html.touch #ui #character .cw-st { grid-template-columns: 16px 22px var(--finger) minmax(0, 1fr); min-height: var(--finger); height: auto; }
html.touch #ui #character .plus { width: var(--finger); height: var(--finger); background-position: center; }
html.touch #ui #character .cw-sk { min-height: var(--finger); }
html.touch #ui #inventory > .win-body { column-gap: 6px; }
html.touch #ui #inventory .eq-tabs { flex-wrap: nowrap; }
html.touch #ui #inventory .eq-tabs .tab { font-size: 6px; }
html.touch #ui #system .btn { min-height: var(--finger); }
html.touch #ui #options { width: min(392px, calc((100% - 12px) / var(--wz))); }
html.touch #ui #options > .win-body { padding-block: 3px; gap: 3px; }
html.touch #ui #options .opt-pages { height: calc(22px + 4 * (var(--finger) + 2px)); }
html.touch #ui #options .opt-tabs .tab { height: var(--finger); }
html.touch #ui #options .opt-row { min-height: calc(var(--finger) + 2px); }
html.touch #ui #options .opt-row .btn { min-width: var(--finger); }
html.touch #ui #options :is(.opt-step, .opt-tog, .eq-btns .btn) { min-height: var(--finger); }
html.touch #ui #options .opt-step { width: var(--finger); min-width: var(--finger); }
html.touch #ui #options .opt-tog { min-width: calc(var(--finger) * 1.4); }
/* "Vollbild" in the title bar (ui/options.js): right of the title, clear of the ? and the X */
html.touch #ui #options .win-title .opt-fs { margin: 0 calc(var(--finger) - 10px) 0 auto; padding: 0 6px; gap: 4px; cursor: pointer; text-shadow: none; letter-spacing: 0; font-weight: 400; }
/* "Profil für andere sichtbar" the same way in the title bar of the character window (ui/character.js ptog) */
html.touch #ui #character .win-title .cw-ptog { min-height: var(--finger); margin: 0 calc(var(--finger) - 10px) 0 auto; padding: 0 6px; gap: 4px; cursor: pointer; text-shadow: none; letter-spacing: 0; font-weight: 400; }
html.touch #ui .win .eq-btns { grid-auto-flow: column; }
html.touch #ui .win :is(.ah-cat, .rk-cat, .rk-sub) { min-height: var(--finger); height: auto; }
html.touch #ui .menu .login-card input { height: max(22px, calc(44px / var(--px))) !important; }
html.touch #ui .menu .login-card :is(.tab, .btn.wide) { min-height: calc(44px / var(--px)); }
@container menu (max-height: 300px) {
  #ui .menu .login-card .win-body { padding: 5px 6px; }
  #ui .menu .login-card .field { margin-bottom: 5px; }
  #ui .menu .login-card .tab { height: 16px; line-height: 16px; }
  #ui .menu .login-card .botcheck { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  #ui .btn.shine::after, #ui .cs-bar::after { animation: none; display: none; }
}

/* Information is typeset on the window material, not inside a stack of dark boxes.
   Insets are reserved for interactive sockets, fields and selected controls. */
#ui #character { width: 190px !important; height: 290px; }
#ui #character > .win-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
#ui #character > .win-body > .tabs { flex: none; margin-bottom: 6px; }
#ui #character .cw-content { flex: 1; min-height: 0; overflow-y: auto; padding-right: 3px; }
#ui #character[data-tab=status] .cw-content { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 10px; }
#ui #character[data-tab=status] .cw-details { border-left: 1px solid #b49b6233; padding-left: 10px; }
html:not(.touch) #ui #character[data-tab=status] .cw-content { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
html:not(.touch) #ui #character[data-tab=status] .cw-summary { display: block; flex: none; }
html:not(.touch) #ui #character[data-tab=status] .cw-summary .cw-head { margin: 0 0 5px; }
html:not(.touch) #ui #character[data-tab=status] .cw-id { gap: 0; }
html:not(.touch) #ui #character[data-tab=status] .cw-name { font-size: 11px; line-height: 12px; }
html:not(.touch) #ui #character[data-tab=status] .cw-summary .cw-bars { margin: 0; justify-content: center; }
html:not(.touch) #ui #character[data-tab=status] .cw-summary .gs-box { grid-column: 1 / -1; margin-top: 2px; padding-top: 3px; }
html:not(.touch) #ui #character[data-tab=status] .cw-content > .cw-prow { order: 3; flex: none; margin-top: auto; }
html:not(.touch) #ui #character[data-tab=status] .cw-content > .eq-btns { order: 4; flex: none; }
/* the switch "Profil für andere sichtbar" (ui/character.js profRow): one framed row above the three buttons */
#ui #character .cw-prow { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 16px; padding: 0 2px 0 5px;
  background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #character .cw-pk { min-width: 0; color: #c7b991; font-size: 8px; white-space: nowrap; }
#ui #character .cw-prow .btn.opt-tog { height: 12px; }
html:not(.touch) #ui #character[data-tab=status] .cw-details { display: block; border-left: 0; padding-left: 0; flex: none; }
html:not(.touch) #ui #character[data-tab=status] .cw-ext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
html:not(.touch) #ui #character[data-tab=status] .cw-st { height: 14px; }
html:not(.touch) #ui #character[data-tab=status] .cw-sec { margin: 3px 0; padding: 2px 0; }
html:not(.touch) #ui #character[data-tab=status] .cw-tile { min-height: 12px; padding: 1px 0; }
#ui #character .win-body { padding: 8px; }
#ui #character :is(.cw-v, .cw-d, .cw-tile, .cw-sk, .cw-book, .cw-note, .gs-box),
#ui #bonus-board .bb-row, #ui #inventory .inv-gs {
  background: none; box-shadow: none;
}
#ui #character .cw-head { gap: 7px; margin: 3px 0 8px; }
#ui #character .cw-name { font-size: 12px; line-height: 14px; }
#ui #character .cw-id { gap: 2px; }
#ui #character .cw-sec { background: none; box-shadow: none; padding: 3px 0; margin: 7px 0 4px; border-bottom: 1px solid #8b75403d; }
html:not(.touch) #ui #character[data-tab=emotes] .cw-sec { padding: 1px 0; margin: 3px 0; }
#ui #character .cw-st { height: 16px; border-bottom: 1px solid #b49b6215; }
#ui #character .cw-k { color: #c7b991; }
#ui #character .cw-v { font-size: 9px; color: #f1e5c8; }
/* raised / lowered by gear and effects (character.js) - the line above hid it */
#ui #character .cw-v.green { color: var(--green); }
#ui #character .cw-v.red { color: #ff7a6a; }
#ui #character .cw-d { padding: 0; }
#ui #character .cw-ext { display: flex; flex-direction: column; gap: 0; }
#ui #character .cw-tile { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; min-height: 14px; border-bottom: 1px solid #b49b6215; }
#ui #character .cw-tile .k { font-size: 7px; line-height: 9px; white-space: normal; }
#ui #character .cw-tile .v { font-size: 8px; line-height: 9px; flex: none; }
#ui #character .gs-box { padding: 5px 0 3px; margin-top: 7px; border-top: 1px solid #8b75403d; }
#ui #character .gs-bar { height: 2px; box-shadow: none; }
#ui #character .gs-legend { margin-top: 4px; }
#ui #character .cw-sk { padding: 4px 0; border-bottom: 1px solid #b49b622a; }
#ui #character .cw-sk:hover, #ui #bonus-board .bb-row:hover { background: #e5c68706; box-shadow: none; }
#ui #bonus-board .bb-row { padding: 3px 0; border-bottom: 1px solid #b49b621a; }
#ui #bonus-board .cw-sec { padding: 4px 0; background: none; box-shadow: none; }
#ui #character .cw-book, #ui #character .cw-note { padding: 4px 0; }
#ui #quest-tracker .qt-entry:last-child { border-bottom: 0; }
#ui #quest-tracker .qt-head { background: none; box-shadow: none; padding-bottom: 2px; }
#ui #wiki .wk-cats-t { padding-left: 3px; }
#ui #auction :is(.ah-cats, .ah-table, .ah-detail, .ah-sellbox) { background: none; box-shadow: none; }
html:not(.touch) #ui #trash { width: 202px !important; }

/* Fortune: the crafted wheel is the focal point; rewards and preferences form a
   separate, scrollable rail. No controls below the fold on landscape phones. */
/* Täglich (ui/dailyhub.js): the wheel, the login bonus and Vote4Buff act as one window with three tabs - one size for all
   three, a change of tab never moves an edge (Nutzer 08.11.2026: "fühlt sich kacke an"). The contents fill it: the lists
   grow, the buttons stay at the bottom. Phones: the full height (below). */
#ui :is(#wheel, #daily, #vote4buff) { width: 420px !important; }
html:not(.touch) #ui :is(#wheel, #daily, #vote4buff) { height: 344px; max-width: calc(100% - 8px); }
#ui :is(#wheel, #daily, #vote4buff) > .win-body { flex: 1 1 auto; }
#ui #wheel > .win-body { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 10px; padding: 9px; }
#ui #wheel .wh-main { min-width: 0; }
html:not(.touch) #ui #wheel .wh-main { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
#ui #wheel .wh-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid #b49b6233; padding-left: 9px; }
#ui #wheel .wh-heading { color: var(--gold); font-size: 9px; padding: 2px 0 6px; border-bottom: 1px solid #b49b6244;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 6px; }
/* the levels of the wheel shown (Ticket #136: one wheel per range, ui/fortune.js setFields) */
#ui #wheel .wh-tier { color: var(--dim); font-size: 7px; white-space: nowrap; }
#ui #wheel .wh-rewards { overflow-y: auto; min-height: 0; height: 136px; flex: 1 1 auto; padding-right: 3px; }
#ui #wheel .wh-reward { display: flex; align-items: center; gap: 5px; padding: 4px 0; border-bottom: 1px solid #b49b621f; }
#ui #wheel .wh-reward .cd-ic { flex: none; background: none; box-shadow: none; }
#ui #wheel .wh-reward-text { font-size: 7px; line-height: 9px; overflow-wrap: anywhere; color: var(--dim); }
#ui #wheel .wh-reward.special .wh-reward-text { color: #d6bc85; }
#ui #wheel .wh-status { font-size: 7px; line-height: 9px; margin: 7px 2px 0; min-height: 18px; }
#ui #wheel .wh-opts { flex: none; border-top: 1px solid #b49b6244; margin-top: 7px; padding-top: 5px; gap: 4px; }
#ui #wheel .wh-opt { align-items: flex-start; font-size: 6px; line-height: 8px; }
#ui :is(#wheel, #daily) .cd-result { background: none; box-shadow: none; border-top: 1px solid #b49b6244; padding: 6px 0 0; }
/* login bonus (Nutzer 31.10.2026: neu gestaltet) - head with a stud per day, framed day cards, items in sunken slots */
#ui #daily > .win-body { display: flex; flex-direction: column; padding: 9px; overflow: hidden; }
#ui #daily :is(.dl-head, .dl-box, .dl-btns, .dl-hide) { flex: none; }
#ui #daily .dl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 7px; line-height: 11px;
  border-bottom: 1px solid #b49b6244; }
#ui #daily .dl-title { flex: 1; min-width: 0; }
#ui #daily .dl-title > .gold { font-size: 10px; margin-bottom: 2px; text-shadow: 0 0 6px #f2c45a40; }
#ui #daily .dl-track { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 120px; }
#ui #daily .dl-track > i { width: 7px; height: 7px; transform: rotate(45deg); background: #1a1511;
  box-shadow: inset 0 0 0 1px #5c4c33; }
#ui #daily .dl-track > i.done { background: linear-gradient(135deg, #ffe39a, #c8952f); box-shadow: inset 0 0 0 1px #6e4e18, 0 0 4px #f2c45a66; }
#ui #daily .dl-track > i.today { background: #3a2c16; box-shadow: inset 0 0 0 1px #ffd24a; }
#ui #daily .dl-track > i.today::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: 0 0 6px #ffd24a; animation: glow-in 1.2s ease-in-out infinite; }
#ui #daily .dl-track > i.next { box-shadow: inset 0 0 0 1px #b49b62; }
#ui #daily .dl-grid { flex: 1 1 auto; grid-auto-rows: max-content; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; min-height: 40px; overflow-y: auto; overflow-x: hidden;
  align-content: start; padding: 2px; }
#ui #daily .dl-card { padding: 0; background: linear-gradient(#1d1712, #110d0a); box-shadow: inset 0 0 0 1px #4a3d2b, 0 1px 0 #00000080;
  border: 0; overflow: hidden; }
#ui #daily .dl-day { position: relative; min-height: 15px; margin: 0; padding: 2px 5px; gap: 4px; justify-content: flex-start;
  background: linear-gradient(#2c2219, #1b150f); box-shadow: inset 0 -1px 0 #4a3d2b; }
#ui #daily .dl-num { font-size: 9px; line-height: 11px; color: #c9b48a; }
#ui #daily .dl-tag { padding: 0 4px; font-size: 7px; line-height: 9px; color: #1a1206; background: linear-gradient(#ffe39a, #d1a043);
  box-shadow: inset 0 0 0 1px #7a561c; }
#ui #daily .dl-card.next .dl-tag { color: #e8d6ae; background: #3a2e20; box-shadow: inset 0 0 0 1px #8a7450; }
#ui #daily .dl-tick { margin-left: auto; width: 11px; height: 11px; background-size: 11px 11px; }
#ui #daily .dl-rows { display: flex; flex-direction: column; gap: 2px; padding: 4px 5px 5px; }
#ui #daily .dl-card .cd-row { gap: 5px; min-height: 20px; font-size: 8px; line-height: 9px; color: #e6d9bd; }
#ui #daily .dl-card .cd-ic { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  background: #090806 url('../assets/ui/imperial/slot.webp') center / cover; box-shadow: inset 0 0 0 1px #776443, inset 0 0 0 2px #080705; }
#ui #daily .dl-card .cd-ic img { width: 16px; height: 16px; }
/* collected: muted, green tick */
#ui #daily .dl-card.done { background: #0f0c09; box-shadow: inset 0 0 0 1px #2f271c; }
#ui #daily .dl-card.done .dl-day { background: #17120e; }
#ui #daily .dl-card.done .dl-num { color: var(--green); }
#ui #daily .dl-card.done .cd-row { color: #8f8470; }
#ui #daily .dl-card.done .cd-ic img { opacity: .55; filter: grayscale(.4); }
/* today: gold frame with a light running along it; tomorrow: brass frame */
#ui #daily .dl-card.today { background: linear-gradient(#3a2b17, #17110b); box-shadow: inset 0 0 0 1px #c99a32, 0 0 5px #f2c45a44; }
#ui #daily .dl-card.today::before { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px #ffd24a; animation: ring-pulse 1.6s ease-in-out infinite; }
#ui #daily .dl-card.today .dl-day { background: linear-gradient(#5a4219, #2e2210); }
#ui #daily .dl-card.today .dl-num { color: var(--gold); }
#ui #daily .dl-card.today .cd-row { color: #fff1cf; }
#ui #daily .dl-card.today::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, #fff4c826 50%, transparent 80%); animation: dl-shine 3s ease-in-out infinite; }
@keyframes dl-shine { 0%, 40% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
#ui #daily .dl-card.next { box-shadow: inset 0 0 0 1px #9a8257; }
#ui #daily .dl-card.next .dl-num { color: var(--gold); }
#ui #daily .dl-card.last { grid-column: 1 / -1; background: linear-gradient(90deg, #2a1f12, #15100b 60%); box-shadow: inset 0 0 0 1px #8a6d3a; }
#ui #daily .dl-card.last .dl-day { background: linear-gradient(90deg, #4a3518, #1b150f 70%); }
#ui #daily .dl-card.last .dl-rows { flex-direction: row; flex-wrap: wrap; gap: 3px 14px; }
#ui #daily .dl-card.last .cd-row { flex: 0 1 auto; }
#ui #daily .dl-card.last.done { background: #0f0c09; box-shadow: inset 0 0 0 1px #2f271c; }
#ui #daily .dl-card.last.done .dl-day { background: #17120e; }
#ui #daily .dl-card.last.today { background: linear-gradient(90deg, #3a2b17, #17110b); box-shadow: inset 0 0 0 1px #ffd24a, 0 0 8px #f2c45a55; }
#ui #daily .dl-card.last.today .dl-day { background: linear-gradient(90deg, #5a4219, #2e2210); }
#ui #daily .dl-card.pop { animation: dl-pop .5s ease-out 1; }
@keyframes dl-pop { 0% { transform: scale(1.06); filter: brightness(1.8); } 100% { transform: none; filter: none; } }
#ui #daily .dl-box { margin-top: 8px; max-height: 64px; overflow-y: auto; }
#ui #daily .dl-btns { width: 100%; margin: 8px 0 6px; }
#ui #daily .dl-btns .btn { min-height: 20px; }
#ui #daily .dl-hide { color: var(--dim); }

html.touch #ui #character { width: min(284px, calc((100% - 60px / var(--px)) / var(--wz))) !important; height: calc((100% - 8px) / var(--wz)); }
html.touch #ui #character[data-tab=status] > .win-body { display: flex; flex-direction: column; flex: 1; overflow: hidden; padding: 6px; }
html.touch #ui #character[data-tab=status] > .win-body > .tabs { flex: none; margin-bottom: 5px; }
html.touch #ui #character[data-tab=status] .cw-content { position: relative; display: grid; grid-template-columns: 1fr 1.07fr; grid-template-rows: 10px minmax(0,1fr); gap: 2px 7px; min-height: 0; flex: 1; overflow: hidden; }
html.touch #ui #character[data-tab=status] .cw-summary { grid-column: 1; grid-row: 1 / 3; padding: 0 0 25px; overflow: visible; }
html.touch #ui #character[data-tab=status] .cw-content > .eq-btns { position: absolute; bottom: 0; left: 0; width: calc((100% - 7px) / 2.07); margin: 0; }
html.touch #ui #character[data-tab=status] .cw-content > .eq-btns .btn { min-width: 0; width: 100%; font-size: 6px; }
html.touch #ui #character[data-tab=status] .cw-details { display: contents; }
html.touch #ui #character[data-tab=status] .cw-details > .cw-sec:first-child { grid-column: 2; grid-row: 1; }
html.touch #ui #character[data-tab=status] .cw-stats { grid-column: 2; grid-row: 2; align-self: start; }
html.touch #ui #character[data-tab=status] .cw-details > .cw-sec:nth-child(3) { grid-column: 3; grid-row: 1; }
html.touch #ui #character[data-tab=status] .cw-ext { grid-column: 3; grid-row: 2; align-self: start; }
html.touch #ui #character[data-tab=status] .cw-sec { padding: 0 0 2px; margin: 0; font-size: 7px; }
html.touch #ui #character[data-tab=status] .cw-pts { font-size: 6px; }
html.touch #ui #character[data-tab=status] .cw-head { gap: 4px; margin: 0; }
html.touch #ui #character[data-tab=status] .cw-face, html.touch #ui #character[data-tab=status] .cw-face img { width: 28px; height: 28px; }
html.touch #ui #character[data-tab=status] .cw-name { font-size: 10px; line-height: 10px; }
html.touch #ui #character[data-tab=status] .cw-id { font-size: 6px; line-height: 7px; gap: 0; }
html.touch #ui #character[data-tab=status] .cw-bars { gap: 1px; margin-bottom: 1px; }
html.touch #ui #character[data-tab=status] .cw-bar .bar { height: 7px; }
html.touch #ui #character[data-tab=status] .cw-bar .bt { font-size: 5px; line-height: 7px; }
@media (max-width: 700px) {
  html.touch #ui #character[data-tab=status] .cw-bar .bar.exp .bt { font-size: 4.5px; white-space: nowrap; }
}
html.touch #ui #character[data-tab=status] .gs-box { padding: 2px 0 0; margin: 0; }
html.touch #ui #character[data-tab=status] .gs-val { font-size: 10px; line-height: 12px; }
html.touch #ui #character[data-tab=status] .gs-legend { margin-top: 2px; font-size: 5px; }
html.touch #ui #character[data-tab=status] .cw-tile { min-height: 12px; padding: 1px 0; gap: 3px; }
html.touch #ui #character[data-tab=status] .cw-tile .k { font-size: 6px; line-height: 8px; }
html.touch #ui #character[data-tab=status] .cw-tile .v { font-size: 7px; line-height: 8px; }
html.touch #ui #character .cw-details > .cw-sec:first-child { margin-top: 0; }
html.touch #ui #character .cw-st { grid-template-columns: 14px 18px var(--finger) minmax(0,1fr); gap: 2px; }
html.touch #ui #character .cw-d { flex-direction: column; justify-content: center; align-items: flex-end; height: auto; gap: 1px; line-height: 8px; }
html.touch #ui #character .cw-d > span:first-child { font-size: 6px; }
html.touch #ui :is(#wheel, #daily, #vote4buff) { width: min(420px, calc((100% - 12px) / var(--wz))) !important; height: calc((100% - 8px) / var(--wz)); }
html.touch #ui #wheel > .win-body { grid-template-columns: minmax(0, 148px) minmax(0, 1fr); gap: 8px; padding: 5px 7px; overflow: hidden; flex: 1; }
html.touch #ui #wheel .wh-stage { height: 112px; }
html.touch #ui #wheel .wh-cv { width: 112px !important; height: 112px !important; }
html.touch #ui #wheel .wh-main { min-height: 0; overflow-y: auto; }
html.touch #ui #wheel .wh-status { margin: 3px 0; font-size: 6px; line-height: 7px; }
html.touch #ui #wheel .wh-heading { padding: 1px 0 4px; }
html.touch #ui #wheel .wh-opts { margin-top: 4px; padding-top: 3px; gap: 1px; }
html.touch #ui #wheel .wh-opt { min-height: var(--finger); align-items: center; }
html.touch #ui #daily .dl-hide { min-height: var(--finger); }
html.touch #ui #daily .dl-btns .btn { min-height: var(--finger); }
html.touch #ui .win ::-webkit-scrollbar { width: 2px; }
html.touch #ui #quest-tracker .qt-body { overflow-y: auto; }
html.touch #ui #titles .tw-cat { flex: 1 1 auto; min-width: max-content; padding: 3px; }
html.touch #ui #titles .tw-cn { white-space: normal; }

/* Shared information rows across the remaining systems. Selected rows retain a
   restrained gold marker; inventory sockets and text fields retain their depth. */
#ui #pets :is(.pet-dex, .pet-bonus),
#ui #guild-win :is(.gd-notice, .gd-rk-ed),
#ui #isle :is(.is-row, .is-job, .is-trophy, .is-branch, .is-tal, .is-bonus),
#ui #refine .ref-card, #ui .tinfo .ti-kv,
#ui #referral :is(.rf-note, .rf-code, .rf-tier, .rf-grow),
#ui #arena :is(.ar-meta, .ar-card),
#ui #team :is(.team-box, .team-sel),
#ui #auction :is(.ah-cols, .ah-list, .ah-bar, .ah-new, .ah-own, .ah-collect, .ah-hist, .ah-sum, .ah-gold),
#ui #camp-chest :is(.cc-luck, .cc-lager) { background: none; box-shadow: none; }
#ui #pets .pet-bonus,
#ui #isle :is(.is-row, .is-job, .is-trophy, .is-tal),
#ui #refine .ref-card,
#ui #referral :is(.rf-tier, .rf-grow),
#ui #arena .ar-card,
#ui #auction :is(.ah-own, .ah-collect, .ah-hist) { border-bottom: 1px solid #b49b622a; }
#ui #arena .ar-card.active, #ui #isle .is-trophy.on { background: #ae905310; box-shadow: inset 2px 0 0 #b49b62; }
#ui #referral .rf-code { border-bottom: 1px solid #b49b6244; padding: 7px 4px; }
#ui #referral .rf-tier.ready { box-shadow: inset 2px 0 0 #b49b62; }
#ui .dialog-opts .opt { background: none; box-shadow: none; border-bottom: 1px solid #b49b622a; }
#ui .dialog-opts .opt:hover { background: #ae905315; color: #ecd3a5; }

/* Entry screens do not use --wz. Their touch targets therefore use --px alone. */
html.touch #ui .menu .btn, html.touch #ui .menu .sel { min-height: calc(44px / var(--px)); }
html.touch #ui .menu .topbar { height: calc(48px / var(--px)); }
html.touch #ui .menu .topbar-right { gap: 5px; }
html.touch #ui .menu .topbar-right .btn { margin-left: 0; }
html.touch #ui .menu.select .char-info { display: none; }
html.touch #ui .menu.select .compact-play { display: grid; width: min(420px, calc(100% - 20px)); gap: 10px; }
html.touch #ui .menu.select .compact-play .btn { min-width: 0; height: auto; padding: 3px 10px; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
html.touch #ui .menu.select .stage { right: 0; top: calc(52px / var(--px)); bottom: 116px; }
html.touch #ui .menu.select .char-row-wrap { bottom: 8px; gap: 6px; }
html.touch #ui .menu.select .char-row { width: min(488px, calc(100% - 20px)); grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.touch #ui .menu.select .char-card { min-width: 0; }
html.touch #ui .menu.create .create-panel, html.touch #ui .menu.create .class-info { max-height: calc(100% - 64px / var(--px)); overflow-y: auto; }
@container menu (max-height: 520px) {
  #ui .login-col { flex-direction: row; align-items: center; gap: 18px; width: auto; left: max(27%, 216px); }
  #ui.compact .login-col { left: 50%; }
  #ui .login-col .brand { margin: 0; }
  #ui .login-col .logo-art { width: min(176px, 58cqh); }
  #ui .login-main { width: 210px; max-height: calc(100cqh - 36px); overflow-y: auto; padding: 3px; }
}
html.touch #ui .menu :is(.btn, .sel, .char-card .cc-text) { font-size: max(8px, calc(13px / var(--px))); }
html.touch #ui .menu .login-card .field label { font-size: max(7px, calc(12px / var(--px))); }
html.touch #ui .menu .login-card input { font-size: max(8px, calc(14px / var(--px))) !important; }
html.touch #ui .menu .login-card :is(.tab, .btn.wide) { font-size: max(9px, calc(14px / var(--px))); }
html.touch #ui .menu.select .cc-name { font-size: max(9px, calc(13px / var(--px))); }
html.touch #ui .menu .topbar-right { font-size: max(8px, calc(12px / var(--px))); }
/* the language list of the login and the character selection: rows for fingers, as many on the screen as fit (seven languages) */
html.touch #ui .menu .lang-sel .sel-list { max-height: calc((100vh - 56px) / var(--px)); }
html.touch #ui .menu .lang-sel .sel-opt { min-height: var(--finger); height: auto; display: flex; align-items: center; }

/* Map desk: an unobstructed map with a separate key, not a stack of boxes. */
#ui #atlas > .win-body { display: grid; grid-template-columns: auto 100px; gap: 7px 10px; padding: 8px; align-items: start; }
#ui #atlas .at-head { grid-column: 1 / -1; background: none; box-shadow: none; height: auto; min-height: 11px; margin: 0; padding: 0 0 4px; border-bottom: 1px solid #b49b6233; white-space: normal; }
#ui #atlas .at-map { margin: 0; box-shadow: 0 0 0 1px #78613e, 0 0 0 2px #080706; }
#ui #atlas .at-details { min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
#ui #atlas .at-legend { margin: 0; gap: 9px; }
#ui #atlas .at-lrow { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 7px; line-height: 9px; }
#ui #atlas .at-chip { white-space: normal; gap: 4px; }
#ui #atlas .at-foot { margin-top: auto; border-top: 1px solid #b49b6233; padding-top: 7px; white-space: normal; flex-direction: column; gap: 4px; }
#ui #atlas .at-foot .keyhelp { white-space: normal; line-height: 9px; }
#ui #atlas .at-z { height: 11px; line-height: 11px; min-width: 11px; background: #191510c9; box-shadow: 0 0 0 1px #0c0907; }
#ui #atlas .at-z.cur { box-shadow: 0 0 0 1px #dfc48b; }
#ui #atlas .at-z.v-best { background: #d6b77d; color: #22180e; }
#ui #minimap .mhead { background: none; color: #ecd5a8; border-bottom: 1px solid #ad905b44; }
#ui #minimap .mm { box-shadow: inset 0 0 0 1px #76613e; }
#ui #minimap .mbtn { background: none; box-shadow: none; color: #e0c38a; }
#ui :is(#travel-btn, #isle-trip) { color: #e1c48c; background: linear-gradient(#36291c, #1b1610); box-shadow: inset 0 0 0 1px #77613f, 0 0 0 1px #080706; }
#ui :is(#travel-btn, #isle-trip):hover { color: #fff0c9; background: linear-gradient(#5b4730, #302316); box-shadow: inset 0 0 0 1px #d2b071, 0 0 0 1px #080706; }
#ui :is(#travel-btn, #isle-trip):hover i { filter: brightness(1.25); }
#ui :is(#travel-btn, #isle-trip):active { background: #20160e; box-shadow: inset 0 0 0 1px #ad8b50; }

/* Quest journal and tracker: category labels, open text, understated progress. */
#ui .qt-kind { color: #cfb789; background: none; padding: 0; line-height: 9px; vertical-align: 0; }
#ui .qt-kind.k-skill { color: #95b9d4; }
#ui .qt-kind.k-bio { color: #a2b98b; }
#ui .qt-kind.k-camp { color: #d1a779; }
#ui .qt-kind.k-daily { color: #c2a6d2; }
#ui .qt-kind.k-weekly { color: #d5a18b; }
#ui #quest-tracker { padding: 5px 6px; }
#ui #quest-tracker .qt-head { height: 12px; border-bottom: 1px solid #b49b6233; margin-bottom: 3px; }
#ui #quest-tracker .qt-entry { padding: 3px 0 6px; }
#ui .qt-title { line-height: 11px; }
#ui .qt-bar { background: #b49b621b; box-shadow: none; margin-top: 4px; }
#ui .qt-bar > i { background: #bca16b; }
#ui .qt-go { color: #ead4a4; }
#ui .qt-log { max-height: 244px; padding-right: 5px; }
#ui .qt-group { padding: 7px 0 5px; margin: 0 0 5px; border-color: #b49b6244; }
#ui .qt-entry.full { padding: 4px 0 8px; margin-bottom: 5px; }
#ui .qt-desc, #ui .qt-hint, #ui .qt-reward { font-size: 7px; line-height: 10px; margin-top: 3px; }
#ui .qt-hint { color: #a6b9c4; }
#ui .qt-pending { background: none; box-shadow: none; border-bottom: 1px solid #b49b6244; padding: 5px 0; }
#ui .qt-pinbtn { box-shadow: none; color: #c5b18b; border-bottom: 1px solid #80704c; padding: 2px 3px; }

/* Calendar: ruled days and an open agenda; only the selected day is filled. */
#ui #ev-win { width: 404px !important; }
#ui #ev-win > .win-body { column-gap: 12px; padding: 9px; }
#ui #ev-win .ec-wd { background: none; box-shadow: none; border-bottom: 1px solid #b49b6244; }
#ui #ev-win .ec-cell { background: none; box-shadow: inset 0 -1px 0 #b49b6226; padding: 3px; }
#ui #ev-win .ec-cell.has { background: #b49b6206; box-shadow: inset 0 -1px 0 #b49b6255; }
#ui #ev-win .ec-cell.today { background: #b49b620c; box-shadow: inset 0 -2px 0 #b49b62; }
#ui #ev-win .ec-cell.chosen { background: #b49b6226; box-shadow: inset 0 0 0 1px #b49b62; }
#ui #ev-win .ec-cell:hover { background: #b49b6220; }
#ui #ev-win .ec-cell.past { opacity: .55; }
#ui #ev-win .ec-side { border-left: 1px solid #b49b6233; padding-left: 9px; }
#ui #ev-win :is(.ec-status, .ec-card, .ec-ucard, .ec-tag, .ec-goto, .ec-ic, .ec-uic) { background: none; box-shadow: none; }
#ui #ev-win :is(.ec-status, .ec-card, .ec-ucard) { padding: 5px 0 7px; border-bottom: 1px solid #b49b622a; }
#ui #ev-win .ec-status { margin-bottom: 4px; }
#ui #ev-win :is(.ec-card.on, .ec-status.live) { border-bottom-color: #ac8e56; }
#ui #ev-win .ec-dhead { padding: 4px 0; }
#ui #ev-win .ec-dot.live, #ui #ev-box .ev-dot { animation: none; background: #d6bb80; box-shadow: none; }
#ui #ev-box.live { box-shadow: var(--panel-shadow); }
#ui #ev-box :is(.ev-ic, .ev-ci) { background: none; box-shadow: none; }
#ui #ev-box .ev-n, #ui #ev-win :is(.ec-sh.live, .ec-rem, .ec-val, .ec-st.on) { color: #dec28a; }
#ui #ev-win :is(.ec-eff, .ec-seff) { color: #b8b3a3; }

/* Skill deck: a single metal tray with distinct action sockets and quiet keys. */
html:not(.touch) #ui #actionbar { padding: 6px 8px; gap: 5px; background: linear-gradient(#29241eef, #110e0bf7), var(--metal); box-shadow: 0 0 0 1px #080706, inset 0 1px 0 #a78b55, inset 0 -1px 0 #58442c, 0 3px 8px #0009; }
html:not(.touch) #ui #quick { gap: 4px; }
html:not(.touch) #ui #quick .gap { width: 6px; }
/* Quick slots in the shape of the skill icons (gen_quick_slot.py, Nutzer 30.10.2026 "wie in Metin"): one medallion
   filling the whole slot - the face (::before) under an item or emote, the rim of the skill icons (::after) over every
   icon, so potions, emotes, empty slots and skills end in the same octagon. Only one frame (Nutzer 30.10.2026: the
   extra octagonal hollow around a smaller medallion looked like two frames). Scaled smoothly: 32-px sources at
   20/22 art px would get uneven rim lines with pixelated scaling. */
#ui #quick .slot { --slot: 20px; background: none; box-shadow: none; }
#ui #quick .slot::before, #ui #quick .slot::after { content: ''; position: absolute; inset: 0; background: center / 100% 100% no-repeat; pointer-events: none; image-rendering: auto; }
#ui #quick .slot::before { background-image: url('../assets/ui/imperial/qs_core.png'); }
#ui #quick .slot::after { background-image: url('../assets/ui/imperial/qs_ring.png'); z-index: 1; }
#ui #quick .slot > :is(img.ic, .cd, .cdfx, .act) { left: 0; top: 0; width: 100%; height: 100%; image-rendering: auto; }
#ui #quick .slot > .cd { clip-path: polygon(12.5% 0, 87.5% 0, 100% 12.5%, 100% 87.5%, 87.5% 100%, 12.5% 100%, 0 87.5%, 0 12.5%); }
html:not(.touch) #ui #quick .slot:hover::after { filter: brightness(1.45) sepia(.35); }
#ui #quick .slot .key { color: #c4ac7c; opacity: .85; }
#ui #auto-btn { background: linear-gradient(#382e23, #1c1610); color: #c4b69a; box-shadow: inset 0 0 0 1px #77613f; }
#ui #auto-btn.on { color: #f0d6a0; background: linear-gradient(#6c3023, #36170f); box-shadow: inset 0 0 0 1px #b39358; }
#ui #expbar { box-shadow: inset 0 0 0 1px #5d4b31; }
#ui #expbar .xc > i { background: linear-gradient(#e8d3a6, #ba9557 45%, #735328); }
#ui #expbar .xc.full > i { background: linear-gradient(#f1deb5, #c4a168 45%, #8d6938); }
#ui #expbar .xc.cur > i::before { animation: none; display: none; }

html.touch #ui #atlas > .win-body { padding: 5px 6px; gap: 5px 8px; }
html.touch #ui #atlas .at-details { max-height: calc((100vh / var(--px) - 58px) / var(--wz)); overflow-y: auto; padding-right: 3px; }
html.touch #ui #atlas .at-lrow { gap: 3px; font-size: 6px; line-height: 8px; }
html.touch #ui #character[data-tab=quests] > .win-body { display: flex; flex-direction: column; overflow: hidden; }
html.touch #ui #character[data-tab=quests] .cw-content { min-height: 0; display: flex; flex-direction: column; }
html.touch #ui #character[data-tab=quests] .qt-log { min-height: 0; max-height: none; }
html.touch #ui .qt-pinbtn { min-height: var(--finger); min-width: var(--finger); display: inline-flex; align-items: center; justify-content: center; }
html.touch #ui #ev-win { width: min(464px, calc((100% - 12px) / var(--wz))) !important; }
html.touch #ui #ev-win > .win-body { grid-template-columns: minmax(160px, 1.25fr) minmax(0, 1fr); column-gap: 8px; }
html.touch #ui #ev-win .ec-cal { width: auto; min-width: 0; min-height: 0; max-height: 100%; overflow-y: auto; overflow-x: hidden; }
html.touch #ui #ev-win .ec-wds, html.touch #ui #ev-win .ec-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
html.touch #ui #ev-win :is(.ec-sl1, .ec-cl1, .ec-sh) { flex-wrap: wrap; }
html.touch #ui #ev-win :is(.ec-cname, .ec-dtitle, .ec-ctime) { white-space: normal; overflow: visible; }
html.touch #ui #ev-win .ec-cell { min-height: var(--finger); }
html.touch #ui #ev-win .ec-grid { grid-template-rows: repeat(4, 24px); }
html.touch #ui #ev-win .ec-cell { position: relative; padding: 2px 3px; }
html.touch #ui #ev-win .ec-ics { position: absolute; right: 3px; bottom: 2px; }
html.touch #ui #ev-win .ec-ics.n1 .ec-mi, html.touch #ui #ev-win .ec-ics.n1 .ec-mi img { width: 12px; height: 12px; }
html.touch #ui #ev-win .ec-ics.n2 .ec-mi, html.touch #ui #ev-win .ec-ics.n2 .ec-mi img { width: 9px; height: 9px; }
html.touch #ui #ev-win .ec-ics.n4 { grid-template-columns: repeat(2, 7px); grid-auto-rows: 7px; gap: 1px; }
html.touch #ui #ev-win .ec-ics.n4 .ec-mi, html.touch #ui #ev-win .ec-ics.n4 .ec-mi img { width: 7px; height: 7px; }
html.touch #ui #ev-win :is(.ec-goto, .ec-ucard, .ec-srow) { min-height: var(--finger); }
html.touch #ui #ev-win .ec-goto { display: inline-flex; align-items: center; }

/* Map layer switches and rich symbol tooltips. Names stay text, never markup. */
#ui #atlas .at-filters { display: grid; grid-template-columns: 1fr; gap: 2px; border-bottom: 1px solid #b49b6233; padding-bottom: 6px; }
#ui #atlas .at-filter { display: flex; align-items: center; gap: 4px; width: 100%; min-width: 0; min-height: 14px; padding: 2px 3px; font: inherit; font-size: 7px; line-height: 9px; text-align: left; color: #dcc393; background: none; border: 0; border-left: 1px solid #a88a51; cursor: pointer; }
#ui #atlas .at-filter[aria-pressed=false] { color: #81796b; border-left-color: #453c2d; }
#ui #atlas .at-filter[aria-pressed=false] > :first-child { opacity: .3; }
#ui #atlas .at-filter:hover, #ui #atlas .at-filter:focus-visible { background: #c8a96b16; outline: 1px solid #b49b6266; }
#ui #atlas .at-filter > i { width: 4px; height: 4px; margin: 0 3px; flex: none; }
#ui #atlas .at-filter > img { width: 11px; height: 11px; object-fit: contain; flex: none; }
#ui .at-tip { max-width: 160px; line-height: 10px; }
#ui .at-tip-head { display: flex; gap: 5px; align-items: center; margin-bottom: 5px; }
#ui .at-tip-head > img { width: 26px; height: 26px; object-fit: contain; }
#ui .at-tip-pos { border-top: 1px solid #b49b6233; padding-top: 4px; margin-top: 5px; }
html.touch #ui #atlas .at-filters { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3px; }
html.touch #ui #atlas .at-filter { min-height: var(--finger); font-size: 6px; line-height: 8px; padding: 2px; gap: 2px; }

/* ---------- Window pattern like the Battle Pass (Nutzer 01.11.2026: "alle UIs MMORPG-mäßig und schön wie das
   Battlepass": no black boxes, framed areas, fixed equal rows, no gaps, numbers exactly centred). Shared classes:
   .fp = framed panel (warm anthracite, bronze line), .fp-h = its head bar (gold, fixed height, .fp-x = a quiet part on
   the right), .fp-b = its body; .fp-kv = key / value grid in two columns with fixed rows; .fp-row = list row of fixed
   height (--fp-row) with hover and .picked; .fp-dia = a number in a diamond (grid: exactly centred); .fp-slot = item
   socket 20 px (icon centred, .n count bottom right, .c chance top left); .fp-bar = bar with its text inside; .fp-note =
   orange hint in a frame; .fp-banner = picture with gold frame. Tab pages keep one height (the window never jumps). */
#ui .fp { position: relative; min-width: 0; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui .fp + .fp { margin-top: 4px; }
#ui .fp-h { display: flex; align-items: center; gap: 3px; height: 13px; padding: 0 5px; font-size: 8px; line-height: 13px; color: var(--gold);
  text-shadow: 1px 1px 0 var(--ink); white-space: nowrap; overflow: hidden;
  background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }
#ui .fp-h > img { flex: none; width: 10px; height: 10px; object-fit: contain; image-rendering: auto; }
#ui .fp-h > .fp-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#ui .fp-h > .fp-x { flex: none; margin-left: auto; font-size: 7px; color: var(--dim); text-shadow: var(--ol); }
#ui .fp-b { padding: 3px 4px 4px; }
#ui .fp-b > .fp-txt { font-size: 7px; line-height: 8px; overflow-wrap: anywhere; }
#ui .fp-b > * + .fp-txt, #ui .fp-b > .fp-txt + * { margin-top: 3px; }
#ui .fp-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1px; }
#ui .fp-kv > div { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; height: 12px; padding: 0 4px;
  font-size: 7px; line-height: 12px; }
#ui .fp-kv > div:nth-child(4n+1), #ui .fp-kv > div:nth-child(4n+2) { background: rgba(255, 228, 170, .035); }
#ui .fp-kv > div > span:first-child { flex: none; color: var(--dim); }
#ui .fp-kv > div > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; color: #eee3c8; }
#ui .fp-row { --fp-row: 18px; display: flex; align-items: center; gap: 4px; height: var(--fp-row); min-width: 0; padding: 0 4px;
  font-size: 7px; line-height: 8px; box-shadow: inset 0 -1px 0 #2a241d; }
#ui .fp-row:last-child { box-shadow: none; }
#ui .fp-row.hov:hover { background: rgba(242, 196, 90, .07); }
#ui .fp-row.picked { background: linear-gradient(90deg, rgba(242, 196, 90, .2), rgba(242, 196, 90, .04)); box-shadow: inset 2px 0 0 #e2bf72, inset 0 -1px 0 #2a241d; }
#ui .fp-row .fp-t { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-height: 16px; }
#ui .fp-row .fp-e { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui .fp-dia { flex: none; display: grid; place-items: center; width: 12px; height: 12px; }
#ui .fp-dia > * { grid-area: 1 / 1; }
#ui .fp-dia > i { width: 8px; height: 8px; transform: rotate(45deg); background: #2a2520; box-shadow: inset 0 0 0 1px #6d6252; }
#ui .fp-dia > span { position: relative; height: 7px; translate: 0 -.5px; padding-left: .5px; font-size: 7px; line-height: 7px; color: #e6dcc6; text-shadow: var(--ol); } /* Jersey's digits: one font pixel (~.5 px with font-size-adjust) space on the right, a little low: ink exactly in the middle (measured on screen pixels, like the Battle Pass) */
#ui .fp-dia.gold > i { background: #9a6c1e; box-shadow: inset 0 0 0 1px #ffd86a, 0 0 3px #f2c45a; }
#ui .fp-dia.silver > i { background: #5a5e66; box-shadow: inset 0 0 0 1px #d8dce4; }
#ui .fp-dia.bronze > i { background: #6a4426; box-shadow: inset 0 0 0 1px #d8955a; }
#ui .fp-slots { display: flex; flex-wrap: wrap; gap: 2px; }
#ui .fp-slot { position: relative; flex: none; width: 20px; height: 20px;
  background: #0f0d0b url('../assets/ui/imperial/slot.webp') center / cover; box-shadow: inset 0 0 0 1px #5d5038, inset 0 0 0 2px #0a0907; }
#ui .fp-slot:hover { box-shadow: inset 0 0 0 1px #c6ac72, inset 0 0 0 2px #0a0907; }
#ui .fp-slot > img { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; object-fit: contain; pointer-events: none; }
#ui .fp-slot > .n { position: absolute; right: 2px; bottom: 2px; font-size: 6px; line-height: 6px; color: #fff; text-shadow: var(--ol); pointer-events: none; }
#ui .fp-slot > .c { position: absolute; left: 2px; top: 2px; font-size: 5px; line-height: 6px; color: #f0b060; text-shadow: var(--ol); pointer-events: none; }
#ui .fp-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 5px; font-size: 7px; line-height: 8px; color: #f0deb0;
  background: linear-gradient(#2a2216, #15110c); box-shadow: inset 0 0 0 1px #6d5a36; white-space: nowrap; }
#ui .fp-bar { position: relative; flex: 1; min-width: 0; height: 9px; background: #0c0a08; box-shadow: inset 0 0 0 1px #3a2e22; }
#ui .fp-bar > i { position: absolute; left: 1px; top: 1px; bottom: 1px; max-width: calc(100% - 2px); background: linear-gradient(#ffe8a0 0 1px, #f2c45a 1px, #b8862e); }
#ui .fp-bar > span { position: absolute; inset: 0; text-align: center; font-size: 7px; line-height: 9px; color: #fff; text-shadow: var(--ol); white-space: nowrap; }
#ui .fp-note { padding: 2px 5px; font-size: 7px; line-height: 8px; color: #f0b070; overflow-wrap: anywhere;
  background: linear-gradient(90deg, #2e1d10, #1a120b); box-shadow: inset 0 0 0 1px #6e4a28, inset 2px 0 0 #e8a25a; }
#ui .fp-chip { display: inline-flex; align-items: center; height: 10px; padding: 0 4px; font-size: 7px; line-height: 10px; color: #e8a25a;
  background: linear-gradient(#2a1f15, #18120c); box-shadow: inset 0 0 0 1px #5a3e22; white-space: nowrap; }
#ui .fp-chips { display: flex; flex-wrap: wrap; gap: 2px 3px; }
#ui .fp-banner { position: relative; overflow: hidden; background: #0b0a09; image-rendering: pixelated;
  box-shadow: inset 0 0 0 1px #a0824a, inset 0 0 0 2px rgba(0, 0, 0, .55); }
#ui .fp-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; z-index: -1; }
#ui .fp-banner { isolation: isolate; }
#ui .fp-empty { display: grid; place-items: center; min-height: 40px; padding: 6px; font-size: 7px; line-height: 9px; text-align: center; color: var(--dim); }
html.touch #ui .fp-h { height: 16px; line-height: 16px; }
html.touch #ui .fp-kv > div { height: 14px; line-height: 14px; }

/* Auto-Jagd (Nutzer 01.11.2026, like the Battle Pass): every card a framed panel, section titles and the first line of
   a card as head bars, the two targets as tiles; all four tabs as high as the first (the window never jumps) */
#ui #hunt .hunt-body { height: 268px; max-height: none; }
#ui #hunt :is(.hunt-card, .hunt-group, .hl-card, .hunt-guide, .hl-sum, .hunt-modes:not(.hl-gear):not(.hl-sell)) {
  background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; border: 0; }
#ui #hunt :is(.hunt-sec, .hunt-card > .hc-head:first-child, .hg-t, .hunt-guide-h) {
  display: flex; align-items: center; gap: 3px; height: 13px; padding: 0 5px; font-size: 8px; line-height: 13px; color: var(--gold);
  text-shadow: 1px 1px 0 var(--ink); white-space: nowrap; overflow: hidden;
  background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }
#ui #hunt .hunt-sec { margin: 4px 0 0; }
#ui #hunt .hunt-sec + * { margin-top: 0; }
#ui #hunt .hunt-modes:not(.hl-gear):not(.hl-sell) { padding: 3px; gap: 3px; }
#ui #hunt .hunt-mode { padding: 3px 4px; background: linear-gradient(#26211b, #16120e); box-shadow: inset 0 0 0 1px #3c362e; border: 0; }
#ui #hunt .hunt-mode:hover { box-shadow: inset 0 0 0 1px #8a7348; }
#ui #hunt .hunt-mode.picked { background: linear-gradient(#3a2e18, #1e170d); box-shadow: inset 0 0 0 1px #e2bf72; }
#ui #hunt .hunt-card { margin-top: 4px; padding: 3px 5px 4px; }
#ui #hunt .hunt-sec + .hunt-card { margin-top: 0; }
#ui #hunt .hunt-card > .hc-head:first-child { margin: -3px -5px 3px; }
#ui #hunt .hunt-card.better { box-shadow: inset 0 0 0 1px #8a7348; }
#ui #hunt .hunt-card.better > .hc-head:first-child { color: #ffe08a; background: linear-gradient(90deg, #4a3818, #1e170d 70%); box-shadow: inset 0 0 0 1px #8a7348, inset 0 -1px 0 #a0824a; }
#ui #hunt .hunt-card.weak { box-shadow: inset 0 0 0 1px #7a2f26; }
#ui #hunt .hunt-card.weak > .hc-head:first-child { background: linear-gradient(90deg, #4a1d18, #1e0f0c 70%); box-shadow: inset 0 0 0 1px #7a2f26, inset 0 -1px 0 #a0453a; }
#ui #hunt .hunt-card.empty { padding: 6px 5px; font-size: 7px; line-height: 8px; }
#ui #hunt .trip-row { margin-top: 4px; }
#ui #hunt .hunt-guide { margin-top: 4px; padding: 0 0 2px; }
#ui #hunt .hunt-guide-h { justify-content: space-between; cursor: pointer; }
#ui #hunt .hunt-guide-h .dim { font-size: 7px; color: var(--dim); }
#ui #hunt .hunt-guide ol { margin: 3px 5px 2px 14px; }
#ui #hunt .hunt-group { margin-top: 4px; padding: 0 5px 4px; }
#ui #hunt .hunt-group:first-child { margin-top: 0; }
#ui #hunt .hg-t { margin: 0 -5px 2px; }
#ui #hunt .hl-sum { margin-top: 4px; padding: 3px 5px; }
#ui #hunt .hl-card { padding: 3px 5px 4px; }
#ui #hunt .route { margin-top: 3px; padding: 1px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #hunt .route::before { left: 6px; }
#ui #hunt .rt-map { box-shadow: inset 0 -1px 0 #2a241d; }
#ui #hunt .rt-map.open { background: linear-gradient(90deg, rgba(242, 196, 90, .18), rgba(242, 196, 90, .03)); box-shadow: inset 2px 0 0 #e2bf72, inset 0 -1px 0 #2a241d; }
#ui #hunt .rt-zones { margin-left: 10px; box-shadow: inset 1px 0 0 #47423a; }
#ui #hunt .rt-zone { border-bottom: 1px solid #2a241d; }
#ui #hunt .hunt-help { margin: 2px 0; }
html.touch #ui #hunt .hunt-body { height: auto; }
html.touch #ui #hunt :is(.hunt-sec, .hunt-card > .hc-head:first-child, .hg-t, .hunt-guide-h) { height: 16px; line-height: 16px; }
html.touch #ui #hunt .hunt-guide-h { height: var(--finger); line-height: 8px; }

/* Charakter (Nutzer 01.11.2026, like the Battle Pass): section titles as head bars, their rows in a framed panel of
   fixed row heights; the gear score in a panel; quests as framed cards under head bars per chain. The status page still
   fits without scrolling (fixed window 190 x 290; since the switch of the profile 14.11.2026, before 278) */
#ui #character .cw-sec, html:not(.touch) #ui #character[data-tab=status] .cw-sec, html:not(.touch) #ui #character[data-tab=emotes] .cw-sec,
#ui #character .qt-log .qt-group {
  display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 13px; margin: 5px 0 0; padding: 0 5px; border: 0;
  font-size: 8px; line-height: 13px; color: var(--gold); text-shadow: 1px 1px 0 var(--ink); white-space: nowrap; overflow: hidden;
  background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }
#ui #character .cw-sec > :not(:first-child), #ui #character .qt-log .qt-group > :not(:first-child) { font-size: 7px; }
#ui #character .cw-content > .cw-sec:first-child, #ui #character .qt-log > .qt-group:first-child { margin-top: 0; }
#ui #character :is(.cw-stats, .cw-skills) { gap: 0; padding: 1px 5px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #character .cw-st { border-bottom: 1px solid #2a241d; }
#ui #character .cw-st:last-child, #ui #character .cw-sk:last-child { border-bottom: 0; }
html:not(.touch) #ui #character[data-tab=status] .cw-st { height: 14px; }
#ui #character .gs-box, html:not(.touch) #ui #character[data-tab=status] .cw-summary .gs-box { margin-top: 5px; padding: 3px 5px 4px; border: 0;
  background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #character .cw-sk { height: 26px; padding: 0; border-bottom: 1px solid #2a241d; }
#ui #character .cw-book { margin-top: 4px; padding: 0 5px; height: 14px; line-height: 14px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #character .qt-log .qt-entry.full { margin: 0; padding: 3px 5px 4px; border: 0; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #character .qt-log .qt-entry.full + .qt-entry.full { margin-top: 3px; }
#ui #quest-tracker .qt-entry { background: none; box-shadow: none; border-bottom: 1px solid #b49b622a; padding-bottom: 5px; }

/* The other windows in the same pattern (Nutzer 01.11.2026): their own boxes get the panel surface instead of near-black
   fields, their titles become head bars. Head bars inside a panel reach its edges (negative margins = the panel's padding). */
#ui .win :is(.section, .fp > .fp-h.section) {
  display: flex; align-items: center; gap: 3px; height: 13px; margin: 5px 0 0; padding: 0 5px; font-size: 8px; line-height: 13px; color: var(--gold);
  text-shadow: 1px 1px 0 var(--ink); white-space: nowrap; overflow: hidden; border: 0;
  background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }
#ui .win .fp > .fp-h.section { margin: 0; }
#ui .win .fp + .fp { margin-top: 4px; }
#ui :is(#codes .cd-hist, #refine .ref-sec, #pets .camp-sec, #friends-win :is(.fr-team, .fr-list), #ranking :is(.rk-cats, .rk-table, .rk-reset),
  #wiki :is(.wk-cats, .wk-body), #referral :is(.rf-code, .rf-tiers, .rf-list, .rf-gift), #arena :is(.ar-meta, .ar-modes), #ev-win :is(.ec-status, .ec-day)) {
  background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; border: 0; }
#ui :is(#refine .ref-sec-t, #pets .camp-sec-t, #friends-win .fr-head, #wiki .wk-cats-t, #ev-win .ec-dhead) {
  display: flex; align-items: center; gap: 3px; height: 13px; padding: 0 5px; font-size: 8px; line-height: 13px; color: var(--gold);
  text-shadow: 1px 1px 0 var(--ink); white-space: nowrap; overflow: hidden; border: 0;
  background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }

/* Gilde: what panelize() made of the headings (ui/guild.js) */
#ui #guild-win .fp-b > .stat-row { height: 12px; border-bottom: 1px solid #2a241d; }
#ui #guild-win .fp-b > .stat-row:last-of-type { border-bottom: 0; }
#ui #guild-win .fp > .gd-title.fp-h { justify-content: space-between; margin: 0; }
#ui #guild-win .fp > .gd-none.fp-h { margin: 0; }
#ui #guild-win .gd-text { margin: 0; }
#ui #guild-win .gd-exp { margin: 1px 0 3px; }
#ui #guild-win .fp-b > .eq-btns { margin-top: 3px; }
#ui #guild-win .gd-help.pz-out { margin-top: 4px; }

/* Code einlösen */
#ui #codes .cd-sec { margin-top: 5px; }
#ui #codes .cd-hist { padding: 2px 5px; min-height: 16px; }

/* Verbessern (Schmied, Schriftrolle) */
#ui #refine .ref-sec { margin-top: 4px; padding: 0 5px 3px; }
#ui #refine .ref-sec-t { margin: 0 -5px 3px; }

/* Begleiter: the horse page and its sections */
#ui #pets .camp-sec { margin-top: 4px; padding: 0 5px 4px; }
#ui #pets .camp-sec:first-child { margin-top: 0; }
#ui #pets .camp-sec-t, #ui #pets .horse-layout .camp-sec-t { margin: 0 -5px 3px; height: 13px; line-height: 13px; white-space: nowrap; }
#ui #pets .camp-sec .eq-btns { margin-top: 4px; }

/* Freunde */
#ui #friends-win .fr-team { margin-bottom: 4px; padding: 0 0 2px; }
#ui #friends-win .fr-team-t { display: flex; align-items: center; gap: 3px; }
#ui #friends-win .fr-team-t img { height: 6px; }
#ui #friends-win .fr-team > :not(.fr-head), #ui #friends-win .fr-list > * { margin-left: 4px; margin-right: 4px; }
#ui #friends-win .fr-head { margin: 0; justify-content: space-between; }
#ui #friends-win .fr-team > .fr-head { margin-bottom: 2px; }
#ui #friends-win .fr-list { margin-bottom: 4px; padding: 2px 0; }

/* Rangliste */
#ui #ranking .rk-reset { box-shadow: inset 0 0 0 1px #6d5a36; background: linear-gradient(#2a2216, #15110c); }
#ui #ranking .rk-cats { padding: 1px; }
#ui #ranking .rk-group { margin: 3px 0 1px; padding: 0 4px; height: 11px; font-size: 6px; line-height: 11px; color: var(--gold-d);
  background: linear-gradient(90deg, #2e261b, transparent); box-shadow: inset 0 -1px 0 #3a3229; }
#ui #ranking .rk-group:first-child { margin-top: 0; }
#ui #ranking .rk-cat { min-height: 14px; padding: 1px 3px; }
#ui #ranking .rk-cat.picked { color: var(--gold); background: linear-gradient(90deg, rgba(242, 196, 90, .2), rgba(242, 196, 90, .04)); box-shadow: inset 2px 0 0 #e2bf72; }
#ui #ranking .rk-head { background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 -1px 0 #5c4b2f; }
#ui #ranking .rk-row, #ui #ranking .rk-grp { border-bottom: 1px solid #2a241d; }
#ui #ranking .rk-grp .rk-row { border-bottom: 0; }
#ui #ranking .rk-table { padding: 1px; }

/* Wiki */
#ui #wiki .wk-cats-t { margin-top: 2px; padding-left: 5px; }
#ui #wiki .wk-cats { margin-top: -3px; }
#ui #wiki .wk-body { margin-top: 4px; padding: 2px 4px; }
#ui #wiki .wk-gh { background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 -1px 0 #3a3229; }

/* Freunde werben */
#ui #referral :is(.rf-tier, .rf-row) { border-bottom: 1px solid #2a241d; }
#ui #referral .rf-tier:last-child, #ui #referral .rf-row:last-child { border-bottom: 0; }
#ui #referral .rf-code { padding: 5px 5px 4px; border: 0; }
#ui #referral .rf-tiers { padding: 0 4px; }
#ui #referral .rf-gift { padding: 0 5px 4px; }
#ui #referral .rf-gift > .section { margin: 0 -5px 3px; }

/* Arena */
#ui #arena .ar-meta { padding: 0 5px; height: 14px; align-items: center; }
#ui #arena .ar-modes { padding: 0 5px; margin-top: 4px; }
#ui #arena .ar-card { border-bottom: 1px solid #2a241d; }
#ui #arena .ar-card:last-child { border-bottom: 0; }

/* Event-Kalender: the right column as panels */
#ui #ev-win .ec-status { padding: 4px 5px; }
#ui #ev-win .ec-day { margin-top: 4px; padding: 0 0 4px; }
#ui #ev-win .ec-day > :not(.ec-dhead) { margin-left: 5px; margin-right: 5px; }
#ui #ev-win .ec-dhead { justify-content: space-between; height: 15px; line-height: 15px; margin-bottom: 4px; }
#ui #pets .camp-sec .eq-btns { width: 100%; }
#ui #ev-win .ec-cal { padding: 3px 5px 5px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #ev-win .ec-cell { background: rgba(255, 228, 170, .02); }

/* Karte, Optionen, System, Team-Panel in the same pattern (Nutzer 01.11.2026) */
#ui :is(#atlas .at-legend, #options .opt-sec, #system .col, #team .team-box) {
  background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; border: 0; }
#ui :is(#options .opt-head, #team .team-box-t) {
  display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 13px; padding: 0 5px; font-size: 8px; line-height: 13px;
  color: var(--gold); text-shadow: 1px 1px 0 var(--ink); white-space: nowrap; overflow: hidden; border: 0;
  background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }
/* Karte: the filters and the legend in one panel beside the map, the map in a gold frame like the banners */
#ui #atlas .at-legend { padding: 3px 4px; }
#ui #atlas .at-map { box-shadow: 0 0 0 1px #a0824a, 0 0 0 2px rgba(0, 0, 0, .55); }
#ui #atlas .at-filters { border-bottom: 1px solid #3a3229; }
/* Optionen */
#ui #options .opt-sec { min-width: 0; padding: 0 6px 2px; }
#ui #options .opt-head { margin: 0 -6px 1px; height: 15px; }
#ui #options .opt-foot { flex: none; padding: 4px 0 1px; border-top: 1px solid #443b2c; width: 100%; justify-content: center; grid-template-columns: repeat(2, minmax(0, 54px)); }
#ui #options .opt-row { border-bottom: 1px solid #2a241d; }
#ui #options .opt-row:last-child { border-bottom: 0; }
/* System (ESC) */
#ui #system .col { padding: 4px; }
#ui #system .col > .sep { margin: 1px 0; }
/* Team-Panel: every box a panel with its head bar */
#ui #team .team-box { padding: 0 4px 4px; margin-bottom: 4px; border: 0; }
#ui #team .team-box-t { margin: 0 -4px 3px; }
html.touch #ui :is(#options .opt-head, #team .team-box-t) { height: 16px; line-height: 16px; }

/* Auktionshaus (Nutzer 01.11.2026, like the Battle Pass): categories, list and the buy bar in panels, the column titles as
   a head bar; on the pages Verkaufen / Abholfach every part a panel with its head bar */
#ui #auction :is(.ah-cats, .ah-list, .ah-fp, .ah-bar, .ah-new, .ah-own, .ah-collect, .ah-hist) {
  background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; border: 0; }
#ui #auction :is(.ah-cols, .ah-sec) {
  display: flex; align-items: center; gap: 3px; height: 13px; padding: 0 5px; font-size: 8px; line-height: 13px; color: var(--gold);
  text-shadow: 1px 1px 0 var(--ink); white-space: nowrap; overflow: hidden; border: 0;
  background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }
#ui #auction .ah-cols { padding: 0 4px 0 25px; font-size: 7px; }
#ui #auction .ah-cats { padding: 1px; }
#ui #auction .ah-list { margin-top: -1px; }
#ui #auction .ah-bar { margin-top: 3px; padding: 0 4px; }
#ui #auction :is(.ah-new, .ah-own, .ah-collect, .ah-hist) { padding: 0 5px 4px; }
#ui #auction .ah-sec { margin: 0 -5px 4px; justify-content: space-between; }
#ui #auction .ah-row { border-bottom: 1px solid #2a241d; }
#ui #auction .ah-cat { padding-left: 4px; }
#ui #auction .ah-cat.picked { color: var(--gold); background: linear-gradient(90deg, rgba(242, 196, 90, .2), rgba(242, 196, 90, .04)); box-shadow: inset 2px 0 0 #e2bf72; }
#ui #auction .ah-head { box-shadow: inset 0 0 0 1px #a0824a, inset 0 0 0 2px rgba(0, 0, 0, .55); }
html.touch #ui #auction :is(.ah-cols, .ah-sec) { height: 16px; line-height: 16px; }
/* Sonderinventar: the title fits its narrow window (no close button there) */
#ui :is(#special-inv, #supply-inv) .win-title { padding: 0 4px; }
#ui #inventory .inv-gs { padding: 0 4px; height: 13px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
/* phones: the status page keeps its two columns; the head bar and the gear score get their inner space */
html.touch #ui #character[data-tab=status] .cw-content { grid-template-rows: 13px minmax(0, 1fr); }
html.touch #ui #character[data-tab=status] .cw-sec { height: 13px; padding: 0 5px; margin: 0; line-height: 13px; }
html.touch #ui #character[data-tab=status] .gs-box { padding: 2px 5px 3px; margin: 4px 0 0; }
/* Gilde: the member list (and the online head over it) as a panel like the friends, the cash box beside the store */
#ui #guild-win > .win-body .gd-body > .fr-head { display: flex; align-items: center; justify-content: space-between; height: 13px; padding: 0 5px; font-size: 8px; line-height: 13px;
  color: var(--gold); background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; margin: 0; }
#ui #guild-win .gd-members { padding: 1px 4px; margin-bottom: 4px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #guild-win .gd-members .fr-row { border-bottom: 1px solid #2a241d; }
#ui #guild-win .gd-side .fp-b > * + * { margin-top: 3px; }
/* Gilde: every tab as high as the overview (the window does not jump); without a guild (no tabs) it stays short */
#ui #guild-win .tabs:not(.hidden) + .gd-body { height: 228px; overflow-y: auto; overflow-x: hidden; }
html.touch #ui #guild-win .tabs:not(.hidden) + .gd-body { height: auto; }

/* Titel, Müll (Nutzer 01.11.2026, like the Battle Pass): head bars over the panels, the panels joined to them, the
   emblem frames warm instead of black */
#ui #titles .tw-h { height: 13px; padding: 0 5px; line-height: 13px; background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }
#ui #titles :is(.tw-cats, .tw-list) { background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #titles :is(.tw-side, .tw-main) { gap: 0; }
#ui #titles .tw-show { margin-top: 4px; background: radial-gradient(ellipse at 50% 55%, #33281b, #15110d 70%); box-shadow: inset 0 0 0 1px #6d5a36; }
#ui #titles .tw-row, #ui #titles .tw-cat { border-bottom: 1px solid #2a241d; }
#ui #titles .tw-row.open, #ui #titles .tw-cat.picked { background: linear-gradient(90deg, rgba(242, 196, 90, .2), rgba(242, 196, 90, .04)); box-shadow: inset 2px 0 0 #e2bf72; }
#ui #titles .tw-em { background: linear-gradient(#1d1813, #100d0a); box-shadow: inset 0 0 0 1px #5d5038, inset 0 0 0 2px #0a0907; }
html.touch #ui #titles .tw-h { height: 16px; line-height: 16px; }

/* Prestige / Dunkler Sura / Endlos-Rift, Verzaubern, Haustiere (Nutzer 01.11.2026, like the Battle Pass) */
#ui #evolution :is(.ev-head, .ev-list, .ev-grid) { background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; border: 0; }
#ui #evolution .ev-head { padding: 4px 6px; margin-bottom: 4px; box-shadow: inset 0 0 0 1px #6d5a36; background: radial-gradient(ellipse at 20% 50%, #3a2c16, #15110c 70%); }
#ui #evolution .ev-list { margin: 0 0 4px; padding: 0 5px; }
#ui #evolution .ev-row { border-bottom: 1px solid #2a241d; }
#ui #evolution .ev-row:last-child { border-bottom: 0; }
#ui #evolution .ev-sub { display: flex; align-items: center; height: 13px; margin: 4px 0 0; padding: 0 5px; font-size: 8px; line-height: 13px;
  background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }
#ui #evolution .ev-grid { padding: 2px; }
#ui #evolution .ev-purse { padding: 0 5px; height: 13px; border: 0; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #switcher .sw-head { height: 13px; padding: 0 5px; margin-bottom: 0; font-size: 8px; color: var(--gold);
  background: linear-gradient(90deg, #2e261b, #18140f 70%); box-shadow: inset 0 0 0 1px #47423a, inset 0 -1px 0 #5c4b2f; }
#ui #switcher .sw-rows { padding: 0 4px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #switcher .sw-rows:not(:empty) { padding: 2px 4px; }
#ui #switcher .sw-add { padding: 2px 4px 3px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; margin-top: -1px; }
#ui #switcher .sw-kinds { padding: 0 4px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #pets .pet-stage { box-shadow: inset 0 0 0 1px #a0824a, inset 0 0 0 2px rgba(0, 0, 0, .55); }
#ui #pets .pet-card { background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; border: 0; }
#ui #pets .pet-card.picked { background: linear-gradient(#3a2e18, #1e170d); box-shadow: inset 0 0 0 1px #e2bf72; }
#ui #isle .is-body > .stat-row { height: 12px; padding: 0 5px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#ui #isle .is-body > .stat-row + .stat-row { margin-top: -1px; }
#ui #isle .is-pic { box-shadow: inset 0 0 0 1px #a0824a; }
html.touch #ui :is(#evolution .ev-sub, #switcher .sw-head) { height: 16px; line-height: 16px; }
/* Arena: the buttons of the three modes one width (Nutzer: buttons in a column / side by side always alike) */
#ui #arena .ar-card .ar-btn { flex: none; width: 84px; min-width: 0; padding: 0 4px; white-space: normal; line-height: 8px; }

/* Round the painted surfaces themselves so the brass inset follows the fill. */
#ui :where(.btn, .tab, .seg-btn, .mbtn-i, .ctab, .wk-sbtn, .wk-gh, .hunt-mode) { border-radius: 2px; }
#ui :where(.tab.new, .tab.aim, .btn.pulse, .mbtn-i.new, .mbtn-i.just-open)::after { border-radius: inherit; }
#ui :where(.win-title, .fp-h, .section, .wk-cats-t, .wk-sh, .hunt-sec, .hg-t, .hunt-guide-h),
#ui #hunt .hunt-card > .hc-head:first-child { border-radius: 2px 2px 0 0; }
#ui :where(.fp, .wk-head, .hunt-card, .hunt-group, .hunt-guide) { border-radius: 2px; }

/* Desktop menu cells reserve the bottom line for the shortcut. */
html:not(.touch) #menubar .mbtn-i:not(.not-yet):has(> .hk:not(:empty))::before {
  top: 1px; left: 3px; width: 14px; height: 12px; background-size: contain;
}
html:not(.touch) #menubar .mbtn-i > .hk { left: 1px; right: 1px; bottom: 0; text-align: center; }
