:root { --quiz-ink: #18210f; --quiz-lime: #b9ef46; --quiz-orange: #ff8a3d; --quiz-paper: #fffdf4; }
body { min-height: 100vh; background: radial-gradient(circle at 12% 16%, rgba(185,239,70,.34), transparent 28%), radial-gradient(circle at 90% 84%, rgba(255,138,61,.2), transparent 28%), #f4f6ed; color: var(--quiz-ink); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: radial-gradient(#29331d 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
.quiz-header, .quiz-footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; position: relative; z-index: 2; }
.quiz-header { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(24,33,15,.14); }
.quiz-header-tag { padding: 7px 12px; border: 1px solid var(--quiz-ink); border-radius: 999px; background: var(--quiz-lime); font-size: 12px; font-weight: 760; transform: rotate(-1deg); }
.quiz-header > a:last-child { justify-self: end; color: #4e5a43; font-size: 13px; font-weight: 680; }
.quiz-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0 100px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 76px; align-items: start; position: relative; z-index: 1; }
.quiz-intro { position: sticky; top: 52px; padding-top: 18px; }
.quiz-kicker { display: inline-flex; align-items: center; gap: 9px; font: 700 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.quiz-kicker span { padding: 5px 7px; color: #fff; background: var(--quiz-ink); border-radius: 5px; font-size: 10px; letter-spacing: .08em; }
.quiz-intro h1 { margin: 24px 0 28px; font-size: clamp(54px, 6.2vw, 82px); line-height: .98; letter-spacing: -.075em; }
.quiz-intro h1 em { color: #24743e; font-style: normal; }
.quiz-intro > p { max-width: 470px; margin: 0; color: #55604d; font-size: 17px; line-height: 1.85; }
.quiz-social-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.quiz-social-proof span { padding: 6px 11px; border: 1px solid rgba(24,33,15,.18); border-radius: 999px; background: rgba(255,255,255,.68); color: #526047; font-size: 11px; font-weight: 650; }
.quiz-panel { min-height: 610px; padding: 34px; border: 2px solid var(--quiz-ink); border-radius: 28px; background: var(--quiz-paper); box-shadow: 9px 10px 0 var(--quiz-ink); }
.quiz-progress > div { display: flex; justify-content: space-between; align-items: center; color: #5e6855; font-size: 12px; }
.quiz-progress strong { color: var(--quiz-ink); }
.quiz-progress-track { height: 8px; display: block; margin-top: 10px; overflow: hidden; border: 1px solid var(--quiz-ink); border-radius: 999px; background: #fff; }
.quiz-progress-track i { width: 33%; height: 100%; display: block; background: var(--quiz-lime); border-right: 1px solid var(--quiz-ink); transition: width .28s ease; }
.quiz-step { min-width: 0; margin: 34px 0 0; padding: 0; border: 0; }
.quiz-step legend { width: 100%; margin-bottom: 24px; padding: 0; font-size: 27px; font-weight: 790; line-height: 1.35; letter-spacing: -.035em; }
.quiz-step legend small { display: block; margin-bottom: 7px; color: #718064; font: 680 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.quiz-step label { display: block; margin-top: 12px; cursor: pointer; }
.quiz-step input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-step label > span { min-height: 82px; display: grid; align-content: center; gap: 4px; padding: 16px 18px; border: 1px solid #ccd2c3; border-radius: 14px; background: #fff; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.quiz-step label:hover > span { transform: translateY(-2px); border-color: #607052; }
.quiz-step input:focus-visible + span { outline: 3px solid rgba(36,116,62,.25); outline-offset: 3px; }
.quiz-step input:checked + span { border: 2px solid var(--quiz-ink); background: #efffcf; box-shadow: 4px 4px 0 var(--quiz-ink); transform: translate(-2px,-2px); }
.quiz-step b { font-size: 15px; }
.quiz-step small { color: #6b7463; font-size: 12px; }
.quiz-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.quiz-controls button, .persona-actions button { min-height: 45px; padding: 0 17px; border: 1px solid var(--quiz-ink); border-radius: 10px; font: 700 13px/1.2 inherit; cursor: pointer; }
.quiz-back { background: transparent; }
.quiz-next { margin-left: auto; color: #fff; background: var(--quiz-ink); }
.quiz-next:disabled { color: #8d9587; border-color: #d4d8cf; background: #eceee9; cursor: default; }
.persona-result { position: relative; min-height: 540px; text-align: center; }
.persona-arrival { margin: -12px auto 18px; padding: 8px 12px; border: 1px solid rgba(24,33,15,.18); border-radius: 999px; background: #fff3cf; color: #655329; font-size: 11px; font-weight: 700; }
.persona-result::before, .persona-result::after { content: "✦"; position: absolute; color: var(--quiz-orange); font-size: 28px; }
.persona-result::before { left: 3%; top: 8%; transform: rotate(-12deg); }
.persona-result::after { right: 4%; top: 22%; transform: rotate(14deg); }
.persona-eyebrow { margin: 0; font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.persona-icon { width: 88px; height: 88px; display: grid; place-items: center; margin: 22px auto 8px; border: 2px solid var(--quiz-ink); border-radius: 50%; background: var(--quiz-lime); box-shadow: 5px 5px 0 var(--quiz-ink); font-size: 45px; transform: rotate(-4deg); }
.persona-number { margin: 18px 0 0; color: #77806e; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.persona-result h2 { margin: 8px 0 5px; font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -.055em; }
.persona-tagline { margin: 0 auto; color: #58624f; font-size: 14px; }
.persona-seed { width: min(100%, 420px); margin: 24px auto 0; padding: 17px 20px; border: 1px dashed #748261; border-radius: 14px; background: rgba(185,239,70,.2); }
.persona-seed small, .persona-seed span { display: block; color: #66705d; font-size: 11px; }
.persona-seed strong { display: block; margin: 3px 0; font-size: 22px; }
.persona-result blockquote { margin: 22px auto 0; color: #3f4938; font-size: 15px; font-weight: 650; }
.persona-share-hint { margin: 17px 0 10px; color: #75806c; font-size: 11px; }
.persona-actions { display: flex; justify-content: center; gap: 9px; }
.persona-actions button[data-poster] { background: var(--quiz-lime); }
.persona-actions button[data-copy] { background: #fff; }
.persona-actions button:last-child { color: #fff; background: var(--quiz-ink); }
.persona-restart { display: block; margin: 12px auto 0; padding: 4px 8px; border: 0; background: transparent; color: #5f6b55; font: 680 11px/1.3 inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.persona-download { width: min(100%, 420px); margin: 22px auto 0; }
.persona-requirement { margin: 10px auto 0; color: #77806f; font-size: 10px; line-height: 1.6; }
.poster-dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100vh - 36px); margin: auto; padding: 0; overflow: hidden; border: 2px solid var(--quiz-ink); border-radius: 22px; background: #f4f6ed; box-shadow: 9px 10px 0 var(--quiz-ink); color: var(--quiz-ink); }
.poster-dialog::backdrop { background: rgba(15,20,11,.68); backdrop-filter: blur(5px); }
.poster-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 18px 20px 15px; border-bottom: 1px solid rgba(24,33,15,.16); }
.poster-dialog-head strong, .poster-dialog-head span { display: block; }
.poster-dialog-head strong { font-size: 16px; }
.poster-dialog-head span { margin-top: 3px; color: #65705c; font-size: 11px; }
.poster-dialog-head button { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid rgba(24,33,15,.24); border-radius: 50%; background: #fff; color: var(--quiz-ink); font: 500 23px/1 inherit; cursor: pointer; }
.poster-dialog img { width: min(390px, calc(100% - 36px)); max-height: calc(100vh - 210px); display: block; margin: 18px auto; object-fit: contain; border: 1px solid rgba(24,33,15,.2); border-radius: 13px; box-shadow: 4px 5px 0 rgba(24,33,15,.92); }
.poster-dialog-actions { display: flex; justify-content: end; gap: 10px; padding: 0 20px 20px; }
.poster-dialog-actions button, .poster-dialog-actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--quiz-ink); border-radius: 10px; font: 700 13px/1.2 inherit; cursor: pointer; }
.poster-dialog-actions button { background: #fff; }
.quiz-footer { min-height: 118px; padding: 28px 0; display: flex; justify-content: space-between; gap: 40px; border-top: 1px solid rgba(24,33,15,.14); color: #66705e; font-size: 11px; }
.quiz-footer p { max-width: 690px; margin: 0; }
.quiz-footer nav { display: flex; gap: 20px; }
@media (max-width: 860px) {
  .quiz-shell { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; }
  .quiz-intro { position: static; padding: 0; }
  .quiz-intro > p { max-width: 680px; }
}
@media (max-width: 640px) {
  .quiz-header { min-height: 66px; grid-template-columns: 1fr auto; }
  .quiz-header-tag { display: none; }
  .quiz-header > a:last-child { font-size: 12px; }
  .quiz-shell { width: min(100% - 28px, 560px); padding: 38px 0 70px; gap: 30px; }
  .quiz-intro h1 { margin-block: 18px 20px; font-size: 48px; }
  .quiz-intro > p { font-size: 15px; }
  .quiz-panel { min-height: 570px; padding: 24px 18px; border-radius: 20px; box-shadow: 6px 7px 0 var(--quiz-ink); }
  .quiz-step legend { font-size: 23px; }
  .quiz-step label > span { min-height: 76px; }
  .persona-actions { display: grid; }
  .persona-actions button { width: 100%; }
  .poster-dialog { max-height: calc(100vh - 20px); border-radius: 18px; box-shadow: 5px 6px 0 var(--quiz-ink); }
  .poster-dialog-head { padding-inline: 16px; }
  .poster-dialog img { max-height: calc(100vh - 235px); }
  .poster-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; padding-inline: 16px; }
  .quiz-footer { width: calc(100% - 28px); display: grid; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-progress-track i, .quiz-step label > span { transition: none; }
}
