:root {
  --paper: #eee8dc;
  --paper-deep: #d9d0c1;
  --ink: #363035;
  --muted: #8b8178;
  --accent: #d6432f;
  --dot: #302c2d;
  /* Aligned with `.region-cover-hit-inner` resize easing in focus split (≈340ms). */
  --book-card-fade-duration: 360ms;
  --book-card-fade-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --scale-eyebrow: 1;
  --scale-title: 1;
  --scale-lede: 1;
  --scale-card-loc-zh: 1;
  --scale-card-loc-en: 1;
  --scale-card-title-zh: 1;
  --scale-card-title-en: 1;
  --scale-card-meta: 1;
  --scale-card-summary: 1;
  /* Focus-split card only: prefer height ≥ width × ratio (vertical panel). */
  --book-card-portrait-min-ratio: 1.06;
  --intro-eyebrow-x: -8px;
  --intro-title-x: -8px;
  --intro-lede-x: -8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 252, 242, 0.82), transparent 34%),
    linear-gradient(145deg, var(--paper), #e8dfcf 52%, var(--paper-deep));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(69, 57, 48, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 57, 48, 0.05) 1px, transparent 1px);
  background-size: 100% 7px, 7px 100%;
  mix-blend-mode: multiply;
}

.page-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 680px;
  padding: clamp(28px, 5vw, 72px);
  isolation: isolate;
}

.intro {
  position: relative;
  z-index: 4;
  max-width: min(575px, 42.5vw);
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 860ms cubic-bezier(0.22, 1, 0.36, 1) 90ms,
    filter 860ms cubic-bezier(0.22, 1, 0.36, 1) 90ms,
    transform 860ms cubic-bezier(0.22, 1, 0.36, 1) 90ms,
    visibility 0s linear 0s;
}

.intro-copy-rise {
  display: block;
  width: 100%;
  animation: copy-rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.is-region-focus .intro {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-20px) scale(0.982);
  transition:
    opacity 720ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 720ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 720ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 820ms;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: calc(clamp(16px, 1.35vw, 24px) * var(--scale-eyebrow));
  font-weight: 700;
  letter-spacing: 0.12em;
  transform: translate(var(--intro-eyebrow-x, 0px), var(--intro-eyebrow-y, 0px));
  transition:
    opacity 640ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 640ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

h1 {
  max-width: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(clamp(54px, 6.6vw, 110px) * var(--scale-title));
  font-style: italic;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.075em;
  transform: translate(var(--intro-title-x, 0px), var(--intro-title-y, 0px));
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1) 40ms,
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1) 40ms,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1) 40ms;
}

.lede {
  max-width: none;
  margin: clamp(18px, 1.9vw, 26px) 0 0;
  color: rgba(54, 48, 53, 0.72);
  font-size: calc(clamp(14px, 0.95vw, 17px) * var(--scale-lede));
  line-height: 1.7;
  letter-spacing: 0.03em;
  transform: translate(var(--intro-lede-x, 0px), var(--intro-lede-y, 0px));
  white-space: nowrap;
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
    filter 680ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}

body.is-region-focus .eyebrow {
  opacity: 0;
  filter: blur(2px);
  transform: translate(var(--intro-eyebrow-x, 0px), calc(var(--intro-eyebrow-y, 0px) - 10px));
  transition-delay: 0ms;
}

body.is-region-focus h1 {
  opacity: 0;
  filter: blur(3px);
  transform: translate(var(--intro-title-x, 0px), calc(var(--intro-title-y, 0px) - 14px));
  transition-delay: 50ms;
}

body.is-region-focus .lede {
  opacity: 0;
  filter: blur(2px);
  transform: translate(var(--intro-lede-x, 0px), calc(var(--intro-lede-y, 0px) - 8px));
  transition-delay: 100ms;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.intro-keyword {
  margin: clamp(16px, 1.8vw, 24px) 0 0;
  width: fit-content;
  max-width: 100%;
  transform: translate(var(--intro-title-x, 0px), 0);
  /* Match `h1` motion so horizontal offset easing stays aligned with the main title. */
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1) 40ms,
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1) 40ms,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1) 40ms;
}

