/* ==========================================================================
   知识卡、天体星图与照片查看（首页、图鉴、结算与预览页共用）
   ========================================================================== */

/* 太阳系星图 ------------------------------------------------------------- */
.solar-system {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 22px 20px 20px;
}
.solar-system::before {
  /* 一条穿过各行星的轨道弧线 */
  content: "";
  position: absolute;
  left: 7%;
  right: -30%;
  top: 38px;
  height: 180px;
  border-top: 1.5px dashed rgba(246, 217, 138, 0.22);
  border-radius: 50% 50% 0 0 / 60px 60px 0 0;
  pointer-events: none;
}
.sun-column {
  width: 11%;
  flex-shrink: 0;
}
.planet-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  flex: 1;
  gap: 4px;
}
.planet-stop {
  position: relative;
  text-align: center;
}
.solar-body {
  position: relative;
  display: block;
  width: 100%;
  padding: 6px 2px 8px;
  border-radius: var(--r-md);
  text-align: center;
  transition:
    background var(--t-fast),
    transform var(--t-med) var(--ease-out);
}
.solar-body:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}
.solar-body svg {
  width: 100%;
  height: auto;
  min-height: 45px;
  opacity: 0.62;
  filter: saturate(0.55) brightness(0.85);
  transition:
    opacity var(--t-med),
    filter var(--t-med);
}
.solar-body.lit svg {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(246, 217, 138, 0.38));
}
.solar-body > span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(3, 6, 28, 0.9);
}
.solar-body > small {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  white-space: nowrap;
}
.solar-body.lit > span::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 3px;
  vertical-align: 1px;
  background: var(--moon);
  -webkit-mask: var(--sparkle) center / contain no-repeat;
  mask: var(--sparkle) center / contain no-repeat;
}
/* 首页星图压缩了真实大小关系，但保持标签对齐 */
.home-solar .solar-body > svg {
  transform: scale(var(--body-scale, 1));
  transform-origin: center;
}
.home-solar [data-body="mercury"] { --body-scale: 0.34; }
.home-solar [data-body="venus"] { --body-scale: 0.52; }
.home-solar [data-body="earth"] { --body-scale: 0.54; }
.home-solar [data-body="mars"] { --body-scale: 0.42; }
.home-solar [data-body="jupiter"] { --body-scale: 0.98; }
.home-solar [data-body="saturn"] { --body-scale: 0.95; }
.home-solar [data-body="uranus"] { --body-scale: 0.74; }
.home-solar [data-body="neptune"] { --body-scale: 0.71; }
.home-solar [data-body="moon"] { --body-scale: 0.66; }
.moon-inset {
  margin-top: 6px;
}
.moon-inset .solar-body svg {
  height: 38px;
  min-height: 0;
}
.moon-inset .solar-body > span {
  font-size: var(--fs-xs);
}
.solar-body .generated-planet {
  opacity: 0.9;
  filter: saturate(0.7) brightness(0.9);
}
.solar-body.lit .generated-planet {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(246, 217, 138, 0.4));
}

/* 天体详情弹窗 ----------------------------------------------------------- */
.body-detail-art {
  height: 150px;
  margin: -4px 0 8px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(246, 217, 138, 0.14), transparent 62%);
}
.body-detail-art > svg {
  width: 190px;
  height: 100%;
}
.body-detail-art + p {
  text-align: center;
  margin: 0 0 14px;
}
.body-levels {
  display: grid;
  gap: 8px;
}
.body-levels > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--r-md);
  background: rgba(10, 16, 52, 0.4);
  font-size: var(--fs-md);
  font-weight: 700;
}
.mini-level {
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: 12px;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  background: var(--night-600);
  border: 1px solid var(--line);
}
.mini-level.passed {
  color: var(--leaf-ink);
  background: var(--leaf);
  border-color: transparent;
}
.mini-level:disabled {
  opacity: 0.45;
}
.earth-moon-art {
  position: relative;
  width: 100%;
  height: 100%;
}
.earth-moon-art > svg {
  width: 85%;
  height: 100%;
}
.earth-moon-art > span {
  position: absolute;
  width: 40%;
  right: 0;
  bottom: 0;
}
.earth-moon-art > span > svg {
  width: 100%;
}

