/* 羲和閱讀航程模組樣式（assets/voyage.css）
   設計定版：法式飛行・金銀雙階；晨光奶油／墨綠／日落金；淺章面＋深章字；鎖淺色。
   所有 class 以 xh-voy- 前綴，避免污染站上既有 CSS。 */

.xh-voy {
  color-scheme: light only;
  --xh-cream: #F7F1E7;
  --xh-paper: #FFFDF8;
  --xh-ink: #2F453C;
  --xh-ink-deep: #22382E;
  --xh-sage: #97A48B;
  --xh-gold: #DFA050;
  --xh-clay: #C08552;
  --xh-mist: #A9C2CF;
  --xh-text: #2B2921;
  --xh-sub: #6B675C;
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 16px;
  color: var(--xh-text);
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  box-sizing: border-box;
}
.xh-voy *, .xh-voy *::before, .xh-voy *::after { box-sizing: border-box; }
.xh-voy [hidden] { display: none !important; }

/* 2026-11-04 拆分上/下段：上段（登機證＋廣播）置於標題下方，收斂上邊距 */
.xh-voy--top { margin: 2rem auto 0.5rem; }

.xh-voy-kicker {
  font-family: "Noto Serif Display", "Noto Serif TC", serif;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--xh-ink);
}
.xh-voy-flight {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--xh-clay);
}

/* ---------- 登機證 ---------- */
.xh-voy-pass {
  background: linear-gradient(165deg, var(--xh-paper), var(--xh-cream));
  border: 1px solid var(--xh-gold);
  outline: 1px solid rgba(223, 160, 80, .35);
  outline-offset: 4px;
  padding: 22px 24px 18px;
  margin-bottom: 20px;
}
.xh-voy-pass-head, .xh-voy-pa-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px solid rgba(47, 69, 60, .25);
  padding-bottom: 10px; margin-bottom: 14px;
}
.xh-voy-pass-title {
  font-family: "Noto Serif TC", serif;
  font-weight: 700; font-size: 22px; line-height: 1.4;
  color: var(--xh-ink); margin: 0 0 16px;
}
.xh-voy-pass-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; margin-bottom: 6px;
}
.xh-voy-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xh-voy-cell-k { font-size: 10px; letter-spacing: .22em; color: var(--xh-sub); text-transform: uppercase; }
.xh-voy-cell-v {
  font-family: "Noto Serif TC", serif; font-size: 15px; color: var(--xh-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xh-voy-tear { border-top: 2px dashed rgba(47, 69, 60, .35); margin: 14px -24px 0; }
.xh-voy-pass-foot {
  display: flex; align-items: center; gap: 16px; padding-top: 14px; position: relative;
}
.xh-voy-boardstamp {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px; letter-spacing: .3em; color: var(--xh-clay);
  border: 2px solid var(--xh-clay); border-radius: 4px; padding: 4px 10px 4px 13px;
  transform: rotate(-6deg);
  background: rgba(255, 253, 248, .7);
}

/* ---------- 按鈕 ---------- */
.xh-voy-btn {
  appearance: none; cursor: pointer;
  font-family: "Noto Serif TC", serif; font-size: 15px; letter-spacing: .12em;
  padding: 11px 22px; border-radius: 2px;
  transition: box-shadow .3s ease, background .3s ease, opacity .3s ease;
}
.xh-voy-btn:disabled { opacity: .42; cursor: not-allowed; }
.xh-voy-btn-board { background: transparent; color: var(--xh-ink); border: 1px solid var(--xh-ink); }
.xh-voy-btn-board:not(:disabled):hover { background: rgba(47, 69, 60, .06); }
.xh-voy-btn-land {
  background: var(--xh-ink); color: var(--xh-cream); border: 1px solid var(--xh-ink);
  font-size: 17px; padding: 14px 30px;
}
.xh-voy-btn-land.is-armed { animation: xh-voy-glow 1.8s ease-in-out infinite; }
.xh-voy-btn-land:not(:disabled):hover { background: var(--xh-ink-deep); }
@keyframes xh-voy-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(223, 160, 80, .55); }
  50% { box-shadow: 0 0 0 9px rgba(223, 160, 80, 0); }
}
.xh-voy-btn-share { background: transparent; color: var(--xh-ink); border: 1px solid var(--xh-gold); }
.xh-voy-btn-share:hover { background: rgba(223, 160, 80, .12); }
.xh-voy-btn-claim { background: var(--xh-ink); color: var(--xh-cream); border: 1px solid var(--xh-ink); padding: 11px 18px; }
.xh-voy-btn-card { background: transparent; color: var(--xh-clay); border: 1px solid var(--xh-clay); margin-top: 12px; }

