.football .s-jersey {
  background:
    radial-gradient(ellipse at 49% 46%,transparent 25%,#070709a8 95%),
    linear-gradient(0deg,#09090deb,transparent 50%,#09090d8a),
    url("art/jersey-trophy-wall.webp") center/cover,
    #161416;
  color:var(--team-paper);
  isolation:isolate;
}
.football[data-active-slide~="s-jersey"] #share {visibility:hidden}
.football[data-active-slide~="s-jersey"] .shared-pill {display:none}
.football.hold[data-active-slide~="s-jersey"]:not(.shared) .progress {opacity:1;visibility:visible}

.jersey-spotlights {
  position:absolute;
  inset:0;
  pointer-events:none;
}
.jersey-spotlights i {
  position:absolute;
  inset:0;
  opacity:.48;
  background:conic-gradient(from 145deg at 16% 0,transparent 0deg,#fff4d591 8deg,#fff5d558 16deg,transparent 34deg);
  mask-image:linear-gradient(#0008,#000 20%,transparent 77%);
  transform-origin:16% 0;
  mix-blend-mode:screen;
}
.jersey-spotlights i + i {
  inset:0 auto 0 0;
  width:100%;
  scale:-1 1;
  opacity:.37;
}
.is-jersey-entering .jersey-spotlights i {animation:jersey-light .95s .45s both ease-out}
.is-jersey-entering .jersey-spotlights i + i {animation-delay:.64s}
@keyframes jersey-light {
  0% {opacity:0;transform:rotate(-13deg)}
  38% {opacity:.65}
  100% {transform:rotate(0)}
}

.jersey-content {
  position:absolute;
  inset:max(58px,8.3cqh) 5cqw max(42px,6.3cqh);
  container-type:size;
  --jersey-center:50%;
  --jersey-case-width:min(91cqw,75cqh);
  --jersey-case-top:calc(100% - var(--jersey-center) + var(--jersey-case-width) / 2);
  --jersey-hint-gap:clamp(8px,1.8cqh,13px);
  --jersey-hint-size:clamp(.86rem,min(4.6cqw,3.2cqh),1.16rem);
  --jersey-story-width:min(79cqw,48cqh,max(110px,calc((54cqh - 104px) * 9 / 8)));
  --jersey-preview-case-width:calc(var(--jersey-story-width) * .89);
}
.is-jersey-preview .jersey-content {--jersey-center:46%}
.jersey-stage {
  position:relative;
  width:100%;
  height:100%;
}
.jersey-content h2 {
  position:absolute;
  z-index:2;
  left:50%;
  bottom:calc(var(--jersey-case-top) + var(--jersey-hint-gap) + var(--jersey-hint-size) * 1.1 + 6px);
  translate:-50% 0;
  width:max-content;
  margin:0;
  font:italic 900 min(10.2cqw,8cqh)/.95 Barlow,sans-serif;
  text-transform:uppercase;
  text-shadow:0 3px 25px #000c;
  transition:bottom .48s cubic-bezier(.22,.7,.21,1);
}
.is-jersey-preview h2 {bottom:calc(100% - var(--jersey-center) + var(--jersey-story-width) * 8 / 9 + .24em)}
.is-jersey-entering h2 {
  --jersey-title-drop:calc(var(--jersey-case-width) * .29 + .4em);
  animation:jersey-title 1.15s both cubic-bezier(.21,.77,.26,1);
}
@keyframes jersey-title {
  0% {opacity:0;transform:translateY(calc(var(--jersey-title-drop) + 8px)) scale(.8)}
  32% {opacity:1;transform:translateY(var(--jersey-title-drop)) scale(1.43)}
  50% {transform:translateY(var(--jersey-title-drop)) scale(1.35)}
  100% {transform:none}
}
.jersey-case {
  position:absolute;
  top:var(--jersey-center);
  left:50%;
  width:var(--jersey-case-width);
  aspect-ratio:1;
  translate:-50% -50%;
  container-type:inline-size;
  transition:top .52s cubic-bezier(.22,.7,.21,1),width .52s cubic-bezier(.22,.7,.21,1);
}
.jersey-cabinet,.jersey-uniform,.jersey-editor,.jersey-shine {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.jersey-cabinet {
  border-radius:2.2cqw;
  background-position:center;
  background-size:cover;
  box-shadow:0 16px 36px #000a;
}
.jersey-uniform {filter:drop-shadow(0 4px 6px #000c)}
.jersey-shine {
  pointer-events:none;
  opacity:0;
  mask-repeat:no-repeat;
  mask-position:center;
  background:linear-gradient(128deg,transparent 40%,#fff4c53b 47%,#fffdf4f2 49%,#fff0cb99 50%,transparent 55%) 100% center / 310% 100% no-repeat;
  mix-blend-mode:screen;
}
.is-jersey-entering .jersey-cabinet {animation:jersey-cabinet-in .45s 1.03s both ease-out}
.is-jersey-entering {
  --jersey-reveal-delay:1.44s;
  --jersey-reveal-duration:.87s;
}
.is-jersey-entering .jersey-uniform {
  animation:jersey-uniform-in var(--jersey-reveal-duration) var(--jersey-reveal-delay) both ease-out;
}
.is-jersey-entering:not(.has-committed-edit) .jersey-shine {
  animation:jersey-shine-in .87s calc(var(--jersey-reveal-delay) + var(--jersey-reveal-duration) + .5s) both ease-out;
}
.jersey-shine.is-edit-shining {animation:jersey-shine-in .72s both ease-out}
@keyframes jersey-cabinet-in {
  from {opacity:0;transform:scale(.958)}
}
@keyframes jersey-uniform-in {
  from {opacity:0}
  to {opacity:1}
}
@keyframes jersey-shine-in {
  0% {opacity:0;background-position:100% 50%}
  20%,58% {opacity:1}
  100% {opacity:0;background-position:0 50%}
}
.is-jersey-preview .jersey-case {width:var(--jersey-preview-case-width)}
.is-jersey-preview .jersey-cabinet {border-radius:1cqw}
.jersey-story {
  position:absolute;
  top:var(--jersey-center);
  left:50%;
  width:var(--jersey-story-width);
  aspect-ratio:9/16;
  translate:-50% -50%;
  display:grid;
  align-content:space-between;
  padding:5% 4%;
  border:1px solid #ffffff32;
  border-radius:3.5cqw;
  overflow:hidden;
  background:radial-gradient(ellipse at 50% 54%,var(--team-red),var(--team-background) 83%);
  box-shadow:0 14px 36px #0007;
}
.jersey-story,.jersey-story-top,.jersey-story-location,.jersey-story-caption {
  opacity:0;
  transform:translateY(14px);
  transition:opacity .3s ease,transform .44s cubic-bezier(.2,.75,.25,1);
}
.is-jersey-preview :is(.jersey-story,.jersey-story-top,.jersey-story-location,.jersey-story-caption) {opacity:1;transform:none}
.is-jersey-preview :is(.jersey-story-top,.jersey-story-location) {transition-delay:.13s}
.is-jersey-preview .jersey-story-caption {transition-delay:.21s}
.jersey-story-progress {
  height:2px;
  margin-bottom:10px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--team-paper) 62%,#ffffff45 62%);
}
.jersey-story-team {display:flex;align-items:center;gap:7px;text-align:left}
.jersey-story-team .story-team-mark {width:min(10cqw,6.5cqh);height:min(8cqw,4.7cqh);font-size:.68rem}
.jersey-story-team strong,.jersey-story-team small {display:block}
.jersey-story-team strong {font-size:clamp(.68rem,3.2cqw,.92rem);line-height:1}
.jersey-story-team small {font-size:clamp(.56rem,2.5cqw,.75rem);opacity:.78}
.jersey-story-location {
  position:absolute;
  top:19.5%;
  left:50%;
  translate:-50% -50%;
  display:flex;
  align-items:center;
  gap:clamp(3px,1.3cqw,6px);
  max-width:88%;
  color:#fff;
  line-height:1.08;
  text-align:left;
  filter:drop-shadow(0 1px 3px #000a);
}
.jersey-story-location[hidden] {display:none}
.jersey-story-location svg {flex:none;width:clamp(10px,3.7cqw,16px)}
.jersey-story-location span {min-width:0}
.jersey-story-location :is(strong,small) {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jersey-story-location strong {font-size:clamp(.66rem,calc(var(--jersey-story-width) * .052),1rem);font-weight:800}
.jersey-story-location small {margin-top:2px;font-size:clamp(.57rem,calc(var(--jersey-story-width) * .044),.84rem);font-weight:600}
.jersey-story-location :is(strong,small):empty {display:none}
.jersey-story-caption {
  position:absolute;
  inset-inline:4%;
  top:calc(50% + var(--jersey-preview-case-width) / 2 + clamp(9px,2.4cqw,15px));
  text-align:center;
  font:900 clamp(.9rem,calc(var(--jersey-story-width) * .092),2rem)/.94 Barlow,sans-serif;
  text-transform:uppercase;
}
.jersey-story-caption strong {display:block;font-size:1.18em}

.jersey-reactions {
  position:absolute;
  top:var(--jersey-center);
  left:50%;
  width:var(--jersey-story-width);
  aspect-ratio:9/16;
  translate:-50% -50%;
  overflow:hidden;
  border-radius:3.5cqw;
  visibility:hidden;
  pointer-events:none;
}
.s-jersey.active.is-jersey-preview .jersey-reactions {visibility:visible}
.jersey-viewers {
  position:absolute;
  inset:auto auto 3.4% 5%;
  display:flex;
  align-items:center;
  color:#fff;
  font:800 clamp(.56rem,calc(var(--jersey-story-width) * .04),.8rem)/1 Barlow,sans-serif;
}
.jersey-viewers img {
  position:relative;
  width:clamp(18px,calc(var(--jersey-story-width) * .087),27px);
  height:auto;
  aspect-ratio:1;
  border:2px solid #21131b;
  border-radius:50%;
  background:#391c25;
}
.jersey-viewers img:first-child {z-index:1;translate:0 -1px}
.jersey-viewers img + img {margin-left:clamp(-10px,calc(var(--jersey-story-width) * -.036),-6px)}
.jersey-viewers span {
  margin-left:4px;
  padding:4px 6px;
  border:1px solid #ffffff2e;
  border-radius:999px;
  background:#20151ddb;
}
.s-jersey.active.is-jersey-preview .jersey-viewers {animation:jersey-rise .35s .36s both ease-out}
.jersey-hearts {
  position:absolute;
  inset:auto auto 5.8% 11%;
  --heart-height:calc(var(--jersey-story-width) * .288);
}
.jersey-hearts svg {
  position:absolute;
  left:0;
  bottom:0;
  width:clamp(8px,calc(var(--jersey-story-width) * var(--heart-size,.047)),16px);
  opacity:0;
  color:var(--heart-color,#ff365b);
  filter:drop-shadow(0 1px 2px #31081385);
}
.s-jersey.active.is-jersey-preview .jersey-hearts svg {
  animation:jersey-heart-rise 1.32s calc(.48s + var(--beat) * .33s) infinite both ease-out;
}
.s-jersey.active.is-jersey-preview .jersey-hearts .jersey-heart-flurry {
  animation:jersey-heart-rise 1.32s var(--flurry-delay) both ease-out;
}
.jersey-hearts svg:nth-child(3n + 1) {--heart-size:.038;--heart-color:#ff708f}
.jersey-hearts svg:nth-child(3n + 2) {--heart-size:.058;--heart-color:#f42c54}
@keyframes jersey-heart-rise {
  0% {opacity:0;transform:scale(.38)}
  13% {opacity:1;transform:translate(calc(var(--drift) * .45),calc(var(--heart-height) * -.22)) scale(1.07) rotate(-9deg)}
  40% {opacity:.92;transform:translate(calc(var(--drift) + 3px),calc(var(--heart-height) * -.63)) scale(.96) rotate(6deg)}
  57% {opacity:.6;transform:translate(calc(var(--drift) - 2px),calc(var(--heart-height) * -.84)) scale(.88) rotate(-4deg)}
  72%,100% {opacity:0;transform:translate(var(--drift),calc(-1 * var(--heart-height))) scale(.74)}
}

.jersey-editor {pointer-events:none}
.jersey-editor input,.jersey-reopen {
  position:absolute;
  left:50%;
  translate:-50% -50%;
  border:0;
  border-radius:4px;
  background:none;
  text-align:center;
}
.jersey-editor input {
  display:block;
  pointer-events:auto;
  color:transparent;
  caret-color:transparent;
  font:900 max(16px,6.6cqw) Barlow,sans-serif;
  padding:0 1%;
  text-transform:uppercase;
}
.jersey-editor input::placeholder {color:transparent}
.jersey-editor input:focus {
  color:var(--team-paper);
  background:#160b13d9;
  caret-color:currentColor;
  user-select:text;
}
.jersey-editor input:focus::placeholder {color:#fff8}
.jersey-editor .jersey-name {top:var(--jersey-name-y);width:46%;height:max(36px,11%)}
.jersey-editor .jersey-number {
  top:var(--jersey-number-y);
  width:40%;
  height:25%;
  font-size:max(16px,23cqw);
}
.jersey-reopen {top:44%;width:37%;height:37%;cursor:pointer}
.jersey-content [inert] {visibility:hidden}
.is-jersey-entering .jersey-editor {animation:jersey-controls-in .34s 1.94s both}
@keyframes jersey-controls-in {from {visibility:hidden;opacity:0}}
.jersey-edit-hint {
  left:57%;
  width:clamp(32px,14cqw,49px);
  translate:-44% -13%;
}
.jersey-edit-hint-name {top:var(--jersey-name-y);--tap-delay:3.55s}
.jersey-edit-hint-number {top:var(--jersey-number-y);--tap-delay:5.2s}
.is-jersey-entering .jersey-editor:not(.has-edited) .jersey-edit-hint {
  visibility:visible;
  animation:pack-tap-prompt 1.35s var(--tap-delay) ease-in-out both;
}
.is-jersey-entering .jersey-editor:not(.has-edited) .jersey-edit-hint::before {
  animation:pack-tap-ring 1.35s var(--tap-delay) ease-out both;
}

.jersey-footer {
  position:absolute;
  inset-inline:0;
  top:calc(var(--jersey-center) + var(--jersey-case-width) / 2 + clamp(10px,2.5cqh,17px));
  display:grid;
  place-items:start center;
}
.is-jersey-preview .jersey-footer {
  top:calc(var(--jersey-center) + var(--jersey-story-width) * 8 / 9 + 10px);
}
.jersey-tap {
  position:absolute;
  z-index:2;
  inset-inline:0;
  bottom:calc(var(--jersey-case-top) + var(--jersey-hint-gap));
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.4em;
  margin:0;
  font:800 var(--jersey-hint-size)/1.1 Barlow,sans-serif;
  text-shadow:0 2px 7px #000a;
  pointer-events:none;
}
.jersey-tap svg {width:1em;height:1em}
.is-jersey-entering .jersey-tap {animation:jersey-rise .42s 1.94s both ease-out}
.is-jersey-preview .jersey-tap {visibility:hidden}
.jersey-actions {
  display:grid;
  justify-items:center;
  gap:8px;
  --jersey-social-size:clamp(34px,6cqh,44px);
  --jersey-social-gap:10px;
}
.jersey-action,.jersey-social {
  display:grid;
  place-items:center;
  border:0;
  cursor:pointer;
  padding:0;
}
.jersey-action {
  min-height:38px;
  padding:0 15px;
  border-radius:999px;
  font:800 .84rem Barlow,sans-serif;
}
.jersey-share {
  position:relative;
  z-index:1;
  grid-auto-flow:column;
  gap:7px;
  background:#fff;
  color:#19171a;
}
.jersey-share svg {width:1rem;height:1rem}
.jersey-socials {display:flex;gap:var(--jersey-social-gap);padding-top:3px}
.jersey-social {
  position:relative;
  width:var(--jersey-social-size);
  aspect-ratio:1;
  border-radius:50%;
  background:#fff;
  color:#19171a;
  --launch-x:0px;
  --launch-y:calc(-30px - var(--jersey-social-size) / 2);
  --bubble-tilt:10deg;
}
.jersey-social::before {
  content:"";
  position:absolute;
  top:-7px;
  left:var(--tail-x,50%);
  width:14px;
  height:12px;
  translate:-50% 0;
  rotate:var(--tail-tilt,0deg);
  transform-origin:50% 100%;
  clip-path:polygon(50% 0,100% 100%,0 100%);
  background:#fff;
}
.jersey-social::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(ellipse 62% 84% at 2% 32%,transparent 87%,#ff9aba 89%,#ffe598 91%,#a5e3cf 93%,#a6c5ff 95%,#ccafff 97%,transparent 99%) 145% 50% / 190% 100% no-repeat;
  opacity:0;
  pointer-events:none;
}
.jersey-social svg {position:relative;z-index:1;width:47%;fill:currentColor}
.jersey-social:first-child {
  --launch-x:calc(var(--jersey-social-size) + var(--jersey-social-gap));
  --tail-x:62%;
  --tail-tilt:28deg;
  --bubble-tilt:-15deg;
  --social-delay:.44s;
}
.jersey-social:last-child {
  --launch-x:calc(-1 * (var(--jersey-social-size) + var(--jersey-social-gap)));
  --tail-x:38%;
  --tail-tilt:-28deg;
  --bubble-tilt:15deg;
  --social-delay:.52s;
}
.is-jersey-preview .jersey-share {animation:jersey-rise .32s .18s both ease-out}
.is-jersey-preview .jersey-social {animation:jersey-social-pop .78s var(--social-delay,.36s) both ease-out}
.is-jersey-preview .jersey-social::after {
  animation:jersey-social-shimmer .44s calc(var(--social-delay,.36s) + .42s) both ease-in-out;
}
@keyframes jersey-rise {from {opacity:0;transform:translateY(9px) scale(.78)}}
@keyframes jersey-social-shimmer {
  0% {opacity:0;background-position:145% 50%}
  27%,67% {opacity:.46}
  100% {opacity:0;background-position:-12% 50%}
}
@keyframes jersey-social-pop {
  0% {opacity:0;transform:translate(var(--launch-x),var(--launch-y)) scale(.15)}
  22% {opacity:1;transform:translate(calc(var(--launch-x) * .52),-17px) rotate(calc(var(--bubble-tilt) * -.7)) scale(.82)}
  48% {transform:translate(calc(var(--launch-x) * -.14),5px) rotate(var(--bubble-tilt)) scale(1.1,.92)}
  67% {transform:translate(calc(var(--launch-x) * .07),-4px) rotate(calc(var(--bubble-tilt) * -.57)) scale(.96,1.05)}
  85% {transform:translateY(2px) rotate(calc(var(--bubble-tilt) * .23))}
  100% {transform:none}
}
.jersey-share:disabled,.jersey-social:disabled {opacity:.55;cursor:default}
.jersey-actions button:focus-visible,.jersey-reopen:focus-visible,.jersey-editor input:focus-visible {
  outline:2px solid var(--team-paper);
  outline-offset:2px;
}
.jersey-status {
  position:absolute;
  inset-inline:0;
  bottom:-20px;
  margin:0;
  text-align:center;
  font-size:.74rem;
}
.is-loading .is-jersey-entering *,.paused .is-jersey-entering * {animation-play-state:paused}
.jersey-shine.is-edit-shining {animation-play-state:running}
@media (prefers-reduced-motion:reduce) {
  .s-jersey *,.jersey-social::after,.jersey-edit-hint::before {animation:none!important;transition:none!important}
}
