/* Desktop-only squad imagery, loaded after the main responsive stylesheet. */
.squad-profile-media {
  display: none;
}

@media (min-width: 721px) {
  .roster .roster-board {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(17, 25, 35, 0.14);
    background: #fbfcfc;
    box-shadow: 0 18px 46px rgba(25, 39, 50, 0.09);
  }

  .roster .roster-main {
    min-height: 410px;
    grid-template-columns: clamp(360px, 40%, 620px) minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    background: #fbfcfc;
    box-shadow: none;
  }

  .roster .squad-profile {
    position: relative;
    display: flex;
    min-height: 410px;
    justify-content: flex-end;
    padding: 0;
    isolation: isolate;
    color: #ffffff;
    background: #101820;
  }

  .roster .squad-profile-media {
    position: absolute;
    z-index: -1;
    display: block;
    overflow: hidden;
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    margin: 0;
    background: #101820;
  }

  .roster .squad-profile-media::after {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 38%,
      rgba(8, 13, 18, 0.18) 58%,
      rgba(8, 13, 18, 0.92) 100%
    );
    pointer-events: none;
  }

  .roster .squad-profile-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.18s ease, transform 0.28s ease;
  }

  .roster .squad-profile-media img.switching {
    opacity: 0.25;
    transform: scale(1.012);
  }

  .roster .squad-profile-media figcaption {
    display: none;
  }

  .roster .squad-profile-top {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 0 28px;
  }

  .roster .squad-profile-top > span,
  .roster .squad-profile-top > strong {
    display: none;
  }

  .roster .squad-profile-top h3 {
    margin: 0;
    color: #ffffff;
    font-size: 27px;
    font-weight: 760;
    line-height: 1.2;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
  }

  .roster .squad-profile-top p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    line-height: 1.4;
  }

  .roster .squad-profile-bottom {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 15px 28px 24px;
    border-top: 0;
  }

  .roster .squad-profile-bottom::before {
    display: block;
    width: 42px;
    height: 1px;
    margin-bottom: 13px;
    background: rgba(255, 255, 255, 0.38);
    content: "";
  }

  .roster .squad-profile-bottom p {
    max-width: 340px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.72;
  }

  .roster .squad-profile-bottom > span {
    color: rgba(255, 255, 255, 0.5);
  }

  .roster .squad-tabs,
  .roster .squad-tab {
    min-height: 52px;
  }

  .roster .squad-tabs {
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(17, 25, 35, 0.12);
    background: #f7f8f8;
  }

  .roster .squad-tab {
    align-content: center;
    padding: 10px 12px;
    border: 0;
    color: #505d67;
    background: transparent;
    text-align: center;
  }

  .roster .squad-tab::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    opacity: 0;
    background: #315fae;
    transform: translateX(-50%);
    transition: width 0.22s ease, opacity 0.15s ease;
  }

  .roster .squad-tab:hover {
    color: #17222b;
    background: rgba(49, 95, 174, 0.045);
  }

  .roster .squad-tab.active {
    color: #17222b;
    background: #eef2f5;
    box-shadow: none;
  }

  .roster .squad-tab.active::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 44%;
    opacity: 1;
  }

  .roster .squad-tab small {
    display: none;
  }

  .roster .member-register {
    padding: 14px 28px 16px;
    background: #fbfcfc;
  }

  .roster .register-header {
    min-height: 34px;
  }

  .roster .member-row {
    min-height: 58px;
  }

  .roster .register-header,
  .roster .member-row {
    width: 100%;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* Final roster pass: compact desktop rhythm and a quiet mobile image layer. */
@media (min-width: 721px) {
  .roster .roster-main {
    min-height: 392px;
    grid-template-columns: clamp(330px, 38%, 540px) minmax(0, 1fr);
  }

  .roster .squad-profile {
    min-height: 392px;
  }

  .roster .squad-profile-media::after {
    background: linear-gradient(
      to bottom,
      transparent 38%,
      rgba(8, 13, 18, 0.12) 58%,
      rgba(8, 13, 18, 0.72) 100%
    );
  }

  .roster .squad-profile-top {
    padding-right: 30px;
    padding-left: 30px;
  }

  .roster .squad-profile-top h3 {
    font-size: 25px;
  }

  .roster .squad-profile-bottom {
    padding: 13px 30px 22px;
  }

  .roster .squad-profile-bottom::before {
    width: 32px;
    margin-bottom: 11px;
  }

  .roster .squad-profile-bottom p {
    max-width: 320px;
    margin-top: 8px;
    line-height: 1.62;
  }

  .roster .squad-tabs,
  .roster .squad-tab {
    min-height: 56px;
  }

  .roster .squad-tab {
    padding: 10px 12px;
  }

  .roster .squad-tab strong {
    font-size: 14px;
  }

  .roster .member-register {
    padding: 12px 30px 14px;
  }

  .roster .register-header,
  .roster .member-row {
    grid-template-columns: minmax(0, 1fr) 112px 82px;
    gap: 18px;
  }

  .roster .register-header {
    min-height: 32px;
  }

  .roster .member-row {
    position: relative;
    min-height: 54px;
    border-bottom-color: rgba(17, 25, 35, 0.1);
    transition:
      color 0.22s ease,
      background 0.22s ease,
      border-color 0.22s ease,
      box-shadow 0.22s ease,
      transform 0.22s cubic-bezier(0.2, 0.65, 0.2, 1);
  }

  .roster .member-row::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.78),
      rgba(226, 234, 240, 0.56)
    );
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .roster .member-row > * {
    position: relative;
    z-index: 1;
  }

  .roster .member-name strong {
    font-size: 15px;
  }

  .roster .member-role {
    font-size: 11px;
  }

  .roster .member-identity {
    gap: 7px;
    font-size: 10px;
  }
}

