@font-face { font-family: "ZJ Serif"; src: url(fonts/zh.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "ZJ Serif"; src: url(fonts/author-zh.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+4E66, U+4EF6, U+4F4D, U+4FE1, U+52A0, U+53CB, U+53F7, U+5496, U+5561, U+559D, U+5916, U+5957, U+5B8C, U+5C0F, U+5E26, U+5E55, U+5FAE, U+601D, U+60F3, U+610F, U+611F, U+6216, U+62DF, U+641C, U+64CE, U+6574, U+670B, U+676F, U+679C, U+67D3, U+6B22, U+6CE8, U+6D41, U+6DFB, U+6E32, U+7075, U+70B9, U+793A, U+7D22, U+7EA2, U+7ED9, U+804A, U+83B7, U+865A, U+8BCD, U+8BF7, U+8D26, U+8FCE, U+9009, U+914D, U+957F; }
@font-face { font-family: "ZJ Latin"; src: url(fonts/en.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "ZJ Latin"; src: url(fonts/en-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --ink: #efe6d6; --ink2: rgba(239, 230, 214, .72); --ink3: rgba(239, 230, 214, .48);
  --gold: #d8b46a; --gold2: rgba(216, 180, 106, .45); --line: rgba(216, 180, 106, .28);
  --verm: #b22e20; --bg: #070605;
  --zh: "ZJ Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --en: "ZJ Latin", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; -webkit-font-smoothing: antialiased; }
body { font-family: var(--zh); }
button, a { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
#gl { touch-action: none; outline: none; cursor: none; }
#gl.drag { cursor: grabbing; }
#type { pointer-events: none; }
.zh { font-family: var(--zh); }
.en { font-family: var(--en); font-style: italic; }
html[data-lang="zh"] .en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }

/* ---------- chrome ---------- */
.ui { position: fixed; inset: 0; pointer-events: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
.top { position: fixed; top: calc(18px + var(--safe-t)); left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.top > * { pointer-events: auto; }
.mark { display: flex; align-items: baseline; gap: 10px; opacity: .86; transition: opacity .3s; }
.mark:hover { opacity: 1; }
.mark-zh { font-size: 19px; letter-spacing: .32em; font-weight: 500; }
.mark-en { font-family: var(--en); font-size: 11px; letter-spacing: .42em; color: var(--gold); }
.tools { display: flex; gap: 14px; align-items: center; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: rgba(7, 6, 5, .35); backdrop-filter: blur(6px); }
.lang button { font-size: 12px; padding: 5px 10px; border-radius: 999px; color: var(--ink3); font-family: var(--en); letter-spacing: .06em; }
.lang button[aria-checked="true"] { color: #140f0a; background: var(--gold); }
.icon { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: rgba(7, 6, 5, .35); backdrop-filter: blur(6px); }
.icon svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#sound .s-off { display: none; }
#sound[aria-pressed="false"] .s-on { display: none; }
#sound[aria-pressed="false"] .s-off { display: block; }
.made { display: flex; align-items: center; gap: 8px; text-decoration: none; opacity: .72; transition: opacity .3s; padding-left: 6px; }
.made:hover { opacity: 1; }
.made span { font-family: var(--en); font-size: 10px; letter-spacing: .28em; color: var(--ink3); }
.made img { height: 15px; width: auto; }

.rail { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); pointer-events: none !important; opacity: .7; }
.rail li { gap: 3px !important; }
.rail ol { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.rail li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink3); letter-spacing: .2em; transition: color .6s; }
.rail li i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--gold2); transition: all .6s; }
.rail li.done i { background: var(--gold2); }
.rail li.now { color: var(--ink); }
.rail li.now i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px var(--gold); }
.rail li .en { font-size: 10px; letter-spacing: .1em; display: none; }
html[data-lang="en"] .rail li .en { display: block !important; }

.next { position: fixed; right: 24px; bottom: calc(18px + var(--safe-b)); display: flex; gap: 8px; align-items: baseline; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 6, 5, .4); backdrop-filter: blur(8px); color: var(--ink2); font-size: 14px; letter-spacing: .2em; transition: all .4s; }
.next .en { font-size: 13px; letter-spacing: .04em; }
.next i { font-style: normal; color: var(--gold); }
.next:hover { color: var(--ink); border-color: var(--gold2); }
.letgo { right: 50%; transform: translateX(50%); bottom: calc(70px + var(--safe-b)); }
.patron { position: fixed; transform: translate(-50%, 0); padding: 7px 12px; border: 1px solid var(--gold2); border-radius: 999px; background: rgba(7, 6, 5, .55); color: var(--gold); text-decoration: none; font-family: var(--en); font-size: 13px; letter-spacing: .06em; backdrop-filter: blur(6px); }
.patron:hover { background: var(--gold); color: #140f0a; }

/* ---------- threshold ---------- */
.intro { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, rgba(7, 6, 5, .35), rgba(7, 6, 5, .88) 70%); transition: opacity 1.6s ease, visibility 1.6s; z-index: 5; }
.intro.gone { opacity: 0; visibility: hidden; }
.intro-inner { width: min(680px, 88vw); text-align: center; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .5em; color: var(--gold); margin: 0 0 26px; }
.eyebrow span:last-child { font-family: var(--en); letter-spacing: .3em; font-size: 10px; }
.eyebrow i { width: 34px; height: 1px; background: var(--gold2); }
h1 { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; font-weight: 300; }
.t-zh { font-size: clamp(64px, 11vw, 120px); letter-spacing: .5em; text-indent: .5em; line-height: 1; font-weight: 300; }
.t-en { font-family: var(--en); font-size: 15px; letter-spacing: .9em; text-indent: .9em; color: var(--gold); font-weight: 400; }
.lede { margin: 34px auto 0; max-width: 560px; color: var(--ink2); line-height: 2; font-size: 15px; }
.lede.en { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--ink3); }
.themes { display: flex; justify-content: center; gap: 22px; margin-top: 26px; font-size: 13px; letter-spacing: .2em; color: var(--ink2); flex-wrap: wrap; }
.themes i { font-family: var(--en); letter-spacing: .02em; color: var(--ink3); margin-left: 4px; }
.loading { margin: 34px auto 0; width: 220px; position: relative; height: 1px; background: var(--line); }
.loading i { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--gold); transition: width .3s; }
.loading span { position: absolute; left: 0; right: 0; top: 10px; font-size: 11px; color: var(--ink3); letter-spacing: .14em; font-family: var(--en); }
.loading.done { opacity: 0; transition: opacity .8s; }
.enter { margin-top: 28px; display: inline-flex; gap: 12px; align-items: baseline; padding: 14px 34px; border: 1px solid var(--gold2); border-radius: 999px; font-size: 18px; letter-spacing: .5em; text-indent: .5em; transition: all .5s; opacity: .25; }
.enter .en { font-size: 15px; letter-spacing: .12em; text-indent: 0; color: var(--gold); }
.enter:not(:disabled) { opacity: 1; }
.enter:not(:disabled):hover { background: rgba(216, 180, 106, .12); border-color: var(--gold); box-shadow: 0 0 40px rgba(216, 180, 106, .15); }
.how { margin-top: 22px; font-size: 12px; color: var(--ink3); letter-spacing: .12em; line-height: 2; }
.how span + span::before { content: "·"; margin: 0 10px; color: var(--gold2); }
.how em { font-family: var(--en); letter-spacing: .04em; font-size: 13px; }

