@charset "UTF-8";
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #46538b;
  color: #fff;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

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

picture {
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffdc85;
  outline-offset: 5px;
}

button {
  border: 0;
}

section {
  position: relative;
  scroll-margin-top: 20px;
}

h2 {
  margin: 0 auto;
}

main {
  overflow: hidden;
}

.kv_w {
  position: relative;
  display: flow-root;
  overflow: hidden;
}

.kv-video {
  position: relative;
  margin-top: -20%;
  padding-top: 76.5%;
  overflow: hidden;
  background: #303e76;
}

.kv-video > picture {
  position: absolute;
  inset: 0;
  top: 11.067194%;
  visibility: hidden;
}

.kv-video > picture img {
  height: 100%;
  object-fit: cover;
}

.kv-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.6s;
}

.kv-video.is-playing iframe {
  opacity: 1;
}

header {
  position: absolute;
  z-index: 5;
  left: 1.6%;
  top: 1.6vw;
  width: 96.8%;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.logo_box {
  width: 11.9%;
  margin: 0.5%;
}

.menu-toggle {
  width: 48px;
  height: 40px;
  background: transparent;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  height: 1px;
  background: #fff;
  width: 100%;
}

.overlay {
  position: fixed;
  z-index: 30;
  right: 0;
  top: 0;
  height: 100dvh;
  width: min(440px, 100%);
  background: rgba(49, 59, 113, 0.98);
  padding: 90px 35px 35px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s, visibility 0.3s;
  overflow-y: auto;
}

.overlay.open {
  transform: translateX(0);
  visibility: visible;
}

.overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 15px;
}

.overlay a {
  display: block;
  text-decoration: none;
  font-size: clamp(18px, 1.35vw, 26px);
  letter-spacing: 3px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2509803922);
}

.overlay a:hover {
  color: #ffd998;
}

.overlay-close {
  position: absolute;
  right: 25px;
  top: 20px;
  background: transparent;
  color: #fff;
  font-size: 40px;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5333333333);
  z-index: 29;
}

.menu-open {
  overflow: hidden;
}

.image-button {
  display: block;
  padding: 0;
  background: transparent;
  transition: transform 0.2s;
}

.image-button:hover {
  transform: scale(1.025);
}

.text-button {
  background: transparent;
  color: #d9dce8;
  text-decoration: underline;
  letter-spacing: 2px;
}

.panel,
.cards {
  width: 83%;
  margin: auto;
}

#s01 {
  background: url("../images/s01/bg.jpg") center top/100% 100% no-repeat;
  padding: 5.5% 0 3.5%;
}

#s01 h2 {
  width: 68.2%;
  margin-bottom: 4%;
}

.fare-grid {
  width: 80%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw 3.5vw;
}

.fare {
  display: block;
  transition: transform 0.2s;
}

.fare-order {
  width: 11.2%;
  margin: 2% auto 1%;
}

.fare-details {
  display: block;
  margin: auto;
  font-size: clamp(12px, 1.3vw, 24px);
}

#s02 {
  padding: 3% 0 2%;
}

.registration {
  position: relative;
}

.registration-count {
  position: absolute;
  left: 3%;
  top: 73%;
  width: 20%;
  text-align: center;
  color: #77608d;
  font-family: "Times New Roman", serif;
  font-weight: bold;
  font-size: 5.3vw;
  line-height: 1;
  animation: registration-count-bounce 2s ease-in-out 1s infinite;
}

.registration-flag {
  position: absolute;
  left: 26.4%;
  top: 39%;
  width: 10.2%;
}

.ticket {
  position: absolute;
  right: 5.5%;
  top: 23%;
  width: 10%;
  transform-origin: 80% 50%;
  animation: ticket-rotate 1.5s ease-in-out infinite alternate;
}

.registration .image-button {
  position: absolute;
  width: 13.2%;
  left: 43.4%;
  bottom: 2.8%;
}

#s03 {
  padding: 4% 0 4.5%;
}

#s03 h2 {
  width: 37.7%;
  margin-bottom: 4%;
}

.cards .swiper-wrapper {
  align-items: stretch;
}

.cards .swiper-slide {
  position: relative;
}

.discount-card .image-button {
  position: absolute;
  bottom: 2.6%;
  width: 42%;
  left: 29%;
}

.swiper-pagination {
  position: relative;
  bottom: auto !important;
  line-height: 1;
  margin: 3% auto 0;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.35;
  width: 11px;
  height: 11px;
  margin: 0 10px !important;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.redeem-pagination {
  display: none;
}

#s04 {
  padding: 4% 0 5%;
}

.ai-panel {
  position: relative;
}

.battle-chart {
  position: absolute;
  left: 11.5%;
  bottom: 1.1%;
  width: 77%;
  height: 21%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  overflow: hidden;
}

