/* ── VALDRAN v4: readable type, hero stack, low-health warning, gesture magic, bag, chat channels, party window ── */
@font-face { font-family: 'Plex'; font-weight: 500; src: url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: 'Plex'; font-weight: 600; src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: 'Plex'; font-weight: 700; src: url(../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: 'Plex'; font-weight: 500; src: url(../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-display: swap; }
@font-face { font-family: 'Plex'; font-weight: 600; src: url(../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-display: swap; }
@font-face { font-family: 'Plex'; font-weight: 700; src: url(../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-display: swap; }
@font-face { font-family: 'Kufi'; font-weight: 700; src: url(../fonts/noto-kufi-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: 'Kufi'; font-weight: 800; src: url(../fonts/noto-kufi-arabic-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; font-display: swap; }
@font-face { font-family: 'Kufi'; font-weight: 700; src: url(../fonts/noto-kufi-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; font-display: swap; }
@font-face { font-family: 'Kufi'; font-weight: 800; src: url(../fonts/noto-kufi-arabic-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; font-display: swap; }
:root { --head: 'Kufi', 'Plex', sans-serif; --body: 'Plex', system-ui, sans-serif; --num: 'Plex', system-ui, sans-serif; --display: 'Kufi', 'Plex', sans-serif; }
html, body { font: 600 15px/1.6 var(--body); letter-spacing: 0; }
/* thick outlines blur Arabic letters: a soft shadow reads cleaner over the 3D world */
#hud *, .win *, #toasts *, #tip * { -webkit-text-stroke-width: 0 !important; }
#hud, #toasts, #tip { text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 6px rgba(0,0,0,.55); }
#combo b, #finisher b, #countdown b, #wmHype b, #banner b { text-shadow: none; }
#banner b { font-weight: 800; letter-spacing: 0; line-height: 1.35; }
#banner span { -webkit-text-stroke: 0; text-shadow: 0 2px 3px #000, 0 0 10px rgba(0,0,0,.8); font-weight: 700; }
.float { -webkit-text-stroke-width: 2px !important; font-family: var(--num); }
#tracker small { font-size: 14.5px; line-height: 1.55; }
#tracker b { font: 700 15.5px var(--head); }
.win h2 { font: 800 22px var(--head); letter-spacing: 0; }
.win h3 { font: 700 16px var(--head); }
.btn { font-weight: 700; }

/* ── hero stack: frame → XP → wallet ── */
#heroStack { position: absolute; top: 8px; right: 10px; width: 400px; display: grid; gap: 6px; z-index: 3; }
#heroStack #hero { position: relative; top: auto; right: auto; min-width: 0; }
#hero.low .bar.hp { animation: hplow .8s ease-in-out infinite; }
@keyframes hplow { 50% { box-shadow: inset 0 1px 3px #000, 0 0 0 1px #ff5a3a, 0 0 14px rgba(255,60,30,.85); } }
#heroStack #xp { position: relative; width: auto; height: 20px; margin: -4px 26px 0; border-radius: 10px; }
#heroStack #xp span { display: flex; gap: 10px; justify-content: center; align-items: center; line-height: 20px; font: 700 12.5px var(--num); direction: rtl; }
#heroStack #xp span b { color: #f4e2ff; font-weight: 700; } #heroStack #xp span bdi { color: #fff; font-weight: 700; } #heroStack #xp span small { color: #e6dcf6; font-size: 11.5px; opacity: .9; }
#heroStack #wallet { position: static; display: flex; justify-content: center; gap: 6px; margin: 0 26px; flex-wrap: wrap; direction: ltr; }
#heroStack #wallet span { padding: 3px 11px 3px 6px; gap: 5px; }
#heroStack #wallet b { font: 700 14px var(--num); }
#target { top: 26px; right: 430px; }
#party { bottom: auto; top: 470px; left: 14px; }

/* ── low health ── */
#lowhp { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(160,0,0,.22) 78%, rgba(110,0,0,.72) 100%); }
#lowhp.on { opacity: var(--k, .6); animation: lowpulse var(--spd, 1s) ease-in-out infinite; }
@keyframes lowpulse { 0%, 100% { opacity: calc(var(--k, .6) * .7); } 18% { opacity: var(--k, .6); } 34% { opacity: calc(var(--k, .6) * .75); } 48% { opacity: calc(var(--k, .6) * .92); } }
#lowhp span { position: absolute; top: 17%; left: 50%; transform: translateX(-50%); padding: 8px 22px; border-radius: 22px; white-space: nowrap;
  font: 800 19px var(--head); color: #fff; background: linear-gradient(180deg, rgba(150,10,6,.92), rgba(70,0,0,.92)); box-shadow: 0 0 0 2px #ff7a5a, 0 0 26px rgba(255,40,20,.6);
  text-shadow: 0 1px 2px #000; opacity: 0; }
#lowhp.on span { opacity: 1; animation: lowtxt 1.6s ease-in-out infinite; }
@keyframes lowtxt { 50% { transform: translateX(-50%) scale(1.06); } }
#lowhp kbd { font-size: 13px; margin-inline-start: 4px; }

/* ── gesture magic ── */
#wm { position: fixed; z-index: 44; top: 96px; left: 50%; transform: translateX(-50%); width: min(880px, 92vw); padding: 14px 18px 12px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(18,12,34,.9), rgba(8,6,16,.92)); box-shadow: 0 0 0 1px #000, 0 0 0 2.5px #c8963e, 0 0 40px rgba(170,110,255,.35); }
#wm .wmhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
#wm .wmhead b { font: 800 22px var(--head); color: #ffe6a8; }
#wmStats { font: 700 14px var(--num); color: #d8cce8; } #wmStats b { color: #fff; }
#wmSeq { display: flex; gap: 10px; justify-content: center; direction: rtl; flex-wrap: wrap; min-height: 128px; align-items: center; }
.gcard { --gc: #fff; position: relative; width: 96px; padding: 8px 4px 6px; border-radius: 14px; display: grid; justify-items: center; gap: 2px; opacity: .45; transform: scale(.88);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gc) 22%, #181428), #0a0812 75%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gc) 55%, #000); transition: transform .2s, opacity .2s; }
.gcard i { font-style: normal; font-size: 44px; line-height: 1.15; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.gcard b { font: 700 12.5px var(--body); color: #f3ead6; white-space: nowrap; }
.gcard kbd { position: absolute; top: -8px; left: -6px; }
.gcard.cur { opacity: 1; transform: scale(1.12); box-shadow: inset 0 0 0 2.5px var(--gc), 0 0 26px color-mix(in srgb, var(--gc) 70%, transparent); animation: gcur 1s ease-in-out infinite; }
.gcard.cur i { animation: gbob 1s ease-in-out infinite; }
@keyframes gcur { 50% { box-shadow: inset 0 0 0 2.5px var(--gc), 0 0 40px var(--gc); } } @keyframes gbob { 50% { transform: translateY(-4px) scale(1.06); } }
.gcard.ok { opacity: .9; transform: scale(.82); filter: saturate(.7); }
.gcard.ok::after { content: '✓'; position: absolute; inset: auto 6px 4px auto; font: 800 18px var(--num); color: #7dff9a; }
.gcard.shake { animation: gshake .3s; } @keyframes gshake { 25% { transform: scale(1.12) translateX(-6px); } 75% { transform: scale(1.12) translateX(6px); } }
#wm .wmbars { margin: 10px 30px 4px; }
#wmTimer { height: 8px; border-radius: 4px; background: rgba(0,0,0,.6); overflow: hidden; box-shadow: 0 0 0 1px #3a2a50; }
#wmTimer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff5a3a, #ffd060, #8affb0); transform-origin: left; transform: scaleX(calc(1 - var(--k, 0))); }
#wmHelp { display: block; font-size: 13px; color: #cfc4e0; }
#wmCam { position: fixed; z-index: 44; right: 16px; top: 330px; width: 240px; height: 180px; border-radius: 14px; overflow: hidden; display: none;
  background: #000 radial-gradient(circle, #1a1430, #05040a); box-shadow: 0 0 0 1px #000, 0 0 0 2.5px #c8963e, 0 10px 30px rgba(0,0,0,.6); }
#wm:not([hidden]) ~ #wmCam { display: block; }
#wmCam.off { display: none !important; }
#wmCam.load::after { content: 'يشغّل الكاميرا…'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px var(--body); color: #d8cce8; }
#wmCv { width: 100%; height: 100%; display: block; }
#wmSee { position: absolute; bottom: 6px; right: 8px; font: 700 18px var(--num); color: #fff; font-family: 'Segoe UI Emoji', 'Plex', sans-serif; }
#wmHype { position: fixed; z-index: 45; top: 40%; right: 12%; display: grid; justify-items: center; pointer-events: none; opacity: 0; }
#wmHype.go { animation: hype .9s ease-out forwards; }
#wmHype b { font: 800 70px/1 var(--display); background: linear-gradient(180deg, #fff, #d8a0ff 45%, #7a2ae0); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #1a0630) drop-shadow(0 0 18px rgba(190,120,255,.7)); }
#wmHype span { font: 800 24px var(--head); color: #ffe6ff; text-shadow: 0 2px 3px #000, 0 0 12px rgba(200,120,255,.8); }
@keyframes hype { 0% { opacity: 0; transform: scale(1.8); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
.gesl { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.gesl span { position: relative; display: grid; justify-items: center; width: 84px; padding: 6px 2px; border-radius: 10px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px rgba(240,205,120,.2); }
.gesl i { font-style: normal; font-size: 30px; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; } .gesl b { font-size: 12px; } .gesl kbd { position: absolute; top: -6px; left: -4px; }
.skill.word svg.art { border-radius: 50%; }

/* ── painted skill icons ── */
.skill svg.art { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; filter: none; }
.skill { overflow: visible; }
.skill.locked svg.art { filter: grayscale(.9) brightness(.55); }
.skill.nomp svg.art { opacity: 1; filter: grayscale(.6) brightness(.6) hue-rotate(180deg); }
.skill .cd, .skill .cdt, .skill .lk, .skill kbd, .skill em, .skill .pips, .skill b { z-index: 2; }
.skill .cdt { font: 800 22px var(--num); text-shadow: 0 0 4px #000, 0 2px 2px #000; }
.skic svg.art { display: block; }
.combo .seq span svg.art { display: block; border-radius: 9px; }

/* ── bag ── */
#win-bag { width: min(960px, 96vw); }
.bagwrap { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.bagtools { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
#bagTabs { display: flex; gap: 4px; flex-wrap: wrap; }
.btab { position: relative; padding: 6px 14px; border-radius: 18px; border: 0; font: 700 14px var(--body); color: #d8cfbc; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(240,205,120,.22); }
.btab.on { color: #2a1604; background: linear-gradient(180deg, #ffe6a0, #d89a38); box-shadow: 0 0 10px rgba(255,200,100,.35); }
.btab i { font: 700 11px var(--num); font-style: normal; margin-inline-start: 5px; opacity: .8; }
.btab i:empty { display: none; }
#bagSort { padding: 6px 14px; font-size: 14px; }
#win-bag #bagGrid { grid-template-columns: repeat(6, 68px); gap: 9px; justify-content: center; min-height: 380px; align-content: start; direction: rtl; }
#win-bag .cell { width: 68px; height: 68px; }
#win-bag .cell.sel { outline: 3px solid #ffe08a; outline-offset: 2px; transform: translateY(-2px); }
#win-bag .cell.nofit { opacity: .45; filter: grayscale(.7); }
#win-bag .cell .slotg { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; background: rgba(0,0,0,.55); }
#win-bag .cell .ilv, #win-bag .cell .upg { top: auto; bottom: 2px; left: 5px; font: 700 11.5px var(--num); font-style: normal; }
#win-bag .cell .upg { color: #ffd76a; }
#win-bag .cell .better { bottom: 2px; right: 4px; font-size: 15px; color: #6aff8a; text-shadow: 0 0 6px rgba(80,255,120,.8), 0 1px 1px #000; }
.newb { position: absolute; top: -7px; right: -6px; padding: 0 6px; border-radius: 8px; font: 700 10px/16px var(--body); font-style: normal; color: #1a0e02; background: linear-gradient(180deg, #fff2b0, #ffc040); box-shadow: 0 0 8px rgba(255,200,60,.7); z-index: 2; }
.bagnone { grid-column: 1 / -1; text-align: center; color: var(--dim); margin-top: 40px; }
#win-bag #bagInfo { display: flex; gap: 10px; align-items: center; justify-content: flex-start; margin: 12px 0 8px; font: 600 13px var(--body); direction: rtl; flex-wrap: wrap; }
#win-bag #bagInfo b { font: 700 15px var(--num); direction: ltr; }
#win-bag #bagInfo .warnc { color: #ffc060; }
#win-bag .bagcap { position: relative; display: block; width: 160px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.55); box-shadow: inset 0 0 0 1px #4a3a1c; overflow: hidden; }
#win-bag .bagcap i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #6affb0, #ffd060); }
#win-bag .bagcap.full i { background: linear-gradient(90deg, #ff7a3a, #ff3a2a); }
.bagbulk { display: flex; gap: 8px; align-items: center; }
.bagbulk select { background: #12141f; color: var(--text); border: 1px solid #6a5428; border-radius: 8px; padding: 6px 10px; font: 600 14px var(--body); }
.bagbulk .btn { padding: 6px 12px; font-size: 14px; }
#bagDetail { min-height: 460px; padding: 14px; border-radius: 12px; background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.2)); box-shadow: inset 0 0 0 1px rgba(240,205,120,.2); display: grid; align-content: start; gap: 12px; }
.bdempty { display: grid; justify-items: center; gap: 6px; text-align: center; padding-top: 30px; }
.bdempty b { font: 700 18px var(--head); color: var(--gold); }
.bdempty ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; text-align: right; font-size: 13.5px; color: #d8cfbc; }
.bdempty ul li { display: flex; gap: 8px; align-items: center; } .bdempty .better { color: #6aff8a; font-style: normal; } .bdempty .newb { position: static; }
.bdgs { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; padding: 8px 16px; border-radius: 10px; background: rgba(150,100,255,.12); box-shadow: inset 0 0 0 1px rgba(190,140,255,.35); }
.bdgs b { font: 800 24px var(--num); color: #e6d0ff; }
.bdtop { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.bdic { position: relative; width: 96px; height: 96px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc) 45%, #1a1e30), #070910 80%); box-shadow: inset 0 0 0 2.5px var(--rc), 0 0 22px color-mix(in srgb, var(--rc) 40%, transparent); }
.bdic img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.bdic .upg { position: absolute; bottom: 4px; left: 6px; font: 800 14px var(--num); font-style: normal; color: #ffd76a; }
.bdname { display: block; font: 800 18px/1.4 var(--head); }
.bdtop small { display: block; font-size: 13px; }
.vd { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 10px; font: 700 13px var(--body); background: rgba(0,0,0,.35); }
.vd.up { color: #6aff8a; box-shadow: inset 0 0 0 1px rgba(100,255,140,.4); } .vd.dn, .vd.bad { color: #ff7a6a; box-shadow: inset 0 0 0 1px rgba(255,110,90,.4); }
.bdstats { display: grid; gap: 4px; }
.srow { display: grid; grid-template-columns: 1fr auto 70px; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 7px; background: rgba(0,0,0,.28); font-size: 14px; }
.srow b { font: 700 15px var(--num); direction: ltr; } .srow i { font: 700 12.5px var(--num); font-style: normal; text-align: left; direction: ltr; }
.srow i.up { color: #6aff8a; } .srow i.dn { color: #ff7a6a; }
.bdcmp small { display: block; margin-bottom: 4px; }
.bdcmp div { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 50%, transparent); }
.bdcmp img { width: 38px; height: 38px; object-fit: contain; } .bdcmp b { font-size: 14px; }
.bdact { display: grid; gap: 7px; }
.bdact .btn { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 9px 12px; }

/* ── chat channels ── */
#chat { width: 400px; bottom: 14px; gap: 3px; }
#chatTabs { display: flex; gap: 4px; align-items: center; }
#chatTabs button { position: relative; border: 0; padding: 3px 13px; border-radius: 12px 12px 4px 4px; font: 700 13px var(--body); color: #cfc6b4; background: rgba(8,10,16,.72); box-shadow: inset 0 -2px 0 rgba(255,255,255,.06); }
#chatTabs button.on { color: #120c04; background: var(--cc); box-shadow: 0 0 10px color-mix(in srgb, var(--cc) 50%, transparent); }
#chatTabs button i { position: absolute; top: -7px; left: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font: 700 10px/16px var(--num); font-style: normal; color: #fff; background: #e0402e; }
#chatTabs button i:empty { display: none; }
#chatTabs small { margin-inline-start: auto; font-size: 11.5px; opacity: .75; }
#chatLog { max-height: 190px; font-size: 14.5px; line-height: 1.55; background: linear-gradient(0deg, rgba(8,10,16,.72), rgba(8,10,16,.25)); border-radius: 8px; }
#chat:not(.typing) #chatLog { background: linear-gradient(0deg, rgba(8,10,16,.55), rgba(8,10,16,0)); }
#chatLog div { margin: 2px 0; }
#chatLog b[data-n] { cursor: pointer; font-weight: 700; } #chatLog b[data-n]:hover { text-decoration: underline; }
#chatLog .party { color: #bfe2ff; } #chatLog .whisper { color: #ffd0f0; }
#chatLog .men { background: linear-gradient(90deg, rgba(255,200,80,.0), rgba(255,200,80,.22)); border-inline-start: 3px solid #ffc840; padding-inline-start: 6px; border-radius: 4px; }
#chatLog .ct { font-style: normal; font: 700 11px var(--body); padding: 0 6px; border-radius: 6px; margin-inline-end: 5px; vertical-align: 1px; }
#chatLog .ct.party { background: #2a5a8a; color: #e0f2ff; } #chatLog .ct.whisper { background: #7a2a6a; color: #ffe0f6; }
#chatLog u { text-decoration: none; color: #ffd27a; font-weight: 700; } #chatLog u.me { color: #1a0e02; background: #ffc840; border-radius: 4px; padding: 0 3px; }
#chatLog .dim { color: var(--dim); font-size: 13px; }
#chatRow { display: flex; gap: 0; align-items: stretch; }
#chatCh { --cc: #efe6d2; display: grid; place-items: center; padding: 0 10px; border-radius: 0 8px 8px 0; font: 700 13px var(--body); color: #120c04; background: var(--cc); white-space: nowrap; }
#chatRow #chatIn { flex: 1; border-radius: 8px 0 0 8px; border-inline-start: 0; }
#chat[data-ch="party"] #chatIn { border-color: #7ec8ff; } #chat[data-ch="whisper"] #chatIn { border-color: #ff9ae0; }
#chatSug { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: 8px; background: rgba(8,10,16,.92); box-shadow: 0 0 0 1px #6a5428; }
#chatSug span { padding: 2px 10px; border-radius: 10px; font: 700 13px var(--body); background: rgba(255,210,120,.12); cursor: pointer; } #chatSug span.on { background: #ffc840; color: #1a0e02; }

/* ── party window ── */
#win-party { width: min(860px, 94vw); }
.pwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pcol { display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(240,205,120,.18); }
.pcol h3 { display: flex; gap: 8px; align-items: center; margin: 0; } .pcol h3 .btn { margin-inline-start: auto; }
.prow { display: flex; gap: 8px; }
.prow input { flex: 1; background: #10121c; color: var(--text); border: 1px solid #6a5428; border-radius: 8px; padding: 7px 12px; font: 600 14px var(--body); outline: none; } .prow input:focus { border-color: var(--gold); }
.plist, .pwhos { display: grid; gap: 6px; max-height: 330px; overflow-y: auto; }
.pmem, .pwho { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 9px; background: rgba(0,0,0,.3); box-shadow: inset 3px 0 0 var(--c); }
.pmem b, .pwho b { font-size: 14.5px; } .pmem em, .pwho em { font: 600 12px var(--num); font-style: normal; color: var(--dim); }
.pmem .lead { font-style: normal; font-size: 12px; color: #ffd27a; }
.pmem .btn, .pwho .btn:first-of-type { margin-inline-start: auto; }
.pwho small { font-size: 12px; }
.dim { color: var(--dim); font-size: 13px; }
.btn.tiny { padding: 3px 10px; font-size: 12.5px; border-radius: 7px; }
#party header small { font: 600 12px var(--num); color: var(--dim); }
.pcol { min-width: 0; } .prow input { min-width: 0; width: 100%; } .pcol .btn, .prow .btn { white-space: nowrap; flex: none; }
.pwho { flex-wrap: nowrap; } .pwho b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 1640px) { #chat { bottom: 116px; width: 360px; } }
#wm { bottom: auto; display: block; height: auto; }
#win-bag .cell::after { display: none; }
#win-bag .cell .upg, #win-bag .cell .ilv { direction: ltr; unicode-bidi: isolate; }
#win-bag .newb { top: 2px; right: 2px; padding: 0 5px; font-size: 9.5px; line-height: 14px; }
/* the star horse in the stable: its silhouette is a window onto the nebula */
.beast .gximg { display: block; width: 64px; height: 64px; grid-row: span 3; border-radius: 8px; background: url(../assets/tex/nebula.jpg) 30% 40% / 260% auto;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  filter: brightness(1.35) saturate(1.3) drop-shadow(0 0 5px #8ab0ff); animation: gxpan 14s linear infinite alternate; }
@keyframes gxpan { to { background-position: 70% 60%; } }
.beast.galaxy { box-shadow: inset 0 0 0 1.5px var(--rc), 0 0 18px rgba(140,160,255,.35); background: linear-gradient(135deg, rgba(40,30,90,.45), rgba(0,0,0,.3)); }
