/* 配色皆以像素採樣自 hero動畫.psd／設計稿.jpg */
:root {
  --ink: rgb(11, 7, 16);          /* 底色 */
  --ink-2: rgb(20, 8, 22);        /* bar 暗部 */
  --plum: rgb(64, 37, 72);        /* 網格紫 #402548 */
  --navy: rgb(37, 35, 67);        /* 網格藍黑 #252343 */
  --wine: rgb(57, 19, 31);        /* 網格酒紅 #39131f */
  --red: rgb(180, 35, 54);        /* 紅 #b42336 */
  --blue: rgb(34, 69, 159);       /* 藍 #22459f */
  --magenta: rgb(152, 62, 164);   /* 洋紅紫 #983ea4 */
  --silver: rgb(221, 223, 224);   /* 邊框線銀白 #dddfe0 */
  --white: rgb(244, 242, 246);
  --mute: rgb(160, 150, 172);
  --red3: 180, 35, 54;
  --blue3: 34, 69, 159;
  --silver3: 221, 223, 224;
  --f-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --f-latin: "Cormorant Garamond", "Times New Roman", serif;
  --f-black: "UnifrakturMaguntia", "Cormorant Garamond", serif;
  --f-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--silver); font-family: var(--f-body); font-weight: 300; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.cd-unit b, .hero-when time, .ticket-info dd.hl { font-variant-numeric: lining-nums tabular-nums; }
/* 色差字：紅往左、藍往右 */
.chroma { text-shadow: -1px 0 rgba(var(--red3), .85), 1px 0 rgba(var(--blue3), .95); }

/* =========================================================
   Hero（PSD 1920×1080 設計座標；上方視覺 1920×856，下方 bar 224）
   ========================================================= */
