
/* cloned from v575-dungeon-battle-clean-final */

/* Last-in-file battle layer. Older V5.72/V5.73/V5.74 helpers may keep the
   canonical runtime hooks alive, but none of their competing UI is visible. */
#v636QuestDungeonCard.v575-combat > .section-title,
#v636QuestDungeonCard.v575-combat > .v572-battle-head,
#v636QuestDungeonCard.v575-combat > .v573-head,
#v636QuestDungeonCard.v575-combat > .v574-head,
#v636QuestDungeonCard.v575-combat > .v572-event-log,
#v636QuestDungeonCard.v575-combat > .v573-event-log,
#v636QuestDungeonCard.v575-combat > .v574-log,
#v636QuestDungeonCard.v575-combat > #battleLog{display:none!important}
#v636QuestDungeonCard.v575-combat .v252-battle-fog,
#v636QuestDungeonCard.v575-combat .v252-battle-vs,
#v636QuestDungeonCard.v575-combat .v252-round-chip,
#v636QuestDungeonCard.v575-combat .v572-vs,
#v636QuestDungeonCard.v575-combat .v572-fx-layer,
#v636QuestDungeonCard.v575-combat .v573-arena-title,
#v636QuestDungeonCard.v575-combat .v573-round,
#v636QuestDungeonCard.v575-combat .v573-proc-strip,
#v636QuestDungeonCard.v575-combat .v574-stage-title,
#v636QuestDungeonCard.v575-combat .v574-round,
#v636QuestDungeonCard.v575-combat .v574-proc-strip,
#v636QuestDungeonCard.v575-combat .v573-enemy-art,
#v636QuestDungeonCard.v575-combat .v574-enemy-art{display:none!important}

