/* player-card.css — styles CSVE organisés par responsabilité. */

.roster-edit {
  margin-top: .8rem;
}

.roster-edit summary {
  font-size: .7rem;
  font-weight: 900;
  cursor: pointer;
}

.roster-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  margin-top: .55rem;
}

.roster-edit-form label {
  display: grid;
  gap: .15rem;
  color: #d8f4e1;
  font-size: .63rem;
  font-weight: 800;
}

.roster-edit-form input,
.roster-edit-form select {
  min-width: 0;
  padding: .35rem;
  border: 0;
  border-radius: 7px;
  background: var(--surface-content-soft);
  color: var(--ink);
  font-size: .72rem;
}

.roster-edit-form .roster-photo-field,
.roster-edit-form button {
  grid-column: 1/-1;
}

.roster-edit-form button {
  min-height: 34px;
  font-size: .75rem;
}

.roster-editor {
  margin-top: .75rem;
}

.roster-editor summary {
  cursor: pointer;
  font-size: .74rem;
  font-weight: 900;
}

.roster-editor-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .42rem;
  margin-top: .55rem;
}

.roster-editor-form label {
  display: grid;
  gap: .15rem;
  color: #d8f4e1;
  font-size: .61rem;
  font-weight: 800;
}

.roster-editor-form input,
.roster-editor-form select {
  min-width: 0;
  padding: .38rem;
  border: 0;
  border-radius: 7px;
  background: var(--surface-content-soft);
  color: var(--ink);
  font-size: .72rem;
}

.roster-editor-photo,
.roster-editor-form button,
.roster-readonly {
  grid-column: 1/-1;
}

.roster-readonly {
  margin: .15rem 0;
  color: #d8f4e1;
  font-size: .63rem;
}

.roster-editor-form button {
  min-height: 35px;
  font-size: .72rem;
}

.roster-edit-panel {
  margin-top: 1rem;
  padding: 1rem;
}

.roster-manager-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: 1rem;
}

.roster-manager-form label {
  display: grid;
  gap: .25rem;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: .86rem;
  font-weight: 700;
}

.roster-manager-form input,
.roster-manager-form select {
  min-height: 40px;
  padding: .5rem .6rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-content-soft);
  color: var(--ink);
}

.roster-manager-wide,
.roster-manager-form button,
.roster-locked {
  grid-column: 1/-1;
}

.roster-locked {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .65rem;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  font-size: .72rem;
}

.roster-locked span {
  padding: .25rem .4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.roster-locked b {
  color: var(--ink);
}

.roster-locked small {
  width: 100%;
}

.player-banner-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(290px,1fr));
  gap: 1rem;
}

.player-banner-card {
  overflow: hidden;
  border: 1px solid var(--surface-content-border);
  border-radius: 18px;
  background: var(--surface-content);
  box-shadow: 0 8px 20px #0c482014;
}

.player-banner-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 43%;
  min-height: 196px;
  overflow: hidden;
  background: linear-gradient(125deg,#191a1c 0%,#202124 50%,#292b2f 100%);
}

.player-banner-hero:after {
  content: "";
  position: absolute;
  width: 15rem;
  height: 15rem;
  right: 24%;
  top: -8rem;
  border: 30px solid #08713d0b;
  border-radius: 50%;
  transform: rotate(20deg);
}

.player-banner-title {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 1rem;
}

.player-banner-title strong {
  display: block;
  color: var(--green);
  font-size: 3.9rem;
  line-height: .74;
  font-weight: 900;
  letter-spacing: -.1em;
}

.player-banner-title span {
  display: block;
  margin-top: .8rem;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.player-banner-title h2 {
  margin: .08rem 0;
  font-size: 1.35rem;
  letter-spacing: -.04em;
}

.player-banner-title p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.player-banner-photo {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 0;
  border-left: 1px solid #ffffff80;
  padding: 0;
  background: #c6dfd0;
  cursor: zoom-in;
}

.player-banner-photo img,
.player-banner-photo>span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.player-banner-photo>span {
  display: grid;
  place-items: center;
  background: #176a45;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

.player-banner-photo i {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  padding: .28rem .4rem;
  border-radius: 7px;
  background: rgba(30, 31, 34, .9);
  color: var(--ink);
  font-size: .6rem;
  font-style: normal;
  font-weight: 900;
}

.player-banner-details {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.player-banner-details span {
  min-width: 0;
  padding: .68rem .38rem;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: .65rem;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.player-banner-details span:last-child {
  border-right: 0;
}

.player-banner-details b {
  display: block;
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .54rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.player-banner-stats {
  padding: .75rem .85rem;
}

.player-banner-stats h3 {
  margin: 0 0 .6rem;
  color: var(--green);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.banner-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .45rem;
}

.banner-stats span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: .35rem;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  font-size: .57rem;
  font-weight: 800;
  text-align: center;
}

.banner-stats b {
  display: block;
  color: var(--green);
  font-size: 1.22rem;
}

.banner-no-stats {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
}

.player-banner-edit {
  width: calc(100% - 1.7rem);
  min-height: 35px;
  margin: 0 .85rem .85rem;
  border: 1px solid var(--surface-content-border);
  border-radius: 9px;
  background: var(--surface-content-soft);
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
}

@media (max-width:520px) {
  .player-banner-details {
    grid-template-columns: repeat(2,1fr);
  }
  .player-banner-details span:nth-child(2) {
    border-right: 0;
  }
  .player-banner-details span:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

.player-profile-roster {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.2rem;
}

.player-profile-card {
  overflow: hidden;
  border: 1px solid var(--surface-content-border);
  border-radius: 22px;
  background: var(--surface-content);
  box-shadow: 0 12px 28px #0c482012;
}

.player-profile-hero {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  background: linear-gradient(115deg,#191a1c 0%,#202124 49%,#292b2f 100%);
}

.player-profile-hero:after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg,#f9fdf9 0%,#f9fdf9eF 42%,#f9fdf956 62%,#f9fdf900 82%);
  pointer-events: none;
}

.player-immersive-photo {
  position: absolute;
  inset: 0 0 0 32%;
  width: 68%;
  border: 0;
  padding: 0;
  background: #d6e8da;
  cursor: zoom-in;
}

.player-immersive-photo img,
.player-immersive-photo>span {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.player-immersive-photo>span {
  display: grid;
  place-items: center;
  background: #176a45;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
}

.player-profile-name {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 245px;
  width: 62%;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem;
}

.player-profile-name strong {
  color: var(--green);
  font-size: 4.5rem;
  line-height: .68;
  font-weight: 950;
  letter-spacing: -.12em;
}

.player-profile-name span {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.player-profile-name h2 {
  margin: .1rem 0;
  font-size: 1.5rem;
  letter-spacing: -.05em;
}

.player-profile-name p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.player-photo-zoom {
  position: absolute;
  z-index: 3;
  right: .65rem;
  bottom: .65rem;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid #ffffffa8;
  border-radius: 50%;
  background: #08713de6;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1;
}

.player-profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .65rem .8rem;
  background: transparent;
}

.player-profile-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: .28rem;
  color: var(--ink);
  font-size: .68rem;
  font-weight: 800;
}

.player-profile-facts b {
  color: var(--muted);
  font-size: .57rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.player-profile-facts span:not(:last-child):after {
  content: "";
  width: 3px;
  height: 3px;
  margin-left: .18rem;
  border-radius: 50%;
  background: #87a393;
}

.player-profile-stats {
  padding: .2rem .8rem .75rem;
}

.player-profile-stats .banner-stats {
  grid-template-columns: repeat(3,1fr);
  gap: .35rem;
}

.player-profile-stats .banner-stats span {
  min-height: 49px;
  border-radius: 8px;
  background: var(--surface-content-soft);
  font-size: .58rem;
}

.player-profile-stats .banner-stats b {
  font-size: 1.12rem;
}

.player-profile-stats .banner-no-stats {
  padding: .4rem 0;
  font-size: .7rem;
}

.player-profile-edit {
  min-height: 29px;
  margin: 0 .8rem .75rem;
  padding: .25rem .5rem;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: .62rem;
  font-weight: 900;
}

.roster-editor-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: .65rem;
}

.roster-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #06140bd9;
}

.roster-editor-dialog {
  position: relative;
  z-index: 1;
  width: min(100%,760px);
  max-height: calc(100vh - 1.3rem);
  overflow-y: auto;
  border: 1px solid #ffffff55;
  border-radius: 18px;
  background: var(--surface-content);
  box-shadow: 0 20px 50px #0008;
}

.player-photo-close {
  position: absolute;
  z-index: 2;
  top: .55rem;
  right: .55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 31, 34, .9);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.roster-editor-dialog {
  width: min(100%,620px);
  padding: 1rem;
}

.roster-editor-dialog .title {
  padding-right: 2rem;
}

.roster-editor-dialog .roster-manager-form {
  margin-bottom: 0;
}

.roster-editor-modal {
  box-sizing: border-box;
  height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  padding: .65rem max(.65rem, env(safe-area-inset-right, 0px)) .65rem max(.65rem, env(safe-area-inset-left, 0px));
  overflow: hidden;
  overscroll-behavior: contain;
  z-index: 110;
}

.roster-editor-modal[data-roster-editor-local] {
  top: var(--player-edit-viewport-top, 0px);
  bottom: auto;
  height: var(--player-edit-viewport-height, 100dvh);
  min-height: 0;
}

.player-profile-edit-dialog {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: min(760px, calc(var(--player-edit-viewport-height, 100dvh) - max(.65rem, env(safe-area-inset-top, 0px)) - max(.65rem, env(safe-area-inset-bottom, 0px))));
  min-height: 0;
  max-height: calc(var(--player-edit-viewport-height, 100dvh) - max(.65rem, env(safe-area-inset-top, 0px)) - max(.65rem, env(safe-area-inset-bottom, 0px)));
  padding: 0;
  overflow: hidden;
}

.player-profile-edit-dialog .player-edit-modal-header,
.player-profile-edit-dialog .player-edit-modal-footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: var(--surface-content);
}

.player-profile-edit-dialog .player-edit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: calc(.8rem + env(safe-area-inset-top, 0px)) 1rem .8rem;
  border-bottom: 1px solid var(--line);
}

.player-profile-edit-dialog .player-edit-modal-header .title {
  min-width: 0;
  padding-right: 0;
}

.player-profile-edit-dialog .player-edit-modal-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.player-profile-edit-dialog .player-edit-modal-header .eyebrow {
  display: none;
}

.player-profile-edit-dialog .player-edit-modal-header h2 {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .28);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.player-profile-edit-dialog .player-edit-close,
.player-profile-edit-dialog .player-edit-modal-footer button {
  min-width: 44px;
  min-height: 44px;
}

.player-profile-edit-dialog .player-edit-close {
  position: static;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.player-profile-edit-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  gap: 0;
  margin-top: 0;
}

.player-profile-edit-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 1rem;
}

.player-profile-edit-body > label {
  min-width: 0;
}

.player-profile-edit-body input,
.player-profile-edit-body select {
  min-height: 44px;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-weight: 400;
}

.player-profile-edit-dialog .player-edit-modal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .6rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.player-profile-edit-dialog .player-edit-modal-footer button {
  grid-column: auto;
  width: 100%;
}

.secondary-position-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.secondary-position-editor-heading small {
  display: block;
  margin-top: .2rem;
}

.secondary-position-editor-toggle {
  flex: 0 0 auto;
  min-height: 44px;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-content-soft);
  color: var(--ink);
  font-weight: 800;
}

