/* ═══════════════ Glowmancy — visual system ═══════════════ */
@font-face { font-family: 'Unbounded'; font-weight: 400; font-display: swap; src: url(/vendor/fonts/unbounded-400.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(/vendor/fonts/unbounded-700.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 900; font-display: swap; src: url(/vendor/fonts/unbounded-900.woff2) format('woff2'); }
@font-face { font-family: 'JBM'; font-weight: 400; font-display: swap; src: url(/vendor/fonts/jbm-400.woff2) format('woff2'); }
@font-face { font-family: 'JBM'; font-weight: 700; font-display: swap; src: url(/vendor/fonts/jbm-700.woff2) format('woff2'); }
@font-face { font-family: 'JBM'; font-weight: 800; font-display: swap; src: url(/vendor/fonts/jbm-800.woff2) format('woff2'); }

:root {
  --bg: #06050b;
  --bg-2: #0d0b18;
  --ink: #f6f4ff;
  --ink-2: rgba(246, 244, 255, 0.72);
  --ink-3: rgba(246, 244, 255, 0.48);
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --glass: rgba(18, 15, 34, 0.55);
  --glass-2: rgba(255, 255, 255, 0.06);
  --lime: #d4ff3a;
  --pink: #ff4fd8;
  --cyan: #4ff7ff;
  --violet: #8b6cff;
  --amber: #ffb03a;
  --c1: #8b6cff;
  --c2: #4ff7ff;
  --holo: linear-gradient(110deg, #4ff7ff 0%, #8b6cff 20%, #ff4fd8 40%, #ffb03a 60%, #d4ff3a 80%, #4ff7ff 100%);
  --f-display: 'Unbounded', 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-cn: 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-mono: 'JBM', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 22px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--f-cn); font-size: 16px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: #000; }

/* ── background layers ── */
#aura, .fx-layer { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#aura { z-index: 0; background: radial-gradient(120% 80% at 20% 10%, #2a1a5c 0%, transparent 60%), radial-gradient(90% 70% at 90% 90%, #4a0f4a 0%, transparent 60%), var(--bg); }
/* 场景层（fx/scene.js 按需创建）：首页 / 每颗星球一层，切换时交叉淡化 */
.fx-layer { z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.9s ease; }
.fx-layer.on { opacity: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

/* ── topbar ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 12px) 16px 12px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 900; font-size: 13px; letter-spacing: 0.08em; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--holo); background-size: 300% 100%; color: #000; animation: holo 6s linear infinite; font-size: 13px; }
.brand-word i { font-style: normal; color: var(--lime); text-shadow: 0 0 10px rgba(212, 255, 58, 0.55); }
.brand { padding: 4px 12px 4px 4px; margin-left: -4px; border-radius: 99px; transition: background 0.2s; }
.topbar-left { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
/* 返回：今天 / 玩法 / 我以外的每一屏左上角一个，写着回到哪里（app.js 的 renderBack）；字标只回「今天」
   手机和平板上（1024px 以下）进了玩法，返回顶替字标的位置；电脑上字标、返回并排，三个入口在顶栏中间（home.css） */
.nav-back {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; max-width: min(100%, 240px); padding: 0 14px 0 8px; border-radius: 99px;
  background: rgba(14, 11, 28, 0.62); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--ink); font: 800 12.5px/1 var(--f-display); letter-spacing: 0.03em; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.nav-back[hidden] { display: none; }
.nav-back svg { flex: none; width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.nav-back-to { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-back:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-2); }
.nav-back:hover svg { transform: translateX(-2px); }
.nav-back:active { transform: scale(0.95); }
/* 屏里自己的返回键还在 DOM 里（左上角的返回替它点，它决定退到哪），只是不显示：一屏只有一个返回 */
.screen [data-back] { display: none !important; }
/* 那几条胶囊页眉原来左边只留 5px 给圆形返回键、高度也由它撑着：键藏起来后左右留一样的边，高度不变 */
:is(.form-head, .acb-head, .nd-head, .tt-head):has(> [data-back]) { padding-left: 16px; min-height: 48px; }
@media (max-width: 1023px) {
  body.has-back .brand { display: none; }
}
@media (max-width: 440px) {
  /* 窄手机上进了玩法：神谕状态那颗点让给返回上的字（AI 解读里自己会写是不是 AI 写的） */
  body.has-back .oracle-pill { display: none; }
  .nav-back { padding: 0 12px 0 6px; font-size: 12px; letter-spacing: 0.01em; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* 字标和三个入口之间不够宽：进了玩法字标只留 ✦，把位置让给返回上的字 */
  body.has-back .brand-word { display: none; }
  body.has-back .brand { padding-right: 4px; }
}
body:not([data-screen='today']) .brand:hover { background: rgba(255, 255, 255, 0.07); }
.topbar-right { flex: none; display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.oracle-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
}
.oracle-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.oracle-pill.on i { background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 2s ease-in-out infinite; }
.oracle-pill.off i { background: var(--amber); }
@keyframes blink { 50% { opacity: 0.35; } }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 18px; height: 18px; }
/* 账号键：没登录是空心小人；登录后右上角亮一颗绿点 */
.acct-btn { position: relative; }
.acct-btn .acct-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); display: none; }
.acct-btn.is-in .acct-dot { display: block; }
#sound-btn .ic-off { display: none; }
#sound-btn.muted .ic-on { display: none; }
#sound-btn.muted .ic-off { display: block; }

/* ── screens ── */
#app { position: relative; z-index: 5; }
.screen { display: none; position: relative; min-height: 100dvh; }
.screen.is-active { display: flex; }

/* ── type helpers ── */
.holo-text {
  background: var(--holo); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holo 6s linear infinite; padding: 0 0.04em;
}
@keyframes holo { to { background-position: 300% 0; } }

/* ── buttons ── */
.btn-holo {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 30px; border-radius: 99px; isolation: isolate; text-decoration: none;
  font-family: var(--f-display); font-weight: 900; font-size: 16px; letter-spacing: 0.02em; color: #07060c;
  background: var(--holo); background-size: 300% 100%; animation: holo 5s linear infinite;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 12px 40px -8px rgba(255, 79, 216, 0.6), 0 0 60px -10px rgba(79, 247, 255, 0.6);
  transition: transform 0.25s var(--ease), filter 0.25s, opacity 0.25s;
  user-select: none; -webkit-user-select: none;
}
.btn-holo b { font-size: 20px; transition: transform 0.25s var(--ease); }
.btn-holo:hover b { transform: translateX(4px); }
.btn-holo:active { transform: scale(0.96); }
.btn-holo:disabled { filter: grayscale(1) brightness(0.55); opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 700; font-size: 15px; transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.09); }
.btn-ghost:active { transform: scale(0.96); }
.btn-link { color: var(--ink-3); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; padding: 8px; }
.btn-link:hover { color: var(--ink); }

/* ═══════════════ LANDING ═══════════════ */
.screen-landing { flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 80px) 16px calc(var(--safe-b) + 70px); text-align: center; overflow: hidden; }
.landing-inner { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.landing-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-2); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 1.6s infinite; }
.landing-cn { margin: 16px 0 0; font-weight: 800; font-size: clamp(18px, 4.6vw, 26px); letter-spacing: 0.5em; padding-left: 0.5em; }
.landing-sub { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.landing-sub b { color: var(--ink); font-weight: 700; }
.br-m { display: none; }
/* 星球首页底部（三颗星球共用一套）：主按钮 · 继续上次 · 怎么玩 在宽屏排成一行，手机上竖排；
   下面是一行「01 → 02 → 03」的三步，编号是小方格。每颗星球只换 --step / --step-rgb / --step-arrow / --step-font，不改结构 */
.landing-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.landing-cta .btn-holo { min-width: 240px; min-height: 62px; font-size: 18px; }
@media (min-width: 700px) {
  .landing-cta { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
}
.landing-steps {
  --step: var(--lime); --step-rgb: 212, 255, 58; --step-arrow: rgba(79, 247, 255, 0.6); --step-font: var(--f-mono);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px; margin: 18px 0 0; padding: 0; list-style: none;
}
.landing-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.landing-steps li + li::before { content: '→'; margin-right: 6px; font-family: var(--f-mono); color: var(--step-arrow); }
.landing-steps b {
  display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px;
  font-family: var(--step-font); font-size: 11px; font-weight: 700; line-height: 1; color: var(--step);
  background: rgba(var(--step-rgb), 0.08); border: 1px solid rgba(var(--step-rgb), 0.28);
}
.ticker { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 14px); overflow: hidden; border-block: 1px solid var(--line); background: rgba(6, 5, 11, 0.4); backdrop-filter: blur(8px); transform: rotate(-1.5deg) scale(1.05); }
.ticker-track { display: flex; width: max-content; gap: 34px; padding: 9px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); white-space: nowrap; animation: ticker 32s linear infinite; }
.ticker-track span:nth-child(3n) { color: var(--lime); }
.ticker-track span:nth-child(3n + 1) { color: var(--pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ═══════════════ FORM ═══════════════ */
.screen-form { flex-direction: column; align-items: center; padding: calc(var(--safe-t) + 66px) 16px calc(var(--safe-b) + 104px); }
.form-head {
  position: sticky; top: calc(var(--safe-t) + 62px); z-index: 20;
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 580px; margin-bottom: 30px;
  padding: 5px 16px 5px 5px; border-radius: 99px;
  background: rgba(17, 14, 32, 0.46); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 36px -18px rgba(0, 0, 0, 0.75);
}
.form-head .back-btn { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.06); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: transform 0.2s var(--ease), background 0.2s; }
.form-head .back-btn:hover { background: rgba(255, 255, 255, 0.13); }
.form-head .back-btn svg { width: 16px; height: 16px; }
.progress { flex: 1; display: flex; gap: 6px; }
.progress span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); position: relative; transition: box-shadow 0.5s var(--ease); }
.progress span::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--holo); background-size: 300% 100%; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); animation: holo 4s linear infinite; }
.progress span.done::after, .progress span.cur::after { transform: scaleX(1); }
.progress span.cur { box-shadow: 0 0 14px 1px rgba(79, 247, 255, 0.35); }
.progress-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; }
.progress-label b { color: var(--ink); font-weight: 700; }
.back-btn { flex: none; }
.back-btn.is-hidden { visibility: hidden; }
.steps { width: 100%; max-width: 580px; }
.step { display: none; }
.step.is-current { display: block; }
.step-kicker { margin: 0 0 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--lime); }
.step-title { margin: 0; font-family: var(--f-display), var(--f-cn); font-weight: 900; font-size: clamp(30px, 8.4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; }
.step-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.field { display: block; margin-top: 22px; }
.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.04em; }
.field-hint { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); transition: color 0.3s; }
.field-hint.ok { color: var(--lime); }
.field-hint.bad { color: #ff7a8a; }
.name-input, .line-input, .latin-input {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--glass); outline: none;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: border-color 0.25s, box-shadow 0.25s;
}
.name-input { height: 72px; padding: 0 22px; font-size: 28px; font-weight: 800; letter-spacing: 0.02em; }
.line-input { height: 56px; padding: 0 18px; font-size: 16px; }
.name-input::placeholder, .line-input::placeholder { color: rgba(255, 255, 255, 0.26); font-weight: 500; }
.name-input:focus, .line-input:focus, .latin-input:focus { border-color: transparent; box-shadow: 0 0 0 2px var(--c2), 0 0 40px -6px var(--c1); }
.latin-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.latin-label { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; flex: none; }
.latin-input { flex: 1; height: 40px; padding: 0 14px; border-radius: 12px; font-family: var(--f-mono); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.latin-tip { font-size: 12px; color: var(--ink-3); flex: none; }
.letter-stream { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; margin-top: 14px; }
.lchip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 36px; height: 48px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-family: var(--f-mono); line-height: 1.1;
}
.lchip b { font-size: 15px; font-weight: 800; }
.lchip i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--lime); }
.lchip.vowel i { color: var(--pink); }
.lchip.gap { width: 10px; border: 0; background: none; }
.letter-legend { width: 100%; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.letter-legend i { font-style: normal; color: var(--pink); }
.letter-legend em { font-style: normal; color: var(--lime); }

.date-input { display: flex; align-items: center; gap: 8px; }
.date-input input {
  min-width: 0; height: 72px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--glass); outline: none; text-align: center;
  font-family: var(--f-mono); font-weight: 800; font-size: 28px; letter-spacing: 0.06em; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.date-input input[data-part='y'] { flex: 1.6; }
.date-input input[data-part='m'], .date-input input[data-part='d'] { flex: 1; }
.date-input input::placeholder { color: rgba(255, 255, 255, 0.22); }
.date-input input:focus { border-color: transparent; box-shadow: 0 0 0 2px var(--c2), 0 0 40px -6px var(--c1); }
.date-input.locked input { border-color: color-mix(in srgb, var(--lime) 60%, transparent); box-shadow: 0 0 26px -8px var(--lime); }
.date-sep { color: var(--ink-3); font-weight: 900; }
.shake { animation: shake 0.42s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* stickers */
.tag {
  --rot: 0deg; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); font-weight: 700; font-size: 15px;
  transform: rotate(var(--rot)); transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  user-select: none; -webkit-user-select: none;
}
.tag .em { font-size: 17px; transition: transform 0.3s var(--ease); }
.tag:hover { border-color: rgba(255, 255, 255, 0.45); transform: rotate(var(--rot)) translateY(-2px); }
.tag.on {
  color: #07060c; border-color: transparent; background: var(--holo); background-size: 300% 100%; animation: holo 5s linear infinite;
  transform: rotate(calc(var(--rot) * -1.4)) scale(1.06); box-shadow: 0 8px 26px -8px rgba(255, 79, 216, 0.75);
}
.tag.on .em { transform: scale(1.25) rotate(-10deg); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-row .tag { height: 40px; font-size: 14px; }

/* 共用的小动效：抖一抖（按住时）、旋转、呼吸 */
@keyframes tremble { 25% { translate: 1px -1px; } 50% { translate: -1px 1px; } 75% { translate: 1px 1px; } }
.form-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; gap: 10px;
  padding: 14px 16px calc(var(--safe-b) + 16px); background: linear-gradient(180deg, transparent, rgba(6, 5, 11, 0.85) 40%);
}
.form-foot .btn-holo { flex: 1; max-width: 420px; }
.form-foot .skip-btn { flex: none; }
.screen-form:not(.is-active) + * .form-foot { display: none; }
.form-foot.is-hidden { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.07); opacity: 0.85; } }

