/* CARE returning Home — scoped to #home-view only. */
#home-view{min-width:0;overflow-x:clip}
#home-view .page-intro{padding-bottom:20px}
#home-view #home-heading{margin:0!important;text-transform:none}
#home-view .home-companions{display:grid;gap:16px;min-width:0;margin:0 0 16px}

/* One full-width daily-care card per available saved pet. */
#home-view .companion-feature{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;width:100%;min-width:0;max-width:100%;padding:18px 16px;border:1px solid var(--f-line);border-radius:22px;background:var(--f-white);overflow:hidden}
#home-view .companion-feature>*{min-width:0;max-width:100%}
#home-view .feature-pet{display:grid;place-items:center}
#home-view .feature-pet .coin-stage{padding:2px 0;background:radial-gradient(ellipse at 50% 35%,rgba(243,198,79,.22),transparent 70%)}
#home-view .feature-pet .pet-coin{width:min(160px,48vw)}
#home-view .feature-pet .coin-hint{display:none}
#home-view .coin-stage.caught .coin-face{box-shadow:inset 0 0 0 7px #d9a93a,inset 0 0 0 9px #fff0b5,inset 0 0 0 12px #b8831c,0 10px 22px rgba(30,40,30,.2)}
#home-view .pet-coin:focus{outline:none}
#home-view .pet-coin:focus-visible{outline:3px solid var(--f-red)!important;outline-offset:4px;border-radius:50%;filter:none}
#home-view .home-card-heading{text-align:center}
#home-view .feature-name{font:700 clamp(23px,6vw,30px)/1.08 var(--f-head);letter-spacing:-.01em;margin:0;color:var(--f-ink);overflow-wrap:anywhere;hyphens:auto}
#home-view .home-see-more{flex:none;color:var(--f-red);font-size:13px;font-weight:700;text-underline-offset:3px}
#home-view .home-see-more:focus-visible{outline:3px solid var(--f-red);outline-offset:3px;border-radius:2px}

#home-view .home-care-progress{display:grid;gap:12px;min-width:0}
#home-view .home-care-heading,#home-view .home-support-heading-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
#home-view .home-care-progress h3{margin:0;font:600 17px/1.2 var(--f-head);color:var(--f-ink)}
#home-view .home-care-xp{font-size:13px;color:var(--f-muted)}
#home-view .home-care-meter{height:12px;overflow:hidden;border-radius:99px;background:#e6e1d5}
#home-view .home-care-meter i{display:block;width:100%;height:100%;transform-origin:left;background:linear-gradient(90deg,#d5a025,#f3c64f)}
#home-view .home-card-footer{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:4px}
#home-view .home-care-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;padding:0;list-style:none}
#home-view .home-care-slot{display:grid;justify-items:center;align-content:start;gap:6px;min-width:0;color:var(--f-ink);font-size:12px;font-weight:600;line-height:1.2;text-align:center}
#home-view .home-care-slot>span:last-child{overflow-wrap:anywhere}
#home-view .home-care-status-coin{box-sizing:border-box;display:grid;place-items:center;width:34px;height:34px;border:2px dashed #b8b1a5;border-radius:50%;background:var(--f-white)}
#home-view .home-care-status-coin.is-filled{border:2px solid #bd8a19;background:radial-gradient(circle at 35% 28%,#fff8dc 0%,#f3c64f 55%,#c99324 100%);box-shadow:inset 0 0 0 2px #fff0b5,0 2px 5px rgba(80,55,0,.16)}
#home-view .home-care-status-coin svg{width:17px;height:17px;fill:none;stroke:#61440a;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#home-view .home-care-status-coin.is-just-done{animation:home-coin-pop .42s cubic-bezier(.2,.8,.2,1) both}
@keyframes home-coin-pop{0%{transform:scale(.35);opacity:.25}65%{transform:scale(1.18)}100%{transform:scale(1);opacity:1}}
#home-view .home-care-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#home-view .home-care-action{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:52px;padding:2px 12px;border:2px solid var(--f-line);border-radius:14px;background:var(--f-white);color:var(--f-ink);font:700 15px/1.2 var(--f-body);text-align:left;cursor:pointer;touch-action:manipulation}
#home-view .home-care-action:hover{border-color:var(--f-red)}
#home-view .home-care-action img{flex:none;width:34px;height:34px;object-fit:contain}
#home-view .home-care-action span{overflow-wrap:anywhere}
#home-view .home-care-action:focus-visible{outline:3px solid var(--f-red);outline-offset:2px}
#home-view .home-care-complete{margin:0;color:#684b0a;font-size:14px;font-weight:700;line-height:1.4}
#home-view .home-care-streak{margin:0;color:var(--f-muted);font-size:12px;font-weight:600}
#home-view .home-progress-unavailable{margin:0;color:var(--f-muted);font-size:13px;line-height:1.45}
#home-view .home-unavailable{margin:0}

/* Discovery actions. */
#home-view .home-discovery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0 8px}
#home-view .home-discovery h2{grid-column:1/-1;margin:0 0 2px;font:700 21px/1.2 var(--f-head);color:var(--f-ink)}
#home-view .home-discovery-card{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:48px;padding:12px 14px;border:2px solid #d1d5db;border-radius:12px;background:var(--f-white);color:var(--f-ink);font:700 15px/1.2 var(--f-body);text-align:center;cursor:pointer}
#home-view .home-discovery-card:hover{background:var(--f-white);border-color:var(--f-red)}
#home-view .home-match-button:hover{border-color:var(--f-red)}
#home-view .home-discovery-card:focus-visible{outline:3px solid var(--f-red);outline-offset:2px}

@media(max-width:360px){
  #home-view .companion-feature{padding:16px 12px}
  #home-view .home-care-action{gap:6px;padding:0 8px}
  #home-view .home-care-action img{width:28px;height:28px}
  #home-view .home-discovery-card{padding:12px}
}
@media(prefers-reduced-motion:reduce){
  #home-view .home-care-status-coin.is-just-done,#home-view .home-discovery-card{animation:none;transition:none}
}

/* Home support actions: compact rows that match daily-care buttons. */
#home-view .cc-actions.home-support{display:grid;gap:10px;min-width:0;margin:4px 0 0;padding:0;border:0;border-radius:0;background:transparent}
#home-view .home-support-heading{text-align:start}
#home-view .home-support .cc-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
#home-view .home-support .home-donate{grid-column:1/-1;justify-content:center;background:var(--f-red);border-color:var(--f-red);color:var(--f-white)}
#home-view .home-support .home-donate:hover{background:var(--f-red);border-color:var(--f-red);filter:brightness(.9)}
#home-view .home-support .home-care-action:disabled{cursor:not-allowed;opacity:.6}
#home-view .home-support-stamps{display:flex;justify-content:center;min-width:0;margin-top:0}
#home-view .home-support-stamps .pet-stamp-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
#home-view .home-support-stamps .pet-stamp-progress{display:grid;place-items:center;min-width:0;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--f-ink);cursor:pointer}
#home-view .home-support-stamps .pet-stamp-progress:focus-visible{outline:3px solid var(--f-red);outline-offset:2px}
#home-view .home-support-stamps .cc-art{width:36px;height:36px;max-width:none}
#home-view .home-support-stamps [data-tier=locked] .cc-art{opacity:.55}
