/* v0.7.9.2：行动播报长文本布局修复。日志条目不可压缩，由列表容器负责滚动。 */

body.dungeon-fullscreen .ui72-log-merged,
body.dungeon-fullscreen .ui72-log-panel .ui72-log-merged,
body.dungeon-fullscreen .ui72-log-panel-v3 .ui72-log-merged,
body.dungeon-fullscreen .ui76-battle-log .ui72-log-merged{
  min-width:0 !important;
  min-height:0 !important;
  height:auto !important;
  overflow:hidden !important;
}

body.dungeon-fullscreen .ui72-log-merged > div,
body.dungeon-fullscreen .ui72-log-panel .ui72-log-merged > div,
body.dungeon-fullscreen .ui72-log-panel-v3 .ui72-log-merged > div,
body.dungeon-fullscreen .ui76-battle-log .ui72-log-merged > div{
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  align-content:initial !important;
  justify-content:flex-start !important;
  gap:8px !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  padding:2px 5px 3px 0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  scrollbar-gutter:stable !important;
  scrollbar-width:thin;
  scrollbar-color:rgba(211,177,104,.48) rgba(255,255,255,.035);
}

body.dungeon-fullscreen .ui72-log-merged p,
body.dungeon-fullscreen .ui72-log-panel .ui72-log-merged p,
body.dungeon-fullscreen .ui72-log-panel-v3 .ui72-log-merged p,
body.dungeon-fullscreen .ui76-battle-log .ui72-log-merged p{
  position:relative !important;
  inset:auto !important;
  box-sizing:border-box !important;
  display:block !important;
  flex:0 0 auto !important;
  align-self:stretch !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:100% !important;
  max-height:none !important;
  margin:0 !important;
  padding:9px 11px !important;
  overflow:visible !important;
  color:#e8dcc0 !important;
  border:1px solid rgba(211,177,104,.13) !important;
  border-radius:10px !important;
  background:linear-gradient(90deg,rgba(255,255,255,.045),rgba(255,255,255,.022)) !important;
  font-size:13px !important;
  line-height:1.62 !important;
  text-align:left !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  text-overflow:clip !important;
  contain:none !important;
}

body.dungeon-fullscreen .ui72-log-merged p:nth-child(odd){
  background:linear-gradient(90deg,rgba(211,177,104,.06),rgba(255,255,255,.018)) !important;
}

body.dungeon-fullscreen .ui72-log-merged > div::-webkit-scrollbar{
  width:10px;
}

body.dungeon-fullscreen .ui72-log-merged > div::-webkit-scrollbar-track{
  border-radius:999px;
  background:rgba(255,255,255,.035);
}

body.dungeon-fullscreen .ui72-log-merged > div::-webkit-scrollbar-thumb{
  min-height:44px;
  border:2px solid transparent;
  border-radius:999px;
  background:rgba(211,177,104,.48);
  background-clip:padding-box;
}

body.dungeon-fullscreen .ui72-log-merged > div::-webkit-scrollbar-thumb:hover{
  background:rgba(231,198,126,.68);
  background-clip:padding-box;
}

@media (max-width:700px){
  body.dungeon-fullscreen .ui72-log-merged p,
  body.dungeon-fullscreen .ui72-log-panel .ui72-log-merged p,
  body.dungeon-fullscreen .ui72-log-panel-v3 .ui72-log-merged p,
  body.dungeon-fullscreen .ui76-battle-log .ui72-log-merged p{
    padding:8px 9px !important;
    font-size:12px !important;
    line-height:1.58 !important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.dungeon-fullscreen .ui72-log-merged,
  body.dungeon-fullscreen .ui72-log-merged *{
    scroll-behavior:auto !important;
  }
}
