/* Author: VIVI x Codex */
/* 对外卡片 · 1080×1350 设计稿坐标，外层用 --k 等比缩放到容器宽度。
   卡面颜色固定浅色（截图/导出要稳定），不跟随页面深浅主题。
   四套色系：sample 样本 / feminine / masculine / neutral —— 只按用户自选或账号自述，⛔ 不从头像昵称猜。
   同一套数值在 card.js 的 PNG 绘制里再用一遍，改这里要同步改那里。 */

.nt-card-box { position: relative; width: 100%; aspect-ratio: 4 / 5; container-type: inline-size; }

.nt-card {
  --k: calc(100cqw / 1080);
  --c-ink: #2d2626;
  --c-muted: #6b6771;
  --c-paper: #fcfbf7;
  --c-accent: #3ca99b;
  --c-accent-ink: #29736a;
  --c-bloom-a: rgba(60, 169, 155, 0.30);
  --c-bloom-b: rgba(242, 199, 92, 0.30);
  --c-bloom-c: rgba(107, 176, 255, 0.20);
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: calc(44 * var(--k));
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 calc(24 * var(--k)) calc(70 * var(--k)) rgba(45, 38, 38, 0.10), 0 0 0 1px rgba(27, 34, 48, 0.10);
  font-family: "PingFang SC", "Noto Sans SC", -apple-system, system-ui, sans-serif;
  isolation: isolate;
  text-align: left;
}
.nt-card[data-theme-card="feminine"] {
  --c-accent: #c9687c; --c-accent-ink: #9c4a5c;
  --c-bloom-a: rgba(242, 181, 202, 0.55); --c-bloom-b: rgba(243, 216, 180, 0.45); --c-bloom-c: rgba(239, 122, 92, 0.18);
}
.nt-card[data-theme-card="masculine"] {
  --c-accent: #3d7fc4; --c-accent-ink: #2d5f94;
  --c-bloom-a: rgba(107, 176, 255, 0.42); --c-bloom-b: rgba(60, 169, 155, 0.26); --c-bloom-c: rgba(216, 234, 79, 0.20);
}
.nt-card[data-theme-card="sample"] {
  --c-accent: #7d6fb8; --c-accent-ink: #5d5192;
  --c-bloom-a: rgba(170, 156, 222, 0.42); --c-bloom-b: rgba(242, 199, 92, 0.30); --c-bloom-c: rgba(242, 181, 202, 0.26);
}

/* 模糊晕染：三团色，⛔ 不用斜线色块 */
.nt-bloom { position: absolute; border-radius: 50%; filter: blur(calc(90 * var(--k))); z-index: -2; pointer-events: none; }
.nt-bloom.b1 { width: calc(720 * var(--k)); height: calc(620 * var(--k)); right: calc(-200 * var(--k)); top: calc(-160 * var(--k)); background: var(--c-bloom-a); }
.nt-bloom.b2 { width: calc(640 * var(--k)); height: calc(560 * var(--k)); left: calc(-220 * var(--k)); bottom: calc(160 * var(--k)); background: var(--c-bloom-b); }
.nt-bloom.b3 { width: calc(520 * var(--k)); height: calc(420 * var(--k)); right: calc(-80 * var(--k)); bottom: calc(-140 * var(--k)); background: var(--c-bloom-c); }
/* 纸张颗粒：SVG 噪点，data: 图片（CSP 已放行 data:） */
.nt-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .30; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .18  0 0 0 0 .15  0 0 0 0 .15  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: calc(320 * var(--k));
}

.nt-in { position: absolute; inset: calc(72 * var(--k)) calc(76 * var(--k)) calc(64 * var(--k)); display: flex; flex-direction: column; }

.nt-head { display: flex; align-items: center; justify-content: space-between; gap: calc(20 * var(--k)); }
.nt-headline {
  margin: 0; white-space: nowrap;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-weight: 900;
  font-size: calc(46 * var(--k)); letter-spacing: calc(2 * var(--k));
}
.nt-headline b { color: var(--c-accent-ink); font-weight: 900; }
.nt-pill {
  flex: 0 0 auto; white-space: nowrap;
  padding: calc(10 * var(--k)) calc(22 * var(--k));
  border-radius: 999px; border: calc(2 * var(--k)) solid color-mix(in srgb, var(--c-accent) 45%, transparent);
  background: rgba(255, 255, 255, 0.62);
  color: var(--c-accent-ink); font-size: calc(24 * var(--k)); font-weight: 800;
}

.nt-who { margin-top: calc(84 * var(--k)); display: flex; align-items: center; gap: calc(22 * var(--k)); min-height: calc(96 * var(--k)); }
.nt-avatar {
  width: calc(96 * var(--k)); height: calc(96 * var(--k)); border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: calc(4 * var(--k)) solid #fff; box-shadow: 0 calc(6 * var(--k)) calc(18 * var(--k)) rgba(45, 38, 38, 0.14);
}
.nt-name {
  margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: calc(40 * var(--k)); font-weight: 800; color: var(--c-ink);
}
.nt-name.is-hidden { color: var(--c-muted); font-weight: 700; }

.nt-label {
  margin: calc(34 * var(--k)) 0 0;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-weight: 900;
  font-size: calc(148 * var(--k)); line-height: 1.04; letter-spacing: calc(-3 * var(--k));
}
.nt-label span { display: block; white-space: nowrap; }
.nt-label.is-long { font-size: calc(118 * var(--k)); }
.nt-slogan {
  margin: calc(40 * var(--k)) 0 0; max-width: calc(860 * var(--k));
  font-size: calc(46 * var(--k)); line-height: 1.42; font-weight: 700; color: color-mix(in srgb, var(--c-ink) 86%, transparent);
}

.nt-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: calc(24 * var(--k)); }
.nt-verdict-box { display: flex; flex-direction: column; gap: calc(18 * var(--k)); min-width: 0; }
.nt-verdict-cap { font-size: calc(26 * var(--k)); font-weight: 800; color: var(--c-muted); letter-spacing: calc(4 * var(--k)); }
.nt-verdict {
  margin: 0; white-space: nowrap; line-height: 0.95;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-weight: 900;
  font-size: calc(200 * var(--k)); color: var(--c-accent);
}
.nt-verdict.is-long { font-size: calc(150 * var(--k)); }
/* RUN! 的感叹号单独一个节点，保证不被裁掉 */
.nt-verdict .verdict-word, .nt-verdict .verdict-bang { display: inline-block; }
.nt-verdict .verdict-bang { margin-left: calc(6 * var(--k)); }
.nt-meta { text-align: right; font-size: calc(22 * var(--k)); line-height: 1.6; font-weight: 700; color: var(--c-muted); white-space: nowrap; }
.nt-meta b { display: block; font-size: calc(24 * var(--k)); color: var(--c-ink); }

.nt-flag {
  position: absolute; left: calc(76 * var(--k)); right: calc(76 * var(--k)); top: calc(146 * var(--k));
  padding: calc(10 * var(--k)) calc(20 * var(--k)); line-height: 1; border-radius: calc(14 * var(--k));
  background: rgba(242, 199, 92, 0.30); color: #6a5626; font-size: calc(24 * var(--k)); font-weight: 800;
}
