:root{--ink:#314239;--muted:#718077;--cream:#f8f5eb;--paper:#fffdf6;--moss:#54735b;--deep:#355344;--sage:#dce6d2;--line:#dddcca;--gold:#e6b85c;--peach:#f3c5a5;--shadow:0 20px 55px rgba(59,77,63,.13)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:"DM Sans",sans-serif}button{font:inherit;color:inherit}button:focus-visible{outline:3px solid #eab76b;outline-offset:3px}h1,h2,p{margin-top:0}h1,h2,.brand{font-family:"Fraunces",serif}h1{margin-bottom:8px;font-size:clamp(2.2rem,4vw,3.8rem);line-height:1.02}h2{margin-bottom:8px;font-size:1.45rem}.topbar{height:78px;padding:0 clamp(20px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:25px;background:rgba(255,253,246,.92);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--deep);font-weight:700;font-size:1.3rem}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:14px 14px 14px 4px;background:var(--deep);color:#f7db8a}.topbar nav{display:flex;align-items:center;gap:6px}.nav-item,.sound-button{border:0;background:transparent;cursor:pointer}.nav-item{padding:11px 15px;border-radius:13px;color:var(--muted);font-weight:600}.nav-item span{margin-right:5px}.nav-item:hover,.nav-item.active{background:var(--sage);color:var(--deep)}.top-actions,.profile,.streak,.card-heading,.sanctuary-footer,.friend-list,.friend,.welcome{display:flex;align-items:center}.top-actions{gap:18px}.sound-button{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;font-size:1.15rem}.sound-button.muted{opacity:.45}.profile{gap:9px}.profile-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#ecd4ad}.profile span:last-child{display:grid}.profile small,.streak small{color:var(--muted)}main{max-width:1500px;margin:auto;padding:35px clamp(20px,4vw,64px) 70px}.view{display:none}.view.active{display:block;animation:fade .32s ease}@keyframes fade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.welcome{justify-content:space-between;margin-bottom:24px}.welcome p:last-child,.page-intro{color:var(--muted);margin:0}.eyebrow{margin-bottom:7px;text-transform:uppercase;letter-spacing:.14em;font-size:.7rem;font-weight:700;color:#7b936b}.streak{gap:10px;background:#fff8e5;border:1px solid #ead9ae;border-radius:18px;padding:10px 15px}.streak>span:last-child{display:grid}.flame{font-size:1.7rem;color:#d48b43}.game-grid{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(340px,.72fr);gap:22px}.sanctuary-card,.today-card,.friends-strip,.week-card{border:1px solid var(--line);border-radius:27px;background:var(--paper);box-shadow:var(--shadow)}.sanctuary-card{position:relative;overflow:hidden;min-height:570px}.sanctuary-card>img{position:absolute;width:100%;height:100%;object-fit:cover}.sanctuary-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(25,48,36,.05),transparent 55%,rgba(24,46,34,.45));pointer-events:none}.weather{position:absolute;z-index:2;top:18px;left:18px;display:flex;gap:9px;padding:10px 13px;background:rgba(255,253,244,.88);border:1px solid rgba(255,255,255,.65);border-radius:16px;backdrop-filter:blur(8px)}.weather>span:first-child{font-size:1.5rem}.weather>span:last-child{display:grid}.weather small{font-size:.7rem;color:var(--muted)}.creature{position:absolute;z-index:3;border:0;background:transparent;cursor:pointer;filter:drop-shadow(0 9px 5px rgba(37,56,40,.22));transition:.2s}.creature:hover{transform:translateY(-7px) scale(1.05)}.creature-emoji{display:block;font-size:clamp(3.8rem,6vw,6rem)}.creature-name{display:inline-block;padding:3px 9px;background:rgba(255,253,246,.9);border-radius:10px;font-weight:700;font-size:.75rem}.thought{position:absolute;top:-12px;right:-8px;background:white;padding:7px;border-radius:50% 50% 50% 10%;font-size:1rem}.creature-luma{left:27%;top:43%}.creature-pip{right:23%;top:51%}.creature-bumble{}.creature-bramble{left:53%;top:26%}.sanctuary-footer{position:absolute;z-index:3;bottom:0;left:0;right:0;padding:22px;color:white;justify-content:space-between}.sanctuary-footer>span{font-family:"Fraunces";font-size:1.5rem}.today-card{padding:25px}.card-heading{justify-content:space-between;gap:18px}.progress-ring{width:63px;height:63px;flex:0 0 63px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle closest-side,var(--paper) 76%,transparent 77% 99%),conic-gradient(var(--moss) 25%,#e5e5d8 0)}.progress-ring b{font-size:1.05rem}.progress-ring small{font-size:.7rem}.habit-list{display:grid;gap:9px;margin-top:16px}.habit{width:100%;display:grid;grid-template-columns:24px 43px 1fr auto;align-items:center;text-align:left;gap:10px;border:1px solid var(--line);border-radius:16px;background:white;padding:11px;cursor:pointer;transition:.2s}.habit:hover{transform:translateX(3px);border-color:#9cb28d}.habit.done{opacity:.62;background:#f0f2e8}.habit.done b{text-decoration:line-through}.check{width:22px;height:22px;display:grid;place-items:center;border:1.5px solid #aeb7aa;border-radius:50%;color:white}.done .check{background:var(--moss);border-color:var(--moss)}.habit-icon{display:grid;place-items:center;width:41px;height:41px;border-radius:13px}.habit-icon.blue{background:#dcecef}.habit-icon.green{background:#e2ead6}.habit-icon.orange{background:#f5dfc7}.habit-icon.purple{background:#e7dff0}.habit span:nth-child(3){display:grid}.habit small{color:var(--muted);font-size:.73rem}.habit em{font-style:normal;font-size:.72rem;color:#9b7b37}.add-habit{width:100%;margin-top:12px;border:1px dashed #a9b69e;border-radius:14px;background:transparent;padding:12px;cursor:pointer;font-weight:600;color:var(--moss)}.kind-note{margin:16px 5px 0;padding-top:15px;border-top:1px solid var(--line);color:var(--muted);font-size:.75rem;line-height:1.45}.friends-strip{display:grid;grid-template-columns:1fr 2.2fr auto;align-items:center;gap:26px;margin-top:22px;padding:22px 26px}.friends-strip h2{margin:0}.friend-list{gap:26px}.friend{gap:9px;border:0;background:transparent;text-align:left;cursor:pointer}.friend>span:last-child{display:grid}.friend small{color:var(--muted);font-size:.72rem}.friend-avatar{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;font-size:1.45rem}.friend-avatar.peach{background:#f3cfb8}.friend-avatar.teal{background:#bfdbd4}.friend-avatar.lilac{background:#ddd3e7}.friend-avatar i{position:absolute;width:10px;height:10px;border-radius:50%;right:0;bottom:2px;background:#74a86e;border:2px solid white}.visit-button,.pill-button,.cheer{border:0;border-radius:14px;background:var(--deep);color:white;padding:13px 17px;font-weight:700;cursor:pointer}.visit-button span{margin-left:10px}.inner-view{max-width:1050px;margin:25px auto}.inner-view>h1{max-width:720px}.page-intro{max-width:650px;line-height:1.6}.back-link{border:0;background:none;color:var(--moss);padding:0;margin-bottom:40px;font-weight:700;cursor:pointer}.insight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:30px 0}.insight-grid article{padding:25px;background:var(--paper);border:1px solid var(--line);border-radius:22px}.insight-grid article span{font-size:1.7rem}.insight-grid b{display:block;font-family:"Fraunces";font-size:1.9rem;margin:18px 0 4px}.insight-grid p{margin:0;color:var(--muted)}.week-card{padding:26px}.pill-button{background:var(--sage);color:var(--deep)}.week-row{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-top:24px}.day{text-align:center}.day span{display:grid;place-items:center;aspect-ratio:1;border-radius:17px;background:#ecebdd;margin-top:10px}.day.complete span{background:var(--moss);color:white}.day.today span{outline:3px solid #e9bc69;outline-offset:2px}.friend-habitats{display:grid;gap:18px;margin-top:35px}.friend-habitats article{display:grid;grid-template-columns:200px 1fr;align-items:center;gap:22px;padding:16px;border-radius:25px;border:1px solid var(--line);background:var(--paper)}.friend-habitats p{color:var(--muted)}.mini-landscape{height:145px;border-radius:18px;display:grid;place-items:center;font-size:4rem}.mini-landscape.one{background:linear-gradient(#c8e2d3,#e4d6a8)}.mini-landscape.two{background:linear-gradient(#bad7df,#8dbda9)}.mini-landscape.three{background:linear-gradient(#d9cde6,#394f58)}dialog{width:min(470px,calc(100% - 30px));border:1px solid var(--line);border-radius:27px;background:var(--paper);color:var(--ink);padding:30px;box-shadow:var(--shadow)}dialog::backdrop{background:rgba(39,55,46,.45);backdrop-filter:blur(4px)}.modal-close{position:absolute;right:15px;top:12px;border:0;background:transparent;font-size:1.6rem;cursor:pointer}.modal-creature{text-align:center}.modal-creature .big{font-size:6rem}.modal-creature p{color:var(--muted);line-height:1.5}.form-field{display:grid;gap:6px;margin:18px 0}.form-field input,.form-field select{border:1px solid var(--line);border-radius:12px;padding:12px;background:white}.modal-action{width:100%;border:0;border-radius:13px;padding:13px;background:var(--deep);color:white;font-weight:700;cursor:pointer}.toast{position:fixed;z-index:50;left:50%;bottom:28px;transform:translate(-50%,20px);padding:13px 18px;border-radius:14px;background:var(--deep);color:white;opacity:0;pointer-events:none;transition:.3s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:960px){.topbar{backdrop-filter:none;-webkit-backdrop-filter:none}.topbar nav{position:fixed;bottom:0;left:0;right:0;height:68px;background:var(--paper);border-top:1px solid var(--line);justify-content:space-around;z-index:30}.game-grid{grid-template-columns:1fr}.friends-strip{grid-template-columns:1fr}.friend-list{flex-wrap:wrap}.top-actions .profile span:last-child{display:none}main{padding-bottom:95px}.sanctuary-card{min-height:500px}}
@media(max-width:600px){.topbar{height:65px}.profile{display:none}.welcome{align-items:flex-start;gap:15px}.streak{padding:8px}.game-grid{display:flex;flex-direction:column}.sanctuary-card{min-height:390px}.creature-emoji{font-size:3.5rem}.today-card{padding:18px}.habit{grid-template-columns:22px 40px 1fr}.habit em{display:none}.friends-strip{padding:19px}.friend-list{display:grid;grid-template-columns:1fr 1fr}.insight-grid{grid-template-columns:1fr}.week-row{gap:4px}.day span{border-radius:10px}.friend-habitats article{grid-template-columns:1fr}.mini-landscape{height:120px}.nav-item{font-size:.78rem;padding:10px}.nav-item span{display:block}.sanctuary-footer{padding:16px}.sanctuary-footer>span{font-size:1.1rem}}

/* Generated game art sprites */
.creature-sprite{display:block;background-image:url("assets/habit-habitat-creatures.png");background-repeat:no-repeat;background-size:300% 100%}.sprite-luma{background-position:0 50%}.sprite-pip{background-position:50% 50%}.sprite-bramble{background-position:100% 50%}.profile-avatar.creature-sprite{display:block;background-color:#f5ead2}.creature-emoji.creature-sprite{width:clamp(105px,10vw,155px);height:clamp(105px,10vw,155px);border-radius:42%;background-color:#fbf4df;box-shadow:0 10px 25px rgba(39,64,45,.16)}
.new-creature-sprite{display:block;background-image:url("assets/habit-habitat-creatures-more.png");background-repeat:no-repeat;background-size:300% 100%}.sprite-nori{background-position:0 50%}.sprite-sol{background-position:50% 50%}.sprite-mallow{background-position:100% 50%}.profile-avatar.new-creature-sprite{display:block;background-color:#f5ead2}
.creature-set-3,.creature-set-4,.creature-set-5{display:block;background-repeat:no-repeat;background-size:300% 100%}.creature-set-3{background-image:url("assets/habit-habitat-creatures-set-3.png")}.creature-set-4{background-image:url("assets/habit-habitat-creatures-set-4.png")}.creature-set-5{background-image:url("assets/habit-habitat-creatures-set-5.png")}.sprite-thistle,.sprite-dew,.sprite-clover{background-position:0 50%}.sprite-kumo,.sprite-sable,.sprite-tide{background-position:50% 50%}.sprite-ember,.sprite-pebble,.sprite-wisp{background-position:100% 50%}.profile-avatar.creature-set-3,.profile-avatar.creature-set-4,.profile-avatar.creature-set-5{display:block;background-color:#f5ead2}
.habit-sprite{position:relative;display:block;padding:0;line-height:0}.habit-sprite::before{content:"";position:absolute;top:50%;left:50%;display:block;width:34px;height:34px;transform:translate(-50%,-50%);background-image:url("assets/habit-habitat-icons.png");background-repeat:no-repeat;background-size:400% 100%}.icon-water::before{background-position:0 50%}.icon-walk::before{background-position:33.333% 50%}.icon-read::before{background-position:66.666% 50%}.icon-sleep::before{background-position:100% 50%}.habit-icon.habit-sprite{width:43px;height:43px;justify-self:center;align-self:center;border-radius:13px;border:1px solid #e9e0ca;background-color:#fffbf1}.thought.habit-sprite{width:40px;height:40px;padding:0;border:4px solid white;background-color:white}.thought.habit-sprite::before{width:28px;height:28px}
.friend-avatar.creature-sprite{display:block;border:2px solid white;box-shadow:0 3px 10px rgba(50,70,56,.15)}.mini-landscape{overflow:hidden}.mini-creature{width:130px;height:130px;border-radius:40%}.modal-creature .big.creature-sprite{width:190px;height:190px;margin:0 auto 12px;border-radius:42%;background-color:#faf1dc}
@media(max-width:600px){.creature-emoji.creature-sprite{width:88px;height:88px}.mini-creature{width:110px;height:110px}}

.brand-mark{display:block;width:40px;height:40px;border-radius:14px 14px 14px 4px;object-fit:cover;background:var(--deep);box-shadow:0 3px 10px rgba(36,70,52,.16)}

.profile{border:0;background:transparent;padding:5px 7px;border-radius:14px;cursor:pointer;text-align:left;transition:.2s}.profile:hover{background:var(--sage)}.profile-fieldset{border:0;padding:0;margin:20px 0 0}.profile-fieldset legend{font-weight:700}.profile-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 22px}.avatar-option{position:relative;display:grid;place-items:center;gap:6px;padding:8px 6px;border:2px solid transparent;border-radius:18px;background:#f5f2e7;cursor:pointer;font-weight:700;font-size:.82rem}.avatar-option:has(input:checked){border-color:var(--moss);background:#e7eddc}.avatar-option input{position:absolute;opacity:0;pointer-events:none}.avatar-preview{width:68px;height:68px;border-radius:40%;background-color:#fbf4df}.profile-form-note{color:var(--muted);font-size:.8rem;line-height:1.45;margin-bottom:18px}
dialog{max-height:90vh;overflow:auto}
.companion-picker{position:relative}.companion-picker-trigger{width:100%;min-height:58px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;padding:7px 12px;border:1px solid var(--line);border-radius:12px;background:white;text-align:left;cursor:pointer;font-weight:700}.companion-picker-trigger:hover{border-color:#9caf91}.companion-selected-avatar,.companion-menu-avatar{display:block;width:42px;height:42px;border-radius:13px;background-color:#f6f1e2}.picker-chevron{color:var(--muted);font-size:1.2rem}.companion-menu{position:absolute;z-index:5;top:82px;left:0;right:0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-height:276px;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 18px 40px rgba(45,64,52,.22)}.companion-menu[hidden]{display:none}.companion-menu-option{display:grid;place-items:center;gap:4px;padding:7px 4px;border:1px solid transparent;border-radius:12px;background:#f5f2e7;cursor:pointer;font-size:.72rem;font-weight:700}.companion-menu-option:hover,.companion-menu-option[aria-selected="true"]{border-color:var(--moss);background:#e7eddc}.companion-menu-option .companion-menu-avatar{width:48px;height:48px}
.streak{cursor:pointer;text-align:left;color:var(--ink);transition:.2s}.streak:hover{transform:translateY(-2px);border-color:#d3b66c;box-shadow:0 8px 20px rgba(105,83,35,.1)}.flow-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:20px 0}.flow-stat{padding:14px 10px;border-radius:16px;background:#f3f2e6;text-align:center}.flow-stat b{display:block;font-family:"Fraunces";font-size:1.7rem;color:var(--deep)}.flow-stat small{color:var(--muted)}.flow-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:12px 0 22px}.flow-day{display:grid;place-items:center;aspect-ratio:1;border-radius:11px;background:#e9e9dc;color:#879087;font-size:.72rem;font-weight:700}.flow-day.active{background:var(--moss);color:white}.flow-day.today{outline:3px solid #e9bc69;outline-offset:2px}.flow-day.rest{background:#e5ddee;color:#796987}.flow-legend{display:flex;gap:14px;color:var(--muted);font-size:.72rem}.flow-legend i{display:inline-block;width:9px;height:9px;margin-right:4px;border-radius:50%;background:var(--moss)}.flow-legend .rest-key{background:#bba8cc}.flow-history{display:grid;gap:8px;margin-top:12px}.flow-history-row{display:grid;grid-template-columns:45px 1fr auto;align-items:center;gap:10px;padding:11px 13px;border:1px solid var(--line);border-radius:14px}.flow-history-row>span:first-child{font-size:1.35rem}.flow-history-row span:nth-child(2){display:grid}.flow-history-row small{color:var(--muted)}.flow-history-row strong{color:var(--moss)}
@media(max-width:500px){.flow-summary{grid-template-columns:1fr 1fr}.flow-stat:last-child{grid-column:1/-1}}
.reminder-times{display:grid;gap:8px;margin:-7px 0 18px}.reminder-row{display:grid;grid-template-columns:1fr 40px;align-items:end;gap:8px}.reminder-row label{display:grid;gap:5px;color:var(--muted);font-size:.75rem}.reminder-row input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);font:inherit}.remove-reminder{width:40px;height:44px;border:1px solid var(--line);border-radius:12px;background:#f5eee7;color:#966b56;cursor:pointer;font-size:1.25rem}.add-reminder-time{border:1px dashed #a9b69e;border-radius:12px;background:transparent;padding:10px;color:var(--moss);font-weight:700;cursor:pointer}
.reminder-window{display:flex;align-items:center;gap:11px;padding:11px 13px;border:1px solid #d9dfca;border-radius:14px;background:#f3f5e9}.reminder-window>span:first-child{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:white;font-size:1.25rem}.reminder-window>span:last-child{display:grid}.reminder-window small{color:var(--muted)}

#reminder-pattern,.reminder-time,.reminder-window,.add-reminder-time{font-family:"Nunito",ui-rounded,"Arial Rounded MT Bold",sans-serif;letter-spacing:.01em}#reminder-pattern{font-weight:600;color:#405047}.reminder-time{font-weight:600}.reminder-window b{font-weight:700}.reminder-window small{font-weight:500}.form-field select{font-family:"Nunito",ui-rounded,"Arial Rounded MT Bold",sans-serif}
.grove-name-button{display:grid;gap:1px;padding:4px 7px;margin:-4px -7px;border:0;border-radius:11px;background:transparent;color:white;text-align:left;cursor:pointer}.grove-name-button:hover{background:rgba(255,255,255,.16)}.grove-name-button>span{font-family:"Fraunces",Georgia,serif;font-size:1.5rem;font-weight:700}.grove-name-button>small{color:rgba(255,255,255,.75);font-size:.66rem;opacity:0;transition:.2s}.grove-name-button:hover>small,.grove-name-button:focus-visible>small{opacity:1}
.habitat-zone{position:absolute;z-index:4;display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(255,255,255,.78);border-radius:14px;background:rgba(255,253,246,.9);box-shadow:0 7px 18px rgba(33,54,40,.16);backdrop-filter:blur(7px);cursor:pointer;text-align:left;transition:.2s}.habitat-zone:hover{transform:translateY(-3px);background:white}.habitat-zone>span:last-child{display:grid}.habitat-zone b{font-family:"Fraunces",Georgia,serif;font-size:.82rem}.habitat-zone small{color:var(--muted);font-size:.58rem}.zone-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;font-size:1rem}.zone-pond{right:3%;bottom:19%}.zone-pond .zone-icon{background:#cce7e5;color:#397b7d}.zone-canopy{right:4%;top:20%}.zone-canopy .zone-icon{background:#dce8cf;color:#54735b}.zone-burrow{left:3%;top:27%}.zone-burrow .zone-icon{background:#ead8be;color:#8b6843}.zone-grotto{left:4%;bottom:19%}.zone-grotto .zone-icon{background:#f2d2c2;color:#a65f43}.habitat-modal-hero{display:flex;align-items:center;gap:13px;margin:4px 0 18px;padding:14px;border-radius:18px;background:#eff2e4}.habitat-modal-hero .zone-icon{width:46px;height:46px;font-size:1.35rem;background:white}.habitat-residents{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0 20px}.habitat-resident{display:grid;place-items:center;gap:5px;padding:9px 5px;border-radius:15px;background:#f6f2e7;font-size:.76rem;font-weight:700}.habitat-resident-art{width:68px;height:68px;border-radius:40%;background-color:#fbf4df}.habitat-capacity{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border:1px solid var(--line);border-radius:14px}.capacity-dots{display:flex;gap:5px}.capacity-dots i{width:11px;height:11px;border-radius:50%;background:var(--moss)}.capacity-dots i.empty{background:#deded1;border:1px dashed #9eaa99}
@media(max-width:700px){.habitat-zone{padding:5px}.habitat-zone>span:last-child{display:none}.zone-canopy{top:18%}.zone-burrow{top:23%}}
.habitat-detail-view{max-width:1180px;margin:12px auto}.habitat-detail-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}.habitat-detail-heading p:last-child{max-width:650px;margin:0;color:var(--muted);line-height:1.6}.habitat-detail-capacity{display:grid;min-width:105px;padding:13px 17px;border:1px solid var(--line);border-radius:18px;background:var(--paper);text-align:center}.habitat-detail-capacity b{font-family:"Fraunces",Georgia,serif;font-size:1.6rem}.habitat-detail-capacity small{color:var(--muted)}.mini-habitat-scene{position:relative;min-height:535px;overflow:hidden;border:1px solid var(--line);border-radius:30px;background-image:linear-gradient(180deg,rgba(255,250,231,.05),rgba(30,58,43,.3)),url("assets/habit-habitat-sanctuary.png");background-size:cover;background-position:center;box-shadow:var(--shadow)}.mini-habitat-scene.scene-pond{background-position:right bottom;filter:saturate(.92) hue-rotate(10deg)}.mini-habitat-scene.scene-canopy{background-position:right top;filter:saturate(.88) brightness(1.04)}.mini-habitat-scene.scene-burrow{background-position:left center;filter:saturate(.88) sepia(.08)}.mini-habitat-scene.scene-grotto{background-position:left bottom;filter:saturate(.95) sepia(.18)}.mini-habitat-scene>*{filter:none}.habitat-scene-label{position:absolute;top:20px;left:20px;display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:16px;background:rgba(255,253,246,.9);backdrop-filter:blur(8px)}.habitat-scene-label>span:first-child{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--sage);font-size:1.25rem}.habitat-scene-label>span:last-child{display:grid}.habitat-scene-label b{font-family:"Fraunces",Georgia,serif}.habitat-scene-label small{color:var(--muted)}.habitat-screen-residents{position:absolute;inset:105px 7% 55px;display:flex;align-items:end;justify-content:space-around;gap:20px}.habitat-screen-resident{border:0;background:transparent;cursor:pointer;transition:.22s}.habitat-screen-resident:hover{transform:translateY(-8px)}.habitat-screen-resident-art{display:block;width:clamp(130px,16vw,190px);height:clamp(130px,16vw,190px);border:7px solid rgba(255,253,246,.86);border-radius:42%;background-color:#fbf4df;box-shadow:0 16px 30px rgba(30,55,40,.24)}.habitat-screen-resident-name{display:inline-block;margin-top:7px;padding:5px 12px;border-radius:12px;background:rgba(255,253,246,.94);font-weight:800}.habitat-detail-footer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:28px;margin-top:18px;padding:22px 25px;border:1px solid var(--line);border-radius:24px;background:var(--paper)}.habitat-detail-footer h2{margin:0}.habitat-home-status{display:flex;align-items:center;gap:13px}.habitat-home-status>span:last-child{display:grid}.habitat-home-status small{color:var(--muted)}
@media(max-width:700px){.habitat-detail-heading{align-items:start}.mini-habitat-scene{min-height:460px}.habitat-screen-residents{inset:105px 3% 45px;gap:5px}.habitat-screen-resident-art{border-width:4px}.habitat-detail-footer{grid-template-columns:1fr}.habitat-home-status{align-items:flex-start}}
.habitat-detail-view{max-width:1220px;margin:0 auto}.mini-habitat-scene{min-height:720px}.habitat-scene-header{position:absolute;z-index:3;top:18px;left:18px;right:18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:13px 15px;border:1px solid rgba(255,255,255,.75);border-radius:20px;background:rgba(255,253,246,.92);box-shadow:0 8px 26px rgba(35,54,42,.13);backdrop-filter:blur(10px)}.habitat-back-button{min-height:42px;padding:0 14px;border:1px solid var(--line);border-radius:13px;background:white;color:var(--moss);font-weight:800;cursor:pointer;white-space:nowrap}.habitat-back-button:hover{background:var(--sage)}.habitat-scene-title{display:flex;align-items:center;gap:11px}.habitat-scene-title>span:first-child{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--sage);font-size:1.35rem}.habitat-scene-title>span:last-child{display:grid}.habitat-scene-title .eyebrow{margin:0}.habitat-scene-title h1{margin:0;font-size:clamp(1.7rem,3vw,2.45rem)}.habitat-scene-title small{color:var(--muted)}.habitat-scene-header .habitat-detail-capacity{padding:8px 13px;background:white}.habitat-screen-residents{inset:145px 7% 178px}.habitat-scene-info{position:absolute;z-index:3;left:18px;right:18px;bottom:18px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px;padding:16px 18px;border:1px solid rgba(255,255,255,.75);border-radius:20px;background:rgba(255,253,246,.93);box-shadow:0 8px 26px rgba(35,54,42,.14);backdrop-filter:blur(10px)}.habitat-scene-info p{margin:0;color:var(--muted);line-height:1.45}.habitat-scene-info .habitat-care-line{margin-top:7px;color:var(--ink)}
@media(max-width:760px){.mini-habitat-scene{min-height:690px}.habitat-scene-header{grid-template-columns:1fr auto}.habitat-back-button{grid-column:1/-1;justify-self:start}.habitat-scene-title>span:first-child{display:none}.habitat-scene-header .habitat-detail-capacity{min-width:86px}.habitat-screen-residents{inset:175px 3% 205px}.habitat-scene-info{grid-template-columns:1fr;gap:12px}.habitat-home-status{align-items:flex-start}}
.empty-habitat{align-self:center;max-width:360px;padding:24px;border-radius:22px;background:rgba(255,253,246,.92);text-align:center;box-shadow:0 14px 30px rgba(35,54,42,.16)}.empty-habitat>span{font-size:2.2rem}.empty-habitat h2{margin:8px 0}.empty-habitat p{margin:0;color:var(--muted)}
.creature-art{position:relative;display:block;width:max-content;margin-inline:auto}.creature-art .thought{top:-8px;right:-8px;z-index:2;border-radius:50%;box-shadow:0 4px 12px rgba(37,56,40,.18)}
.weather{transition:background-color .4s ease,color .4s ease}.weather[data-daytime="noon"]{background:rgba(255,249,208,.92)}.weather[data-daytime="afternoon"]{background:rgba(255,235,200,.92)}.weather[data-daytime="evening"]{background:rgba(238,218,208,.92)}.weather[data-daytime="night"]{background:rgba(46,58,76,.9);color:#fff8e9}.weather[data-daytime="night"] small{color:#d9d9d1}
.game-grid{grid-template-columns:1fr}.zone-canopy{top:5%;left:50%;right:auto;transform:translateX(-50%)}.zone-canopy:hover{transform:translate(-50%,-3px)}.zone-cottage{right:4%;top:20%}.zone-cottage .zone-icon{background:#f2dfbe;color:#875d36}.cottage-view{max-width:1220px;margin:0 auto}.cottage-interior{position:relative;min-height:760px;overflow:hidden;border:1px solid var(--line);border-radius:30px;background:linear-gradient(90deg,rgba(44,27,16,.08),rgba(255,248,226,.03)),url("assets/cottage-interior.png") center/cover no-repeat;box-shadow:var(--shadow)}.cottage-back{position:absolute;z-index:3;top:18px;left:18px;box-shadow:0 7px 20px rgba(50,34,20,.16)}.cottage-habit-card{position:absolute;z-index:2;top:72px;right:5%;width:min(500px,90%);background:rgba(255,253,246,.94);backdrop-filter:blur(12px);box-shadow:0 18px 45px rgba(63,39,20,.24)}
@media(max-width:700px){.zone-canopy{top:4%;left:50%;right:auto}.zone-cottage{top:18%;right:3%}.cottage-interior{min-height:820px;background-position:35% center}.cottage-habit-card{top:80px;left:4%;right:4%;width:auto}}
.nav-icon-friends{display:inline-grid!important;width:18px;height:18px;vertical-align:-4px}.nav-icon-friends svg{width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-icon-grove{display:inline-grid!important;width:18px;height:18px;vertical-align:-4px}.nav-icon-grove svg{width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.burrow-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.habitat-line-icon svg,.habitat-scene-title>span:first-child svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.flow-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:12px;background:#f5dfad;color:#a66b2f}.flow-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.habit-icon-fieldset{margin:18px 0;padding:0;border:0}.habit-icon-fieldset legend{margin-bottom:8px;font-weight:700}.habit-icon-choices{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.habit-icon-choices label{position:relative;display:grid;place-items:center;padding:7px;border:1px solid var(--line);border-radius:13px;background:#fffdf7;cursor:pointer}.habit-icon-choices input{position:absolute;opacity:0;pointer-events:none}.habit-icon-choices label:has(input:checked){border-color:var(--moss);background:var(--sage);box-shadow:0 0 0 2px rgba(91,119,91,.12)}.custom-habit-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fffaf0;color:var(--deep)}.custom-habit-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.habit-icon.custom-habit-icon{border:1px solid #e9e0ca}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.routine-editor{display:grid;gap:10px;max-height:52vh;margin:16px 0;overflow:auto;padding:4px 8px 4px 2px}.routine-edit-row{display:grid;grid-template-columns:52px minmax(0,1.5fr) minmax(125px,.9fr);align-items:end;gap:10px;padding:11px;border:1px solid var(--line);border-radius:16px;background:#fffdf7}.routine-edit-row .form-field{margin:0}.routine-edit-row label{font-size:.68rem;color:var(--muted);font-weight:700}.routine-edit-row input,.routine-edit-row select{width:100%}.routine-icon-picker{position:relative;align-self:end}.routine-icon-trigger{display:flex;align-items:center;width:52px;height:44px;padding:0 3px;border:1px solid var(--line);border-radius:13px;background:#fffaf0;cursor:pointer}.routine-icon-trigger>span:last-child{font-size:.7rem}.routine-edit-icon{width:38px;height:38px;background:transparent}.routine-icon-menu{position:absolute;z-index:8;top:48px;left:0;display:grid;grid-template-columns:repeat(4,38px);gap:5px;width:177px;padding:7px;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:0 12px 28px rgba(35,54,42,.18)}.routine-icon-menu[hidden]{display:none}.routine-icon-option{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid transparent;border-radius:10px;background:#f7f4e9;cursor:pointer}.routine-icon-option:hover{border-color:var(--moss);background:var(--sage)}.routine-icon-option .custom-habit-icon{width:34px;height:34px;background:transparent}.routine-icon-option svg{width:23px;height:23px}@media(max-width:560px){.habit-icon-choices{grid-template-columns:repeat(4,1fr)}.routine-edit-row{grid-template-columns:52px 1fr}.routine-edit-row .form-field:last-child{grid-column:2}}
.form-field input,.form-field select{font-family:"Nunito",ui-rounded,"Arial Rounded MT Bold",sans-serif;font-size:.9rem;font-weight:500}
.creature-habit-bubble{display:grid;place-items:center;width:40px;height:40px;padding:0!important;border:4px solid white;border-radius:50%;background:#fffaf0!important;color:var(--deep);box-shadow:0 4px 12px rgba(37,56,40,.18)}.creature-habit-bubble svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.creature-habit-bubble[hidden]{display:none}
.habitat-resident-picture{position:relative;display:block}.habitat-creature-icon{position:absolute;z-index:2;top:-7px;right:-7px;display:grid;place-items:center;width:42px;height:42px;border:4px solid white;border-radius:50%;background:#fffaf0;color:var(--deep);box-shadow:0 4px 12px rgba(37,56,40,.2)}.habitat-creature-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.habit-icon-choices{grid-template-columns:repeat(5,1fr)}
@media(max-width:560px){.habit-icon-choices{grid-template-columns:repeat(4,1fr)}}
.weather[data-daytime="dawn"]{background:rgba(245,226,215,.93)}
.keeper-progress-card{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:12px;margin:14px 0 20px;padding:13px;border:1px solid #e5d6aa;border-radius:17px;background:#fff8e5}.keeper-level{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#f1cf79;color:#6d5321;font-family:"Fraunces",Georgia,serif;font-size:1.5rem;font-weight:800}.keeper-progress-card>span:nth-child(2){display:grid}.keeper-progress-card small{display:block;color:var(--muted);font-size:.72rem}.keeper-progress-card i{display:block;height:7px;margin-top:8px;overflow:hidden;border-radius:10px;background:#e5dfc9}.keeper-progress-card i span{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#d7a94d,#f0cf78)}
.nav-item{position:relative}.nav-alert{position:absolute;top:2px;right:2px;display:grid!important;place-items:center;min-width:19px;height:19px;margin:0!important;padding:0 5px;border:3px solid var(--paper);border-radius:20px;background:#d47e5b;color:white;font-size:.58rem;font-weight:900;line-height:1}.nav-alert[hidden]{display:none!important}.rest-day-prompt{text-align:center}.rest-day-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:18px;background:#e8e2f0;color:#6f6785}.rest-day-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.rest-day-prompt>p:not(.eyebrow){color:var(--muted);line-height:1.55}.rest-day-later{width:100%;margin-top:8px;padding:11px;border:0;background:transparent;color:var(--muted);font-weight:700;cursor:pointer}
.level-up-friend-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:18px;background:#fff0bd;color:#9a6d27}.level-up-friend-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.creature-profile-heading{display:flex;align-items:center;gap:15px;text-align:left}.creature-profile-art{flex:0 0 auto;width:92px;height:92px;border:5px solid #fff8e8;border-radius:38%;background-color:#f7ecd2;box-shadow:0 8px 20px rgba(37,56,40,.14)}.creature-profile-heading .eyebrow{margin:0}.creature-profile-heading h1{margin:2px 0 0}.creature-bio{margin:16px 0;color:var(--muted);line-height:1.55}.creature-bond-card{display:grid;grid-template-columns:43px 1fr;align-items:center;gap:11px;margin:14px 0;padding:12px;border:1px solid #e6d7ad;border-radius:16px;background:#fff8e5}.bond-heart{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:#f3d0c5;color:#9c5d54;font-size:1.5rem}.creature-bond-card>span:last-child{display:grid}.creature-bond-card small{color:var(--muted);font-size:.72rem}.creature-bond-card i{height:7px;margin-top:7px;overflow:hidden;border-radius:10px;background:#e6dfcb}.creature-bond-card i span{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#d88f7d,#edbd9d)}.creature-popup-task{display:grid;grid-template-columns:50px 1fr auto;align-items:center;gap:11px;margin:16px 0 10px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fffdf7;text-align:left}.creature-popup-task>span:nth-child(2){display:grid}.creature-popup-task small{color:var(--muted);font-size:.73rem}.creature-popup-task>strong{color:#9b7530;white-space:nowrap}.creature-content-state{display:flex;align-items:center;gap:11px;margin-top:16px;padding:13px;border-radius:15px;background:#eef2e7}.creature-content-state>span:first-child{font-size:1.5rem;color:#8c6964}.creature-content-state>span:last-child{display:grid}.creature-content-state small{color:var(--muted)}
.routine-add-button{width:100%;margin:14px 0 2px;padding:11px;border:1px dashed #9eaf91;border-radius:13px;background:#f3f5e9;color:var(--moss);font-weight:800;cursor:pointer}.routine-add-button:hover{background:var(--sage)}
.need-met-effect{position:absolute;z-index:12;top:-10px;left:50%;display:grid;place-items:center;width:44px;height:44px;border:3px solid white;border-radius:50%;background:#f8d77d;color:#725926;pointer-events:none;animation:careFloat 1.05s ease both}.need-met-effect svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.need-met-effect i{position:absolute;right:-5px;top:-8px;color:#fff4b7;font-style:normal}@keyframes careFloat{0%{opacity:0;transform:translate(-50%,12px) scale(.5)}30%{opacity:1;transform:translate(-50%,-15px) scale(1)}75%{opacity:1;transform:translate(-50%,-28px) scale(1)}100%{opacity:0;transform:translate(-50%,-42px) scale(.75)}}.habitat-screen-resident{position:relative}
.habitat-need-badge{position:absolute;z-index:4;top:-8px;right:-8px;display:grid!important;place-items:center;width:23px;height:23px;border:3px solid white;border-radius:50%;background:#d99157;color:white;font-size:.65rem;font-weight:900;box-shadow:0 4px 10px rgba(45,55,40,.22)}.habitat-need-badge[hidden]{display:none!important}.creature-need-modal{text-align:center}.need-modal-icon{width:58px;height:58px;margin:0 auto 10px;background:var(--sage)}.need-modal-icon svg{width:34px;height:34px}.creature-need-modal>p:not(.eyebrow){color:var(--muted);line-height:1.5}.need-habit-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:18px 0;padding:13px;border:1px solid var(--line);border-radius:15px;background:#fffdf7;text-align:left}.need-habit-row>span{display:grid}.need-habit-row small{color:var(--muted)}.need-habit-row strong{white-space:nowrap;color:#9b7530}@keyframes needMet{0%{transform:translateY(0) scale(1)}30%{transform:translateY(-18px) scale(1.08);filter:drop-shadow(0 0 12px #f3cf78)}55%{transform:translateY(0) scale(.98)}75%{transform:translateY(-7px) scale(1.04)}100%{transform:translateY(0) scale(1)}}.creature.need-met,.habitat-screen-resident.need-met{animation:needMet 1.05s ease both}
.music-intro{margin-bottom:16px;color:var(--muted)}.song-list{display:grid;gap:8px}.song-option{display:grid;grid-template-columns:46px 1fr 34px;align-items:center;gap:11px;width:100%;padding:9px;border:1px solid var(--line);border-radius:15px;background:#fffdf7;text-align:left;transition:.2s}.song-option:hover{border-color:#9caf8e}.song-option.playing{border-color:var(--moss);background:#edf2e6}.song-option>span:nth-child(2){display:grid}.song-option small{color:var(--muted);font-size:.72rem}.song-art{display:grid;place-items:center;width:44px;height:44px;border-radius:13px}.song-art svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.song-moss{background:#dfe9cf;color:#54705a}.song-pond{background:#d6e9e9;color:#477c80}.song-canopy{background:#e8e2c5;color:#75804e}.song-ember{background:#f1d8c5;color:#a35e45}.song-night{background:#dddbea;color:#625f83}.song-play-button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:var(--sage);color:var(--deep);font-size:.7rem;cursor:pointer}.playing .song-play-button{background:var(--deep);color:white}
.mini-habitat-scene.scene-pond{background-image:linear-gradient(180deg,rgba(18,59,64,.03),rgba(22,65,60,.2)),url("assets/habitat-moonpond.png");background-position:center;filter:none}.mini-habitat-scene.scene-canopy{background-image:linear-gradient(180deg,rgba(255,250,225,.03),rgba(35,69,48,.18)),url("assets/habitat-canopy-roost.png");background-position:center;filter:none}.mini-habitat-scene.scene-burrow{background-image:linear-gradient(180deg,rgba(52,33,20,.02),rgba(49,40,21,.18)),url("assets/habitat-fernburrow.png");background-position:center;filter:none}.mini-habitat-scene.scene-grotto{background-image:linear-gradient(180deg,rgba(104,45,31,.02),rgba(80,37,31,.17)),url("assets/habitat-emberstone.png");background-position:center;filter:none}

/* Softer storybook typography */
body{font-family:"Nunito",ui-rounded,"Arial Rounded MT Bold",sans-serif;line-height:1.45}h1,h2,.brand{font-family:"Fraunces",Georgia,serif;font-variation-settings:"SOFT" 70,"WONK" 1}h1{letter-spacing:-.025em;line-height:1.06}h2{letter-spacing:-.012em;line-height:1.15}.nav-item,.habit,.button,.modal-action,.visit-button,.pill-button,.cheer{letter-spacing:.005em}.eyebrow{font-weight:800;letter-spacing:.16em}.habit small,.friend small,.weather small,.profile small{line-height:1.35}
.habitat-zone>span:nth-child(2){display:grid;grid-template-rows:auto auto}.habitat-zone>span:nth-child(2)>small{display:block}
.habitat-zone{gap:10px;padding:11px 15px;border-radius:18px}.habitat-zone .zone-icon{width:36px;height:36px;border-radius:11px}.habitat-zone b{font-size:.92rem}.habitat-zone small{font-size:.66rem}@media(max-width:700px){.habitat-zone{padding:8px}.habitat-zone .zone-icon{width:32px;height:32px}}
.bond-level-notice{position:fixed;z-index:70;top:92px;right:24px;display:flex;align-items:center;gap:10px;min-width:250px;padding:12px 15px;border:1px solid #e2c2b7;border-radius:17px;background:#fff7ef;color:var(--ink);box-shadow:0 14px 35px rgba(52,45,35,.2);opacity:0;transform:translateY(-12px) scale(.96);transition:.28s ease;pointer-events:none}.bond-level-notice.show{opacity:1;transform:none}.bond-level-notice>span:first-child{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f2d0c4;color:#9a5d54;font-size:1.35rem}.bond-level-notice>span:last-child{display:grid}.bond-level-notice small{color:var(--muted);font-size:.72rem}@media(max-width:600px){.bond-level-notice{top:76px;left:14px;right:14px;min-width:0}}
.missed-habit-notice{position:fixed;z-index:69;top:92px;right:24px;display:flex;align-items:center;gap:11px;width:min(350px,calc(100% - 28px));padding:13px 15px;border:1px solid #c9c6dc;border-radius:17px;background:#f7f5fc;color:var(--ink);box-shadow:0 14px 35px rgba(45,43,64,.2);opacity:0;transform:translateY(-12px) scale(.96);transition:.28s ease;pointer-events:none}.missed-habit-notice.show{opacity:1;transform:none}.missed-habit-notice>span:first-child{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:13px;background:#ded9ed;color:#766b8c;font-size:1.35rem}.missed-habit-notice>span:last-child{display:grid}.missed-habit-notice small{color:var(--muted);font-size:.72rem;line-height:1.35}@media(max-width:600px){.missed-habit-notice{top:76px;left:14px;right:14px;width:auto}}
.day>small{display:block;margin-top:2px;color:var(--muted);font-size:.64rem}.flow-day{grid-template-rows:auto auto;align-content:center;line-height:1.1}.flow-day small{margin-top:3px;font-size:.55rem;font-weight:700;opacity:.82}
.reminder-section{margin:18px 0;padding:13px;border:1px solid var(--line);border-radius:16px;background:#faf8ef}.reminder-section .form-field{margin:0 0 12px}.reminder-section .reminder-frequency-field{padding-top:11px;border-top:1px solid var(--line)}
dialog{max-height:calc(100vh - 30px);overflow:auto}
.flow-summary{grid-template-columns:repeat(2,1fr)}
.sanctuary-footer{padding:22px 22px 11px}.grove-name-button>span{font-size:1.85rem}.sanctuary-footer>small{font-size:1rem;font-weight:700}.sanctuary-footer>small b{font-size:1.12rem}@media(max-width:600px){.sanctuary-footer{padding:16px 16px 9px}.grove-name-button>span{font-size:1.45rem}.sanctuary-footer>small{font-size:.82rem}.sanctuary-footer>small b{font-size:.92rem}}
.zone-cottage{top:8%;right:8%}@media(max-width:700px){.zone-cottage{top:8%;right:3%}}
.zone-burrow{top:17%;left:12%}@media(max-width:700px){.zone-burrow{top:20%;left:3%}}
.insight-grid .insight-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;font-size:0}.insight-icon svg{display:block;width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.insight-icon-progress{background:#e2ecd8;color:#587253}.insight-icon-progress svg path:first-of-type{fill:#8eaa7d;stroke:none;opacity:.55}.insight-icon-time{background:#fff0c9;color:#a7772f}.insight-icon-checkin{background:#e4dfef;color:#706783}
.scheduled-miss-notice{position:fixed;z-index:71;top:92px;right:24px;display:flex;align-items:center;gap:11px;width:min(350px,calc(100% - 28px));padding:13px 15px;border:1px solid #dfc89d;border-radius:17px;background:#fff9e9;color:var(--ink);box-shadow:0 14px 35px rgba(52,45,35,.2);opacity:0;transform:translateY(-12px) scale(.96);transition:.28s ease;pointer-events:none}.scheduled-miss-notice.show{opacity:1;transform:none}.scheduled-miss-notice>span:first-child{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:13px;background:#f1d596;color:#855f27;font-size:1.2rem;font-weight:900}.scheduled-miss-notice>span:last-child{display:grid}.scheduled-miss-notice small{color:var(--muted);font-size:.72rem;line-height:1.35}@media(max-width:600px){.scheduled-miss-notice{top:76px;left:14px;right:14px;width:auto}}

/* Keep the two personal controls visible and comfortably tappable on phones. */
@media(max-width:960px){
  .topbar{padding:0 12px;gap:8px}
  .brand{gap:7px;min-width:0;font-size:1rem}
  .brand-mark{width:34px;height:34px;border-radius:12px}
  .brand>span{white-space:nowrap}
  .top-actions{display:flex;flex:0 0 auto;gap:7px}
  .sound-button{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px}
  .profile{display:flex;padding:2px;border-radius:50%}
  .profile .profile-avatar{width:38px;height:38px;flex:0 0 38px}
  .profile>span:last-child{display:none}
}
@media(max-width:380px){.brand>span{display:none}}
.final-daily-reminder{border-color:#c8c1dd;background:#f8f5ff}.final-daily-reminder>span:first-child{background:#ded8ee;color:#6f6688}
.empty-circle-note{margin:0;color:var(--muted);font-size:.82rem;line-height:1.45}.visit-button:disabled{cursor:default;opacity:.5}.friend-habitats .empty-friends-card{grid-template-columns:1fr;min-height:150px;padding:28px;text-align:center}.empty-friends-card h2{margin-bottom:7px}
.find-friends-card{display:grid;grid-template-columns:58px minmax(220px,1fr) minmax(280px,.9fr);align-items:center;gap:18px;margin:28px 0 20px;padding:20px;border:1px solid var(--line);border-radius:22px;background:var(--paper);box-shadow:var(--shadow)}.find-friends-card h2,.find-friends-card p{margin-bottom:3px}.find-friends-card>div>p:last-child{color:var(--muted);font-size:.82rem}.find-friends-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:var(--sage);color:var(--deep)}.find-friends-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.friend-code-form{display:flex;gap:8px}.friend-code-form input{min-width:0;flex:1;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fffdf7;text-transform:uppercase;font-family:"Nunito",ui-rounded,sans-serif;font-weight:700;letter-spacing:.08em}.friend-code-form button,.personal-code-card button{padding:11px 14px;border:0;border-radius:12px;background:var(--deep);color:white;font-weight:800;cursor:pointer}.personal-code-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:12px 13px;border:1px solid #d8d1e6;border-radius:16px;background:#f7f4fc}.personal-code-card>span{display:grid}.personal-code-card small{color:var(--muted);font-size:.7rem}.personal-code-card b{font-size:1.05rem;letter-spacing:.08em}.found-friend-profile{text-align:center}.friend-code-avatar{display:block;width:92px;height:92px;margin:0 auto 12px;border:5px solid #fff8e8;border-radius:38%;background-color:#edf0df;box-shadow:0 8px 20px rgba(37,56,40,.14)}.found-friend-profile>p:not(.eyebrow){color:var(--muted);line-height:1.5}.found-friend-profile .found-grove-name{margin:-4px 0 14px;color:var(--moss)!important;font-weight:800}.found-friend-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.found-friend-stats span{display:grid;padding:11px;border-radius:13px;background:#f3f1e8}.found-friend-stats small{color:var(--muted);font-size:.7rem}.modal-action:disabled{cursor:default;opacity:.62}@media(max-width:760px){.find-friends-card{grid-template-columns:52px 1fr}.friend-code-form{grid-column:1/-1}}@media(max-width:440px){.friend-code-form{display:grid}}
.account-setup-modal{width:min(620px,calc(100% - 30px))}.account-setup-modal .modal-close{display:none}.account-setup-intro{color:var(--muted);line-height:1.5}.suggestion-heading{display:flex;align-items:center;justify-content:space-between;margin-top:2px}.suggestion-heading small{color:var(--muted);font-weight:700}.suggestion-heading button{padding:3px 0;border:0;background:transparent;color:var(--moss);font-size:.72rem;font-weight:800;cursor:pointer}.name-suggestions{display:flex;flex-wrap:wrap;gap:6px}.name-suggestions button{padding:7px 10px;border:1px solid var(--line);border-radius:20px;background:#f7f4e9;color:var(--deep);font-size:.76rem;font-weight:700;cursor:pointer}.name-suggestions button:hover{border-color:var(--moss);background:var(--sage)}.account-setup .profile-fieldset{margin-top:18px}.account-setup .profile-choice{max-height:230px;overflow:auto}
.delete-account-button{width:100%;margin-top:14px;padding:11px;border:1px solid #d8aaa1;border-radius:13px;background:transparent;color:#9b574c;font-weight:800;cursor:pointer}.delete-account-button:hover{background:#fff2ee}.delete-account-confirmation{text-align:center}.delete-account-confirmation>p:not(.eyebrow){color:var(--muted);line-height:1.55}.delete-account-icon{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 12px;border-radius:18px;background:#f2d4cc;color:#9b574c;font-size:1.35rem;font-weight:900}.danger-action{width:100%;padding:13px;border:0;border-radius:13px;background:#a65347;color:white;font-weight:800;cursor:pointer}
#strongest-time-icon[data-time="none"]{background:#ece9df;color:#77776e}#strongest-time-icon[data-time="morning"]{background:#fff0c9;color:#a7772f}#strongest-time-icon[data-time="afternoon"]{background:#f8dda4;color:#a56a22}#strongest-time-icon[data-time="evening"]{background:#f0d5c8;color:#9c5f50}#strongest-time-icon[data-time="night"]{background:#dfddec;color:#656180}
.mobile-nav{display:none}
@media(max-width:960px){
  .topbar{
    position:relative;
    z-index:31;
    height:64px;
    background:var(--paper);
    border-bottom:1px solid var(--line);
  }
  .topbar>nav{display:none}
  .mobile-nav{
    position:sticky;
    top:0;
    z-index:30;
    display:flex;
    align-items:center;
    justify-content:space-around;
    width:100%;
    height:62px;
    background:rgba(255,253,246,.97);
    border-bottom:1px solid var(--line);
    box-shadow:0 5px 14px rgba(37,56,40,.07);
  }
  .mobile-nav .nav-item{
    flex:1;
    height:100%;
    padding:7px 5px;
    border-radius:0;
  }
  main{padding-bottom:35px}
}

/* Compact habitat markers leave more of the grove visible on mobile. */
@media(max-width:960px){
  .habitat-zone{
    gap:5px;
    padding:5px 7px;
    border-radius:12px;
    box-shadow:0 5px 12px rgba(33,54,40,.14);
  }
  .habitat-zone .zone-icon{
    width:25px;
    height:25px;
    border-radius:8px;
    font-size:.82rem;
  }
  .habitat-zone b{font-size:.72rem;line-height:1}
  .habitat-zone small{display:none}
}

@media(max-width:420px){
  .habitat-zone{padding:4px 6px}
  .habitat-zone .zone-icon{width:23px;height:23px}
  .habitat-zone b{font-size:.68rem}
}

[hidden]{display:none!important}
.account-email-card{margin:18px 0;padding:15px;border:1px solid #d7dfca;border-radius:18px;background:#f5f7ed}.account-email-card .form-field{margin:0 0 12px}.verification-code-field input{font-size:1.2rem;font-weight:800;letter-spacing:.22em;text-align:center}.verification-code-field small,.account-email-status{color:var(--muted);font-size:.74rem}.account-email-status{margin:11px 2px 0;line-height:1.4}.email-notification-choice{display:flex;align-items:flex-start;gap:9px;cursor:pointer}.email-notification-choice input{margin-top:4px;accent-color:var(--moss)}.email-notification-choice>span{display:grid}.email-notification-choice small{color:var(--muted);font-size:.7rem;line-height:1.35}.google-signin-block{margin:0 0 4px}.google-signin-heading{margin:0 0 8px;font-size:.78rem;font-weight:800;color:var(--deep)}.google-signin-block #google-signin-button{min-height:40px;display:flex;justify-content:flex-start}.google-signin-note{margin:8px 2px 0;color:var(--muted);font-size:.74rem;line-height:1.4}.account-auth-divider{display:flex;align-items:center;gap:10px;margin:12px 0 14px;color:var(--muted);font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.account-auth-divider:before,.account-auth-divider:after{content:"";flex:1;height:1px;background:#d7dfca}.guest-play-button{width:100%;margin-top:9px;padding:11px;border:1px dashed var(--moss);border-radius:13px;background:transparent;color:var(--moss);font-weight:800;cursor:pointer}.guest-play-button:hover{background:var(--sage)}.account-identity-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:12px 13px;border:1px solid #d7dfca;border-radius:16px;background:#f5f7ed}.account-identity-card>span:first-child{display:grid;min-width:0}.account-identity-card small{color:var(--muted);font-size:.7rem}.account-identity-card b{overflow:hidden;text-overflow:ellipsis}.account-verification-badge{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#eee8df;color:#8a7564;font-size:.67rem;font-weight:800}.account-verification-badge.verified{background:#dcebd5;color:#557050}.profile-email-choice{margin:0 2px 15px;padding:10px 12px;border-radius:14px;background:#faf8ef}

.simulated-circle-note{margin:6px 0 0;max-width:34ch;color:var(--muted);font-size:.75rem;line-height:1.4;font-weight:600}
.grove-safety{max-width:1500px;margin:0 auto;padding:4px clamp(20px,4vw,64px) 28px;color:var(--muted);font-size:.72rem;line-height:1.55}
.grove-safety p{margin:0;max-width:72ch}
.grove-safety a{color:var(--deep);font-weight:800}
.grove-safety strong{color:var(--ink);font-weight:800}
@media(max-width:960px){.grove-safety{padding-bottom:36px}.friends-strip .simulated-circle-note{max-width:none}}
