@charset "UTF-8";
* {
  position: relative;
  box-sizing: border-box;
  vertical-align: center;
  margin: 0;
  padding: 0;
}

input {
  all: unset;
}

html {
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
  font-family: "Comfortaa", cursive, "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", Arial, sans-serif;
  color: #f7f7f7;
}

body {
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
  font-family: "Comfortaa", cursive, "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", Arial, sans-serif;
  color: #f7f7f7;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: coral;
  color: #f7f7f7;
}

#nav, #findmyshaky, #showshaky {
  margin: 20px auto;
  max-width: 800px;
  background-color: rgba(45, 48, 58, 0.9);
  color: #f7f7f7;
  border-radius: 10px;
}

#shakyimg {
  height: 100%;
  width: 100%;
  max-height: 450px;
  max-width: 450px;
  /* background-color: #cccccc; */
  margin: 30px auto 0px auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#shakyimg.loaded {
  opacity: 1;
}

#nav {
  padding: 40px 0px 20px 0px;
}


.gamelink {
  margin-top: 30px;
}

#nav .gamelink2 {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin-top: 20px;
}

.gamelink2 img {
  max-height: 220px;
  margin: 40px 25px 20px 25px;
}

@media (max-width: 767px) {
  .gamelink2 img {
      max-height: 130px;
  }
}

a:hover, a:active, a:focus {
  color: #f7f7f7;
}

#nav p#discription {
  max-width: 700px;
  margin: 50px auto 40px auto;
  padding: 0px 20px;
  line-height: 30px;
}

#discription {
    text-align: left;            /* 回歸自然靠左對齊，保證最佳閱讀性 */
    text-wrap: pretty;           /* 現代魔法：防止最後一行出現孤兒字 */
    line-height: 1.7;            /* 跟全站統一的舒適行高 */
}

#findmyshaky #specialoffer {
  font-size: initial;
  line-height: 30px;
  max-width: 700px;
  margin: 20px auto 0px auto;
  padding: 40px 0;
  color: #ef98ff;

}

#findmyshaky h2 {
  padding-top: 40px;
  font-size: 26px;
  padding-bottom: 5px;
}
#findmyshaky p {
  margin: 0px;
  font-size: 26px;
}
#findmyshaky p span {
  font-size: 16px;
}
#findmyshaky form {
  padding: 40px 0px 10px;
}
#findmyshaky form input {
  padding: 5px 15px;
  border: 2px black solid;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  min-height: 30px;
}
#findmyshaky form input[type=button] {
  cursor: pointer;
}
#findmyshaky form input[type=button]:hover {
  background-color: #545469;
}
/* --- 新增：按鈕被封印時的樣式 --- */
#findmyshaky form input[type=button]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: transparent;
  border-color: #666;
  color: #666;
}

#showshaky {
  display: none;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  padding-top: 40px;
  padding: 40px;
}
#showshaky div {
  padding-top: 10px;
  padding-bottom: 10px;
}
#showshaky div img {
  max-width: 300px;
  border-radius: 10px;
}
#showshaky div p {
  padding: 5px;
}

.roadmap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: top;
  padding: 40px 50px;
  text-align: left;
}
.roadmap h2 {
  width: 100%;
  margin-top: 10px;
  margin-left: 28px;
  padding-left: 5px;
  margin-bottom: -2px;
}
.roadmap .step {
  width: 44%;
  background-color: #545469;
  padding: 30px 20px;
  margin: 20px;
  border-radius: 10px;
}
.roadmap .step h3 {
  font-size: 24px;
  padding: 15px 0px 25px 5px;
}
.roadmap .step p {
  padding: 0px 5px;
  line-height: 1.7; /* 稍微用比例來設定行高，會比寫死 30px 更有彈性 */
  font-size: 16px;
  
  /* 1. 回歸正統：靠左對齊，保證最高閱讀性 */
  text-align: left; 
  
  /* 2. 關閉剛剛的連字號，不要再切斷單字了 */
  -webkit-hyphens: none; 
  hyphens: none; 
  
  /* 3. 【現代網頁魔法】讓排版變漂亮的關鍵，避免孤兒字 */
  text-wrap: pretty; 
}
.roadmap .step p a.op {
  text-decoration: underline;
  cursor: pointer;
  color: #f7f7f7;
}

