/* ============ 怪盗 JRPG 风格（红 / 黑 / 白 · 网点 · 勒索信字 · 锯齿斜切）============ */
.screen.p3 { background: #0a0a0a; }
.screen.p3::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5; background-image: radial-gradient(rgba(230,0,18,.22) 1.2px, transparent 1.6px); background-size: 9px 9px; mask-image: linear-gradient(90deg, #000 0, transparent 28%, transparent 72%, #000 100%); -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 28%, transparent 72%, #000 100%); }
.screen.p3::after { background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(60,0,6,.6) 100%); }

/* 勒索信字 */
.ransom { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; line-height: 1; }
.ransom em { display: inline-block; font-style: normal; font-weight: 900; padding: .08em .14em .04em; box-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.ransom .sp { width: .35em; }

/* 顶栏标题 */
.p3-top { padding: 12px 14px; }
.p3-back { background: #fff; box-shadow: 4px 4px 0 #e60012; clip-path: polygon(0 8%, 100% 0, 92% 100%, 6% 92%); }
.p3-back:hover { background: #e60012; transform: rotate(-6deg) scale(1.05); }
.p3-title { transform: rotate(-4deg); padding: 6px 14px 6px 10px; }
.p3-title::before { left: -10px; right: -24px; top: 2px; bottom: 2px; height: auto; background: #000; clip-path: polygon(0 12%, 100% 0, 96% 88%, 3% 100%); box-shadow: none; opacity: 1; border: none; }
.p3-title::after { content: ''; position: absolute; left: -16px; right: -32px; top: -4px; bottom: -6px; background: #e60012; z-index: -2; clip-path: polygon(2% 20%, 100% 4%, 94% 100%, 0 86%); }
.p3-title b { font-size: 34px; font-style: italic; text-shadow: 3px 3px 0 #e60012; letter-spacing: .04em; }
.p3-title span { color: #fff; font-size: 14px; }

/* 日期 */
.p3-date { transform: rotate(4deg); }
.pdt-d { background: #fff; color: #000; box-shadow: 5px 5px 0 #000, 8px 8px 0 #e60012; clip-path: polygon(4% 0, 100% 10%, 96% 100%, 0 90%); padding: 4px 18px 4px; }
.pdt-d b { font-size: 36px; } .pdt-d i { color: #e60012; font-size: 18px; }
.pdt-m { color: #fff; } .pdt-m span { background: #e60012; padding: 0 8px; transform: skewX(-12deg); }

/* 右侧指令菜单：黑底白字，悬停反转成红底并抖一下 */
.p3-menu { gap: 3px; top: 96px; padding-right: 6px; }
.p3-item { background: #000; border-left: none; color: #fff; clip-path: polygon(6% 0, 100% 6%, 97% 100%, 0 92%); transform: translateX(calc(var(--i) * 4px)) rotate(-2deg); min-width: 176px; height: 40px; box-shadow: none; }
.p3-item:nth-child(even) { transform: translateX(calc(var(--i) * 4px)) rotate(1.5deg); }
.p3-item b { font-size: 17px; font-weight: 900; letter-spacing: .1em; }
.p3-item:hover, .p3-item:focus-visible { background: #e60012; color: #fff; transform: translateX(-16px) rotate(-5deg) scale(1.06); animation: jitter .25s steps(2) 1; }
.p3-item:hover b { text-shadow: 2px 2px 0 #000; }
.p3-item em { color: #e60012; } .p3-item:hover em { color: #fff; }
@keyframes jitter { 50% { translate: 2px -2px; } }

/* 状态卡 */
.ps-card { background: #fff; color: #000; box-shadow: 6px 6px 0 #000, 10px 10px 0 #e60012; border-left: 8px solid #e60012; clip-path: polygon(0 4%, 97% 0, 100% 96%, 2% 100%); }
.ps-por { background: radial-gradient(circle at 50% 40%, #fff, #ffd6da); }
.ps-bar div { background: #eee; } .ps-sub, .ps-skill { color: #444; } .ps-skill b { color: #e60012; }
.ps-ren { background: #000; color: #fff; } .ps-ren:hover { background: #e60012; }

/* 对话框：白色锯齿气泡 + 红色名牌 */
.p3-dialog { width: min(640px, 72vw); }
.pd-name { background: #e60012; color: #fff; font-size: 16px; padding: 3px 22px; transform: rotate(-3deg); margin-left: 30px; clip-path: polygon(0 0, 100% 10%, 94% 100%, 4% 90%); }
.pd-text { background: #fff; color: #000; border: 3px solid #000; box-shadow: 6px 6px 0 #000; clip-path: polygon(0 6%, 99% 0, 100% 92%, 2% 100%); font-weight: 700; }
.hm-hint { background: #000; color: #fff; border: 1px solid #e60012; }

/* 气泡 */
.hm-bub { box-shadow: 3px 3px 0 #000; border: 2px solid #000; }
.hm-bub::after { border-top-color: #000; }

/* 弹窗 */
.modal.p3m { background: #0a0a0a !important; color: #fff !important; border: 3px solid #fff !important; border-radius: 0; clip-path: polygon(0 2%, 98% 0, 100% 97%, 2% 100%); box-shadow: 12px 12px 0 #e60012 !important; background-image: radial-gradient(rgba(230,0,18,.18) 1.2px, transparent 1.6px) !important; background-size: 10px 10px !important; }
.modal.p3m .btn { background: #fff; color: #000; box-shadow: 4px 4px 0 #e60012; clip-path: polygon(4% 0, 100% 8%, 96% 100%, 0 92%); }
.modal.p3m .btn:hover { background: #e60012; color: #fff; box-shadow: 4px 4px 0 #fff; }
.modal.p3m .btn.ghost { background: #000; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.p3-mh { transform: rotate(-3deg); }
.p3-mh::before { background: #e60012; height: 16px; }
.p3-mh b { text-shadow: 3px 3px 0 #e60012, 5px 5px 0 #000; }
.modal-bg:has(.p3m) { background: rgba(0,0,0,.6); backdrop-filter: blur(3px) saturate(.6); }

/* 家具名牌 + 调查菜单 */
.hs-tag { position: absolute; z-index: 11; pointer-events: none; display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: rotate(-4deg) translateY(6px); transition: .12s; }
.hs-tag.show { opacity: 1; transform: rotate(-4deg); }
.hs-tag b { background: #e60012; color: #fff; font-size: 18px; font-weight: 900; padding: 2px 14px; clip-path: polygon(0 0, 100% 10%, 95% 100%, 4% 90%); align-self: flex-start; }
.hs-tag i { background: #000; color: #fff; font-style: normal; font-size: 13px; font-weight: 700; padding: 2px 10px; display: flex; align-items: center; gap: 4px; }
.hs-tag i .emo { width: 16px; height: 16px; }
.hs-pop { position: absolute; z-index: 13; display: none; flex-direction: column; gap: 4px; min-width: 190px; }
.hs-pop.show { display: flex; animation: popBig .25s cubic-bezier(.2,1.6,.4,1); }
.hp-t { align-self: flex-start; background: #fff; color: #000; font-weight: 900; font-size: 18px; padding: 2px 16px; transform: rotate(-4deg); box-shadow: 3px 3px 0 #e60012; }
.hp-b { display: flex; align-items: center; gap: 8px; background: #000; color: #fff; padding: 8px 18px; font-size: 16px; font-weight: 800; clip-path: polygon(4% 0, 100% 8%, 96% 100%, 0 92%); transition: .12s; transform: rotate(calc(var(--i, 0) * 1.5deg - 1deg)); }
.hp-b .emo { width: 22px; height: 22px; }
.hp-b:hover { background: #e60012; transform: translateX(8px) rotate(-3deg); }
.hp-x { background: #333; font-size: 13px; padding: 4px 18px; }

/* 活动结果卡 */
.act-card { position: fixed; right: 18px; top: 92px; z-index: 2600; width: 300px; background: #fff; color: #000; padding: 12px 16px 14px; clip-path: polygon(0 3%, 100% 0, 97% 100%, 3% 96%); box-shadow: 8px 8px 0 #000; border-left: 8px solid #e60012; animation: acIn .4s cubic-bezier(.2,1.5,.4,1); pointer-events: none; }
.act-card.out { animation: acOut .4s forwards; }
.ac-head { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; transform: rotate(-2deg); } .ac-head .emo { width: 32px; height: 32px; }
.ac-note { font-size: 14px; color: #555; margin: 2px 0 6px; }
.ac-g { display: flex; align-items: center; gap: 6px; margin-top: 4px; background: #000; color: #fff; padding: 4px 10px; font-weight: 800; transform: skewX(-8deg); }
.ac-g .emo { width: 20px; height: 20px; } .ac-g i { color: var(--c); font-style: normal; letter-spacing: -2px; } .ac-g b { margin-left: auto; color: var(--c); font-size: 18px; }
@keyframes acIn { from { transform: translateX(120%) rotate(8deg); } }
@keyframes acOut { to { transform: translateX(120%) rotate(8deg); opacity: 0; } }
.rank-up { position: fixed; inset: 0; z-index: 2700; display: grid; place-items: center; background: rgba(0,0,0,.55); animation: fadeIn .2s; }
.rank-up.out { animation: fadeOut .4s forwards; }
.ru-burst { position: absolute; width: 140vmax; height: 140vmax; background: repeating-conic-gradient(#e60012 0 10deg, #000 10deg 20deg); animation: spin 6s linear infinite; opacity: .55; }
.ru-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; color: #000; padding: 26px 46px; clip-path: polygon(0 6%, 100% 0, 96% 100%, 4% 94%); box-shadow: 12px 12px 0 #000; transform: rotate(-3deg); animation: popBig .5s cubic-bezier(.2,1.6,.4,1); }
.ru-in .ransom { font-size: 40px; } .ru-ic { width: 72px; height: 72px; }
.ru-r { font-size: 22px; font-weight: 900; color: var(--c); text-shadow: 2px 2px 0 #000; } .ru-p { font-size: 15px; font-weight: 700; background: #000; color: #fff; padding: 4px 14px; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }

/* 天亮日历 */
.p5-cal { position: fixed; inset: 0; z-index: 2800; overflow: hidden; display: grid; place-items: center; animation: fadeIn .3s; }
.p5-cal.out { animation: fadeOut .5s forwards; }
.pc-bg { position: absolute; inset: 0; background: #000; }
.pc-strip { position: absolute; left: -10%; right: -10%; top: 38%; height: 26%; background: #e60012; transform: rotate(-8deg); animation: stripIn .5s cubic-bezier(.2,1.4,.4,1); }
.pc-date { position: relative; display: flex; align-items: flex-end; gap: 10px; color: #fff; transform: rotate(-8deg); }
.pc-date b { font: 900 italic 120px/1 'Fredoka', sans-serif; text-shadow: 6px 6px 0 #000; } .pc-date i { font: 900 italic 40px 'Fredoka'; color: #000; background: #fff; padding: 0 10px; margin-bottom: 14px; }
.pc-tod { position: absolute; top: 66%; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 34px; font-weight: 900; color: #fff; height: 46px; overflow: hidden; }
.pc-tod span { display: block; height: 46px; transition: transform .5s cubic-bezier(.2,1.4,.4,1); }
.p5-cal.flip .pc-tod span { transform: translateY(-46px); } .pc-tod .t1 { color: #ffd23f; }
.pc-msg { position: absolute; bottom: 14%; color: #fff; font-size: 18px; letter-spacing: .3em; }
@keyframes stripIn { from { transform: rotate(-8deg) translateX(-110%); } }

/* 书 */
.book-card { position: fixed; left: 50%; top: 18%; z-index: 2600; width: min(520px, 86vw); transform: translateX(-50%) rotate(-1.5deg); background: #fffaf0; color: #222; padding: 18px 24px; border: 3px solid #000; box-shadow: 8px 8px 0 #e60012; animation: popBig .35s; pointer-events: none; }
.book-card.out { animation: fadeOut .4s forwards; }
.bk-t { font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 6px; } .bk-t .emo { width: 28px; height: 28px; } .bk-x { font-size: 18px; line-height: 1.7; margin-top: 6px; }

/* 测验面板 */
.p5q .p5-qhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; } .p5q .p5-qhead .ransom { font-size: 28px; transform: rotate(-3deg); }
.p5q .p5-qhead small { color: #ddd; }
.p5-qdots { margin-left: auto; display: flex; gap: 6px; } .p5-qdots i { width: 16px; height: 16px; background: #333; transform: rotate(45deg); } .p5-qdots i.cur { background: #fff; } .p5-qdots i.ok { background: #3ccf7e; } .p5-qdots i.no { background: #e60012; }
.p3m .qpanel { background: #fff; color: #000; border-radius: 0; clip-path: polygon(0 4%, 100% 0, 99% 96%, 1% 100%); box-shadow: none; }
.p3m .choice { background: #fff; color: #000; border: 3px solid #000 !important; border-radius: 0; clip-path: polygon(3% 0, 100% 4%, 97% 100%, 0 96%); box-shadow: 4px 4px 0 #e60012 !important; }
.p3m .choice:hover { background: #ffe6e8; }

/* 人格能力 */
.soc-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }
.soc-radar { width: 260px; height: 260px; }
.soc-list { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 8px; }
.soc-row { display: flex; gap: 10px; align-items: center; background: #fff; color: #000; padding: 6px 12px; clip-path: polygon(0 0, 100% 6%, 98% 100%, 1% 94%); border-left: 6px solid var(--c); }
.soc-row > .emo { width: 32px; height: 32px; } .sr-m { flex: 1; min-width: 0; }
.sr-h { display: flex; justify-content: space-between; } .sr-h b { font-size: 17px; } .sr-h span { font-weight: 800; color: #e60012; font-size: 13px; }
.sr-bar { height: 8px; background: #ddd; transform: skewX(-20deg); margin: 3px 0; } .sr-bar i { display: block; height: 100%; background: var(--c); }
.soc-row small { font-size: 12px; color: #555; }

/* ============ 羁绊 ============ */
.bd-notes { position: fixed; left: 50%; top: 34%; z-index: 3100; transform: translateX(-50%); font: 900 60px 'Fredoka'; color: #ff5fa8; text-shadow: 3px 3px 0 #000; pointer-events: none; animation: notes 1.8s forwards; display: flex; flex-direction: column; align-items: center; }
.bd-notes small { font: 800 18px var(--font); color: #fff; background: #000; padding: 2px 12px; }
.bd-notes.bad { color: #6a6a8a; } .bd-notes.ok { color: #ffd23f; }
@keyframes notes { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px); } }
.bd-card { position: relative; width: 150px; height: 230px; background: linear-gradient(160deg, #fff, #f2e6d8); border: 4px solid #000; outline: 3px solid var(--c); outline-offset: -12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #000; box-shadow: 6px 6px 0 #000; transform: rotate(-3deg); }
.bd-card .bc-num { position: absolute; top: 14px; font: 900 22px 'Fredoka'; } .bd-card .bc-ic { width: 64px; height: 64px; }
.bd-card .bc-name { font-size: 20px; font-weight: 900; } .bd-card .bc-who { font-size: 12px; background: #000; color: #fff; padding: 0 8px; }
.bd-card.mini { width: 74px; height: 112px; flex: none; border-width: 3px; outline-offset: -7px; transform: rotate(-2deg); box-shadow: 3px 3px 0 #000; }
.bd-card.mini .bc-num { top: 6px; font-size: 13px; } .bd-card.mini .bc-ic { width: 30px; height: 30px; } .bd-card.mini .bc-name { font-size: 12px; } .bd-card.mini .bc-who { display: none; }
.bd-card.q { display: grid; place-items: center; font: 900 40px 'Fredoka'; color: #999; background: #222; }
.bd-rank { position: fixed; inset: 0; z-index: 3200; display: grid; place-items: center; cursor: pointer; }
.bd-rank.out { animation: fadeOut .35s forwards; }
.br-bg { position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 50%, #e60012 0 8deg, #0a0a0a 8deg 16deg); animation: spin 10s linear infinite; }
.br-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: popBig .5s cubic-bezier(.2,1.6,.4,1); }
.br-in .bd-card { animation: cardSpin .9s cubic-bezier(.2,1.2,.4,1); }
.br-t .ransom { font-size: 46px; } .br-l { background: #fff; color: #000; font-size: 20px; font-weight: 900; padding: 6px 20px; transform: rotate(-2deg); box-shadow: 5px 5px 0 #000; }
.br-p { background: #000; color: #ffd23f; font-weight: 800; padding: 6px 16px; display: flex; align-items: center; gap: 6px; } .br-p .emo { width: 22px; height: 22px; }
.br-tap { color: #fff; font-size: 13px; opacity: .8; }
@keyframes cardSpin { from { transform: rotateY(540deg) scale(.3); } }
.bd-scene { position: fixed; inset: 0; z-index: 2900; overflow: hidden; opacity: 0; transition: opacity .3s; }
.bd-scene.in { opacity: 1; } .bd-scene.out { opacity: 0; }
.bs-bg { position: absolute; inset: 0; background: linear-gradient(115deg, #0a0a0a 0 46%, var(--c) 46% 52%, #e60012 52%); }
.bs-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.35) 1.5px, transparent 2px); background-size: 10px 10px; }
.bs-por { position: absolute; left: 4%; bottom: 0; width: min(46vw, 520px); height: 86%; display: flex; align-items: flex-end; justify-content: center; animation: porIn .5s cubic-bezier(.2,1.3,.4,1); }
.bs-por img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(10px 0 0 #000); }
.bs-card { position: absolute; right: 6%; top: 8%; animation: cardSpin .8s; }
.bs-box { position: absolute; left: 50%; bottom: 5%; width: min(760px, 90vw); transform: translateX(-50%); }
.bs-name { display: inline-flex; align-items: baseline; gap: 10px; background: #000; color: #fff; font-size: 22px; font-weight: 900; padding: 4px 22px; transform: rotate(-3deg); margin-left: 24px; box-shadow: 4px 4px 0 var(--c); }
.bs-name small { font-size: 13px; color: var(--c); }
.bs-text { background: #fff; color: #000; font-size: 22px; font-weight: 800; line-height: 1.55; min-height: 96px; padding: 18px 28px; border: 4px solid #000; clip-path: polygon(0 8%, 100% 0, 98% 100%, 2% 92%); box-shadow: 8px 8px 0 #000; }
.bs-opts { position: absolute; right: 6%; bottom: 30%; display: none; flex-direction: column; gap: 10px; align-items: flex-end; }
.bs-opts.show { display: flex; }
.bs-o { background: #000; color: #fff; font-size: 19px; font-weight: 800; padding: 12px 28px; border: 3px solid #fff; clip-path: polygon(4% 0, 100% 10%, 96% 100%, 0 88%); transform: rotate(calc(var(--i) * 2deg - 2deg)); animation: optIn .35s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i) * 70ms); transition: background .12s, transform .12s; }
.bs-o:hover { background: #e60012; transform: translateX(-12px) rotate(-3deg) scale(1.05); }
@keyframes porIn { from { transform: translateX(-60px); opacity: 0; } }
@keyframes optIn { from { transform: translateX(120%); } }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.bd-item { display: flex; gap: 12px; background: #fff; color: #000; padding: 10px; clip-path: polygon(0 0, 100% 3%, 98% 100%, 1% 97%); border-left: 6px solid var(--c); }
.bd-item.focus { box-shadow: inset 0 0 0 3px #e60012; } .bd-item.lock { opacity: .6; background: #222; color: #aaa; }
.bi-m { flex: 1; min-width: 0; } .bi-m b { font-size: 18px; } .bi-m b i { font-style: normal; background: #e60012; color: #fff; font-size: 13px; padding: 0 6px; margin-left: 4px; }
.bi-bar { height: 7px; background: #ddd; margin: 4px 0; transform: skewX(-20deg); } .bi-bar i { display: block; height: 100%; background: var(--c); }
.bi-likes { font-size: 12px; color: #555; } .bi-likes .emo { width: 16px; height: 16px; vertical-align: -3px; }
.bd-item ul { list-style: none; margin: 4px 0; padding: 0; font-size: 12px; } .bd-item li { color: #aaa; } .bd-item li.on { color: #000; font-weight: 700; } .bd-item li em { display: inline-block; width: 20px; font-style: normal; color: #e60012; font-weight: 900; }
.bd-item small { color: #777; font-size: 12px; }

/* ============ 探索：人物名牌 ============ */
.ex-ent { position: absolute; left: 0; top: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; cursor: pointer; pointer-events: auto; }
.ex-ent b { background: #fff; color: #000; font-size: 14px; padding: 1px 10px; clip-path: polygon(6% 0, 100% 10%, 94% 100%, 0 90%); }
.ex-ent i { font-style: normal; font-size: 11px; background: #000; color: #fff; padding: 0 8px; }
.ex-ent em { position: absolute; top: -26px; font: 900 24px 'Fredoka'; color: #ffd23f; text-shadow: 2px 2px 0 #000; animation: markBob 1s infinite; font-style: normal; }
.ex-ent.shadow b { background: #e60012; color: #fff; } .ex-ent.shadow.alert b::before { content: '！'; }
.ex-ent.shadow.alert { animation: jitter .2s steps(2) infinite; }
.ex-act { background: #fff; color: #000; box-shadow: 6px 6px 0 #000; clip-path: polygon(4% 0, 100% 10%, 96% 100%, 0 90%); }
.ex-act small { color: #e60012; } .ex-act.danger { background: #e60012; color: #fff; } .ex-act.danger small { color: #fff; }
@keyframes actPulse { 50% { box-shadow: 6px 6px 0 #000, 0 0 26px rgba(230,0,18,.8); } }
.ex-mark i { background: #fff; box-shadow: 3px 3px 0 #000; } .ex-mark.near i { background: #e60012; box-shadow: 0 0 0 4px #000, 0 0 24px #e60012; }
.ex-mark b { background: #000; } .ex-help { background: #000; border: 1px solid #e60012; }
.ex-card { box-shadow: 0 0 0 3px #000, 6px 6px 0 #e60012; }

/* 进入战斗的转场 */
.p5-wipe { position: fixed; inset: -20%; z-index: 5000; pointer-events: none; background: repeating-linear-gradient(-30deg, #e60012 0 60px, #000 60px 120px); animation: wipe .65s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes wipe { 0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } 60% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } 100% { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }

/* ============ 暗影战 ============ */
.b5 { overflow: hidden; }
.b5 .b5-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.b5 .b5-3d { position: absolute; inset: 0; z-index: 2; }
.b5 .b5-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.b5.shake .b5-3d, .b5.shake .b5-bg { animation: bshake .3s; }
@keyframes bshake { 20% { transform: translate(-8px, 4px); } 40% { transform: translate(7px, -5px); } 60% { transform: translate(-5px, 3px); } 80% { transform: translate(3px, -2px); } }
.b5-lab, .b5-fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.b5-fx { z-index: 20; }
.b5-flab { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; flex-direction: column; align-items: center; translate: -50% -100%; }
.b5-flab b { background: #000; color: #fff; font-size: 13px; padding: 1px 10px; border: 1px solid #e60012; }
.fl-hp { width: 90px; height: 7px; background: #330006; border: 1px solid #000; margin-top: 2px; transform: skewX(-20deg); } .fl-hp i { display: block; height: 100%; background: #e60012; transition: width .4s; }
.fl-w { font-size: 11px; color: #fff; background: rgba(0,0,0,.7); padding: 0 6px; margin-top: 2px; display: flex; align-items: center; gap: 2px; } .fl-w .emo { width: 14px; height: 14px; }
.b5-flab em { font-style: normal; font-weight: 900; color: #ffd23f; text-shadow: 2px 2px 0 #000; font-size: 15px; animation: jitter .3s steps(2) infinite; }
.b5-flab.dead { display: none; }
.b5-top { position: absolute; left: 16px; top: 14px; z-index: 8; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.b5-enc .ransom, .b5-turn .ransom { font-size: 28px; transform: rotate(-4deg); }
.b5-turn .ransom { font-size: 22px; }
.b5-party { position: absolute; right: 14px; bottom: 14px; z-index: 8; display: flex; gap: 10px; }
.b5-pc { display: flex; gap: 6px; align-items: center; background: #000; color: #fff; padding: 6px 12px 6px 6px; clip-path: polygon(0 6%, 100% 0, 96% 100%, 3% 94%); border: 2px solid #fff; transition: transform .2s; }
.b5-pc.act { transform: translateY(-10px) rotate(-3deg); border-color: #e60012; box-shadow: 0 0 0 3px #e60012; }
.b5-pc.ko { filter: grayscale(1); opacity: .6; }
.pc-por { width: 62px; height: 62px; background: #e60012; clip-path: polygon(10% 0, 100% 10%, 90% 100%, 0 90%); overflow: hidden; } .pc-por img { width: 100%; height: 100%; object-fit: cover; }
.pc-m { display: flex; flex-direction: column; gap: 3px; min-width: 110px; } .pc-m b { font-size: 14px; }
.pc-bar { position: relative; height: 12px; background: #222; transform: skewX(-20deg); } .pc-bar i { display: block; height: 100%; transition: width .4s; }
.pc-bar.hp i { background: #3ccf7e; } .pc-bar.sp i { background: #b77bff; }
.pc-bar span { position: absolute; right: 4px; top: -3px; font: 800 12px 'Fredoka'; transform: skewX(20deg); }
.pc-el { font-size: 12px; display: flex; align-items: center; gap: 3px; } .pc-el .emo { width: 16px; height: 16px; }
.b5-menu { position: absolute; left: 22px; bottom: 26px; z-index: 9; display: none; flex-direction: column; gap: 6px; align-items: flex-start; }
.b5-menu.show { display: flex; }
.bm-t { background: #e60012; color: #fff; font-weight: 900; font-size: 17px; padding: 3px 16px; transform: rotate(-3deg); box-shadow: 3px 3px 0 #000; }
.b5-cmd { display: flex; align-items: center; gap: 10px; background: #fff; color: #000; padding: 8px 22px 8px 14px; min-width: 210px; font-size: 20px; font-weight: 900; clip-path: polygon(3% 0, 100% 8%, 97% 100%, 0 92%); box-shadow: 4px 4px 0 #000; transform: translateX(calc(var(--i) * 10px)) rotate(calc(-3deg + var(--i) * 1.2deg)); animation: optIn .3s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i) * 40ms); transition: background .1s, transform .1s; position: relative; }
.b5-cmd .emo { width: 28px; height: 28px; } .b5-cmd small { font-size: 12px; font-weight: 700; color: #666; margin-left: 4px; }
.b5-cmd:hover { background: #e60012; color: #fff; transform: translateX(calc(var(--i) * 10px + 14px)) rotate(-4deg) scale(1.05); } .b5-cmd:hover small { color: #fff; }
.b5-cmd.dis { opacity: .45; }
.b5-cmd > .kcap { left: auto; right: 6px; top: 50%; transform: translateY(-50%); }
.b5-q { position: absolute; left: 50%; top: 50%; z-index: 15; width: min(760px, 92vw); transform: translate(-50%, -50%) rotate(-1deg); display: none; background: #0a0a0a; border: 3px solid #fff; padding: 14px; box-shadow: 10px 10px 0 #e60012; }
.b5-q.show { display: block; animation: popBig .3s cubic-bezier(.2,1.5,.4,1); }
.bq-t { background: #e60012; color: #fff; font-weight: 900; display: inline-block; padding: 2px 14px; margin-bottom: 8px; transform: rotate(-2deg); }
.b5-q .qpanel { background: #fff; color: #000; border-radius: 0; } .b5-q .choice { background: #fff; color: #000; border-radius: 0; border: 3px solid #000 !important; box-shadow: 4px 4px 0 #e60012 !important; }
.b5-dmg { position: absolute; transform: translate(-50%, -50%); font: 900 italic 40px 'Fredoka'; color: #fff; -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000; animation: dmg 1.2s forwards; white-space: nowrap; }
.b5-dmg.weak { color: #ffd23f; font-size: 50px; } .b5-dmg.crit { color: #ff3a4a; font-size: 50px; } .b5-dmg.resist { color: #aaa; } .b5-dmg.hurt { color: #ff5a6a; } .b5-dmg.heal { color: #5fff9a; } .b5-dmg.info { font-size: 26px; color: #fff; background: #000; padding: 0 10px; -webkit-text-stroke: 0; text-shadow: none; }
@keyframes dmg { 0% { transform: translate(-50%, -20%) scale(.4) rotate(-10deg); opacity: 0; } 15% { transform: translate(-50%, -60%) scale(1.2) rotate(-6deg); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -140%) scale(1) rotate(-6deg); opacity: 0; } }
.b5-ban { position: absolute; left: 0; right: 0; top: 36%; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bb-strip { position: absolute; left: -10%; right: -10%; top: 0; bottom: 0; background: #000; border-top: 6px solid #e60012; border-bottom: 6px solid #e60012; transform: rotate(-4deg); animation: banIn 1.5s cubic-bezier(.2,1.2,.4,1) forwards; }
.b5-ban.hold .bb-strip { background: #e60012; border-color: #000; }
.bb-t { position: relative; animation: banT 1.5s forwards; } .bb-t .ransom { font-size: 56px; } .bb-s { position: relative; color: #fff; font-weight: 800; background: #e60012; padding: 0 12px; margin-top: 6px; animation: banT 1.5s forwards; }
@keyframes banIn { 0% { transform: rotate(-4deg) translateX(-110%); } 20% { transform: rotate(-4deg) translateX(0); } 80% { transform: rotate(-4deg) translateX(0); } 100% { transform: rotate(-4deg) translateX(110%); } }
@keyframes banT { 0% { transform: scale(2.2) rotate(-4deg); opacity: 0; } 18% { transform: scale(1) rotate(-4deg); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(80px) rotate(-4deg); } }
.b5-cut { position: absolute; inset: 0; }
.ct-band { position: absolute; left: -10%; right: -10%; top: 26%; height: 40%; background: linear-gradient(90deg, #e60012 0 60%, #000 60%); transform: rotate(-8deg); animation: banIn 1.3s cubic-bezier(.2,1.2,.4,1) forwards; }
.ct-por { position: absolute; left: 12%; top: 18%; width: 34%; height: 56%; overflow: hidden; clip-path: polygon(0 18%, 100% 0, 100% 82%, 0 100%); animation: cutPor 1.3s forwards; } .ct-por img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.4); }
.ct-t { position: absolute; right: 12%; top: 40%; animation: banT 1.3s forwards; } .ct-t .ransom { font-size: 52px; }
@keyframes cutPor { 0% { transform: translateX(-120%); } 20%, 80% { transform: none; } 100% { transform: translateX(120%); opacity: 0; } }
.b5-flash { position: absolute; inset: 0; background: radial-gradient(circle, var(--c), transparent 70%); mix-blend-mode: screen; animation: fadeOut .5s forwards; }
.b5-aoa { position: absolute; inset: 0; pointer-events: auto; }
.b5-aoa.out { animation: fadeOut .3s forwards; }
.ao-cloud { position: absolute; left: 50%; top: 45%; width: 70vmin; height: 50vmin; transform: translate(-50%, -50%); background: radial-gradient(circle at 30% 40%, #000 0 30%, transparent 31%), radial-gradient(circle at 60% 35%, #000 0 34%, transparent 35%), radial-gradient(circle at 50% 65%, #000 0 36%, transparent 37%), radial-gradient(circle at 75% 60%, #000 0 26%, transparent 27%); animation: cloud .3s steps(2) infinite; }
.ao-sl { position: absolute; left: 50%; top: 45%; width: 70vmin; height: 10px; background: #fff; box-shadow: 0 0 0 3px #e60012; transform: translate(-50%, -50%) rotate(var(--r)) scaleX(0); animation: slash .35s calc(var(--i) * .12s) forwards; }
.ao-t { position: absolute; left: 50%; top: 14%; transform: translateX(-50%) rotate(-6deg); } .ao-t .ransom { font-size: 64px; }
@keyframes cloud { 50% { transform: translate(-50%, -50%) scale(1.05) rotate(3deg); } }
@keyframes slash { 0% { transform: translate(-50%, -50%) rotate(var(--r)) scaleX(0); } 50% { transform: translate(-50%, -50%) rotate(var(--r)) scaleX(1); } 100% { transform: translate(-50%, -50%) rotate(var(--r)) scaleX(1); opacity: 0; } }
.b5-finish { position: absolute; inset: 0; pointer-events: auto; }
.fi-bg { position: absolute; inset: 0; background: linear-gradient(120deg, #fff 0 30%, #e60012 30% 34%, #000 34%); animation: fadeIn .2s; }
.fi-por { position: absolute; left: 4%; bottom: 0; height: 92%; width: 40%; animation: porIn .4s; } .fi-por img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.fi-t { position: absolute; right: 8%; top: 40%; transform: rotate(-6deg); animation: popBig .4s; } .fi-t .ransom { font-size: 56px; }
.b5-cap { position: absolute; inset: 0; pointer-events: auto; cursor: pointer; display: grid; place-items: center; }
.cp-bg { position: absolute; inset: 0; background: repeating-conic-gradient(#e60012 0 10deg, #000 10deg 20deg); opacity: .85; animation: spin 12s linear infinite; }
.cp-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; color: #000; padding: 20px 40px; clip-path: polygon(0 4%, 100% 0, 97% 100%, 3% 96%); box-shadow: 12px 12px 0 #000; animation: popBig .5s cubic-bezier(.2,1.6,.4,1); max-width: 90vw; }
.cp-q { font-size: 18px; font-weight: 800; max-width: 460px; text-align: center; } .cp-por img { width: 240px; height: 240px; object-fit: contain; }
.cp-n { font-size: 22px; } .cp-tap { font-size: 12px; color: #888; }
.p5-res { text-align: center; } .p5-res > .ransom { font-size: 44px; transform: rotate(-4deg); margin: 6px 0 14px; }
.pr-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; } .pr-rows div { display: flex; justify-content: space-between; background: #fff; color: #000; padding: 6px 18px; transform: skewX(-10deg); font-size: 18px; } .pr-rows b { color: #e60012; }
.p5-res .gcard { max-width: 220px; margin: 0 auto 10px; }
@media (max-width: 760px) {
  .b5-cmd { min-width: 150px; font-size: 16px; padding: 6px 14px; } .b5-party { flex-direction: column; right: 8px; bottom: 8px; } .pc-por { width: 44px; height: 44px; }
  .bs-por { opacity: .5; } .bs-text { font-size: 18px; } .bs-opts { right: 4%; bottom: 34%; } .bd-card { transform: scale(.7) rotate(-3deg); }
}
.p3-title .ransom { font-size: 30px; }
.act-card { right: auto; left: 18px; top: 100px; }
@keyframes acIn { from { transform: translateX(-120%) rotate(-8deg); } }
@keyframes acOut { to { transform: translateX(-120%) rotate(-8deg); opacity: 0; } }
.ex-ents { position: absolute; inset: 0; z-index: 7; pointer-events: none; }

/* ============ 3D 探索（怪盗风 HUD） ============ */
.x3 .x3-gl { position: absolute; inset: 0; z-index: 1; }
.x3 .x3-gl canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; transition: filter .25s; }
.x3.teye .x3-gl canvas { filter: grayscale(1) brightness(.85) contrast(1.2); }
.x3.teye::after { background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(80,0,10,.7) 100%) !important; }
.x3.hiding .x3-gl canvas { filter: saturate(.55) brightness(.85); }
.x3.dash::before { background-image: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.14) 0 1.2deg, transparent 1.2deg 7deg); background-size: auto; mask-image: radial-gradient(circle, transparent 40%, #000 80%); -webkit-mask-image: radial-gradient(circle, transparent 40%, #000 80%); }
.x3-labs, .x3-fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.x3-fx { z-index: 30; }
.x3-lab { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: auto; cursor: pointer; transform-origin: 50% 100%; white-space: nowrap; }
.x3-lab b { background: #fff; color: #000; font-size: 15px; font-weight: 900; padding: 1px 12px; clip-path: polygon(6% 0, 100% 10%, 94% 100%, 0 88%); }
.x3-lab i { font-style: normal; font-size: 12px; background: #000; color: #fff; padding: 0 8px; }
.x3-lab small { font-size: 11px; background: #e60012; color: #fff; padding: 0 8px; font-weight: 800; transform: skewX(-12deg); }
.x3-lab.spot i { width: 46px; height: 46px; display: grid; place-items: center; background: #fff; transform: rotate(45deg); box-shadow: 4px 4px 0 #000, 0 0 0 3px #e60012; padding: 0; animation: markBob 1.8s ease-in-out infinite; margin-bottom: 8px; }
.x3-lab.spot i .emo { width: 28px; height: 28px; transform: rotate(-45deg); }
.x3-lab.spot b { background: #000; color: #fff; }
.x3-lab.done i { background: #777; box-shadow: 3px 3px 0 #000; } .x3-lab.done small::after { content: ' ✓'; }
.x3-lab.npc b { background: #3fd0ff; } .x3-lab.npc em { position: absolute; top: -28px; font: 900 26px 'Fredoka'; font-style: normal; color: #ffd23f; text-shadow: 2px 2px 0 #000; animation: markBob 1s infinite; }
.x3-lab.chest b { background: #e0a040; } .x3-lab.chest.gold b { background: #ffd23f; box-shadow: 0 0 14px #ffd23f; } .x3-lab.chest.done { display: none !important; }
.x3-lab.exit b { background: #e60012; color: #fff; }
.x3-lab.shd { pointer-events: none; }
.x3-lab.shd b, .x3-lab.shd i { opacity: 0; transition: opacity .2s; } .x3.teye .x3-lab.shd b, .x3.teye .x3-lab.shd i { opacity: 1; }
.x3-lab.shd b { background: #000; color: #fff; border: 2px solid #e60012; }
.x3.teye .x3-lab.shd.weak b { border-color: #3fd0ff; color: #3fd0ff; } .x3.teye .x3-lab.shd.even b { border-color: #ffd23f; color: #ffd23f; } .x3.teye .x3-lab.shd.strong b { border-color: #ff2030; color: #ff2030; box-shadow: 0 0 16px #ff2030; }
.x3-lab.shd em { font: 900 italic 54px/1 'Fredoka'; font-style: normal; color: #ffd23f; -webkit-text-stroke: 3px #000; text-shadow: 4px 4px 0 #000; height: 54px; animation: jitter .2s steps(2) infinite; }
.x3-lab.shd[data-st=alert] em { color: #ff1a2e; font-size: 70px; height: 70px; }
.x3-lab.shd[data-st=sus] em { color: #ffd23f; transform: scale(calc(.6 + var(--k, 0) * .6)); }
.x3.teye .x3-lab.chest, .x3.teye .x3-lab.spot:not(.done) { filter: drop-shadow(0 0 10px #ffd23f) drop-shadow(0 0 4px #ffd23f); }
.x3-date { position: absolute; left: 22px; top: 96px; z-index: 10; display: flex; align-items: flex-end; gap: 6px; transform: rotate(-6deg); pointer-events: none; }
.x3-date b { font: 900 italic 44px/1 'Fredoka'; color: #fff; text-shadow: 3px 3px 0 #e60012, 6px 6px 0 #000; }
.x3-date i { font: 900 italic 20px 'Fredoka'; background: #fff; color: #000; padding: 0 8px; margin-bottom: 6px; }
.x3-date span { font-size: 13px; font-weight: 900; background: #e60012; color: #fff; padding: 1px 8px; margin-bottom: 6px; transform: skewX(-12deg); }
.x3-sec { position: absolute; left: 22px; top: 152px; z-index: 10; display: flex; align-items: center; gap: 8px; background: #000; color: #fff; padding: 6px 14px 6px 8px; clip-path: polygon(0 0, 100% 10%, 96% 100%, 3% 92%); border-left: 6px solid #e60012; pointer-events: none; }
.x3-sec > i { width: 34px; height: 34px; display: grid; place-items: center; background: #fff; border-radius: 50%; } .x3-sec > i .emo { width: 24px; height: 24px; }
.x3-sec small { display: block; font-size: 11px; color: #aaa; } .x3-sec b { font: 900 italic 22px/1 'Fredoka'; }
.xs-bar { width: 90px; height: 10px; background: #333; transform: skewX(-20deg); } .xs-bar u { display: block; height: 100%; width: 0; background: #3ccf7e; transition: width .4s, background .4s; }
.x3-sec.hi .xs-bar u { background: #ffd23f; } .x3-sec.max .xs-bar u { background: #e60012; } .x3-sec.max { animation: jitter .3s steps(2) infinite; }
.x3-sec.bump { animation: secBump .5s; } @keyframes secBump { 30% { transform: scale(1.18) rotate(-3deg); background: #e60012; } }
.x3-map { position: absolute; right: 16px; top: 14px; z-index: 10; width: 180px; height: 180px; pointer-events: none; filter: drop-shadow(5px 5px 0 #000); }
.x3-prompt { position: absolute; left: 50%; bottom: 120px; z-index: 12; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.xp-main, .xp-sub { display: none; align-items: center; gap: 8px; background: #fff; color: #000; padding: 8px 26px 8px 12px; font-size: 20px; font-weight: 900; clip-path: polygon(4% 0, 100% 10%, 96% 100%, 0 88%); box-shadow: 6px 6px 0 #000; pointer-events: auto; cursor: pointer; transform: rotate(-3deg); }
.xp-main.show, .xp-sub.show { display: flex; animation: optIn .25s cubic-bezier(.2,1.5,.4,1); }
.xp-main .emo, .xp-sub .emo { width: 30px; height: 30px; } .xp-main small { font-size: 13px; color: #e60012; }
.xp-main.danger { background: #e60012; color: #fff; animation: optIn .25s cubic-bezier(.2,1.5,.4,1), actPulse 1s infinite; } .xp-main.danger small { color: #fff; }
.xp-sub { font-size: 15px; background: #000; color: #fff; transform: rotate(2deg); padding: 5px 20px 5px 10px; }
.x3-prompt kbd { font: 900 13px/22px 'Fredoka'; min-width: 26px; padding: 0 6px; text-align: center; background: #000; color: #fff; border: 2px solid #fff; transform: rotate(45deg) scale(.9); }
.xp-sub kbd { background: #fff; color: #000; transform: none; }
.x3-hide { position: absolute; left: 50%; top: 92px; z-index: 11; transform: translateX(-50%) rotate(-4deg); display: none; pointer-events: none; } .x3-hide .ransom { font-size: 30px; }
.x3.hiding .x3-hide { display: block; animation: popBig .3s; }
.x3-btns { position: absolute; right: 16px; top: 206px; z-index: 10; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.x3-b { display: flex; align-items: center; gap: 6px; background: #000; color: #fff; padding: 6px 16px 6px 10px; font-weight: 900; font-size: 15px; clip-path: polygon(6% 0, 100% 8%, 94% 100%, 0 92%); border: 2px solid #fff; }
.x3-b .emo { width: 24px; height: 24px; } .x3-b.on, .x3-b:hover { background: #e60012; }
.x3-joy { position: absolute; left: 30px; bottom: 30px; z-index: 12; width: 120px; height: 120px; border-radius: 50%; background: rgba(0,0,0,.45); border: 3px solid #fff; display: none; touch-action: none; }
.x3-joy i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: #e60012; border: 3px solid #fff; box-shadow: 3px 3px 0 #000; }
@media (pointer: coarse) { .x3-joy { display: block; } .x3-prompt { bottom: 40px; left: auto; right: 20px; transform: none; align-items: flex-end; } .x3-help { display: none; } }
.x3 .p3-dialog { bottom: 26px; }
.x3-ban { position: absolute; left: 0; right: 0; top: 36%; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.xb-strip { position: absolute; left: -10%; right: -10%; top: 0; bottom: 0; background: #e60012; border-top: 8px solid #000; border-bottom: 8px solid #000; transform: rotate(-5deg); animation: banIn 1.5s cubic-bezier(.2,1.2,.4,1) forwards; }
.x3-ban.warn .xb-strip { background: #000; border-color: #e60012; }
.xb-t { position: relative; animation: banT 1.5s forwards; } .xb-t .ransom { font-size: 64px; }
.xb-s { position: relative; color: #fff; font-weight: 900; background: #000; padding: 0 14px; margin-top: 6px; animation: banT 1.5s forwards; }
.x3-mask { position: fixed; z-index: 4000; width: 90px; height: 64px; margin: -32px -45px; pointer-events: none; animation: maskFly 1s cubic-bezier(.3,.6,.4,1) forwards; }
.x3-mask i { position: absolute; inset: 0; background: #fff; border: 4px solid #000; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; box-shadow: 0 0 0 3px #e60012; }
.x3-mask i::before, .x3-mask i::after { content: ''; position: absolute; top: 22px; width: 22px; height: 12px; background: #000; } .x3-mask i::before { left: 14px; transform: rotate(14deg); } .x3-mask i::after { right: 14px; transform: rotate(-14deg); }
@keyframes maskFly { 0% { transform: scale(1) rotate(0); } 25% { transform: scale(1.5) rotate(-20deg); } 100% { transform: translate(260px, -360px) scale(.6) rotate(540deg); opacity: 0; } }

/* 出门：队伍编成 */
.ex-party { margin-top: 16px; }
.ep-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .ep-h .ransom { font-size: 24px; transform: rotate(-3deg); } .ep-h small { color: #ccc; }
.ep-list { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 10px; }
.ep-pet { position: relative; flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #222; color: #fff; padding: 6px 4px; clip-path: polygon(6% 0, 100% 4%, 94% 100%, 0 96%); border: 2px solid #444; opacity: .7; transition: .15s; }
.ep-pet img { width: 72px; height: 72px; object-fit: contain; } .ep-pet b { font-size: 13px; }
.ep-pet.on { background: #fff; color: #000; opacity: 1; border-color: #e60012; box-shadow: inset 0 0 0 3px #e60012; transform: rotate(-2deg); }
.ep-pet em { position: absolute; top: 4px; left: 4px; font-style: normal; font-size: 11px; font-weight: 900; background: #e60012; color: #fff; padding: 0 6px; }
.ep-pet .tbadge { position: absolute; top: 4px; right: 4px; }

/* ============ 暗影战：队伍 / 技能 / 接力 ============ */
.b5-party { gap: 8px; }
.b5-pc { padding: 5px 10px 5px 5px; }
.pc-m { min-width: 104px; } .pc-m b small { font: 800 11px 'Fredoka'; color: #ffd23f; }
.pc-el small { font-size: 10px; color: #aaa; margin: 0 1px 0 4px; }
.pc-bf { margin-left: 4px; display: inline-flex; align-items: center; gap: 1px; } .pc-bf .emo { width: 14px; height: 14px; }
.pc-bf .dn { font-style: normal; font-size: 10px; font-weight: 900; background: #ffd23f; color: #000; padding: 0 4px; }
.b5-cmd .cost { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 900 italic 13px 'Fredoka'; font-style: normal; color: #b77bff; background: #000; padding: 0 6px; }
.b5-cmd:hover .cost { color: #fff; }
.b5-cmd:has(.cost) { padding-right: 70px; }
.b5-auto { position: absolute; right: 16px; top: 16px; z-index: 9; font: 900 italic 18px 'Fredoka'; color: #fff; background: #000; border: 3px solid #fff; padding: 4px 18px; clip-path: polygon(6% 0, 100% 10%, 94% 100%, 0 90%); letter-spacing: .1em; }
.b5-auto.on { background: #e60012; animation: jitter .4s steps(2) infinite; }
.b5-skn { position: absolute; left: 50%; top: 18px; z-index: 12; display: flex; align-items: center; gap: 10px; background: #000; color: #fff; padding: 6px 26px 6px 10px; border: 3px solid #fff; transform: translate(-50%, -160%) rotate(-3deg); clip-path: polygon(3% 0, 100% 8%, 97% 100%, 0 90%); box-shadow: 0 0 0 0 #e60012; transition: transform .2s cubic-bezier(.2,1.5,.4,1); pointer-events: none; }
.b5-skn.show { transform: translate(-50%, 0) rotate(-3deg); }
.b5-skn i { width: 40px; height: 40px; display: grid; place-items: center; background: #e60012; transform: rotate(45deg); } .b5-skn i .emo { width: 26px; height: 26px; transform: rotate(-45deg); }
.b5-skn b { font-size: 26px; font-weight: 900; letter-spacing: .06em; } .b5-skn small { font-size: 12px; color: #e60012; background: #fff; padding: 0 6px; font-weight: 800; }
.b5-cut.pet .ct-band { background: linear-gradient(90deg, #000 0 40%, #e60012 40%); }
.b5-cut.pet .ct-por img { object-fit: contain; transform: scale(1.15); background: radial-gradient(circle, #fff 0 40%, transparent 70%); }
.b5-baton { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-6deg); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: popBig .35s cubic-bezier(.2,1.6,.4,1); }
.bt-hand { width: 120px; height: 120px; background: #fff; border: 6px solid #000; border-radius: 50%; box-shadow: 8px 8px 0 #e60012; position: relative; }
.bt-hand::after { content: '🤚'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 68px; animation: jitter .2s steps(2) infinite; }
.bt-t .ransom { font-size: 52px; } .b5-baton small { background: #000; color: #fff; font-weight: 900; padding: 2px 12px; font-size: 16px; }
.cp-sk { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 440px; } .cp-sk span { display: inline-flex; align-items: center; gap: 3px; background: #000; color: #fff; font-size: 13px; font-weight: 800; padding: 2px 8px; transform: skewX(-8deg); } .cp-sk .emo { width: 16px; height: 16px; } .cp-sk .lk { opacity: .4; }
.pr-rows div.new { background: #ffd23f; } .pr-rows div.new b { color: #000; font-size: 15px; }
@media (max-width: 1100px) { .b5-party { flex-direction: column; align-items: flex-end; } .b5-pc .pc-por { width: 44px; height: 44px; } }
.b5-menu { bottom: 128px; }
@media (max-height: 640px) { .b5-menu { bottom: 20px; } }