/* ---------- end card ---------- */
.endcard { position: fixed; inset: 0; display: grid; place-items: center; z-index: 4; background: radial-gradient(ellipse at 50% 48%, rgba(7, 6, 5, .62), rgba(7, 6, 5, .9) 70%); opacity: 0; transition: opacity 2.4s ease; }
.endcard.on { opacity: 1; }
.end-inner { text-align: center; width: min(640px, 90vw); }
.end-mark { position: relative; width: 112px; height: 112px; margin: 0 auto 30px; }
.end-mark img, .end-mark .bronze { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.end-mark .bronze { background: radial-gradient(circle, #fff8ea 0%, #f6efe2 62%, rgba(246, 239, 226, 0) 71%); box-shadow: 0 0 90px 20px rgba(255, 214, 160, .28); transform: scale(.25); opacity: 0; transition: transform 1.6s cubic-bezier(.2,.8,.2,1), opacity 1.2s ease; }
.endcard.on .end-mark .bronze { transform: scale(1); opacity: 1; }
.end-mark img { opacity: 0; transform: rotate(-20deg); transition: opacity 1.6s ease 1.5s, transform 2.4s cubic-bezier(.2, .8, .2, 1) 1.3s; filter: drop-shadow(0 0 30px rgba(255, 210, 160, .25)); }
.endcard.on .end-mark img { opacity: 1; transform: none; }

.end-zh { font-size: 22px; letter-spacing: .28em; margin: 0; }
.end-en { font-family: var(--en); font-style: italic; font-size: 18px; color: var(--ink2); margin: 10px 0 0; }
.end-sub { margin: 20px 0 0; color: var(--gold); font-size: 15px; letter-spacing: .3em; }
.end-sub.en { margin-top: 6px; font-size: 15px; letter-spacing: .04em; color: var(--ink3); }
.end-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.cta { display: inline-flex; gap: 10px; align-items: baseline; padding: 13px 26px; border-radius: 999px; background: var(--gold); color: #140f0a; text-decoration: none; font-size: 15px; letter-spacing: .14em; transition: all .4s; }
.cta .en { font-size: 15px; letter-spacing: .02em; }
.cta i { font-style: normal; }
.cta:hover { background: #ecd29a; box-shadow: 0 0 40px rgba(216, 180, 106, .35); }
.ghost { display: inline-flex; gap: 8px; align-items: baseline; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); font-size: 14px; letter-spacing: .14em; transition: all .4s; }
.ghost .en { font-size: 14px; letter-spacing: .02em; }
.ghost:hover { color: var(--ink); border-color: var(--gold2); }
html[data-lang="both"] .cta .en, html[data-lang="both"] .ghost .en { opacity: .7; }

dialog#credits { max-width: min(760px, 92vw); max-height: 80vh; overflow: auto; background: #0e0c0a; color: var(--ink2); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; font-size: 13px; line-height: 1.7; }
dialog#credits::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
dialog#credits h2 { margin: 0 0 14px; font-weight: 400; letter-spacing: .2em; color: var(--ink); font-size: 18px; }
dialog#credits h3 { margin: 18px 0 6px; font-size: 13px; color: var(--gold); letter-spacing: .12em; font-weight: 400; }
dialog#credits a { color: var(--gold); }
dialog#credits ul { padding-left: 18px; margin: 0; }
dialog#credits .close { position: absolute; right: 16px; top: 12px; font-size: 22px; color: var(--ink3); }
#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(216, 180, 106, .9); color: #140f0a; font-size: 13px; opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 9; }
#toast.on { opacity: 1; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; color: var(--ink); }

@media (max-width: 720px) {
  .made span { display: none; }
  .made img { height: 13px; }
  .lang button { padding: 4px 7px; font-size: 11px; }
  .rail ol { gap: 12px; }
  .rail li { font-size: 10px; letter-spacing: .1em; }
  .next { right: 14px; bottom: calc(60px + var(--safe-b)); }
  .letgo { bottom: calc(110px + var(--safe-b)); }
  .mark-en { display: none; }
  .lede { font-size: 14px; }
  .themes { gap: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .intro, .endcard, .end-mark img, .end-mark .bronze { transition-duration: .01s !important; } }
[hidden] { display: none !important; }
button:focus, a:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.enter:focus-visible { outline-offset: 5px; }
@media (max-width: 720px) {
  .eyebrow { flex-direction: column; gap: 8px; letter-spacing: .4em; }
  .eyebrow i { width: 1px; height: 14px; }
  .eyebrow span:last-child { font-size: 9px; letter-spacing: .24em; }
  .how em { display: block; font-size: 12px; }
}

/* ---------- the film: viewer + download ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 6, 5, .35); backdrop-filter: blur(6px); font-size: 12px; letter-spacing: .14em; color: var(--ink2); transition: all .3s; }
.pill:hover { color: var(--ink); border-color: var(--gold2); }
.pill svg { width: 12px; height: 12px; fill: var(--gold); }
.pill .en { font-size: 13px; letter-spacing: .04em; }
html[data-lang="both"] .pill .en { display: none; }
.intro-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; }
.intro-actions .enter { margin-top: 0; }
.film-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; color: var(--ink2); font-size: 13px; letter-spacing: .14em; border-bottom: 1px solid transparent; transition: all .3s; }
.film-link:hover { color: var(--ink); border-bottom-color: var(--gold2); }
.film-link svg { width: 12px; height: 12px; fill: var(--gold); }
.film-link .en { font-size: 14px; letter-spacing: .02em; color: var(--ink3); }
.film-link i { font-style: normal; font-family: var(--en); color: var(--gold); letter-spacing: .06em; }

.filmview { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(5, 4, 3, .97); backdrop-filter: blur(10px); padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); overflow-y: auto; }
.fv-inner { width: min(1120px, 100%); }
.fv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fv-title { display: flex; align-items: baseline; gap: 14px; }
.fv-zh { font-size: 20px; letter-spacing: .3em; }
.fv-en { font-family: var(--en); font-style: italic; color: var(--ink3); font-size: 16px; }
html[data-lang="en"] .fv-zh { display: none; }
html[data-lang="zh"] .fv-en { display: none; }
#fv-close svg { stroke: var(--ink); }
.fv-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000 url(film/poster.jpg) center / cover no-repeat; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.fv-stage video { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; }
.fv-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(ellipse at center, rgba(5, 4, 3, .55), rgba(5, 4, 3, .82)); transition: opacity .6s; }
.fv-load.done { opacity: 0; pointer-events: none; }
.fv-ring { position: relative; width: 92px; height: 92px; margin-bottom: 8px; }
.fv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fv-ring circle { fill: none; stroke-width: 3; }
.fv-ring .bg { stroke: rgba(216, 180, 106, .18); }
.fv-ring .fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset .25s; }
.fv-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--en); font-size: 18px; color: var(--ink); }
.fv-state { margin: 0; font-size: 14px; letter-spacing: .2em; color: var(--ink); display: flex; gap: 10px; align-items: baseline; }
.fv-state .en { font-size: 14px; letter-spacing: .02em; color: var(--ink2); }
.fv-bytes { margin: 0; font-family: var(--en); font-size: 13px; color: var(--ink3); letter-spacing: .06em; }
#fv-retry { margin-top: 10px; }
.fv-meta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 16px; }
.fv-spec { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink2); letter-spacing: .08em; }
.fv-spec span + span::before { content: "·"; margin-right: 14px; color: var(--gold2); }
html[data-lang="both"] .fv-spec .en { display: none; }
.fv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fv-actions .cta i, .fv-actions .ghost i { font-style: normal; font-family: var(--en); opacity: .75; }
.fv-actions .cta.is-waiting { background: rgba(216, 180, 106, .35); color: rgba(20, 15, 10, .8); }
.fv-actions .cta.is-ready { animation: fvpulse 1.6s ease-out 2; }
@keyframes fvpulse { 0% { box-shadow: 0 0 0 0 rgba(216, 180, 106, .6); } 100% { box-shadow: 0 0 0 18px rgba(216, 180, 106, 0); } }
.fv-note { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--ink3); letter-spacing: .06em; }
.fv-note .en { font-size: 13px; letter-spacing: .02em; }
html[data-lang="both"] .fv-note .en { margin-left: 10px; }
.fv-foot { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; }
.fv-foot .fv-note { flex: 1 1 560px; }
.fv-foot .author-entry { padding-left: 0; padding-right: 0; }
@media (max-width: 720px) {
  .film-pill span { display: none; }
  .film-pill { padding: 0; width: 32px; justify-content: center; }
  .fv-meta { flex-direction: column; align-items: stretch; }
  .fv-actions .cta, .fv-actions .ghost { flex: 1 1 auto; justify-content: center; }
  .fv-zh { font-size: 17px; }
}
a.ghost { text-decoration: none; }

/* native control looks off (iOS draws grey pills otherwise) */
button, .enter, .film-link, .ghost, .cta, .next, .pill, .icon { -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
/* the threshold must fit short phone screens */
.intro { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.intro-inner { padding: 24px 0; }
@media (max-width: 720px), (max-height: 820px) {
  .eyebrow { margin-bottom: 14px; gap: 6px; }
  .eyebrow i { display: none; }
  .t-zh { font-size: clamp(54px, 15vw, 88px); }
  h1 { gap: 8px; }
  .lede { margin-top: 18px; line-height: 1.85; font-size: 14px; }
  .lede.en { margin-top: 8px; font-size: 14px; line-height: 1.5; }
  html[data-lang="both"] .lede.en { display: none; }
  .themes { margin-top: 14px; gap: 6px 14px; }
  .loading { margin-top: 20px; margin-bottom: 30px; }
  .intro-actions { margin-top: 0; gap: 6px; }
  .enter { padding: 12px 30px; }
  .how { margin-top: 8px; line-height: 1.7; }
}

/* ---------- beyond the grotto ---------- */
.author-signature { margin-top: 24px; }
.author-signature::before { content: ""; display: block; width: 32px; height: 1px; margin: 0 auto 8px; background: var(--line); }
.author-entry { display: inline-flex; align-items: center; justify-content: center; gap: 9px; max-width: 100%; min-height: 44px; padding: 6px 12px; color: var(--ink2); font-size: 12px; letter-spacing: .12em; transition: color .3s; }
.author-entry svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .65; transition: opacity .3s; }
.author-entry .en { font-size: 14px; letter-spacing: .02em; }
.author-entry i { font-style: normal; font-family: var(--en); color: var(--gold2); transition: color .3s; }
.author-entry:hover { color: var(--ink); }
.author-entry:hover svg { opacity: 1; }
.author-entry:hover i { color: var(--gold); }
html[data-lang="both"] .author-entry .en, html[data-lang="both"] #author .en { display: none !important; }

dialog#author { width: min(440px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px - var(--safe-t) - var(--safe-b)); overflow-y: auto; padding: 32px 28px 24px; border: 1px solid var(--line); border-radius: 14px; background: #0e0c0a; color: var(--ink2); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
dialog#author::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
dialog#author[open] { animation: author-arrive .24s ease-out; }
dialog#author[open]::backdrop { animation: author-backdrop .24s ease-out; }
.author-close { position: absolute; top: 10px; right: 10px; border-color: transparent; background: transparent; backdrop-filter: none; }
.author-close svg { stroke: var(--ink2); }
.author-eyebrow { margin: 0 0 12px; font-family: var(--en); font-size: 10px; letter-spacing: .28em; color: var(--gold); }
dialog#author h2 { margin: 0; padding-right: 4px; font-size: 22px; font-weight: 400; line-height: 1.5; letter-spacing: .12em; color: var(--ink); }
dialog#author h2 .en { font-size: 25px; letter-spacing: .02em; }
.author-copy { margin: 18px 0 22px; font-size: 13px; line-height: 1.95; }
.author-copy p { margin: 0 0 12px; }
.author-copy p:last-child { margin-bottom: 0; }
.author-copy .en { font-size: 16px; line-height: 1.6; }
.author-contacts { margin: 0; }
.author-contact { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 60px; border-top: 1px solid var(--line); }
.author-contact dt { font-size: 12px; color: var(--ink3); }
.author-contact dt .en { font-size: 14px; font-style: normal; }
.author-contact dd { margin: 0; font-family: var(--en); font-size: 17px; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; color: var(--ink); user-select: text; }
.author-contact button, .author-contact a { display: inline-flex; gap: 4px; align-items: baseline; justify-content: flex-end; min-width: 48px; min-height: 44px; padding: 12px 0 12px 8px; font-size: 12px; line-height: 20px; text-decoration: none; color: var(--gold); }
.author-contact button .en, .author-contact a .en { font-size: 15px; letter-spacing: .02em; }
.author-contact a i { font-family: var(--en); font-style: normal; }
.author-notice { min-height: 36px; margin: 14px 0 0; font-size: 11px; line-height: 1.7; text-align: center; color: var(--ink3); }
.author-notice .en { font-size: 13px; letter-spacing: .02em; }
.author-notice.is-success { color: var(--gold); }
.author-contact dd.is-selected { color: var(--gold); }

@keyframes author-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes author-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 720px) {
  .author-signature { margin-top: 20px; }
  .fv-foot { align-items: flex-start; }
  .fv-foot .fv-note { flex: 1 1 100%; }
  dialog#author { padding: 30px 22px 20px; }
  dialog#author h2 { font-size: 20px; }
  .author-contact { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; }
}
@media (max-width: 720px), (max-height: 680px) {
  .endcard { overflow-y: auto; padding: calc(76px + var(--safe-t)) 0 calc(44px + var(--safe-b)); }
  .end-inner { margin: auto; }
}
@media (max-height: 680px) {
  .end-mark { width: 88px; height: 88px; margin-bottom: 22px; }
  .end-actions { margin-top: 24px; }
  .author-signature { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .author-entry, .author-entry svg, .author-entry i { transition: none; }
  dialog#author[open], dialog#author[open]::backdrop { animation: none; }
}
