/* 三国·其血玄黄 — official site. Faces (free / OFL), each cut to the characters the pages use: the brush titles are
   玄冬楷书 (after 马善政楷书, OFL), headings 思源宋体, labels Cinzel; body text stays in the reader's own sans. */
@font-face { font-family: "Brush"; src: url(/fonts/brush.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Serif"; src: url(/fonts/serif-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Serif"; src: url(/fonts/serif-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(/fonts/cinzel.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --ink: #0b0907; --ink2: #120e0b; --ink3: #1b1510; --bone: #efe6d4; --muted: #b5a68c; --dim: #7d705d;
  --gold: #d3a856; --gold2: #f2d597; --gold3: #8e6a30; --blood: #a01c12; --line: rgba(211, 168, 86, .28);
  --brush: "Brush", "Serif", "Songti SC", serif;
  --serif: "Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --latin: "Cinzel", "Trajan Pro", "Serif", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: min(1320px, 90vw);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--bone); background: var(--ink); font: 400 16px/1.9 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.en body { font-size: 16.5px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(160, 28, 18, .6); color: #fff; }
/* film grain over everything: the page is a print, not a screen */
body::after { content: ""; position: fixed; inset: -100px; z-index: 200; pointer-events: none; background: url(/img/grain.png); opacity: .1; mix-blend-mode: overlay; animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-40px, 22px); } 40% { transform: translate(28px, -36px); } 60% { transform: translate(-18px, -12px); } 80% { transform: translate(36px, 30px); } }

/* ------------------------------------------------------------------ type */
.label { display: inline-block; font: 600 12px/1 var(--latin); letter-spacing: .5em; color: var(--gold); text-transform: uppercase; }
.gold-text, .sec-head .title, .world .verse i, .hslide h3, .bslide h3, .finale .line, .fp h3, .world .heading, html.zh .hero .tag {
  background: linear-gradient(180deg, #fff6e2 0%, #f0d396 38%, #c99a4e 72%, #8e6a30 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sec-head .title { margin: 18px 0 0; font: 400 clamp(64px, 7.2vw, 112px)/1.05 var(--brush); letter-spacing: .14em; padding-left: .14em; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55)); }
html.en .sec-head .title { font: 700 clamp(40px, 4.6vw, 70px)/1.08 var(--latin); letter-spacing: .06em; }
.orn { position: relative; display: block; width: 220px; height: 12px; margin-top: 22px; }
.orn::before { content: ""; position: absolute; left: 0; right: 0; top: 5.5px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); }
.orn::after { content: ""; position: absolute; left: 50%; top: 1px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: var(--blood); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold); }

/* ------------------------------------------------------------------ buttons: a lacquer plate in a fine gold frame
   (.gold = the main call, red lacquer with a play mark; plain = an open frame). Gold corner brackets close in on hover,
   a light runs across, the frame glows. Labels in the brush face (Cinzel in English). */
.btn { --bk: 9px; position: relative; display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 34px; isolation: isolate; overflow: hidden;
  white-space: nowrap; border: 1px solid rgba(214, 172, 96, .5); background: linear-gradient(180deg, rgba(28, 19, 13, .62), rgba(10, 7, 5, .72));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .4s, background .4s, box-shadow .4s, transform .25s var(--ease); }
.btn .t { position: relative; z-index: 2; font: 400 23px/1 var(--brush); letter-spacing: .12em; padding-bottom: .06em;
  background: linear-gradient(180deg, #fffaf0 0%, #f6dea4 52%, #d2a35a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.en .btn .t { font: 700 13px/1 var(--latin); letter-spacing: .26em; text-transform: uppercase; padding: 0; }
.btn small { position: relative; z-index: 2; padding-left: 14px; border-left: 1px solid rgba(214, 172, 96, .35); font: 700 10px/1 var(--latin); letter-spacing: .3em; color: rgba(242, 216, 166, .72); }
.btn::before { content: ""; position: absolute; z-index: 1; inset: 5px; pointer-events: none; color: rgba(242, 213, 151, .85); transition: inset .45s var(--ease), color .4s;
  background: linear-gradient(currentColor 0 0) left top / var(--bk) 1px, linear-gradient(currentColor 0 0) left top / 1px var(--bk),
    linear-gradient(currentColor 0 0) right top / var(--bk) 1px, linear-gradient(currentColor 0 0) right top / 1px var(--bk),
    linear-gradient(currentColor 0 0) left bottom / var(--bk) 1px, linear-gradient(currentColor 0 0) left bottom / 1px var(--bk),
    linear-gradient(currentColor 0 0) right bottom / var(--bk) 1px, linear-gradient(currentColor 0 0) right bottom / 1px var(--bk); background-repeat: no-repeat; }
.btn::after { content: ""; position: absolute; z-index: 0; top: -10%; bottom: -10%; left: -50%; width: 34%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 232, 184, .38) 50%, transparent); transform: skewX(-22deg); transition: left .9s var(--ease); }
.btn:hover { border-color: rgba(246, 222, 164, .95); box-shadow: 0 0 0 1px rgba(246, 222, 164, .18), 0 0 26px rgba(214, 140, 60, .28), 0 14px 34px rgba(0, 0, 0, .45); transform: translateY(-1px); }
.btn:hover::before { inset: 3px; color: #fff1cf; }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 1px solid var(--gold2); outline-offset: 3px; }
.btn.gold { border-color: rgba(240, 202, 128, .85); background: radial-gradient(130% 160% at 28% 0%, #cf2c1c 0%, #921309 44%, #4a0704 100%);
  box-shadow: inset 0 1px 0 rgba(255, 196, 150, .4), inset 0 -12px 22px rgba(0, 0, 0, .32), 0 10px 26px rgba(0, 0, 0, .45); }
.btn.gold:hover { background: radial-gradient(130% 160% at 28% 0%, #e6381f 0%, #a9180b 44%, #560906 100%);
  box-shadow: inset 0 1px 0 rgba(255, 210, 170, .5), inset 0 -12px 22px rgba(0, 0, 0, .3), 0 0 30px rgba(230, 70, 30, .4), 0 14px 34px rgba(0, 0, 0, .5); }
.btn.gold small { color: rgba(255, 226, 180, .8); border-left-color: rgba(255, 210, 150, .35); }
.ic { position: relative; z-index: 2; flex: none; width: 15px; height: 15px; margin-right: 2px; transform: rotate(45deg); border: 1px solid rgba(255, 222, 168, .9); transition: transform .45s var(--ease); }
.ic::after { content: ""; position: absolute; left: 3px; top: 3px; width: 7px; height: 7px; background: #ffe2a6; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: rotate(-45deg); transform-origin: 50% 50%; }
.btn:hover .ic { transform: rotate(405deg); }
.btn.lg { height: 70px; padding: 0 44px; gap: 16px; --bk: 12px; }
.btn.lg .t { font-size: 28px; }
html.en .btn.lg .t { font-size: 15px; }
.btn.sm { height: 42px; padding: 0 22px; --bk: 7px; }
.btn.sm .t { font-size: 18px; }
html.en .btn.sm .t { font-size: 11.5px; }
.btn.sm::before { inset: 3px; }
/* the first screen's main call draws the eye now and then */
.hero .btn.gold::after { animation: sweep 6s ease-in-out 2.6s infinite; }
@keyframes sweep { 0% { left: -50%; } 18%, 100% { left: 120%; } }

/* ------------------------------------------------------------------ nav */
#nav { position: fixed; z-index: 50; inset: 0 0 auto; display: flex; align-items: center; gap: 40px; height: 84px; padding: 0 max(4vw, calc(50vw - 700px));
  background: linear-gradient(rgba(11, 9, 7, .75), rgba(11, 9, 7, 0)); transition: background .4s, height .4s, box-shadow .4s; }
#nav.solid { height: 68px; background: rgba(11, 9, 7, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
#nav .mark img { height: 50px; width: auto; transition: height .4s; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
#nav.solid .mark img { height: 42px; }
#nav .links { display: flex; gap: 38px; margin-left: auto; }
#nav .links a { position: relative; font: 400 19px/1 var(--brush); letter-spacing: .16em; color: #e6dac4; transition: color .3s; }
html.en #nav .links a { font: 600 13px/1 var(--latin); letter-spacing: .2em; text-transform: uppercase; }
#nav .links a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -10px; height: 1px; background: var(--gold); transition: left .35s var(--ease), right .35s var(--ease); }
#nav .links a:hover, #nav .links a.on { color: var(--gold2); }
#nav .links a:hover::after, #nav .links a.on::after { left: 0; right: .24em; }
#nav .tools { display: flex; align-items: center; gap: 20px; }
#nav .lang { display: flex; align-items: center; gap: 6px; font: 600 13px/1 var(--latin); letter-spacing: .1em; color: var(--muted); transition: color .3s; }
#nav .lang b { color: var(--gold2); font-weight: 700; }
#nav .lang i { font-style: normal; opacity: .4; }
#nav .lang:hover { color: var(--bone); }
#nav .x svg { width: 17px; height: 17px; fill: currentColor; display: block; opacity: .75; transition: opacity .3s; }
#nav .x:hover svg { opacity: 1; }

/* ------------------------------------------------------------------ hero: the film */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; background: var(--ink); }
.hero .poster, .hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero video { opacity: 0; transition: opacity 1.2s; }
.hero video.on { opacity: 1; }
.hero .shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11, 9, 7, .94) 0%, rgba(11, 9, 7, .74) 32%, rgba(11, 9, 7, .2) 58%, rgba(11, 9, 7, 0) 72%),
  linear-gradient(0deg, var(--ink) 0%, rgba(11, 9, 7, .55) 14%, rgba(11, 9, 7, 0) 34%),
  linear-gradient(180deg, rgba(11, 9, 7, .6) 0%, rgba(11, 9, 7, 0) 18%),
  radial-gradient(120% 90% at 62% 46%, rgba(11, 9, 7, 0) 50%, rgba(11, 9, 7, .55) 100%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero .in { position: absolute; z-index: 2; left: max(4vw, calc(50vw - 700px)); top: 50%; transform: translateY(-50%); width: min(780px, 88vw); }
.hero .logo { position: relative; margin: 0; width: 94%; animation: logoIn 1.6s var(--ease) both .2s; }
.hero .logo img { width: 100%; height: auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .7)); }
/* a glint runs across the gold now and then */
.hero .logo::after { content: ""; position: absolute; inset: 0; pointer-events: none; -webkit-mask: url(/img/logo.webp) center / 100% 100% no-repeat; mask: url(/img/logo.webp) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 244, 214, .75) 50%, transparent 58%) no-repeat; background-size: 300% 100%; background-position: 130% 0; mix-blend-mode: overlay; animation: glint 7s ease-in-out 2.4s infinite; }
@keyframes glint { 0% { background-position: 130% 0; } 22%, 100% { background-position: -30% 0; } }
@keyframes logoIn { from { opacity: 0; transform: scale(1.06); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero .tag { margin: 24px 0 0 6px; font: 400 clamp(26px, 2.3vw, 36px)/1.4 var(--brush); letter-spacing: .3em; color: var(--gold2); filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .85)); animation: fadeUp 1.2s var(--ease) both .9s; }
html.en .hero .tag { font: 600 clamp(14px, 1.15vw, 17px)/1.7 var(--latin); letter-spacing: .16em; }
.hero .sub { margin: 14px 0 0 4px; font-size: 15px; letter-spacing: .14em; color: #d7cab2; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); animation: fadeUp 1.2s var(--ease) both 1.05s; }
html.en .hero .sub { letter-spacing: .04em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; animation: fadeUp 1.2s var(--ease) both 1.2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .foot { position: absolute; z-index: 2; left: max(4vw, calc(50vw - 700px)); right: max(4vw, calc(50vw - 700px)); bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; }
.plat { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.plat li { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.plat svg { width: 18px; height: 18px; color: var(--gold); }
.down { display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 10px/1 var(--latin); letter-spacing: .4em; color: var(--muted); }
.down i { width: 1px; height: 52px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------------ world */
.world { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.world .bg { position: absolute; inset: 0; }
.world .bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.7); transform: scale(1.06); transition: transform 8s var(--ease); }
.world.in .bg img { transform: scale(1); }
.world::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, var(--ink) 0%, rgba(11, 9, 7, .2) 26%, rgba(11, 9, 7, .25) 70%, var(--ink) 100%),
  radial-gradient(70% 80% at 50% 50%, rgba(11, 9, 7, .25), rgba(11, 9, 7, .85)); }
.world .wrap { position: relative; z-index: 1; width: var(--wrap); margin: 0 auto; padding: 160px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.world .verse { display: flex; flex-direction: row-reverse; justify-content: center; gap: clamp(22px, 3.6vw, 64px); margin: 44px 0 0; }
.world .verse span { writing-mode: vertical-rl; font: 400 clamp(54px, 6.2vw, 100px)/1 var(--brush); letter-spacing: .22em; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .7)); }
.world .verse i { font-style: normal; }
.world .verse span:nth-child(even) { margin-top: 1.1em; }
.world .heading { margin: 26px 0 0; font: 700 clamp(44px, 5.2vw, 80px)/1.08 var(--latin); letter-spacing: .05em; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.world .text { max-width: 760px; margin: 50px 0 0; font: 600 clamp(16px, 1.3vw, 19px)/2.15 var(--serif); letter-spacing: .1em; color: #e6dac4; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
html.en .world .text { font: 400 clamp(17px, 1.3vw, 19px)/1.85 var(--sans); letter-spacing: .01em; max-width: 720px; }

/* ------------------------------------------------------------------ heroes */
.heroes { position: relative; padding: 110px 0 40px; overflow: hidden; }
.heroes .hbg { position: absolute; inset: 0; z-index: 0; }
.hbg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; filter: saturate(.85) brightness(.8); transform: scale(1.04); }
.hbg img.on { opacity: 1; }
.heroes::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, var(--ink) 0%, rgba(11, 9, 7, .25) 20%, rgba(11, 9, 7, .2) 70%, var(--ink) 100%),
  linear-gradient(90deg, rgba(11, 9, 7, .82) 0%, rgba(11, 9, 7, .25) 50%, rgba(11, 9, 7, .35) 100%); }
