@charset "utf-8";
@import url("reset.min.1.2.css");

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  background: #eaf8ff;
  color: #555;
  font-family: "Chiron GoRound TC", sans-serif;
}

body {
  overflow-x: hidden;
}

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

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

.event-page {
  --unit: min(.0390625vw, 1px);
  position: relative;
  isolation: isolate;
  max-width: 2560px;
  min-height: calc(1500 * var(--unit));
  margin: 0 auto;
  background: url(../images/bg.webp) center top / 100% 100% no-repeat;
  overflow: clip;
}

.hero {
  position: relative;
  height: calc(805 * var(--unit));
}

.characters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.characters img {
  position: absolute;
}

.char-left {
  width: 32.2265625%;
  left: 15.625%;
  top: 0;
}

.char-right {
  width: 35.7421875%;
  left: 46.09375%;
  top: calc(-212 * var(--unit));
}

.uj_logo {
  position: absolute;
  z-index: 3;
  width: 15.8203125%;
  left: 42.08984375%;
  top: calc(15 * var(--unit));
  transition: transform .2s, filter .2s;
}
.uj_logo:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) drop-shadow(0 0 3px #fff);
}

.title_all {
  position: absolute;
  z-index: 2;
  margin: 0;
  width: 44.3359375%;
  left: 27.83203125%;
  top: calc(75 * var(--unit));
}

.event-actions {
  position: absolute;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: calc(20 * var(--unit));
  width: 33.515625%;
  left: 33.2421875%;
  top: calc(690 * var(--unit));
}

.event-actions a {
  width: calc((100% - 20 * var(--unit)) / 2);
  transition: transform .2s, filter .2s;
}

.event-actions a:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

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

.list {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.item {
  min-width: 0;
  max-width: 510px;
}

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

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

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

.item a.sold_out::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--sold-out) center / contain no-repeat;
}

html[data-locale="zh"] {
  --sold-out: url(../images/zh/sold_out.png);
}

html[data-locale="en"] {
  --sold-out: url(../images/en/sold_out.png);
}

html[data-locale="ja"] {
  --sold-out: url(../images/ja/sold_out.png);
}

footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(32 * var(--unit));
  margin-top: calc(55 * var(--unit));
  padding: 0 20px calc(24 * var(--unit));
}

footer .logo_box {
  flex: 0 0 calc(280 * var(--unit));
}

footer .txt_box {
  font-size: clamp(10px, 3vw, 14px);
  line-height: 1.3;
}

footer p {
  margin: 0;
}

footer p+p {
  margin-top: 6px;
}

.language-switcher {
  position: absolute;
  top: 18px;
  right: 2%;
  z-index: 20;
  display: flex;
  align-items: center;
  color: #fff;
  background: #ed6495;
  border: 1px solid #fff;
  border-radius: 999px;
}

.language-switcher>svg {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.language-switcher .language-chevron {
  left: auto;
  right: 10px;
  width: 15px;
  height: 15px;
  transition: transform .2s;
}

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

.language-switcher select {
  appearance: none;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;

  padding: clamp(2px, 1vw, 4px) 32px;
  font: inherit;
  font-size: clamp(11px, 3.5vw, 17px);
  cursor: pointer;
}
@media (min-width: 441px) {
  .language-switcher select {
    min-width: 150px;
    min-height: 30px;
  }
}

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

.language-switcher option {
  background: #fff;
  color: #ed6495;
}

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

#particles-js, #starshine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#particles-js canvas {
  display: block;
  z-index: 0;
}

#starshine {
  opacity: 1;
  z-index: 2;
}

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

.is-popup-open .shine {
  animation-play-state: paused;
}

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

.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: 1031px) and (max-width: 1920px) {
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: clip;
  }

  .event-page {
    --unit: .75px;
    width: 1920px;
    max-width: none;
    left: 50%;
    margin-left: -960px;
  }

  .language-switcher {
    right: calc(960px - 50vw + 24px);
  }

}

