/* ================================================================ 迷域浪客 UI · clean modern (v0.45)
   Slate surfaces, hairlines, square corners, one accent. White is the primary action and "on"; teal marks what is
   live (learned, ready, objective); gold is only money; red only danger. Text is never smaller than 12px.
   Order: tokens · base · controls · shared parts · menu pages · lobby · panels · HUD · world labels · overlays. */
[hidden] { display: none !important; }
@font-face { font-family: "Noto Sans L"; font-weight: 400; src: url("fonts/NotoSans-400.woff2") format("woff2"); font-display: swap; unicode-range: U+20-7E, U+B7, U+D7, U+2212; }
@font-face { font-family: "Noto Sans L"; font-weight: 700; src: url("fonts/NotoSans-700.woff2") format("woff2"); font-display: swap; unicode-range: U+20-7E, U+B7, U+D7, U+2212; }
@font-face { font-family: "Noto Sans L"; font-weight: 900; src: url("fonts/NotoSans-900.woff2") format("woff2"); font-display: swap; unicode-range: U+20-7E, U+B7, U+D7, U+2212; }
:root {
  --bg: #14191e; --pn: #1a2127; --pn2: #222a31; --pn3: #2b353d; --glass: rgba(15, 20, 25, .74); --plate: rgba(15, 20, 25, .6);
  --ln: rgba(255, 255, 255, .11); --ln2: rgba(255, 255, 255, .26);
  --tx: #f2f5f6; --tx2: #b7c2c9; --tx3: #96a3ac; --ink: #14191e;
  --ac: #62dccb; --ac2: rgba(98, 220, 203, .14); --warn: #ffb25c; --bad: #ff6f63; --good: #86e29b; --money: #f3d27a; --ice: #9fdcff; --mana: #69b4f5;
  --r: 2px; --cjk: "Noto Sans L", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --sh: 0 1px 2px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .45);
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--tx); font: 400 14px/1.5 var(--cjk); user-select: none; -webkit-user-select: none; -webkit-font-smoothing: antialiased; }
#game, #game canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#fx2d { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
p { margin: 0; } small { font-size: inherit; } h2 { margin: 0; font: 700 28px/1.2 var(--cjk); }
.dim { color: var(--tx3); } .err { color: var(--bad); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .38); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; } }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------------------------------------------------------------- controls (zero specificity: parts may override) */
:where(button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 18px; border: 1px solid var(--tx); border-radius: var(--r); cursor: pointer; white-space: nowrap;
  font: 700 14px/1.2 var(--cjk); color: var(--ink); background: var(--tx); transition: background .12s, border-color .12s, color .12s; }
:where(button):hover:not(:disabled) { background: var(--ac); border-color: var(--ac); }
:where(button):active:not(:disabled) { background: #46c3b2; border-color: #46c3b2; }
:where(button):disabled { opacity: .32; cursor: default; }
:where(button.ghost) { color: var(--tx); background: transparent; border-color: var(--ln2); }
:where(button.ghost):hover:not(:disabled) { color: var(--tx); background: rgba(255, 255, 255, .1); border-color: var(--tx); }
:where(button.ghost):active:not(:disabled) { background: rgba(255, 255, 255, .18); border-color: var(--tx); }
:where(button.sm) { min-height: 28px; padding: 0 12px; font-size: 13px; }
:where(button.big) { min-height: 48px; padding: 0 28px; font-size: 16px; }
:where(button.bare) { padding: 0; border: 0; min-height: 0; color: var(--tx2); background: none; font-weight: 400; } :where(button.bare):hover:not(:disabled) { color: var(--tx); background: none; }
/* chips: one of several. Neighbours share a line, so a row reads as one control */
.chips, .seg { display: flex; flex-wrap: wrap; gap: 0; padding: 1px 0 0 1px; }
.chip { min-height: 32px; padding: 0 14px; margin: -1px 0 0 -1px; border: 1px solid var(--ln2); border-radius: 0; color: var(--tx2); background: transparent; font-weight: 400; }
.chip:hover:not(:disabled) { color: var(--tx); background: rgba(255, 255, 255, .1); border-color: var(--ln2); }
.chip.on, .chip.on:hover:not(:disabled) { color: var(--ink); background: var(--tx); border-color: var(--tx); font-weight: 700; position: relative; z-index: 1; }
.chip.ava { gap: 8px; padding-left: 6px; min-height: 40px; }
.chip.pal { padding: 0 10px; } .chip.pal i { width: 10px; height: 10px; margin-right: -3px; }
input:not([type=range]):not([type=checkbox]) { min-height: 36px; min-width: 0; padding: 0 12px; border: 1px solid var(--ln2); border-radius: var(--r); color: var(--tx); background: rgba(0, 0, 0, .28); font: 400 14px var(--cjk); }
input:not([type=range]):not([type=checkbox])::placeholder { color: var(--tx3); } input:not([type=range]):not([type=checkbox]):focus { outline: 0; border-color: var(--ac); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--ln2); } input[type=range]::-moz-range-track { height: 2px; background: var(--ln2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 18px; margin-top: -8px; background: var(--tx); border: 0; border-radius: 0; } input[type=range]::-moz-range-thumb { width: 8px; height: 18px; background: var(--tx); border: 0; border-radius: 0; }
input[type=range]:hover::-webkit-slider-thumb { background: var(--ac); }
input[type=checkbox] { -webkit-appearance: none; appearance: none; position: relative; width: 40px; height: 20px; margin: 0; border: 1px solid var(--ln2); background: transparent; cursor: pointer; transition: background .12s; }
input[type=checkbox]::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; background: var(--tx3); transition: transform .12s; }
input[type=checkbox]:checked { background: var(--ac2); border-color: var(--ac); } input[type=checkbox]:checked::after { transform: translateX(20px); background: var(--ac); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--ln2); font: 700 12px/1 var(--cjk); color: var(--tx); background: rgba(0, 0, 0, .35); }

