:root {
  color-scheme: dark;
  --bg: #101216;
  --surface: #191b20;
  --ink: #f4f0e7;
  --muted: #a5a6a8;
  --gold: #dfc18b;
  --lavender: #dfc18b;
  --line: #363638;
  --serif: "Songti SC","Noto Serif CJK SC","STSong","SimSun",serif;
  --sans: "Inter","Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 75px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; }
body.modal-open { overflow: hidden; }
button,a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid #f4d59b; outline-offset: 4px; }
button { -webkit-tap-highlight-color: transparent; }
button[hidden],[hidden] { display: none !important; }
button:disabled { cursor: default; }
img { display: block; }
svg { width: 19px; height: 19px; display: inline-block; vertical-align: middle; flex: none; }
.container { width: min(1320px, 88%); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -70px; z-index: 99; background: var(--gold); color: #18140d; padding: 8px 14px; }
.skip:focus-visible { top: 8px; }
.masthead { height: 70px; background: #101115; border-bottom: 1px solid #333035; position: sticky; top: 0; z-index: 15; }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.site-brand { display: flex; align-items: center; width: fit-content; }
.site-brand img { width: 112px; height: auto; max-height: 55px; object-fit: contain; }
.desktop-nav,.header-actions { display: flex; align-items: center; }
.desktop-nav { height: 100%; gap: clamp(25px,3.3vw,54px); }
.desktop-nav a { position: relative; display: flex; align-items: center; height: 100%; color: #bfc0c1; font-size: 14px; letter-spacing: .06em; }
.desktop-nav a[aria-current],.desktop-nav a:hover { color: var(--gold); }
.desktop-nav a[aria-current]::after { content:""; position: absolute; height: 2px; bottom: 0; left: 25%; right: 25%; background: var(--gold); }
.header-actions { justify-self: end; gap: 14px; }
.gallery-link { font-size: 13px; letter-spacing: .05em; color: #ecdbb9; display: inline-flex; align-items: center; gap: 9px; padding: 6px 15px; border: 1px solid #645840; border-radius: 3px; }
.gallery-link:hover { background: #302b22; }
.gallery-link svg { width: 16px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; }
.mobile-nav { position: absolute; width: 100%; background: #15171c; border-bottom: 1px solid var(--line); padding: 8px 6% 15px; }
.mobile-nav a { display: block; padding: 10px; border-bottom: 1px solid #29292c; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #12151a; border-bottom: 1px solid #675633; }
.hero-image,.hero-shade { position:absolute; inset:0; pointer-events:none; }
.hero-image { opacity:0; transition:opacity .43s ease; }
.hero-image.is-current { opacity:1; }
.hero-image img { height: 100%; width: 100%; object-fit:cover; }
.hero-image.scene { left: 20%; }
.hero-image.scene img { object-position: 50% 48%; }
.hero-image.portrait { left: 36%; overflow:hidden; }
.hero-image.portrait img { object-position: 50% 4%; }
.hero-shade {
  background: linear-gradient(0deg, rgba(11,13,16,.93), transparent 19%, transparent 89%, rgba(12,13,15,.17)),
    linear-gradient(90deg, #101318 0%, #12151a 21%, rgba(16,19,24,.96) 32%, rgba(17,19,24,.72) 43%, rgba(19,19,20,.14) 63%, transparent 77%, rgba(12,14,16,.17) 100%);
}
.hero-inner { position: relative; min-height: clamp(540px, 43.5vw, 655px); display: flex; align-items: center; padding-block: 62px 91px; }
.hero-copy { position: relative; z-index: 1; width: 58%; }
.genre { display:flex; align-items:center; gap:13px; color: #e5cb9c; font-size: 12px; font-weight: 600; letter-spacing:.16em; }
.genre b { opacity:.62; font-weight:400; }
.spark { display:inline-block; width:12px; height:12px; background:var(--gold); clip-path:polygon(50% 0,60% 36%,100% 50%,60% 60%,50% 100%,39% 62%,0 50%,39% 38%); }
.hero h1 { color:#faf5e8; font-family:var(--serif); font-size:clamp(74px,7.2vw,113px); font-weight: 700; line-height:1.18; letter-spacing:.045em; margin:18px 0 7px -.04em; text-shadow: 0 2px 18px #0a0b0d33; }
.hero-line { font-family:var(--serif); font-size: clamp(22px,2.02vw,31px); letter-spacing:.09em; font-weight: 600; margin: 0 0 15px; color:#e4d7bb; }
.hero-description { font-size:clamp(14px,1.04vw,16px); color:#c1c0bd; line-height:1.95; margin:0; }
.hero-actions { display:flex; flex-wrap:wrap; gap:13px; margin-top:30px; }
.button { display:inline-flex; justify-content:center; align-items:center; gap:16px; min-height:46px; padding: 0 23px; border-radius:3px; border:1px solid transparent; font-size:14px; letter-spacing:.035em; font-weight:600; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform:translateY(-2px); }
.primary { background:#e3c695; color:#231e15; border-color:#edcf9c; }
.primary:hover { background:#f3d9ac; }
.secondary { background:#1113199c; border-color:#6b665c; color:#ece8df; gap:9px; }
.secondary:hover { background:#242321; border-color:#ab956c; }
.hero-bottom { position:absolute; bottom:21px; left:0; right:0; display:flex; justify-content:space-between; align-items:center; }
.scroll-link { display:flex; align-items:center; gap:10px; color:#b7b3a9; font-size:11px; letter-spacing:.14em; }
.scroll-link svg { height:16px; width:13px; color:var(--gold); }
.scroll-link span { display:block; width:37px; height:1px; background:#71624b; }
.slide-control { display:flex; align-items:center; gap:8px; }
#slide-description { color:#e4dfd3; font-size:12px; letter-spacing:.08em; margin-right:11px; text-shadow:0 1px 4px black; }
.slide-count { display:flex; align-items:baseline; gap:7px; font:12px Georgia,serif; margin-right:8px; color:#bdb8ae; font-variant-numeric:tabular-nums; }
.slide-count strong { font-size:19px; color:#f6e9d0; font-weight:400; }
.slide-count em { opacity:.48; }
.slide-control button,.icon-button { border:1px solid #8a817280; background:#15151575; display:inline-grid; place-items:center; border-radius:100%; width:34px; height:34px; color:var(--ink); }
.slide-control button:hover,.icon-button:hover { border-color:var(--gold); color:var(--gold); background:#201e1a; }
.slide-control svg { width:15px; height:15px; }

.section { padding:66px 0 68px; scroll-margin-top: 0; }
.section + .section { border-top:1px solid #292a2c; }
.section-head { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:25px; }
.kicker { display:flex; align-items:center; gap:10px; font:600 10px/1.35 Arial,sans-serif; letter-spacing:.22em; color:var(--gold); }
.kicker:before { content:""; width:24px; height:1px; background:var(--gold); opacity:.85; }
.section-head h2 { font-family:var(--serif); font-size:clamp(32px,2.8vw,46px); line-height:1.22; font-weight:700; letter-spacing:.09em; margin:8px 0 0; }
.section-head p { color:var(--muted); font-size:14px; line-height:1.8; margin:0 0 2px; }
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.feature-card { display:block; width:100%; border:1px solid #343536; border-radius:5px; overflow:hidden; background:#191b1f; padding:0; text-align:left; transition:transform .22s, border-color .22s; }
.feature-card:hover { transform:translateY(-3px); border-color:#827358; }
.card-photo { display:block; width:100%; aspect-ratio:2.08; position:relative; isolation:isolate; background:#202421; overflow:hidden; }
.card-photo:after,.gallery-pic:after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(12,15,17,.4),transparent 45%); pointer-events:none; }
.card-photo img,.gallery-pic img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.feature-card:hover img,.gallery-item:hover img { transform:scale(1.035); }
.formation-photo img { object-position:center 24%; }
.battle-photo img { object-position:center 45%; }
.tower-photo img { object-position:center 37%; }
.image-kind { position:absolute; z-index:1; bottom:12px; left:15px; padding:1px 8px; border:1px solid #e8e2ce66; border-radius:2px; background:#171819c9; font-size:10px; line-height:1.8; letter-spacing:.1em; color:#ece6d7; }
.feature-body { display:grid; grid-template-columns:1fr auto; gap:8px 10px; padding:19px 20px 22px; }
.feature-body strong { font:700 23px/1.35 var(--serif); letter-spacing:.06em; }
.feature-desc { grid-column:1/-1; font-size:13px; color:#b4b3b0; line-height:1.85; }
.round-arrow { width:27px; height:27px; border:1px solid #595345; border-radius:50%; color:var(--gold); display:grid; place-items:center; }
.round-arrow svg { width:15px; height:15px; }
.codex-section { background:#16171b; }
.gallery-section { background:#15171b; }
.gallery-filters { display:flex; flex-wrap:wrap; gap:4px; }
.gallery-filters button { background:transparent; border:1px solid transparent; color:var(--muted); border-radius:2px; padding:5px 10px; font-size:12px; }
.gallery-filters button[aria-pressed=true] { color:var(--gold); background:#29251f; border-color:#64573e; }
.gallery-filters button:hover { color:var(--gold); }
.gallery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:17px; }
.gallery-item { display:block; min-width:0; padding:0; overflow:hidden; background:#1b1e22; border:1px solid #35363a; border-radius:3px; text-align:left; }
.gallery-item:hover { border-color:#8e7e5f; }
.gallery-pic { display:block; position:relative; aspect-ratio:1.8; overflow:hidden; }
.gallery-label { display:flex; justify-content:space-between; gap:8px; align-items:center; padding:11px 13px; font-size:14px; color:#f0e9db; }
.gallery-label small { font-size:10px; color:#aaa69e; }
footer { background:#0e1013; border-top:1px solid var(--line); }
.foot-inner { display:flex; justify-content:space-between; align-items:center; gap:20px; padding-block:30px; }
.foot-inner strong { font:700 22px var(--serif); letter-spacing:.12em; }
.foot-inner p,.foot-ref { font-size:12px; color:#a4a39f; line-height:1.9; margin:5px 0 0; }
.foot-inner a { display:flex; align-items:center; gap:9px; color:var(--gold); font-size:12px; }
.foot-inner svg { width:15px; }

#viewer { padding:0; border:1px solid #656057; border-radius:6px; width:min(850px,93vw); max-height:90dvh; background:#181a1f; color:var(--ink); overflow:auto; box-shadow:0 18px 80px #0009; }
#viewer::backdrop { background:#050609cf; backdrop-filter:blur(5px); }
.viewer-head { display:flex; justify-content:space-between; align-items:center; padding:18px 22px 15px; gap:14px; border-bottom:1px solid var(--line); }
.viewer-head h2 { font:700 25px/1.35 var(--serif); margin:4px 0 0; }
.viewer-head .kicker { font-size:9px; }
.viewer-body { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(180px,.85fr); align-items:center; }
.viewer-art { display:grid; place-items:center; background:#0b0d10; padding:12px; min-height:240px; }
.viewer-art img { max-width:100%; max-height:57dvh; object-fit:contain; }
.viewer-info { min-width:0; padding:18px 23px; font-size:14px; line-height:1.9; }
#viewer-caption { color:var(--gold); font-size:12px; }
.viewer-info p { margin:8px 0; color:#c7c5c2; }
.viewer-info h3 { font-size:16px; margin:15px 0 0; color:var(--ink); }
#viewer.wide-image .viewer-body { display:block; }
#viewer.wide-image .viewer-art img { max-height:60dvh; }
#viewer.wide-image .viewer-info { padding:2px 21px; }
.viewer-controls { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); padding:9px 16px; }
.viewer-controls button { background:none; border:0; color:var(--gold); display:flex; align-items:center; gap:4px; font-size:13px; min-height:34px; }
#viewer-position { color:#b9b5ac; font:12px Arial,sans-serif; }
@media(min-width:1600px) {
  .hero-image.portrait { left:36%; }
  .hero-image.portrait img { object-position:50% 8%; }
}
@media(max-width:950px) {
  .container { width:90%; }
  .hero-inner { min-height:525px; }
  .hero-copy { width:65%; }
  .hero-image.portrait { left:32%; }
  .hero h1 { font-size:clamp(68px,9vw,84px); }
  .hero-description { max-width:410px; }
  .section { padding-block:50px; }
  .feature-grid { gap:12px; }
  .feature-body { padding:15px; }
  .gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:700px) {
  html { scroll-padding-top:60px; }
  .masthead { height:59px; }
  .header-inner { display:flex; justify-content:space-between; }
  .site-brand img { width:93px; }
  .desktop-nav { display:none; }
  .menu-toggle { display:inline-grid; place-items:center; }
  .gallery-link { padding:4px 10px; gap:6px; font-size:12px; }
  .header-actions { gap:5px; }
  .hero-inner { min-height:610px; padding-block:240px 76px; align-items:flex-end; }
  .hero-copy { width:100%; }
  .hero-image.portrait { left:0; height:77%; }
  .hero-image.portrait img { object-position:50% 0%; }
  .hero-image.scene { left:0; height:76%; }
  .hero-image.scene img { object-position:58% center; }
  .hero-shade { background:linear-gradient(0deg,#101318 0%,#101318 12%,rgba(16,19,24,.94) 29%,rgba(16,19,24,.58) 48%,rgba(16,19,24,.04) 74%),linear-gradient(90deg,rgba(16,19,24,.65),transparent 62%); }
  .genre { font-size:10px; gap:9px; }
  .hero h1 { font-size:clamp(57px,12vw,76px); margin:12px 0 4px; }
  .hero-line { font-size:clamp(20px,4.4vw,27px); margin-bottom:10px; }
  .hero-description { font-size:13px; max-width:440px; }
  .desktop-break { display:none; }
  .hero-actions { margin-top:20px; gap:9px; }
  .button { min-height:44px; padding:0 15px; font-size:13px; gap:9px; }
  .hero-bottom { bottom:17px; }
  .scroll-link { gap:6px; font-size:10px; }
  .scroll-link span { width:17px; }
  #slide-description { font-size:10px; margin-right:3px; letter-spacing:0; }
  .slide-control { gap:5px; }
  .slide-control button { width:30px; height:30px; }
  .slide-count { margin-right:2px; gap:3px; font-size:10px; }
  .slide-count strong { font-size:16px; }
  .section { padding-block:40px; }
  .section-head { flex-direction:column; align-items:flex-start; gap:10px; margin-bottom:20px; }
  .section-head h2 { font-size:31px; margin-top:6px; }
  .section-head p { font-size:13px; }
  .section-head p br { display:none; }
  .feature-grid { grid-template-columns:1fr; gap:14px; }
  .card-photo { aspect-ratio:2.4; }
  .feature-body { padding:14px 17px 16px; gap:3px 8px; }
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .gallery-label { display:block; font-size:13px; padding:7px 10px; }
  .gallery-label small { display:block; }
  .gallery-filters button { padding:4px 8px; }
  .foot-inner { display:grid; grid-template-columns:1fr auto; padding-block:23px; }
  .foot-ref { grid-column:1; }
  .foot-inner a { grid-row:1; grid-column:2; }
  .viewer-head { padding:12px 15px; }
  .viewer-body { display:block; }
  .viewer-art { padding:8px; min-height:0; }
  .viewer-art img { max-height:44dvh; }
  .viewer-info { padding:6px 15px 14px; font-size:13px; }
}
@media(max-width:365px) {
  .hero-inner { min-height:575px; }
  .scroll-link span { display:none; }
  #slide-description { max-width:90px; line-height:1.25; }
  .button { padding:0 12px; font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
.inline-link,.partner summary { color:var(--gold); font-size:12px; }
.inline-link { display:inline-flex; align-items:center; gap:4px; background:none; border:0; padding:5px 0; }
.inline-link:hover { text-decoration:underline; }
.inline-link svg { width:13px; height:13px; }
.archive-intro { text-align:right; }
.partner { max-width:290px; }
.partner summary { cursor:pointer; }
.partner p { font-size:12px; }
#viewer.zoom-image .viewer-art { display:block; max-height:57dvh; overflow:auto; }
#viewer.zoom-image .viewer-art img { width:auto; height:auto; max-height:none; max-width:none; }
@media(max-width:700px) {
  .archive-intro { text-align:left; }
  .partner { grid-column:1/-1; }
  #viewer.zoom-image .viewer-art { max-height:44dvh; }
}
