/* Kept 網頁版:只放網頁專有嘅樣式。畫面本身用 App 原檔 app-base.css(同 iPhone 一樣)。
   ⚠️ 登入頁用 App 嘅色板變數(--ink／--muted／--bg),所以淺色／深色主題都跟。 */
html, body { background: var(--bg); }
.mark { width: 26px; height: 26px; display: block; }
.ck-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; margin: 0 !important; }

/* 電腦闊度:所有頁面統一跟時間線(Home)嘅 620px(老細:「依啲都唔需要跟視窗闊度,跟返HOME咁既闊度就好 闊度統一返」)。
   ⚠️ App 樣式表淨係俾 `.feed` 定咗 620px,我嘅紀錄／合集／設定／待辦／垃圾桶嗰啲(.rows／.tabseg／.notelist／.empty)冇 ——
      逐個補會漏,所以直接限制成個 `#main` 同頂欄／搜尋欄／底欄,一條中線一個闊度。 */
#main { max-width: 620px; margin-left: auto; margin-right: auto; }
.hdr-row { max-width: 620px; margin: 0 auto; }
#sbar .sbox { max-width: 620px; margin: 0 auto; }
#tabs { justify-content: center; }
@media (min-width: 700px) {
  /* 電腦闊度:底欄同內容同寬,但唔加框(老細:「依個位置唔需要框」)—— 淨係得毛玻璃底,同 App 一樣 */
  #tabs { left: 50%; right: auto; width: 620px; transform: translateX(-50%); border: 0; border-radius: 0; background: var(--blur-2); }
  /* 內容喺底欄上面淡出,唔係被一條線硬切;膠囊淺少少,揀咗邊格一眼睇到 */
  #tabs::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 56px; pointer-events: none; background: linear-gradient(to top, var(--bg) 8%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent); }
  #tabs .tabpill { background: color-mix(in srgb, var(--ink) 20%, var(--bg)); }
  #tabs button:not(.on) { opacity: .78; }
  #tabs.hide { transform: translate(-50%, 100%); }
  .nav-panel { border-radius: 0 18px 18px 0; }
  .sheet-body { left: 50%; right: auto; width: 640px; transform: translateX(-50%); }
  .sheet.closing .sheet-body { animation: none; opacity: 0; transition: opacity .3s; }
  @keyframes up { from { transform: translate(-50%, 100%) } }
}
.av .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.av .badge { z-index: 1; color: var(--ink); }
/* 淺色主題:App 樣式表 `.av` 字色寫死白色,冇作者嗰種用淺灰底 → 白字白底睇唔到。淨係喺網頁補,唔改 App 原檔 */
:root[data-theme="light"] .av[style*="var(--raise)"] { color: var(--muted); }
.sheet-body .media img, .sheet-body .media video { cursor: zoom-in; }
.media img { cursor: zoom-in; }
.d-url { display: block; text-decoration: none; }
.d-shared { margin: 8px 0; }
.rowi.static:active { background: none; }
.rowi .rr.seg { display: inline-flex; }

