:root {
  --ink: #211a19;
  --muted: #756763;
  --paper: #f7f0e3;
  --paper-deep: #ecdfca;
  --wine: #7f1d2d;
  --wine-dark: #4d0d1b;
  --wine-soft: #a94350;
  --gold: #c8a35a;
  --gold-light: #ead9a7;
  --jade: #244a42;
  --line: rgba(93, 53, 44, 0.16);
  --shadow: 0 24px 70px rgba(75, 31, 29, 0.14);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(182, 108, 85, .17), transparent 28%),
    radial-gradient(circle at 92% 70%, rgba(37, 79, 68, .12), transparent 34%),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.paper-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: .28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
.app-shell { min-height: 100vh; position: relative; overflow: hidden; }
.view { display: none; min-height: 100vh; animation: viewIn .48s ease both; }
.view.is-active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow { margin: 0 0 14px; color: var(--wine); font-size: 11px; font-weight: 800; letter-spacing: .22em; }
.eyebrow.light { color: rgba(255,248,230,.72); }
.section-kicker { color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.text-button, .icon-button { border: 0; background: transparent; color: inherit; }
.primary-button {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 0 19px 0 23px;
  color: #fff9ec; background: linear-gradient(135deg, var(--wine), #9e3441); font-weight: 700;
  box-shadow: 0 14px 30px rgba(115, 25, 41, .22); transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(115,25,41,.27); }
.primary-button b { font-family: serif; font-size: 20px; font-weight: 400; }
.primary-button.wide { max-width: 460px; margin-inline: auto; }

/* Gate */
.gate-view {
  padding: max(34px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(46,11,18,.72), rgba(46,11,18,.84)),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(216,184,112,.05) 60px 61px),
    linear-gradient(145deg, #7b2531, #2c0b12 70%);
  color: #fff8e8;
  position: relative;
}
.gate-view::before, .gate-view::after { content: ""; position: absolute; border: 1px solid rgba(218,183,106,.35); pointer-events: none; }
.gate-view::before { inset: 15px; }
.gate-view::after { inset: 24px; border-color: rgba(218,183,106,.14); }
.gate-ornament { width: min(540px, 100%); margin: 0 auto 18px; display: flex; align-items: center; gap: 14px; color: var(--gold-light); font-family: var(--serif); font-size: 12px; letter-spacing: .28em; opacity: .76; }
.gate-ornament i { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); flex: 1; }
.gate-card {
  width: min(520px, 100%); margin: clamp(4vh, 7vh, 82px) auto 0; position: relative; z-index: 1;
  text-align: center; padding: 34px clamp(22px, 6vw, 54px) 30px; border: 1px solid rgba(232,207,146,.44);
  background: linear-gradient(160deg, rgba(255,250,235,.12), rgba(255,255,255,.035));
  box-shadow: 0 36px 90px rgba(0,0,0,.22); backdrop-filter: blur(8px);
}
.seal-mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 24px; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--serif); font-size: 35px; transform: rotate(-2deg); box-shadow: inset 0 0 0 4px rgba(209,173,93,.08); }
.gate-card h1 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 11vw, 62px); line-height: 1.15; font-weight: 700; letter-spacing: .08em; text-indent: .08em; }
.gate-copy { margin: 18px 0 30px; color: rgba(255,248,232,.7); font-family: var(--serif); font-size: 15px; }
.gate-form { text-align: left; }
.gate-form label { display: block; margin: 0 0 9px; color: rgba(255,248,232,.75); font-size: 12px; letter-spacing: .12em; }
.code-wrap { position: relative; }
.code-wrap input { width: 100%; height: 56px; padding: 0 52px 0 18px; border: 1px solid rgba(232,207,146,.45); border-radius: 3px; outline: none; color: #fff; background: rgba(22,4,8,.28); letter-spacing: .25em; transition: border-color .2s ease, background .2s ease; }
.code-wrap input::placeholder { color: rgba(255,255,255,.36); letter-spacing: .04em; }
.code-wrap input:focus { border-color: var(--gold-light); background: rgba(22,4,8,.44); }
.code-sigil { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gold-light); font-family: var(--serif); }
.form-error { height: 25px; margin: 6px 0 3px; color: #ffd0cf; font-size: 12px; }
.gate-note { margin: 18px 0 0; color: rgba(255,248,232,.46); font-size: 11px; letter-spacing: .13em; }
.micro-footer { position: relative; z-index: 1; margin: 26px auto 0; color: rgba(255,248,232,.38); text-align: center; font-size: 10px; letter-spacing: .1em; }
.gate-card.shake { animation: shake .34s ease; }
@keyframes shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* Intro */
.topbar, .result-topbar { height: 62px; width: min(1100px, calc(100% - 40px)); margin: auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.brand-mini { display: flex; align-items: center; gap: 9px; color: var(--wine-dark); }
.brand-mini span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--wine); font-family: var(--serif); font-size: 17px; }
.brand-mini b { font-family: var(--serif); font-size: 14px; letter-spacing: .08em; }
.text-button { font-size: 12px; color: var(--muted); padding: 8px; }
.intro-hero { min-height: 650px; padding: clamp(34px, 8vw, 88px) 20px 70px; text-align: center; position: relative; isolation: isolate; }
.intro-hero::before { content: ""; position: absolute; width: 650px; height: 650px; top: -165px; left: 50%; transform: translateX(-50%); border: 1px solid rgba(127,29,45,.09); border-radius: 50%; z-index: -2; box-shadow: 0 0 0 58px rgba(127,29,45,.025), 0 0 0 116px rgba(127,29,45,.018); }
.moon-disc { position: absolute; z-index: -1; width: 390px; height: 390px; left: 50%; top: 12px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 45% 40%, #f7e9c9, #e2c58f 65%, #b68a47); opacity: .44; filter: saturate(.8); }
.moon-disc i { position: absolute; inset: 16px; border-radius: 50%; border: 1px dashed rgba(77,13,27,.22); }
.heroine-glyph { position: absolute; color: rgba(77,13,27,.25); font-family: var(--serif); font-weight: 700; }
.glyph-one { font-size: 96px; left: 90px; top: 56px; }
.glyph-two { font-size: 48px; right: 54px; top: 92px; }
.glyph-three { font-size: 58px; left: 63px; bottom: 72px; }
.glyph-four { font-size: 76px; right: 74px; bottom: 47px; }
.intro-hero h2 { margin: 0 auto; max-width: 720px; font-family: var(--serif); font-size: clamp(41px, 8.2vw, 74px); line-height: 1.2; letter-spacing: .04em; color: var(--wine-dark); }
.intro-lead { margin: 22px auto 30px; max-width: 540px; color: #65524e; font-family: var(--serif); font-size: clamp(15px, 2.2vw, 18px); line-height: 1.9; }
.intro-stats { width: min(530px, 100%); margin: 0 auto 30px; padding: 16px 0; display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid rgba(103,62,50,.16); }
.intro-stats div { display: flex; flex-direction: column; gap: 3px; border-right: 1px solid rgba(103,62,50,.13); }
.intro-stats div:last-child { border-right: 0; }
.intro-stats b { color: var(--wine); font-family: var(--serif); font-size: 22px; }
.intro-stats span { color: var(--muted); font-size: 10px; }
.choice-hint { color: #8d7d78; font-size: 11px; }
.archetype-preview { width: min(1100px, calc(100% - 40px)); margin: 0 auto 80px; text-align: center; }
.archetype-preview h3 { margin: 9px 0 26px; font-family: var(--serif); font-size: clamp(26px,4vw,42px); color: var(--wine-dark); }
.preview-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.preview-item { min-height: 144px; padding: 22px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.25); transition: background .2s ease, transform .2s ease; }
.preview-item:nth-child(4n) { border-right: 0; }
.preview-item:nth-last-child(-n+4) { border-bottom: 0; }
.preview-item:hover { background: rgba(255,252,243,.7); transform: translateY(-2px); }
.preview-item i { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid currentColor; font-style: normal; font-family: var(--serif); font-size: 20px; color: var(--item-color, var(--wine)); }
.preview-item b { margin-top: 11px; font-family: var(--serif); font-size: 16px; }
.preview-item span { margin-top: 4px; color: var(--muted); font-size: 10px; }

/* Quiz */
.quiz-view { padding-bottom: 40px; background: linear-gradient(180deg, #f0e5d3 0, #f9f4e9 45%, #eee1ce 100%); }
.quiz-header { height: 62px; width: min(850px, calc(100% - 32px)); margin: auto; display: grid; grid-template-columns: 44px 1fr 58px; align-items: center; }
.icon-button { width: 38px; height: 38px; color: var(--wine-dark); font-size: 26px; font-weight: 300; }
.quiz-brand { text-align: center; font-family: var(--serif); font-size: 14px; letter-spacing: .08em; }
.progress-fraction { color: var(--muted); text-align: right; font-size: 11px; }
.progress-panel { width: min(780px, calc(100% - 32px)); margin: 10px auto 18px; padding: 17px 20px; border: 1px solid rgba(117,77,62,.14); background: rgba(255,255,255,.55); box-shadow: 0 10px 28px rgba(67,34,29,.07); }
.stage-line { display: flex; justify-content: space-between; color: var(--wine); font-size: 12px; font-weight: 700; }
.stage-line b { font-variant-numeric: tabular-nums; }
.progress-track { height: 4px; margin-top: 12px; background: rgba(127,29,45,.12); overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--wine), var(--gold)); transition: width .35s ease; }
.question-card { width: min(780px, calc(100% - 32px)); min-height: 590px; margin: auto; padding: clamp(26px,5vw,48px); background: rgba(255,253,247,.84); border: 1px solid rgba(117,77,62,.14); box-shadow: var(--shadow); }
.question-index { margin: 0 0 10px; color: var(--wine); font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.question-card h2 { min-height: 72px; margin: 0; font-family: var(--serif); font-size: clamp(21px,3.3vw,29px); line-height: 1.55; color: #2b1c1b; }
.question-sub { margin: 8px 0 22px; color: var(--muted); font-size: 12px; }
.answer-list { display: grid; gap: 11px; }
.answer-option { position: relative; width: 100%; min-height: 72px; padding: 15px 52px 15px 50px; border: 1px solid rgba(112,72,61,.2); border-radius: 3px; color: #312322; background: rgba(250,245,236,.78); text-align: left; line-height: 1.55; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.answer-option:hover { border-color: rgba(127,29,45,.45); background: #fffaf0; transform: translateX(2px); }
.answer-option::before { content: ""; position: absolute; width: 16px; height: 16px; left: 19px; top: 50%; transform: translateY(-50%); border: 1px solid rgba(127,29,45,.55); border-radius: 50%; }
.answer-option .option-letter { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: rgba(127,29,45,.34); font-family: var(--serif); font-size: 12px; }
.answer-option.is-selected { border-color: var(--wine); background: rgba(127,29,45,.06); box-shadow: inset 3px 0 0 var(--wine); }
.answer-option.is-selected::before { background: var(--wine); box-shadow: inset 0 0 0 4px #fbf4e9; }
.quiz-actions { margin-top: 26px; display: grid; grid-template-columns: 110px 1fr 110px; gap: 12px; align-items: center; }
.secondary-button { height: 42px; border: 1px solid rgba(115,74,61,.24); border-radius: 3px; color: var(--wine); background: transparent; font-size: 12px; }
.secondary-button:disabled { opacity: .34; cursor: not-allowed; }
.quiz-actions p { margin: 0; color: #9a8882; text-align: center; font-size: 10px; }

/* Loading */
.loading-view { padding: 18vh 24px 60px; text-align: center; background: radial-gradient(circle at 50% 35%, #f2dfb8, #f7f0e3 40%, #e6d6bf); }
.oracle-loader { width: 142px; height: 142px; margin: 0 auto 36px; position: relative; display: grid; place-items: center; }
.oracle-loader span { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--wine); color: var(--wine); font-family: var(--serif); font-size: 34px; animation: breathe 1.6s ease-in-out infinite; }
.oracle-loader i { position: absolute; inset: 0; border: 1px dashed rgba(127,29,45,.4); border-radius: 50%; animation: spin 7s linear infinite; }
.oracle-loader .ring-two { inset: 14px; border-style: solid; border-color: transparent var(--gold) transparent var(--gold); animation-duration: 4s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 28px rgba(127,29,45,.14); } }
.loading-view h2 { margin: 0; font-family: var(--serif); font-size: clamp(28px,5vw,42px); color: var(--wine-dark); }
.loading-view > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.analysis-steps { width: min(420px,100%); margin: 34px auto 0; display: flex; justify-content: space-between; position: relative; color: #94847f; font-size: 11px; }
.analysis-steps::before { content: ""; position: absolute; height: 1px; left: 40px; right: 40px; top: -13px; background: var(--line); }
.analysis-steps span::before { content: ""; position: absolute; width: 7px; height: 7px; top: -16px; margin-left: 27px; border-radius: 50%; background: #c7b5ad; }
.analysis-steps span.is-done { color: var(--wine); }
.analysis-steps span.is-done::before { background: var(--wine); }

/* Result */
.result-view { background: #efe4d2; }
.result-topbar { color: #fff9e9; }
.result-topbar .brand-mini { color: #fff9e9; }
.result-topbar .brand-mini span { border-color: var(--gold-light); }
.result-topbar .text-button { color: rgba(255,255,255,.68); }
.result-topbar { position: absolute; left: 50%; transform: translateX(-50%); top: 0; }
.result-hero { min-height: 740px; padding: 112px 20px 78px; text-align: center; color: #fff8e8; background: linear-gradient(150deg, var(--result-dark,#3a0d16), var(--result-color,#7f1d2d) 58%, #20110f); position: relative; overflow: hidden; isolation: isolate; }
.result-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .16; background: repeating-linear-gradient(115deg, transparent 0 54px, rgba(255,255,255,.14) 55px 56px); }
.result-hero::after { content: ""; position: absolute; width: 620px; height: 620px; top: 40px; left: 50%; z-index: -1; transform: translateX(-50%); border: 1px solid rgba(234,217,167,.2); border-radius: 50%; box-shadow: 0 0 0 65px rgba(234,217,167,.035), 0 0 0 130px rgba(234,217,167,.025); }
.result-orbit { position: absolute; width: 520px; height: 520px; left: 50%; top: 90px; transform: translateX(-50%); border: 1px dashed rgba(234,217,167,.18); border-radius: 50%; animation: spin 80s linear infinite; }
.result-orbit i { position: absolute; width: 9px; height: 9px; border: 1px solid var(--gold-light); transform: rotate(45deg); }
.result-orbit i:nth-child(1) { left: 50%; top: -5px; }.result-orbit i:nth-child(2) { right: 18px; bottom: 116px; }.result-orbit i:nth-child(3) { left: 46px; bottom: 72px; }
.result-seal { width: 78px; height: 78px; margin: 24px auto 20px; display: grid; place-items: center; border: 1px solid var(--gold-light); box-shadow: inset 0 0 0 5px rgba(234,217,167,.07); font-family: var(--serif); font-size: 42px; color: #fff6d8; transform: rotate(-2deg); }
.resonance-label { margin: 0; color: rgba(255,248,232,.58); font-size: 10px; letter-spacing: .16em; }
.resonance { margin: 0 0 -3px; font-family: Georgia, serif; line-height: 1; }
.resonance strong { font-size: clamp(68px,14vw,104px); font-weight: 400; }
.resonance span { font-size: 28px; color: var(--gold-light); }
.result-hero h1 { margin: 14px 0 0; font-family: var(--serif); font-size: clamp(38px,7vw,62px); letter-spacing: .1em; text-indent: .1em; }
.result-title { margin: 6px 0 16px; color: var(--gold-light); font-family: var(--serif); font-size: 18px; letter-spacing: .18em; }
.tag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag-row span { padding: 6px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.06); font-size: 11px; }
.result-hero blockquote { max-width: 570px; margin: 25px auto 22px; font-family: var(--serif); font-size: clamp(16px,2.5vw,20px); line-height: 1.8; }
.ghost-light-button { min-height: 44px; padding: 0 20px; border: 1px solid rgba(255,255,255,.44); color: #fff8e8; background: rgba(255,255,255,.05); font-size: 12px; }
.report-wrap { width: min(1040px, calc(100% - 28px)); margin: -34px auto 0; padding-bottom: 74px; position: relative; z-index: 2; }
.report-nav { display: grid; grid-template-columns: repeat(4,1fr); background: #fffaf1; border: 1px solid var(--line); box-shadow: 0 15px 40px rgba(67,34,29,.12); }
.report-nav a { padding: 17px 8px; border-right: 1px solid var(--line); color: var(--wine-dark); text-align: center; text-decoration: none; font-family: var(--serif); font-size: 12px; }
.report-nav a:last-child { border-right: 0; }
.report-section { margin-top: 18px; padding: clamp(28px,5vw,52px); background: rgba(255,251,242,.94); border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(67,34,29,.08); }
.report-lead { display: grid; grid-template-columns: 58px 1fr; gap: 16px; }
.section-number { color: rgba(127,29,45,.32); font-family: Georgia,serif; font-size: 21px; }
.report-section h2 { margin: 8px 0 18px; font-family: var(--serif); font-size: clamp(23px,3.5vw,34px); color: var(--wine-dark); line-height: 1.35; }
.long-copy { color: #544541; font-family: var(--serif); font-size: 16px; line-height: 2; }
.evidence-box { margin-top: 28px; padding: 18px 20px; border-left: 2px solid var(--gold); background: rgba(201,164,90,.09); }
.evidence-box > span { color: var(--muted); font-size: 11px; }
.evidence-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.evidence-tags b { color: var(--wine); font-family: var(--serif); font-size: 13px; }
.section-heading { display: flex; gap: 18px; align-items: flex-start; }
.section-heading.compact h2 { font-size: 25px; }
.talent-layout { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(28px,6vw,70px); align-items: center; }
.radar-wrap { max-width: 350px; margin: auto; }
#radarChart { width: 100%; overflow: visible; }
.dimension-bars { display: grid; gap: 13px; }
.dimension-row { display: grid; grid-template-columns: 48px 1fr 34px; gap: 11px; align-items: center; font-size: 12px; }
.dimension-row > span { color: #5e4e49; }.dimension-row > b { color: var(--wine); font-family: Georgia,serif; font-weight: 400; text-align: right; }
.bar-track { height: 7px; background: #eadfd1; overflow: hidden; }.bar-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--result-color,var(--wine)),var(--gold)); transition: width 1s ease; }
.strength-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.strength-card { min-height: 132px; padding: 21px; border: 1px solid var(--line); background: #f8f1e6; }
.strength-card span { display: inline-grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--gold); color: var(--wine); font-family: Georgia,serif; font-size: 11px; }
.strength-card h3 { margin: 12px 0 7px; font-family: var(--serif); font-size: 17px; }.strength-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.success-card { margin-top: 16px; padding: 26px; color: #fff8e8; background: linear-gradient(135deg,var(--result-dark,var(--wine-dark)),var(--result-color,var(--wine))); }
.success-card span { color: var(--gold-light); font-size: 10px; letter-spacing: .16em; }.success-card strong { display: block; margin: 9px 0 7px; font-family: var(--serif); font-size: clamp(21px,3.6vw,30px); }.success-card p { margin: 0; color: rgba(255,248,232,.72); line-height: 1.8; font-size: 12px; }
.split-section { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.role-list { display: flex; flex-wrap: wrap; gap: 9px; }.role-list span { padding: 10px 13px; border: 1px solid var(--line); color: #563c38; background: #f8f1e6; font-size: 12px; }
.warning-card { padding: 28px; border: 1px solid rgba(127,29,45,.18); background: #efe1d2; align-self: stretch; }.warning-mark { color: var(--wine); font-family: var(--serif); font-size: 11px; letter-spacing: .2em; }.warning-card h3 { font-family: var(--serif); font-size: 25px; margin: 13px 0; }.warning-card p { margin: 0; color: #685450; font-size: 13px; line-height: 1.9; }
.secondary-card { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); background: linear-gradient(105deg,#f2e7d8,#fffaf1); }.secondary-seal { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--wine); color: var(--wine); font-family: var(--serif); font-size: 36px; }.secondary-card span { color: var(--muted); font-size: 10px; }.secondary-card h3 { margin: 5px 0 8px; font-family: var(--serif); font-size: 23px; }.secondary-card p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 12px; }
.advice-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.advice-card { padding: 24px 20px; border-top: 2px solid var(--gold); background: #f6ede0; }.advice-card b { color: var(--wine); font-family: Georgia,serif; font-size: 13px; }.advice-card h3 { margin: 15px 0 8px; font-family: var(--serif); font-size: 17px; }.advice-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.closing-quote { text-align: center; color: #fff8e8; background: linear-gradient(135deg,var(--result-dark,var(--wine-dark)),var(--result-color,var(--wine))); }.closing-quote > p { color: var(--gold-light); font-size: 10px; letter-spacing: .2em; }.closing-quote blockquote { margin: 16px auto; max-width: 700px; font-family: var(--serif); font-size: clamp(21px,4vw,34px); line-height: 1.65; }.closing-quote span { color: rgba(255,255,255,.56); font-size: 11px; }
.bottom-actions { padding: 28px 0 0; text-align: center; }.secondary-wide { width: min(460px,100%); height: 50px; margin: 12px auto 0; border: 1px solid rgba(127,29,45,.25); color: var(--wine); background: rgba(255,255,255,.42); }.bottom-actions > p { max-width: 650px; margin: 18px auto 0; color: #8a7a74; font-size: 10px; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: max(28px,env(safe-area-inset-bottom)); z-index: 50; max-width: calc(100% - 32px); transform: translate(-50%,20px); padding: 12px 18px; color: #fff; background: rgba(35,21,19,.92); border-radius: 3px; opacity: 0; pointer-events: none; transition: .25s ease; font-size: 12px; }.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 760px) {
  .preview-grid { grid-template-columns: repeat(2,1fr); }
  .preview-item:nth-child(4n) { border-right: 1px solid var(--line); }
  .preview-item:nth-child(2n) { border-right: 0; }
  .preview-item:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .preview-item:nth-last-child(-n+2) { border-bottom: 0; }
  .talent-layout, .split-section { grid-template-columns: 1fr; }
  .report-lead { grid-template-columns: 1fr; }
  .report-lead > .section-number { margin-bottom: -8px; }
  .advice-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gate-view { padding-inline: 12px; }
  .gate-card { margin-top: 3vh; padding: 28px 21px 25px; }
  .gate-card h1 { font-size: 43px; }
  .topbar, .result-topbar { width: calc(100% - 28px); }
  .intro-hero { min-height: 610px; padding-top: 54px; }
  .intro-hero h2 { font-size: 42px; }
  .moon-disc { width: 330px; height: 330px; top: 35px; }
  .intro-stats b { font-size: 19px; }
  .intro-stats span { transform: scale(.9); white-space: nowrap; }
  .archetype-preview { width: calc(100% - 24px); }
  .question-card { width: calc(100% - 20px); padding: 27px 18px; min-height: 620px; }
  .progress-panel { width: calc(100% - 20px); }
  .question-card h2 { min-height: 96px; font-size: 20px; }
  .answer-option { min-height: 74px; padding-right: 39px; font-size: 14px; }
  .quiz-actions { grid-template-columns: 86px 1fr 86px; gap: 7px; }
  .result-hero { min-height: 720px; padding-top: 100px; }
  .result-orbit { width: 430px; height: 430px; }
  .report-wrap { width: calc(100% - 16px); margin-top: -24px; }
  .report-nav a { font-size: 10px; padding-inline: 3px; }
  .report-section { padding: 28px 20px; }
  .strength-grid { grid-template-columns: 1fr; }
  .secondary-card { grid-template-columns: 64px 1fr; gap: 15px; padding: 20px 15px; }
  .secondary-seal { width: 60px; height: 60px; font-size: 29px; }
}

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