/* Jardim dos hábitos: vasos num parapeito de madeira clara, plantas que crescem e murcham. */
.jardim { margin-bottom: 22px; overflow: hidden; }
.jardim .cabecalho-cartao { flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.jardim .cabecalho-cartao .pequeno { color: color-mix(in srgb, var(--tinta) 75%, transparent); }
.parapeito { position: relative; margin: 6px -4px 0; padding: 0 8px; }
.vasos { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.vaso-item::before { /* pedaço da tábua do parapeito (emenda com o vizinho) */
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 30px; height: 15px;
  background: linear-gradient(180deg, #E4CCA6, #CFB085 55%, #B9966B);
  box-shadow: 0 9px 10px -8px rgba(80, 50, 20, .5), inset 0 1px 0 rgba(255,255,255,.5);
}
.vaso-item { position: relative; width: 124px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.vaso-habito { position: relative; width: 112px; height: 146px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; margin-bottom: 12px; }
.vaso-habito:focus-visible { outline: 2px solid var(--forte); outline-offset: 2px; }
.cena-vaso { position: absolute; left: 0; right: 0; bottom: -14px; width: 112px; height: 146px; overflow: visible; }
.cena-vaso .planta { transform-origin: 50px 84px; transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), filter .6s ease; }
.vaso-habito:hover .planta { transform: rotate(-2deg) scale(1.02); }
.vaso-habito.murchinha .planta { transform: rotate(8deg); filter: saturate(.6) brightness(.98); }
.vaso-habito.murcha .planta { transform: rotate(15deg) scaleY(.94); filter: saturate(.3) sepia(.35) brightness(.95); }
.vaso-habito.murcha .folha { transform-box: fill-box; }
.vaso-nome { font-size: 14.5px; font-weight: 600; line-height: 1.2; color: var(--tinta); max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vaso-estado { font-size: 12.5px; margin-top: 2px; color: color-mix(in srgb, var(--tinta) 68%, transparent); }
.vaso-estado.ok { color: var(--forte); font-weight: 600; }
.vaso-estado.sede { color: #A0622D; }

/* regar */
.regador { position: absolute; left: -2px; top: 2px; z-index: 2; transform-origin: 30% 80%; animation: regar 1.3s ease both; }
@keyframes regar { 0% { opacity: 0; transform: translate(-10px, -6px) rotate(0); } 20% { opacity: 1; transform: translate(0, 0) rotate(0); } 45%, 75% { transform: translate(6px, 4px) rotate(28deg); opacity: 1; } 100% { opacity: 0; transform: translate(-6px, -4px) rotate(0); } }
.gotas { position: absolute; left: 58px; top: 30px; z-index: 2; width: 20px; height: 40px; pointer-events: none; }
.gotas i { position: absolute; top: 0; width: 4px; height: 7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #8DB4D8; opacity: 0; animation: gota .9s ease-in both; }
.gotas i:nth-child(1) { left: 0; animation-delay: .45s; }
.gotas i:nth-child(2) { left: 7px; animation-delay: .55s; }
.gotas i:nth-child(3) { left: 3px; animation-delay: .68s; }
.gotas i:nth-child(4) { left: 11px; animation-delay: .8s; }
@keyframes gota { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(42px); } }
.vaso-habito.regando .planta { animation: crescer .9s .7s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes crescer { 0% { transform: scale(.92); } 100% { transform: scale(1); } }

/* tablet e computador: os vasos se espalham e o parapeito vai quase de ponta a ponta, como no celular */
@media (min-width: 641px) {
  .vaso-item { flex: 1 1 0; min-width: 124px; max-width: 220px; }
}

@media (max-width: 640px) {
  .vasos { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 4px 2px; }
  .vasos::-webkit-scrollbar { display: none; }
  .vaso-item { flex: none; width: 104px; }
  .vaso-habito, .cena-vaso { width: 96px; height: 126px; }
  .vaso-item::before { bottom: 47px; }
}
@media (prefers-reduced-motion: reduce) {
  .regador, .gotas i, .vaso-habito.regando .planta { animation: none !important; }
}
