/* R83: generated pixels in the playable world, daylight and the family journal. */
:root { --sun-texture:url('../assets/generated/r83/paper-128.png?v=content-r86-20261127-1'); }
#mapScene { background-color:#86a554; }
#mapScene::before, #mapScene::after, #groundLayer::before { opacity:.05; }
.gtile.locked-area { filter:saturate(.95) brightness(.98); }
.ob[data-frame^='oak'], .ob[data-frame^='fruit_tree'] { filter:drop-shadow(18px 14px 3px #385c3d55); }
.player { filter:drop-shadow(0 4px 2px #3e2f2355); }
.sun-beam::before { display:none; }
.sun-beam .sun-ray { display:none; }
.sun-beam .sun-pool { inset:-8%; height:auto; background:radial-gradient(ellipse,#fff5b899, #ffe8a34d 45%,transparent 73%) !important; box-shadow:none; }
.sun-beam .leaf-light { position:absolute; width:25%;height:19%;border-radius:50%;background:radial-gradient(ellipse,#fff9cbd9 0%,#ffe8a38c 36%,transparent 74%); animation:leafDrift 5s ease-in-out infinite alternate; }
.leaf-0{left:4%;top:8%}.leaf-1{left:37%;top:-3%;width:34%!important}.leaf-2{left:69%;top:15%}.leaf-3{left:14%;top:36%;width:37%!important}.leaf-4{left:52%;top:39%}.leaf-5{left:78%;top:53%;width:17%!important}.leaf-6{left:-4%;top:67%}.leaf-7{left:32%;top:78%;width:32%!important}.leaf-8{left:68%;top:80%}.leaf-9{left:40%;top:59%;width:15%!important}
.sun-beam .sun-timer{bottom:0;left:20%;right:20%;height:3px}.sun-beam .sun-mote{bottom:35%}
.sunlit-crop { filter:brightness(1.25) saturate(1.12) drop-shadow(0 0 3px #ffe8a399); }
.sun-grown::after { content:'';position:absolute;right:8%;top:8%;width:7px;height:7px;background:#ffe8a3;clip-path:polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%); }
@keyframes leafDrift{to{transform:translate(3px,2px);opacity:.72}}
.daily-modal-card { border:2px solid #8b5e34; border-top:5px solid #d95737; box-shadow:5px 7px 0 #5f3b2455; }
.daily-task-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}
.daily-task-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:98px;min-width:44px;padding:6px 2px;background:#f6e3b6;color:#684323;border:1px solid #b3874b;border-bottom:4px solid #8b5e34;border-radius:1px;line-height:1.35;font-size:12px;}
.daily-task-thumb img{image-rendering:pixelated;object-fit:contain}.daily-task-thumb span{white-space:normal}.daily-task-thumb small{font-size:11px}
.daily-task-thumb[aria-pressed='true']{background:#ffdf8f;border-color:#ae542e;box-shadow:inset 0 3px #d95737}
.daily-task-thumb[aria-pressed='true'] img{filter:drop-shadow(0 1px #fff6e3)}
#dailyPage{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#dailyPrev,#dailyNext{max-width:47%;font-size:12px;background:#f6e3b6;color:#684323;border:1px solid #b3874b;min-width:88px}
.daily-modal-card:has(#dailyPrev) .daily-pager{justify-content:space-between}
.wheat-progress{display:flex;gap:16px;justify-content:center;color:#704524;font-size:12px}
.wheat-progress>span{display:flex;align-items:center;gap:4px}.wheat-slots{display:flex}.wheat-slots img{image-rendering:pixelated}.wheat-slots .empty{opacity:.25;filter:grayscale(1)}
.dialogue-portrait,.reply-portrait{image-rendering:pixelated;object-fit:contain;float:left;margin:0 10px 2px 0;min-width:64px;min-height:64px}
.world-dialogue:has(.dialogue-portrait){min-height:92px;padding-left:10px}.world-dialogue button{color:#684323;background:#f6dfad;border:1px solid #8b5e34}
.grandma-note{float:left;margin:0 12px 6px 0;image-rendering:pixelated}.heirloom-reply{min-height:76px;display:flow-root;padding:8px}
.memory-stamp{display:block;margin:6px 0 0 auto;image-rendering:pixelated;animation:stampDown .3s ease-out both}
@keyframes stampDown{from{opacity:0;transform:scale(1.6) rotate(-12deg)}to{opacity:1;transform:scale(1) rotate(-8deg)}}
#dailyModal[data-story='true'] .daily-tabs{order:5;border:0;gap:6px;padding:0;justify-content:flex-end}
#dailyModal[data-story='true'] .daily-tabs button{background:transparent;color:#80562f;border:0;border-bottom:1px solid #b3874b;min-height:44px;flex:1;font-size:12px}
#dailyModal[data-story='true'] .daily-heading{display:none}
#dailyModal[data-story='true'] .heirloom-illustration{max-height:240px;margin-bottom:10px}
body.modal-open .tool-bar,body.modal-open .side-tabs,body.modal-open .mobile-controls{visibility:hidden;opacity:0}
.daily-open .ui-icon,.side-tabs .i-tab-journal{background-image:url('../assets/generated/r83/note-32.png?v=content-r86-20261127-1');background-size:contain;background-position:center;background-repeat:no-repeat}
.tool-bar .i-tool-water{background-image:url('../assets/generated/r83/water-32.png?v=content-r86-20261127-1');background-size:contain;background-position:center;background-repeat:no-repeat}
.seed-hud .i-crop-wheat{background-image:url('../assets/generated/r83/wheat-32.png?v=content-r86-20261127-1');background-size:contain;background-position:center;background-repeat:no-repeat}
@media(max-width:440px){.daily-task-thumb{font-size:11px;min-height:90px}.daily-task-thumb img{width:34px;height:34px}.wheat-progress{gap:8px}.wheat-progress>span{gap:2px}.wheat-slots img{width:26px;height:32px}.dialogue-portrait{width:56px;height:56px;min-width:56px;min-height:56px}.daily-modal-card{padding:10px}.heirloom-paper p{font-size:13px;line-height:1.5}}
@media(max-height:520px) and (orientation:landscape){.daily-task-strip{gap:4px;margin-bottom:6px}.daily-task-thumb{flex-direction:row;min-height:44px;padding:2px;font-size:11px;gap:3px}.daily-task-thumb img{width:28px;height:28px}.daily-task-thumb small{display:none}.sun-task-icon{width:44px;height:44px}.grandma-note{width:56px;height:56px}#dailyModal[data-story='true'] .heirloom-illustration{max-height:180px}.memory-stamp{display:none}}
@media(prefers-reduced-motion:reduce){.leaf-light,.memory-stamp{animation:none!important}}
@media(min-width:600px) and (max-height:700px){
  #dailyBody:has(.heirloom-paper){padding:6px 10px}
  .heirloom-paper{min-height:136px}
  #dailyBody .heirloom-caption{display:none}
  #dailyBody .heirloom-paper p{font-size:11px;line-height:1.3;margin:2px 0}
  #dailyBody .heirloom-paper h3{font-size:17px;margin:2px 0}
  .heirloom-paper .daily-kicker{font-size:10px}
  .wheat-progress{gap:10px;justify-content:flex-start}
  .wheat-slots img{width:22px;height:24px}
  .heirloom-choices button{min-height:44px;padding:4px 8px}
  #dailyModal[data-art-page='today'] #dailyBody{display:block}
  .daily-task-strip{margin-bottom:5px}
  .daily-task-thumb{flex-direction:row;min-height:44px;padding:2px;gap:4px}
  .daily-task-thumb img{width:28px;height:28px}
  .daily-task-thumb small{display:none}
  .sun-task{gap:8px}.sun-task .daily-copy p{font-size:12px}
}
