/* A room that follows the light, with a small handwritten-feeling journal. */
.scene-background{transition:filter 2s ease}
.scene[data-time="morning"] .scene-background{filter:brightness(1.07) saturate(.88)}
.scene[data-time="evening"] .scene-background{filter:sepia(.18) saturate(1.18) brightness(.86)}
.scene[data-time="night"] .scene-background{filter:brightness(.49) saturate(.62)}
.scene[data-time="night"] .scene-shade{background:linear-gradient(125deg,#213b6270,#30274850 60%,#17234185)}
.scene[data-time="night"] .fairy{filter:drop-shadow(0 0 18px #fff2beaa)}
.ambient-glow{position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse at 64% 65%,#ffe5a224,transparent 55%);opacity:0;transition:opacity 2s}
.scene[data-time="night"] .ambient-glow{opacity:1}
.scene.sleeping .scene-shade{background:#202f5070}
.food-dish{position:absolute;z-index:3;left:calc(var(--cat-x,44%) + 6%);top:79%;color:#8d6238;background:#ffedbd;border:2px solid #d4b36d;border-radius:50%;width:42px;height:26px;display:none;place-items:center;box-shadow:0 4px 7px #30271b33;transform:rotate(-4deg)}
.food-dish svg{height:25px;width:28px}.feeding .food-dish{display:grid;animation:dish-in .3s ease-out}
.care-reward{position:absolute;left:50%;top:58%;transform:translate(-50%,-50%);z-index:12;padding:8px 15px;white-space:nowrap;border-radius:20px;color:#285c50;background:#fffceaeF;box-shadow:0 3px 15px #332b2222;font-size:14px;animation:care-reward 2s ease-out forwards}
.little-days{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}
.wish-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px}
.wish-card .section-heading{margin-bottom:14px}.wish-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.wish-list li{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.6}
.wish-check{width:21px;height:21px;border:1px solid #b5beac;border-radius:50%;display:grid;place-items:center;color:transparent;flex:none}
.wish-check svg{width:14px;height:14px}.wish-list .done .wish-check{color:#fff;background:#53765f;border-color:#53765f}.wish-list .done{color:var(--muted)}
.wish-note{font-size:12px;line-height:1.7;color:var(--muted);margin-top:15px;padding-top:12px;border-top:1px solid #e4e5d9}
.journal-teaser{background:#efe7d5;border:1px solid #e0d5bd;border-radius:18px;text-align:left;display:flex;align-items:center;gap:19px;padding:24px;position:relative;overflow:hidden}
.journal-teaser:hover{background:#e9e0cc}.journal-teaser:active{transform:scale(.993)}
.journal-book{display:grid;place-items:center;width:54px;height:76px;flex:none;background:#5f7964;color:#eee2c0;border-radius:3px 9px 9px 3px;box-shadow:3px 4px 0 #faf5e7,6px 7px 0 #d5c8ad;transform:rotate(-7deg);border-left:6px solid #46614f}.journal-book svg{width:28px;height:28px}
.journal-copy{display:grid;gap:8px}.journal-copy small{font-size:12px;color:#746542}.journal-copy b{font-family:"Yu Mincho",serif;font-size:19px;line-height:1.5;font-weight:600}.journal-copy>span{font-size:14px;color:#676d5e;line-height:1.85;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.journal-arrow{font-size:30px;color:#6f805e;margin-left:auto}
#journal-new{font-size:11px;white-space:nowrap;padding:3px 6px;border-radius:6px;background:#fff9e4;margin-left:5px;color:#795e22}
.journal-intro{color:var(--muted);font-size:14px!important;margin-bottom:24px}.journal-entry{padding:0 0 23px 20px;border-left:1px solid #d7d8c3;margin-left:9px;position:relative}
.journal-entry:before{position:absolute;content:"";width:9px;height:9px;border-radius:50%;background:#849b77;top:6px;left:-5px;border:2px solid #fffdf5}.journal-entry time{font-size:12px;color:var(--muted)}.journal-entry h3{font-family:"Yu Mincho",serif;font-size:19px;margin:8px 0;line-height:1.5}.journal-entry p{font-size:15px;line-height:1.95}.journal-empty{padding:16px 0;color:var(--muted)}
#memory-dialog{overflow:auto}
#welcome-dialog{padding:0;max-width:460px;overflow:auto}.welcome-art{height:180px;position:relative;overflow:hidden}.welcome-art>img:first-child{height:100%;width:100%;object-fit:cover;object-position:50% 70%}.welcome-cat,.welcome-fairy{position:absolute;object-fit:contain;bottom:3%;height:70%;width:38%;left:24%;opacity:.9}.welcome-fairy{height:55%;width:30%;left:51%;bottom:9%}
.welcome-body{padding:26px;text-align:center}.welcome-body .eyebrow{font-size:12px}.welcome-body h2{font-size:23px;margin-bottom:12px}.welcome-body p{font-size:15px;line-height:1.9;margin-bottom:22px}.welcome-body small{font-size:12px;color:var(--muted);display:block;margin-top:8px}
#welcome-sound{display:flex;align-items:center;justify-content:center;gap:9px}.quiet-button{display:block;width:100%;border:0;background:transparent;min-height:48px;color:var(--muted);font-size:14px;margin-top:6px}
.action.is-suggested{box-shadow:inset 0 0 0 2px #8a9e68}.action.is-suggested:after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;right:9px;top:9px;background:#648458}
.action.sleep.is-active{--sleep-progress:0%;background:linear-gradient(to right,#cbded3 var(--sleep-progress),#e8eee8 var(--sleep-progress))}
:root[data-reduce-motion="true"] *,:root[data-reduce-motion="true"] *:before,:root[data-reduce-motion="true"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
:root[data-reduce-motion="true"] .sun-dust,:root[data-reduce-motion="true"] .particle,:root[data-reduce-motion="true"] .floor-ripple{display:none}
@keyframes care-reward{0%{opacity:0;transform:translate(-50%,5px) scale(.9)}15%,65%{opacity:1}100%{opacity:0;transform:translate(-50%,-45px)}}
@keyframes dish-in{from{opacity:0;transform:translateY(8px) rotate(-4deg)}to{opacity:1;transform:translateY(0) rotate(-4deg)}}
@media(max-width:760px){
 .greeting{padding:14px 0 12px}.greeting .eyebrow{display:none}.greeting h2{font-size:21px}.game-tools{margin-bottom:10px}
 .scene{height:clamp(245px,40svh,390px)}.speech{font-size:14px}
 .care-message{font-size:14px}.care-title h2,.action b{font-size:14px}.need>div{font-size:13px}.save-note{font-size:12px}
 .little-days{grid-template-columns:1fr;gap:12px;margin-top:16px}.wish-card{padding:18px}.journal-teaser{padding:22px 18px}.journal-copy b{font-size:18px}
 .memory-tile b{font-size:14px}.memory-grid{gap:10px}.memory-tile{padding:14px 10px;align-items:flex-start}.memory-tile .memory-icon{width:26px;height:26px}
 .memories{padding-top:22px}.game-tools button{font-size:13px}.action.sleep.is-active small{display:block;font-size:11px;line-height:1}
 .action.sleep.is-active .action-icon{display:none}.journal-book{width:47px;height:65px}.welcome-body{padding:24px 21px}
}
@media(max-width:360px){.greeting{align-items:center}.greeting h2{font-size:18px;letter-spacing:.02em}.days{font-size:12px}.journal-copy b{font-size:17px}.scene{height:245px}.little-days .section-heading h2{font-size:14px}}
@media(prefers-reduced-motion:reduce){.care-reward{animation:none}.ambient-glow{transition:none}}
.journal-tabs{margin:4px 0 16px}.journal-tabs button{position:relative}.journal-tabs .dress-new{top:6px;right:8px}.note-write{display:grid;gap:8px;padding:16px;border-radius:14px;background:#f6f0e0;border:1px solid #e6dcc2;margin-bottom:22px}.note-write label{font-family:"Yu Mincho",serif;font-size:17px;font-weight:600;color:#4b4a36}.note-write textarea{width:100%;min-height:96px;resize:vertical;padding:10px 12px;border:1px solid #d8cfb4;border-radius:10px;background:#fffdf6;font:inherit;font-size:16px;line-height:1.8;color:#34443a}.note-write textarea:focus-visible{outline:3px solid #c99738;outline-offset:2px}.note-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.note-actions .primary-button{width:auto;flex:0 0 auto;min-width:120px;padding-inline:22px}.note-count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.note-status{font-size:13px!important;color:#5a6a50;min-height:1.5em;margin:0}.note-entry{padding:0 0 22px 20px;border-left:1px solid #d7d8c3;margin-left:9px;position:relative}.note-entry:before{position:absolute;content:"";width:9px;height:9px;border-radius:50%;background:#c9a661;top:6px;left:-5px;border:2px solid #fffdf5}.note-entry time{font-size:12px;color:var(--muted)}.note-entry p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.85;margin:6px 0 4px;color:#3b4538}.note-marks{display:flex;align-items:center;gap:6px;min-height:26px;color:#a8844a}.note-marks svg{width:20px;height:20px}.note-marks .mark-paw{color:#b98f63;transform:rotate(-12deg)}.note-marks .mark-crumb{color:#e0a3b5}.note-marks .mark-sparkle,.note-marks .mark-star{color:#d9b24a}.note-marks .mark-heart{color:#e0857a}.note-marks .mark-leaf{color:#7f9d72}.note-marks small{font-size:11px;color:var(--muted)}.note-delete{margin-left:auto;border:0;background:none;color:#8a8f82;font-size:12px;padding:6px 4px;min-height:32px;text-decoration:underline}.note-delete[data-armed="true"]{color:#b0493b;font-weight:600}
.note-count.over{color:#b0493b;font-weight:700}.note-pics{display:flex;align-items:center;gap:6px}
.care-sub{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-self:start;align-self:start;min-width:0}.name-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid #d8cfb4;background:#fffdf6;color:#4b4a36;border-radius:20px;padding:4px 10px;font-size:12px;min-height:32px;max-width:100%;white-space:nowrap}.name-chip svg{width:14px;height:14px}.name-chip:hover{background:#f6f0e0}.name-chip.unnamed{color:#6d5a2c;border-style:dashed}
#name-dialog{max-width:430px}#name-dialog h2{margin-bottom:10px}.name-write{display:grid;gap:8px;margin:14px 0 18px}.name-write label{font-weight:600;font-size:14px;color:#4b4a36}.name-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}.name-row input{min-width:0;width:100%;padding:10px 12px;border:1px solid #d8cfb4;border-radius:10px;background:#fffdf6;font:inherit;font-size:19px;letter-spacing:.06em;color:#34443a}.name-row input:focus-visible{outline:3px solid #c99738;outline-offset:2px}#name-random{width:auto;margin:0;min-height:48px;padding:0 15px;border:1px solid #d8cfb4;border-radius:10px;color:#4b4a36;background:#f6f0e0;font-size:14px}.name-help{font-size:13px!important;line-height:1.6!important;color:var(--muted);margin:0;min-height:1.6em}.name-help.error{color:#b0493b;font-weight:600}
.name-label-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.name-count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.name-count.over{color:#b0493b;font-weight:700}