#v636QuestDungeonCard.v575-combat{
  padding:9px!important;border:1px solid #76512e!important;border-radius:18px!important;
  background:linear-gradient(180deg,#07110a,#020604)!important;
  box-shadow:0 16px 42px #000c,inset 0 0 32px #0008!important;
}
.v575-head{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;
  margin:0 0 8px;padding:9px 10px;border:1px solid #76522f;border-radius:13px;
  background:linear-gradient(180deg,#2d1b10,#0c0906);box-shadow:inset 0 0 17px #0008,0 5px 14px #0007;
}
.v575-head-main{min-width:0}.v575-kicker{font:1000 7px/1 Arial,sans-serif;letter-spacing:.14em;color:#7de765;text-transform:uppercase}
.v575-title{display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f0d28d;font:1000 13px/1.08 Georgia,serif}
.v575-recommend{padding:7px 9px;border:1px solid #4e703d;border-radius:999px;background:#061109;color:#91eb74;font-size:6.8px;font-weight:1000;white-space:nowrap}

#v636QuestDungeonCard.v575-combat .battle-stage{
  position:relative!important;height:405px!important;margin:0!important;overflow:hidden!important;
  border:1px solid #755230!important;border-radius:16px!important;
  background-color:#06100a!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
  box-shadow:inset 0 0 70px #000e,0 8px 21px #000a!important;
}
#v636QuestDungeonCard.v575-combat .battle-stage:before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;
  background:
    linear-gradient(180deg,rgba(2,6,4,.08) 0%,rgba(2,6,4,.02) 28%,rgba(1,4,2,.16) 62%,rgba(1,4,2,.90) 100%),
    linear-gradient(90deg,rgba(0,0,0,.24),transparent 24%,transparent 76%,rgba(0,0,0,.24))!important;
}
#v636QuestDungeonCard.v575-combat .battle-stage:after{display:none!important}
.v575-stage-title{position:absolute;z-index:25;left:50%;top:12px;transform:translateX(-50%);padding:6px 13px;border:1px solid #795a36;border-radius:999px;background:#040806e9;color:#ead08c;font:1000 7px/1 Arial,sans-serif;letter-spacing:.11em;white-space:nowrap;box-shadow:0 4px 13px #000a}
.v575-round{position:absolute;z-index:26;left:50%;top:45px;transform:translateX(-50%);min-width:74px;padding:5px 10px;border:1px solid #45643f;border-radius:999px;background:#07100ae9;color:#c1d9bd;font-size:6.5px;font-weight:1000;text-align:center;white-space:nowrap}
.v575-proc-strip{position:absolute;z-index:40;left:4%;right:4%;top:74px;display:flex;justify-content:center;gap:5px;flex-wrap:wrap;pointer-events:none;min-height:22px}
.v575-chip{padding:4px 8px;border:1px solid #84643a;border-radius:999px;background:#040706ed;color:#f4e1a7;font-size:6px;font-weight:1000;letter-spacing:.03em;box-shadow:0 0 14px #000a;animation:v575Chip 1.18s ease forwards}
.v575-chip.crit{color:#ffe477;border-color:#dca638}.v575-chip.wucht{color:#ffb461;border-color:#c97430}.v575-chip.rage{color:#9cff78;border-color:#59c44c}.v575-chip.dodge{color:#a9dcff;border-color:#5ba8d8}.v575-chip.guard{color:#baeaff;border-color:#6da6c7}.v575-chip.magic{color:#e4a5ff;border-color:#a653cf}.v575-chip.frost{color:#a3efff;border-color:#50c8df}.v575-chip.heal{color:#82ff8b;border-color:#4bc457}
@keyframes v575Chip{0%{opacity:0;transform:translateY(7px) scale(.82)}15%{opacity:1;transform:translateY(0) scale(1.05)}72%{opacity:1}100%{opacity:0;transform:translateY(-9px) scale(.97)}}

/* No permanent rings/radar graphics. Protection/heal feedback is rendered as
   short effect chips and fighter flashes instead. */
#v636QuestDungeonCard.v575-combat .v252-aura,
#v636QuestDungeonCard.v575-combat .v252-class-mark{display:none!important}
#v636QuestDungeonCard.v575-combat .v252-shadow{opacity:.62!important;width:96px!important;height:18px!important;bottom:45px!important}

#v636QuestDungeonCard.v575-combat .fighter{z-index:10!important;bottom:31px!important;width:48%!important}
#v636QuestDungeonCard.v575-combat .fighter.player{left:1%!important}#v636QuestDungeonCard.v575-combat .fighter.enemy-side{right:1%!important}
#v636QuestDungeonCard.v575-combat .v252-fighter-shell{min-height:304px!important;justify-content:flex-end!important}
#v636QuestDungeonCard.v575-combat .fighter-avatar{width:178px!important;height:232px!important;margin:0 auto -3px!important;overflow:visible!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;filter:drop-shadow(0 16px 11px #000e)!important;background:none!important}
#v636QuestDungeonCard.v575-combat .v253-player-avatar-img{
  width:174px!important;height:228px!important;display:block!important;object-fit:cover!important;object-position:center 22%!important;border:0!important;border-radius:0!important;
  filter:drop-shadow(0 13px 9px #000d)!important;
  -webkit-mask-image:radial-gradient(ellipse 65% 83% at 50% 48%,#000 0 52%,rgba(0,0,0,.94) 65%,rgba(0,0,0,.55) 77%,transparent 94%)!important;
  mask-image:radial-gradient(ellipse 65% 83% at 50% 48%,#000 0 52%,rgba(0,0,0,.94) 65%,rgba(0,0,0,.55) 77%,transparent 94%)!important;
}
#v636QuestDungeonCard.v575-combat .v253-monster{width:176px!important;height:222px!important;display:block!important;filter:drop-shadow(0 15px 10px #000e)!important}
#v636QuestDungeonCard.v575-combat .v253-equipped-weapon{z-index:16!important;right:2px!important;top:76px!important;transform:rotate(-18deg) scale(.95)!important}
#v636QuestDungeonCard.v575-combat .v253-equipped-weapon:after{display:none!important}
#v636QuestDungeonCard.v575-combat .fighter-name{width:96%!important;margin:0 auto!important;padding:7px 6px 5px!important;border:1px solid #73502f!important;border-radius:9px 9px 0 0!important;background:#030705f0!important;color:#f2eee2!important;font-size:7.4px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#v636QuestDungeonCard.v575-combat .hpbar{width:96%!important;height:17px!important;margin:0 auto!important;border:1px solid #70443b!important;border-radius:0 0 9px 9px!important;background:#230707!important}
#v636QuestDungeonCard.v575-combat .fighter .tiny{margin-top:4px!important;color:#ddd7c8!important;font-size:7.2px!important;font-weight:1000!important}
#v636QuestDungeonCard.v575-combat .damage{top:152px!important;z-index:42!important;font-size:26px!important;padding:3px 8px!important;border-radius:8px!important;background:#050505b8!important}
#v636QuestDungeonCard.v575-combat .damage.left{left:11%!important}#v636QuestDungeonCard.v575-combat .damage.right{right:11%!important}

.v575-log{margin:9px 0;padding:9px 10px;border:1px solid #68492d;border-radius:12px;background:linear-gradient(180deg,#08110a,#030705);box-shadow:inset 0 0 16px #0008}
.v575-log-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:5px;border-bottom:1px solid #203022;color:#e5c67d;font-size:7px;font-weight:1000;letter-spacing:.04em}
.v575-log-title small{color:#7d897f;font-size:5.8px;font-weight:800}
.v575-log-line{display:grid;grid-template-columns:auto 1fr;gap:7px;padding:5px 0;border-top:1px solid #18281c;color:#b8c1b7;font-size:6.8px;line-height:1.32}.v575-log-line:first-child{border-top:0}.v575-log-line b{color:#86e36b;white-space:nowrap}.v575-log-line.crit span{color:#f0d372}.v575-log-line.dodge span{color:#9fd5f4}.v575-log-line.guard span{color:#a9d8ed}.v575-log-line.heal span{color:#86e98c}.v575-log-line.magic span{color:#d7a3ef}.v575-log-line.frost span{color:#a0e4f1}

#v636QuestDungeonCard.v575-combat.v575-heal-player #v636QuestPlayerFighter{filter:drop-shadow(0 0 14px rgba(91,255,105,.7))!important}
#v636QuestDungeonCard.v575-combat.v575-guard-player #v636QuestPlayerFighter{filter:drop-shadow(0 0 14px rgba(132,219,255,.62))!important}
#v636QuestDungeonCard.v575-combat.v575-magic-enemy #v636QuestEnemyFighter{filter:drop-shadow(0 0 15px rgba(205,101,255,.62))!important}
#v636QuestDungeonCard.v575-combat.v575-frost-enemy #v636QuestEnemyFighter{filter:drop-shadow(0 0 15px rgba(105,225,255,.65))!important}

@media(max-width:560px){
 .v575-head{padding:8px 9px}.v575-title{font-size:11px}.v575-recommend{font-size:6px;padding:6px 7px}
 #v636QuestDungeonCard.v575-combat .battle-stage{height:382px!important}
 #v636QuestDungeonCard.v575-combat .v252-fighter-shell{min-height:284px!important}
 #v636QuestDungeonCard.v575-combat .fighter-avatar{width:154px!important;height:210px!important}
 #v636QuestDungeonCard.v575-combat .v253-player-avatar-img{width:151px!important;height:207px!important}
 #v636QuestDungeonCard.v575-combat .v253-monster{width:154px!important;height:202px!important}
 #v636QuestDungeonCard.v575-combat .damage{top:148px!important;font-size:23px!important}
 .v575-proc-strip{top:73px}.v575-chip{font-size:5.5px;padding:4px 6px}
}

/* cloned from v577-dungeon-battle-render-cleanup-css */

/* Remove the legacy equipped-weapon overlay that can remain centered over the
   portrait after an attack animation. The actual character artwork stays. */
#v636QuestDungeonCard.v575-combat .v253-equipped-weapon,
#v636QuestDungeonCard.v575-combat .v253-weapon-trail,
#v636QuestDungeonCard.v575-combat .v252-weapon{
  display:none!important;
  opacity:0!important;
  visibility:hidden!important;
  animation:none!important;
}

/* Long dungeon names must be readable instead of ending in an ellipsis. */
#v636QuestDungeonCard.v575-combat .v575-title{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
  max-height:2.25em!important;
  line-height:1.08!important;
}
#v636QuestDungeonCard.v575-combat .v575-head-main{min-width:0!important;overflow:hidden!important}

/* Explicit result state: the round chip no longer looks like an active round
   after the fight has already ended. */
#v636QuestDungeonCard.v575-combat.v577-defeat .v575-round{
  color:#ff9c98!important;
  border-color:#8f4545!important;
  background:#240809ee!important;
  box-shadow:0 0 16px rgba(211,65,65,.16)!important;
}
#v636QuestDungeonCard.v575-combat.v577-victory .v575-round{
  color:#9dff8b!important;
  border-color:#4b8a43!important;
  background:#071b08ee!important;
  box-shadow:0 0 16px rgba(85,220,72,.18)!important;
}
#v636QuestDungeonCard.v575-combat.v577-defeat .battle-stage{
  box-shadow:inset 0 0 76px #000f,0 8px 21px #000a!important;
}
#v636QuestDungeonCard.v575-combat.v577-victory .battle-stage{
  box-shadow:inset 0 0 64px #000d,0 0 22px rgba(84,210,75,.14)!important;
}

@media(max-width:560px){
  #v636QuestDungeonCard.v575-combat .v575-title{font-size:10.4px!important;max-height:2.35em!important}
  #v636QuestDungeonCard.v575-combat .v575-head{align-items:start!important}
}

/* cloned from v600-clean-template-stage-css */

#v636QuestDungeonCard.v599-clean .v599-template-bg{display:none!important}
#v636QuestDungeonCard.v599-clean .battle-stage{
  height:474px!important;background:#07100b!important;background-image:none!important;
  box-shadow:inset 0 0 95px rgba(0,0,0,.58),0 12px 28px rgba(0,0,0,.58)!important;
}
#v636QuestDungeonCard.v599-clean .battle-stage:before{
  background:
    radial-gradient(circle at 50% 44%,rgba(112,230,85,.10),transparent 20%),
    linear-gradient(180deg,rgba(1,6,3,.02),rgba(1,6,3,.02) 42%,rgba(1,4,2,.18) 70%,rgba(1,4,2,.72) 100%)!important;
}
#v636QuestDungeonCard.v599-clean .v600-bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:url("assets/v7195-base64/c43c0f746c3b3cbd8fda.webp");
  background-size:cover;background-position:center center;background-repeat:no-repeat;
  opacity:.98;filter:saturate(1.08) contrast(1.03) brightness(.88);
}
#v636QuestDungeonCard.v599-clean .v600-bg:after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(3,11,7,.08),rgba(2,8,5,.02) 44%,rgba(2,7,4,.14) 68%,rgba(1,4,2,.48) 100%);
}
#v636QuestDungeonCard.v599-clean .fighter{width:42%!important;bottom:31px!important}
#v636QuestDungeonCard.v599-clean .fighter.player{left:3.2%!important}
#v636QuestDungeonCard.v599-clean .fighter.enemy-side{right:3.2%!important}
#v636QuestDungeonCard.v599-clean .fighter-avatar{width:184px!important;height:248px!important}
#v636QuestDungeonCard.v599-clean #v636QuestPlayerFighter.v600-barbar .v253-player-avatar-img{display:none!important}
#v636QuestDungeonCard.v599-clean .v600-barbar-art{
  position:relative;z-index:3;width:190px;height:244px;object-fit:contain;object-position:center bottom;
  filter:drop-shadow(0 18px 14px rgba(0,0,0,.92)) drop-shadow(0 0 12px rgba(119,222,82,.10));pointer-events:none;
}
#v636QuestDungeonCard.v599-clean #v636QuestEnemyFighter.v600-treant .v253-monster{display:none!important}
#v636QuestDungeonCard.v599-clean .v600-treant-art{
  position:relative;z-index:3;width:190px;height:242px;object-fit:contain;object-position:center bottom;
  filter:drop-shadow(0 18px 14px rgba(0,0,0,.92)) drop-shadow(0 0 15px rgba(101,230,78,.18));pointer-events:none;
}
#v636QuestDungeonCard.v599-clean .fighter-name{width:96%!important;font-size:7.05px!important}
#v636QuestDungeonCard.v599-clean .hpbar{width:96%!important}
#v636QuestDungeonCard.v599-clean .battle-stage:after{top:55%!important;width:52px!important;height:52px!important}
#v636QuestDungeonCard.v599-clean .damage{top:145px!important}
#v636QuestDungeonCard.v599-clean .damage.left{left:8%!important}
#v636QuestDungeonCard.v599-clean .damage.right{right:8%!important}
@media(max-width:560px){
  #v636QuestDungeonCard.v599-clean .battle-stage{height:414px!important}
  #v636QuestDungeonCard.v599-clean .fighter{width:42%!important;bottom:27px!important}
  #v636QuestDungeonCard.v599-clean .fighter.player{left:3%!important}
  #v636QuestDungeonCard.v599-clean .fighter.enemy-side{right:3%!important}
  #v636QuestDungeonCard.v599-clean .fighter-avatar{width:154px!important;height:207px!important}
  #v636QuestDungeonCard.v599-clean .v600-barbar-art{width:158px!important;height:203px!important}
  #v636QuestDungeonCard.v599-clean .v600-treant-art{width:158px!important;height:201px!important}
  #v636QuestDungeonCard.v599-clean .fighter-name{font-size:6.45px!important;width:97%!important}
  #v636QuestDungeonCard.v599-clean .hpbar{width:97%!important}
}

