/* Sprint40 PC Home Wide Phase1
   Isolation contract:
   - Home only
   - Wide desktop only: starts when the legacy 1480px cap actually becomes restrictive
   - 1366/1440 and PC Narrow remain unchanged
   - iPad/iPhone remain unchanged
   - Existing stylesheets are not edited
*/

/* Shell math:
   viewport > 1808px => 280px sidebar + 48px main padding + 1480px legacy cap.
   From that point, allow Home to grow fluidly to the full available main-column width.
*/
@media (min-width:1809px){
  .kirin-race-screen:has(.kirin-decision-card){
    width:100%!important;
    max-width:none!important;
  }
}


/* Sprint40 Final QA v1 */
/* Theme 3: PC scrollbar visual integration.
   PC standard/wide: >=1366.
   Covers both viewport scrollbar and left sidebar/race-tree scrollbar.
*/
@media (min-width:1366px){
  html,
  body,
  .kirin-sidebar,
  .kirin-race-list{
    scrollbar-color:#343a35 #0a0d0b;
    scrollbar-width:thin;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .kirin-sidebar::-webkit-scrollbar,
  .kirin-race-list::-webkit-scrollbar{
    width:8px;
    height:8px;
  }
  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track,
  .kirin-sidebar::-webkit-scrollbar-track,
  .kirin-race-list::-webkit-scrollbar-track{
    background:#0a0d0b;
  }
  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb,
  .kirin-sidebar::-webkit-scrollbar-thumb,
  .kirin-race-list::-webkit-scrollbar-thumb{
    background:#343a35;
    border:2px solid #0a0d0b;
    border-radius:999px;
  }
}
