:root {
  --ink: #17213f;
  --muted: #66708c;
  --line: #e5e9f4;
  --surface: rgba(255, 255, 255, .9);
  --primary: #3559e0;
  --primary-dark: #2646bc;
  --primary-soft: #eef2ff;
  --mint: #22a88a;
  --mint-soft: #eaf9f5;
  --warm: #ffefe6;
  --shadow: 0 22px 60px rgba(37, 56, 126, .11);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #f7f8fc;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(53, 89, 224, .22);
  outline-offset: 3px;
}
.page-glow {
  position: fixed; z-index: -1; border-radius: 50%; filter: blur(8px);
  pointer-events: none; opacity: .75;
}
.page-glow-a { width: 430px; height: 430px; right: -160px; top: -150px; background: #e8edff; }
.page-glow-b { width: 380px; height: 380px; left: -170px; top: 48%; background: #e8f8f3; }

.site-header {
  width: min(1180px, calc(100% - 40px)); height: 76px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand, .nav-link {
  border: 0; background: transparent; cursor: pointer;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 750; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(140deg, var(--primary), #6f83ec); box-shadow: 0 8px 20px rgba(53, 89, 224, .24);
}
.brand-mark svg { width: 23px; fill: white; }
.brand-mark .brand-line { fill: none; stroke: #405ed2; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.site-header nav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 9px 13px; color: var(--muted); border-radius: 11px; font-size: 14px; }
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.report-link { display: inline-flex; align-items: center; gap: 7px; }
.report-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: none; }
.report-dot.show { display: inline-block; }

main { min-height: calc(100vh - 150px); }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 76px; }
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  padding: 62px; border: 1px solid rgba(255,255,255,.85); border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,247,255,.88));
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -80px; bottom: -100px; width: 330px; height: 330px; border-radius: 50%;
  border: 56px solid rgba(53, 89, 224, .055);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  color: var(--primary); font-size: 13px; font-weight: 750; letter-spacing: .06em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--primary); }
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -.04em; }
.hero h1 span { display: block; margin-top: 12px; color: var(--primary); font-size: clamp(20px, 2.6vw, 29px); letter-spacing: -.015em; }
.origin { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.hero-copy { margin: 22px 0 28px; max-width: 650px; color: #525f7d; font-size: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.badge { padding: 7px 11px; border: 1px solid #dfe5f7; border-radius: 999px; background: #fff; color: #53607c; font-size: 12px; font-weight: 650; }
.primary-button, .secondary-button {
  border: 0; border-radius: 14px; padding: 14px 22px; cursor: pointer; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button { color: white; background: linear-gradient(135deg, var(--primary), #5c74e8); box-shadow: 0 12px 24px rgba(53, 89, 224, .24); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(53, 89, 224, .28); }
.secondary-button { background: #fff; border: 1px solid var(--line); color: #505d7a; }
.secondary-button:hover { border-color: #bbc6ed; background: var(--primary-soft); }
.hero-visual { position: relative; z-index: 1; min-height: 320px; display: grid; place-items: center; }
.orb { position: relative; width: 270px; height: 270px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e9eeff 55%, #dce4ff); box-shadow: inset 0 0 0 1px #fff, 0 30px 70px rgba(53,89,224,.17); }
.orb::before, .orb::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(53,89,224,.16); }
.orb::before { inset: 27px; }
.orb::after { inset: 58px; }
.orb-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.orb-center strong { display: block; color: var(--primary); font-size: 52px; line-height: 1; }
.orb-center span { color: var(--muted); font-size: 13px; }
.float-card {
  position: absolute; padding: 10px 14px; border: 1px solid rgba(255,255,255,.9); border-radius: 13px;
  background: rgba(255,255,255,.88); box-shadow: 0 12px 30px rgba(37,56,126,.12); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700;
}
.float-card.one { top: 30px; right: 0; color: var(--primary); }
.float-card.two { left: 0; bottom: 43px; color: var(--mint); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid #edf0f7; box-shadow: 0 8px 30px rgba(37,56,126,.05); }
.stat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.stat strong { display: block; font-size: 17px; }
.stat small { display: block; color: var(--muted); }

.content-section { padding-top: 78px; }
.section-heading { max-width: 650px; margin-bottom: 28px; }
.section-kicker { margin: 0 0 8px; color: var(--mint); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; }
.section-heading p { margin: 11px 0 0; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.panel { padding: 30px; border: 1px solid #e8ebf4; border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 40px rgba(37,56,126,.055); }
.panel h3 { margin: 0 0 12px; font-size: 20px; }
.panel p { margin: 0; color: var(--muted); }
.feature-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; color: #4d5976; }
.check { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--mint-soft); color: var(--mint); font-size: 13px; font-weight: 900; }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.dimension-card { padding: 20px; border: 1px solid #e7eaf3; border-radius: 18px; background: rgba(255,255,255,.78); }
.dimension-number { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.dimension-card h3 { margin: 7px 0 4px; font-size: 17px; }
.dimension-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.notice { display: flex; gap: 16px; padding: 24px; border: 1px solid #ffe2cd; border-radius: 20px; background: #fffaf6; color: #795740; }
.notice-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--warm); font-weight: 900; }
.notice h3 { margin: 0 0 4px; color: #5d3e2c; }
.notice p { margin: 0; font-size: 14px; }
.notice-list { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.notice-list li { position: relative; padding-left: 17px; color: #795740; font-size: 13px; line-height: 1.65; }
.notice-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: #ee9c63; }
.notice-list strong { color: #5d3e2c; }
.start-strip { margin-top: 22px; padding: 28px 32px; border-radius: 24px; background: linear-gradient(135deg, #293f9d, #4262d8); color: white; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.start-strip h3 { margin: 0 0 4px; font-size: 22px; }
.start-strip p { margin: 0; color: rgba(255,255,255,.74); font-size: 14px; }
.start-strip .primary-button { background: white; color: var(--primary-dark); box-shadow: none; white-space: nowrap; }

.quiz-shell { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 72px; }
.quiz-top { margin-bottom: 17px; }
.quiz-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 14px; }
.quiz-title h1 { margin: 0; font-size: clamp(23px, 4vw, 32px); }
.count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.count strong { color: var(--primary); font-size: 24px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e7eaf4; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #7a8df0); transition: width .3s ease; }
.question-card { padding: clamp(24px, 5vw, 42px); border: 1px solid #e5e9f4; border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); will-change: transform, opacity, filter; }
.question-card.enter-forward { animation: questionEnterForward .46s cubic-bezier(.16,1,.3,1) both; }
.question-card.enter-back { animation: questionEnterBack .46s cubic-bezier(.16,1,.3,1) both; }
.question-card.leave-forward { animation: questionLeaveForward .21s cubic-bezier(.55,0,1,.45) both; pointer-events: none; }
.question-card.leave-back { animation: questionLeaveBack .21s cubic-bezier(.55,0,1,.45) both; pointer-events: none; }
.instruction { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid #edf0f6; color: var(--muted); font-size: 14px; }
.question-number { margin: 0 0 8px; color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.question-text { margin: 0 0 28px; min-height: 66px; font-size: clamp(21px, 4vw, 29px); line-height: 1.5; letter-spacing: -.015em; }
.answer-list { display: grid; gap: 11px; }
.answer-option {
  width: 100%; display: flex; align-items: center; gap: 13px; padding: 16px 17px;
  border: 1px solid #dfe4f0; border-radius: 15px; background: #fff; cursor: pointer; text-align: left; transition: all .16s ease;
  opacity: 0; animation: optionEnter .4s cubic-bezier(.16,1,.3,1) .08s both;
}
.answer-option:nth-child(2) { animation-delay: .115s; }
.answer-option:nth-child(3) { animation-delay: .15s; }
.answer-option:nth-child(4) { animation-delay: .185s; }
.answer-option:nth-child(5) { animation-delay: .22s; }
.answer-option:hover { border-color: #aebcec; transform: translateX(3px); background: #f9faff; }
.answer-option.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.answer-radio { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 21px; border: 2px solid #bdc5d9; border-radius: 50%; }
.selected .answer-radio { border-color: var(--primary); }
.selected .answer-radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.answer-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.answer-label { font-weight: 750; }
.answer-help { color: #8992a8; font-size: 13px; }
.quiz-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
.quiz-actions .next { justify-self: end; }
.quiz-actions button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 10px; font-weight: 700; }
.text-button:hover { color: var(--primary); }
.autosave { margin: 14px 0 0; text-align: center; color: #9299aa; font-size: 12px; }

.nav-dialog, .profile-dialog { width: min(640px, calc(100% - 28px)); border: 0; border-radius: 24px; padding: 0; box-shadow: 0 32px 90px rgba(20,30,70,.28); }
.nav-dialog::backdrop, .profile-dialog::backdrop { background: rgba(18,27,57,.52); backdrop-filter: blur(4px); }
.dialog-inner { padding: 28px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-head h2 { margin: 0; font-size: 22px; }
.close-button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f1f3f8; cursor: pointer; }
.question-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; max-height: 45vh; overflow: auto; }
.grid-number { aspect-ratio: 1; border: 1px solid #dfe3ed; border-radius: 9px; background: #fff; cursor: pointer; font-size: 12px; }
.grid-number.answered { border-color: #aebbed; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.grid-number.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.grid-legend { display: flex; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.legend-swatch { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; background: var(--primary-soft); border: 1px solid #aebbed; }
.legend-swatch.current { background: var(--primary); border-color: var(--primary); }
.profile-copy { margin: -8px 0 22px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: 18px; }
.field-label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 750; }
.choice-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-row.age { grid-template-columns: repeat(4, 1fr); }
.choice-chip { padding: 11px; border: 1px solid #dfe3ed; border-radius: 12px; background: #fff; cursor: pointer; }
.choice-chip.selected { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); font-weight: 750; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.analysis-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 80px; }
.analysis-card { overflow: hidden; border: 1px solid #e4e8f4; border-radius: 30px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.analysis-head { padding: 42px 34px 34px; text-align: center; color: white; background: linear-gradient(135deg, #293f9d, #5570df); }
.analysis-mark { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 24px; background: rgba(255,255,255,.14); }
.analysis-mark svg { width: 42px; fill: rgba(255,255,255,.94); }
.analysis-head h1 { margin: 0; font-size: clamp(29px, 5vw, 40px); }
.analysis-head p { margin: 8px 0 0; color: rgba(255,255,255,.75); }
.analysis-body { padding: 32px; }
.analysis-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 800; }
.spinner { width: 21px; height: 21px; border: 3px solid #dce3ff; border-top-color: var(--primary); border-radius: 50%; animation: spin .75s linear infinite; }
.analysis-steps { display: grid; gap: 12px; margin-bottom: 26px; }
.analysis-step { display: flex; align-items: center; gap: 11px; min-height: 30px; color: #9aa1b4; opacity: .55; transition: .25s ease; }
.analysis-step.visible { opacity: 1; color: #59657f; }
.analysis-step.done { color: #238c75; }
.step-state { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 24px; border-radius: 50%; background: #eef1f7; font-size: 12px; font-weight: 900; }
.analysis-step.active .step-state { color: transparent; border: 3px solid #dce3ff; border-top-color: var(--primary); background: transparent; animation: spin .75s linear infinite; }
.analysis-step.done .step-state { color: white; background: var(--mint); }
.analysis-progress { height: 13px; overflow: hidden; border-radius: 999px; background: #e9edf6; }
.analysis-progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #778cf1); transition: width .55s cubic-bezier(.2,.8,.2,1); }
.analysis-progress-label { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.analysis-ready { display: none; margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; animation: questionEnter .35s ease both; }
.analysis-ready.show { display: block; }
.analysis-ready strong { display: block; margin-bottom: 12px; font-size: 18px; }

.report-shell { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 76px; }
.report-hero { position: relative; overflow: hidden; padding: 38px; border-radius: 28px; background: linear-gradient(135deg, #283f9d, #536edf); color: white; box-shadow: 0 24px 60px rgba(39,62,155,.22); }
.report-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -115px; border: 40px solid rgba(255,255,255,.07); border-radius: 50%; }
.report-hero .eyebrow { color: #cdd6ff; }
.report-hero .eyebrow::before { background: #cdd6ff; }
.report-hero h1 { margin: 0; font-size: clamp(28px,5vw,43px); }
.report-hero p { margin: 10px 0 0; color: rgba(255,255,255,.76); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 18px 0; }
.summary-card { padding: 23px; border: 1px solid #e6e9f3; border-radius: 19px; background: #fff; box-shadow: 0 10px 35px rgba(37,56,126,.06); }
.summary-card span { color: var(--muted); font-size: 13px; }
.summary-card strong { display: block; margin-top: 5px; font-size: 29px; }
.result-message { position: relative; overflow: hidden; padding: 34px; border-radius: 24px; background: var(--mint-soft); border: 1px solid #ccefe5; }
.result-message.attention { background: #fff8ef; border-color: #ffe0b8; }
.result-kicker { margin-bottom: 7px; color: #278d76; font-size: 12px; font-weight: 850; letter-spacing: .1em; }
.attention .result-kicker { color: #bb6d35; }
.result-message h2 { margin: 0 0 12px; font-size: clamp(25px, 4vw, 34px); }
.result-message p { margin: 0; max-width: 780px; color: #4d5b75; font-size: 17px; line-height: 1.9; }
.report-section { margin-top: 18px; padding: 28px; border: 1px solid #e6e9f3; border-radius: 24px; background: #fff; }
.report-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.report-section-head h2 { margin: 0; }
.report-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.radar-wrap { display: grid; grid-template-columns: minmax(300px, .9fr) 1.1fr; gap: 28px; align-items: center; }
.radar-chart { width: 100%; min-height: 340px; }
.radar-grid { fill: none; stroke: #dfe4f2; stroke-width: 1; }
.radar-axis { stroke: #e4e8f2; stroke-width: 1; }
.radar-shape { fill: rgba(53,89,224,.2); stroke: var(--primary); stroke-width: 2.5; }
.radar-dot { fill: var(--primary); }
.radar-label { fill: #59657e; font-size: 12px; font-weight: 700; }
.factor-table { display: grid; border: 1px solid #e8ebf3; border-radius: 16px; overflow: hidden; }
.factor-table-row { display: grid; grid-template-columns: 1fr 84px 98px; align-items: center; min-height: 46px; padding: 0 14px; border-bottom: 1px solid #edf0f6; font-size: 13px; }
.factor-table-row:last-child { border-bottom: 0; }
.factor-table-row.header { min-height: 42px; color: var(--muted); background: #f8f9fc; font-size: 12px; font-weight: 750; }
.factor-table-row strong { font-size: 14px; }
.status-pill { justify-self: end; padding: 4px 8px; border-radius: 999px; color: #25866f; background: var(--mint-soft); font-size: 11px; font-weight: 750; }
.status-pill.mild { color: #a9632d; background: #fff3e8; }
.status-pill.moderate, .status-pill.severe { color: #9b4141; background: #fff0f0; }
.factor-panel { margin-top: 18px; padding: 28px; border: 1px solid #e6e9f3; border-radius: 24px; background: #fff; }
.factor-panel h2 { margin: 0 0 4px; }
.factor-panel > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.factor-list { display: grid; gap: 17px; }
.factor-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 14px; }
.factor-row-head strong { font-size: 15px; }
.factor-value { color: var(--muted); }
.factor-track { height: 9px; overflow: hidden; border-radius: 999px; background: #edf0f6; }
.factor-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #54c8ad); }
.factor-bar.elevated { background: linear-gradient(90deg, #f09a5a, #f6bd77); }
.factor-explanations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.factor-explanation { padding: 18px; border: 1px solid #e8ebf3; border-radius: 16px; background: #fbfcff; }
.factor-explanation-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.factor-explanation-head strong { font-size: 15px; }
.factor-explanation p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.risk-note { margin-top: 18px; padding: 20px; border: 1px solid #f4c5c5; border-radius: 18px; background: #fff5f5; color: #804141; }
.risk-note strong { display: block; margin-bottom: 4px; color: #6f3030; }
.report-meta { margin-top: 16px; color: var(--muted); font-size: 13px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.empty-state { width: min(620px, calc(100% - 32px)); margin: 80px auto; padding: 48px; text-align: center; border: 1px solid #e4e8f2; border-radius: 26px; background: white; box-shadow: var(--shadow); }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 22px; background: var(--primary-soft); color: var(--primary); font-size: 31px; }
.empty-state h1 { margin: 0 0 8px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
.site-footer { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0; border-top: 1px solid #e6e9f1; display: flex; justify-content: space-between; gap: 18px; color: #8c93a7; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 20; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 12px; background: #18203a; color: #fff; opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; box-shadow: 0 12px 30px rgba(20,30,60,.2); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@keyframes questionEnterForward {
  from { opacity: 0; filter: blur(3px); transform: translate3d(30px, 5px, 0) scale(.992); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes questionEnterBack {
  from { opacity: 0; filter: blur(3px); transform: translate3d(-30px, 5px, 0) scale(.992); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes questionLeaveForward {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; filter: blur(2px); transform: translate3d(-24px, -2px, 0) scale(.994); }
}
@keyframes questionLeaveBack {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; filter: blur(2px); transform: translate3d(24px, -2px, 0) scale(.994); }
}
@keyframes optionEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 38px; }
  .hero-visual { min-height: 260px; }
  .orb { width: 230px; height: 230px; }
  .info-grid { grid-template-columns: 1fr; }
  .dimension-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-row.age { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .radar-wrap { grid-template-columns: 1fr; }
  .factor-explanations { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .site-header { width: calc(100% - 24px); height: 64px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-link { padding: 8px; font-size: 13px; }
  #aboutButton { display: none; }
  .shell { width: calc(100% - 24px); padding-top: 20px; }
  .hero { padding: 28px 22px; border-radius: 25px; }
  .hero h1 { font-size: 38px; }
  .hero h1 span { font-size: 20px; }
  .hero-visual { min-height: 220px; }
  .orb { width: 200px; height: 200px; }
  .orb-center strong { font-size: 42px; }
  .float-card { font-size: 11px; }
  .stat-row { grid-template-columns: 1fr; }
  .content-section { padding-top: 55px; }
  .dimension-grid { grid-template-columns: 1fr; }
  .start-strip { align-items: flex-start; flex-direction: column; padding: 24px; }
  .quiz-shell { width: calc(100% - 24px); padding-top: 22px; }
  .question-card { padding: 23px 18px; border-radius: 22px; }
  .question-text { min-height: 82px; }
  .answer-main { gap: 3px; }
  .answer-help { display: inline; }
  .quiz-actions { grid-template-columns: 1fr 1fr; }
  .quiz-actions .text-button { grid-column: 1 / -1; grid-row: 2; }
  .quiz-actions .next { justify-self: stretch; }
  .quiz-actions .secondary-button { width: 100%; }
  .question-grid { grid-template-columns: repeat(6, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .report-hero, .factor-panel { padding: 24px; }
  .result-message, .report-section { padding: 23px; }
  .result-message p { font-size: 15px; }
  .factor-explanations { grid-template-columns: 1fr; }
  .radar-chart { min-height: 300px; }
  .factor-table-row { grid-template-columns: 1fr 62px 86px; padding: 0 10px; }
  .site-footer { width: calc(100% - 24px); flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