/* cloned from v601-final-template-polish-css */

/* Final visual-only pass. No combat logic, timers, rewards or fight handlers touched. */
#v636QuestDungeonCard.v599-clean{
  border:2px solid #8d6838!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#08110a 0%,#030705 100%)!important;
  box-shadow:0 22px 46px rgba(0,0,0,.78),inset 0 0 0 1px rgba(63,93,49,.55),inset 0 0 34px rgba(0,0,0,.65)!important;
}

/* Header: stronger resemblance to the approved fantasy panel. */
#v636QuestDungeonCard.v599-clean .v575-head{
  position:relative!important;
  min-height:74px!important;
  padding:13px 13px 12px 78px!important;
  border:2px solid #865e31!important;
  border-radius:18px!important;
  background:
    radial-gradient(circle at 18% 50%,rgba(70,143,49,.11),transparent 25%),
    linear-gradient(180deg,#2c180f 0%,#130b07 72%,#090604 100%)!important;
  box-shadow:inset 0 1px rgba(255,222,154,.13),0 7px 18px rgba(0,0,0,.54)!important;
}
#v636QuestDungeonCard.v599-clean .v575-head:before{
  content:"🌿";
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  width:50px;height:50px;display:grid;place-items:center;
  border:2px solid #a67734;border-radius:50%;
  background:radial-gradient(circle,#19331c 0%,#0a130b 72%,#050705 100%);
  font-size:24px;filter:drop-shadow(0 2px 2px #000);
  box-shadow:0 0 0 3px rgba(168,119,52,.12),inset 0 0 14px rgba(0,0,0,.8),0 0 12px rgba(79,199,66,.10);
}
#v636QuestDungeonCard.v599-clean .v575-kicker{
  color:#83ef70!important;font-size:7.4px!important;letter-spacing:.17em!important;text-shadow:0 2px 2px #000!important;
}
#v636QuestDungeonCard.v599-clean .v575-title{
  color:#f5d99d!important;font-size:14px!important;line-height:1.03!important;white-space:normal!important;
  text-shadow:0 2px 2px #000,0 0 12px rgba(255,188,75,.06)!important;
}
#v636QuestDungeonCard.v599-clean .v575-recommend{
  padding:9px 12px!important;border:1px solid #4d843d!important;border-radius:999px!important;
  background:linear-gradient(180deg,#112416,#071209)!important;color:#b5ff9d!important;font-size:7px!important;
  box-shadow:inset 0 0 14px rgba(83,224,69,.10),0 0 11px rgba(62,185,49,.09)!important;
}

/* Arena background and atmosphere. */
#v636QuestDungeonCard.v599-clean .battle-stage{
  height:486px!important;
  border:2px solid #8b6234!important;border-radius:20px!important;
  overflow:hidden!important;
  box-shadow:inset 0 0 118px rgba(0,0,0,.74),inset 0 -65px 85px rgba(0,0,0,.44),0 12px 26px rgba(0,0,0,.58)!important;
}
#v636QuestDungeonCard.v599-clean .v600-bg{
  opacity:1!important;
  filter:saturate(1.18) contrast(1.08) brightness(.99)!important;
  background-position:center 44%!important;
}
#v636QuestDungeonCard.v599-clean .v600-bg:before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(circle at 4% 28%,rgba(255,183,65,.25),transparent 8%),
    radial-gradient(circle at 96% 28%,rgba(255,183,65,.25),transparent 8%),
    radial-gradient(circle at 7% 78%,rgba(255,167,48,.15),transparent 8%),
    radial-gradient(circle at 93% 78%,rgba(255,167,48,.15),transparent 8%),
    radial-gradient(ellipse at 50% 50%,rgba(77,196,67,.10),transparent 34%);
  mix-blend-mode:screen;opacity:.85;
}
#v636QuestDungeonCard.v599-clean .v600-bg:after{
  background:
    linear-gradient(90deg,rgba(0,0,0,.28),transparent 16%,transparent 84%,rgba(0,0,0,.28)),
    linear-gradient(180deg,rgba(2,7,4,.02),rgba(2,7,4,.02) 44%,rgba(1,5,3,.10) 67%,rgba(1,4,2,.53) 100%)!important;
}

/* Ornate duel header inside the arena. */
#v636QuestDungeonCard.v599-clean .v575-stage-title{
  top:16px!important;min-width:220px!important;padding:11px 26px!important;
  border:2px solid #956a35!important;border-radius:10px!important;
  clip-path:polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%)!important;
  background:linear-gradient(180deg,#2c1b0f 0%,#120d08 67%,#070805 100%)!important;
  color:#f4d18c!important;font:1000 11px/1 Georgia,serif!important;letter-spacing:.10em!important;
  text-shadow:0 2px 2px #000!important;
  box-shadow:0 8px 16px rgba(0,0,0,.55),inset 0 0 14px rgba(255,205,110,.06)!important;
}
#v636QuestDungeonCard.v599-clean .v575-stage-title:before{
  content:"✦";margin-right:8px;color:#d8ad54;text-shadow:0 0 8px rgba(220,166,62,.45);
}
#v636QuestDungeonCard.v599-clean .v575-round{
  top:64px!important;min-width:116px!important;padding:9px 18px!important;
  border:2px solid #a44042!important;border-radius:999px!important;
  background:linear-gradient(180deg,#7b171c 0%,#3b0b0d 100%)!important;
  color:#ffe7c7!important;font-size:8px!important;font-weight:1000!important;
  box-shadow:0 0 16px rgba(158,31,35,.18),inset 0 1px rgba(255,183,170,.10)!important;
}
#v636QuestDungeonCard.v599-clean .v575-proc-strip{top:108px!important;left:20%!important;right:20%!important;z-index:26!important}
#v636QuestDungeonCard.v599-clean .v575-chip{
  padding:7px 14px!important;border:2px solid #55d84e!important;border-radius:999px!important;
  background:linear-gradient(180deg,#102115f5,#030704f5)!important;color:#a5ff91!important;
  font-size:6.3px!important;letter-spacing:.03em!important;
  box-shadow:0 0 16px rgba(71,213,63,.13),inset 0 0 12px rgba(255,255,255,.03)!important;
}

/* Fighters: slightly more separation, lower baseline and environmental integration. */
#v636QuestDungeonCard.v599-clean .fighter{width:42.5%!important;bottom:34px!important}
#v636QuestDungeonCard.v599-clean .fighter.player{left:2.2%!important}
#v636QuestDungeonCard.v599-clean .fighter.enemy-side{right:2.2%!important}
#v636QuestDungeonCard.v599-clean .v252-fighter-shell{min-height:350px!important;justify-content:flex-end!important}
#v636QuestDungeonCard.v599-clean .fighter-avatar{
  width:194px!important;height:268px!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;
}
#v636QuestDungeonCard.v599-clean .fighter-avatar:before{
  content:""!important;position:absolute!important;left:50%!important;bottom:5px!important;transform:translateX(-50%)!important;
  width:154px!important;height:34px!important;border-radius:50%!important;
  background:radial-gradient(ellipse,rgba(0,0,0,.72),rgba(0,0,0,.10) 68%,transparent 73%)!important;
  filter:blur(1px)!important;z-index:1!important;
}
#v636QuestDungeonCard.v599-clean .v600-barbar-art{
  width:198px!important;height:260px!important;object-fit:contain!important;object-position:center bottom!important;
  filter:drop-shadow(0 19px 15px rgba(0,0,0,.96)) drop-shadow(0 0 13px rgba(243,175,72,.08))!important;
}
#v636QuestDungeonCard.v599-clean .v600-treant-art{
  width:198px!important;height:258px!important;object-fit:contain!important;object-position:center bottom!important;
  filter:drop-shadow(0 19px 15px rgba(0,0,0,.96)) drop-shadow(0 0 17px rgba(91,232,77,.20))!important;
}
#v636QuestDungeonCard.v599-clean #v636QuestEnemyFighter.v600-treant .fighter-avatar:after{
  content:"";position:absolute;inset:16% 1% 9% 1%;z-index:1;pointer-events:none;border-radius:48%;
  background:radial-gradient(ellipse at center,rgba(89,227,77,.20),rgba(61,145,48,.06) 48%,transparent 73%);
  filter:blur(3px);
}
#v636QuestDungeonCard.v599-clean .v600-barbar-art,
#v636QuestDungeonCard.v599-clean .v600-treant-art{position:relative!important;z-index:3!important}