.rewards {
  padding: 0px 50px 50px 50px;
  text-align: left;
}
.rewards h2 {
  width: 100%;
  margin-left: 28px;
  padding-left: 5px;
  margin-bottom: -2px;
}
.rewards p {
  padding: 15px 25px 25px 25px;
  margin: 20px;
  background-color: #545469;
  border-radius: 10px;
  line-height: 30px;
  font-size: 16px;
}
.rewards p span.rh3 {
  margin-top: 35px;
  font-size: 24px;
}

.executor {
  padding: 0px 50px 30px 50px;
  text-align: left;
}
.executor h2 {
  width: 100%;
  margin-left: 28px;
  margin-bottom: 20px;
  padding-left: 5px;
  margin-bottom: -2px;
}
.executor .executorbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: top;
  background-color: #545469;
  padding: 40px 0;
  margin: 20px;
  border-radius: 10px;
}
.executor .executorbox img {
  width: 250px;
  height: 250px;
  max-width: 40%;
  border-radius: 10px;
}
.executor .executorbox .gallery .thumb-box img {
  width: 150px;
  height: auto;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s ease;
  /* padding: 10px 0; */
}
.executor .executorbox p {
  width: 40%;
  font-size: 16px;
  line-height: 1.7;
  
  /* 拔掉霸道的 justify，換上高級的靠左與防孤兒字魔法 */
  text-align: left;
  text-wrap: pretty;
}

.executor .executorbox p span.executorp1 {
  font-size: 15px;
}

.executor .executorbox p span.executorp2 {
  font-size: 12px;
}

.pbox {
  background-color: #545469;
  padding: 40px 20px;
  margin: 20px;
  border-radius: 10px;
  line-height: 30px;
  font-size: 16px;
}

.pbox h3 {
  font-size: 24px;
  padding: 15px 0px 25px 5px;
}

.pbox p {
  padding: 0px 5px;
  text-align: left;
  text-wrap: pretty;
  line-height: 1.7; /* 順便統一行高，讓全站閱讀體驗一致 */
}

footer {
  padding-bottom: 20px;
}

.u1 {
  color: #0066cc;
}

.u2 {
  color: #ffcc00;
}

.imgp {
  font-size: 20px;
  color: #ffcc00;
  top: -5px;
}

.imgp-link {
  text-decoration: none;
}

.dot {
  padding-bottom: 20px;
}

.imgp-link img.img-hover {
  transition: transform 0.3s ease;
}

.imgp-link img.img-hover:hover {
  transform: scale(1.08);
}




@media only screen and (max-width: 650px) {
  .roadmap, .rewards, .executor {
      padding: 15px 25px 15px 25px;
  }
  .roadmap h2, .rewards h2, .executor h2 {
      padding-left: 0px;
  }
  .roadmap .step, .pbox {
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
  }

  .rewards p {
    margin-left: 0px;
    margin-right: 0px;
  }

  .executor .executorbox {
    margin-left: 0px;
    margin-right: 0px;
  }
  .executor .executorbox img {
    max-width: 95%;
  }
  .executor .executorbox p {
    width: 100%;
    padding: 20px 30px 0 30px;
  }
  .executor .executorbox p span.executorp2 {
    font-size: 12px; 
    letter-spacing: -0.3px; 
    display: inline-block; 
  }

  #nav a.navlink {
    display: inline-block;
    margin-bottom: 10px;
  }

  /* 【新增這段】強制手機版搜尋結果雙欄並排 */
  #showshaky {
    padding: 20px 10px; /* 大幅縮小手機版的左右留白，把空間還給圖片 */
    justify-content: center; /* 確保內容絕對水平置中 */
    gap: 10px; /* 控制圖片之間的間距 */
  }
  
  #showshaky div {
    width: 45%; /* 強制每個區塊佔據 45% 的寬度，剛好一排塞下兩個 */
    padding: 5px 0; /* 縮小上下的間距 */
    text-align: center; /* 確保文字也在自己的小區塊內置中 */
  }
  
  #showshaky div img {
    width: 100%; /* 讓圖片寬度吃滿那 45% 的空間 */
    max-width: none; /* 解除原本 300px 的限制，讓它自由縮放 */
    height: auto;
  }
  
  #showshaky div p {
    font-size: 13px; /* 手機版字體微微縮小，看起來更精緻 */
    letter-spacing: -0.5px; /* 微調字距避免太擠 */
  }
}

