/* Milestones extend the app's existing cream, clay and garden palette. */
.milestone-art{display:block;position:relative;aspect-ratio:1;width:100%;isolation:isolate}
.milestone-art>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.your-tally{display:grid;grid-template-columns:1fr 110px;gap:8px 16px;margin-top:20px;padding:20px;border:1px solid #dce0d3;border-radius:20px;background:#f5f3e6}
.your-tally h2{margin:0 0 8px;font-size:22px}
.your-tally p{margin:0 0 4px;font-size:16px}.your-tally p strong{font-size:28px}
.your-tally>div>span{color:#637461;font-size:13px}.your-tally>.milestone-art{align-self:center}
.tally-card-mascot{width:88px;height:88px;object-fit:contain;justify-self:center}
.milestone-link,.milestone-back{border:0;background:none;color:#365846;min-height:44px;font:600 14px/1.4 "Inter",sans-serif;cursor:pointer;padding:10px 0}
.your-tally>.milestone-link{grid-column:1/-1;text-align:left;justify-self:start}
.milestone-back{margin:0 0 10px}.milestone-collection-heading h1:focus{outline:none}
.milestone-collection-heading h1{margin:6px 0 12px;font-size:32px;letter-spacing:-1px}
.milestone-collection-heading p{margin:0 0 10px;color:#365846}.milestone-collection-heading p strong{font-size:28px}
.milestone-collection-heading>span:last-child{display:block;max-width:330px;color:#687264;font-size:14px;line-height:1.55}
.milestone-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin-top:24px}
.milestone-tile{text-align:center;min-width:0;border:1px solid #e0e2d5;border-radius:18px;background:#fbfaf3;padding:8px 8px 16px}
.milestone-tile h2{font-size:17px;line-height:1.25;margin:4px 0 6px}.milestone-tile p{font-size:13px;margin:0 0 5px;color:#586956}
.milestone-tile>span:last-child{display:block;font-size:10px;line-height:1.5;color:#6c7667}
.milestone-collection-note{text-align:center;color:#576a55;padding:24px 5px 4px}.milestone-collection-note p{font-size:14px;font-weight:600;margin:0 0 7px}.milestone-collection-note span{font-size:12px;line-height:1.5}
.milestone-empty{text-align:center;padding:28px 10px}.milestone-empty img{object-fit:contain}.milestone-empty h2{font-size:22px}.milestone-empty p{font-size:15px;line-height:1.6;color:#687264}
.tally-day-count{font-size:12px;line-height:1.5;color:#677863;margin:12px 0 0;text-align:center}
.milestone-link:focus-visible,.milestone-back:focus-visible{outline:2px solid #437654;outline-offset:3px;border-radius:8px}
@media(min-width:640px){.milestone-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.your-tally{grid-template-columns:1fr 150px}.milestone-collection{max-width:660px;margin:auto}}
/* The illustrated world is scoped to milestone surfaces. */
.your-tally{background:#fff}
.milestone-tile{appearance:none;font:inherit;color:inherit;cursor:pointer}
.milestone-tile-title{display:block;font-size:17px;font-weight:700;line-height:1.25;margin:4px 0 6px}
.milestone-tile-date{display:block;font-size:11px;line-height:1.5;color:#6c7667}
.milestone-tile:focus-visible{outline:3px solid #437654;outline-offset:3px}
.milestone-shade{padding:0;background:#f7f6ec;backdrop-filter:none}
.milestone-dialog{text-align:center;box-sizing:border-box;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;animation:none;overscroll-behavior:contain;background:radial-gradient(ellipse at 0 75%,#dce3ce66 0,transparent 49%),radial-gradient(ellipse at 100% 25%,#eadcc533 0,transparent 47%),#faf8ef}
.milestone-scene{box-sizing:border-box;min-height:100%;max-width:460px;margin:auto;padding:calc(22px + env(safe-area-inset-top,0px)) 22px calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:stretch;justify-content:space-between}
.milestone-brand{display:flex;align-items:center;justify-content:center;gap:9px;color:#244b36;margin:0 0 24px;font:700 25px/1 "Bricolage Grotesque",sans-serif}
.milestone-brand img{width:30px;height:30px;border-radius:8px}
.milestone-dialog h1{font-family:"Bricolage Grotesque",sans-serif;font-weight:800;font-size:38px;line-height:1.1;margin:10px auto 12px;max-width:390px;text-wrap:balance}
.milestone-dialog h1:focus{outline:none}
.milestone-dialog .eyebrow{font-size:12px;letter-spacing:1px;color:#63755c}
#milestone-reveal-copy,#milestone-detail-copy{font-size:16px;line-height:1.5;color:#425c49;max-width:350px;margin:0 auto}
.milestone-hero{height:auto;aspect-ratio:1;width:100%;max-width:320px;flex-shrink:0;align-self:center;position:relative;margin:22px auto 14px;isolation:isolate}
.milestone-art--hero{animation:milestone-tablet-arrive 260ms ease-out both;transform-origin:50% 100%}
.milestone-reassurance{font-size:13px;line-height:1.6;margin:0 0 18px;color:#64735c}
.milestone-reveal-actions{display:flex;flex-direction:column;margin-top:12px;gap:4px;padding-top:12px}
.milestone-reveal-actions .primary-button{width:100%;min-height:50px;font-size:16px}
.milestone-dialog .milestone-link{min-height:44px;border:0;background:none;box-shadow:none;color:#365846;font-size:14px;text-decoration:underline;text-underline-offset:4px}
.milestone-dialog--history h1{font-size:30px}
.milestone-dialog--history .milestone-brand{margin-bottom:18px}
.milestone-dialog--history .milestone-hero{max-width:250px;margin:12px auto 0}
.milestone-dialog--bundle h1{font-size:30px}
.milestone-dialog--bundle .milestone-hero{max-width:250px}
.milestone-dialog--ack .milestone-hero{max-width:180px}
.milestone-bundle-label{text-transform:uppercase;font-size:11px;letter-spacing:1px;margin:12px 0 8px;font-weight:700}
.milestone-featured-label{font-size:15px;font-weight:700;margin:0 0 10px}
.milestone-bundle{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 4px;margin-bottom:18px}
.milestone-bundle>div{width:calc(25% - 4px);animation:milestone-tablet-arrive 240ms ease-out both;animation-delay:var(--arrival,0ms)}
.milestone-bundle>div>span:last-child{display:block;font-size:10px;line-height:1.3;min-height:2.6em;text-wrap:balance}
.milestone-intro-tablets{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:320px;width:100%;align-self:center;margin:24px auto 8px}
.milestone-waiting-tablet{width:var(--tablet-size);opacity:.75}
.milestone-waiting-tablet .milestone-locked-outline{padding:0}
.milestone-date{font-size:13px;color:#69745f;line-height:1.5;margin:0 0 12px}
.milestone-award>.milestone-hero{margin-bottom:0}
.milestone-award>.milestone-reassurance{margin-top:20px;margin-bottom:0}
.milestone-award>.milestone-featured-label{margin-top:8px}
.milestone-award>.milestone-bundle{margin-bottom:0}
.milestone-dialog p,.milestone-empty p,.milestone-collection-note{text-wrap:balance}
.update-copy{text-wrap:balance}
.update-icon.update-icon--tablet{width:100px;height:100px;background:none;box-shadow:none;border-radius:0}
@keyframes milestone-tablet-arrive{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
@media(max-height:720px){.milestone-scene{padding-top:calc(15px + env(safe-area-inset-top,0px));padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.milestone-brand{margin-bottom:18px}.milestone-dialog h1{font-size:33px}.milestone-dialog--history h1{font-size:27px}.milestone-hero{max-width:248px;margin-top:12px;margin-bottom:8px}.milestone-dialog--history .milestone-hero{max-width:205px;margin-top:8px}.milestone-bundle{margin-bottom:12px}.milestone-bundle-label{margin:8px 0 6px}.milestone-featured-label{margin-bottom:5px}.milestone-reassurance{margin-bottom:10px}.milestone-intro-tablets{margin:14px auto 4px;gap:8px}.update-icon.update-icon--tablet{width:78px;height:78px}}
@media(prefers-reduced-motion:reduce){.milestone-art--hero,.milestone-bundle>div{animation:none}}
/* Next rewards show only quiet outlines; earned artwork stays the focus. */
.milestone-next{font-size:13px;line-height:1.5;color:#52684f;margin:10px 0 0}
.your-tally .milestone-next{font-size:12px;margin-top:8px}
.your-tally .tally-first-meal{font-size:14px;line-height:1.5}
.milestone-collection-heading>span:not(.eyebrow){display:block;max-width:330px;color:#687264;font-size:14px;line-height:1.55}
.milestone-collection-heading .milestone-next{margin-top:10px}
.milestone-tile--locked{background:transparent;border:1px dashed #cdd3c5;cursor:default;color:#52684f}
.milestone-locked-outline{aspect-ratio:1;display:grid;place-items:center;padding:8px}
.milestone-locked-outline svg{width:100%;fill:none;stroke:#c2cab9;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.milestone-locked-label{display:block;font-size:14px;font-weight:600;line-height:1.4;margin:4px 0 6px}
.milestone-dialog .milestone-waiting{font-size:16px;color:#425c49;line-height:1.5;margin:12px 0 0}
.milestone-reassurance p{margin:0}.milestone-reassurance .milestone-next{margin:0 0 8px}
.tally-day-count{display:block;width:100%;border:0;background:none;font:600 12px/1.5 "Inter",sans-serif;min-height:44px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:8px 0}
.tally-day-count:focus-visible{outline:2px solid #437654;outline-offset:2px;border-radius:6px}
@media(max-height:720px){.milestone-dialog:not(.milestone-detail):not(.milestone-dialog--history):not(.milestone-dialog--bundle):not(.milestone-dialog--ack) .milestone-hero{max-width:215px}.milestone-dialog--history .milestone-hero,.milestone-dialog--bundle .milestone-hero{max-width:180px}.milestone-dialog--bundle h1{font-size:27px}.milestone-bundle>div{max-width:62px}.milestone-scene{padding-left:20px;padding-right:20px}}
@media(max-height:720px){
 .milestone-dialog--history:not(.milestone-dialog--intro) .milestone-brand{margin-bottom:8px}
 .milestone-dialog--history:not(.milestone-dialog--intro) h1{margin:6px auto 8px}
 .milestone-dialog--history:not(.milestone-dialog--intro) .milestone-hero{max-width:120px}
 .milestone-dialog--history:not(.milestone-dialog--intro) .milestone-bundle{margin-bottom:6px}
 .milestone-dialog--history:not(.milestone-dialog--intro) .milestone-reassurance{margin-bottom:2px}
 .milestone-dialog--history:not(.milestone-dialog--intro) .milestone-reveal-actions{margin-top:0;padding-top:4px}
}

/* Acknowledgment adds a third action; keep it in reach on short phones. */
@media(max-height:720px){
 .milestone-dialog--ack .milestone-brand{margin-bottom:8px}
 .milestone-dialog--ack h1{font-size:27px;margin:6px auto 8px}
 .milestone-dialog--ack .milestone-hero{max-width:120px;margin-top:8px}
 .milestone-dialog--ack .milestone-featured-label{margin:4px 0}
 .milestone-dialog--ack .milestone-bundle>div{max-width:52px}
 .milestone-dialog--ack .milestone-reveal-actions{margin-top:0;padding-top:4px}
}

/* Live rewards arrive after the saved-card reading pause. */
.milestone-shade--live{animation:milestone-reveal-fade 250ms ease-out both}
@keyframes milestone-reveal-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.milestone-shade--live{animation:none}}
.milestone-collection-heading>span:not(.eyebrow){max-width:300px;text-wrap:pretty}
.milestone-collection-note>span{display:block;text-wrap:balance}
.milestone-reveal-actions .primary-button:disabled{opacity:1}
.milestone-dialog .milestone-error{color:#425c49;font-size:14px}
.milestone-dialog .milestone-reassurance,.milestone-dialog .milestone-next{font-size:14px}
@media(min-height:721px){
 .milestone-dialog--intro .milestone-scene{justify-content:flex-start}
 .milestone-dialog--intro .milestone-intro-tablets{margin-top:32px}
 .milestone-dialog--intro .milestone-reveal-actions{margin-top:auto}
}
