/* 塞得落官網：配色、按鈕和絲帶都跟遊戲本身（scripts/ui/app_theme.gd、ribbon.gd）一致 */

:root {
  --sky: #ffe8c7;        /* 遊戲的米色背景 */
  --sky-deep: #fddcae;
  --paper: #fff6e8;
  --card: #fffaf3;
  --rim: #e6d3bd;        /* 卡片、白色按鈕底部的邊 */
  --well: #f6e6d1;
  --ink: #4a3426;
  --ink-soft: #7b6352;
  --orange: #f28c38;
  --orange-btn: #e2731b; /* 上面放白字的橙色（對比度夠） */
  --orange-rim: #b9570f;
  --blue: #3d7ea6;       /* 設計師制服、英文名絲帶的藍 */
  --blue-deep: #2f6a8f;
  --blue-rim: #234f6c;
  --teal: #2a9d8f;
  --red: #e2533f;
  --gold: #f5b83d;
  --green: #4cae6b;
  --radius: 28px;
  --wrap: 1120px;
  --font: "Noto Sans HK", "PingFang HK", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

html[data-lang="en"] body { font-family: var(--font-en); line-height: 1.65; }

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: var(--blue-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-rim); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 820px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

.defs { position: absolute; }

/* ---------- 另一種語言的提示（只在瀏覽器語言與這一頁不同時出現） ---------- */

.lang-hint {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--ink); color: #fff3e0; padding: 8px 52px 8px 16px; font-size: 15px; position: relative;
}
.lang-hint[hidden] { display: none; }
.lang-hint-go { color: #ffd08a; font-weight: 700; }
.lang-hint-go:hover { color: #fff; }
.lang-hint-close {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 36px; height: 36px;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: 50%;
}
.lang-hint-close:hover { background: rgba(255, 255, 255, .14); }

/* ---------- 頁首 ---------- */

.top { position: relative; z-index: 5; padding-block: 14px; }
.top-row { display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; white-space: nowrap; min-width: 0;
  font-family: var(--font); }   /* 名稱有中文：英文頁也用中文字體組合，否則「塞得落」會換成另一款中文字體 */
/* 「塞得落 Sak Dak Lok」不換行：窄手機上縮細字，免得斷成「Sak Dak / Lok」 */
@media (max-width: 400px) { .brand { font-size: 17px; gap: 8px; } }
@media (max-width: 340px) { .brand { font-size: 15px; } }
.brand img { border-radius: 12px; box-shadow: 0 3px 0 rgba(74, 52, 38, .18); }
.brand:hover { color: var(--ink); }

.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding-block: 6px; border-bottom: 3px solid transparent; }
.top-nav a:hover { border-bottom-color: var(--orange); }

/* 語言切換：只有地球圖示（文字在 title / aria-label），免得「English」被誤會成目前的語言 */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px;
  background: var(--card); color: var(--ink); text-decoration: none;
  border-radius: 50%; box-shadow: 0 4px 0 var(--rim);
  transition: translate .12s, box-shadow .12s;
}
.lang-switch:hover { color: var(--ink); translate: 0 -1px; box-shadow: 0 5px 0 var(--rim); }
.lang-switch:active { translate: 0 3px; box-shadow: 0 1px 0 var(--rim); }

@media (max-width: 719px) {
  .top-nav { display: none; }
  .lang-switch { margin-left: auto; }
}

/* ---------- 絲帶標題（遊戲彈窗的那一款） ---------- */

