/* KARTA 1.5.5: one Ranked home action + a single, responsive mode picker. */
/* Three equally weighted home choices; override the old 4-column team layout. */
@media (min-width:901px){
 body.karta-test-home-view #karta-stadium-test#karta-stadium-test .wof-home-v349 .wof-real-actions{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-areas:none!important;
  width:min(940px,92%)!important;
 }
}
@media (max-width:900px) and (orientation:landscape){
 body.karta-test-home-view #karta-stadium-test#karta-stadium-test .wof-home-v349 .wof-real-actions{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-areas:none!important;
  width:min(94vw,790px)!important;
  gap:8px!important;
 }
 body.karta-test-home-view #karta-stadium-test#karta-stadium-test .wof-home-v349 .wof-real-action{padding:8px 10px!important;gap:8px!important;min-width:0!important}
 body.karta-test-home-view #karta-stadium-test#karta-stadium-test .wof-home-v349 .wof-real-action b{font-size:clamp(13px,2vw,17px)!important}
 body.karta-test-home-view #karta-stadium-test#karta-stadium-test .wof-home-v349 .wof-real-action small{font-size:clamp(9px,1.25vw,11px)!important}
}
@media (max-width:520px) and (orientation:portrait){
 body.karta-test-home-view #karta-stadium-test#karta-stadium-test .wof-home-v349 .wof-real-actions{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;gap:8px!important}
 body.karta-test-home-view #karta-stadium-test#karta-stadium-test .wof-home-v349 .wof-real-action{min-width:0!important}
}
#karta-stadium-test .kr155-ranked-entry{min-width:0}
/* Native modal is in the browser top layer, not overlaid by the home hero. */
#karta-stadium-test #karta-ranked-mode-v155.kr155-picker{
 box-sizing:border-box;width:min(420px,calc(100vw - 28px));max-width:calc(100vw - 28px);
 max-height:min(88dvh,620px);margin:auto;padding:19px;border-radius:19px;
 border:1px solid #43574d;background:#111e1a;color:#f2f4ed;
 box-shadow:0 26px 65px #000c,0 0 0 1px #0009;overflow-y:auto;
 font-family:Cairo,Tahoma,system-ui,sans-serif;direction:rtl;text-align:right;
}
#karta-stadium-test #karta-ranked-mode-v155.kr155-picker:not([open]){display:none!important}
#karta-stadium-test #karta-ranked-mode-v155::backdrop{background:rgba(3,10,9,.81);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
#karta-stadium-test .kr155-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 9px}
#karta-stadium-test .kr155-title{display:flex;align-items:center;gap:11px;min-width:0}
#karta-stadium-test .kr155-crown{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:12px;background:#29382d;color:#ebcb80;border:1px solid #7e754d;font-size:23px}
#karta-stadium-test .kr155-title>div{min-width:0}
#karta-stadium-test .kr155-title small{display:block;color:#a3b1a6;font:700 10px/1.3 system-ui,sans-serif;letter-spacing:1.3px}
#karta-stadium-test .kr155-title h2{margin:3px 0 0;color:#fff4dc;font:900 clamp(18px,4.5vw,22px)/1.35 Cairo,Tahoma,sans-serif}
#karta-stadium-test .kr155-close{flex:none;width:40px;height:40px;padding:0;border:1px solid #3f5149;border-radius:11px;background:#1a2823;color:#d9e1d9;font:400 28px/1 Cairo,Tahoma,sans-serif;cursor:pointer}
#karta-stadium-test .kr155-description{margin:0 0 16px;color:#afbbb1;font:600 12px/1.6 Cairo,Tahoma,sans-serif}
#karta-stadium-test .kr155-options{display:grid;gap:9px}
#karta-stadium-test .kr155-option{box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:93px;padding:12px;border:1px solid #385447;border-radius:14px;background:#1b2c24;color:#fff;cursor:pointer;direction:rtl;text-align:right;touch-action:manipulation;transition:background .16s ease,border-color .16s ease,transform .16s ease}
#karta-stadium-test .kr155-option:nth-child(2){background:#1b2830;border-color:#3c5263}
#karta-stadium-test .kr155-option-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:#335141;border:1px solid #4d715c;color:#f4dba6;font:700 26px/1 Arial,sans-serif}
#karta-stadium-test .kr155-option-icon svg{width:25px;height:25px;display:block;fill:none;stroke:currentColor;stroke-width:2.2}
#karta-stadium-test .kr155-option:nth-child(2) .kr155-option-icon{background:#293d4a;border-color:#4b6778;color:#d4e6f7}
#karta-stadium-test .kr155-option-content{display:grid;gap:3px;min-width:0;flex:1}
#karta-stadium-test .kr155-option-content b{font:900 19px/1.25 Cairo,Tahoma,sans-serif;color:#f8f9f5}
#karta-stadium-test .kr155-option-content small{font:600 11px/1.4 Cairo,Tahoma,sans-serif;color:#c4d0c5;white-space:normal}
#karta-stadium-test .kr155-option-content em{font:700 11px/1.35 Cairo,Tahoma,sans-serif;color:#e0ca9c;font-style:normal}
#karta-stadium-test .kr155-arrow{color:#b6c7bc;font-size:30px;line-height:1}
#karta-stadium-test .kr155-option:hover{border-color:#bdad7f;background:#274133}
#karta-stadium-test .kr155-option:nth-child(2):hover{background:#243b47}
#karta-stadium-test .kr155-close:hover{background:#2a3a32}
#karta-stadium-test .kr155-picker :is(button:focus-visible){outline:2px solid #e6c984;outline-offset:3px}
@media (max-width:420px){
 #karta-stadium-test #karta-ranked-mode-v155.kr155-picker{padding:15px;max-height:calc(100dvh - 22px)}
 #karta-stadium-test .kr155-option{min-height:85px;padding:10px;gap:9px}
 #karta-stadium-test .kr155-option-icon{width:40px;height:40px}
 #karta-stadium-test .kr155-option-content b{font-size:18px}
}
@media (max-height:390px) and (orientation:landscape){
 #karta-stadium-test #karta-ranked-mode-v155.kr155-picker{padding:10px 14px;max-height:calc(100dvh - 12px)}
 #karta-stadium-test .kr155-head{margin-bottom:4px}
 #karta-stadium-test .kr155-description{margin-bottom:7px}
 #karta-stadium-test .kr155-option{min-height:65px;padding:6px 10px}
 #karta-stadium-test .kr155-option-icon{width:36px;height:36px}
}
@media (prefers-reduced-motion:reduce){#karta-stadium-test .kr155-option{transition:none}}