#hero {
  --U: min(calc(100vw / 1920), calc(100vh / 1080));
  --U: min(calc(100vw / 1920), calc(100svh / 1080));
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  display: flex; flex-direction: column; background: var(--ink); overflow: hidden;
}
.hero-visual { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; container-type: size; }
.s2-back {
  position: absolute; inset: 0;
  background: var(--ink) url(hero/s2_back.webp) center top / cover no-repeat;
}
.s2-back::after {   /* 四周壓暗，把視線收到中央 */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 80% at 50% 55%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.stage {
  --u: min(calc(100cqw / 1920), calc(100cqh / 900));
  --px: 0; --py: 0;
  position: absolute; left: 50%; bottom: 0;
  width: calc(1920 * var(--u)); height: calc(856 * var(--u));
  transform: translateX(-50%); transform-origin: 50% 100%;
}
.stage > * {
  position: absolute; display: block;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
}
.stage img { pointer-events: none; }
.frame  { --x: 45;    --y: 71;    --w: 1830;  --h: 824; }
.candle { --x: 469.1; --y: 250.9; --w: 950.2; --h: 601.7; }
.halo   { --x: 407;   --y: -109;  --w: 1066;  --h: 859; }

/* 輕微視差：人物與邊框（含文字背景，已扣掉人物範圍）同步移動，蠟燭在最前 */
.flick, .frame { transform: translate3d(calc(var(--px) * -6 * var(--u)), calc(var(--py) * -4 * var(--u)), 0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.candle { transform: translate3d(calc(var(--px) * 14 * var(--u)), calc(var(--py) * 6 * var(--u)), 0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.candle video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; background: transparent; }
.halo { animation: halo 6s ease-in-out infinite; transform-origin: 50% 47%; }
@keyframes halo {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.012); filter: drop-shadow(0 0 calc(18 * var(--u)) rgba(255, 220, 240, .35)); }
}

/* 左右人物：間段性明暗閃爍（JS 依隨機節奏改寫 --b 亮度） */
.flick { --b: 1; filter: brightness(var(--b)); will-change: filter; }

/* 第二幕進場：第一幕淡出時舞台微微拉近 */
body.intro .stage { animation: s2in 2.2s cubic-bezier(.2, .7, .2, 1) 3.7s both; }
@keyframes s2in {
  from { transform: translateX(-50%) scale(1.05); filter: brightness(.55); }
  to   { transform: translateX(-50%) scale(1); filter: none; }
}

/* ---------- 第一幕 ---------- */
.scene1 {
  position: absolute; inset: 0; z-index: 5; background: #000; container-type: size;
  animation: s1out 1.2s ease-in-out 4.1s both;
}
.s1-back {
  position: absolute; inset: 0;
  background: #000 url(hero/s1_back.webp) center / cover no-repeat;
  animation: s1back 1.1s ease-out both;
}
.s1-title {
  --tw: min(60.4cqw, 107.3cqh);
  position: absolute; inset: 0; margin: auto;
  width: var(--tw); height: calc(var(--tw) * 521 / 1159);
}
.s1-title .t-main {
  position: absolute; inset: 0; width: 100%; height: 100%;
  mix-blend-mode: color-dodge;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
          mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: write 2.7s cubic-bezier(.42, .08, .55, .96) .55s both;
}
/* 筆尖光：跟著書寫邊緣由左到右 */
.s1-title .t-pen {
  position: absolute; top: 4%; bottom: 4%; left: -10%; width: 16%; margin-left: -8%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 240, 250, .55), rgba(220, 120, 200, .18) 45%, transparent 70%);
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
  animation: pen 2.7s cubic-bezier(.42, .08, .55, .96) .55s both;
}
.s1-title .t-sub {
  position: absolute; left: 32.61%; top: 85.03%; width: 34.68%; height: auto;
  opacity: 0; animation: subIn 2.1s ease-out .9s both;
}
@keyframes s1back { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes write {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes pen {
  0% { left: -10%; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
@keyframes subIn {
  from { opacity: 0; filter: blur(6px); letter-spacing: .2em; transform: translateY(6px); }
  to   { opacity: 1; filter: none; transform: none; }
}
@keyframes s1out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
.scene1.skip { animation: s1out .45s ease-in both !important; }
body:not(.intro) .scene1 { display: none; }

/* ---------- 下方資訊列（PSD bar：網格底＋銀白描邊） ---------- */
.hero-bar {
  position: relative; z-index: 2; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px calc(48 * var(--U));
  min-height: calc(224 * var(--U));
  padding: 14px max(20px, calc(96 * var(--U))) max(16px, env(safe-area-inset-bottom));
  border-top: max(2px, calc(5 * var(--U))) solid var(--silver);
  background: var(--ink-2) url(hero/bar_back.webp) center / cover no-repeat;
}
.hero-title { margin: 0; display: flex; align-items: center; gap: max(10px, calc(20 * var(--U))); line-height: 0; }
.hero-title .logo { height: max(52px, calc(150 * var(--U))); width: auto; mix-blend-mode: color-dodge; }
.hero-title .tour { height: max(24px, calc(56 * var(--U))); width: auto; margin-top: calc(24 * var(--U)); }

.hero-right { display: flex; align-items: center; gap: max(16px, calc(36 * var(--U))); }
.countdown { display: flex; align-items: flex-end; gap: max(10px, calc(22 * var(--U))); }
.cd-unit { display: flex; align-items: baseline; gap: 5px; }
.cd-unit b {
  font-family: var(--f-latin); font-weight: 600; line-height: 1; color: var(--white);
  font-size: max(30px, calc(62 * var(--U))); min-width: 1.12em; text-align: right;
  text-shadow: -1.5px 0 rgba(var(--red3), .9), 1.5px 0 rgba(var(--blue3), 1);
}
.cd-unit span { font-family: var(--f-display); font-size: max(12px, calc(19 * var(--U))); color: var(--mute); letter-spacing: .1em; }
.cd-done { margin: 0; font-family: var(--f-display); font-size: max(18px, calc(30 * var(--U))); letter-spacing: .14em; color: var(--white); }

.hero-when {
  display: grid; gap: 4px; text-align: left;
  padding-left: max(16px, calc(36 * var(--U)));
  border-left: 1px solid rgba(var(--silver3), .35);
}
.hero-when time { font-family: var(--f-latin); font-weight: 600; font-size: max(18px, calc(30 * var(--U))); letter-spacing: .06em; color: var(--white); white-space: nowrap; }
.hero-when time i { font-style: italic; font-weight: 500; color: var(--mute); font-size: .78em; }
.hero-when time span { color: rgb(236, 120, 140); }
.hero-when small { font-family: var(--f-display); font-size: max(12px, calc(17 * var(--U))); letter-spacing: .14em; color: var(--mute); white-space: nowrap; }

@media (max-width: 760px) {
  .s2-back { background-image: url(hero/m/s2_back.webp); }
  .s1-back { background-image: url(hero/m/s1_back.webp); }
  .hero-bar { background-image: url(hero/m/bar_back.webp); }
}
@media (max-width: 1180px) {
  .hero-bar { flex-direction: column; justify-content: center; gap: 14px; padding-top: 18px; }
  .hero-right { flex-wrap: wrap; justify-content: center; }
}
/* 直式手機：舞台裁掉左右邊框，依比例給高度 */
@media (max-aspect-ratio: 1/1) {
  #hero { height: auto; min-height: 0; }
  .hero-visual { flex: none; height: calc(100vw * 940 / 1500); }
  .stage { --u: calc(100cqw / 1500); }
  .s1-title { --tw: 86cqw; }
  .hero-title { flex-direction: column; gap: 8px; }
  .hero-title .tour { margin-top: 0; }
}
@media (max-width: 480px) {
  .hero-right { flex-direction: column; gap: 10px; }
  .hero-when { border-left: 0; padding-left: 0; text-align: center; border-top: 1px solid rgba(var(--silver3), .25); padding-top: 10px; }
}

/* =========================================================
   滾動拆解票套（沿用梶浦版 3D 折疊邏輯；同一刀模）
   ========================================================= */
#fold { position: relative; background: var(--ink); }
#track { position: relative; height: 750vh; }
#sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
#scene {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 45% 40% at 22% 30%, rgba(var(--red3), .16), transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 70%, rgba(var(--blue3), .2), transparent 70%),
    radial-gradient(ellipse 70% 75% at var(--cx, 50%) 42%, var(--plum) 0%, var(--navy) 48%, var(--ink) 100%);
}
#vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 85% 85% at 50% 45%, transparent 55%, rgb(0 0 0 / .6) 100%); }
/* 票面上的斜向網線，淡淡鋪在背景 */
#scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: repeating-linear-gradient(135deg, var(--silver) 0 1px, transparent 1px 7px);
}
#fold .p3 { transform-style: preserve-3d; position: absolute; }
#world { left: var(--cx, 50%); top: var(--cy, 50%); width: 0; height: 0; z-index: 1; }
#turn, #sheet { left: 0; top: 0; width: 0; height: 0; }
#shadow { position: absolute; left: 0; top: 0; width: 1000px; height: 400px; transform-origin: 0 0; border-radius: 18px; background: rgb(0 0 0 / .75); filter: blur(18px); }
#fold .panel { transform-style: preserve-3d; position: absolute; }
#fold .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-size: 100% 100%; overflow: hidden; }
#fold .face.b { transform: rotateY(180deg); }
#fold .rect .face.b {
  background-image: linear-gradient(165deg, rgb(255 255 255 / .08), rgb(40 30 60 / .10)), url(tex/paper.webp);
  background-size: 100% 100%, 600px 600px; box-shadow: inset 0 0 0 1px rgb(110 100 130 / .18);
}
#fold .shade { position: absolute; inset: 0; background: var(--ink); opacity: 0; }
#back  { left: -650.5px; top: -248.5px; width: 1301px; height: 497px; }
#back .f  { background-image: url(tex/back.webp); }
#inner { left: 0; top: -195px; width: 1301px; height: 195px; transform-origin: 50% 100%; }
#inner .f { background-image: url(tex/inner.webp); }
#front { left: 0; top: 497px; width: 1301px; height: 497px; transform-origin: 50% 0; }
#front .f { background-image: url(tex/front.webp); }
#earL  { left: -92px; top: 0; width: 92px; height: 246px; transform-origin: 100% 50%; }
#earL .f { background-image: url(tex/earL.webp); }
#earL .b { background-image: url(tex/earL_back.webp); }
#earR  { left: 1301px; top: 0; width: 92px; height: 246px; transform-origin: 0 50%; }
#earR .f { background-image: url(tex/earR.webp); }
#earR .b { background-image: url(tex/earR_back.webp); }
#fold .ear .shade { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
#earL .f .shade { -webkit-mask-image: url(tex/earL.webp); mask-image: url(tex/earL.webp); }
#earL .b .shade { -webkit-mask-image: url(tex/earL_back.webp); mask-image: url(tex/earL_back.webp); }
#earR .f .shade { -webkit-mask-image: url(tex/earR.webp); mask-image: url(tex/earR.webp); }
#earR .b .shade { -webkit-mask-image: url(tex/earR_back.webp); mask-image: url(tex/earR_back.webp); }
#ticket { left: 70px; top: 8px; width: 1161px; height: 388px; transform-origin: 50% 50%; visibility: hidden; }
#ticket .f { background-image: url(ticket.png); box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
#ticket .b { background: #fff; }
/* 手機改用 1x 貼圖 */
@media (max-width: 760px) {
  #back .f  { background-image: url(tex/m/back.webp); }
  #inner .f { background-image: url(tex/m/inner.webp); }
  #front .f { background-image: url(tex/m/front.webp); }
  #earL .f { background-image: url(tex/m/earL.webp); }
  #earR .f { background-image: url(tex/m/earR.webp); }
}
#bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; z-index: 2;
  background: linear-gradient(90deg, var(--red), var(--magenta) 50%, var(--blue));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* 跳到票套下載 */
.skip-dl {
  position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); z-index: 3;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px 9px 16px;
  border-radius: 999px; border: 1px solid rgba(var(--silver3), .5);
  background: rgba(11, 7, 16, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--white); text-decoration: none;
  font-family: var(--f-black); font-size: 20px; letter-spacing: .03em;
  box-shadow: -2px 0 18px rgba(var(--red3), .18), 2px 0 18px rgba(var(--blue3), .22);
  transition: background .25s, border-color .25s, transform .25s;
}
.skip-dl svg { width: 18px; height: 18px; color: rgb(236, 120, 140); animation: nudge 1.8s ease-in-out infinite; }
.skip-dl:hover { background: rgba(64, 37, 72, .85); border-color: rgba(var(--silver3), .85); transform: translateX(-50%) translateY(-2px); }
@media (max-width: 760px) { .skip-dl { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 7, 16, .85); } }
@keyframes nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }

/* =========================================================
   票套下載
   ========================================================= */
#download {
  position: relative; padding: clamp(72px, 12vh, 128px) 16px;
  background:
    linear-gradient(var(--ink), rgba(11, 7, 16, 0) 18%, rgba(11, 7, 16, 0) 82%, var(--ink)),
    radial-gradient(ellipse 60% 38% at 50% 8%, rgba(var(--red3), .16), transparent 75%),
    radial-gradient(ellipse 55% 60% at 50% 55%, rgba(11, 7, 16, .55), transparent 80%),
    linear-gradient(rgba(11, 7, 16, .35), rgba(11, 7, 16, .35)),
    url(hero/s2_back.webp) center / cover no-repeat,
    var(--ink);
}
#download::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(560px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--red3), .8), rgba(var(--silver3), .8), rgba(var(--blue3), .9), transparent);
}
.dl-in { position: relative; max-width: 680px; margin: 0 auto; display: grid; gap: 26px; }
.dl-head { text-align: center; display: grid; justify-items: center; gap: 10px; margin-bottom: 8px; }
.dl-head .eyebrow { margin: 0; font-family: var(--f-black); font-size: 24px; letter-spacing: .04em; color: var(--silver); opacity: .85; }
.dl-head h2 {
  margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 5vw, 42px);
  letter-spacing: .24em; padding-left: .24em; color: var(--white);
  text-shadow: -2px 0 rgba(var(--red3), .85), 2px 0 rgba(var(--blue3), .95), 0 0 28px rgba(var(--silver3), .18);
}
.dl-head .rule { display: block; width: 44px; height: 1px; margin: 4px 0; background: var(--silver); opacity: .6; }
.dl-head .sub { margin: 0; font-family: var(--f-display); font-size: 15px; letter-spacing: .16em; color: var(--silver); }

