@font-face {
  font-family: "CN Font";
  src: url("../font/cnfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light only;
  --black: #000000;
  --grey: #707070;
  --white: #ecf8ff;
  --active: #cc9d6a;
  --highlight: #604a36;
  --font: "Noto Sans SC", sans-serif;
  --font2: "Noto Serif SC", serif;
  --tltfont: "CN Font", sans-serif;

  --bdr_s: 5px;
  --navheight: 70px;
  --txt_l: 24px;
  --txt_body: 16px;
}

@media only screen and (max-width: 768px) {
  :root {
    --navheight: 65px;
    --txt_l: 20px;
    --txt_body: 14px;
  } 
}
/*---------------------------------------
   Animation
-----------------------------------------*/
@keyframes fadein{
	from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes fadein_top{
	from {transform: translateY(300px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
@keyframes fadein_bottom{
	from {transform: translateY(-300px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
@keyframes fadein_left{
	from {transform: translateX(-500px); opacity: 0;}
    to {transform: translateX(0); opacity: 1;}
}
@keyframes fadein_right{
	from {transform: translateX(500px); opacity: 0;}
    to {transform: translateX(0); opacity: 1;}
}
@keyframes popin{
  0% {transform: scale(2); opacity: 0;}
  100% {transform: scale(1); opacity: 1;}
}
@keyframes popout{
  0% {transform: scale(0); opacity: 0;}
  100% {transform: scale(1); opacity: 1;}
}
@keyframes rotate{
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}
@keyframes toleft{
  0% {transform: translateX(0);}
  100% {transform: translateX(-3000px);}
}
@keyframes float{
  0% {transform: translateY(0);}
  100% {transform: translateY(-5px);}
}


/*---------------------------------------
   Normalize    
-----------------------------------------*/
body{
  position: relative;
  width: 100%;
  margin: 0px;
  padding: 0px;
  color: var(--black);
  font-size:  var(--txt_s);
  font-family: var(--font);
  font-weight: 500;
  text-wrap: pretty;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--black);
  background: #0e0e0e;
}
body.no-scroll {
  overflow: hidden;
}

.maincontainer{
  width: 100%;
  max-width: 1400px;
}

p, li {
  font-size: var(--txt_body);
  line-height: calc(var(--txt_body) + 5px);
  font-weight: 400;
}

b {
  font-size: var(--txt_body);
  line-height: calc(var(--txt_body) + 6px);
}

ol{
  padding-left: 18px;
}

hr{
  width: 100%;
}

button, a{
  pointer-events: all;
  cursor: pointer;
}

.divider.verti{
  margin: 0;
  width: 0;
  height: 100px;
  border-left: 1.5px solid white;
}

input:not(.checkbox) {
  font-size: var(--txt_body);
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--bdr_s);
  border: 1px solid rgba(243, 196, 107, .2);
  background: white;
  outline: none;
}

.logo{
  width: 125px;
  max-width: 6vw;
  aspect-ratio: 125 / 105;
  background: url(../img/logo_cn.png) top center no-repeat;
  background-size: contain;
}
#en .logo{
  background: url(../img/logo_en.png) top center no-repeat;
  background-size: contain;
}

@media screen and (max-width: 768px) {
  .maincontainer{
    padding-bottom: 200px;
  }
  .draggable-scroll{
    cursor: grab;
  }
  .logo{
    max-width: 15vw;
    z-index: 9999;
  }
}

.helper{
  font-size: small;
  color: var(--grey);
}

/*---------------------------------------
   Font
-----------------------------------------*/
h2{
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--txt_l);
  color: #fbf7e8;
}
.note{
  color: var(--highlight);
  font-weight: 500;
}

.txt_end{
  text-align: end;
}
.txt_smtlt{
  font-size: calc(var(--txt_body) + 2px);
  font-weight: 600;
}
.title{
  width: fit-content;
  height: fit-content;
  max-height: 5vw;
}
@media only screen and (max-width: 768px) {
  .title{
    max-height: 15vw;
    max-width: 90vw;
  }
}
.divider{
  border-bottom: 1px dotted var(--highlight);
}

label{
  font-size: 14px;
  margin-bottom: 5px;
}
table{
  width: 99.5%;
  border-spacing: 1px;
  color: #3c414a;
  margin: 1rem auto 1.5rem;
}
table tr:first-child td{
  padding: .8rem .5rem;
  background-color: var(--highlight);
  text-align: center;
  font-weight: 400;
  color: #fbf7e8;
}
table tr:nth-child(odd) {
  background-color: rgba(108,148,188,.35);
}
table tr:nth-child(even) {
  background-color: rgba(137,167,200,.35);
}
table td {
  font-size: 14px;
  line-height: 18px;
  border: 1px solid rgba(255, 255, 255, .35);
  word-break: break-all;
  padding: .5rem .5rem;
  /* background-color: rgba(74, 74, 134, .3); */
  text-align: center;
}

/*---------------------------------------
   Scroll Effect       
-----------------------------------------*/
/* ::-webkit-scrollbar {
  width: 6px;
  height: 3.5px;
}
::-webkit-scrollbar-track {
  opacity: 0;
}
::-webkit-scrollbar-thumb {
  background: rgba(67, 169, 233, 0.7);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #45adee;
}

body.modal-open {
  overflow-y: scroll; 
} */

/*---------------------------------------
   NAVBAR
-----------------------------------------*/
.navigation{
  position: relative;
  padding: .75vw 2%;
  top: 0;
  position: fixed;
  z-index: 9999;
  max-width: 1920px;
  justify-self: center;
  color: var(--black);
  transition: color .35s;
}
.navigation.nav-white {
  color: white;
  transition: color .35s;
}

.navigation.scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../img/kv/shade.png) bottom center no-repeat;
  background-size: 100% 100%;
  transform: scaleY(-1);
  z-index: -1;
  filter: invert(1);
  opacity: .5;
}
.navigation.nav-white.scrolled::before {
  filter: unset;
  opacity: 1;
}

.nav_wrapper{
  position: absolute;
  width: 100%;
  left: 50%;
  gap: 2.5vw;
  transform: translateX(-50%);
}
.nav_link{
  font-family: var(--tltfont);
  font-size: 1.15vw;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  gap: 0;
}
.nav_link span{
  font-size: .85vw;
  text-transform: uppercase;
  margin-top: -5px;
}
.nav_link:hover, .nav_link.active{
  color: var(--active);
}

@media only screen and (max-width: 768px) {
  .navigation{
    padding: 2vw 2%;
  }
  /* .navigation.scrolled{
    background: linear-gradient(to bottom, black , transparent);
  } */
  .nav_wrapper{
    display: none;
  }
}

/*---------------------------------------
  MODAL
-----------------------------------------*/
.modal{
  width: 100vw;
  height: 100vh;
  display: none;
  position: fixed;
  background: rgba(0, 0, 0, .75);
  z-index: 99999;
}

.modal.active{
  display: flex;
}

.popup_wrapper{
  position: relative;
  width: 650px;
  max-width: 90vw;
  background: url(../img/bg_kv.jpg) top;
  background-attachment: fixed;
  animation: fadein_top .5s forwards;
  overflow: hidden;
}

#captchaModal .popup_wrapper{
  max-width: 300px;
}

.popup_container{
  position: relative;
  width: 100%;
  height: fit-content;
  max-height: 70vh;
  overflow-y: scroll;
  padding: 25px 20px;
  color: var(--black);
  background: rgba(203, 186, 161, .5);
}
.popup_container::-webkit-scrollbar {
  width: 3px;
  height: 3.5px;
}
.popup_container::-webkit-scrollbar-track {
  opacity: 0;
}
.popup_container::-webkit-scrollbar-thumb {
  background: var(--highlight);
  border-radius: 6px;
}
.popup_container::-webkit-scrollbar-thumb:hover {
  background: var(--highlight);
}
.popup_header{
  background: rgba(68, 51, 32, 0.85);
  color: var(--white);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popup_header *{
  z-index: 10;
}


.popup_wrapper h5{
  font-family: var(--font);
  padding: 5px 15px;
  color: white;
  background: var(--highlight);
}
.popup_wrapper b{
  font-size: calc(var(--txt_body) + 5px);
  line-height: calc(var(--txt_body) + 8px);
  margin-bottom: 5px;
}
.popup_wrapper p, .popup_wrapper b{
  font-family: var(--font);
}

.txt_checkbox{
  font-size: 14px; 
  color: var(--highlight); 
  margin:0;
  font-weight: 500;
}
.txt_checkbox span{
  font-size: 14px; 
  color: var(--highlight); 
  cursor: pointer;
}
.txt_checkbox span:hover{
  color: var(--active); 
}

.tab_regis{
  width: 100%;
  position: relative;
  height: fit-content;
  padding-bottom: 10px;
  color: var(--black);
  font-weight: 600;
  font-size: var(--txt_l);
}

.tab_regis:hover, .tab_regis.active{
  color: var(--highlight);
}
.tab_regis.active::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: block;
  width: 25px;
  height: 2px;
  background: var(--highlight);
}
.g-recaptcha {
  transform: scale(0.7);
  transform-origin: center;
}
#preregisModal .g-recaptcha {
  transform-origin: left center;
}
.reward_wrapper{
  width: 100px;
  gap: 5px;
}
.reward_wrapper p, #eraReward p{
  font-size: 12px;
  line-height: 12px;
  text-align: center;
}