.ribbon {
  --rb: var(--orange-btn); --rb-dark: var(--orange-rim); --rb-fold: #8c3f08;
  position: relative; isolation: isolate; display: block; width: fit-content; margin-inline: auto;
  font-size: clamp(22px, 2.2vw + 14px, 30px); font-weight: 800; color: #fff;
}
.ribbon-blue { --rb: var(--blue); --rb-dark: var(--blue-deep); --rb-fold: var(--blue-rim); }
.ribbon > span {
  position: relative; display: block; padding: .42em 1.5em .5em; white-space: nowrap;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 8px, transparent 8px 14px) 14px 6px / calc(100% - 28px) 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 8px, transparent 8px 14px) 14px calc(100% - 6px) / calc(100% - 28px) 2px no-repeat,
    var(--rb);
  text-shadow: 0 2px 0 rgba(74, 52, 38, .55), 0 0 6px rgba(74, 52, 38, .35);
  letter-spacing: .04em;
}
/* 兩邊的尾巴（比橫帶低一點）和摺位 */
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; z-index: -1; top: 12px; width: 44px; height: 100%; background: var(--rb-dark);
}
.ribbon::before { left: -26px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 26% 50%); }
.ribbon::after { right: -26px; clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%); }
.ribbon > span::before, .ribbon > span::after {
  content: ""; position: absolute; top: 100%; width: 18px; height: 12px; background: var(--rb-fold);
}
.ribbon > span::before { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.ribbon > span::after { right: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }

/* ---------- 按鈕 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px 16px; border-radius: 18px; font-weight: 800; font-size: 20px; text-decoration: none;
  transition: translate .12s, box-shadow .12s;
}
.btn-primary { background: var(--orange-btn); color: #fff; box-shadow: 0 6px 0 var(--orange-rim); text-shadow: 0 1px 0 rgba(74, 52, 38, .35); }
.btn-primary:hover { color: #fff; translate: 0 -2px; box-shadow: 0 8px 0 var(--orange-rim); }
.btn-primary:active { translate: 0 4px; box-shadow: 0 2px 0 var(--orange-rim); }

.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 172px;
  padding: 9px 24px 11px; border-radius: 18px; line-height: 1.25; text-decoration: none;
  background: var(--ink); color: #fff6e8; box-shadow: 0 6px 0 #2a1b12;
  transition: translate .12s, box-shadow .12s;
}
.store small { font-size: 12.5px; font-weight: 600; opacity: .85; letter-spacing: .04em; }
.store b { font-size: 21px; font-weight: 800; font-family: var(--font-en); }
a.store:hover { color: #fff; translate: 0 -2px; box-shadow: 0 8px 0 #2a1b12; }
a.store:active { translate: 0 4px; box-shadow: 0 2px 0 #2a1b12; }
.store.is-soon { background: var(--card); color: var(--ink); box-shadow: 0 6px 0 var(--rim); }
.store.is-soon small { color: var(--orange-rim); opacity: 1; font-weight: 700; }

/* ---------- 卡片 ---------- */

.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 6px 0 var(--rim), 0 16px 30px -18px rgba(74, 52, 38, .35); }

/* ---------- 手機外框 ---------- */

.phone {
  background: var(--ink); padding: 7px; border-radius: 30px;
  box-shadow: 0 8px 0 rgba(74, 52, 38, .2), 0 26px 40px -16px rgba(74, 52, 38, .45);
}
.phone img { width: 100%; border-radius: 24px; background: var(--sky); }

/* ---------- 首頁：主視覺 ---------- */

.hero { position: relative; margin-top: -76px; padding: 104px 0 0; overflow: hidden; }

.hero-grid { position: relative; z-index: 2; display: grid; gap: 28px; align-items: center; }

.hero-copy { text-align: center; padding-bottom: 8px; }
.logo { display: grid; justify-items: center; }
.logo img { width: min(78vw, 440px); animation: logo-pop .7s cubic-bezier(.3, 1.5, .5, 1) both; }
.logo .ribbon { margin-top: -22px; font-size: clamp(22px, 3vw + 12px, 34px); font-family: var(--font-en); animation: logo-pop .6s .18s cubic-bezier(.3, 1.5, .5, 1) both; }
.logo .ribbon > span { padding-inline: 1.9em; }

.slogan { margin-top: 26px; font-size: clamp(19px, 1.4vw + 14px, 26px); font-weight: 800; letter-spacing: .12em; color: var(--orange-rim); }
html[data-lang="en"] .slogan { letter-spacing: .02em; }
.lead { margin: 12px auto 0; max-width: 34em; font-size: clamp(17px, .5vw + 15px, 19px); color: var(--ink); text-wrap: balance; }
.hero .stores { margin-top: 26px; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); white-space: pre-wrap; }

.hero-art { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 46px; }
.phone-hero { width: clamp(196px, 54vw, 290px); flex: none; animation: floaty 6s ease-in-out infinite; }
.designer { position: relative; z-index: 2; flex: none; width: auto; height: clamp(168px, 46vw, 330px); filter: drop-shadow(0 8px 6px rgba(74, 52, 38, .22)); }
.designer-boy { margin-right: clamp(-46px, -7vw, -28px); }
.designer-girl { margin-left: clamp(-40px, -6vw, -24px); }

