﻿body {
  background-color: #212121;
}

.wrap {
  display: flex; /* Controlled by JS reset.js -> flex */
  flex-direction: column;
  aspect-ratio: 1920/1080;
  /* width: auto; */
  height: auto;
  width: 100%;
  max-height: 100vh;
  /* min-height: 550px; */
  margin: 0 auto;
  overflow: hidden;
}

/* PC Specific Min-Height */
body.is-pc {
  min-height: 600px;
}
.wrap p,
.wrap ul,
.wrap li {
  margin-bottom: 0;
}
.wrap a {
  font-size: initial;
  line-height: 0;
}
.nav {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 1rem;
  z-index: 1000;
  background: linear-gradient(to bottom, #2e3241 0%, #3b4052 100%);
  /* background-image: url(../images/nav/nav_bg.webp); */
  /* background-size:cover; */
  border-bottom: #6e7693 0.03rem solid;
}

.nav_bg {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto; /* 保持圖片比例 */
  z-index: -1; /* 放在最下面，才不會蓋住按鈕 */
  pointer-events: none; /* 避免擋到點擊 */
}

.event {
  flex: 1;
  position: relative;
  width: auto;
  height: 100%;
  overflow: hidden;
  background-color: rgba(128, 255, 0, 0);
}
/* event_double_yy */
.event_double_yy {
  width: 100%;
  background-image: url(../images/event_double_yy_bg.webp);
  background-size: 100%;
}

.topRight {
  position: absolute; /* Relative to .nav */
  top: 50%;
  transform: translateY(-50%);
  right: 0.2rem;
  display: flex;
  align-items: center;
  z-index: 1000;
  /* background-color: blue; */
  gap: 0.6rem;
}
.topLeft {
  position: absolute; /* Relative to .nav */
  top: 50%;
  transform: translateY(-50%);
  left: 0.2rem;
  display: flex;
  align-items: center;
  z-index: 1000;
}

/* Navigation Buttons Common Styles - 導覽列按鈕共用樣式 */
.index,
.event_double_yyBtn,
.event_loadingBtn,
.event_awardBtn,
.event_loginBtn,
.event_timeBtn,
.rule,
.share,
.music,
.award {
  width: 0.69rem;
  height: 0.69rem;
  background-repeat: no-repeat;
  background-size: 100% auto;
  cursor: pointer;
  border: none;
  background-position: 0 100%;
}

/* Hover Effect: Move background to top */
.index:hover,
.event_mapBtn:hover,
.event_loadingBtn:hover,
.event_awardBtn:hover,
.event_loginBtn:hover,
.rule:hover,
.share:hover,
.award:hover {
  background-position: 0 0%;
}

.index {
  position: relative;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/nav/index.webp);
  background-color: #63eded00;
  margin: 0 0.4rem 0 0.2rem; /* 增加左右間距 */
}

.index::after {
  content: "";
  position: absolute;
  right: -0.3rem; /* 讓線離按鈕更遠一點 */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.4rem;
  background-color: #fff;
  opacity: 0.8;
}

.event_mapBtn,
.event_double_yyBtn,
.event_loadingBtn,
.event_awardBtn,
.event_timeBtn,
.event_loginBtn {
  background-color: #e4ec6f;
  font-size: 0.15rem;
  color: #000;
  margin-left: 0.2rem;
}

.logo {
  margin-left: 0.2rem;
  height: 0.69rem; /* 自訂高度 */
  width: auto;
  aspect-ratio: 967/664; /* 比例：請填入圖片原始 寬度 / 高度 */
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/nav/logo.webp)
    no-repeat 0 0;
  background-size: contain;
}

.rule {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/nav/rule.webp);
  /* background-color: #d4ed63; */
}

.login {
  position: relative;
  width: auto; /* Flexible width */
  height: auto; /* Flexible height */
  min-height: 0.69rem; /* Minimum height to match other buttons */
  background-color: transparent;
  font-size: 0.2rem;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header Login Button Adaptation */
.login .btn-login {
  position: relative;
  left: auto;
  top: auto;
  width: 2.1rem; /* Original width */
  height: 0.71rem; /* Original height */
  background-size: contain;
  background-position: center;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/btn-login.png)
    no-repeat;
  background-size: 100% auto;
  cursor: pointer;
}

.lotteryTask .btn-login {
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/btn-login.png)
    no-repeat;
  background-size: 100% auto;
  cursor: pointer;
  height: 0.71rem;
  left: 0.6rem;
  position: absolute;
  top: 0.35rem;
  width: 2.1rem;
}

/* Header User Info Adaptation */
.login .task-user-info {
  display: flex;
  position: relative; /* Relative positioning to take up space */
  left: auto;
  top: auto;
  width: 3.5rem; /* Original width */
  height: 0.75rem; /* Original height */
  padding: 0 0.76rem 0 0.9rem; /* Original padding */
  align-items: center;
  border-radius: 0.2rem;
  background-color: #262936;
  border: 0.025rem solid #6e7693;
  box-sizing: border-box;
}

.login .task-icon-account {
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/icon-account.png)
    no-repeat bottom;
  background-size: 100% auto;
  height: 0.62rem;
  left: 0.12rem;
  position: absolute;
  top: 50%; /* 改為 50% */
  transform: translateY(-50%); /* 新增這行 */
  width: 0.62rem;
}

.login .task-user-info .btn-logout {
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/btn-logout.png)
    no-repeat;
  background-size: 100% auto;
  cursor: pointer;
  height: 0.53rem;
  position: absolute;
  right: 0.18rem;
  top: 0.08rem;
  width: 0.53rem;
}

