/* ---------- 开奖大招（浮在 #screen 最上层） ---------- */
.ult { position: absolute; inset: 0; z-index: 60; overflow: hidden; color: #fff; background: #0c0820; transition: opacity .4s; }
.ult.out { opacity: 0; }
.ult.loading > *:not(.u-loading) { visibility: hidden; }
.u-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; letter-spacing: 2px; color: rgba(220,230,255,.7); }
.ult:not(.loading) .u-loading { display: none; }
.u-world { position: absolute; inset: 0; will-change: transform; transform-origin: 0 0; }
.u-bg { position: absolute; inset: -14% -14%; background-size: cover; background-position: center 62%; filter: saturate(1.05) brightness(.95); }

/* 深色舞台：大招期间压成夜色，发光特效才压得住 */
.u-dim { position: absolute; inset: -14%; opacity: 0; transition: opacity .7s;
  background: radial-gradient(60% 34% at 50% 66%, transparent 0%, rgba(8,8,30,.25) 60%, rgba(6,6,22,.7) 100%), linear-gradient(180deg, rgba(6,6,24,.55) 0%, rgba(6,6,24,.1) 45%, rgba(6,6,24,.0) 70%, rgba(6,6,24,.6) 100%); }
.ult.on .u-dim { opacity: 1; }

