/* ==========================================================
   賴奕帆 個人網站 — 共用樣式
   風格：溫暖人文（米白紙張感 + 琥珀黃）
   字體：標題 Noto Serif TC、內文 Noto Sans TC（Google Fonts）
   ========================================================== */

:root {
  --bg: #f8f6ec;
  --surface: #fffdf8;
  --surface-2: #f3ecdc;
  --text: #2b2620;
  --muted: #6b6254;
  --line: #e4dac4;
  --accent: #f2c230;        /* 識別黃：色塊、裝飾（取自角色設定圖） */
  --teal: #4a7b7f;          /* 識別青綠：圓形、鏤空字、次要裝飾 */
  --ink: #26281f;           /* 識別墨黑：名字標籤 */
  --paper: #f8f6ec;
  --accent-ink: #8f5500;    /* 琥珀褐：文字連結（對比度足夠） */
  --accent-soft: #fbeccb;
  --on-accent: #2b2620;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 6px 20px rgba(60, 40, 10, .06);

  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-sans: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --maxw: 1080px;
  --prose-w: 40rem;
}

:root[data-theme="dark"] {
  --bg: #1a1612;
  --surface: #231e18;
  --surface-2: #2c261e;
  --text: #efe7d8;
  --muted: #b3a894;
  --line: #3a3228;
  --accent: #f2b84b;
  --teal: #7fb0b4;
  --ink: #f8f6ec;
  --paper: #1a1612;
  --accent-ink: #f2b84b;
  --accent-soft: #3a2e14;
  --on-accent: #1a1612;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1612;
    --surface: #231e18;
    --surface-2: #2c261e;
    --text: #efe7d8;
    --muted: #b3a894;
    --line: #3a3228;
    --accent: #f2b84b;
  --teal: #7fb0b4;
  --ink: #f8f6ec;
  --paper: #1a1612;
    --accent-ink: #f2b84b;
    --accent-soft: #3a2e14;
    --on-accent: #1a1612;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; margin-right: auto; }
.brand::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--accent) url("../img/avatar.webp") center / cover; box-shadow: 0 0 0 2px var(--accent); }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--on-accent); background: var(--accent); font-weight: 500; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.05rem; line-height: 1;
}
.theme-toggle:hover { background: var(--surface-2); }

/* ---------- Layout helpers ---------- */
main { min-height: 60vh; }
.section { padding-block: 56px; }
.section-title { font-size: 1.6rem; margin-bottom: 6px; display: flex; align-items: baseline; gap: 12px; }
.section-sub { color: var(--muted); margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .section-title, .section-head .section-sub { margin-bottom: 0; }
.eyebrow { font-size: .85rem; letter-spacing: .12em; color: var(--accent-ink); font-weight: 500; margin-bottom: 10px; }
.page-title { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 8px; }
.page-head { padding-block: 56px 20px; }

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--text); color: var(--text); text-decoration: none; font-weight: 500; background: transparent;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.05); background: var(--accent); }
.chip, .tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .85rem;
  background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; border: 1px solid transparent;
}
a.tag:hover, button.tag:hover { border-color: var(--accent); }
button.tag { cursor: pointer; font-family: inherit; }
button.tag[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Hero（角色識別） ---------- */
.hero { padding-block: 56px 24px; display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: .02em; line-height: 1.2; }
.name-label { display: inline-block; background: var(--ink); color: var(--paper); padding: .12em .55em .12em .6em; letter-spacing: .35em; }
.hero .tagline { font-family: var(--font-serif); font-size: clamp(1.15rem, 3vw, 1.5rem); color: var(--muted); margin: 14px 0 20px; display: flex; align-items: center; gap: 10px; }
.hero .tagline::before { content: ""; width: 36px; height: 6px; background: var(--ink); border-radius: 3px; }
.hero p.intro { max-width: 34rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (min-width: 800px) { .hero { grid-template-columns: 1.15fr 1fr; } }

.hero-art { position: relative; width: min(100%, 380px); margin-inline: auto; aspect-ratio: 3 / 4; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; z-index: -2; width: 92%; aspect-ratio: 1; left: 4%; top: 4%; border-radius: 50%; background: var(--teal); }
.hero-art img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(10px 8px 0 var(--accent)); }
.hero-art .outline-text {
  position: absolute; z-index: -1; left: 0; bottom: 2%; font: 900 clamp(3.6rem, 13vw, 5.4rem)/.9 var(--font-sans);
  color: transparent; -webkit-text-stroke: 2px var(--teal); letter-spacing: .02em; user-select: none;
}
.hero-art .deco-x { position: absolute; right: 0; top: 6%; display: grid; gap: 2px; color: var(--accent); font: 700 2rem/1 var(--font-sans); user-select: none; }
.hero-art .deco-barcode { position: absolute; left: 0; top: 2%; width: 74px; height: 38px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); opacity: .75; }
.issues-strip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.issues-strip h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.issues-strip h2::before { content: "+"; color: var(--teal); font: 700 1.4rem/1 var(--font-sans); }