.regisBtn_wrapper{
  padding-bottom: 15px;
  border-bottom: 1px solid var(--highlight);
}

@media only screen and (max-width: 768px) {
  .regisBtn_wrapper{
    flex-direction: column;
  }
  .g-recaptcha {
    transform-origin: center !important;
  } 
}

/* Overlay */
.videoModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  padding: 24px;
}
.videoModal.is-open { display: flex; }

/* Dialog */
.videoModal_dialog {
  width: min(100%, 960px);
  filter: drop-shadow( 0 4px 8px rgba(0, 0, 0, 0.5));
  position: relative;
}

.btn_closeVideo.btn_close, .btn_closePopup.btn_close{
  top: -80px !important;
  left: 50%;
  transform: scale(1) translateX(-50%) !important;
}

.videoModal_wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 70vh;
  margin: auto;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
}
.videoModal_wrapper > * {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #000;
}

/*---------------------------------------
   Button
-----------------------------------------*/
.btn{
  all: unset;
}

.btn_home, .btn_fb, .btn_lang{
  width: 35px;
  height: 35px;
  min-width: 25px;
  max-width: 3vw;
  aspect-ratio: 1/1;
  background: url(../img/button/btn_close.png) center no-repeat;
  background-size: contain;
}
.btn_home{
  background: url(../img/button/btn_home.png) center no-repeat;
  background-size: contain;
}
.btn_fb{
  background: url(../img/button/btn_fb.png) center no-repeat;
  background-size: contain;
}
.btn_lang{
  background: url(../img/button/btn_lang.png) center no-repeat;
  background-size: contain;
}

