:root {
  color-scheme: dark;
  --bg: #1f1f21;
  --bg-deep: #111114;
  --panel: #252529;
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #a8a6b1;
  --line: rgba(255, 255, 255, 0.14);
  --purple: #6200ff;
  --purple-light: #b889ff;
  --cyan: #93f9e2;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { min-width: 320px; background: var(--bg); }
button, a { font: inherit; }
button { min-width: 0; color: inherit; border: 0; cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }

.page { position: relative; min-height: 100vh; overflow: hidden; background: var(--bg); }
.page::before { position: absolute; inset: 0; pointer-events: none; content: ""; background: radial-gradient(circle at 75% 11%, rgba(98, 0, 255, 0.18), transparent 29%), radial-gradient(circle at 7% 84%, rgba(50, 116, 255, 0.1), transparent 28%); }
.topbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; width: min(100% - 48px, 1120px); margin: 0 auto; padding: 28px 0; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 43px; height: 43px; object-fit: contain; }
.brand-lockup span { display: flex; flex-direction: column; gap: 2px; }
.brand-lockup strong { font-size: 17px; font-weight: 650; letter-spacing: 0; }
.brand-lockup small { color: rgba(255,255,255,0.58); font-size: 9px; letter-spacing: 1.4px; }
.topbar-note, .section-kicker, .quiz-meta, .quiz-footer, .page-footer, .eyebrow { color: rgba(255,255,255,0.54); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; }
.page-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; width: min(100% - 48px, 1120px); margin: 0 auto; padding: 26px 0 30px; }
.ambient { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(4px); opacity: 0.7; animation: float 12s ease-in-out infinite alternate; }
.ambient-purple { width: 420px; height: 420px; top: -210px; right: -170px; background: rgba(98, 0, 255, 0.22); }
.ambient-blue { width: 360px; height: 360px; bottom: -220px; left: -190px; background: rgba(0, 82, 255, 0.16); animation-delay: -4s; }

