.home-opening-screen .wizard-progress{display:none}.home-opening-screen .wizard-content{overflow-x:hidden}.home-welcome,.home-reader-count{box-sizing:border-box;max-width:920px;margin:auto;text-align:center;padding:30px 22px 24px;min-height:min(740px,88svh)}
.home-magic-title{font-family:inherit;font-weight:900;font-size:clamp(1.9rem,5vw,3rem);line-height:1.28;color:#237e74;text-shadow:0 2px #fff,0 0 30px #ffe6a1;margin:12px auto 8px;position:relative;z-index:2;animation:home-magic-arrive 1.7s ease both}
.home-book-scene{height:400px;max-width:620px;position:relative;margin:auto;isolation:isolate}.home-open-book{width:100%;position:absolute;bottom:12px;left:0;filter:drop-shadow(0 13px 15px #b7984c25)}.home-book-page{transform-origin:300px 165px;animation:home-leaf-ripple 2.8s ease-in-out}.home-book-page-right{animation-delay:.12s}.home-sliding-booki{position:absolute;width:220px;height:auto;bottom:77px;left:calc(50% - 110px);animation:home-booki-slide 2.9s cubic-bezier(.2,.7,.2,1) both;filter:drop-shadow(0 9px 8px #1a68562b)}.home-slide-trail{position:absolute;left:12%;bottom:105px;width:55%;height:2px;background:linear-gradient(90deg,transparent,#f3cf69,transparent);transform:rotate(12deg);animation:home-trail 2.8s ease both}
.home-magic-dust{position:absolute;inset:0;pointer-events:none}.home-magic-dust i{position:absolute;left:calc(8% + var(--i)*4.7%);top:20px;width:6px;height:6px;background:#ecca6b;border-radius:50%;box-shadow:0 0 9px 3px #ffdf9366;animation:home-dust 2.7s ease-out both;animation-delay:calc(var(--i)*45ms)}
.home-auth-buttons{max-width:360px;margin:0 auto;animation:home-auth-appear .65s ease both}.home-auth-buttons[hidden],.home-book-scene[hidden],.home-intro-skip[hidden]{display:none}.home-auth-booki{width:142px;height:auto;display:block;margin:0 auto 8px}.home-auth-buttons button{width:100%;display:flex;align-items:center;justify-content:center;gap:14px;border:1.5px solid #b5d8c8;background:#fffef8;color:#203a37;font-family:inherit;font-weight:800;font-size:1.06rem;padding:15px 22px;min-height:56px;border-radius:16px;box-shadow:0 4px 0 #dbe7d5;margin:12px 0;cursor:pointer}.home-auth-buttons button:focus-visible,.home-reader-choice:focus-visible{outline:3px solid #35b8b4;outline-offset:5px}.home-auth-buttons button:active{transform:translateY(2px);box-shadow:0 2px 0 #dbe7d5}.home-provider-g{font:800 24px Arial;color:#4285f4}.home-provider-apple{font-size:24px;color:#24363b}.home-preview-note{font-size:.78rem;line-height:1.55;color:#728076;margin:20px 0 0}.home-intro-skip{background:none;border:0;border-bottom:1px solid #9bbfaf;color:#457e70;font-family:inherit;font-weight:600;font-size:.88rem;padding:8px;margin-top:8px;cursor:pointer}
.home-reader-count>.wiz-back-btn{display:block;margin:0 0 28px auto}.home-reader-count h1{color:#24453e;margin-bottom:26px}.home-reader-options{display:grid;grid-template-columns:1fr 1.35fr;align-items:end;gap:35px}.home-reader-choice{border:0;background:none;padding:0 4px 15px;color:#24453e;font-family:inherit;cursor:pointer}.home-reader-choice figure{margin:0 0 20px}.home-reader-choice img{height:245px;width:100%;object-fit:contain;transition:transform .25s ease}.home-reader-choice:hover img{transform:translateY(-5px)}.home-reader-choice figcaption{font-size:1.08rem;font-weight:900;margin-top:8px}.home-reader-names{display:grid;grid-template-columns:repeat(3,1fr);direction:ltr}.home-reader-choice-label{display:block;background:#57bca4;color:white;padding:14px 15px;font-size:1.1rem;font-weight:900;border-radius:14px;box-shadow:0 4px 0 #329d87}.home-reader-choice small{display:block;color:#648275;margin-top:13px;font-size:.88rem}
@keyframes home-booki-slide{0%{transform:translate(-235px,-50px) rotate(-24deg);opacity:0}12%{opacity:1}62%{transform:translate(48px,13px) rotate(15deg)}83%{transform:translate(-9px,-9px) rotate(-6deg)}100%{transform:translate(0,0) rotate(0)}}@keyframes home-leaf-ripple{0%,100%{transform:rotate(0)}35%{transform:rotate(-5deg) scaleY(.9)}60%{transform:rotate(3deg)}}@keyframes home-magic-arrive{from{opacity:0;filter:blur(8px);transform:translateY(12px)}to{opacity:1;filter:blur(0);transform:translateY(0)}}@keyframes home-dust{0%{opacity:0;transform:translateY(60px) scale(.2)}35%{opacity:.9}100%{opacity:0;transform:translateY(-38px) scale(.5)}}@keyframes home-trail{0%,100%{opacity:0}45%{opacity:.9}}@keyframes home-auth-appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:560px){.home-welcome,.home-reader-count{padding:26px 18px 24px;min-height:80svh}.home-book-scene{height:350px}.home-sliding-booki{width:190px;left:calc(50% - 95px);bottom:66px}.home-auth-booki{width:130px}.home-reader-options{grid-template-columns:1fr;gap:24px;max-width:350px;margin:auto}.home-reader-choice figure{margin-bottom:13px}.home-reader-choice img{height:170px}.home-reader-choice:first-child img{height:165px}.home-reader-count h1{font-size:1.6rem;margin-bottom:12px}.home-reader-count>.wiz-back-btn{margin-bottom:15px}.home-reader-choice figcaption{margin-top:0}.home-reader-choice-label{padding:11px}.home-reader-choice small{margin-top:8px}.home-magic-title{margin-top:20px}}
@media(prefers-reduced-motion:reduce){.home-welcome *,.home-reader-choice img{animation:none!important;transition:none!important}}

.home-single-reader{height:245px;width:164px;overflow:hidden;position:relative;margin:auto}.home-reader-choice .home-single-reader img{position:absolute;right:0;top:0;height:245px;width:490px;max-width:none;object-fit:fill}.home-reader-choice:hover .home-single-reader img{transform:none}
@media(max-width:560px){.home-single-reader{width:114px;height:170px}.home-reader-choice:first-child .home-single-reader img{height:170px;width:340px}}

/* v24: original Booki silhouette in SVG, no video or poster requests. */
html.home-intro-active,body.home-intro-active{margin:0;padding:0;width:100%;height:100%;background:#fffaf0;overscroll-behavior:none}
body.home-intro-active #screen-profile-wizard{position:fixed;inset:0;width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:0;background:#fffaf0;animation:none;transform:none;overflow:auto}
body.home-intro-active #wizard-content{width:100%;min-height:100%;padding:0}
.home-outline-welcome{box-sizing:border-box;min-height:100svh;min-height:100dvh;width:100%;max-width:none;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:max(30px,env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px));background:radial-gradient(ellipse at 50% 47%,#f0f3e5 0%,#fffaf0 55%);text-align:center}
.home-outline-welcome .home-brand-name{color:#477b52;background:none;font-size:2.35rem;font-weight:900;line-height:1.1;margin:0 0 12px;padding:0}
.home-outline-welcome .home-magic-title{position:static;animation:none;margin:0;color:#30584e;font-size:clamp(1.6rem,4.8vw,2.05rem);line-height:1.3;text-shadow:none;font-weight:700}
.home-outline-scene{position:relative;width:min(230px,52vw);height:clamp(170px,30vh,260px);display:grid;place-items:center;flex:none}
.home-booki-outline{display:block;width:100%;height:100%;overflow:visible}
.home-booki-color{opacity:1}.home-booki-line{opacity:0}
.home-outline-scene[data-playback="drawing"] .home-booki-line{opacity:1;animation:home-outline-fade 2.6s ease both}
.home-outline-scene[data-playback="drawing"] .home-outline-reveal{transform-origin:top;animation:home-outline-draw 1.65s cubic-bezier(.35,0,.25,1) both}
.home-outline-scene[data-playback="drawing"] .home-booki-color{animation:home-outline-color 2.6s ease both}
.home-outline-skip{position:absolute;bottom:-15px;left:50%;transform:translateX(-50%);border:0;background:transparent;color:#527469;font:inherit;font-size:.7rem;white-space:nowrap;padding:8px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.home-outline-skip[hidden]{display:none}
.home-outline-welcome .home-auth-buttons{width:100%;max-width:330px;margin:7px auto 0;padding:0;animation:none}
.home-outline-welcome .home-auth-buttons button{width:100%;min-height:50px;margin:9px 0;padding:12px 18px;border:1px solid #d5ded1;border-radius:15px;background:#fffefb;color:#30584e;box-shadow:0 3px 10px #325d4710;font-size:1rem;font-weight:700}
.home-outline-welcome .home-auth-buttons button:hover{background:#f2f7ed;border-color:#92b4a2;transform:none}
.home-outline-welcome .home-auth-buttons button:focus-visible,.home-outline-skip:focus-visible{outline:3px solid #287f73;outline-offset:4px}
.home-outline-welcome .home-preview-note{color:#6e786e;font-size:.7rem;margin:10px 0 0;text-shadow:none}
body.home-intro-active .app-copyright,body.home-intro-active #btn-niqud-toggle,body.home-intro-active #btn-bug-report{display:none!important}
@keyframes home-outline-draw{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes home-outline-color{0%,48%{opacity:0}100%{opacity:1}}
@keyframes home-outline-fade{0%,65%{opacity:1}100%{opacity:0}}
@media(max-height:620px){.home-outline-welcome{gap:10px;padding-top:18px;padding-bottom:16px}.home-outline-welcome .home-brand-name{font-size:1.8rem;margin-bottom:6px}.home-outline-welcome .home-magic-title{font-size:1.35rem}.home-outline-scene{height:140px;width:150px}.home-outline-welcome .home-auth-buttons{margin-top:4px}.home-outline-welcome .home-auth-buttons button{min-height:44px;margin:6px 0;padding:9px 14px}}
@media(max-height:440px){.home-outline-welcome{gap:5px;padding-top:12px;padding-bottom:10px}.home-opening-heading{display:flex;align-items:center;gap:18px}.home-outline-welcome .home-brand-name{margin:0;font-size:1.7rem}.home-outline-welcome .home-magic-title{font-size:1.1rem;text-align:right}.home-outline-scene{height:105px;width:115px}.home-outline-welcome .home-preview-note{margin-top:5px;font-size:.65rem}}
@media(prefers-reduced-motion:reduce){.home-outline-welcome *{animation:none!important;transition:none!important}.home-outline-welcome .home-booki-color{opacity:1}.home-outline-welcome .home-booki-line{opacity:0}.home-outline-skip{display:none}}

/* Compact explanatory install dialog; native modal retains background inertness. */
#booki-install-dialog{color-scheme:light;font-family:inherit;color:#163c32;background:#fffef8;border:0;border-radius:26px;width:min(700px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:28px 24px 24px;text-align:center;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 90px #173d3540;margin:auto}
#booki-install-dialog::backdrop{background:#173d35b8;backdrop-filter:blur(5px)}
#booki-install-dialog *{box-sizing:border-box}
#booki-install-dialog [hidden]{display:none!important}
#booki-install-dialog .logo{border-radius:18px;width:64px;height:64px}
#booki-install-dialog h1{font-size:clamp(1.5rem,4.7vw,2rem);line-height:1.35;margin:12px 0 20px}
#booki-install-dialog .install-tracks{display:grid;grid-template-columns:1fr;gap:14px}
#booki-install-dialog section{background:#f1f8f3;padding:18px 14px;border-radius:18px;text-align:center}
#booki-install-dialog h2{font-size:1.05rem;margin:0 0 14px}
#booki-install-dialog ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}
#booki-install-dialog li{display:flex;align-items:center;justify-content:center;gap:8px;font-size:1rem;line-height:1.4;min-height:32px}
#booki-install-dialog .install-symbol{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:8px;background:white;color:#245747}
#booki-install-dialog .note{font-size:.78rem;line-height:1.4;color:#486154;margin:12px 0 0}
#booki-install-dialog button{font:inherit;min-height:44px;cursor:pointer}
#booki-install-dialog .continue{display:inline-block;margin-top:20px;padding:12px 22px;background:#1d5945;color:white;border:0;border-radius:14px;font-weight:700}
#booki-install-dialog button:focus-visible,#booki-install-dialog a:focus-visible{outline:3px solid #287f73;outline-offset:3px}
#booki-install-dialog h1[tabindex="-1"]:focus,#booki-install-dialog section[tabindex="-1"]:focus{outline:none}
#booki-install-dialog .booki-install-close{position:absolute;top:8px;left:8px;width:44px;height:44px;padding:0;background:transparent;color:#476154;border:0;font-size:24px;font-weight:400}
@media(max-width:520px){#booki-install-dialog{padding:26px 16px 18px}#booki-install-dialog .install-tracks{grid-template-columns:1fr;gap:12px}#booki-install-dialog section{padding:14px 12px}#booki-install-dialog h1{margin-bottom:16px}#booki-install-dialog h2{margin-bottom:10px}#booki-install-dialog ol{gap:6px}#booki-install-dialog .continue{margin-top:16px}}

#booki-install-dialog .install-choose-label{font-size:.95rem;margin:0 0 10px}
#booki-install-dialog .install-browser-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:14px}
#booki-install-dialog .install-browser-choices button{border:1px solid #9db8a7;background:#f1f8f3;color:#163c32;border-radius:12px;padding:10px 14px;font-size:.9rem;font-weight:700;min-height:44px}
#booki-install-dialog .install-browser-choices button[aria-expanded=true]{background:#1d5945;color:white}
#booki-install-dialog .install-email{font-size:.92rem;line-height:1.5;margin:16px 0 0}

#booki-install-dialog #install-decision{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:20px}
#booki-install-dialog #install-now{background:#1d5945;color:white;border:0;border-radius:14px;padding:12px 22px;font-weight:700}
#booki-install-dialog #install-decision .continue{margin:0;background:#f1f8f3;color:#163c32;border:1px solid #9db8a7}
#booki-install-dialog #install-back{margin-top:16px;padding:10px 18px;border:1px solid #9db8a7;border-radius:12px;background:#f1f8f3;color:#163c32}

/* Welcome hierarchy: sign-in is primary; installation remains an optional text action. */
.home-outline-welcome #home-google-signin{background:#30584e;border-color:#30584e;color:#fff;min-height:52px;font-weight:700;box-shadow:0 4px 12px #30584e20}
.home-outline-welcome #home-google-signin:not(:disabled):hover{background:#24483f;border-color:#24483f}
.home-outline-welcome #home-google-signin:disabled{opacity:.65;cursor:not-allowed}
.home-outline-welcome #home-install-help{width:max-content;max-width:100%;min-height:44px;margin:14px auto 0;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#536d66;box-shadow:none;font-size:.875rem;font-weight:500;text-decoration:underline;text-underline-offset:3px;line-height:1.4}
.home-outline-welcome #home-install-help:hover{background:transparent;color:#30584e;border:0;box-shadow:none}
.home-outline-welcome #home-install-help:active{transform:none;box-shadow:none}
.home-outline-welcome #home-install-help:focus-visible{outline:3px solid #287f73;outline-offset:3px}
