.rt-oldfarmer{--rt-color:#a16a28;--rt-accent:#8bb765;--rt-paper:#fff9e8;--rt-paper-end:#fff9e8}
html .rt-oldfarmer.rt-badge .rt-art{width:34px;height:34px;background:none}
html .rt-oldfarmer.rt-badge .rt-art img{visibility:visible;object-fit:contain}
/* Shared text padding and height: decoration uses the existing outer trim space. */
html .cm-text.rt-anime.rt-bubble.rt-oldfarmer{--rt-paper:#fff9e8;--rt-paper-end:#fff9e8;max-width:min(640px,100%);min-height:0;margin:4px 0;padding:7px 12px}
html .cm-text.rt-anime.rt-bubble.rt-oldfarmer::before{background:var(--rt-paper)}
html .rt-oldfarmer>.rt-detail{overflow:visible}
.rt-oldfarmer .rt-harvest-frame{inset:-2px -3px;border:1px solid #bba16d;border-radius:inherit;box-sizing:border-box}
/* Full-size invisible carriers follow any text width/height with transforms.
   No JS measurement, layout animation or stretched illustration is necessary. */
.rt-harvest-belt{inset:-9px;overflow:hidden}
.rt-harvest-belt b{position:absolute;left:5px;top:6px;width:calc(100% - 10px);height:calc(100% - 12px);display:block;opacity:0;animation-duration:9s;animation-timing-function:linear;animation-delay:var(--cargo-delay,0s);animation-iteration-count:infinite}
.rt-harvest-belt b::before{content:'';position:absolute;left:0;top:0;background-position:center;background-size:contain;background-repeat:no-repeat;transform:translate(-50%,-50%)}
.rt-harvest-carrot{animation-name:harvest-carrot-trip}
.rt-harvest-carrot::before{width:8px;height:11px;background-image:url('/assets/farm-memorial/carrot-v3.svg')}
.rt-harvest-coin{animation-name:harvest-coin-trip}
.rt-harvest-coin::before{width:6px;height:6px;background-image:url('/assets/farm-memorial/coin-v3.svg')}
.rt-harvest-warehouse{right:-9px;top:-8px;width:18px;height:17px;background:url('/assets/farm-memorial/warehouse-v3.svg') center/contain no-repeat;z-index:2}
.rt-harvest-farmer{left:-13px;bottom:-6px;width:20px;height:19px;background:url('/assets/farm-memorial/farmer-v3.svg') center/contain no-repeat;z-index:2}
.rt-harvest-appeal{left:calc(100% + 7px);top:11px;bottom:0;width:9px;overflow:hidden;contain:paint;color:#9a642b;opacity:0;animation:harvest-appeal var(--appeal-duration,30s) linear var(--appeal-delay,0s) infinite}
.rt-harvest-appeal b{display:block;writing-mode:vertical-rl;white-space:nowrap;font:500 8px/9px var(--font,system-ui);letter-spacing:1px;animation:harvest-scroll var(--appeal-duration,30s) linear var(--appeal-delay,0s) infinite}
html[data-theme=dark] .cm-text.rt-anime.rt-bubble.rt-oldfarmer{--rt-paper:#29372c;--rt-paper-end:#29372c;color:#f3ecd7}
[data-theme=dark] .rt-oldfarmer .rt-harvest-frame{border-color:#a5905b}
[data-theme=dark] .rt-harvest-appeal{color:#e0bc7c}
html .rt-oldfarmer.rt-title.u-title[class]{background:#fff4d9;border-color:#b79045;color:#795025;box-shadow:none}
html[data-theme=dark] .rt-oldfarmer.rt-title.u-title[class]{background:#3c3525;color:#f1d197;border-color:#a38b55}
html .rt-oldfarmer.rt-title .rt-level{background:#9b7334}
html .rt-oldfarmer.rt-title .rt-title-emblem{color:#d67a27}
/* Five carrots and two coins follow their own continuous paths along the frame. */
@keyframes harvest-carrot-trip{0%{transform:translate(0,100%);opacity:0}2%{opacity:1}28%{transform:translate(0,0)}98%{transform:translate(100%,0);opacity:1}100%{transform:translate(100%,0);opacity:0}}
@keyframes harvest-coin-trip{0%{transform:translate(100%,0);opacity:0}2%{opacity:1}28%{transform:translate(100%,100%)}98%{transform:translate(0,100%);opacity:1}100%{transform:translate(0,100%);opacity:0}}
@keyframes harvest-appeal{0%,65%,100%{opacity:0}69%,91%{opacity:1}95%{opacity:0}}
@keyframes harvest-scroll{0%,65%{transform:translateY(65px)}95%,100%{transform:translateY(-125px)}}
.cm-row:not([data-bubble-live=true]) .rt-oldfarmer .rt-detail *{animation:none!important}
.cm-row:not([data-bubble-live=true]) .rt-harvest-appeal,html:is([data-bubble-motion=pause],[data-page-hidden=true]) .rt-harvest-appeal{display:none}

@media(max-width:600px){html .rt-oldfarmer.rt-badge .rt-art{width:30px;height:30px}}