/* ---------------------------------------------------------------- shared parts */
/* page header: back, title, anything on the right */
.pgh { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; min-height: 44px; }
.pgh h2 { font-size: 24px; } .pgh .r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.goback { width: 40px; min-height: 40px; padding: 0; color: var(--tx); background: transparent; border-color: var(--ln2); } .goback::before { content: ""; width: 9px; height: 9px; margin-left: 4px; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.goback:hover:not(:disabled) { color: var(--ink); background: var(--tx); border-color: var(--tx); }
.money { color: var(--tx2); } .money b { margin-left: 4px; color: var(--money); font-size: 16px; }
.bcol, .icol, .tscroll, .tdetail, .olbox { border: 1px solid var(--ln); background: rgba(20, 26, 31, .82); }
.bcol, .icol { min-height: 0; overflow-y: auto; padding: 20px; }
.bh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 700 18px/1.3 var(--cjk); } .bh small { color: var(--tx3); font: 400 13px var(--cjk); } .bh > button, .bh > .r { margin-left: auto; }
.bl { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 12px; font: 700 14px/1.4 var(--cjk); color: var(--tx); } .bl:first-child, .bsec:first-child > .bl:first-child { margin-top: 0; }
.bl small { color: var(--tx3); font-weight: 400; } .bl small b { color: var(--tx2); } .bl b.hot { color: var(--ac); } .bl > button { margin-left: auto; align-self: center; }
/* skill icons: active = square, passive = round */
.sk { display: inline-block; flex: none; width: var(--s, 40px); height: var(--s, 40px); border-radius: var(--r); image-rendering: pixelated; background: #0e1317 url("assets/skill-icons/skill-icons.png") no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  background-position: calc(var(--cx) * 100% / 19) calc(var(--cy) * 100% / 19); background-size: 2000% 2000%; }
.sk[style*="--fy:1"] { border-radius: 50%; }
.px16 { width: 16px; height: 16px; image-rendering: pixelated; vertical-align: -2px; margin-right: 6px; } .px32 { width: 32px; height: 32px; margin: -4px 0; image-rendering: pixelated; } .hattr .px16 { margin-right: 4px; }
.wico { image-rendering: auto; object-fit: contain; }
/* item icons: rarity is the line under the icon */
.iic, .iic.iic { position: relative; display: inline-grid; place-items: center; place-content: center; grid-template: 100% / 100%; flex: none; gap: 0; min-width: 0; width: var(--s, 40px); height: var(--s, 40px); border-radius: var(--r);
  background: linear-gradient(0deg, color-mix(in srgb, var(--c, #8794a0) 26%, #10151a), #10151a 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 -2px 0 var(--c, #8794a0); }
.iic img { grid-area: 1 / 1; width: var(--px, 32px); height: var(--px, 32px); image-rendering: pixelated; pointer-events: none; }
.iic.lv0 { --c: #8794a0; } .iic.fisti img { width: 70%; height: 70%; object-fit: contain; } .iic.empty { background: transparent; box-shadow: inset 0 0 0 1px var(--ln); }
.ph, .ini.empty i, .hslot.empty i { display: inline-grid; place-items: center; width: 46px; height: 46px; color: var(--tx3); font-style: normal; font-size: 12px; box-shadow: inset 0 0 0 1px var(--ln); }
.itile { position: relative; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; cursor: pointer; text-align: center; border: 1px solid transparent; }
.itile:hover { background: rgba(255, 255, 255, .07); border-color: var(--ln2); } .itile.on { border-color: var(--ac); background: var(--ac2); } .itile small { font-size: 12px; line-height: 1.3; }
.itile .wb { position: absolute; top: 5px; right: 8px; padding: 0 4px; font: 700 11px/16px var(--cjk); color: var(--ink); background: var(--ac); } .itile .wb.new { background: var(--good); }
.igrid, .items { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
/* 仓库: the order chips and 批量出售 */
.stbar { display: flex; align-items: center; gap: 8px; min-height: 34px; margin: -4px 0 12px; } .stbar > :first-child { margin-right: auto; }
.stbar .chip.sm { min-height: 28px; padding: 0 12px; font-size: 13px; } .stsort { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .stbar .drop.sm { min-width: 150px; min-height: 28px; font-size: 13px; } .stsum { font: 400 14px var(--cjk); color: var(--tx2); } .stsum > b { color: var(--tx); margin: 0 2px; } .stsum .money { margin-left: 14px; }
.stbar .danger { color: var(--ink); background: var(--bad); border-color: var(--bad); } .stbar .danger:hover:not(:disabled) { background: #ff8d83; border-color: #ff8d83; } .stbar .danger:disabled { opacity: .4; }
.igrid.picking .itile { cursor: default; } .itile.nopick { opacity: .35; cursor: not-allowed; } .itile.nopick:hover { background: transparent; border-color: transparent; }
.itile .wb.pk { color: var(--ink); background: var(--ac); }
.equip { display: flex; flex-direction: column; gap: 8px; }
.eslot { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--ln); background: rgba(255, 255, 255, .03); } .eslot > span:not(.iic):not(.ph) { display: flex; flex-direction: column; min-width: 0; } .eslot small { color: var(--tx3); font-size: 13px; } .eslot button { margin-left: auto; }
.eslot.dim { opacity: .4; } .eslot.can, .igrid.can, .items.can { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac); } .eslot.over, .igrid.over, .items.over { background: var(--ac2); } .items.dim { opacity: .4; }
.eslot[data-gear-un] { cursor: pointer; } .eslot[data-gear-un]:hover { border-color: var(--ln2); } [draggable="true"] { cursor: grab; }
/* base / current stats */
.stcmp { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; } .stcmp th { padding: 0 0 6px; color: var(--tx3); font-weight: 400; text-align: right; } .stcmp td { white-space: nowrap; padding: 4px 0; border-top: 1px solid var(--ln); text-align: right; }
.stcmp td:first-child { text-align: left; color: var(--tx2); } .stcmp td:nth-child(2) { color: var(--tx3); } .stcmp td:nth-child(3), .stcmp th:nth-child(3) { width: 76px; font-weight: 700; } .stcmp td.up { color: var(--good); } .stcmp td.down { color: var(--warn); } .stcmp tr.sep td { border-top-color: var(--ln2); }
/* tooltip, right-click menu */
#itip { position: fixed; left: 0; top: 0; z-index: 99; max-width: 300px; padding: 14px 16px; pointer-events: none; font-size: 13px; border: 1px solid var(--ln2); background: rgba(17, 22, 27, .97); }
#itip .tn { font: 700 16px/1.3 var(--cjk); } #itip .th { margin-top: 6px; line-height: 1.6; color: var(--tx2); } #itip .ts { color: var(--tx3); margin-bottom: 8px; } #itip .ta { color: #a5d8ff; } #itip .ta.leg { color: #ffbf7a; font-weight: 700; }
#itip .tp { margin-top: 8px; color: var(--tx2); } #itip .tp b { color: var(--money); } #itip .warn { color: var(--good); } #itip .tc { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ln); display: flex; flex-direction: column; } #itip .tc small { color: var(--tx3); } .up { color: var(--good); } .down { color: var(--warn); }
.ctxmenu { position: fixed; z-index: 60; min-width: 168px; padding: 4px; border: 1px solid var(--ln2); background: rgba(17, 22, 27, .98); display: flex; flex-direction: column; }
.ctxmenu button { justify-content: flex-start; min-height: 34px; border: 0; color: var(--tx); background: none; font-weight: 400; } .ctxmenu button:hover { color: var(--ink); background: var(--tx); } .ctxmenu button.sell { color: var(--money); } .ctxmenu button.danger { color: var(--bad); } .ctxmenu button.danger:hover { color: var(--ink); } .ctxmenu button.sell:hover { color: var(--ink); }

/* question box and colour picker (dialog.js) */
#ask { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(12, 16, 20, .72); animation: askin .12s ease-out; } @keyframes askin { from { opacity: 0; } }
.askbox { width: min(420px, 92vw); padding: 26px 30px 24px; border: 1px solid var(--ln2); background: var(--bg); } .askbox h3 { margin: 0; font: 700 22px/1.3 var(--cjk); overflow-wrap: anywhere; } .askbox p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--tx2); overflow-wrap: anywhere; user-select: none; }
.askb { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; } .askb button { min-width: 108px; min-height: 40px; } .askb .danger { color: var(--ink); background: var(--bad); border-color: var(--bad); } .askb .danger:hover:not(:disabled) { background: #ff8d83; border-color: #ff8d83; }
.cpick { position: fixed; z-index: 61; width: 248px; padding: 12px; border: 1px solid var(--ln2); background: rgba(17, 22, 27, .98); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cpsv, .cphue { position: relative; touch-action: none; cursor: crosshair; } .cpsv { --h: 0; height: 150px; background: linear-gradient(transparent, #000), linear-gradient(90deg, #fff, transparent), hsl(var(--h) 100% 50%); } .cphue { height: 14px; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cpsv i, .cphue i { position: absolute; pointer-events: none; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); } .cpsv i { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; } .cphue i { top: -3px; bottom: -3px; width: 8px; margin-left: -4px; }
.drop { justify-self: start; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 180px; min-height: 32px; padding: 0 12px 0 14px; border: 1px solid var(--ln2); color: var(--tx); background: transparent; font-weight: 400; } .drop::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); } .drop:hover:not(:disabled) { color: var(--tx); background: rgba(255, 255, 255, .1); border-color: var(--ln2); }
.lpick { position: fixed; z-index: 61; padding: 6px 0; overflow-y: auto; border: 1px solid var(--ln2); background: rgba(17, 22, 27, .98); } .lpick small { display: block; padding: 10px 14px 4px; color: var(--tx3); font-size: 12px; } .lpick button { display: flex; width: 100%; min-height: 32px; padding: 0 14px; justify-content: flex-start; border: 0; border-radius: 0; color: var(--tx2); background: none; font-weight: 400; } .lpick button:hover, .lpick button:focus-visible { outline: 0; color: var(--tx); background: rgba(255, 255, 255, .1); } .lpick button.on, .lpick button.on:hover { color: var(--ink); background: var(--tx); font-weight: 700; }
.cpf { display: flex; align-items: center; gap: 8px; } .cpf b { flex: 0 0 32px; height: 32px; outline: 1px solid var(--ln); } .cpick .cpf input { flex: 1; width: 0; min-height: 32px; padding: 0 10px; } .cpf button { min-height: 32px; }

/* ================================================================ menu pages */
#start { position: fixed; inset: 0; z-index: 10; }
#start .sbg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 21, 26, .95) 0, rgba(16, 21, 26, .86) 24%, rgba(16, 21, 26, 0) 52%), linear-gradient(0deg, rgba(16, 21, 26, .55), rgba(16, 21, 26, 0) 34%); }
#start[data-view="solo"] .sbg { background: linear-gradient(90deg, rgba(16, 21, 26, .96) 0, rgba(16, 21, 26, .92) 48%, rgba(16, 21, 26, 0) 74%); }
#start[data-view="builder"] .sbg { background: linear-gradient(90deg, rgba(16, 21, 26, .96) 0, rgba(16, 21, 26, .92) 62%, rgba(16, 21, 26, 0) 78%); }
#start:is([data-view="stash"], [data-view="shop"], [data-view="items"], [data-view="info"], [data-view="friends"], [data-view="board"]) .sbg { background: rgba(16, 21, 26, .95); }
.sinner { position: absolute; inset: 0; padding: 32px 44px; display: flex; flex-direction: column; }
.stitle { display: none; align-items: center; gap: 18px; } #start[data-view="home"] .stitle { display: flex; }
.stitle .logo { width: 44px; height: 44px; color: var(--ac); } .stitle h1 { margin: 0; font: 900 38px/1 var(--cjk); letter-spacing: .06em; }
#loadmsg { position: absolute; right: 44px; bottom: 30px; color: var(--tx3); font-size: 13px; }
#swWarn { position: absolute; z-index: 3; left: 50%; top: 24px; transform: translateX(-50%); width: min(680px, 92vw); padding: 20px 24px; border: 1px solid var(--bad); background: rgba(30, 20, 20, .97); font-size: 14px; } #swWarn .swh { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; color: var(--bad); } #swWarn .swh button { margin-left: auto; } #swWarn p { margin: 8px 0; } #swWarn ol { margin: 6px 0; padding-left: 20px; color: var(--tx2); } #swWarn li b { color: var(--tx); } #swWarn code { color: var(--warn); font-size: 13px; }
/* home: destinations on the left, the character in the scene, its card bottom right */
#home { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px 1fr 340px; align-items: end; }
.hnav { align-self: center; display: flex; flex-direction: column; align-items: stretch; }
.nv { justify-content: flex-start; min-height: 46px; padding: 0 0 0 18px; border: 0; border-left: 2px solid var(--ln); border-radius: 0; color: var(--tx2); background: none; font: 400 17px var(--cjk); text-align: left; }
.nv:hover:not(:disabled), .nv:focus-visible { color: var(--tx); background: linear-gradient(90deg, rgba(255, 255, 255, .12), transparent); border-color: var(--ac); }
.nv.main { min-height: 68px; font: 700 30px var(--cjk); color: var(--tx); } .nv.sub { min-height: 38px; font-size: 14px; color: var(--tx3); } .nv em { margin-left: 2px; font: 400 13px var(--cjk); color: var(--tx3); } .nv em.m { color: var(--money); } .nv.main.live { color: var(--ac); border-color: var(--ac); }
.hnav hr { width: 100%; height: 22px; margin: 0; border: 0; border-left: 2px solid var(--ln); }
.hcard { padding: 20px; border: 1px solid var(--ln); background: rgba(18, 24, 29, .86); grid-column: 3; }
.hname { display: flex; align-items: center; gap: 14px; font: 700 20px/1.2 var(--cjk); } .hname small { display: block; margin-top: 3px; font: 400 13px var(--cjk); color: var(--tx3); }
.hstat { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; } .hstat span, .hattr span { color: var(--tx3); font-size: 12px; } .hstat b { display: block; font: 700 20px/1.2 var(--cjk); color: var(--tx); }
.hattr { display: grid; grid-template-columns: repeat(6, 1fr); margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ln); } .hattr b { display: block; font: 700 15px/1.3 var(--cjk); color: var(--tx); }
.hslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; } .hslot { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 12px; min-width: 0; } .hslot small { line-height: 1.3; } .hslot.empty small { color: var(--tx3); }
.hfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ln); color: var(--tx3); font-size: 13px; } .hchars { margin-top: 14px; } .hfoot.away { color: var(--warn); } .cdet .hfoot.away { margin: 14px 0 12px; }
/* single player setup */
.solo { flex: 1; min-height: 0; grid-column: 1 / -1; align-self: stretch; display: grid; grid-template-columns: 300px 440px 1fr; grid-template-rows: auto 1fr; gap: 24px 36px; }
.clist { display: flex; flex-direction: column; gap: 0; align-self: center; } .citem { justify-content: flex-start; min-height: 62px; padding: 0 20px; border: 0; border-left: 2px solid var(--ln); border-radius: 0; color: var(--tx2); background: none; font: 400 20px var(--cjk); }
.citem:hover:not(:disabled) { color: var(--tx); background: rgba(255, 255, 255, .07); border-color: var(--ln2); } .citem.on, .citem.on:hover:not(:disabled) { color: var(--ink); background: var(--tx); border-color: var(--ac); font-weight: 700; }
.cdet { align-self: center; min-height: 500px; max-height: 100%; display: flex; flex-direction: column; } .cdet h3 { margin: 0 0 8px; font: 700 34px/1.2 var(--cjk); } .cdet > p { min-height: 3em; color: var(--tx2); font-size: 15px; } .cdet .note { margin-top: 10px; min-height: 3em; color: var(--tx3); font-size: 13px; } .cdet .seg .chip { flex: 1; min-height: 40px; font-size: 15px; } .cdet .big { width: 100%; flex: none; margin-top: auto; min-height: 56px; font-size: 18px; }
.mods { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; } .mods span { color: var(--tx3); font-size: 12px; } .mods b { display: block; color: var(--tx); font: 700 17px/1.3 var(--cjk); } .off { opacity: .3; pointer-events: none; }
/* character */
#builder { flex: 1; min-height: 0; display: grid; grid-template-columns: 200px minmax(440px, 500px) 270px 1fr; grid-template-rows: auto 1fr; gap: 20px; }
.bchar { width: 100%; justify-content: flex-start; gap: 12px; min-height: 58px; padding: 0 10px; border-color: transparent; color: var(--tx); background: none; text-align: left; font-weight: 400; } .bchar:hover:not(:disabled) { background: rgba(255, 255, 255, .07); border-color: transparent; } .bchar.on, .bchar.on:hover:not(:disabled) { background: rgba(255, 255, 255, .1); border-color: var(--ln2); }
.bchar > span:not(.iic) { display: flex; flex-direction: column; min-width: 0; } .bchar b { overflow: hidden; text-overflow: ellipsis; } .bchar small { color: var(--tx3); font-size: 12px; } .brow { display: flex; gap: 6px; margin-top: 14px; } .brow button { flex: 1; padding: 0; }
.bname { flex: 1; } #bName { width: 260px; font-size: 18px; font-weight: 700; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--ln); margin-bottom: 20px; }
.tabb { min-height: 40px; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; color: var(--tx3); background: none; font-size: 15px; } .tabb:hover:not(:disabled) { color: var(--tx); background: none; border-color: var(--ln2); } .tabb.on, .tabb.on:hover:not(:disabled) { color: var(--tx); border-color: var(--ac); }
.swatch { width: 28px; min-height: 28px; padding: 0; border: 2px solid transparent; outline: 1px solid var(--ln); } .swatch:hover:not(:disabled) { border-color: var(--ln2); } .swatch.on { border-color: var(--bg); outline: 2px solid var(--tx); }
.lmat { display: grid; gap: 8px; } .lmat > span { color: var(--tx3); font-size: 13px; line-height: 1.2; } .lsw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .lsw .swatch { width: 26px; min-height: 26px; height: 26px; } .lsep { width: 1px; height: 18px; margin: 0 3px; background: var(--ln2); }
.swatch.any { position: relative; display: inline-block; box-sizing: border-box; height: 28px; cursor: pointer; background: conic-gradient(#d84a4a, #d8c44a, #4ad86a, #4ac4d8, #5a4ad8, #d84ac0, #d84a4a); }
.init { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .ini { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 10px; border: 1px solid var(--ln); text-align: center; font-size: 13px; line-height: 1.35; } .ini > i { width: 52px; height: 52px; } .ini.empty { color: var(--tx3); }
.arow { display: grid; grid-template-columns: 62px 32px 34px 32px 1fr; align-items: center; min-height: 44px; border-top: 1px solid var(--ln); } .arow > b { text-align: center; font: 700 18px var(--cjk); } .arow .ad { margin-left: 18px; color: var(--tx3); font-size: 13px; line-height: 1.35; }
.ab { width: 32px; min-height: 32px; padding: 0; color: var(--tx); background: transparent; border-color: var(--ln2); font: 400 18px/1 var(--cjk); }
/* friends */
.ubadge { display: inline-block; min-width: 18px; margin-left: 8px; padding: 0 5px; font: 700 12px/18px var(--cjk); font-style: normal; text-align: center; color: #fff; background: var(--bad); border-radius: 9px; }
.olrow.fr.pickable { margin: 0 -10px; padding: 0 10px; cursor: pointer; } .olrow.fr.pickable:hover { background: rgba(255, 255, 255, .06); } .olrow.fr.pickable.on { background: rgba(255, 255, 255, .1); }
.frl .olh.sub { margin: 18px 0 4px; } .frnone { padding: 40px 0; text-align: center; } #frSide { display: flex; flex-direction: column; } .frh { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ln); } .frh b { font: 700 20px var(--cjk); } .frh .tabs { margin: 0 0 0 auto; border: 0; }
.frgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 6px; } .frgrid span { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--tx3); } .frgrid b { font: 700 16px var(--cjk); color: var(--tx); overflow-wrap: anywhere; }
.frchar { display: grid; grid-template-columns: 150px 1fr; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--ln); } .frchar > div:first-child { display: flex; flex-direction: column; } .frchar > div:first-child small { color: var(--tx3); } .frchar .hattr { margin: 0; padding: 0; border: 0; } .fritems { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; } .fritems span { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; } .fritems .none { color: var(--tx3); } .frb { margin-top: 18px; }
.frmsgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 4px; display: flex; flex-direction: column; gap: 10px; } .frmsgs > button { align-self: center; flex: none; } .frm { max-width: 70%; align-self: flex-start; } .frm p { margin: 0; padding: 9px 14px; background: rgba(255, 255, 255, .09); overflow-wrap: anywhere; white-space: pre-wrap; } .frm.me { align-self: flex-end; text-align: right; } .frm.me p { text-align: left; background: var(--ac2); } .frm small { color: var(--tx3); font-size: 12px; }
#frErr { margin: 0 0 6px; min-height: 1em; font-size: 13px; } .frsend { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; } .frsend textarea { grid-column: 1 / -1; resize: none; padding: 10px 12px; font: 400 15px/1.5 var(--cjk); color: var(--tx); border: 1px solid var(--ln2); background: rgba(0, 0, 0, .2); } .frsend textarea:focus { outline: 0; border-color: var(--ac); } .frsend button { min-width: 110px; }
#msgPop { position: fixed; right: 24px; bottom: 190px; z-index: 50; max-width: 320px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--ac); background: rgba(17, 22, 27, .95); cursor: pointer; } #msgPop[hidden] { display: none; } #msgPop span { color: var(--tx2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #msgPop b { font-size: 14px; }
/* stash, shop, codex, log */
#info { flex: 1; min-height: 0; display: grid; gap: 20px; grid-template-rows: auto 1fr; grid-template-columns: 1fr; } #start:is([data-view="stash"], [data-view="friends"]) #info { grid-template-columns: 360px 1fr; } #start[data-view="friends"] .icol { max-width: 900px; } #start[data-view="info"] .icol { max-width: 860px; } #start[data-view="shop"] .icol { align-self: start; max-height: 100%; }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; } .soffer { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 20px 14px 14px; border: 1px solid var(--ln); text-align: center; } .soffer:hover { border-color: var(--ln2); background: rgba(255, 255, 255, .04); } .soffer b { margin-top: 10px; font-size: 15px; } .soffer small { color: var(--tx3); } .soffer button { width: 100%; margin-top: 14px; min-height: 38px; } .soffer.sold { opacity: .4; }
.shopbar { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.cxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; } .cxi, .iw { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--ln); } .cxi > span:not(.iic), .iw > span:not(.iic) { display: flex; flex-direction: column; min-width: 0; } .cxi small, .iw small { color: var(--tx3); font-size: 13px; line-height: 1.4; }
.cxlv { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; } .cxlv span { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--ln); } .cxlv small { color: var(--tx3); }
.cxpick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .cxpick button { padding: 3px; border-radius: 8px; border: 1px solid var(--ln); background: transparent; cursor: pointer; line-height: 0; } .cxpick button.on { border-color: var(--ac); background: var(--ac2); } .cxi[data-cxbase] { cursor: pointer; }
.cxaff { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); column-gap: 32px; } .cxaff div { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 9px 0; border-top: 1px solid var(--ln); } .cxaff span { color: var(--tx2); } .cxaff small { color: var(--tx3); } .cxaff .leg b { color: #ffbf7a; }
.cxdrop { width: 100%; max-width: 900px; border-collapse: collapse; font-variant-numeric: tabular-nums; } .cxdrop td, .cxdrop th { padding: 9px 12px 9px 0; border-top: 1px solid var(--ln); text-align: left; } .cxdrop th { color: var(--tx3); font-weight: 400; } .cxrules { margin: 0; padding-left: 18px; color: var(--tx2); line-height: 1.9; }
.logv { padding: 18px 0; border-top: 1px solid var(--ln); } .logv:first-child { border: 0; padding-top: 0; } .logv b { font: 700 18px var(--cjk); } .logv small { margin-left: 12px; color: var(--tx3); } .logv ul { margin: 8px 0 0; padding-left: 18px; color: var(--tx2); line-height: 1.75; }
#avatarLoading { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; padding: 10px 20px; background: var(--glass); font-size: 14px; pointer-events: none; white-space: nowrap; }

/* ================================================================ lobby */
#online { position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: var(--bg); }
.olpanel { width: min(1180px, 100%); min-height: 100%; margin: 0 auto; padding: 32px 44px; display: flex; flex-direction: column; } .olpanel .pgh { margin-bottom: 22px; }
#olBody { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; } #olBody.one { grid-template-columns: 420px; justify-content: center; padding-top: 8vh; }
.olbox { padding: 20px; margin-bottom: 16px; } .olh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 700 16px/1.4 var(--cjk); } .olh > button { margin-left: auto; } .olh.sub { margin: 16px 0 4px; font-size: 13px; color: var(--tx3); font-weight: 400; } .olh code { font: 700 26px/1 var(--cjk); letter-spacing: .12em; color: var(--ac); }
.olset { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px 8px; } .olset > span { color: var(--tx3); } .olset b { font-weight: 700; } .olnote { color: var(--tx3); font-size: 13px; line-height: 1.7; } .olset + .olnote { margin-top: 16px; }
.olform { display: grid; gap: 12px; } .olform.inline { grid-template-columns: 1fr auto; gap: 8px; } .olform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .olbtns { display: flex; gap: 12px; } .olbtns .big { flex: 1; } .olcreate { display: grid; grid-template-columns: 1fr 260px; gap: 12px; align-items: center; } .olcreate > button { min-height: 48px; }
.olrow { display: grid; grid-template-columns: 90px 1fr 1fr 50px 76px; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid var(--ln); } .olrow code { font: 700 15px var(--cjk); letter-spacing: .08em; } .olrow em { color: var(--tx3); font-style: normal; text-align: right; } .olrow.mem { grid-template-columns: 1.1fr 1.6fr .6fr .6fr; } .olrow.mem.me > span:first-child { font-weight: 700; color: var(--ac); } .olrow.mem > span:last-child { text-align: right; } .olrow.fr { grid-template-columns: 10px 1fr auto auto; min-height: 42px; } .olrow.inv { grid-template-columns: 1fr auto auto; }
.olrow .ok { color: var(--ac); } .olrow .wait { color: var(--tx3); } span.ava { display: inline-flex; align-items: center; gap: 10px; } .team { font-weight: 700; } #netHud .teams { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; max-width: 46vw; } #netHud .mine { border-bottom: 2px solid currentColor; } .tpick { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .tpick > span:first-child { flex: none; color: var(--tx3); } .tpick .chip { gap: 8px; } .tpick .chip i { width: 10px; height: 10px; } .dot { width: 8px; height: 8px; background: var(--ln2); } .dot.on { background: var(--ac); } .olstat { color: var(--tx3); font-size: 13px; }
#olMsg { min-height: 24px; color: var(--ac); } #olMsg .bad { color: var(--bad); }
#invitePop { position: fixed; right: 24px; top: 24px; z-index: 50; padding: 18px 20px; border: 1px solid var(--ac); background: rgba(17, 22, 27, .97); pointer-events: auto; } #invitePop code { font: 700 15px var(--cjk); letter-spacing: .1em; color: var(--ac); } #invitePop button { margin: 12px 8px 0 0; }