@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  .roster .member-row:hover {
    z-index: 2;
    border-color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.78),
      rgba(226, 234, 240, 0.58)
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -1px 0 rgba(112, 128, 140, 0.14),
      0 12px 28px rgba(21, 33, 43, 0.14),
      0 3px 9px rgba(21, 33, 43, 0.07);
    transform: translateY(-1px) scale(1.008);
  }

  .roster .member-row:hover::before {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .roster .roster-board {
    border-radius: 6px;
  }

  .roster .squad-tabs {
    min-height: 54px;
    background: #f8fafb;
  }

  .roster .squad-tab {
    min-height: 54px;
    border-right-color: rgba(17, 25, 35, 0.09);
    color: #53606a;
    background: transparent;
  }

  html body .roster .squad-tab.active {
    color: #1f3b62;
    background: #edf3fa;
    box-shadow: inset 0 -2px 0 #315fae;
  }

  html body .roster .squad-tab.active strong {
    color: #1f3b62;
  }

  .roster .squad-tab:not(.active):hover,
  .roster .squad-tab:not(.active):active {
    color: #53606a;
    background: transparent;
  }

  html body .roster .squad-tab:focus-visible {
    outline: 1px solid rgba(49, 95, 174, 0.48);
    outline-offset: -2px;
  }

  .roster .squad-profile {
    position: relative;
    min-height: 92px;
    isolation: isolate;
    overflow: hidden;
    background: #f3f6f8;
  }

  .roster .squad-profile-media {
    position: absolute;
    z-index: -1;
    display: block;
    overflow: hidden;
    inset: 0;
    margin: 0;
    opacity: 0.11;
    pointer-events: none;
  }

  .roster .squad-profile-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(243, 246, 248, 0.94),
      rgba(243, 246, 248, 0.76)
    );
    content: "";
  }

  .roster .squad-profile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) saturate(0.2) contrast(0.92);
  }

  .roster .squad-profile-top {
    padding: 16px 16px 4px;
  }

  .roster .squad-profile-top p {
    font-size: 18px;
  }

  .roster .squad-profile-bottom {
    padding: 0 16px 16px;
  }

  .roster .squad-profile-bottom p {
    max-width: 100%;
    line-height: 1.58;
  }

  .roster .roster-members-toggle {
    min-height: 54px;
    border-top-color: rgba(17, 25, 35, 0.1);
  }

  .roster .member-register {
    padding: 2px 16px 8px;
    border-top: 0;
  }

  .roster .member-row,
  .roster .member-row:nth-child(3n),
  .roster .member-row:nth-child(4n) {
    min-height: 70px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 10px 0;
    border-right: 0;
  }

  .roster .member-name strong {
    font-size: 14px;
  }

  .roster .member-role {
    align-self: center;
    font-size: 11px;
  }

  .roster .member-identity {
    grid-column: 1 / -1;
    margin-top: 0;
    gap: 6px;
    color: #7a858e;
    font-size: 10px;
  }

  .roster .member-row.is-captain .member-identity {
    color: #4d6278;
  }
}

