/* 墨线分镜 · 成就 + 星盘（W3-D 负责）
 * 成就：纸面底；顶部总点数贴纸 + 斜切总进度条、胶带分类页签、白格成就行。
 * 星盘：墨黑底；白色墨线星图（SVG，描边用 non-scaling-stroke，线宽不随缩放变）、底部白格详情。 */

/* ---------- 两屏共用：顶部点数 / 总进度 ---------- */
.ink-meta__head { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 2px 16px 8px; }
.ink-meta__head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ink-meta__points { gap: 8px; padding: 4px 12px; font-size: 12px; }
.ink-meta__points b { font-size: 24px; line-height: 1; font-weight: 400; letter-spacing: .03em; }
.ink-meta__rate { font-weight: 900; font-size: 12px; white-space: nowrap; }
.ink-meta__rate b { font-size: 22px; font-weight: 400; letter-spacing: .03em; }
.ink-meta__tabs { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }

/* ---------- 成就列表 ---------- */
.ink-meta__list { display: flex; flex-direction: column; gap: 12px; padding: 6px 16px 22px; }

.ink-achv__row {
  flex: none;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 58px; align-items: center; gap: 10px;
  padding: 10px 8px 10px 8px;
}
.ink-achv__row.is-l { transform: rotate(-.4deg); }
.ink-achv__row.is-r { transform: rotate(.4deg); }
.ink-achv__row.is-todo { background: #fbf9f4; }

/* 墨线圆章：丝带 + 圆盘（--medal 为档位色）+ 分类图案；未达成整枚灰度 */
.ink-medal { position: relative; width: 52px; height: 58px; }
.ink-medal__svg { display: block; overflow: visible; }
.ink-medal__ribbon { fill: var(--red); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.ink-medal__disc { fill: var(--medal, var(--r1)); stroke: var(--ink); stroke-width: 3; }
.ink-medal__ring { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .5; }
.ink-medal__shine { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; opacity: .65; }
.ink-medal__glyph { fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ink-medal__fill { fill: var(--ink); stroke: none; }
.ink-medal__tier {
  position: absolute; left: 50%; bottom: -3px;
  padding: 0 6px; background: var(--ink); color: var(--yellow);
  font-weight: 900; font-size: 10px; line-height: 14px;
  transform: translateX(-50%) rotate(-4deg);
  white-space: nowrap;
}
.ink-achv__row.is-todo .ink-medal { filter: grayscale(1); opacity: .8; }

.ink-achv__main { min-width: 0; }
.ink-achv__name { font-weight: 900; font-size: 16px; line-height: 1.2; letter-spacing: .02em; }
.ink-achv__desc { margin-top: 2px; font-weight: 700; font-size: 12px; line-height: 1.4; color: #4a4a4a; }
.ink-achv__row.is-todo .ink-achv__desc { color: #6a6354; }
.ink-achv__flavor { margin-top: 4px; padding-left: 7px; border-left: 3px solid var(--yellow); font-weight: 700; font-size: 11px; line-height: 1.4; color: var(--red-dk); }
.ink-achv__prog { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ink-achv__prog .ink-bar { flex: 1; min-width: 0; }
.ink-achv__prog-n { flex: none; font-size: 14px; }

/* 右侧：点数爆炸贴；达成后下方盖一枚小印章（可重复成就带累计次数） */
.ink-achv__side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ink-achv__pts .ink-burst { font-size: 17px; }
.ink-achv__done { display: flex; align-items: center; gap: 3px; }
.ink-achv__stamp { padding: 0 5px; border-width: 3px; letter-spacing: .06em; transform: rotate(-12deg); }
.ink-achv__times { font-size: 15px; color: var(--red); }

/* ---------- 星盘 ---------- */
.ink-star__points { gap: 6px; padding: 3px 10px; font-size: 11px; }
.ink-star__points b { font-size: 22px; line-height: 1; font-weight: 400; letter-spacing: .03em; }

.ink-star__stage { position: relative; flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.ink-star__dots { position: absolute; inset: 0; opacity: .07; pointer-events: none; }
.ink-star__svg { position: relative; display: block; overflow: visible; width: 100%; height: 100%; touch-action: manipulation; }
/* 重置在左下、当前生效在右下：星图所有节点都落在四条轴线 ±23° 内，斜角是空的 */
.ink-star__reset { position: absolute; left: 12px; bottom: 4px; }
.ink-star__effects-btn { position: absolute; right: 12px; bottom: 4px; }

.ink-star__ring { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.ink-star__gutter { stroke: rgba(255, 255, 255, .16); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.ink-star__tape rect { fill: var(--paper); stroke: var(--ink); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.ink-star__tape text { fill: var(--ink); font-family: var(--font-cjk); font-weight: 900; font-size: 17px; letter-spacing: 1px; }

.ink-star__edge { stroke: rgba(255, 255, 255, .45); stroke-width: 2.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ink-star__edge.is-lit { stroke: var(--yellow); stroke-width: 4px; }

.ink-star__node { cursor: pointer; }
.ink-star__hit { fill: transparent; stroke: none; }
.ink-star__shape { fill: var(--ink); stroke: #fff; stroke-width: 3px; vector-effect: non-scaling-stroke; }
.ink-star__halo { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 2px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ink-star__spark { fill: var(--ink); }
.ink-star__rank {
  fill: #fff; stroke: var(--ink); stroke-width: 4px; paint-order: stroke fill; stroke-linejoin: round;
  font-family: var(--font-num); font-size: 15px; letter-spacing: .5px;
}
.ink-star__node.is-locked .ink-star__shape { stroke: rgba(255, 255, 255, .42); }
.ink-star__node.is-locked .ink-star__halo { stroke: rgba(255, 255, 255, .26); }
.ink-star__node.is-locked .ink-star__rank { fill: rgba(255, 255, 255, .55); }
.ink-star__node.is-lit .ink-star__shape { fill: var(--yellow); }
.ink-star__node.is-lit .ink-star__halo { stroke: var(--yellow); }
.ink-star__node.is-selected .ink-star__shape { stroke-width: 4px; }

.ink-star__sel { fill: none; stroke: var(--red); stroke-width: 4px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ink-star-sel .26s var(--ease-pop) both; }
.ink-star__pulse { fill: none; stroke: var(--yellow); stroke-width: 3px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ink-star-pulse 1.6s ease-out infinite; }
.ink-star__flash { fill: none; stroke: #fff; stroke-width: 4px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ink-star-flash .5s ease-out both; }
.ink-star__node.is-just .ink-star__body { transform-box: fill-box; transform-origin: center; animation: ink-star-lit .46s var(--ease-pop) both; }
@keyframes ink-star-sel { from { transform: scale(.5); opacity: 0; } }
@keyframes ink-star-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes ink-star-flash { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ink-star-lit { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

/* 选中节点的白格 */
.ink-star__detail {
  flex: none; display: flex; flex-direction: column; gap: 4px;
  margin: 0 12px 12px; padding: 8px 12px 10px;
  min-height: 168px; /* 切换节点时高度固定，星图不跳 */
  color: var(--ink); /* 屏幕是墨黑底（字色为白），白格里要换回墨色 */
  box-shadow: 4px 4px 0 var(--red);
}
.ink-star__head { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.ink-star__badge { flex: none; display: block; width: 46px; height: 46px; background: var(--ink); border: 2.5px solid var(--ink); }
.ink-star__badge svg { display: block; width: 100%; height: 100%; }
.ink-star__titles { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ink-star__name { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; line-height: 1.15; }
.ink-star__rank-tag { padding: 1px 8px; font-size: 11px; }
.ink-star__tag { font-weight: 900; font-size: 11px; color: #6a6354; }
.ink-star__desc { font-weight: 800; font-size: 13px; line-height: 1.4; }
.ink-star__reason { min-height: 16px; font-weight: 900; font-size: 12px; line-height: 1.3; color: var(--loss); }
.ink-star__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ink-star__btns { display: flex; align-items: center; gap: 10px; }
.ink-star__cost { gap: 5px; font-size: 12px; }
.ink-star__cost b { font-size: 19px; font-weight: 400; line-height: 1; letter-spacing: .03em; }

/* 当前生效弹层 */
.ink-star__effects-note { margin: 0 0 8px; font-weight: 900; font-size: 12px; color: #6a6354; }
.ink-star__effects-empty { margin: 0; font-weight: 800; font-size: 14px; line-height: 1.5; }
.ink-star__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ink-star__chip { padding: 3px 10px; border: 2.5px solid var(--ink); background: var(--paper-2); font-weight: 900; font-size: 13px; }