.heroes > :not(.hbg) { position: relative; z-index: 2; }
.hstage { position: relative; width: var(--wrap); margin: 10px auto 0; height: clamp(480px, calc(100vh - 360px), 820px); }
.hslide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: minmax(0, 1fr); align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s, visibility 0s .7s; }
.hslide.on { opacity: 1; visibility: visible; transition: opacity .7s; }
.ghost { position: absolute; z-index: 0; right: -4%; top: 46%; transform: translateY(-50%); font: 400 clamp(180px, 25vw, 400px)/1 var(--brush); color: rgba(240, 214, 150, .055); white-space: nowrap; pointer-events: none; transition: transform 1.6s var(--ease); }
.hslide:not(.on) .ghost { transform: translate(6%, -50%); }
.hslide .info { position: relative; z-index: 2; padding-right: 30px; }
.hslide .info > * { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .9s var(--ease); }
.hslide.on .info > * { opacity: 1; transform: none; }
.hslide.on .info > :nth-child(2) { transition-delay: .08s; } .hslide.on .info > :nth-child(3) { transition-delay: .16s; }
.hslide.on .info > :nth-child(4) { transition-delay: .24s; } .hslide.on .info > :nth-child(5) { transition-delay: .32s; } .hslide.on .info > :nth-child(6) { transition-delay: .4s; }
.hslide .name { display: flex; align-items: center; gap: 22px; }
.hslide h3 { margin: 0; font: 400 clamp(78px, 8vw, 128px)/1.05 var(--brush); letter-spacing: .1em; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .6)); }
html.en .hslide h3 { font: 700 clamp(48px, 5vw, 78px)/1.05 var(--latin); letter-spacing: .04em; }
.seal { display: inline-grid; place-items: center; writing-mode: vertical-rl; padding: 8px 5px; font: 400 20px/1.05 var(--brush); color: #fbeedc; background: var(--blood);
  box-shadow: inset 0 0 0 2px var(--blood), inset 0 0 0 3.5px #f3d9b0; border-radius: 3px; transform: rotate(3deg); }
.hslide .alt { display: flex; align-items: center; gap: 14px; margin-top: 18px; font: 600 14px/1 var(--latin); letter-spacing: .36em; color: var(--gold); }
html.zh .hslide .alt { letter-spacing: .3em; }
.hslide .alt i { width: 34px; height: 1px; background: var(--line); }
.hslide dl { display: grid; gap: 10px; margin: 34px 0 0; }
.hslide dl div { display: flex; gap: 18px; align-items: baseline; }
.hslide dt { min-width: 60px; font: 600 12px/1 var(--latin); letter-spacing: .3em; color: var(--dim); text-transform: uppercase; }
html.zh .hslide dt { font: 600 13px/1 var(--serif); letter-spacing: .3em; }
.hslide dd { margin: 0; font: 600 16px/1.6 var(--serif); letter-spacing: .12em; color: var(--bone); }
html.en .hslide dd { font: 400 16px/1.6 var(--sans); letter-spacing: .02em; }
.hslide blockquote { position: relative; margin: 30px 0 0; padding-left: 22px; font: 600 clamp(19px, 1.6vw, 24px)/1.6 var(--serif); letter-spacing: .1em; color: var(--gold2); }
html.en .hslide blockquote { font: 400 italic clamp(18px, 1.5vw, 22px)/1.5 Georgia, "Times New Roman", serif; letter-spacing: 0; }
.hslide blockquote::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 2px; background: linear-gradient(var(--blood), transparent); }
.hslide p { max-width: 30em; margin: 20px 0 32px; color: var(--muted); }
.hslide .figure { position: relative; height: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.hslide .figure::before { content: ""; position: absolute; left: 50%; bottom: 10%; width: 82%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 140, 62, .32) 0%, rgba(160, 28, 18, .16) 38%, rgba(160, 28, 18, 0) 66%); }
.hslide .figure::after { content: ""; position: absolute; left: 50%; bottom: 1%; width: 62%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); }
.hslide .figure img { position: relative; z-index: 1; height: 100%; width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .55));
  transform: translateX(60px) scale(.98); opacity: 0; transition: transform 1.3s var(--ease), opacity .9s; }
