@charset "utf-8";
@import url("reset.min.1.2.css");
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  background: #43060e;
  color: #fff;
  font-family: "Noto Sans TC", sans-serif;
}


body {
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  display: block;
  border: 0;
  outline: none;
}

/* a:focus-visible {
  outline: 3px solid #ffe19a;
  outline-offset: 5px;
  border-radius: 8px;
} */

.ruler {
  display: none;
}

.event-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  /* min-height: 113.646vw; */
  background: url(../images/bg1.webp) center top / 100% auto no-repeat;
}

.event-page::before, .event-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.event-page::before {
  z-index: 2;
  background-image: url(../images/bg2.png);
  background-position: center top;
}

.event-page::after {
  z-index: 2;
  background-image: url(../images/bg_bottom.png);
  background-position: center bottom;
}

header {
  position: relative;
  height: 45.938vw;
}

header .all, header .main, header .pic_box, header .info_box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

header .pic_box {
  overflow: hidden;
}

header .pic_box>div {
  width: 100%;
  height: 100%;
}

header .char_mid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity .5s .15s,transform .6s cubic-bezier(.39,.71,.11,1.36) .15s !important;
}

header .info_box {
  z-index: 3;
  pointer-events: none;
}

header .info_box a {
  pointer-events: auto;
}

.uj_logo {
  position: absolute;
  top: 4.25vw;
  left: 41.15%;
  width: 17.7%;
  transition: filter .25s, transform .25s;
}
.uj_logo:hover {  
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, .5)) brightness(1.05);
  transform: translateY(-2px);
}

.title_all {
  position: absolute;
  top: 12.734vw;
  left: 26.224%;
  width: 47.005%;
}

.mall_rule, .mall_btn {
  position: absolute;
  top: 36.302vw;
  transition: filter .25s, transform .25s;
}

.mall_rule {
  left: 29.063%;
  width: 18.021%;
}

.mall_btn {
  left: 47.083%;
  width: 24.271%;
  animation: light 1s alternate infinite;
}
@keyframes light {
  from {
    filter: brightness(1);
  }

  to {
    filter: brightness(1.12);
  }
}

.mall_rule:hover, .mall_btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.bage_box {
  position: relative;
  z-index: 99;
}

.bage_box>.main {
  width: 70%;
  margin: 0 auto;
  background: url(../images/bg_frame_4.webp) center / 100% 100% no-repeat;
}

.list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 3.083vw 3.083vw 2.25vw;
}

.item {
  width: 25%;
  min-width: 0;
}

.item a {
  position: relative;
  transition: transform .25s, filter .25s;
}

.item a:not(.sold_out):hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.item a.sold_out img{
  filter: brightness(0.4);
}

.item a.sold_out::after {
  content: "";
  width: 70%;
  max-width: 237px;
  aspect-ratio: 474/456;
  background: url(../images/sold_out.png) center / contain no-repeat;
  transform: translate(-50%, -60%);
  /* inset: 0; */
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(5px, 2vw, 24px);
  padding: 28px 20px;
  margin-top: 4vw;
  position: relative;
  z-index: 98;
  filter: drop-shadow(0 0 2px rgb(67, 6, 14)) drop-shadow(0 0 4px rgb(67, 6, 14))  drop-shadow(0 0 8px rgb(67, 6, 14))  drop-shadow(0 0 12px rgb(67, 6, 14));
}

footer .logo_box {
  width: clamp(100px, 20%, 200px);
}

footer .txt_box {
  font-size: clamp(8px, 1.2vw, 12px);
  line-height: 1.5;
}

footer .txt_box p {
  margin: 0;
}
footer .txt_box p+p {
  margin-top: .25em;
}

#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 9;
  pointer-events: none;
}

#particles-js canvas {
  display: block;
}

#starshine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;

}

.shine {
  position: absolute;
  background: url(../images/shine.png) center / contain no-repeat;
  opacity: 0;
  animation: glitter 6s linear infinite;
}

.shine.small {
  width: 20px;
  height: 20px;
}

.shine.medium {
  width: 30px;
  height: 30px;
}