.login .task-user-info p {
  color: #f5f5f5;
  font-size: 0.3rem;
  font-weight: bold;
  height: 100%;
  line-height: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.coin {
  position: relative; /* 讓內部的 absolute 元素以此為基準 */
  display: flex;
  align-items: center;
  /* justify-content: center; */ /* 移除這行，改用 padding 控制文字位置 */
  padding-left: 0.9rem; /* 留位置給左邊的 Icon */
  padding-right: 0.2rem;
  width: 3rem; /* 縮小寬度，去除多餘空間 */
  height: 0.75rem;
  background-color: #262936;
  border: 0.02rem solid #6e7693;
  border-radius: 0.2rem;
  box-sizing: border-box;
  font-size: 0.3rem;
  color: #f5f5f5;
  font-weight: bold;
}
.coin .task-icon-coin {
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/nav/coin.webp)
    no-repeat;
  background-size: 100% auto;
  height: 0.62rem;
  left: 0.12rem;
  position: absolute;
  top: 0.12rem;
  width: 0.62rem;
}
.award {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/nav/award.webp);
}
.share {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/nav/share.webp);
}
.music {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/nav/music.webp);
}
.music.off {
  background-position: 0 0%;
}

/* ----------------------------------------
 * event_index - 首頁
 * ---------------------------------------- 
 */

.event_index .yyBtn {
  bottom: 2rem;
  right: 5vw;
  width: 4.68rem;
  height: 1.5rem;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yyBtn.webp)
    no-repeat 0 0;
  background-size: 100% auto;
}
.event_index .yyBtn:hover {
  background-position: 0 50%;
}
.event_index .yyBtn.active {
  background-position: 0 bottom;
  cursor: default;
}

.event_index .double_yyBtn {
  bottom: 1rem;
  right: 28%;
  width: 2.59rem;
  height: 2.04rem;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/event_double_yy_btn.webp)
    no-repeat 0 0;
  background-size: 100% auto;
  background-color: #766fb100;
  font-size: 0.5rem;
  color: #000;
}

.event_main_hint {
  animation: btnUpDown 0.8s ease-in-out infinite alternate;
  bottom: 2rem;
  right: 5vw;
  width: 4.68rem;
  height: 1.29rem;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/event_main_btn_hint.webp)
    no-repeat 0 0;
  background-size: 100% auto;
}

.event_index .event_main_btn {
  bottom: 0.7rem;
  right: 5vw;
  width: 4.68rem;
  height: 1.5rem;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/event_main_btn_go.webp)
    no-repeat 0 0;
  background-size: 100% auto;
}

.event_index .bigTitle {
  width: 12rem;
  height: 3.2rem;
  background-color: #1da08100;
  bottom: 0.5rem;
  left: 10%;
}
.event_index .bigTitle img {
  width: 100%;
  height: 100%;
}

.arrow {
  bottom: 1.1rem;
  left: 50%;
  margin-left: -0.22rem;
  width: 0.47rem;
  height: 0.29rem;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/arrow.png)
    no-repeat 0 0;
  background-size: 100% auto;
  animation: arrowUpDown 0.5s ease-in-out infinite alternate;
  display: none;
}

/* ----------------------------------------
 * event_loading - loading頁
 * ---------------------------------------- */

.event_loading {
  display: none;
  background-color: #000000e3;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/load_bg.webp)
    no-repeat;
  background-size: cover;
  background-position: center;
}

.event_loading .content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: transparent;
}

.event_loading .loading_ani {
  width: 10rem;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #1da08100;
}

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

.event_loading .loading_ani .character {
  width: 3rem;
}

.event_loading .loading_ani .loading {
  width: 1.5rem;
  filter: hue-rotate(318deg) brightness(3) blur(0.5px);
  /* mix-blend-mode: screen; */
}

.event_loading .word_box_1 {
  width: 100%;
  text-align: center;
}

.event_loading .word_box_1 p {
  color: rgb(255, 255, 255);
  font-size: 0.4rem; /* 使用 rem 單位保持一致 */
  text-align: center;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

/*
 * ----------------------------------------
 * event_double_yy - 雙平台預約頁
 * ----------------------------------------
 */
.event_double_yy {
  display: flex; /* 預設顯示 */
}

.event_double_yy .event_main_btn {
  bottom: 2%;
  right: 2%;
  /* height: 3rem; */
  width: 3rem;
  aspect-ratio: 338/380;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/event_main_btn.webp)
    no-repeat 0 0;
  background-size: 100% auto;
  background-color: #766fb100;
  z-index: 200;
  animation: btnUpDown 0.8s ease-in-out infinite alternate;
  pointer-events: auto;
  cursor: pointer;
}
.event_double_yy .content {
  width: 100%;
  height: 100%;
  padding: 0vw;
  background-color: #1d40a000;

  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/event_double_yy_bg.webp);
  background-size: cover;
  background-position: bottom;
}
.event_double_yy .board {
  width: 55%;
  height: 100%;
  background-color: #1da08100;
  top: 0;
  left: 17%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
}
.event_double_yy .board .board_top {
  width: 100%;
  aspect-ratio: 1438 / 288;
  height: auto;
  margin-top: 3%;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/board_top.webp);
  margin-bottom: -1px; /* 消除渲染接縫 */
  position: relative;
}
.event_double_yy .board .board_bottom {
  width: 100%;
  aspect-ratio: 1438 / 81;
  height: auto;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/board_bottom.webp);
  margin-top: -1px; /* 消除渲染接縫 */
  position: relative;
}
.event_double_yy .board .board_main {
  width: 100%;
  padding: 0 3%;
  height: 0; /* 關鍵修改：強制依賴 flex-grow 分配高度 */
  flex-grow: 1; /* 自動填滿中間 */
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/board.webp);
  display: flex;
  flex-direction: column;
  /* overflow: hidden; */
  min-height: 0;
  position: relative;
}
.board_main .giftbox{
  width: 100%;
  height: 100%;
  background-color: #3d82c700;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding: 0 2%;
  gap: 0%;
}
.board_main .giftbox .gift{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%; /* Share space */
  height: 100%;
  background-color: #b6151500;
}
.board_main .giftbox .gift img{
  width: auto;
  height: auto;
  aspect-ratio: 472/600;
  max-height: 85%;
  max-width: 100%;
  object-fit: cover;
  object-position: 0 0;
  margin-bottom: 1%;
}
.board_main .giftbox .gift.done img{
  object-position: 0 100%;
}
.board_main .giftbox .gift span{
  height: 0.45rem;
  font-size: 0.45rem;
  line-height: 0.45rem;
  font-family:  'Arial', sans-serif;
  font-weight: 400;
  color: #fff;
  padding: 0.05rem 0.1rem;
  border-radius: 0.1rem;
  white-space: nowrap;
  background-color: #4b853900;
}

