/* v0.7.6：战斗页固定分区。敌人、播报、行动和右侧状态在桌面端始终同时可见。 */

body.dungeon-fullscreen .ui72-dungeon-run,
body.dungeon-fullscreen #dungeon.v046-dungeon-battle .ui72-dungeon-run{
  grid-template-columns:minmax(0,1fr) clamp(350px,21vw,430px) !important;
  grid-template-rows:48px minmax(0,1fr) clamp(188px,20vh,236px) !important;
  grid-template-areas:"top side" "display side" "actions side" !important;
  gap:8px !important;
  height:100dvh !important;
  min-height:680px !important;
  padding:6px !important;
  overflow:hidden !important;
}

body.dungeon-fullscreen .ui72-toolbar{
  min-height:0 !important;
  height:48px !important;
  padding:4px 6px !important;
  overflow:hidden !important;
}
body.dungeon-fullscreen .ui72-toolbar-buttons{
  height:100% !important;
  display:flex !important;
  align-items:stretch !important;
  gap:7px !important;
  flex-wrap:nowrap !important;
}
body.dungeon-fullscreen .ui72-toolbar-buttons>button{
  min-height:0 !important;
  height:100% !important;
  padding:6px 13px !important;
  white-space:nowrap !important;
}
body.dungeon-fullscreen .ui72-toolbar .ui76-toolbar-detail{
  position:static !important;
  inset:auto !important;
  z-index:auto !important;
  min-width:92px !important;
  margin:0 !important;
  box-shadow:none !important;
  background:rgba(8,15,24,.78) !important;
}

body.dungeon-fullscreen .ui72-display{
  min-width:0 !important;
  min-height:0 !important;
  height:100% !important;
  padding:7px !important;
  overflow:hidden !important;
}
body.dungeon-fullscreen .ui72-display-strip{
  min-height:32px !important;
  margin-bottom:7px !important;
  overflow:hidden !important;
}
body.dungeon-fullscreen .ui76-battle-display{
  display:grid !important;
  grid-template-rows:clamp(178px,23vh,246px) minmax(0,1fr) !important;
  gap:8px !important;
  height:calc(100% - 39px) !important;
  min-height:0 !important;
  overflow:hidden !important;
}
body.dungeon-fullscreen .ui76-enemy-stage{
  min-height:0 !important;
  height:100% !important;
  overflow:auto hidden !important;
  scrollbar-gutter:stable !important;
}
body.dungeon-fullscreen .ui76-enemy-stage .ui72-enemy-cards{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr)) !important;
  grid-auto-rows:minmax(0,1fr) !important;
  align-items:stretch !important;
  gap:8px !important;
  width:100% !important;
  min-height:100% !important;
  height:100% !important;
  overflow:visible !important;
}
body.dungeon-fullscreen .ui76-enemy-stage .ui83-target-card{
  height:100% !important;
  min-height:0 !important;
  padding:11px 12px !important;
  overflow:auto !important;
  text-align:left !important;
}
body.dungeon-fullscreen .ui76-enemy-stage .ui68-monster-head{
  margin-bottom:7px !important;
}
body.dungeon-fullscreen .ui76-enemy-stage .ui68-monster-head h3{
  font-size:17px !important;
  line-height:1.2 !important;
}
body.dungeon-fullscreen .ui76-enemy-stage .ui68-monster-head p{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}

body.dungeon-fullscreen .ui76-battle-log{
  display:grid !important;
  grid-template-rows:28px minmax(0,1fr) !important;
  min-height:0 !important;
  padding:8px 9px !important;
  overflow:hidden !important;
  border:1px solid rgba(201,164,91,.26) !important;
  background:linear-gradient(180deg,rgba(18,14,10,.76),rgba(2,3,5,.88)) !important;
}
body.dungeon-fullscreen .ui76-battle-log .ui72-bottom-head{
  min-height:0 !important;
  height:24px !important;
  margin:0 0 4px !important;
}
body.dungeon-fullscreen .ui76-battle-log .ui72-log-merged,
body.dungeon-fullscreen .ui76-battle-log .ui72-log-merged>div{
  min-height:0 !important;
  height:100% !important;
  overflow:auto !important;
  scrollbar-gutter:stable !important;
}
body.dungeon-fullscreen .ui76-battle-log .ui72-log-merged>div{
  display:grid !important;
  align-content:start !important;
  gap:5px !important;
}
body.dungeon-fullscreen .ui76-battle-log .ui72-log-merged p{
  margin:0 !important;
  padding:7px 9px !important;
  min-height:0 !important;
  font-size:12px !important;
  line-height:1.4 !important;
}

body.dungeon-fullscreen .ui72-actions{
  min-width:0 !important;
  min-height:0 !important;
  height:100% !important;
  padding:9px 11px !important;
  overflow:auto !important;
}
body.dungeon-fullscreen .ui72-action-list{
  min-height:0 !important;
  height:100% !important;
  overflow:auto !important;
}
body.dungeon-fullscreen .ui83-battle-buttons{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  grid-auto-rows:minmax(48px,1fr) !important;
  align-content:stretch !important;
  gap:9px !important;
  width:100% !important;
  min-height:100% !important;
}
body.dungeon-fullscreen .ui83-battle-buttons>button{
  min-width:0 !important;
  min-height:48px !important;
  height:auto !important;
  padding:9px 10px !important;
  font-size:13px !important;
  line-height:1.25 !important;
  white-space:normal !important;
}

