/* 織女星 VEGA — 天琴座星圖
   版面規則沿用 材料/DESIGN.md：襯線大標題、方角、hairline、無陰影
   配色取自 logo：深藍星空＋金色。一條金線貫穿全頁＝「織」 */

:root {
  --void: #070d22;
  --navy: #0b1430;
  --navy-2: #16214a;
  --gold: #c9a35c;
  --gold-soft: #e6d3a3;
  --gold-ink: #8a6a2c; /* 淺色底上面嘅金色細字（對比度 ≥ 4.5:1） */
  --ink: #0b1430;
  --ink-soft: #2a3150;
  --body: #5f6478;
  --hairline: #e4e0d6;
  --canvas: #fbfaf6;
  --canvas-soft: #f3efe5;
  --on-dark: #f4efe3;
  --on-dark-muted: #a9b0c8;

  --serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  --sans: "PingFang TC", "Heiti TC", "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif; /* 系統字型，唔使下載 */
  --latin: "Cormorant Garamond", "Times New Roman", serif;

  --gutter: 16px;
  --thread-x: 22px;
  --max: 1240px;
  --head-h: 57px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --thread-x: 48px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons（方角） ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 24px; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: var(--void); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ink { background: var(--navy); color: var(--on-dark); }
.btn-ink:hover { background: var(--navy-2); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-dark); }
.btn-line-light { background: transparent; color: var(--gold-soft); border-color: var(--gold); }
.btn-line-light:hover { background: rgba(201,163,92,.14); }

/* ---------- Promo ---------- */
.promo { background: var(--gold); color: var(--void); display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; padding: 7px var(--gutter); font-size: 13px; letter-spacing: .04em; text-align: center; }
.promo strong { margin-left: 4px; }
.promo-sep { font-size: 10px; align-self: center; }
@media (max-width: 480px) { .promo { flex-wrap: nowrap; gap: 8px; padding: 6px 10px; font-size: 12px; letter-spacing: 0; white-space: nowrap; } .promo-long { display: none; } }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 30; height: var(--head-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); background: rgba(7,13,34,.92); color: var(--on-dark); border-bottom: 1px solid rgba(201,163,92,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand img { width: 26px; height: auto; }
.brand-word { font-family: var(--latin); font-size: 24px; font-weight: 600; letter-spacing: .2em; }
.brand-zh { font-family: var(--serif); font-size: 12px; letter-spacing: .3em; color: var(--on-dark-muted); }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .12em; color: var(--on-dark-muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--on-dark); border-bottom-color: var(--gold); }
.nav-toggle { display: none; }
@media (max-width: 640px) {
  .masthead { gap: 10px; }
  .brand-zh { display: none; }
  .match-open { min-height: 40px; padding: 6px 12px; font-size: 13px; letter-spacing: .06em; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; flex: none; background: none; border: 1px solid rgba(201,163,92,.35); cursor: pointer; padding: 0; }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--gold-soft); transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(7,13,34,.98); border-bottom: 1px solid rgba(201,163,92,.35); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a { padding: 15px var(--gutter); font-size: 16px; color: var(--on-dark); border-bottom: 0; border-top: 1px solid rgba(255,255,255,.07); }
}
.match-open { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; background: transparent; color: var(--gold-soft); border: 1px solid var(--gold); border-radius: 0; cursor: pointer; font-weight: 700; font-size: 14px; letter-spacing: .1em; transition: background .2s, color .2s; }
.match-open span { color: var(--gold); animation: twinkle 2.4s ease-in-out infinite; }
.match-open:hover { background: var(--gold); color: var(--void); }
.match-open:hover span { color: var(--void); }

/* ---------- 首頁星圖 ---------- */
.sky { position: relative; overflow: hidden; color: var(--on-dark); background: radial-gradient(ellipse 70% 55% at 62% 40%, rgba(70,90,170,.28), transparent 70%), radial-gradient(ellipse 120% 30% at 30% 95%, rgba(120,110,180,.18), transparent 70%), linear-gradient(180deg, var(--void), var(--navy) 70%, #0e1838); }
.sky-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 72px; display: grid; gap: 20px; grid-template-columns: clamp(120px, 24vw, 230px) minmax(0, 1fr); grid-template-areas: "copy lyra" "card card"; }
.sky-copy { grid-area: copy; min-width: 0; justify-content: center; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 12px; }
.sky-h1 { margin: 0; font-weight: 400; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 12px; }
.sky-title { display: block; writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(30px, 7.5vw, 64px); line-height: 1.35; letter-spacing: .22em; color: var(--on-dark); }
.t-comma { display: none; }
.sky-sub { display: block; font-family: var(--sans); writing-mode: vertical-rl; font-size: 12px; letter-spacing: .4em; color: var(--gold); padding-top: 6px; }

.lyra { grid-area: lyra; position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 160px); justify-self: center; }
.lyra-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lyra-lines line { stroke: var(--gold); stroke-width: 1; opacity: .7; transition: stroke .6s cubic-bezier(.45,0,.25,1), opacity .6s cubic-bezier(.45,0,.25,1), stroke-width .6s cubic-bezier(.45,0,.25,1), filter .6s; stroke-dasharray: 1; stroke-dashoffset: 1; animation: weave 1.1s cubic-bezier(.6,0,.2,1) forwards; }
.lyra-lines line.is-lit { stroke: var(--gold-soft); opacity: 1; stroke-width: 1.6; }
.lyra-stars { position: absolute; inset: 0; }
.star { --pad: 10px; position: absolute; transform: translate(calc(-1 * (var(--pad) + var(--s) / 2)), -50%); display: flex; align-items: center; gap: 10px; padding: var(--pad); background: none; border: 0; cursor: pointer; color: var(--on-dark); text-align: left; opacity: 0; animation: appear .6s ease forwards; }
.star.label-left { flex-direction: row-reverse; text-align: right; transform: translate(calc(-100% + var(--pad) + var(--s) / 2), -50%); }
.star.label-below { flex-direction: column; gap: 4px; text-align: center; transform: translate(-50%, calc(-1 * (var(--pad) + var(--s) / 2))); }
.star.label-below .star-label { align-items: center; }
.star-dot { position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, var(--gold-soft) 55%, rgba(201,163,92,0) 72%); box-shadow: 0 0 calc(var(--s) * 1.2) rgba(230,211,163,.55); animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
.star-dot::after { content: ""; position: absolute; inset: -9px; border: 1px solid var(--gold); border-radius: 50%; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; }
.star:hover .star-dot::after, .star.is-active .star-dot::after { opacity: 1; transform: scale(1); }
.star-label { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.star-name { font-family: var(--serif); font-size: 16px; letter-spacing: .1em; transition: color .5s ease; }
.star-latin { font-family: var(--latin); font-style: italic; font-size: 13px; color: var(--on-dark-muted); letter-spacing: .04em; }
.star.is-active .star-name { color: var(--gold-soft); }
.lyra-caption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--on-dark-muted); }
.lyra-caption em { font-family: var(--latin); font-size: 18px; color: var(--gold-soft); letter-spacing: .16em; }
.lyra-hint { display: inline-block; margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(201,163,92,.4); color: var(--gold); }