/* VS medallion: closer to the approved size and ornamentation. */
#v636QuestDungeonCard.v599-clean .battle-stage:after{
  top:57%!important;width:48px!important;height:48px!important;
  border:2px solid #c08a3e!important;
  background:radial-gradient(circle,#30220f 0%,#120d08 67%,#050704 100%)!important;
  color:#ffd86d!important;font:1000 20px/1 Georgia,serif!important;
  box-shadow:0 0 0 3px rgba(192,138,62,.12),0 0 20px rgba(239,157,47,.20),inset 0 0 15px rgba(0,0,0,.85)!important;
}

/* Name/HP plates emulate the black-gold template cards. */
#v636QuestDungeonCard.v599-clean .fighter-name{
  width:94%!important;margin:5px auto 0!important;padding:9px 7px 7px!important;
  border:2px solid #916438!important;border-radius:11px 11px 0 0!important;
  background:linear-gradient(180deg,#09100bfa,#030604fa)!important;color:#f4efe1!important;
  font-size:7.3px!important;letter-spacing:.01em!important;
  box-shadow:0 7px 14px rgba(0,0,0,.35),inset 0 1px rgba(255,221,154,.05)!important;
}
#v636QuestDungeonCard.v599-clean .hpbar{
  width:94%!important;height:19px!important;margin:0 auto!important;
  border:2px solid #88504a!important;border-radius:0 0 11px 11px!important;background:#310b0b!important;
  box-shadow:inset 0 2px 5px rgba(0,0,0,.78)!important;
}
#v636QuestDungeonCard.v599-clean .hpfill{
  background:linear-gradient(90deg,#e74742 0%,#ff6757 63%,#ff9a68 100%)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.18),0 0 9px rgba(239,88,69,.12)!important;
}
#v636QuestDungeonCard.v599-clean .fighter .tiny{margin-top:7px!important;font-size:7.9px!important;color:#f3ead7!important;text-shadow:0 2px 2px #000!important}

/* Damage and impact. */
#v636QuestDungeonCard.v599-clean .damage{top:154px!important;font-size:40px!important;font-weight:1000!important;z-index:28!important}
#v636QuestDungeonCard.v599-clean .damage.v252-crit{font-size:47px!important;color:#ffd85c!important;text-shadow:0 0 13px #f2a333,0 3px 5px #000!important}
#v636QuestDungeonCard.v599-clean .damage.left{left:7%!important;color:#ff7667!important}
#v636QuestDungeonCard.v599-clean .damage.right{right:7%!important;color:#ffc34f!important}

/* Battle log closer to template: badge per round + more breathing room. */
#v636QuestDungeonCard.v599-clean .v575-log{
  margin:12px 0!important;padding:12px 13px!important;border:2px solid #805a31!important;border-radius:15px!important;
  background:linear-gradient(180deg,#09130b 0%,#030705 100%)!important;
  box-shadow:inset 0 0 22px rgba(0,0,0,.65),0 7px 16px rgba(0,0,0,.42)!important;
}
#v636QuestDungeonCard.v599-clean .v575-log-title{font-size:7.6px!important;color:#f1ce83!important;padding-bottom:6px!important;border-bottom:1px solid rgba(99,130,82,.40)!important}
#v636QuestDungeonCard.v599-clean .v575-log-line{
  display:grid!important;grid-template-columns:42px 1fr!important;align-items:center!important;gap:8px!important;
  padding:7px 0!important;font-size:7.5px!important;border-bottom:1px solid rgba(79,105,69,.32)!important;
}
#v636QuestDungeonCard.v599-clean .v575-log-line:last-child{border-bottom:0!important}
#v636QuestDungeonCard.v599-clean .v575-log-line b{
  display:grid!important;place-items:center!important;min-height:22px!important;border:1px solid #4e8e3f!important;border-radius:999px!important;
  background:#0a180c!important;color:#9af27d!important;font-size:6.8px!important;box-shadow:inset 0 0 8px rgba(65,187,51,.08)!important;
}
#v636QuestDungeonCard.v599-clean .v575-log-line.crit span{color:#f4d27a!important}
#v636QuestDungeonCard.v599-clean .v575-log-line.rage span{color:#7ee779!important}
#v636QuestDungeonCard.v599-clean .v575-log-line.wucht span{color:#ddd7c7!important}

/* Countdown + main action button. */
#v636QuestDungeonCard.v599-clean #v324DungeonCountdown{
  margin-top:10px!important;padding:13px 15px!important;border:2px solid #896336!important;border-radius:14px!important;
  background:linear-gradient(180deg,#21160d 0%,#0b0b07 100%)!important;color:#f4d48d!important;font-size:8px!important;
  box-shadow:inset 0 0 15px rgba(0,0,0,.58),0 7px 15px rgba(0,0,0,.38)!important;
}
#v636QuestDungeonCard.v599-clean #fightBtn{
  position:relative!important;min-height:64px!important;margin-top:11px!important;
  border:3px solid #82df61!important;border-radius:15px!important;
  background:linear-gradient(180deg,#79df61 0%,#45b83c 51%,#287f2b 100%)!important;
  color:#071208!important;font-size:12px!important;font-weight:1000!important;letter-spacing:.025em!important;
  box-shadow:inset 0 1px rgba(226,255,207,.80),inset 0 -5px 11px rgba(5,63,9,.24),0 0 0 3px rgba(159,116,55,.40),0 8px 18px rgba(0,0,0,.50)!important;
}
#v636QuestDungeonCard.v599-clean.v252-fighting #fightBtn:after{
  content:""!important;display:inline-block!important;width:17px!important;height:17px!important;margin-left:12px!important;vertical-align:-3px!important;
  border:3px solid rgba(5,46,7,.28)!important;border-top-color:#123f13!important;border-radius:50%!important;
  animation:v601Spin .85s linear infinite!important;
}
@keyframes v601Spin{to{transform:rotate(360deg)}}

@media(max-width:560px){
  #v636QuestDungeonCard.v599-clean .v575-head{min-height:68px!important;padding:11px 10px 10px 66px!important}
  #v636QuestDungeonCard.v599-clean .v575-head:before{left:11px;width:43px;height:43px;font-size:20px}
  #v636QuestDungeonCard.v599-clean .v575-title{font-size:11.8px!important}
  #v636QuestDungeonCard.v599-clean .v575-recommend{font-size:6.3px!important;padding:7px 9px!important}
  #v636QuestDungeonCard.v599-clean .battle-stage{height:425px!important}
  #v636QuestDungeonCard.v599-clean .v575-stage-title{top:14px!important;min-width:184px!important;padding:9px 19px!important;font-size:8.4px!important}
  #v636QuestDungeonCard.v599-clean .v575-round{top:57px!important;min-width:98px!important;padding:8px 13px!important;font-size:7.1px!important}
  #v636QuestDungeonCard.v599-clean .v575-proc-strip{top:96px!important;left:15%!important;right:15%!important}
  #v636QuestDungeonCard.v599-clean .fighter{width:43%!important;bottom:27px!important}
  #v636QuestDungeonCard.v599-clean .fighter.player{left:2%!important}
  #v636QuestDungeonCard.v599-clean .fighter.enemy-side{right:2%!important}
  #v636QuestDungeonCard.v599-clean .v252-fighter-shell{min-height:305px!important}
  #v636QuestDungeonCard.v599-clean .fighter-avatar{width:160px!important;height:216px!important}
  #v636QuestDungeonCard.v599-clean .v600-barbar-art{width:165px!important;height:211px!important}
  #v636QuestDungeonCard.v599-clean .v600-treant-art{width:165px!important;height:209px!important}
  #v636QuestDungeonCard.v599-clean .battle-stage:after{top:56%!important;width:44px!important;height:44px!important;font-size:17px!important}
  #v636QuestDungeonCard.v599-clean .fighter-name{width:96%!important;font-size:6.55px!important;padding:8px 5px 6px!important}
  #v636QuestDungeonCard.v599-clean .hpbar{width:96%!important;height:17px!important}
  #v636QuestDungeonCard.v599-clean .fighter .tiny{font-size:7.05px!important;margin-top:5px!important}
  #v636QuestDungeonCard.v599-clean .damage{top:135px!important;font-size:34px!important}
  #v636QuestDungeonCard.v599-clean .damage.v252-crit{font-size:39px!important}
  #v636QuestDungeonCard.v599-clean .v575-log-line{grid-template-columns:36px 1fr!important;gap:6px!important;font-size:6.8px!important;padding:6px 0!important}
  #v636QuestDungeonCard.v599-clean .v575-log-line b{min-height:20px!important;font-size:6.2px!important}
  #v636QuestDungeonCard.v599-clean #v324DungeonCountdown{font-size:7.2px!important;padding:11px 10px!important}
  #v636QuestDungeonCard.v599-clean #fightBtn{min-height:58px!important;font-size:11px!important}
}

