body {
  &.fixed {
    overflow: hidden;
  }
}

.warning {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  background: #000 url("../images/warning-text@2x.png") repeat-x center center;
  background-size: 100% 80%;
  z-index: 100;
  height: 12vh;
  @media (width > 1200px) {
    height: 6vw;
    background-size: 49vw 100%;
    background-position: left center;
  }
}

.site-header {
  background-color: #297640;
  padding: 1vw 0;
  @media (width > 1200px) {
    padding: 4px 0;
  }
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6vw;
  @media (width > 1200px) {
    padding: 0 10px;
  }
}

.tge-logo {
  width: 20vw;
  aspect-ratio: 328/192;
  display: block;
  @media (width > 1200px) {
    width: 164px;
  }
}

.btn-group {
  display: flex;
  gap: 4vw;
  @media (width > 1200px) {
    gap: 32px;
  }
}

.btn-link {
  width: 9vw;
  aspect-ratio: 74/75;
  display: block;
  font-size: 0;
  background: transparent url("../images/header-btn.png") no-repeat 0 0;
  background-size: 200% auto;
  transition: transform 300ms ease;
  @media (width > 1200px) {
    width: 74px;
  }
  &.download {
    background-position: 0 0;
  }
  &.home {
    background-position: 100% 0;
  }
  @media (hover: hover) {
    &:hover {
      transform: translate3d(0, -5%, 0);
      &.download {
        background-position: 0 100%;
      }
      &.home {
        background-position: 100% 100%;
      }
    }
  }
}

.site-main {
  background: #fff url("../images/main-bg.jpg") no-repeat center top;
  background-size: 160vw auto;
  @media (width > 1200px) {
    background-size: 1920px auto;
  }
}

.section-home {
  background: #fff url("../images/home-bg.jpg") no-repeat center top;
  background-size: 160vw auto;
  position: relative;
  overflow: hidden;
  height: 80vw;
  @media (width > 1200px) {
    background-size: 1920px auto;
    height: 950px;
  }
}

.main-title {
  width: 88vw;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-35%, 32%, 0);
  @media (width > 1200px) {
    width: 1052px;
    transform: translate3d(-35%, 33%, 0);
  }
}

.logo-all {
  width: 40vw;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-134%, 18%, 0);
  @media (width > 1200px) {
    width: 485px;
    transform: translate3d(-133%, 18%, 0);
  }
}

.section-home-text {
  font-family: "Noto Serif TC", serif;
  text-align: center;
  font-size: 1.4vw;
  color: #000;
  font-weight: 800;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate3d(-50%, -80%, 0);
  width: 100%;
  @media (width > 1200px) {
    font-size: 18px;
    transform: translate3d(-50%, 0%, 0);
  }
}

.section-event {
  background: transparent url("../images/event-bg.png") no-repeat center top;
  background-size: 100vw;
  font-family: "Noto Sans TC", sans-serif;
  padding-top: 15vw;
  padding-bottom: 20vw;
  @media (width > 1200px) {
    background-size: 1200px auto;
    padding-top: 176px;
    padding-bottom: 190px;
  }
}

.event-form-text {
  text-align: center;
  color: #fff;
  font-size: 3vw;
  font-weight: 700;
  margin-bottom: 2vw;
  @media (width > 1200px) {
    font-size: 36px;
  }
}

.event-form {
  width: 75vw;
  background: transparent url("../images/pattern@2x.jpg") repeat-x center bottom;
  background-size: auto 120%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 2vw 0;
  border-radius: 3vw;
  border: solid 0.4vw #ba5d62;
  box-shadow: 0 0 1vw #000;
  gap: 1vw;
  @media (width > 1200px) {
    width: 900px;
    border-width: 4px;
    border-radius: 30px;
    padding: 24px 0;
  }
}