.secondary-position-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}

.secondary-position-chip,
.secondary-position-empty {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .35rem .65rem;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
}

.secondary-position-empty {
  color: var(--muted);
}

.secondary-position-panel {
  margin-top: .7rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.secondary-position-panel .secondary-position-point {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width:650px) {
  .player-profile-edit-dialog {
    width: min(100%, 620px);
    border-radius: 14px;
  }

  .player-profile-edit-body {
    grid-template-columns: 1fr;
    padding: .9rem;
  }

  .player-profile-edit-body .roster-manager-wide {
    grid-column: auto;
  }

  .player-profile-edit-dialog .player-edit-modal-footer {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .secondary-position-editor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-position-editor-toggle {
    width: 100%;
  }
}

@media (max-width:720px) {
  .player-profile-roster {
    grid-template-columns: 1fr;
  }
  .player-profile-hero {
    min-height: 235px;
  }
  .player-profile-name {
    min-height: 235px;
  }
  .player-profile-name strong {
    font-size: 4rem;
  }
}

@media (max-width:390px) {
  .player-profile-name {
    width: 66%;
    padding: .85rem;
  }
  .player-profile-name strong {
    font-size: 3.5rem;
  }
  .player-profile-name h2 {
    font-size: 1.25rem;
  }
  .player-profile-facts {
    gap: .28rem;
    padding: .55rem .65rem;
  }
  .player-profile-facts span {
    font-size: .62rem;
  }
}

.player-card {
  overflow: hidden;
  border: 1px solid var(--surface-content-border);
  border-radius: 20px;
  background: var(--surface-content);
  box-shadow: 0 10px 26px #0b4b2612;
}

.player-banner {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: linear-gradient(115deg,#191a1c 0%,#202124 44%,#292b2f 100%);
}

.player-shapes {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg,transparent 0 43%,#08713d0d 43% 46%,transparent 46% 52%,#08713d0a 52% 55%,transparent 55%),radial-gradient(circle at 77% 22%,#08713d18 0 3px,transparent 3px 100%);
  background-size: auto,12px 12px;
}

.player-watermark {
  position: absolute;
  z-index: 1;
  left: 39%;
  top: 50%;
  width: 230px;
  opacity: .12;
  transform: translate(-50%,-50%);
}

.player-identity {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 230px;
  width: 55%;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.5rem;
}

.player-number {
  color: var(--green);
  font-size: 5.6rem;
  line-height: .68;
  font-weight: 950;
  letter-spacing: -.12em;
}

.player-lastname {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.player-name {
  margin: .05rem 0;
  font-size: 1.75rem;
  letter-spacing: -.06em;
}

.player-nickname {
  margin: .1rem 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.player-position {
  margin: .42rem 0 0;
  color: var(--green);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.player-photo {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.player-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#eff8f1 0%,transparent 28%,transparent);
}

.player-photo img,
.player-banner-initials {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.player-banner-initials {
  display: grid;
  place-items: center;
  background: #188048;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.player-details-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  min-height: 39px;
  border: 0;
  border-top: 1px solid #e0ece3;
  background: var(--surface-content-soft);
  color: var(--green);
  font-size: .74rem;
  font-weight: 900;
}

.player-details-toggle span {
  transition: transform .25s;
}

.player-details.open+.player-edit-link {
}

.player-details.open~.player-details-toggle span {
  transform: rotate(180deg);
}

.player-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .35s ease,opacity .22s ease;
}

.player-details.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.player-details>div {
  min-height: 0;
  overflow: hidden;
}

.player-info-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin: 0 1rem;
  padding: .9rem 0;
  border-top: 1px solid #e4ede6;
}

.player-info-row span {
  padding: .15rem .75rem;
  border-right: 1px solid #dce8df;
  text-align: center;
  font-size: .75rem;
  font-weight: 800;
}

.player-info-row span:last-child {
  border: 0;
}

.player-info-row b {
  display: block;
  margin-bottom: .28rem;
  color: #6b8272;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.player-stats {
  margin: 0 1rem;
  padding: .3rem 0 1rem;
}

.player-stats h3 {
  margin: .35rem 0 .65rem;
  color: #08713d;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.player-stats>div {
  display: grid;
  grid-template-columns: repeat(3,1fr);
}

.player-stats span {
  padding: .2rem .75rem;
  border-right: 1px solid #dce8df;
  text-align: center;
  color: #607568;
  font-size: .64rem;
  font-weight: 800;
}

.player-stats span:last-child {
  border: 0;
}

.player-stats b {
  display: block;
  margin-bottom: .1rem;
  color: #102b1b;
  font-size: 1.45rem;
}

.player-edit-link {
  min-height: 30px;
  margin: 0 .85rem .65rem;
  border: 0;
  background: transparent;
  color: #08713d;
  font-size: .62rem;
  font-weight: 900;
}

.player-edit-dialog {
  width: min(100%,650px);
}

@media (max-width:650px) {
  .player-banner {
    min-height: 195px;
  }
  .player-identity {
    min-height: 195px;
    width: 64%;
    padding: 1rem;
  }
  .player-number {
    font-size: 4.4rem;
  }
  .player-name {
    font-size: 1.4rem;
  }
  .player-photo {
    width: 55%;
  }
  .player-watermark {
    left: 56%;
    width: 180px;
  }
  .player-info-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .player-info-row span {
    border-right: 0;
    border-bottom: 1px solid #edf3ee;
    padding: .48rem;
  }
  .player-info-row span:last-child {
    border-bottom: 0;
  }
  .player-stats>div {
    grid-template-columns: repeat(3,1fr);
  }
}

.player-details {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .38s ease,opacity .22s ease;
}

.player-details.open {
  max-height: 420px;
  opacity: 1;
}

.player-details>div {
  overflow: visible;
}

.player-details-toggle:has(+ .player-details.open) span {
  transform: rotate(180deg);
}

.player-shapes {
  background: repeating-linear-gradient(123deg,transparent 0 94px,#0b6b3510 94px 125px,transparent 125px 174px,#fff7 174px 178px,transparent 178px 250px);
  background-size: auto;
}

.player-shapes:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(#176a451a .6px,transparent .9px);
  background-size: 5px 5px;
  opacity: .24;
}

.player-watermark {
  left: 51%;
  width: 310px;
  opacity: .09;
  mix-blend-mode: multiply;
}

.player-identity {
  min-height: 330px;
  width: 57%;
  padding: 2rem 2.2rem;
  pointer-events: none;
}

.player-number {
  font-family: "Arial Black","Segoe UI",sans-serif;
  font-size: 6.9rem;
  font-style: italic;
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.085em;
  background: linear-gradient(130deg,#0e8c47,#003e22);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.player-lastname {
  font-family: "Arial Black","Segoe UI",sans-serif;
  margin-top: .8rem;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.045em;
  color: #073c23;
  width: max-content;
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
}

.player-name {
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .28);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -.045em;
  color: #152e21;
  width: max-content;
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
}

.player-nickname {
  font-size: .85rem;
  letter-spacing: .12em;
  margin-top: .45rem;
}

.player-position {
  font-size: .86rem;
  letter-spacing: .13em;
  margin-top: .8rem;
  color: #0a6937;
}

.player-position:before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #138949;
  vertical-align: middle;
  margin-right: .55rem;
}

.player-photo {
  width: 43%;
  right: 2%;
  background: none;
  overflow: hidden;
}

.player-photo:after {
  display: none;
}

.player-photo img {
  background: transparent;
  object-fit: contain;
  object-position: bottom;
}

.player-photo-silhouette img {
  clip-path: polygon(50% 8.2%,55% 8.5%,59% 10%,62% 13%,63.5% 17%,63.5% 22%,65% 24%,64% 28%,62.5% 31%,61.5% 36%,66% 39%,77% 42%,84% 46%,89% 51%,92% 57%,94% 64%,96% 72%,94% 77%,93% 83%,90% 87%,84% 91%,82% 100%,18% 100%,16% 91%,10% 87%,7% 82%,5% 77%,3% 71%,6% 62%,9% 53%,13% 47%,19% 44%,27% 41%,34% 39%,38% 37%,37% 33%,35% 29%,34% 25%,35% 22%,36% 16%,39% 12%,44% 9%);
}

.player-banner-initials {
  background: transparent;
  color: #08713d30;
  font-size: 6rem;
  letter-spacing: -.08em;
}

.player-details-toggle {
  background: #f9fcfa;
  border-top: 1px solid #dceadf;
  min-height: 42px;
  font-size: .7rem;
  letter-spacing: .03em;
}

.player-info-row {
  padding: 1.3rem 0;
  margin: 0 1.6rem;
  border-top: 0;
}

.player-info-row b {
  font-size: .63rem;
  letter-spacing: .09em;
}

.player-stats {
  margin: 0 1.6rem;
  padding: .35rem 0 1.3rem;
  border-top: 1px solid #e3ece6;
}

.player-stats h3 {
  font-size: .68rem;
  letter-spacing: .16em;
}

.player-stats b {
  font-size: 1.8rem;
  font-weight: 800;
}

.player-edit-link {
  margin-top: .25rem;
}

@media (max-width:650px) {
  .player-banner,
.player-identity {
    min-height: 270px;
  }
  .player-number {
    font-size: 4.8rem;
  }
  .player-lastname {
    font-size: 1.45rem;
  }
  .player-name {
    font-size: 1.22rem;
  }
  .player-nickname {
    font-size: .65rem;
    letter-spacing: .05em;
  }
  .player-position {
    font-size: .74rem;
  }
  .player-photo-silhouette img {
  }
  .player-watermark {
    width: 210px;
    left: 59%;
  }
  .player-info-row,
.player-stats {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (prefers-reduced-motion:reduce) {
  .player-details {
    transition: none;
  }
}

.player-photo-silhouette img {
  clip-path: url(#camille-portrait-outline);
}

.player-card-actions {
  display: flex;
  gap: .5rem;
  padding: .25rem .55rem;
  border-top: 1px solid #dceadf;
  background: #f9fcfa;
}

.player-card-actions .player-details-toggle {
  flex: 1;
  min-height: 30px;
  height: 30px;
  font-size: .66rem;
  border: 0;
  background: transparent;
}

.player-card-actions .player-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: .35rem .7rem;
  border: 1px solid #a7cfb2;
  border-radius: 8px;
  background: #fff;
  color: #075b32;
  font-size: .68rem;
}

.player-banner-highlight {
  max-width: 92%;
  margin: .85rem 0 0;
  padding: .38rem .65rem .42rem;
  border-left: 2px solid #159653;
  border-radius: 0 8px 8px 0;
  background: #ffffff9c;
  color: #075b32;
  font-family: Georgia,"Times New Roman",serif;
  font-size: .88rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.player-info-row {
  background: #f8fbf9;
  border-radius: 12px;
  margin-top: 1rem;
  margin-bottom: .55rem;
}

.player-info-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 1.6rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid #e3ece6;
}

.player-info-extra span {
  padding: .25rem .75rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 800;
}

.player-info-extra b {
  display: block;
  margin-bottom: .3rem;
  color: #6b8272;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.roster-manager-form small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.player-photo-upload {
  padding: .75rem;
  border: 1px dashed #9bc7a8;
  border-radius: 10px;
  background: #f7fbf8;
}

.player-photo-upload>span {
  color: var(--deep);
  font-weight: 900;
}

.player-photo-upload input {
  margin-top: .35rem;
}

.player-photo-upload small {
  display: block;
  margin-top: .35rem;
}

@media (max-width:650px) {
  .player-banner-highlight {
    max-width: 100%;
    margin-top: .6rem;
    padding: .28rem .45rem;
    font-size: .72rem;
  }
  .player-info-extra {
    margin-left: 1rem;
    margin-right: 1rem;
  }
.player-card-actions {
  padding: .25rem .55rem;
}
}

.player-options-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.player-options-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

@media (max-width:650px) {
  .player-options-toggle {
    width: 32px;
    height: 30px;
  }
}

.player-card-actions {
  position: relative;
  display: block;
}

.player-card-actions .player-details-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.player-card-actions .player-options-wrap {
  position: absolute;
  top: 50%;
  right: .8rem;
  transform: translateY(-50%);
}

@media (max-width:650px) {
  .player-card-actions .player-options-wrap {
    right: .55rem;
  }
}

.player-details-action-center {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.player-details-action-center .player-details-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  align-items: center;
  justify-content: center;
  padding: .5rem 1.25rem;
}

.player-card-actions .player-options-wrap {
  z-index: 3;
}

.player-card {
  border: 1px solid #afcfba;
  border-radius: 26px;
  box-shadow: 0 18px 42px #0b432018;
  background: #fff;
}

.player-banner {
  isolation: isolate;
  min-height: 345px;
  background: linear-gradient(118deg,#ffffff 0%,#f3faf5 45%,#d1ead9 100%);
}

.player-banner:before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -7%;
  top: -12%;
  width: 47%;
  height: 125%;
  background: linear-gradient(145deg,#08713d1c,#08713d04 55%,transparent);
  transform: skewX(-15deg);
  pointer-events: none;
}

.player-shapes {
  opacity: .78;
}

.player-watermark {
  z-index: 1;
  filter: drop-shadow(0 4px 2px #fff8);
}

.player-identity {
  z-index: 3;
  width: 56%;
  padding: 2.15rem 2.45rem;
}

.player-number {
  text-shadow: 0 3px 0 #ffffffa8;
}

.player-lastname {
  display: inline-flex;
  align-self: flex-start;
  padding: .32rem .55rem;
  margin-top: .9rem;
  border-radius: 5px;
  background: #0a6b3810;
  color: #075b32;
  font-size: .72rem;
  letter-spacing: .1em;
}

.player-name {
  margin-top: .22rem;
  color: #102b1b;
}

.player-nickname {
  padding-left: .15rem;
}

.player-position {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: max-content;
  margin-top: .65rem;
  padding: .32rem .55rem;
  border: 1px solid #0a713d2e;
  border-radius: 999px;
  background: #ffffff9e;
}

.player-position:before {
  margin-right: 0;
}

.player-photo {
  z-index: 2;
  right: 1%;
  width: 44%;
  filter: drop-shadow(-14px 16px 13px #064d2a25);
}

.player-card-actions {
  position: relative;
  padding: .25rem .55rem;
  background: linear-gradient(90deg,#fbfdfb,#f0f8f2);
}

.player-card-actions:before {
  content: none;
  display: none;
}

.player-card-actions .player-details-toggle {
  min-height: 30px;
  height: 30px;
  color: #075b32;
}

.player-card-actions .player-edit-link {
  box-shadow: 0 2px 6px #0b4b2610;
}

.player-info-row {
  margin: 1.15rem 1.6rem .65rem;
  padding: 1rem 0;
  background: linear-gradient(100deg,#f5faf6,#fbfdfb);
  box-shadow: inset 0 0 0 1px #dceadf;
}

.player-info-row span {
  font-size: .8rem;
}

.player-info-row b,
.player-info-extra b {
  color: #59806a;
}

.player-info-extra {
  padding-bottom: 1.2rem;
}

.player-stats {
  margin: 0 1.6rem;
  padding: 1.05rem 0 1.4rem;
}

.player-stats>div {
  gap: .55rem;
}

.player-stats span {
  border: 0;
  border-radius: 10px;
  background: #f4f9f5;
  padding: .55rem .35rem;
  color: #5b7463;
}

.player-stats b {
  color: #075b32;
  font-size: 1.7rem;
}

.player-banner-highlight {
  box-shadow: 0 5px 15px #0b4b2610;
}

@media (max-width:650px) {
  .player-banner {
    min-height: 280px;
  }
  .player-identity {
    width: 59%;
    padding: 1.35rem 1.1rem;
  }
  .player-lastname {
    margin-top: .65rem;
    padding: .22rem .38rem;
    font-size: .59rem;
  }
  .player-position {
    margin-top: .45rem;
    padding: .24rem .4rem;
  }
  .player-photo {
    width: 49%;
    right: 0;
  }
  .player-stats span {
    padding: .45rem .2rem;
  }
}

.player-card {
  border: 1px solid #bfd8c7;
  border-radius: 22px;
  box-shadow: 0 12px 35px #174f2910;
}

.player-banner {
  min-height: 330px;
  background: linear-gradient(112deg,#f8fcf9 0%,#f0f8f3 48%,#d9eee0 100%);
}

.player-banner:before {
  content: none;
}

.player-shapes {
  opacity: 1;
}

.player-watermark {
  z-index: 1;
  filter: none;
}

.player-identity {
  z-index: 3;
  width: 57%;
  padding: 2rem 2.2rem;
}

.player-number {
  text-shadow: none;
}

.player-lastname {
  display: block;
  padding: 0;
  margin-top: .8rem;
  border-radius: 0;
  background: transparent;
  color: #073c23;
  font-size: 2.35rem;
  letter-spacing: -.045em;
}

.player-name {
  margin: .05rem 0;
  color: #152e21;
}

.player-nickname {
  padding-left: 0;
}

.player-position {
  display: block;
  width: auto;
  margin-top: .8rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.player-position:before {
  margin-right: .55rem;
}

.player-photo {
  z-index: 2;
  right: 2%;
  width: 43%;
  filter: none;
}

.player-card-actions {
  position: relative;
  padding: .25rem .55rem;
  background: transparent;
}

.player-card-actions:before {
  content: none;
}

.player-card-actions .player-details-toggle {
  min-height: 30px;
  height: 30px;
  color: #08713d;
}

.player-card-capture {
  position: absolute;
  left: .7rem;
  top: calc(-61cqw + 2rem);
  z-index: 5;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #08713d;
  font-size: 0;
  line-height: 1;
  transform: none;
}

.player-card.is-capturing .player-card-actions {
  visibility: hidden;
}

.player-card-capture::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: radial-gradient(circle at center, currentColor 0 3px, transparent 3.5px);
}

.player-card-capture::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 6px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}

.player-card-capture:disabled {
  opacity: .55;
}

.player-card-actions .player-edit-link {
  box-shadow: none;
}

.player-info-row {
  margin: 1rem 1.6rem .55rem;
  padding: 1.3rem 0;
  background: transparent;
  box-shadow: none;
}

.player-info-row span {
  font-size: .75rem;
}

.player-info-row b,
.player-info-extra b {
  color: #6b8272;
}

.player-info-extra {
  padding-bottom: 1.1rem;
}

.player-stats {
  margin: 0 1.6rem;
  padding: .35rem 0 1.3rem;
}

.player-stats>div {
  gap: 0;
}

.player-stats span {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: .2rem .75rem;
  color: #607568;
}

.player-stats b {
  color: #102b1b;
  font-size: 1.8rem;
}

.player-card-highlight {
  margin: 0 1.6rem;
  padding: .65rem .85rem;
  border: 1px solid #cce2d3;
  border-radius: 10px;
  background: #f6fbf7;
  color: #075b32;
}

.player-card-highlight span {
  display: block;
  color: #15854a;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.player-card-highlight p {
  margin: .18rem 0 0;
  font-family: Georgia,"Times New Roman",serif;
  font-size: .9rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width:650px) {
  .player-card {
    border-radius: 20px;
  }
  .player-banner {
    min-height: 270px;
  }
  .player-identity {
    width: 57%;
    padding: 1.3rem 1rem;
  }
  .player-lastname {
    margin-top: .8rem;
    padding: 0;
    font-size: 1.45rem;
  }
  .player-position {
    margin-top: .8rem;
    padding: 0;
  }
  .player-photo {
    width: 52%;
    right: 0;
  }
  .player-info-row {
    margin: 1rem;
    padding: .35rem 0;
  }
  .player-stats {
    margin: 0 1rem;
    padding-bottom: 1rem;
  }
  .player-stats span {
    padding: .2rem;
  }
  .player-stats b {
    font-size: 1.45rem;
  }
  .player-card-highlight {
    margin: 0 1rem;
    padding: .55rem .65rem;
  }
}

.player-banner.has-highlight {
  padding-bottom: 62px;
}

.player-banner.has-highlight .player-photo {
  height: calc(100% - 62px);
  bottom: 62px;
}

.player-banner-highlight {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: none;
  height: 62px;
  margin: 0;
  padding: .55rem 2.2rem;
  border: 0;
  border-top: 1px solid #acd4b8;
  border-radius: 0;
  background: linear-gradient(90deg,#f6fbf7,#e5f3e9);
  box-shadow: none;
  color: #075b32;
  overflow: hidden;
}

.player-banner-highlight span {
  display: block;
  color: #16844b;
  font-family: Inter,ui-sans-serif,system-ui,sans-serif;
  font-size: .57rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.player-banner-highlight p {
  margin: .12rem 0 0;
  font-family: Georgia,"Times New Roman",serif;
  font-size: .88rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 116px;
  margin-top: .7rem;
  text-align: center;
}

.player-position:before {
  display: none;
}

.player-position span {
  display: block;
  color: #0a6937;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.player-position b {
  display: block;
  width: 100%;
  margin-top: .22rem;
  padding-top: .22rem;
  border-top: 1px solid #14914c66;
  color: #075b32;
  font-size: .84rem;
  letter-spacing: .13em;
}

@media (max-width:650px) {
  .player-banner.has-highlight {
    padding-bottom: 55px;
  }
  .player-banner.has-highlight .player-photo {
    height: calc(100% - 55px);
    bottom: 55px;
  }
  .player-banner-highlight {
    height: 55px;
    padding: .42rem 1rem;
  }
  .player-banner-highlight span {
    font-size: .5rem;
  }
  .player-banner-highlight p {
    font-size: .72rem;
  }
  .player-position {
    width: 90px;
    margin-top: .55rem;
  }
  .player-position span {
    font-size: .6rem;
  }
  .player-position b {
    font-size: .7rem;
  }
}

.player-banner.has-highlight {
  padding-bottom: 0;
}

.player-banner.has-highlight .player-photo {
  height: 100%;
  bottom: 0;
}

.player-banner-highlight {
  top: 50%;
  right: 48%;
  bottom: auto;
  left: 33%;
  height: auto;
  min-height: 0;
  padding: .52rem .65rem;
  border: 1px solid #9bc9a9;
  border-radius: 10px;
  background: #f8fcf9e8;
  box-shadow: 0 7px 18px #075b3614;
  transform: translateY(-50%);
}

.player-banner-highlight p {
  font-size: .8rem;
  line-height: 1.25;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.player-banner-highlight span {
  font-size: .5rem;
}

@media (max-width:650px) {
  .player-banner.has-highlight .player-photo {
    height: 100%;
    bottom: 0;
  }
  .player-banner-highlight {
    top: auto;
    right: 54%;
    bottom: 1rem;
    left: 8%;
    padding: .38rem .45rem;
    transform: none;
  }
  .player-banner-highlight p {
    font-size: .67rem;
    -webkit-line-clamp: 3;
  }
  .player-banner-highlight span {
    font-size: .46rem;
    letter-spacing: .08em;
  }
}

.player-banner.has-highlight .player-identity {
  width: 50%;
  justify-content: center;
}

.player-banner.has-highlight .player-banner-highlight {
  position: static;
  display: block;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: .7rem 0 0;
  padding: 0;
  border: 0;
  border-left: 2px solid #159653;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: #075b32;
}

.player-banner.has-highlight .player-banner-highlight span {
  display: block;
  padding-left: .45rem;
  color: #16844b;
  font-family: Inter,ui-sans-serif,system-ui,sans-serif;
  font-size: .52rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.player-banner.has-highlight .player-banner-highlight p {
  margin: .14rem 0 0;
  padding-left: .45rem;
  font-family: Georgia,"Times New Roman",serif;
  font-size: .82rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.18;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width:650px) {
  .player-banner.has-highlight {
    min-height: 330px;
  }
  .player-banner.has-highlight .player-identity {
    width: 48%;
    padding-right: .6rem;
  }
  .player-banner.has-highlight .player-banner-highlight {
    margin-top: .55rem;
  }
  .player-banner.has-highlight .player-banner-highlight span {
    font-size: .46rem;
  }
  .player-banner.has-highlight .player-banner-highlight p {
    font-size: .66rem;
    -webkit-line-clamp: 3;
  }
}

.player-banner {
  min-height: 340px;
  height: 340px;
}

.player-identity {
  min-height: 340px;
}

.player-photo {
  width: 48%;
  height: 100%;
  overflow: hidden;
}

.player-card-actions {
  min-height: 0;
}

@media (max-width:650px) {
  .player-banner,
.player-identity {
    min-height: 285px;
    height: 285px;
  }
  .player-photo {
    width: 55%;
    height: 100%;
  }
  .player-banner.has-highlight {
    min-height: 300px;
    height: 300px;
  }
}

.player-card {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.player-banner {
  flex: 0 0 340px;
}

.player-card-actions {
  flex: 0 0 auto;
}

.player-details {
  flex: 0 0 auto;
  max-height: 0;
  overflow: hidden;
}

.player-details.open {
  flex: none;
  max-height: none;
  overflow: visible;
}

.player-profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 210px);
  gap: 1rem;
  align-items: start;
}

.player-profile-facts {
  min-width: 0;
}

@media (max-width:650px) {
  .player-card {
    height: auto;
    min-height: 0;
  }
  .player-banner {
    flex-basis: 300px;
  }
}

.player-identity {
  width: 52%;
}

.player-photo {
  width: 58%;
  right: 0;
  overflow: hidden;
}

@media (max-width:650px) {
  .player-identity {
    width: 52%;
  }
  .player-photo {
    width: 60%;
    right: 0;
  }
}

.player-photo {
  left: auto;
  right: 0;
  width: 62%;
  z-index: 2;
  overflow: hidden;
}

.player-identity {
  z-index: 3;
  width: 52%;
  background: transparent;
}

@media (max-width:650px) {
  .player-photo {
    right: 0;
    width: 64%;
  }
  .player-identity {
    width: 52%;
    background: transparent;
  }
}

.player-photo img {
  object-fit: cover;
  object-position: 50% 8%;
  transform: none;
}

.player-photo-silhouette img {
  clip-path: none;
}

.roster-photo-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .5rem;
  margin-top: .55rem;
}

.roster-photo-actions label,
.roster-photo-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .4rem .55rem;
  border: 1px solid #a7cfb2;
  border-radius: 8px;
  background: #fff;
  color: #075b32;
  font-size: .68rem;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.secondary-position-pitch {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 3 / 5;
  margin: .75rem auto 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 12px;
  background-color: #168b2b;
  background-image: repeating-linear-gradient(0deg, rgba(0,70,12,.13) 0 9%, rgba(70,190,45,.11) 9% 18%), repeating-linear-gradient(105deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px), linear-gradient(90deg, rgba(0,70,12,.1), transparent 45%, rgba(0,70,12,.1));
  box-shadow: inset 0 0 0 1px rgba(0,55,10,.35), 0 8px 18px rgba(9,74,24,.18);
}

.secondary-position-pitch:before,
.secondary-position-pitch:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.75);
  pointer-events: none;
}

.secondary-position-pitch:before {
  inset: 4% 4%;
  border-radius: 0;
  box-shadow: inset 0 18% 0 -1px transparent;
}

.secondary-position-pitch:after {
  left: 4%; right: 4%; top: 50%; height: 0;
  border-width: 1px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.15), 0 0 0 0 transparent;
}

.secondary-position-pitch-label {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.9);
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.secondary-position-point {
  position: absolute;
  z-index: 1;
  display: block;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transform: translate(-50%, -50%);
}

.secondary-position-point-dot {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  transform: translate(-50%, -50%);
}

.secondary-position-point-label {
  display: block;
  position: absolute;
  left: 50%;
  top: calc(50% + 13px);
  color: transparent;
  font-size: .58rem;
  font-weight: 900;
  line-height: 1;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}

.secondary-position-point.selected {
  z-index: 2;
}

.secondary-position-point.selected .secondary-position-point-dot {
  border-color: #f47721;
  background: #f47721;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

.secondary-position-point.selected .secondary-position-point-label {
  color: #eff8f2;
  visibility: visible;
}

.secondary-position-editor {
  display: grid;
  gap: .45rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.secondary-position-editor small {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .72rem;
}

.secondary-position-editor .secondary-position-editor-heading b {
  color: var(--ink);
}

.secondary-position-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.secondary-position-choice {
  min-height: 44px;
  padding: .65rem .7rem;
  border: 1px solid #cfe0d3;
  border-radius: 10px;
  background: #fff;
  color: #245d3c;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  touch-action: manipulation;
}

.secondary-position-choice.selected {
  border-color: #245d3c;
  background: #245d3c;
  color: #fff;
}

@media (max-width: 360px) {
  .secondary-position-choice-list {
    grid-template-columns: 1fr;
  }
}

.secondary-position-selected-list {
  margin: 0;
  color: #245d3c;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
}

.secondary-position-selected-list.muted {
  color: #718277;
  font-weight: 500;
}

.secondary-position-pitch.editable .secondary-position-point {
  cursor: pointer;
  touch-action: manipulation;
}

.secondary-position-pitch.editable .secondary-position-point:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.point-ac-left { left: 30%; top: 19%; }

.point-ac-right { left: 70%; top: 19%; }

.point-moc { left: 50%; top: 32%; }

.point-mg { left: 14%; top: 43%; }

.point-md { left: 86%; top: 43%; }

.point-mdc-left { left: 38%; top: 53%; }

.point-mdc-right { left: 62%; top: 53%; }

.point-dg { left: 20%; top: 68%; }

.point-dc { left: 50%; top: 68%; }

.point-dd { left: 80%; top: 68%; }

.point-gb { left: 50%; top: 87%; }

.position-level-pitch .secondary-position-point-dot {
  width: 27px;
  height: 27px;
  border-width: 2px;
  background: rgba(255,255,255,.78);
}

.position-level-pitch .secondary-position-point-label {
  top: 50%;
  visibility: visible;
  color: #075b32;
  font-size: .54rem;
  transform: translate(-50%, -50%);
}

.position-level-pitch .secondary-position-point.level-green .secondary-position-point-dot {
  border-color: #d9ffe7;
  background: #159c50;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.position-level-pitch .secondary-position-point.level-orange .secondary-position-point-dot {
  border-color: #fff0df;
  background: #f47721;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.position-level-pitch .secondary-position-point.level-red .secondary-position-point-dot {
  border-color: #ffe2e2;
  background: #d94040;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.position-level-pitch .secondary-position-point.level-green .secondary-position-point-label,
.position-level-pitch .secondary-position-point.level-orange .secondary-position-point-label,
.position-level-pitch .secondary-position-point.level-red .secondary-position-point-label {
  color: #fff;
}

.position-level-pitch .point-ac { left: 50%; top: 16%; }

.position-level-pitch .point-ag { left: 15%; top: 28%; }

.position-level-pitch .point-ad { left: 85%; top: 28%; }

.position-level-pitch .point-moc { left: 50%; top: 42%; }

.position-level-pitch .point-mg { left: 22%; top: 54%; }

.position-level-pitch .point-mc { left: 50%; top: 54%; }

.position-level-pitch .point-md { left: 78%; top: 54%; }

.position-level-pitch .point-mdc { left: 50%; top: 65%; }

.position-level-pitch .point-dg { left: 16%; top: 76%; }

.position-level-pitch .point-dc { left: 50%; top: 76%; }

.position-level-pitch .point-dd { left: 84%; top: 76%; }

.position-level-pitch .point-gb { left: 50%; top: 89%; }

@media (max-width: 440px) {
  .secondary-position-pitch { width: min(100%, 300px); }
  .secondary-position-point { width: 46px; height: 46px; }
  .secondary-position-point-dot { width: 20px; height: 20px; }
  .position-level-pitch .secondary-position-point-dot { width: 27px; height: 27px; }
}

.player-profile-facts .player-info-row {
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: .35rem;
  padding-bottom: .35rem;
}

.player-profile-facts .player-info-extra {
  gap: 0;
  padding-top: 0;
  padding-bottom: .35rem;
}

.player-profile-facts .player-info-row span,
.player-profile-facts .player-info-extra span {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  min-width: 0;
  padding: .35rem .55rem;
  border: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.player-profile-facts .player-info-row b,
.player-profile-facts .player-info-extra b {
  display: block;
  min-width: 0;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.player-profile-facts .player-info-row span:not(:last-child):after {
  display: none;
}

@media (max-width: 440px) {
  .player-profile-facts .player-info-row span,
.player-profile-facts .player-info-extra span {
    gap: .35rem;
    padding-left: .35rem;
    padding-right: .35rem;
    font-size: .68rem;
  }
}

.player-profile-facts {
  display: grid;
  row-gap: .35rem;
}

.player-profile-facts > .player-info-row,
.player-profile-facts > .player-info-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.player-profile-facts > .player-stats {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: .35rem clamp(.35rem, 1.7cqw, .55rem) .55rem;
  box-sizing: border-box;
}

.player-profile-facts > .player-stats > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.player-profile-facts > .player-stats span {
  min-width: 0;
  padding: .2rem .1rem;
  text-align: center;
  font-size: .54rem;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow-wrap: normal;
}

.player-profile-facts > .player-stats b {
  font-size: 1.25rem;
}

.player-profile-facts > .player-stats span::before,
.player-profile-facts > .player-stats span::after {
  content: none;
}

.roster-photo-actions > button.danger {
  border-color: #efc7c4;
  background: #fff;
  color: var(--red);
}

.roster-photo-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width:420px) {
  .roster-photo-actions {
    grid-template-columns: 1fr;
  }
}

.photo-editing-surface {
  cursor: grab;
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.photo-editing-surface:active {
  cursor: grabbing;
}

.photo-editing-surface img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.photo-crop-guide {
  position: absolute;
  z-index: 8;
  top: 7%;
  left: 32%;
  width: 36%;
  height: 58%;
  pointer-events: none;
}

.photo-crop-guide i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 52%;
  aspect-ratio: .78;
  border: 1px dashed rgba(232, 255, 240, .82);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(4, 54, 30, .32);
  transform: translateX(-50%);
}

.photo-crop-guide b {
  position: absolute;
  top: 48%;
  right: 0;
  left: 0;
  height: 1px;
  border-top: 1px dashed rgba(232, 255, 240, .78);
  box-shadow: none;
}

.photo-card-tools {
  padding: .6rem .8rem;
  border-top: 1px solid #cfe3d4;
  background: #f7fbf8;
}

.player-card-shell:has(.photo-editing-surface) .photo-card-tools,
.player-card:has(.photo-editing-surface) .player-card-actions {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

.player-card-shell:has(.photo-editing-surface) .photo-card-tools button,
.player-card-shell:has(.photo-editing-surface) .photo-card-tools label,
.player-card:has(.photo-editing-surface) .player-card-actions button {
  touch-action: manipulation;
}

.photo-card-tools .roster-photo-actions {
  margin: 0;
}

.photo-card-tools .photo-reposition-actions {
  max-width: none;
  margin-top: .45rem;
}

.photo-card-tools .form-error {
  margin: .45rem 0 0;
  font-size: .68rem;
}

.photo-reposition-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  max-width: 360px;
}

.photo-reposition-actions button {
  min-height: 32px;
  padding: .35rem .6rem;
  border: 1px solid #a7cfb2;
  border-radius: 8px;
  background: #fff;
  color: #075b32;
  font-size: .66rem;
  font-weight: 900;
}

.player-banner .player-position {
  margin-top: .45rem;
}

.player-banner .player-identity {
  position: relative;
  z-index: 6;
}

.player-banner .player-banner-highlight {
  margin-top: .45rem;
}

@media (max-width:650px) {
  .player-banner .player-position {
    margin-top: .35rem;
  }
  .player-banner .player-banner-highlight {
    margin-top: .35rem;
  }
}

.player-card {
  container-type: inline-size;
}

.player-banner {
  min-height: 0;
  height: min(340px, 64.7727cqw);
  flex: 0 0 auto;
}

.player-banner.has-highlight {
  min-height: 0;
  height: min(340px, 77.2727cqw);
  flex-basis: auto;
}

.player-identity {
  min-height: 0;
  height: 100%;
}

.player-banner.has-highlight .player-banner-highlight p {
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.player-profile-top {
  grid-template-columns: minmax(0, 1fr) minmax(140px, clamp(140px, 42cqw, 210px));
  gap: clamp(.45rem, 2cqw, 1rem);
}

.player-card {
  overflow: hidden;
  border: 1px solid #cfe8d8;
  border-radius: 18px;
  color: #e7f4eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #aebdaf url("../../assets/images/player-card-premium-sage.svg") center / cover no-repeat;
}

.player-card * {
  font-family: inherit !important;
}

.player-details,
.player-profile-top,
.player-profile-facts,
.player-info-row,
.player-info-extra,
.player-stats {
  background: transparent;
}

.player-card-actions {
  border-top-color: transparent;
}

.player-card-actions .player-details-toggle {
  color: #d8f3df;
}

.player-info-row,
.player-info-extra {
  color: #f1f8f3;
  line-height: 1.18;
}

.player-info-row span,
.player-info-extra span {
  border-color: rgba(202, 235, 211, .2);
  color: #f1f8f3;
  line-height: 1.18;
}

.player-info-row b,
.player-info-extra b,
.player-stats h3 {
  color: #b4e2c0;
  line-height: 1.12;
}

.player-stats {
  border-top-color: rgba(202, 235, 211, .2);
}

.player-stats span {
  color: #c8d8ce;
  line-height: 1.15;
}

.player-stats b {
  color: #f4fbf6;
  line-height: 1;
}

.player-card-capture {
  color: #b9ebc8;
}

.player-banner,
.player-banner::after,
.player-shapes {
  background: transparent;
}

.player-card {
  position: relative;
  display: block;
}

.player-card.player-card-raphael {
  border-color: #d8b661;
  box-shadow: none;
}

.player-card.player-card-raphael::after {
  content: "✦ CRÉATEUR CSVE";
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 48px;
  padding: .28rem .48rem;
  border: 1px solid rgba(216, 182, 97, .72);
  border-radius: 999px;
  background: rgba(15, 43, 35, .82);
  color: #f1d98e;
  font-size: clamp(.48rem, 1.65cqw, .65rem);
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
  pointer-events: none;
}

.player-banner {
  position: relative;
  z-index: 1;
}

.player-card-actions {
  position: relative;
  z-index: 4;
  min-height: 32px;
  margin-top: -32px;
  padding: 0 .8rem;
  border-top: 0 !important;
  background: transparent;
  text-shadow: 0 1px 8px rgba(0, 25, 15, .72);
}

.player-card > .player-card-actions:before,
.player-card > .player-card-actions::before {
  content: none !important;
  display: none !important;
  height: 0 !important;
  background: none !important;
  border: 0 !important;
}

.player-card-actions .player-details-toggle {
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #e1f5e6;
}

.player-card > .player-card-actions .player-details-action-center,
.player-card > .player-card-actions .player-details-toggle {
  display: none !important;
}

.player-details {
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: transparent;
}

.player-card > .player-details > .player-profile-top {
  margin: 0;
  border-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.player-card > .player-details,
.player-card > .player-details::before,
.player-card > .player-details::after,
.player-card > .player-details > .player-profile-top::before,
.player-card > .player-details > .player-profile-top::after {
  border-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.player-card > .player-details::before,
.player-card > .player-details::after,
.player-card > .player-details > .player-profile-top::before,
.player-card > .player-details > .player-profile-top::after {
  content: none !important;
  display: none !important;
}

.roster-list > [data-roster-member][hidden] {
  display: none !important;
}

.roster-list > .player-card-shell[hidden] {
  display: none !important;
}

.player-banner {
  isolation: isolate;
  min-height: 0;
  height: auto;
  aspect-ratio: 1.64 / 1;
  flex-basis: auto;
  overflow: hidden;
  background: transparent;
}

.player-shapes {
  z-index: 0;
  opacity: 0;
  background: transparent;
}

.player-watermark {
  left: 28%;
  /* 52% of the folded 1.9:1 banner, expressed against card width so the
     watermark keeps the same visual anchor when the banner opens at 1.64:1. */
  top: 27.4cqw;
  z-index: 1;
  width: 38%;
  opacity: .09;
  filter: brightness(0) invert(1);
  mix-blend-mode: screen;
}

.player-identity {
  z-index: 4;
  display: block;
  width: 55%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: clamp(1.6rem, 7cqw, 2.8rem) clamp(.85rem, 5cqw, 1.45rem) 1rem;
  background: transparent;
  color: #eff8f2;
  text-shadow: 0 1px 6px rgba(0, 25, 15, .45);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.player-number {
  background: transparent;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  color: #eff8f2;
  font-size: clamp(3.25rem, 19cqw, 6.4rem);
  line-height: .72;
  text-shadow: 0 1px 4px rgba(2, 31, 20, .45);
}

.player-lastname {
  margin-top: clamp(.65rem, 3cqw, 1rem);
  width: max-content;
  max-width: calc(100% + 1rem);
  color: #eff8f2;
  font-size: clamp(.95rem, 6.1cqw, 2rem);
  line-height: 1;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.player-name {
  margin: -.12rem 0 0;
  width: max-content;
  max-width: calc(100% + 1rem);
  color: #dfe9e3;
  font-size: clamp(.78rem, 4.6cqw, 1.65rem);
  font-weight: 500;
  line-height: 1.05;
  text-transform: none;
  letter-spacing: -.025em;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.player-nickname {
  position: absolute;
  top: 35cqw;
  left: clamp(.85rem, 5cqw, 1.45rem);
  right: 0;
  margin: 0;
  margin: 0;
  color: #d7eadc;
  font-size: clamp(.65rem, 2.7cqw, .82rem);
  letter-spacing: .02em;
}

.player-position {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  position: absolute;
  top: 40cqw;
  left: clamp(.85rem, 5cqw, 1.45rem);
  margin-top: 0;
  padding: .28rem .7rem;
  border: 0;
  border-radius: 999px;
  background: #087d47;
  color: #eff8f2;
  font-size: clamp(.58rem, 2.6cqw, .76rem);
  letter-spacing: .06em;
}

.player-position::before {
  display: none;
}

.player-position {
  border: 0;
  border-left: 3px solid #36bd78;
  border-radius: 0;
  background: transparent;
  color: #eff8f2;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: clamp(.5rem, 3.1cqw, .86rem);
  font-weight: 950;
  letter-spacing: .08em;
  padding: .05rem 0 .05rem .55rem;
  text-shadow: 0 1px 4px rgba(0, 31, 18, .42);
}

.player-position > span {
  color: #76d99b;
  font-family: Arial, sans-serif;
  font-size: inherit;
  font-weight: 950;
  letter-spacing: inherit;
  text-shadow: none;
}

.player-nickname {
  color: #e0f1e5;
  font-size: clamp(.56rem, 2.2cqw, .68rem);
  font-style: italic;
  font-weight: 600;
}

.player-photo {
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 54%;
  height: 100%;
  overflow: hidden;
  filter: drop-shadow(-12px 10px 10px #001c1090);
}

.player-photo img,
.player-banner-initials {
  object-fit: contain;
  object-position: right bottom;
}

.player-photo:not(.photo-editing-surface) img {
  position: absolute;
  right: 0;
  bottom: -16%;
  width: calc(100% + clamp(3rem, 15cqw, 6rem));
  height: 116%;
}

.player-photo:not(.photo-editing-surface) {
  width: 72%;
  overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%), linear-gradient(180deg, #000 0%, #000 78%, rgba(0, 0, 0, .9) 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%), linear-gradient(180deg, #000 0%, #000 78%, rgba(0, 0, 0, .9) 92%, transparent 100%);
  mask-composite: intersect;
}

.player-banner-initials {
  background: transparent;
  color: #ffffffaa;
  font-size: clamp(3rem, 15cqw, 5rem);
}

.player-banner.has-highlight {
  height: auto;
  aspect-ratio: 1.64 / 1;
}

.player-banner.has-highlight .player-banner-highlight {
  position: absolute;
  top: 46cqw;
  right: 0;
  bottom: auto;
  left: clamp(.85rem, 5cqw, 1.45rem);
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  opacity: .72;
}

.player-banner.has-highlight .player-banner-highlight span,
.player-banner.has-highlight .player-banner-highlight p {
  color: #eff8f2;
}

.player-banner.has-highlight .player-banner-highlight span {
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.44rem, 1.7cqw, .58rem);
  font-weight: 700;
  letter-spacing: .04em;
}

.player-banner.has-highlight .player-banner-highlight p {
  margin-top: .3rem;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(.5rem, 1.8cqw, .62rem);
  font-weight: 600;
  letter-spacing: .01em;
}

.player-details {
  display: block;
  content-visibility: visible;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  overflow-anchor: none;
  opacity: 1;
  transition: max-height .42s cubic-bezier(.22,.72,.22,1), visibility 0s linear .42s;
}

.player-details.open {
  visibility: visible;
  max-height: 300px;
  overflow: visible;
  opacity: 1;
  transition-delay: 0s;
}

.roster-list.is-static-open .player-card > .player-card-position-pitch {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
}

.roster-list.is-static-open .player-card > .player-card-position-pitch::before,
.roster-list.is-static-open .player-card > .player-card-position-pitch::after {
  display: none;
  content: none;
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .secondary-position-point {
  width: clamp(12px, 4.3cqw, 16px);
  height: clamp(12px, 4.3cqw, 16px);
  min-height: 0;
  transform: translate(-50%, -50%);
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .secondary-position-point-dot {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, .94);
  background: rgba(237, 248, 239, .86);
  box-shadow: 0 1px 3px rgba(0, 20, 12, .5), 0 0 0 1px rgba(4, 45, 27, .38);
  transform: translate(-50%, -50%) perspective(100px) rotateX(var(--position-marker-tilt, 32deg)) scale(var(--position-marker-scale, 1));
  transform-origin: center;
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .secondary-position-point-label {
  position: absolute;
  top: -1px;
  bottom: auto;
  left: calc(50% + 7px);
  right: auto;
  margin: 0;
  width: max-content;
  overflow: visible;
  color: #eff8f2;
  font-size: var(--position-marker-label-size, clamp(.38rem, 1.8cqw, .48rem));
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 14, 8, .95), 0 0 4px rgba(0, 14, 8, .85);
  transform: translateY(-50%);
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .level-green .secondary-position-point-label,
.roster-list.is-static-open .player-card > .player-card-position-pitch .level-orange .secondary-position-point-label,
.roster-list.is-static-open .player-card > .player-card-position-pitch .level-red .secondary-position-point-label {
  color: #eff8f2;
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-ac { left: 59.5%; top: 70%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-ag { left: 48.7%; top: 73%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-ad { left: 71.3%; top: 73%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-moc { left: 59.5%; top: 73.6%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-mg { left: 43.5%; top: 77%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-mc { left: 61%; top: 77%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-md { left: 76%; top: 77%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-mdc { left: 58.5%; top: 80.3%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-dg { left: 40%; top: 85%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-dc { left: 59.5%; top: 85%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-dd { left: 79%; top: 85%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-gb { left: 59.5%; top: 91.8%; }

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-ac,
.roster-list.is-static-open .player-card > .player-card-position-pitch .point-ag,
.roster-list.is-static-open .player-card > .player-card-position-pitch .point-ad {
  --position-marker-scale: .76;
  --position-marker-tilt: 70deg;
  --position-marker-label-size: clamp(.24rem, 1.1cqw, .3rem);
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-moc,
.roster-list.is-static-open .player-card > .player-card-position-pitch .point-mg,
.roster-list.is-static-open .player-card > .player-card-position-pitch .point-mc,
.roster-list.is-static-open .player-card > .player-card-position-pitch .point-md,
.roster-list.is-static-open .player-card > .player-card-position-pitch .point-mdc {
  --position-marker-scale: .88;
  --position-marker-tilt: 60deg;
  --position-marker-label-size: clamp(.24rem, 1.1cqw, .3rem);
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-dg,
.roster-list.is-static-open .player-card > .player-card-position-pitch .point-dc,
.roster-list.is-static-open .player-card > .player-card-position-pitch .point-dd {
  --position-marker-scale: .98;
  --position-marker-tilt: 50deg;
  --position-marker-label-size: clamp(.24rem, 1.1cqw, .3rem);
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-gb {
  --position-marker-scale: 1.08;
  --position-marker-tilt: 40deg;
  --position-marker-label-size: clamp(.24rem, 1.1cqw, .3rem);
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .secondary-position-point-dot {
  display: none;
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .position-player-anchor {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: block;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .position-player-asset {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  width: clamp(10px, 3.8cqw, 16px);
  height: clamp(18px, 7cqw, 26px);
  margin-bottom: 2px;
  object-fit: fill;
  filter: drop-shadow(0 1px 2px rgba(0, 12, 7, .8));
  transform: translateX(-50%) scale(var(--position-marker-scale, 1));
  transform-origin: center bottom;
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .point-moc .secondary-position-point-label,
.roster-list.is-static-open .player-card > .player-card-position-pitch .point-dd .secondary-position-point-label {
  left: auto;
  right: calc(50% + 7px);
  text-align: right;
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .secondary-position-point-shadow {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: clamp(9px, 3.4cqw, 14px);
  height: clamp(3px, 1.2cqw, 5px);
  border-radius: 50%;
  background: rgba(0, 12, 7, .58);
  box-shadow: 0 0 2px rgba(0, 0, 0, .5);
  pointer-events: none;
  transform: translate(-50%, -50%) perspective(100px) rotateX(var(--position-marker-tilt, 50deg)) scale(var(--position-marker-scale, 1));
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .level-green .position-player-asset { filter: brightness(0) saturate(100%) invert(48%) sepia(35%) saturate(1084%) hue-rotate(96deg) brightness(88%) contrast(91%) drop-shadow(0 1px 2px rgba(0, 12, 7, .8)); }

.roster-list.is-static-open .player-card > .player-card-position-pitch .level-orange .position-player-asset { filter: brightness(0) saturate(100%) invert(55%) sepia(95%) saturate(1832%) hue-rotate(357deg) brightness(102%) contrast(102%) drop-shadow(0 1px 2px rgba(0, 12, 7, .8)); }

.roster-list.is-static-open .player-card > .player-card-position-pitch .level-red .position-player-asset { filter: brightness(0) saturate(100%) invert(34%) sepia(78%) saturate(2332%) hue-rotate(337deg) brightness(95%) contrast(93%) drop-shadow(0 1px 2px rgba(0, 12, 7, .8)); }

.roster-list.is-static-open .player-card > .player-card-position-pitch .level-green .secondary-position-point-dot {
  border-color: #d9ffe7;
  background: #159c50;
  box-shadow: 0 1px 3px rgba(0, 20, 12, .5);
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .level-orange .secondary-position-point-dot {
  border-color: #fff0df;
  background: #f47721;
  box-shadow: 0 1px 3px rgba(0, 20, 12, .5);
}

.roster-list.is-static-open .player-card > .player-card-position-pitch .level-red .secondary-position-point-dot {
  border-color: #ffe2e2;
  background: #d94040;
  box-shadow: 0 1px 3px rgba(0, 20, 12, .5);
}

.roster-list.is-static-open .player-card > .player-photo {
  z-index: 2;
}

.roster-list.is-static-open .player-card > .player-details,
.roster-list.is-static-open .player-card > .player-card-actions,
.roster-list.is-static-open .player-card > .player-details > .player-profile-top {
  z-index: 4;
}

.player-details:not(.open) {
  overflow: hidden;
}

.player-details > .player-profile-top {
  min-height: 0;
  padding-bottom: clamp(2.5rem, 9cqw, 4rem);
  overflow: hidden;
  opacity: 1;
  transform: none;
  transition: none;
}

.player-details {
  position: relative;
  isolation: isolate;
}

.player-details > .player-profile-top {
  position: relative;
  z-index: 1;
}

.player-profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: end;
  position: relative;
  min-height: 0;
  padding: clamp(.5rem, 2.4cqw, .95rem) clamp(.7rem, 3cqw, 1.15rem) clamp(.85rem, 3.5cqw, 1.35rem);
}

.player-profile-facts {
  display: grid;
  align-content: end;
  gap: clamp(.36rem, 1.4cqw, .6rem);
  width: auto;
  position: relative;
  z-index: 3;
  font-family: "Segoe UI", Arial, sans-serif;
}

.player-profile-facts .player-info-row,
.player-profile-facts .player-info-extra {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.player-profile-facts .player-info-row span,
.player-profile-facts .player-info-extra span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.2rem, auto);
  align-items: center;
  gap: .35rem;
  min-height: clamp(2.05rem, 5cqw, 2.45rem);
  padding: .2rem 0 .2rem clamp(2.2rem, 7.1cqw, 2.8rem);
  border: 0;
  border-bottom: 1px solid rgba(182, 241, 201, .22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  position: relative;
}

.player-profile-facts .player-info-row b,
.player-profile-facts .player-info-extra b {
  margin: 0;
  color: #a8ebc0;
  font-size: clamp(.5rem, 1.7cqw, .62rem);
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.15;
  text-transform: uppercase;
}

.player-profile-facts .player-info-row em,
.player-profile-facts .player-info-extra em {
  color: #eff8f2;
  font-size: clamp(.64rem, 2.35cqw, .84rem);
  font-style: normal;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  line-height: 1.15;
  text-shadow: 0 1px 10px rgba(0, 18, 9, .3);
}

.player-parcours {
  margin-top: clamp(.65rem, 2.3cqw, 1rem);
  padding-top: clamp(.6rem, 2.2cqw, .95rem);
  border-top: 1px solid rgba(139, 229, 168, .46);
}

.player-parcours h3 {
  margin: 0 0 clamp(.45rem, 1.8cqw, .75rem);
  color: #c9f7d7;
  font-size: clamp(.72rem, 3cqw, 1.04rem);
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.player-parcours dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.player-parcours dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .4rem;
  padding: clamp(.32rem, 1.25cqw, .5rem) 0;
  border: 0;
  border-bottom: 1px solid rgba(190, 242, 209, .16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.player-parcours dt {
  color: #cce7d3;
  font-size: clamp(.54rem, 2.05cqw, .72rem);
  font-weight: 700;
  letter-spacing: .025em;
}

.player-parcours dd {
  margin: 0;
  color: #eff8f2;
  font-size: clamp(.62rem, 2.45cqw, .84rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  text-align: right;
  text-shadow: 0 1px 10px rgba(0, 18, 9, .28);
}

@media (max-width: 650px) and (min-width: 381px) {
  .player-profile-top {
    display: block;
    min-height: 0;
    padding-bottom: .8rem;
  }

  .player-profile-facts {
    width: 54%;
  }

}

@media (max-width: 380px) {
  .player-profile-top {
    display: block;
    min-height: 18rem;
  }

  .player-profile-facts {
    width: 58%;
  }

}

.player-profile-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-content: start;
}

.player-profile-title {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 6;
  margin: 0 0 .15rem;
  padding: .1rem 0 .15rem .45rem;
  border: 0;
  border-left: 2px solid rgba(199, 255, 216, .48);
  border-radius: 0;
  color: rgba(235, 249, 239, .86);
  font-family: Arial, sans-serif;
  font-size: clamp(.6rem, 2.1cqw, .72rem);
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.player-profile-facts .player-info-row,
.player-profile-facts .player-info-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.player-profile-facts .player-info-row span,
.player-profile-facts .player-info-extra span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem;
  min-height: 2.1rem;
  margin: 0;
  padding: .28rem 0 .35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.player-profile-facts .player-info-row span::before,
.player-profile-facts .player-info-extra span::before {
  content: none !important;
  display: none !important;
}

.player-profile-facts .player-info-row span::after,
.player-profile-facts .player-info-extra span::after {
  content: none !important;
  display: none !important;
}

.player-profile-facts .player-info-row b,
.player-profile-facts .player-info-extra b {
  color: #9fe4b3;
  font-size: clamp(.46rem, 1.55cqw, .57rem);
  letter-spacing: .13em;
}

.player-profile-facts .player-info-row em,
.player-profile-facts .player-info-extra em {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(.58rem, 2.1cqw, .76rem);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.player-parcours {
  margin-top: .7rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(146, 235, 169, .34);
}

.player-parcours h3 {
  margin-bottom: .25rem;
  font-size: clamp(.62rem, 2.4cqw, .8rem);
  letter-spacing: .16em;
}

.player-parcours dl > div {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  min-height: 1.7rem;
  column-gap: .7rem;
  padding: .28rem 0;
  background: transparent;
}

.player-parcours dt {
  font-size: clamp(.48rem, 1.75cqw, .62rem);
}

.player-parcours dd {
  font-size: clamp(.55rem, 1.95cqw, .7rem);
  text-align: left;
}

@supports selector(.player-card:has(.player-details.open)) {
  .player-card:has(.player-details.open) .player-details {
    z-index: 4;
  }

  .player-card:has(.player-details.open) .player-banner {
    z-index: 1;
    overflow: visible;
  }

.player-card:has(.player-details.open) .player-photo:not(.photo-editing-surface) {
  height: 100%;
  overflow: visible;
}

  .player-card.is-closing .player-details {
    z-index: 4;
  }

  .player-card.is-closing .player-banner {
    z-index: 1;
    overflow: visible;
  }

}

.player-card > .player-photo.photo-editing-surface {
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  z-index: 3;
  width: 72%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(-12px 10px 10px #001c1090);
  background: transparent;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%), linear-gradient(180deg, #000 0%, #000 78%, rgba(0, 0, 0, .9) 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%), linear-gradient(180deg, #000 0%, #000 78%, rgba(0, 0, 0, .9) 92%, transparent 100%);
  mask-composite: intersect;
}

.player-card > .player-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  z-index: 2;
  width: 72%;
  height: min(340px, 64.7727cqw);
  overflow: hidden;
  transform-origin: 50% 0;
  transition: transform .42s cubic-bezier(.22,.72,.22,1);
}

.player-card > .player-photo:not(.photo-editing-surface) {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
}

.player-card > .player-photo.photo-editing-surface {
  z-index: 5;
}

@media (min-width: 651px) {
  .player-card > .player-photo.photo-editing-surface {
    bottom: auto;
    height: min(340px, 64.7727cqw);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
    mask-composite: add;
  }
}

@media (max-width: 650px) {
  .player-card > .player-photo {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 72%;
    height: auto;
  }
  .roster-list:not(.is-static-open) .player-card > .player-photo:not(.photo-editing-surface) {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%), linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .7) 68%, transparent 76%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%), linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .7) 68%, transparent 76%);
    mask-composite: intersect;
  }
  .player-card:not(:has(.player-details.open)) > .player-photo:not(.photo-editing-surface) {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
    mask-composite: add;
  }

  .player-banner,
.player-banner.has-highlight {
    min-height: 0;
    height: auto;
    aspect-ratio: 1.64 / 1;
  }

  .player-banner .player-identity {
    width: 54%;
    padding: 1rem .85rem;
  }

  .player-banner .player-photo:not(.photo-editing-surface) {
    width: 72%;
    right: 0;
    bottom: 0;
  }

  .player-banner .player-photo.photo-editing-surface {
    width: 72%;
  }

  .player-profile-top {
    display: block;
    min-height: clamp(15rem, 46cqw, 18rem);
  }

  .player-profile-facts {
    width: 54%;
  }

}

.player-parcours {
  margin-top: .7rem;
  padding-top: 0;
  border-top: 0;
}

.player-parcours h3 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 .45rem;
  padding: .3rem .72rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left-color: rgba(199, 255, 216, .42);
  border-radius: 999px;
  color: rgba(235, 249, 239, .82);
  font-size: clamp(.6rem, 2.1cqw, .72rem);
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  background: rgba(7, 71, 43, .92);
  box-shadow: 0 3px 10px rgba(0, 28, 14, .08);
}

.player-parcours dl > div {
  grid-template-columns: minmax(4.25rem, auto) minmax(0, 1fr);
  align-items: center;
  column-gap: .35rem;
  min-height: 2.05rem;
  padding: .3rem 0;
  border-bottom-color: rgba(188, 240, 202, .2);
}

.player-parcours dt {
  color: #9fe4b3;
  font-size: clamp(.46rem, 1.55cqw, .57rem);
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.15;
  text-transform: uppercase;
}

.player-parcours dd {
  color: #fff;
  font-size: clamp(.58rem, 2.1cqw, .76rem);
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}

.player-profile-facts .player-info-row span,
.player-profile-facts .player-info-extra span,
.player-parcours dl > div {
  min-height: 1.7rem;
  padding-top: .22rem;
  padding-bottom: .22rem;
}

@media (max-width: 650px) {
  .player-profile-title,
.player-parcours h3 {
    margin-bottom: .32rem;
    padding: .1rem 0 .12rem .38rem;
    font-size: clamp(.54rem, 1.9cqw, .65rem);
    letter-spacing: .12em;
  }

  .player-parcours {
    margin-top: .52rem;
  }

  .player-profile-facts .player-info-row span,
.player-profile-facts .player-info-extra span {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .28rem;
    min-height: 1.7rem;
    padding-top: .16rem;
    padding-bottom: .16rem;
  }

  .player-parcours dl > div {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    column-gap: .28rem;
    min-height: 1.48rem;
    padding-top: .16rem;
    padding-bottom: .16rem;
  }

  .player-profile-facts .player-info-row b,
.player-profile-facts .player-info-extra b,
.player-parcours dt {
    font-size: clamp(.39rem, 1.4cqw, .49rem);
    letter-spacing: .09em;
  }

  .player-profile-facts .player-info-row em,
.player-profile-facts .player-info-extra em,
.player-parcours dd {
    font-size: clamp(.53rem, 1.9cqw, .69rem);
  }
}

@media (max-width: 650px) {
  .player-card {
    transition: padding-bottom .42s cubic-bezier(.22,.72,.22,1);
  }

  .player-card:has(.player-details.open) {
    padding-bottom: 0;
  }

  .player-card > .player-banner,
.player-card > .player-banner.has-highlight {
    height: 60.9756cqw;
    min-height: 0;
    aspect-ratio: auto !important;
    transition: height .42s cubic-bezier(.22,.72,.22,1);
  }

  .player-card:not(:has(.player-details.open)) > .player-banner {
    height: 52.6316cqw;
  }

  .player-card > .player-photo:not(.photo-editing-surface) {
    /* La carte découpe déjà la photo quand elle est repliée. Garder le cadre
       à sa hauteur finale évite de recalculer/rasteriser l'image à chaque frame;
       le cadrage reste commun à l’affichage et à l’édition. */
    height: 118.58cqw;
    overflow: visible;
    transition: transform .42s cubic-bezier(.22,.72,.22,1);
    /* Le portrait mobile est déjà détouré ; éviter le drop-shadow filtré sur
       toute sa grande surface, qui forçait une rasterisation pendant l'expansion. */
    filter: none;
  }

  .player-card:has(.player-details.open) > .player-photo:not(.photo-editing-surface) {
    /* Même hauteur dans les deux états : neutralise la règle desktop 100%.
       La carte elle-même révèle la partie basse en s'ouvrant. */
    height: 118.58cqw;
  }

  .player-details {
    /* L'espace de 40px est réservé même fermé (compensé par la rail basse).
       Le profil ne subit donc pas une seconde translation de layout à l'ouverture. */
    margin-top: 40px;
  }

  .player-details.open {
    /* Le format compact d’origine conserve son plafond ouvert mobile. */
    max-height: min(420px, 100cqw);
    margin-top: 40px;
    overflow: hidden;
  }

  .player-details:not(.open) {
    margin-top: 40px;
  }

  .player-details > .player-profile-top {
    transition: none;
  }

  .player-card-actions {
    /* Référentiel unique pour la flèche : la position repliée historique est
       1 / 1.9 de la largeur (bas du bandeau plié), plus les 32 px de rail. */
    position: absolute;
    top: calc(52.6315789cqw + 2rem);
    right: 0;
    left: 0;
    height: 40px;
    box-sizing: border-box;
    min-height: 40px;
    margin-top: 0;
    padding: .35rem .8rem;
    transition: none;
  }

  .player-card:not(:has(.player-details.open)) {
    padding-bottom: 32px;
  }
  .player-card:not(:has(.player-details.open)) .player-card-actions {
    top: calc(59.6315789cqw + 2rem);
  }
}

@supports selector(.player-card:has(.player-details.open)) {
  .player-card:not(:has(.player-details.open)) .player-banner {
    aspect-ratio: 1.9 / 1;
  }
}

@media (hover: none) and (pointer: coarse) {
  .player-match-panel,
.player-match-panel button,
.player-details-toggle {
    -webkit-tap-highlight-color: transparent;
  }

  .player-match-panel:focus,
.player-match-panel button:focus,
.player-details-toggle:focus {
    outline: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-card,
.player-card > .player-banner,
.player-card > .player-banner.has-highlight,
.player-card > .player-photo:not(.photo-editing-surface),
.player-card > .player-details,
.player-card > .player-details.open,
.player-card > .player-details:not(.open),
.player-card > .player-details > .player-profile-top {
    transition: none;
  }
}

.roster-list.is-static-open .player-details,
.roster-list.is-static-open .player-details.open {
  visibility: visible;
  max-height: none;
  overflow: visible;
  margin-top: 0;
  height: 72.7cqw;
  box-sizing: border-box;
  opacity: 1;
  transition: none;
}

.roster-list.is-static-open .player-details > .player-profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  column-gap: .4rem;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: .25rem 6cqw .4rem .45rem;
  opacity: 1;
  transform: none;
  transition: none;
}

.roster-list.is-static-open .player-profile-facts {
  width: min(68%, 280px);
}

.roster-list.is-static-open .player-details > .player-profile-top {
  background:
    linear-gradient(180deg, rgba(3, 29, 34, .02) 0%, rgba(3, 29, 34, .1) 16%, rgba(3, 29, 34, .1) 86%, rgba(3, 29, 34, .02) 100%),
    linear-gradient(90deg, rgba(3, 29, 34, .14) 0%, rgba(3, 29, 34, .1) 42%, rgba(3, 29, 34, .04) 70%, transparent 88%);
}

.roster-list.is-static-open .player-card > .player-banner,
.roster-list.is-static-open .player-card > .player-banner.has-highlight {
  height: 68.57cqw !important;
  min-height: 0;
  aspect-ratio: auto !important;
  overflow: hidden;
  transition: none;
}

.roster-list.is-static-open .player-card {
  aspect-ratio: 5 / 7;
  min-height: 0;
  overflow: hidden;
}

.roster-list.is-static-open .player-banner .player-identity {
  width: 54%;
  /* One identity layout, whether or not the optional nickname is present. */
  padding-top: clamp(.45rem, 3.2cqw, 1.4rem);
}

.roster-list.is-static-open .player-banner .player-identity .player-number {
  line-height: .56;
}

.roster-list.is-static-open .player-banner .player-identity .player-lastname {
  margin-top: .5cqw;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/BarlowCondensed-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

.roster-list.is-static-open .player-banner .player-identity .player-lastname,
.roster-list.is-static-open .player-banner .player-identity .player-name {
  font-family: "Barlow Condensed", sans-serif !important;
}

.roster-list.is-static-open .player-banner .player-identity .player-lastname {
  font-weight: 600;
}

.roster-list.is-static-open .player-banner .player-identity .player-name {
  font-weight: 400;
}

.roster-list.is-static-open .player-banner .player-identity .player-name {
  margin-top: 0;
  font-size: var(--player-name-size, clamp(.9rem, 6.7cqw, 2.2rem));
  font-style: italic;
}

.roster-list.is-static-open .player-banner .player-identity .player-nickname,
.roster-list.is-static-open .player-banner .player-identity .player-position,
.roster-list.is-static-open .player-banner .player-identity .player-banner-highlight {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 100%;
  margin: .16rem 0 0;
  transform: none;
}

.roster-list.is-static-open .player-banner .player-lastname,
.roster-list.is-static-open .player-banner .player-name {
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.roster-list.is-static-open .player-banner .player-lastname {
  font-size: var(--player-lastname-size, clamp(1rem, 8.2cqw, 2.5rem));
  white-space: nowrap;
}

.roster-list.is-static-open .player-banner .player-name {
  font-size: var(--player-name-size, clamp(.9rem, 6.7cqw, 2.2rem));
  color: #eff8f2;
}

.roster-list.is-static-open .player-banner .player-nickname,
.roster-list.is-static-open .player-banner .player-position,
.roster-list.is-static-open .player-banner .player-banner-highlight {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

.roster-list.is-static-open .player-banner .player-identity .player-position {
  display: block;
  width: max-content;
  margin: 0 0 calc(1.5cqw + .25rem);
  border-left: 0;
  padding-left: 0;
  color: #a8ebc0;
  font-size: clamp(.68rem, 3.35cqw, .92rem);
  text-shadow: 0 1px 4px rgba(0, 25, 15, .45);
  text-align: left;
}

.roster-list.is-static-open .player-banner .player-identity .player-position > span {
  color: #a8ebc0;
  text-shadow: inherit;
}

.roster-list.is-static-open .player-banner .player-number,
.roster-list.is-static-open .player-banner .player-lastname,
.roster-list.is-static-open .player-banner .player-name {
  text-shadow: 0 1px 5px rgba(0, 0, 0, .52);
}

.roster-list.is-static-open .player-banner .player-identity .player-nickname {
  margin-top: 0;
  font-size: max(11px, clamp(.6875rem, 2.55cqw, .78rem));
  line-height: 1.2;
  font-style: italic;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-list.is-static-open .player-banner .player-identity .player-nickname::before,
.roster-list.is-static-open .player-banner .player-identity .player-nickname::after {
  content: '"';
}

.roster-list.is-static-open .player-card > .player-banner-highlight {
  position: absolute;
  top: auto;
  right: 53%;
  bottom: clamp(.75rem, 6cqw, 1.5rem);
  left: clamp(.75rem, 4.5cqw, 1.2rem);
  width: auto;
  max-width: none;
  height: auto;
  max-height: 4.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #eff8f2;
  opacity: 1;
  transform: none;
  text-shadow: 0 1px 3px rgba(0, 8, 4, .95), 0 0 5px rgba(0, 8, 4, .85);
  z-index: 7;
}

.roster-list.is-static-open .player-card > .player-banner-highlight span {
  color: #b9f1ca;
  font-size: max(11px, clamp(.6875rem, 2.5cqw, .75rem));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
}

.roster-list.is-static-open .player-card > .player-banner-highlight p {
  margin: .2rem 0 0;
  color: #eff8f2;
  font-size: max(11px, clamp(.6875rem, 2.55cqw, .75rem));
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  max-height: 3.75em;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.roster-list.is-static-open .player-profile-facts .player-info-row span,
.roster-list.is-static-open .player-profile-facts .player-info-extra span {
  grid-template-columns: minmax(3.5rem, max-content) minmax(0, 1fr);
  align-items: center;
  gap: .28rem;
  min-height: 1.6rem;
  padding: .2rem 0 .24rem;
}

.roster-list.is-static-open .player-profile-facts {
  align-self: start;
  margin-bottom: 0;
  padding: .55rem .3rem .65rem;
  background: transparent;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .42);
}

.roster-list.is-static-open .player-profile-facts .player-info-row b,
.roster-list.is-static-open .player-profile-facts .player-info-extra b {
  color: #aebdb7;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(.5rem, 2.1cqw, .62rem);
  font-weight: 600;
  letter-spacing: .1em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.roster-list.is-static-open .player-profile-facts .player-info-row em,
.roster-list.is-static-open .player-profile-facts .player-info-extra em {
  color: #eff8f2;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(.6rem, 2.8cqw, .78rem);
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.roster-list.is-static-open .player-profile-title {
  margin-bottom: .05rem;
  border-left: 0;
  color: #aebdb7;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(.58rem, 2.6cqw, .74rem);
  font-weight: 600;
  letter-spacing: .12em;
  padding-left: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.roster-list.is-static-open .player-card,
.roster-list.is-static-open .player-card-actions {
  transition: none;
}

.roster-list.is-static-open .player-card > .player-banner,
.roster-list.is-static-open .player-details,
.roster-list.is-static-open .player-profile-top {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.roster-list.is-static-open .player-card > .player-photo:not(.photo-editing-surface) {
  clip-path: polygon(0 0, 100% 0, 100% 94.34cqw, 0 58.34cqw);
}

.roster-list.is-static-open .player-card > .player-options-wrap,
.roster-list:not(.is-static-open) .player-card > .player-options-wrap {
  position: absolute;
  top: clamp(.35rem, 2.2cqw, .7rem);
  right: clamp(.35rem, 2.2cqw, .7rem);
  z-index: 10;
}

.player-card > .player-options-wrap .player-options-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0 0 .35rem;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: rgba(239, 255, 244, .9);
  font-size: 1.3rem;
  line-height: 1;
}

.player-card > .player-options-wrap .player-options-toggle:hover,
.player-card > .player-options-wrap .player-options-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
}

.action-sheet .player-option-action {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  padding: .7rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  text-align: left;
}

.action-sheet .player-option-action:last-child {
  border-bottom: 0;
}

.player-card > .player-card-capture {
  position: absolute;
  right: clamp(.45rem, 2.8cqw, .85rem);
  bottom: clamp(.45rem, 2.5cqw, .8rem);
  left: auto;
  top: auto;
  z-index: 10;
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: rgba(226, 250, 232, .66);
  font-size: 0;
  opacity: .56;
}

.player-card > .player-card-capture::before {
  width: 13px;
  height: 9px;
  border-width: 1px;
}

.player-card > .player-card-capture::after {
  top: 5px;
  width: 5px;
  height: 2px;
}

.player-card > .player-card-capture:focus-visible,
.player-card > .player-options-wrap .player-options-toggle:focus-visible {
  outline: 2px solid #f2bd63;
  outline-offset: 2px;
}

.player-card > .player-card-capture:hover {
  border-color: rgba(230, 255, 238, .2);
  background: rgba(0, 24, 15, .28);
  opacity: .92;
}

.player-card.is-capturing > .player-card-capture,
.player-card.is-capturing > .player-options-wrap,
.player-card-shell:has(> .player-card.is-capturing) > .photo-card-tools,
.player-card.is-capturing .photo-crop-guide {
  visibility: hidden;
}

.player-card:has(.photo-editing-surface) .player-card-capture {
  visibility: hidden;
  pointer-events: none;
}

.player-card:has(.photo-editing-surface) > .player-options-wrap {
  visibility: hidden;
  pointer-events: none;
}

.player-card-shell:has(.photo-editing-surface) .photo-card-tools {
  position: relative;
  z-index: 7;
  padding: .55rem .7rem .65rem;
  border-top: 1px solid rgba(182, 225, 194, .18);
  background: rgba(1, 38, 24, .9);
  color: #e6f7eb;
}

.player-card-shell:has(.photo-editing-surface) .photo-card-tools::before {
  display: block;
  margin: 0 0 .45rem;
  color: rgba(221, 246, 227, .72);
  content: "Déplace la photo pour ajuster le cadrage";
  font-size: .68rem;
  line-height: 1.2;
}

.player-card-shell:has(.photo-editing-surface) .photo-card-tools .roster-photo-actions,
.player-card-shell:has(.photo-editing-surface) .photo-card-tools .photo-reposition-actions {
  gap: .4rem;
}

.player-card-shell:has(.photo-editing-surface) .photo-card-tools label,
.player-card-shell:has(.photo-editing-surface) .photo-card-tools button {
  min-height: 44px;
  padding: .4rem .62rem;
  border-radius: 7px;
  font-size: .68rem;
}

.player-card-shell:has(.photo-editing-surface) .photo-card-tools label {
  border: 1px solid rgba(181, 225, 193, .4);
  background: rgba(221, 247, 228, .1);
  color: #ecfff0;
}

.player-card-shell:has(.photo-editing-surface) .photo-card-tools .photo-reposition-actions button {
  border-color: rgba(181, 225, 193, .28);
  background: rgba(255, 255, 255, .08);
  color: #e7f8eb;
}

.player-card-shell:has(.photo-editing-surface) .photo-card-tools .photo-upload-status,
.player-card-shell:has(.photo-editing-surface) .photo-card-tools .form-error {
  margin: .4rem 0 0;
  color: #d9f1df;
  font-size: .68rem;
}

@media (prefers-reduced-transparency: reduce) {

  .roster-position-filters {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

}

@media (prefers-contrast: more) {

  .roster-position-filters {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

}

.roster-position-filters {
  border: 1px solid var(--glass-filter-border);
  border-radius: var(--radius-glass);
  background: var(--glass-filter-surface);
  box-shadow: 0 8px 20px rgba(8, 55, 35, .16);
  transition: background-color .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.roster-position-filters.is-stuck {
  border-color: var(--glass-filter-border);
  background: var(--glass-filter-surface);
  box-shadow: 0 10px 22px rgba(5, 40, 24, .18);
}

.roster-position-filters.is-stuck .roster-position-filter:not(.is-active) {
  background: transparent;
}

.roster-position-filter {
  flex: 0 1 auto;
  min-width: max-content;
  min-height: 44px;
  padding: .2rem .45rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: max(.75rem, 12px);
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  letter-spacing: -.025em;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.roster-position-filter.is-active {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .12);
  color: var(--ink);
}

.roster-position-filter:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.roster-position-filters.ios27-liquid-glass-me {
  border-color: var(--glass-filter-border);
  background-color: var(--glass-filter-surface);
  background-image: none;
  box-shadow: var(--glass-nav-shadow);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
}

@media (max-width: 699px) {
  .roster-position-filters {
    border-radius: 999px;
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .roster-position-filters.ios27-liquid-glass-me {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #1e1f22;
    background-image: none;
    border-color: var(--glass-filter-border);
    box-shadow: var(--glass-nav-shadow);
  }

  .roster-position-filter.is-active {
    border-color: rgba(255, 255, 255, .3);
    background: #393a3e;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roster-position-filters {
    transition: none;
  }

  .roster-position-filter {
    transition: none;
  }

}
