/* =========================================================
   神樂舞：京夜律章 — 官網主樣式
   視覺方向：A 夜宴卷軸（定案）。夜藍底、金線、朱印 accent。
   取色 = 遊戲實際色票（memory official-website-art-direction）
   ========================================================= */

:root {
  --night-deep: #0F1626;   /* 夜藍（最深） */
  --night: #182238;        /* 夜藍 */
  --mist: #4A5E7E;         /* 霧藍 */
  --moon-gold: #EBD9A6;    /* 月金 */
  --warm-white: #F4F1E8;   /* 暖白 */
  --gold-line: #C9A64E;    /* 深金線 */
  --vermilion: #A8322E;    /* 朱（緋袴） */
  --seigaiha: #235E9C;     /* 青海波藍 */
  --ghost-cyan: #7CD2F2;   /* 鬼火青 */
  --maple: #C6482C;        /* 楓朱 */

  --font-serif: "Noto Serif TC", "Noto Serif JP", "Songti TC", serif;
  --nav-h: 64px;
}

/* 三語 stack（日/英版開頁時直接吃到；memory art-direction 定的做法） */
:lang(ja) { font-family: "Zen Old Mincho", "Shippori Mincho", "Noto Serif JP", serif; }
:lang(en) { font-family: "Cormorant Garamond", "EB Garamond", "Noto Serif TC", serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--night-deep);
  color: var(--warm-white);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--moon-gold); text-decoration: none; }
a:hover { color: var(--warm-white); }

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

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--night); color: var(--moon-gold);
  padding: 10px 18px; border: 1px solid var(--gold-line);
  transition: top 160ms;
}
.skip-link:focus-visible { top: 8px; }   /* 只在鍵盤 Tab 聚焦時現身；滑鼠點擊不觸發 */

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--gold-line);
  color: var(--moon-gold);
  letter-spacing: 0.14em;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 220ms, color 220ms, border-color 220ms, box-shadow 220ms;
}
.btn:hover { color: var(--warm-white); border-color: var(--moon-gold); box-shadow: 0 0 18px rgba(201, 166, 78, 0.25); }
.btn-primary {
  background: linear-gradient(160deg, var(--vermilion), #7e2320);
  border-color: rgba(201, 166, 78, 0.65);
  color: var(--warm-white);
}
.btn-primary:hover { background: linear-gradient(160deg, #bf3d38, var(--vermilion)); color: #fff; }
.btn-ghost { background: rgba(15, 22, 38, 0.35); backdrop-filter: blur(2px); }
.btn-nav { padding: 8px 20px; font-size: 14px; }

/* ---------- 頂欄 ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background 300ms, box-shadow 300ms;
}
.site-nav.scrolled {
  background: rgba(15, 22, 38, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(201, 166, 78, 0.28);
}
.nav-logo {
  font-size: 22px; font-weight: 900; letter-spacing: 0.18em;
  color: var(--warm-white); display: flex; align-items: baseline; gap: 10px;
  /* 首屏隱藏（跟 hero 大標題重複）、往下捲頂欄變底時才浮現 */
  opacity: 0; pointer-events: none; transition: opacity 300ms;
}
.site-nav.scrolled .nav-logo { opacity: 1; pointer-events: auto; }
.nav-logo-sub { font-size: 12px; font-weight: 400; color: var(--moon-gold); letter-spacing: 0.3em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 15px; letter-spacing: 0.12em; color: var(--warm-white); opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--moon-gold); }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
}

/* ---------- ① Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 540px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }

/* hero 兩種模式：靜態 16:9 大圖（預設、之後換影片）vs 五層視差（?hero=parallax 比較用） */
.hero-static-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* 焦點偏右上：窄螢幕裁左邊夜景、超寬螢幕裁下緣鈴杖底，保住臉＋月 */
  object-position: 55% 28%;
}
body.hero-parallax .hero-static-img { display: none; }
body.hero-static .bg-layer,
body.hero-static .hero-ghost,
body.hero-static .hero-heroine { display: none; }