.star-card { grid-area: card; margin-top: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid rgba(201,163,92,.45); background: rgba(7,13,34,.55); }
.sc-media { position: relative; width: 120px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--navy-2); }
.sc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s cubic-bezier(.45,0,.25,1), transform 1.6s cubic-bezier(.22,.61,.36,1); }
.sc-img.is-in { opacity: 1; transform: none; }
.sc-progress { grid-column: 1 / -1; height: 2px; background: rgba(201,163,92,.18); overflow: hidden; opacity: 0; transition: opacity .5s; }
.sc-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform-origin: left; transform: scaleX(0); }
.star-card.is-auto .sc-progress { opacity: 1; }
.sc-star { font-family: var(--latin); font-style: italic; font-size: 14px; color: var(--gold); letter-spacing: .06em; }
.sc-name { font-family: var(--serif); font-size: 26px; margin: 2px 0 4px; }
.sc-name span { font-family: var(--latin); font-size: 14px; letter-spacing: .2em; color: var(--on-dark-muted); margin-left: 8px; }
.sc-body { min-height: 150px; }
.sc-spec { font-size: 13px; color: var(--on-dark-muted); line-height: 1.55; min-height: calc(1.55em * 3); }
.sc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.sc-price { font-family: var(--latin); font-size: 24px; font-weight: 600; color: var(--gold-soft); }
.sc-price.is-ask { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--on-dark-muted); }
.sc-foot .btn { min-height: 42px; padding: 8px 16px; font-size: 14px; }

.sky-down { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .4em; color: var(--on-dark-muted); text-decoration: none; }
.sky-down::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--gold), transparent); animation: drip 2s ease-in-out infinite; }

@media (min-width: 1024px) {
  .sky-inner { grid-template-columns: 230px minmax(0, 1fr) 320px; grid-template-areas: "copy lyra card"; align-items: center; min-height: calc(100svh - var(--head-h) - 31px); padding-top: 40px; padding-bottom: 80px; }
  .lyra { max-width: 620px; }
  .star-card { margin-top: 0; grid-template-columns: 1fr; padding: 0 0 18px; }
  .sc-media { width: 100%; aspect-ratio: 4 / 5; }
  .sc-body { padding: 0 18px; }
  .sc-progress { margin: 0 18px; }
}
@media (max-width: 480px) {
  .sky-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "lyra" "card"; gap: 4px; padding-top: 16px; padding-bottom: 56px; }
  .lyra { aspect-ratio: 1 / 0.86; max-height: 46svh; }
  .sky-copy, .sky-h1 { flex-direction: column; gap: 6px; }
  .sky-h1 .sky-sub { order: 2; }
  .sky-title, .sky-sub { writing-mode: horizontal-tb; }
  .sky-title { font-size: 26px; letter-spacing: .1em; }
  .sky-title br { display: none; }
  .t-comma { display: inline; }
  .sky-sub { letter-spacing: .24em; padding-top: 0; }
  .star { --pad: 8px; gap: 6px; }
  .star-name { font-size: 14px; }
  .star-latin { font-size: 11px; }
  .lyra-caption { bottom: -26px; font-size: 11px; letter-spacing: .12em; }
  .lyra-caption em { font-size: 15px; }
  .star-card { margin-top: 34px; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px; }
  .sc-name { font-size: 22px; }
  .sc-spec { font-size: 12px; min-height: calc(1.55em * 2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sc-foot { margin-top: 8px; }
  .sc-media { width: 92px; }
}

/* ---------- 金線 ---------- */
.woven { position: relative; }
.thread { position: absolute; top: 0; bottom: 0; left: var(--thread-x); width: 1px; background: rgba(201,163,92,.22); z-index: 1; pointer-events: none; }
.thread-fill { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }

.chapter { position: relative; padding: 72px var(--gutter) 72px calc(var(--thread-x) + 28px); max-width: calc(var(--max) + var(--thread-x)); margin: 0 auto; }
@media (min-width: 768px) { .chapter { padding: 104px var(--gutter) 104px calc(var(--thread-x) + 56px); } }
.chapter-dark { max-width: none; background: var(--navy); color: var(--on-dark); }
.chapter-dark .chapter-head, .chapter-dark .tale { max-width: var(--max); }
.chapter-head { position: relative; margin-bottom: 40px; max-width: 760px; }
.knot { position: absolute; left: -28px; top: 2px; transform: translateX(-50%); width: 22px; height: 22px; display: grid; place-items: center; background: var(--canvas); color: var(--gold); font-size: 14px; z-index: 2; }
@media (min-width: 768px) { .knot { left: -56px; } }
.chapter-dark .knot { background: var(--navy); }
.chapter-no { font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--gold-ink); letter-spacing: .08em; margin-bottom: 6px; }
.chapter-title { font-family: var(--serif); font-size: clamp(28px, 4.6vw, 48px); line-height: 1.25; letter-spacing: .04em; }
.chapter-lead { margin-top: 12px; color: var(--body); font-family: var(--serif); font-size: 17px; }
.chapter-dark .chapter-lead { color: var(--on-dark-muted); }
.chapter-dark .chapter-no { color: var(--gold); }
.fine { margin-top: 32px; font-size: 13px; color: var(--body); }

