/* Fluffy's Cosmic Mind Journey. Always the dark cosmic LivesWispear sky, whatever the site theme.
   The one bold thing is the constellation around Fluffy; everything else stays quiet and readable. */
@property --hue1 { syntax: '<color>'; inherits: true; initial-value: #2A1D6B; }
@property --hue2 { syntax: '<color>'; inherits: true; initial-value: #6B2D5C; }
:root { color-scheme: dark; }
html { background: #000; }
body.journey {
  --act: #7B4DFF; --act-h: #8E66FF; --act-p: #6A3BF0;
  --gold: #F7C64F; --gold2: #FFE7A3; --gold3: #D6952A; --spark: #F0A57E;
  --cyan: #6FD8FF; --violet: #B07CFF; --pink: #FF6FD0; --urgent: #D93A40; --urgent-h: #E5484D;
  --t1: #FFFFFF; --t2: #CFCBE0; --t3: #A29EBA;
  --line: rgba(255, 255, 255, .12); --line2: rgba(255, 255, 255, .22);
  --glass: rgba(13, 10, 30, .72); --glass2: rgba(19, 15, 42, .9); --tint: rgba(255, 255, 255, .05); --tint2: rgba(255, 255, 255, .09);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
  --e-std: cubic-bezier(.2, .8, .2, 1); --e-emph: cubic-bezier(.16, 1, .3, 1); --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --hue1: #2A1D6B; --hue2: #6B2D5C;
  margin: 0; min-height: 100vh; background: #000; color: var(--t1); font: 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: --hue1 1.6s var(--e-std), --hue2 1.6s var(--e-std);
}
body.journey[data-hue="outer"] { --hue1: #123F73; --hue2: #135A6B; }
body.journey[data-hue="inner"] { --hue1: #3A1F86; --hue2: #5B2A8E; }
body.journey[data-hue="gravity"] { --hue1: #1C2A7A; --hue2: #0F4C5C; }
body.journey[data-hue="heart"] { --hue1: #6A1F62; --hue2: #3A1F86; }
body.journey[data-hue="north"] { --hue1: #6B4A12; --hue2: #5A2A4E; }
body.journey[data-hue="safe"] { --hue1: #1E1A3A; --hue2: #1A2238; }
.journey *, .journey *::before, .journey *::after { box-sizing: border-box; }
.journey :where(h1, h2, h3, p, ul, ol, fieldset, legend, figure) { margin: 0; padding: 0; }
.journey :where(ul, ol) { list-style: none; }
.journey a { color: inherit; }
.journey button { font: inherit; color: inherit; }
.journey ::selection { background: rgba(123, 77, 255, .6); color: #fff; }
.journey [hidden] { display: none !important; }
.journey .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.journey :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }

/* ---------- the sky ---------- */
.j-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: radial-gradient(120% 85% at 50% -10%, #0D0A26 0%, #050310 55%, #000 100%); }
.j-neb { position: absolute; border-radius: 50%; opacity: .5; }
.j-neb-a { width: 80vmax; height: 80vmax; left: -28vmax; top: -34vmax; background: radial-gradient(closest-side, var(--hue1), transparent 72%); animation: jDriftA 46s ease-in-out infinite alternate; }
.j-neb-b { width: 70vmax; height: 70vmax; right: -26vmax; bottom: -30vmax; background: radial-gradient(closest-side, var(--hue2), transparent 72%); animation: jDriftB 52s ease-in-out infinite alternate; }
.j-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes jDriftA { to { transform: translate(6vmax, 4vmax) scale(1.06); } }
@keyframes jDriftB { to { transform: translate(-5vmax, -3vmax) scale(1.04); } }

/* ---------- header ---------- */
.j-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--act); color: #fff; font-weight: 700; text-decoration: none; }
.j-skip:focus { top: 12px; }
.j-top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 20px; padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(3, 2, 12, .94), rgba(3, 2, 12, .72)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.j-home { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--tint); color: var(--t1); text-decoration: none; }
.j-home:hover { background: var(--tint2); }
.j-home svg { width: 20px; height: 20px; }
.j-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--t1); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.j-brand .fl-badge { width: 34px; height: 34px; }
.j-prog { flex: 1; display: flex; justify-content: center; align-items: center; gap: 18px; min-width: 0; }
.j-planets { display: flex; align-items: center; gap: 8px; }
.j-planet { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line2); background: transparent; transition: background .4s var(--e-std), border-color .4s, box-shadow .4s, transform .4s var(--e-spring); }
.j-planet.is-done { background: var(--gold); border-color: var(--gold); }
.j-planet.is-here { transform: scale(1.35); border-color: var(--gold2); box-shadow: 0 0 0 4px rgba(247, 198, 79, .18), 0 0 14px rgba(247, 198, 79, .7); }
.j-planet.is-here:not(.is-done) { background: rgba(247, 198, 79, .35); }
.j-trail { display: flex; align-items: center; gap: 5px; }
.j-trail i { width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1.5px; background: rgba(255, 255, 255, .18); transition: background .4s, box-shadow .4s; }
.j-trail i.is-on { background: var(--gold2); box-shadow: 0 0 8px rgba(255, 231, 163, .9); }
.j-trail i.is-now { background: rgba(255, 231, 163, .45); }
.j-chapter-name { font-size: 15px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.j-menu-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--tint); cursor: pointer; font-weight: 700; font-size: 16px; }
.j-menu-btn:hover { background: var(--tint2); }
.j-menu-btn svg { width: 18px; height: 18px; }

/* ---------- stage and layout ---------- */
.j-main { position: relative; z-index: 1; min-height: 100vh; outline: none; }
.j-stage { max-width: 1140px; margin: 0 auto; padding: 104px 24px 64px; }
.j-enter { animation: jEnter .55s var(--e-emph) both; }
@keyframes jEnter { from { opacity: 0; transform: translateY(14px); } }
.j-scene { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 56px; align-items: center; min-height: calc(100vh - 220px); }
.j-center { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.j-h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.j-h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.j-h3 { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.j-lede { font-size: 20px; line-height: 1.6; color: var(--t2); max-width: 36em; }
.j-note { font-size: 15px; line-height: 1.55; color: var(--t3); }
.j-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--gold2); }
.j-tag svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.j-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 700; font-size: 18px; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--e-spring), box-shadow .2s, opacity .2s; }
.j-btn:active { transform: scale(.97); }
.j-btn svg { width: 20px; height: 20px; flex: none; }
.j-pri { background: var(--act); color: #fff; box-shadow: 0 10px 30px -10px rgba(123, 77, 255, .8); }
.j-pri:hover { background: var(--act-h); }
.j-pri[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.j-sec { background: var(--tint); color: var(--t1); border: 1px solid var(--line2); }
.j-sec:hover { background: var(--tint2); }
.j-quiet { background: none; color: var(--t2); padding: 0 14px; min-height: 48px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 4px; }
.j-quiet:hover { color: var(--t1); text-decoration-color: currentColor; }
.j-urgent { background: var(--urgent); color: #fff; }
.j-urgent:hover { background: var(--urgent-h); }
.j-gold { background: linear-gradient(180deg, #FFE7A3, #F7C64F 55%, #E9A93A); color: #2A170C; box-shadow: 0 10px 34px -10px rgba(247, 198, 79, .85); }
.j-gold:hover { filter: brightness(1.05); }
.j-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.j-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- Fluffy and the constellation around him ---------- */
.j-fluffy { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; }
.j-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.j-ring .rs { transition: opacity .6s var(--e-std), r .6s var(--e-spring); }
.j-ring .rs-off { opacity: .42; }
.j-ring .rl { transition: opacity .8s var(--e-std); }
.j-ring .rs-new { animation: jStarNew 1.4s var(--e-emph) both; }
@keyframes jStarNew { 0% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; transform: scale(2.2); } 100% { transform: scale(1); } }
.j-ring .rs-new, .j-ring .rs { transform-box: fill-box; transform-origin: center; }
.j-fl { position: absolute; left: 50%; top: 50%; width: 60%; transform: translate(-50%, -50%); }
.j-fl svg.fl { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.j-fl.react-pop { animation: jPop .6s var(--e-spring); }
.j-fl.react-cheer { animation: jCheer .9s var(--e-spring); }
.j-fl.react-care { animation: jCare 1.6s ease-in-out; }
.j-fl.react-think { animation: jThink 1.2s ease-in-out; }
@keyframes jPop { 0% { transform: translate(-50%, -50%) scale(.92); } 60% { transform: translate(-50%, -50%) scale(1.04); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes jCheer { 0%, 100% { transform: translate(-50%, -50%); } 30% { transform: translate(-50%, -58%) rotate(-4deg); } 60% { transform: translate(-50%, -50%) rotate(3deg); } }
@keyframes jCare { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -49%) scale(1.03); } }
@keyframes jThink { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 35% { transform: translate(-50%, -50%) rotate(-5deg); } 70% { transform: translate(-50%, -50%) rotate(4deg); } }
/* Fluffy's own small movements (from fluffy-art.js class names) */
.fl-anim .fl-char { animation: flFloat 5.5s ease-in-out infinite; }
.fl-anim .fl-blink { animation: flBlink 6s infinite; transform-box: fill-box; transform-origin: center; }
.fl-anim .fl-ear-l { animation: flEar 7s ease-in-out infinite; transform-box: fill-box; transform-origin: 90% 35%; }
.fl-anim .fl-ear-r { animation: flEar 7s ease-in-out infinite .4s; transform-box: fill-box; transform-origin: 90% 35%; }
.fl-anim .fl-trunk { animation: flTrunk 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0%; }
@keyframes flFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes flBlink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
@keyframes flEar { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes flTrunk { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(2.5deg); } }

/* Fluffy's speech */
.j-say { position: relative; padding: 18px 22px; border-radius: 22px; background: var(--glass2); border: 1px solid rgba(255, 231, 163, .28); color: var(--t1); font-size: 19px; line-height: 1.55; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); }
.j-say::before { content: ""; position: absolute; left: 34px; top: -9px; width: 16px; height: 16px; transform: rotate(45deg); background: var(--glass2); border-left: 1px solid rgba(255, 231, 163, .28); border-top: 1px solid rgba(255, 231, 163, .28); }
.j-say.is-care { border-color: rgba(255, 143, 200, .45); }
.j-say.is-care::before { border-color: rgba(255, 143, 200, .45); }
.j-say p + p { margin-top: 10px; }
.j-say .j-ponder { color: var(--gold2); font-size: 17px; }
.j-say-card { margin-top: 18px; scroll-margin-bottom: 120px; scroll-margin-top: 80px; }
@media (min-width: 761px) { .j-say-card { display: none !important; } }
.j-say-card::before { left: 30px; }
.j-say .j-after { color: var(--t2); font-size: 17px; }
.j-say-who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--gold2); }
.j-say-who .fl-badge { width: 26px; height: 26px; }
.j-say-actions { display: flex; gap: 8px; margin-top: 10px; }
.j-keep { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: 14px; color: var(--t2); cursor: pointer; }
.j-keep[aria-pressed="true"] { color: var(--gold2); border-color: rgba(247, 198, 79, .55); }
.j-keep svg { width: 15px; height: 15px; }

/* ---------- the question card ---------- */
.j-card { background: var(--glass); border: 1px solid var(--line); border-radius: 28px; padding: 32px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.j-q { border: 0; min-width: 0; }
.j-q-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.j-q-title { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--gold2); letter-spacing: 0; }
.j-q-opt { font-size: 14px; color: var(--t3); }
.j-q-text { font-family: var(--display); font-weight: 800; font-size: clamp(25px, 2.7vw, 32px); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; outline: none; }
.j-q-note { margin-top: 10px; font-size: 16px; color: var(--t3); }
.j-opts { display: grid; gap: 10px; margin-top: 22px; }
.j-opts.is-two { grid-template-columns: 1fr 1fr; }
.j-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 16px 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--tint); cursor: pointer; font-size: 18px; line-height: 1.4; transition: background .2s var(--e-std), border-color .2s, transform .2s var(--e-spring); }
.j-opt:hover { background: var(--tint2); border-color: var(--line2); }
.j-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.j-opt.is-on { background: rgba(247, 198, 79, .11); border-color: rgba(247, 198, 79, .7); }
.j-opt.is-off { opacity: .45; cursor: not-allowed; }
.j-opt:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.j-mark { flex: none; width: 28px; height: 28px; }
.j-mark .m-ring { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 2; }
.j-mark .m-star { fill: var(--gold); stroke: var(--gold3); stroke-width: 1.2; opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .25s, transform .4s var(--e-spring); }
.j-opt.is-on .m-ring { stroke: rgba(247, 198, 79, .55); }
.j-opt.is-on .m-star { opacity: 1; transform: scale(1); }
.j-opt.is-on .j-mark { filter: drop-shadow(0 0 6px rgba(247, 198, 79, .8)); }
.j-text { display: block; width: 100%; min-height: 150px; margin-top: 18px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); color: var(--t1); font: 18px/1.6 var(--body); resize: vertical; }
.j-text::placeholder { color: var(--t3); }
.j-text:focus { outline: 3px solid var(--gold); outline-offset: 2px; border-color: transparent; }
.j-text-small { min-height: 96px; }
.j-count { margin-top: 6px; font-size: 14px; color: var(--t3); text-align: right; }
.j-actions { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.j-actions .j-pri { margin-left: auto; }
.j-private { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--t3); }
.j-private svg { width: 16px; height: 16px; flex: none; }

/* ---------- intro ---------- */
.j-hero { position: relative; width: min(560px, 100%); margin: 0 auto -8px; }
.j-hero img { display: block; width: 100%; height: auto; }
.j-hero.fl-float { animation: flFloat 6s ease-in-out infinite; }
.j-welcome { display: flex; flex-direction: column; gap: 14px; max-width: 34em; font-size: 21px; line-height: 1.6; color: var(--t2); }
.j-welcome p { opacity: 0; animation: jLine .8s var(--e-emph) forwards; }
.j-welcome p:nth-child(1) { animation-delay: .1s; color: var(--t1); font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.15; }
.j-welcome p:nth-child(2) { animation-delay: .35s; }
.j-welcome p:nth-child(3) { animation-delay: .6s; }
.j-welcome p:nth-child(4) { animation-delay: .95s; color: var(--gold2); font-family: var(--display); font-weight: 800; font-size: 28px; }
.j-welcome p:nth-child(5) { animation-delay: 1.2s; }
.j-welcome p:nth-child(6) { animation-delay: 1.45s; color: var(--t1); font-weight: 700; }
.j-intro-actions { opacity: 0; animation: jLine .8s var(--e-emph) 1.7s forwards; }
.j-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: calc(100vh - 200px); }
.j-intro .j-hero { margin: 0; width: 100%; max-width: 560px; justify-self: end; }
.j-intro-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; text-align: left; }
.j-intro-text .j-row { justify-content: flex-start; }
@media (max-width: 860px) { .j-intro { grid-template-columns: 1fr; gap: 8px; text-align: center; min-height: 0; } .j-intro .j-hero { justify-self: center; max-width: 420px; } .j-intro-text { align-items: center; text-align: center; } .j-intro-text .j-row { justify-content: center; } }
@keyframes jLine { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* choice cards (tone, saving, length) */
.j-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 820px; text-align: left; }
.j-choices.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.j-choice { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; text-align: left; min-height: 104px; transition: background .2s, border-color .2s, transform .25s var(--e-spring); }
.j-choice:hover { background: var(--glass2); border-color: var(--line2); transform: translateY(-2px); }
.j-choice[aria-pressed="true"] { border-color: rgba(247, 198, 79, .75); background: rgba(247, 198, 79, .1); }
.j-choice .fl { flex: none; width: 76px; height: 76px; }
.j-choice b { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.2; }
.j-choice small { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--t2); }
.j-choice-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--tint2); }
.j-choice-ic svg { width: 28px; height: 28px; }
.j-chapters { display: grid; gap: 10px; width: 100%; max-width: 640px; }
.j-chapter-pick { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; text-align: left; }
.j-chapter-pick:hover { background: var(--glass2); }
.j-chapter-pick .fl { width: 56px; height: 56px; flex: none; }
.j-chapter-pick b { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; }
.j-chapter-pick small { color: var(--t2); font-size: 15px; }
.j-chapter-pick .j-done-mark { margin-left: auto; color: var(--gold2); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* "tell me more" */
.j-about { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.j-about-list { display: grid; gap: 12px; }
.j-about-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.j-about-list li .fl-badge { flex: none; width: 44px; height: 44px; }
.j-about-list b { display: block; font-size: 18px; }
.j-about-list span { color: var(--t2); font-size: 16px; line-height: 1.55; }

/* chapter intro and celebration */
.j-chapter-n { display: inline-flex; align-items: center; gap: 10px; color: var(--gold2); font-weight: 700; font-size: 16px; }
.j-chapter-n i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.j-big-fl { width: min(300px, 64vw); }
.j-big-fl svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .6)); }
.j-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.j-confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: jConf 2.6s var(--e-std) forwards; }
@keyframes jConf { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(70vh) rotate(540deg); } }