/* 知识卡 ----------------------------------------------------------------- */
.knowledge-card {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: var(--r-lg);
  background: var(--grain) 0 0 / 360px, var(--paper);
  border: 1px solid var(--line);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: left;
  color: var(--ink);
}
.card-heading {
  display: grid;
  gap: 10px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-kind.explore {
  color: var(--moon-ink);
  background: var(--moon);
  border-color: transparent;
}
.card-heading > strong {
  display: block;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--moon-bright);
}
.knowledge-card > p {
  margin: 16px 0 0;
  font-size: var(--fs-lg);
  line-height: 1.9;
  color: var(--ink);
}
.card-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(8, 12, 42, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.card-figure > svg {
  max-height: 160px;
  max-width: 100%;
}
.card-figure.photo-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 10px;
}
.knowledge-photo {
  min-width: 0;
  margin: 0;
  text-align: center;
}
.knowledge-photo .photo-original {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--night-950);
}
.knowledge-photo button.photo-original {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}
.knowledge-photo button.photo-original::after {
  /* 放大镜提示：图片可点开大图 */
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff6e2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='M15 15l4.5 4.5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 20px no-repeat,
    rgba(11, 18, 54, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  opacity: 0.85;
  transition:
    opacity var(--t-fast),
    transform var(--t-fast);
}
.knowledge-photo button.photo-original:hover::after {
  opacity: 1;
  transform: scale(1.08);
}
.knowledge-photo img {
  display: block;
  width: 100%;
  height: clamp(190px, 22vw, 300px);
  object-fit: contain;
  transition: transform var(--t-slow) var(--ease-out);
}
.knowledge-photo button.photo-original:hover img {
  transform: scale(1.02);
}
.knowledge-photo figcaption {
  display: grid;
  gap: 4px;
  padding: 10px 4px 2px;
  line-height: 1.5;
}
.knowledge-photo figcaption strong {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}
.photo-mission {
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.photo-text-button {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-soft);
  cursor: zoom-in;
}
.knowledge-photo button:focus-visible,
.photo-text-button:focus-visible {
  outline: 3px solid var(--moon);
  outline-offset: 3px;
}
.knowledge-illustration > svg.learning-diagram {
  width: 100%;
  max-height: 300px;
}
.knowledge-illustration > svg.galaxy-diagram {
  max-height: 380px;
}
.galaxy-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 10px;
}
.relay-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
  margin-top: 16px;
}
.relay-photos .knowledge-photo img {
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}
.relay-figure .knowledge-illustration {
  min-height: 0;
  margin-top: 12px;
}
.figure-object {
  flex: 1;
  min-width: 0;
  max-width: 160px;
  text-align: center;
}
.figure-object > svg,
.figure-object > .earth-moon-art {
  width: 100%;
  height: 100px;
}
.figure-object > span {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink-soft);
}
/* 名字下面的第二行说明（“最热的是金星”那张图） */
.figure-object > span small {
  display: block;
  font: inherit;
}
.planet-order {
  display: flex;
  width: 100%;
  gap: 2px;
  container-type: inline-size;
}
.planet-order > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.planet-order svg {
  width: 100%;
  height: auto;
  opacity: 0.5;
}
.planet-order span {
  font-size: var(--fs-xs);
  white-space: nowrap;
  color: var(--ink-mute);
}
/* 序号和名字之间空一点（竖着写时空在下面） */
.planet-order .order-no {
  margin-inline-end: 0.3em;
}
/* 名字比行星宽：单双数错开成两行，窄卡片上也不会互相压住；卡片够宽时排回一行 */
.planet-order > div:nth-child(even) span {
  margin-top: 1.5em;
}
@container (min-width: 440px) {
  .planet-order > div:nth-child(even) span {
    margin-top: 0;
  }
}
/* 图很窄时（手机横放时的知识卡）：名字竖着写在各自的行星下面，不再错开成两行，怎么窄都不会互相压住；
   只有这张卡讲的那颗行星带序号 */
