/* Open illustrated battle stage: no opaque portrait cards over the world. */
body.vd-duel #game.active{display:flex!important;flex-direction:column!important;height:100dvh!important;overflow:hidden!important;--duel-accent:#ffd37d}
body.vd-duel:not(.v1958TitleWorld) #sceneBg{filter:saturate(1.12) brightness(.92)!important}
body.vd-duel #game .hudTop{position:relative!important;inset:auto!important;flex:0 0 auto!important;gap:12px!important;padding:12px 20px 0!important}
body.vd-duel #game .hud{background:linear-gradient(130deg,#0b1926ed,#101e25ce)!important;border:1px solid #c7ac684a!important;border-radius:14px!important;box-shadow:0 8px 24px #0003!important}
body.vd-duel #game .field{position:relative!important;inset:auto!important;flex:1 1 0!important;min-height:160px!important;padding:66px 8% 12px!important;isolation:isolate;gap:8%!important;align-items:stretch!important;overflow:hidden}
body.vd-duel #game .field::before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#06151b88,transparent 35%,#08201b19 60%,#06131ee8)}
body.vd-duel #game .fighterWrap{width:auto!important;max-width:none!important;flex:1 1 0!important;min-height:0!important;position:relative;z-index:2}
body.vd-duel #game .fighterLabel,body.vd-duel #game .centerVs{display:none!important}
body.vd-duel #game .energyLabel{color:#efdfa8!important;font-size:10px!important;letter-spacing:.12em}
body.vd-duel #game .bigTrack{width:75%!important;height:5px!important;opacity:.85}
body.vd-duel #game .fighter{border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;height:auto!important;min-height:0!important;width:100%!important;flex:1 1 auto!important;margin:4px 0 0!important}
body.vd-duel #game .fighter::before,body.vd-duel #game .fighter::after{display:none!important}
body.vd-duel #game .fighter.rpgFramed{border-image:none!important;outline:none!important;background-image:none!important}
body.vd-duel #game .fighter>.rpgCorners{display:none!important}
body.vd-duel #game #heroFighter,body.vd-duel #game #enemyFighter{box-shadow:none!important;border:0!important;outline:none!important;background:none!important}
body.vd-duel #game .fighterArt{position:absolute!important;inset:0 0 46px!important;background:none!important;overflow:visible!important;transform:none!important}
body.vd-duel #game .fighterArt::before,body.vd-duel #game .fighterArt::after{display:none!important}
body.vd-duel #game #duelHero{position:absolute!important;inset:0!important;width:112%!important;max-width:none!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 16px 9px #0009) drop-shadow(0 0 10px #fff2)!important;transform:none!important;z-index:3;animation:duelBreathe 5s ease-in-out infinite}
body.vd-duel #game #heroImage{opacity:0!important}
body.vd-duel #game .duel-evolved #duelHero{display:none!important}
body.vd-duel #game .duel-evolved #heroImage{opacity:1!important;object-fit:contain!important;mask-image:linear-gradient(#000 75%,transparent 100%);filter:drop-shadow(0 0 20px var(--duel-accent))!important}
body.vd-duel #game #monsterImage{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;mask-image:radial-gradient(ellipse at 50% 48%,#000 34%,#000d 55%,transparent 73%);filter:drop-shadow(0 8px 10px #0008)!important;transform:scale(1.08)!important}
body.vd-duel #game .field[data-boss=true] #monsterImage{transform:scale(1.18)!important;filter:drop-shadow(0 0 18px #ff6a3270)!important}
body.vd-duel #game .fighterInfo{position:absolute!important;bottom:0!important;left:0!important;right:0!important;padding:5px!important;background:none!important;text-align:center!important;border:0!important;z-index:4}
body.vd-duel #game .fighterName{font:700 clamp(17px,2vw,25px)/1.1 Georgia,serif!important;text-shadow:0 2px 7px #000!important;color:#fff1c9!important;overflow-wrap:anywhere;max-width:100%}
body.vd-duel #game .fighterRole{font-size:9px!important;letter-spacing:.15em!important;color:#d8e8d3!important;margin-bottom:3px}
body.vd-duel #game .fighterStats{display:none!important}
body.vd-duel #game #gradeChip{font-size:9px!important;padding:2px 8px!important;margin-top:4px!important}
body.vd-duel #game .equipIcons{left:-16px!important;top:auto!important;bottom:60px!important;flex-direction:column!important;z-index:5}
body.vd-duel #game .equipIcon{width:27px!important;height:27px!important;border-radius:50%!important;background:#081726a8!important}
body.vd-duel #game #heroAura{opacity:.25!important;mix-blend-mode:screen}
body.vd-duel #game #heroGear{opacity:.35}
body.vd-duel #game .elemTint,body.vd-duel #game .elemGlow{opacity:.2!important}
body.vd-duel #game #elemChip{top:0!important;right:0!important;left:auto!important;font-size:9px!important}
.duel-caption{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:100%;text-align:center;z-index:4;pointer-events:none;text-shadow:0 2px 8px #000}
.duel-caption span{display:block;font:700 9px/1.5 Georgia,serif;letter-spacing:.28em;color:#e9cf98}
.duel-caption b{display:block;color:#fff4d7;font-size:19px;line-height:1.6;letter-spacing:.12em}
.duel-caption i{font:600 9px/1.5 Arial,sans-serif;letter-spacing:.2em;color:#c8dfd8}
.field[data-boss=true] .duel-caption i{color:#ffbc95}
.duel-floor{position:absolute;bottom:45px;left:7%;right:7%;height:27%;border-radius:50%;border:1px solid #f1df8b25;background:radial-gradient(ellipse,#99ebba18 0,transparent 70%);box-shadow:0 0 36px #98f7d61c,inset 0 0 22px #f2e7a115;z-index:0;transform:perspective(500px) rotateX(30deg)}
.duel-floor::before,.duel-floor::after{content:'';position:absolute;inset:15%;border:1px dashed #efd8a13b;border-radius:50%}
.duel-floor::after{inset:29%;border-style:solid;opacity:.5}
body.vd-duel #game .question{position:relative!important;inset:auto!important;transform:none!important;width:min(880px,calc(100% - 32px))!important;flex:0 1 auto!important;min-height:0!important;margin:0 auto 14px!important;padding:15px 20px!important;border:1px solid #c7ab6166!important;border-top:2px solid #e8ca85!important;border-radius:18px!important;background:linear-gradient(140deg,#152330f5,#091624fa)!important;box-shadow:0 8px 32px #0007!important;overflow-y:auto!important;overscroll-behavior:contain}
body.vd-duel #game .qword{font-size:clamp(23px,3vw,32px)!important;line-height:1.3!important;color:#fff6df!important;max-width:none!important}
body.vd-duel #game .qlabel{color:#dac395!important;font-size:9px!important;letter-spacing:.13em!important}
body.vd-duel #game .ans{background:linear-gradient(150deg,#25394b,#152a3d)!important;border:1px solid #7f99b360!important;border-radius:10px!important;box-shadow:inset 0 1px #fff1,0 3px #030b1499!important;min-height:48px!important;font-size:18px!important;color:#edf3ff!important}
body.vd-duel #game .ans:hover{border-color:#e5c987!important;background:#35465b!important}
body.vd-duel #game .ans.correct{background:#215f46!important;border-color:#8bf4b6!important}
body.vd-duel #game .ans.wrong{background:#642d39!important;border-color:#ff9ca8!important}
.duel-projectile{position:absolute;left:28%;top:48%;width:49%;height:7px;border-radius:100%;background:linear-gradient(90deg,transparent,var(--duel-accent),#fff);box-shadow:0 0 15px var(--duel-accent);z-index:9;pointer-events:none;animation:duelArrow .55s ease-in both}
.duel-warrior{height:45%;width:30%;left:54%;top:24%;background:none;border-right:9px solid #fff3c2;box-shadow:12px 0 18px #ffc666;transform:rotate(35deg);animation:duelSlash .6s ease-out both}
.duel-mage{height:46px;width:46px;top:43%;border-radius:50%;background:radial-gradient(circle,#fff 5%,#dab7ff 25%,#9466e8 40%,transparent 70%);box-shadow:0 0 25px #bd85ff;animation:duelOrb .65s ease-in both}
@keyframes duelBreathe{0%,100%{translate:0 0}50%{translate:0 -4px}}
@keyframes duelArrow{0%{opacity:0;scale:.1 1;transform:translateX(-70%)}30%{opacity:1}100%{opacity:0;transform:translateX(10%);scale:1 1}}
@keyframes duelSlash{0%{opacity:0;scale:.3;rotate:-65deg}25%{opacity:1}100%{opacity:0;scale:1.2;rotate:35deg}}
@keyframes duelOrb{0%{opacity:0;left:28%;scale:.5}20%{opacity:1}75%{left:68%;scale:1}100%{opacity:0;left:70%;scale:2}}
@media(max-width:620px){
 body.vd-duel #game .hudTop{gap:6px!important;padding:calc(5px + env(safe-area-inset-top)) 7px 0!important}
 body.vd-duel #game .hud{padding:6px 8px!important}
 body.vd-duel #game .hudMeta{-webkit-line-clamp:2!important}
 body.vd-duel #game .field{min-height:145px!important;padding:67px 7% 9px!important;gap:2%!important}
 body.vd-duel #game .fighterArt{inset:0 -10px 48px!important}
 body.vd-duel #game .fighterInfo{bottom:0!important;left:-12px!important;right:-12px!important}
 body.vd-duel #game .fighterName{font-size:16px!important}
 body.vd-duel #game .fighterRole{font-size:8px!important}
 body.vd-duel #game .energyLabel{font-size:8px!important;margin:0!important}
 body.vd-duel #game .question{width:calc(100% - 14px)!important;margin:0 7px calc(7px + env(safe-area-inset-bottom))!important;padding:10px 11px!important;border-radius:14px!important}
 body.vd-duel #game .qword{font-size:22px!important;max-height:none!important}
 body.vd-duel #game .answers{gap:7px!important;margin-top:9px!important}
 body.vd-duel #game .ans{font-size:17px!important;min-height:46px!important;padding:9px 6px!important}
 body.vd-duel #game .answers.longOpts .ans{font-size:14px!important;min-height:44px!important}
 body.vd-duel #game .equipIcons{left:-13px!important;bottom:56px!important}
 body.vd-duel #game .equipIcon{width:22px!important;height:22px!important}
 body.vd-duel #game .duel-caption{top:9px}
 body.vd-duel #game .duel-caption b{font-size:17px}
 body.vd-duel #game #heroReady{top:15px!important;left:0!important;font-size:8px!important}
}
@media(max-height:650px){body.vd-duel #game .field{padding-top:42px!important;min-height:100px!important}.duel-caption span{display:none}.duel-caption b{font-size:14px!important}.duel-caption{top:4px}body.vd-duel #game .qword{font-size:19px!important}body.vd-duel #game .ans{min-height:40px!important;font-size:15px!important}body.vd-duel #game .question{padding:8px 10px!important}}
@media(prefers-reduced-motion:reduce){body.vd-duel #duelHero{animation:none!important}.duel-projectile{display:none!important}}

/* v1.9.93: restore large, detailed portraits; progression changes armor, never scale. */
body.vd-duel #game .hudTop{gap:10px!important;padding:8px 16px 0!important}
body.vd-duel #game .hud{padding:7px 10px!important}
body.vd-duel #game:not(.showBattleDetails) .hudMeta,
body.vd-duel #game:not(.showBattleDetails) .xpText,
body.vd-duel #game:not(.showBattleDetails) .hud .track.en{display:none!important}
body.vd-duel #game .hudTitle{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.vd-duel #game .hudActions{margin-top:5px!important;gap:5px!important;flex-wrap:wrap}
body.vd-duel #game .hudActions .iconBtn{min-height:28px!important}
body.vd-duel #game .field{padding:40px max(16px,calc((100% - 960px)/2)) 8px!important;gap:20px!important;min-height:150px!important}
body.vd-duel #game .fighterWrap{display:flex!important;flex-direction:column!important;max-width:450px!important;width:calc(50% - 10px)!important}
body.vd-duel #game .fighter{overflow:hidden!important;border:1px solid #bfa2698a!important;border-radius:14px!important;background:#0b1724!important;min-height:0!important}
body.vd-duel #game .fighterArt{inset:0!important;overflow:hidden!important;border-radius:13px!important}
body.vd-duel #game #duelHero,body.vd-duel #game .duel-evolved #duelHero{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 28%!important;animation:none!important;filter:none!important;mask:none!important;transform:none!important}
body.vd-duel #game #heroImage,body.vd-duel #game .duel-evolved #heroImage{opacity:0!important;visibility:hidden!important}
body.vd-duel #game #monsterImage,body.vd-duel #game .field[data-boss=true] #monsterImage{inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 40%!important;mask:none!important;filter:none!important;transform:none!important}
body.vd-duel #game .fighterInfo{left:0!important;right:0!important;bottom:0!important;padding:26px 8px 9px!important;background:linear-gradient(transparent,#06101ae8 48%)!important}
body.vd-duel #game .fighterName{font-size:clamp(16px,2.2vw,26px)!important}
body.vd-duel #game .fighterRole{font-size:10px!important;letter-spacing:.02em!important}
body.vd-duel #game .equipIcons{left:7px!important;bottom:auto!important;top:8px!important;flex-direction:row!important}
body.vd-duel #game .equipIcon{width:26px!important;height:26px!important}
body.vd-duel #game .duel-caption{top:6px;display:flex;align-items:center;justify-content:center;gap:14px}
body.vd-duel #game .duel-caption span,body.vd-duel #game .duel-floor{display:none!important}
body.vd-duel #game .duel-caption b{font-size:16px!important}
body.vd-duel #game .bigTrack{width:100%!important}
body.vd-duel #game #heroAura,body.vd-duel #game #heroGear{opacity:0!important}
.growthNotice{margin-top:7px;color:#ffe6a6;font-weight:800}
#levelUpBanner .lvlGain{font-size:15px!important;line-height:1.55;max-width:90vw}
@media(max-width:620px){
 body.vd-duel #game .hudTop{padding:calc(4px + env(safe-area-inset-top)) 7px 0!important;gap:6px!important}
 body.vd-duel #game .hud{padding:5px 6px!important}
 body.vd-duel #game .hudTitle{font-size:10px!important}
 body.vd-duel #game .field{padding:31px 7px 7px!important;gap:7px!important}
 body.vd-duel #game .fighterWrap{width:calc(50% - 4px)!important}
 body.vd-duel #game .fighterInfo{padding:24px 5px 7px!important}
 body.vd-duel #game .fighterName{font-size:16px!important}
 body.vd-duel #game .fighterRole{font-size:9px!important}
 body.vd-duel #game .duel-caption b{font-size:13px!important}
 body.vd-duel #game .duel-caption i{font-size:9px!important;letter-spacing:.04em}
 body.vd-duel #game .equipIcon{width:23px!important;height:23px!important}
 body.vd-duel #game .question{margin-bottom:calc(5px + env(safe-area-inset-bottom))!important}
}
@media(max-height:650px){body.vd-duel #game .field{padding-top:27px!important}body.vd-duel #game .fighterInfo{padding-top:18px!important}body.vd-duel #game .fighterRole{font-size:8px!important}}

/* v1.9.94: full-resolution portraits, inspectable growth, readable boss arrival. */
body.vd-duel #game #duelHero,body.vd-duel #game .duel-evolved #duelHero{object-position:center 7%!important}
body.vd-duel #game #monsterImage,body.vd-duel #game .field[data-boss=true] #monsterImage{object-position:center 15%!important}
body.vd-duel #game .fighterArt[data-growth="1"]{box-shadow:inset 0 0 0 2px #b6c6d475!important}
body.vd-duel #game .fighterArt[data-growth="2"]{box-shadow:inset 0 0 0 2px #e9be6675!important}
body.vd-duel #game .fighterArt[data-growth="3"]{box-shadow:inset 0 0 0 2px #f3d998,0 0 26px #edc67655!important}
.bossReveal{position:absolute;z-index:15;left:50%;top:35%;translate:-50% -50%;width:min(90%,390px);padding:15px 20px;text-align:center;background:linear-gradient(90deg,transparent,#170e22f2 20%,#170e22f2 80%,transparent);border-block:1px solid #dfb97199;pointer-events:none;opacity:0;color:#fff1cb;display:flex;flex-direction:column;gap:5px}
.bossReveal small{font:700 10px/1.2 system-ui;letter-spacing:.28em;color:#ddb26e}.bossReveal b{font-size:clamp(18px,3vw,26px);letter-spacing:.06em}
.bossArrival .bossReveal{animation:bossReveal 1.6s ease both}
@keyframes bossReveal{0%{opacity:0;translate:-50% -35%}15%,72%{opacity:1;translate:-50% -50%}100%{opacity:0;translate:-50% -60%}}
.growthGallery{z-index:11000!important;align-items:center;justify-content:center;padding:12px;background:#03080eea!important;backdrop-filter:blur(10px)}
.growthGallery.show{display:flex!important}
.growthCard{width:min(100%,550px);max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #b69a6866;border-radius:18px;background:linear-gradient(145deg,#1c2737,#0b1523);box-shadow:0 25px 90px #000a;color:#f9edda;padding:14px}
.growthHeading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}.growthHeading small{font-size:9px;letter-spacing:.2em;color:#ddbd81}.growthHeading h2{font-size:21px;margin:5px 0}.growthGoal{font-size:12px;color:#d2c3a5;margin:0}
.growthClose{width:40px;height:40px;border-radius:50%;border:1px solid #8295af66;background:#23344a;color:#fff;font-size:18px;cursor:pointer;flex:none}
.growthPortrait{position:relative;height:min(59dvh,620px);background:#080f1a;border:1px solid #a8906955;border-radius:10px;overflow:hidden}.growthPortrait img{display:block;width:100%;height:100%;object-fit:contain}.growthPortrait>span{position:absolute;bottom:0;left:0;right:0;padding:22px 10px 10px;text-align:center;font-weight:700;font-size:14px;background:linear-gradient(transparent,#07101bee)}
.growthTabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}.growthTabs button{cursor:pointer;min-height:52px;padding:7px 2px;background:#18283c;border:1px solid #72859e66;border-radius:8px;color:#b7c5d8;display:flex;flex-direction:column;gap:5px;align-items:center}.growthTabs button b{font-size:12px}.growthTabs button span{font-size:10px}.growthTabs button[aria-pressed=true]{border-color:#e5bf74;color:#fff0cb;background:#51432b}.growthTabs button[data-unlocked=true] b{color:#f8d991}.growthHint{font-size:10px;line-height:1.4;text-align:center;color:#a9b5c5;margin:10px 0 0}
.growthGallery button:focus-visible{outline:2px solid #fff0b9;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.bossArrival .bossReveal{animation:none;opacity:1}}

/* v1.9.96: discovery collection stays inside an optional modal. */
.bookGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.bookGrid button{min-width:0;padding:0 0 8px;overflow:hidden;border:1px solid #8e775150;border-radius:10px;background:#142235;color:#f7e6c8;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:5px}
.bookGrid button:disabled{cursor:default;color:#8c9bad;background:#101c2b;opacity:1}
.bookGrid img,.bookUnknown{width:100%;height:118px;object-fit:cover;object-position:center 18%}.bookUnknown{display:grid;place-items:center;font:38px Georgia;color:#7f93ae;background:radial-gradient(ellipse,#26384e,#111c2b)}
.bookGrid b{font-size:11px;line-height:1.3;padding:0 2px}.bookGrid small{font-size:9px;color:#acb9cb}.bookGrid button:focus-visible{outline:2px solid #ffdc92;outline-offset:2px}
.bookDetail{text-align:center}.bookDetail img{width:100%;height:min(45dvh,450px);object-fit:contain;background:#07111e;border-radius:10px}.bookDetail b{display:block;font-size:18px;margin-top:7px}.bookDetail p{font-size:12px;line-height:1.5;color:#c6d1de;margin:7px 0}
.monsterDiscovery{position:absolute;z-index:16;top:32px;left:50%;translate:-50% 0;max-width:90%;padding:7px 12px;border:1px solid #ead29488;border-radius:30px;background:#142b25ee;color:#e2ffbc;font-size:12px;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s}
.monsterDiscovery.show{opacity:1}
@media(max-width:620px){.bookGrid img,.bookUnknown{height:100px}.monsterDiscovery{top:30px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.monsterDiscovery{transition:none}}

.bossCountdown{position:absolute;z-index:20;bottom:8px;left:50%;translate:-50% 0;min-width:130px;padding:8px 16px;border:1px solid #ffb862;border-radius:8px;background:linear-gradient(90deg,#7d311e var(--remaining),#190b12 var(--remaining));color:#fff1cd;font:900 16px/1.2 system-ui;text-align:center;box-shadow:0 0 15px #cc562144;pointer-events:none}
.bossCountdown[hidden]{display:none!important}
#game .field.bossUrgent{box-shadow:inset 0 0 35px #dc1c3455!important}
.bossUrgent .bossCountdown{color:#fff;border-color:#ff617a;animation:bossUrgency .7s ease-in-out infinite}
@keyframes bossUrgency{50%{box-shadow:0 0 18px #ff345799}}
@media(prefers-reduced-motion:reduce){.bossUrgent .bossCountdown{animation:none}}

/* Focused, mobile-readable stage review. */
#v1937RoundReport{z-index:12000!important}
#v1937RoundReport .v1937RoundCard{width:min(800px,96vw)}
#v1937RoundReport .v1937Btns{grid-template-columns:repeat(3,minmax(0,1fr))}
#v1937RoundReport .v1937Btns button{font-size:15px;min-height:52px}
#v1937RoundReport .v1937Btns .danger{grid-column:auto}
.stageTotals{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.stageTotals>div{padding:16px;border:1px solid #e3c47b55;border-radius:14px;text-align:center;background:#122136}
.stageTotals span{display:block;font-size:13px;color:#bacbdf;margin-bottom:9px}
.stageTotals b{display:block;color:#ffe49c;font-size:clamp(17px,3vw,30px);line-height:1.5;overflow-wrap:anywhere}
.stageReviewHeading{font-size:20px;color:#ffe1ba;margin:24px 0 12px}
.stageWrongWords{display:grid;gap:12px}
.stageWrongWords article{padding:18px;border:1px solid #e98a7455;border-radius:12px;background:#582c242e}
.stageWrongWords b{font-size:clamp(25px,5vw,38px);line-height:1.4;color:#fff2e7;overflow-wrap:anywhere}
.stageWrongWords p{font-size:20px;line-height:1.6;margin:7px 0 0;color:#c9d7e8;overflow-wrap:anywhere}
.stagePerfect{text-align:center;padding:28px 10px}
.stagePerfect strong{font-size:clamp(36px,8vw,64px);color:#ffde84;text-shadow:0 0 28px #ffce5644}
.stagePerfect p{font-size:20px;line-height:1.7;color:#deeedf}
@media(max-width:520px){.stageTotals{grid-template-columns:1fr}.stageReviewHeading{font-size:18px}#v1937RoundReport .v1937Btns{grid-template-columns:1fr}.stageWrongWords article{padding:14px}}

/* Card levels stay visible above gear and portrait art. */
#game .cardLevel{position:absolute;top:8px;right:8px;z-index:12;padding:5px 10px;border:1px solid #f5d68f;border-radius:8px;background:#101a2dee;color:#ffe5a0;font:900 16px/1.2 system-ui;box-shadow:0 2px 8px #0008;pointer-events:none}
#game .enemyCardLevel{border-color:#bed4ef;color:#e1edff}
#game .enemyCardLevel[data-boss=true]{border-color:#ff9969;background:#501c1eef;color:#ffe4c6}
@media(max-width:620px){#game .cardLevel{top:6px;right:6px;padding:4px 7px;font-size:14px}}


body #game.screen.thumbBattle .hudTop{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px 58px!important}
#game.screen.thumbBattle #battleHome{grid-column:4!important;grid-row:1!important;display:block!important;min-height:44px!important;width:58px!important;padding:6px 3px!important;font-size:12px!important;line-height:1.25!important;white-space:normal!important}
#homeSaveChoice{z-index:12500}
#homeSaveChoice.show{display:flex;align-items:center;justify-content:center}
.homeSaveCard{width:min(94vw,440px);padding:24px;border-radius:20px}
.homeSaveCard h2{margin:0 0 14px;font-size:25px;color:#ffe6ae}
.homeSaveCard p{font-size:16px;line-height:1.6;color:#c1d2e5}
.homeSaveActions{display:grid;gap:10px;margin-top:20px}
.homeSaveActions button{min-height:50px;font-size:16px}

#game.screen.thumbBattle #btnOptions{grid-column:3!important;grid-row:1!important}

/* v1.9.109: clean level-growth portraits, rarity stays in the equipment colors. */
body.vd-duel #game #heroGear,
body.vd-duel #game #heroAura,
body.vd-duel #game #gradeChip,
body.vd-duel #game .equipIcon .eqGradeBadge{display:none!important}

/* Keep study difficulty distinct from the portrait's combat level. */
body.vd-duel #game.screen.thumbBattle .question .qlabel{display:block!important;font-size:12px!important;font-weight:800!important;letter-spacing:0!important;color:#ffe5a0!important;line-height:1.4!important}

/* Always-visible progress, outside the collapsible HUD metadata. */
#game .duel-caption #battleStageNumber{display:inline-flex!important;align-items:center;justify-content:center;font:800 16px/1.2 Arial,sans-serif!important;letter-spacing:0!important;color:#fff0b8!important;background:#0a1928ed;border:1px solid #e3c47799;border-radius:7px;padding:3px 9px;min-height:24px;box-sizing:border-box;white-space:nowrap;text-shadow:none}
#game .duel-caption #battleStageNumber[data-boss=true]{color:#ffe1c8!important;border-color:#ffad75;background:#382219ed}
@media(max-width:620px){#game .duel-caption{gap:8px!important;top:3px!important}#game .duel-caption #battleStageNumber{font-size:14px!important;padding:3px 7px}}

/* Tablet landscape: reserve controls instead of pushing them below the screen. */
@media(min-width:800px) and (orientation:landscape) and (hover:none) and (pointer:coarse){
 body #setup.active,body #startMenu.active{height:100dvh!important;padding:10px!important;overflow:hidden!important;align-items:stretch!important;justify-content:center!important}
 body #setup .setupWrap{display:flex!important;flex-direction:column!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;margin:0!important;overflow:hidden!important;padding:16px!important}
 body #setup .setupHeader{flex:0 0 auto!important;margin-bottom:10px!important}
 body #setup .setupGrid{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
 body #setup .setupAction{flex:0 0 auto!important;position:relative!important;bottom:auto!important;margin-top:10px!important;padding:8px 0 0!important;background:#101a29!important}
 body #setup .setupAction button{min-height:48px!important}
 body #startMenu .menuCard{display:flex!important;flex-direction:column!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;margin:0!important;padding:16px!important;overflow-y:auto!important}
 body #startMenu .menuLogo{font-size:30px!important;margin:0!important}
 body #startMenu .menuBtns:not(.menuExitActions){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;flex:0 0 auto}
 body #startMenu #btnNewGame,body #startMenu #btnContinue,body #startMenu #btnLoadSlots{grid-column:1/-1!important}
 body #startMenu .menuBtns button{min-height:44px!important;padding:8px!important;font-size:14px!important}
 body #startMenu .menuNote{display:none!important}
 body #startMenu .v1935Hall{flex:1 1 auto!important;min-height:0!important;max-height:100px!important;overflow:auto!important}
 body #startMenu .menuExitActions{flex:0 0 auto!important;margin-top:8px!important}
 body.vd-duel #game.screen.thumbBattle.active{display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;gap:0!important}
 body.vd-duel #game.screen.thumbBattle .hudTop{grid-column:1/-1!important;grid-row:1!important}
 body.vd-duel #game.screen.thumbBattle .field{grid-column:1!important;grid-row:2!important;min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;padding:36px 8px 8px!important;gap:8px!important}
 body.vd-duel #game.screen.thumbBattle .question{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:column!important;align-self:stretch!important;width:auto!important;min-width:0!important;min-height:0!important;margin:8px 8px calc(8px + env(safe-area-inset-bottom)) 0!important;overflow:hidden!important}
 body.vd-duel #game.screen.thumbBattle .qtop{flex:1 1 auto!important;min-height:0!important;align-items:flex-start!important;overflow-y:auto!important;padding-top:6px!important}
 body.vd-duel #game.screen.thumbBattle .qword{font-size:clamp(22px,2.4vw,30px)!important;line-height:1.3!important}
 body.vd-duel #game.screen.thumbBattle .gExplain{flex:0 0 auto!important;max-height:3.9em!important}
 body.vd-duel #game.screen.thumbBattle .answers{flex:0 0 auto!important;min-height:0!important}
 body.vd-duel #game.screen.thumbBattle .answers:not(.chips) .ans{min-height:58px!important;font-size:18px!important;padding:10px 8px!important}
 body.vd-duel #game.screen.thumbBattle .answers.chips{max-height:45%!important;overflow-y:auto!important}
 body.vd-duel #game.screen.thumbBattle .actionRow,body.vd-duel #game.screen.thumbBattle #readingStatus{flex:0 0 auto!important}
}
