* {
  box-sizing: border-box;
}

.lose-wrapper {
  aspect-ratio: 3 / 2;
  position: relative;
  margin: 0;
  padding: 0;
  background-image: url("../assets/images/ui/lose-card.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border: 0;
  box-shadow: none;
  overflow: visible;
  color: #ffffff;
  width: 940px !important;
  min-width: 940px !important;
  max-width: 940px !important;
  height: 627px !important;
  min-height: 627px !important;
  max-height: 627px !important;
  flex: 0 0 940px !important;
  box-sizing: border-box !important;
  transform: none !important;
}

.lose-stage-badge {
  position: absolute;

  top: 2%;
  left: 50%;

  transform: translateX(-50%);

  width: 240px;
  height: 55px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  background: transparent;
  border: 0;
  box-shadow: none;

  color: #ffffff;

  font-size: 19px;
  font-weight: 900;
}

.lose-stage-badge span {
  color: #ffffff;
}

.lose-close-button {
  position: absolute;

  top: 30px;
  right: 40px;

  z-index: 20;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 0;
  background: transparent;

  cursor: pointer;
}

.lose-close-button img {
  width: 60%;
  height: 60%;

  object-fit: contain;
  display: block;
}

.lose-close-button:active {
  transform: scale(0.9);
}

.lose-content {
  position: static;
  display: block;
}

.failed-image-box {
  position: absolute;

  top: 15.3%;
  right: 15.4%;

  width: 37%;
  height: 40%;

  padding: 0;

  background: transparent;
  border: 0;
  box-shadow: none;

  overflow: hidden;
}

.failed-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  border-radius: 14px;
}

.lose-character {
  position: absolute;

  top: 8%;
  left: 8%;

  width: 40%;
  height: 60%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.lose-character-image {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  transform: none;
}

.lose-stats {
  position: absolute;

  top: 68%;
  left: 50%;
  transform: translateX(-50%);

  width: 50%;
  height: 9%;

  margin: 0;
  padding: 0 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  background: transparent;
  border: 0;
  box-shadow: none;
}

.lose-stats .stat-item {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  color: #ffffff;

  font-size: 17px;
  font-weight: 800;
}

.lose-stats .stat-item strong {
  font-size: 20px;
}

.lose-stats .stat-icon {
  width: 42px;
  height: 42px;

  object-fit: contain;

  display: block;
}

.lose-stats .stat-divider {
  width: 2px;
  height: 34px;

  background: rgba(255, 255, 255, 0.45);
}

.lose-message {
  position: absolute;

  top: 89%;
  left: 50%;

  transform: translateX(-50%);

  width: 54%;
  height: 8%;

  margin: 0;
  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  background: transparent;
  border: 0;
  box-shadow: none;

  color: #ffffff;

  font-size: 16px;
  font-weight: 800;
}

.lose-actions {
  position: absolute;

  top: 78.2%;
  left: 44%;

  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 16px;
}

.lose-btn {
  width: auto;
  height: auto;

  padding: 0;
  margin: 0;

  border: 0;
  background: transparent;

  overflow: visible;

  display: flex;
  align-items: center;
  justify-content: center;
}

.lose-btn[hidden] {
  display: none;
}

.lose-btn-icon {
  width: 95px;
  height: 72px;

  max-width: none !important;
  max-height: none !important;

  object-fit: fill;

  display: block;
}

.lose-btn:active {
  transform: scale(0.9);
}

.lost-step {
  width: 100px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.lost-step-icon {
  width: 76px;
  height: 76px;

  object-fit: contain;
  display: block;
}