@container (max-width: 250px) {
  .planet-order span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0;
    line-height: 1.15;
  }
  .planet-order > div:nth-child(even) span {
    margin-top: 0;
  }
  .planet-order > div:not(.highlight) .order-no {
    display: none;
  }
}
/* 再窄（小手机横放时的结算卡片），八个名字挨在一起分不清：只写这张卡讲的那颗 */
@container (max-width: 130px) {
  .planet-order > div:not(.highlight) > span {
    visibility: hidden;
  }
}
.planet-order .highlight svg {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(246, 217, 138, 0.55));
}
.planet-order .highlight span {
  font-weight: 800;
  color: var(--moon-bright);
}
.tilt-diagram {
  position: relative;
  width: 200px;
  text-align: center;
}
.tilt-diagram > svg {
  width: 170px;
  height: 115px;
}
.tilt-diagram > i {
  position: absolute;
  top: 55px;
  left: 10px;
  width: 180px;
  border-top: 1.5px dashed var(--moon);
  transform: rotate(-8deg);
}
.tilt-diagram > span {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-soft);
}

/* 星小兔讲解：暖白纸对话框 ---------------------------------------------- */
.bunny-lesson {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0 0;
}
.bunny-lesson-art {
  flex: 0 0 clamp(70px, 8.5vw, 104px);
  filter: drop-shadow(0 8px 12px rgba(3, 6, 28, 0.45));
}
.bunny-speech {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 20px 20px 20px 6px;
  background: var(--grain) 0 0 / 300px, #fff6e2;
  color: #26305e;
  box-shadow: 0 10px 22px -12px rgba(3, 6, 28, 0.8);
}
.bunny-speech::before {
  content: "";
  position: absolute;
  left: -9px;
  bottom: 12px;
  width: 18px;
  height: 18px;
  background: #fff6e2;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 0 4px;
}
.bunny-speech > p {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.85;
  color: #26305e;
}
dialog .modal-bunny {
  margin: 0 0 14px;
}

/* 听一听：播放这张卡录好的讲解；播放中再点一下就停 ---------------------- */
.voice-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  margin-top: 12px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(246, 217, 138, 0.1);
  color: var(--moon-bright);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition:
    background var(--t-med) var(--ease-out),
    color var(--t-med) var(--ease-out);
}
.voice-button svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.voice-button.playing {
  border-color: transparent;
  background: var(--moon);
  color: var(--moon-ink);
}
.voice-button.playing svg {
  animation: voice-beat 1s ease-in-out infinite;
}
@keyframes voice-beat {
  50% {
    transform: scale(1.2);
  }
}
/* On the guide's paper speech bubble the button is drawn in ink. */
.bunny-speech .voice-button {
  border-color: rgba(38, 48, 94, 0.3);
  background: rgba(38, 48, 94, 0.06);
  color: #26305e;
}
.bunny-speech .voice-button.playing {
  background: #26305e;
  color: #fff6e2;
}
/* Voice switched off, or all sound muted: the text stays, the buttons go. */
.voice-off .voice-button {
  display: none;
}
/* A part of a card that has no recording of its present text. */
.voice-button[hidden] {
  display: none;
}

