/* ============================================================
   Know Myself — dark, editorial, a little mysterious.
   Tokens → base → components. Type colours are set inline as --c.
   ============================================================ */
:root {
  --bg: #0E1016;
  --bg-2: #12151D;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);
  --ink: #EDE7DB;
  --ink-2: #B9B1A1;
  --ink-3: #7F7A6F;
  --line: rgba(201, 169, 110, .16);
  --line-2: rgba(201, 169, 110, .32);
  --hair: rgba(255, 255, 255, .08);
  --gold: #C9A96E;
  --gold-2: #E3C98F;
  --gold-dim: rgba(201, 169, 110, .14);
  --c: #C9A96E;
  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -30px rgba(0, 0, 0, .9);
  --serif: "Cormorant Garamond", "Noto Serif SC", "Noto Serif TC", "Songti SC", "PingFang TC", "SimSun", Georgia, serif;
  --sans: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:lang(zh) { --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Cormorant Garamond", serif; --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Manrope", system-ui, sans-serif; }
:lang(zh-Hant) { --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "Cormorant Garamond", serif; --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Manrope", system-ui, sans-serif; }
:lang(zh) .display { letter-spacing: 0; font-weight: 600; }
:lang(zh) .eyebrow { letter-spacing: .2em; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column; position: relative;
}
/* night sky: glow + stars + grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% -5%, rgba(201, 169, 110, .16), transparent 70%),
    radial-gradient(40% 30% at 85% 20%, rgba(57, 135, 229, .07), transparent 70%),
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 33% 42%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 91% 55%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 6% 71%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 78%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 47% 9%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 24% 93%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 85% 86%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 56% 30%, rgba(255,255,255,.25), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { width: 100%; max-width: 700px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding-bottom: 56px; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: rgba(201, 169, 110, .35); }

/* ===== header / footer ===== */
.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: .02em; color: var(--ink); }
.brand-mark { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--gold); position: relative; box-shadow: 0 0 18px rgba(201, 169, 110, .35); }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--gold); }
.top-right { display: flex; align-items: center; gap: 14px; }
.top-link { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; }
.top-link:hover { color: var(--gold-2); }
.top-chip { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--gold); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-decoration: none; color: var(--ink-3); padding: 4px 9px; border-radius: 999px; }
.lang a.on { background: var(--gold-dim); color: var(--gold-2); }
.lang a:hover { color: var(--ink); }
.foot { padding: 30px 20px 40px; color: var(--ink-3); font-size: 12.5px; text-align: center; border-top: 1px solid var(--hair); }
.foot a { color: var(--ink-3); }
.loading { color: var(--ink-3); text-align: center; padding: 90px 0; letter-spacing: .1em; }

/* ===== type ===== */
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.04; margin: 0; color: var(--ink); }
h1.display { font-size: clamp(40px, 8vw, 66px); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.eyebrow.center { text-align: center; }
.eyebrow.gold { color: var(--gold); }
.lede { font-size: 19px; color: var(--ink-2); margin: 20px 0 28px; max-width: 36ch; line-height: 1.55; }
.sub { font-size: 13px; color: var(--ink-3); margin: 16px 0 0; letter-spacing: .02em; }
.hl { color: var(--gold-2); font-style: italic; font-weight: 500; }
.card-title { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .01em; margin: 0 0 18px; color: var(--ink); }
.mini-title { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.caption { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; text-align: center; }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 14.5px; letter-spacing: .02em; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #B08E56); color: #14120D; box-shadow: 0 10px 30px -12px rgba(201, 169, 110, .7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(201, 169, 110, .85); }
.btn-primary .arrow { transition: transform .15s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); background: var(--gold-dim); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ===== cards ===== */
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; margin-top: 14px; box-shadow: var(--shadow); position: relative; }
.card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 169, 110, .45), transparent); border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* ===== landing ===== */
.hero { padding: 44px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.banner { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink-2); }
.banner strong { color: var(--ink); display: block; }
.banner-mark { flex: 0 0 auto; display: grid; place-items: center; }
.types { padding: 26px 0 8px; }
.type-grid { display: grid; gap: 10px; }
.type-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.type-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.type-card { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 18px 12px 14px; text-align: center; transition: border-color .2s ease, transform .2s ease, background .2s ease; display: grid; justify-items: center; gap: 8px; }
.type-card:hover { border-color: var(--c); transform: translateY(-2px); background: var(--surface-2); }
.type-card .sigil { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent)); }
.type-name { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.15; }
.type-tag { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; letter-spacing: .02em; }
.how { padding: 26px 0 10px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; color: var(--ink-2); font-size: 15px; }
.steps li strong { color: var(--ink); }
.steps li::before { content: counter(step, upper-roman); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--serif); font-weight: 600; font-size: 14px; display: grid; place-items: center; color: var(--gold); }

