.care-market-heading {
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px;
}
.care-market-heading h2 {margin:0}
.care-fridge-link {
  display:flex; align-items:center; gap:7px; min-height:40px; padding:4px 2px 4px 8px;
  background:none; border:0; color:#31583f; font-size:14px; font-weight:700;
}
.care-fridge-link svg {width:18px; height:18px}
.care-fridge-link small {
  padding:4px 8px; border-radius:12px; background:var(--village-mint); color:#456146; font-size:12px; font-weight:650;
}
.care-fridge-link.is-hungry small {color:var(--village-cranberry); background:var(--village-gold-paper)}
.care-fridge-link:hover span {text-decoration:underline; text-underline-offset:3px}
.care-market-stops {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px}
.care-stop, .care-dialog {
  --care-tone:var(--village-spruce); --care-pale:var(--village-mint);
}
[data-counter="cafe"] {--care-tone:#824c33; --care-pale:#f1e4cf}
[data-counter="burger"] {--care-tone:#963f37; --care-pale:#f3e0d2}
[data-counter="petrol"] {--care-tone:#365d73; --care-pale:#dee8e7}
[data-counter="fridge"] {--care-tone:#3c7168; --care-pale:#dce9df}
.care-stop {
  display:flex; align-items:center; gap:10px; text-align:left; min-height:70px; padding:10px 12px;
  border:1px solid var(--village-edge); border-radius:12px; background:#fbfaf1; color:var(--village-ink);
}
.care-stop:hover {background:var(--village-snow); border-color:var(--care-tone)}
.care-stop-icon, .care-item-icon {
  display:grid; place-items:center; flex:none; width:38px; height:40px; border-radius:10px;
  background:var(--care-pale); color:var(--care-tone);
}
.care-stop-icon svg, .care-item-icon svg {display:block; width:23px; height:23px}
.care-stop-copy strong, .care-item-copy strong {
  display:block; font:600 19px/1.18 Baskerville,'Palatino Linotype',Georgia,serif; letter-spacing:-.025em;
}
.care-stop-copy small, .care-item-copy small {display:block; margin-top:3px; color:#5f6b5b; font-size:13px; line-height:1.35}

.care-dialog {
  --care-tone:var(--village-spruce); --care-pale:var(--village-mint); width:min(520px,calc(100% - 24px));
  max-width:none; max-height:calc(100dvh - 26px); overscroll-behavior:contain;
  margin:auto; padding:0; border:1px solid var(--village-edge); border-radius:20px; color:var(--village-ink);
  background:var(--village-snow); box-shadow:0 15px 70px #112d3680; scrollbar-width:thin;
}
.care-dialog[data-counter="cafe"] {--care-tone:#805339; --care-pale:#f1e4cf}
.care-dialog[data-counter="burger"] {--care-tone:#924a3d; --care-pale:#f3e0d2}
.care-dialog[data-counter="petrol"] {--care-tone:#365d73; --care-pale:#dee8e7}
.care-dialog[data-counter="fridge"] {--care-tone:#3c7168; --care-pale:#dce9df}
.care-dialog::backdrop {background:var(--village-veil); backdrop-filter:blur(4px)}
.care-awning {
  height:10px; background:repeating-linear-gradient(90deg,var(--care-tone) 0 23px,#f5e8cb 23px 46px);
  border-bottom:1px solid #c3b698;
}
.care-window {padding:14px clamp(14px,4vw,25px) 18px}
.care-top {display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 10px}
.care-purse {
  display:inline-flex; align-items:center; gap:6px; min-height:30px; border:1px solid #d5c397;
  border-radius:20px; background:var(--village-gold-paper); color:#655029; padding:3px 10px 3px 5px;
  font-size:13px; font-weight:700; font-variant-numeric:tabular-nums;
}
.care-close {
  display:grid; place-items:center; border:1px solid #cccdb9; background:#fffdf3; color:#435847;
  border-radius:50%; width:38px; height:38px; font:24px/1 Arial,sans-serif;
}
.care-counters {display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; border-block:1px solid #d9dcc9; padding:5px 0}
.care-counters button {
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:3px; min-width:0;
  min-height:48px; border:0; border-radius:8px; padding:4px 0; background:transparent;
  color:#526353; font-size:12px; font-weight:650;
}
.care-counters svg {width:19px; height:19px}
.care-counters button[aria-current] {background:var(--care-pale); color:var(--care-tone)}
.care-counters button:hover {background:#eeefdf}
.care-intro {display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 14px}
.care-intro h2 {color:#284638; font:500 clamp(31px,6vw,41px)/1.07 Baskerville,'Palatino Linotype',Georgia,serif; letter-spacing:-.05em}
.care-intro h2:focus {outline:0}
.care-description {margin:7px 0 0; max-width:32ch; color:#596b5b; font-size:14px; line-height:1.45}
.care-illustration {display:block; width:90px; height:74px; flex:none; background:center/contain no-repeat}
.care-dialog[data-counter="shop"] .care-illustration {background-image:url('art/town/market.webp')}
.care-dialog[data-counter="cafe"] .care-illustration {background-image:url('art/teapot.webp')}
.care-dialog[data-counter="burger"] .care-illustration {
  background-image:url('art/diner-landscape.webp'); background-size:cover; background-position:center 55%;
  transform:rotate(3deg); border:4px solid #fffcf1; box-shadow:0 1px 5px #5d442a45;
}
.care-dialog[data-counter="petrol"] .care-illustration {background-image:url('art/town/cave-car.webp')}
.care-dialog[data-counter="fridge"] .care-illustration {background-image:url('art/burrow/fridge.webp')}
.care-metrics {
  display:flex; align-items:center; justify-content:space-between; gap:7px; padding:9px 0;
  border-block:1px solid #d7dbc8; font-size:13px; font-variant-numeric:tabular-nums;
}
.care-fullness {display:flex; align-items:center; gap:7px; color:#49684e}
.care-fullness.is-hungry {color:#8e4937}
.care-level {
  width:47px; height:8px; flex:none; border:1px solid #939f87; border-radius:5px;
  background:linear-gradient(to right,currentColor 0 var(--care-fill),#e7e9dc var(--care-fill) 100%);
}
.care-stock {color:#596a59; font-weight:650}
.care-item {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px;
  min-height:76px; padding:10px 0; border-bottom:1px solid #dfdfce;
}
.care-item-copy strong {font-size:20px}
.care-item button {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  width:104px; min-height:46px; padding:5px; background:var(--care-tone); color:#fffcf0;
  border:1px solid transparent; border-radius:9px; font:600 14px/1.1 inherit; font-size:14px;
}
.care-item button:enabled:hover {filter:brightness(.91)}
.care-item button:disabled {background:#ececdf; border-color:#d8dac9; color:#626e5e}
.care-item button small {display:flex; align-items:center; gap:3px; font-size:11px; font-weight:600}
.care-item button img {width:15px; height:15px}
.care-funds, .care-feedback {margin:10px 0 0; font-size:13px; line-height:1.4; color:var(--village-muted)}
.care-feedback:not(:empty) {padding:9px 11px; background:var(--care-pale); color:var(--care-tone); border-radius:8px; font-weight:650}
.care-feedback:empty {margin:0}
.care-empty {display:grid; justify-items:center; gap:7px; padding:15px 5px 3px}
.care-empty img {width:67px; height:65px; object-fit:contain}
.care-empty strong {font:600 21px/1.2 Baskerville,Georgia,serif}
.care-empty button {min-height:40px; background:none; color:var(--care-tone); border:0; text-decoration:underline; text-underline-offset:3px}

@media(max-width:850px) {
  .care-market-stops {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px) {
  .care-fridge-link {gap:4px; font-size:13px}
  .care-fridge-link small {padding:4px 6px; font-size:11px}
  .care-market-stops {gap:6px}
  .care-stop {min-height:66px; padding:7px; gap:6px}
  .care-stop-icon {width:31px; height:35px}
  .care-stop-icon svg {width:20px; height:20px}
  .care-stop-copy strong {font-size:17px}
  .care-stop-copy small {font-size:12px}
  .care-item {gap:8px}
  .care-item-copy strong {font-size:18px}
  .care-item-icon {width:30px; height:34px}
  .care-item-icon svg {width:20px; height:20px}
  .care-item button {width:91px}
  .care-illustration {width:66px; height:62px}
}
@media(max-width:355px) {
  .care-market-heading {flex-wrap:wrap; gap:2px}
  .care-item-icon {display:none}
  .care-item {grid-template-columns:minmax(0,1fr) auto}
}

.meal-dialog select {width:100%;padding:10px;border:1px solid #b9c9b2;border-radius:8px;background:var(--village-snow);color:#214d38;font:inherit}
.meal-dialog .meal-price,.meal-dialog .meal-friend {margin:12px 0;line-height:1.45}
.meal-dialog .meal-feedback:not(:empty) {margin-top:12px}
.meal-row {flex-wrap:wrap}
.meal-scene {width:min(380px,calc(100% - 24px))}
.meal-scene h2 {margin:0;font:600 26px/1.1 Baskerville,Georgia,serif}
.meal-scene p {margin:12px 0 0;text-align:center;line-height:1.4}
.meal-diners {
  display:flex;align-items:end;justify-content:center;overflow:hidden;border-radius:12px;
  background:linear-gradient(to bottom,#fff3d4b8,#fff2d6d9 79%,#ba8157 79%,#d19d72 84%,#b77f55);
}
.meal-diners svg {width:50%;max-height:34dvh}
.meal-paws > path:first-child {--lift:-82deg;transform-origin:58px 144px}
.meal-paws > path:nth-child(2) {--lift:82deg;transform-origin:122px 144px}
.meal-paws > path {animation:meal-pat 3.4s ease-in-out both}
.meal-bite {animation:meal-nibble 3.4s ease-in-out both;transform-origin:90px 155px}
.meal-diners svg:nth-child(2) .meal-paws > * {animation-delay:.15s}
@keyframes meal-pat {
  0%,32%,64%,82%,100% {transform:rotate(0deg)}
  18%,47% {transform:rotate(var(--lift))}
  73%,91% {transform:rotate(calc(var(--lift) * .1))}
}
@keyframes meal-nibble {
  0% {transform:translateY(0)}
  18% {transform:translateY(-42px)}
  32% {transform:translateY(0) scale(.7)}
  47% {transform:translateY(-42px) scale(.6);opacity:1}
  52%,100% {transform:translateY(-42px) scale(.2);opacity:0}
}
@media (prefers-reduced-motion:reduce) {
  .meal-paws > path, .meal-bite {animation:none}
  .meal-bite {opacity:0}
}
