.cf-palette {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cf-elem {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(79, 223, 255, 0.16), rgba(255, 255, 255, 0.05));
  color: #eafaff;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.08s ease;
}
.cf-elem:hover { transform: translateY(-3px); border-color: rgba(79, 223, 255, 0.5); }

.cf-cauldron {
  min-height: 60px;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
}
.cf-formula {
  font-weight: 800;
  font-size: 1.2rem;
  color: #7ef29b;
  margin-right: 0.4rem;
  align-self: center;
}
.cf-flash {
  animation: cf-flash 0.6s ease;
}
@keyframes cf-flash {
  0% { box-shadow: 0 0 0 0 rgba(126, 242, 155, 0.6); border-color: rgba(126,242,155,0.8); }
  100% { box-shadow: 0 0 24px 6px rgba(126, 242, 155, 0); }
}
.cf-recipe--found { cursor: pointer; }
.cf-chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.cf-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cf-discovered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.4rem;
}
.cf-recipe {
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0.7;
}
.cf-recipe--found {
  opacity: 1;
  border-color: rgba(126, 242, 155, 0.4);
  background: rgba(126, 242, 155, 0.08);
}
.cf-recipe strong { font-size: 1.05rem; color: #7ef29b; }
.cf-recipe--found span { color: var(--text-muted); font-size: 0.82rem; }
.cf-hint { color: rgba(255,255,255,0.35); font-size: 0.75rem; }