/* 分页：一张卡的四段话（简介、查看更多、小故事、冷知识），点哪一段就换成哪一段 -------- */
.card-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.card-parts button {
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(8, 12, 42, 0.35);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.card-parts button:hover {
  color: var(--ink);
  background: rgba(8, 12, 42, 0.6);
}
.card-parts button.active {
  border-color: transparent;
  background: var(--moon);
  color: var(--moon-ink);
}
.knowledge-card > .card-parts + .card-text {
  margin-top: 12px;
}
/* the words of the part that was just chosen come up */
.card-text.turn {
  animation: card-text-in 0.3s var(--ease-out) backwards;
}
@keyframes card-text-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
/* 查看更多：过关知识卡上通到另外三段的入口，画在星小兔的纸色气泡里 */
.more-button {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin: 12px 0 0 8px;
  padding: 0 18px;
  border: 1px solid rgba(38, 48, 94, 0.3);
  border-radius: var(--r-pill);
  background: #26305e;
  color: #fff6e2;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}
.more-button:hover {
  background: #34407a;
}
.voice-off .more-button,
p + .more-button {
  margin-left: 0;
}
/* 知识卡弹窗（带分页）：宽窗口里左图右文；留出四行字的地方，换页时弹窗不变高 */
body:not(.phone) #modal[data-kind="card"] {
  width: min(940px, calc(100% - 32px));
}
body:not(.phone) #modal[data-kind="card"] .knowledge-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0 26px;
  align-items: start;
}
body:not(.phone) #modal[data-kind="card"] .knowledge-card > .card-figure,
body:not(.phone) #modal[data-kind="card"] .knowledge-card > .relay-figure {
  grid-area: 1 / 1 / 5 / 2;
  align-self: center;
  margin-top: 0;
}
body:not(.phone) #modal[data-kind="card"] .knowledge-card > .card-heading {
  grid-area: 1 / 2;
}
body:not(.phone) #modal[data-kind="card"] .knowledge-card > .card-parts {
  grid-area: 2 / 2;
}
/* the guide beside her bubble; the bubble has room for four rows of words */
body:not(.phone) #modal[data-kind="card"] .knowledge-card > .bunny-lesson {
  grid-area: 3 / 2;
  margin-top: 14px;
}
body:not(.phone) #modal[data-kind="card"] .bunny-lesson-art {
  flex-basis: 72px;
}
body:not(.phone) #modal[data-kind="card"] .bunny-speech > .card-text {
  min-height: 7.4em;
}
body:not(.phone) #modal[data-kind="card"] .knowledge-card > .galaxy-credit {
  grid-area: 4 / 2;
  justify-self: end;
  align-self: end;
}
body:not(.phone) #modal[data-kind="card"] .relay-photos {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
}
body:not(.phone) #modal[data-kind="card"] .card-figure:not(.photo-figure) > svg {
  max-height: 240px;
}
.bunny-art {
  display: block;
  width: 100%;
  height: auto;
}

