/* VCZefb 官方網站樣式(TASK_LIST L-05 改版 2026-10-18)。
   延續 App 的皇家儀表色票;字體自託管(OFL),不載入任何外部資源。
   首頁八種語言共用這一份;隱私/條款/退款頁沿用中英切換(html[data-lang])。 */

@font-face { font-family: "Bebas Neue"; src: url("fonts/BebasNeue-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("fonts/Oswald-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }

:root {
  --bg0: #04070f; --bg1: #0b1222; --bg2: #141c30; --line: #2a3550;
  --ink: #f4efe4; --ink2: #b9b3a6; --ink3: #8d8678;
  --gold-hi: #f9e590; --gold: #d4b05a; --gold-lo: #8a6330; --amber: #c2772a; --champagne: #f1d9a0;
  --ember: #8e0606; --red: #d5342c; --cyan: #4de1ff; --volt: #2f6bff; --violet: #7a5290;
  --warn: #ffb020; --bad: #ff3b3b; --off: #7c86a2; --win: #3ddc84;
  --glass: rgba(14, 22, 42, 0.62); --glass-hi: rgba(20, 30, 56, 0.78);
  --hair: rgba(212, 176, 90, 0.22); --hair-cyan: rgba(77, 225, 255, 0.28);
  --r-lg: 24px; --r-md: 16px;
  --f-sys: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Bebas Neue", "Oswald", var(--f-sys);
  --f-num: "Barlow Condensed", "Oswald", var(--f-sys);
  --f-ui: "Oswald", var(--f-sys);
  --f-body: var(--f-sys);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}
/* 各語系的系統字(中日韓用各自的字形);越南文的變音字 Bebas Neue 沒有,標題改用 Oswald */
html:lang(zh) { --f-sys: system-ui, -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
html:lang(ja) { --f-sys: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif; }
html:lang(ko) { --f-sys: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
html:lang(vi) { --f-display: "Oswald", var(--f-sys); }

/* 法律頁:中英兩種文字都在頁面裡,依 html[data-lang] 只顯示一種(沒有 JS 時兩種都顯示) */
html[data-lang="zh"] .en, html[data-lang="en"] .zh { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg0); }
body {
  margin: 0; background: var(--bg0); color: var(--ink);
  font: 16px/1.7 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 40% at 0% 0%, rgba(47, 107, 255, 0.10), transparent 60%),
    radial-gradient(50% 40% at 100% 10%, rgba(194, 119, 42, 0.10), transparent 60%),
    radial-gradient(70% 50% at 50% 120%, rgba(77, 225, 255, 0.06), transparent 60%),
    var(--bg0);
}
img, svg, video, canvas { display: block; max-width: 100%; }
/* 全頁太空背景層(space.js;與 App 的 v12 同一套),在 body::before 漸層之上、內容之下 */
.space-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; z-index: -1; pointer-events: none; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--champagne); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
b, strong { font-weight: 700; }
h1, h2, h3 { font-synthesis: none; overflow-wrap: break-word; text-wrap: balance; }
/* 中、韓文標題只在標點與空格處斷行,不在詞中間斷(手機上原本會斷成「自己下｜場」「太｜空步」);一段放不下時才任意斷,不會溢出。
   日文用瀏覽器的詞組斷行。內文段落照一般排版,只避免最後一行孤字。 */
:lang(zh) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
p, li { text-wrap: pretty; }
.hero-lead, .sub { text-wrap: balance; } /* 兩三行的短段落:平均分行,不留一兩個字掛在最後一行 */
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.fine { color: var(--ink3); font-size: 0.86rem; line-height: 1.6; }
.bn { font-family: var(--f-num); font-weight: 700; text-transform: none; letter-spacing: 0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1a1206; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font: 600 1.02rem/1.15 var(--f-ui); letter-spacing: 0.04em; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { --h: 44px; padding: 0 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-gold {
  color: #1b1307;
  background: linear-gradient(180deg, #fff3c2 0%, var(--gold-hi) 18%, var(--gold) 55%, #a8803b 100%);
  box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.6) inset, 0 -2px 0 rgba(0, 0, 0, 0.25) inset, 0 10px 30px -8px rgba(212, 176, 90, 0.55);
}
.btn-gold::after {
  content: ""; position: absolute; inset: -20% auto -20% -40%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-18deg) translateX(-120%); transition: transform 700ms var(--ease-out);
}
.btn-gold:hover { color: #1b1307; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.8) inset, 0 16px 38px -10px rgba(249, 229, 144, 0.7); }
.btn-gold:hover::after { transform: skewX(-18deg) translateX(420%); }
.btn-ghost {
  color: var(--ink); background: rgba(10, 16, 32, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--hair) inset;
}
.btn-ghost:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.55) inset, 0 12px 30px -12px rgba(77, 225, 255, 0.45); }
.btn.is-disabled { cursor: not-allowed; filter: saturate(0.6); opacity: 0.72; transform: none !important; }
.btn.is-disabled::after { display: none; }
/* 停用的按鈕滑過時不發光、箭頭不滑,免得看起來能按 */
.btn-gold.is-disabled:hover { box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.6) inset, 0 -2px 0 rgba(0, 0, 0, 0.25) inset, 0 10px 30px -8px rgba(212, 176, 90, 0.55); }
.btn-ghost.is-disabled:hover { box-shadow: 0 0 0 1px var(--hair) inset; }
.btn.is-disabled:hover svg { transform: none; }

/* ---------- header ---------- */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.header-row {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: calc(100% - 24px); max-width: 1160px; height: 62px; margin: 0 auto; padding: 0 10px 0 14px; border-radius: 999px;
  background: rgba(6, 10, 22, 0.42); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(212, 176, 90, 0.16) inset; transition: background 260ms, box-shadow 260ms;
}
.site-header.scrolled .header-row { background: rgba(6, 10, 22, 0.84); box-shadow: 0 0 0 1px rgba(212, 176, 90, 0.26) inset, 0 18px 40px -20px rgba(0, 0, 0, 0.9); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex: none; }
.brand img:first-child { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(77, 225, 255, 0.35)); }
.brand-word { width: 104px; height: auto; }
.main-nav { display: none; gap: 2px; }
.main-nav a { color: var(--ink2); text-decoration: none; font: 500 0.95rem/1 var(--f-ui); letter-spacing: 0.03em; padding: 10px 12px; border-radius: 999px; white-space: nowrap; transition: color 200ms, background 200ms; }
.main-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.main-nav a[aria-current] { color: var(--gold-hi); }
/* 手機與平板的段落選單:頁首膠囊下方一排可左右滑的膠囊鈕(觸控高 44 px),目前讀到的那段亮金;兩端淡出提示還能滑 */
.section-nav { pointer-events: auto; display: flex; gap: 4px; width: calc(100% - 24px); max-width: 1160px; margin: 6px auto 0; padding: 3px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 999px;
  background: rgba(6, 10, 22, 0.72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 1px rgba(212, 176, 90, 0.16) inset;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent); }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink2); text-decoration: none;
  font: 500 0.88rem/1 var(--f-ui); letter-spacing: 0.03em; white-space: nowrap; transition: color 200ms, background 200ms, box-shadow 200ms; }