.battle-column {
  position: relative;
  width: 10.5%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.battle-bar {
  position: absolute;
  bottom: 15%;
  height: var(--bar-height);
  width: 52%;
  background: #8e8aed;
  z-index: 0;
}

.battle-column img {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

#s05 {
  padding: 3% 0 9%;
}

#s05 h2 {
  width: 37.8%;
  margin-bottom: 2%;
}

.itf-info {
  width: 62.7%;
  margin: auto;
}

.decoration {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.ribbon-left {
  width: 20.4%;
  left: 0;
  top: 3%;
}

.ribbon-right {
  width: 18.8%;
  right: 0;
  bottom: 2%;
}

.gift-left {
  width: 10.3%;
  left: 2%;
  bottom: 5%;
}

.gift-right {
  width: 9%;
  right: 2%;
  top: 20%;
}

#s06 {
  padding: 5% 0 4%;
  background: #364277;
}

#s06 h2,
#s07 h2 {
  width: 46.7%;
  margin-bottom: 3%;
}

.partner-card .image-button {
  position: absolute;
  width: 40%;
  bottom: 3.5%;
  left: 30%;
}

#s07 {
  padding: 4% 0 4%;
}

#s08 {
  padding: 4% 0 7%;
}

#s08 a {
  display: block;
  width: 32%;
  margin: auto;
}

.btn_buy {
  position: fixed;
  width: 4.4%;
  right: 1%;
  bottom: 3%;
  z-index: 8;
  transform-origin: center;
  animation: buy-button-pulse 3s ease-in-out infinite;
}

dialog {
  border: 0;
  border-radius: 14px;
  padding: 35px;
  max-width: 560px;
  width: 90%;
  color: #394271;
  background: #f0f1f7;
}

dialog::backdrop {
  background: rgba(23, 32, 66, 0.7333333333);
}

dialog h2 {
  font-size: 24px;
  margin: 0 30px 20px 0;
}

dialog p {
  line-height: 1.8;
}

.dialog-close {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 30px;
  color: #394271;
  background: transparent;
}

.dialog-confirm {
  display: block;
  margin: 25px auto 0;
  background: #46538b;
  color: #fff;
  padding: 10px 30px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .kv-video {
    margin-top: -25%;
    padding-top: 163.462963%;
  }
  .kv-video iframe {
    height: 103.092784%;
    top: 0;
  }
  header {
    top: 3vw;
    left: 5%;
    width: 90%;
  }
  .logo_box {
    width: 32%;
    margin: 0;
  }
  .menu-toggle {
    width: 35px;
    height: 25px;
    padding: 0;
    gap: 6px;
  }
  .overlay {
    padding-top: 75px;
  }
  .overlay ul {
    gap: 8px;
  }
  .overlay a {
    font-size: 19px;
  }
  #s01 {
    background-image: url("../images/s01/bg_m.jpg");
    padding: 9% 0 8%;
  }
  #s01 h2 {
    width: 67.55%;
    margin-bottom: 4%;
  }
  .fare-grid {
    width: 87%;
    grid-template-columns: repeat(2, 1fr);
    gap: 5vw 2vw;
  }
  .fare-order {
    width: 29.5%;
    margin: 5% auto 3%;
  }
  .fare-details {
    font-size: 3.4vw;
  }
  .panel {
    width: 89%;
  }
  #s02 {
    padding: 0 0 6%;
  }
  .registration-count {
    left: 8%;
    top: 28.8%;
    width: 49%;
    font-size: 13vw;
  }
  .registration-flag {
    left: 13%;
    top: 59%;
    width: 38%;
  }
  .ticket {
    display: none;
  }
  .registration .image-button {
    left: 45%;
    bottom: 9.3%;
    width: 36%;
  }
  #s03 {
    padding: 8% 0 7%;
  }
  #s03 h2 {
    width: 89%;
    margin-bottom: 10%;
  }
  .cards {
    width: 76%;
    overflow: hidden;
  }
  .discount-card .image-button {
    width: 42%;
    left: 29%;
    bottom: 2%;
  }
  .ribbon-left {
    width: 18%;
    top: 13%;
  }
  .gift-left {
    width: 17%;
    left: 0;
    bottom: 6%;
  }
  .gift-right {
    width: 15%;
    right: 0;
    top: 25%;
  }
  #s04 {
    padding: 8% 0 7%;
  }
  .battle-chart {
    left: 3%;
    width: 94%;
    height: 16.5%;
    bottom: 0.5%;
  }
  .battle-column {
    width: 12.8%;
  }
  .battle-bar {
    width: 52%;
    bottom: 15%;
  }
  #s05 {
    padding: 8% 0 13%;
  }
  #s05 h2 {
    width: 73%;
    margin-bottom: 6%;
  }
  .itf-info {
    width: 74%;
  }
  #s05 .ribbon-left {
    top: 31%;
  }
  #s05 .gift-right {
    top: 45%;
  }
  #s05 .ribbon-right {
    width: 28%;
    bottom: 2%;
  }
  #s06 {
    padding: 8% 0 9%;
  }
  #s06 h2 {
    width: 63%;
    margin-bottom: 8%;
  }
  .partner-card .image-button {
    width: 40%;
    left: 30%;
  }
  .swiper-pagination {
    margin-top: 6%;
  }
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 7px !important;
  }
  #s07 {
    padding: 9% 0 7%;
  }
  #s07 h2 {
    width: 65.7%;
    margin-bottom: 8%;
  }
  #s08 {
    padding: 5% 0 15%;
  }
  #s08 a {
    width: 79%;
  }
  .btn_buy {
    width: 12%;
    right: 2%;
    bottom: 3%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
/* 設計稿的手機卡片與標題比例 */
@media (max-width: 768px) {
  #redeem-slider {
    width: 66%;
  }
  #partner-slider {
    width: 69%;
  }
  #s03 h2 {
    width: 76%;
  }
  .registration-flag {
    width: 28%;
    top: 67%;
  }
  .registration .image-button {
    bottom: 30.2%;
    width: 36%;
    left: 45%;
  }
}
.btn_buy[hidden] {
  display: none;
}