.btn_cta{
  color: white;
  white-space: nowrap;
  font-size: 20px;
  height:  48px;
  padding: 10px 30px;
  border-radius: var(--bdr_s);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--highlight);
}
.btn_cta:hover{
  background: var(--active);
}
.btn_close{
  width: 25px;
  height: 25px;
  aspect-ratio: 1/1;
  background: url(../img/button/btn_close.png) center no-repeat;
  background-size: contain;
}
.btn_close:hover{
  transform: rotate(180deg);
  filter: brightness(1.5);
  transition: transform .35s;
}

.btn_dl{
  position: relative;
  width: 193px;
  max-width: 11vw;
  aspect-ratio: 193 / 56;
  border-radius: 5px;
  overflow: hidden;
}
.btn_dl.apple{
  background: url(../img/kv/dl_apple.png) no-repeat;
  background-size: contain;
}
.btn_dl.google{
  background: url(../img/kv/dl_google.png) no-repeat;
  background-size: contain;
}
.btn_dl.pc{
  background: url(../img/kv/dl_pc.png) no-repeat;
  background-size: contain;
}

.btn_dl::after, .btn_gameModal::after ,.btn_invFriend::after, .historyItem::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .5), transparent);
  translate: -120% 0;
  animation: shine 6s infinite;
}

@keyframes shine{
  0%, 45% {translate: -120% 0;}
  65%, 100% {translate: 120% 0;}
}
@keyframes popping{
  0% {transform: scale(1)}
  100% { transform: scale(.93)}
}
@keyframes poppingcenter{
  0% {transform: translate(-50%, -50%) scale(1)}
  100% { transform: translate(-50%, -50%) scale(.98)}
}

.btn_rule{
  position: fixed;
  right: 0;
  top: 20%;
  z-index: 99;
  width: 53px;
  max-width: 2.8vw;
  aspect-ratio: 53 / 161;
  background: url(../img/button/btn_rule.png) no-repeat;
  background-size: contain;
}

#en .btn_rule{
  background: url(../img/button/btn_rule-en.png) no-repeat;
  background-size: contain;
}

.btn_otp{
  background: var(--black);
  color: white;
  white-space: nowrap;
  height:  48px;
  padding: 10px 20px;
  border-radius: var(--bdr_s);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.btn_otp:hover{
  background: var(--active);
  color: black;
}

@media only screen and (max-width: 768px) {
  .btn_dl{
    max-width: 28vw;
  }
  .btn_rule{
    max-width: 8vw;
  }
}
/*---------------------------------------
   KV
-----------------------------------------*/
#KV{
  position: relative;
  width: 100vw;
  max-width: 1920px;
  aspect-ratio:  1920/910;
  background: url(../img/bg_kv.jpg) bottom center no-repeat;
  background-size: cover;
  justify-self: center;
}

#KV::before{
  content: "";
  position: absolute;
  width: 1920px;
  max-width: 100vw;
  aspect-ratio: 1920/190;
  background: url(../img/kv/shade.png) bottom center no-repeat;
  background-size: contain;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}

.slogan{
  width: 913px;
  max-width: 48vw;
  aspect-ratio: 913/340;
  background: url(../img/kv/slogan-cn.png) center no-repeat;
  background-size: contain;
  transition: opacity .3s;
}
#en .slogan{
  width: 906px;
  max-width: 48vw;
  aspect-ratio: 906/303;
  background: url(../img/kv/slogan-en.png) center no-repeat;
  background-size: contain;
}

.btn_wrapper{
  width: 100%;
  height: 100%;
  position: relative;
  pointer-events: none;
  max-height: fit-content;
  padding: 5%;
  padding-top: 10vw;
  transition:  unset;
}