/* reflection moment and safety */
.j-moment { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center; min-height: calc(100vh - 260px); }
.j-moment .j-big-fl { width: 180px; }
.j-safety { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.j-safety-head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 22px; align-items: center; }
.j-safety-head .j-big-fl { width: 140px; }
.j-lines { display: grid; gap: 10px; }
.j-line { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line2); background: var(--glass); text-decoration: none; }
.j-line b { display: block; font-size: 19px; }
.j-line small { display: block; color: var(--t2); font-size: 15px; }
.j-line-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--urgent); color: #fff; }
.j-line-ic svg { width: 22px; height: 22px; }
.j-line.is-soft .j-line-ic { background: var(--act); }

/* ---------- the portrait ---------- */
.j-portrait { display: grid; gap: 28px; }
.j-portrait-head { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: center; }
.j-portrait-head .j-big-fl { width: 240px; justify-self: center; }
.j-map { position: relative; border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(90% 80% at 50% 50%, rgba(40, 26, 92, .55), rgba(5, 3, 16, .4)); padding: 18px; overflow: hidden; }
.j-map .j-skymap { display: block; width: 100%; height: auto; max-height: 560px; overflow: visible; pointer-events: none; }
.j-skymap .rs { transform-box: fill-box; transform-origin: center; }
.j-map-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.j-map-key { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--tint); cursor: pointer; font-size: 15px; font-weight: 700; }
.j-map-key i { width: 10px; height: 10px; border-radius: 50%; }
.j-map-key[aria-expanded="true"] { border-color: var(--line2); background: var(--tint2); }
.j-map-key span { color: var(--t3); font-weight: 400; }
.j-map-panel { margin-top: 12px; padding: 16px 18px; border-radius: 18px; background: var(--glass2); border: 1px solid var(--line); text-align: left; }
.j-map-panel h3 { font-size: 18px; margin-bottom: 8px; }
.j-map-panel li { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 16px; }
.j-map-panel li:first-child { border-top: 0; }
.j-map-panel li b { flex: none; width: 46%; color: var(--t2); font-weight: 400; }
.j-map-panel li.is-dim { color: var(--t3); }
.j-north { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 26px; border: 1px solid rgba(247, 198, 79, .5); background: radial-gradient(120% 140% at 0% 50%, rgba(247, 198, 79, .2), rgba(247, 198, 79, .03) 60%), var(--glass); }
.j-north .fl { flex: none; width: 92px; height: 92px; }
.j-north b { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; color: var(--gold2); }
.j-north span { color: var(--t2); font-size: 15px; }
.j-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.j-sec-card { padding: 22px 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--glass); }
.j-sec-card.is-wide { grid-column: 1 / -1; }
.j-sec-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.j-sec-card header .fl-badge { flex: none; width: 46px; height: 46px; }
.j-sec-card header p { color: var(--t3); font-size: 14px; }
.j-items { display: grid; gap: 10px; }
.j-item { padding: 12px 14px; border-radius: 16px; background: var(--tint); border: 1px solid transparent; }
.j-item p { font-size: 17px; line-height: 1.55; }
.j-item .j-item-title { font-weight: 700; color: var(--gold2); }
.j-item-note { margin-top: 6px; color: var(--gold2); font-size: 16px; }
.j-item-note::before { content: "In your words: "; color: var(--t3); }
.j-item-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.j-item-tools button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--t3); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .2); }
.j-item-tools button:hover { color: var(--t1); }
.j-why { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); font-size: 15px; color: var(--t2); }
.j-why li { padding: 2px 0; }
.j-why b { color: var(--t1); font-weight: 700; }
.j-edit { margin-top: 8px; display: grid; gap: 8px; }
.j-edit .j-text { min-height: 80px; margin: 0; font-size: 16px; }
.j-empty { color: var(--t3); font-size: 16px; }
.j-reset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.j-reset li { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--tint); }
.j-reset b { font-size: 17px; }
.j-reset span { color: var(--t2); font-size: 15px; line-height: 1.5; }
.j-reset .j-btn { align-self: flex-start; margin-top: 4px; }
.j-letter { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: center; padding: 28px; border-radius: 30px; border: 1px solid rgba(247, 198, 79, .4); background: radial-gradient(110% 120% at 0% 0%, rgba(247, 198, 79, .16), transparent 60%), var(--glass); }
.j-letter img { width: 100%; height: auto; border-radius: 20px; }
.j-letter-text p { font-size: 19px; line-height: 1.65; color: var(--t1); }
.j-letter-text p + p { margin-top: 12px; }
.j-letter-text p:first-child { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--gold2); }
.j-reveal > * { animation: jEnter .7s var(--e-emph) both; }
.j-reveal > *:nth-child(2) { animation-delay: .15s; } .j-reveal > *:nth-child(3) { animation-delay: .3s; } .j-reveal > *:nth-child(4) { animation-delay: .45s; } .j-reveal > *:nth-child(5) { animation-delay: .6s; } .j-reveal > *:nth-child(n+6) { animation-delay: .75s; }
.j-past { border-radius: 20px; border: 1px solid var(--line); background: var(--glass); padding: 4px 18px; }
.j-past summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.j-past li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--t2); }
.j-past li b { color: var(--t1); }

