/* Multiplayer: buttons of the target bar, group frames and window, question boxes, trade, equipment of others,
   world boss timer / list / result and the damage meter. Art pixels like game.css (zoomed by --px). */

/* ---------- target bar of a player (Metin2 target board) ---------- */
#target.pc { width: auto; min-width: 176px; }
#target .tbtns { gap: 2px; margin-top: 3px; }
#ui.compact #target.pc { width: auto; min-width: 176px; }
/* a duel challenge in the chat (ui.js duelNote): the PvP colour of the original's names, a click selects the challenger */
#chat .log div.duel-note { color: #ee36df; }
#chat .log div.duel-note:hover { color: #ff7af0; }

/* ---------- small menus at the mouse ---------- */
.ctx-menu { position: absolute; z-index: 9000; padding: 2px; min-width: 84px; }
.ctx-title { font-size: 7px; padding: 1px 4px 2px; margin-bottom: 1px; box-shadow: 0 1px 0 #3a2e22; white-space: nowrap; }
.ctx-item { font-size: 7px; line-height: 9px; padding: 1px 4px; cursor: pointer; white-space: nowrap; }
.ctx-item:hover { background: rgba(242, 196, 90, .14); color: #fff; }
.ctx-item.armed { color: #ff8a7a; }
/* the team's actions in the menu of a name (ui.js teamItems): the team's colour, a line above the first */
.ctx-item.team { color: #ff9a6a; }
.ctx-item.team.first { box-shadow: inset 0 1px 0 #5a3a28; }

/* ---------- question box (invitations) ---------- */
.ask-box { left: 50%; transform: translateX(-50%); width: 168px; z-index: 8500; }
.ask-box .ask-text { text-align: center; font-size: 8px; line-height: 10px; margin-bottom: 2px; }
.ask-box .ask-time { text-align: center; font-size: 6px; margin-bottom: 4px; }
.ask-box .ask-btns { gap: 4px; }

/* ---------- group frames (left, under the player frame) ---------- */
#party { position: absolute; left: 4px; top: 62px; width: 96px; display: flex; flex-direction: column; gap: 2px; }
#ui.compact #party { top: 86px; }
/* buff icons above (#affects, game.css): their remaining time hangs below the icons */
#affects:not(:empty) ~ #party { top: 71px; }
#ui.compact #affects:not(:empty) ~ #party { top: 95px; }
/* 8 icons per row: every further row 23 px lower */
#affects:has(> :nth-child(9)) ~ #party { top: 94px; }
#affects:has(> :nth-child(17)) ~ #party { top: 117px; }
#affects:has(> :nth-child(25)) ~ #party { top: 140px; }
#affects:has(> :nth-child(33)) ~ #party { top: 163px; }
#ui.compact #affects:has(> :nth-child(9)) ~ #party { top: 118px; }
#ui.compact #affects:has(> :nth-child(17)) ~ #party { top: 141px; }
#ui.compact #affects:has(> :nth-child(25)) ~ #party { top: 164px; }
#ui.compact #affects:has(> :nth-child(33)) ~ #party { top: 187px; }
#party .pt-head { display: flex; justify-content: space-between; align-items: center; height: 10px; padding: 0 3px; font-size: 7px; cursor: pointer;
  background: rgba(14, 11, 9, .72); box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--bronze-d); }
#party .pt-head:hover { box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--bronze); }
#party .pt-gear { width: 8px; height: 8px; background: var(--ic-gear) center / 8px 8px no-repeat; opacity: .8; }
#party .pt-row { padding: 2px 3px 3px; cursor: pointer; }
#party .pt-row:hover { box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--bronze-l), inset 0 0 0 2px var(--edge); }
#party .pt-row.far { opacity: .62; }
#party .pt-row.dead .bar > i { background: #5a4a44; }
#party .pt-name { display: flex; align-items: center; gap: 2px; height: 8px; font-size: 7px; line-height: 8px; white-space: nowrap; overflow: hidden; }
#party .pt-lv { color: var(--gold); flex: none; }
#party .pt-n { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#party .bar { height: 4px; margin-top: 2px; }
#party .pt-where { display: block; font-size: 6px; line-height: 6px; height: 6px; margin-top: 1px; white-space: nowrap; overflow: hidden; }
#party .pt-where:empty { display: none; }
#party .pt-auto { padding: 2px 3px 3px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #4f8a37; }
#party .pt-auto-t { font-size: 7px; line-height: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#party .pt-auto-n { font-size: 6px; line-height: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui #party .pt-auto-stop { width: 100%; height: auto; min-height: 12px; padding: 1px 3px; line-height: 8px; white-space: normal; overflow-wrap: anywhere; }
html.touch #ui #party .pt-auto-stop { min-height: calc(44px / var(--px)); }
.pt-crown { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 1px; vertical-align: -1px; background: var(--ic-crown) center / 8px 8px no-repeat; }

/* group window */
#party-win .pt-help { font-size: 7px; line-height: 9px; margin-bottom: 4px; }
#party-win .pt-wrow { display: grid; grid-template-columns: 1fr auto 30px 26px; gap: 3px; }
#party-win .pt-wrow > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#party-win .pt-wrow > :nth-child(3) { text-align: right; }
#party-win .pt-wrow .btn.small { min-width: 0; padding: 0 2px; }
#party-win .pt-opt { display: flex; justify-content: space-between; align-items: center; height: 13px; font-size: 7px; }
#party-win .pt-chips { gap: 2px; margin: 0; }
#party-win .keyhelp { margin: 3px 0 2px; line-height: 7px; }
#party-win .pt-inv { margin-top: 4px; }
#party-win .pt-inv input { flex: 1; min-width: 0; }
#party-win .pt-leave { width: 100%; margin-top: 4px; }

/* ---------- trade ---------- */
#trade { z-index: 600; }
#trade .tr-debt { margin-bottom: 3px; padding: 2px 4px; font-size: 7px; line-height: 8px; text-align: center;
  color: #ff8e86; background: rgba(130, 22, 18, .35); box-shadow: inset 0 0 0 1px #8c322c; }
#trade .tr-sides { display: flex; gap: 4px; }
#trade .tr-side { flex: 1; padding: 3px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px #2e251c; }
#trade .tr-side.accepted { box-shadow: inset 0 0 0 1px #3f8f3f; background: rgba(40, 80, 30, .18); }
#trade .tr-head { height: 9px; line-height: 9px; margin-bottom: 2px; padding: 0 1px; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#trade .tr-side.mine .tr-head { color: var(--gold); }
#trade .tr-ok { margin-left: auto; font-size: 7px; color: var(--green); }
/* 4 x 3 places like the bag: the pieces lie over the empty slots, 2-3 high for weapons and armour (ui/trade.js draw) */
#trade .tr-grid { display: grid; grid-template-columns: repeat(4, var(--slot)); grid-auto-rows: var(--slot); gap: 0; position: relative; width: max-content; margin: 0 auto; }
#trade .tr-gold { display: flex; align-items: center; gap: 3px; height: 12px; margin-top: 3px; }
#trade .tr-gold i { width: 9px; height: 9px; flex: none; background: var(--ic-coin) center / 9px 9px no-repeat; }
#ui #trade .tr-gold-in { width: 56px; }
#trade .tr-gold-v { font-size: 7px; color: var(--gold); }
#trade .tr-amount { display: flex; gap: 3px; align-items: center; margin-top: 4px; font-size: 7px; }
#trade .tr-amount .eq-btns { margin: 0; }
#trade .tr-amount > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#trade .keyhelp { margin-top: 4px; text-align: center; line-height: 7px; }
#trade .tr-btns { gap: 4px; margin-top: 4px; }
.inv-item.traded { opacity: .35; }

/* ---------- equipment of another player ---------- */
#inspect .ins-head { text-align: center; font-size: 7px; line-height: 9px; margin-bottom: 1px; }

/* ---------- world boss timer (top, left of the minimap) ---------- */
/* one width with the event box under it (also on small screens: "Wędkarstwo +10%" and its time need it) */
#wb-timer { position: absolute; right: 90px; top: 4px; width: 112px; padding: 3px 4px 4px; cursor: pointer; }
#wb-timer:hover { box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--bronze-l), inset 0 0 0 2px var(--edge), 0 2px 0 1px rgba(0, 0, 0, .45); }
#wb-timer.alive { box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #9a3a44, inset 0 0 0 2px var(--edge), 0 2px 0 1px rgba(0, 0, 0, .45); }
#wb-timer .wb-name { display: flex; align-items: center; gap: 3px; height: 9px; font-size: 7px; white-space: nowrap; }
#wb-timer .wb-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #ff8a94; }
#wb-timer .wb-lv { flex: none; font-size: 6px; color: var(--gold); }
#wb-timer .wb-bar { height: 6px; margin-top: 2px; }
#wb-timer .wb-bar .bt { line-height: 6px; font-size: 6px; }
#wb-timer .wb-sub { height: 7px; line-height: 7px; margin-top: 2px; font-size: 6px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wb-timer.rage .wb-n, #wb-timer.rage .wb-sub { animation: blink 1s steps(2) infinite; }
.wb-skull { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--ic-skull) center / 8px 8px no-repeat; }

/* events of the team (ui/events.js): under the boss timer, top set by the script; click = the event calendar */
#ev-box { position: absolute; right: 90px; top: 4px; width: 112px; padding: 3px 4px 4px; cursor: pointer; }
#ev-box.live { box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #448234, inset 0 0 0 2px var(--edge), 0 2px 0 1px rgba(0, 0, 0, .45); }
#ev-box:hover { box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--bronze-l), inset 0 0 0 2px var(--edge), 0 2px 0 1px rgba(0, 0, 0, .45); }
#ev-box.live:hover { box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #66b850, inset 0 0 0 2px var(--edge), 0 2px 0 1px rgba(0, 0, 0, .45); }
#ev-box .ev-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: 3px; min-height: 8px; line-height: 8px; font-size: 6px; color: var(--gold); white-space: nowrap; overflow: hidden; }
#ev-box .ev-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ev-dot { flex: none; display: inline-block; width: 4px; height: 4px; background: var(--green); box-shadow: 0 0 2px var(--green); animation: ec-pulse 1.4s ease-in-out infinite; }
@keyframes ec-pulse { 50% { opacity: .45; } }
/* one line per boost: icon, "EXP +50 %", its own time on the right, the draining bar under it; a time that does not
   fit beside the name moves under it (right-aligned) instead of cutting the name */
#ev-box .ev-row { display: flex; align-items: center; gap: 3px; margin-top: 2px; }
#ev-box .ev-ic { flex: none; width: 12px; height: 12px; background: #0f0c0a; box-shadow: inset 0 0 0 1px var(--c); }
#ev-box .ev-ic img { display: block; width: 12px; height: 12px; }
#ev-box .ev-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#ev-box .ev-r1 { display: flex; flex-wrap: wrap; align-items: center; column-gap: 3px; min-width: 0; }
#ev-box .ev-n { max-width: 100%; height: 8px; line-height: 8px; font-size: 7px; color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ev-box .ev-row.soon .ev-n { color: var(--text); }
#ev-box .ev-t { flex: none; margin-left: auto; height: 8px; line-height: 8px; font-size: 6px; color: var(--dim); white-space: nowrap; }
.ev-bar { height: 2px; margin-top: 1px; background: #0f0c0a; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.ev-bar i { display: block; height: 100%; background: var(--c, var(--green)); }

/* two-pane Event Calendar (#ev-win): 7-column Mo-So 4-week calendar sheet left, status + chosen day right */
#ev-win > .win-body { display: grid; grid-template-columns: 223px minmax(0, 1fr); column-gap: 7px; align-items: start; }
#ev-win .ec-cal { width: 223px; }
#ev-win .ec-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
#ev-win .ec-mhead { flex: 1; min-width: 0; text-align: center; }
#ev-win .ec-mtitle { font-size: 8px; line-height: 9px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ev-win .ec-msub { font-size: 6px; line-height: 7px; color: var(--dim); }
#ev-win .ec-arr { min-width: 16px; height: 13px; padding: 0 4px; }
#ev-win .ec-arr[disabled] { opacity: .35; pointer-events: none; }
#ev-win .ec-wds { display: grid; grid-template-columns: repeat(7, 31px); gap: 1px; margin-bottom: 1px; }
#ev-win .ec-wd { height: 11px; line-height: 11px; padding: 0 2px; text-align: center; font-size: 7px; color: var(--dim); background: #211912; box-shadow: inset 0 0 0 1px #382b1e; white-space: nowrap; overflow: hidden; }
#ev-win .ec-wd.wknd { color: var(--gold); }
#ev-win .ec-grid { display: grid; grid-template-columns: repeat(7, 31px); grid-template-rows: repeat(4, 36px); gap: 1px; }
#ev-win .ec-cell { display: flex; flex-direction: column; padding: 2px 3px; cursor: pointer; background: #130f0c; box-shadow: inset 0 0 0 1px #241c14; overflow: hidden; }
#ev-win .ec-cell.has { background: #1c1610; box-shadow: inset 0 0 0 1px #3c2e20; }
#ev-win .ec-cell.past { background: #100c09; box-shadow: inset 0 0 0 1px #1c1610; }
#ev-win .ec-cell.today { background: #271d10; box-shadow: inset 0 0 0 1px #b88a32; }
#ev-win .ec-cell.live { box-shadow: inset 0 0 0 1px #4b8f38; }
#ev-win .ec-cell:hover { background: #241b12; box-shadow: inset 0 0 0 1px var(--bronze-l); }
#ev-win .ec-cell.chosen { background: #312414; box-shadow: inset 0 0 0 1px #ffe082, inset 0 0 5px rgba(242, 196, 90, .24); }
#ev-win .ec-dtop { display: flex; align-items: center; justify-content: space-between; height: 8px; }
#ev-win .ec-dnum { font-size: 7px; line-height: 8px; color: #8c7e69; text-shadow: var(--ol); white-space: nowrap; }
#ev-win .ec-cell.has .ec-dnum { color: var(--text); }
#ev-win .ec-cell.past .ec-dnum { color: #594e40; }
#ev-win .ec-cell.today .ec-dnum { color: var(--gold); }
#ev-win .ec-dot { flex: none; width: 3px; height: 3px; background: var(--gold); }
#ev-win .ec-dot.live { background: var(--green); box-shadow: 0 0 2px var(--green); animation: ec-pulse 1.4s ease-in-out infinite; }
#ev-win .ec-ics { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2px; min-height: 0; }
#ev-win .ec-cell.past .ec-ics { opacity: .26; filter: grayscale(.65); }
#ev-win .ec-mi { position: relative; display: block; flex: none; box-shadow: 0 1px 0 var(--c); }
#ev-win .ec-mi img { display: block; }
#ev-win .ec-ics.n1 .ec-mi, #ev-win .ec-ics.n1 .ec-mi img { width: 16px; height: 16px; }
#ev-win .ec-ics.n2 .ec-mi, #ev-win .ec-ics.n2 .ec-mi img { width: 11px; height: 11px; }
#ev-win .ec-ics.n4 { display: grid; grid-template-columns: repeat(2, 10px); grid-auto-rows: 10px; gap: 2px 3px; place-content: center; }
#ev-win .ec-ics.n4 .ec-mi, #ev-win .ec-ics.n4 .ec-mi img { width: 10px; height: 10px; }
#ev-win .ec-cnt { font-size: 6px; line-height: 10px; text-align: center; color: var(--gold); }
#ev-win .ec-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 3px; padding: 0 2px; }
#ev-win .ec-li { display: inline-flex; align-items: center; gap: 2px; font-size: 6px; line-height: 8px; color: var(--dim); white-space: nowrap; }
#ev-win .ec-li i { flex: none; width: 4px; height: 4px; }

/* right pane of the calendar */
#ev-win .ec-side { display: flex; flex-direction: column; gap: 5px; max-height: 202px; overflow-y: auto; overflow-x: hidden; min-width: 0; }
#ev-win .ec-status { padding: 3px 4px; background: #19130e; box-shadow: inset 0 0 0 1px #3a2d1f; }
#ev-win .ec-status.live { background: #152013; box-shadow: inset 0 0 0 1px #448234; }
#ev-win .ec-status.next { cursor: pointer; }
#ev-win .ec-status.next:hover { background: #211912; box-shadow: inset 0 0 0 1px var(--bronze-l); }
#ev-win .ec-sh { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 7px; line-height: 8px; margin-bottom: 2px; }
#ev-win .ec-sh.live { color: var(--green); }
#ev-win .ec-sh-l { display: inline-flex; align-items: center; gap: 3px; }
#ev-win .ec-in { color: var(--text); white-space: nowrap; }
#ev-win .ec-srow { display: flex; gap: 4px; align-items: flex-start; margin-top: 2px; cursor: pointer; }
#ev-win .ec-stx { flex: 1; min-width: 0; font-size: 7px; line-height: 8px; }
#ev-win .ec-sl1 { display: flex; justify-content: space-between; gap: 4px; }
#ev-win .ec-rem { color: var(--green); white-space: nowrap; }
#ev-win .ec-sname { color: var(--text); }
#ev-win .ec-seff { color: #8ab98e; font-size: 6px; line-height: 7px; }
#ev-win .ec-dhead { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 2px; }
#ev-win .ec-dtitle { min-width: 0; color: var(--gold); font-size: 8px; line-height: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ev-win .ec-tag, #ev-win .ec-goto { flex: none; padding: 0 3px; height: 9px; line-height: 9px; font-size: 6px; color: var(--dim); background: #211912; box-shadow: inset 0 0 0 1px #3a2d1f; white-space: nowrap; }
#ev-win .ec-tag.today { color: var(--gold); box-shadow: inset 0 0 0 1px #8c6a28; }
#ev-win .ec-goto { cursor: pointer; color: #dcc89e; }
#ev-win .ec-goto:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--bronze-l); }
#ev-win .ec-none { font-size: 7px; line-height: 8px; }
#ev-win .ec-card { display: flex; gap: 4px; align-items: flex-start; padding: 3px 4px 3px 5px; margin-top: 2px; background: #1c1610; box-shadow: inset 2px 0 0 var(--c), inset 0 0 0 1px #382c1e; }
#ev-win .ec-card.on { background: #162114; box-shadow: inset 2px 0 0 var(--c), inset 0 0 0 1px #448234; }
#ev-win .ec-card.past { opacity: .55; }
#ev-win .ec-ic { flex: none; width: 16px; height: 16px; background: #0f0c0a; box-shadow: inset 0 0 0 1px var(--bronze-d); }
#ev-win .ec-ic img { display: block; width: 16px; height: 16px; }
#ev-win .ec-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 7px; line-height: 8px; }
#ev-win .ec-cl1 { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
#ev-win .ec-cname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ev-win .ec-val { flex: none; color: var(--green); white-space: nowrap; }
#ev-win .ec-cwhen { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 4px; }
#ev-win .ec-ctime { color: var(--text); white-space: nowrap; }
#ev-win .ec-st { white-space: nowrap; color: var(--dim); font-size: 6px; }
#ev-win .ec-st.on { color: var(--green); }
#ev-win .ec-eff { color: #8ab98e; font-size: 6px; line-height: 7px; margin-top: 1px; }
#ev-win .ec-usec { margin-top: 5px; color: var(--gold); font-size: 7px; line-height: 8px; }
#ev-win .ec-ucard { display: flex; gap: 4px; align-items: center; padding: 2px 4px 2px 5px; margin-top: 2px; cursor: pointer; background: #17120e; box-shadow: inset 2px 0 0 var(--c), inset 0 0 0 1px #2f251a; }
#ev-win .ec-ucard:hover { background: #221a12; box-shadow: inset 2px 0 0 var(--c), inset 0 0 0 1px var(--bronze-l); }
#ev-win .ec-uic { flex: none; width: 14px; height: 14px; background: #0f0c0a; box-shadow: inset 0 0 0 1px var(--bronze-d); }
#ev-win .ec-uic img { display: block; width: 14px; height: 14px; }
#ev-win .ec-utxt { flex: 1; min-width: 0; font-size: 7px; line-height: 8px; }
#ev-win .ec-utime { font-size: 6px; line-height: 7px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* notes for everybody who was not in the fight (under the boss timer, fade out by themselves) */
#wb-notes { position: absolute; right: 90px; top: 38px; width: 124px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
#wb-notes .wb-note { padding: 2px 4px 3px; animation: wb-note-in .25s ease-out; transition: opacity .5s; }
#wb-notes .wb-note.out { opacity: 0; }
#wb-notes .wb-note-t { display: flex; align-items: center; gap: 3px; height: 9px; font-size: 7px; color: #ff8a94; white-space: nowrap; overflow: hidden; }
#wb-notes .wb-note-t span { overflow: hidden; text-overflow: ellipsis; }
#wb-notes .wb-note.kill .wb-note-t { color: var(--gold); }
#wb-notes .wb-note-s { font-size: 6px; line-height: 7px; height: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes wb-note-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* list of all world bosses */
#wb-win .wb-list { max-height: 180px; overflow-y: auto; margin-bottom: 3px; }
#wb-win .wb-row { padding: 2px 3px 3px; margin-bottom: 2px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px #2e251c; }
#wb-win .wb-row.cur { box-shadow: inset 0 0 0 1px var(--bronze); }
#wb-win .wb-row.alive { background: rgba(120, 30, 40, .22); }
#wb-win .wb-r1 { display: flex; gap: 4px; align-items: baseline; font-size: 7px; line-height: 9px; }
#wb-win .wb-r1 .wb-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ff8a94; }
#wb-win .wb-st { min-width: 30px; text-align: right; color: var(--text); }
#wb-win .wb-st.on { color: #ff6a7a; }
#wb-win .wb-r2 { font-size: 6px; line-height: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#wb-win .keyhelp { line-height: 7px; }

/* result after a kill */
#wb-result { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); width: 252px; max-width: calc(100% - 8px); padding: 6px 8px 7px; z-index: 7000; }
#wb-result .wb-res-title { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 10px; color: #ff8a94; }
#wb-result .wb-res-map { text-align: center; font-size: 7px; margin: 1px 0 4px; }
#wb-result .wb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-bottom: 4px; }
#wb-result .wb-stat { padding: 2px 1px; text-align: center; font-size: 7px; line-height: 8px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px #2e251c; }
#wb-result .wb-stat .dim { font-size: 6px; }
#wb-result .wb-top { display: flex; gap: 3px; height: 9px; line-height: 9px; font-size: 7px; padding: 0 2px; }
#wb-result .wb-top:nth-child(odd) { background: rgba(0, 0, 0, .2); }
#wb-result .wb-rank { width: 10px; color: var(--dim); }
#wb-result .wb-tn { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#wb-result .wb-tp { width: 30px; text-align: right; }
#wb-result .wb-last { text-align: center; font-size: 6px; margin-top: 3px; }
#wb-result .wb-mine { margin-top: 4px; padding: 3px 4px; font-size: 7px; line-height: 9px; background: rgba(242, 196, 90, .07); box-shadow: inset 0 0 0 1px var(--bronze-d); }
#wb-result .wb-reward { margin-top: 3px; }
#wb-result .wb-rw-head { font-size: 6px; line-height: 7px; margin-bottom: 2px; }
#wb-result .wb-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 3px; }
#wb-result .wb-chip { display: inline-flex; align-items: center; gap: 2px; height: 12px; padding: 0 4px 0 1px; color: var(--green); background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px #3a3424; }
#wb-result .wb-chip img { width: 10px; height: 10px; object-fit: contain; }
#wb-result .wb-loots { display: flex; flex-wrap: wrap; gap: 2px; }
#wb-result .wb-loot { --slot: 22px; animation: wb-loot-in .35s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 70ms + .15s); }
#wb-result .wb-loot img.ic { left: 2px; top: 2px; width: 18px; height: 18px; }
#wb-result .wb-loot .rar-shine { left: 2px; top: 2px; width: 18px; height: 18px !important; }
@keyframes wb-loot-in { from { opacity: 0; transform: translateY(-4px) scale(.6); } to { opacity: 1; transform: none; } }
#wb-result .wb-res-btns { gap: 4px; margin-top: 5px; }
#wb-result .wb-emps { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 3px; font-size: 7px; line-height: 8px; }
#wb-result .wb-bless { margin-top: 2px; text-align: center; font-size: 6px; line-height: 7px; color: var(--gold); }
#wb-result .wb-res-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#wb-result .wb-res-btns .btn { padding-left: 3px; padding-right: 3px; white-space: nowrap; }
#wb-timer .wb-rb { height: 5px; margin-top: 1px; }
#wb-timer .wb-rb > i { background: linear-gradient(#c88cff, #6a28d8); }
#wb-timer .wb-rb .bt { line-height: 5px; font-size: 5px; }
#wb-win .wb-mrow2 { margin-top: 2px; font-size: 7px; line-height: 8px; }
#wb-win .wb-mrow2 .dim { font-size: 6px; line-height: 7px; }
#wb-win .eq-btns { margin-top: 4px; }

/* ---------- world boss: the box while the Kolosseum is open, the countdown, the title of the appearance ---------- */
#wb-call { position: absolute; left: 50%; top: 106px; transform: translateX(-50%); width: 200px; padding: 5px 7px 6px; z-index: 6;
  background: linear-gradient(180deg, rgba(92, 18, 24, .55), rgba(20, 12, 10, .2) 60%), var(--panel, #17110d);
  box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #c0484f, inset 0 0 0 2px var(--edge), 0 0 10px rgba(255, 70, 60, .45);
  animation: wb-call-in .45s ease-out; }
#wb-call::after { content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 1px #ff6a72, 0 0 18px rgba(255, 90, 60, .75); animation: glow-in 2.2s ease-in-out infinite .45s; }
#wb-call .wc-top { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 5px; align-items: center; }
#wb-call .wc-emb { width: 24px; height: 30px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 0 3px rgba(255, 90, 60, .85)); animation: wb-emb 2.2s ease-in-out infinite; }
#wb-call .wc-head { min-width: 0; }
#wb-call .wc-kick { font-size: 6px; line-height: 7px; letter-spacing: 2px; text-transform: uppercase; color: #ff9a7a; }
#wb-call .wc-name { font-size: 12px; line-height: 13px; color: #ffe2a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 4px rgba(255, 90, 50, .7), 0 1px 0 #000; }
#wb-call .wc-time { text-align: right; min-width: 50px; }
#wb-call .wc-tl { font-size: 6px; line-height: 7px; color: var(--dim); white-space: nowrap; }
#wb-call .wc-t { font-size: 15px; line-height: 15px; color: var(--gold); text-shadow: 0 1px 0 #000; }
#wb-call .wc-bar { width: 56px; height: 7px; margin-top: 2px; }
#wb-call .wc-bar .bt { line-height: 7px; font-size: 6px; }
#wb-call .wc-mechs { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
#wb-call .wc-chip { padding: 0 3px; font-size: 6px; line-height: 9px; color: #e2c8ff; background: rgba(90, 40, 140, .3); box-shadow: inset 0 0 0 1px rgba(190, 140, 255, .45); }
#wb-call .wc-sub { margin-top: 3px; font-size: 6px; line-height: 7px; color: #e8dcc4; }
#wb-call .wc-btns { gap: 4px; margin-top: 5px; }
@keyframes wb-call-in { from { opacity: 0; translate: 0 -8px; scale: 1.06; } }
@keyframes wb-emb { 50% { translate: 0 -1px; } }
#ui.compact #wb-call { top: 48px; }
/* the timer while the Kolosseum is open and the call was put off ("Später"): it glows and has its own button */
#wb-timer.open::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--gold), 0 0 8px rgba(255, 200, 90, .6); animation: glow-in 1.6s ease-in-out infinite; }
#wb-timer .wb-tjoin { width: 100%; height: 10px; margin-top: 2px; font-size: 6px; line-height: 8px; padding: 0; }
#wb-count { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); text-align: center; pointer-events: none; z-index: 5;
  text-shadow: 0 0 2px #000, 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; }
#wb-count .wb-c-name { font-size: 11px; color: #ff8a94; }
#wb-count .wb-c-time { font-size: 26px; line-height: 24px; color: var(--gold); }
#wb-count .wb-c-time.soon { color: #ff5a4a; animation: wb-pulse .5s ease-in-out infinite alternate; }
#wb-count .wb-c-sub { font-size: 7px; color: #e8dcc4; }
#wb-count .wb-c-mech { font-size: 7px; color: #c8a8ff; margin-top: 1px; width: 300px; }
@keyframes wb-pulse { to { scale: 1.12; } }
#wb-title { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); text-align: center; pointer-events: none; z-index: 8; animation: wb-title-in 1s ease-out;
  text-shadow: 0 0 6px rgba(255, 60, 40, .8), 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000; white-space: nowrap; }
#wb-title .wb-t-kicker { font-size: 9px; letter-spacing: 3px; color: #ffb070; }
#wb-title .wb-t-name { font-size: 30px; line-height: 28px; color: #ffe2a0; }
#wb-title .wb-t-mech { font-size: 8px; color: #e8c8ff; margin: 2px auto 0; white-space: normal; width: 320px; max-width: 100%; }
@keyframes wb-title-in { from { opacity: 0; scale: 1.6; } 60% { opacity: 1; scale: .96; } }

/* ---------- damage meter ---------- */
#meter .mt-bar { display: flex; justify-content: space-between; gap: 2px; margin-bottom: 3px; }
#meter .mt-chips { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; }
#meter .mt-chip { text-align: center; }
#meter .mt-chip { height: 9px; line-height: 9px; padding: 0 3px; font-size: 6px; color: var(--dim); cursor: pointer; background: rgba(0, 0, 0, .35); }
#meter .mt-chip:hover { color: var(--text); }
#meter .mt-chip.on { color: var(--gold); box-shadow: inset 0 -1px 0 var(--gold-d); }
#meter .mt-rows { max-height: 110px; overflow-y: auto; }
#meter .mt-row { position: relative; display: flex; justify-content: space-between; gap: 3px; height: 10px; line-height: 10px; padding: 0 2px; margin-bottom: 1px;
  font-size: 7px; background: rgba(0, 0, 0, .42); }
#meter .mt-fill { position: absolute; left: 0; top: 0; bottom: 0; opacity: .5; }
#meter .mt-name, #meter .mt-val { position: relative; white-space: nowrap; text-shadow: var(--ol); }
#meter .mt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#meter .mt-face { position: relative; flex: none; width: 10px; height: 10px; margin-left: -2px; margin-right: -1px; }
#meter .mt-row.me .mt-name { color: var(--gold); }
#meter .mt-pct { color: #d8cdb6; }
#meter .mt-empty { font-size: 7px; padding: 3px 1px; }
#meter .mt-foot { display: flex; align-items: center; gap: 3px; margin-top: 2px; font-size: 6px; }
/* (boss, time and total wrap onto a second line rather than being cut: "König Wobba · 3:25 · 7,27 Mio.") */
#meter .mt-ftext { flex: 1; min-width: 0; text-align: center; line-height: 7px; overflow-wrap: anywhere; }
#meter .mt-reset { flex-shrink: 0; }
/* ---------- quick switches of the colosseum (ui/wbquick.js): under the damage meter, no X ---------- */
#wb-quick { right: 4px; bottom: 52px; left: auto; top: auto; width: 132px; }
#ui.compact #wb-quick { bottom: 98px; }
#wb-quick .wq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
/* (on = green like the switches of the options window, off = grey; no dot: "Schadensmesser" / "Contor de daune" need the room) */
#wb-quick .wq-sw { display: flex; align-items: center; justify-content: center; min-width: 0; height: 11px; padding: 0 2px; font-size: 6px; color: var(--dim);
  cursor: pointer; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px #2a2018; }
#wb-quick .wq-sw:hover { color: var(--text); }
#wb-quick .wq-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wb-quick .wq-sw.on { color: #b8ff94; background: linear-gradient(#2e4a2288, #1c2f1588); box-shadow: inset 0 0 0 1px #4f8a37; }

/* ---------- chat ---------- */
#chat .ch-party-tag { color: #7dff9a; }
#chat .ch-emp-tag { color: #ffa98a; }
#chat .ch-flag { display: inline-block; width: 10px; height: 6px; margin-right: 2px; vertical-align: -1px; }
/* the trade channel (game/tradechat.js): its tag in turquoise, the line like the other chat lines */
#chat .ch-trade-tag { color: #5fe0c8; }
#chat .log div.ch-trade { color: var(--text); }
/* the names of chat lines (ui/chatname.js): click = message, right click = options; brighter under the mouse */
#chat .log .ch-who:hover { filter: brightness(1.3); }
/* the Namensschild-Effekt in the chat: the letters (.nt-tx) painted in its colours over a copy of the name (::before,
   the same cell of a grid) that carries the outline and the glow - text-shadow on the painted letters themselves would
   cover their paint. Static; the band of light (.sw) runs on a few names at a time (sweepTick) */
#chat .log .ch-nt { display: inline-grid; white-space: nowrap; vertical-align: baseline; }
#chat .log .ch-nt::before { content: attr(data-t); grid-area: 1 / 1; color: transparent; text-shadow: 1px 1px 0 var(--ink), 0 0 2px var(--nt-g); pointer-events: none; }
#chat .log .ch-nt > .nt-tx { grid-area: 1 / 1; color: transparent; text-shadow: none;
  background: linear-gradient(100deg, transparent 42%, var(--nt-b) 50%, transparent 58%) 100% 0 / 300% 100% no-repeat, var(--nt-f);
  -webkit-background-clip: text; background-clip: text; }
#chat .log .ch-nt.sw > .nt-tx { animation: ch-nt-sweep 1s linear; }
@keyframes ch-nt-sweep { from { background-position: 100% 0, 0 0; } to { background-position: 0 0, 0 0; } }
