:root {
  color-scheme: light;
  --ink: #274849;
  --muted: #627879;
  --paper: #f4faf8;
  --paper-deep: #dcece8;
  --jade: #257572;
  --jade-deep: #123f43;
  --coral: #3f8985;
  --gold: #aa8247;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(190, 224, 215, 0.42), transparent 34rem),
    linear-gradient(180deg, #fbfdfc 0%, #f1f8f6 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", "Helvetica Neue", sans-serif;
}

.zh { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.experience-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--jade-deep);
  text-decoration: none;
  font-size: 1.15rem;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand b { color: #d66e48; }

.return-link,
.story-link {
  color: var(--jade-deep);
  font-weight: 700;
  text-underline-offset: 0.24em;
  text-decoration-color: rgba(24, 59, 67, 0.28);
}

main {
  width: calc(100% - clamp(24px, 4vw, 80px));
  margin: 24px auto 72px;
}

.intro {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 24px;
  border: 1px solid rgba(25, 91, 92, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 52% at 50% 0%, rgba(87, 153, 149, 0.11), transparent),
    linear-gradient(180deg, rgba(234, 245, 242, 0.62), rgba(255, 255, 255, 0.94));
  box-shadow: 0 8px 24px rgba(19, 66, 67, 0.05);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h1 {
  margin: 0;
  color: var(--jade-deep);
  font-family: "Palatino Linotype", "Book Antiqua", "PingFang SC", "Hiragino Sans GB", Georgia, serif;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.15;
}

.intro h2 {
  margin: 10px 0 0;
  color: var(--coral);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.25;
}

.map-intro { width: 100%; margin: 24px 0 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; text-align: left; }
.map-intro-copy { flex: 1 1 36rem; max-width: 80ch; }
.map-intro p { margin: 0; font-size: 1rem; line-height: 1.6; }
.map-intro p[lang="en"] { margin-top: 4px; color: var(--muted); }

.story-link { flex: none; max-width: 100%; width: fit-content; margin: 0; padding: 12px 20px; display: grid; gap: 4px; border: 1px solid var(--jade); border-radius: 12px; background: var(--jade); color: white; font-size: 1rem; line-height: 1.4; text-align: left; text-decoration: none; }
.story-link span[lang="en"] { color: white; font-size: 1rem; font-weight: 600; }
.story-link:hover { background: var(--jade-deep); border-color: var(--jade-deep); }
.story-link:focus-visible { outline: 3px solid var(--jade-deep); outline-offset: 4px; }

.map-preview {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 59, 58, 0.15);
  border-radius: 30px;
  background: #dce6dc;
  box-shadow: 0 28px 70px rgba(45, 57, 44, 0.18);
  cursor: zoom-in;
  max-width: none;
  margin: 0 auto;
  display: block;
}

.map-preview > img { display: block; width: 100%; height: auto; }
.map-preview-creatures,
.map-preview-regions { position: absolute; inset: 0; pointer-events: none; }
.map-preview-region { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); display: grid; gap: 2px; padding: 4px 8px; border-radius: 9px; background: rgba(243, 249, 238, 0.75); color: #254d49; text-align: center; line-height: 1.25; }
.map-preview-region strong { font-size: clamp(0.7rem, 1.25vw, 1.2rem); }
.map-preview-region small { font-size: clamp(0.55rem, 0.8vw, 0.8rem); }
.map-preview-action {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 11px 20px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(24, 59, 67, 0.86);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 700;
  white-space: nowrap;
}
.map-preview-action strong,
.map-preview-action small { display: block; }
.map-preview-action strong { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 0.92rem; }
.map-preview-action small { color: #d8e7e4; font-size: 0.72rem; font-weight: 600; }

.map-source-note {
  width: 100%;
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--jade);
  border-radius: 0 16px 16px 0;
  background: rgba(226, 241, 236, 0.78);
}
.map-source-note strong { display: block; color: var(--jade-deep); font-family: "Noto Sans SC", sans-serif; font-size: 0.92rem; }
.map-source-note strong span { margin-left: 6px; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 0.82rem; }
.map-source-note p { max-width: 80ch; margin: 6px 0 0; color: var(--ink); font-family: "Noto Sans SC", sans-serif; font-size: 0.88rem; line-height: 1.6; }
.map-source-note p[lang="en"] { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 0.82rem; }
.map-source-note summary { color: var(--jade-deep); cursor: pointer; font-size: 0.9rem; font-weight: 600; }
.map-source-note summary span { margin-left: 8px; color: var(--muted); }

.creature-catalog { width: 100%; max-width: none; margin: 54px 0 0; }
.catalog-heading { width: 100%; margin: 0; text-align: left; }
.catalog-heading h2 { margin: 0; color: var(--jade-deep); font-family: "Noto Sans SC", sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.55rem); line-height: 1.25; }
.catalog-heading > p[lang="en"] { margin: 8px 0 0; color: var(--coral); font-family: "DM Sans", sans-serif; font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 700; line-height: 1.35; }

.catalog-filters {
  margin: 22px 0 0;
  padding: 16px 18px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(37, 117, 114, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}
.catalog-filter-group h3 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; color: var(--jade-deep); font-family: "Noto Sans SC", sans-serif; font-size: 1rem; line-height: 1.4; }
.catalog-filter-group h3 span { font-family: "DM Sans", sans-serif; font-size: inherit; font-weight: inherit; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  min-height: 64px;
  max-width: 100%;
  padding: 8px 14px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  border: 1px solid rgba(37, 117, 114, 0.2);
  border-radius: 14px;
  background: #f4faf8;
  color: var(--jade-deep);
  text-align: left;
  cursor: pointer;
}
.filter-pill span { font-family: "Noto Sans SC", sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.filter-pill span[lang="en"] { font-family: "DM Sans", sans-serif; font-size: 1.125rem; font-weight: 700; }
.filter-pill:hover,
.filter-pill:focus-visible { border-color: var(--jade); outline: none; }
.filter-pill.is-active { border-color: var(--jade-deep); background: var(--jade-deep); color: white; }
[data-chapter-filters] { gap: 6px; }
[data-chapter-filters] .filter-pill { min-height: 52px; padding: 6px 10px; gap: 1px; border-radius: 10px; }
[data-chapter-filters] .filter-pill span { font-size: 0.95rem; }
[data-chapter-filters] .filter-pill span[lang="en"] { font-size: 0.9rem; font-weight: 600; }
.catalog-count { margin: 22px 0 12px; color: var(--muted); font-size: 1rem; font-weight: 700; }

.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.catalog-card { min-width: 0; }
.catalog-card > button {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(42, 91, 85, 0.17);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 13px 32px rgba(21, 66, 64, 0.09);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.catalog-card > button:hover,
.catalog-card > button:focus-visible { border-color: rgba(37, 117, 114, 0.55); box-shadow: 0 18px 38px rgba(21, 66, 64, 0.15); outline: none; transform: translateY(-3px); }
.catalog-card-art { position: relative; flex: none; width: 100%; height: 220px; margin: 0; overflow: hidden; background: radial-gradient(circle at 50% 42%, #f9fcfa, #dcebe6); }
.catalog-card-art img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(20, 58, 52, 0.12)); }
.catalog-card-art--nine-tailed-fox { background: radial-gradient(circle at 50% 42%, #eaf4f1, #c1ddd5); }
.catalog-card-copy { flex: 1; padding: 16px; display: flex; flex-direction: column; }
.catalog-card-source { margin: 0; color: var(--coral); font-family: "Noto Sans SC", sans-serif; font-size: 0.68rem; font-weight: 700; }
.catalog-card-source span { margin-left: 3px; color: var(--muted); font-family: "DM Sans", sans-serif; font-weight: 600; }
.catalog-card h3 { margin: 8px 0 0; color: var(--jade-deep); font-family: "Noto Sans SC", sans-serif; font-size: 1.42rem; line-height: 1.2; }
.catalog-card h3 span { margin-left: 4px; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 0.72rem; font-weight: 600; }
.catalog-card-en { margin: 3px 0 0; color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.catalog-tags { margin: 13px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-tags span,
.creature-tag-list > span { padding: 5px 8px; border-radius: 999px; background: #e9f3ef; color: #2d6764; font-family: "Noto Sans SC", sans-serif; font-size: 0.67rem; font-weight: 700; line-height: 1.2; }
.catalog-tags span:first-child { width: 100%; border-radius: 8px; background: #dfeee9; color: #35625e; }
.catalog-card-action { margin-top: auto; padding-top: 16px; color: var(--jade); font-family: "Noto Sans SC", sans-serif; font-size: 0.78rem; font-weight: 700; }
.catalog-card-action small { margin-left: 3px; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 0.66rem; }

.map-experience {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  visibility: hidden;
  opacity: 0;
  background: #e7f1ed;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.map-experience.is-open { visibility: visible; opacity: 1; }
body.map-open { overflow: hidden; }

.map-toolbar {
  position: relative;
  z-index: 8;
  min-height: 62px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: #edf6f2;
  color: var(--jade-deep);
}

.map-title { min-width: 0; text-align: center; }
.map-title strong { display: block; font-family: "Noto Sans SC", sans-serif; font-size: 1rem; }
.map-title span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.72rem; }

.zoom-controls { display: flex; gap: 7px; }
.round-control {
  min-width: 52px;
  height: 44px;
  padding: 4px 6px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(37, 117, 114, 0.2);
  border-radius: 13px;
  background: #f8fcfa;
  color: var(--jade-deep);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.round-control:hover,
.round-control:focus-visible { background: #d8ebe4; }
.round-control small { color: var(--muted); font-size: 0.57rem; font-weight: 600; white-space: nowrap; }
.reset-control {
  width: auto;
  min-width: 62px;
  padding: 4px 11px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.05;
}
.reset-control span,
.reset-control small { display: block; }
.reset-control small { color: var(--muted); font-size: 0.62rem; font-weight: 600; }

.map-chapters { min-width: 0; padding: 0 14px 8px; border-bottom: 1px solid #ccdfd7; background: #edf6f2; }
.region-switcher { display: flex; justify-content: center; gap: 7px; overflow-x: auto; padding: 3px; }
.region-tab { min-height: 42px; min-width: 78px; padding: 5px 12px; display: grid; gap: 2px; border: 1px solid #bfd8cf; border-radius: 12px; background: #f8fcfa; color: var(--jade-deep); cursor: pointer; white-space: nowrap; }
.region-tab span { font-family: "Noto Sans SC", sans-serif; font-size: 0.83rem; font-weight: 700; }
.region-tab small { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 0.67rem; }
.region-tab.is-active { border-color: var(--jade); background: #d6ebe3; box-shadow: inset 0 -2px 0 var(--jade); }
.region-tab:hover,
.region-tab:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

.map-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #dfece6;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-viewport.is-dragging { cursor: grabbing; }
.map-compass { position: absolute; top: 14px; right: 18px; display: grid; justify-items: center; gap: 2px; color: var(--jade-deep); text-shadow: 0 1px 4px #fff; pointer-events: none; }
.map-compass > span { font-size: 1.8rem; line-height: 1; }
.map-compass strong { font-size: 0.75rem; }

.map-world {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--world-width, 3072px);
  height: var(--world-height, 2304px);
  transform-origin: 0 0;
  will-change: transform;
}

.map-base { display: block; width: 100%; height: 100%; pointer-events: none; }
.creature-layer { position: absolute; inset: 0; overflow: hidden; }
.terrain-foreground { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.annotation-layer { position: absolute; inset: 0; pointer-events: none; }

.creature-hotspot {
  --anchor-y: -100%;
  --interaction-scale: 1;
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--width) * 1%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, var(--anchor-y)) scale(var(--interaction-scale));
  transform-origin: center bottom;
  transition: filter 180ms ease, transform 180ms ease;
}

.creature-hotspot--air { --anchor-y: -50%; transform-origin: center; }
.creature-figure { position: relative; display: block; width: 70%; margin: 0 auto; overflow: hidden; pointer-events: none; }
.creature-figure img { position: absolute; display: block; max-width: none; object-fit: fill; filter: saturate(0.9) brightness(0.97); pointer-events: none; }
.creature-contact { position: absolute; left: 22%; bottom: -2%; width: 56%; height: 10%; border-radius: 50%; background: radial-gradient(ellipse, rgba(32, 44, 34, 0.36), rgba(32, 44, 34, 0) 72%); pointer-events: none; }
.creature-hotspot--water .creature-contact { z-index: 1; bottom: var(--immersion); left: 18%; width: 64%; height: 8%; background: radial-gradient(ellipse, rgba(40, 95, 90, 0.3), rgba(40, 95, 90, 0) 68%); border-bottom: 1px solid rgba(218, 244, 229, 0.6); }
.creature-contact--low-flight { bottom: calc(-1 * var(--flight-clearance) - 5%); opacity: 0.7; }
.creature-contact--over-water { background: radial-gradient(ellipse, rgba(40, 95, 90, 0.25), rgba(40, 95, 90, 0) 70%); }

.creature-name {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: min(260px, calc(100% - 20px));
  padding: 8px 12px;
  border: 1px solid #bdd8d2;
  border-radius: 12px;
  background: #edf8f5;
  color: var(--jade-deep);
  box-shadow: 0 3px 12px rgba(19, 63, 64, 0.15);
  text-align: center;
  line-height: 1.35;
  pointer-events: none;
}
.creature-name strong { display: block; font-family: "Noto Sans SC", sans-serif; font-size: 1rem; }
.creature-name > span { display: block; margin-top: 2px; font-family: "DM Sans", sans-serif; font-size: 1rem; }
.map-annotation { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: max-content; max-width: 170px; margin: 0; padding: 2px 4px; color: #385c59; text-align: center; font-size: 0.74rem; font-weight: 600; line-height: 1.3; text-shadow: 0 1px 3px #f1f5e7, 0 0 6px #f1f5e7; transform: translate(-50%, -50%) scale(var(--label-scale, 1)); transform-origin: center; pointer-events: none; }
.map-annotation span,
.map-annotation small { display: block; }
.map-annotation small { font-family: "DM Sans", sans-serif; font-size: 0.6rem; font-weight: 500; }
.map-annotation--region,
.map-annotation--sea { max-width: 220px; padding: 4px 8px; border-radius: 10px; background: rgba(243, 249, 238, 0.68); font-size: 1.25rem; letter-spacing: 0.09em; }
.map-annotation--region small,
.map-annotation--sea small { font-size: 0.7rem; letter-spacing: 0; }
.map-annotation--sea { background: rgba(216, 245, 244, 0.58); color: #255d70; }

.creature-hotspot::after {
  content: "";
  position: absolute;
  inset: -42%;
  border: max(2px, 0.18vw) solid transparent;
  border-radius: 50%;
  pointer-events: none;
}

.creature-hotspot:hover,
.creature-hotspot:focus-visible { --interaction-scale: 1.045; filter: brightness(1.08) saturate(1.05); outline: none; }
.creature-hotspot:focus-visible::after { border-color: rgba(255, 244, 185, 0.95); }
.creature-hotspot.is-found { animation: creature-discover 420ms ease-out; }
.creature-hotspot.is-found img { filter: drop-shadow(0 0 8px rgba(255, 236, 166, 0.75)) drop-shadow(0 3px 3px rgba(17, 38, 35, 0.24)); }
.creature-hotspot.is-revealed::after { animation: hint-ring 1.15s ease-in-out 3; border-color: rgba(255, 240, 171, 0.95); }

.map-help {
  position: relative;
  z-index: 7;
  min-height: 62px;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid #ccdfd7;
  background: #edf6f2;
  color: var(--jade-deep);
}

.map-help button {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid #bdd8ce;
  border-radius: 999px;
  background: #f8fcfa;
  color: var(--jade-deep);
  font-weight: 700;
  cursor: pointer;
}

.map-help p { width: min(680px, 65vw); margin: 0; color: var(--muted); font-family: "Noto Sans SC", sans-serif; font-size: 0.79rem; line-height: 1.45; }

.creature-sheet {
  position: fixed;
  z-index: 12;
  right: 18px;
  top: max(12px, env(safe-area-inset-top));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(480px, calc(100vw - 36px));
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(37, 117, 114, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(248, 252, 250, 0.99), rgba(233, 246, 241, 0.98));
  box-shadow: 0 30px 80px rgba(8, 25, 30, 0.42);
  transform: translateX(calc(100% + 40px));
  visibility: hidden;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.creature-sheet.is-open { transform: translateX(0); visibility: visible; }
.creature-sheet [data-sheet-content] { padding: 0 30px 30px; }
.sheet-header { position: sticky; top: 0; z-index: 5; height: 48px; display: flex; justify-content: flex-end; align-items: center; padding-right: 8px; background: #f3faf6; }
.sheet-scrim { display: none; }
.sheet-close {
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
.sheet-close span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9ebe6;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(31, 48, 45, 0.12);
}
.sheet-close:hover span,
.sheet-close:focus-visible span { background: #c9e2db; }
.sheet-close:focus-visible { outline: 2px solid var(--jade); outline-offset: -4px; border-radius: 50%; }

.creature-card-art {
  position: relative;
  height: 250px;
  margin: 0 0 22px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(71, 101, 94, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.98), rgba(224, 235, 226, 0.9) 58%, rgba(178, 204, 191, 0.82)),
    #e6eee7;
  box-shadow: inset 0 0 0 6px rgba(244, 250, 248, 0.56);
}
.creature-card-art img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 12px rgba(28, 54, 48, 0.16));
}
.creature-card-art--nine-tailed-fox {
  border-color: rgba(49, 99, 90, 0.28);
  background:
    radial-gradient(circle at 50% 40%, #e5f0ec 0%, #c9dfd8 62%, #afd0c6 100%),
    #c9dfd8;
  box-shadow: inset 0 0 0 6px rgba(242, 248, 245, 0.48);
}
.creature-card-art--nine-tailed-fox img {
  inset: 6%;
  width: 88%;
  height: 88%;
  filter: drop-shadow(0 12px 14px rgba(23, 67, 60, 0.24));
}
.creature-kicker { margin: 0 0 7px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; color: var(--coral); font-size: 0.75rem; font-weight: 700; }
.creature-kicker span:first-child { letter-spacing: 0.08em; }
.creature-kicker span[lang="en"] { color: var(--muted); font-family: "DM Sans", sans-serif; font-weight: 600; }
.creature-heading { margin: 0; padding-right: 42px; color: var(--jade-deep); font-family: "Noto Sans SC", sans-serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.creature-romanization { margin: 7px 0 0; color: var(--muted); font-size: 0.92rem; }
.creature-tag-list { margin: 13px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.creature-tag-list > span { display: inline-flex; align-items: baseline; gap: 4px; }
.creature-tag-list small { color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 0.6rem; }
.creature-place { margin: 18px 0 0; padding: 11px 13px; border-left: 3px solid var(--jade); border-radius: 0 12px 12px 0; background: rgba(232, 242, 237, 0.74); }
.creature-place > strong,
.creature-place > span { display: block; }
.creature-place > strong { margin-top: 6px; color: var(--jade-deep); font-family: "Noto Sans SC", sans-serif; font-size: 1rem; }
.creature-place > span:last-child { margin: 3px 0 0 21px; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.creature-place-label { color: var(--jade); font-family: "Noto Sans SC", sans-serif; font-size: 0.75rem; font-weight: 700; }
.creature-place-label b { margin-left: 5px; color: var(--muted); font-family: "DM Sans", sans-serif; font-weight: 600; }
.creature-story { margin-top: 18px; }
.creature-story p { margin: 10px 0 0; font-family: "Noto Sans SC", sans-serif; font-size: 1rem; line-height: 1.75; }
.creature-story-title { margin: 0 0 12px; color: var(--jade-deep); font-family: "Noto Sans SC", sans-serif; font-size: 1.22rem; line-height: 1.35; }
.creature-story-title span { display: block; margin-top: 3px; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: 0.78rem; font-weight: 600; }
.story-copy-zh p:first-child::first-letter { color: var(--coral); font-size: 1.7em; font-weight: 700; line-height: 0; }
.creature-story-en { margin-top: 20px; padding-top: 7px; border-top: 1px solid #c6ddd6; color: var(--muted); }
.creature-story-en::before { content: "English"; display: block; margin-top: 8px; color: var(--jade); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.creature-story-en p { font-family: "DM Sans", sans-serif; font-size: 0.86rem; line-height: 1.65; }

.source-clues {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid #c9ddd6;
}
.source-clues summary { min-height: 44px; padding: 10px 0; color: var(--jade-deep); font-family: "Noto Sans SC", sans-serif; font-size: 0.9rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
.source-clues summary span { margin-left: 6px; color: var(--muted); font-family: "DM Sans", sans-serif; font-size: inherit; }
.source-clues summary:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; border-radius: 4px; }
.source-clues > p { margin: 12px 0 0; font-family: "Noto Sans SC", sans-serif; font-size: 0.9rem; line-height: 1.65; }
.source-clues-en { margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(43, 103, 96, 0.18); color: var(--muted); }
.source-clues-en p { margin: 0; font-size: 0.84rem; line-height: 1.55; }
.source-clues > .story-origin-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed #c9ddd6; color: var(--muted); font-family: "Noto Sans SC", sans-serif; font-size: 0.82rem; line-height: 1.6; }
.story-origin-note span { display: block; margin-top: 4px; font-family: "DM Sans", sans-serif; }

.word-list { margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.word-chip { padding: 11px 12px; border: 1px solid #bfd8d1; border-radius: 14px; background: rgba(248, 252, 250, 0.9); }
.word-chip strong { display: block; font-family: "Noto Sans SC", sans-serif; font-size: 1.08rem; }
.word-chip span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.75rem; }

@keyframes hint-ring { 0%,100% { transform: scale(.8); opacity: .25; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes creature-discover {
  0%,100% { transform: translate(-50%, var(--anchor-y)) scale(var(--interaction-scale)); }
  45% { transform: translate(-50%, var(--anchor-y)) scale(1.08); }
}

@media (max-width: 760px) {
  main { width: min(100% - 24px, 1180px); margin-top: 24px; }
  .intro { padding: 26px 18px; }
  .map-intro { margin: 20px 0 14px; }
  .map-preview { border-radius: 20px; }
  .map-preview-action { bottom: 14px; padding: 9px 14px; }
  .creature-catalog { margin-top: 54px; }
  .catalog-filters { padding: 17px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .catalog-card-art { height: 150px; }
  .catalog-card-copy { padding: 13px; }
  .map-toolbar { gap: 6px; padding-inline: 10px; }
  .map-title strong { font-size: 0.86rem; }
  .map-title span { font-size: 0.63rem; }
  .zoom-controls { gap: 4px; }
  .round-control { min-width: 44px; height: 44px; padding-inline: 4px; }
  .reset-control { width: auto; min-width: 48px; padding: 4px 7px; }
  .map-chapters { padding-inline: 10px; }
  .region-switcher { justify-content: flex-start; gap: 5px; }
  .region-tab { min-width: 73px; flex: 0 0 auto; padding: 5px 8px; }
  .region-tab span { font-size: 0.76rem; }
  .region-tab small { font-size: 0.61rem; }
  .map-help { align-items: stretch; flex-direction: column; gap: 7px; }
  .map-help button { align-self: flex-start; padding: 7px 11px; font-size: 0.78rem; }
  .map-help p { width: 100%; min-height: 2.5em; font-size: 0.75rem; }
  .creature-sheet {
    top: auto;
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    max-height: min(72vh, 650px);
    padding: 0;
    border-radius: 24px;
    transform: translateY(calc(100% + 20px));
  }
  .creature-sheet [data-sheet-content] { padding: 0 22px max(24px, env(safe-area-inset-bottom)); }
  .creature-card-art { height: 190px; margin-bottom: 18px; }
  .creature-sheet.is-open { transform: translateY(0); }
  .sheet-scrim {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: block;
    visibility: hidden;
    border: 0;
    background: rgba(4, 18, 22, 0.38);
    opacity: 0;
    transition: opacity 200ms ease, visibility 200ms ease;
  }
  .sheet-scrim.is-open { visibility: visible; opacity: 1; }
}

@media (max-width: 420px) {
  .map-title strong { font-size: 0.71rem; }
  .map-title span { font-size: 0.56rem; }
  .reset-control { min-width: 44px; padding-inline: 5px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card > button { display: grid; grid-template-columns: 42% 1fr; }
  .catalog-card-art { height: 100%; min-height: 185px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