/* ---------- 系列（編號雜誌頁） ---------- */
.series { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.piece { display: grid; gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--hairline); }
.piece-img { position: relative; overflow: hidden; background: var(--canvas-soft); aspect-ratio: 4 / 5; }
.piece-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.piece:hover .piece-img img { transform: scale(1.04); }
.piece-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: var(--void); color: var(--gold-soft); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.piece-no { font-family: var(--latin); font-style: italic; font-size: 64px; line-height: .9; color: var(--gold-ink); }
.piece-star { font-family: var(--latin); font-style: italic; font-size: 15px; color: var(--body); margin-top: 10px; letter-spacing: .04em; }
.piece-star::before { content: "✦ "; font-style: normal; color: var(--gold-ink); font-size: 11px; }
.piece-name { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); line-height: 1.15; margin-top: 4px; }
.piece-en { display: block; font-family: var(--latin); font-size: 15px; letter-spacing: .32em; color: var(--body); margin-top: 6px; }
.piece-spec { color: var(--ink-soft); margin-top: 16px; max-width: 34em; }
.piece-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.piece-price { font-family: var(--latin); font-size: 30px; font-weight: 600; letter-spacing: .02em; }
.piece-price.is-ask { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--body); }
@media (min-width: 768px) {
  .piece { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; }
  .piece:nth-child(even) .piece-img { order: 2; }
  .piece-img { aspect-ratio: 1 / 1; }
}
@media (min-width: 1024px) {
  .piece { grid-template-columns: 1.15fr 1fr; }
  .piece:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
}

/* ---------- 日常（不對稱拼版） ---------- */
.spread { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.spread figure { margin: 0; }
.spread img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; }
.spread-a { grid-column: 1 / -1; }
.spread-a img { aspect-ratio: 16 / 9; }
.spread figcaption { margin-top: 8px; font-size: 13px; color: var(--body); letter-spacing: .08em; }
.spread figcaption span { font-family: var(--latin); font-style: italic; color: var(--gold-ink); margin-right: 8px; font-size: 15px; }
.spread-quote { grid-column: 1 / -1; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.6; letter-spacing: .12em; padding: 16px 0; }
@media (min-width: 900px) {
  .spread { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
  .spread-a { grid-column: 1 / 9; }
  .spread-quote { grid-column: 9 / 13; grid-row: 1; writing-mode: vertical-rl; align-self: center; justify-self: center; padding: 0; }
  .spread-b { grid-column: 2 / 6; }
  .spread-c { grid-column: 7 / 11; margin-top: 72px; }
}

/* ---------- 織女故事 ---------- */
.tale { display: grid; gap: 32px; grid-template-columns: 1fr; }
.tale-vertical { display: none; }
.tale-body p { font-family: var(--serif); font-size: 18px; line-height: 2.1; color: var(--on-dark-muted); max-width: 34em; margin-bottom: 18px; }
.tale-body p.tale-sign { color: var(--gold-soft); font-size: 22px; margin-top: 28px; }
.tale-sign span { display: block; font-size: 15px; color: var(--on-dark-muted); }
@media (min-width: 768px) {
  .tale { grid-template-columns: auto 1fr; gap: 64px; }
  .tale-vertical { display: block; writing-mode: vertical-rl; font-family: var(--serif); font-size: 72px; letter-spacing: .3em; color: transparent; -webkit-text-stroke: 1px var(--gold); line-height: 1; }
}

/* ---------- 怎麼買 ---------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 768px) { .how li { border-bottom: 0; border-right: 1px solid var(--hairline); padding: 24px 24px 8px; } .how li:first-child { padding-left: 0; } .how li:last-child { border-right: 0; } }
.how-no { font-family: var(--latin); font-style: italic; font-size: 36px; color: var(--gold-ink); line-height: 1; }
.how h3 { font-family: var(--serif); font-size: 21px; margin: 10px 0 6px; }
.how p { color: var(--body); font-size: 15px; }
.warn, .booth-note { margin-top: 28px; padding: 14px 16px; border: 1px solid var(--ink); font-size: 14px; max-width: 760px; }
.warn strong, .booth-note strong { margin-right: 12px; letter-spacing: .1em; }
.booth-note { border-color: var(--gold); background: var(--canvas-soft); }
.how-cta { margin-top: 24px; }

/* ---------- 問與答：對話泡泡 ---------- */
.chat { max-width: 720px; border: 1px solid var(--ink); background: var(--canvas); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--void); color: var(--on-dark); }
.chat-head img { width: 28px; height: auto; }
.chat-name { font-family: var(--serif); font-size: 16px; letter-spacing: .08em; }
.chat-status { font-size: 12px; color: var(--on-dark-muted); }
.chat-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; height: 380px; overflow-y: auto; padding: 20px 16px; background: radial-gradient(rgba(201,163,92,.18) .7px, transparent .9px) 0 0 / 22px 22px, var(--canvas-soft); scroll-behavior: smooth; }
.bubble { max-width: 82%; padding: 10px 14px; font-size: 15px; line-height: 1.7; animation: bubbleIn .3s ease; }
.bubble-vega { align-self: flex-start; background: var(--canvas); border: 1px solid var(--hairline); border-left: 2px solid var(--gold); }
.bubble-you { align-self: flex-end; background: var(--navy); color: var(--on-dark); }
.bubble a { color: inherit; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--hairline); }
.qchip { min-height: 40px; padding: 8px 14px; background: var(--canvas); border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; font-size: 14px; transition: background .15s, color .15s, opacity .15s; }
.qchip:hover { background: var(--ink); color: var(--on-dark); }
.qchip.is-asked { opacity: .45; border-style: dashed; }
.qchip-ig { border-color: var(--gold); background: var(--gold); color: var(--void); text-decoration: none; display: inline-flex; align-items: center; font-weight: 700; }
.qchip-ig:hover { background: var(--gold-soft); color: var(--void); }
@media (min-width: 1024px) {
  #faq { display: grid; grid-template-columns: minmax(0, 1fr) 680px; gap: 64px; align-items: start; }
  #faq .chapter-head { position: sticky; top: calc(var(--head-h) + 48px); }
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Footer ---------- */
.footer { background: var(--void); color: var(--on-dark); padding: 56px var(--gutter) 28px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand img { width: 52px; height: auto; margin-bottom: 10px; }
.footer-word { font-family: var(--latin); font-size: 28px; letter-spacing: .22em; font-weight: 600; }
.footer-word span { font-family: var(--serif); font-size: 14px; letter-spacing: .3em; color: var(--on-dark-muted); margin-left: 6px; }
.footer-tag { color: var(--gold-soft); font-family: var(--serif); margin-top: 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--on-dark-muted); }
.footer-links a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(201,163,92,.5); }
.footer-links a:hover { border-bottom-color: var(--gold); }
.footer-fine { max-width: var(--max); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: var(--on-dark-muted); line-height: 1.8; }

