:root{font-size:16px;color-scheme:dark;--bg:#10171e;--panel:#18232d;--line:#314251;--muted:#abc0cf;--accent:#9bdfca}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#e5edf2;font:1rem/1.48 system-ui,"Microsoft JhengHei",sans-serif;height:100vh;display:flex;flex-direction:column}header{display:flex;align-items:baseline;gap:20px;padding:12px 20px 6px}h1{font-size:1.5rem;line-height:1.3;margin:0}header span{color:var(--muted);font-size:1rem}#about{padding:0 20px 10px;color:var(--muted);font-size:1rem;max-height:86px;overflow:auto}nav{display:flex;gap:4px;padding:0 20px 10px;flex-wrap:wrap}:is(button,:where(a.static-link)),input,select{font:inherit;color:inherit;border:1px solid var(--line);background:var(--panel);border-radius:5px;padding:6px 10px}:is(button,:where(a.static-link)){cursor:pointer}:is(button,:where(a.static-link)):hover,a:hover{color:var(--accent);border-color:var(--accent)}:is(button,:where(a.static-link)).active{background:var(--accent);border-color:var(--accent);color:#12281f}:is(button,:where(a.static-link)):disabled{opacity:.35;cursor:default}nav :is(button,:where(a.static-link)){font-size:1rem;padding:6px 12px}.toolbar{display:flex;gap:8px;align-items:center;padding:0 20px 10px}#query{width:340px;max-width:40vw}#filter{max-width:260px}#status{margin-left:auto;color:var(--muted);font-size:1rem;white-space:nowrap}main{flex:1;min-height:0;overflow:auto;margin:0 20px;border:1px solid var(--line);border-radius:6px;scrollbar-gutter:stable;background:#131c24}footer{display:flex;align-items:center;justify-content:center;gap:18px;padding:10px 20px;min-height:56px}#pages{display:flex;gap:4px;align-items:center;flex-wrap:wrap}#pages :is(button,:where(a.static-link)){min-width:34px}footer label{white-space:nowrap;color:var(--muted);font-size:1rem}#jump{width:62px;padding:5px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;padding:12px;align-content:start}.card{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:10px;display:flex;flex-direction:column;gap:5px}.picture{height:160px;display:flex;align-items:center;justify-content:center;background:transparent;border-radius:3px;overflow:hidden}.picture img{image-rendering:pixelated;max-height:100%;max-width:100%;object-fit:contain}.frames .picture img{height:128px;max-height:150px}.name{font-weight:600;overflow-wrap:anywhere}.muted,.info{color:var(--muted);font-size:1rem}a{color:#b4e9ff;text-decoration:none}a:focus-visible,:is(button,:where(a.static-link)):focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.card>a:last-child{font-size:1rem}audio{max-width:100%;width:100%;height:32px;margin-top:5px}table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:1rem}th{position:sticky;top:0;background:#243441;text-align:left;color:#d7f1ea;z-index:1;font-size:1rem}td,th{padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}tr:nth-child(even){background:#17232d}tbody tr:hover{background:#21303b}td p{margin:0 0 5px}td small{display:block;color:var(--muted);font-size:1rem;margin-top:4px}details{margin-top:5px;font-size:1rem}summary{cursor:pointer;color:#a8d7e7}.prose{white-space:pre-wrap;line-height:1.65}.clamp{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}.reading{max-width:1100px;padding:20px 24px;margin:auto}.reading h2{font-size:1.125rem}.reading pre{font:1rem/1.6 Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.fullimage{padding:16px;text-align:center}.fullimage img{max-width:100%;height:auto;image-rendering:pixelated}.empty{padding:28px;color:var(--muted)}.badge{display:inline-block;background:#253248;color:#baf0da;border-radius:3px;padding:1px 5px;font-size:1rem;margin-right:4px}@media(min-width:1700px){.grid{grid-template-columns:repeat(auto-fill,minmax(215px,1fr))}.picture{height:180px}}@media(max-width:850px){header{padding:10px}header span{display:none}#about,nav{padding-left:10px;padding-right:10px}.toolbar{flex-wrap:wrap;padding-left:10px;padding-right:10px}#status{margin-left:0}main{margin:0 10px}table{min-width:850px}.grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.picture{height:120px}footer{gap:6px;padding:8px}footer label{display:none}#query{max-width:none;width:100%}}[hidden]{display:none!important}.grid.frames{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--frame-cell)),1fr))}.frames .picture{height:var(--frame-stage);overflow:auto;align-items:safe center;justify-content:safe center}.frames .picture img{width:auto;height:auto;max-width:none;max-height:none;flex:none;object-fit:initial;image-rendering:pixelated}.frame-card{padding:10px;gap:0}.frame-card .picture{width:100%;padding:0;border:0;color:inherit;cursor:zoom-in}.frame-card .picture:hover{border:0;background:transparent;box-shadow:none}.portraits{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.portraits .picture{width:100%;height:176px;padding:8px;border:0;cursor:zoom-in}.portraits .picture:hover{border:0;background:transparent;box-shadow:none}.portraits .picture img{width:160px;height:160px;max-width:100%;max-height:100%}.viewer-open{overflow:hidden}.pose-viewer{position:fixed;inset:0;z-index:1000;background:rgba(5,9,13,.94);display:grid;grid-template-columns:76px minmax(0,1fr) 76px;grid-template-rows:auto minmax(0,1fr);padding:16px;gap:12px}.viewer-toolbar{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:10px}.viewer-count{margin-right:auto;color:var(--muted);font-variant-numeric:tabular-nums}.viewer-stage{min-width:0;min-height:0;overflow:auto;display:flex;align-items:safe center;justify-content:safe center;background:repeating-conic-gradient(#202d38 0% 25%,#263642 0% 50%) 50%/16px 16px;border:1px solid var(--line);border-radius:7px}.viewer-stage img{flex:none;max-width:none;max-height:none;image-rendering:pixelated}.viewer-stage img.fit{width:auto!important;height:auto!important;max-width:100%;max-height:100%;object-fit:contain}.viewer-arrow{align-self:center;height:88px;font-size:3rem;line-height:1;padding:0}.viewer-close{display:grid;place-items:center;min-width:36px;width:36px;height:36px;padding:0;font-size:24px;line-height:1}@media(max-width:700px){.pose-viewer{grid-template-columns:48px minmax(0,1fr) 48px;padding:8px;gap:6px}.viewer-toolbar{flex-wrap:wrap}.viewer-arrow{font-size:2.2rem;padding:0}}.profile-mode main{background:transparent;border:0}.profile{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;max-width:1600px;margin:0 auto;padding:20px 4px}.profile-portrait{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:20px;align-self:start}.portrait-stage{min-height:260px;display:flex;align-items:safe center;justify-content:safe center;overflow:auto;background:transparent;border-radius:5px;padding:16px}.portrait-stage img{max-width:none;max-height:none;flex:none;image-rendering:pixelated}.portrait-heading{margin-top:18px!important}.portrait-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.portrait-thumbnails :is(button,:where(a.static-link)){aspect-ratio:1;padding:3px;overflow:hidden;cursor:zoom-in}.portrait-thumbnails img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.profile h2{font-size:1.5rem;margin:18px 0 6px}.profile h3{font-size:1.125rem;margin:0 0 14px;color:var(--accent)}.profile p{margin:10px 0}.profile-intro{line-height:1.8}.profile-body{min-width:0;display:flex;flex-direction:column;gap:18px}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:14px 16px}.stat-value{display:block;font-size:1.65rem;line-height:1.4;color:#ecf7f4}.profile-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.profile-panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:20px}.facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:12px 20px;margin:0}.facts dt{color:var(--muted)}.facts dd{margin:0;overflow-wrap:anywhere}.profile details{margin:0}.profile details>div{margin-top:10px}@media(max-width:1000px){.profile{grid-template-columns:240px minmax(0,1fr)}.profile-columns{grid-template-columns:1fr}}@media(max-width:650px){.profile{grid-template-columns:1fr}.profile-portrait{max-width:100%}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.viewer-stage img.fit{width:100%!important;height:100%!important}.spell-table .spell-character-column{text-align:center}.spell-table .spell-description-column,.spell-table .spell-effect-column{text-align:left}.spell-check{display:block;color:var(--accent);font-weight:700;font-size:1.15rem}