/* R86: paper navigation has its own row; directional leaf light is generated art. */
:root{--sun-texture:url('../assets/generated/r86/paper-128.png?v=content-r86-20261127-1')}
body.modal-open #questDock,body.modal-open #seedHud,body.modal-open .world-location{visibility:hidden;pointer-events:none}
#dailyModal{padding:12px;background:#68432370}
#dailyModal .daily-modal-card{position:relative;isolation:isolate;box-sizing:border-box;overflow:hidden;width:min(600px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:14px 16px 14px 24px;gap:10px;background:#fff6e3 var(--sun-texture);background-size:128px 128px;border:2px solid #8b5e34;border-radius:2px;box-shadow:3px 5px 0 #68432350}
#dailyModal .daily-modal-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:8px;background:url('../assets/generated/r86/binding-8.png') left top/8px 128px repeat-y;pointer-events:none;z-index:-1}
#dailyModal .daily-heading{order:0;flex-shrink:0;padding-bottom:8px}
#dailyModal #basketBanner{order:1;flex-shrink:0}
#dailyModal .journal-links{order:2;display:flex;flex-shrink:0;min-height:44px;gap:8px;margin:0;padding:0;border:0;opacity:1}
#dailyModal .journal-links button{min-height:44px;min-width:44px;opacity:1;flex:1;margin:0;border:1px solid #c7a56a;border-bottom:3px solid #b3874b;border-radius:1px;background:#fff9ec;color:#684323;font-size:14px}
#dailyModal .journal-links button[aria-pressed='true']{border-bottom-color:#d95737;background:#f5dfb0;color:#684323}
#dailyModal #dailyBody{order:3;display:block;flex:0 1 auto;min-height:0;overflow:auto;padding:0;background:transparent;border:0;border-radius:0}
#dailyModal .daily-pager{order:4;flex-shrink:0}
#dailyModal .daily-pager[hidden]{display:none}
#dailyModal #dailyFooter{order:5;flex-shrink:0;padding:0;margin:0;line-height:1.6;font-size:12px;color:#735536;display:block}
#dailyModal #dailyClose{order:6;flex:0 0 auto;position:static;float:none;min-height:48px;min-width:44px;width:100%;margin:0;opacity:1;transform:none}
.daily-kicker{font-size:15px;color:#684323;line-height:1.6}
.daily-chore,.daily-chore.selected{background:#fff9ec}
.daily-task-thumb .chore-stamp{image-rendering:pixelated;transform:rotate(-8deg);animation:r86Seal .28s ease-out both}
@keyframes r86Seal{from{transform:scale(1.45) rotate(-14deg);opacity:.3}to{transform:scale(1) rotate(-8deg);opacity:1}}
.sun-beam{overflow:visible;image-rendering:pixelated}
.sun-beam::before{content:'';display:block;position:absolute;inset:-22% -18% -20% -22%;background:url('../assets/generated/r86/leaf-ground-128.png') center/100% 100% no-repeat;image-rendering:pixelated;pointer-events:none}
.sun-beam .sun-pool{background:none!important}
.sun-beam .leaf-light{background:none!important;box-shadow:none;animation:none!important}
.sun-beam .sun-mote{width:2px;height:2px;opacity:.55;box-shadow:none;background:#fff6c4}
.water-drop-particle{font-size:0!important;width:9px!important;height:12px!important;background:url('../assets/generated/r86/drop-16.png') center/contain no-repeat;image-rendering:pixelated;filter:none}
.sun-particle{width:10px!important;height:10px!important;filter:none}
.canopy-shadow{background-image:url('../assets/generated/r86/canopy-shadow-128.png')!important;background-size:100% 100%!important;background-position:center!important;transform:none!important;opacity:.9!important;filter:none;mix-blend-mode:multiply}
.sunlit-crop{filter:brightness(1.28) saturate(1.16) drop-shadow(-1px -2px 0 #ffe8a3b0);transform:scale(1.14);transform-origin:center bottom}
.player::before{height:9%;width:54%;background:radial-gradient(ellipse,#3e2f2399 0%,#3e2f2355 42%,transparent 74%)}
.sunlit-player .p-sprite{filter:drop-shadow(-1px -1px 0 #ffe8a3);background-blend-mode:normal}
/* Warm hat/shoulder highlights are baked into every new pose, augmented only in light. */
.sunlit-player{--hero-sun:1}
.ob[data-frame^='oak']::after,.ob[data-frame^='fruit_tree']::after{height:9%;background:#3e2f2380;filter:blur(2px)}
.world-location{bottom:calc(var(--world-bottom,86px) + 176px)!important;left:16px!important;padding:3px 6px;background:#3e2f2380;color:#fff6e3;border-radius:1px;font-size:11px}
.sun-titlebar{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:6px}
.world-modal:has(.sun-welcome) .sun-titlebar h2{flex:1;min-width:0;padding:0;margin:0;align-self:center}
body:has(#worldSunBegin) .sun-titlebar .world-modal-close{position:static;float:none;align-self:center;flex:0 0 44px;margin:0;border-radius:1px;width:44px;height:44px;min-width:44px;min-height:44px;background:#fff6e3;border:1px solid #b3874b}
#dailyModal[data-story='true'] .daily-modal-card{background:#fff6e3 var(--sun-texture);width:min(800px,100vw);max-width:100vw;max-height:100dvh;padding:0;gap:0;border:0;box-shadow:none}
#dailyModal[data-story='true'] .daily-modal-card::before{display:none}
#dailyModal[data-story='true'] .journal-links,#dailyModal[data-story='true'] #dailyFooter{display:none}
#dailyModal[data-art-page='heirloom'][data-story='false'] #dailyFooter{display:block}
#dailyModal[data-story='true'] #dailyBody{flex:0 1 auto;padding:0}
#dailyModal[data-story='true'] #dailyClose{width:calc(100% - 40px);margin:12px 20px 20px;min-height:48px}
#dailyModal[data-story='true'] .heirloom-paper::before{padding:16px 24px;font-size:22px}
#dailyModal[data-story='true'] .heirloom-illustration{max-height:32dvh;height:auto;object-fit:contain}
@media(min-height:751px) and (max-width:599px){
 #dailyModal .daily-task-strip{gap:10px;margin:10px 0}
 #dailyModal .daily-chore{padding:10px}
 #dailyModal .daily-task-thumb{min-height:60px;font-size:16px}
 #dailyModal .daily-chore p{font-size:13px;line-height:1.55;margin:5px 0 8px}
 #dailyModal .daily-heading h2{font-size:24px}
 #dailyModal[data-art-page='heirloom'][data-story='false'] .heirloom-illustration{max-height:20dvh;object-fit:contain}
}
@media(max-width:599px) and (max-height:750px){
 #dailyModal .daily-modal-card{padding:10px 10px 10px 18px;gap:6px}
 #dailyModal .daily-heading{padding-bottom:4px}
 #dailyModal .journal-links button{font-size:12px}
 #dailyModal #dailyFooter{font-size:11px;line-height:1.5}
 #dailyModal[data-art-page='heirloom'][data-story='false'] .heirloom-illustration{max-height:100px}
 #dailyModal[data-art-page='heirloom'][data-story='false'] .heirloom-paper>p:not(.wheat-progress){font-size:12px;line-height:1.4;margin:4px 0}
}
@media(min-width:600px) and (max-height:700px){
 #dailyModal .daily-modal-card{width:min(820px,calc(100vw - 24px));padding:10px 14px 10px 24px;gap:6px}
 #dailyModal .daily-heading{padding-bottom:4px}
 #dailyModal .daily-task-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0}
 #dailyModal .daily-task-thumb{font-size:14px;min-height:48px}
 #dailyModal .daily-chore p{font-size:12px;line-height:1.4;margin:6px 0}
 #dailyModal[data-art-page='heirloom'][data-story='false'] .heirloom-illustration{width:42%;height:170px;max-height:170px;float:left;margin:0 16px 8px 0;object-fit:contain}
 #dailyModal .heirloom-choices{clear:right}
 #dailyModal #dailyFooter{font-size:11px}
 #dailyModal #dailyClose{min-height:44px}
}
@media(max-height:520px){
 #dailyModal .daily-modal-card{gap:4px;padding-top:8px;padding-bottom:8px}
 #dailyModal .daily-heading .sun-portrait{width:40px;height:40px}
 #dailyModal .daily-heading h2{font-size:20px}
 #dailyModal .daily-task-thumb{font-size:12px;min-height:44px}
 #dailyModal .daily-chore p{display:none}
 #dailyModal #dailyFooter{font-size:10px}
 #dailyModal[data-art-page='heirloom'][data-story='false'] .heirloom-illustration{height:132px;max-height:132px}
 #dailyModal[data-art-page='heirloom'][data-story='false'] .heirloom-paper>p{font-size:11px;line-height:1.35;margin:4px 0}
 #dailyModal[data-story='true'] .daily-modal-card{padding:10px}
 #dailyModal[data-story='true'] #dailyClose{width:48%;margin:6px 0;float:right;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.chore-stamp{animation:none!important}}
