/* GuideStage 基本樣式：舞台（1920×1080／1080×1920 設計尺寸，整體縮放）、段落版面、裝置外框、字幕、互動導覽、播放器控制列
   顏色、字型、裝飾由 css/themes/*.css 以 [data-theme] 覆寫下列變數 */
.gs-player {
    --gs-bg: #0c1512; --gs-ink: #f4f1ea; --gs-ink-2: rgba(244, 241, 234, .66); --gs-accent: #dc6c45; --gs-accent-2: #3f6655; --gs-hi: #9fe6c8;
    --gs-panel: rgba(255, 255, 255, .08); --gs-line: rgba(255, 255, 255, .16); --gs-cap-bg: rgba(10, 18, 15, .82); --gs-cap-ink: #fff; --gs-cap-dim: rgba(255, 255, 255, .42);
    /* 字型沿用正式站的系統字型（不下載網路字型）；風格提案頁的另外四種風格在各自的 themes/*.css 保留原本的字型 */
    --gs-font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Heiti TC", "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", "WenQuanYi Zen Hei", sans-serif;
    --gs-font-body: var(--gs-font-display);
    --gs-font-latin: var(--gs-font-display);
    --gs-frame: #15191b; --gs-frame-edge: #3b4246; --gs-ui-bg: rgba(12, 18, 16, .66); --gs-ui-ink: #fff;
    --ease: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
    --ry0: -9deg; --rx0: 3deg; --rz0: 0deg; --dk: 1.1;
    position: relative; isolation: isolate; width: 100%; color: var(--gs-ink); font-family: var(--gs-font-body);
    -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.gs-player *, .gs-player *::before, .gs-player *::after { box-sizing: border-box; }
.gs-viewport { position: relative; width: 100%; overflow: hidden; border-radius: inherit; background: var(--gs-bg); }
.gs-stage { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; background: var(--gs-bg); contain: layout paint; }
.gs-player :is(h1, h2, h3, p, ol, ul) { margin: 0; }
.gs-player img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }   /* 只用元素選擇器：.gs-b、.gs-start-play 等自己設定的字級、字重才會生效（原本 .gs-player button 會蓋掉） */
.gs-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs-i:is(.i-play, .i-pause) { fill: currentColor; stroke: none; }

/* ── 背景 ── */
.gs-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; transition: opacity .45s; }
.gs-bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gs-bg-decor { position: absolute; inset: 0; pointer-events: none; }
.gs-particles { position: absolute; inset: 0; pointer-events: none; }
.gs-particles { --rise: 1300px; }
[data-format="portrait"] .gs-particles { --rise: 2150px; }
.gs-particles i { position: absolute; left: var(--x); top: calc(100% + 60px); width: var(--s); height: var(--s); border-radius: 50%; opacity: 0; background: radial-gradient(circle, var(--c) 0%, transparent 70%); animation: gsFloat var(--dur) linear var(--del) infinite; }
@keyframes gsFloat { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: var(--o); } 50% { transform: translate(var(--sw), calc(var(--rise) * -.5)); } 90% { opacity: var(--o); } 100% { transform: translate(0, calc(var(--rise) * -1)); opacity: 0; } }
/* 天燈：圓頂紙燈籠＋底部火光 */
.gs-particles[data-kind="lanterns"] i { width: calc(var(--s) * 1.1); height: calc(var(--s) * 1.35); border-radius: 44% 44% 22% 22% / 52% 52% 16% 16%; background: radial-gradient(ellipse at 50% 88%, #fff6d2 0%, #ffd27a 18%, var(--c) 45%, #b8481c 100%); box-shadow: 0 0 calc(var(--s) * .9) calc(var(--s) * .15) rgba(255, 150, 60, .55); animation-name: gsLantern; animation-duration: calc(var(--dur) * 1.9); animation-timing-function: linear; }
@keyframes gsLantern { 0% { transform: translate(0, 0) rotate(-3deg); opacity: 0; } 8% { opacity: var(--o); } 35% { transform: translate(calc(var(--sw) * .6), calc(var(--rise) * -.35)) rotate(4deg); } 70% { transform: translate(var(--sw), calc(var(--rise) * -.7)) rotate(-4deg); } 92% { opacity: calc(var(--o) * .8); } 100% { transform: translate(calc(var(--sw) * .4), calc(var(--rise) * -1)) rotate(2deg); opacity: 0; } }
.gs-particles[data-kind="orbs"] i { top: var(--y); border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 30%, rgba(255, 255, 255, .06) 62%, rgba(255, 255, 255, .22) 100%); box-shadow: inset -8px -10px 24px rgba(160, 190, 180, .25), 0 20px 40px rgba(80, 110, 100, .12); opacity: .55; animation-name: gsOrb; animation-duration: calc(var(--dur) * 1.5); }
@keyframes gsOrb { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(var(--sw), -60px); } }

/* ── 固定元素 ── */
.gs-world { position: absolute; inset: 0; z-index: 1; perspective: 2200px; perspective-origin: 50% 45%; }
.gs-scenes { position: absolute; inset: 0; transform-style: preserve-3d; }
.gs-brand { position: absolute; left: 80px; top: 54px; z-index: 5; display: flex; align-items: center; gap: 16px; font-family: var(--gs-font-display); font-size: 30px; font-weight: 900; letter-spacing: .04em; color: var(--gs-ink); pointer-events: none; }
.gs-brand .mark { width: 56px; height: 56px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25)); }
.gs-brand em { margin-left: 6px; padding: 6px 14px; border: 1.5px solid var(--gs-line); border-radius: 999px; font-style: normal; font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--gs-ink-2); }
.gs-dots { display: flex; gap: 6px; }
.gs-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--gs-line); transition: background .4s, width .4s; }
.gs-dots i.past { background: var(--gs-ink-2); }
.gs-dots i.now { width: 26px; border-radius: 9px; background: var(--gs-accent); }