.section-nav a[aria-current] { color: var(--gold-hi); background: rgba(212, 176, 90, 0.14); box-shadow: 0 0 0 1px rgba(212, 176, 90, 0.42) inset; }
/* 鍵盤焦點框畫在膠囊裡面:這排是可捲動容器、外圍只留 3 px,畫在外面會被裁掉(審查 MEDIUM) */
.section-nav a:focus-visible { outline-offset: -3px; }
.site-header.scrolled .section-nav { background: rgba(6, 10, 22, 0.88); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn-sm { display: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 12px; cursor: pointer;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: 0 0 0 1px var(--hair) inset;
  color: var(--ink2); font: 600 0.88rem/1 var(--f-ui); letter-spacing: 0.04em; white-space: nowrap; user-select: none;
  transition: color 200ms, box-shadow 200ms;
}
.lang-btn:hover { color: var(--ink); box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.5) inset; }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lang-btn .chev { width: 14px; height: 14px; transition: transform 250ms var(--ease-out); }
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 220px; margin: 0; padding: 8px; list-style: none;
  border-radius: 16px; background: rgba(8, 12, 26, 0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--hair) inset, 0 24px 60px -20px #000; animation: menuIn 260ms var(--ease-out);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink2); text-decoration: none; font-size: 0.95rem; }
.lang-list a:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.lang-list a[aria-current] { color: var(--gold-hi); }
.lang-list a[aria-current]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 8px var(--gold-hi); }
.lang-opt { color: var(--ink3); }
html[data-lang="zh"] .lang-opt[data-opt="zh"], html[data-lang="en"] .lang-opt[data-opt="en"] { color: var(--gold-hi); }
.lang-sep { opacity: 0.4; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line[data-reveal] { opacity: 1; transform: none; }
.js .hero-title .line[data-reveal] > span { transform: translateY(110%); transition: transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .hero-title .line[data-reveal].in > span { transform: none; }
.mask > span { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mask > span > span { display: inline-block; }
.js .mask > span > span { transform: translateY(105%); transition: transform 1000ms var(--ease-out) 120ms; }
.js .in .mask > span > span, .js .mask.in > span > span { transform: none; }
/* 保底:app.js 沒跑起來(頁首計時器加 .reveal-all)或列印時,全部直接顯示 */
.reveal-all [data-reveal], .reveal-all .hero-title .line[data-reveal] > span, .reveal-all .mask > span > span { opacity: 1 !important; transform: none !important; transition: none !important; }
@media print {
  .js [data-reveal], .js .hero-title .line[data-reveal] > span, .js .mask > span > span { opacity: 1 !important; transform: none !important; }
}
/* 區塊不在畫面上時暫停其中的無限動畫(app.js 切換 .paused) */
section.paused *, section.paused *::before, section.paused *::after { animation-play-state: paused !important; }
/* 越南文大寫上方疊兩層變音符號,遮罩行留高一點以免被裁 */
html:lang(vi) .mask > span, html:lang(vi) .hero-title .line { padding-top: 0.14em; margin-top: -0.14em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 108px 0 80px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg picture img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg video { opacity: 0; transition: opacity 1200ms ease; }
.hero-bg video.ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 15, 0.88) 0%, rgba(4, 7, 15, 0.5) 46%, rgba(4, 7, 15, 0.18) 75%, rgba(4, 7, 15, 0.4) 100%),
    linear-gradient(180deg, rgba(4, 7, 15, 0.55) 0%, transparent 22%, transparent 62%, var(--bg0) 100%);
}
.hero-grid {
  position: absolute; left: -25%; right: -25%; bottom: -6%; height: 48%; opacity: 0.5;
  background-image:
    linear-gradient(rgba(77, 225, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 225, 255, 0.4) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center 0;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 85%);
  animation: gridRun 3.2s linear infinite;
}
@keyframes gridRun { to { background-position: center 64px; } }
.scan { position: absolute; inset: 0; pointer-events: none; opacity: 0.35; overflow: hidden;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px;
  background: linear-gradient(180deg, transparent, rgba(77, 225, 255, 0.07), transparent); animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: translateY(calc(100vh + 240px)); } }

.hero-inner { display: grid; gap: 36px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px;
  font: 600 0.76rem/1.3 var(--f-ui); letter-spacing: 0.14em; color: var(--champagne);
  background: rgba(10, 16, 32, 0.6); box-shadow: 0 0 0 1px var(--hair) inset; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 1.8s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { transform: scale(0.6); opacity: 0.55; } }
.hero-title { margin: 0 0 18px; font-family: var(--f-display); font-weight: 400; line-height: 0.96; letter-spacing: 0.01em;
  font-size: clamp(3.1rem, 8.6vw, 6.6rem); text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5); }
