:root {
  --bg: #070707;
  --panel: #0d0d0d;
  --panel-2: #111;
  --ink: #f2eee8;
  --muted: #8d8985;
  --line: rgba(255,255,255,.11);
  --red: #e32636;
  --deep-red: #76121c;
  --soft-red: rgba(227,38,54,.16);
  --display: "STZhongsong", "Songti SC", "SimSun", serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); min-height: 100vh; overflow-x: hidden; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.noise { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(177,15,32,.12), transparent 68%); pointer-events: none; z-index: 0; transform: translate(-50%, -50%); }
.screen { display: none; min-height: 100vh; position: relative; z-index: 1; animation: screenIn .55s ease both; }
.screen.active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.site-header, .quiz-header { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 clamp(24px, 5vw, 76px); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
.brand-mark { font-family: Georgia, serif; font-size: 30px; letter-spacing: -3px; color: var(--red); }
.brand-copy { font-size: 8px; letter-spacing: 2.2px; line-height: 1.45; font-weight: 600; }
.header-index { font-size: 11px; color: var(--muted); letter-spacing: 4px; }

.home-screen::before { content: ""; position: absolute; left: 50%; top: 104px; bottom: 0; border-left: 1px solid rgba(255,255,255,.035); }
.hero-grid { min-height: calc(100vh - 183px); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(460px, .96fr); align-items: center; max-width: 1440px; margin: auto; padding: 50px clamp(24px, 7vw, 100px); gap: 50px; }
.eyebrow { color: #b4aeaa; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 42px; height: 1px; background: var(--red); display: inline-block; }
.hero-copy h1, .result-hero h1 { font-family: var(--display); font-size: clamp(47px, 5.35vw, 83px); line-height: 1.05; letter-spacing: -.06em; margin: 27px 0 30px; font-weight: 900; white-space: nowrap; }
.hero-copy h1 em { margin-left: .15em; }
.hero-copy h1 em, .result-hero h1 em { color: var(--red); font-style: normal; -webkit-text-stroke: 1px var(--red); text-shadow: 0 0 55px rgba(227,38,54,.2); }
.hero-intro { color: #a8a29e; max-width: 520px; line-height: 2; font-family: var(--display); font-size: 15px; letter-spacing: .05em; }
.hero-actions { display: flex; gap: 30px; align-items: center; margin-top: 42px; }
.primary-btn { border: 0; background: var(--red); color: white; height: 62px; min-width: 190px; padding: 0 8px 0 28px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; cursor: pointer; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; transition: .3s ease; box-shadow: 0 16px 45px rgba(227,38,54,.17); }
.home-screen .primary-btn span { font-size: 24px; letter-spacing: 3px; }
.primary-btn b { width: 46px; height: 46px; display: grid; place-items: center; background: rgba(0,0,0,.17); font-size: 19px; }
.primary-btn:hover { transform: translateY(-3px); background: #f32b3c; box-shadow: 0 20px 55px rgba(227,38,54,.29); }
.text-btn { border: 0; background: none; color: #aaa4a0; padding: 14px 0; cursor: pointer; font-size: 11px; letter-spacing: 1.2px; border-bottom: 1px solid #343130; }
.text-btn span { color: var(--red); margin-left: 8px; }
.stats { display: flex; margin-top: 60px; border-top: 1px solid var(--line); max-width: 520px; padding-top: 25px; }
.stats div { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.stats strong { font-family: Georgia, serif; color: #ddd6d0; font-size: 27px; font-weight: 400; }
.stats span { color: #686462; font-size: 10px; letter-spacing: 1px; }

.sigil-wrap { width: min(42vw, 570px); aspect-ratio: 1; position: relative; margin: auto; display: grid; place-items: center; }
.sigil-wrap::before, .sigil-wrap::after { content: ""; position: absolute; inset: 17%; border: 1px solid rgba(227,38,54,.25); transform: rotate(22.5deg); }
.sigil-wrap::after { inset: 28%; transform: rotate(45deg); border-color: rgba(255,255,255,.1); }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); }
.orbit::before, .orbit::after { content:""; position:absolute; inset:50% 0 auto; border-top:1px solid rgba(255,255,255,.08); transform:rotate(35deg); }
.orbit::after { transform:rotate(-35deg); }
.orbit-one { inset: 4%; animation: spin 50s linear infinite; }
.orbit-two { inset: 20%; border-color: rgba(227,38,54,.3); animation: spinBack 36s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinBack { to { transform: rotate(-360deg); } }
.sigil-core { width: 116px; height: 116px; border: 1px solid var(--red); border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(circle, #1b090b 0, #090909 70%); box-shadow: 0 0 65px rgba(227,38,54,.17); z-index: 2; }
.sigil-core span { font: 54px/.85 Georgia, serif; color: var(--red); }
.sigil-core small { font-size: 7px; letter-spacing: 3px; color: #69575a; margin-top: 9px; }
.sigil-item { position: absolute; text-align: center; z-index: 3; }
.sigil-item b { display: block; font-family: var(--display); font-size: 27px; }
.sigil-item small { display: block; color: #5d5856; font-size: 7px; letter-spacing: 2px; margin-top: 3px; }
.item-1 { top: 0; left: 43%; }.item-2 { top: 19%; right: 2%; }.item-3 { bottom: 19%; right: 2%; }.item-4 { bottom: -1%; left: 45%; }.item-5 { bottom: 17%; left: 2%; }.item-6 { top: 19%; left: 1%; }.item-7 { top: 47%; right: -5%; }
.home-footer { height: 79px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 5vw, 76px); color: #5f5b59; font-size: 9px; letter-spacing: .8px; }
.home-footer span { letter-spacing: 2px; white-space: nowrap; }

.quiz-screen { min-height: 100vh; background: radial-gradient(circle at 80% 50%, rgba(125,10,23,.11), transparent 36%), var(--bg); }
.quiz-header { height: 88px; }
.brand.mini .brand-mark { font-size: 25px; }
.quiz-meta { display: flex; gap: 24px; font-size: 10px; letter-spacing: 2px; color: #777; }
.quiz-meta b { color: #c6bfbb; font-weight: 500; }
.progress-track { height: 2px; background: #171717; }
.progress-track span { display: block; height: 100%; background: var(--red); transition: width .45s ease; box-shadow: 0 0 12px var(--red); }
.question-shell { min-height: calc(100vh - 90px); display: grid; grid-template-columns: minmax(110px, .3fr) minmax(500px, 760px) minmax(80px, .25fr); justify-content: center; gap: clamp(20px, 5vw, 90px); padding: clamp(50px, 7vh, 100px) 32px; }
.question-number { color: var(--red); font: clamp(58px, 7vw, 104px)/1 Georgia, serif; opacity: .36; text-align: right; }
.question-content { grid-column: 2; }
.question-kicker { color: #615c59; font-size: 9px; letter-spacing: 3px; margin: 5px 0 25px; }
.question-content h2 { font-family: var(--display); font-size: clamp(28px, 3.5vw, 48px); line-height: 1.45; margin: 0; letter-spacing: -.02em; min-height: 132px; }
.question-hint { color: #686361; font-size: 11px; margin: 18px 0 32px; }
.answers { display: grid; gap: 10px; }
.answer-btn { width: 100%; min-height: 61px; background: #0c0c0c; border: 1px solid #242120; color: #97918d; cursor: pointer; display: flex; align-items: center; text-align: left; transition: .22s ease; padding: 0 20px; font-size: 16.6px; }
.answer-btn span { width: 38px; color: #4e4947; font: 18.7px Georgia, serif; transition: .22s ease; }
.answer-btn:hover { border-color: #633039; color: #ded8d4; transform: translateX(4px); }
.answer-btn.selected { border-color: var(--red); background: linear-gradient(90deg, rgba(227,38,54,.18), rgba(227,38,54,.025)); color: #fff; }
.answer-btn.selected span { color: var(--red); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.nav-btn, .outline-btn { background: none; border: 1px solid #302c2a; color: #85807d; min-width: 150px; height: 52px; cursor: pointer; letter-spacing: 1px; font-size: 15px; transition: .2s; }
.nav-btn:hover:not(:disabled), .outline-btn:hover { color: #fff; border-color: #777; }
.nav-btn:disabled { opacity: .25; cursor: not-allowed; }
.nav-btn.next { color: #c9c2be; }

.result-screen { padding-bottom: 70px; background: radial-gradient(circle at 16% 10%, rgba(163,15,31,.14), transparent 25%), var(--bg); }
.result-hero { max-width: 1280px; margin: auto; padding: 85px 7vw 70px; position: relative; }
.result-no { position: absolute; right: 7vw; top: 95px; color: #4b4745; font-size: 9px; letter-spacing: 3px; }
.result-hero h1 { font-size: clamp(33px, 4.7vw, 61px); margin-bottom: 45px; white-space: normal; }
.dominant-row { display: grid; grid-template-columns: 160px minmax(0, 650px); align-items: center; gap: 42px; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--red) 0deg, #201c1c 0deg); position: relative; transition: background 1s ease; }
.score-ring::before { content:""; position:absolute; inset:7px; border-radius:50%; background:#090909; }
.score-ring div { z-index:1; text-align:center; }
.score-ring strong { display:block; font: 46px/1 Georgia,serif; color:var(--red); }
.score-ring span { font-size:8px; color:#777; letter-spacing:1px; }
.dominant-name-inline { color:var(--red); font:900 clamp(48px,6vw,78px)/1 var(--display); letter-spacing:-.05em; margin:0 0 18px; }
.dominant-copy>p { color: #b0aaa6; font-family: var(--sans); font-weight:600; font-size: 17px; line-height: 1.9; margin: 0 0 25px; }
.result-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.result-tags span { border: 1px solid #3a282a; color: #aa858a; padding: 9px 14px; font-size: 13.5px; letter-spacing: 1px; }
.report-grid { max-width: 1280px; margin: auto; padding: 0 7vw; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-card { background: linear-gradient(145deg, rgba(18,18,18,.96), rgba(10,10,10,.96)); border: 1px solid var(--line); padding: clamp(25px, 3vw, 42px); min-width: 0; }
.report-card.wide { grid-column: 1 / -1; }
.card-heading { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-bottom: 27px; }
.card-heading>span { color: var(--red); font: 22px Georgia, serif; }
.card-heading small { color: #5f5a57; font-size: 7px; letter-spacing: 2px; }
.card-heading h2 { margin: 4px 0 0; font-family: var(--display); font-size: 18px; }
#radar-chart { width: 100%; height: auto; max-height: 430px; display: block; }
.ranking-list { display: grid; gap: 16px; }
.rank-row { display: grid; grid-template-columns: 28px 58px 1fr 42px; gap: 12px; align-items: center; }
.rank-row>span { font: 14px Georgia, serif; color: #555; }
.rank-row b { font-family: var(--sans); font-weight:600; font-size: 13px; }
.rank-track { height: 4px; background: #292525; position: relative; }
.rank-track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.rank-row em { color: #b8afaa; font: normal 17px Georgia,serif; text-align:right; }
.insight-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,5vw,80px); }
.insight-lead { font-family: var(--sans); font-weight:600; color: #c8c1bc; font-size: 14px; line-height: 2; margin: 0; }
.insight-points { display: grid; gap: 13px; }
.insight-point { border-left: 1px solid var(--red); padding: 5px 0 5px 20px; }
.insight-point b { display: block; color: #aaa29e; font-size: 16.5px; margin-bottom: 8px; }
.insight-point p { margin:0; color:#8b8581; font-family:var(--sans); font-weight:400; font-size:13.2px; line-height:1.75; }
.matrix { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.matrix-cell { min-height: 115px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px; position: relative; }
.matrix-cell.active { background: linear-gradient(145deg, rgba(227,38,54,.12), transparent); }
.matrix-cell small { color: #595451; font-size: 8px; letter-spacing: 1px; }
.matrix-cell b { display: block; font-family: var(--display); font-size: 14px; margin: 14px 0 7px; }
.matrix-cell span { font-size: 9px; color: #716b68; line-height: 1.6; display:block; }
.matrix-level { position:absolute; right:13px; top:13px; width:7px; height:7px; border-radius:50%; background:#3d3937; }
.matrix-cell.active .matrix-level { background:var(--red); box-shadow:0 0 12px var(--red); }
.advice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.advice-item { border: 1px solid var(--line); padding: 25px; min-height: 180px; }
.advice-heading { display:flex; align-items:baseline; gap:12px; margin-bottom:14px; }
.advice-heading>span { flex:0 0 auto; font:27px Georgia,serif; color:var(--red); }
.advice-item h3 { font-family:var(--sans); font-weight:700; font-size:15px; margin:0; }
.advice-item p { color:#716b68; font-size:15px; line-height:1.8; margin:0; }
.result-actions { max-width:1280px; margin:42px auto 0; padding:0 7vw; display:flex; justify-content:center; gap:14px; }
.result-actions .outline-btn { height:62px; min-width:160px; }
.result-actions .primary-btn span, .result-actions .outline-btn { font-size:15px; }
.result-disclaimer { text-align:center; color:#494543; font-size:9px; margin-top:30px; }

.about-dialog { width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow:auto; background:#0b0b0b; color:var(--ink); border:1px solid #302426; padding:clamp(30px,5vw,60px); box-shadow:0 30px 120px #000; }
.about-dialog::backdrop { background:rgba(0,0,0,.82); backdrop-filter:blur(7px); }
.dialog-close { position:absolute; right:18px; top:14px; border:0; background:none; color:#777; font-size:27px; cursor:pointer; }
.about-dialog h2 { font: 700 clamp(29px,4vw,48px)/1.45 var(--display); }
.dimension-preview { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.preview-item { background:#0b0b0b; padding:18px; }
.preview-item b { font-family:var(--display); color:#d4ccc7; }
.preview-item span { display:block; color:#65605d; font-size:10px; margin-top:8px; line-height:1.7; }
.toast { position:fixed; left:50%; bottom:30px; z-index:50; transform:translate(-50%,20px); background:#eee9e4; color:#171313; padding:12px 20px; font-size:11px; opacity:0; pointer-events:none; transition:.25s; box-shadow:0 10px 40px #000; }
.toast.show { opacity:1; transform:translate(-50%,0); }

@media (max-width: 900px) {
  .home-screen::before { display:none; }
  .hero-grid { grid-template-columns:1fr; padding-top:65px; }
  .sigil-wrap { width:min(90vw,520px); order:-1; }
  .hero-copy { text-align:center; }
  .eyebrow, .hero-actions, .stats { justify-content:center; margin-left:auto; margin-right:auto; }
  .hero-intro { margin-left:auto; margin-right:auto; }
  .report-grid { grid-template-columns:1fr; }
  .report-card.wide { grid-column:auto; }
  .insight-layout { grid-template-columns:1fr; }
  .matrix { grid-template-columns:repeat(2,1fr); }
  .advice-grid { grid-template-columns:1fr; }
}

@media (max-width: 620px) {
  .site-header { height:76px; padding:0 20px; }
  .brand-mark { font-size:25px; }
  .hero-grid { padding:35px 20px 50px; gap:20px; }
  .sigil-wrap { width:84vw; }
  .sigil-core { width:82px; height:82px; }
  .sigil-core span { font-size:40px; }
  .sigil-item b { font-size:20px; }
  .item-7 { right:-8%; }
  .hero-copy h1 { font-size:42px; }
  .hero-intro { font-size:13px; }
  .hero-actions { flex-direction:column; gap:10px; }
  .stats { margin-top:38px; }
  .stats div { flex-direction:column; gap:3px; align-items:center; }
  .home-footer { height:auto; min-height:70px; padding:18px 20px; text-align:center; justify-content:center; }
  .home-footer span { display:none; }
  .quiz-header { padding:0 18px; }
  .quiz-meta span { display:none; }
  .quiz-screen { height:100svh; min-height:0; overflow:hidden; }
  .quiz-header { height:68px; }
  .question-shell { display:block; height:calc(100svh - 70px); min-height:0; padding:12px 19px 10px; overflow:hidden; }
  .question-number { text-align:left; font-size:32px; margin-bottom:4px; }
  .question-kicker { font-size:7px; margin:0 0 6px; }
  .question-content h2 { font-size:21px; line-height:1.35; min-height:0; }
  .question-hint { font-size:9px; line-height:1.5; margin:6px 0 9px; }
  .answers { gap:5px; }
  .answer-btn { min-height:46px; padding:0 14px; font-size:13.6px; }
  .answer-btn span { width:31px; font-size:16.8px; }
  .quiz-nav { margin-top:9px; }
  .nav-btn { min-width:136px; height:48px; font-size:15px; }
  .result-hero { padding:58px 20px 55px; }
  .result-no { display:none; }
  .result-hero h1 { font-size:31px; line-height:1.25; }
  .dominant-row { grid-template-columns:132px minmax(0,1fr); gap:18px; align-items:center; }
  .dominant-name-inline { font-size:46px; }
  .dominant-copy>p { font-size:15px; line-height:1.75; }
  .score-ring { width:132px; height:132px; }
  .report-grid { padding:0 14px; }
  .report-card { padding:24px 18px; }
  .radar-card { margin-left:-14px; margin-right:-14px; padding-left:8px; padding-right:8px; }
  .radar-card .card-heading { margin-left:10px; margin-right:10px; }
  #radar-chart { width:83.333vw; max-width:none; margin:16px auto 0; }
  .rank-row { grid-template-columns:22px 48px 1fr 35px; gap:8px; }
  .matrix-cell { min-height:125px; padding:14px; }
  .result-actions { padding:0 20px; flex-direction:row; align-items:center; }
  .result-actions button { flex:1 1 0; width:auto; min-width:0; }
  .result-actions .primary-btn { justify-content:center; gap:8px; padding-left:10px; }
  .result-actions .primary-btn b { width:34px; height:40px; }
  .dimension-preview { grid-template-columns:1fr; }
}

@media (max-width: 620px) and (max-height: 700px) {
  .quiz-header { height:60px; }
  .brand.mini .brand-copy { display:none; }
  .question-shell { height:calc(100svh - 62px); padding-top:7px; }
  .question-number { font-size:27px; margin-bottom:1px; }
  .question-kicker { margin-bottom:3px; }
  .question-content h2 { font-size:18px; line-height:1.3; }
  .question-hint { margin:3px 0 5px; }
  .answers { gap:4px; }
  .answer-btn { min-height:40px; }
  .quiz-nav { margin-top:6px; }
  .nav-btn { height:43px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
