/* R87: upper-right sunlight, one readable farmer scale, one three-page journal. */
:root{--sun-texture:url('../assets/generated/r87/paper-128.png')}
body:has(#dailyModal.show) :is(header,#questDock,#seedHud,.world-location){visibility:hidden!important;pointer-events:none}
#worldModal:has(.sun-welcome){background:#68432335}
#dailyModal .daily-modal-card{background-image:var(--sun-texture);padding-left:26px}
#dailyModal .daily-modal-card::before{left:3px;width:8px;background-image:url('../assets/generated/r87/binding-8.png')}
#dailyModal .daily-heading:has(h2:empty){display:none}
#dailyModal[data-art-page='heirloom'][data-story='false'] .daily-heading{display:none}
#dailyModal .journal-links{gap:5px}
#dailyModal .journal-links button{font-size:13px;flex:1 1 0;white-space:nowrap;padding:4px 3px;min-width:44px;min-height:44px}
#dailyModal .journal-links #dailyToday{display:block;margin:0;text-decoration:none;border:1px solid #c7a56a;border-bottom:3px solid #b3874b;background:#fff9ec;color:#684323}
#dailyModal .journal-links #dailyToday[aria-pressed='true']{background:#f5dfb0;border-bottom-color:#d95737}
#dailyModal .heirloom-choice-consequence{display:block;font:11px/1.5 'Microsoft JhengHei',sans-serif;color:#735536;font-weight:400;margin-top:3px;white-space:normal}
/* Story starts at the top of the viewport, not in a vertically centered card. */
#dailyModal[data-story='true']{align-items:flex-start;justify-content:center;padding:0}
#dailyModal[data-story='true'] .daily-modal-card{margin:0;max-height:100dvh;width:min(860px,100vw);background-image:var(--sun-texture)}
#dailyModal[data-story='true'] .heirloom-paper::before{padding:12px 24px;font-size:22px;line-height:1.4}
#dailyModal[data-story='true'] .heirloom-illustration{width:100%;max-height:none;height:auto;aspect-ratio:2/1;object-fit:cover}
#dailyModal[data-story='true'] .heirloom-reply{padding:12px;min-height:76px;margin-bottom:0}
#dailyModal[data-story='true'] #dailyClose{margin-top:14px}
.sun-beam::before{inset:-12% -8% -12% -8%;background-image:url('../assets/generated/r87/leaf-ground.png');opacity:1}
.sun-beam::after{content:'';position:absolute;inset:-12% -8% -12% -8%;background:url('../assets/generated/r87/leaf-light.png') center/100% 100% no-repeat;image-rendering:pixelated;pointer-events:none}
.sun-beam .sun-ray{display:none}
.sun-beam .sun-mote{opacity:.35;width:1px;height:1px}
.canopy-shadow{background-image:url('../assets/generated/r87/canopy-shadow.png')!important;opacity:.8!important;mix-blend-mode:multiply;filter:none}
.sunlit-crop{filter:brightness(1.2) saturate(1.12) drop-shadow(1px -1px 0 #ffe8a3c9);transform:scale(1.18);transform-origin:center bottom}
.sunlit-player .p-sprite{filter:drop-shadow(1px -1px 0 #ffe8a3)}
.player::before{left:50%;bottom:0;width:60%;height:10%;background:radial-gradient(ellipse,#3e2f23a0 0%,#3e2f2355 40%,transparent 74%)}
.ob:is([data-frame^='fruit_tree'],[data-frame='oak'],[data-frame='oak_spring'])::after{content:'';position:absolute;bottom:0;left:26%;width:48%;height:10%;background:radial-gradient(ellipse,#3e2f2380,transparent 72%);filter:none;pointer-events:none}
@media(min-width:600px) and (min-height:701px){
 #dailyModal[data-story='true'] .heirloom-paper::before{padding:18px 28px;font-size:28px}
 #dailyModal[data-story='true'] .heirloom-paper h3{margin-top:20px}
}
@media(min-width:600px) and (min-height:521px) and (max-height:900px){
 #dailyModal[data-story='true'] .heirloom-illustration{height:30dvh;max-height:30dvh;aspect-ratio:auto;object-fit:cover;object-position:center 42%}
}
@media(orientation:portrait) and (min-height:751px){
 #dailyModal[data-story='true'] .heirloom-illustration{aspect-ratio:1.35;height:auto;max-height:46dvh;object-fit:cover;object-position:40% center}
}
@media(orientation:portrait) and (min-width:700px) and (min-height:1000px){
 #dailyModal[data-story='true'] .heirloom-paper>p{font-size:22px;line-height:1.85}
 #dailyModal[data-story='true'] .heirloom-paper h3{font-size:36px}
}
@media(max-height:750px) and (min-height:521px){
 #dailyModal .daily-modal-card{gap:5px}
 #dailyModal .heirloom-choice-consequence{font-size:10px}
}
@media(max-height:520px){
 #dailyModal[data-story='true']{align-items:center}
 #dailyModal[data-story='true'] .daily-modal-card{padding:10px;max-width:calc(100vw - 16px)}
 #dailyModal[data-story='true'] .heirloom-illustration{width:44%;height:230px;float:left;aspect-ratio:auto;object-fit:contain;margin-right:16px}
 #dailyModal .journal-links button{font-size:11px;min-height:44px}
 #dailyModal .heirloom-choice-consequence{font-size:10px;line-height:1.2}
}