.bg-layer {
  position: absolute; inset: 0;
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
}
.hero-heroine {
  position: absolute;
  right: clamp(2%, 6vw, 12%);
  bottom: 6%;
  height: 72%;
  width: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
}
.hero-ghost {
  position: absolute;
  width: 64px; height: auto;
  opacity: 0.85;
  animation: ghost-drift 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 14px rgba(124, 210, 242, 0.5));
}
.ghost-a { left: 12%; top: 34%; width: 52px; animation-duration: 8s; }
.ghost-b { left: 30%; top: 62%; width: 42px; animation-duration: 6.4s; animation-delay: -2.4s; }
.ghost-c { right: 26%; top: 26%; width: 66px; animation-duration: 9s; animation-delay: -4.8s; }
@keyframes ghost-drift {
  from { transform: translate(0, 0) rotate(-2deg); }
  to   { transform: translate(14px, -22px) rotate(3deg); }
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(15, 22, 38, 0.55) 100%),
    linear-gradient(to bottom, rgba(15, 22, 38, 0.35) 0%, transparent 18%, transparent 70%, var(--night-deep) 100%);
  pointer-events: none;
  animation: vignette-breathe 8s ease-in-out infinite;   /* 邊緣壓暗慢呼吸 */
}
@keyframes vignette-breathe {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}
/* 膠片噪點層：疊加＋細碎跳動——四周明顯、中間弱（radial mask 讓主體乾淨） */
.hero-grain {
  position: absolute; inset: 0;
  background: url("../assets/grain.png");
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grain-jitter 1.1s steps(4) infinite;
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 45%, rgba(0,0,0,0.4) 28%, rgba(0,0,0,0.7) 60%, #000 90%);
  mask-image: radial-gradient(ellipse 78% 74% at 50% 45%, rgba(0,0,0,0.4) 28%, rgba(0,0,0,0.7) 60%, #000 90%);
}
@keyframes grain-jitter {
  0% { background-position: 0 0; }
  25% { background-position: -90px 40px; }
  50% { background-position: 60px -70px; }
  75% { background-position: -30px -110px; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-vignette, .hero-grain { animation: none; }
}
/* 文字墊底暗紗：左上往右下淡出（讓標題壓在塔/雲上也讀得清、不糊到人物） */
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(15, 22, 38, 0.72) 0%, rgba(15, 22, 38, 0.42) 30%, transparent 55%);
  pointer-events: none;
}

/* 文字＝重點：垂直置中、尺寸做大；背景配合字（構圖端調整、不是字躲背景） */
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) clamp(20px, 5vw, 80px) 0;
  max-width: 800px;
  text-shadow: 0 2px 18px rgba(9, 13, 24, 0.9);
}
.hero-eyebrow {
  color: var(--moon-gold);
  letter-spacing: 0.32em;
  font-size: clamp(12px, 1.4vw, 15px);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(34px, 7vw, 86px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: var(--warm-white);
  white-space: nowrap;   /* 8 字標題折行會把整塊文字墊高、版面亂掉 */
}
.hero-title-colon { color: var(--gold-line); }
.hero-title-en {
  color: var(--moon-gold);
  letter-spacing: 0.28em;
  font-size: clamp(14px, 1.9vw, 21px);
  margin-top: 12px;
}
.hero-tagline {
  margin-top: 28px;
  font-size: clamp(20px, 2.9vw, 32px);
  font-weight: 600;
  color: var(--moon-gold);
  letter-spacing: 0.1em;
}
.hero-body {
  margin-top: 14px;
  max-width: 28em;
  font-size: clamp(15px, 1.9vw, 19px);
  color: rgba(244, 241, 232, 0.88);
}
.hero-cta { margin-top: 34px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 38px; font-size: 17px; }

.hero-scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 22px; height: 36px;
  border: 1px solid rgba(235, 217, 166, 0.5); border-radius: 12px;
}
.hero-scroll-hint span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 8px;
  margin-left: -1.5px; border-radius: 2px;
  background: var(--moon-gold);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* 窄比例（4:3 平板、直式手機…寬高比 ≤ 3:2）：左上角沒有足夠留白 →
   文字沉到底部、壓在底部暗紗上（人物臉在上半部、不被文字擋） */
