* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: 'VT323', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  cursor: url("./images/watering.png") 32 32, auto;

}


.garden-wrap {
  position: relative;
  width: 1100px;
  height: 650px;
  background-image: url("images/background.png");
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  color: #444;
}

header {
  position: absolute;
  left: 20px;
  top: 16px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

header h1 {
  margin: 0;
  font-size: 20px;          
  font-family: 'Press Start 2P', 'VT323', monospace;
  letter-spacing: 1px;
  color: rgb(52, 68, 124);
}

header p,
.info,
.hint {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color:rgb(14, 60, 109);
}

.info {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 11px;
  text-align: right;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

#status {
  display: block;
  margin-top: 4px;
}

.hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 11px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}


.plants-layer {
  position: absolute;
  inset: 80px 40px 40px 40px;
  pointer-events: auto;
}


.plant {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  user-select: none;


  --level-scale: 1;
  --click-scale: 1;
}

.plant img {
  display: block;
  image-rendering: pixelated;
  width: 48px;
  height: auto;
  transform-origin: center bottom;


  transform: scale(calc(var(--level-scale) * var(--click-scale)));
  transition: transform 0.15s ease;
}


.plant.level-0 { --level-scale: 0.8; }
.plant.level-1 { --level-scale: 1.0; }
.plant.level-2 { --level-scale: 1.2; }
.plant.level-3 { --level-scale: 1.4; }


.plant.click-1 { --click-scale: 1.1; } 
.plant.click-2 { --click-scale: 1.2; }  
.plant.click-3 { --click-scale: 1.3; } 

.plant.watering img {
  animation: waterPulse 0.35s ease-out;
}

@keyframes waterPulse {
  0%   { transform: scale(1.0) translateY(0); }
  40%  { transform: scale(0.9) translateY(2px); }
  100% { transform: scale(1.1) translateY(-1px); }
}




.spray {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.spray-flower {
  position: absolute;
  width: 32px;
  height: auto;
  image-rendering: pixelated;
  opacity: 0;
  animation: sprayFade 0.8s ease-out forwards;
}

@keyframes sprayFade {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.8); }
  100% { opacity: 0; transform: translate(0, -24px) scale(1.0); }
}
