/* KARTA v1.4.615 — Always-visible match activity stays OUTSIDE the playable board.
   609 placed this widget over the pitch. Keep the full events drawer unchanged. */
#karta-stadium-test .stadium-layout > .kr609-always-logs {
  position:absolute!important;
  inset:auto auto auto 6px!important;
  top:clamp(110px,23%,230px)!important;
  left:6px!important;
  right:auto!important;
  bottom:auto!important;
  width:min(10vw,calc(var(--stadium-side,11.5vw) - 14px))!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  max-height:min(35vh,250px)!important;
  padding:6px!important;
  border:1px solid #45605d!important;
  border-radius:9px!important;
  background:rgba(11,22,30,.92)!important;
  box-shadow:0 4px 12px #0005!important;
  overflow:hidden!important;
  pointer-events:none!important;
  z-index:4!important;
}
#karta-stadium-test .kr609-always-logs header b{font-size:clamp(9px,.75vw,12px)!important}
#karta-stadium-test .kr609-always-logs header small{font-size:8px!important}
#karta-stadium-test .kr609-always-logs .kr609-entry{font-size:clamp(9px,.72vw,11px)!important;line-height:1.4!important}
#karta-stadium-test .kr609-always-logs .kr609-entry span{-webkit-line-clamp:3!important;line-clamp:3!important}

/* Mobile landscape: the free strip LEFT of the bottom game controls.
   The board ends >=55px from the bottom; this panel ends at 44px. */
@media (orientation:landscape) and (max-width:980px) {
  #karta-stadium-test .stadium-layout > .kr609-always-logs {
    inset:auto auto 6px 1%!important;
    top:auto!important;bottom:6px!important;left:1%!important;right:auto!important;
    width:18vw!important;max-width:18vw!important;
    height:38px!important;max-height:38px!important;
    padding:4px 5px!important;
    border-radius:7px!important;
  }
  #karta-stadium-test .kr609-always-logs header{display:none!important}
  #karta-stadium-test .kr609-always-logs .kr609-logs-entries{gap:3px!important}
  #karta-stadium-test .kr609-always-logs .kr609-entry{font-size:9px!important;line-height:1.35!important}
  #karta-stadium-test .kr609-always-logs .kr609-entry span{-webkit-line-clamp:2!important;line-clamp:2!important}
  #karta-stadium-test .kr609-always-logs .kr609-entry:nth-child(n+2){display:none!important}
}

/* Mobile portrait: use only the narrow gap between the board and the actions.
   Board bottom is 103px in portrait; controls occupy roughly 0–55px. */
@media (orientation:portrait) and (max-width:900px) {
  #karta-stadium-test .stadium-layout > .kr609-always-logs {
    inset:auto 7px 60px 7px!important;
    top:auto!important;left:7px!important;right:7px!important;bottom:60px!important;
    width:auto!important;max-width:none!important;
    height:34px!important;max-height:34px!important;
    min-height:0!important;
    padding:4px 8px!important;
    border-radius:8px!important;
  }
  #karta-stadium-test .kr609-always-logs header{display:none!important}
  #karta-stadium-test .kr609-always-logs .kr609-logs-entries{gap:2px!important}
  #karta-stadium-test .kr609-always-logs .kr609-entry{font-size:10px!important;line-height:1.15!important;white-space:nowrap!important}
  #karta-stadium-test .kr609-always-logs .kr609-entry span{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #karta-stadium-test .kr609-always-logs .kr609-entry:nth-child(n+3){display:none!important}
}