.char{
  position: absolute;
  width: 1031px;
  max-width: 50vw;
  top: 5vw;
  right: 0;
  aspect-ratio: 1031/1426;
  background: url(../img/kv/char.png) bottom center no-repeat;
  background-size: contain;
  transition: opacity .3s;
  animation: fadein_top 1s backwards;
  pointer-events: none;
}

.cta_wrapper{
  position: absolute;
  bottom: 2vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

.dl_btn2{
  display: none;
}

.btn_scroll{
  color: white;
  z-index: 15;
  font-family: var(--tltfont);
  font-size: .85vw;
  text-transform: uppercase;
  letter-spacing: 15px;
  white-space: nowrap;
  text-indent: 15px;
  text-align: center;
}
.btn_scroll h6{
  padding: var(--p_s) var(--p_l); 
  color: black; 
  font-size: 1.5vw; 
  font-weight: 800; 
  text-transform: none; 
  letter-spacing: 0 !important; 
  text-indent: 0!important; 
  background: var(--active); 
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5))
}
#en .btn_scroll h6{
  font-size: 1.35vw; 
}

.btn_scroll span{
  width: 27px;
  aspect-ratio: 27 / 20;
  max-width: 2vw;
  background: url(../img/kv/arrow.png) bottom center no-repeat;
  background-size: contain;
  animation: float .5s infinite alternate;
}

@media only screen and (max-width: 768px) {
  #KV{
    aspect-ratio: 780 / 1450;
    background: url(../img/bg_kv_m.jpg) bottom center no-repeat;
    background-size: cover;
  }
  #KV::before{
    max-width: unset;
  }
  .slogan, #en .slogan{
    max-width: 90vw;
    aspect-ratio: 913/340;
  }
  .btn_wrapper{
    max-height: 85%;
    padding-top: 18vw;
    z-index: 50;
    justify-content: space-between;
  }
  .char{
    width: 768px;
    max-width: 100vw;
    top: unset;
    bottom: 0;
    aspect-ratio: 768/1043;
    background: url(../img/kv/char_m.png) bottom center no-repeat;
    background-size: contain;
  }
  .btn_scroll{
    bottom: 8vw;
    font-size: 3vw;
  }
  .btn_scroll span{
    max-width: 5vw;
  }
  .btn_scroll h6{
    font-size: 3.5vw; 
  }
  #en .btn_scroll h6{
    font-size: 4vw;
  }
  .dl_btn{
    display: none;
  }
  .dl_btn2{
    display: flex;
  }

}


/*---------------------------------------
   Section
-----------------------------------------*/
.bg_dark{
  position: relative;
  width: 100vw;
  background: url(../img/bg_dark.jpg) bottom center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  justify-self: center;
}
.bg_white{
  position: relative;
  width: 100vw;
  background: url(../img/bg_white.jpg) bottom center no-repeat;
  background-size: cover;
  justify-self: center;
}
.bg_dark p{
  color: white;
  font-family: var(--tltfont);
  font-size: 15px;
}
.rsp_mobile{
  max-width: 1920px;
  /* aspect-ratio:  1920/910; */
  height: fit-content;
  padding: 50px 0;
}
@media only screen and (max-width: 768px) {
  .rsp_mobile{
    max-width: 100vw;
    height: fit-content;
    aspect-ratio:  unset;
  }
}


/*---------------------------------------
   Era
-----------------------------------------*/
.tlt_wrapper{
  width:min(1400px, 75vw);
}
@media only screen and (max-width: 768px) {
  .tlt_wrapper{
    width: 90vw;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .tlt_wrapper p{
    text-align: center;
  }
}

.btn_wrapper-era{
  width: 100%;
  max-width: 90vw;
  margin-bottom: 50px;
}

.btn_era{
  position: relative;
  width: 233px;
  aspect-ratio: 233/565;
  max-width: 12vw;
  filter: saturate(.35);
  display: flex;
  align-items: flex-end;
  padding-bottom: 15px;
}
.btn_era:hover, .btn_era.done{
  filter: unset;
}
/* .btn_era::before{
  content: '點擊加入';
  width: 100%;
  font-size: .8vw;
  color: white;
  letter-spacing: 1vw;
  text-align: center;
  text-indent: 1vw;
  animation: float 1s infinite alternate;
} */
@keyframes ctaFloat {
  from {
    transform: translateX(-50%) scale(1);
  }
  to {
    transform: translateX(-50%) scale(.98);
  }
}


.btn_era::before {
  /* content: '+  點擊加入'; */
  position: absolute;
  left: 50%;
  bottom: 2vw;
  transform: translateX(-50%);
  display: flex;
  align-self: center;
  justify-content: center;
  width: 11vw;
  height: 3vw;
  line-height: 2.7vw;

  font-size: .95vw;
  font-weight: 700;
  color: #fff;
  letter-spacing: .12vw;
  text-align: center;
  text-indent: .12vw;

  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  backdrop-filter: blur(4px);

  animation: ctaFloat .5s infinite alternate ease-in-out;
}

#era60.btn_era::before {
  content: '+  加入 60s';
}
#era70.btn_era::before {
  content: '+  加入 70s';
}
#era80.btn_era::before {
  content: '+  加入 80s';
}
#era90.btn_era::before {
  content: '+  加入 90s';
}
#era00.btn_era::before {
  content: '+  加入 00s';
}
#era10.btn_era::before {
  content: '+  加入 10s';
}