/* 點圖放大 */
.zoom { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 16px 28px; cursor: zoom-out; animation: zoom-in .2s var(--ez); }
@keyframes zoom-in { from { opacity: 0; } }
.zoom img { max-width: min(96vw, 1000px); max-height: calc(100vh - 160px); object-fit: contain; border-radius: 12px; cursor: default; }
.zoom-x { position: absolute; top: calc(var(--sat) + 12px); right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #55555f; background: #26262d; color: #fff; display: grid; place-items: center; cursor: pointer; }
.zoom-x:hover { background: #33333b; }
.zoom-open { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; }
.zoom-open .ic { width: 16px; height: 16px; }

/* ── 登入頁 ─────────────────────────────────────────────────── */
.gate-mark .mark { width: 64px; height: 64px; margin-bottom: 24px; color: var(--ink); }
.gate { max-width: 520px; margin: 12vh auto 0; padding: 0 20px 48px; text-align: left; }
.gate h1 { font-size: 24px; line-height: 1.3; margin: 0 0 24px; }
.gate p { color: var(--muted); }
.signbtn { min-height: 32px; margin: 20px 0 8px; }
/* ═════════ 登入頁(品牌落地頁) ═════════
   ⚠️ 只用 App 嘅色板變數(--bg／--ink／--muted／--line／--raise／--accent),淺色／深色主題自動跟。
   ⚠️ 右邊部手機入面嘅卡片用 App 自己嘅 .post／.av／.media／.lb／.act 樣式(app-base.css),所以同 App 一個樣。 */
.gate { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; display: flex; flex-direction: column; padding: 0; margin: 0; max-width: none; }
.gate[hidden] { display: none !important; }
.gate-glow { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(38% 52% at 74% 52%, rgba(29,155,240,.30), transparent 72%), radial-gradient(34% 40% at 88% 22%, rgba(139,92,246,.20), transparent 70%), radial-gradient(40% 45% at 8% 6%, rgba(139,92,246,.12), transparent 70%); }
:root[data-theme="light"] .gate-glow { background: radial-gradient(38% 52% at 74% 52%, rgba(29,155,240,.22), transparent 72%), radial-gradient(34% 40% at 88% 22%, rgba(139,92,246,.14), transparent 70%); }
.g-top { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; display: flex; align-items: center; padding: 22px clamp(20px, 5vw, 56px) 0; }
.g-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.g-brand .mark { width: 72px; height: 72px; flex: none; margin: -14px 0 -14px -21px; }   /* K 圖形喺 1024 viewBox 入面由 x=296 先開始:左邊留白 ≈ 29%×72 = 21px,負 margin 抵消,K 嘅左緣先會同下面徽章／標題對齊;上下 -14px 唔好撐高頂欄 */
/* 「Kept - ○○」:Kept 粗體大字,後面標語同 App Store 一樣接喺 " - " 之後,細啲、淡啲,長語言可以折行 */
.g-name { display: block; min-width: 0; line-height: 1.2; font-size: 22px; font-weight: 500; color: color-mix(in srgb, var(--ink) 76%, var(--bg)); }
.g-name b { font-size: 38px; font-weight: 800; letter-spacing: .3px; color: var(--ink); vertical-align: -1.5px; }
.g-name .g-tag { display: block; margin-top: 3px; overflow-wrap: anywhere; }
/* 標語放第二行:「Kept」獨佔第一行,「 - 」只喺分頁標題用,畫面上唔顯示 */
.g-name b { display: block; line-height: 1.05; }
.g-name .g-dash { display: none; }
.g-wrap { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px clamp(20px, 5vw, 56px) 40px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.g-eyebrow { display: inline-flex; align-items: center; margin: 0 0 18px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--ink) 74%, var(--bg)); letter-spacing: .04em; background: var(--ghost); }
.gate h1 { margin: 0 0 16px; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.g-lead { margin: 0 0 24px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: color-mix(in srgb, var(--ink) 72%, var(--bg)); max-width: 30em; }
.g-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; max-width: 30em; }
.g-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.gp-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.g-points b { display: block; font-size: 15px; font-weight: 700; line-height: 1.4; }
.g-points li > span > span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.55; color: color-mix(in srgb, var(--ink) 66%, var(--bg)); }
.g-signin { margin: 0 0 30px; }
.signbtn { min-height: 40px; margin: 0; }
.g-msg { margin: 10px 0 0; min-height: 1.2em; font-size: 13px; line-height: 1.5; color: var(--danger); }
.g-msg:empty { min-height: 0; margin: 0; }
.g-hint { margin: 12px 0 0; max-width: 30em; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--ink) 60%, var(--bg)); }
.g-stores { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding-top: 24px; border-top: 1px solid var(--line-2); max-width: 30em; }
.g-or { font-size: 14px; color: color-mix(in srgb, var(--ink) 66%, var(--bg)); margin-right: 4px; }
.store { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.store img { display: block; height: 40px; width: auto; transition: transform .16s var(--ez); }
a.store:hover img { transform: translateY(-2px); }
.store-off img { opacity: .6; filter: grayscale(.3); }
.store .soon { font-size: 12px; color: color-mix(in srgb, var(--ink) 60%, var(--bg)); }
:root[data-theme="light"] .store img[src$=".svg"] { filter: none; }
.g-foot { position: relative; z-index: 1; padding: 0 0 24px; text-align: center; font-size: 12px; color: color-mix(in srgb, var(--ink) 55%, var(--bg)); }

/* 手機 */
.g-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
/* iPhone 18 Pro 裸機(冇套):71.9×150 mm(Apple 官方規格,闊高比 0.479)、官方 iPhone 18 Pro 銀色(老細:「唔用黑色」→揀「銀（Silver）」;apple.com/iphone-18-pro 官網 color_silver 圖取樣:亮 #dbdbdb／中 #c8c8c8／暗 #979797),圓弧面金屬帶＋頂邊柔和高光,按鍵窄膠囊貼身;唔用酒紅、橙、動態島比 17 Pro 細、細金屬邊(≈1%)＋均勻黑邊(5px)、按鍵貼身(凸出 ≤1.5px,凸太多會似戴咗套)、動態島、
   左邊 動作鍵＋音量 +/−、右邊 電源鍵＋相機控制鍵。⚠️ 換色只改 --ph-1/2/3 三個(官方銀:#dbdbdb #979797 #c8c8c8;官方黑 #818181 #2a2a2c #3e3e40;冰川 #b9c4d6 #6a7587 #949fb1;酒紅 #87676a #372124 #432a2d;橙:#f0a06a #b8541f #e0813f;酒紅:#77535c #251619 #4a2f35;黑:#5a5d63 #1a1b1e #3a3c41;銀:#e4e6e9 #a5a9b0 #cfd2d6;18 Pro 官方色:黑／銀／冰川藍／酒紅)。 */
.phone { --ph-1: #dbdbdb; --ph-2: #979797; --ph-3: #c8c8c8; position: relative; width: min(310px, 78vw); aspect-ratio: 71.9 / 150; border-radius: 15.5% / 7.4%; padding: 1.5%;
  background: linear-gradient(135deg, var(--ph-1), var(--ph-2) 40%, var(--ph-3) 72%, var(--ph-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 0 2px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.7), inset 0 2px 3px 0 rgba(255,255,255,.85), inset 0 0 0 2.5px rgba(0,0,0,.18), inset 0 -2px 4px 0 rgba(0,0,0,.18), 0 40px 90px -20px rgba(0,0,0,.65), 0 0 90px -10px rgba(200,205,220,.16);
  transform: rotate(3deg); animation: phone-in .9s var(--ez) both, phone-float 7s 1s ease-in-out infinite; }
/* 鋁金屬拉絲＋倒角高光:一條斜向亮帶掃過機身(疊喺漸變之上,唔攔屏幕) */
.phone::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.34) 30%, transparent 42%, transparent 62%, rgba(255,255,255,.16) 74%, transparent 84%), repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); mix-blend-mode: soft-light; }
:root[data-theme="light"] .phone { box-shadow: 0 0 0 1px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.4), inset 0 0 6px 1px rgba(255,255,255,.22), 0 40px 80px -24px rgba(15,20,25,.38), 0 0 80px -10px rgba(130,135,150,.12); }
/* 屏幕:外面再包一圈黑邊(≈1.2 mm),半徑同機身同心 */
.phone-in { position: relative; height: 100%; border-radius: 13.2% / 6.3%; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 5px #000; }
/* 側鍵(貼喺機身外緣,陰影模擬凸出) */
.pb { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ph-2), var(--ph-1) 50%, var(--ph-3)); box-shadow: 0 0 0 .5px rgba(0,0,0,.45), inset 0 .5px 0 rgba(255,255,255,.8); }
.pb-action, .pb-up, .pb-down { left: -3px; } .pb-power, .pb-cam { right: -3px; }
.pb-action { top: 14.6%; height: 4.4%; }
.pb-up { top: 22%; height: 8.2%; }
.pb-down { top: 32%; height: 8.2%; }
.pb-power { top: 25.5%; height: 12.6%; }
.pb-cam { top: 63%; height: 7.6%; width: 3px; }
/* 頂欄:動態島＋時間＋訊號／Wi-Fi／電量 */
.phone-bar { position: absolute; top: 0; left: 0; right: 0; height: 48px; z-index: 3; display: grid; place-items: start center; padding-top: 10px; background: linear-gradient(var(--bg) 62%, transparent); pointer-events: none; }
.island { position: relative; width: 25%; height: 24px; border-radius: 20px; background: #000; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.10), inset 0 0 0 1px rgba(255,255,255,.05); }
.island i { position: absolute; right: 9px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #6c7fb8 0, #23305a 34%, #080a12 68%, #000 100%); box-shadow: 0 0 0 1.5px #1a1d27, 0 0 0 2.5px rgba(255,255,255,.07); }
.phone-bar::before { content: '9:41'; position: absolute; left: 9%; top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.sb-r { position: absolute; right: 8%; top: 16px; color: var(--ink); }
.home-ind { position: absolute; left: 50%; bottom: 7px; width: 34%; height: 4px; margin-left: -17%; border-radius: 3px; background: var(--ink); opacity: .82; z-index: 4; }
.phone-feed { position: absolute; inset: 46px 0 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.phone-feed .post { padding: 12px 12px 4px 10px; }
.phone-feed .txt { font-size: 13.5px; }
.phone-feed .who { font-size: 12px; }
.phone-feed .media { width: 100%; }
.phone-feed .media img { aspect-ratio: 1.5; }
.phone-feed .act { pointer-events: none; }
@keyframes phone-in { from { opacity: 0; transform: translateY(28px) rotate(6deg) scale(.96); } }
@keyframes phone-float { 50% { transform: translateY(-10px) rotate(3deg); } }

/* 浮動小標籤 */
.chip-float { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--blur-2); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 40px -12px rgba(0,0,0,.5); white-space: nowrap; animation: chip-in .8s .5s var(--ez) both; }
.chip-float::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.chip-float.c1 { left: -3%; bottom: -9%; transform: rotate(-3deg); }
.chip-float.c2 { right: -3%; top: -6.5%; animation-delay: .7s; transform: rotate(2deg); }
.chip-float.c1::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(29,155,240,.2); }
@keyframes chip-in { from { opacity: 0; margin-top: 14px; } }

/* Apple 登入掣(CloudKit JS 畫嘅,淨係得文字):左邊補返 Apple 標誌,標誌＋文字成組置中 */
#sign-in .apple-auth-button { position: relative; width: 320px !important; height: 46px !important; border-radius: 12px !important; max-width: 100%; transition: transform .16s var(--ez), box-shadow .16s; }
#sign-in .apple-auth-button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255,255,255,.28); }
#sign-in .apple-auth-button::before { content: ""; position: absolute; left: var(--lx, 34px); top: 50%; width: 18px; height: 18px; margin-top: -10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701'/%3E%3C/svg%3E") center/contain no-repeat; }
#sign-in .apple-auth-button-text { margin-left: 18px; }

/* 手機闊度:單欄,手機示意收細放後面 */
@media (max-width: 860px) {
  .g-wrap { grid-template-columns: 1fr; gap: 8px; padding-top: 0; }
  .g-stage { min-height: 0; order: 2; margin-top: 12px; }
  .phone { width: min(300px, 74vw); transform: rotate(0); animation: phone-in .9s var(--ez) both; }
  .chip-float { display: none; }
  .g-points { margin-bottom: 26px; }
  #sign-in .apple-auth-button { width: 100% !important; }
  .g-stores { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .phone, .chip-float { animation: none; } }

/* 等登入狀態嗰陣嘅 K:淡入,快嘅話根本睇唔到。
   ⚠️ `.off` 要 !important:同 `display:grid` 特異度一樣,冇就收唔到 → 登入頁左上角會殘留一個 K。 */
.boot { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; color: var(--muted); opacity: 0; animation: boot-in .25s .35s var(--ez) forwards; pointer-events: none; }
.boot.off { display: none !important; }
@keyframes boot-in { to { opacity: .6; } }

.g-badges { display: flex; align-items: flex-start; gap: 12px; flex-wrap: nowrap; }
.g-points b, .gate h1, .g-lead, .g-points li > span > span { text-wrap: pretty; }
.gate h1 { text-wrap: balance; }
@media (max-width: 860px) { .g-stores { flex-direction: column; align-items: flex-start; } }

/* 記住我 */
.g-remember { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; cursor: pointer; font-size: 14.5px; line-height: 1.4; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); -webkit-user-select: none; user-select: none; }
.g-remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.g-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--raise); display: grid; place-items: center; flex: none; transition: background .15s, border-color .15s; }
.g-box::after { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--on-ink); border-bottom: 2px solid var(--on-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ez); }
.g-remember input:checked + .g-box { background: var(--on); border-color: var(--on); }
.g-remember input:checked + .g-box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.g-remember input:focus-visible + .g-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-remember:hover .g-box { border-color: var(--muted); }