/* Tap selection mirrors the desktop state transfer without a hover effect. */
@media (max-width: 720px) {
  html body .roster .member-row {
    transition:
      color 0.22s ease,
      background 0.22s ease,
      border-color 0.22s ease,
      box-shadow 0.22s ease,
      transform 0.22s cubic-bezier(0.2, 0.65, 0.2, 1);
  }

  html body .roster .member-register:not(.has-member-selection) .member-row.is-captain {
    border-left: 3px solid #5f7898;
    background: linear-gradient(135deg, rgba(240, 246, 255, 0.98), rgba(247, 250, 252, 0.9));
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(81, 104, 116, 0.12),
      0 12px 26px rgba(79, 104, 134, 0.14);
  }

  html body .roster .member-register:not(.has-member-selection) .member-row.is-captain .member-name small,
  html body .roster .member-register:not(.has-member-selection) .member-row.is-captain .member-identity {
    color: #4f6886;
  }

  html body .roster .member-register:not(.has-member-selection) .member-row.is-captain .member-identity i {
    background: #4f6886;
  }

  html body .roster .member-register.has-member-selection .member-row.is-selected {
    border-left: 3px solid #5f7898;
    background: linear-gradient(135deg, rgba(240, 246, 255, 0.98), rgba(247, 250, 252, 0.9));
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(81, 104, 116, 0.12),
      0 14px 28px rgba(79, 104, 134, 0.16);
      transform: translateY(-2px);
  }

  html body .roster .member-row:focus {
    outline: 0;
  }

  html body .roster .member-row:focus-visible {
    outline: 2px solid rgba(95, 120, 152, 0.48);
    outline-offset: 2px;
  }

  html body .roster .member-register.has-member-selection .member-row.is-selected .member-name small,
  html body .roster .member-register.has-member-selection .member-row.is-selected .member-identity {
    color: #4f6886;
  }

  html body .roster .member-register.has-member-selection .member-row.is-selected .member-identity i {
    background: #4f6886;
  }
}

@media (max-width: 380px) {
  .roster .squad-tab strong {
    font-size: 13px;
  }

  .roster .member-row,
  .roster .member-row:nth-child(3n),
  .roster .member-row:nth-child(4n) {
    gap: 4px 8px;
  }
}

/* Stronger visual hierarchy: separate the register from the image without
   turning the roster into a heavy dashboard. */
