/* 八神獸特質全解析頁面專用樣式，沿用 style.css 的色票／字體變數 */

.guide-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.guide-header {
  text-align: center;
  margin-bottom: 28px;
}
.guide-header .brand {
  margin-bottom: 18px;
}
.guide-title {
  font-size: 28px;
  margin: 0 0 8px;
}
.guide-subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0 0 6px;
}
.guide-hint {
  font-size: 12px;
  color: var(--mauve);
}
.guide-back-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--mauve);
  text-decoration: none;
}
.guide-back-link:hover { color: var(--ink); }

/* ---------- 頂部縮圖選單 ---------- */
.icon-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 10px;
  margin: 28px 0 8px;
}
.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 20px -10px rgba(183,156,176,0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-item:hover .icon-circle,
.icon-item:active .icon-circle {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 24px -10px rgba(183,156,176,0.75);
}
/* 這個頁面是獨立靜態頁，沒有載入 app.js 的 hover-ready 機制（那是為了修
   SPA 畫面切換時滑鼠殘留 hover 的問題）——這裡是一般連結導覽，直接用
   :hover 就好，不需要那套保護。 */
.icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.icon-name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- 單隻神獸區塊 ---------- */
.creature-section {
  padding-top: 48px;
  margin-top: 32px;
  border-top: 1px dashed rgba(183,156,176,0.35);
  scroll-margin-top: 16px;
}
.creature-illustration {
  width: 78%;
  max-width: 300px;
  aspect-ratio: 941 / 1672; /* 神獸插畫原圖固定比例。沒有先保留這個高度的話，
    圖片用 loading="lazy" 還沒載入前，這個框會塌成 0 高度，導致下面滾動
    浮現效果用來判斷「進入畫面了沒」的 IntersectionObserver 量到錯的位置
    ——這正是 iOS Safari 上動畫失效／表現不一致的原因。 */
  margin: 0 auto 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(183,156,176,0.5);
}
.creature-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.creature-heading {
  text-align: center;
  margin-bottom: 28px;
}
.creature-name {
  font-size: 30px;
  font-weight: 700;
  margin: 4px 0 8px;
}
.creature-tagline {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- 滾動浮現效果 ----------
   .reveal-init 這個 class 只由 JS 加上去（見頁面下方 script），HTML 本身
   不帶這個 class。這樣就算 JS 沒跑起來，插畫跟標題預設就是完全顯示，
   不會因為動畫掛掉而看不到內容——動畫是額外加分，不是必要條件。
   同時尊重「減少動態效果」的系統設定，這種情況下 JS 會直接跳過整段，
   完全不套用任何動畫。 */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-init.in-view {
  opacity: 1;
  transform: translateY(0);
}
.creature-heading.reveal-init {
  transition-delay: 0.15s;
}

.info-block {
  margin-bottom: 22px;
}
.info-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--mauve);
  background: rgba(183,156,176,0.12);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.info-text {
  font-size: 15px;
  line-height: 1.9;
}

.pair-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.pair-block.pair-match {
  background: rgba(244,201,216,0.22);
  border: 1px solid rgba(242,169,190,0.3);
}
.pair-block.pair-challenge {
  background: rgba(217,201,236,0.2);
  border: 1px solid rgba(183,156,176,0.3);
}
.pair-avatar {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* 小頭像現在也可以點擊跳轉（不是只有名字才能點），加個 hover 回饋讓這件事更明顯 */
.pair-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 16px -6px rgba(90,74,86,0.4);
}
.pair-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pair-content { flex: 1; }
.pair-title {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.pair-title a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.pair-title a:hover { color: var(--coral); }
.pair-text {
  font-size: 13.5px;
  line-height: 1.75;
}

.back-to-menu {
  display: block;
  text-align: center;
  margin: 8px auto 0;
  font-size: 13px;
  color: var(--mauve);
  text-decoration: none;
}
.back-to-menu:hover { color: var(--ink); }

/* ---------- 浮動回頂部按鈕 ---------- */
.float-top-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--pearl);
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(90,74,86,0.5);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.float-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