/* ---------- Cards / article list ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h3 { font-size: 1.2rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* 整張卡片可點擊 */
.card { position: relative; }
.card .meta { font-size: .85rem; color: var(--muted); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .chips { margin-top: auto; padding-top: 6px; position: relative; z-index: 1; }
.card-cover { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; width: 100%; background: var(--surface-2); }
.empty { color: var(--muted); padding: 32px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); }

/* ---------- Link list ---------- */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-list a {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.link-list a:hover { border-color: var(--accent); }
.link-list a span:last-child { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 36px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-ink); }
.footer-friends { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.footer-friends a { color: var(--muted); }
.footer-friends a:hover { color: var(--accent-ink); }
.footer-label { font-family: var(--font-serif); font-weight: 700; color: var(--text); }
.site-footer small { display: block; line-height: 1.6; }

/* ==========================================================
   文章頁（articles/*.html）
   ========================================================== */
.article { width: min(100% - 32px, var(--prose-w)); margin: 0 auto; padding-block: 48px 24px; }
.article-head { margin-bottom: 28px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.article-head h1 { font-size: clamp(1.8rem, 5.5vw, 2.5rem); letter-spacing: .01em; margin-bottom: 14px; }
.article-summary { font-family: var(--font-serif); font-size: 1.15rem; color: var(--muted); margin-bottom: 14px; }
.article-meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin: 0; }
.article-cover { width: min(100% - 32px, 52rem); margin: 0 auto 8px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.article-cover figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }

.prose { font-size: 1.06rem; line-height: 1.95; }
.prose > p:first-of-type { font-size: 1.12rem; }
.prose h2 { font-size: 1.55rem; margin: 2.4em 0 .7em; padding-left: 14px; border-left: 5px solid var(--accent); }
.prose h3 { font-size: 1.25rem; margin: 2em 0 .6em; }
.prose h4 { font-size: 1.05rem; margin: 1.6em 0 .4em; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent-ink); }
.prose strong { font-weight: 700; background: linear-gradient(transparent 65%, var(--accent-soft) 65%); }
.prose hr { border: 0; text-align: center; margin: 2.6em 0; }
.prose hr::before { content: "• • •"; color: var(--accent); letter-spacing: .5em; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent);
  font-family: var(--font-serif); font-size: 1.12rem; color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 8px; font-family: var(--font-sans); font-size: .88rem; font-style: normal; color: var(--muted); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 12px; background: var(--surface-2); }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose figure.wide { width: min(100vw - 32px, 52rem); margin-inline: 50%; transform: translateX(-50%); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.prose pre { background: var(--surface-2); padding: 16px; border-radius: 12px; overflow-x: auto; line-height: 1.6; margin: 1.5em 0; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; white-space: nowrap; }
.prose th { font-family: var(--font-serif); background: var(--surface-2); }
.callout {
  margin: 1.8em 0; padding: 16px 20px; border-radius: 12px; background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-family: var(--font-serif); font-weight: 700; margin-bottom: 4px; }
.pullquote { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.5; text-align: center; margin: 2.2em 0; padding: 0 8px; }
.pullquote::before, .pullquote::after { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin: 14px auto; border-radius: 2px; }

.article-sources { margin-top: 3em; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.article-sources h2 { font-size: 1.05rem; margin-bottom: 8px; }
.article-sources ol { margin: 0; padding-left: 1.3em; color: var(--muted); }
.article-sources li { margin-bottom: .3em; word-break: break-word; }

.article-nav { width: min(100% - 32px, var(--prose-w)); margin: 32px auto 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.article-nav a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .95rem; }
.article-nav a:hover { border-color: var(--accent); }
.article-nav small { display: block; color: var(--muted); font-size: .8rem; }
.article-nav .next { text-align: right; grid-column: 2; }
.article-nav .prev { grid-column: 1; }
.comments { width: min(100% - 32px, var(--prose-w)); margin: 40px auto 0; }
.comments h2 { font-size: 1.2rem; margin-bottom: 12px; }

/* 手機 */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: 40px; }
  .site-header .wrap { gap: 6px; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 10px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next, .article-nav .prev { grid-column: 1; text-align: left; }
}
@media print {
  .site-header, .site-footer, .comments, .article-nav, .theme-toggle { display: none; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================
   科技樹（首頁）
   ========================================================== */
.skilltree { display: grid; gap: 0; justify-items: center; }
.st-root {
  display: inline-flex; flex-direction: column; align-items: center; padding: 12px 36px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem;
  box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow); position: relative;
}
.st-root small { font-family: var(--font-sans); font-weight: 400; font-size: .8rem; opacity: .8; }
.st-stem { width: 2px; height: 32px; background: var(--line); }
.st-branches { display: grid; gap: 20px; width: 100%; align-items: start; }
@media (min-width: 900px) { .st-branches { grid-template-columns: 1.35fr 1fr; } }
.st-col { display: grid; gap: 20px; }
.st-branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 14px; box-shadow: var(--shadow); }
.st-branch-title { font-size: 1.3rem; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.st-branch-title::before { content: ""; width: 14px; height: 14px; background: var(--accent); transform: rotate(45deg); border-radius: 3px; }
.st-branch-sub { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.st ul { list-style: none; margin: 0; padding: 0 0 0 18px; }
.st > ul { padding-left: 0; }
.st li { position: relative; padding: 4px 0 4px 20px; }
.st li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid var(--line); }
.st li:last-child::before { bottom: auto; height: 18px; }
.st li::after { content: ""; position: absolute; left: 0; top: 18px; width: 14px; border-top: 2px solid var(--line); }
.st-issue > .st-label { font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; color: var(--text); }
.st-issue > .st-label::before { content: "◆ "; color: var(--accent); font-size: .8em; }
.st-leaf { font-size: .95rem; line-height: 1.55; }
.st-leaf .st-role { display: inline-block; margin-left: 6px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; line-height: 1.7; white-space: normal; }
.st-leaf .st-role.hot { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.st-leaf .st-desc { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }

/* ==========================================================
   經歷時間軸（timeline.html）
   ========================================================== */
.timeline { max-width: 46rem; padding-bottom: 24px; }
.tl-year { font-size: 1.5rem; margin: 36px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); display: inline-block; }
.tl-list { list-style: none; margin: 0 0 0 6px; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.tl-item { position: relative; padding: 0 0 22px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-title { font-weight: 500; margin: 2px 0 2px; line-height: 1.6; }
.tl-role { color: var(--muted); font-size: .92rem; }
.tl-role::before { content: "角色　"; font-size: .8rem; letter-spacing: .05em; }
.cert { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cert span:first-child { flex: 1; min-width: 0; }
.cert span:last-child { flex: none; max-width: 60%; text-align: right; color: var(--muted); font-size: .9rem; }
.st-more { margin-top: 24px; text-align: center; }

/* ---------- 關於我 ---------- */
.about { display: grid; gap: 28px; max-width: 50rem; padding-bottom: 56px; }
.about-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.about .prose { max-width: var(--prose-w); }
@media (min-width: 800px) { .about { grid-template-columns: 160px 1fr; gap: 40px; } .about-photo { width: 160px; height: 160px; position: sticky; top: 96px; } }

/* ==========================================================
   切頁動畫（跨頁面 View Transitions）
   Chrome／Edge／Safari 支援；不支援的瀏覽器會直接切換，不受影響。
   ========================================================== */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.nav a[aria-current="page"] { view-transition-name: nav-pill; }  /* 黃色按鈕滑到新位置 */
.nav a { transition: background-color .2s, color .2s; }

::view-transition-group(nav-pill) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ==========================================================
   成年確認（成人文章 <article data-age-gate>）
   預設隱藏全部內容；JS 確認後加上 .age-ok 才顯示。沒有 JS 時維持隱藏並顯示 noscript 說明。
   ========================================================== */
.article[data-age-gate]:not(.age-ok) > :not(noscript) { display: none; }
.age-noscript { padding: 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.tag-adult { background: var(--ink); color: var(--paper); font-weight: 700; letter-spacing: .05em; }

.age-gate { border: 0; padding: 0; background: transparent; max-width: min(92vw, 30rem); color: var(--text); }
.age-gate::backdrop { background: color-mix(in srgb, var(--bg) 70%, #000 30%); backdrop-filter: blur(14px); }
.age-gate form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 14px; }
.age-gate .age-gate-badge { color: var(--paper); margin: 0 auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 1.5rem/1 var(--font-sans); box-shadow: 0 0 0 5px var(--accent); }
.age-gate h2 { font-size: 1.35rem; }
.age-gate p { margin: 0; color: var(--muted); }
.age-gate-actions { display: grid; gap: 10px; margin-top: 6px; }
.age-gate-actions .btn { justify-content: center; font-family: inherit; font-size: 1rem; cursor: pointer; }
.age-gate-note { font-size: .82rem; }

/* 錨點跳轉時避開黏在上方的頁首 */
#contact, #tree-title { scroll-margin-top: 96px; }