/* 档案页共用：雷达图、洞察条、羁绊拆解的条形图 */
.radar-wrap { width: min(64vw, 250px); aspect-ratio: 1; margin-top: 8px; }
.radar-wrap svg { width: 100%; height: 100%; overflow: visible; }
.radar-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.radar-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.radar-legend .l-num i { background: var(--holo); }
.radar-legend .l-tag i { border: 1.5px dashed #fff; }
.insights { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.insights li { padding: 11px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; line-height: 1.55; backdrop-filter: blur(12px); }
.insights li b { color: var(--lime); }
.insights li.warn b { color: var(--pink); }
.insights li.over b { color: var(--amber); }
.bars { width: 100%; display: grid; gap: 9px; margin-top: 16px; }
.bar { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; text-align: left; }
.bar-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar-fill { height: 100%; width: calc(var(--v) * 1%); border-radius: 8px; background: var(--holo); background-size: 300% 100%; animation: holo 4s linear infinite; transform-origin: left; }
.bar b { font-family: var(--f-mono); font-size: 13px; text-align: right; }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 14px; text-align: left; }
.pr-grid div { padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.pr-grid div b { display: block; font-size: 11px; font-family: var(--f-mono); letter-spacing: 0.1em; margin-bottom: 4px; }
.pr-grid .pw b { color: var(--lime); }
.pr-grid .rk b { color: var(--pink); }

/* burst particles */
.burst { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; font-family: var(--f-mono); font-weight: 800; will-change: transform, opacity; }
/* 揭晓的柔光：一团星球颜色从中间晕开（screen 叠加），不是整屏白闪；--flash 由当前星球决定 */
body { --flash: #b9a8ff; }
body[data-planet='aura-code'] { --flash: #8f7bff; }
body[data-planet='tarot'] { --flash: #ffc46a; }
body[data-planet='answer-book'] { --flash: #c8ff6a; }
body[data-planet='angel-numbers'] { --flash: #ffb8ee; }
body[data-planet='types'] { --flash: #b8d2ff; }
body[data-planet='aura-color'] { --flash: #ffb3c8; }
body[data-planet='bloom'] { --flash: #e6ecff; }
body[data-planet='astro'] { --flash: #ffe1a6; }
.flash {
  --fc: var(--flash); position: fixed; inset: -10%; z-index: 80; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 46%), color-mix(in srgb, var(--fc) 72%, #fff) 0%, color-mix(in srgb, var(--fc) 50%, transparent) 20%, color-mix(in srgb, var(--fc) 14%, transparent) 38%, transparent 58%);
}

/* ═══════════════ DOSSIER ═══════════════ */
.screen-dossier { justify-content: center; padding: calc(var(--safe-t) + 70px) 16px calc(var(--safe-b) + 40px); }
.dossier { width: 100%; max-width: 980px; display: grid; gap: 16px; }
.d-card {
  position: relative; padding: 22px 18px; border-radius: 26px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden;
}
.d-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 255, 255, 0.28), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.14)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.d-card.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.d-card.reveal.in { opacity: 1; transform: none; }
.d-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.d-h h3 { margin: 0; font-weight: 900; font-size: 20px; }
.d-h span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); }
.d-hero { text-align: center; padding: 28px 18px 22px; }
.d-kicker { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); }
.d-pair { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.d-person { display: flex; flex-direction: column; align-items: center; min-width: 0; flex: 1; max-width: 220px; }
.d-orb { --oc1: var(--violet); --oc2: var(--cyan); position: relative; width: clamp(92px, 26vw, 140px); aspect-ratio: 1; display: grid; place-items: center; }
.d-orb .sg { position: absolute; inset: 0; animation: spin 30s linear infinite; }
.d-orb .sg svg { width: 100%; height: 100%; }
.d-orb::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--oc2) 70%, #fff 10%), color-mix(in srgb, var(--oc1) 60%, transparent) 55%, transparent 75%); box-shadow: 0 0 60px -10px var(--oc1); }
.d-orb b { position: relative; font-family: var(--f-display); font-weight: 900; font-size: clamp(38px, 11vw, 58px); letter-spacing: -0.05em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35); }
.d-person strong { margin-top: 8px; font-size: 16px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-person small { font-size: 13px; color: var(--ink-2); }
.d-x { font-family: var(--f-display); font-weight: 900; font-size: 22px; color: var(--ink-3); }
.d-score { margin: 16px 0 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(72px, 20vw, 120px); line-height: 1; letter-spacing: -0.05em; }
.d-score small { font-size: 0.4em; }
.d-score-label { margin: 4px 0 0; font-weight: 800; font-size: 16px; }
.d-score-label em { font-style: normal; color: var(--lime); }
.d-verdict { margin: 16px auto 0; max-width: 620px; font-weight: 900; font-size: clamp(20px, 5.4vw, 28px); line-height: 1.4; }
.d-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.d-tags span { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; }
.d-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.d-actions .btn-holo { min-height: 52px; padding: 0 24px; font-size: 15px; }
.d-actions .btn-ghost { min-height: 52px; }

.oracle-body { display: grid; gap: 12px; }
.ob-item { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.ob-item b { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--lime); }
.ob-item p { margin: 0; font-size: 15px; line-height: 1.75; }
.ob-item.advice { background: linear-gradient(120deg, color-mix(in srgb, var(--pink) 18%, transparent), color-mix(in srgb, var(--cyan) 14%, transparent)); }
.ob-src { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.ob-loading { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; }
.ob-loading .spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--lime); animation: spin 0.8s linear infinite; }

.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.seg button { height: 36px; padding: 0 16px; border-radius: 99px; font-weight: 800; font-size: 14px; color: var(--ink-2); transition: background 0.25s, color 0.25s; }
.seg button.on { background: #fff; color: #07060c; }
.num-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ncard { position: relative; aspect-ratio: 1 / 1.08; perspective: 900px; text-align: left; }
.ncard-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.7s var(--ease); }
.ncard.flip .ncard-in { transform: rotateY(180deg); }
.ncard-f, .ncard-b { position: absolute; inset: 0; border-radius: 20px; padding: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; display: flex; flex-direction: column; }
.ncard-f { background: linear-gradient(160deg, color-mix(in srgb, var(--nc1) 32%, #0d0b18), #0d0b18 70%); border: 1px solid color-mix(in srgb, var(--nc1) 45%, transparent); }
.ncard-f .nl { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.ncard-f .nn { margin-top: auto; font-family: var(--f-display); font-weight: 900; font-size: clamp(46px, 13vw, 64px); line-height: 0.9; letter-spacing: -0.05em; background: linear-gradient(180deg, #fff, var(--nc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ncard-f .na { margin-top: 6px; font-size: 13px; font-weight: 800; }
.ncard-f .ne { position: absolute; top: 10px; right: 12px; font-size: 22px; }
.ncard-f .nm { position: absolute; top: 38px; right: 12px; font-family: var(--f-mono); font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--holo); color: #07060c; }
.ncard-b { transform: rotateY(180deg); background: #0d0b18; border: 1px solid var(--line-2); font-size: 13px; line-height: 1.55; }
.ncard-b .nl { font-size: 11px; font-family: var(--f-mono); letter-spacing: 0.1em; color: var(--lime); }
.ncard-b p { margin: 6px 0 0; color: var(--ink); overflow: auto; }
.ncard-b .nh { margin-top: auto; font-size: 11px; color: var(--ink-3); }
.ncard .tap-tip { position: absolute; bottom: 10px; right: 12px; font-size: 10px; color: var(--ink-3); z-index: 2; pointer-events: none; }
.ncard.flip .tap-tip { display: none; }

.freq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 320px; }
.fcell { position: relative; aspect-ratio: 1; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.fcell::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, var(--fc), transparent 70%); opacity: var(--fi); }
.fcell b { position: relative; font-family: var(--f-display); font-weight: 900; font-size: 24px; }
.fcell i { position: relative; font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); }
.fcell.miss { border-style: dashed; opacity: 0.6; }
.fcell.miss b { color: var(--ink-3); }
.fcell.miss i { color: var(--pink); }
.person-extra { display: grid; gap: 14px; margin-top: 16px; }
.person-cols { display: grid; gap: 16px; }
.mini-h { margin: 0 0 8px; font-weight: 900; font-size: 15px; }
.mini-p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.mini-p b { color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.pills span.ok { border-color: color-mix(in srgb, var(--lime) 60%, transparent); color: var(--lime); }

.mirror-grid { display: grid; gap: 14px; }
.mirror-col { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.mirror-col .mc-num { font-family: var(--f-display); font-weight: 900; font-size: 52px; line-height: 1; letter-spacing: -0.04em; }
.mirror-col .mc-num small { font-size: 0.42em; }
.mirror-col .mc-label { margin: 4px 0 0; font-weight: 800; font-size: 14px; }
.mirror-col .insights { margin-top: 10px; }
.mirror-col .insights li { font-size: 13px; }

.years { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.years div { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.years b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; }
.years small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }

details.math { border-radius: 18px; }
details.math summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 900; font-size: 18px; }
details.math summary::-webkit-details-marker { display: none; }
details.math summary::after { content: '+'; font-family: var(--f-mono); font-size: 22px; color: var(--lime); transition: transform 0.3s; }
details.math[open] summary::after { transform: rotate(45deg); }
.math-body { margin-top: 14px; display: grid; gap: 14px; font-family: var(--f-mono); font-size: 13px; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.math-body h4 { margin: 0; font-family: var(--f-cn); font-size: 14px; color: var(--ink); }
.math-body .eq b { color: var(--lime); }
.math-body .eq i { font-style: normal; color: var(--pink); }
.letter-table { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin: 10px 0 14px; font-family: var(--f-mono); font-size: 13px; text-align: center; }
.letter-table div { padding: 5px 0; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.letter-table .h { background: none; color: var(--lime); font-weight: 800; }
.d-foot { text-align: center; padding: 12px 0 10px; font-size: 12px; color: var(--ink-3); line-height: 1.8; }

/* 玩完一个，接到下一个（engine/dossier.js 的 nextCard） */
.d-next { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border-color: color-mix(in srgb, var(--c1) 40%, var(--line)); background: radial-gradient(130% 140% at 0% 0%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 60%), radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--c2) 12%, transparent), transparent 60%), var(--glass); }
.d-next-k { font: 700 10.5px/1 var(--f-mono); letter-spacing: 0.16em; color: var(--c2); }
.d-next p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.d-next .btn-ghost { min-height: 46px; margin-top: 2px; }

/* ═══════════════ MODALS / TOAST ═══════════════ */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(4, 3, 8, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow: auto; padding: 24px 20px; border-radius: 26px; background: #0f0c1d; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(139, 108, 255, 0.5); }
.modal-x { position: absolute; top: 12px; right: 12px; }
.modal-kicker { margin: 0 0 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--lime); }
.modal-card h3 { margin: 0; font-size: 20px; font-weight: 900; }
.how-list p { margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.how-list b { color: var(--ink); margin-right: 6px; }
.how-note { color: var(--ink-3) !important; font-size: 12px !important; }
.poster-card { max-width: 440px; text-align: center; }
.poster-variants { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 10px; }
.poster-variants[hidden] { display: none; }
.poster-variant-row { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); }
.poster-variant { min-height: 40px; min-width: 96px; padding: 0 18px; border-radius: 99px; font-family: var(--f-display); font-weight: 800; font-size: 13px; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.poster-variant:hover { color: var(--ink); }
.poster-variant[aria-pressed='true'] { background: rgba(255, 255, 255, 0.16); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.poster-variant:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.poster-variant-note { margin: 0; max-width: 320px; font-family: var(--f-cn); font-size: 12px; line-height: 1.5; color: var(--ink-2); text-wrap: balance; }
.poster-frame { margin: 4px auto 0; width: min(100%, 320px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 60px -20px rgba(255, 79, 216, 0.5); }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-touch-callout: default; }
.poster-tip { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.poster-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.poster-sticker { margin: 14px auto 0; max-width: 340px; padding: 12px 14px 10px; border-radius: 16px; border: 1px solid rgba(212, 255, 58, 0.22); background: rgba(212, 255, 58, 0.04); text-align: left; }
.poster-sticker:empty { display: none; }
.ps-h { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.ps-h b { color: var(--ink); }
.ps-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.ps-steps li { display: grid; justify-items: center; gap: 5px; text-align: center; font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--ink-3); transition: color 0.3s; }
.ps-steps li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--f-mono); font-size: 12px; border: 1px solid var(--line-2); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.ps-steps li em { font-style: normal; color: #d4ff3a; }
.poster-sticker[data-step='1'] .ps-steps li:nth-child(1), .poster-sticker[data-step='2'] .ps-steps li:nth-child(-n+2), .poster-sticker[data-step='3'] .ps-steps li { color: var(--ink); }
.poster-sticker[data-step='1'] .ps-steps li:nth-child(1) b, .poster-sticker[data-step='2'] .ps-steps li:nth-child(2) b, .poster-sticker[data-step='3'] .ps-steps li:nth-child(3) b { background: #d4ff3a; border-color: #d4ff3a; color: #07060c; }
.poster-sticker[data-step='2'] .ps-steps li:nth-child(1) b, .poster-sticker[data-step='3'] .ps-steps li:nth-child(-n+2) b { background: rgba(212, 255, 58, 0.14); border-color: rgba(212, 255, 58, 0.5); color: #d4ff3a; }
.ps-copy { display: block; margin: 10px auto 0; min-height: 40px; font-weight: 800; color: #d4ff3a; }
.ps-url { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); color: var(--ink); font: 600 13px var(--f-mono); }
/* 给大家玩的短视频（engine/clip.js）：录的时候画布就在弹窗里，录完换成循环播放的视频 */
.clip-card { max-width: 440px; text-align: center; }
.clip-card h3 { margin: 0 0 12px; font-family: var(--f-display); font-size: 17px; line-height: 1.35; }
.cl-frame { position: relative; margin: 0 auto; width: min(100%, 280px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 60px -20px rgba(212, 255, 58, 0.35); }
.cl-frame canvas, .cl-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cl-frame [hidden] { display: none; }
.cl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--holo); transform: scaleX(0); transform-origin: left; }
.cl-status { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); }
.cl-how { margin: 10px auto 0; max-width: 340px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cl-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cl-cap { margin: 14px auto 0; max-width: 340px; padding: 12px 14px 8px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); text-align: left; }
.cl-cap small { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3); }
.cl-cap p { margin: 6px 0 4px; font-size: 13px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.cl-cap .btn-link { min-height: 40px; font-weight: 800; color: #d4ff3a; }
.cl-cap textarea { width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); color: var(--ink); font: 500 13px var(--f-cn); resize: none; }
.cl-cap textarea[hidden] { display: none; }
.cl-again { display: block; margin: 8px auto 0; min-height: 40px; color: var(--ink-2); }
.cl-note { margin: 6px auto 0; max-width: 320px; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 100px); z-index: 100; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 99px; background: #fff; color: #07060c; font-weight: 800; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 520px) {
  .br-m { display: inline; }
  .landing-steps { flex-direction: column; gap: 6px; }
  .landing-steps li + li::before { content: none; }
  .name-input { height: 64px; font-size: 24px; padding: 0 18px; }
  .date-input input { height: 64px; font-size: 24px; }
  .tag { height: 40px; padding: 0 12px; font-size: 14px; }
  .lchip { width: 32px; height: 44px; }
  .bar { grid-template-columns: 64px 1fr 30px; }
}
@media (min-width: 760px) {
  .screen-form { padding-top: calc(var(--safe-t) + 92px); }
  .dossier { grid-template-columns: repeat(6, 1fr); }
  .d-hero, .d-oracle, .d-people, .d-math, .d-foot { grid-column: span 6; }
  .d-mirror { grid-column: span 6; }
  /* 「你的光的下一层」占满一行，字和按钮排成一行 */
  .d-next { grid-column: span 6; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 18px; }
  .d-next p { flex: 1 1 320px; }
  .d-next .btn-ghost { margin-top: 0; }
  .d-bond { grid-column: span 6; }
  .num-grid { grid-template-columns: repeat(4, 1fr); }
  .person-cols { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .mirror-grid { grid-template-columns: 1fr 1fr; }
  .oracle-body { grid-template-columns: 1fr 1fr; }
  .oracle-body .ob-item.wide { grid-column: span 2; }
  .d-card { padding: 26px; }
}
@media (min-width: 1000px) {
  .d-mirror { grid-column: span 4; }
  .d-bond { grid-column: span 2; }
  .d-bond .years { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}


/* ── polish pass ── */
.topbar { transition: opacity 0.3s; background: linear-gradient(180deg, rgba(6, 5, 11, 0.85) 0%, rgba(6, 5, 11, 0.6) 55%, rgba(6, 5, 11, 0) 100%); }
body[data-screen='landing'] .topbar { background: none; }
@keyframes holo2 { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 300% 0; } }
.rd-num, .rd-tag { transform-box: view-box; transform-origin: 50% 50%; }
@media (max-width: 520px) {
  .letter-stream { gap: 5px; }
  .lchip { width: 29px; height: 42px; }
  .lchip b { font-size: 14px; }
}
.topbar { background: linear-gradient(180deg, rgba(6, 5, 11, 0.94) 0%, rgba(6, 5, 11, 0.86) 62%, rgba(6, 5, 11, 0) 100%); }

/* ═══════════════ Glowmancy · 合集外壳 ═══════════════ */
.sub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.sub-head-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--lime); }

/* ── 灵魂护照 ── */
.screen-passport, .screen-shop { flex-direction: column; align-items: center; padding: calc(var(--safe-t) + 78px) 16px calc(var(--safe-b) + 48px); }
.pp-inner { width: 100%; max-width: 580px; }
.pp-card {
  position: relative; margin: 24px 0 8px; padding: 18px 18px 14px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background:
    repeating-radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px),
    linear-gradient(150deg, #1b1438 0%, #120e26 48%, #1c0f2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 70px -34px rgba(139, 108, 255, 0.7), 0 24px 50px -30px rgba(0, 0, 0, 0.9);
}
.pp-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--holo); background-size: 300% 100%; opacity: 0.16; mix-blend-mode: screen; animation: holo 8s linear infinite; -webkit-mask: linear-gradient(115deg, transparent 18%, #000 46%, transparent 72%); mask: linear-gradient(115deg, transparent 18%, #000 46%, transparent 72%); pointer-events: none; }
.pp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-3); }
.pp-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-brand b { color: var(--lime); }
.pp-no { flex: none; color: var(--ink-2); }
.pp-card-mid { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 16px; }
.pp-photo { --oc1: var(--violet); --oc2: var(--cyan); position: relative; display: grid; place-items: center; width: 84px; height: 106px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--oc2) 42%, transparent), color-mix(in srgb, var(--oc1) 28%, transparent) 55%, rgba(255, 255, 255, 0.03) 82%); border: 1px solid rgba(255, 255, 255, 0.18); }
.pp-photo .sg { position: absolute; inset: 8px; display: grid; place-items: center; animation: spin 30s linear infinite; opacity: 0.85; }
.pp-photo .sg svg { width: 100%; height: auto; }
.pp-photo b { position: relative; font-family: var(--f-display); font-weight: 900; font-size: 36px; letter-spacing: -0.04em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.pp-photo b.initial { font-family: var(--f-cn); font-size: 38px; color: rgba(255, 255, 255, 0.92); }
.pp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; min-width: 0; margin: 0; }
.pp-fields > div { min-width: 0; }
.pp-fields .wide { grid-column: 1 / -1; }
.pp-fields dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink-3); white-space: nowrap; }
.pp-fields dd { margin: 2px 0 0; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-fields dd[data-pp='name'] { font-size: 20px; font-weight: 900; }
.pp-fields dd[data-pp='latin'], .pp-fields dd[data-pp='birth'] { font-family: var(--f-mono); letter-spacing: 0.06em; }
.pp-fields dd[data-pp='lp'] { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pp-fields dd[data-pp='lp'] b { font-family: var(--f-display); font-size: 16px; color: var(--lime); margin-right: 2px; }
.pp-fields .redact { color: var(--ink-3); letter-spacing: -1px; margin-right: 4px; }
.pp-stamps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, 0.14); }
.pp-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.2); }
.pp-stamp b { font-family: var(--f-display); font-weight: 900; font-size: 15px; line-height: 1; }
.pp-stamp b.small { font-size: 10px; letter-spacing: -0.03em; }
.pp-stamp.on { border: 2px solid var(--p2); color: var(--p2); transform: rotate(var(--r, -8deg)); background: radial-gradient(circle, color-mix(in srgb, var(--p1) 26%, transparent), transparent 72%); box-shadow: inset 0 0 0 3px #150f2b, inset 0 0 0 4px color-mix(in srgb, var(--p2) 70%, transparent), 0 0 18px -4px var(--p2); }
.pp-stamp small { margin-top: 2px; font-family: var(--f-mono); font-size: 6.5px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
.pp-stamp i { font-style: normal; font-family: var(--f-mono); font-size: 6.5px; opacity: 0.8; }
.pp-mrz { margin-top: 12px; font-family: var(--f-mono); font-size: clamp(9px, 2.5vw, 12px); letter-spacing: 0.12em; line-height: 1.55; color: rgba(246, 244, 255, 0.4); white-space: nowrap; overflow: hidden; }
.pp-mrz span { display: block; }
.pp-valid { position: absolute; right: 20px; top: 36%; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 50%; border: 4px double var(--lime); color: var(--lime); font-family: var(--f-display); font-weight: 900; opacity: 0; transform: rotate(-14deg) scale(2.4); pointer-events: none; text-shadow: 0 0 12px rgba(212, 255, 58, 0.5); box-shadow: 0 0 30px -6px rgba(212, 255, 58, 0.6); }
.pp-valid span { font-size: 21px; letter-spacing: 0.04em; }
.pp-valid small { font-family: var(--f-cn); font-size: 11px; letter-spacing: 0.3em; }
.pp-card.stamped .pp-valid { animation: pp-stamp 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
@keyframes pp-stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(2.4); } 60% { opacity: 1; transform: rotate(-14deg) scale(0.92); } 100% { opacity: 0.92; transform: rotate(-14deg) scale(1); } }
.pp-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.pp-actions .btn-holo { width: 100%; max-width: 360px; min-height: 60px; font-size: 17px; }
.pp-privacy { margin: 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.pp-privacy .btn-link { font-size: 12.5px; padding: 4px 6px; }
.pp-note { display: inline-flex; margin: 12px 0 0; padding: 6px 12px; border-radius: 99px; background: rgba(212, 255, 58, 0.07); border: 1px solid rgba(212, 255, 58, 0.25); color: var(--lime); font-size: 12.5px; }

/* ── 命运卡册 ── */
.album-inner { width: 100%; max-width: 880px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 24px; }
.fcard {
  --c1: var(--violet); --c2: var(--cyan);
  position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4.2; padding: 12px; border-radius: 18px; overflow: hidden; isolation: isolate; text-align: left;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 62%), radial-gradient(120% 80% at 100% 100%, color-mix(in srgb, var(--c2) 48%, transparent), transparent 62%), #120e22;
  border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.fcard::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 45%, transparent 60%); transform: translateX(-110%); transition: transform 0.8s var(--ease); pointer-events: none; }
.fcard:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 26px 50px -24px color-mix(in srgb, var(--c1) 80%, transparent); }
.fcard:hover::after { transform: translateX(110%); }
.fcard:active { transform: scale(0.97); }
.fcard-sigil { position: absolute; left: 6%; right: 6%; top: 14%; z-index: -1; opacity: 0.4; }
.fcard-sigil svg { width: 100%; height: auto; display: block; }
.fcard-top, .fcard-foot { display: flex; justify-content: space-between; gap: 6px; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.72); }
.fcard-big { margin-top: auto; font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 9vw, 44px); line-height: 1; letter-spacing: -0.04em; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); }
.fcard-title { margin-top: 8px; font-weight: 800; font-size: 13px; line-height: 1.35; }
.fcard-sub { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 9.5px; letter-spacing: 0.06em; }
.fcard-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 3 / 4.2; padding: 12px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: rgba(255, 255, 255, 0.02); text-align: center; color: var(--ink-3); transition: border-color 0.25s, background 0.25s; }
.fcard-slot:hover { border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.05); }
.fcard-slot strong { font-size: 13px; color: var(--ink-2); }
.fcard-slot small { font-size: 11.5px; }
.fcard-slot.is-live { border-color: color-mix(in srgb, var(--lime) 42%, transparent); }
.fcard-slot.is-live small { color: var(--lime); }