.event_double_yy .board .event_double_yy_btn {
  width: 40%;
  aspect-ratio: 727 / 150;
  height: auto;
  background-color: transparent;
  margin: 2% auto 3% auto;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/double_yybtn.webp);
  background-size: 100% 300%; /* 3個狀態 */
  background-repeat: no-repeat;
  cursor: pointer;
  border: none;
  transform: scale(1);
  transition: transform 0.3s;
  z-index: 50;
  animation: btn-scale-loop 1.5s infinite ease-in-out;
}

.event_double_yy .board .event_double_yy_btn:hover {
  animation: none;
  transform: scale(1.2);
}
.event_double_yy .board .event_double_yy_btn.yy {
  background-position: 0 0%;
}
.event_double_yy .board .event_double_yy_btn.lottery {
  background-position: 0 50%;
}
.event_double_yy .board .event_double_yy_btn.lottery_done {
  background-position: 0 100%;
  animation: none;
  filter: grayscale(100%);
  pointer-events: none;
  cursor: default;
}

.picBox {
  height: 100%;
  pointer-events: none;
}

.picBox.front_1 {
  z-index: 2;
  width: 42%;
  right: 2%;
  background-color: #4534e200;
}
.picBox.front_2 {
  z-index: 2;
  width: 20%;
  left: 0%;
  background-color: #4534e200;
}
.picBox.back {
  z-index: 0;
  width: 20%;
  left: 0;
  background-color: #e27a3400;
}

.chara img {
  width: 100%;
  height: 100%;
}
.chara_1 {
  width: 138%;
  top: 3.5%;
  z-index: 3;
}
.chara_2 {
  width: 110%;
  top: 60%;
  z-index: 2;
}
.chara_3 {
  width: 130%;
  top: 20%;
  z-index: 0;
}

.star {
  aspect-ratio: 94/91;
  z-index: 3;
}
.star::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: star-loop 4s infinite ease-in-out;
}
.star_pink::after {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/star_pink.webp);
  animation-duration: 4s;
  animation-delay: 0s;
}
.star_blue::after {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/star_blue.webp);
  animation-duration: 3.5s;
  animation-delay: 0s;
}
.star_yellow::after {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/star_yellow.webp);
  animation-duration: 5s;
  animation-delay: 0s;
}

.star_pink_1 {
  width: 6%;
  bottom: 41%;
  right: -2%;
  transform: rotate(10deg);
}
.star_blue_1 {
  width: 5%;
  bottom: 0%;
  left: -2.4%;
  transform: rotate(30deg);
}
.star_yellow_1 {
  width: 3%;
  bottom: -12%;
  left: 2%;
  transform: rotate(20deg);
}
.star_pink_2 {
  width: 4.5%;
  bottom: 18%;
  left: -1.5%;
  transform: rotate(45deg);
}
.star_blue_2 {
  width: 4.5%;
  bottom: 45%;
  right: -3%;
  transform: rotate(10deg);
}
.star_yellow_2 {
  width: 3.5%;
  bottom: -30%;
  right: 12%;
  transform: rotate(45deg);
}

/*
 * ----------------------------------------
 * desk_double_yy - 雙平台預約活動 (Desk Version)
 * ----------------------------------------
 */
.event_main .desk .desk_base.desk_double_yy {
  width: 100%;
  height: 100%;
  background-color: #ca6a1c00;
  overflow: hidden;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/event_double_yy_bg.webp);
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: left;
}
.desk_double_yy .board {
  width: 70%;
  height: 100%;
  background-color: #1da08100;
  top: 0;
  left: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
}
.desk_double_yy .board .board_top,
.desk_double_yy .btn_desk .board_top {
  width: 100%;
  aspect-ratio: 1438 / 288;
  height: auto;
  margin-top: 3%;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/board_top.webp);
  margin-bottom: -1px;
  position: relative;
}
.desk_double_yy .board .board_bottom,
.desk_double_yy .btn_desk .board_bottom {
  width: 100%;
  aspect-ratio: 1438 / 81;
  height: auto;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/board_bottom.webp);
  margin-top: -1px;
  position: relative;
}
.desk_double_yy .board .board_main,
.desk_double_yy .btn_desk .board_main {
  width: 100%;
  padding: 0 5%;
  height: 0;
  flex-grow: 1;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/board.webp);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.desk_double_yy .board .btn_box,
.desk_double_yy .btn_desk .event_double_yy_btn {
  width: 65%;
  aspect-ratio: 727 / 150;
  height: auto;
  margin: 7% auto 8% auto;
  background-color: transparent;
}
.desk_double_yy .board .event_double_yy_btn {
  width: 60%;
  aspect-ratio: 727 / 150;
  height: auto;
  background-color: transparent;
  margin: 5% auto 8% auto;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/double_yybtn.webp);
  background-size: 100% 300%;
  background-repeat: no-repeat;
  cursor: pointer;
  border: none;
  transform: scale(1);
  transition: transform 0.3s;
  z-index: 50;
  animation: btn-scale-loop 1.5s infinite ease-in-out;
}