/* ---------- 星座配色（全屏 dialog） ---------- */
.match { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--canvas-soft); color: var(--ink); }
.match[open] { display: flex; flex-direction: column; animation: dialogIn .35s ease; }
.match::backdrop { background: rgba(7,13,34,.8); }
.match-bar { display: flex; align-items: center; gap: 16px; padding: 10px var(--gutter); background: var(--void); color: var(--on-dark); }
.match-brand { font-family: var(--serif); font-size: 17px; letter-spacing: .1em; white-space: nowrap; }
.match-brand span[aria-hidden] { color: var(--gold); }
.match-close { margin-left: auto; width: 44px; height: 44px; flex: none; background: none; border: 1px solid rgba(201,163,92,.5); color: var(--gold-soft); cursor: pointer; font-size: 16px; }
.match-close:hover { background: rgba(201,163,92,.15); }
.match-body { flex: 1; overflow-y: auto; padding: 24px var(--gutter); }
.match-body > .match-panel { max-width: 1100px; margin: 0 auto; }
.match-foot { display: flex; justify-content: flex-end; padding: 12px var(--gutter); border-top: 1px solid var(--hairline); background: var(--canvas); }
.match-foot .btn { min-height: 52px; padding: 12px 28px; font-size: 16px; }

.stepper { list-style: none; display: flex; margin: 0 0 0 auto; padding: 0; gap: 4px; }
.stepper li { display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 13px; color: var(--on-dark-muted); white-space: nowrap; }
.stepper li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.stepper li.is-active { color: var(--gold-soft); font-weight: 700; }
.stepper li.is-active span { background: var(--gold); border-color: var(--gold); color: var(--void); }
.stepper li.is-done { color: var(--on-dark); }
@media (max-width: 560px) { .match-brand { display: none; } .stepper { margin-left: 0; } }

.match-panel { background: var(--canvas); border: 1px solid var(--hairline); padding: 24px; }
@media (max-width: 480px) { .match-panel { padding: 16px; } .match-body { padding: 16px var(--gutter); } .wheel-panel { padding: 16px 2px; border-width: 1px 0; } .match-body { padding-left: 8px; padding-right: 8px; } }
.panel-title { font-family: var(--serif); font-size: 24px; margin-bottom: 20px; }
.back-link { background: none; border: 0; padding: 4px 0; margin-bottom: 12px; color: var(--body); cursor: pointer; font-size: 14px; }
.back-link:hover { color: var(--ink); }

