:root {
  --ink: #111111;
  --paper: #f3f0e8;
  --quiet: #6d6a63;
  --signal: #ff4d26;
  --red: #d71920;
  --dark-red: #7d0710;
  --cream: #fff2d6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible + i { outline: 3px solid #2b61ff; outline-offset: 4px; }

.screen { min-height: 100svh; position: relative; }
.intro-screen {
  align-items: center;
  background: radial-gradient(circle at 18% 10%, rgba(255,77,38,.11), transparent 30%), linear-gradient(135deg, #f8f5ed, #e8e3d8);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 48px 24px;
}
.grain { background-image: radial-gradient(rgba(17,17,17,.13) .7px, transparent .7px); background-size: 7px 7px; inset: 0; opacity: .2; pointer-events: none; position: absolute; }
.orbit { border: 1px solid rgba(17,17,17,.12); border-radius: 50%; position: absolute; }
.orbit::after { background: var(--signal); border: 4px solid var(--paper); border-radius: 50%; content: ""; height: 14px; left: 18%; position: absolute; top: 6%; width: 14px; }
.orbit-one { height: 520px; left: -210px; top: -180px; width: 520px; }
.orbit-two { bottom: -310px; height: 640px; right: -270px; width: 640px; }
.intro-card { max-width: 850px; position: relative; width: 100%; z-index: 1; }
.eyebrow { align-items: center; display: flex; font-family: "Courier New", monospace; font-size: 12px; font-weight: 700; gap: 10px; letter-spacing: .18em; margin-bottom: 64px; }
.eyebrow span { animation: pulse 1.8s ease-in-out infinite; background: var(--signal); border-radius: 50%; height: 8px; width: 8px; }
.kicker { color: var(--quiet); font-size: clamp(14px,2vw,18px); letter-spacing: .14em; margin: 0 0 18px; }
.intro-card h1 { font-size: clamp(50px,9vw,108px); font-weight: 900; letter-spacing: -.075em; line-height: .94; margin: 0; }
.intro-card h1 span { color: var(--signal); display: block; margin-top: 8px; }
.intro-copy { color: #4e4b45; font-size: clamp(16px,2vw,20px); line-height: 1.8; margin: 38px 0 28px; }
.tiny-note { color: #7f7b73; font-family: "Courier New", monospace; font-size: 11px; margin: 18px 0 0; }
.primary-button { align-items: center; background: var(--ink); border: 0; color: white; cursor: pointer; display: inline-flex; font-size: 17px; font-weight: 800; gap: 50px; justify-content: space-between; min-width: 210px; padding: 18px 22px; transition: transform .18s ease, background .18s ease; }
.primary-button:hover:not(:disabled) { background: var(--signal); transform: translateY(-3px); }
.primary-button:disabled { cursor: not-allowed; opacity: .32; }

.quiz-screen { background: #f4f1e9; }
.quiz-shell { margin: 0 auto; max-width: 1120px; padding: 0 32px 72px; }
.quiz-header { align-items: center; display: grid; grid-template-columns: 1fr auto 1fr; min-height: 88px; }
.quiz-header > strong { font-size: 15px; letter-spacing: .16em; }
.quiz-header > span { font-family: "Courier New", monospace; font-size: 13px; font-weight: 700; justify-self: end; }
.text-button { background: none; border: 0; color: #57534d; cursor: pointer; justify-self: start; padding: 10px 0; }
.quiz-progress { background: #d9d4ca; height: 2px; overflow: hidden; }
.quiz-progress span { background: var(--signal); display: block; height: 100%; transition: width .32s ease; width: 0; }
#quiz-form { padding-top: 70px; }
.quiz-heading { margin-bottom: 52px; }
.quiz-heading p { color: var(--signal); font-size: 13px; font-weight: 800; letter-spacing: .14em; margin: 0 0 12px; }
.quiz-heading h2 { font-size: clamp(42px,7vw,72px); letter-spacing: -.06em; line-height: 1; margin: 0; }
.questions { border-top: 1px solid #bbb5aa; }
.question { align-items: center; border: 0; border-bottom: 1px solid #bbb5aa; display: grid; gap: 28px; grid-template-columns: minmax(0,1fr) 260px; margin: 0; padding: 36px 0; }
.question legend { display: contents; }
.question legend small { color: var(--signal); font-family: "Courier New", monospace; font-size: 12px; font-weight: 700; grid-column: 1; letter-spacing: .12em; margin-bottom: -14px; }
.question legend > span { font-size: clamp(18px,2.5vw,25px); font-weight: 700; grid-column: 1; line-height: 1.55; padding-right: 30px; }
.answers { display: grid; gap: 10px; grid-column: 2; grid-row: 1 / span 2; grid-template-columns: 1fr 1fr; }
.answers label { align-items: center; border: 1px solid #aaa499; cursor: pointer; display: flex; font-size: 18px; font-weight: 800; gap: 12px; justify-content: center; min-height: 64px; position: relative; transition: .16s ease; }
.answers label:hover { border-color: var(--ink); transform: translateY(-2px); }
.answers input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.answers i { border: 1px solid currentColor; border-radius: 50%; height: 13px; position: relative; width: 13px; }
.answers input:checked ~ span { color: white; }
.answers label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: white; }
.answers label:has(input:checked) i::after { background: var(--signal); border-radius: 50%; content: ""; inset: 3px; position: absolute; }
.submit-row { align-items: center; display: flex; gap: 30px; justify-content: space-between; padding-top: 42px; }
.submit-row div strong, .submit-row div span { display: block; }
.submit-row div strong { font-size: 14px; margin-bottom: 7px; }
.submit-row div span { color: #767168; font-size: 13px; }

.analysis-screen { align-items: center; background: #101010; color: white; display: flex; justify-content: center; overflow: hidden; padding: 30px; }
.analysis-screen::before { background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size: 42px 42px; content: ""; inset: 0; mask-image: radial-gradient(circle,black,transparent 70%); position: absolute; }
.analysis-card { max-width: 620px; position: relative; text-align: center; width: 100%; }
.analysis-symbol, .success-symbol { align-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; display: flex; height: 128px; justify-content: center; margin: 0 auto 38px; position: relative; width: 128px; }
.analysis-symbol::before { animation: spin 1.25s linear infinite; border: 2px solid transparent; border-radius: 50%; border-top-color: var(--signal); content: ""; inset: -10px; position: absolute; }
.analysis-symbol span { animation: core 1.2s ease-in-out infinite; background: var(--signal); border-radius: 50%; box-shadow: 0 0 42px rgba(255,77,38,.62); height: 26px; width: 26px; }
.success-symbol { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 70px rgba(255,77,38,.4); font-size: 52px; font-weight: 900; }
.analysis-card > p { color: #8b8b8b; font-family: "Courier New", monospace; font-size: 11px; font-weight: 700; letter-spacing: .2em; margin: 0 0 14px; }
.analysis-card h2 { font-size: clamp(50px,9vw,86px); letter-spacing: -.07em; line-height: 1; margin: 0; }
.analysis-message { color: #a9a9a9; font-size: 15px; margin: 22px 0 46px; min-height: 24px; }
.analysis-progress { background: rgba(255,255,255,.14); height: 3px; overflow: hidden; }
.analysis-progress span { animation: loading 5s linear forwards; background: var(--signal); display: block; height: 100%; width: 0; }
.analysis-progress.complete span { animation: none; width: 100%; }
.analysis-meta { color: #6e6e6e; display: flex; font-family: "Courier New", monospace; font-size: 10px; justify-content: space-between; letter-spacing: .12em; margin-top: 12px; }

.result-screen { background: var(--red); color: white; }
.promo-hero { align-items: center; background: var(--red); display: flex; justify-content: center; min-height: 100svh; overflow: hidden; padding: 130px 24px 70px; position: relative; }
.promo-stripes { background: repeating-linear-gradient(90deg,transparent 0 70px,rgba(255,242,214,.08) 70px 105px); inset: 0; position: absolute; }
.promo-header { align-items: center; display: flex; justify-content: space-between; left: 5vw; position: absolute; right: 5vw; top: 30px; z-index: 2; }
.promo-logo { align-items: center; background: var(--cream); color: var(--red); display: flex; font-family: Impact, "Arial Black", sans-serif; gap: 8px; padding: 10px 14px 8px; transform: rotate(-2deg); }
.promo-logo strong { border-left: 2px solid currentColor; font-size: 24px; padding-left: 8px; }
.promo-date { border: 1px solid rgba(255,255,255,.65); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .12em; padding: 10px 16px; }
.promo-content { max-width: 1020px; position: relative; text-align: center; width: 100%; z-index: 1; }
.promo-kicker { font-size: 13px; font-weight: 900; letter-spacing: .2em; margin: 0 0 20px; }
.promo-content h2 { font-family: Impact, "Arial Black", "Microsoft YaHei", sans-serif; font-size: clamp(58px,10.6vw,142px); letter-spacing: -.07em; line-height: .85; margin: 0; text-shadow: 5px 5px 0 var(--dark-red); }
.promo-content h2 span { color: var(--cream); display: block; font-size: .83em; margin-top: 20px; transform: rotate(-1deg); }
.promo-copy { font-size: clamp(16px,2.5vw,22px); font-weight: 700; margin: 34px 0 30px; }
.promo-ticket { background: var(--cream); box-shadow: 10px 10px 0 var(--dark-red); color: var(--red); display: grid; grid-template-columns: 105px 1fr; margin: 0 auto; max-width: 520px; transform: rotate(1.5deg); }
.ticket-stub { align-items: center; border-right: 2px dashed rgba(215,25,32,.45); display: flex; font-family: "Courier New",monospace; font-size: 11px; font-weight: 900; justify-content: center; letter-spacing: .15em; line-height: 1.6; padding: 20px 10px; }
.ticket-main { display: flex; flex-direction: column; padding: 18px 28px 20px; text-align: left; }
.ticket-main small { font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.ticket-main strong { font-family: Impact,"Arial Black",sans-serif; font-size: clamp(48px,8vw,72px); line-height: 1; }
.ticket-main span { font-size: 12px; font-weight: 700; }
.scroll-cue { align-items: center; color: white; display: inline-flex; flex-direction: column; font-size: 12px; font-weight: 800; gap: 8px; letter-spacing: .12em; margin-top: 42px; text-decoration: none; }
.scroll-cue i { animation: bounce 1.3s ease-in-out infinite; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; display: grid; font-size: 18px; font-style: normal; height: 38px; place-items: center; width: 38px; }

.qr-section { background: var(--cream); color: var(--red); min-height: 100svh; overflow: hidden; padding: 96px 5vw 34px; position: relative; }
.marquee { background: var(--dark-red); color: var(--cream); font-family: Impact,sans-serif; font-size: 22px; left: 0; letter-spacing: .06em; overflow: hidden; padding: 13px 0 10px; position: absolute; right: 0; top: 0; white-space: nowrap; }
.qr-layout { align-items: center; display: grid; gap: clamp(48px,9vw,130px); grid-template-columns: minmax(0,1fr) auto; margin: 0 auto; max-width: 1080px; min-height: calc(100svh - 190px); padding: 30px 0; }
.qr-copy > span { background: var(--red); color: white; display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .16em; margin-bottom: 22px; padding: 9px 12px; transform: rotate(-2deg); }
.qr-copy h2 { font-family: Impact,"Arial Black","Microsoft YaHei",sans-serif; font-size: clamp(78px,11vw,150px); letter-spacing: -.06em; line-height: .82; margin: 0; }
.qr-copy p { color: var(--dark-red); font-size: 18px; font-weight: 800; line-height: 1.7; margin: 32px 0 0; max-width: 380px; }
.qr-card { background: white; border: 4px solid var(--red); box-shadow: 16px 16px 0 var(--red); padding: 24px; transform: rotate(1.5deg); width: min(390px,86vw); }
.qr-frame { aspect-ratio: 1; border: 2px solid rgba(215,25,32,.18); display: grid; overflow: hidden; place-items: center; }
.qr-frame img { display: block; height: 100%; object-fit: contain; width: 100%; }
.qr-card > p { font-size: 12px; font-weight: 800; margin: 18px 0 0; text-align: center; }
.qr-section footer { border-top: 1px solid rgba(215,25,32,.3); display: flex; font-family: "Courier New",monospace; font-size: 10px; font-weight: 700; justify-content: space-between; letter-spacing: .06em; margin: 0 auto; max-width: 1080px; padding-top: 20px; }

.reveal-overlay { align-items: center; background: rgba(56,0,4,.76); display: flex; inset: 0; justify-content: center; padding: 22px; position: fixed; z-index: 20; }
.reveal-dialog { background: var(--cream); border: 5px solid var(--red); box-shadow: 14px 14px 0 #74040b; color: var(--red); max-width: 610px; padding: clamp(32px,6vw,58px); position: relative; text-align: center; transform: rotate(-1deg); width: 100%; }
.reveal-badge { background: var(--red); color: white; display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .18em; margin-bottom: 24px; padding: 9px 14px; }
.truth-stamp { align-items: center; border: 3px solid currentColor; border-radius: 50%; display: flex; font-size: 13px; height: 60px; justify-content: center; position: absolute; right: 28px; top: 25px; transform: rotate(14deg); width: 60px; }
.reveal-dialog h2 { color: var(--dark-red); font-size: clamp(33px,7vw,56px); letter-spacing: -.055em; line-height: 1.13; margin: 0; }
.reveal-dialog h2 em { color: var(--red); font-family: Impact,"Arial Black","Microsoft YaHei",sans-serif; font-style: normal; }
.reveal-dialog p { color: #7d3538; font-size: 15px; font-weight: 700; margin: 22px 0 28px; }
.reveal-dialog button { align-items: center; background: var(--red); border: 0; color: white; cursor: pointer; display: flex; font-size: 16px; font-weight: 900; justify-content: space-between; margin: 0 auto; max-width: 330px; padding: 17px 20px; width: 100%; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,77,38,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes core { 50% { transform: scale(1.2); } }
@keyframes loading { to { width: 100%; } }
@keyframes bounce { 50% { transform: translateY(7px); } }

@media (max-width: 760px) {
  .intro-screen { align-items: flex-start; padding: 80px 22px 50px; }
  .eyebrow { margin-bottom: 76px; }
  .intro-card h1 { font-size: clamp(50px,15.2vw,74px); }
  .quiz-shell { padding: 0 20px 54px; }
  #quiz-form { padding-top: 52px; }
  .question { display: block; padding: 30px 0; }
  .question legend { display: block; padding: 0; }
  .question legend small, .question legend > span { display: block; margin: 0; padding: 0; }
  .question legend small { margin-bottom: 12px; }
  .answers { margin-top: 22px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-row .primary-button { width: 100%; }
  .promo-hero { align-items: flex-start; padding-top: 150px; }
  .promo-header { top: 24px; }
  .promo-date { font-size: 9px; padding: 8px 10px; }
  .promo-content h2 { font-size: clamp(62px,20vw,102px); }
  .promo-content h2 span { font-size: .65em; line-height: 1; }
  .promo-ticket { grid-template-columns: 82px 1fr; }
  .ticket-main { padding: 18px; }
  .qr-section { padding: 88px 22px 30px; }
  .qr-layout { gap: 60px; grid-template-columns: 1fr; padding: 70px 0 80px; }
  .qr-copy { text-align: center; }
  .qr-copy p { margin-left: auto; margin-right: auto; }
  .qr-card { justify-self: center; }
  .qr-section footer { align-items: center; flex-direction: column; gap: 9px; text-align: center; }
  .truth-stamp { height: 50px; right: 18px; top: 18px; width: 50px; }
}

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