[data-script="cjk"] .hero-title { font-weight: 900; font-size: clamp(2.8rem, 8.4vw, 5.8rem); letter-spacing: 0.02em; line-height: 1.14; }
html:lang(vi) .hero-title, html:lang(id) .hero-title, html:lang(pt-BR) .hero-title, html:lang(es) .hero-title { font-size: clamp(2.7rem, 7.4vw, 5.6rem); }
html:lang(vi) .hero-title { font-weight: 600; line-height: 1.08; }
.hero-title .gold > span, .grad-gold {
  background: linear-gradient(180deg, #fff6cf 0%, var(--gold-hi) 30%, var(--gold) 62%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(212, 176, 90, 0.35));
}
.hero-lead { max-width: 33em; margin: 0 0 28px; font-size: clamp(1.02rem, 2.4vw, 1.18rem); color: var(--ink2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-proof li { display: flex; align-items: baseline; gap: 8px; color: var(--ink2); font-size: 0.9rem; }
.hero-proof b { font: 700 1.5rem/1 var(--f-num); color: var(--cyan); text-shadow: 0 0 16px rgba(77, 225, 255, 0.5); white-space: nowrap; }

.hero-stage { position: relative; width: 100%; max-width: 620px; margin: 0 auto; aspect-ratio: 1 / 1; --dp: 1.25px; }
/* --dp = 錶盤設計稿 1 px(錶盤 420 設計 px = 舞台寬 88%);讀數的位置與字級都照 App 首頁換算 */
@supports (width: 1cqw) { .hero-stage { container-type: inline-size; --dp: 0.2095cqw; } }
.hero-stage canvas { position: absolute; left: -22%; top: -22%; width: 144%; height: 144%; max-width: none; pointer-events: none; }
.stage-fallback { position: absolute; inset: 14%; width: 72%; height: auto; display: none; filter: drop-shadow(0 0 40px rgba(77, 225, 255, 0.35)); animation: floaty 6s ease-in-out infinite; }
.no-dial .stage-fallback, html:not(.js) .stage-fallback { display: block; }
.no-dial .hud, html:not(.js) .hud, html:not(.js) .rank-toggle { display: none; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
/* 錶盤中央讀數與四角遙測(App HomeScreen 的 DialReadings、DialHud):錶盤中心在舞台 46% 高 */
.hud { position: absolute; inset: 0; pointer-events: none; transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0); transition: transform 300ms var(--ease-out); }
.hud-tag { position: absolute; top: calc(2% + var(--dp) * 3.5); font: 700 max(9.5px, calc(var(--dp) * 12))/1.3 var(--f-num); letter-spacing: 0.16em; color: rgba(241, 217, 160, 0.8); white-space: nowrap; animation: hudIn 400ms 500ms both; }
.hud-tl { left: calc(6% + var(--dp) * 32); }
.hud-tr { right: calc(6% + var(--dp) * 32); text-align: right; }
.hud-tr .on-t, .hero-stage.rank-on .hud-tr .off-t { display: none; }
.hero-stage.rank-on .hud-tr .on-t { display: inline; color: #ffb4a8; }
@keyframes hudIn { from { opacity: 0; } }
.hud-read { position: absolute; left: 0; right: 0; top: calc(46% - var(--dp) * 16); transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hud-label { font: 600 max(10px, calc(var(--dp) * 15))/1 var(--f-ui); letter-spacing: 0.32em; padding-left: 0.32em; color: var(--champagne); margin-bottom: calc(var(--dp) * 8); }
.hud-numrow { display: flex; align-items: baseline; }
.hud-num { font: 700 calc(var(--dp) * 88)/0.92 var(--f-num); font-variant-numeric: tabular-nums; color: transparent;
  background: linear-gradient(105deg, #f4efe4 0 42%, #fff9e6 50%, #f4efe4 58% 100%) 100% 0 / 260% 100%; -webkit-background-clip: text; background-clip: text;
  animation: rackFocus 600ms 40ms backwards; }   /* 對焦只在進場套濾鏡,跑完就拿掉(留著 0 半徑的濾鏡,手機上那塊會被另外點陣化而變糊);光澤由 dial.js 跟錶面掃光一起推 */
.hud-unit { font: 700 calc(var(--dp) * 25)/1 var(--f-num); color: var(--ink2); margin-left: calc(var(--dp) * 6); }
/* 數字對焦:由虛到實,紅/藍色差邊同時收攏(只是光學效果,數值從第一格就是真的) */
@keyframes rackFocus { from { filter: blur(7px) drop-shadow(5px 0 0 rgba(255, 90, 80, 0.5)) drop-shadow(-5px 0 0 rgba(90, 200, 255, 0.5)); }
  to { filter: blur(0) drop-shadow(0 0 0 rgba(255, 90, 80, 0)) drop-shadow(0 0 0 rgba(90, 200, 255, 0)); } }
.hud-subs { position: absolute; left: 0; right: 0; top: calc(46% + var(--dp) * 74); transform: translateY(-50%); display: flex; justify-content: center; gap: calc(var(--dp) * 74); animation: hudIn 400ms 300ms both; }
.hud-sub { width: calc(var(--dp) * 86); aspect-ratio: 1 / 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle, #101a36, #0a1228); box-shadow: inset 0 0 0 1px rgba(212, 176, 90, 0.55), inset 0 0 calc(var(--dp) * 14) rgba(0, 0, 0, 0.6); }
.hud-sub b { font: 600 max(8.5px, calc(var(--dp) * 12))/1.1 var(--f-ui); letter-spacing: 0.24em; padding-left: 0.24em; color: var(--champagne); }
.hud-sub span { max-width: 86%; margin-top: calc(var(--dp) * 3); font: 500 max(10px, calc(var(--dp) * 15))/1.15 var(--f-body); color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.hud-held { position: absolute; left: 0; right: 0; top: calc(46% + var(--dp) * 146); text-align: center; font: 600 max(11px, calc(var(--dp) * 15))/1 var(--f-ui); color: var(--ink2); letter-spacing: 0.04em; white-space: nowrap;
  opacity: 0; transform: translateY(-50%) translateY(8px); transition: opacity 400ms, transform 400ms var(--ease-out); }
.hud-held b { font: 700 1.3em/1 var(--f-num); color: #ff8a80; margin-left: 4px; font-variant-numeric: tabular-nums; }
.hero-stage.rank-on .hud-held { opacity: 1; transform: translateY(-50%); }
.rank-toggle, .sim-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 10px; cursor: pointer;
  border: 0; border-radius: 999px; color: var(--ink); font: 600 0.92rem/1 var(--f-ui); letter-spacing: 0.04em; white-space: nowrap;
  background: rgba(8, 12, 26, 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--hair) inset; transition: box-shadow 300ms, background 300ms;
}
/* 開關放在錶圈下緣之下(錶圈底 = 舞台 90% 高;舞台小時往下推,不壓到錶圈) */
.rank-toggle { position: absolute; left: 50%; bottom: min(0px, calc(10% - 48px)); transform: translateX(-50%); }
.rank-switch { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #1b2338; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset; transition: background 300ms; flex: none; }
.rank-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink2); transition: transform 380ms var(--ease-spring), background 300ms; }
[aria-pressed="true"] .rank-switch { background: linear-gradient(90deg, var(--ember), var(--red)); }
[aria-pressed="true"] .rank-switch i { transform: translateX(18px); background: #fff; box-shadow: 0 0 10px rgba(255, 120, 100, 0.9); }
.rank-toggle[aria-pressed="true"], .sim-toggle[aria-pressed="true"] { box-shadow: 0 0 0 1px rgba(213, 52, 44, 0.65) inset, 0 0 30px -4px rgba(213, 52, 44, 0.65); }
.rank-state { color: var(--ink3); font-size: 0.8rem; }
.rank-toggle .on-t, .rank-toggle[aria-pressed="true"] .off-t { display: none; }
.rank-toggle[aria-pressed="true"] .on-t { display: inline; color: #ff8a80; }
.stage-note { margin: 12px 0 0; text-align: center; color: var(--ink3); font-size: 0.78rem; letter-spacing: 0.03em; }
.hero-stage .stage-note { position: absolute; left: 0; right: 0; top: calc(100% + 8px - min(0px, calc(10% - 48px))); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: 0 0 0 1.5px rgba(241, 217, 160, 0.5) inset; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-hi); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- section heads ---------- */
section { position: relative; }
.proof, .features, .rank, .record, .pricing, .download, .faq, .channels { padding: 96px 0; }
.section-head { max-width: 820px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 0.8rem/1.2 var(--f-ui); letter-spacing: 0.26em; color: var(--gold); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; flex: none; background: linear-gradient(90deg, transparent, var(--gold)); }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; flex: none; background: linear-gradient(90deg, var(--gold), transparent); }
.eyebrow.red { color: #ff7a6e; }
.eyebrow.red::before { background: linear-gradient(90deg, transparent, var(--red)); }
h2 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 5.6vw, 3.8rem); line-height: 1.02; letter-spacing: 0.015em; }
[data-script="cjk"] h2 { font-weight: 900; font-size: clamp(1.9rem, 5vw, 3.3rem); line-height: 1.22; letter-spacing: 0.01em; }
html:lang(vi) h2 { font-weight: 600; line-height: 1.12; font-size: clamp(1.9rem, 5vw, 3.1rem); }
h3 { margin: 0 0 10px; font-family: var(--f-ui); font-weight: 600; font-size: clamp(1.18rem, 2.6vw, 1.45rem); line-height: 1.3; letter-spacing: 0.01em; }
[data-script="cjk"] h3 { font-family: var(--f-body); font-weight: 800; line-height: 1.4; letter-spacing: 0; }
.sub { color: var(--ink2); margin: 0; font-size: 1.05rem; }

/* HUD 角框 */
.stat, .tile, .plan, .channel, .rank-sim, .route, .board { position: relative; }
.stat::before, .stat::after, .rank-sim::before, .rank-sim::after, .board::before, .board::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold); opacity: 0.7; pointer-events: none; z-index: 2;
}
.stat::before, .rank-sim::before, .board::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.stat::after, .rank-sim::after, .board::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }

/* ---------- proof ---------- */
.proof { background: linear-gradient(180deg, transparent, rgba(11, 18, 34, 0.6) 30%, transparent); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { padding: 26px 14px 22px; border-radius: var(--r-md); background: var(--glass); box-shadow: 0 0 0 1px var(--hair) inset; text-align: center; }
.stat-num { display: flex; align-items: baseline; justify-content: center; gap: 4px; font: 700 clamp(3rem, 9vw, 4.6rem)/1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-num .pre { font-size: 0.55em; color: var(--ink2); }
.stat-num small { font-size: 1.3rem; color: var(--ink2); }
.stat-num.cyan { color: #eaffff; text-shadow: 0 0 22px rgba(77, 225, 255, 0.55); }
.stat-num.cyan small { color: var(--cyan); }
.stat-num.gold .count { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 10px; color: var(--ink2); font-size: 0.9rem; line-height: 1.45; }
.proof-note { max-width: 760px; margin: 34px auto 0; text-align: center; color: var(--ink2); }

/* ---------- bento ---------- */
.bento { display: grid; gap: 18px; }
.tile {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  display: grid; gap: 22px; padding: 26px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, rgba(20, 30, 56, 0.85), rgba(9, 14, 28, 0.9));
  box-shadow: 0 0 0 1px var(--hair) inset, 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out), box-shadow 300ms, opacity 900ms var(--ease-out);
}
.js .tile[data-reveal] { transform: perspective(1100px) translateY(26px); }
.js .tile[data-reveal].in { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(249, 229, 144, 0.12), transparent 60%);
}
.tile:hover { box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.38) inset, 0 40px 80px -40px rgba(77, 225, 255, 0.25); }
.tile:hover::before { opacity: 1; }
.tilting { transition: transform 80ms linear, box-shadow 300ms !important; }
.tile-kicker { margin: 0 0 8px; font: 600 0.78rem/1.2 var(--f-ui); letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; }
.tile-kicker.red { color: #ff8a80; }
.tile p { margin: 0 0 10px; color: var(--ink2); }
.tile-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 0.95rem/1 var(--f-ui); color: var(--gold-hi); text-decoration: none; letter-spacing: 0.04em; }
.tile-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 220ms; }
.tile-link:hover svg { transform: translateX(4px); }
.tile-demo { position: relative; transform: translateZ(40px); }

/* pill demo(對照 App 的懸浮球) */
.pill-demo { display: grid; gap: 18px; justify-items: center; padding: 18px 0 6px; }
/* v12:懸浮球浮在軌道夜景上(App 宣傳片的「遊戲頁」;程式繪製、沒有任何遊戲畫面或文字),下緣壓暗讓圖例看得清楚 */
.tile-pill .pill-demo { position: relative; overflow: hidden; border-radius: 18px; padding: 34px 14px 16px; isolation: isolate;
  background: #03050c image-set(url("assets/orbit-night-640.webp") 1x, url("assets/orbit-night-1080.webp") 2x) center 62% / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(212, 176, 90, 0.22) inset; }
.tile-pill .pill-demo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 5, 12, 0.15) 0%, rgba(3, 5, 12, 0.05) 40%, rgba(3, 5, 12, 0.78) 100%); }
/* v10:懸浮球玻璃上定時掠過的一道光澤(每 6 s 一次);減少動態時不播 */
.pill { position: relative; overflow: hidden; }
.pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 246, 214, 0.18) 50%, transparent 58%) 100% 0 / 300% 100% no-repeat;
  animation: pillSheen 6s linear infinite; }
