/* DASM R6.37 — cross-environment UI sync.
   Shared corrections promoted across Beta, Staging and Live. */

/* Ownership filter semantics: My Teams is green; the reverse All Teams face is blue. */
html body #tableMine,
html body #teamsMine,
html body #aiMine{
  background:linear-gradient(135deg,#0a7c56,#006244)!important;
  border-color:#087052!important;
  color:#fff!important;
  box-shadow:0 5px 12px rgba(0,100,68,.16)!important;
}
html body #tableMine.active,
html body #teamsMine.active,
html body #aiMine.active{
  background:linear-gradient(135deg,#245a87,#174f7d)!important;
  border-color:#174f7d!important;
  color:#fff!important;
  box-shadow:0 5px 12px rgba(23,79,125,.17)!important;
}
@media (max-width:760px){
  html body #view-teams #teamsMine::after{content:'My Teams'!important;color:#fff!important}
  html body #view-teams #teamsMine.active::after{content:'All Teams'!important;color:#fff!important}
}

/* Tablet secondary navigation must not disappear behind older responsive layers. */
@media (min-width:761px) and (max-width:1366px){
  html body .tabs:not(.secondary-collapsed) #secondaryNav{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    width:100%!important;
    max-height:none!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
    gap:8px!important;
  }
  html body .tabs:not(.secondary-collapsed) #secondaryNav .tab.secondary{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:45px!important;
    white-space:nowrap!important;
  }
}

/* Baller of the Week: keep the crown clear of the DASM crest on phones/desktop. */
html body #view-grades .ai-feature.baller .ai-baller-art .ai-crown{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  flex:0 0 58px!important;
  width:58px!important;
  height:38px!important;
  margin:0 7px 0 0!important;
  color:#f5d94f!important;
  opacity:.94!important;
  filter:drop-shadow(0 0 6px rgba(255,222,80,.42))!important;
}
@media (max-width:760px){
  html body #view-grades .ai-feature.baller .ai-baller-art .ai-crown{
    flex-basis:52px!important;
    width:52px!important;
    height:34px!important;
    margin-right:5px!important;
  }
}

/* Touch tablets: perch the crown above the football without covering its DASM crest. */
@media (min-width:761px) and (max-width:1366px) and (hover:none) and (pointer:coarse){
  html body #view-grades .baller .ai-baller-art{
    position:absolute!important;
    right:18px!important;
    top:50%!important;
    width:112px!important;
    height:118px!important;
    transform:translateY(-50%)!important;
    display:block!important;
    visibility:visible!important;
    overflow:visible!important;
    opacity:1!important;
  }
  html body #view-grades .baller .ai-baller-art .ai-ball-wrap{
    display:grid!important;
    visibility:visible!important;
    position:absolute!important;
    right:0!important;
    top:50%!important;
    width:96px!important;
    height:100px!important;
    transform:translateY(-42%)!important;
    margin:0!important;
    place-items:center!important;
  }
  html body #view-grades .baller .ai-baller-art .ai-ball{
    width:94px!important;
    height:100px!important;
    object-fit:contain!important;
  }
  html body #view-grades .baller .ai-crown{
    display:block!important;
    visibility:visible!important;
    position:absolute!important;
    right:15px!important;
    top:2px!important;
    width:66px!important;
    height:42px!important;
    margin:0!important;
    transform:none!important;
    color:#f5d94f!important;
    opacity:.94!important;
    filter:drop-shadow(0 0 7px rgba(255,222,80,.42))!important;
    z-index:8!important;
  }
}
