.keepsake-parchment{font-family:TrialHand,'Kaiti SC',KaiTi,serif!important;position:relative;background:#f3dfb3 url('assets/divine-trials/paper.webp') center/cover!important;color:#694c2e!important;border:1px solid #ba9560;border-radius:7px;padding:26px 24px;text-align:center;box-shadow:0 3px 0 #b3956144,inset 0 0 30px #b1833a18;overflow:hidden}.keepsake-parchment .keepsake-eyebrow{color:#9d8054!important;font-size:9px;letter-spacing:2.5px;margin:0 0 10px}.keepsake-parchment h2{font-size:29px!important;color:#78542f!important;letter-spacing:3px;margin:0 0 6px;line-height:1.6}.keepsake-subtitle{color:#9b7a50!important;font-size:12px;margin:0}.keepsake-portrait{position:relative;width:154px;height:138px;margin:16px auto 4px;display:grid;place-items:center;background:radial-gradient(ellipse,#d9b35b40,transparent 65%)}.keepsake-portrait>img{width:115px;height:125px;object-fit:contain;filter:drop-shadow(0 4px 3px #a77f4244)}.keepsake-stamp{position:absolute;right:-32px;bottom:14px;padding:8px 5px;border:2px solid #ad6756;border-radius:50%;color:#a25a49;font-size:12px;line-height:1.4;letter-spacing:2px;transform:rotate(-14deg);width:53px;height:53px;box-shadow:0 0 0 2px #ad675633}.keepsake-parchment h3{font-size:22px;color:#795c37!important;margin:9px 0 12px}.keepsake-story{font-size:14px;line-height:1.9;text-align:left;color:#705337!important;margin:0}.keepsake-seals{display:flex!important;flex-flow:row nowrap!important;justify-content:center;gap:22px;margin:19px auto 16px;max-width:300px}.keepsake-seals>div{display:flex;flex:1;flex-direction:column;align-items:center;gap:6px;min-width:0}.keepsake-seals img{display:block;width:34px;height:34px;object-fit:contain;padding:5px;border:1px solid #b79956;background:#f7e8b9;border-radius:50%;box-sizing:content-box}.keepsake-seals span{font-size:12px;color:#8c703f}.keepsake-wish-label{font-size:11px;color:#a28761!important;margin:12px 0 3px}.keepsake-parchment blockquote{font-size:19px;line-height:1.7;color:#805432;margin:0 0 15px;padding:7px 0 14px;border-bottom:1px dashed #b79a68}.keepsake-blessing{font-size:13px;line-height:1.9;color:#8b6e46!important;margin:12px 0 21px}.keepsake-parchment footer{display:flex;justify-content:space-between;gap:10px;text-align:left;font-size:10px;line-height:1.8;color:#9a7e58}.keepsake-parchment footer span:last-child{text-align:right}
@media(max-width:390px){.keepsake-parchment{padding:24px 16px}.keepsake-parchment h2{font-size:26px!important}.keepsake-seals{gap:12px}.keepsake-story{font-size:13px}.keepsake-parchment blockquote{font-size:17px}}

/* Each seal is a single fused transparent illustration. */
.keepsake-seals .keepsake-element-art{position:relative;display:block;flex:none;width:clamp(56px,17vw,78px);height:clamp(56px,17vw,78px)}
.keepsake-seals .keepsake-element-art img{display:block;position:absolute;box-sizing:border-box;padding:0;border:0;border-radius:0;background:none;box-shadow:none;object-fit:contain}
.keepsake-seals .keepsake-element-image{inset:0;width:100%;height:100%}
.keepsake-seals .keepsake-element>span:last-child{font-size:12px;line-height:1.6}

@font-face{font-family:TrialHand;src:url('assets/divine-trials/trial-hand.woff2') format('woff2');font-display:swap}
#divine-trial-dialog{position:fixed;inset:0;margin:auto;width:min(760px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;padding:0;border-radius:0;background:#111b23;overflow:hidden}#divine-trial-dialog::backdrop{background:#071018b8;backdrop-filter:blur(5px)}#divine-trial-dialog iframe{display:block;border:0;width:100%;height:100%;background:#111b23}
#divine-home-memory{margin:22px 0;padding:20px 24px;border:1px solid #be9c68;border-radius:8px;background:#f3dfb3 url('assets/divine-trials/paper.webp') center/cover;color:#78552e;font-family:'Pocket Lahm Letter',KaiTi,serif}#divine-home-memory>span{display:block;font-size:13px}#divine-home-memory>button{display:block;background:transparent;text-align:left;padding:8px 0 0;color:inherit;font-size:20px}#divine-home-memory small{display:block;font-size:12px;margin-top:5px}
.temple-divine-keepsake{margin:30px 0 24px;padding:22px 12px;text-align:center}.temple-divine-keepsake>p{color:#c0c8b2;font-size:13px}.temple-divine-keepsake>button{position:relative;display:block;width:min(320px,100%);aspect-ratio:3/1;min-height:80px;margin:12px auto;background:none;border:0;padding:0;color:#78542f;filter:drop-shadow(0 4px 4px #03090844);font-family:'Pocket Lahm Letter',KaiTi,serif}.temple-divine-keepsake img{display:block;width:100%;height:100%;object-fit:contain}.temple-divine-keepsake button>span{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;pointer-events:none}.temple-divine-keepsake strong{font-size:19px;font-weight:500}.temple-divine-keepsake small{font-size:11px;color:#967647}
#sheet.sheet-divine-keepsake{background:#f3dfb3 url('assets/divine-trials/paper.webp') center/cover;color:#694c2e;border:1px solid #ba9560;width:min(620px,calc(100vw - 36px));border-radius:12px;padding:20px;max-height:calc(100dvh - 40px)}#sheet.sheet-divine-keepsake .sheet-head{color:#78542f;border-bottom:1px dashed #ba9560;padding-bottom:14px;margin-bottom:20px}#sheet.sheet-divine-keepsake .keepsake-parchment{border:0;box-shadow:none;background:transparent!important;padding:0 4px}#sheet.sheet-divine-keepsake #sheet-close{color:#78542f}

#divine-home-memory{padding:0}
#divine-home-memory>button.divine-memory-card{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:116px;margin:0;padding:20px 24px;border:0;border-radius:inherit;background:transparent;color:inherit;text-align:left;font-family:inherit;font-size:20px;cursor:pointer;box-shadow:none}
.divine-memory-copy{display:block;min-width:0}
.divine-memory-copy>span{display:block;margin-bottom:7px;font-size:13px}
.divine-memory-copy>strong{font-size:20px;font-weight:700}
.divine-memory-medal{display:block;flex:0 0 74px;width:74px;pointer-events:none}
.divine-memory-medal>:is(svg,img){display:block;width:74px;height:88px;margin:0}
#divine-home-memory>button.divine-memory-card:focus-visible{outline:3px solid #9c7743;outline-offset:3px}
@media(max-width:360px){#divine-home-memory>button.divine-memory-card{padding:18px;gap:10px}.divine-memory-medal,.divine-memory-medal>:is(svg,img){width:60px}.divine-memory-medal{flex-basis:60px}}

/* Keep the personal keepsake first, close to the temple's origin story. */
.temple-page>.temple-divine-keepsake{margin:16px 0 0;padding:8px 12px 0}
.temple-page>.temple-divine-keepsake>p{margin:0 0 8px}
.temple-page>.temple-divine-keepsake>button{margin:0 auto}
.temple-page>.temple-divine-keepsake+.temple-inscription{margin-top:8px}

.temple-page>.temple-divine-keepsake>p{color:#f2d78c}
