.player-account-modal[hidden] {
  display: none;
}

.player-account-modal {
  position: fixed;
  z-index: 210;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
  background: #08000de8;
  backdrop-filter: blur(10px);
}

.player-account-modal > section {
  position: relative;
  width: min(470px, 94vw);
  box-sizing: border-box;
  padding: 28px 31px;
  border: 1px solid #79318b;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0, #591040, #28042f 58%, #120018);
  color: #fff;
  box-shadow: 0 30px 90px #000d, 0 0 42px #9c2ecc44;
}

.player-account-close {
  position: absolute;
  right: 16px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #d8bddf;
  font-size: 31px;
  cursor: pointer;
}

.player-account-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border: 2px solid #d782e9;
  border-radius: 50%;
  background: #9e2abb1f;
  font-size: 26px;
  box-shadow: 0 0 24px #b33ad066;
}

.player-account-eyebrow {
  display: block;
  color: #ffd45c;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 2.5px;
  text-align: center;
}

.player-account-modal h2 {
  margin: 7px 0 3px;
  font-size: 27px;
  text-align: center;
}

.player-account-modal section > p {
  margin: 0 0 17px;
  color: #c8aecf;
  text-align: center;
}

.player-account-modal form {
  display: grid;
  gap: 11px;
}

.player-account-modal label {
  display: grid;
  gap: 5px;
  color: #eadfec;
  font-size: 12px;
  font-weight: 900;
}

.player-account-modal input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #713286;
  border-radius: 11px;
  background: #16031e;
  color: #fff;
  font: 700 15px Nunito, Arial, sans-serif;
  outline: none;
}

.player-account-modal input:focus {
  border-color: #ffd45c;
  box-shadow: 0 0 0 3px #ffd45c1f;
}

.player-password-help {
  color: #bfa9c5;
  font-size: 10px;
  text-align: center;
}

.player-password-toggle {
  min-height: 36px;
  border: 1px solid #613071;
  border-radius: 10px;
  background: #24062d;
  color: #d7c4dc;
  font-size: 10px;
  font-weight: 1000;
  cursor: pointer;
}

.player-account-message {
  min-height: 18px;
  color: #d8c9dd;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.player-account-message.error {
  color: #ff9aac;
}

.player-account-message.success {
  color: #73efbd;
}

.player-password-submit,
.player-account-logout {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.player-password-submit {
  border: 1px solid #ffe58b;
  background: linear-gradient(135deg, #ffe06f, #d99a19);
  color: #341327;
  box-shadow: 0 0 19px #ffd45c33;
}

.player-password-submit:disabled {
  opacity: .58;
  cursor: wait;
}

.player-account-logout {
  border: 1px solid #643174;
  background: #1b0524;
  color: #fff;
}

@media (max-width: 520px) {
  .player-account-modal {
    padding: 9px;
  }

  .player-account-modal > section {
    padding: 23px 15px;
  }

  .player-account-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .player-account-modal h2 {
    font-size: 23px;
  }

  .player-account-modal form {
    gap: 9px;
  }

  .player-account-modal input {
    min-height: 44px;
  }
}