@media (max-aspect-ratio: 3/2) {
  .hero-static-img { object-position: 58% 25%; }
  .hero-content { justify-content: flex-end; padding-bottom: 88px; padding-top: 0; max-width: 100%; }
  .hero-scrim {
    background: linear-gradient(to top, rgba(15, 22, 38, 0.88) 0%, rgba(15, 22, 38, 0.5) 34%, transparent 60%);
  }
}

/* 直式手機補充：取景以臉為中心（臉在圖寬 61~71% 帶） */
@media (max-width: 720px) {
  .hero { min-height: 100svh; }
  .hero-static-img { object-position: 70% 22%; }
  .hero-heroine { height: 48%; right: -6%; bottom: 4%; opacity: 0.92; }
  .hero-cta .btn { padding: 12px 22px; font-size: 15px; }
}

/* ---------- 區塊通用 ---------- */
.section { padding: clamp(72px, 11vw, 128px) clamp(20px, 6vw, 64px); position: relative; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-narrow { max-width: 720px; }
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--warm-white);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 64px; height: 1px;
  background: linear-gradient(to right, var(--gold-line), transparent);
}
.section-sub { color: rgba(244, 241, 232, 0.72); margin-top: -26px; margin-bottom: 40px; letter-spacing: 0.06em; }