.desk_double_yy .btn_desk {
  width: 70%;
  height: 100%;
  left: 5%;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #1da04400;
  z-index: 50;
}
.desk_double_yy .btn_desk .board_top {
  opacity: 0;
}
.desk_double_yy .btn_desk .board_bottom {
  opacity: 0;
}
.desk_double_yy .btn_desk .board_main {
  opacity: 0;
}
.desk_double_yy .btn_desk .event_double_yy_btn {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/yy/double_yybtn.webp);
  background-size: 100% 300%;
  background-repeat: no-repeat;
  cursor: pointer;
  border: none;
  transform: scale(1);
  transition: transform 0.3s;
  z-index: 50;
  animation: btn-scale-loop 1.5s infinite ease-in-out;
}

.desk_double_yy .btn_desk .event_double_yy_btn:hover {
  animation: none;
  transform: scale(1.2);
}
/* .desk_double_yy .btn_desk .event_double_yy_btn.login{ background-position: 0 0; } */
.desk_double_yy .btn_desk .event_double_yy_btn.yy {
  background-position: 0 0%;
}
.desk_double_yy .btn_desk .event_double_yy_btn.lottery {
  background-position: 0 50%;
}
.desk_double_yy .btn_desk .event_double_yy_btn.lottery_done {
  background-position: 0 100%;
  animation: none;
  filter: grayscale(100%);
  pointer-events: none;
  cursor: default;
}

.desk_double_yy .picBox.front_1 {
  z-index: 2;
  width: 40%;
  right: -35%;
  background-color: #4534e200;
}
.desk_double_yy .chara_1 {
  width: 175%;
  top: 18%;
  right: 28%;
  z-index: 3;
}

/*
 * ----------------------------------------
 * event_main - 活動初始頁面(地圖)
 * ----------------------------------------
 */

.event_main {
  display: none; /* 預設隱藏，只有被點擊時才顯示 */
}

.fade_in {
  opacity: 1;
  transform: translateY(0);
}

.event_main .content {
  width: 100%;
  height: 100%;
  padding: 0vw;
  background-color: #1d40a000;
  display: flex;
  justify-content: flex-start; /* 改由 flex 分配 */
  align-items: center;
  flex-direction: row;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/event_main_bg.webp);
  background-size: cover;
  background-position: bottom;
  overflow: hidden;
}

/* 左側選單 */
.event_main .desk {
  position: relative;
  flex: 0 0 47%; /* 展開時佔 47% */
  height: 100%;
  background-color: #a01d1d00;
  z-index: 5;
  transition: flex-basis 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* 當地圖收合時，商店區塊擴張 */
.event_main:has(.map_desk.collapsed) .desk {
  flex-basis: 95%; /* 5% 給按鈕 */
}

/* 當地圖全螢幕 (Zoom) 時，商店區塊消失 */
.event_main.is_zoomed .desk {
  flex-basis: 0% !important;
  opacity: 0;
  pointer-events: none;
}
/* 初始頁面容器 */
.event_main .desk .desk_base.desk_hint {
  display: flex;
}

/* 內容圖片 */
.event_main .desk .desk_base .hint {
  width: 5.5rem;
  aspect-ratio: 550 / 343;
  height: auto;

  /* 背景框樣式 */
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/hint_base.webp);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 3%; /* 預留框的邊距 */
  box-sizing: border-box;

  /* 動畫初始狀態 */
  opacity: 0;
  transform: translateY(-30%);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

/* 動畫進場狀態 (fade_in 或 desk_anim_in) */
.event_main .desk .desk_base.fade_in .hint,
.event_main .desk .desk_base.desk_anim_in .hint {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* 基礎選單 */
.event_main .desk .desk_base {
  width: 100%;
  height: 100%;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  z-index: 1;
  background-color: #27ff1300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.1rem 0.5rem;
  display: none; /* 預設隱藏 */
}

/* 顯示初始頁面 */
.event_main .desk .desk_base.hint {
  display: flex;
}

/* 切換動畫 Class */
.desk_anim_in {
  display: flex !important;
  animation: deskSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.desk_anim_out {
  display: flex !important;
  animation: deskSlideOut 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

@keyframes deskSlideIn {
  0% {
    transform: translate(50%, 50%);
    opacity: 0;
  }
  100% {
    transform: translate(50%, -50%);
    opacity: 1;
  }
}
@keyframes deskSlideOut {
  0% {
    transform: translate(50%, -50%);
    opacity: 1;
  }
  100% {
    transform: translate(50%, -150%);
    opacity: 0;
  }
}

.event_main .desk .desk_base.desk_A2 {
  display: none;
}
.event_main .desk .desk_base .desk_title {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1301 / 191;
  height: auto;
  background-color: #a01d1d00;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.event_main .desk .desk_base .desk_pic {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1286 / 377;
  height: auto;
  background-color: #2a1da000;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 0.1rem;
}

.event_main .desk .desk_base .desk_pic.show_hint {
  background-image: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
}
.event_main .desk .desk_base .desk_pic .hint {
  display: none;
}
.event_main .desk .desk_base .desk_pic.show_hint .hint {
  display: block;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.event_main .desk .desk_base.desk_A1 .desk_pic,
.event_main .desk .desk_base.desk_A2 .desk_pic {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1276 / 231;
  height: auto;
  background-color: #2a1da000;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 0.1rem;
}
.event_main .desk .desk_base .desk_content {
  width: 100%;
  flex: 1;
  background-color: #db2c6f00;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
.title_A1 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_a1.webp);
}
.title_A2 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_a2.webp);
}
.title_B1 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_b1.webp);
}
.title_B2 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_b2.webp);
}
.title_B3 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_b3.webp);
}
.title_B4 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_b4.webp);
}
.title_B5 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_b5.webp);
}
.title_C1 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_c1.webp);
}
.title_C2 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_c2.webp);
}
.title_C3 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/title_c3.webp);
}

.pic_A1 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_a1.webp);
}
.pic_A2 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_a2.webp);
}