.pavement {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 132px;
  background:
    linear-gradient(#f9e2bf, #f9e2bf) 0 0 / 100% 8px no-repeat,
    linear-gradient(90deg, #ecd0a6 2px, transparent 2px) 0 8px / 72px 100%,
    linear-gradient(#ecd0a6 2px, transparent 2px) 0 8px / 100% 42px,
    #f4d9b2;
}

.clouds i {
  position: absolute; z-index: 0; width: 130px; height: 40px; border-radius: 40px; background: #fff; opacity: .85;
  animation: drift 16s ease-in-out infinite alternate;
}
.clouds i::before, .clouds i::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.clouds i::before { width: 56px; height: 56px; left: 22px; top: -26px; }
.clouds i::after { width: 40px; height: 40px; left: 66px; top: -16px; }
.clouds i:nth-child(1) { left: 4%; top: 150px; scale: .8; }
.clouds i:nth-child(2) { left: 46%; top: 84px; scale: .6; animation-duration: 22s; }
.clouds i:nth-child(3) { right: 5%; top: 190px; animation-duration: 19s; animation-direction: alternate-reverse; }

/* 窄畫面：雲不可以飄到標題後面（只露一截會像污漬），改放在手機兩旁 */
@media (max-width: 899px) {
  .clouds i:nth-child(1) { top: auto; bottom: 470px; left: -36px; scale: .6; }
  .clouds i:nth-child(2) { display: none; }
  .clouds i:nth-child(3) { top: auto; bottom: 380px; right: -44px; scale: .7; }
}

@media (min-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 36px; }
  .hero-copy { padding-bottom: 150px; }
  .logo img { width: min(40vw, 470px); }
}

@keyframes logo-pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes floaty { 50% { translate: 0 -8px; } }
@keyframes drift { to { translate: 34px 0; } }

/* ---------- 首頁：資料卡（遊戲中的 HUD） ---------- */

.hud-wrap { position: relative; z-index: 3; margin-top: -34px; }
.hud {
  display: grid; grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto;
  background: var(--card); border-radius: 24px; box-shadow: 0 6px 0 var(--rim), 0 18px 30px -18px rgba(74, 52, 38, .4);
  padding: 8px 0;
}
.hud > div { text-align: center; padding: 10px 8px; position: relative; }
.hud dt { font-size: 14.5px; font-weight: 700; color: var(--ink-soft); }
.hud dd { font-size: 34px; font-weight: 800; line-height: 1.15; font-family: var(--font-en); font-variant-numeric: tabular-nums; }
.hud > div:nth-child(odd)::after { content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 2px; background: var(--rim); border-radius: 2px; }
@media (min-width: 640px) {
  .hud { grid-template-columns: repeat(4, 1fr); padding: 12px 0; }
  .hud > div:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 2px; background: var(--rim); border-radius: 2px; }
  .hud dd { font-size: 40px; }
}

/* ---------- 區塊 ---------- */

.section { padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 8vw, 92px); }
.section-tint { background: var(--sky-deep); }
.section-lead { margin: 30px auto 0; max-width: 32em; text-align: center; font-size: 18px; font-weight: 600; color: var(--ink-soft); }