@media (max-width: 1030px) {
  .event-page {
    width: 100%;
    background-size: cover;
    min-height: 100vh;
  }

  .hero {
    width: 100%;
    height: 86vw;
  }
  
  .language-switcher {
    top: 6px;
    right: 8px;
  }

  .char-left {
    width: 64%;
    left: -15%;
    top: 0vw;
  }

  .char-right {
    width: 66%;
    left: 44%;
    top: -14vw;
  }

  .uj_logo {
    width: 36%;
    left: 31%;
    top: 3VW;
  }

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

  .event-actions {
    width: 90%;
    left: 5%;
    top: 73vw;
    gap: 2vw;
  }

  .event-actions a {
    width: calc((100% - 2vw) / 2);
    max-width: 419px;
  }

  .list {
    width: 90%;
    gap: 1%;
  }

  footer {
    margin-top: 5vw;
    gap: clamp(0px, 2vw, 10px);
    padding-bottom: clamp(15px, 3vw, 24px);
    flex-direction: column;
    text-align: center;
  }

  footer .logo_box {
    width: clamp(50px, 25vw, 150px);
    flex: none;
  }

  footer .txt_box {
    max-width: 90%;
  }
}
@media (max-width: 440px) {
  .language-switcher>svg {
    left: 5px;
    width: 15px;
    height: 15px;
  }

  .uj_logo {
    width: 45%;
    min-width: 100px;
    top: 7vw;
    left: 50%;
    transform: translateX(-50%);
  }

  .event-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .hero {
    height: 117vw;
  }

  .char-left {
    width: 85%;
    left: -25%;
    top: 5vw;
  }
  .char-right {
    width: 95%;
    left: 23%;
    top: -15vw;
  }

  .title_all {
    width: 110%;
    top: 45vw;
    left: -5%;
  }

  .event-actions {
    top: 105vw;
  }
  footer {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

}

 @media (max-width: 767px) {
  #particles-js, #starshine {
    display: none;
  }
}

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

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

/* 福袋內容彈窗：置中金框頁、半透明遮罩、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(38px, 7vw, 72px);
  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: 60px;
  right: 10px;
}

.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;
  /* 彈窗圖皆為 619×359；JS 無法讀取 iframe 內容時（如 file:// 開啟）仍維持完整比例 */
  aspect-ratio: 619 / 359;
  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: 15px;
  right: 30px;
  width: 72px;
  height: auto;
  aspect-ratio: 1/1;
  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.05);
}

.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 .f-html {
    width: min(613px, 92vw) !important;
  }
}

@media (max-width: 650px) {
  .buy-popup .is-close-button {
    width: clamp(40px, 10vw, 72px);
    right: clamp(5px, 3vw, 30px);
    top: clamp(0px, 3vw, 15px);
  }

  .bag-popup .is-close-button {
    top: 0;
    transform: translate(20%, -100%);
  }
}


footer .txt_box {
  font-family: Arial, "Microsoft JhengHei", sans-serif;
  min-width: 0;
}
/* 角色進場後緩慢漂動；translate 與 AOS 的 transform 分開，避免互相覆蓋。 */
.characters.is-floating .char-left {
  animation: character-float-left 2.5s ease-in-out infinite;
}
.characters.is-floating .char-right {
  animation: character-float-right 3.5s ease-in-out infinite;
}
@keyframes character-float-left {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
@keyframes character-float-right {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 8px; }
}

/* 語言展開清單：白底、粉紅細框與寬鬆選項間距。 */
.language-switcher.is-enhanced select { display: none; }
.language-toggle {
  appearance: none;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  padding: clamp(2px, 1vw, 4px) 32px;
  font: inherit;
  font-size: clamp(11px, 3.5vw, 17px);
  cursor: pointer;
}

.language-toggle:focus { outline: none; }
.language-toggle:focus-visible { box-shadow: inset 0 0 0 1px #fff; }
.language-options {
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  width: calc(100% + 2px);
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 2px solid #ff719b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(67, 35, 46, .08);
}
.language-options[hidden] { display: none; }
.language-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  /* min-height: 58px; */
  padding: 8px 8px;
  color: #ff6192;
  background: #fff;
  font-size: clamp(11px, 3.5vw, 17px);
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .85);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.language-options a:hover, .language-options a:focus-visible {
  background: rgba(255, 113, 155, .2);
  outline: none;
}
@media (min-width: 441px) {
  .language-toggle { min-width: 150px; min-height: 30px; }
}