/* doar fundalul din jurul ferestrelor e al nostru; căsuțele, filele, butoanele și titlurile rămân din Metin2 */
.window::before {
  border: 1px solid #2b303b; border-image: none; border-radius: 8px;
  background: linear-gradient(180deg, hsl(225 14% 12% / .97), hsl(225 14% 8% / .97));
  box-shadow: 0 10px 28px #000a, inset 0 1px 0 #ffffff0d;
}
#chat { background: hsl(225 14% 8% / .5); }
#chat.open, #chat:focus-within { background: hsl(225 14% 8% / .92); }
/* un singur fundal: panourile dinăuntru nu mai au culoare proprie */
.hsection, .horder, .good { background: none; border: 0; box-shadow: none; }
.hsection h4 { background: none; border-bottom: 1px solid #2b303b; }
/* butoanele: mici, mate, grafit */
.btn, .htabs button {
  min-height: 19px; padding: 0 8px; border: 1px solid #2f3541; border-image: none; border-radius: 5px;
  background: linear-gradient(180deg, hsl(225 14% 18%), hsl(225 14% 13%)); color: #e6e8ec;
  font: 600 11px/1 "Segoe UI", system-ui, sans-serif; text-shadow: none; box-shadow: inset 0 1px 0 #ffffff0d;
}
.btn:hover, .htabs button:hover { border-color: #5a6a86; color: #fff; background: linear-gradient(180deg, hsl(225 14% 22%), hsl(225 14% 15%)); }
.btn:active { background: hsl(225 14% 9%); }
.btn.on, .htabs button.on, .hstart { color: #f0f3f8; border-color: #4f648a; background: linear-gradient(180deg, #34456a, #222d47); }
.btn.big, .hstart { min-height: 23px; font-size: 11.5px; }
.btn.big.on, .hstart.on { background: linear-gradient(180deg, #7a3a36, #55241f); border-color: #9a6a64; }
.btn.menu { height: 26px; }
.pages .btn { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; }
.window .pages .btn.on { border-bottom-color: #4f648a; background: transparent; }

/* interfața se micșorează odată cu pagina (--uiz setat din ui.js) */
#mapbox, #chat, #dock, #menu, .window { zoom: var(--uiz, 1); }
@media (max-width: 1150px) { #menu.box { bottom: 8px; top: auto; grid-template-columns: repeat(7, 40px); } }

/* titlul, X-ul și butoanele mici: desenate de noi, fără ornamente Metin */
.title { background: linear-gradient(180deg, #2a3f63, #1b2a45); border: 1px solid #34466a; border-radius: 6px; box-shadow: inset 0 1px 0 #ffffff14;
  color: #eef2f8; text-shadow: none; font-weight: 600; letter-spacing: .4px; }
.title::before, .title::after { content: none; }
.close { width: 17px; height: 17px; top: 3px; right: 4px; border: 0; border-radius: 5px; background: #ffffff14; color: #ffffffc0; font-size: 0; }
.close::before { content: '✕'; font: 700 10px/17px "Segoe UI", system-ui, sans-serif; display: block; text-align: center; }
.close:hover, .close:active { background: #d9534f66; color: #fff; }
.sortb { width: 22px; height: 21px; border: 1px solid #2f3541; border-image: none; border-radius: 5px;
  background: linear-gradient(180deg, hsl(225 14% 18%), hsl(225 14% 13%)); color: #e6e8ec; font-size: 11px; }
.sortb:hover { border-color: #5a6a86; color: #fff; }
/* fundalul echipamentului: plat, ca restul ferestrei */
.equipment { background: hsl(225 14% 7%); border: 1px solid #2b303b; border-radius: 6px; }
.equipment .bodyslot { background: url(data/ui/slot.png); }

/* Battle Pass */
.window.pass .body { padding: 4px; }
.passhead { display: flex; gap: 6px; margin-bottom: 5px; }
.passbanner { flex: 1.4; min-height: 62px; border: 1px solid #5a3f22; border-radius: 5px; padding: 4px 8px; text-align: center;
  background: radial-gradient(120% 140% at 85% 20%, #7a3a12 0%, #3a1c0c 45%, #14100c 100%); display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; }
.passbanner h2 { margin: 0; font: 800 18px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: 1.5px; color: #f4dfae; text-shadow: 0 2px 0 #000a; }
.passbanner p { margin: 0 0 3px; font-size: 10px; color: #e7c98f; }
.passlevel { flex: 1; border: 1px solid #2b303b; border-radius: 5px; padding: 5px 8px; display: flex; flex-direction: column; justify-content: center; gap: 5px; background: #ffffff05; }
.passleveltop { display: flex; justify-content: space-between; align-items: baseline; }
.passleveltop b { font-size: 14px; color: #f0c987; }
.passleveltop span { font-size: 10px; color: #c9ced8; }
.passmeter { display: flex; gap: 8px; align-items: center; }
.passup { width: 22px; height: 22px; flex: none; border: 1px solid #5a3f22; border-radius: 6px; background: linear-gradient(180deg, #6a3a16, #3a1c0c); color: #ffd98a; font-size: 11px; cursor: pointer; }
.passup:disabled { opacity: .4; }
.passbar { position: relative; flex: 1; height: 12px; border: 1px solid #3a3f4b; border-radius: 4px; background: #05070a; overflow: hidden; }
.passbar.wide { height: 15px; }
.passbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #e3b04b, #a8751f); }
.passbar em { position: absolute; inset: 0; display: grid; place-items: center; font: 700 9px "Segoe UI", system-ui, sans-serif; font-style: normal; color: #fff; text-shadow: 0 1px 2px #000; }
.passgrid { display: flex; border: 1px solid #2b303b; border-radius: 6px; background: #05070a80; }
.passlabels { flex: none; width: 62px; display: flex; flex-direction: column; border-right: 1px solid #2b303b; }
.passlevelcell { height: 22px; display: grid; place-items: center; font-size: 9.5px; color: #9aa1ad; }
.passlabel { height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-top: 1px solid #2b303b; color: #e6e8ec; font-size: 10px; }
.passlabel span { font-size: 16px; }
.passscroll { flex: 1; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #4a4030 #0000; }
.passcols { display: flex; width: max-content; }
.passcol { width: 42px; flex: none; display: flex; flex-direction: column; align-items: center; border-right: 1px solid #1b1f27; }
.passcol.now { background: #e3b04b14; }
.passcol .passlevelcell i { font-style: normal; min-width: 20px; height: 16px; padding: 0 3px; display: grid; place-items: center; border: 1px solid #3a3f4b; border-radius: 5px; background: #10141b; color: #9aa1ad; font-size: 9.5px; }
.passcol .passlevelcell i.on { border-color: #8a6a3a; color: #ffe9bd; }
.passcell { position: relative; width: 32px; height: 32px; margin: 8px 0; padding: 0; border: 0; background: url(data/ui/slot.png) center / 100% 100% no-repeat; cursor: default; }
.passcell.ready { cursor: pointer; filter: drop-shadow(0 0 5px #ffd98acc); }
.passcell.locked { opacity: .45; }
.passcell.got { opacity: .6; }
.passicon { width: 100%; height: 100%; display: grid; place-items: center; font-size: 16px; }
.passicon img { max-width: 26px; max-height: 26px; }
.passicon.big { width: 30px; height: 30px; flex: none; border: 1px solid #3a3f4b; border-radius: 6px; background: #0a0d12; }
.passcell b { position: absolute; right: 2px; bottom: 0; font-size: 8.5px; color: #fff; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.passcell u { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; font-size: 18px; color: #8fe08a; text-shadow: 0 1px 2px #000; }
.passcell u.lock { font-size: 10px; color: #fff; place-items: end start; padding: 2px; }
.passall { display: block; margin: 5px 0 0 auto; }
.passtabs { display: flex; gap: 6px; margin-top: 5px; }
.passtab { flex: 1; height: 22px; border: 1px solid #2f3541; border-radius: 6px; background: linear-gradient(180deg, hsl(225 14% 18%), hsl(225 14% 13%)); color: #c9ced8; font: 700 10.5px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.passtab:hover { color: #fff; border-color: #5a6a86; }
.passtab.on { color: #ffe9bd; border-color: #8a6a3a; background: linear-gradient(180deg, #4a3319, #2a1c0d); }
.passcolumns { display: flex; gap: 6px; }
.passpart { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.passparthead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px; }
.passparthead b { color: #f0c987; font-size: 11px; }
.passparthead span { color: #9aa1ad; font-size: 9.5px; }
.passtask { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 6px; min-height: 40px; border: 1px solid #2b303b; border-radius: 5px; background: #ffffff05; }
.passtask.done { border-color: #2f6b3a; background: #1c3a2210; }
.passtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: #e6e8ec; }
.passtask .passbar { flex: none; height: 11px; }
.passexp { flex: none; width: 40px; text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.passexp b { color: #ffd98a; font-size: 11px; }
.passexp small { color: #9aa1ad; font-size: 8px; }
.passcheck { flex: none; width: 24px; text-align: center; font-size: 18px; color: #ffb43a; }
.passroll { flex: none; width: 24px; height: 24px; border: 1px solid #5a3f22; border-radius: 6px; background: linear-gradient(180deg, #4a3319, #2a1c0d); color: #ffd98a; font-size: 12px; cursor: pointer; }
.passroll sup { font-size: 9px; color: #fff; }
.passroll:disabled { opacity: .4; }
/* menu: one small row */
#menu.box, #menu.box { grid-template-columns: repeat(14, 36px) !important; top: auto !important; bottom: 8px; gap: 1px; padding: 2px; }
#menu .slot { width: 36px !important; height: 30px !important; }
#menu .slot img { width: 20px !important; height: 20px !important; }
#menu .slot em { display: none !important; }
/* auction house */
.window.auction .body { padding: 6px; }
.autop { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; margin-bottom: 5px; border: 1px solid #5a3f22; border-radius: 5px; background: linear-gradient(180deg,#3a2a18,#1c130b); }
.autop b { color: #f4dfae; font-size: 14px; } .autop span { color: #ffd98a; font-weight: 700; }
.autabs { display: flex; gap: 4px; margin-bottom: 5px; }
.autab { flex: 1; height: 24px; border: 1px solid #3a3f4b; border-radius: 4px; background: #11141a; color: #c9ced8; cursor: pointer; font-size: 12px; }
.autab.on { border-color: #a8751f; color: #ffd98a; background: #2a1e12; }
.aubar { display: flex; gap: 5px; align-items: center; margin-bottom: 5px; font-size: 11px; color: #c9ced8; }
.aubar input[type=text] { height: 22px; background: #05070a; border: 1px solid #3a3f4b; color: #e6e8ec; border-radius: 3px; padding: 0 5px; }
.aubar input:first-child { flex: 1; min-width: 80px; } .aubar .aunum { width: 38px; text-align: center; }
.aubar select { height: 22px; background: #05070a; color: #e6e8ec; border: 1px solid #3a3f4b; }
.aucount { flex: none; margin-left: auto; }
.aumain, .ausell { display: flex; gap: 6px; }
.aucats { width: 130px; flex: none; border: 1px solid #2b303b; border-radius: 4px; background: #05070a80; }
.aucat { display: flex; justify-content: space-between; padding: 6px 8px; font-size: 12px; color: #c9ced8; cursor: pointer; }
.aucat em { font-style: normal; color: #8a7a5a; } .aucat.on { background: #3a2a18; color: #ffd98a; }
.aulist { flex: 1; height: 300px; overflow-y: auto; border: 1px solid #2b303b; border-radius: 4px; background: #05070a80; }
.aulist.short { height: 250px; } .aulist.tall { height: 320px; }
.aurow { display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-bottom: 1px solid #1a1d24; cursor: pointer; }
.aurow:hover, .aurow.on { background: #3a2a1860; } .aurow.on { outline: 1px solid #a8751f; }
.auicon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1px solid #2b303b; background: #05070a; }
.auicon img { max-width: 28px; max-height: 28px; }
.auname { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 11px; color: #8a8f9a; }
.auname b { color: #e6c27a; font-size: 12px; } .aulvl { width: 40px; text-align: center; color: #f77; font-size: 12px; } .aulvl.no { color: #ff6a5a; }
.auprice { width: 110px; text-align: right; color: #ffd98a; font-weight: 700; font-size: 12px; }
.aufoot { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 8px; border: 1px solid #2b303b; border-radius: 4px; font-size: 12px; color: #c9ced8; }
.aufoot span { flex: 1; } .auprice-in { width: 130px; height: 24px; background: #05070a; border: 1px solid #3a3f4b; color: #ffd98a; padding: 0 6px; }
.aubtn { height: 26px; padding: 0 14px; border: 1px solid #5a3f22; border-radius: 4px; background: linear-gradient(180deg,#6a2c20,#3a140f); color: #ffd98a; cursor: pointer; }
.aubtn:disabled { opacity: .4; cursor: default; } .aubtn.small { height: 22px; padding: 0 8px; }
.auhint { margin-top: 4px; font-size: 10px; color: #8a8f9a; } .auempty { padding: 14px; text-align: center; color: #8a8f9a; font-size: 12px; }
.aubag, .aumine { flex: 1; min-width: 0; } .aubag h4, .aumine h4 { margin: 0 0 4px; font-size: 12px; color: #f0c987; }
.window.arena .body, .window.dojang .body { padding: 6px; }
.arinfo { display: flex; justify-content: space-between; margin-bottom: 5px; padding: 4px 8px; font-size: 11px; color: #c9ced8; border: 1px solid #2b303b; border-radius: 4px; }
.arstate { margin: 4px 0; padding: 8px; font-size: 12px; color: #e6e8ec; border: 1px solid #2b303b; border-radius: 4px; background: #05070a80; }
.window.plaza .body { padding: 6px; }
.pzpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 6px; }
.pzpad select { height: 22px; background: #05070a; color: #e6e8ec; border: 1px solid #3a3f4b; font-size: 11px; }
/* inventory: tabs on top, three buttons on the side */
.window.inventory { overflow: visible; }
.invtabs { display: flex; gap: 4px; margin: 0 6px 5px 38px; }
.invtab { flex: 1; height: 22px; border: 1px solid #3a3f4b; border-radius: 4px; background: #11141a; color: #c9ced8; font-size: 11px; cursor: pointer; }
.invtab.on { border-color: #a8751f; color: #ffd98a; background: #2a1e12; }
.invside { position: absolute; left: -38px; top: 36px; display: flex; flex-direction: column; gap: 4px; }
.invside-b { width: 34px; height: 34px; border: 1px solid #5a3f22; border-radius: 6px; background: linear-gradient(180deg,#2a1e12,#14100a); color: #ffd98a; font-size: 16px; cursor: pointer; }
.invside-b.on { border-color: #ffd24a; box-shadow: 0 0 6px #ffd24a80; }
.equipment .kindname { position: absolute; top: 28px; left: 0; right: 0; text-align: center; font-size: 12px; color: #f0c987; }
.equipment .wardplace { color: #a99c80; }
/* left column of four buttons */
.leftcol { position: fixed; left: 6px; top: 250px; z-index: 40; display: flex; flex-direction: column; gap: 6px; zoom: var(--uiz, 1); }
.leftbtn { width: 44px; height: 44px; border: 1px solid #5a3f22; border-radius: 8px; background: linear-gradient(180deg,#2a1e12,#14100a); color: #ffd98a; font-size: 22px; cursor: pointer; }
.leftbtn:hover { border-color: #ffd24a; }
.leftbtn.discord { background: #5865f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M19.3 5.4A17 17 0 0 0 15 4l-.2.4a15 15 0 0 1 3.8 1.9 13 13 0 0 0-11-.0 15 15 0 0 1 3.8-1.9L11.2 4a17 17 0 0 0-4.3 1.4C4.200 9.400 3.500 13.300 3.800 17.200a17 17 0 0 0 5.200 2.600l1.100-1.800a11 11 0 0 1-1.700-.8l.4-.3a12 12 0 0 0 10.400 0l.4.3a11 11 0 0 1-1.700.8l1.100 1.800a17 17 0 0 0 5.200-2.600c.4-4.500-.7-8.400-3.100-11.800zM9.500 14.900c-1 0-1.800-.9-1.800-2s.8-2 1.800-2 1.800.9 1.800 2-.8 2-1.800 2zm5 0c-1 0-1.800-.9-1.800-2s.8-2 1.800-2 1.800.9 1.800 2-.8 2-1.800 2z'/%3E%3C/svg%3E") center / 26px no-repeat; border-color: #3b45b8; }
.wikiside { width: 190px; flex: none; }
.wikiside .arstate div { margin-top: 4px; font-size: 11px; color: #c9ced8; }
.window.wiki .aulist { height: 340px; } .window.ranking .body, .window.wiki .body, .window.calendar .body { padding: 6px; }
/* the panels start right at the edge of the page, as in the reference */
#me { left: 0 !important; top: 0 !important; border-top-left-radius: 0; }
#under { left: 0 !important; top: 96px !important; }
#mapbox { right: 0 !important; top: 0 !important; border-top-right-radius: 0; }
#chat { left: 0 !important; bottom: 0 !important; border-bottom-left-radius: 0; }
#dock { bottom: 0 !important; }
#menu.box { right: 0 !important; bottom: 0 !important; border-bottom-right-radius: 0; }
.leftcol { left: 0 !important; }
#menu.box { padding: 0 !important; gap: 0 !important; border-width: 0 !important; border-image: none !important; }
#bar.box { padding: 0 3px 0 !important; border-bottom: 0 !important; border-radius: 6px 6px 0 0; }
#bar #main { margin-bottom: 0; }
.leftcol { gap: 0 !important; top: 250px; }
.leftbtn { border-left-width: 0; border-radius: 0 8px 8px 0; }
/* small, fine buttons, flush with the edge */
.leftcol { left: 0 !important; gap: 2px !important; top: 240px !important; }
.leftbtn { width: 28px !important; height: 28px !important; font-size: 14px !important; border: 1px solid #4a3a22 !important; border-left-width: 0 !important; border-radius: 0 4px 4px 0 !important; background-color: #14100a; }
.leftbtn.discord { background-size: 18px !important; }
#menu.box { grid-template-columns: repeat(14, 30px) !important; gap: 1px !important; }
#menu .slot { width: 30px !important; height: 28px !important; }
#menu .slot img { width: 16px !important; height: 16px !important; }
/* final: menu with its own solid box, bar slots fitted, left buttons smaller */
#menu.box { background: hsl(225 14% 8% / .95) !important; border: 1px solid #4a3a22 !important; border-right: 0 !important; border-bottom: 0 !important; border-radius: 6px 0 0 0 !important; padding: 2px !important; gap: 2px !important; grid-template-columns: repeat(14, 30px) !important; }
#menu .slot { background: #11141a !important; border: 1px solid #5a4528 !important; border-radius: 4px !important; overflow: hidden; }
#menu .slot u, #menu .slot small { font-size: 8px !important; }
#bar.box { padding: 3px !important; }
#main { gap: 3px !important; align-items: stretch; }
#main .slot { width: 40px !important; height: 40px !important; }
#main .slot:first-child { width: 52px !important; margin-right: 4px !important; overflow: hidden; }
#main .slot:nth-child(6) { margin-left: 4px !important; }
#main .slot img { width: 32px !important; height: 32px !important; }
.leftbtn { width: 22px !important; height: 22px !important; font-size: 11px !important; }
.leftbtn.discord { background-size: 14px !important; }
.leftcol { gap: 1px !important; }
/* the bottom bar, as in the client: one dark strip across the page; skills in the middle, buttons on the right */
#taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: 48px; z-index: 3; border-top: 1px solid #5a4528;
  background: repeating-linear-gradient(135deg, #ffffff06 0 2px, #0000 2px 6px), linear-gradient(180deg, #1a1612, #0c0a08); box-shadow: 0 -4px 14px #0008; }
#dock { bottom: 4px !important; z-index: 4; }
#bar.box { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
#banner { position: absolute; bottom: 52px; }
#menu.box { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; bottom: 4px !important; right: 8px !important; z-index: 4; border-radius: 0 !important; }
#chat { bottom: 52px !important; border-bottom-left-radius: 6px; }
#main .slot, #menu .slot { background: #0d0b09 !important; border-color: #4a3a22 !important; }
#chat { bottom: 48px !important; border-bottom-left-radius: 0 !important; border-bottom: 0 !important; }
#taskbar { background: url(data/ui/taskbar_tile.png) repeat-x 0 0 / 256px 100% #0c0a08 !important; border-top: 0 !important; height: 46px !important; }
/* sizes as on the Metin bar: strip 37px, every slot and button 32px */
#taskbar { height: 37px !important; background-size: 256px 37px !important; }
#dock { bottom: 2px !important; }
#main { gap: 2px !important; }
#main .slot { width: 32px !important; height: 32px !important; border-radius: 2px !important; border-color: #6a5230 !important; }
#main .slot:first-child { width: 44px !important; margin-right: 6px !important; }
#main .slot img { width: 26px !important; height: 26px !important; }
#main .slot small { font-size: 8px !important; }
#menu.box { bottom: 2px !important; grid-template-columns: repeat(9, 32px) !important; gap: 2px !important; }
#menu .slot { width: 32px !important; height: 32px !important; border-radius: 16px !important; border-color: #6a5230 !important; background: radial-gradient(circle at 35% 30%, #2a2420, #0b0908) !important; }
#menu .slot img { width: 18px !important; height: 18px !important; }
#chat { bottom: 37px !important; }
#banner { bottom: 41px !important; }
/* icons fill their slots, as on the Metin bar */
#main .slot { width: 34px !important; height: 34px !important; padding: 0 !important; border: 1px solid #8a6a38 !important; background: #000 !important; }
#main .slot img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
#main .slot .glyph, #main .slot > span { font-size: 20px !important; }
#main .slot:first-child { width: 48px !important; }
#dock { bottom: 1px !important; }
#menu.box { bottom: 1px !important; grid-template-columns: repeat(14, 34px) !important; }
#menu .slot { width: 34px !important; height: 34px !important; border: 1px solid #8a6a38 !important; }
#menu .slot img { width: 22px !important; height: 22px !important; }
#menu .slot .glyph, #menu .slot > span { font-size: 18px !important; }
/* the right buttons: square like the skill slots, inside the strip */
#menu .slot { border-radius: 2px !important; background: #0b0908 !important; width: 32px !important; height: 32px !important; }
#menu.box { grid-template-columns: repeat(9, 32px) !important; gap: 2px !important; bottom: 2px !important; right: 6px !important; }
#main .slot { width: 32px !important; height: 32px !important; }
#main .slot:first-child { width: 44px !important; }
#dock { bottom: 2px !important; }
/* the bar starts where the chat ends: nothing under the chat */
#taskbar { left: max(300px, min(450px, calc(50vw - 262px))) !important; }
#chat { bottom: 0 !important; border-bottom-left-radius: 0 !important; border-bottom: 1px solid #5a4528 !important; }
#banner { bottom: 41px !important; }
.window.travel .pages { justify-content: flex-start; text-align: left; }
.mapnote { margin-top: 6px; }
.window.travel { min-width: 400px; }
.window.travel .maps { grid-template-columns: repeat(2, 1fr); }
.window.travel .map .picture { height: 150px; }
.window.travel { min-width: 0; }
.window.travel .map { display: block; } .window.travel .map .picture { width: auto; }
.equipment.tall{height:190px}
.rankface{width:22px;height:22px;object-fit:cover;vertical-align:middle;margin-right:6px;border:1px solid #8a6a38}
.leftbtn.horsebtn { background: #14100a url(data/ui/horse_btn.png) center / 24px no-repeat !important; border-color: #3f7a2a !important; }
#me{width:210px !important;padding:4px !important;gap:6px !important}#face{width:40px !important;height:40px !important}#me .who{font-size:12px}


/* inventory page buttons like the original: grey, the open page lighter */
.window.inventory .pagetabs, .window.inventory .invtabs:not(:first-child) { display: flex; gap: 4px; justify-content: center; margin: 6px 0; }
.window.inventory .invtabs .tab { width: 40px; height: 26px; font: bold 13px Tahoma, sans-serif; color: #9a9a96; cursor: pointer;
  background: linear-gradient(#343432, #1d1d1c); border: 1px solid #55554f; border-radius: 2px; }
.window.inventory .invtabs .tab.on { color: #fff; background: linear-gradient(#77776f, #4a4a45); border-color: #9a9a90; }
.window.inventory .invtabs .tab:hover { color: #fff; }

/* no yellow on the chat and the portrait: neutral greys */
#chat { border-color: #4a4a48 !important; border-bottom-color: #4a4a48 !important; }
.chattabs button { color: #b8b8b4 !important; }
.chattabs button.on { color: #fff !important; border-color: #77776f !important; background: #34342f !important; }
#chatinput { border-color: #4a4a48 !important; }
#chatlog { scrollbar-color: #666 #0000 !important; }
#face { border-color: #6b6b68 !important; }
#face span { color: #fff !important; border-color: #6b6b68 !important; }
.who b { color: #fff !important; }
#me { width: 250px !important; }

/* the Dungeons window */
.dungeons { display: flex; gap: 8px; height: 330px; }
.dgdetail { min-height: 0; }
.dgenter { margin-top: auto; padding: 8px; }
.dglist { width: 230px; overflow-y: auto; background: #0d0b09; border: 1px solid #3a2f20; }
.dghead { padding: 6px 8px; font-weight: bold; color: #d8d0c0; background: #1b1713; border-bottom: 1px solid #3a2f20; }
.dgrow { display: flex; gap: 6px; padding: 5px 6px; cursor: pointer; border-bottom: 1px solid #1d1913; }
.dgrow:hover { background: #1c1813; } .dgrow.on { background: #2b241a; box-shadow: inset 2px 0 0 #d8d0c0; }
.dgpic { width: 38px; height: 38px; flex: none; background: #000 center / cover; border: 1px solid #55554f; }
.dgname { display: flex; flex-direction: column; font-size: 12px; color: #d8d0c0; min-width: 0; }
.dgname span { color: #9a9a96; font-size: 11px; } .dgname em { font-style: normal; font-size: 11px; color: #7ee07a; }
.dgrow.locked .dgname em { color: #8a8a86; } .dgrow.locked { opacity: .65; }
.dgdetail { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.dgbanner { position: relative; height: 130px; background: #000 center / cover; border: 1px solid #3a2f20; }
.dgbanner b { position: absolute; left: 8px; bottom: 6px; font-size: 18px; color: #fff; text-shadow: 1px 1px 3px #000; }
.dglevel { position: absolute; right: 6px; top: 6px; padding: 1px 8px; background: #000b; border: 1px solid #77776f; color: #fff; font-size: 12px; }
.dgstats { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 8px; background: #0d0b09; border: 1px solid #3a2f20; font-size: 12px; color: #9a9a96; }
.dgstats b { color: #e8e8e4; text-align: right; }
.dgenter { margin-top: auto; padding: 10px; font-size: 14px; }


#main .slot:first-child { width: 32px !important; margin-right: 6px !important; }
#main .slot:nth-child(2) { width: 44px !important; }
.dungeons { height: 262px !important; } .dgbanner { height: 100px !important; }
.dungeons { height: auto !important; align-items: flex-start; }
.dglist { height: 330px; flex: none; } .dgdetail { flex: 1; } .dgenter { margin-top: 0 !important; }
.dgbanner { height: 110px !important; }
.dungeons { align-items: stretch !important; width: 100%; } .dgdetail { min-width: 300px; width: 330px; }
.window.dungeons { width: 600px !important; }

.aurow .auname { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; }
.rankface { width: 22px !important; height: 22px !important; flex: none; margin: 0 !important; border: 1px solid #55554f; }
.rankjobs { display: flex; gap: 4px; margin: 4px 0 6px; }
.rankjob { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 3px 0; background: #14110d; border: 1px solid #3a2f20; color: #b8b8b4; cursor: pointer; }
.rankjob img { width: 30px; height: 30px; object-fit: cover; } .rankall { font-size: 22px; line-height: 30px; }
.rankjob small { font-size: 11px; } .rankjob.on { border-color: #d8d0c0; background: #2b241a; color: #fff; }
#gatherbar { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); width: 240px; height: 22px; z-index: 900; background: #0d0b09ee; border: 1px solid #6b5230; pointer-events: none; }
#gatherbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#5aa0d8, #2a5f98); }
#gatherbar.hot i { background: linear-gradient(#f0c040, #c08010); }
#gatherbar span { position: absolute; inset: 0; text-align: center; font: bold 12px Tahoma, sans-serif; line-height: 22px; color: #fff; text-shadow: 1px 1px 2px #000; z-index: 1; }

#questbtn { position: fixed; right: 6px; top: 215px; width: 50px; height: 46px; padding: 0; z-index: 4; background: none; border: 0; cursor: pointer; }
#questbtn img { width: 46px; height: 42px; filter: drop-shadow(0 0 2px #000); }
#questbtn.ready img { animation: qpulse 1s infinite; } #questbtn.ready::after { content: '!'; position: absolute; right: 2px; top: 0; width: 16px; height: 16px; border-radius: 8px; background: #e03a2a; color: #fff; font: bold 12px/16px Tahoma; text-align: center; }
@keyframes qpulse { 50% { transform: scale(1.12); filter: drop-shadow(0 0 6px #ffd24a); } }
#tinfo { position: absolute; right: 6px; top: 5px; width: 20px; height: 20px; padding: 0; border: 1px solid #8a6a38; background: #2a1e12; color: #ffd98a; font: bold 13px Tahoma; cursor: pointer; }
.mi-head { display: flex; justify-content: space-between; padding: 4px 6px; color: #fff; } .mi-head span { color: #b8b8b4; }
.mi-stats { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 6px; background: #0d0b09; border: 1px solid #3a2f20; font-size: 12px; color: #9a9a96; } .mi-stats b { text-align: right; color: #e8e8e4; }
.mi-list { margin-top: 6px; max-height: 260px; overflow-y: auto; background: #0d0b09; border: 1px solid #3a2f20; }
.mi-title { padding: 4px 6px; font-weight: bold; color: #d8d0c0; background: #1b1713; }
.mi-row { display: flex; align-items: center; gap: 6px; padding: 2px 6px; font-size: 12px; color: #d8d0c0; border-bottom: 1px solid #1d1913; } .mi-row img { width: 24px; height: 24px; object-fit: contain; } .mi-row span { flex: 1; } .mi-row b { color: #ffd98a; }
.qb-card { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: #0d0b09; border: 1px solid #3a2f20; color: #d8d0c0; font-size: 12px; } .qb-card.done { border-color: #ffd24a; }
.qb-card b { font-size: 14px; color: #fff; }
.qb-bar { position: relative; height: 16px; background: #000; border: 1px solid #55554f; } .qb-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#5aa0d8, #2a5f98); } .qb-bar em { position: absolute; inset: 0; text-align: center; font-style: normal; line-height: 16px; color: #fff; }
.qb-card.done .qb-bar i { background: linear-gradient(#f0c040, #c08010); } .qb-reward { color: #9a9a96; } .qb-actions { display: flex; gap: 6px; }
.qb-next { margin: 8px 0 3px; color: #9a9a96; font-size: 11px; } .qb-row { padding: 3px 6px; font-size: 12px; color: #b8b8b4; border-bottom: 1px solid #1d1913; }
