:root {
  color-scheme:light;
  --ink:#302b3a;
  --muted:#6c6376;
  --brand:#6c4f89;
  --brand-hover:#583d73;
  --paper:#f8f6fb;
  --surface:#fff;
  --line:#e2dce9;
  --soft:#f1ebf7;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:Arial,Helvetica,sans-serif; font-size:1rem; line-height:1.5; }
button,input,a { -webkit-tap-highlight-color:transparent; }
button,input { font:inherit; }
button { cursor:pointer; touch-action:manipulation; }
button:disabled { cursor:default; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--brand); outline-offset:4px; }
.wrap { max-width:1000px; padding:0 28px; margin:0 auto; }
.masthead { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:11px; font-size:.8125rem; font-weight:800; letter-spacing:.035em; }
.brand-mark { display:grid; place-items:center; width:36px; height:36px; flex:0 0 auto; border-radius:12px; background:var(--brand); color:#fff; font-size:1.65rem; line-height:1; }
.edition { font-size:.6875rem; font-weight:700; letter-spacing:.09em; color:var(--muted); text-align:right; }
.eyebrow { font-size:.6875rem; letter-spacing:.09em; font-weight:800; text-transform:uppercase; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
fieldset { min-width:0; border:0; margin:0; padding:0; }
.text-button { border:0; background:transparent; color:var(--muted); font-size:.875rem; min-height:44px; padding:8px 0; text-decoration:underline; text-underline-offset:4px; }
.text-button:hover { color:var(--brand); }
.primary-button,.secondary-button { display:inline-flex; align-items:center; justify-content:center; min-height:50px; border-radius:14px; padding:12px 24px; font-weight:700; line-height:1.4; }
.primary-button { margin-left:auto; min-width:180px; background:var(--brand); color:#fff; border:1px solid var(--brand); }
.primary-button:hover:not(:disabled) { background:var(--brand-hover); }
.primary-button:disabled { background:#eee9f2; color:#786d82; border-color:#eee9f2; }
.secondary-button { border:1px solid var(--line); background:var(--surface); color:var(--ink); }
.secondary-button:hover { border-color:var(--brand); color:var(--brand); }

/* Choose a companion. */
.character-picker { max-width:780px; margin:38px auto 30px; text-align:center; }
.character-picker > .eyebrow { color:var(--brand); margin:0 0 10px; }
.character-picker h1 { font-size:clamp(1.85rem,4.5vw,2.55rem); line-height:1.16; letter-spacing:-.035em; margin:0; }
.character-picker h1:focus { outline:none; }
.character-intro { color:var(--muted); margin:14px 0 24px; line-height:1.55; }
.character-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.character-card { position:relative; display:flex; flex-direction:column; align-items:center; border:2px solid var(--line); border-radius:22px; background:var(--surface); padding:10px 16px 14px; cursor:pointer; transition:border-color .18s,background .18s; }
.character-card input { position:absolute; opacity:0; width:1px; height:1px; }
.character-card:hover { border-color:#baabd0; }
.character-card:focus-within { outline:3px solid var(--brand); outline-offset:4px; }
.character-card:has(input:checked) { border-color:var(--brand); background:var(--soft); }
.character-art { display:block; width:100%; max-width:168px; aspect-ratio:1; }
.feline { display:block; width:100%; height:100%; overflow:visible; }
.character-name { font-size:1rem; font-weight:750; margin-top:2px; }
.character-description { color:var(--muted); font-size:.875rem; line-height:1.45; margin-top:6px; min-height:42px; }
.character-check { display:block; visibility:hidden; font-size:.75rem; font-weight:700; color:var(--brand); margin-top:9px; }
.character-card:has(input:checked) .character-check { visibility:visible; }
.character-actions { display:flex; align-items:center; justify-content:center; gap:20px; margin:24px 0 0; }
.character-actions .primary-button { margin-left:0; min-width:220px; }
.character-note { font-size:.8125rem; color:var(--muted); margin:12px 0 0; }

/* One question at a time. */
.quiz-intro { max-width:640px; margin:26px auto 14px; }
.intro-top { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.quiz-intro h1 { margin:0; font-size:clamp(1.5rem,4vw,1.9rem); line-height:1.2; letter-spacing:-.025em; }
.quiz-intro p { color:var(--muted); font-size:.9375rem; margin:6px 0 0; }
.day-label { color:var(--muted); font-size:.8125rem; white-space:nowrap; }
.companion { display:flex; align-items:center; gap:12px; max-width:640px; margin:0 auto 14px; background:var(--soft); border:1px solid var(--line); border-radius:18px; padding:7px 16px 7px 7px; }
.companion-art { width:64px; height:64px; flex:0 0 auto; }
.companion-copy { flex:1; min-width:0; }
.companion-name { margin:0 0 3px; color:var(--brand); font-size:.75rem; font-weight:750; }
#companionLine { margin:0; font-size:.875rem; line-height:1.45; color:#524861; }
.companion .text-button { font-size:.8125rem; flex:0 0 auto; color:var(--brand); }
.checkin { max-width:640px; margin:0 auto 28px; background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:24px; box-shadow:0 8px 28px #302b3a05; }
.form-top { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:36px; }
.progress-counter { margin:0; font-size:.8125rem; font-weight:700; color:var(--muted); }
.step-track { display:flex; gap:8px; margin:8px 0 24px; }
.step-track span { min-width:0; flex:1; color:var(--muted); font-size:.6875rem; text-align:center; }
.step-track span::before { content:''; display:block; height:4px; margin-bottom:6px; border-radius:99px; background:var(--line); }
.step-track span.current { color:var(--brand); font-weight:700; }
.step-track span.current::before { background:var(--brand); }
.step-track span.done::before { background:#baa6cf; }
legend { display:block; width:100%; margin-bottom:18px; padding:0; font-size:1.35rem; font-weight:750; line-height:1.35; letter-spacing:-.015em; }
legend:focus { outline:none; }
.question-note { margin:0 0 18px; color:var(--muted); font-size:.9375rem; }
.choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.choice { position:relative; display:flex; min-height:90px; align-items:center; padding:15px 43px 15px 15px; border:1px solid var(--line); border-radius:15px; cursor:pointer; transition:background .15s,border-color .15s; }
.choice::before { content:''; position:absolute; right:15px; top:50%; transform:translateY(-50%); width:18px; height:18px; border:2px solid #8f7e9b; border-radius:50%; background:var(--surface); }
.choice input { position:absolute; opacity:0; width:1px; height:1px; }
.choice strong { display:block; font-size:1rem; font-weight:700; line-height:1.35; overflow-wrap:anywhere; }
.choice small { display:block; margin-top:4px; font-size:.875rem; line-height:1.4; color:var(--muted); }
.choice:has(input:checked) { border-color:var(--brand); background:var(--soft); box-shadow:inset 0 0 0 1px var(--brand); }
.choice:has(input:checked)::before { border-color:var(--brand); background:var(--brand); box-shadow:inset 0 0 0 3px var(--soft); }
.choice:has(input:checked) strong { color:var(--brand); }
.choice:focus-within { outline:3px solid var(--brand); outline-offset:3px; }
.choice:hover { border-color:#aa97bd; }
.purpose .choice { min-height:74px; }
.energy { grid-template-columns:1fr; }
.energy .choice { min-height:74px; }
.range-top { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.range-top label { font-size:.9375rem; }
output { color:var(--brand); font-size:1.75rem; font-weight:800; white-space:nowrap; font-variant-numeric:tabular-nums; }
input[type=range] { display:block; width:100%; height:44px; margin:12px 0 5px; accent-color:var(--brand); cursor:pointer; }
.range-ends { display:flex; justify-content:space-between; gap:16px; color:var(--muted); font-size:.8125rem; }
.quiz-actions { display:flex; gap:16px; justify-content:space-between; align-items:center; margin-top:24px; }
.quiz-actions .primary-button:only-child { width:100%; }
.pick-hint { margin:10px 0 0; text-align:right; font-size:.8125rem; color:var(--muted); }
.form-error { margin:16px 0 0; color:#a22542; font-size:1rem; }

/* The verdict leads; encouragement is optional. */
.results { display:grid; gap:16px; max-width:780px; margin:26px auto 28px; }
.verdict { --accent:#6c4f89; --accent-soft:#f1ebf7; background:var(--surface); color:var(--ink); padding:28px; border:1px solid var(--line); border-radius:24px; overflow:hidden; }
.verdict[data-decision=office] { --accent:#3d6656; --accent-soft:#eaf2ed; }
.verdict[data-decision=off] { --accent:#785730; --accent-soft:#f7eee2; }
.verdict-top { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.verdict-top .eyebrow { color:var(--muted); }
.decision-label { background:var(--accent-soft); color:var(--accent); border-radius:99px; padding:7px 11px; font-size:.6875rem; font-weight:800; letter-spacing:.045em; }
.verdict-hero { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:24px; align-items:center; margin:16px 0; }
.verdict h1 { margin:0 0 16px; font-size:clamp(1.85rem,4.5vw,2.6rem); line-height:1.13; letter-spacing:-.03em; color:var(--ink); overflow-wrap:break-word; }
.verdict h1:focus { outline:none; }
.explanation { margin:0; color:var(--muted); font-size:1rem; line-height:1.65; }
.result-character { min-width:0; text-align:center; }
.result-art { width:165px; height:198px; max-width:100%; margin:0 auto; }
.result-name { margin:4px 0 0; color:var(--brand); font-size:.75rem; font-weight:700; }
.result-character .text-button { font-size:.75rem; }
.result-comment { margin:0; padding:14px 16px; color:var(--accent); background:var(--accent-soft); border-radius:14px; font-size:.9375rem; line-height:1.5; }
.why { margin-top:18px; border-top:1px solid var(--line); padding-top:8px; }
.why summary { cursor:pointer; font-size:.875rem; font-weight:700; min-height:44px; padding:10px 0; }
.reason-list { margin:7px 0 12px; padding-left:20px; color:var(--muted); font-size:.875rem; }
.reason-list li + li { margin-top:8px; }
.travel { border:1px solid var(--line); border-radius:14px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 16px; margin-top:12px; background:var(--paper); }
.travel > span { font-size:.875rem; color:var(--muted); }
.travel strong { flex-shrink:0; color:var(--accent); font-size:1.75rem; white-space:nowrap; line-height:1.15; }
.travel strong small { font-size:.875rem; font-weight:600; }
.verdict-foot { margin:16px 0 0; color:var(--muted); font-size:.8125rem; }
.result-side { display:grid; gap:16px; min-width:0; }
.pep { background:#eef3f0; border:1px solid #dce6df; border-radius:20px; }
.pep > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:76px; padding:18px 22px; cursor:pointer; list-style:none; }
.pep > summary::-webkit-details-marker { display:none; }
.pep > summary strong { display:block; font-size:1rem; font-weight:750; }
.pep > summary small { display:block; margin-top:2px; color:var(--muted); font-size:.8125rem; }
.pep-chevron { width:9px; height:9px; flex:0 0 auto; border-right:2px solid #526959; border-bottom:2px solid #526959; transform:rotate(45deg); transition:transform .18s; }
.pep[open] .pep-chevron { transform:rotate(225deg); }
.pep-content { padding:0 22px 22px; }
.pep-top { display:flex; align-items:center; justify-content:space-between; gap:14px; border-top:1px solid #d3e0d8; padding-top:9px; }
.pep-top p { margin:0; font-size:.8125rem; color:var(--muted); }
.pep .text-button { color:#42624d; flex-shrink:0; }
blockquote { margin:12px 0 18px; font-size:1.3rem; font-weight:700; line-height:1.4; letter-spacing:-.015em; }
.next-step { border-top:1px solid #d3e0d8; padding-top:15px; }
.next-step .eyebrow { color:#42624d; }
.next-step p { margin:7px 0 0; font-size:.9375rem; line-height:1.6; }
.result-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.result-art .feline-body { transform-origin:100px 216px; }
.result-art[data-mood=office] .feline-body { animation:cat-nod .6s ease-in-out 2; }
.result-art[data-mood=home] .feline-body,.result-art[data-mood=off] .feline-body { animation:cat-sigh 1.2s ease-out; }
@keyframes cat-nod { 50% { transform:translateY(-4px) rotate(-2deg); } }
@keyframes cat-sigh { 50% { transform:scale(1.025,.98); } }

/* The existing seven-second outfit animation. */
.reveal-stage { max-width:640px; margin:28px auto; padding:26px; border:1px solid var(--line); border-radius:24px; background:var(--surface); text-align:center; }
.reveal-stage > .eyebrow { color:var(--brand); margin:0 0 10px; }
.reveal-stage h1 { max-width:420px; margin:0 auto; font-size:clamp(1.6rem,4vw,2rem); line-height:1.2; letter-spacing:-.025em; }
.reveal-stage h1:focus { outline:none; }
.reveal-scene { position:relative; width:280px; max-width:100%; height:300px; margin:12px auto 0; }
.reveal-scene::before { content:''; position:absolute; width:210px; height:210px; max-width:100%; top:30px; left:50%; transform:translateX(-50%); border-radius:50%; background:radial-gradient(circle,#e9dff8,#f5f0fc00 72%); }
.reveal-art { position:absolute; width:250px; height:300px; max-width:100%; left:50%; top:0; opacity:1; transform:translateX(-50%); transition:opacity .5s ease; }
.reveal-stage[data-phase=fade] .reveal-art { opacity:0; }
.reveal-name { margin:0; color:var(--brand); font-size:.8125rem; font-weight:750; }
.reveal-line { max-width:400px; min-height:3em; margin:9px auto 15px; color:#524861; font-size:1rem; line-height:1.5; }
.reveal-actions { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px 24px; }
.reveal-stage .scene-head { transform-origin:100px 125px; }
.reveal-stage .scene-torso { transform-origin:100px 199px; }
.reveal-stage .feline-eyes { transform-origin:100px 86px; }
.reveal-stage[data-phase=stand] .scene-head { animation:cat-stand-head 1.2s cubic-bezier(.2,.7,.3,1) both; }
.reveal-stage[data-phase=stand] .scene-torso { animation:cat-stand-torso 1.2s cubic-bezier(.2,.7,.3,1) both; }
.reveal-stage[data-phase=stand] .scene-leg--left { animation:cat-stand-left 1.2s ease both; }
.reveal-stage[data-phase=stand] .scene-leg--right { animation:cat-stand-right 1.2s ease both; }
.reveal-stage[data-phase=look] .scene-head { animation:cat-look 1.05s ease both; }
.reveal-stage[data-phase=look] .feline-eyes { animation:cat-look-eyes 1.05s ease both; }
.reveal-stage[data-phase=dressed] .feline-body { transform-origin:100px 216px; animation:cat-outfit .75s ease both; }
@keyframes cat-stand-head { from { transform:translateY(35px); } to { transform:translateY(0); } }
@keyframes cat-stand-torso { from { transform:scaleY(.6); } to { transform:scaleY(1); } }
@keyframes cat-stand-left { from { transform:translateX(-10px); } to { transform:translateX(0); } }
@keyframes cat-stand-right { from { transform:translateX(10px); } to { transform:translateX(0); } }
@keyframes cat-look { 0% { transform:rotate(-3deg); } 50% { transform:rotate(2deg); } 100% { transform:rotate(0); } }
@keyframes cat-look-eyes { 0%,50%,100% { transform:translateY(0) scaleY(1); } 25% { transform:translateY(2px) scaleY(.1); } }
@keyframes cat-outfit { 0% { transform:translateY(5px) scale(.98); } 65% { transform:translateY(-2px) scale(1.01); } 100% { transform:translateY(0) scale(1); } }
footer { display:flex; gap:18px; justify-content:space-between; max-width:780px; margin:0 auto; padding:8px 0 24px; font-size:.75rem; color:var(--muted); }
footer p { margin:0; }
noscript p { border:1px solid var(--line); padding:18px; border-radius:12px; background:var(--surface); }

@media (max-width:760px) {
  .wrap { padding:0 20px; }
  .day-label { display:none; }
  footer { flex-direction:column; gap:5px; }
}
@media (max-width:600px) {
  .character-picker { max-width:420px; margin-top:24px; }
  .character-grid { grid-template-columns:1fr; gap:10px; }
  .character-card { display:grid; grid-template-columns:80px minmax(0,1fr); grid-template-rows:auto auto auto; text-align:left; padding:7px 13px 7px 3px; column-gap:12px; border-radius:18px; }
  .character-art { grid-row:1 / 4; width:80px; }
  .character-name { font-size:.9375rem; align-self:end; }
  .character-description { min-height:0; margin-top:2px; font-size:.8125rem; }
  .character-check { margin-top:4px; font-size:.6875rem; }
  .character-intro { margin-bottom:18px; }
  .character-actions { flex-wrap:wrap; gap:6px; margin-top:18px; }
  .character-actions .primary-button { width:100%; }
  .verdict-hero { grid-template-columns:1fr; gap:16px; }
  .result-character { display:grid; grid-template-columns:104px minmax(0,1fr); grid-template-rows:auto auto; text-align:left; gap:4px 16px; order:-1; width:100%; max-width:310px; justify-self:center; }
  .result-art { grid-row:1 / 3; width:104px; height:125px; }
  .result-name { align-self:end; margin:0; font-size:.8125rem; }
  .result-character .text-button { align-self:start; justify-self:start; font-size:.8125rem; }
}
@media (max-width:480px) {
  .wrap { padding:0 14px; }
  .masthead { min-height:64px; gap:10px; }
  .brand { gap:8px; font-size:.75rem; }
  .brand-mark { width:32px; height:32px; }
  .edition { font-size:.625rem; max-width:75px; }
  .quiz-intro { margin-top:20px; }
  .companion { gap:8px; padding-right:12px; }
  .companion-art { width:54px; height:54px; }
  #companionLine { font-size:.8125rem; }
  .companion .text-button { font-size:.75rem; }
  .checkin,.verdict { padding:20px; border-radius:20px; }
  legend { font-size:1.25rem; }
  .choices { grid-template-columns:1fr; gap:9px; }
  .choice { min-height:62px; padding:12px 43px 12px 13px; }
  .choice strong { font-size:.9375rem; }
  .choice small { font-size:.8125rem; }
  .energy .choice { min-height:70px; }
  .purpose .choice { min-height:62px; }
  .quiz-actions { position:sticky; bottom:0; z-index:2; background:var(--surface); padding:12px 0; margin-top:16px; border-top:1px solid var(--line); }
  .quiz-actions .primary-button { min-width:0; flex:1; padding:12px 18px; }
  .pick-hint { margin-top:0; }
  .verdict h1 { font-size:1.85rem; }
  .verdict-top { gap:8px; }
  .travel { padding:12px; }
  .travel > span { max-width:170px; font-size:.8125rem; }
  .pep > summary { padding:16px 18px; }
  .pep-content { padding:0 18px 18px; }
  .pep-top { align-items:flex-start; }
  .pep-top p { max-width:145px; padding-top:9px; }
  .pep .text-button { max-width:110px; text-align:right; line-height:1.4; }
  blockquote { font-size:1.2rem; }
  .result-actions > button { flex:1; padding:12px 14px; min-width:0; font-size:.9375rem; }
  .reveal-stage { margin-top:24px; padding:20px; border-radius:20px; }
  .reveal-scene { width:240px; height:264px; }
  .reveal-art { width:220px; height:264px; }
  .reveal-line { min-height:4.5em; font-size:.9375rem; }
}
@media (max-width:340px) {
  .edition { display:none; }
  .character-card { grid-template-columns:70px minmax(0,1fr); column-gap:8px; }
  .character-art { width:70px; }
  .companion { flex-wrap:wrap; }
  .companion-copy { flex-basis:calc(100% - 70px); }
  .companion .text-button { margin-left:auto; }
  .pep-top { flex-wrap:wrap; }
  .pep-top p { max-width:none; }
  .pep .text-button { text-align:left; max-width:none; }
  .travel { flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  * { transition:none!important; animation:none!important; }
}
:root { --beta-notice-border: #d9cde7; }
.beta-notice { padding:18px 22px; margin:0 0 26px; border:1px solid var(--beta-notice-border); border-radius:18px; background:#faf7fe; font-size:.9rem; }
.beta-notice h2 { font-size:1.05rem; margin:0 0 8px; }
.beta-notice p { margin:8px 0; line-height:1.5; }

/* Welcome before choosing a companion. */
.welcome { max-width:640px; margin:48px auto 36px; text-align:center; }
.welcome .eyebrow { color:var(--brand); }
.welcome h1 { font-size:clamp(2.1rem,6vw,3.25rem); line-height:1.12; letter-spacing:-.035em; margin:12px 0 22px; }
.welcome > p { color:var(--muted); }
.welcome .welcome-lead { font-size:1.2rem; color:var(--ink); }
.welcome .welcome-steps { font-weight:700; margin:24px 0; }
.welcome .primary-button { margin:0 0 12px; }