@media (max-width: 520px) {
  .pp-card { padding: 16px 14px 12px; }
  .pp-card-mid { gap: 12px; }
  .pp-photo { width: 72px; height: 92px; }
  .pp-stamp { width: 52px; height: 52px; }
  .pp-valid { width: 92px; height: 92px; right: 12px; }
  .album-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ═══════════════ LANGUAGE · 英文优先 / 中文切换 ═══════════════ */
/* 英文：拉丁字体在前（中文字形按字回退到苹方等）；中文：苹方在前 */
:root {
  --f-cn: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}
:root:lang(zh) {
  --f-cn: 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
}
/* 中文用户：模块脚本换好文案前先藏起来，避免闪一下英文 */
html.i18n-pending .topbar, html.i18n-pending main { visibility: hidden; }

.lang-btn {
  height: 32px; min-width: 44px; padding: 0 12px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--f-cn); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink-2); white-space: nowrap;
  transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.lang-btn:lang(en) { font-family: var(--f-mono); letter-spacing: 0.1em; }
.lang-btn:hover { border-color: var(--line-2); color: var(--ink); }
.lang-btn:active { transform: scale(0.92); }

/* 英文标签更长：羁绊拆解的标签列加宽 */
:root:lang(en) .bar { grid-template-columns: 104px 1fr 34px; }
@media (max-width: 520px) {
  :root:lang(en) .bar { grid-template-columns: 96px 1fr 30px; }
  .lang-btn { padding: 0 10px; min-width: 40px; }
}
/* 顶栏放不下时：品牌不换行，神谕状态只留一个点（文字在 title 里） */
.brand-word { white-space: nowrap; }
@media (max-width: 440px) {
  .oracle-pill { padding: 0; width: 32px; justify-content: center; }
  .oracle-pill span { display: none; }
}
/* 星球首页副标题：中文是短字宽间距，英文更长，收紧字距、改成等宽小号 */
:root:lang(en) .landing-cn { font-family: var(--f-mono); font-size: clamp(13px, 3.4vw, 18px); letter-spacing: 0.18em; padding-left: 0.18em; text-transform: uppercase; }

