/* ===================== 联机：队伍头像框 / 提示卡 / 集合对话框 / 倒地 / 战绩 / 传送过场 / 联机指南 ===================== */

/* ---------- HUD 队伍头像框（位于任务追踪栏下方） ---------- */
#hud .coop-frames { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; pointer-events: auto; }
#hud .hud-quest.collapsed > .coop-frames { display: flex !important; }
.pf-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #ffe8a0; text-shadow: 0 1px 0 #000; }
.pf-head .pf-t { display: inline-flex; align-items: center; gap: 4px; flex: 1; min-width: 0; white-space: nowrap; }
.pf-head img { width: 16px; height: 16px; image-rendering: pixelated; }
.pf-buff { display: inline-flex; align-items: center; gap: 2px; color: #ff9ad8; font-size: 11px; white-space: nowrap; animation: pfGlow 2s ease-in-out infinite; }
@keyframes pfGlow { 50% { filter: drop-shadow(0 0 4px #ff7ab6); } }
.pf-btn { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; font: inherit; font-size: 11px; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #3a2d63, #241a44); border: 2px solid #5a4a8a; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.pf-btn:hover { border-color: #ffd84a; }
.pf-btn img { width: 14px; height: 14px; image-rendering: pixelated; }
.pf-empty { font-size: 11px; color: #9ad8ff; padding: 6px 8px; cursor: pointer; background: rgba(20,14,38,.6); border: 1px dashed #4a3a7a; }
.pf-mem { display: flex; align-items: center; gap: 7px; padding: 4px 8px 4px 4px; cursor: pointer;
  background: linear-gradient(90deg, rgba(20,14,38,.86), rgba(20,14,38,.45)); box-shadow: inset 3px 0 0 #8ad8ff, inset 0 0 0 1px rgba(255,255,255,.05); transition: background .15s; }
.pf-mem:hover { background: linear-gradient(90deg, rgba(40,30,74,.92), rgba(20,14,38,.5)); }
.pf-mem.off { opacity: .55; filter: grayscale(.7); }
.pf-mem.down { box-shadow: inset 3px 0 0 #ff5a6a, inset 0 0 0 1px rgba(255,90,106,.35); animation: pfDown 1s ease-in-out infinite; }
@keyframes pfDown { 50% { background: linear-gradient(90deg, rgba(90,14,30,.86), rgba(20,14,38,.45)); } }
.pf-av { position: relative; width: 30px; height: 30px; flex: none; border: 2px solid #5a4a8a; background: #140e26; }
.pf-av.big { width: 42px; height: 42px; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.pf-lv { position: absolute; right: -4px; bottom: -4px; min-width: 14px; height: 13px; padding: 0 2px; font-size: 9px; line-height: 13px; text-align: center; color: #1b1426; background: #ffd84a; border: 1px solid #1b1426; }
.pf-info { flex: 1; min-width: 0; }
.pf-nm { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; }
.pf-nm span { overflow: hidden; text-overflow: ellipsis; }
.pf-nm em { font-style: normal; font-size: 10px; padding: 0 3px; border: 1px solid currentColor; line-height: 13px; flex: none; }
.pf-crown { color: #ffd84a; font-weight: normal; text-shadow: 0 0 6px rgba(255,216,74,.7); }
.pf-hp { height: 5px; margin: 3px 0 2px; background: #2a1d44; border: 1px solid #0c0818; }
.pf-hp i { display: block; height: 100%; background: linear-gradient(180deg, #8affa0, #2ec85a); transition: width .3s; }
.pf-mem.down .pf-hp i { background: linear-gradient(180deg, #ff8a9a, #c82a3a); }
.pf-hp.wide { max-width: 220px; height: 6px; }
.pf-loc { font-size: 10px; color: #a89ad8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-rejoin { align-self: flex-start; display: inline-flex; gap: 4px; align-items: center; animation: pfGlow 1.6s infinite; }
@media (pointer: coarse), (max-width: 760px) {
  /* 手机：两列紧凑头像框，避免与聊天按钮重叠 */
  #hud .hud-quest > .coop-frames, #hud .hud-quest.collapsed > .coop-frames { display: grid !important; grid-template-columns: 1fr 1fr; gap: 3px; }
  #hud .coop-frames > .pf-head, #hud .coop-frames > .pf-empty, #hud .coop-frames > .pf-rejoin { grid-column: 1 / -1; }
  .pf-mem { padding: 2px 4px 2px 2px; gap: 4px; min-width: 0; }
  .pf-av { width: 20px; height: 20px; border-width: 1px; }
  .pf-lv { font-size: 8px; height: 11px; line-height: 11px; min-width: 11px; right: -3px; bottom: -3px; }
  .pf-nm { font-size: 10px; gap: 2px; }
  .pf-nm em { font-size: 9px; padding: 0 1px; }
  .pf-hp { height: 4px; margin: 2px 0 0; }
  .pf-loc, .pf-tt { display: none; }
  .pf-head { font-size: 11px; }
  .pf-btn { height: 20px; padding: 0 5px; }
}

/* ---------- 快捷标记菜单 ---------- */
.cq-pingmenu { position: fixed; z-index: 70; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; width: 220px; padding: 6px;
  background: rgba(16,10,32,.96); border: 2px solid #5a4a8a; box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: cqPop .14s ease-out; }
.cq-pingmenu button, .cq-pingbtn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; font: inherit; font-size: 13px; color: var(--pc); cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.15)); border: 2px solid color-mix(in srgb, var(--pc) 55%, #1b1426); }
.cq-pingmenu button:hover, .cq-pingbtn:hover { background: color-mix(in srgb, var(--pc) 22%, #1b1426); }
.cq-pingmenu img, .cq-pingbtn img { width: 18px; height: 18px; image-rendering: pixelated; }
@keyframes cqPop { from { transform: scale(.9); opacity: 0; } }

/* ---------- 提示卡 ---------- */
/* 提示卡：电脑在右上（菜单栏左侧，避开中央的系统提示条与新手引导），手机在屏幕中部偏上，避开摇杆与技能键 */
#coop-prompts { position: fixed; z-index: 96; top: calc(132px + env(safe-area-inset-top, 0px)); right: 172px; display: flex; flex-direction: column; gap: 8px; width: min(370px, 94vw); pointer-events: none; }
@media (pointer: coarse), (max-width: 760px) { #coop-prompts { top: 26%; right: auto; left: 50%; transform: translateX(-50%); } }
.cq-card { pointer-events: auto; position: relative; display: flex; gap: 10px; padding: 10px 12px 12px; overflow: hidden;
  background: linear-gradient(135deg, rgba(34,24,64,.97), rgba(16,10,32,.97)); border: 2px solid var(--pc); box-shadow: 0 0 0 2px #0c0818, 0 10px 30px rgba(0,0,0,.55), inset 0 0 24px color-mix(in srgb, var(--pc) 18%, transparent);
  animation: cqIn .32s cubic-bezier(.2,1.4,.5,1); }
.cq-card.out { animation: cqOut .28s ease-in forwards; }
@keyframes cqIn { from { transform: translateY(-14px) scale(.96); opacity: 0; } }
@keyframes cqOut { to { transform: translateY(-10px); opacity: 0; } }
.cq-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: #140e26; border: 2px solid color-mix(in srgb, var(--pc) 60%, #1b1426); }
.cq-ic img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.cq-ic img[src^="data"] { width: 32px; height: 32px; object-fit: contain; }
.cq-body { flex: 1; min-width: 0; }
.cq-body > b { color: var(--pc); font-size: 15px; letter-spacing: 1px; }
.cq-tx { color: #f0eaff; font-size: 13px; line-height: 1.5; margin: 2px 0; }
.cq-note { color: #a89ad8; font-size: 11px; }
.cq-chk { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.cq-btns { display: flex; gap: 6px; margin-top: 6px; }
.cq-life { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,0,0,.4); }
.cq-life i { display: block; height: 100%; background: var(--pc); transform-origin: left; animation: cqLife linear forwards; }
@keyframes cqLife { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- 集合对话框 ---------- */
.cr-mask { position: fixed; inset: 0; z-index: 58; background: radial-gradient(ellipse at center, rgba(40,20,80,.35), rgba(8,4,18,.75)); opacity: 0; transition: opacity .2s; }
.cr-mask.in { opacity: 1; }
.coop-rally { position: fixed; z-index: 59; left: 50%; top: 50%; width: min(520px, 94vw); max-height: 88vh; overflow: auto; padding: 16px;
  transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .22s cubic-bezier(.2,1.3,.5,1), opacity .2s;
  background: linear-gradient(160deg, #2a1d4a, #150f2a 60%); border: 2px solid #b48cff; box-shadow: 0 0 0 2px #0c0818, 0 20px 60px rgba(0,0,0,.6), inset 0 0 40px rgba(180,140,255,.12); }
.coop-rally.in { transform: translate(-50%, -50%); opacity: 1; }
.cr-hero { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.cr-portal { flex: none; width: 70px; height: 70px; display: grid; place-items: center; border: 2px solid #b48cff; background: radial-gradient(circle, rgba(180,140,255,.45), rgba(20,10,40,.9) 70%); animation: crSpin 6s linear infinite; }
.cr-portal img { width: 56px; height: 56px; image-rendering: pixelated; animation: crSpin 6s linear infinite reverse; }
@keyframes crSpin { 50% { box-shadow: 0 0 22px rgba(180,140,255,.8); } }
.cr-t { display: block; font-size: 17px; color: #fff; line-height: 1.4; }
.cr-s { color: #c8b8ff; font-size: 12px; margin-top: 3px; }
.cr-list { display: flex; flex-direction: column; gap: 6px; }
.cr-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; background: rgba(255,255,255,.04); border: 2px solid #3a2d63; }
.cr-row:hover { border-color: #6a5aa8; }
.cr-row.dis { opacity: .55; cursor: default; }
.cr-row input { width: 18px; height: 18px; accent-color: #ffd84a; flex: none; }
.cr-av { width: 36px; height: 36px; object-fit: cover; image-rendering: pixelated; border: 2px solid #5a4a8a; flex: none; }
.cr-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-nm b { color: #fff; font-weight: normal; }
.cr-nm small { color: #9a90c0; font-size: 11px; }
.cr-st { flex: none; font-size: 12px; padding: 2px 8px; border: 1px solid currentColor; white-space: nowrap; }
.cr-st.near { color: #7dff8a; } .cr-st.map { color: #5ad1ff; } .cr-st.far { color: #c8b8ff; } .cr-st.off { color: #6a6090; }
.cr-st.wait { color: #ffd84a; animation: crBlink 1s infinite; } .cr-st.go { color: #5ad1ff; animation: crBlink .7s infinite; }
.cr-st.ok { color: #1b1426; background: #7dff8a; border-color: #7dff8a; } .cr-st.no { color: #ff7a8a; }
@keyframes crBlink { 50% { opacity: .45; } }
.cr-empty { color: #9a90c0; padding: 10px; text-align: center; }
.cr-tip { color: #a89ad8; font-size: 12px; margin: 10px 0 0; line-height: 1.6; }
.cr-wait { margin-top: 12px; }
.cr-cd { color: #ffe8a0; font-size: 13px; } .cr-cd b { color: #ffd84a; font-size: 16px; } .cr-count { color: #7dff8a; }
.cr-cdbar { height: 6px; margin-top: 6px; background: #1b1430; border: 1px solid #0c0818; }
.cr-cdbar i { display: block; height: 100%; background: linear-gradient(90deg, #b48cff, #ffd84a); transition: width .5s linear; }
.cr-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.cr-btns .btn { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 倒地 / 观战 ---------- */
#coop-down { position: fixed; z-index: 25; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(360px, 90vw); padding: 10px 14px; text-align: center;
  display: flex; flex-direction: column; gap: 6px; align-items: center; background: linear-gradient(180deg, rgba(70,10,24,.92), rgba(24,8,16,.92)); border: 2px solid #ff5a6a; box-shadow: 0 0 0 2px #0c0818, 0 0 30px rgba(255,40,60,.35); animation: cqIn .3s; }
#coop-down > b { color: #ff7a8a; font-size: 18px; letter-spacing: 4px; text-shadow: 0 0 10px rgba(255,60,80,.7); }
#coop-down > span { color: #ffe0e4; font-size: 13px; }
#coop-down small { color: #c8a0b0; font-size: 11px; }
#coop-down.spec { background: linear-gradient(180deg, rgba(30,24,60,.92), rgba(14,10,30,.92)); border-color: #9a90c0; box-shadow: 0 0 0 2px #0c0818; }
#coop-down.spec > b { color: #c8b8ff; text-shadow: none; }
.cd-bar { width: 100%; height: 7px; background: #2a0a14; border: 1px solid #0c0818; }
.cd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff3a4a, #ff9a6a); transition: width .2s linear; }
.cd-btns { display: flex; gap: 8px; }

/* ---------- 战绩 / 团灭 ---------- */
.coop-sum { position: fixed; z-index: 25; right: 14px; top: calc(110px + env(safe-area-inset-top, 0px)); width: min(340px, 92vw); padding: 10px 12px; cursor: pointer;
  background: linear-gradient(160deg, rgba(42,30,74,.97), rgba(16,10,32,.97)); border: 2px solid #ffd84a; box-shadow: 0 0 0 2px #0c0818, 0 12px 40px rgba(0,0,0,.55); animation: cqIn .35s; }
.coop-sum.out { animation: cqOut .5s forwards; }
.cs-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cs-head b { color: #ffd84a; font-size: 15px; } .cs-head small { margin-left: auto; color: #a89ad8; font-size: 11px; }
.cs-head img { width: 22px; height: 22px; image-rendering: pixelated; }
.cs-row { display: grid; grid-template-columns: 20px 76px 1fr auto; gap: 6px; align-items: center; font-size: 12px; color: #f0eaff; padding: 2px 0; }
.cs-row.me { color: #9ad8ff; }
.cs-rk { color: #ffd84a; text-align: center; }
.cs-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-bar { height: 8px; background: #1b1430; border: 1px solid #0c0818; }
.cs-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd84a, #ff9a4a); }
.cs-v { color: #c8b8ff; font-size: 11px; white-space: nowrap; }
.cs-foot { color: #8a80b0; font-size: 11px; margin-top: 6px; text-align: center; }
@media (max-width: 760px) { .coop-sum { right: 50%; transform: translateX(50%); top: auto; bottom: calc(240px + env(safe-area-inset-bottom, 0px)); } }
.coop-wipe { position: fixed; inset: 0; z-index: 63; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(90,0,20,.55), rgba(10,0,4,.85)); animation: cwIn .5s ease-out; }
.coop-wipe b { font-size: clamp(34px, 8vw, 64px); color: #ff5a6a; letter-spacing: 12px; text-shadow: 0 0 24px #ff2a3a, 0 4px 0 #2a0008; }
.coop-wipe span { color: #ffd0d6; }
.coop-wipe.out { animation: cwOut .6s forwards; }
@keyframes cwIn { from { opacity: 0; } } @keyframes cwOut { to { opacity: 0; } }

/* ---------- 传送过场（无 transition.js 时） ---------- */
.tp-veil { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: grid; place-items: center; opacity: 0;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--tc) 55%, #ffffff) 0%, color-mix(in srgb, var(--tc) 30%, #0a0618) 32%, #07040f 75%); transition: opacity .32s ease-out; }
.tp-veil.in { opacity: 1; }
.tp-veil.out { opacity: 0; transition: opacity .6s ease-in; }
.tp-veil .tp-rings { position: absolute; width: min(70vmin, 520px); aspect-ratio: 1; }
.tp-veil .tp-rings i { position: absolute; inset: 0; border-radius: 50%; border: 3px dashed color-mix(in srgb, var(--tc) 75%, #ffffff); animation: tpSpin 2.4s linear infinite; box-shadow: 0 0 24px var(--tc), inset 0 0 24px var(--tc); }
.tp-veil .tp-rings i:nth-child(2) { inset: 14%; border-style: dotted; animation-duration: 1.6s; animation-direction: reverse; border-width: 4px; }
.tp-veil .tp-rings i:nth-child(3) { inset: 30%; border: 2px solid #ffffff; animation-duration: 3s; box-shadow: 0 0 40px #ffffff, inset 0 0 30px var(--tc); }
.tp-veil.in .tp-rings { animation: tpZoom .9s cubic-bezier(.2,1.2,.4,1); }
@keyframes tpSpin { to { transform: rotate(360deg); } }
@keyframes tpZoom { from { transform: scale(.2) rotate(-90deg); opacity: 0; } }
.tp-veil .tp-core { position: absolute; width: 18vmin; height: 70vh; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); filter: blur(6px); animation: tpCore .8s ease-out; }
@keyframes tpCore { from { transform: scaleX(0); } }
.tp-veil .tp-txt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: cqIn .5s .1s both; }
.tp-veil .tp-txt b { font-size: clamp(22px, 5vw, 36px); color: #fff; letter-spacing: 6px; text-shadow: 0 0 18px var(--tc), 0 3px 0 rgba(0,0,0,.6); }
.tp-veil .tp-txt span { color: #f0eaff; font-size: 14px; text-shadow: 0 1px 0 #000; }

/* ---------- 好友窗口「我的世界」页 ---------- */
.cq-match { display: flex; align-items: center; gap: 10px; margin: 8px 0; border-color: #b48cff; }
.cq-match img { width: 28px; height: 28px; image-rendering: pixelated; }
.cq-mrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cq-acts { justify-content: flex-end; gap: 4px; }
.cq-acts .btn { display: inline-flex; align-items: center; gap: 3px; }
.cq-chip { display: inline-block; margin-left: 5px; padding: 0 4px; font-size: 10px; line-height: 15px; color: var(--cc); border: 1px solid var(--cc); vertical-align: 1px; }
.cq-pings { margin-top: 10px; }

/* ---------- 联机指南 ---------- */
.cg-body { padding-bottom: 20px; }
.cg-hero { position: relative; overflow: hidden; min-height: 170px; margin-bottom: 12px; border: 2px solid #5a4a8a; box-shadow: inset 0 0 0 2px #0c0818;
  background: radial-gradient(ellipse at 70% 0%, rgba(180,140,255,.45), transparent 60%), radial-gradient(ellipse at 10% 100%, rgba(90,209,255,.3), transparent 55%), linear-gradient(180deg, #1d1440, #0e0a20); }
.cg-stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 32% 60%, #c8b8ff, transparent), radial-gradient(1.5px 1.5px at 58% 26%, #fff, transparent), radial-gradient(1px 1px at 78% 70%, #8ad8ff, transparent), radial-gradient(1px 1px at 90% 30%, #fff, transparent), radial-gradient(1px 1px at 45% 85%, #ffd84a, transparent); animation: cgTw 4s ease-in-out infinite; }
@keyframes cgTw { 50% { opacity: .5; } }
.cg-scene { position: absolute; right: 2%; bottom: 0; display: flex; align-items: flex-end; gap: 6px; }
.cg-scene .cg-boss { height: 150px; image-rendering: pixelated; filter: drop-shadow(0 0 14px rgba(255,90,106,.6)); opacity: .9; margin-right: -30px; }
.cg-party { display: flex; align-items: flex-end; gap: 2px; padding-bottom: 6px; }
.cg-fig { image-rendering: pixelated; height: 64px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); animation: cgBob 1.8s ease-in-out infinite; }
.cg-fig:nth-child(2n) { animation-delay: -.6s; } .cg-fig:nth-child(3n) { animation-delay: -1.1s; }
.cg-fig.lead { filter: drop-shadow(0 0 6px rgba(255,216,74,.9)); }
.cg-fig.down { transform: rotate(-80deg) translateX(-10px); animation: none; filter: grayscale(.4) drop-shadow(0 0 6px #ff5a6a); }
@keyframes cgBob { 50% { transform: translateY(-3px); } }
.cg-party .cg-fig { height: 84px; }
.cg-ht { position: relative; padding: 18px 20px; max-width: 58%; display: flex; flex-direction: column; gap: 6px; }
.cg-ht b { font-size: clamp(24px, 4vw, 34px); color: #fff; letter-spacing: 4px; text-shadow: 0 0 16px rgba(180,140,255,.8), 0 3px 0 #0c0818; }
.cg-ht span { color: #d8ccff; line-height: 1.6; }
.cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-flow: dense; gap: 10px; }
.cg-card { display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(36,26,66,.92), rgba(18,12,36,.92)); border: 2px solid color-mix(in srgb, var(--gc) 55%, #2a1d44); box-shadow: inset 0 0 0 2px #0c0818; overflow: hidden; }
.cg-card.wide { grid-column: 1 / -1; }
.cg-ill { position: relative; min-height: 92px; display: grid; place-items: center; padding: 10px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--gc) 45%, transparent), transparent 70%), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px), #120c26;
  border-bottom: 2px solid color-mix(in srgb, var(--gc) 40%, #1b1426); }
.cg-ill img { image-rendering: pixelated; }
.cg-row { display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.cg-row .cg-fig { height: 54px; }
.cg-row > img:not(.cg-fig):not(.cg-boss) { width: 40px; height: 40px; }
.cg-row .cg-boss { height: 74px; }
.cg-plus { color: #7dff8a; font-size: 28px; text-shadow: 0 0 10px #2ec85a; align-self: center; }
.cg-txt { padding: 10px 12px 12px; }
.cg-t { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cg-t img { width: 20px; height: 20px; image-rendering: pixelated; }
.cg-t b { color: var(--gc); font-size: 16px; letter-spacing: 1px; }
.cg-tag { margin-left: auto; font-size: 11px; color: #1b1426; background: var(--gc); padding: 1px 6px; }
.cg-txt ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.cg-txt li { color: #e6deff; font-size: 13px; line-height: 1.65; }
.cg-txt li b { color: #fff; font-weight: normal; border-bottom: 1px solid color-mix(in srgb, var(--gc) 70%, transparent); }
.cg-tbl { border-collapse: collapse; font-size: 12px; color: #f0eaff; min-width: min(520px, 100%); }
.cg-tbl th, .cg-tbl td { padding: 4px 8px; border: 1px solid #3a2d63; text-align: center; }
.cg-tbl th { color: #ffd84a; background: rgba(255,216,74,.08); font-weight: normal; }
.cg-tbl td:first-child { text-align: left; color: #c8b8ff; }
.cg-tp { position: relative; width: 120px; height: 84px; display: grid; place-items: end center; }
.cg-tp .cg-beam { position: absolute; left: 50%; top: -10px; bottom: 6px; width: 26px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(138,216,255,.6), #fff, rgba(138,216,255,.6), transparent); animation: cgBeam 1.6s ease-in-out infinite; }
.cg-tp .cg-rune { position: absolute; left: 50%; bottom: 0; width: 90px; height: 26px; transform: translateX(-50%); border-radius: 50%; border: 2px dashed #8ad8ff; box-shadow: 0 0 14px #8ad8ff; animation: tpSpin 3s linear infinite; }
.cg-tp .cg-fig { position: relative; height: 56px; animation: cgFade 1.6s ease-in-out infinite; }
@keyframes cgBeam { 50% { opacity: .35; width: 14px; } }
@keyframes cgFade { 50% { opacity: .25; transform: translateY(-4px); } }
.cg-pings { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cg-pings span { color: var(--pc); border: 2px solid var(--pc); padding: 3px 8px; font-size: 12px; background: rgba(0,0,0,.25); animation: cgBob 2s ease-in-out infinite; }
.cg-pings span:nth-child(2n) { animation-delay: -1s; }
@media (max-width: 760px) {
  .cg-hero { min-height: 150px; }
  .cg-ht { max-width: 100%; padding: 12px; }
  .cg-scene { opacity: .45; }
  .cg-scene .cg-boss { height: 110px; }
  .cg-party .cg-fig { height: 56px; }
  .cg-grid { grid-template-columns: 1fr; }
  .cg-ill { overflow-x: auto; place-items: center start; }
}
.help-coop { display: flex; align-items: center; gap: 12px; margin-top: 10px; cursor: pointer; border-color: #ffd84a; }
.help-coop img { width: 40px; height: 40px; image-rendering: pixelated; }
.help-coop b { color: #ffd84a; font-size: 15px; }

/* ===================== 好友申请：说明文字 / 申请设置 ===================== */
.fr-box h3 { display: flex; align-items: center; gap: 6px; }
.fr-box h3 img { width: 22px; height: 22px; image-rendering: pixelated; }
.fr-field { position: relative; }
.fr-field .fr-in { width: 100%; padding-right: 56px; }
.fr-cnt { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #9a90c0; pointer-events: none; }
.fr-cnt.full { color: #ffd84a; }
.fr-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fr-quick .chip { cursor: pointer; font: inherit; font-size: 12px; border: 0; }
.fr-quick .chip:hover { filter: brightness(1.25); }
.fr-msg { margin-top: 3px; font-size: 12px; color: #ffd0ec; line-height: 1.4; word-break: break-all; }
.seg2.fr-seg { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .seg2.fr-seg { grid-template-columns: 1fr; } }
.fr-prefline { align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 8px; background: rgba(26,20,48,.6); box-shadow: inset 0 0 0 1px #3a2d63; font-size: 13px; }
.fr-prefline img { width: 18px; height: 18px; image-rendering: pixelated; }
.fr-prefline b { color: #ffd84a; font-weight: normal; }

/* ===================== 竞技场：VS 开场 / 倒计时 / 决斗 HUD / 结算（ui/arenafx.js） ===================== */
body.arena-on #hud .hud-quest, body.arena-on #hud .hud-boss, body.arena-on #hud .hud-event { display: none !important; }
.ar-intro { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr auto; align-items: center; gap: 0 2vw; padding: 5vh 4vw; overflow: hidden; cursor: pointer;
  background: #07040f; }
.ar-intro .ar-bg { position: absolute; inset: 0; pointer-events: none; }
.ar-half { position: absolute; top: 0; bottom: 0; width: 60%; transition: transform .55s cubic-bezier(.2,1,.3,1); }
.ar-half.l { left: 0; transform: translateX(-100%); background: linear-gradient(110deg, #0c2a4a 0%, #1d5a8a 55%, rgba(90,209,255,.25) 100%); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.ar-half.r { right: 0; transform: translateX(100%); background: linear-gradient(290deg, #4a0c1c 0%, #8a1d34 55%, rgba(255,90,106,.25) 100%); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.ar-intro.in .ar-half { transform: none; }
.ar-slash { position: absolute; left: 50%; top: -10%; bottom: -10%; width: 10px; transform: translateX(-50%) rotate(12deg) scaleY(0); background: linear-gradient(180deg, transparent, #fff 20%, #ffd84a 50%, #fff 80%, transparent); box-shadow: 0 0 30px #ffd84a, 0 0 80px #ff9a4a; transition: transform .25s .45s ease-out; }
.ar-intro.in .ar-slash { transform: translateX(-50%) rotate(12deg) scaleY(1); }
.ar-sparks { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 60%, #ffd84a, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #8ad8ff, transparent), radial-gradient(1.5px 1.5px at 85% 20%, #ff9ab0, transparent); animation: arTw 1.2s ease-in-out infinite; }
@keyframes arTw { 50% { opacity: .4; } }
.ar-kicker { grid-column: 1 / -1; position: relative; text-align: center; color: #ffe8a0; letter-spacing: 8px; font-size: clamp(13px, 2vw, 18px); text-shadow: 0 2px 0 #000; opacity: 0; transform: translateY(-14px); transition: all .4s .2s; }
.ar-intro.in .ar-kicker { opacity: 1; transform: none; }
.ar-side { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .6s cubic-bezier(.2,1.25,.4,1) .15s, opacity .4s .15s; opacity: 0; }
.ar-side.l { transform: translateX(-60vw); } .ar-side.r { transform: translateX(60vw); }
.ar-intro.in .ar-side { transform: none; opacity: 1; }
.ar-por { position: relative; width: clamp(110px, 18vw, 220px); aspect-ratio: 2 / 3; display: grid; place-items: end center; }
.ar-por img { position: relative; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0,0,0,.45)); }
.ar-side.r .ar-por img { transform: scaleX(-1); }
.ar-glow { position: absolute; inset: 10% -10% 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--ac) 70%, transparent), transparent 65%); filter: blur(6px); animation: arPulse 1.4s ease-in-out infinite; }
@keyframes arPulse { 50% { opacity: .55; transform: scale(.95); } }
.ar-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 8px 14px; min-width: min(260px, 38vw); background: rgba(8,4,18,.72); border: 2px solid var(--ac); box-shadow: 0 0 0 2px #000, 0 0 20px color-mix(in srgb, var(--ac) 45%, transparent); }
.ar-nm { font-size: clamp(18px, 2.8vw, 28px); color: #fff; letter-spacing: 2px; text-shadow: 0 2px 0 #000, 0 0 12px var(--ac); display: flex; align-items: center; gap: 6px; }
.ar-nm em { font-style: normal; font-size: 11px; color: #1b1426; background: #c8b8ff; padding: 1px 5px; letter-spacing: 0; text-shadow: none; }
.ar-sub { color: #d8ccff; font-size: 13px; }
.ar-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ar-chips span { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #c8b8ff; padding: 2px 6px; background: rgba(255,255,255,.06); }
.ar-chips b { color: #ffd84a; font-weight: normal; }
.ar-chips img { width: 14px; height: 14px; image-rendering: pixelated; }
.ar-vs { position: relative; display: flex; gap: 2px; opacity: 0; transform: scale(3); }
.ar-vs b { font-size: clamp(54px, 10vw, 120px); line-height: 1; color: #ffd84a; font-style: italic; text-shadow: 0 4px 0 #8a4a00, 0 0 24px #ff9a4a, 0 0 60px #ff5a2a; -webkit-text-stroke: 2px #2a1000; }
.ar-vs b:last-child { margin-top: .25em; color: #fff2a0; }
.ar-intro.vs .ar-vs { animation: arSlam .45s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes arSlam { 0% { opacity: 0; transform: scale(3) rotate(-8deg); } 60% { opacity: 1; transform: scale(.9) rotate(2deg); } 100% { opacity: 1; transform: scale(1); } }
.ar-stakes { grid-column: 1 / -1; position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; opacity: 0; transform: translateY(16px); transition: all .4s .9s; }
.ar-intro.in .ar-stakes { opacity: 1; transform: none; }
.ar-st { font-size: 13px; padding: 5px 10px; background: rgba(8,4,18,.8); border: 1px solid #3a2d63; color: #e0d8ff; }
.ar-st.st-win { color: #7dff8a; border-color: #2e7a3a; } .ar-st.st-lose { color: #ff8a9a; border-color: #7a2e3a; } .ar-st.train { color: #c8b8ff; } .ar-st.left { color: #ffd84a; } .ar-st.rule { color: #9a90c0; }
.ar-skip { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.4); }
.ar-intro.out { animation: arOut .42s ease-in forwards; }
@keyframes arOut { to { opacity: 0; transform: scale(1.06); } }
@media (orientation: portrait) and (max-width: 760px) {
  .ar-intro { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto 1fr auto; gap: 1.2vh; padding: 6vh 5vw 4vh; }
  .ar-side { flex-direction: row; gap: 12px; }
  .ar-side.r { flex-direction: row-reverse; }
  .ar-por { width: 30vw; }
  .ar-meta { min-width: 0; flex: 1; }
  .ar-vs { justify-self: center; }
  .ar-vs b { font-size: 64px; }
  .ar-half { width: 100%; height: 60%; }
  .ar-half.l { top: 0; bottom: auto; clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%); }
  .ar-half.r { top: auto; bottom: 0; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%); }
  .ar-slash { transform: translateX(-50%) rotate(78deg) scaleY(0); }
  .ar-intro.in .ar-slash { transform: translateX(-50%) rotate(78deg) scaleY(1); }
}
@media (orientation: landscape) and (max-height: 480px) {
  .ar-intro { padding: 3vh 4vw; }
  .ar-por { width: 18vh; }
  .ar-meta { padding: 4px 10px; }
  .ar-nm { font-size: 18px; }
  .ar-vs b { font-size: 56px; }
  .ar-st { font-size: 11px; padding: 3px 8px; }
}
/* 倒计时 */
.ar-count { position: fixed; inset: 0; z-index: 89; display: grid; place-items: center; pointer-events: none; background: radial-gradient(ellipse at center, transparent 30%, rgba(8,4,18,.55)); }
.ar-num, .ar-go { font-size: clamp(90px, 18vw, 180px); line-height: 1; color: #fff; text-shadow: 0 6px 0 #3a2d63, 0 0 30px #b48cff; animation: arNum .62s ease-out forwards; }
.ar-go { font-size: clamp(54px, 11vw, 120px); color: #ffd84a; text-shadow: 0 6px 0 #8a4a00, 0 0 40px #ff9a4a; letter-spacing: 6px; animation: arGo .8s ease-out forwards; }
@keyframes arNum { 0% { transform: scale(2.4); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(.7); opacity: 0; } }
@keyframes arGo { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.15); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
/* 决斗 HUD */
.ar-hud { position: fixed; z-index: 20; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); opacity: 0; transition: all .35s; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: min(760px, 62vw); pointer-events: none; }
.ar-hud.in { transform: translate(-50%, 0); opacity: 1; }
.ar-hud.out { opacity: 0; }
.ar-hb { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: linear-gradient(180deg, rgba(20,14,38,.92), rgba(12,8,26,.88)); border: 2px solid color-mix(in srgb, var(--ac) 70%, #1b1426); box-shadow: 0 0 0 2px #000; min-width: 0; }
.ar-hb.r { flex-direction: row-reverse; text-align: right; }
.ar-hb-av { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; flex: none; background: rgba(255,255,255,.06); }
.ar-hb.r .ar-hb-av { transform: scaleX(-1); }
.ar-hb-col { flex: 1; min-width: 0; }
.ar-hb-nm { display: flex; align-items: baseline; gap: 6px; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; }
.ar-hb.r .ar-hb-nm { flex-direction: row-reverse; }
.ar-hb-nm span { overflow: hidden; text-overflow: ellipsis; }
.ar-hb-nm small { color: #c8b8ff; font-size: 11px; flex: none; }
.ar-hp { position: relative; height: 12px; margin-top: 4px; background: #1a0f2a; border: 1px solid #000; overflow: hidden; }
.ar-hp i { position: absolute; top: 0; bottom: 0; left: 0; }
.ar-hb.r .ar-hp i { left: auto; right: 0; }
.ar-hp-lag { background: #fff; opacity: .55; }
.ar-hp-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 60%, #fff), var(--ac)); }
.ar-hb.l .ar-hp-fill { background: linear-gradient(180deg, #a8ffb8, #2ec85a); }
.ar-hb.r .ar-hp-fill { background: linear-gradient(180deg, #ff9aa8, #d22a44); }
.ar-hb.low .ar-hp-fill { animation: arLow .5s steps(2) infinite; }
@keyframes arLow { 50% { filter: brightness(1.6); } }
.ar-hp b { position: absolute; inset: 0; font-size: 9px; line-height: 12px; text-align: center; color: #fff; font-weight: normal; text-shadow: 0 1px 0 #000; }
.ar-timer { position: relative; width: 62px; height: 62px; display: grid; place-items: center; }
.ar-timer .ar-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ffd84a calc(var(--k, 1) * 360deg), rgba(255,255,255,.08) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }
.ar-timer::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle, #2a1d4a, #120c26); border: 2px solid #000; }
.ar-time { position: relative; font-size: 24px; color: #fff; text-shadow: 0 2px 0 #000; line-height: 1; }
.ar-timer small { position: absolute; bottom: -14px; font-size: 10px; color: #ffd84a; letter-spacing: 2px; }
.ar-hud.hurry .ar-time { color: #ff5a6a; animation: arLow .5s steps(2) infinite; }
.ar-hud.hurry .ar-ring { background: conic-gradient(#ff5a6a calc(var(--k, 1) * 360deg), rgba(255,255,255,.08) 0); }
@media (max-width: 760px) {
  .ar-hud { width: 96vw; top: calc(96px + env(safe-area-inset-top, 0px)); gap: 6px; }
  .ar-hb { padding: 4px 5px; gap: 5px; }
  .ar-hb-av { width: 24px; height: 24px; }
  .ar-hb-nm { font-size: 12px; }
  .ar-timer { width: 48px; height: 48px; }
  .ar-time { font-size: 18px; }
}
@media (orientation: landscape) and (max-height: 480px) { .ar-hud { top: calc(58px + env(safe-area-inset-top, 0px)); width: min(520px, 56vw); } .ar-timer { width: 44px; height: 44px; } .ar-time { font-size: 16px; } }
/* 结算 */
.ar-result { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 14px; padding: 4vh 4vw; overflow: auto; opacity: 0; transition: opacity .35s;
  background: radial-gradient(ellipse at 50% 35%, rgba(90,60,10,.6), rgba(8,4,18,.94) 70%); }
.ar-result.ar-defeat { background: radial-gradient(ellipse at 50% 35%, rgba(80,10,24,.6), rgba(8,4,18,.95) 70%); }
.ar-result.in { opacity: 1; } .ar-result.out { opacity: 0; }
.ar-rays { position: fixed; left: 50%; top: 32%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%); pointer-events: none; background: repeating-conic-gradient(rgba(255,216,74,.12) 0 8deg, transparent 8deg 20deg); animation: arSpin 24s linear infinite; -webkit-mask: radial-gradient(circle, #000 0, transparent 45%); mask: radial-gradient(circle, #000 0, transparent 45%); }
.ar-result.ar-defeat .ar-rays { background: repeating-conic-gradient(rgba(255,90,106,.07) 0 8deg, transparent 8deg 20deg); }
@keyframes arSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ar-rs-title { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ar-rs-title b { font-size: clamp(54px, 11vw, 104px); line-height: 1; letter-spacing: 14px; color: #ffd84a; text-shadow: 0 5px 0 #8a4a00, 0 0 36px #ff9a4a; animation: arSlam .55s cubic-bezier(.3,1.6,.5,1) both; }
.ar-result.ar-defeat .ar-rs-title b { color: #ff5a6a; text-shadow: 0 5px 0 #4a0010, 0 0 30px #ff2a3a; }
.ar-rs-title span { color: #f0e8ff; font-size: 14px; letter-spacing: 2px; }
.ar-rs-duo { position: relative; display: flex; align-items: flex-end; gap: clamp(16px, 5vw, 60px); }
.ar-rs-p { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 14px; }
.ar-rs-p img { width: clamp(70px, 11vw, 120px); image-rendering: pixelated; }
.ar-rs-p.down { opacity: .55; filter: grayscale(.8); transform: translateY(10px); }
.ar-rs-p.top img { filter: drop-shadow(0 0 12px rgba(255,216,74,.8)); }
.ar-crown { position: absolute; top: -26px; font-style: normal; font-size: 28px; color: #ffd84a; text-shadow: 0 0 12px #ffd84a; animation: cgBob 1.4s ease-in-out infinite; }
.ar-rs-vs { color: #c8b8ff; font-size: 22px; font-style: italic; align-self: center; }
.ar-rs-stats { position: relative; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ar-stat { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 8px 10px; background: rgba(20,14,38,.85); border: 2px solid #3a2d63; }
.ar-stat img { width: 20px; height: 20px; image-rendering: pixelated; }
.ar-stat b { color: #fff; font-size: 18px; font-weight: normal; }
.ar-stat small { color: #9a90c0; font-size: 11px; }
.ar-rs-score-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(20,14,38,.9); border: 2px solid #ffd84a; color: #e0d8ff; }
.ar-rs-score-row img { width: 22px; height: 22px; image-rendering: pixelated; }
.ar-rs-score { font-size: 26px; color: #fff; font-weight: normal; min-width: 64px; text-align: center; }
.ar-rs-score-row em { font-style: normal; font-size: 18px; } .ar-rs-score-row em.up { color: #7dff8a; } .ar-rs-score-row em.dn { color: #ff7a8a; }
.ar-rs-rew { position: relative; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; color: #ffcf8a; font-size: 14px; }
.ar-rs-rew span { display: inline-flex; align-items: center; gap: 4px; }
.ar-rs-rew img { width: 20px; height: 20px; image-rendering: pixelated; }
.ar-rs-btns { position: relative; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.ar-rs-btns .btn { display: inline-flex; align-items: center; gap: 6px; min-width: 140px; justify-content: center; }
@media (orientation: landscape) and (max-height: 480px) {
  .ar-result { gap: 6px; padding: 2vh 4vw; }
  .ar-rs-title b { font-size: 40px; letter-spacing: 10px; }
  .ar-rs-title span { font-size: 12px; }
  .ar-rs-p img { width: 44px; }
  .ar-crown { top: -20px; font-size: 20px; }
  .ar-rs-score-row { padding: 4px 12px; }
  .ar-rs-score { font-size: 20px; }
  .ar-rs-btns .btn { min-width: 120px; }
  .ar-stat { min-width: 76px; padding: 4px 8px; }
  .ar-stat b { font-size: 15px; }
}
.fr-bulk { gap: 6px; margin: 4px 0 8px; align-items: center; }