.pic_B1 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_b1.webp);
}
.pic_B2 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_b2.webp);
}
.pic_B3 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_b3.webp);
}
.pic_B4 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_b4.webp);
}
.pic_B5 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_b5.webp);
}
.pic_C1 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_c1.webp);
}
.pic_C2 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_c2.webp);
}
.pic_C3 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/pic_c3.webp);
}

/* 伊波恩古董店 */
.content_A1 .board_top {
  width: 100%;
  aspect-ratio: 1281 / 45;
  height: auto;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/a1_board_top.webp);
  margin-bottom: -1px; /* 消除渲染接縫 */
}
.content_A1 .board_bottom {
  width: 100%;
  aspect-ratio: 1281 / 50;
  height: auto;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/a1_board_bottom.webp);
  margin-top: -1px; /* 消除渲染接縫 */
}
.content_A1 .board {
  width: 100%;
  padding: 0 3%;
  height: 0; /* 關鍵修改：強制依賴 flex-grow 分配高度 */
  flex-grow: 1; /* 自動填滿中間 */
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/a1_board.webp);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.content_A1 .time_hint {
  width: auto;
  aspect-ratio: 560 / 65;
  height: 1.25em;
  margin-bottom: 0.1rem;
  flex-shrink: 0; /* 防止被擠壓 */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.45rem;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/time_hint.webp);
}
.content_A1 .time_hint span {
  font-size: 0.4rem;
  line-height: 0.4rem;
  color: #fff45c;
  font-family: "Arial", sans-serif;
  letter-spacing: 0.05em;
  transform: translateX(-0.7rem) translateY(0.01rem);
}

/* 任務面板 */
.content_A1 .board .tab_switch {
  width: 100%;
  height: auto;
  background-color: #6251f700;
  display: flex;
  flex-direction: row;
  justify-content: center; /* 可以在這裡調整間距 */
  align-items: center;
  gap: 0.2rem; /* 按鈕間距 */
  margin-bottom: 0.2rem;
}
.tab_btn {
  border: none;
  padding: 0;
  margin: 0;
  background-color: transparent;
  cursor: pointer;
  z-index: 50;
  flex: 1; /* 平均分佈 */
  width: 0; /* 讓 flex grow 生效且平分 */
  height: auto; /* 隨寬度比例縮放 */
  aspect-ratio: 667 / 100; /* 設定按鈕單態比例 */

  background-size: 100% 300%; /* 三態：300% 高度 */
  background-repeat: no-repeat;
  background-position: 0 0; /* 狀態1 (Normal) */
  /* transition: background-position 0.2s; */
}
.content_A1 .tab_switch .tab_btn:hover {
  background-position: 0 50%; /* 狀態2 (Hover) */
}
.tab_btn.active {
  background-position: 0 100%; /* 狀態3 (Active) */
  cursor: default;
}
.content_A1 .board .tab_switch .once_tab {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/once_tab.webp);
}
.content_A1 .board .tab_switch .daily_tab {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/daily_tab.webp);
}

.task_list {
  width: 100%;
  height: auto;
  flex: 1; /* 填滿剩餘高度 */
  min-height: 0; /* 防止被內容撐開 */
  overflow-x: hidden;
  overflow-y: auto; /* 內部捲動 */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #cbcbcb #202020; /* Firefox Thumb Track */
  background-color: #1da08100;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* 自訂 task_list 捲軸 */
.task_list::-webkit-scrollbar {
  width: 0.25rem;
  -webkit-appearance: none; /* 強制顯示 */
}
.task_list::-webkit-scrollbar-track {
  background: #202020;
  border-radius: 0.3rem;
  border: 0.05rem solid #414242;
}
.task_list::-webkit-scrollbar-thumb {
  background: #cbcbcb;
  border-radius: 0.3rem;
  box-shadow: inset 0 0 0 1px #666666;
  border: 0.03rem solid #2e2e2e;
}
.task_list::-webkit-scrollbar-thumb:hover {
  background: #f74b8c;
}
.task_list .task {
  width: 98.8%;
  height: auto;
  aspect-ratio: 1138 / 79;
  background-color: #3222c400;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task_bg.webp);

  box-sizing: border-box;
  padding: 0 0.2rem 0 0.33rem;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;

  display: flex;
  justify-content: space-between;
  align-items: center;
}
.task_list .task .task_num {
  width: auto;
  height: 70%;
  aspect-ratio: 1 / 1;
}
.task_list .task .task_text {
  flex: 1;
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 0.2rem;
}
.task_list .task .task_text span {
  font-size: 0.4rem;
  line-height: 0.4rem;
  font-family: "Arial", sans-serif;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
  text-align: left;
  width: 100%;
}
.task_list .task .task_coin {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  margin-right: 0.15rem;
}
.task_list .task .task_coin::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/nav/coin.webp)
    no-repeat center center;
  background-size: contain;
}
.task_list .task .task_coin .coin_quantity {
  font-size: 0.4rem;
  line-height: 0.4rem;
  font-family: "Arial", sans-serif;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #fff45c;
  margin-left: 0.1rem;
  pointer-events: none;
}
.task_list .task .list_task_btn {
  width: auto;
  height: 65%;
  background-color: transparent;
  aspect-ratio: 360 / 100;
  background-size: 100% 200%;
  background-repeat: no-repeat;
  background-position: 0 0;
  cursor: pointer;
  transition: background-position 0.2s;
}
.task_list .task .list_task_btn.done {
  background-position: 0 100%;
  cursor: default;
  pointer-events: none;
}
.task_list .task .list_task_btn_1 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task1_btn.webp);
}
.task_list .task .list_task_btn_2 {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task2_btn.webp);
}