/* 星盤 */
.wheel-panel { text-align: center; }
.wheel-panel .panel-title span { display: block; font-family: var(--sans); font-size: 13px; color: var(--body); letter-spacing: .14em; margin-top: 6px; }
.wheel { container-type: inline-size; position: relative; width: min(100%, 560px, calc(100dvh - 260px)); min-width: 280px; aspect-ratio: 1; margin: 0 auto; }
.wheel-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sector { cursor: pointer; outline: none; }
.sector path.cell { fill: var(--canvas); stroke: var(--hairline); stroke-width: .4; transition: fill .2s; }
.sector path.el { fill: var(--el); opacity: .75; }
.sector .glyph { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", serif; font-size: 11px; fill: var(--gold); }
.sector .sname { font-family: var(--serif); font-size: 7.4px; fill: var(--ink); font-weight: 600; letter-spacing: .3px; }
.sector:hover path.cell, .sector:focus-visible path.cell { fill: var(--canvas-soft); }
.sector:focus-visible path.cell { stroke: var(--gold); stroke-width: 1; }
.sector.is-on path.cell { fill: var(--navy); }
.sector.is-on .sname { fill: var(--on-dark); }
.sector.is-on .glyph { fill: var(--gold-soft); }
.wheel-ring { fill: none; stroke: var(--gold); stroke-width: .6; }
.wheel-tick { stroke: var(--gold); stroke-width: .5; opacity: .6; }
.wheel-core { position: absolute; left: 50%; top: 50%; width: 58%; height: 58%; overflow: hidden; transform: translate(-50%, -50%); border-radius: 50%; background: var(--void); color: var(--on-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6cqw 5cqw; text-align: center; box-shadow: inset 0 0 0 1px rgba(201,163,92,.5), inset 0 0 40px rgba(70,90,170,.35); }
.core-idle { font-family: var(--serif); font-size: clamp(12px, 3.6cqw, 19px); color: var(--on-dark-muted); letter-spacing: .16em; line-height: 1.9; }
.core-idle b { display: block; font-family: var(--latin); font-size: 7cqw; color: var(--gold); font-weight: 500; }
.core-sign { font-family: var(--serif); font-size: clamp(15px, 5.6cqw, 30px); letter-spacing: .1em; }
.core-meta { font-size: clamp(9px, 2.5cqw, 13px); color: var(--gold); letter-spacing: .1em; margin: .4cqw 0 2cqw; }
.core-ask { font-size: clamp(9px, 2.4cqw, 13px); color: var(--on-dark-muted); letter-spacing: .1em; margin-bottom: 1.4cqw; }
.core-wishes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqw; width: 100%; }
.core-wish { display: flex; flex-direction: column; align-items: center; gap: .8cqw; padding: 1.4cqw .6cqw; min-height: max(40px, 10.5cqw); justify-content: center; background: rgba(255,255,255,.04); border: 1px solid rgba(201,163,92,.45); color: var(--on-dark); cursor: pointer; border-radius: 0; font-size: clamp(11px, 2.9cqw, 16px); letter-spacing: .04em; line-height: 1.2; transition: background .15s, border-color .15s; animation: bubbleIn .3s ease backwards; }
.core-wish:hover, .core-wish:focus-visible { background: rgba(201,163,92,.18); border-color: var(--gold); }
.core-wish .sw { width: 3cqw; height: 3cqw; min-width: 10px; min-height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); }
.core-wish:nth-child(2) { animation-delay: .05s; } .core-wish:nth-child(3) { animation-delay: .1s; } .core-wish:nth-child(4) { animation-delay: .15s; }

.result { display: grid; gap: 28px; }
@media (min-width: 900px) { .result { grid-template-columns: 340px 1fr; align-items: start; } }
.result-visual { margin: 0; background: var(--navy); padding: 24px; display: grid; place-items: center; }
.result-visual svg { width: 100%; max-width: 290px; height: auto; }
.result-visual figcaption { color: var(--on-dark-muted); font-size: 12px; margin-top: 10px; text-align: center; }
.result-head .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; margin-bottom: 6px; }
.result-title { font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); line-height: 1.3; }
.result-trait { color: var(--body); margin-top: 6px; font-size: 15px; }
.result-main { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.swatch-lg { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); box-shadow: inset -8px -10px 18px rgba(0,0,0,.18), inset 8px 8px 14px rgba(255,255,255,.45); }
.color-name { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.color-meaning { color: var(--ink-soft); }
.result-rows { margin: 0; }
.result-row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.result-row dt { font-size: 13px; font-weight: 700; color: var(--body); letter-spacing: .06em; padding-top: 2px; }
.result-row dd { margin: 0; }
.result-row small { display: block; color: var(--body); font-size: 12px; margin-top: 2px; }
.accent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--hairline); background: var(--canvas); cursor: pointer; border-radius: 0; font-size: 14px; }
.chip .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--canvas-soft); font-weight: 700; }
.disclaimer { margin-top: 16px; font-size: 12px; color: var(--body); line-height: 1.7; }
.talk-tip { display: none; margin-top: 16px; padding: 12px 14px; background: var(--canvas-soft); border-left: 3px solid var(--gold); font-size: 14px; }

/* ---------- 攤位模式（?booth）：星座配色常開，不能關 ---------- */
body.booth .match-close { display: none; }
body.booth .talk-tip { display: block; }
body.booth .wheel { width: min(100%, 680px, calc(100dvh - 230px)); }

/* ---------- Motion ---------- */
@keyframes weave { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- 靜態問與答（JavaScript 未載入時） ---------- */
.faq-static { margin: 0; }
.faq-static dt { font-family: var(--serif); font-weight: 600; margin-top: 14px; }
.faq-static dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- 頁尾星座連結 ---------- */
.footer-zodiac { flex-basis: 100%; }
.footer-head { font-size: 13px; letter-spacing: .14em; color: var(--gold-soft); margin-bottom: 10px; }
.footer-head a { text-decoration: none; }
.zlinks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px 16px; }
.zlinks a { display: inline-flex; gap: 6px; align-items: center; min-height: 32px; font-size: 14px; color: var(--on-dark-muted); text-decoration: none; }
.zlinks a span { color: var(--gold); }
.zlinks a:hover, .zlinks a[aria-current] { color: var(--on-dark); }