/* 進場浮現 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-ghost, .hero-scroll-hint span { animation: none; }
}

/* ---------- ② Email 登記 ---------- */
.signup { padding: clamp(56px, 9vw, 96px) clamp(20px, 6vw, 64px); }
.signup-card {
  max-width: 640px; margin: 0 auto;
  border: 1px solid rgba(201, 166, 78, 0.5);
  outline: 1px solid rgba(201, 166, 78, 0.16);
  outline-offset: 5px;
  background: linear-gradient(170deg, var(--night), rgba(24, 34, 56, 0.55));
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
}
.signup-card h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: 0.16em; color: var(--moon-gold); margin-bottom: 12px; }
.signup-card > p { color: rgba(244, 241, 232, 0.85); font-size: 15.5px; }
.signup-form {
  margin-top: 26px;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.signup-form input[type="email"] {
  flex: 1 1 260px; max-width: 340px;
  padding: 12px 16px;
  font-family: inherit; font-size: 16px;
  color: var(--warm-white);
  background: rgba(15, 22, 38, 0.75);
  border: 1px solid var(--mist);
  outline: none;
  transition: border-color 200ms;
}
.signup-form input[type="email"]:focus { border-color: var(--moon-gold); }
.signup-note { margin-top: 16px; font-size: 12.5px; color: rgba(244, 241, 232, 0.55); letter-spacing: 0.08em; }
.signup-feedback { margin-top: 12px; font-size: 14.5px; color: var(--ghost-cyan); min-height: 1.6em; }

/* EmailOctopus 嵌入表單：覆蓋其預設 Bootstrap 外觀成夜藍金（EO 元素 class 固定：.emailoctopus-form / .form-control / .btn） */
.eo-embed { margin-top: 26px; }
.eo-embed .emailoctopus-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.eo-embed .emailoctopus-form-row { flex: 1 1 260px; max-width: 340px; }
.eo-embed .emailoctopus-form input[type="email"],
.eo-embed .emailoctopus-form .form-control {
  width: 100%;
  padding: 12px 16px !important;
  font-family: inherit !important; font-size: 16px !important;
  color: var(--warm-white) !important;
  background: rgba(15, 22, 38, 0.75) !important;
  background-color: rgba(15, 22, 38, 0.75) !important;
  border: 1px solid var(--mist) !important; border-radius: 0 !important;
  outline: none !important;
}
.eo-embed .emailoctopus-form input[type="email"]::placeholder,
.eo-embed .emailoctopus-form .form-control::placeholder { color: rgba(244, 241, 232, 0.5) !important; }
.eo-embed .emailoctopus-form input[type="email"]:focus,
.eo-embed .emailoctopus-form .form-control:focus {
  border-color: var(--moon-gold) !important; box-shadow: none !important;
}
.eo-embed .emailoctopus-form .btn,
.eo-embed .emailoctopus-form input[type="submit"],
.eo-embed .emailoctopus-form button[type="submit"] {
  width: auto !important;
  padding: 12px 32px !important; margin: 0 !important;
  border: 1px solid rgba(201, 166, 78, 0.65) !important; border-radius: 0 !important;
  background: linear-gradient(160deg, var(--vermilion), #7e2320) !important;
  color: var(--warm-white) !important; font-size: 16px !important; font-weight: 600 !important; letter-spacing: 0.14em !important;
  cursor: pointer; transition: background 220ms;
}
.eo-embed .emailoctopus-form .btn:hover,
.eo-embed .emailoctopus-form input[type="submit"]:hover,
.eo-embed .emailoctopus-form button[type="submit"]:hover {
  background: linear-gradient(160deg, #bf3d38, var(--vermilion));
}
/* EO 訊息（成功/錯誤）配色融入 */
.eo-embed .emailoctopus-success-message { color: var(--ghost-cyan); margin-top: 12px; }
.eo-embed .emailoctopus-error-message { color: var(--maple); margin-top: 12px; }
/* 「Powered by EmailOctopus」badge：留著（免費版必留）、縮小低調 */
.eo-embed .emailoctopus-form-footer,
.eo-embed a[href*="emailoctopus"] { font-size: 11px; opacity: 0.5; }

.recaptcha-notice {
  margin-top: 16px; font-size: 11.5px; color: rgba(244, 241, 232, 0.42);
  letter-spacing: 0.04em;
}
.recaptcha-notice a { color: rgba(235, 217, 166, 0.6); }
.recaptcha-notice a:hover { color: var(--moon-gold); }

/* ---------- ③ 概念 ---------- */
.about {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cg fill='none' stroke='%23C9A64E' stroke-opacity='0.07'%3E%3Cpath d='M0 60a30 30 0 0 1 60 0M60 60a30 30 0 0 1 60 0M-30 30a30 30 0 0 1 60 0M30 30a30 30 0 0 1 60 0M90 30a30 30 0 0 1 60 0M0 60a18 18 0 0 1 36 0M12 60a6 6 0 0 1 12 0M60 60a18 18 0 0 1 36 0M72 60a6 6 0 0 1 12 0M-18 30a18 18 0 0 1 36 0M-6 30a6 6 0 0 1 12 0M42 30a18 18 0 0 1 36 0M54 30a6 6 0 0 1 12 0M102 30a18 18 0 0 1 36 0M114 30a6 6 0 0 1 12 0'/%3E%3C/g%3E%3C/svg%3E")
    var(--night-deep);
}
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 4vw, 48px); }
.about-item h3 {
  font-size: 20px; letter-spacing: 0.1em; color: var(--moon-gold);
  margin-bottom: 12px; font-weight: 600;
}
.about-item p { color: rgba(244, 241, 232, 0.85); font-size: 15.5px; }

/* ---------- ⑤ 畫面（遊戲錄影） ---------- */
.video-slot {
  position: relative;
  max-width: 960px; margin: 0 auto;
  border: 1px solid rgba(74, 94, 126, 0.45);
  background: var(--night);
}
.video-slot img, .gameplay-video { width: 100%; height: auto; display: block; }
.video-slot-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(10, 15, 28, 0.45);
}
.video-slot-play {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--moon-gold);
  color: var(--moon-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; padding-left: 6px;
  background: rgba(15, 22, 38, 0.65);
}
.video-slot-label {
  color: var(--moon-gold); letter-spacing: 0.2em; font-size: 15px;
  text-shadow: 0 2px 10px rgba(9, 13, 24, 0.9);
}

