
/* Final visual-only pass. No combat logic, timers, rewards or fight handlers touched. */
#dungeonBattleCard.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. */
#dungeonBattleCard.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;
}
#dungeonBattleCard.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);
}
#dungeonBattleCard.v599-clean .v575-kicker{
  color:#83ef70!important;font-size:7.4px!important;letter-spacing:.17em!important;text-shadow:0 2px 2px #000!important;
}
#dungeonBattleCard.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;
}
#dungeonBattleCard.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. */
#dungeonBattleCard.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;
}
#dungeonBattleCard.v599-clean .v600-bg{
  opacity:1!important;
  filter:saturate(1.18) contrast(1.08) brightness(.99)!important;
  background-position:center 44%!important;
}
#dungeonBattleCard.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;
}
#dungeonBattleCard.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. */
#dungeonBattleCard.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;
}
#dungeonBattleCard.v599-clean .v575-stage-title:before{
  content:"✦";margin-right:8px;color:#d8ad54;text-shadow:0 0 8px rgba(220,166,62,.45);
}
#dungeonBattleCard.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;
}
#dungeonBattleCard.v599-clean .v575-proc-strip{top:108px!important;left:20%!important;right:20%!important;z-index:26!important}
#dungeonBattleCard.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. */
#dungeonBattleCard.v599-clean .fighter{width:42.5%!important;bottom:34px!important}
#dungeonBattleCard.v599-clean .fighter.player{left:2.2%!important}
#dungeonBattleCard.v599-clean .fighter.enemy-side{right:2.2%!important}
#dungeonBattleCard.v599-clean .v252-fighter-shell{min-height:350px!important;justify-content:flex-end!important}
#dungeonBattleCard.v599-clean .fighter-avatar{
  width:194px!important;height:268px!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;
}
#dungeonBattleCard.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;
}
#dungeonBattleCard.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;
}
#dungeonBattleCard.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;
}
#dungeonBattleCard.v599-clean #enemyFighter.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);
}
#dungeonBattleCard.v599-clean .v600-barbar-art,
#dungeonBattleCard.v599-clean .v600-treant-art{position:relative!important;z-index:3!important}

/* VS medallion: closer to the approved size and ornamentation. */
#dungeonBattleCard.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. */
#dungeonBattleCard.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;
}
#dungeonBattleCard.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;
}
#dungeonBattleCard.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;
}
#dungeonBattleCard.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. */
#dungeonBattleCard.v599-clean .damage{top:154px!important;font-size:40px!important;font-weight:1000!important;z-index:28!important}
#dungeonBattleCard.v599-clean .damage.v252-crit{font-size:47px!important;color:#ffd85c!important;text-shadow:0 0 13px #f2a333,0 3px 5px #000!important}
#dungeonBattleCard.v599-clean .damage.left{left:7%!important;color:#ff7667!important}
#dungeonBattleCard.v599-clean .damage.right{right:7%!important;color:#ffc34f!important}

/* Battle log closer to template: badge per round + more breathing room. */
#dungeonBattleCard.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;
}
#dungeonBattleCard.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}
#dungeonBattleCard.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;
}
#dungeonBattleCard.v599-clean .v575-log-line:last-child{border-bottom:0!important}
#dungeonBattleCard.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;
}
#dungeonBattleCard.v599-clean .v575-log-line.crit span{color:#f4d27a!important}
#dungeonBattleCard.v599-clean .v575-log-line.rage span{color:#7ee779!important}
#dungeonBattleCard.v599-clean .v575-log-line.wucht span{color:#ddd7c7!important}

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