@media (min-width: 721px) {
  html body .roster .roster-board {
    border-radius: 10px;
    background: #f6f8f9;
    box-shadow: 0 24px 56px rgba(25, 39, 50, 0.12);
  }

  html body .roster .squad-tabs {
    display: grid;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid rgba(17, 25, 35, 0.09);
    background: #f4f7f8;
  }

  html body .roster .squad-tab {
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    color: #5d6871;
    background: transparent;
  }

  html body .roster .squad-tab:hover {
    color: #273944;
    background: #eef2f5;
  }

  html body .roster .squad-tab.active {
    color: #27466e;
    background: #e4edf8;
    box-shadow: inset 0 -2px 0 #315fae;
  }

  html body .roster .squad-tab.active::after {
    display: none;
  }

  html body .roster .roster-main {
    min-height: 394px;
    background: #f6f8f9;
  }

  html body .roster .squad-profile {
    min-height: 394px;
  }

  html body .roster .member-register {
    padding: 17px 28px 19px;
    background: #f6f8f9;
  }

  html body .roster .register-header {
    min-height: 26px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(17, 25, 35, 0.13);
  }

  html body .roster .register-body {
    display: grid;
    gap: 6px;
    padding-top: 8px;
  }

  html body .roster .member-row {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(17, 25, 35, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 3px 12px rgba(25, 39, 50, 0.045);
  }

  html body .roster .member-row:hover {
    border-color: rgba(49, 95, 174, 0.2);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 12px 26px rgba(25, 39, 50, 0.13),
      0 2px 8px rgba(49, 95, 174, 0.08);
    transform: translateY(-2px);
  }
}

@media (max-width: 720px) {
  html body .roster .squad-profile-media {
    opacity: 0.16;
  }

  html body .roster .member-register {
    padding: 11px 12px 10px;
    background: #f6f8f9;
  }

  html body .roster .register-body {
    display: grid;
    gap: 7px;
  }

  html body .roster .member-row,
  html body .roster .member-row:nth-child(3n),
  html body .roster .member-row:nth-child(4n) {
    min-height: 66px;
    padding: 9px 12px;
    border: 1px solid rgba(17, 25, 35, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 3px 11px rgba(25, 39, 50, 0.04);
  }

  html body .roster .member-row:active {
    background: rgba(255, 255, 255, 0.88);
    transform: none;
  }
}

/* Impact pass: make the roster feel like a designed command surface. */
@media (min-width: 721px) {
  html body .roster .roster-board {
    border-radius: 14px;
    border-color: rgba(17, 36, 51, 0.18);
    box-shadow:
      0 30px 72px rgba(25, 39, 50, 0.13),
      0 4px 12px rgba(25, 39, 50, 0.05);
  }

  html body .roster .squad-tabs {
    min-height: 66px;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(180deg, #f8fafb, #eef3f6);
  }

  html body .roster .squad-tab {
    min-height: 50px;
    border-radius: 8px;
    font-size: 14px;
    transition:
      color 0.22s ease,
      background 0.22s ease,
      box-shadow 0.22s ease,
      transform 0.22s cubic-bezier(0.2, 0.65, 0.2, 1);
  }

  html body .roster .squad-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #5f7898, #4f6886);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 9px 20px rgba(79, 104, 134, 0.22);
    transform: translateY(-1px);
  }

  html body .roster .squad-tab.active strong {
    color: #ffffff;
    font-weight: 800;
  }

  html body .roster .squad-profile {
    min-height: 410px;
  }

  html body .roster .squad-profile::after {
    position: absolute;
    z-index: 2;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    content: "";
    pointer-events: none;
  }

  html body .roster .squad-profile-top {
    position: static;
  }

  html body .roster .squad-profile-media::after {
    background:
      linear-gradient(110deg, rgba(8, 13, 18, 0.02), transparent 45%),
      linear-gradient(to bottom, transparent 32%, rgba(8, 13, 18, 0.18) 58%, rgba(8, 13, 18, 0.76) 100%);
  }

  html body .roster .squad-profile-top > strong {
    position: absolute;
    top: 22px;
    left: 28px;
    display: block;
    margin: 0;
    z-index: 0;
    color: rgba(255, 255, 255, 0.12);
    font-family: var(--font-english);
    font-size: 178px;
    font-weight: 800;
    line-height: 0.78;
    letter-spacing: -0.08em;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.58);
    text-shadow: 0 0 38px rgba(255, 255, 255, 0.12);
  }

  /* The selected tab and profile title already identify the squad. */
  html body .roster .squad-profile-top > strong {
    display: none;
  }

  html body .roster .squad-profile-top h3,
  html body .roster .squad-profile-top p {
    position: relative;
    z-index: 1;
  }

  html body .roster .squad-profile-top h3 {
    font-size: 29px;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.42);
  }

  html body .roster .member-register {
    padding: 19px 30px 22px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 248, 0.82)),
      #f4f7f8;
  }

  html body .roster .register-header {
    min-height: 28px;
    padding: 0 14px 8px;
    border-bottom-color: rgba(17, 25, 35, 0.16);
    color: #71808a;
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  html body .roster .register-body {
    gap: 8px;
    padding-top: 12px;
  }

  html body .roster .member-row {
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(17, 25, 35, 0.12);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.86));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 6px 18px rgba(25, 39, 50, 0.06);
  }

  html body .roster .member-row::before {
    opacity: 0.22;
  }

  html body .roster .member-row.is-captain {
    border-left: 3px solid #315fae;
    background: linear-gradient(135deg, rgba(240, 246, 255, 0.98), rgba(247, 250, 252, 0.9));
  }

  html body .roster .member-row:hover {
    border-color: rgba(49, 95, 174, 0.3);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 16px 30px rgba(25, 39, 50, 0.16),
      0 3px 10px rgba(49, 95, 174, 0.1);
    transform: translateY(-3px) scale(1.012);
  }
}