.hslide.on .figure img { transform: none; opacity: 1; animation: breathe 6s ease-in-out 1.3s infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.picker { display: flex; justify-content: center; gap: 6px; width: var(--wrap); margin: 26px auto 0; border-top: 1px solid rgba(239, 230, 212, .1); }
.picker button { position: relative; flex: 1; max-width: 210px; padding: 24px 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); transition: color .3s; }
.picker button b { font: 400 clamp(28px, 2.4vw, 38px)/1.05 var(--brush); font-weight: 400; letter-spacing: .12em; }
html.en .picker button b { font: 700 clamp(15px, 1.25vw, 19px)/1 var(--latin); letter-spacing: .1em; }
.picker button small { font: 600 10px/1 var(--latin); letter-spacing: .3em; text-transform: uppercase; }
.picker button::before { content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.picker button::after { content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: var(--blood); transform: rotate(45deg) scale(0); box-shadow: 0 0 0 1px var(--gold); transition: transform .4s var(--ease); }
.picker button:hover { color: var(--muted); }
.picker button.on { color: var(--gold2); }
.picker button.on::before { transform: scaleX(1); }
.picker button.on::after { transform: rotate(45deg) scale(1); }

/* ------------------------------------------------------------------ battles */
.battles { position: relative; height: 100vh; min-height: 720px; overflow: hidden; }
.bslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s, visibility 0s 1.2s; }
.bslide.on { opacity: 1; visibility: visible; transition: opacity 1.2s; }
.bslide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.bslide.on img { animation: kenburns 14s linear both; }
@keyframes kenburns { from { transform: scale(1.1) translateX(1%); } to { transform: scale(1.01) translateX(-1%); } }
.bslide::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11, 9, 7, .92) 0%, rgba(11, 9, 7, .55) 34%, rgba(11, 9, 7, .05) 64%),
  linear-gradient(0deg, var(--ink) 0%, rgba(11, 9, 7, .6) 18%, rgba(11, 9, 7, 0) 42%),
  linear-gradient(180deg, var(--ink) 0%, rgba(11, 9, 7, 0) 24%); }
