/* =========================================================
   神來AI SHENLAI — 深海光帶 Deep Navy
   ========================================================= */
/* color-scheme: dark keeps scrollbars / native form UI dark on the navy page */
:root {
  color-scheme: dark;
  /* Brand core (design_tokens.json) */
  --navy: #09172F;
  --blue: #1256E5;
  --cyan: #00BFE8;
  --text: #F6FAFF;
  --muted: #7E94B3;
  --running: #00D6B0;

  /* Derived tints / shades of the brand palette */
  --navy-900: #061022;
  --navy-800: #0C2149;
  --navy-700: #12295A;
  --blue-400: #4C8DFF;
  --blue-300: #8DB6FF;
  --text-2: #B9C9E2;          /* secondary text on dark */
  --line: rgba(141, 182, 255, .14);
  --line-strong: rgba(141, 182, 255, .26);
  --glass-2: rgba(12, 33, 73, .64);

  --grad: linear-gradient(100deg, var(--blue) 0%, #2B7BF5 45%, var(--cyan) 100%);
  --grad-text: linear-gradient(95deg, #5E9BFF 0%, #2FA8F5 45%, #22D3F5 100%);
  --grad-btn: linear-gradient(135deg, #1256E5 0%, #1A63EE 60%, #1C6CF2 100%);

  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 24px;
  --max: 1160px;

  --font-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-en: "Sora", "Noto Sans TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-zh);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 18px; height: 18px; flex: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; letter-spacing: .02em; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 191, 232, .35) inset, 0 8px 24px -8px rgba(18, 86, 229, .8), 0 0 28px -6px rgba(0, 191, 232, .45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0, 191, 232, .6) inset, 0 12px 30px -8px rgba(18, 86, 229, .9), 0 0 36px -4px rgba(0, 191, 232, .6); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-strong); background: rgba(246, 250, 255, .03); }
.btn-ghost:hover { border-color: rgba(0, 191, 232, .55); background: rgba(0, 191, 232, .06); }
.btn-ghost .ico { transition: transform .2s ease; }
.btn-ghost:hover .ico { transform: translateX(3px); }
.btn-sm { font-size: 14px; padding: 9px 18px; min-height: 44px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-lg { font-size: 17px; padding: 15px 30px; min-height: 54px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 23, 47, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: block; margin-left: -6px; }
.brand img { width: 170px; height: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text-2); padding: 8px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: rgba(246, 250, 255, .06); }

/* ---------- Hero · 多裝置組合 Device Composition ----------
   Left: copy. Right: emulator window + Android phone + iPhone, all drawn in SVG/CSS (.hs-* = hero stage).
   Behind both: the animated backgrounds (wavegrid terrain low, suits sparse; see "Animated backgrounds"). */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: url("brand/background_dark.svg") center bottom / cover no-repeat, linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%);
  padding: 56px 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* site.js adds .is-offscreen while the hero is scrolled out of view: freeze its CSS loops (canvases pause themselves) */
.hero.is-offscreen *, .hero.is-offscreen *::before, .hero.is-offscreen *::after { animation-play-state: paused !important; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(9, 23, 47, 0), var(--navy)); }
/* soft glow pooled behind the devices (under the canvases) */
.hero-halo {
  position: absolute; left: 70%; top: 50%; width: 860px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(18, 86, 229, .32), rgba(0, 191, 232, .09) 58%, transparent 100%);
  filter: blur(10px);
}

/* ---------- Animated backgrounds (assets/bg/, mounted by assets/bg/init.js) ----------
   Hosts are empty without JS, so the section's own gradient is the static fallback. */
.bg-host { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg .bg-host, .section-bg .bg-host { background: none; } /* the section paints the base */
.section-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.section-bg .su-glow { display: none; } /* the download section already has its own glow */

.hero-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); align-items: center; gap: 40px; }
.hero-copy { position: relative; z-index: 2; }
/* quiet pool of shade behind the copy so dots and symbols never run through the text */
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; left: -22%; right: -12%; top: -16%; bottom: -16%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 19, 38, .62), rgba(7, 19, 38, .3) 60%, rgba(7, 19, 38, 0));
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--blue-300);
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(12, 33, 73, .55);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero-title {
  margin-top: 26px;
  font-size: clamp(42px, 5.5vw, 80px); line-height: 1.14; font-weight: 900; letter-spacing: .02em;
  text-shadow: 0 6px 40px rgba(18, 86, 229, .35);
}
.hero-title .line { display: block; }
.hero-title .grad { text-shadow: none; filter: drop-shadow(0 6px 30px rgba(0, 191, 232, .28)); }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); line-height: 1.75; letter-spacing: .03em; }
.br-sm { display: none; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
/* glass ghost button over the animated background */
.hero .btn-ghost { background: rgba(9, 23, 47, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { background: rgba(0, 191, 232, .08); }
.hero-platforms {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.hero-platforms { position: relative; isolation: isolate; }
/* the wave terrain rises behind this row: an extra shade keeps its small text crisp */
.hero-platforms::before {
  content: ""; position: absolute; z-index: -1; left: -10%; right: -8%; top: -4px; bottom: -22px; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 19, 38, 0), rgba(7, 19, 38, .74) 12%, rgba(7, 19, 38, .74) 72%, rgba(7, 19, 38, 0));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 32%, #000 66%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 32%, #000 66%, transparent);
}
.hero-platforms li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-platforms .ico { width: 17px; height: 17px; color: var(--cyan); }
.hero-platforms .hp-label { color: var(--muted); font-size: 13px; letter-spacing: .1em; }

/* Stage: overlapping devices */
.hs-stage { position: relative; margin: 0; }
.hs-art { position: relative; aspect-ratio: 640 / 540; container-type: inline-size; }
.hs-art::before {
  content: ""; position: absolute; left: 8%; right: 4%; bottom: -4%; height: 26%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 191, 232, .30), rgba(18, 86, 229, .14) 55%, transparent);
  filter: blur(14px);
}
.hs-deco { position: absolute; inset: -4% -6% -8% -10%; width: 116%; height: 112%; z-index: -1; overflow: visible; }
.hs-spark { position: absolute; fill: #BFF4FF; filter: drop-shadow(0 0 6px rgba(0, 191, 232, .9)); animation: hs-twinkle 4.8s ease-in-out infinite; }
.hs-spark-1 { width: 3.2%; left: 2%; top: 14%; }
.hs-spark-2 { width: 2.2%; left: 98.4%; top: 70%; animation-delay: -1.6s; }
.hs-spark-3 { width: 1.7%; left: 4%; top: 25%; animation-delay: -3.2s; opacity: .7; }
@keyframes hs-twinkle { 0%, 100% { opacity: .35; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.1); } }