@keyframes pillSheen { 0% { background-position: 100% 0; } 15%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .pill::after { animation: none; opacity: 0; } }
.pill {
  --c: var(--cyan);
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px 0 8px; border-radius: 999px;
  background: rgba(11, 18, 34, 0.95); box-shadow: 0 0 0 1.5px rgba(212, 176, 90, 0.75) inset, 0 0 0 1px rgba(0, 0, 0, 0.6), 0 18px 40px -18px rgba(0, 0, 0, 0.9), 0 0 30px -8px var(--c);
  transition: box-shadow 400ms;
}
.pill[data-state="warn"] { --c: var(--warn); }
.pill[data-state="bad"] { --c: var(--bad); }
.pill[data-state="off"] { --c: var(--off); }
.pill-badge { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px var(--gold) inset; flex: none; display: grid; place-items: center; background: #050a16; }
.pill-badge img { width: 44px; height: 44px; }
.pill-faces { position: relative; width: 112px; height: 48px; perspective: 400px; }
.pill-face { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 700ms var(--ease-spring); }
.pill-face small { position: absolute; top: 2px; left: 0; font: 600 0.62rem/1 var(--f-ui); letter-spacing: 0.18em; color: var(--champagne); white-space: nowrap; }
.pill-face b { margin-top: 12px; font: 700 2rem/1 var(--f-num); color: var(--c); text-shadow: 0 0 12px var(--c); font-variant-numeric: tabular-nums; transition: color 400ms; }
.pill-face i { margin-top: 18px; font: 700 0.85rem/1 var(--f-num); font-style: normal; color: var(--ink2); }
.face-b { transform: rotateX(-180deg); }
.face-b b { color: #ff8a80; text-shadow: 0 0 12px rgba(255, 90, 80, 0.7); }
.pill.flip .face-a { transform: rotateX(180deg); }
.pill.flip .face-b { transform: rotateX(0deg); }
.pill-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.pill-bars i { width: 4px; border-radius: 2px; background: var(--c); box-shadow: 0 0 6px var(--c); transition: background 400ms, opacity 400ms; }
.pill-bars i:nth-child(1) { height: 30%; } .pill-bars i:nth-child(2) { height: 45%; } .pill-bars i:nth-child(3) { height: 60%; }
.pill-bars i:nth-child(4) { height: 80%; } .pill-bars i:nth-child(5) { height: 100%; }
.pill[data-state="warn"] .pill-bars i:nth-child(n+4), .pill[data-state="bad"] .pill-bars i:nth-child(n+3), .pill[data-state="off"] .pill-bars i { opacity: 0.18; box-shadow: none; }
.pill-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 0.85rem; color: var(--ink2); }
.pill-legend li { display: flex; align-items: center; gap: 8px; transition: color 300ms; }
.pill-legend li.cur { color: var(--ink); }
.pill-legend i { width: 10px; height: 10px; border-radius: 50%; }
.pill-legend [data-s="good"] i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pill-legend [data-s="warn"] i { background: var(--warn); }
.pill-legend [data-s="bad"] i { background: var(--bad); }
.pill-legend [data-s="off"] i { background: var(--off); }

/* rank tile:CSS 3D 環 */
.ring-demo { display: grid; place-items: center; min-height: 230px; perspective: 800px; }
.ring-3d { position: relative; width: 200px; height: 200px; transform-style: preserve-3d; animation: ringTilt 9s ease-in-out infinite; }
.ring-3d img { position: absolute; inset: 22%; width: 56%; height: 56%; border-radius: 50%; filter: drop-shadow(0 0 22px rgba(77, 225, 255, 0.55)); transform: translateZ(10px); }
.ring { position: absolute; inset: 0; border-radius: 50%; }
.ring.r1 { border: 3px solid var(--red); box-shadow: 0 0 24px rgba(213, 52, 44, 0.8), inset 0 0 18px rgba(213, 52, 44, 0.55); animation: spinA 6s linear infinite; }
.ring.r2 { inset: 10px; border: 2px solid rgba(249, 229, 144, 0.75); border-left-color: transparent; border-right-color: transparent; animation: spinB 4.5s linear infinite; }
.ring.r3 { inset: -14px; border: 1px dashed rgba(77, 225, 255, 0.45); animation: spinC 14s linear infinite; }
@keyframes ringTilt { 0%, 100% { transform: rotateX(18deg) rotateY(-14deg); } 50% { transform: rotateX(-10deg) rotateY(16deg); } }
@keyframes spinA { to { transform: rotateZ(360deg) rotateX(12deg); } }
@keyframes spinB { from { transform: rotateY(60deg) rotateZ(0); } to { transform: rotateY(60deg) rotateZ(-360deg); } }
@keyframes spinC { to { transform: rotateZ(360deg); } }

/* check demo */
.check-demo { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.score-ring { width: 120px; height: 120px; overflow: visible; }
.score-ring circle { fill: none; stroke-width: 9; transform: rotate(-90deg); transform-origin: 60px 60px; }
.score-ring .track { stroke: rgba(255, 255, 255, 0.06); }
.score-ring .seg { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 54 260.16; filter: drop-shadow(0 0 6px rgba(77, 225, 255, 0.8)); transition: stroke-dasharray 520ms var(--ease-out), opacity 300ms; }
.score-ring .s1 { stroke-dashoffset: 0; } .score-ring .s2 { stroke-dashoffset: -62.8; } .score-ring .s3 { stroke-dashoffset: -125.7; }
.score-ring .s4 { stroke-dashoffset: -188.5; } .score-ring .s5 { stroke-dashoffset: -251.3; }
.check-demo.run .seg { stroke-dasharray: 0 314.16; }
.check-demo.run .seg.on { stroke-dasharray: 54 260.16; }
.score-text { font: 700 26px var(--f-num); fill: #eaffff; }
.check-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(77, 225, 255, 0.07); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset; color: var(--ink); font-size: 0.92rem; transition: background 400ms, color 400ms; }
.check-steps b { margin-left: auto; font: 700 1rem/1 var(--f-num); color: var(--cyan); letter-spacing: 0.03em; white-space: nowrap; transition: color 400ms; }
.tick { width: 18px; height: 18px; border-radius: 50%; position: relative; flex: none; background: var(--cyan); box-shadow: 0 0 10px rgba(77, 225, 255, 0.8); transition: box-shadow 300ms, background 300ms; }
.tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #06101c; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(1); transition: transform 380ms var(--ease-spring); }
.check-demo.run .check-steps li { background: rgba(255, 255, 255, 0.03); color: var(--ink2); }
.check-demo.run .check-steps b { color: var(--ink3); }
.check-demo.run .tick { background: transparent; box-shadow: 0 0 0 1.5px var(--ink3) inset; }
.check-demo.run .tick::after { transform: rotate(45deg) scale(0); }
.check-demo.run .check-steps li.done { background: rgba(77, 225, 255, 0.07); color: var(--ink); }
.check-demo.run .check-steps li.done b { color: var(--cyan); }
.check-demo.run .check-steps li.done .tick { background: var(--cyan); box-shadow: 0 0 10px rgba(77, 225, 255, 0.8); }
.check-demo.run .check-steps li.done .tick::after { transform: rotate(45deg) scale(1); }

/* recap demo */
.recap-demo { padding: 16px; border-radius: 16px; background: rgba(5, 9, 20, 0.6); box-shadow: 0 0 0 1px rgba(77, 225, 255, 0.14) inset; }
.recap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--ink2); font-size: 0.85rem; }
.recap-head b { font: 700 2.4rem/1 var(--f-num); color: #eaffff; text-shadow: 0 0 16px rgba(77, 225, 255, 0.6); }
.recap-head small { font-size: 1rem; color: var(--cyan); margin-left: 2px; }
.spark { width: 100%; height: 80px; margin: 6px 0 10px; }
.spark-line { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(77, 225, 255, 0.9)); }
.spark-area { fill: url(#sparkFill); }
.js .spark-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1800ms var(--ease-out) 300ms; }
.js .spark-area { opacity: 0; transition: opacity 1200ms 900ms; }
.js .in .spark-line { stroke-dashoffset: 0; }
.js .in .spark-area { opacity: 1; }
.recap-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.recap-chips > span { display: grid; gap: 2px; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); text-align: center; color: var(--ink3); font-size: 0.76rem; line-height: 1.3; }
.recap-chips b { font: 700 1.25rem/1 var(--f-num); color: var(--ink); }