/* 13+ 门槛提示 */
.age-card { text-align: center; }
.age-card .modal-kicker { font-size: 28px; letter-spacing: 0.08em; font-weight: 800; }
.age-p { margin: 12px 0 20px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.age-ok { margin: 0 auto; }

/* ───────── 镭射闪卡皮肤（body.skin-holo；指针位置在 --hx / --hy）───────── */
.skin-holo .fcard { --hx: 50%; --hy: 30%; border-color: rgba(255, 255, 255, 0.45); }
.skin-holo .fcard::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0.55;
  background:
    radial-gradient(circle at var(--hx) var(--hy), rgba(255, 255, 255, 0.55), transparent 42%),
    repeating-linear-gradient(115deg, #ff4fd8 0%, #ffd23f 6%, #4fffb0 12%, #4ff7ff 18%, #8b6cff 24%, #ff4fd8 30%);
  background-size: 100% 100%, 300% 300%;
  background-position: center, var(--hx) var(--hy);
  transition: background-position 0.2s linear;
  animation: holo-drift 9s linear infinite;
}
.skin-holo .fcard-foot::after { content: 'HOLO'; position: absolute; z-index: 3; right: 10px; top: 30px; padding: 1px 6px; border-radius: 6px; font-family: var(--f-mono); font-size: 9px; background: linear-gradient(90deg, #ff4fd8, #ffd23f, #4ff7ff); color: #06050b; font-weight: 800; letter-spacing: 0.1em; }
@keyframes holo-drift { to { background-position: center, calc(var(--hx) + 300%) var(--hy); } }
@media (prefers-reduced-motion: reduce) { .skin-holo .fcard::before { animation: none; } }

/* ───────── 镭射商店入口 ───────── */
/* 商店没开（服务器的 payments 是 off）时，所有通往商店的入口（data-action="shop"）一律不出现：
   「我」封面的小图标、卡册的「镭射」、档案页的「补充次数」、护照页的「镭射商店 →」。
   body 的 data-payments 由 app.js 跟着 account 的状态写；还没读到时按 off 算，入口先不出来 */
body[data-payments='off'] [data-action='shop'] { display: none !important; }
.shop-entry {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 14px 18px; overflow: hidden; isolation: isolate;
  border-radius: var(--r); border: 1px solid var(--line); background: rgba(18, 15, 34, 0.5); text-align: left; transition: transform 0.25s var(--ease), border-color 0.25s;
}
.shop-entry:hover { transform: translateY(-2px); border-color: var(--line-2); }
.shop-entry:active { transform: scale(0.985); }
.shop-entry-foil { flex: none; width: 40px; height: 54px; border-radius: 8px; background: var(--holo); background-size: 300% 100%; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 6px 18px -6px rgba(255, 79, 216, 0.6); animation: foil-slide 6s linear infinite; transform: rotate(-8deg); }
.shop-entry-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.shop-entry-txt b { font-size: 16px; font-weight: 800; }
.shop-entry-txt small { font-size: 13px; color: var(--ink-3); }
.shop-entry-go { font-size: 20px; transition: transform 0.25s var(--ease); }
.shop-entry:hover .shop-entry-go { transform: translateX(4px); }
@keyframes foil-slide { to { background-position: 300% 0; } }

/* ───────── 镭射商店 ───────── */
.shop-inner { width: 100%; max-width: 640px; }
.shop-stage { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, rgba(255, 79, 216, 0.16), transparent 60%), radial-gradient(120% 120% at 100% 100%, rgba(79, 247, 255, 0.14), transparent 60%), rgba(12, 10, 24, 0.6); }
.shop-preview { flex: none; width: 150px; perspective: 700px; }
.shop-preview .fcard { width: 100%; animation: shop-float 5s ease-in-out infinite; }
@keyframes shop-float { 50% { transform: translateY(-6px) rotate(-2deg); } }
.shop-try { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.shop-try small { font-size: 12.5px; color: var(--ink-3); }
.shop-wallet, .acc-wallet { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.w-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-size: 12.5px; color: var(--ink-2); }
.w-chip b { color: var(--ink); }
.w-chip.is-holo { border-color: transparent; background: var(--holo); background-size: 200% 100%; color: #06050b; font-weight: 800; }
.shop-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.shop-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(18, 15, 34, 0.55); }
.shop-item.is-unlock { border-color: rgba(255, 79, 216, 0.35); }
.shop-item-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; background: rgba(255, 255, 255, 0.06); }
.shop-item.is-unlock .shop-item-ico { background: var(--holo); background-size: 300% 100%; color: #06050b; animation: foil-slide 6s linear infinite; }
.shop-item-ico b { font-family: var(--f-display); font-size: 17px; }
.shop-item-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-item-txt strong { font-size: 15px; }
.shop-item-txt small { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.shop-item-txt em { font-style: normal; font-size: 11px; font-family: var(--f-mono); letter-spacing: 0.12em; color: var(--lime); }
.shop-item-act { flex: none; }
.shop-buy { min-height: 44px; padding: 0 16px; font-size: 14px; gap: 10px; }
.shop-buy b { font-size: 13px; font-family: var(--f-mono); }
.shop-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.shop-toggle input { width: 18px; height: 18px; accent-color: var(--pink); }
.shop-soon, .shop-sandbox { font-size: 12.5px; color: var(--ink-3); }
.shop-sandbox { margin: 0; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line-2); }
.shop-fine { margin: 22px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.shop-fine a { color: var(--ink-2); text-underline-offset: 3px; }
@media (max-width: 520px) {
  .shop-stage { flex-direction: column; align-items: center; text-align: center; }
  .shop-try { align-items: center; }
  .shop-item { flex-wrap: wrap; }
  .shop-item-act { width: 100%; }
  .shop-buy { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .shop-entry-foil, .shop-item.is-unlock .shop-item-ico, .shop-preview .fcard { animation: none; } }

/* ───────── 护照页的账号区 + 登录弹窗 ───────── */
.pp-account { width: 100%; max-width: 460px; margin: 26px auto 0; }
.acc-box { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(18, 15, 34, 0.55); }
.acc-box.is-in { border-color: rgba(212, 255, 58, 0.3); }
.acc-h { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 14.5px; font-weight: 800; }
.acc-p { margin: 6px 0 14px; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.acc-sync { font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.08em; color: var(--ink-3); }
.acc-sync.is-ok { color: var(--lime); }
.acc-sync.is-error { color: var(--amber); }
.acc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 16px; }
.acc-actions .btn-ghost { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.acc-actions .btn-link { font-size: 13px; }
.acc-danger { color: rgba(255, 120, 140, 0.8) !important; }
.signin-p { margin: 10px 0 18px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.signin-btns { display: flex; flex-direction: column; gap: 10px; }
.signin-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 18px; border-radius: 16px; font-size: 15px; font-weight: 700; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--ink); transition: transform 0.2s var(--ease), background 0.2s; }
.signin-btn:hover { background: rgba(255, 255, 255, 0.1); }
.signin-btn:active { transform: scale(0.98); }
.signin-btn:disabled { opacity: 0.5; }
.signin-btn svg { width: 20px; height: 20px; }
.signin-btn.is-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.signin-btn.is-apple { background: #000; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.signin-legal { margin: 14px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); text-align: center; }
.signin-legal a { color: var(--ink-2); text-underline-offset: 3px; }
.signin-none { font-size: 13px; color: var(--ink-3); }
