/* 战斗 HUD：连击计数 / 连段指示 / 觉醒键 / 按键布局编辑 */

/* ---------- 连击计数 ---------- */
.combo-meter { --cc: #c9d3e3; position: absolute; right: calc(196px + env(safe-area-inset-right, 0px)); top: 30%; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; pointer-events: none; z-index: 5;
  transition: opacity .35s, transform .35s; filter: drop-shadow(0 4px 0 rgba(6, 3, 16, .55)); }
.combo-meter.hidden { display: grid !important; opacity: 0; transform: translateX(30px); }
.combo-meter.end { opacity: .0; transform: translateY(-12px) scale(.96); transition: opacity 1.2s .2s, transform 1.4s; }
.combo-meter.end.broken .cm-n { color: #8a8098; -webkit-text-fill-color: #8a8098; }
.cm-rank { grid-row: 1 / span 2; width: 54px; height: 54px; display: grid; place-items: center; font-size: 28px; font-weight: 900; font-style: italic; color: #fff;
  background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--cc) 70%, #fff), var(--cc) 45%, color-mix(in srgb, var(--cc) 35%, #000) 100%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 10px rgba(255, 255, 255, .6); letter-spacing: -.04em; }
.cm-rank.up { animation: cmRank .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes cmRank { from { transform: scale(2.2) rotate(-20deg); filter: brightness(2.5); } }
.cm-main { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.cm-n { font-size: 52px; font-weight: 900; font-style: italic; letter-spacing: -.02em; background: linear-gradient(180deg, #fff 10%, var(--cc) 55%, color-mix(in srgb, var(--cc) 45%, #000)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(10, 6, 22, .9); paint-order: stroke fill; transform-origin: 30% 70%; }
.cm-n.pop { animation: cmPop .22s cubic-bezier(.2, 1.9, .4, 1); }
.cm-n.crit { filter: drop-shadow(0 0 8px #ffd84a); }
@keyframes cmPop { from { transform: scale(1.45) skewX(-8deg); } }
.cm-lbl { font-size: 13px; letter-spacing: .3em; color: #efe8ff; text-shadow: 0 1px 0 #000, 0 0 6px var(--cc); margin-top: 2px; }
.cm-bonus { letter-spacing: .05em; color: var(--cc); font-size: 11px; }
.cm-bar { grid-column: 2; height: 4px; width: 120px; margin-top: 6px; background: rgba(10, 6, 22, .7); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); overflow: hidden; }
.cm-bar > i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 50%, #fff), var(--cc)); box-shadow: 0 0 8px var(--cc); transition: width .1s linear; }
.combo-meter.ms .cm-rank, .combo-meter.ms .cm-n { animation: cmMs .7s ease-out; }
@keyframes cmMs { 0% { filter: brightness(3) drop-shadow(0 0 18px var(--cc)); transform: scale(1.35); } 100% { filter: none; transform: none; } }

/* ---------- 连段指示 ---------- */
.combo-pips { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); display: flex; gap: 4px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.combo-pips.show { opacity: 1; }
.combo-pips i { width: 8px; height: 8px; transform: rotate(45deg); background: rgba(10, 6, 22, .8); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transition: background .12s, box-shadow .12s; }
.combo-pips i.on { background: #ffd84a; box-shadow: 0 0 0 1px #fff6c0, 0 0 8px #ffd84a; }
.combo-pips i.on:last-child { background: #ff7a4a; box-shadow: 0 0 0 1px #ffd0a0, 0 0 10px #ff7a4a; }

/* ---------- 觉醒键 ---------- */
.sk.awk { width: 48px; height: 48px; background: radial-gradient(circle at 50% 35%, #4a3410, #1a1006); box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #8a6a2a; }
.sk.awk img { width: 28px; height: 28px; position: relative; z-index: 1; filter: grayscale(.6) brightness(.8); transition: filter .3s; }
.sk.awk .awk-fill { position: absolute; inset: 3px; border-radius: 50%; pointer-events: none; -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); }
.sk.awk .awk-pct { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #ffd84a; text-shadow: 0 1px 0 #000; pointer-events: none; white-space: nowrap; }
.sk.awk.full { box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #ffd84a, 0 0 18px rgba(255, 216, 74, .7); animation: awkFull 1.1s ease-in-out infinite; }
.sk.awk.full img, .sk.awk.active img { filter: none; }
.sk.awk.active { box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #fff6c0, 0 0 26px rgba(255, 216, 74, .9); }
@keyframes awkFull { 50% { transform: scale(1.08); box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #fff, 0 0 28px rgba(255, 216, 74, .95); } }

/* 极限闪避时屏幕边缘泛蓝 */
body.perfect-flash::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 25; box-shadow: inset 0 0 120px 30px rgba(90, 200, 255, .45); animation: perfFade 1s ease-out forwards; }
@keyframes perfFade { to { opacity: 0; } }

/* ---------- 自定义布局 ---------- */
.hud-skills.custom { transform: none !important; }
.hud-skills.custom .sk { scale: var(--sks, 1); opacity: var(--sko, 1); }
.hud-skills .sk.placed { position: fixed; right: auto !important; bottom: auto !important; }
body.layout-editing .hud-skills .sk { opacity: 1 !important; outline: 2px dashed rgba(255, 216, 74, .85); outline-offset: 3px; cursor: grab; z-index: 60; }
body.layout-editing .hud-skills .sk.dragging { cursor: grabbing; outline-color: #fff; filter: brightness(1.3) drop-shadow(0 0 12px #ffd84a); z-index: 61; }
body.layout-editing #hud > *:not(.hud-skills) { opacity: .25; pointer-events: none; }
.le-name { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; padding: 1px 6px; background: rgba(10, 6, 22, .9); color: #ffd84a; box-shadow: 0 0 0 1px #8a6a2a; white-space: nowrap; pointer-events: none; }
.le-grid { position: fixed; inset: 0; z-index: 40; pointer-events: none; background-image: linear-gradient(rgba(180, 140, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(180, 140, 255, .08) 1px, transparent 1px); background-size: 5vw 5vh; background-color: rgba(6, 3, 14, .35); }
.layout-editor { position: fixed; left: 50%; top: calc(14px + var(--safe-t, 0px)); transform: translateX(-50%); z-index: 70; width: min(440px, 92vw); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(40, 30, 72, .97), rgba(20, 14, 38, .97)); box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #54428c, 0 12px 40px rgba(0, 0, 0, .6); animation: winIn .25s; }
.le-head { position: relative; display: flex; flex-direction: column; gap: 2px; padding-right: 80px; }
.le-fold { position: absolute; right: 0; top: 0; }
.layout-editor.folded > :not(.le-head):not(.le-btns) { display: none; }
body.le-dragging .layout-editor { opacity: .12; pointer-events: none; transition: opacity .15s; }
.layout-editor { transition: opacity .2s; }
@media (max-height: 480px) { .layout-editor { padding: 8px 12px; gap: 6px; font-size: 12px; width: min(560px, 70vw); } .le-head .dim { display: none; } .le-row { grid-template-columns: 64px 1fr 44px; } .le-btns .btn { min-height: 28px; padding: 4px 10px; } } .le-head b { font-size: 16px; color: #ffd84a; } .le-head .dim { font-size: 12px; }
.le-row { display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; }
.le-row input[type=range] { width: 100%; accent-color: #ffd84a; }
.le-seg { grid-column: 2 / span 2; display: flex; gap: 6px; }
.le-seg button { flex: 1; padding: 6px; background: #0c0818; border: 0; box-shadow: inset 0 0 0 2px #3a2d63; cursor: pointer; }
.le-seg button.on { box-shadow: inset 0 0 0 2px #ffd84a; color: #ffd84a; background: #2a1e10; }
.le-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) {
  .combo-meter { top: 26%; right: 10px; } .cm-n { font-size: 38px; } .cm-rank { width: 42px; height: 42px; font-size: 21px; } .cm-bar { width: 90px; }
}

/* ---------- 画面设置 ---------- */
.gfx-card { margin-bottom: 10px; }
.gfx-card h3 { margin: 0 0 8px; font-size: 15px; color: #ffd84a; letter-spacing: .1em; }
.gfx-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gfx-preset { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 0; cursor: pointer; color: #efe8ff; background: linear-gradient(180deg, #2c2350, #1a1430); box-shadow: inset 0 0 0 2px #3a2d63; transition: transform .1s, box-shadow .15s; }
.gfx-preset b { font-size: 16px; } .gfx-preset small { font-size: 11px; color: #9a90c0; }
.gfx-preset:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 2px #b48cff; }
.gfx-preset.on { background: linear-gradient(180deg, #5a3fb0, #2a1a60); box-shadow: inset 0 0 0 2px #ffd84a, 0 0 14px rgba(255, 216, 74, .35); }
.gfx-preset.on small { color: #ffe9a0; }
.gfx-preset.ghost { opacity: .6; cursor: default; } .gfx-preset.ghost.on { opacity: 1; }
.gfx-live { display: block; margin-top: 8px; font-size: 12px; color: #7dff8a; text-align: right; }
.gfx-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 2px; border-top: 1px dashed rgba(180, 140, 255, .15); }
.gfx-row:first-of-type { border-top: 0; }
.gfx-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .gfx-l b { font-size: 14px; font-weight: normal; } .gfx-l small { font-size: 11px; color: #8a80b0; }
.gfx-seg { display: flex; flex: none; } .gfx-seg button { min-width: 48px; padding: 6px 8px; border: 0; cursor: pointer; color: #c8c0e8; background: #0c0818; box-shadow: inset 0 0 0 1px #3a2d63; }
.gfx-seg button.on { color: #2a1a00; background: linear-gradient(180deg, #ffd84a, #c8901a); box-shadow: inset 0 0 0 1px #fff2b0; }
.gfx-range { display: flex; align-items: center; gap: 8px; flex: none; width: min(240px, 44vw); } .gfx-range input { flex: 1; accent-color: #b48cff; } .gfx-val { width: 44px; text-align: right; color: #ffd84a; font-weight: normal; }
.gfx-switch { position: relative; flex: none; width: 46px; height: 24px; cursor: pointer; }
.gfx-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.gfx-switch i { position: absolute; inset: 0; background: #0c0818; box-shadow: inset 0 0 0 2px #3a2d63; transition: background .2s; }
.gfx-switch i::after { content: ''; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; background: #6a6090; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.gfx-switch input:checked + i { background: #2a6a4a; box-shadow: inset 0 0 0 2px #7dff8a; }
.gfx-switch input:checked + i::after { transform: translateX(22px); background: #d8ffe0; }
@media (max-width: 600px) { .gfx-presets { grid-template-columns: repeat(3, 1fr); } .gfx-row { flex-wrap: wrap; } }

/* ---------- 小地图提示 / 放大地图 ---------- */
.mini-wrap { position: relative; line-height: 0; }
.mini-wrap .minimap { -webkit-touch-callout: none; user-select: none; touch-action: none; }
.mini-hint { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); padding: 1px 6px; font-size: 10px; line-height: 14px; color: #efe8ff; white-space: nowrap; pointer-events: none;
  background: rgba(10, 6, 22, .72); box-shadow: 0 0 0 1px rgba(200, 160, 64, .55); opacity: .85; transition: opacity .3s; }
.mini-wrap:hover .mini-hint { opacity: 1; }
.bigmap-mask { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(6, 3, 14, .62); backdrop-filter: blur(2px); animation: fade .18s; cursor: pointer; }
.bigmap-mask.out { opacity: 0; transition: opacity .18s; }
.bigmap { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: linear-gradient(180deg, rgba(40, 30, 72, .97), rgba(20, 14, 38, .97));
  box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #c8a040, inset 0 0 0 4px #0a0716, 0 16px 60px rgba(0, 0, 0, .65); animation: bmIn .26s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bmIn { from { transform: scale(.6); opacity: 0; } }
.bm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .bm-head b { font-size: 17px; color: #ffd84a; letter-spacing: .1em; } .bm-head .dim { font-size: 12px; }
.bigmap-cv { display: block; image-rendering: pixelated; box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 1px #54428c; background: #0a0716; }
.bm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #c8c0e8; }
.bm-lg { display: inline-flex; align-items: center; gap: 5px; } .bm-lg i { width: 8px; height: 8px; box-shadow: 0 0 0 1px #0a0716; }
@media (max-width: 760px) { .mini-hint { font-size: 9px; bottom: 2px; } .bm-legend { font-size: 11px; gap: 4px 10px; } }
.bigmap-cv { cursor: crosshair; }
.bm-head { position: relative; padding-right: 40px; } .bm-x { position: absolute; right: 0; top: -2px; }
.bm-marks { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; align-items: center; font-size: 12px; }
.bm-chip { --mc: #ffd84a; display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 6px; background: rgba(10, 6, 22, .7); box-shadow: inset 2px 0 0 var(--mc), 0 0 0 1px rgba(255, 255, 255, .08); }
.bm-chip i { display: grid; place-items: center; width: 16px; height: 16px; font-style: normal; font-size: 11px; color: #fff; background: var(--mc); box-shadow: 0 0 0 1px #0a0716; }
.bm-chip button { border: 0; cursor: pointer; padding: 2px 8px; font-size: 11px; color: #efe8ff; background: #2c2350; box-shadow: inset 0 0 0 1px #54428c; }
.bm-chip button:hover { background: #3a2d70; }
/* 导航状态条：左上角色信息下方（任务栏顶部），完整显示文字 */
.hud-quest > .hud-navslot { margin-bottom: 4px; }
.hud-quest > .hud-navslot .nav-row { width: 100%; }
.hud-quest > .hud-navslot .nav-row .nr-tx { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hud-quest > .hud-navslot .nav-row.flash::before { top: auto; bottom: -20px; right: 6px; }

/* ---------- 聊天：频道分段按钮 / 展开 / 聊天窗口 ---------- */
.ch-seg { display: inline-flex; flex: none; box-shadow: 0 0 0 1px #0a0716; }
.ch-seg button { --cc: #5ad1ff; border: 0; cursor: pointer; padding: 4px 9px; font-size: 12px; color: #a99fd0; background: rgba(12, 8, 24, .85); box-shadow: inset 0 0 0 1px rgba(84, 66, 140, .6); transition: color .15s, background .15s; }
.ch-seg button + button { margin-left: -1px; }
.ch-seg button:hover { color: #efe8ff; }
.ch-seg button.on { color: #0a0716; background: var(--cc); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 0 10px color-mix(in srgb, var(--cc) 55%, transparent); text-shadow: none; }
.hud-chat .chat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.chat-exp { flex: none; width: 28px; height: 24px; border: 0; cursor: pointer; color: #efe8ff; font-size: 15px; line-height: 1; background: rgba(12, 8, 24, .85); box-shadow: inset 0 0 0 1px rgba(84, 66, 140, .7), 0 0 0 1px #0a0716; }
.chat-exp:hover { background: #3a2d70; color: #ffd84a; }
.hud-chat .chat-log { cursor: pointer; }
.hud-chat .chat-input .input { flex: 1; }
.win-body.chat-body { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.chat-log.chat-full { flex: 1; min-height: 0; max-height: none !important; mask-image: none !important; -webkit-mask-image: none !important; padding: 10px 12px; font-size: 14px; line-height: 1.8;
  background: linear-gradient(180deg, rgba(10, 7, 22, .55), rgba(10, 7, 22, .8)); box-shadow: inset 0 0 0 1px rgba(84, 66, 140, .5); cursor: default; }
.chat-log.chat-full .m { padding: 3px 6px; border-bottom: 1px dashed rgba(180, 140, 255, .08); }
.chat-log.chat-full .m:hover { background: rgba(180, 140, 255, .06); }
.chat-log.chat-full .m .ch { font-size: 11px; padding: 1px 5px; }
.chat-empty { padding: 40px 10px; text-align: center; color: #6a6090; }
.chat-bar { display: flex; gap: 8px; align-items: center; flex: none; }
.chat-bar .chat-in { flex: 1; min-width: 0; }
.chat-bar .ch-seg button { padding: 8px 12px; font-size: 13px; }
.chat-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: none; font-size: 12px; }
.chat-emotes { display: flex; flex-wrap: wrap; gap: 4px; }
.chat-emotes button { border: 0; cursor: pointer; width: 34px; height: 30px; font-size: 16px; background: rgba(12, 8, 24, .8); box-shadow: inset 0 0 0 1px rgba(84, 66, 140, .6); transition: transform .1s; }
.chat-emotes button:hover { transform: translateY(-2px) scale(1.08); background: #2c2350; }
@media (max-width: 760px) { .chat-bar { flex-wrap: wrap; } .chat-bar .ch-seg { width: 100%; } .chat-bar .ch-seg button { flex: 1; } }

.chat-exp { width: auto !important; padding: 0 8px 0 6px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px !important; color: #e8dcff; }
.chat-exp .px-expand { width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2012%2012%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%270%27%20y%3D%270%27%20width%3D%274%27%20height%3D%271%27%20fill%3D%27%23f0e6ff%27/%3E%3Crect%20x%3D%270%27%20y%3D%270%27%20width%3D%271%27%20height%3D%274%27%20fill%3D%27%23f0e6ff%27/%3E%3Crect%20x%3D%272%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%278%27%20y%3D%270%27%20width%3D%274%27%20height%3D%271%27%20fill%3D%27%23f0e6ff%27/%3E%3Crect%20x%3D%2711%27%20y%3D%270%27%20width%3D%271%27%20height%3D%274%27%20fill%3D%27%23f0e6ff%27/%3E%3Crect%20x%3D%279%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%278%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%277%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%270%27%20y%3D%2711%27%20width%3D%274%27%20height%3D%271%27%20fill%3D%27%23f0e6ff%27/%3E%3Crect%20x%3D%270%27%20y%3D%278%27%20width%3D%271%27%20height%3D%274%27%20fill%3D%27%23f0e6ff%27/%3E%3Crect%20x%3D%272%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%273%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%274%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%278%27%20y%3D%2711%27%20width%3D%274%27%20height%3D%271%27%20fill%3D%27%23f0e6ff%27/%3E%3Crect%20x%3D%2711%27%20y%3D%278%27%20width%3D%271%27%20height%3D%274%27%20fill%3D%27%23f0e6ff%27/%3E%3Crect%20x%3D%279%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%278%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3Crect%20x%3D%277%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffd84a%27/%3E%3C/svg%3E") center / 12px 12px no-repeat; image-rendering: pixelated; transition: transform .2s; }
.chat-exp:hover .px-expand { transform: scale(1.15); }

/* ---------- 获得物品：左侧拾取流 ---------- */
#lootfeed { position: fixed; left: calc(12px + env(safe-area-inset-left, 0px)); top: 40%; z-index: 26; display: flex; flex-direction: column; gap: 4px; pointer-events: none; width: 300px; }
.lf { --rc: #c9d3e3; position: relative; pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 34px 0 4px; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 26%, rgba(14, 10, 28, .94)) 0%, rgba(14, 10, 28, .9) 34%, rgba(14, 10, 28, .55) 72%, rgba(14, 10, 28, 0) 100%);
  animation: lfIn .32s cubic-bezier(.2, 1.3, .4, 1); text-shadow: 0 1px 0 #000; }
.lf::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.lf::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 80%, transparent), transparent 80%); }
.lf-ic { position: relative; flex: none; width: 34px; height: 34px; margin-left: 4px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 40%, #1a1430), #0c0818 75%); box-shadow: 0 0 0 1px #0a0716, inset 0 0 0 1px var(--rc), inset 0 0 0 2px rgba(10, 7, 22, .9); }
.lf-ic img { width: 28px; height: 28px; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)); }
.lf-tx { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.15; }
.lf-tag { font-size: 10px; letter-spacing: .15em; color: color-mix(in srgb, var(--rc) 55%, #b8b0d8); }
.lf-nm { font-size: 14px; font-weight: normal; color: var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-n { flex: none; font-size: 15px; color: #ffe27a; letter-spacing: .02em; }
.lf-n:empty { display: none; }
.lf-r { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--rc); opacity: .85; letter-spacing: .1em; }
.lf.rare .lf-tx::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%); background-size: 260% 100%; animation: lfShine 1.1s .15s ease-out 1 backwards; }
.lf.epic .lf-ic { animation: lfGlow 1.4s ease-in-out infinite; }
.lf.bump .lf-ic { animation: lfBump .3s cubic-bezier(.2, 1.8, .4, 1); }
.lf.bump .lf-n { animation: lfBump .3s cubic-bezier(.2, 1.8, .4, 1); }
.lf.out { animation: lfOut .36s ease-in forwards; pointer-events: none; }
@keyframes lfIn { from { opacity: 0; transform: translateX(-26px); } }
@keyframes lfOut { to { opacity: 0; transform: translateX(-18px); } }
@keyframes lfShine { from { background-position: 130% 0; } to { background-position: -60% 0; } }
@keyframes lfGlow { 50% { box-shadow: 0 0 0 1px #0a0716, inset 0 0 0 1px var(--rc), inset 0 0 0 2px rgba(10, 7, 22, .9), 0 0 12px var(--rc); } }
@keyframes lfBump { 40% { transform: scale(1.25); } }
@media (max-width: 760px) { #lootfeed { top: 34%; width: 230px; left: 6px; } .lf { height: 34px; } .lf-ic { width: 28px; height: 28px; } .lf-ic img { width: 22px; height: 22px; } .lf-nm { font-size: 12px; } }

/* ---------- 通用提示：顶部中央，像素描边 + 类型色徽章 ---------- */
.toast { padding: 8px 18px 10px 8px !important; gap: 10px; background: linear-gradient(180deg, rgba(36, 27, 66, .97), rgba(16, 11, 32, .97)) !important;
  box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 1px color-mix(in srgb, var(--tc) 55%, #3a2d63), inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .45) !important; border: 0 !important; }
.toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc); box-shadow: 0 0 10px var(--tc); }
.toast .t-ic { width: 30px; height: 30px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tc) 38%, #1a1430), #0c0818 75%) !important; box-shadow: 0 0 0 1px #0a0716, inset 0 0 0 1px var(--tc); }
.toast .t-ic img { width: 22px; height: 22px; }

/* ---------- 账号卡：切换账号 / 退出登录 ---------- */
.acc-card { position: relative; }
.acc-acts { display: flex; flex-direction: column; gap: 8px; align-self: center; flex: none; }
.acc-acts .btn { min-width: 96px; }
@media (max-width: 600px) { .acc-card { flex-wrap: wrap; } .acc-acts { flex-direction: row; width: 100%; } .acc-acts .btn { flex: 1; } }
.acc-sw-mask { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(6, 3, 14, .62); backdrop-filter: blur(2px); animation: fade .18s; }
.acc-sw { width: min(420px, 92vw); max-height: 80vh; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: linear-gradient(180deg, rgba(40, 30, 72, .98), rgba(20, 14, 38, .98));
  box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #c8a040, inset 0 0 0 4px #0a0716, 0 16px 50px rgba(0, 0, 0, .6); animation: bmIn .24s cubic-bezier(.2, 1.4, .4, 1); }
.acc-sw-head { display: flex; justify-content: space-between; align-items: center; } .acc-sw-head b { font-size: 17px; color: #ffd84a; letter-spacing: .1em; }
.acc-sw-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.acc-sw-row { display: flex; align-items: center; gap: 10px; padding: 8px; cursor: pointer; background: rgba(12, 8, 24, .7); box-shadow: inset 0 0 0 1px rgba(84, 66, 140, .6); transition: background .15s, transform .15s; }
.acc-sw-row:hover:not(.cur) { background: rgba(60, 44, 112, .7); transform: translateX(3px); }
.acc-sw-row.cur { cursor: default; box-shadow: inset 0 0 0 1px #7dff8a, inset 3px 0 0 #7dff8a; }
.acc-sw-row img { width: 40px; height: 40px; image-rendering: pixelated; object-fit: cover; box-shadow: 0 0 0 1px #0a0716, inset 0 0 0 1px #54428c; background: #0c0818; }
.acc-sw-row b { display: flex; align-items: center; gap: 6px; font-weight: normal; font-size: 14px; }
.acc-sw-row small { font-size: 11px; }

/* ---------- 特效层：隐藏滚动条（开箱等画面右侧的竖线） ---------- */
.fxlayer .fx-ui { scrollbar-width: none; overflow-x: hidden; }
.fxlayer .fx-ui::-webkit-scrollbar { display: none; }

/* ---------- 右侧菜单按钮：文字放进按钮内部，不再溢出 ---------- */
.hud-menu:not(.mobile) { grid-template-columns: repeat(3, 48px) !important; gap: 5px; }
.hud-menu:not(.mobile) .mbtn { width: 48px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 5px; gap: 1px; }
.hud-menu:not(.mobile) .mbtn img { width: 28px; height: 28px; flex: none; }
.hud-menu:not(.mobile) .mbtn .lbl { position: static; font-size: 11px; line-height: 13px; letter-spacing: .02em; white-space: nowrap; }
.hud-menu.mobile .mbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.hud-menu.mobile .mbtn img { width: 24px !important; height: 24px !important; }
.hud-menu.mobile .mbtn .lbl { position: static; font-size: 9px; line-height: 11px; }

/* ---------- HUD 折叠按钮 ---------- */
.hud-fold { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 24px; min-width: 24px; padding: 0 6px; border: 0; cursor: pointer; font-size: 12px; color: #e8dcff; pointer-events: auto;
  background: rgba(12, 8, 24, .85); box-shadow: inset 0 0 0 1px rgba(84, 66, 140, .75), 0 0 0 1px #0a0716; transition: background .15s, color .15s; }
.hud-fold:hover { background: #3a2d70; color: #ffd84a; }
.hud-fold .fold-ic { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .2s; }
.hud-fold.on .fold-ic { transform: rotate(180deg); }
.hud-fold .fold-lb { display: none; }
.hud-fold.on .fold-lb { display: inline; }
.hud-fold .fold-n { display: none; min-width: 16px; padding: 0 3px; font-size: 10px; line-height: 14px; font-weight: normal; color: #fff; background: #e04a5a; box-shadow: 0 0 0 1px #0a0716; }
.hud-fold.on .fold-n:not(:empty) { display: inline-block; }
/* 菜单：折叠按钮占满一行，折叠后只留按钮 */
.hud-menu > .hud-fold { grid-column: 1 / -1; width: 100%; height: 20px; font-size: 11px; }
.hud-menu > .hud-fold .fold-lb { display: inline; }
.hud-menu.collapsed > .mbtn { display: none; }
.hud-menu.collapsed > .hud-fold { width: auto; justify-self: end; padding: 0 10px; height: 26px; }
/* 任务追踪：标题栏 + 折叠 */
.hq-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; font-size: 11px; letter-spacing: .15em; color: #a99fd0; text-shadow: 0 1px 0 #000; pointer-events: auto; }
.hud-quest.collapsed > :not(.hq-head):not(.hud-navslot) { display: none !important; }
.hud-quest.collapsed .hq-head { justify-content: flex-start; }
/* 聊天：折叠后只留一个小按钮（带未读数） */
.hud-chat.collapsed .chat-log, .hud-chat.collapsed .chat-input, .hud-chat.collapsed .ch-seg, .hud-chat.collapsed .chat-exp { display: none !important; }
.hud-chat.collapsed { width: auto !important; }
.hud-chat.collapsed .chat-top { justify-content: flex-start; }
.hud-chat.collapsed .hud-fold { height: 30px; padding: 0 10px; font-size: 13px; }
.hq-head .hud-fold .fold-lb { display: none !important; }

/* 药水按钮：剩余数量徽标 */
.sk .pot-n { position: absolute; top: -6px; right: -8px; min-width: 22px; padding: 0 4px; font-size: 11px; line-height: 16px; text-align: center; color: #fff6c0; pointer-events: none;
  background: linear-gradient(180deg, #c8384a, #8a1a2a); box-shadow: 0 0 0 1px #0a0716, inset 0 1px 0 rgba(255, 255, 255, .25); text-shadow: 0 1px 0 #000; }
.sk.empty { filter: grayscale(.9) brightness(.7); }
.sk.empty .pot-n { background: #3a3050; color: #a99fd0; }

/* ================= 手机端布局：消除重叠 ================= */
@media (pointer: coarse), (max-width: 760px) {
  .hud-skills { width: 240px; height: 240px; }
  .hud-skills .sk .key { display: none; }
  .sk.awk .awk-pct { bottom: auto; top: -14px; }
  .sk .pot-n { top: -8px; right: auto; left: -10px; }
  .combo-pips { top: auto; bottom: -12px; }
  /* 任务：主线 + 1 条（原规则被标题栏打乱，导致手机上任务全部隐藏） */
  .hud-quest .q { display: block; }
  .hud-quest .q ~ .q ~ .q { display: none; }
  .hud-interact { min-height: 38px; padding: 6px 16px; font-size: 15px; }
}
/* 竖屏 */
@media (orientation: portrait) and (pointer: coarse), (orientation: portrait) and (max-width: 760px) {
  .hud-quest { top: calc(96px + var(--safe-t)); width: min(220px, 58vw); }
  .hud-chat { top: auto !important; bottom: calc(55vh + 8px + var(--safe-b)); width: min(260px, 66vw); }
  .combo-meter { top: 24%; right: 66px; left: auto; }
  .hud-interact { bottom: calc(262px + var(--safe-b)); }
  #lootfeed { top: 46%; }
}
/* 横屏 */
@media (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (max-height: 500px) {
  .hud-skills { transform: scale(.82); transform-origin: right bottom; }
  .combo-meter { top: 96px; left: 250px; right: auto; }
  .hud-interact { left: 50%; bottom: calc(18px + var(--safe-b)); }
  #lootfeed { top: auto; bottom: calc(12px + var(--safe-b)); left: calc(46vw - 150px); width: 240px; }
}
@media (orientation: landscape) and (pointer: coarse), (orientation: landscape) and (max-height: 500px) {
  .hud-quest { top: calc(92px + var(--safe-t)) !important; }
  .hud-quest .q { padding: 4px 8px 4px 10px; font-size: 11px; }
}

/* ---------- 手机全屏引导 + 横竖屏提示 ---------- */
#fsgate { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at center, rgba(40, 26, 80, .96), rgba(4, 2, 10, .98)); cursor: pointer; animation: fade .25s; }
#fsgate.out { opacity: 0; transition: opacity .25s; }
.fs-box { width: min(360px, 88vw); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 20px 20px; text-align: center;
  background: linear-gradient(180deg, rgba(40, 30, 72, .97), rgba(20, 14, 38, .97)); box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #c8a040, inset 0 0 0 4px #0a0716, 0 16px 50px rgba(0, 0, 0, .6); }
.fs-t { font-size: 22px; font-weight: normal; color: #ffd84a; letter-spacing: .12em; text-shadow: 0 2px 0 #5a3a10, 0 0 14px rgba(255, 216, 74, .5); }
.fs-s { margin: 0; font-size: 13px; line-height: 1.7; color: #d8ccf8; } .fs-s em { font-style: normal; color: #5ad1ff; margin: 0 3px; }
.fs-btn { margin-top: 4px; min-width: 180px; padding: 11px 18px; border: 0; cursor: pointer; font-size: 16px; color: #2a1a00; background: linear-gradient(180deg, #ffe680, #e0a020); box-shadow: 0 0 0 2px #0a0716, inset 0 -3px 0 rgba(0, 0, 0, .25), 0 0 18px rgba(255, 216, 74, .4); animation: fsPulse 1.6s ease-in-out infinite; }
@keyframes fsPulse { 50% { box-shadow: 0 0 0 2px #0a0716, inset 0 -3px 0 rgba(0, 0, 0, .25), 0 0 28px rgba(255, 216, 74, .75); } }
.fs-ios { font-size: 12px; line-height: 1.6; color: #a99fd0; }
.fs-orients { display: flex; align-items: center; gap: 14px; height: 64px; }
.fs-ph { position: relative; display: block; background: #1a1430; box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #8a7ad8; }
.fs-ph i { position: absolute; inset: 5px; background: linear-gradient(160deg, #5ad1ff, #b48cff 60%, #ff7ab6); opacity: .85; }
.fs-ph.port { width: 30px; height: 54px; animation: fsTilt 2.4s ease-in-out infinite; }
.fs-ph.land { width: 54px; height: 30px; animation: fsTilt 2.4s 1.2s ease-in-out infinite; }
.fs-rot { font-size: 22px; color: #ffd84a; animation: fsSpin 2.4s linear infinite; }
@keyframes fsTilt { 50% { transform: rotate(-8deg) scale(1.06); } }
@keyframes fsSpin { to { transform: rotate(-360deg); } }
#orient-tip { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -10px); z-index: 125; padding: 6px 14px; font-size: 13px; color: #fff3c0; pointer-events: none; opacity: 0;
  background: rgba(20, 14, 38, .92); box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 1px #c8a040; transition: opacity .25s, transform .25s; }
#orient-tip.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 横屏矮屏幕（手机横屏）：登录卡片紧凑化，注册表单两列，免滚动 ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .auth-stage { padding: calc(16px + var(--safe-t)) 16px 8px !important; gap: 18px !important; align-items: center !important; }
  .auth-card { width: min(470px, 56vw) !important; }
  .auth-inner { padding: 10px 14px 10px !important; }
  .auth-tabs { margin-bottom: 8px !important; } .auth-tabs > div { height: 32px !important; font-size: 14px !important; }
  .auth-seg { margin: -2px 0 6px !important; gap: 20px !important; } .auth-seg > div { padding: 2px 2px 5px !important; font-size: 13px !important; }
  .auth-card .field { margin-bottom: 6px !important; }
  .auth-card .field > label { font-size: 11px !important; margin-bottom: 2px !important; }
  .auth-card .ifield { height: 34px !important; }
  .auth-card .ifield .fi { width: 18px; height: 18px; margin-left: 8px; }
  .auth-card .ainput { font-size: 13px !important; }
  .auth-card .field.code .ainput { font-size: 17px !important; }
  .auth-card .ifield .send { height: 26px !important; font-size: 12px !important; }
  .auth-card .btn.lg { min-height: 36px !important; padding: 6px 16px !important; font-size: 15px !important; }
  .auth-card .hint:empty { display: none; }
  /* 注册：字段两列排布 */
  .auth-card[data-mode=register] .auth-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .auth-card[data-mode=register] .auth-body > * { grid-column: 1 / -1; }
  .auth-card[data-mode=register] .auth-body > .field[data-f=code],
  .auth-card[data-mode=register] .auth-body > .field[data-f=nickname],
  .auth-card[data-mode=register] .auth-body > .field[data-f=password],
  .auth-card[data-mode=register] .auth-body > .field[data-f=password2] { grid-column: auto; }
  .auth-card[data-mode=reset] .auth-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .auth-card[data-mode=reset] .auth-body > * { grid-column: 1 / -1; }
  .auth-card[data-mode=reset] .auth-body > .field[data-f=password], .auth-card[data-mode=reset] .auth-body > .field[data-f=password2] { grid-column: auto; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .auth-card .auth-body > * { min-width: 0; }
  .auth-card .ifield { min-width: 0; width: 100%; }
  .auth-card[data-mode=register] .auth-body, .auth-card[data-mode=reset] .auth-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* 坐骑按钮：骑乘中高亮 */
.sk.riding { box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #ffd84a, 0 0 14px rgba(255, 216, 74, .6) !important; }
.sk.riding img { animation: rideBob .5s ease-in-out infinite alternate; }
@keyframes rideBob { to { transform: translateY(-2px); } }
/* 网格中的空状态：横跨整行，不被挤成一列 */
.grid-cells > .empty, .menu-grid > .empty, .hero-grid > .empty, .cards > .empty { grid-column: 1 / -1; width: 100%; }
.win-body > .empty { width: 100%; }
/* 列表 / 分栏：只允许纵向滚动；NEW 角标收进条目内，不再撑出横向滚动条 */
.win-body.split > *, .list, .pet-list, .codex-grid, .roster-grid, .skin-grid { overflow-x: hidden; }
.list .li > .new-tag, .list .card > .new-tag, .pet-list .new-tag { top: 3px; right: 4px; }
.win-body { overflow-x: hidden; }
@media (max-width: 760px) {
  .win-body.split > * { width: auto !important; max-width: 100%; min-width: 0; flex: none; }
  .win-body, .win-body.split { overflow-x: hidden !important; }
}
/* 宠物合成：手机上三个槽位排成一行 */
@media (max-width: 760px) {
  .fuse-row { flex-wrap: nowrap; gap: 4px; margin: 4px 0 10px; }
  .fuse-slot { width: 30% !important; max-width: 104px; min-height: 108px !important; padding: 6px 4px; font-size: 11px; }
  .fuse-slot img, .fuse-slot .fs-q { width: 52px !important; height: 52px !important; font-size: 24px; }
  .fuse-op { font-size: 18px; flex: none; }
}
/* 选择对话框：长选项换行显示，不再被裁切 */
.choose-opts .btn.choose-opt { white-space: normal; height: auto; min-height: 40px; padding: 8px 14px; line-height: 1.4; text-align: center; flex-direction: column; gap: 2px; }
.choose-opts .btn.choose-opt b { font-weight: normal; font-size: 15px; }
.choose-opts .btn.choose-opt small { font-size: 12px; opacity: .88; }
.sk.riding .cdt { font-size: 11px !important; color: #ffe8a0; }
.sk.riding.tired { animation: rideTired .6s ease-in-out infinite alternate; }
@keyframes rideTired { to { box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #ff7a4a, 0 0 14px rgba(255, 122, 74, .7); } }

/* ---------- 右侧常驻按钮 + 「全部功能」 ---------- */
.mbtn-all { background: linear-gradient(180deg, #4a3a8a, #2a1e5a) !important; box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 2px #b48cff, 0 0 12px rgba(180,140,255,.35) !important; }
.px-grid { position: relative; width: 22px; height: 22px; margin-top: 2px; flex: none; }
.px-grid::before { content: ''; position: absolute; left: 1px; top: 1px; width: 8px; height: 8px; background: #ffd84a; box-shadow: 12px 0 0 #5ad1ff, 0 12px 0 #ff7ab6, 12px 12px 0 #7dff8a; outline: 1px solid #0a0716; }
.hud-menu:not(.mobile) .mbtn-all .px-grid { width: 22px; height: 22px; }
.hud-menu.mobile .px-grid { transform: scale(.85); }
.win-body.menu-cats { display: flex; flex-direction: column; gap: 12px; }
.mc-sec { --mc: #ffd84a; }
.mc-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.mc-head b { font-weight: normal; font-size: 14px; color: var(--mc); letter-spacing: .12em; text-shadow: 0 1px 0 #000, 0 0 8px color-mix(in srgb, var(--mc) 40%, transparent); }
.mc-head i { flex: 1; height: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 70%, transparent), transparent); }
.menu-cats .menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.menu-cats .menu-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; cursor: pointer; background: rgba(12, 8, 24, .55); box-shadow: inset 0 0 0 1px rgba(84, 66, 140, .5); transition: transform .12s, background .15s; }
.menu-cats .menu-tile:hover { transform: translateY(-2px); background: rgba(60, 44, 112, .55); box-shadow: inset 0 0 0 1px var(--mc, #b48cff); }
.menu-cats .menu-tile .mbtn { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.menu-cats .menu-tile span:not(.badge) { font-size: 13px; }
@media (max-width: 760px) { .menu-cats .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } .menu-cats .menu-tile .mbtn { width: 40px; height: 40px; } .menu-cats .menu-tile span:not(.badge) { font-size: 12px; } }
/* 登录页：背景音乐开关 */
.auth-music { position: fixed; right: calc(14px + env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 92; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; cursor: pointer; font-size: 12px; color: #e8dcff;
  background: rgba(14, 10, 28, .78); box-shadow: 0 0 0 2px #0a0716, inset 0 0 0 1px #54428c; }
.auth-music i { width: 14px; height: 14px; background: radial-gradient(circle at 35% 70%, #ffd84a 0 3px, transparent 4px), linear-gradient(#ffd84a, #ffd84a) 9px 1px / 2px 10px no-repeat, linear-gradient(#ffd84a, #ffd84a) 9px 1px / 5px 2px no-repeat; animation: amBob 1.2s ease-in-out infinite alternate; }
.auth-music.off { color: #8a80b0; } .auth-music.off i { filter: grayscale(1) brightness(.7); animation: none; }
@keyframes amBob { to { transform: translateY(-2px); } }

/* ---------- 批量选择（出售 / 放生）与锁定 ---------- */
.bag-tools { margin: 0 0 8px; gap: 8px; } .bag-tools .dim { font-size: 12px; }
.cell.pickable { cursor: pointer; }
.cell.pickable.nopick { opacity: .38; filter: grayscale(.7); }
.cell.picked { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #ffd84a, 0 0 12px rgba(255, 216, 74, .55) !important; transform: translateY(-1px); }
.pick-box { position: absolute; left: 2px; top: 2px; z-index: 4; width: 16px; height: 16px; display: grid; place-items: center; font-size: 12px; line-height: 1; color: #2a1a00; background: rgba(10, 6, 22, .85); box-shadow: 0 0 0 1px #0a0716, inset 0 0 0 1px #8a7ad8; pointer-events: none; }
.cell.picked .pick-box, .li.picked .pick-box { background: #ffd84a; box-shadow: 0 0 0 1px #0a0716, inset 0 0 0 1px #fff2b0; }
.pick-box.inline { position: static; flex: none; margin-right: 4px; }
.lock-tag { position: absolute; right: 2px; bottom: 2px; z-index: 4; font-size: 11px; line-height: 1; filter: drop-shadow(0 1px 0 #000); pointer-events: none; }
.lock-tag.inline { position: static; margin-right: 2px; }
.li.pickable { cursor: pointer; } .li.picked { box-shadow: inset 3px 0 0 #ffd84a, inset 0 0 0 1px rgba(255, 216, 74, .6); background: rgba(255, 216, 74, .08); } .li.nopick { opacity: .45; }
.sel-bar { position: sticky; bottom: -16px; z-index: 6; margin: 12px -16px -16px; padding: 10px 16px calc(10px + var(--safe-b, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  background: linear-gradient(180deg, rgba(30, 22, 58, .96), rgba(16, 11, 32, .98)); box-shadow: 0 -2px 0 #3a2d63, 0 -10px 24px rgba(0, 0, 0, .4); animation: selIn .2s ease-out; }
@keyframes selIn { from { transform: translateY(20px); opacity: 0; } }
.sel-quick { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 260px; }
.sel-sum { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #c8bce8; } .sel-sum b { display: inline-flex; align-items: center; gap: 4px; font-weight: normal; font-size: 14px; color: #ffd84a; }
.win-body.split > .sel-bar { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
@media (max-width: 760px) { .sel-bar { gap: 6px 10px; } .sel-quick .btn { padding: 4px 8px; font-size: 11px; } .sel-bar > .btn { flex: 1; } }

/* ---------- 红点提示：窗口顶部说明每个红点是什么、在哪个页签 ---------- */
.dot-strip { flex: none; display: flex; align-items: center; gap: 10px; margin: 0 4px 2px; padding: 6px 10px; background: linear-gradient(90deg, rgba(255, 74, 106, .18), rgba(255, 74, 106, .04) 60%, transparent); box-shadow: inset 2px 0 0 #ff4a6a, inset 0 -1px 0 rgba(255, 74, 106, .25); animation: dsIn .25s ease-out; }
.dot-strip.hidden { display: none; }
@keyframes dsIn { from { opacity: 0; transform: translateY(-4px); } }
.ds-lbl { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #ffb3c0; letter-spacing: .05em; }
.ds-dot { width: 8px; height: 8px; background: #ff4a6a; box-shadow: 0 0 0 1px #2a0712, 0 0 8px #ff4a6a; animation: dsPulse 1.2s ease-in-out infinite; }
@keyframes dsPulse { 50% { transform: scale(.6); opacity: .6; } }
.ds-chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ds-chips::-webkit-scrollbar { display: none; }
.ds-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; font: inherit; font-size: 12px; color: #fff; cursor: pointer; border: 0; background: rgba(20, 10, 34, .8); box-shadow: inset 0 0 0 1px rgba(255, 74, 106, .55), 0 2px 0 rgba(0, 0, 0, .35); transition: transform .12s, background .12s; }
.ds-chip:hover { transform: translateY(-1px); background: rgba(70, 20, 44, .9); }
.ds-chip:active { transform: translateY(1px); }
.ds-chip > b { min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; font-weight: normal; font-size: 11px; background: #ff4a6a; box-shadow: 0 0 0 1px #2a0712; }
.ds-chip > small { color: #c9b8e8; font-size: 11px; }
.ds-chip.here > small { color: #7dff8a; }
.ds-go { font-style: normal; color: #ff8aa0; font-size: 14px; line-height: 1; }
.dot-focus { animation: dotFocus 1.1s ease-out 2; position: relative; z-index: 2; }
@keyframes dotFocus { 0% { box-shadow: 0 0 0 0 rgba(255, 216, 74, .95), 0 0 0 0 rgba(255, 74, 106, .6); } 60% { box-shadow: 0 0 0 4px rgba(255, 216, 74, .9), 0 0 18px 8px rgba(255, 74, 106, .35); } 100% { box-shadow: 0 0 0 0 rgba(255, 216, 74, 0), 0 0 0 0 rgba(255, 74, 106, 0); } }
/* 悬浮提示里的红点来源 */
.dot-tip { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.dot-tip > div { display: flex; align-items: center; gap: 6px; }
.dot-n { min-width: 18px; height: 16px; padding: 0 4px; display: inline-grid; place-items: center; font-size: 10px; color: #fff; background: #ff4a6a; box-shadow: 0 0 0 1px #2a0712; }
/* 全部功能：红点原因写在名字下面 */
.menu-cats .menu-tile .mt-why { max-width: 100%; font-size: 10px; line-height: 1.25; color: #ff9ab0; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.menu-cats .menu-tile.has-dot { box-shadow: inset 0 0 0 1px rgba(255, 74, 106, .5); }
@media (max-width: 760px) {
  .dot-strip { gap: 6px; padding: 5px 8px; }
  .ds-lbl { font-size: 0; gap: 0; }
  .ds-chip { padding: 3px 7px 3px 3px; font-size: 11px; }
  .ds-chip > small { font-size: 10px; }
}

/* ---------- 衣橱：角色选择条（带新皮肤红点） ---------- */
.skin-heroes { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 12px; margin-bottom: 6px; scrollbar-width: thin; scrollbar-color: #54428c transparent; }
.sh-pick { position: relative; flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 5px; font: inherit; font-size: 12px; color: #e8e0ff; cursor: pointer; border: 0;
  background: rgba(14, 9, 28, .7); box-shadow: inset 0 0 0 1px #3a2d63, 0 2px 0 rgba(0, 0, 0, .35); transition: transform .12s, background .12s; }
.sh-pick:hover { transform: translateY(-2px); background: rgba(50, 34, 92, .7); }
.sh-pick.on { background: linear-gradient(180deg, rgba(255, 122, 182, .28), rgba(40, 20, 60, .8)); box-shadow: inset 0 0 0 2px #ff7ab6, 0 0 12px rgba(255, 122, 182, .35); }
.sh-pick.locked img { filter: grayscale(.9) brightness(.7); }
.sh-pick img { width: 48px; height: 60px; object-fit: contain; image-rendering: pixelated; }
.sh-pick > span:not(.badge) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sh-pick small { font-size: 10px; color: #b8a8e0; }
.sh-pick .sh-cur { position: absolute; left: 3px; top: 3px; font-style: normal; font-size: 9px; padding: 1px 3px; color: #1a1000; background: #ffd84a; }
.sh-pick .badge { top: -6px; right: -6px; }
.hero-card .hc-newskin { margin-top: 4px; }
@media (max-width: 760px) { .sh-pick { width: 64px; font-size: 11px; } .sh-pick img { width: 40px; height: 50px; } }
/* 一键已读 */
.ds-read { flex: none; padding: 4px 10px; font: inherit; font-size: 12px; color: #d8ffe0; cursor: pointer; border: 0; background: rgba(20, 60, 40, .75); box-shadow: inset 0 0 0 1px #4adf8a, 0 2px 0 rgba(0, 0, 0, .35); white-space: nowrap; }
.ds-read:hover { background: rgba(30, 90, 56, .9); }
.menu-cats .mc-newbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 10px; font-size: 13px; background: linear-gradient(90deg, rgba(255, 74, 106, .16), transparent); box-shadow: inset 2px 0 0 #ff4a6a; }
@media (max-width: 760px) { .ds-read { padding: 3px 7px; font-size: 11px; } .menu-cats .mc-newbar { font-size: 12px; flex-wrap: wrap; } }
.bag-btns { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.read-all { color: #d8ffe0; background: linear-gradient(180deg, #2a6a48, #1a4a32); box-shadow: inset 0 0 0 1px #4adf8a, 0 2px 0 rgba(0, 0, 0, .35); }
.btn.read-all:hover { filter: brightness(1.15); }
.pet-list .list-head > span { white-space: nowrap; }
.pet-list .list-head .bag-btns { flex-wrap: nowrap; }
.pet-list .list-head .bag-btns .btn { padding-left: 7px; padding-right: 7px; }
@media (max-width: 760px) {
  .bag-tools > .dim { display: none; }
  .bag-tools { justify-content: flex-end; }
  .bag-btns { flex-wrap: nowrap; }
}

/* ---------- 排行榜匿名 ---------- */
.anon-av { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; font-size: 18px; font-weight: bold; color: #b8a8e0; background: repeating-linear-gradient(45deg, #241a42 0 4px, #1c1436 4px 8px); box-shadow: inset 0 0 0 2px #3a2d63; }
.anon-name { color: #b8a8e0; letter-spacing: .04em; }
.anon-name::before { content: '◆ '; font-size: 10px; color: #6a5aa0; }
.anon-tag { margin-left: 6px; padding: 1px 5px; font-size: 10px; color: #d8ccff; background: #3a2d63; box-shadow: inset 0 0 0 1px #6a54b0; vertical-align: 1px; }
.rank-row.anon { cursor: default; }
.rank-priv.compact { margin: 8px 0 4px; padding: 6px 10px; background: rgba(20, 14, 40, .6); box-shadow: inset 0 0 0 1px #3a2d63; }
.rank-priv.compact small { font-size: 11px; }
@media (max-width: 760px) { .rank-priv.compact small { display: none; } }
/* 不支持网页全屏时的做法说明 */
#fsgate .fs-ios { max-width: 320px; text-align: left; font-size: 13px; line-height: 1.75; color: #d8ccf8; padding: 10px 12px; background: rgba(10, 6, 24, .6); box-shadow: inset 0 0 0 1px #3a2d63; }
#fsgate .fs-ios b { display: block; margin-bottom: 4px; font-size: 14px; color: #ffd84a; }
#fsgate .fs-ios em { font-style: normal; color: #5ad1ff; }
#fsgate .fs-never { border: 0; background: none; cursor: pointer; font: inherit; font-size: 12px; color: #8a80b0; text-decoration: underline; padding: 4px 8px; }
#fsgate.guide .fs-s { display: none; }