.task_num {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}
.task_list .task:nth-child(1) .task_num {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task1.png);
}
.task_list .task:nth-child(2) .task_num {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task2.png);
}
.task_list .task:nth-child(3) .task_num {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task3.png);
}
.task_list .task:nth-child(4) .task_num {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task4.png);
}
.task_list .task:nth-child(5) .task_num {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task5.png);
}
.task_list .task:nth-child(6) .task_num {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task6.png);
}
.task_list .task:nth-child(7) .task_num {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task7.png);
}
.task_list .task:nth-child(8) .task_num {
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task8.png);
}

/* 獵人交易所 */
.content_A2 .board_top {
  width: 100%;
  aspect-ratio: 1266 / 103;
  height: auto;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/a2_board_top.webp);
  margin-bottom: -1px; /* 消除渲染接縫 */
}
.content_A2 .board_bottom {
  width: 100%;
  aspect-ratio: 1266 / 26;
  height: auto;
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/a2_board_bottom.webp);
  margin-top: -1px; /* 消除渲染接縫 */
}
.content_A2 .board {
  width: 100%;
  padding: 0 3%;
  height: 0; /* 關鍵修改：強制依賴 flex-grow 分配高度 */
  flex-grow: 1; /* 自動填滿中間 */
  background-color: #2a1da000;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/a2_board.webp);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.content_A2 .board .lottery_award {
  width: auto;
  aspect-ratio: 9 / 1;
  height: 98%;
  margin: 2% auto 0 auto;
  display: flex;
  animation: lottery-loop 10s linear infinite;
}
.content_A2 .board .lottery_award:hover {
  animation-play-state: paused;
}

.content_A2 .board .lottery_item {
  width: 10%; /* 1/10 of container */
  height: 100%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/a2_lottery_award.webp);
  background-repeat: no-repeat;
  background-size: 500% 200%; /* 5 items wide, 2 states high */
}

/* Individual Item Background X Positions (0, 25, 50, 75, 100) */
.content_A2 .board .lottery_item.num_1 {
  background-position-x: 0%;
}
.content_A2 .board .lottery_item.num_2 {
  background-position-x: 25%;
}
.content_A2 .board .lottery_item.num_3 {
  background-position-x: 50%;
}
.content_A2 .board .lottery_item.num_4 {
  background-position-x: 75%;
}
.content_A2 .board .lottery_item.num_5 {
  background-position-x: 100%;
}

/* None State (Slide Down) */
.content_A2 .board .lottery_item.none {
  background-position-y: 100%;
}

.content_A2 .board .lottery_award.none {
  background-position: center 100%;
}

.event_lottery_btn {
  width: 40%;
  aspect-ratio: 948 / 200;
  height: auto;
  background-color: #2a1da000;
  background-size: 100% 200%;
  background-repeat: no-repeat;
  background-position: center 0%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/lottery_btn.webp);

  margin: 2% auto 4% auto;
  transform: scale(1);
  transition: transform 0.3s;
  z-index: 50;
  animation: btn-scale-loop 1.5s infinite ease-in-out;
}
.event_lottery_btn:hover {
  animation: none;
  transform: scale(1.2);
}
.event_lottery_btn.none {
  background-position: center 100%;
  cursor: default;
  pointer-events: none;
}

/* 異業內容 */

.desk_content {
  width: 100%;
  height: 100%;
  background-color: #4737d68e;
  display: flex;
  flex-direction: column;
}

.desk_content_top {
  width: 98.8%;
  height: auto;
  aspect-ratio: 1138 / 79;
  background-color: #3222c400;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/task_bg.webp);
  box-sizing: border-box;
  padding: 0 0.2rem 0 0.33rem;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto; /* Center it if 98.8% */
  margin-bottom: 0.15rem;
}

.desk_content_top span {
  font-size: 0.4rem;
  line-height: 0.4rem;
  font-family: "Arial", sans-serif;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
  text-align: left;
  flex: 1; /* like task_text */
  padding-left: 0.25rem; /* like task_text padding */
}

.desk_content_main {
  flex: 1;
  width: 100%;
  position: relative;
  background-color: #a81c1c00;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 自定義卷軸樣式 */
.desk_content_main::-webkit-scrollbar {
  width: 6px;
}
.desk_content_main::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}
.desk_content_main::-webkit-scrollbar-thumb {
  background: #7993a5;
  border-radius: 3px;
}
.desk_content_main::-webkit-scrollbar-thumb:hover {
  background: #7993a5;
}

.desk_content_main .info_text,
.desk_content_main .rule_text {
  font-size: 0.35rem;
  line-height: 0.4rem;
  font-family: "Arial", sans-serif;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #000;
  pointer-events: none;
  text-align: left;
}
.desk_content_main .info_title,
.desk_content_main .rule_title {
  font-size: 0.4rem;
  line-height: 0.4rem;
  font-family: "Arial", sans-serif;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #dd2424;
  pointer-events: none;
  text-align: left;
  text-align: left;
  margin-bottom: 0.15rem;
}

.desk_content_main .desk_content_info,
.desk_content_main .desk_content_rule {
  width: 90%;
  margin: 0 auto 0.3rem auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align children left */
}
.desk_content_top .buy_coin {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  margin-right: 0.15rem;
}
.desk_content_top .buy_coin::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/nav/coin.webp)
    no-repeat center center;
  background-size: contain;
}

/* 尚未開放 */
.desk_buy_btn {
  width: 30%;
  aspect-ratio: 521 / 150;
  height: auto;
  background-color: #2a1da000;
  background-size: 100% 500%;
  background-repeat: no-repeat;
  background-position: center 0%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/desk_buy_btn.webp);

  margin: 2% auto 3% auto;
  /* transform: scale(1); */
  /* transition: transform 0.3s; */
  z-index: 50;
  /* animation: btn-scale-loop 1.5s infinite ease-in-out; */
}