.event-form-field {
  display: flex;
  gap: 2vw;
  padding-bottom: 1vw;
  align-items: flex-end;
  padding: 0 8vw;
  &:last-child {
    padding-top: 2vw;
  }
  @media (width > 1200px) {
    gap: 10px;
    padding: 0 80px;
    &:last-child {
      padding-top: 22px;
    }
  }
  label {
    font-size: 3vw;
    color: #fff;
    font-weight: 700;
    flex: 1;
    white-space: nowrap;
    @media (width > 1200px) {
      font-size: 36px;
    }
  }
  input {
    width: 100%;
    font-size: 3vw;
    background-color: transparent;
    border: 0;
    border-bottom: solid 0.3vw #fff;
    border-radius: 0;
    color: #fff;
    padding: 0;
    font-weight: 900;
    &:focus {
      outline: 0;
    }
    @media (width > 1200px) {
      width: 376px;
      font-size: 36px;
      border-width: 4px;
    }
  }
}

.event-form-btn-submit {
  cursor: pointer;
  width: 30vw;
  aspect-ratio: 360/107;
  background: transparent url("../images/event-form-btn-submit.png") no-repeat 0
    0;
  background-size: 100% auto;
  font-size: 0;
  border: 0;
  @media (hover: hover) {
    &:hover {
      background-position: 0 100%;
    }
  }
  @media (width > 1200px) {
    width: 358px;
  }
}

.event-intro {
  padding-top: 2vw;
  @media (width > 1200px) {
    padding-top: 30px;
  }
}

.event-intro-text {
  text-align: center;
  color: #fff;
  font-size: 2.4vw;
  font-weight: 700;
  &.highlight {
    color: #00fd9b;
    font-size: 2.2vw;
    margin-bottom: 2vw;
  }
  @media (width > 1200px) {
    font-size: 30px;
    &.highlight {
      font-size: 26px;
      margin-bottom: 22px;
    }
  }
}

.event-intro-exchange {
  margin: 0 auto 2vw;
  width: 42vw;
  @media (width > 1200px) {
    margin: 0 auto 30px;
    width: 492px;
  }
}

.event-download {
  width: 75vw;
  background: transparent url("../images/pattern@2x.jpg") repeat-x center bottom;
  background-size: auto 120%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 4vw 3vw 2.4vw;
  border-radius: 3vw;
  border: solid 0.4vw #ba5d62;
  box-shadow: 0 0 1vw #000;
  gap: 4.4vw;
  @media (width > 1200px) {
    width: 900px;
    border-width: 4px;
    border-radius: 30px;
    padding: 54px 24px 32px;
    gap: 42px;
  }
}

.event-download-btn-download {
  width: 55vw;
  aspect-ratio: 655/107;
  background: transparent url("../images/event-donwload-btn-download.png")
    no-repeat 0 0;
  background-size: 100% auto;
  font-size: 0;
  border: 0;
  @media (hover: hover) {
    &:hover {
      background-position: 0 100%;
    }
  }
  @media (width > 1200px) {
    width: 654px;
  }
}

.event-download-text {
  color: #fff;
  font-size: 2.4vw;
  font-weight: 700;
  @media (width > 1200px) {
    font-size: 30px;
  }
}

.event-prize {
  padding-top: 8vw;
  padding-bottom: 1vw;
  @media (width > 1200px) {
    padding-top: 80px;
    padding-bottom: 40px;
  }
}

.event-prize-title {
  width: 38vw;
  margin: 0 auto;
  @media (width > 1200px) {
    width: 460px;
  }
}

.event-prize-physical {
  padding-top: 10vw;
  @media (width > 1200px) {
    padding-top: 115px;
  }
}

.event-prize-merchandise {
  margin-bottom: 2vw;
  @media (width > 1200px) {
    padding-top: 15px;
    margin-bottom: 20px;
  }
}

.event-prize-sub-title {
  width: 42vw;
  margin: 0 auto;
  @media (width > 1200px) {
    width: 492px;
  }
}

.event-prize-wrap {
  width: 93vw;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
  gap: 2vw 0.4vw;
  @media (width > 1200px) {
    width: 1116px;
    gap: 20px 6px;
  }
}