/* breathing */
.j-breath { display: grid; justify-items: center; gap: 12px; padding: 10px 0 4px; }
.j-orb { position: relative; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 231, 163, .9), rgba(247, 198, 79, .35) 55%, rgba(247, 198, 79, .05) 72%); box-shadow: 0 0 40px rgba(247, 198, 79, .35); transform: scale(.72); transition: transform 4s ease-in-out; }
.j-orb.is-in { transform: scale(1); }
.j-orb.is-hold { transform: scale(1); }
.j-orb.is-out { transform: scale(.72); transition-duration: 6s; }
.j-orb b { font-family: var(--display); font-weight: 800; font-size: 34px; color: #2A170C; }
.j-breath-label { font-weight: 700; font-size: 18px; }

/* ---------- home for returning visitors, check-ins ---------- */
.j-home-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.j-panel { padding: 24px; border-radius: 26px; border: 1px solid var(--line); background: var(--glass); }
.j-panel > * + * { margin-top: 14px; }
.j-moods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.j-mood { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 8px 2px 6px; border-radius: 16px; border: 1px solid transparent; background: var(--tint); cursor: pointer; font-size: 12px; line-height: 1.2; color: var(--t2); min-width: 0; }
.j-mood span { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.j-mood:hover { background: var(--tint2); }
.j-mood[aria-pressed="true"] { border-color: rgba(247, 198, 79, .75); background: rgba(247, 198, 79, .12); color: var(--t1); }
.j-mood .fl { width: 100%; height: auto; max-width: 74px; }
.j-hist { display: flex; flex-wrap: wrap; gap: 8px; }
.j-hist li { display: grid; justify-items: center; width: 64px; font-size: 12px; color: var(--t3); }
.j-hist .fl { width: 52px; height: 52px; }
.j-home-actions { display: grid; gap: 10px; }
.j-home-actions .j-btn { width: 100%; }

/* sticker book and dialogs */
.j-book { display: grid; gap: 30px; }
.j-book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.j-pin { height: 1px; margin-top: -1px; pointer-events: none; }
.j-book-grid > li { display: flex; }
.j-book-grid .j-sticker { flex: 1; width: 100%; align-content: start; }
.j-sticker { display: grid; justify-items: center; gap: 6px; padding: 10px 8px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; text-align: center; font-size: 14px; line-height: 1.35; color: var(--t2); }
.j-sticker:hover { background: var(--glass2); border-color: var(--line2); }
.j-sticker .fl { width: 120px; height: 120px; }
.j-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.j-badges li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 14px; color: var(--t2); }
.j-badges .fl-badge { width: 72px; height: 72px; }
.j-dialog { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.j-dialog-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; border-radius: 28px; border: 1px solid var(--line2); background: #0E0A24; box-shadow: 0 40px 80px -30px #000; }
.j-dialog-box > * + * { margin-top: 14px; }
.j-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--tint); cursor: pointer; }
.j-close svg { width: 18px; height: 18px; }
.j-dialog-art { display: grid; place-items: center; padding: 10px; border-radius: 22px; background: radial-gradient(circle, rgba(123, 77, 255, .25), transparent 70%); }
.j-dialog-art .fl { width: min(320px, 70vw); height: auto; }
.j-menu { position: fixed; z-index: 55; top: 76px; right: 16px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 92px); overflow: auto; padding: 18px; border-radius: 24px; border: 1px solid var(--line2); background: #0E0A24; box-shadow: 0 40px 80px -30px #000; }
.j-menu h2 { font-size: 15px; font-weight: 700; color: var(--t3); margin: 6px 0 8px; }
.j-menu h2:first-child { margin-top: 0; }
.j-menu-list { display: grid; gap: 4px; }
.j-menu-list button, .j-menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 0; background: none; color: var(--t1); text-align: left; text-decoration: none; font-size: 16px; cursor: pointer; }
.j-menu-list button:hover, .j-menu-list a:hover { background: var(--tint2); }
.j-menu-list [aria-checked="true"]::after, .j-menu-list [aria-pressed="true"]::after { content: "✓"; color: var(--gold2); font-weight: 700; }
.j-menu-list .is-danger { color: #FF8B8F; }
.j-menu hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.j-scrim { position: fixed; inset: 0; z-index: 54; background: transparent; border: 0; }
.j-toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: #1C1640; border: 1px solid var(--line2); font-weight: 700; font-size: 16px; box-shadow: 0 20px 40px -20px #000; max-width: calc(100vw - 32px); text-align: center; }

/* ---------- footer ---------- */
.j-foot { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 20px 24px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--t3); font-size: 14px; border-top: 1px solid var(--line); }
.j-foot p { flex: 1 1 320px; }
.j-foot a { color: var(--t2); min-height: 44px; display: inline-flex; align-items: center; }
.j-foot a:hover { color: var(--t1); }
.j-noscript { max-width: 640px; margin: 140px auto; padding: 24px; border-radius: 24px; background: var(--glass); text-align: center; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .j-scene { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 32px; }
  .j-sections { grid-template-columns: 1fr; }
  .j-home-grid { grid-template-columns: 1fr; }
  .j-portrait-head { grid-template-columns: 1fr; text-align: center; }
  .j-portrait-head .j-row { justify-content: center; }
}
@media (max-width: 760px) {
  body.journey { font-size: 17px; }
  .j-top { height: 60px; gap: 10px; padding: 0 12px; }
  .j-brand span { display: none; }
  .j-brand .fl-badge { width: 36px; height: 36px; }
  .j-prog { gap: 10px; }
  .j-chapter-name { display: none; }
  .j-menu-btn { padding: 0 12px; }
  .j-menu-btn span { display: none; }
  .j-stage { padding: 76px 16px 24px; }
  .j-scene { grid-template-columns: 1fr; gap: 14px; min-height: 0; align-items: start; }
  .j-companion { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
  .j-companion .j-fluffy { max-width: 112px; }
  .j-companion .j-fl { width: 74%; }
  .j-say { font-size: 16px; padding: 12px 14px; border-radius: 18px; }
  .j-say::before { left: -8px; top: 24px; border-top: 0; border-left: 1px solid rgba(255, 231, 163, .28); border-bottom: 1px solid rgba(255, 231, 163, .28); }
  .j-say.is-care::before { border-color: rgba(255, 143, 200, .45); }
  .j-card { padding: 20px 16px; border-radius: 22px; }
  .j-q-text { font-size: 23px; }
  .j-opts.is-two { grid-template-columns: 1fr; }
  .j-opt { min-height: 54px; font-size: 17px; }
  .j-actions { position: sticky; bottom: 0; z-index: 5; margin: 18px -16px -20px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 0 0 22px 22px; background: linear-gradient(180deg, rgba(13, 10, 30, 0), rgba(13, 10, 30, .96) 30%); }
  .j-actions .j-pri { min-width: 132px; }
  .j-choices, .j-choices.is-three { grid-template-columns: 1fr; }
  .j-choice { min-height: 84px; }
  .j-choice .fl { width: 64px; height: 64px; }
  .j-moment, .j-safety-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .j-moment .j-big-fl { width: 140px; }
  .j-letter { grid-template-columns: 1fr; padding: 20px; }
  .j-letter img { max-width: 260px; margin: 0 auto; }
  .j-reset { grid-template-columns: 1fr; }
  .j-moods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .j-welcome { font-size: 18px; }
  .j-welcome p:nth-child(1) { font-size: 26px; }
  .j-welcome p:nth-child(4) { font-size: 22px; }
  .j-north { flex-direction: column; text-align: center; }
  .j-map { padding: 8px; border-radius: 24px; }
}
/* computers with short screens (1366x768, 1280x800, 1440x900…): Back, Skip and Continue stay in reach */
@media (min-width: 761px) and (max-height: 900px) {
  html { scroll-padding-bottom: 96px; }
  .j-stage { padding-top: 92px; }
  .j-card .j-actions { position: sticky; bottom: 0; z-index: 5; margin: 12px -32px 0; padding: 14px 32px 16px; transition: background-color .2s; }
  .j-card .j-actions.is-stuck { background: linear-gradient(180deg, rgba(13, 10, 30, 0), rgba(13, 10, 30, .94) 34%); }
  .j-companion .j-fluffy { max-width: max(240px, calc(100vh - 470px)); }
}
@media (max-width: 380px) {
  .j-planets { gap: 6px; }
  .j-trail { display: none; }
}

/* ---------- still for anyone who prefers it (system setting, or Settings > Animations off) ---------- */
@media (prefers-reduced-motion: reduce) {
  .journey, .journey *, .journey *::before, .journey *::after { animation: none !important; transition-duration: .01ms !important; }
  .j-welcome p, .j-intro-actions { opacity: 1; }
}
html[data-anim="off"] .journey, html[data-anim="off"] .journey *, html[data-anim="off"] .journey *::before, html[data-anim="off"] .journey *::after { animation: none !important; transition-duration: .01ms !important; }
html[data-anim="off"] .j-welcome p, html[data-anim="off"] .j-intro-actions { opacity: 1; }