.bslide .info { position: absolute; z-index: 1; left: max(4vw, calc(50vw - 660px)); bottom: 25vh; width: min(560px, 88vw); }
.bslide .info > * { opacity: 0; transform: translateY(16px); transition: opacity .8s, transform 1s var(--ease); }
.bslide.on .info > * { opacity: 1; transform: none; }
.bslide.on .info > :nth-child(2) { transition-delay: .1s; } .bslide.on .info > :nth-child(3) { transition-delay: .2s; } .bslide.on .info > :nth-child(4) { transition-delay: .28s; } .bslide.on .info > :nth-child(5) { transition-delay: .36s; }
.bslide .era { font: 600 14px/1 var(--serif); letter-spacing: .4em; color: var(--gold); }
html.en .bslide .era { font: 600 13px/1 var(--latin); letter-spacing: .3em; text-transform: uppercase; }
.bslide h3 { margin: 18px 0 0; font: 400 clamp(84px, 8.2vw, 136px)/1.05 var(--brush); letter-spacing: .1em; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .65)); }
html.en .bslide h3 { font: 700 clamp(48px, 5.4vw, 84px)/1.04 var(--latin); letter-spacing: .03em; }
.bslide .foe { display: inline-block; margin-top: 20px; padding: 6px 14px; font-size: 13px; letter-spacing: .2em; color: #f0e2c8; background: rgba(160, 28, 18, .55); border-left: 2px solid var(--gold); }
.bslide p { margin: 20px 0 34px; font-size: 17px; color: #ddd0b8; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.battles .sec-head { position: absolute; z-index: 2; top: 110px; left: 0; right: 0; }
.timeline { position: absolute; z-index: 2; left: max(4vw, calc(50vw - 660px)); right: max(4vw, calc(50vw - 660px)); bottom: 42px; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent); }
.timeline button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 26px; color: var(--dim); transition: color .3s; }
.timeline button::before { content: ""; position: absolute; top: 3px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); background: var(--ink); box-shadow: 0 0 0 1px var(--gold3); transition: background .3s, box-shadow .3s, transform .4s var(--ease); }
.timeline button span { font: 600 12px/1 var(--latin); letter-spacing: .3em; }
.timeline button b { font: 400 clamp(22px, 1.9vw, 30px)/1.05 var(--brush); font-weight: 400; letter-spacing: .12em; }
html.en .timeline button b { font: 700 clamp(12px, 1.05vw, 15px)/1.2 var(--latin); letter-spacing: .12em; text-transform: uppercase; }
.timeline button:hover { color: var(--muted); }
.timeline button.on { color: var(--gold2); }
.timeline button.on::before { background: var(--blood); box-shadow: 0 0 0 1px var(--gold), 0 0 14px 2px rgba(210, 140, 60, .6); transform: rotate(45deg) scale(1.35); }
.timeline .bar { position: absolute; left: 0; top: 7px; height: 1px; width: 0; background: var(--gold2); }

