/* Mobile combat owns the viewport; the arena receives only the remaining height. */
body.battle-navigation-locked .player-bottom-nav a,body.battle-navigation-locked .player-hud a {opacity:.45;cursor:wait}
.battle-navigation-notice {position:fixed;left:50%;top:16px;transform:translateX(-50%);z-index:15000;width:max-content;max-width:calc(100vw - 32px);padding:12px 18px;border:1px solid #d4ac5b;border-radius:10px;background:#10192cf5;color:#fff1ce;box-shadow:0 8px 28px #0008;font-size:14px;line-height:1.5}
.boss-action-banner {position:absolute;z-index:40;top:8%;left:50%;transform:translateX(-50%);max-width:94%;width:max-content;padding:10px 26px;border-block:1px solid #bd92ea;background:linear-gradient(90deg,transparent,#160d29ed 16%,#160d29ed 84%,transparent);color:#edd4ff;font-size:clamp(17px,3vw,28px);font-weight:700;letter-spacing:.12em;text-shadow:0 2px 8px #000;pointer-events:none}
.boss-action-banner[data-kind="execution"]{border-color:#ff7470;color:#ffb6a9;background:linear-gradient(90deg,transparent,#2f0918ed 16%,#2f0918ed 84%,transparent)}
.boss-action-banner[data-kind="execution_guard"]{border-color:#ffe4a0;color:#fff0bc}
.boss-action-banner[hidden],.battle-navigation-notice[hidden]{display:none!important}
.admin-enemy-values {min-width:145px;line-height:1.65}.admin-enemy-values>div+div{margin-top:8px}
.excel-reference {padding:12px 16px;margin:12px 0;border:1px solid #86724566;border-radius:10px;background:#121b2b;color:#e4dfd1;line-height:1.75}
.excel-reference strong{color:#ffe0a0}.excel-reference .muted{display:block;font-size:12px}
.defaults-fields label.enemy-unused {border-left:2px solid #7d728e;padding-left:8px}.defaults-fields .enemy-unused small{color:#c5b7d0;font-size:12px;line-height:1.5}

body.auth-v25-body.auth-login-v6 {isolation:isolate;background:#080d16!important;min-height:100svh}
body.auth-v25-body.auth-login-v6::before,body.auth-v25-body.auth-login-v6::after {display:none!important}
body.auth-login-v6 .auth-v25-shell {position:static!important;background:none!important;min-height:100svh;max-width:1400px!important;margin:0 auto!important}
body.auth-login-v6 .auth-v25-main {position:static!important;grid-template-columns:minmax(0,1fr) minmax(300px,380px)!important;min-height:calc(100svh - 120px)!important;gap:clamp(20px,4vw,70px)!important;padding:30px!important;align-items:center!important;background:none!important}
body.auth-login-v6 .auth-v25-hero.auth-login-hero {position:static!important;background:none!important;align-self:stretch!important;align-content:space-between!important;padding:0!important;transform:none!important}
body.auth-login-v6 .auth-login-hero::before,body.auth-login-v6 .auth-login-hero::after {display:none!important}
body.auth-login-v6 .auth-login-hero .auth-login-scene {position:fixed!important;z-index:-1!important;inset:0!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;box-shadow:none!important;pointer-events:none}
body.auth-login-v6 .auth-login-hero .auth-login-scene::after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,#06091108 20%,#070b1626 55%,#070b1699),linear-gradient(0deg,#080d16a6,transparent 35%)}
body.auth-login-v6 .auth-login-hero .login-scene-image {width:100%!important;height:100%!important;object-fit:cover!important;object-position:42% 48%!important;max-width:none!important}
body.auth-login-v6 .auth-login-hero .login-scene-brand {place-items:start!important}
body.auth-login-v6 .auth-login-hero .auth-hero-logo {margin:0!important;width:clamp(160px,20vw,270px)!important;max-height:170px!important;filter:drop-shadow(0 4px 16px #000)}
body.auth-login-v6 .auth-login-hero .login-scene-caption {justify-self:start!important;margin:0!important;padding:12px 20px!important;border-left:2px solid #c1a166;background:linear-gradient(90deg,#091120e6,transparent);text-align:left!important;color:#ffe5b2!important}
body.auth-login-v6 .auth-v25-card {position:relative!important;z-index:1!important;width:100%!important;max-width:380px!important;box-sizing:border-box!important;background:#0b1527e8!important;backdrop-filter:blur(9px);border:1px solid #b3945f!important;box-shadow:0 24px 70px #0007!important}
.login-scene-blades {position:absolute;inset:0;pointer-events:none;opacity:0;mix-blend-mode:screen}
.login-scene-blades i {position:absolute;left:21%;top:57%;width:34%;height:3px;background:linear-gradient(90deg,transparent,#9ddaef,#f5f9dc,transparent);transform:rotate(-32deg);filter:drop-shadow(0 0 8px #75bdff);opacity:0}
.login-scene-blades i+i {left:51%;top:52%;transform:rotate(40deg);background:linear-gradient(90deg,transparent,#ffb66e,#fff4d0,transparent)}
.login-scene-moving .login-scene-blades {opacity:1}.login-scene-moving .login-scene-blades i{animation:login-sword-glint 6s ease-in-out infinite}.login-scene-moving .login-scene-blades i+i{animation-delay:1.1s}
.login-scene-low .login-scene-blades{display:none}
@keyframes login-sword-glint{0%,65%,100%{opacity:0}72%{opacity:.82}84%{opacity:0}}
@media(max-width:700px){
 body.player-v25-body.battle-compact-v6 {height:100svh;height:100dvh;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
 body.player-v25-body.battle-compact-v6 .player-game-shell {width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;display:block!important;margin:0!important;padding:0!important}
 body.player-v25-body.battle-compact-v6 .player-hud,body.player-v25-body.battle-compact-v6 .player-bottom-nav,body.player-v25-body.battle-compact-v6 .player-mini-footer,body.player-v25-body.battle-compact-v6 .contact-float {display:none!important}
 body.player-v25-body.battle-compact-v6 .player-stage {height:100%!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important}
 body.player-v25-body.battle-compact-v6 .game-shell.v25-game.simple-battle {display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto minmax(100px,1fr) 24px 70px!important;grid-template-areas:"hud" "route" "arena" "log" "controls"!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;box-sizing:border-box!important;margin:0!important;padding:max(6px,env(safe-area-inset-top)) 6px max(8px,env(safe-area-inset-bottom))!important;gap:5px!important;overflow:hidden!important}
 body.player-v25-body.battle-compact-v6 .v25-battle-hud {grid-area:hud!important;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:28px auto!important;gap:5px!important;padding:0!important;min-height:0!important;margin:0!important}
 body.player-v25-body.battle-compact-v6 .v25-battle-center {grid-column:1/-1!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;padding:0 38px 0 3px!important;min-height:0!important;margin:0!important}
 body.player-v25-body.battle-compact-v6 .v25-battle-center>small {display:none!important}
 body.player-v25-body.battle-compact-v6 .v25-battle-center b,body.player-v25-body.battle-compact-v6 .v25-battle-center #roundText,body.player-v25-body.battle-compact-v6 .v25-turn-banner {font-size:12px!important;line-height:1.3!important;margin:0!important;white-space:nowrap!important;padding:3px!important;min-width:0!important}
 body.player-v25-body.battle-compact-v6 .v25-fighter-panel {grid-row:2!important;min-height:0!important;padding:7px!important;margin:0!important;box-sizing:border-box!important;overflow:hidden!important}
 body.player-v25-body.battle-compact-v6 .v25-fighter-title {font-size:12px!important;min-height:18px!important;line-height:1.3!important;margin:0 0 5px!important}
 body.player-v25-body.battle-compact-v6 .v25-fighter-title>span {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.player-v25-body.battle-compact-v6 .v25-fighter-portrait,body.player-v25-body.battle-compact-v6 .v25-hp-orb {display:none!important}
 body.player-v25-body.battle-compact-v6 .v25-hp-wrap {padding:0!important;margin:0!important;height:auto!important}
 body.player-v25-body.battle-compact-v6 .v25-hp-track {height:9px!important;margin:0!important}
 body.player-v25-body.battle-compact-v6 .v25-hp-text,body.player-v25-body.battle-compact-v6 .v25-skill-line-head {font-size:12px!important;line-height:1.3!important;margin:4px 0 0!important}
 body.player-v25-body.battle-compact-v6 .v25-skill-line {margin-top:4px!important}.battle-compact-v6 .v25-skill-track {height:4px!important}
 body.player-v25-body.battle-compact-v6 .simple-battle-meta,body.player-v25-body.battle-compact-v6 .enemy-phase-line,body.player-v25-body.battle-compact-v6 .item-strip {display:none!important}
 body.player-v25-body.battle-compact-v6 .battle-route {grid-area:route!important;display:flex!important;flex-wrap:nowrap!important;overflow:hidden!important;min-height:25px!important;gap:4px!important;padding:0!important;margin:0!important}
 body.player-v25-body.battle-compact-v6 .battle-route>* {font-size:12px!important;line-height:1.3!important;padding:4px 6px!important;min-width:0!important;margin:0!important}
 body.player-v25-body.battle-compact-v6 .game-shell.v25-game .arena {grid-area:arena!important;position:relative!important;inset:auto!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;background-position:center bottom!important;background-size:cover!important;overflow:hidden!important;border-radius:8px!important}
 body.player-v25-body.battle-compact-v6 .arena #samurai,body.player-v25-body.battle-compact-v6 .arena #dragon {width:58%!important;height:91%!important;max-height:100%!important;min-height:0!important;bottom:2%!important;background-size:contain!important;background-position:center bottom!important;top:auto!important}
 body.player-v25-body.battle-compact-v6 .arena #samurai {left:-5%!important;right:auto!important}body.player-v25-body.battle-compact-v6 .arena #dragon {right:-5%!important;left:auto!important}
 body.player-v25-body.battle-compact-v6 .battle-log.v07-log {grid-area:log!important;display:block!important;height:24px!important;min-height:0!important;max-height:24px!important;overflow-y:auto!important;padding:3px 7px!important;margin:0!important;font-size:12px!important;line-height:18px!important;box-sizing:border-box!important}
 body.player-v25-body.battle-compact-v6 .v25-battle-controls {grid-area:controls!important;position:static!important;display:grid!important;grid-template-columns:1fr 1fr!important;min-height:0!important;gap:7px!important;padding:0!important;margin:0!important}
 body.player-v25-body.battle-compact-v6 .v25-skill-button {height:70px!important;min-height:48px!important;min-width:0!important;padding:8px!important;gap:7px!important;box-sizing:border-box!important;overflow:hidden!important}
 body.player-v25-body.battle-compact-v6 .v25-skill-button .v25-skill-copy>b {font-size:17px!important;line-height:1.3!important}
 body.player-v25-body.battle-compact-v6 .v25-skill-button small {font-size:12px!important;line-height:1.3!important;white-space:normal!important}
 body.player-v25-body.battle-compact-v6 .v25-skill-cost {display:none!important}
 body.player-v25-body.battle-compact-v6 .v25-skill-button>img,body.player-v25-body.battle-compact-v6 .v25-skill-button>i {width:30px!important;height:30px!important;min-width:0!important}
 body.player-v25-body.battle-compact-v6 #audioFloat {position:fixed!important;top:max(6px,env(safe-area-inset-top))!important;right:8px!important;left:auto!important;bottom:auto!important;z-index:900!important}
 body.player-v25-body.battle-compact-v6 #audioFloat>summary {width:28px!important;height:28px!important;font-size:15px!important;padding:0!important}
 body.player-v25-body.battle-compact-v6 #audioFloat .audio-popover {top:36px!important;bottom:auto!important;left:auto!important;right:0!important;max-width:calc(100vw - 20px)!important}
 body.player-v25-body.battle-compact-v6 .modal {z-index:1200!important;padding:12px!important;box-sizing:border-box!important}
 body.player-v25-body.battle-compact-v6 #stageAdCard.stage-ad-card {position:fixed!important;inset:10px!important;z-index:800!important;max-height:calc(100dvh - 20px)!important;margin:0!important;overflow:auto!important}
 body.player-v25-body.battle-compact-v6 .battle-pre-back {display:block!important;min-height:44px!important;margin-top:10px!important;text-align:center!important}
 body.player-v25-body.battle-compact-v6 .modal-box {max-height:calc(100dvh - 24px)!important;overflow:auto!important;box-sizing:border-box!important}
 body.auth-v25-body.auth-login-v6 .auth-v25-main {display:grid!important;grid-template-columns:1fr!important;min-height:0!important;gap:18px!important;padding:16px!important}
 body.auth-login-v6 .auth-v25-hero.auth-login-hero {min-height:clamp(220px,38svh,340px)!important;gap:0!important}
 body.auth-login-v6 .auth-login-hero .auth-hero-logo {width:160px!important;max-height:100px!important}
 body.auth-login-v6 .auth-login-hero .login-scene-caption {font-size:12px!important;padding:7px 12px!important}
 body.auth-login-v6 .auth-login-hero .login-scene-image {height:64svh!important;object-position:46% center!important}
 body.auth-login-v6 .auth-login-hero .auth-login-scene::after {background:linear-gradient(0deg,#080d16 24%,#080d161a 75%)}
 body.auth-login-v6 .auth-v25-card {justify-self:center!important;max-width:440px!important}
}
@media(prefers-reduced-motion:reduce){.login-scene-image,.login-scene-light,.login-scene-blades i{animation:none!important}.login-scene-blades{display:none!important}}

/* Keep every mobile navigation tab inside the clipped bar. The old third-tab
   lift cut its top edge; active-page colors remain responsible for emphasis. */
@media(max-width:760px){
 body.player-v25-body .player-bottom-nav a:nth-child(3){transform:none!important}
}