.u-back, .u-front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }   /* 黑底贴图：滤色混合，黑=透明 */
.u-actors { position: absolute; inset: 0; }
.u-flash { position: absolute; inset: 0; background: #eef6ff; opacity: 0; pointer-events: none; }
.u-skip { position: absolute; top: 50px; right: 14px; z-index: 20; font-size: 12px; color: rgba(255,255,255,.75); padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }

/* 人物：脚踩同一条地面线 */
.u-foe { position: absolute; transform: translate(-50%, -100%); }
.u-foe img { width: 100%; display: block; transform: scaleX(-1); filter: drop-shadow(0 0 6px rgba(120,160,255,.25)); }
.u-foe.ghost img { filter: brightness(2.4) saturate(0) blur(.5px); }
.u-foe span { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 700; color: rgba(220,230,255,.8); }
.u-champ { position: absolute; z-index: 20; }
.u-champ canvas { width: 100%; height: 100%; display: block; }
.u-name { position: absolute; left: 50%; top: 100%; margin-top: 6px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  color: #ffe9b8; text-shadow: 0 0 8px rgba(255,200,120,.6); }

/* 标题和招式名：细字、字距，不抢画面 */
.u-title { position: absolute; top: 10%; left: 0; right: 0; text-align: center; z-index: 6; opacity: 0; transform: translateY(-10px); transition: all .7s ease; }
.ult.on .u-title { opacity: 1; transform: none; }
.ult.titled-out .u-title, .ult.named .u-title, .ult.done .u-title { opacity: 0; transition-duration: .4s; }
.u-title small { display: block; font-size: 11px; letter-spacing: 3px; color: rgba(200,215,255,.7); }
.u-title b { display: block; font-size: 26px; font-weight: 300; letter-spacing: 14px; margin-top: 8px; padding-left: 14px; color: #f4f7ff; text-shadow: 0 0 18px rgba(150,190,255,.6); }
.u-fxname { position: absolute; top: 11%; left: 0; right: 0; text-align: center; z-index: 6; opacity: 0; letter-spacing: 16px; transition: opacity .6s, letter-spacing 1.4s ease-out; }
.u-fxname b { font-size: 22px; font-weight: 300; color: #eaf2ff; text-shadow: 0 0 14px rgba(140,190,255,.8), 0 0 40px rgba(140,190,255,.35); padding-left: 16px; }
.ult.named .u-fxname { opacity: 1; letter-spacing: 10px; }

/* 结算：放在上半屏，下面的冠军和余韵还看得见 */
.u-result { position: absolute; left: 9%; right: 9%; top: 8%; z-index: 12; text-align: center; padding: 18px 16px 16px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(20,22,60,.72), rgba(12,12,38,.82)); border: 1px solid rgba(170,200,255,.25); backdrop-filter: blur(6px);
  box-shadow: 0 0 40px rgba(110,150,255,.18); opacity: 0; transform: translateY(-14px); pointer-events: none; transition: all .6s cubic-bezier(.2,1,.3,1); }
.ult.done .u-result { opacity: 1; transform: none; pointer-events: auto; }
.u-crown { font-size: 11px; letter-spacing: 8px; padding-left: 8px; color: #ffe0a3; }
.u-nick { font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: 2px; }
.u-sub { font-size: 11.5px; color: rgba(210,220,255,.7); margin-top: 4px; }
.u-amts { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 10px; }
.u-amts span { font-size: 11px; padding: 2px 8px; border-radius: 99px; color: #cfe0ff; background: rgba(120,160,255,.14); border: 1px solid rgba(150,190,255,.2); }
.u-prize { margin: 12px 0 14px; }
.u-prize b { font-size: 44px; line-height: 1; background: linear-gradient(180deg, #fff6dc, #f3cd7f 55%, #d99347); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(243,205,127,.45)); }
.u-prize small { display: block; font-size: 12px; color: #f3cd7f; margin-top: 5px; letter-spacing: 3px; }
.u-btns { display: flex; gap: 10px; }
.u-btns button { flex: 1; padding: 10px 0; border-radius: 99px; font-weight: 800; font-size: 13px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.u-btns .main { color: #3a2508; background: linear-gradient(90deg, #f3cd7f, #d99347); border: 0; }

/* 榜单：开奖后的冠军横幅 */
.champ-banner { width: 100%; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 14px; border-radius: 16px; color: #4a2f08; font-size: 13px;
  background: linear-gradient(90deg, #fbe6b6, #f3cd7f 60%, #e3a65a); box-shadow: 0 8px 22px rgba(217,147,71,.35); }
.champ-banner .cb-crown { font-size: 18px; }
.champ-banner em { margin-left: auto; font-style: normal; font-weight: 900; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.55); }

/* 我的大招 */
.fx-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.fx-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #fff; border: 2px solid transparent; box-shadow: 0 4px 14px rgba(110,80,190,.08); }
.fx-card.on { border-color: #e2a94e; }
.fx-art { width: 72px; height: 72px; border-radius: 12px; flex: none; background: #0e0b26 center / contain no-repeat; }
.fx-sword .fx-art { background-image: url(../img/fx/sword.webp); background-size: auto 92%; }
.fx-butterfly .fx-art { background-image: url(../img/fx/butterfly.webp); background-size: 86%; }
.fx-whale .fx-art { background-image: url(../img/fx/whale_s1.webp); background-size: 170%; background-position: 70% 50%; }
.fx-txt { flex: 1; min-width: 0; }
.fx-txt b { font-size: 15px; }
.fx-txt small { display: block; font-size: 11.5px; color: var(--sub); margin-top: 3px; line-height: 1.5; }
.fx-ops { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.fx-ops button { padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(143,114,242,.1); color: var(--primary); }
.fx-ops .use { background: linear-gradient(90deg, #f0c477, #d99347); color: #fff; }
.fx-ops span { font-size: 11.5px; text-align: center; color: #c48a32; font-weight: 800; }

/* 点小人冒出来的话：放右上，别挡头顶光球 */
.tap-bubble { left: 74%; top: 18%; transform: none; }
.tap-bubble::after { left: 14px; margin-left: 0; }
@keyframes bub { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------- 演出层：黑边、招式名、击破、伤害数字、金币 ---------- */
.u-bars i { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 15; transition: height .45s cubic-bezier(.3,.8,.3,1); }
.u-bars i:first-child { top: 0; } .u-bars i:last-child { bottom: 0; }
.ult.cine .u-bars i { height: 9%; }
.u-stamp { position: absolute; left: 0; right: 0; top: 38%; z-index: 16; text-align: center; pointer-events: none; opacity: 0; }
.u-stamp small { display: block; font-size: 12px; letter-spacing: 6px; color: rgba(255,236,190,.85); text-shadow: 0 0 8px rgba(0,0,0,.6); }
.u-stamp b { position: relative; display: inline-block; font-size: 54px; font-weight: 900; letter-spacing: 6px; line-height: 1.15; padding: 0 10px;
  background: linear-gradient(180deg, #fffbe9 0%, #ffe39a 38%, #f0a93b 62%, #fff1c4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 2px #6a3d00) drop-shadow(0 0 14px rgba(255,190,80,.75)) drop-shadow(0 6px 0 rgba(60,30,0,.55)); overflow: hidden; }
.u-stamp b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.95) 50%, transparent 70%); background-size: 250% 100%; background-position: 150% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.ult.stamped .u-stamp { animation: stampIn 1.5s cubic-bezier(.2,.9,.3,1) forwards; }
.ult.stamped .u-stamp b::after { animation: shine .7s .25s ease-out forwards; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2.6); filter: blur(8px); } 14% { opacity: 1; transform: scale(.94); filter: blur(0); } 22% { transform: scale(1.03); } 30% { transform: scale(1); }
  78% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-40px) scale(.7); } }
@keyframes shine { to { background-position: -50% 0; } }
.u-ko { position: absolute; left: 0; right: 0; top: 34%; z-index: 16; text-align: center; pointer-events: none; opacity: 0; }
.u-ko b { display: block; font-size: 60px; font-weight: 900; font-style: italic; letter-spacing: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #d9ecff 45%, #8fc4ff 60%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 2px #0a2a66) drop-shadow(0 0 18px rgba(120,190,255,.9)) drop-shadow(0 6px 0 rgba(8,20,60,.6)); }
.u-ko small { display: inline-block; margin-top: 8px; font-size: 13px; letter-spacing: 2px; color: #fff3cf; padding: 4px 14px; border-radius: 99px; background: rgba(10,10,30,.55); border: 1px solid rgba(255,220,150,.4); }
.u-ko small .num { color: #ffd77a; font-size: 15px; }
.u-ko::before { content: ""; position: absolute; left: 50%; top: 36px; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 3px solid rgba(190,225,255,.9); opacity: 0; }
.ult.ko .u-ko { animation: koIn .5s cubic-bezier(.2,1.4,.4,1) forwards; }
.ult.ko .u-ko::before { animation: koRing .7s ease-out forwards; }
.ult.done .u-ko { opacity: 0 !important; animation: none; transition: opacity .3s; }
@keyframes koIn { 0% { opacity: 0; transform: scale(3) rotate(-6deg); } 60% { opacity: 1; transform: scale(.92) rotate(-3deg); } 100% { opacity: 1; transform: scale(1) rotate(-3deg); } }
@keyframes koRing { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(40); } }
.u-coins { position: absolute; inset: 0; z-index: 17; pointer-events: none; perspective: 400px; }
.u-coin { position: absolute; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.u-dmg { position: absolute; z-index: 30; pointer-events: none; text-align: center; white-space: nowrap; transform: translate(-50%,-50%); }
.u-dmg small { display: block; font-size: 11px; font-weight: 900; font-style: italic; letter-spacing: 2px; color: #ffe08a; text-shadow: 0 0 6px rgba(255,140,0,.8), 0 1px 0 #6a3500; }
.u-dmg b { display: block; font-size: 26px; font-style: italic; line-height: 1;
  background: linear-gradient(180deg, #fffdf0 0%, #ffe07a 45%, #ff9b2e 70%, #fff3c8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1.5px #5a2400) drop-shadow(0 2px 0 #5a2400) drop-shadow(0 0 10px rgba(255,170,60,.7)); }
.u-dmg.big b { font-size: 40px; }
.u-dmg.big small { font-size: 14px; }

/* ---------- 导演工具：领域、定格、反相、甩镜、书法、连击、朱印 ---------- */
.u-domain { position: absolute; inset: -14%; background-size: auto 150%; background-position: center 98%; clip-path: polygon(0% 100%, 100% 0%, 100% 0%, 0% 100%); }
.u-shade { position: absolute; inset: -40%; z-index: 15; pointer-events: none; opacity: 0; transition: opacity .18s; background: rgba(2,3,12,.9); }
.ult.shaded .u-shade { opacity: 1; }
.ult.shaded .u-champ { filter: drop-shadow(0 0 10px rgba(170,215,255,.9)) brightness(1.15); }
.ult.inv .u-world { filter: grayscale(1) invert(1) contrast(2.4) brightness(1.15); }
.ult.whip .u-world { filter: blur(2.5px) brightness(1.1); }
.u-kanji { position: absolute; z-index: 16; pointer-events: none; transform: translate(-50%, -50%); line-height: 1; font-size: 300px;
  font-family: "Ma Shan Zheng", "STXingkai", "KaiTi", serif; color: #eef8ff; mix-blend-mode: screen;
  text-shadow: 0 0 24px rgba(140,200,255,.95), 0 0 80px rgba(80,140,255,.6); }
.u-combo { position: absolute; right: 16px; top: 31%; z-index: 18; text-align: right; opacity: 0; transform-origin: right center; pointer-events: none; transition: opacity .3s; }
.u-combo.on { opacity: 1; }
.u-combo b { display: block; font-size: 58px; font-style: italic; line-height: .9; color: #fff; text-shadow: 0 0 2px #0b2a66, 0 3px 0 #0b2a66, 0 0 18px rgba(120,190,255,.9); }
.u-combo span { font: 900 italic 15px/1 "Nunito", sans-serif; letter-spacing: 4px; color: #bfe3ff; text-shadow: 0 0 8px rgba(80,160,255,.9); }
.ult.done .u-combo { opacity: 0; }
.u-title2 { position: absolute; left: 6%; bottom: 12.5%; z-index: 18; pointer-events: none; transition: opacity .4s; }
.u-title2 .t-main span { display: inline-block; font-family: "Ma Shan Zheng", "STXingkai", "KaiTi", serif; font-size: 50px; line-height: 1; color: #f4fbff; opacity: 0;
  text-shadow: 0 0 2px #06122e, 0 0 16px rgba(130,190,255,.9), 0 0 40px rgba(80,140,255,.5); clip-path: inset(0 100% 0 0); }
.u-title2.on .t-main span { animation: brush .5s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes brush { 0% { opacity: 1; clip-path: inset(0 100% 0 0); transform: translateY(4px) skewX(-6deg); } 100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
.u-title2 .t-en { font: 800 10px/1 "Nunito", sans-serif; letter-spacing: 5px; color: rgba(200,225,255,.75); margin: 8px 0 0 4px; opacity: 0; transition: opacity .6s .7s; }
.u-title2.on .t-en { opacity: 1; }
.ult.done .u-title2 { opacity: 0; }
.u-seal { position: absolute; right: 6%; bottom: 13%; z-index: 19; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; opacity: 0; pointer-events: none; }
.u-seal i { width: 76px; height: 76px; display: grid; place-items: center; font-style: normal; font-size: 60px; line-height: 1; border-radius: 6px;
  font-family: "Ma Shan Zheng", "STXingkai", "KaiTi", serif; color: #fff1e8; background: radial-gradient(circle at 30% 30%, #e0353d, #a8121c 75%);
  box-shadow: inset 0 0 0 4px rgba(255,225,215,.4), inset 0 0 0 7px #b0141e, 0 0 24px rgba(220,40,50,.55); transform: rotate(-8deg); }
.u-seal small { font-size: 11.5px; color: #ffe9cf; padding: 3px 10px; border-radius: 99px; background: rgba(10,8,20,.6); border: 1px solid rgba(255,200,170,.35); }
.u-seal.on { animation: sealIn .38s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes sealIn { 0% { opacity: 0; transform: scale(2.8); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- 美术字版本：毛笔大字、伤害字库、标题图、朱砂印 ---------- */
img.u-kanji { width: 300px; height: auto; font-size: 0; filter: drop-shadow(0 0 18px rgba(140,200,255,.95)) drop-shadow(0 0 50px rgba(80,140,255,.6)); text-shadow: none; }
.u-dmg { text-align: center; }
.u-dmg .crit { display: block; height: 22px; margin: 0 auto -4px; }
.u-dmg .digits { display: flex; align-items: flex-end; justify-content: center; }
.u-dmg .gl { height: 30px; margin: 0 -2.5px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.u-dmg .g-comma { height: 13px; margin-bottom: -3px; }
.u-dmg .g-dot { height: 10px; }
.u-dmg.big .gl { height: 48px; margin: 0 -4px; }
.u-dmg.big .g-comma { height: 20px; }
.u-dmg.big .crit { height: 32px; }
.u-combo b { display: flex; justify-content: flex-end; text-shadow: none; }
.u-combo b .gl { height: 54px; margin: 0 -3px; filter: hue-rotate(185deg) saturate(.7) brightness(1.25) drop-shadow(0 0 10px rgba(120,190,255,.8)); }
.u-title2 { left: 4%; right: 34%; bottom: 12%; }
.u-title2 .t-img { position: relative; overflow: hidden; clip-path: inset(0 100% 0 0); }
.u-title2 .t-img img { display: block; width: 100%; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.u-title2 .t-sweep { position: absolute; inset: -20% auto -20% -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); mix-blend-mode: overlay; transform: skewX(-20deg); }
.u-title2.on .t-img { animation: wipeIn .7s cubic-bezier(.5,0,.2,1) forwards; }
.u-title2.on .t-sweep { animation: sweep .8s .55s ease-out forwards; }
@keyframes wipeIn { 0% { clip-path: inset(0 100% 0 0); transform: translateX(-12px); } 100% { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes sweep { to { left: 120%; } }
.u-seal i { width: 82px; height: 82px; background: none; box-shadow: none; transform: rotate(-9deg); }
.u-seal i img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }

/* 收招时英文和印章不打架；结算卡上的积分数字也用美术字库 */
.u-title2 .t-en { letter-spacing: 3px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.u-prize b { font-family: "Nunito", sans-serif; font-weight: 900; font-style: italic; }

.u-prize b.art { display: flex; justify-content: center; align-items: flex-end; background: none; filter: drop-shadow(0 0 14px rgba(243,205,127,.45)); }
.u-prize b.art .gl { height: 50px; margin: 0 -3px; }