/* ---------- rank ---------- */
.rank { background: radial-gradient(70% 60% at 85% 40%, rgba(213, 52, 44, 0.12), transparent 70%), linear-gradient(180deg, transparent, rgba(11, 18, 34, 0.55) 40%, transparent); }
.rank-grid { display: grid; gap: 40px; align-items: center; }
.rank-copy p { color: var(--ink2); }
.pass-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.pass-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); color: var(--ink); }
.pass-list i { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; flex: none; }
.pass-list .pass i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pass-list .hold i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.rank-sim { border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, rgba(14, 22, 42, 0.9), rgba(6, 10, 22, 0.95)); box-shadow: 0 0 0 1px var(--hair) inset, 0 40px 80px -40px rgba(213, 52, 44, 0.35); }
.rank-sim canvas { width: 100%; aspect-ratio: 4 / 3; }
.sim-labels { position: absolute; inset: 0; pointer-events: none; font: 600 0.76rem/1 var(--f-ui); letter-spacing: 0.14em; color: var(--ink3); text-transform: uppercase; }
.sim-l { position: absolute; top: 14px; }
.sim-l.phone { left: 16px; }
.sim-l.net { right: 16px; }
.sim-legend { position: absolute; left: 16px; bottom: 76px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--ink2); pointer-events: none; }
.sim-legend .lg { display: flex; align-items: center; gap: 6px; }
.sim-legend i { width: 9px; height: 9px; border-radius: 50%; }
.sim-legend .game i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.sim-legend .other i { background: #9c8cff; }
html:not(.js) .rank-sim-wrap { display: none; }
.sim-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(4, 7, 15, 0.6); }
.sim-count { color: var(--ink2); font: 600 0.88rem/1 var(--f-ui); letter-spacing: 0.03em; white-space: nowrap; }
.sim-count b { font: 700 1.6rem/1 var(--f-num); color: #ff8a80; margin-left: 4px; font-variant-numeric: tabular-nums; }

.route-compare { display: grid; gap: 16px; margin-top: 56px; }
.route { padding: 22px; border-radius: var(--r-md); background: var(--glass); box-shadow: 0 0 0 1px var(--hair) inset; }
.route-title { margin: 0 0 6px; font: 600 0.85rem/1.2 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink3); }
.route-title.gold { color: var(--gold-hi); }
.route-svg { width: 100%; height: auto; overflow: visible; }
.route-svg circle { fill: #0b1222; stroke: var(--gold); stroke-width: 2; }
.route-svg path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
.route-svg.detour path { stroke: var(--amber); }
.route-svg.direct path { stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(77, 225, 255, 0.8)); stroke-dasharray: 14 8; animation-duration: 0.7s; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.route-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; line-height: 1.35; color: var(--ink2); margin-top: 4px; }
.route-labels span:nth-child(2):not(:last-child) { text-align: center; }
.route-labels span:last-child { text-align: right; }