/* ── 段落：共用 ── */
.gs-scene { position: absolute; inset: 0; transform-style: preserve-3d; backface-visibility: hidden; }
.gs-a, .gs-scene .kc { opacity: 0; }
.gs-scene.on .gs-a { animation: gsUp .9s var(--ease) calc(var(--ed, 0s) + var(--d, 0s)) both; }
.gs-scene.on .kc { display: inline-block; animation: gsChar 1s var(--ease) calc(var(--ed, 0s) + .22s + var(--i) * .045s) both; }
.kl { display: block; white-space: nowrap; }
@keyframes gsUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes gsChar { from { opacity: 0; transform: translateY(.55em) rotate(8deg) scale(.9); } to { opacity: 1; transform: none; } }
.gs-scene .ani-s { opacity: 0; }
.gs-scene.on .ani-s.show { animation: gsItem .8s var(--ease) var(--d, 0s) both; }
@keyframes gsItem { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
/* 暫停時凍結段落裡的動畫（探索、互動導覽時手機照常動） */
.gs-player.gs-paused:not(.gs-exploring):not(.gs-coaching) .gs-scene * { animation-play-state: paused !important; }

/* 文字欄 */
.gs-text { position: absolute; z-index: 3; left: 120px; top: 170px; bottom: 210px; width: 820px; display: flex; flex-direction: column; justify-content: center; }
.gs-unit { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 26px; font-weight: 700; color: var(--gs-ink-2); }
.gs-unit b { padding: 4px 14px; border-radius: 10px; background: var(--gs-accent); color: #fff; font-family: var(--gs-font-latin); font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.gs-unit b:empty { display: none; }
.gs-unit .gs-dots { margin-left: 8px; }
.gs-step { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 22px; border-radius: 28px; background: var(--gs-accent); color: #fff; font-family: var(--gs-font-latin); font-size: 44px; font-weight: 900; box-shadow: 0 0 0 12px rgba(220, 108, 69, .16); }
.gs-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; font-size: 32px; font-weight: 900; letter-spacing: .18em; color: var(--gs-accent); }
.gs-kicker::before { content: ''; width: 46px; height: 4px; border-radius: 4px; background: currentColor; }
.gs-title { margin-bottom: 28px; font-family: var(--gs-font-display); font-size: 88px; font-weight: 900; line-height: 1.16; letter-spacing: .01em; color: var(--gs-ink); }
.gs-lead { font-size: 36px; line-height: 1.6; color: var(--gs-ink-2); }
/* 操作路徑：A → B → C */
.gs-path { display: flex; flex-wrap: wrap; gap: 14px 12px; padding: 0; list-style: none; }
.gs-path li { position: relative; display: flex; align-items: center; gap: 12px; font-size: 29px; font-weight: 700; color: var(--gs-ink-2); }
.gs-path li span { padding: 12px 22px; border-radius: 18px; border: 2px solid var(--gs-line); background: var(--gs-panel); transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.gs-path li + li::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--gs-line); }
.gs-path li.on span { border-color: var(--gs-accent); background: var(--gs-accent); color: #fff; box-shadow: 0 10px 30px rgba(220, 108, 69, .35); }
.gs-path li.on::before { background: var(--gs-accent); }

/* ── 裝置 ── */
.gs-visual { position: absolute; z-index: 2; top: 0; bottom: 110px; right: 120px; width: 760px; display: grid; place-items: center; }
.gs-stage-device { position: relative; transform: scale(var(--dk)); transform-origin: 50% 50%; }
.gs-scene.on:not(.gs-kept) .gs-stage-device { animation: gsDevIn 1.3s var(--ease) calc(var(--ed, 0s) + .05s) both; }
@keyframes gsDevIn { from { opacity: 0; transform: translateY(120px) scale(calc(var(--dk) * .9)) rotate(4deg); } to { opacity: 1; transform: scale(var(--dk)); } }
.gs-device { position: relative; width: 480px; transform-style: preserve-3d;
    transform: perspective(2000px) rotateY(calc(var(--ry0) + var(--tx, 0) * 7deg)) rotateX(calc(var(--rx0) - var(--ty, 0) * 5deg)) rotate(var(--rz0));   /* 上下漂浮由 engine.js 寫在 translate（不經 CSS 變數） */
    transition: transform .8s var(--ease); }
.gs-player:is(.gs-exploring, .gs-coaching) .gs-device { transform: perspective(2000px) scale(1.035); }
.gs-device[data-device="tablet"] { width: 640px; }
.gs-frame.mock-phone { position: relative; width: 100%; padding: 0; border: 15px solid var(--gs-frame); border-radius: 66px; background: transparent;
    box-shadow: 0 0 0 2px var(--gs-frame-edge), 0 0 0 3.5px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 60px 120px -20px rgba(0, 0, 0, .55), 0 30px 60px -30px rgba(0, 0, 0, .45); }
.gs-frame .mp-screen { height: 800px; border-radius: 51px; transform-origin: 50% 50%; isolation: isolate; }
.gs-device[data-device="tablet"] .gs-frame { border-width: 22px; border-radius: 46px; }
.gs-device[data-device="tablet"] .mp-screen { height: 760px; border-radius: 24px; }
.gs-frame::before { content: ''; position: absolute; z-index: 32; top: 12px; left: 50%; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #050607; pointer-events: none; }
.gs-device[data-device="tablet"] .gs-frame::before { width: 12px; height: 12px; margin-left: -6px; top: -16px; border-radius: 50%; background: #2a2f33; }
.gs-glare { position: absolute; inset: 0; z-index: 33; border-radius: 51px; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 26%, rgba(255, 255, 255, 0) 42%); transform: translateX(calc(var(--tx, 0) * -24px)); opacity: .8; }   /* 白色漸層用一般混合和 screen 結果相同，不用 mix-blend-mode */
.gs-device[data-device="tablet"] .gs-glare { border-radius: 24px; }
.gs-btn-side { position: absolute; width: 5px; border-radius: 3px; background: var(--gs-frame-edge); }
.gs-btn-side.a { left: -4px; top: 170px; height: 64px; }
.gs-btn-side.b { left: -4px; top: 250px; height: 64px; }
.gs-btn-side.c { right: -4px; top: 210px; height: 100px; }
.gs-device[data-device="tablet"] .gs-btn-side { display: none; }
.gs-floor { position: absolute; left: 8%; right: 8%; bottom: -58px; height: 94px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); opacity: .8; pointer-events: none; }
/* 手機狀態列 */
.gs-status { position: absolute; z-index: 31; left: 0; right: 0; top: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 40px; font: 700 17px/1 -apple-system, "SF Pro Text", "Inter", sans-serif; color: #111; pointer-events: none; }
.gs-status span { display: flex; align-items: center; gap: 6px; }
.gs-status i { display: block; }
.gs-status .sig { width: 18px; height: 11px; background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px, transparent 8px 10px, currentColor 10px 13px, transparent 13px 15px, currentColor 15px 18px); -webkit-mask: linear-gradient(to top, #000 40%, transparent 40%), linear-gradient(to top, #000 100%, #000 0); clip-path: polygon(0 70%, 18% 70%, 18% 45%, 46% 45%, 46% 25%, 72% 25%, 72% 0, 100% 0, 100% 100%, 0 100%); }
.gs-status .wifi { width: 16px; height: 12px; border-radius: 16px 16px 0 0; background: radial-gradient(circle at 50% 100%, currentColor 0 22%, transparent 23% 40%, currentColor 41% 58%, transparent 59% 76%, currentColor 77% 95%, transparent 96%); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gs-status .bat { width: 26px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .9; background: linear-gradient(90deg, currentColor 70%, transparent 70%) 1.5px 1.5px / calc(100% - 3px) calc(100% - 3px) no-repeat; }
.t-app[data-step="camera"] .gs-status { color: #fff; }
/* 點擊示意：白圈＋擴散 */
.gs-device .jy-tap { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .28); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(255, 107, 53, .95), 0 0 30px 6px rgba(255, 107, 53, .55); }
.gs-device .jy-tap::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(255, 107, 53, .8); opacity: 0; }
.gs-scene.tap-on .gs-device .jy-tap::after, .t-journey[data-phase$="-tap"] .gs-device .jy-tap::after { animation: gsTapRing .9s var(--ease) .15s both; }
@keyframes gsTapRing { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(2.4); } }
.gs-await .jy-tap { visibility: hidden; }
/* 服務選單收合（探索模式可以打開） */
.jy-chat.gs-rich-closed .jy-rich { display: none; }
.jy-chat.gs-rich-closed .gs-caret { display: inline-block; transform: rotate(180deg); }
.gs-caret { font-style: normal; }
/* LIFF 視窗的返回鍵：只在探索模式、不在首頁時出現 */
.gs-back { display: none; margin-right: 10px; font-size: 30px; line-height: 1; color: #555; }
.exploring:not([data-screen="member"]):not([data-screen="dashboard"]):not([data-screen="counter"]) .jy-sh-head .gs-back { display: block; }
/* 探索模式：手機可點的元素顯示手指 */
.gs-exploring .gs-device { cursor: pointer; }
.gs-exploring .gs-device [data-tap] { cursor: pointer; }
.gs-exploring .gs-device .ap-scroll { transition: margin-top .25s var(--ease); }
.gs-exploring .gs-text, .gs-exploring .gs-notice { opacity: .28; transition: opacity .5s; }
.gs-scene:not(.gs-exploring) .gs-device { cursor: pointer; }
/* 「點手機，自己試試」：貼在手機左下角的浮動按鈕 */
.gs-try { position: absolute; z-index: 40; left: -96px; bottom: 120px; display: grid; justify-items: center; gap: 8px; width: 132px; padding: 0; border: 0; background: none; color: var(--gs-ink); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.gs-try span { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--gs-accent); color: #fff; font-size: 44px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 8px rgba(255, 255, 255, .08); }
.gs-try span::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--gs-accent); opacity: .55; }
.gs-try b { padding: 6px 12px; border-radius: 12px; background: var(--gs-panel); font-size: 21px; font-weight: 800; line-height: 1.3; text-align: center; }
/* 按鈕是靜態的，只淡入淡出（影片本身的動畫已經夠多，不讓脈動光圈、手勢搖擺一直佔著畫面更新）；
   只在手機真的能操作時出現（engine.js 加上 .gs-try-on：手機進場完、不是相機掃描或載入中的過渡畫面） */
.gs-scene.on.gs-try-on .gs-try { opacity: 1; visibility: visible; transition: opacity .35s; }
.gs-scene:not(.t-app) .gs-try, .gs-exploring .gs-try, .gs-coaching .gs-try { display: none; }
/* 說明卡（chat／admin） */
.gs-notice { position: absolute; z-index: 5; left: -60px; bottom: 120px; width: 440px; padding: 24px 28px; border-radius: 26px; background: var(--gs-ink); color: var(--gs-bg); box-shadow: 0 26px 60px rgba(0, 0, 0, .35); transform-origin: 0 100%; }
.gs-notice small { display: block; margin-bottom: 8px; font-size: 24px; font-weight: 900; color: var(--gs-accent); }
.gs-notice p { font-size: 26px; font-weight: 700; line-height: 1.5; }

/* ── title ── */
.gs-hero { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 58%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%); mask-image: linear-gradient(90deg, transparent, #000 34%); }
.gs-hero-img { position: absolute; inset: 0; }
.gs-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.gs-scene.on .gs-hero-img img { animation: gsKen 18s linear calc(var(--ed, 0s)) both; }
.gs-hero-small .gs-hero-img img:not(.gs-hero-bg) { position: relative; object-fit: contain; padding: 9% 12%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.gs-hero-bg { position: absolute; inset: -8%; width: 116% !important; height: 116% !important; object-fit: cover; filter: blur(26px) brightness(.72) saturate(1.25); }
@keyframes gsKen { from { transform: scale(1.14) translateX(2%); } to { transform: scale(1.02); } }
.gs-bignum { position: absolute; z-index: 0; right: -30px; bottom: -120px; font-family: var(--gs-font-latin); font-size: 620px; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 3px var(--gs-line); pointer-events: none; }
.gs-scene.on .gs-bignum { animation: gsBig 1.6s var(--ease) calc(var(--ed, 0s)) both; }
@keyframes gsBig { from { opacity: 0; transform: translateX(160px); } to { opacity: 1; transform: none; } }
.gs-marquee { display: none; }
.gs-title-text { z-index: 3; top: 150px; bottom: 190px; width: 900px; }
.gs-mark .mark { width: 120px; height: 120px; margin-bottom: 26px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .3)); }
.gs-count { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-family: var(--gs-font-latin); color: var(--gs-ink-2); }
.gs-count b { font-size: 44px; font-weight: 800; color: var(--gs-ink); }
.gs-count span { font-size: 26px; }
.gs-big { display: grid; margin: 10px 0 34px; font-family: var(--gs-font-display); font-size: 150px; font-weight: 900; line-height: 1.04; letter-spacing: .02em; color: var(--gs-ink); }
.gs-sub { align-self: flex-start; padding: 16px 36px; border-radius: 999px; background: var(--gs-accent); color: #fff; font-size: 38px; font-weight: 900; letter-spacing: .06em; box-shadow: 0 16px 34px rgba(220, 108, 69, .35); }

/* ── checklist ── */
.gs-checks { display: grid; gap: 22px; margin-top: 8px; padding: 0; list-style: none; }
.gs-checks li { display: flex; align-items: flex-start; gap: 24px; padding: 22px 28px; border-radius: 26px; background: var(--gs-panel); border: 1.5px solid var(--gs-line); }
.gs-tick { position: relative; flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--gs-accent); color: #fff; font-family: var(--gs-font-latin); font-size: 30px; font-weight: 800; }
.gs-tick svg { position: absolute; width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.gs-tick b { transition: opacity .3s .4s; }
.gs-scene.on .gs-checks li.show .gs-tick svg { animation: gsDraw .6s var(--ease) .5s both; }
.gs-scene.on .gs-checks li.show .gs-tick b { opacity: 0; }
@keyframes gsDraw { to { stroke-dashoffset: 0; } }
.gs-ck-text b { display: block; font-size: 40px; font-weight: 900; line-height: 1.3; color: var(--gs-ink); }
.gs-ck-text small { display: block; margin-top: 4px; font-size: 30px; line-height: 1.5; color: var(--gs-ink-2); }
.cols2 .gs-text { width: auto; right: 120px; }
.gs-checks.cols { grid-template-columns: 1fr 1fr; }
.gs-illus { right: 160px; width: 640px; }
.gs-illus img { position: relative; z-index: 1; width: 300px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .3)); }
.gs-illus-ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, var(--gs-panel), transparent 70%); border: 2px solid var(--gs-line); }
.gs-illus-orbit { position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 2px dashed var(--gs-line); animation: gsSpin 60s linear infinite; }
.gs-scene.on .gs-illus img { animation: gsPop 1s var(--spring) calc(var(--ed, 0s) + .3s) both; }
@keyframes gsPop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes gsSpin { to { transform: rotate(360deg); } }

/* ── end ── */
.gs-end-text { left: 0; right: 0; width: auto; top: 120px; bottom: 120px; align-items: center; text-align: center; }
.gs-end-text .gs-big { font-size: 130px; justify-items: center; margin-bottom: 26px; }
.gs-end-text .gs-sub { align-self: center; }
.gs-qr { display: grid; justify-items: center; gap: 12px; margin: 30px 0 18px; }
.gs-qr img { width: 210px; padding: 16px; border-radius: 28px; background: #fff; box-shadow: 0 20px 44px rgba(0, 0, 0, .25); }
.gs-qr span { font-size: 28px; font-weight: 800; }
.gs-url { margin: 30px 0 14px; font-family: var(--gs-font-latin); font-size: 46px; font-weight: 800; letter-spacing: .02em; }
.gs-fine { margin-top: 10px; font-size: 26px; color: var(--gs-ink-2); }
.gs-credit { margin-top: 8px; font-size: 24px; color: var(--gs-ink-2); }

/* ── 字幕：逐字亮起 ── */
.gs-caption { position: absolute; z-index: 6; left: 120px; bottom: 64px; max-width: 900px; opacity: 0; transform: translateY(18px); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; }
.gs-caption.on { opacity: 1; transform: none; }
.gs-player.gs-started:is(.gs-ui-on, :not(.gs-playing)) .gs-caption.on { transform: translateY(calc(var(--lift, 0px) * -1)); }
.gs-caption p { display: inline; padding: 10px 22px; border-radius: 16px; background: var(--gs-cap-bg); color: var(--gs-cap-ink); font-size: 40px; font-weight: 700; line-height: 1.72; letter-spacing: .02em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gs-caption span { color: var(--gs-cap-dim); transition: color .25s; }
.gs-caption span.on { color: var(--gs-cap-ink); }
.gs-player:is([data-scene="title"], [data-scene="end"], [data-scene="checklist"]) .gs-caption { max-width: 1560px; }

/* ── 互動導覽：聚光燈、提示 ── */
.gs-coach { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.gs-coach[hidden] { display: none; }
.gs-spot { position: absolute; inset: 0; background: radial-gradient(circle at var(--x) var(--y), transparent calc(var(--r) - 2px), rgba(4, 10, 8, .62) calc(var(--r) + 3px)); animation: gsFadeIn .45s ease both; }
.gs-rings i { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; border: 4px solid var(--gs-hi); box-shadow: 0 0 24px var(--gs-hi); animation: gsPulse 1.8s var(--ease) infinite; }
.gs-rings i:nth-child(2) { animation-delay: .6s; }
.gs-rings i:nth-child(3) { animation-delay: 1.2s; }
@keyframes gsPulse { from { opacity: .95; transform: scale(.9); } to { opacity: 0; transform: scale(1.7); } }
@keyframes gsFadeIn { from { opacity: 0; } }
/* 外層 .gs-coach-pos 負責定位（translate），內層 .gs-coach-tip 負責出現與搖晃動畫；
   兩層分開，動畫才能用 transform（不用 scale／translate 獨立屬性：Chrome 104 以前、Android 舊版 LINE 不支援） */
.gs-coach-pos { position: absolute; pointer-events: auto; }
.gs-coach-pos[data-side="left"] { transform: translate(-100%, -50%); }
.gs-coach-pos[data-side="top"] { transform: translate(-50%, -100%); }
.gs-coach-pos[data-side="bottom"] { transform: translate(-50%, 0); }
.gs-coach-tip { position: relative; display: grid; gap: 4px; padding: 20px 30px; border-radius: 26px; background: var(--gs-hi); color: #062016; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); white-space: nowrap; animation: gsTipIn .6s var(--spring) both; }
.gs-coach-pos[data-side="left"] .gs-coach-tip { transform-origin: 100% 50%; }
.gs-coach-pos[data-side="top"] .gs-coach-tip { transform-origin: 50% 100%; }
.gs-coach-pos[data-side="bottom"] .gs-coach-tip { transform-origin: 50% 0; }
.gs-coach-pos[data-side="left"] .gs-coach-tip::after { content: ''; position: absolute; right: -14px; top: 50%; margin-top: -14px; border: 14px solid transparent; border-right: 0; border-left-color: var(--gs-hi); }
.gs-coach-tip small { font-size: 22px; font-weight: 800; letter-spacing: .14em; opacity: .7; }
.gs-coach-tip b { font-size: 38px; font-weight: 900; }
.gs-coach-skip { justify-self: end; margin-top: 4px; font-size: 21px; font-weight: 700; opacity: .65; cursor: pointer; }
@keyframes gsTipIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.gs-coach.nudge .gs-coach-tip { animation: gsNudge .5s ease; }
@keyframes gsNudge { 20%, 60% { transform: translateX(-14px); } 40%, 80% { transform: translateX(14px); } }

/* ── 特效層 ── */
.gs-fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.gs-ov { position: absolute; inset: 0; }
.gs-ripple { position: absolute; inset: auto; width: 0; height: 0; }
.gs-ripple::before, .gs-ripple::after { content: ''; position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 5px solid var(--gs-hi); animation: gsRip .8s var(--ease) both; }
.gs-ripple::after { animation-delay: .12s; border-width: 3px; }
.gs-ripple.bad::before, .gs-ripple.bad::after { border-color: #ff6b6b; }
@keyframes gsRip { from { opacity: 1; transform: scale(.2); } to { opacity: 0; transform: scale(1.6); } }
.gs-confetti { position: absolute; z-index: 9; display: block; }
.gs-ov-ring { inset: auto; width: 3200px; height: 3200px; border-radius: 50%; border: 60px solid var(--gs-hi); opacity: 0; box-shadow: 0 0 120px var(--gs-hi), inset 0 0 120px var(--gs-hi); }
.gs-ov-wipe i, .gs-ov-stack i { position: absolute; top: -10%; bottom: -10%; left: -15%; right: -15%; }
.gs-ov-wipe i:nth-child(1) { background: var(--gs-accent); }
.gs-ov-wipe i:nth-child(2) { background: var(--gs-accent-2); }
.gs-ov-wipe i:nth-child(3) { background: var(--gs-ink); }
.gs-ov-slats { display: flex; }
.gs-ov-slats i { flex: 1; background: var(--gs-accent); }
.gs-ov-slats i:nth-child(even) { background: var(--gs-accent-2); }
.gs-ov-stack i { left: 4%; right: 4%; top: 6%; bottom: 6%; border-radius: 40px; border: 6px solid #111; box-shadow: 14px 14px 0 #111; }
.gs-ov-stack i:nth-child(1) { background: #ffd84d; }
.gs-ov-stack i:nth-child(2) { background: #7ed7b5; }
.gs-ov-stack i:nth-child(3) { background: #ff6b35; }
.gs-ov-sweep i { position: absolute; top: -20%; bottom: -20%; left: 0; width: 55%; background: linear-gradient(90deg, transparent, rgba(255, 223, 150, .0) 10%, rgba(255, 230, 170, .75) 50%, rgba(255, 223, 150, 0) 90%, transparent); }
.gs-ov-screens i { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--gs-accent-2); }
.gs-ov-screens i:nth-child(1) { left: 0; }
.gs-ov-screens i:nth-child(2) { right: 0; }
.gs-ov-screens b { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: linear-gradient(transparent, #f6dc93 20%, #fff6d6 50%, #f6dc93 80%, transparent); box-shadow: 0 0 40px 10px rgba(246, 220, 147, .6); }
.gs-toast { position: absolute; z-index: 10; left: 50%; top: 140px; padding: 16px 30px; border-radius: 999px; background: var(--gs-ink); color: var(--gs-bg); font-size: 28px; font-weight: 800; white-space: nowrap; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); opacity: 0; transform: translate(-50%, -20px); transition: opacity .3s, transform .5s var(--spring); pointer-events: none; }
.gs-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── 直式（1080×1920） ── */
[data-format="portrait"] .gs-brand { left: 60px; top: 64px; font-size: 32px; }
[data-format="portrait"] .gs-brand em { display: none; }
[data-format="portrait"] .gs-chapter-pill { right: 60px; top: 66px; font-size: 24px; }
[data-format="portrait"] .gs-chapter-pill span { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-format="portrait"] .gs-text { left: 70px; right: 70px; width: auto; top: 170px; bottom: auto; height: 380px; justify-content: flex-end; }
[data-format="portrait"] .gs-unit { display: none; }
[data-format="portrait"] .gs-title { font-size: 76px; margin-bottom: 18px; }
[data-format="portrait"] .gs-path li { font-size: 28px; }
[data-format="portrait"] .gs-visual { left: 0; right: 0; width: auto; top: 545px; bottom: 270px; }
[data-format="portrait"] .gs-player, [data-format="portrait"] { --dk: 1.27; }
[data-format="portrait"] .gs-try { left: auto; right: 50px; bottom: auto; top: -40px; transform: none; }
[data-format="portrait"] .gs-scene.on .gs-try { animation-name: gsTryP; }
@keyframes gsTryP { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
[data-format="portrait"] .gs-notice { left: 50%; bottom: -20px; margin-left: -300px; width: 600px; }
[data-format="portrait"] .gs-hero { left: 0; width: auto; bottom: 46%; -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 60%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 60%, transparent); }
[data-format="portrait"] .gs-bignum { font-size: 460px; right: -20px; bottom: 120px; }
[data-format="portrait"] .gs-title-text { top: auto; bottom: 280px; height: auto; width: auto; }
[data-format="portrait"] .gs-big { font-size: 150px; }
[data-format="portrait"] .gs-mark .mark { width: 96px; height: 96px; }
[data-format="portrait"] .t-checklist .gs-text { top: 180px; height: auto; bottom: 300px; justify-content: center; }
[data-format="portrait"] .gs-illus { display: none; }
[data-format="portrait"] .gs-checks.cols { grid-template-columns: 1fr; }
[data-format="portrait"] .gs-ck-text b { font-size: 42px; }
/* 結尾：不套用上面「文字在上、手機在下」的 380px 文字框（內容比框高，會往上溢出被切掉），改成在品牌列與字幕之間垂直置中 */
[data-format="portrait"] .gs-end-text { left: 60px; right: 60px; top: 170px; bottom: 300px; height: auto; justify-content: center; }
[data-format="portrait"] .gs-end-text .gs-big { font-size: 120px; }
[data-format="portrait"] .gs-caption { left: 50px; right: 50px; bottom: 70px; max-width: none; text-align: center; }
[data-format="portrait"] .gs-caption p { font-size: 44px; }
[data-format="portrait"] .gs-coach-tip b { font-size: 42px; }

/* ── 播放器介面（實際像素，不隨舞台縮放） ── */
.gs-ui { position: absolute; inset: 0; z-index: 20; pointer-events: none; font-size: calc(15px * var(--ui-scale, 1)); color: var(--gs-ui-ink); }
.gs-ui > * { pointer-events: auto; }
.gs-ui [hidden] { display: none !important; }
.gs-b { display: inline-grid; place-items: center; min-width: 2.6em; height: 2.6em; padding: 0 .6em; border: 0; border-radius: 999px; background: transparent; color: inherit; font-size: 1em; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.gs-b:hover { background: rgba(255, 255, 255, .14); }
.gs-b:active { transform: scale(.94); }
.gs-b:focus-visible, .gs-prog:focus-visible, .gs-start-play:focus-visible { outline: 2px solid var(--gs-hi); outline-offset: 2px; }
.gs-b .gs-i { width: 1.45em; height: 1.45em; }
.gs-ui > .gs-controls { pointer-events: none; }
.gs-controls > .gs-prog, .gs-row > * { pointer-events: auto; }
.gs-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.2em 1.1em .7em; background: linear-gradient(transparent, rgba(4, 8, 7, .78)); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.gs-player.gs-ui-on .gs-controls, .gs-player:not(.gs-playing) .gs-controls { opacity: 1; transform: none; }
/* 漸層留白不擋點擊；控制列隱藏時不能被誤點（手機下緣的分頁列常和控制列重疊）；互動提示的目標被控制列蓋住時先把控制列收起來 */
.gs-controls { pointer-events: none; }
.gs-controls > * { pointer-events: auto; }
.gs-player.gs-playing:not(.gs-ui-on) .gs-controls > *, .gs-player.gs-coach-low .gs-controls > * { pointer-events: none; }
.gs-player:is(.gs-coach-low, .gs-exploring) .gs-controls { opacity: 0 !important; }
.gs-player.gs-exploring .gs-controls > * { pointer-events: none; }   /* 自由探索用上方的「回到影片」，控制列收起來免得蓋住手機下緣 */
.gs-player:not(.gs-started) .gs-controls { opacity: 0; pointer-events: none; }
.gs-row { display: flex; align-items: center; gap: .35em; }
.gs-play .i-pause, .gs-playing .gs-play .i-play { display: none; }
.gs-playing .gs-play .i-pause { display: block; }
.gs-mute .i-muted, .gs-muted .gs-mute .i-sound { display: none; }
.gs-muted .gs-mute .i-muted { display: block; }
.gs-time { margin: 0 .5em; font-variant-numeric: tabular-nums; font-size: .95em; opacity: .9; white-space: nowrap; }
.gs-time b { font-weight: 700; }
.gs-now { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92em; opacity: .75; }
.gs-pill { display: inline-flex; gap: .45em; padding: 0 1em; border: 1.5px solid rgba(255, 255, 255, .3); }
.gs-pill[aria-pressed="true"] { background: var(--gs-hi); color: #062016; border-color: transparent; }
.gs-cc[aria-pressed="false"] { opacity: .5; }
.gs-speed { font-variant-numeric: tabular-nums; min-width: 3.2em; }
.gs-prog { position: relative; height: 1.6em; min-height: 24px; display: flex; align-items: center; cursor: pointer; touch-action: none; }   /* 可點範圍至少 24px（WCAG 2.5.8），畫面上的進度條粗細不變 */
.gs-prog-track { display: flex; gap: 3px; width: 100%; height: 5px; transition: height .2s; }
.gs-prog:hover .gs-prog-track { height: 8px; }
.gs-seg { position: relative; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.gs-seg i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); background: var(--gs-accent); }
.gs-seg.cur { background: rgba(255, 255, 255, .4); }
.gs-prog-knob { position: absolute; left: calc(var(--p, 0) * 100%); top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(220, 108, 69, .5); transform: scale(0); transition: transform .2s; pointer-events: none; }
.gs-prog:hover .gs-prog-knob { transform: none; }
.gs-prog-tip { position: absolute; bottom: 2.2em; display: grid; justify-items: center; padding: .45em .8em; border-radius: .7em; background: rgba(10, 16, 14, .9); white-space: nowrap; transform: translateX(-50%); opacity: 0; transition: opacity .2s; pointer-events: none; }
.gs-prog:hover .gs-prog-tip { opacity: 1; }
.gs-prog-tip b { font-variant-numeric: tabular-nums; }
.gs-prog-tip span { font-size: .85em; opacity: .8; }
/* 開始畫面 */
.gs-start { position: absolute; inset: 0; display: grid; place-items: center; padding: 1em; background: radial-gradient(ellipse at 50% 60%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)); }
.gs-start-card { display: grid; justify-items: center; gap: .8em; max-width: 30em; padding: 2em 2.4em 1.6em; border-radius: 1.6em; background: rgba(14, 22, 19, .86); border: 1px solid rgba(255, 255, 255, .16); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: gsCardIn .8s var(--ease) both; }
@keyframes gsCardIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.gs-start-kicker { font-size: .9em; font-weight: 700; letter-spacing: .16em; color: var(--gs-hi); }
.gs-start-card h2 { font-size: 2.1em; font-weight: 900; line-height: 1.25; }
.gs-start-meta { font-size: .95em; opacity: .75; line-height: 1.6; }
.gs-start-play { display: inline-flex; align-items: center; gap: .6em; margin-top: .4em; padding: .85em 2em; border: 0; border-radius: 999px; background: var(--gs-accent); color: #fff; font-size: 1.15em; font-weight: 900; cursor: pointer; box-shadow: 0 14px 36px rgba(220, 108, 69, .45); transition: transform .25s var(--spring), box-shadow .25s; }
.gs-start-play:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 44px rgba(220, 108, 69, .55); }
.gs-start-play .gs-i { width: 1.2em; height: 1.2em; }
.gs-switch { display: flex; align-items: center; gap: .8em; margin-top: .3em; padding: .6em 1em; border-radius: 1em; background: rgba(255, 255, 255, .07); text-align: left; cursor: pointer; }
.gs-switch input { position: absolute; opacity: 0; pointer-events: none; }
.gs-switch-ui { position: relative; flex: none; width: 2.8em; height: 1.6em; border-radius: 1em; background: rgba(255, 255, 255, .25); transition: background .25s; }
.gs-switch-ui::after { content: ''; position: absolute; left: .2em; top: .2em; width: 1.2em; height: 1.2em; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.gs-switch input:checked + .gs-switch-ui { background: var(--gs-hi); }
.gs-switch input:checked + .gs-switch-ui::after { transform: translateX(1.2em); }
.gs-switch input:focus-visible + .gs-switch-ui { outline: 2px solid var(--gs-hi); outline-offset: 2px; }
.gs-switch b { display: block; font-size: 1em; }
.gs-switch small { display: block; font-size: .85em; opacity: .7; }
.gs-resume { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: transparent; font-size: .9em; cursor: pointer; }
.gs-resume .gs-i { width: 1.1em; height: 1.1em; }
/* 探索模式橫幅 */
.gs-banner { position: absolute; left: 50%; top: 1em; display: flex; align-items: center; gap: .9em; padding: .55em .6em .55em 1.1em; border-radius: 999px; background: rgba(10, 16, 14, .9); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transform: translateX(-50%); white-space: nowrap; animation: gsBanner .6s var(--spring) both; }
@keyframes gsBanner { from { opacity: 0; transform: translate(-50%, -20px); } }
.gs-banner-dot { width: .7em; height: .7em; border-radius: 50%; background: var(--gs-hi); box-shadow: 0 0 0 .3em rgba(159, 230, 200, .25); animation: gsBlink 1.4s ease-in-out infinite; }
@keyframes gsBlink { 50% { opacity: .4; } }
.gs-banner p { display: grid; line-height: 1.3; }
.gs-banner p span { font-size: .82em; opacity: .7; }
.gs-banner-back { display: inline-flex; align-items: center; gap: .4em; padding: .55em 1.1em; border: 0; border-radius: 999px; background: var(--gs-hi); color: #062016; font-weight: 900; cursor: pointer; }
.gs-banner-back .gs-i { width: 1em; height: 1em; fill: currentColor; stroke: none; }
/* 單元清單 */
.gs-menu { position: absolute; top: .8em; right: .8em; bottom: 5.2em; width: min(23em, calc(100% - 1.6em)); display: flex; flex-direction: column; border-radius: 1.2em; background: rgba(10, 16, 14, .95); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); animation: gsMenu .4s var(--ease) both; }
@keyframes gsMenu { from { opacity: 0; transform: translateX(20px); } }
.gs-menu-head { display: flex; align-items: center; justify-content: space-between; padding: .7em .6em .5em 1.1em; }
.gs-menu ol { flex: 1; overflow: auto; margin: 0; padding: 0 .5em .6em; list-style: none; }
.gs-menu li button { display: flex; align-items: center; gap: .7em; width: 100%; padding: .65em .7em; border: 0; border-radius: .8em; background: transparent; text-align: left; cursor: pointer; }
.gs-menu li button:hover { background: rgba(255, 255, 255, .08); }
.gs-menu li b { min-width: 2.6em; padding: .2em .4em; border-radius: .5em; background: rgba(255, 255, 255, .1); font-family: var(--gs-font-latin); font-size: .85em; text-align: center; }
.gs-menu li span { flex: 1; }
.gs-menu li small { font-variant-numeric: tabular-nums; opacity: .6; }
.gs-done-dot { width: .6em; height: .6em; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); }
.gs-menu .done .gs-done-dot { background: var(--gs-hi); border-color: var(--gs-hi); }
/* 單元結束卡 */
.gs-endcard { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .7); }
.gs-endcard-in { display: grid; justify-items: center; gap: .5em; padding: 2em 2.6em; border-radius: 1.6em; background: rgba(14, 22, 19, .85); border: 1px solid rgba(255, 255, 255, .16); text-align: center; animation: gsCardIn .7s var(--spring) both; }
.gs-endcard-badge { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--gs-hi); color: #062016; font-size: 1.2em; animation: gsPop .9s var(--spring) .1s both; }
.gs-endcard-badge .gs-i { width: 1.6em; height: 1.6em; fill: currentColor; stroke: none; }
.gs-endcard-k { font-size: .9em; letter-spacing: .2em; opacity: .7; }
.gs-endcard h3 { font-size: 1.6em; }
.gs-endcard-up { font-size: .95em; opacity: .8; }
.gs-endcard-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6em; margin-top: .6em; }
.gs-endcard-btns button { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.3em; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 800; cursor: pointer; }
.gs-endcard-btns .gs-endcard-next { background: var(--gs-accent); color: #fff; }
.gs-endcard-btns .gs-i { width: 1.1em; height: 1.1em; }
.gs-endcard-next .gs-i { fill: currentColor; }
/* 緩衝中 */
.gs-buffering .gs-viewport::after { content: ''; position: absolute; left: 50%; top: 50%; z-index: 19; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: gsSpin .8s linear infinite; }
.gs-buffering .gs-viewport[data-load]:not([data-load=""])::before { content: attr(data-load); position: absolute; left: 50%; top: calc(50% + 40px); z-index: 19; transform: translateX(-50%); padding: .3em .9em; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; pointer-events: none; }
/* 手機直式的自由探索：播放器變全螢幕、鏡頭推近虛擬手機（engine.js enterFocus／exitFocus） */
html.gs-lock, html.gs-lock body { overflow: hidden; overscroll-behavior: none; }
.gs-player.gs-focus { z-index: 9990; }
.gs-player.gs-focus .gs-viewport { position: fixed; inset: 0; z-index: 9990; height: auto !important; border-radius: 0; animation: gsFocusIn .45s ease both; }
@keyframes gsFocusIn { from { background-color: transparent; } }
/* 放大後舞台背景只蓋得到一部分畫面（橫放手機尤其明顯），淡出改用整片底色，只留手機 */
.gs-player.gs-focus:not(.gs-unfocusing) .gs-bg { opacity: 0; }
.gs-player.gs-focus .gs-viewport { background: radial-gradient(ellipse 70% 55% at 50% 48%, rgba(255, 255, 255, .07), transparent 70%), var(--gs-bg); }
.gs-player.gs-focus .gs-stage { transition: transform .62s var(--ease); touch-action: none; }
/* 放大後手機可能比 16:9 舞台還高（平板、橫放手機）：舞台不裁切，場景裡只留手機本身 */
.gs-player.gs-focus .gs-stage { overflow: visible; contain: layout; background: transparent; }
.gs-player.gs-focus .gs-scene > :not(.gs-visual) { opacity: 0 !important; pointer-events: none !important; transition: opacity .3s; }
/* 探索時的提示改貼在視窗底部（放大後舞台座標的位置可能在畫面外） */
.gs-viewport > .gs-toast { z-index: 9996; top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 10px 18px; font-size: 15px; white-space: normal; text-align: center; transform: translate(-50%, 12px); }
.gs-viewport > .gs-toast.on { transform: translate(-50%, 0); }
.gs-player.gs-focus :is(.gs-text, .gs-notice, .gs-brand, .gs-caption, .gs-controls, .gs-try, .gs-coach) { opacity: 0 !important; pointer-events: none !important; transition: opacity .3s; }
.gs-player.gs-focus .gs-frame.mock-phone { border-width: 9px; border-radius: 54px; }
.gs-player.gs-focus .gs-frame .mp-screen { height: var(--fsh, 800px); border-radius: 46px; }
.gs-player.gs-focus .gs-glare { border-radius: 46px; opacity: .45; }
.gs-player.gs-focus :is(.gs-btn-side, .gs-floor) { display: none; }
.gs-player.gs-focus .gs-frame::before { top: 9px; }
.gs-player.gs-focus .gs-banner { top: max(10px, env(safe-area-inset-top)); max-width: calc(100% - 20px); }
/* 縮回原位時，全螢幕底色淡出，播放器落回頁面上原本的位置 */
.gs-player.gs-unfocusing .gs-viewport { background-color: transparent; transition: background-color .5s ease; }
.gs-player.gs-unfocusing .gs-bg { filter: none; }
/* 觸控：探索時在手機上拖曳是捲動手機內容，不是捲動網頁 */
.gs-exploring .gs-device { touch-action: none; }
.gs-banner-s { display: none; }
@media (max-width: 600px) {
    .gs-banner { gap: .7em; padding: .5em .5em .5em 1em; font-size: 15px; }
    .gs-banner-l { display: none; }
    .gs-banner-s { display: inline; }
    .gs-banner-back { min-height: 40px; padding: .55em 1.1em; font-size: 15px; }
}

/* 全螢幕 */
.gs-player:fullscreen { width: 100vw; height: 100vh; background: #000; }
.gs-player:fullscreen .gs-viewport { height: 100% !important; border-radius: 0; }
.gs-player:-webkit-full-screen { width: 100%; height: 100%; background: #000; }
.gs-player:-webkit-full-screen .gs-viewport { height: 100% !important; border-radius: 0; }
/* 假全螢幕（iPhone 不支援網頁元素全螢幕）：黑底蓋滿視窗並擋住手指捲動，畫面固定在安全區域內；播放器原位置由 min-height 保留 */
.gs-player.gs-fill { z-index: 9990; }
.gs-player.gs-fill::before { content: ''; position: fixed; inset: 0; z-index: 9988; background: #000; touch-action: none; }
.gs-player.gs-fill .gs-viewport { position: fixed; z-index: 9989; top: env(safe-area-inset-top); right: env(safe-area-inset-right); bottom: env(safe-area-inset-bottom); left: env(safe-area-inset-left); height: auto !important; border-radius: 0; touch-action: none; }
@media (max-width: 600px) {
    .gs-now, .gs-speed { display: none; }
    .gs-pill span { display: none; }
    .gs-pill { padding: 0 .6em; }
}
/* ── 降級（engine.js 的 LITE）：手機預設第 3 層（ktv、fx、3d、focus、scroll），網址加 ?lite= 可以蓋掉來比較 ── */
.gs-lite-tag { position: absolute; z-index: 9997; left: 6px; top: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #9ff0cf; font: 11px/1.4 ui-monospace, Menlo, Consolas, monospace; pointer-events: none; }
/* fx：不放天燈與祥雲紋 */
.gs-player.gs-lite-fx :is(.gs-bg-decor, .gs-particles) { display: none; }
/* bg：不用 WebGL 背景與暗角，只留底色 */
.gs-player.gs-lite-bg .gs-bg-canvas, .gs-player.gs-lite-bg .gs-bg::after { display: none; }
/* 3d：手機改成平面（不傾斜、不用 preserve-3d），探索時只放大一點 */
.gs-player.gs-lite-3d .gs-world { perspective: none; }
.gs-player.gs-lite-3d :is(.gs-scenes, .gs-scene, .gs-device) { transform-style: flat; }
.gs-player.gs-lite-3d .gs-scene { backface-visibility: visible; }
.gs-player.gs-lite-3d .gs-device { transform: none; }
.gs-player.gs-lite-3d:is(.gs-exploring, .gs-coaching) .gs-device { transform: scale(1.035); }
/* focus：手機放大探索時，背景與手機以外的元素直接移除（不跟著放大一起淡出），放大、縮回的過程只需要重畫手機；縮回原位後背景才淡入 */
.gs-player.gs-lite-focus.gs-focus .gs-bg { display: none; }
.gs-player.gs-lite-focus .gs-bg { animation: gsFadeIn .35s ease both; }
.gs-player.gs-lite-focus.gs-focus .gs-scene > :not(.gs-visual),
.gs-player.gs-lite-focus.gs-focus :is(.gs-text, .gs-notice, .gs-brand, .gs-caption, .gs-controls, .gs-try, .gs-coach) { visibility: hidden !important; transition: none !important; }
/* scroll：探索時手機內容的捲動不加漸變（margin-top 漸變每一格都要重新排版、重畫整個手機螢幕） */
.gs-player.gs-lite-scroll.gs-exploring .gs-device .ap-scroll { transition: none; }
@media (prefers-reduced-motion: reduce) {
    .gs-player *, .gs-player *::before, .gs-player *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .gs-device { transform: none !important; }
}