/* --- Roadmap 懸浮膠囊選單 (純血毛玻璃 + 手機版退讓) --- */
.sticky-subnav {
    position: fixed;
    top: -80px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px; /* 稍微收緊最大寬度，看起來更精緻 */
    z-index: 1000;
    
    /* 核心材質設計：深邃半透明黑 + 強模糊 + 微光邊框 */
    background: rgba(20, 22, 28, 0.75); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* 支援 Safari */
    border: 1px solid rgba(255, 255, 255, 0.15); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); 
    
    padding: 12px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-radius: 50px;
    transition: top 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
}

.sticky-subnav.show {
    top: 20px; 
}

.sticky-subnav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.sticky-subnav a:hover {
    color: #ff8fdd;
}

.sticky-subnav a.active {
    color: #ff8fdd;
    text-shadow: 0 0 8px rgba(255, 143, 221, 0.6); /* 增加一點微光，更顯眼 */
}

/* --- 手機版專屬設定 (改為底部懸浮，完美避開漢堡且符合人體工學) --- */
@media (max-width: 768px) {
    .sticky-subnav {
        width: 92%; /* 稍微加寬一點，視覺更穩 */
        gap: 15px; 
        padding: 12px 0;
        
        /* 【關鍵魔法】解除上方的綁定，改為由下方滑出 */
        top: auto; 
        bottom: -80px; 
        /* 更改動畫過渡的對象為 bottom */
        transition: bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    .sticky-subnav a {
        font-size: 0.8rem;
    }

    .sticky-subnav.show {
        top: auto; /* 確保徹底覆蓋桌機版的 top 屬性 */
        bottom: 25px; /* 優雅地懸浮在畫面底部 25px 處 */
    }
}

/* --- 升級版：日期輸入框排版 (強制並排與數字置中) --- */
#bdform {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* 絕對指令：不准折行！ */
    gap: 10px; /* 輸入框與按鈕之間的優雅間距 */
    margin: 0 auto;
}

#bdform input[type="text"] {
    width: 60px; /* 既然只有兩個數字，寬度縮小就好，這樣手機絕對塞得下 */
    text-align: center; /* 【質感升級】讓輸入的數字置中對齊，像輸入驗證碼一樣高級 */
    font-size: 18px; /* 字體稍微加大，手機更好點擊 */
}

#bdform input[type="button"] {
    padding: 5px 20px; /* 確保按鈕比例好看 */
}

/* ==========================================
   ✨ Events 專屬成就網格卡片牆 (進階版：支援圖文與連結)
   ========================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 15px; 
  margin: 20px; 
}

/* 共通卡片基底樣式 */
.event-card {
  background: rgba(84, 84, 105, 0.4); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  flex-direction: row; /* ✨ 改為左右橫向排版 */
  justify-content: flex-start; /* 靠左對齊 */
  align-items: center; /* 垂直置中 */
  text-align: left; /* 文字靠左 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* 為了放右上角的提示符號 */
  text-decoration: none; /* 移除 a 標籤底線 */
  color: #f7f7f7; /* 確保 a 標籤文字顏色正確 */
}