/* ---------- 子頁（12 星座） ---------- */
.subpage .match-open { text-decoration: none; }
.crumbs { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); font-size: 13px; color: var(--body); }
.crumbs a { color: var(--ink-soft); }
.subpage main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 72px; }
.z-hero { position: relative; overflow: hidden; padding: 56px 24px 48px; text-align: center; color: var(--on-dark); background: radial-gradient(ellipse 60% 60% at 50% 30%, rgba(70,90,170,.35), transparent 70%), var(--navy); border-bottom: 3px solid var(--el, var(--gold)); }
.z-glyph { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", serif; font-size: 64px; line-height: 1; color: var(--gold); }
.z-eyebrow { margin-top: 14px; font-size: 13px; letter-spacing: .24em; color: var(--gold-soft); }
.z-title { font-family: var(--serif); font-size: clamp(32px, 6vw, 56px); letter-spacing: .08em; margin-top: 8px; }
.z-lead { max-width: 38em; margin: 18px auto 0; font-family: var(--serif); font-size: 17px; line-height: 1.95; color: var(--on-dark-muted); }
.z-section { padding-top: 56px; }
.z-h2 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 34px); letter-spacing: .04em; margin-bottom: 22px; }
.z-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 640px) { .z-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .z-cards { grid-template-columns: repeat(4, 1fr); } }
.z-card { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px) { .z-card { padding-left: 20px; border-left: 1px solid var(--hairline); } .z-card:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (min-width: 1024px) { .z-card:nth-child(odd) { border-left: 1px solid var(--hairline); padding-left: 20px; } .z-card:first-child { border-left: 0; padding-left: 0; } }
.z-bead { display: inline-block; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.85), var(--c) 40%, var(--c)); border: 1px solid rgba(0,0,0,.12); vertical-align: middle; }
.z-card h3 { font-family: var(--serif); font-size: 26px; margin: 12px 0 6px; }
.z-card h3 span { display: block; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--gold-ink); margin-bottom: 2px; }
.z-card p { color: var(--ink-soft); }
.z-small { font-size: 13px; color: var(--body) !important; margin-top: 6px; }
.z-facts { margin: 0; border-top: 1px solid var(--ink); max-width: 860px; }
.z-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.z-facts dt { font-size: 13px; font-weight: 700; color: var(--body); letter-spacing: .08em; padding-top: 3px; }
.z-facts dd { margin: 0; }
.z-facts small { display: block; color: var(--body); font-size: 12px; margin-top: 4px; }
.z-cta { margin-top: 56px; padding: 32px 24px; background: var(--navy); color: var(--on-dark); }
.z-cta p { color: var(--on-dark-muted); max-width: 38em; }
.z-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.z-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.z-pager a { font-family: var(--serif); font-size: 18px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--gold); }
.z-section .zlinks a { color: var(--ink-soft); }
.z-section .zlinks a[aria-current] { color: var(--ink); font-weight: 700; }
.z-disclaimer { margin-top: 28px; font-size: 12px; color: var(--body); line-height: 1.8; }
.z-disclaimer-dark { color: var(--on-dark-muted); }
.z-table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.z-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.z-table th, .z-table td { padding: 12px 10px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: middle; }
.z-table thead th { font-size: 12px; letter-spacing: .14em; color: var(--body); }
.z-table tbody th a { font-family: var(--serif); font-size: 17px; text-decoration: none; display: inline-flex; gap: 6px; }
.z-table tbody th a span { color: var(--gold); }
.z-table tbody th small { display: block; font-weight: 400; font-size: 12px; color: var(--body); }
.z-table .z-bead { width: 18px; height: 18px; margin-right: 8px; }