/* cloned from v602-template-rebuild-css */

#v636QuestDungeonCard.v599-clean{
  border:2px solid #8f6738!important;border-radius:22px!important;
  background:linear-gradient(180deg,#0b130d 0%,#030604 100%)!important;
  box-shadow:0 22px 58px rgba(0,0,0,.84),inset 0 0 0 1px rgba(72,95,52,.60)!important;
  overflow:hidden!important;
}
#v636QuestDungeonCard.v599-clean .v575-head{
  position:relative!important;min-height:86px!important;padding:14px 12px 13px 92px!important;
  border:2px solid #8f6234!important;border-radius:16px!important;
  background:linear-gradient(180deg,#20160e 0%,#0a0a07 100%)!important;
  box-shadow:inset 0 1px rgba(255,223,158,.10),0 8px 20px rgba(0,0,0,.55)!important;
}
#v636QuestDungeonCard.v599-clean .v575-head:before{
  content:""!important;position:absolute!important;left:12px!important;top:50%!important;transform:translateY(-50%)!important;
  width:68px!important;height:68px!important;background:url("assets/v7195-base64/ee590d89d9edc04f45b8.webp") center/contain no-repeat!important;
  filter:drop-shadow(0 6px 8px rgba(0,0,0,.65));
}
#v636QuestDungeonCard.v599-clean .v575-kicker{font-size:7.6px!important;letter-spacing:.18em!important;color:#79ee63!important}
#v636QuestDungeonCard.v599-clean .v575-title{font-size:15px!important;line-height:1.03!important;color:#f4d99d!important;max-width:66%!important}
#v636QuestDungeonCard.v599-clean .v575-recommend{font-size:7.2px!important;padding:9px 12px!important;border:2px solid #4f9a47!important;background:#0d1b10!important;color:#b6ff9c!important}

#v636QuestDungeonCard.v599-clean .battle-stage{
  height:548px!important;border:2px solid #8b6338!important;border-radius:18px!important;overflow:hidden!important;
  background:#07110c!important;background-image:none!important;
  box-shadow:inset 0 0 90px rgba(0,0,0,.34),0 12px 28px rgba(0,0,0,.55)!important;
}
#v636QuestDungeonCard.v599-clean .v600-bg{
  position:absolute!important;inset:0!important;z-index:0!important;
  background-image:url("assets/v7195-base64/c43c0f746c3b3cbd8fda.webp")!important;
  background-size:cover!important;background-position:center 46%!important;
  filter:brightness(1.24) saturate(1.28) contrast(1.06)!important;opacity:1!important;
}
#v636QuestDungeonCard.v599-clean .v600-bg:before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 50% 42%,rgba(102,222,83,.15),transparent 22%),linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.08) 48%,rgba(0,0,0,.38) 78%,rgba(0,0,0,.72) 100%);
}
#v636QuestDungeonCard.v599-clean .v600-bg:after{
  content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.33),transparent 18%,transparent 82%,rgba(0,0,0,.33));
}
#v636QuestDungeonCard.v599-clean .v602-side-decor{position:absolute;top:0;width:78px;height:270px;z-index:2;pointer-events:none;opacity:.92;filter:drop-shadow(0 5px 12px rgba(0,0,0,.7))}
#v636QuestDungeonCard.v599-clean .v602-side-decor.left{left:0;background:url("assets/v7195-base64/1e3175a34487bb55827c.webp") left top/cover no-repeat}
#v636QuestDungeonCard.v599-clean .v602-side-decor.right{right:0;background:url("assets/v7195-base64/36680d1cb9b005a378c2.webp") right top/cover no-repeat}
#v636QuestDungeonCard.v599-clean .v602-duel-panel{
  position:absolute;left:50%;top:12px;transform:translateX(-50%);width:min(76%,390px);height:auto;z-index:18;pointer-events:none;
  filter:drop-shadow(0 7px 10px rgba(0,0,0,.65));
}
#v636QuestDungeonCard.v599-clean .v575-stage-title{opacity:0!important;pointer-events:none!important}
#v636QuestDungeonCard.v599-clean .v575-round{
  top:92px!important;min-width:118px!important;padding:10px 18px!important;border:2px solid #b04643!important;
  background:linear-gradient(180deg,#7a171a 0%,#3a0a0c 100%)!important;color:#f7dfb6!important;font-size:8.2px!important;
  box-shadow:0 0 18px rgba(174,42,42,.18),inset 0 1px rgba(255,225,174,.08)!important;
}
#v636QuestDungeonCard.v599-clean .v575-proc-strip{top:137px!important;left:22%!important;right:22%!important;z-index:20!important}
#v636QuestDungeonCard.v599-clean .v575-chip{padding:7px 14px!important;font-size:6.4px!important;border-width:2px!important;box-shadow:0 0 16px rgba(34,255,62,.18),inset 0 0 12px rgba(90,255,90,.05)!important}

#v636QuestDungeonCard.v599-clean .fighter{bottom:34px!important;width:45%!important;z-index:10!important}
#v636QuestDungeonCard.v599-clean .fighter.player{left:1.5%!important}
#v636QuestDungeonCard.v599-clean .fighter.enemy-side{right:1.5%!important}
#v636QuestDungeonCard.v599-clean .v252-fighter-shell{min-height:386px!important;justify-content:flex-end!important}
#v636QuestDungeonCard.v599-clean .fighter-avatar{width:225px!important;height:318px!important;overflow:visible!important;background:transparent!important;box-shadow:none!important}
#v636QuestDungeonCard.v599-clean .v600-barbar-art{width:228px!important;height:312px!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 20px 18px rgba(0,0,0,.95)) drop-shadow(0 0 14px rgba(255,173,70,.10))!important}
#v636QuestDungeonCard.v599-clean .v600-treant-art{width:228px!important;height:304px!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 20px 18px rgba(0,0,0,.95)) drop-shadow(0 0 19px rgba(86,238,71,.20))!important}
#v636QuestDungeonCard.v599-clean .fighter-avatar:before{width:175px!important;height:38px!important;bottom:7px!important}
#v636QuestDungeonCard.v599-clean #v636QuestEnemyFighter.v600-treant .fighter-avatar:after{inset:15% 0 8% 0!important;background:radial-gradient(ellipse at center,rgba(86,231,76,.20),rgba(58,142,48,.06) 50%,transparent 74%)!important}
#v636QuestDungeonCard.v599-clean .battle-stage:after{top:63%!important;width:58px!important;height:58px!important;font-size:22px!important;border:3px solid #c18b3e!important;box-shadow:0 0 0 3px rgba(193,139,62,.13),0 0 22px rgba(255,169,50,.20),inset 0 0 16px rgba(0,0,0,.84)!important}

