/* Homepage League Snapshot only.
   This file intentionally loads after style.css and players.css so the
   homepage can reuse the established Ultimate Card skins without changing
   the Crew or Player Profile pages. */

#home-snapshot .home-snapshot-layout{
  grid-template-columns:minmax(0,1fr) minmax(430px,.72fr);
  align-items:stretch;
}

#home-snapshot .home-snapshot-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:stretch;
}

#home-snapshot .home-snapshot-grid .snapshot-card{
  min-height:160px;
}

#home-snapshot .home-featured-player{
  display:grid;
  place-items:center;
  min-width:0;
}

#home-snapshot .home-featured-ultimate-shell{
  width:100%;
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:4px 8px;
}

#home-snapshot .home-featured-ultimate-kicker{
  color:var(--gold);
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.12em;
  line-height:1;
  text-align:center;
  text-transform:uppercase;
  text-shadow:0 0 10px rgba(255,184,28,.20);
}

#home-snapshot .home-featured-card-stage{
  width:100%;
  display:grid;
  grid-template-columns:minmax(170px,200px) minmax(190px,1fr);
  align-items:center;
  justify-content:center;
  gap:16px;
}

#home-snapshot .home-featured-ultimate-card{
  width:200px;
  max-width:100%;
  flex:0 0 auto;
  justify-self:center;
  clip-path:polygon(13% 5.5%,23% 1.4%,50% 0,77% 1.4%,87% 5.5%,88% 9.4%,92% 12.7%,100% 14%,100% 85.5%,91% 93.4%,50% 100%,9% 93.4%,0 85.5%,0 14%,8% 12.7%,12% 9.4%) !important;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-card-inner{
  grid-template-rows:48px minmax(0,1fr) 62px;
  padding:16px 14px 22px;
  clip-path:polygon(13% 5.5%,23% 1.4%,50% 0,77% 1.4%,87% 5.5%,88% 9.4%,92% 12.7%,100% 14%,100% 85.5%,91% 93.4%,50% 100%,9% 93.4%,0 85.5%,0 14%,8% 12.7%,12% 9.4%) !important;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-header{
  grid-template-columns:40px minmax(0,1fr) 34px;
  gap:4px;
  padding:4px 8px 0;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-overall{
  font-size:1.82rem;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-tier-code{
  min-width:26px;
  font-size:.63rem;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-edition{
  padding-top:3px;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-edition strong{
  font-size:.44rem;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-edition em{
  max-width:58px;
  padding:2px 4px;
  font-size:.29rem;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-chip{
  width:31px;
  height:31px;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-portrait{
  margin-top:-2px;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-portrait .player-avatar-wrap{
  width:112px;
  height:112px;
  max-width:100%;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-identity{
  padding:5px 4px 7px;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-identity h3{
  font-size:.88rem;
}

#home-snapshot .home-featured-ultimate-card .crew-ultimate-identity > span{
  margin-top:3px;
  font-size:.43rem;
}

#home-snapshot .home-featured-attributes{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

#home-snapshot .home-featured-attribute{
  position:relative;
  min-width:0;
  min-height:76px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:5px;
  padding:10px 11px;
  overflow:hidden;
  border:1px solid rgba(255,184,28,.20);
  border-radius:12px;
  color:#fff4cf;
  background:
    radial-gradient(circle at top right,rgba(255,184,28,.13),transparent 46%),
    linear-gradient(180deg,rgba(26,31,39,.98),rgba(12,16,22,.99));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 6px 14px rgba(0,0,0,.18);
}

#home-snapshot .home-featured-attribute::before{
  content:"";
  position:absolute;
  top:0;
  left:11px;
  width:34px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),rgba(255,184,28,.16));
}

#home-snapshot .home-featured-attribute-score{
  display:flex;
  align-items:baseline;
  gap:5px;
  min-width:0;
  line-height:1;
}

#home-snapshot .home-featured-attribute-score strong{
  color:#fff0b6;
  font-size:1.55rem;
  font-weight:950;
  letter-spacing:-.045em;
  text-shadow:0 0 12px rgba(255,184,28,.18);
}

#home-snapshot .home-featured-attribute-score span{
  color:var(--gold);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.055em;
}

#home-snapshot .home-featured-attribute small{
  max-width:100%;
  overflow:hidden;
  color:#b9c5d2;
  font-size:.54rem;
  font-weight:850;
  letter-spacing:.045em;
  line-height:1.15;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}

#home-snapshot .home-featured-profile-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:250px;
  padding:7px 12px;
  border:1px solid rgba(255,184,28,.24);
  border-radius:999px;
  color:#ffe29a;
  background:rgba(255,184,28,.08);
  font-size:.72rem;
  font-weight:850;
  line-height:1.25;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 6px 15px rgba(0,0,0,.18);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}

#home-snapshot .home-featured-profile-link:hover,
#home-snapshot .home-featured-profile-link:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(255,184,28,.48);
  color:#fff4cf;
  background:rgba(255,184,28,.14);
}

@media (max-width:1050px){
  #home-snapshot .home-snapshot-layout{
    grid-template-columns:1fr;
  }

  #home-snapshot .home-featured-ultimate-shell{
    padding-top:8px;
    padding-bottom:8px;
  }

  #home-snapshot .home-featured-card-stage{
    max-width:540px;
  }

  #home-snapshot .home-featured-ultimate-card{
    width:205px;
  }
}

@media (max-width:520px){
  #home-snapshot .home-snapshot-grid{
    grid-template-columns:1fr;
  }

  #home-snapshot .home-snapshot-grid .snapshot-card{
    min-height:142px;
  }

  #home-snapshot .home-featured-card-stage{
    max-width:360px;
    grid-template-columns:1fr;
    gap:12px;
  }

  #home-snapshot .home-featured-ultimate-card{
    width:190px;
  }

  #home-snapshot .home-featured-attributes{
    max-width:340px;
    justify-self:center;
  }

  #home-snapshot .home-featured-attribute{
    min-height:68px;
  }
}

@media (prefers-reduced-motion:reduce){
  #home-snapshot .home-featured-profile-link{
    transition:none;
  }
}
/* Keep intentionally dormant home-page modules out of the layout. */
.home-jump-nav[hidden],
#home-archetypes[hidden] {
  display: none !important;
}