/* 玩法三步 */
.steps { display: grid; gap: 30px; margin-top: 38px; }
.step { padding: 16px 16px 26px; }
.step-art { background: var(--well); border-radius: 18px; padding: 10px; }
.step-art svg { display: block; width: 100%; }
.coin {
  display: grid; place-items: center; width: 50px; height: 50px; margin: -27px 0 12px 12px; position: relative;
  border-radius: 50%; background: var(--orange); color: #fff; font-size: 26px; font-weight: 800; font-family: var(--font-en);
  box-shadow: 0 5px 0 var(--orange-rim), 0 0 0 5px var(--card); text-shadow: 0 2px 0 rgba(74, 52, 38, .4);
}
.step h3 { font-size: 21px; padding-inline: 10px; }
.step p { margin-top: 8px; padding-inline: 10px; color: var(--ink-soft); font-size: 16.5px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* 示範拖動的那件傢俬 */
.drag-piece { animation: drag-demo 3.6s ease-in-out infinite; }
@keyframes drag-demo {
  0%, 12% { translate: 0 0; }
  62%, 88% { translate: -52px -98px; }
  100% { translate: 0 0; }
}

/* 截圖 */
.shots {
  display: flex; gap: 22px; margin-top: 44px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 26px; scrollbar-width: thin; scrollbar-color: #d9b98c transparent;
}
.shot { flex: 0 0 clamp(188px, 56vw, 198px); scroll-snap-align: center; }
.shot figcaption { margin-top: 20px; text-align: center; }
.shot figcaption b { display: block; font-size: 18px; font-weight: 800; }
.shot figcaption span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
@media (min-width: 1160px) { .shots { justify-content: center; overflow-x: visible; } }

/* 特色 */
.features { display: grid; gap: 22px; margin-top: 44px; }
.feature { padding: 24px 24px 28px; }
.feature h3 { margin-top: 16px; font-size: 20px; }
.feature p { margin-top: 6px; color: var(--ink-soft); font-size: 16.5px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* 成就牌那種方形圖示 */
.badge {
  --bc: var(--orange); --bd: var(--orange-rim);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .3) 0 36%, transparent 36.5%) var(--bc);
  box-shadow: 0 4px 0 var(--bd);
}
.badge svg { width: 34px; height: 34px; }
.badge-red { --bc: var(--red); --bd: #b03a29; }
.badge-blue { --bc: var(--blue); --bd: var(--blue-rim); }
.badge-gold { --bc: #eaa72a; --bd: #b97c10; }
.badge-teal { --bc: var(--teal); --bd: #1c7268; }
.badge-sky { --bc: #5b9fd0; --bd: #3a78a6; }

/* 最後的下載區 */
.cta { padding: 0 0 clamp(64px, 9vw, 100px); }
.cta-box {
  display: grid; gap: 8px; align-items: center; justify-items: center; text-align: center;
  background: var(--blue-deep); color: #fff; border-radius: 34px; padding: 28px 24px 40px;
  box-shadow: 0 8px 0 var(--blue-rim);
  background-image: linear-gradient(rgba(255, 255, 255, .06) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .06) 2px, transparent 2px);
  background-size: 44px 44px;
}
.cta-box img { width: min(70vw, 330px); filter: drop-shadow(0 12px 10px rgba(20, 40, 60, .35)); }
.cta-copy h2 { font-size: clamp(26px, 3vw + 12px, 40px); }
.cta-copy p { margin-top: 8px; font-size: 18px; color: #e6f1f8; }
.cta .stores { margin-top: 24px; justify-content: center; }
.cta .store { background: #1d2f3d; box-shadow: 0 6px 0 #10202c; }
.cta .store.is-soon { background: var(--card); box-shadow: 0 6px 0 #c9b59c; }
@media (min-width: 860px) {
  .cta-box { grid-template-columns: auto 1fr; gap: 36px; justify-items: start; text-align: left; padding: 30px 56px 38px; }
  .cta .stores { justify-content: flex-start; }
}

/* ---------- 文件頁（私隱政策、條款、刪除帳戶、支援） ---------- */

.doc-head { padding: 26px 0 30px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15.5px; text-decoration: none; color: var(--ink-soft); }
.back:hover { color: var(--orange-rim); }
.doc-head h1 { margin-top: 14px; font-size: clamp(32px, 4vw + 14px, 48px); }
.doc-lead { margin-top: 10px; font-size: 19px; color: var(--ink-soft); font-weight: 600; }
.doc-date { margin-top: 14px; display: inline-block; background: var(--card); box-shadow: 0 3px 0 var(--rim); border-radius: 999px; padding: 4px 16px; font-size: 14.5px; font-weight: 700; }

.doc { margin-bottom: clamp(56px, 8vw, 96px); }
.doc > * { max-width: 100%; }
.doc-body, .doc {
  --pad: clamp(22px, 4vw, 44px);
}
article.doc {
  background: var(--card); border-radius: var(--radius); box-shadow: 0 6px 0 var(--rim), 0 16px 30px -18px rgba(74, 52, 38, .35);
  padding: var(--pad); width: calc(100% - 40px); max-width: 780px;
}
.doc h2 { margin-top: 2em; font-size: 23px; display: flex; gap: 12px; align-items: baseline; }
.doc h2::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--orange); box-shadow: 0 3px 0 var(--orange-rim); translate: 0 -1px; }
.doc > h2:first-child, .doc > .note:first-child + h2 { margin-top: .4em; }
.doc h3 { margin-top: 1.5em; font-size: 18.5px; }
.doc p { margin-top: .85em; }
.doc ul, .doc ol { margin-top: .7em; padding-left: 1.4em; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin-top: .35em; }
.doc li::marker { color: var(--orange-rim); font-weight: 800; }
.doc strong { font-weight: 800; }

.note { background: var(--well); border-radius: 18px; padding: 16px 20px; margin-top: 1.2em; }
.note > :first-child { margin-top: 0; }
.note-key { background: #e3f1ee; box-shadow: inset 4px 0 0 var(--teal); }

.table-scroll { margin-top: 1.1em; overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 2px var(--rim); }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 2px solid var(--rim); }
.doc th { background: var(--well); font-weight: 800; white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }

/* 一步一步的做法（刪除帳戶） */
.doc ol.howto { list-style: none; padding-left: 0; counter-reset: howto; }
.doc ol.howto li { counter-increment: howto; position: relative; padding: 4px 0 4px 54px; margin-top: 14px; min-height: 40px; }
.doc ol.howto li::before {
  content: counter(howto); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 19px; font-family: var(--font-en);
  box-shadow: 0 4px 0 var(--orange-rim); text-shadow: 0 1px 0 rgba(74, 52, 38, .4);
}

/* 常見問題 */
.faq { margin-top: 12px; background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 2px var(--rim); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 52px 14px 20px; font-weight: 800; position: relative; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 11px; height: 11px; margin-top: -9px;
  border-right: 3px solid var(--orange-rim); border-bottom: 3px solid var(--orange-rim); rotate: 45deg; transition: rotate .2s, margin .2s;
}
.faq[open] summary::after { rotate: 225deg; margin-top: -3px; }
.faq > div { padding: 0 20px 18px; color: var(--ink-soft); }
.faq > div > :first-child { margin-top: 0; }

.contact-card { margin-top: 1.2em; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; background: var(--well); border-radius: 18px; padding: 18px 22px; font-size: 19px; font-weight: 800; }
.contact-card span { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.contact-card a { overflow-wrap: anywhere; }

/* site.config.json 未填的項目 */
.todo { background: #ffe14d; color: #4a3426; font-weight: 800; padding: 1px 6px; border-radius: 6px; box-shadow: 0 0 0 2px #d9a400; }

/* ---------- 404 ---------- */

.lost { text-align: center; padding: 30px 0 90px; display: grid; justify-items: center; }
.lost img { width: min(64vw, 300px); }
.lost-code { margin-top: 6px; font-size: 64px; font-weight: 800; line-height: 1; color: var(--orange-btn); font-family: var(--font-en); -webkit-text-stroke: 0; }
.lost h1 { margin-top: 8px; font-size: clamp(26px, 3vw + 14px, 38px); }
.lost p { margin-top: 10px; color: var(--ink-soft); }
.lost .btn { margin-top: 28px; }

/* ---------- 頁尾 ---------- */

.foot { background: var(--ink); color: #f3e3cf; padding: 44px 0 34px; }
.foot a { color: #fff3e0; text-decoration: none; font-weight: 700; }
.foot a:hover { color: #ffd08a; text-decoration: underline; }
.foot-row { display: flex; flex-wrap: wrap; gap: 26px 40px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 14px; }
.foot-brand b { display: block; font-size: 19px; color: #fff; font-family: var(--font); }
.foot-brand span { display: block; font-size: 14.5px; color: #d9c3a8; letter-spacing: .08em; }
html[data-lang="en"] .foot-brand span { letter-spacing: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-legal { margin-top: 30px; padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .12); font-size: 13.5px; line-height: 1.7; color: #cbb59b; }
.foot-legal p + p { margin-top: 4px; }

/* ---------- 捲動時出現 ---------- */

.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .5s ease, translate .5s cubic-bezier(.2, .9, .3, 1.2); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(5) { transition-delay: .08s; }
.js .reveal:nth-child(6) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}

@media print {
  .top, .foot-nav, .lang-hint, .back, .skip { display: none !important; }
  body { background: #fff; }
  article.doc { box-shadow: none; padding: 0; width: 100%; max-width: none; }
}