/* 🏆 大卡片專屬樣式 */
.card-major {
  grid-column: span 2; 
  border: 1px solid var(--card-color, #fff); 
  background: rgba(84, 84, 105, 0.6);
  cursor: pointer;
}

/* 普通卡片 Hover 光暈特效 */
.event-card:hover {
  transform: translateY(-3px); 
  /* 1. 底部黑色陰影(立體感) + 2. 外部淡淡白光暈 + 3. 內部微亮反光 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 
              0 0 12px rgba(255, 255, 255, 0.35), 
              inset 0 0 10px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35); /* 邊框稍微變亮，增加玻璃邊緣感 */
}
.card-major:hover {
  box-shadow: 0 0 15px var(--card-color, rgba(255,255,255,0.5)), inset 0 0 10px rgba(255,255,255,0.1);
}
.card-major .title {
  color: var(--card-color, #fff);
  font-size: 18px; 
}

/* ==================
   ✨ 卡片內部元素佈局
   ================== */
   
/* 左側 Icon 區塊 */
.card-icon {
  width: 40px; /* 小圖的固定寬度 */
  height: 40px;
  flex-shrink: 0; /* 防止圖片被擠壓 */
  margin-right: 15px; /* 與右邊文字的距離 */
  overflow: hidden; /* 確保圖片不超出版界 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 讓圖片完美填滿框框 */
}

/* 得獎卡片的大 Icon */
.icon-large {
  font-size: 32px; /* 如果用 Emoji，字體放大 */
  background: transparent;
}

/* 右側文字區塊 */
.card-content {
  display: flex;
  flex-direction: column; /* 日期和標題上下排 */
  justify-content: center;
}

.event-card .date {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.event-card .title {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
}

/* ==================
   ✨ 外部連結提示符號 (↗)
   ================== */
/* 只有帶有 .event-link 且被 Hover 時，才會顯示右上角的提示符號 */
.event-link::after {
  content: '↗'; /* Unicode 斜箭頭 */
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 0; /* 預設隱藏，畫面比較乾淨 */
  transform: translate(-5px, 5px); /* 預設位置稍微偏左下 */
}

.event-link:hover::after {
  opacity: 1; /* 滑鼠移入時顯示 */
  transform: translate(0, 0); /* 順著右上角滑過去的動態感 */
  color: #ff8fdd; /* 變成你的主題色 */
}

/* 📱 手機版 RWD */
@media only screen and (max-width: 650px) {
  .events-grid {
    grid-template-columns: 1fr; 
    margin: 20px 0; 
  }
  .card-major, .card-normal {
    grid-column: span 1; 
  }
}

/* ==========================================
   ✨ 3D 硬幣旋轉特效 (Hover 時 ICON 轉一圈)
   (邏輯同 Universe 的 coinFlip)
   ========================================== */
/* 當滑鼠 Hover 整個卡片時，裡面的圖標執行 3D 翻轉 */
.event-card:hover .card-icon {
    animation: roadmapCoinFlip 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1; 
}

/* 定義 3D 翻轉的 Keyframe */
@keyframes roadmapCoinFlip {
    0% { transform: perspective(400px) rotateY(0deg); }
    100% { transform: perspective(400px) rotateY(360deg); }
}

/* ==========================================
   ✨ 導覽列選單：RGB 色差爆發 + 黑玻璃倒影 (無上浮版)
   ========================================== */
#nav a.navlink {
  padding: 0px 10px; /* ✨ 修改 1：上下 padding 歸零 */
  font-size: 22px;
  text-decoration: none; 
  cursor: pointer;
  color: #f7f7f7;
  display: inline-block; 
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* 保留倒影，距離設為 -4px (營造黑玻璃桌面質感) */
  -webkit-box-reflect: below -4px linear-gradient(transparent 50%, rgba(255, 255, 255, 0.35));
  
  /* 靜止時帶有極微弱的科技感色差 */
  text-shadow: -0.5px 0px rgba(0, 255, 255, 0.3), 0.5px 0px rgba(255, 0, 255, 0.3);

  /* ✨ 新增這行：強制消除手機瀏覽器預設的點擊灰色高光背景 */
  -webkit-tap-highlight-color: transparent;
}

#nav a.navlink:visited {
  color: #f7f7f7;
}

/* ✨ 滑鼠 Hover 狀態：字體變色，觸發 RGB 色差爆發動畫 */
/* ✨ 修改：將 #nav a.navlink:active 加在前面，用逗號隔開 */
#nav a.navlink:hover,
#nav a.navlink:active {
  color: #ff8fdd; 
  animation: rgb-burst 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ✨ 點擊回饋：按下去稍微縮小回彈 */
#nav a.navlink:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* ==========================================
   ✨ 定義 RGB 色差爆發的動畫 (Glitch / Chromatic Aberration Burst)
   ========================================== */
@keyframes rgb-burst {
  0% { 
    text-shadow: 0px 0px transparent, 0px 0px transparent; 
  }
  20% { 
    text-shadow: -5px 0px cyan, 5px 0px magenta; /* 瞬間往左右猛烈分裂 */
  }
  40% { 
    text-shadow: 3px 0px cyan, -3px 0px magenta; /* 快速反向交錯拉扯 */
  }
  60% { 
    text-shadow: -2px 0px cyan, 2px 0px magenta; 
  }
  80% { 
    text-shadow: 1px 0px cyan, -1px 0px magenta; 
  }
  100% { 
    /* 最後收束，留下稍微明顯一點的科技感殘影 */
    text-shadow: -1px 0px rgba(0, 255, 255, 0.6), 1px 0px rgba(255, 0, 255, 0.6); 
  }
}

/* ==========================================
   ✨ 3D Cover Flow 緊密堆疊版 (修復畫質、長倒影、箭頭位置)
   ========================================== */
.carousel-container {
    position: relative;
    width: 100%;
    /* 增加容器高度，給拉長的倒影足夠的空間顯示，避免被截斷 */
    height: 390px; 
    margin: 50px 0 20px auto;
    perspective: 1200px; 
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab; 
    touch-action: pan-y; 
}
.carousel-container:active { cursor: grabbing; }

.carousel-stage {
    position: absolute;
    width: 100%; 
    height: 250px;
    transform-style: preserve-3d; 
    /* 稍微往上移，留空間給下方倒影 */
    top: 50px; 
}

/* --- 卡片與高畫質暗化處理 --- */
.carousel-item {
    position: absolute;
    top: 0; 
    left: 50%; 
    margin-left: -110px; 
    width: 220px; height: 220px;
    text-decoration: none;
    border-radius: 12px;
    background-color: #000000; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8); 
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0); 
    
}

