/* v1.4.609: same classic aiming experience for the ranked kickoff. */
#karta-stadium-test .game-state-modal-wrap.kr609-opening-wrap {
  direction:rtl!important;
  position:fixed!important;
  inset:0!important;
  z-index:800!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:max(7px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left))!important;
  box-sizing:border-box!important;
}
#karta-stadium-test .kr609-opening-wrap>.game-state-modal {
  position:relative!important;
  width:min(96vw,870px)!important;
  max-width:870px!important;
  max-height:calc(100dvh - 20px)!important;
  padding:0!important;
  margin:auto!important;
  min-width:0!important;
  overflow:auto!important;
  box-sizing:border-box!important;
}
#karta-stadium-test .kr609-opening-card {
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  max-height:calc(100dvh - 22px)!important;
  box-sizing:border-box!important;
  overflow:auto!important;
  direction:rtl!important;
  background:linear-gradient(150deg,#111c22,#0d1820)!important;
  border:1px solid #3d625d!important;
  border-radius:15px!important;
  color:#f2f5f6!important;
  padding:clamp(10px,2vw,19px)!important;
}
#karta-stadium-test .kr609-opening-card header{text-align:center!important;margin:0 0 8px!important}
#karta-stadium-test .kr609-opening-card header>span{font-size:12px!important;color:#6fe1af!important;font-weight:900!important}
#karta-stadium-test .kr609-opening-card header h2{font-size:clamp(19px,3.1vw,27px)!important;line-height:1.35!important;margin:4px 0!important;color:#f9f6eb!important}
#karta-stadium-test .kr609-opening-card header small{font-size:11px!important;color:#bdd2cc!important}
#karta-stadium-test .kr609-opening-card .kr609-opening-timer{height:23px!important;min-height:23px!important;margin:8px 0 12px!important;overflow:hidden!important;position:relative!important;border-radius:14px!important;border:1px solid #46655b!important;background:#1e3031!important}
#karta-stadium-test .kr609-opening-card .kr609-opening-timer>i{height:100%!important;display:block!important;background:linear-gradient(90deg,#2b9d76,#5fd4a2)!important;transition:width .3s linear!important}
#karta-stadium-test .kr609-opening-card .kr609-opening-timer>b{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;font-size:15px!important;font-weight:900!important;color:#fff!important;text-shadow:0 1px 4px #000!important}
#karta-stadium-test .kr609-opening-card:not(.reveal)>main{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(125px,.65fr)!important;align-items:center!important;gap:12px!important}
#karta-stadium-test .kr609-opening-card .movement-question{min-width:0!important;text-align:center!important;padding:clamp(9px,2vw,18px)!important;background:#14262c!important;border:1px solid #344e53!important;border-radius:13px!important}
#karta-stadium-test .kr609-opening-card .movement-question h3{font-size:clamp(15px,2.5vw,22px)!important;color:#fff!important;line-height:1.6!important;margin:9px 0!important}
#karta-stadium-test .kr609-opening-card .guess-form{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin-top:12px!important}
#karta-stadium-test .kr609-opening-card .guess-form input{min-width:120px!important;max-width:250px!important;flex:1 1 120px!important;background:#08171c!important;color:#fff!important;text-align:center!important;border:1px solid #5d8b7f!important;border-radius:10px!important;font-size:19px!important;padding:8px!important}
#karta-stadium-test .kr609-opening-card .guess-form button{flex:0 0 auto!important;min-height:42px!important;padding:8px 16px!important;background:#35bd83!important;color:#062117!important}
#karta-stadium-test .kr609-opening-card .guess-target{width:min(100%,210px)!important;aspect-ratio:1!important;justify-self:center!important;margin:auto!important}
#karta-stadium-test .kr609-opening-card .kr609-opening-wait{font-size:11px!important;color:#bce8d4!important;margin:9px auto 0!important}
#karta-stadium-test .kr609-opening-card .kr609-opening-winner{padding:8px!important;border:1px solid #9d8648!important;background:#52452645!important;border-radius:10px!important;color:#f7dc93!important;text-align:center!important;font-weight:900!important}
#karta-stadium-test .kr609-opening-card.reveal .guess-reveal-layout{display:grid!important;grid-template-columns:minmax(155px,.9fr) minmax(0,1.1fr)!important;align-items:center!important;gap:12px!important;min-width:0!important}
#karta-stadium-test .kr609-opening-card .karta-aim-board{width:min(100%,320px)!important;min-width:0!important;margin:0 auto!important}
#karta-stadium-test .kr609-opening-card .karta-aim-board svg{max-height:min(43dvh,290px)!important;width:100%!important;aspect-ratio:1!important}
#karta-stadium-test .kr609-opening-card .guess-ranking-wrap{min-width:0!important}
#karta-stadium-test .kr609-opening-card .guess-rank-row{grid-template-columns:auto auto minmax(0,1fr) auto auto!important;gap:5px!important;min-width:0!important;padding:8px!important}
#karta-stadium-test .kr609-opening-card footer{font-size:11px!important;text-align:center!important;color:#c4d2d0!important;margin-top:8px!important}
/* v609: compact permanent chronological feed, separate from optional chat/events drawer. */
#karta-stadium-test .stadium-layout>.kr609-always-logs {
 position:absolute!important;display:flex!important;flex-direction:column!important;
 left:1.1%!important;right:auto!important;bottom:18%!important;
 width:clamp(220px,32vw,380px)!important;
 max-width:calc(100% - 12px)!important;max-height:min(35vh,270px)!important;
 z-index:55!important;min-width:0!important;min-height:0!important;
 border:1px solid #43725f!important;border-radius:12px!important;
 background:#0b1c1bea!important;box-shadow:0 5px 17px #0008!important;
 padding:8px!important;overflow:hidden!important;visibility:visible!important;
 opacity:1!important;pointer-events:none!important;direction:rtl!important;
 font-family:Cairo,Tahoma,sans-serif!important;color:#edf8ef!important;
}
#karta-stadium-test .kr609-always-logs header{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;margin:0 0 4px!important;border-bottom:1px solid #ffffff24!important;padding-bottom:4px!important}
#karta-stadium-test .kr609-always-logs header b{font-size:12px!important;line-height:1.3!important;color:#fff!important}
#karta-stadium-test .kr609-always-logs header small{font:800 9px Cairo,Tahoma,sans-serif!important;color:#4cdb9b!important}
#karta-stadium-test .kr609-logs-entries{display:flex!important;flex-direction:column!important;gap:4px!important;min-height:0!important;overflow:hidden!important}
#karta-stadium-test .kr609-entry{display:flex!important;align-items:flex-start!important;gap:6px!important;font-size:11px!important;line-height:1.4!important;min-height:0!important;color:#d7e8e1!important;overflow:hidden!important}
#karta-stadium-test .kr609-entry i{width:7px!important;height:7px!important;flex:0 0 7px!important;border-radius:50%!important;background:var(--entry-color,#37c88d)!important;margin-top:5px!important}
#karta-stadium-test .kr609-entry span{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;word-break:break-word!important}
#karta-stadium-test .kr609-entry b{color:#fff!important;font-weight:900!important}
/* Ensure debt recovery is prominent and action buttons cannot be mistaken as usable. */
#karta-stadium-test .kr609-debt-panel{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:7px!important;width:min(100%,420px)!important;margin:auto!important;padding:12px!important;text-align:center!important;background:#301d1aeF!important;border:1px solid #d38972!important;border-radius:12px!important;box-shadow:0 4px 19px #0007!important;color:#ffe8e2!important;font-size:clamp(10px,1.5vw,14px)!important;line-height:1.5!important}
#karta-stadium-test .kr609-debt-panel span{font-weight:900!important}
#karta-stadium-test .kr609-debt-panel b{font-size:11px!important}
#karta-stadium-test .kr609-debt-panel button{min-height:36px!important;padding:6px 14px!important;pointer-events:auto!important}
@media (max-width:980px) and (orientation:landscape){
 #karta-stadium-test .stadium-layout>.kr609-always-logs{left:1%!important;width:34vw!important;bottom:19%!important;max-height:40vh!important;padding:5px!important;border-radius:9px!important}
 #karta-stadium-test .kr609-entry{font-size:9px!important;line-height:1.3!important}
 #karta-stadium-test .kr609-logs-entries .kr609-entry:nth-child(n+3){display:none!important}
 #karta-stadium-test .kr609-opening-wrap>.game-state-modal{width:min(95vw,740px)!important}
 #karta-stadium-test .kr609-opening-card{max-height:90dvh!important}
 #karta-stadium-test .kr609-opening-card header h2{font-size:17px!important}
 #karta-stadium-test .kr609-opening-card .karta-aim-board svg{max-height:46dvh!important}
}
@media (orientation:portrait) and (max-width:900px){
 #karta-stadium-test .stadium-layout>.kr609-always-logs{position:absolute!important;left:2%!important;right:2%!important;bottom:58px!important;width:96%!important;max-width:none!important;max-height:79px!important;min-height:0!important;padding:5px 8px!important;z-index:55!important;border-radius:9px!important}
 #karta-stadium-test .kr609-always-logs header{margin-bottom:2px!important;padding-bottom:2px!important}
 #karta-stadium-test .kr609-always-logs header b{font-size:9px!important}
 #karta-stadium-test .kr609-logs-entries{gap:1px!important}
 #karta-stadium-test .kr609-entry{font-size:9px!important;line-height:1.2!important;white-space:nowrap!important}
 #karta-stadium-test .kr609-entry span{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 #karta-stadium-test .kr609-logs-entries .kr609-entry:nth-child(n+3){display:none!important}
 #karta-stadium-test .kr609-opening-wrap>.game-state-modal{width:min(95vw,490px)!important;max-height:94dvh!important}
 #karta-stadium-test .kr609-opening-card{max-height:92dvh!important;padding:9px!important}
 #karta-stadium-test .kr609-opening-card:not(.reveal)>main{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
 #karta-stadium-test .kr609-opening-card .guess-target{width:min(22vh,115px)!important}
 #karta-stadium-test .kr609-opening-card .movement-question{padding:8px!important}
 #karta-stadium-test .kr609-opening-card .movement-question h3{font-size:16px!important;line-height:1.4!important;margin:5px 0!important}
 #karta-stadium-test .kr609-opening-card .guess-form{margin-top:4px!important}
 #karta-stadium-test .kr609-opening-card .guess-form input{min-width:90px!important;width:48%!important;max-width:48%!important;height:40px!important;min-height:40px!important}
 #karta-stadium-test .kr609-opening-card .guess-form button{min-height:40px!important}
 #karta-stadium-test .kr609-opening-card.reveal .guess-reveal-layout{grid-template-columns:minmax(0,1fr)!important;gap:4px!important}
 #karta-stadium-test .kr609-opening-card.reveal .karta-aim-board{width:min(27vh,155px)!important}
 #karta-stadium-test .kr609-opening-card .karta-aim-board figcaption{display:none!important}
 #karta-stadium-test .kr609-opening-card .guess-ranking-title{margin:0 0 5px!important}
 #karta-stadium-test .kr609-opening-card .guess-rank-row{padding:4px!important;font-size:10px!important}
 #karta-stadium-test .kr609-opening-card .response-time{font-size:9px!important}
}