/* ---------- record ---------- */
.record { background: radial-gradient(60% 50% at 20% 50%, rgba(212, 176, 90, 0.10), transparent 70%), radial-gradient(50% 50% at 85% 50%, rgba(122, 82, 144, 0.14), transparent 70%); }
.record-grid { display: grid; gap: 22px; align-items: center; }
.record-side { display: grid; gap: 16px; }
.board-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.board-lead { margin: 12px 0 0; color: var(--ink2); font-size: 0.9rem; }
.board-lead b { font: 700 1.35rem/1 var(--f-num); color: var(--cyan); text-shadow: 0 0 12px rgba(77, 225, 255, 0.5); }
.medal-disc { position: relative; width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center; perspective: 300px;
  background: radial-gradient(circle at 35% 28%, #fff7d4 0%, var(--gold-hi) 22%, var(--gold) 55%, var(--gold-lo) 100%);
  box-shadow: 0 0 0 3px rgba(249, 229, 144, 0.22), 0 12px 30px -8px rgba(212, 176, 90, 0.75), inset 0 -5px 10px rgba(0, 0, 0, 0.35), inset 0 3px 6px rgba(255, 255, 255, 0.5);
  animation: medalSwing 6s ease-in-out infinite; }
.board + .board .medal-disc { animation-delay: -3s; }
@keyframes medalSwing { 0%, 100% { transform: rotateY(-22deg); } 50% { transform: rotateY(22deg); } }
.medal-ring { position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(249, 229, 144, 0.55); animation: spinC 14s linear infinite; }
.medal-no { font: 400 2.1rem/1 "Bebas Neue", var(--f-num); color: #3a2608; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); margin-top: 3px; }
.medal-text { display: grid; gap: 2px; min-width: 0; }
.medal-text b { font: 700 2rem/1 var(--f-num); color: var(--ink); letter-spacing: 0.02em; }
.medal-text span { color: var(--champagne); font-size: 0.86rem; line-height: 1.35; }
.board { padding: 18px; border-radius: var(--r-md); background: linear-gradient(160deg, rgba(20, 30, 56, 0.92), rgba(8, 12, 26, 0.96)); box-shadow: 0 0 0 1px var(--hair-cyan) inset; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; font: 600 0.8rem/1.3 var(--f-ui); letter-spacing: 0.1em; color: var(--ink2); }
.board-period { color: var(--ink3); font-family: var(--f-num); letter-spacing: 0.06em; }
.board-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(212, 176, 90, 0.3), rgba(212, 176, 90, 0.05)); box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.45) inset, 0 0 30px -10px rgba(249, 229, 144, 0.5); }
.board-pos { font: 400 2.3rem/1 "Bebas Neue", var(--f-num); color: var(--gold-hi); text-shadow: 0 0 14px rgba(249, 229, 144, 0.6); text-align: center; }
.board-name { font: 700 1.2rem/1.1 var(--f-num); letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; }
.board-rating { display: flex; flex-direction: column; align-items: flex-end; font: 700 1.7rem/1 var(--f-num); color: #eaffff; text-shadow: 0 0 14px rgba(77, 225, 255, 0.6); }
.board-rating small { font: 600 0.62rem/1 var(--f-ui); letter-spacing: 0.22em; color: var(--ink3); text-shadow: none; margin-bottom: 4px; }
.board-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; text-align: center; }
.board-stats span { display: grid; gap: 2px; color: var(--ink3); font-size: 0.76rem; line-height: 1.25; }
.board-stats b { font: 700 1.55rem/1.1 var(--f-num); color: var(--ink); }
.board-stats .wr b { color: var(--cyan); text-shadow: 0 0 12px rgba(77, 225, 255, 0.5); }
.board-bar { display: flex; gap: 2px; height: 6px; margin-top: 12px; border-radius: 3px; overflow: hidden; }
.board-bar i { width: var(--w); transform-origin: left; transition: transform 1400ms var(--ease-out) 400ms; }
.board-bar i:nth-child(1) { background: var(--win); box-shadow: 0 0 8px rgba(61, 220, 132, 0.6); }
.board-bar i:nth-child(2) { background: #6d7486; }
.board-bar i:nth-child(3) { background: var(--bad); }
.js .board:not(.in) .board-bar i { transform: scaleX(0); }

.video-card { --ang: 0deg; position: relative; padding: 18px; border-radius: 28px; isolation: isolate;
  background: linear-gradient(170deg, rgba(16, 24, 46, 0.97), rgba(7, 11, 24, 0.98)); }
.video-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), #4de1ff, #2f6bff, #7a5290, #ff4f8b, #f9e590, #4de1ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 6s linear infinite; }
.video-card::after { content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: inherit; filter: blur(40px); opacity: 0.35; pointer-events: none;
  background: conic-gradient(from var(--ang), #4de1ff, #7a5290, #ff4f8b, #f9e590, #4de1ff); animation: spinBorder 6s linear infinite; }
.vc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vc-tag { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; color: var(--ink); font: 600 0.84rem/1 var(--f-ui); letter-spacing: 0.03em; box-shadow: 0 0 0 1.5px rgba(77, 225, 255, 0.45) inset; background: rgba(77, 225, 255, 0.05); }
.vc-tag svg { width: 12px; height: 12px; fill: var(--cyan); }
.vc-date { margin-left: auto; color: var(--ink3); font: 600 0.88rem/1 var(--f-num); letter-spacing: 0.06em; }
.video-card h3 { margin: 16px 2px 14px; font-size: clamp(1.3rem, 3vw, 1.75rem); }
.vc-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #050a16; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.vc-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 900ms var(--ease-out); }
.vc-media:hover img { transform: scale(1.16); }
.vc-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 45%, transparent 30%, rgba(4, 7, 15, 0.65)); pointer-events: none; }
.vc-poster { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.vc-poster small { font: 600 0.9rem/1 var(--f-ui); letter-spacing: 0.6em; padding-left: 0.6em; color: var(--champagne); }
.vc-poster b { font: 400 clamp(6rem, 22vw, 9.5rem)/0.82 "Bebas Neue", var(--f-num); margin-top: 8px;
  background: linear-gradient(180deg, #fff6cf 0%, var(--gold-hi) 35%, var(--gold) 70%, var(--amber) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(249, 229, 144, 0.45)); transition: transform 600ms var(--ease-spring); }
.vc-media:hover .vc-poster b { transform: scale(1.06); }
.vc-poster span { margin-top: 8px; font: 700 0.95rem/1 var(--f-num); letter-spacing: 0.3em; padding-left: 0.3em; color: var(--cyan); text-shadow: 0 0 12px rgba(77, 225, 255, 0.7); }
.vc-play { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(6, 10, 22, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85) inset, 0 0 30px rgba(77, 225, 255, 0.45); transition: transform 300ms var(--ease-spring); }
.vc-play::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(77, 225, 255, 0.6); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.vc-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.vc-media:hover .vc-play { transform: scale(1.1); }
.vc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.vc-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold), 0 0 16px -2px rgba(212, 176, 90, 0.7); }
.vc-who { display: grid; line-height: 1.2; }
.vc-who b { font-weight: 800; }
.vc-who small { color: var(--ink3); font-size: 0.82rem; }
.vc-links { margin-left: auto; display: flex; gap: 8px; }
.vc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  font: 600 0.92rem/1 var(--f-ui); letter-spacing: 0.03em; color: var(--cyan); box-shadow: 0 0 0 1.5px rgba(77, 225, 255, 0.5) inset; transition: background 220ms, color 220ms; }
.vc-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.vc-btn.yt { color: #ff7b7b; box-shadow: 0 0 0 1.5px rgba(255, 59, 59, 0.55) inset; }
.vc-btn:hover { background: var(--cyan); color: #06101c; }
.vc-btn.yt:hover { background: #ff3b3b; color: #fff; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }
.plan {
  --rx: 0deg; --ry: 0deg; --ang: 0deg;
  display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: var(--r-lg); background: linear-gradient(170deg, rgba(20, 30, 56, 0.9), rgba(8, 12, 26, 0.95));
  box-shadow: 0 0 0 1px var(--hair) inset; transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 500ms var(--ease-out), opacity 900ms var(--ease-out);
}
.js .plan[data-reveal] { transform: perspective(1100px) translateY(26px); }
.js .plan[data-reveal].in { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }
.plan .btn { margin-top: auto; }
.plan-best { box-shadow: 0 0 0 1.5px rgba(249, 229, 144, 0.6) inset, 0 40px 90px -40px rgba(212, 176, 90, 0.55); }
.plan-best::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, rgba(249, 229, 144, 0.95) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 5s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --ang: 360deg; } }
.plan-flag { position: absolute; top: 18px; right: 18px; padding: 6px 12px; border-radius: 999px; font: 600 0.74rem/1 var(--f-ui); letter-spacing: 0.1em; color: #1b1307; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.plan-name { margin: 0; padding-right: 110px; font: 600 0.9rem/1.2 var(--f-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne); }
.plan-price { margin: 14px 0 4px; font: 400 4.8rem/0.9 "Bebas Neue", var(--f-num); color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.plan-best .plan-price { background: linear-gradient(180deg, #fff6cf, var(--gold-hi) 40%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price .cur { font: 700 1.2rem/1 var(--f-num); color: var(--ink2); -webkit-text-fill-color: var(--ink2); }
.plan-price .per { font: 600 1rem/1 var(--f-ui); color: var(--ink2); -webkit-text-fill-color: var(--ink2); letter-spacing: 0.04em; }
.plan-eq { margin: 6px 0 0; color: var(--gold); font-size: 0.9rem; }
.plan-list { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; color: var(--ink2); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--cyan) 0 3px, transparent 4px), rgba(77, 225, 255, 0.12); box-shadow: 0 0 0 1px rgba(77, 225, 255, 0.4) inset; }
/* 免綁卡試用條(價格區、兩個方案下方):左文右鈕,窄螢幕上下排 */
.trial-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; max-width: 860px; margin: 22px auto 0;
  padding: 18px 22px; border-radius: var(--r-md); background: var(--glass); box-shadow: 0 0 0 1px var(--hair-cyan) inset; }
.trial-copy { flex: 1 1 320px; min-width: 0; }
.trial-h { margin: 0 0 4px; font: 700 1.1rem/1.3 var(--f-ui); letter-spacing: 0.02em; color: var(--cyan); }
.trial-p { margin: 0; color: var(--ink2); font-size: 0.92rem; }
.trial-strip .btn { flex: 0 1 auto; max-width: 100%; text-align: center; }
.plan-notes { list-style: none; max-width: 880px; margin: 30px auto 0; padding: 0; display: grid; gap: 10px; color: var(--ink2); font-size: 0.9rem; }
.plan-notes li { padding-left: 18px; position: relative; }
.plan-notes li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 2px; background: var(--gold); }
.plan-notes a { overflow-wrap: break-word; overflow-wrap: anywhere; }  /* 前一個是舊 Safari(<15.4)的備援。信箱整段先換行,一行都放不下才斷(break-all 會在 320–390 寬把信箱從中間切開;介面打磨 10/19) */

/* ---------- download(保留區塊:開放前按鈕停用) ---------- */
.download { background: radial-gradient(60% 55% at 50% 40%, rgba(47, 107, 255, 0.10), transparent 70%); }
.dl-grid { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; align-items: center; }
.dl-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  position: relative; display: grid; gap: 20px; padding: 26px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(165deg, rgba(20, 30, 56, 0.92), rgba(8, 12, 26, 0.96));
  box-shadow: 0 0 0 1px var(--hair) inset, 0 40px 90px -45px rgba(47, 107, 255, 0.55);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 500ms var(--ease-out), opacity 900ms var(--ease-out);
}
.js .dl-card[data-reveal] { transform: perspective(1100px) translateY(26px); }
.js .dl-card[data-reveal].in { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }
.dl-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(77, 225, 255, 0.10), transparent 60%); }
.dl-top { display: flex; align-items: center; gap: 18px; }
.dl-icon { width: 88px; height: 88px; flex: none; border-radius: 22px; box-shadow: 0 16px 40px -14px rgba(77, 225, 255, 0.6), 0 0 0 1px rgba(249, 229, 144, 0.35); }
.dl-id { display: grid; gap: 6px; min-width: 0; }
.dl-name { margin: 0; font: 700 1.9rem/1 var(--f-num); letter-spacing: 0.02em; }
.dl-name span { margin-left: 6px; font: 600 0.95rem/1 var(--f-ui); letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; }
.dl-status { margin: 0; display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 999px; font: 600 0.8rem/1 var(--f-ui); letter-spacing: 0.08em; color: var(--warn); background: rgba(255, 176, 32, 0.1); box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.4) inset; }
.dl-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 1.8s ease-in-out infinite; }
.dl-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-meta > div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset; }
.dl-meta .sha { grid-column: 1 / -1; }
.dl-meta dt { font: 600 0.72rem/1.2 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.dl-meta dd { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.45; }
.dl-meta .sha dd { color: var(--ink2); font-size: 0.88rem; }
.dl-only { margin: 0; text-align: center; }
.dl-steps-title { margin: 0 0 14px; font: 600 0.85rem/1.2 var(--f-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dl-steps li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--r-md); background: var(--glass); box-shadow: 0 0 0 1px var(--hair) inset; }
.dl-steps li + li::before { content: ""; position: absolute; left: 38px; top: -13px; width: 2px; height: 14px; background: linear-gradient(var(--gold), transparent); }
.dl-steps b { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 400 1.5rem/1 "Bebas Neue", var(--f-num); color: #1b1307;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 18px -4px rgba(249, 229, 144, 0.7); }
.dl-steps h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.dl-steps p { margin: 0; color: var(--ink2); font-size: 0.93rem; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); background: var(--glass); box-shadow: 0 0 0 1px var(--hair) inset; overflow: hidden; transition: box-shadow 300ms, background 300ms; }
.faq details[open] { background: var(--glass-hi); box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.4) inset; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 16px 20px; font-weight: 700; font-size: 1.02rem; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -4px; border-radius: var(--r-md); }
.faq summary i { margin-left: auto; position: relative; width: 24px; height: 24px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--hair) inset; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 7px; right: 7px; top: 11px; height: 2px; background: var(--gold-hi); transition: transform 300ms var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq .ans { padding: 0 20px 18px; color: var(--ink2); }
.faq .ans p { margin: 0 0 10px; }
.faq details[open] .ans { animation: ansIn 420ms var(--ease-out); }
@keyframes ansIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- channels ---------- */
.channel-grid { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.channel {
  --rx: 0deg; --ry: 0deg; --acc: #ff3b3b; --acc2: rgba(255, 59, 59, 0.35);
  display: grid; gap: 6px; padding: 22px; border-radius: var(--r-lg); color: var(--ink); text-decoration: none;
  background: linear-gradient(160deg, rgba(20, 30, 56, 0.9), rgba(8, 12, 26, 0.95)); box-shadow: 0 0 0 1px var(--acc2) inset;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 500ms var(--ease-out), box-shadow 300ms, opacity 900ms var(--ease-out);
}
.js .channel[data-reveal] { transform: perspective(1100px) translateY(26px); }
.js .channel[data-reveal].in { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); }
.channel.tk { --acc: var(--cyan); --acc2: rgba(77, 225, 255, 0.32); }
.channel:hover { color: var(--ink); box-shadow: 0 0 0 1.5px var(--acc) inset, 0 30px 70px -30px var(--acc2); }
.ch-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.ch-avatar { position: relative; width: 76px; height: 76px; }
.ch-avatar img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--acc), 0 0 22px -2px var(--acc); }
.channel.tk .ch-avatar img { box-shadow: 0 0 0 2px var(--cyan), 0 0 0 4px rgba(255, 45, 85, 0.6), 0 0 22px -2px var(--cyan); }
.ch-platform { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #0b1222; box-shadow: 0 0 0 2px #0b1222, 0 0 0 3px var(--acc2); }
.ch-platform svg { width: 16px; height: 16px; fill: var(--acc); }
.channel.tk .ch-platform svg { fill: #fff; filter: drop-shadow(1px 0 0 #ff2d55) drop-shadow(-1px 0 0 var(--cyan)); }
.ch-follow { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; font: 600 0.92rem/1 var(--f-ui); letter-spacing: 0.03em; color: var(--acc); box-shadow: 0 0 0 1.5px var(--acc2) inset; transition: background 250ms, color 250ms; white-space: nowrap; }
.ch-follow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.channel:hover .ch-follow { background: var(--acc); color: #06101c; }
.ch-name { font: 700 1.6rem/1.1 var(--f-num); letter-spacing: 0.02em; }
.channel.yt .ch-name { color: #ff6b6b; }
.channel.tk .ch-name { color: var(--cyan); }
.ch-role { color: var(--ink2); font-size: 0.95rem; }
.ch-stat { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; color: var(--ink2); font-size: 0.9rem; }
.ch-stat b { font: 700 1.6rem/1 var(--f-num); color: var(--ink); }
.official-note { display: flex; gap: 16px; align-items: flex-start; max-width: 880px; margin: 18px auto 0; padding: 18px 20px; border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(60, 16, 22, 0.55), rgba(18, 10, 18, 0.7)); box-shadow: 0 0 0 1px rgba(213, 52, 44, 0.4) inset; }
.official-note p { margin: 0; color: var(--ink2); }
.official-note b { display: block; color: var(--ink); margin-bottom: 4px; }
.on-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(213, 52, 44, 0.12); box-shadow: 0 0 0 1px rgba(213, 52, 44, 0.45) inset; }
.on-icon svg { width: 22px; height: 22px; fill: none; stroke: #ff8a80; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- closing ---------- */
.closing { padding: 80px 0 110px; text-align: center; overflow: hidden; }
.closing-inner { display: grid; justify-items: center; gap: 22px; }
.closing-emblem { width: 200px; height: 200px; filter: drop-shadow(0 0 40px rgba(77, 225, 255, 0.35)) drop-shadow(0 0 80px rgba(212, 176, 90, 0.25)); animation: floaty 6s ease-in-out infinite; }
.closing h2 { max-width: 16em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(212, 176, 90, 0.14); background: rgba(4, 7, 15, 0.9); padding: 40px 0 28px; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand img { width: 130px; height: auto; margin-bottom: 12px; }
.footer-brand .fine { max-width: 52em; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink2); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); box-shadow: 0 0 0 1px var(--hair) inset; transition: color 200ms, box-shadow 200ms; }
.footer-social a:hover { color: var(--gold-hi); box-shadow: 0 0 0 1px rgba(249, 229, 144, 0.6) inset; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--ink3); font-size: 0.85rem; }
.footer-base a { color: var(--ink2); }

/* ---------- legal pages ---------- */
.legal main { padding-top: 112px; padding-bottom: 72px; }
html:not([data-lang]) .zh + .en::before { content: " / "; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink2); text-decoration: none; font: 500 0.95rem/1 var(--f-ui); }
.legal .back:hover { color: var(--gold-hi); }
.legal .back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.legal section.lang { padding: 34px 28px; border-radius: var(--r-lg); background: var(--glass); box-shadow: 0 0 0 1px var(--hair) inset; }
.legal section.lang + section.lang { margin-top: 24px; }
html[data-lang] .legal section.lang + section.lang { margin-top: 0; }
.legal h1 { margin: 0 0 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: 0.02em; }
.legal section[lang^="zh"] h1 { font-weight: 900; line-height: 1.2; }
.legal h2 { font-family: var(--f-body); font-weight: 800; font-size: 1.2rem; margin: 30px 0 10px; color: var(--champagne); letter-spacing: 0; line-height: 1.4; }
.legal p, .legal li { color: var(--ink2); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 4px 0; }
.legal code { font-size: 0.88em; color: var(--champagne); background: rgba(255, 255, 255, 0.05); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.legal .muted { color: var(--ink3); font-size: 0.92rem; }
html[data-lang="zh"] .legal section.lang[lang^="en"], html[data-lang="en"] .legal section.lang[lang^="zh"] { display: none; }

/* ---------- responsive ---------- */
@media (min-width: 560px) {
  .header-actions .btn-sm { display: inline-flex; }
  .check-demo { grid-template-columns: 140px 1fr; }
  .score-ring { width: 140px; height: 140px; }
}
@media (min-width: 760px) {
  .wrap { padding: 0 28px; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .route-compare { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .dl-grid { grid-template-columns: 1.05fr 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr auto; align-items: start; }
  .footer-nav { flex-direction: column; gap: 0; }
}
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.04fr 1fr; gap: 24px; }
  .hero-stage { max-width: 600px; }
  .scroll-cue { display: block; }
  .bento { grid-template-columns: repeat(12, 1fr); }
  .tile-pill { grid-column: span 7; grid-template-columns: 1.05fr 1fr; align-items: center; }
  .tile-rank { grid-column: span 5; }
  .tile-check { grid-column: span 5; }
  .tile-recap { grid-column: span 7; grid-template-columns: 1fr 1.05fr; align-items: center; }
  .rank-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .record-grid { grid-template-columns: 1fr 1.08fr; gap: 32px; }
}
@media (min-width: 1100px) {
  .main-nav { display: flex; }
  .section-nav { display: none; }
}
/* 沒有桌面選單的寬度:頁首多一排段落選單(約 56 px)——首屏內容往下讓、跳段落時標題不被頁首蓋住 */
@media (max-width: 1099.98px) {   /* .98:瀏覽器縮放出現 1099.5 這種寬度時,兩個斷點都要接得上(審查 LOW) */
  html { scroll-padding-top: 150px; }
  .hero { padding-top: 160px; }
}
@media (max-width: 979px) {
  .hero { padding-top: 160px; padding-bottom: 100px; }   /* 錶盤下的示意說明在窄螢幕會換兩行,首屏 overflow:hidden 不能切到它 */
  .hero-stage { max-width: 440px; margin-top: 4px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .header-row { padding: 0 8px 0 10px; width: calc(100% - 16px); }
  .section-nav { width: calc(100% - 16px); }   /* 與頁首膠囊同寬、左右對齊 */
  .brand-word { width: 88px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .tile { padding: 20px; }
  .check-demo { grid-template-columns: 1fr; justify-items: center; }
  .check-steps { width: 100%; }
  .medal-disc { width: 60px; height: 60px; }
  .medal-no { font-size: 1.8rem; }
  .medal-text b { font-size: 1.7rem; }
  .vc-play { width: 46px; height: 46px; right: 10px; bottom: 10px; }
  .vc-play svg { width: 18px; height: 18px; }
  .vc-links { width: 100%; margin-left: 0; }
  .vc-btn { flex: 1; }
  .video-card { padding: 14px; }
  .plan-name { padding-right: 0; margin-top: 30px; }
  .legal section.lang { padding: 26px 18px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero-title .line[data-reveal] > span, .js .mask > span > span { opacity: 1 !important; transform: none !important; }
  .js .spark-line { stroke-dashoffset: 0; } .js .spark-area { opacity: 1; }
  .js .board:not(.in) .board-bar i { transform: none; }
  .hero-bg video { display: none; }
}
