/* Container หลัก */
.character-wrapper {
  position: relative;
  max-width: 130px;
  min-width: 0px;
  aspect-ratio: 162/202;
  font-size: calc(1 * 100%); 
  transform: scale(1);
}

.character-wrapper > * {
  position: absolute;
  top: 0;
  left: 0;
}

/* Layer1: พื้นหลัง */
.GradeBG {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Layer2 + Layer3: ตัวละคร */
.Card {
  position: absolute;
  top: 40%; 
  left: 50%;
  width: 90%;
  aspect-ratio: 1/1;
  transform: translate(-50%, -50%) scale(1); 
  transform-origin: bottom center;

  object-fit: cover;
  object-position: bottom center; 

  -webkit-mask-image: url('/ProjectRE/Content/04_UI/UI_Material/HeroListFX/Tex_Hero_Mask01.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-mode: luminance;

  mask-image: url('/ProjectRE/Content/04_UI/UI_Material/HeroListFX/Tex_Hero_Mask01.png');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-mode: luminance;
}

/* Layer4: ดาว */
.stars {
  top: 75%;
  left: 52%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%);
}

.stars img {
  width: 18.8%;
  height: auto;
  margin-left: -4.7%;
}

/*.stars img:nth-child(1) { z-index: 6; }
/*.stars img:nth-child(2) { z-index: 5; }
/*.stars img:nth-child(3) { z-index: 4; }
/*.stars img:nth-child(4) { z-index: 3; }
/*.stars img:nth-child(5) { z-index: 2; }
/*.stars img:nth-child(6) { z-index: 1; }

.stars img:first-child {
  margin-left: 0;
}

/* Layer5: ธาตุ */
.Role {
  top: 49.8%;
  left: 3.8%;
  width: 24.7%;
  height: auto;
}

/* Layer6: กรอบรูป */
.SPBG {
  top: 0;
  left: 0%;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Layer7: ชื่อตัวละคร */
.name {
  position: absolute;
  top: 88%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: #ffffffd7;
  font-weight: 500;
  font-size: 11.5px;
  text-shadow: 0 0 5px #000;
  white-space: nowrap;
}

/* Desktop */
/*@media (min-width: 700px) {
  .name {
    font-size: 70%; 
  }
} */


/* ป้องกันการกดคลิกขวา / ลาก / ดาวน์โหลดรูป */
.character-wrapper img {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  /* pointer-events: none; */
}

/* .character-wrapper {
  position: relative;
  overflow: hidden;
} */

/* เพิ่ม overlay โปร่งใสคลุมทั้งหมด */
/* .character-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: default;
  pointer-events: auto;
} */