/* ═══════════════ 16 型人格 × 灵数 · 磁场 ═══════════════
   材质：金属表圈 + 玻璃表面的罗盘、带 N / S 两色的磁石、发光的铁屑和磁力线
   颜色：左边那一极（E S T J）是 N 极的珊瑚红，右边那一极（I N F P）是 S 极的电光蓝，中间是钢白
   选择器都挂在这颗星球自己的屏幕类上（.screen-types / -bench / -grid）或 .tyc / .ty* 前缀上 */
:root {
  --ty-a: #ff5b4a;
  --ty-a-rgb: 255, 91, 74;
  --ty-b: #4d8dff;
  --ty-b-rgb: 77, 141, 255;
  --ty-steel: #dfe8ff;
  --ty-holo: linear-gradient(110deg, #ff5b4a 0%, #ff9b7a 16%, #f4f6ff 34%, #9dc0ff 52%, #4d8dff 70%, #ff7a63 88%, #ff5b4a 100%);
}
.ty-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 主按钮：红 → 钢白 → 蓝 的流光 */
:is(.screen-types, .screen-types-bench, .screen-types-grid) .btn-holo,
body[data-planet='types'] .screen-dossier .d-actions .btn-holo {
  background: var(--ty-holo); background-size: 300% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 12px 40px -10px rgba(var(--ty-a-rgb), 0.55), 0 0 60px -12px rgba(var(--ty-b-rgb), 0.65);
}

/* ── 罗盘（首页、磁场台、档案、怎么玩里都是这一只）── */
.tyc { position: relative; display: block; color: var(--ty-steel); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)); -webkit-tap-highlight-color: transparent; }
.tyc.on-a { color: var(--ty-a); }
.tyc.on-b { color: var(--ty-b); }
.tyc-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tyc-rim { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.2; }
.tyc-ticks line { stroke: rgba(223, 232, 255, 0.2); stroke-width: 1.2; }
.tyc-ticks line.mj { stroke: rgba(223, 232, 255, 0.42); stroke-width: 2.4; }
.tyc-arc { fill: none; stroke: rgba(223, 232, 255, 0.16); stroke-width: 2; stroke-dasharray: 1 5; stroke-linecap: round; }
.tyc-arc-lit { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 300; opacity: 0.85; }
.tyc-L { font-family: var(--f-display); font-weight: 900; font-size: 34px; fill: rgba(223, 232, 255, 0.24); transition: fill 0.25s, opacity 0.25s; }
.tyc.on-a .tyc-a { fill: var(--ty-a); filter: drop-shadow(0 0 6px rgba(var(--ty-a-rgb), 0.9)); }
.tyc.on-b .tyc-b { fill: var(--ty-b); filter: drop-shadow(0 0 6px rgba(var(--ty-b-rgb), 0.9)); }
.tyc-tip { fill: currentColor; filter: drop-shadow(0 0 5px currentColor); transition: fill 0.25s; }
.tyc-tail { stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.8; }
.tyc-shine { stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.2; stroke-linecap: round; }
.tyc-ghost { display: none; }
.tyc.show-ghost .tyc-ghost { display: inline; }
.tyc-ghost path { fill: rgba(255, 255, 255, 0.04); stroke: #fff; stroke-width: 2; stroke-dasharray: 5 4; opacity: 0.75; }
.tyc-glass { pointer-events: none; }

/* 镀色：揭晓之后表圈镀上这个类型的气质金属（紫钛 NT / 青钛 NF / 纯银 SJ / 鎏金 SP）
   祖先上写 data-metal 和 --metal（颜色从 core/types.js 的 TEMPS 来）；字母本身还是红蓝两极 */
.tyc-plate { fill: transparent; opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease) 0.2s; }
[data-metal] .tyc-plate { opacity: 1; }
[data-metal='nt'] .tyc-plate { fill: url(#ty-bezel-nt); }
[data-metal='nf'] .tyc-plate { fill: url(#ty-bezel-nf); }
[data-metal='sj'] .tyc-plate { fill: url(#ty-bezel-sj); }
[data-metal='sp'] .tyc-plate { fill: url(#ty-bezel-sp); }
[data-metal] .tyc { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px color-mix(in srgb, var(--metal) 30%, transparent)); }
/* 镀色的小铭牌：一颗金属菱形 + 「紫钛 · 思辨派」 */
.ty-metal { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--metal) 62%, #fff); }
.ty-metal i { flex: none; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, var(--metal) 55%, color-mix(in srgb, var(--metal) 45%, #000)); box-shadow: 0 0 10px color-mix(in srgb, var(--metal) 80%, transparent); }

/* 四个字母（读数、档案、图鉴都用它）：红的是左边那一极，蓝的是右边那一极 */
.tyb-code { display: inline-flex; gap: 0.04em; font-family: var(--f-display); font-weight: 900; font-size: clamp(54px, 15vw, 92px); line-height: 1; letter-spacing: -0.02em; }
.tyb-code.sm { font-size: 26px; }
.tyb-code.xs { font-size: 13px; letter-spacing: 0.02em; }
.tyl { position: relative; display: inline-block; font-style: normal; }
.tyl.a { color: var(--ty-a); text-shadow: 0 0 0.3em rgba(var(--ty-a-rgb), 0.55); }
.tyl.b { color: var(--ty-b); text-shadow: 0 0 0.3em rgba(var(--ty-b-rgb), 0.6); }
.tyl.q { color: rgba(223, 232, 255, 0.22); }
.tyb-code.ghost .tyl { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.72); text-shadow: none; }
.tyb-code.ghost .tyl.q { -webkit-text-stroke-color: rgba(255, 255, 255, 0.25); }
.tyb-code.ghost .tyl.flip { -webkit-text-stroke-color: rgba(255, 255, 255, 0.3); }
.tyb-code.ghost .tyl.flip::after { content: ''; position: absolute; left: -6%; right: -6%; top: 52%; height: 2px; border-radius: 2px; background: var(--ty-a); transform: rotate(-12deg); box-shadow: 0 0 8px rgba(var(--ty-a-rgb), 0.8); }
.tyb-code:not(.ghost) .tyl.flip::after {
  content: ''; position: absolute; left: 18%; right: 18%; bottom: -0.12em; height: 0.06em; min-height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ty-steel), transparent); box-shadow: 0 0 10px rgba(223, 232, 255, 0.8);
}

/* ═══════════════ 星球首页 ═══════════════ */
.screen-types { flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 78px) 16px calc(var(--safe-b) + 70px); text-align: center; overflow: hidden; }
.ty-inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 760px; }
/* 眉标：两块小条形磁铁（N 红、S 蓝）夹着一行等宽字，两块磁铁的 N 极都朝外 */
.ty-kicker { gap: 12px; padding: 4px 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ty-steel); letter-spacing: 0.16em; text-transform: uppercase; }
.ty-kicker em { font-style: normal; color: var(--ty-a); margin: 0 0.2em; }
.tyk-mag { display: inline-flex; height: 13px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 12px rgba(var(--ty-a-rgb), 0.35), 0 0 12px rgba(var(--ty-b-rgb), 0.35); }
.tyk-mag.r { flex-direction: row-reverse; }
.tyk-mag b { display: grid; place-items: center; width: 17px; font-family: var(--f-mono); font-size: 8px; font-weight: 800; letter-spacing: 0; color: #07060c; }
.tyk-mag b:first-child { background: linear-gradient(180deg, #ff8a78, var(--ty-a)); }
.tyk-mag b:last-child { background: linear-gradient(180deg, #8fb6ff, var(--ty-b)); }

.ty-hero { position: relative; padding-top: 36px; }
.ty-say { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 800; font-size: 15px; color: var(--ink); pointer-events: none; }
.ty-say > * { opacity: 0; }
.ty-say span { color: var(--ink-2); }
/* 自己的底色：可以点（打开档案），旁边一个「重新测」 */
.ty-say.mine { pointer-events: auto; z-index: 2; }
.ty-say-me { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ty-say-me:hover span { color: var(--ink); }
.ty-redo { padding: 5px 12px; border: 1px solid rgba(207, 227, 255, 0.28); border-radius: 999px; background: rgba(12, 14, 26, 0.6); color: var(--ink); font: 700 12.5px/1 var(--f-cn); letter-spacing: 0.02em; cursor: pointer; backdrop-filter: blur(6px); transition: border-color 0.2s, background 0.2s; }
.ty-say-k { font-size: inherit; }
@media (max-width: 420px) {
  /* 一行放不下「你的底色：」+ 外号 + 重新测，手机上省掉前缀 */
  .ty-say.mine { gap: 8px; }
  .ty-say.mine .ty-say-k { display: none; }
}
.ty-redo:hover, .ty-redo:focus-visible { border-color: rgba(207, 227, 255, 0.7); background: rgba(30, 36, 60, 0.75); }
.ty-row { display: flex; gap: clamp(8px, 2.6vw, 22px); }
/* 罗盘下面：数字里最像你的一层（小字，数字只当配角） */
.ty-near { min-height: 18px; margin: 8px 0 0; font: 700 12px/1.5 var(--f-mono); letter-spacing: 0.06em; color: var(--ink-3); text-align: center; opacity: 0; transition: opacity 0.6s var(--ease); }
.ty-near.on { opacity: 1; }
.ty-near b { color: var(--ink); font-weight: 800; }
.tyc-hero { width: clamp(70px, 19.6vw, 118px); aspect-ratio: 1; cursor: pointer; transition: filter 0.3s; }
.tyc-hero:hover { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(223, 232, 255, 0.18)); }
.tyc-hero:focus-visible { outline: 2px solid var(--ty-steel); outline-offset: 4px; border-radius: 50%; }

.ty-title { margin: 16px 0 0; width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; cursor: pointer; user-select: none; -webkit-user-select: none; }
.tyt-canvas { display: block; }
.tyt-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 8px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.tyt-sub > span { display: inline-flex; align-items: center; gap: 6px; }
.tyt-sub b.a { color: var(--ty-a); }
.tyt-sub b.b { color: var(--ty-b); }
.tyt-sub i { width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ty-a), var(--ty-steel), var(--ty-b)); opacity: 0.75; }
.screen-types .landing-cn { margin-top: 14px; }
.screen-types .landing-steps { --step: #9dc0ff; --step-rgb: 157, 192, 255; --step-arrow: rgba(var(--ty-a-rgb), 0.75); }
.screen-types .ticker-track span:nth-child(3n) { color: var(--ty-b); }
.screen-types .ticker-track span:nth-child(3n + 1) { color: var(--ty-a); }
.ty-how-row { display: flex; justify-content: center; gap: 10px; margin: 14px 0 16px; }
.tyc-mini { width: 62px; aspect-ratio: 1; }

/* ═══════════════ 磁场台 ═══════════════ */
.screen-types-bench .progress span::after { background: linear-gradient(90deg, var(--ty-a), var(--ty-steel), var(--ty-b)); }
.screen-types-bench .progress span.cur { box-shadow: 0 0 14px 1px rgba(var(--ty-b-rgb), 0.4); }
.ty-lead { width: 100%; max-width: 560px; margin: -14px 0 16px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--ink-2); min-height: 2.4em; }
.tyb { position: relative; width: 100%; max-width: 780px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* 磁场台的底：一层很淡的暗光，让铁屑在字后面退一步 */
.tyb::before { content: ''; position: absolute; inset: -40px 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(6, 5, 11, 0.72), rgba(6, 5, 11, 0.35) 60%, transparent 80%); }
.ty-lead { position: relative; z-index: 1; text-shadow: 0 1px 10px rgba(6, 5, 11, 0.9); }
.tyb-lines { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.tyl-line { fill: none; stroke-width: var(--w, 1.4); stroke-linecap: round; opacity: 0.8; stroke-dasharray: 2 7; animation: tyflow 1.1s linear infinite; }
.tyl-line.a { stroke: var(--ty-a); filter: drop-shadow(0 0 4px rgba(var(--ty-a-rgb), 0.8)); }
.tyl-line.b { stroke: var(--ty-b); filter: drop-shadow(0 0 4px rgba(var(--ty-b-rgb), 0.8)); animation-direction: reverse; }
.tyl-line.fresh { animation: none; opacity: 1; }
@keyframes tyflow { to { stroke-dashoffset: -18; } }

.tyb-forge, .tyb-board, .tyb-tray, .tyb-read, .tyb-result { position: relative; z-index: 1; }
.tyb-forge { display: none; width: 100%; max-width: 540px; }
.tyb-forge .field:first-child { margin-top: 0; }
.screen-types-bench[data-phase='forge'] .tyb-forge { display: block; }
.screen-types-bench[data-phase='forge'] :is(.tyb-board, .tyb-read) { display: none; }

.tyb-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
@media (min-width: 760px) { .tyb-board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.tyb-cell { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tyb-cmp { position: relative; width: clamp(128px, 37vw, 162px); aspect-ratio: 1; border-radius: 50%; outline: none; transition: filter 0.4s; }
.tyb-cmp:focus-visible { box-shadow: 0 0 0 2px var(--ty-steel); }
.screen-types-bench[data-phase='say'] .tyb-cmp { touch-action: none; cursor: grab; }
.tyb-cmp.dragging { cursor: grabbing; }
.tyb-pole { position: absolute; top: 0; bottom: 0; width: 50%; border-radius: 0; }
.tyb-pole[data-pole='a'] { left: 0; border-radius: 999px 0 0 999px; }
.tyb-pole[data-pole='b'] { right: 0; border-radius: 0 999px 999px 0; }
.screen-types-bench:not([data-phase='say']) .tyb-pole { pointer-events: none; }
.tyb-board.locked .tyb-cmp { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(184, 210, 255, 0.4)); }
.tyb-axis { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 8px 0 0; font-size: 13px; }
.tyb-axis b { font-weight: 800; color: var(--ink-2); }
.tyb-pct { font-family: var(--f-mono); font-weight: 800; font-size: 13px; color: var(--ink-3); min-width: 4.5em; text-align: left; }
.tyb-pct.a { color: var(--ty-a); }
.tyb-pct.b { color: var(--ty-b); }
.tyb-hint { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--ink-3); text-align: center; }
.tyb-hint b { font-family: var(--f-mono); font-weight: 800; }
.tyb-hint .a b { color: var(--ty-a); }
.tyb-hint .b b { color: var(--ty-b); }
.screen-types-bench:not([data-phase='say']) .tyb-hint { display: none; }

/* 磁石：一块带 N / S 两色的金属圆片，数字刻在中间，下面是它给的那一半字母（·NF· 或 E··J）
   每一层是一对：左边「看法」拉中间两只罗盘，右边「步调」拉外面两只；只有下一层是亮的，可以拖、可以点 */
.tyb-tray { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 26px); padding-top: 6px; }
.tyb-pair { display: flex; flex-direction: column; align-items: center; gap: 5px; -webkit-tap-highlight-color: transparent; transition: opacity 0.4s, filter 0.4s; }
.tyb-pair-in { display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(223, 232, 255, 0.1); transition: box-shadow 0.3s; }
.screen-types-bench[data-phase='drop'] .tyb-pair:not(.ready):not(.docked) { opacity: 0.38; filter: saturate(0.4); }
.screen-types-bench[data-phase='drop'] .tyb-pair.ready { cursor: grab; touch-action: none; }
.tyb-pair.ready .tyb-pair-in { animation: typair 1.8s var(--ease) infinite; }
@keyframes typair {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(223, 232, 255, 0.2), 0 0 0 0 rgba(223, 232, 255, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(223, 232, 255, 0.55), 0 0 26px -2px rgba(223, 232, 255, 0.45); }
}
.tyb-stone-in {
  position: relative; display: grid; place-items: center; align-content: center; width: calc(var(--sz) * var(--k, 1)); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 38%),
    linear-gradient(90deg, rgba(var(--ty-a-rgb), 0.55) 0 50%, rgba(var(--ty-b-rgb), 0.55) 50% 100%),
    radial-gradient(circle at 50% 60%, #3a4256, #10131c 72%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28), inset 0 -6px 12px rgba(0, 0, 0, 0.55), 0 10px 22px -8px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.3s, filter 0.3s;
}
.tyb-stone-in b { font-family: var(--f-display); font-weight: 900; font-size: calc(var(--sz) * var(--k, 1) * 0.38); line-height: 1; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.tyb-stone-in i { font-style: normal; font-family: var(--f-mono); font-size: 9px; font-weight: 800; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.82); margin-top: 2px; }
/* 放上去之前只露数字，它给哪两个字母等吸到罗盘上才显出来 */
.tyb-pair:not(.docked) .tyb-stone-in i { display: none; }
.tyb-pair.docked .tyb-stone-in i { animation: tystone-in 0.5s var(--ease) both; }
@keyframes tystone-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tyb-stone-in.master { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5), inset 0 -6px 12px rgba(0, 0, 0, 0.5), 0 0 22px -4px rgba(223, 232, 255, 0.7); }
.tyb-stone-in.blank { background: rgba(255, 255, 255, 0.03); border: 1.5px dashed rgba(223, 232, 255, 0.3); box-shadow: none; }
.tyb-stone-in.blank b { color: var(--ink-3); text-shadow: none; }
.tyb-pair small { font-family: var(--f-mono); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink-2); white-space: nowrap; }
/* 放上去以后：标签下面是这一层的四个字母 + 对上几个；最像你说的那一层带 ✦，结果页上点它看这一层 */
.tyb-pair-res { display: flex; align-items: baseline; gap: 5px; min-height: 17px; margin-top: -2px; white-space: nowrap; }
.tyb-pair-res .tyb-code { font-size: 14px; }
.tyb-pair-res .tyl.flip { opacity: 0.55; }
.tyb-pair-res em { font-style: normal; font-family: var(--f-mono); font-size: 10px; font-weight: 700; color: var(--ink-3); }
.tyb-pair.near small::after { content: ' ✦'; color: #fff; text-shadow: 0 0 10px rgba(223, 232, 255, 0.9); }
.screen-types-bench[data-phase='done'] .tyb-pair.lit { cursor: pointer; }
.screen-types-bench[data-phase='done'] .tyb-pair:not(.on) { opacity: 0.6; }
.screen-types-bench[data-phase='done'] .tyb-pair:not(.on):hover { opacity: 0.9; }
.screen-types-bench[data-phase='done'] .tyb-pair.on .tyb-pair-in { box-shadow: inset 0 0 0 1.5px rgba(223, 232, 255, 0.55), 0 0 22px -4px rgba(223, 232, 255, 0.5); }
.tyb-pair.lifting .tyb-stone-in { filter: brightness(1.15); }
.tyb-pair.lifting .tyb-pair-in { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 22px 36px -10px rgba(0, 0, 0, 0.85); }
.tyb-pair.armed .tyb-pair-in { box-shadow: inset 0 0 0 2px #fff, 0 0 28px rgba(223, 232, 255, 0.7); }
.tyb-pair.docked .tyb-stone-in { filter: brightness(1.18) saturate(1.2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6), 0 0 26px -2px rgba(var(--ty-a-rgb), 0.5), 0 0 26px -2px rgba(var(--ty-b-rgb), 0.5); }
.tyb-pair.docked small { color: var(--ty-steel); }
.screen-types-bench[data-phase='forge'] .tyb-pair { pointer-events: none; }
.screen-types-bench:is([data-phase='say'], [data-phase='quiz']) .tyb-tray { display: none; }

/* 12 道题：一张玻璃卡，两个大选项；正在问的那只罗盘亮一圈 */
.tyb-quiz { display: none; position: relative; z-index: 1; width: 100%; max-width: 560px; flex-direction: column; align-items: center; text-align: center; }
.screen-types-bench[data-phase='quiz'] .tyb-quiz { display: flex; }
.screen-types-bench[data-phase='quiz'] .tyb-read { display: none; }
.tyb-quiz p { margin: 0; }
.tyb-quiz-k { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-3); text-transform: uppercase; }
.tyb-quiz-k b { color: var(--ty-steel); }
.tyb-quiz-q { margin-top: 8px !important; font-weight: 900; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.4; }
.tyb-quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 14px; }
.tyb-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 12px 12px; border-radius: 18px; font-size: 14.5px; line-height: 1.4; color: var(--ink); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.tyb-opt:hover { transform: translateY(-2px); border-color: rgba(223, 232, 255, 0.5); box-shadow: 0 0 22px -6px rgba(223, 232, 255, 0.6); }
.tyb-opt:active { transform: scale(0.97); }
.tyb-quiz-skip { margin-top: 8px; }
.tyb-cmp.asking { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(223, 232, 255, 0.5)); }
.screen-types-bench[data-phase='quiz'] .tyb-cmp:not(.asking) { opacity: 0.55; }
/* 答题入口：不认识自己类型的人第一眼要能看到，所以是一个按钮，不是灰色小链接 */
.tyb-quiz-open { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; padding: 6px 18px 6px 7px; border-radius: 999px; border: 1px solid rgba(207, 227, 255, 0.3); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink-2); font-size: 14px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.tyb-quiz-open[hidden] { display: none; }
.tyb-quiz-open i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 15px/1 var(--f-mono); font-style: normal; color: #0b0d18; background: linear-gradient(135deg, var(--ty-a), var(--ty-b)); }
.tyb-quiz-open b { color: var(--ink); font-weight: 800; }
.tyb-quiz-open em { font-style: normal; color: var(--ty-steel); }
.tyb-quiz-open:hover, .tyb-quiz-open:focus-visible { border-color: rgba(207, 227, 255, 0.7); box-shadow: 0 0 22px -6px rgba(207, 227, 255, 0.6); transform: translateY(-1px); }
@media (max-width: 420px) {
  .tyb-stone-in { --k: 0.84; }
  /* 手机：罗盘小一点，让读数在底部按钮上面露出来 */
  .tyb { gap: 12px; }
  .tyb-board { gap: 6px 18px; }
  .tyb-cmp { width: clamp(104px, 30vw, 150px); }
  .tyb-nums .tyb-code { font-size: clamp(44px, 12.5vw, 92px); }
  .tyb-pair-res .tyb-code { font-size: 12.5px; }
  .ty-lead { margin-bottom: 10px; }
}

/* 读数 */
.tyb-read { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tyb-read p { margin: 0; }
/* 矮一点的电脑屏幕（1280×800）：放磁石时「你说 · 对上几个」那一行要露在底部按钮上面 */
@media (min-width: 421px) and (max-height: 860px) {
  .tyb { gap: 12px; }
  .tyb-nums .tyb-code { font-size: 70px; }
}
.tyb-nums small { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink-3); }
.tyb-nums { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 4px !important; }
.tyb-name { margin-top: 8px !important; font-family: var(--f-display); font-weight: 900; font-size: clamp(20px, 5.6vw, 28px); color: #fff; text-shadow: 0 0 22px rgba(var(--ty-b-rgb), 0.5); }
.tyb-name.dim { font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--ink-3); text-shadow: none; }
.screen-types-bench[data-metal] .tyb-name:not(.dim) { text-shadow: 0 0 22px color-mix(in srgb, var(--metal) 55%, transparent); }
.tyb-metal { margin-top: 6px !important; }
/* 大字下面：你说的类型（虚线字）· 对上几个 */
.tyb-vs { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 22px; margin-top: 6px !important; }
.tyb-vs:empty { display: none; }
.tyb-vs small { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }
.tyb-vs .tyb-code { font-size: 17px; }
.tyb-vs em { font-style: normal; font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--ink-2); }

.tyb-result { width: 100%; max-width: 580px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tyb-verdict { margin: 4px 0 0; font-weight: 900; font-size: clamp(19px, 5vw, 24px); line-height: 1.45; }
.tyb-score { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.tyb-score > b { font-family: var(--f-display); font-weight: 900; font-size: 56px; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(180deg, #fff, var(--ty-steel) 60%, #9dc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tyb-score > b small { font-size: 0.45em; }
.tyb-score > span { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.tyb-score em { font-style: normal; font-weight: 900; font-size: 16px; }
.tyb-score span small { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.tyb-facts li b { color: var(--ty-steel); }
.tyb-facts li.over b { color: #ff8a78; }
.tyb-facts li.warn b { color: #9dc0ff; }
.tyb-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.tyb-acts .btn-holo { min-height: 54px; }
.tyb-acts .btn-ghost { min-height: 50px; }

/* ═══════════════ 命运档案 ═══════════════ */
.tyd-hero { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.tyd-who { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--ty-steel); text-transform: uppercase; }
.tyd-row { display: flex; gap: clamp(6px, 2vw, 16px); }
.tyd-cmp { width: clamp(64px, 18vw, 104px); aspect-ratio: 1; }
.tyd-said { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0; }
.tyd-said small { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); }
.tyd-code { margin: 6px 0 0; }
.tyd-name { margin: 8px 0 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(22px, 6vw, 30px); text-shadow: 0 0 24px color-mix(in srgb, var(--metal, var(--ty-b)) 55%, transparent); }
.tyd-metal { margin: 8px 0 0; }
.tyd-temp { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); background: linear-gradient(120deg, color-mix(in srgb, var(--metal) 16%, transparent), transparent 70%); border: 1px solid color-mix(in srgb, var(--metal) 30%, transparent); }
.tyd-temp .ty-metal { display: flex; margin-bottom: 4px; }
body[data-planet='types'] .d-score { background: linear-gradient(180deg, #fff, var(--ty-steel) 55%, #9dc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body[data-planet='types'] .d-score-label em { color: var(--ty-steel); }
body[data-planet='types'] .ob-item b { color: #9dc0ff; }
body[data-planet='types'] .ob-item.advice { background: linear-gradient(120deg, rgba(var(--ty-a-rgb), 0.16), rgba(var(--ty-b-rgb), 0.16)); }


/* 首屏的三层：三块小铭牌，最像你说的那一层带 ✦ */
.tyd-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; }
.tyd-chip { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 80px; padding: 6px 10px 5px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.tyd-chip small, .tyd-chip em { font-family: var(--f-mono); font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-3); font-style: normal; }
.tyd-chip .tyb-code { font-size: 15px; }
.tyd-chip .tyl.flip { opacity: 0.55; }
.tyd-chip.near { border-color: rgba(223, 232, 255, 0.5); }
.tyd-chip.near::after { content: '✦'; position: absolute; top: -8px; right: -6px; font-size: 13px; color: #fff; text-shadow: 0 0 10px rgba(223, 232, 255, 0.9); }
.tyd-core-k { margin-top: 14px !important; }
.tyd-code .tyl.flip::after { display: none; }

/* 三层的卡：每层两块磁石拼成四个字母 */
.tyd-layers { display: grid; gap: 10px; }
.tyd-layer { padding: 12px 14px; border-radius: 18px; text-align: left; background: linear-gradient(160deg, color-mix(in srgb, var(--metal) 12%, transparent), rgba(255, 255, 255, 0.02) 60%); border: 1px solid var(--line); }
.tyd-layer.near { border-color: color-mix(in srgb, var(--metal) 55%, transparent); }
.tyd-layer p { margin: 0; }
.tyd-layer-h { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.tyd-layer-h span { font-size: 12.5px; color: var(--ink-3); }
.tyd-layer-h em { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: #fff; }
.tyd-layer-c { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px !important; }
.tyd-layer-c b { font-weight: 900; font-size: 15px; }
.tyd-layer-c small { width: 100%; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.tyd-layer .tyl.flip { opacity: 0.55; }
.tyd-layer .tyl.flip::after { display: none; }
.tyd-layer-l { margin-top: 6px !important; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.tyd-layer-w { margin-top: 4px !important; font: 700 12px/1.55 var(--f-mono); letter-spacing: 0.02em; color: var(--ty-steel); }
.tyd-halves { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tyd-halves > b { color: var(--ink-3); font-family: var(--f-display); }
.tyd-halves > span { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; gap: 0 8px; }
.tyd-halves .tyd-stone { grid-row: span 2; }
.tyd-halves small { font-size: 11px; color: var(--ink-3); }
.tyd-stone.sm { --sz: 34px; }

/* 内心 vs 外在：四列，一样的暗、不一样的亮 */
.tyd-gap-t { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 6px; align-items: center; margin-bottom: 10px; }
.tyd-gap-k { display: grid; gap: 10px; padding-top: 2px; }
.tyd-gap-k small, .tyd-gap-c small { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-3); }
.tyd-gap-c { display: grid; justify-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid transparent; }
.tyd-gap-c .tyb-code { font-size: 20px; }
.tyd-gap-c:not(.diff) .tyl { opacity: 0.45; text-shadow: none; }
.tyd-gap-c.diff { border-color: rgba(223, 232, 255, 0.35); background: rgba(223, 232, 255, 0.05); }
.tyd-mag-u { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px !important; }
.tyd-mag-u span { font-family: var(--f-mono); font-size: 10.5px; padding: 2px 8px; border-radius: 99px; color: var(--ink-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }

.tyd-type { text-align: left; }
.tyd-aura { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.55; }
.tyd-best { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.tyd-best small { width: 100%; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); }
.tyd-best b { font-weight: 900; }
.tyd-best em { width: 100%; font-style: normal; font-size: 12px; color: var(--ink-3); }

.tyd-mags { display: grid; gap: 10px; }
.tyd-mag { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); text-align: left; }
.tyd-stone {
  justify-self: center; display: grid; place-items: center; width: var(--sz); aspect-ratio: 1; border-radius: 50%;
  font-family: var(--f-display); font-weight: 900; font-size: calc(var(--sz) * 0.42); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 38%), linear-gradient(90deg, rgba(var(--ty-a-rgb), 0.55) 0 50%, rgba(var(--ty-b-rgb), 0.55) 50%), radial-gradient(circle at 50% 60%, #3a4256, #10131c 72%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), 0 8px 18px -8px rgba(0, 0, 0, 0.8);
}
.tyd-stone.master { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55), 0 0 18px -2px rgba(223, 232, 255, 0.7); }
.tyd-mag-b p { margin: 0; }
.tyd-mag-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tyd-mag-h small { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.tyd-mag-n { margin-top: 3px !important; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.tyd-mag-f { margin-top: 6px !important; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); overflow-wrap: anywhere; }
.tyd-pair { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.tyd-pair > b { font-family: var(--f-display); color: var(--ink-3); }
.tyd-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
@media (min-width: 760px) {
  .tyd-s-layers, .tyd-s-gap, .tyd-s-type, .tyd-s-mags, .tyd-s-pair { grid-column: span 6; }
  .tyd-mags { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .tyd-s-gap { grid-column: span 3; }
  .tyd-s-type { grid-column: span 3; }
}

/* ═══════════════ 类型图鉴 ═══════════════ */
.screen-types-grid { flex-direction: column; align-items: center; padding: calc(var(--safe-t) + 78px) 16px calc(var(--safe-b) + 48px); }
.tyg-inner { width: 100%; max-width: 760px; }
.tyg-wrap { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: 22px auto; gap: 6px; margin-top: 20px; }
.tyg-cols { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.tyg-rows { grid-row: 2; display: grid; grid-template-rows: repeat(4, 1fr); gap: 8px; align-items: center; }
.tyg-rows span { text-align: center; }
.tyg-cols .tyb-code, .tyg-rows .tyb-code { font-size: 11px; }
.tyg-cols .tyl, .tyg-rows .tyl { text-shadow: none; opacity: 0.75; }
.tyg-table { grid-column: 2; grid-row: 2; display: grid; gap: 8px; }
.tyg-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tyg-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 96px; padding: 10px 4px 8px; border-radius: 16px;
  background: rgba(10, 11, 20, 0.62); border: 1px solid rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: center; cursor: pointer; transition: border-color 0.3s, background 0.3s;
}
.tyg-cell .tyb-code { opacity: 0.45; }
.tyg-cell small { font-size: 10.5px; line-height: 1.3; color: var(--ink-3); opacity: 0.6; }
/* 每格带着自己气质的金属：空格子只有一道淡淡的镀边，点亮了整格镀上去 */
.tyg-cell[data-metal] { background: linear-gradient(180deg, color-mix(in srgb, var(--metal) 10%, transparent), transparent 46%), rgba(10, 11, 20, 0.62); border-color: color-mix(in srgb, var(--metal) 20%, rgba(255, 255, 255, 0.05)); }
.tyg-cell.lit { background: linear-gradient(160deg, color-mix(in srgb, var(--metal) 32%, transparent), rgba(10, 12, 22, 0.78) 58%, color-mix(in srgb, var(--metal) 16%, transparent)); border-color: color-mix(in srgb, var(--metal) 62%, transparent); box-shadow: 0 0 26px -10px var(--metal), inset 0 1px 0 color-mix(in srgb, var(--metal) 45%, transparent); cursor: default; }
.tyg-cell.lit .tyb-code { opacity: 1; }
.tyg-cell.lit small { opacity: 1; color: var(--ink-2); }
.tyg-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: auto; }
.tyg-chip { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 900; font-size: 12px; color: #07060c; background: linear-gradient(135deg, #ffb3a8, #9dc0ff); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.45); transition: transform 0.2s var(--ease); }
.tyg-chip:hover { transform: scale(1.12); }
.tyg-chip.me { background: linear-gradient(90deg, var(--ty-a) 0 50%, var(--ty-b) 50%); color: #fff; box-shadow: 0 0 0 1.5px #fff, 0 0 14px rgba(223, 232, 255, 0.6); }
.tyg-more { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); align-self: center; }
.tyg-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 16px 0 0; font-size: 12px; color: var(--ink-3); }
.tyg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tyg-legend i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 9px; font-weight: 900; }
.tyg-legend .me { background: linear-gradient(90deg, var(--ty-a) 0 50%, var(--ty-b) 50%); color: #fff; }
.tyg-legend .fr { background: linear-gradient(135deg, #ffb3a8, #9dc0ff); color: #07060c; }
.tyg-metals { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 8px 18px; margin: 12px 0 0; }
.tyg-metals .ty-metal { font-size: 10.5px; letter-spacing: 0.1em; }
@media (max-width: 560px) { .tyg-metals { grid-template-columns: repeat(2, auto); } }
.tyg-cta { display: flex; justify-content: center; margin-top: 20px; }
@media (max-width: 420px) {
  .tyg-cell { min-height: 84px; padding: 8px 2px 6px; border-radius: 12px; }
  .tyg-cell small { font-size: 9.5px; }
  .tyg-row, .tyg-table, .tyg-cols, .tyg-rows { gap: 5px; }
  .tyg-chip { width: 22px; height: 22px; font-size: 11px; }
}

/* 减少动态效果：磁力线不流动 */
@media (prefers-reduced-motion: reduce) {
  .tyl-line { animation: none; }
  .tyc-plate { transition: none; }
}