/* 桌機影片原始比例為 1920 × 1330，封面為 1920 × 1080。 */
.kv-video iframe {
  pointer-events: none;
}

@media (min-width: 769px) {
  .kv-video iframe {
    width: 100%;
    height: 109.519104%;
    left: 0;
    top: 0;
  }
}
@keyframes ticket-rotate {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(5deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticket {
    animation: none;
  }
}
@keyframes registration-count-bounce {
  0%, 50%, 100% {
    transform: translateY(0);
  }
  65% {
    transform: translateY(-10%);
  }
  80% {
    transform: translateY(3%);
  }
  90% {
    transform: translateY(-4%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .registration-count {
    animation: none;
  }
}
@media (max-width: 768px) {
  .kv-video > picture {
    top: 11.011668%;
  }
}
.kv-loading {
  position: absolute;
  inset: 0;
  top: 11.067194%;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #303e76;
  color: #fff;
  letter-spacing: 3px;
}
.kv-loading img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.kv-video.is-playing .kv-loading,
.kv-video.is-fallback .kv-loading {
  display: none;
}

.kv-video.is-fallback > picture {
  visibility: visible;
}
.kv-video.is-fallback iframe {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 768px) {
  .kv-loading {
    top: 11.011668%;
  }
}
@keyframes buy-button-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn_buy {
    animation: none;
  }
}
html:not(.aos-ready) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.registration-chart {
  position: absolute;
  left: 4%;
  top: 36%;
  width: 19%;
}

@media (max-width: 768px) {
  .registration-chart {
    left: auto;
    right: 5%;
    top: 22.5%;
    width: 38%;
  }
}
@media (max-width: 768px) {
  .redeem-pagination {
    display: block;
  }
}
.fare-carousel {
  width: 80%;
  margin: auto;
  overflow: hidden;
}
.fare-carousel .fare-grid {
  width: 100%;
}
.fare-carousel .fare {
  min-width: 0;
}

@media (max-width: 768px) {
  .fare-carousel {
    width: 87%;
  }
}
.kv-playback-actions {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 90%;
  padding: 14px;
  border-radius: 8px;
  background: rgba(32, 42, 87, 0.9);
}

.kv-video.is-fallback .kv-playback-actions {
  display: flex;
}

.kv-play {
  display: block;
  padding: 10px 18px;
  border-radius: 5px;
  background: #fff;
  color: #303e76;
  font-weight: bold;
}

.kv-play[hidden] {
  display: none;
}

.ai-actions {
  position: absolute;
  top: 68.6%;
  left: 50%;
  width: 34%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6%;
}
.ai-actions .ai-play {
  width: 39.167%;
  flex: 0 0 39.167%;
}
.ai-actions .lottery {
  width: 54.833%;
  flex: 0 0 54.833%;
  margin: 0;
}

@media (max-width: 768px) {
  .ai-actions {
    top: 71.5%;
    width: 82%;
  }
}
.kv-video .kv-playback-actions[hidden] {
  display: none;
}

.fare-carousel-shell {
  position: relative;
}

.fare-prev,
.fare-next {
  top: 50%;
  margin-top: 0;
  transform: translateY(-50%);
  width: 44px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(32, 42, 87, 0.65);
}
.fare-prev::after,
.fare-next::after {
  font-size: 26px;
}
.fare-prev:hover,
.fare-next:hover {
  background: rgba(32, 42, 87, 0.9);
}

.fare-prev {
  left: 5%;
}

.fare-next {
  right: 5%;
}

@media (max-width: 768px) {
  .fare-prev,
  .fare-next {
    width: 26px;
    height: 44px;
  }
  .fare-prev::after,
  .fare-next::after {
    font-size: 18px;
  }
  .fare-prev {
    left: 0;
  }
  .fare-next {
    right: 0;
  }
}
/*# sourceMappingURL=itf.css.map */
