#adminPlayers .admin-players-page {
  display: grid;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

#adminPlayers .admin-players-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(129, 167, 236, .17);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 90% 8%, rgba(67, 113, 205, .23), transparent 38%),
    linear-gradient(130deg, rgba(29, 39, 71, .94), rgba(13, 20, 37, .98) 68%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
}

#adminPlayers .admin-players-hero__copy {
  min-width: 0;
}

#adminPlayers .admin-players-kicker,
#adminPlayers .admin-players-panel-kicker {
  color: #a9c8ff;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .13em;
}

#adminPlayers .admin-players-hero h2 {
  margin: 9px 0 0;
  color: #f7f9ff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

#adminPlayers .admin-players-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(224, 231, 249, .7);
  font-size: .94rem;
  line-height: 1.55;
}

#adminPlayers .admin-players-hero__mark,
#adminPlayers .admin-players-panel-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(160, 186, 246, .2);
  color: #c3d7ff;
  background: linear-gradient(145deg, rgba(102, 133, 220, .22), rgba(37, 54, 99, .34));
}

#adminPlayers .admin-players-hero__mark {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 30px rgba(0, 0, 0, .2);
  font-size: 2rem;
  transform: rotate(4deg);
}

#adminPlayers .handicap-recalc-box {
  align-items: flex-start;
  margin: 0;
  padding: 20px;
  border-color: rgba(112, 152, 226, .16);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 0, rgba(80, 110, 193, .12), transparent 44%),
    linear-gradient(150deg, rgba(23, 30, 53, .96), rgba(13, 19, 35, .98));
}

#adminPlayers .handicap-recalc-box > div:first-child {
  min-width: 0;
}

#adminPlayers .handicap-recalc-title {
  margin-top: 6px;
  font-size: 1.08rem;
}

#adminPlayers .handicap-recalc-sub {
  max-width: 800px;
  font-size: .86rem;
  line-height: 1.6;
}

#adminPlayers .handicap-next-update {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(88, 195, 235, .15);
  border-radius: 11px;
  background: rgba(42, 151, 196, .08);
}

#adminPlayers .handicap-recalc-actions {
  align-items: stretch;
}

#adminPlayers .handicap-recalc-actions .btn {
  min-height: 42px;
  border-radius: 12px;
}

#adminPlayers .handicap-recalc-actions #btnResetHandicap {
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(244, 247, 255, .82);
  background: rgba(255, 255, 255, .045);
}

#adminPlayers .handicap-recalc-result {
  margin: -7px 0 0;
  border-radius: 17px;
}

#adminPlayers .admin-players-panel {
  min-width: 0;
  padding: clamp(18px, 3vw, 25px);
  border: 1px solid rgba(149, 174, 224, .12);
  border-radius: 23px;
  background: linear-gradient(155deg, rgba(23, 30, 53, .97), rgba(13, 19, 35, .98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .17);
}

#adminPlayers .admin-players-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

#adminPlayers .admin-players-panel-head h3 {
  margin: 6px 0 0;
  color: #f6f8ff;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: -.025em;
}

#adminPlayers .admin-players-panel-head p {
  margin: 7px 0 0;
  color: rgba(221, 229, 247, .63);
  font-size: .88rem;
  line-height: 1.5;
}

#adminPlayers .admin-players-panel-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 1.4rem;
}

#adminPlayers .form-admin {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

#adminPlayers .form-admin .field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: rgba(224, 231, 249, .76);
}

#adminPlayers .form-admin .field__label {
  color: rgba(235, 240, 252, .82);
  font-size: .79rem;
  font-weight: 700;
}

#adminPlayers .form-admin .field__label span {
  color: rgba(224, 231, 249, .52);
  font-weight: 500;
}

#adminPlayers .form-admin input,
#adminPlayers .form-admin select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(165, 184, 223, .15);
  border-radius: 13px;
  outline: none;
  color: #f5f7ff;
  background: rgba(4, 10, 23, .42);
  font: inherit;
  font-size: .92rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#adminPlayers .form-admin select {
  color-scheme: dark;
}

