/* Each transition has two editorial lines and a fixed readable measure. */
.page-turn>span{display:block;width:calc(100vw - 44px);max-width:480px;padding:0!important;white-space:pre!important;text-wrap:nowrap!important;word-break:keep-all;overflow-wrap:normal;font-size:clamp(16px,4.4vw,21px)!important;line-height:1.9;letter-spacing:.035em;text-align:center;box-sizing:border-box}
.ema-body{top:39%;height:32%;left:15%;width:67%;font-family:var(--hand)!important;line-height:1.65!important}.ema-body.is-fitted{font-size:clamp(15px,4.35vw,19px)!important;overflow:hidden!important}.ema-body.is-fitted>p{white-space:nowrap;line-height:1.65}.ema-meta,.ema-meta time,.ema-meta span{font-family:var(--hand)!important;font-size:13px!important;line-height:1.6;letter-spacing:0}.ema-meta{left:15%;bottom:17%;right:34%;gap:0}.ema-reactions{position:absolute;bottom:-5px;left:12%;right:10%;display:flex;align-items:center;justify-content:space-between;gap:15px}.ema-like{display:inline-flex;align-items:center;gap:9px;border:0;background:none;color:#5b6852;min-width:62px;min-height:44px;padding:6px 0;font:15px var(--sans)}.ema-like svg{width:21px;height:21px;fill:transparent;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.ema-like[aria-pressed=true]{color:#a65342}.ema-like[aria-pressed=true] svg{fill:currentColor}.ema-remove{padding:8px 0;min-height:44px;border:0;background:none;font:11px var(--sans);color:var(--muted)}.ema-wall{row-gap:48px}.field-count{font-size:11px}.input-warning{min-height:1.8em!important;color:#a65342;font-size:12px!important;margin:7px 0!important}.ema-form .quiet-details{margin-top:30px;font-size:12px}.ema-form .quiet-details p{font-size:12px;line-height:1.9}
.bell-ritual{width:100%;max-width:400px;margin:0 auto;scroll-margin-block:18px}.bell-ritual .painted-bell{max-width:350px;margin:auto}.bell-ritual>.button{width:100%;margin-top:10px}.bell-ritual .quiet-status{min-height:2em;font-size:12px;text-align:center;margin:10px 0 0}.bell-record .bell-comment{font-size:19px;line-height:1.9}.pull-refresh{position:fixed;top:0;left:0;right:0;z-index:180;min-height:70px;padding:18px 20px;display:flex;align-items:center;justify-content:center;gap:13px;background:#fffefa;color:#42513b;transform:translateY(-100%);opacity:0;pointer-events:none;font:12px var(--sans);transition:opacity .2s}.pull-refresh-mark{font-size:28px;line-height:1}.pull-refresh.is-ready{color:#9d5540}.pull-refresh.is-refreshing .pull-refresh-mark{animation:pull-turn 1s linear infinite}.is-web-app{overscroll-behavior-y:contain}@keyframes pull-turn{to{transform:rotate(360deg)}}
@media(max-width:760px){.bell-ritual .painted-bell{width:min(100%,310px)}.bell-ritual>.button{min-height:50px;margin-top:2px}.bell-ritual .quiet-status{font-size:11px}.bell-record .bell-comment{font-size:19px}.ema-meta,.ema-meta time,.ema-meta span{font-size:13px!important}}
@media(prefers-reduced-motion:reduce){.pull-refresh.is-refreshing .pull-refresh-mark{animation:none}}
.arrival-inner .button{padding-inline:18px;gap:12px}.arrival-inner .button span{white-space:nowrap;font-size:12px;letter-spacing:.025em}.arrival-inner .button .icon{width:15px;flex-shrink:0}.arrival-inner>p{font-size:12px;line-height:1.9}

.pull-refresh-mark svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

.bell-ritual>.button{margin-top:24px!important}.prose p{max-width:38em;text-wrap:wrap!important;line-break:strict}.prose h2{text-wrap:balance}@media(max-width:760px){.prose p{font-size:14px;line-height:2;letter-spacing:.015em}.prose h2{font-size:clamp(23px,5.8vw,28px);letter-spacing:.025em}.bell-ritual>.button{margin-top:22px!important}}.goshuin-paper>.goshuin-seal{width:30.5556%!important;left:35.6481%;top:29.0123%}

.prose p,.page-lead,.activity-copy>p{text-wrap:balance!important}.phrase{display:inline-block;white-space:nowrap}.goshuin-paper>.goshuin-seal{width:35.1852%!important;left:26.8519%!important;top:29.0123%!important}

.ema-meta,.ema-meta time,.ema-meta span{color:var(--ink)!important;font-weight:400!important;opacity:1!important;font-family:var(--hand)!important}.ema-meta{bottom:20.5%!important}.field-count{display:flex;flex-wrap:wrap;gap:6px 15px}.field-count>span:first-child{font-size:10px}#ema-layout-note{font-size:11px;line-height:1.8}

.writing-workspace{min-width:0}.writing-workspace .tool-row{display:flex;justify-content:space-between;gap:20px;margin:14px 0 0;padding:0 5px}.writing-workspace .tool-row button{min-height:44px}.seasonal-ema{background-image:url('/tariki-honganji/site/assets/goshuin-months-v10.webp')!important;background-size:400% 300%!important;background-position:var(--month-x) var(--month-y)!important;isolation:isolate}.seasonal-ema:before{content:'';position:absolute;inset:0;background:url('/tariki-honganji/site/assets/ema-board-v15.webp') center/100% 100% no-repeat;z-index:-1;pointer-events:none}.seasonal-ema .ema-body{top:41%;height:28%}.seasonal-ema .ema-meta{bottom:20.5%!important}.seasonal-ema .ema-reactions{bottom:-7px}.writing-workspace .writing-paper{width:100%}

.writing-workspace{min-width:0}.writing-workspace>.tool-row{display:flex;justify-content:space-between;gap:20px;margin:14px 0 0;padding:0 5px}.writing-workspace>.tool-row button{min-height:44px}.ema-plaque{background-image:url('/tariki-honganji/site/assets/goshuin-months-v10.webp')!important;background-size:400% 300%!important;background-position:var(--month-x) var(--month-y)!important;isolation:isolate}.ema-plaque:before{content:'';position:absolute;inset:0;background:url('/tariki-honganji/site/assets/ema-board-v15.webp') center/100% 100% no-repeat;z-index:0;pointer-events:none}.ema-plaque>.ema-body{top:45%;height:27%;z-index:1}.ema-plaque>.ema-meta{bottom:14%!important;z-index:1}.ema-reactions{z-index:1}.ema-body.is-fitted{font-size:clamp(15px,4.35vw,19px)!important}

#result-lucky{display:block;width:100%;text-align:center!important;margin-inline:auto}#ticket-number,#slip-number{font-family:var(--hand)!important;font-size:13px}.ema-plaque:before{background-image:url('/tariki-honganji/site/assets/ema-board-v16.webp');background-size:100% 100%!important;background-position:center!important}.ema-plaque:after{content:'';position:absolute;left:57%;top:48%;width:40%;height:45%;background:url('/tariki-honganji/site/assets/ema-flowers-v16.webp') var(--month-x) var(--month-y)/400% 300% no-repeat;pointer-events:none;z-index:0}

/* Cat pet action: centered label without a directional cue. */
#cat-pet{justify-content:center;text-align:center}#cat-pet .icon,#cat-pet::before,#cat-pet::after{display:none}

/* Arrival heading and monthly music presentation. */
.arrival-inner h2{white-space:nowrap;font-size:clamp(18px,5vw,30px);letter-spacing:.025em}
#monthly-track:has(.monthly-track-copy){display:flex;align-items:flex-start;gap:24px;min-width:0}
.monthly-artwork{width:clamp(110px,17vw,180px);height:auto;aspect-ratio:1;object-fit:contain;flex:none}
.monthly-track-copy{flex:1;min-width:0}
#monthly-track .monthly-track-copy h3{margin:0 0 10px;overflow-wrap:anywhere}
#monthly-track .monthly-artist{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 20px;font-size:13px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}
.monthly-artist-label{font:9px var(--sans);letter-spacing:.14em}
@media(max-width:760px){.painted-basin #washed-words{padding:22% 18%;font-size:24px}#monthly-track:has(.monthly-track-copy){gap:18px}.monthly-artwork{width:112px}}
@media(max-width:420px){#monthly-track:has(.monthly-track-copy){flex-wrap:wrap}.monthly-artwork{width:132px}.monthly-track-copy{flex-basis:100%}}

/* Haiku stamp: larger, with its lower edge meeting the illustration. */
.poem-paper .small-seal{width:14.8148%;height:auto;aspect-ratio:1;right:13.8889%;bottom:30.7292%}

/* Jacket tap preview; no visible instruction text. */
.artwork-trigger{display:block;padding:0;border:0;background:transparent;cursor:zoom-in;line-height:0}
.artwork-trigger>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.artwork-trigger:focus-visible{outline:2px solid var(--green);outline-offset:5px}
.artwork-zoom{position:fixed;inset:0;margin:auto;padding:0;border:0;background:transparent;max-width:92vw;max-height:88dvh;width:max-content;height:max-content;overflow:hidden;cursor:zoom-out}
.artwork-zoom::backdrop{background:rgba(0,0,0,.82)}
.artwork-zoom>img{display:block;width:auto;height:auto;max-width:92vw;max-height:88dvh;object-fit:contain}
.painted-basin #washed-words{color:#172b25;text-shadow:0 0 2px #fffdf4,0 1px 5px #fffdf4,0 0 9px #fffdf4}

/* Center wrapped water text and keep the jacket modal inside mobile/PWA viewports. */
.painted-basin #washed-words{text-align:center;justify-content:center;align-content:center}
.artwork-zoom{inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;box-sizing:border-box;touch-action:manipulation}
.artwork-zoom[open]{display:grid;place-items:center}
.artwork-zoom>img{max-width:92vw;max-height:88dvh;margin:auto;touch-action:manipulation}

/* Keep mobile cover taps native, without long-press image interception. */
.artwork-trigger,.artwork-zoom{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.artwork-trigger>img,.artwork-zoom>img{pointer-events:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.page-turn,.ritual-white,.welcome-bridge{backface-visibility:hidden}

/* Let prose fill the available line width instead of balancing line lengths. */
p,.prose p,.page-lead,.activity-copy p,#monthly-track p{ text-wrap:wrap!important; }
.prose p,.monthly-track-copy>p:last-child{text-align:start;text-align-last:auto}

/* Consistent prose tracking; inline phrases follow the same line width. */
.phrase{display:inline;white-space:normal;font:inherit;letter-spacing:inherit}
.prose p,.monthly-track-copy>p:last-child{word-spacing:normal;letter-spacing:.04em;text-align:start;text-align-last:auto}
.resident-link>.keisaku-resident{background:none;object-fit:contain;width:100px;height:84px;aspect-ratio:auto}
.keisaku-overview{position:relative}.keisaku-overview>img:first-child{display:block;width:100%}
.keisaku-overview>.keisaku-overview-resident{position:absolute;left:31.9%;top:28.5%;width:7.2%;height:auto;max-height:none;border:0}
.keisaku-figure{margin:0;text-align:center}.keisaku-art{display:block;width:100%;max-width:500px;height:auto;margin:auto;transform-origin:65% 80%}
.keisaku-figure figcaption{font:12px/1.8 var(--sans);color:var(--muted);margin-top:20px}
.keisaku-quote{margin:22px 0 30px;padding:0;border:0;min-height:4.8em;font:clamp(24px,3vw,34px)/1.85 var(--hand);letter-spacing:.04em;text-wrap:wrap;overflow-wrap:anywhere}
.keisaku-copy .button{justify-content:center;text-align:center;width:100%;max-width:340px}
.keisaku-copy .field-note{margin-top:22px}
@media(max-width:760px){.keisaku-art{max-width:360px}.keisaku-layout{gap:24px}.keisaku-quote{font-size:27px;min-height:4em}.keisaku-copy .button{max-width:none}}

/* Smaller spoken lines; preserve explicit sentence breaks without changing tracking. */
.keisaku-quote{font-size:clamp(21px,2.2vw,26px);white-space:pre-line}
@media(max-width:760px){.keisaku-quote{font-size:22px}}
