.popup {
  position: fixed;
  z-index: 99;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  overflow-y: auto;
  display: none;
}
.popup.show {
  display: flex;
  align-items: center;
}
.popup__wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 996px;
  position: relative;
  background: url("../images/texture_common.png") center center repeat;
}
.popup__wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: url("../images/line.png") center center repeat-x;
}
.popup__wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: url("../images/line.png") center center repeat-x;
}
.popup__inner {
  position: relative;
}
.popup__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: url("../images/line-v.png") top center repeat-y;
}
.popup__inner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: url("../images/line-v.png") top center repeat-y;
}
.popup__header {
  padding: 25px;
  background: url("../images/line.webp") bottom center repeat-x;
}
.popup__header h2 {
  font-size: min(max(3.5vw, 28px), 36px);
  font-weight: bold;
  background-color: #f4dda3;
  background: url(../images/site_pattern.png) left center repeat-x;
  background-size: auto 100%;
  background-clip: text;
  color: #ffffff;
  line-height: 1.2;
  filter: drop-shadow(5px 0 10px rgba(193, 145, 17, 0.5));
  text-transform: uppercase;
  text-align: center;
}
.popup__body {
  padding: 35px;
  background-color: #000;
}
@media (min-width: 996px) {
  .popup__body {
    flex: 0 0 calc(100% - 300px);
    max-height: 100vh;
    overflow-y: auto;
  }
  .popup__body::-webkit-scrollbar-thumb {
    background: #ed9b33;
    border-radius: 20px;
  }
  .popup__body::-webkit-scrollbar {
    width: 10px;
    background: #382000;
  }
}
.high-light {
  color: #f3ce7e;
}
.common-subtitle {
  color: #ed9b33;
}
.popup__close {
  position: fixed;
  right: 5%;
  top: 2%;
  z-index: 1;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: url("https://storage-asset.msi.com/event/2025/NB/little-nightmares-3-2025/images/icon-close.png")
    center center no-repeat;
  background-size: cover;
  opacity: 0.6;
}
.popup__close:hover {
  opacity: 1;
}
@media (min-width: 996px) {
  .popup__close {
    position: fixed;
    right: 2%;
    top: 2%;
    z-index: 1;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: url("https://storage-asset.msi.com/event/2025/NB/little-nightmares-3-2025/images/icon-close.png")
      center center no-repeat;
    background-size: cover;
    opacity: 0.6;
  }
}

