/* CannaGrow 0.14.35 – exakte Growroom-Hitboxen + modulare Missionen */

/* Der belegte Stellplatz selbst ist keine Schaltfläche mehr. Nur Status,
   sichtbare Pflanze und sichtbare Technik sind interaktiv. */
#roomScene .plant-slot.pixi-slot:not(.empty):not(.locked-slot){
  cursor:default!important;
  outline:none!important;
}

/* Statuskarte als eigene kleine Schaltfläche statt riesigem Stellplatz-Fokus. */
#roomScene .plant-slot.pixi-slot .plant-tag{
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
  color:inherit;
  text-align:left;
  cursor:pointer;
  min-width:0!important;
  min-height:44px!important;
  width:min(128px,calc(100% - 20px))!important;
  padding:6px 7px!important;
  touch-action:pan-y!important;
  -webkit-tap-highlight-color:transparent;
}
#roomScene .plant-slot.pixi-slot .plant-tag:focus-visible{
  outline:2px solid rgba(92,240,142,.82)!important;
  outline-offset:2px!important;
}

/* Alert/Erntebereit bleibt eine separate kleine Aktion. */
#roomScene .plant-slot.pixi-slot .alert-badge{
  appearance:none;
  -webkit-appearance:none;
  font:inherit;
  cursor:pointer;
  touch-action:pan-y!important;
  -webkit-tap-highlight-color:transparent;
}

/* Status soll vor den transparenten Pixi-Hitboxen liegen. Der Grid-Container
   selbst bleibt transparent für Pointer, nur seine echten Controls reagieren. */
#roomScene .plant-grid.pixi-overlay{
  z-index:21!important;
  pointer-events:none!important;
}
#roomScene .plant-grid.pixi-overlay .plant-slot.empty,
#roomScene .plant-grid.pixi-overlay .plant-slot.locked-slot,
#roomScene .plant-grid.pixi-overlay .plant-tag,
#roomScene .plant-grid.pixi-overlay .alert-badge{
  pointer-events:auto!important;
}
#roomScene .room-tech-hotspots{
  z-index:20!important;
}

/* Keine sichtbaren Fokusrahmen um die unsichtbaren Technik-/Pflanzenflächen
   bei normalem Tap. Tastaturfokus bleibt als kleiner grüner Rand sichtbar. */
.room-tech-hotspot,
.room-plant-hotspot{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.room-tech-hotspot:focus-visible,
.room-plant-hotspot:focus-visible{
  outline:2px solid rgba(92,240,142,.72);
  outline-offset:2px;
}

@media(max-width:760px){
  #roomScene .plant-slot.pixi-slot .plant-tag{
    top:10px!important;
    left:10px!important;
    width:min(124px,calc(100% - 20px))!important;
  }

  /* Scrollen bleibt auch über Status, Pflanze und Technik möglich; erst ein
     echter Tap löst die jeweilige Aktion aus. */
  #roomScene .plant-tag,
  #roomScene .alert-badge,
  #roomScene .room-plant-hotspot,
  #roomScene .room-tech-hotspot{
    touch-action:pan-y!important;
  }
}