.hs-dev { position: absolute; animation: hs-float 9s ease-in-out infinite; will-change: transform; }
@keyframes hs-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -1.4cqw, 0); } }
.hs-scr { position: relative; overflow: hidden; background: #071427; }
.hs-scr::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .035) 26%, transparent 40%);
}
.hs-scr-svg { display: block; width: 100%; height: 100%; font-family: var(--font-zh); }
.hs-mj-glow { animation: hs-glow 2.6s ease-in-out infinite; }
@keyframes hs-glow { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }

/* Emulator window */
.hs-win {
  left: 8.125%; top: 0; width: 91.875%; container-type: inline-size;
  -webkit-box-reflect: below 14px linear-gradient(transparent 66%, rgba(255, 255, 255, .1));
  border-radius: 12px; overflow: hidden;
  background: #0B1A33;
  box-shadow: inset 0 0 0 1px rgba(141, 182, 255, .24), 0 50px 80px -36px rgba(0, 0, 0, .9), 0 0 70px -24px rgba(0, 191, 232, .45);
  animation-duration: 10s;
}
.hs-win-bar {
  display: flex; align-items: center; gap: 1.2cqw; height: 5.1cqw; padding: 0 1.4cqw 0 1.6cqw;
  background: linear-gradient(180deg, #172C55, #10224A); border-bottom: 1px solid rgba(141, 182, 255, .16);
  font-size: 1.85cqw; line-height: 1; white-space: nowrap;
}
.hs-win-app { width: 2.6cqw; height: 2.6cqw; border-radius: .7cqw; background: linear-gradient(135deg, #F6C04A, #F08A2C); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); flex: none; position: relative; }
.hs-win-app::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; border: .3cqw solid rgba(255, 255, 255, .9); }
.hs-win-title { font-weight: 700; color: var(--text); }
.hs-win-tag { font-size: .86em; color: var(--text-2); padding: .3em .7em; border-radius: 999px; background: rgba(141, 182, 255, .1); }
.hs-win-ctl { margin-left: auto; display: flex; gap: 2.2cqw; align-items: center; }
.hs-win-ctl i { position: relative; display: block; width: 1.5cqw; height: 1.5cqw; }
.hs-c-min::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--text-2); }
.hs-c-max { border: 1.5px solid var(--text-2); border-radius: 2px; }
.hs-c-x::before, .hs-c-x::after { content: ""; position: absolute; left: -12%; right: -12%; top: 50%; height: 1.5px; background: var(--text-2); transform: rotate(45deg); }
.hs-c-x::after { transform: rotate(-45deg); }
.hs-win-body { display: flex; }
.hs-win-scr { flex: 1 1 auto; aspect-ratio: 560 / 342; }
.hs-win-side { flex: none; width: 4.76cqw; display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; padding-top: 2.6cqw; background: #0E1F40; border-left: 1px solid rgba(141, 182, 255, .12); }
.hs-win-side i { width: 2cqw; height: 2cqw; border-radius: .6cqw; border: 1.5px solid rgba(185, 201, 226, .5); }
.hs-win-side i:nth-child(2) { border-radius: 50%; }
.hs-win-side i:nth-child(4) { border-color: rgba(0, 191, 232, .7); }

/* AI chip (same component on every device) */
.hs-ai {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .5em;
  padding: .38em .8em .38em .38em; border-radius: .95em; line-height: 1; white-space: nowrap;
  color: #fff;
  background: linear-gradient(100deg, rgba(18, 86, 229, .5), rgba(0, 191, 232, .18)), rgba(7, 18, 38, .9);
  border: 1px solid rgba(0, 191, 232, .6);
  box-shadow: 0 .7em 1.6em -.6em rgba(0, 0, 0, .8), 0 0 1.6em -.2em rgba(0, 191, 232, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: hs-chip 6s ease-in-out infinite;
}
.hs-ai-mark { width: 2em; height: 2em; flex: none; filter: drop-shadow(0 0 .4em rgba(0, 191, 232, .5)); }
.hs-ai-tag { font-size: .76em; font-weight: 700; color: var(--navy); background: var(--cyan); padding: .32em .5em; border-radius: .45em; flex: none; }
.hs-ai-move { display: inline-flex; align-items: center; font-size: 1.1em; font-weight: 700; letter-spacing: .03em; }
.hs-ai-suit { width: .72em; height: .72em; max-width: none; flex: none; fill: #FF6B7A; margin: 0 .12em 0 .06em; }
.hs-ai-meter { width: 3.2em; height: .38em; border-radius: 1em; background: rgba(141, 182, 255, .2); overflow: hidden; margin-left: .2em; }
.hs-ai-meter i { display: block; height: 100%; width: calc(var(--v, .8) * 100%); background: var(--grad); border-radius: inherit; }
@keyframes hs-chip { 0%, 100% { box-shadow: 0 .7em 1.6em -.6em rgba(0, 0, 0, .8), 0 0 1.2em -.3em rgba(0, 191, 232, .4); } 50% { box-shadow: 0 .7em 1.6em -.6em rgba(0, 0, 0, .8), 0 0 2em 0 rgba(0, 191, 232, .65); } }
.hs-ai-win { font-size: 2.15cqw; left: 21.6%; top: 62.4%; }
.hs-ai-win::after {
  content: ""; position: absolute; left: 5.7em; bottom: -.42em; width: .7em; height: .7em; transform: rotate(45deg);
  background: #0D2A55; border-right: 1px solid rgba(0, 191, 232, .6); border-bottom: 1px solid rgba(0, 191, 232, .6);
}
.hs-ai-status {
  position: absolute; left: 2.2%; top: 3.6%; z-index: 2; display: inline-flex; align-items: center; gap: .55em;
  font-size: 1.75cqw; font-weight: 700; color: var(--running); line-height: 1; white-space: nowrap;
  padding: .55em .9em; border-radius: 999px; background: rgba(7, 18, 38, .82); border: 1px solid rgba(0, 214, 176, .35);
}
.hs-pulse { position: relative; width: .6em; height: .6em; border-radius: 50%; background: var(--running); box-shadow: 0 0 8px var(--running); }
.hs-pulse::after { content: ""; position: absolute; inset: -.3em; border-radius: 50%; border: 1.5px solid var(--running); animation: hs-ping 1.8s ease-out infinite; }
@keyframes hs-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

/* Phones */
.hs-android, .hs-iphone { container-type: inline-size; }
.hs-android {
  left: 0; top: 37.9%; width: 23.44%; padding: .88cqw;
  border-radius: 14% / 6.6%;
  background: linear-gradient(150deg, #33456A 0%, #111C33 30%, #0A1324 70%, #2A3B5E 100%);
  box-shadow: inset 0 0 0 1px rgba(141, 182, 255, .3), inset 0 0 0 2.5px #050B16, 0 46px 60px -26px rgba(0, 0, 0, .9), 0 0 54px -18px rgba(0, 191, 232, .5);
  animation-duration: 7.5s; animation-delay: -3s;
}
.hs-android::before { content: ""; position: absolute; right: -1.6%; top: 20%; width: 2.2%; height: 11%; border-radius: 0 3px 3px 0; background: #2A3B5E; }
.hs-android .hs-ph-scr { aspect-ratio: 148 / 326; border-radius: 10.8% / 4.9%; }
.hs-iphone {
  left: 78.1%; top: 43.6%; width: 21.875%; padding: .875cqw;
  border-radius: 17% / 8.2%;
  background: linear-gradient(145deg, #5A6478 0%, #232B3B 22%, #121826 60%, #3E4859 100%);
  box-shadow: inset 0 0 0 1px rgba(220, 230, 250, .28), inset 0 0 0 2.5px #04070D, 0 46px 60px -26px rgba(0, 0, 0, .9), 0 0 54px -18px rgba(18, 86, 229, .55);
  animation-duration: 8.5s; animation-delay: -5.5s;
}
.hs-iphone::before { content: ""; position: absolute; left: -1.4%; top: 18%; width: 2%; height: 8%; border-radius: 3px 0 0 3px; background: #3E4859; box-shadow: 0 2.4cqw 0 #3E4859, 0 0 0 transparent; }
.hs-iphone .hs-ph-scr { aspect-ratio: 138 / 300; border-radius: 14% / 6.4%; }
.hs-ph-scr { width: 100%; }
.hs-ph-scr .hs-scr-svg { height: auto; }
.hs-ai-ph { font-size: 6.7cqw; left: 50%; transform: translateX(-50%); padding-right: .7em; }
.hs-ai-ofc { top: 13.4%; }
.hs-ai-tx { top: 48.4%; }

/* Games strip */
.hs-games {
  position: relative; z-index: 3; width: max-content; max-width: 100%; margin: 22px auto 0;
  display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 6px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(9, 23, 47, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.hs-games svg { width: 22px; height: 22px; flex: none; }
.hs-games-lead { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: linear-gradient(100deg, rgba(18, 86, 229, .55), rgba(0, 191, 232, .25)); color: var(--text); font-weight: 700; }
.hs-games-lead svg { width: 16px; height: 16px; color: var(--cyan); }
.hs-games-item { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; color: inherit; text-decoration: none; transition: background-color .2s, color .2s; }
.hs-games-item:hover { background: rgba(18, 86, 229, .28); color: var(--text); }
.hs-games-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Section heads ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: .08em; }
.kicker span { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--cyan); padding-right: 10px; border-right: 1px solid var(--line-strong); }
.h2 { margin-top: 14px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.25; font-weight: 900; letter-spacing: .02em; }
.lead { margin-top: 14px; color: var(--text-2); font-size: 17px; }

/* ---------- About ----------
   精簡品牌介紹 + 四步流程玻璃卡片。流程軌道上的光點從 01 流到 04（純 CSS，6s 一輪），
   動畫只寫在 keyframes 裡，基礎樣式即是完整的靜態畫面：減少動態 / 不開 JS 時照樣完整。 */
.about {
  position: relative; overflow: hidden;
  padding: 104px 0 96px;
  background:
    radial-gradient(900px 280px at 50% calc(100% - 200px), rgba(18, 86, 229, .16), transparent 70%), /* 光暈在區塊底邊前淡出，和下載區接縫無色差 */
    linear-gradient(180deg, var(--navy) 0%, #0A1A37 100%);
}
.about-watermark { position: absolute; right: -90px; top: 6%; width: 520px; height: auto; pointer-events: none; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.about > .wrap { position: relative; }
.about-tag { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; letter-spacing: .14em; color: var(--blue-300); }
.about-tag span { width: 28px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.about-head { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 48px; align-items: end; }
.about-copy { padding-bottom: 4px; }
.about-copy p { font-size: 17px; line-height: 1.85; color: var(--text-2); }
.about-copy p, .flow-card p, .notes-list span { text-wrap: balance; }
.about-copy .ph, .flow-card .ph { display: inline-block; } /* 中文只在短語之間換行，避免「牌/桌」「助/手」被拆開 */
.about-games { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.about-games li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: .02em; }
.about-games svg { width: 22px; height: 22px; flex: none; }

/* flow: rail (nodes + segments) above glass cards */
.flow { --node: 36px; --fgap: 20px; position: relative; margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fgap); }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; }
.flow-node {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: var(--node); height: var(--node); border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy));
  border: 1px solid rgba(0, 191, 232, .45);
  box-shadow: 0 0 0 5px rgba(9, 23, 47, .9), 0 6px 18px -6px rgba(0, 191, 232, .55);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.flow-node b { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--cyan); }
.flow-node::after { /* the "lit" ring, pulsed by the travelling light and by hover */
  content: ""; position: absolute; inset: -1px; border-radius: 50%; opacity: 0; pointer-events: none;
  border: 1px solid var(--cyan); box-shadow: 0 0 0 4px rgba(0, 191, 232, .16), 0 0 22px 2px rgba(0, 191, 232, .6);
  transition: opacity .3s ease;
}
.flow-seg {
  position: absolute; top: calc(var(--node) / 2 - 1px); height: 2px;
  left: calc(50% + var(--node) / 2 + 8px); width: calc(100% + var(--fgap) - var(--node) - 16px);
  border-radius: 2px; background: linear-gradient(90deg, rgba(18, 86, 229, .85), rgba(0, 191, 232, .7));
  opacity: .55;
}
.flow-seg i {
  position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; opacity: 0;
  background: #E8FBFF; box-shadow: 0 0 0 2px rgba(0, 191, 232, .35), 0 0 14px 3px rgba(0, 191, 232, .9);
}
.flow-seg i::before { /* comet tail */
  content: ""; position: absolute; right: 3px; top: 50%; width: 46px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 232, .95));
}

.flow-card {
  position: relative; flex: 1; width: 100%; margin-top: 22px; padding: 12px 12px 24px; text-align: center;
  border-radius: 20px; border: 1px solid rgba(141, 182, 255, .15);
  background: linear-gradient(180deg, rgba(25, 58, 122, .42) 0%, rgba(12, 33, 73, .55) 46%, rgba(9, 23, 47, .62) 100%);
  box-shadow: inset 0 1px 0 rgba(246, 250, 255, .07), 0 28px 50px -28px rgba(0, 0, 0, .85), 0 12px 32px -20px rgba(18, 86, 229, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s ease, box-shadow .35s ease;
}
.flow-card::before { /* top rim light */
  content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 232, .7), transparent); opacity: .55; transition: opacity .35s ease;
}
.flow-art {
  position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 240 / 132;
  background:
    linear-gradient(rgba(141, 182, 255, .045) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(141, 182, 255, .045) 1px, transparent 1px) 0 0 / 16px 16px,
    radial-gradient(120% 100% at 50% 0%, rgba(18, 86, 229, .2), transparent 70%),
    #081631;
  border: 1px solid rgba(141, 182, 255, .1);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .35);
}
.flow-art svg { width: 100%; height: 100%; transition: filter .35s ease; }
.flow-card h3 { margin-top: 20px; font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.flow-card p { margin-top: 6px; padding: 0 8px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }

@media (hover: hover) {
  .flow-step:hover .flow-card {
    transform: translateY(-4px); border-color: rgba(0, 191, 232, .45);
    box-shadow: inset 0 1px 0 rgba(246, 250, 255, .1), 0 32px 56px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 191, 232, .12), 0 18px 46px -18px rgba(0, 191, 232, .45);
  }
  .flow-step:hover .flow-card::before { opacity: 1; }
  .flow-step:hover .flow-art svg { filter: brightness(1.12) saturate(1.1); }
  .flow-step:hover .flow-node { border-color: var(--cyan); }
  .flow-step:hover .flow-node::after { opacity: 1; }
}

/* illustration motion (all loops are slow, small, and pause off-screen via site.js) */
.flow-art svg * { transform-box: fill-box; }
.fa-progress { transform-origin: 0 50%; transform: scaleX(.72); animation: fa-progress 4.8s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes fa-progress { 0% { transform: scaleX(.08); } 70%, 88% { transform: scaleX(1); } 100% { transform: scaleX(.08); opacity: 0; } }
.fa-float { animation: fa-float 6s ease-in-out infinite; }
@keyframes fa-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.fa-twinkle path { transform-origin: 50% 50%; animation: fa-twinkle 3.2s ease-in-out infinite; }
.fa-twinkle path + path { animation-delay: 1.6s; }
@keyframes fa-twinkle { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.6); opacity: .35; } }
.fa-scan { transform: translateY(18px); animation: fa-scan 3.6s ease-in-out infinite; }
@keyframes fa-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(56px); } }
.fa-blink { animation: fa-blink 2.4s ease-in-out infinite; }
@keyframes fa-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.fa-rise circle { animation: fa-rise 2.7s ease-in infinite; opacity: .9; }
.fa-rise circle:nth-child(2) { animation-delay: .9s; }
.fa-rise circle:nth-child(3) { animation-delay: 1.8s; }
@keyframes fa-rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-12px); opacity: 0; } }
.fa-bar { transform-origin: 50% 100%; animation: fa-bar 4.8s ease-in-out infinite; }
.fa-bar-2 { animation-delay: -.8s; } .fa-bar-3 { animation-delay: -1.6s; } .fa-bar-4 { animation-delay: -2.4s; } .fa-bar-5 { animation-delay: -3.2s; }
@keyframes fa-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.82); } }
.fa-tip { animation: fa-tip 6s ease-in-out infinite; }
@keyframes fa-tip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }

/* travelling light: 01 → 04 in 3.6s, then 2.4s rest; nodes light as it arrives */
.flow-seg i { animation: flow-run-x 6s linear infinite; }
.flow-step:nth-child(2) .flow-seg i { animation-delay: 1.2s; }
.flow-step:nth-child(3) .flow-seg i { animation-delay: 2.4s; }
@keyframes flow-run-x { 0% { left: 0; opacity: 0; } 3% { opacity: 1; } 17% { opacity: 1; } 20%, 100% { left: 100%; opacity: 0; } }
@keyframes flow-run-y { 0% { top: 0; opacity: 0; } 3% { opacity: 1; } 17% { opacity: 1; } 20%, 100% { top: 100%; opacity: 0; } }
.flow-node::after { animation: flow-node 6s ease-out infinite; }
.flow-step:nth-child(2) .flow-node::after { animation-delay: 1.2s; }
.flow-step:nth-child(3) .flow-node::after { animation-delay: 2.4s; }
.flow-step:nth-child(4) .flow-node::after { animation-delay: 3.6s; }
@keyframes flow-node { 0% { opacity: 0; } 4% { opacity: .9; } 26%, 100% { opacity: 0; } }
@media (hover: hover) { .flow-step:hover .flow-node::after { animation: none; } }
.about.is-offscreen .flow *, .about.is-offscreen .flow *::before, .about.is-offscreen .flow *::after { animation-play-state: paused !important; }