#v636QuestDungeonCard.v599-clean .fighter-name{
  width:96%!important;margin:7px auto 0!important;padding:10px 8px 8px!important;border:2px solid #93673a!important;border-radius:12px 12px 0 0!important;
  background:linear-gradient(180deg,#07100a 0%,#020503 100%)!important;font-size:7.5px!important;color:#f4efe2!important;
}
#v636QuestDungeonCard.v599-clean .hpbar{width:96%!important;height:21px!important;border:2px solid #8c4f48!important;border-radius:0 0 12px 12px!important;background:#300a0a!important}
#v636QuestDungeonCard.v599-clean .fighter .tiny{margin-top:7px!important;font-size:8.2px!important;font-weight:1000!important}
#v636QuestDungeonCard.v599-clean .damage{top:178px!important;font-size:44px!important;z-index:30!important}
#v636QuestDungeonCard.v599-clean .damage.v252-crit{font-size:52px!important}
#v636QuestDungeonCard.v599-clean .damage.left{left:7%!important}
#v636QuestDungeonCard.v599-clean .damage.right{right:7%!important}

#v636QuestDungeonCard.v599-clean .v575-log{margin:12px 0!important;padding:13px 14px!important;border:2px solid #86603a!important;border-radius:16px!important;background:linear-gradient(180deg,#09130b,#020604)!important}
#v636QuestDungeonCard.v599-clean .v575-log-title{font-size:8px!important;padding-bottom:7px!important;color:#f2d28e!important}
#v636QuestDungeonCard.v599-clean .v575-log-line{grid-template-columns:48px 1fr!important;gap:9px!important;font-size:7.8px!important;padding:8px 0!important}
#v636QuestDungeonCard.v599-clean .v575-log-line b{min-height:24px!important;font-size:7px!important;border:2px solid #4d8f40!important;background:#0c1b0e!important}
#v636QuestDungeonCard.v599-clean #v324DungeonCountdown{margin-top:10px!important;padding:14px 16px!important;border:2px solid #93673a!important;border-radius:15px!important;background:linear-gradient(180deg,#24170d,#0a0906)!important;color:#f4d38c!important;font-size:8.3px!important}
#v636QuestDungeonCard.v599-clean #fightBtn{min-height:68px!important;margin-top:12px!important;border:3px solid #8be068!important;border-radius:16px!important;background:linear-gradient(180deg,#7fe566 0%,#49ba40 50%,#2c812e 100%)!important;font-size:12.2px!important;box-shadow:inset 0 1px rgba(229,255,214,.82),0 0 0 3px rgba(162,119,57,.54),0 10px 20px rgba(0,0,0,.55)!important}

@media(max-width:560px){
  #v636QuestDungeonCard.v599-clean .v575-head{min-height:76px!important;padding:12px 10px 11px 76px!important}
  #v636QuestDungeonCard.v599-clean .v575-head:before{width:56px!important;height:56px!important;left:10px!important}
  #v636QuestDungeonCard.v599-clean .v575-title{font-size:12.5px!important}
  #v636QuestDungeonCard.v599-clean .battle-stage{height:485px!important}
  #v636QuestDungeonCard.v599-clean .v602-duel-panel{width:74%!important;top:12px!important}
  #v636QuestDungeonCard.v599-clean .v575-round{top:83px!important;min-width:104px!important;padding:8px 14px!important;font-size:7.3px!important}
  #v636QuestDungeonCard.v599-clean .v575-proc-strip{top:122px!important;left:17%!important;right:17%!important}
  #v636QuestDungeonCard.v599-clean .fighter{width:45%!important;bottom:28px!important}
  #v636QuestDungeonCard.v599-clean .fighter.player{left:1%!important}
  #v636QuestDungeonCard.v599-clean .fighter.enemy-side{right:1%!important}
  #v636QuestDungeonCard.v599-clean .v252-fighter-shell{min-height:344px!important}
  #v636QuestDungeonCard.v599-clean .fighter-avatar{width:185px!important;height:266px!important}
  #v636QuestDungeonCard.v599-clean .v600-barbar-art{width:188px!important;height:258px!important}
  #v636QuestDungeonCard.v599-clean .v600-treant-art{width:188px!important;height:252px!important}
  #v636QuestDungeonCard.v599-clean .battle-stage:after{top:62%!important;width:50px!important;height:50px!important;font-size:19px!important}
  #v636QuestDungeonCard.v599-clean .fighter-name{font-size:6.75px!important;padding:9px 5px 7px!important}
  #v636QuestDungeonCard.v599-clean .hpbar{height:18px!important}
  #v636QuestDungeonCard.v599-clean .fighter .tiny{font-size:7.2px!important}
  #v636QuestDungeonCard.v599-clean .damage{top:156px!important;font-size:37px!important}
  #v636QuestDungeonCard.v599-clean .damage.v252-crit{font-size:44px!important}
  #v636QuestDungeonCard.v599-clean .v602-side-decor{width:64px!important;height:240px!important}
  #v636QuestDungeonCard.v599-clean .v575-log-line{grid-template-columns:40px 1fr!important;font-size:6.95px!important;gap:7px!important;padding:7px 0!important}
  #v636QuestDungeonCard.v599-clean #v324DungeonCountdown{font-size:7.35px!important;padding:12px 11px!important}
  #v636QuestDungeonCard.v599-clean #fightBtn{min-height:60px!important;font-size:11px!important}
}

/* cloned from v603-final-composition-css */

/* Final composition only. No combat calculations, timers, reward logic, or handlers changed. */
#v636QuestDungeonCard.v599-clean .v602-duel-panel{
  width:min(66%,336px)!important;
  top:10px!important;
  filter:drop-shadow(0 6px 9px rgba(0,0,0,.62))!important;
}
#v636QuestDungeonCard.v599-clean .v575-round{
  top:76px!important;
  min-width:102px!important;
  padding:8px 15px!important;
  font-size:7.4px!important;
}
#v636QuestDungeonCard.v599-clean .v575-proc-strip{
  top:112px!important;
  left:23%!important;
  right:23%!important;
  min-height:18px!important;
  background:transparent!important;
  box-shadow:none!important;
}
#v636QuestDungeonCard.v599-clean .v575-chip{
  padding:5px 10px!important;
  font-size:5.9px!important;
}

/* More breathing room between the two fighters. */
#v636QuestDungeonCard.v599-clean .fighter{
  width:41.5%!important;
  bottom:38px!important;
}
#v636QuestDungeonCard.v599-clean .fighter.player{left:3.2%!important}
#v636QuestDungeonCard.v599-clean .fighter.enemy-side{right:3.2%!important}
#v636QuestDungeonCard.v599-clean .v252-fighter-shell{
  min-height:352px!important;
}
#v636QuestDungeonCard.v599-clean .fighter-avatar{
  width:202px!important;
  height:282px!important;
}
#v636QuestDungeonCard.v599-clean .v600-barbar-art{
  width:202px!important;
  height:276px!important;
}
#v636QuestDungeonCard.v599-clean .v600-treant-art{
  width:214px!important;
  height:286px!important;
}

/* Smaller VS, exactly between the fighters rather than covering either one. */
#v636QuestDungeonCard.v599-clean .battle-stage:after{
  top:60%!important;
  width:47px!important;
  height:47px!important;
  font-size:18px!important;
  border-width:2px!important;
  box-shadow:0 0 0 2px rgba(193,139,62,.13),0 0 18px rgba(255,169,50,.18),inset 0 0 13px rgba(0,0,0,.84)!important;
}

/* Compact character HUDs under each fighter. */
#v636QuestDungeonCard.v599-clean .fighter-name{
  width:91%!important;
  margin:4px auto 0!important;
  padding:8px 6px 6px!important;
  font-size:7px!important;
  border-radius:10px 10px 0 0!important;
}
#v636QuestDungeonCard.v599-clean .hpbar{
  width:91%!important;
  height:18px!important;
  border-radius:0 0 10px 10px!important;
}
#v636QuestDungeonCard.v599-clean .fighter .tiny{
  margin-top:5px!important;
  font-size:7.5px!important;
}

/* Damage belongs to the target, not the corners of the stage. */
#v636QuestDungeonCard.v599-clean .damage{
  top:154px!important;
  font-size:39px!important;
}
#v636QuestDungeonCard.v599-clean .damage.v252-crit{font-size:46px!important}
#v636QuestDungeonCard.v599-clean .damage.left{left:10%!important}
#v636QuestDungeonCard.v599-clean .damage.right{right:10%!important}

