/* 概念 D：府城金夜 Gilded Tainan Night
   延續活動主視覺「香火食光」的墨綠＋金：WebGL 絲緞流光、祥雲紋、飄升的燈籠；襯線金箔大標會反光，拱門形插畫窗、朱印編號；轉場是屏風開闔與金光掃過 */
[data-theme="gilded"] {
    --gs-bg: #051d1c; --gs-ink: #f7efd9; --gs-ink-2: rgba(247, 239, 217, .7); --gs-accent: #e8c477; --gs-accent-2: #0f4a45; --gs-hi: #f3d68c;
    --gs-panel: rgba(232, 196, 119, .07); --gs-line: rgba(232, 196, 119, .24);
    --gs-cap-bg: rgba(4, 22, 21, .84); --gs-cap-ink: #fff4d6; --gs-cap-dim: rgba(255, 244, 214, .36);
    --gs-frame: #0b0f0f; --gs-frame-edge: #b38b3c;
    --gold: linear-gradient(100deg, #a9792a 0%, #f6e1a0 20%, #c9a14a 38%, #fff4cf 50%, #c9a14a 62%, #f2d88f 82%, #9c6f25 100%);
    --vermilion: #b8322a;
}
[data-theme="gilded"] .gs-bg-decor { left: -600px; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='190' viewBox='0 0 300 190'%3E%3Cg fill='none' stroke='%23e8c477' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M24 124c0-24 32-30 42-10 8-24 48-22 48 6 16-12 40 0 36 18H24z'/%3E%3Cpath d='M58 108c5-8 15-8 17 0M92 106c4-6 12-6 13 1'/%3E%3Cpath d='M170 58c0-18 25-22 32-6 5-16 34-14 34 4 12-9 30 0 26 13h-92z'/%3E%3Cpath d='M196 46c4-5 10-5 12 0'/%3E%3C/g%3E%3C/svg%3E"); background-size: 300px 190px; animation: gdClouds 80s linear infinite; }
@keyframes gdClouds { to { transform: translateX(600px); } }   /* 移動整層而不是 background-position：後者每一格都要重畫整個舞台背景 */
[data-theme="gilded"] .gs-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, transparent 35%, rgba(0, 0, 0, .55) 100%); pointer-events: none; }
[data-theme="gilded"] .gs-brand { font-family: var(--gs-font-display); color: #f3e2b0; }
[data-theme="gilded"] .gs-brand em { border-color: rgba(232, 196, 119, .45); color: #e8c477; }
/* 金箔字 */
[data-theme="gilded"] :is(.gs-title, .gs-big) .kc { background: var(--gold); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="gilded"] .gs-scene.on :is(.gs-title, .gs-big) .kc { animation: gdChar 1.2s var(--ease) calc(var(--ed, 0s) + .25s + var(--i) * .05s) both, gdShine 7s ease-in-out calc(var(--i) * .09s) 2; }   /* 反光每一格都要重畫文字：進場後閃兩輪就停在金箔色（標題也出現在很長的手機段落裡） */
@keyframes gdChar { from { opacity: 0; transform: translateY(.25em); } to { opacity: 1; transform: none; } }
@keyframes gdShine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
[data-theme="gilded"] .gs-title { font-weight: 900; letter-spacing: .04em; }
[data-theme="gilded"] .gs-big { font-weight: 900; letter-spacing: .06em; }
[data-theme="gilded"] .gs-kicker { color: #e8c477; letter-spacing: .3em; font-family: var(--gs-font-display); }
[data-theme="gilded"] .gs-kicker::before { content: '◆'; width: auto; height: auto; background: none; font-size: 22px; }
[data-theme="gilded"] .gs-kicker::after { content: ''; width: 90px; height: 1px; background: linear-gradient(90deg, #e8c477, transparent); }
[data-theme="gilded"] .gs-unit b { border-radius: 4px; background: var(--vermilion); font-family: var(--gs-font-display); }
[data-theme="gilded"] .gs-dots i.now { background: #e8c477; }
[data-theme="gilded"] .gs-path li span { border-radius: 6px; border: 1.5px solid rgba(232, 196, 119, .5); background: rgba(5, 29, 28, .5); color: #f3e2b0; }
[data-theme="gilded"] .gs-path li + li::before { background: rgba(232, 196, 119, .5); }
[data-theme="gilded"] .gs-path li.on span { background: linear-gradient(135deg, #f3d68c, #c9a14a); color: #2b1d05; border-color: #f3d68c; box-shadow: 0 0 30px rgba(232, 196, 119, .35); }
[data-theme="gilded"] .gs-path li.on::before { background: #e8c477; }
[data-theme="gilded"] .gs-step { border-radius: 8px; background: var(--vermilion); box-shadow: 0 0 0 3px #051d1c, 0 0 0 5px rgba(232, 196, 119, .6); transform: rotate(-4deg); font-family: var(--gs-font-display); }
/* 開場：拱門形插畫窗 */
[data-theme="gilded"] .gs-hero { top: 150px; right: 190px; bottom: auto; width: 600px; height: 720px; border-radius: 300px 300px 18px 18px; -webkit-mask-image: none; mask-image: none; border: 3px solid #c9a14a; box-shadow: 0 0 0 10px #051d1c, 0 0 0 12px rgba(232, 196, 119, .55), 0 40px 120px rgba(0, 0, 0, .6), 0 0 120px rgba(232, 196, 119, .18); }
[data-theme="gilded"] .gs-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 29, 28, .65), transparent 40%), linear-gradient(180deg, rgba(255, 210, 140, .18), transparent 30%); }
[data-theme="gilded"] .gs-scene.on .gs-hero { animation: gdHero 1.8s var(--ease) calc(var(--ed, 0s) + .2s) both; }
@keyframes gdHero { from { opacity: 0; clip-path: inset(100% 0 0 0 round 300px 300px 18px 18px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 300px 300px 18px 18px); } }
[data-theme="gilded"] .gs-bignum { font-family: var(--gs-font-display); font-weight: 900; -webkit-text-stroke: 1.5px rgba(232, 196, 119, .22); left: 760px; right: auto; bottom: -150px; font-size: 560px; }
[data-theme="gilded"] .gs-sub { border-radius: 6px; background: var(--vermilion); box-shadow: 0 0 0 3px #051d1c, 0 0 0 5px rgba(232, 196, 119, .6), 0 18px 40px rgba(0, 0, 0, .4); font-family: var(--gs-font-display); color: #fff4d6; }
[data-theme="gilded"] .gs-count { font-family: var(--gs-font-display); }
[data-theme="gilded"] .gs-count b { color: #e8c477; }
[data-theme="gilded"] .gs-mark .mark { filter: drop-shadow(0 0 24px rgba(232, 196, 119, .4)); }
/* 裝置：墨色機身、金色邊緣光 */
[data-theme="gilded"] .gs-frame.mock-phone { box-shadow: 0 0 0 1.5px #d7b25f, 0 0 0 4px #0b0f0f, 0 0 60px rgba(232, 196, 119, .22), 0 70px 140px -20px rgba(0, 0, 0, .8); }
[data-theme="gilded"] .gs-floor { background: radial-gradient(closest-side, rgba(255, 170, 80, .5), rgba(232, 196, 119, .15) 60%, transparent); }
[data-theme="gilded"] .gs-try span { background: var(--vermilion); box-shadow: 0 0 0 3px #051d1c, 0 0 0 5px rgba(232, 196, 119, .6), 0 16px 40px rgba(0, 0, 0, .5); }
[data-theme="gilded"] .gs-try span::before { border-color: rgba(232, 196, 119, .7); }
[data-theme="gilded"] .gs-try b { background: rgba(5, 29, 28, .75); color: #f3e2b0; border: 1px solid rgba(232, 196, 119, .4); }
[data-theme="gilded"] .gs-notice { background: #f7efd9; color: #1c1405; border-radius: 10px; box-shadow: 0 0 0 4px #051d1c, 0 0 0 6px rgba(232, 196, 119, .6), 0 26px 60px rgba(0, 0, 0, .45); }
[data-theme="gilded"] .gs-notice small { color: var(--vermilion); }
/* 清單：朱印編號 */
[data-theme="gilded"] .gs-checks li { border-radius: 10px; border: 1px solid rgba(232, 196, 119, .3); background: linear-gradient(90deg, rgba(232, 196, 119, .09), rgba(232, 196, 119, .02)); }
[data-theme="gilded"] .gs-tick { border-radius: 8px; background: var(--vermilion); transform: rotate(-5deg); font-family: var(--gs-font-display); box-shadow: inset 0 0 0 3px rgba(255, 240, 220, .5); }
[data-theme="gilded"] .gs-ck-text b { font-family: var(--gs-font-display); color: #f3e2b0; }
[data-theme="gilded"] .gs-illus-ring { border-radius: 300px 300px 20px 20px; width: 440px; height: 540px; border: 2px solid rgba(232, 196, 119, .5); background: radial-gradient(circle at 50% 40%, rgba(255, 190, 110, .25), transparent 70%); }
[data-theme="gilded"] .gs-illus-orbit { display: none; }
/* 字幕 */
[data-theme="gilded"] .gs-caption p { border-radius: 8px; border-top: 2px solid rgba(232, 196, 119, .7); }
[data-theme="gilded"] .gs-caption span.on { color: #ffe9b0; text-shadow: 0 0 16px rgba(232, 196, 119, .35); }
[data-theme="gilded"] .gs-coach-tip { background: #f3d68c; color: #2b1d05; border-radius: 10px; }
[data-theme="gilded"] .gs-coach-pos[data-side="left"] .gs-coach-tip::after { border-left-color: #f3d68c; }
[data-theme="gilded"] .gs-rings i { border-color: #f3d68c; box-shadow: 0 0 30px rgba(243, 214, 140, .6); }
[data-theme="gilded"] .gs-ov-screens i { background: #0b3b37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='190' viewBox='0 0 300 190'%3E%3Cg fill='none' stroke='%23e8c477' stroke-opacity='.35' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M24 124c0-24 32-30 42-10 8-24 48-22 48 6 16-12 40 0 36 18H24z'/%3E%3Cpath d='M170 58c0-18 25-22 32-6 5-16 34-14 34 4 12-9 30 0 26 13h-92z'/%3E%3C/g%3E%3C/svg%3E"); box-shadow: inset 0 0 0 14px #0b3b37, inset 0 0 0 16px rgba(232, 196, 119, .6); }
[data-theme="gilded"] .gs-toast { background: #f3d68c; color: #2b1d05; }
[data-theme="gilded"] .gs-qr img { box-shadow: 0 0 0 6px #051d1c, 0 0 0 8px rgba(232, 196, 119, .6); }
[data-format="portrait"][data-theme="gilded"] .gs-hero { left: 240px; right: 240px; width: auto; top: 170px; height: 760px; }