/* ---------- 機長廣播 ---------- */
.xh-voy-pa {
  background: var(--xh-paper);
  border: 1px solid rgba(47, 69, 60, .4);
  padding: 20px 24px 16px; margin-bottom: 20px;
}
.xh-voy-pa-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.xh-voy-play {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid #B9832F; cursor: pointer;
  background: radial-gradient(circle at 32% 30%, #F2CD8B, var(--xh-gold) 62%, #C98F35);
  color: #3A2A08; font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(120, 84, 20, .35);
}
.xh-voy-play:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.xh-voy-pa-hint { margin: 0; font-size: 14px; line-height: 1.7; color: var(--xh-sub); }
.xh-voy-ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--xh-gold); border-bottom: 1px solid var(--xh-gold);
  background: var(--xh-cream); padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.xh-voy-ticker-track {
  display: inline-flex; gap: 4rem; width: max-content;
  animation: xh-voy-marquee 46s linear infinite;
  animation-play-state: paused;
  font-family: "Noto Serif TC", serif; font-size: 14.5px; color: var(--xh-ink);
}
.xh-voy-ticker-track.is-run { animation-play-state: running; }
@keyframes xh-voy-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 2rem)); }
}

/* ---------- 降落・蓋章 ---------- */
.xh-voy-land { text-align: center; padding: 8px 0 4px; }
.xh-voy-land-note { font-size: 13px; color: var(--xh-sub); margin: 10px 0 0; }
.xh-voy-stampwrap { margin-top: 26px; }
.xh-voy-stamp {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 2px; line-height: 1.3;
  border: 3px double currentColor;
  transform: rotate(-7deg);
  padding: 14px 26px;
  overflow: hidden;
}
.xh-voy-stamp--rx    { border-radius: 50%; width: 248px; height: 158px; }
.xh-voy-stamp--entry { border-radius: 50%; width: 178px; height: 178px; }
.xh-voy-stamp.t-ink    { color: var(--xh-ink); background: linear-gradient(160deg, #FFFDF7, #F1E7CC); }
.xh-voy-stamp.t-silver { color: #33525F; background: linear-gradient(160deg, #F8FBFC, #D7E4EA); box-shadow: inset 0 0 0 2px rgba(95, 126, 142, .45); }
.xh-voy-stamp.t-gold   { color: #5F4208; background: linear-gradient(160deg, #FCF3D7, #F2DA9E); box-shadow: inset 0 0 0 2px rgba(176, 132, 40, .5); }
.xh-voy-stamp.is-new { animation: xh-voy-stampin .45s cubic-bezier(.2, 2.2, .4, 1) both; }
@keyframes xh-voy-stampin {
  from { transform: rotate(-7deg) scale(1.7); opacity: 0; }
  to   { transform: rotate(-7deg) scale(1); opacity: 1; }
}
.xh-voy-stamp-top { font-size: 9.5px; letter-spacing: .34em; opacity: .75; }
.xh-voy-stamp-name { font-family: "Noto Serif TC", serif; font-size: clamp(17px, 6vw, 27px); font-weight: 700; line-height: 1.3; white-space: nowrap; max-width: 94%; text-align: center; }
.xh-voy-stamp-brand { font-family: "Noto Serif TC", serif; font-size: 12.5px; letter-spacing: .42em; margin-right: -.42em; opacity: .85; white-space: nowrap; }
.xh-voy-stamp-name--main { font-size: clamp(20px, 6vw, 25px); }
.xh-voy-stamp-en { font-size: 10.5px; letter-spacing: .22em; margin-right: -.22em; opacity: .85; white-space: nowrap; max-width: 94%; }
.xh-voy-stamp-kind { white-space: nowrap; }
.xh-voy-stamp-sub { font-family: "Noto Serif TC", serif; font-size: 14px; }
.xh-voy-stamp-kind { font-size: 10.5px; letter-spacing: .26em; opacity: .8; }
.xh-voy-stamp-date { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; letter-spacing: .14em; opacity: .8; }
.xh-voy-stamp-msg { font-size: 14px; line-height: 1.8; color: var(--xh-ink); margin: 16px 0 0; }

.xh-voy-land-guide {
  font-family: "Noto Serif TC", serif; font-size: 15.5px; line-height: 1.8;
  color: var(--xh-ink); text-align: center; margin: 0 auto 14px; max-width: 34em;
}
.xh-voy-btn-land--oracle {
  width: 100%;
  background: linear-gradient(135deg, #EBCE8F, #C9A35C 48%, #AE8A45);
  color: var(--xh-ink); border: 1px solid #A8844C; border-radius: 6px;
  box-shadow: 0 10px 22px -10px rgba(146, 110, 44, .65), inset 0 1px 0 rgba(255, 255, 255, .55);
  font-size: 16.5px; padding: 14px 20px 12px;
}
.xh-voy-btn-land--oracle:not(:disabled):hover { background: linear-gradient(135deg, #F0D69C, #CFAC62 48%, #B8924C); }
.xh-voy-btn-land--oracle:disabled { opacity: .55; box-shadow: none; cursor: default; }
.xh-voy-btn-land--oracle.is-done { opacity: 1; }
.xh-voy-land-done-sub {
  display: block; font-family: "Noto Sans TC", sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: .34em; margin-top: 3px; opacity: .75;
}

/* ---------- 分享・認領・明信片 ---------- */
.xh-voy-after { margin-top: 26px; text-align: center; }
.xh-voy-share-msg, .xh-voy-claim-msg { font-size: 13.5px; line-height: 1.8; color: var(--xh-sub); margin: 10px 0 0; }
.xh-voy-claim-msg.is-ok { color: var(--xh-ink); }
.xh-voy-claim-msg.is-err { color: #9A4A2E; }
.xh-voy-claim { margin-top: 22px; }
.xh-voy-claim-label {
  display: block; font-family: "Noto Serif TC", serif; font-size: 16px;
  color: var(--xh-ink); letter-spacing: .1em; margin-bottom: 10px;
}
.xh-voy-claim-row { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.xh-voy-claim-row input {
  flex: 1 1 auto; min-width: 0;
  font-size: 15px; padding: 11px 14px;
  border: 1px solid rgba(47, 69, 60, .45); border-radius: 2px;
  background: #FFFFFF; color: var(--xh-text);
}
.xh-voy-cardzone { margin-top: 28px; }
.xh-voy-pc { display: flex; gap: 14px; margin-top: 12px; text-align: left; }
.xh-voy-pc-front, .xh-voy-pc-back {
  flex: 1 1 0; min-width: 0; min-height: 168px;
  background: linear-gradient(170deg, var(--xh-paper), var(--xh-cream));
  border: 1px solid rgba(47, 69, 60, .35);
  padding: 14px 16px; position: relative;
  display: flex; flex-direction: column; gap: 6px;
}
.xh-voy-pc-front::before, .xh-voy-pc-back::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: repeating-linear-gradient(45deg, var(--xh-gold) 0 10px, var(--xh-cream) 10px 20px, var(--xh-mist) 20px 30px, var(--xh-cream) 30px 40px);
}
.xh-voy-pc-kicker { font-size: 9.5px; letter-spacing: .3em; color: var(--xh-sub); text-transform: uppercase; }
.xh-voy-pc-stampmark {
  font-family: "Noto Serif TC", serif; font-size: 19px; color: var(--xh-ink);
  border: 2px solid var(--xh-ink); border-radius: 50%;
  align-self: flex-start; padding: 7px 14px; transform: rotate(-5deg);
  max-width: 70%; word-break: break-all; text-align: center; line-height: 1.35;
  background: linear-gradient(160deg, #FFFDF7, #F1E7CC);
}
.xh-voy-pc-title { font-family: "Noto Serif TC", serif; font-size: 15.5px; line-height: 1.5; color: var(--xh-ink); }
.xh-voy-pc-meta { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .12em; color: var(--xh-clay); margin-top: auto; }
.xh-voy-pc-postmark { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .1em; color: var(--xh-sub); }
.xh-voy-pc-lines { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.xh-voy-pc-lines i { display: block; height: 1px; background: rgba(47, 69, 60, .35); }
.xh-voy-pc-lines i:nth-child(2) { width: 82%; }
.xh-voy-pc-lines i:nth-child(3) { width: 64%; }
.xh-voy-pc-box {
  margin-top: auto; align-self: flex-end;
  font-size: 11px; letter-spacing: .2em; color: var(--xh-ink);
  border: 1.5px solid var(--xh-ink); padding: 5px 9px;
}
.xh-voy-disclaimer {
  margin: 30px 0 0; text-align: center;
  font-size: 12px; line-height: 1.8; color: var(--xh-sub);
}

/* ---------- 手機 ---------- */
@media (max-width: 560px) {
  .xh-voy { padding: 0 12px; }
  .xh-voy-pass, .xh-voy-pa { padding: 18px 16px 14px; }
  .xh-voy-tear { margin: 12px -16px 0; }
  .xh-voy-pass-grid { grid-template-columns: repeat(2, 1fr); }
  .xh-voy-pass-title { font-size: 19px; }
  .xh-voy-pc { flex-direction: column; }
  .xh-voy-claim-row { flex-direction: column; }
  .xh-voy-stamp--rx { width: 216px; height: 140px; }
  .xh-voy-stamp { gap: 1px; padding: 10px 22px; }
  .xh-voy-stamp-name { font-size: clamp(16px, 5.4vw, 23px); }
  .xh-voy-btn-land { width: 100%; }
}

/* ---------- 減少動態 ---------- */
@media (prefers-reduced-motion: reduce) {
  .xh-voy-ticker-track { animation: none; }
  .xh-voy-btn-land.is-armed { animation: none; box-shadow: 0 0 0 3px rgba(223, 160, 80, .6); }
  .xh-voy-stamp.is-new { animation: none; }
}
/* ---------- 2026-11-05 登機證改版：A 香檳金雙框＋郵政郵戳（使用者選定） ---------- */
.xh-voy-pass {
  position: relative;
  background: #FBF6EA;
  border: 1px solid #C9A35C;
  outline: 1px solid rgba(201, 163, 92, .85);
  outline-offset: -7px;
  padding: 26px 24px 20px;
  box-shadow: 0 18px 34px -22px rgba(90, 70, 30, .45);
}
.xh-voy-mast { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 12px; }
.xh-voy-mast-brand { font-family: "Noto Serif Display", "Noto Serif TC", serif; font-weight: 600; font-size: 17px; letter-spacing: .42em; text-indent: .42em; color: var(--xh-ink); }
.xh-voy-mast-zh { font-family: "Noto Serif TC", serif; font-size: 13px; letter-spacing: .58em; text-indent: .58em; color: var(--xh-ink); margin-top: 5px; }
.xh-voy-mast-fr { font-family: "Noto Serif Display", serif; font-style: italic; font-size: 13px; color: var(--xh-sub); margin-top: 7px; }
.xh-voy-pass .xh-voy-pass-head { border-bottom: none; padding-bottom: 0; margin-bottom: 12px; }
.xh-voy-rule { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.xh-voy-rule::before, .xh-voy-rule::after { content: ""; flex: 1; height: 1px; background: #C9A35C; }
.xh-voy-rule span { font-size: 8px; color: #A8844C; }
.xh-voy-pass-title { text-align: center; margin: 0; }
.xh-voy-cell-k { color: #A8844C; }
.xh-voy-tear { border-top: 2px dashed rgba(201, 163, 92, .65); }
.xh-voy-pass-foot { flex-direction: column; align-items: stretch; gap: 0; }
.xh-voy-btn-board {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 100%; padding: 14px 20px 12px;
  background: linear-gradient(135deg, #EBCE8F, #C9A35C 48%, #AE8A45);
  color: var(--xh-ink); border: 1px solid #A8844C; border-radius: 6px;
  box-shadow: 0 10px 22px -10px rgba(146, 110, 44, .65), inset 0 1px 0 rgba(255, 255, 255, .55);
  opacity: 1;
}
.xh-voy-btn-board .bb-m { font-family: "Noto Serif TC", serif; font-weight: 700; font-size: 17px; letter-spacing: .16em; }
.xh-voy-btn-board .bb-s { font-family: "Noto Sans TC", sans-serif; font-size: 9px; font-weight: 600; letter-spacing: .34em; opacity: .75; }
.xh-voy-btn-board:not(:disabled):hover { background: linear-gradient(135deg, #F0D69C, #CFAC62 48%, #B8924C); }
.xh-voy-btn-board:disabled {
  background: rgba(201, 163, 92, .10); color: #8A7B52;
  border: 1px solid rgba(168, 132, 76, .55); box-shadow: none; opacity: 1; cursor: default;
  font-size: 15px; letter-spacing: .14em; padding: 12px 20px;
}
.xh-voy-boardstamp { position: absolute; top: 2px; right: 6px; z-index: 2; }
.xh-voy-barcode {
  height: 30px; margin-top: 16px; opacity: .78; color: var(--xh-ink);
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px, currentColor 5px 6px, transparent 6px 11px, currentColor 11px 14px, transparent 14px 17px, currentColor 17px 18px, transparent 18px 23px, currentColor 23px 25px, transparent 25px 28px);
}
.xh-voy-barcode-note { text-align: center; font-size: 9px; letter-spacing: .42em; text-indent: .42em; color: var(--xh-sub); margin-top: 7px; }
.xh-voy-postmark {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 84px; height: 84px; border-radius: 50%;
  border: 1.5px solid rgba(124, 139, 106, .8);
  color: rgba(96, 110, 78, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transform: rotate(-10deg);
  background: rgba(251, 246, 234, .35);
}
.xh-voy-postmark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  border: 1px solid rgba(124, 139, 106, .55);
}
.xh-voy-postmark-top { font-size: 7.5px; letter-spacing: .14em; font-weight: 600; }
.xh-voy-postmark-mid { font-family: "Noto Serif TC", serif; font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.xh-voy-postmark-date { font-size: 8.5px; letter-spacing: .1em; }
@media (max-width: 560px) {
  .xh-voy-postmark { width: 74px; height: 74px; top: 10px; right: 10px; }
  .xh-voy-postmark-mid { font-size: 12.5px; }
}
.xh-voy-pass .xh-voy-pass-head .xh-voy-kicker { font-size: 10px; letter-spacing: .16em; }
.xh-voy-pass .xh-voy-flight { white-space: nowrap; font-size: 11px; }
.xh-voy-cell-v[data-voy="status"] { white-space: normal; line-height: 1.35; }