/* 模擬圖：銀白細框＋紅藍光暈 */
.mock {
  position: relative; margin: 0; border-radius: 3px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(var(--silver3), .4), 0 28px 70px rgba(0, 0, 0, .7), -18px 0 60px rgba(var(--red3), .14), 18px 0 60px rgba(var(--blue3), .18);
}
.mock img { display: block; width: 100%; height: auto; }
.mock-btn {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: 999px; background: rgba(11, 7, 16, .86); color: var(--white);
  border: 1px solid rgba(var(--silver3), .5); text-decoration: none;
  font-family: var(--f-display); font-size: 14px; letter-spacing: .1em;
  backdrop-filter: blur(4px); transition: background .2s, transform .2s;
}
.mock-btn svg { width: 16px; height: 16px; color: rgb(236, 120, 140); }
.mock-btn:hover { background: rgba(64, 37, 72, .95); transform: translateY(-1px); }

/* 取件卡：網格紫紅紙面＋內側銀框 */
.ticket-card {
  position: relative;
  display: grid; grid-template-columns: 200px 1fr; gap: 22px 28px; align-items: center;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgba(var(--silver3), .045) 0 1px, transparent 1px 7px),
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(var(--red3), .32), transparent 70%),
    radial-gradient(ellipse 70% 90% at 100% 100%, rgba(var(--blue3), .34), transparent 70%),
    linear-gradient(160deg, var(--wine), var(--plum) 50%, var(--navy));
  box-shadow: 0 0 0 1px rgba(var(--silver3), .35), 0 28px 70px rgba(0, 0, 0, .6);
}
.ticket-card::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none; border-radius: 2px;
  border: 1px solid rgba(var(--silver3), .18);
}
.qr-box {
  position: relative; background: #fff; border-radius: 2px; padding: 6px;
  box-shadow: 0 0 0 1px rgba(var(--silver3), .6), 0 0 0 5px rgba(11, 7, 16, .6), 0 0 0 6px rgba(var(--silver3), .25);
}
.qr-box img { display: block; width: 100%; height: auto; }
.qr-empty {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center; text-align: center;
  border: 1.5px dashed #bbb; color: #999; font-size: 12px; line-height: 1.6;
}