body.dungeon-fullscreen .ui76-right-panel{
  display:grid !important;
  grid-template-rows:auto minmax(82px,108px) minmax(112px,152px) minmax(190px,1fr) minmax(160px,220px) !important;
  gap:7px !important;
  min-width:0 !important;
  min-height:0 !important;
  height:100% !important;
  max-height:none !important;
  padding:0 !important;
  overflow:hidden !important;
  align-self:stretch !important;
}
body.dungeon-fullscreen .ui76-right-panel>.ui63-card{
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:10px !important;
  overflow:hidden !important;
}
body.dungeon-fullscreen .ui76-right-panel .ui72-side-title{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:7px !important;
  min-height:22px !important;
  margin-bottom:6px !important;
}
body.dungeon-fullscreen .ui76-right-panel .ui72-side-title small{
  color:#aa9b7c !important;
  font-size:10px !important;
  font-weight:500 !important;
}
body.dungeon-fullscreen .ui76-right-panel .ui72-potion-list,
body.dungeon-fullscreen .ui76-right-panel .ui72-skill-list,
body.dungeon-fullscreen .ui76-right-panel .ui72-equip-list,
body.dungeon-fullscreen .ui76-right-panel .ui72-buff-list{
  min-height:0 !important;
  max-height:none !important;
  height:100% !important;
  overflow:auto !important;
  scrollbar-gutter:stable !important;
}
body.dungeon-fullscreen .ui76-right-panel .ui72-equip-card,
body.dungeon-fullscreen .ui76-right-panel .ui76-buff-card{
  display:grid !important;
  grid-template-rows:auto minmax(0,1fr) !important;
}
body.dungeon-fullscreen .ui76-right-panel .ui72-equip-list{
  display:grid !important;
  grid-template-columns:1fr !important;
  align-content:start !important;
  gap:5px !important;
}
body.dungeon-fullscreen .ui76-right-panel .ui72-buff-list{
  display:grid !important;
  grid-template-columns:1fr !important;
  align-content:start !important;
  gap:6px !important;
}
body.dungeon-fullscreen .ui76-right-panel .ui72-buff-chip{
  display:grid !important;
  gap:3px !important;
  padding:7px 8px !important;
  border-radius:10px !important;
  border:1px solid rgba(201,164,91,.16) !important;
  background:rgba(255,255,255,.04) !important;
}
body.dungeon-fullscreen .ui76-right-panel .ui72-buff-chip b{color:#f5df9f !important;font-size:12px !important;line-height:1.15 !important;}
body.dungeon-fullscreen .ui76-right-panel .ui72-buff-chip span{color:#d8ccb0 !important;font-size:10px !important;line-height:1.3 !important;}
body.dungeon-fullscreen .ui76-right-panel .ui72-buff-chip.buff{border-color:rgba(107,210,152,.30) !important;background:rgba(48,120,74,.15) !important;}
body.dungeon-fullscreen .ui76-right-panel .ui72-buff-chip.buff b{color:#bbf1c4 !important;}
body.dungeon-fullscreen .ui76-right-panel .ui72-buff-chip.debuff{border-color:rgba(234,108,108,.30) !important;background:rgba(124,35,35,.17) !important;}
body.dungeon-fullscreen .ui76-right-panel .ui72-buff-chip.debuff b{color:#ffb6b6 !important;}

@media (max-width:1400px){
  body.dungeon-fullscreen .ui72-dungeon-run,
  body.dungeon-fullscreen #dungeon.v046-dungeon-battle .ui72-dungeon-run{
    grid-template-columns:minmax(0,1fr) 330px !important;
  }
  body.dungeon-fullscreen .ui76-battle-display{grid-template-rows:minmax(168px,220px) minmax(0,1fr) !important;}
  body.dungeon-fullscreen .ui83-battle-buttons{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}

@media (max-width:1100px){
  body.dungeon-fullscreen .ui72-dungeon-run,
  body.dungeon-fullscreen #dungeon.v046-dungeon-battle .ui72-dungeon-run{
    grid-template-columns:1fr !important;
    grid-template-rows:auto minmax(640px,72vh) auto auto !important;
    grid-template-areas:"top" "display" "actions" "side" !important;
    height:auto !important;
    min-height:100dvh !important;
    overflow:visible !important;
  }
  body.dungeon-fullscreen .ui72-toolbar,
  body.dungeon-fullscreen .ui72-toolbar-buttons{height:auto !important;overflow:visible !important;flex-wrap:wrap !important;}
  body.dungeon-fullscreen .ui76-battle-display{grid-template-rows:minmax(210px,auto) minmax(320px,1fr) !important;}
  body.dungeon-fullscreen .ui76-enemy-stage .ui72-enemy-cards{grid-template-columns:repeat(2,minmax(0,1fr)) !important;height:auto !important;}
  body.dungeon-fullscreen .ui72-actions{height:auto !important;min-height:210px !important;}
  body.dungeon-fullscreen .ui76-right-panel{
    grid-template-rows:auto minmax(90px,auto) minmax(120px,auto) minmax(180px,240px) minmax(160px,220px) !important;
    height:auto !important;
    max-height:none !important;
  }
}

@media (max-width:700px){
  body.dungeon-fullscreen .ui72-dungeon-run,
  body.dungeon-fullscreen #dungeon.v046-dungeon-battle .ui72-dungeon-run{padding:5px !important;gap:6px !important;}
  body.dungeon-fullscreen .ui76-enemy-stage .ui72-enemy-cards{grid-template-columns:1fr !important;}
  body.dungeon-fullscreen .ui83-battle-buttons{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  body.dungeon-fullscreen .ui76-battle-log .ui72-log-merged p{font-size:11px !important;}
}