#en .btn_era::before{
  /* content: '+ JOIN NOW'; */
  white-space: nowrap;
  font-size: .65vw;
}
.btn_era:hover::before {
  color: var(--active);
  border-color: var(--active);
}

#en #era60.btn_era::before {
  content: '+  JOIN 60s';
}
#en #era70.btn_era::before {
  content: '+  JOIN 70s';
}
#en #era80.btn_era::before {
  content: '+  JOIN 80s';
}
#en #era90.btn_era::before {
  content: '+  JOIN 90s';
}
#en #era00.btn_era::before {
  content: '+  JOIN 00s';
}
#en #era10.btn_era::before {
  content: '+  JOIN 10s';
}


.btn_era.done::before{
  all: unset;
  position: absolute;
  content: '';
  width: 178px;
  max-width: 90%;
  aspect-ratio: 178/175;
  font-size: .8vw;
  color: white;
  background: url(../img/myera/unlock.png) bottom center no-repeat;
  background-size: cover;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
}
#en .btn_era.done::before{
  content: '';
  background: url(../img/myera/unlock-en.png) bottom center no-repeat;
  background-size: cover;
}

#era60{
  background: url(../img/myera/b1.png) bottom center no-repeat;
  background-size: cover;
}
#era70{
  background: url(../img/myera/b2.png) bottom center no-repeat;
  background-size: cover;
}
#era80{
  background: url(../img/myera/b3.png) bottom center no-repeat;
  background-size: cover;
}
#era90{
  background: url(../img/myera/b4.png) bottom center no-repeat;
  background-size: cover;
}
#era00{
  background: url(../img/myera/b5.png) bottom center no-repeat;
  background-size: cover;
}
#era10{
  background: url(../img/myera/b6.png) bottom center no-repeat;
  background-size: cover;
}


@media only screen and (max-width: 768px) {
  .btn_wrapper-era{
    flex-direction: column;
    margin: 0;
  }
  .btn_era{
    width: 677px;
    max-width: 90vw;
    aspect-ratio: 677/160;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5vw;
  }
  .btn_era::before{
    width: 18vw;
    height: 5vw;
    font-size: 2.5vw;
    line-height: 4.5vw;
    left: 15%;
    bottom: 35%;
  }
  #en .btn_era::before{
    font-size: 2vw;
  }

  @keyframes poping{
    0% {transform: scale(1.15);}
    100% {transform: scale(1);}
  }
  .btn_era.done::before{
    width: unset;
    max-width: unset;
    height: 90%;
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
  }

  #era60{
    background: url(../img/myera/b1_m.png) bottom center no-repeat;
    background-size: cover;
  }
  #era70{
    background: url(../img/myera/b2_m.png) bottom center no-repeat;
    background-size: cover;
  }
  #era80{
    background: url(../img/myera/b3_m.png) bottom center no-repeat;
    background-size: cover;
  }
  #era90{
    background: url(../img/myera/b4_m.png) bottom center no-repeat;
    background-size: cover;
  }
  #era00{
    background: url(../img/myera/b5_m.png) bottom center no-repeat;
    background-size: cover;
  }
  #era10{
    background: url(../img/myera/b6_m.png) bottom center no-repeat;
    background-size: cover;
  }
}


