/* 新真灵位业图 · 留存功能样式（每日一神 / 随机一神 / 分享 / 关系图谱）
   沿用古卷轴配色：纸 #f4ecd8 · 朱 #9a3b2e · 墨 #2c2117 · 线 #c9b894 · 灰 #7a6a4f
   非阻塞加载（media=print onload 切换），不增首屏渲染字节。 */
.tools{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.tools button{font-family:inherit;font-size:13px;line-height:1;color:#9a3b2e;background:rgba(244,236,216,.75);
  border:1px solid #c9b894;border-radius:16px;padding:7px 13px;cursor:pointer;transition:.15s}
.tools button:hover{background:#9a3b2e;color:#f4ecd8;border-color:#9a3b2e}

.d-tools{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 2px}
.d-tools button{font-family:inherit;font-size:13.5px;line-height:1;cursor:pointer;border-radius:14px;padding:7px 14px;transition:.15s}
.d-share{color:#7a6a4f;background:rgba(244,236,216,.7);border:1px solid #c9b894}
.d-share:hover{color:#9a3b2e;border-color:#9a3b2e}

.overlay{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;
  background:rgba(28,20,13,.55);padding:18px}
.overlay[hidden]{display:none}
.card{background:#f4ecd8;max-width:760px;width:94%;max-height:88vh;overflow:auto;border:1px solid #c9b894;
  border-radius:12px;padding:18px 20px;box-shadow:0 18px 50px rgba(0,0,0,.35);color:#2c2117}
.card-h{font-size:18px;color:#9a3b2e;letter-spacing:1px;display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid #c9b894;padding-bottom:10px;margin-bottom:12px}
.card-h .x{font-family:inherit;font-size:16px;color:#7a6a4f;background:none;border:none;cursor:pointer;line-height:1}
.card-h .x:hover{color:#9a3b2e}
.empty{color:#7a6a4f;font-size:14.5px;line-height:1.9}
.hint2{color:#7a6a4f;font-size:13px;margin:6px 0 12px;line-height:1.8}
.share-url{width:100%;font-family:inherit;font-size:13.5px;padding:9px 11px;border:1px solid #c9b894;border-radius:8px;
  background:#fffdf6;color:#2c2117;margin-bottom:10px}
.btn{font-family:inherit;cursor:pointer;background:#9a3b2e;color:#f4ecd8;border:1px solid #9a3b2e;border-radius:8px;
  padding:9px 18px;font-size:14px;letter-spacing:2px}
.btn:hover{background:#7e2f24}

#rtoast{position:fixed;left:50%;bottom:34px;transform:translateX(-50%);z-index:120;background:#241a13;color:#f4ecd8;
  font-size:13.5px;padding:9px 16px;border-radius:20px;opacity:0;pointer-events:none;transition:.25s;
  max-width:84vw;text-align:center}
#rtoast.on{opacity:.96}

.gcard svg{width:100%;height:auto;display:block;background:rgba(244,236,216,.4);border-radius:10px}
.ghub{font-size:11px;fill:#f4ecd8;font-family:inherit}
.gvol{font-size:9px;fill:#f4ecd8;font-family:inherit}
.gnode{cursor:pointer;transition:.12s}
.gnode:hover{r:9;stroke:#241a13;stroke-width:2}
.legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:12px;font-size:12px;color:#7a6a4f}
.legend .lg{display:inline-flex;align-items:center;gap:5px}
.legend i{width:11px;height:11px;border-radius:3px;display:inline-block}
.gread{margin-top:10px;font-size:14px;color:#9a3b2e;letter-spacing:1px;text-align:center;min-height:20px}
.gread.on{font-weight:700}

@media(max-width:560px){
  .tools button{padding:6px 11px;font-size:12.5px}
  .card{padding:14px}
}