/* ---------- ⑧ 進度（開場白＝開發者介紹） ---------- */
.progress-lead { margin: -26px 0 40px; max-width: 640px; }
.progress-lead p { margin: 0 0 8px; font-size: 16px; color: rgba(244, 241, 232, 0.8); }
.progress-lead strong { color: var(--moon-gold); font-weight: 700; }

.roadmap {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 18px 0;
  margin: 12px 0 28px;
}
.roadmap li {
  position: relative;
  flex: 1 1 140px;
  padding: 26px 12px 0 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 232, 0.62);
}
.roadmap li::before {
  content: "";
  position: absolute; top: 7px; left: 0; right: 0;
  height: 1px; background: rgba(74, 94, 126, 0.6);
}
.roadmap-dot {
  position: absolute; top: 0; left: 0;
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--mist);
  background: var(--night-deep);
}
.roadmap li.done { color: rgba(244, 241, 232, 0.85); }
.roadmap li.done .roadmap-dot { background: var(--gold-line); border-color: var(--gold-line); }
.roadmap li.now { color: var(--moon-gold); font-weight: 600; }
.roadmap li.now .roadmap-dot {
  border-color: var(--moon-gold);
  box-shadow: 0 0 12px rgba(235, 217, 166, 0.6);
  background: var(--vermilion);
}
.roadmap li.now em { font-style: normal; font-size: 12px; display: block; opacity: 0.8; }
.progress-devlog { color: rgba(244, 241, 232, 0.75); font-size: 15px; }

/* ---------- 社群 icon 列 ---------- */
.social-links { display: flex; align-items: center; gap: 14px; }
.social-lead { color: rgba(244, 241, 232, 0.75); font-size: 15px; letter-spacing: 0.1em; margin-right: 6px; }
.social-icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(201, 166, 78, 0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--moon-gold);
  transition: background 200ms, color 200ms, border-color 200ms;
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { background: var(--gold-line); color: var(--night-deep); border-color: var(--gold-line); }
.social-links-compact { display: inline-flex; gap: 10px; vertical-align: middle; }
.social-links-compact .social-icon { width: 34px; height: 34px; }
.social-links-compact .social-icon svg { width: 15px; height: 15px; }

/* ---------- ⑩ FAQ ---------- */
.faq-list details {
  border-bottom: 1px solid rgba(74, 94, 126, 0.45);
}
.faq-list summary {
  cursor: pointer;
  padding: 20px 36px 20px 4px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--warm-white);
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "＋";
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--gold-line); font-weight: 400;
  transition: transform 200ms;
}
.faq-list details[open] summary::after { content: "－"; }
.faq-list details p {
  padding: 0 4px 22px;
  color: rgba(244, 241, 232, 0.8);
  font-size: 15.5px;
}

/* ---------- ⑪ Fact sheet ---------- */
.factsheet { background: var(--night); }
.factsheet-list div {
  display: flex; gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 94, 126, 0.35);
  font-size: 15px;
}
.factsheet-list dt { flex: 0 0 108px; color: var(--moon-gold); letter-spacing: 0.1em; }
.factsheet-list dd { color: rgba(244, 241, 232, 0.85); }