/* Less vertical bulk below the arena. */
#v636QuestDungeonCard.v599-clean .v575-log{
  margin:10px 0!important;
  padding:10px 12px!important;
}
#v636QuestDungeonCard.v599-clean .v575-log-title{
  font-size:7.6px!important;
  padding-bottom:5px!important;
}
#v636QuestDungeonCard.v599-clean .v575-log-line{
  grid-template-columns:42px 1fr!important;
  gap:7px!important;
  font-size:7.2px!important;
  padding:6px 0!important;
}
#v636QuestDungeonCard.v599-clean .v575-log-line b{
  min-height:21px!important;
  font-size:6.6px!important;
}
#v636QuestDungeonCard.v599-clean #v324DungeonCountdown{
  margin-top:8px!important;
  padding:11px 13px!important;
  font-size:7.7px!important;
}
#v636QuestDungeonCard.v599-clean #fightBtn{
  min-height:60px!important;
  margin-top:10px!important;
  font-size:11.2px!important;
}

@media(max-width:560px){
  #v636QuestDungeonCard.v599-clean .battle-stage{height:458px!important}
  #v636QuestDungeonCard.v599-clean .v602-duel-panel{width:68%!important;top:9px!important}
  #v636QuestDungeonCard.v599-clean .v575-round{top:73px!important;min-width:96px!important;padding:7px 13px!important;font-size:7px!important}
  #v636QuestDungeonCard.v599-clean .v575-proc-strip{top:107px!important;left:20%!important;right:20%!important}
  #v636QuestDungeonCard.v599-clean .fighter{width:41.5%!important;bottom:34px!important}
  #v636QuestDungeonCard.v599-clean .fighter.player{left:3.5%!important}
  #v636QuestDungeonCard.v599-clean .fighter.enemy-side{right:3.5%!important}
  #v636QuestDungeonCard.v599-clean .v252-fighter-shell{min-height:324px!important}
  #v636QuestDungeonCard.v599-clean .fighter-avatar{width:166px!important;height:238px!important}
  #v636QuestDungeonCard.v599-clean .v600-barbar-art{width:166px!important;height:232px!important}
  #v636QuestDungeonCard.v599-clean .v600-treant-art{width:174px!important;height:238px!important}
  #v636QuestDungeonCard.v599-clean .battle-stage:after{top:59%!important;width:42px!important;height:42px!important;font-size:16px!important}
  #v636QuestDungeonCard.v599-clean .fighter-name{width:93%!important;font-size:6.45px!important;padding:7px 4px 6px!important}
  #v636QuestDungeonCard.v599-clean .hpbar{width:93%!important;height:16px!important}
  #v636QuestDungeonCard.v599-clean .fighter .tiny{font-size:6.9px!important}
  #v636QuestDungeonCard.v599-clean .damage{top:141px!important;font-size:34px!important}
  #v636QuestDungeonCard.v599-clean .damage.v252-crit{font-size:40px!important}
  #v636QuestDungeonCard.v599-clean .damage.left{left:9%!important}
  #v636QuestDungeonCard.v599-clean .damage.right{right:9%!important}
  #v636QuestDungeonCard.v599-clean .v575-log-line{grid-template-columns:36px 1fr!important;font-size:6.65px!important;gap:6px!important;padding:5px 0!important}
  #v636QuestDungeonCard.v599-clean .v575-log-line b{min-height:20px!important;font-size:6.2px!important}
  #v636QuestDungeonCard.v599-clean #v324DungeonCountdown{font-size:7.1px!important;padding:10px!important}
  #v636QuestDungeonCard.v599-clean #fightBtn{min-height:56px!important;font-size:10.8px!important}
}

/* cloned from v604-dungeon-skill-fx-css */

/* Restores visible class/talent procs on the V6.03 stage. No combat values or resolver logic changed. */
#v636QuestDungeonCard.v599-clean .v575-proc-strip{
  top:108px!important;
  left:8%!important;
  right:8%!important;
  min-height:30px!important;
  z-index:80!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  pointer-events:none!important;
}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  max-width:92%!important;
  padding:6px 11px!important;
  border:2px solid #7f6339!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(10,15,10,.97),rgba(2,5,3,.97))!important;
  color:#f3e2ad!important;
  font-size:6.1px!important;
  font-weight:1000!important;
  line-height:1!important;
  letter-spacing:.035em!important;
  white-space:nowrap!important;
  text-shadow:0 2px 2px #000!important;
  box-shadow:0 5px 14px rgba(0,0,0,.68),inset 0 0 12px rgba(255,215,127,.04)!important;
  animation:v604SkillChip 1.55s cubic-bezier(.18,.8,.22,1) forwards!important;
}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip.crit{border-color:#d9a337!important;color:#ffe478!important;box-shadow:0 0 18px rgba(255,190,55,.26),0 5px 14px #000b!important}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip.wucht{border-color:#d77d2e!important;color:#ffc36d!important;box-shadow:0 0 18px rgba(255,126,38,.22),0 5px 14px #000b!important}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip.rage{border-color:#61c84e!important;color:#a7ff83!important;box-shadow:0 0 18px rgba(88,235,72,.22),0 5px 14px #000b!important}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip.heal{border-color:#40d55a!important;color:#8dff9a!important;box-shadow:0 0 20px rgba(57,255,95,.24),0 5px 14px #000b!important}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip.dodge{border-color:#63bde8!important;color:#b7e9ff!important;box-shadow:0 0 20px rgba(71,190,255,.25),0 5px 14px #000b!important}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip.guard{border-color:#7bc9ef!important;color:#c9efff!important;box-shadow:0 0 20px rgba(96,203,255,.22),0 5px 14px #000b!important}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip.magic{border-color:#b45adb!important;color:#eab7ff!important;box-shadow:0 0 20px rgba(197,81,255,.24),0 5px 14px #000b!important}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip.frost{border-color:#5dd7ef!important;color:#baf5ff!important;box-shadow:0 0 20px rgba(68,224,255,.25),0 5px 14px #000b!important}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip.scout{border-color:#8bdb57!important;color:#d1ff9d!important;box-shadow:0 0 20px rgba(139,229,72,.20),0 5px 14px #000b!important}

@keyframes v604SkillChip{
  0%{opacity:0;transform:translateY(8px) scale(.76)}
  14%{opacity:1;transform:translateY(0) scale(1.07)}
  74%{opacity:1;transform:translateY(0) scale(1)}
  100%{opacity:0;transform:translateY(-10px) scale(.95)}
}

/* Short fighter feedback. These are visual responses only. */
#v636QuestDungeonCard.v599-clean #v636QuestPlayerFighter.v604-heal-flash{animation:v604HealFlash .60s ease!important}
#v636QuestDungeonCard.v599-clean #v636QuestPlayerFighter.v604-dodge-flash{animation:v604DodgeFlash .48s ease!important}
#v636QuestDungeonCard.v599-clean #v636QuestPlayerFighter.v604-guard-flash{animation:v604GuardFlash .62s ease!important}
#v636QuestDungeonCard.v599-clean #v636QuestPlayerFighter.v604-power-flash{animation:v604PowerFlash .48s ease!important}
#v636QuestDungeonCard.v599-clean #v636QuestEnemyFighter.v604-hit-flash{animation:v604EnemyHit .42s ease!important}
@keyframes v604HealFlash{0%,100%{filter:none}35%{filter:drop-shadow(0 0 20px rgba(83,255,105,.9)) brightness(1.10)}}
@keyframes v604DodgeFlash{0%,100%{transform:translateX(0)}35%{transform:translateX(-24px) translateY(-5px)}68%{transform:translateX(8px)}}
@keyframes v604GuardFlash{0%,100%{filter:none}35%{filter:drop-shadow(0 0 22px rgba(112,214,255,.95)) brightness(1.13)}}
@keyframes v604PowerFlash{0%,100%{filter:none}35%{filter:drop-shadow(0 0 18px rgba(255,188,77,.85)) brightness(1.12)}}
@keyframes v604EnemyHit{0%,100%{filter:none}30%{filter:brightness(1.45) drop-shadow(0 0 16px rgba(255,153,70,.75))}}

@media(max-width:560px){
  #v636QuestDungeonCard.v599-clean .v575-proc-strip{top:104px!important;left:5%!important;right:5%!important;gap:4px!important}
  #v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip{font-size:5.65px!important;padding:5px 8px!important}
}

/* cloned from v605-dungeon-fx-dedupe-css */

/* V5.99 still paints its own generic proc chip. V6.04 already restores the
   richer class/skill badges, so hide only the legacy duplicate renderer. */
#v636QuestDungeonCard.v599-clean .v575-proc-strip > .v599-fx{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}

/* One clean event lane under the round chip. Different simultaneous real
   effects may coexist briefly, but the old duplicate chip can no longer show. */
#v636QuestDungeonCard.v599-clean .v575-proc-strip{
  top:108px!important;
  left:7%!important;
  right:7%!important;
  gap:5px!important;
  justify-content:center!important;
  align-items:center!important;
}
#v636QuestDungeonCard.v599-clean .v575-chip.v604-skill-chip{
  position:relative!important;
  z-index:82!important;
}
@media(max-width:560px){
  #v636QuestDungeonCard.v599-clean .v575-proc-strip{top:104px!important;left:4%!important;right:4%!important}
}