/* ===== hub ===== */
.hub-hero { padding: 50px 0 30px; text-align: center; }
.hub-hero .lede { margin-left: auto; margin-right: auto; max-width: 48ch; }
.quiz-grid { display: grid; gap: 14px; margin-top: 8px; }
.quiz-card { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
.quiz-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); pointer-events: none; }
.quiz-card:hover { transform: translateY(-2px); border-color: var(--c); }
.quiz-sigil { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--c); background: var(--surface); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 40%, transparent)); }
.quiz-card .kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c); margin: 0 0 8px; }
.quiz-card h2 { font-family: var(--serif); font-weight: 600; font-size: 27px; letter-spacing: 0; margin: 0 0 8px; line-height: 1.12; color: var(--ink); }
.quiz-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.quiz-card .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quiz-card .go { margin-left: auto; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; color: var(--gold-2); }
.chip { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); border: 1px solid var(--hair); border-radius: 999px; padding: 4px 10px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 34px 0 10px; }
.trust div { padding: 20px; border-radius: 16px; border: 1px solid var(--hair); background: var(--surface); }
.trust h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.trust p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ===== quiz ===== */
.progress { height: 2px; background: var(--hair); margin-top: 22px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .45s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 0 10px rgba(201, 169, 110, .6); }
.q-card { padding: 30px 0 10px; }
.q-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.q-top .eyebrow { margin: 0; }
.q-top .num { color: var(--gold); font-family: var(--serif); font-size: 15px; letter-spacing: .05em; }
.q-top .of { color: var(--ink-3); }
.btn-back { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); display: grid; place-items: center; font-size: 15px; transition: all .15s ease; }
.btn-back:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-2); }
.btn-back:disabled { opacity: .25; cursor: default; }
.part-chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; margin: 0 0 16px; }
.q-text { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4.8vw, 34px); line-height: 1.22; letter-spacing: 0; margin: 0 0 28px; color: var(--ink); }
.q-text strong { font-weight: 700; color: var(--gold-2); }
.q-text.statement { font-style: italic; }
.q-text.statement::before { content: "“"; color: var(--gold); margin-right: .05em; }
.q-text.statement::after { content: "”"; color: var(--gold); margin-left: .05em; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: flex-start; gap: 16px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px 18px; font-size: 15.5px; line-height: 1.5; color: var(--ink); transition: border-color .15s ease, transform .15s ease, background .15s ease, box-shadow .15s ease; }
.opt:hover:not(:disabled) { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-1px); box-shadow: 0 10px 30px -18px rgba(201, 169, 110, .5); }
.opt.selected { border-color: var(--gold); background: var(--gold-dim); }
.opt.selected .key { background: var(--gold); color: #14120D; border-color: var(--gold); }
.opt:disabled:not(.selected) { opacity: .45; }
.key { flex: 0 0 auto; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--serif); font-size: 14px; font-weight: 600; display: grid; place-items: center; color: var(--gold); transition: all .15s ease; }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 22px 0 0; }
.scale-hint { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: -8px 0 12px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-btn { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px 6px 12px; display: grid; gap: 8px; justify-items: center; transition: all .15s ease; animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; }
.scale-btn:hover:not(:disabled) { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-1px); }
.scale-btn.selected { border-color: var(--gold); background: var(--gold-dim); }
.scale-btn:disabled:not(.selected) { opacity: .45; }
.scale-num { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--gold-2); line-height: 1; }
.scale-label { font-size: 10.5px; color: var(--ink-3); text-align: center; line-height: 1.25; letter-spacing: .02em; }

