/* v1.4.617: adaptive target-club introduction, no emoji glyph artifacts or dashed line. */
#karta-stadium-test .kr610-duel-intro {
 width:min(100%,590px);max-width:min(590px,calc(100vw - 16px));
 max-height:min(86dvh,650px);overflow:hidden;
 padding:clamp(12px,2.5vh,22px);margin:0 auto;
 background:linear-gradient(165deg,#182235,#0d1421);border:1px solid #8f7850;
 border-radius:16px;box-shadow:0 14px 42px #000a;box-sizing:border-box;
}
#karta-stadium-test .kr610-duel-intro *,
#karta-stadium-test .kr610-duel-intro *::before,
#karta-stadium-test .kr610-duel-intro *::after {box-sizing:border-box}
#karta-stadium-test .kr610-duel-stage {width:100%;min-width:0;gap:clamp(5px,1.3vh,12px)}
#karta-stadium-test .kr610-fighters {width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:clamp(5px,2vw,18px)}
#karta-stadium-test .kr610-fighters>.knowledge-player {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;max-width:100%;width:100%;text-align:center;overflow:hidden;background:transparent;border:0;margin:0;padding:0}
#karta-stadium-test .kr610-fighters>.knowledge-player .knowledge-player-avatar{display:grid;place-items:center;flex:none;width:clamp(34px,7.2vh,60px);height:clamp(34px,7.2vh,60px);margin:0;overflow:hidden}
#karta-stadium-test .kr610-fighters>.knowledge-player .knowledge-player-avatar :is(img,svg){display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
#karta-stadium-test .kr610-fighters>.knowledge-player>span:last-child{display:block;max-width:100%;min-width:0;width:100%;overflow:hidden}
#karta-stadium-test .kr610-fighters>.knowledge-player b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:900 clamp(11px,2.2vw,15px)/1.3 Cairo,Tahoma,sans-serif}
#karta-stadium-test .kr610-fighters>.knowledge-player small{display:block;color:#c9d0de;font:800 10px/1.3 Cairo,Tahoma,sans-serif}
#karta-stadium-test .kr610-versus{min-width:36px;text-align:center;font-size:clamp(19px,5vh,30px)}
#karta-stadium-test .kr610-target-club{box-sizing:border-box;width:min(100%,410px);max-width:100%;min-width:0;display:flex;justify-content:center;align-items:center;gap:10px;min-height:0;padding:10px 12px;border-radius:11px}
#karta-stadium-test .kr610-target-club :is(img){flex:0 0 auto;max-width:56px;width:clamp(32px,7vh,56px);height:clamp(32px,7vh,56px);object-fit:contain}
#karta-stadium-test .kr610-target-club>div{min-width:0;max-width:100%}
#karta-stadium-test .kr610-target-club :is(small,span){line-height:1.35;overflow-wrap:anywhere}
#karta-stadium-test .kr610-target-club strong{font-size:clamp(15px,3vw,22px);line-height:1.3;overflow-wrap:anywhere}
#karta-stadium-test .kr610-duel-stage p{font-size:clamp(11px,1.9vw,14px);line-height:1.5;max-width:100%;overflow-wrap:anywhere}
#karta-stadium-test .kr610-ball-path{position:relative;width:min(68%,300px);height:36px;max-width:100%;margin:0 auto;border:0!important;background:none!important;box-shadow:none!important;overflow:hidden;direction:ltr}
#karta-stadium-test .kr610-ball-path::before,
#karta-stadium-test .kr610-ball-path::after {content:none!important;display:none!important}
#karta-stadium-test .kr610-ball-path>.kr617-ball-vehicle{
 position:absolute;top:1px;left:auto;right:0;display:block;width:32px;height:32px;
 font-size:0;line-height:0;will-change:right;
 animation:kr617-ball-roll var(--kr616-intro-duration,2s) cubic-bezier(.23,.6,.36,1) both;
}
#karta-stadium-test .kr617-football{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 2px 3px #0006);animation:kr617-ball-spin var(--kr616-intro-duration,2s) ease-out both}
@keyframes kr617-ball-roll{0%{right:0}65%,100%{right:calc(100% - 32px)}}
@keyframes kr617-ball-spin{0%{transform:rotate(0deg)}65%,100%{transform:rotate(-520deg)}}
#karta-stadium-test .kr610-intro-progress{width:min(90%,400px);height:4px;flex:none}
/* The old centered green-pitch container must not scale or crop the mobile introduction. */
#karta-stadium-test .stadium-layout .game-state-modal-wrap.kr617-intro-mounted{
 position:fixed!important;inset:0!important;z-index:9998!important;
 width:100vw!important;height:var(--stadium-available-height,100dvh)!important;
 max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 overflow:hidden!important;pointer-events:none!important;transform:none!important;
}
#karta-stadium-test .stadium-layout .game-state-modal-wrap.kr617-intro-mounted>.game-state-modal{
 position:relative!important;inset:auto!important;transform:none!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
 padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
 overflow:hidden!important;min-width:0!important;min-height:0!important;
 background:transparent!important;border:0!important;box-shadow:none!important;pointer-events:none!important;
}
#karta-stadium-test .stadium-layout .game-state-modal-wrap.kr617-intro-mounted .kr610-duel-intro{
 flex:0 1 auto;max-width:min(540px,100%)!important;max-height:100%!important;overflow:hidden!important;
 pointer-events:none!important;
}
@media(max-width:760px){
 #karta-stadium-test .kr610-duel-intro{width:100%;padding:12px!important}
 #karta-stadium-test .kr610-duel-stage{gap:8px}
 #karta-stadium-test .kr610-target-club{width:100%;padding:9px 12px}
 #karta-stadium-test .kr610-duel-stage p{font-size:12px}
 #karta-stadium-test .kr610-ball-path{height:31px}
 #karta-stadium-test .kr610-ball-path>.kr617-ball-vehicle{width:28px;height:28px}
 @keyframes kr617-ball-roll{0%{right:0}65%,100%{right:calc(100% - 28px)}}
}
@media(orientation:landscape) and (max-height:520px){
 #karta-stadium-test .stadium-layout .game-state-modal-wrap.kr617-intro-mounted .kr610-duel-intro{
  width:min(560px,95vw)!important;max-height:calc(100% - 4px)!important;padding:7px 14px!important;border-radius:12px;
 }
 #karta-stadium-test .kr610-duel-stage{gap:3px!important}
 #karta-stadium-test .kr610-duel-kicker{font-size:10px!important;line-height:1.25}
 #karta-stadium-test .kr610-fighters>.knowledge-player .knowledge-player-avatar{width:31px!important;height:31px!important}
 #karta-stadium-test .kr610-fighters>.knowledge-player small{font-size:9px!important}
 #karta-stadium-test .kr610-fighters>.knowledge-player b{font-size:11px!important}
 #karta-stadium-test .kr610-target-club{width:min(100%,400px);padding:5px 9px!important;gap:8px}
 #karta-stadium-test .kr610-target-club img{width:31px!important;height:31px!important}
 #karta-stadium-test .kr610-target-club strong{font-size:15px!important}
 #karta-stadium-test .kr610-target-club :is(small,span){font-size:10px!important}
 #karta-stadium-test .kr610-ball-path{height:24px!important}
 #karta-stadium-test .kr610-ball-path>.kr617-ball-vehicle{top:1px;width:23px;height:23px}
 #karta-stadium-test .kr610-duel-stage p{font-size:10px!important;line-height:1.35!important}
 #karta-stadium-test .kr610-duel-stage>small:last-child{font-size:10px!important;line-height:1.2!important}
 #karta-stadium-test .kr610-intro-progress{height:3px!important}
 @keyframes kr617-ball-roll{0%{right:0}65%,100%{right:calc(100% - 23px)}}
}
@media(orientation:landscape) and (max-height:320px){
 #karta-stadium-test .kr610-duel-stage>p{display:none!important}
 #karta-stadium-test .kr610-duel-stage{gap:2px!important}
 #karta-stadium-test .kr610-target-club{padding:3px 7px!important}
}
@media(prefers-reduced-motion:reduce){#karta-stadium-test .kr617-ball-vehicle,#karta-stadium-test .kr617-football{animation:none!important}}
