#requests { position: fixed; z-index: 9; left: 50%; top: calc(10rem + var(--sat)); transform: translateX(-50%); display: flex; flex-direction: column; gap: .6rem; width: 36rem; max-width: calc(100vw - 2rem); pointer-events: none; font-family: var(--sans); }
.rq-card { position: relative; pointer-events: auto; padding: .4rem 1rem .9rem; color: var(--ink); border: 1rem solid transparent; border-image: url(../assets/ui/dark/tip.png) 16 fill / 1rem; box-shadow: 0 .6rem 1.8rem rgba(0,0,0,.6); }
.rq-card .rq-t { display: block; font: 700 max(13px, 1.5rem)/1.3 var(--sans); color: var(--brass-hi); }
.rq-card p { margin: .2rem 0 .7rem; font: 400 max(12px, 1.3rem)/1.4 var(--sans); color: var(--ink); }
.rq-card p b { color: #fff; }
.rq-btns { display: flex; gap: .8rem; }
.rq-btns button { flex: 1; min-height: 3.6rem; min-width: 0; padding: 0 1rem; border: 1rem solid transparent; border-image: url(../assets/ui/dark/btn.png) 20 fill / 1rem; border-radius: 0; background: none; font: 700 max(12px, 1.3rem)/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.rq-btns button.primary { border-image-source: url(../assets/ui/dark/btn_primary.png); color: #1a1206; }
.rq-btns button:hover { border-image-source: url(../assets/ui/dark/btn_hover.png); } .rq-btns button.primary:hover { border-image-source: url(../assets/ui/dark/btn_primary_hover.png); }
.rq-bar { position: absolute; left: 0; right: 0; bottom: -.2rem; height: .3rem; background: rgba(0,0,0,.5); overflow: hidden; }
.rq-bar i { display: block; height: 100%; background: var(--brass-hi); transform-origin: 0 50%; animation: rq-run linear forwards; }
@keyframes rq-run { from { transform: scaleX(1); } to { transform: scaleX(0); } }
body.touch #requests { top: calc(5.4rem + var(--sat)); width: 32rem; }
#pmenu { position: fixed; z-index: 10; min-width: 19rem; padding: .2rem; color: var(--ink); font-family: var(--sans); border: .8rem solid transparent; border-image: url(../assets/ui/dark/tip.png) 16 fill / .8rem; box-shadow: 0 .6rem 1.8rem rgba(0,0,0,.6); }
#pmenu header { display: flex; align-items: baseline; gap: .8rem; padding: .2rem .8rem .5rem; }
#pmenu header b { font: 700 max(13px, 1.5rem)/1.3 var(--sans); color: var(--brass-hi); white-space: nowrap; }
#pmenu header small { font: 400 max(10px, 1.15rem)/1.3 var(--sans); color: var(--ink3); white-space: nowrap; }
#pmenu button { display: block; width: 100%; margin: .2rem 0; padding: .4rem 1rem; min-height: 3.6rem; text-align: left; border: .8rem solid transparent; border-image: url(../assets/ui/dark/row.png) 16 fill / .8rem; border-radius: 0; background: none; font: 600 max(12px, 1.35rem)/1.3 var(--sans); color: var(--ink); cursor: pointer; }
#pmenu button:hover { border-image-source: url(../assets/ui/dark/row_on.png); }
#pmenu button[data-act="kick"] { color: #ff9a8a; }
#party { position: fixed; z-index: 3; left: calc(1.6rem + var(--sal)); top: calc(7.4rem + var(--sat)); width: 23rem; display: flex; flex-direction: column; gap: .3rem; font-family: var(--sans); color: var(--ink); pointer-events: none; }
#party header { pointer-events: auto; cursor: pointer; align-self: flex-start; padding: 0 .8rem; font: 700 max(11px, 1.3rem)/1.9 var(--sans); color: var(--brass-hi); text-shadow: 0 1px 2px #000; background: rgba(10,8,6,.62); border: 1px solid rgba(216,184,113,.35); }
#party header small { color: var(--ink2); font-weight: 600; }
.pf-loot { pointer-events: auto; align-self: flex-start; display: flex; flex-direction: column; gap: .2rem; max-width: 100%; }
.pf-loot > button { min-height: 0; padding: .1rem .7rem; font: 600 max(10px, 1.15rem)/1.7 var(--sans); color: var(--ink2); background: rgba(10,8,6,.62); border: 1px solid rgba(216,184,113,.25); border-image: none; text-align: left; }
.pf-loot > button b { color: #ffe3a3; } .pf-loot > button i { font-style: normal; color: var(--brass-hi); }
.pf-loot > button[aria-disabled] { cursor: default; }
.pf-lopts { display: flex; flex-direction: column; gap: .2rem; width: 23rem; max-width: calc(100vw - 2rem); }
.pf-lopts button { min-height: 0; display: grid; gap: .1rem; padding: .35rem .7rem; text-align: left; background: rgba(10,8,6,.88); border: 1px solid rgba(216,184,113,.3); border-image: none; }
.pf-lopts button b { font: 700 max(11px, 1.25rem)/1.3 var(--sans); color: var(--ink); }
.pf-lopts button small { font: 400 max(10px, 1.05rem)/1.3 var(--sans); color: var(--ink2); white-space: normal; }
.pf-lopts button.on { border-color: var(--brass-hi); } .pf-lopts button.on b { color: var(--brass-hi); }
.pf-row { pointer-events: auto; position: relative; display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .35rem .6rem .45rem; text-align: left; background: rgba(10,8,6,.66); border: 1px solid rgba(216,184,113,.28); border-radius: 0; color: var(--ink); cursor: pointer; font-family: var(--sans); }
.pf-row:hover { border-color: var(--brass-hi); }
.pf-n { display: flex; align-items: baseline; gap: .5rem; min-width: 0; }
.pf-n b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 max(12px, 1.45rem)/1.3 var(--sans); color: #b9f0c4; text-shadow: 0 1px 2px #000; }
.pf-n small { flex: none; font: 600 max(10px, 1.15rem)/1.3 var(--sans); color: var(--ink2); }
.pf-lead { flex: none; font-style: normal; color: #ffd76a; font-size: max(10px, 1.2rem); }
.pf-bar { position: relative; display: none; height: max(6px, 1.1rem); background: #1a0b0a; border: 1px solid #000; }
.pf-row.live .pf-bar { display: block; }
.pf-hp { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#e2473d, #9c1d1a); transition: width .25s; }
.pf-es { position: absolute; left: 0; top: 0; height: 35%; z-index: 1; background: #8fd6ff; transition: width .25s; }
.pf-at { font: 400 max(10px, 1.15rem)/1.25 var(--sans); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.pf-row.live .pf-at { display: none; }
.pf-row.off { opacity: .6; } .pf-row.off .pf-n b { color: var(--ink3); }
.pf-row.dead .pf-n b { color: #ff7a6a; } .pf-row.dead .pf-hp { width: 0 !important; }
body.touch #party { left: calc(.6rem + var(--sal)); top: calc(8.6rem + var(--sat)); width: 15.5rem; gap: .2rem; }
body.touch .pf-row { padding: .2rem .5rem .3rem; }
body.touch .pf-n b { font-size: max(11px, 1.25rem); } body.touch #party header { font-size: max(10px, 1.15rem); } body.touch .pf-bar { height: max(5px, .9rem); }
#tradewin { left: 2rem; top: 8rem; width: 52rem; max-width: calc(100vw - 4rem); max-height: calc(100vh - 10rem); z-index: 7; }
.trd-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.2rem 1.8rem .4rem; }
.trd-side h4 { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .5rem; font: 700 max(12px, 1.35rem)/1.3 var(--sans); color: var(--brass-hi); }
.trd-st { margin-left: auto; font: 600 max(10px, 1.15rem)/1.3 var(--sans); font-style: normal; color: var(--ink3); }
.trd-st.lock { color: #ffd76a; } .trd-st.ok { color: #8fe39b; }
.trd-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; padding: .7rem; border: .8rem solid transparent; border-image: url(../assets/ui/dark/inset.png) 16 fill / .8rem; }
.trd-grid .cell { aspect-ratio: 1; width: 100%; min-width: 0; }
.trd-grid .cell.empty { opacity: .45; cursor: default; }
.trd-grid .cell > :is(img, svg) { max-width: 82%; max-height: 82%; }
.trd-side.locked .trd-grid { box-shadow: inset 0 0 0 2px rgba(255,215,106,.55); }
.trd-gold { display: flex; align-items: center; gap: .6rem; margin: .5rem 0 0 !important; font: 700 max(12px, 1.35rem)/1 var(--sans); color: #ffd76a; }
.trd-gold input { width: 11rem; height: 3.2rem; padding: 0 .8rem; font: 600 14px/1 var(--sans); color: var(--ink); background: none; border: .8rem solid transparent; border-image: url(../assets/ui/dark/input.png) 16 fill / .8rem; outline: none; }
.trd-ask { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .4rem 1.8rem 0; padding: .6rem 1rem; background: rgba(0,0,0,.35); border: 1px solid rgba(216,184,113,.3); font: 600 max(12px, 1.3rem)/1.3 var(--sans); }
.trd-ask input { width: 7rem; height: 3.2rem; padding: 0 .8rem; font: 600 14px/1 var(--sans); color: var(--ink); background: none; border: .8rem solid transparent; border-image: url(../assets/ui/dark/input.png) 16 fill / .8rem; outline: none; }
.trd-ask small { color: var(--ink3); }
.trd-hint { margin: .8rem 1.8rem 0 !important; font: 400 max(11px, 1.2rem)/1.45 var(--sans); color: var(--ink3); }
.trd-btns { display: flex; gap: 1rem; padding: 1rem 1.8rem 1.6rem; }
.trd-btns button { flex: 1; min-width: 0; }
body.touch #tradewin { left: calc(.8rem + var(--sal)); right: calc(58% + .2rem); top: calc(.8rem + var(--sat)); bottom: calc(.8rem + var(--sab)); width: auto; max-width: none; max-height: none; overflow-y: auto; touch-action: pan-y; }
body.touch .trd-body { flex-direction: row; gap: .8rem; padding: .5rem 1rem 0; }
body.touch .trd-side { flex: 1 1 0; min-width: 0; }
body.touch .trd-side h4 { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: .3rem; font-size: max(11px, 1.25rem); white-space: nowrap; overflow: hidden; }
body.touch .trd-st { margin-left: 0; }
body.touch .trd-grid { grid-template-columns: repeat(3, 1fr); gap: .3rem; padding: .3rem; }
body.touch .trd-hint { display: none; }
body.touch .trd-btns { padding: .5rem 1rem .7rem; gap: .6rem; }
body.touch .trd-ask { margin: .4rem 1rem 0; padding: .3rem .6rem; gap: .5rem; flex-wrap: nowrap; white-space: nowrap; }
body.touch .trd-ask > span:first-child { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.touch .trd-ask input { width: 5.6rem; }
body.touch .trd-ask > span:nth-child(2) { display: none; }
body.touch #tradewin.asking .trd-btns { display: none; }
body.touch .trd-ask button { min-width: 0 !important; padding: 0 .9rem !important; }
#dailywin { left: 50%; top: 6rem; transform: translateX(-50%); width: 66rem; max-width: calc(100vw - 1.6rem); max-height: calc(100vh - 8rem); z-index: 7; }
.dly-body { display: flex; flex-direction: column; gap: .7rem; padding: 1.2rem 1.8rem 1.6rem; overflow-y: auto; touch-action: pan-y; }
.dly-col { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.dly-body h4 { display: flex; align-items: baseline; gap: 1rem; margin: .4rem 0 0; font: 700 max(13px, 1.5rem)/1.3 var(--sans); color: var(--brass-hi); }
.dly-body h4 small { margin-left: auto; font: 400 max(10px, 1.2rem)/1.3 var(--sans); color: var(--ink3); } .dly-body h4 small b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dly-q { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 1rem; border: .8rem solid transparent; border-image: url(../assets/ui/dark/row.png) 16 fill / .8rem; }
.dly-q.done:not(.got) { border-image-source: url(../assets/ui/dark/row_on.png); }
.dly-q.got { opacity: .62; }
.dly-t { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.dly-t b { font: 600 max(12px, 1.35rem)/1.3 var(--sans); color: var(--ink); }
.dly-bar { position: relative; display: block; height: 1.5rem; background: #0b0907; border: 1px solid rgba(216,184,113,.35); }
.dly-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#d8b871, #8a6a2c); }
.dly-bar em { position: absolute; inset: 0; display: grid; place-items: center; font: 700 max(9px, 1.05rem)/1 var(--sans); font-style: normal; color: #fff; text-shadow: 0 1px 2px #000; font-variant-numeric: tabular-nums; }
.dly-rs { flex: none; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; max-width: 24rem; }
.dly-r { display: inline-flex; align-items: center; gap: .3rem; font: 600 max(11px, 1.2rem)/1 var(--sans); color: var(--ink); white-space: nowrap; }
.dly-r.gold b { color: #ffd76a; } .dly-r.exp { color: #9fd0ff; }
.dly-r .cell { width: 3.8rem; height: 3.8rem; cursor: default; } .dly-r .cell > :is(img, svg) { max-width: 84%; max-height: 84%; }
.dly-q > button, .dly-s > button { flex: none; min-width: 10rem; }
.dly-got { flex: none; min-width: 10rem; text-align: center; font: 600 max(11px, 1.2rem)/3.6rem var(--sans); font-style: normal; color: #8fe39b; }
.dly-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.dly-s { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .7rem .4rem .8rem; border: .8rem solid transparent; border-image: url(../assets/ui/dark/row.png) 16 fill / .8rem; }
.dly-s.done:not(.got) { border-image-source: url(../assets/ui/dark/row_on.png); } .dly-s.got { opacity: .62; }
.dly-s > b { font: 700 max(12px, 1.35rem)/1.3 var(--sans); color: var(--brass-hi); white-space: nowrap; } .dly-s > b span { font-weight: 400; color: var(--ink2); }
.dly-s .dly-rs { flex: 1; flex-direction: column; justify-content: center; gap: .4rem; max-width: none; }
.dly-s > button, .dly-s .dly-got { min-width: 0; width: 100%; padding: 0 .4rem !important; white-space: nowrap; }
.dly-note, .dly-off { margin: .4rem 0 0 !important; font: 400 max(10px, 1.15rem)/1.45 var(--sans); color: var(--ink3); }
.dly-off { padding: 2rem 2rem 2.4rem; font-size: max(12px, 1.4rem); color: var(--ink); text-align: center; }
body.touch #dailywin { left: calc(.8rem + var(--sal)); right: calc(.8rem + var(--sar)); top: calc(.8rem + var(--sat)); bottom: calc(.8rem + var(--sab)); transform: none; width: auto; max-width: none; max-height: none; }
body.touch .dly-body { flex-direction: row; gap: 1.4rem; padding: .5rem 1.2rem .6rem; }
body.touch .dly-col { gap: .35rem; } body.touch .dly-quests { flex: 1.25 1 0; } body.touch .dly-online { flex: 1 1 0; }
body.touch .dly-body h4 { margin: 0; font-size: max(12px, 1.35rem); }
body.touch .dly-q { padding: .15rem .7rem; gap: .7rem; }
body.touch .dly-t { gap: .2rem; } body.touch .dly-t b { font-size: max(11px, 1.2rem); line-height: 1.2; }
body.touch .dly-bar { height: 1.3rem; }
body.touch .dly-rs { gap: .5rem; max-width: 15rem; }
body.touch .dly-q > button, body.touch .dly-got { min-width: 8.4rem; }
body.touch .dly-steps { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
body.touch .dly-s { flex-direction: row; align-items: center; gap: .7rem; padding: .1rem .7rem; }
body.touch .dly-s > b { flex: none; width: 6.6rem; text-align: left; }
body.touch .dly-s .dly-rs { flex: 1 1 0; flex-direction: row; justify-content: flex-start; gap: .5rem; max-width: none; }
body.touch .dly-s > button, body.touch .dly-s .dly-got { flex: none; width: 8.4rem; }
body.touch .dly-r .cell { width: 3.4rem; height: 3.4rem; }
body.touch .dly-note { display: none; }
#hud .badge.ddot { min-width: 1.1rem; width: 1.1rem; height: 1.1rem; padding: 0; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 1px #000, 0 0 .6rem #ff4d3d; font-size: 0; right: -.2rem; top: -.2rem; }
#hud #m-toggle .badge.ddot { top: auto; bottom: -.4rem; right: -.4rem; }
#hud #h-menu .icons .badge.ddot { position: static; margin-left: auto; }
#chat-log .party { color: #9fd0ff; }
#chat-log .whisper { color: #f0a8e6; }
#chat-log .psys { color: #9fd0ff; font-style: italic; }
#chat-log .cl-n { font-weight: 600; pointer-events: auto; cursor: pointer; }
#chat-log .cl-n.self { cursor: default; }
#chat-log .cl-n:not(.self):hover { text-decoration: underline; }
#pmenu .pm-gm { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid rgba(196, 160, 98, .35); }
#pmenu .pm-gm small { display: block; padding: 0 .8rem .3rem; color: #ff9a8a; font: 700 max(10px, 1.15rem) var(--sans); letter-spacing: .04em; }
#pmenu .pm-why { box-sizing: border-box; width: 100%; height: 3.4rem; margin: 0 0 .3rem; padding: 0 1rem; color: var(--ink); background: rgba(8, 7, 6, .7); border: 1px solid rgba(196, 160, 98, .45); font: 500 16px var(--sans); user-select: text; -webkit-user-select: text; }
#pmenu button.pm-ban { color: #ffb4a8; }
#pmenu button.arm { color: #ff6b5a !important; font-weight: 800; }