.terms {
  font-size: 18px;
  line-height: 1.5;
}
.terms h3 {
  padding-bottom: 25px;
}
.terms ol li {
  margin-left: 20px;
  padding-bottom: 20px;
  list-style: lower-roman;
}
.terms ul {
  margin-left: 20px;
  padding-bottom: 20px;
}
.terms ul ol li {
  list-style: lower-roman;
}
.terms ul li {
  list-style: disc;
  padding: 8px 0;
}
.terms ul li ol li {
  list-style: lower-roman;
}
.terms ul li span {
  color: #11f9f8;
}
.terms ul li .star {
  color: #ff0000;
}
.terms ul li .note {
  font-size: 16px;
  padding: 10px 0;
  color: #ddd;
}
.terms p {
  padding-bottom: 20px;
}
.terms a {
  color: #f3ce7e;
  border-bottom: 1px solid #f3ce7e;
}
.terms a:hover {
  border: none;
}
.terms-sublist {
  margin-top: 3%;
}
.terms ol.terms-sublist li {
  list-style-type: disc;
}
.terms-sublist-txt {
  margin-top: 3%;
}
.terms ol.terms-sublist-txt li {
  list-style-type: circle;
}
@-webkit-keyframes btn {
  0% {
    background-size: 100% 150%;
    background-position: 100%;
    background: -webkit-gradient(
      linear,
      left bottom,
      left top,
      from(#c48a10),
      to(#6f644b)
    );
    background: linear-gradient(0deg, #c48a10, #6f644b);
  }
  100% {
    background-size: 200% 100%;
    background-position: 50%;
    background: -webkit-gradient(
      linear,
      left bottom,
      left top,
      from(#c48a10),
      to(#6f644b)
    );
    background: linear-gradient(360deg, #c48a10, #6f644b);
  }
}

@keyframes btn {
  0% {
    background-size: 100% 150%;
    background-position: 100%;
    background: -webkit-gradient(
      linear,
      left bottom,
      left top,
      from(#c48a10),
      to(#6f644b)
    );
    background: linear-gradient(0deg, #c48a10, #6f644b);
  }
  100% {
    background-size: 200% 100%;
    background-position: 50%;
    background: -webkit-gradient(
      linear,
      left bottom,
      left top,
      from(#c48a10),
      to(#6f644b)
    );
    background: linear-gradient(360deg, #c48a10, #6f644b);
  }
}

@keyframes mask-shine {
  0% {
    mask-position: -200% 0;
  }
  100% {
    mask-position: 200% 0;
  }
}

.shine {
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: mask-shine 1.5s ease-in-out 1; /* 執行一次 */
  animation-delay: 0.5s; /* 在淡入後延遲0.5秒開始 */
}

.contentWrap {
  background-image: url(https://storage-asset.msi.com/event/2025/CND/cool-down-build-up/images/model-bg.jpg);
  background-position: left;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.eligible {
  position: relative;
  padding: 0 0 5%;
}

.eligible::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(rgba(140, 182, 198, 0)),
    color-stop(1%, rgba(140, 182, 198, 0.01)),
    to(rgb(114 192 196))
  );
  background: linear-gradient(
    to top,
    rgba(140, 182, 198, 0) 0%,
    rgb(114 192 196) 100%
  );
  z-index: 0;
}
/*.eligible::after {
   content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(rgba(140, 182, 198, 0)),
    color-stop(1%, rgba(140, 182, 198, 0.01)),
    to(rgb(0, 0, 0))
  );
  background: linear-gradient(
    to bottom,
    rgba(140, 182, 198, 0) 0%,
    rgba(140, 182, 198, 1) 100%
  );
  z-index: 0;
} */
.eligible__wrapper {
  position: relative;
  z-index: 10;
}

.eligible__wrapper-pdLine {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  margin-top: 7%;
}

@media (min-width: 996px) {
  .eligible__wrapper-pdLine {
    gap: 50px;
  }
}

.eligible__wrapper-pdLine .itemBox {
  width: 33%;
  padding: 2% 0 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

@media (min-width: 996px) {
  .eligible__wrapper-pdLine .itemBox {
    width: calc(33% - 20px);
    border-radius: 25px;
  }
}

.eligible__wrapper-pdLine .itemBox:hover {
  cursor: pointer;
  -webkit-filter: drop-shadow(0 0 10px #ffffff);
  filter: drop-shadow(0 0 10px #ffffff);
}

.eligible__wrapper-pdLine .itemBox:hover figure {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.eligible__wrapper-pdLine .itemBox figure {
  width: 75%;
  margin: 0 auto;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  z-index: 0;
}

.eligible__wrapper-pdLine .itemBox h4 {
  color: #fff;
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  background: #00b3ba;
  padding: 5px 0;
  z-index: 10;
  text-transform: uppercase;
}

@media (min-width: 996px) {
  .eligible__wrapper-pdLine .itemBox h4 {
    font-size: 22px;
    margin-top: 20px;
    padding: 15px 0;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.eligible__wrapper .itemBox.active {
  -webkit-filter: drop-shadow(0 0 10px #929292);
  filter: drop-shadow(0 0 10px #929292);
  background: #bbfbff;
}

.eligible__wrapper-subTitle {
  position: relative;
  color: #e3ddd7;
  text-align: center;
  font-size: 22px;
  text-transform: uppercase;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  padding: 20px 0 10px;
}

@media (min-width: 996px) {
  .eligible__wrapper-subTitle {
    font-size: 28px;
    padding: 5% 0 2%;
  }
}

.eligible__wrapper-subTitle::before,
.eligible__wrapper-subTitle::after {
  content: "";
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  background: linear-gradient(
    to left,
    rgba(140, 182, 198, 0) 0%,
    rgb(0, 76, 115) 50%,
    rgba(140, 182, 198, 0) 100%
  );
  width: 100%;
  height: 2px;
}

.eligible__wrapper-subTitle::before {
  margin-right: 5%;
}

.eligible__wrapper-subTitle::after {
  margin-left: 5%;
}

.eligible__wrapper-subTitle h4 {
  font-size: 20px;
  padding: 5px 25px;
  border-radius: 10px;
  color: #004e74;
}

@media (min-width: 996px) {
  .eligible__wrapper-subTitle h4 {
    font-size: 26px;
  }
}

.eligible__wrapper-subtabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.eligible__wrapper-subtabs .btnSty {
  padding: 10px;
  margin: 10px;
  color: #fff;
  font-weight: bold;
  background: #8f8173;
  font-size: 14px;
  border: 1px solid #fff;
  cursor: pointer;
}

.eligible__wrapper-subtabs .btnSty:hover {
  background: #8f8173;
}

@media (min-width: 996px) {
  .eligible__wrapper-subtabs .btnSty {
    font-size: 20px;
  }
}

.eligible__wrapper .btnSty.active {
  background: #705e4d;
}

.eligible__wrapper-table {
  margin: 20px 0;
}

.eligible__wrapper-table .item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 auto;
  max-width: 1000px;
  color: #fff;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid #ffffff;
}

.eligible__wrapper-table .item:hover {
  /* -webkit-box-shadow: 0 0 10px #9f7a58;
  box-shadow: 0 0 10px #9f7a58; */
  background: rgba(210, 252, 255, 0.8);
}

.eligible__wrapper-table .item .pdNameCol {
  width: 65%;
  border-right: 2px solid #ffffff;
}

.eligible__wrapper-table .item .steamCodeCol {
  width: 35%;
}

.eligible__wrapper-table .item .steamCodeCol .col-numBox {
  font-size: 14px;
  padding: 15px;
  text-align: center;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #5a616b;
}

@media (min-width: 996px) {
  .eligible__wrapper-table .item .steamCodeCol .col-numBox {
    font-size: 20px;
  }
}

.eligible__wrapper-table .item .col-title {
  font-size: 14px;
  color: #fff;
  text-align: center;
  padding: 5px;
  background: #004e74;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

@media (min-width: 996px) {
  .eligible__wrapper-table .item .col-title {
    font-size: 22px;
    padding: 10px;
  }
}

.eligible__wrapper-table .item .col-pdBox {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 15px;
}

.eligible__wrapper-table .item .col-pdBox__name {
  font-size: 14px;
  margin-right: 20px;
  color: #5a616b;
}

@media (min-width: 996px) {
  .eligible__wrapper-table .item .col-pdBox__name {
    font-size: 20px;
  }
}

.eligible__wrapper-table .item .col-pdBox__name:hover {
  text-decoration: underline;
}

.eligible__wrapper-table .item .col-pdBox__btn {
  color: #fff;
  background: #00b3ba;
  padding: 5px 0;
  border-radius: 5px;
  border: 1px solid #00b3ba;
  -webkit-box-shadow: 0px 3px 0 #009298;
  box-shadow: 0px 3px 0 #009298;
  font-size: 14px;
  text-align: center;
  width: 100%;
  cursor: pointer;
}

@media (min-width: 996px) {
  .eligible__wrapper-table .item .col-pdBox__btn {
    padding: 5px 20px;
    font-size: 18px;
    width: auto;
  }
}

.eligible__wrapper-table .item .col-pdBox__btn:hover {
  color: #009298;
  background: #ffffffef;
}
