/* R194 厉鬼图鉴（列表）——黑色画布 + 玻璃容器；与 App 的 GhostArchivePageR194 同一套视觉 */
@view-transition { navigation: auto; }
:root { --ga-bg:#06070a; --ga-card:#101116; --ga-glass:#16171e; --ga-text:#f4f1f4; --ga-muted:#a7a3ae; --ga-faint:#75717d; --ga-like:#ef8aa6; --ga-ease:cubic-bezier(.22,1,.36,1); --ga-swing:cubic-bezier(.72,0,.24,1); }
body { background:var(--ga-bg); }
.ga { max-width:1180px; margin:0 auto; padding:6px 14px 140px; color:var(--ga-text); -webkit-tap-highlight-color:transparent; }
.ga-defs { position:absolute; width:0; height:0; overflow:hidden; }

/* ---------- tools: level bar + search key; the two glass blobs merge (吞并) and stretch apart (粘滞) ---------- */
.ga-tools { position:sticky; top:calc(var(--ygz-header-top, 10px) + var(--ygz-header-height, 54px) + 10px); z-index:30; height:46px; margin:0 0 14px; max-width:620px; }
.ga-goo { position:absolute; inset:-14px -6px; filter:url(#gaGoo) drop-shadow(0 12px 22px rgba(0,0,0,.42)); pointer-events:none; }
.ga-blob { position:absolute; top:14px; height:46px; border-radius:23px; background:var(--ga-glass); }
.ga-blob.a { left:6px; width:calc(100% - 12px - 56px); transition:left .54s var(--ga-swing) .06s, width .54s var(--ga-swing) .06s; }
.ga-blob.b { right:6px; width:46px; transition:width .5s var(--ga-swing); }
.ga-tools.open .ga-blob.a { left:calc(100% - 6px - 46px); width:46px; transition:left .46s var(--ga-swing), width .46s var(--ga-swing); }
.ga-tools.open .ga-blob.b { width:calc(100% - 12px); transition:width .52s var(--ga-swing) .04s; }
.ga-tools::after { content:""; position:absolute; inset:0 56px 0 0; border-radius:23px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.05); pointer-events:none; transition:opacity .2s ease; }
.ga-tools.open::after, .ga-tools.moving::after { opacity:0; }

.ga-levels { position:absolute; left:0; top:0; width:calc(100% - 56px); height:46px; display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); padding:4px; box-sizing:border-box; transition:opacity .26s ease .2s, transform .46s var(--ga-ease) .14s; }
.ga-tools.open .ga-levels { opacity:0; transform:scale(.96) translateX(18px); pointer-events:none; transition:opacity .16s ease, transform .4s var(--ga-ease); }
.ga-levels button { position:relative; z-index:1; border:0; background:transparent; color:color-mix(in srgb, var(--ga-muted) 60%, var(--lc)); font:800 13px/1 inherit; font-family:inherit; cursor:pointer; border-radius:19px; transition:color .3s var(--ga-ease); }
.ga-levels button[data-level="all"] { color:var(--ga-muted); }
.ga-levels button.on { color:color-mix(in srgb, var(--lc) 75%, #fff); }
.ga-levels button[data-level="all"].on { color:var(--ga-text); }
.ga-ind { position:absolute; left:0; top:4px; height:38px; width:var(--w, 0px); transform:translateX(var(--x, 4px)); border-radius:19px; background:color-mix(in srgb, var(--ic, #fff) 18%, transparent); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--ic, #fff) 40%, transparent); transition:transform .46s cubic-bezier(.3,1.35,.5,1), width .46s var(--ga-ease), background .3s ease, box-shadow .3s ease; }

.ga-search { position:absolute; inset:0; pointer-events:none; }
.ga-sbtn, .ga-sclose { position:absolute; top:0; width:46px; height:46px; display:grid; place-items:center; border:0; background:transparent; color:var(--ga-text); cursor:pointer; pointer-events:auto; border-radius:23px; }
.ga-sbtn { right:0; transition:right .5s var(--ga-swing), color .2s ease; }
.ga-sbtn svg, .ga-sclose svg, .ga-chip svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.ga-sbtn:active { transform:scale(.9); }
.ga-tools.open .ga-sbtn { right:calc(100% - 46px); color:var(--ga-muted); pointer-events:none; }
.ga-input { position:absolute; left:42px; right:44px; top:0; height:46px; border:0; outline:0; background:transparent; color:var(--ga-text); font:500 15px/46px inherit; font-family:inherit; opacity:0; transform:translateX(16px); transition:opacity .2s ease, transform .4s var(--ga-ease); pointer-events:none; }
.ga-input::-webkit-search-cancel-button { display:none; }
.ga-input::placeholder { color:#6f7280; }
.ga-sclose { right:0; opacity:0; transform:scale(.6) rotate(-45deg); transition:opacity .2s ease, transform .4s var(--ga-ease); pointer-events:none; color:var(--ga-muted); }
.ga-tools.open .ga-input { opacity:1; transform:none; pointer-events:auto; transition-delay:.16s; }
.ga-tools.open .ga-sclose { opacity:1; transform:none; pointer-events:auto; transition-delay:.18s; }

.ga-chip { display:flex; align-items:center; gap:8px; height:38px; padding:0 4px 0 14px; margin:-2px 0 14px; border-radius:19px; background:rgba(255,255,255,.07); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); color:var(--ga-text); font-weight:700; font-size:13px; animation:gaDrop .32s var(--ga-ease) both; }
.ga-chip[hidden] { display:none; }
.ga-chip > svg { width:16px; height:16px; color:var(--ga-muted); flex:none; }
.ga-chip span { flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ga-chip button { width:34px; height:34px; border:0; background:transparent; color:var(--ga-muted); display:grid; place-items:center; cursor:pointer; border-radius:17px; }
@keyframes gaDrop { from { opacity:0; transform:translateY(-8px); } }

/* ---------- grid ---------- */
.ga-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; transition:opacity .2s ease; }
.ga-grid.dim { opacity:.35; pointer-events:none; }
@media (min-width:680px) { .ga-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; } }
@media (min-width:1020px) { .ga-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; } }

.ga-card { position:relative; display:block; aspect-ratio:1 / 1.34; border-radius:20px; overflow:hidden; background:var(--ga-card); color:#fff; text-decoration:none; isolation:isolate; transform:translateZ(0); transition:transform .5s cubic-bezier(.3,1.4,.5,1); -webkit-user-select:none; user-select:none; }
.ga-card:active { transform:scale(.965); transition-duration:.12s; }
.ga-card.rise { animation:gaRise .52s var(--ga-ease) both; animation-delay:calc(var(--d, 0) * 45ms); }
@keyframes gaRise { from { opacity:0; transform:translateY(18px) scale(.965); } 40% { opacity:1; } }
.ga-media { position:absolute; inset:0; }
.ga-media img { width:100%; height:100%; object-fit:cover; display:block; opacity:0; transition:opacity .3s ease, transform .7s var(--ga-ease); }
.ga-media img.on { opacity:1; }
@media (hover:hover) { .ga-card:hover .ga-media img { transform:scale(1.04); } }
.ga-shade { position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 24%), linear-gradient(180deg, rgba(5,6,8,0) 38%, rgba(5,6,8,.55) 62%, rgba(5,6,8,.95)); box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); border-radius:inherit; }
.ga-shade::after { content:""; position:absolute; left:29%; right:29%; bottom:0; height:2px; border-radius:2px; background:color-mix(in srgb, var(--lv) 55%, transparent); }
.ga-top { position:absolute; left:12px; right:9px; top:9px; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.ga-code { font-size:9.5px; font-weight:800; letter-spacing:.12em; color:rgba(255,255,255,.62); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding-top:3px; }
.ga-badge { flex:none; min-width:28px; height:22px; padding:0 8px; box-sizing:border-box; display:grid; place-items:center; border-radius:11px; font-style:normal; font-weight:900; font-size:11.5px; color:color-mix(in srgb, var(--lv) 65%, #fff); background:color-mix(in srgb, var(--lv) 22%, rgba(7,8,12,.55)); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--lv) 60%, transparent); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.ga-copy { position:absolute; left:0; right:0; bottom:0; padding:0 12px 12px; display:flex; flex-direction:column; gap:5px; }
.ga-copy strong { font-size:16px; font-weight:850; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ga-copy em { font-style:normal; font-size:11.5px; line-height:1.3; color:rgba(255,255,255,.65); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ga-stats { display:flex; gap:12px; margin-top:3px; font-size:10.5px; font-weight:800; color:rgba(255,255,255,.55); }
.ga-stats span { display:inline-flex; align-items:center; gap:4px; }
.ga-stats svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linejoin:round; }
.ga-stats .on { color:var(--ga-like); }
.ga-stats .on svg { fill:currentColor; }

.ga-card.sk { pointer-events:none; background:linear-gradient(100deg, rgba(255,255,255,.035) 30%, rgba(255,255,255,.075) 50%, rgba(255,255,255,.035) 70%) 0 0 / 260% 100%, var(--ga-card); animation:gaShim 1.5s linear infinite; }
@keyframes gaShim { from { background-position:130% 0, 0 0; } to { background-position:-130% 0, 0 0; } }

.ga-state { display:flex; flex-direction:column; align-items:center; gap:12px; padding:70px 20px 40px; color:var(--ga-muted); font-size:13.5px; text-align:center; animation:gaDrop .36s var(--ga-ease) both; }
.ga-state[hidden] { display:none; }
.ga-state svg { width:34px; height:34px; fill:none; stroke:rgba(255,255,255,.4); stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.ga-state.retry { cursor:pointer; }
.ga-sentinel { height:64px; display:grid; place-items:center; }
.ga-spin { width:22px; height:22px; border-radius:50%; border:2px solid rgba(255,255,255,.14); border-top-color:rgba(255,255,255,.7); animation:gaSpin .8s linear infinite; }
.ga-spin[hidden] { display:none; }
@keyframes gaSpin { to { transform:rotate(360deg); } }

::view-transition-group(gh-hero) { animation-duration:.5s; animation-timing-function:cubic-bezier(.22,1,.36,1); border-radius:20px; overflow:hidden; }
::view-transition-old(gh-hero), ::view-transition-new(gh-hero) { width:100%; height:100%; object-fit:cover; object-position:0 100%; overflow:hidden; }
::view-transition-old(gh-hero) { animation:gaVtOut .26s ease both; }
::view-transition-new(gh-hero) { animation:gaVtIn .38s ease .05s both; }
@keyframes gaVtOut { to { opacity:0; } }
@keyframes gaVtIn { from { opacity:0; } }

@media (prefers-reduced-motion:reduce) {
  .ga *, .ga *::before, .ga *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  @view-transition { navigation: none; }
}