.entry-content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); gap: clamp(44px, 9vw, 148px); align-items: center; width: min(100% - 48px, 1120px); min-height: calc(100vh - 112px); margin: 0 auto; padding: 54px 0 70px; }
.entry-copy { padding-bottom: 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--purple-light); font-weight: 700; }
.eyebrow::before { display: inline-block; width: 22px; height: 1px; background: currentColor; content: ""; }
.entry-copy h1 { max-width: 620px; margin: 22px 0 24px; font-size: clamp(44px, 7vw, 86px); font-weight: 800; line-height: 1.05; letter-spacing: 0; text-wrap: balance; overflow-wrap: break-word; }
.entry-copy h1 em { color: transparent; font-style: normal; background: linear-gradient(100deg, #fff 10%, #c59aff 64%, #6200ff 100%); -webkit-background-clip: text; background-clip: text; }
.entry-copy p { max-width: 390px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.entry-facts { display: flex; align-items: center; gap: 16px; margin-top: 48px; color: var(--muted); font-size: 12px; }
.entry-facts b { color: #fff; font-size: 24px; font-weight: 500; }
.entry-facts i { width: 1px; height: 20px; background: var(--line); }
.career-panel { padding: 26px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)); box-shadow: 0 25px 90px rgba(0,0,0,0.22); }
.section-kicker { display: flex; justify-content: space-between; margin-bottom: 22px; }
.section-kicker span:last-child { color: #fff; letter-spacing: 0; text-transform: none; }
.career-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.career-option { position: relative; display: flex; align-items: center; min-height: 70px; padding: 0 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.035); text-align: left; transition: border-color .25s, background .25s, transform .25s; animation: rise .45s both; animation-delay: var(--delay); }
.career-option:hover, .career-option.is-selected { border-color: rgba(180, 139, 255, 0.95); background: rgba(98,0,255,0.18); transform: translateY(-2px); }
.career-option.is-selected::after { position: absolute; right: -14px; bottom: -20px; width: 58px; height: 58px; border-radius: 50%; background: var(--purple); opacity: .45; content: ""; }
.career-index { width: 32px; color: rgba(255,255,255,0.35); font-size: 11px; }
.career-name { min-width: 0; font-size: 17px; font-weight: 600; overflow-wrap: break-word; }
.career-arrow { margin-left: auto; color: rgba(255,255,255,0.5); font-size: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; font-size: 15px; font-weight: 650; line-height: 1.25; text-align: center; text-wrap: balance; overflow-wrap: break-word; transition: transform .25s, box-shadow .25s, background .25s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(110deg, #6200ff, #8a40ff); box-shadow: 0 12px 28px rgba(98,0,255,0.24); }
.button-primary:hover { box-shadow: 0 16px 36px rgba(98,0,255,0.38); }
.button-secondary { border-color: rgba(255,255,255,0.28); background: transparent; }
.button-share { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.button-wide { width: 100%; margin-top: 18px; }
.button-icon { font-size: 20px; line-height: 1; }
.helper-text { margin: 14px 0 0; color: rgba(255,255,255,0.42); font-size: 11px; text-align: center; }
.history-trigger { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 4px 0; color: rgba(255,255,255,.58); font-size: 11px; background: transparent; }
.history-trigger small { color: rgba(255,255,255,.34); font-size: 10px; }

.page-quiz { background: #18181b; }
.quiz-grid-glow { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 75%); opacity: .42; }
.quiz-meta { display: flex; align-items: center; gap: 24px; }
.timer { color: #fff; letter-spacing: 1px; }
.quiz-content { position: relative; z-index: 2; width: min(100% - 48px, 780px); min-height: calc(100vh - 170px); margin: 0 auto; padding: 72px 0; }
.quiz-progress { height: 3px; margin-bottom: 46px; background: rgba(255,255,255,0.14); }
.quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), #cfb3ff); transition: width .35s ease; }
.quiz-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.question-count { color: rgba(255,255,255,0.55); font-size: 12px; }
.question-card { position: relative; padding: clamp(32px, 6vw, 68px); border: 1px solid rgba(255,255,255,0.12); background: linear-gradient(140deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)); }
.question-number { color: var(--purple-light); font-size: 12px; letter-spacing: 2px; }
.question-card h1 { max-width: 620px; margin: 28px 0 17px; font-size: clamp(30px, 4vw, 48px); line-height: 1.28; text-wrap: balance; overflow-wrap: break-word; }
.question-card p { margin: 0; color: var(--muted); font-size: 14px; }
.answer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.answer-option { display: flex; align-items: stretch; gap: 14px; min-height: 82px; min-width: 0; padding: 0 22px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); text-align: left; transition: transform .25s, border-color .25s, background .25s, opacity .18s; }
.answer-option:hover { border-color: var(--purple-light); background: rgba(98,0,255,0.2); transform: translateY(-2px); }
.answer-option.is-selected { border-color: var(--purple-light); background: rgba(98,0,255,0.24); transform: translateY(-2px); }
.answer-option:not(.is-selected):disabled { opacity: .5; }
.answer-letter { display: grid; flex: 0 0 34px; align-self: center; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.28); color: var(--purple-light); font-size: 12px; line-height: 1; }
.answer-text { display: flex; align-items: center; min-width: 0; flex: 1; font-size: 15px; line-height: 1.5; overflow-wrap: break-word; }
.answer-mark { display: grid; align-self: stretch; flex: 0 0 20px; place-items: center; color: rgba(255,255,255,0.48); font-size: 20px; line-height: 1; }
.quiz-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; width: min(100% - 48px, 780px); margin: auto; padding: 0 0 30px; font-size: 9px; letter-spacing: 1px; text-transform: none; }
.error-banner { position: fixed; z-index: 20; right: 18px; bottom: 18px; max-width: calc(100% - 36px); padding: 12px 16px; border: 1px solid rgba(255,129,129,0.4); background: rgba(100,20,30,.9); color: #fff; font-size: 12px; }
.unavailable-content { position: relative; z-index: 2; width: min(100% - 48px, 620px); min-height: calc(100vh - 112px); margin: 0 auto; padding: 54px 0 70px; }
.unavailable-copy { max-width: 620px; }
.unavailable-copy h1 { max-width: 620px; margin: 22px 0 24px; font-size: clamp(44px, 7vw, 74px); font-weight: 800; line-height: 1.05; letter-spacing: 0; text-wrap: balance; overflow-wrap: break-word; }
.unavailable-copy p { max-width: 390px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.unavailable-retry { margin-top: 24px; }

.page-result { min-height: 100vh; background: #000e0e; }
.page-result::before { display: none; }
.page-result .page-footer { width: min(100% - 48px, 750px); justify-content: center; padding: clamp(36px, 9.6vw, 72px) 0 42px; color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .4px; }
.result-content { width: min(100%, 750px); margin: 0 auto; padding: 0; }
.result-poster { position: relative; aspect-ratio: 750 / 1347; overflow: visible; background: #000e0e; }
.result-poster-image { position: absolute; top: 2.3%; right: 0; left: 0; display: block; width: 100%; height: 96.8%; object-fit: cover; object-position: center top; }
.result-share-card { position: absolute; z-index: 1; top: 75.13%; right: clamp(22px, 4.7vw, 35px); left: clamp(22px, 4.7vw, 35px); display: grid; grid-template-columns: clamp(92px, 24.4vw, 183px) minmax(0, 1fr); grid-template-rows: minmax(clamp(92px, 24.4vw, 183px), 1fr) auto; min-height: 24.87%; column-gap: clamp(12px, 2vw, 15px); row-gap: clamp(16px, 3.87vw, 29px); padding: clamp(18px, 4.8vw, 36px) clamp(18px, 4.8vw, 36px) clamp(18px, 3.47vw, 26px); border: 1px solid rgba(132,245,255,.5); border-radius: 20px; background: #131e13; }
.result-share-status { position: absolute; top: calc(clamp(16px, 4.27vw, 32px) * -1); right: clamp(15px, 4vw, 30px); max-width: calc(100% - 30px); padding: clamp(4px, .8vw, 6px) clamp(10px, 2.67vw, 20px); overflow: hidden; border-radius: 50px; background: #85fce9; color: #1f2029; font-size: clamp(12px, 3.2vw, 24px); font-weight: 700; line-height: 1.35; letter-spacing: .05em; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.result-qr-code { grid-row: 1; align-self: start; display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; background: #fff; object-fit: cover; }
.result-tags { align-self: start; display: grid; grid-template-rows: repeat(3, auto); row-gap: 12px; min-width: 0; padding-top: clamp(8px, 2.13vw, 16px); }
.result-tags-row { display: flex; justify-content: center; gap: 15px; min-width: 0; }
.result-tags span { padding: clamp(6px, 1.6vw, 12px) clamp(15px, 4vw, 30px); border-radius: 999px; background: #305867; color: #fff; font-size: clamp(10px, 2.67vw, 20px); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.result-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr); gap: clamp(18px, 6.54vw, 49px); width: calc(100% - clamp(70px, 13.9vw, 104px)); margin: clamp(30px, 6.4vw, 48px) auto 0; }
.result-action { display: flex; align-items: center; justify-content: center; min-height: clamp(52px, 10.7vw, 80px); padding: 12px 18px; border: 3px solid #85fce9; border-radius: 999px; color: #fff; font-size: clamp(16px, 3.7vw, 28px); font-weight: 500; line-height: 1.2; white-space: nowrap; transition: transform .25s, box-shadow .25s; }
.result-action:hover { transform: translateY(-2px); }
.result-action-secondary { background: #090812; }
.result-action-primary { border-color: #85fce9; background: #85fce9; color: #000e0e; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.76); backdrop-filter: blur(8px); animation: fade .25s both; }
.member-modal { position: relative; width: min(100%, 360px); animation: modal-in .3s both; }
.history-modal { position: relative; width: min(100%, 360px); padding: 30px 24px 24px; border: 1px solid rgba(132,245,255,.48); border-radius: 20px; background: #131e13; box-shadow: 0 24px 70px rgba(0,0,0,.45); animation: modal-in .3s both; }
.history-modal-kicker { margin: 0; color: #85fce9; font-size: 10px; letter-spacing: .18em; }
.history-modal h2 { margin: 8px 0 20px; color: #fff; font-size: 24px; }
.history-record { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; padding: 17px; border: 1px solid rgba(132,245,255,.38); border-radius: 14px; background: rgba(48,88,103,.45); text-align: left; }
.history-record span { color: #fff; font-size: 17px; font-weight: 700; }
.history-record small { color: rgba(255,255,255,.58); font-size: 11px; }
.history-record b { margin-top: 4px; color: #85fce9; font-size: 12px; font-weight: 500; }
.history-record i { margin-left: 4px; font-size: 15px; font-style: normal; }
.member-modal img { display: block; width: 100%; height: auto; }
.modal-close { position: absolute; z-index: 2; top: 4px; right: 5px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.38); color: #fff; font-size: 28px; line-height: 1; }
.modal-cta { position: absolute; right: 16%; bottom: 13%; left: 16%; min-height: 44px; border-radius: 999px; background: transparent; color: transparent; }
.toast { position: fixed; z-index: 80; right: 50%; bottom: 30px; max-width: calc(100% - 40px); padding: 12px 18px; transform: translateX(50%); border: 1px solid rgba(255,255,255,.14); background: rgba(23,23,26,.94); box-shadow: 0 10px 26px rgba(0,0,0,.24); color: #fff; font-size: 13px; animation: toast-in .25s both; }

.reveal { animation: rise .72s cubic-bezier(.22, 1, .36, 1) both; will-change: opacity, transform, filter; }
.page > .topbar { animation: chrome-in .72s cubic-bezier(.22, 1, .36, 1) both; }
.page > .page-footer { animation: chrome-in .72s .12s cubic-bezier(.22, 1, .36, 1) both; }
.reveal-delay-1 { animation-delay: .08s; }
.reveal-delay-2 { animation-delay: .16s; }
.reveal-delay-3 { animation-delay: .24s; }
@keyframes rise { 0% { opacity: 0; filter: blur(4px); transform: translate3d(0, 18px, 0); } 65% { opacity: 1; filter: blur(0); transform: translate3d(0, -1px, 0); } 100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); } }
@keyframes chrome-in { 0% { opacity: 0; filter: blur(3px); transform: translate3d(0, -8px, 0); } 100% { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translate(50%, 10px); } to { opacity: 1; transform: translate(50%, 0); } }
@keyframes float { from { transform: translate3d(-10px, 0, 0) scale(1); } to { transform: translate3d(12px, 18px, 1px) scale(1.05); } }

@media (max-width: 760px) {
  .topbar, .page-footer { width: min(100% - 32px, 1120px); }
  .topbar { padding: 20px 0; }
  .topbar-note { display: none; }
  .entry-content { display: block; width: min(100% - 32px, 620px); min-height: 0; padding: 46px 0 54px; }
  .entry-copy { padding-bottom: 36px; }
  .entry-copy h1 { max-width: 100%; margin-top: 18px; font-size: clamp(30px, 9.5vw, 46px); line-height: 1.1; }
  .entry-copy p { font-size: 14px; }
  .entry-facts { margin-top: 28px; gap: 12px; }
  .entry-facts b { font-size: 20px; }
  .career-panel { padding: 18px; }
  .career-option { min-height: 62px; padding: 0 12px; }
  .career-name { font-size: 15px; }
  .quiz-content { width: min(100% - 32px, 620px); min-height: 0; padding: 44px 0 54px; }
  .quiz-footer { width: min(100% - 32px, 620px); padding-bottom: 22px; }
  .quiz-footer span:last-child { display: none; }
  .question-card { padding: 24px; }
  .question-card h1 { margin-top: 22px; font-size: clamp(24px, 7vw, 32px); line-height: 1.34; }
  .answer-list { grid-template-columns: 1fr; }
  .answer-option { align-items: stretch; gap: 10px; min-height: 74px; padding: 14px; }
  .answer-text { font-size: clamp(14px, 3.8vw, 15px); line-height: 1.45; }
  .answer-mark { padding-top: 0; }
  .page-result .page-footer { width: min(100% - 32px, 750px); padding-bottom: 30px; }
  .unavailable-content { width: min(100% - 32px, 620px); padding: 28px 0 54px; }
  .unavailable-copy h1 { font-size: clamp(28px, 8.5vw, 42px); }
  .result-share-card { right: 22px; left: 22px; border-radius: 14px; }
  .result-actions { width: calc(100% - 68px); }
  .page-footer { padding-top: 20px; font-size: 8px; }
}

@media (max-width: 360px) {
  .page-quiz .topbar { align-items: flex-start; }
  .page-quiz .quiz-meta { flex: 0 0 auto; gap: 10px; font-size: 8px; letter-spacing: .7px; white-space: nowrap; }
  .career-grid { grid-template-columns: 1fr; }
  .career-option { min-height: 58px; }
  .section-kicker { align-items: flex-start; gap: 12px; }
  .section-kicker span:last-child { text-align: right; }
  .result-share-card { right: 12px; left: 12px; column-gap: 12px; padding-inline: 14px; }
  .result-tags { row-gap: 9px; }
  .result-tags-row { gap: 8px; }
  .result-tags span { padding: 8px 11px; }
  .result-share-status { padding: 6px 12px; font-size: 12px; }
  .result-actions { width: calc(100% - 44px); gap: 12px; }
  .result-action { min-height: 48px; padding-inline: 10px; border-width: 2px; font-size: 15px; }
}

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