:root{color-scheme:light;font-family:"Hiragino Sans","Yu Gothic",Meiryo,system-ui,sans-serif;color:#262e27;background:#eae5d9;--green:#417235;--dark:#264b28;--cream:#fffcf6}
*{box-sizing:border-box}
body{margin:0}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible{outline:3px solid #497739;outline-offset:3px}
button:disabled{cursor:default}
.app{max-width:570px;min-height:100dvh;margin:0 auto;background:#f6eadc;position:relative;box-shadow:0 8px 54px #33291720;padding-bottom:calc(80px + env(safe-area-inset-bottom))}
.room{height:clamp(350px,110vw,535px);position:relative;overflow:hidden;isolation:isolate;background:#eedec5}
.room-picture{width:100%;height:100%;object-fit:cover;object-position:center 67%;display:block}
.room-header{position:absolute;top:max(14px,env(safe-area-inset-top));left:14px;right:14px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.wordmark,.streak{min-height:49px;border:0;display:flex;align-items:center;justify-content:center;border-radius:80px;background:#fffdf6ed;box-shadow:0 4px 12px #654b281b}
.wordmark{gap:9px;padding:7px 17px 8px;color:var(--dark);font-size:clamp(1.47rem,6vw,2.1rem);font-weight:820;letter-spacing:.07em;white-space:nowrap}
.leaf{width:23px;height:14px;display:block;position:relative;background:linear-gradient(154deg,#a3cc58,#5c8d2d);border-radius:90% 13% 90% 13%;transform:rotate(-34deg)}
.leaf::after{content:"";background:#f5efd3;position:absolute;width:20px;height:1px;left:1px;top:7px;transform:rotate(-13deg)}
.streak{gap:5px;padding:7px 12px;font-weight:730;font-size:.83rem;white-space:nowrap}
.streak strong{font-size:1.25rem}
.speech{position:absolute;right:17px;top:25%;max-width:65%;padding:13px 17px;background:#fffdf8f8;border-radius:21px;box-shadow:0 5px 17px #4a332116;text-align:center;font-weight:760;line-height:1.55;font-size:clamp(.87rem,3.7vw,1.12rem);z-index:2;overflow-wrap:anywhere}
.speech::after{content:"";position:absolute;bottom:-9px;right:30px;width:19px;height:18px;background:#fffdf8;clip-path:polygon(0 0,100% 0,83% 100%)}
.pet{position:absolute;left:19%;top:40%;width:63%;height:57%;border:0;background:transparent;border-radius:50%}
.heart{position:absolute;top:49%;left:62%;font-size:1.8rem;pointer-events:none;color:#e38078;opacity:0;transform:translateY(12px);transition:opacity .24s,transform .35s}
.heart.visible{opacity:1;transform:translateY(-8px)}
.content{position:relative;margin-top:-17px;padding:0 12px 17px;z-index:3}
.week-card{background:var(--cream);padding:16px 14px 13px;border-radius:24px;box-shadow:0 5px 17px #63513310}
.week-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:15px}
h1,h2,h3{margin:0;font-weight:780}
h1{font-size:clamp(.94rem,4.1vw,1.24rem);white-space:nowrap}
.count{font-size:.8rem;color:#4e6345;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700}
.days{padding:0;margin:0 1px 13px;list-style:none;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.day{display:flex;flex-direction:column;align-items:center;gap:6px;color:#514e43;font-size:.79rem;font-weight:690;min-width:0}
.dot{width:clamp(25px,8.4vw,37px);aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:#fffefa;border:2px solid #e8e3d8;color:#fff;font-size:.98rem;font-weight:850}
.day.done .dot{background:#649744;border-color:#649744}
.day.today:not(.done) .dot{border-color:#75935e}
.reward{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;text-align:left;width:100%;min-height:49px;padding:7px 12px;border:0;border-radius:15px;background:#fcf2da;font-size:clamp(.79rem,3.5vw,.97rem);font-weight:780}
.gift{font-size:1.35rem}.chev{width:8px;height:8px;border:solid #577446;border-width:2px 2px 0 0;transform:rotate(45deg);margin:0 3px}
.actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}
.tile{display:grid;place-items:center;align-content:center;gap:5px;min-height:96px;padding:7px 2px;background:#fffbf5;border:1px solid #fff8f0;border-radius:20px;text-align:center;font-weight:760;font-size:clamp(.78rem,3.6vw,.98rem);line-height:1.34;box-shadow:0 3px 10px #7a502915}
.tile.primary{background:#f5f7ed;border-color:#a8c18d;color:#365733}
.tile-icon{font-size:1.53rem;line-height:1.2}.tile:hover,.reward:hover{filter:brightness(.97)}
.nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,570px);z-index:5;display:grid;grid-template-columns:repeat(4,1fr);background:#fffdf7;padding:6px 9px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #eae1d4;box-shadow:0 -5px 22px #573e2710}
.nav-button{background:transparent;border:0;border-radius:18px;padding:4px 0;min-height:50px;display:grid;justify-items:center;align-content:center;gap:1px;font-size:.73rem;line-height:1.25;font-weight:690}
.nav-button span{font-size:1.45rem;line-height:1.05;font-weight:800}.nav-button.is-active{background:#e9f0df;color:#315f2a}
.sheet{box-sizing:border-box;width:min(100%,570px);max-width:none;border:0;border-radius:26px 26px 0 0;padding:17px 17px calc(22px + env(safe-area-inset-bottom));margin:auto auto 0;max-height:85dvh;background:var(--cream);color:inherit;box-shadow:0 -12px 45px #382d2730}
.sheet::backdrop{background:#26291f65}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #ebe6db}
.sheet h2{font-size:1.2rem}.close{width:40px;height:40px;border:0;border-radius:50%;background:#efece3;font-size:1.6rem;line-height:1}
.sheet p{font-size:.94rem;line-height:1.65;margin:12px 0;color:#4b5346}
.sheet .cta{width:100%;padding:13px 10px;min-height:44px;border-radius:15px;border:0;background:#446d37;color:#fff;font-weight:770}
.sheet .cta:disabled,.item-action:disabled{background:#e9eadf;color:#4d5947}
.list{list-style:none;margin:8px 0;padding:0;display:grid;gap:8px}
.item-row,.record-row{display:grid;align-items:center;gap:9px;border:1px solid #eee5d7;border-radius:14px;padding:9px}
.item-row{grid-template-columns:54px minmax(0,1fr) auto}.item-row img{width:54px;height:54px;object-fit:cover;border-radius:9px}
.item-name,.record-row strong{font-size:.9rem}.item-description{font-size:.78rem;line-height:1.35;color:#575f52;margin-top:4px}
.item-action{border:0;padding:7px 9px;border-radius:10px;background:#e7eedf;font-size:.77rem;font-weight:760;color:#315c2e;min-height:35px;white-space:nowrap}.record-row{grid-template-columns:auto 1fr}.record-row time{text-align:right}
.reward-card{display:grid;grid-template-columns:74px 1fr;align-items:center;gap:12px;margin:12px 0}.reward-card img{width:74px;height:74px;object-fit:cover;border-radius:13px}
#sheetBody .subdued{font-size:.81rem;color:#5b6256}
@media(min-width:700px){.app{border-left:1px solid #dacfc3;border-right:1px solid #dacfc3}.room{height:515px}.content{padding-inline:17px}}
@media(prefers-reduced-motion:reduce){.heart{transition:none}}
.room-picture.scene-item{object-position:center 60%}
