/* Lumi Frontier: text stays live HTML; the portrait is never on top of its frame. */
@layer battlePowerV2 {
html body .stage #lumiPanel.lumi-frontier{height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important;isolation:isolate!important}
html body .stage #lumiContent{height:auto!important;min-height:0!important;padding:0!important;margin:0!important;overflow:visible!important}
html body .stage #lumiPanel.lumi-frontier .lumi-speech{position:relative!important;inset:auto!important;height:auto!important;min-height:106px!important;max-height:none!important;width:100%!important;margin:0!important;padding:14px 15px 12px!important;box-sizing:border-box!important;border:1px solid #43ccef!important;border-radius:13px 4px 13px 4px!important;background:linear-gradient(135deg,#102f47f5,#031827f5 65%)!important;box-shadow:inset 0 0 0 3px #092738,inset 0 1px 0 4px #5bcef52a,0 6px 22px #0006!important;overflow:visible!important;backdrop-filter:blur(8px)!important}
html body .stage #lumiPanel.lumi-frontier .lumi-speech:before{content:''!important;position:absolute!important;top:-3px!important;left:15px!important;width:43px!important;height:3px!important;transform:none!important;border:0!important;background:#8df5ff!important;box-shadow:0 0 12px #2cdbff!important}
html body .stage #lumiPanel.lumi-frontier .lumi-speech:after{content:''!important;position:absolute!important;right:13px!important;bottom:-2px!important;width:38px!important;height:2px!important;background:#36c8ef!important;box-shadow:0 0 9px #04d1ff77!important;pointer-events:none!important}
html body .stage #lumiPanel.lumi-frontier h2{display:flex!important;align-items:center!important;gap:6px!important;margin:0 95px 9px 0!important;font:800 12px/1.4 system-ui!important;letter-spacing:1.2px!important;color:#b5efff!important}
html body .stage #lumiPanel.lumi-frontier h2 small{font:500 9px/1.4 system-ui!important;letter-spacing:0!important;color:#8fb4c7!important;white-space:nowrap!important}
.lumi-name-dot{width:5px!important;height:5px!important;border-radius:50%!important;background:#68edfa!important;box-shadow:0 0 8px #32e1ff!important;flex:none!important}
html body .stage #lumiPanel.lumi-frontier #lumiMessage{display:block!important;overflow:visible!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;max-height:none!important;font:600 14px/1.75 system-ui,'Leelawadee UI',sans-serif!important;color:#e9f8ff!important;letter-spacing:.1px!important;margin:0!important}
html body .stage #lumiPanel.lumi-frontier .lumi-speech a{display:inline-block!important;margin-top:9px!important;color:#76e1f2!important;font-size:12px!important}
html body .stage #lumiPortrait{display:block!important;position:absolute!important;inset:auto!important;left:8px!important;bottom:calc(100% + 12px)!important;width:clamp(136px,18vw,205px)!important;height:clamp(136px,18vw,205px)!important;min-height:0!important;margin:0!important;mask-image:none!important;overflow:visible!important;pointer-events:none!important;animation:none!important;z-index:0!important;transform:none!important}
html body .stage #lumiSprite{display:block!important;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:1!important;background-image:url('assets/lumi-frontier-expressions-v2.png')!important;background-size:300% 200%!important;background-repeat:no-repeat!important;filter:drop-shadow(0 4px 10px #00172d77) drop-shadow(0 0 3px #81ecff44)!important;animation:lumi-frontier-float 5.5s ease-in-out infinite!important;transform-origin:50% 90%!important}
html body .stage #lumiSprite:after{display:none!important}
html body .stage #lumiPortrait:before{content:''!important;position:absolute!important;left:25%!important;right:20%!important;bottom:-3px!important;height:5px!important;border:1px solid #5eeaff55!important;border-radius:50%!important;background:#30d6fa22!important;filter:blur(2px)!important}
html body .stage #lumiSprite[data-expression=serious],html body .stage #lumiSprite[data-expression=worried]{filter:drop-shadow(0 4px 10px #00172d88) drop-shadow(0 0 4px #e9b44c44)!important}
.lumi-read-more{position:absolute!important;right:10px!important;top:11px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:4px 5px!important;min-height:24px!important;border:1px solid #36718d!important;border-radius:5px!important;background:#102d40!important;color:#a5e6fa!important;font:600 9px/1 system-ui!important;cursor:pointer!important}
.lumi-read-more svg{width:14px!important;height:14px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important}
@media(min-width:701px) and (max-height:650px){html body .stage #lumiPortrait{width:120px!important;height:120px!important}html body .stage #lumiPanel.lumi-frontier #lumiMessage{font-size:12px!important;line-height:1.65!important}html body .stage #lumiPanel.lumi-frontier .lumi-speech{min-height:90px!important;padding:10px!important}html body .stage #lumiPanel.lumi-frontier h2 small{display:none!important}}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
html body.portfolio-live.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage #lumiPanel.lumi-frontier{height:26px!important;min-height:0!important;overflow:visible!important}
html body.portfolio-live.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage #lumiPanel.lumi-frontier .lumi-speech{height:26px!important;min-height:26px!important;padding:4px 33px 4px 7px!important;border-radius:6px!important;overflow:hidden!important}
html body.portfolio-live.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage #lumiPanel.lumi-frontier h2{display:none!important}
html body.portfolio-live.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage #lumiPanel.lumi-frontier #lumiMessage{font-size:10px!important;line-height:16px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
html body.portfolio-live.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage>#lumiPortrait{display:block!important;top:176px!important;left:5px!important;right:auto!important;bottom:auto!important;width:100px!important;height:100px!important;z-index:5!important}
html body.portfolio-live.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage #lumiPanel.lumi-frontier .lumi-read-more{top:2px!important;right:3px!important;width:23px!important;height:21px!important;min-height:21px!important;padding:2px!important}
.lumi-read-more span{display:none!important}
}
@media(prefers-reduced-motion:reduce){html body .stage #lumiSprite{animation:none!important}}
html body.lumi-motion-low .stage #lumiSprite{animation:none!important}html body.lumi-tab-hidden .stage #lumiSprite{animation-play-state:paused!important}
}
@keyframes lumi-frontier-float{0%,100%{transform:translateY(0) rotate(-.3deg)}50%{transform:translateY(-4px) rotate(.3deg)}}
#lumiAdviceDialog{box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid #57cde9;border-radius:18px;background:radial-gradient(ellipse at top left,#164560,#061a2a 75%);color:#e6f8ff;padding:24px;box-shadow:0 20px 90px #000a;font:500 16px/1.8 system-ui}
#lumiAdviceDialog::backdrop{background:#000a;backdrop-filter:blur(5px)}#lumiAdviceDialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}#lumiAdviceDialog header small{font-size:9px;letter-spacing:1.6px;color:#8cd3ec}#lumiAdviceDialog h2{margin:0;font-size:24px;line-height:1.6}#lumiAdviceDialog .lumi-advice-close{display:grid;place-items:center;width:36px;height:36px;min-height:36px;border:1px solid #487589;border-radius:50%;padding:0;background:#0f2b3e;color:#c9efff;cursor:pointer}#lumiAdviceDialog .lumi-advice-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}#lumiAdviceDialog .lumi-advice-body{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:20px;margin:22px 0}#lumiAdviceDialog .lumi-advice-portrait{width:150px;height:150px;background-image:url('assets/lumi-frontier-expressions-v2.png');background-size:300% 200%;background-repeat:no-repeat;filter:drop-shadow(0 0 10px #37deff22)}#lumiAdviceDialog p{font-size:18px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-line;margin:0}#lumiAdviceDialog .lumi-advice-done{width:100%;padding:11px;border:1px solid #58c7e3;border-radius:8px;color:#e0faff;background:#0c536b;font:700 14px system-ui;cursor:pointer}#lumiAdviceDialog button:focus-visible{outline:2px solid #a4f4ff;outline-offset:3px}
@media(max-width:540px){#lumiAdviceDialog{padding:20px}#lumiAdviceDialog .lumi-advice-body{grid-template-columns:1fr;gap:10px}#lumiAdviceDialog .lumi-advice-portrait{width:130px;height:130px;justify-self:center}#lumiAdviceDialog p{font-size:17px;line-height:1.8}}

@layer battlePowerV2 {
html body .stage #lumiPanel.lumi-frontier .lumi-speech:after{inset:0!important;width:auto!important;height:auto!important;border:7px solid transparent!important;border-image:url('assets/lumi-frontier-frame.svg') 24 stretch!important;box-sizing:border-box!important;background:none!important;box-shadow:none!important}
}

#lumiStatsDialog .lv-girl{background-image:url('assets/lumi-frontier-expressions-v2.png')!important}
@layer battlePowerV2 {
@media(min-width:701px){html body .stage #lumiPortrait{bottom:calc(100% - 2px)!important}html body .stage #lumiSprite{animation-name:lumi-frontier-breathe!important}}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){html body.portfolio-live.portfolio-redesign.battle-power-v2:not(.normal-ui) .stage>#lumiPortrait{top:auto!important;left:0!important;right:auto!important;bottom:358px!important;width:100px!important;height:100px!important}html body .stage #lumiSprite{animation-name:lumi-frontier-breathe!important}}
}
@keyframes lumi-frontier-breathe{0%,100%{transform:scale(1) rotate(-.2deg)}50%{transform:scale(1.01) rotate(.2deg)}}
@layer battlePowerV2 {
@media(prefers-reduced-motion:reduce){html body .stage #lumiSprite{animation:none!important}}
html body.lumi-motion-low .stage #lumiSprite{animation:none!important}
}
