@charset "UTF-8";
@font-face { font-family: "FW Atlas Title"; src: url("/frontend/fonts/atlas-title.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #090f14;
  --text: #e8ece9;
  --muted: #9baaa9;
  --dim: #758684;
  --brand: #a1d9cc;
  --accent: #c4ad7f;
  --line: rgba(174, 200, 189, .14);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 80% 10%, #13282b66, transparent 55%), linear-gradient(180deg, #0a1318, #090e12 70%); font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, input, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; }
::selection { background: #457669; color: #fff; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 12px; background: #152c2b; }
.page-shell { width: min(1320px, calc(100% - 80px)); margin: 0 auto; }
.showcase { --page-gutter: 40px; background: #0a1318; }
.showcase .page-shell { width: 100%; }
.showcase .topbar, .showcase .archive-panel, .showcase .site-footer { width: min(1320px, calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
.topbar { position: relative; z-index: 5; display: flex; align-items: center; gap: 40px; min-height: 98px; border-bottom: 1px solid var(--line); }
.brand { position: relative; display: inline-flex; align-items: center; gap: 0; flex-shrink: 0; }
.brand-context { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.brand-divider { width: 2px; height: 32px; flex-shrink: 0; background: #a9b9b195; }
.brand-icon { display: block; width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand-wordmark-wrap { position: relative; display: block; margin-left: -5px; }
.brand-wordmark { display: block; width: 147px; height: auto; object-fit: contain; filter: saturate(1.15); }
.brand-wordmark-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 42%, #d8efff55 47%, #fff8dfb3 50%, #d8efff55 53%, transparent 58%); background-size: 300% 100%; mask: url("/frontend/images/wanxiang-wordmark-v2.webp") center / contain no-repeat; opacity: 0; mix-blend-mode: screen; animation: brand-sheen 16s ease-in-out infinite; }
.topnav { display: flex; gap: 30px; margin-left: auto; font-size: 13px; color: var(--muted); }
.topnav a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; transition: color .2s; }
.nav-icon { width: 19px; height: 19px; background-color: currentColor; mask: var(--nav-shape) center / contain no-repeat; flex-shrink: 0; }
.nav-icon-regions { --nav-shape: url("/frontend/images/nav-regions.svg"); }
.nav-icon-bestiary { --nav-shape: url("/frontend/images/nav-bestiary.svg"); }
.topnav a:hover { color: var(--brand); }
.project-switch { position: relative; font-size: 13px; }
.project-switch summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 11px 15px; border: 1px solid var(--line); border-radius: 6px; background: #101e2370; }
.project-switch summary::-webkit-details-marker { display: none; }
.project-label { color: var(--dim); font-size: 11px; }
.switch-chevron { color: var(--accent); transition: transform .2s; }
.project-switch[open] .switch-chevron { transform: rotate(180deg); }
.project-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 288px; padding: 22px; background: #122027; border: 1px solid #5f7d724d; border-radius: 10px; box-shadow: 0 20px 55px #0009; }
.project-current { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; margin-top: 6px; border-bottom: 1px solid var(--line); gap: 12px; }
.project-current strong { font-family: var(--serif); font-size: 16px; }
.project-current span { color: var(--brand); font-size: 11px; }
.project-menu p { color: var(--muted); font-size: 12px; margin: 16px 0 0; }
.page, .detail-page { display: grid; grid-template-columns: minmax(0, 1fr); }
.page > *, .detail-page > *, .detail-hero > *, .detail-body-grid > * { min-width: 0; }
.atlas-intro { height: 82px; }
.atlas-heading { position: relative; display: flex; align-items: center; width: 190.08px; max-width: 100%; height: 64px; flex-shrink: 0; }
.atlas-emblem { position: absolute; inset: 50% 0 auto; transform: translateY(-50%); width: 100%; height: auto; pointer-events: none; user-select: none; }
.atlas-heading-copy { position: relative; margin-left: 33%; width: 53%; text-align: center; }
.atlas-heading-title { display: block; margin: 0; transform: translateY(-2px); color: #d9bd7e; font-size: 18px; font-family: "FW Atlas Title", var(--serif); font-weight: 400; letter-spacing: 0; white-space: nowrap; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .atlas-heading-title { background: linear-gradient(to top, #9c6b2e 0%, #d9b868 48%, #fff0bd 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
}
.region-stage { --content-inset: max(var(--page-gutter), calc((100% - 1320px) / 2)); position: relative; isolation: isolate; overflow: hidden; min-height: 504px; padding-bottom: 20px; }
.region-stage::after { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: linear-gradient(0deg, #0a1318 0%, transparent 10%, transparent 85%, #0a1318 100%); }
.region-scene { position: absolute; inset: 0; z-index: -3; opacity: 0; transition: opacity 1s; }
.scene-frame { position: absolute; inset: 0; }
.scene-edge-light { position: absolute; inset: 0 auto 0 0; width: var(--content-inset); background: linear-gradient(90deg, #000, #0a1318); }
.scene-edge-light::before { content: ""; position: absolute; inset: 0; transform-origin: left bottom; transform: scale(1.2); filter: brightness(1.045); background: linear-gradient(72deg, var(--scene-tone-bottom, #000) -24%, color-mix(in srgb, var(--scene-tone-middle, #000) 85%, transparent) 20%, color-mix(in srgb, var(--scene-tone-middle, #000) 60%, transparent) 50%, color-mix(in srgb, var(--scene-tone-top, #000) 30%, transparent) 90%, transparent 150%); opacity: .72; mask-image: linear-gradient(90deg, #000 0%, #000e 46%, #0009 78%, #0003 100%), linear-gradient(180deg, transparent 0%, transparent 24%, #0001 38%, #0006 60%, #000d 84%, #000 100%); mask-composite: intersect; }
.scene-frame.is-entering { animation: scene-crossfade 6s linear both; }
@supports (mask-image: radial-gradient(ellipse, #000, transparent)) {
  .scene-frame.is-entering { mask-image: radial-gradient(ellipse, #000 42%, #000b 56%, transparent 73%), radial-gradient(ellipse, #000 38%, #0009 57%, transparent 74%), radial-gradient(ellipse, #000 44%, #000a 60%, transparent 76%), radial-gradient(ellipse, #000 40%, #000b 59%, transparent 78%); mask-position: 72% 34%, 40% 63%, 86% 74%, 25% 22%; mask-repeat: no-repeat; animation-name: scene-ink-reveal; }
}
.region-scene-main { position: absolute; inset: 0 0 0 20%; mask-image: linear-gradient(90deg, transparent, #000 22%); }
.has-scene .region-scene { opacity: .98; }
.region-scene img { display: block; width: 144%; margin-left: -22%; height: 100%; object-fit: cover; object-position: 50% 47%; filter: saturate(.85) brightness(1.08); animation: scene-drift 32s ease-in-out infinite alternate; }
.region-stage::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0a131833 0%, #0a1318aa calc(var(--content-inset) * .55), #0a1318f5 var(--content-inset), #0a1318f5 26%, #0a13189c 46%, #0a131808 72%, transparent 86%), linear-gradient(0deg, #0a1318 0%, #0a1318c7 2%, #0a131826 8%, transparent 35%), linear-gradient(180deg, #0a131855, transparent 18%); }
.scene-ornament { position: absolute; z-index: -2; right: 9%; top: 15px; width: 355px; aspect-ratio: 1; border: 1px solid #c0b28b29; border-radius: 50%; transition: opacity 1s; }
.scene-ornament::before, .scene-ornament::after { content: ""; position: absolute; border: 1px solid #c0b28b22; inset: 30px; transform: rotate(45deg); }
.scene-ornament::after { inset: 65px; border-radius: 50%; }
.scene-ornament span { display: grid; place-items: center; width: 100%; height: 100%; font-size: 90px; color: #c0b28b55; }
.has-scene .scene-ornament { opacity: 0; }
.scene-mist { position: absolute; z-index: -1; pointer-events: none; inset: 30% -10% -30%; background: radial-gradient(ellipse at 70% 60%, #b3e0d61c, transparent 48%); filter: blur(18px); animation: mist-drift 18s ease-in-out infinite alternate; }
.scene-lights { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.scene-lights i { position: absolute; left: 68%; top: 30%; width: 3px; height: 3px; border-radius: 50%; background: #dcecae; box-shadow: 0 0 12px 3px #bbebae55; animation: firefly 8s ease-in-out infinite; opacity: 0; }
.scene-lights i:nth-child(2) { left: 80%; top: 58%; animation-delay: -3s; }
.scene-lights i:nth-child(3) { left: 52%; top: 66%; animation-delay: -5s; }
.scene-lights i:nth-child(4) { left: 90%; top: 25%; animation-delay: -1s; }
.scene-lights i:nth-child(5) { left: 57%; top: 16%; animation-delay: -6s; }
.scene-lights i:nth-child(6) { left: 72%; top: 80%; animation-delay: -4s; }
.scene-lights i:nth-child(7) { left: 46%; top: 37%; animation-delay: -2s; animation-duration: 11s; }
.scene-lights i:nth-child(8) { left: 63%; top: 52%; animation-delay: -7s; width: 2px; height: 2px; }
.scene-lights i:nth-child(9) { left: 86%; top: 73%; animation-delay: -4.5s; animation-duration: 10s; }
.scene-lights i:nth-child(10) { left: 76%; top: 19%; animation-delay: -6.5s; width: 2px; height: 2px; }
.scene-lights i:nth-child(11) { left: 94%; top: 48%; animation-delay: -1.5s; animation-duration: 12s; }
.scene-lights i:nth-child(12) { left: 55%; top: 85%; animation-delay: -8s; animation-duration: 11s; }
.scene-lights i:nth-child(13) { left: 67%; top: 70%; animation-delay: -3.5s; width: 2px; height: 2px; }
.scene-lights i:nth-child(14) { left: 82%; top: 39%; animation-delay: -9s; animation-duration: 13s; }
.region-stage-content { position: relative; z-index: 1; padding: 48px 0 38px; margin-left: max(var(--page-gutter), calc((100% - 1320px) / 2)); width: min(540px, calc(100% - var(--page-gutter) * 2)); min-height: 325px; }
.eyebrow, .detail-kicker { color: var(--accent); font-size: 10px; font-weight: 500; letter-spacing: .22em; }
.scene-heading { display: flex; align-items: center; gap: 22px; }
.scene-heading::after { content: ""; width: 52px; height: 1px; background: #c4ad7f55; }
.scene-index { color: #b0beb9; font-size: 11px; letter-spacing: .14em; }
.region-stage h2 { margin: 26px 0 20px; color: var(--accent); font-family: var(--serif); font-size: clamp(27px, 3.2vw, 39px); line-height: 1.4; font-weight: 500; letter-spacing: .04em; text-shadow: 0 3px 28px #0009; }
.region-overview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; min-height: 76px; max-width: 460px; font-size: 13px; color: #c3ceca; line-height: 1.95; letter-spacing: .035em; }
.scene-actions { display: flex; gap: 28px; align-items: center; margin-top: 24px; font-size: 11px; color: #9ab6ac; }
.region-stage-footer { position: relative; z-index: 3; width: min(1320px, calc(100% - var(--page-gutter) * 2)); margin-inline: auto; display: flex; align-items: flex-start; min-height: 110px; padding-top: 8px; transform: translateY(72px); margin-bottom: 36px; }
.region-rail { display: flex; align-items: stretch; overflow-x: auto; width: 100%; min-width: 0; min-height: 70px; padding: 6px 6px 18px; background: #15232d70; border: 1px solid #d6e4ef3d; border-bottom: 0; border-radius: 7px 7px 0 0; box-shadow: inset 0 1px 0 #f0f7ff1f, 0 -10px 30px #a7ccde08; mask-image: linear-gradient(180deg, #000 0%, #000 65%, #0009 83%, transparent 100%); scrollbar-width: thin; scrollbar-color: #4c617b transparent; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .region-rail { background: linear-gradient(120deg, #d7e8f019, #15232d24 45%, #d7e8f00a); backdrop-filter: blur(9px) saturate(1.2); -webkit-backdrop-filter: blur(9px) saturate(1.2); }
}
.region-chip { position: relative; isolation: isolate; display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; min-height: 44px; padding: 0 30px; border: 0; background: transparent; color: #acb7bf; white-space: nowrap; transition: color .35s, text-shadow .35s; }
.region-chip + .region-chip::before { content: ""; position: absolute; left: 0; top: 50%; height: 15px; width: 1px; background: #c8d5e438; transform: translateY(-50%); }
.region-chip strong { font-weight: 400; font-size: 13px; }
.region-chip::after { content: ""; position: absolute; z-index: -1; inset: -6px -12px; opacity: 0; pointer-events: none; background: radial-gradient(ellipse, #c4ad7f2e 0%, #c4ad7f10 45%, transparent 72%); transition: opacity .4s; }
.region-chip.active { color: #ebd6a7; text-shadow: 0 0 10px #e7c99566, 0 0 22px #c4ad7f40; animation: region-text-light 4s ease-in-out infinite; }
.region-chip.active::after { opacity: 1; animation: region-ambient-light 4s ease-in-out infinite; }
.region-chip:hover { color: #e2d0ad; text-shadow: 0 0 14px #c4ad7f55; }
.region-chip:hover::after { opacity: .7; }
.region-chip:focus-visible { outline-offset: -3px; }
.archive-panel { padding-top: 46px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-head h2 { margin: 9px 0 0; font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: .13em; }
.heading-flourish { margin-inline: 9px 8px; color: #c4ad7f66; font-size: 22px; letter-spacing: 0; }
.heading-english { color: #b5bcc4; opacity: .85; font-family: Georgia, serif; font-size: 12px; font-weight: 400; letter-spacing: .12em; vertical-align: middle; }
.section-head p { font-size: 12px; color: var(--muted); margin: 0 0 3px; }
.control-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 12px; width: min(365px, 100%); color: var(--brand); padding: 0 14px; background: #11202770; border: 1px solid var(--line); border-radius: 5px; }
.search-box > span:first-child { font-size: 25px; }
.search-box input { min-width: 0; width: 100%; padding: 12px 0; border: 0; background: transparent; color: var(--text); font-size: 12px; outline: none; }
.search-box:focus-within { border-color: #a1d9cc77; }
.search-box input::placeholder { color: #81928c; }
.archive-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-width: 0; }
.meta-pill { font-size: 11px; color: #9aafa6; overflow-wrap: anywhere; }
.meta-pill + .meta-pill { border-left: 1px solid var(--line); padding-left: 14px; }
.creature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.creature-card { --card-summary-height: 94px; position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #111e24; transition: transform .25s, box-shadow .25s, border-color .25s; }
.creature-link { position: relative; display: flex; flex-direction: column; height: 100%; padding-bottom: var(--card-summary-height); overflow: hidden; }
.creature-cover { position: relative; aspect-ratio: 3 / 4; width: 100%; overflow: hidden; background: radial-gradient(ellipse, #2a3e3e55, transparent 65%), #111e24; }
.creature-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.creature-placeholder { position: absolute; inset: 0; container-type: inline-size; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: #111e24 url("/frontend/images/huantian-card-back-v1.svg?v=20261021-leaves-only") center / 100% 100% no-repeat; }
.card-back-title { position: relative; display: block; max-width: 80%; font-family: "FW Atlas Title", var(--serif); font-size: 20px; font-size: clamp(6px, 10cqi, 26px); font-weight: 400; line-height: 1.5; letter-spacing: 0; white-space: nowrap; color: #96917a; }
.creature-body { position: absolute; inset: auto 0 0; background: #111e24c9; border-top: 1px solid #b0c5d32e; backdrop-filter: blur(10px); transform: translateY(calc(100% - var(--card-summary-height))); transition: transform .4s cubic-bezier(.22,.7,.2,1); }
.creature-summary { min-height: var(--card-summary-height); padding: 17px 18px 16px; }
.creature-extra { padding: 0 18px 18px; }
.creature-link:focus-visible .creature-body, .creature-card.is-expanded .creature-body { transform: translateY(0); }
.creature-reveal { display: none; position: absolute; top: 10px; right: 10px; padding: 7px 9px; border: 1px solid #a1d9cc55; border-radius: 4px; background: #111e24d9; color: #c3d8ce; font-size: 10px; }
@media (hover: hover) and (pointer: fine) {
  .creature-card:hover { transform: translateY(-5px); border-color: #b2c9aa66; box-shadow: 0 14px 38px #0005, 0 0 24px #91c8b310; }
  .creature-card:hover .creature-body { transform: translateY(0); }
}
@media (hover: none), (pointer: coarse) { .creature-reveal { display: block; } }
.creature-title { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.creature-title h3 { font-size: 19px; line-height: 1.5; font-family: var(--serif); font-weight: 500; letter-spacing: .06em; margin: 0; overflow-wrap: anywhere; }
.creature-number { flex-shrink: 0; color: var(--accent); font-family: Georgia, serif; font-size: 11px; }
.creature-latin { font-family: Georgia, serif; color: #a3bca9; font-size: 11px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 6px 0 0; }
.creature-tags { display: flex; gap: 6px 10px; flex-wrap: wrap; margin: 0 0 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.creature-tag { color: #a3bca9; font-size: 10px; line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creature-tag b { color: #80958b; font-weight: 400; margin-right: 5px; }
.creature-desc { color: #b3c0bc; font-size: 12px; line-height: 1.9; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.site-footer { padding: 16px 0; margin-top: 36px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .06em; color: var(--dim); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 0; font-size: 11px; letter-spacing: 0; }
.footer-legal > * { display: inline-flex; align-items: center; white-space: nowrap; }
.footer-legal > * + *::before { content: "\00b7"; margin-inline: 10px; color: var(--dim); font-size: 12px; }
.footer-brand { color: var(--accent); font-family: var(--serif); font-size: 13px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--brand); }
.empty-state { grid-column: 1 / -1; border: 1px dashed var(--line); padding: 52px 20px; text-align: center; color: var(--muted); line-height: 2; border-radius: 8px; }
.ghost-link { display: inline-flex; padding: 10px 18px; color: var(--brand); background: #15282b; border: 1px solid var(--line); border-radius: 5px; }
.archive-retry { margin-top: 16px; }
.surface-card { background: #11202780; border: 1px solid var(--line); border-radius: 9px; }
.detail-page { margin: 25px 0 50px; gap: 22px; }
.detail-backbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.detail-backlink { font-size: 12px; color: var(--brand); }
.detail-backbar .meta-pill { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.detail-backlink { flex-shrink: 0; margin-left: auto; }
.detail-article { padding: 32px; }
.detail-layout { display: grid; gap: 32px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; gap: 40px; }
.detail-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #0d181e; }
.detail-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-cover img.is-entering { animation: detail-image-reveal .9s ease-in-out both; }
@keyframes detail-image-reveal { from { opacity: 0; } to { opacity: 1; } }
.detail-header h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: .1em; margin: 14px 0 4px; }
.detail-subtitle { color: #a6bba0; font-family: Georgia, serif; font-style: italic; font-size: 13px; margin: 0; }
.detail-summary { color: var(--muted); font-size: 14px; line-height: 2; margin: 16px 0 0; white-space: pre-line; }
.detail-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-meta-card { border: 1px solid var(--line); background: #0e1b2070; padding: 16px; border-radius: 5px; }
.detail-meta-card strong, .detail-meta-card span { display: block; }
.detail-meta-card strong { font-size: 11px; font-weight: 400; color: var(--accent); margin-bottom: 9px; }
.detail-meta-card span { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.detail-side-stack { display: grid; gap: 22px; align-content: start; }
.detail-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.detail-gallery-item { position: relative; display: block; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #0d181e; transition: border-color .2s; }
.detail-gallery-item:hover { border-color: var(--accent); }
.detail-gallery-item { padding: 0; }
.detail-gallery-item[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.detail-gallery-item img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-body-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); gap: 32px; }
.detail-fields { display: grid; gap: 12px; align-content: start; }
.detail-field { border: 1px solid var(--line); border-radius: 5px; background: #0e1b2070; }
.detail-field h4 { display: flex; align-items: center; gap: 9px; margin: 0; padding: 18px; font-size: 15px; font-weight: 500; font-family: var(--serif); letter-spacing: .1em; color: var(--accent); }
.detail-field h4 svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.accordion-body { padding: 0 18px 22px; font-size: 14px; line-height: 2; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.detail-region-card { padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #0e1b2070; }
.detail-region-card > strong { display: block; font-size: 21px; font-weight: 500; font-family: var(--serif); margin: 15px 0; }
.detail-region-card > span { color: var(--muted); font-size: 13px; line-height: 2; }
.detail-related { display: grid; gap: 10px; }
.related-card { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
.related-card strong { display: block; font-weight: 400; font-size: 14px; margin-bottom: 8px; }
.related-card span { font-size: 11px; color: var(--muted); line-height: 1.8; }
.related-card:hover { color: var(--brand); }
.detail-empty { min-height: 430px; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); line-height: 2; }
img, .creature-cover, .detail-cover, .detail-gallery-item, .region-scene { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; }
.image-guard-notice { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 12px 18px; color: var(--text); background: #162b2ef2; border: 1px solid #a1d9cc55; border-radius: 7px; box-shadow: 0 8px 32px #0006; font-size: 12px; pointer-events: none; }
@keyframes scene-drift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.075) translateX(-1%); } }
@keyframes scene-crossfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes scene-ink-reveal { 0% { opacity: 0; mask-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%; } 30% { opacity: .25; mask-size: 60% 50%, 50% 65%, 55% 45%, 45% 60%; } 65% { opacity: .65; mask-size: 190% 170%, 165% 185%, 175% 160%, 160% 175%; } 100% { opacity: 1; mask-size: 380% 340%, 330% 370%, 350% 320%, 320% 350%; } }
@keyframes brand-sheen { 0%, 55% { background-position: 140% 0; opacity: 0; } 60% { opacity: .45; } 85% { background-position: -40% 0; opacity: .45; } 90%, 100% { background-position: -40% 0; opacity: 0; } }
@keyframes region-text-light { 0%, 100% { text-shadow: 0 0 10px #e7c99566, 0 0 22px #c4ad7f40; } 50% { text-shadow: 0 0 14px #e7c99599, 0 0 28px #c4ad7f66; } }
@keyframes region-ambient-light { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes mist-drift { to { transform: translateX(-5%) translateY(-5%); opacity: .45; } }
@keyframes firefly { 0%, 100% { opacity: 0; transform: translate(0, 12px); } 40%, 65% { opacity: .65; transform: translate(-12px, -14px); } }
@media (max-width: 1100px) {
  .showcase { --page-gutter: 24px; }
  .page-shell { width: calc(100% - 48px); }
  .topbar { gap: 25px; }
  .topnav { gap: 20px; }
  .project-label { display: none; }
  .region-stage-content { padding-block: 40px 30px; }
  .creature-grid { gap: 24px 18px; }
  .creature-summary { padding-inline: 13px; }
  .creature-extra { padding-inline: 13px; }
  .creature-title h3 { font-size: 17px; }
  .detail-hero { gap: 25px; }
}
@media (max-width: 1050px) {
  .brand-context ~ .topnav { display: none; }
  .brand-context ~ .project-switch { margin-left: auto; }
}
@media (max-width: 850px) {
  .creature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topnav { display: none; }
  .project-switch { margin-left: auto; }
  .detail-hero, .detail-body-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-cover { width: min(100%, 500px); margin: auto; }
}
@media (max-width: 600px) {
  .showcase { --page-gutter: 16px; }
  html { scroll-padding-top: 15px; }
  .page-shell { width: calc(100% - 32px); }
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; min-height: 82px; padding-block: 12px; }
  .brand-context { display: contents; }
  .brand-divider { display: none; }
  .brand-context .atlas-heading { grid-column: 1 / -1; grid-row: 2; }
  .brand-wordmark { width: 107px; }
  .brand-wordmark-wrap { margin-left: -3px; }
  .brand-icon { width: 32px; height: 32px; }
  .project-switch summary { padding: 10px; gap: 8px; font-size: 11px; }
  .project-menu { width: 265px; }
  .atlas-intro { height: 67px; }
  .atlas-heading { width: 172.8px; height: 54px; }
  .atlas-heading-title { font-size: 16.2px; }
  .region-stage { min-height: 486px; }
  .region-scene { inset: 0; mask-image: none; }
  .region-scene-main { inset: 0; mask-image: none; }
  .scene-edge-light { display: none; }
  .has-scene .region-scene { opacity: .78; }
  .region-scene img { position: absolute; width: 150%; height: 150%; margin-left: 0; left: -25%; top: -25%; object-position: 54% 45%; }
  .region-stage::before { background: linear-gradient(90deg, #0a1318de, #0a13184d), linear-gradient(0deg, #0a1318 0%, #0a1318d9 16%, #0a131830 65%, #0a131866); }
  .region-stage-content { padding-block: 36px 30px; min-height: 335px; }
  .region-stage h2 { font-size: 27px; margin: 28px 0 18px; letter-spacing: .04em; }
  .region-overview { font-size: 12px; min-height: 93px; -webkit-line-clamp: 4; line-height: 2; }
  .scene-actions { gap: 22px; font-size: 10px; margin-top: 18px; }
  .scene-ornament { width: 285px; right: -55px; top: 25px; opacity: .6; }
  .region-stage-footer { min-height: 94px; padding-top: 6px; }
  .region-rail { min-height: 66px; padding: 5px 5px 16px; }
  .region-chip { padding: 0 15px; min-height: 44px; }
  .region-chip strong { font-size: 11px; }
  .archive-panel { padding-top: 34px; }
  .section-head { align-items: start; flex-direction: column; gap: 12px; }
  .section-head h2 { font-size: 25px; margin-top: 7px; }
  .heading-flourish { margin-inline: 6px 5px; }
  .heading-english { font-size: 10px; letter-spacing: .1em; }
  .section-head p { font-size: 11px; line-height: 1.7; }
  .control-bar { flex-wrap: wrap; gap: 15px; margin: 20px 0; padding: 13px 0; }
  .search-box { width: 100%; }
  .meta-pill { font-size: 10px; }
  .creature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .creature-card { --card-summary-height: 84px; }
  .creature-summary { padding: 13px 10px; }
  .creature-extra { padding: 0 10px 13px; }
  .creature-title { gap: 6px; }
  .creature-title h3 { font-size: 15px; letter-spacing: 0; }
  .creature-number { font-size: 9px; }
  .creature-latin { font-size: 9px; }
  .creature-tags { gap: 5px 7px; }
  .creature-tag { font-size: 9px; }
  .creature-desc { font-size: 10px; line-height: 1.9; }
  .site-footer { margin-top: 28px; padding: 13px 0; }
  .footer-legal { gap: 8px 0; font-size: 10px; }
  .footer-legal > * + *::before { margin-inline: 7px; }
  .footer-brand { font-size: 12px; }
  .detail-page { margin-top: 20px; }
  .detail-backbar { padding: 15px; flex-wrap: wrap; }
  .detail-article { padding: 17px; }
  .detail-hero { gap: 26px; }
  .detail-meta-grid { gap: 8px; }
  .detail-meta-card { padding: 12px; }
  .detail-gallery { gap: 5px; }
  .detail-summary, .accordion-body { font-size: 13px; }
  .detail-region-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scene-lights { display: none; }
  .brand-wordmark-wrap::after { display: none; }
}