.event-prize-item {
  flex: 0 0 49%;
}

.winner-title {
  width: 80vw;
  aspect-ratio: 1914/208;
  background: transparent url("../images/winner-title@2x.png") no-repeat 0 0;
  background-size: 100% auto;
  margin: 0 auto 27vw;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-size: 6vw;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  @media (width > 1200px) {
    width: 960px;
    font-size: 70px;
    margin-bottom: 328px;
  }
}

.about-project {
  width: 92vw;
  background: transparent url("../images/pattern@2x.jpg") repeat-x center bottom;
  background-size: auto 120%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 1.6vw 1vw 1.2vw;
  border-radius: 3vw;
  border: solid 0.4vw #ba5d62;
  box-shadow: 0 0 1vw #000;
  gap: 1vw;
  &:nth-of-type(even) {
    margin-bottom: 3vw;
  }
  @media (width > 1200px) {
    width: 1104px;
    border-width: 4px;
    border-radius: 30px;
    padding: 30px 8px 24px;
    gap: 10px;
    &:nth-of-type(even) {
      margin-bottom: 40px;
    }
  }

  h2 {
    display: flex;
    justify-content: center;
    gap: 0.6vw;
    text-align: center;
    align-items: center;
    span {
      font-size: 3.6vw;
      color: #fff;
    }
    img {
      width: 4.5vw;
    }
    @media (width > 1200px) {
      gap: 8px;
      span {
        font-size: 40px;
      }
      img {
        width: 60px;
      }
    }
  }
  p {
    font-size: 2.8vw;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 0 #672900, 1px 1px 0 #672900, 0 -1px 0 #672900,
      1px 0 0 #672900;
    @media (width > 1200px) {
      font-size: 32px;
      line-height: 1.4;
    }
  }
}

.section-remind {
  padding-bottom: 6vw;
  @media (width > 1200px) {
    padding-bottom: 60px;
  }
}

.section-remind-content {
  width: 92vw;
  margin: 0 auto;
  background-color: #4a3800;
  border: solid 0.4vw #fff;
  border-radius: 3vw;
  padding: 4vw 2vw;
  @media (width > 1200px) {
    width: 1154px;
    border-width: 4px;
    padding: 30px 20px;
  }
  h2 {
    text-align: center;
    color: #fff;
    font-size: 5vw;
    margin-bottom: 2vw;
    @media (width > 1200px) {
      font-size: 64px;
      margin-bottom: 20px;
    }
  }
  ul {
    color: #fff;
    margin-left: 0;
    padding-left: 7vw;
    @media (width > 1200px) {
      padding-left: 36px;
    }
    & > li {
      font-size: 3vw;
      margin-bottom: 3vw;
      &:nth-child(1),
      &:nth-child(2),
      &:nth-child(3) {
        margin-bottom: 0;
      }
      @media (width > 1200px) {
        font-size: 30px;
        margin-bottom: 24px;
      }
    }
  }
  ol {
    list-style: none;
    padding-left: 3vw;
    @media (width > 1200px) {
      padding-left: 30px;
    }
    li {
      &::marker {
        content: "- ";
      }
    }
  }
}

.site-footer {
  padding: 6vw 0 30vw;
  background-color: #000;
  @media (width > 1200px) {
    padding: 64px 0 160px;
  }
}

.logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4vw;
  margin-bottom: 2vw;
}

.logo-cave {
  width: 5vw;
  @media (width > 1200px) {
    width: 64px;
  }
}

.logo-userjoy {
  width: 15vw;
  @media (width > 1200px) {
    width: 200px;
  }
}

.logo-nada-holding {
  width: 20vw;
  @media (width > 1200px) {
    width: 244px;
  }
}

.copyright-wrap {
  display: flex;
  justify-content: center;
  border-bottom: solid 1px #fff;
  gap: 2vw;
  margin-bottom: 4vw;
  padding-bottom: 4vw;
  @media (width > 1200px) {
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
  }
}