/*---------------------------------------
   Lucky Spin
-----------------------------------------*/
.ticker{
  width: 600px;
  max-width: 100%;
  overflow: hidden;
  position:relative;
  z-index: 10;
  margin-top: -15px;

  -webkit-mask-image: linear-gradient(to right, transparent 0%,black 12%,black 88%, transparent 100%);
  mask-image: linear-gradient( to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.ticker-track{
  width: max-content;
  display: flex;
  gap: 8px;
  padding: 10px;
  animation:ticker var(--duration, 20s) linear infinite;
}

.ticker:hover .ticker-track{
  animation-play-state:paused;
}

@keyframes ticker{
  from {transform: translateX(0);}
  to {transform: translateX(calc(-1 * var(--move-distance)));}
}

.ticker-item{
  display:flex;
  align-items:center;
  gap:  8px;
  padding: 10px 20px;
  border-radius:999px;
  background: rgba(128, 128, 128, .5);
  color:var(--white);
  font-family: var(--font);
  font-size: 14px;
  white-space: nowrap;
  flex-wrap: nowrap;
  user-select: none;
}

.ticker-item span{
  color:  var(--active);
}

.wheel_wrapper{
  position: relative;
  width: 650px;
  max-width: 40vw;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -35px;
  overflow: visible;
}
.wheel_wrapper::before{
  position: absolute;
  content: '';
  width: 100%;
  aspect-ratio: 1/1;
  background: url(../img/luckyspin/wheel.png) center no-repeat;
  background-size: contain;
  z-index: 5;
}

.spinwheel{
  width: 75%;
  transform-origin:center center;
  will-change:transform;
  aspect-ratio: 1/1;
  background: url(../img/luckyspin/wheel_prize.png) center no-repeat;
  background-size: contain;
}
.btn_spin{
  position: absolute;
  width: 206px;
  max-width: 23%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1/1;
  background: url(../img/luckyspin/btn_spin.png) center no-repeat;
  background-size: contain;
  z-index: 10;
  animation: poppingcenter .5s infinite alternate;
}
#en .btn_spin{
  background: url(../img/luckyspin/btn_spin-en.png) center no-repeat;
  background-size: contain;
}
.btn_spin:hover{
  filter: brightness(1.2) saturate(1.1);
  transform: translate(-50%, -50%) scale(.95);
  transition: transform .35s;
}
.btn_spinHistory{
  position: absolute;
  width: 63px;
  max-width: 9%;
  min-width: 35px;
  right: 0;
  top: 10%;
  aspect-ratio: 63/61;
  background: url(../img/luckyspin/btn_history.png) center no-repeat;
  background-size: contain;
  z-index: 10;
}
#en .btn_spinHistory{
  background: url(../img/luckyspin/btn_history-en.png) center no-repeat;
  background-size: contain;
  z-index: 10;
}
.btn_spinHistory:hover{
  filter: brightness(1.2) saturate(1.1);
  transform: scale(.95);
  transition: transform .35s;
}
@media only screen and (max-width: 768px) {
  .wheel_wrapper{
    max-width: 90vw;
  }  
  .btn_spinHistory{
    right: unset;
    left: 0;
    max-width: 10%;
    min-width: 40px;
  }
}

.spinbtn_wrapper{
  position: absolute;
  bottom: 10vw;
  right: 10vw;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.btn_gameModal, .btn_invFriend{
  position: relative;
  width: 357px;
  max-width: 20vw;
  aspect-ratio: 357/82;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 5%;
  filter: saturate(.75);
  overflow: hidden;
  border-radius: 6px;
  z-index: 50;
}
.btn_invFriend::before{
  content: "";
  position: absolute;
  right: 1vw;
  top: 50%;
  transform: translateY(-50%);
  width: 33px;
  max-width: 1.75vw;
  aspect-ratio: 33/29;
  background: url(../img/luckyspin/next.png) center no-repeat;
  background-size: contain;
  z-index: -1;
}
.btn_gameModal h1, .btn_invFriend h1{
  --txtS: 1.3vw;
  font-size: var(--txtS);
  line-height: var(--txtS);
}
.btn_gameModal{
  background: url(../img/luckyspin/btn_minigame.png) center no-repeat;
  background-size: contain;
  color: white !important;
}
.btn_invFriend{
  background: url(../img/luckyspin/btn_invite.png) center no-repeat;
  background-size: contain;
}

.btn_gameModal:hover, .btn_invFriend:hover{
  filter: saturate(1) brightness(1.1);
}
.btn_gameModal p, .btn_gameModal span{
  color: white !important;
}
.btn_gameModal p, .btn_invFriend p{
  --txtS: .8vw;
  font-family: var(--font);
  font-size: var(--txtS);
  line-height: var(--txtS);
  margin: 0;
  font-weight: 500;
}
.btn_invFriend p, .btn_invFriend span{
  color: black !important;
}

.spinCount{
  display: inline-flex;
  justify-content: center;
  margin-top: -1vw;
  letter-spacing: 2px;
  z-index: 50;
}
#en .spinCount{
  letter-spacing: 0;
}

.spinCount span{
  position: relative;
  display: inline-flex;
  font-size: 30px;
  line-height: 15px;
  z-index: 5;
  width: 50px;
  justify-content: center;
  color: white;
}
.spinCount span::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 53px;
  aspect-ratio: 53/47;
  background: url(../img/luckyspin/red.png) bottom center no-repeat;
  background-size: contain;
  z-index: -1;
}

.spinChar.hidden{
  position: absolute;
  width: 584px;
  max-width: 30vw;
  top: 15vw;
  left: -10vw;
  aspect-ratio: 584/1352;
  background: url(../img/luckyspin/char.png) bottom center no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 50;
}
.spinChar.show{
  left: 0;
  transition: left .3s;
}

.emptyHistory{
  width:100%;
  padding:40px 20px;
  text-align:center;
  color: var(--grey);
  font-size:14px;
}

