:root {
  --ink: #25243b;
  --muted: #696880;
  --paper: #fffdf7;
  --lavender: #eeeafd;
  --purple: #5a4fcf;
  --purple-dark: #443aa5;
  --yellow: #ffd96b;
  --peach: #ffe8d9;
  --mint: #dff5e9;
  --line: #e6e2ef;
  --shadow: 0 16px 40px rgba(55, 43, 122, .12);
}

* { box-sizing: border-box; }
body { margin: 0; background: #f8f6fd; color: var(--ink); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
button { font: inherit; cursor: pointer; }
.app-shell { min-height: 100vh; padding: 24px clamp(18px, 5vw, 76px) 48px; overflow: hidden; }
.topbar { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.brand { color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: .03em; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 1px; letter-spacing: .08em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--purple); color: white; border-radius: 13px 13px 13px 3px; font-family: serif; font-size: 22px; box-shadow: 0 5px 12px rgba(90,79,207,.24); }
.progress-pill { background: white; border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 13px; }
.progress-pill span { color: #ecad22; font-size: 17px; vertical-align: -1px; }
.progress-pill strong { color: var(--ink); }
.welcome-screen, .how-screen, .game-screen { max-width: 1180px; margin: 46px auto 0; }
.welcome-screen { min-height: 560px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: center; }
.eyebrow, .stage-kicker, .case-no, .paper-label { margin: 0 0 11px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.055em; line-height: 1.12; margin: 0; }
h1 span { color: var(--purple); position: relative; }
h1 span::after { content: ""; height: 9px; position: absolute; left: 0; right: 0; bottom: 2px; z-index: -1; background: var(--yellow); border-radius: 8px; transform: rotate(-2deg); }
.hero-text { color: var(--muted); font-size: 17px; line-height: 1.85; max-width: 525px; margin: 25px 0; }
.hero-actions, .result-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.primary-btn, .secondary-btn, .text-btn, .back-btn, .small-back, .modal-close { border: 0; background: transparent; }
.primary-btn { color: white; background: var(--purple); border-radius: 13px; padding: 14px 19px; font-weight: 800; box-shadow: 0 8px 16px rgba(90,79,207,.25); transition: .18s ease; }
.primary-btn:hover { background: var(--purple-dark); transform: translateY(-1px); }
.primary-btn:disabled { background: #bbb7d4; box-shadow: none; cursor: not-allowed; transform: none; }
.text-btn { color: var(--purple); font-weight: 800; padding: 12px; }
.skill-row { margin-top: 37px; color: var(--muted); font-size: 13px; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.skill-row span { background: rgba(255,255,255,.8); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); }
.skill-row i { color: #aca7be; font-style: normal; }
.detective-card { min-height: 450px; padding: 34px; position: relative; overflow: hidden; transform: rotate(2deg); background: #fffdf7; border: 1px solid #e4dfd3; border-radius: 12px; box-shadow: var(--shadow); }
.detective-card::before { content: ""; position: absolute; width: 250px; height: 250px; border: 2px dashed #dbd3b7; border-radius: 50%; right: -78px; bottom: -82px; }
.card-tape { width: 92px; height: 23px; position: absolute; background: rgba(255,214,112,.65); top: -7px; left: calc(50% - 46px); transform: rotate(-3deg); }
.case-no { margin-top: 29px; color: #8f895f; }
.detective-card h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(37px, 4vw, 55px); line-height: 1.04; margin: 0; letter-spacing: -.06em; }
.stamp { display: inline-block; margin-top: 21px; color: #4f9069; border: 2px solid #4f9069; border-radius: 4px; padding: 5px 8px; font-size: 12px; font-weight: 800; transform: rotate(-4deg); }
.mini-evidence { position: absolute; background: var(--lavender); border: 1px solid #d6d0f4; border-radius: 8px; padding: 8px 12px; color: var(--purple); font-size: 14px; font-weight: 800; box-shadow: 0 8px 12px rgba(40,32,84,.09); }
.evidence-one { left: 33px; bottom: 83px; transform: rotate(-7deg); }.evidence-two { left: 130px; bottom: 42px; transform: rotate(7deg); background: var(--peach); color: #aa6945; border-color: #f3d6c6; }
.magnifier { width: 74px; height: 74px; position: absolute; right: 55px; bottom: 58px; border: 11px solid var(--purple); border-radius: 50%; transform: rotate(-10deg); }.magnifier::after { content: ""; position: absolute; width: 47px; height: 12px; border-radius: 9px; background: var(--purple); right: -36px; bottom: -18px; transform: rotate(43deg); }
.case-note { position: absolute; bottom: 6px; right: 34px; left: 34px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.hidden { display: none !important; }
.how-screen { max-width: 950px; }.how-screen h1 { max-width: 800px; font-size: clamp(31px, 4.2vw, 50px); margin-bottom: 28px; }.back-btn, .small-back { color: var(--purple); font-weight: 800; margin-bottom: 22px; padding: 0; }.how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 28px; }.how-grid article { background: white; border: 1px solid var(--line); padding: 21px; border-radius: 17px; }.how-grid b { color: var(--purple); }.how-grid p { color: var(--muted); line-height: 1.6; font-size: 14px; margin-bottom: 0; }
.game-screen { margin-top: 32px; }.mission-header { display: grid; grid-template-columns: 150px 1fr 150px; align-items: end; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }.mission-header .back-btn { margin: 0; align-self: center; text-align: left; }.mission-title-wrap h1 { font-size: clamp(28px, 4vw, 42px); }.mission-title-wrap .eyebrow { margin-bottom: 5px; }.step-dots { justify-self: end; display: flex; gap: 8px; padding-bottom: 7px; }.step-dots span { width: 11px; height: 11px; border-radius: 50%; background: #d8d5e5; }.step-dots span.active { background: var(--purple); }
.mission-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 42px; margin-top: 35px; }.mission-sidebar { color: var(--muted); font-size: 14px; line-height: 1.75; }.side-label { color: var(--ink); font-weight: 800; margin: 0; }.side-tip { border-left: 3px solid var(--yellow); padding: 12px 0 12px 13px; margin-top: 28px; background: linear-gradient(90deg, rgba(255,217,107,.17), transparent); }.side-tip span { color: #9b6d00; font-weight: 800; font-size: 12px; }.stage { background: white; border: 1px solid var(--line); border-radius: 23px; padding: clamp(22px, 4vw, 42px); box-shadow: 0 9px 24px rgba(45,35,100,.04); }.stage-heading h2 { margin: 0; font-size: clamp(23px, 3.2vw, 32px); letter-spacing: -.035em; }.stage-heading > p:last-child { color: var(--muted); line-height: 1.6; margin: 12px 0 26px; font-size: 14px; }.evidence-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }.evidence-card, .viewpoint-choice { width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 15px; transition: .16s ease; }.evidence-card { min-height: 150px; padding: 16px; position: relative; }.evidence-card:hover, .viewpoint-choice:hover { border-color: #aaa0e2; transform: translateY(-2px); }.evidence-card.selected, .viewpoint-choice.selected { border-color: var(--purple); background: #f7f5ff; box-shadow: 0 0 0 3px rgba(90,79,207,.12); }.evidence-card .year { color: var(--purple); font-weight: 900; font-size: 18px; }.evidence-card h3 { font-size: 15px; line-height: 1.4; margin: 10px 0 7px; }.evidence-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.tag { display: inline-block; color: #43805a; background: var(--mint); padding: 3px 7px; font-size: 11px; border-radius: 6px; margin-top: 10px; }.selected-mark { display: none; position: absolute; right: 11px; top: 11px; width: 21px; height: 21px; border-radius: 50%; color: white; background: var(--purple); text-align: center; line-height: 21px; font-size: 12px; }.selected .selected-mark { display: block; }.stage-footer { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--muted); font-size: 13px; }
.viewpoint-list { display: grid; gap: 12px; }.viewpoint-choice { padding: 18px 19px; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }.choice-letter { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--purple); background: var(--lavender); font-size: 12px; font-weight: 900; }.viewpoint-choice.selected .choice-letter { color: #fff; background: var(--purple); }.viewpoint-choice strong { font-size: 15px; line-height: 1.5; }.viewpoint-choice p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.reasoning-board { display: grid; gap: 15px; }.reasoning-row { padding: 17px; background: #fbfaff; border: 1px solid var(--line); border-radius: 15px; }.reasoning-row header { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }.reasoning-row .year { color: var(--purple); font-size: 12px; font-weight: 900; }.reasoning-row h3 { font-size: 15px; margin: 0; }.impact-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }.impact-option { background: white; border: 1px solid var(--line); padding: 10px; border-radius: 10px; color: var(--muted); font-size: 12px; text-align: left; line-height: 1.4; }.impact-option.selected { background: var(--lavender); color: var(--ink); border-color: var(--purple); font-weight: 700; }.answer-paper { margin: 22px auto; max-width: 710px; background: repeating-linear-gradient(to bottom, #fffdf7 0, #fffdf7 31px, #ede8d9 32px); padding: 25px 25px 20px; border-radius: 8px; text-align: left; box-shadow: 0 8px 18px rgba(80,68,31,.11); transform: rotate(-.4deg); }.answer-paper p:last-child { line-height: 2; margin: 7px 0 0; }.paper-label { color: #8f895f; }.result-stage { text-align: center; }.result-stage h2 { font-size: clamp(25px,3.5vw,35px); margin: 0; }.result-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: #9d7100; background: #fff0bf; font-size: 26px; }.score-line { color: var(--muted); margin-top: 12px; }.score-line b { color: #bb7b00; }.coach-note { max-width: 710px; margin: 0 auto 20px; color: #486959; background: var(--mint); padding: 14px 17px; border-radius: 12px; line-height: 1.6; text-align: left; font-size: 14px; }.preview-card { max-width: 710px; margin: 0 auto 27px; padding: 19px 21px; border-radius: 15px; display: flex; gap: 20px; align-items: center; text-align: left; background: var(--peach); }.preview-card h3 { margin: 0 0 6px; font-size: 18px; }.preview-card p { margin: 0; color: #7a5b4b; font-size: 13px; line-height: 1.6; }.preview-card > span { font-size: 45px; }.secondary-btn { color: var(--purple); border: 1px solid #cbc6e7; border-radius: 13px; padding: 13px 17px; font-weight: 800; }.modal { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(37,36,59,.34); padding: 20px; }.modal-panel { position: relative; max-width: 470px; background: white; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }.modal-panel h2 { margin: 0; }.modal-panel p:last-child { color: var(--muted); line-height: 1.8; }.modal-close { position: absolute; right: 16px; top: 13px; font-size: 27px; color: var(--muted); }
@media (max-width: 800px) { .welcome-screen { grid-template-columns: 1fr; gap: 36px; margin-top: 38px; }.detective-card { min-height: 360px; max-width: 450px; width: 92%; justify-self: center; }.how-grid { grid-template-columns: repeat(2,1fr); }.mission-layout { grid-template-columns: 1fr; gap: 16px; }.mission-sidebar { display: none; }.mission-header { grid-template-columns: 1fr auto; }.mission-title-wrap { grid-column: 1/-1; grid-row: 1; }.mission-header .back-btn { grid-row: 2; }.step-dots { grid-column: 2; grid-row: 2; }.evidence-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .app-shell { padding: 18px 14px 36px; }.hero-text { font-size: 15px; }.how-grid, .evidence-grid, .impact-options { grid-template-columns: 1fr; }.stage { padding: 22px 17px; border-radius: 18px; }.stage-footer { flex-direction: column; align-items: stretch; }.stage-footer .primary-btn { width: 100%; }.stage-footer span { text-align: center; }.detective-card { width: 100%; }.preview-card { align-items: flex-start; }.preview-card > span { font-size: 30px; }.answer-paper { padding: 18px; } }