.br-lg { display: none; }
@media (min-width: 1081px) { .br-lg { display: inline; } }
@media (max-width: 1080px) {
  .about-head { grid-template-columns: 1fr minmax(0, 460px); gap: 36px; }
  .flow { --fgap: 16px; }
  .flow-card { padding: 10px 10px 20px; }
  .flow-card h3 { font-size: 17px; }
  .flow-card p { font-size: 14px; padding: 0 4px; }
}
/* tablet & phone: the rail turns vertical, the light runs downward */
@media (max-width: 960px) {
  .about { padding: 80px 0 72px; }
  .about-head { grid-template-columns: 1fr; gap: 20px; }
  .about-copy { max-width: 560px; }
  .flow { --fgap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .flow-step { flex-direction: row; align-items: stretch; gap: 16px; }
  .flow-seg {
    top: calc(var(--node) + 8px); bottom: calc(8px - var(--fgap)); left: calc(var(--node) / 2 - 1px);
    width: 2px; height: auto; background: linear-gradient(180deg, rgba(18, 86, 229, .85), rgba(0, 191, 232, .6));
  }
  .flow-seg i { top: 0; left: 50%; margin: -3.5px 0 0 -3.5px; animation-name: flow-run-y; }
  .flow-seg i::before { right: auto; left: 50%; top: auto; bottom: 3px; width: 2px; height: 40px; margin: 0 0 0 -1px; background: linear-gradient(180deg, transparent, rgba(0, 191, 232, .95)); }
  .flow-card {
    margin-top: 0; min-width: 0; text-align: left;
    display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: 24px;
    padding: 12px 24px 12px 12px;
  }
  .flow-card::before { left: 10%; right: 50%; }
  .flow-art { grid-row: 1 / -1; }
  .flow-card h3 { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; font-size: 19px; }
  .flow-card p { grid-column: 2; grid-row: 2; padding: 0; font-size: 15px; }
}
@media (max-width: 640px) {
  .about { padding: 64px 0 56px; }
  .about-watermark { width: 340px; right: -140px; top: -30px; }
  .about-copy p { font-size: 16px; line-height: 1.8; }
  .about-games { gap: 10px 16px; margin-top: 16px; padding-top: 16px; }
  .about-games li { font-size: 13.5px; gap: 6px; }
  .about-games svg { width: 20px; height: 20px; }
  .flow { --node: 32px; --fgap: 14px; margin-top: 36px; }
  .flow-step { gap: 12px; }
  .flow-node b { font-size: 11px; }
  .flow-card { display: block; padding: 10px 10px 18px; border-radius: 18px; }
  .flow-card::before { left: 18%; right: 18%; }
  .flow-art { border-radius: 12px; }
  .flow-card h3 { margin-top: 14px; padding: 0 8px; font-size: 18px; }
  .flow-card p { margin-top: 4px; padding: 0 8px; font-size: 14px; }
}
@media (max-width: 360px) {
  .flow-step { gap: 10px; }
  .flow { --node: 28px; }
  .flow-node { box-shadow: 0 0 0 4px rgba(9, 23, 47, .9), 0 6px 18px -6px rgba(0, 191, 232, .55); }
  .flow-node b { font-size: 10px; }
  .about-games { gap: 10px 12px; }
  .about-games li { font-size: 13px; }
}
@media (max-width: 349px) { /* 320 寬：四個遊戲排成 2×2，不留單獨一個在第二行 */
  .about-games { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; }
}

/* ---------- Download ---------- */
.download {
  position: relative; isolation: isolate; padding: 96px 0 104px;
  background:
    radial-gradient(1100px 520px at 50% 520px, rgba(18, 86, 229, .22), transparent 100%),
    linear-gradient(180deg, #0A1A37 0%, var(--navy-800) 55%, var(--navy) 100%);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.section-head .kicker { justify-content: center; }

.dl { margin-top: 52px; scroll-margin-top: 92px; }
.dl-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dl-tab {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(12, 33, 73, .45);
  transition: border-color .2s, background-color .2s, transform .2s;
}
.dl-tab:hover { border-color: var(--line-strong); background: rgba(18, 41, 90, .6); }
.dl-tab-ico { width: 42px; height: 42px; flex: none; }
.dl-tab-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.dl-tab-txt b { font-size: 17px; font-weight: 700; }
.dl-tab-txt small { font-family: var(--font-en); font-size: 12px; color: var(--muted); letter-spacing: .02em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl.is-ready .dl-tab.is-active {
  border-color: rgba(0, 191, 232, .6);
  background: linear-gradient(140deg, rgba(18, 86, 229, .38), rgba(0, 191, 232, .12));
  box-shadow: 0 14px 34px -16px rgba(0, 191, 232, .7), inset 0 1px 0 rgba(246, 250, 255, .1);
}
.dl.is-ready .dl-tab.is-active .dl-tab-txt small { color: var(--text-2); }
.dl.is-ready .dl-tab.is-active::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--grad); box-shadow: 0 0 12px var(--cyan);
}

.dl-panels { margin-top: 16px; display: grid; gap: 16px; }
.dl-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center;
  padding: 44px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(18, 86, 229, .22), transparent 70%),
    radial-gradient(500px 280px at 100% 100%, rgba(0, 191, 232, .12), transparent 70%),
    var(--glass-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(246, 250, 255, .08);
  scroll-margin-top: 96px;
}
.dl-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 232, .7), transparent);
}
/* Tabs wired up by site.js (.is-ready): all panels share one grid cell, so the box keeps the tallest panel's height and nothing below jumps when switching. */
.dl.is-ready .dl-panels > .dl-panel { grid-area: 1 / 1; display: grid; visibility: hidden; }
.dl.is-ready .dl-panels > .dl-panel.is-active { visibility: visible; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dl-title { display: flex; align-items: center; gap: 18px; }
.dl-icon {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; flex: none;
  background: linear-gradient(145deg, rgba(18, 86, 229, .35), rgba(9, 23, 47, .9));
  border: 1px solid rgba(0, 191, 232, .35);
  box-shadow: 0 12px 30px -12px rgba(0, 191, 232, .55);
}
.dl-icon svg { width: 50px; height: 50px; }
.dl-title h3 { font-size: 32px; font-weight: 900; line-height: 1.2; letter-spacing: .02em; }
.dl-title .en { font-family: var(--font-en); font-size: 14px; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }
.dl-desc { margin-top: 22px; font-size: 19px; color: var(--text); font-weight: 500; }
.dl-meta { margin-top: 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dl-meta > div { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dl-meta dt { font-size: 14px; color: var(--muted); }
.dl-meta dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--text-2); }
.dl-meta dd .ico { color: var(--cyan); width: 17px; height: 17px; }
.dl-meta dd.has-ico { flex-wrap: nowrap; align-items: flex-start; }
.dl-meta dd.has-ico .ico { margin-top: 4px; }
.tag { font-size: 14px; font-weight: 700; color: var(--text); padding: 3px 12px; border-radius: 8px; background: rgba(18, 86, 229, .28); border: 1px solid rgba(76, 141, 255, .35); }

.dl-actions {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 20px;
  background: rgba(6, 16, 34, .55); border: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.dl-actions-label { font-size: 13px; color: var(--muted); letter-spacing: .06em; margin-bottom: 2px; }
.dl-btn {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 20px 12px 14px;
  border-radius: 16px; background: var(--grad-btn); color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 191, 232, .35) inset, 0 12px 28px -12px rgba(18, 86, 229, .9);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0, 191, 232, .7) inset, 0 16px 34px -12px rgba(18, 86, 229, 1), 0 0 30px -6px rgba(0, 191, 232, .55); }
