:root{--ink:#24231f;--muted:#6e6a62;--paper:#f5f0e8;--card:#fffdf8;--orange:#f4a261;--blue:#d9e9ee;--line:#ddd6ca}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}main{max-width:660px;margin:auto;padding:20px 20px 85px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:38px}.logo{font-family:Georgia,serif;font-size:29px;letter-spacing:-1.5px}.tiny{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted)}h1,h2{font-family:Georgia,serif;letter-spacing:-1.3px;line-height:1.09}h1{font-size:clamp(43px,9vw,70px);margin:12px 0 18px}h2{font-size:clamp(31px,7vw,46px);margin:10px 0 18px}p{line-height:1.55}button{font:inherit;cursor:pointer;border:0}button:focus-visible{outline:3px solid #27758b;outline-offset:3px}.primary{background:var(--ink);color:white;border-radius:100px;padding:16px 23px;font-weight:700;min-height:52px}.secondary{background:transparent;border:1px solid var(--ink);border-radius:100px;padding:13px 20px;font-weight:600}.primary:hover{background:#414038}.card{background:var(--card);border:1px solid var(--line);border-radius:23px;padding:23px}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:26px 0}.tile{background:var(--card);border:1px solid var(--line);border-radius:19px;padding:19px;text-align:left;min-height:155px;transition:transform .15s,border .15s}.tile:hover{transform:translateY(-3px);border-color:var(--ink)}.tile .symbol{font-size:34px;margin-bottom:13px}.tile strong{display:block;font-family:Georgia,serif;font-size:22px;margin-bottom:6px}.tile small{color:var(--muted);font-size:13px;line-height:1.4;display:block}.muted{color:var(--muted)}.progress{height:5px;background:#e0d9ce;border-radius:5px;margin:24px 0 32px;overflow:hidden}.progress>div{height:100%;background:#d27943;transition:width .25s}.choice{display:block;width:100%;text-align:left;background:var(--card);border:1px solid var(--line);padding:19px 20px;border-radius:16px;margin:10px 0;font-weight:600;min-height:63px}.choice:hover{border-color:#c27d50;background:#fff8ee}.tag{display:inline-block;background:#e4ded2;padding:8px 12px;border-radius:100px;font-size:12px;font-weight:700}.note{background:#e5e9e4;border-radius:15px;padding:17px;margin:22px 0;font-size:14px}.result{background:#d9e9ee;border-radius:25px;padding:25px;margin:22px 0}.result .big{font-family:Georgia,serif;font-size:42px;line-height:1.1}.bar{height:12px;background:#c8d5d9;border-radius:20px;overflow:hidden;margin:9px 0 20px}.bar div{height:100%;background:#487e88}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.question-counter{display:flex;justify-content:space-between;align-items:center}.field{width:100%;border:1px solid var(--line);border-radius:13px;background:white;padding:14px;font:inherit;font-size:15px}.feedback-group{margin:19px 0}.feedback-group label{display:block;font-weight:650;margin-bottom:9px}.pills{display:flex;gap:8px;flex-wrap:wrap}.pill{border:1px solid #bbb3a7;background:white;padding:11px 14px;border-radius:99px}.pill.active{background:#25231f;color:white;border-color:#25231f}.challenge-hero{background:#f4a261;border:1px solid rgba(156,79,42,.16);border-radius:24px;padding:24px;margin:18px 0 26px;box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 22px 36px -26px rgba(156,79,42,.7)}.challenge-hero h2{font-size:clamp(29px,7vw,39px);margin:9px 0}.challenge-hero .primary{width:100%;background:#24231f;font-size:18px;padding:19px;box-shadow:0 12px 22px -14px rgba(36,35,31,.7)}.challenge-hero p{margin:10px 0 18px}.relation-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.relation-grid button{padding:15px 10px;background:white;border:1px solid #bdb5a8;border-radius:13px;font-weight:650}.relation-grid button.selected{background:#24231f;color:white;border-color:#24231f}.hidden{display:none!important}footer{margin-top:45px;border-top:1px solid var(--line);padding-top:17px;font-size:12px;color:var(--muted)}.ornament{font-family:Georgia,serif;font-size:78px;color:#d2804b;line-height:1}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#222;color:white;border-radius:99px;padding:12px 19px;display:none;z-index:5;font-size:13px;white-space:nowrap}@media(max-width:400px){.tiles{grid-template-columns:1fr}.tile{min-height:115px}.tile .symbol{margin-bottom:3px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.version{font-size:11px;letter-spacing:.09em;color:#777}.feature{background:#fffdf8;border:1px solid #ddd6ca;border-radius:18px;padding:19px;margin:16px 0}.feature h3{margin:4px 0 9px}.daily{background:#e5eee3}.weekly{background:#dcecf0}.circle{background:#f8e3cc}.shareHero{background:#f4a261;padding:23px;border-radius:24px;margin:16px 0;border:1px solid rgba(156,79,42,.16);box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 22px 36px -26px rgba(156,79,42,.7)}.shareHero button{width:100%;margin-top:12px}.mini{font-size:13px;color:#6e6a62}.stat{font-size:28px;font-weight:800}.minirow{display:flex;gap:9px;flex-wrap:wrap}.minirow button{flex:1;min-width:115px}.primary{cursor:pointer}

/* ---- v0.4 additions: only what new workflows need (status chips, checkbox row, link buttons) ---- */
.status{display:inline-block;padding:5px 10px;border-radius:99px;font-size:12px;font-weight:700;background:#e4ded2}
.status.created{background:#e4ded2}.status.awaiting{background:#f8e3cc}.status.completed{background:#d9e9ee}.status.expired{background:#ece7df;color:#6e6a62}
.check{display:flex;gap:12px;align-items:flex-start;margin:16px 0;font-size:15px;line-height:1.4}.check input{width:24px;height:24px;flex:none;margin:0;accent-color:#24231f}
.linkbtn{background:none;border:0;padding:6px 0;color:var(--ink);text-decoration:underline;font-weight:600;min-height:44px}
.error{background:#f6dcd3;border-radius:15px;padding:15px;margin:14px 0;font-size:14px}
.optionrow{margin:14px 0}.optionrow .label{display:flex;justify-content:space-between;gap:10px;font-weight:600}
.keybox{font-family:ui-monospace,Menlo,monospace;font-size:14px;word-break:break-all;background:white;border:1px dashed #bbb3a7;border-radius:12px;padding:14px;margin:10px 0}
.shareHero .secondary{background:#fffdf8;width:100%;margin-top:10px}
.challenge-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.choice.correct{border-color:#487e88}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
footer a,footer button.linkbtn{color:var(--muted);font-size:12px;min-height:0;padding:0}
select.field{appearance:auto;min-height:50px}label{display:block;margin:12px 0 7px;font-weight:650}
.choice[aria-pressed=true]{border-color:#24231f;background:#fff8ee}
.choice{position:relative;transition:background .15s,border-color .15s,opacity .15s}
.choice.picked{border:2px solid #24231f;background:#fff1e0;padding-right:52px}
.choice.picked::after{content:'✓';position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:800;color:#24231f}
.choice.dimmed{opacity:.45}
body{transition:background .35s ease}
.q-enter{animation:qIn .22s ease-out}
@keyframes qIn{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
.question-counter .tiny{font-weight:800;color:var(--ink);font-size:12px}
@media(prefers-reduced-motion:reduce){.q-enter{animation:none}body{transition:none}}
#app{overflow-x:hidden;overflow-x:clip}
header{gap:14px}header .logo{white-space:nowrap;font-size:clamp(24px,7vw,29px)}header .tiny{text-align:right}
.pwrow{display:flex;gap:8px;align-items:stretch}.pwrow .field{flex:1;min-width:0}.pwtoggle{min-width:76px;min-height:50px;padding:0 14px}

.steps{list-style:none;padding:0;margin:20px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.steps li{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:12px 10px;font-size:13px;line-height:1.35;font-weight:600}
.steps b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#24231f;color:#fff;font-size:12px;margin-bottom:7px}
.steps span{display:block}
.pick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pick-grid button{background:#fffdf8;border:1px solid rgba(36,35,31,.14);border-radius:18px;min-height:64px;padding:12px;font-weight:700;font-size:16px;display:flex;align-items:center;gap:10px;text-align:left;box-shadow:0 10px 18px -14px rgba(36,35,31,.55);transition:transform .1s,box-shadow .1s}
.pick-grid button:active{transform:scale(.98);box-shadow:0 4px 10px -8px rgba(36,35,31,.5)}
.pick-grid .pe{font-size:22px;width:28px;text-align:center}
@media(max-width:340px){.steps{grid-template-columns:1fr}}
.ornament .mark{width:96px;height:72px;display:block}

.feature.write{background:#f1e4d8}
.compose-q{margin:14px 0}.compose-q .question-counter{margin-bottom:6px}
.optrow{display:flex;gap:8px;align-items:center;margin:8px 0}.optrow .field{flex:1;min-width:0}
.mark-btn{width:48px;min-width:48px;height:50px;border-radius:13px;border:1px solid var(--line);background:#fff;font-size:20px;color:#6e6a62}
.optrow.mine .mark-btn{background:#24231f;color:#fff;border-color:#24231f}.optrow.mine .field{border-color:#24231f;border-width:2px}
/* ---- v0.5.2: 4 steps (2×2 on phones), back buttons, side-by-side reveal ---- */
.steps{grid-template-columns:repeat(4,1fr)}
@media(max-width:560px){.steps{grid-template-columns:1fr 1fr}}
.choice .was{display:inline-block;margin-left:8px;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#8a5a33;background:#f6e2cc;border-radius:99px;padding:3px 8px;vertical-align:middle}
.backbtn{min-height:48px}
.dots{display:flex;gap:8px;margin:12px 0 14px}
.dots span{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:17px}
.dots .hit{background:#487e88;color:#fff}.dots .miss{background:#fff;color:#b5523b;border:2px solid #d9a08f}
.cmp-key{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;font-weight:700;margin:8px 0 4px;color:var(--muted)}
.cmp-key .dot{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:6px;vertical-align:-1px}
.dot.pick,.cmp-col.pick{background:#24231f}.dot.guess{background:#f4a261}
.cmp{background:var(--card);border:1px solid var(--line);border-left:6px solid #487e88;border-radius:20px;padding:18px;margin:12px 0}
.cmp.miss{border-left-color:#d27943}
.cmp-head{display:flex;align-items:center;gap:10px}
.cmp-head .tiny{margin-left:auto}
.cmp-n{width:26px;height:26px;border-radius:50%;background:#e4ded2;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}
.cmp-badge{font-size:12px;font-weight:800;padding:5px 10px;border-radius:99px;background:#dcebee;color:#2f5f68}
.cmp.miss .cmp-badge{background:#fbe3d2;color:#9a4a22}
.cmp h3{font-family:Georgia,serif;font-size:21px;line-height:1.25;margin:12px 0 14px;letter-spacing:-.3px}
.cmp .who{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;font-weight:800;margin-bottom:6px;opacity:.85}
.cmp strong{font-size:17px;line-height:1.3;display:block}
.cmp-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cmp-col{border-radius:14px;padding:13px}
.cmp-col.pick{color:#fff}
.cmp-col.guess{background:#fde6cf;color:#24231f;border:2px dashed #e0a473}
.cmp-same{background:#e3eff1;border-radius:14px;padding:13px}
@media(max-width:340px){.cmp-row{grid-template-columns:1fr}}
/* ---- v0.5.5: compact challenge list ---- */
.crows{margin:14px 0}
.crow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:12px 14px;margin:8px 0;min-height:60px;color:var(--ink)}
button.crow:hover{border-color:var(--ink)}
.crow-main{flex:1;min-width:0}
.crow-main strong{display:block;font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crow-main small{display:block;font-size:13px;color:var(--muted);margin-top:2px;line-height:1.3}
.crow-score{font-family:Georgia,serif;font-size:22px;font-weight:700}
.crow-go{font-size:26px;line-height:1;color:var(--muted);margin-left:-4px}
.crow .status{white-space:nowrap}
/* ---- v0.5.9: Coworker (7th relationship) — odd last tile spans the row ---- */
.pick-grid button:last-child:nth-child(odd),.relation-grid button:last-child:nth-child(odd){grid-column:1/-1}
/* ---- v0.5.10: how-it-works is information, not buttons: plain numbered list ---- */
.steps{display:block;margin:18px 0 0;padding:0}
.steps li{display:flex;align-items:center;gap:12px;background:none;border:0;border-radius:0;padding:5px 0;font-size:15px;font-weight:500;color:var(--ink)}
.steps b{flex:none;width:24px;height:24px;margin:0;background:none;color:var(--ink);border:1.5px solid var(--ink);font-size:12px}
.steps span{display:inline}
/* ---- v0.5.11: steps in one horizontal row ---- */
.steps{display:grid;grid-template-columns:1fr 1fr 1.35fr 1fr;gap:6px;margin:4px 0 0;position:relative}
.steps li{flex-direction:column;align-items:center;text-align:center;gap:6px;padding:0;font-size:12.5px;line-height:1.3;font-weight:600;position:relative}
.steps li:not(:last-child)::after{content:'';position:absolute;top:12px;left:calc(50% + 18px);right:calc(-50% + 12px);border-top:1.5px dashed #bdb5a8}
.steps li:nth-child(3)::after{right:calc(-37% + 12px)}
.steps b{background:var(--paper);position:relative;z-index:1}
@media(max-width:340px){.steps{grid-template-columns:1fr 1fr 1.35fr 1fr}.steps li{font-size:11.5px}}
/* ---- v0.6.0: About / Privacy / Terms / Contact ---- */
.legal-nav{margin-top:10px;font-size:12px}
.legal-nav a{color:var(--muted);text-decoration:underline;display:inline-block;padding:6px 0;min-height:32px}
.legal .logo{color:var(--ink);text-decoration:none}.legal .logo .dot{color:#d2804b}
.legal h1{font-size:clamp(34px,8vw,52px)}
.legal h2{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:18px;letter-spacing:0;margin:28px 0 6px}
.legal p,.legal li{font-size:16px;line-height:1.6}
.legal ul{padding-left:20px}.legal li{margin:6px 0}
.legal a{color:var(--ink)}
.legal a[aria-current=page]{font-weight:800;text-decoration:none;color:var(--ink)}
.contact-mail{font-family:Georgia,serif;font-size:clamp(24px,6vw,32px);margin:22px 0}
.legal .contact-mail{font-family:Georgia,serif;font-size:clamp(24px,6vw,32px);margin:22px 0}
.legal-nav a{display:inline-flex;align-items:center;min-height:44px}
/* ---- v0.7: one-action share ---- */
.shareHero.send .primary{width:100%;margin-top:14px;font-size:18px}
.shareHero.send .secondary{width:100%;margin-top:10px;background:#fffdf8}
.send-more{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-top:10px;font-size:14px;color:#3d2d1f}
.send-more.open{background:#fffdf8;border-radius:14px;padding:6px 12px;border:1px solid #e0a473}
.send-more .linkbtn{color:#24231f}
/* ---- v0.7: results insight + share score ---- */
.result .insight{font-family:Georgia,serif;font-size:21px;line-height:1.3;margin:4px 0 14px;letter-spacing:-.2px}
.result .score-share{background:#fffdf8;margin-bottom:12px;min-height:46px}
.shareHero.send .send-more .linkbtn{width:auto;display:inline-flex;align-items:center;margin:0;padding:0 4px;background:none;border:0;min-height:44px;font-weight:700}
/* ---- v0.7.1: guesser tells the challenger ---- */
.result .tell-btn{width:100%;margin-top:4px}
.result .send-more .linkbtn{width:auto;display:inline-flex;align-items:center;margin:0;padding:0 4px;background:none;border:0;min-height:44px;font-weight:700;color:#24231f}
.result .send-more{color:#3d4b4e}
/* ---- v0.8: None of these fit me ---- */
.choice.nofit{background:transparent;border:1.5px dashed #b9b0a3;color:var(--muted);font-weight:600}
.choice.nofit:hover{border-color:#24231f;color:var(--ink);background:#fffdf8}
.nofit-box{background:var(--card);border:2px solid #24231f;border-radius:16px;padding:16px;margin:10px 0}
.nofit-box label{display:block;font-weight:700;margin-bottom:8px}
.nofit-box .mini{margin:8px 0 12px}
.nofit-box .primary{width:100%}
.nofit-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin-top:6px}
/* ---- v0.8.1: compact "who are you challenging" with the button always in reach ---- */
.h-compact{font-size:clamp(34px,8vw,48px);margin:8px 0 16px}
.rel-chips{display:flex;flex-wrap:wrap;gap:8px}
.rel-chips button{padding:0 14px;min-height:44px;border-radius:99px;font-weight:650;font-size:15px;flex:0 0 auto}
.rel-chips button:last-child:nth-child(odd){grid-column:auto}
.name-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.name-row label{display:block;font-weight:700;font-size:14px;margin-bottom:6px}
.name-row label span{font-weight:400;color:var(--muted);font-size:12px}
.challenge-hero.compact{padding:18px 20px;margin:18px 0 8px}
.challenge-hero.compact h2{font-size:clamp(26px,6.5vw,34px);margin:6px 0}
.challenge-hero.compact .mini{margin:0;color:#3d2d1f}
.sticky-cta{position:sticky;bottom:0;z-index:3;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:linear-gradient(rgba(245,240,232,0),var(--paper) 35%)}
.sticky-cta .primary{width:100%;font-size:18px;min-height:56px;box-shadow:0 6px 18px rgba(36,35,31,.18)}
.q-actions{justify-content:space-between}
/* ---- v1.1: head-to-head + your turn under the score; 2-step landing ---- */
.steps.two{grid-template-columns:1fr 1fr;margin:6px 0 16px}
.steps.two li:nth-child(1)::after{right:calc(-50% + 12px)}
.yourturn{margin-top:14px}
.yourturn .primary{width:100%}
.h2h{display:flex;align-items:center;justify-content:center;gap:14px;font-family:Georgia,serif;font-size:26px;margin:0 0 6px}
.h2h b{font-family:ui-sans-serif,system-ui,sans-serif;font-size:14px;letter-spacing:.5px;display:block;text-align:center}
.h2h .vs{font-size:14px;opacity:.7}
.yourturn .send-more{justify-content:space-between}
.yourturn .send-more .linkbtn{width:auto;display:inline-flex;align-items:center;min-height:44px;padding:0 2px;background:none;border:0;font-weight:700;color:#24231f}
/* Reverse-challenge card (light, one dominant action, quiet secondaries) */
.turn-card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px 20px 18px;margin:18px 0 26px;box-shadow:0 10px 26px rgba(36,35,31,.07)}
.turn-card .tiny{color:var(--muted)}
.turn-card h2{font-family:Georgia,serif;font-size:clamp(28px,7.5vw,36px);line-height:1.1;margin:8px 0 8px;letter-spacing:-.2px}
.turn-sub{margin:0 0 18px;color:var(--muted);font-size:16px;line-height:1.5}
.turn-score{display:flex;align-items:center;justify-content:center;gap:16px;font-family:Georgia,serif;font-size:24px;padding:12px 16px;margin:0 0 20px;border-radius:16px;background:var(--paper)}
.turn-score b{display:block;font-family:ui-sans-serif,system-ui,sans-serif;font-size:12px;font-weight:700;letter-spacing:.5px;text-align:center;color:var(--muted);margin-bottom:2px}
.turn-score .vs{font-size:13px;opacity:.7}
.turn-cta{display:block;width:100%;min-height:56px;margin:0;font-size:17px;box-shadow:none}
.turn-else{display:block;width:100%;min-height:48px;margin:6px 0 0;padding:0;font-size:15px;text-align:center;justify-content:center;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.turn-more{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 14px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-size:13px}
.turn-more .linkbtn{width:auto;min-height:44px;margin:0;padding:0 4px;font-size:13px;font-weight:600;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.turn-more .tell-btn{width:auto;margin:0}
.turn-foot{font-size:12px;color:var(--muted);text-align:center;margin:10px 0 0;line-height:1.45}
@media (max-width:360px){.turn-card{padding:18px 16px 16px}.turn-score{font-size:21px;gap:12px}.turn-cta{font-size:16px}}
/* ---- owner: who challenged whom ---- */
.spread{list-style:none;margin:8px 0 0;padding:0}
.spread li{padding:8px 0;border-top:1px solid var(--line);line-height:1.4;min-height:28px}
.spread li.root{margin-top:8px;border-top:2px solid var(--ink)}
/* ---- sticky "your turn" bar on the guesser's reveal + "who else" nudge ---- */
.sticky-cta.duo{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
.sticky-cta.duo .primary,.sticky-cta.duo .secondary{width:100%;min-height:52px;font-size:15px;padding:0 10px;box-shadow:0 6px 18px rgba(36,35,31,.18)}
.sticky-cta.duo .secondary{background:#fffdf8}
@media(max-width:360px){.sticky-cta.duo .primary,.sticky-cta.duo .secondary{font-size:14px}}
.nudge{margin-top:22px;padding:16px;border:1px dashed #b9b0a3;border-radius:16px}
.loop-card{margin-top:22px;padding:16px;border:1px solid #d8d0c4;border-radius:16px;background:#fffdf8}
.loop-card h2{margin:6px 0 10px;font-size:20px}
.loop-row{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:8px 0;border-top:1px solid #eee7dc;font-size:15px}
.loop-row:first-of-type{border-top:0}
.loop-row strong{white-space:nowrap}
@media(max-width:500px){h1{font-size:40px;margin:8px 0 14px}.tile{min-height:120px;padding:15px}.tile .symbol{font-size:28px;margin-bottom:8px}.tile strong{font-size:20px}.tile small{font-size:12px}.tiles{gap:10px;margin:16px 0}}

/* Homepage challenge selection (premium) */
.home-hero { margin-top: 6px; }
.home-hero h1 { font-size: clamp(40px, 9vw, 60px); margin: 10px 0 14px; }
.home-hero .lede { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 30em; }
.mode-cards { display: grid; gap: 12px; }
.mode-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  width: 100%; min-height: 96px; padding: 18px 18px 18px 16px; text-align: left; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(36,35,31,.04), 0 10px 24px -18px rgba(36,35,31,.45);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
@media (hover: hover) { .mode-card:hover { border-color: #c27d50; box-shadow: 0 1px 0 rgba(36,35,31,.04), 0 14px 28px -18px rgba(36,35,31,.5); } }
.mode-card:active { transform: scale(.985); background: #fff8ee; border-color: #c27d50; }
.mode-card:focus-visible { outline: 3px solid #27758b; outline-offset: 3px; }
.mc-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #f7e4d6; color: #9c4f2a;
}
.mc-body { display: grid; gap: 4px; min-width: 0; }
.mc-body strong { font-family: Georgia, serif; font-size: 21px; letter-spacing: -.4px; line-height: 1.15; }
.mc-body > span { font-size: 15px; line-height: 1.4; color: var(--muted); }
.mc-arrow { font-size: 20px; color: var(--ink); opacity: .55; transition: transform .18s ease, opacity .18s ease; }
.mode-card:active .mc-arrow { transform: translateX(3px); opacity: 1; }
.solo-card {
  display: grid; gap: 2px; width: 100%; margin-top: 14px; padding: 14px 18px; text-align: center;
  background: transparent; color: var(--ink); border: 1px dashed #bdb5a8; border-radius: 18px;
}
.solo-card strong { font-size: 16px; }
.solo-card span { font-size: 14px; color: var(--muted); }
.solo-card:active { border-color: var(--ink); }
.solo-card:focus-visible { outline: 3px solid #27758b; outline-offset: 3px; }
.reassure { text-align: center; font-size: 13px; color: var(--muted); margin: 18px 0 8px; letter-spacing: .2px; }
.mode-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 12px; background: #f3efe6; margin: 14px 0 4px; font-size: 15px;
}
@media (max-width: 400px) {
  .ornament .mark { width: 72px; height: 54px; }
  .home-hero h1 { font-size: 38px; margin: 6px 0 10px; }
  .home-hero .lede { font-size: 16px; margin-bottom: 18px; }
  .mode-cards { gap: 10px; }
  .mode-card { grid-template-columns: auto 1fr auto; gap: 12px; min-height: 0; padding: 14px 12px 14px 14px; border-radius: 20px; }
  .mc-icon { width: 42px; height: 42px; }
  .mc-body { gap: 2px; }
  .mc-body strong { font-size: 19px; }
  .mc-body > span { font-size: 14px; line-height: 1.35; }
  .solo-card { margin-top: 10px; padding: 11px 16px; }
  .reassure { margin: 12px 0 4px; }
}
@media (min-width: 560px) {
  .mode-cards { grid-template-columns: 1fr 1fr; }
  .mode-card { grid-template-columns: 1fr; align-items: start; gap: 14px; min-height: 210px; padding: 22px; }
  .mc-arrow { display: none; }
  .mc-body > span { font-size: 16px; }
}

/* Header: My challenges (homepage only) */
header{align-items:center}
.hdr-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 13px;border-radius:100px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:13px;font-weight:600}
.hdr-link svg{color:#9c4f2a;flex:0 0 auto}
/* Share screen: lede, dominant primary, one-time emphasis */
.share-lede{font-size:17px;color:var(--muted);margin:0 0 18px;line-height:1.5}
.share-primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:60px;font-size:18px;box-shadow:0 10px 22px -14px rgba(36,35,31,.7)}
.share-primary.attn{animation:hhAttn .8s ease-out 1 both}
@keyframes hhAttn{0%{transform:scale(1);box-shadow:0 12px 22px -14px rgba(36,35,31,.7),0 0 0 0 rgba(255,253,248,0)}35%{transform:scale(1.06);box-shadow:0 18px 30px -12px rgba(36,35,31,.75),0 0 0 7px rgba(255,253,248,.7)}100%{transform:scale(1);box-shadow:0 12px 22px -14px rgba(36,35,31,.7),0 0 0 0 rgba(255,253,248,0)}}
/* Create stage: a one-time entrance for the CTA itself (does not imply a link exists) */
@keyframes hhEnter{0%{transform:translateY(6px) scale(.97);opacity:.4}100%{transform:none;opacity:1}}
.cta-enter{animation:hhEnter .55s ease-out 1 both}
@media (prefers-reduced-motion: reduce){.share-primary.attn,.cta-enter{animation:none}}
.new-pill{display:inline-block;margin-right:8px;padding:3px 9px;border-radius:99px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#24231f;background:#f4a261;vertical-align:middle}
@keyframes hhNudge{0%{box-shadow:0 10px 18px -14px rgba(36,35,31,.55)}40%{box-shadow:0 0 0 5px rgba(244,162,97,.45),0 10px 18px -14px rgba(36,35,31,.55)}100%{box-shadow:0 10px 18px -14px rgba(36,35,31,.55)}}
.pick-grid button.pick-hint{animation:hhNudge 1.2s ease-out 1 both}
@media (prefers-reduced-motion: reduce){.pick-grid button.pick-hint{animation:none}}

/* ---- answer screen: Back and Skip stay on screen without scrolling ---- */
.q-actions{margin:20px 0 0;padding-bottom:calc(12px + env(safe-area-inset-bottom))}

button.logo{background:none;padding:0;color:inherit;text-align:left}

/* Situational categories homepage (Stage 2): compact selections, 44px+ tap targets, two columns down to 360px. */
.home-step{margin-top:18px}
.home-step>.tiny{margin-bottom:8px}
.mode-pair,.cat-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mode-chip,.cat-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:64px;padding:12px 14px;border:1.5px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);text-align:left;font:inherit;cursor:pointer;min-width:0}
.mode-chip span,.cat-tile small{font-size:12px;color:var(--muted);line-height:1.3}
.mode-chip.on,.cat-tile.on{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink) inset}
.cat-tile{min-height:112px;justify-content:space-between}
.cat-emoji{font-size:20px;line-height:1}
.start-challenge{width:100%;margin-top:20px;min-height:52px}
.start-challenge[disabled]{opacity:.45;cursor:not-allowed}
.home-hint{text-align:center;margin:8px 0 0}
.guide-line{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:var(--card);border:1px solid var(--line)}
@media (max-width:360px){.cat-tile{min-height:100px}.mode-chip,.cat-tile{padding:10px 12px}}

/* Universal link homepage: shorter hero on phones. */
.home-hero h1{font-size:clamp(28px,8vw,34px);line-height:1.1;margin:4px 0 8px}
.home-hero .lede{font-size:15px;line-height:1.45;margin:0 0 14px}

/* Share screen: one gap between actions (the primary's shadow otherwise touches the next button) */
.share-actions{display:grid;gap:14px;margin-top:4px}
.share-actions .share-primary{margin:0}
.share-actions .secondary{width:100%;min-height:50px;margin:0;background:#fffdf8;border:1px solid var(--ink);font-size:16px}
/* Visual hint only: decorative line icons, not buttons, so they cannot collide with tap targets */
.challenge-hero.share-panel{background:linear-gradient(180deg,#f8c48f 0%,#f2a064 100%)}
.share-panel p{text-align:center}
.share-hint{margin:0 0 18px}
.share-hint-title{display:flex;align-items:center;gap:12px;color:#3d2010;font-family:Georgia,'Times New Roman',serif}
.share-hint-title::before,.share-hint-title::after{content:"";flex:1;height:1px;background:rgba(61,32,16,.45)}
.share-hint-title em{font-size:clamp(19px,5.4vw,24px);font-weight:400;line-height:1.2;white-space:nowrap}
.share-hint-list{display:flex;flex-wrap:wrap;justify-content:space-evenly;row-gap:14px;margin-top:14px}
.share-hint-item{position:relative;flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 10px;color:#24231f;font-family:Georgia,'Times New Roman',serif;font-size:clamp(11.5px,3.2vw,14px);line-height:1.15;text-align:center}
.share-hint-item+.share-hint-item::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:rgba(61,32,16,.35)}
.share-hint-item svg{width:30px;height:30px;fill:none;stroke:#24231f;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.share-hint-item b{font-weight:400;white-space:nowrap}

/* Homepage category tiles: pastel, icon-led, no photos */
.cat-tile{min-height:128px;padding:16px;gap:0;justify-content:space-between;border:0;border-radius:18px;color:#24231f;box-shadow:0 1px 0 rgba(255,255,255,.5) inset}
.cat-tile strong{font-size:17px;line-height:1.25;font-weight:600}
.cat-tile.on{box-shadow:0 0 0 2px #24231f inset}
.cat-icon{display:block}
.cat-icon svg{width:28px;height:28px;fill:none;stroke:#4a3b30;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:360px){.cat-tile{min-height:116px;padding:14px}.cat-tile strong{font-size:16px}}

/* Homepage: compact outlined pill for custom questions, tagline beneath */
.custom-wrap{display:flex;justify-content:center;margin:20px 0 0}
.custom-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-height:44px;padding:8px 18px;border:1px solid #d6cdbf;border-radius:999px;background:transparent;color:var(--ink);font:inherit;font-size:15px;font-weight:600;line-height:1.25;text-align:center;text-wrap:balance;cursor:pointer}
.custom-pill svg{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:#b0622f;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.custom-pill .arrow{color:#b0622f;font-weight:400}
.custom-wrap + .reassure{margin:12px 0 8px}

/* Header lockup: the Human Hunch mark beside the wordmark (same geometry as the in-app mark) */
header .logo{display:inline-flex;align-items:center;gap:8px;min-width:0}
header .logo-mark{width:30px;height:auto;flex:0 0 auto;display:block}
header .logo-word{min-width:0}
@media(max-width:360px){header .logo-mark{width:26px}header .logo{gap:6px}}

/* Homepage: the header mark is the only logo here; the kicker sits directly under the header */
.home-kicker{margin:14px 0 0}
/* The "Who knows you best?" hint is decorative, so it shows at the name step too (it used to leave a blank space). */
.result-note.pending{visibility:hidden}
.legal .back-home{margin:26px 0 0}.legal .back-home a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid var(--ink);border-radius:100px;color:var(--ink);text-decoration:none;font-weight:600;font-size:14px}.legal .back-home a:hover{background:var(--ink);color:var(--paper)}.legal-nav a:hover{color:var(--ink)}
.crow-group{display:block;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin:10px 0}.crow-group summary{list-style:none;cursor:pointer}.crow-group summary::-webkit-details-marker{display:none}.crow-kids{list-style:none;padding:0;margin:10px 0 0}.crow-kid{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:14px}.crow-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.crow-tools .field{flex:1;min-width:0;font-size:14px}

/* First-visit welcome / 18+ gate */
.welcome h1{font-size:clamp(34px,9vw,46px);margin:0 0 6px}
.welcome-accent{font-family:Georgia,serif;font-size:clamp(28px,7.5vw,38px);letter-spacing:-1px;line-height:1.1;color:#b0622f;margin:0 0 14px}
.welcome-lede{font-size:17px;color:var(--muted);margin:0 0 18px}
.welcome-chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0 0 20px}
.welcome-chips li{background:#f7e4d6;color:#3d2d1f;border-radius:99px;padding:8px 14px;font-size:13px;font-weight:600}
.welcome-gate{padding:18px 20px}
.welcome-gate .check{margin:0 0 14px;font-size:17px;align-items:center}
.welcome-gate .primary{width:100%;font-size:17px}
.welcome-gate .primary:disabled{background:#bdb5a8;color:#fffdf8;cursor:not-allowed}
.welcome-restore{margin-top:14px;text-align:center}
.welcome-restore>summary{list-style:none;display:inline-flex;align-items:center;min-height:44px;cursor:pointer;color:var(--muted);font-size:13px;text-decoration:underline;text-underline-offset:3px}
.welcome-restore>summary::-webkit-details-marker{display:none}
.welcome-restore>summary:focus-visible{outline:3px solid #27758b;outline-offset:3px;border-radius:6px}
.welcome-restore .feature{text-align:left;margin-top:8px}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Challenge back momentum */
.turn-hint{margin:8px 0 0;text-align:center;color:var(--muted)}
.turn-banner{margin:10px 0 0;color:#b0622f;font-weight:600}

/* Teen mode: age picker (shown only when TEEN_ACCESS is on) */
.agepick{margin:0 0 14px}.agepick-q{font-weight:700;font-size:17px;margin:0 0 10px}.agepick .pills{gap:8px}.agepick .pill{min-height:46px;font-weight:650;font-size:15px}.agepick-msg{margin:10px 0 0;min-height:1em;color:#9a4a22}
.agepick-note{margin:10px 0 0;font-size:12px;color:var(--muted);line-height:1.45}.agepick-note a{color:inherit}
.qtop-back{display:inline-flex;align-items:center;min-height:40px;margin:-6px 0 8px;font-size:14px;color:var(--muted)}

/* Premium text actions (2026-11-15): no underlines anywhere. Quiet pill buttons with a soft tint on press. */
.linkbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 16px;min-height:44px;border:0;border-radius:999px;background:rgba(36,35,31,.05);color:var(--ink);font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;transition:background .15s ease}
.linkbtn:hover{background:rgba(36,35,31,.09)}.linkbtn:active{background:rgba(36,35,31,.13)}
.linkbtn:focus-visible{outline:2px solid #b0622f;outline-offset:2px}
.turn-else{display:flex;width:100%;min-height:50px;margin:10px 0 0;padding:0 18px;border:1px solid #d6cdbf;background:transparent;font-size:15px;text-decoration:none}
.turn-else:hover{border-color:var(--ink);background:transparent}
.turn-more{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.turn-more .linkbtn{padding:0 14px;font-size:13px;color:var(--ink);text-decoration:none}
footer a,footer button.linkbtn,.legal-nav a{color:var(--muted);text-decoration:none;background:none;border-radius:0;padding:0;min-height:0;font-weight:500;transition:color .15s ease}
footer a:hover,footer button.linkbtn:hover,.legal-nav a:hover{color:var(--ink);background:none}
.legal-nav a{padding:6px 0;min-height:32px}
.welcome-restore>summary{text-decoration:none}
footer a,footer button.linkbtn{color:#4a463f;font-weight:600}

/* ---- Site footer: public content pages only (src/footer.js). The game keeps its own footer. ---- */
.site-footer{--sf-bg:#1f1d1a;--sf-ink:#f4ede1;--sf-muted:#cbbfac;--sf-accent:#e0915c;background:var(--sf-bg);color:var(--sf-ink);margin:0;border:0;padding:36px 20px calc(28px + env(safe-area-inset-bottom));font-size:15px;border-top:3px solid var(--sf-accent)}
.legal{padding-bottom:48px}
.sf-inner{max-width:660px;margin:0 auto}
.sf-logo{display:inline-flex;align-items:center;gap:10px;color:var(--sf-ink);text-decoration:none;min-height:44px}
.sf-mark{width:40px;height:30px;flex:none}
.sf-word{font-family:Georgia,'Times New Roman',serif;font-size:27px;letter-spacing:-1.3px;line-height:1}
.sf-dot{color:var(--sf-accent)}
.sf-tag{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:21px;line-height:1.3;margin:12px 0 4px;color:var(--sf-ink);text-wrap:balance}
.sf-sub{margin:0;color:var(--sf-muted);font-size:15px;line-height:1.5}
.sf-cols{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:'play about' 'play legal';gap:22px 20px;margin:26px 0 0;padding:24px 0 0;border-top:1px solid rgba(244,237,225,.14)}
.sf-h{margin:0 0 8px;font-size:11.5px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--sf-accent)}
.sf-col ul{list-style:none;margin:0;padding:0}
.sf-col li{margin:0}
.sf-col:nth-child(1){grid-area:play}.sf-col:nth-child(2){grid-area:about}.sf-col:nth-child(3){grid-area:legal}
.sf-col a{display:inline-flex;align-items:center;min-height:36px;color:var(--sf-ink);text-decoration:none;font-size:15px;font-weight:500;line-height:1.3}
.sf-col a:hover{color:var(--sf-accent)}
.sf-col a[aria-current=page]{color:var(--sf-ink);font-weight:700;text-decoration:underline;text-decoration-color:var(--sf-accent);text-decoration-thickness:2px;text-underline-offset:5px}
.site-footer a:focus-visible{outline:2px solid var(--sf-accent);outline-offset:3px;border-radius:4px}
.sf-base{margin:24px 0 0;padding-top:16px;border-top:1px solid rgba(244,237,225,.14);font-size:12.5px;color:var(--sf-muted)}
@media(min-width:720px){.sf-inner{display:grid;grid-template-columns:1fr 1.5fr;gap:0 48px;max-width:940px}.sf-h{white-space:nowrap}.sf-col a{white-space:nowrap}.sf-cols{grid-template-columns:repeat(3,1fr);grid-template-areas:'play about legal';margin:0;padding:6px 0 0;border:0}.sf-base{grid-column:1/-1}}
/* Mobile: tighter vertical rhythm (desktop unchanged). */
@media(max-width:719px){.site-footer{padding-top:28px;padding-bottom:calc(22px + env(safe-area-inset-bottom))}.sf-logo{min-height:40px}.sf-tag{margin-top:8px}.sf-cols{gap:12px 20px;margin-top:18px;padding-top:16px}.sf-h{margin-bottom:4px}.sf-col a{min-height:32px}.sf-base{margin-top:18px;padding-top:12px}}
/* Homepage: the no-JS intro in index.html (for search engines and visitors without JavaScript) stays hidden
   for the first second, so people with JavaScript go straight to the game without a flash of it.
   It is never removed from the page, and appears normally if the game hasn't loaded by then. */
#app > .home-hero:only-child{animation:hh-intro-in .25s ease-out 1s both}
@keyframes hh-intro-in{from{opacity:0}to{opacity:1}}
/* Game page footer (same shared footer + a notes row with the age note and "Your data & this device"). */
.sf-notes{margin:20px 0 0;padding-top:16px;border-top:1px solid rgba(244,237,225,.14);font-size:12.5px;line-height:1.7;color:var(--sf-muted)}
.site-footer .sf-notes .linkbtn{display:inline-flex;align-items:center;min-height:32px;padding:0;color:var(--sf-ink);font-size:12.5px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.site-footer .sf-notes .linkbtn:hover{color:var(--sf-accent)}
.site-footer .linkbtn:focus-visible{outline:2px solid var(--sf-accent);outline-offset:3px;border-radius:4px}
@media(min-width:720px){.sf-notes{grid-column:1/-1}}
/* During play (answering, guessing, creating or opening a challenge) the footer shrinks to the notes and one row of links. */
.in-play .sf-game{padding:18px 20px calc(16px + env(safe-area-inset-bottom));border-top-width:2px}
.in-play .sf-game :is(.sf-tag,.sf-sub,.sf-h,.sf-base){display:none}
.in-play .sf-game .sf-logo{min-height:36px;gap:8px;margin-bottom:4px}.in-play .sf-game .sf-mark{width:30px;height:22px}.in-play .sf-game .sf-word{font-size:21px;letter-spacing:-1px}
.in-play .sf-game .sf-inner{display:block}
.in-play .sf-game .sf-cols,.in-play .sf-game .sf-col ul{display:flex;flex-wrap:wrap;gap:0 16px;margin:0;padding:0;border:0}
.in-play .sf-game .sf-col a{min-height:32px;font-size:13px;color:var(--sf-muted)}
.in-play .sf-game .sf-notes{margin:8px 0 0;padding-top:10px}
/* Game page: keep the footer below the first screen while the game loads and between screens,
   so it doesn't appear mid-page and then jump down. */
main.game{min-height:100vh;min-height:100svh}

/* Group Reveal & Rematch (creator's group results screen) */
.greveal{background:var(--card);border:1px solid var(--line);border-radius:24px;padding:22px;margin:4px 0 18px;box-shadow:0 22px 36px -30px rgba(36,35,31,.55)}
.greveal h2{font-size:clamp(27px,6.4vw,36px);margin:8px 0 16px}
.greveal.soon p{margin:8px 0 0}
.greveal-stats{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:8px;margin:0 0 16px}
.greveal-stats>div{background:var(--paper);border-radius:16px;padding:12px 10px;min-width:0}
.greveal-stats b{display:block;font-family:Georgia,serif;font-size:26px;letter-spacing:-.5px;line-height:1.1;overflow-wrap:anywhere}
.greveal-stats .best b{font-size:19px;line-height:1.2}
.greveal-stats span{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.3}
.greveal-meter{height:12px;background:#e0d9ce;border-radius:20px;overflow:hidden}
.greveal-meter div{height:100%;background:linear-gradient(90deg,#f4a261,#d27943);border-radius:20px}
.greveal .mini{margin:10px 0 0}
.challenge-hero.rematch h2{margin-top:0}
.wa-btn{border-color:#1f8f5f;color:#176b47}
@media(max-width:400px){.greveal-stats{grid-template-columns:1fr 1fr}.greveal-stats .best{grid-column:1/-1}}
.greveal-share{width:100%;margin-top:16px}
.greveal-note{margin:8px 0 0!important;font-size:12.5px}
.crow-group summary:has(.crow-reveal){display:flex;align-items:center;gap:10px}
.crow-reveal{flex:none;padding:10px 14px;font-size:14px;min-height:44px}
.crow-round{color:var(--ink);font-weight:800}
/* Deep-link loading state (served on /c, /me, /today in place of the homepage intro).
   Hidden for the first 350ms so quick loads go straight to the real screen. */
.boot{display:flex;flex-direction:column;align-items:center;gap:14px;padding:72px 0 40px;text-align:center;color:var(--muted);opacity:0;animation:boot-in .25s ease .35s forwards}
.boot-label{font-size:15px}
.boot-dots{display:flex;gap:8px}
.boot-dots i{width:10px;height:10px;border-radius:50%;background:#d2804b;animation:boot-dot 1.1s ease-in-out infinite}
.boot-dots i:nth-child(2){animation-delay:.15s}.boot-dots i:nth-child(3){animation-delay:.3s}
.boot-nojs{color:var(--ink);font-size:15px;max-width:24em}
@keyframes boot-in{to{opacity:1}}
@keyframes boot-dot{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.boot{animation:none;opacity:1}.boot-dots i{animation:none;opacity:.6}}

/* Homepage refinement (2026-11-21): same layout and brand; richer tile tones, a clearer invitation, tighter rhythm.
   Terracotta #E66D49 is used only for accents (arrows, hover ring); text in that family uses the darker #A8452A
   so it keeps at least 4.5:1 contrast on the cream background. */
.home-kicker{margin:2px 0 0;color:#A8452A;font-weight:700}
.home-hero h1{margin:6px 0 8px}
.home-step{margin-top:12px}
.home-step>.tiny{margin-bottom:10px;color:var(--ink);font-weight:700}
.cat-tile{position:relative;min-height:104px;padding:14px 16px;transition:transform .15s ease,box-shadow .15s ease}
.cat-icon svg{stroke:#A8452A}
.cat-go{position:absolute;top:12px;right:14px;font-size:18px;line-height:1;color:#E66D49;transition:transform .15s ease}
@media (hover:hover){
  .cat-tile:hover{transform:translateY(-2px);box-shadow:0 0 0 1.5px #E66D49 inset,0 8px 16px -12px rgba(36,35,31,.45)}
  .cat-tile:hover .cat-go{transform:translateX(3px)}
}
.cat-tile:active{transform:translateY(0) scale(.98);box-shadow:0 0 0 2px #E66D49 inset}
.cat-tile:focus-visible{outline:3px solid #27758b;outline-offset:3px}
@media (max-width:360px){.cat-tile{min-height:96px;padding:12px 14px}.cat-go{top:10px;right:12px}}
@media (prefers-reduced-motion:reduce){.cat-tile,.cat-tile:hover,.cat-tile:active,.cat-tile:hover .cat-go{transform:none}}

/* Category cards, bold palette (2026-11-21, owner): one solid color per category, no gradients.
   Text, icon and arrow share one color per tile, chosen by contrast (all at least 5.5:1, normal-size text):
   ink #1C1814 on Everyday Tells 5.8, How You Show Up 8.3, Your Soft Spots 7.0;
   white on Picky, Picky 5.9, How You Handle Drama 5.5, Who's Got This? 6.4.
   Hover, press and selected rings use currentColor so they always match the tile's text. */
body:has(.home-hero){background:#F6F2E9}
.cat-tile{border:0;box-shadow:none;color:#1C1814}
.cat-tile .cat-icon svg{stroke:currentColor}
.cat-tile .cat-go{color:currentColor}
.cat-tile[data-arg="habits"]{background:#F26A49;color:#1C1814}
.cat-tile[data-arg="prefs"]{background:#176F71;color:#fff}
.cat-tile[data-arg="comm"]{background:#4B65B2;color:#fff}
.cat-tile[data-arg="social"]{background:#D9AA51;color:#1C1814}
.cat-tile[data-arg="decide"]{background:#795080;color:#fff}
.cat-tile[data-arg="affect"]{background:#DD8E92;color:#1C1814}
@media (hover:hover){.cat-tile:hover{box-shadow:0 0 0 2px currentColor inset,0 10px 18px -12px rgba(28,24,20,.55)}}
.cat-tile:active{box-shadow:0 0 0 2px currentColor inset}
.cat-tile.on{box-shadow:0 0 0 3px currentColor inset}

/* Footer refinement (2026-11-21, owner): same charcoal footer, logo, links, legal line and terracotta divider.
   Tagline in clean, confident sans-serif instead of large italic serif; contrast #f4ede1 on #1f1d1a is 15:1, sub line #cbbfac 10:1. */
.site-footer .sf-tag{font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;font-style:normal;font-weight:700;font-size:19px;line-height:1.3;letter-spacing:-.2px;margin:14px 0 4px}
@media(max-width:360px){.site-footer .sf-tag{font-size:18px}}
/* Homepage only: the game page is at least one screen tall, which left a large empty band above the footer on phones.
   On the homepage the footer now follows the content with a fixed, smaller gap, and grows to fill any leftover
   height so no cream shows beneath it. Play screens keep their full-height layout. */
body:has(main .cat-tiles)>main.game{min-height:0;padding-bottom:48px}
/* Footer keeps its natural height; on an unusually tall screen the page background below it is the footer's charcoal. */
html:has(main .cat-tiles){background:#1f1d1a}
/* Cover the sub-pixel seam where the footer meets that background at fractional zoom (phone "desktop site" mode). */
body:has(main .cat-tiles)>.site-footer{box-shadow:0 2px 0 #1f1d1a}

/* Wide screens (2026-11-21): the footer lines up with the 660px page column instead of spreading to 940px.
   Logo and tagline on top, the three link columns side by side underneath. Phones (under 720px) unchanged. */
@media(min-width:720px){
  .site-footer .sf-inner{display:block;max-width:620px}
  .site-footer .sf-cols{grid-template-columns:repeat(3,1fr);grid-template-areas:'play about legal';gap:0 24px;margin:24px 0 0;padding:20px 0 0;border-top:1px solid rgba(244,237,225,.14)}
}

/* Toasts wrap inside the screen instead of running off both edges (long messages were cut off on phones). */
#toast{white-space:normal;width:max-content;max-width:calc(100vw - 32px);text-align:center;line-height:1.4;border-radius:18px;border:1px solid rgba(255,255,255,.22);box-shadow:0 10px 24px -10px rgba(0,0,0,.45)}

/* Question screen category header (2026-12-01): says plainly which category this is, in the category's own bold color.
   One line with the progress counter, so it adds no height. Text colors match the homepage tiles (all ≥ 5.5:1). */
.q-head{gap:12px}
.q-cat{display:inline-flex;align-items:baseline;gap:8px;margin:0;min-width:0;padding:7px 13px 7px 12px;border-radius:100px;background:#e4ded2;color:#1C1814;line-height:1.2}
.q-cat .q-cat-k{font-size:10px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;opacity:.78;flex:none}
.q-cat strong{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-cat="habits"]{--cat:#F26A49;--cat-ink:#1C1814}
[data-cat="prefs"]{--cat:#176F71;--cat-ink:#fff}
[data-cat="comm"]{--cat:#4B65B2;--cat-ink:#fff}
[data-cat="social"]{--cat:#D9AA51;--cat-ink:#1C1814}
[data-cat="decide"]{--cat:#795080;--cat-ink:#fff}
[data-cat="affect"]{--cat:#DD8E92;--cat-ink:#1C1814}
.q-cat[data-cat]{background:var(--cat);color:var(--cat-ink)}
.q-head .tiny{flex:none}

/* Skip limit (2026-12-01): replaces the old toast. Inline, below the choices, so the question stays in view. */
.skip-limit{margin:6px 0 0;padding:20px;border-radius:20px;background:#1f1d1a;color:#f4ede1}
.skip-limit .sl-k{margin:0;font-size:11px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase;color:#f2a07f}
.skip-limit h3{font-family:Georgia,serif;font-size:24px;letter-spacing:-.6px;line-height:1.15;margin:6px 0 6px;font-weight:400}
.skip-limit .sl-sub{margin:0 0 16px;font-size:14px;color:#cbbfac;line-height:1.45}
.sl-actions{display:flex;gap:10px;flex-wrap:wrap}
.sl-actions .primary{background:#f4ede1;color:#1f1d1a;flex:1 1 160px}
.sl-actions .primary:hover{background:#fff}
.sl-actions .secondary{border-color:#f4ede1;color:#f4ede1;flex:1 1 160px;min-height:52px}
.sl-cats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sl-cat{min-height:56px;padding:12px 14px;border-radius:14px;text-align:left;font-weight:700;font-size:15px;line-height:1.25;background:var(--cat,#e4ded2);color:var(--cat-ink,#1C1814)}
@media (hover:hover){.sl-cat:hover{box-shadow:0 0 0 2px currentColor inset}}
.sl-cat:active{transform:scale(.98)}
.skip-limit .sl-back{display:block;width:100%;margin-top:10px;color:#f4ede1;text-decoration:none;font-weight:600;text-align:center}
.skip-limit button:focus-visible{outline:3px solid #f2a07f;outline-offset:3px}
@media (max-width:340px){.sl-cats{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.sl-cat:active{transform:none}}
/* Remaining skips sit inside the Skip button, quieter than its label. */
.skipbtn .skips-left{font-weight:500;color:var(--muted)}
.q-actions{align-items:center}
/* Saved round on the category home (2026-12-01): one compact card above the tiles. */
.resume-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px;padding:12px 14px;border-radius:16px;background:var(--card);border:1px solid var(--line);font-size:14px}
.resume-note .secondary{padding:10px 16px;min-height:44px;font-size:14px}
/* Question buttons on phones (2026-12-01, owner): "Back" and "Skip question · N left" no longer wrap into two
   lines of different widths. Below 600px they stack, full width and the same size; wider screens keep one row. */
@media (max-width:599px){
  .q-actions{flex-direction:column;align-items:stretch;gap:10px}
  .q-actions .backbtn{width:100%;text-align:center}
}
/* Analytics prompt (2026-12, Google Analytics, adults only). Small bar at the bottom; two equal buttons, no pre-ticked choice. */
.consent{position:fixed;left:12px;right:12px;bottom:12px;z-index:50;max-width:560px;margin:0 auto;padding:14px 16px;border-radius:18px;background:var(--card,#fffdf8);border:1px solid var(--line,#e4ded2);box-shadow:0 8px 28px rgba(36,35,31,.16);font-size:14px;line-height:1.4}
.consent p{margin:0 0 10px}
.consent a{color:var(--ink,#24231f);font-weight:600}
.consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.consent-actions button{min-height:44px;margin:0;width:100%}
body.has-consent{padding-bottom:170px}