/* ---------- ⑫ Footer ---------- */
.site-footer {
  padding: clamp(64px, 10vw, 110px) clamp(20px, 6vw, 64px) 40px;
  background: linear-gradient(to bottom, var(--night-deep), #0a0f1c);
  text-align: center;
}
.footer-cta h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: 0.18em;
  color: var(--warm-white);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-cta-sub { color: rgba(244, 241, 232, 0.72); font-size: 15px; margin-bottom: 28px; }
.footer-cta-btn { padding: 13px 44px; font-size: 16px; }
.footer-meta { margin-top: 64px; }
.footer-name {
  font-size: 17px; letter-spacing: 0.2em; color: var(--moon-gold);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.footer-name span { font-size: 12px; letter-spacing: 0.3em; opacity: 0.75; }
.footer-links { margin-top: 22px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.footer-social { justify-content: center; margin-top: 18px; display: flex; }
.footer-links a { font-size: 14px; color: rgba(244, 241, 232, 0.7); letter-spacing: 0.1em; }
.footer-links a:hover { color: var(--moon-gold); }
.footer-fine { margin-top: 28px; font-size: 12px; color: rgba(244, 241, 232, 0.4); letter-spacing: 0.06em; }

/* ---------- 背景音樂喇叭鈕（固定左下、避開右下 reCAPTCHA 徽章） ---------- */
.bgm-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(201, 166, 78, 0.5);
  background: rgba(15, 22, 38, 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--moon-gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms, color 200ms, box-shadow 200ms;
}
.bgm-toggle:hover { background: var(--gold-line); color: var(--night-deep); }
.bgm-toggle:focus-visible { outline: 2px solid var(--moon-gold); outline-offset: 3px; }
.bgm-ic { width: 22px; height: 22px; }
.bgm-wave { opacity: 0; transition: opacity 220ms; }
.bgm-mute { opacity: 1; transition: opacity 220ms; }
.bgm-toggle.playing { box-shadow: 0 0 16px rgba(235, 217, 166, 0.4); }
.bgm-toggle.playing .bgm-wave { opacity: 1; }
.bgm-toggle.playing .bgm-mute { opacity: 0; }
@media (max-width: 560px){ .bgm-toggle { width: 42px; height: 42px; left: 14px; bottom: 14px; } }

/* ---------- 入場門 ---------- */
.entry-gate {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  /* 夜幕：壓暗到 hero 影片只隱約透出、文字清楚（Hannah 要更不透明） */
  background:
    radial-gradient(ellipse 110% 100% at 50% 44%, rgba(13,19,33,0.86), rgba(12,17,30,0.93) 60%, rgba(9,13,24,0.98) 100%);
  opacity: 1; transition: opacity 850ms ease;
}
.entry-gate.entering { opacity: 0; pointer-events: none; }
.entry-gate.gone { display: none; }
.entry-vignette {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 200px 40px rgba(9,13,24,0.7);
}
.entry-grain {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/grain.png"); opacity: 0.18; mix-blend-mode: overlay;
  animation: grain-jitter 1.1s steps(4) infinite;
}
.entry-content { position: relative; z-index: 1; text-shadow: 0 2px 20px rgba(9,13,24,0.9); }
.entry-eyebrow { color: var(--moon-gold); letter-spacing: 0.34em; font-size: clamp(12px, 1.5vw, 15px); margin-bottom: 22px; }
.entry-title {
  font-size: clamp(40px, 8vw, 88px); font-weight: 900; letter-spacing: 0.1em;
  color: var(--warm-white); line-height: 1.12; white-space: nowrap;
}
.entry-colon { color: var(--gold-line); }
.entry-en { color: var(--moon-gold); letter-spacing: 0.28em; font-size: clamp(13px, 1.8vw, 20px); font-style: italic; margin-top: 12px; }
.entry-btn { margin-top: 40px; padding: 15px 60px; font-size: 18px; letter-spacing: 0.3em; }
.entry-sound { margin-top: 22px; color: rgba(235,217,166,0.7); letter-spacing: 0.24em; font-size: 12.5px; }
.entry-sound .latin { letter-spacing: 0.3em; }
.entry-mute {
  display: inline; margin: 0; padding: 0; background: none; border: none; cursor: pointer;
  color: rgba(235,217,166,0.85); font-family: inherit; font-size: inherit; letter-spacing: 0.16em;
  text-decoration: underline; text-underline-offset: 3px; transition: color 200ms;
}
.entry-mute:hover { color: var(--warm-white); }
@media (prefers-reduced-motion: reduce){ .entry-grain { animation: none; } }
