.home-profile-steps{max-width:680px;margin:auto;padding:18px 20px 32px;text-align:center;color:#244b43;min-height:0;scroll-padding-block:24px 30vh}.home-profile-steps .hp-back{display:block;margin:0 0 16px auto}.home-profile-steps h1{font-size:clamp(1.8rem,4.8vw,2.55rem);font-weight:900;line-height:1.25;color:#287f73}.hp-sub{margin:9px auto 24px;color:#527268;font-size:1.05rem}.hp-name-label{display:block;font-size:1.3rem;font-weight:800;margin-bottom:12px}.home-profile-steps .wiz-name-input{display:block;width:min(100%,340px);margin:0 auto 20px;text-align:center;background:#fffef8;border:2px solid #b4d9c6;color:#294e44;font-size:18px;scroll-margin-block:24px 30vh}.home-profile-steps .wiz-next-btn{min-width:168px;background:#4eaf98;box-shadow:0 4px 0 #2f947d;color:#fff;border-radius:15px;font-family:inherit;font-size:1.1rem;font-weight:800;padding:12px 25px;border:0;cursor:pointer}.home-profile-steps .wiz-next-btn:disabled{opacity:.5;cursor:default;box-shadow:none}.home-profile-steps button:focus-visible,.home-profile-steps input:focus-visible{outline:3px solid #2a9d99;outline-offset:5px}.hp-identity-section{margin-top:20px}.hp-identity-orbit{width:132px;height:132px;border:2px solid #b9d5c2;border-radius:50%;background:#fffdf4;overflow:hidden;margin:0 auto 18px;display:grid;place-items:center}.hp-neutral-avatar{width:58px;height:70px;position:relative;display:block;opacity:.5}.hp-neutral-avatar:before{content:'';position:absolute;width:26px;height:26px;left:16px;top:4px;border-radius:50%;background:#a2b9a8}.hp-neutral-avatar:after{content:'';position:absolute;width:52px;height:30px;left:3px;bottom:3px;border-radius:50% 50% 8px 8px;background:#a2b9a8}.hp-photo{height:100%;width:100%;object-fit:cover}.hp-identity-options{display:flex;justify-content:center;gap:24px;margin:0 auto 12px}.hp-identity-choice{font-family:inherit;background:none;border:0;color:#315e52;cursor:pointer;font-size:.94rem;font-weight:800;display:flex;flex-direction:column;align-items:center;gap:5px;padding:5px 3px}.hp-choice-icon{width:44px;height:44px;display:block}.hp-choice-icon svg{width:100%;height:100%}.hp-identity-choice:hover{color:#177a67}.hp-avatar-actions{display:flex;justify-content:center;align-items:center;gap:10px;margin:14px auto}.hp-text-btn{font-family:inherit;font-size:.95rem;background:none;color:#447f70;border:0;text-decoration:underline;text-underline-offset:4px;padding:12px;cursor:pointer;min-height:44px}.hp-presets{display:flex;justify-content:center;gap:22px;margin:15px 0}.hp-presets button{padding:0;border:2px solid #b9daca;border-radius:14px;background:#fffdf2;cursor:pointer;overflow:hidden;width:112px;height:112px}.hp-preset{display:block;position:relative;background-image:url('assets/home-welcome/readers-many.png');background-repeat:no-repeat;background-size:300% auto;width:100%;height:100%}.hp-preset-0{background-position:left 20%}.hp-preset-1{background-position:center 20%}.hp-preset-2{background-position:right 20%}.hp-booki{display:flex;justify-content:center;align-items:center;gap:10px;margin:26px auto 8px;font-size:.95rem;color:#56796b}.hp-booki img{width:72px;height:80px;object-fit:contain}.hp-small{font-size:.75rem;line-height:1.5;color:#607467;margin:9px auto;max-width:380px}.hp-interest-title{font-size:1.35rem;margin:24px auto 7px}.hp-interest-hint{color:#56776a;font-size:.95rem}.hp-interests{display:flex;justify-content:center;gap:20px;margin:12px auto 25px}.hp-interests button{font-family:inherit;cursor:pointer;width:120px;min-height:130px;display:flex;flex-direction:column;align-items:center;gap:8px;border:2px solid transparent;background:transparent;border-radius:20px;color:#315e52;font-size:1rem;font-weight:800;padding:10px}.hp-interests svg{width:78px;height:78px}.hp-interests button[aria-pressed=true]{background:#edf4dc;border-color:#58ae95}.hp-interests button[aria-pressed=true] span:after{content:' ✓';color:#267561}.hp-finish{display:flex;align-items:center;justify-content:center;gap:12px}.hp-editor p{margin:10px auto}.hp-draw-actions{display:flex;align-items:center;justify-content:center;gap:8px}#hp-drawing{display:block;touch-action:none;background:#fffefa;border:2px dashed #9ccdbb;border-radius:16px;width:256px;height:256px;max-width:100%;margin:14px auto;cursor:crosshair}.home-profile-steps #home-setup-error:not(:empty){color:#9e422c;max-width:380px;margin:12px auto;line-height:1.5}.hp-reveal{animation:hp-arrive .2s ease both}@keyframes hp-arrive{from{opacity:0}to{opacity:1}}@media(max-width:480px){.home-profile-steps{padding:14px 12px 36px;min-height:0}.hp-identity-options{gap:15px}.hp-identity-choice{font-size:.85rem}.hp-sub{margin-bottom:20px}.hp-interests{gap:6px}.hp-interests button{width:96px;min-height:112px;padding:8px}.hp-interests svg{width:64px;height:64px}.hp-presets{gap:12px}.hp-presets button{width:88px;height:88px}.hp-booki{margin-top:20px}.hp-booki img{width:64px;height:72px}.hp-draw-actions .wiz-next-btn{min-width:0;padding:12px}.hp-finish{flex-direction:column;gap:4px}}@media(prefers-reduced-motion:reduce){.home-profile-steps *{animation:none!important;transition:none!important}}
/* Keep earlier answers fully readable and editable while the active step stands out. */
.home-profile-steps .hp-step{transition:background-color .2s ease;scroll-margin-block:24px}
.home-profile-steps .hp-step-active{background:rgba(255,254,248,.65)}
.home-profile-steps .hp-step-complete{background:#e1e8df}
.home-profile-steps .hp-step-upcoming{background:transparent}
.home-profile-steps .hp-step [hidden]{display:none!important}

.home-reader-next{padding-top:clamp(30px,8vh,80px)}.home-reader-next .hp-finish{flex-direction:column;align-items:center;gap:14px}.home-reader-next .hp-finish>.wiz-next-btn{width:min(100%,340px)}.home-reader-next .hp-text-btn{white-space:nowrap}

.home-celebration{position:relative}.home-celebration-booki{display:block;width:124px;height:142px;object-fit:contain;margin:0 auto 16px}.home-celebration-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}.home-celebration-confetti i{position:absolute;left:var(--x);top:-20px;width:9px;height:15px;background:var(--color);opacity:0;animation:home-celebration-fall 1.8s var(--delay) ease-out both}.home-celebration>:not(.home-celebration-confetti){position:relative;z-index:2}@keyframes home-celebration-fall{0%{opacity:0;transform:translateY(-20px) rotate(0)}12%{opacity:1}90%{opacity:.85}100%{opacity:0;transform:translateY(100vh) rotate(var(--turn))}}@media(prefers-reduced-motion:reduce){.home-celebration-confetti{display:none}}@media(max-height:500px){.home-celebration{padding-top:20px}.home-celebration-booki{width:70px;height:78px;margin-bottom:8px}.home-celebration h1{font-size:1.8rem}.home-celebration .hp-sub{margin:10px auto 16px}.home-celebration .hp-finish{margin-top:12px}}

/* One continuous, naturally scrolling setup, with an explicit parent boundary. */
.home-continuous-flow{max-width:720px;margin:0 auto;padding-bottom:24vh}
.home-continuous-flow>[hidden]{display:none!important}
.home-continuous-flow #home-flow-parent{scroll-margin-block:24px;margin-top:28px;padding-top:16px}
.home-continuous-flow .home-reader-next{padding-top:24px;scroll-margin-block:24px}
.home-continuous-flow .home-reader-next h2{font-size:clamp(1.6rem,4.8vw,2.2rem);color:#287f73}
.home-continuous-flow .hp-step-complete .wiz-name-input{background:#e1e8df;color:#405248;border-color:#aeb9ad}
@media(max-height:500px){.home-continuous-flow{padding-bottom:24px}.home-continuous-flow #home-flow-parent{margin-top:16px}}

.hp-avatar-title{font-size:1.3rem;line-height:1.5;margin:0 auto 18px;max-width:440px;color:#244b43;font-weight:800}
.home-profile-steps .home-add-reader-yes{background:#f2f7ec;color:#287f73;border:2px solid #68ae98;box-shadow:none;white-space:normal;line-height:1.5}
.home-reader-next .hp-finish>.home-add-reader-yes{width:min(100%,340px);min-height:56px}

/* Compact truthful progress, in reading order and never stealing focus. */
.hp-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.home-setup-progress{position:sticky;top:0;z-index:12;background:#fffaf0;padding:22px 12px 12px;max-width:580px;margin:0 auto;box-sizing:border-box}
.home-setup-progress ol{list-style:none;display:flex;gap:8px;margin:0;padding:0;direction:rtl}
.home-setup-progress li{flex:1;min-width:0;text-align:center;font-size:12px;color:#667c74;font-weight:600;line-height:1.5}
.home-progress-line{display:block;height:5px;background:#d9e2d9;border-radius:3px;margin-bottom:5px}
.home-progress-active{color:#175d52!important;font-weight:800!important}.home-progress-active .home-progress-line{background:#208e7d}
.home-progress-complete .home-progress-line{background:#7fb6a2}.home-progress-skipped .home-progress-line{background:repeating-linear-gradient(90deg,#7fb6a2 0 5px,#e4ece4 5px 8px)}
.home-continuous-flow [data-profile-step],.home-continuous-flow .home-parent-step{scroll-margin-top:80px}
@media(max-width:420px){.home-setup-progress{padding-inline:5px}.home-setup-progress ol{gap:5px}.home-setup-progress li{font-size:11px}}

/* One page at a time. Earlier answers stay in state, not in the tab order. */
.home-book-flow{perspective:1400px;padding-bottom:24px;overflow:visible}
.home-book-flow>[hidden],.home-book-flow [data-profile-step][hidden],.home-book-flow .home-progressive-step[hidden]{display:none!important}
.home-book-flow #home-flow-parent{margin-top:0;padding-top:0}
.home-book-flow .hp-step,.home-book-flow .home-progressive-step{background:transparent!important;opacity:1!important}
.home-book-flow #home-flow-profile,.home-book-flow #home-flow-parent,.home-book-flow #home-flow-finish{position:relative;background:#fffaf0;min-height:300px;transform-style:preserve-3d;backface-visibility:hidden}
.home-book-flow .home-page-forward{transform-origin:right center;animation:home-page-next .38s ease-out both}
.home-book-flow .home-page-back{transform-origin:left center;animation:home-page-prev .38s ease-out both}
.home-page-forward:after,.home-page-back:after{content:'';position:absolute;inset:0;pointer-events:none;border-inline-end:2px solid #d8ccb2;background:linear-gradient(90deg,transparent 75%,#77604124);animation:home-page-shadow .38s ease-out both}
@keyframes home-page-next{from{transform:rotateY(-24deg);box-shadow:-14px 3px 20px #65553640}to{transform:rotateY(0);box-shadow:none}}
@keyframes home-page-prev{from{transform:rotateY(24deg);box-shadow:14px 3px 20px #65553640}to{transform:rotateY(0);box-shadow:none}}
@keyframes home-page-shadow{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){.home-book-flow *{animation:none!important;transition:none!important}.home-page-forward:after,.home-page-back:after{display:none}}
@media(max-height:500px){.home-book-flow .home-profile-steps{padding-top:10px}.home-book-flow .hp-booki{margin-top:10px}.home-book-flow .home-setup-progress{position:static}}

/* v21: HOME active navigation matches the approved teal reading control. */
#booki-nav.booki-nav[data-tab="home"] [data-for="home"]{background:#287f73;box-shadow:0 4px 10px rgba(40,127,115,.30);color:#fff}

/* Real local emoji selection, alongside unchanged photos/drawings and legacy saved artwork. */
.hp-emoji-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:360px;margin:14px auto}.hp-emoji-grid button{min-height:60px;padding:8px;border:1px solid #c5d7bc;border-radius:14px;background:#fffdf6;cursor:pointer;font-size:34px;line-height:1.2}.hp-emoji-grid button[aria-pressed=true]{background:#e6f0df;border:2px solid #477b52}.hp-emoji-grid button:focus-visible{outline:3px solid #477b52;outline-offset:3px}.hp-emoji{display:flex!important;align-items:center;justify-content:center;width:100%;height:100%;font-size:64px;line-height:1}.hp-identity-orbit>.hp-emoji{font-size:92px}.hp-choice-emoji{font-size:44px;line-height:1.3}#greeting-avatar .hp-emoji{font-size:36px}

/* Shared HOME onboarding and own-profile drawing palette. */
.hp-drawing-colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:min(100%,360px);margin:12px auto}.hp-drawing-colors button{display:flex;align-items:center;flex-direction:column;gap:4px;min-width:44px;min-height:56px;padding:5px 2px;border:2px solid transparent;border-radius:12px;background:#fffdf6;color:#294b46;font-size:11px;cursor:pointer}.hp-color-swatch{display:block;width:26px;height:26px;border:1px solid #0003;border-radius:50%}.hp-drawing-colors button[aria-pressed=true]{border-color:#285e55;background:#e5f0e8}.hp-drawing-colors button:focus-visible{outline:3px solid #285e55;outline-offset:2px}

/* Disabled camera placeholder, shared by setup and own-profile editing. */
.home-profile-steps .hp-identity-choice[data-choice="camera"]:disabled{opacity:1;cursor:not-allowed;transform:none;box-shadow:none;color:#54665c;background:#e5e9e2;gap:8px}
.home-profile-steps .hp-identity-choice[data-choice="camera"]:disabled .hp-choice-icon{opacity:.6}
.home-profile-steps .hp-coming-soon-badge{display:inline-flex;align-items:center;border-radius:50px;background:#fff0bf;border:1px solid #d9bf78;color:#654d16;font-size:13px;font-weight:800;padding:3px 12px;line-height:1.5}