@media (max-width: 720px) {
  html body .roster .roster-board {
    border-radius: 10px;
    box-shadow:
      0 22px 48px rgba(25, 39, 50, 0.13),
      0 3px 10px rgba(25, 39, 50, 0.05);
  }

  html body .roster .squad-tabs {
    gap: 4px;
    padding: 5px;
    background: linear-gradient(180deg, #f8fafb, #eef3f6);
  }

  html body .roster .squad-tab {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    color: #53606a;
    background: transparent;
  }

  html body .roster .squad-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #5f7898, #4f6886);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 5px 12px rgba(79, 104, 134, 0.18);
  }

  html body .roster .squad-tab.active strong {
    color: #ffffff;
  }

  html body .roster .squad-profile {
    min-height: 112px;
    background: #f1f5f7;
  }

  html body .roster .squad-profile::after {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 7px;
    content: "";
    pointer-events: none;
  }

  html body .roster .squad-profile-top,
  html body .roster .squad-profile-bottom {
    position: relative;
    z-index: 1;
  }

  html body .roster .squad-profile-media {
    opacity: 0.2;
  }

  html body .roster .member-register {
    padding: 12px 12px 11px;
    background: linear-gradient(135deg, #f5f8f9, #edf2f4);
  }

  html body .roster .register-body {
    gap: 8px;
    padding-top: 0;
  }

  html body .roster .member-row,
  html body .roster .member-row:nth-child(3n),
  html body .roster .member-row:nth-child(4n) {
    min-height: 68px;
    padding: 10px 13px;
    border: 1px solid rgba(17, 25, 35, 0.11);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.86));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 6px 16px rgba(25, 39, 50, 0.055);
  }

  html body .roster .member-row.is-captain {
    border-left: 3px solid #315fae;
    background: linear-gradient(135deg, rgba(240, 246, 255, 0.98), rgba(247, 250, 252, 0.9));
  }
}

/* Captain styling is an interaction state, not a permanent card variant. */
html body .roster .member-row.is-captain {
  border-left: 1px solid rgba(17, 25, 35, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.86));
}

html body .roster .member-row.is-captain .member-name small,
html body .roster .member-row.is-captain .member-identity {
  color: #879198;
}

html body .roster .member-row.is-captain .member-identity i {
  background: #b5bdc2;
}

@media (min-width: 721px) {
  html body .roster .member-register:not(.has-member-selection) .member-row.is-captain,
  html body .roster .member-register.has-member-selection .member-row.is-selected {
    border-left: 3px solid #315fae;
    background: linear-gradient(135deg, rgba(240, 246, 255, 0.98), rgba(247, 250, 252, 0.9));
  }

  html body .roster .member-register:not(.has-member-selection) .member-row.is-captain .member-name small,
  html body .roster .member-register:not(.has-member-selection) .member-row.is-captain .member-identity,
  html body .roster .member-register.has-member-selection .member-row.is-selected .member-name small,
  html body .roster .member-register.has-member-selection .member-row.is-selected .member-identity {
    color: #315fae;
  }

  html body .roster .member-register:not(.has-member-selection) .member-row.is-captain .member-identity i,
  html body .roster .member-register.has-member-selection .member-row.is-selected .member-identity i {
    background: #315fae;
  }

  html body .roster .member-row {
    cursor: pointer;
  }
}