/* ===== result ===== */
.result-hero { text-align: center; padding: 40px 0 26px; }
.hero-sigil { display: flex; justify-content: center; margin: 4px 0 10px; }
.hero-sigil .sigil { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--c) 55%, transparent)); animation: breathe 6s ease-in-out infinite; }
.type-title { color: var(--c); }
.type-sub { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 12px 0 0; }
.type-tagline { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 23px; color: var(--ink-2); margin: 12px 0 0; }
.summary { font-size: 16.5px; line-height: 1.65; color: var(--ink); margin: 0 0 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.check, .arrow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.check li, .arrow-list li { position: relative; padding-left: 22px; }
.check li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: 9px; color: var(--gold); }
.arrow-list li::before { content: "◇"; position: absolute; left: 0; top: 1px; font-size: 9px; color: var(--c); }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill.tiny { font-size: 9.5px; padding: 2px 7px; vertical-align: middle; margin-left: 8px; color: var(--gold-2); background: var(--gold-dim); }
.pill.aligned { background: rgba(25, 158, 112, .18); color: #5FD3A4; }
.pill.close { background: rgba(57, 135, 229, .18); color: #7FB1F0; }
.pill.split { background: rgba(217, 89, 38, .2); color: #F19A6A; }

/* meters */
.meter + .meter { margin-top: 22px; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.meter-label { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 9px; }
.meter.dominant .meter-label { color: var(--ink); }
.meter-label .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; }
.meter-val { font-size: 13px; color: var(--ink-3); }
.meter-val strong { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 500; }
.meter-val small { font-size: 12px; color: var(--ink-3); margin-left: 1px; }
.meter-val .lvl { margin-left: 6px; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; font-weight: 700; }
.meter-track { height: 6px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 3px; transition: width 1.1s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 0 12px currentColor; }
.meter-blurb { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }

/* star map */
.map-wrap { display: flex; justify-content: center; }
.starmap { width: 100%; max-width: 380px; height: auto; display: block; }
.starmap .map-bg { fill: #0B0D12; }
.starmap .map-frame { fill: none; stroke: var(--line-2); }
.starmap .grid { stroke: rgba(201, 169, 110, .22); stroke-dasharray: 2 5; }
.starmap .axis { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; fill: var(--ink-3); }
.starmap .cell-name { font-family: var(--serif); font-size: 12.5px; font-weight: 600; fill: var(--ink); letter-spacing: .02em; }
.starmap .you-label { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; fill: var(--ink); }
.starmap .you-ring { opacity: .35; animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }

/* insights / moves */
.insights { border-left: 2px solid var(--gold); }
.insights .eyebrow { margin-bottom: 12px; color: var(--gold); }
.insight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.insight-list li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.insight-list li::before { content: "“"; position: absolute; left: 0; top: -8px; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--gold); }
.moves { margin: 0; padding: 0; list-style: none; counter-reset: mv; display: grid; gap: 16px; }
.moves li { counter-increment: mv; position: relative; padding-left: 44px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.moves li strong { color: var(--ink); }
.moves li::before { content: counter(mv, upper-roman); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c); color: var(--c); font-family: var(--serif); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.watch { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-2); }
.watch-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .02em; }
.watch-head strong { color: var(--ink); }
.watch-mark { color: var(--gold); font-size: 11px; }
.watch p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* share / invite / report frames all speak one language:
   dark surface, hairline top edge, accent border + wash, sigil watermark */
.frame { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px; margin-top: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 42%, var(--line)); box-shadow: var(--shadow); }
.frame::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 70%, transparent), transparent); }
.frame::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 16%, transparent), transparent); pointer-events: none; }
.frame > *:not(.sr-only) { position: relative; }
.frame > .frame-sigil { position: absolute; right: -34px; top: -30px; opacity: .10; pointer-events: none; color: var(--c); line-height: 0; }
.frame-brand { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--c); }

