/* v588: intrinsic card panels, readable local Cairo type and visible pitch.
   Important rules belong to the first existing layer to supersede the old
   full-pitch panel rules in the generated bundle. No viewport-sized backdrop. */
@layer karta-mobile-render {
  #karta-stadium-test.karta-test .stadium-layout .board-center.stadium-center > .karta-classic-result-slot {
    position:absolute!important;inset:10% 8%!important;
    width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    margin:0!important;padding:0!important;overflow:visible!important;
    background:none!important;border:0!important;pointer-events:none!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .board-center.stadium-center > .karta-classic-result-slot:empty {display:none!important}
  #karta-stadium-test.karta-test .stadium-layout .board-center.stadium-center > .karta-classic-result-slot > .karta-classic-card-panel {
    display:grid!important;grid-template-columns:clamp(64px,24%,128px) minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;
    align-self:center!important;flex:0 1 540px!important;
    width:100%!important;height:auto!important;min-height:0!important;
    max-width:540px!important;max-height:100%!important;
    margin:0!important;padding:0!important;gap:0!important;
    container-type:normal!important;overflow:hidden!important;
    border:0!important;border-radius:16px!important;
    background:#101c1a!important;box-shadow:0 6px 20px #0004!important;
    color:#f5faf7!important;font-family:Cairo,Tahoma,Arial,sans-serif!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-column {
    padding:14px 8px!important;gap:0!important;align-self:stretch!important;
    background:#0c1513!important;border:0!important;justify-content:center!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel :is(.kc-card-hit,.kc-card-face) {
    height:clamp(88px,18vh,144px)!important;width:100%!important;
    max-height:100%!important;flex:0 0 auto!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-copy {
    padding:16px!important;gap:10px!important;justify-content:flex-start!important;
    min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;
    scrollbar-width:thin!important;scrollbar-color:#42675a transparent!important;
    overscroll-behavior:contain!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-header {
    display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
    align-items:center!important;gap:6px!important;
    padding:0 0 10px!important;margin:0!important;border:0!important;
    border-bottom:1px solid #ffffff12!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel :is(.kc-card-column>small,.kc-turn-header-main>small,.kc-card-status>small) {display:none!important}
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-turn-player {gap:6px!important}
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-turn-name {
    font:700 14px/1.6 Cairo,Tahoma,Arial,sans-serif!important;
    color:#f5faf7!important;white-space:normal!important;overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-turn-avatar {
    width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;flex:0 0 28px!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-status {display:grid!important;gap:4px!important;flex-shrink:0!important}
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-status>b {
    font:800 18px/1.55 Cairo,Tahoma,Arial,sans-serif!important;color:#fff!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-status>span {
    font:600 13px/1.75 Cairo,Tahoma,Arial,sans-serif!important;color:#d6e4dd!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-header .card-turn-clock {
    padding:4px 7px!important;gap:4px!important;align-self:center!important;
    margin:0!important;border:0!important;background:#ffffff08!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .card-turn-clock>span {display:none!important}
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .card-turn-clock>strong {font-size:20px!important;line-height:1.3!important}
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .card-turn-clock>em {font-size:11px!important;color:#d6e4dd!important}
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel :is(.kc-open-button,.kc-end-button) {
    min-height:44px!important;padding:7px 10px!important;max-width:none!important;
    border:0!important;border-radius:9px!important;
    background:#31d695!important;color:#07251b!important;
    font:800 14px/1.6 Cairo,Tahoma,Arial,sans-serif!important;flex-shrink:0!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .kc-card-actions-v588 {
    display:flex;flex-direction:column;gap:7px;flex-shrink:0;min-width:0;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .karta-end-turn-clock-v525 {
    display:flex!important;align-items:center!important;justify-content:center!important;
    flex-wrap:wrap!important;gap:4px!important;padding:0!important;margin:0!important;
    background:none!important;border:0!important;box-shadow:none!important;
    color:#d6e4dd!important;font:600 12px/1.6 Cairo,Tahoma,Arial,sans-serif!important;flex-shrink:0!important;
  }
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .karta-end-turn-clock-v525 strong {font-size:16px!important;color:#fff!important}
  #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel:has(.kc-special-controls) .kc-card-status {display:none!important}
  #karta-stadium-test.karta-test .stadium-layout .kc-special-controls .card-preview-copy {min-width:0!important;padding:0!important;gap:8px!important}
  #karta-stadium-test.karta-test .stadium-layout .kc-special-controls .card-preview-copy :is(b,strong) {font-size:13px!important;line-height:1.65!important;color:#e5eee9!important}
  #karta-stadium-test.karta-test .stadium-layout .kc-special-controls :is(button,.fe-btn) {font-size:13px!important;line-height:1.5!important;min-height:44px!important;white-space:normal!important;pointer-events:auto!important}
  /* Keep result panels out of the goal/save/miss replay. */
  #karta-stadium-test.karta-test .stadium-layout:has(.stadium-pitch .karta-duel-v444) .board-center.stadium-center > .karta-classic-result-slot,
  #karta-stadium-test.karta-test.karta-duel-replay-active .stadium-layout .board-center.stadium-center > .karta-classic-result-slot {display:none!important}
  @media (max-width:900px) {
    #karta-stadium-test.karta-test .stadium-layout .board-center.stadium-center > .karta-classic-result-slot {inset:10% 5%!important}
    #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-copy {padding:12px!important;gap:8px!important}
    #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-turn-name {font-size:13px!important}
    #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-status>b {font-size:16px!important}
  }
  @media (orientation:landscape) and (max-height:620px) {
    #karta-stadium-test.karta-test .stadium-layout .board-center.stadium-center > .karta-classic-result-slot {inset:8% 8%!important}
    #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-copy {padding:9px 12px!important;gap:5px!important}
    #karta-stadium-test.karta-test .stadium-layout .kc-card-actions-v588 {flex-direction:row;align-items:center;gap:9px}
    #karta-stadium-test.karta-test .stadium-layout .kc-card-actions-v588 .kc-end-button {width:auto!important;flex:1 1 auto!important;min-height:40px!important}
    #karta-stadium-test.karta-test .stadium-layout .kc-card-actions-v588 .karta-end-turn-clock-v525 {flex:0 1 130px!important;gap:3px!important;font-size:11px!important}
    #karta-stadium-test.karta-test .stadium-layout .kc-card-actions-v588 .karta-end-turn-clock-v525>span:first-child {display:none!important}

    #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-header {padding-bottom:5px!important}
    #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-status>b {font-size:15px!important}
    #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel .kc-card-status>span {font-size:12px!important;line-height:1.6!important}
    #karta-stadium-test.karta-test .stadium-layout .karta-classic-card-panel :is(.kc-card-face,.kc-card-hit) {height:84px!important}
  }
}