@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  html body .roster .member-row:hover {
    border-left: 3px solid #315fae;
    background: linear-gradient(135deg, rgba(240, 246, 255, 0.98), rgba(247, 250, 252, 0.9));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 16px 30px rgba(25, 39, 50, 0.16),
      0 3px 10px rgba(49, 95, 174, 0.1);
    transform: translateY(-3px) scale(1.012);
  }

  html body .roster .member-row:hover .member-name small,
  html body .roster .member-row:hover .member-identity {
    color: #315fae;
  }

  html body .roster .member-row:hover .member-identity i {
    background: #315fae;
  }
}

@media (max-width: 720px) {
  /* Mobile keeps the roster visible without an extra expand/collapse bar. */
  html body .roster .roster-members-toggle {
    display: none;
  }

  html body .roster .member-register,
  html body .roster .member-register.is-open {
    display: block;
  }

  html body .roster .member-row.is-captain .member-name small,
  html body .roster .member-row.is-captain .member-identity {
    color: #7a858e;
  }

  html body .roster .member-row.is-captain {
    border-left-color: rgba(17, 25, 35, 0.11);
  }

  html body .roster .member-row:hover,
  html body .roster .member-row.is-captain:hover {
    padding: 10px 13px;
    border-left: 1px solid rgba(17, 25, 35, 0.11);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.86));
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(81, 104, 116, 0.12),
      0 12px 26px rgba(31, 48, 58, 0.12);
    transform: none;
  }

  html body .roster .member-row:hover .member-name small,
  html body .roster .member-row:hover .member-identity {
    color: #7a858e;
  }

  html body .roster .member-row:hover .member-identity i {
    background: #b5bdc2;
  }
}

/* iOS-inspired corner system: nested surfaces use one consistent radius scale. */
html body .roster .roster-board {
  border-radius: 16px;
  corner-shape: squircle;
}

html body .roster .squad-tabs {
  border-radius: 16px 16px 0 0;
  corner-shape: squircle;
}

html body .roster .squad-tab {
  border-radius: 11px;
  corner-shape: squircle;
}

html body .roster .squad-profile::after {
  inset: 10px;
  border-radius: 10px;
  corner-shape: squircle;
}

html body .roster .member-row {
  border-radius: 12px;
  corner-shape: squircle;
}

@media (max-width: 720px) {
  html body .roster .roster-board {
    border-radius: 14px;
  }

  html body .roster .squad-tabs {
    border-radius: 14px 14px 0 0;
  }

  html body .roster .squad-tab {
    border-radius: 10px;
  }

  html body .roster .squad-profile::after {
    inset: 7px;
    border-radius: 8px;
  }

  html body .roster .member-row,
  html body .roster .member-row:nth-child(3n),
  html body .roster .member-row:nth-child(4n) {
    border-radius: 11px;
  }
}

/* Share the upcoming-match surface language across the roster. */
html body .roster .roster-board {
  border-radius: 14px;
  corner-shape: squircle;
  box-shadow:
    0 18px 44px rgba(24, 35, 44, 0.08),
    0 2px 8px rgba(24, 35, 44, 0.04);
}

html body .roster .member-row {
  border-radius: 6px;
  corner-shape: squircle;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 5px 16px rgba(25, 39, 50, 0.06);
}

@media (max-width: 720px) {
  html body .roster .roster-board {
    border-radius: 14px;
    box-shadow:
      0 18px 44px rgba(24, 35, 44, 0.08),
      0 2px 8px rgba(24, 35, 44, 0.04);
  }

  html body .roster .member-row,
  html body .roster .member-row:nth-child(3n),
  html body .roster .member-row:nth-child(4n) {
    border-radius: 8px;
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(81, 104, 116, 0.12),
      0 12px 26px rgba(31, 48, 58, 0.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
    backdrop-filter: blur(18px) saturate(1.18);
  }
}
