/* MemorGi 官網（2026-10-30 全新）：漆器重箱。黑漆外殼、朱漆內格、一條金色蒔繪線。
   色票與字型的來由寫在 DESIGN.md；這支檔由 scripts/build-site.py 原樣複製到 website/css/。 */

@font-face { font-family: "Zen Maru Gothic"; font-weight: 700; font-display: swap; src: url("../fonts/ZenMaruGothic-700.v202611012214.woff2") format("woff2"); }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 500; font-display: swap; src: url("../fonts/ZenMaruGothic-500.v202611012214.woff2") format("woff2"); }
@font-face { font-family: "LXGW WenKai TC"; font-weight: 400; font-display: swap; src: url("../fonts/WenKaiTC-400.v202611012214.woff2") format("woff2"); }
@font-face { font-family: "LXGW WenKai TC"; font-weight: 700; font-display: swap; src: url("../fonts/WenKaiTC-700.v202611012214.woff2") format("woff2"); }
@font-face { font-family: "LXGW WenKai SC"; font-weight: 400; font-display: swap; src: url("../fonts/WenKaiSC-400.v202611012214.woff2") format("woff2"); }
@font-face { font-family: "LXGW WenKai SC"; font-weight: 700; font-display: swap; src: url("../fonts/WenKaiSC-700.v202611012214.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-display: swap; src: url("../fonts/JetBrainsMono-var.v202611012214.woff2") format("woff2-variations"); }

:root {
    --void: #0b0807;          /* 漆的最深處 */
    --lacquer: #14100d;       /* 外殼 */
    --lacquer-2: #1d1713;     /* 浮起的那層（蓋子、框） */
    --rim: #2a211b;
    --cinnabar: #b8402a;      /* 朱漆內格 */
    --cinnabar-deep: #8e2e1c;
    --cinnabar-hi: #d9573a;
    --gold: #d4af6a;          /* 蒔繪金，品牌金 */
    --lining-a: #d9573a; --lining-b: #b8402a; --lining-c: #8e2e1c; --glow: var(--gold-hi); --shell: var(--lacquer);
    --gold-hi: #f2d58c;
    --gold-lo: #8a6a33;
    --ivory: #f4efe6;
    --ivory-2: #d2c7b5;       /* 黑漆上 11:1 */
    --ivory-3: #a99d8a;       /* 黑漆上 7:1 */

    --display: "SF Pro Rounded", ui-rounded, "Zen Maru Gothic", system-ui, sans-serif;
    --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "PingFang TC", "Noto Sans TC", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --gutter: clamp(20px, 5vw, 64px);
    --max: 1240px;
    --space: clamp(96px, 14vw, 180px);
    color-scheme: dark;
}
:lang(zh-Hant) { --display: "LXGW WenKai TC", "SF Pro Rounded", ui-rounded, "Zen Maru Gothic", serif; --text: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", system-ui, sans-serif; }
:lang(zh-Hans) { --display: "LXGW WenKai SC", "SF Pro Rounded", ui-rounded, "Zen Maru Gothic", serif; --text: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; color: var(--ivory); font: 17px/1.65 var(--text); -webkit-font-smoothing: antialiased;
    /* 漆面：中央微暖的深黑，上緣一道很淡的反光 */
    background:
        linear-gradient(178deg, rgba(255, 236, 200, .045) 0, transparent 360px),
        radial-gradient(120% 80% at 50% 0%, #1a130f 0%, var(--void) 62%) var(--void);
    background-attachment: fixed;
    overflow-x: hidden;
}
::selection { background: rgba(212, 175, 106, .38); color: var(--ivory); }
html { scrollbar-color: var(--rim) var(--void); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }
img { display: block; max-width: 100%; height: auto; }
kbd { font: 500 .86em var(--mono); color: var(--gold-hi); background: var(--lacquer-2); border: 1px solid var(--rim); border-bottom-color: #3a2e25; border-radius: 6px; padding: .06em .42em; white-space: nowrap; }
em { font-style: normal; color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2 { letter-spacing: 0; line-height: 1.22; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--gold); color: #140f0c; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.skip:hover, .skip:focus { color: #140f0c; }

/* ── 導覽：蓋子的上緣 ─────────────────────────────── */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.2) blur(14px); background: rgba(11, 8, 7, .72); border-bottom: 1px solid rgba(212, 175, 106, .14); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "SF Pro Rounded", ui-rounded, "Zen Maru Gothic", system-ui, sans-serif; font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.mark b { color: var(--gold); font-weight: 700; }
.mark span { white-space: nowrap; }
.mark img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ivory-2); white-space: nowrap; }
.top nav a:hover { color: var(--gold-hi); }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--rim); border-radius: 999px; font-size: 13px; }
.langs a { text-decoration: none; padding: 4px 10px; border-radius: 999px; color: var(--ivory-3); }
.langs a[aria-current="true"] { background: var(--lacquer-2); color: var(--gold-hi); }

/* ── 首屏：打開的重箱 ─────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 var(--space); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); grid-template-areas: "title box" "copy box"; column-gap: clamp(32px, 5vw, 72px); row-gap: 0; align-items: end; }
.hero .title { grid-area: title; }
.hero .copy { grid-area: copy; align-self: start; }
.hero .stage { grid-area: box; align-self: center; }
.hero .try { margin-top: 8px; text-align: center; margin-inline: auto; }
/* 標題下面一行講清楚這是什麼（手機首屏只看得到標題和盒子） */
.hero .kind { margin-top: 14px; color: var(--ivory-3); font-size: 15px; }
.try-touch { display: none; }
.hero h1 { font-size: clamp(42px, 5vw, 74px); }
.hero .sub { margin-top: 26px; color: var(--ivory-2); font-size: clamp(17px, 1.45vw, 19px); max-width: 34em; }
.hero .meta { margin-top: 18px; color: var(--ivory-3); font-size: 14px; }
/* 還沒上架：一行狀態字，不做成按鈕的樣子（做成按鈕會被點，點了沒反應像壞掉） */
.badge {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
    color: var(--ivory-2); font: 500 15px/1.3 var(--text);
}
.badge svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.hero .badge-top { display: none; }   /* 要排在 .badge 後面，不然同權重會被 inline-flex 蓋掉 */
.try { margin-top: 20px; font-size: 15px; color: var(--ivory-2); max-width: 30em; }
.try small { display: block; margin-top: 4px; color: var(--ivory-3); font-size: 13px; }

/* 重箱本體：CSS 3D，從斜上方看 */
.stage { perspective: 1900px; perspective-origin: 50% 0%; }
.box {
    position: relative; transform: rotateX(24deg) rotateZ(-5deg); transform-style: preserve-3d;
    padding: clamp(14px, 1.6vw, 22px); border-radius: 28px;
    background: linear-gradient(165deg, color-mix(in srgb, var(--shell) 82%, #fff 6%), var(--shell) 55%, color-mix(in srgb, var(--shell) 85%, #000));
    box-shadow:
        inset 0 0 0 1px rgba(212, 175, 106, .5),
        inset 0 2px 0 rgba(255, 240, 210, .09),
        0 50px 90px -40px rgba(0, 0, 0, .95),
        0 24px 40px -24px rgba(0, 0, 0, .8);
    transition: background .6s var(--ease-out);
}
.box::after { /* 漆面拋光的一道斜向反光 */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(118deg, transparent 30%, rgba(255, 244, 222, .09) 42%, rgba(255, 244, 222, .02) 50%, transparent 58%);
}
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.1vw, 14px); }
.cell {
    position: relative; aspect-ratio: 1; border-radius: 14px; padding: 7%; overflow: hidden;
    background: radial-gradient(130% 110% at 30% 20%, var(--lining-a), var(--lining-b) 45%, var(--lining-c));
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 210, 170, .12);
    transition: background .6s var(--ease-out);
}
.cell img, .cell .paper { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); transition: transform .5s var(--ease-out), filter .5s var(--ease-out); }
.cell:not(.lifted) img, .cell:not(.lifted) .paper { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) brightness(.86); }
.cell.lifted img, .cell.lifted .paper { transform: translateY(-6%) scale(1.03); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .6)); }
.cell.lifted { box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55), 0 0 0 2px var(--glow), 0 14px 24px -12px rgba(0, 0, 0, .9); }
.paper {
    display: flex; flex-direction: column; justify-content: space-between; border-radius: 10px; padding: 9% 9% 7%;
    background: #fbf7ef; color: #2a201a; font: 500 clamp(11px, 1vw, 14px)/1.4 var(--text); overflow: hidden; text-align: left;
}
.paper span { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.paper i { font-style: normal; font-size: .78em; color: #7a6a5a; }
.peek { position: absolute; width: 17%; right: 4%; top: -15%; transform: translateZ(1px); pointer-events: none; }
.drop { animation: drop .9s var(--ease-out); }
@keyframes drop { from { transform: translateY(-70%) scale(1.15); opacity: 0; filter: blur(4px); } to { transform: translateY(-6%) scale(1.03); opacity: 1; filter: blur(0); } }
.toast { margin: 22px 4% 0 auto; min-height: 1.4em; text-align: right; font: 700 15px/1.4 var(--display); color: var(--gold-hi); opacity: 0; transition: opacity .3s; }
.toast.on { opacity: 1; }
/* 盒子捲出畫面時的提示：固定在畫面底部，附回盒子的連結 */
.toast-far { visibility: hidden; position: fixed; left: 50%; bottom: 24px; z-index: 6; margin: 0; padding: 12px 18px; border-radius: 14px; transform: translate(-50%, 12px);
    background: rgba(21, 16, 13, .94); box-shadow: inset 0 0 0 1px rgba(212, 175, 106, .45), 0 18px 40px -16px rgba(0, 0, 0, .9);
    font: 700 15px/1.4 var(--display); color: var(--gold-hi); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s linear .3s; max-width: calc(100vw - 32px); }
.toast-far.on { visibility: visible; opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition-delay: 0s; }
.toast-far a { color: var(--ivory); margin-left: 4px; }
.reset { display: block; margin: 6px 4% 0 auto; border: 0; background: none; padding: 6px 2px; color: var(--ivory-3); font: 500 14px var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.reset:hover { color: var(--gold-hi); }
.reset[hidden] { display: block !important; visibility: hidden; }
#box { scroll-margin-top: 120px; }
section[id] { scroll-margin-top: 88px; }

/* ── 一條金線貫穿下面的區塊 ─────────────────────────── */
.thread { position: relative; }
.thread::before { content: ""; position: absolute; left: max(10px, calc((100% - min(100% - 2 * var(--gutter), var(--max))) / 2 - 22px)); top: 0; bottom: 120px; width: 1.5px; background: var(--gold);
    -webkit-mask: linear-gradient(transparent, #000 120px, #000 calc(100% - 160px), transparent); mask: linear-gradient(transparent, #000 120px, #000 calc(100% - 160px), transparent); }
section.s { padding-block: 0 var(--space); }
.s h2 { font-size: clamp(34px, 4.4vw, 60px); max-width: 16em; }
.s .lead { margin-top: 22px; max-width: 34em; color: var(--ivory-2); font-size: clamp(17px, 1.3vw, 19px); }

/* 第二層：一長排格子 */
.tray { margin-top: clamp(40px, 5vw, 64px); padding: clamp(14px, 1.6vw, 22px); border-radius: 26px; background: linear-gradient(170deg, #1c1511, var(--lacquer)); box-shadow: inset 0 0 0 1px rgba(212, 175, 106, .32), 0 40px 70px -40px rgba(0, 0, 0, .9); }
.tray .cells { grid-template-columns: repeat(4, 1fr); }
.tray figure { margin: 0; }
.tray figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ivory-3); padding-inline: 4px; }
.tray figcaption b { display: block; color: var(--gold); font: 700 15px var(--display); letter-spacing: .01em; margin-bottom: 2px; }

/* 四層：每層一件事 */
.tiers { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: clamp(56px, 8vw, 104px); }
.tier { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
/* 字欄跟著截圖捲動停在上方，不會在高截圖旁邊留一大片空白 */
.tier > div:first-child { position: sticky; top: 104px; }
.tier::before { content: ""; position: absolute; left: -26px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--void); }
.tier h3 { font-size: clamp(52px, 7vw, 104px); color: var(--gold); line-height: .95; }
.tier p { margin-top: 18px; color: var(--ivory-2); max-width: 30em; }
.frame { border-radius: 20px; padding: clamp(10px, 1.2vw, 16px); background: radial-gradient(120% 120% at 20% 10%, var(--lining-a), var(--lining-b) 50%, var(--lining-c)); box-shadow: inset 0 3px 10px rgba(0, 0, 0, .5), 0 40px 70px -40px rgba(0, 0, 0, .95); }
.frame img { border-radius: 12px; width: 100%; }

/* 配色：換內襯 */
.lining { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.lining .box { transform: rotateX(16deg) rotateZ(3deg); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: calc(7 * 40px + 6 * 10px); }
.swatches button {
    --a: #000; --b: #fff; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: radial-gradient(circle at 50% 50%, var(--b) 0 28%, var(--a) 30% 62%, transparent 64%),
        conic-gradient(from 210deg, #f1e6ff, #b4fff2, #fff0c8, #ffc6e4, #c4dcff, #f1e6ff); /* 螺鈿的一圈虹光 */
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .9); transition: transform .25s var(--ease-out), box-shadow .25s;
}
.swatches button:hover { transform: translateY(-2px); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--void), 0 0 0 4px var(--gold-hi); }
.scheme { display: inline-flex; gap: 2px; margin-top: 22px; padding: 3px; border: 1px solid var(--rim); border-radius: 999px; }
.scheme button { border: 0; background: none; color: var(--ivory-3); font: 500 14px var(--text); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.scheme button[aria-pressed="true"] { background: var(--lacquer-2); color: var(--gold-hi); }
.lining .kind { margin-top: 14px; color: var(--ivory-3); font-size: 15px; }
.scheme-label { display: block; margin-top: 22px; font-size: 13px; color: var(--ivory-3); }
.scheme-label + .scheme { margin-top: 6px; }
.theme-name { display: block; margin-top: 14px; font: 600 14px var(--text); color: var(--gold); min-height: 1.4em; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 60px); }
.shots figure { margin: 0; }
.shots button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; text-align: left; color: inherit; font: inherit; }
.shots button img { transition: transform .3s var(--ease-out); }
.shots button:hover img { transform: translateY(-3px); }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--ivory-3); }
.shots img { border-radius: 14px; box-shadow: 0 0 0 1px rgba(212, 175, 106, .25), 0 30px 50px -30px rgba(0, 0, 0, .9); }

/* 隱私：闔上的蓋子 */
.lid {
    position: relative; margin-top: clamp(40px, 5vw, 64px); padding: clamp(32px, 5vw, 64px); border-radius: 28px;
    background: linear-gradient(165deg, #211913, var(--lacquer) 60%);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 106, .4), 0 50px 90px -50px rgba(0, 0, 0, .95);
}
.lid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: clamp(17px, 1.4vw, 20px); }
.lid li { position: relative; padding-left: 26px; }
.lid li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.lid a.more { display: inline-block; margin-top: 28px; color: var(--gold-hi); }

/* 盒子裡還有這些：三格一列的隔板，像重箱裡分開的小格 */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; padding: 0; border-block: 1px solid rgba(212, 175, 106, .25); font-size: 16px; line-height: 1.55; color: var(--ivory-2); }
.ledger li { list-style: none; position: relative; padding: 22px 24px 22px 40px; text-wrap: pretty; }
.ledger li:not(:nth-child(3n)) { border-right: 1px solid rgba(212, 175, 106, .16); }
.ledger li:nth-child(n+4) { border-top: 1px solid rgba(212, 175, 106, .16); }
/* 圓點對齊第一行，不對整格的中間：折成兩行時置中會落在兩行之間 */
.ledger li::before { content: ""; position: absolute; left: 22px; top: calc(22px + .775em - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* 柯基 */
.pup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.pup { position: relative; padding-bottom: 18px; }
.pup::after { /* 柯基坐的那道漆面檯子 */ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--lacquer-2); box-shadow: 0 1px 0 rgba(212, 175, 106, .35); }
.pup img { position: relative; z-index: 1; width: clamp(150px, 18vw, 230px); margin-bottom: -20px; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .6)); }
.pup p { margin-top: 16px; color: var(--ivory-2); max-width: 30em; }