/* 立即兌換 */
.desk_buy_btn.state_2 {
  background-position: center 25%;
}
/* 已兌換 */
.desk_buy_btn.state_3 {
  background-position: center 50%;
}
/* 今日兌換完畢 */
.desk_buy_btn.state_4 {
  background-position: center 75%;
}
/* 全數兌換完畢 */
.desk_buy_btn.state_5 {
  background-position: center 100%;
}

/* 右側地圖 */

.map_collapse_btn {
  position: relative;
  flex: 0 0 4%; /* 鎖定寬度 */
  min-width: 40px;
  height: 30%;
  background-color: #21a01da9;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/desk/desk_zoom.webp)
    no-repeat;
  background-size: 100%;
  background-position: center 0;
  cursor: pointer;
  z-index: 999 !important;
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s,
    flex-basis 0.5s ease-in-out,
    opacity 0.5s;
}

/* 全螢幕時按鈕也消失 */
.event_main.is_zoomed .map_collapse_btn {
  flex-basis: 0% !important;
  min-width: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.map_collapse_btn.state_open {
  transform: translateX(0);
}

.map_collapse_btn.state_close {
  transform: translateX(0) scaleX(-1);
}

.event_main .map_desk {
  position: relative;
  flex: 0 0 50%; /* 展開時佔 50% */
  height: 100%;
  background-color: #a01d5a70;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_bg.webp);
  background-size: cover;
  background-position: top;
  z-index: 10;
  overflow: hidden;
  transition:
    flex-basis 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s ease-out;
}

.event_main .map_desk.collapsed {
  flex-basis: 0% !important;
  opacity: 0;
  pointer-events: none;
}

/* 全螢幕狀態 (Zoom) */
.event_main.is_zoomed .map_desk {
  flex-basis: 100% !important;
}

/* 針對 map_desk 的動畫進場與展開狀態 */
.event_main .map_desk.fade_in {
  opacity: 1;
  transform: translateX(0);
}

/* 收合狀態：向右平移 100% (即 50% 螢幕寬度) */
.event_main .map_desk.collapsed {
  transform: translateX(100%);
}

.event_main .map_desk .map,
.event_main .map_desk .mapTitle,
.event_main .map_desk .mapChara_hint {
  transition:
    opacity 0.5s,
    width 0.5s ease-in-out,
    right 0.5s ease-in-out;
}

/* 收合時文字與地圖淡出 */
.event_main .map_desk.collapsed .map,
.event_main .map_desk.collapsed .mapTitle,
.event_main .map_desk.collapsed .mapChara_hint {
  opacity: 0;
  pointer-events: none;
}

.event_main .map_desk .mapTitle {
  width: 100%;
  aspect-ratio: 1136 / 292;
  background: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_title.webp)
    no-repeat center center;
  background-size: 100% auto;
  z-index: -2;
  right: auto; /* 預設位置 */
}

/* 全螢幕時標題縮小至一半並靠右 */
.event_main.is_zoomed .map_desk .mapTitle {
  width: 50%;
  right: 0;
}

.event_main .map_desk .mapChara_hint {
  bottom: 12.5%;
  right: 0%;
  width: 19.21%;
  aspect-ratio: 211 / 400;
  z-index: 1;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_chara_hint.webp);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-color: #d61f1f00;
  background-position: center 0%;
  transition: background-position 0.3s ease-in-out;
}
/* .event_main .map_desk .mapChara_hint:hover{
  background-position: center 0%;
} */
.event_main .map_desk .mapChara_hint.none {
  background-position: center 100%;
}

.event_main .map_desk .mapChara {
  bottom: 0;
  right: 0;
  width: 98%;
  aspect-ratio: 211 / 194;
  z-index: 2;
}
.event_main .map_desk .mapChara:hover {
  cursor: pointer;
}
.event_main .map_desk .mapChara.bounce-in-top,
.event_main .map_desk .mapbtn.bounce-in-top,
.event_main .map_desk .mapbtn_big.bounce-in-top {
  animation: bounce-in-top 1.5s both;
}

.event_main .map_desk .mapChara.jello-vertical {
  -webkit-animation: jello-vertical 0.9s both;
  animation: jello-vertical 0.9s both;
}

.event_main .map_desk .mapZoom {
  bottom: 10%;
  left: 0%;
  width: 10%;
  aspect-ratio: 1 / 1;
  z-index: 2;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/zoom.webp);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center 0%;
}

.event_main.is_zoomed .map_desk .mapZoom {
  background-position: center 100%;
}

.event_main .map_desk .map {
  height: 100%;
  width: auto;
  left: 50%;
  top: 50%;
  margin-top: 5%;
  transform: translate(-50%, -50%);
  transition:
    transform 0.5s ease-in-out,
    margin-top 0.5s ease-in-out,
    width 0.5s ease-in-out,
    height 0.5s ease-in-out;

  aspect-ratio: 1136 / 1309;
  background-color: #a01d1d00;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_base.webp);
  background-size: cover;
  background-position: top;
  z-index: -1;
}

/* 全螢幕時地圖底圖位置與縮放調整 */
.event_main.is_zoomed .map_desk .map {
  margin-top: 3%;
  transform: translate(-50%, -50%) scale(1.2); /* 您可以調整 scale 或 translate */
}

/* 大顆按鈕 */
.event_main .map_desk .mapbtn_big {
  width: 20.65%;
  aspect-ratio: 224 / 200;
  z-index: 1;
  background-color: #27ff1300;
  background-size: 100% 200%;
  background-position: 0 0%;
  transition:
    top 0.5s ease-in-out,
    left 0.5s ease-in-out;
}
/* 循環抖動 */
/* .event_main .map_desk .mapbtn_big.jello-loop{
  animation: jello-loop 5s 0.5s infinite;
} */
.op-0 {
  opacity: 0 !important;
}
.event_main .map_desk .mapbtn_big:hover,
.event_main .map_desk .mapbtn_big.active,
.event_main.is_zoomed .map_desk .mapbtn_big {
  background-position: 0 100%;
  animation: none !important;
}