/* Apple 掣文字跟語言:官方 SVG 字(淨係英文)隱藏,改畫我哋自己嗰句;標誌喺 ::before */
#sign-in .apple-auth-button::after { content: var(--signin-t, "Sign in with Apple ID"); position: absolute; left: calc(var(--lx, 34px) + 28px); top: 50%; transform: translateY(-50%); font: 600 var(--fs, 16px)/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: #000; white-space: nowrap; pointer-events: none; }
.g-remember span:last-child { text-wrap: balance; }
/* 900–1000px:機身縮細,標籤再往外挪一點,唔好蓋到屏幕角 */
@media (min-width: 821px) and (max-width: 1000px) { .chip-float.c2 { right: -7%; top: -8%; } .chip-float.c1 { left: -6%; } }

/* 頁尾三欄:標題細楷＋直排連結,冇圖示冇框(跟老細參考圖) */
.g-foot { padding-top: 8px; }
.g-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 5vw, 64px); max-width: 1120px; margin: 0 auto 28px; padding: 28px clamp(20px, 5vw, 56px) 0; border-top: 0; text-align: left; position: relative; }
.g-cols::before { content: ''; position: absolute; top: 0; left: clamp(20px, 5vw, 56px); right: clamp(20px, 5vw, 56px); border-top: 1px solid var(--line-2); }
.g-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.g-col h4 { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.g-col a { color: color-mix(in srgb, var(--ink) 66%, var(--bg)); text-decoration: none; font-size: 14px; line-height: 1.45; width: fit-content; transition: color .15s; overflow-wrap: anywhere; }
.g-col a:hover, .g-col a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .g-cols { grid-template-columns: 1fr 1fr; } .g-col:last-child { grid-column: 1 / -1; } }
#g-legal { display: block; padding: 0 clamp(20px, 5vw, 56px); }
/* 手機觸控:連結可點範圍拉到 ≥44px(視覺間距不變) */
@media (pointer: coarse) { .g-col { gap: 0; } .g-col h4 { margin-bottom: 6px; } .g-col a { display: flex; align-items: center; min-height: 44px; } }