/* ================================================================ panels: skills (X), character (C) */
#panel { position: fixed; inset: 0; z-index: 30; background: var(--bg); }
.pnwin { width: min(1400px, 100%); height: 100%; margin: 0 auto; padding: 28px 44px 24px; display: flex; flex-direction: column; } .shead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font: 700 24px/1.3 var(--cjk); } .shead small { margin-left: 12px; font: 400 14px var(--cjk); color: var(--tx3); }
#pnBody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.ttabs { display: flex; gap: 0; border-bottom: 1px solid var(--ln); } .ttab { flex: 1; min-height: 52px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; color: var(--tx3); background: none; } .ttab img { width: 24px; height: 24px; object-fit: contain; opacity: .7; } .ttab b { font: 700 15px var(--cjk); } .ttab small { font: 400 13px var(--cjk); color: var(--tx3); } .ttab:hover:not(:disabled) { color: var(--tx); background: rgba(255, 255, 255, .05); border-color: var(--ln2); } .ttab.on, .ttab.on:hover:not(:disabled) { color: var(--tx); background: none; border-color: var(--ac); } .ttab.on img { opacity: 1; }
.tinfo { display: flex; align-items: center; gap: 14px; min-height: 28px; color: var(--tx2); } .tinfo .pts { font-size: 20px; color: var(--ac); } .tinfo > button, .tinfo .legend { margin-left: auto; }
.legend { display: flex; gap: 20px; color: var(--tx3); font-size: 13px; } .lg { display: inline-block; width: 10px; height: 10px; margin-right: 7px; } .lg.learned { background: var(--ac); } .lg.can { box-shadow: inset 0 0 0 2px var(--tx); } .lg.locked { background: var(--pn3); }
.tmain { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 340px; gap: 20px; } .tscroll { overflow: auto; padding: 18px; } .tree { position: relative; margin: 0 auto; } .tlines { position: absolute; left: 0; top: 0; overflow: visible; } .tlines path { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; } .tlines path.half { stroke: rgba(98, 220, 203, .5); } .tlines path.on { stroke: var(--ac); stroke-width: 2; }
.tnode { position: absolute; width: 180px; height: 48px; min-height: 0; padding: 0 8px 0 5px; justify-content: flex-start; gap: 9px; border: 1px solid var(--ln); color: var(--tx2); background: var(--pn); font: 400 14px/1.2 var(--cjk); text-align: left; } .tnode > span:not(.sk) { display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .tnode:hover:not(:disabled) { background: var(--pn3); border-color: var(--ln2); color: var(--tx); }
.tnode.learned { border-color: var(--ac); background: #1d3534; color: var(--tx); } .tnode.can { border: 2px solid var(--tx); color: var(--tx); padding: 0 7px 0 4px; } .tnode.next { color: var(--tx); border-color: var(--ln2); } .tnode.offer { border-color: var(--ac); } .tnode.locked { color: var(--tx3); } .tnode.locked .sk { opacity: .45; } .tnode.codex { color: var(--tx); } .tnode.sel, .tnode.sel:hover:not(:disabled) { outline: 2px solid var(--ac); outline-offset: 2px; opacity: 1; }
.pips { display: inline-flex; gap: 3px; margin-top: 4px; font-style: normal; } .pips i { width: 12px; height: 3px; background: rgba(255, 255, 255, .2); } .pips i.on { background: var(--ac); } .band { position: absolute; left: 0; right: 0; margin-top: -8px; border-top: 1px solid var(--ln); } .band b { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; white-space: nowrap; font: 400 13px var(--cjk); letter-spacing: .2em; color: var(--tx3); } .tier { position: absolute; top: 0; width: 180px; text-align: center; font-size: 12px; color: var(--tx3); }
.tdetail { overflow-y: auto; padding: 22px; } .tdetail p { margin-top: 14px; line-height: 1.7; } .tdetail .dh { display: flex; gap: 16px; align-items: center; } .tdetail .dh b { display: block; font: 700 20px/1.3 var(--cjk); } .tdetail .dh small, .tdetail .dh em { display: block; font: 400 13px/1.5 var(--cjk); color: var(--tx3); } .tdetail .cur { color: var(--ac); font-weight: 700; } .tdetail .ok { color: var(--ac); } .tdetail .no { color: var(--warn); } .tdetail .st { font-weight: 700; } .tdetail .st.learned { color: var(--ac); } .tdetail > button { margin: 16px 8px 0 0; }
.cgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px 1fr; gap: 36px; overflow: auto; } .ccol > .bl:first-child { margin-top: 0; } .gpanel { display: flex; flex-direction: column; gap: 12px; } .item.potion { margin-top: 6px; }
.slotsR { display: grid; grid-template-columns: repeat(6, 84px); gap: 8px; } .slotsB { display: grid; grid-template-columns: repeat(10, 64px); gap: 8px; margin-top: 8px; } .cslot { position: relative; height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; padding: 6px 2px; border: 1px solid var(--ln); background: rgba(0, 0, 0, .22); font-size: 12px; text-align: center; line-height: 1.2; cursor: pointer; } .slotsB .cslot { height: 82px; } .cslot small { color: var(--tx2); } .cslot .ck { position: absolute; left: 6px; top: 4px; font: 700 12px var(--cjk); color: var(--tx3); } .cslot:hover { border-color: var(--ln2); } .cslot.tgt { border-color: var(--ac); } .cslot.over { background: var(--ac2); border-color: var(--ac); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; min-height: 76px; padding: 6px; border: 1px solid var(--ln); } .acts.over { border-color: var(--bad); } .act { width: 82px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border: 1px solid transparent; font-size: 12px; line-height: 1.3; text-align: center; cursor: grab; } .act:hover { background: rgba(255, 255, 255, .06); } .act.used { opacity: .5; } .act.picked { border-color: var(--ac); background: var(--ac2); } .act.passive { cursor: default; }
/* adventure: class wheel, then three cards */
.dhead { display: flex; gap: 32px; color: var(--tx3); } .dhead b { margin-left: 6px; font: 700 18px var(--cjk); color: var(--tx); } .dhead .pts { color: var(--ac); } .draft { position: relative; flex: 1; min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; overflow: hidden; } .draft.empty { min-height: 240px; gap: 10px; } .dtitle { display: flex; align-items: center; gap: 14px; font: 700 26px var(--cjk); }
.demb { display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 24%, #12171c); box-shadow: inset 0 0 0 2px var(--c); } .dwheel { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; } .dstage { width: 820px; max-width: 72vw; height: 250px; perspective: 1000px; display: grid; place-items: center; } .dring { position: relative; width: 160px; height: 220px; transform-style: preserve-3d; }
.dwi { position: absolute; inset: 0; flex-direction: column; gap: 12px; padding: 0; color: var(--tx); background: #171d23; border-color: var(--ln2); transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s, border-color .2s; } .dwi:hover:not(:disabled) { background: #202931; border-color: var(--ln2); } .dwi b { font: 700 20px var(--cjk); } .dwi small { font: 400 13px var(--cjk); color: var(--tx3); } .dwi.front, .dwi.front:hover:not(:disabled) { border: 2px solid var(--c); background: #1c242b; } .dwi.none { filter: grayscale(1); }
.dnav { width: 44px; min-height: 64px; padding: 0; color: var(--tx); background: transparent; border-color: var(--ln2); font: 400 26px/1 var(--cjk); } .dinfo { display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: 92px; } .dsel { display: flex; align-items: baseline; gap: 14px; } .dsel b { font: 700 20px var(--cjk); color: var(--c); } .dsel span { color: var(--tx2); } .dmine { display: flex; gap: 5px; min-height: 26px; }
.dcards { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; } .dcard { position: relative; width: 250px; min-height: 350px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 20px 16px; border: 1px solid var(--ln2); border-top: 3px solid var(--c); background: #181f25; cursor: pointer; animation: dDeal .32s cubic-bezier(.2, .8, .2, 1) both; transition: transform .15s, border-color .15s, background .15s; } .dcard:hover { transform: translateY(-6px); background: #1f2830; border-color: var(--c); } @keyframes dDeal { from { opacity: 0; transform: translateY(24px); } }
.drib { font-size: 13px; color: var(--tx3); } .drib.up { color: var(--ac); } .dname { font: 700 20px var(--cjk); } .dpips { display: flex; gap: 4px; } .dpips i { width: 18px; height: 3px; background: rgba(255, 255, 255, .18); } .dpips i.on { background: var(--c); } .dpips i.nx { background: var(--tx); } .dkind { color: var(--tx3); font-size: 13px; } .dcard p { flex: 1; margin-top: 4px; width: 100%; font-size: 13px; line-height: 1.6; color: var(--tx2); } .dnums { color: var(--ice); font-size: 13px; } .dfoot { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; } .dact { display: flex; gap: 16px; }
.dlearned { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 40px; padding-top: 14px; border-top: 1px solid var(--ln); } .dl { margin-right: 8px; color: var(--tx3); } .dls { position: relative; display: inline-flex; } .dls em { position: absolute; right: -4px; bottom: -4px; padding: 0 4px; font: 700 11px/15px var(--cjk); color: var(--ink); background: var(--c); }

/* ================================================================ HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 4; transition: opacity .3s; text-shadow: var(--sh); } #hud.off { opacity: 0; }
#crosshair { --sp: 0px; --fp: 0%; --cr: 70px; position: absolute; left: 50%; top: 46%; width: 30px; height: 30px; transform: translate(-50%, -50%); } #crosshair i { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(10, 14, 18, .55); transition: background .1s; } #crosshair i:nth-child(1) { left: 14px; top: 0; width: 2px; height: 9px; } #crosshair i:nth-child(2) { left: 14px; bottom: 0; width: 2px; height: 9px; } #crosshair i:nth-child(3) { top: 14px; left: 0; width: 9px; height: 2px; } #crosshair i:nth-child(4) { top: 14px; right: 0; width: 9px; height: 2px; }
#crosshair::after { content: ""; display: none; position: absolute; left: 50%; top: 50%; width: calc(var(--cr) * 2); height: calc(var(--cr) * 2); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 2px var(--ac), 0 0 0 3px #0008; transition: width .05s linear, height .05s linear; } #crosshair.charge::after { display: block; } #crosshair.chargefull::after { box-shadow: 0 0 0 3px var(--ac), 0 0 0 4px #0008, 0 0 18px var(--ac); animation: pulse .35s ease-in-out infinite alternate; } @keyframes pulse { to { opacity: .55; } }
#crosshair.ally i { background: var(--good) !important; } #crosshair b { display: none; position: absolute; left: 50%; top: 50%; width: calc(var(--sp) * 2 + 12px); height: calc(var(--sp) * 2 + 12px); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); } #crosshair em { display: none; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 19px, #000 20px); mask: radial-gradient(circle, transparent 19px, #000 20px); background: conic-gradient(var(--ac) var(--fp), transparent 0); } #crosshair.hunter b, #crosshair.hunter em { display: block; } #crosshair.focus i { background: var(--ac); } #crosshair.focus b { box-shadow: 0 0 0 2px var(--ac); } #crosshair.on i, #crosshair.hunter.on i { background: var(--bad); } body:not(.cursor-mode) #game canvas { cursor: none; } body.cursor-mode #crosshair { opacity: .3; }
#crosshair.pin b { width: 5px; height: 5px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 14, 18, .55); } #crosshair.pin.on b { background: var(--bad); }
/* top left: where you are and what to do */
#obj { position: absolute; left: 24px; top: 24px; min-width: 220px; max-width: 400px; padding: 10px 18px 10px 14px; border-left: 2px solid var(--ac); background: var(--plate); } #obj .stage { font: 700 18px/1.3 var(--cjk); } #obj .stage small { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--tx2); } #objText { margin-top: 2px; font-size: 14px; } #timer { font-size: 13px; color: var(--tx2); font-variant-numeric: tabular-nums; }
#endHud { margin-top: 10px; font-size: 13px; color: var(--tx2); } #endHud .thr { color: var(--tx); } #endHud .thr b { font-size: 20px; } #endHud .clk { width: 200px; height: 3px; margin: 6px 0; background: rgba(255, 255, 255, .25); } #endHud .clk i { display: block; height: 100%; transform-origin: left; background: var(--warn); } #endHud .ct b { color: var(--tx); } #endHud .ct b.w { color: var(--bad); animation: pulse .6s ease-in-out infinite alternate; } #endHud small { display: block; }
#trainBar { position: absolute; left: 24px; top: 128px; display: flex; gap: 6px; } #trainBar button { min-height: 30px; padding: 0 12px; font-size: 13px; color: var(--tx); background: var(--glass); border-color: var(--ln2); font-weight: 400; } body.cursor-mode #trainBar { pointer-events: auto; } body.cursor-mode #trainBar button:hover { color: var(--ink); background: var(--tx); } body:not(.cursor-mode) #trainBar { opacity: .5; }
#party { position: absolute; left: 24px; top: 214px; display: flex; flex-direction: column; gap: 6px; width: 200px; } .pf { padding: 8px 12px; background: var(--plate); } .pfn { display: flex; align-items: center; gap: 8px; font-size: 13px; } .pfn img { width: 16px; height: 16px; object-fit: contain; } .pfn small { margin-left: auto; color: var(--tx2); } .pfhp { position: relative; height: 5px; margin: 4px 0; background: rgba(0, 0, 0, .5); } .pfhp i { position: absolute; inset: 0; transform-origin: left; background: var(--good); } .pfhp span { position: absolute; right: 0; top: 6px; font-size: 12px; color: var(--tx2); font-variant-numeric: tabular-nums; } .pf .pfst { --sti: 16px; flex-wrap: wrap; width: 110px; min-height: 16px; } .pf.dead { opacity: .5; } .pf.offline :is(.pfn, .pfhp, .pfst) { filter: grayscale(1); opacity: .6; } .pf.offline .pfhp i { background: var(--tx3); } .pfa { position: relative; display: inline-flex; } .pfpg { position: absolute; left: -13px; top: -13px; min-width: 22px; padding: 0 3px; font: 700 10px/13px var(--cjk); text-align: center; text-decoration: none; font-variant-numeric: tabular-nums; background: rgba(8, 10, 14, .9); border-radius: 3px; } .pfpg.ok { color: var(--good); } .pfpg.mid { color: var(--money); } .pfpg.bad { color: var(--bad); }
#lootFeed { position: absolute; left: 24px; top: 46%; display: flex; flex-direction: column; gap: 4px; } #lootFeed .lf { font-weight: 700; font-size: 14px; transition: opacity .5s, transform .5s; } #lootFeed .lf.out { opacity: 0; transform: translateX(-10px); }
/* top right: rank, settings, map */
#gearBtn { position: absolute; right: 24px; top: 24px; width: 44px; min-height: 44px; padding: 0; pointer-events: auto; color: var(--tx); background: var(--plate); border-color: transparent; } #gearBtn svg { width: 20px; height: 20px; fill: currentColor; filter: drop-shadow(0 1px 2px #000a); } #gearBtn:hover { color: var(--ink); background: var(--tx); border-color: var(--tx); }
#score { position: absolute; right: 72px; top: 24px; height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 12px; background: var(--plate); } #score .sl { display: none; } #rankLive { font: 900 24px/32px var(--cjk); } #scoreN { font-size: 14px; color: var(--tx2); font-variant-numeric: tabular-nums; } #emap { position: absolute; right: 24px; top: 80px; width: 150px; height: 150px; }
#combo { position: absolute; right: 32px; top: 35%; text-align: right; transition: opacity .25s; } #combo.idle { opacity: 0; } #comboN { font: 900 64px/1 var(--cjk); font-variant-numeric: tabular-nums; } #combo .lab { font-size: 14px; color: var(--tx2); } #comboTier { height: 26px; font: 700 17px/26px var(--cjk); } #comboBar { width: 110px; height: 2px; margin: 4px 0 0 auto; background: rgba(255, 255, 255, .25); } #comboBar i { display: block; height: 100%; background: #fff; transform-origin: right; } .tier1 { color: var(--ice); } .tier2 { color: var(--ac); } .tier3 { color: var(--warn); } .tier4 { color: #ff8fd6; }
/* boss */
#bossbar { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: min(620px, 46vw); padding: 8px 16px 12px; background: var(--plate); } #bossbar .bname { display: flex; justify-content: space-between; align-items: baseline; font: 700 17px/1.4 var(--cjk); margin-bottom: 5px; } #bossbar .bname em { font-style: normal; font-size: 15px; color: var(--tx2); } .bhp { position: relative; height: 10px; background: rgba(0, 0, 0, .6); overflow: hidden; } .bhp i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; } #bossHpLag { background: #fff; transition: transform .5s .25s; } .bsa { position: relative; height: 3px; margin: 4px 44px 0 0; background: rgba(0, 0, 0, .5); } .bsa i { position: absolute; inset: 0; background: #dfe7ec; transform-origin: left; } .bsa span { position: absolute; right: -40px; top: -8px; font-size: 13px; color: var(--tx2); } #bossbar.broken .bsa i { background: var(--warn); } #bossbar.broken .bsa span { color: var(--warn); } #bossSt { margin: 8px auto 0; --sti: 22px; }
/* bottom left: you */
#player { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; background: var(--plate); } .portrait { position: relative; width: 64px; height: 64px; display: grid; place-items: center; background: var(--glass); } #portrait, #portrait .iic { width: 64px; height: 64px; } #portrait { display: grid; } #portrait .iic img { transform: scale(1.3); } #lv { position: absolute; left: 0; bottom: 0; min-width: 22px; padding: 0 5px; font: 700 13px/20px var(--cjk); text-align: center; text-shadow: none; color: var(--ink); background: var(--tx); } .bars { width: 300px; } .pname { display: flex; align-items: center; gap: 10px; min-height: 26px; font: 700 15px/1.3 var(--cjk); margin-bottom: 4px; } #pBuffs { --sti: 22px; gap: 5px; } body.cursor-mode #pBuffs, body.cursor-mode #passives .pslot { pointer-events: auto; }
.php { position: relative; height: 16px; background: rgba(0, 0, 0, .55); overflow: hidden; } .php i { position: absolute; inset: 0; transform-origin: left; } #pHpLag { background: var(--bad); transition: transform .5s .2s; } #pHp { background: #f2f5f6; } #pHpT { position: absolute; inset: 0; padding-left: 8px; font: 700 12px/16px var(--cjk); font-variant-numeric: tabular-nums; color: #fff; mix-blend-mode: difference; text-shadow: none; } .pres { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; } .pres .mana { display: flex; align-items: center; gap: 8px; height: 12px; } .mcells { flex: 1; min-width: 0; height: 10px; display: flex; gap: 2px; } .mcells i { flex: 1 1 0; min-width: 1px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); } .mcells i.on { background: #3f97e0; box-shadow: none; } .mcells i:nth-child(5n):not(:last-child) { margin-right: 3px; } .pres .mana span { flex: none; min-width: 46px; text-align: right; font: 700 12px/12px var(--cjk); font-variant-numeric: tabular-nums; color: #a8d6ff; } .ragebox { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--tx2); } .ragebox .rageN { color: var(--warn); }
.pcold { position: relative; height: 14px; margin-top: 4px; background: rgba(0, 0, 0, .5); overflow: hidden; } .pcold i { position: absolute; inset: 0; transform-origin: left; background: #2f86b3; transition: transform .2s; } .pcold span { position: absolute; inset: 0; padding-left: 8px; font: 700 12px/14px var(--cjk); color: #fff; } .pcold.slow i { background: #2a6fa8; } .pcold.max { animation: pulse .8s ease-in-out infinite alternate; }
#passives { position: absolute; left: 24px; bottom: 126px; display: flex; flex-wrap: wrap; gap: 6px; max-width: 378px; } .pslot { position: relative; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; } .pslot .cd, .slot .cd { position: absolute; inset: 0; z-index: 2; background: conic-gradient(rgba(8, 11, 14, .8) calc(var(--cd, 0) * 360deg), transparent 0); } .pslot .cdt, .slot .cdt { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font: 700 12px var(--cjk); } .slot .cdt { font-size: 18px; } .pslot.flash { animation: pflash .5s ease-out; } @keyframes pflash { 0% { box-shadow: 0 0 0 3px var(--ac); } }
/* bottom right: actions */
#hotR, #hotB { position: absolute; right: 24px; display: flex; gap: 6px; padding: 8px; background: var(--plate); } #hotR { bottom: 24px; } .slotwrap { display: flex; flex-direction: column; align-items: center; } .slot { position: relative; width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; background: rgba(13, 17, 21, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); } .slot > .sk, .slot > .iic { width: 56px; height: 56px; --s: 56px; } .slot > .iic img { transform: scale(1.15); } #hotB .slot { width: 44px; height: 44px; } #hotB .slot > .sk, #hotB .slot > .iic { width: 44px; height: 44px; --s: 44px; } #hotB { bottom: 102px; }
.slot .key { position: absolute; left: 0; top: 0; z-index: 4; min-width: 18px; padding: 0 4px; font: 700 12px/17px var(--cjk); text-align: center; text-shadow: none; color: #fff; background: rgba(10, 13, 16, .78); } .slot .cost { position: absolute; right: 0; bottom: 0; z-index: 4; padding: 0 4px; font: 700 12px/16px var(--cjk); text-shadow: none; color: #a8d6ff; background: rgba(10, 13, 16, .78); } .slot .gnd { display: none; } .slot.empty { opacity: .45; } .slot.nores > .sk, .slot.nores > .iic { opacity: .35; filter: grayscale(1); } .slot.held { box-shadow: 0 0 0 2px var(--ac); } .slot.flash::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #fff; animation: sflash .25s ease-out forwards; } @keyframes sflash { from { opacity: .7; } to { opacity: 0; } } .slot.ready::before { content: ""; position: absolute; inset: 0; z-index: 5; box-shadow: inset 0 0 0 2px var(--ac); animation: sready .6s ease-out forwards; } @keyframes sready { to { opacity: 0; } } .slotwrap .lbl { display: none; position: absolute; } body.cursor-mode #hotR { padding-bottom: 26px; } body.cursor-mode #hotR .lbl { display: block; bottom: -20px; font-size: 12px; line-height: 18px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } body.cursor-mode #hotB { bottom: 120px; } .slotwrap { position: relative; } #hotB[hidden] { display: none; }
/* bottom edge: level, loot, prompts */
#expbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .55); } #expbar i { position: absolute; inset: 0; transform-origin: left; background: var(--ac); } #expbar span { display: none; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 12px; color: var(--tx2); white-space: nowrap; } body.cursor-mode #expbar span { display: block; } #expbar b { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; font: 700 14px var(--cjk); text-shadow: none; color: var(--ink); background: var(--ac); white-space: nowrap; } #expbar b kbd { color: var(--ac); background: var(--ink); border: 0; } #expbar b.new { animation: ptNew 1.6s ease-out; } @keyframes ptNew { 0%, 30%, 60% { scale: 1.18; box-shadow: 0 0 18px var(--ac); } 15%, 45%, 100% { scale: 1; box-shadow: none; } }
#lootBar { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 4px 14px; background: var(--plate); font-size: 13px; color: var(--tx2); white-space: nowrap; } #lootBar b { color: var(--tx); } #lootBar b.g, #extract b.g { color: var(--money); }
#modeChip { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); padding: 5px 14px; font-size: 13px; background: var(--glass); white-space: nowrap; } #modeChip:empty { display: none; }
#pickHint { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: 70vw; padding: 8px 16px 8px 8px; font-size: 15px; background: var(--glass); } #pickHint > b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; font-size: 14px; text-shadow: none; color: var(--ink); background: var(--tx); white-space: nowrap; } #pickHint b.pt { background: var(--ac); }
#banner { position: absolute; left: 0; right: 0; top: 24%; padding: 18px 0; text-align: center; font: 700 44px/1.2 var(--cjk); letter-spacing: .04em; opacity: 0; background: linear-gradient(90deg, transparent, rgba(12, 16, 20, .72) 32%, rgba(12, 16, 20, .72) 68%, transparent); } #banner small { display: block; margin-top: 6px; font: 400 16px/1.5 var(--cjk); letter-spacing: 0; color: var(--tx2); } #banner.show { animation: bann 2.4s ease-out forwards; } @keyframes bann { 0% { opacity: 0; transform: translateY(8px); } 8% { opacity: 1; transform: none; } 82% { opacity: 1; } 100% { opacity: 0; } }
#toast { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); padding: 6px 16px; font-size: 15px; background: var(--glass); opacity: 0; transition: opacity .15s; white-space: nowrap; } #toast.show { opacity: 1; }
#extract { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 28px; border: 1px solid var(--ln2); background: rgba(17, 22, 27, .95); text-shadow: none; } #extract > b { font: 700 24px var(--cjk); } #extract > span { color: var(--tx2); } #extract .xvh { font-size: 13px; } #extract .exb { display: flex; gap: 12px; margin-top: 16px; } #extract button { flex-direction: column; gap: 3px; min-height: 60px; min-width: 200px; } #extract button kbd { margin-left: 4px; border: 0; color: var(--tx); background: var(--ink); } #extract button small { font: 400 13px var(--cjk); opacity: .75; } body.cursor-mode #extract { pointer-events: auto; }
/* 返回大厅: the cover over the reload (index.html, game.js toHall / hallReady) */
#hallload { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding-bottom: 8vh; background: var(--bg); transition: opacity .35s; } #hallload.in { animation: hallin .18s ease-out; } #hallload.out { opacity: 0; pointer-events: none; } @keyframes hallin { from { opacity: 0; } }
#hallload > div { display: flex; flex-direction: column; align-items: center; gap: 22px; } #hallload b { font: 700 44px/1.2 var(--cjk); letter-spacing: .12em; } #hallload i { position: relative; width: 200px; height: 2px; overflow: hidden; background: var(--ln); } #hallload i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--ac); animation: mapwait 1.1s linear infinite; }
#mapload { position: fixed; inset: 0; z-index: 46; display: grid; place-items: center; padding-bottom: 8vh; text-align: center; background: var(--bg); pointer-events: none; transition: opacity .35s; } #mapload.out { opacity: 0; } #mapload > div { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 320px; max-width: 80vw; }
#mapload b { font: 700 60px/1.2 var(--cjk); letter-spacing: .06em; } #mapload span { min-height: 27px; font-size: 18px; color: var(--tx2); } #mapload p { min-height: 22px; max-width: 620px; font-size: 15px; color: var(--tx2); } #mapload em { min-height: 22px; font-style: normal; color: var(--ac); font-variant-numeric: tabular-nums; }
#mapload i { position: relative; width: 320px; height: 2px; margin: 14px 0 10px; overflow: hidden; background: var(--ln); } #mapload i::after { content: ""; position: absolute; inset: 0; background: var(--ac); transform-origin: left; animation: maplin 1.3s ease-out forwards; } #mapload.wait i::after { animation: mapwait 1.1s linear infinite; transform: none; width: 30%; } @keyframes maplin { from { transform: scaleX(0); } 70% { transform: scaleX(.8); } to { transform: scaleX(1); } } @keyframes mapwait { from { left: -30%; } to { left: 100%; } }
#learnBar { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 20px; border: 1px solid var(--ln2); background: rgba(17, 22, 27, .97); color: var(--tx2); white-space: nowrap; } #learnBar > b { font: 700 16px var(--cjk); color: var(--tx); } #learnBar em { font-style: normal; font-weight: 700; color: var(--ac); } #learnBar .lt { min-width: 36px; text-align: center; font: 700 20px var(--cjk); color: var(--tx); font-variant-numeric: tabular-nums; } #learnBar .lt.big { font-size: 30px; } #learnBar.count { padding: 10px 24px; } #learnBar button kbd { border: 0; color: var(--tx); background: var(--ink); }
#netHud { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 6; padding: 8px 18px; background: var(--plate); font: 700 20px var(--cjk); text-shadow: var(--sh); pointer-events: none; } #netHud small { display: block; text-align: center; font: 400 13px var(--cjk); color: var(--tx2); } #respawn { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 7; font: 700 26px var(--cjk); text-shadow: var(--sh); pointer-events: none; white-space: nowrap; } #lockTip { display: none; }
/* fps and ping: one line, side by side; on a narrow screen the rest moves to the next line instead of covering it */
#perf { position: fixed; left: 24px; right: 24px; bottom: 7px; z-index: 8; display: flex; flex-wrap: wrap-reverse; column-gap: 14px; row-gap: 2px; pointer-events: none; }
#fps, #ping { font: 400 12px/14px var(--cjk); color: var(--tx2); text-shadow: var(--sh); font-variant-numeric: tabular-nums; white-space: nowrap; } #ping.mid { color: var(--warn); } #ping.bad { color: var(--bad); }

/* ================================================================ world labels */
.dmg { position: absolute; left: 0; top: 0; font: 900 26px/1 var(--cjk); color: #fff; -webkit-text-stroke: 3px rgba(14, 18, 22, .88); paint-order: stroke fill; white-space: nowrap; will-change: transform, opacity; font-variant-numeric: tabular-nums; } .dmg.crit { color: #ffd75e; font-size: 36px; } .dmg.back { color: #ffae7a; } .dmg.fire { color: #ffb067; } .dmg.ice { color: #b8ecff; } .dmg.arc { color: #e0c4ff; } .dmg.holy { color: #ffe38a; } .dmg.moon { color: #dceeff; } .dmg.nature { color: #9ff09a; } .dmg.poison { color: #2f9a3c; } .dmg.me { color: #ff7a70; font-size: 24px; } .dmg.heal { color: #86e29b; font-size: 21px; } .dmg.mana { color: #8fc8ff; }
.tag { position: absolute; left: 0; top: 0; padding: 1px 8px; font: 700 14px/1.5 var(--cjk); color: #fff; background: rgba(14, 18, 22, .78); white-space: nowrap; will-change: transform, opacity; } .tag.sa { color: #dfe7ec; } .tag.brk, .tag.react { padding: 2px 12px; font-size: 18px; color: var(--ink); background: var(--warn); } .tag.air { color: var(--ice); } .tag.back { color: #ffae7a; } .tag.miss { color: var(--tx3); font-size: 12px; }
.ehp { position: absolute; left: 0; top: 0; width: 60px; height: 5px; margin-left: -30px; background: rgba(10, 13, 16, .75); overflow: hidden; box-shadow: 0 0 0 1px rgba(10, 13, 16, .75); } .ehp i { position: absolute; inset: 0; background: #ff6158; transform-origin: left; } .ehp b { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff; transform-origin: left; } .ehp.elite { width: 92px; margin-left: -46px; height: 7px; box-shadow: 0 0 0 1px rgba(10, 13, 16, .75), 0 0 0 2px var(--warn); } .ehp.ally i, .ehp.own i { background: var(--good) !important; } .ehp.own { width: 72px; margin-left: -36px; } .ebar { position: absolute; left: 0; top: 0; width: 0; height: 0; } .ebar .st { position: absolute; left: 36px; top: -4px; font: 700 12px var(--cjk); color: #fff; text-shadow: var(--sh); white-space: nowrap; } .ebar:has(.elite) .st:not(.stchips) { left: 52px; } .ebar .st.stchips { left: 0; top: auto; bottom: 4px; transform: translateX(-50%); --sti: 16px; } .ebar.named .st.stchips { bottom: 24px; } .ebar .elv { position: absolute; left: -34px; top: -19px; font: 700 12px var(--cjk); font-style: normal; color: #fff; text-shadow: var(--sh); white-space: nowrap; } .pnm { position: absolute; left: 0; top: 0; white-space: nowrap; font: 700 13px var(--cjk); text-shadow: var(--sh); pointer-events: none; } .pnm.foe { color: #ff9385; } .pnm.ally { color: #a9ecb9; }
.sti { display: inline-block; flex: none; width: var(--sti, 16px); height: var(--sti, 16px); background: url("assets/status-icons/icons.png") no-repeat; background-size: 1200% 1100%; image-rendering: pixelated; } .stchips { display: flex; gap: 3px; width: max-content; pointer-events: none; } .stchips em { position: relative; display: block; font-style: normal; line-height: 0; padding: 1px; background: rgba(10, 13, 16, .85); box-shadow: inset 0 -2px 0 var(--c, #8794a0); } .stchips em.neg { --c: var(--bad); } .stchips em.pos { --c: var(--ac); } .stchips sup, .stchips small { position: absolute; right: -3px; font: 700 11px/1 var(--cjk); color: #fff; text-shadow: 0 0 2px #000, 0 1px 2px #000; } .stchips sup { top: -4px; } .stchips small { bottom: -4px; }
.droplbl { position: absolute; left: 0; top: 0; padding: 2px 8px; font: 700 13px/1.4 var(--cjk); white-space: nowrap; background: rgba(13, 17, 21, .7); } .droplbl.near { box-shadow: 0 0 0 1px currentColor; background: rgba(13, 17, 21, .92); }

/* ================================================================ overlays: settings, results, camp and stall */
#settings { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(12, 16, 20, .72); } .spanel { width: min(760px, 94vw); height: min(760px, 92vh); display: flex; flex-direction: column; padding: 26px 30px; border: 1px solid var(--ln); background: var(--bg); } #setBody { flex: 1; min-height: 0; overflow-y: auto; padding-right: 12px; } .srow { display: grid; grid-template-columns: 1fr 220px 64px; align-items: center; gap: 18px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--ln); cursor: pointer; } .srow .sl small { display: block; color: var(--tx3); font-size: 13px; line-height: 1.4; } .srow output { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; } .srow input[type=checkbox] { justify-self: end; grid-column: 2 / 4; } .srow > span:empty { display: none; } #setBody > .tabs { margin-bottom: 6px; position: sticky; top: 0; z-index: 1; background: var(--bg); } #setBody > .tabs + .srow { border-top: 0; } .srow.key { cursor: default; grid-template-columns: 1fr auto; min-height: 42px; } .srow.key span:last-child { display: flex; gap: 6px; } .sbtns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; } .sbtns #setLeave, .sbtns #setHome { margin-right: auto; }
#results { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; background: rgba(12, 16, 20, .86); overflow-y: auto; } .rinner { width: min(560px, 92vw); padding: 24px 0; } .rk { font: 700 22px var(--cjk); color: var(--tx2); margin-bottom: 14px; } #rRank { font: 900 120px/1.1 var(--cjk); margin: 0 0 18px; animation: rin .4s ease-out both; } @keyframes rin { from { opacity: 0; transform: translateY(14px); } } #rTable { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; } #rTable td { padding: 9px 0; border-top: 1px solid var(--ln); color: var(--tx2); } #rTable td:last-child { text-align: right; font-weight: 700; color: var(--tx); } #rTable tr.neg td:last-child { color: var(--bad); } #rTable tr.tot td { font-size: 20px; font-weight: 700; color: var(--tx); border-top-color: var(--ln2); } #rTable tr.loot td { color: var(--good); } .rbtns { display: flex; gap: 12px; margin-top: 26px; } .rbtns button { min-height: 48px; flex: 1; font-size: 16px; }
#endLoot { margin-top: 20px; } #endLoot p { margin-bottom: 14px; } #endLoot .elh { font: 700 16px var(--cjk); margin-bottom: 10px; } #endLoot .elh small { display: block; font: 400 13px var(--cjk); color: var(--tx3); } #endLoot .igrid { max-height: 230px; overflow-y: auto; margin-bottom: 14px; } #endLoot .kept { color: var(--good); } #endLoot button.big { width: 100%; }
#gstats { position: absolute; inset: 0; z-index: 2; overflow-y: auto; padding: 32px max(44px, calc(50vw - 560px)); background: var(--bg); } .gshead { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 700 24px var(--cjk); } .gshead button:first-of-type { margin-left: auto; } .gspies, .gscols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .gspie, .gsp { padding: 18px; border: 1px solid var(--ln); } .gspie { display: flex; align-items: center; gap: 16px; } .gspie .gsl { font: 400 13px var(--cjk); fill: var(--tx2); } .gspie .gsv { font: 700 17px var(--cjk); fill: var(--tx); } .gspie ul { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.9; } .gspie li { display: flex; align-items: center; gap: 8px; } .gspie li.me span { color: var(--ac); } .gspie li i, .gsph i { flex: none; width: 9px; height: 9px; } .gspie li span, .gsr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gspie small, .gsr small { width: 38px; text-align: right; color: var(--tx3); } .gsdet { display: grid; gap: 16px; margin-top: 16px; } .gsph { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; } .gsph small { color: var(--tx3); font-weight: 400; } .gsch { margin-bottom: 6px; color: var(--tx3); } .gsch b { margin-left: 6px; color: var(--tx); } .gsr { position: relative; display: flex; gap: 8px; padding: 4px 6px; font-size: 13px; } .gsr span, .gsr b, .gsr small { z-index: 1; } .gsr i { position: absolute; left: 0; top: 0; bottom: 0; opacity: .25; } .gsfoot { margin-top: 16px; color: var(--tx3); font-size: 13px; }
#bpmap, #bpPanel { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(12, 16, 20, .72); } .bpbox, .bpmbox { width: min(760px, 94vw); max-height: 92vh; overflow: auto; padding: 26px 30px; border: 1px solid var(--ln); background: var(--bg); } .bpbox.small { width: min(460px, 94vw); display: flex; flex-direction: column; gap: 12px; } .bph { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; } .bph b { font: 700 22px var(--cjk); } .bph span { color: var(--tx2); } .bph em { font-style: normal; font-weight: 700; color: var(--money); } .bph button { margin-left: auto; } .bpoffers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .bpoffer { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--ln); } .bpoffer > span:not(.iic) { display: flex; flex-direction: column; flex: 1; min-width: 0; } .bpoffer small { color: var(--tx3); font-size: 13px; } .bpoffer.sold { opacity: .4; } .bpf { margin-top: 16px; } .bpbig { flex-direction: column; align-items: flex-start; gap: 3px; min-height: 68px; font-size: 17px; text-align: left; white-space: normal; } .bpbig small { font: 400 13px var(--cjk); opacity: .75; }

@media (max-width: 1280px) { .lsw { gap: 4px; } .lsw .swatch { width: 22px; min-height: 22px; height: 22px; } .sinner, .olpanel, .pnwin { padding-left: 26px; padding-right: 26px; } #builder { grid-template-columns: 164px 400px 226px 1fr; gap: 12px; } .bcol { padding: 16px; } .stcmp td:nth-child(3), .stcmp th:nth-child(3) { width: 54px; } #start[data-view="builder"] .sbg { background: linear-gradient(90deg, rgba(16, 21, 26, .96) 0, rgba(16, 21, 26, .92) 66%, rgba(16, 21, 26, 0) 80%); } #home { grid-template-columns: 280px 1fr 310px; } .solo { grid-template-columns: 240px 420px 1fr; } .bars { width: 230px; } .slot, .slot > .sk, .slot > .iic { width: 48px; height: 48px; --s: 48px; } #hotB { bottom: 94px; } .tmain { grid-template-columns: 1fr 290px; } .cgrid { grid-template-columns: 340px 1fr; } .slotsR { grid-template-columns: repeat(6, 1fr); } .slotsB { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1060px) { #builder { grid-template-columns: 150px minmax(0, 440px) 1fr; } .bcol.go { display: none; } }
@media (max-height: 720px) { .sinner, .olpanel { padding-top: 18px; padding-bottom: 18px; } #acct { top: 18px; } .nv.main { min-height: 54px; font-size: 25px; } .nv { min-height: 38px; } .hnav hr { height: 12px; } .nv.sub { min-height: 32px; } .cdet { min-height: 0; gap: 4px; overflow-y: auto; } .cdet > p, .cdet .note { min-height: 0; } .cdet .bl { margin: 10px 0 6px; } .cdet .seg .chip { min-height: 34px; } .cdet .seg { flex: none; } .cdet .big { margin-top: 14px; } .citem { min-height: 50px; } .hattr, .hslots { margin-top: 10px; } }
@media (max-width: 1100px) { .gspie { flex-direction: column; align-items: stretch; } .gspie svg { align-self: center; } }
@media (max-width: 820px) { #home, .solo, #builder, #start:is([data-view="stash"], [data-view="friends"]) #info, #olBody, .tmain, .cgrid, .gspies, .gscols { grid-template-columns: 1fr; grid-template-rows: auto; } #start .sinner { overflow-y: auto; } .hcard { grid-column: 1; margin-top: 20px; } .clist, .cdet { align-self: start; } #combo { top: 42%; } #comboN { font-size: 44px; } }
/* large screens: the same layout, proportionally larger (the crosshair and world labels are sized in screen pixels) */
@media (min-width: 1680px) and (min-height: 900px) { #hud > :not(#crosshair), #start .sinner, .olpanel, #acct, .pnwin, .spanel, .rinner, .bpbox, #learnBar, #netHud, #itip > *, .ctxmenu button, .askbox, .cpick > *, .lpick > * { zoom: 1.2; } .cpick { width: 296px; } }
@media (min-width: 2300px) and (min-height: 1200px) { #hud > :not(#crosshair), #start .sinner, .olpanel, #acct, .pnwin, .spanel, .rinner, .bpbox, #learnBar, #netHud, #itip > *, .ctxmenu button, .askbox, .cpick > *, .lpick > * { zoom: 1.5; } .cpick { width: 368px; } #itip { max-width: 420px; } }

/* backpack */
.packgrid { display: grid; grid-template-columns: repeat(auto-fill, 68px); gap: 6px; } .pcell { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid var(--ln); background: rgba(0, 0, 0, .2); cursor: pointer; } .pcell:hover { border-color: var(--ln2); background: rgba(255, 255, 255, .06); } .pcell.empty { cursor: default; background: none; border-style: dashed; }
.packgrid.can { box-shadow: 0 0 0 1px var(--ac); } .packgrid.over { background: var(--ac2); } .packgrid.dim { opacity: .4; } .bl small.hot, #lootBar b.full { color: var(--warn); } #pickHint b.no { color: var(--ink); background: var(--warn); }
.warnl { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--warn); font-size: 14px; } .warnl svg { flex: none; width: 20px; height: 20px; } .warnl button { margin-left: auto; } .carry .warnl { margin: 0 0 0 6px; } .cdet .warnl:not(.carry .warnl) { min-height: 28px; }
.carry { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--tx3); } .carry b { color: var(--tx); } .carry button { margin-left: auto; } .cdet .carry + .big { margin-top: 14px; }
#panel.throwing::after { content: "扔在地上"; position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); padding: 10px 24px; font: 700 16px var(--cjk); color: var(--ink); background: var(--warn); pointer-events: none; }
/* level-up: a line unfolds with the new level; then the skills unfold */
#levelUp { position: absolute; left: 50%; top: 27%; transform: translateX(-50%); display: none; align-items: center; gap: 16px; padding: 10px 80px; white-space: nowrap; background: linear-gradient(90deg, transparent, rgba(12, 16, 20, .78) 30%, rgba(12, 16, 20, .78) 70%, transparent); } #levelUp.show { display: flex; animation: luFade 1.35s ease-out both; }
#levelUp i { width: 0; height: 2px; background: #ffe08a; box-shadow: 0 0 12px #ffe08a; } #levelUp.show i { animation: luLine .5s .05s cubic-bezier(.2, .8, .2, 1) both; } #levelUp span { font: 700 22px var(--cjk); color: #ffe9b0; } #levelUp b { font: 900 64px/1 var(--cjk); color: #fff; text-shadow: 0 0 22px #ffcf5a, var(--sh); } #levelUp.show b { animation: luNum .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes luLine { to { width: 15vw; } } @keyframes luNum { from { transform: scale(2.2); opacity: 0; } } @keyframes luFade { 0% { opacity: 0; } 8% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
#panel.unfold { animation: pnBack .42s ease-out both; } #panel.unfold .pnwin { animation: pnOpen .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pnBack { from { background: transparent; } } @keyframes pnOpen { 0% { clip-path: inset(49.8% 46% 49.8% 46%); opacity: .2; filter: brightness(2.4); } 45% { clip-path: inset(48.5% 0 48.5% 0); opacity: 1; filter: brightness(1.8); } 100% { clip-path: inset(0); filter: none; } }
#learnBar:not([hidden]) { animation: lbIn .35s .3s ease-out both; } @keyframes lbIn { from { opacity: 0; translate: 0 -24px; } }
/* the start screen's character turns by dragging */
#start { cursor: grab; } #start.turning { cursor: grabbing; } #start :is(.bcol, .icol, .hcard, .hnav, .pgh, .clist, .cdet, #swWarn) { cursor: default; }
#reviveBar { position: fixed; left: 50%; top: 68%; transform: translateX(-50%); z-index: 7; width: 260px; text-align: center; font: 600 15px var(--cjk); text-shadow: var(--sh); pointer-events: none; } #reviveBar > div { height: 6px; margin-top: 8px; background: rgba(0,0,0,.5); overflow: hidden; } #reviveBar i { display: block; height: 100%; background: #6fe3a3; transform-origin: 0 50%; } .pnm.down { color: var(--warn); } .pnm.down::after { content: ' · 倒下'; }
#panel[data-kind="pack"] { background: rgba(12, 16, 20, .45); } #panel[data-kind="pack"] .pnwin { width: min(468px, 94vw); height: auto; max-height: 94vh; margin: 0; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 22px 26px 24px; overflow-y: auto; background: var(--bg); border: 1px solid var(--ln); } .bpk .packgrid { grid-template-columns: repeat(4, 1fr); gap: 8px; } .bpk .pcell { width: auto; height: 92px; padding: 6px 4px; align-content: center; gap: 4px; } .bpk .pcell small { max-width: 100%; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; } .bpk .bl small.m { color: var(--money); }
#lootBar { pointer-events: auto; cursor: pointer; } #lootBar:hover { color: var(--tx); } #lootBar kbd { min-width: 18px; height: 18px; margin-right: 8px; font-size: 11px; }

/* the account, top right outside a game (lobby.js renderAcct), level with the pages' titles; a title row's own right side
   (金币) moves left of it by --acctw */
#acct { position: fixed; right: 44px; top: 32px; min-height: 44px; z-index: 35; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--tx2); }
#acct svg { width: 15px; height: 15px; flex: none; } #acct:empty { display: none; }
.acname { display: flex; align-items: center; gap: 7px; color: var(--tx); font-weight: 600; } .acname svg { color: var(--ac); }
.acbtn { display: flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px; font-size: 13px; }
.acpanel { position: absolute; right: 0; top: calc(100% + 4px); width: 300px; padding: 18px; border: 1px solid var(--ln2); background: rgba(17, 22, 27, .98); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); animation: askin .14s ease-out; }
.acpanel .olh { font-size: 14px; color: var(--tx2); font-weight: 500; } .acmsg:not(:empty) { margin-top: 10px; font-size: 13px; color: var(--tx2); } .acmsg .bad { color: var(--bad); }
.olsignin { display: flex; align-items: center; gap: 16px; } .olsignin .olh { margin: 0; flex: 1; }
@media (max-width: 1280px) { #acct { right: 26px; } }
.pgh .r { margin-right: var(--acctw, 0px); }
/* 奖励池: a solo run that can't reach the server */
#netOff { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 3px 12px; font-size: 12px; letter-spacing: 1px; color: #ffcf8a; background: rgba(20, 16, 12, 0.72); border: 1px solid rgba(255, 207, 138, 0.35); border-radius: 3px; pointer-events: none; z-index: 30; }
#endLoot .kept.neg { color: #ff8a7a; } #endLoot .kept.dim { opacity: 0.7; }

/* 排行榜 */
#start[data-view="board"] .icol.bdcol { max-width: 900px; display: flex; flex-direction: column; overflow: hidden; }
.bdpick { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.bdlist { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ln); }
.bdbody { flex: 1; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; } .bdhead, .bdrow.me { padding-right: 20px; }
.bdrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 190px 110px; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-bottom: 1px solid var(--ln); font-variant-numeric: tabular-nums; }
.bdrow > span:nth-child(3), .bdrow > span:nth-child(4) { text-align: right; }
.bdhead { min-height: 36px; color: var(--tx3); font-size: 12px; }
.bdrank { font: 700 18px var(--cjk); color: var(--tx3); } .bdrank.gold { color: #f2c94c; } .bdrank.silver { color: #dfe6ee; } .bdrank.bronze { color: #d08a52; }
.bdwho { display: flex; flex-direction: column; min-width: 0; } .bdwho b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bdwho small { display: flex; align-items: center; gap: 5px; color: var(--tx3); font-size: 12px; } .bdwho small img { width: 14px; height: 14px; opacity: .85; }
.bdscore { font-size: 16px; font-weight: 700; } .bddate { color: var(--tx3); font-size: 13px; }
.bdkind { align-self: flex-start; margin-bottom: 14px; }
/* 多人: the team side by side, each account name over its character; a long team wraps onto a second line */
.bdmates { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 7px 0; min-width: 0; }
.bdmate { display: flex; flex-direction: column; min-width: 0; max-width: 150px; } .bdmate b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bdn { font-style: normal; font-size: 12px; color: var(--tx3); border: 1px solid var(--ln2); border-radius: 3px; padding: 1px 6px; }
.bdteam > b { margin-top: 7px; } .bdteam > b + .bdmates { padding-top: 2px; }
@media (max-width: 640px) { /* narrow: no date column, the team gets the room */
  .bdrow { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 0 8px; } .bdhead, .bdrow.me { padding-right: 8px; }
  .bdrow > span:nth-child(4) { display: none; } .bdscore { font-size: 14px; } .bdmates { gap: 4px 12px; } .bdmate { max-width: 120px; }
}
.bdrow.me { border: 0; border-top: 1px solid var(--ln2); background: rgba(255, 255, 255, .05); }
.bdempty { display: grid; place-items: center; min-height: 240px; color: var(--tx3); }
#rBoard { display: flex; justify-content: space-between; gap: 22px; padding: 9px 0; margin-bottom: 4px; font-size: 15px; color: var(--tx2); font-variant-numeric: tabular-nums; } #rBoard[hidden] { display: none; }
#rBoard b { color: var(--tx); margin-left: 6px; } .bdgood { color: var(--tx); font-weight: 700; } .bdgood.gold { color: #f2c94c; } .bdgood.silver { color: #c9d1d9; } .bdgood.bronze { color: #d08a52; }

/* 服务器 (multi-server-plan 5): the servers with their ping, 迁往… with why it can't, the move's state */
#start[data-view="servers"] .icol.srvpage { max-width: 760px; }
.srvlist { border-top: 1px solid var(--ln); }
.srvrow { display: grid; grid-template-columns: 14px auto 1fr 110px 150px; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; border-bottom: 1px solid var(--ln); }
.srvrow.here { background: rgba(255, 255, 255, .04); } .srvrow > b { font: 700 17px var(--cjk); color: var(--tx); }
.srvcur { font-size: 13px; color: var(--ac); } .srvping { min-width: 96px; text-align: right; font-size: 14px; color: var(--tx2); font-variant-numeric: tabular-nums; } .srvping.bad { color: var(--bad); }
.srvgo { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .srvgo small { font-size: 12px; color: var(--tx3); white-space: nowrap; }
.srvpage > .note { margin: 14px 0 0; font-size: 14px; color: var(--tx2); }
.srvst { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 15px; color: var(--tx); } .srvst.good { color: var(--good); } .srvst .bad { color: var(--bad); }
.spin { width: 16px; height: 16px; flex: none; border: 2px solid var(--ln2); border-top-color: var(--ac); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 640px) { .srvrow { grid-template-columns: 14px 1fr auto; } .srvrow .srvcur { display: none; } .srvgo { grid-column: 2 / -1; align-items: flex-start; } }
/* the account's server under its name; the login's 前往… */
.acname > span { display: flex; flex-direction: column; line-height: 1.25; } .acname small { font: 400 11px var(--cjk); color: var(--tx3); }
.acmsg .acgo { display: block; margin-top: 10px; width: 100%; }
/* a friend on the other server: its server, small and grey; its saved state's date */
.frsnap { margin-top: 14px; font-size: 13px; color: var(--tx3); }
/* 排行榜: the server of each line, and when the other's scores came over */
.bdsrv { display: inline-block; width: 3.6em; margin-left: 8px; text-align: left; font: 400 12px var(--cjk); color: var(--tx3); } .bdsync { padding: 10px 12px 0; font-size: 12px; color: var(--tx3); }

/* 外观 (2026-12-06): the left column (套装, 配色, the nine slots, each with what is worn), the right the picked one's styles and colours.
   On this tab the stats column makes room for it. */
#builder[data-btab="look"] { grid-template-columns: 200px minmax(560px, 620px) 0 1fr; } #builder[data-btab="look"] .bcol.go { display: none; }
.look2 { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0; margin-top: 16px; min-height: 0; border-top: 1px solid var(--ln); }
.lnav2 { display: flex; flex-direction: column; padding: 8px 0; border-right: 1px solid var(--ln); } .lnav2 hr { width: 100%; height: 1px; margin: 6px 0; border: 0; background: var(--ln); }
.lnavi { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 5px 12px 5px 14px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--tx2); text-align: left; font-weight: 400; }
.lnavi span { font-size: 14px; } .lnavi small { max-width: 100%; overflow: hidden; font-size: 11px; color: var(--tx3); white-space: nowrap; text-overflow: ellipsis; }
.lnavi:hover { background: rgba(255, 255, 255, .04); } .lnavi.on { border-left-color: var(--ac); background: rgba(255, 255, 255, .07); color: var(--tx); } .lnavi.on span { font-weight: 700; }
.lpane2 { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 14px 0 14px 20px; }
.lph { display: flex; align-items: center; justify-content: space-between; min-height: 30px; } .lph b { font: 700 17px var(--cjk); color: var(--tx); }
.lstyles { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0; padding: 1px 0 0 1px; } .lstyles .chip { min-height: 38px; padding: 0 8px; }
.lstyles.pals { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); } .lstyles .chip.pal { justify-content: flex-start; gap: 0; padding: 0 10px; } .lstyles .chip.pal i { width: 10px; height: 10px; margin-right: 2px; } .lstyles .chip.pal i:last-of-type { margin-right: 8px; }
.lcols { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--ln); }
.lsets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lset { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 8px; border: 1px solid var(--ln2); background: rgba(255, 255, 255, .02); color: var(--tx2); font-weight: 400; }
.lset b { font: 600 15px var(--cjk); } .lset:hover:not(:disabled) { border-color: var(--tx3); color: var(--tx); } .lset.on { border-color: var(--ac); background: var(--ac2); color: var(--tx); } .lset:disabled:not(.on) { opacity: .45; } .lset.on:disabled { opacity: 1; cursor: default; }
.lfoot { display: flex; justify-content: flex-end; }
@media (max-width: 1280px) { #builder[data-btab="look"] { grid-template-columns: 164px minmax(500px, 560px) 0 1fr; } .look2 { grid-template-columns: 112px minmax(0, 1fr); } }
@media (max-width: 1060px) { #builder[data-btab="look"] { grid-template-columns: 150px minmax(0, 1fr); } }
/* narrow: the left column becomes a row that scrolls sideways, the pane under it */
@media (max-width: 820px) { #builder[data-btab="look"] { grid-template-columns: 1fr; } .look2 { grid-template-columns: 1fr; } .lnav2 { flex-direction: row; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--ln); scrollbar-width: none; } .lnav2 hr { width: 1px; height: auto; margin: 8px 4px; }
  .lnavi { flex: none; min-height: 48px; padding: 6px 12px; border-left: 0; border-bottom: 2px solid transparent; } .lnavi.on { border-bottom-color: var(--ac); } .lpane2 { padding: 14px 0; } }

/* ================================================================ 手机 (touch.js, docs/mobile-plan.md)
   Every rule here starts with body.touch: a computer's page never has that class (touch.js sets it only on a touch
   screen), so nothing below changes what a computer shows. */
#tzone, #tui, #tturn { display: none; }
/* 手机按键: every size (the touched circle and the drawn one) and the see-through look in one place. The look is the
   computer's grey slot (dark slate, thin white line), only lighter: a round, see-through button around its icon. */
body.touch {
  --tA: 60px;  --tAh: 60px;   /* attack: drawn / touched */
  --tS: 42px;  --tSh: 46px;   /* 冲刺 右键 Q E R around it */
  --tN: 34px;  --tNh: 44px;   /* the 1–0 column */
  --tJ: 38px;  --tJh: 44px;   /* 跳 */
  --tC: 50px;                 /* 取消 */
  --tK: 100px; --tKn: 40px;   /* move stick: ring / knob */
  --tTop: 26px; --tTopF: 12px; /* top buttons: height / text (touched 44 px high) */
  --tR: 78px;                 /* how far the skills sit from the attack's middle */
  --tAx: calc(var(--sr) + var(--tR) * .588 + var(--tSh) / 2); /* the attack's middle from the right edge: the arc's right end touches it */
  --tAy: calc(var(--sb) + 48px); /* … and from the bottom */
  --tBg: rgba(13, 17, 21, .32); --tLn: rgba(255, 255, 255, .28); --tIcon: .8; /* the slot's own grey, see-through; the icon */
}
body.touch { --sl: max(env(safe-area-inset-left), 12px); --sr: max(env(safe-area-inset-right), 12px); --sb: max(env(safe-area-inset-bottom), 8px); --st: max(env(safe-area-inset-top), 6px);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
body.touch.tplay #tzone { display: block; position: fixed; inset: 0; z-index: 3; touch-action: none; }
body.touch #tui { display: block; }
body.touch #tui button, body.touch #hotR .slot, body.touch #hotB .slot, body.touch #pickHint { pointer-events: auto; touch-action: none; }
/* top right: 技能 角色 背包 视角 设置 (X C B P O) */
body.touch #tTop { position: absolute; top: var(--st); right: var(--sr); display: flex; gap: 4px; }
body.touch #tTop button { position: relative; min-width: 40px; height: var(--tTop); min-height: 0; padding: 0 9px; border-radius: calc(var(--tTop) / 2); font-size: var(--tTopF); line-height: 1; color: var(--tx); background: var(--tBg); border: 1px solid var(--tLn); }
body.touch #tTop button::before { content: ""; position: absolute; inset: calc((var(--tTop) - 44px) / 2) -2px; } /* (touched 44 px high) */
body.touch #gearBtn, body.touch #score, body.touch #passives, body.touch #modeChip, body.touch #hotR .lbl, body.touch #hotB .lbl, body.touch .slot .cost { display: none; }
/* top left: the run, then the hero */
body.touch #obj { left: var(--sl); top: var(--st); min-width: 0; max-width: 32vw; padding: 2px 8px 3px 6px; line-height: 1.35; } body.touch #obj .stage { font-size: 12px; line-height: 1.35; } body.touch #obj .stage small { margin-left: 6px; font-size: 11px; } body.touch #objText { margin-top: 0; font-size: 10px; } body.touch #timer { font-size: 10px; }
body.touch #player { left: var(--sl); top: 56px; bottom: auto; gap: 8px; padding: 4px 8px 4px 4px; } body.touch .portrait, body.touch #portrait, body.touch #portrait .iic { width: 34px; height: 34px; }
body.touch #lv { min-width: 14px; padding: 0 3px; font-size: 10px; line-height: 13px; } body.touch .bars { width: 150px; } body.touch .pname { display: none; } body.touch .php { height: 9px; } body.touch #pHpT { font-size: 9px; line-height: 9px; } body.touch .pres { margin-top: 3px; gap: 2px; }
body.touch #trainBar { left: var(--sl); top: 106px; } body.touch #trainBar button { min-height: 30px; }
body.touch #party { left: var(--sl); top: 104px; width: 140px; gap: 4px; } body.touch #lootFeed { left: var(--sl); top: 52%; }
body.touch #bossbar { top: var(--st); width: 34vw; padding: 4px 10px 6px; }
body.touch #combo { right: calc(var(--sr) + 200px); top: 18%; } body.touch #comboN { font-size: 40px; }
body.touch #banner { font-size: 26px; padding: 10px 0; } body.touch #banner small { font-size: 13px; }
body.touch #lootBar { bottom: calc(var(--sb) + 4px); font-size: 12px; }
/* 拾取 / 扶起 / … : tapped (F) */
body.touch #pickHint { left: auto; right: calc(var(--sr) + 210px); top: auto; bottom: calc(var(--sb) + 132px); transform: none; max-width: 40vw; padding: 6px 14px 6px 8px; font-size: 13px; border-radius: 18px; }
body.touch #pickHint > b:not(.no) { display: none; } body.touch #pickHint .px32 { width: 24px; height: 24px; margin: -2px 0; }
body.touch #extract { pointer-events: auto; top: 10%; padding: 14px 18px; } body.touch #extract button { min-width: 150px; min-height: 48px; }
/* move stick: at rest bottom left; picked up where the thumb lands (touch.js) */
body.touch #tStick { position: absolute; left: calc(var(--sl) + var(--tK) / 2 + 8px); top: calc(100% - var(--sb) - var(--tK) / 2 - 6px); width: var(--tK); height: var(--tK); margin: calc(var(--tK) / -2); border-radius: 50%; background: var(--tBg); border: 1px solid var(--tLn); }
body.touch #tStick i { position: absolute; left: 50%; top: 50%; width: var(--tKn); height: var(--tKn); margin: calc(var(--tKn) / -2); border-radius: 50%; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); }
/* attack, and 冲刺 右键 Q E R in a fan around it (the hotbar's own slots: icons, cooldowns, costs) */
body.touch #hotR { right: var(--tAx); bottom: var(--tAy); width: 0; height: 0; padding: 0; background: none; display: block; }
body.touch #hotR .slotwrap { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0)); }
/* 冲刺 右键 Q E R on an arc around the attack, 34° apart (190° → 54°) */
body.touch #hotR .slotwrap:nth-child(1) { --x: calc(var(--tR) * -.985); --y: calc(var(--tR) * .174); } body.touch #hotR .slotwrap:nth-child(3) { --x: calc(var(--tR) * -.914); --y: calc(var(--tR) * -.407); }
body.touch #hotR .slotwrap:nth-child(4) { --x: calc(var(--tR) * -.53); --y: calc(var(--tR) * -.848); } body.touch #hotR .slotwrap:nth-child(5) { --x: calc(var(--tR) * .035); --y: calc(var(--tR) * -.999); }
body.touch #hotR .slotwrap:nth-child(6) { --x: calc(var(--tR) * .588); --y: calc(var(--tR) * -.809); }
/* a slot: a touched circle (--h) with a drawn one (--v) inside: see-through grey, a thin line, the icon; cooldown: the dark sweep and the seconds */
body.touch #hotR .slot { --v: var(--tS); --h: var(--tSh); } body.touch #hotR .slotwrap:nth-child(2) .slot { --v: var(--tA); --h: var(--tAh); } body.touch #hotB .slot { --v: var(--tN); --h: var(--tNh); }
body.touch #hotR .slot, body.touch #hotB .slot { width: var(--h); height: var(--h); border-radius: 50%; box-shadow: none;
  background: radial-gradient(circle, var(--tBg) 0 calc(var(--v) / 2 - 1px), var(--tLn) calc(var(--v) / 2 - 1px) calc(var(--v) / 2), transparent calc(var(--v) / 2 + .5px)); }
body.touch #hotR .slot > .sk, body.touch #hotR .slot > .iic, body.touch #hotB .slot > .sk, body.touch #hotB .slot > .iic { width: calc(var(--v) - 6px); height: calc(var(--v) - 6px); border-radius: 50%; background-color: transparent !important; box-shadow: none; opacity: var(--tIcon); }
body.touch .slot .cd, body.touch .slot.flash::after, body.touch .slot.ready::before { inset: calc((var(--h) - var(--v)) / 2); border-radius: 50%; }
body.touch .slot .key { display: none; } body.touch .slot .cdt { font-size: calc(var(--v) * .34); }
body.touch .slot.empty { visibility: hidden; } body.touch #hotR .slot.tdown, body.touch #hotB .slot.tdown { --tLn: var(--ac); --tBg: rgba(98, 220, 203, .2); }
/* 1–0 above the arc, right-aligned with it, in columns of four filled from the bottom (nearest the arc): 1–4 on the right,
   5–8 left of them, 9 0 left of those (all ten: 2 · 4 · 4); only the learned ones, no gaps. The top buttons keep the top. */
body.touch #hotB { top: auto; right: var(--sr); bottom: calc(var(--tAy) + var(--tR) + var(--tSh) / 2 + 4px); left: auto; width: calc(var(--tNh) * 3 + 8px); height: calc(var(--tNh) * 4); padding: 0; gap: 0 4px; background: none;
  display: flex; flex-direction: column-reverse; flex-wrap: wrap-reverse; justify-content: flex-start; align-content: flex-start; }
body.touch #tJump { position: absolute; right: calc(var(--tAx) + var(--tR) * 1.6 - var(--tJh) / 2); bottom: calc(var(--sb) + 4px); width: var(--tJh); height: var(--tJh); min-height: 0; padding: 0; border-radius: 50%; font-size: 12px; color: var(--tx2); border: 0;
  background: radial-gradient(circle, var(--tBg) 0 calc(var(--tJ) / 2 - 1px), var(--tLn) calc(var(--tJ) / 2 - 1px) calc(var(--tJ) / 2), transparent calc(var(--tJ) / 2 + .5px)); }
body.touch #tCancel { position: absolute; right: calc(var(--tAx) + var(--tR) * 1.75 - var(--tC) / 2); bottom: calc(var(--tAy) + var(--tR) * .75 - var(--tC) / 2); width: var(--tC); height: var(--tC); border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--tx); border: 1px solid rgba(255, 111, 99, .6); background: rgba(80, 20, 16, .32); }
body.touch #tCancel[hidden] { display: none; } body.touch #tCancel.hot { background: rgba(200, 50, 40, .6); }
/* the fight's controls only while fighting (a window open: its own buttons) */
body.touch:not(.tplay) #tStick, body.touch:not(.tplay) #tJump, body.touch:not(.tplay) #hotR, body.touch:not(.tplay) #hotB { display: none; }
/* 请把手机横过来 */
@media (orientation: portrait) { body.touch #tturn { display: grid; place-items: center; position: fixed; inset: 0; z-index: 130; background: var(--bg); } body.touch #tturn b { font: 700 22px var(--cjk); letter-spacing: .08em; } }
/* 手机 · 主菜单 and 单人战役 in a landscape phone (about 740–844 × 360–390) */
body.touch .sinner { padding: var(--st) var(--sr) 8px var(--sl); }
body.touch .stitle { gap: 10px; } body.touch .stitle .logo { width: 26px; height: 26px; } body.touch .stitle h1 { font-size: 22px; }
body.touch .stitle h1::after { content: '手机版测试中'; margin-left: 10px; padding: 3px 7px; vertical-align: 4px; font: 600 11px/1 var(--cjk); letter-spacing: .08em; color: var(--tx2); border: 1px solid rgba(255,255,255,.28); border-radius: 4px; } /* 手机版还在测试（docs/mobile-plan.md 第 7 节第 11 条） */
body.touch #acct { top: var(--st); right: var(--sr); }
body.touch #home { grid-template-columns: 200px minmax(0, 1fr) 270px; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
body.touch .hnav { align-self: stretch; justify-content: flex-start; overflow-y: auto; padding: 4px 0; scrollbar-width: none; }
body.touch .nv.main { min-height: 40px; font-size: 20px; } body.touch .nv { min-height: 32px; font-size: 14px; } body.touch .nv.sub { min-height: 28px; font-size: 12px; } body.touch .hnav hr { height: 6px; }
body.touch .hcard { grid-column: 3; align-self: end; margin-top: 0; max-height: 100%; overflow-y: auto; padding: 10px 12px; }
body.touch .hname { font-size: 16px; gap: 10px; } body.touch .hstat { margin-top: 8px; } body.touch .hstat b { font-size: 16px; } body.touch .hattr { display: none; } body.touch .hslots { margin-top: 8px; } body.touch .hfoot { margin-top: 8px; padding-top: 8px; } body.touch .hchars { margin-top: 8px; }
body.touch .solo { grid-template-columns: 170px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 4px 20px; }
body.touch .pgh { min-height: 36px; gap: 12px; } body.touch .pgh h2 { font-size: 18px; }
body.touch .clist { align-self: stretch; justify-content: center; overflow-y: auto; } body.touch .citem { min-height: 40px; padding: 0 14px; font-size: 15px; }
body.touch .cdet { align-self: stretch; min-height: 0; max-height: 100%; overflow-y: auto; gap: 2px; padding-right: 4px; } body.touch .cdet h3 { font-size: 20px; margin-bottom: 2px; } body.touch .cdet > p { min-height: 0; font-size: 12px; } body.touch .cdet .note { font-size: 12px; }
body.touch .cdet .bl { margin: 6px 0 4px; } body.touch .cdet .seg .chip { min-height: 34px; } body.touch .mods { margin-top: 6px; } body.touch .mods b { font-size: 14px; } body.touch .carry { margin-top: 6px; }
body.touch .cdet .big { position: sticky; bottom: 0; margin-top: 8px; min-height: 44px; }
body.touch .cdet { max-width: 420px; } body.touch .cdet > * { flex-shrink: 0; } body.touch .mods { grid-template-columns: repeat(5, 1fr); }
body.touch #start[data-view="solo"] .sbg { background: linear-gradient(90deg, rgba(16, 21, 26, .96) 0, rgba(16, 21, 26, .9) 62%, rgba(16, 21, 26, .2) 86%); }
/* 手机 · 结算: compact, its buttons always on screen */
body.touch #results { place-items: start center; } body.touch .rinner { padding: 10px 0 0; } body.touch .rk { font-size: 16px; margin-bottom: 4px; } body.touch #rRank { font-size: 48px; margin: 0 0 6px; }
body.touch #rTable { font-size: 13px; } body.touch #rTable td { padding: 5px 0; } body.touch #rTable tr.tot td { font-size: 16px; }
body.touch .rbtns { position: sticky; bottom: 0; padding: 8px 0 max(env(safe-area-inset-bottom), 8px); margin-top: 8px; background: rgba(12, 16, 20, .96); }
body.touch #lootBar kbd { display: none; }
/* 多人游戏 on a phone: the title row stays, each column scrolls by itself (so nothing slides under the account), tighter boxes */
body.touch #online { overflow: hidden; }
body.touch .olpanel { height: 100%; min-height: 0; padding: var(--st) var(--sr) 4px var(--sl); }
body.touch .olpanel .pgh { margin-bottom: 6px; padding-right: var(--acctw, 0px); }
body.touch #olBody { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; align-items: stretch; }
body.touch #olBody > .olcol { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 8px; }
body.touch #olBody.one { grid-template-columns: minmax(0, 420px); padding-top: 4vh; } body.touch #olBody.one > .olcol { overflow: visible; }
body.touch #olBody .tabs { margin-bottom: 8px; } body.touch #olBody .tabb { min-height: 36px; }
body.touch .olbox { padding: 10px 12px; margin-bottom: 8px; } body.touch .olh { margin-bottom: 6px; font-size: 14px; gap: 8px; } body.touch .olh code { font-size: 20px; } body.touch .olh.sub { margin: 8px 0 2px; font-size: 12px; }
body.touch .olbox > .olh:only-child { margin-bottom: 0; } body.touch .olbox .dim { font-size: 13px; }
body.touch .olcreate { grid-template-columns: auto minmax(0, 1fr); gap: 8px; } body.touch .olcreate > button { min-height: 44px; padding: 0 18px; }
body.touch .olform.inline input, body.touch .olform.inline button { min-height: 40px; }
body.touch .olset { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 8px; font-size: 13px; } body.touch .olset .chips { flex-wrap: wrap; gap: 4px; } body.touch .olset .chip { min-height: 34px; padding: 0 10px; font-size: 13px; }
body.touch .olnote { font-size: 12px; line-height: 1.55; } body.touch .olset + .olnote { margin-top: 8px; }
body.touch .olrow { grid-template-columns: 60px minmax(0, 1fr) minmax(0, .8fr) 40px 64px; gap: 8px; min-height: 42px; font-size: 13px; } body.touch .olrow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.touch .olrow.mem { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 44px 52px; } body.touch .olrow.fr { grid-template-columns: 8px minmax(0, 1fr) auto auto; min-height: 44px; } body.touch .olrow.inv { grid-template-columns: minmax(0, 1fr) auto auto; }
body.touch .olrow .sm, body.touch .olh > .sm { min-height: 32px; }
body.touch .tpick { gap: 8px; margin-bottom: 6px; } body.touch .tpick > span:first-child { font-size: 13px; } body.touch .tpick .chips { flex-wrap: wrap; gap: 4px; } body.touch .tpick .chip { min-height: 36px; padding: 0 10px; }
body.touch .olbtns { position: sticky; bottom: 0; z-index: 2; gap: 8px; padding: 6px 0 2px; background: var(--bg); } body.touch .olbtns .big { min-height: 44px; } body.touch .olbtns .ghost.big { flex: 0 0 110px !important; }
body.touch #olMsg { min-height: 0; font-size: 13px; } body.touch #olMsg:not(:empty) { padding-top: 4px; }
body.touch #invitePop { top: var(--st); right: var(--sr); padding: 10px 12px; max-width: 46vw; font-size: 13px; } body.touch #invitePop button { min-height: 40px; margin: 8px 6px 0 0; }
body.touch .olbox .chips .chip.ava { min-height: 40px; } body.touch #olLacks { display: flex; flex-wrap: wrap; gap: 0 16px; } body.touch #olLacks .warnl { margin-top: 6px; font-size: 13px; } body.touch #olLacks .warnl svg { width: 16px; height: 16px; }
body.touch .ctxmenu button { min-height: 42px; }
/* online battle on a phone: the arena score, the revive bar and the round notice smaller, clear of the buttons */
body.touch #netHud { top: var(--st); padding: 3px 12px 4px; font-size: 15px; background: var(--tBg); } body.touch #netHud small { font-size: 11px; } body.touch #netHud .teams { gap: 0 12px; max-width: 40vw; }
body.touch #respawn { top: 34%; font-size: 20px; } body.touch #reviveBar { top: 58%; width: 200px; font-size: 13px; }
body.touch .pf { padding: 3px 8px 3px; background: var(--tBg); } body.touch .pfn { gap: 5px; font-size: 11px; } body.touch .pfn img { width: 12px; height: 12px; } body.touch .pfn small { font-size: 10px; }
body.touch .pfhp { height: 3px; margin: 3px 0 0; } body.touch .pfhp span { top: 4px; font-size: 10px; } body.touch .pf .pfst { --sti: 12px; width: 80px; min-height: 13px; } body.touch .pfpg { left: -9px; top: -9px; min-width: 18px; font-size: 9px; line-height: 11px; }