.intro-keyword-glass {
  --keyword-glass-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px clamp(18px, 2.4vw, 26px);
  cursor: text;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.52) 0%, rgba(236, 228, 214, 0.38) 48%, rgba(255, 253, 248, 0.44) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
  backdrop-filter: blur(18px) saturate(1.22);
  box-shadow:
    0 10px 36px rgba(30, 24, 20, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 -1px 0 rgba(51, 43, 39, 0.05) inset;
  transition:
    border-color 0.42s var(--keyword-glass-ease),
    box-shadow 0.48s var(--keyword-glass-ease),
    transform 0.55s var(--keyword-glass-ease),
    background 0.45s var(--keyword-glass-ease);
}

.intro-keyword-icon {
  display: none;
}

.intro-keyword-field {
  position: relative;
  display: grid;
  grid-template-columns: max-content;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.intro-keyword-width-measure {
  grid-area: 1 / 1;
  visibility: hidden;
  white-space: nowrap;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(13px, 0.92vw, 15px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.intro-keyword-glass:hover {
  border-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 12px 40px rgba(30, 24, 20, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 -1px 0 rgba(51, 43, 39, 0.05) inset;
}

.intro-keyword-glass:focus-within {
  border-color: rgba(214, 67, 47, 0.42);
  box-shadow:
    0 12px 44px rgba(30, 24, 20, 0.12),
    0 0 0 3px rgba(214, 67, 47, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 -1px 0 rgba(51, 43, 39, 0.05) inset;
  transform: translateY(-1px);
}

.intro-keyword-hint {
  grid-area: 1 / 1;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  padding: 0;
  pointer-events: none;
  color: rgba(54, 48, 53, 0.48);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(13px, 0.92vw, 15px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.35;
  white-space: nowrap;
  transition:
    opacity 0.48s var(--keyword-glass-ease) 0.06s,
    transform 0.52s var(--keyword-glass-ease) 0.04s,
    filter 0.45s var(--keyword-glass-ease);
}

.intro-keyword-glass:focus-within .intro-keyword-hint,
.intro-keyword-glass.has-value .intro-keyword-hint {
  opacity: 0;
  transform: translateY(5px) scale(0.985);
  filter: blur(3px);
  transition:
    opacity 0.36s var(--keyword-glass-ease),
    transform 0.42s var(--keyword-glass-ease),
    filter 0.32s var(--keyword-glass-ease);
}

.intro-keyword-input {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--accent);
  transition: color 0.3s var(--keyword-glass-ease);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.intro-keyword-input::-webkit-scrollbar {
  display: none;
}

.intro-keyword-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.intro-keyword-input-mirror {
  display: none;
}

.intro-keyword-clear {
  display: none;
}

body.is-region-focus .intro-keyword {
  opacity: 0;
  filter: blur(2px);
  transform: translate(var(--intro-title-x, 0px), -6px);
  transition-delay: 120ms;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro-keyword-glass,
  .intro-keyword-hint,
  .intro-keyword-input {
    transition-duration: 0.08s;
  }

  .intro-keyword-hint {
    transition-delay: 0s;
  }

  .intro-keyword-glass:focus-within {
    transform: none;
  }
}

.globe-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.globe-stage:active {
  cursor: grabbing;
}

.globe-focus-back {
  position: fixed;
  top: clamp(20px, 3.5vw, 48px);
  right: clamp(20px, 3.5vw, 48px);
  left: auto;
  z-index: 25;
  padding: 10px 18px;
  border: 1px solid rgba(51, 43, 39, 0.22);
  border-radius: 999px;
  background: rgba(244, 239, 229, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(30, 24, 20, 0.1);
  color: var(--ink);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-region-focus .globe-focus-back {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --book-card-fade-duration: 100ms;
  }
}

.globe-focus-back:hover {
  border-color: rgba(214, 67, 47, 0.45);
  color: var(--accent);
}

.globe-focus-back:focus-visible {
  outline: 2px solid rgba(214, 67, 47, 0.55);
  outline-offset: 3px;
}

.focus-cover-notice {
  position: fixed;
  left: clamp(16px, 3.5vw, 40px);
  right: auto;
  bottom: clamp(16px, 3.2vw, 40px);
  z-index: 26;
  box-sizing: border-box;
  max-width: min(520px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-focus-cover-notice-visible .focus-cover-notice {
  opacity: 0.7;
  transform: translateY(0);
}

.focus-cover-notice__zh,
.focus-cover-notice__en {
  margin: 0;
  color: #6e6e6e;
  font-family:
    "Source Han Sans SC",
    "Source Han Sans TC",
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.focus-cover-notice__zh {
  margin-bottom: 6px;
}

.focus-cover-notice__en {
  font-size: 10.5px;
  letter-spacing: 0.01em;
}

.region-cover-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.region-cover-layer.is-active {
  pointer-events: none;
}

.region-cover-hit {
  position: absolute;
  width: var(--cover-hit, 260px);
  height: var(--cover-hit, 260px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 180ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.region-cover-hit:focus-visible {
  outline: 2px solid rgba(214, 67, 47, 0.65);
  outline-offset: 4px;
}

.region-cover-hit-inner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cover-render-width, calc(116px * var(--cover-scale, 1)));
  height: var(--cover-render-height, calc(174px * var(--cover-scale, 1)));
  margin: 0;
  border-radius: 3px;
  border: 1px solid rgba(42, 36, 36, 0.35);
  background: rgba(250, 246, 238, 0.55);
  box-shadow:
    0 6px 18px rgba(30, 24, 20, 0.2),
    0 0 0 1px rgba(255, 252, 245, 0.4) inset;
  overflow: hidden;
  transition:
    width 340ms cubic-bezier(0.22, 1, 0.36, 1),
    height 340ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.2, 0.85, 0.2, 1),
    box-shadow 220ms ease;
  transform: translate(-50%, -50%);
}

.region-cover-hit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-cover-hit-inner--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(214, 67, 47, 0.16), rgba(244, 239, 229, 0.86)),
    rgba(250, 246, 238, 0.88);
  color: rgba(47, 41, 48, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.region-cover-hit--split-active .region-cover-hit-inner {
  margin: 0;
  transform: translate(-50%, -50%);
  box-shadow:
    0 18px 42px rgba(30, 24, 20, 0.2),
    0 0 0 1px rgba(255, 252, 245, 0.48) inset;
}

.region-cover-hit:not(.region-cover-hit--split-active):hover .region-cover-hit-inner,
.region-cover-hit:not(.region-cover-hit--split-active):focus-visible .region-cover-hit-inner {
  transform: translate(-50%, -50%) translateY(-2px) scale(1.06);
  box-shadow:
    0 10px 26px rgba(30, 24, 20, 0.22),
    0 0 0 1px rgba(255, 252, 245, 0.5) inset;
}

#globeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 71% 76%, transparent 0 30%, rgba(238, 232, 220, 0.18) 47%, rgba(238, 232, 220, 0.72) 75%),
    linear-gradient(90deg, rgba(238, 232, 220, 0.42), transparent 34%),
    linear-gradient(0deg, rgba(238, 232, 220, 0.22), transparent 28%);
  transition: background 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-region-focus .vignette {
  background:
    radial-gradient(circle at 50% 48%, transparent 0 26%, rgba(238, 232, 220, 0.12) 44%, rgba(238, 232, 220, 0.62) 78%),
    linear-gradient(90deg, rgba(238, 232, 220, 0.18), transparent 40%),
    linear-gradient(0deg, rgba(238, 232, 220, 0.12), transparent 32%);
}

/* Regional focus: soften rim vignette so canvas pins near the lower/side edges stay readable (all focus regions). */
body.is-region-focus[data-focus-region] .vignette {
  background:
    radial-gradient(circle at 52% 52%, transparent 0 34%, rgba(238, 232, 220, 0.06) 52%, rgba(238, 232, 220, 0.36) 82%),
    linear-gradient(90deg, rgba(238, 232, 220, 0.1), transparent 44%),
    linear-gradient(0deg, rgba(238, 232, 220, 0.06), transparent 38%);
}

.drag-hint {
  position: fixed;
  right: clamp(22px, 4vw, 64px);
  bottom: clamp(24px, 4.5vw, 70px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(54, 48, 53, 0.7);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
  transform: translateX(12px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-drag-hint-visible .drag-hint {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.drag-hint span {
  width: 42px;
  height: 1px;
  background: currentColor;
}

.book-card {
  position: fixed;
  z-index: 7;
  box-sizing: border-box;
  width: auto;
  min-width: min(280px, calc(100vw - 48px));
  max-width: min(760px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid rgba(51, 43, 39, 0.16);
  background: rgba(244, 239, 229, 0.93);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 34px rgba(30, 24, 20, 0.14);
  transform: translate(-50%, -112%);
  transition:
    opacity var(--book-card-fade-duration) var(--book-card-fade-ease),
    transform var(--book-card-fade-duration) var(--book-card-fade-ease);
}

.book-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -108%) scale(0.96);
}

/* Focus region: cover on left, detail card on right (`left` / width from JS). */
.book-card.book-card--focus-split {
  top: 50% !important;
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;
  transform: translate(0, -50%) !important;
  transition: opacity var(--book-card-fade-duration) var(--book-card-fade-ease);
}

.book-card.book-card--focus-split.is-hidden {
  transform: translate(0, -50%) !important;
}

.book-card.book-card--focus-mobile {
  z-index: 24;
  max-height: min(620px, calc(100dvh - 176px));
  overflow-y: auto;
  transform: translate(-50%, -100%);
  transition:
    left var(--book-card-fade-duration) var(--book-card-fade-ease),
    top var(--book-card-fade-duration) var(--book-card-fade-ease),
    opacity var(--book-card-fade-duration) var(--book-card-fade-ease),
    transform var(--book-card-fade-duration) var(--book-card-fade-ease);
}

.book-card.book-card--focus-mobile.is-hidden {
  transform: translate(-50%, -50%) scale(0.88);
}

.book-card-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(40, 34, 33, 0.62);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-card-close:hover {
  color: rgba(40, 34, 33, 0.88);
  background: rgba(51, 43, 39, 0.06);
}

.book-card-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.book-card-loc-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 28px;
  /* Reserve space for absolutely positioned `.book-card-close`. */
  padding-right: 40px;
}

.book-card-loc-wrap {
  margin: 0 0 12px;
}

.book-card-location {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.5;
}

.book-card-location-zh {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: calc(clamp(12.5px, 1.02vw, 15px) * var(--scale-card-loc-zh));
  letter-spacing: 0.05em;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.book-card-location-en {
  margin: 0;
  padding-right: 0;
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: calc(12.5px * var(--scale-card-loc-en));
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.04em;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.book-card-title {
  margin: 0;
  color: #2f2930;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

.book-card-title-zh {
  margin: 0 0 6px;
  font-style: normal;
  font-size: calc(26px * var(--scale-card-title-zh));
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.book-card-title-en {
  margin: 0 0 10px;
  color: rgba(47, 41, 48, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(18px * var(--scale-card-title-en));
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.book-card-title-en.is-empty {
  display: none;
}

/* Long paired titles: JS adds `.book-card--title-single-line` + raises width cap (see globe.js). */
.book-card.book-card--title-single-line .book-card-title-zh,
.book-card.book-card--title-single-line .book-card-title-en {
  white-space: nowrap;
  overflow-wrap: normal;
}

.book-card-meta {
  margin: 0 0 10px;
  color: rgba(53, 45, 43, 0.76);
  font-size: calc(13px * var(--scale-card-meta));
  letter-spacing: 0.03em;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: normal;
  max-width: 100%;
}

.book-card-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--accent);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.book-card-nav.is-hidden {
  display: none;
}

.book-card-nav-btn {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(214, 67, 47, 0.36);
  border-radius: 999px;
  background: rgba(214, 67, 47, 0.07);
  color: var(--accent);
  font-size: 18px;
  line-height: 16px;
  cursor: pointer;
}

.book-card-nav-btn:hover {
  background: rgba(214, 67, 47, 0.14);
}

.book-card-nav-count {
  min-width: 34px;
  text-align: center;
}

.book-card.book-card--tight .book-card-location-zh {
  font-size: calc(clamp(12px, 1vw, 14px) * var(--scale-card-loc-zh));
  letter-spacing: 0.045em;
}

.book-card.book-card--tight .book-card-location-en {
  font-size: calc(11.75px * var(--scale-card-loc-en));
  letter-spacing: 0.035em;
}

.book-card.book-card--tight .book-card-title-zh {
  font-size: calc(22px * var(--scale-card-title-zh));
}

.book-card.book-card--tight .book-card-title-en {
  font-size: calc(16px * var(--scale-card-title-en));
}

.book-card.book-card--tight .book-card-meta {
  font-size: calc(11.5px * var(--scale-card-meta));
  letter-spacing: 0.02em;
}

.book-card.book-card--tighter .book-card-location-zh {
  font-size: calc(clamp(11px, 0.95vw, 13px) * var(--scale-card-loc-zh));
  letter-spacing: 0.04em;
}

.book-card.book-card--tighter .book-card-location-en {
  font-size: calc(10.85px * var(--scale-card-loc-en));
  letter-spacing: 0.025em;
}

.book-card.book-card--tighter .book-card-title-zh {
  font-size: calc(19px * var(--scale-card-title-zh));
}

.book-card.book-card--tighter .book-card-title-en {
  font-size: calc(14.5px * var(--scale-card-title-en));
}

.book-card.book-card--tighter .book-card-meta {
  font-size: calc(10.5px * var(--scale-card-meta));
  letter-spacing: 0.015em;
}

.book-card-summary {
  margin: 0;
  color: rgba(43, 37, 34, 0.83);
  font-size: calc(14px * var(--scale-card-summary));
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

@keyframes copy-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    transition:
      opacity 80ms linear,
      filter 80ms linear,
      transform 80ms linear,
      visibility 0s linear 0s;
  }

  .intro-copy-rise {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body.is-region-focus .intro {
    transition:
      opacity 80ms linear,
      filter 80ms linear,
      transform 80ms linear,
      visibility 0s linear 80ms;
  }

  .intro .eyebrow,
  .intro h1,
  .intro .lede,
  .intro .intro-keyword,
  body.is-region-focus .eyebrow,
  body.is-region-focus h1,
  body.is-region-focus .lede,
  body.is-region-focus .intro-keyword {
    transition-duration: 80ms;
    transition-delay: 0ms;
  }

  .globe-focus-back,
  body.is-region-focus .globe-focus-back,
  .focus-cover-notice,
  body.is-focus-cover-notice-visible .focus-cover-notice,
  .drag-hint,
  body.is-drag-hint-visible .drag-hint {
    transition-duration: 80ms;
  }

  .vignette {
    transition-duration: 120ms;
  }
}

@media (max-width: 760px) {
  .page-shell {
    min-height: 620px;
    padding: 28px;
  }

  .intro {
    max-width: 92vw;
  }

  h1 {
    font-size: clamp(58px, 17vw, 104px);
  }

  .lede {
    max-width: 340px;
    margin-top: 20px;
  }

  .drag-hint {
    left: 28px;
    right: auto;
  }

  .book-card {
    min-width: min(260px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  .book-card.book-card--focus-mobile {
    width: calc(100vw - 32px);
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: min(560px, calc(100dvh - 232px));
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(30, 24, 20, 0.2);
    overscroll-behavior: contain;
  }

  body.is-region-focus .focus-cover-notice {
    left: 22px;
    bottom: 18px;
    max-width: calc(100vw - 44px);
  }

  body.is-focus-cover-notice-visible .focus-cover-notice {
    opacity: 0.62;
  }

  .focus-cover-notice__zh,
  .focus-cover-notice__en {
    font-size: 9px;
    line-height: 1.32;
    letter-spacing: 0.01em;
  }

  .focus-cover-notice__zh {
    margin-bottom: 3px;
  }

  .focus-cover-notice__en {
    font-size: 8.7px;
  }

  /* Compact circular search on narrow viewports; expands when focused or has text */
  .intro-keyword {
    margin-top: clamp(12px, 3vw, 20px);
  }

  .intro-keyword-glass {
    transition:
      border-color 0.42s var(--keyword-glass-ease),
      box-shadow 0.48s var(--keyword-glass-ease),
      transform 0.55s var(--keyword-glass-ease),
      background 0.45s var(--keyword-glass-ease),
      width 0.5s var(--keyword-glass-ease),
      max-width 0.5s var(--keyword-glass-ease),
      min-width 0.5s var(--keyword-glass-ease),
      border-radius 0.45s var(--keyword-glass-ease),
      padding 0.4s var(--keyword-glass-ease);
  }

  .intro-keyword-glass:not(:focus-within):not(.has-value) {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    overflow: hidden;
  }

  .intro-keyword-glass:not(:focus-within):not(.has-value) .intro-keyword-width-measure,
  .intro-keyword-glass:not(:focus-within):not(.has-value) .intro-keyword-hint {
    display: none;
  }

  .intro-keyword-glass:not(:focus-within):not(.has-value) .intro-keyword-field {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
  }

  .intro-keyword-glass:not(:focus-within):not(.has-value) .intro-keyword-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: var(--accent);
    text-align: center;
  }

  .intro-keyword-glass:focus-within,
  .intro-keyword-glass.has-value {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: fit-content;
    max-width: calc(100vw - 56px);
    min-width: 0;
    height: auto;
    min-height: 52px;
    padding: 12px clamp(12px, 3vw, 18px) 12px clamp(14px, 3.5vw, 20px);
    border-radius: 999px;
    justify-content: flex-start;
    overflow: visible;
  }

  /* Long placeholder measure was forcing a near-full-width pill */
  .intro-keyword-glass:focus-within .intro-keyword-width-measure,
  .intro-keyword-glass.has-value .intro-keyword-width-measure {
    display: none;
  }

  .intro-keyword-glass:not(:focus-within):not(.has-value) .intro-keyword-input-mirror {
    display: none;
  }

  .intro-keyword-glass:focus-within .intro-keyword-field,
  .intro-keyword-glass.has-value .intro-keyword-field {
    display: grid;
    grid-template-columns: max-content;
    width: max-content;
    max-width: calc(100vw - 100px);
    min-width: 0;
    height: auto;
    flex: 0 1 auto;
  }

  .intro-keyword-glass:focus-within .intro-keyword-input,
  .intro-keyword-glass.has-value .intro-keyword-input {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 1.4em;
    border-radius: 999px;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    text-align: start;
  }

  .intro-keyword-glass:focus-within .intro-keyword-input-mirror,
  .intro-keyword-glass.has-value .intro-keyword-input-mirror {
    display: block;
    grid-area: 1 / 1;
    align-self: center;
    visibility: hidden;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 3.25ch;
    margin: 0;
    padding: 0;
    border: none;
    font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(14px, 0.95vw, 16px);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.4;
    pointer-events: none;
    user-select: none;
  }

  .intro-keyword-icon {
    display: block;
    grid-area: 1 / 1;
    justify-self: center;
    align-self: center;
    z-index: 0;
    margin: 0;
    font-size: 1.35rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition:
      opacity 0.48s var(--keyword-glass-ease) 0.06s,
      transform 0.52s var(--keyword-glass-ease) 0.04s,
      filter 0.45s var(--keyword-glass-ease);
  }

  .intro-keyword-glass:focus-within .intro-keyword-icon,
  .intro-keyword-glass.has-value .intro-keyword-icon {
    opacity: 0;
    transform: translateY(5px) scale(0.92);
    filter: blur(3px);
    transition:
      opacity 0.36s var(--keyword-glass-ease),
      transform 0.42s var(--keyword-glass-ease),
      filter 0.32s var(--keyword-glass-ease);
  }

  .intro-keyword-clear {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(255, 252, 246, 0.42);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    backdrop-filter: blur(12px) saturate(1.15);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    color: rgba(54, 48, 53, 0.72);
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .intro-keyword-clear:active {
    transform: scale(0.94);
  }

  .intro-keyword-glass.has-value .intro-keyword-clear {
    display: inline-flex;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .intro-keyword-glass,
  .intro-keyword-icon {
    transition-duration: 0.08s;
  }
}