#adminPlayers .form-admin input::placeholder {
  color: rgba(215, 224, 244, .38);
}

#adminPlayers .form-admin input:focus,
#adminPlayers .form-admin select:focus {
  border-color: rgba(116, 166, 255, .65);
  background: rgba(8, 16, 34, .75);
  box-shadow: 0 0 0 3px rgba(75, 132, 235, .14);
}

#adminPlayers .form-admin .form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

#adminPlayers .form-actions .btn {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 13px;
  font-weight: 800;
}

#adminPlayers .admin-player-membership-toggle {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 11px 14px;
  border: 1px solid rgba(118, 213, 183, .16);
  border-radius: 14px;
  background: rgba(65, 164, 130, .055);
  cursor: pointer;
}

#adminPlayers .admin-player-membership-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#adminPlayers .admin-player-membership-toggle__ui {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 25px;
  border: 1px solid rgba(151, 178, 232, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  transition: background .18s ease, border-color .18s ease;
}

#adminPlayers .admin-player-membership-toggle__ui::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #dce5f6;
  content: "";
  transition: transform .18s ease, background .18s ease;
}

#adminPlayers .admin-player-membership-toggle input:checked + .admin-player-membership-toggle__ui {
  border-color: rgba(118, 213, 183, .55);
  background: rgba(65, 164, 130, .48);
}

#adminPlayers .admin-player-membership-toggle input:checked + .admin-player-membership-toggle__ui::after {
  transform: translateX(19px);
  background: #a8ebd0;
}

#adminPlayers .admin-player-membership-toggle input:focus-visible + .admin-player-membership-toggle__ui {
  outline: 2px solid rgba(118, 213, 183, .75);
  outline-offset: 3px;
}

#adminPlayers .admin-player-membership-toggle input:disabled + .admin-player-membership-toggle__ui {
  opacity: .55;
}

#adminPlayers .admin-player-membership-toggle__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#adminPlayers .admin-player-membership-toggle__copy strong {
  color: #f3f6ff;
  font-size: .88rem;
}

#adminPlayers .admin-player-membership-toggle__copy small {
  color: rgba(221, 229, 247, .58);
  font-size: .77rem;
  line-height: 1.4;
}

#adminPlayers .admin-player-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(860px, calc(100% - 32px));
  height: fit-content;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 171, 203, .2);
  border-radius: 25px;
  color: #eef4ff;
  background: #0c1727;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

#adminPlayers .admin-player-dialog::backdrop {
  background: rgba(3, 9, 17, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#adminPlayers .admin-player-dialog__shell {
  display: flex;
  max-height: inherit;
  flex-direction: column;
}

#adminPlayers .admin-player-dialog__head {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 17px;
  min-height: 126px;
  padding: 25px 78px 23px 28px;
  border-bottom: 1px solid rgba(148, 171, 203, .14);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(76, 126, 224, .22), transparent 52%),
    linear-gradient(120deg, rgba(30, 48, 79, .92), rgba(12, 23, 39, .96));
}

#adminPlayers .admin-player-dialog__avatar {
  display: grid;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(160, 186, 246, .25);
  border-radius: 20px;
  color: #c3d7ff;
  background: linear-gradient(145deg, rgba(102, 133, 220, .22), rgba(37, 54, 99, .34));
  font-size: 1.8rem;
}

#adminPlayers .admin-player-dialog__heading {
  min-width: 0;
}

#adminPlayers .admin-player-dialog__heading h2 {
  margin: 5px 0 0;
  overflow: hidden;
  color: #f7f9ff;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adminPlayers .admin-player-dialog__heading p {
  margin: 5px 0 0;
  color: rgba(224, 231, 249, .65);
  font-size: .82rem;
}

#adminPlayers .admin-player-dialog__close {
  position: absolute;
  top: 16px;
  right: 17px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: #d5deeb;
  background: rgba(255, 255, 255, .08);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

#adminPlayers .admin-player-dialog__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