/* ---------- 互動提示 ---------- */
/* 星圖：未接觸前，每粒星有脈衝光圈；「點一顆星」呼吸閃 */
.star-dot::before { content: ""; position: absolute; inset: -3px; border: 1px solid var(--gold-soft); border-radius: 50%; opacity: 0; transition: opacity .6s; }
.lyra:not(.is-touched) .star-dot::before { animation: ping 2.6s ease-out infinite; animation-delay: calc(var(--d) + 3s); }
.lyra-hint { transition: opacity .6s; }
.lyra:not(.is-touched) .lyra-hint { animation: breathe 2.2s ease-in-out infinite; }
.lyra.is-touched .lyra-hint { opacity: 0; }
@keyframes ping { 0% { opacity: .9; transform: scale(.7); } 80%, 100% { opacity: 0; transform: scale(2.8); } }
@keyframes breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* 星盤：未揀星座時，外圈有光點繞圈 */
.wheel-orbit { transform-box: view-box; transform-origin: 50% 50%; animation: orbit 7s linear infinite; transition: opacity .4s; }
.orbit-dot { fill: var(--gold-soft); }
.orbit-glow { fill: var(--gold); opacity: .35; }
.wheel.has-sign .wheel-orbit { opacity: 0; animation-play-state: paused; }
.wheel-panel:has(.wheel:not(.has-sign)) .panel-title span { animation: breathe 2.2s ease-in-out infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* 問與答：第一粒泡泡輕跳 */
.qchip.is-hint { animation: hop 1.8s ease-in-out infinite; border-color: var(--gold); }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* ---------- 章節導航 ---------- */
.rail, .chapter-bar { opacity: 0; pointer-events: none; transition: opacity .3s; }
.rail.is-visible, .chapter-bar.is-visible { opacity: 1; pointer-events: auto; }
.rail { display: none; }
@media (min-width: 1024px) {
  .knot { display: none; }
  .rail { display: flex; flex-direction: column; gap: 22px; position: fixed; z-index: 20; top: 50%; left: calc(var(--thread-x) - 11px); transform: translateY(-50%); }
  .rail-item { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .rail-knot { width: 22px; height: 22px; display: grid; place-items: center; background: var(--canvas); color: var(--gold); font-size: 12px; opacity: .55; transition: opacity .2s, transform .2s; }
  .rail.on-dark .rail-knot { background: var(--navy); }
  .rail-label { font-size: 13px; letter-spacing: .1em; color: var(--body); white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; padding: 2px 8px; background: var(--canvas); }
  .rail.on-dark .rail-label { background: var(--navy); color: var(--on-dark-muted); }
  .rail-label i { font-family: var(--latin); font-size: 15px; color: var(--gold); margin-right: 6px; }
  .rail-item:hover .rail-knot, .rail-item[aria-current] .rail-knot { opacity: 1; transform: scale(1.25); }
  .rail-item:hover .rail-label, .rail.is-announcing .rail-item[aria-current] .rail-label, .rail-item:focus-visible .rail-label { opacity: 1; transform: none; }
  .rail-item[aria-current] .rail-label { color: var(--ink); font-weight: 700; }
  .rail.on-dark .rail-item[aria-current] .rail-label { color: var(--on-dark); }
  .chapter-bar { display: none; }
}
.chapter-bar { position: fixed; z-index: 25; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(92vw, 340px); }
.cb-toggle { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; background: rgba(7,13,34,.94); color: var(--on-dark); border: 1px solid rgba(201,163,92,.55); border-radius: 0; cursor: pointer; font-size: 14px; letter-spacing: .08em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cb-knot { color: var(--gold); }
.cb-no, .cb-list i { font-family: var(--latin); font-style: italic; color: var(--gold); font-size: 16px; }
.cb-name { flex: 1; text-align: left; }
.cb-caret { color: var(--gold); transition: transform .2s; }
.cb-toggle[aria-expanded="true"] .cb-caret { transform: rotate(180deg); }
.cb-list { list-style: none; margin: 0 0 6px; padding: 6px 0; background: rgba(7,13,34,.97); border: 1px solid rgba(201,163,92,.55); }
.cb-list a { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 8px 16px; color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }
.cb-list a[aria-current] { color: var(--on-dark); background: rgba(201,163,92,.12); }
.cb-list i { width: 24px; }
@media (max-width: 1023px) { .footer { padding-bottom: 88px; } }

/* ---------- 星圖：換星更明顯 ---------- */
/* 主角突出：選中嘅星光暈加大；其他星同名暗少少 */
.star-label { transition: opacity .5s ease; }
.star .star-dot { transition: filter .5s ease, box-shadow .5s ease; }
.lyra.has-active .star:not(.is-active) .star-label { opacity: .5; }
.lyra.has-active .star:not(.is-active) .star-dot { filter: brightness(.7); }
.star.is-active .star-dot { box-shadow: 0 0 calc(var(--s) * 1.4) 6px rgba(230,211,163,.75), 0 0 calc(var(--s) * 3.5) 10px rgba(201,163,92,.35); }
.star.is-active .star-dot::after { inset: -12px; border-color: var(--gold-soft); box-shadow: 0 0 10px rgba(230,211,163,.6); }
.star.is-active .star-name { color: var(--gold-soft); text-shadow: 0 0 12px rgba(230,211,163,.6); }
/* 相連金線：變粗＋光暈 */
.lyra-lines line.is-lit { stroke-width: 2; filter: drop-shadow(0 0 4px rgba(230,211,163,.95)); }
/* 到達光環 */
.star-burst { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 1.5px solid var(--gold-soft); box-shadow: 0 0 24px rgba(230,211,163,.55), inset 0 0 18px rgba(230,211,163,.35); pointer-events: none; transform: translate(-50%, -50%); }
/* 流星：發光頭＋拖尾 */
.comet { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 2; }
.comet::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 0 10px 4px rgba(255,255,255,.9), 0 0 24px 8px rgba(230,211,163,.8); }
.comet::after { content: ""; position: absolute; right: 0; top: 0; width: 90px; height: 2px; transform-origin: right center; transform: translateY(-50%) rotate(var(--angle)); background: linear-gradient(90deg, transparent, rgba(230,211,163,.9)); border-radius: 2px; }

/* ---------- 手機版：各章節縮細 ---------- */
@media (max-width: 640px) {
  .chapter { padding-top: 44px; padding-bottom: 44px; }
  .chapter-head { margin-bottom: 22px; }
  .chapter-no { font-size: 15px; margin-bottom: 2px; }
  .chapter-title { font-size: 23px; line-height: 1.35; }
  .chapter-lead { font-size: 14px; margin-top: 6px; }
  .knot { top: 0; }
  .fine { margin-top: 18px; font-size: 12px; }

  /* 系列：相片同文字左右並排 */
  .piece { grid-template-columns: 38% 1fr; gap: 14px; padding: 18px 0; align-items: start; }
  .piece-img { aspect-ratio: 3 / 4; }
  .piece-tag { top: 6px; left: 6px; padding: 2px 6px; font-size: 10px; letter-spacing: .1em; }
  .piece-no { font-size: 30px; }
  .piece-star { font-size: 12px; margin-top: 4px; }
  .piece-name { font-size: 22px; margin-top: 2px; }
  .piece-en { font-size: 11px; letter-spacing: .2em; margin-top: 2px; }
  .piece-spec { font-size: 12px; line-height: 1.55; margin-top: 8px; }
  .piece-foot { gap: 8px; margin-top: 10px; padding-top: 10px; }
  .piece-price { font-size: 20px; }
  .piece-price.is-ask { font-size: 12px; }
  .piece-foot .btn { min-height: 38px; padding: 6px 12px; font-size: 13px; letter-spacing: .04em; }

  /* 日常 */
  .spread { gap: 10px; }
  .spread figcaption { font-size: 12px; margin-top: 4px; }
  .spread-quote { font-size: 18px; padding: 6px 0 0; }

  /* 織女故事 */
  .tale { gap: 0; }
  .tale-body p { font-size: 15px; line-height: 1.9; margin-bottom: 12px; }
  .tale-body p.tale-sign { font-size: 17px; margin-top: 16px; }
  .tale-sign span { font-size: 13px; }

  /* 怎麼買 */
  .how { grid-template-columns: 1fr 1fr; }
  .how li { padding: 14px 12px 14px 0; }
  .how li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--hairline); }
  .how-no { font-size: 24px; }
  .how h3 { font-size: 16px; margin: 4px 0 4px; }
  .how p { font-size: 12.5px; line-height: 1.6; }
  .warn, .booth-note { margin-top: 16px; padding: 10px 12px; font-size: 12.5px; }
  .warn strong, .booth-note strong { display: block; margin: 0 0 2px; }
  .how-cta { margin-top: 16px; }
  .how-cta .btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }

  /* 問與答 */
  .chat-head { padding: 10px 12px; }
  .chat-log { height: 300px; padding: 14px 10px; gap: 8px; }
  .bubble { max-width: 88%; padding: 8px 12px; font-size: 13.5px; line-height: 1.65; }
  .chat-chips { gap: 6px; padding: 10px 10px 12px; }
  .qchip { min-height: 34px; padding: 5px 11px; font-size: 12.5px; }

  /* 頁尾 */
  .footer { padding-top: 36px; }
  .footer-inner { gap: 20px; }
  .footer-word { font-size: 22px; }
  .zlinks { grid-template-columns: repeat(3, 1fr); gap: 2px 8px; }
  .zlinks a { font-size: 12.5px; min-height: 30px; }

  /* 12 星座頁 */
  .z-hero { padding: 36px 16px 32px; }
  .z-glyph { font-size: 44px; }
  .z-title { font-size: 28px; }
  .z-lead { font-size: 14.5px; line-height: 1.85; margin-top: 12px; }
  .z-section { padding-top: 36px; }
  .z-h2 { font-size: 21px; margin-bottom: 14px; }
  .z-cards { grid-template-columns: 1fr 1fr; }
  .z-card { padding: 14px 10px 14px 0; }
  .z-card:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--hairline); }
  .z-bead { width: 32px; height: 32px; }
  .z-card h3 { font-size: 19px; margin: 8px 0 4px; }
  .z-card h3 span { font-size: 11px; letter-spacing: .1em; }
  .z-card p { font-size: 13px; }
  .z-facts div { grid-template-columns: 92px 1fr; padding: 10px 0; font-size: 14px; }
  .z-cta { margin-top: 36px; padding: 22px 16px; }
  .z-cta p { font-size: 14px; }
}