/* 小顆按鈕 */
.event_main .map_desk .mapbtn {
  width: 14.41%;
  aspect-ratio: 175 / 200;
  z-index: 1;
  background-color: #27ff1300;
  background-size: 100% 200%;
  background-position: 0 0%;
  transition:
    top 0.5s ease-in-out,
    left 0.5s ease-in-out;
}

.event_main .map_desk .mapbtn:hover,
.event_main .map_desk .mapbtn.active,
.event_main.is_zoomed .map_desk .mapbtn {
  background-position: 0 100%;
  transform: scale(1.6); /* 您可以調整 scale 或 translate */
}

.mapbtn_A1 {
  top: 60%;
  left: 39.94%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_a1.webp);
  background-repeat: no-repeat;
}
.mapbtn_A2 {
  top: 32.42%;
  left: 56%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_a2.webp);
  background-repeat: no-repeat;
}
.mapbtn_B1 {
  top: 31.29%;
  left: 10.5%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_b1.webp);
  background-repeat: no-repeat;
}
.mapbtn_B2 {
  top: 20.42%;
  left: 29.35%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_b2.webp);
  background-repeat: no-repeat;
}
.mapbtn_B3 {
  top: 10.92%;
  left: 52.83%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_b3.webp);
  background-repeat: no-repeat;
}
.mapbtn_B4 {
  top: 52.67%;
  left: 18.77%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_b4.webp);
  background-repeat: no-repeat;
}
.mapbtn_B5 {
  top: 70.08%;
  left: 60.42%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_b5.webp);
  background-repeat: no-repeat;
}
.mapbtn_C1 {
  top: 48%;
  left: 67.24%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_c1.webp);
  background-repeat: no-repeat;
}
.mapbtn_C2 {
  top: 1.33%;
  left: 33.66%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_c2.webp);
  background-repeat: no-repeat;
}
.mapbtn_C3 {
  top: 42.92%;
  left: 44.15%;
  background-image: url(https://res1-nte.iwplay.com.tw/events/urban-missions/images/map/map_btn_c3.webp);
  background-repeat: no-repeat;
}

/* --- 地圖全螢幕時的按鈕座標調整 (Zoom Positions) --- */
.event_main.is_zoomed .mapbtn_A1 {
  top: 60%;
  left: 37.94%;
}
.event_main.is_zoomed .mapbtn_A2 {
  top: 29.42%;
  left: 60%;
}
.event_main.is_zoomed .mapbtn_B1 {
  top: 33.29%;
  left: 10.5%;
}
.event_main.is_zoomed .mapbtn_B2 {
  top: 23.42%;
  left: 29.35%;
}
.event_main.is_zoomed .mapbtn_B3 {
  top: 10.92%;
  left: 52.83%;
}
.event_main.is_zoomed .mapbtn_B4 {
  top: 52.67%;
  left: 18.77%;
}
.event_main.is_zoomed .mapbtn_B5 {
  top: 66.08%;
  left: 60.42%;
}
.event_main.is_zoomed .mapbtn_C1 {
  top: 48%;
  left: 72.24%;
}
.event_main.is_zoomed .mapbtn_C2 {
  top: 6.33%;
  left: 33.66%;
}
.event_main.is_zoomed .mapbtn_C3 {
  top: 40.92%;
  left: 44.15%;
}

/* 全螢幕時人物位置調整 */
.event_main.is_zoomed .mapChara_hint {
  bottom: 17.5%;
  right: -20%;
}
.event_main.is_zoomed .map_desk .mapZoom {
  left: -25%;
  bottom: 20%;
  transform: scale(1.2);
}

/* ----------------------------------------
 * footer - footer
 * ---------------------------------------- */

.footer {
  position: relative;
  /* padding: 25px 0; */
  padding: 0.1rem 0;
  color: #fff;
  font-size: 0.12rem;
  text-align: center;
  letter-spacing: 0.02px;
  background: #282a2c;
}
.footer .container {
  max-width: 100%;
}
.footer .copyright,
.footer .grading {
  vertical-align: middle;
}
.footer img {
  vertical-align: baseline;
  height: 0.4rem;
  width: auto;
}
.footer .copyright,
.footer .company,
.footer p,
.footer .grading,
.footer .grading img,
.footer ul {
  display: inline-block;
}
.footer .company a,
.footer .copyright p a,
.footer .grading,
.footer p,
.footer ul {
  margin-left: 0.1rem;
  font-size: 0.12rem;
}
.footer a:hover {
  color: #63edec;
}
.footer p,
.footer ul {
  text-align: left;
  line-height: 1.2;
  font-size: 0.12rem;
  opacity: 0.6;
  margin-bottom: 0;
}
.footer p a {
  color: #fff;
}

/* @media screen and (max-width: 1200px) {
  .footer {
    padding: 35px 0;
  }
  .footer .copyright,
  .footer .company {
    display: block;
    margin-bottom: 15px;
  }
  .footer p {
    text-align: center;
  }
  .footer p,
  .footer .grading {
    margin: 0 auto;
  }
} */

/* uG */
.downloadSharePicTip {
  display: none;
}

/* Debug Menu */
.pop_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: fixed;
  bottom: 20px;
  left: 10vw;
  right: 10vw;
  z-index: 9999;
  background: rgba(173, 28, 28, 0.8);
  padding: 10px;
  border-radius: 8px;
  display: none;
}

.pop_box .btn {
  padding: 5px 12px !important;
  font-size: 13px !important;
  font-family: inherit;
}

/* Portrait Overlay - Hidden by default in this stylesheet (Landscape/PC) */
.note_flex {
  display: none !important;
}

/* Desk Content List Styles */
.desk_content_info ul,
.desk_content_rule ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.desk_content_info li,
.desk_content_rule li {
  list-style-type: disc;
}
