.pvz-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.plant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 106px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(196, 168, 255, 0.25);
  background: rgba(14, 10, 34, 0.86);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.plant-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.plant-card.is-selected {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(246, 209, 118, 0.22), rgba(168, 85, 247, 0.34));
  box-shadow: 0 0 22px rgba(246, 209, 118, 0.32);
}

.plant-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.plant-emoji { font-size: 1.4rem; line-height: 1; }
.plant-name { font-size: 0.78rem; font-weight: 800; }
.plant-cost { font-size: 0.72rem; font-weight: 700; color: var(--gold-bright); }

.pvz-board-wrap {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(246, 209, 118, 0.32);
  background: #0a071a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

#pvz-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: manipulation;
  cursor: crosshair;
}

.pvz-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 5, 20, 0.8);
  backdrop-filter: blur(8px);
  text-align: center;
  padding: 24px;
}

.pvz-overlay[hidden] { display: none; }

.pvz-overlay-card {
  max-width: 440px;
  padding: 26px;
  border-radius: 20px;
  background: rgba(18, 12, 42, 0.94);
  border: 1px solid rgba(246, 209, 118, 0.45);
}

.pvz-overlay-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--gold-bright);
}

.pvz-overlay-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.pvz-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