.dl-btn-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(6, 16, 34, .28); flex: none; }
.dl-btn-ico svg { width: 22px; height: 22px; color: #fff; }
.dl-btn-txt { display: flex; flex-direction: column; line-height: 1.3; }
.dl-btn-txt b { font-size: 18px; font-weight: 700; }
.dl-btn-txt small { font-size: 13px; color: var(--text); margin-top: 2px; }
.dl-btn::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid rgba(246, 250, 255, .8); border-bottom: 2px solid rgba(246, 250, 255, .8);
  transform: rotate(-45deg); flex: none;
}

.notes {
  margin-top: 28px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px;
  padding: 22px 28px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: rgba(9, 23, 47, .45);
}
.notes-title { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; padding-right: 28px; border-right: 1px solid var(--line); }
.notes-list { display: grid; grid-template-columns: repeat(4, auto); gap: 22px; justify-content: space-between; }
.notes-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.6; }
.notes-list .ico { color: var(--cyan); margin-top: 2px; }
.notes-list b { display: block; color: var(--text); font-weight: 700; }
.notes-list span { color: var(--muted); }
.notes-list span > span { display: inline-block; }
.nw { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner img { width: 170px; height: auto; margin-left: -6px; }
.footer-note { font-size: 14px; color: var(--text-2); margin-left: auto; }
.footer-copy { font-family: var(--font-en); font-size: 13px; color: var(--muted); padding-left: 24px; border-left: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (min-width: 1320px) {
  .hs-stage { margin-right: -40px; }
}
/* Short laptop screens (1366x768, 1280x800, 1024x768): headline, CTAs and the devices above the fold */
@media (min-width: 961px) and (max-height: 820px) {
  .hero { padding-top: 36px; padding-bottom: 56px; }
  .hero-title { margin-top: 20px; font-size: clamp(42px, 4.8vw, 68px); }
  .hero-sub { margin-top: 16px; }
  .hero-cta { margin-top: 26px; }
  .hero-platforms { margin-top: 24px; padding-top: 16px; }
  .hs-stage { width: 100%; max-width: 620px; justify-self: end; margin-right: 0; }
  .hs-games { margin-top: 16px; }
}
@media (max-width: 1080px) {
  .notes { grid-template-columns: 1fr; gap: 14px; }
  .notes-title { border-right: 0; padding-right: 0; }
  .notes-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; } /* minmax(0,…): the max-content games strip must not widen the column past the gutter */
  .hero-copy { max-width: 620px; }
  .hero-title { font-size: clamp(44px, 7.4vw, 64px); }
  .hero-title .line { display: inline; }
  .hs-stage { width: 100%; max-width: 680px; margin: 0 auto; }
  .hero-halo { left: 50%; top: 72%; }
  .dl-tabs { grid-template-columns: repeat(2, 1fr); }
  .dl-panel { grid-template-columns: 1fr; gap: 32px; padding: 36px; align-content: start; }
}
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-note { margin-left: 0; }
  .footer-copy { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .header-inner { height: 64px; justify-content: space-between; }
  .brand img { width: 138px; }
  .hero { padding: 40px 0 60px; }
  .hero-inner { gap: 36px; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; padding: 6px 12px; }
  .hero-title { margin-top: 20px; font-size: clamp(38px, 11.4vw, 48px); }
  .hero-title .line { display: block; }
  .hero-sub { margin-top: 16px; font-size: 16px; }
  .br-sm { display: inline; }
  .hero-cta { margin-top: 26px; flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-platforms { margin-top: 22px; padding-top: 16px; gap: 6px 14px; font-size: 13px; }
  .hero-platforms .ico { width: 15px; height: 15px; }
  /* phones: the emulator window steps aside, the two phones stand side by side */
  .hs-stage { max-width: 400px; }
  .hs-art { aspect-ratio: 1 / 1.06; }
  .hs-deco { inset: -6% -14% -6% -14%; width: 128%; height: 112%; }
  .hs-win { display: none; }
  .hs-android { left: 1.5%; top: 1%; width: 47%; padding: 1.76cqw; rotate: -4deg; }
  .hs-iphone { left: 51.5%; top: 6%; width: 46%; padding: 1.84cqw; rotate: 4deg; }
  .hs-spark-1 { left: -1%; top: 62%; width: 5%; }
  .hs-spark-2 { left: 96%; top: 2%; width: 4%; }
  .hs-spark-3 { display: none; }
  .hs-games { margin-top: 18px; flex-wrap: wrap; justify-content: center; gap: 0; font-size: 12px; padding: 0 6px; }
  .hs-games-item { min-height: 44px; padding: 0 6px; } /* links → full-height tap targets */
  .hs-games-lead { display: none; }
  .hs-games svg { width: 20px; height: 20px; }
  .download { padding: 64px 0 88px; }
  .dl { margin-top: 36px; scroll-margin-top: 76px; }
  .dl-tabs { gap: 8px; }
  .dl-tab { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .dl-tab-ico { width: 36px; height: 36px; }
  .dl-tab-txt b { font-size: 16px; }
  .dl-panel { padding: 24px 18px; gap: 24px; border-radius: 20px; }
  .dl-icon { width: 60px; height: 60px; border-radius: 18px; }
  .dl-icon svg { width: 40px; height: 40px; }
  .dl-title h3 { font-size: 26px; }
  .dl-desc { font-size: 17px; margin-top: 18px; }
  .dl-meta > div { grid-template-columns: 72px 1fr; }
  .dl-actions { padding: 0; background: none; border: 0; }
  .dl-btn { width: 100%; min-height: 64px; }
  .notes { padding: 20px 18px; }
  .notes-list { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 38px; }
  .dl-tab { padding: 12px; }
  .hero-platforms .hp-label { display: none; }
  .hs-games { font-size: 11.5px; padding: 0 4px; }
  .hs-games-item { padding: 0 4px; gap: 3px; }
  .hs-games svg { width: 17px; height: 17px; }
  .dl-panel { padding: 22px 14px; }
  .dl-desc { font-size: 16px; }
  .dl-meta > div { grid-template-columns: 64px 1fr; gap: 8px; }
  .dl-meta dd { font-size: 14px; }
  .dl-btn { gap: 12px; padding: 12px 14px 12px 12px; }
  .dl-btn::after { display: none; }
  .dl-btn-txt small { font-size: 12px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== 首屏・宙斯主視覺（無標題版）=====
   由下而上：宙斯照片 → 底部暗化層 → 點陣波浪 → 牌影漂浮（後兩者透明疊加），閃電特效在照片內（assets/zeus-fx.*）。
   標題「神來一手，智勝一籌」仍是 <h1>，只做視覺隱藏，搜尋引擎與讀屏可讀到；要顯示就刪掉下方 .hero-title 那一行。
   （此段已把先前幾輪首屏調整合併為最終值。） */
.hero-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
.hero-photo { position: absolute; top: 0; bottom: 0; left: max(0px, calc((100vw - 1200px) / 2 - 160px)); width: min(54vw, 820px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 70%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 70%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%);
  mask-composite: intersect; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; filter: saturate(1.05) contrast(1.05); }
.hero-photo-veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9, 23, 47, .9) 0%, rgba(9, 23, 47, .62) 34%, rgba(9, 23, 47, .18) 56%, rgba(9, 23, 47, 0) 66%); }
.hero-bg .bg-wavegrid .wg-veil { background: radial-gradient(ellipse 120% 90% at 50% 60%, transparent 62%, rgba(6, 16, 34, .28) 100%); } /* 拿掉波浪頂部漸暗，讓宙斯與閃電更亮 */
.hero-copy::before { opacity: .7; }
.hero-sub { font-size: 20px; font-weight: 500; color: var(--text); text-shadow: 0 2px 14px rgba(9, 23, 47, .95), 0 0 2px rgba(9, 23, 47, .8); }
.hero .eyebrow { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(9, 23, 47, .45); }
.hero-platforms .hp-note { flex-basis: 100%; color: var(--muted); font-size: 12.5px; letter-spacing: .04em; white-space: normal; }
/* 裝置畫面是示意，給訪客一行可見說明 */
.hs-note { position: relative; z-index: 3; margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.hs-note + .hs-games { margin-top: 10px; }
@media (min-width: 961px) {
  .hero-inner { min-height: clamp(500px, calc(100vh - 210px), 690px); }
  .hero-copy { align-self: end; margin-bottom: clamp(24px, 7vh, 90px); }
}
@media (min-width: 961px) and (max-height: 820px) {
  .hero-copy { margin-bottom: 28px; }
  .hero-sub { font-size: 19px; margin-top: 16px; }
  .hero-cta { margin-top: 22px; }
  .hero-platforms { margin-top: 18px; padding-top: 14px; }
}
@media (max-width: 960px) {
  .hero-copy { padding-top: 300px; }
  .hero-photo, .hero-photo-veil { bottom: auto; height: 860px; }
  .hero-photo { left: 0; right: 0; width: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .hero-photo img { object-position: 50% 12%; }
}
/* 手機：縮短宙斯留白，讓下載入口與大菠蘿示意（主推）更早出現；只留一部手機、浮窗建議放大可讀 */
@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .hero-copy { padding-top: 196px; }
  .hero-photo, .hero-photo-veil { height: 600px; }
  .hero-photo img { object-position: 50% 2%; }
  .hero-sub { font-size: 18px; }
  .hero-inner { gap: 28px; }
  .hs-art { aspect-ratio: 1 / 1.34; }
  .hs-iphone { display: none; }
  .hs-android { left: 50%; top: 0; width: 58%; translate: -50% 0; rotate: -2deg; padding: 2.2cqw; }
  .hs-spark-1 { left: 6%; top: 40%; }
  .hs-spark-2 { left: 88%; top: 6%; }
}

/* 下載區：每款遊戲的支持裝置、輔助客戶端說明 */
.dl-tab-dev { margin-top: 4px; font-style: normal; font-size: 11.5px; color: var(--cyan); letter-spacing: .04em; white-space: nowrap; }
.dl-kind { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
/* 頁尾：安裝協助請聯繫代理 */
.footer-agent { display: block; margin-top: 4px; color: var(--muted); }
