@font-face{font-family:'龙门题字';font-display:swap;src:url('./assets/edition/fonts/longmen-title.woff') format('woff');}/* 《江湖录》原创国风武侠水墨竖屏样式（基准 390×844，纯离线零外部依赖） */
:root {
  --paper: #f3e8d2;
  --paper-dark: #e2cfa9;
  --ink: #231811;
  --ink-soft: #5c4738;
  --crimson: #8b1d18;
  --crimson-dark: #5b110d;
  --wood: #5e381c;
  --wood-light: #8f5c30;
  --gold: #d9a130;
  --gold-bright: #f8da7c;
  --cyan-gray: #4b5d5e;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif CN", "SimSun", Georgia, serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, #2d2017 0%, #140d09 100%);
  color: var(--ink);
  font-family: var(--font-serif);
  overflow: hidden;
  user-select: none;
}

/* 手机竖屏外壳容器（桌面端居中呈现 390~430px 竖屏，移动端全屏铺满） */
#app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  max-height: 932px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at top, rgba(255,250,235,0.6), transparent 65%),
    repeating-linear-gradient(0deg, rgba(120,90,50,0.03) 0px, rgba(120,90,50,0.03) 2px, transparent 2px, transparent 5px),
    linear-gradient(180deg, #f3e8d2 0%, #e7d5b2 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,0.75);
  border-left: 1px solid rgba(217,161,48,0.28);
  border-right: 1px solid rgba(217,161,48,0.28);
}

@media (min-width: 500px) {
  body { display: flex; align-items: center; justify-content: center; }
  #app-shell { height: min(96vh, 860px); border-radius: 18px; border: 2px solid #8f5c30; }
}

/* 顶部手游 HUD */
.hud-top {
  flex-shrink: 0;
  background: linear-gradient(180deg, #431812 0%, #2a100c 100%);
  border-bottom: 2px solid var(--gold);
  padding: 6px 8px;
  color: #fdf6e3;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.player-badge { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lv-orb {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b91c1c, #450a0a);
  border: 2px solid var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fef08a; flex-shrink: 0;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
.player-meta { min-width: 0; }
.player-name { font-size: 13px; font-weight: 700; color: #fef3c7; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.vip-tag {
  font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 4px;
  background: linear-gradient(180deg, #fde047, #b45309); color: #3b1706;
  border: 1px solid #fef08a;
}
.exp-bar { width: 88px; height: 5px; background: rgba(0,0,0,0.55); border-radius: 3px; overflow: hidden; margin-top: 3px; border: 1px solid rgba(217,161,48,0.4); }
.exp-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #fde047); }

.res-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 3px 8px; font-size: 11px; }
.res-pill {
  display: flex; align-items: center; gap: 3px;
  background: rgba(0,0,0,0.38); border: 1px solid rgba(217,161,48,0.35);
  border-radius: 10px; padding: 1px 6px; white-space: nowrap;
}
.res-ico { font-size: 10px; font-weight: 800; width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.ico-ingot { background: #eab308; color: #451a03; }
.ico-silver { background: #cbd5e1; color: #1e293b; }
.ico-stamina { background: #dc2626; color: #fef2f2; }
.ico-power { background: #ea580c; color: #fff7ed; }

/* 主内容滚动区 */
.main-view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.main-view::-webkit-scrollbar { width: 3px; }
.main-view::-webkit-scrollbar-thumb { background: rgba(94,56,28,0.35); border-radius: 2px; }

/* 底部固定导航栏 */
.nav-bottom {
  flex-shrink: 0;
  height: 60px;
  background: linear-gradient(180deg, #4b1d15 0%, #260d09 100%);
  border-top: 2px solid var(--gold);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 20;
  padding: 2px 2px 4px;
}
.nav-btn {
  position: relative;
  background: none; border: none; color: #d6c3a5;
  font-family: var(--font-serif);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 2px; transition: transform 0.12s;
}
.nav-btn:active { transform: scale(0.93); }
.nav-btn.active { color: #fde047; }
.nav-btn.active .nav-icon-box {
  background: radial-gradient(circle, #b91c1c, #69100c);
  border-color: #fde047; color: #fef08a;
  box-shadow: 0 0 10px rgba(248,218,124,0.45);
}
.nav-icon-box {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(217,161,48,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; }

/* 通用国风按钮、卡片、卷轴与红点 */
.red-dot {
  position: absolute; top: -3px; right: -3px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444; border: 1.5px solid #fef08a;
  box-shadow: 0 0 5px #ef4444;
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.22); } }

.wood-btn {
  position: relative;
  background: linear-gradient(180deg, #e5b869 0%, #c68432 52%, #9a5d1c 100%);
  border: 2px solid #4e2d12;
  border-radius: 10px;
  color: #2b1506;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 2px;
  padding: 10px 6px;
  box-shadow: inset 0 1px 0 #fef08a, 0 3px 0 #3f220c, 0 4px 8px rgba(0,0,0,0.28);
  cursor: pointer;
  transition: transform 0.1s;
}
.wood-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fef08a, 0 1px 0 #3f220c; }
.wood-btn.crimson {
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
  color: #fef08a; border-color: #d9a130;
}

.btn-sm {
  font-family: var(--font-serif);
  font-weight: 700; font-size: 12px; padding: 5px 10px;
  border-radius: 6px; border: 1.5px solid #5e381c;
  background: linear-gradient(180deg, #f3d082, #c98a35);
  color: #2a1506; cursor: pointer;
  box-shadow: 0 2px 0 #472810;
}
.btn-sm:active { transform: translateY(1px); }
.btn-sm.red { background: linear-gradient(180deg, #b91c1c, #7f1d1d); color: #fef3c7; border-color: #d9a130; }
.btn-sm.dark { background: linear-gradient(180deg, #4b382a, #2c1e15); color: #f5e6c8; border-color: #8f5c30; }
.btn-sm:disabled { opacity: 0.45; cursor: not-allowed; }

.paper-card {
  background: linear-gradient(180deg, rgba(252,246,232,0.95), rgba(236,220,188,0.94));
  border: 1.5px solid #a67c46;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(45,25,10,0.14);
}
.section-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(90deg, #5a1812, #82261c, #5a1812);
  color: #fde68a;
  font-weight: 800; font-size: 14px; letter-spacing: 1px;
  border-bottom: 1.5px solid var(--gold);
}

/* 首页水墨舞台 & 飘花 */
.home-stage {
  position: relative;
  height: 205px;
  overflow: hidden;
  border-bottom: 2px solid #8f5c30;
}
.home-heroes {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
  padding: 0 8px 2px;
}
.home-hero-slot {
  width: 118px; height: 158px; cursor: pointer;
  transition: transform 0.2s;
  animation: breathe 3.4s ease-in-out infinite;
}
.home-hero-slot.lead { width: 142px; height: 186px; z-index: 2; }
.home-hero-slot:active { transform: scale(1.04); }
@keyframes breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.petal {
  position: absolute; width: 8px; height: 5px; border-radius: 60% 40%;
  background: #fda4af; opacity: 0.78; pointer-events: none;
  animation: fallPetal 6s linear infinite;
}
@keyframes fallPetal {
  0% { transform: translate(0, -10px) rotate(0deg); opacity: 0; }
  15% { opacity: 0.8; }
  100% { transform: translate(-45px, 210px) rotate(260deg); opacity: 0; }
}

.home-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 12px 12px 8px;
}
.home-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  padding: 6px 12px 12px;
}
.strip-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: rgba(66,34,16,0.1); border: 1px solid rgba(138,90,43,0.45);
  border-radius: 8px; padding: 6px 2px; color: #3b200d;
  font-family: var(--font-serif); font-size: 11px; font-weight: 700; cursor: pointer;
}
.strip-ico {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, #7c2d12, #451a03);
  color: #fde68a; border: 1.5px solid #d9a130;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* 经典金色卷轴弟子详情页（对照参考图布局：顶排头像 + 左武学 + 中卷轴立绘 + 右装备） */
.formation-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  background: linear-gradient(180deg, #d7c097, #c5a87a);
  border-bottom: 1.5px solid #7d532a;
  overflow-x: auto;
}
.mini-avatar {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid #7d532a; background: #2c1810;
}
.mini-avatar.selected { border-color: #fde047; box-shadow: 0 0 10px #f59e0b; transform: scale(1.04); }
.mini-avatar.empty { display: flex; align-items: center; justify-content: center; color: #a68b67; font-size: 18px; border-style: dashed; }

.scroll-stage {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  gap: 5px;
  padding: 6px;
  align-items: start;
}
.slot-col { display: flex; flex-direction: column; gap: 6px; }
.gear-slot {
  position: relative;
  width: 56px; height: 56px; border-radius: 8px;
  background: linear-gradient(180deg, #3c2618, #21130b);
  border: 2px solid #9a6b32;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: #e8d5b2; padding: 2px; text-align: center;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
}
.gear-slot .slot-name { font-size: 9px; line-height: 1.1; margin-top: 2px; max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-slot .slot-lv { position: absolute; bottom: 1px; right: 2px; font-size: 9px; font-weight: 800; color: #fde047; text-shadow: 0 1px 2px #000; }
.gear-slot .slot-badge { position: absolute; top: 1px; left: 2px; font-size: 8px; padding: 0 3px; border-radius: 3px; background: rgba(0,0,0,0.65); color: #fcd34d; }

/* 中央金色卷轴 */
.golden-scroll {
  position: relative;
  background: linear-gradient(180deg, #f9e8b8 0%, #f3d78e 50%, #e7c26c 100%);
  border: 2.5px solid #9a651a;
  border-radius: 8px;
  padding: 6px 6px 8px;
  box-shadow: 0 4px 14px rgba(45,25,8,0.3), inset 0 0 12px rgba(180,110,20,0.35);
}
.scroll-roller {
  height: 10px;
  margin: -10px -8px 4px;
  background: linear-gradient(180deg, #fde68a, #b45309, #fde68a);
  border: 1.5px solid #5e381c;
  border-radius: 6px;
}
.scroll-roller.bottom { margin: 6px -8px -12px; }
.scroll-stars { text-align: center; font-size: 13px; color: #d97706; letter-spacing: 1px; text-shadow: 0 1px 1px #fff8dc; }
.scroll-portrait-box { position: relative; height: 222px; overflow: hidden; border-radius: 6px; }
.vertical-name {
  position: absolute; left: 4px; top: 8px; z-index: 5;
  writing-mode: vertical-rl;
  font-size: 20px; font-weight: 900; color: #2b1506;
  text-shadow: 0 0 6px #fef3c7, 0 0 3px #fff;
  letter-spacing: 3px;
}
.quality-stamp {
  position: absolute; left: 6px; bottom: 26px; z-index: 5;
  width: 24px; height: 24px; border-radius: 4px;
  background: #991b1b; color: #fef08a; border: 1.5px solid #fde047;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
}
.title-plaque {
  position: absolute; right: 4px; top: 8px; z-index: 5;
  writing-mode: vertical-rl;
  background: linear-gradient(180deg, #7f1d1d, #450a0a);
  color: #fde68a; border: 1.5px solid #f59e0b; border-radius: 4px;
  padding: 5px 3px; font-size: 11px; font-weight: 700; letter-spacing: 2px;
}
.scroll-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: rgba(65,30,10,0.12); border: 1px solid rgba(138,85,20,0.4);
  border-radius: 5px; padding: 3px 2px; margin-top: 4px; text-align: center; font-size: 10px;
}
.scroll-stats-strip b { display: block; font-size: 11px; color: #5b110d; }
.bonds-mini { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.bond-chip {
  font-size: 10px; padding: 1px 5px; border-radius: 4px;
  background: rgba(80,55,35,0.15); color: #6e5947; border: 1px solid rgba(110,89,71,0.35);
}
.bond-chip.active { background: #7f1d1d; color: #fef08a; border-color: #f59e0b; font-weight: 700; }

/* 战斗画面与动画 */
.battle-arena {
  background: radial-gradient(circle at 50% 40%, #efe0be 0%, #cdb284 70%, #8d6e46 100%);
  min-height: 100%; display: flex; flex-direction: column;
}
.battle-field {
  flex: 1; padding: 10px 8px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  position: relative;
}
.battle-row { display: flex; justify-content: center; gap: 6px; flex-wrap: nowrap; }
.unit-card {
  position: relative; width: 68px; background: rgba(35,20,12,0.88);
  border: 2px solid #a67c46; border-radius: 8px; padding: 3px;
  color: #fef3c7; text-align: center; transition: transform 0.16s, box-shadow 0.16s;
}
.unit-card.dead { opacity: 0.32; filter: grayscale(1); }
.unit-card.acting { transform: scale(1.12) translateY(-6px); border-color: #fde047; box-shadow: 0 0 14px #f59e0b; z-index: 6; }
.unit-card.hit { animation: shakeHit 0.28s; }
.unit-card.ult-ready { border-color: #ef4444; box-shadow: 0 0 12px #ef4444; cursor: pointer; }
@keyframes shakeHit { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.hp-bar { width: 100%; height: 5px; background: #1c1917; border-radius: 3px; overflow: hidden; margin-top: 2px; }
.hp-fill { height: 100%; background: linear-gradient(90deg, #dc2626, #22c55e); transition: width 0.25s; }
.rage-bar { width: 100%; height: 4px; background: #1c1917; border-radius: 3px; overflow: hidden; margin-top: 2px; }
.rage-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #fef08a); transition: width 0.25s; }

.float-dmg {
  position: absolute; left: 50%; top: -4px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 15.5px; font-weight: 900; white-space: nowrap; z-index: 28; pointer-events: none;
  letter-spacing: 0.4px;
  -webkit-text-stroke: 0.7px #1c0a05;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.75);
  animation: floatUp 1.1s cubic-bezier(0.18, 0.88, 0.32, 1) forwards;
}
.float-dmg.crit {
  color: #fde047; font-size: 18.5px;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.95), 0 2px 5px #000;
}
.float-dmg.heal {
  color: #4ade80; font-size: 15.5px;
  text-shadow: 0 0 8px rgba(22, 163, 74, 0.85), 0 2px 4px #000;
}
.float-dmg.hit { color: #fca5a5; }
.float-dmg.block { color: #fdba74; }
.float-dmg.dodge {
  color: #bae6fd; font-size: 15px;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.85), 0 2px 4px #000;
}
.dmg-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10.5px; font-weight: 900; line-height: 1;
  -webkit-text-stroke: 0;
  border: 1.2px solid #fef08a;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
}
.dmg-seal.seal-crit { background: radial-gradient(circle at 35% 30%, #ef4444, #7f1d1d); color: #fef08a; }
.dmg-seal.seal-break { background: radial-gradient(circle at 35% 30%, #f97316, #7c2d12); color: #ffedd5; }
.dmg-seal.seal-dodge { background: radial-gradient(circle at 35% 30%, #38bdf8, #0c4a6e); color: #e0f2fe; border-color: #bae6fd; }
.dmg-seal.seal-heal { background: radial-gradient(circle at 35% 30%, #22c55e, #14532d); color: #dcfce7; border-color: #bbf7d0; }
@keyframes floatUp {
  0%   { opacity: 0; transform: translate(-50%, 6px) scale(0.72); }
  18%  { opacity: 1; transform: translate(-50%, -10px) scale(1.18); }
  38%  { opacity: 1; transform: translate(-50%, -18px) scale(1.03); }
  100% { opacity: 1; transform: translate(-50%, -22px) scale(1); }
}

/* 弹窗 & Toast */
.modal-mask {
  position: absolute; inset: 0; background: rgba(15,8,4,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 14px; z-index: 60;
}
.modal-box {
  width: 100%; max-height: 84%; overflow-y: auto;
  background: linear-gradient(180deg, #f8efd9, #e5d0a8);
  border: 2.5px solid #8f5c30; border-radius: 12px;
  padding: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.65);
}
.toast-msg {
  position: absolute; top: 68px; left: 50%; transform: translateX(-50%);
  background: rgba(45,14,10,0.94); color: #fef08a;
  border: 1.5px solid #f59e0b; border-radius: 8px;
  padding: 7px 14px; font-size: 12px; font-weight: 700;
  z-index: 90; pointer-events: none; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

/* 抽卡动画 */
.gacha-card {
  border-radius: 8px; padding: 6px 4px; text-align: center;
  border: 2px solid #8f5c30; background: #fbf4e4;
  animation: flipIn 0.35s ease-out both;
}
@keyframes flipIn { from { transform: rotateY(90deg) scale(0.8); opacity: 0; } to { transform: rotateY(0) scale(1); opacity: 1; } }

.tag-q { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; color: #fff; display: inline-block; }
.tabs-row { display: flex; gap: 4px; padding: 6px 8px; overflow-x: auto; background: rgba(94,56,28,0.1); }
.tab-pill {
  flex-shrink: 0; padding: 4px 10px; border-radius: 14px; font-size: 12px; font-weight: 700;
  border: 1px solid #8f5c30; background: #f6ecd7; color: #4a2a10; cursor: pointer;
  font-family: var(--font-serif);
}
.tab-pill.active { background: #7f1d1d; color: #fef08a; border-color: #d9a130; }

/* === 《江湖录》v2.0 高精国风原画、动效光环、战斗出招动画与绝技 Cut-In 样式 === */
.marquee-bar {
  background: linear-gradient(90deg, #2b0f0a, #4d1710, #2b0f0a);
  color: #fde68a; font-size: 10px; padding: 3px 8px;
  border-bottom: 1px solid rgba(217,161,48,0.45);
  overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-block; padding-left: 100%; animation: marqueeScroll 22s linear infinite; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 高精工笔头像与流光品质边框 */
.art-avatar {
  position: relative; width: 100%; height: 100%; border-radius: 7px;
  overflow: hidden; border: 2px solid #9a6b32; background: #26140c;
}
.art-avatar.q-mythic { box-shadow: inset 0 0 10px rgba(239,68,68,0.6), 0 0 8px rgba(245,158,11,0.55); }
.art-avatar.q-legendary { box-shadow: inset 0 0 8px rgba(245,158,11,0.5); }
.avatar-aura-ring {
  position: absolute; inset: 2px; border-radius: 5px; border: 1.5px dashed;
  pointer-events: none; animation: spinSlow 9s linear infinite;
}
.avatar-weapon-seal {
  position: absolute; bottom: 1px; right: 1px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(38,14,8,0.88); color: #fde047; border: 1px solid #d9a130;
  font-size: 9px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}

/* 卷轴内高精工笔全身立绘 + 觉醒/传记蜕变光环 */
.art-portrait-wrap {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #fdf5df 0%, #e4cfa2 100%);
}
.hero-art-img {
  position: relative; z-index: 2; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 15%; display: block;
  animation: heroFloat 3.8s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0) scale(1.01); } 50% { transform: translateY(-3px) scale(1.025); } }
.portrait-vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 22px rgba(74,38,14,0.35);
}
.halo-ring {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%);
  border-radius: 50%; pointer-events: none; z-index: 1;
}
.halo-outer {
  width: 168px; height: 168px; border: 2.5px dashed var(--aura, #f59e0b);
  box-shadow: 0 0 18px var(--aura, #f59e0b); opacity: 0.72;
  animation: spinSlow 14s linear infinite;
}
.halo-inner {
  width: 128px; height: 128px; border: 2px solid #fde047;
  opacity: 0.65; animation: spinRev 10s linear infinite;
}
.halo-rays {
  position: absolute; left: 50%; top: 46%; width: 220px; height: 220px; transform: translate(-50%,-50%); border-radius: 50%; z-index: 1; pointer-events: none; -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,0.9) 25%, transparent 72%); mask-image: radial-gradient(circle, rgba(0,0,0,0.9) 25%, transparent 72%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(253,224,71,0.28) 18deg, transparent 36deg, rgba(245,158,11,0.25) 54deg, transparent 72deg);
  animation: spinSlow 18s linear infinite;
}
.art-portrait-wrap.bio-god { box-shadow: inset 0 0 28px rgba(245,158,11,0.55); }
@keyframes spinSlow { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes spinRev { from { transform: translate(-50%,-50%) rotate(360deg); } to { transform: translate(-50%,-50%) rotate(0deg); } }

/* 首页红灯笼祈福浮标 */
.lantern-btn {
  position: absolute; right: 12px; bottom: 8px; z-index: 12;
  background: radial-gradient(circle at 40% 30%, #ef4444, #7f1d1d);
  color: #fef08a; border: 2px solid #fde047; border-radius: 16px;
  padding: 5px 10px; font-size: 11px; font-weight: 800; font-family: var(--font-serif);
  box-shadow: 0 0 14px rgba(239,68,68,0.65); cursor: pointer;
  animation: lanternSway 2.8s ease-in-out infinite;
}
@keyframes lanternSway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* 丹田真气球槽位 */
.qi-orb-slot {
  background: linear-gradient(180deg, #2d1b12, #170d08);
  border: 1.5px solid #8f5c30; border-radius: 10px;
  padding: 7px 3px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
}
.qi-orb-ball {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid #fde68a; color: #fff; font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  text-shadow: 0 1px 3px #000;
}

/* 战斗冲锋出招动画、Canvas 特效层、屏幕震动、绝技 Cut-In 横幅 */
.battle-vfx-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 15;
}
.battle-arena.screen-shake { animation: arenaShake 0.34s ease-out; }
@keyframes arenaShake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-5px, 3px); }
  45% { transform: translate(5px, -4px); }
  70% { transform: translate(-3px, 2px); }
}
.unit-card.lunge-ally {
  transform: translateY(-48px) scale(1.16) !important;
  border-color: #fde047; box-shadow: 0 0 18px #f59e0b; z-index: 12;
}
.unit-card.lunge-enemy {
  transform: translateY(48px) scale(1.16) !important;
  border-color: #ef4444; box-shadow: 0 0 18px #ef4444; z-index: 12;
}
.unit-card.hit-flash {
  animation: hitFlash 0.34s ease-out;
}
@keyframes hitFlash {
  0% { filter: brightness(2.2); transform: translateX(-6px); }
  40% { filter: brightness(1.5); transform: translateX(6px); }
  100% { filter: brightness(1); transform: translateX(0); }
}

.ult-cutin {
  position: absolute; left: 0; right: 0; top: 36%; z-index: 28;
  height: 76px; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,5,3,0) 0%, rgba(127,29,29,0.95) 18%, rgba(69,10,10,0.96) 82%, rgba(20,5,3,0) 100%);
  border-top: 2px solid #fde047; border-bottom: 2px solid #fde047;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  animation: cutinSlide 0.9s cubic-bezier(.16,.84,.44,1) forwards;
}
.ult-cutin img {
  width: 66px; height: 66px; border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  border: 2.5px solid #fde047; box-shadow: 0 0 14px #f59e0b;
}
.ult-cutin-text {
  color: #fef08a; font-size: 22px; font-weight: 900; letter-spacing: 4px;
  text-shadow: 0 2px 8px #000, 0 0 12px #f59e0b;
}
@keyframes cutinSlide {
  0% { opacity: 0; transform: translateX(-60px) scaleY(0.7); }
  20% { opacity: 1; transform: translateX(0) scaleY(1); }
  82% { opacity: 1; transform: translateX(0) scaleY(1); }
  100% { opacity: 0; transform: translateX(40px) scaleY(0.85); }
}

/* === 《江湖录》v3.0 真透明抠图立绘融合 + 雕龙金色卷轴 + 云纹木牌按钮全面精修 === */
.cutout-portrait-wrap {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: visible;
}
.hero-cutout-img {
  position: relative; z-index: 3;
  max-width: 100%; max-height: 100%; width: auto; height: 100%;
  object-fit: contain; display: block;
  animation: heroFloat 3.6s ease-in-out infinite;
}

/* 首页群侠透明抠图舞台（人物直接站在水墨云山中，无任何矩形底框！） */
.home-stage {
  height: 236px !important;
  border-bottom: none !important;
  background: transparent !important;
}
.home-heroes {
  padding: 0 2px 0 !important;
  gap: 0 !important;
  align-items: flex-end !important;
}
.home-hero-slot {
  width: 136px !important; height: 196px !important;
  margin: 0 -16px;
}
.home-hero-slot.lead {
  width: 176px !important; height: 226px !important;
  z-index: 4 !important; margin: 0 -10px;
}
.petal { z-index: 10 !important; }

/* 对标商业手游的云纹雕花木牌 3×3 按钮（参照截图2） */
.wood-btn {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,244,196,0.72), transparent 62%),
    linear-gradient(180deg, #f0c674 0%, #d9973b 52%, #b06c20 100%) !important;
  border: 2.5px solid #4d331d !important;
  outline: 1.5px solid rgba(248,218,124,0.65);
  outline-offset: -4px;
  border-radius: 12px !important;
  color: #2f1404 !important;
  text-shadow: 0 1px 0 #fef08a, 0 0 6px rgba(254,240,138,0.8);
  font-size: 17px !important;
  letter-spacing: 4px !important;
  padding: 11px 6px !important;
  box-shadow: inset 0 2px 3px rgba(255,250,220,0.8), 0 3px 0 #3d220d, 0 5px 10px rgba(35,18,6,0.28) !important;
}
.wood-btn.crimson {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(254,202,202,0.4), transparent 62%),
    linear-gradient(180deg, #dc2626 0%, #991b1b 55%, #69100c 100%) !important;
  color: #fef08a !important;
  text-shadow: 0 1px 3px #2d0606, 0 0 8px rgba(253,224,71,0.55) !important;
  border-color: #5c1912 !important;
}

/* 雕龙发光金色卷轴（参照截图1 & 3） */
.golden-scroll {
  background:
    radial-gradient(circle at 50% 38%, #fffbeb 0%, #fce8a8 52%, #e6bc5c 100%) !important;
  border: 2px solid #b57b1c !important;
  box-shadow: 0 6px 18px rgba(55,30,8,0.32), inset 0 0 20px rgba(202,138,4,0.35) !important;
}
.scroll-roller {
  height: 14px !important;
  margin: -12px -10px 4px !important;
  background: linear-gradient(180deg, #fef08a 0%, #d9941e 48%, #854d0e 85%, #facc15 100%) !important;
  border: 1.5px solid #5e381c !important;
  border-radius: 8px !important;
  position: relative;
}
.scroll-roller::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fca5a5, #dc2626 60%, #7f1d1d);
  border: 1.5px solid #fef08a;
}
.scroll-portrait-box {
  height: 244px !important;
  overflow: visible !important;
}

/* 左侧5武学 / 右侧5装备 彩色绘纹发光槽位 */
.gear-slot {
  width: 58px !important; height: 58px !important;
  padding: 0 !important; overflow: visible !important;
  background: transparent !important; border: none !important;
  box-shadow: 0 3px 8px rgba(30,14,6,0.4) !important;
  margin-bottom: 12px;
}
.gear-slot .slot-caption {
  position: absolute; left: -4px; right: -4px; bottom: -14px;
  font-size: 9px; font-weight: 800; color: #2b1506;
  text-shadow: 0 0 3px #fff8e7, 0 0 2px #fff;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 战斗中透明抠图全身小人直接站立于石台（去黑框感！） */
.unit-card {
  width: 72px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.unit-sprite-box {
  width: 70px; height: 84px; margin: 0 auto; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}
.unit-sprite-box img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.65));
}
.unit-card.ult-ready .unit-sprite-box img {
  filter: drop-shadow(0 0 10px #fde047) drop-shadow(0 4px 5px rgba(0,0,0,0.7));
}
.unit-hud-plate {
  background: rgba(28,14,8,0.82); border: 1px solid #c68b2c; border-radius: 5px;
  padding: 2px 4px; margin-top: -4px; position: relative; z-index: 4;
}


/* === 《江湖录》v4.0 弟子详情页 1:1 经典单屏超大金色卷轴布局 === */
.formation-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 6px;
}
.formation-bar-v4 {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 5px 6px 6px;
  background: linear-gradient(180deg, rgba(166,130,82,0.55), rgba(198,166,118,0.28));
  border-bottom: 1.5px solid rgba(125,83,42,0.55);
}
.top-avatars-row {
  display: flex; align-items: center; gap: 5px; flex: 1; overflow-x: auto; padding-bottom: 2px;
}
.mini-avatar-v4 {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 7px; cursor: pointer;
}
.mini-avatar-v4.selected { transform: scale(1.05); filter: drop-shadow(0 0 6px #f59e0b); }
.mini-avatar-v4.empty {
  border: 1.5px dashed #8f5c30; background: rgba(45,25,12,0.18);
  display: flex; align-items: center; justify-content: center; color: #6e4722; font-size: 18px;
}
.mini-orbs {
  position: absolute; left: 0; right: 0; bottom: -3px;
  display: flex; justify-content: center; gap: 2px; z-index: 4;
}
.orb-gem {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fef08a, #dc2626 65%, #7f1d1d);
  border: 1px solid #fde047;
}
.top-side-btns { display: flex; gap: 4px; flex-shrink: 0; }
.wood-tall-btn {
  width: 28px; height: 50px; border-radius: 6px;
  background: linear-gradient(180deg, #6b3d1e, #3d1f0d);
  border: 1.5px solid #d9a130; color: #fde68a;
  font-family: var(--font-serif); font-size: 12px; font-weight: 900; line-height: 1.15;
  cursor: pointer; padding: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
.wood-tall-btn:active { transform: scale(0.94); }

.scroll-stage-v4 {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 5px;
  padding: 10px 5px 8px;
  align-items: stretch;
}
.slot-col-v4 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  min-height: 0;
}
.gear-slot-v4 {
  width: 54px; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
}
.slot-icon-frame {
  position: relative; width: 46px; height: 46px; border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 3px 7px rgba(30,14,6,0.45);
}
.slot-icon-frame .slot-lv {
  position: absolute; right: 2px; bottom: 2px; z-index: 3;
  font-size: 8.5px; font-weight: 900; line-height: 1;
  padding: 1px 3px; border-radius: 3px;
  background: rgba(24,12,6,0.82); color: #fde047;
  text-shadow: 0 1px 2px #000; pointer-events: none;
}
.slot-icon-frame .slot-badge {
  position: absolute; top: 1px; left: 1px; z-index: 3;
  font-size: 7.5px; font-weight: 800; line-height: 1.1;
  padding: 1px 3px; border-radius: 3px;
  background: rgba(24,12,6,0.72); color: #fcd34d;
  pointer-events: none;
}
.slot-caption-v4 {
  margin-top: 2px; font-size: 9px; line-height: 1.2; font-weight: 800; color: #2b1506;
  text-shadow: 0 0 3px #fff8e7; width: 54px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 经典右下发光【真气】圆球 */
.zhenqi-orb-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e0f2fe 0%, #38bdf8 34%, #1d4ed8 72%, #0f172a 100%);
  border: 2.5px solid #d9a130;
  box-shadow: 0 0 12px rgba(56,189,248,0.75), inset 0 0 10px rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center;
  animation: pulseDot 2.2s ease-in-out infinite;
}
.zhenqi-orb-core {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(186,230,253,0.4) 65%, transparent 100%);
}

/* 中央超大雕龙金色卷轴 */
.golden-scroll-v4 {
  position: relative;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 40%, #fffdf0 0%, #fce8a6 52%, #e4b855 100%);
  border: 2px solid #b57b1c;
  border-radius: 8px;
  padding: 4px 6px 6px;
  box-shadow: 0 6px 18px rgba(45,24,6,0.35), inset 0 0 22px rgba(202,138,4,0.35);
}
.scroll-roller-v4 {
  height: 14px;
  margin: -11px -10px 2px;
  background: linear-gradient(180deg, #fef08a 0%, #d9941e 50%, #7c470b 86%, #facc15 100%);
  border: 1.5px solid #5e381c;
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
}
.scroll-roller-v4.bottom { margin: 4px -10px -13px; }
.scroll-roller-v4::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fca5a5, #dc2626 60%, #7f1d1d);
  border: 1.5px solid #fef08a;
}

.scroll-top-row {
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.help-orb-btn {
  width: 21px; height: 21px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7c2d12, #3b1206);
  border: 1.5px solid #fde047; color: #fef08a;
  font-size: 12px; font-weight: 900; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.scroll-stars-v4 {
  font-size: 15px; color: #ea8a00; letter-spacing: 1px;
  text-shadow: 0 1px 1px #fff, 0 0 4px rgba(250,204,21,0.7);
}

.scroll-hero-stage {
  position: relative;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dragon-watermark {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
}
.hero-giant-box {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  padding: 6px 28px 2px;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.scroll-left-meta {
  position: absolute; left: 4px; top: 10px; z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
}
.vertical-name-v4 {
  writing-mode: vertical-rl;
  font-size: 19px; line-height: 1.1; font-weight: 900; color: #241005;
  text-shadow: 0 0 6px #fff8dc, 0 0 3px #fff;
  letter-spacing: 2px;
}
.quality-stamp-v4 {
  width: 22px; height: 22px; border-radius: 4px;
  color: #fef08a; border: 1.5px solid #fde047;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
.title-plaque-v4 {
  position: absolute; right: 3px; top: 6px; z-index: 6;
  writing-mode: vertical-rl;
  background: linear-gradient(180deg, #8b1d18, #4b0b08);
  color: #fef08a; border: 1.5px solid #f59e0b; border-radius: 4px;
  padding: 4px 2px; font-size: 10px; line-height: 1.1; font-weight: 800; letter-spacing: 1.5px;
  max-height: 132px; overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
}
.scroll-float-badges {
  position: absolute; right: 3px; bottom: 8px; z-index: 7;
  display: flex; flex-direction: column; gap: 4px;
}
.float-badge {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid #fde047; color: #fef08a;
  font-family: var(--font-serif); font-size: 9px; font-weight: 900;
  cursor: pointer; padding: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
}
.float-badge.b-bio   { background: radial-gradient(circle,#b91c1c,#5b110d); }
.float-badge.b-elem  { background: radial-gradient(circle,#92400e,#451a03); font-size: 8px; }
.float-badge.b-taiji { background: radial-gradient(circle,#f8fafc,#94a3b8); color: #1e293b; font-size: 13px; border-color: #d9a130; }

.scroll-lv-bar {
  position: relative; z-index: 6;
  display: flex; align-items: center; gap: 4px;
  margin-top: 4px; cursor: pointer; flex-shrink: 0;
}
.lv-tag-v4 {
  background: linear-gradient(180deg,#b91c1c,#69100c); color: #fef08a;
  border: 1.5px solid #f59e0b; border-radius: 4px;
  padding: 1px 6px; font-size: 11px; font-weight: 900; flex-shrink: 0;
}
.bt-tag-v4 { font-size: 11px; font-weight: 900; color: #5b110d; flex-shrink: 0; }
.lv-progress-wrap {
  position: relative; flex: 1; min-width: 0; height: 15px;
  background: rgba(38,16,8,0.78); border: 1px solid #d9a130; border-radius: 8px; overflow: hidden;
}
.lv-progress-fill { height: 100%; background: linear-gradient(90deg,#d97706,#fde047); }
.lv-progress-txt {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.scroll-4stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px 2px 3px;
  border-bottom: 1px solid rgba(154,101,26,0.35);
  font-size: 10px;
  flex-shrink: 0;
}
.scroll-4stats span {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; white-space: nowrap; overflow: hidden;
}
.scroll-4stats i {
  flex-shrink: 0;
  font-style: normal; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid #991b1b; color: #991b1b; background: rgba(255,245,220,0.85);
  font-size: 8.5px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center;
}
.scroll-4stats b {
  color: #3b1706; font-size: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.scroll-bottom-bonds {
  display: flex; align-items: center; gap: 6px; padding: 5px 2px 2px; flex-shrink: 0;
}
.role-seal-v4 {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #991b1b; background: rgba(255,248,225,0.85);
  font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.bonds-2col {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px 6px; min-width: 0; overflow: hidden; padding: 0 2px;
}
.bond-line {
  display: block; min-width: 0;
  font-size: 9.5px; line-height: 1.25; color: #786048;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bond-line.lit { color: #8b1d18; font-weight: 800; }
.skin-btn-v4 {
  flex-shrink: 0; padding: 4px 6px; border-radius: 5px;
  background: linear-gradient(180deg, #e7c06f, #b87c24);
  border: 1.5px solid #5e381c; color: #3b1706;
  font-family: var(--font-serif); font-size: 10px; font-weight: 900; line-height: 1.15;
  white-space: nowrap; cursor: pointer;
}

/* === 《江湖录》v5.0 自由5格武学选择弹窗样式 === */
.martial-filter-row {
  display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap;
}
.martial-pick-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; border-bottom: 1px solid rgba(138,90,43,0.22);
}
.martial-pick-icon {
  width: 38px; height: 38px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(30,14,6,0.35);
}
.martial-tag {
  font-size: 9px; font-weight: 800; padding: 1px 4px; border-radius: 3px; line-height: 1.2;
}
.martial-tag.cast  { background: #991b1b; color: #fef08a; }
.martial-tag.stat  { background: #1e3a8a; color: #dbeafe; }
.martial-tag.cur   { background: #15803d; color: #fff; }
.martial-tag.same  { background: #b45309; color: #fef3c7; }
.martial-tag.other { background: #4b5563; color: #f3f4f6; }
.martial-tag.idle  { background: rgba(94,56,28,0.14); color: #5c4738; }


/* === 《江湖录》v6.0 大尺寸内标字武功装备格 + 动态皮肤背景卷轴 + 皮肤阁 + 8v8两竖排战斗 === */

/* 1. 放大武功与装备格子 (62px x 64px)，字直接标在格子内部底部，强化/重数在右上角 */
.scroll-stage-v4 {
  grid-template-columns: 64px 1fr 64px !important;
  gap: 4px !important;
  padding: 8px 4px 6px !important;
}
.gear-slot-v4 {
  width: 62px !important;
}
.slot-icon-frame {
  position: relative;
  width: 62px !important;
  height: 64px !important;
  border-radius: 8px !important;
  overflow: hidden;
  border: 1.5px solid #b57b1c;
  box-shadow: 0 3px 8px rgba(30,14,6,0.48);
  background: #23130a;
}
.slot-icon-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}
.slot-icon-frame .slot-lv {
  position: absolute;
  top: 2px !important;
  right: 2px !important;
  bottom: auto !important;
  z-index: 4;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(20,9,4,0.86);
  color: #fde047;
  border: 1px solid rgba(253,224,71,0.45);
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.slot-in-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: rgba(20,9,4,0.84);
  color: #fef08a;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  pointer-events: none;
}
.zhenqi-slot-frame {
  position: relative;
  width: 62px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #1e3a8a 0%, #0f172a 100%);
  border: 1.5px solid #d9a130;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  box-shadow: 0 3px 8px rgba(15,23,42,0.55);
}
.zhenqi-slot-frame .zhenqi-orb-btn {
  width: 40px;
  height: 40px;
}

/* 2. 培养弹窗八维属性与天赋分类标签 */
.eight-stats-panel {
  background: linear-gradient(180deg, rgba(255,250,235,0.86), rgba(238,220,185,0.75));
  border: 1.5px solid rgba(154,101,26,0.55);
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 8px;
}
.eight-stats-title {
  font-size: 11px;
  font-weight: 900;
  color: #7f1d1d;
  margin-bottom: 5px;
  letter-spacing: 1px;
}
.eight-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px 4px;
}
.es-cell {
  background: rgba(65,30,10,0.08);
  border-radius: 5px;
  padding: 3px 2px;
  text-align: center;
}
.es-cell span {
  display: block;
  font-size: 9.5px;
  color: #6b4c32;
}
.es-cell b {
  display: block;
  font-size: 11.5px;
  color: #3b1706;
}
.talent-type-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 3px;
  vertical-align: middle;
}
.talent-type-tag.stat { background: #1d4ed8; color: #eff6ff; }
.talent-type-tag.cast { background: #b91c1c; color: #fef08a; }

/* 3. 动态皮肤专属背景渐变与 CSS 粒子特效层 */
.skin-worn-tag {
  position: absolute;
  right: 24px;
  top: 6px;
  z-index: 7;
  background: rgba(20,9,4,0.78);
  color: #fde047;
  border: 1px solid rgba(253,224,71,0.65);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
}
.skin-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.skin-fx-layer .sfx-p {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.skin-fx-layer .sfx-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 主题1: moon_lotus 月影红莲 */
.golden-scroll-v4.skin-theme-moon_lotus {
  background: radial-gradient(circle at 50% 24%, #4c1d95 0%, #701a75 38%, #450a0a 88%) !important;
  border-color: #f43f5e !important;
  box-shadow: 0 6px 20px rgba(136,19,55,0.55), inset 0 0 24px rgba(244,63,94,0.38) !important;
}
.fx-moon_lotus .sfx-aura {
  background: radial-gradient(circle at 50% 20%, rgba(254,205,211,0.32), transparent 58%);
  animation: skinPulseAura 3.4s ease-in-out infinite;
}
.fx-moon_lotus .sfx-p {
  width: 7px; height: 5px; border-radius: 65% 35%;
  background: radial-gradient(circle, #fda4af, #e11d48);
  box-shadow: 0 0 8px #fb7185;
  animation: skinFloatUp 5.2s linear infinite;
}

/* 主题2: snow_plum 寒梅飞雪 */
.golden-scroll-v4.skin-theme-snow_plum {
  background: radial-gradient(circle at 50% 28%, #e0f2fe 0%, #93c5fd 42%, #1e3a8a 100%) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 6px 20px rgba(30,58,138,0.48), inset 0 0 22px rgba(186,230,253,0.45) !important;
}
.fx-snow_plum .sfx-p {
  width: 5px; height: 5px;
  background: #ffffff;
  box-shadow: 0 0 6px #bae6fd;
  animation: skinFallSnow 4.6s linear infinite;
}
.fx-snow_plum .sfx-p.p2, .fx-snow_plum .sfx-p.p5 {
  width: 7px; height: 5px; border-radius: 60% 40%;
  background: #fda4af;
}

/* 主题3: thunder_gold 惊雷金光 */
.golden-scroll-v4.skin-theme-thunder_gold {
  background: radial-gradient(circle at 50% 30%, #78350f 0%, #451a03 55%, #1c1917 100%) !important;
  border-color: #facc15 !important;
  box-shadow: 0 6px 22px rgba(234,179,8,0.55), inset 0 0 26px rgba(250,204,21,0.42) !important;
}
.fx-thunder_gold .sfx-aura {
  background: conic-gradient(from 0deg at 50% 45%, transparent 0deg, rgba(253,224,71,0.22) 20deg, transparent 45deg, rgba(245,158,11,0.26) 90deg, transparent 130deg);
  animation: skinThunderSpin 8s linear infinite;
}
.fx-thunder_gold .sfx-p {
  width: 3px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #fde047, transparent);
  box-shadow: 0 0 10px #facc15;
  animation: skinThunderFlash 2.4s ease-in-out infinite;
}

/* 主题4: bamboo_jade 翠竹流萤 */
.golden-scroll-v4.skin-theme-bamboo_jade {
  background: radial-gradient(circle at 50% 30%, #a7f3d0 0%, #059669 48%, #064e3b 100%) !important;
  border-color: #34d399 !important;
  box-shadow: 0 6px 20px rgba(6,78,59,0.5), inset 0 0 22px rgba(110,231,183,0.4) !important;
}
.fx-bamboo_jade .sfx-p {
  width: 5px; height: 5px;
  background: #fef08a;
  box-shadow: 0 0 9px #bef264, 0 0 14px #34d399;
  animation: skinFirefly 4.2s ease-in-out infinite;
}

/* 主题5: desert_fire 大漠烈焰 */
.golden-scroll-v4.skin-theme-desert_fire {
  background: radial-gradient(circle at 50% 35%, #ea580c 0%, #991b1b 52%, #290907 100%) !important;
  border-color: #fb923c !important;
  box-shadow: 0 6px 22px rgba(153,27,27,0.58), inset 0 0 26px rgba(251,146,60,0.45) !important;
}
.fx-desert_fire .sfx-p {
  width: 5px; height: 7px; border-radius: 50% 50% 30% 70%;
  background: radial-gradient(circle, #fef08a, #f97316);
  box-shadow: 0 0 8px #ef4444;
  animation: skinFloatUp 3.2s linear infinite;
}

/* 主题6: zen_gold 金禅佛光 */
.golden-scroll-v4.skin-theme-zen_gold {
  background: radial-gradient(circle at 50% 35%, #fef9c3 0%, #f59e0b 52%, #78350f 100%) !important;
  border-color: #fde047 !important;
  box-shadow: 0 6px 22px rgba(180,83,9,0.52), inset 0 0 26px rgba(254,240,138,0.55) !important;
}
.fx-zen_gold .sfx-aura {
  background: radial-gradient(circle at 50% 42%, rgba(254,249,195,0.45) 0%, rgba(250,204,21,0.16) 44%, transparent 72%);
  animation: skinPulseAura 2.8s ease-in-out infinite;
}
.fx-zen_gold .sfx-p {
  width: 6px; height: 6px;
  background: #fef9c3;
  box-shadow: 0 0 10px #fde047;
  animation: skinFloatUp 4.8s ease-in-out infinite;
}

/* 粒子位置分配 */
.skin-fx-layer .p1 { left: 12%; top: 18%; animation-delay: 0s; }
.skin-fx-layer .p2 { left: 28%; top: 44%; animation-delay: 0.7s; }
.skin-fx-layer .p3 { left: 48%; top: 24%; animation-delay: 1.3s; }
.skin-fx-layer .p4 { left: 68%; top: 58%; animation-delay: 1.9s; }
.skin-fx-layer .p5 { left: 82%; top: 28%; animation-delay: 2.5s; }
.skin-fx-layer .p6 { left: 36%; top: 72%; animation-delay: 3.1s; }

/* 深色皮肤主题下卷轴文字高亮可读性保障 */
.golden-scroll-v4.skin-theme-moon_lotus .vertical-name-v4,
.golden-scroll-v4.skin-theme-thunder_gold .vertical-name-v4,
.golden-scroll-v4.skin-theme-desert_fire .vertical-name-v4 {
  color: #fef08a;
  text-shadow: 0 1px 4px #000, 0 0 8px rgba(251,191,36,0.7);
}
.golden-scroll-v4.skin-theme-moon_lotus .scroll-4stats b,
.golden-scroll-v4.skin-theme-thunder_gold .scroll-4stats b,
.golden-scroll-v4.skin-theme-desert_fire .scroll-4stats b,
.golden-scroll-v4.skin-theme-moon_lotus .bt-tag-v4,
.golden-scroll-v4.skin-theme-thunder_gold .bt-tag-v4,
.golden-scroll-v4.skin-theme-desert_fire .bt-tag-v4 {
  color: #fef3c7;
}
.golden-scroll-v4.skin-theme-moon_lotus .bond-line,
.golden-scroll-v4.skin-theme-thunder_gold .bond-line,
.golden-scroll-v4.skin-theme-desert_fire .bond-line {
  color: #e7d5b2;
}
.golden-scroll-v4.skin-theme-moon_lotus .bond-line.lit,
.golden-scroll-v4.skin-theme-thunder_gold .bond-line.lit,
.golden-scroll-v4.skin-theme-desert_fire .bond-line.lit {
  color: #fde047;
}

@keyframes skinFallSnow {
  0% { transform: translate(0, -24px) rotate(0deg); opacity: 0; }
  15% { opacity: 0.92; }
  100% { transform: translate(-24px, 240px) rotate(220deg); opacity: 0; }
}
@keyframes skinFloatUp {
  0% { transform: translate(0, 120px) scale(0.7); opacity: 0; }
  20% { opacity: 0.95; }
  100% { transform: translate(16px, -110px) scale(1.15); opacity: 0; }
}
@keyframes skinFirefly {
  0%, 100% { transform: translate(0, 0) scale(0.75); opacity: 0.25; }
  50% { transform: translate(14px, -22px) scale(1.25); opacity: 1; }
}
@keyframes skinThunderFlash {
  0%, 100% { opacity: 0; transform: scaleY(0.5); }
  45% { opacity: 0; }
  50% { opacity: 1; transform: scaleY(1.3); }
  56% { opacity: 0.15; }
  60% { opacity: 0.95; transform: scaleY(1.1); }
  70% { opacity: 0; }
}
@keyframes skinThunderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes skinPulseAura {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* 4. 名侠皮肤阁弹窗样式 */
.skin-banner-tip {
  background: linear-gradient(90deg, #5b110d, #8b1d18, #5b110d);
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 9px;
  text-align: center;
}
.skin-card {
  background: rgba(255,250,238,0.92);
  border: 1.5px solid #a67c46;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(45,25,10,0.12);
}
.skin-card.worn {
  background: linear-gradient(180deg, #fefce8, #fef3c7);
  box-shadow: 0 0 10px rgba(245,158,11,0.35);
}
.skin-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #4b311c;
  background: rgba(94,56,28,0.1);
  border-radius: 10px;
  padding: 1px 6px;
}
.skin-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #d9a130;
}
.skin-bonus-tags {
  font-size: 10.5px;
  color: #991b1b;
  margin-top: 4px;
}

/* 5. 八人布阵弹窗槽位网格 */
.deploy-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.deploy-slot-box {
  border-radius: 6px;
  padding: 5px 3px;
  text-align: center;
  border: 1.5px solid #a67c46;
  background: rgba(255,250,236,0.85);
}
.deploy-slot-box.filled {
  background: linear-gradient(180deg, #fef3c7, #fde68a);
  border-color: #b45309;
}
.deploy-slot-box.locked {
  background: rgba(60,48,38,0.16);
  border-style: dashed;
  border-color: #8c7a68;
  color: #6b5b4b;
}
.ds-num { font-size: 9px; color: #78350f; font-weight: 800; }
.ds-name { font-size: 11px; font-weight: 900; color: #2b1506; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-lock { font-size: 9.5px; font-weight: 800; color: #6b5b4b; margin-top: 1px; }

/* 6. 8v8 两竖排战斗界面 */
.battle-arena-v6 {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.battle-hud-v6 {
  padding: 5px 8px !important;
  gap: 6px;
}
.battle-round-meta {
  min-width: 0;
  flex: 1;
}
.battle-title-v6 {
  font-size: 12px;
  font-weight: 900;
  color: #fde68a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.battle-sub-v6 {
  font-size: 10.5px;
  font-weight: 700;
  color: #fed7aa;
  margin-top: 1px;
}
.battle-sub-v6 b { color: #fef08a; }

.final-clash-banner {
  flex-shrink: 0;
  text-align: center;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #3b0d06;
  background: linear-gradient(90deg, #b45309 0%, #fde047 35%, #fef9c3 50%, #fde047 65%, #b45309 100%);
  border-bottom: 1.5px solid #fef08a;
  box-shadow: 0 0 14px rgba(250,204,21,0.85);
  animation: finalClashGlow 1.1s ease-in-out infinite;
  z-index: 12;
}
@keyframes finalClashGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.24); box-shadow: 0 0 22px rgba(254,240,138,0.95); }
}

.battle-field-v6 {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: 118px 1fr 118px;
  gap: 4px;
  padding: 6px 4px;
  align-items: stretch;
  overflow: hidden;
}
.battle-col-v6 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 0;
  z-index: 6;
}
.col-side-tag {
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  padding: 1px 6px;
  border-radius: 10px;
  margin-bottom: 1px;
  letter-spacing: 1px;
}
.col-side-tag.ally {
  background: rgba(30,58,138,0.84);
  color: #dbeafe;
  border: 1px solid #60a5fa;
}
.col-side-tag.enemy {
  background: rgba(127,29,29,0.84);
  color: #fee2e2;
  border: 1px solid #f87171;
}

.battle-center-v6 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 2px;
  pointer-events: none;
  z-index: 8;
}
.battle-center-banner {
  text-align: center;
  width: 100%;
}
.skill-banner-pill {
  display: inline-block;
  max-width: 100%;
  background: rgba(38,12,8,0.88);
  color: #fde047;
  border: 1.5px solid #d9a130;
  border-radius: 14px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.skill-banner-pill.final {
  background: linear-gradient(90deg, #7f1d1d, #b45309);
  border-color: #fef08a;
  color: #fef9c3;
}
.skill-extra-note {
  margin-top: 4px;
  background: rgba(20,9,4,0.8);
  color: #fca5a5;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}
.skill-idle-tip {
  background: rgba(28,14,8,0.68);
  color: #fde68a;
  border: 1px solid rgba(217,161,48,0.5);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}
.battle-center-hint {
  font-size: 9.5px;
  color: #fef3c7;
  background: rgba(20,10,5,0.62);
  padding: 2px 6px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.25;
}

/* 紧凑横条卡（头像 + 名字 + 血条 + 怒气条） */
.unit-bar-v6 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(24,13,7,0.86);
  border: 1.5px solid #a67c46;
  border-radius: 7px;
  padding: 3px 4px;
  color: #fef3c7;
  transition: transform 0.16s, box-shadow 0.16s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.42);
}
.unit-bar-v6.enemy {
  flex-direction: row-reverse;
  border-color: #991b1b;
}
.unit-bar-v6.dead {
  opacity: 0.28;
  filter: grayscale(1);
}
.unit-bar-v6.lunge-ally {
  transform: translateX(22px) scale(1.06);
  border-color: #fde047;
  box-shadow: 0 0 14px #f59e0b;
  z-index: 16;
}
.unit-bar-v6.lunge-enemy {
  transform: translateX(-22px) scale(1.06);
  border-color: #ef4444;
  box-shadow: 0 0 14px #ef4444;
  z-index: 16;
}
.unit-bar-v6.hit-flash {
  animation: hitFlash 0.34s ease-out;
}
.unit-bar-v6.ult-ready {
  border-color: #fde047;
  box-shadow: 0 0 11px rgba(250,204,21,0.9);
  cursor: pointer;
}

.unit-avatar-v6 {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.unit-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.unit-avatar-inner .avatar-weapon-seal {
  display: none;
}

/* 状态特效直接叠加在弟子头像上 */
.fx-shield-overlay {
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  border: 2px solid #38bdf8;
  background: radial-gradient(circle, rgba(186,230,253,0.16) 45%, rgba(56,189,248,0.42) 100%);
  box-shadow: 0 0 8px rgba(56,189,248,0.85), inset 0 0 6px rgba(224,242,254,0.75);
  pointer-events: none;
  z-index: 6;
}
.fx-burn-overlay {
  position: absolute;
  inset: -1px;
  border-radius: 7px;
  border: 1.5px solid #f97316;
  box-shadow: inset 0 -8px 10px rgba(239,68,68,0.68), 0 0 6px rgba(249,115,22,0.85);
  pointer-events: none;
  z-index: 7;
  animation: fxBurnFlicker 0.8s ease-in-out infinite;
}
.fx-burn-overlay span {
  position: absolute;
  right: -3px;
  bottom: -4px;
  font-size: 10px;
  line-height: 1;
}
.fx-poison-overlay {
  position: absolute;
  inset: -1px;
  border-radius: 7px;
  border: 1.5px solid #a855f7;
  background: radial-gradient(circle at 30% 70%, rgba(168,85,247,0.45), transparent 65%);
  box-shadow: inset 0 0 8px rgba(168,85,247,0.75);
  pointer-events: none;
  z-index: 7;
  animation: fxPoisonPulse 1.2s ease-in-out infinite;
}
.fx-poison-overlay span {
  position: absolute;
  left: -3px;
  bottom: -3px;
  font-size: 10px;
  color: #e9d5ff;
  text-shadow: 0 0 4px #581c87;
  line-height: 1;
}
.fx-stun-overlay {
  position: absolute;
  left: -2px;
  right: -2px;
  top: -6px;
  display: flex;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: #fde047;
  text-shadow: 0 0 5px #f59e0b, 0 1px 2px #000;
  pointer-events: none;
  z-index: 8;
  animation: fxStunWobble 0.9s ease-in-out infinite;
}
.fx-sword-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 9;
  background: linear-gradient(180deg, #d97706, #92400e);
  color: #fef08a;
  border: 1px solid #fde047;
  font-size: 8px;
  font-weight: 900;
  padding: 0 3px;
  border-radius: 4px;
  line-height: 1.2;
}
.fx-boss-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  z-index: 9;
  background: #991b1b;
  color: #fde047;
  border: 1px solid #f59e0b;
  font-size: 8px;
  font-weight: 900;
  padding: 0 3px;
  border-radius: 4px;
  line-height: 1.2;
}
.fx-ult-ring {
  position: absolute;
  inset: -3px;
  border-radius: 8px;
  border: 2px solid #fde047;
  box-shadow: 0 0 10px #f59e0b;
  pointer-events: none;
  z-index: 8;
  animation: pulseDot 1s ease-in-out infinite;
}

@keyframes fxBurnFlicker { 0%,100% { opacity: 0.78; } 50% { opacity: 1; } }
@keyframes fxPoisonPulse { 0%,100% { opacity: 0.72; } 50% { opacity: 1; } }
@keyframes fxStunWobble { 0%,100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }

.unit-info-v6 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.unit-name-row-v6 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}
.unit-bar-v6.enemy .unit-name-row-v6 {
  flex-direction: row-reverse;
}
.unit-name-v6 {
  font-size: 10px;
  font-weight: 800;
  color: #fef3c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unit-ult-pill {
  font-size: 8px;
  font-weight: 900;
  background: #dc2626;
  color: #fef08a;
  border: 1px solid #fde047;
  border-radius: 3px;
  padding: 0 3px;
  flex-shrink: 0;
}
.hp-bar-v6 {
  width: 100%;
  height: 5px;
  background: #1c1917;
  border-radius: 3px;
  overflow: hidden;
}
.hp-fill-v6 {
  height: 100%;
  transition: width 0.25s;
}
.hp-fill-v6.ally { background: linear-gradient(90deg, #16a34a, #4ade80); }
.hp-fill-v6.enemy { background: linear-gradient(90deg, #b91c1c, #f87171); }
.rage-bar-v6 {
  width: 100%;
  height: 3px;
  background: #1c1917;
  border-radius: 2px;
  overflow: hidden;
}
.rage-fill-v6 {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #fde047);
  transition: width 0.25s;
}

.battle-log-v6 {
  flex-shrink: 0;
  height: 68px;
  overflow-y: auto;
  background: rgba(24,13,8,0.9);
  color: #f3e8d2;
  padding: 4px 8px;
  font-size: 10.5px;
  line-height: 1.4;
  border-top: 1.5px solid #d9a130;
}


/* === 《江湖录》v7.0 独立全景皮肤立绘 + 两段式入场大动画与循环微动作 === */
.skin-fullscene-stage {
  position: absolute;
  inset: -2px -4px -2px -4px;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1;
  background: #1a0f0a;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.55);
}
.skin-fullscene-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  display: block;
  transform-origin: 50% 42%;
}
/* 阶段一：2.2s 入场大动画（镜头从特写拉远 + 亮光绽放） */
.skin-fullscene-stage.is-entering .skin-fullscene-img {
  animation: skinEntranceZoom 2.1s cubic-bezier(.16,.84,.44,1) forwards;
}
@keyframes skinEntranceZoom {
  0%   { transform: scale(1.28) translateY(14px); filter: brightness(1.45) contrast(1.1); }
  45%  { transform: scale(1.08) translateY(4px);  filter: brightness(1.15) contrast(1.04); }
  100% { transform: scale(1.02) translateY(0);    filter: brightness(1.02) contrast(1.02); }
}

/* 阶段二：入场后自动无缝循环的专属微动作待机 */
.skin-fullscene-stage:not(.is-entering).action-throne_seal .skin-fullscene-img {
  animation: idleThroneSeal 5.2s ease-in-out infinite;
}
@keyframes idleThroneSeal {
  0%,100% { transform: scale(1.02) translateY(0); filter: brightness(1.0); }
  50%     { transform: scale(1.055) translate(-2px,-3px); filter: brightness(1.09) saturate(1.08); }
}
.skin-fullscene-stage:not(.is-entering).action-tea_sip .skin-fullscene-img {
  animation: idleTeaSip 6s ease-in-out infinite;
}
@keyframes idleTeaSip {
  0%,100% { transform: scale(1.02) rotate(0deg); }
  45%     { transform: scale(1.045) translateY(-2px) rotate(-0.6deg); }
  70%     { transform: scale(1.035) translateY(1px) rotate(0.4deg); }
}
.skin-fullscene-stage:not(.is-entering).action-flower_gaze .skin-fullscene-img {
  animation: idleFlowerGaze 5.5s ease-in-out infinite;
}
@keyframes idleFlowerGaze {
  0%,100% { transform: scale(1.02) translateY(0); filter: saturate(1.02); }
  50%     { transform: scale(1.05) translate(2px,-4px) rotate(0.7deg); filter: saturate(1.14) brightness(1.07); }
}
.skin-fullscene-stage:not(.is-entering).action-lotus_pond .skin-fullscene-img {
  animation: idleLotusPond 6.2s ease-in-out infinite;
}
@keyframes idleLotusPond {
  0%,100% { transform: scale(1.02) translateY(0); filter: brightness(1.0); }
  50%     { transform: scale(1.045) translateY(-3px); filter: brightness(1.08); }
}
.skin-fullscene-stage:not(.is-entering).action-desert_wind .skin-fullscene-img {
  animation: idleDesertWind 4.8s ease-in-out infinite;
}
@keyframes idleDesertWind {
  0%,100% { transform: scale(1.02) translateX(0); }
  50%     { transform: scale(1.05) translateX(-3px) translateY(-2px); filter: contrast(1.06); }
}

.skin-live-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 3;
}
.skin-entrance-banner {
  position: absolute; left: 6px; right: 6px; bottom: 18px; z-index: 8;
  background: linear-gradient(90deg, rgba(24,8,4,0), rgba(92,16,12,0.92) 18%, rgba(45,10,8,0.92) 82%, rgba(24,8,4,0));
  border-top: 1.5px solid #fde047; border-bottom: 1.5px solid #fde047;
  padding: 6px 8px; text-align: center; pointer-events: none;
  animation: skinBannerFade 2.2s ease-out forwards;
}
.skin-ent-sub { font-size: 9.5px; color: #fcd34d; letter-spacing: 2px; }
.skin-ent-title { font-size: 16px; font-weight: 900; color: #fef08a; letter-spacing: 3px; text-shadow: 0 2px 6px #000; }
.skin-ent-quote { font-size: 10px; color: #fde68a; opacity: 0.92; margin-top: 2px; }
@keyframes skinBannerFade {
  0% { opacity: 0; transform: translateY(10px) scale(0.95); }
  15%, 78% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-6px); }
}
.skin-replay-btn {
  position: absolute; left: 6px; bottom: 8px; z-index: 8;
  background: rgba(28,12,6,0.78); color: #fef08a;
  border: 1px solid #d9a130; border-radius: 12px;
  padding: 2px 7px; font-size: 9.5px; font-weight: 800; font-family: var(--font-serif);
  cursor: pointer;
}

.skin-fullscene-stage:not(.is-entering).action-zen_lotus .skin-fullscene-img { animation: idleThroneSeal 5.8s ease-in-out infinite; }


/* === 《江湖录》v9.0 严丝合缝全铺满皮肤卷轴 + 终极破框溢出 Canvas === */
.golden-scroll-v4.has-full-skin {
  background: #140a06 !important;
  overflow: hidden !important;
}
.golden-scroll-v4.has-full-skin > *:not(.skin-fullbleed-bg):not(.skin-overflow-canvas) {
  position: relative;
  z-index: 6;
}
.skin-fullbleed-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.skin-fullbleed-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 24%;
  display: block;
}
.skin-fullbleed-bg.is-entering .skin-fullbleed-img {
  animation: skinEntranceZoom 2.0s cubic-bezier(.16,.84,.44,1) forwards;
}
.skin-bg-fallback {
  position: relative;
  z-index: 1;
  transition: opacity 0.18s ease-out;
}
.skin-fullbleed-bg.is-canvas-ready .skin-bg-fallback {
  opacity: 0;
}
.skin-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}
.skin-bottom-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 112px;
  background: linear-gradient(180deg, rgba(14,7,4,0) 0%, rgba(16,8,4,0.72) 45%, rgba(10,4,2,0.92) 100%);
  pointer-events: none;
  z-index: 3;
}
.skin-overflow-canvas {
  position: absolute;
  left: -18px; top: -20px;
  width: calc(100% + 36px);
  height: calc(100% + 40px);
  pointer-events: none;
  z-index: 16;
}
.golden-scroll-v4.has-full-skin .scroll-4stats { border-bottom-color: rgba(253,224,71,0.35); }
.golden-scroll-v4.has-full-skin .scroll-4stats b { color: #fef3c7 !important; text-shadow: 0 1px 3px #000; }
.golden-scroll-v4.has-full-skin .bt-tag-v4 { color: #fde047 !important; text-shadow: 0 1px 3px #000; }
.golden-scroll-v4.has-full-skin .bond-line { color: #e2d5bf !important; text-shadow: 0 1px 2px #000; }
.golden-scroll-v4.has-full-skin .bond-line.lit { color: #fde047 !important; font-weight: 800; text-shadow: 0 1px 3px #000; }
.golden-scroll-v4.has-full-skin .vertical-name-v4 { color: #fef08a !important; text-shadow: 0 2px 6px #000, 0 0 8px rgba(180,83,9,0.9) !important; }

.skin-name-tag {
  position: absolute !important;
  top: 2px !important;
  right: 30px !important;
  z-index: 8 !important;
  background: rgba(24,10,4,0.82) !important;
  color: #fde047 !important;
  border: 1px solid #d9a130 !important;
  border-radius: 10px !important;
  padding: 1px 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.45);
}


/* === 《江湖录》v10.0 首页纯透明皮肤抠图立绘无缝融合（彻底消除方形背景贴图！） === */
.home-hero-slot.has-home-skin {
  margin: 0 -16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.home-hero-slot.lead.has-home-skin {
  margin: 0 -10px !important;
}
.home-skin-cutout-wrap,
.home-skin-aura-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  background: transparent;
}
.home-skin-cutout-img {
  position: relative;
  z-index: 3;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: heroFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--skin-glow, rgba(253,224,71,0.72))) drop-shadow(0 6px 8px rgba(30,14,6,0.45));
}
.home-skin-backglow {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 146px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--skin-glow, rgba(253,224,71,0.48)) 0%, var(--skin-glow-mid, rgba(245,158,11,0.18)) 48%, transparent 74%);
  pointer-events: none;
  z-index: 1;
  animation: homeSkinPulse 3.4s ease-in-out infinite;
}
.home-skin-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 1.5px dashed var(--skin-ring, rgba(253,224,71,0.62));
  box-shadow: 0 0 12px var(--skin-glow, rgba(245,158,11,0.45));
  pointer-events: none;
  z-index: 1;
  opacity: 0.68;
  animation: spinSlow 14s linear infinite;
}
.home-skin-cutout-wrap.is-leg .home-skin-ring,
.home-skin-aura-wrap.is-leg .home-skin-ring {
  width: 132px;
  height: 132px;
  border-width: 2px;
  opacity: 0.85;
  box-shadow: 0 0 18px var(--skin-glow, rgba(253,224,71,0.72));
}
@keyframes homeSkinPulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.07); }
}

/* 皮肤五大主题专属色相/流光特效（无独立抠图时平滑赋能原立绘，无任何矩形底框！） */
.theme-thunder_gold {
  --skin-glow: rgba(253,224,71,0.68);
  --skin-glow-mid: rgba(167,139,250,0.28);
  --skin-ring: #fde047;
}
.home-skin-aura-wrap.theme-thunder_gold .hero-cutout-img {
  filter: saturate(1.16) contrast(1.06) drop-shadow(0 0 10px rgba(253,224,71,0.85)) drop-shadow(0 0 18px rgba(167,139,250,0.52)) drop-shadow(0 6px 8px rgba(28,14,6,0.45)) !important;
}
.theme-snow_plum {
  --skin-glow: rgba(125,211,252,0.65);
  --skin-glow-mid: rgba(251,113,133,0.28);
  --skin-ring: #bae6fd;
}
.home-skin-aura-wrap.theme-snow_plum .hero-cutout-img {
  filter: brightness(1.06) saturate(1.12) drop-shadow(0 0 10px rgba(186,230,253,0.85)) drop-shadow(0 0 16px rgba(251,113,133,0.48)) drop-shadow(0 6px 8px rgba(28,14,6,0.4)) !important;
}
.theme-moon_lotus {
  --skin-glow: rgba(244,63,94,0.65);
  --skin-glow-mid: rgba(251,146,60,0.28);
  --skin-ring: #fda4af;
}
.home-skin-aura-wrap.theme-moon_lotus .hero-cutout-img {
  filter: saturate(1.22) contrast(1.05) drop-shadow(0 0 10px rgba(244,63,94,0.85)) drop-shadow(0 0 16px rgba(251,146,60,0.45)) drop-shadow(0 6px 8px rgba(28,10,8,0.45)) !important;
}
.theme-bamboo_jade {
  --skin-glow: rgba(110,231,183,0.65);
  --skin-glow-mid: rgba(103,232,249,0.28);
  --skin-ring: #6ee7b7;
}
.home-skin-aura-wrap.theme-bamboo_jade .hero-cutout-img {
  filter: brightness(1.05) saturate(1.14) drop-shadow(0 0 10px rgba(110,231,183,0.85)) drop-shadow(0 0 16px rgba(103,232,249,0.48)) drop-shadow(0 6px 8px rgba(20,30,26,0.4)) !important;
}
.theme-zen_gold {
  --skin-glow: rgba(251,191,36,0.72);
  --skin-glow-mid: rgba(245,158,11,0.32);
  --skin-ring: #fcd34d;
}
.home-skin-aura-wrap.theme-zen_gold .hero-cutout-img {
  filter: sepia(0.12) saturate(1.2) brightness(1.04) drop-shadow(0 0 11px rgba(253,224,71,0.88)) drop-shadow(0 0 18px rgba(245,158,11,0.5)) drop-shadow(0 6px 8px rgba(35,18,6,0.45)) !important;
}

.home-skin-pill {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  z-index: 6;
  background: linear-gradient(90deg, rgba(28,12,6,0.78), rgba(62,24,10,0.86), rgba(28,12,6,0.78));
  color: #fef08a;
  border: 1px solid rgba(253,224,71,0.72);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}


/* =========================================================================
   《江湖录》v12.0 1:1【人物皮肤】左右分栏弹窗
   ========================================================================= */
.skin-modal-v12 {
  width: 96%;
  max-width: 398px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f7eed9 0%, #ead8b5 100%);
  border: 2.5px solid #6b3c1b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(248, 218, 124, 0.55);
  color: #2b180e;
}
.skin-m-header {
  position: relative;
  flex-shrink: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 6px),
    linear-gradient(180deg, #5c3118 0%, #3b1d0d 55%, #2b1308 100%);
  border-bottom: 2px solid #d9a130;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.38);
}
.skin-m-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fde68a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
}
.skin-m-close {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1.5px solid #fca5a5;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  color: #fff7ed;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}
.skin-m-close:active { transform: translateY(-50%) scale(0.92); }

/* 中上部左右双栏：左 72% 主预览 + 右 28% 竖排头像栏 */
.skin-m-top {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 8px 8px 6px;
  background: linear-gradient(180deg, rgba(94,56,28,0.10), rgba(94,56,28,0.02));
  border-bottom: 1.5px solid rgba(143, 92, 48, 0.35);
}
.skin-m-left {
  flex: 0 0 71%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skin-m-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid #b47b26;
  border-radius: 6px;
  background: linear-gradient(180deg, #2b150a, #170a05);
  box-shadow: 0 4px 12px rgba(45, 22, 8, 0.38), inset 0 0 0 1px rgba(253, 224, 71, 0.45);
  overflow: hidden;
}
.skin-m-scroll.is-default {
  background: linear-gradient(180deg, #faf2df 0%, #ebd8b3 100%);
}
.skin-m-roller {
  height: 9px;
  background: linear-gradient(90deg, #5c3114 0%, #d9a130 16%, #fef08a 50%, #d9a130 84%, #5c3114 100%);
  border-bottom: 1px solid #6b3c1b;
  flex-shrink: 0;
}
.skin-m-roller.bottom {
  border-bottom: none;
  border-top: 1px solid #6b3c1b;
}
.skin-m-canvas-box {
  position: relative;
  width: 100%;
  height: 222px;
  overflow: hidden;
}
.skin-m-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}
.skin-m-scroll-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background: linear-gradient(180deg, rgba(16,8,4,0) 0%, rgba(16,8,4,0.82) 100%);
  pointer-events: none;
}
.skin-m-default-bg {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #fff9eb 0%, #ebd7b0 72%, #d9be8c 100%);
}
.skin-m-dragon-wm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.skin-m-default-hero {
  position: relative;
  z-index: 2;
  width: 88%;
  height: 92%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.skin-m-q-stamp {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  border: 1px solid rgba(254, 240, 138, 0.85);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}
.skin-m-name-plaque {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.skin-m-name-gold {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #fffbeb 0%, #fde047 52%, #d97706 100%);
  -webkit-background-clip: text;
  color: #fde047;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.88), 0 0 10px rgba(180, 83, 9, 0.65);
}
.skin-m-char-sub {
  font-size: 10px;
  font-weight: 700;
  color: #fde68a;
  background: rgba(30, 14, 6, 0.72);
  border: 1px solid rgba(217, 161, 48, 0.55);
  border-radius: 8px;
  padding: 0 7px;
  margin-top: 1px;
}

.skin-m-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.skin-m-action-btn {
  min-width: 112px;
  padding: 6px 18px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 4px !important;
}
.skin-m-action-btn.is-worn-disabled {
  opacity: 0.68;
  filter: grayscale(0.25);
  cursor: default;
}
.skin-m-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(45, 20, 8, 0.88);
  border: 1px solid #d9a130;
  color: #fde047;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 右侧竖排皮肤头像切换栏（28%宽） */
.skin-m-right {
  flex: 1;
  min-width: 0;
  max-height: 276px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 3px 2px 6px;
}
.skin-m-right::-webkit-scrollbar { width: 3px; }
.skin-m-right::-webkit-scrollbar-thumb { background: rgba(94, 56, 28, 0.4); border-radius: 2px; }

.skin-m-av-item {
  position: relative;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.14s;
}
.skin-m-av-item:active { transform: scale(0.95); }
.skin-m-av-frame {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #8f5c30;
  background: #2b180e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.skin-m-av-item.selected .skin-m-av-frame {
  border-color: #fde047 !important;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.85), 0 0 12px rgba(253, 224, 71, 0.9);
}
.skin-m-av-item.locked .skin-m-av-frame img {
  filter: brightness(0.72) saturate(0.75);
}
.skin-m-av-frame img,
.skin-sel-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.skin-m-av-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fde68a;
  font-size: 20px;
  font-weight: 900;
}
.skin-m-av-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(24, 10, 4, 0.78);
  color: #fef3c7;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  padding: 1px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skin-m-lock-tag {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  font-size: 8px;
  font-weight: 800;
  padding: 0 3px;
  border-radius: 3px;
}
.skin-m-worn-badge {
  margin-top: -6px;
  position: relative;
  z-index: 4;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  color: #fef08a;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: 0 7px;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.45;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

/* 下方可滚动属性区：皮肤故事 + 皮肤总属性 */
.skin-m-info-scroll {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  padding: 6px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skin-m-sec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #4b2612 0%, #6b3b1c 55%, #4b2612 100%);
  border: 1px solid #b47b26;
  color: #fde68a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}
.skin-m-sec-sub {
  font-size: 10px;
  font-weight: 700;
  color: #fed7aa;
  letter-spacing: 0;
}
.skin-m-story-box,
.skin-m-total-box {
  background: rgba(255, 250, 238, 0.78);
  border: 1px solid rgba(143, 92, 48, 0.42);
  border-radius: 6px;
  padding: 7px 9px;
}
.skin-m-quote {
  font-size: 11.5px;
  font-weight: 800;
  color: #8b1d18;
  font-style: italic;
  margin-bottom: 3px;
}
.skin-m-story-txt {
  font-size: 11px;
  color: #4a3525;
  line-height: 1.5;
  margin-bottom: 6px;
}
.skin-m-single-stats {
  border-top: 1px dashed rgba(143, 92, 48, 0.35);
  padding-top: 6px;
}
.skin-core-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 10px;
  margin-bottom: 5px;
}
.skin-core-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #2b180e;
}
.skin-core-stat b {
  color: #991b1b;
  font-weight: 900;
}
.stat-red-orb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ef4444 0%, #991b1b 100%);
  border: 1.5px solid #fde047;
  color: #fffbeb;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(127, 29, 29, 0.45);
}
.skin-sec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.stat-red-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
  border: 1px solid #fca5a5;
  color: #fef08a;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.skin-stat-empty {
  font-size: 11px;
  color: #6b5340;
  text-align: center;
  padding: 3px 0;
}

/* =========================================================================
   《江湖录》v12.0 宣纸竹林 8v8 主战场 + 四段式电影大招 + 水墨大胜重播结算
   ========================================================================= */
.battle-arena-v12 {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 252, 240, 0.85) 0%, rgba(235, 224, 196, 0.92) 68%, rgba(208, 198, 168, 0.96) 100%),
    linear-gradient(180deg, #efe7d2 0%, #f6efe0 50%, #e1d4b5 100%);
  color: #2b180e;
}
.bamboo-side-trim {
  position: absolute;
  top: 42px;
  bottom: 54px;
  width: 24px;
  pointer-events: none;
  z-index: 3;
}
.bamboo-side-trim.left { left: 0; }
.bamboo-side-trim.right { right: 0; transform: scaleX(-1); }
.bamboo-side-trim svg { width: 100%; height: 100%; display: block; }

/* 顶部深木横梁 + 火焰书法「第一轮/第二轮/第三轮」 */
.battle-beam-top {
  position: relative;
  flex-shrink: 0;
  height: 44px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 7px),
    linear-gradient(180deg, #572e16 0%, #381c0c 58%, #241006 100%);
  border-bottom: 2px solid #d9a130;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.42);
  z-index: 14;
}
.battle-beam-title {
  max-width: 112px;
  font-size: 11px;
  font-weight: 800;
  color: #fde68a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.battle-round-flame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 12px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(185, 28, 28, 0.92), rgba(69, 10, 10, 0.95));
  border: 1.5px solid #fde047;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.78), inset 0 0 8px rgba(254, 240, 138, 0.35);
}
.flame-round-text {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fef08a;
  text-shadow: 0 0 6px #f97316, 0 2px 3px #450a0a;
}
.flame-sub-pill {
  font-size: 10px;
  font-weight: 900;
  color: #fed7aa;
  background: rgba(0, 0, 0, 0.38);
  padding: 0 4px;
  border-radius: 6px;
}
.battle-auto-btn {
  padding: 3px 7px !important;
  font-size: 10.5px !important;
}

/* 8v8 宣纸竹林主战场网格 */
.battle-field-v12 {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: 126px 1fr 126px;
  gap: 3px;
  padding: 6px 5px;
  align-items: stretch;
  overflow: hidden;
  z-index: 5;
}
.battle-col-v12 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 0;
  z-index: 6;
}
.battle-center-v12 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 2px;
  pointer-events: none;
  z-index: 8;
}

/* 每行 8v8 弟子卡片（宣纸深墨半透风格 + 滑入入场动画 + 实时血量数字） */
.unit-bar-v12 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(32, 18, 10, 0.84);
  border: 1.5px solid #b47b26;
  border-radius: 7px;
  padding: 3px 4px;
  color: #fef3c7;
  transition: transform 0.16s, box-shadow 0.16s;
  box-shadow: 0 2px 6px rgba(45, 25, 10, 0.32);
}
.unit-bar-v12.enemy {
  flex-direction: row-reverse;
  border-color: #991b1b;
}
.unit-bar-v12.dead {
  opacity: 0.28;
  filter: grayscale(1);
}
.unit-bar-v12.lunge-ally {
  border-color: #fde047;
  z-index: 18;
  animation: lungeAllyBurst 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.unit-bar-v12.lunge-enemy {
  border-color: #f87171;
  z-index: 18;
  animation: lungeEnemyBurst 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes lungeAllyBurst {
  0%   { transform: translateX(0) scale(1); box-shadow: 0 2px 6px rgba(45, 25, 10, 0.32); }
  26%  { transform: translateX(24px) scale(1.06); box-shadow: 0 0 20px rgba(253, 224, 71, 0.95), -14px 0 16px rgba(245, 158, 11, 0.65); }
  58%  { transform: translateX(16px) scale(1.04); box-shadow: 0 0 14px rgba(250, 204, 21, 0.72), -8px 0 10px rgba(245, 158, 11, 0.38); }
  100% { transform: translateX(0) scale(1); box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28); }
}
@keyframes lungeEnemyBurst {
  0%   { transform: translateX(0) scale(1); box-shadow: 0 2px 6px rgba(45, 25, 10, 0.32); }
  26%  { transform: translateX(-24px) scale(1.06); box-shadow: 0 0 20px rgba(248, 113, 113, 0.95), 14px 0 16px rgba(239, 68, 68, 0.65); }
  58%  { transform: translateX(-16px) scale(1.04); box-shadow: 0 0 14px rgba(239, 68, 68, 0.72), 8px 0 10px rgba(239, 68, 68, 0.38); }
  100% { transform: translateX(0) scale(1); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.28); }
}
.unit-bar-v12.ally.hit-flash {
  animation: hitRecoilAlly 0.52s cubic-bezier(0.22, 0.85, 0.36, 1);
  z-index: 15;
}
.unit-bar-v12.enemy.hit-flash {
  animation: hitRecoilEnemy 0.52s cubic-bezier(0.22, 0.85, 0.36, 1);
  z-index: 15;
}
@keyframes hitRecoilAlly {
  0%   { transform: translateX(0) scale(1); filter: brightness(1); }
  14%  { transform: translateX(-11px) rotate(-1.5deg) scale(0.95); filter: brightness(2.5) saturate(0.25); box-shadow: 0 0 18px rgba(255, 255, 255, 0.95); }
  34%  { transform: translateX(5px) rotate(1deg) scale(0.98); filter: brightness(1.45); }
  58%  { transform: translateX(-4px) scale(0.99); filter: brightness(1.1); }
  100% { transform: translateX(0) scale(1); filter: brightness(1); }
}
@keyframes hitRecoilEnemy {
  0%   { transform: translateX(0) scale(1); filter: brightness(1); }
  14%  { transform: translateX(11px) rotate(1.5deg) scale(0.95); filter: brightness(2.5) saturate(0.25); box-shadow: 0 0 18px rgba(255, 255, 255, 0.95); }
  34%  { transform: translateX(-5px) rotate(-1deg) scale(0.98); filter: brightness(1.45); }
  58%  { transform: translateX(4px) scale(0.99); filter: brightness(1.1); }
  100% { transform: translateX(0) scale(1); filter: brightness(1); }
}

/* 8v8 宣纸竹林战场：中上部招式书法卷轴横幅 & 中央水墨印章轮次横幅 */
.battle-skill-callout {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  max-width: calc(100% - 146px);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(25, 10, 4, 0.55));
  animation: calloutScrollFade 1.25s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.battle-skill-callout.is-skill,
.battle-skill-callout.is-final {
  animation-duration: 1.6s;
}
.callout-rod {
  width: 7px;
  height: 32px;
  border-radius: 3px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #fde047 0%, #92400e 45%, #451a03 100%);
  border: 1px solid #fef08a;
  box-shadow: 0 0 8px var(--callout-aura, #f59e0b);
}
.callout-body {
  padding: 4px 12px;
  background: linear-gradient(90deg, rgba(42, 16, 10, 0.92), rgba(78, 22, 14, 0.95), rgba(42, 16, 10, 0.92));
  border-top: 1.5px solid var(--callout-aura, #f59e0b);
  border-bottom: 1.5px solid var(--callout-aura, #f59e0b);
  box-shadow: 0 0 14px color-mix(in srgb, var(--callout-aura, #f59e0b) 55%, transparent), inset 0 0 10px rgba(254, 240, 138, 0.14);
  text-align: center;
  min-width: 112px;
}
.battle-skill-callout.is-final .callout-body {
  background: linear-gradient(90deg, rgba(69, 10, 10, 0.95), rgba(153, 27, 27, 0.96), rgba(69, 10, 10, 0.95));
  border-color: #fde047;
}
.callout-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.callout-actor {
  font-size: 11px;
  font-weight: 800;
  color: #fde68a;
}
.callout-dot {
  font-size: 11px;
  color: #f59e0b;
}
.callout-skill {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fef08a;
  text-shadow: 0 0 8px var(--callout-aura, #f59e0b), 0 1px 3px #000;
}
.callout-note {
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 700;
  color: #fed7aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
@keyframes calloutScrollFade {
  0%   { opacity: 0; transform: translate(-50%, -10px) scaleX(0.65); }
  16%  { opacity: 1; transform: translate(-50%, 0) scaleX(1.04); }
  30%  { opacity: 1; transform: translate(-50%, 0) scaleX(1); }
  100% { opacity: 1; transform: translate(-50%, 0) scaleX(1); }
}

.battle-round-banner {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(28, 12, 6, 0.56) 0%, rgba(12, 6, 4, 0.22) 65%, transparent 100%);
  animation: roundBannerWrap 0.9s ease-out forwards;
}
.round-banner-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(245, 234, 206, 0.14), rgba(248, 239, 214, 0.96) 16%, rgba(248, 239, 214, 0.96) 84%, rgba(245, 234, 206, 0.14));
  border-top: 2.5px solid #991b1b;
  border-bottom: 2.5px solid #991b1b;
  box-shadow: 0 8px 26px rgba(15, 6, 2, 0.65), 0 0 22px rgba(245, 158, 11, 0.45);
  animation: roundBannerPop 0.9s cubic-bezier(0.16, 0.9, 0.3, 1) forwards;
}
.round-banner-seal {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #dc2626 0%, #7f1d1d 100%);
  border: 1.5px solid #fde047;
  color: #fef08a;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(127, 29, 29, 0.75);
  transform: rotate(-6deg);
}
.round-banner-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #3b1208;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 6px rgba(153, 27, 27, 0.25);
}
@keyframes roundBannerWrap {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes roundBannerPop {
  0%   { transform: scale(1.36); opacity: 0; }
  20%  { transform: scale(0.98); opacity: 1; }
  32%  { transform: scale(1.02); opacity: 1; }
  82%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0; }
}
.unit-bar-v12.ult-ready {
  border-color: #fde047;
  box-shadow: 0 0 11px rgba(250, 204, 21, 0.92);
  cursor: pointer;
}

/* 开战首帧左右滑入入场动画 */
.unit-bar-v12.battle-slide-in.from-left {
  animation: battleSlideLeft 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.unit-bar-v12.battle-slide-in.from-right {
  animation: battleSlideRight 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes battleSlideLeft {
  0%   { opacity: 0; transform: translateX(-54px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes battleSlideRight {
  0%   { opacity: 0; transform: translateX(54px); }
  100% { opacity: 1; transform: translateX(0); }
}

.unit-avatar-v12 {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.fx-shield-aura {
  position: absolute;
  inset: -3px;
  border-radius: 9px;
  pointer-events: none;
  z-index: 6;
  animation: shieldBreath 1.4s ease-in-out infinite;
}
.fx-shield-cyan {
  border: 2px solid #22d3ee;
  background: radial-gradient(circle, rgba(165,243,252,0.16) 45%, rgba(6,182,212,0.42) 100%);
  box-shadow: 0 0 9px rgba(34, 211, 238, 0.9), inset 0 0 6px rgba(207, 250, 254, 0.8);
}
.fx-shield-purple {
  border: 2px solid #c084fc;
  background: radial-gradient(circle, rgba(233,213,255,0.18) 45%, rgba(147,51,234,0.46) 100%);
  box-shadow: 0 0 9px rgba(192, 132, 252, 0.9), inset 0 0 6px rgba(243, 232, 255, 0.78);
}
@keyframes shieldBreath {
  0%, 100% { opacity: 0.78; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

.unit-info-v12 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.unit-name-row-v12 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}
.unit-bar-v12.enemy .unit-name-row-v12 { flex-direction: row-reverse; }
.unit-name-v12 {
  font-size: 10px;
  font-weight: 800;
  color: #fef3c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.unit-shield-pill {
  font-size: 8px;
  font-weight: 900;
  padding: 0 3px;
  border-radius: 3px;
  flex-shrink: 0;
}
.unit-shield-pill.ally { background: #0e7490; color: #cffafe; border: 1px solid #22d3ee; }
.unit-shield-pill.enemy { background: #6b21a8; color: #f3e8ff; border: 1px solid #c084fc; }
.unit-debuff-pill {
  font-size: 8px;
  font-weight: 900;
  background: #7f1d1d;
  color: #fecaca;
  border-radius: 3px;
  padding: 0 2px;
  flex-shrink: 0;
}
.unit-buff-pill {
  font-size: 8px;
  font-weight: 900;
  background: #14532d;
  color: #bbf7d0;
  border-radius: 3px;
  padding: 0 2px;
  flex-shrink: 0;
}

.hp-bar-v12 {
  position: relative;
  width: 100%;
  height: 10px;
  background: #1c1917;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hp-fill-v12 {
  height: 100%;
  transition: width 0.25s;
}
.hp-fill-v12.ally { background: linear-gradient(90deg, #15803d, #4ade80); }
.hp-fill-v12.enemy { background: linear-gradient(90deg, #991b1b, #f87171); }
.shield-fill-v12 {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  opacity: 0.72;
}
.shield-fill-v12.ally { background: linear-gradient(90deg, #06b6d4, #67e8f9); }
.shield-fill-v12.enemy { background: linear-gradient(90deg, #9333ea, #d8b4fe); }
.hp-num-v12 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
  line-height: 1;
}
.rage-row-v12 {
  display: flex;
  align-items: center;
  gap: 3px;
}
.rage-bar-v12 {
  flex: 1;
  height: 3.5px;
  background: #1c1917;
  border-radius: 2px;
  overflow: hidden;
}
.rage-fill-v12 {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #fde047);
  transition: width 0.25s;
}
.rage-num-v12 {
  font-size: 7.5px;
  font-weight: 800;
  color: #fde68a;
  min-width: 14px;
  text-align: right;
}

/* 底部深木横梁三段：我方气势+先手 | 跳过+1x/2x | 敌方气势+先手 */
.battle-beam-bottom {
  flex-shrink: 0;
  height: 56px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 7px),
    linear-gradient(180deg, #4b2612 0%, #2d1408 100%);
  border-top: 2px solid #d9a130;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.42);
  z-index: 14;
}
.momentum-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.momentum-box.ally { align-items: flex-start; }
.momentum-box.enemy { align-items: flex-end; }
.momentum-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fed7aa;
}
.momentum-val {
  font-size: 13px;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 1px 3px #000;
}
.first-strike-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border: 1px solid #fde047;
  color: #fef08a;
  font-size: 9.5px;
  font-weight: 900;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.battle-bottom-center {
  display: flex;
  align-items: center;
  gap: 5px;
}
.battle-skip-plaque {
  padding: 6px 20px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
}
.battle-speed-pill {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #d9a130;
  background: linear-gradient(180deg, #78350f, #451a03);
  color: #fef08a;
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-serif);
  cursor: pointer;
}

/* =========================================================================
   四段式全屏大招电影演出
   ========================================================================= */
.cine-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #2e1065 0%, #140726 62%, #07030f 100%);
}
.cine-overlay.phase-cutin {
  background: rgba(4, 2, 10, 0.94);
}
.cine-overlay.cine-fade-out {
  transition: opacity 0.22s ease-out;
  opacity: 0;
}
.cine-letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 76px;
  background: #040208;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.95);
}
.cine-letterbox.top { top: 0; border-bottom: 1px solid rgba(253, 224, 71, 0.22); }
.cine-letterbox.bottom { bottom: 0; border-top: 1px solid rgba(253, 224, 71, 0.22); }
.cine-cutin-bar {
  position: relative;
  width: 100%;
  height: 162px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: linear-gradient(90deg, #16050c 0%, #7f1d1d 30%, #b45309 68%, #16050c 100%);
  border-top: 3px solid #fde047;
  border-bottom: 3px solid #fde047;
  box-shadow: 0 0 42px rgba(245, 158, 11, 0.9);
  overflow: hidden;
  animation: cineCutinFlash 0.62s cubic-bezier(0.16, 0.88, 0.32, 1) forwards;
}
@keyframes cineCutinFlash {
  0%   { transform: scaleY(0.08); filter: brightness(2.5); opacity: 0.35; }
  42%  { transform: scaleY(1.07); filter: brightness(1.35); opacity: 1; }
  100% { transform: scaleY(1); filter: brightness(1); opacity: 1; }
}
.cine-cutin-speedlines {
  position: absolute;
  inset: -40px;
  background: repeating-linear-gradient(
    -24deg,
    transparent 0px,
    transparent 16px,
    rgba(254, 240, 138, 0.16) 16px,
    rgba(254, 240, 138, 0.16) 20px,
    transparent 20px,
    transparent 34px,
    rgba(255, 255, 255, 0.12) 34px,
    rgba(255, 255, 255, 0.12) 36px
  );
  pointer-events: none;
  z-index: 1;
  animation: speedLinesRush 0.65s linear infinite;
}
@keyframes speedLinesRush {
  0%   { transform: translateX(-48px); }
  100% { transform: translateX(48px); }
}
.cine-cutin-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 15%, rgba(254, 240, 138, 0.38) 48%, transparent 76%);
  pointer-events: none;
}
.cine-cutin-portrait {
  position: relative;
  z-index: 2;
  height: 188px;
  width: 152px;
  object-fit: cover;
  object-position: 50% 15%;
  filter: drop-shadow(0 0 16px rgba(253, 224, 71, 0.95)) contrast(1.08);
  animation: cineStripSlide 0.56s cubic-bezier(0.14, 0.92, 0.28, 1) both;
}
@keyframes cineStripSlide {
  0%   { transform: translateX(-90px) scale(1.2); opacity: 0; filter: brightness(2); }
  100% { transform: translateX(0) scale(1); opacity: 1; filter: drop-shadow(0 0 16px rgba(253, 224, 71, 0.95)) contrast(1.08); }
}
.cine-cutin-meta {
  position: relative;
  z-index: 3;
  flex: 1;
  text-align: right;
  padding-left: 10px;
}
.cine-cutin-actor-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}
.cine-cutin-seal {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fde047, #b45309);
  border: 1.5px solid #fef9c3;
  color: #450a0a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(253, 224, 71, 0.95);
  transform: rotate(-8deg);
  animation: cineSealStamp 0.48s 0.16s cubic-bezier(0.18, 0.92, 0.32, 1.2) both;
}
@keyframes cineSealStamp {
  0%   { transform: scale(2.2) rotate(-24deg); opacity: 0; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}
.cine-cutin-actor {
  font-size: 12.5px;
  font-weight: 900;
  color: #fde68a;
  letter-spacing: 2px;
}
.cine-cutin-skill {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fef08a;
  text-shadow: 0 0 16px var(--cine-aura, #ef4444), 0 3px 8px #000;
  animation: cineSkillTitleIn 0.58s 0.08s cubic-bezier(0.16, 0.9, 0.3, 1) both;
}
@keyframes cineSkillTitleIn {
  0%   { transform: translateX(48px) scale(1.16); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

/* 阶段 2 & 3：暗紫古殿舞台 + 金色阵法 + 总伤害计数器 + 右侧受击头像轰击 */
.cine-vfx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
}
.cine-skill-header {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 4px;
  opacity: 1;
  background: linear-gradient(90deg, rgba(44, 10, 68, 0.94), rgba(127, 20, 20, 0.96), rgba(44, 10, 68, 0.94));
  border: 2px solid #fde047;
  box-shadow: 0 0 0 2px #1a0804, 0 4px 0 #1a0804, 0 0 20px rgba(250, 204, 21, 0.65), inset 0 0 0 1px rgba(254, 240, 138, 0.45);
  white-space: nowrap;
}
.cine-skill-badge {
  font-size: 11.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(26, 8, 4, 0.72);
  border: 1px solid #f59e0b;
  color: #fde68a;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}
.cine-skill-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #fef9c3;
  -webkit-text-stroke: 0.6px #1c0a05;
  text-shadow: 2px 2px 0 #1c0a05, -1px -1px 0 #1c0a05, 1px -1px 0 #1c0a05, -1px 1px 0 #1c0a05, 0 0 12px rgba(253, 224, 71, 0.85);
}
.cine-stage-body {
  position: relative;
  z-index: 8;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 58px 10px 68px;
}
.cine-hero-zone {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-out;
}
.cine-overlay.cine-impact-shake {
  animation: cineStageShake 0.28s ease-out;
}
.cine-overlay.cine-impact-shake.heavy {
  animation: cineStageShakeHeavy 0.44s cubic-bezier(0.22, 0.85, 0.36, 1);
}
@keyframes cineStageShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-5px, 3px); }
  55% { transform: translate(5px, -3px); }
  80% { transform: translate(-2px, 1px); }
}
@keyframes cineStageShakeHeavy {
  0%, 100% { transform: translate(0, 0) scale(1); }
  18% { transform: translate(-9px, 5px) scale(1.018); }
  40% { transform: translate(9px, -5px) scale(1.012); }
  62% { transform: translate(-6px, 3px) scale(1.006); }
  82% { transform: translate(4px, -2px) scale(1); }
}
.cine-hero-zone.is-charging {
  transform: translateX(-8px);
}
.cine-hero-zone.is-charging .cine-hero-figure {
  animation: cineHeroCharge 1.35s ease-in-out forwards;
}
@keyframes cineHeroCharge {
  0%   { transform: translateY(42px) scale(0.78); opacity: 0; filter: brightness(1.4); }
  30%  { transform: translateY(0) scale(1); opacity: 1; filter: brightness(1.1); }
  65%  { transform: translateY(-6px) scale(1.05); opacity: 1; filter: brightness(1.38) drop-shadow(0 0 22px var(--cine-aura, #fde047)); }
  100% { transform: translateX(14px) translateY(-4px) scale(1.08); opacity: 1; filter: brightness(1.6) drop-shadow(0 0 28px var(--cine-aura, #fde047)); }
}
.cine-hero-zone.is-casting {
  transform: translateX(-16px);
}
.cine-golden-array {
  position: absolute;
  bottom: 42px;
  width: 210px;
  height: 74px;
  border-radius: 50%;
  border: 2.5px dashed #fde047;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.42) 0%, rgba(217, 119, 6, 0.16) 58%, transparent 78%);
  box-shadow: 0 0 26px rgba(250, 204, 21, 0.78), inset 0 0 18px rgba(254, 240, 138, 0.65);
  animation: cineArrayPulse 1.6s ease-in-out infinite;
}
@keyframes cineArrayPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}
.cine-hero-figure {
  position: relative;
  z-index: 4;
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: cineHeroLeap 0.52s cubic-bezier(0.16, 0.86, 0.34, 1) both;
}
@keyframes cineHeroLeap {
  0%   { transform: translateY(44px) scale(0.76); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cine-hero-img {
  max-height: 278px;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(253, 224, 71, 0.85)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.72));
}
.cine-total-dmg-box {
  position: absolute;
  left: 8px;
  bottom: 14px;
  z-index: 18;
  padding: 6px 14px;
  border-radius: 4px;
  opacity: 1;
  background: linear-gradient(135deg, rgba(56, 8, 8, 0.95), rgba(22, 6, 34, 0.95));
  border: 2px solid #fde047;
  box-shadow: 0 0 0 2px #1a0804, 3px 3px 0 #1a0804, 0 0 24px rgba(239, 68, 68, 0.75), inset 0 0 0 1px rgba(254, 240, 138, 0.4);
}
.cine-total-label {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fde68a;
  text-shadow: 1px 1px 0 #1a0804, -1px -1px 0 #1a0804;
}
.cine-total-num {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 1px;
  color: #fef08a;
  -webkit-text-stroke: 1px #1c0a05;
  text-shadow: 2px 2px 0 #1c0a05, -2px -2px 0 #1c0a05, 2px -2px 0 #1c0a05, -2px 2px 0 #1c0a05, 0 4px 0 #7c2d12, 0 0 14px #f97316;
  font-variant-numeric: tabular-nums;
  transform-origin: left center;
}
.cine-total-num.dmg-punch {
  animation: cineDmgPunch 0.36s cubic-bezier(0.16, 0.95, 0.32, 1.25) forwards;
}
.cine-total-num.dmg-punch-final {
  animation: cineDmgPunchFinal 0.48s cubic-bezier(0.16, 0.95, 0.32, 1.25) forwards;
}
@keyframes cineDmgPunch {
  0%   { opacity: 1; transform: scale(1); color: #fef08a; }
  35%  { opacity: 1; transform: scale(1.24); color: #ffffff; text-shadow: 2px 2px 0 #1c0a05, -2px -2px 0 #1c0a05, 0 0 22px #fde047, 0 0 34px #f59e0b; }
  100% { opacity: 1; transform: scale(1.04); color: #fef08a; text-shadow: 2px 2px 0 #1c0a05, -2px -2px 0 #1c0a05, 0 4px 0 #7c2d12, 0 0 14px #f97316; }
}
@keyframes cineDmgPunchFinal {
  0%   { opacity: 1; transform: scale(1); color: #fef08a; }
  32%  { opacity: 1; transform: scale(1.38); color: #ffffff; text-shadow: 2px 2px 0 #1c0a05, -2px -2px 0 #1c0a05, 0 0 26px #fde047, 0 0 42px #ef4444; }
  68%  { opacity: 1; transform: scale(1.08); color: #fef08a; }
  100% { opacity: 1; transform: scale(1.12); color: #fef08a; text-shadow: 2px 2px 0 #1c0a05, -2px -2px 0 #1c0a05, 0 4px 0 #7c2d12, 0 0 18px #f97316; }
}

.cine-targets-col {
  position: relative;
  z-index: 14;
  width: 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-right: 2px;
}
.cine-target-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  animation: cineTargetIn 0.28s ease-out both;
}
@keyframes cineTargetIn {
  0%   { opacity: 0; transform: translateX(36px); }
  100% { opacity: 1; transform: translateX(0); }
}
.cine-hit-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 96px;
  min-height: 44px;
}
.cine-wave-pops {
  position: absolute;
  right: 0;
  top: -10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  z-index: 16;
}
.cine-wave-pop {
  font-size: 14px;
  font-weight: 900;
  color: #fde68a;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.9), 0 2px 4px #000;
  animation: cineWaveRise 0.62s cubic-bezier(0.18, 0.9, 0.32, 1) forwards;
}
.cine-wave-pop.wave-2 {
  font-size: 15.5px;
  color: #fb923c;
}
.cine-wave-pop.is-final-wave {
  font-size: 17px;
  color: #ffffff;
  text-shadow: 0 0 12px #ef4444, 0 2px 4px #000;
}
@keyframes cineWaveRise {
  0%   { opacity: 0; transform: translateY(10px) scale(0.65); }
  28%  { opacity: 1; transform: translateY(-4px) scale(1.18); }
  100% { opacity: 1; transform: translateY(-10px) scale(1); }
}
.cine-target-av {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.85);
  flex-shrink: 0;
}
.cine-target-av.is-wave-hit {
  animation: cineTargetHitShake 0.34s ease-out;
}
.cine-target-av.ko { filter: grayscale(0.85) brightness(0.72); }
@keyframes cineTargetHitShake {
  0%, 100% { transform: translateX(0) scale(1); filter: brightness(1); }
  25% { transform: translateX(7px) scale(0.92); filter: brightness(2.2); }
  65% { transform: translateX(-4px) scale(0.98); filter: brightness(1.3); }
}
.cine-hit-pop,
.cine-final-hit-pop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 4px;
  border-radius: 3px;
  background: rgba(24, 6, 12, 0.88);
  border: 1.5px solid #fde047;
  box-shadow: 0 0 0 1.5px #1a0804, 2px 2px 0 #1a0804, 0 0 12px rgba(239, 68, 68, 0.55);
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
.cine-hit-pop.is-shown,
.cine-final-hit-pop.is-shown {
  animation: cinePopBurst 0.36s cubic-bezier(0.18, 0.92, 0.32, 1.25) forwards;
}
.cine-hit-pop.is-shown.is-pulse,
.cine-final-hit-pop.is-shown.is-pulse {
  animation: cineHitPulse 0.32s cubic-bezier(0.18, 0.92, 0.32, 1.25) forwards;
}
.cine-hit-pop.is-final-wave,
.cine-final-hit-pop.is-final-wave {
  border-color: #fef08a;
  box-shadow: 0 0 0 1.5px #1a0804, 2px 2px 0 #1a0804, 0 0 16px rgba(253, 224, 71, 0.85);
}
@keyframes cinePopBurst {
  0%   { opacity: 0; transform: scale(0.45) translateY(8px); }
  62%  { opacity: 1; transform: scale(1.22) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes cineHitPulse {
  0%   { opacity: 1; transform: scale(1); }
  38%  { opacity: 1; transform: scale(1.28) translateY(-3px); filter: brightness(1.35); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1); }
}
.cine-stamp-seal {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(145deg, #ef4444 0%, #991b1b 65%, #450a0a 100%);
  border: 1.5px solid #fde047;
  color: #fef9c3;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 0 #1a0804, -1px -1px 0 #1a0804;
  box-shadow: 0 0 0 1px #1a0804, 2px 2px 0 #1a0804, 0 0 10px rgba(239, 68, 68, 0.9);
  flex-shrink: 0;
}
.cine-hit-pop.is-kill .cine-stamp-seal,
.cine-final-hit-pop.is-kill .cine-stamp-seal {
  background: linear-gradient(145deg, #a855f7 0%, #6b21a8 65%, #3b0764 100%);
}
.cine-hit-val {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  color: #fef08a;
  -webkit-text-stroke: 0.8px #1c0a05;
  text-shadow: 2px 2px 0 #1c0a05, -1px -1px 0 #1c0a05, 1px -1px 0 #1c0a05, -1px 1px 0 #1c0a05, 0 0 10px #ef4444;
  white-space: nowrap;
}
.cine-hit-pop.is-break .cine-hit-val,
.cine-final-hit-pop.is-break .cine-hit-val { color: #fdba74; }
.cine-hit-pop.is-kill .cine-hit-val,
.cine-final-hit-pop.is-kill .cine-hit-val { color: #f9a8d4; }

.cine-skip-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 5px 24px !important;
  font-size: 13px !important;
  letter-spacing: 3px !important;
}

/* =========================================================================
   「大胜 / 惜败」水墨竹林全屏结算覆盖层 + 真【重播】
   ========================================================================= */
.battle-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 14px 22px;
  background: linear-gradient(180deg, rgba(244, 236, 215, 0.92), rgba(230, 216, 185, 0.96));
  animation: resultFadeIn 0.32s ease-out both;
}
@keyframes resultFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.result-top-banner {
  position: relative;
  margin-top: 12px;
  padding: 16px 14px 14px 118px;
  border-radius: 6px;
  background: linear-gradient(90deg, #5b110d 0%, #8b1d18 55%, #5b110d 100%);
  border-top: 2.5px solid #fde047;
  border-bottom: 2.5px solid #fde047;
  box-shadow: 0 6px 18px rgba(45, 10, 6, 0.45);
}
.result-top-banner.lose {
  background: linear-gradient(90deg, #1f2937 0%, #374151 55%, #1f2937 100%);
  border-color: #cbd5e1;
}
.result-giant-stamp {
  position: absolute;
  left: 10px;
  top: -18px;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  color: #dc2626;
  -webkit-text-stroke: 2px #fde047;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.65), 0 0 18px rgba(250, 204, 21, 0.72);
  transform: rotate(-7deg);
  animation: resultStampSlam 0.48s cubic-bezier(0.18, 0.92, 0.32, 1.18) both;
}
.result-giant-stamp.lose {
  color: #94a3b8;
  -webkit-text-stroke: 1.5px #f1f5f9;
}
@keyframes resultStampSlam {
  0%   { opacity: 0; transform: scale(2.4) rotate(-18deg); }
  70%  { opacity: 1; transform: scale(0.92) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1) rotate(-7deg); }
}
.result-banner-sub {
  font-size: 13px;
  font-weight: 800;
  color: #fef3c7;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.result-body-card {
  flex: 1;
  margin: 18px 0;
  padding: 14px 12px;
  border-radius: 10px;
  background: rgba(255, 250, 238, 0.88);
  border: 2px solid #a67c46;
  box-shadow: 0 6px 18px rgba(45, 22, 8, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow-y: auto;
}
.result-stars-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.result-star {
  font-size: 34px;
  color: #cbd5e1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.result-star.lit {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.85), 0 2px 4px rgba(120, 53, 15, 0.65);
}
.result-sec-title {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #7f1d1d;
  margin-bottom: 6px;
}
.result-reward-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: #2b180e;
  text-align: center;
  background: rgba(143, 92, 48, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
}
.result-dmg-summary {
  border-top: 1px dashed rgba(143, 92, 48, 0.4);
  padding-top: 8px;
}
.result-dmg-head {
  font-size: 11px;
  font-weight: 800;
  color: #5c4738;
  margin-bottom: 5px;
}
.result-dmg-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.result-dmg-chip {
  font-size: 10.5px;
  background: rgba(94, 56, 28, 0.12);
  border: 1px solid rgba(143, 92, 48, 0.35);
  border-radius: 5px;
  padding: 2px 6px;
  color: #2b180e;
}
.result-dmg-chip b { color: #991b1b; }

.result-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.result-wood-btn {
  padding: 10px 12px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 5px !important;
}

/* =========================================================================
   经典木框「掌门！有惊喜！」弹窗
   ========================================================================= */
.surprise-modal-v12 {
  width: 90%;
  max-width: 356px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #faf2df 0%, #ead7b2 100%);
  border: 3px solid #6b3c1b;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(248, 218, 124, 0.6);
}
.surprise-m-header {
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #6b3518 0%, #3d1c0b 100%);
  border-bottom: 2px solid #d9a130;
}
.surprise-m-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fef08a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
}
.surprise-m-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.surprise-m-lead {
  font-size: 12px;
  font-weight: 700;
  color: #5c4738;
  text-align: center;
}
.surprise-drop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
}
.surprise-drop-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 251, 240, 0.85);
  border: 1.5px solid #c79a52;
}
.surprise-drop-ico {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #d9a130;
  flex-shrink: 0;
  background: #2b180e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.surprise-badge-ico {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fef08a;
}
.surprise-badge-ico.bio { background: linear-gradient(135deg, #991b1b, #450a0a); }
.surprise-badge-ico.shard { background: linear-gradient(135deg, #7e22ce, #3b0764); }
.surprise-drop-meta { flex: 1; min-width: 0; }
.surprise-drop-name { font-size: 13.5px; font-weight: 900; }
.surprise-drop-desc { font-size: 11px; color: #5c4738; margin-top: 2px; line-height: 1.4; }
.surprise-m-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}
.surprise-btn {
  padding: 8px 10px !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
}


/* =========================================================================
   《江湖录》v13.0 国风鎏金雕花卷轴锁框 + 檀木鎏金武学装备槽
   + 非全屏小绝招特写条 + 8大神话/传说专属全屏大招舞台主题
   ========================================================================= */

/* 1. 严格锁定中央卷轴容器尺寸，根治换皮肤后底部边框下移回不去原位 Bug */
.scroll-stage-v4 {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  align-items: stretch !important;
}
.golden-scroll-v4 {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  padding: 0 7px !important;
  border-radius: 10px !important;
  border: 2.5px solid #8a5a18 !important;
  background: radial-gradient(circle at 50% 38%, #fffdf2 0%, #fae6a8 54%, #dfa944 100%);
  box-shadow:
    0 0 0 1px rgba(42, 18, 6, 0.88),
    0 6px 18px rgba(30, 14, 4, 0.48),
    inset 0 0 0 2px rgba(254, 240, 138, 0.56),
    inset 0 0 0 4px rgba(114, 58, 12, 0.34),
    inset 0 0 22px rgba(202, 138, 4, 0.30);
}
/* 内层精致细金线框 */
.golden-scroll-v4::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(253, 224, 71, 0.58);
  border-radius: 6px;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(92, 46, 12, 0.28);
}
.golden-scroll-v4.has-full-skin {
  background: #140a06 !important;
  overflow: hidden !important;
}
.golden-scroll-v4 .skin-fullbleed-bg {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  z-index: 1 !important;
}
.golden-scroll-v4 .skin-overflow-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  pointer-events: none !important;
  z-index: 4 !important;
}
.golden-scroll-v4 .scroll-hero-stage {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 顶部/底部朱漆鎏金卷轴木杆 + 翡翠玉轴头（严丝合缝锁定在卷轴内边缘） */
.golden-scroll-v4 .scroll-roller-v4 {
  position: relative !important;
  height: 13px !important;
  flex-shrink: 0 !important;
  z-index: 8 !important;
  margin: 0 -7px 3px !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: 1px solid #fef08a !important;
  border-bottom: 1.5px solid #4a140c !important;
  background:
    linear-gradient(90deg,
      #065f46 0px, #34d399 6px, #047857 12px,
      #fef08a 13px, #b45309 16px,
      #7f1d1d 18px, #b91c1c 35%, #dc2626 50%, #991b1b 65%, #7f1d1d calc(100% - 18px),
      #b45309 calc(100% - 16px), #fef08a calc(100% - 13px),
      #047857 calc(100% - 12px), #34d399 calc(100% - 6px), #065f46 100%
    ) !important;
  box-shadow: 0 2px 6px rgba(24, 8, 4, 0.65), inset 0 1px 0 rgba(254, 240, 138, 0.65) !important;
}
.golden-scroll-v4 .scroll-roller-v4.bottom {
  margin: 4px -7px 0 !important;
  border-top: 1.5px solid #4a140c !important;
  border-bottom: 1px solid #fef08a !important;
  box-shadow: 0 -2px 6px rgba(24, 8, 4, 0.65), inset 0 -1px 0 rgba(254, 240, 138, 0.65) !important;
}
.golden-scroll-v4 .scroll-roller-v4::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fef08a 0%, #f59e0b 48%, #7f1d1d 100%);
  border: 1.5px solid #fef9c3;
  box-shadow: 0 0 6px rgba(253, 224, 71, 0.85);
}

/* 四角国风祥云回纹雕花金角 */
.scroll-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 9;
}
.scroll-corner::before,
.scroll-corner::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.scroll-corner::before {
  inset: 0;
  border: 2.5px solid #fde047;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.75);
}
.scroll-corner::after {
  width: 6px;
  height: 6px;
  border: 1.5px solid #fef9c3;
  background: rgba(180, 83, 9, 0.72);
}
.scroll-corner.tl { top: 15px; left: 4px; }
.scroll-corner.tl::before { border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.scroll-corner.tl::after  { top: 4px; left: 4px; border-right: none; border-bottom: none; }

.scroll-corner.tr { top: 15px; right: 4px; }
.scroll-corner.tr::before { border-left: none; border-bottom: none; border-top-right-radius: 4px; }
.scroll-corner.tr::after  { top: 4px; right: 4px; border-left: none; border-bottom: none; }

.scroll-corner.bl { bottom: 15px; left: 4px; }
.scroll-corner.bl::before { border-right: none; border-top: none; border-bottom-left-radius: 4px; }
.scroll-corner.bl::after  { bottom: 4px; left: 4px; border-right: none; border-top: none; }

.scroll-corner.br { bottom: 15px; right: 4px; }
.scroll-corner.br::before { border-left: none; border-top: none; border-bottom-right-radius: 4px; }
.scroll-corner.br::after  { bottom: 4px; right: 4px; border-left: none; border-top: none; }

/* 卷轴品质专属边框微光：神话赤金流光 / 传说鎏金光晕 / 史诗紫晶 / 稀有碧玉 */
.golden-scroll-v4.q-mythic {
  border-color: #dc2626 !important;
  box-shadow:
    0 0 0 1px #7f1d1d,
    0 0 16px rgba(239, 68, 68, 0.52),
    0 6px 18px rgba(30, 10, 6, 0.55),
    inset 0 0 0 2px rgba(254, 240, 138, 0.72),
    inset 0 0 20px rgba(220, 38, 38, 0.35) !important;
  animation: scrollMythicPulse 3.2s ease-in-out infinite;
}
@keyframes scrollMythicPulse {
  0%, 100% { box-shadow: 0 0 0 1px #7f1d1d, 0 0 12px rgba(239, 68, 68, 0.45), 0 6px 18px rgba(30, 10, 6, 0.55), inset 0 0 0 2px rgba(254, 240, 138, 0.68), inset 0 0 18px rgba(220, 38, 38, 0.28); }
  50%      { box-shadow: 0 0 0 1px #f59e0b, 0 0 22px rgba(251, 191, 36, 0.68), 0 6px 18px rgba(30, 10, 6, 0.55), inset 0 0 0 2px rgba(254, 249, 195, 0.88), inset 0 0 24px rgba(239, 68, 68, 0.42); }
}
.golden-scroll-v4.q-legendary {
  border-color: #d97706 !important;
  box-shadow:
    0 0 0 1px #78350f,
    0 0 14px rgba(245, 158, 11, 0.48),
    0 6px 18px rgba(30, 14, 4, 0.48),
    inset 0 0 0 2px rgba(254, 240, 138, 0.72),
    inset 0 0 20px rgba(245, 158, 11, 0.28) !important;
}
.golden-scroll-v4.q-epic {
  border-color: #9333ea !important;
  box-shadow:
    0 0 0 1px #4c1d95,
    0 0 13px rgba(168, 85, 247, 0.46),
    0 6px 18px rgba(24, 10, 36, 0.48),
    inset 0 0 0 2px rgba(233, 213, 255, 0.55),
    inset 0 0 18px rgba(147, 51, 234, 0.24) !important;
}
.golden-scroll-v4.q-epic .scroll-corner::before { border-color: #d8b4fe; box-shadow: 0 0 5px rgba(168, 85, 247, 0.8); }
.golden-scroll-v4.q-rare {
  border-color: #0d9488 !important;
  box-shadow:
    0 0 0 1px #115e59,
    0 0 12px rgba(45, 212, 191, 0.40),
    0 6px 18px rgba(10, 28, 28, 0.46),
    inset 0 0 0 2px rgba(153, 246, 228, 0.50),
    inset 0 0 16px rgba(20, 184, 166, 0.22) !important;
}
.golden-scroll-v4.q-rare .scroll-corner::before { border-color: #5eead4; box-shadow: 0 0 5px rgba(45, 212, 191, 0.75); }

/* 2. 左侧 5 武学槽 & 右侧 5 装备/真气槽：暗红檀木底 + 双层鎏金倒角边框 + 四角卡扣 + 金属拉丝 */
.gear-slot-v4 {
  width: 62px !important;
  transition: transform 0.14s ease;
}
.gear-slot-v4:active {
  transform: scale(0.95);
}
.slot-icon-frame,
.zhenqi-slot-frame {
  position: relative !important;
  width: 62px !important;
  height: 64px !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  background:
    repeating-linear-gradient(135deg, rgba(255, 235, 190, 0.04) 0px, rgba(255, 235, 190, 0.04) 2px, transparent 2px, transparent 5px),
    linear-gradient(155deg, #431812 0%, #270b08 55%, #160504 100%) !important;
  border: 2px solid #9a6520 !important;
  box-shadow:
    0 0 0 1px rgba(28, 10, 5, 0.9),
    0 3px 9px rgba(24, 10, 4, 0.58),
    inset 0 0 0 1px rgba(254, 240, 138, 0.50),
    inset 0 1px 8px rgba(255, 215, 130, 0.16) !important;
  padding: 2px;
  box-sizing: border-box;
}
.slot-icon-frame::before,
.zhenqi-slot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.18) 0%, transparent 42%, rgba(253, 224, 71, 0.08) 100%);
  pointer-events: none;
  z-index: 2;
}
.slot-icon-frame svg {
  position: relative;
  z-index: 1;
  border-radius: 5px;
}
/* 四角精雕金纹卡扣 */
.slot-clasp {
  position: absolute;
  width: 7px;
  height: 7px;
  pointer-events: none;
  z-index: 5;
}
.slot-clasp.tl { top: 1px; left: 1px; border-top: 2px solid #fde047; border-left: 2px solid #fde047; border-top-left-radius: 2px; }
.slot-clasp.tr { top: 1px; right: 1px; border-top: 2px solid #fde047; border-right: 2px solid #fde047; border-top-right-radius: 2px; }
.slot-clasp.bl { bottom: 1px; left: 1px; border-bottom: 2px solid #fde047; border-left: 2px solid #fde047; border-bottom-left-radius: 2px; }
.slot-clasp.br { bottom: 1px; right: 1px; border-bottom: 2px solid #fde047; border-right: 2px solid #fde047; border-bottom-right-radius: 2px; }

/* 品质专属外框流光与高亮描边 */
.gear-slot-v4.is-equipped[data-q="mythic"] .slot-icon-frame {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #7f1d1d, 0 0 11px rgba(239, 68, 68, 0.78), inset 0 0 0 1px rgba(254, 240, 138, 0.85) !important;
}
.gear-slot-v4.is-equipped[data-q="legendary"] .slot-icon-frame {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 1px #78350f, 0 0 10px rgba(245, 158, 11, 0.72), inset 0 0 0 1px rgba(254, 249, 195, 0.82) !important;
}
.gear-slot-v4.is-equipped[data-q="epic"] .slot-icon-frame {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 1px #4c1d95, 0 0 9px rgba(168, 85, 247, 0.65), inset 0 0 0 1px rgba(233, 213, 255, 0.72) !important;
}
.gear-slot-v4.is-equipped[data-q="rare"] .slot-icon-frame,
.gear-slot-v4.is-zhenqi .zhenqi-slot-frame {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 1px #0c4a6e, 0 0 9px rgba(56, 189, 248, 0.58), inset 0 0 0 1px rgba(186, 230, 253, 0.65) !important;
}
.gear-slot-v4.is-empty .slot-icon-frame {
  opacity: 0.86;
  border-color: #7c4d21 !important;
}

/* 底部半透明墨玉金边小铭牌 */
.slot-icon-frame .slot-in-label,
.zhenqi-slot-frame .slot-in-label {
  position: absolute !important;
  left: 1px !important;
  right: 1px !important;
  bottom: 1px !important;
  z-index: 6 !important;
  background: linear-gradient(180deg, rgba(16, 20, 24, 0.78) 0%, rgba(10, 8, 12, 0.94) 100%) !important;
  border-top: 1px solid rgba(253, 224, 71, 0.68) !important;
  color: #fef3c7 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  padding: 2px 3px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.15 !important;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  text-shadow: 0 1px 2px #000;
}

/* 右上角立体朱红金边小印章 */
.slot-icon-frame .slot-lv {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  bottom: auto !important;
  z-index: 7 !important;
  font-size: 8.5px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
  background: linear-gradient(180deg, #dc2626 0%, #881313 100%) !important;
  color: #fef08a !important;
  border: 1px solid #fde047 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
  text-shadow: 0 1px 1px #3b0707 !important;
  pointer-events: none;
}

/* 3. 非全屏侧边小绝招特写条（史诗/稀有/普通弟子战场内绝招演出，~1.5s） */
.mini-ult-callout {
  position: absolute;
  top: 52px;
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 7px;
  max-width: 230px;
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(22, 10, 32, 0.92) 0%, rgba(48, 18, 24, 0.88) 65%, rgba(20, 10, 16, 0.65) 100%);
  border: 1.5px solid var(--mini-aura, #c084fc);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), 0 0 14px var(--mini-aura, rgba(192, 132, 252, 0.55));
  overflow: hidden;
  pointer-events: none;
  animation: miniUltInOut 1.5s cubic-bezier(0.16, 0.88, 0.32, 1) forwards;
}
.mini-ult-callout.is-ally {
  left: 8px;
  border-left: 3.5px solid #fde047;
}
.mini-ult-callout.is-enemy {
  right: 8px;
  flex-direction: row-reverse;
  padding: 5px 7px 5px 12px;
  border-right: 3.5px solid #fb7185;
  text-align: right;
  animation-name: miniUltInOutRight;
}
.mini-ult-callout.is-leaving {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
@keyframes miniUltInOut {
  0%   { opacity: 0; transform: translateX(-34px) scale(0.92); }
  16%  { opacity: 1; transform: translateX(0) scale(1.02); }
  30%  { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes miniUltInOutRight {
  0%   { opacity: 0; transform: translateX(34px) scale(0.92); }
  16%  { opacity: 1; transform: translateX(0) scale(1.02); }
  30%  { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
.mini-ult-streak {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(254, 240, 138, 0.28) 46%, transparent 72%);
  pointer-events: none;
  animation: miniStreakSweep 0.75s ease-out forwards;
}
@keyframes miniStreakSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(120%); }
}
.mini-ult-avatar {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--mini-aura, #c084fc);
}
.mini-ult-av-fallback {
  width: 100%;
  height: 100%;
  background: #3b1708;
  color: #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.mini-ult-meta {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.mini-ult-actor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fde68a;
}
.mini-ult-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(180deg, #dc2626, #7f1d1d);
  border: 1px solid #fde047;
  color: #fef08a;
  font-size: 9px;
  font-weight: 900;
}
.mini-ult-skill {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px var(--mini-aura, #a855f7), 0 1px 3px #000;
}

/* 4. 8位神话/传说弟子专属全屏大招舞台主题（氛围色调 + 脚下阵法发光色 + 标题横幅配色） */

/* (1) 师妃暄：清冷月白青莲 */
#cine-stage-box.cine-theme-shifeixuan_lotus,
#cine-stage-box.cine-theme-shifeixuan,
#cine-stage-box.cine-theme-moon_lotus,
#cine-stage-box.cine-theme-cihang_sword,
#cine-stage-box.cine-char-c_shifeixuan {
  background: radial-gradient(circle at 50% 36%, rgba(207, 250, 254, 0.32) 0%, rgba(15, 58, 72, 0.86) 46%, rgba(6, 20, 32, 0.96) 100%) !important;
}
#cine-stage-box.cine-theme-shifeixuan_lotus .cine-golden-array,
#cine-stage-box.cine-theme-shifeixuan .cine-golden-array,
#cine-stage-box.cine-theme-moon_lotus .cine-golden-array,
#cine-stage-box.cine-theme-cihang_sword .cine-golden-array,
#cine-stage-box.cine-char-c_shifeixuan .cine-golden-array {
  border-color: #a5f3fc;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.45) 0%, rgba(45, 212, 191, 0.20) 58%, transparent 78%);
  box-shadow: 0 0 28px rgba(103, 232, 249, 0.85), inset 0 0 18px rgba(240, 253, 250, 0.72);
}
#cine-stage-box.cine-theme-shifeixuan_lotus .cine-skill-header,
#cine-stage-box.cine-theme-shifeixuan .cine-skill-header,
#cine-stage-box.cine-theme-moon_lotus .cine-skill-header,
#cine-stage-box.cine-theme-cihang_sword .cine-skill-header,
#cine-stage-box.cine-char-c_shifeixuan .cine-skill-header {
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.90), rgba(15, 118, 110, 0.90));
  border-color: #cffafe;
  box-shadow: 0 0 20px rgba(103, 232, 249, 0.70);
}

/* (2) 婠婠：暗紫猩红魔月 */
#cine-stage-box.cine-theme-wanwan_moon,
#cine-stage-box.cine-theme-wanwan,
#cine-stage-box.cine-theme-demon_moon,
#cine-stage-box.cine-theme-tianmo,
#cine-stage-box.cine-theme-tianmo_ribbon,
#cine-stage-box.cine-char-c_wanwan {
  background: radial-gradient(circle at 50% 35%, rgba(190, 24, 93, 0.42) 0%, rgba(59, 7, 100, 0.88) 48%, rgba(14, 4, 22, 0.97) 100%) !important;
}
#cine-stage-box.cine-theme-wanwan_moon .cine-golden-array,
#cine-stage-box.cine-theme-wanwan .cine-golden-array,
#cine-stage-box.cine-theme-demon_moon .cine-golden-array,
#cine-stage-box.cine-theme-tianmo .cine-golden-array,
#cine-stage-box.cine-theme-tianmo_ribbon .cine-golden-array,
#cine-stage-box.cine-char-c_wanwan .cine-golden-array {
  border-color: #f43f5e;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.42) 0%, rgba(168, 85, 247, 0.24) 58%, transparent 78%);
  box-shadow: 0 0 28px rgba(225, 29, 72, 0.85), inset 0 0 18px rgba(232, 121, 249, 0.65);
}
#cine-stage-box.cine-theme-wanwan_moon .cine-skill-header,
#cine-stage-box.cine-theme-wanwan .cine-skill-header,
#cine-stage-box.cine-theme-demon_moon .cine-skill-header,
#cine-stage-box.cine-theme-tianmo .cine-skill-header,
#cine-stage-box.cine-theme-tianmo_ribbon .cine-skill-header,
#cine-stage-box.cine-char-c_wanwan .cine-skill-header {
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.92), rgba(159, 18, 57, 0.92));
  border-color: #fda4af;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.72);
}

/* (3) 雨化田：玄黑赤金西厂令 */
#cine-stage-box.cine-theme-yuhuatian_slash,
#cine-stage-box.cine-theme-yuhuatian,
#cine-stage-box.cine-char-c_yuhuatian {
  background: radial-gradient(circle at 50% 38%, rgba(180, 83, 9, 0.36) 0%, rgba(28, 10, 14, 0.92) 52%, rgba(6, 4, 8, 0.98) 100%) !important;
}
#cine-stage-box.cine-theme-yuhuatian_slash .cine-golden-array,
#cine-stage-box.cine-theme-yuhuatian .cine-golden-array,
#cine-stage-box.cine-char-c_yuhuatian .cine-golden-array {
  border-color: #fbbf24;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.38) 0%, rgba(217, 119, 6, 0.24) 58%, transparent 78%);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.80), inset 0 0 20px rgba(253, 224, 71, 0.75);
}
#cine-stage-box.cine-theme-yuhuatian_slash .cine-skill-header,
#cine-stage-box.cine-theme-yuhuatian .cine-skill-header,
#cine-stage-box.cine-char-c_yuhuatian .cine-skill-header {
  background: linear-gradient(90deg, rgba(24, 12, 16, 0.94), rgba(153, 27, 27, 0.94), rgba(146, 64, 14, 0.92));
  border-color: #fde047;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.78);
}

/* (4) 陆沉舟：玄铁苍金无锋剑尊 */
#cine-stage-box.cine-theme-sword_rain,
#cine-stage-box.cine-theme-wujian_sword,
#cine-stage-box.cine-theme-wujian,
#cine-stage-box.cine-char-c_wujian {
  background: radial-gradient(circle at 50% 38%, rgba(217, 119, 6, 0.36) 0%, rgba(30, 41, 59, 0.90) 50%, rgba(10, 14, 24, 0.98) 100%) !important;
}
#cine-stage-box.cine-theme-sword_rain .cine-golden-array,
#cine-stage-box.cine-theme-wujian_sword .cine-golden-array,
#cine-stage-box.cine-theme-wujian .cine-golden-array,
#cine-stage-box.cine-char-c_wujian .cine-golden-array {
  border-color: #fde047;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.44) 0%, rgba(148, 163, 184, 0.22) 58%, transparent 78%);
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.85), inset 0 0 18px rgba(255, 255, 255, 0.65);
}
#cine-stage-box.cine-theme-sword_rain .cine-skill-header,
#cine-stage-box.cine-theme-wujian_sword .cine-skill-header,
#cine-stage-box.cine-theme-wujian .cine-skill-header,
#cine-stage-box.cine-char-c_wujian .cine-skill-header {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.92), rgba(180, 83, 9, 0.92));
  border-color: #fef08a;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.72);
}

/* (5) 谢孤鸿：冰蓝寒雪 */
#cine-stage-box.cine-theme-xuejian_snow,
#cine-stage-box.cine-theme-snow_sword,
#cine-stage-box.cine-theme-ice_sword,
#cine-stage-box.cine-theme-frost_sword,
#cine-stage-box.cine-char-c_xuejian {
  background: radial-gradient(circle at 50% 36%, rgba(56, 189, 248, 0.36) 0%, rgba(12, 42, 78, 0.90) 50%, rgba(7, 16, 34, 0.97) 100%) !important;
}
#cine-stage-box.cine-theme-xuejian_snow .cine-golden-array,
#cine-stage-box.cine-theme-snow_sword .cine-golden-array,
#cine-stage-box.cine-theme-ice_sword .cine-golden-array,
#cine-stage-box.cine-theme-frost_sword .cine-golden-array,
#cine-stage-box.cine-char-c_xuejian .cine-golden-array {
  border-color: #7dd3fc;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.44) 0%, rgba(14, 165, 233, 0.22) 58%, transparent 78%);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.88), inset 0 0 18px rgba(224, 242, 254, 0.75);
}
#cine-stage-box.cine-theme-xuejian_snow .cine-skill-header,
#cine-stage-box.cine-theme-snow_sword .cine-skill-header,
#cine-stage-box.cine-theme-ice_sword .cine-skill-header,
#cine-stage-box.cine-theme-frost_sword .cine-skill-header,
#cine-stage-box.cine-char-c_xuejian .cine-skill-header {
  background: linear-gradient(90deg, rgba(12, 74, 110, 0.92), rgba(29, 78, 216, 0.90));
  border-color: #bae6fd;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.72);
}

/* (6) 殷绯衣：绯红业火红莲 */
#cine-stage-box.cine-theme-needle,
#cine-stage-box.cine-theme-jiangyi_needle,
#cine-stage-box.cine-theme-crimson_lotus,
#cine-stage-box.cine-char-c_jiangyi {
  background: radial-gradient(circle at 50% 38%, rgba(225, 29, 72, 0.40) 0%, rgba(88, 12, 26, 0.90) 50%, rgba(20, 4, 10, 0.97) 100%) !important;
}
#cine-stage-box.cine-theme-needle .cine-golden-array,
#cine-stage-box.cine-theme-jiangyi_needle .cine-golden-array,
#cine-stage-box.cine-theme-crimson_lotus .cine-golden-array,
#cine-stage-box.cine-char-c_jiangyi .cine-golden-array {
  border-color: #fb7185;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.44) 0%, rgba(220, 38, 38, 0.22) 58%, transparent 78%);
  box-shadow: 0 0 28px rgba(244, 63, 94, 0.85), inset 0 0 18px rgba(254, 205, 211, 0.65);
}
#cine-stage-box.cine-theme-needle .cine-skill-header,
#cine-stage-box.cine-theme-jiangyi_needle .cine-skill-header,
#cine-stage-box.cine-theme-crimson_lotus .cine-skill-header,
#cine-stage-box.cine-char-c_jiangyi .cine-skill-header {
  background: linear-gradient(90deg, rgba(136, 19, 55, 0.92), rgba(185, 28, 28, 0.92));
  border-color: #fecdd3;
  box-shadow: 0 0 20px rgba(251, 113, 133, 0.72);
}

/* (7) 苏清漪：碧玉冰绡仙光 */
#cine-stage-box.cine-theme-ribbon,
#cine-stage-box.cine-theme-heal,
#cine-stage-box.cine-theme-baiyi_lotus,
#cine-stage-box.cine-theme-ice_ribbon,
#cine-stage-box.cine-char-c_baiyi {
  background: radial-gradient(circle at 50% 36%, rgba(52, 211, 153, 0.34) 0%, rgba(17, 68, 62, 0.88) 50%, rgba(6, 24, 24, 0.97) 100%) !important;
}
#cine-stage-box.cine-theme-ribbon .cine-golden-array,
#cine-stage-box.cine-theme-heal .cine-golden-array,
#cine-stage-box.cine-theme-baiyi_lotus .cine-golden-array,
#cine-stage-box.cine-theme-ice_ribbon .cine-golden-array,
#cine-stage-box.cine-char-c_baiyi .cine-golden-array {
  border-color: #6ee7b7;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.44) 0%, rgba(16, 185, 129, 0.20) 58%, transparent 78%);
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.85), inset 0 0 18px rgba(236, 253, 245, 0.72);
}
#cine-stage-box.cine-theme-ribbon .cine-skill-header,
#cine-stage-box.cine-theme-heal .cine-skill-header,
#cine-stage-box.cine-theme-baiyi_lotus .cine-skill-header,
#cine-stage-box.cine-theme-ice_ribbon .cine-skill-header,
#cine-stage-box.cine-char-c_baiyi .cine-skill-header {
  background: linear-gradient(90deg, rgba(6, 95, 70, 0.92), rgba(15, 118, 110, 0.92));
  border-color: #a7f3d0;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.70);
}

/* (8) 觉尘老僧：梵金佛光 */
#cine-stage-box.cine-theme-zen,
#cine-stage-box.cine-theme-staff,
#cine-stage-box.cine-theme-wuming_zen,
#cine-stage-box.cine-theme-buddha_palm,
#cine-stage-box.cine-char-c_wuming {
  background: radial-gradient(circle at 50% 36%, rgba(251, 191, 36, 0.42) 0%, rgba(120, 53, 15, 0.88) 48%, rgba(28, 12, 4, 0.97) 100%) !important;
}
#cine-stage-box.cine-theme-zen .cine-golden-array,
#cine-stage-box.cine-theme-staff .cine-golden-array,
#cine-stage-box.cine-theme-wuming_zen .cine-golden-array,
#cine-stage-box.cine-theme-buddha_palm .cine-golden-array,
#cine-stage-box.cine-char-c_wuming .cine-golden-array {
  border-color: #fef08a;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.50) 0%, rgba(245, 158, 11, 0.26) 58%, transparent 78%);
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.92), inset 0 0 20px rgba(254, 249, 195, 0.80);
}
#cine-stage-box.cine-theme-zen .cine-skill-header,
#cine-stage-box.cine-theme-staff .cine-skill-header,
#cine-stage-box.cine-theme-wuming_zen .cine-skill-header,
#cine-stage-box.cine-theme-buddha_palm .cine-skill-header,
#cine-stage-box.cine-char-c_wuming .cine-skill-header {
  background: linear-gradient(90deg, rgba(146, 64, 14, 0.94), rgba(217, 119, 6, 0.92));
  border-color: #fef9c3;
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.82);
}

/* v13.0 opaque ult stage base */
.cine-overlay.phase-ult_stage, .cine-overlay.phase-ult_barrage { background-color: #0b0716 !important; }


/* =========================================================================
   《江湖录》v14.0 双龙戏珠鎏金画卷边框 + 通透鎏金框外墨字武学装备槽
   + 第1格天赋/升华金印 + 龙门新全屏大招舞台主题（赵怀安/马进良/凌雁秋）
   ========================================================================= */

/* 1. 彻底重做画卷外容器与上下双龙鎏金画轴（彻底告别两条红杠与生硬红框） */
.scroll-stage-v4 {
  grid-template-columns: 60px 1fr 60px !important;
  gap: 6px !important;
  padding: 6px 6px 8px !important;
  overflow: visible !important;
}

.scroll-canvas-wrap {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
  filter: drop-shadow(0 5px 12px rgba(45, 22, 6, 0.34));
}

.scroll-dragon-roller {
  position: relative !important;
  flex-shrink: 0 !important;
  z-index: 12 !important;
  width: calc(100% + 16px) !important;
  margin-left: -8px !important;
  margin-right: -8px !important;
  pointer-events: none !important;
  line-height: 0 !important;
}
.scroll-dragon-roller.top {
  height: 24px !important;
  margin-bottom: -3px !important;
  filter: drop-shadow(0 2px 4px rgba(58, 26, 4, 0.45));
}
.scroll-dragon-roller.bottom {
  height: 18px !important;
  margin-top: -3px !important;
  filter: drop-shadow(0 -1px 4px rgba(58, 26, 4, 0.42));
}
.dragon-roller-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 画卷画芯：无皮肤时呈现温暖鎏金宣纸绢布 + 细腻金边卷轴竖框；穿皮肤时全幅严丝合缝夹于双轴之间 */
.scroll-canvas-wrap .golden-scroll-v4 {
  position: relative !important;
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 4px 7px 6px !important;
  border-radius: 2px !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: 2.5px solid #c98a1e !important;
  border-right: 2.5px solid #c98a1e !important;
  background:
    repeating-linear-gradient(0deg, rgba(180, 128, 40, 0.04) 0px, rgba(180, 128, 40, 0.04) 2px, transparent 2px, transparent 6px),
    radial-gradient(circle at 50% 36%, #fffef5 0%, #fce8a8 52%, #e6b852 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 249, 210, 0.78),
    inset 3px 0 6px rgba(146, 84, 12, 0.24),
    inset -3px 0 6px rgba(146, 84, 12, 0.24),
    inset 0 0 22px rgba(202, 138, 4, 0.28) !important;
  animation: none !important;
}
.scroll-canvas-wrap .golden-scroll-v4::before {
  content: "";
  position: absolute;
  inset: 3px 4px;
  border-left: 1px solid rgba(254, 240, 138, 0.72);
  border-right: 1px solid rgba(254, 240, 138, 0.72);
  border-top: none;
  border-bottom: none;
  border-radius: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: none;
}

/* 品质微光保持典雅鎏金画卷质感，绝不变成生硬红框 */
.scroll-canvas-wrap.q-mythic .golden-scroll-v4 {
  border-left-color: #d98218 !important;
  border-right-color: #d98218 !important;
  box-shadow:
    0 0 14px rgba(245, 158, 11, 0.44),
    inset 0 0 0 1px rgba(255, 249, 210, 0.85),
    inset 0 0 20px rgba(217, 119, 6, 0.26) !important;
}
.scroll-canvas-wrap.q-legendary .golden-scroll-v4 {
  border-left-color: #d9941e !important;
  border-right-color: #d9941e !important;
  box-shadow:
    0 0 12px rgba(245, 158, 11, 0.36),
    inset 0 0 0 1px rgba(255, 249, 210, 0.80),
    inset 0 0 18px rgba(202, 138, 4, 0.24) !important;
}
.scroll-canvas-wrap.q-epic .golden-scroll-v4 {
  border-left-color: #b078cf !important;
  border-right-color: #b078cf !important;
  box-shadow:
    0 0 11px rgba(168, 85, 247, 0.30),
    inset 0 0 0 1px rgba(243, 232, 255, 0.65),
    inset 0 0 16px rgba(147, 51, 234, 0.16) !important;
}
.scroll-canvas-wrap.q-rare .golden-scroll-v4 {
  border-left-color: #3aa89d !important;
  border-right-color: #3aa89d !important;
  box-shadow:
    0 0 10px rgba(45, 212, 191, 0.28),
    inset 0 0 0 1px rgba(204, 251, 241, 0.65),
    inset 0 0 16px rgba(20, 184, 166, 0.14) !important;
}

.scroll-canvas-wrap .golden-scroll-v4.has-full-skin {
  background: #140a06 !important;
  padding: 5px 7px 6px !important;
}
.scroll-canvas-wrap .golden-scroll-v4 .skin-fullbleed-bg {
  position: absolute !important;
  inset: 0 !important;
  border-radius: 0 !important;
  z-index: 1 !important;
}
.scroll-canvas-wrap .golden-scroll-v4 .skin-fullbleed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

/* 2. 参照参考图重做左右 5 武学格与 5 装备格：精致鎏金图标方框 + 框外清晰深墨色名称文字 */
.slot-col-v4 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px 0 !important;
}

.gear-slot-v4 {
  width: 60px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  cursor: pointer;
  transition: transform 0.14s ease;
}
.gear-slot-v4:active {
  transform: scale(0.95);
}

.slot-icon-frame,
.zhenqi-slot-frame {
  position: relative !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 9px !important;
  overflow: hidden !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at 50% 38%, #fff8dc 0%, #f3d284 62%, #cc8b2c 100%) !important;
  border: 2px solid #d49626 !important;
  box-shadow:
    0 2px 6px rgba(58, 28, 6, 0.34),
    inset 0 0 0 1.2px rgba(255, 250, 218, 0.85),
    inset 0 0 10px rgba(255, 232, 148, 0.45) !important;
}
.slot-icon-frame::before,
.zhenqi-slot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 240, 0.38) 0%, transparent 48%, rgba(253, 224, 71, 0.14) 100%);
  pointer-events: none;
  z-index: 2;
}
.slot-icon-frame svg {
  width: 100% !important;
  height: 100% !important;
  position: relative;
  z-index: 1;
  border-radius: 6px;
}

/* 品质绚丽底衬与精致外光晕 */
.gear-slot-v4.is-equipped[data-q="mythic"] .slot-icon-frame {
  background: radial-gradient(circle at 50% 35%, #fef08a 0%, #f59e0b 45%, #b91c1c 100%) !important;
  border-color: #fbbf24 !important;
  box-shadow:
    0 0 0 1px #991b1b,
    0 0 10px rgba(239, 68, 68, 0.62),
    inset 0 0 0 1.2px rgba(255, 251, 225, 0.92) !important;
}
.gear-slot-v4.is-equipped[data-q="legendary"] .slot-icon-frame {
  background: radial-gradient(circle at 50% 35%, #fffbeb 0%, #fcd34d 48%, #d97706 100%) !important;
  border-color: #f59e0b !important;
  box-shadow:
    0 0 0 1px #92400e,
    0 0 9px rgba(245, 158, 11, 0.58),
    inset 0 0 0 1.2px rgba(255, 251, 225, 0.90) !important;
}
.gear-slot-v4.is-equipped[data-q="epic"] .slot-icon-frame {
  background: radial-gradient(circle at 50% 35%, #f5f3ff 0%, #c084fc 52%, #6b21a8 100%) !important;
  border-color: #c084fc !important;
  box-shadow:
    0 0 0 1px #581c87,
    0 0 8px rgba(168, 85, 247, 0.52),
    inset 0 0 0 1.2px rgba(243, 232, 255, 0.85) !important;
}
.gear-slot-v4.is-equipped[data-q="rare"] .slot-icon-frame {
  background: radial-gradient(circle at 50% 35%, #ecfeff 0%, #38bdf8 52%, #0369a1 100%) !important;
  border-color: #38bdf8 !important;
  box-shadow:
    0 0 0 1px #0c4a6e,
    0 0 8px rgba(56, 189, 248, 0.48),
    inset 0 0 0 1.2px rgba(224, 242, 254, 0.85) !important;
}
.gear-slot-v4.is-equipped[data-q="common"] .slot-icon-frame {
  background: radial-gradient(circle at 50% 35%, #fefce8 0%, #e7cfa0 55%, #a16c2d 100%) !important;
  border-color: #b88234 !important;
}

/* 空槽：淡雅宣纸金丝框，彻底告别死板灰块 */
.gear-slot-v4.is-empty .slot-icon-frame {
  background: radial-gradient(circle at 50% 42%, rgba(255, 251, 238, 0.84) 0%, rgba(235, 215, 174, 0.68) 100%) !important;
  border: 1.5px solid rgba(188, 134, 48, 0.78) !important;
  box-shadow:
    0 1px 4px rgba(72, 42, 12, 0.18),
    inset 0 0 0 1px rgba(255, 250, 232, 0.75),
    inset 0 0 8px rgba(196, 146, 62, 0.20) !important;
  opacity: 0.92 !important;
}
.gear-slot-v4.is-empty .slot-icon-frame svg {
  opacity: 0.55;
  filter: sepia(0.35) saturate(0.85);
}

/* 右侧第5格：通透碧蓝真气光球框 */
.gear-slot-v4.is-zhenqi .zhenqi-slot-frame {
  background: radial-gradient(circle at 50% 42%, #e0f2fe 0%, #38bdf8 48%, #0c4a6e 100%) !important;
  border: 2px solid #f5c242 !important;
  box-shadow:
    0 0 0 1px #78350f,
    0 0 10px rgba(56, 189, 248, 0.55),
    inset 0 0 0 1.2px rgba(254, 249, 195, 0.85) !important;
}

/* 框外正下方清晰深墨色名称文字（替代旧版黑条） */
.slot-out-label {
  width: 60px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.15;
  color: #2b1506;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 250, 234, 0.95), 0 0 4px rgba(255, 248, 224, 0.9);
  pointer-events: none;
}
.slot-out-label.is-innate-lbl {
  color: #7f1d1d;
  font-weight: 900;
}
.gear-slot-v4.is-empty .slot-out-label {
  color: #6b4e34;
  font-weight: 700;
}

/* 右上角精致角标（不遮图标） */
.slot-icon-frame .slot-lv {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  bottom: auto !important;
  z-index: 6 !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  padding: 1px 3px !important;
  border-radius: 3px !important;
  background: linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%) !important;
  color: #fef08a !important;
  border: 1px solid #fde047 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
  pointer-events: none;
}

/* 第1格专属【天赋】/【升华】金印（左上角小巧精致不遮图标） */
.slot-innate-seal {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 7;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.05;
  padding: 1px 3.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  color: #fffbeb;
  border: 1px solid #fef08a;
  box-shadow: 0 1px 3px rgba(69, 26, 3, 0.65);
  pointer-events: none;
  letter-spacing: 0;
}
.slot-innate-seal.evolved {
  background: linear-gradient(180deg, #ef4444 0%, #7f1d1d 100%);
  color: #fef08a;
  border-color: #fde047;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.85), 0 1px 2px rgba(0, 0, 0, 0.7);
}
.gear-slot-v4.is-innate.is-evolved .slot-icon-frame {
  animation: innateEvolvedGlow 2.6s ease-in-out infinite;
}
@keyframes innateEvolvedGlow {
  0%, 100% { box-shadow: 0 0 0 1px #991b1b, 0 0 9px rgba(239, 68, 68, 0.58), inset 0 0 0 1.2px rgba(255, 251, 225, 0.90); }
  50%      { box-shadow: 0 0 0 1px #f59e0b, 0 0 14px rgba(251, 191, 36, 0.86), inset 0 0 0 1.4px rgba(255, 255, 235, 0.98); }
}

/* 3. 补齐龙门新角色全屏大招舞台主题 */

/* (9) 赵怀安：大漠金黑风暴 + 青金雷光 */
#cine-stage-box.cine-theme-zhaohuaian_storm,
#cine-stage-box.cine-theme-zhaohuaian,
#cine-stage-box.cine-char-c_zhaohuaian {
  background: radial-gradient(circle at 50% 36%, rgba(56, 189, 248, 0.28) 0%, rgba(146, 64, 14, 0.42) 34%, rgba(20, 14, 10, 0.94) 68%, rgba(6, 5, 8, 0.98) 100%) !important;
}
#cine-stage-box.cine-theme-zhaohuaian_storm .cine-golden-array,
#cine-stage-box.cine-theme-zhaohuaian .cine-golden-array,
#cine-stage-box.cine-char-c_zhaohuaian .cine-golden-array {
  border-color: #38bdf8;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.42) 0%, rgba(56, 189, 248, 0.28) 54%, transparent 78%);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.85), 0 0 18px rgba(245, 158, 11, 0.72), inset 0 0 18px rgba(224, 242, 254, 0.72);
}
#cine-stage-box.cine-theme-zhaohuaian_storm .cine-skill-header,
#cine-stage-box.cine-theme-zhaohuaian .cine-skill-header,
#cine-stage-box.cine-char-c_zhaohuaian .cine-skill-header {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(14, 116, 144, 0.90), rgba(146, 64, 14, 0.92));
  border-color: #7dd3fc;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.72), 0 0 12px rgba(251, 191, 36, 0.65);
}

/* (10) 马进良：暗红玄铁西厂双锋 */
#cine-stage-box.cine-theme-majinliang_twin,
#cine-stage-box.cine-theme-majinliang,
#cine-stage-box.cine-char-c_majinliang {
  background: radial-gradient(circle at 50% 38%, rgba(185, 28, 28, 0.40) 0%, rgba(39, 24, 28, 0.92) 50%, rgba(10, 8, 12, 0.98) 100%) !important;
}
#cine-stage-box.cine-theme-majinliang_twin .cine-golden-array,
#cine-stage-box.cine-theme-majinliang .cine-golden-array,
#cine-stage-box.cine-char-c_majinliang .cine-golden-array {
  border-color: #f87171;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.42) 0%, rgba(148, 163, 184, 0.24) 58%, transparent 78%);
  box-shadow: 0 0 28px rgba(220, 38, 38, 0.85), inset 0 0 16px rgba(226, 232, 240, 0.58);
}
#cine-stage-box.cine-theme-majinliang_twin .cine-skill-header,
#cine-stage-box.cine-theme-majinliang .cine-skill-header,
#cine-stage-box.cine-char-c_majinliang .cine-skill-header {
  background: linear-gradient(90deg, rgba(24, 24, 27, 0.95), rgba(127, 29, 29, 0.94), rgba(51, 65, 85, 0.92));
  border-color: #fca5a5;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.76);
}

/* (11) 凌雁秋：墨青大漠飞鸿 */
#cine-stage-box.cine-theme-lingyanqiu_blade,
#cine-stage-box.cine-theme-lingyanqiu,
#cine-stage-box.cine-char-c_lingyanqiu {
  background: radial-gradient(circle at 50% 36%, rgba(45, 212, 191, 0.30) 0%, rgba(19, 58, 62, 0.88) 48%, rgba(8, 20, 24, 0.98) 100%) !important;
}
#cine-stage-box.cine-theme-lingyanqiu_blade .cine-golden-array,
#cine-stage-box.cine-theme-lingyanqiu .cine-golden-array,
#cine-stage-box.cine-char-c_lingyanqiu .cine-golden-array {
  border-color: #5eead4;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.42) 0%, rgba(217, 119, 6, 0.20) 58%, transparent 78%);
  box-shadow: 0 0 28px rgba(20, 184, 166, 0.85), inset 0 0 18px rgba(254, 243, 199, 0.68);
}
#cine-stage-box.cine-theme-lingyanqiu_blade .cine-skill-header,
#cine-stage-box.cine-theme-lingyanqiu .cine-skill-header,
#cine-stage-box.cine-char-c_lingyanqiu .cine-skill-header {
  background: linear-gradient(90deg, rgba(15, 42, 46, 0.94), rgba(15, 118, 110, 0.92), rgba(120, 53, 15, 0.86));
  border-color: #99f6e4;
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.72);
}

/* 全界面大头特写头像无缝适配：无留白、无压缩变形 */
.formation-slot-av img,
.mini-avatar-v4 img,
.skin-sel-av img,
.skin-m-av-frame img,
.unit-avatar-inner img,
.cine-target-av img,
.mini-ult-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
  display: block;
}

/* v15.0 crisp skill title contrast */
.cine-skill-title { color: #fffbeb !important; -webkit-text-stroke: 0 !important; text-shadow: 2px 2px 0 #140c06, -1px -1px 0 #140c06, 0 0 10px rgba(253,224,71,0.55) !important; letter-spacing: 2px; }

/* v15.1 全屏大招双帧像素本尊动作精灵 + 残影 + 6 位神话/传说弟子独立位移与挥剑动作曲线 */
.cine-hero-figure.is-pixel-figure {
  height: 274px;
  min-width: 190px;
  will-change: transform, filter;
}
.cine-hero-figure.is-recovering {
  animation: none !important;
  transform: translate(-8px, 2px) scale(0.98);
  transition: transform 0.22s ease-out, filter 0.18s ease-out;
}
.cine-hero-img.is-pixel-sprite {
  position: relative;
  z-index: 3;
  width: auto;
  height: 256px;
  max-height: 268px;
  max-width: 248px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 12px var(--cine-aura, rgba(253, 224, 71, 0.85))) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.78));
  transition: filter 0.12s ease-out;
}
.cine-hero-figure.is-striking .cine-hero-img.is-pixel-sprite {
  filter: brightness(1.14) drop-shadow(0 0 18px var(--cine-aura, rgba(253, 224, 71, 0.95))) drop-shadow(0 12px 16px rgba(0, 0, 0, 0.82));
}
.cine-px-ghost {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 256px;
  max-height: 268px;
  max-width: 248px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: translateX(-50%);
  will-change: transform, opacity;
}
.cine-px-ghost.g1 {
  z-index: 2;
  filter: brightness(1.22) saturate(1.35) drop-shadow(0 0 14px var(--cine-aura, #fde047));
}
.cine-px-ghost.g2 {
  z-index: 1;
  filter: brightness(1.35) saturate(1.5) drop-shadow(0 0 20px var(--cine-aura, #fde047));
}
.cine-hero-figure.is-striking .cine-px-ghost.g1,
.cine-px-ghost.g1.is-active {
  animation: cinePxGhostTrail1 0.42s cubic-bezier(0.18, 0.88, 0.32, 1) forwards;
}
.cine-hero-figure.is-striking .cine-px-ghost.g2,
.cine-px-ghost.g2.is-active {
  animation: cinePxGhostTrail2 0.42s cubic-bezier(0.18, 0.88, 0.32, 1) forwards;
}
.cine-hero-figure.is-final-strike .cine-px-ghost.g1 {
  animation: cinePxGhostTrailFinal1 0.56s cubic-bezier(0.18, 0.88, 0.32, 1) forwards;
}
.cine-hero-figure.is-final-strike .cine-px-ghost.g2 {
  animation: cinePxGhostTrailFinal2 0.56s cubic-bezier(0.18, 0.88, 0.32, 1) forwards;
}
@keyframes cinePxGhostTrail1 {
  0%   { opacity: 0; transform: translateX(-50%) scale(1); }
  25%  { opacity: 0.56; transform: translateX(calc(-50% - 20px)) translateY(2px) scale(0.98); }
  75%  { opacity: 0.38; transform: translateX(calc(-50% - 26px)) translateY(3px) scale(0.97); }
  100% { opacity: 0.22; transform: translateX(calc(-50% - 18px)) translateY(2px) scale(0.98); }
}
@keyframes cinePxGhostTrail2 {
  0%   { opacity: 0; transform: translateX(-50%) scale(1); }
  28%  { opacity: 0.34; transform: translateX(calc(-50% - 42px)) translateY(4px) scale(0.95); }
  75%  { opacity: 0.22; transform: translateX(calc(-50% - 50px)) translateY(5px) scale(0.94); }
  100% { opacity: 0.10; transform: translateX(calc(-50% - 34px)) translateY(4px) scale(0.96); }
}
@keyframes cinePxGhostTrailFinal1 {
  0%   { opacity: 0; transform: translateX(-50%) scale(1); }
  28%  { opacity: 0.62; transform: translateX(calc(-50% - 24px)) translateY(2px) scale(0.98); }
  100% { opacity: 0.34; transform: translateX(calc(-50% - 20px)) translateY(2px) scale(0.98); }
}
@keyframes cinePxGhostTrailFinal2 {
  0%   { opacity: 0; transform: translateX(-50%) scale(1); }
  30%  { opacity: 0.38; transform: translateX(calc(-50% - 48px)) translateY(4px) scale(0.95); }
  100% { opacity: 0.18; transform: translateX(calc(-50% - 38px)) translateY(4px) scale(0.95); }
}

/* 通用默认挥击动作兜底 */
.cine-hero-figure.is-striking {
  animation: cineStrikeDefault 0.42s cubic-bezier(0.18, 0.88, 0.32, 1) forwards;
}
@keyframes cineStrikeDefault {
  0%   { transform: translate(0, 0) scale(1); }
  22%  { transform: translate(-8px, -4px) rotate(-3deg) scale(1.02); }
  54%  { transform: translate(28px, -2px) rotate(6deg) scale(1.08); }
  100% { transform: translate(18px, 0) rotate(3deg) scale(1.04); }
}

/* 1. 雨化田：优雅悬浮前倾 + 极速突刺回拉（隔空御剑穿云） */
.cine-hero-figure.is-striking.strike-motion-yuhuatian_slash {
  animation: strikeMotionYuhuatian 0.42s cubic-bezier(0.22, 0.9, 0.32, 1) forwards;
}
@keyframes strikeMotionYuhuatian {
  0%   { transform: translate(0, -4px) rotate(0deg) scale(1); }
  22%  { transform: translate(-10px, -14px) rotate(-4deg) scale(1.03); }
  52%  { transform: translate(32px, -16px) rotate(8deg) scale(1.08); }
  78%  { transform: translate(18px, -12px) rotate(4deg) scale(1.05); }
  100% { transform: translate(14px, -10px) rotate(3deg) scale(1.04); }
}

/* 2. 赵怀安：高高跃起(-34px)再猛然斜劈砸落(38px, 6px)（断帆劈斩） */
.cine-hero-figure.is-striking.strike-motion-zhaohuaian_storm {
  animation: strikeMotionZhaohuaian 0.42s cubic-bezier(0.2, 0.86, 0.28, 1) forwards;
}
@keyframes strikeMotionZhaohuaian {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  28%  { transform: translate(-6px, -34px) rotate(-10deg) scale(1.08); }
  58%  { transform: translate(38px, 6px) rotate(11deg) scale(1.12); }
  78%  { transform: translate(34px, 2px) rotate(7deg) scale(1.06); }
  100% { transform: translate(30px, 4px) rotate(6deg) scale(1.05); }
}

/* 3. 师妃暄：凌空轻盈平掠 + 广袖挥剑横扫（剑气长江） */
.cine-hero-figure.is-striking.strike-motion-shifeixuan_lotus {
  animation: strikeMotionShifeixuan 0.42s cubic-bezier(0.18, 0.88, 0.34, 1) forwards;
}
@keyframes strikeMotionShifeixuan {
  0%   { transform: translate(0, -2px) rotate(0deg) scale(1); }
  26%  { transform: translate(12px, -18px) rotate(-5deg) scale(1.04); }
  58%  { transform: translate(36px, -14px) rotate(6deg) scale(1.08); }
  82%  { transform: translate(26px, -12px) rotate(2deg) scale(1.05); }
  100% { transform: translate(22px, -10px) rotate(1deg) scale(1.04); }
}

/* 4. 绾绾：轻灵腾空弧线旋跃 + 前冲甩绫（天魔双斩） */
.cine-hero-figure.is-striking.strike-motion-wanwan_tianmo {
  animation: strikeMotionWanwan 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes strikeMotionWanwan {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  26%  { transform: translate(10px, -28px) rotate(-14deg) scale(1.06); }
  54%  { transform: translate(34px, -12px) rotate(12deg) scale(1.10); }
  78%  { transform: translate(24px, -16px) rotate(-5deg) scale(1.06); }
  100% { transform: translate(22px, -10px) rotate(4deg) scale(1.05); }
}

/* 5. 马进良：压低重心猛烈直线前扑重斩（西厂双剑绞杀） */
.cine-hero-figure.is-striking.strike-motion-majinliang_twin {
  animation: strikeMotionMajinliang 0.42s cubic-bezier(0.16, 0.92, 0.28, 1) forwards;
}
@keyframes strikeMotionMajinliang {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  20%  { transform: translate(-12px, 10px) rotate(-6deg) scale(1.04, 0.94); }
  50%  { transform: translate(44px, 8px) rotate(10deg) scale(1.12, 0.96); }
  76%  { transform: translate(36px, 6px) rotate(7deg) scale(1.07, 0.98); }
  100% { transform: translate(32px, 6px) rotate(6deg) scale(1.06); }
}

/* 6. 凌雁秋：极速水平一闪突进(56px) + 强烈残影（绝情一剑） */
.cine-hero-figure.is-striking.strike-motion-lingyanqiu_blade {
  animation: strikeMotionLingyanqiu 0.42s cubic-bezier(0.12, 0.96, 0.24, 1) forwards;
}
@keyframes strikeMotionLingyanqiu {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  16%  { transform: translate(-10px, 2px) rotate(-4deg) scale(0.98); }
  44%  { transform: translate(56px, -2px) rotate(7deg) scale(1.10, 0.96); }
  74%  { transform: translate(48px, 0) rotate(4deg) scale(1.05); }
  100% { transform: translate(42px, 0) rotate(3deg) scale(1.04); }
}
.cine-hero-figure.is-striking.strike-motion-lingyanqiu_blade .cine-px-ghost.g1 {
  animation: cinePxGhostFlash1 0.42s cubic-bezier(0.12, 0.96, 0.24, 1) forwards;
}
.cine-hero-figure.is-striking.strike-motion-lingyanqiu_blade .cine-px-ghost.g2 {
  animation: cinePxGhostFlash2 0.42s cubic-bezier(0.12, 0.96, 0.24, 1) forwards;
}
@keyframes cinePxGhostFlash1 {
  0%   { opacity: 0; transform: translateX(-50%) scale(1); }
  30%  { opacity: 0.72; transform: translateX(calc(-50% - 36px)) translateY(0) scale(0.99); }
  100% { opacity: 0.36; transform: translateX(calc(-50% - 30px)) translateY(0) scale(0.98); }
}
@keyframes cinePxGhostFlash2 {
  0%   { opacity: 0; transform: translateX(-50%) scale(1); }
  32%  { opacity: 0.46; transform: translateX(calc(-50% - 70px)) translateY(1px) scale(0.96); }
  100% { opacity: 0.20; transform: translateX(calc(-50% - 56px)) translateY(1px) scale(0.96); }
}


/* v17.0 Cinematic 9:16 Movie Backdrop + Ken Burns + Foreground Bamboo + Modal 4-Layer Skin */
.cine-overlay.phase-ult_stage,
.cine-overlay.phase-ult_barrage {
  background-color: #06040d !important;
  isolation: isolate;
}
.cine-movie-bg {
  position: absolute;
  inset: -4%;
  z-index: 1;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #06040d;
  opacity: 1;
  pointer-events: none;
  will-change: transform;
  animation: cineKenBurns 5.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.cine-movie-bg.is-fallback {
  background: radial-gradient(circle at 50% 34%, #1e1b4b 0%, #0f0a22 58%, #05030b 100%);
}
@keyframes cineKenBurns {
  0%   { transform: scale(1.0) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(0, -1.2%, 0); }
}

/* 师妃暄专属：前景摇曳竹影剪影层 */
.cine-fg-bamboo {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.cine-fg-bamboo-stalk {
  position: absolute;
  bottom: -16px;
  height: 108%;
  width: 34%;
  max-width: 156px;
  opacity: 0.82;
  filter: drop-shadow(0 0 8px rgba(8, 47, 73, 0.65));
  will-change: transform;
}
.cine-fg-bamboo-stalk.left {
  left: -14px;
  transform-origin: 18% 100%;
  animation: cineBambooSwayL 4.4s ease-in-out infinite alternate;
}
.cine-fg-bamboo-stalk.right {
  right: -14px;
  transform-origin: 82% 100%;
  animation: cineBambooSwayR 4.8s ease-in-out infinite alternate;
}
@keyframes cineBambooSwayL {
  0%   { transform: rotate(-2.2deg) translateX(0px); }
  50%  { transform: rotate(1.6deg) translateX(3px); }
  100% { transform: rotate(-1.4deg) translateX(-2px); }
}
@keyframes cineBambooSwayR {
  0%   { transform: rotate(2.1deg) translateX(0px); }
  50%  { transform: rotate(-1.8deg) translateX(-3px); }
  100% { transform: rotate(1.5deg) translateX(2px); }
}

/* 上下电影宽银幕暗角 (Vignette) */
.cine-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(4, 3, 10, 0.86) 0%,
      rgba(4, 3, 10, 0.28) 14%,
      rgba(4, 3, 10, 0.04) 36%,
      rgba(4, 3, 10, 0.04) 64%,
      rgba(4, 3, 10, 0.36) 85%,
      rgba(4, 3, 10, 0.90) 100%
    ),
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0) 52%, rgba(3, 2, 8, 0.56) 100%);
}

/* 皮肤弹窗 4 层视差动态画布 */
.skin-m-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.skin-m-live-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  display: block;
}
.skin-m-canvas-box .skin-m-scroll-scrim {
  z-index: 4;
}
.skin-m-canvas-box .skin-m-q-stamp,
.skin-m-canvas-box .skin-m-name-plaque {
  z-index: 5;
}


/* === v18.0 1:1 国风画卷无框贯通重构 === */
#app-shell {
  background-color: #ecdcb8;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
}

.main-view.page-home {
  background: transparent !important;
  border: none !important;
}

.main-view.page-home {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* 1. 顶部细长深木雕纹公告条 */
.top-announce-bar {
  flex-shrink: 0;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  background: linear-gradient(180deg, #562915 0%, #3a190c 58%, #261007 100%);
  border-top: 1px solid #8a5628;
  border-bottom: 1.5px solid #c99238;
  box-shadow: 0 2px 5px rgba(32, 12, 4, 0.42);
  color: #fef3c7;
  font-size: 11px;
  font-weight: 700;
  z-index: 25;
}
.announce-badge {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}
.announce-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.announce-track {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 20s linear infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 2. 无框通透悬浮掌门信息行（完全无深色大盒与白底卡片） */
.hud-scroll-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 20;
}
.hud-scroll-top.is-sub {
  padding: 5px 10px 4px;
  background: linear-gradient(180deg, rgba(244, 232, 204, 0.76) 0%, rgba(244, 232, 204, 0.15) 100%) !important;
}
.hud-float-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.lv-emblem-v18 {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #fffbeb;
  text-shadow: 0 1px 2px #2b0a04;
  background: radial-gradient(circle at 35% 28%, #b83a24 0%, #7d2013 62%, #4a1008 100%);
  border: 2.5px solid #d6ccbc;
  box-shadow:
    0 0 0 1.5px #6b4c30,
    inset 0 1px 4px rgba(255, 240, 200, 0.45),
    0 2px 5px rgba(35, 16, 6, 0.48);
}
.hud-player-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hud-name-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.hud-player-name {
  font-size: 14px;
  font-weight: 900;
  color: #2b1506;
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.92), 0 0 5px rgba(255, 248, 224, 0.85);
}
.hud-vip-calligraphy {
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #fffbeb 0%, #fde047 45%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #5c2804) drop-shadow(0 1px 2px rgba(45, 18, 4, 0.8));
}
.hud-amber-exp {
  position: relative;
  width: 112px;
  height: 13px;
  border-radius: 7px;
  background: rgba(56, 30, 14, 0.62);
  border: 1.5px solid #96836c;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.hud-amber-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 65%, #fde047 100%);
  border-radius: 6px;
}
.hud-amber-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fffbeb;
  text-shadow: 0 1px 2px rgba(25, 10, 4, 0.95);
}

.hud-float-res {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px 10px;
  align-items: center;
}
.hud-res-item {
  display: flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  color: #2b1506;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 250, 232, 0.9), 0 0 5px rgba(255, 248, 224, 0.82);
}
.hud-res-svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(45, 20, 4, 0.45));
}
.hud-jade-seal {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(40, 12, 4, 0.45);
}
.hud-jade-seal.stamina {
  background: radial-gradient(circle at 35% 30%, #f87171, #b91c1c 65%, #7f1d1d);
  color: #fffbeb;
  border: 1.2px solid #fef08a;
}
.hud-jade-seal.power {
  background: radial-gradient(circle at 35% 30%, #fbbf24, #b45309 70%, #78350f);
  color: #fffbeb;
  border: 1.2px solid #fef08a;
}

/* 3. 主页 1:1 整体长卷容器 */
.home-scroll-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  background: transparent;
}

/* 上半区：无框水墨雾化三侠舞台 */
.home-stage-v18 {
  position: relative;
  height: 214px;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
  border: none;
}
.home-heroes-v18 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 4px;
  z-index: 2;
}
.home-hero-slot-v18 {
  width: 132px;
  height: 190px;
  margin: 0 -16px;
  cursor: pointer;
  animation: breathe 3.5s ease-in-out infinite;
  transition: transform 0.16s ease;
}
.home-hero-slot-v18.lead {
  width: 168px;
  height: 210px;
  z-index: 4;
  margin: 0 -10px;
}
.home-hero-slot-v18:active {
  transform: scale(1.04);
}
.home-stage-mist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(241, 229, 200, 0) 0%,
    rgba(241, 229, 200, 0.52) 58%,
    rgba(239, 226, 196, 0.92) 92%,
    rgba(239, 226, 196, 0) 100%
  );
}

/* 左上角“回归惊喜”与右上角“每日任务”浮空图标 */
.home-corner-orb {
  position: absolute;
  top: 6px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
  transition: transform 0.12s;
}
.home-corner-orb:active {
  transform: scale(0.93);
}
.home-corner-orb.left { left: 10px; }
.home-corner-orb.right { right: 10px; }
.corner-orb-icon {
  width: 44px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(38, 16, 4, 0.55));
}
.corner-orb-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.corner-orb-label {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 900;
  color: #fffbeb;
  letter-spacing: 0.5px;
  margin-top: -5px;
  text-shadow: 1px 1px 0 #2b1004, -1px -1px 0 #2b1004, 0 2px 4px rgba(0, 0, 0, 0.85);
}
.home-lantern-mini {
  right: 10px !important;
  bottom: 12px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  z-index: 11 !important;
}
.home-quote-whisper {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 78%;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(42, 18, 8, 0.72);
  color: #fef3c7;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(234, 179, 8, 0.45);
  pointer-events: none;
}

/* 4. 中部核心区：3×3 古铜云纹雕花暖金匾额大按钮（直接浮在山水上，绝无白框卡片！） */
.home-plaque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 10px;
  padding: 10px 16px 8px;
  background: transparent;
  z-index: 8;
}
.home-plaque-btn {
  position: relative;
  height: 52px;
  border-radius: 11px;
  border: 3px solid #4c4030;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 252, 224, 0.78) 0%, transparent 62%),
    linear-gradient(180deg, #fae3a2 0%, #eeb958 46%, #d48929 78%, #e8a740 100%);
  box-shadow:
    0 3px 0 #2f2418,
    0 5px 10px rgba(34, 18, 6, 0.36),
    inset 0 0 0 1.5px rgba(254, 240, 138, 0.78),
    inset 0 2px 4px rgba(255, 250, 220, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 4px;
  transition: transform 0.1s ease, filter 0.12s ease;
  overflow: visible;
}
.home-plaque-btn::before,
.home-plaque-btn::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 7px;
  pointer-events: none;
}
.home-plaque-btn::before {
  border: 1.5px solid rgba(92, 52, 18, 0.55);
}
.home-plaque-btn::after {
  inset: -1px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 6px 6px, #d6b676 0, #d6b676 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 6px) 6px, #d6b676 0, #d6b676 3px, transparent 3.5px),
    radial-gradient(circle at 6px calc(100% - 6px), #d6b676 0, #d6b676 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), #d6b676 0, #d6b676 3px, transparent 3.5px);
}
.home-plaque-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 1px 0 #2f2418, 0 2px 5px rgba(34, 18, 6, 0.35), inset 0 0 0 1.5px rgba(254, 240, 138, 0.78);
}
.plaque-inner-glow {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 4px;
  height: 36%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 240, 0.52), rgba(255, 255, 240, 0));
  pointer-events: none;
}
.plaque-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff6d2;
  -webkit-text-stroke: 0.85px #4a2006;
  text-shadow:
    0 2px 2px rgba(62, 24, 4, 0.9),
    0 0 6px rgba(254, 240, 138, 0.42);
}

/* 居中朱红高亮“典籍”匾额 */
.home-plaque-btn.is-crimson {
  border-color: #522922;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(255, 224, 214, 0.45) 0%, transparent 58%),
    linear-gradient(180deg, #ee4b3e 0%, #c6241c 48%, #91130e 85%, #ad1b15 100%);
  box-shadow:
    0 3px 0 #3a0d0a,
    0 5px 12px rgba(127, 29, 29, 0.48),
    inset 0 0 0 1.5px rgba(254, 215, 170, 0.72),
    inset 0 2px 5px rgba(255, 232, 220, 0.45);
}
.home-plaque-btn.is-crimson::before {
  border-color: rgba(254, 240, 138, 0.42);
}
.home-plaque-btn.is-crimson .plaque-text {
  color: #fffbeb;
  -webkit-text-stroke: 0.8px #4a0a06;
  text-shadow:
    0 2px 3px rgba(45, 6, 4, 0.95),
    0 0 10px rgba(253, 224, 71, 0.6);
}

/* 5. 下部图标行：直接浮在底部松林山水雾气上的 6 枚彩绘浮空功能图标 */
.home-float-icons {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 6px 8px 10px;
  background: transparent;
  z-index: 8;
}
.home-float-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  background: transparent;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  transition: transform 0.12s;
}
.home-float-btn:active {
  transform: scale(0.92);
}
.home-float-ico-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-ico-svg {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(32, 16, 6, 0.5));
}
.float-count-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border: 1.5px solid #fef08a;
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.home-float-lbl {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 900;
  color: #fffbeb;
  letter-spacing: 0.5px;
  margin-top: -2px;
  text-shadow: 1px 1px 0 #261206, -1px -1px 0 #261206, 0 2px 3px rgba(0, 0, 0, 0.85);
}

/* 6. 阵容页 1:1 精修：透明贯通 + 传统红格角饰细横线 + 云纹三珠头像框 + 画卷破框特效层 + 无框真气经脉 */
.formation-page {
  background: transparent !important;
}
.formation-bar-v4 {
  position: relative !important;
  background: transparent !important;
  border-top: 2px solid #8b281c !important;
  border-bottom: 1.5px solid rgba(139, 40, 28, 0.35) !important;
  padding: 7px 8px 9px !important;
  margin-top: 1px;
}
.formation-lattice-corner {
  position: absolute;
  top: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 3;
  border-bottom: 2px solid #8b281c;
}
.formation-lattice-corner.left {
  left: 0;
  border-right: 2px solid #8b281c;
  background:
    linear-gradient(90deg, transparent 7px, #8b281c 7px, #8b281c 9px, transparent 9px),
    linear-gradient(180deg, transparent 7px, #8b281c 7px, #8b281c 9px, transparent 9px);
}
.formation-lattice-corner.right {
  right: 0;
  border-left: 2px solid #8b281c;
  background:
    linear-gradient(90deg, transparent 7px, #8b281c 7px, #8b281c 9px, transparent 9px),
    linear-gradient(180deg, transparent 7px, #8b281c 7px, #8b281c 9px, transparent 9px);
}

/* 云纹金框 + 底部正中 3 枚红金小珠大头头像 */
.mini-avatar-v4 {
  position: relative !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 10px !important;
  padding: 2.5px !important;
  background: linear-gradient(145deg, #fff3b0 0%, #e5a832 45%, #8f4d0c 100%) !important;
  border: 1.5px solid #6b3406 !important;
  box-shadow:
    0 2px 6px rgba(45, 20, 4, 0.45),
    inset 0 0 0 1px rgba(255, 250, 215, 0.85) !important;
  overflow: visible !important;
}
.mini-avatar-v4.selected {
  transform: scale(1.06) !important;
  background: linear-gradient(145deg, #fffbeb 0%, #facc15 45%, #b45309 100%) !important;
  box-shadow:
    0 0 0 1.5px #fef08a,
    0 0 12px rgba(245, 158, 11, 0.85),
    0 3px 8px rgba(45, 18, 4, 0.5) !important;
}
.mini-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  overflow: hidden;
  background: #231208;
}
.mini-avatar-inner .art-avatar {
  border: none !important;
  border-radius: 7px !important;
}
.mini-avatar-v4 .mini-orbs {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: -4px !important;
  transform: translateX(-50%);
  display: flex !important;
  justify-content: center;
  gap: 2.5px !important;
  z-index: 6 !important;
  padding: 0 3px;
}
.mini-avatar-v4 .orb-gem {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fef08a 0%, #ef4444 58%, #7f1d1d 100%) !important;
  border: 1.2px solid #fde047 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

/* 右侧竖排古铜深木【招式】【布阵】按钮 */
.wood-tall-btn {
  width: 30px !important;
  height: 54px !important;
  border-radius: 7px !important;
  background: linear-gradient(180deg, #7a4a24 0%, #4a2610 55%, #301708 100%) !important;
  border: 1.8px solid #d9a130 !important;
  color: #fef08a !important;
  text-shadow: 0 1px 2px #1a0802;
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.45), 0 2px 5px rgba(25, 10, 4, 0.48) !important;
}

/* 中央双龙画卷破框溢出特效层（.scroll-canvas-wrap 直接子元素，允许轻微破框展现终极皮肤流光） */
.scroll-canvas-wrap > .skin-overflow-canvas {
  position: absolute !important;
  left: -14px !important;
  top: -16px !important;
  width: calc(100% + 28px) !important;
  height: calc(100% + 32px) !important;
  pointer-events: none !important;
  z-index: 16 !important;
}
.scroll-canvas-wrap.has-full-skin .scroll-hero-stage {
  cursor: pointer;
}

/* 右下角无框浮空发光【真气】经脉徽章 */
.gear-slot-v4.is-zhenqi {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.zhenqi-floating-badge {
  position: relative;
  width: 56px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.72));
  animation: breathe 3s ease-in-out infinite;
}
.zhenqi-meridian-svg {
  width: 54px;
  height: 54px;
  display: block;
}
.zhenqi-badge-txt {
  position: relative;
  margin-top: -12px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fde68a;
  -webkit-text-stroke: 0.7px #3b1806;
  text-shadow: 0 1px 3px #1c0802, 0 0 6px rgba(56, 189, 248, 0.75);
}

/* 7. 1:1 彩绘朱漆底部导航栏（主页与阵容共用） */
.nav-bottom.bottom-nav {
  flex-shrink: 0;
  height: 66px !important;
  background:
    repeating-linear-gradient(90deg, rgba(255, 220, 150, 0.04) 0px, rgba(255, 220, 150, 0.04) 1px, transparent 1px, transparent 14px),
    linear-gradient(180deg, #8a1f16 0%, #5c120c 58%, #3a0905 100%) !important;
  border-top: 2px solid #e6b44c !important;
  box-shadow: 0 -3px 10px rgba(32, 10, 4, 0.5), inset 0 1px 0 #fef08a !important;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 2px !important;
  z-index: 25;
  overflow: visible;
}
.bottom-nav .nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px 2px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.bottom-nav .nav-btn.active {
  background: linear-gradient(180deg, #fbe8b8 0%, #e7be68 65%, #ce9430 100%) !important;
  box-shadow:
    inset 0 2px 0 #fffbeb,
    inset 0 0 10px rgba(255, 250, 220, 0.65),
    0 0 12px rgba(248, 218, 124, 0.42);
  border-left: 1px solid rgba(254, 240, 138, 0.55);
  border-right: 1px solid rgba(254, 240, 138, 0.55);
}
.nav-icon-painted {
  width: 42px;
  height: 42px;
  margin-top: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 3px rgba(20, 6, 2, 0.7));
  transition: transform 0.14s ease;
}
.bottom-nav .nav-btn.active .nav-icon-painted {
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 3px 5px rgba(58, 22, 4, 0.55));
}
.nav-svg-ico {
  width: 40px;
  height: 40px;
  display: block;
}
.bottom-nav .nav-label {
  font-family: var(--font-serif);
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px;
  margin-top: -3px;
  color: #fef3c7 !important;
  text-shadow: 1px 1px 0 #1e0704, -1px -1px 0 #1e0704, 0 2px 3px rgba(0, 0, 0, 0.9);
}
.bottom-nav .nav-btn.active .nav-label {
  color: #fffbeb !important;
  text-shadow: 1px 1px 0 #4a1c06, -1px -1px 0 #4a1c06, 0 1px 3px rgba(68, 24, 4, 0.95);
}


/* === v19.0 纯手绘 2D 国风 1:1 哑光质感与精确布局重构 === */

/* 1. 通用纯手绘槽位图标（告别扁平几何 SVG 与廉价灰底空框） */
.painted-slot-ico {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  pointer-events: none;
}
.painted-slot-ico.is-empty,
.gear-slot-v4.is-empty .painted-slot-ico {
  opacity: 0.42 !important;
  filter: sepia(0.55) saturate(0.45) !important;
}

/* 2. 主页 1:1 放大半身腰际裁切三侠舞台（对照 IMG_3779） */
.home-stage-v18.home-hero-stage {
  position: relative !important;
  height: 170px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
}
.home-stage-v18.home-hero-stage .home-heroes-v18 {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 2px 2px 0 !important;
  z-index: 2 !important;
}
.home-stage-v18.home-hero-stage .home-hero-slot-v18 {
  width: 152px !important;
  height: 285px !important;
  margin: 0 -24px !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  animation: breathe 3.8s ease-in-out infinite;
  transition: transform 0.16s ease;
}
.home-stage-v18.home-hero-stage .home-hero-slot-v18.lead {
  width: 176px !important;
  height: 292px !important;
  z-index: 4 !important;
  margin: 0 -18px !important;
}
.home-stage-v18.home-hero-stage .cutout-portrait-wrap,
.home-stage-v18.home-hero-stage .home-skin-cutout-wrap,
.home-stage-v18.home-hero-stage .home-skin-aura-wrap {
  width: 100% !important;
  height: 285px !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: visible !important;
}
.home-stage-v18.home-hero-stage .hero-cutout-img,
.home-stage-v18.home-hero-stage .home-skin-cutout-img {
  width: auto !important;
  height: 285px !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center top !important;
}
.home-stage-v18.home-hero-stage .home-stage-mist {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 30px !important;
  z-index: 6 !important;
  pointer-events: none !important;
  background: linear-gradient(
    180deg,
    rgba(238, 226, 198, 0) 0%,
    rgba(238, 226, 198, 0.56) 56%,
    rgba(236, 223, 192, 0.94) 100%
  ) !important;
}
.home-stage-v18.home-hero-stage .home-corner-orb {
  top: 6px !important;
  z-index: 12 !important;
}
.home-stage-v18.home-hero-stage .corner-orb-icon {
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  filter: drop-shadow(0 2px 3px rgba(36, 16, 4, 0.45)) !important;
}
.corner-painted-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* 3. 主页 3×3 纯手绘古铜云纹暖金匾与朱红高亮匾（彻底清除 CSS 塑料渐变/圆角/硬边框） */
.home-plaque-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px 8px !important;
  padding: 10px 14px 8px !important;
  background: transparent !important;
  z-index: 8 !important;
}
.home-plaque-btn,
.home-plaque-btn.is-crimson {
  position: relative !important;
  height: 54px !important;
  background-color: transparent !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  filter: drop-shadow(0 2px 3px rgba(42, 20, 6, 0.34));
  transition: transform 0.1s ease, filter 0.12s ease;
}
.home-plaque-btn::before,
.home-plaque-btn::after,
.home-plaque-btn.is-crimson::before,
.home-plaque-btn.is-crimson::after {
  display: none !important;
  content: none !important;
}
.home-plaque-btn:active,
.home-plaque-btn.is-crimson:active {
  transform: translateY(1.5px) scale(0.98) !important;
  box-shadow: none !important;
  filter: brightness(0.95) drop-shadow(0 1px 2px rgba(42, 20, 6, 0.38)) !important;
}
.home-plaque-btn .plaque-text {
  position: relative !important;
  z-index: 2 !important;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", var(--font-serif) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: 3px !important;
  color: #fef3c7 !important;
  -webkit-text-stroke: 0.45px #3b1906 !important;
  text-shadow:
    0 1px 0 #3b1906,
    1px 1px 2px rgba(38, 15, 4, 0.92),
    -1px -1px 1px rgba(38, 15, 4, 0.72) !important;
}
.home-plaque-btn.is-crimson .plaque-text {
  color: #fef3c7 !important;
  -webkit-text-stroke: 0.45px #450a0a !important;
  text-shadow:
    0 1px 0 #450a0a,
    1px 1px 2px rgba(42, 6, 4, 0.95),
    0 0 5px rgba(254, 240, 138, 0.28) !important;
}

/* 4. 主页底部 6 枚纯手绘浮空小图标（无外框、无底板，深墨字样带微白光晕融于松亭山水） */
.home-float-icons {
  margin-top: auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 2px !important;
  padding: 4px 8px 8px !important;
  background: transparent !important;
  z-index: 8 !important;
}
.home-float-ico-wrap {
  width: 42px !important;
  height: 42px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.home-sub-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(32, 16, 6, 0.42));
}
.home-float-lbl {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--font-serif) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #2b1506 !important;
  letter-spacing: 0.5px !important;
  margin-top: -5px !important;
  text-shadow:
    0 0 4px rgba(255, 249, 234, 0.96),
    0 0 2px rgba(255, 250, 238, 0.96),
    0 1px 1px rgba(255, 248, 230, 0.9) !important;
}

/* 5. 阵容页 1:1 黄金紧凑比例 + 上下山水呼吸留白 + 纯手绘双龙戏珠画轴（对照 IMG_3780） */
.scroll-stage-v4.formation-stage-wrap {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 58px 1fr 58px !important;
  gap: 6px !important;
  padding: 18px 6px 20px !important;
  align-items: stretch !important;
}
.painted-scroll-roller {
  position: relative !important;
  display: block !important;
  flex-shrink: 0 !important;
  z-index: 12 !important;
  width: calc(100% + 20px) !important;
  max-width: none !important;
  margin-left: -10px !important;
  margin-right: -10px !important;
  object-fit: fill !important;
  pointer-events: none !important;
}
.painted-scroll-roller.top {
  height: 28px !important;
  margin-bottom: -5px !important;
  filter: drop-shadow(0 2px 3px rgba(48, 22, 6, 0.36));
}
.painted-scroll-roller.bottom {
  height: 22px !important;
  margin-top: -5px !important;
  filter: drop-shadow(0 -1px 3px rgba(48, 22, 6, 0.34));
}
.scroll-canvas-wrap .golden-scroll-v4 {
  border-left: 2px solid #c99232 !important;
  border-right: 2px solid #c99232 !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* 6. 阵容页纯手绘武学/装备/真气图标槽（告别塑料灰底块与厚重 CSS 渐变框） */
.slot-icon-frame {
  width: 50px !important;
  height: 50px !important;
  padding: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.slot-icon-frame::before {
  display: none !important;
  content: none !important;
}
.gear-slot-v4.is-equipped .slot-icon-frame {
  background: transparent !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(42, 20, 6, 0.4) !important;
}
.gear-slot-v4.is-equipped[data-q="mythic"] .slot-icon-frame {
  background: transparent !important;
  border: none !important;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.5), 0 2px 5px rgba(42, 16, 6, 0.42) !important;
}
.gear-slot-v4.is-equipped[data-q="legendary"] .slot-icon-frame {
  background: transparent !important;
  border: none !important;
  box-shadow: 0 0 7px rgba(217, 152, 34, 0.52), 0 2px 5px rgba(42, 18, 6, 0.4) !important;
}
.gear-slot-v4.is-equipped[data-q="epic"] .slot-icon-frame {
  background: transparent !important;
  border: none !important;
  box-shadow: 0 0 7px rgba(147, 51, 234, 0.42), 0 2px 5px rgba(42, 18, 6, 0.4) !important;
}
.gear-slot-v4.is-equipped[data-q="rare"] .slot-icon-frame {
  background: transparent !important;
  border: none !important;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.4), 0 2px 5px rgba(42, 18, 6, 0.38) !important;
}
.gear-slot-v4.is-equipped[data-q="common"] .slot-icon-frame {
  background: transparent !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(42, 18, 6, 0.35) !important;
}
.gear-slot-v4.is-empty .slot-icon-frame {
  background: rgba(244, 232, 204, 0.32) !important;
  border: 1px solid rgba(154, 112, 52, 0.38) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.zhenqi-floating-badge {
  width: 56px !important;
  height: 58px !important;
  filter: none !important;
}
.zhenqi-painted-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.58)) drop-shadow(0 2px 3px rgba(22, 14, 6, 0.42));
}
.zhenqi-badge-txt {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--font-serif) !important;
  margin-top: -13px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #fde68a !important;
  -webkit-text-stroke: 0.55px #3b1806 !important;
  text-shadow: 0 1px 2px #1c0802, 0 0 4px rgba(14, 116, 144, 0.72) !important;
}

/* 7. 1:1 哑光暗红木漆彩绘底栏（柔和暖金选中态，彻底告别刺眼亮黄方块） */
.nav-bottom.bottom-nav {
  height: 64px !important;
  background:
    repeating-linear-gradient(90deg, rgba(255, 224, 168, 0.03) 0px, rgba(255, 224, 168, 0.03) 1px, transparent 1px, transparent 16px),
    linear-gradient(180deg, #5a1812 0%, #3d0e09 58%, #240604 100%) !important;
  border-top: 1.5px solid #a87b32 !important;
  box-shadow: 0 -2px 8px rgba(24, 8, 3, 0.55), inset 0 1px 0 rgba(236, 198, 120, 0.35) !important;
}
.bottom-nav .nav-btn {
  border-left: 1px solid rgba(22, 5, 2, 0.45);
  border-right: 1px solid rgba(148, 62, 34, 0.14);
}
.bottom-nav .nav-btn:first-child { border-left: none; }
.bottom-nav .nav-btn:last-child { border-right: none; }
.bottom-nav .nav-btn.active {
  background: radial-gradient(ellipse at 50% 60%, rgba(232, 184, 88, 0.34) 0%, rgba(168, 102, 28, 0.14) 58%, transparent 86%) !important;
  box-shadow: inset 0 2px 0 rgba(246, 206, 118, 0.72) !important;
  border-left: 1px solid rgba(22, 5, 2, 0.45) !important;
  border-right: 1px solid rgba(148, 62, 34, 0.14) !important;
}
.nav-icon-painted {
  width: 42px !important;
  height: 42px !important;
  margin-top: -4px !important;
  filter: drop-shadow(0 2px 3px rgba(18, 5, 2, 0.68)) !important;
}
.nav-painted-ico {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.bottom-nav .nav-btn.active .nav-icon-painted {
  transform: translateY(-2px) scale(1.05) !important;
  filter: drop-shadow(0 0 6px rgba(246, 206, 118, 0.55)) drop-shadow(0 2px 4px rgba(22, 6, 2, 0.65)) !important;
}
.bottom-nav .nav-label {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--font-serif) !important;
  font-size: 11.5px !important;
  color: #e8d5b5 !important;
  text-shadow: 0 1px 2px #140402 !important;
}
.bottom-nav .nav-btn.active .nav-label {
  color: #fef08a !important;
  text-shadow: 0 1px 2px #260a02, 0 0 6px rgba(246, 206, 118, 0.55) !important;
}

/* v19.0 crimson plaque crisp gold text */
.home-plaque-btn.is-crimson, .home-plaque-btn.is-crimson span { color: #fef3c7 !important; text-shadow: 0 2px 3px rgba(42,8,4,0.92), 0 0 8px rgba(253,224,71,0.35) !important; }

/* === v20.0 细节精雕：70%活体立绘画卷 + 顶栏纯手绘贴图三件套 + 主页三侠传神放大 === */

/* 1. 阵容画卷人物占比放大至 ~70% + HeroLiveEngine 活体画布无缝覆盖 */
.golden-scroll-v4:not(.has-full-skin) .scroll-hero-stage {
  padding: 0 !important;
  cursor: pointer;
}
.hero-giant-box {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 2px 4px 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}
.hero-giant-box .hero-live-fallback {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.2s ease-out;
}
.hero-giant-box .cutout-portrait-wrap {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  overflow: visible !important;
}
.hero-giant-box .hero-cutout-img {
  width: auto !important;
  height: 98% !important;
  max-width: 110% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  transform-origin: center 78% !important;
}
.hero-live-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  z-index: 4 !important;
  pointer-events: none !important;
}
.hero-giant-box.is-canvas-ready .hero-live-fallback,
.hero-giant-box.is-live-ready .hero-live-fallback,
.hero-giant-box.is-canvas-ready .cutout-portrait-wrap,
.hero-giant-box.is-live-ready .cutout-portrait-wrap,
.hero-giant-box:has(.hero-live-canvas.is-ready) .hero-live-fallback {
  opacity: 0 !important;
}

/* 2A. 阵容顶栏 4 枚纯手绘雕金祥云三红金珠头像框（ui_avatar_frame 中空透明叠加，彻底取代 CSS 边框与 3 枚小红点） */
.mini-avatar-v4.has-painted-frame {
  width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  filter: drop-shadow(0 2px 4px rgba(42, 18, 4, 0.42));
  transition: transform 0.14s ease, filter 0.14s ease;
}
.mini-avatar-v4.has-painted-frame.selected {
  transform: scale(1.07) !important;
  background: transparent !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 0 8px rgba(250, 204, 21, 0.92))
    drop-shadow(0 2px 5px rgba(45, 18, 4, 0.55)) !important;
}
.mini-avatar-v4.has-painted-frame .mini-avatar-inner {
  position: absolute !important;
  inset: 10% 10% 13% 10% !important;
  width: auto !important;
  height: auto !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #231208 !important;
  z-index: 1 !important;
}
.mini-avatar-v4.has-painted-frame .mini-avatar-frame-img {
  position: absolute !important;
  inset: -3px !important;
  width: calc(100% + 6px) !important;
  height: calc(100% + 6px) !important;
  max-width: none !important;
  object-fit: contain !important;
  pointer-events: none !important;
  z-index: 5 !important;
  display: block !important;
}

/* 2B. 阵容顶栏右侧纯手绘古木金线竖牌【招式】【布阵】（ui_wood_vtab 彻底取代 CSS 褐色圆角框） */
.wood-tall-btn.has-painted-tab {
  width: 34px !important;
  height: 58px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", var(--font-serif) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  color: #fef3c7 !important;
  text-shadow: 0 1px 2px #1c0802, 0 0 4px rgba(42, 16, 4, 0.85) !important;
  filter: drop-shadow(0 2px 3px rgba(32, 14, 4, 0.42));
  transition: transform 0.1s ease, filter 0.12s ease;
}
.wood-tall-btn.has-painted-tab:active {
  transform: scale(0.94) !important;
  filter: brightness(0.95) drop-shadow(0 1px 2px rgba(32, 14, 4, 0.45)) !important;
}

/* 2C. 主页左上角掌门纯手绘古铜朱漆云纹等级圆徽（ui_lv_badge 彻底取代 CSS 圆形边框） */
.hud-lv-emblem.has-painted-badge,
.lv-emblem-v18.has-painted-badge {
  width: 44px !important;
  height: 44px !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 4px rgba(32, 12, 4, 0.48));
}
.hud-lv-emblem .hud-lv-num {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  color: #fffbeb;
  text-shadow: 0 1px 2px #260802, 0 0 5px rgba(28, 8, 2, 0.85);
}

/* 3. 主页半身三侠舞台同步放大传神展示（面部清晰居中、舒展大气不被顶部 HUD 遮挡） */
.home-stage-v18.home-hero-stage {
  height: 196px !important;
  margin-top: 2px !important;
  overflow: hidden !important;
}
.home-stage-v18.home-hero-stage .home-heroes-v18 {
  padding: 8px 4px 0 !important;
  align-items: flex-start !important;
  justify-content: center !important;
}
.home-stage-v18.home-hero-stage .home-hero-slot-v18 {
  width: 168px !important;
  height: 318px !important;
  margin: 0 -26px !important;
}
.home-stage-v18.home-hero-stage .home-hero-slot-v18.lead {
  width: 196px !important;
  height: 334px !important;
  margin: -4px -20px 0 !important;
  z-index: 4 !important;
}
.home-stage-v18.home-hero-stage .cutout-portrait-wrap,
.home-stage-v18.home-hero-stage .home-skin-cutout-wrap,
.home-stage-v18.home-hero-stage .home-skin-aura-wrap {
  width: 100% !important;
  height: 100% !important;
  align-items: flex-start !important;
  justify-content: center !important;
}
.home-stage-v18.home-hero-stage .hero-cutout-img,
.home-stage-v18.home-hero-stage .home-skin-cutout-img {
  width: auto !important;
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center top !important;
}
.home-stage-v18.home-hero-stage .home-stage-mist {
  height: 34px !important;
}

/* v20_hide_fallback_css */
.hero-giant-box.is-live-ready .hero-live-fallback, .hero-giant-box.is-canvas-ready .hero-live-fallback { opacity: 0 !important; visibility: hidden !important; display: none !important; }


:root{--ep:#f2e8d2;--ink:#26322e;--muted:#655d4f;--rule:#bcab87;--red:#882d25;--jade:#24443f;--font-ed:"Songti SC","STSong","Noto Serif CJK SC","Noto Serif SC",SimSun,Georgia,serif}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0}
body{background:#152724;color:var(--ink);font-family:var(--font-ed)}
#app-shell{width:min(100%,1120px);max-width:none;height:100vh;height:100dvh;max-height:none;min-height:0;background:var(--ep)!important;border:0;border-radius:0;position:relative;isolation:isolate;box-shadow:0 0 70px #060e0b88;display:flex;flex-direction:column}
.main-view{width:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-color:#9c9275 transparent}
button,a,input{touch-action:manipulation}button{font-family:inherit;cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #df9538;outline-offset:2px}
.ed-top,.ed-nav{flex:none;display:flex;align-items:center;position:relative;z-index:25;background:#172d29;color:#f3e9ce}
.ed-top{min-height:52px;padding:calc(4px + env(safe-area-inset-top)) clamp(10px,3vw,40px) 4px;gap:12px;border-bottom:1px solid #b39b64}
.ed-top button,.ed-nav button,.text-btn,.folio-links button{color:inherit;background:transparent;border:0}
.ed-wordmark{font-family:var(--font-ed);font-weight:900;font-size:23px;letter-spacing:.04em;white-space:nowrap;padding:0}
.ed-wordmark span,.small-seal{display:inline-grid;place-items:center;background:#8b362b;color:#fae4bf;line-height:1.3;border:1px solid #c19a6d}
.ed-wordmark span{font-size:9px;letter-spacing:0;writing-mode:vertical-rl;vertical-align:middle;margin-left:4px}
.ed-top .ed-master{font-size:12px;max-width:34%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:42px;padding:0;color:#eee1c6}
.ed-wallet{display:flex;align-items:center;margin-left:auto;gap:12px;font-size:11px;color:#c7bb9a}.ed-wallet b{font-family:Georgia,serif;color:#f4d593;font-size:14px}
.ed-nav{justify-content:center;gap:clamp(3px,3vw,35px);border-top:1px solid #a48a55;padding:3px 5px calc(3px + env(safe-area-inset-bottom));background:linear-gradient(#273c34,#182c27)}
.ed-nav button{flex:1;max-width:120px;height:53px;display:grid;place-content:center;justify-items:center;gap:1px;color:#e0d5b6;font-weight:700;position:relative;font-size:13px;letter-spacing:.1em}
.ed-nav img{width:26px;height:25px;object-fit:contain}.ed-nav button.on{color:#ffe1a5;background:linear-gradient(0deg,#bb986b30,transparent);box-shadow:inset 0 -2px #d6b56a}
.ed-secondary,.ed-leaf,.ed-journey,.page-formation{background:radial-gradient(ellipse at 15% 20%,#fff7e633,transparent 50%),repeating-linear-gradient(99deg,#a8834e06 0 1px,transparent 1px 4px),#f2e8d2}
.ed-secondary{padding:clamp(10px,2.2vw,26px) max(2.5%,calc((100% - 820px)/2)) 24px}
.leaf-title,.folio-heading,.ed-deploy>header,.cloud-entries{display:flex;align-items:center;gap:10px}
.leaf-title{margin:0 10px 8px;min-height:38px}.leaf-title h1,.ed-deploy h2,.ed-cult-body h2,.ed-journey-banner h1,.ed-stages h2,.ed-chapter h3{font-family:var(--font-ed);margin:0;font-weight:800;color:var(--ink)}
.leaf-title h1{font-size:clamp(25px,4vw,38px);letter-spacing:.09em}.leaf-line{height:1px;background:var(--rule);flex:1}.small-seal{width:22px;height:24px;font-size:15px}.leaf-title .btn-sm{margin-left:auto}
#app-shell .section-bar{background:none;color:#5d4a31;border:none;border-bottom:1px solid var(--rule);text-shadow:none;box-shadow:none;min-height:42px;font-size:14px;height:auto;padding:8px 10px}
#app-shell .paper-card,#app-shell .modal-box{border:1px solid #baaa87;border-radius:3px;box-shadow:0 2px 0 #816b4c24;background-color:#f8f0dc}
#app-shell .btn-sm,#app-shell .wood-btn,#app-shell .tab-pill{font-family:inherit;line-height:1.35;text-shadow:none;box-shadow:none;color:#f8edce;background:#30473e;border:1px solid #817954;border-radius:2px;min-height:36px;padding:6px 11px;font-size:13px;font-weight:700}
#app-shell .btn-sm.red,#app-shell .wood-btn.crimson{background:#873a2e;color:#fff0ce;border-color:#956448}#app-shell .btn-sm.dark{background:#3e4035}
#app-shell .tab-pill{color:#514736;background:#eee4ca;white-space:nowrap;flex:none;border-color:#b5a481}
#app-shell .tab-pill.active{background:#2f4942;color:#fbebc9}.tabs-row{display:flex;overflow-x:auto;flex-wrap:nowrap;gap:6px;padding:8px 2px}
#app-shell .modal-mask{position:absolute;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:14px;background:#14241fc9}
#app-shell .modal-box{color:#332a20;max-height:85dvh;overflow:auto;width:min(100%,500px);background:#fbf0d7;padding:16px}
.ed-dialog h2{margin:0 0 10px}.ed-dialog p{line-height:1.65}.ed-dialog button{margin:4px}
.ed-secondary .paper-card{padding:12px!important}.ed-secondary .paper-card :is(p,div,span)[style*="font-size:10px"],.ed-secondary .paper-card :is(p,div,span)[style*="font-size:11px"]{font-size:12.5px!important}
.cloud-entries{margin:10px}
.folio-layout{padding:16px;max-width:912px;margin:auto;display:grid;gap:15px}.ed-deploy{align-self:start;background:#efe2c7;padding:13px;border:1px solid var(--rule)}.ed-deploy h2{font-size:23px;margin-right:auto}
.ed-deploy>header{border-bottom:1px solid var(--rule);padding-bottom:8px}.ed-deploy>header>span{font-family:Georgia,serif;color:var(--muted)}
.ed-rank{display:grid;grid-template-columns:22px repeat(4,minmax(0,1fr));align-items:center;gap:5px;margin:9px 0 0}.ed-rank>b{writing-mode:vertical-rl;color:var(--muted);font-size:12px;letter-spacing:.12em}
.ed-seat{border:1px solid #b7a67c;background:#eee2c6;padding:2px;overflow:hidden;border-radius:2px;min-width:0}
.ed-seat>span{display:block;position:relative;height:clamp(31px,8vw,52px);overflow:hidden}.ed-seat em{font-style:normal;font-weight:700;font-size:12px;color:#413c30}
.ed-seat.on{outline:2px solid #a04a36;outline-offset:-1px}.ed-seat.vacant{color:#766950;font-size:1.5em;min-height:48px}
.hero-folio{min-width:0}.folio-heading{justify-content:space-between;color:#514b3d;font-size:13px;letter-spacing:.09em}.text-btn{font-size:13px;min-height:36px;text-decoration:underline;text-underline-offset:4px}
.ed-card-stage{display:grid;grid-template-columns:minmax(35px,58px) minmax(0,1fr) minmax(35px,58px);gap:7px;align-items:stretch}
.ed-scroll{position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:310px;aspect-ratio:.72;background:radial-gradient(ellipse at 42% 34%,#fff7d8,#ead6a4 58%,#bba775);border:2px solid #a2854e;box-shadow:inset 0 0 0 3px #dec58d,inset 0 0 0 4px #a5854f,inset 0 0 38px #ba834560,0 3px 5px #8464332c}
.ed-scroll:before{content:"";position:absolute;inset:21% -10%;transform:rotate(-25deg);border:1px solid #a58a5440;border-radius:50%;box-shadow:0 0 0 4px #efd49988,0 0 0 6px #b6a46b44;pointer-events:none}
.figure-button{position:absolute;inset:3% 1% 2%;display:block;width:98%;height:95%;border:0;background:none;padding:0}
.folio-vertical{position:absolute;left:5%;top:6%;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}.folio-vertical strong{writing-mode:vertical-rl;font-family:var(--font-ed);font-size:clamp(25px,6.5vw,44px);color:#182826;line-height:1;letter-spacing:.16em;text-shadow:0 1px 2px #fff6ce}
.folio-title{position:absolute;right:5%;top:6%;writing-mode:vertical-rl;padding:8px 3px;background:#78392f;color:#f7dfab;border:1px solid #a3814b;letter-spacing:.1em;font-size:12px;pointer-events:none}
.folio-grade{position:absolute;bottom:1%;left:1%;right:1%;padding:10px 12px 6px;display:flex;align-items:center;justify-content:space-between;color:#fff0ba;background:linear-gradient(transparent,#403728ce);pointer-events:none}
.ed-loadout{display:grid;grid-template-rows:repeat(5,1fr);gap:3px;min-width:0}.ed-gear{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;background:none;border:0;color:#594e3b;font-size:11px;padding:0;line-height:1.25}
.ed-gear i{display:grid;place-items:center;background:#ded1b6;border:1px solid #afa386;width:min(100%,43px);aspect-ratio:1}.ed-gear.filled i{background:#c8ac79;border:1px solid #a57e40}.ed-gear img{width:94%;height:94%;object-fit:contain}.ed-gear span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ed-quote{margin:9px 0;text-align:center;font-size:13px;color:#554a36;line-height:1.5}.ed-statline,.folio-actions,.folio-links{display:flex;align-items:center;justify-content:space-around;gap:4px}
.ed-statline{padding:10px 3px;border-block:1px solid var(--rule)}.ed-statline span{font-size:12px;color:var(--muted)}.ed-statline b{display:block;font:600 18px Georgia,serif;color:var(--ink)}.folio-actions{margin:11px 0;flex-wrap:wrap}.folio-actions .btn-sm{flex:1;white-space:nowrap}.folio-links button{font-size:13px;min-height:40px;color:#5a4b32}
.ed-leaf,.ed-journey{padding:clamp(10px,3vw,25px);max-width:860px;margin:auto}
.ed-cult-body{display:grid;grid-template-columns:minmax(96px,31%) 1fr;gap:clamp(10px,3vw,26px);margin-top:9px}.ed-cult-image{aspect-ratio:0.55;width:100%;position:sticky;align-self:start;top:5px;background:radial-gradient(#f4e3b9,#bda570);border:2px solid #a48650;isolation:isolate;overflow:hidden}.ed-cult-image>span:last-child{position:absolute;bottom:0;left:0;width:100%;text-align:center;background:#3e4033cc;color:#fff0c9;font-size:12px;padding:5px}
.ed-cult-body article{min-width:0}.ed-cult-body p,.ed-stages p{font:14px/1.65 var(--font-ed);color:var(--muted);margin:6px 0}.ed-cult-body h2{font-size:clamp(23px,5vw,37px)}.ed-eyebrow,.ed-chapter small,.ed-stages small{font-size:12px;letter-spacing:.07em;color:#745a3e}
.ed-chapter{border-top:1px solid var(--rule);margin:10px 0;padding-top:12px}.ed-chapter h3{font-size:21px}
.ed-journey-banner{position:relative;isolation:isolate;overflow:hidden;min-height:180px;background:#31443d;display:flex;align-items:end;color:#fff1d2}.ed-journey-banner>div:last-child{position:relative;z-index:4;width:100%;padding:42px 18px 14px;background:linear-gradient(transparent,#15251fee)}
.ed-journey-banner h1{color:inherit;font-size:clamp(26px,6vw,42px);letter-spacing:.05em}.ed-journey-banner p{margin:4px 0;font-size:14px;line-height:1.55}
.ed-stages article{display:grid;grid-template-columns:35px 1fr auto;gap:13px;align-items:center;padding:16px 4px;border-bottom:1px solid var(--rule)}.ed-stages article>div:last-child{display:grid;gap:5px}.stage-stamp{border:1px solid #b99f71;color:#735337;text-align:center;padding:8px 0;font-size:19px}.ed-stages h2{font-size:22px}.ed-stages p{font-size:12px}.stage-stars{color:#966324}
#app-shell .page-battle{padding:0;overflow:hidden}.battle-arena-v12{isolation:isolate}.battle-arena-v12 .bamboo-side-trim{display:none}.battle-field-v12{display:flex;flex-direction:column;justify-content:center;gap:8px;padding:8px max(3%,calc((100% - 640px)/2));min-height:0}
.battle-col-v12{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:4px;flex:1;max-height:220px;align-content:center}.battle-col-v12.enemy-col{order:0}.battle-center-v12{order:1;flex:none;min-height:16px;padding:0}.battle-col-v12.ally-col{order:2}.battle-col-v12 [data-row=front]{grid-row:1}.battle-col-v12 [data-row=back]{grid-row:2}.enemy-col [data-row=front]{grid-row:2}.enemy-col [data-row=back]{grid-row:1}
.battle-col-v12 :is([data-slot="0"],[data-slot="4"]){grid-column:1}.battle-col-v12 :is([data-slot="1"],[data-slot="5"]){grid-column:2}.battle-col-v12 :is([data-slot="2"],[data-slot="6"]){grid-column:3}.battle-col-v12 :is([data-slot="3"],[data-slot="7"]){grid-column:4}
.battle-col-v12 .unit-bar-v12{width:auto;min-width:0;min-height:0;height:100%;max-height:108px;flex-direction:column;justify-content:center;padding:2px 3px;border:1px solid #9a9e7c;background:linear-gradient(135deg,#284a40e8,#193832ea);border-radius:3px;gap:1px;overflow:visible}.battle-col-v12.enemy-col .unit-bar-v12{background:linear-gradient(135deg,#67473bea,#422f2aef);border-color:#a08569}
.battle-col-v12 .unit-avatar-v12{width:auto;height:clamp(21px,7vh,60px);aspect-ratio:1;flex:0 1 auto;min-height:18px}.battle-col-v12 .unit-info-v12{width:94%;min-height:0;flex:0 1 auto}.battle-col-v12 .unit-name-row-v12{justify-content:center;min-height:0}.battle-col-v12 .unit-name-v12{font-size:12px;color:#f3ebce;max-width:100%;line-height:1.2}.battle-col-v12 .hp-num-v12,.battle-col-v12 .rage-num-v12,.skill-idle-tip{display:none}.battle-col-v12 .hp-bar-v12{height:4px}.battle-col-v12 .rage-bar-v12{height:2px}.battle-center-hint{position:static;color:#fff4cd;background:#182b24ba;border:0;padding:2px 8px;text-align:center;font-size:11px}.battle-beam-top,.battle-beam-bottom{background:#203a33;border-color:#bda16c}.battle-round-flame{background:#704133;border-color:#b8a376;box-shadow:none}.flame-round-text{color:#fce5b7;text-shadow:none}
@media(min-width:740px){.folio-layout{grid-template-columns:260px minmax(0,450px);justify-content:center;gap:30px}.ed-deploy{position:sticky;top:15px}.ed-scroll{max-height:490px}.ed-journey-banner{min-height:230px}.ed-cult-image{max-height:440px}.ed-stages{display:grid;grid-template-columns:1fr 1fr;column-gap:30px}}
@media(max-width:440px){.ed-top{gap:6px;min-height:44px}.ed-wallet{gap:6px}.ed-wallet span{font-size:10px}.ed-wallet b{font-size:12px}.ed-master{font-size:11px!important}.folio-layout{padding:8px;gap:3px}.ed-deploy{padding:6px 9px}.ed-rank{margin-top:3px}.ed-deploy>header{padding-bottom:3px}.ed-deploy h2{font-size:19px}.ed-seat{display:flex;align-items:center;gap:2px}.ed-seat>span{width:28px;height:32px;flex:none}.ed-seat em{font-size:10px;line-height:1.1}.ed-card-stage{grid-template-columns:43px 1fr 43px;gap:5px}.ed-nav button{height:48px}.ed-statline b{font-size:16px}}
@media(max-width:360px){.ed-wallet span:nth-child(2){display:none}.ed-gear span{font-size:10px}}
@media(prefers-reduced-motion:reduce){#app-shell *,#app-shell *::before,#app-shell *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.ed-collection{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(43%,150px),1fr));gap:10px;padding:4px}.ed-collection article{background:#eee2c5;border:1px solid #b59d71}.ed-print{height:clamp(145px,33vw,220px);position:relative;overflow:hidden;background:radial-gradient(#fff4cc,#c9b488)}.ed-print>img{width:100%;height:113%;object-fit:contain;object-position:bottom}.ed-print .small-seal{position:absolute;top:8px;left:8px}.ed-collection section{padding:9px}.ed-collection h2,.ed-pavilion h2{margin:3px 0;font-size:23px}.ed-collection small,.ed-collection p,.ed-register p{font-size:13px;line-height:1.55;color:#5d523b}.ed-collection p{margin:3px 0 7px}
.ed-pavilion{position:relative;isolation:isolate;height:clamp(215px,36vh,340px);overflow:hidden;background:#3f473d}.ed-visitor{position:absolute;left:37%;top:0;height:125%;width:62%;z-index:2}.ed-pavilion-copy{position:absolute;left:0;bottom:0;z-index:3;color:#fff0ce;padding:18px;width:100%;background:linear-gradient(transparent,#172e28e8)}.ed-pavilion-copy h2{font-size:32px;letter-spacing:.15em}.ed-pavilion-copy span,.ed-pavilion-copy p{font-size:13px;margin:3px 0}
.ed-draw-info,.ed-draw-btns{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0}.ed-draw-info{border-bottom:1px solid #beae8b;font-size:14px}.ed-draw-btns button{flex:1}.ed-draw-btns small{display:block;font-weight:400}.ed-register{padding:14px 0;border-top:1px solid #bcab87}.ed-register summary{cursor:pointer}.ed-recruits>div{display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:6px}.ed-recruits article{display:grid}.ed-recruits .ed-avatar{width:55px;height:55px}.ed-recruits b,.ed-recruits small{font-size:12px}.ed-recruits h3{margin:10px 0}

.ed-disciple-unknown .ed-print > img {filter:brightness(0);pointer-events:none;user-select:none}
.ed-collection .ed-disciple-unknown .ed-print {background:#9e947d}
.ed-disciple-unknown section {text-align:center}

.ed-journey .journey-banner{min-height:240px;border:1px solid #bca473}
.journey-panorama{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 46%}
.ed-journey .journey-banner>div:last-child{padding:38px 14px 13px;background:linear-gradient(180deg,transparent,#142621cc 38%,#0d211c)}
.journey-banner-meta{display:flex;gap:10px;justify-content:space-between;color:#ffe1a4;font-size:12px}
.journey-banner progress{display:block;width:100%;height:6px;margin:9px 0 10px;accent-color:#d9a554}
.journey-links{display:flex;gap:6px;flex-wrap:wrap}
.journey-volumes{padding-inline:0}
.journey-guide{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px;margin-bottom:10px;padding:4px 9px;border:1px solid #b8a17a;background:#f5ecd6;color:#3b2e1e;box-shadow:0 2px 5px #71563022}
.journey-guide b,.journey-guide small{display:block}
.journey-guide small{font-size:12px;color:#6f5133}
#app-shell .journey-guide .btn-sm{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 10px;text-decoration:none;text-align:center;white-space:nowrap;flex:none}
.ed-journey .journey-stages{gap:12px;display:grid;padding-bottom:10px}
.ed-journey .journey-stages .journey-stage{display:block;position:relative;border:1px solid #b8a17a;border-left:3px solid #658074;padding:11px;background:linear-gradient(138deg,#fbf6e6,#efe5cb);box-shadow:0 2px 5px #71563022;scroll-margin-top:72px}
.ed-journey .journey-stage:target{outline:2px solid #82552d;outline-offset:2px}
.ed-journey .journey-stages .journey-stage[data-tier="精英"]{border-left-color:#9b6b35;background:linear-gradient(138deg,#fff2d8,#e9d7b2)}
.ed-journey .journey-stages .journey-stage[data-tier="首领"]{border-left-color:#933b30;background:linear-gradient(138deg,#f5e6c7,#e1c3a6)}
.ed-journey .journey-stages .journey-stage[data-locked]{border-left-color:#ada28a}
.journey-stage-top{display:flex;align-items:center;gap:11px}
.journey-enemy{width:66px;height:66px;position:relative;flex:none;border:1px solid #a88757;overflow:hidden;background:radial-gradient(ellipse at top,#5f756b,#21362f)}
.journey-enemy img{width:100%;height:100%;object-fit:cover;object-position:50% 24%}
.journey-enemy span{position:absolute;bottom:0;left:0;padding:0 5px;background:#222a24dc;color:#fae2a9;font-size:11px}
.journey-stage-title{min-width:0}
.journey-meta{display:flex;gap:8px;font-size:12px;color:#754c2d}
.journey-meta span:first-child{font-weight:700}
.journey-rewards{display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:9px}
.journey-rewards span{padding:2px 6px;background:#e5d4ae99;font-size:12px;color:#4a3c24}
.journey-loot{margin:7px 0;color:#554331;font-size:12px}
.journey-loot summary{cursor:pointer;width:max-content;min-height:28px}
.ed-journey .journey-stage .journey-actions{display:flex;gap:4px;flex-wrap:wrap}
#app-shell .journey-actions .btn-sm{min-height:37px;padding:5px 10px}
.daily-supply{padding:12px}
.daily-supply h2{margin:0 0 6px;font-size:19px}
.daily-supply-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #bcaa825e}
.daily-supply-row small{display:block;color:#665135}
.daily-supply-row button{flex:none}

.section-fold{margin:8px 0;padding:0 10px;border:1px solid #bba581;background:#f6ecd8;color:#553d25}
.section-fold summary{cursor:pointer;min-height:40px;padding:9px 0;font-weight:700}
.section-fold[open]>summary{border-bottom:1px solid #cfbd9a}
.section-fold p{margin:7px 0}
.hall-fold{margin:5px 0 0}
.folio-more{margin-inline:6px}
.bag-detail{margin:3px 0;border:0;background:transparent;padding:0}
.bag-detail summary{font-size:12px;padding:4px 0;min-height:26px}
.gear-dossier .section-fold{margin-top:12px;padding-bottom:4px}

.mythic-invitation{margin:10px;padding:12px}
.mythic-invitation h3{margin:0;color:#76432b;font-family:var(--brush)}
.mythic-invitation p{margin:4px 0;font-size:13px}
.mythic-invitation summary{cursor:pointer;min-height:34px;padding-block:6px}
.mythic-invite-list{display:flex;flex-wrap:wrap;gap:5px}


/* 卷首与客栈。容器查询使横屏、手机竖屏和桌面侧栏都使用实际可用宽度。 */
.ed-create,.ed-home {
  --ed-paper:#f3e9d4; --ed-ink:#292923; --ed-mute:#635748; --ed-line:#cbbb9c;
  --ed-cinnabar:#883422; --ed-gold:#dec99a;
  --ed-serif:"Songti SC","STSong","SimSun","Noto Serif CJK SC",serif;
  font-family:var(--ed-serif); color:var(--ed-ink); container-type:inline-size;
}
.ed-create *, .ed-home * { box-sizing:border-box; }
.ed-create button,.ed-home button,.ed-create input {font:inherit;touch-action:manipulation;}
.ed-create button,.ed-home button,.ed-home summary {cursor:pointer;-webkit-tap-highlight-color:transparent;}
.ed-create :focus-visible,.ed-home :focus-visible {outline:2px solid #a75630;outline-offset:3px;}
.ed-scenery {position:absolute;inset:0;overflow:hidden;pointer-events:none;isolation:isolate;background:#d0b58c;}
.ed-horizon {position:absolute;inset:-2.5%;transform:translate3d(var(--ed-x,0px),var(--ed-y,0px),0);}
.ed-horizon img {width:100%;height:100%;object-fit:cover;object-position:var(--ed-focus,66%) 55%;display:block;}
.ed-scenery-cold .ed-horizon img {object-position:var(--ed-focus,62%) 55%;}
.ed-valley-mist {position:absolute;left:-15%;bottom:20%;width:88%;height:13%;background:radial-gradient(ellipse,rgba(254,230,193,.28),transparent 69%);animation:ed-haze 18s ease-in-out infinite alternate;}
.ed-near-pine {position:absolute;top:-5%;right:-2%;width:clamp(120px,32%,510px);height:auto;transform:translate3d(calc(var(--ed-x,0px)*-1.7),calc(var(--ed-y,0px)*-1.6),0);}
.ed-near-pine img {display:block;width:100%;height:auto;max-width:none;transform-origin:100% 12%;animation:ed-pine-moving 8s ease-in-out infinite alternate;}
.ed-scenery.ed-scenery-cold .ed-near-pine {filter:brightness(.64) saturate(.65);}
.ed-wind-dust {position:absolute;inset:0;overflow:hidden;}
.ed-wind-dust i {position:absolute;top:calc(16% + var(--i)*10%);left:-10%;height:2px;width:calc(2px + var(--i)*.25px);border-radius:50%;background:#ffeba5;box-shadow:0 0 4px #fff3b7;opacity:0;animation:ed-dust calc(10s + var(--i)*.87s) linear infinite;animation-delay:calc(-2.65s * var(--i));}
@keyframes ed-pine-moving {from{transform:rotate(-1.3deg)} to{transform:rotate(1.2deg) translateY(3px)}}
@keyframes ed-haze {from{transform:translate3d(-4%,0,0)} to{transform:translate3d(14%,-6%,0);opacity:.45}}
@keyframes ed-dust {0%{left:-2%;transform:translateY(0);opacity:0}14%{opacity:.8}84%{opacity:.5}100%{left:103%;transform:translateY(-24px);opacity:0}}
.ed-brush-title{width:100%;height:auto;display:block;user-select:none;filter:drop-shadow(0 1px 1px #ffe4af) drop-shadow(0 0 5px #ffe7b7)}
.hall,.hall-start{--hall-ink:#382417;--hall-gold-ink:#68380f;--hall-light:#ffe5ad;--hall-kai:"Kaiti SC",STKaiti,KaiTi,"Songti SC",SimSun,serif;--hall-wood:repeating-linear-gradient(2deg,transparent 0 3px,#2c0d080f 4px 5px),linear-gradient(90deg,#4c1c14,#7e3d26 18%,#612b1a 42%,#83412b 77%,#491d12);color:var(--hall-ink);font-family:var(--ed-serif)}
.hall img,.hall-start img{user-select:none}
.ed-create{isolation:isolate;position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-height:0;height:100%;width:100%;overflow:auto;background:#482619}
.ed-create-land,.ed-home-land{position:relative;isolation:isolate;overflow:hidden}
.ed-create-land{flex:1 0 270px;--ed-focus:70%}
.ed-home{position:relative;flex:1 0 auto;width:100%;background:var(--hall-wood)}
.ed-home-land{height:clamp(242px,74cqw,330px);--ed-focus:74%;border-left:3px ridge #a46b3d;border-right:3px ridge #a46b3d}
.ed-create-land::before,.ed-home-land::before{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;box-shadow:inset 0 8px 13px -10px #43231a,inset 0 -18px 25px -14px #251306;background:linear-gradient(10deg,#6b3b1c16,transparent 52%)}
.hall .ed-near-pine,.hall-start .ed-near-pine{top:-6%;width:46%}
.hall-lantern{position:absolute;z-index:3;height:31%;width:auto;max-width:24%;right:2.8%;top:-1.8%;pointer-events:none;transform-origin:50% 0;animation:hall-lamp 5s ease-in-out infinite alternate;filter:drop-shadow(1px 2px 2px #3b211d60)}
@keyframes hall-lamp{from{transform:rotate(-4deg)}to{transform:rotate(3deg)}}
.ed-intro-logo,.ed-home-logotype{position:absolute;z-index:4;left:4.8%;top:5.5%;pointer-events:none}
.ed-intro-logo h1,.ed-home-logotype h2{line-height:1;font-size:1em;margin:0;padding:0;border:0}
.ed-intro-logo h1{width:clamp(166px,52cqw,385px)}
.ed-home-logotype h2{width:clamp(104px,29cqw,190px)}
.hall-chop{background:linear-gradient(90deg,#882520,#a53d29);border:1px solid #b67c51;outline:1px solid #eed0a16b;outline-offset:-3px;color:#ffdda0;font:700 11px/1.1 var(--hall-kai);letter-spacing:.12em;display:inline-block;border-radius:2px;padding:4px 7px;margin:2px 0 0 5px;box-shadow:1px 2px 1px #55341a30}
.hall-actors{position:absolute;inset:0;z-index:2}
.hall-actor,.hall .hall-actor{background:none;border:0;border-radius:0;box-shadow:none;padding:0;width:43%;position:absolute;transform:translate3d(calc(var(--ed-x,0px)*-.45),calc(var(--ed-y,0px)*-.25),0);filter:drop-shadow(1px 1px 1px #fff0cb66) drop-shadow(2px 3px 2px #3420106b);line-height:1}
.hall-actor-0{z-index:3;left:29%;bottom:-18%;height:107%}
.hall-actor-1{z-index:1;left:5%;bottom:-13%;height:84%}
.hall-actor-2{z-index:2;right:5%;bottom:-14%;height:89%}
.hall-actor>*{pointer-events:none}
.hall-role{background:var(--hall-named) center/100% 100% no-repeat;color:#ffe3a0;text-shadow:0 1px #422116;position:absolute;right:3%;top:46%;writing-mode:vertical-rl;padding:8px 2px;min-width:18px;letter-spacing:.09em;line-height:1.1;font:700 clamp(11px,2.9cqw,15px)/1.1 var(--hall-kai)}
.hall-actor-0 .hall-role{top:43%;right:1%}
.hall-actor-1 .hall-role{left:8%;right:auto;top:40%}
.hall-actor-2 .hall-role{right:6%;top:43%}
.hall-start .hall-actor-0{left:22%;width:56%;height:87%;bottom:-8%}
.hall-start .hall-actor-1{left:-9%;width:55%;height:68%;bottom:-5%}
.hall-start .hall-actor-2{right:-9%;width:55%;height:70%;bottom:-5%}
.hall-site-seal{position:absolute;z-index:4;right:4%;bottom:7%;writing-mode:vertical-rl;color:#ffedbe;background:var(--hall-named) center/100% 100% no-repeat;font:700 17px/1.12 var(--hall-kai);letter-spacing:.15em;padding:10px 6px;transform:rotate(3deg)}
.hall-corners{position:absolute;right:2%;bottom:6%;z-index:4;display:flex;flex-direction:column;gap:3px;align-items:center}
.hall .hall-corner{position:relative;display:grid;justify-items:center;text-align:center;align-content:center;background:transparent;border:0;box-shadow:none;color:#fff1c8;padding:0;width:54px;min-height:44px}
.hall-icon{object-fit:contain;display:block}
.hall-icon.is-figure{clip-path:inset(0 0 0 17%)}
.hall-corner .hall-icon{width:30px;height:28px;filter:drop-shadow(0 1px 1px #301509)}
.hall-corner b{background:#342019f2;border:1px solid #d4aa70;box-shadow:0 1px 2px #24120b9c;padding:2px 3px;border-radius:3px;color:#fff2cd;font:700 11px/1.15 var(--ed-serif);white-space:nowrap}
.hall-ping{position:absolute;right:1px;top:1px;padding:0 2px;min-width:8px;min-height:8px;font:700 9px/13px system-ui,sans-serif;color:#fff2db;background:radial-gradient(circle at 30% 20%,#f89c6d,#b81913 65%);border:1px solid #f5cb80;border-radius:9px;box-shadow:0 1px 2px #55230d8a}
.ed-hero-quote{position:absolute;z-index:8;left:4%;bottom:16px;max-width:85%;margin:0;padding:6px 10px;border:1px solid #997847;background:#fff0cde8;color:#422616;line-height:1.4;font:600 13px/1.5 var(--hall-kai);box-shadow:1px 3px 7px #412c1d45;pointer-events:none}
.hall-desk,.hall-invitation{position:relative;z-index:5}
.hall-sill{width:100%;height:clamp(33px,9cqw,52px);object-fit:fill;display:block;position:absolute;z-index:2;left:0;top:0;transform:translateY(-53%);pointer-events:none;filter:drop-shadow(0 2px 1px #34291455)}
.hall-desk{margin:0 0 3px;padding:15px 8px 9px;border:5px ridge #95592f;border-top:2px solid #89512b;background:linear-gradient(#efdbadde,#f2e1bf99 60%,#e5cea18a),var(--hall-map) center/100% 100%;box-shadow:inset 0 0 0 1px #e7c690,inset 0 0 10px #84643269}
.hall .hall-chapter{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;margin:0 0 7px;padding:9px 10px;text-align:left;min-height:51px;border:1px solid #ae8552;background:linear-gradient(110deg,#fff0cd,#e8c997);color:#4b2a18;box-shadow:inset 0 0 0 2px #f5e2b8,0 2px 4px #69451b24}
.hall-chapter-copy{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.hall-chapter b{font:700 clamp(15px,4.6cqw,19px)/1.2 var(--hall-kai);color:#592d1b}
.hall-chapter small{font:600 12px/1.25 var(--ed-serif);color:#62482f}
.hall-rubric{display:inline-block;font:700 12px/1.2 var(--ed-serif);color:#ffe9bc;background:#842d22;padding:4px 7px;white-space:nowrap;box-shadow:0 0 0 1px #a26b42}
.hall-plaque-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.hall .hall-plaque{position:relative;display:grid;align-content:center;justify-items:center;gap:2px;min-width:0;border:0;background:var(--hall-gold) center/100% 100% no-repeat;padding:7px 5px 8px;min-height:clamp(44px,12cqw,54px);box-shadow:none;color:#4d250e;text-shadow:0 1px 0 #ffecb1;font-family:var(--hall-kai);font-size:clamp(15px,4.7cqw,21px);line-height:1.1;font-weight:900;letter-spacing:.02em;filter:drop-shadow(0 2px 1px #71481745)}
.hall-plaque small{font:700 10px/1.1 var(--ed-serif);white-space:nowrap}
.hall .hall-plaque.ed-raid{background-image:var(--hall-red);color:#ffe7af;text-shadow:0 1px 2px #54170d}
.hall .hall-plaque:active,.hall .hall-business button:active,.hall .hall-shelf button:active{transform:translateY(1px)}
.hall-shelf-head{display:flex;align-items:center;justify-content:center;gap:9px;margin:8px 3px 4px}
.hall-shelf-head b{font:700 15px/1.1 var(--hall-kai);letter-spacing:.14em;color:#78361e;text-shadow:0 1px #fff3c8}
.hall-shelf-head i{position:relative;display:block;flex:1;height:3px;border-bottom:1px solid #bb935f;border-top:1px solid #c4a577}
.hall-shelf-head i:first-child:after,.hall-shelf-head i:last-child:before{content:"";position:absolute;border:1px solid #9e7744;background:#d8b57f;width:4px;height:4px;transform:rotate(45deg);top:-2px}
.hall-shelf-head i:first-child:after{right:0}
.hall-shelf{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px}
.hall .hall-shelf button,.hall .hall-business button{border:0;background:transparent;box-shadow:none;color:#53351f;position:relative;padding:3px 1px;min-height:43px}
.hall-shelf button{display:grid;justify-items:center;align-content:center}
.hall-shelf .hall-icon{width:clamp(29px,8.4cqw,40px);height:clamp(29px,8.4cqw,40px);filter:drop-shadow(0 1px 1px #6a3c235e)}
.hall-shelf b,.hall-business b{font:700 13px/1.25 var(--ed-serif);text-shadow:0 1px #fff2c9}
.hall-shelf b{margin-top:2px}
.hall-business{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px 2px}
.hall .hall-business button{display:grid;align-content:center;justify-items:center;gap:3px;padding:4px 1px;border-bottom:1px solid #b59b6e77;min-height:44px}
.hall-business .hall-icon{width:24px;height:25px;filter:drop-shadow(0 1px 1px #67402253)}
.hall-business b{font-size:12px;white-space:nowrap}
.hall-business .hall-ping{right:0;top:1px}
.hall-invitation{padding:13px 11px 10px;background:var(--hall-wood);border-top:3px ridge #a66c3a;box-shadow:inset 0 -2px 0 #412015;flex:0 0 auto}
.hall-invitation-paper{margin:0 auto;border:3px double #a77b45;outline:1px solid #30140c;box-shadow:0 1px 5px #2d140aaa,inset 0 0 15px #9c722b44;max-width:545px;padding:10px 16px 12px;background:linear-gradient(90deg,#ead4a9d6,#f4e4bfc9 49%,#e4cca1d9),var(--hall-map) center/cover}
.hall-subtitle{display:flex;align-items:center;justify-content:center;gap:8px;color:#7c351c;font:700 18px/1.1 var(--hall-kai);letter-spacing:.15em}
.hall-subtitle i{height:3px;border-block:1px solid #b39362;width:23%}
.hall-gifts{display:flex;align-items:center;justify-content:space-around;gap:5px;margin:6px 0 9px;border-bottom:1px solid #b5986e;padding-bottom:6px}
.hall-gifts span{display:flex;align-items:center;gap:3px;font:700 11px/1.3 var(--ed-serif);white-space:nowrap;color:#5d4127}
.hall-gifts img{width:26px;height:28px}
.hall-name-line{display:flex;align-items:center;border:1px solid #ae8a56;background:#fff4dabb;box-shadow:inset 0 1px 3px #6d4b2b28;padding:3px 6px;min-height:40px}
.hall-name-line label{padding:4px 6px 4px 3px;border-right:1px solid #ccb893;white-space:nowrap;font:700 15px/1.2 var(--hall-kai);color:#71371d}
.hall-name-line input{min-width:0;flex:1;background:transparent;color:#3c291c;border:0;border-radius:0;box-shadow:none;padding:5px 7px;outline-offset:0;font-size:16px;line-height:1.25}
.hall-start-actions{display:grid;grid-template-columns:1fr 1.45fr;gap:6px;max-width:390px;margin:6px auto 0}
.hall-start-actions button{border:0;box-shadow:none;white-space:nowrap;padding:8px 7px;min-height:49px;font:700 20px/1.15 var(--hall-kai);letter-spacing:.08em}
.hall-start-actions .ed-enter-btn{background:var(--hall-red) center/100% 100% no-repeat;color:#ffde94;text-shadow:0 1px 2px #3e0e09}
.hall-start-actions .hall-start-restore{background:var(--hall-gold) center/100% 100% no-repeat;color:#5a3114;font-size:15px;text-shadow:0 1px #ffedb6}
@container(min-width:660px){
  .hall-start-land{flex-basis:100%;min-height:465px;--ed-focus:58%}
  .ed-intro-logo{left:5%;top:8%}.ed-intro-logo h1{width:clamp(225px,30cqw,400px)}
  .hall-start .hall-actor-0{left:42%;width:29%;height:85%;bottom:-7%}
  .hall-start .hall-actor-1{left:29%;width:25%;height:69%;bottom:-5%}
  .hall-start .hall-actor-2{right:13%;width:24%;height:72%;bottom:-6%}
  .hall-invitation{position:absolute;bottom:8%;left:3.7%;width:clamp(275px,32cqw,375px);padding:12px 7px 7px}
  .hall-invitation-paper{padding:11px 10px 7px}
  .hall-site-seal{right:4.5%;bottom:9%}
  .ed-home-land{height:clamp(245px,28cqw,355px);--ed-focus:57%}
  .ed-home-logotype{left:5%;top:9%}.ed-home-logotype h2{width:clamp(150px,20cqw,225px)}
  .hall-stage .hall-actor-0{left:39%;width:24%;height:113%;bottom:-24%}
  .hall-stage .hall-actor-1{left:26.5%;width:23%;height:93%;bottom:-16%}
  .hall-stage .hall-actor-2{right:25%;width:22%;height:94%;bottom:-16%}
  .hall-stage .hall-lantern{height:35%}
  .hall-corners{right:4%;top:auto;bottom:13%;flex-direction:row;gap:10px}
  .hall .hall-corner{width:49px}.hall-corner b{font-size:12px}.hall-corner .hall-icon{width:34px;height:34px}
  .hall-desk{padding:15px 3% 12px;display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(190px,.8fr);grid-template-rows:auto auto auto;column-gap:26px;align-content:start}
  .hall .hall-chapter{grid-column:1 / -1}
  .hall-plaque-grid{grid-column:1;grid-row:2 / 4;column-gap:7px;align-self:start}
  .hall-shelf-head{margin:8px 0 3px}
  .hall-shelf{align-content:start}
  .hall-sideboard{grid-column:1 / -1}
  .hall-business{grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
  .hall-business b{font-size:13px}.hall-business .hall-icon{width:26px;height:28px}
}
@media(max-width:350px){.hall .hall-plaque{font-size:15px}.hall-name-line label{font-size:14px}.hall-business b{font-size:11px}.hall-business .hall-icon{width:18px;height:19px}}
@media(max-height:610px){.ed-create-land{flex-basis:220px}.ed-intro-logo h1{width:clamp(128px,36cqw,250px)}}
@media(prefers-reduced-motion:reduce){.ed-scenery *,.hall-lantern,.hall .hall-actor,.hall-start .hall-actor{animation:none!important;transform:none!important}.ed-wind-dust{display:none}}
.hall .hall-lineup{display:grid;grid-template-columns:52px repeat(8,minmax(0,1fr));align-items:center;gap:3px;margin:0 3px 4px;padding:8px 5px;min-height:49px;background:linear-gradient(#ad74442e,#3e1b1757),var(--hall-wood);border:1px solid #a57749;box-shadow:inset 0 0 0 2px #412313,inset 0 0 0 3px #a2754977}
.hall-lineup .hall-lineup-title{border:0;background:none;box-shadow:none;display:grid;justify-items:center;align-content:center;gap:2px;min-height:33px;padding:0;color:#efd49a}
.hall-lineup-title b{font:700 12px/1.15 var(--hall-kai)}
.hall-lineup-title small{font:600 10px/1.1 Georgia,serif}
.hall-lineup .hall-head{padding:2px;display:block;width:100%;max-width:49px;aspect-ratio:1;min-width:0;min-height:0;border:1px solid #d2a663;box-shadow:0 0 0 1px #4b2a15,inset 0 0 0 1px #684020,0 2px 2px #30190e80;border-radius:5px;background:linear-gradient(145deg,#b38a4b,#5a371c 40%,#dfb677 68%,#754e27);color:#eddab1;font-size:12px}
.hall-head .ed-avatar,.hall-head .art-avatar{border-radius:2px;border:0;width:100%;height:100%}
@container(max-width:550px){.hall-actor-2 .hall-role{right:5%;left:auto;top:66%}}
@container(min-width:660px){.hall .hall-lineup{grid-template-columns:76px repeat(8,minmax(0,43px));justify-content:center;gap:8px;padding:7px 15px}}

.hall-training {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin:8px 0;color:#513724;border:1px solid #a2774b;background:#f6e6c2;border-radius:5px}
.hall-training div {display:grid;gap:3px;font-size:.875rem}
.hall-training .btn-sm {flex:none;min-height:40px}


.ed-portrait {
  position: relative; isolation: isolate; display:block; width:100%; height:100%;
  min-height:0; pointer-events:none; contain:layout style;
}
.ed-portrait > .ed-paint, .ed-portrait > .ed-live {
  position:absolute; inset:0; width:100%; height:100%; max-width:none;
  object-fit:contain; object-position:50% 100%; display:block; user-select:none;
  transform:none; border:0; border-radius:0;
}
.ed-portrait > .ed-live {opacity:0}
.ed-portrait.ed-live-ready > .ed-live {opacity:1}
.ed-portrait.ed-live-ready > .ed-paint {opacity:0}
.ed-portrait.ed-wardrobe > .ed-paint {object-fit:contain;animation:ed-cloth-breath 5s ease-in-out infinite}
.ed-avatar.art-avatar {
  display:block; position:relative; width:100%; height:100%; box-sizing:border-box;
  border-radius:inherit; overflow:hidden; background:radial-gradient(ellipse at 60% 20%,#e1d4bd,#baab91 67%,#92856f);
}
.ed-avatar.art-avatar > img { width:100%; height:100%; max-width:none; display:block; object-fit:cover; object-position:center; }
.ed-avatar.ed-avatar-awake {box-shadow:inset 0 0 0 1px #f6d899;}
.ed-nimbus, .ed-sparks {position:absolute;pointer-events:none;display:block;}
.ed-nimbus {
  width:69%;height:64%;border-radius:50%;left:15.5%;top:9%;opacity:.52;z-index:-1;
  background:radial-gradient(ellipse at center,rgba(229,185,104,.21) 8%,transparent 67%);
}
.ed-awakened .ed-nimbus::before,.ed-portrait[data-bio="4"] .ed-nimbus::after {
  content:"";position:absolute;inset:7% 3%;border-radius:50%;
  border:1px solid rgba(245,202,120,.65);transform:rotate(-16deg);
  box-shadow:0 0 15px rgba(203,151,67,.2), inset 0 0 8px rgba(255,228,166,.16);
}
.ed-portrait[data-bio="4"] .ed-nimbus::after {inset:4% 8%;transform:rotate(13deg);border-style:dashed;}
.ed-sparks {inset:10% 15%;z-index:1;}
.ed-sparks b {position:absolute;top:50%;left:6%;width:3px;height:3px;border-radius:1px;background:#f6dca4;box-shadow:0 0 6px #d6a064;animation:ed-drift 4.7s infinite both;}
.ed-sparks b:nth-child(2) {left:87%;top:46%;animation-delay:-2.2s}
.ed-sparks b:nth-child(3) {left:74%;top:80%;animation-delay:-1.1s}
.ed-sparks b:nth-child(4) {left:12%;top:28%;animation-delay:-3.6s}
.ed-sparks b:nth-child(5) {left:47%;top:12%;animation-delay:-.8s}
@keyframes ed-drift {0%,100%{opacity:0;transform:translate(0,6px) rotate(30deg)}52%{opacity:.92}90%{opacity:0;transform:translate(8px,-15px) rotate(120deg)}}
@keyframes ed-cloth-breath {0%,100%{transform:scale(1)}50%{transform:scale(1.008)}}
@media (prefers-reduced-motion:reduce){.ed-portrait *, .ed-portrait ::before, .ed-portrait ::after {animation:none!important;transition:none!important;}}


/* 龙门画卷。手机端以金轴弟子卡、漆木导航和左右列阵为基准。 */
:root{--brush:"龙门题字","Kaiti SC","STKaiti","KaiTi","Songti SC",serif}
body{background:linear-gradient(90deg,#251b15bc,#56332252,#251b15bc),var(--outside) center/cover fixed}
#app-shell{max-width:700px;box-shadow:0 0 2px 2px #805f3b,0 0 62px #170f0db3}
.ed-top,.ed-nav{background:linear-gradient(180deg,#a0552d 0,#532b1c 10%,#3a1e14 45%,#551f13 90%,#bb8650);border-color:#9a682b;color:#ffe6ab}
.ed-top{box-shadow:inset 0 1px #e6be7b,inset 0 -3px #5f291b,0 2px 0 #bf9a55;padding-inline:10px;gap:7px;min-height:45px}
.ed-top .ed-wordmark{font:normal 28px/.94 var(--brush);color:#ffe28a;text-shadow:1px 2px #351507}.ed-wordmark span{font:10px/1 var(--font-ed)}
.ed-top .ed-master{font-weight:750;color:#fae9bd}.ed-wallet{gap:7px}.ed-wallet span{color:#eedbb5}.ed-wallet b{font-weight:800;color:#ffe18a}
.ed-nav{gap:0;justify-content:space-around;background:linear-gradient(#af6b3e,#5c2118 13%,#45190e 62%,#632516);box-shadow:inset 0 2px #e7bd73,inset 0 -2px #a76d40}
.ed-nav button{height:59px;max-width:unset;font:18px/.95 var(--brush);letter-spacing:.035em;text-shadow:1px 2px 1px #210d05;color:#e2bb87;border-right:1px solid #c18b5733}
.ed-nav img{width:39px;height:34px;filter:drop-shadow(1px 2px 1px #241207)}.ed-nav button.on{color:#fff0a2;box-shadow:inset 0 -3px #e0b254;background:radial-gradient(ellipse at 50% 115%,#f5a63290,transparent 70%)}
.ed-secondary,.ed-leaf,.ed-journey,.page-formation{background:linear-gradient(#fff3cd30,#f5e0b726),var(--art-paper) center/100% 100%}
#app-shell .btn-sm,#app-shell .wood-btn{box-shadow:none;background:var(--art-gold) center/100% 100% no-repeat;color:#452511;font-weight:800;border:0;padding:7px 15px;text-shadow:0 1px #ffedb8;border-radius:0}
#app-shell .btn-sm.red,#app-shell .wood-btn.crimson,#app-shell .btn-sm.dark{background:var(--art-rubric) center/100% 100% no-repeat;color:#ffeba9;border:0;text-shadow:1px 1px #581508}
#app-shell button:disabled{opacity:.58}
#app-shell .section-bar{background:linear-gradient(90deg,#753224eb,#4d251be8);border-block:2px solid #b98745;color:#ffedb9;text-shadow:0 1px #482414;padding-inline:12px}
#app-shell .tab-pill{border:1px solid #aa864b;background:linear-gradient(#fbdfa2,#dbc38f);color:#50351a;box-shadow:inset 0 0 0 1px #fceabe}
#app-shell .tab-pill.active{color:#ffe8b0;background:linear-gradient(#983f2c,#68251b);border-color:#7b3c20;box-shadow:inset 0 0 0 1px #bd8a53}
#app-shell .paper-card,#app-shell .modal-box{border:1px solid #b48c53;box-shadow:inset 0 0 0 2px #ffffff44,0 2px 3px #79532927}
.leaf-title h1,.ed-cult-body h2,.ed-stages h2,.ed-pavilion h2,.ed-collection h2,.ed-chapter h3,.ed-pass h1,.ed-journey-banner h1,.ed-recruits h3{font-family:var(--brush);font-weight:normal}
.ed-secondary .leaf-title{border-bottom:2px solid #a3824d;padding-bottom:5px}.ed-secondary .paper-card{background-color:#fbefd2}
.folio-layout{display:block;max-width:600px;padding:0 6px 10px;position:relative}.ed-deploy{width:calc(100% + 12px);margin-left:-6px;position:static;display:flex;align-items:center;gap:4px;padding:8px 6px 5px;border:0;border-bottom:3px double #956a36;background:linear-gradient(0deg,#f0d6a199,#b28b5a77),var(--art-paper) center 15%/cover}
.ed-party-scroller{display:flex;gap:5px;align-items:center;overflow-x:auto;min-width:0;position:relative;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#ab81494d transparent}
.ed-deploy .ed-seat{flex:none;min-width:0;display:block;width:clamp(53px,15.4vw,76px);padding:0;background:none;border:0;outline:none;overflow:visible;scroll-snap-align:start}.ed-seat>.ed-party-portrait{width:100%;position:relative;aspect-ratio:1;height:auto;display:block;overflow:hidden}
.ed-party-portrait>.ed-avatar{position:absolute;inset:7%;width:86%;height:86%;background:#e0be72}.ed-avatar-rim{position:absolute;inset:0;background:var(--art-frame) center/100% 100% no-repeat;pointer-events:none}.ed-seat.on .ed-avatar-rim{filter:brightness(1.4) saturate(1.65) drop-shadow(0 0 2px #9e4e04)}
.ed-seat em{display:block;font:700 12px/1.2 var(--font-ed);color:#39291c}.ed-seat.on em{color:#963717}.ed-deploy .ed-vtab{flex:none;width:34px;height:65px;padding:5px 7px;color:#ffe9ab;font:19px/1.1 var(--brush);border:0;background:var(--art-woodtab) center/100% 100%}
.ed-deploy .vacant{border:2px dashed #b99759;background:#eddfb9;min-height:47px}
.folio-heading{min-height:24px;padding:1px 5px;font-size:12px;color:#5b452c;font-weight:700}.folio-heading .text-btn{min-height:24px;font-size:12px}
.ed-card-stage{gap:3px;grid-template-columns:clamp(44px,15.9vw,74px) minmax(0,1fr) clamp(44px,15.9vw,74px);align-items:stretch}
.ed-scroll{position:relative;display:flex;flex-direction:column;min-height:0;aspect-ratio:0.635;max-height:none;background:var(--art-card) center/100% 100% no-repeat;border:0;box-shadow:none;padding:9.5% 7.8% 11.5%;isolation:isolate;overflow:visible}
.ed-scroll:before{display:none}.classic-stars{align-self:center;white-space:nowrap;text-align:center;line-height:1;color:#d69718;-webkit-text-stroke:.5px #744110;font:700 clamp(15px,5vw,29px)/1 Georgia,serif;letter-spacing:-.045em;filter:drop-shadow(0 1px 0 #fff2ba);z-index:2}.classic-stars i{font-style:normal;color:#a56d28}
.classic-figure{flex:1;position:relative;min-height:160px;isolation:isolate}.classic-figure .figure-button{inset:0 -8% -1%;height:101%;width:116%;z-index:0}.classic-figure .folio-vertical{left:0;top:6%;gap:6px}.folio-vertical strong{font:normal clamp(26px,7.9vw,45px)/1 var(--brush);color:#24190e;letter-spacing:.01em;text-shadow:1px 1px #fbe3a0}
.classic-figure .folio-title{top:6%;right:-1px;font-family:var(--brush);font-size:clamp(13px,4vw,20px);letter-spacing:.05em;padding:5px 3px;background:linear-gradient(90deg,#6b1e12,#98391c,#662011);color:#ffd976;box-shadow:0 1px 2px #83622e}
.classic-figure .small-seal{background:#a32b1c;border:2px double #fac88b;font:17px/1 var(--brush);width:22px;height:23px}
.classic-form-tag{position:absolute;bottom:4%;right:0;padding:3px 5px;font:12px/1.3 var(--font-ed);color:#fbeac4;background:#4d321bd9;border:1px solid #d8ae63}
.scroll-power{display:flex;gap:4px;align-items:center;background:linear-gradient(#603720,#29160f);padding:2px 4px;border:1px solid #b38944;color:#fff1bf;justify-content:space-between;font-size:11px}.scroll-power b{color:#ffd75b}.ed-statline{gap:2px;padding:7px 0 5px;border:0;border-bottom:1px solid #bf9b56}.ed-statline span{color:#362719;display:grid;justify-items:center;gap:2px}.ed-statline span i{display:grid;place-items:center;border:1px solid #98552c;color:#913c20;border-radius:50%;height:16px;width:16px;font:12px var(--brush)}.ed-statline b{font:700 clamp(11px,3vw,16px) Georgia,serif;color:#412c18}
.classic-bonds{display:flex;align-items:center;gap:4px;min-height:35px;margin-top:2px}.classic-bonds>div{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:2px}.classic-bonds span{font-size:clamp(9px,2.5vw,13px);font-weight:700;color:#65543d;line-height:1.18}.classic-bonds span.lit{color:#7f3418}.scroll-tag{width:28px;height:34px;background:var(--art-gold) center/100% 100%;font:15px/1.05 var(--brush);border:0;color:#572b0e}
.ed-loadout{gap:3px;padding:9px 0}.ed-gear i{border:0!important;background:none!important;width:min(100%,55px);aspect-ratio:1;position:relative;box-shadow:0 2px 2px #68451555}.ed-gear i img{width:100%;height:100%}.ed-gear.free img{filter:saturate(.82) brightness(.91)}
.ed-gear u{position:absolute;right:2px;bottom:2px;text-decoration:none;font:700 11px/1 Georgia,serif;color:#fff2be;background:#40230dc9;border:1px solid #c89e58;border-radius:2px;padding:1px 2px}
.ed-gear span{font-size:clamp(10px,2.9vw,14px);font-weight:750;color:#36291c;text-shadow:0 1px #f8e5b6}.ed-quote{margin:7px 4px 4px;color:#633d26}
.folio-actions{margin:4px 0;gap:4px}.folio-actions .btn-sm{font-family:var(--brush)!important;font-size:18px!important}.folio-links{margin:0 auto}.folio-links button{color:#71381f;font-weight:700}
#app-shell .ed-cult-image{padding:12px 4px;background:var(--art-card) center/100% 100%;border:0}#app-shell .ed-print{background:var(--art-card) center/100% 100%}.ed-print .small-seal{left:10%;top:10%}
#app-shell .battle-arena-v12{background:#d6be9c!important}.battle-arena-v12>.ed-scenery{z-index:0}.battle-arena-v12 .ed-valley-mist{opacity:.65}
.battle-arena-v12 .battle-field-v12{display:grid;min-height:0;grid-template-columns:minmax(87px,27%) minmax(0,1fr) minmax(87px,27%);grid-template-rows:1fr;padding:10px clamp(3px,1.8vw,12px);gap:2px;align-items:stretch;isolation:isolate}
.battle-arena-v12 .battle-col-v12{order:initial;align-self:center;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(8,minmax(0,1fr));height:min(100%,624px);max-height:none;min-height:0;row-gap:4px;position:relative;z-index:7}
.battle-field-v12>.ally-col{grid-column:1;grid-row:1}.battle-field-v12>.enemy-col{grid-column:3;grid-row:1}
.battle-col-v12 .unit-bar-v12[data-slot]{grid-column:1;grid-row:var(--seat);width:100%;height:100%;padding:2px;border:1px solid #a47b49;background:linear-gradient(100deg,#7b4e2cfa,#37261dee 56%,#553620ed);box-shadow:inset 0 0 0 1px #c8a56b6b,0 2px 2px #28160980;border-radius:3px;display:flex;flex-direction:row;gap:2px;align-items:center}
.battle-col-v12.enemy-col .unit-bar-v12[data-slot]{flex-direction:row-reverse;background:linear-gradient(270deg,#7b4129fa,#4c291ded 55%,#3a251ced)}
[data-slot="0"]{--seat:1}[data-slot="1"]{--seat:2}[data-slot="2"]{--seat:3}[data-slot="3"]{--seat:4}[data-slot="4"]{--seat:5}[data-slot="5"]{--seat:6}[data-slot="6"]{--seat:7}[data-slot="7"]{--seat:8}
.battle-col-v12 .unit-avatar-v12{height:auto;width:48%;max-height:98%;aspect-ratio:1;flex:none;position:relative;min-height:0;border:0;border-radius:2px;overflow:visible;padding:3px;background:#e7ca85}
.unit-avatar-v12:after{content:"";position:absolute;inset:-2px;background:var(--art-frame) center/100% 100% no-repeat;pointer-events:none}.battle-col-v12 .unit-avatar-inner{height:100%;width:100%;border-radius:1px}.battle-col-v12 .unit-info-v12{flex:1;min-width:0;width:auto;max-width:53%;line-height:1.15}.battle-col-v12 .unit-name-row-v12{display:block}.battle-col-v12 .unit-name-v12{display:block;font:normal clamp(12px,3.6vw,18px)/1.15 var(--brush);white-space:normal;overflow:visible;text-shadow:1px 1px #3b1a0b;color:#ffeac0;text-align:center}
.unit-slot{position:absolute;left:0;top:0;z-index:3;background:#591d13e0;color:#ffe49b;border:1px solid #c69553;font:bold 9px/1 Georgia,serif;padding:1px 2px;pointer-events:none}
.battle-col-v12 .hp-bar-v12{height:5px;background:#21100b;border:1px solid #5d3c27;margin:3px 0 2px}.battle-col-v12 .rage-bar-v12{height:3px;background:#211713}.battle-col-v12 .hp-fill-v12.ally{background:linear-gradient(#bef163,#4a8b2b)}.battle-col-v12 .hp-fill-v12.enemy{background:linear-gradient(#ff944a,#b43324)}
.battle-field-v12 .battle-center-v12{order:initial;grid-column:2;grid-row:1;margin:0;height:100%;width:100%;display:flex;position:relative;align-items:center;justify-content:flex-end;align-self:stretch;z-index:4;pointer-events:none;padding-bottom:12px}
.battle-center-v12 .battle-center-hint{padding:2px 5px;font-size:10px;color:#fff1ca;white-space:normal;background:#412816dd;border:1px solid #b39361}
.battle-arena-v12 .battle-beam-top,.battle-arena-v12 .battle-beam-bottom{background:linear-gradient(#81462e,#45281c 24%,#2d1b14 75%,#734329);border-color:#c59552}
.battle-arena-v12 .battle-round-flame{background:var(--art-rubric) center/100% 100%;border:0;border-radius:0;padding:6px 17px}.flame-round-text{font:21px var(--brush)}.battle-beam-title{color:#ffe4ad;font-size:12px}.battle-arena-v12 .battle-vfx-layer{z-index:10}.battle-center-v12 .skill-idle-tip{display:none}
@media(max-height:680px){.battle-arena-v12 .battle-col-v12{row-gap:2px}.battle-col-v12 .unit-avatar-v12{max-width:39px}.ed-nav button{height:48px}.ed-nav img{height:28px}}
@media(max-width:360px){.ed-top .ed-wordmark{font-size:24px}.battle-col-v12 .unit-name-v12{font-size:12px}.classic-figure{min-height:130px}.ed-card-stage{grid-template-columns:45px minmax(0,1fr) 45px}.ed-quote{font-size:12px}}
.ed-card-stage{height:clamp(386px,112vw,505px)}
.ed-card-stage>.ed-scroll{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;padding:clamp(31px,8.5vw,41px) 9% clamp(29px,8vw,40px);align-self:stretch}
.ed-card-stage>.ed-loadout{height:100%;min-height:0;padding:7px 0}
.classic-figure{min-height:0}
.ed-card-stage .classic-stars{letter-spacing:-.02em;font-size:clamp(15px,4.3vw,22px)}
.ed-card-stage .classic-bonds{min-height:32px}

[data-swipe-disciple] {touch-action:pan-y}
.ed-party-scroller .ed-eye .ed-party-portrait {
  display:grid;place-items:center;border:1px solid #96713f;border-radius:50%;
  background:#f5e3b4;color:#624220;font:700 20px var(--brush);
}
.ed-party-scroller .ed-eye .ed-party-portrait::after {display:none}
.deploy-editor header {display:flex;justify-content:space-between;align-items:center;gap:8px}
.deploy-editor h2,.deploy-editor h3 {margin:7px 0;font-family:var(--brush);color:#64371c}
.deploy-editor p {margin:4px 0 8px;font-size:13px}
.deploy-editor .deploy-slot-box {display:grid;gap:3px;min-height:42px}
.deploy-editor .picked {outline:2px solid #9c4c22;outline-offset:-2px}
.deploy-candidates {display:flex;flex-wrap:wrap;gap:5px;margin:7px 0}

.gear-dossier header,.renown-panel header {display:flex;align-items:center;justify-content:space-between;gap:8px}
.gear-dossier h2,.renown-panel h2 {font:700 26px var(--brush);color:#673a20;margin:5px 0 11px}
.gear-dossier-body {display:grid;grid-template-columns:minmax(95px,44%) 1fr;gap:12px}
.gear-dossier figure {margin:0;display:grid;align-content:center;gap:6px;text-align:center;padding:10px;
  border:2px solid var(--quality);border-radius:8px;background:radial-gradient(#fbf2d2,#ddcba3)}
.gear-dossier figure img {width:min(100%,160px);height:auto;aspect-ratio:1;object-fit:contain;margin:auto}
.gear-dossier figcaption,.gear-dossier dt {font-weight:700;color:#653d2a}
.gear-dossier dl {margin:0}
.gear-dossier dd {margin:2px 0 10px;font-size:14px}
.gear-dossier-actions {display:flex;flex-wrap:wrap;gap:7px}
.ed-party-scroller .ed-eye .ed-party-portrait {background:radial-gradient(#edcf81,#723829);color:#fff4b6;font-size:27px}
.bagua-wheel {position:relative;max-width:360px;aspect-ratio:1;margin:6px auto;
  background:repeating-radial-gradient(circle,#652f2514 0 2px,transparent 2px 15px),radial-gradient(#f2d48d,#ceb27c);
  border:2px solid #8a6333;border-radius:50%}
.bagua-wheel>span {position:absolute;inset:0;display:grid;place-items:center;font:58px var(--brush);color:#764229;pointer-events:none}
.bagua-wheel>button {position:absolute;width:28%;transform:translate(-50%,-50%);text-align:center}
.bagua-wheel>button:nth-of-type(1){left:50%;top:10%}
.bagua-wheel>button:nth-of-type(2){left:78%;top:22%}
.bagua-wheel>button:nth-of-type(3){left:85%;top:50%}
.bagua-wheel>button:nth-of-type(4){left:78%;top:78%}
.bagua-wheel>button:nth-of-type(5){left:50%;top:90%}
.bagua-wheel>button:nth-of-type(6){left:22%;top:78%}
.bagua-wheel>button:nth-of-type(7){left:15%;top:50%}
.bagua-wheel>button:nth-of-type(8){left:22%;top:22%}
.renown-panel p {margin:7px 0;font-size:14px}
.renown-preview {height:clamp(150px,32dvh,300px);position:relative;text-align:center;background:radial-gradient(var(--renown),#352b29);border:1px solid #8f6444}
.renown-preview .ed-portrait{height:100%;width:100%}
.renown-preview strong {position:absolute;right:8px;bottom:7px;color:#fff1ca;text-shadow:0 2px #271b16}
.renown-ten{text-align:center;font:700 24px Georgia,serif;color:#a85b11}
.renown-ten i{font-style:normal;color:#a85b1140}
.renown-stars {background:none;border:0;padding:0;color:var(--renown-glow,#f3b038);filter:drop-shadow(0 0 5px var(--renown-glow,#efb653))}
.ed-scroll[data-renown="1"]{--renown-glow:#f0cf8b}
.ed-scroll[data-renown="2"]{--renown-glow:#92e1aa}
.ed-scroll[data-renown="3"]{--renown-glow:#8edaff}
.ed-scroll[data-renown="4"]{--renown-glow:#dbb0ff}
.ed-scroll[data-renown="5"]{--renown-glow:#ff7456}
.ed-scroll[data-renown]:not([data-renown="0"]) .classic-figure::before{
  content:"";position:absolute;inset:8% 0 0;pointer-events:none;background:radial-gradient(ellipse,color-mix(in srgb,var(--renown-glow),transparent 44%),transparent 70%);
}
.ed-scroll[data-renown="4"] .classic-figure::before,.ed-scroll[data-renown="5"] .classic-figure::before{animation:renown-halo 2.8s ease-in-out infinite alternate}
.ed-scroll[data-renown="5"] .folio-title{box-shadow:0 0 12px #ff6f4a}
@keyframes renown-halo{from{opacity:.44;transform:scale(.91)}to{opacity:1;transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){.ed-scroll .classic-figure::before{animation:none!important}}

.daily-quest-view{display:grid;gap:14px;padding:10px}
.daily-quest-view h2{margin:0;font-size:17px;line-height:1.2}
.daily-quest-view header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.daily-quest-view header strong{color:#7c301d;font-size:13px}
.daily-quest-overview{padding:12px}
.daily-quest-overview progress{display:block;width:100%;height:8px;margin:10px 0;accent-color:#985029}
.daily-quest-overview p,.daily-quest-task p{margin:5px 0 0;color:#593d26;font-size:13px;line-height:1.45}
.daily-quest-chests{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
#app-shell .daily-quest-chests .btn-sm{display:grid;align-content:center;gap:1px;min-height:44px;padding:4px 0;text-align:center;font-size:11px;line-height:1.25}
.daily-quest-list{display:grid;gap:6px}
.daily-quest-list header{padding:0 3px 3px}
.daily-quest-task{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px}
.daily-quest-task b,.daily-quest-task small{display:block;font-size:13px}
.daily-quest-task small{margin-top:2px;color:#634c37;font-size:12px}
.daily-quest-task[data-task-state="ready"]{box-shadow:inset 3px 0 #985029}
.daily-quest-task[data-task-state="claimed"] .daily-quest-status{color:#3f6343}
.daily-quest-status{white-space:nowrap;color:#684d37;font-size:12px}
#app-shell .daily-quest-task .btn-sm{flex:0 0 auto;min-height:44px}

/* Shared lacquer and paper finish across the main screens. */
#app-shell .ed-top {
  background:linear-gradient(180deg,#794631,#4a281e 22%,#311e19 80%,#533023);
  border-bottom-color:#b0864c;
  box-shadow:inset 0 1px #e2ba7f,inset 0 -2px #e7ac6c29,0 2px 5px #25150f5c;
}
#app-shell .ed-nav {
  background:linear-gradient(180deg,#6d3d2c,#41251c 14%,#302018 75%,#483023);
}
#app-shell .ed-nav button.on {
  color:#ffe6a4;
  background:radial-gradient(ellipse at 50% 112%,#c8853fa6,transparent 76%);
}
#app-shell .ed-nav button.on img {filter:drop-shadow(0 2px 2px #210e0b) drop-shadow(0 0 5px #ffd08757)}
#app-shell .leaf-title {color:#482f22}
#app-shell .paper-card,#app-shell .journey-stages .journey-stage {
  box-shadow:inset 0 1px #fff9e4,0 3px 8px #49311526;
}
#app-shell button:focus-visible,#app-shell summary:focus-visible {
  outline:2px solid #936136;outline-offset:2px
}
#app-shell .ed-top button:focus-visible,#app-shell .ed-nav button:focus-visible {
  outline-color:#ffe5a2;outline-offset:-3px
}


/* 人物、武学、兵甲共用一幅通景绢本。所有摆件的留空均透出同一张江景。 */
#app-shell .page-formation{background:var(--folio-river) center center/cover no-repeat #dfcda7}
.page-formation .folio-layout{width:100%;max-width:610px;margin:auto;padding:0 0 18px}
.folio-layout .ed-deploy{width:100%;margin:0;position:relative;top:auto;border:0;border-bottom:1px solid #916c3b;box-shadow:0 2px 5px #4f311e44;padding:5px 5px 3px;background:linear-gradient(#895d32b3,#d7b78299 55%,#b391658a)}
.folio-layout .ed-party-scroller{flex:1;gap:4px;scrollbar-width:none}
.folio-layout .ed-party-scroller::-webkit-scrollbar{display:none}
.folio-layout .ed-seat{width:clamp(47px,14vw,69px)}
.folio-layout .ed-seat em{font-family:var(--brush);font-weight:normal;font-size:clamp(12px,3.4vw,16px)}
.folio-layout .ed-vtab{font-size:16px;width:28px;height:52px;padding-inline:4px}
.folio-layout .ed-vtab.ink-tab{filter:saturate(.8);color:#ffecbd}
.folio-layout .hero-folio{position:relative;padding:clamp(9px,2.5vh,26px) 4px 1px}
.folio-layout .ed-card-stage{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,17fr) minmax(0,66fr) minmax(0,17fr);gap:0;align-items:stretch;height:clamp(355px,min(117vw,60svh),565px);margin:0 auto}
.folio-layout .ed-card-stage::before{content:"";position:absolute;inset:4% 1% 4%;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#d4b67b38,transparent 19% 81%,#d4b67b38),radial-gradient(ellipse,#f6dfa25c 15%,#f9e4b71a 57%,transparent 78%)}
.folio-layout .ed-card-stage>.ed-scroll{position:relative;z-index:1;margin-inline:-1.5%;width:103%;padding:clamp(27px,8vw,45px) 8% clamp(24px,7vw,38px)}
.folio-layout .ed-card-stage>.ed-loadout{display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:0;align-self:stretch;height:100%;padding:clamp(5px,1.8vh,16px) 0 clamp(6px,1.5vh,13px);z-index:2}
.folio-layout .ed-gear{width:100%;min-height:0;justify-content:center;gap:2px;position:relative;-webkit-tap-highlight-color:transparent}
.folio-layout .ed-gear i{width:clamp(40px,min(14.6vw,7.1svh),68px);border-radius:4px;box-shadow:0 1px 2px #543812a8;overflow:visible}
.folio-layout .ed-gear img{border-radius:4px}
.folio-layout .ed-gear i::after{position:absolute;content:"";inset:0;pointer-events:none;border-radius:4px;border:1px solid #ad8244;box-shadow:inset 0 0 0 1px #ffe09ba8}
.folio-layout .ed-gear[data-grade=mythic] i::after,.folio-layout .ed-gear[data-grade=legendary] i::after{border-color:#d88c15;box-shadow:inset 0 0 0 1.5px #ffe394,0 0 5px #f6b8268a}
.folio-layout .ed-gear[data-grade=epic] i::after{border-color:#9a60af}
.folio-layout .ed-gear span{font-size:clamp(10px,2.9vw,14px);line-height:1.16;color:#35250e;text-shadow:0 1px 1px #fff1c9,0 0 3px #fff0cf;overflow-wrap:anywhere;max-width:100%;padding-inline:1px}
.folio-layout .classic-figure .figure-button{inset:-2% -12% -4%;width:124%;height:106%}
.folio-layout .folio-vertical{z-index:2;pointer-events:none}.folio-layout .folio-title,.folio-layout .classic-form-tag{pointer-events:none}
.folio-layout .classic-form-tag{font-family:var(--brush);padding:1px 4px;background:#4c321da6}
.folio-layout .ed-quote{font:clamp(13px,3.5vw,17px)/1.5 var(--brush);text-align:center;color:#392719;text-shadow:0 1px 2px #fff4d5;margin:8px 5%}
.folio-layout .folio-actions{max-width:480px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.folio-layout .folio-links{width:max-content;max-width:100%;margin:4px auto;padding:1px 8px;background:linear-gradient(90deg,transparent,#f4dcafc4 20% 80%,transparent)}
.tang-event,.tang-gallery{color:#422d20}
.tang-mast{padding:22px 17px;border-block:3px double #9c7647;background:linear-gradient(90deg,#f7e9c4d9,#f8ebc847),var(--folio-river) center 72%/cover}
.tang-mast h2,.tang-event h3,.tang-gallery h3,.tang-roll h4{font:normal 28px/1.12 var(--brush);margin:0;color:#582d1e}
.tang-mast h2{font-size:40px;margin:6px 0}.tang-mast p,.tang-invitation p,.tang-rules{margin:4px 0;font-size:14px;line-height:1.5}
.tang-invitation,.tang-roll-head,.tang-roll section{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 4px;border-bottom:1px solid #b79869}
.tang-invitation h3,.tang-roll-head h3,.tang-gallery h3{font-size:23px}
.tang-twins,.tang-gallery>div{display:flex;gap:5px}
.tang-twins button,.tang-gallery button{min-width:0;padding:2px;background:none;border:none;color:#653e24;display:grid;justify-items:center;gap:2px;cursor:pointer}
.tang-twins button{min-width:52px}.tang-twins button:disabled{filter:grayscale(.7)}
.tang-event .ed-avatar,.tang-gallery .ed-avatar{width:43px;height:44px;border:2px double #bb904e;background:#c4a16a}
.tang-route{display:flex;gap:8px;justify-content:center;margin:13px 0}.tang-roll section>div{margin-right:auto}
.tang-roll section h4{font-size:20px}.tang-roll section small{font-size:12px}
.tang-gallery>div{justify-content:space-between;margin:7px 0 12px}.tang-gallery b{font:14px var(--brush)}
@media(min-width:600px){.tang-roll{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}}
@media(max-height:685px){.folio-layout .hero-folio{padding-top:6px}.folio-layout .ed-card-stage{height:clamp(334px,59svh,395px)}.folio-layout .ed-quote{margin:4px 5%}}
.folio-layout .ed-card-stage>.ed-scroll{--folio-foot:clamp(34px,9.6vw,50px);padding-bottom:var(--folio-foot)}
.folio-layout .classic-bonds{margin-inline:3px}
.folio-layout .ed-quote{background:radial-gradient(ellipse at center,#f1dfb7bf 10%,#f1dfb799 47%,transparent 75%);text-shadow:0 1px 2px #ffedca,0 0 4px #f7eac9}


.wl-tabs,.wl-quality{display:flex;flex-wrap:wrap;gap:5px;padding:5px 3px 8px}.wl-tabs button{flex:1;min-height:36px}
.wl-quality button{padding:5px 6px;border:0;border-bottom:1px solid transparent;background:transparent;color:#5b4332;font:14px var(--font-ed)}
.wl-quality button[aria-pressed=true]{color:#812f21;border-bottom:2px solid #923622;font-weight:bold}
.wl-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.wl-catalog-item{display:flex;align-items:center;gap:6px;padding:6px 4px;border:1px solid #b99a63;border-radius:3px;background:linear-gradient(105deg,#fbefd1d9,#e3cea4b3);color:#4e301a;text-align:left;min-width:0}
.wl-catalog-item span{min-width:0}.wl-catalog-item b,.wl-catalog-item small{display:block}.wl-catalog-item b{font:clamp(15px,3.8vw,20px) var(--brush)}.wl-catalog-item small{font:12px/1.3 var(--font-ed)}
.wl-icon{width:48px;height:48px;display:block;object-fit:contain;flex:none;border-radius:4px}
.martial-pick-icon .wl-icon{width:100%;height:100%}.surprise-icon .wl-icon{width:100%;height:100%}
.wl-detail header,.wl-detail footer,.wl-bonds article>div{display:flex;align-items:center;gap:10px}.wl-detail h2,.wl-detail h3{font:24px var(--brush);margin:3px 0;color:#633521}.wl-detail h3{font-size:18px}.wl-detail p{font:14px/1.5 var(--font-ed);margin:7px 0;color:#453322}.wl-detail footer{justify-content:flex-end}.wl-detail header>.ed-avatar{width:46px;height:46px}
.wl-bonds article{padding:7px 0;border-top:1px solid #c6ae80}.wl-bonds article>div{justify-content:space-between}.wl-bonds article strong{font-size:12px;color:#64584c}.wl-bonds article.lit strong{color:#854307}.wl-bonds article.lit b{color:#8c360f}
.folio-layout .classic-bonds .folio-bond-list{flex:1;min-width:0;display:grid;grid-template-columns:1fr 1fr;align-self:stretch;align-content:center;text-align:left;padding:0;border:none;background:transparent;gap:1px 2px}
.folio-layout .folio-bond-list span{font-size:clamp(10px,2.7vw,14px);white-space:nowrap;display:block;font-weight:normal;color:#67553b}.folio-layout .folio-bond-list i{font-size:.9em;font-style:normal;margin-right:2px}.folio-layout .folio-bond-list span.lit{color:#843b0b;font-weight:bold}.folio-layout .folio-bond-list span.lit i{color:#a5500c;text-shadow:0 0 3px #ffcf44}
.folio-layout .classic-bonds{min-height:43px}.folio-layout .classic-bonds .scroll-tag{flex:none}
.wl-innate{width:100%;height:100%;position:relative;display:block;overflow:hidden;border-radius:4px;background:var(--skill-tint)}
.wl-innate img{display:block;width:100%;height:100%;object-fit:cover}.wl-innate b{position:absolute;left:0;bottom:0;width:100%;padding:1px 2px;text-align:left;color:#ffedb8;background:linear-gradient(transparent,#30170df5);font:14px var(--brush);text-shadow:0 1px #230f08}
.wl-innate.ascended{outline:2px solid #e6a91d;outline-offset:-2px}.wl-innate.ascended b{color:#fff4a3;background:linear-gradient(transparent,#68200c)}
.folk-inn .ed-avatar{width:42px;height:42px}.folk-inn .tang-roll h4{font:18px var(--brush);margin:0}
@media(max-width:355px){.wl-icon{width:40px;height:40px}.folio-layout .folio-bond-list span{font-size:10px}}

.monthly-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:12px}
.monthly-card {padding:12px}
.monthly-card h3 {display:flex;justify-content:space-between;gap:10px}
.monthly-card .btn-sm {min-height:40px}

.wl-tabs button,.wl-quality button { min-height:44px; }
.wl-bag-summary { margin:4px 8px 10px; color:#594331; font:14px/1.4 var(--font-ed); }
.wl-bag-groups { display:grid; gap:8px; padding:8px; }
.wl-bag-group>summary { min-height:44px; align-content:center; }
.wl-bag-list { display:grid; gap:6px; }
.wl-bag-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; }
.wl-bag-row .btn-sm,.wl-bond-actions .btn-sm { min-height:44px; }
.wl-bag-actions { display:grid; gap:4px; }
.wl-bag-info strong { overflow-wrap:anywhere; font-size:15px; }
.wl-bag-info span,.wl-bag-info p { margin:3px 0 0; color:#594331; font:14px/1.35 var(--font-ed); }
.wl-bond-members { display:flex; flex-wrap:wrap; gap:5px; margin:7px 0; padding:0; list-style:none; }
.wl-bond-members li { padding:3px 6px; border:1px solid #baa47b; background:#f0e1bc; font:14px/1.35 var(--font-ed); }
.wl-bond-members li[data-placement="出阵"],.wl-bond-members li[data-placement="镇守"] { color:#315037; background:#e5ecd1; }
.wl-bond-members li[data-placement="未结交"] { color:#7e3527; }
.wl-bonds article>.wl-bond-actions { justify-content:flex-start; flex-wrap:wrap; }
@media(max-width:355px) {
  .wl-bag-row { grid-template-columns:auto minmax(0,1fr); }
  .wl-bag-row>:is(.btn-sm,.wl-bag-actions) { grid-column:2; justify-self:start; }
  .wl-bag-actions { display:flex; flex-wrap:wrap; }
}


/* Shared pale silk for every original portrait. */
#app-shell {--portrait-paper:radial-gradient(ellipse at 46% 34%,#f5e5ba 0%,#e8d3a1 56%,#d9bf89 100%)}
#app-shell .wd-window {--wd-gold:#d5ac68;position:relative;width:min(100%,480px);max-height:91dvh;overflow:auto;overscroll-behavior:contain;border:2px solid #957044;border-radius:5px;background:linear-gradient(100deg,#eee1c5,#f4e8cf 63%,#d9c6a0);box-shadow:0 20px 70px #150f0c99,inset 0 0 0 2px #fae2a8;color:#382818;isolation:isolate;font-family:"Songti SC","STSong","Noto Serif CJK SC",serif}
.wd-window>header {min-height:53px;padding:7px 13px;display:flex;justify-content:space-between;align-items:center;color:#fff0c4;background:repeating-linear-gradient(3deg,#231713 0 2px,#2e2019 6px,#3e291c 8px);border-bottom:2px solid #b59158}
.wd-window>header>div {display:flex;align-items:baseline;gap:12px}
.wd-window>header span {font-size:13px;letter-spacing:.15em;color:#e1ba77}
.wd-window>header h2 {margin:0;font-size:23px;line-height:1.2;color:inherit;text-shadow:0 1px #090604}
.wd-close {width:36px;height:33px;border:1px solid #b29a62;border-radius:3px;background:#6c291e;color:#ffecbf;font:23px/1 serif}
.wd-gallery {display:grid;grid-template-columns:minmax(0,1fr) minmax(62px,20%);gap:7px;padding:8px 8px 0}
.wd-stage {position:relative;min-height:230px;height:clamp(245px,44dvh,387px);overflow:hidden;background:#302e30;isolation:isolate;border:2px solid #ae854a;box-shadow:0 0 0 1px #735736,inset 0 0 0 2px #ddc285}
.wd-stage::after {content:"";position:absolute;inset:5px;border:1px solid #e4c27f99;pointer-events:none;z-index:5}
.wd-scenery {position:absolute;inset:-3%;width:106%;height:106%;max-width:none;object-fit:cover;object-position:center;animation:wd-wind 15s ease-in-out infinite alternate}
.wd-stage.wd-original {background:var(--portrait-paper)}
.wd-original .wd-signature {color:#49301e;text-shadow:0 1px 2px #fff4ce}
.wd-atmos {position:absolute;inset:0;background:linear-gradient(180deg,#211d1612,transparent 33%,#191c1b1a 70%,#120f10ad)}
.wd-model {position:absolute;inset:4% 3% 2%;filter:drop-shadow(0 3px 2px #12111869)}
.wd-model .ed-portrait {width:100%;height:100%}
.wd-signature {position:absolute;left:10px;bottom:11px;display:flex;flex-direction:column;align-items:flex-start;gap:1px;color:#fff4cf;pointer-events:none;text-shadow:0 1px 3px black,0 0 8px black}
.wd-signature span {font-size:11px;letter-spacing:.22em}
.wd-signature strong {font-size:clamp(18px,4.5vw,25px);line-height:1.25;letter-spacing:.045em}
.wd-choices {display:grid;align-content:start;gap:5px}
.wd-choice {display:grid;grid-template-rows:minmax(0,1fr) auto auto;min-height:72px;height:clamp(72px,12.8dvh,117px);width:100%;padding:0 1px 3px;overflow:hidden;color:#352b21;background:linear-gradient(90deg,#d4bf98,#efe2c0,#cdb288);border:1px solid #a48964;border-radius:3px;line-height:1.1;text-align:center}
.wd-choice.is-selected {outline:2px solid #9f4d20;outline-offset:-2px;background:linear-gradient(90deg,#d7aa60,#f2deaa,#d2a768)}
.wd-choice img {display:block;margin:auto;min-height:0;max-width:100%;width:100%;height:100%;object-fit:contain}
.wd-choice strong {font-size:12px;line-height:1.17;word-break:break-all;font-weight:700}
.wd-choice small {margin:2px 0 0;font-size:10px;line-height:1;color:#604c37}
.wd-foot {padding:10px 11px 13px}
.wd-action-line {display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:space-between}
.wd-buy {padding:8px 14px;background:linear-gradient(#934e27,#70331b);border:1px solid #bc9655;border-radius:3px;box-shadow:inset 0 0 0 1px #deb57855;color:#fff0c9;font-family:inherit;font-size:15px;font-weight:700;line-height:1.2}
.wd-buy:disabled {background:#d6c7a9;color:#685944;border-color:#bca482}
.wd-action-line span,.wd-foot p,.wd-total {font-size:13px}
.wd-action-line span b {font-family:Georgia,serif;font-variant-numeric:tabular-nums}
.wd-foot>p {margin:9px 0;line-height:1.5}
.wd-stats {border-top:1px solid #bca882;padding-top:6px}
.wd-stats h3 {margin:0 0 4px;font-size:13px}
.wd-stats .skin-core-grid,.wd-total .skin-core-grid {display:flex;gap:5px;flex-wrap:wrap}
.wd-stats .skin-core-stat,.wd-total .skin-core-stat {width:auto;min-height:0}
.wd-total {margin-top:7px;border-top:1px solid #bca882;padding-top:7px}
.wd-total summary {cursor:pointer}
.wd-motes {position:absolute;inset:0;pointer-events:none}
.wd-motes b {position:absolute;width:3px;height:3px;left:13%;top:28%;border-radius:50%;background:var(--wd-tone);box-shadow:0 0 4px var(--wd-tone);animation:wd-mote 4.2s infinite both}
.wd-motes b:nth-child(2) {left:86%;top:45%;animation-delay:-1s}
.wd-motes b:nth-child(3) {left:53%;top:9%;animation-delay:-2.4s}
.wd-motes b:nth-child(4) {left:18%;top:74%;animation-delay:-3.65s}
.wd-snow .wd-motes b,.wd-petals .wd-motes b,.wd-leaves .wd-motes b {animation-name:wd-drop}
.wd-petals .wd-motes b,.wd-leaves .wd-motes b {width:6px;height:3px;border-radius:80% 15% 80% 15%}
.wd-storm .wd-atmos {animation:wd-flash 6.5s ease-in-out infinite}
.wd-ribbons .wd-motes b {width:14px;height:2px;border-radius:50%;transform:rotate(-30deg)}
@keyframes wd-wind {from{transform:scale(1.02) translateX(-.6%)}to{transform:scale(1.06) translateX(.6%)}}
@keyframes wd-mote {0%,100%{opacity:0;transform:translate(-2px,7px)}48%{opacity:.92}94%{opacity:0;transform:translate(10px,-26px)}}
@keyframes wd-drop {0%,100%{opacity:0;transform:translate(0,-8px) rotate(4deg)}45%{opacity:.9}94%{opacity:0;transform:translate(-13px,34px) rotate(120deg)}}
@keyframes wd-flash {0%,80%,84%,100%{opacity:1}82%{opacity:.24}}
@media(prefers-reduced-motion:reduce){.wd-window *{animation:none!important}}

.wd-practice {border:1px solid #9e8158;border-radius:3px;background:#ebe0c6;color:#533d27;min-height:35px;padding:5px 11px;font:inherit;font-weight:bold}

.wd-backdrop {position:absolute;inset:0;overflow:hidden;pointer-events:none}
.wd-motes b:nth-child(5) {left:72%;top:62%;animation-delay:-1.8s}
.wd-motes b:nth-child(6) {left:8%;top:10%;animation-delay:-3.1s}
.wd-sand .wd-motes b,.wd-storm .wd-motes b {width:8px;height:2px;animation-name:wd-gust}
@keyframes wd-gust {
  0%,100% {opacity:0;transform:translate(-18px,6px) rotate(-13deg)}
  45% {opacity:.78}
  90% {opacity:0;transform:translate(45px,-12px) rotate(-13deg)}
}

.ed-skin-scroll .wd-backdrop,.ed-skin-scroll .wd-motes {inset:5% 4%}
.ed-skin-scroll .wd-atmos {background:linear-gradient(#130e2788,transparent 30%,transparent 51%,#16131be0)}
.ed-skin-scroll .wd-motes {z-index:2;overflow:hidden}
.ed-skin-scroll .classic-figure {filter:drop-shadow(0 2px 4px #100c17a8)}
.ed-skin-scroll .folio-vertical strong {color:#fff3cf;text-shadow:0 1px 4px #120b16,0 0 9px #120b16}
.ed-skin-scroll .scroll-power,.ed-skin-scroll .ed-statline,.ed-skin-scroll .classic-bonds {position:relative;z-index:3}
.ed-skin-scroll .ed-statline,.ed-skin-scroll .classic-bonds {
  background:#211724ed;
  border:1px solid color-mix(in srgb,var(--wd-tone),transparent 45%);
}
.ed-skin-scroll .ed-statline b,.ed-skin-scroll .ed-statline span i {color:#fff3cf}
.ed-skin-scroll .ed-statline span i {border-color:var(--wd-tone)}
.folio-layout .ed-skin-scroll .folio-bond-list span {color:#eadbc1}
.folio-layout .ed-skin-scroll .folio-bond-list span.lit,
.folio-layout .ed-skin-scroll .folio-bond-list span.lit i {color:var(--wd-tone)}
.ed-skin-scroll::after {
  content:"";
  position:absolute;
  inset:4% 3%;
  z-index:4;
  border:1px solid var(--wd-tone);
  box-shadow:inset 0 0 13px color-mix(in srgb,var(--wd-tone),transparent 48%),0 0 8px var(--wd-tone);
  opacity:.68;
  pointer-events:none;
  animation:wd-rim-breathe 4.8s ease-in-out infinite alternate;
}
@keyframes wd-rim-breathe {from {opacity:.42} to {opacity:.9}}
@media(prefers-reduced-motion:reduce) {
  .ed-skin-scroll::after,.ed-skin-scroll .wd-backdrop *,.ed-skin-scroll .wd-motes b,.wd-window .wd-motes b {animation:none}
}

/* Both scroll grades share the same paper and scenery bounds. */
.ed-card-stage>.ed-scroll {
  background:var(--portrait-paper);
  border:1px solid #a38a5d;
  border-radius:5px;
}
.ed-card-stage>.ed-scroll.ed-skin-scroll :is(.wd-backdrop,.wd-motes) {inset:1px;border-radius:inherit}
.ed-card-stage>.ed-scroll.ed-skin-scroll::after{display:none}
/* Ascension is a single continuous frame, sized around the original card bounds. */
.ed-card-stage>.ed-gold-scroll{border-color:transparent}
.folio-gold-frame {
  --folio-rail:clamp(5px,1.4vw,9px);
  position:absolute;z-index:1;inset:calc(-1px - var(--folio-rail));pointer-events:none;border-radius:9px;
  box-shadow:inset 0 0 0 1px #795426;
  border:var(--folio-rail) solid transparent;
  background:linear-gradient(141deg,#6c411a 0%,#e2b55d 13%,#ffe7a1 24%,#9c6529 46%,#f7d583 65%,#9b612b 84%,#66401d 100%) border-box;
  mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  /* The top axle is the only upper edge. Keep the side rails below it. */
  clip-path:inset(calc(var(--folio-rail) + 2px) 0 0);
}
.folio-gold-frame::after{
  content:"";position:absolute;inset:-5px;border-radius:inherit;
  background:
    radial-gradient(circle at 0 0,#fff0b9 0 1px,#dbad60 2px,transparent 7px),
    radial-gradient(circle at 100% 0,#fff0b9 0 1px,#dbad60 2px,transparent 7px),
    radial-gradient(circle at 0 100%,#fff0b9 0 1px,#dbad60 2px,transparent 7px),
    radial-gradient(circle at 100% 100%,#fff0b9 0 1px,#dbad60 2px,transparent 7px);
}
/* Keep the original scroll artwork at card size and hang its finials on the outside. */
.folio-scrollwork,.folio-scrollwork::before,.folio-scrollwork::after{
  position:absolute;inset:0;pointer-events:none;
}
.folio-scrollwork{z-index:1;inset-inline:-10%}
.folio-scrollwork::before,.folio-scrollwork::after{
  content:"";background:var(--art-card) center/100% 100% no-repeat;
}
.folio-scrollwork::before{clip-path:inset(0 0 92.3%);transform:translateY(-4%) scaleY(1.09);transform-origin:center top}
.folio-scrollwork::after{clip-path:inset(91.7% 0 0);transform:translateY(5.8%)}
.folio-layout .ed-scroll>.classic-figure{z-index:2}
/* Original beveled gold stars, drawn without a plate or image background. */
.folio-layout .scroll-power>.renown-stars {
  position:absolute;z-index:7;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);
  display:flex;gap:2px;border:0;padding:0;background:none;
  filter:drop-shadow(0 1px 1px #241608) drop-shadow(0 0 3px #ffd97b80);
}
.folio-layout .scroll-power>.renown-stars span {
  --renown-star-shape:polygon(50% 0,64% 31%,99% 37%,74% 62%,80% 97%,50% 81%,20% 97%,26% 62%,1% 37%,36% 31%);
  position:relative;width:clamp(12px,3.55vw,18px);aspect-ratio:1;
  clip-path:var(--renown-star-shape);background:#714112;
}
.folio-layout .scroll-power>.renown-stars span::before {
  content:"";position:absolute;inset:1px;clip-path:var(--renown-star-shape);
  background:linear-gradient(150deg,#fff8d0 8%,#ffdf78 42%,#e4a12c 72%,#fff1a9 100%);
}
.folio-layout .ed-scroll:has(.renown-stars) .scroll-power{margin-top:clamp(16px,4.6vw,22px)}
.folio-layout .scroll-power.has-ultimate>.renown-stars{
  bottom:calc(100% + var(--ultimate-badge-rise) + var(--ultimate-badge-height) + 3px);
}

.wd-embers .wd-atmos {box-shadow:inset 0 -35px 75px #d2541e55;animation:wd-aura 5s ease-in-out infinite alternate}
.wd-ribbons .wd-motes::after {
  content:"";position:absolute;inset:48% -35% 16%;
  border-top:2px solid #ffc5a766;border-radius:50%;
  box-shadow:0 -5px 14px #d4406655;
  transform:rotate(-24deg);
  animation:wd-aura 4s ease-in-out infinite alternate;
}
@keyframes wd-aura {from {opacity:.38} to {opacity:.92}}
@media(prefers-reduced-motion:reduce) {.wd-atmos,.wd-motes::after {animation:none!important}}

.wd-willow .wd-scenery {filter:saturate(1.14) contrast(1.05)}
.wd-willow .wd-atmos {background:linear-gradient(115deg,transparent 34%,#fce3a42e 50%,transparent 65%);animation:willow-sun 7s ease-in-out infinite alternate}
.wd-willow .wd-model {filter:drop-shadow(0 4px 8px #082c24a8)}
.wd-willow-fx {position:absolute;inset:0;overflow:hidden;z-index:2;pointer-events:none}
/* Pixel-stepped willow leaves with warm tips, emerald shadows and a single-pixel vein. */
.wd-willow-fx b {
  position:absolute;left:calc(5% + var(--leaf)*7.7%);top:-7%;
  width:clamp(9px,2.65vw,16px);height:clamp(3px,.95vw,6px);
  --leaf-outline:polygon(0 60%,14% 60%,14% 40%,28% 40%,28% 20%,48% 20%,48% 0,78% 0,78% 20%,100% 20%,100% 40%,85% 40%,85% 60%,70% 60%,70% 80%,53% 80%,53% 100%,26% 100%,26% 80%,0 80%);
  background:linear-gradient(164deg,#fff0a2 0 20%,#b1c776 20% 44%,#689864 44% 68%,#2f664f 68%);
  clip-path:var(--leaf-outline);
  animation:willow-leaf calc(13s + var(--leaf)*.77s) linear infinite;
  animation-delay:calc(-1.64s * var(--leaf));
}
.wd-willow-fx b::after{
  content:"";position:absolute;inset:0;opacity:.8;
  background:linear-gradient(166deg,transparent 43%,#f6e6a7 44% 55%,transparent 56%);
}
.wd-willow-fx b:nth-of-type(3n){filter:hue-rotate(32deg);scale:.82}
.wd-willow-fx b:nth-of-type(2n){--leaf-sway:-1}
.willow-veil {position:absolute;inset:0;background:radial-gradient(ellipse at 24% 6%,#e6bd642c,transparent 43%);mix-blend-mode:screen;animation:willow-sun 6s ease-in-out infinite alternate}
.willow-tide,.willow-victory-art i {position:absolute;left:26%;top:87%;width:48%;height:9%;border-radius:50%;
 border:1px solid #f3e097;box-shadow:0 0 7px #e7e29891;animation:willow-tide 4.4s ease-out infinite}
.willow-tide:nth-child(2),.willow-victory-art i:nth-child(2) {animation-delay:-2.2s}
.ed-skin-scroll .wd-willow-fx {inset:6% 5%}
@keyframes willow-sun {from{opacity:.35;transform:translateX(-11%)}to{opacity:.8;transform:translateX(9%)}}
@keyframes willow-leaf {
  0%{transform:translate(0,0) rotate(-32deg);opacity:0}
  12%{opacity:.84}
  29%{transform:translate(calc(19px * var(--leaf-sway,1)),145px) rotate(32deg)}
  58%{transform:translate(calc(-13px * var(--leaf-sway,1)),290px) rotate(132deg)}
  84%{transform:translate(calc(21px * var(--leaf-sway,1)),435px) rotate(216deg);opacity:.76}
  100%{transform:translate(calc(30px * var(--leaf-sway,1)),590px) rotate(275deg);opacity:0}
}
@keyframes willow-tide {0%{transform:scale(.35);opacity:0}23%{opacity:.7}100%{transform:scale(1.45);opacity:0}}
.willow-victory .result-top-banner {position:relative;background:#11352ce8;color:#ffe2a2}
.willow-victory .result-banner-sub {color:#ffedbf}
.willow-victory-art {position:absolute;inset:0;z-index:0;opacity:.82;pointer-events:none;background:linear-gradient(#0b1c1a2a,#102520c0),var(--willow-victory-bg) center/cover}
.willow-victory-art i {top:68%;animation-iteration-count:2}
@media(prefers-reduced-motion:reduce){
 .wd-willow .wd-atmos,.willow-veil,.willow-tide,.willow-victory-art i {animation:none}
 .wd-willow-fx b{animation:none;top:calc(8% + var(--leaf)*6%);rotate:26deg;opacity:.7}
}

.willow-victory > :not(.willow-victory-art) {position:relative;z-index:1}

/* Willow-only lens bloom, behind the portrait, and gold rings at the feet. */
.wd-willow .wd-atmos::before,
.mythic-live[data-skin="willow"] .mythic-shade::before,
.willow-victory-art::before {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse at 13% 16%,#ffe9a5ad 0%,#ffe5a24b 4%,transparent 11%),
    radial-gradient(ellipse at 30% 9%,#fff0ba8c 0%,#eccb6a46 6%,transparent 15%),
    radial-gradient(ellipse at 72% 13%,#e5ffbc94 0%,#a8db9770 4%,transparent 12%),
    radial-gradient(ellipse at 91% 25%,#8ae0c271 0%,#9bdbab44 5%,transparent 13%);
  filter:blur(8px);mix-blend-mode:screen;
  animation:willow-canopy-glow 6s ease-in-out infinite alternate
}
.wd-willow .wd-atmos {opacity:1;animation:none}
@keyframes willow-canopy-glow {from{opacity:.45;transform:translate(-1%,-.5%)}to{opacity:.9;transform:translate(1%,1%)}}
.wd-willow-fx .willow-tide {
  left:17%;top:89%;width:66%;height:8%;border:clamp(2px,.65vw,4px) solid #fff4b3;
  box-shadow:0 0 4px #fff5be,0 0 12px #ffcf59,0 0 20px #ffca577a,inset 0 0 7px #f5cd7ac4;
  animation:willow-foot-gold 3.3s cubic-bezier(.13,.61,.23,1) infinite
}
.wd-willow-fx .willow-tide:nth-child(2) {animation-delay:-1.1s}
.wd-willow-fx .willow-tide:nth-child(3) {animation-delay:-2.2s}
.wd-willow-fx::after {
  content:"";position:absolute;left:28%;top:89%;width:44%;height:10%;
  background:radial-gradient(ellipse,#ffe5a74c,transparent 65%);mix-blend-mode:screen
}
@keyframes willow-foot-gold {0%{transform:scale(.18);opacity:0}16%{opacity:.95}68%{opacity:.36}100%{transform:scale(1.32);opacity:0}}
@media(prefers-reduced-motion:reduce){
 .wd-willow .wd-atmos::before,.mythic-live[data-skin="willow"] .mythic-shade::before,.willow-victory-art::before,
 .wd-willow-fx .willow-tide {animation:none;opacity:.65}
 .wd-willow-fx .willow-tide:nth-child(2){transform:scale(.74)}
 .wd-willow-fx .willow-tide:nth-child(3){transform:scale(.47)}
}

/* Keep the painted scenery inside the frame. The cutout sits in front of both. */
.wd-stage.wd-willow{overflow:visible;margin-top:15px;background:#132e27}
.wd-stage.wd-willow .wd-backdrop{overflow:hidden;inset:0}
.wd-stage.wd-willow::after{z-index:1}
.wd-stage.wd-willow .wd-model{inset:0;z-index:3;pointer-events:none}
.wd-stage.wd-willow .wd-signature{z-index:5}
.willow-breakout{position:absolute;left:51%;bottom:-1%;width:auto;height:123%;max-width:none;transform:translateX(-50%);object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 6px #092c28a6)}
/* The enlarged portrait bay is shared by base art and every wardrobe theme. */
.folio-layout .ed-card-stage{
  height:calc(clamp(355px,min(117vw,60svh),565px) + clamp(72px,20vw,102px));
}
@media(max-height:685px){
  .folio-layout .ed-card-stage{height:calc(clamp(334px,59svh,395px) + 72px)}
}
.folio-layout .ed-card-stage>.ed-scroll{overflow:visible;width:118%;margin-inline:-9%;padding-inline:10%}
.folio-layout .ed-scroll:not(.wd-willow,.wd-empress) .figure-button{inset:0;width:100%;height:100%;overflow:hidden}
.folio-layout .ed-scroll.wd-willow .figure-button{inset:0;width:100%;height:100%;overflow:visible}
.folio-layout .ed-scroll.wd-willow .willow-breakout{
  height:163%;width:184%;bottom:-40%;left:52%;
  filter:drop-shadow(0 4px 5px #092c2880);
  object-fit:contain;object-position:center bottom;
}
.folio-layout .ed-scroll .scroll-power.has-ultimate{
  --ultimate-badge-rise:2px;
  --ultimate-badge-height:23px;
  margin-top:clamp(43px,12vw,49px);
}
.willow-ultimate{
  position:absolute;z-index:6;right:10px;bottom:10px;isolation:isolate;display:grid;place-items:center;
  width:98px;height:30px;color:#fff6d1;pointer-events:none;filter:drop-shadow(0 2px 2px #121a11);
  background:linear-gradient(165deg,#fff3c6,#be873e 32%,#ffe7a0 50%,#835722 83%,#fed681);
  clip-path:polygon(0 50%,13% 17%,29% 17%,36% 0,64% 0,71% 17%,87% 17%,100% 50%,87% 83%,71% 83%,64% 100%,36% 100%,29% 83%,13% 83%);
}
.willow-ultimate::before{
  content:"";position:absolute;inset:2px;clip-path:inherit;
  background:radial-gradient(ellipse at 50% 0%,#96cba1,#31594a 54%,#102921 84%);
}
.willow-ultimate strong{position:relative;font:normal 20px/1 var(--brush);letter-spacing:.09em;text-shadow:0 0 7px #ffeaa3}
.willow-ultimate i{position:absolute;inset:0;overflow:hidden;clip-path:inherit}
.willow-ultimate i::after{
  content:"";position:absolute;inset:0;background:linear-gradient(116deg,transparent 39%,#fcffe7b8 51%,transparent 63%);
  animation:willow-seal-sheen 2.8s ease-in-out infinite;
}
.folio-layout .scroll-power.has-ultimate>.willow-ultimate{
  left:50%;right:auto;bottom:calc(100% + var(--ultimate-badge-rise));
  transform:translateX(-50%);height:var(--ultimate-badge-height);
}
@keyframes willow-seal-sheen{0%,26%{transform:translateX(-100%)}64%,100%{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.willow-ultimate i::after{animation:none}}

/* Three concentric jade and gold rings behind the Willow portrait. */
/* Continuous luminous rings. Keep their brightest edges behind the artwork. */
.willow-halo{
  position:absolute;left:51%;top:34%;width:86%;aspect-ratio:1;
  transform:translate(-50%,-50%);pointer-events:none;
  background:radial-gradient(ellipse,#a0ecaa13,transparent 63%);
}
.wd-stage.wd-willow .willow-halo{top:37%;width:min(85%,260px)}
.willow-halo i{
  position:absolute;inset:0;border-radius:50%;border:2px solid #ffe8ae;
  box-shadow:0 0 4px #fff6d6,0 0 13px #ffdb85d4,0 0 24px #cdebad66,
    inset 0 0 6px #ffdeb4b5;
  opacity:.9;animation:willow-halo-breathe 6.8s ease-in-out infinite alternate;
}
.willow-halo i:nth-child(2){
  inset:7%;border:1.5px solid #d7fabb;
  box-shadow:0 0 5px #efffbe,0 0 13px #98eec481,inset 0 0 10px #b2f2a771;
  animation-delay:-2.1s;
}
.willow-halo i:nth-child(3){
  inset:16%;border:1px solid #fff1bf;box-shadow:0 0 7px #fff5bbac,0 0 15px #ffdf8666;
  animation-delay:-4s;
}
.willow-halo i:first-child::before,.willow-halo i:first-child::after{
  content:"";position:absolute;top:50%;left:-4px;width:6px;height:6px;
  background:#fff9da;box-shadow:0 0 11px #ffffc7;transform:translateY(-50%) rotate(45deg);
}
.willow-halo i:first-child::after{left:auto;right:-4px}
.folio-layout .ed-scroll.wd-willow .wd-willow-fx::after{
  left:12%;top:88%;width:76%;height:12%;
  background:radial-gradient(ellipse,#fff4b778,transparent 69%);
}
@keyframes willow-halo-breathe{from{opacity:.82;transform:scale(.993)}to{opacity:1;transform:scale(1.008)}}
@media(prefers-reduced-motion:reduce){.willow-halo i{animation:none}}

/* A clear center preserves the scenery and animated effects underneath. */
.folio-layout .ed-scroll{
  --glass-hue:var(--bond-glass,#a8895d);
  --glass-light:color-mix(in srgb,var(--glass-hue) 40%,#fff6db);
  --glass-ink:color-mix(in srgb,var(--glass-hue) 37%,#0c0d10);
}
.folio-layout .ed-scroll :is(.scroll-power,.ed-statline,.classic-bonds){
  position:relative;z-index:3;
  border:1px solid color-mix(in srgb,var(--glass-light) 68%,transparent);
  background:linear-gradient(166deg,color-mix(in srgb,var(--glass-light) 31%,transparent),transparent 23% 79%,
      color-mix(in srgb,var(--glass-hue) 27%,transparent)),
    color-mix(in srgb,var(--glass-hue) 8%,transparent);
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--glass-light) 76%,transparent),
    inset 0 -1px 0 color-mix(in srgb,var(--glass-light) 37%,transparent),0 2px 4px #17140d3d;
  -webkit-backdrop-filter:saturate(1.12);
  backdrop-filter:saturate(1.12);
}
.folio-layout .ed-scroll .scroll-power{border-radius:5px 5px 2px 2px}
.folio-layout .ed-scroll :is(.ed-statline,.classic-bonds){
  box-sizing:border-box;align-self:center;width:119%;margin-inline:0;
}
.folio-layout .ed-scroll .ed-statline{border-radius:7px}
.folio-layout .ed-scroll .classic-bonds{
  margin-bottom:calc(-1 * var(--folio-foot));
  padding:4px clamp(18px,4.8vw,29px) calc(4px + var(--folio-foot));border-radius:7px 7px 3px 3px;
}
.folio-layout .ed-scroll :is(.scroll-power,.scroll-power b,.ed-statline b,.ed-statline span i,.classic-bonds .folio-bond-list span){
  color:#fff8df;
  text-shadow:0 1px 2px var(--glass-ink),1px 0 2px var(--glass-ink),-1px 0 2px var(--glass-ink),
    0 0 4px color-mix(in srgb,var(--glass-light) 50%,var(--glass-ink));
}
.folio-layout .ed-scroll .ed-statline span i{border-color:currentColor}
.folio-layout .ed-scroll .classic-bonds .folio-bond-list span.lit,
.folio-layout .ed-scroll .classic-bonds .folio-bond-list span.lit i{
  color:#fff2ad;text-shadow:0 1px 2px #281a11,0 0 5px #c88c38;
}
.folio-layout .ed-scroll:not(.ed-skin-scroll) :is(.scroll-power,.scroll-power b,.ed-statline b,.ed-statline span i,.classic-bonds .folio-bond-list span){
  color:#392310;text-shadow:0 1px 3px #fff3ce,0 0 5px #ffdfa0;
}
.folio-layout .ed-scroll:not(.ed-skin-scroll) .classic-bonds .folio-bond-list span.lit,
.folio-layout .ed-scroll:not(.ed-skin-scroll) .classic-bonds .folio-bond-list span.lit i{
  color:#742c13;text-shadow:0 0 5px #fff0aa;
}

/* The axle overhangs the paper edge without changing the card interior. */
.ed-gold-scroll .folio-scrollwork::before {scale:1.025 1.085}

.folio-layout .ed-scroll.wd-empress .figure-button {
  inset:0;width:100%;height:100%;overflow:visible;
}
.folio-layout .ed-scroll.wd-empress .empress-breakout {
  left:51%;bottom:-22%;height:144%;width:auto;max-width:none;
  filter:drop-shadow(0 8px 10px #130910aa);
}
.folio-layout .hero-folio:has(.wd-empress){padding-top:calc(clamp(9px,2.5vh,26px) + 6px)}
.folio-layout .ed-scroll.wd-empress .folio-vertical {top:19%}
.folio-layout .ed-scroll.wd-empress .folio-title {top:10%}
.wd-stage.wd-empress {overflow:visible;margin-top:15px;background:#201923}
.wd-stage.wd-empress .wd-backdrop {inset:0;overflow:hidden}
.wd-stage.wd-empress::after {z-index:1;border-color:#f4c5d859}
.wd-stage.wd-empress .wd-model {inset:0;z-index:3;pointer-events:none}
.wd-stage.wd-empress .empress-breakout {left:51%;bottom:0;height:110%}
.wd-stage.wd-empress .wd-signature {z-index:5}
.wd-empress .wd-atmos {
  background:radial-gradient(ellipse at 51% 24%,#f5d3de4d,transparent 46%),
    linear-gradient(180deg,#25162826,transparent 48%,#1f101b77);
}
.wd-empress .wd-atmos::after {
  content:"";position:absolute;inset:53% -9% -5%;pointer-events:none;
  background:radial-gradient(ellipse at 40% 79%,#9a284e68,transparent 57%),
    radial-gradient(ellipse at 81% 87%,#b576a04f,transparent 64%);
  animation:empress-mist 11s ease-in-out infinite alternate;
}
.wd-empress .wd-motes b {
  background:#f8839e;width:8px;height:3px;border-radius:80% 15%;
  box-shadow:0 0 6px #db527e;animation-name:wd-drop;animation-duration:7s;
}
.wd-empress .willow-ultimate {
  background:linear-gradient(165deg,#ffe0ee,#c996b3 35%,#f7d8e5 52%,#793a58 86%,#e9b5d0);
}
.wd-empress .willow-ultimate::before {
  background:radial-gradient(ellipse at 50% 15%,#96506e,#542338 53%,#24111e);
}
.wd-empress .willow-ultimate strong {color:#fff1f6;text-shadow:0 0 7px #ff8bb2}
@keyframes empress-mist {from{opacity:.42;transform:translateX(-3%)}to{opacity:.79;transform:translateX(3%)}}
@media(prefers-reduced-motion:reduce){.wd-empress .wd-atmos::after{animation:none}}

/* Cloud-crane and mirror-lake wardrobes share the card frame and keep their own scenery. */
.wd-cloudcrane .wd-atmos {
  background:radial-gradient(ellipse at 78% 12%,#fff5ce5c,transparent 40%),
    linear-gradient(180deg,#25343400 35%,#142d2b35 70%,#162b29a1);
}
.wd-cloudcrane .wd-scenery {object-position:50% 42%}
.cloudcrane-mist {position:absolute;inset:0;overflow:hidden;z-index:4;pointer-events:none}
.cloudcrane-mist i {
  position:absolute;inset:auto -9% 4%;height:28%;
  background:radial-gradient(ellipse at 31% 82%,#e6f2db83,transparent 64%),
    radial-gradient(ellipse at 83% 53%,#ffe4ab67,transparent 51%);
  animation:cloudcrane-drift 12s ease-in-out infinite alternate;
}
.cloudcrane-mist i+i {bottom:12%;opacity:.65;animation-delay:-6s;animation-direction:alternate-reverse}
@keyframes cloudcrane-drift {from{transform:translateX(-4%)}to{transform:translateX(4%)}}

.wd-stage.wd-moonmirror {overflow:visible;margin-top:15px;background:#142e34}
.wd-stage.wd-moonmirror .wd-backdrop {inset:0;overflow:hidden}
.wd-stage.wd-moonmirror .wd-model {inset:0;z-index:3;pointer-events:none}
.wd-stage.wd-moonmirror .wd-signature {z-index:5}
.wd-stage.wd-moonmirror .mirror-breakout {left:51%;bottom:0;height:107%;max-width:100%}
.folio-layout .ed-scroll.wd-moonmirror .figure-button {inset:0;width:100%;height:100%;overflow:visible}
.folio-layout .ed-scroll.wd-moonmirror .mirror-breakout {
  left:51%;bottom:-17%;height:130%;width:115%;object-position:center bottom;
  filter:drop-shadow(0 5px 9px #0a212ba8);
}
.wd-moonmirror .wd-atmos {
  background:radial-gradient(ellipse at 50% 28%,#baffed29,transparent 52%),
    linear-gradient(180deg,#19374700 50%,#051d2a87);
}
.mirror-orbit {position:absolute;inset:17% 10% 20%;pointer-events:none}
.mirror-orbit i {
  position:absolute;inset:0;border:1px solid #c4ffed83;border-radius:50%;
  box-shadow:0 0 14px #92ffe975,inset 0 0 11px #85ffe34d;
  transform:rotate(-19deg) scaleX(.87);
}
.mirror-orbit i+i {inset:9% 13%;transform:rotate(23deg) scaleX(.86);opacity:.55}
.mirror-water {position:absolute;z-index:4;inset:0;overflow:hidden;pointer-events:none}
.mirror-water i {
  position:absolute;inset:auto -5% 5%;height:17%;border:2px solid #bbfff2c7;border-radius:50%;
  box-shadow:0 0 11px #85efef78;animation:mirror-spread 6.6s ease-out infinite;
}
.mirror-water i:nth-child(2) {animation-delay:-2.2s}
.mirror-water i:nth-child(3) {animation-delay:-4.4s}
@keyframes mirror-spread {
  0%{transform:scale(.2);opacity:0} 23%{opacity:.64} 100%{transform:scale(1.15);opacity:0}
}
.wd-moonmirror .willow-ultimate {background:linear-gradient(160deg,#f2fffa,#a2d5e1 45%,#4b969b 82%,#e0fff1)}
.wd-moonmirror .willow-ultimate::before {background:radial-gradient(ellipse at 50% 15%,#397d82,#163d4a 65%,#102b38)}
.wd-moonmirror .willow-ultimate strong {color:#f2fff4;text-shadow:0 0 7px #90fbf6}
.mythic-live:is([data-skin="moonmirror"],[data-skin="cloudcrane"]) .mythic-actor {object-position:50% 100%}
@media(prefers-reduced-motion:reduce) {
  .cloudcrane-mist i,.mirror-water i {animation:none;opacity:.39}
  .mirror-water i:nth-child(2) {transform:scale(.72)}
  .mirror-water i:nth-child(3) {transform:scale(.45)}
}

.wd-amberlantern .wd-atmos {
  background:radial-gradient(ellipse at 20% 24%,#ffda9a38,transparent 50%),
    linear-gradient(180deg,#3b211000 45%,#2a170d96);
}
.wd-amberlantern .wd-motes b {
  background:#ffd68e;
  width:2px;height:2px;
  box-shadow:0 0 4px #f6ab55;
  animation-duration:9s;
}
.wd-amberlantern .wd-scenery {object-position:50% 45%}


.mythic-preview,.mythic-screen {
  position:fixed;inset:0;z-index:10000;isolation:isolate;
  overflow:hidden;background:#0b141c;color:#fff2cd;overscroll-behavior:contain;
}
.mythic-preview {z-index:200000}
.mythic-program {position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,#1a2732,#070c12 80%)}
.mythic-stage {
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(100%,61dvh);height:100%;overflow:hidden;isolation:isolate;
}
.mythic-scenery,.mythic-shade,.mythic-entrance,.mythic-stage canvas,.mythic-hits {
  position:absolute;inset:0;width:100%;height:100%;pointer-events:none
}
.mythic-scenery {object-fit:cover;object-position:center;opacity:.9}
.mythic-shade {background:linear-gradient(#080f1ace,transparent 28%,transparent 72%,#080f1a)}
.mythic-actor {
  position:absolute;width:66%;height:65%;object-fit:contain;object-position:bottom;
  transform-origin:50% 100%;filter:drop-shadow(0 9px 12px #000a) drop-shadow(0 0 5px var(--px-ink));
  will-change:transform;pointer-events:none;
}
.mythic-shadow {
  position:absolute;width:46%;height:5%;border-radius:50%;transform:translate(-50%,-35%);
  background:radial-gradient(ellipse,#050709cf,transparent 70%);pointer-events:none
}
.mythic-stage canvas {z-index:2;mix-blend-mode:screen}
.mythic-entrance {z-index:6;display:grid;align-items:center;background:#070d16ec;visibility:hidden}
.mythic-screen[data-shot="intro"] .mythic-entrance {visibility:visible}
.mythic-banner {
  display:flex;align-items:center;position:relative;min-height:116px;overflow:hidden;
  border-block:1px solid var(--px-ink);background:linear-gradient(105deg,#182335,#0d1b27);
  box-shadow:0 0 24px #071019,0 3px 24px #000;
  animation:mythic-banner-in calc(.27s / var(--mythic-pace,1)) cubic-bezier(.18,.72,.23,1) both;
}
.mythic-banner::after {
  content:"";pointer-events:none;position:absolute;inset:0;
  background:linear-gradient(101deg,transparent 28%,#ffffff40 42%,transparent 59%);
  animation:mythic-gleam calc(.4s / var(--mythic-pace,1)) ease-out both;
}
.mythic-banner img {width:39%;height:120px;object-fit:cover;object-position:center 27%;mask-image:linear-gradient(90deg,#000 74%,transparent)}
.mythic-banner div {position:relative;z-index:1;padding:5px 10px 8px 0}
.mythic-banner small {display:block;color:var(--px-ink);font:13px var(--brush);letter-spacing:.11em}
.mythic-banner strong {
  display:block;color:#fff1cc;font:700 clamp(20px,6vw,34px)/1.13 var(--brush);
  text-shadow:1px 2px #6b3823,2px 3px #171323,0 0 9px var(--px-ink);
}
.mythic-live[data-hero="wanwan"] .mythic-banner,.mythic-live[data-hero="shizhixuan"] .mythic-banner {background:linear-gradient(104deg,#421f46,#1b152b)}
.mythic-live[data-hero="songque"] .mythic-banner,.mythic-live[data-hero="yuhuatian"] .mythic-banner {background:linear-gradient(104deg,#56442c,#1b171a)}
.mythic-live[data-hero="ningdaoqi"] .mythic-banner,.mythic-live[data-hero="xuziling"] .mythic-banner {background:linear-gradient(104deg,#22473d,#0f242e)}
@keyframes mythic-banner-in {from{transform:scaleY(.15);opacity:.15}to{transform:scaleY(1);opacity:1}}
@keyframes mythic-gleam {from{transform:translateX(-80%)}to{transform:translateX(80%)}}
.mythic-kicker {
  position:absolute;z-index:3;top:max(15px,env(safe-area-inset-top));left:14px;right:14px;
  display:flex;justify-content:space-between;color:#ffedc5;
  font:15px var(--brush);text-shadow:0 2px 3px #070a10;
}
.mythic-hits {z-index:4}
.mythic-hit {
  position:absolute;right:4%;top:var(--hit-y);transform:translateY(-50%);
  display:flex;align-items:center;gap:5px;opacity:0;visibility:hidden;
}
.mythic-hit[data-lane="left"] {left:4%;right:auto;flex-direction:row-reverse}
.mythic-hit img {width:30px;height:30px;object-fit:cover;border:1px solid #c8acc986;border-radius:5px;background:#1a2034}
.mythic-hit div {display:grid}
.mythic-hit small {font:700 10px/1 var(--font-ed);color:#fff5df;text-shadow:0 1px 3px #000}
.mythic-hit strong {
  display:block;font:italic 950 clamp(17px,5.6vw,29px)/1.02 system-ui,sans-serif;
  color:#fff4b7;font-variant-numeric:tabular-nums;white-space:nowrap;
  -webkit-text-stroke:.6px #6d2620;text-shadow:1px 2px #a34130,2px 3px 2px #310e17,0 0 7px #e56655;
}
.mythic-hit strong i {font:700 12px var(--brush);color:#fff0ba;background:#9a4135;margin-right:3px;padding:1px 3px;border-radius:2px}
.mythic-hit.healing strong {color:#c4ffdc;text-shadow:1px 2px #26664e,0 0 6px #65e7ac;-webkit-text-stroke:.6px #27554b}
.mythic-screen[data-shot="impact"] .mythic-hit {
  visibility:visible;animation:mythic-hit-pop calc(.27s / var(--mythic-pace,1)) ease-out both;
  animation-delay:calc(var(--hit-index) * 22ms / var(--mythic-pace,1));
}
@keyframes mythic-hit-pop {
  0%{opacity:0;transform:translateY(-12%) scale(.7)}
  65%{opacity:1;transform:translateY(-62%) scale(1.12)}
  100%{opacity:1;transform:translateY(-50%) scale(1)}
}
.mythic-summary {
  position:absolute;z-index:5;left:14px;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 50px);
  color:#ffeac1;font:14px var(--brush);text-shadow:0 2px 3px #000;visibility:hidden;
}
.mythic-screen[data-shot="impact"] .mythic-summary {visibility:visible}
.mythic-summary b {color:#fff6bf;font:bold 16px system-ui,sans-serif}
.mythic-program footer {
  position:absolute;z-index:7;right:14px;bottom:max(12px,env(safe-area-inset-bottom));display:flex;gap:6px;
}
.mythic-program footer button {
  min-height:38px;padding:5px 9px;border:1px solid #c49f69;background:#382c29e8;
  color:#ffefce;font:14px var(--font-ed);cursor:pointer;
}
.mythic-meter {position:absolute;bottom:0;width:100%;height:3px;background:#334043;z-index:7}
.mythic-meter i {display:block;height:100%;background:var(--px-ink);transform:scaleX(0);transform-origin:left}
@media(prefers-reduced-motion:reduce){
  .mythic-banner,.mythic-screen[data-shot="impact"] .mythic-hit{animation:none;opacity:1}
  .mythic-stage canvas{display:none}
}

/* The painted figure stays in place while the stage cuts to a detail window. */
.mythic-actor {left:37%;top:84%;transform:translate(-50%,-100%)}
.mythic-shadow {left:37%;top:84%}
.mythic-live[data-side="enemy"] .mythic-actor {
  left:63%;transform:translate(-50%,-100%) scaleX(-1)
}
.mythic-live[data-side="enemy"] .mythic-shadow {left:63%}
.mythic-insert {
  position:absolute;inset:0;z-index:4;display:grid;align-items:center;
  pointer-events:none;visibility:hidden;background:#030a13aa
}
.mythic-screen[data-shot="insert"] .mythic-insert {visibility:visible}
.mythic-insert-frame {
  position:relative;width:100%;aspect-ratio:910 / 408;overflow:hidden;
  margin-top:-9%;isolation:isolate;border-block:1px solid var(--px-ink);
  box-shadow:0 0 30px #000,0 0 12px var(--px-ink);
}
.mythic-live[data-shot="insert"] .mythic-insert-frame {animation:mythic-detail-in calc(.17s / var(--mythic-pace,1)) ease-out both}
.mythic-insert-frame img,.mythic-insert-frame video {
  display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover
}
.mythic-insert-frame video {object-fit:contain;background:#03070e}
.mythic-screen:not([data-clip-ready="true"]) .mythic-insert-frame video {visibility:hidden}
.mythic-live[data-hero="wanwan"] .mythic-insert-frame {margin-top:6%;transform:skewY(-3deg)}
.mythic-live[data-hero="zhaohuaian"] .mythic-insert-frame {margin-top:-20%}
.mythic-live[data-hero="fucailin"] .mythic-insert-frame {margin-top:22%}
@keyframes mythic-detail-in {from{clip-path:inset(47% 0);opacity:.22}to{clip-path:inset(0);opacity:1}}
.mythic-banner strong {
  font-size:clamp(21px,6.8vw,36px);letter-spacing:.055em;
  color:#fff1be;-webkit-text-stroke:.44px #c0874c;paint-order:stroke fill;
  text-shadow:0 1px #fff5d8,1px 2px #9b5b34,2px 4px #381d29,0 0 12px #ffd985b0;
}
.mythic-hit {
  right:auto;left:83.5%;width:30px;display:block;
  transform:translate(-50%,-50%);visibility:visible;opacity:.78
}
.mythic-hit[data-lane="left"] {left:16.5%;right:auto}
.mythic-hit img {display:block;box-shadow:0 1px 6px #000}
.mythic-hit div {
  position:absolute;top:50%;right:34px;transform:translateY(-50%);
  justify-items:end;visibility:hidden
}
.mythic-hit[data-lane="left"] div {right:auto;left:34px;justify-items:start}
.mythic-hit strong {
  font-family:Georgia,"Times New Roman",serif;font-weight:900;letter-spacing:-.032em;
  -webkit-text-stroke:.75px #6d191b;paint-order:stroke fill;
  text-shadow:0 1px #fff0ba,1px 2px #a13325,2px 3px #46161b,0 0 6px #ef8c47;
}
.mythic-hit strong i {font-family:var(--brush);font-style:normal;font-weight:700;letter-spacing:0}
.mythic-screen[data-shot="impact"] .mythic-hit {opacity:1;animation:none}
.mythic-screen[data-shot="impact"] .mythic-hit div {
  visibility:visible;animation:mythic-hit-pop calc(.25s / var(--mythic-pace,1)) ease-out both;
  animation-delay:calc(var(--hit-index) * 22ms / var(--mythic-pace,1))
}
.mythic-screen[data-shot="impact"] .mythic-hit img {
  animation:mythic-avatar-hit calc(.28s / var(--mythic-pace,1)) ease-out both;
  animation-delay:calc(var(--hit-index) * 22ms / var(--mythic-pace,1))
}
@keyframes mythic-avatar-hit {
  0%{filter:brightness(2) contrast(.8);box-shadow:0 0 13px var(--px-ink)}
  100%{filter:none;box-shadow:0 1px 6px #000}
}
@media(prefers-reduced-motion:reduce){
  .mythic-screen[data-shot="impact"] .mythic-hit div,
  .mythic-screen[data-shot="impact"] .mythic-hit img{animation:none}
}

.mythic-detail-ink {position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none}
.mythic-detail-ink i {position:absolute;display:block;opacity:0}
.mythic-detail-seal {
  position:absolute;z-index:3;right:8px;bottom:6px;padding:3px 6px;
  border:1px solid var(--px-ink);background:#10101bd6;color:var(--px-ink);
  font:12px/1.1 var(--brush);letter-spacing:.12em
}
.mythic-live[data-hero="shifeixuan"] .mythic-detail-seal {display:none}
.mythic-live[data-hero="zhaohuaian"][data-shot="insert"] .mythic-insert-frame {animation:dust-slit calc(.24s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-hero="songque"][data-shot="insert"] .mythic-insert-frame {animation:blade-window calc(.21s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-hero="shizhixuan"][data-shot="insert"] .mythic-insert-frame {animation:mirror-window calc(.24s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-hero="ningdaoqi"][data-shot="insert"] .mythic-insert-frame {margin-top:5%;animation:cloud-window calc(.38s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-hero="kouzhong"] .mythic-detail-ink i {
  width:34%;height:48%;left:55%;top:30%;border:1px solid #ffe4af;
  border-radius:50%;box-shadow:0 0 12px #ffba63, inset 0 0 9px #ffbe7a
}
.mythic-live[data-hero="xuziling"] .mythic-detail-ink i {
  width:44%;height:55%;left:29%;top:38%;border:1px solid #ceffe7;border-radius:50%;
  box-shadow:0 0 13px #8bf1cc;transform-origin:center
}
.mythic-live[data-hero="kouzhong"][data-shot="insert"] .mythic-detail-ink i,
.mythic-live[data-hero="xuziling"][data-shot="insert"] .mythic-detail-ink i {animation:detail-ripple calc(.66s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-hero="zhaohuaian"] .mythic-detail-ink i {
  width:70%;height:11%;left:-35%;top:44%;background:linear-gradient(90deg,transparent,#f5a04a55,#ffe3a23f,transparent);
  filter:blur(2px);transform:rotate(-8deg)
}
.mythic-live[data-hero="zhaohuaian"][data-shot="insert"] .mythic-detail-ink i {animation:detail-dust calc(.40s / var(--mythic-pace,1)) linear both}
.mythic-live[data-hero="shizhixuan"] .mythic-detail-ink i:first-child {
  left:49%;height:100%;width:2px;background:#f8d8ff;box-shadow:0 0 12px 4px #d995f7;
}
.mythic-live[data-hero="shizhixuan"][data-shot="insert"] .mythic-detail-ink i:first-child {animation:detail-pulse calc(.63s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-hero="songque"] .mythic-detail-ink i:first-child {
  left:51%;height:148%;top:-25%;width:3px;background:#fff1c4;
  box-shadow:0 0 13px 3px #ffbb68;transform:rotate(24deg)
}
.mythic-live[data-hero="songque"][data-shot="insert"] .mythic-detail-ink i:first-child {animation:detail-pulse calc(.57s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-hero="ningdaoqi"] .mythic-detail-ink i {
  left:-50%;top:35%;width:110%;height:40%;
  background:radial-gradient(ellipse,#aef8df7d,transparent 67%);filter:blur(6px)
}
.mythic-live[data-hero="ningdaoqi"][data-shot="insert"] .mythic-detail-ink i {animation:detail-mist calc(.86s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-hero="fucailin"] .mythic-detail-ink i {
  width:7px;height:7px;left:54%;top:71%;border:1px solid #eeeaff;background:#ffdca2;
  border-radius:100%;box-shadow:0 0 9px 2px #b4b0ff
}
.mythic-live[data-hero="fucailin"] .mythic-detail-ink i:nth-child(2){left:62%;top:65%}
.mythic-live[data-hero="fucailin"] .mythic-detail-ink i:nth-child(3){left:70%;top:59%}
.mythic-live[data-hero="fucailin"][data-shot="insert"] .mythic-detail-ink i {animation:detail-pulse calc(.46s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-shot="insert"] .mythic-detail-ink i:nth-child(2) {animation-delay:calc(.10s / var(--mythic-pace,1))}
.mythic-live[data-shot="insert"] .mythic-detail-ink i:nth-child(3) {animation-delay:calc(.20s / var(--mythic-pace,1))}
@keyframes detail-ripple {0%{opacity:0;scale:.42}27%{opacity:.76}100%{opacity:0;scale:1.54}}
@keyframes detail-pulse {0%{opacity:0}25%{opacity:.90}100%{opacity:0}}
@keyframes detail-dust {0%{opacity:0;translate:0 0}30%{opacity:.66}100%{opacity:0;translate:170% -20%}}
@keyframes detail-mist {0%{opacity:0;translate:0 0}30%{opacity:.67}100%{opacity:0;translate:135% -16%}}
@keyframes dust-slit {0%{clip-path:inset(48% 0)}100%{clip-path:inset(0)}}
@keyframes blade-window {0%{clip-path:polygon(54% 0,57% 0,46% 100%,43% 100%)}100%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}}
@keyframes mirror-window {0%{clip-path:inset(0 49%);filter:contrast(1.8)}100%{clip-path:inset(0);filter:contrast(1)}}
@keyframes cloud-window {0%{opacity:.18;filter:blur(5px)}100%{opacity:1;filter:blur(0)}}

@media(prefers-reduced-motion:reduce){
  .mythic-live[data-shot="insert"] .mythic-insert-frame,.mythic-detail-ink i {animation:none!important}
}

/* The player remains visible around the inserts. Each window has its own framing. */
.mythic-live[data-shot="insert"] .mythic-hits {opacity:0}
.mythic-live:not([data-hero="shifeixuan"]) .mythic-insert {
  display:block;background:linear-gradient(145deg,#050a1320,#0407118c)
}
.mythic-live:not([data-hero="shifeixuan"]) .mythic-insert-frame {
  position:absolute;margin:0;border:1px solid var(--px-ink)
}
.mythic-live[data-hero="zhaohuaian"] .mythic-insert-frame {
  right:3%;top:9%;width:55%;aspect-ratio:12/17;
  border-radius:0 0 0 18px
}
.mythic-live[data-hero="kouzhong"] .mythic-insert-frame {
  right:6%;top:10%;width:57%;aspect-ratio:1;border-radius:50%;
  box-shadow:0 0 0 4px #432b24a8,0 0 20px #fac77b76
}
.mythic-live[data-hero="kouzhong"] .mythic-detail-seal {
  bottom:12%;right:50%;transform:translateX(50%);white-space:nowrap
}
.mythic-live[data-hero="xuziling"] .mythic-insert-frame {
  left:3%;bottom:16%;width:66%;aspect-ratio:54/49;
  border-radius:27px 5px 27px 5px
}
.mythic-live[data-hero="shizhixuan"] .mythic-insert-frame {
  left:4%;top:12%;width:71%;aspect-ratio:13/17;border-radius:0;
  mask-image:linear-gradient(90deg,#000 0 48%,transparent 49% 51%,#000 52%)
}
.mythic-live[data-hero="songque"] .mythic-insert-frame {
  right:1%;top:20%;width:52%;aspect-ratio:46/73;
  border-radius:14px 0 14px 0
}
.mythic-live[data-hero="ningdaoqi"] .mythic-insert-frame {
  left:3%;top:12%;width:58%;aspect-ratio:1;border-radius:46% 53% 48% 52%;
  box-shadow:0 0 20px #a9f6d997
}
.mythic-live[data-hero="ningdaoqi"] .mythic-detail-seal {bottom:12%;right:23%;white-space:nowrap}
.mythic-live[data-hero="fucailin"] .mythic-insert-frame {
  left:6%;bottom:15%;width:88%;aspect-ratio:76/35;
  border-radius:7px 7px 0 0;border-bottom-width:3px
}
.mythic-live[data-hero="wanwan"] .mythic-insert-frame {
  right:2%;top:18%;width:77%;aspect-ratio:22/10;border-radius:11px 0 11px 0
}
.mythic-live[data-hero="yuhuatian"] .mythic-insert-frame {
  left:2%;bottom:17%;width:78%;aspect-ratio:20/10;
  border-radius:0 24px 0 6px
}

.mythic-live[data-skin="willow"] .mythic-shade {background:linear-gradient(#051b1cd9,transparent 28%,transparent 72%,#081912)}
.mythic-live[data-skin="willow"] .mythic-actor {filter:drop-shadow(0 9px 12px #000a) drop-shadow(0 0 13px #e2c88288)}
.mythic-live[data-skin="willow"] .mythic-insert {display:block;background:#07181548}
.mythic-live[data-skin="willow"] .mythic-insert-frame {position:absolute;top:24%;right:3%;width:69%;margin:0;aspect-ratio:1.22;border:1px solid #edce88;
  border-radius:2px 20px 2px 20px;box-shadow:0 0 18px #98cca880,0 8px 16px #000a}
.mythic-live[data-skin="willow"] .mythic-detail-seal {display:block}
.mythic-live[data-skin="willow"] .mythic-detail-ink i:first-child {display:block;opacity:1;width:55%;height:1px;left:8%;top:67%;
  background:#ffefc2;box-shadow:0 0 13px 3px #f8d68d;transform:rotate(-27deg);
  animation:mythic-gleam calc(.83s / var(--mythic-pace,1)) ease-out both}
.mythic-live[data-skin="willow"] .mythic-insert-frame{top:29%;right:4%;width:92%;aspect-ratio:910 / 408;border-radius:2px 14px}
.mythic-live[data-skin="willow"] .mythic-insert-frame video{object-fit:contain;background:#071815}
.mythic-live[data-skin="willow"][data-clip-ready="true"] .mythic-detail-ink{display:none}

/* Regular battle: keep the stage, action callout and both ranks readable on mobile. */
.battle-arena-v12 .battle-beam-top {
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:5px;padding-inline:clamp(7px,2.5vw,14px);
}
.battle-arena-v12 .battle-beam-title {max-width:none;min-width:0;line-height:1.25}
.battle-arena-v12 .battle-round-flame {
  position:static;transform:none;gap:5px;padding:4px clamp(12px,4vw,20px);
}
.battle-arena-v12 .flame-round-text {letter-spacing:0;white-space:nowrap}
.battle-arena-v12 .flame-sub-pill {font:700 11px/1.5 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.battle-arena-v12 .battle-auto-btn {justify-self:end;text-align:right;line-height:1.15;color:#f6dcad}
.battle-arena-v12 .unit-bar-v12[data-slot] {--battle-side:#95dfab;border-inline-start:3px solid var(--battle-side)}
.battle-arena-v12 .unit-bar-v12.enemy[data-slot] {
  --battle-side:#efa28e;border-inline-start-width:1px;border-inline-end:3px solid var(--battle-side);
}
.battle-arena-v12 .unit-bar-v12:is(.lunge-ally,.lunge-enemy)[data-slot] {
  outline:2px solid #ffe59b;outline-offset:0;z-index:18;
}
.battle-arena-v12 .unit-name-v12 {
  font:700 clamp(11px,3vw,15px)/1.15 system-ui,sans-serif;
  color:#fff0d3;white-space:normal;overflow-wrap:anywhere;
}
.battle-arena-v12 .hp-bar-v12 {
  height:6px;background:#210f0a;border-color:#b18a5c;margin-block:3px 0;
}
.battle-arena-v12 .hp-fill-v12.ally {background:linear-gradient(90deg,#4d9a69,#a3eeb2)}
.battle-arena-v12 .hp-fill-v12.enemy {background:linear-gradient(90deg,#a34741,#ffae96)}
.battle-arena-v12 .unit-bar-v12 .float-dmg {
  --battle-impact:#ffd0bc;
  top:50%;left:calc(100% + 3px);right:auto;z-index:28;
  transform:translateY(-50%);animation:battle-impact-chip .32s ease-out both;
  gap:3px;min-height:21px;padding:2px 5px;border:1px solid #b68b64;border-radius:3px;
  background:#2d1a13f2;box-shadow:0 2px 5px #170d08a8;
  color:var(--battle-impact);font:800 clamp(11px,3.1vw,15px)/1.15 system-ui,sans-serif;
  font-variant-numeric:tabular-nums;letter-spacing:0;-webkit-text-stroke:0;
  text-shadow:0 1px #130a05;
}
.battle-arena-v12 .unit-bar-v12.enemy .float-dmg {left:auto;right:calc(100% + 3px)}
.battle-arena-v12 .float-dmg.crit {--battle-impact:#ffe38d;border-color:#e5b963}
.battle-arena-v12 .float-dmg.heal {--battle-impact:#c1f9cd;border-color:#7fc88f}
.battle-arena-v12 .float-dmg.dodge {--battle-impact:#caeefa;border-color:#7ebdcf}
.battle-arena-v12 .float-dmg.block {--battle-impact:#ffdeab}
.battle-arena-v12 .float-dmg .dmg-seal {
  width:14px;height:14px;flex:none;font-size:9px;border-color:currentColor;box-shadow:none;
}
@keyframes battle-impact-chip{from{opacity:.15;transform:translateY(-33%)}to{opacity:1;transform:translateY(-50%)}}
.battle-arena-v12 .battle-skill-callout {
  top:7px;max-width:min(58%,300px);filter:none;
}
.battle-arena-v12 .callout-body {
  min-width:0;padding:5px 7px;
  background:linear-gradient(100deg,#2c1b14,#4b281c 54%,#2c1b14);
}
.battle-arena-v12 .callout-main {gap:3px;flex-wrap:wrap;white-space:normal}
.battle-arena-v12 .callout-actor {color:#eac9a5}
.battle-arena-v12 .callout-skill {
  font-size:clamp(12px,3.5vw,16px);line-height:1.15;letter-spacing:0;text-shadow:0 1px 2px #170a07;
}
.battle-arena-v12 .callout-note {max-width:none;white-space:normal;overflow-wrap:anywhere;font-size:10px}
.battle-arena-v12 .callout-rod {width:4px;box-shadow:none}
.battle-arena-v12 .battle-beam-bottom {
  gap:4px;padding-inline:clamp(7px,2.5vw,14px);
}
.battle-arena-v12 .momentum-label {white-space:nowrap;letter-spacing:0}
.battle-arena-v12 .momentum-val {font:800 14px/1.1 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.battle-arena-v12 .battle-speed-pill {
  min-width:44px;min-height:44px;border-radius:5px;font:800 13px/1 system-ui,sans-serif;
}
#app-shell .battle-arena-v12 .battle-skip-plaque {min-height:44px;padding-inline:clamp(8px,3vw,16px)!important;letter-spacing:0!important}
@media(max-width:440px){
  .battle-arena-v12 .unit-bar-v12.ally .float-dmg {top:calc(50% - 10px)}
  .battle-arena-v12 .unit-bar-v12.enemy .float-dmg {top:calc(50% + 10px)}
}
@media(max-width:360px){
  .battle-arena-v12 .unit-bar-v12 .float-dmg {font-size:11px;padding-inline:3px}
  .battle-arena-v12 .float-dmg .dmg-seal {display:none}
  .battle-arena-v12 .battle-auto-btn {padding-inline:0!important}
}
@media(prefers-reduced-motion:reduce){
  .battle-arena-v12.screen-shake,
  .battle-arena-v12 .unit-bar-v12:is(.battle-slide-in,.lunge-ally,.lunge-enemy,.hit-flash),
  .battle-arena-v12 .battle-skill-callout,
  .battle-arena-v12 .unit-bar-v12 .float-dmg {animation:none;transition:none}
  .battle-arena-v12 .hp-fill-v12 {transition:none}
}

.mythic-live[data-skin="empress"] .mythic-insert-frame {
  position:absolute;top:19%;left:7%;width:52%;margin:0;aspect-ratio:4/5;
  transform:none;background:linear-gradient(135deg,#251620,#08090f);border:1px solid #eeaec5
}
.mythic-live[data-skin="empress"] .mythic-insert-frame img {object-fit:contain}
.mythic-live[data-hero="dq_rihou"] .mythic-insert-frame,
.mythic-live[data-hero="dq_yinyi"] .mythic-insert-frame {position:absolute;top:46%;right:7%;width:46%;aspect-ratio:1;margin:0}
.mythic-live[data-hero="dq_leidapeng"] .mythic-insert-frame,
.mythic-live[data-hero="dq_tiezhongtang"] .mythic-insert-frame {position:absolute;top:22%;left:8%;width:54%;aspect-ratio:4/5;margin:0}

/* Scenery camera never moves the portraits or position-anchored hit readouts. */
.mythic-live .mythic-scenery {transform:translateX(var(--cinema-shift,0%)) scale(var(--cinema-zoom,1))}
.mythic-hit.shield strong {color:#c6f5ff;text-shadow:1px 2px #294f73,0 0 6px #6bc8eb;-webkit-text-stroke:.5px #28455e}
.mythic-hit.shield strong i {background:#316380}
.mythic-live[data-hero="dq_yedi"] .mythic-insert-frame {
  top:17%;right:0;width:85%;aspect-ratio:19/8;border-radius:14px 0 0 0;
}
.mythic-live[data-hero="dq_yedifuren"] .mythic-insert-frame {
  bottom:18%;left:5%;width:62%;aspect-ratio:1;border-radius:50%;
}
.mythic-live[data-hero="dq_leidapeng"] .mythic-insert-frame {
  top:22%;right:1%;left:auto;width:57%;aspect-ratio:4/5;
  clip-path:polygon(9% 1%,100% 0,100% 95%,0 100%);
}
.mythic-live[data-hero="dq_yinyi"] .mythic-insert-frame {top:20%;right:5%;width:57%;aspect-ratio:5/6;border-radius:48% 48% 5% 5%}

.battle-presentation-options {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}

/* Stack distinct outcomes on a single compact panel per target. */
.battle-arena-v12 .unit-bar-v12 .battle-outcomes {display:grid;gap:2px}
.battle-outcome-row {display:flex;align-items:center;gap:3px;white-space:nowrap}
.battle-outcome-row.crit {color:#ffe38d}
.battle-outcome-row.heal {color:#c1f9cd}
.battle-outcome-row.shield,.battle-outcome-row.dodge {color:#c8f0ff}
.battle-outcome-row.block {color:#ffdeab}
.battle-arena-v12 .float-dmg .seal-shield {color:#bceaff;background:#37566b}
.battle-arena-v12 .result-body-card {min-height:0;justify-content:flex-start;overscroll-behavior:contain}
.battle-arena-v12 .result-body-card > * {flex-shrink:0}
.battle-arena-v12 :is(.result-top-banner,.result-bottom-actions) {flex-shrink:0}
.battle-arena-v12 .result-bottom-actions button {min-height:44px}
.result-battle-log {border-top:1px dashed #93754e;color:#39291d;font:500 13px/1.55 system-ui,sans-serif}
.result-battle-log summary {cursor:pointer;font-weight:750;padding-block:10px}
.result-battle-log ol {padding-inline-start:1.45em;margin:0}
.result-battle-log li {padding-block:5px;border-top:1px solid #dbc7a6}
.result-battle-log li span {display:block;overflow-wrap:anywhere}


/* Common surface treatments keep existing art, routes, and controls recognizable. */
#app-shell {
  --polish-ink:#322b24;
  --polish-muted:#655346;
  --polish-amber:#b4874c;
  --polish-jade:#2f6558;
  --polish-red:#873e31;
  --polish-paper:#f3e7cf;
  --polish-edge:#a38c6b;
  --polish-panel:linear-gradient(150deg,#fff5df,#f0e1c4);
}
#app-shell .ed-secondary {
  background:radial-gradient(ellipse at 22% 0,#fff9e8,transparent 63%),
    repeating-linear-gradient(104deg,#9d734005 0 1px,transparent 1px 4px),var(--polish-paper);
  color:var(--polish-ink);
}
#app-shell :is(.page-equipment,.page-martial,.page-sect,.page-meridians,.page-zhenqi,.page-gems) {
  --polish-edge:#879984;
  --polish-panel:linear-gradient(145deg,#fff7e5,#e7e7d0);
}
#app-shell :is(.page-gacha,.page-shop,.page-activities,.page-mail,.page-blood) {
  --polish-edge:#b09164;
  --polish-panel:linear-gradient(145deg,#fff4d9,#ecdbc0);
}
#app-shell :is(.ed-secondary,.page-jianghu,.page-awakening,.page-biography) .leaf-title {
  min-height:46px;
  margin-inline:0;
  padding:3px 4px 8px;
  color:var(--polish-ink);
  border-bottom:1px solid var(--polish-edge);
}
#app-shell .leaf-title h1 {line-height:1.14;letter-spacing:.045em;color:#402e25}
#app-shell .leaf-title .leaf-line {
  background:linear-gradient(90deg,var(--polish-edge),transparent);
}
#app-shell .leaf-title .small-seal {border-radius:2px;box-shadow:inset 0 0 0 1px #e3bc814c}
#app-shell :is(.ed-secondary,.page-jianghu,.page-awakening,.page-biography) :is(.paper-card,.ed-register,.ed-chapter) {
  background:var(--polish-panel);
  border-color:var(--polish-edge);
  border-radius:4px;
  box-shadow:inset 0 1px #fffaf1,0 3px 9px #52371d1f;
}
#app-shell :is(.paper-card,.ed-register,.ed-chapter) > :is(h2,h3,summary) {color:var(--polish-ink)}
#app-shell .modal-mask {background:#152322d2}
#app-shell .modal-box {
  background:linear-gradient(148deg,#fff5df,#eeddba);
  border-color:#ad8a56;
  box-shadow:0 10px 30px #1b1c1b77,inset 0 0 0 2px #fff4da8c;
}
#app-shell .ed-wallet {white-space:nowrap;gap:clamp(5px,2vw,15px)}
#app-shell .ed-wallet span {color:#f0dfcd}
#app-shell .ed-wallet b {color:#ffdf9f;font-variant-numeric:tabular-nums}
#app-shell .ed-master {min-width:0}

#app-shell .hall-stage::before {
  background:linear-gradient(90deg,#20160f38,transparent 63%),
    linear-gradient(180deg,#21181137,transparent 48%,#26180eb0);
}
#app-shell .hall-chapter {
  border-color:#d3ab69;
  box-shadow:inset 0 1px #fde6b9,0 4px 9px #21110948;
}
#app-shell :is(.hall-training,.hall-lineup) {border-color:#be9b65}
#app-shell .hall-corner b {text-shadow:0 2px 3px #2e1a11,0 0 6px #401e10}
#app-shell .hall-ping {background:#a44033;border-color:#ffd7a2}

#app-shell .folio-layout .ed-deploy {
  background:linear-gradient(180deg,#f7ecd3,#e7d3ad);
  border-color:#a58a63;
  box-shadow:inset 0 1px #fff5e0,0 2px 6px #5e442824;
}
#app-shell .folio-layout .ed-seat.on {
  outline-color:var(--polish-jade);
  background:linear-gradient(#efe3c4,#f8efd8);
}
#app-shell .folio-layout .ed-seat.on em {color:#244c45}
#app-shell .folio-layout .ed-gear > span {text-shadow:0 1px #fff6e0;color:#3b2d25}
#app-shell .folio-layout .ed-gear.free > span {color:#655447}
#app-shell .ed-collection article {border-color:#ad946b;box-shadow:0 2px 7px #553c251c}
#app-shell .ed-collection article section {background:linear-gradient(145deg,#fff4d8,#ebd5b6)}
#app-shell .ed-collection article:not(.ed-disciple-unknown) .ed-print {
  box-shadow:inset 0 0 0 1px #efddaa;
}
#app-shell .wl-catalog-item {
  background:var(--polish-panel);
  border-color:var(--polish-edge);
}
#app-shell .wl-catalog-item small {color:#655141}
#app-shell .wl-quality [aria-pressed="true"] {
  color:#fff5db;background:#31564c;border-color:#254539;
}
#app-shell .wl-tabs button[aria-pressed="true"] {border-color:var(--polish-jade)}

#app-shell .ed-journey .journey-banner {border-color:#ad8956;box-shadow:0 3px 10px #28312642}
#app-shell .journey-stage .journey-rewards {color:#4d4a3a}
#app-shell .ed-journey .journey-stage[data-locked] .journey-enemy img {filter:saturate(.55)}
#app-shell .ed-journey .journey-stage[data-locked] {background:#f0e5d0}
#app-shell .ed-journey .journey-guide {border-color:#749081}
#app-shell .ed-draw-info {font-variant-numeric:tabular-nums}
#app-shell .ed-pavilion {border-bottom:1px solid #c09860;box-shadow:0 3px 8px #46342542}
#app-shell .ed-pavilion-copy {text-shadow:0 1px 3px #180f09}
#app-shell .ed-recruits article {background:var(--polish-panel);border-color:var(--polish-edge)}

#app-shell .battle-arena-v12 :is(.battle-beam-top,.battle-beam-bottom) {
  background:linear-gradient(180deg,#694427,#3d2a20 27%,#262019 84%,#50311c);
  box-shadow:inset 0 1px #f0c8866b;
}
#app-shell .battle-arena-v12 .unit-bar-v12.ally .unit-avatar-v12 {border-color:#80b8a3}
#app-shell .battle-arena-v12 .unit-bar-v12.enemy .unit-avatar-v12 {border-color:#c57862}
#app-shell .battle-arena-v12 .unit-name-v12 {text-shadow:0 1px 3px #0f1411}
#app-shell .battle-arena-v12 .hp-fill-v12.ally {background:linear-gradient(90deg,#3e8a74,#b4e3ab)}
#app-shell .battle-arena-v12 .hp-fill-v12.enemy {background:linear-gradient(90deg,#a94d40,#f19376)}
#app-shell .battle-arena-v12 .result-body-card {border-color:#ab8d5f}

.field-intro,.field-board {margin-block:12px}
.field-board > header {color:#315a50;font-weight:800;border-bottom:1px solid #a38c6b;padding-bottom:8px}
.field-threat {display:grid;gap:4px;padding:12px;color:#fff0d8;background:linear-gradient(150deg,#64402e,#392c25)}
.field-threat strong {font-size:22px}
.field-choices {display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
#app-shell .field-choices button {min-height:44px}
.spy-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-width:400px}
.spy-grid button {position:relative;min-height:44px;border:1px solid #b1a182;background:#e8dbc2;color:#392e25;font-size:19px}
#app-shell .spy-grid button:disabled {opacity:.78}
.spy-grid button[data-cell="墙"] {background:#6c665b;color:#fff0d3}
.spy-grid button[data-cell="侠"] {background:#2a5c51;color:#fff0d3}
.spy-grid button[data-cell="卷"] {background:#eed393;color:#51351e}
.spy-grid button[data-cell="卫"] {background:#874339;color:#fff0d3}
.spy-grid small {position:absolute;top:3px;right:4px;color:#6b211b;background:#feecd1;font-size:9px}

.battle-counter-mark {color:#e4ffe4;background:#245444;padding:1px 3px;border-radius:2px;font-size:10px;line-height:1.1}
.folio-layout .wd-snow .ed-paint {inset:2% 3%;width:94%;height:96%}
@media(prefers-reduced-motion:reduce) {
  #app-shell .battle-arena-v12.screen-shake,
  #app-shell .battle-arena-v12 .hit-flash,
  #app-shell .battle-arena-v12 .unit-avatar-v12,
  #app-shell .mythic-live .mythic-actor {animation:none}
}