.shine.large {
  width: 50px;
  height: 50px;
}

@keyframes glitter {
  0%, 50%, 100% {
    transform: scale(.3) rotate(0);
    opacity: 0;
  }

  25% {
    transform: scale(1) rotate(180deg);
    opacity: 1;
  }
}

/* 768–1920：版面固定為 1920 寬置中，縮小視窗只裁掉兩側 */
@media (min-width: 768px) and (max-width: 1920px) {
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: clip;
  }

  .event-page {
    width: 1920px;
    /* min-height: 2182px; */
    margin-left: calc(50% - 960px);
  }

  header {
    height: 882px;
  }

  .uj_logo {
    top: 81.6px;
  }

  .title_all {
    top: 244.5px;
  }

  .mall_rule, .mall_btn {
    top: 697px;
  }

  .list {
    padding: 59.2px 59.2px 43.2px;
  }

  footer {
    gap: 24px;
    margin-top: 0;
  }

  .event-page::after {
    z-index: 2;
    background-size: 100vw auto;
}

  footer .txt_box {
    font-size: 12px;
  }
}

@media (max-width: 1400px) {
  .bage_box>.main {
    width: 97vw;
  }

}

@media (max-width: 1100px) {
  .bage_box>.main {
    background-image: url(../images/bg_frame_3.webp);
  }

  .item {
    width: 33%;
  }
}

@media (max-width: 767px) {
  .event-page {
    background-size: 160% auto;
  }

  .event-page::before {
    background-size: 140% auto;
  }

  header {
    height: 83vw;
  }

  header .char_mid {
    width: 150%;
    max-width: none;
    left: -25%;
  }

  .uj_logo {
    top: 5vw;
    left: 37%;
    width: 26%;
  }

  .title_all {
    top: 14vw;
    width: 100%;
    left: 0;
  }

  .mall_rule, .mall_btn {
    top: 65vw;
  }

  .mall_rule {
    width: 33%;
    left: 10%;
  }

  .mall_btn {
    width: 44.45%;
    left: 44%;
  }

  .bage_box>.main {
    width: 100%;
    background-image: url(../images/bg_frame_2.webp);
  }

  .list {
    /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
    padding: 7vw 6vw 5vw;
    gap: 0;
  }
  .item {
    width: 50%;
  }

  footer {
    margin-top: 0;
    flex-direction: column;
    padding: 24px 16px 5vw;
  }

  footer .logo_box {
    width: clamp(80px, 25%, 200px);
  }

  footer .txt_box {
    text-align: center;
  }

  #particles-js, #starshine {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  #particles-js, #starshine {
    display: none;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 福袋內容彈窗：置中金框頁、半透明遮罩、LAYOUT 關閉鈕。 */
.fancybox__dialog {
  backdrop-filter: blur(2px);
}

.bag-popup {
  --f-html-bg: transparent;
  --fancybox-backdrop-bg: rgba(0, 0, 0, .7);
  --f-close-button-width: 58px;
  --f-close-button-height: 58px;
  --f-close-button-bg: transparent;
  --f-close-button-hover-bg: transparent;
  --f-close-button-active-bg: transparent;
  --f-button-bg: transparent;
  --f-button-hover-color: transparent;
}

.bag-popup .fancybox__carousel,
.bag-popup .fancybox__viewport,
.bag-popup .fancybox__slide {
  overflow: visible !important;
}

.bag-popup .fancybox__slide {
  padding: 28px 0 16px;
  max-height: 100dvh;
  box-sizing: border-box;
}

.bag-popup .f-html {
  width: min(1011px, 92vw) !important;
  height: min(90dvh, calc(100dvh - 72px), 1200px) !important;
  max-width: 1011px;
  max-height: calc(100dvh - 72px) !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.bag-popup .f-iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border: 0;
  background: transparent;
}

.bag-popup .is-close-button {
  width: clamp(30px, 7vw, 58px);
  height: auto;
  aspect-ratio: 1/1;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));  
  top: -10px;
  right: 20px;
}