/* 未解锁知识卡：背面朝上的收藏卡 ---------------------------------------- */
.knowledge-card.locked {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 260px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(246, 217, 138, 0.09), transparent 58%),
    var(--grain) 0 0 / 360px,
    var(--paper-deep);
  border-style: dashed;
  border-color: rgba(214, 222, 255, 0.22);
  box-shadow: none;
}
.knowledge-card.locked > span {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
/* 第 5 关的星体是“地球加月亮”的组合图（一个 div，不是单个 svg），也要一样变淡、变灰、限定大小 */
.knowledge-card.locked > svg,
.knowledge-card.locked > .earth-moon-art {
  display: block;
  width: 120px;
  height: 110px;
  opacity: 0.28;
  filter: grayscale(0.6);
}
.knowledge-card.locked > svg.galaxy-diagram {
  width: min(100%, 220px);
  height: 220px;
}
/* 还没收藏的卡只露出一个剪影，不提前写出答案 */
.knowledge-card.locked > svg.galaxy-diagram text {
  display: none;
}
.knowledge-card.locked > strong {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink-soft);
}
.knowledge-card.locked > p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}
.knowledge-card.locked > p svg {
  width: 16px;
  height: 16px;
}
/* 没过关时结算页上的那张卡：还锁着，只有名字和一个淡淡的剪影，星小兔在下面叫他再试一次 */
.knowledge-card.retry-card {
  border-style: dashed;
  border-color: rgba(214, 222, 255, 0.22);
}
.retry-figure > svg,
.retry-figure > .earth-moon-art {
  flex: none;
  width: 140px;
  max-width: 100%;
  height: 120px;
  max-height: 100%;
  opacity: 0.28;
  filter: grayscale(0.6);
}
.retry-figure > svg.galaxy-diagram {
  width: min(100%, 220px);
  height: 150px;
}
.retry-figure > svg.galaxy-diagram text {
  display: none;
}
/* 星小兔那句话要折成两行时在逗号后面折，不留单独一个“吧。” */
.retry-card .bunny-speech .card-text {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 成长纪念页：全部通关后的一屏总结；“保存图片”把它存成一张图片（keepsake-image.mjs） -- */
.keepsake {
  text-align: center;
}
.keepsake-kicker {
  margin: -6px 0 12px;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--moon);
}
.keepsake-rows {
  /* 一行的高度，跟着屏幕高度走，矮屏手机上也尽量一屏放下。纪念章和每张图都直接用这个高度：
     写成“格子的 100%”时，图其实是按格子的宽度定大小的，一行三格时会比行高大一倍，上下叠在一起 */
  --row: clamp(32px, min(6dvh, calc(18.8dvh - 87px)), 58px);
  display: grid;
  gap: 4px;
  /* 一行只有三格，不拉满整个弹窗，免得星球之间空得太开 */
  max-width: 360px;
  margin-inline: auto;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(8, 12, 42, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
/* 每章一行：纪念章，后面是这一章每一关的收藏（现在每章三关），有几关就排几格 */
.keepsake-row {
  display: grid;
  grid-template-columns: 42px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.keepsake-badge svg {
  display: block;
  width: 40px;
  height: var(--row);
}
.keepsake-item {
  display: grid;
  place-items: center;
  height: var(--row);
}
.keepsake-item > svg {
  width: 100%;
  height: var(--row);
}
/* 地球加月亮占一个正方形：格子比行高宽，按格子宽度排的话月亮会变大、离开地球 */
.keepsake-item > .earth-moon-art {
  width: var(--row);
  height: var(--row);
}
.keepsake-item text {
  display: none;
}
/* 最后一格是银河系照片（黑底已在 knowledge-art.mjs 里变成透明）。太阳的标记和指引线在这么小的图上看不清，不画。 */
.keepsake-item.galaxy circle,
.keepsake-item.galaxy path {
  display: none;
}
.keepsake .missing {
  opacity: 0.25;
  filter: grayscale(1);
}
.keepsake-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 12px 0 2px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-soft);
}
.keepsake-stats strong {
  margin-right: 4px;
  font-family: var(--font-num);
  font-size: var(--fs-xl);
  color: var(--moon-bright);
}
.keepsake .bunny-lesson {
  margin-top: 8px;
  text-align: left;
}
.keepsake .bunny-speech {
  padding: 12px 16px;
}
.keepsake .bunny-speech > p {
  font-size: var(--fs-md);
  line-height: 1.7;
}
.keepsake-save {
  margin: 14px auto 0;
  min-width: 200px;
}

/* 大图查看 --------------------------------------------------------------- */
dialog.photo-viewer {
  width: min(1100px, 94vw);
  max-width: 94vw;
  max-height: 94dvh;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--night-900);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
dialog.photo-viewer::backdrop {
  background: rgba(4, 7, 26, 0.92);
}
.photo-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: var(--fs-md);
  font-weight: 700;
}
.photo-viewer-bar button {
  flex-shrink: 0;
  min-height: var(--tap);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--night-600);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}
.photo-viewer > img {
  display: block;
  width: 100%;
  max-height: calc(94dvh - 100px);
  object-fit: contain;
  border-radius: 12px;
}
/* A photograph on black is drawn without its black (photo-viewer.mjs); the drawing takes the picture's place. */
.photo-viewer > .photo-viewer-clear {
  display: block;
  width: 100%;
  max-height: calc(94dvh - 100px);
}
.photo-viewer > img[hidden] {
  display: none;
}

@media (max-width: 850px) {
  .card-heading > strong {
    font-size: 20px;
  }
  .knowledge-card {
    padding: 18px;
  }
  .card-figure {
    min-height: 120px;
  }
  .solar-body > small {
    display: none;
  }
}
@media (max-width: 600px) {
  .relay-photos {
    grid-template-columns: 1fr;
  }
  .knowledge-photo img {
    height: 220px;
  }
  .knowledge-card > p,
  .bunny-speech > p {
    font-size: var(--fs-md);
  }
  .solar-system {
    gap: 4px;
    padding: 16px 12px;
  }
  .solar-system::before {
    display: none;
  }
  .solar-body > span {
    font-size: var(--fs-xs);
  }
  .solar-body svg {
    min-height: 26px;
  }
  .moon-inset .solar-body svg {
    height: 26px;
  }
}
