.section-mission-war {
  background: url(../images/s-mission-war/bg-main.webp) top center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  transition: 0.5s;
  min-height: 100dvh;
}

.section-mission-war.left {
  background-position: 20% top;
}

.section-mission-war.right {
  background-position: 80% top;
}

.icon-class {
  width: 32px;
  aspect-ratio: 1 / 1;
}

.inverse-img {
  transform: scaleX(-1);
}

.stat-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  width: 50%;
}

.text-player {
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 600;
  /* font-size: 20px; */
  font-size: 20px;
  line-height: 1;
  /* margin-bottom: 4px; */
  margin-bottom: 4px;
}

.text-score {
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 400;
  /* font-size: 16px; */
  font-size: 16px;
  line-height: 1;
}

.text-gold {
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 600;
  /* font-size: 16px; */
  font-size: 16px;
  line-height: 1;
  text-align: center;

  background: linear-gradient(
    160deg,
    rgba(221, 176, 60, 1) 0%,
    rgba(255, 218, 132, 1) 20%,
    rgba(255, 231, 174, 1) 35%,
    rgba(253, 209, 101, 1) 50%,
    rgba(255, 232, 175, 1) 65%,
    rgba(239, 198, 98, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  -webkit-text-stroke: 0.5px rgba(98, 69, 11, 0.5);

  padding: 0 1px 0 1px;
}

.text-silver {
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 600;
  /* font-size: 16px; */
  font-size: 16px;
  line-height: 1;
  text-align: center;
  background: linear-gradient(
    160deg,
    rgba(192, 192, 192, 1) 0%,
    rgba(220, 220, 220, 1) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(200, 200, 200, 1) 75%,
    rgba(160, 160, 160, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  -webkit-text-stroke: 0.5px rgba(14, 21, 230, 0.16);

  padding: 0 1px 0 1px;
}

.class-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  /* margin-top: 20px; */
  margin-top: 20px;
}

.level-box-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    160deg,
    rgba(221, 176, 60, 1) 0%,
    rgba(255, 218, 132, 1) 20%,
    rgba(255, 231, 174, 1) 35%,
    rgba(253, 209, 101, 1) 50%,
    rgba(255, 232, 175, 1) 65%,
    rgba(239, 198, 98, 1) 100%
  );
  height: 20px;
  width: 64px;
  line-height: 20px;
}

.level-box-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.89px;
  background: linear-gradient(
    160deg,
    rgba(254, 229, 170, 1),
    rgba(254, 229, 170, 1)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.level-box-silver {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    160deg,
    rgba(122, 150, 172, 1) 0%,
    rgba(234, 239, 243, 1) 20%,
    rgba(194, 212, 225, 1) 35%,
    rgba(255, 255, 255, 1) 50%,
    rgba(212, 222, 229, 1) 65%,
    rgba(171, 189, 200, 1) 80%,
    rgba(188, 202, 215, 1) 100%
  );
  height: 20px;
  width: 64px;
  line-height: 20px;
}

.level-box-silver::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.89px;
  background: linear-gradient(
    160deg,
    rgba(138, 156, 170, 1),
    rgba(138, 156, 170, 1)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.text-level {
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 600;
  /* font-size: 13px; */
  font-size: 13px;
  /* margin-top: 3px; */
  text-transform: uppercase;
  color: rgba(98, 69, 11, 0.7);
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-box .period {
  position: absolute;
  bottom: 15%;
}

.logo-box .period span {
  font-family: Cinzel;
  font-size: 22.917px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;

  background: linear-gradient(
    138deg,
    #7a96ac 2.28%,
    #eaeff3 19.8%,
    #c2d4e1 32.94%,
    #fff 50.16%,
    #d4dee5 62.15%,
    #abbdc8 78.69%,
    #bccad7 95.24%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-event {
  width: min(100%, 550px);
  aspect-ratio: 550 / 225;
  margin-top: 100px;
}

.server-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.select-server {
  width: 174px;
  cursor: pointer;
  transition: width 0.3s ease;
}

.btn-see-more {
  /* width: 300px; */
  width: clamp(150px, 40vw, 300px);
  cursor: pointer;
}

.leader,
.sub-leader,
.member {
  position: relative;
  margin-bottom: 24px;
}

.leader {
  /* height: 355px; */
  width: min(100%, 612px);
  aspect-ratio: 612 / 355;
  margin-bottom: 4%;
}

.sub-leader {
  /* height: 147px; */
  width: min(100%, 612px);
  aspect-ratio: 612 / 147;
  margin-bottom: 1%;
}

/* .sub-leader::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: url(../images/s-mission-war/eff-sparkle.webp);
  background-size: 30%;
  background-repeat: no-repeat;
  background-position: bottom;
  z-index: 2;
}

.red-team .sub-leader::before {
  bottom: -18%;
  left: 25%;
}
.blue-team .sub-leader::before {
  bottom: -18%;
  right: 25%;
} */

.member {
  /* height: 147px; */
  width: min(100%, 612px);
  aspect-ratio: 612 / 147;
  margin-bottom: 1%;
}

.leader .img-eff,
.leader .img-character,
.leader .img-card,
.sub-leader .img-card,
.sub-leader .img-character,
.member .img-card,
.member .img-character {
  position: absolute;
}

.leader .img-card,
.sub-leader .img-card,
.member .img-card {
  opacity: 90%;
}

.leader .img-eff {
  /* width:612px; height:355px */
  width: 100%;
  height: auto;
  z-index: -1;
}

.leader .img-character {
  /* width:612px; height:355px */
  width: 100%;
  height: auto;
  z-index: 0;

  --feather: 30px;

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 1) var(--feather)
  );
  /* Safari/Chrome */
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-mode: alpha;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 1) var(--feather)
  );
}

