.popup {
  transform: scale(0);
  opacity: 0;
}

.box {
  width: 225px;
}

.win-rate-container {
  position: relative;
  width: 100%;
}

#win-rate {
  position: relative;
  padding: 0 8px;
  height: 40px;
  width: 96%;
  margin-left: 10px;
  margin-top: -30px;
  transform: skew(25deg);
}

.win-rate-title-container {
  text-align: right;
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  font-size: 24px;
  justify-content: flex-end;
  text-shadow: 0 0 min(0.2604166667vw, 5px) #000;
  gap: 3px;
}

.win-rate-title {
  font-weight: 600;
  font-family: sans-serif;
}

#win-rate-par-text {
  margin-top: -6px;
}

#battleCount,
#win-rate-par-text {
  font-family: Oswald, sans-serif;
}

.win-rate-par {
  font-family: Oswald, sans-serif;
}

/* 斜めでぼかした背景 */
#win-rate::before {
  content: "";
  position: absolute;
  inset: 3px; /* ぼかし分はみ出させる */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.308),
    rgba(0, 0, 0, 0.603)
  );
  filter: blur(3px);
  opacity: 0.8;
  z-index: 0;
}

/* canvas は前面に */
#winRateBar {
  position: relative;
  z-index: 1;
  transform: skew(1deg);
}

.title-soft-bg {
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 0 6px;
  transform: skew(25deg);
}

/* ぼかした背景 */
.title-soft-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(178, 31, 146, 0.616),
    rgba(251, 132, 255, 0.502)
  );
  filter: blur(3px);
  opacity: 0.8;
  z-index: -1;
}

.title-outline {
  font-weight: 600;
  font-family: sans-serif;
  color: white;
  text-shadow: 0 0 2px #000, 0 0 4px #000;
  transform: skew(-25deg);
}
