/* The three pots in front of the greenhouse and the care tools at the foot of the scene. */

/* a pot stands on the floor (its bottom on the anchor); only the pot and the lower plant take taps, so the basket
   behind stays reachable between and above the plants */
.vaso.ancorado { transform: translate(-50%, -100%); }
.vaso { z-index: 3; aspect-ratio: 420 / 646; padding: 0; border: 0; background: none; pointer-events: none; touch-action: manipulation; }
.vaso-toque { position: absolute; left: 22%; right: 22%; bottom: 0; height: 85%; z-index: 2; pointer-events: auto; border-radius: 40% 40% 12px 12px; }
.vaso:focus-visible { outline: none; }
.vaso:focus-visible .vaso-toque { outline: 2px dotted var(--hibisco); outline-offset: 2px; }
.vaso img.planta { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 2px rgb(92 60 38 / .3)); transition: transform 500ms var(--curva), filter 500ms ease; }
/* its shadow on the stone floor; the chosen one (or the one a tool is dragged over) stands in a painted red ring and
   lifts a little */
.vaso::after { content: ''; position: absolute; left: 27%; right: 27%; bottom: -3%; height: 6%; border-radius: 50%; background: rgb(70 52 34 / .28); z-index: -1; transition: background 300ms ease, box-shadow 300ms ease; }
.vaso[aria-pressed="true"]::after, .vaso.alvo::after { background: rgb(200 36 60 / .12); box-shadow: 0 0 0 2px rgb(200 36 60 / .45); }
.vaso[aria-pressed="true"] img.planta, .vaso.alvo img.planta { translate: 0 -3px; }
.vaso.alvo img.planta { filter: brightness(1.08) drop-shadow(0 2px 2px rgb(92 60 38 / .3)); }
@media (hover: hover) { .vaso:hover img.planta { transform: rotate(-1.5deg); } }

/* thirsty: the leaves droop a little (the pot itself stays put); very thirsty: a little more, a little paler */
.vaso.com-sede img.planta { transform: skewX(-4deg) scaleY(.975); filter: saturate(.9) drop-shadow(0 2px 2px rgb(92 60 38 / .3)); }
.vaso.muita-sede img.planta { transform: skewX(-6deg) scaleY(.955); filter: saturate(.8) brightness(.98) drop-shadow(0 2px 2px rgb(92 60 38 / .3)); }

/* the dry leaf rests on the soil, against the plant */
.vaso .folha-seca { position: absolute; left: 52%; bottom: 21%; width: 13%; height: auto; object-fit: contain; transform: rotate(-18deg); pointer-events: none; filter: drop-shadow(0 1px 1px rgb(92 60 38 / .3)); }

/* with less motion: a still sign that fades — a drop, a grain, a petal, or a heart for a caress */
.sinal-cuidado { position: absolute; left: 50%; top: 34%; translate: -50% 0; }
.sinal-cuidado.gota { width: 14px; height: 20px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #9ED0E6; rotate: 180deg; }
.sinal-cuidado.grao { width: 12px; height: 12px; border-radius: 50%; background: #E9C46A; }
.sinal-cuidado.petala-colhida { width: 16px; height: 20px; border-radius: 70% 0 70% 0; background: var(--cor); }
.sinal-cuidado.coracao { font: 600 30px/1 var(--f-mao); color: var(--hibisco); }
/* drops, grains, petals: drawn shapes that fall onto the plant */
.vaso-efeitos { position: absolute; inset: 0; pointer-events: none; }
.vaso-efeitos .gota { position: absolute; top: 30%; width: 6px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #9ED0E6; box-shadow: inset -1px -2px 0 rgb(70 130 170 / .35); }
.vaso-efeitos .grao { position: absolute; top: 58%; width: 5px; height: 5px; border-radius: 50%; background: #E9C46A; box-shadow: 0 0 4px rgb(233 196 106 / .8); }
.vaso-efeitos .petala, .vaso-efeitos .petala-colhida { position: absolute; top: 18%; width: 10px; height: 13px; border-radius: 70% 0 70% 0; background: var(--cor, #C8243C); opacity: .9; }
.vaso-efeitos .petala-colhida { left: 50%; top: 30%; width: 14px; height: 18px; }
.borboleta-estufa { position: absolute; left: 38%; top: 6%; width: 26%; }
.borboleta-estufa .asa { transform-box: fill-box; animation: bate 380ms ease-in-out infinite alternate; }
.borboleta-estufa .asa.e { transform-origin: 100% 80%; } .borboleta-estufa .asa.d { transform-origin: 0% 80%; }
@keyframes bate { to { transform: scaleX(.35); } }

/* the tools, at the foot of the scene while a pot is chosen (the sky's caption steps aside meanwhile) */
.cuidados { display: grid; justify-items: center; gap: 2px; width: min(92vw, 330px); padding: 4px 8px 8px 14px; border-radius: 18px; background: rgb(255 252 244 / .9); box-shadow: 0 6px 18px rgb(122 90 67 / .22); }
.cuidados[hidden] { display: none; }
.cuidados-topo { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.cuidados-titulo { margin: 0; font: 500 21px/1 var(--f-mao); color: var(--madeira); }
.cuidados-fecha { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--madeira); font: 400 26px/1 var(--f-texto); }
.cuidados-botoes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
.cuidado { display: grid; justify-items: center; gap: 0; min-width: 64px; min-height: 64px; padding: 4px 6px; border: 0; border-radius: 12px; background: none;
  color: var(--tinta); font: 500 18px/1 var(--f-mao); touch-action: none; cursor: grab; transition: transform 200ms var(--curva), background 200ms ease; }
.cuidado[aria-disabled="true"] { opacity: .42; filter: grayscale(.5); }
.cuidado img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 2px rgb(92 60 38 / .25)); pointer-events: none; }
.cuidado:active { transform: scale(.94); }
@media (hover: hover) { .cuidado:hover { background: rgb(233 196 106 / .18); } }
.cuidado-fantasma { position: fixed; left: 0; top: 0; z-index: 60; width: 64px; height: 64px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 6px 8px rgb(92 60 38 / .35)); }
.estufa.cuidando .legenda-ceu { display: none; }
/* a note never covers the tools or the pots: while the tools are open it appears up in the sky, under the title */
body.com-cuidados .bilhete:not(.no-ceu) { bottom: auto; top: 112px; }
@media (min-width: 900px) { body.com-cuidados .bilhete:not(.no-ceu) { top: 196px; left: 27%; } }   /* beside the keystone stars, never on them */

@media (min-width: 900px) {
  .cuidados { width: 420px; } .cuidado img { width: 62px; height: 62px; } .cuidado { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .vaso img.planta, .cuidado { transition: none; }
  .borboleta-estufa .asa { animation: none; }
  .vaso[aria-pressed="true"] img.planta, .vaso.alvo img.planta { translate: none; }
}

/* a phone on its side: the tools stand at the right edge, in a column, so the floor stays visible */
@media (max-height: 500px) {
  .estufa .cuidados { position: fixed; z-index: 7; left: 10px; top: 50%; transform: translateY(-50%); width: 172px; padding: 4px 6px; }
  .estufa .cuidados-botoes { grid-template-columns: 1fr 1fr; gap: 2px; }
  .estufa .cuidados-titulo { font-size: 16px; white-space: nowrap; }
  body.com-cuidados .bilhete:not(.no-ceu) { top: auto; bottom: calc(var(--caminho-h) + 16px); }
  .estufa .cuidados-titulo { font-size: 18px; }
  .cuidado { min-height: 52px; } .cuidado img { width: 34px; height: 34px; }
}
