/* Mobile reading first; the existing full-screen room becomes the consultation destination. */
body.mobile-product{background:var(--surface);font-family:var(--sans)}
#product-home{position:fixed;inset:0;overflow-y:auto;overscroll-behavior:contain;padding:0 22px calc(92px + env(safe-area-inset-bottom));background:var(--surface);scrollbar-width:thin}
.product-header{display:flex;justify-content:space-between;align-items:center;max-width:680px;margin:auto;padding:22px 0 12px;gap:16px}
.product-brand{display:flex;align-items:center;gap:10px;font:500 20px var(--serif)}
.product-brand .seal{font-size:18px;padding:1px 6px}.product-header button{font-size:13px;color:var(--muted);padding:8px}
#product-home>div,#product-home>section,#product-home>footer{max-width:680px;margin-inline:auto}
.home-intro{padding:32px 0 28px}.home-intro .kicker{font-size:12px;margin-bottom:12px}.home-intro h1{font:500 32px/1.5 var(--serif);letter-spacing:-.05em;margin:0 0 12px}.home-intro p{font-size:14px;color:var(--muted);margin:0}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-section-heading h2{font:600 19px/1.5 var(--sans);margin:0}.home-section-heading>button{font-size:12px;color:var(--accent)}.free-label{font-size:12px;color:var(--accent);padding:3px 9px;border:1px solid var(--line);border-radius:3px}
.home-daily{padding:20px 0 30px;border-top:1px solid var(--line)}.home-daily>p,.home-consult>p{font-size:13px;color:var(--muted);margin:9px 0 18px}
.home-zodiacs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.home-zodiacs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:76px;background:var(--raised);border:1px solid transparent;border-radius:4px;font-size:12px}.home-zodiacs button>span{font-size:25px;line-height:1.3}.home-zodiacs button:hover{border-color:var(--accent)}
.home-saju{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 86px;padding:24px 20px;background:var(--raised);border:1px solid var(--line);border-radius:4px}.home-saju-copy{grid-column:1;grid-row:1;z-index:1}.home-saju-copy .kicker{font-size:11px;margin-bottom:12px}.home-saju h2{font:500 25px/1.5 var(--serif);margin:0 0 12px}.home-saju p{font-size:13px;line-height:1.8;color:var(--muted);margin-bottom:20px}.home-saju .primary{min-width:0;padding:12px 14px;font-size:14px}.home-saju-art{grid-column:2;grid-row:1;align-self:start;display:grid;place-items:center;padding-top:35px;color:var(--accent)}.home-saju-art>span{font:72px var(--serif);opacity:.6}.home-saju-art small{writing-mode:vertical-rl;letter-spacing:5px;margin-top:18px;font:12px var(--serif)}.home-saju .home-profile-note{font-size:11px;margin:12px 0 0;line-height:1.7}
.home-bundle{display:flex;gap:18px;align-items:center;padding:28px 0;border-bottom:1px solid var(--line)}.home-bundle .kicker{font-size:11px;margin-bottom:8px}.home-bundle h2{font:600 16px/1.6 var(--sans);margin:0 0 8px}.home-bundle p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.home-bundle>button{flex-shrink:0;text-align:right;margin-left:auto;padding:10px 0 10px 8px;color:var(--accent)}.home-bundle>button strong{display:block;font-size:22px}.home-bundle>button span{font-size:11px}
.home-consult{padding:28px 0}.home-consult h2{font-size:18px}#home-counsellors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#home-counsellors button{text-align:left;padding:0;min-width:0}#home-counsellors img{display:block;width:100%;height:125px;object-fit:cover;object-position:62% 30%;border-radius:4px}#home-counsellors strong{display:block;font-size:15px;margin-top:10px}#home-counsellors button>span{font-size:11px;line-height:1.65;color:var(--muted);display:block;margin-top:4px}.product-footer{font-size:11px;color:var(--muted);text-align:center;padding:24px 0 12px}
#product-nav{position:fixed;z-index:7;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,724px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 10px calc(6px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}#product-nav button{font-size:11px;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-height:54px;color:var(--muted)}#product-nav button>span{font:20px var(--serif)}#product-nav [aria-current=page]{color:var(--accent)}
body[data-screen=counsellors] .entrance{inset:0;height:auto;padding:0 22px calc(95px + env(safe-area-inset-bottom));background:var(--surface);overflow-y:auto}body[data-screen=counsellors] .entrance-top{max-width:680px;margin:auto;padding:14px 0;display:flex;gap:12px;align-items:center}body[data-screen=counsellors] .entrance-top .entrance-brand{margin-right:auto;font-size:17px}body[data-screen=counsellors] .entrance-heading{max-width:680px;margin:24px auto 26px;padding:0}body[data-screen=counsellors] .entrance-heading h1{font-size:27px;line-height:1.5}body[data-screen=counsellors] .entrance-heading p{font-size:14px}body[data-screen=counsellors] .character-options{display:grid;grid-template-columns:1fr;gap:12px;max-width:680px;margin:auto}body[data-screen=counsellors] .character-choice{height:126px;min-height:0;display:grid;grid-template-columns:132px 1fr;overflow:hidden;border:1px solid var(--line);background:var(--raised);border-radius:4px;padding:0}body[data-screen=counsellors] .character-choice:after{display:none}body[data-screen=counsellors] .character-choice img{position:static;width:132px;height:126px;object-fit:cover;object-position:66% 30%;filter:none}body[data-screen=counsellors] .character-caption{position:static;display:flex;flex-direction:column;align-self:center;align-items:flex-start;padding:14px;gap:5px;text-align:left}body[data-screen=counsellors] .character-caption strong{font:500 22px var(--serif)}body[data-screen=counsellors] .character-caption>span{font-size:12px}body[data-screen=counsellors] .character-caption small{font-size:11px;color:var(--muted)}body[data-screen=counsellors] .character-choice[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}body[data-screen=counsellors] .character-preview{display:block;max-width:680px;margin:24px auto 18px;padding:0;border:0}body[data-screen=counsellors] .character-preview h2{font-size:18px;margin:6px 0}body[data-screen=counsellors] .character-preview p{font-size:13px}body[data-screen=counsellors] .character-preview blockquote{display:none}body[data-screen=counsellors] .entrance-actions{max-width:680px;margin:auto;padding:0}
body[data-screen=room] .room-objects{display:none}body[data-screen=room] .room-header{padding:12px 18px;justify-content:space-between;align-items:center}.consult-home{background:var(--surface);padding:6px 12px;font-size:13px;border:1px solid var(--line);border-radius:4px}body[data-screen=room] .room-mark{display:none}body[data-screen=room] .room-art{background-position:65% 22%}body[data-screen=room] .room-art .pose-layer{object-position:65% 22%}
body[data-screen=room] .dialogue,body[data-screen=room] .dialogue.is-expanded{left:0;right:0;bottom:0;width:100%;height:64%;max-height:none;border-radius:16px 16px 0 0;padding:14px 18px calc(10px + env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden;background:var(--surface);transition:none}body[data-screen=room] .dialogue-name{font:600 16px var(--sans);padding-bottom:10px;border-bottom:1px solid var(--line);flex-shrink:0}body[data-screen=room] #dialogue-toggle{display:none}body[data-screen=room] #speaker-title{max-width:none;font-size:10px}body[data-screen=room] .speech-row{display:none}body[data-screen=room] #consultation-transcript{flex:1;min-height:40px;overflow-y:auto;overscroll-behavior:contain;padding:12px 0;scrollbar-width:thin}#consultation-transcript article{max-width:92%;padding:12px 14px;background:var(--raised);border-radius:4px;margin:0 0 12px;font-size:14px;line-height:1.8}#consultation-transcript article.mine{margin-left:auto;background:var(--accent);color:var(--surface)}#consultation-transcript strong{display:block;font-size:11px;margin-bottom:5px}#consultation-transcript p{margin:0;white-space:pre-wrap;word-break:break-word}body[data-screen=room] #dialogue-content{flex-shrink:0}body[data-screen=room] .suggestions{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:8px!important;margin:0 0 8px!important}body[data-screen=room] .suggestions button{font:11px/1.5 var(--sans)!important;min-height:36px!important;white-space:nowrap!important;flex-shrink:0;padding:6px 9px!important;background:var(--raised)!important;border:0!important;width:auto!important}body[data-screen=room] .reading-expand{min-height:30px;font-size:11px}body[data-screen=room] #conversation-topic{font-size:11px}body[data-screen=room] #chat{flex-shrink:0;gap:8px;min-height:48px}body[data-screen=room] #chat input{font-size:16px}body[data-screen=room] .chat-status{flex-shrink:0}.consult-access{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);flex-shrink:0}.consult-access button{min-height:30px;color:var(--accent);font-size:12px;padding:4px 8px}
#purchase-dialog{width:min(480px,100%);padding:30px 22px 22px;border-radius:12px;max-height:calc(100dvh - 24px)}#purchase-dialog h2{font-size:25px;margin:8px 0 24px}#purchase-dialog .kicker{margin:0 35px 10px 0;font-size:11px}.purchase-option{display:grid;grid-template-columns:1fr auto;gap:8px;width:100%;padding:18px 14px;border:1px solid var(--line);border-radius:4px;margin:0 0 12px;text-align:left}.purchase-option[aria-pressed=true]{border-color:var(--accent);background:var(--raised)}.purchase-option strong{font-size:15px;font-weight:600}.purchase-option>span{grid-column:1/-1;grid-row:2;font-size:12px;line-height:1.7;color:var(--muted)}.purchase-option>b{font-size:17px;font-weight:600}.purchase-note,#purchase-credit-rule{font-size:11px;line-height:1.8;color:var(--muted)}#purchase-status{font-size:13px;line-height:1.8;color:var(--muted);margin:18px 0}#purchase-action:disabled{opacity:.55;cursor:default}#purchase-login,#purchase-preview{width:100%;font-size:12px;margin-top:8px}#purchase-preview{color:var(--muted);border-top:1px solid var(--line)}.purchase-note{text-align:center;margin:12px 0 0}
.mobile-product .daily-next{padding:28px 0 10px;border-top:1px solid var(--line)}.daily-next h2{font:600 19px var(--sans)}.daily-next>p{font-size:13px;color:var(--muted)}.daily-consult{width:100%;font-size:13px;margin-top:10px;padding:12px}
.mobile-product .scroll-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px}.mobile-product .scroll-foot button{font-size:12px;color:var(--surface);background:var(--accent);padding:10px 12px;border-radius:3px;min-height:44px;text-align:left}
@media(max-width:767px){
 .mobile-product .scroll-dialog{margin:0;width:100%;height:var(--room-height);max-height:var(--room-height);max-width:none;border:0;border-radius:0}
 .mobile-product .scroll-dialog .scroll-bar{height:54px!important;min-height:54px;padding:5px 18px!important;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}
 .mobile-product .scroll-bar>span{display:block;font:13px var(--sans)}.mobile-product .scroll-bar .close{position:static;font-size:13px;min-height:44px}
 .mobile-product #content{padding:20px 22px;flex:1;min-height:0}.mobile-product #content:has(.saju-reading-layout){padding:0;overflow:hidden}
 .mobile-product .saju-reading-layout{height:100%;max-height:none;display:flex;flex-direction:column;gap:0;padding:0}
 .mobile-product .saju-bookmarks{position:static;width:100%;flex-shrink:0;display:flex;gap:6px;overflow-x:auto;padding:10px 18px;border:0;border-bottom:1px solid var(--line);margin:0;max-height:none}
 .mobile-product .saju-bookmarks a{flex:0 0 auto;min-height:38px;padding:7px 10px;font-size:11px;white-space:nowrap;border:1px solid var(--line)}
 .mobile-product .saju-reading-body{padding:24px 22px 36px;overflow-y:auto;flex:1;min-height:0;max-height:none}
 .mobile-product .saju-reading-intro{padding:0 0 24px;margin:0}.mobile-product .saju-reading-intro h1{font:500 27px/1.5 var(--serif)}
 .mobile-product .saju-chapter{padding:30px 0;margin:0;scroll-margin-top:12px}.mobile-product .saju-chapter h2{font:500 26px/1.5 var(--serif);margin:14px 0 24px}
 .mobile-product .saju-chapter-copy{font:400 16px/1.95 var(--sans);letter-spacing:-.02em;margin:0 0 22px;word-break:keep-all}
 .mobile-product .book-reading-note{font-size:13px}.mobile-product .book-calendar{font-size:12px}.mobile-product .book-locked{margin-top:24px}.mobile-product .book-locked-image{height:210px}.mobile-product .book-locked-heading li{font-size:13px}
 .mobile-product .scroll-foot{padding:9px 16px calc(9px + env(safe-area-inset-bottom));background:var(--surface);min-height:55px;flex-shrink:0}
 .mobile-product .scroll-foot button{font-size:11px}.mobile-product .book-offer{padding:26px 0}.mobile-product .book-offer h2{font-size:24px}.mobile-product .book-comparison{display:block}.mobile-product .book-comparison>div{padding:12px 0}.mobile-product .book-comparison dd{font-size:13px;line-height:1.8}
 .mobile-product dialog:not(.scroll-dialog){width:calc(100% - 24px);max-height:calc(var(--room-height) - 24px);padding:30px 20px 22px}.mobile-product #purchase-dialog{margin:auto auto 0;width:100%;border-radius:12px 12px 0 0;padding-bottom:calc(22px + env(safe-area-inset-bottom));border-bottom:0}
 .mobile-product .daily-card h2{font:500 26px/1.6 var(--serif)}.mobile-product .daily-years button{font-size:14px;line-height:1.8;padding-block:12px}.mobile-product .zodiacs button{min-height:44px}
 body.keyboard-open[data-screen=room] .dialogue{height:calc(100% - 66px)}
}
@media(min-width:768px){body[data-screen=room] .dialogue,body[data-screen=room] .dialogue.is-expanded{left:24px;bottom:24px;width:460px;height:76%;border-radius:8px;padding-bottom:16px}#product-home{padding-inline:32px}.home-intro{padding-top:38px}.home-zodiacs{grid-template-columns:repeat(6,minmax(0,1fr))}.home-saju{grid-template-columns:1fr 180px;padding:32px}.home-saju-art>span{font-size:106px}.home-saju h2{font-size:32px}.home-saju .primary{width:270px}.home-saju-art small{writing-mode:initial}.home-consult #home-counsellors img{height:180px}.mobile-product .scroll-dialog{height:calc(100dvh - 60px)} }
@media(max-width:350px){#product-home{padding-inline:16px}.home-intro h1{font-size:29px}.home-saju{padding:20px 15px;grid-template-columns:1fr 56px}.home-saju-art>span{font-size:56px}.home-section-heading h2{font-size:17px}.home-consult .home-section-heading>button{font-size:11px}.home-bundle{gap:8px}.home-bundle h2{font-size:14px}#home-counsellors{gap:7px}#home-counsellors img{height:105px}.purchase-option{padding:14px 10px}.purchase-option strong{font-size:13px}.purchase-option b{font-size:15px}}
@media(prefers-reduced-motion:reduce){.mobile-product *{scroll-behavior:auto!important}}
@media print{#product-home,#product-nav,#purchase-dialog,.consult-home{display:none!important}.mobile-product .scroll-foot{display:none}}
body[data-screen=counsellors] .character-options{height:auto;min-height:0;max-height:none;grid-template-rows:repeat(3,126px);grid-auto-rows:126px}
body[data-screen=counsellors] .character-preview{height:auto;min-height:0;max-height:none}
body[data-screen=counsellors] .character-preview .kicker{margin-bottom:6px}
body[data-screen=counsellors] .character-caption>span{display:block}
body[data-screen=counsellors] .entrance-actions{width:100%}
.mobile-product #birth-dialog h2{font-size:25px;line-height:1.5;margin-bottom:14px}.mobile-product #birth-dialog>.muted{font-size:12px;line-height:1.8}.mobile-product .saved-profile-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-product #saved-profile-select{grid-column:1/-1}.mobile-product .saved-profile-controls button{font-size:12px;border:1px solid var(--line);min-height:44px;padding:6px}.mobile-product .birth-optional{font-size:13px;color:var(--muted);margin:15px 0}.mobile-product .birth-optional summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.mobile-product #birth-form input,.mobile-product #birth-form select{font-size:16px;min-width:0}.mobile-product #birth-form .form-row{grid-template-columns:90px minmax(0,1fr)}

/* Consecutive pages share the viewport; no overlay, backdrop, or floating sheet. */
body[data-flow-open=true] #product-home,
body[data-flow-open=true] #entrance,
body[data-flow-open=true] .room,
body[data-flow-open=true] #product-nav{display:none!important}
.mobile-product [data-flow-panel]{position:relative;inset:auto;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;background:var(--surface);color:var(--ink);box-shadow:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:20px max(22px,calc((100% - 640px)/2)) calc(40px + env(safe-area-inset-bottom))}
.mobile-product [data-flow-panel][hidden]{display:none!important}
.mobile-product [data-flow-panel]>.close{display:block;position:static;width:auto;min-height:44px;height:auto;padding:4px 0;font:14px var(--sans);text-align:left;margin:0 0 26px;color:var(--accent)}
.mobile-product [data-flow-panel]>h2{font-size:27px;line-height:1.5}
.mobile-product [data-flow-panel]>.muted{font-size:13px;line-height:1.9}
.mobile-product #scroll-dialog[data-flow-panel]{display:flex;flex-direction:column;padding:0;width:100%;height:100dvh;max-height:none;overflow:hidden}
.mobile-product #scroll-dialog .scroll-bar{position:static;height:60px!important;min-height:60px;padding:8px max(22px,calc((100% - 1080px)/2))!important;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line)}
.mobile-product #scroll-dialog .scroll-bar>span{display:block;font:13px var(--sans);color:var(--muted)}
.mobile-product #scroll-dialog .scroll-bar .close{position:static;width:auto;min-height:44px;font:14px var(--sans);padding:4px 0;margin:0;color:var(--accent)}
.mobile-product #scroll-dialog #content{width:100%;max-width:780px;align-self:center;flex:1;min-height:0;padding:28px 22px 48px;overflow-y:auto}
.mobile-product #scroll-dialog #content:has(.saju-reading-layout){max-width:1160px;padding:24px 28px;overflow:hidden}
.mobile-product #scroll-dialog .scroll-foot{display:none}
.mobile-product #purchase-dialog[data-flow-panel],.mobile-product #account-dialog[data-flow-panel]{width:100%;max-height:none;border-radius:0;margin:0;padding:20px max(22px,calc((100% - 540px)/2)) calc(40px + env(safe-area-inset-bottom))}
.mobile-product .daily-next .daily-consult{border:1px solid var(--line);min-height:50px;border-radius:2px}
.mobile-product .book-offer>.primary{margin-top:24px}
@media(max-width:767px){
 .mobile-product #scroll-dialog #content:has(.saju-reading-layout){padding:0}
 .mobile-product #scroll-dialog .scroll-bar{height:56px!important;min-height:56px;padding-inline:22px!important}
 .mobile-product #scroll-dialog .scroll-bar>span{font-size:11px}
 .mobile-product #scroll-dialog .saju-reading-body{padding-bottom:48px}
 .mobile-product #scroll-dialog .saju-reading-layout{height:100%}
}
@media print{.mobile-product [data-flow-panel]>.close{display:none!important}}

.mobile-product #room-menu[data-flow-panel]>button:not(.close){display:block;width:100%;min-height:52px;padding:14px 0;border-bottom:1px solid var(--line);text-align:left;font:14px var(--sans)}

.mobile-product .book-locked-ending .book-locked-image{height:120px}.mobile-product .book-locked-ending .book-locked-label strong{font-size:15px}.mobile-product .book-locked-ending .book-locked-label span{font-size:12px}

/* Two permanent entry points: present in HTML before any catalog is loaded. */
.gateway-heading{font:400 14px/1.7 var(--sans);color:var(--muted);text-align:center;margin:26px 0 28px}
.gateway-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-block:1px solid var(--line)}
.gateway-choice{display:flex;flex-direction:column;align-items:center;min-width:0;padding:30px 10px 24px;color:var(--ink);border-radius:0;transition:background .18s ease}
.gateway-choice+ .gateway-choice{border-left:1px solid var(--line)}
.gateway-day{background:var(--raised)}.gateway-life{background:var(--surface)}
.gateway-choice:hover{background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.gateway-choice:focus-visible,.gateway-login:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.gateway-hanja{display:grid;place-items:center;height:130px;font:400 92px/1 var(--serif);color:var(--accent)}
.gateway-name{font:400 15px/1.5 var(--serif);margin:5px 0 22px}.gateway-choice strong{font:500 18px/1.6 var(--serif)}
.gateway-description{font:12px/1.8 var(--sans);color:var(--muted);margin-top:5px}
.gateway-about{text-align:center;padding:28px 0 0}.gateway-about h2{font:500 16px/1.7 var(--serif);margin:0 0 10px}.gateway-about p{font:12px/1.9 var(--sans);color:var(--muted);margin:0}
.gateway-login{display:block;width:100%;max-width:280px;margin:22px auto 0;min-height:46px;border:1px solid var(--line);font:14px var(--sans);border-radius:2px}
.daily-back{min-height:44px;padding:8px 0;color:var(--accent);font-size:13px}#daily-entry{padding-top:16px}#home-date{min-height:20px}
#home-gateway[hidden],#daily-entry[hidden]{display:none!important}
@media(min-width:768px){.gateway-heading{margin:30px 0}.gateway-choice{padding-block:35px 30px}.gateway-hanja{height:160px;font-size:120px}.gateway-choice strong{font-size:22px}.gateway-description{font-size:14px}.gateway-about{padding-top:32px}}
@media(prefers-reduced-motion:reduce){.gateway-choice{transition:none}}
.gateway-heading:focus,#home-daily-title:focus{outline:none}

/* Birth information is the opening section of the saju page, not another panel. */
.mobile-product #scroll-dialog>#birth-dialog{position:static;align-self:center;width:100%;max-width:640px;min-height:0;flex:1;overflow-y:auto;border:0;border-radius:0;margin:0;padding:24px 22px 48px;background:var(--surface)}
.mobile-product #scroll-dialog>#birth-dialog[hidden],.mobile-product #content[hidden]{display:none!important}
.mobile-product #birth-dialog .eyebrow{font-size:12px;color:var(--muted)}
.mobile-product .daily-selector{margin:0 0 30px}.mobile-product .daily-selector h2{font:500 17px/1.6 var(--sans)}
.mobile-product .daily-selector p{font-size:13px;color:var(--muted)}
.mobile-product .zodiacs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.mobile-product .zodiacs button{min-width:0;min-height:60px;padding:8px 4px;font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.mobile-product .zodiacs .zodiac-icon{width:34px;height:34px;margin:0}
@media(min-width:768px){.mobile-product .zodiacs{grid-template-columns:repeat(6,minmax(0,1fr))}}

.gateway-choice{padding-bottom:38px;cursor:pointer}
.mobile-product .daily-selector:not(.daily-selector-first){position:static;margin:0 0 30px;padding:0;border-top:0;box-shadow:none}
.mobile-product .daily-selector:not(.daily-selector-first) .zodiacs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:7px}
.mobile-product .daily-selector:not(.daily-selector-first) .zodiacs button{min-width:0;min-height:60px;padding:8px 4px;font-size:12px;white-space:normal}.mobile-product .daily-selector:not(.daily-selector-first) .zodiac-icon{width:26px;height:26px;margin:0}
@media(min-width:768px){.mobile-product .daily-selector:not(.daily-selector-first) .zodiacs{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Keep the counsellor choice and its next action within a typical phone viewport. */
body[data-screen=counsellors] .entrance-top{padding-block:10px;gap:10px}
body[data-screen=counsellors] .entrance-heading{margin:10px auto 18px}
body[data-screen=counsellors] .entrance-heading .kicker{display:none}
body[data-screen=counsellors] .entrance-heading h1{font-size:24px;margin-bottom:8px}
body[data-screen=counsellors] .entrance-heading p{font-size:12px;line-height:1.6}
body[data-screen=counsellors] .character-options{gap:8px;grid-template-rows:repeat(3,clamp(82px,11dvh,104px));grid-auto-rows:auto}
body[data-screen=counsellors] .character-choice{height:100%;grid-template-columns:clamp(86px,23vw,110px) 1fr}
body[data-screen=counsellors] .character-choice img{width:100%;height:100%;min-height:0}
body[data-screen=counsellors] .character-caption{padding:8px 12px;gap:2px}
body[data-screen=counsellors] .character-caption strong{font-size:20px;margin:2px 0}
body[data-screen=counsellors] .character-caption small{font-size:10px}
body[data-screen=counsellors] .character-caption>span{font-size:11px;line-height:1.5}
body[data-screen=counsellors] .character-preview{margin:16px auto 10px}
body[data-screen=counsellors] .character-preview .kicker{display:none}
body[data-screen=counsellors] .character-preview h2{font-size:16px;line-height:1.6;margin:0 0 6px}
body[data-screen=counsellors] .character-preview p{font-size:12px;line-height:1.7}
body[data-screen=counsellors] .entrance-actions{position:sticky;bottom:0;width:100%;padding:8px 0;background:var(--surface);z-index:3}
body[data-screen=counsellors] .entrance-actions .primary{min-height:48px;padding:12px 16px;font-size:14px}
@media(max-height:700px){body[data-screen=counsellors] .entrance-heading{margin:4px auto 12px}body[data-screen=counsellors] .character-preview{margin-top:10px}}

/* The center moon is home; reading pages retain the same five destinations. */
#product-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-inline:6px;transition:transform .2s ease}
#product-nav button{min-width:0;min-height:56px;font-size:10px}
#product-nav .nav-home>span{display:grid;place-items:center;width:48px;height:48px;margin-top:-20px;background:var(--raised);border:1px solid var(--line);border-radius:50%;font-size:29px;color:var(--accent)}
#product-nav.is-scroll-hidden{transform:translate(-50%,calc(100% + 24px))}
body[data-flow-open=true] #product-nav:not([hidden]){display:grid!important}
.mobile-product #scroll-dialog[data-flow-panel]{height:calc(100dvh - 78px - env(safe-area-inset-bottom))}
.mobile-product [data-flow-panel]:not(#scroll-dialog){padding-bottom:calc(105px + env(safe-area-inset-bottom))}
#product-nav[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){#product-nav{transition:none}}
@media print{body[data-flow-open=true] #product-nav:not([hidden]){display:none!important}}

/* Header and tabs share one scroll direction. Home headers return above scrolled content. */
body.mobile-product .product-header,body[data-screen=counsellors] .entrance-top{position:sticky;top:0;z-index:5;background:var(--surface);transition:transform .2s ease}
body.is-navigation-hidden .product-header,body.is-navigation-hidden[data-screen=counsellors] .entrance-top{transform:translateY(calc(-100% - 2px));pointer-events:none}
.mobile-product #scroll-dialog .scroll-bar{transition:margin-top .2s ease,opacity .2s ease}
body.is-navigation-hidden #scroll-dialog .scroll-bar{margin-top:-60px;opacity:0;pointer-events:none}
@media(max-width:767px){body.is-navigation-hidden #scroll-dialog .scroll-bar{margin-top:-56px}}
@media(prefers-reduced-motion:reduce){body.mobile-product .product-header,body[data-screen=counsellors] .entrance-top,.mobile-product #scroll-dialog .scroll-bar{transition:none}}
/* Hidden navigation returns its reserved space to the reading surface. */
body.is-navigation-hidden #scroll-dialog[data-flow-panel]{height:100dvh}
body.is-navigation-hidden #product-home{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
body.is-navigation-hidden[data-screen=counsellors] .entrance{padding-bottom:calc(24px + env(safe-area-inset-bottom))}
body.is-navigation-hidden [data-flow-panel]:not(#scroll-dialog){padding-bottom:calc(32px + env(safe-area-inset-bottom))}
@media(max-width:767px){body.is-navigation-hidden .saju-bookmarks{height:0;min-height:0;max-height:0;padding-block:0;border:0;margin:0;overflow:hidden}}