#adminPlayers .admin-player-dialog__body {
  min-height: 0;
  padding: 23px 26px 26px;
  overflow: auto;
  overscroll-behavior: contain;
}

#adminPlayers .admin-player-dialog__section {
  padding: 21px;
  border: 1px solid rgba(149, 174, 224, .12);
  border-radius: 19px;
  background: linear-gradient(155deg, rgba(23, 30, 53, .78), rgba(13, 19, 35, .88));
}

#adminPlayers .admin-player-dialog__section-head h3 {
  margin: 5px 0 0;
  color: #f6f8ff;
  font-size: 1.12rem;
}

#adminPlayers .admin-player-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}

#adminPlayers .admin-player-edit-form .field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: rgba(224, 231, 249, .76);
}

#adminPlayers .admin-player-edit-form .field__label {
  color: rgba(235, 240, 252, .82);
  font-size: .79rem;
  font-weight: 700;
}

#adminPlayers .admin-player-edit-form .field__label span {
  color: rgba(224, 231, 249, .52);
  font-weight: 500;
}

#adminPlayers .admin-player-edit-form input,
#adminPlayers .admin-player-edit-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(165, 184, 223, .15);
  border-radius: 12px;
  outline: none;
  color: #f5f7ff;
  background: rgba(4, 10, 23, .42);
  font: inherit;
  font-size: .9rem;
}

#adminPlayers .admin-player-edit-form select {
  color-scheme: dark;
}

#adminPlayers .admin-player-edit-form input:focus,
#adminPlayers .admin-player-edit-form select:focus {
  border-color: rgba(116, 166, 255, .65);
  box-shadow: 0 0 0 3px rgba(75, 132, 235, .14);
}

#adminPlayers .admin-player-edit-form input::placeholder {
  color: rgba(215, 224, 244, .38);
}

#adminPlayers .admin-player-edit-form__password {
  grid-column: 1 / -1;
}

#adminPlayers .admin-player-edit-form__membership {
  grid-column: 1 / -1;
}

#adminPlayers .admin-player-dialog__error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 112, 129, .27);
  border-radius: 12px;
  color: #ffb4bd;
  background: rgba(190, 48, 67, .12);
  font-size: .85rem;
}

#adminPlayers .admin-player-dialog__actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 3px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

#adminPlayers .admin-player-dialog__actions .btn {
  min-height: 43px;
  border-radius: 12px;
  font-weight: 750;
}

#adminPlayers .admin-player-dialog__delete {
  border: 1px solid rgba(255, 112, 129, .22);
  color: #ffb4bd;
  background: rgba(190, 48, 67, .1);
}

#adminPlayers .admin-player-dialog__delete:hover {
  border-color: rgba(255, 112, 129, .42);
  background: rgba(190, 48, 67, .18);
}

#adminPlayers .admin-players-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(153, 175, 219, .1);
  border-radius: 16px;
  scrollbar-color: rgba(127, 157, 213, .35) transparent;
}

#adminPlayers .admin-players-table-wrap:focus-visible {
  outline: 2px solid rgba(116, 166, 255, .75);
  outline-offset: 3px;
}

#adminPlayers #playersTable {
  display: table;
  overflow: visible;
  width: 100%;
  min-width: 790px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

#adminPlayers #playersTable thead th {
  padding: 13px 14px;
  color: rgba(210, 224, 252, .78);
  background: rgba(76, 103, 163, .12);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#adminPlayers #playersTable tbody td {
  padding: 13px 14px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: rgba(240, 244, 255, .84);
  font-size: .85rem;
}

#adminPlayers .admin-player-version {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.3;
}

#adminPlayers .admin-player-version--current {
  border-color: rgba(76, 217, 135, .25);
  color: #8ce6ad;
  background: rgba(38, 148, 83, .14);
}

#adminPlayers .admin-player-version--outdated {
  border-color: rgba(255, 112, 129, .25);
  color: #ff9ca8;
  background: rgba(190, 48, 67, .13);
}

#adminPlayers .admin-player-version--unknown {
  border-color: rgba(180, 192, 210, .16);
  color: #b4c0d2;
  background: rgba(180, 192, 210, .07);
}