.copyright-text {
  font-size: 1.5vw;
  color: #fff;
  @media (width > 1200px) {
    font-size: 20px;
  }
}

.level {
  display: flex;
  align-items: flex-start;
  gap: 1vw;
  @media (width > 1200px) {
    gap: 20px;
  }
}

.level-image {
  width: 4vw;
  @media (width > 1200px) {
    width: 30px;
  }
}

.level-list {
  list-style: none;
  padding-left: 0;
  li {
    font-size: 1.5vw;
    color: #fff;
  }
  @media (width > 1200px) {
    li {
      font-size: 20px;
    }
  }
}

.footer-text {
  text-align: center;
  font-size: 2vw;
  color: #fff;
  margin-bottom: 2vw;
  padding: 0 1vw;
  @media (width > 1200px) {
    font-size: 20px;
  }
}

.footer-nav {
  text-align: center;
  display: flex;
  justify-content: center;
  font-size: 0;
  a {
    display: block;
    color: #fff;
    font-size: 2vw;
    text-decoration: none;
    padding: 0 1vw;
    &:nth-child(1) {
      border-left: solid 1px #fff;
      border-right: solid 1px #fff;
    }
    &:not(:nth-child(1)) {
      border-right: solid 1px #fff;
    }
    @media (width > 1200px) {
      font-size: 20px;
    }
  }
}

@keyframes titleAnimation {
  0%,
  50%,
  100% {
    filter: brightness(100%);
    transform: scale(1) rotate(0);
  }
  25% {
    filter: brightness(120%);
    transform: scale(1.05) rotate(1deg);
  }
  75% {
    filter: brightness(120%);
    transform: scale(1.05) rotate(-1deg);
  }
}

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 100;
  &.active {
    pointer-events: auto;
    opacity: 1;
  }
}

.modal-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.modal-wrap {
  width: 60vw;
  background: transparent url("../images/pattern@2x.jpg") repeat-x center bottom;
  background-size: auto 120%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 5.6vw 3vw;
  border-radius: 3vw;
  border: solid 0.4vw #ba5d62;
  box-shadow: 0 0 1vw #000;
  gap: 4.4vw;
  position: relative;
  @media (width > 1200px) {
    width: 360px;
    border-width: 4px;
    border-radius: 30px;
    padding: 54px 24px;
  }
}

.modal-btn-close {
  background: transparent url("../images/btn-close@2x.png") no-repeat center
    center;
  background-size: cover;
  position: absolute;
  top: 0;
  right: 0;
  width: 9vw;
  aspect-ratio: 1/1;
  cursor: pointer;
  border: 0;
  padding: 0;
  font-size: 0;
  translate: 50% -50%;
  transition: rotate 300ms ease;
  transform-origin: center;
  @media (width > 1200px) {
    width: 69px;
  }
  @media (hover: hover) {
    &:hover {
      rotate: 360deg;
    }
  }
}

.modal-content {
  p {
    font-family: "Noto Sans TC", sans-serif;
    font-size: 4vw;
    color: #fff;
    font-weight: 800;
    text-align: center;
    @media (width > 1200px) {
      font-size: 28px;
    }
  }
}

.loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #fff;
  left: 0;
  top: 0;
  z-index: 150;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: opacity 1.5s ease;
  &.loaded {
    opacity: 0;
  }
}

.spiner {
  width: 4rem;
  height: 4rem;
  border: 0 solid transparent;
  border-radius: 50%;
  position: relative;
  &:before,
  &:after {
    content: "";
    border: 0.2rem solid #297640;
    border-radius: 50%;
    width: inherit;
    height: inherit;
    position: absolute;
    top: 0;
    left: 0;
    animation: loaderAnimation 1s linear infinite;
    opacity: 0;
  }
  &:before {
    animation-delay: 1s;
  }
  &:after {
    animation-delay: 0.5s;
  }
}

@keyframes loaderAnimation {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
}