/* cloned from v609-header-clip-fix-css */

/* Final header-only correction. No combat logic, QA, timers, rewards or effects touched. */
#v636QuestDungeonCard.v599-clean .v575-head{
  min-height:96px!important;
  padding:14px 12px 14px 92px!important;
  align-items:center!important;
  overflow:visible!important;
}
#v636QuestDungeonCard.v599-clean .v575-head-main{
  min-width:0!important;
  overflow:visible!important;
  align-self:center!important;
}
#v636QuestDungeonCard.v599-clean .v575-kicker{
  margin-bottom:4px!important;
}
#v636QuestDungeonCard.v599-clean .v575-title{
  display:block!important;
  max-width:100%!important;
  max-height:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  line-height:1.08!important;
}
#v636QuestDungeonCard.v599-clean .v575-recommend{
  align-self:center!important;
}
@media(max-width:560px){
  #v636QuestDungeonCard.v599-clean .v575-head{
    min-height:94px!important;
    padding:13px 10px 13px 76px!important;
  }
  #v636QuestDungeonCard.v599-clean .v575-head:before{
    width:56px!important;
    height:56px!important;
    left:10px!important;
  }
  #v636QuestDungeonCard.v599-clean .v575-title{
    font-size:12px!important;
    line-height:1.08!important;
  }
  #v636QuestDungeonCard.v599-clean .v575-kicker{
    font-size:6.9px!important;
    line-height:1.08!important;
  }
}

/* cloned from v613-final-visual-fix-css */

/* Force the skill badge animation on the actual V6.04 chips. This is deliberately
   later than every older dungeon visual layer, so old animation shorthands cannot
   silently win on individual effect classes. */
#v636QuestDungeonCard.v599-clean .v575-proc-strip .v604-skill-chip{
  animation-name:v604SkillChip!important;
  animation-duration:1.55s!important;
  animation-timing-function:cubic-bezier(.18,.8,.22,1)!important;
  animation-delay:0s!important;
  animation-iteration-count:1!important;
  animation-direction:normal!important;
  animation-fill-mode:forwards!important;
  animation-play-state:running!important;
}

/* PvP: reduce the portrait-card look. The source portraits contain scenery, so we
   crop in closer and fade them much more aggressively into the shared arena. */
#v209PvpBattleOverlay .v209-avatar{
  height:286px!important;
  overflow:visible!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  isolation:isolate!important;
}
#v209PvpBattleOverlay .v209-avatar img{
  width:148%!important;
  max-width:none!important;
  height:282px!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center 42%!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  -webkit-mask-image:radial-gradient(ellipse 54% 76% at 50% 53%,#000 0 50%,rgba(0,0,0,.98) 61%,rgba(0,0,0,.72) 73%,rgba(0,0,0,.28) 86%,transparent 100%)!important;
  mask-image:radial-gradient(ellipse 54% 76% at 50% 53%,#000 0 50%,rgba(0,0,0,.98) 61%,rgba(0,0,0,.72) 73%,rgba(0,0,0,.28) 86%,transparent 100%)!important;
  filter:drop-shadow(0 20px 16px rgba(0,0,0,.94)) drop-shadow(0 0 14px rgba(87,225,79,.13))!important;
  transform:scale(1.03)!important;
}
#v209PvpBattleOverlay .v209-fighter.player .v209-avatar img{object-position:center 46%!important}
#v209PvpBattleOverlay .v209-fighter.enemy .v209-avatar img{object-position:center 44%!important}
#v209PvpBattleOverlay .v209-fighter:before{
  width:198px!important;
  height:222px!important;
  top:102px!important;
  background:radial-gradient(ellipse,rgba(73,199,76,.13),rgba(24,87,40,.055) 48%,transparent 73%)!important;
  filter:blur(5px)!important;
}
#v209PvpBattleOverlay .v209-avatar:before{
  content:"";position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:0;pointer-events:none;
  width:176px;height:92px;border-radius:50%;
  background:radial-gradient(ellipse,rgba(16,67,33,.30),rgba(7,28,16,.08) 48%,transparent 72%);
  filter:blur(6px);
}
#v209PvpBattleOverlay .v209-avatar:after{
  bottom:9px!important;width:132px!important;height:28px!important;
  background:radial-gradient(ellipse,rgba(0,0,0,.66),rgba(0,0,0,.10) 68%,transparent 74%)!important;
}
#v209PvpBattleOverlay .v209-fighter-name,
#v209PvpBattleOverlay .v209-hpbar{width:84%!important}
#v209PvpBattleOverlay .v610-pvp-vs{top:57%!important;width:44px!important;height:44px!important;font-size:16px!important}

@media(max-width:560px){
  #v209PvpBattleOverlay .v209-avatar{height:256px!important}
  #v209PvpBattleOverlay .v209-avatar img{width:154%!important;height:252px!important}
  #v209PvpBattleOverlay .v209-fighter-name,
  #v209PvpBattleOverlay .v209-hpbar{width:86%!important}
  #v209PvpBattleOverlay .v610-pvp-vs{top:56.5%!important;width:40px!important;height:40px!important;font-size:15px!important}
}

/* Quest keeps its text plaque; everything else above is the real final Dungeon stack. */
#v636QuestDungeonCard.v599-clean .v602-duel-panel{display:none!important}
#v636QuestDungeonCard.v599-clean .v575-stage-title{
 display:block!important;opacity:1!important;visibility:visible!important;pointer-events:none!important;
 top:14px!important;min-width:190px!important;padding:9px 20px!important;border:2px solid #956a35!important;border-radius:10px!important;
 clip-path:polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%)!important;
 background:linear-gradient(180deg,#2c1b0f 0%,#120d08 67%,#070805 100%)!important;color:#f4d18c!important;
 font:1000 9px/1 Georgia,serif!important;letter-spacing:.10em!important;box-shadow:0 8px 16px rgba(0,0,0,.55),inset 0 0 14px rgba(255,205,110,.06)!important
}
#v636QuestDungeonCard.v599-clean .v575-round{top:58px!important}
#v636QuestDungeonCard.v599-clean .v575-proc-strip{top:99px!important;left:15%!important;right:15%!important;z-index:90!important}
#v636QuestDungeonCard.v599-clean .v636-monster{display:block!important;visibility:visible!important;opacity:1!important}
#v636QuestDungeonCard.v599-clean .v600-barbar-art{display:block!important;position:relative!important;z-index:3!important}
#v636QuestDungeonCard.v599-clean .battle-stage{isolation:isolate!important}
#v636QuestDungeonCard.v599-clean .fighter{overflow:visible!important}
#v636QuestDungeonCard.v599-clean .v252-impact,#v636QuestDungeonCard.v599-clean .v252-slash,
#v636QuestDungeonCard.v599-clean .v252-projectile,#v636QuestDungeonCard.v599-clean .v252-screen-flash{z-index:60!important;pointer-events:none!important}
@media(max-width:560px){
 #v636QuestDungeonCard.v599-clean .v575-stage-title{top:11px!important;min-width:168px!important;padding:8px 16px!important;font-size:7.8px!important}
 #v636QuestDungeonCard.v599-clean .v575-round{top:52px!important}
 #v636QuestDungeonCard.v599-clean .v575-proc-strip{top:89px!important;left:9%!important;right:9%!important}
}

/* V6.38: Bud-Barbar image must use the same final Dungeon art class. */
#v636QuestDungeonCard.v599-clean #v636QuestPlayerFighter.v600-barbar .fighter-avatar>.v600-barbar-art{
 display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:4!important;
}
#v636QuestDungeonCard.v599-clean #v636QuestPlayerFighter.v600-barbar .fighter-avatar>.v253-player-avatar-img{display:none!important}