/* ------------------------------------------------------------------ features: four panels, one opens */
.features { padding: 150px 0 60px; }
.fpanels { display: flex; gap: 14px; width: var(--wrap); height: clamp(460px, 66vh, 680px); margin: 60px auto 0; }
.fp { position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer; outline: none; transition: flex 1s var(--ease); background: var(--ink2); }
.fp.on { flex: 3.4; cursor: default; }
.fp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.55); transform: scale(1.08); transition: filter 1s, transform 1.6s var(--ease); }
.fp.on img { filter: saturate(1) brightness(.85); transform: scale(1); }
.fp::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(11, 9, 7, .95) 0%, rgba(11, 9, 7, .3) 46%, rgba(11, 9, 7, 0) 70%); }
.fp::after { content: ""; position: absolute; inset: 10px; z-index: 1; pointer-events: none; border: 1px solid rgba(211, 168, 86, .0); transition: border-color .8s;
  -webkit-mask: linear-gradient(#000 0 0) top left / 28px 28px no-repeat, linear-gradient(#000 0 0) top right / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat;
  mask: linear-gradient(#000 0 0) top left / 28px 28px no-repeat, linear-gradient(#000 0 0) top right / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat; }
.fp.on::after { border-color: rgba(211, 168, 86, .7); }
.fp-in { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 34px 34px 38px; }
.fp .num { font: 600 13px/1 var(--latin); letter-spacing: .3em; color: var(--gold); }
.fp h3 { margin: 14px 0 0; font: 400 clamp(34px, 2.8vw, 46px)/1.15 var(--brush); letter-spacing: .14em; white-space: nowrap; }
html.en .fp h3 { font: 700 clamp(18px, 1.5vw, 24px)/1.25 var(--latin); letter-spacing: .06em; white-space: normal; }
.fp .fp-en { display: block; margin-top: 10px; font: 600 11px/1.4 var(--latin); letter-spacing: .3em; color: var(--dim); }
html.en .fp .fp-en { font: 400 18px/1 var(--brush); letter-spacing: .2em; color: var(--gold3); }
.fp p { max-width: 30em; margin: 16px 0 0; color: #d4c7b0; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .7s var(--ease); }
.fp.on p { opacity: 1; transform: none; transition-delay: .35s; }
.fp:not(.on) h3 { font-size: clamp(24px, 2vw, 32px); }
html.zh .fp:not(.on) .fp-in { display: flex; flex-direction: column; align-items: flex-start; }
html.zh .fp:not(.on) h3 { writing-mode: vertical-rl; letter-spacing: .2em; }

/* ------------------------------------------------------------------ news */
.news { padding: 130px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: var(--wrap); margin: 60px auto 0; }
.card .pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink2); }
.card .pic::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(239, 230, 212, .08); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.card:hover img { transform: scale(1.05); filter: saturate(1.05); }
.card time { display: block; margin-top: 22px; font: 600 12px/1 var(--latin); letter-spacing: .3em; color: var(--gold); }
.card h3 { margin: 12px 0 0; font: 900 20px/1.5 var(--serif); letter-spacing: .08em; }
html.en .card h3 { font: 700 18px/1.4 var(--latin); letter-spacing: .04em; }
.card p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------------ finale */
.finale { position: relative; margin-top: 120px; padding: 200px 0 190px; overflow: hidden; text-align: center; }
.finale .bg { position: absolute; inset: 0; }
.finale .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; filter: saturate(.8) brightness(.62); }
.finale::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 9, 7, .25) 30%, rgba(11, 9, 7, .45) 70%, var(--ink) 100%), radial-gradient(60% 70% at 50% 50%, rgba(11, 9, 7, .15), rgba(11, 9, 7, .8)); }
.finale .embers { z-index: 2; }
.finale .in { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; }
.finale .logo { width: min(700px, 86vw); height: auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .7)); }
.finale .line { margin: 34px 0 0; font: 400 clamp(38px, 3.8vw, 60px)/1.25 var(--brush); letter-spacing: .2em; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)); }
html.en .finale .line { font: 700 clamp(26px, 2.6vw, 40px)/1.2 var(--latin); letter-spacing: .08em; }
.finale .line span { display: inline-block; }
.finale .sub { margin: 16px 0 40px; letter-spacing: .2em; color: #d8cbb3; }
html.en .finale .sub { letter-spacing: .06em; }
.finale .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }

/* ------------------------------------------------------------------ footer */
footer { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 70px 4vw 60px; border-top: 1px solid rgba(239, 230, 212, .08); text-align: center; }
footer .seal { width: auto; height: 84px; opacity: .95; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
footer .fl { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; font: 600 14px/1 var(--serif); letter-spacing: .2em; color: var(--muted); }
html.en footer .fl { font: 600 12px/1 var(--latin); letter-spacing: .18em; text-transform: uppercase; }
footer .fl a:hover, footer .fs a:hover { color: var(--gold2); }
footer .fs { display: flex; gap: 30px; align-items: center; font-size: 13px; color: var(--dim); }
footer .fs a { display: flex; align-items: center; gap: 8px; }
footer .fs svg { width: 14px; height: 14px; fill: currentColor; }
footer small { font-size: 12px; letter-spacing: .14em; color: #5d5446; }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s ease, transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1100px) { #nav .links { gap: 24px; } }
@media (max-width: 960px) {
  #nav { gap: 18px; height: 64px; } #nav.solid { height: 58px; }
  #nav .links { display: none; } #nav .tools { margin-left: auto; gap: 14px; }
  #nav .mark img, #nav.solid .mark img { height: 40px; }
  .hero .poster, .hero video { object-position: 74% 50%; }
  .hero .shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(11, 9, 7, .9) 34%, rgba(11, 9, 7, .2) 62%, rgba(11, 9, 7, .55) 100%); }
  .hero .in { top: auto; bottom: 120px; transform: none; }
  .hero .tag { margin-top: 16px; letter-spacing: .42em; }
  .hero .cta { margin-top: 26px; gap: 12px; }
  .btn.lg { height: 54px; padding: 0 30px; font-size: 16px; }
  .hero .foot { bottom: 26px; } .down { display: none; } .plat { gap: 18px; }
  .hstage { height: auto; }
  .hslide { position: relative; display: none; grid-template-columns: 1fr; }
  .hslide.on { display: grid; }
  .hslide { grid-template-rows: auto auto; }
  .hslide .figure { order: -1; height: 54vh; }
  .hslide .info { padding: 0; text-align: left; }
  .ghost { top: 26%; right: -10%; }
  .picker { overflow-x: auto; justify-content: flex-start; gap: 0; }
  .picker button { min-width: 96px; }
  .battles { height: auto; min-height: 100svh; }
  .bslide .info { bottom: 160px; }
  .timeline { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; bottom: 26px; scrollbar-width: none; }
  .timeline button b { font-size: 19px; white-space: nowrap; } html.en .timeline button b { font-size: 11px; }
  .battles .sec-head { top: 90px; }
  .fpanels { flex-direction: column; height: auto; }
  .fp, .fp.on { flex: none; height: 300px; }
  .fp img { filter: saturate(1) brightness(.8); transform: none; }
  .fp p { opacity: 1; transform: none; }
  html.zh .fp:not(.on) .fp-in { display: block; } html.zh .fp:not(.on) h3 { writing-mode: horizontal-tb; }
  .fp::after { border-color: rgba(211, 168, 86, .55); }
  .cards { grid-template-columns: 1fr; gap: 44px; }
  .world .verse span { font-size: clamp(40px, 11vw, 64px); }
}
@media (max-width: 560px) {
  .plat li span { display: none; } .plat { gap: 16px; }
  .hero .sub { font-size: 13px; letter-spacing: .06em; }
  html.en .hero .tag { font-size: 13px; }
  .btn.lg { padding: 0 24px; }
  .world .wrap { padding: 120px 0; }
  .bslide h3 { font-size: 72px; } html.en .bslide h3 { font-size: 40px; }
  .heroes { padding-top: 100px; } .features, .news { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; }
}