#adminPlayers .admin-player-profile-link {
  padding: 0;
  border: 0;
  color: #c3d7ff;
  background: none;
  font: inherit;
  font-weight: 700;
  text-align: left;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

#adminPlayers .admin-player-profile-link:hover,
#adminPlayers .admin-player-profile-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#adminPlayers #playersTable tbody tr:hover td {
  background: rgba(99, 139, 220, .055);
}

#adminPlayers #playersTable tbody td:last-child {
  white-space: nowrap;
}

#adminPlayers #playersTable tbody td:last-child .btn {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(151, 178, 232, .16);
  border-radius: 10px;
  color: #dce8ff;
  background: rgba(92, 125, 192, .1);
  font-size: .78rem;
  font-weight: 700;
}

#adminPlayers #playersTable tbody td:last-child .btn:hover {
  border-color: rgba(151, 188, 255, .38);
  background: rgba(92, 125, 192, .2);
}

@media (max-width: 560px) {
  #adminPlayers .admin-player-dialog {
    width: 100%;
    max-width: none;
    max-height: 94vh;
    max-height: 94dvh;
    margin: auto 0 0;
    border-bottom: 0;
    border-radius: 23px 23px 0 0;
  }

  #adminPlayers .admin-player-dialog__head {
    min-height: 106px;
    gap: 13px;
    padding: 18px 65px 17px 17px;
  }

  #adminPlayers .admin-player-dialog__avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    border-radius: 17px;
  }

  #adminPlayers .admin-player-dialog__close {
    top: 13px;
    right: 13px;
    width: 40px;
    height: 40px;
  }

  #adminPlayers .admin-player-dialog__body {
    padding: 14px 12px calc(18px + env(safe-area-inset-bottom));
  }

  #adminPlayers .admin-player-dialog__section {
    padding: 16px 13px;
    border-radius: 17px;
  }

  #adminPlayers .admin-player-edit-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    margin-top: 15px;
  }

  #adminPlayers .admin-player-edit-form__password,
  #adminPlayers .admin-player-dialog__error,
  #adminPlayers .admin-player-dialog__actions {
    grid-column: auto;
  }

  #adminPlayers .admin-player-dialog__actions {
    flex-direction: column-reverse;
  }

  #adminPlayers .admin-player-dialog__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 780px) {
  #adminPlayers .handicap-recalc-box {
    padding: 17px;
  }

  #adminPlayers .handicap-recalc-actions {
    flex-direction: column;
  }

  #adminPlayers .form-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #adminPlayers .admin-players-page {
    gap: 13px;
  }

  #adminPlayers .admin-players-hero {
    align-items: flex-start;
    gap: 12px;
    border-radius: 21px;
  }

  #adminPlayers .admin-players-hero__mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.45rem;
  }

  #adminPlayers .handicap-recalc-actions {
    flex-direction: column;
    width: 100%;
  }

  #adminPlayers .handicap-recalc-actions .btn {
    width: 100%;
  }

  #adminPlayers .admin-players-panel {
    border-radius: 20px;
  }

  #adminPlayers .admin-players-panel-head {
    align-items: flex-start;
    margin-bottom: 16px;
  }

  #adminPlayers .admin-players-panel-icon {
    width: 39px;
    height: 39px;
    border-radius: 13px;
    font-size: 1.2rem;
  }

  #adminPlayers .form-admin {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  #adminPlayers .form-admin .field--full,
  #adminPlayers .form-admin .form-actions {
    grid-column: auto;
  }

  #adminPlayers .form-admin .form-actions {
    flex-direction: column;
  }

  #adminPlayers .form-actions .btn {
    width: 100%;
  }

  #adminPlayers #playersTable {
    min-width: 750px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #adminPlayers .form-admin input,
  #adminPlayers .form-admin select,
  #adminPlayers .admin-player-membership-toggle__ui,
  #adminPlayers .admin-player-membership-toggle__ui::after {
    transition: none;
  }
}