.carousel-item.active {
    box-shadow: 0 15px 35px rgba(255, 143, 221, 0.4); 
}

.carousel-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 12px;
    -webkit-user-drag: none; 
    user-select: none;
    pointer-events: none; 
    transition: opacity 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    
    /* ✨ 完美倒影修正參數：
       1. below 5px：讓圖片與倒影之間產生你想要的約 5px 縫隙。
       2. linear-gradient：
          - transparent 60%：原圖上半部透明（翻轉後變成倒影的下半部隱形）。
          - rgba(255, 255, 255, 0.5) 100%：原圖底部有顏色（翻轉後變成緊貼圖片的倒影最銳利）。*/
    -webkit-box-reflect: below 5px linear-gradient(to bottom, transparent 60%, rgba(255, 255, 255, 0.5) 100%);
}

/* --- 文字樣式 --- */
.carousel-item .imgp {
    position: absolute;
    top: auto !important; 
    bottom: -35px; /* 文字會自然地浮在圖片倒影的上方 */
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: #ffffff; 
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9); 
    opacity: 0; 
    transition: opacity 0.3s ease;
    margin: 0;
    pointer-events: none; 
    -webkit-font-smoothing: antialiased;
}

.carousel-item.active .imgp { opacity: 1; }

/* --- 箭頭精準定位 --- */
.carousel-controls {
    position: absolute;
    /* 箭頭高度微調，對齊視覺中心 */
    top: 160px; 
    left: 0;     
    right: 0;    
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none; 
    z-index: 999;
    padding: 0 20px; 
    box-sizing: border-box; 
}

.carousel-controls button {
    pointer-events: auto; 
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white; font-size: 24px;
    width: 45px; height: 45px; 
    border-radius: 50%; cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    margin: 0; 
}

.carousel-controls button:hover {
    background: rgba(255, 143, 221, 0.5);
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .carousel-container { height: 310px; }
    .carousel-item {
        width: 160px; height: 160px;
        margin-left: -80px; 
    }
    .carousel-controls { padding: 0 5px; top: 110px;} 
}