/* share */
.share { margin-top: 14px; }
.share-line { font-family: var(--serif); font-size: clamp(23px, 4.4vw, 30px); font-weight: 500; line-height: 1.25; margin: 0 0 16px; color: var(--ink); }
.share-cta { margin: 0; font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.share-btns.center { justify-content: center; }

/* report card (paywall) */
.report-card { color: var(--ink); }
.report-title { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0 0 10px; line-height: 1.12; }
.report-lede { color: var(--ink-2); font-size: 15px; margin: 0 0 22px; }
.report-sections { list-style: none; margin: 0 0 20px; padding: 0; display: grid; counter-reset: rs; }
.report-sections li { counter-increment: rs; padding: 11px 0 11px 40px; font-size: 14.5px; display: flex; align-items: center; border-top: 1px solid var(--hair); position: relative; color: var(--ink); }
.report-sections li:last-child { border-bottom: 1px solid var(--hair); }
.report-sections li::before { content: counter(rs, upper-roman); position: absolute; left: 0; top: 11px; width: 28px; font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .05em; }
.report-bullets { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.report-bullets li::before { content: "◆"; margin-right: 10px; color: var(--gold); font-size: 8px; vertical-align: middle; }
.report-cta { display: grid; gap: 8px; justify-items: start; }
.fineprint { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.lead-form { display: grid; gap: 10px; }
.lead-note { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.lead-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.lead-form input { min-width: 0; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 12px 16px; font: inherit; font-size: 15px; outline: none; }
.lead-form input::placeholder { color: var(--ink-3); }
.lead-form input:focus { border-color: var(--gold); }
.lead-ok { margin: 0; font-size: 15px; font-weight: 600; color: var(--gold-2); }
.result-foot { text-align: center; padding: 30px 0 0; }
.disclaimer { font-size: 12.5px; color: var(--ink-3); margin: 16px auto 0; max-width: 50ch; }

/* invite */
.invite-text { color: var(--ink-2); font-size: 15px; margin: -6px 0 16px; }
.name-input { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); padding: 12px 14px; font: inherit; font-size: 15px; background: var(--surface); color: var(--ink); outline: none; margin-bottom: 10px; }
.name-input:focus { border-color: var(--gold); }
.link-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.link-input { min-width: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 12px 16px; font: inherit; font-size: 13px; color: var(--ink-2); outline: none; text-overflow: ellipsis; }

/* match */
.match-hero .names { font-size: clamp(32px, 6.5vw, 50px); }
.match-hero .amp { color: var(--c); font-style: italic; font-weight: 400; }
.ring-wrap { display: flex; justify-content: center; margin: 22px 0 10px; }
.ring { width: 156px; height: 156px; }
.ring-track { stroke: var(--hair); }
.ring-fill { transition: stroke-dashoffset 1.3s cubic-bezier(.2, .7, .2, 1); filter: drop-shadow(0 0 8px currentColor); }
.ring-num { font-family: var(--serif); font-size: 42px; font-weight: 500; fill: var(--ink); }
.ring-sub { font-family: var(--sans); font-size: 10px; font-weight: 700; fill: var(--ink-3); letter-spacing: .15em; }
.band-title { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 6px 0 8px; }
.band-text { color: var(--ink-2); font-size: 16px; max-width: 54ch; margin: 0 auto; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; text-align: center; }
.vs-side { display: grid; justify-items: center; gap: 4px; }
.vs-side .sigil { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 50%, transparent)); margin-bottom: 6px; }
.vs-who { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.vs-type { font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--c); margin: 0; }
.vs-tag { margin: 0; font-size: 13.5px; color: var(--ink-2); font-style: italic; font-family: var(--serif); }
.vs-mid { font-family: var(--serif); font-size: 30px; color: var(--ink-3); }
.pair-legend { display: flex; gap: 20px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: -6px 0 20px; }
.pair-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pair-dim + .pair-dim { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hair); }
.pair-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.pair-label { font-weight: 600; font-size: 15px; }
.pair-track { position: relative; height: 6px; border-radius: 3px; background: var(--hair); margin: 12px 8px; }
.pair-span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--surface-3); }
.pair-span.aligned { background: rgba(25, 158, 112, .5); }
.pair-span.close { background: rgba(57, 135, 229, .5); }
.pair-span.split { background: rgba(217, 89, 38, .6); }
.pm { position: absolute; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); border: 2px solid var(--bg); box-shadow: 0 0 10px rgba(0, 0, 0, .6); box-sizing: border-box; }
.pm-a { background: var(--ink); border-radius: 50%; }
.pm-b { background: var(--gold); border-radius: 3px; transform: translate(-50%, -50%) rotate(45deg); }
.pm.static { position: static; transform: none; width: 12px; height: 12px; display: inline-block; }
.pm-b.static { transform: rotate(45deg); }
.pair-ends { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.pair-text { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* report page */
.report-body { padding: 28px 30px; }
.report-status { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
.report-status strong { color: var(--ink); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold); animation: spin .9s linear infinite; flex: 0 0 auto; }
.done-mark { color: var(--gold-2); font-size: 16px; }
.fail-mark { color: #F19A6A; font-size: 12px; }
.err { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 36px 0 12px; color: var(--gold-2); letter-spacing: .01em; }
.prose h2:first-child { margin-top: 6px; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 26px 0 8px; }
.prose h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 22px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 18px 0; padding: 12px 18px; border-left: 2px solid var(--gold); background: var(--surface); font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 26px 0; }
.prose strong { color: var(--gold-2); font-weight: 600; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px); background: var(--gold); color: #14120D; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; opacity: 0; transition: all .25s ease; z-index: 10; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== motion ===== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
.enter { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.enter.d1 { animation-delay: .08s; } .enter.d2 { animation-delay: .16s; } .enter.d3 { animation-delay: .24s; }
.enter.d4 { animation-delay: .32s; } .enter.d5 { animation-delay: .40s; } .enter.d6 { animation-delay: .48s; }
.opts .opt { animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; }
.q-card.leave { animation: none; opacity: 0; transform: translateY(-10px); transition: all .14s ease-in; }
@media (prefers-reduced-motion: reduce) {
  .enter, .opts .opt, .scale-btn, .starmap .you-ring, .hero-sigil .sigil { animation: none !important; }
  .meter-fill, .progress-fill, .ring-fill { transition: none; }
}

/* ===== print: turn the report page into an actual document =====
   Browser "Save as PDF" is the delivery mechanism, so this sheet has to produce
   something that reads like a bought report: a cover page, one section per page,
   no orphaned headings, and nothing from the app chrome. */
.print-only { display: none; }
@media print {
  /* Fallback only: the designed PDF is built by app.js (buildPrintDoc) with print.css + paged.js.
     This just keeps the on-screen report legible if someone prints the page directly. */
  @page { size: A4; margin: 20mm 18mm; }
  html, body { background: #fff !important; color: #14161a !important; }
  body::before, body::after, .top, .foot, #sky, .result-foot, .report-status, .btn, .share-btns, .sample-link, .lang, .pdf-view { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .card, .report-body { border: 0 !important; box-shadow: none !important; background: none !important; padding: 0 !important; }
  .enter { opacity: 1 !important; transform: none !important; animation: none !important; }
  .type-title, .prose, .prose h2, .prose h3, .prose strong, .prose blockquote { color: #14161a !important; }
  .prose h2 { break-before: page; }
  .prose > h2:first-child { break-before: avoid; }
  .score-chart .sc-label { fill: #14161a; } .score-chart .sc-track { fill: #e6e8ec; } .score-chart .sc-val { fill: #4a4f57; }
}

/* ===== responsive ===== */
@media (max-width: 600px) {
  .frame { padding: 22px 18px; }
  .type-grid.cols-4, .type-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
  .lead-row, .link-box { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .lede { font-size: 17.5px; }
  .opt { padding: 14px 14px; font-size: 15px; }
  .quiz-card { grid-template-columns: 60px 1fr; gap: 14px; padding: 18px; }
  .quiz-sigil { width: 60px; height: 60px; }
  .quiz-sigil .sigil { width: 40px; height: 40px; }
  .quiz-card h2 { font-size: 22px; }
  .trust { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .vs-mid { display: none; }
  .vs-side + .vs-side { border-top: 1px solid var(--hair); padding-top: 16px; }
  .scale-label { display: none; }
  .scale-btn { padding: 14px 4px; }
  .report-body { padding: 22px 18px; }
  .top { flex-wrap: wrap; }
}

/* ===== v3.1: interactive sky, shared result card, share sheet ===== */
#sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.shared-card { margin-top: 22px; }
.shared-head { display: flex; align-items: center; gap: 18px; margin: 4px 0 14px; }
.shared-head .sigil { flex: 0 0 auto; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 55%, transparent)); }
.shared-name { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.05; margin: 0; color: var(--c); }
.shared-sub { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 0; }
.shared-tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-2); margin: 6px 0 0; }
.shared-summary { font-size: 15.5px; line-height: 1.6; color: var(--ink); margin: 0 0 16px; }
.shared-meters { margin: 0 0 20px; padding-top: 6px; border-top: 1px solid var(--hair); }
.shared-meters .meter-blurb { display: none; }
.shared-meters .meter { margin-top: 14px; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(6, 7, 10, .72); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; z-index: 50; opacity: 0; transition: opacity .2s ease; padding: 16px; }
.sheet-backdrop.show { opacity: 1; }
.sheet { position: relative; width: 100%; max-width: 480px; background: linear-gradient(180deg, #171A22, #10121A); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px 22px 22px; box-shadow: var(--shadow); transform: translateY(16px); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.sheet-backdrop.show .sheet { transform: none; }
.sheet-text { font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ink); margin: 0 0 16px; padding-right: 30px; }
.sheet-link { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 14px; }
.sheet-link input { min-width: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 12px 16px; font: inherit; font-size: 13px; color: var(--ink-2); outline: none; text-overflow: ellipsis; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet-grid .btn { padding: 11px 10px; font-size: 13.5px; }
.sheet-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; }
.sheet-close:hover { color: var(--ink); border-color: var(--gold); }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } }
@media (max-width: 600px) { .shared-head { flex-direction: column; align-items: flex-start; gap: 12px; } .shared-name { font-size: 28px; } .sheet-grid { grid-template-columns: repeat(2, 1fr); } }

/* locked report (couples quiz, before the partner has answered) */
.report-card.locked { border-style: dashed; }
.report-card.locked .report-sections li { color: var(--ink-2); }
.report-locked { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.report-locked .lock-mark { color: var(--gold); font-size: 11px; margin-top: 4px; }
.report-locked strong { color: var(--gold-2); font-size: 15px; }
.report-locked p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.report-status.sample { color: var(--gold-2); }
.sample-link { font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.sample-link:hover { color: var(--gold-2); border-color: var(--gold); }

.sheet .name-input { margin: 0 0 10px; }
.sheet-native { width: 100%; margin: 0 0 12px; }

/* ===== methodology page ===== */
.hero-narrow { max-width: 720px; margin: 0 auto; text-align: center; padding-bottom: 10px; }
.method-title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 46px); line-height: 1.08; margin: 6px 0 14px; }
.method-card { margin-top: 18px; }
.method-card p { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); margin: 0 0 14px; }
.method-card p:last-child { margin-bottom: 0; }
.method-card strong { color: var(--ink); font-weight: 600; }
.method-item { padding: 20px 0; border-top: 1px solid var(--hair); }
.method-item:first-of-type { padding-top: 0; border-top: 0; }
.method-item h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 8px; }
.method-item h3 a { color: var(--c); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.method-item h3 a:hover { border-bottom-color: var(--c); }
.method-basis { margin: 0 0 16px !important; }
.method-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; }
.method-stats > div { background: var(--surface); padding: 10px 14px; }
.method-stats dt { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 3px; }
.method-stats dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.method-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 600px) { .method-stats { grid-template-columns: 1fr; } }

