@font-face {
  font-family: 'S-CoreDream-6Bold';
  src: url('https://cdn.jsdelivr.net/gh/wizfile/font/S-CoreDream-6Bold.eot');
  src: url('https://cdn.jsdelivr.net/gh/wizfile/font/S-CoreDream-6Bold.woff') format('woff');
  font-style: normal;
}

:root {
  color-scheme: only light;
  font-size: min(100px, calc(100vh/10.82));
}

@media (max-width: 640px) {
  :root {
    font-size: min(calc(100vw / 6.4), calc(100vh/10.88));
  }
}


html,
body {
  font-family: 'S-CoreDream-6Bold', sans-serif;
  font-size: medium;
  color: #fff;
  margin: 0;
  padding: 0;
}

body {
  background-image: url("bg.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  user-select: none;
  /*overflow: hidden;*/
}

body,
a {
  text-align: center;
  cursor: url("cursor.png") 8 8, auto;
}


.minigame-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  flex-direction: column;
}

.minigame-wrapper::before,
.minigame-wrapper::after {
  content: "";
  display: block;
  min-height: .25rem;
  flex: 1
}

.minigame-wrapper>* {
  flex: none
}

.minigame-wrapper img {
  display: block;
  width: 100%;
  height: auto
}

.container {
  position: relative;
  display: block;
  width: 5.06rem;
  height: 8.09rem;
  margin: 0 auto;
  box-sizing: border-box;
  padding: .02rem;
  height: auto;
  z-index:2;
}

.container::before{
  content: "";
  display: block;
  position: absolute;
  left: .04rem;
  top: .04rem;
  right: .04rem;
  bottom: .04rem;
  pointer-events: none;
  z-index:-1;
  border-radius: .1rem;
  background:linear-gradient(132.27deg, #0053FC 14.84%, #00DEFF 85.67%)
}
.container::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
  background: url(ui/frame.png) no-repeat center / cover;
}

.frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 504 / 807;
  margin: 0 auto;
  border-radius: .1rem;
  overflow: hidden;
}

.fullframe-view {
  position: absolute;
  left: .02rem;
  top: .02rem;
  width: calc(100% - .04rem);
  height: calc(100% - .04rem);
  border-radius: .1rem;
  overflow: hidden;
}

video,
canvas {
  width: 100%;
  height: 100%;
  display: block;
}


.logo {
  display: block;
  width: 2.74rem;
  margin: 0 auto;
}

.title {
  display: block;
  width: 3.86rem;
  margin: .1rem auto .12rem;
}




.frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

#canvas {
  position: absolute;
  display: block;
  opacity: 0.5;
  mix-blend-mode: color-burn;
}

#gbg {
  position: absolute;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

#gbg_guide {
  position: absolute;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0;
}

.copyright-wrapper {
  display: block;
  width: 2.71rem;
  margin: .25rem auto;
}

#frmStart {
  position: absolute;
  background-color: rgba(0, 17, 41, 0.8);
  z-index: 1;
  justify-content: center;
}

#frmResult {
  display: none;
  position: absolute;
  background-color: rgba(0, 17, 41, 0.8);
  z-index: 1;
}

#frmResultP {
  display: none;
  position: absolute;
  background-color: rgba(0, 17, 41, 0.8);
  z-index: 1;
}

#perfectTitle {
  position: absolute;
  top: .33rem;
  left: 50%;
  width: 3.26rem;
  margin-left: -1.63rem
}

#resultMsgP {
  position: absolute;
  bottom: 4.6rem;
  left: 50%;
  width: 4.44rem;
  margin-left: -2.22rem
}


.init-pop {
  position: absolute;
  width: 4.46rem;
  left: 50%;
  margin-left: -2.23rem;
  top: 50%;
  margin-top: -1.5rem;
}

.init-pop img {
  opacity: 1;
  backface-visibility: hidden;
}

#btnClose {
  position: absolute;
  width: .27rem;
  height: auto;
  bottom: 50%;
  left: 50%;
  margin-bottom: 1.6rem;
  margin-left: 1.78rem;
  opacity: 1;
  backface-visibility: hidden;
}

#btnStart {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.31rem;
  margin-left: -1.155rem;
  margin-top: 1.08rem;
  backface-visibility: hidden;
}

#resultMsg {
  display: block;
  width: 4.49rem;
  height: auto;
  margin: 35% auto 0;
}

#pointbox {
  position: absolute;
  bottom: 2.85rem;
  left: 50%;
  margin-left: -1.62rem;
  width: 3.24rem;
  height: 1.57rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  backface-visibility: hidden;
}

#pointbox-score {
  position: absolute;
  bottom: .43rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .54rem;
  /*color: #0084ff;  글씨 색상 */

  font-family: 'S-CoreDream-6Bold';
  background: linear-gradient(129deg, #005aff 0%, #00a4ff 58%, #00c5c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  letter-spacing: -.02em;
  padding-right: 0.2em;
  padding-left: 0.2em;
}

#pointbox-bestscore {
  font-family: 'S-CoreDream-6Bold';
  position: absolute;
  bottom: .24rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .16rem;
  color: white;
  font-weight: bold;
}


#btnRetry,
#btnRetryP {
  position: absolute;
  bottom: .47rem;
  width: 2.61rem;
  left: 50%;
  margin-left: -1.305rem;
}

#effect-container {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: screen;
  overflow: hidden;
}

.intImage {
  opacity: 0;
}

#video-container {
  width: 96.4%;
  margin: .08rem auto 0;
  opacity: 0;
}

#video-container.active {
  opacity: 1;
}



button,
input,
select {
  margin: 0;
  border: 0;
  appearance: none;
  padding-top: .02rem;
}

button {
  margin-top: .1rem;
  padding: .1rem;
  font-size: .16rem;
}
a{
    text-decoration: none;
}

.language-select-button {
    width: 1.1rem;
    height: .44rem;
    position: absolute;
    right:.2rem;
    top: .2rem;
    z-index: 99;
}

.language-select-button .toggle-button {
    width: 100%;
    height: 100%;
    border-radius: .1rem;
    padding:0;margin:0;    
    color: #b9b7ff;
    font-size: .2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    background-color: #2818a2;
    cursor: pointer;
}

.language-select-button .expander {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    overflow: hidden;
    max-height: 0px;
    border-radius: .1rem;
    position: absolute;
    left: 0;
    top: 0;
    transition: all .2s linear;
    background-color: #000000e6;
    cursor: pointer;
}

.language-select-button .expander .language__item {
    width: 100%;
    font-size: .2rem;
    text-align: center;
    color: #7e7bff;
    padding: .15rem 0;
    cursor: pointer;
}
.language-select-button.active .expander {
    max-height: 2rem;
    padding: .51rem 0 .15rem
}