@charset "UTF-8";
:root {
  --bg:#15121f; --surface:#211e2d; --surface-2:#2c283a; --ink:#f0ebf1;
  --muted:#b8afc2; --accent:#e5bace; --accent-2:#adcbe8; --line:#e9d9f225;
  --radius:16px; --sans:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --serif:"Songti SC","STSong","SimSun","Noto Serif CJK SC",serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:78px; }
body { margin:0; color:var(--ink); background:var(--bg); font-family:var(--sans); font-size:15px; line-height:1.65; -webkit-font-smoothing:antialiased; overflow-wrap:break-word; }
button,input,select { font:inherit; }
button,a,input { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; color:inherit; border:0; }
a { color:inherit; text-decoration:none; }
img,svg { display:block; max-width:100%; }
button:disabled,input:disabled { opacity:.45; cursor:default; }
/* Author display rules must never override the hidden state. */
[hidden] { display:none!important; }
:focus-visible { outline:2px solid var(--accent-2); outline-offset:5px; }
main:focus { outline:none; }
::selection { background:#f2d9e8; color:#4b3555; }
.sr-only { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.skip-link { position:fixed; left:16px; top:-90px; z-index:200; background:var(--surface); border:1px solid var(--accent); padding:12px 20px; border-radius:8px; }
.skip-link:focus { top:16px; }
.icon { display:inline-flex; width:22px; height:22px; flex-shrink:0; }
.icon svg { width:100%; height:100%; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:9px; border:1px solid var(--line); background:var(--surface); color:var(--ink); padding:11px 18px; min-height:44px; border-radius:9px; transition:background .2s,border-color .2s; }
.button:hover { background:var(--surface-2); border-color:var(--accent); }
.primary { background:var(--accent); color:var(--bg); border-color:transparent; }
.primary:hover { background:var(--accent-2); }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; padding:10px; color:var(--ink); background:transparent; flex-shrink:0; }
.icon-button>span:not(.icon) { display:none; }
.icon-button:hover { background:var(--line); }
.text-link { font-size:13px; border-bottom:1px solid var(--line); padding-bottom:3px; }
.text-link:hover { border-color:var(--accent); }
.eyebrow { font-size:11px; letter-spacing:.08em; color:var(--muted); }
.in-page .site-header { display:none; }
.page { position:relative; width:min(1080px,calc(100% - 64px)); margin:0 auto; min-height:75svh; padding:32px 0 110px; outline:none; }
.page-head { margin:0 0 28px; }
.back-link { display:inline-flex; align-items:center; gap:7px; min-height:44px; color:var(--muted); font-size:12px; margin:0 0 22px; }
.back-link .icon { width:17px; height:17px; }
.back-link:hover { color:var(--ink); }
.page-title { font:500 clamp(27px,3.4vw,38px)/1.4 var(--serif); letter-spacing:.035em; margin:0 0 12px; }
.page-description { color:var(--muted); font-size:13px; max-width:760px; margin:0; line-height:1.9; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:22px; }
.toolbar input { width:100%; min-width:0; max-width:460px; padding:12px 15px; min-height:44px; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:9px; }
.toolbar input::placeholder { color:var(--muted); opacity:1; }
.toolbar .button { font-size:12px; white-space:nowrap; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.chip { min-height:40px; border:1px solid var(--line); padding:7px 15px; border-radius:22px; background:transparent; color:var(--muted); font-size:12px; transition:background .18s,color .18s,border-color .18s; }
.chip.active { color:var(--bg); border-color:var(--accent); background:var(--accent); }
.chip:hover:not(.active) { background:var(--surface); color:var(--ink); }
.chip:active { transform:scale(.96); }
.result-count,.page-note { font-size:12px; color:var(--muted); margin:18px 0; }
.gallery-head { position:sticky; top:0; z-index:20; margin:0 -14px 18px; padding:7px 14px; background:var(--bg); border-bottom:1px solid var(--line); }
.gallery-headline { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.gallery-tools { display:flex; align-items:center; gap:8px; }
.gallery-head .back-link { margin:0; }
.gallery-heading h1 { font-size:18px; font-weight:500; margin:0; }
.gallery-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.emote-card { min-width:0; padding:10px; background:var(--surface); border:1px solid var(--line); border-radius:12px; text-align:center; transition:border-color .2s,background .2s; }
.emote-card:hover { background:var(--surface-2); border-color:var(--accent); }
.emote-card img { width:100%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:7px; background:transparent; }
.emote-card>span { display:block; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; font-size:10px; color:var(--muted); margin:8px 0 0; }
.gallery-sentinel { height:1px; margin-top:24px; }
.gallery-credit { font-size:11px; color:var(--muted); line-height:1.9; margin-top:24px; }
.gallery-credit a { text-decoration:underline; text-underline-offset:3px; }
.load-more { display:flex; margin:22px auto; }
.gallery-empty { min-height:180px; display:grid; place-items:center; color:var(--muted); }
.is-refreshing .icon { animation:refresh-spin .65s ease-out; }
@keyframes refresh-spin { to { transform:rotate(360deg); } }
.fic-disclaimer { font-size:12px; line-height:1.9; color:var(--muted); border-left:2px solid var(--accent); padding:6px 0 6px 14px; margin:16px 0 25px; }
.fic-list { border-top:1px solid var(--line); }
.fic-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center; border-bottom:1px solid var(--line); padding:25px 20px; transition:background .2s; }
.fic-row:hover { background:var(--surface); }
.fic-row-main { min-width:0; }
.fic-row h2 { font:500 23px/1.5 var(--serif); margin:0 0 6px; letter-spacing:.02em; }
.fic-row-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 15px; font-size:11px; color:var(--muted); }
.tag { display:inline-block; padding:2px 8px; border:1px solid var(--line); border-radius:20px; font-size:10px; color:var(--muted); }
.fic-lead { font-size:13px; line-height:1.8; color:var(--muted); margin:10px 0 0; max-width:760px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.fic-row-arrow { color:var(--accent); }
.reader { max-width:760px; margin:auto; padding:0 20px 50px; }
.reader-title { font:500 clamp(27px,4vw,39px)/1.5 var(--serif); margin:12px 0; }
.fic-meta { font-size:12px; color:var(--muted); }
.fic-meta a { text-decoration:underline; text-underline-offset:3px; }
.reader-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-block:1px solid var(--line); margin:26px 0 36px; padding:14px 0; }
.reader-controls label { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); }
.reader-controls input { width:110px; }
.reader-controls .button { font-size:11px; padding:8px 12px; min-height:40px; }
input[type=range] { accent-color:var(--accent-2); cursor:pointer; }
.reader-body { font:var(--reading-size,19px)/2.05 var(--serif); letter-spacing:.03em; overflow-wrap:anywhere; }
.reader-body p { margin:0 0 1.4em; }
.reader-body mark { background:transparent; color:var(--accent); font-weight:600; }
.reader-body .highlight { border-left:2px solid var(--accent); padding:10px 0 10px 20px; margin:30px 0; }
.reader-navigation { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line); margin-top:40px; padding-top:22px; }
.reader-navigation a { font-size:12px; }
.resource-list { max-width:760px; border-top:1px solid var(--line); }
.resource-option { display:flex; align-items:center; gap:20px; padding:23px 18px; border-bottom:1px solid var(--line); background:transparent; transition:background .2s; }
.resource-option:hover { background:var(--surface); }
.resource-option>.icon { color:var(--accent-2); }
.resource-option-copy { display:flex; flex:1; flex-direction:column; gap:5px; min-width:0; }
.resource-option-copy strong { font-size:17px; font-weight:500; }
.resource-option-copy>span { color:var(--muted); font-size:12px; }
.resource-breadcrumb { display:flex; gap:9px; align-items:center; flex-wrap:wrap; font-size:12px; color:var(--muted); margin-bottom:22px; }
.resource-breadcrumb a { padding:8px 0; text-decoration:underline; text-underline-offset:4px; }
.download-track-list { list-style:none; padding:0; margin:0; max-width:800px; max-height:min(65svh,630px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--accent) transparent; border-block:1px solid var(--line); overscroll-behavior:contain; }
.download-track { display:flex; align-items:center; gap:15px; padding:13px 10px; border-bottom:1px solid var(--line); flex-shrink:0; }
.download-track img { width:54px; height:54px; object-fit:cover; border-radius:6px; }
.download-track-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px; }
.download-track strong { font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.download-track small,.download-track span { color:var(--muted); font-size:11px; }
.download-track>.button { font-size:12px; }
.track-list { list-style:none; margin:0; padding:0; }
.track-row { display:flex; align-items:center; gap:12px; padding:12px; border-bottom:1px solid var(--line); border-radius:8px; }
.track-row:hover,.track-row.is-current { background:var(--surface); }
.track-select { display:flex; align-items:center; gap:15px; flex:1; min-width:0; background:none; color:var(--ink); text-align:left; padding:0; }
.track-index { font-size:11px; width:24px; flex-shrink:0; color:var(--muted); }
.track-cover { width:46px; height:46px; border-radius:6px; object-fit:cover; }
.track-copy { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.track-copy strong { font-size:14px; font-weight:500; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.track-copy>span { color:var(--muted); font-size:11px; }
.track-select>.icon { width:17px; }
.track-row.is-current .track-index { color:var(--accent-2); }
dialog { width:min(600px,calc(100% - 28px)); max-height:85svh; padding:24px; border:1px solid var(--line); border-radius:18px; color:var(--ink); background:var(--surface); box-shadow:0 25px 100px #09061255; overscroll-behavior:contain; }
dialog::backdrop { background:#0d0b17ad; }
html:has(dialog[open]) { overflow:hidden; }
.dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:14px; margin-bottom:18px; border-bottom:1px solid var(--line); }
.dialog-head h2 { font-size:17px; font-weight:500; margin:0; overflow-wrap:anywhere; }
.emote-stage { display:grid; place-items:center; min-height:160px; background:transparent; border-radius:10px; padding:18px; }
.emote-original { max-height:52svh; object-fit:contain; }
.dialog-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:15px; margin-top:20px; }
.dialog-actions .button { font-size:12px; }
#toast { position:fixed; z-index:100; bottom:110px; left:50%; width:max-content; max-width:calc(100% - 32px); padding:11px 18px; border-radius:10px; background:var(--ink); color:var(--bg); opacity:0; transform:translate(-50%,10px); pointer-events:none; transition:opacity .2s,transform .2s; font-size:12px; box-shadow:0 4px 30px #0002; }
#toast.visible { opacity:1; transform:translate(-50%,0); }
.scene-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity 1s; pointer-events:none; }
.scene-video.is-visible { opacity:1; }
.quote-card { user-select:text; -webkit-user-select:text; overflow-wrap:anywhere; }
.quote-card #quote-text,.quote-card #quote-source { transition:opacity .26s ease,transform .26s ease; }
.quote-card.quote-changing #quote-text,.quote-card.quote-changing #quote-source { opacity:0; transform:translateY(4px); }
.noscript-note { text-align:center; padding:20px; }
@media(max-width:1000px) { .gallery-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:700px) {
  html { scroll-padding-top:64px; }
  .page { width:calc(100% - 28px); padding-top:14px; }
  .page-head { margin-bottom:22px; } .back-link { margin-bottom:15px; }
  .page-title { font-size:28px; } .page-description { font-size:12px; }
  .toolbar { gap:8px; margin-bottom:18px; } .toolbar input { font-size:13px; padding:10px 12px; }
  .toolbar .button { font-size:11px; padding:10px; gap:4px; }
  .toolbar .button .icon { width:16px; }
  .chips { gap:6px; } .chip { font-size:11px; padding:6px 12px; min-height:38px; }
  .gallery-head { margin-inline:-14px; padding:4px 14px; } .gallery-head .back-link { margin:0; }
  .gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  .emote-card { padding:6px; border-radius:9px; } .emote-card>span { font-size:9px; margin-top:6px; }
  .fic-row { padding:20px 8px; gap:10px; } .fic-row h2 { font-size:22px; } .fic-lead { font-size:12px; }
  .fic-disclaimer { font-size:11px; margin-bottom:22px; }
  .reader { padding:0 4px 30px; } .reader-title { font-size:29px; }
  .reader-navigation .button { padding:10px; font-size:11px; }
  .resource-option { padding:20px 8px; gap:14px; } .resource-option-copy strong { font-size:16px; }
  .download-track { padding:12px 4px; gap:10px; } .download-track img { width:44px; height:44px; }
  .download-track>.button { font-size:11px; padding:8px; }
  .track-row { gap:8px; padding:12px 2px; } .track-select { gap:9px; } .track-index { width:17px; font-size:10px; }
  .track-cover { width:40px; height:40px; } .track-copy strong { font-size:12px; } .track-copy>span { font-size:10px; }
  .track-row .icon-button { width:40px; height:40px; }
  dialog { padding:18px; border-radius:14px; } .dialog-head h2 { font-size:15px; }
  .emote-stage { padding:12px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
/* Content modules keep their controls independent from decorative home layouts. */
.gallery-head { display:flex; justify-content:space-between; align-items:center; }
.gallery-back .icon { transform:rotate(180deg); }
.gallery-refresh.is-refreshing .icon { animation:refresh-spin .65s ease-out; }
.emote-missing { display:grid; place-items:center; aspect-ratio:1; color:var(--muted); font-size:11px; white-space:normal!important; }
html.emotes-open { overscroll-behavior-y:contain; }
.fic-row-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; }
.fic-row-title h2 { margin:0; }
.fic-row-main { display:block; position:relative; padding-right:26px; }
.fic-row-arrow { position:absolute; right:0; top:5px; }
.fic-row-meta { justify-content:flex-end; text-align:right; }
.fic-row-meta a { text-decoration:underline; text-underline-offset:4px; }
.download-track-preview { display:flex; align-items:center; gap:14px; flex:1; min-width:0; text-align:left; background:transparent; color:var(--ink); padding:0; }
.download-track-copy strong { color:var(--ink); }
.download-track-preview>.icon { width:18px; height:18px; color:var(--accent-2); }
.download-track.is-current { background:var(--surface); }
.download-track.is-current .download-track-copy strong { color:var(--accent); }
@media(max-width:700px) {
  .fic-row { grid-template-columns:minmax(0,1fr); gap:8px; }
  .fic-row-meta { justify-content:flex-start; text-align:left; margin:0; }
  .download-track-preview { gap:10px; }
  .download-track-preview>.icon { display:none; }
  .download-track strong { font-size:12px; }
}
