:root{--ink:#463f48;--muted:#99909a;--line:#ddd5d5;--rose:#b98188;--paper:#f7f4ef}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7f4ef;color:var(--ink);font-family:'Noto Serif TC','Songti TC','PMingLiU',serif}.grain{position:fixed;inset:0;pointer-events:none;z-index:5;opacity:.22;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E")}.topbar{height:79px;border-bottom:1px solid #e3ddda;display:flex;align-items:center;justify-content:space-between;padding:0 6.2%}.brand{text-decoration:none;color:var(--ink);font-size:16px;letter-spacing:.18em;font-weight:bold}.brand-star{color:var(--rose);font-size:23px;vertical-align:middle;margin-right:8px}.brand small{display:inline-block;border-left:1px solid #ccc2c1;margin-left:15px;padding-left:15px;color:#a79ca0;font:9px Arial;letter-spacing:.16em}.top-link{color:#756870;text-decoration:none;font-size:13px;letter-spacing:.12em}.top-link span{margin-left:12px;color:var(--rose)}main{max-width:1500px;margin:auto;padding:0 5%}.intro{text-align:center;padding:58px 0 45px}.eyebrow,.section-no,.portrait-label,.portrait-sub,.nameplate>span,.board-footer,.date small{font:9px Arial,sans-serif;letter-spacing:.22em;color:#ad999e}.eyebrow{display:flex;align-items:center;justify-content:center;gap:12px}.eyebrow span{width:24px;height:1px;background:#cbb6b9}.intro h1{font-size:clamp(28px,3vw,43px);font-weight:400;letter-spacing:.16em;margin:21px 0 15px}.intro p{color:#968b90;line-height:2;font-size:13px;letter-spacing:.1em}.mobile{display:none}.memorial{display:grid;grid-template-columns:1fr 1.05fr 1fr;gap:3.2%;align-items:stretch}.board{min-height:575px;background:#f0ece7;border:1px solid #e4dcd8;padding:29px 27px 20px;display:flex;flex-direction:column;position:relative}.board:before,.board:after{content:'✦';position:absolute;top:8px;color:#c8b4ad;font-size:8px}.board:before{left:10px}.board:after{right:10px}.board-head{display:flex;justify-content:space-between;align-items:center}.board h2{font-weight:400;font-size:20px;letter-spacing:.13em;margin:10px 0 17px}.board-icon{color:#c4a2a3;font-size:24px}.board-rule{height:1px;background:#d8cecb}.notes{display:flex;flex-direction:column;gap:15px;padding:22px 2px;flex:1}.note{background:#faf8f4;padding:19px 20px 15px;box-shadow:0 3px 10px #806c6910;transform:rotate(-1deg);border:1px solid #eee8e2}.note:nth-child(even){transform:rotate(1deg);background:#f8f1ef}.note p{font-size:13px;line-height:1.9;letter-spacing:.06em;margin:0 0 13px;white-space:pre-wrap;overflow-wrap:anywhere}.note span{font-size:10px;color:#b19da0;letter-spacing:.1em}.board-footer{display:flex;justify-content:space-between;border-top:1px solid #d8cecb;padding-top:17px}.board-footer span{font-size:17px}.centerpiece{text-align:center;padding:0 5px}.portrait-label{display:flex;justify-content:space-between;margin:4px 0 10px}.portrait{padding:10px;background:#e5dbd6;border:1px solid #d1c3bf;box-shadow:0 12px 25px #76645a1c}.portrait-inner{height:288px;position:relative;overflow:hidden;border:1px solid #f5eee9;background:radial-gradient(ellipse at 50% 78%,#e8d5d4 0,#b5a5b1 48%,#7e788b 100%);color:#fff8f5;display:flex;flex-direction:column;align-items:center;justify-content:center}.portrait-inner:after{content:'';position:absolute;inset:10px;border:1px solid #ffffff55;pointer-events:none}.moon{font-size:70px;font-weight:200;color:#f4e9df;opacity:.9;line-height:1}.portrait-star{position:absolute;color:#f9ede2}.s1{left:18%;top:23%}.s2{right:19%;top:17%;font-size:22px}.portrait-text{font-size:21px;letter-spacing:.24em;line-height:1.8;margin-top:19px}.portrait-sub{color:#f6ece5;font-size:7px;margin-top:15px}.nameplate{padding:23px 0 6px}.nameplate h2{font-size:23px;font-weight:400;letter-spacing:.25em;margin:10px 0}.nameplate p,.offering{font-size:11px;color:#a29498;letter-spacing:.12em}.incense{height:97px;position:relative;margin:0 auto;width:130px}.smoke{font-size:31px;color:#c8bec0;letter-spacing:3px;height:44px;line-height:47px}.sticks{height:35px;display:flex;justify-content:center;gap:17px}.sticks i{height:39px;width:1px;background:#aa8b83;position:relative}.sticks i:before{content:'';position:absolute;top:-3px;left:-2px;width:5px;height:5px;border-radius:50%;background:#d1a19b;box-shadow:0 0 7px #e7bcb0}.bowl{width:103px;height:24px;background:linear-gradient(#cbbab4,#ac9893);border-radius:3px 3px 45px 45px;margin:-5px auto 0}.offering{margin-top:10px}.add-note{border:1px solid #cdbaba;background:transparent;padding:13px;color:#9b7d81;cursor:pointer;font-family:inherit;font-size:15px;margin-bottom:20px}.add-note span{font-size:12px;letter-spacing:.12em;margin-left:7px}.add-note:hover,.submit:hover{background:#a98186;color:white}.countdown{margin:75px 0 65px;border-top:1px solid #ded5d3;border-bottom:1px solid #ded5d3;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:30px 15px}.countdown h2{font-weight:400;font-size:21px;letter-spacing:.15em;margin:10px 0}.countdown p{font-size:11px;color:#a09498;letter-spacing:.08em}.timer{display:flex;align-items:center;gap:20px}.timer div{text-align:center;min-width:55px}.timer strong{display:block;font:32px Georgia,serif;font-weight:400;color:#806d75}.timer div span{display:block;font:8px Arial;color:#b6a6aa;letter-spacing:.13em;margin-top:7px}.timer b{font-weight:400;color:#cbb9bc}.date{text-align:right;color:#8d777d;font:15px Georgia;letter-spacing:.1em}.date span{color:#cbbabc}.date small{display:block;font-size:8px;margin-top:10px}footer{border-top:1px solid #e3ddda;display:flex;justify-content:space-between;align-items:center;padding:25px 6%;color:#aa9b9e;font-size:10px;letter-spacing:.1em}footer span:first-child{color:#8d777d;font-size:12px}dialog{border:1px solid #ded1cf;background:#f9f6f2;color:var(--ink);width:min(460px,90vw);padding:30px;box-shadow:0 20px 70px #332a2a33}dialog::backdrop{background:#3a3036aa}.dialog-heading{display:flex;justify-content:space-between}.dialog-heading h2{font-weight:400;letter-spacing:.14em;margin:10px 0}.close{border:0;background:none;font-size:28px;color:#9d898d;cursor:pointer}form>p{font-size:12px;color:#a39498}label{display:block;font-size:12px;margin:22px 0 8px;letter-spacing:.1em}label span{color:#ad9fa2}input,textarea{width:100%;border:1px solid #e0d6d2;background:#fffdfa;padding:12px;font:14px inherit;color:var(--ink)}textarea{height:110px;resize:vertical}.privacy{line-height:1.7}.submit{width:100%;border:0;background:#a98186;color:white;padding:15px;font-family:inherit;letter-spacing:.12em;cursor:pointer}@media(max-width:800px){.topbar{height:65px}.brand small{display:none}.intro{padding:45px 0 30px}.mobile{display:block}.memorial{grid-template-columns:1fr 1fr;gap:18px}.centerpiece{grid-column:1/-1;grid-row:1;max-width:390px;width:100%;margin:0 auto 15px}.board{min-height:420px;padding:22px 17px}.countdown{margin:50px 0;flex-wrap:wrap}.date{margin-left:auto}.timer{order:3;width:100%;justify-content:center}.countdown-copy{flex:1}footer p{display:none}}@media(max-width:480px){main{padding:0 5%}.memorial{grid-template-columns:1fr}.centerpiece{grid-column:auto}.board{min-height:300px}.board-left{grid-row:2}.board-right{grid-row:3}.notes{gap:10px}.intro h1{font-size:27px}.timer{gap:10px}.timer div{min-width:47px}.timer strong{font-size:27px}.countdown{padding:25px 0}.date{font-size:12px}footer{padding:22px 5%}footer span:last-child{font-size:8px}}

/* Purple memorial palette */
:root{--ink:#40364e;--muted:#978da1;--line:#dcd3e3;--rose:#9276a4;--paper:#f6f3f8}
body{background:#f6f3f8}.intro p,.countdown p{color:#92889b}.eyebrow,.section-no,.portrait-label,.nameplate>span,.board-footer,.date small{color:#a18da9}.eyebrow span{background:#c8b6cf}.board{background:#eee9f1;border-color:#e0d7e5}.board:before,.board:after,.board-icon{color:#b5a0be}.board-rule,.board-footer{border-color:#d8cddd}.board-rule{background:#d8cddd}.note{background:#fbf9fc;border-color:#ece5ef;box-shadow:0 3px 10px #66517110}.note:nth-child(even){background:#f5eff8}.note span{color:#a48daf}.portrait{background:#ded2e3;border-color:#cdbed3}.portrait-inner{background:radial-gradient(ellipse at 50% 78%,#e2cde5 0,#ad9abb 48%,#71677f 100%)}.add-note{border-color:#c9b5d0;color:#8b7098}.add-note:hover,.submit,.submit:hover{background:#9276a4;color:#fff}.countdown{border-color:#ded4e3}.timer strong,.date{color:#806c8c}.timer b,.date span{color:#c7b6cf}footer{border-color:#e2d9e6}footer span:first-child{color:#8d7599}dialog{background:#f9f6fa;border-color:#ddd1e2}.close{color:#9c87a4}input,textarea{border-color:#e0d6e4}
.portrait-inner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.portrait-inner img[hidden]{display:none}.portrait-placeholder{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:0;color:#fff8ff;font-size:14px;letter-spacing:.16em;cursor:pointer}.portrait-placeholder small{font:9px Arial,sans-serif;letter-spacing:.15em;opacity:.75}.portrait-upload-icon{display:grid;place-items:center;width:45px;height:45px;border:1px solid #ffffff99;border-radius:50%;font:24px Arial}.portrait-inner.has-image .portrait-placeholder{opacity:0;transition:opacity .2s;background:#44334b88}.portrait-inner.has-image:hover .portrait-placeholder,.portrait-inner.has-image:focus-within .portrait-placeholder{opacity:1}
.portrait-placeholder{cursor:default}.portrait-placeholder[hidden]{display:none}
.photo-board{flex:1;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:12px;padding:22px 2px}.photo-board img{display:block;width:100%;aspect-ratio:1;object-fit:cover;padding:6px 6px 18px;background:#fbf9fc;box-shadow:0 3px 10px #66517118}.photo-board img:nth-child(odd){transform:rotate(-2deg)}.photo-board img:nth-child(even){transform:rotate(2deg)}.photo-empty{grid-column:1/-1;text-align:center;align-self:center;color:#a494aa;font-size:12px;line-height:2.5;letter-spacing:.1em;padding:65px 0}.photo-empty small{font-size:24px;color:#c4b3ca}
.photo-board{max-height:460px;overflow-y:auto;overscroll-behavior:contain}.photo-board figure{margin:0;min-width:0;background:#fbf9fc;padding:6px 6px 12px;box-shadow:0 3px 10px #66517118}.photo-board figure:nth-child(odd){transform:rotate(-2deg)}.photo-board figure:nth-child(even){transform:rotate(2deg)}.photo-board figure img{padding:0;box-shadow:none;transform:none!important}.photo-board figcaption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9e8aa7;font:10px Arial,sans-serif;padding:8px 2px 0}

#portrait-image{filter:grayscale(100%)}

.incense-photo{display:block;width:160px;height:110px;object-fit:cover;margin:14px auto 0;filter:saturate(.55);border-radius:2px}

/* Custom cursor for devices with a fine pointer. */
@media (pointer:fine){
  a,button,label[for],select{cursor:pointer}
  input,textarea{cursor:text}
}

.incense-photo{object-fit:contain;filter:none}

.incense-area{position:relative}.incense-button{display:block;margin:auto;padding:0;border:0;background:none;cursor:pointer}.incense-photo{width:230px;height:200px;margin:0 auto;object-fit:contain}.floating-messages{position:absolute;inset:0;pointer-events:none}.floating-message{position:absolute;bottom:45%;left:50%;white-space:nowrap;color:#846b96;font-size:14px;animation:float-message 2.8s ease-out forwards}@keyframes float-message{0%{opacity:0;transform:translate(-50%,0)}15%{opacity:1}100%{opacity:0;transform:translate(-50%,-120px)}}@media(prefers-reduced-motion:reduce){.floating-message{animation-duration:1ms}}
.countdown{margin:24px 0 0}.intro{padding-top:40px}.pager{display:flex;justify-content:center;align-items:center;gap:14px;margin:12px 0;color:#9276a4;font:12px Arial,sans-serif}.pager button{border:1px solid #d6c6dc;background:transparent;color:#80658d;width:30px;height:28px;font-size:20px;cursor:pointer}.pager button:disabled{opacity:.35;cursor:default}.photo-board{max-height:460px}

.board-footer{margin-top:auto}
.photo-board{max-height:none;overflow:visible;align-content:start}
.g-recaptcha{margin:14px 0;max-width:100%;overflow:hidden}

.delete-note{float:right;border:0;background:transparent;color:#9b738b;cursor:pointer;font:12px inherit}.delete-note:disabled{opacity:.5}
.floating-messages{z-index:4;overflow:visible}.floating-message{bottom:0;width:min(330px,90vw);white-space:normal;line-height:1.9;text-align:left;letter-spacing:.04em;padding:15px 18px;margin:0;background:rgba(249,246,250,.96);border:1px solid #d8c9df;box-shadow:0 5px 20px #4a355126;color:#604d6c;font-size:13px;animation:memorial-float 20s ease-out forwards}@keyframes memorial-float{0%{opacity:0;transform:translate(-50%,0)}6%,82%{opacity:1}100%{opacity:0;transform:translate(-50%,calc(-1 * var(--float-distance)))}}@media(prefers-reduced-motion:reduce){.floating-message{animation:memorial-float 20s linear forwards}}
.online-status{color:#9276a4;font-size:12px;letter-spacing:.08em;margin-top:14px}
.memorial-footer{display:block;text-align:center;padding:28px 5% 32px;border-top:1px solid #e2d9e6;color:#a594ad;font-size:12px;letter-spacing:.1em}.memorial-footer p{display:block;margin:0 0 10px;line-height:1.8}.memorial-footer span{color:#b3a4bb;font-size:10px}

.memorial-footer .footer-credit{margin:12px 0 0;font-size:10px}.footer-credit a{color:#9276a4;text-decoration:none}.footer-credit a:hover{text-decoration:underline}

.memorial-footer{padding:12px 5% 14px}.memorial-footer p{margin:0 0 4px;line-height:1.5}.memorial-footer .footer-credit{margin:4px 0 0}

.memorial-footer{display:flex;flex-direction:column;align-items:center;gap:4px}.memorial-footer p,.memorial-footer .footer-credit{margin:0}

.memorial-footer{flex-direction:row;justify-content:center;flex-wrap:wrap;gap:8px 20px}

.note-time{display:block;margin-top:8px;color:#aa9ab2;font:10px Arial,sans-serif;letter-spacing:.03em}
.offering-actions{display:flex;justify-content:center;gap:22px;margin:8px auto 12px}.offering-action{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:transparent;color:#806c8c;cursor:pointer;font:12px inherit;letter-spacing:.12em}.offering-action img{width:65px;height:65px;object-fit:contain;transition:transform .2s}.offering-action:hover img,.offering-action:focus-visible img{transform:translateY(-4px)}.offering-action:focus-visible{outline:2px solid #9276a4;outline-offset:3px}.flying-offering{position:absolute;bottom:0;left:50%;width:85px;height:85px;object-fit:contain;animation:offering-rise 5s ease-out forwards}@keyframes offering-rise{0%{opacity:0;transform:translate(-50%,0) scale(.7)}15%,75%{opacity:1}100%{opacity:0;transform:translate(-50%,calc(-1 * var(--float-distance))) scale(1)}}@media(prefers-reduced-motion:reduce){.offering-action img{transition:none}.flying-offering{animation:offering-fade 3s linear forwards}}@keyframes offering-fade{0%,75%{opacity:1}100%{opacity:0}}

.offering-action:disabled{cursor:default;opacity:.65}.offering-action:disabled img{transform:none}.offering-count{font-size:10px;color:#a18da9;letter-spacing:0}.offering-status{min-height:1.5em;margin:0 auto 8px;text-align:center;font-size:11px;color:#9276a4}
.jiaobei-open{display:block;margin:8px auto 18px;padding:9px 28px;border:1px solid #c9b5d0;background:transparent;color:#80658d;font:13px inherit;letter-spacing:.15em;cursor:pointer}.jiaobei-open:hover,.jiaobei-throw:hover{background:#9276a4;color:#fff}.jiaobei-dialog{width:min(420px,90vw);max-width:90vw;text-align:center;padding:26px 28px 30px}.jiaobei-heading{display:flex;align-items:center;justify-content:space-between}.jiaobei-heading h2{margin:0;font-size:21px;font-weight:400;letter-spacing:.15em}.jiaobei-hint{color:#a394a3;font-size:12px;line-height:1.7}.jiaobei-pair{display:flex;justify-content:center;align-items:center;gap:20px;height:135px;overflow:visible}.jiaobei-block{width:104px;height:57px;display:flex;align-items:center;justify-content:center;border:2px solid #9b4b50;border-radius:5px 5px 60px 60px;background:#c67779;box-shadow:inset 0 -7px 10px #793d4440,0 5px 8px #55445520;transform:rotate(-15deg);color:#fff;font-size:11px}.jiaobei-block:nth-child(2){transform:rotate(15deg)}.jiaobei-block.jiaobei-flat{background:#dba4a3;box-shadow:inset 0 2px 3px #ffffff70,0 5px 8px #55445520}.jiaobei-block.jiaobei-convex{background:linear-gradient(155deg,#d38d8a,#9e4a50);box-shadow:inset 0 8px 12px #fff3,0 5px 8px #55445520}.jiaobei-block.throwing{animation:jiaobei-toss .9s ease-in-out}.jiaobei-block.throwing:nth-child(2){animation-direction:reverse}@keyframes jiaobei-toss{0%{transform:translateY(0) rotate(0)}45%{transform:translateY(-36px) rotate(230deg)}100%{transform:translateY(0) rotate(540deg)}}.jiaobei-result{min-height:2em;margin:4px 0 16px;color:#80658d;font-size:14px;letter-spacing:.08em}.jiaobei-throw{width:100%;padding:12px;border:0;background:#a981a5;color:white;font-family:inherit;letter-spacing:.15em;cursor:pointer}.jiaobei-throw:disabled{opacity:.6;cursor:wait}@media(prefers-reduced-motion:reduce){.jiaobei-block.throwing{animation:none}}

.jiaobei-inline{margin:20px auto 10px;border-top:1px solid #ded4e3;padding:20px 12px 12px}.jiaobei-inline .jiaobei-heading{justify-content:center}.jiaobei-inline .jiaobei-pair{height:115px}.jiaobei-inline .jiaobei-throw{max-width:180px}
.jiaobei-inline{margin:20px auto 10px;border-top:1px solid #ded4e3;padding:20px 12px 12px}.jiaobei-inline .jiaobei-heading{justify-content:center}.jiaobei-inline .jiaobei-pair{height:135px;margin:0 auto;width:100%;border:0;background:transparent;cursor:pointer}.jiaobei-pair:disabled{cursor:wait}.jiaobei-pair:focus-visible{outline:2px solid #9276a4;outline-offset:2px}.jiaobei-block.throwing{animation:jiaobei-toss-left 1.25s cubic-bezier(.23,.64,.35,1) both}.jiaobei-block.throwing:nth-child(2){animation:jiaobei-toss-right 1.25s cubic-bezier(.23,.64,.35,1) both}@keyframes jiaobei-toss-left{0%{transform:translate(0,0) rotate(-15deg)}35%{transform:translate(-15px,-44px) rotate(175deg)}65%{transform:translate(-9px,4px) rotate(350deg)}80%{transform:translate(-5px,-10px) rotate(374deg)}100%{transform:translate(0,0) rotate(345deg)}}@keyframes jiaobei-toss-right{0%{transform:translate(0,0) rotate(15deg)}35%{transform:translate(15px,-49px) rotate(-175deg)}65%{transform:translate(9px,4px) rotate(-350deg)}80%{transform:translate(5px,-12px) rotate(-374deg)}100%{transform:translate(0,0) rotate(-345deg)}}@media(prefers-reduced-motion:reduce){.jiaobei-block.throwing,.jiaobei-block.throwing:nth-child(2){animation:none}}
.memory-extras{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:52px 0;padding:0 3%}.star-card,.memory-card{border:1px solid #e0d7e5;background:#eee9f1;padding:25px;text-align:center;min-width:0}.star-card h2,.memory-card h2{font-size:20px;letter-spacing:.13em;font-weight:400;margin:0 0 12px}.star-card p,.memory-card p{font-size:12px;color:#9d8ea4;letter-spacing:.06em;line-height:1.7}.star-light{display:block;margin:12px auto;border:0;background:transparent;color:#c9bbcd;font-size:64px;line-height:1.2;cursor:pointer;transition:transform .2s,color .2s,text-shadow .2s}.star-light:not(:disabled):hover{transform:scale(1.12);color:#b698bd}.star-light.is-lit{color:#d5b86d;text-shadow:0 0 22px #edcc7d99}.star-light:disabled{cursor:default}.star-light:focus-visible,.memory-draw:focus-visible{outline:2px solid #9276a4;outline-offset:3px}.memory-result{min-height:24px;color:#9d8ea4;font-size:12px}.memory-result img{display:block;max-width:100%;width:auto;height:180px;object-fit:contain;margin:12px auto 8px}.memory-result a{color:#80658d;text-decoration:none}.memory-result span{display:block;font-size:11px;margin-bottom:12px}.memory-draw{border:1px solid #c9b5d0;background:transparent;color:#80658d;padding:10px 22px;font-family:inherit;letter-spacing:.1em;cursor:pointer}.memory-draw:hover{background:#9276a4;color:white}.memory-draw:disabled{opacity:.6;cursor:wait}@media(max-width:600px){.memory-extras{grid-template-columns:1fr;margin:36px 0;padding:0;gap:16px}}@media(prefers-reduced-motion:reduce){.star-light{transition:none}}
.memory-reveal{transform-origin:center bottom;animation:memory-pop .55s cubic-bezier(.2,.8,.25,1.2) both}@keyframes memory-pop{0%{opacity:0;transform:translateY(18px) scale(.86)}65%{opacity:1;transform:translateY(-3px) scale(1.03)}100%{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.memory-reveal{animation:none}}
.memory-popup{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:60px 20px 30px;border:0;background:rgba(35,27,40,.92);color:#f8f3fa;box-shadow:none;overflow:auto}.memory-popup::backdrop{background:rgba(35,27,40,.92)}.memory-popup-close{position:fixed;top:18px;right:24px;width:42px;height:42px;border:0;background:transparent;color:#fff;font-size:32px;cursor:pointer;z-index:2}.memory-popup-content{min-height:100%;display:flex;align-items:center;justify-content:center;text-align:center}.memory-popup-content a{color:#fff;text-decoration:none}.memory-popup-content img{display:block;max-width:min(92vw,1000px);max-height:calc(100dvh - 140px);width:auto;height:auto;object-fit:contain;margin:0 auto 14px}.memory-popup-content span{display:block;font-size:13px;letter-spacing:.08em}.memory-popup-content .memory-reveal{animation:memory-pop .55s cubic-bezier(.2,.8,.25,1.2) both}@media(prefers-reduced-motion:reduce){.memory-popup-content .memory-reveal{animation:none}}
.star-card{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 50% 110%,#514361 0%,#29263f 55%,#191a30 100%);border-color:#514760;color:#f6eff9}.star-card>h2,.star-card>p,.star-card>.star-light{position:relative;z-index:1}.star-card p{color:#d4c4d9}.star-card .star-light{color:#b2a4bf}.star-card .star-light.is-lit{color:#f4d88e;text-shadow:0 0 12px #f8df9e,0 0 35px #d7b3ff}.star-sky{position:absolute;inset:0;z-index:0;pointer-events:none}.sky-star{position:absolute;color:#f6e7bb;line-height:1;opacity:.8;text-shadow:0 0 8px #efd59d}.sky-star-new{animation:sky-light 1.4s ease-out both}@keyframes sky-light{0%{opacity:0;transform:scale(.1)}45%{opacity:1;transform:scale(2);text-shadow:0 0 16px #fff3be}100%{opacity:.8;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.sky-star-new{animation:none}}
.all-messages-link{display:block;text-align:center;margin:0 0 14px;color:#80658d;font-size:12px;letter-spacing:.08em;text-decoration:none}.all-messages-link:hover{text-decoration:underline}.messages-main{max-width:1050px;min-height:100vh;margin:auto;padding:45px 6% 70px}.messages-back{color:#80658d;text-decoration:none;font-size:13px}.messages-back:hover{text-decoration:underline}.messages-heading{text-align:center;padding:38px 0 30px}.messages-heading h1{font-size:30px;font-weight:400;letter-spacing:.16em;margin:0 0 14px}.messages-heading p{color:#998b9f;font-size:13px}.messages-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.messages-grid .note{min-width:0;transform:none;margin:0}.messages-pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin:35px auto 0;color:#80658d;font-size:13px}.messages-pagination[hidden]{display:none}.messages-pagination button{padding:9px 15px;border:1px solid #c9b5d0;background:transparent;color:#80658d;font-family:inherit;cursor:pointer}.messages-pagination button:disabled{opacity:.35;cursor:default}@media(max-width:700px){.messages-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.messages-main{padding:28px 5% 50px}.messages-grid{grid-template-columns:1fr}.messages-heading{padding:30px 0 22px}}

.messages-load-status{text-align:center;color:#998b9f;font-size:12px;min-height:1.5em;margin:12px 0}.messages-pagination button[hidden]{display:none}
/* Theme toggle and night sky */
.theme-toggle{position:fixed;left:24px;bottom:24px;z-index:50;display:grid;place-items:center;width:44px;height:44px;border:1px solid #cbbbd2;border-radius:50%;background:#faf7fb;color:#705a80;font-size:23px;line-height:1;box-shadow:0 4px 16px #3a284122;cursor:pointer}.theme-toggle:hover{transform:translateY(-2px)}.theme-toggle:focus-visible{outline:3px solid #b99fc8;outline-offset:3px}.night-sky{display:none;position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}.night-sky-star{position:absolute;color:#f9e9ba;opacity:.85;line-height:1;text-shadow:0 0 8px #f2d899}.night-sky-star-new{animation:sky-light 1.4s ease-out both}html:not([data-theme="dark"]) .star-card{display:none}html:not([data-theme="dark"]) .memory-extras{grid-template-columns:minmax(0,1fr)}html[data-theme="dark"]{color-scheme:dark}html[data-theme="dark"] body{background:radial-gradient(ellipse at 50% 0%,#302747 0%,#1d1c33 48%,#111522 100%);color:#f1ebf4}html[data-theme="dark"] .night-sky{display:block}html[data-theme="dark"] body>main,html[data-theme="dark"] body>footer{position:relative;z-index:1}html[data-theme="dark"] .theme-toggle{background:#302b45;color:#f4d88e;border-color:#756386}html[data-theme="dark"] .board,html[data-theme="dark"] .memory-card{background:rgba(44,38,59,.94);border-color:#675773}html[data-theme="dark"] .star-card{background:rgba(31,29,50,.9);border-color:#675773}html[data-theme="dark"] .note,html[data-theme="dark"] .note:nth-child(even),html[data-theme="dark"] .photo-board figure{background:#3d344b;border-color:#5d4c69;color:#f1e9f2}html[data-theme="dark"] .note span,html[data-theme="dark"] .note-time,html[data-theme="dark"] .photo-board figcaption{color:#d2c2d7}html[data-theme="dark"] .intro p,html[data-theme="dark"] .nameplate p,html[data-theme="dark"] .offering,html[data-theme="dark"] .countdown p,html[data-theme="dark"] .memory-card p,html[data-theme="dark"] .messages-heading p,html[data-theme="dark"] .messages-load-status{color:#c2b4c9}html[data-theme="dark"] .board-rule,html[data-theme="dark"] .board-footer,html[data-theme="dark"] .countdown,html[data-theme="dark"] .memorial-footer,html[data-theme="dark"] .jiaobei-inline{border-color:#65556c}html[data-theme="dark"] .board-rule{background:#65556c}html[data-theme="dark"] .timer strong,html[data-theme="dark"] .date,html[data-theme="dark"] .memory-draw,html[data-theme="dark"] .all-messages-link,html[data-theme="dark"] .messages-back,html[data-theme="dark"] .messages-pagination,html[data-theme="dark"] .messages-pagination button,html[data-theme="dark"] .offering-action,html[data-theme="dark"] .jiaobei-result{color:#e4d2e8}html[data-theme="dark"] .add-note,html[data-theme="dark"] .pager button{color:#e4d2e8;border-color:#786781}html[data-theme="dark"] .floating-message{background:#312a40f7;color:#f5edf5;border-color:#796484}html[data-theme="dark"] dialog:not(.memory-popup){background:#30293d;color:#f4edf4;border-color:#786781}html[data-theme="dark"] input,html[data-theme="dark"] textarea{background:#241f30;color:#f7f1f7;border-color:#786781}html[data-theme="dark"] .memorial-footer{border-color:#65556c;color:#c3b1c7}html[data-theme="dark"] .footer-credit a{color:#ddc9e5}@media(max-width:600px){.theme-toggle{left:14px;bottom:14px;width:42px;height:42px}}@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}.night-sky-star-new{animation:none}}

.attendance-status{color:#9276a4;font-size:12px;letter-spacing:.08em;margin-top:2px}html[data-theme=dark] .attendance-status{color:#cbb9d3}
.messages-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:0 0 18px;color:#80658d;font-size:12px}.messages-toolbar select{border:1px solid #c9b5d0;background:#faf7fb;color:#604d6c;padding:8px 30px 8px 10px;font:inherit}.message-reactions{display:flex;gap:8px;margin-top:13px}.message-reactions button{border:1px solid #d7c8dd;background:transparent;color:#80658d;border-radius:3px;padding:6px 10px;font:12px inherit;cursor:pointer}.message-reactions button[aria-pressed=true]{background:#9276a4;border-color:#9276a4;color:white}.message-reactions button:disabled{opacity:.5;cursor:wait}#reaction-status:empty{display:none}html[data-theme=dark] .messages-toolbar{color:#e4d2e8}html[data-theme=dark] .messages-toolbar select{background:#30293d;color:#f4edf4;border-color:#786781}html[data-theme=dark] .message-reactions button{color:#e4d2e8;border-color:#786781}html[data-theme=dark] .message-reactions button[aria-pressed=true]{background:#9276a4;color:white}
.message-reactions button,.message-reactions button[aria-pressed=true]{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#80658d;padding:6px 8px;border-radius:0}.message-reactions button i{font-size:15px}.message-reactions button[aria-pressed=true]{color:#a36ab4}.message-reactions button:hover{color:#a36ab4}.message-reactions button:focus-visible{outline:2px solid #9276a4;outline-offset:2px}.message-reactions .reaction-count{color:inherit;font:12px Arial,sans-serif}html[data-theme=dark] .message-reactions button,html[data-theme=dark] .message-reactions button[aria-pressed=true]{border:0;background:transparent;color:#d3c0df}html[data-theme=dark] .message-reactions button[aria-pressed=true],html[data-theme=dark] .message-reactions button:hover{color:#f0c8ff}.theme-toggle i{font-size:18px}.pager button i{font-size:12px}.add-note i{font-size:12px}.memory-popup-close i,.dialog-heading .close i{font-size:22px}.submit i{font-size:11px}
/* Bootstrap form controls adapted to the memorial palette. */
#note-form .form-control{font-family:inherit;font-size:14px;line-height:1.5;border-radius:3px;background-color:#fffdfa;border-color:#e0d6e4;color:#463f48}#note-form .form-control:focus,.messages-toolbar .form-select:focus{border-color:#a98ab8;box-shadow:0 0 0 .2rem rgba(146,118,164,.2)}.messages-toolbar .form-label{margin:0}.messages-toolbar .form-select{width:auto;min-width:145px;font-family:inherit;font-size:12px;border-radius:3px;color:#604d6c;background-color:#faf7fb;border-color:#c9b5d0}html[data-theme=dark] #note-form .form-control{background-color:#241f30;color:#f7f1f7;border-color:#786781}html[data-theme=dark] #note-form .form-control::placeholder{color:#c0b3c6}html[data-theme=dark] .messages-toolbar .form-select{background-color:#30293d;color:#f4edf4;border-color:#786781;--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e4d2e8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}

.messages-toolbar .form-select{background-image:var(--bs-form-select-bg-img);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px}
.offering-hint{margin:8px 0 4px;text-align:center;color:#9d8ba7;font-size:11px;line-height:1.6;letter-spacing:.05em}.offering-action{touch-action:none;user-select:none;-webkit-user-select:none}.offering-action img{-webkit-user-drag:none;user-select:none}.offering-drag-preview{position:fixed;z-index:10000;width:76px;height:76px;object-fit:contain;pointer-events:none;transform:translate(-50%,-50%);filter:drop-shadow(0 5px 8px #34213c66)}.offering-drop-ready{outline:2px dashed #b89ac3;outline-offset:5px;transition:outline-color .15s}.offering-drop-active{outline:3px solid #d0a9dd;outline-offset:5px}.incense-area.offering-drop-ready{border-radius:12px}html[data-theme=dark] .offering-hint{color:#cbb9d3}html[data-theme=dark] .offering-drop-ready{outline-color:#d8b8e7}@media(prefers-reduced-motion:reduce){.offering-drop-ready{transition:none}}
.portrait{display:block;width:100%;touch-action:manipulation}.portrait-inner{display:block}.portrait-switchable{cursor:pointer}.portrait-switchable:focus-visible{outline:3px solid #b994c9;outline-offset:4px}.portrait-switch-hint{margin:9px 0 -8px;color:#a294a8;font-size:11px;letter-spacing:.08em}html[data-theme=dark] .portrait-switch-hint{color:#cbb9d3}

.bgm-controls{position:fixed;right:24px;top:24px;z-index:50;display:flex;align-items:center;gap:4px;padding:4px 10px 4px 4px;border:1px solid #cbbbd2;border-radius:24px;background:#faf7fb;color:#705a80;box-shadow:0 4px 16px #3a284122}.bgm-button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}.bgm-button:hover{background:#e9dfed}.bgm-button:focus-visible,.bgm-volume:focus-visible{outline:3px solid #b99fc8;outline-offset:2px}.bgm-volume{width:90px;height:24px;margin:0;padding:0;border:0;accent-color:#9276a4;cursor:pointer}html[data-theme=dark] .bgm-controls{background:#29243b;border-color:#675a79;color:#e5d8ed}html[data-theme=dark] .bgm-button:hover{background:#453a53}@media(max-width:480px){.bgm-controls{top:12px;right:12px}.bgm-volume{width:70px}}
.hidden-word{display:inline;border:0;padding:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer}.hidden-word:focus-visible{outline:2px solid #9276a4;outline-offset:2px}
.hidden-words-control{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;color:#80658d;font-size:11px;white-space:nowrap}.hidden-words-toggle{position:relative;flex-shrink:0;width:38px;height:21px;padding:0;border:0;border-radius:999px;background:#e5e7ec;cursor:pointer}.hidden-words-toggle::after{content:'';position:absolute;top:2px;left:2px;width:17px;height:17px;border-radius:50%;background:#a4a8b3;transition:transform .18s ease,background-color .18s ease}.hidden-words-toggle[aria-checked=true]::after{transform:translateX(17px);background:#28c486}.hidden-words-toggle:focus-visible{outline:2px solid #b99fc8;outline-offset:2px}.messages-toolbar .hidden-words-control{margin-left:12px}html[data-theme=dark] .hidden-words-control{color:#e4d2e8}html[data-theme=dark] .hidden-words-toggle{background:#5b5367}@media(prefers-reduced-motion:reduce){.hidden-words-toggle::after{transition:none}}
.messages-page .messages-main{width:100%;max-width:none}
.board-left .notes{flex:0 0 auto;max-height:650px;overflow:hidden}.board-left .notes .note{flex-shrink:0}.board-left .notes.notes-oversized{overflow-y:auto;overscroll-behavior:contain}.board-left .board-footer{margin-top:0}
.memorial>.board{align-self:start}
.edit-note{display:inline-block;margin-left:12px;padding:2px 6px;border:0;background:transparent;color:#80658d;font:12px inherit;cursor:pointer}.edit-note:hover{text-decoration:underline}.edit-note:focus-visible{outline:2px solid #9276a4;outline-offset:2px}.edit-note-dialog h2{font-size:22px;font-weight:400}.edit-note-dialog label{display:block}.edit-note-dialog .form-control{margin-top:8px}.edit-note-actions{display:flex;justify-content:flex-end;gap:10px}.edit-note-actions .btn-primary{background:#9276a4;border-color:#9276a4}html[data-theme=dark] .edit-note{color:#e4d2e8}
.note-image{display:block;width:auto;max-width:100%;height:160px;max-height:160px;object-fit:contain;object-position:left center;margin:0 0 12px}
.note-image[hidden]{display:none}
.note-image-frame{position:relative;display:block;width:fit-content;max-width:100%;margin:0 0 12px;padding:0;border:0;background:#62546d;overflow:hidden;cursor:pointer}.note-image-frame[hidden]{display:none}.note-image-frame .note-image{margin:0}.note-image-frame.is-blurred .note-image{filter:blur(12px);transform:scale(1.08)}.note-image-hint{position:absolute;inset:0;display:grid;place-items:center;background:#30253866;color:#fff!important;font-size:12px!important;letter-spacing:.05em}.note-image-hint[hidden]{display:none}.note-image-frame:focus-visible{outline:2px solid #9276a4;outline-offset:3px}
.gallery-tabs{display:flex;gap:10px;justify-content:center;margin:14px 0 0}.gallery-tabs button{border:1px solid #c9b5d0;background:transparent;color:#80658d;padding:7px 15px;cursor:pointer;font-size:12px}.gallery-tabs button[aria-pressed=true]{background:#9276a4;border-color:#9276a4;color:#fff}.gallery-tabs button:focus-visible{outline:2px solid #b99fc8;outline-offset:2px}.photo-board[hidden],.pager[hidden]{display:none}.video-board figure a{display:block;color:inherit;text-decoration:none}.video-board figure img{aspect-ratio:16/9;object-fit:cover}.video-board figcaption{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5}html[data-theme=dark] .gallery-tabs button{color:#e4d2e8;border-color:#786781}html[data-theme=dark] .gallery-tabs button[aria-pressed=true]{background:#9276a4;color:#fff}
.gallery-tabs button{border-radius:999px}

.video-progress { grid-column: 1 / -1; text-align: center; font-size: 12px; opacity: .7; margin: 8px 0; }

.changelog-link{color:#9276a4;text-decoration:none}.changelog-link:hover{text-decoration:underline}.changelog-main{max-width:820px}.changelog-content{padding:28px 32px;background:#eee8f0;border:1px solid #ddd1e1;line-height:1.8}.changelog-content h2{font-size:22px;margin:0 0 24px}.changelog-content h3{font-size:17px;margin:26px 0 10px}.changelog-item{position:relative;padding-left:1.2em;margin:8px 0}.changelog-item:before{content:'•';position:absolute;left:0;color:#a58bae}.changelog-note{font-size:12px;opacity:.75;margin:28px 0 0}html[data-theme="dark"] .changelog-content{background:rgba(44,38,59,.94);border-color:#675773}html[data-theme="dark"] .changelog-link{color:#ddc9e5}@media(max-width:440px){.changelog-content{padding:22px 20px}}

.grave-visit{text-align:center;margin:18px auto 8px}.grave-visit button{border:1px solid #bda8c7;background:transparent;color:#80658d;padding:8px 28px;font:inherit;cursor:pointer}.grave-visit button:disabled{opacity:.6;cursor:default}.grave-visit p{font-size:12px;color:#9b8ba3;margin:8px 0 0}html[data-theme="dark"] .grave-visit button{color:#e4d2e8;border-color:#786781}html[data-theme="dark"] .grave-visit p{color:#c2b4c9}

.grave-wipe{position:absolute;z-index:10;pointer-events:none;width:clamp(70px,24%,100px);height:75px;top:15%;left:8%;background:url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyrguBcUJdZraXSV6BipuaJYRCINvZ0nMZuqDySWYVBmpE8b5EEoV7DKuAfQjJXBo8yEOen5YOjx_dJRuEeIaJz_oHimB_wkidMny0J-gLuFy_JX_vOPrJE3jzFMw9P6hJK5rDrcMhf8k/s800/souji_zoukin.png") center/contain no-repeat;animation:grave-wipe 3.6s ease-in-out both;filter:drop-shadow(0 3px 4px #30203944)}@keyframes grave-wipe{0%{left:8%;top:15%;transform:rotate(-8deg);opacity:0}8%{opacity:1}25%{left:68%;top:24%;transform:rotate(8deg)}45%{left:8%;top:42%;transform:rotate(-8deg)}65%{left:68%;top:60%;transform:rotate(8deg)}85%{left:8%;top:75%;transform:rotate(-8deg);opacity:1}100%{left:45%;top:80%;transform:rotate(0);opacity:0}}@media(prefers-reduced-motion:reduce){.grave-wipe{animation-duration:.01ms}}

.memorial-stone{position:relative;max-width:420px;margin:0 auto 18px;padding:28px 24px 24px;border:1px solid #a999b0;border-radius:150px 150px 8px 8px;background:linear-gradient(135deg,#e9e2ec 0%,#c9bdcf 48%,#ded5e1 100%);box-shadow:inset 0 0 0 7px #ffffff40,0 12px 25px #53445b26;text-align:center}.memorial-stone:after{content:'';position:absolute;left:-4%;right:-4%;bottom:-10px;height:13px;border:1px solid #aa99b0;border-radius:3px;background:#c5b7cb;box-shadow:0 5px 10px #53445b25}.stone-heading{color:#6c5a71;font-size:14px;letter-spacing:.55em;margin:4px 0 14px;padding-left:.55em}.memorial-stone .portrait{max-width:290px;margin:auto;padding:7px;background:#ddd1df}.memorial-stone .portrait-inner{height:auto;aspect-ratio:4/3}.memorial-stone .nameplate{margin:18px 0 0}.memorial-stone .nameplate h2{color:#51435b}.memorial-stone .nameplate p{color:#776880}.memorial-stone .stone-epitaph{margin:12px 0 0;font-size:12px;line-height:1.8;letter-spacing:.1em;color:#6d5d75}.memorial-stone .portrait-switch-hint{margin:7px 0 0}html[data-theme="dark"] .memorial-stone{background:linear-gradient(135deg,#51465c,#393142 55%,#4c4053);border-color:#817086;box-shadow:inset 0 0 0 7px #ffffff0a,0 12px 25px #0004}html[data-theme="dark"] .memorial-stone:after{background:#4a4052;border-color:#817086}html[data-theme="dark"] .stone-heading,html[data-theme="dark"] .memorial-stone .nameplate h2{color:#eee4ed}html[data-theme="dark"] .memorial-stone .nameplate p,html[data-theme="dark"] .memorial-stone .stone-epitaph{color:#d0bfce}@media(max-width:480px){.memorial-stone{padding:24px 18px 20px;border-radius:110px 110px 8px 8px}}

/* Side boards share the memorial stone's rounded silhouette. */
.memorial > .board{border:1px solid #b9a9bd;border-radius:110px 110px 7px 7px;padding-top:68px;background:linear-gradient(145deg,#eee9f0 0%,#ddd3e1 55%,#eae4ed 100%);box-shadow:inset 0 0 0 6px #ffffff3d,0 8px 18px #53445b1c}.memorial > .board:before,.memorial > .board:after{content:none}.memorial > .board .board-head{align-items:flex-start;gap:8px}.memorial > .board .board-head h2{line-height:1.45;overflow-wrap:anywhere}.memorial > .board .board-rule,.memorial > .board .board-footer{border-color:#cbbbd0}.memorial > .board .board-rule{background:#cbbbd0}html[data-theme="dark"] .memorial > .board{background:linear-gradient(145deg,#51465c,#393142 55%,#4c4053);border-color:#817086;box-shadow:inset 0 0 0 6px #ffffff0a,0 8px 18px #0003}@media(max-width:700px){.memorial > .board{border-radius:90px 90px 7px 7px;padding-top:58px}}

.board-left .board-head{flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:0}.board-left .board-head h2{white-space:nowrap;overflow-wrap:normal}.board-left .hidden-words-control{margin-left:auto}

.gallery-tabs{gap:6px;flex-wrap:wrap}.gallery-tabs button{white-space:nowrap;padding:7px 10px;flex:0 0 auto}

.changelog-content h2{display:inline-block;margin:30px 0 10px;padding:5px 14px;border:1px solid #c5b2ce;border-radius:999px;color:#765b84;font-size:15px;letter-spacing:.08em}.changelog-content h2:first-child{margin-top:0}.changelog-content h3{margin-top:12px}.changelog-content .changelog-note{margin:0 0 8px}html[data-theme="dark"] .changelog-content h2{color:#e4d2e8;border-color:#897393}

.grave-certificate-dialog{width:min(90vw,720px);max-width:720px;padding:20px;border:1px solid #c9b5d0;background:#f8f4fa;box-shadow:0 12px 45px #20152566}.grave-certificate-dialog::backdrop{background:#201525aa}.grave-certificate-dialog img{display:block;width:100%;height:auto}.grave-certificate-actions{display:flex;justify-content:center;gap:12px;margin-top:16px}.grave-certificate-actions a,.grave-certificate-actions button{padding:9px 20px;border:1px solid #a78db4;background:transparent;color:#6d557b;text-decoration:none;font:inherit;cursor:pointer}.grave-certificate-actions a{background:#9276a4;color:white}html[data-theme=dark] .grave-certificate-dialog{background:#30293d;border-color:#786781}html[data-theme=dark] .grave-certificate-actions button{color:#eee3f2;border-color:#a58bae}

@media(min-width:481px){.board-left .jiaobei-inline{position:absolute;top:100%;left:0;width:100%;max-width:none;margin:20px 0 0;box-sizing:border-box}.board-left .jiaobei-pair{gap:12px}.board-left .jiaobei-block{width:min(42%,104px)}}@media(max-width:480px){.board-left .jiaobei-inline{position:static;width:100%;margin:24px auto 0}}

.d20-section{text-align:center;border-top:1px solid #ded4e3;padding:20px 12px 12px}.d20-section h2{font-size:21px;font-weight:400;letter-spacing:.12em;margin:0}.d20-hint{color:#a394a3;font-size:12px;line-height:1.7}.d20-button{position:relative;display:block;width:112px;height:112px;margin:15px auto;border:0;background:transparent;cursor:pointer;padding:0}.d20-button:focus-visible{outline:2px solid #9276a4;outline-offset:4px}.d20-button:disabled{cursor:wait}.d20-art{display:block;width:100%;height:100%;filter:drop-shadow(0 5px 6px #53445b40)}.d20-outline{fill:#9276a4;stroke:#6d557e;stroke-width:3;stroke-linejoin:round}.d20-facets{fill:none;stroke:#e8d9ed;stroke-width:1.6;stroke-linejoin:round}.d20-number{position:absolute;inset:0;display:grid;place-items:center;color:white;font:600 25px Georgia,serif;transform:translateY(-2px)}.d20-result{min-height:2em;margin:4px 0 16px;color:#80658d;font-size:14px}.d20-button.is-rolling{animation:d20-roll 1.1s cubic-bezier(.2,.6,.25,1) both}@keyframes d20-roll{0%{transform:translateY(0) rotate(0)}25%{transform:translateY(-24px) rotate(145deg)}55%{transform:translateY(1px) rotate(300deg)}75%{transform:translateY(-9px) rotate(390deg)}100%{transform:translateY(0) rotate(360deg)}}html[data-theme=dark] .d20-section{border-color:#65556c}html[data-theme=dark] .d20-hint,html[data-theme=dark] .d20-result{color:#d2c2d7}@media(min-width:481px){.board-right .d20-section{position:absolute;top:100%;left:0;width:100%;margin:20px 0 0;box-sizing:border-box}}@media(max-width:480px){.board-right .d20-section{position:static;width:100%;margin:24px auto 0}}@media(prefers-reduced-motion:reduce){.d20-button.is-rolling{animation-duration:.01ms}}

/* Anticipation, tumbling, and a settling bounce make the roll easier to follow. */
.d20-button{perspective:600px;transform-style:preserve-3d}.d20-button.is-rolling{animation:d20-tumble 1.6s both}.d20-button.is-rolling .d20-art{animation:d20-light 1.6s both}@keyframes d20-tumble{0%{transform:translateY(0) scale(1) rotate(0)}8%{transform:translateY(5px) scale(1.06,.92) rotate(-8deg);animation-timing-function:cubic-bezier(.2,.8,.3,1)}28%{transform:translateY(-44px) scale(.96,1.04) rotate(135deg) rotateY(30deg);animation-timing-function:cubic-bezier(.6,0,.9,.6)}47%{transform:translateY(2px) scale(1.1,.9) rotate(285deg) rotateY(-20deg);animation-timing-function:ease-out}61%{transform:translateY(-20px) scale(.98,1.02) rotate(390deg) rotateY(20deg);animation-timing-function:ease-in}73%{transform:translateY(1px) scale(1.05,.95) rotate(560deg);animation-timing-function:ease-out}83%{transform:translateY(-7px) rotate(650deg);animation-timing-function:ease-in}91%{transform:translateY(0) scale(1.02,.98) rotate(705deg)}96%{transform:rotate(726deg)}100%{transform:translateY(0) scale(1) rotate(720deg)}}@keyframes d20-light{0%,100%{filter:drop-shadow(0 5px 6px #53445b40) brightness(1)}28%,61%{filter:drop-shadow(0 16px 12px #53445b26) brightness(1.17)}47%,73%{filter:drop-shadow(0 3px 3px #53445b55) brightness(.94)}}@media(prefers-reduced-motion:reduce){.d20-button.is-rolling,.d20-button.is-rolling .d20-art{animation:none}}

.d20-number{color:#fff8ee;text-shadow:0 1px 2px #352542aa;font-weight:700;transform:translateY(1px)}.d20-art{filter:drop-shadow(0 7px 7px #39274355)}

/* Red lacquer and distinct flat and rounded faces for the moon blocks. */
.jiaobei-pair{perspective:500px}.jiaobei-block{position:relative;overflow:hidden;border:2px solid #763437;border-radius:6px 6px 70px 70px;background:linear-gradient(160deg,#dc9692 0%,#bc6364 43%,#914246 100%);box-shadow:inset 0 3px 5px #ffe4d980,inset 0 -8px 10px #632b3266,0 5px 9px #35232c40;transform-style:preserve-3d}.jiaobei-block:before{content:'';position:absolute;left:9%;right:9%;top:7px;height:3px;border-radius:50%;background:#ffe4dc70}.jiaobei-block span{position:relative;z-index:1;color:#fff6e9;text-shadow:0 1px 2px #5b292d;font-size:10px}.jiaobei-block.jiaobei-flat{background:linear-gradient(170deg,#de9b95,#ca7775 55%,#b45f60);box-shadow:inset 0 2px 5px #ffebe377,inset 0 -3px 4px #8b404455,0 5px 9px #35232c40}.jiaobei-block.jiaobei-convex{background:radial-gradient(ellipse at 40% 26%,#e7a6a0 0%,#c97170 36%,#9a484c 80%,#773338 100%);box-shadow:inset 0 3px 6px #ffe3d188,inset 0 -9px 12px #682a32aa,0 5px 9px #35232c40}.jiaobei-block.throwing{animation:moon-left 1.5s both}.jiaobei-block.throwing:nth-child(2){animation:moon-right 1.5s both}@keyframes moon-left{0%{transform:translate(0,0) rotate(-15deg)}10%{transform:translate(1px,5px) rotate(-22deg) scale(1.05,.93)}32%{transform:translate(-12px,-44px) rotate(145deg)}52%{transform:translate(-5px,3px) rotate(290deg) scale(1.06,.94)}68%{transform:translate(-9px,-16px) rotate(320deg)}82%{transform:translate(0,1px) rotate(342deg) scale(1.03,.97)}92%{transform:rotate(350deg)}100%{transform:translate(0,0) rotate(345deg)}}@keyframes moon-right{0%{transform:translate(0,0) rotate(15deg)}10%{transform:translate(-1px,5px) rotate(22deg) scale(1.05,.93)}32%{transform:translate(12px,-49px) rotate(-145deg)}52%{transform:translate(5px,3px) rotate(-290deg) scale(1.06,.94)}68%{transform:translate(9px,-18px) rotate(-320deg)}82%{transform:translate(0,1px) rotate(-342deg) scale(1.03,.97)}92%{transform:rotate(-350deg)}100%{transform:translate(0,0) rotate(-345deg)}}@media(prefers-reduced-motion:reduce){.jiaobei-block.throwing,.jiaobei-block.throwing:nth-child(2){animation:none}}

.incense-photo{width:min(260px,100%);height:225px}.offering-action img{width:75px;height:75px}.offering-hint{font-size:12px}@media(max-width:480px){.incense-photo{width:min(245px,100%);height:210px}.offering-action img{width:70px;height:70px}.offering-actions{gap:16px}}


.mobile-interactions:empty{display:none}@media(max-width:480px){.mobile-interactions{display:grid;gap:12px;margin:24px auto}.mobile-interactions .jiaobei-inline,.mobile-interactions .d20-section{position:static;width:100%;max-width:420px;margin:0 auto;padding:20px 12px 12px}}