/* ===== report score chart (screen) ===== */
.score-chart { margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--hair); }
.score-chart svg { width: 100%; height: auto; display: block; }
.score-chart .sc-label { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink); }
.score-chart .sc-track { fill: rgba(255, 255, 255, .07); }
.score-chart .sc-val { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--ink-2); dominant-baseline: middle; }

/* ===== type plate (the fixed illustration) in heroes ===== */
.hero-plate { display: flex; justify-content: center; margin: 2px 0 8px; }
.hero-plate svg { width: min(320px, 78vw); height: auto; filter: drop-shadow(0 0 34px color-mix(in srgb, var(--c) 30%, transparent)); animation: breathe 7s ease-in-out infinite; }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); text-align: center; margin: 10px 0 0; }
.result-hero .hero-plate + .type-title { margin-top: 0; }

/* ===== PDF view: the paged document rendered in an iframe, print dialog on top ===== */
.pdf-view { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #2A2D33; }
.pdf-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--hair); color: var(--ink-2); font-size: 14px; }
.pdf-msg { display: inline-flex; align-items: center; gap: 10px; }
.pdf-msg .spinner { width: 14px; height: 14px; }
.pdf-btns { display: flex; gap: 8px; }
.pdf-frame { flex: 1; width: 100%; border: 0; background: #2A2D33; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
body.no-scroll { overflow: hidden; }
@media (max-width: 600px) { .pdf-bar { flex-wrap: wrap; } }
