/* 吐司王国 · metatusi.com
   首屏是悉尼歌剧院黄昏的照片，往下是从暮色接过来的深蓝黑；字和按钮都是香槟金（不用冷色，免得突兀）。
   标题用本站精简宋体；正文、数字在苹果手机上用自带的苹方和 DIN，安卓、电脑用本站的思源黑体和 Barlow 窄体（看起来和苹果差不多）。
   不引用任何外部资源。
   动画只动 transform / opacity；系统里开了「减弱动态效果」就全部关掉。 */

/* 标题「吐司王国」：思源宋体最粗一档，只有这四个字（tools/titlefont.py，2 KB）；加载不了就用系统字体 */
/* font-display: swap：字体晚到也一定换上，网慢的人最后看到的也和网快的一样 */
@font-face { font-family: "Kingdom Title"; src: url(fonts/title.woff?v=8b041c3a8273) format("woff"); font-weight: 900; font-display: swap; }
/* 小字：思源宋体中粗，只有国民卡和首屏用得到的固定文字（tools/titlefont.py）；粗细写成一个范围，浏览器就不会自己把它描粗 */
/* 构建时给两个字体 URL 加内容版本号，预加载地址同步更新，避免手机缓存旧字库。 */
@font-face { font-family: "Kingdom Serif"; src: url(fonts/text.woff?v=8169e453fdfb) format("woff"); font-weight: 100 900; font-display: swap; }
/* 正文：思源黑体两档（只含网页上的字，建站时 tools/titlefont.py 做）。排在苹方后面：苹果手机用不到它，也就不会下载 */
@font-face { font-family: "Kingdom Sans"; src: url(fonts/sans-400.woff?v=8bd8bcf1fb14) format("woff"); font-weight: 100 549; font-display: swap; }
@font-face { font-family: "Kingdom Sans"; src: url(fonts/sans-600.woff?v=f23a0f0bb73c) format("woff"); font-weight: 550 900; font-display: swap; }
/* 数字：Barlow 窄体，最接近 iPhone 上的 DIN Alternate */
@font-face { font-family: "Kingdom Digits"; src: url(fonts/digits.woff?v=80e9554b9cf6) format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --black: #0a0d14;          /* 不用纯黑：黄昏照片往下接的深蓝黑，没那么硬 */
  --night-2: #0e121b;        /* 和 --black 交替的板块 */
  --ink-dark: #f5f5f7;      /* 黑底上的字 */
  --muted-dark: #86868b;
  --white: #fff;
  --gray: #f5f5f7;
  --ink: #1d1d1f;           /* 白底上的字 */
  --muted: #6e6e73;
  --button: linear-gradient(180deg, #f3d999 0%, #e2b360 100%);  /* 香槟金按钮，字是深棕 */
  --button-hover: linear-gradient(180deg, #f7e2ad 0%, #e9bf6e 100%);
  --button-ink: #2a1a06;
  --link: #e9c27a;
  --link-dark: #e9c27a;
  --gold: linear-gradient(100deg, #f7e2a6 0%, #e9b95c 30%, #c98a3a 55%, #f3d38c 80%, #e9b95c 100%);
  --radius: 22px;
  --serif: "Kingdom Serif", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; /* 标题、大字：思源宋体（只含网页上的这些字，tools/titlefont.py） */
  --digits: "DIN Alternate", "Kingdom Digits", Bahnschrift, "Roboto Condensed", -apple-system, sans-serif;   /* 数字：和国民卡上的编号同一种 */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
          "Kingdom Sans", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  /* 粉丝自己打的字、粉丝的昵称：什么字都有，本站的思源黑体只有网页上的字，混着用会一个字一个样，所以用手机自带字体 */
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
         "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--ink-dark);
  font: 17px/1.7 var(--font); letter-spacing: .015em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* 字体分工：标题和大字用宋体（和国民卡、首屏一套）；正文和按钮用黑体（苹果是苹方，其他是本站的思源黑体）；数字用 DIN（其他是 Barlow 窄体）；粉丝打的字和昵称用手机自带字体 */
h1, h2, h3, blockquote p, .cap, .lead, .welcome, .king-lead, .charter-rule, .eyebrow,
.countdown-label, .countdown-hint, .countdown-num small, .intel-foot, .stats span, .stats em, .goal p { font-family: var(--serif); }
.stats strong, #goal-left, .countdown-num, .result-no, .step-no { font-family: var(--digits); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 顶栏 ---- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(22, 22, 23, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 22px; height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink-dark); font-weight: 600; font-size: 15px; white-space: nowrap; }
.brand img { border-radius: 5px; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { color: var(--ink-dark); opacity: .8; font-size: 12px; white-space: nowrap; }
.nav nav a:hover { opacity: 1; text-decoration: none; }
.nav nav a[href="/game/"] { color: #e9c27a; opacity: 1; }

/* ---- 通用排版 ---- */
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
@media (max-width: 420px) { .eyebrow { letter-spacing: .16em; } } /* 手机上英文小标题不折成两行 */
.dark .eyebrow { color: #e9b95c; }
.light .eyebrow, .gray .eyebrow { color: #e9b95c; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: .02em; }  /* 宋体标题字距放开一点才大气 */
h1, h2, .lead, .welcome, .king-lead, blockquote p, .cap { text-wrap: balance; } /* 几行排得一样长，不会剩一两个字在下一行 */
h1 { font-size: clamp(46px, 9.4vw, 96px); line-height: 1.05; }
h2 { font-size: clamp(36px, 6.4vw, 64px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.3; }
.lead { margin: 24px auto 0; max-width: 680px; font-size: clamp(19px, 2.5vw, 24px); line-height: 1.6; font-weight: 500; letter-spacing: .03em; }
.dark .lead { color: var(--muted-dark); }
.light .lead, .gray .lead { color: var(--muted); }
.hint { margin: 14px 0 0; font-size: 14px; color: var(--muted-dark); }
.fine { max-width: 680px; margin: 44px auto 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.gold {
  background: var(--gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 980px;
  background: var(--button); color: var(--button-ink); font: 600 17px/1 var(--font); cursor: pointer;
  box-shadow: 0 8px 24px rgba(226, 179, 96, .18), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--button-hover); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--link-dark); box-shadow: inset 0 0 0 1.5px rgba(233, 194, 122, .7); }
.btn.ghost:hover { background: rgba(233, 194, 122, .08); }

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- 首屏：悉尼歌剧院黄昏的照片，上面压一层渐暗，字才看得清 ---- */
.hero {
  position: relative; overflow: hidden; min-height: calc(100vh - 48px); min-height: calc(100svh - 48px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 6vh, 64px) 22px clamp(20px, 4vh, 40px); text-align: center; background: var(--black);
}
.hero-photo { position: absolute; inset: 0; z-index: 0;
  background: url(images/hero-opera-portrait.webp) center 70% / cover no-repeat, linear-gradient(180deg, #1b2236, #6b4a3a 62%, #c9874f);
  animation: drift-in 2.4s cubic-bezier(.22, .61, .36, 1) both; }
@media (min-aspect-ratio: 4/5) {
  .hero-photo { background-image: url(images/hero-opera-wide.webp), linear-gradient(180deg, #1b2236, #6b4a3a 62%, #c9874f); background-position: center 62%; }
}
/* 上面压暗给顶栏和标题，底下渐渐接上 --black，往下滑没有一条硬边 */
.hero-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 20, .5) 0%, rgba(10, 13, 20, .22) 30%, rgba(10, 13, 20, .06) 55%, rgba(10, 13, 20, .5) 84%, var(--black) 100%); }
@keyframes drift-in { from { transform: scale(1.06); } to { transform: scale(1); } }
/* 首屏只放五样：抖音号、吐司王国、口号（上，天空里），搜索框和收藏认证（下）；中间整块留给歌剧院 */
.hero-top, .hero-bottom { position: relative; z-index: 2; }
.hero-bottom { width: 100%; max-width: 560px; margin: 0 auto; }
.hero-mark { font-family: "Kingdom Serif", var(--font);
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 14px;
  color: #f0cf8a; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero-mark::before, .hero-mark::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.hero-mark a { color: inherit; text-decoration: underline; text-underline-offset: .25em; }
.hero h1 { font-family: "Kingdom Title", var(--font); font-size: clamp(60px, 10vw, 100px); font-weight: 900; letter-spacing: .04em; line-height: 1.05;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .35)); }
.motto { font-family: "Kingdom Serif", var(--font); margin: 14px 0 0; color: #f5f5f7; font-size: clamp(16px, 2.2vw, 20px); font-weight: 500; letter-spacing: .18em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }

.finder { padding: 10px; border-radius: 24px; text-align: left;
  background: rgba(12, 15, 22, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 24px 60px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: saturate(150%) blur(24px); backdrop-filter: saturate(150%) blur(24px); }


.search-help { margin: 0 8px 6px; color: #d1d2d7; font-size: 14px; text-align: center; }
.search { display: flex; gap: 8px; }
.search input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 0; outline: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: box-shadow .2s;
  color: var(--ink-dark); font: 17px var(--sys);
}
.search input::placeholder, .capsule-input::placeholder { font-family: var(--font); }  /* 提示文字是写死的，和正文一个字体 */
.search input:focus { box-shadow: inset 0 0 0 1px rgba(240, 207, 138, .75), 0 0 0 4px rgba(240, 207, 138, .12); }
.search input::placeholder { color: rgba(245, 245, 247, .5); }
.search input::-webkit-search-cancel-button { display: none; }
.search button {
  flex: none; min-height: 50px; padding: 0 30px; border: 0; border-radius: 16px; letter-spacing: .08em;
  background: var(--button); color: var(--button-ink); font: 600 17px var(--font); cursor: pointer; transition: background .2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.search button:hover { background: var(--button-hover); }
/* 正在查：按钮上扫过一道金光 */
.search button { position: relative; overflow: hidden; }
.search.searching button::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .7) 50%, transparent 80%);
  transform: translateX(-100%); animation: sweep 1.1s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes sweep { to { transform: translateX(100%); } }

.results { margin: 14px 0 2px; text-align: left; }
.results:empty { display: none; }
/* 搜索框下面那一行：去吐司殿（此刻几个人在、今天第几片，app.js 填） */
.toast-now { display: block; margin: 10px 6px 2px; padding: 4px 2px; color: #e9b95c; font-size: 14px; text-align: center; text-decoration: none; }
.toast-now:hover { text-decoration: underline; }
.result-count { margin: 0 0 10px 8px; color: var(--muted-dark); font-size: 14px; }
.result-list { margin: 0; padding: 0; list-style: none; background: rgba(28, 28, 30, .86); border-radius: var(--radius);
  overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.result-list li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.result-list li, .result-count, .missing { animation: row-in .6s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.result:active { background: rgba(240, 207, 138, .12); }  /* 点下去马上有反应，不用等转场 */
.result { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 0; background: none;
  color: var(--ink-dark); font: 17px var(--font); text-align: left; cursor: pointer; }
.result:hover { background: rgba(255, 255, 255, .05); }
.result-no { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: #e9b95c; }
.result-name { font-family: var(--sys); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-tag { flex: none; padding: 2px 8px; border-radius: 6px; background: rgba(233, 185, 92, .16); color: #e9b95c; font-size: 12px; }
.result-go { flex: none; color: var(--link-dark); font-size: 14px; }
.not-me { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--link-dark); font: 15px var(--font); cursor: pointer; }
.loading { color: var(--muted-dark); text-align: center; font-size: 15px; }

.missing { padding: 26px 24px; background: rgba(28, 28, 30, .86); border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.missing h3 { font-size: 22px; }
.missing ul { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted-dark); font-size: 15px; }
.missing li + li { margin-top: 6px; }
.missing .best { margin: 18px 0 0; font-size: 16px; color: #d1d1d6; }
.missing .best strong { color: var(--ink-dark); }
.missing .btn { margin-top: 18px; }
.copied { font-family: var(--sys); margin: 10px 0 0; color: #e9b95c; font-size: 14px; }

/* 谢谢你：首屏下面接的一小段，接着就是王国全图 */
.intro { padding: 40px 22px 20px; text-align: center; background: var(--black); }
.intro .lead { margin-top: 0; }

/* ---- 王国全图：钉在屏幕上，往下滑就放大 ---- */
.map { position: relative; height: 340vh; background: var(--black); }
.map-sticky { position: sticky; top: 48px; height: calc(100vh - 48px); height: calc(100svh - 48px); overflow: hidden; }
/* 放大镜头：全图和近景两张画布，只用 transform / opacity 动（显卡做） */
.zoom-stage { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(ellipse 46% 40% at 50% 46%, rgba(233, 185, 92, .2), transparent 72%); }
.zs-over, .zs-near { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, opacity; pointer-events: none; }
.map-sticky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78) 60%, rgba(0, 0, 0, .9)); }
.map-captions { position: absolute; z-index: 1; left: 0; right: 0; bottom: max(8vh, 40px); padding: 0 22px; text-align: center; pointer-events: none; }
.cap { position: absolute; left: 22px; right: 22px; bottom: 0; margin: 0; opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease; font-size: clamp(24px, 4.4vw, 44px); font-weight: 700; line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .8); }
.cap.on { opacity: 1; transform: none; }
.cap-last p { margin: 0 0 18px; }
.cap-last .btn { pointer-events: auto; }
.cap-last.on .btn { pointer-events: auto; }

/* ---- 数字 ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats > div { position: relative; padding: 38px 14px 32px; border-radius: var(--radius); background: #111113; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
/* 像股票一样：右上角「▲ 涨了多少」（国内习惯红涨），数字每跳一下轻轻弹一下 */
.tick { position: absolute; top: 14px; right: 16px; font-style: normal; font-size: 13px; font-weight: 600; color: #ff5a5f;
  font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s; }
.tick.on { opacity: 1; }
.down { margin-left: 8px; font-style: normal; font-size: 14px; font-weight: 600; color: #30d158; font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .4s; }
.down.on { opacity: 1; } /* 国内习惯绿跌：离 10 万的差距在变小 */
.bump { animation: bump .45s ease-out; }
@keyframes bump { 0% { transform: translateY(0); } 35% { transform: translateY(-4px); filter: brightness(1.25); } 100% { transform: none; } }
.stats strong { display: block; font-size: clamp(40px, 6vw, 64px); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats span { display: block; margin-top: 10px; color: var(--ink-dark); font-size: 17px; font-weight: 600; }
.stats em { display: block; margin-top: 6px; color: var(--muted-dark); font-size: 13px; font-style: normal; }
.goal { max-width: 680px; margin: 44px auto 0; }
.goal p { margin: 0 0 14px; color: var(--muted-dark); font-size: 17px; }
.goal b { color: var(--ink-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.goal-bar { height: 8px; border-radius: 8px; background: #1c1c1e; overflow: hidden; }
.goal-bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--gold); transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }

/* 首屏：国家图书馆收藏认证条（只用文字，不用图书馆的标志） */
/* 收藏认证：面板下面三行，小字 / 馆名 / 金色英文 */
.seal { font-family: "Kingdom Serif", var(--font);
  display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 16px; color: inherit;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.seal:hover { text-decoration: none; }
.seal-small { color: rgba(245, 245, 247, .62); font-size: 12px; letter-spacing: .12em; }
.seal-big { color: #f5f5f7; font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.seal-en { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.seal:hover .seal-big { color: #fff; }

/* ---- 白 / 浅灰内容区 ---- */
/* 下面几段也是黑金：在这里把白底用的颜色换成黑底的，卡片、文字跟着变 */
.band { --ink: #f5f5f7; --muted: #a1a1a6; --white: #141416; --gray: #141416; --link: #e9c27a;
  padding: clamp(100px, 13vw, 160px) 22px; text-align: center; color: var(--ink); }
.band.light { background: var(--black); }
.band.gray { background: var(--night-2); }
.band-inner { max-width: 1024px; margin: 0 auto; }
.band a { color: var(--link); }
.band .btn { color: var(--button-ink); }
.band .btn.ghost { color: var(--link-dark); box-shadow: inset 0 0 0 1.5px rgba(233, 194, 122, .7); }
.band .btn.ghost:hover { background: rgba(233, 194, 122, .08); }

.issues { display: grid; gap: 16px; max-width: 860px; margin: 60px auto 0; text-align: left; }
.issue { display: grid; grid-template-columns: 210px 1fr; gap: 36px; align-items: center; padding: 30px; background: var(--gray); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.issue img { width: 100%; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.issue-tag { margin: 0 0 6px; color: #e9b95c; font-size: 14px; font-weight: 600; }
.issue h3 { font-size: 30px; }
.issue p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.issue-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pdf { display: inline-block; margin-top: 14px; font-size: 15px; }
.more { display: flex; justify-content: center; gap: 28px; margin-top: 26px; font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 60px 0 0; padding: 0; list-style: none; text-align: left; }
.steps li { padding: 32px 28px; background: var(--white); border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.step-no { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border-radius: 50%;
  background: var(--gold); color: #2a1708; font-weight: 700; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.welcome { margin: 64px 0 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.4; font-weight: 700; letter-spacing: .04em; }

.king-lead { max-width: 680px; margin: 28px auto 0; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.35; font-weight: 600; color: var(--ink); }
.king-text { max-width: 640px; margin: 40px auto 0; color: var(--muted); font-size: 19px; line-height: 1.75; text-align: left; }
.king-text p { margin: 0 0 20px; }

/* 王国的法律依据：讲完开王国，紧接着亮出依据 */
.charter { max-width: 640px; margin: 48px auto 0; padding: 32px 28px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(180deg, rgba(233, 185, 92, .1), rgba(233, 185, 92, .03));
  box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .35); }
.charter-label { margin: 0; color: #e9b95c; font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.charter-facts { margin: 18px 0 0; padding: 0; list-style: none; text-align: left; }
.charter-facts li { margin: 0; padding: 12px 0; color: var(--muted); font-size: 16px; line-height: 1.7; border-top: 1px solid rgba(233, 185, 92, .18); }
.charter-facts li:first-child { border-top: 0; padding-top: 4px; }
.charter-facts b { color: var(--ink); font-weight: 600; }
.charter-rule { margin: 22px 0 0; color: var(--ink); font-size: clamp(21px, 3vw, 26px); font-weight: 700; line-height: 1.45; text-wrap: balance; }
.charter figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }

/* 目前可以公开的情报（《进击的巨人》集尾那种）：还没定的条目涂黑，等国民在评论区玩出来再解密 */
.intel h3 { color: #e9b95c; letter-spacing: .04em; }
.intel dt { color: #e9b95c; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.redact { display: inline-block; width: 7.5em; height: .95em; margin: 0 .4em 0 .1em; vertical-align: -.1em; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, #2b2b2e 0 6px, #1c1c1e 6px 12px); box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .25); }
.sealed em { font-style: normal; font-size: 13px; color: #e9b95c; letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 600px) { .redact { width: 4.5em; } }
.intel-foot { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* 王国档案：像苹果的「技术规格」，左边项目名，右边内容，每行一条细线 */
.dossier { max-width: 640px; margin: 56px auto 0; text-align: left; }
.dossier h3 { padding-bottom: 14px; border-bottom: 1px solid rgba(233, 185, 92, .6); font-size: 24px; }
.dossier dl { margin: 0; }
.dossier dl div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.dossier dt { color: var(--muted); font-size: 15px; }
.dossier dd { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.dossier dd b { color: var(--ink); font-weight: 600; }
blockquote { max-width: 680px; margin: 64px auto 0; padding: 0; }
blockquote p { margin: 0; font-size: clamp(20px, 2.8vw, 26px); line-height: 1.55; font-weight: 600; }
.nb { display: inline-block; } /* 一块话不从中间断开：手机上整块换行 */
blockquote img { margin: 22px auto 0; height: 160px; width: auto; }
.band.king { padding-bottom: clamp(56px, 7vw, 88px); }  /* 签名是整页的落款，下面不用再空一大截 */

.footer { padding: 28px 22px 44px; background: var(--black); border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; color: var(--muted-dark); font-size: 12px; }
.footer p { margin: 4px 0; }
.footer strong { color: var(--ink-dark); }

/* ---- 找到你了：全屏，从全图飞到你那一粒 ---- */
.found { position: fixed; inset: 0; z-index: 50; background: var(--black); color: var(--ink-dark); overflow: hidden; }
.found[hidden] { display: none; }

/* 转场：点「找到我」后，照片慢慢往前推、压暗，王国从稍微放大的样子淡进来，像穿过歌剧院飞进吐司；返回时倒着来。
   只动 transform / opacity（显卡做）：模糊、亮度这类滤镜整屏每一帧都要重画，手机会卡 */
.found.preparing { opacity: 0; pointer-events: none; }
.found.entering { animation: found-in 1s cubic-bezier(.22, .61, .36, 1) .15s both; }
.found.exiting { animation: found-out .45s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes found-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes found-out { to { opacity: 0; transform: scale(.97); } }
.hero.leaving .hero-photo { animation: push-in 1.2s cubic-bezier(.45, 0, .25, 1) both; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--black); opacity: 0; }
.hero.leaving .hero-photo::before { animation: veil-in 1.2s ease both; }
.hero.leaving .hero-top, .hero.leaving .hero-bottom { animation: recede .7s cubic-bezier(.4, 0, .6, 1) both; }
.hero.returning .hero-photo { animation: pull-back 1s cubic-bezier(.22, .61, .36, 1) both; }
.hero.returning .hero-top, .hero.returning .hero-bottom { animation: row-in .8s cubic-bezier(.22, .61, .36, 1) .2s both; }
/* 转场时毛玻璃先关掉（底下的照片在动，一直重新模糊很费）；反正面板正在淡出 */
.hero.leaving .finder, .hero.returning .finder { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 15, 22, .82); }
@keyframes push-in { to { transform: scale(1.22); } }
@keyframes veil-in { to { opacity: .7; } }
@keyframes pull-back { from { transform: scale(1.12); } to { transform: none; } }
@keyframes recede { to { opacity: 0; transform: scale(.97); } }
.found::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .9) 38%, rgba(0, 0, 0, .97)); }
.found-skip, .found-back {
  position: absolute; top: max(14px, env(safe-area-inset-top)); z-index: 6; min-height: 38px; padding: 0 16px;
  border: 0; border-radius: 980px; background: rgba(255, 255, 255, .14); color: var(--ink-dark); font: 15px var(--font); cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.found-skip[hidden] { display: none; }
.found-back { left: 16px; }
.found-skip { right: 16px; }
.text-btn { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--link-dark); font: 16px var(--font); cursor: pointer; }
.found-status { font-family: "Kingdom Serif", var(--font); position: absolute; left: 0; right: 0; bottom: 12vh; z-index: 2; text-align: center; color: var(--muted-dark); font-size: 17px; transition: opacity .4s; }
.found-info { position: absolute; left: 0; right: 0; bottom: max(6vh, 28px); z-index: 2; padding: 0 22px; text-align: center;
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.found-info[hidden] { display: none; }
.found-title { font-family: "Kingdom Serif", var(--font); margin: 0; font-size: clamp(30px, 6vw, 52px); font-weight: 700; letter-spacing: .06em; }
.found-no { font-family: var(--digits); margin: 6px 0 0; font-size: clamp(34px, 7vw, 60px); font-weight: 700; font-variant-numeric: tabular-nums; }
.found-no span:first-child { font-size: .5em; margin-right: .2em; color: #e9b95c; }
.roll { display: inline-block; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.found-name { font-family: var(--sys); margin: 4px 0 0; font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.found-sub { font-family: "Kingdom Serif", var(--font); margin: 6px 0 18px; color: var(--muted-dark); font-size: 15px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.card-stage { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 18px; padding: max(70px, calc(env(safe-area-inset-top) + 54px)) 22px max(28px, env(safe-area-inset-bottom));
  overflow-y: auto; background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card-stage[hidden] { display: none; }
.card3d { position: relative; width: min(380px, 82vw, 52vh); aspect-ratio: 3 / 4; border-radius: 18px; cursor: grab; outline: 0;
  width: min(380px, 82vw, 52svh); flex-shrink: 0; margin-top: auto;
  perspective: 1200px;
  transform-style: preserve-3d; animation: flipin 1s cubic-bezier(.2, .8, .2, 1) both;
  touch-action: pan-y; } /* 横向拖动翻面，纵向仍能滚到下面的保存按钮 */
/* 正反两面：翻转只转 transform；圆角和裁切放在每一面上（外层裁切会把 3D 压平，背面就藏不住了） */
.card-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }  /* 角度由 app.js 一帧一帧算 */
/* 翻面时的光影：侧过去的一面压暗（shade），一道光从一边扫到另一边（light）；停下来时都看不见 */
.card-face .shade, .card-face .light { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.card-face .shade { background: #000; }
.card-face .light { background: linear-gradient(105deg, transparent 32%, rgba(255, 244, 214, .5) 50%, transparent 68%); }
/* 光晕和金边放在每一面上，跟着卡片一起转（放在外层会在翻面时留下一个空框） */
.card-face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(233, 185, 92, .18), 0 0 0 1px rgba(233, 185, 92, .25);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.card-face.back { transform: rotateY(180deg); }
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.card3d:focus-visible .card-face { box-shadow: 0 0 0 3px rgba(240, 207, 138, .8); }
.card-face .shine { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 200, .32) 46%, transparent 62%);
  transform: translateX(-120%); animation: shine 2.6s ease-in-out .9s infinite; }
@keyframes flipin { from { opacity: 0; transform: perspective(1000px) rotateY(-100deg) scale(.86); } to { opacity: 1; transform: perspective(1000px) rotateY(0) scale(1); } }
@keyframes shine { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
.card-actions { flex-shrink: 0; margin-bottom: auto; text-align: center; }
/* 卡片下面的提示：两行，一行一句，居中对齐 */
.card-hint { margin-top: 12px; line-height: 1.7; letter-spacing: .02em; }
.card-hint span { display: block; }
.card-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.card-buttons .btn.ghost { color: #e9b95c; box-shadow: inset 0 0 0 1.5px #e9b95c; }
.card-buttons .btn.ghost:hover { background: rgba(233, 185, 92, .1); }
.card-buttons .btn[hidden] { display: none; }

/* ---- 手机 ---- */
@media (max-width: 734px) {
  body { font-size: 16px; }
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav nav { gap: clamp(8px, 3vw, 18px); }
  .nav nav .wide { display: none; }   /* 手机顶栏用「图书馆」省空间 */
  .search { flex-direction: column; }
  .search input { text-align: center; }
  .search button { width: 100%; }

  .intro .lead { font-size: 17px; }
  /* 保留「你的名字，」后的换行；第二行完整放下「在澳大利亚国家图书馆。」。 */
  .library-title { font-size: clamp(20px, 7.5vw, 32px); line-height: 1.35; white-space: nowrap; text-wrap: nowrap; }
  .library-title .nb { display: inline; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { padding: 28px 12px 24px; }
  .issue { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .issue img { max-width: 210px; margin: 0 auto; }
  .issue-body { text-align: center; }
  .issue-actions { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .dossier dl div { grid-template-columns: 84px 1fr; padding: 16px 0; }
  blockquote p { font-size: 18px; }
  blockquote img { height: 128px; }
  .charter { padding: 26px 20px; }
  .charter-rule { font-size: 20px; }
  .dossier dd { font-size: 16px; }
  .king-text { font-size: 17px; }
  .more { flex-direction: column; gap: 10px; }
}

/* ---- 减弱动态效果 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo, .card3d, .card-face .shine, .found-info, .found, .hero-top, .hero-bottom, .result-list li, .result-count, .missing,
  .search.searching button::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .map { height: auto; }
  .map-sticky { position: relative; top: 0; height: 80vh; }
}

/* 查到的那一粒：完整的名字放大「弹出来」，压在近景上 */
.zs-pop {
  position: absolute; z-index: 1; width: max-content; max-width: min(86vw, 520px); padding: 10px 20px; border-radius: 16px;
  background: linear-gradient(135deg, #fbe7b0, #e9b95c 55%, #f6d999); color: #2a1708;
  font: 700 clamp(19px, 4.6vw, 26px)/1.25 "Kingdom Name", "Kingdom Serif", var(--font); text-align: center; overflow-wrap: anywhere; pointer-events: none;
  box-shadow: 0 0 0 2px #fff3cf, 0 14px 36px rgba(0, 0, 0, .55), 0 0 46px rgba(255, 214, 120, .55);
  opacity: 0; transform: translate(-50%, -50%) scale(.55);
  transition: opacity .25s ease, transform .5s cubic-bezier(.2, 1.5, .4, 1);
}
.zs-pop:empty { display: none; }
.zs-pop.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) { .zs-pop { transition: none; } }

/* 没查到：时间胶囊 */
.missing .best { margin-top: 12px; }
.capsule { margin-top: 20px; padding: 18px; border-radius: 18px; background: rgba(233, 185, 92, .08); box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .22); }
.capsule-title { margin: 0 0 12px; color: #f3d38c; font-size: 16px; font-weight: 600; }
.capsule-row { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.capsule-row:focus-within { box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .7); }
.capsule-input { flex: 1; min-width: 0; min-height: 46px; border: 0; outline: 0; background: transparent; color: var(--ink-dark); font: 16px var(--sys); }
textarea.capsule-input { padding: 12px 0; line-height: 1.6; resize: none; } /* 梦想不限字数：多行 */
.capsule-input::placeholder { color: #86868b; }
.text-btn.inline { display: inline-block; margin: 10px 0 14px; padding: 0; font-size: 15px; }
.capsule .btn { display: flex; width: 100%; }
.capsule-fine { margin: 12px 0 0; color: var(--muted-dark); font-size: 12px; line-height: 1.6; }
.missing .why { margin-top: 16px; }

/* 第 N 期收录截止倒计时（tools/site.py 的 NEXT_ISSUE_CUTOFF 填了日期才显示） */
.countdown { margin: 64px auto 0; }
.countdown[hidden] { display: none; }
.countdown-label { margin: 0; color: var(--muted); font-size: 17px; }
.countdown-num { margin: 6px 0 0; font-size: clamp(64px, 12vw, 120px); font-weight: 700; line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; }
.countdown-num small { margin-left: .12em; font-size: .3em; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.countdown-hint { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ---- 每页顶栏亮当前这一页 ---- */
.nav nav a[aria-current="page"] { opacity: 1; color: #e9c27a; }
@media (max-width: 440px) { .brand-name { display: none; } } /* 手机上只留可返回首页的吐司图标 */
.page-top { padding-top: clamp(72px, 10vw, 120px); }
/* 王国页顶上的跳转：全图 · 大事记 · 国情，点一下滑到那一章 */
.jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.jump a { padding: 7px 18px; border-radius: 999px; color: #f3d38c; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .45); }
.jump a:hover { text-decoration: none; background: rgba(233, 185, 92, .1); }
/* 王国国情：先是王国的数字（粉丝、国民、期数、离 10 万还差多少），下面接粉丝画像 */
.census-numbers { margin: 56px 0 0; }
.census-numbers + .lead { margin-top: 72px; }

/* 首页：逛逛王国，四张卡片通到另外四页 */
.tour { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 56px 0 0; text-align: left; }
.band a.tour-card { display: block; padding: 28px; border-radius: var(--radius); background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: box-shadow .2s ease; }
.band a.tour-card.wide { grid-column: 1 / -1; } /* 五张卡片：吐司殿这张横着占一整行 */
.band a.tour-card:hover { text-decoration: none; box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .6); }
.tour-title { display: block; font-size: 20px; font-weight: 600; }
.tour-title::after { content: " ›"; color: #e9b95c; }
.tour-text { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

/* 倒计时的时分秒：平时是天数下面一行小字，每秒跳；最后 7 天放大成秒表 */
.countdown-clock { margin: 10px 0 0; color: var(--ink); font-family: var(--digits); font-size: clamp(22px, 3.6vw, 32px); font-weight: 700;
  letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.countdown-clock[hidden] { display: none; }
.countdown.final .countdown-num { font-size: clamp(48px, 8vw, 84px); }
.countdown.final .countdown-clock { font-size: clamp(44px, 9vw, 92px); letter-spacing: .02em;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 王国大事记：左边日期，右边事件；查过编号的人，自己来的那一条亮起来 */
.timeline { max-width: 680px; margin: 56px auto 0; padding: 0; list-style: none; text-align: left; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0 22px 14px; border-top: 1px solid rgba(255, 255, 255, .1);
  border-left: 2px solid transparent; }
.tl-item p { margin: 0; }
.tl-date { color: #e9b95c; font-family: var(--digits); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tl-title { color: var(--ink); font-size: 18px; font-weight: 600; }
.tl-text { margin-top: 6px !important; color: var(--muted); font-size: 15px; }
.tl-me:empty { display: none; }
.tl-item.me { border-left-color: #e9b95c; background: linear-gradient(90deg, rgba(233, 185, 92, .1), transparent 70%); }
.tl-item.me .tl-me { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #2a1708;
  font-size: 13px; font-weight: 700; }
.tl-next { opacity: .6; }
.timeline-foot { margin: 28px 0 0; font-size: 15px; }
.timeline-foot[hidden] { display: none; }

/* 王国国情：粉丝画像，每一项一张卡片，条从左往右涨出来（宽度由 app.js 按 data-progress 填） */
.census { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; margin: 56px auto 0; text-align: left; }
.census-card { padding: 26px 28px; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.census-title { margin: 0 0 14px; color: var(--ink); font-size: 18px; font-weight: 600; }
.census-row { display: grid; grid-template-columns: 5.6em 1fr 3em; gap: 12px; align-items: center; margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.census-bar { height: 8px; border-radius: 8px; background: #1c1c1e; overflow: hidden; }
.census-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--gold); transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.census-pct { color: var(--ink); font-family: var(--digits); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.census-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }

/* 梦想（方案 A）：大数字（粉丝数）+ 哪天一起打开；梦想做成引号卡片，每次随机 12 张，点一张单独放大（匿名；粉丝打的字用手机自带字体） */
.vault { margin: 56px auto 0; }
.vault-big { margin: 0; font: 700 clamp(84px, 14vw, 168px)/1 var(--digits); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vault-sub { margin: 14px 0 0; color: var(--ink); font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; line-height: 1.5; }
.vault-open { display: flex; justify-content: center; gap: clamp(36px, 8vw, 88px); max-width: 560px; margin: 40px auto 0; padding-top: 26px;
  border-top: 1px solid rgba(233, 185, 92, .35); }
.vault-open b { display: block; color: var(--ink); font: 700 clamp(30px, 4.4vw, 44px)/1.1 var(--digits); font-variant-numeric: tabular-nums; }
.vault-open span { color: var(--muted); font-size: 14px; }
.dream-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 64px 0 0; padding: 0; list-style: none; text-align: left; }
.dream-wall button { display: block; width: 100%; height: 100%; margin: 0; padding: 18px 20px 20px; border: 0; border-radius: 20px; cursor: pointer;
  background: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); color: #f3e3bd; text-align: left;
  font: 600 18px/1.5 var(--sys); transition: box-shadow .2s ease, transform .2s ease; }
.dream-wall button::before { content: "“"; display: block; height: 24px; color: #e9b95c; font: 700 40px/1 var(--serif); }
.dream-snip { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } /* 长的梦想折叠成四行，点开看全文 */
.dream-wall button:hover { box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .6); }
.dream-wall button:active { transform: scale(.98); }
.dream-by { display: block; margin-top: 10px; color: var(--muted); font: 400 12px/1.4 var(--sys); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dream-more { margin: 28px 0 0; }
.dream-join { max-width: 560px; margin: 36px auto 0; color: var(--muted); font-size: 15px; }
/* 许个愿（梦想页）：写一句、复制到抖音；收录以后看它在吐司殿烤到哪一步 */
.wish-box { max-width: 520px; margin: 56px auto 0; padding: 22px; text-align: left; }
.wish-box .capsule-title { font-size: 18px; }
.wish-lead { margin: 0 0 14px; color: #d1d1d6; font-size: 15px; line-height: 1.7; }
.wish-slip { margin: 0; padding: 14px 16px; border-radius: 14px; background: #fbf3df; color: #4a2a10; font: 600 18px/1.6 var(--sys); word-break: break-word; }
.wish-by { margin: 8px 0 0; color: var(--muted-dark); font-size: 13px; text-align: right; }
.wish-steps { margin: 16px 0 12px; padding-left: 1.3em; color: #d1d1d6; font-size: 14px; line-height: 1.7; }
.wish-copy { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .35);
  color: var(--ink-dark); font: 16px/1.6 var(--sys); user-select: all; -webkit-user-select: all; word-break: break-word; }
.wish-state { margin: 16px 0 6px; color: #d1d1d6; font-size: 15px; font-weight: 600; }
.wish-go { display: inline-block; margin-right: 18px; color: var(--link-dark); font-size: 15px; }
.wish-box .text-btn.inline { margin-right: 14px; }

/* 点开的那一个梦想：像一封信，铺满屏幕中间 */
.dream-open { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 7, 12, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: dream-in .3s ease; }
.dream-open[hidden] { display: none; }
.dream-letter { width: min(520px, 100%); max-height: 88vh; overflow-y: auto; padding: 36px 32px 28px; border-radius: 28px; text-align: center;
  background: linear-gradient(180deg, #17181d, #101116); box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .4), 0 30px 80px rgba(0, 0, 0, .6); }
.dream-title { margin: 0 0 10px; font: 700 15px var(--serif); letter-spacing: .3em; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dream-title:empty { display: none; }
.dream-who { margin: 18px 0 0; color: #e9c27a; font: 600 15px var(--sys); }
.dream-quote { margin: 0; height: 44px; color: #e9b95c; font: 700 72px/1 var(--serif); }
.dream-text { margin: 12px 0 0; color: #f7e9c6; font: 600 clamp(24px, 5.4vw, 32px)/1.45 var(--sys); overflow-wrap: anywhere; }
.dream-text.long { font-size: clamp(18px, 4.2vw, 22px); line-height: 1.7; text-align: left; } /* 写得长的，字小一点、靠左排 */
.dream-meta { margin: 22px 0 0; color: var(--muted-dark); font-size: 14px; line-height: 1.8; }
.dream-letter .text-btn { margin-top: 14px; }
@keyframes dream-in { from { opacity: 0; } to { opacity: 1; } }

/* 404：王国的荒地 */
.lost { min-height: 70vh; }
.lost-back { margin: 36px 0 0; }

@media (max-width: 734px) {
  .tour, .census { grid-template-columns: 1fr; }
  .dream-wall { grid-template-columns: repeat(2, 1fr); gap: 10px; }   /* 手机上一行两张 */
  .map { height: 250vh; }   /* 手机上全图的放大动画少滑几下 */
  .dream-wall button { padding: 14px 14px 16px; border-radius: 16px; font-size: 15px; }
  .dream-wall button::before { height: 20px; font-size: 32px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0 18px 12px; }
  .census-card { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .census-bar i { transition: none; }
  .dream-open { animation: none; }
  .map { height: auto; }   /* 上面手机那条规则在后面，这里再说一遍：不播动画就不用留滚动的长度 */
}

/* 「找到你了」：还没写过梦想的国民，提醒一句写了国民卡上就有称号 */
.found-hint { margin: 10px auto 0; max-width: 300px; color: rgba(245, 245, 247, .7); font-size: 13px; }
.found-hint[hidden] { display: none; }

/* 国民星图：没有国界，只有星星。暗的是还没人点亮的城市，亮的是有国民的城市 */
.starmap { max-width: 720px; margin: 48px auto 0; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #1a2142 0%, #0d1124 60%, #090c18 100%); box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .18); }
.starmap-svg { display: block; width: 100%; height: auto; }
.star-dim circle { fill: #7a83ab; opacity: .6; }
.star-king circle { fill: #e9b95c; }
.star-king text { fill: #c9b07a; font: 600 11px var(--sys); }
.star { cursor: pointer; outline: none; }
.star .core { fill: #fff1c8; }
.star .glow { transform-box: fill-box; transform-origin: center; animation: star-breathe 3.2s ease-in-out infinite; }
.star text { fill: #e9d7ad; font: 500 11px var(--sys); paint-order: stroke; stroke: #0d1124; stroke-width: 3px; }
.star:hover .core, .star:focus-visible .core { fill: #fff6d8; }
.star:hover .glow, .star:focus-visible .glow { animation: none; opacity: 1; transform: scale(1.25); }
@keyframes star-breathe { 0%, 100% { opacity: .65; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.star-sum { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.star-abroad { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 18px auto 0; max-width: 720px; }
.star-abroad[hidden], .star-city[hidden] { display: none; }
.star-abroad-title { color: var(--muted); font-size: 13px; margin-right: 4px; }
.chip-btn { border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; background: var(--white); color: #f3e3bd;
  box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .35); font: 600 14px var(--sys); }
.chip-btn:hover { box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .8); }
.star-city { max-width: 720px; margin: 28px auto 0; text-align: left; }
.star-city h3 { margin: 0 0 14px; color: #f3e3bd; font: 700 20px var(--sys); text-align: center; }
.star-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.star-posts li { padding: 16px 18px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.star-text { margin: 0; color: #f3e3bd; font: 600 16px/1.6 var(--sys); overflow-wrap: anywhere; }
.star-text.quiet { color: var(--muted); font-weight: 400; }
.star-by { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.star-join { max-width: 560px; margin: 40px auto 0; color: var(--muted); font-size: 15px; }
.star-join b { color: #f3e3bd; }
.star-note { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .star-posts { grid-template-columns: 1fr; } .starmap { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .star .glow { animation: none; } }
.star-legend { margin: 8px auto 0; max-width: 560px; color: var(--muted); font-size: 13px; }
.star-pick { max-width: 560px; margin: 26px auto 0; }
.star-pick-title { margin: 0 0 12px; color: #f3e3bd; font: 600 17px var(--sys); }
.star-pick-row { display: flex; gap: 10px; justify-content: center; }
.star-input { flex: 1 1 200px; max-width: 300px; min-width: 0; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(233, 185, 92, .35); color: #f3e3bd; font: 500 16px var(--sys); }
.star-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px rgba(233, 185, 92, .9); }
.star .core { transition: fill .2s; }
.star.mine .core { fill: #ffffff; }
.star.mine text { fill: #ffe3a1; font-weight: 700; }
.chip-btn.mine { box-shadow: inset 0 0 0 1.5px #e9b95c; }
.center { text-align: center; }
.star-city .btn { margin-top: 14px; }
.wish-slip, .wish-copy { white-space: pre-wrap; }
