.fortune-hafez,.hafez-journal-detail{padding:clamp(12px,2vw,24px);border:1px solid #cfe3d7;border-radius:16px;background:#fbfffd;font-size:16px}.fortune-hafez [hidden]{display:none!important}.hafez-inputs{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:12px;margin-bottom:12px}.hafez-inputs label{display:grid;gap:6px}.fortune-hafez :is(input,select,button),.hafez-reading :is(button,select){font:inherit;min-height:44px;box-sizing:border-box}.hafez-inputs :is(input,select){width:100%;min-width:0}.hafez-toolbar,.hafez-pages{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}.hafez-audio summary{min-height:44px;align-content:center;cursor:pointer}.hafez-audio>div{display:grid;grid-template-columns:auto minmax(4rem,7rem);gap:8px}.hafez-audio>div label:last-of-type,.hafez-audio p{grid-column:1/-1}.hafez-audio input{width:100%;min-width:0}.hafez-reading{max-width:68rem;margin:auto;overflow-wrap:anywhere}.hafez-result-layout{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.3fr);gap:20px;margin-top:16px}.hafez-reader{min-width:0}.hafez-section-label{display:flex;align-items:center;gap:10px}.hafez-section-label select{flex:1;min-width:0;max-width:100%}.hafez-page{height:220px;margin:12px 0;box-sizing:border-box}.hafez-page :is(h4,p){font-size:16px;line-height:1.7;margin:0 0 12px}.hafez-page-panel{display:flow-root}.hafez-pages button{min-width:72px}.fortune-hafez :is(#hafez-error,#journal-note,#fortune-audio-notice,#hafez-progress):empty{display:none}#hafez-error{color:#932e28}.hafez-reading :focus-visible{outline:2px solid #245e91;outline-offset:2px}.hafez-reading [aria-pressed=true]{outline:2px solid #39795f;background:#d8ecdf}.hafez-reading [data-highlight=true]{background:#edf4d4}.hafez-symbols{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.hafez-symbols button{display:grid;gap:6px;min-width:72px;padding:12px;border:1px solid #b7d2c2;border-radius:8px;background:#f3faf5;color:#245b48}.hafez-symbols strong{font-size:28px}.hafez-ritual{min-height:110px;display:grid;place-content:center;text-align:center}.hafez-ritual span{font-size:28px}.fortune-frame[data-hafez-reading]{height:auto!important;min-height:0;overflow:visible}.fortune-frame[data-hafez-reading] :is(#fortune-canvas,#canvas-access,#fortune-state){display:none}@media(max-width:760px){.hafez-inputs{grid-template-columns:1fr}.hafez-result-layout{grid-template-columns:1fr;gap:16px}.hafez-page{height:280px}}@media(max-height:500px) and (min-width:600px){.hafez-result-layout{grid-template-columns:minmax(220px,.9fr) minmax(0,1.3fr)}.hafez-page{height:210px}.hafez-ritual{min-height:70px}}.hafez-verses [lang=fa]{font-size:21px;line-height:1.8;white-space:pre-line}.hafez-verses mark{background:#f4e3a8;color:inherit}.hafez-symbols{justify-content:flex-start;margin-top:12px}.hafez-symbols button{min-width:0}#result[data-cast-step] .hafez-reader{visibility:hidden}#result[data-cast-step="0"] .hafez-verses{visibility:hidden}#result[data-cast-step="1"] .hafez-verses{opacity:.35}@media(prefers-reduced-motion:no-preference){[data-phase=working] #hafez-book{animation:hafez-opening .4s alternate infinite}@keyframes hafez-opening{to{transform:perspective(400px) rotateY(-48deg)}}}

#hafez-book{justify-self:center;object-fit:contain;transform-origin:left center}.hafez-verses{transition:opacity .2s ease}@media(prefers-reduced-motion:reduce){.hafez-verses{transition:none}}