@media (max-width: 520px) { .g-brand { gap: 8px; } .g-brand .mark { width: 56px; height: 56px; margin: -11px 0 -11px -16px; } .g-name { font-size: 15px; } .g-name b { font-size: 29px; } }
.g-top { padding-bottom: 14px; }
@media (max-width: 520px) { .g-top { padding-bottom: 18px; } }

/* 網頁版未買斷:鎖住頁(只喺買斷憑證缺失時出) */
.lock { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.lock[hidden] { display: none !important; }
.lock-in { max-width: 460px; text-align: center; }
.lock-in .mark { display: block; margin-left: auto; margin-right: auto; width: 56px; height: 56px; color: var(--ink); margin-bottom: 20px; }
.lock-in h1 { font-size: 24px; line-height: 1.3; margin: 0 0 12px; }
.lock-in p { color: var(--muted); line-height: 1.6; margin: 0 0 28px; }
.lock-btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.lock-primary, .lock-sec { min-height: 46px; border-radius: 12px; font: inherit; font-weight: 600; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.lock-primary { background: var(--ink); color: var(--bg); border: 0; }
.lock-sec { background: transparent; color: var(--ink); border: 1px solid var(--line, rgba(128,128,128,.35)); }

/* ── QR 登入(老細 2026-09-30:圓點 QR,參考 WhatsApp Web 嗰款) ──────────────────────
   ⚠️ QR 用 currentColor:深色主題白點、淺色主題黑點,卡片底色跟 --raise,所以兩個主題都掃得到(手機相機認反相 QR)。 */
.g-qrbox { display: flex; align-items: center; gap: 28px; margin: 0 0 22px; }
.g-qr { flex: none; width: 232px; height: 232px; padding: 14px; box-sizing: border-box; border-radius: 28px; background: var(--raise); border: 1px solid var(--line); color: var(--ink); }
.g-qr svg { display: block; width: 100%; height: 100%; }
.g-steps { margin: 0; padding: 0 0 0 1.3em; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.g-steps li::marker { color: color-mix(in srgb, var(--ink) 55%, var(--bg)); font-weight: 700; }
@media (max-width: 560px) {
  .g-qrbox { flex-direction: column; align-items: flex-start; gap: 18px; }
  .g-qr { width: min(260px, 100%); height: auto; aspect-ratio: 1; }
}

/* ── 網頁版右邊要有條可以拉嘅捲軸(老細 2026-09-30:「網址版右邊加返條BAR可以拉」)──────────────
   ⚠️ app-base.css(= App 原檔 web/style.css)為咗 App 用戶原話「右邊條BAR唔要」,將所有捲軸熄晒(`*` + `::-webkit-scrollbar`)。
      網頁版係滑鼠用戶,要拉得到,所以只喺網頁版開返**頁面**嗰條(html);App 嗰邊唔受影響。
   ⚠️ 要同時改 `scrollbar-width`(Firefox／新 Chrome)同 `::-webkit-scrollbar`(Safari／舊 Chrome),
      而且 `html` 自己要有 overflow-y: scroll,否則內容短嗰頁會跳出／消失條 bar 令版面左右跳。
   ⚠️ 橫向 chips(`.chips`)嗰條仍然唔畫,唔好影響到佢。 */
html { overflow-y: scroll; scrollbar-width: auto; scrollbar-color: color-mix(in srgb, var(--ink) 34%, var(--bg)) transparent; }
html::-webkit-scrollbar { display: block; width: 12px; height: 12px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 30%, var(--bg)); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; min-height: 48px; }
html::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--ink) 50%, var(--bg)); background-clip: content-box; }
/* 詳情頁(sheet-body)同左邊分類欄(nav-panel)自己會捲,一樣要有條 bar */
.sheet-body, .nav-panel { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 34%, var(--bg)) transparent; }
.sheet-body::-webkit-scrollbar, .nav-panel::-webkit-scrollbar { display: block; width: 10px; }
.sheet-body::-webkit-scrollbar-thumb, .nav-panel::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 30%, var(--bg)); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
#hdr .wm { cursor: pointer; }   /* 撳頂欄 K 上返最頂(滑鼠用戶要見到隻手) */

/* 按落去要有感覺(老細 2026-09-30:「啲制可唔可以加返啲效果，依家按落去好唔真實，唔知按左未」):縮細＋壓暗,放手彈返 */
.btn, .pill, .hbtn, .act, .rowi:not(.static), .lock-primary, .lock-sec, .store, .tabpill { transition: transform .13s cubic-bezier(.2,.8,.2,1), filter .13s, opacity .13s; }
.btn:active, .lock-primary:active, .lock-sec:active { transform: scale(.96); filter: brightness(.86); }
.pill:active { transform: scale(.93); filter: brightness(.86); }
.act:active { transform: scale(.8); }
.rowi:not(.static):active { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) { .btn:active, .pill:active, .act:active, .rowi:not(.static):active, .lock-primary:active, .lock-sec:active { transform: none; } }

/* 接收中:蓋住 QR 卡,轉圈＋字。⚠️ .g-qr 要 position:relative 先蓋得正 */
.g-qr { position: relative; }
.g-recv { position: absolute; inset: 0; z-index: 2; border-radius: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; text-align: center; background: color-mix(in srgb, var(--raise) 92%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.g-recv p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.gate.receiving .g-steps { opacity: .45; transition: opacity .2s; }