.leader .img-card {
  /* width:612px; height:226px */
  width: 100%;
  height: auto;
  bottom: 0px;
  margin-bottom: -3.28%;
}

.sub-leader .img-card {
  /* width:604px; height:147px */
  width: 100%;
  height: auto;
  bottom: 0px;
}

.sub-leader .img-character {
  /* width:215px; height:136px */
  width: 33.6%;
  height: auto;
  z-index: 1;
  bottom: 1px;
}

.member .img-card {
  /* width:604px; height:147px */
  width: 100%;
  height: auto;
}

.member .img-character {
  /* width:215px; height:136px */
  width: 33.6%;
  height: auto;
  z-index: 1;
  bottom: 1px;
}

.leader .character-detail,
.sub-leader .character-detail,
.member .character-detail {
  position: absolute;
  width: 75%;
  bottom: 10px;
  text-align: center;
}

@media (max-width: 1240px) {
  .character-detail {
    bottom: clamp(2px, 0.8vw, 20px) !important;
  }
  .text-player {
    font-size: clamp(10.78px, 1.6vw, 20px);
  }
  .text-gold,
  .text-silver,
  .text-score {
    font-size: clamp(8.63px, 1.2vw, 16px);
  }
  .level-box-gold,
  .level-box-silver {
    width: clamp(34.51px, 5vw, 64px);
    height: clamp(10.78px, 1.8vw, 20px);
  }
  .text-level {
    font-size: clamp(6.47px, 1.1vw, 13px);
  }
  .class-box {
    margin-top: clamp(5px, 1.4vw, 20px);
  }
  .icon-class {
    width: 28px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 992px) {
  .character-detail {
    bottom: clamp(2px, 0.8vw, 8px) !important;
  }
  .class-box {
    margin-top: clamp(5px, 1.2vw, 20px);
  }
  .icon-class {
    width: clamp(22px, 3vw, 28px);
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 768px) {
  .character-detail {
    bottom: clamp(2px, 1.2vw, 10px) !important;
  }
  .text-player {
    font-size: clamp(10.78px, 2.8vw, 20px);
  }
  .text-gold,
  .text-silver,
  .text-score {
    font-size: clamp(8.63px, 2.3vw, 16px);
  }
  .level-box-gold,
  .level-box-silver {
    width: clamp(34.51px, 8.4vw, 64px);
    height: clamp(10.78px, 3vw, 20px);
  }
  .text-level {
    font-size: clamp(6.47px, 1.9vw, 13px);
  }
  .stat-box {
    width: 55%;
  }
  .class-box {
    margin-top: clamp(5px, 1.9vw, 20px);
  }
  .icon-class {
    width: 28px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 580px) {
  .character-detail {
    bottom: clamp(2px, 0.6vw, 10px) !important;
  }
  .text-gold {
    line-height: unset;
  }
  .text-silver {
    line-height: unset;
  }
  .class-box {
    margin-top: clamp(6px, 0.9vw, 20px);
  }
  .icon-class {
    width: 17px;
    aspect-ratio: 1 / 1;
  }

  .logo-box .period span {
    font-size: clamp(10px, 4.5vw, 20px);
  }
}

@media (max-width: 400px) {
  .character-detail {
    bottom: 0px !important;
  }
  .text-player {
    margin-bottom: 0px;
  }
  .stat-box {
    width: 65%;
  }

  .server-box {
    width: 40%;
    margin: 0 auto;
  }
  .select-server {
    width: 100%;
  }
}

/* team */
.red-team {
  transform: translateX(20px) !important;
  z-index: 1;
}
.blue-team {
  transform: translateX(-20px) !important;
  z-index: 2;
}

@media (max-width: 992px) {
  .red-team {
    transform: translateX(10px) !important;
  }
  .blue-team {
    transform: translateX(-10px) !important;
  }
}

.blue-team .leader .character-detail,
.blue-team .sub-leader .character-detail,
.blue-team .member .character-detail {
  right: 0px;
}
.blue-team .leader .img-card {
  right: 0px;
}
.red-team .sub-leader .img-character,
.red-team .member .img-character {
  right: 0px;
}

.red-team .member .img-card {
  bottom: -21%;
}
.blue-team .member .img-card {
  bottom: -14%;
}

/* swiper */
.swiper-button {
  width: 168px !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after,
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  content: none !important;
  width: unset !important;
}

.swiper-button-next {
  right: 30px !important;
  left: unset !important;
}
.swiper-button-prev {
  left: 30px !important;
  right: unset !important;
}

.swiper-button-disabled {
  visibility: hidden;
  pointer-events: none;
}