.latestPrize{
  border:1px solid var(--active);
  box-shadow:0 0 15px rgba(204, 157, 106, .5);
}

.historyItem{
  position: relative;
  width: 100%;
  min-height: fit-content;
  padding: 15px;
  background: linear-gradient(to right top, rgba(255,255,255,.75), rgba(255,255,255,.15));
  border-radius: 10px;
  overflow: hidden;
}

.historyItem img{
  width: 75px;
  aspect-ratio: 1/1;
  max-height: 75px;
  object-fit: contain;
  object-position: center;
}
.historyItem p{
  color: var(--highlight);
  font-size: var(--txt_body);
  font-weight: 600;
  margin: 0;
}

.prizeCode{
  color: var(--highlight);
  font-size: var(--txt_body);
  flex-grow: 1;
  padding: 5px 10px;
  background-color: white;
  height: 100%;
  text-align: center;
}
.historyItem .btn_cta{
  font-size: 14px;
  flex-grow: 1;
  max-width: 250px;
  padding: 5px 10px;
  height: unset;
  border-radius: unset;
}
.spinDesc {
  color: var(--highlight);
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.85;
}
.spinTime{
  font-size:  12px;
  color: var(--grey);
}

@media only screen and (max-width: 768px) {
  .spinbtn_wrapper{
    position: relative;
    bottom: unset;
    right: unset;
    display: flex;
    flex-direction: row;
    gap: 1vw;
  }
  .spinChar{
    display: none;
  }  
  .btn_gameModal, .btn_invFriend{
    max-width: 45vw;
    padding: 3%;
  }
  .btn_gameModal h1, .btn_invFriend h1{
    --txtS: 3.25vw;
  }
  .btn_gameModal p, .btn_gameModal span{
    color: white !important;
  }
  .btn_gameModal p, .btn_invFriend p{
    --txtS: 2vw;
  }
  .btn_invFriend::before{
    max-width: 3.5vw;
    right: 5%;
  }
}

/*---------------------------------------
   Feature
-----------------------------------------*/
#weapon{
  background: white;
  padding-top: 0;
  padding-bottom: 0;
  justify-self: center;
}
.wpbtn_wrapper{
  position: relative;
  width: 100%;
  max-width: 100vw;
  padding: 2vw;
  background: white;
  overflow: hidden;
}
.wpbtn_wrapper::-webkit-scrollbar {
  display: none;
}

.wpbtn_wrapper::before{
  position: absolute;
  content: "";
  width: 100%;
  height: 50px;
  top: 100%;
  background: linear-gradient(to bottom, white, rgba(0,0,0,0));
}
.btn_wp{
  position: relative;
  width: 309px;
  max-width: calc(100% / 6);
  aspect-ratio: 309/132;
  background: url(../img/feature/btn_wp.png) center no-repeat;
  background-size: cover;
  filter: saturate(.3);
}
.btn_wp p{
  --txtS: 3.5vw;
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--tltfont);
  font-size: var(--txtS);
  line-height: var(--txtS);
  text-transform: uppercase;
  color: #ecf8ff;
  opacity: .35;
  margin: 0;
  user-select: none;
  pointer-events: none;
}
#en .btn_wp p{
  --txtS: 1.8vw;
}
.btn_wp:hover, .btn_wp.active{
  filter: unset;
}
.btn_wp::before{
  position: absolute;
  content: "";
  width: 55%;
  height: 65%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
#blade-tab::before{
  max-height: 46px;
  background: url(../img/feature/w1.png) center no-repeat;
  background-size: contain;
}
#sword-tab::before{
  max-height: 71px;
  background: url(../img/feature/w2.png) center no-repeat;
  background-size: contain;
}
#fist-tab::before{
  max-height: 76px;
  background: url(../img/feature/w3.png) center no-repeat;
  background-size: contain;
}
#bow-tab::before{
  max-height: 105px;
  background: url(../img/feature/w4.png) center no-repeat;
  background-size: contain;
}
#dart-tab::before{
  max-height: 82px;
  background: url(../img/feature/w5.png) center no-repeat;
  background-size: contain;
}
#spear-tab::before{
  max-height: 57px;
  background: url(../img/feature/w6.png) center no-repeat;
  background-size: contain;
}

.wpContent{
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 700;
  background: url(../img/bg_white.jpg) center no-repeat;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 5vw;
  overflow: hidden;
}

.wpContent::before{
  position: absolute;
  content: "";
  width: 55%;
  height: 100%;
  right: 0;
  top: 0;
  background: linear-gradient(to left,white, rgba(0,0,0,0) );
  mix-blend-mode: screen;
}

.wpContent span {
  position: absolute;
  max-width: 28vw;
  max-height: 100%;
  top: 5%;
  left: -2vw;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: .75;
  animation: popin .35s forwards;
}