.bag-popup .is-close-button:hover {
  /* transform: scale(1.03); */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)) brightness(1.12);
}

.bag-popup .is-close-button svg {
  display: none;
}

.bag-popup .is-close-button img {
  display: block;
  width: 100%;
  height: 100%;
}

.buy-popup {
  --f-html-bg: transparent;
  --fancybox-backdrop-bg: rgba(0, 0, 0, .7);
  --f-close-button-width: 58px;
  --f-close-button-height: 58px;
  --f-close-button-bg: transparent;
  --f-close-button-hover-bg: transparent;
  --f-close-button-active-bg: transparent;
  --f-button-bg: transparent;
  --f-button-hover-color: transparent;
}

.buy-popup .fancybox__carousel,
.buy-popup .fancybox__viewport,
.buy-popup .fancybox__slide {
  overflow: visible !important;
}

.buy-popup .fancybox__slide {
  padding: 28px 24px 16px;
}

.buy-popup .f-html {
  width: min(613px, 92vw) !important;
  max-width: 613px;
  max-height: calc(100vh - 72px) !important;
  max-height: calc(100dvh - 72px) !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.buy-popup .f-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  overflow: auto;
}

.buy-popup .is-close-button {
  top: -8px;
  right: -12px;
  width: 58px;
  height: 58px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}

.buy-popup .is-close-button:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)) brightness(1.12);
}

.buy-popup .is-close-button svg {
  display: none;
}

.buy-popup .is-close-button img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .bag-popup .fancybox__slide {
    padding: 36px 0;
  }

  .bag-popup .f-html {
    width: 96vw !important;
    height: calc(100dvh - 100px) !important;
    max-height: calc(100dvh - 100px) !important;
  }

  .buy-popup .is-close-button {
    top: 0;
    right: 0;
  }

  .buy-popup .f-html {
    width: min(613px, 92vw) !important;
  }
}

@media (max-width: 650px) {
  .bag-popup .is-close-button {
    top: 0;
    right: 0;
    transform: translate(-50%, -100%);
  }
}

/* 右上角語言選擇，樣式對齊 LAYOUT 深灰膠囊；使用原生 select 支援鍵盤及行動裝置。 */
.language-switcher {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  color: #d4d4d4;
  background: #333;
  border-radius: 999px;
}

.language-switcher>svg {
  width: 20px;
  height: 20px;
  color: #5a5a5a;
  position: absolute;
  left: 8px;
  pointer-events: none;
}

.language-switcher .language-chevron {
  left: auto;
  right: 11px;
  width: 12px;
  height: 12px;
  transform-origin: center;
  transition: transform .2s ease;
}

.language-switcher.is-open .language-chevron {
  transform: rotate(-180deg);
}

.language-switcher select {
  appearance: none;
  -webkit-appearance: none;
  padding: 1px 36px 3px 34px;
  border: 0;
  border-radius: inherit;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: clamp(5px, 3vw, 16px);
  /* line-height: 30px; */
  cursor: pointer;
}

.language-switcher select:hover {
  background: rgba(255, 255, 255, .04);
}

.language-switcher select:focus,
.language-switcher select:focus-visible {
  outline: none;
}

.language-switcher option {
  color: #f2f2f2;
  background: #333;
  letter-spacing: normal;
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .language-switcher {
    top: 2px;
    right: 2px;
  }

  .language-switcher>svg {
    left: 6px;
    width: 16px;
    height: 16px;
  }

  .language-switcher .language-chevron {
    right: 8px;
    width: 12px;
    height: 12px;
  }

  .language-switcher select {
    padding-left: 26px;
    padding-right: 30px;
  }

}

@media (max-width: 430px) {
  /* .language-switcher {
    top: 2px;
    right: initial;
    left: 50%;
    transform: translateX(-50%);
  } */

  .language-switcher>svg {
    left: 6px;
    width: 10px;
    height: 10px;
  }

  .language-switcher .language-chevron {
    width: 10px;
    height: 10px;
  }

  .language-switcher select {
    padding-left: 20px;
    padding-right: 24px;
  }
}