/* 結尾 */
.close { text-align: center; padding-bottom: clamp(96px, 12vw, 160px); }
.close h2 { margin-inline: auto; font-size: clamp(38px, 5.6vw, 76px); max-width: 14em; }
.close .badge { margin-top: 40px; }
.close .req { margin-top: 18px; font-size: 15px; color: var(--ivory-3); }
.close .ask { margin-top: 10px; font-size: 15px; }
.close .ask a { color: var(--gold-hi); }

/* 常見問題：跟 ledger 同一套隔板線，兩欄 */
.faq { margin: 32px 0 0; max-width: 46em; border-block: 1px solid rgba(212, 175, 106, .25); }
.faq > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 40px; padding: 24px 0; }
.faq > div + div { border-top: 1px solid rgba(212, 175, 106, .16); }
.faq dt { font: 700 20px/1.3 var(--display); color: var(--ivory); }
.faq dd { margin: 0; color: var(--ivory-2); }

footer { border-top: 1px solid rgba(212, 175, 106, .14); padding: 34px 0 48px; font-size: 14px; color: var(--ivory-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .f-links, footer nav { display: flex; gap: 20px; }
footer .f-links { margin-left: auto; }
footer nav { padding-left: 28px; border-left: 1px solid rgba(212, 175, 106, .2); }
footer a { color: var(--ivory-2); }

/* 隱私頁 */
.doc { padding: clamp(56px, 8vw, 104px) 0 var(--space); }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(40px, 5.4vw, 72px); }
.doc .updated { margin-top: 14px; color: var(--ivory-3); font-size: 14px; }
.doc h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 72px; color: var(--gold); }
.doc h3 { font: 700 21px/1.3 var(--display); margin-top: 36px; }
.doc p, .doc li, .doc td { color: var(--ivory-2); }
.doc p { margin-top: 14px; max-width: 34em; }
.doc li { max-width: 34em; text-wrap: pretty; }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.doc li::marker { color: var(--gold); }
.doc .contact { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(212, 175, 106, .2); }
.doc code { font: .9em var(--mono); color: var(--gold-hi); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.doc th { text-align: left; color: var(--gold); font: 700 14px var(--display); padding: 10px 12px; border-bottom: 1px solid rgba(212, 175, 106, .4); }
.doc td { vertical-align: top; padding: 14px 12px; border-bottom: 1px solid rgba(212, 175, 106, .14); }
.doc td:first-child { color: var(--ivory); font-weight: 600; width: 26%; }
.doc td:last-child { width: 12%; color: var(--gold-hi); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 24px; }
.lost .cell { width: 200px; margin-inline: auto; }
.lost .lost-sub { color: var(--ivory-2); margin-top: -12px; }
.lost .routes { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.lost .routes a { color: var(--ivory-2); }

@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; grid-template-areas: "title" "box" "copy"; row-gap: 28px; }
    /* 手機：說明先、「試試看」後，而且改成長按選字的說法 */
    .hero .badge-top { display: inline-flex; margin-top: 18px; }
    .hero .badge-copy { display: none; }
    .hero .wrap { row-gap: 20px; }
    .lining, .tier { grid-template-columns: 1fr; }
    .tray .cells { grid-template-columns: repeat(2, 1fr); }
    .shots { grid-template-columns: repeat(2, 1fr); }
    .tier::before { left: calc(-1 * var(--gutter) + 6px); }
    .ledger { grid-template-columns: repeat(2, 1fr); }
    .ledger li:not(:nth-child(3n)) { border-right: 0; }
    .ledger li:nth-child(odd) { border-right: 1px solid rgba(212, 175, 106, .16); }
    .ledger li:nth-child(n+3) { border-top: 1px solid rgba(212, 175, 106, .16); }
    .ledger li:last-child:nth-child(odd) { border-right: 0; }   /* 單數項時最後一格自己一列，不掛分隔線 */
}
@media (max-width: 640px) {
    .top nav { gap: 16px; font-size: 14px; }
    .faq > div { grid-template-columns: 1fr; padding: 20px 0; }
    /* 首屏的盒子：兩欄四格、傾斜減半、貼到兩側，卡片字才看得清 */
    .hero .stage { margin-inline: calc(-1 * var(--gutter) + 14px); }
    .hero .cells { grid-template-columns: repeat(2, 1fr); }
    .hero .cell:nth-child(n+5) { display: none; }
    .tier > div:first-child { position: static; }
    footer .f-links { margin-left: 0; }
    footer nav { flex-basis: 100%; padding-left: 0; border-left: 0; }   /* 手機上語言切換自己一行，跟信箱、隱私分得開 */
    .top .wrap { gap: 14px; }
    .box { transform: rotateX(8deg) rotateZ(-2deg); }
    .pup { grid-template-columns: 1fr; padding-bottom: 0; }
    .pup::after { display: none; }
    .pup img { margin-bottom: 0; }
    .hero .stage { margin-bottom: -18px; }
    .hero .toast { margin-top: 10px; min-height: 0; }
    .hero .reset { margin-top: 0; padding-block: 0; }
    .doc td:first-child { width: auto; }

    .ledger { grid-template-columns: 1fr; }
    .ledger li:nth-child(odd) { border-right: 0; }
    .ledger li { padding: 16px 0 16px 18px; }
    .ledger li:nth-child(n+2) { border-top: 1px solid rgba(212, 175, 106, .16); }
    .ledger li::before { left: 0; top: calc(16px + .775em - 2.5px); }
}
/* 觸控螢幕：點擊範圍至少 44px（導覽、語言、頁尾、深淺切換原本 18–34px 高） */
@media (pointer: coarse) {
    .stage .try { display: none; }
    .hero .try-touch { display: block; text-align: left; margin-inline: 0; }
    .top nav a { padding-inline: 9px; }
    .lost .routes a { padding-inline: 8px; }
    .lost a, .doc .contact a { display: inline-flex; align-items: center; min-height: 44px; }
    .mark, .top nav a, .langs a, footer a, .scheme button, .lid a.more, .reset, .close .ask a { display: inline-flex; align-items: center; min-height: 44px; }
    .swatches button { width: 44px; height: 44px; }
    .swatches { gap: 6px; max-width: calc(7 * 44px + 6 * 6px); }
    .langs a { padding-inline: 10px; white-space: nowrap; }
    footer nav { gap: 6px 16px; flex-wrap: wrap; }
    footer a { padding-inline: 4px; }
}
/* 手機頂欄放不下三個連結加字標：拿掉 How it works（FAQ 與 Privacy 留著）。要排在 coarse 那段後面，不然 inline-flex 會蓋掉 */
@media (max-width: 640px) { .top nav a.how { display: none; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