#blade span{
  width: 323px;
  aspect-ratio: 323 / 432;
  background: url(../img/feature/t1.png) center no-repeat;
  background-size: contain;
}
#sword span{
  width: 303px;
  aspect-ratio: 303 / 494;
  background: url(../img/feature/t2.png) center no-repeat;
  background-size: contain;
}
#fist span{
  width: 430px;
  aspect-ratio: 430 / 475;
  background: url(../img/feature/t3.png) center no-repeat;
  background-size: contain;
}
#bow span{
  width: 237px;
  aspect-ratio: 237 / 367;
  background: url(../img/feature/t4.png) center no-repeat;
  background-size: contain;
}
#dart span{
  width: 311px;
  aspect-ratio: 311 / 656;
  background: url(../img/feature/t5.png) center no-repeat;
  background-size: contain;
}
#spear span{
  width: 382px;
  aspect-ratio: 382 / 388;
  background: url(../img/feature/t6.png) center no-repeat;
  background-size: contain;
}

.wpContent h1{
  --txtS: 3vw;
  font-family: var(--tltfont);
  font-size: var(--txtS);
  line-height: var(--txtS);
  font-weight: 500;
  margin-bottom: 15px;
}

.wpContent p{
  font-family: var(--font2);
  font-weight: 500;
  font-size: .85vw;
  line-height: 1.15vw;
}

.wp_info{
  width: 560px;
  max-width: 30vw;
  padding: 2vw;
  z-index: 10;
}

.wpChar{
  position: absolute;
  width: 50%;
  max-height: 85%;
  aspect-ratio: 863/677;
  z-index: 5;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  animation: fadein 1s forwards;
}
#blade .wpChar{
  background: url(../img/feature/c1.png) center no-repeat;
  background-size: contain;
}
#sword .wpChar{
  background: url(../img/feature/c2.png) center no-repeat;
  background-size: contain;
}
#fist .wpChar{
  background: url(../img/feature/c3.png) center no-repeat;
  background-size: contain;
}
#bow .wpChar{
  background: url(../img/feature/c4.png) center no-repeat;
  background-size: contain;
}
#dart .wpChar{
  background: url(../img/feature/c5.png) center no-repeat;
  background-size: contain;
}
#spear .wpChar{
  background: url(../img/feature/c6.png) center no-repeat;
  background-size: contain;
}


@media only screen and (max-width: 768px) {
  #weapon{
    gap: 0;
  }
  .wpContent{
    position: relative;
    width: 100%;
    aspect-ratio: 768 / 1000;
    padding: 0;
  }
  .wpbtn_wrapper{
    max-width: 100vw;
    overflow-x: auto;
    justify-content: flex-start !important;
    padding: 2vw 5vw;
  } 
  .wpbtn_wrapper::before{
    content: none;
  }
  .btn_wp{
    max-width: unset;
    height: 65px;
  }
  .btn_wp p{
    --txtS: 10vw;
  }
  #en .btn_wp p{
    --txtS: 5vw;
  }
  .wpContent span{
    max-width: 50vw;
    top: 2vw;
    transform: unset;
  }
  .wpContent h1{
    --txtS: 5.5vw;
    font-size: var(--txtS);
    line-height: var(--txtS);
  }
  .wpContent p {
    font-size: 3.5vw;
    line-height: 4vw;
  }
  .wp_info{
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(to top, white 70%, rgba(0,0,0,0));
    padding: 10vw 5vw;
    padding-bottom: 0;
  }
  .wpChar{
    min-width: 100%;
    width: auto;
    height: 100%;
    bottom: unset;
    top: 5vw;
    transform: translateX(-40%);
  }
  .wp_detail{
    display: none;
  }
}

#feature *{
 z-index: 5;
}
#feature::before{
  position: absolute;
  content: "";
  width: 100%;
  height: 30%;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom,white, rgba(0,0,0,0) );
  mix-blend-mode: screen;
  z-index: 0;
}

#carouselFeature{
  width: 760px;
  max-width: 95vw;
}

.user_wrapper, .user_wrapper p, .user_wrapper span{
  font-family: var(--font);
  font-size: 16px; 
  line-height: 16px;
  margin: 0;
  color: var(--white);
  text-wrap: nowrap;
}
.user_wrapper{
  max-width: 95vw;
  background: rgba(128, 128, 128, .35);
  padding: 10px 20px;
  padding-bottom: 12px;
  border-radius: 999px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  align-self: flex-start;
}
/*.user_wrapper .user_email, .user_wrapper a{*/
.user_wrapper .user_email{
  display: none;
}

.user_info{
  position: relative;
}
.user_wrapper.login .user_info::after{
  content: "|";
}

.user_wrapper a:hover{
  color: var(--active);
}

.user_wrapper.login .user_email, .user_wrapper.login button{
  display: unset;
}
.user_wrapper.login .user_status{
  display: none;
}


@media only screen and (max-width: 768px) {
  .user_wrapper, .user_wrapper p, .user_wrapper span{
    font-size: 14px; 
    line-height: 14px;
  }
}