/* ---------- 星圖背景：產品相（約 50% 能見度，邊位溶入星空） ---------- */
.lyra-photo { position: absolute; inset: -8% -14%; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%); }
.lyra-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: brightness(.72) saturate(1.1); transform: scale(1.06); transition: opacity 1.1s cubic-bezier(.45,0,.25,1), transform 6s cubic-bezier(.22,.61,.36,1); }
.lyra-photo img.is-in { opacity: .5; transform: scale(1); }
.lyra-photo img.is-out { opacity: 0; transform: scale(.98); }
.lyra-lines, .lyra-stars { z-index: 1; }
/* 相片偏光，星名同金線加陰影保持清楚 */
.star-label { text-shadow: 0 0 3px rgba(7,13,34,1), 0 0 8px rgba(7,13,34,.95), 0 0 16px rgba(7,13,34,.8); }
.lyra.has-active .star:not(.is-active) .star-label { opacity: .8; }
.lyra-lines line { filter: drop-shadow(0 0 2px rgba(7,13,34,.8)); }
.lyra-lines line.is-lit { filter: drop-shadow(0 0 2px rgba(7,13,34,.8)) drop-shadow(0 0 4px rgba(230,211,163,.95)); }

/* ---------- 星座頁：現有款式配對 ---------- */
.z-intro { color: var(--body); margin-bottom: 16px; }
.z-matches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.z-match { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.z-match-head { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; }
.z-match-head .z-bead { width: 28px; height: 28px; }
.z-match-head span { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--gold-ink); }
.z-match-list { display: flex; flex-wrap: wrap; gap: 12px; }
.z-match-item { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 12px 6px 6px; border: 1px solid var(--hairline); background: var(--canvas); transition: border-color .2s; }
.z-match-item:hover { border-color: var(--ink); }
.z-match-item img { width: 56px; height: 72px; object-fit: cover; }
.z-match-item span { font-family: var(--serif); font-size: 17px; display: flex; flex-direction: column; }
.z-match-item small { font-family: var(--sans); font-size: 12px; color: var(--body); }
.z-match-none { color: var(--body); font-size: 14px; }
@media (max-width: 640px) {
  .z-match { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .z-match-head { font-size: 17px; }
  .z-match-item { padding: 4px 10px 4px 4px; }
  .z-match-item img { width: 44px; height: 56px; }
  .z-match-item span { font-size: 15px; }
  .z-match-none { font-size: 12.5px; }
}