.ticket-info { position: relative; margin: 0; display: grid; gap: 14px; }
.ticket-info dt { font-family: var(--f-display); font-size: 14px; font-weight: 500; color: var(--mute); letter-spacing: .16em; }
.ticket-info dd { margin: 4px 0 0; font-size: 15px; color: var(--white); letter-spacing: .06em; }
.ticket-info dd.hl {
  font-family: var(--f-latin); font-weight: 600; font-size: 24px; color: var(--white); letter-spacing: .06em;
  text-shadow: -1px 0 rgba(var(--red3), .9), 1px 0 rgba(var(--blue3), 1);
}
.ticket-info .credit { padding-top: 14px; border-top: 1px solid rgba(var(--silver3), .2); }
.ticket-info .credit dt { font-size: 13px; }
.ticket-info .credit dd { font-family: var(--f-latin); font-size: 18px; }
.ticket-info .credit a { color: var(--silver); text-decoration: none; border-bottom: 1px solid rgba(var(--silver3), .4); }
.ticket-info .credit a:hover { color: var(--white); }

/* 紅→紫→藍 網格漸層按鈕 */
.save-btn {
  position: relative; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; text-decoration: none; overflow: hidden;
  padding: 16px; border-radius: 2px; color: var(--white);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 6px),
    linear-gradient(100deg, rgb(138, 30, 46) 0%, var(--red) 22%, var(--magenta) 50%, var(--blue) 78%, rgb(42, 55, 105) 100%);
  box-shadow: 0 0 0 1px rgba(var(--silver3), .45) inset, 0 10px 30px rgba(var(--blue3), .25);
  font-family: var(--f-latin); font-style: italic; font-size: 21px; font-weight: 600; letter-spacing: .05em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  transition: filter .2s, transform .2s;
}
.save-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 245, 255, .45) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.save-btn svg { width: 20px; height: 20px; flex: none; }
.save-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.save-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.fineprint { margin: 4px 0 0; text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--mute); opacity: .85; }

@media (max-width: 480px) {
  .ticket-card { grid-template-columns: 1fr; }
  .qr-box { width: min(240px, 78%); justify-self: center; }
  .ticket-info { text-align: center; }
}

/* 防反白、防拖曳圖片、防長按選單 */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; user-drag: none; }

#sparkle { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
a:focus-visible { outline: 2px solid rgb(236, 120, 140); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene1 { display: none !important; }
  body.intro .stage { animation: none; }
  .halo, .save-btn::after, .skip-dl svg { animation: none !important; }
}
